Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 1,431 for Hashing (2.45 sec)

  1. platforms/core-execution/hashing/src/test/groovy/org/gradle/internal/hash/HashCodeTest.groovy

            then:
            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"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:43:29 UTC 2023
    - 8.2K bytes
    - Viewed (0)
  2. platforms/jvm/normalization-java/src/test/groovy/org/gradle/api/internal/changedetection/state/LineEndingNormalizingResourceHasherTest.groovy

    import org.gradle.internal.file.FileType
    import org.gradle.internal.fingerprint.LineEndingSensitivity
    import org.gradle.internal.fingerprint.hashing.RegularFileSnapshotContext
    import org.gradle.internal.fingerprint.hashing.ResourceHasher
    import org.gradle.internal.fingerprint.hashing.ZipEntryContext
    import org.gradle.internal.hash.Hashing
    import org.gradle.internal.io.IoFunction
    import org.gradle.internal.snapshot.RegularFileSnapshot
    import spock.lang.Specification
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 15:09:49 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  3. subprojects/core/src/testFixtures/groovy/org/gradle/util/TestUtil.groovy

                            @Override
                            HashCode md5(File file) {
                                Hashing.md5().hashBytes(file.bytes)
                            }
    
                            @Override
                            HashCode sha1(File file) {
                                Hashing.sha1().hashBytes(file.bytes)
                            }
    
                            @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 27 12:34:44 UTC 2024
    - 13.2K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/hash/BloomFilterStrategies.java

            }
            if (!bits.get(combinedHash % bitSize)) {
              return false;
            }
          }
          return true;
        }
      },
      /**
       * This strategy uses all 128 bits of {@link Hashing#murmur3_128} when hashing. It looks different
       * from the implementation in MURMUR128_MITZ_32 because we're avoiding the multiplication in the
       * loop and doing a (much simpler) += hash2. We're also changing the index to a positive number by
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Oct 10 19:45:10 UTC 2022
    - 10.7K bytes
    - Viewed (0)
  5. platforms/software/dependency-management/src/test/groovy/org/gradle/internal/resource/local/LazyLocallyAvailableResourceCandidatesTest.groovy

     * limitations under the License.
     */
    
    package org.gradle.internal.resource.local
    
    import org.gradle.internal.Factory
    import org.gradle.internal.hash.Hashing
    import org.gradle.test.fixtures.file.TestNameTestDirectoryProvider
    import org.gradle.util.TestUtil
    import org.junit.Rule
    import spock.lang.Specification
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  6. platforms/core-configuration/core-kotlin-extensions/src/main/kotlin/org/gradle/internal/extensions/core/FileSystemExtensions.kt

     * limitations under the License.
     */
    
    package org.gradle.internal.extensions.core
    
    import org.gradle.internal.file.FileType
    import org.gradle.internal.hash.HashCode
    import org.gradle.internal.hash.Hashing
    import java.io.File
    import java.util.Arrays
    
    
    fun fileSystemEntryType(file: File): FileType =
        when {
            !file.exists() -> FileType.Missing
            file.isDirectory -> FileType.Directory
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 24 16:55:36 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  7. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/caching/CachedDependencyResolutionIntegrationTest.groovy

            server.sendLastModified = false
            byte[] jarBytes = [0, 0, 0, 5] // this should produce leading zeros
            module.jarFile.bytes = jarBytes
            sha1.text = Hashing.sha1().hashBytes(jarBytes).toZeroPaddedString(Hashing.sha1().hexDigits)
            initialResolve()
            expect:
            headThenSha1Requests()
            trimLeadingZerosFromSHA1(sha1)
            unchangedResolve()
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  8. subprojects/core/src/main/java/org/gradle/internal/classpath/InstrumentingClasspathFileTransformer.java

    import org.gradle.internal.classpath.types.InstrumentationTypeRegistry;
    import org.gradle.internal.file.FileType;
    import org.gradle.internal.hash.HashCode;
    import org.gradle.internal.hash.Hasher;
    import org.gradle.internal.hash.Hashing;
    import org.gradle.internal.snapshot.FileSystemLocationSnapshot;
    
    import java.io.File;
    import java.io.IOException;
    
    import static java.lang.String.format;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Feb 27 13:36:38 UTC 2024
    - 6K bytes
    - Viewed (0)
  9. platforms/core-runtime/base-services/build.gradle.kts

    }
    
    moduleIdentity.createBuildReceipt()
    
    dependencies {
        api(projects.concurrent)
        api(projects.stdlibJavaExtensions)
        api(projects.fileTemp)
        api(projects.serviceProvider)
        api(project(":hashing"))
        api(project(":build-operations"))
        api(libs.inject)
        api(libs.jsr305)
        api(libs.guava)
    
        implementation(projects.io)
        implementation(projects.time)
    
        implementation(libs.asm)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jun 10 14:28:48 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  10. subprojects/core/src/main/java/org/gradle/cache/internal/BuildScopeCacheDir.java

    import org.gradle.api.internal.SettingsInternal;
    import org.gradle.initialization.GradleUserHomeDirProvider;
    import org.gradle.initialization.layout.BuildLayout;
    import org.gradle.internal.hash.Hashing;
    
    import java.io.File;
    
    public class BuildScopeCacheDir {
        public static final String UNDEFINED_BUILD = "undefined-build/";
    
        private final File cacheDir;
    
        public BuildScopeCacheDir(
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jan 23 18:02:38 UTC 2024
    - 2.3K bytes
    - Viewed (0)
Back to top