Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 51 - 60 of 764 for 1020 (0.02 seconds)

  1. internal/s3select/csv/reader.go

    // return the buffer until the next newline occurs.
    // The last block will be sent along with an io.EOF.
    func (r *Reader) nextSplit(skip int, dst []byte) ([]byte, error) {
    	if cap(dst) < skip {
    		dst = make([]byte, 0, skip+1024)
    	}
    	dst = dst[:skip]
    	if skip > 0 {
    		n, err := io.ReadFull(r.buf, dst)
    		if err != nil && err != io.ErrUnexpectedEOF {
    			// If an EOF happens after reading some but not all the bytes,
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Tue May 27 15:19:03 GMT 2025
    - 8.8K bytes
    - Click Count (0)
  2. src/test/java/jcifs/internal/smb2/tree/Smb2TreeConnectRequestTest.java

        void testVariousPathFormats(String path) throws Exception {
            // Given
            Smb2TreeConnectRequest req = new Smb2TreeConnectRequest(mockConfig, path);
            byte[] buffer = new byte[1024];
    
            // Encode to set headerStart
            req.encode(buffer, 0);
    
            // Then
            byte[] pathBytes = path.getBytes(StandardCharsets.UTF_16LE);
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 18.6K bytes
    - Click Count (0)
  3. src/archive/tar/writer_test.go

    							{Offset: 0e10, Length: 1e10 - 100},
    							{Offset: 1e10, Length: 1e10 - 100},
    							{Offset: 2e10, Length: 1e10 - 100},
    							{Offset: 3e10, Length: 1e10 - 100},
    							{Offset: 4e10, Length: 1e10 - 100},
    							{Offset: 5e10, Length: 1e10 - 100},
    						},
    					}, nil},
    					testReadFrom{fileOps{
    						int64(1e10 - blockSize),
    						strings.Repeat("\x00", blockSize-100) + strings.Repeat("0123456789", 10),
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Mon Dec 15 16:34:13 GMT 2025
    - 40.2K bytes
    - Click Count (0)
  4. src/test/java/jcifs/util/InputValidatorTest.java

        }
    
        @Test
        @DisplayName("Test safe integer multiplication")
        void testSafeMultiplication() {
            assertEquals(100, InputValidator.safeMultiply(10, 10));
            assertEquals(-100, InputValidator.safeMultiply(10, -10));
    
            assertThrows(ArithmeticException.class, () -> InputValidator.safeMultiply(Integer.MAX_VALUE, 2));
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 11.9K bytes
    - Click Count (0)
  5. src/main/java/jcifs/internal/witness/WitnessClient.java

        private static final long MAX_ERROR_BACKOFF = 30000; // Error polling: max 30 seconds
        private static final long BASE_POLL_INTERVAL = 1000;
        private static final long BASE_ERROR_DELAY = 1000;
        private static final int MAX_FAILURE_LIMIT = 5; // Limit failures for backoff calculation
    
        private final InetAddress witnessServer;
        private final int port;
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 20.8K bytes
    - Click Count (0)
  6. src/test/java/jcifs/internal/smb2/create/CreateContextRequestTest.java

                byte[] buffer = new byte[256];
    
                // Encode multiple times
                for (int i = 0; i < 1000; i++) {
                    int result = request.encode(buffer, 0);
                    assertTrue(result > 0);
                }
    
                assertEquals(1000, request.getEncodeCallCount());
            }
    
            @Test
            @DisplayName("Should handle repeated size calls efficiently")
    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)
  7. src/test/java/org/codelibs/fess/chat/ChatClientTest.java

        }
    
        @Test
        public void test_smartSummary_headTailRatio() {
            // Use 1000-char content with summaryMaxChars=500, no sources
            // omitMarker="\n...[omitted]...\n" (17 chars), suffix="", bodyBudget=500-0-17=483
            // headChars = (int)(483 * 0.6) = 289, tailChars = 483 - 289 = 194
            final String content = "A".repeat(1000);
            final ChatMessage msg = ChatMessage.assistantMessage(content);
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 21 06:04:58 GMT 2026
    - 40.6K bytes
    - Click Count (0)
  8. src/test/java/org/codelibs/fess/util/QueryResponseListTest.java

                    return 5; // Only 5 records returned
                }
            };
            qrList.allRecordCount = 100; // Total 100 records
            qrList.calculatePageInfo();
    
            assertEquals(96, qrList.getCurrentStartRecordNumber()); // start + 1
            assertEquals(100, qrList.getCurrentEndRecordNumber()); // Should be capped at allRecordCount
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Jan 11 08:43:05 GMT 2026
    - 40.1K bytes
    - Click Count (0)
  9. src/main/java/org/codelibs/fess/script/groovy/GroovyEngine.java

     * Class-level state (static fields, metaclass mutations) persists across evaluations
     * of the same script. In Fess, scripts are short expressions configured by
     * administrators (e.g., "data1 &gt; 10", "10 * boost1 + boost2") and do not use
     * static state, so this is acceptable.</p>
     *
     * <p>Resource Management: Each cached entry's GroovyClassLoader is closed on
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 26 14:36:23 GMT 2026
    - 11.9K bytes
    - Click Count (0)
  10. docs/smb3-features/03-multi-channel-design.md

            // Score interface for selection (higher is better)
            int score = linkSpeed;  // Base score is link speed
            
            if (rssCapable) score += 1000;   // Prefer RSS-capable
            if (rdmaCapable) score += 2000;  // Prefer RDMA-capable
            if (!ipv6) score += 100;         // Slight preference for IPv4
            
            return score;
        }
        
        private boolean checkRSSCapability() {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 02:53:50 GMT 2025
    - 39.6K bytes
    - Click Count (0)
Back to Top