Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 2141 - 2150 of 3,045 for rint (0.08 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. tests/test_serialize_response.py

    from fastapi import FastAPI
    from fastapi.testclient import TestClient
    from pydantic import BaseModel
    
    app = FastAPI()
    
    
    class Item(BaseModel):
        name: str
        price: float | None = None
        owner_ids: list[int] | None = None
    
    
    @app.get("/items/valid", response_model=Item)
    def get_valid():
        return {"name": "valid", "price": 1.0}
    
    
    @app.get("/items/coerce", response_model=Item)
    def get_coerce():
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 17 09:59:14 GMT 2026
    - 1.3K bytes
    - Click Count (0)
  2. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/util/ports/DefaultPortDetector.java

        /**
         * Checks to see if a specific port is available.
         *
         * @param port the port to check for availability
         * @return true if the port is available, false otherwise
         */
        public boolean isAvailable(int port) {
            try {
                ServerSocket ss = new ServerSocket(port);
                try {
                    ss.setReuseAddress(true);
                } finally {
                    ss.close();
                }
    
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 01 09:19:30 GMT 2021
    - 1.3K bytes
    - Click Count (0)
  3. src/test/java/org/codelibs/fess/indexer/IndexUpdaterTest.java

            private int clickCount = 0;
            private long favoriteCount = 0L;
    
            @Override
            public int getClickCount(String url) {
                return clickCount;
            }
    
            @Override
            public long getFavoriteCount(String url) {
                return favoriteCount;
            }
    
            public void setClickCount(int count) {
                this.clickCount = count;
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 33.6K bytes
    - Click Count (0)
  4. src/main/java/org/codelibs/fess/util/ParameterUtil.java

         * @return the parameter map
         */
        public static Map<String, String> parse(final String value) {
            final Map<String, String> paramMap = new LinkedHashMap<>();
            if (value != null) {
                int unknownKey = 0;
                final Pattern properyPattern = Pattern.compile(ComponentUtil.getFessConfig().getAppEncryptPropertyPattern());
                final PrimaryCipher cipher = ComponentUtil.getPrimaryCipher();
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Jul 17 08:28:31 GMT 2025
    - 7.5K bytes
    - Click Count (0)
  5. android/guava/src/com/google/common/graph/ElementOrder.java

          return false;
        }
    
        ElementOrder<?> other = (ElementOrder<?>) obj;
        return (type == other.type) && Objects.equals(comparator, other.comparator);
      }
    
      @Override
      public int hashCode() {
        return Objects.hash(type, comparator);
      }
    
      @Override
      public String toString() {
        ToStringHelper helper = MoreObjects.toStringHelper(this).add("type", type);
        if (comparator != null) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 11 01:10:31 GMT 2026
    - 6.5K bytes
    - Click Count (0)
  6. src/main/java/jcifs/NetbiosAddress.java

         *         {@link jcifs.netbios.NbtAddress#H_NODE}
         *
         * @throws UnknownHostException
         *             if the host cannot be resolved to find out.
         */
        int getNodeType(CIFSContext tc) throws UnknownHostException;
    
        /**
         * Determines if this address in the process of being deleted.
         *
         * @param tc
         *            context to use
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 6.1K bytes
    - Click Count (0)
  7. src/test/java/jcifs/dcerpc/msrpc/MsrpcShareEnumTest.java

            // Verify that level is set to 1 as per the constructor
            Field levelField = srvsvc.ShareEnumAll.class.getDeclaredField("level");
            levelField.setAccessible(true);
            int level = (int) levelField.get(msrpcShareEnum);
            assertEquals(1, level);
        }
    
        @Test
        void testShareTypeTransformation() throws Exception {
            // Test different share types and their transformations
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 8.1K bytes
    - Click Count (0)
  8. internal/http/transports.go

    	CipherSuites     []uint16
    	CurvePreferences []tls.CurveID
    
    	// HTTP2
    	EnableHTTP2 bool
    
    	// TCP Options
    	TCPOptions TCPOptions
    }
    
    func (s ConnSettings) getDefaultTransport(maxIdleConnsPerHost int) *http.Transport {
    	if maxIdleConnsPerHost <= 0 {
    		maxIdleConnsPerHost = 1024
    	}
    
    	dialContext := s.DialContext
    	if dialContext == nil {
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Aug 08 17:51:53 GMT 2025
    - 6.5K bytes
    - Click Count (0)
  9. internal/deadlineconn/deadlineconn.go

    func (c *DeadlineConn) Read(b []byte) (n int, err error) {
    	if c.abortReads.Load() {
    		return 0, context.DeadlineExceeded
    	}
    	c.setReadDeadline()
    	n, err = c.Conn.Read(b)
    	return n, err
    }
    
    // Write - writes data to the connection.
    func (c *DeadlineConn) Write(b []byte) (n int, err error) {
    	if c.abortWrites.Load() {
    		return 0, context.DeadlineExceeded
    	}
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Mon Dec 02 13:21:17 GMT 2024
    - 5.1K bytes
    - Click Count (0)
  10. android/guava/src/com/google/common/graph/Graph.java

       *
       * <p>If the count is greater than {@code Integer.MAX_VALUE}, returns {@code Integer.MAX_VALUE}.
       *
       * @throws IllegalArgumentException if {@code node} is not an element of this graph
       */
      @Override
      int degree(N node);
    
      /**
       * Returns the count of {@code node}'s incoming edges (equal to {@code predecessors(node).size()})
       * in a directed graph. In an undirected graph, returns the {@link #degree(Object)}.
       *
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 11 01:10:31 GMT 2026
    - 13.6K bytes
    - Click Count (0)
Back to Top