Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 259 for Stuart (0.07 sec)

  1. src/test/java/org/codelibs/fess/suggest/concurrent/DeferredTest.java

                try {
                    Thread.sleep(1000);
                } catch (InterruptedException ignore) {}
                deferred.resolve(new SuggestResponse("", 0, Collections.emptyList(), 0, null));
            });
            th.start();
    
            final CountDownLatch latch = new CountDownLatch(1);
            deferred.promise().then(response -> latch.countDown());
            assertTrue(latch.await(10, TimeUnit.SECONDS));
        }
    
        @Test
    Registered: Wed Jun 12 15:38:08 UTC 2024
    - Last Modified: Thu Feb 22 01:36:54 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  2. src/cmd/cgo/internal/testsanitizers/testdata/msan4.go

    }
    
    */
    import "C"
    
    import (
    	"runtime"
    )
    
    func main() {
    	runtime.MemProfileRate = 1
    	start(100)
    }
    
    func start(i int) {
    	if i == 0 {
    		return
    	}
    	C.poison()
    	// Tie up a thread.
    	// We won't actually wait for this sleep to complete.
    	go func() { C.sleep(1) }()
    	start(i - 1)
    }
    
    //export Nop
    func Nop(*C.char) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 878 bytes
    - Viewed (0)
  3. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/execution/CharSequenceExtensions.kt

    fun CharSequence.linePreservingSubstring_(range: IntRange): Pair<Int, String> {
        val lineCount = take(range.start).count { it == '\n' }
        return lineCount to "\n".repeat(lineCount) + substring(range)
    }
    
    
    internal
    fun CharSequence.linePreservingBlankRanges(ranges: List<IntRange>): String =
        ranges
            .sortedByDescending { it.start }
            .fold(this, CharSequence::linePreservingBlankRange)
            .toString()
    
    
    private
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/io/LineBuffer.java

              line.append(cbuf, start, pos - start);
              finishLine(true);
              start = pos + 1;
              break;
    
            default:
              // do nothing
          }
        }
        line.append(cbuf, start, off + len - start);
      }
    
      /** Called when a line is complete. */
      @CanIgnoreReturnValue
      private boolean finishLine(boolean sawNewline) throws IOException {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 28 20:13:02 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  5. guava/src/com/google/common/io/LineBuffer.java

              line.append(cbuf, start, pos - start);
              finishLine(true);
              start = pos + 1;
              break;
    
            default:
              // do nothing
          }
        }
        line.append(cbuf, start, off + len - start);
      }
    
      /** Called when a line is complete. */
      @CanIgnoreReturnValue
      private boolean finishLine(boolean sawNewline) throws IOException {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 28 20:13:02 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  6. src/cmd/go/internal/robustio/robustio_flaky.go

    			bestErr = err
    			lowestErrno = errno
    		} else if bestErr == nil {
    			bestErr = err
    		}
    
    		if start.IsZero() {
    			start = time.Now()
    		} else if d := time.Since(start) + nextSleep; d >= arbitraryTimeout {
    			break
    		}
    		time.Sleep(nextSleep)
    		nextSleep += time.Duration(rand.Int63n(int64(nextSleep)))
    	}
    
    	return bestErr
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 2.5K bytes
    - Viewed (0)
  7. guava/src/com/google/thirdparty/publicsuffix/TrieParser.java

       * @param encoded The serialized trie.
       * @param start An index in the encoded serialized trie to begin reading characters from.
       * @param builder A map builder to which all entries will be added.
       * @return The number of characters consumed from {@code encoded}.
       */
      private static int doParseTrieToBuilder(
          Deque<CharSequence> stack,
          CharSequence encoded,
          int start,
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Oct 13 19:20:43 UTC 2022
    - 4K bytes
    - Viewed (0)
  8. android/guava/src/com/google/thirdparty/publicsuffix/TrieParser.java

       * @param encoded The serialized trie.
       * @param start An index in the encoded serialized trie to begin reading characters from.
       * @param builder A map builder to which all entries will be added.
       * @return The number of characters consumed from {@code encoded}.
       */
      private static int doParseTrieToBuilder(
          Deque<CharSequence> stack,
          CharSequence encoded,
          int start,
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Oct 13 19:20:43 UTC 2022
    - 4K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/core/log/LoggerTest.java

         */
        @Test
        public void testPerformance() throws Exception {
            final int num = 100;
            long start = System.currentTimeMillis();
            for (int i = 0; i < num; i++) {
                System.out.println("test" + i);
            }
            final long sysout = System.currentTimeMillis() - start;
            start = System.currentTimeMillis();
            for (int i = 0; i < num; i++) {
                logger.fatal("test" + i);
            }
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/base/Stopwatch.java

      private long elapsedNanos;
      private long startTick;
    
      /**
       * Creates (but does not start) a new stopwatch using {@link System#nanoTime} as its time source.
       *
       * @since 15.0
       */
      public static Stopwatch createUnstarted() {
        return new Stopwatch();
      }
    
      /**
       * Creates (but does not start) a new stopwatch, using the specified time source.
       *
       * @since 15.0
       */
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Nov 15 21:38:09 UTC 2022
    - 8.5K bytes
    - Viewed (0)
Back to top