Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 110 for calculating (0.06 sec)

  1. CHANGELOG/CHANGELOG-1.20.md

      - Remove redundant log lines and reduce severity around parsing kubeEnv
      - Don't treat nodes created by virtual kubelet as nodes from non-autoscaled node groups
      - Remove redundant logging around calculating node utilization
      - Add configurable `--network` and `--rm` flags for docker in `Makefile`
      - Subtract DaemonSet pods' requests from node allocatable in the denominator while computing node utilization
    Registered: Fri Dec 26 09:05:12 UTC 2025
    - Last Modified: Wed Jan 19 21:05:45 UTC 2022
    - 409K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb1/ServerMessageBlockTest.java

                String result = testBlock.readString(buffer, 0);
    
                assertEquals("Test", result);
            }
    
            @Test
            @DisplayName("Test string wire length calculation")
            void testStringWireLength() {
                testBlock.setUseUnicode(false);
                assertEquals(5, testBlock.stringWireLength("Test", 0));
    
                testBlock.setUseUnicode(true);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 36.2K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateResponseInputValidationTest.java

            });
    
            assertTrue(exception.getMessage().contains("Security buffer extends beyond available data"));
        }
    
        /**
         * Test integer overflow protection in security buffer offset calculation.
         */
        @Test
        public void testSecurityBufferIntegerOverflow() {
            byte[] buffer = createBasicNegotiateResponseBuffer();
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/rdma/RdmaIntegrationTest.java

            assertEquals(1, stats.getOperationErrors(), "Should have 1 error");
            assertEquals(0.25, stats.getErrorRate(), 0.001, "Error rate should be 25% (1 error out of 4 successful operations)");
    
            // Verify latency calculations
            assertTrue(stats.getAverageReadLatencyMicros() > 0, "Read latency should be positive");
            assertTrue(stats.getAverageWriteLatencyMicros() > 0, "Write latency should be positive");
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 23 05:11:12 UTC 2025
    - 13.8K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/session/Smb2SessionSetupRequestTest.java

                int bodyOffset = Smb2Constants.SMB2_HEADER_LENGTH;
                assertEquals(sessionId, SMBUtil.readInt8(buffer, bodyOffset + 16));
            }
        }
    
        @Test
        @DisplayName("Should verify padding calculation")
        void testPaddingCalculation() throws Exception {
            // Given - Create request with token
            byte[] token = new byte[5]; // Non-8-aligned size
            Smb2SessionSetupRequest req =
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 21.2K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/Collections2.java

          calculateNextPermutation();
          return next;
        }
    
        void calculateNextPermutation() {
          j = list.size() - 1;
          int s = 0;
    
          // Handle the special case of an empty list. Skip the calculation of the
          // next permutation.
          if (j == -1) {
            return;
          }
    
          while (true) {
            int q = c[j] + o[j];
            if (q < 0) {
              switchDirection();
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 22.6K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/tree/Smb2TreeConnectRequestTest.java

            assertArrayEquals(pathBytes, actualPath);
        }
    
        @Test
        @DisplayName("Should verify size8 alignment calculation")
        void testSize8Alignment() throws Exception {
            // Given - Various path lengths to test alignment
            String[] paths = { "\\\\a\\b", // Short path
                    "\\\\server\\share", // Medium path
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.6K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/io/Smb2WriteRequestTest.java

            void testVariousRemainingBytes(int remaining) {
                assertDoesNotThrow(() -> request.setRemainingBytes(remaining));
            }
        }
    
        @Nested
        @DisplayName("Size Calculation Tests")
        class SizeCalculationTests {
    
            @Test
            @DisplayName("Should calculate size correctly with no data")
            void testSizeWithNoData() {
                request.setData(new byte[0], 0, 0);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 22.4K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/lock/Smb2LockRequestTest.java

                request.setFileId(secondFileId);
    
                assertDoesNotThrow(() -> request.setFileId(secondFileId));
            }
        }
    
        @Nested
        @DisplayName("Size Calculation Tests")
        class SizeCalculationTests {
    
            @Test
            @DisplayName("Should calculate size correctly with single lock")
            void testSizeWithSingleLock() {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 25.3K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/math/StatsAccumulator.java

          min = otherMin;
          max = otherMax;
        } else {
          count += otherCount;
          if (isFinite(mean) && isFinite(otherMean)) {
            // This is a generalized version of the calculation in add(double) above.
            double delta = otherMean - mean;
            mean += delta * otherCount / count;
            sumOfSquaresOfDeltas += otherSumOfSquaresOfDeltas + delta * (otherMean - mean) * otherCount;
          } else {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Apr 14 16:36:11 UTC 2025
    - 15.8K bytes
    - Viewed (0)
Back to top