Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 131 - 140 of 1,213 for Given (0.05 seconds)

  1. android/guava/src/com/google/common/util/concurrent/Service.java

      /**
       * Waits for the {@link Service} to reach the {@linkplain State#RUNNING running state} for no more
       * than the given time.
       *
       * @param timeout the maximum time to wait
       * @param unit the time unit of the timeout argument
       * @throws TimeoutException if the service has not reached the given state within the deadline
       * @throws IllegalStateException if the service reaches a state from which it is not possible to
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Dec 21 03:10:51 GMT 2024
    - 10.8K bytes
    - Click Count (0)
  2. cmd/metrics-v3-types.go

    		panic("not all labels were given values")
    	}
    
    	v, ok := m.values[name]
    	if !ok {
    		v = make([]metricValue, 0, 1)
    	}
    	// If valid non zero value set the metrics
    	if value > 0 {
    		m.values[name] = append(v, metricValue{
    			Labels: labelMap,
    			Value:  value,
    		})
    	}
    }
    
    // SetHistogram - sets values for the given MetricName using the provided
    // histogram.
    //
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Feb 28 19:33:08 GMT 2025
    - 15.6K bytes
    - Click Count (0)
  3. src/main/java/org/codelibs/core/convert/StringConversionUtil.java

        /**
         * Converts the given object to a string.
         *
         * @param value
         *            The object to convert
         * @return The converted {@literal String}
         */
        public static String toString(final Object value) {
            return toString(value, null);
        }
    
        /**
         * Converts the given object to a string.
         *
         * @param value
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Thu Jul 31 08:16:49 GMT 2025
    - 5.7K bytes
    - Click Count (0)
  4. src/test/java/jcifs/internal/TreeConnectResponseTest.java

            void setUp() {
                mockResponse = mock(TreeConnectResponse.class);
            }
    
            @Test
            @DisplayName("Should return tree ID")
            void testGetTid() {
                // Given
                when(mockResponse.getTid()).thenReturn(12345);
    
                // When
                int tid = mockResponse.getTid();
    
                // Then
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 24.9K bytes
    - Click Count (0)
  5. cmd/hasher.go

    )
    
    // getSHA256Hash returns SHA-256 hash in hex encoding of given data.
    func getSHA256Hash(data []byte) string {
    	return hex.EncodeToString(getSHA256Sum(data))
    }
    
    // getSHA256Hash returns SHA-256 sum of given data.
    func getSHA256Sum(data []byte) []byte {
    	hash := sha256.New()
    	hash.Write(data)
    	return hash.Sum(nil)
    }
    
    // getMD5Sum returns MD5 sum of given data.
    func getMD5Sum(data []byte) []byte {
    	hash := md5.New()
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri May 27 13:00:19 GMT 2022
    - 1.4K bytes
    - Click Count (0)
  6. src/test/java/jcifs/smb/SmbOperationExceptionTest.java

            assertFalse(exception.isRetryable());
        }
    
        @Test
        @DisplayName("Should create exception with cause")
        void testCreationWithCause() {
            // Given
            Exception cause = new RuntimeException("Original error");
    
            // When
            exception = new SmbOperationException(SmbOperationException.ErrorCode.CONNECTION_FAILED, "Failed to connect", cause);
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 16.1K bytes
    - Click Count (0)
  7. android/guava/src/com/google/common/escape/Escapers.java

        }
    
        /**
         * Adds a replacement string for the given input character. The specified character will be
         * replaced by the given string whenever it occurs in the input, irrespective of whether it lies
         * inside or outside the 'safe' range.
         *
         * @param c the character to be replaced
         * @param replacement the string to replace the given character
         * @return the builder instance
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Dec 22 03:38:46 GMT 2024
    - 6.9K bytes
    - Click Count (0)
  8. src/test/java/jcifs/smb/SmbSessionImplSecurityTest.java

        }
    
        /**
         * Test that concurrent tree operations are thread-safe with CopyOnWriteArrayList.
         */
        @Test
        public void testConcurrentTreeOperationsThreadSafe() throws Exception {
            // Given
            SmbSessionImpl session = new SmbSessionImpl(mockContext, "testhost", "testdomain", mockTransport);
    
            int threadCount = 10;
            int opsPerThread = 100;
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 11K bytes
    - Click Count (0)
  9. guava/src/com/google/common/collect/ImmutableSortedSet.java

        Ordering<E> naturalOrder = (Ordering<E>) Ordering.<Comparable<?>>natural();
        return copyOf(naturalOrder, elements);
      }
    
      /**
       * Returns an immutable sorted set containing the given elements sorted by the given {@code
       * Comparator}. When multiple elements are equivalent according to {@code compareTo()}, only the
       * first one specified is included.
       *
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Sep 23 17:50:58 GMT 2025
    - 39.1K bytes
    - Click Count (0)
  10. scripts/doc_parsing_utils.py

        text: list[str],
        links: list[HtmlLinkInfo],
        original_links: list[HtmlLinkInfo],
        lang_code: str,
    ) -> list[str]:
        """
        Replace HTML links in the given text with the links from the original document.
    
        Adjust URLs for the given language code.
        Fail if the number of links does not match the original.
        """
    
        if len(links) != len(original_links):
            raise ValueError(
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:37:41 GMT 2026
    - 23.5K bytes
    - Click Count (0)
Back to Top