Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 381 - 390 of 1,690 for number1 (0.08 seconds)

  1. guava-tests/test/com/google/common/base/FunctionsTest.java

        Map<String, Integer> map = new HashMap<>();
        map.put("One", 1);
        map.put("Three", 3);
        Number number = Double.valueOf(42);
        Function<String, Number> function = Functions.forMap(map, number);
    
        assertEquals(1, function.apply("One").intValue());
        assertEquals(number, function.apply("Two"));
        assertEquals(3L, function.apply("Three").longValue());
      }
    
      public void testComposition() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 15:59:55 GMT 2026
    - 16.2K bytes
    - Click Count (0)
  2. tests/test_tutorial/test_body_updates/test_tutorial001.py

                                },
                                "price": {
                                    "anyOf": [{"type": "number"}, {"type": "null"}],
                                    "title": "Price",
                                },
                                "tax": {"title": "Tax", "type": "number", "default": 10.5},
                                "tags": {
                                    "title": "Tags",
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 7.3K bytes
    - Click Count (0)
  3. cmd/endpoint-ellipses_test.go

    			}
    		})
    	}
    }
    
    func getHexSequences(start int, number int, paddinglen int) (seq []string) {
    	for i := start; i <= number; i++ {
    		if paddinglen == 0 {
    			seq = append(seq, fmt.Sprintf("%x", i))
    		} else {
    			seq = append(seq, fmt.Sprintf(fmt.Sprintf("%%0%dx", paddinglen), i))
    		}
    	}
    	return seq
    }
    
    func getSequences(start int, number int, paddinglen int) (seq []string) {
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 15.1K bytes
    - Click Count (0)
  4. tests/test_generate_unique_id_function.py

                            "type": "object",
                            "properties": {
                                "name": {"title": "Name", "type": "string"},
                                "price": {"title": "Price", "type": "number"},
                            },
                        },
                        "Message": {
                            "title": "Message",
                            "required": ["title", "description"],
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Feb 08 10:18:38 GMT 2026
    - 75K bytes
    - Click Count (0)
  5. src/main/java/org/codelibs/core/convert/IntegerConversionUtil.java

         */
        public static Integer toInteger(final Object o, final String pattern) {
            return switch (o) {
            case null -> null;
            case Integer i -> i;
            case Number n -> n.intValue();
            case String s -> toInteger(s);
            case java.util.Date d -> pattern != null ? Integer.valueOf(new SimpleDateFormat(pattern).format(d)) : (int) d.getTime();
            case Boolean b -> b ? 1 : 0;
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Thu Jul 31 08:16:49 GMT 2025
    - 3.2K bytes
    - Click Count (0)
  6. src/main/java/jcifs/SmbRandomAccess.java

         */
        int read() throws SmbException;
    
        /**
         * Read into buffer from current position
         *
         * @param b
         *            buffer
         * @return number of bytes read
         * @throws SmbException if an I/O error occurs during read
         */
        int read(byte[] b) throws SmbException;
    
        /**
         * Read into buffer from current position
         *
         * @param b
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 2.6K bytes
    - Click Count (0)
  7. src/main/java/jcifs/util/SecureKeyManager.java

                } catch (Exception e) {
                    log.warn("Failed to clear KeyStore entries: {}", e.getMessage());
                }
            }
        }
    
        /**
         * Get the number of stored keys
         *
         * @return number of keys in memory
         */
        public int getKeyCount() {
            return sessionKeys.size();
        }
    
        /**
         * Check if a session key exists
         *
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 21.5K bytes
    - Click Count (0)
  8. tests/prepared_stmt_test.go

    	// otherwise, ok will be false and conn will be nil.
    	conn, ok := tx.ConnPool.(*gorm.PreparedStmtDB)
    	// Get the number of statement keys stored in the PreparedStmtDB.
    	lens := len(conn.Stmts.Keys())
    	// Check if the number of stored statement keys is 0.
    	if lens == 0 {
    		// If the number is 0, it means there are no statements stored in the LRU cache.
    		// The test fails and an error message is output.
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Fri Apr 25 08:22:26 GMT 2025
    - 8K bytes
    - Click Count (0)
  9. internal/bucket/bandwidth/reader.go

    	}
    	if r.lastErr != nil {
    		err = r.lastErr
    		return n, err
    	}
    	b := r.throttle.Burst()  // maximum available tokens
    	need := len(buf)         // number of bytes requested by caller
    	hdr := r.opts.HeaderSize // remaining header bytes
    	var tokens int           // number of tokens to request
    
    	if hdr > 0 { // available tokens go towards header first
    		if hdr < b { // all of header can be accommodated
    			r.opts.HeaderSize = 0
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 3.3K bytes
    - Click Count (0)
  10. guava/src/com/google/common/cache/AbstractCache.java

       *
       * @since 10.0
       */
      public interface StatsCounter {
        /**
         * Records cache hits. This should be called when a cache request returns a cached value.
         *
         * @param count the number of hits to record
         * @since 11.0
         */
        void recordHits(int count);
    
        /**
         * Records cache misses. This should be called when a cache request returns a value that was not
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 03 12:40:22 GMT 2026
    - 9.2K bytes
    - Click Count (0)
Back to Top