Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 894 for Nash (0.15 sec)

  1. android/guava-tests/test/com/google/common/hash/SipHashFunctionTest.java

        assertEquals(expected, SIP_WITH_KEY.newHasher().putString(input, UTF_8).hash().asLong());
        assertEquals(expected, SIP_WITHOUT_KEY.hashString(input, UTF_8).asLong());
        assertEquals(expected, SIP_WITHOUT_KEY.newHasher().putString(input, UTF_8).hash().asLong());
      }
    
      private static void assertSip(byte[] input, long expected) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Sun May 05 18:02:35 GMT 2019
    - 6.6K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/hash/Murmur3Hash128Test.java

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package com.google.common.hash;
    
    import static com.google.common.hash.Hashing.murmur3_128;
    
    import com.google.common.base.Charsets;
    import com.google.common.hash.HashTestUtils.HashFn;
    import java.nio.ByteBuffer;
    import java.nio.ByteOrder;
    import junit.framework.TestCase;
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 3.2K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/hash/HashingInputStreamTest.java

     * or implied. See the License for the specific language governing permissions and limitations under
     * the License.
     */
    
    package com.google.common.hash;
    
    import static org.mockito.Mockito.mock;
    import static org.mockito.Mockito.verify;
    import static org.mockito.Mockito.verifyNoMoreInteractions;
    import static org.mockito.Mockito.when;
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Oct 02 16:24:50 GMT 2020
    - 5K bytes
    - Viewed (0)
  4. internal/hash/sha256/sh256_fips.go

    //go:build fips
    // +build fips
    
    package sha256
    
    import (
    	fipssha256 "crypto/sha256"
    	"hash"
    )
    
    // New returns a new hash.Hash computing the SHA256 checksum.
    // The SHA256 implementation is FIPS 140-2 compliant when the
    // boringcrypto branch of Go is used.
    // Ref: https://github.com/golang/go/tree/dev.boringcrypto
    func New() hash.Hash { return fipssha256.New() }
    
    // Sum256 returns the SHA256 checksum of the data.
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Mon Aug 29 23:57:16 GMT 2022
    - 1.3K bytes
    - Viewed (0)
  5. guava-testlib/test/com/google/common/testing/EquivalenceTesterTest.java

        try {
          tester.addEquivalenceGroup(group1Item1, group1Item2).test();
        } catch (AssertionFailedError expected) {
          String expectedMessage =
              "the hash (1) of TestObject{group=1, item=1} [group 1, item 1] must be "
                  + "equal to the hash (2) of TestObject{group=1, item=2} [group 1, item 2]";
          if (!expected.getMessage().contains(expectedMessage)) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 8.3K bytes
    - Viewed (0)
  6. android/guava-testlib/test/com/google/common/testing/EquivalenceTesterTest.java

        try {
          tester.addEquivalenceGroup(group1Item1, group1Item2).test();
        } catch (AssertionFailedError expected) {
          String expectedMessage =
              "the hash (1) of TestObject{group=1, item=1} [group 1, item 1] must be "
                  + "equal to the hash (2) of TestObject{group=1, item=2} [group 1, item 2]";
          if (!expected.getMessage().contains(expectedMessage)) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 8.3K bytes
    - Viewed (0)
  7. guava/src/com/google/common/base/PairwiseEquivalence.java

          }
        }
    
        return !iteratorA.hasNext() && !iteratorB.hasNext();
      }
    
      @Override
      protected int doHash(Iterable<T> iterable) {
        int hash = 78721;
        for (T element : iterable) {
          hash = hash * 24943 + elementEquivalence.hash(element);
        }
        return hash;
      }
    
      @Override
      public boolean equals(@CheckForNull Object object) {
        if (object instanceof PairwiseEquivalence) {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 23 15:09:35 GMT 2023
    - 2.4K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/hash/AbstractByteHasherTest.java

          assertEquals(
              new TestHasher().putUnencodedChars(s).hash(),
              new TestHasher().putBytes(s.getBytes(UTF_16LE)).hash());
          assertEquals(
              new TestHasher().putUnencodedChars(s).hash(),
              new TestHasher().putString(s, UTF_16LE).hash());
        }
      }
    
      public void testFloat() {
        TestHasher hasher = new TestHasher();
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 3.8K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/hash/AbstractStreamingHasherTest.java

              new Sink(4).putUnencodedChars(s).hash(),
              new Sink(4).putBytes(s.getBytes(UTF_16LE)).hash());
          assertEquals(
              new Sink(4).putUnencodedChars(s).hash(), new Sink(4).putString(s, UTF_16LE).hash());
        }
      }
    
      public void testFloat() {
        Sink sink = new Sink(4);
        sink.putFloat(Float.intBitsToFloat(0x04030201));
        HashCode unused = sink.hash();
        sink.assertInvariants(4);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 8.5K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/base/Objects.java

        return a == b || (a != null && a.equals(b));
      }
    
      /**
       * Generates a hash code for multiple values. The hash code is generated by calling {@link
       * Arrays#hashCode(Object[])}. Note that array arguments to this method, with the exception of a
       * single Object array, do not get any special handling; their hash codes are based on identity
       * and not contents.
       *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 2.9K bytes
    - Viewed (0)
Back to top