Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 205 for Algorithms (0.28 sec)

  1. api/maven-api-core/src/main/java/org/apache/maven/api/services/ChecksumAlgorithmService.java

         * @param algorithms  The checksum algorithms to use, must not be {@code null}.
         * @return The calculated checksums, indexed by algorithms, never {@code null}.
         * @throws NullPointerException if passed in any parameter is {@code null}.
         */
        @Nonnull
        Map<ChecksumAlgorithm, String> calculate(@Nonnull byte[] data, @Nonnull Collection<ChecksumAlgorithm> algorithms);
    
        /**
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Thu Dec 21 08:05:10 GMT 2023
    - 6.4K bytes
    - Viewed (0)
  2. maven-core/src/main/java/org/apache/maven/internal/impl/DefaultChecksumAlgorithmService.java

                throw new ChecksumAlgorithmServiceException("unsupported algorithm", e);
            }
        }
    
        @Override
        public Map<ChecksumAlgorithm, String> calculate(byte[] data, Collection<ChecksumAlgorithm> algorithms) {
            nonNull(data, "data");
            nonNull(algorithms, "algorithms");
            try {
                return calculate(new ByteArrayInputStream(data), algorithms);
            } catch (IOException e) {
    Java
    - Registered: Sun Mar 24 03:35:10 GMT 2024
    - Last Modified: Thu Dec 21 08:05:10 GMT 2023
    - 7K bytes
    - Viewed (0)
  3. maven-api-impl/src/main/java/org/apache/maven/internal/impl/DefaultChecksumAlgorithmService.java

                throw new ChecksumAlgorithmServiceException("unsupported algorithm", e);
            }
        }
    
        @Override
        public Map<ChecksumAlgorithm, String> calculate(byte[] data, Collection<ChecksumAlgorithm> algorithms) {
            nonNull(data, "data");
            nonNull(algorithms, "algorithms");
            try {
                return calculate(new ByteArrayInputStream(data), algorithms);
            } catch (IOException e) {
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Mon Mar 25 10:50:01 GMT 2024
    - 7.4K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/hash/MessageDigestHashFunctionTest.java

      //  - Some providers may choose to also include alias names.
      //  - For example, the "SHA-1" algorithm might be referred to as "SHA1".
      //  - The algorithm name is not case-sensitive.
      private static final ImmutableMap<String, HashFunction> ALGORITHMS =
          new ImmutableMap.Builder<String, HashFunction>()
              .put("MD5", Hashing.md5())
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 4.2K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/hash/MessageDigestHashFunctionTest.java

      //  - Some providers may choose to also include alias names.
      //  - For example, the "SHA-1" algorithm might be referred to as "SHA1".
      //  - The algorithm name is not case-sensitive.
      private static final ImmutableMap<String, HashFunction> ALGORITHMS =
          new ImmutableMap.Builder<String, HashFunction>()
              .put("MD5", Hashing.md5())
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 4.2K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/math/QuantilesAlgorithm.java

    import java.util.Map;
    
    /**
     * Enumerates several algorithms providing equivalent functionality to {@link Quantiles}, for use in
     * {@link QuantilesBenchmark}. These algorithms each calculate either a single quantile or multiple
     * quantiles. All algorithms modify the dataset they are given (the cost of a copy to avoid this
     * will be constant across algorithms).
     *
     * @author Pete Gillin
     * @since 20.0
     */
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 01 16:30:37 GMT 2022
    - 7.1K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/math/QuantilesAlgorithm.java

    import java.util.Map;
    
    /**
     * Enumerates several algorithms providing equivalent functionality to {@link Quantiles}, for use in
     * {@link QuantilesBenchmark}. These algorithms each calculate either a single quantile or multiple
     * quantiles. All algorithms modify the dataset they are given (the cost of a copy to avoid this
     * will be constant across algorithms).
     *
     * @author Pete Gillin
     * @since 20.0
     */
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 01 16:30:37 GMT 2022
    - 7.1K bytes
    - Viewed (0)
  8. maven-compat/src/main/java/org/apache/maven/repository/legacy/DefaultWagonManager.java

                        // TODO configure on repository
                        int i = 0;
    
                        md5ChecksumObserver = addChecksumObserver(wagon, CHECKSUM_ALGORITHMS[i++]);
                        sha1ChecksumObserver = addChecksumObserver(wagon, CHECKSUM_ALGORITHMS[i++]);
    
                        // reset the retry flag.
                        retry = false;
    
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Thu Sep 14 11:48:15 GMT 2023
    - 29.9K bytes
    - Viewed (0)
  9. docs_src/security/tutorial004_py310.py

            headers={"WWW-Authenticate": "Bearer"},
        )
        try:
            payload = jwt.decode(token, SECRET_KEY, algorithms=[ALGORITHM])
            username: str = payload.get("sub")
            if username is None:
                raise credentials_exception
            token_data = TokenData(username=username)
        except JWTError:
            raise credentials_exception
        user = get_user(fake_users_db, username=token_data.username)
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Mar 26 16:56:53 GMT 2024
    - 4K bytes
    - Viewed (0)
  10. guava-tests/benchmark/com/google/common/math/QuantilesBenchmark.java

    import java.util.Random;
    
    /** Benchmarks some algorithms providing the same functionality as {@link Quantiles}. */
    public class QuantilesBenchmark {
    
      private static final ContiguousSet<Integer> ALL_DECILE_INDEXES =
          ContiguousSet.create(Range.closed(0, 10), DiscreteDomain.integers());
    
      @Param({"10", "100", "1000", "10000", "100000"})
      int datasetSize;
    
      @Param QuantilesAlgorithm algorithm;
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 3.1K bytes
    - Viewed (0)
Back to top