Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 2,485 for Math (0.24 sec)

  1. src/main/java/jcifs/smb1/netbios/SocketInputStream.java

            if( len == 0 ) {
                return 0;
            }
            tot = 0;
    
            while( true ) {
                while( bip > 0 ) {
                    n = in.read( b, off, Math.min( len, bip ));
                    if( n == -1 ) {
                        return tot > 0 ? tot : -1;
                    }
                    tot += n;
                    off += n;
                    len -= n;
                    bip -= n;
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 20:39:42 GMT 2019
    - 3.3K bytes
    - Viewed (0)
  2. guava-gwt/src/com/google/common/io/Io.gwt.xml

        when we specify a nonexistent path.
    
        (I hope that this workaround does not cause its own problems in the future.)
    -->
    <super-source path="super"/>
    
    <inherits name="com.google.common.annotations.Annotations" />
    <inherits name="com.google.common.base.Base" />
    <inherits name="com.google.common.math.Math" />
    <inherits name="com.google.common.primitives.Primitives" />
    XML
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Jan 06 15:30:58 GMT 2022
    - 1.5K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/ImmutableClassToInstanceMapTest.java

        in.put(Number.class, 0);
        in.put(Double.class, Math.PI);
        ClassToInstanceMap<Number> map = ImmutableClassToInstanceMap.copyOf(in);
        assertEquals(2, map.size());
    
        Number zero = map.getInstance(Number.class);
        assertEquals(0, zero);
    
        Double pi = map.getInstance(Double.class);
        assertEquals(Math.PI, pi, 0.0);
    
        assertSame(map, ImmutableClassToInstanceMap.copyOf(map));
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 20:09:59 GMT 2024
    - 7.4K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/ImmutableBiMapFloodingTest.java

                                path.create(
                                    Lists.transform(keys, key -> Maps.immutableEntry(key, key)))))
                .collect(ImmutableList.toImmutableList()),
            n -> n * Math.log(n),
            ImmutableList.of(
                QueryOp.create("BiMap.get", BiMap::get, Math::log),
                QueryOp.create("BiMap.inverse.get", (bm, o) -> bm.inverse().get(o), Math::log)));
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Oct 03 21:01:39 GMT 2023
    - 4.2K bytes
    - Viewed (0)
  5. guava-gwt/src/com/google/common/collect/Collect.gwt.xml

        when we specify a nonexistent path.
    
        (I hope that this workaround does not cause its own problems in the future.)
    -->
    <super-source path="super"/>
    
    <inherits name="com.google.common.annotations.Annotations" />
    <inherits name="com.google.common.base.Base" />
    <inherits name="com.google.common.math.Math" />
    <inherits name="com.google.common.primitives.Primitives" />
    XML
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 24 14:08:06 GMT 2023
    - 1.5K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/smb2/nego/Smb2NegotiateResponse.java

            this.maxReadSize = Math.min(maxBufferSize - Smb2ReadResponse.OVERHEAD, Math.min(tc.getConfig().getReceiveBufferSize(), this.maxReadSize))
                    & ~0x7;
            this.maxWriteSize = Math.min(maxBufferSize - Smb2WriteRequest.OVERHEAD, Math.min(tc.getConfig().getSendBufferSize(), this.maxWriteSize))
                    & ~0x7;
            this.maxTransactSize = Math.min(maxBufferSize - 512, this.maxTransactSize) & ~0x7;
    
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Mar 22 10:09:46 GMT 2020
    - 17.6K bytes
    - Viewed (0)
  7. guava-tests/benchmark/com/google/common/cache/LoadingCacheSingleThreadBenchmark.java

      @BeforeExperiment
      void setUp() {
        // random integers will be generated in this range, then raised to the
        // power of (1/concentration) and floor()ed
        max = Ints.checkedCast((long) Math.pow(distinctKeys, concentration));
    
        cache =
            CacheBuilder.newBuilder()
                .concurrencyLevel(segments)
                .maximumSize(maximumSize)
                .build(
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 3.4K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/io/LineBufferTest.java

                  @Override
                  public String apply(String value) {
                    return value.replaceAll("[\\r\\n]", "");
                  }
                });
    
        for (int chunk : CHUNK_SIZES) {
          chunk = Math.max(1, Math.min(chunk, input.length()));
          assertEquals(expectProcess, bufferHelper(input, chunk));
          assertEquals(expectRead, readUsingJava(input, chunk));
          assertEquals(expectRead, readUsingReader(input, chunk, true));
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4.7K bytes
    - Viewed (0)
  9. guava/src/com/google/common/cache/CacheStats.java

        return new CacheStats(
            Math.max(0, saturatedSubtract(hitCount, other.hitCount)),
            Math.max(0, saturatedSubtract(missCount, other.missCount)),
            Math.max(0, saturatedSubtract(loadSuccessCount, other.loadSuccessCount)),
            Math.max(0, saturatedSubtract(loadExceptionCount, other.loadExceptionCount)),
            Math.max(0, saturatedSubtract(totalLoadTime, other.totalLoadTime)),
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Sun Aug 07 02:38:22 GMT 2022
    - 12.6K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/cache/CacheStats.java

        return new CacheStats(
            Math.max(0, saturatedSubtract(hitCount, other.hitCount)),
            Math.max(0, saturatedSubtract(missCount, other.missCount)),
            Math.max(0, saturatedSubtract(loadSuccessCount, other.loadSuccessCount)),
            Math.max(0, saturatedSubtract(loadExceptionCount, other.loadExceptionCount)),
            Math.max(0, saturatedSubtract(totalLoadTime, other.totalLoadTime)),
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Sun Aug 07 02:38:22 GMT 2022
    - 12.6K bytes
    - Viewed (0)
Back to top