Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 122 for dummy (0.02 sec)

  1. guava-tests/benchmark/com/google/common/cache/SegmentBenchmark.java

      @Benchmark
      int time(int reps) {
        int dummy = 0;
        AtomicReferenceArray<ReferenceEntry<Object, Object>> oldTable = segment.table;
        for (int i = 0; i < reps; i++) {
          // TODO(b/145386688): This access should be guarded by 'this.segment', which is not currently
          // held
          segment.expand();
          segment.table = oldTable;
          dummy += segment.count;
        }
        return dummy;
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 23 16:59:39 UTC 2019
    - 2.1K bytes
    - Viewed (0)
  2. android/guava-tests/benchmark/com/google/common/cache/LoadingCacheSingleThreadBenchmark.java

        requests.set(0);
        misses.set(0);
      }
    
      @Benchmark
      int time(int reps) {
        int dummy = 0;
        for (int i = 0; i < reps; i++) {
          dummy += cache.getUnchecked(nextRandomKey());
        }
        requests.addAndGet(reps);
        return dummy;
      }
    
      private int nextRandomKey() {
        int a = random.nextInt(max);
    
        /*
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 3.4K bytes
    - Viewed (0)
  3. android/guava-tests/benchmark/com/google/common/base/LazyStackTraceBenchmark.java

        };
    
        boolean timeIt(int reps, int breakAt) {
          boolean dummy = false;
          for (int i = 0; i < reps; i++) {
            int f = 0;
            Throwable t = new Throwable();
            for (StackTraceElement ste : getStackTrace(t)) {
              dummy |= ste == duh;
              if (f++ == breakAt) {
                break;
              }
            }
          }
          return dummy;
        }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 2.5K bytes
    - Viewed (0)
  4. guava-tests/benchmark/com/google/common/base/LazyStackTraceBenchmark.java

        };
    
        boolean timeIt(int reps, int breakAt) {
          boolean dummy = false;
          for (int i = 0; i < reps; i++) {
            int f = 0;
            Throwable t = new Throwable();
            for (StackTraceElement ste : getStackTrace(t)) {
              dummy |= ste == duh;
              if (f++ == breakAt) {
                break;
              }
            }
          }
          return dummy;
        }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 2.5K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/MapMakerInternalMap.java

      static class StrongKeyDummyValueEntry<K>
          extends AbstractStrongKeyEntry<K, Dummy, StrongKeyDummyValueEntry<K>>
          implements StrongValueEntry<K, Dummy, StrongKeyDummyValueEntry<K>> {
    
        private StrongKeyDummyValueEntry(K key, int hash) {
          super(key, hash);
        }
    
        @Override
        public final Dummy getValue() {
          return Dummy.VALUE;
        }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 20:24:49 UTC 2024
    - 90.8K bytes
    - Viewed (0)
  6. cmd/acl-handlers.go

    	"io"
    	"net/http"
    
    	xhttp "github.com/minio/minio/internal/http"
    	"github.com/minio/minio/internal/logger"
    	"github.com/minio/mux"
    	"github.com/minio/pkg/v3/policy"
    )
    
    // Data types used for returning dummy access control
    // policy XML, these variables shouldn't be used elsewhere
    // they are only defined to be used in this file alone.
    type grantee struct {
    	XMLNS       string `xml:"xmlns:xsi,attr"`
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/curl/io/IOIntegrationTest.java

                return new ByteArrayInputStream(new byte[100]); // dummy payload
            }
        }
    
        @Test
        public void test_TmpFileHasBeenDeletedAfterResponseWasClosed() throws Exception {
            // ## Arrange ##
            CurlRequest req = new MockCurlRequest(Curl.Method.POST, "http://dummy");
            req.threshold(0); // always create tmp file
    
            // ## Act ##
    Registered: Thu Oct 31 02:32:13 UTC 2024
    - Last Modified: Mon Nov 14 21:05:19 UTC 2022
    - 3.4K bytes
    - Viewed (0)
  8. guava-tests/benchmark/com/google/common/cache/ChainBenchmark.java

      }
    
      @SuppressWarnings("GuardedBy")
      @Benchmark
      int time(int reps) {
        int dummy = 0;
        for (int i = 0; i < reps; i++) {
          // TODO(b/145386688): This access should be guarded by 'this.segment', which is not currently
          // held
          segment.removeEntryFromChain(chain, head);
          dummy += segment.count;
        }
        return dummy;
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 17 15:19:38 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/Interners.java

                @SuppressWarnings("unchecked")
                E result = (E) canonical;
                return result;
              }
            }
    
            // didn't see it, trying to put it instead...
            Dummy sneaky = map.putIfAbsent(sample, Dummy.VALUE);
            if (sneaky == null) {
              return sample;
            } else {
              /* Someone beat us to it! Trying again...
               *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Mar 13 14:30:51 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  10. compat/maven-compat/src/test/resources/inheritance-repo/t08/maven-test/poms/t08-a-1.0.pom

      <artifactId>t08-a</artifactId>
      <packaging>jar</packaging>
      <version>1.0</version>
      <repositories>
        <repository>
          <id>central</id>
          <name>Fake Maven Central Repository</name>
          <url>file://dummy</url>
        </repository>
      </repositories>
      <dependencies>
        <dependency>
          <groupId>maven-test</groupId>
          <artifactId>t08-b</artifactId>
          <version>1.0</version>
          <type>jar</type>
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 572 bytes
    - Viewed (0)
Back to top