Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 146 for rthash (0.12 sec)

  1. android/guava/src/com/google/common/hash/Striped64.java

       *
       * @param x the value
       * @param hc the hash code holder
       * @param wasUncontended false if CAS failed before call
       */
      final void retryUpdate(long x, @CheckForNull int[] hc, boolean wasUncontended) {
        int h;
        if (hc == null) {
          threadHashCode.set(hc = new int[1]); // Initialize randomly
          int r = rng.nextInt(); // Avoid zero to allow xorShift rehash
          h = hc[0] = (r == 0) ? 1 : r;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Jun 07 22:25:23 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  2. subprojects/core/src/main/java/org/gradle/api/internal/changedetection/state/GradleUserHomeScopeFileTimeStampInspector.java

        public void beforeComplete() {
            updateOnFinishBuild();
            synchronized (lock) {
                try {
                    // These files have an unreliable timestamp - discard any cached state for them and rehash next time they are seen
                    if (currentTimestamp == getLastBuildTimestamp()) {
                        for (String path : filesWithCurrentTimestamp) {
                            fileHasher.discard(path);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 12 02:21:10 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  3. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/snapshot/impl/HashCodeSnapshot.java

    package org.gradle.internal.snapshot.impl;
    
    import org.gradle.internal.hash.HashCode;
    import org.gradle.internal.hash.Hasher;
    
    public class HashCodeSnapshot extends AbstractIsolatableScalarValue<HashCode> {
        public HashCodeSnapshot(HashCode value) {
            super(value);
        }
    
        @Override
        public void appendToHasher(Hasher hasher) {
            hasher.putHash(getValue());
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 1005 bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/plugin/pkg/authenticator/token/oidc/metrics.go

    	})
    }
    
    func recordAuthenticationLatency(result, jwtIssuerHash string, duration time.Duration) {
    	jwtAuthenticatorLatencyMetric.WithLabelValues(result, jwtIssuerHash).Observe(duration.Seconds())
    }
    
    func getHash(data string) string {
    	if len(data) > 0 {
    		return fmt.Sprintf("sha256:%x", sha256.Sum256([]byte(data)))
    	}
    	return ""
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 09 19:29:33 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/base/Equivalence.java

      }
    
      /**
       * Implemented by the user to return a hash code for {@code t}, subject to the requirements
       * specified in {@link #hash}.
       *
       * <p>This method should not be called except by {@link #hash}. When {@link #hash} calls this
       * method, {@code t} is guaranteed to be non-null.
       *
       * @since 10.0 (previously, subclasses would override hash())
       */
      @ForOverride
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu May 16 14:34:47 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  6. platforms/core-runtime/wrapper-shared/src/main/java/org/gradle/wrapper/PathAssembler.java

        }
    
        private String rootDirName(String distName, WrapperConfiguration configuration) {
            String urlHash = getHash(Download.safeUri(configuration.getDistribution()).toASCIIString());
            return distName + "/" + urlHash;
        }
    
        /**
         * This method computes a hash of the provided {@code string}.
         * <p>
         * The algorithm in use by this method is as follows:
         * <ol>
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 13:09:37 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  7. subprojects/core/src/testFixtures/groovy/org/gradle/api/internal/tasks/AbstractSnapshotInputsBuildOperationResultTest.groovy

            ])
            def beforeExecutionState = Mock(BeforeExecutionState) {
                getInputFileProperties() >> ImmutableSortedMap.of('foo',
                    Mock(CurrentFileCollectionFingerprint) {
                        getHash() >> TestHashCodes.hashCodeFrom(345)
                        getFingerprints() >> [
                            '/foo/one.txt': new DefaultFileSystemLocationFingerprint('/foo/one.txt', FileType.RegularFile, TestHashCodes.hashCodeFrom(123)),
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jul 07 15:16:07 UTC 2023
    - 9.2K bytes
    - Viewed (0)
  8. subprojects/core/src/main/java/org/gradle/tooling/provider/model/internal/ToolingModelParameterCarrier.java

         * allowing access to its properties via methods available on the {@code viewType}.
         */
        Object getView(Class<?> viewType);
    
        /**
         * Returns a hash of the original parameter object.
         */
        HashCode getHash();
    
        @NonNullApi
        @ServiceScope(Scope.BuildTree.class)
        interface Factory {
    
            ToolingModelParameterCarrier createCarrier(Object parameter);
    
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 12 02:21:10 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  9. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/transform/NonNormalizedIdentityImmutableTransformExecution.java

            // This is why the hash is captured here and not in visitIdentityInputs().
            FileSystemLocationSnapshot inputArtifactSnapshot = fileSystemAccess.read(inputArtifact.getAbsolutePath());
            HashCode inputArtifactSnapshotHash = inputArtifactSnapshot.getHash();
    
            return TransformWorkspaceIdentity.createNonNormalizedImmutable(
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jun 06 16:14:33 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  10. cmd/erasure-sets_test.go

    	// Tests hashing order to be consistent.
    	for i, testCase := range testCases {
    		if crcHashElement := hashKey("CRCMOD", testCase.objectName, 200, testUUID); crcHashElement != testCase.crcHash {
    			t.Errorf("Test case %d: Expected \"%v\" but failed \"%v\"", i+1, testCase.crcHash, crcHashElement)
    		}
    	}
    
    	if crcHashElement := hashKey("CRCMOD", "This will fail", -1, testUUID); crcHashElement != -1 {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Feb 12 07:21:56 UTC 2024
    - 6.9K bytes
    - Viewed (0)
Back to top