Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 518 for Counter (0.27 sec)

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

        assertEquals(-1, counter.read(new byte[30]));
        assertEquals(20, counter.getCount());
      }
    
      @SuppressWarnings("CheckReturnValue") // calling read() to skip a byte
      public void testMark() throws Exception {
        assertTrue(counter.markSupported());
        assertEquals(10, counter.read(new byte[10]));
        assertEquals(10, counter.getCount());
        counter.mark(5);
        counter.read();
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 3.5K bytes
    - Viewed (0)
  2. tensorflow/c/eager/c_api_experimental_reader.h

    // Test only exports of the monitoring Cell Reader API which allows tests to
    // read current values from streamz counters defined in other modules.
    //
    // The code under test will have created streamz counters like this:
    // auto* streamz = tensorflow::monitoring::Counter<1>::New("name",
    // "description", "label");
    // and then incremented that counter for various values of label:
    // streamz->GetCell("label-value")->IncrementBy(1);
    //
    C
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Apr 20 03:14:47 GMT 2023
    - 2.3K bytes
    - Viewed (0)
  3. 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);
        }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 6.2K bytes
    - Viewed (0)
  4. tensorflow/c/eager/c_api_experimental_reader_test.cc

      auto counter_name = "test/counter0";
      auto* counter = CreateCounter0(counter_name);
      auto* reader = TFE_MonitoringNewCounterReader(counter_name);
      IncrementCounter0(counter);
    
      int64_t actual = TFE_MonitoringReadCounter0(reader);
    
      CHECK_EQ(actual, 1);
    }
    
    TEST(CAPI, MonitoringCellReader1) {
      auto counter_name = "test/counter1";
      auto label_name = "test/label";
      auto* counter = CreateCounter1(counter_name, label_name);
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Apr 20 03:14:47 GMT 2023
    - 2.9K bytes
    - Viewed (0)
  5. android/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);
        }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 6.2K bytes
    - Viewed (0)
  6. .github/actions/people/app/main.py

    class ContributorsResults(BaseModel):
        contributors: Counter
        commenters: Counter
        reviewers: Counter
        translation_reviewers: Counter
        authors: Dict[str, Author]
    
    
    def get_contributors(pr_nodes: List[PullRequestNode]) -> ContributorsResults:
        contributors = Counter()
        commenters = Counter()
        reviewers = Counter()
        translation_reviewers = Counter()
        authors: Dict[str, Author] = {}
    
    Python
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Tue Mar 26 17:38:21 GMT 2024
    - 19.2K bytes
    - Viewed (1)
  7. .github/ISSUE_TEMPLATE/12-telemetry.yml

    description: New telemetry counter or update on an existing one
    title: "x/telemetry/config: proposal title"
    labels: ["Telemetry-Proposal"]
    projects: ["golang/29"]
    body:
    - type: textarea
      attributes:
        label: Counter names
        description: Names of counters to add or update.
      validations:
        required: true
    - type: textarea
      attributes:
        label: Description
        description: What do these counters measure?
      validations:
    Others
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Mon Nov 27 17:23:51 GMT 2023
    - 2.4K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/primitives/ImmutableIntArrayTest.java

          void doIt(ImmutableIntArray.Builder builder, AtomicInteger counter) {
            builder.add(counter.getAndIncrement());
          }
        },
        ADD_ARRAY {
          @Override
          void doIt(ImmutableIntArray.Builder builder, AtomicInteger counter) {
            int[] array = new int[RANDOM.nextInt(10)];
            for (int i = 0; i < array.length; i++) {
              array[i] = counter.getAndIncrement();
            }
            builder.addAll(array);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Jun 01 09:32:35 GMT 2023
    - 18.9K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/io/CountingOutputStreamTest.java

        counter.write(data, 0, 5);
        written += 5;
        assertEquals(written, out.size());
        assertEquals(written, counter.getCount());
    
        counter.write(data, 2, 5);
        written += 5;
        assertEquals(written, out.size());
        assertEquals(written, counter.getCount());
    
        // Test that illegal arguments do not affect count
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 1.9K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/io/CountingOutputStreamTest.java

        counter.write(data, 0, 5);
        written += 5;
        assertEquals(written, out.size());
        assertEquals(written, counter.getCount());
    
        counter.write(data, 2, 5);
        written += 5;
        assertEquals(written, out.size());
        assertEquals(written, counter.getCount());
    
        // Test that illegal arguments do not affect count
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 1.9K bytes
    - Viewed (0)
Back to top