Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 182 for comparing (0.21 sec)

  1. android/guava-tests/benchmark/com/google/common/util/concurrent/StripedBenchmark.java

    import java.util.ArrayList;
    import java.util.Collections;
    import java.util.List;
    import java.util.Random;
    import java.util.concurrent.locks.Lock;
    import java.util.concurrent.locks.ReentrantLock;
    
    /** A benchmark comparing the various striped implementations. */
    @VmOptions({"-Xms12g", "-Xmx12g", "-d64"})
    public class StripedBenchmark {
      private static final Supplier<Lock> LOCK_SUPPLIER =
          new Supplier<Lock>() {
            @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/IteratorTester.java

    import java.util.Collections;
    import java.util.Iterator;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * A utility for testing an Iterator implementation by comparing its behavior to that of a "known
     * good" reference implementation. In order to accomplish this, it's important to test a great
     * variety of sequences of the {@link Iterator#next}, {@link Iterator#hasNext} and {@link
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 4.3K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/ComparatorsTest.java

       * instead of {@code Comparator<? super T>}.
       */
      public void testMinMaxWithSupertypeComparator() {
        Comparator<Number> numberComparator =
            // Can't use Comparator.comparing(Number::intValue) due to Java 7 compatibility.
            new Comparator<Number>() {
              @Override
              public int compare(Number a, Number b) {
                return a.intValue() - b.intValue();
              }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Apr 11 08:42:51 GMT 2024
    - 5.6K bytes
    - Viewed (0)
  4. maven-core/src/main/java/org/apache/maven/lifecycle/DefaultLifecycles.java

            return lifecyclesMap.values().stream()
                    .peek(l -> Objects.requireNonNull(l.getId(), "A lifecycle must have an id."))
                    .sorted(Comparator.comparing(Lifecycle::getId, comparator))
                    .collect(Collectors.toList());
        }
    
        private Map<String, Lifecycle> lookupLifecycles() {
            // TODO: Remove the following code when maven-compat is gone
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 6K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/IteratorTester.java

    import java.util.Collections;
    import java.util.Iterator;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * A utility for testing an Iterator implementation by comparing its behavior to that of a "known
     * good" reference implementation. In order to accomplish this, it's important to test a great
     * variety of sequences of the {@link Iterator#next}, {@link Iterator#hasNext} and {@link
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 4.3K bytes
    - Viewed (0)
  6. tensorflow/c/eager/gradient_checker_test.cc

    // These tests should not be confused with `[*]_grad_test` which compare the
    // result of `gradient_checker` and `[*]_grad`. The tests here test the
    // functionality of `gradient_checker` by comparing the result with expected
    // manual user-provided gradients.
    class GradientCheckerTest
        : public ::testing::TestWithParam<std::tuple<const char*, bool, bool>> {
     protected:
      void SetUp() override {
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri Apr 14 10:03:59 GMT 2023
    - 6.5K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/ObjectCountLinkedHashMap.java

    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * {@code ObjectCountLinkedHashMap} is a subclass of {@code ObjectCountHashMap} with insertion
     * iteration order, and uses arrays to store key objects and count values. Comparing to using a
     * traditional {@code LinkedHashMap} implementation which stores keys and count values as map
     * entries, {@code ObjectCountLinkedHashMap} minimizes object allocation and reduces memory
     * footprint.
     */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jun 01 22:07:10 GMT 2021
    - 5.9K bytes
    - Viewed (0)
  8. .github/ISSUE_TEMPLATE/feature_addition_request.yaml

        attributes:
          label: 3. What would that same code look like if we added your feature?
        validations:
          required: true
    
      - type: markdown
        attributes:
          value: >
            Comparing two approaches to a use case side by side can make it easier to examine the
            differences between them.
    
    
            Additionally, it's very useful to us if you can provide a "straw API" &mdash; what the
    Others
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Nov 17 18:47:47 GMT 2023
    - 5.8K bytes
    - Viewed (0)
  9. docs/en/docs/advanced/security/http-basic-auth.md

    But then the attackers try with username `stanleyjobsox` and password `love123`.
    
    And your application code does something like:
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Jan 11 14:33:05 GMT 2024
    - 5.9K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/helper/ActivityHelper.java

            valueMap.put("action", action.replace('\t', '_').toUpperCase(Locale.ENGLISH));
            valueMap.put("user", user.map(FessUserBean::getUserId).orElse("-"));
            final Comparator<Map.Entry<String, String>> c = Comparator.comparing(Map.Entry::getKey);
            params.entrySet().stream().sorted(c).forEach(e -> {
                valueMap.put(e.getKey(), e.getValue().replace('\t', '_'));
            });
            log(valueMap);
        }
    
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 7.7K bytes
    - Viewed (0)
Back to top