- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 240 for calculate (0.06 sec)
-
api/maven-api-core/src/main/java/org/apache/maven/api/services/ChecksumAlgorithmService.java
@Nonnull Map<ChecksumAlgorithm, String> calculate(@Nonnull byte[] data, @Nonnull Collection<ChecksumAlgorithm> algorithms); /** * Calculates checksums for specified data. * * @param data The content for which to calculate checksums, must not be {@code null}. * @param algorithms The checksum algorithms to use, must not be {@code null}. * @return The calculated checksums, indexed by algorithms, never {@code null}.Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Wed Jul 10 20:52:34 UTC 2024 - 6.4K bytes - Viewed (0) -
internal/bucket/bandwidth/measurement.go
// along with this program. If not, see <http://www.gnu.org/licenses/>. package bandwidth import ( "sync" "sync/atomic" "time" ) const ( // betaBucket is the weight used to calculate exponential moving average betaBucket = 0.1 // Number of averages considered = 1/(1-betaObject) ) // bucketMeasurement captures the bandwidth details for one bucket type bucketMeasurement struct {
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Sat Jun 03 20:41:51 UTC 2023 - 2.9K bytes - Viewed (0) -
src/main/java/jcifs/pac/PacMac.java
/** * Calculates a MAC using the ARCFOUR-HMAC-MD5 algorithm. * This method implements the Microsoft variant of the Kerberos ARCFOUR-HMAC-MD5 checksum. * * @param keyusage the Kerberos key usage number for this operation * @param key the encryption key to use for MAC calculation * @param data the data to calculate the MAC for * @return the calculated MAC bytesRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 9K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/rdma/RdmaStatistics.java
/** * Calculate average send latency in microseconds * * @return average send latency */ public double getAverageSendLatencyMicros() { long sends = rdmaSends.get(); if (sends == 0) { return 0.0; } return totalSendTime.get() / (double) sends / 1000.0; // Convert to microseconds } /**Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 24 00:12:28 UTC 2025 - 10.7K bytes - Viewed (0) -
cmd/update-notifier.go
line2InColor := fmt.Sprintf(msgLine2Fmt, color.CyanBold(updateString)) // calculate the rectangular box size. maxContentWidth := max(line1Length, line2Length) // termWidth is set to a default one to use when we are // not able to calculate terminal width via OS syscalls termWidth := 25 if width, err := pb.GetTerminalWidth(); err == nil { termWidth = width }
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Sat Mar 09 03:07:08 UTC 2024 - 3.6K bytes - Viewed (0) -
impl/maven-core/src/main/java/org/apache/maven/lifecycle/internal/builder/multithreaded/SmartProjectComparator.java
return comparator; } /** * Gets the calculated weight for a project, representing its dependency chain length. * * @param project the project * @return the project's weight (higher means longer dependency chain) */ public long getProjectWeight(MavenProject project) { // First check if weight is already calculated Long existingWeight = projectWeights.get(project);Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Wed Aug 06 12:03:40 UTC 2025 - 4.6K bytes - Viewed (0) -
impl/maven-core/src/test/java/org/apache/maven/internal/impl/DefaultChecksumAlgorithmServiceTest.java
service.select("SHA-1").getCalculator(); calculator.update(ByteBuffer.allocate(0)); assertEquals("da39a3ee5e6b4b0d3255bfef95601890afd80709", calculator.checksum()); } @Test void calculateByte() throws IOException { Map<ChecksumAlgorithmService.ChecksumAlgorithm, String> checksums = service.calculate(
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Wed Mar 26 11:31:00 UTC 2025 - 4.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/nego/EncryptionNegotiateContextTest.java
@Test @DisplayName("Should calculate size for null ciphers") void testSizeWithNullCiphers() { EncryptionNegotiateContext context = new EncryptionNegotiateContext(mockConfig, null); assertEquals(4, context.size()); } @Test @DisplayName("Should calculate size for empty ciphers") void testSizeWithEmptyCiphers() {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.5K bytes - Viewed (0) -
cmd/http-tracer.go
inputBytes += len(k) + len(v) } // Calculate node name nodeName := r.Host if globalIsDistErasure { nodeName = globalLocalNodeName } if host, port, err := net.SplitHostPort(nodeName); err == nil { if port == "443" || port == "80" { nodeName = host } } // Calculate reqPath reqPath := r.URL.RawPath if reqPath == "" { reqPath = r.URL.Path
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Tue Sep 24 17:13:00 UTC 2024 - 6K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/lock/Smb2LockRequestTest.java
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 25.3K bytes - Viewed (0)