Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 54 for naive (0.02 sec)

  1. android/guava-tests/test/com/google/common/cache/TestingCacheLoaders.java

     *
     * @author mike nonemacher
     */
    @GwtCompatible(emulated = true)
    class TestingCacheLoaders {
    
      /**
       * Returns a {@link CacheLoader} that implements a naive {@link CacheLoader#loadAll}, delegating
       * {@link CacheLoader#load} calls to {@code loader}.
       */
      static <K, V> CacheLoader<K, V> bulkLoader(final CacheLoader<K, V> loader) {
        checkNotNull(loader);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/util/concurrent/AbstractAbstractFutureTest.java

        assertEquals(1, future.get(-1, SECONDS).intValue());
      }
    
      @J2ktIncompatible
      @GwtIncompatible // threads
      public void testOverflowTimeout() throws Exception {
        // First, sanity check that naive multiplication would really overflow to a negative number:
        long nanosPerSecond = NANOSECONDS.convert(1, SECONDS);
        assertThat(nanosPerSecond * Long.MAX_VALUE).isLessThan(0L);
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 15:41:36 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/math/StatsAccumulator.java

       */
      static double calculateNewMeanNonFinite(double previousMean, double value) {
        /*
         * Desired behaviour is to match the results of applying the naive mean formula. In particular,
         * the update formula can subtract infinities in cases where the naive formula would add them.
         *
         * Consequently:
         * 1. If the previous mean is finite and the new value is non-finite then the new mean is that
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 23 16:45:30 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/util/concurrent/AbstractAbstractFutureTest.java

        assertEquals(1, future.get(-1, SECONDS).intValue());
      }
    
      @J2ktIncompatible
      @GwtIncompatible // threads
      public void testOverflowTimeout() throws Exception {
        // First, sanity check that naive multiplication would really overflow to a negative number:
        long nanosPerSecond = NANOSECONDS.convert(1, SECONDS);
        assertThat(nanosPerSecond * Long.MAX_VALUE).isLessThan(0L);
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 15:41:36 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  5. cmd/object-api-utils_test.go

    }
    
    func concatNaive(ss ...string) string {
    	rs := ss[0]
    	for i := 1; i < len(ss); i++ {
    		rs += ss[i]
    	}
    	return rs
    }
    
    func benchmark(b *testing.B, data []string) {
    	b.Run("concat naive", func(b *testing.B) {
    		b.ResetTimer()
    		b.ReportAllocs()
    		for i := 0; i < b.N; i++ {
    			concatNaive(data...)
    		}
    	})
    	b.Run("concat fast", func(b *testing.B) {
    		b.ResetTimer()
    		b.ReportAllocs()
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 08 15:29:58 UTC 2024
    - 24.1K bytes
    - Viewed (0)
  6. guava/src/com/google/common/io/ByteStreams.java

       *       have file descriptors. Bytes are copied from the file into a kernel buffer, then directly
       *       into the other buffer (userspace). Note that if the file is very large, a naive
       *       implementation will effectively put the whole file in memory. On many systems with paging
       *       and virtual memory, this is not a problem - because it is mapped read-only, the kernel
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 29.7K bytes
    - Viewed (0)
  7. .teamcity/test-buckets.json

    				"subprojects":[
    					"logging",
    					"native",
    					"precondition-tester",
    					"snapshots",
    					"tooling-native",
    					"file-watching"
    				]
    			},
    			{
    				"parallelizationMethod":{
    					"name":"TeamCityParallelTests",
    					"numberOfBatches":1
    				},
    				"subprojects":[
    					"ide-native",
    					"platform-native",
    					"testing-native"
    				]
    			},
    			{
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Tue Oct 08 11:14:16 UTC 2024
    - 87.8K bytes
    - Viewed (0)
  8. .teamcity/subprojects.json

        "path": "platforms/jvm/distributions-jvm",
        "unitTests": false,
        "functionalTests": false,
        "crossVersionTests": false
      },
      {
        "name": "distributions-native",
        "path": "platforms/native/distributions-native",
        "unitTests": false,
        "functionalTests": false,
        "crossVersionTests": false
      },
      {
        "name": "distributions-publishing",
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Oct 23 22:33:41 UTC 2024
    - 34.3K bytes
    - Viewed (0)
  9. guava-gwt/src-super/com/google/common/base/super/com/google/common/base/Platform.java

      private static native String toPrecision(double value, int precision);
    
      @JsMethod
      static native boolean stringIsNullOrEmpty(@Nullable String string) /*-{
        return !string;
      }-*/;
    
      @JsMethod
      static native String nullToEmpty(@Nullable String string) /*-{
        return string || "";
      }-*/;
    
      @JsMethod
      static native String emptyToNull(@Nullable String string) /*-{
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon May 27 13:56:56 UTC 2024
    - 2K bytes
    - Viewed (0)
  10. apache-maven/src/assembly/maven/lib/jline-native/README.txt

    This directory contains JLine native libraries extracted from JLine JAR.
    
    You can add your own build for platforms not natively supported by JLine.
    See here [1] on how to compile for your platform and here [2] how libraries
    follow JLine's directory and filename conventions.
    
    [1] https://github.com/jline/jline3/tree/master/native
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Thu Oct 24 12:01:35 UTC 2024
    - 428 bytes
    - Viewed (0)
Back to top