Search Options

Results per page
Sort
Preferred Languages
Advance

Results 281 - 290 of 4,817 for new2 (0.04 sec)

  1. guava-tests/test/com/google/common/io/PatternFilenameFilterTest.java

     */
    public class PatternFilenameFilterTest extends TestCase {
    
      public void testSyntaxException() {
        assertThrows(PatternSyntaxException.class, () -> new PatternFilenameFilter("("));
      }
    
      public void testAccept() {
        File dir = new File("foo");
        FilenameFilter filter = new PatternFilenameFilter("a+");
        assertTrue(filter.accept(dir, "a"));
        assertTrue(filter.accept(dir, "aaaa"));
        assertFalse(filter.accept(dir, "b"));
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 2K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/es/config/cbean/ca/bs/BsCrawlingInfoParamCA.java

            CrawlingInfoParamCQ cq = new CrawlingInfoParamCQ();
            if (queryLambda != null) {
                queryLambda.callback(cq);
            }
            FilterAggregationBuilder builder = regFilterA(name, cq.getQuery());
            if (opLambda != null) {
                opLambda.callback(builder);
            }
            if (aggsLambda != null) {
                CrawlingInfoParamCA ca = new CrawlingInfoParamCA();
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 28.8K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/testing/ArbitraryInstances.java

              // io types
              .put(InputStream.class, new ByteArrayInputStream(new byte[0]))
              .put(ByteArrayInputStream.class, new ByteArrayInputStream(new byte[0]))
              .put(Readable.class, new StringReader(""))
              .put(Reader.class, new StringReader(""))
              .put(StringReader.class, new StringReader(""))
              .put(Buffer.class, ByteBuffer.allocate(0))
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 20.8K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/reflect/MutableTypeToInstanceMapTest.java

      @AndroidIncompatible // problem with suite builders on Android
      public static Test suite() {
        TestSuite suite = new TestSuite();
        suite.addTestSuite(MutableTypeToInstanceMapTest.class);
    
        suite.addTest(
            MapTestSuiteBuilder.using(
                    new TestTypeToInstanceMapGenerator() {
                      // Other tests will verify what real, warning-free usage looks like
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 22 17:15:24 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/testing/EqualsTester.java

     * that are equal to each other but unequal to the objects in any other group. For example:
     *
     * <pre>
     * new EqualsTester()
     *     .addEqualityGroup(new User("page"), new User("page"))
     *     .addEqualityGroup(new User("sergey"))
     *     .testEquals();
     * </pre>
     *
     * <p>This tests:
     *
     * <ul>
     *   <li>comparing each object against itself returns true
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 31 19:11:50 UTC 2023
    - 6K bytes
    - Viewed (0)
  6. impl/maven-core/src/main/java/org/apache/maven/graph/ProjectSelector.java

                MavenExecutionRequest request, List<MavenProject> projects, Set<String> projectSelectors) {
            Set<MavenProject> resolvedOptionalProjects = new LinkedHashSet<>();
            Set<String> unresolvedOptionalSelectors = new HashSet<>();
            File baseDirectory = getBaseDirectoryFromRequest(request);
            for (String selector : projectSelectors) {
                Optional<MavenProject> optSelectedProject =
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  7. android/guava-tests/benchmark/com/google/common/math/StatsBenchmark.java

              sumOfSquaresOfDeltas = t;
            }
            return new MeanAndVariance(mean, sumOfSquaresOfDeltas / values.length);
          }
        },
        KNUTH {
          @Override
          MeanAndVariance variance(double[] values, MeanAlgorithm meanAlgorithm) {
            if (meanAlgorithm != MeanAlgorithm.KNUTH) {
              throw new SkipThisScenarioException();
            }
            double mean = values[0];
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 4.7K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/NtlmPasswordAuthenticator.java

            if ( tc.getConfig().isUseRawNTLM() ) {
                return setupTargetName(tc, host, new NtlmContext(tc, this, doSigning));
            }
    
            try {
                if ( initialToken != null && initialToken.length > 0 ) {
                    NegTokenInit tok = new NegTokenInit(initialToken);
                    if ( log.isDebugEnabled() ) {
                        log.debug("Have initial token " + tok);
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Tue Jul 07 12:07:20 UTC 2020
    - 18.8K bytes
    - Viewed (0)
  9. guava/src/com/google/common/util/concurrent/Striped.java

       * @return a new {@code Striped<Lock>}
       */
      public static Striped<Lock> lock(int stripes) {
        return custom(stripes, PaddedLock::new);
      }
    
      /**
       * Creates a {@code Striped<Lock>} with lazily initialized, weakly referenced locks. Every lock is
       * reentrant.
       *
       * @param stripes the minimum number of stripes (locks) required
       * @return a new {@code Striped<Lock>}
       */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jun 26 12:58:35 UTC 2024
    - 20.6K bytes
    - Viewed (0)
  10. internal/ringbuffer/ring_buffer_benchmark_test.go

    	"testing"
    )
    
    func BenchmarkRingBuffer_Sync(b *testing.B) {
    	rb := New(1024)
    	data := []byte(strings.Repeat("a", 512))
    	buf := make([]byte, 512)
    
    	b.ResetTimer()
    	for i := 0; i < b.N; i++ {
    		rb.Write(data)
    		rb.Read(buf)
    	}
    }
    
    func BenchmarkRingBuffer_AsyncRead(b *testing.B) {
    	// Pretty useless benchmark, but it's here for completeness.
    	rb := New(1024)
    	data := []byte(strings.Repeat("a", 512))
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed May 15 00:11:04 UTC 2024
    - 1.7K bytes
    - Viewed (0)
Back to top