- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 240 for calculate (0.07 sec)
-
guava/src/com/google/common/math/Stats.java
* feed values to it as you get them, then call {@link StatsAccumulator#snapshot}. * </ul> * * <p>Static convenience methods called {@code meanOf} are also provided for users who wish to * calculate <i>only</i> the mean. * * <p><b>Java 8+ users:</b> If you are not using any of the variance statistics, you may wish to use * built-in JDK libraries instead of this class. * * @author Pete GillinRegistered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Jul 08 18:32:10 UTC 2025 - 24.8K bytes - Viewed (0) -
impl/maven-core/src/main/java/org/apache/maven/internal/transformation/impl/TransformedArtifact.java
result = null; } else if (!Files.exists(src.getPath())) { Files.deleteIfExists(target); result = ""; } else { String current = ChecksumAlgorithmHelper.calculate( src.getPath(), List.of(new Sha1ChecksumAlgorithmFactory())) .get(Sha1ChecksumAlgorithmFactory.NAME); String existing = sourceState.get();Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Thu Nov 06 18:32:25 UTC 2025 - 4.8K bytes - Viewed (0) -
cmd/signature-v4.go
stringToSign += scope + "\n" canonicalRequestBytes := sha256.Sum256([]byte(canonicalRequest)) stringToSign += hex.EncodeToString(canonicalRequestBytes[:]) return stringToSign } // getSigningKey hmac seed to calculate final signature. func getSigningKey(secretKey string, t time.Time, region string, stype serviceType) []byte { date := sumHMAC([]byte("AWS4"+secretKey), []byte(t.Format(yyyymmdd))) regionBytes := sumHMAC(date, []byte(region))
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Fri Dec 13 22:19:12 UTC 2024 - 12.4K bytes - Viewed (0) -
cmd/bucket-replication-metrics.go
package cmd import ( "fmt" "sync" "sync/atomic" "time" "github.com/rcrowley/go-metrics" ) //go:generate msgp -file $GOFILE const ( // beta is the weight used to calculate exponential moving average beta = 0.1 // Number of averages considered = 1/(1-beta) ) // rateMeasurement captures the transfer details for one bucket/target //msgp:ignore rateMeasurement
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Thu Aug 15 12:04:40 UTC 2024 - 14.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/nego/NegotiateContextResponseTest.java
assertEquals(0, context.getSalt().length); } @ParameterizedTest @ValueSource(ints = { 0, 1, 3, 5, 10 }) @DisplayName("Should calculate size correctly for different hash algo counts") void testSizeCalculation(int hashAlgoCount) { // Arrange int[] hashAlgos = new int[hashAlgoCount]; byte[] salt = new byte[16];
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 19.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/create/CreateContextRequestTest.java
validCount++; } } assertEquals(3, validCount); assertTrue(offset > 0); } @Test @DisplayName("Should calculate combined size for multiple contexts") void testCombinedSizeCalculation() { CreateContextRequest[] contexts = new CreateContextRequest[5]; int[] expectedSizes = { 16, 24, 32, 40, 48 };Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 24.9K bytes - Viewed (0) -
docs/erasure/storage-class/README.md
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Tue Aug 12 18:20:36 UTC 2025 - 5.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/AllocInfoTest.java
// When & Then assertEquals(Long.MIN_VALUE, allocInfo.getCapacity()); assertEquals(Long.MIN_VALUE, allocInfo.getFree()); } @Test @DisplayName("Should calculate used space correctly") void shouldCalculateUsedSpaceCorrectly() { // Given long capacity = 1024L * 1024L * 1024L * 100L; // 100GB long free = 1024L * 1024L * 1024L * 40L; // 40GB
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.8K bytes - Viewed (0) -
internal/disk/stat_linux.go
info.Name = devName qst, err := bfs.SysBlockDeviceQueueStats(devName) if err != nil { // Mostly not found error // Check if there is a parent device: // e.g. if the mount is based on /dev/nvme0n1p1, let's calculate the // real device name (nvme0n1) to get its sysfs information parentDevPath, e := os.Readlink("/sys/class/block/" + devName) if e == nil { parentDev := filepath.Base(filepath.Dir(parentDevPath))
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Sun Sep 28 20:59:21 UTC 2025 - 4.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/tree/Smb2TreeConnectRequestTest.java
// Then assertNotNull(response); assertTrue(response instanceof Smb2TreeConnectResponse); verify(mockContext, times(1)).getConfig(); } @Test @DisplayName("Should calculate correct message size for different paths") void testSize() { // Given String shortPath = "\\\\a\\b"; String longPath = "\\\\server.domain.com\\very_long_share_name_here";Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.6K bytes - Viewed (0)