Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 215 for runcom (0.15 sec)

  1. src/main/java/jcifs/SmbRandomAccess.java

     */
    package jcifs;
    
    
    import java.io.DataInput;
    import java.io.DataOutput;
    
    import jcifs.smb.SmbException;
    
    
    /**
     * File access that exposes random access semantics
     * 
     * @author mbechler
     *
     */
    public interface SmbRandomAccess extends DataOutput, DataInput, AutoCloseable {
    
        /**
         * Close the file
         * 
         * @throws SmbException
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 2.5K bytes
    - Viewed (0)
  2. guava-tests/benchmark/com/google/common/base/CharMatcherBenchmark.java

          populateProb1();
          populateProb2();
          populateChars1();
          populateChars2();
        }
    
        private final Random random;
    
        public CharSamples(Random random) {
          this.random = random;
        }
    
        public int nextCodePoint() {
          int needle = random.nextInt(sum);
          int l = 0;
          int r = prob.length - 1;
          int c = prob.length / 2;
          int lv = prob[l];
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 194.8K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/io/ByteStreamsTest.java

        ByteStreams.copy(inChannel, outChannel);
        assertThat(out.toByteArray()).isEqualTo(expected);
      }
    
    
      public void testCopyFileChannel() throws IOException {
        final int chunkSize = 14407; // Random prime, unlikely to match any internal chunk size
        ByteArrayOutputStream out = new ByteArrayOutputStream();
        WritableByteChannel outChannel = Channels.newChannel(out);
    
        File testFile = createTempFile();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 21.9K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/CompactHashSet.java

          int expectedSize) {
        return new CompactHashSet<>(expectedSize);
      }
    
      /**
       * Maximum allowed false positive probability of detecting a hash flooding attack given random
       * input.
       */
      @VisibleForTesting(
          )
      static final double HASH_FLOODING_FPP = 0.001;
    
      /**
       * Maximum allowed length of a hash table bucket before falling back to a j.u.LinkedHashSet based
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 05 21:38:59 GMT 2024
    - 24K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/helper/AccessTokenHelper.java

    public class AccessTokenHelper {
    
        protected static final String BEARER = "Bearer";
    
        protected Random random = new SecureRandom();
    
        public String generateAccessToken() {
            return RandomStringUtils.random(ComponentUtil.getFessConfig().getApiAccessTokenLengthAsInteger(), 0, 0, true, true, null, random);
        }
    
        public String getAccessTokenFromRequest(final HttpServletRequest request) {
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 2.1K bytes
    - Viewed (0)
  6. guava-tests/benchmark/com/google/common/hash/HashFunctionBenchmark.java

      // Use a statically configured random instance for all of the benchmarks
      private static final Random random = new Random(42);
    
      @Param({"10", "1000", "100000", "1000000"})
      private int size;
    
      @Param HashFunctionEnum hashFunctionEnum;
    
      private byte[] testBytes;
    
      @BeforeExperiment
      void setUp() {
        testBytes = new byte[size];
        random.nextBytes(testBytes);
      }
    
      @Benchmark
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 2.3K bytes
    - Viewed (0)
  7. android/guava-tests/benchmark/com/google/common/collect/BinaryTreeTraverserBenchmark.java

            }
            return root;
          }
        },
        RANDOM {
          /**
           * Generates a tree with topology selected uniformly at random from the topologies of binary
           * trees of the specified size.
           */
          @Override
          Optional<BinaryNode> createTree(int size, Random rng) {
            int[] keys = new int[size];
            for (int i = 0; i < size; i++) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 26 19:18:53 GMT 2019
    - 4.9K bytes
    - Viewed (0)
  8. android/guava-tests/benchmark/com/google/common/collect/HashMultisetAddPresentBenchmark.java

      int[] queries = new int[ARRAY_SIZE];
    
      @BeforeExperiment
      void setUp() {
        Random random = new Random();
        multisets.clear();
        for (int i = 0; i < ARRAY_SIZE; i++) {
          HashMultiset<Integer> multiset = HashMultiset.<Integer>create();
          multisets.add(multiset);
          queries[i] = random.nextInt();
          multiset.add(queries[i]);
        }
      }
    
      @Benchmark
      int add(int reps) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 1.6K bytes
    - Viewed (0)
  9. guava-tests/benchmark/com/google/common/base/WhitespaceMatcherBenchmark.java

        return new String(result);
      }
    
      private static String newTestString(Random random, BitSet bitSet, int percentMatching) {
        final String allMatchingChars = allMatchingChars(bitSet);
        final char[] result = new char[STRING_LENGTH];
        // Fill with matching chars.
        for (int i = 0; i < result.length; i++) {
          result[i] = allMatchingChars.charAt(random.nextInt(allMatchingChars.length()));
        }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed May 16 22:49:59 GMT 2018
    - 3.9K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/io/ByteSourceTester.java

        if (slice && bytes.length > 0) {
          // test a random slice() of the ByteSource
          Random random = new Random();
          byte[] expected = factory.getExpected(bytes);
          // if expected.length == 0, off has to be 0 but length doesn't matter--result will be empty
          int off = expected.length == 0 ? 0 : random.nextInt(expected.length);
          int len = expected.length == 0 ? 4 : random.nextInt(expected.length - off);
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 8.6K bytes
    - Viewed (0)
Back to top