Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for expectedMap (0.39 sec)

  1. cmd/server_test.go

    }
    
    func (s *TestSuiteCommon) TestCors(c *check) {
    	expectedMap := http.Header{}
    	expectedMap.Set("Access-Control-Allow-Credentials", "true")
    	expectedMap.Set("Access-Control-Allow-Origin", "http://foobar.com")
    	expectedMap["Access-Control-Expose-Headers"] = []string{
    		"Date",
    		"Etag",
    		"Server",
    		"Connection",
    		"Accept-Ranges",
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 108K bytes
    - Viewed (0)
  2. internal/bucket/object/lock/lock_test.go

    			},
    			expectedVal: true,
    		},
    		{
    			header: http.Header{
    				AmzObjectLockBypassRetGovernance: []string{""},
    			},
    			expectedVal: false,
    		},
    	}
    	for _, tt := range tests {
    		actualVal := IsObjectLockRequested(tt.header)
    		if actualVal != tt.expectedVal {
    			t.Fatalf("error: expected %v, actual %v", tt.expectedVal, actualVal)
    		}
    	}
    }
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 17.1K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/hash/BloomFilterTest.java

        BloomFilter<Object> bf = BloomFilter.create(HashTestUtils.BAD_FUNNEL, 10, 0.03);
        double fpp = bf.expectedFpp();
        assertEquals(0.0, fpp);
        // usually completed in less than 200 iterations
        while (fpp != 1.0) {
          boolean changed = bf.put(new Object());
          double newFpp = bf.expectedFpp();
          // if changed, the new fpp is strictly higher, otherwise it is the same
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Nov 09 22:49:56 GMT 2023
    - 21.3K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/util/concurrent/AtomicDoubleTest.java

          for (double y : VALUES) {
            AtomicDouble a = new AtomicDouble(x);
            double z = a.accumulateAndGet(y, Double::max);
            double expectedMax = max(x, y);
            assertBitEquals(expectedMax, z);
            assertBitEquals(expectedMax, a.get());
          }
        }
      }
    
      /** getAndUpdate with sum stores sum of given value to current, and returns previous value */
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Feb 09 22:57:07 GMT 2022
    - 10.2K bytes
    - Viewed (0)
  5. internal/hash/reader.go

    func (r *Reader) SetExpectedMin(expectedMin int64) {
    	r.expectedMin = expectedMin
    }
    
    // SetExpectedMax set expected max data expected from reader
    func (r *Reader) SetExpectedMax(expectedMax int64) {
    	r.expectedMax = expectedMax
    }
    
    // AddChecksum will add checksum checks as specified in
    // https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Mon Sep 18 17:00:54 GMT 2023
    - 10.8K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/hash/BloomFilterTest.java

        BloomFilter<Object> bf = BloomFilter.create(HashTestUtils.BAD_FUNNEL, 10, 0.03);
        double fpp = bf.expectedFpp();
        assertEquals(0.0, fpp);
        // usually completed in less than 200 iterations
        while (fpp != 1.0) {
          boolean changed = bf.put(new Object());
          double newFpp = bf.expectedFpp();
          // if changed, the new fpp is strictly higher, otherwise it is the same
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Nov 09 22:49:56 GMT 2023
    - 21.3K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/util/concurrent/AtomicDoubleArrayTest.java

          for (double x : VALUES) {
            for (double y : VALUES) {
              aa.set(i, x);
              double z = aa.accumulateAndGet(i, y, Double::max);
              double expectedMax = max(x, y);
              assertBitEquals(expectedMax, z);
              assertBitEquals(expectedMax, aa.get(i));
            }
          }
        }
      }
    
      /** getAndUpdate adds given value to current, and returns previous value */
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 14.5K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/hash/BloomFilter.java

       * case that too many elements (more than expected) have been put in the {@code BloomFilter},
       * degenerating it.
       *
       * @since 14.0 (since 11.0 as expectedFalsePositiveProbability())
       */
      public double expectedFpp() {
        return Math.pow((double) bits.bitCount() / bitSize(), numHashFunctions);
      }
    
      /**
       * Returns an estimate for the total number of distinct elements that have been added to this
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 23.1K bytes
    - Viewed (0)
Back to top