Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 201 for calculate (0.06 sec)

  1. ci/official/upload.sh

    # This script uploads all staged artifacts from all previous builds in the same
    # job chain to GCS and PyPI.
    source "${BASH_SOURCE%/*}/utilities/setup.sh"
    
    # Calculate the version number for choosing the final directory name. This adds
    # "-devYYYYMMDD" to the end of the version string for nightly builds.
    if [[ "$TFCI_NIGHTLY_UPDATE_VERSION_ENABLE" == 1 ]]; then
    Registered: Tue Sep 09 12:39:10 UTC 2025
    - Last Modified: Tue Mar 04 22:39:12 UTC 2025
    - 2.8K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/create/LeaseV1CreateContextRequestTest.java

            assertEquals(testKey, leaseContext.getLeaseKey());
            assertEquals(testState, leaseContext.getLeaseState());
            assertEquals(0, leaseContext.getLeaseFlags());
        }
    
        @Test
        @DisplayName("Should calculate correct size")
        void testSize() {
            int expectedSize = 16 + 4 + 4 + 32; // header + name + padding + data
            assertEquals(expectedSize, leaseContext.size());
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 00:16:17 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/session/Smb2SessionSetupRequestTest.java

            // Then
            verify(nextMessage).setSessionId(Smb2Constants.UNSPECIFIED_SESSIONID);
            assertTrue(result); // Assuming superclass chain returns true
        }
    
        @Test
        @DisplayName("Should calculate correct message size with token")
        void testSizeWithToken() {
            // Given
            byte[] token = new byte[100];
            Smb2SessionSetupRequest req =
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 21.2K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/fscc/FileSystemInformationTest.java

                assertEquals(8L * 4096L * 512L, smbInfoAllocation.getCapacity());
                assertEquals(8L * 2048L * 512L, smbInfoAllocation.getFree());
            }
    
            @Test
            @DisplayName("Should calculate capacity correctly")
            void testCapacityCalculation() throws SMBProtocolDecodingException {
                byte[] buffer = new byte[24];
                buffer[4] = 0x04; // sectPerAlloc = 4
                buffer[8] = 0x00;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.1K bytes
    - Viewed (0)
  5. 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 Gillin
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 24.8K bytes
    - Viewed (0)
  6. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 24.9K bytes
    - Viewed (0)
  7. 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 Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Dec 13 22:19:12 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  8. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 19.4K bytes
    - Viewed (0)
  9. 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 Sep 07 19:28:11 UTC 2025
    - Last Modified: Thu Aug 15 12:04:40 UTC 2024
    - 14.2K bytes
    - Viewed (0)
  10. docs/erasure/storage-class/README.md

    |               16 |              13 |                 3 |                1.23 |
    |               16 |              14 |                 2 |                1.14 |
    
    You can calculate _approximate_ storage usage ratio using the formula - total drives (N) / data drives (D).
    
    ### Allowed values for STANDARD storage class
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Tue Aug 12 18:20:36 UTC 2025
    - 5.9K bytes
    - Viewed (0)
Back to top