Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 56 for HashString (0.13 sec)

  1. maven-compat/src/main/java/org/apache/maven/repository/metadata/MetadataGraphVertex.java

                return super.hashCode();
            }
            StringBuilder hashString = new StringBuilder(128);
            hashString.append(md.groupId).append('|');
            hashString.append(md.artifactId).append('|');
    
            if (compareVersion) {
                hashString.append(md.version).append('|');
            }
    
            if (compareScope) {
                hashString.append(md.getArtifactScope()).append('|');
            }
    
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Wed Sep 06 11:28:54 UTC 2023
    - 5.3K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/hash/Murmur3Hash32Test.java

      @SuppressWarnings("deprecation")
      private void assertStringHash(int expected, String string, Charset charset) {
        if (allBmp(string)) {
          assertHash(expected, murmur3_32().hashString(string, charset));
        }
        assertHash(expected, murmur3_32_fixed().hashString(string, charset));
        assertHash(expected, murmur3_32().newHasher().putString(string, charset).hash());
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 08 13:56:22 UTC 2021
    - 8.6K bytes
    - Viewed (0)
  3. platforms/native/platform-native/src/main/java/org/gradle/nativeplatform/internal/CompilerOutputFileNamingScheme.java

    package org.gradle.nativeplatform.internal;
    
    import org.apache.commons.io.FilenameUtils;
    import org.gradle.internal.file.RelativeFilePathResolver;
    
    import java.io.File;
    
    import static org.gradle.internal.hash.Hashing.hashString;
    
    public class CompilerOutputFileNamingScheme {
        private String objectFileNameSuffix;
        private File outputBaseFolder;
        private final RelativeFilePathResolver fileResolver;
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  4. platforms/core-execution/hashing/src/test/groovy/org/gradle/internal/hash/HashingTest.groovy

        }
    
        def 'hasher can be used from multiple threads'() {
            given:
            def threadRange = 1..100
    
            when:
            def hashes = threadRange.collect {
                supplyAsync({ Hashing.hashString(currentThread().name) }, newFixedThreadPool(threadRange.size()))
            }*.join().toSet()
    
            then:
            hashes.size() == threadRange.size()
        }
    
        def 'null does not collide with other values'() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:43:29 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  5. cmd/xl-storage-format-utils.go

    	for k, v := range m {
    		// Separate key and value with an individual xor with a random number.
    		// Add values of each, so they cannot be trivially collided.
    		crc ^= (xxh3.HashString(k) ^ 0x4ee3bbaf7ab2506b) + (xxh3.HashString(v) ^ 0x8da4c8da66194257)
    	}
    	return crc
    }
    
    // hashDeterministicBytes will return a deterministic (weak) hash for the map values.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Jun 07 22:18:44 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  6. subprojects/core/src/main/java/org/gradle/groovy/scripts/TextResourceScriptSource.java

    import static org.apache.commons.lang.StringUtils.substringAfterLast;
    import static org.apache.commons.lang.StringUtils.substringBeforeLast;
    import static org.gradle.internal.hash.Hashing.hashString;
    
    /**
     * A {@link ScriptSource} which loads the script from a URI.
     */
    public class TextResourceScriptSource implements ScriptSource {
        private final TextResource resource;
        private String className;
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jul 07 10:24:10 UTC 2021
    - 3.6K bytes
    - Viewed (0)
  7. testing/internal-integ-testing/src/main/groovy/org/gradle/vcs/internal/SourceDependencies.groovy

    import org.gradle.test.fixtures.file.TestFile
    
    import static org.gradle.internal.hash.Hashing.hashString
    
    @SelfType(AbstractIntegrationSpec)
    trait SourceDependencies {
        TestFile checkoutDir(String repoName, String versionId, String repoId, TestFile baseDir=testDirectory) {
            def prefix = repoName.take(9)
            def hashedCommit = hashString("${repoId}-${versionId}").toCompactString()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  8. platforms/core-execution/hashing/src/test/groovy/org/gradle/internal/hash/HashCodeTest.groovy

            thrown Exception
        }
    
        def "can create compact string representation"() {
            expect:
            Hashing.md5().hashString("").toCompactString() == "ck2u8j60r58fu0sgyxrigm3cu"
            Hashing.md5().hashString("a").toCompactString() == "r6p51cluyxfm1x21kf967yw1"
            Hashing.md5().hashString("i").toCompactString() == "7ycx034q3zbhupl01mv32dx6p"
        }
    
        def "can create zero-padded hex representation"() {
            expect:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:43:29 UTC 2023
    - 8.2K bytes
    - Viewed (0)
  9. internal/logger/logger.go

    			Source:    trace,
    			Variables: tags,
    		}
    	} else {
    		entry.Message = message
    	}
    
    	if anonFlag {
    		entry.API.Args.Bucket = HashString(entry.API.Args.Bucket)
    		entry.API.Args.Object = HashString(entry.API.Args.Object)
    		entry.RemoteHost = HashString(entry.RemoteHost)
    		if entry.Trace != nil {
    			entry.Trace.Variables = make(map[string]interface{})
    		}
    	}
    
    	return entry
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/hash/SipHashFunctionTest.java

      }
    
      private static void assertSip(String input, long expected) {
        assertEquals(expected, SIP_WITH_KEY.hashString(input, UTF_8).asLong());
        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());
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sun May 05 18:02:35 UTC 2019
    - 6.6K bytes
    - Viewed (0)
Back to top