Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 1,470 for given (0.22 sec)

  1. guava-tests/test/com/google/common/util/concurrent/AtomicDoubleTest.java

        }
      }
    
      /** getAndSet returns previous value and sets to given value */
      public void testGetAndSet() {
        double prev = Math.E;
        AtomicDouble at = new AtomicDouble(prev);
        for (double x : VALUES) {
          assertBitEquals(prev, at.getAndSet(x));
          prev = x;
        }
      }
    
      /** getAndAdd returns previous value and adds given value */
      public void testGetAndAdd() {
        for (double x : VALUES) {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Feb 09 22:57:07 GMT 2022
    - 10.2K bytes
    - Viewed (0)
  2. cni/pkg/nodeagent/pod_cache.go

    		log.Debug("netns inode mismatch, using the new one")
    	}
    
    	p.addToCacheUnderLock(uid, workload)
    	return workload.Netns
    }
    
    // Update the cache with the given uid and nspath. Return the Netns for the given uid.
    // If uid is already present, a cached Netns is returned, and the given nspath is ignored.
    func (p *podNetnsCache) Get(uid string) Netns {
    	// lock current snapshot pod map
    	p.mu.RLock()
    	defer p.mu.RUnlock()
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri Apr 12 21:47:31 GMT 2024
    - 4.5K bytes
    - Viewed (0)
  3. cmd/metrics-v3-types.go

    	}
    
    	if len(labels)/2 != len(validLabels) {
    		panic(fmt.Sprintf("not all labels were given values"))
    	}
    
    	v, ok := m.values[name]
    	if !ok {
    		v = make([]metricValue, 0, 1)
    	}
    	m.values[name] = append(v, metricValue{
    		Labels: labelMap,
    		Value:  value,
    	})
    }
    
    // SetHistogram - sets values for the given MetricName using the provided
    // histogram.
    //
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Mar 10 09:15:15 GMT 2024
    - 14.6K bytes
    - Viewed (0)
  4. cmd/hasher.go

    )
    
    // getSHA256Hash returns SHA-256 hash in hex encoding of given data.
    func getSHA256Hash(data []byte) string {
    	return hex.EncodeToString(getSHA256Sum(data))
    }
    
    // getSHA256Hash returns SHA-256 sum of given data.
    func getSHA256Sum(data []byte) []byte {
    	hash := sha256.New()
    	hash.Write(data)
    	return hash.Sum(nil)
    }
    
    // getMD5Sum returns MD5 sum of given data.
    func getMD5Sum(data []byte) []byte {
    	hash := md5.New()
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri May 27 13:00:19 GMT 2022
    - 1.4K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/hash/AbstractByteHasher.java

      /** Updates this hasher with the given byte. */
      protected abstract void update(byte b);
    
      /** Updates this hasher with the given bytes. */
      protected void update(byte[] b) {
        update(b, 0, b.length);
      }
    
      /** Updates this hasher with {@code len} bytes starting at {@code off} in the given buffer. */
      protected void update(byte[] b, int off, int len) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Jun 15 20:59:00 GMT 2022
    - 3.5K bytes
    - Viewed (0)
  6. build-logic/binary-compatibility/src/test/groovy/gradlebuild/binarycompatibility/PublicAPIRulesTest.groovy

        }
    
        def cleanup() {
            repository?.close()
        }
    
        def "each new #apiElement requires a @Incubating annotation"() {
            given:
            JApiCompatibility jApiType = getProperty(jApiTypeName)
            def rule = withContext(new IncubatingMissingRule([:]))
            def annotations = []
            jApiType.annotations >> annotations
    
            when:
    Groovy
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Fri Dec 01 20:12:19 GMT 2023
    - 16K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/io/SourceSinkFactory.java

      /**
       * Returns the data to expect the source or sink to contain given the data that was used to create
       * the source or written to the sink. Typically, this will just return the input directly, but in
       * some cases it may alter the input. For example, if the factory returns a sliced view of a
       * source created with some given bytes, this method would return a subsequence of the given
       * (byte[]) data.
       */
      T getExpected(T data);
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 3K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionToArrayTester.java

            "toArray(sameSizeE[]) should return the given array", array, collection.toArray(array));
        expectArrayContentsAnyOrder(createSamplesArray(), array);
      }
    
      @CollectionFeature.Require(KNOWN_ORDER)
      public void testToArray_rightSizedArray_ordered() {
        E[] array = getSubjectGenerator().createArray(getNumElements());
        assertSame(
            "toArray(sameSizeE[]) should return the given array", array, collection.toArray(array));
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 7.9K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/collect/testing/testers/CollectionToArrayTester.java

            "toArray(sameSizeE[]) should return the given array", array, collection.toArray(array));
        expectArrayContentsAnyOrder(createSamplesArray(), array);
      }
    
      @CollectionFeature.Require(KNOWN_ORDER)
      public void testToArray_rightSizedArray_ordered() {
        E[] array = getSubjectGenerator().createArray(getNumElements());
        assertSame(
            "toArray(sameSizeE[]) should return the given array", array, collection.toArray(array));
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 7.9K bytes
    - Viewed (0)
  10. tensorflow/c/eager/c_api_test_util.h

    // Return a tensor handle containing 2D matrix containing given data and
    // dimensions
    TFE_TensorHandle* TestMatrixTensorHandleWithInput(TFE_Context* ctx,
                                                      float data[], int64_t dims[],
                                                      int num_dims);
    
    // Get a Matrix TensorHandle with given float values and dimensions
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Jul 17 23:43:59 GMT 2023
    - 7.7K bytes
    - Viewed (0)
Back to top