- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 247 for hash2 (0.03 seconds)
-
android/guava/src/com/google/common/hash/BloomFilterStrategies.java
long hash1 = lowerEight(bytes); long hash2 = upperEight(bytes); boolean bitsChanged = false; long combinedHash = hash1; for (int i = 0; i < numHashFunctions; i++) { // Make the combined hash positive and indexable bitsChanged |= bits.set((combinedHash & Long.MAX_VALUE) % bitSize); combinedHash += hash2; } return bitsChanged; }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 19 18:53:45 GMT 2026 - 10.7K bytes - Click Count (0) -
guava-tests/test/com/google/common/hash/HashCodeTest.java
assertEquals(expectedHashCode.asLong.longValue(), hash.asLong()); } assertThat(hash.toString()).isEqualTo(expectedHashCode.toString); assertSideEffectFree(hash); assertReadableBytes(hash); } private static void assertSideEffectFree(HashCode hash) { byte[] original = hash.asBytes(); byte[] mutated = hash.asBytes(); mutated[0]++; assertThat(hash.asBytes()).isEqualTo(original); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 19 18:53:45 GMT 2026 - 13.2K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/hash/HashCodeTest.java
assertEquals(expectedHashCode.asLong.longValue(), hash.asLong()); } assertThat(hash.toString()).isEqualTo(expectedHashCode.toString); assertSideEffectFree(hash); assertReadableBytes(hash); } private static void assertSideEffectFree(HashCode hash) { byte[] original = hash.asBytes(); byte[] mutated = hash.asBytes(); mutated[0]++; assertThat(hash.asBytes()).isEqualTo(original); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 19 18:53:45 GMT 2026 - 13.2K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/dict/stopwords/StopwordsItemTest.java
StopwordsItem item1 = new StopwordsItem(1, null); StopwordsItem item2 = new StopwordsItem(2, null); // Should not throw int hash1 = item1.hashCode(); int hash2 = item2.hashCode(); // Same null input should produce same hashCode assertEquals(hash1, hash2); // Consistent hashCode
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 11.4K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/dict/protwords/ProtwordsItemTest.java
ProtwordsItem item1 = new ProtwordsItem(1, null); ProtwordsItem item2 = new ProtwordsItem(2, null); // Should not throw int hash1 = item1.hashCode(); int hash2 = item2.hashCode(); // Same null input should produce same hashCode assertEquals(hash1, hash2); // Consistent hashCode
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 10.7K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/dict/mapping/CharMappingItemTest.java
String[] inputs1 = { "a", "b" }; String[] inputs2 = { "a", "b" }; CharMappingItem item1 = new CharMappingItem(1L, inputs1, null); CharMappingItem item2 = new CharMappingItem(2L, inputs2, null); // Should not throw int hash1 = item1.hashCode(); int hash2 = item2.hashCode();
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 16K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/util/PrunedTagTest.java
tag2.setId("test"); tag2.setCss("highlight"); // Equal objects must have equal hash codes assertEquals(tag1.hashCode(), tag2.hashCode()); // Hash code should be consistent int hash1 = tag1.hashCode(); int hash2 = tag1.hashCode(); assertEquals(hash1, hash2); } @Test public void test_setters() { PrunedTag tag = new PrunedTag("div");
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 21.1K bytes - Click Count (0) -
guava-tests/test/com/google/common/hash/HashingTest.java
HashCode hash31 = HashCode.fromInt(31); HashCode hash32 = HashCode.fromInt(32); assertEquals(hash32, Hashing.combineUnordered(ImmutableList.of(hash32))); assertEquals(HashCode.fromInt(64), Hashing.combineUnordered(ImmutableList.of(hash32, hash32))); assertEquals( HashCode.fromInt(96), Hashing.combineUnordered(ImmutableList.of(hash32, hash32, hash32))); assertEquals(
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 26.7K bytes - Click Count (2) -
requirements_lock_3_14.txt
--hash=sha256:0af291f4fe114be0280cdd29d533696a77b5b49cfde5467176ecab32353395c4 \ --hash=sha256:0f55e69f030f7163dffe9fd0752b32f070566451afe180f99dbeeb81f511ad8d \ --hash=sha256:1a2bc9f351a75ef49d664206d51f8e5ede9da246602dc2d2726837620ea034b2 \ --hash=sha256:22e14b5d70560b8dd51ec22863f370d1e595ac3d024cb8ad7d308b4cd95f8313 \ --hash=sha256:234ac59ea147c59ee4da87a0c0f098e9c8d169f4dc2a159ef720f1a61bbe27cd \Created: Tue Apr 07 12:39:13 GMT 2026 - Last Modified: Tue Apr 07 11:39:48 GMT 2026 - 73.6K bytes - Click Count (0) -
requirements_lock_3_10.txt
--hash=sha256:0af291f4fe114be0280cdd29d533696a77b5b49cfde5467176ecab32353395c4 \ --hash=sha256:0f55e69f030f7163dffe9fd0752b32f070566451afe180f99dbeeb81f511ad8d \ --hash=sha256:1a2bc9f351a75ef49d664206d51f8e5ede9da246602dc2d2726837620ea034b2 \ --hash=sha256:22e14b5d70560b8dd51ec22863f370d1e595ac3d024cb8ad7d308b4cd95f8313 \ --hash=sha256:234ac59ea147c59ee4da87a0c0f098e9c8d169f4dc2a159ef720f1a61bbe27cd \Created: Tue Apr 07 12:39:13 GMT 2026 - Last Modified: Tue Apr 07 11:39:48 GMT 2026 - 69.3K bytes - Click Count (0)