Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 611 - 620 of 762 for chunks (0.08 seconds)

  1. android/guava-tests/test/com/google/common/io/ByteStreamsTest.java

        assertThat(out.toByteArray()).isEqualTo(expected);
      }
    
    
      public void testCopyFileChannel() throws IOException {
        int chunkSize = 14407; // Random prime, unlikely to match any internal chunk size
        ByteArrayOutputStream out = new ByteArrayOutputStream();
        WritableByteChannel outChannel = Channels.newChannel(out);
    
        File testFile = createTempFile();
        byte[] dummyData = newPreFilledByteArray(chunkSize);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 17 19:26:39 GMT 2026
    - 22K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/graph/AbstractStandardUndirectedNetworkTest.java

            assertThrows(
                IllegalArgumentException.class, () -> networkAsMutableNetwork.addEdge(N1, N1, E11));
        assertThat(e).hasMessageThat().contains(ERROR_SELF_LOOP);
      }
    
      /**
       * This test checks an implementation dependent feature. It tests that the method {@code addEdge}
       * will silently add the missing nodes to the graph, then add the edge connecting them. We are not
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Sep 30 17:09:51 GMT 2025
    - 19K bytes
    - Click Count (0)
  3. src/main/java/jcifs/internal/smb2/multichannel/ChannelManager.java

            this.maxChannels = getMaxChannelsFromConfig(config);
            this.channelCounter = new AtomicInteger(0);
            this.multiChannelEnabled = false;
    
            // Schedule periodic health checks
            scheduler.scheduleAtFixedRate(this::performHealthCheck, 10, 10, TimeUnit.SECONDS);
    
            // Schedule interface discovery
            scheduler.scheduleAtFixedRate(this::discoverInterfaces, 0, 30, TimeUnit.SECONDS);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 21 11:13:46 GMT 2025
    - 20K bytes
    - Click Count (0)
  4. guava/src/com/google/common/base/Strings.java

      }
    
      /**
       * Returns the given {@code template} string with each occurrence of {@code "%s"} replaced with
       * the corresponding argument value from {@code args}; or, if the placeholder and argument counts
       * do not match, returns a best-effort form of that string. Will not throw an exception under
       * normal conditions.
       *
       * <p><b>Note:</b> For most string-formatting needs, use {@link String#format String.format},
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Jan 29 22:14:05 GMT 2026
    - 12.5K bytes
    - Click Count (0)
  5. src/test/java/jcifs/smb/SmbFileTest.java

            @Test
            void testMkdir() throws SmbException, CIFSException {
                // Arrange
                when(mockTreeHandle.isSMB2()).thenReturn(false);
    
                // Mock exists() check - mkdir checks if directory already exists
                SmbComQueryInformationResponse existsResponse = mock(SmbComQueryInformationResponse.class);
                when(existsResponse.getAttributes()).thenReturn(0); // Not found
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 20.8K bytes
    - Click Count (0)
  6. cmd/admin-router.go

    	noGZFlag = 1 << iota
    
    	// this flag enables tracing body and headers instead of just headers
    	traceAllFlag
    
    	// pass this flag to skip checking if object layer is available
    	noObjLayerFlag
    )
    
    // Has checks if the given flag is enabled in `h`.
    func (h hFlag) Has(flag hFlag) bool {
    	// Use bitwise-AND and check if the result is non-zero.
    	return h&flag != 0
    }
    
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Oct 10 18:57:03 GMT 2025
    - 26.7K bytes
    - Click Count (0)
  7. src/main/java/org/codelibs/fess/helper/DocumentHelper.java

        protected int getMaxSymbolTermSize() {
            final FessConfig fessConfig = ComponentUtil.getFessConfig();
            return fessConfig.getCrawlerDocumentMaxSymbolTermSizeAsInteger();
        }
    
        /**
         * Checks if duplicate term removal is enabled in configuration.
         *
         * @return true if duplicate terms should be removed, false otherwise
         */
        protected boolean isDuplicateTermRemoved() {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Mon Mar 30 14:27:04 GMT 2026
    - 17.4K bytes
    - Click Count (0)
  8. android/guava-tests/test/com/google/common/graph/AbstractStandardUndirectedNetworkTest.java

            assertThrows(
                IllegalArgumentException.class, () -> networkAsMutableNetwork.addEdge(N1, N1, E11));
        assertThat(e).hasMessageThat().contains(ERROR_SELF_LOOP);
      }
    
      /**
       * This test checks an implementation dependent feature. It tests that the method {@code addEdge}
       * will silently add the missing nodes to the graph, then add the edge connecting them. We are not
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Sep 30 17:09:51 GMT 2025
    - 18.6K bytes
    - Click Count (0)
  9. cmd/metrics.go

    			closer.Close()
    		}
    	})
    }
    
    // NoAuthMiddleware no auth middle ware.
    func NoAuthMiddleware(h http.Handler) http.Handler {
    	return h
    }
    
    // AuthMiddleware checks if the bearer token is valid and authorized.
    func AuthMiddleware(h http.Handler) http.Handler {
    	return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Oct 24 04:06:31 GMT 2025
    - 16.7K bytes
    - Click Count (0)
  10. guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedArrayBlockingQueue.java

           * only if this iterator passed across threads,
           * which we don't support anyway.
           */
          return nextIndex >= 0;
        }
    
        /**
         * Checks whether nextIndex is valid; if so setting nextItem. Stops iterator when either hits
         * putIndex or sees null item.
         */
        private void checkNext() {
          if (nextIndex == putIndex) {
            nextIndex = -1;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 23 21:06:42 GMT 2026
    - 22.4K bytes
    - Click Count (0)
Back to Top