Search Options

Results per page
Sort
Preferred Languages
Advance

Results 3451 - 3460 of 5,421 for return (0.03 sec)

  1. src/test/java/jcifs/smb1/smb1/NetShareEnumResponseTest.java

        }
    
        /**
         * Tests the empty write methods to ensure they do nothing and return 0.
         */
        @Test
        void testWriteMethods() {
            NetShareEnumResponse response = new NetShareEnumResponse();
            byte[] dst = new byte[10];
            assertEquals(0, response.writeSetupWireFormat(dst, 0), "writeSetupWireFormat should return 0.");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.4K bytes
    - Viewed (0)
  2. cmd/benchmark-utils_test.go

    	// seeding the random number generator.
    	rand.Seed(UTCNow().UnixNano())
    	// pick a character randomly.
    	return []byte{letterBytes[rand.Intn(len(letterBytes))]}
    }
    
    // picks a random byte and repeats it to size bytes.
    func generateBytesData(size int) []byte {
    	// repeat the random character chosen size
    	return bytes.Repeat(getRandomByte(), size)
    }
    
    // Parallel benchmark utility functions for ObjectLayer.PutObject().
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 8.1K bytes
    - Viewed (0)
  3. samples/guide/src/main/java/okhttp3/recipes/PostStreamingWithPipe.java

              e.printStackTrace();
            }
          }
    
          private String factor(int n) {
            for (int i = 2; i < n; i++) {
              int x = n / i;
              if (x * i == n) return factor(x) + " × " + i;
            }
            return Integer.toString(n);
          }
        };
    
        thread.start();
      }
    
      /**
       * This request body makes it possible for another thread to stream data to the uploading request.
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Jul 06 03:18:15 UTC 2018
    - 3.1K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/util/concurrent/SettableFutureTest.java

      }
    
      public void testSetValue_simpleThreaded() throws Exception {
        SettableFuture<Integer> future = SettableFuture.create();
        assertTrue(future.set(42));
        // Later attempts to set the future should return false.
        assertFalse(future.set(23));
        assertFalse(future.setException(new Exception("bar")));
        assertFalse(future.setFuture(SettableFuture.<Integer>create()));
        // Check that the future has been set properly.
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  5. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/CrawlerClientFactory.java

        /**
         * Retrieves a client that matches the given URL key.
         * @param urlKey The URL key to match.
         * @return The matching CrawlerClient instance, or null if no match is found.
         */
        public CrawlerClient getClient(final String urlKey) {
            if (StringUtil.isBlank(urlKey)) {
                return null;
            }
    
            for (final Map.Entry<Pattern, CrawlerClient> entry : clientMap.entrySet()) {
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 7K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/core/exception/InvocationTargetRuntimeException.java

            this.targetClass = targetClass;
        }
    
        /**
         * Returns the target class.
         *
         * @return Target class
         */
        public Class<?> getTargetClass() {
            return targetClass;
        }
    
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat Jul 05 00:11:05 UTC 2025
    - 1.7K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/fess/mylasta/direction/sponsor/FessActionAdjustmentProviderTest.java

            assertEquals("def", headerMap.get("X-Def"));
        }
    
        private FessConfig createFessConfigWithResponseHeaders(final String text) {
            return new FessConfig.SimpleImpl() {
                @Override
                public String getResponseHeaders() {
                    return text;
                }
            };
        }
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue May 06 09:19:22 UTC 2025
    - 3.9K bytes
    - Viewed (0)
  8. android/guava-tests/benchmark/com/google/common/collect/MapsMemoryBenchmark.java

      @Benchmark
      @Footprint(exclude = Element.class)
      public Map<Element, Element> create() throws Exception {
        return mapsImpl.create(contents);
      }
    
      @Benchmark
      public int iterate() {
        long retVal = 0;
        for (Object entry : map.entrySet()) {
          retVal += entry.hashCode();
        }
        return (int) retVal;
      }
    
      @Benchmark
      public int keyIterate() {
        long retVal = 0;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 3.4K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/collect/testing/google/AbstractBiMapTester.java

        extends AbstractMapTester<K, V> {
    
      @Override
      protected BiMap<K, V> getMap() {
        return (BiMap<K, V>) super.getMap();
      }
    
      static <K extends @Nullable Object, V extends @Nullable Object> Entry<V, K> reverseEntry(
          Entry<K, V> entry) {
        return mapEntry(entry.getValue(), entry.getKey());
      }
    
      @Override
      protected void expectContents(Collection<Entry<K, V>> expected) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  10. buildscripts/test-timeout.sh

    	hdr_timeout=$1
    	body_timeout=$2
    
    	start=$(date +%s)
    	timeout 5m bash -c "gen_put_request $hdr_timeout $body_timeout | netcat 127.0.0.1 $start_port | read" || return -1
    	[ $(($(date +%s) - start)) -gt $((srv_hdr_timeout + srv_idle_timeout + 1)) ] && return -1
    	return 0
    }
    
    function test_minio_with_timeout() {
    	start_port=$1
    
    	export MINIO_ROOT_USER=minio
    	export MINIO_ROOT_PASSWORD=minio123
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Mon Dec 02 13:21:17 UTC 2024
    - 2.9K bytes
    - Viewed (0)
Back to top