Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for maxCnt (0.04 sec)

  1. cmd/erasure-metadata-utils.go

    			continue
    		}
    		errorCounts[err]++
    	}
    
    	maxCnt := 0
    	for err, count := range errorCounts {
    		switch {
    		case maxCnt < count:
    			maxCnt = count
    			maxErr = err
    
    		// Prefer `nil` over other error values with the same
    		// number of occurrences.
    		case maxCnt == count && err == nil:
    			maxErr = err
    		}
    	}
    	return maxCnt, maxErr
    }
    
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 11.7K bytes
    - Viewed (0)
  2. cmd/metacache-set.go

    	}
    
    	filter := func(list []uint64) (commonCount uint64) {
    		maxCnt := 0
    		signatureMap := map[uint64]int{}
    		for _, v := range list {
    			signatureMap[v]++
    		}
    		for ops, count := range signatureMap {
    			if maxCnt < count && commonCount < ops {
    				maxCnt = count
    				commonCount = ops
    			}
    		}
    		if maxCnt < readQuorum {
    			return 0
    		}
    		return commonCount
    	}
    
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Sun Sep 28 20:59:21 UTC 2025
    - 30.7K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/ioctl/SrvCopychunkTest.java

            void testEncodeMaxValues() {
                // Given
                long maxLong = Long.MAX_VALUE;
                int maxInt = Integer.MAX_VALUE;
                SrvCopychunk chunk = new SrvCopychunk(maxLong, maxLong, maxInt);
    
                // When
                int bytesWritten = chunk.encode(buffer, startIndex);
    
                // Then
                assertEquals(EXPECTED_SIZE, bytesWritten);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.4K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/fscc/FileStandardInfoTest.java

            byte[] buffer = new byte[22];
            long maxLong = Long.MAX_VALUE;
            int maxInt = Integer.MAX_VALUE;
    
            // Encode test data
            int offset = 0;
            SMBUtil.writeInt8(maxLong, buffer, offset);
            offset += 8;
            SMBUtil.writeInt8(maxLong, buffer, offset);
            offset += 8;
            SMBUtil.writeInt4(maxInt, buffer, offset);
            offset += 4;
            buffer[offset++] = (byte) 0xFF;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.1K bytes
    - Viewed (0)
  5. internal/s3select/sql/value_test.go

    			},
    			want:   -1,
    			wantOK: true,
    		},
    		{
    			name: "plusone",
    			fields: fields{
    				value: []byte("+1"),
    			},
    			want:   1,
    			wantOK: true,
    		},
    		{
    			name: "maxint",
    			fields: fields{
    				value: []byte(strconv.FormatInt(math.MaxInt64, 10)),
    			},
    			want:   math.MaxInt64,
    			wantOK: true,
    		},
    		{
    			name: "minint",
    			fields: fields{
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 12.4K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/math/IntMathTest.java

          }
        }
      }
    
      private static final BigInteger MAX_INT = BigInteger.valueOf(Integer.MAX_VALUE);
      private static final BigInteger MIN_INT = BigInteger.valueOf(Integer.MIN_VALUE);
    
      private static int saturatedCast(BigInteger big) {
        if (big.compareTo(MAX_INT) > 0) {
          return Integer.MAX_VALUE;
        }
        if (big.compareTo(MIN_INT) < 0) {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 24.1K bytes
    - Viewed (0)
  7. guava/src/com/google/common/net/MediaType.java

       * Format</a> ({@code crw} files), a widely-used "raw image" format for cameras. It is found in
       * {@code /etc/mime.types}, e.g. in <a href=
       * "http://anonscm.debian.org/gitweb/?p=collab-maint/mime-support.git;a=blob;f=mime.types;hb=HEAD"
       * >Debian 3.48-1</a>.
       *
       * @since 15.0
       */
      public static final MediaType CRW = createConstant(IMAGE_TYPE, "x-canon-crw");
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Oct 02 01:46:40 UTC 2025
    - 48K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/net/MediaType.java

       * Format</a> ({@code crw} files), a widely-used "raw image" format for cameras. It is found in
       * {@code /etc/mime.types}, e.g. in <a href=
       * "http://anonscm.debian.org/gitweb/?p=collab-maint/mime-support.git;a=blob;f=mime.types;hb=HEAD"
       * >Debian 3.48-1</a>.
       *
       * @since 15.0
       */
      public static final MediaType CRW = createConstant(IMAGE_TYPE, "x-canon-crw");
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Oct 02 01:46:40 UTC 2025
    - 48K bytes
    - Viewed (0)
Back to top