Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 209 for _sum (0.03 sec)

  1. android/guava-testlib/src/com/google/common/collect/testing/SpliteratorTester.java

    1. trySplit.estimateSize(), originalSize));
    2. }
    3. }
    4. if (subsized) {
    5. if (trySplit != null) {
    6. assertEquals(
    7. "sum of estimated sizes of trySplit and original spliterator after trySplit",
    8. originalSize,
    9. trySplit.estimateSize() + spliterator.estimateSize());
    10. } else {
    11. assertEquals(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/SpliteratorTester.java

    1. trySplit.estimateSize(), originalSize));
    2. }
    3. }
    4. if (subsized) {
    5. if (trySplit != null) {
    6. assertEquals(
    7. "sum of estimated sizes of trySplit and original spliterator after trySplit",
    8. originalSize,
    9. trySplit.estimateSize() + spliterator.estimateSize());
    10. } else {
    11. assertEquals(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/collect/testing/google/AbstractMultisetSetCountTester.java

    1. getMultiset().count(element));
    2.  
    3. int size = 0;
    4. for (Multiset.Entry<E> entry : getMultiset().entrySet()) {
    5. size += entry.getCount();
    6. }
    7. assertEquals(
    8. "multiset.size() should be the sum of the counts of all entries",
    9. size,
    10. getMultiset().size());
    11. }
    12.  
    13. /** Call the {@code setCount()} method under test, and check its return value. */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 13K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java

    1. expectAddFailure(multiset, entry);
    2. }
    3. }
    4.  
    5. private static int totalSize(Iterable<? extends Entry<?>> entries) {
    6. int sum = 0;
    7. for (Entry<?> entry : entries) {
    8. sum += entry.getCount();
    9. }
    10. return sum;
    11. }
    12.  
    13. private enum SubMultisetSpec {
    14. TAIL_CLOSED {
    15. @Override
    16. <E> List<Entry<E>> expectedEntries(int targetEntry, List<Entry<E>> entries) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 26.1K bytes
    - Viewed (0)
  5. docs/debugging/xl-meta/main.go

    1. }
    2. if missingAll > 0 {
    3. out += ".incomplete"
    4. fmt.Println(missingAll, "bytes missing.")
    5. } else {
    6. if wantMD5 != "" {
    7. sum := md5.Sum(combined)
    8. gotMD5 := hex.EncodeToString(sum[:])
    9. if gotMD5 != wantMD5 {
    10. fmt.Println("MD5 mismatch. Expected", wantMD5, "got", gotMD5)
    11. out += ".mismatch"
    12. } else {
    13. fmt.Println("MD5 verified.")
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 05 11:57:44 UTC 2024
    - 40.3K bytes
    - Viewed (0)
  6. internal/crypto/error.go

    1. ErrSecretKeyMismatch = Errorf("The secret key does not match the secret key used during upload")
    2.  
    3. // ErrCustomerKeyMD5Mismatch indicates that the SSE-C key MD5 does not match the
    4. // computed MD5 sum. This means that the client provided either the wrong key for
    5. // a certain MD5 checksum or the wrong MD5 for a certain key.
    6. ErrCustomerKeyMD5Mismatch = Errorf("The provided SSE-C key MD5 does not match the computed MD5 of the SSE-C key")
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Mar 28 17:44:56 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/ConcurrentHashMultisetBasherTest.java

    1. * operations at random. Each thread keeps track of the per-key deltas that it's directly
    2. * responsible for; after all threads have completed, we sum the per-key deltas and compare to the
    3. * existing multiset values.
    4. *
    5. * @author mike nonemacher
    6. */
    7.  
    8. public class ConcurrentHashMultisetBasherTest extends TestCase {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  8. guava/src/com/google/common/cache/LocalCache.java

    1. }
    2. sum -= segment.modCount;
    3. }
    4. return sum == 0L;
    5. }
    6. return true;
    7. }
    8.  
    9. long longSize() {
    10. Segment<K, V>[] segments = this.segments;
    11. long sum = 0;
    12. for (Segment<K, V> segment : segments) {
    13. sum += segment.count;
    14. }
    15. return sum;
    16. }
    17.  
    18. @Override
    19. public int size() {
    20. return Ints.saturatedCast(longSize());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 149.2K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/es/config/allcommon/EsAbstractConditionAggregation.java

    1. regA(builder);
    2. return builder;
    3. }
    4.  
    5. protected SumAggregationBuilder regSumA(String name, String field) {
    6. SumAggregationBuilder builder = AggregationBuilders.sum(name).field(field);
    7. regA(builder);
    8. return builder;
    9. }
    10.  
    11. protected ExtendedStatsAggregationBuilder regExtendedStatsA(String name, String field) {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  10. common/Makefile.common.mk

    1. tidy-go:
    2. @find -name go.mod -execdir go mod tidy \;
    3.  
    4. mod-download-go:
    5. @-GOFLAGS="-mod=readonly" find -name go.mod -execdir go mod download \;
    6. # go mod tidy is needed with Golang 1.16+ as go mod download affects go.sum
    7. # https://github.com/golang/go/issues/43994
    8. @find -name go.mod -execdir go mod tidy \;
    9.  
    10. format-go: tidy-go
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Wed Jun 12 14:37:27 UTC 2024
    - 5.9K bytes
    - Viewed (0)
Back to top