Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 160 for Clip (0.06 sec)

  1. android/guava/src/com/google/common/primitives/UnsignedBytes.java

        checkNotNull(array);
        checkPositionIndexes(fromIndex, toIndex, array.length);
        for (int i = fromIndex; i < toIndex; i++) {
          array[i] = flip(array[i]);
        }
        Arrays.sort(array, fromIndex, toIndex);
        for (int i = fromIndex; i < toIndex; i++) {
          array[i] = flip(array[i]);
        }
      }
    
      /**
       * Sorts the elements of {@code array} in descending order, interpreting them as unsigned 8-bit
       * integers.
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Jun 07 22:25:23 UTC 2024
    - 18.3K bytes
    - Viewed (0)
  2. src/runtime/hash_test.go

    	for z := 0; z < REP; z++ {
    		// pick a random key, hash it
    		k.random(r)
    		h := k.hash()
    
    		// flip each bit, hash & compare the results
    		for i := 0; i < n; i++ {
    			k.flipBit(i)
    			d := h ^ k.hash()
    			k.flipBit(i)
    
    			// record the effects of that bit flip
    			g := &grid[i]
    			for j := 0; j < hashSize; j++ {
    				g[j] += int(d & 1)
    				d >>= 1
    			}
    		}
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 06 17:50:18 UTC 2024
    - 18.4K bytes
    - Viewed (0)
  3. regression-test/src/androidTest/java/okhttp/regression/compare/AndroidHttpEngineTest.kt

                request: UrlRequest,
                info: UrlResponseInfo,
                byteBuffer: ByteBuffer,
              ) {
                println("onReadCompleted ${info.headers.asMap}")
                byteBuffer.flip()
                buffer.write(byteBuffer)
                byteBuffer.clear()
                request.read(byteBuffer)
              }
    
              override fun onSucceeded(
                request: UrlRequest,
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sun Mar 24 13:19:43 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  4. pkg/test/util/retry/retry.go

    		cfg.delayMax = delay * 16
    	}
    }
    
    // Converge sets the number of successes in a row needed to count a success.
    // This is useful to avoid the case where tests like `coin.Flip() == HEADS` will always
    // return success due to random variance.
    func Converge(successes int) Option {
    	return func(cfg *config) {
    		cfg.converge = successes
    	}
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Aug 08 16:43:05 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  5. src/crypto/cipher/example_test.go

    		panic(err)
    	}
    
    	// Note that this example is simplistic in that it omits any
    	// authentication of the encrypted data. If you were actually to use
    	// StreamReader in this manner, an attacker could flip arbitrary bits in
    	// the output.
    
    	// Output: some secret text
    }
    
    func ExampleStreamWriter() {
    	// Load your secret key from a safe place and reuse it across multiple
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 30 16:23:44 UTC 2018
    - 11.8K bytes
    - Viewed (0)
  6. src/test/java/jcifs/tests/NamingTest.java

                    continue;
                }
    
                if ( i == 240 ) {
                    continue;
                }
                buf.put((byte) i);
            }
            buf.flip();
            String str = cs.decode(buf).toString();
            return str;
        }
    
    
        private static String[] splitString ( String str, int maxLen ) {
            int num = str.length() / maxLen;
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Sat Jun 06 10:48:05 UTC 2020
    - 7K bytes
    - Viewed (0)
  7. src/strconv/makeisprint.go

    	return !found
    }
    
    func scan(min, max rune) (rang, except []uint32) {
    	lo := rune(-1)
    	for i := min; ; i++ {
    		if (i > max || !unicode.IsPrint(i)) && lo >= 0 {
    			// End range, but avoid flip flop.
    			if i+1 <= max && unicode.IsPrint(i+1) {
    				except = append(except, uint32(i))
    				continue
    			}
    			rang = append(rang, uint32(lo), uint32(i-1))
    			lo = -1
    		}
    		if i > max {
    			break
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 11 18:56:17 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/hash/HashTestUtils.java

          int maxCount = (int) (4 * Math.log(2 * keyBits * hashBits) + 1);
          while (same != 0xffffffff || diff != 0xffffffff) {
            int key1 = rand.nextInt();
            // flip input bit for key2
            int key2 = key1 ^ (1 << i);
            // get hashes
            int hash1 = function.hashInt(key1).asInt();
            int hash2 = function.hashInt(key2).asInt();
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Oct 10 19:45:10 UTC 2022
    - 25.3K bytes
    - Viewed (0)
  9. src/cmd/distpack/test.go

    	// go.mod are renamed to _go.mod.
    	{name: "**/go.mod", exclude: true},
    	{name: "**/_go.mod"},
    }
    
    func testSrc(a *Archive) {
    	test("source", a, srcRules)
    
    	// Check that no generated files slip in, even if new ones are added.
    	for _, f := range a.Files {
    		if strings.HasPrefix(path.Base(f.Name), "z") {
    			data, err := os.ReadFile(filepath.Join(goroot, strings.TrimPrefix(f.Name, "go/")))
    			if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 01 22:29:19 UTC 2023
    - 5.3K bytes
    - Viewed (0)
  10. cmd/xl-storage-format-utils_test.go

    			if got := hashDeterministicString(m); got == want {
    				t.Errorf("hashDeterministicString() = %v, does not want %v", got, want)
    			}
    
    			// Flip key/value
    			want = hashDeterministicString(m)
    			delete(m, "another")
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Jun 07 22:18:44 UTC 2024
    - 7.1K bytes
    - Viewed (0)
Back to top