Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 107 for detect (0.23 sec)

  1. guava-tests/benchmark/com/google/common/collect/ImmutableSetHashFloodingDetectionBenchmark.java

                  // There are only maxRunBeforeFallback - 1 elements between here and there,
                  // so even if they were all nonnull, we wouldn't detect a hash flood.  Therefore,
                  // we can skip them all.
                  knownRunStart += maxRunBeforeFallback;
                } else {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Jun 03 20:16:35 GMT 2021
    - 6.8K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/helper/LanguageHelper.java

            if (StringUtil.isBlank(text)) {
                return null;
            }
            final String target = getDetectText(text);
            final LanguageResult result = detector.detect(target);
            if (logger.isDebugEnabled()) {
                logger.debug("detected lang:{}({}) from {}", result, result.getRawScore(), target);
            }
            return getSupportedLanguage(result.getLanguage());
        }
    
    Java
    - Registered: Mon Apr 29 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 5.5K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/ImmutableSet.java

         * log n) on average.
         *
         * <p>The online hash flooding detecting in RegularSetBuilderImpl.add can detect e.g. many
         * exactly matching hash codes, which would cause construction to take O(n^2), but can't detect
         * e.g. hash codes adversarially designed to go into ascending table locations, which keeps
         * construction O(n) (as desired) but then can have O(n) queries later.
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 35.4K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/util/concurrent/CycleDetectingLockFactory.java

    /**
     * The {@code CycleDetectingLockFactory} creates {@link ReentrantLock} instances and {@link
     * ReentrantReadWriteLock} instances that detect potential deadlock by checking for cycles in lock
     * acquisition order.
     *
     * <p>Potential deadlocks detected when calling the {@code lock()}, {@code lockInterruptibly()}, or
     * {@code tryLock()} methods will result in the execution of the {@link Policy} specified when
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Dec 15 19:31:54 GMT 2023
    - 35.9K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/ListsTest.java

        assertEquals("2", iterator.next());
        assertEquals("3", iterator.next());
        assertEquals("4", iterator.next());
        assertEquals(4, iterator.nextIndex());
        try {
          iterator.next();
          fail("did not detect end of list");
        } catch (NoSuchElementException expected) {
        }
        assertEquals(3, iterator.previousIndex());
        assertEquals("4", iterator.previous());
        assertEquals("3", iterator.previous());
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 35.2K bytes
    - Viewed (0)
  6. guava-testlib/test/com/google/common/testing/NullPointerTesterTest.java

        try {
          new NullPointerTester().testInstanceMethods(instance, visibility);
        } catch (AssertionFailedError expected) {
          return;
        }
        fail("Should detect problem in " + instance.getClass().getSimpleName());
      }
    
      private static void shouldFail(Object instance) {
        shouldFail(instance, Visibility.PACKAGE);
        shouldFail(instance, Visibility.PROTECTED);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Nov 16 15:12:31 GMT 2023
    - 47.9K bytes
    - Viewed (0)
  7. guava/src/com/google/common/base/internal/Finalizer.java

     *
     * <p>{@code com.google.common.base.FinalizableReferenceQueue} loads this class in its own class
     * loader. That way, this class doesn't prevent the main class loader from getting garbage
     * collected, and this class can detect when the main class loader has been garbage collected and
     * stop itself.
     */
    // no @ElementTypesAreNonNullByDefault for the reasons discussed above
    public class Finalizer implements Runnable {
    
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Wed Aug 23 12:54:09 GMT 2023
    - 9.4K bytes
    - Viewed (0)
  8. android/guava-testlib/test/com/google/common/testing/anotherpackage/ForwardingWrapperTesterTest.java

    import junit.framework.AssertionFailedError;
    import junit.framework.TestCase;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * Tests for {@link ForwardingWrapperTester}. Live in a different package to detect reflection
     * access issues, if any.
     *
     * @author Ben Yu
     */
    public class ForwardingWrapperTesterTest extends TestCase {
    
      private final ForwardingWrapperTester tester = new ForwardingWrapperTester();
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 15.7K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/base/internal/Finalizer.java

     *
     * <p>{@code com.google.common.base.FinalizableReferenceQueue} loads this class in its own class
     * loader. That way, this class doesn't prevent the main class loader from getting garbage
     * collected, and this class can detect when the main class loader has been garbage collected and
     * stop itself.
     */
    // no @ElementTypesAreNonNullByDefault for the reasons discussed above
    public class Finalizer implements Runnable {
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Aug 23 12:54:09 GMT 2023
    - 9.4K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/eventbus/DeadEvent.java

    /**
     * Wraps an event that was posted, but which had no subscribers and thus could not be delivered.
     *
     * <p>Registering a DeadEvent subscriber is useful for debugging or logging, as it can detect
     * misconfigurations in a system's event distribution.
     *
     * @author Cliff Biffle
     * @since 10.0
     */
    @ElementTypesAreNonnullByDefault
    public class DeadEvent {
    
      private final Object source;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Apr 22 13:05:46 GMT 2021
    - 2.1K bytes
    - Viewed (0)
Back to top