Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 249 for Counter (0.09 seconds)

  1. guava-tests/test/com/google/common/cache/AbstractCacheTest.java

      public void testSingleSimpleStats() {
        StatsCounter counter = new SimpleStatsCounter();
        for (int i = 0; i < 11; i++) {
          counter.recordHits(1);
        }
        for (int i = 0; i < 13; i++) {
          counter.recordLoadSuccess(i);
        }
        for (int i = 0; i < 17; i++) {
          counter.recordLoadException(i);
        }
        for (int i = 0; i < 23; i++) {
          counter.recordMisses(1);
        }
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Sep 30 22:03:28 GMT 2025
    - 6.4K bytes
    - Click Count (0)
  2. internal/s3select/jstream/decoder_test.go

    	for mv = range decoder.Stream() {
    		if mv.Value != expected[counter].Value {
    			t.Fatalf("got %v, expected: %v", mv.Value, expected[counter])
    		}
    		if mv.ValueType != expected[counter].ValueType {
    			t.Fatalf("got %v value type, expected: %v value type", mv.ValueType, expected[counter].ValueType)
    		}
    		counter++
    		t.Logf("depth=%d offset=%d len=%d (%v)", mv.Depth, mv.Offset, mv.Length, mv.Value)
    	}
    
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 6.6K bytes
    - Click Count (0)
  3. tests/compose.yml

              echo "Database initialized successfully";
              break;
            fi;
            echo "Waiting for database to be ready... ($$counter/12)";
            sleep 5;
            counter=$$(($$counter + 1));
          done;
          # timeout handling
          if [ $$counter -gt 20 ]; then
            echo "Error: Database failed to start within timeout";
            exit 1;
          fi;
    Created: Sun Dec 28 09:35:17 GMT 2025
    - Last Modified: Mon Aug 04 04:07:30 GMT 2025
    - 1.9K bytes
    - Click Count (0)
  4. android/guava-tests/test/com/google/common/primitives/ImmutableDoubleArrayTest.java

          void doIt(ImmutableDoubleArray.Builder builder, AtomicInteger counter) {
            builder.add(counter.getAndIncrement());
          }
        },
        ADD_ARRAY {
          @Override
          void doIt(ImmutableDoubleArray.Builder builder, AtomicInteger counter) {
            double[] array = new double[random.nextInt(10)];
            for (int i = 0; i < array.length; i++) {
              array[i] = counter.getAndIncrement();
            }
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 21.5K bytes
    - Click Count (0)
  5. scripts/people.py

        return graphql_response.data.repository.discussions.edges
    
    
    class DiscussionExpertsResults(BaseModel):
        commenters: Counter[str]
        last_month_commenters: Counter[str]
        three_months_commenters: Counter[str]
        six_months_commenters: Counter[str]
        one_year_commenters: Counter[str]
        authors: dict[str, Author]
    
    
    def get_discussion_nodes(settings: Settings) -> list[DiscussionsNode]:
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 21:25:59 GMT 2025
    - 12.3K bytes
    - Click Count (0)
  6. android/guava-tests/test/com/google/common/primitives/ImmutableLongArrayTest.java

          void doIt(ImmutableLongArray.Builder builder, AtomicLong counter) {
            builder.add(counter.getAndIncrement());
          }
        },
        ADD_ARRAY {
          @Override
          void doIt(ImmutableLongArray.Builder builder, AtomicLong counter) {
            long[] array = new long[random.nextInt(10)];
            for (int i = 0; i < array.length; i++) {
              array[i] = counter.getAndIncrement();
            }
            builder.addAll(array);
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 20.5K bytes
    - Click Count (0)
  7. src/test/java/jcifs/internal/smb2/Smb2EncryptionContextTest.java

            // For GCM, last 4 bytes should contain incrementing counter
            ByteBuffer buffer1 = ByteBuffer.wrap(nonce1, 12, 4).order(java.nio.ByteOrder.LITTLE_ENDIAN);
            ByteBuffer buffer2 = ByteBuffer.wrap(nonce2, 12, 4).order(java.nio.ByteOrder.LITTLE_ENDIAN);
            int counter1 = buffer1.getInt();
            int counter2 = buffer2.getInt();
    
            assertEquals(counter1 + 1, counter2, "Counter should increment between nonces");
        }
    
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 44.1K bytes
    - Click Count (0)
  8. guava-tests/test/com/google/common/io/MultiReaderTest.java

        String testString = "abcdefgh";
        CharSource source = newCharSource(testString);
        int[] counter = new int[1];
        CharSource reader =
            new CharSource() {
              @Override
              public Reader openStream() throws IOException {
                if (counter[0]++ != 0) {
                  throw new IllegalStateException("More than one source open");
                }
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue May 13 18:46:00 GMT 2025
    - 3.7K bytes
    - Click Count (0)
  9. scripts/contributors.py

    
    class ContributorsResults(BaseModel):
        contributors: Counter[str]
        translation_reviewers: Counter[str]
        translators: Counter[str]
        authors: dict[str, Author]
    
    
    def get_contributors(pr_nodes: list[PullRequestNode]) -> ContributorsResults:
        contributors = Counter[str]()
        translation_reviewers = Counter[str]()
        translators = Counter[str]()
        authors: dict[str, Author] = {}
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Tue Dec 16 12:34:01 GMT 2025
    - 8.6K bytes
    - Click Count (0)
  10. guava-tests/test/com/google/common/io/MultiInputStreamTest.java

      }
    
      public void testOnlyOneOpen() throws Exception {
        ByteSource source = newByteSource(0, 50);
        int[] counter = new int[1];
        ByteSource checker =
            new ByteSource() {
              @Override
              public InputStream openStream() throws IOException {
                if (counter[0]++ != 0) {
                  throw new IllegalStateException("More than one source open");
                }
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Oct 28 18:44:53 GMT 2025
    - 4.7K bytes
    - Click Count (0)
Back to Top