Search Options

Results per page
Sort
Preferred Languages
Advance

Results 401 - 410 of 3,766 for 0$ (0.05 sec)

  1. guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java

    1. Random random = new Random(0);
    2. Multiset<Integer> elements = HashMultiset.create();
    3. MinMaxPriorityQueue<Integer> queue = MinMaxPriorityQueue.create();
    4. int range = 10_000; // range should be small enough that equal elements occur semi-frequently
    5. for (int iter = 0; iter < reduceIterationsIfGwt(1000); iter++) {
    6. for (int i = 0; i < 100; i++) {
    7. Integer element = random.nextInt(range);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 35.9K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/ImmutableMultimapTest.java

    1. assertEquals(1, multimap.get(0).size());
    2. assertTrue(multimap.get(0).contains(unhashables.e0()));
    3. }
    4.  
    5. public void testUnhashableMixedValues() {
    6. SampleElements<UnhashableObject> unhashables = new Unhashables();
    7. Multimap<Integer, Object> multimap =
    8. ImmutableMultimap.<Integer, Object>of(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb1/smb1/SmbException.java

    1. }
    2. }
    3. } else {
    4. int min = 0;
    5. int max = DOS_ERROR_CODES.length - 1;
    6.  
    7. while( max >= min ) {
    8. int mid = (min + max) / 2;
    9.  
    10. if( errcode > DOS_ERROR_CODES[mid][0] ) {
    11. min = mid + 1;
    12. } else if( errcode < DOS_ERROR_CODES[mid][0] ) {
    13. max = mid - 1;
    14. } else {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 5.5K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/smb1/ServerMessageBlock.java

    1. dst[ dstIndex++ ] = (byte) '\0';
    2. }
    3. System.arraycopy(Strings.getUNIBytes(str), 0, dst, dstIndex, str.length() * 2);
    4. dstIndex += str.length() * 2;
    5. dst[ dstIndex++ ] = (byte) '\0';
    6. dst[ dstIndex++ ] = (byte) '\0';
    7. }
    8. else {
    9. byte[] b = Strings.getOEMBytes(str, this.getConfig());
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Aug 05 09:45:59 UTC 2018
    - 32.7K bytes
    - Viewed (0)
  5. src/main/java/jcifs/dcerpc/DcerpcHandle.java

    1. if ( have != 0 ) {
    2. NdrBuffer hdrBuf = new NdrBuffer(inB, 0);
    3. setupReceivedFragment(hdrBuf);
    4. hdrBuf.setIndex(0);
    5. msg.decode_header(hdrBuf);
    6. }
    7.  
    8. NdrBuffer msgBuf;
    9. if ( have != 0 && !msg.isFlagSet(DCERPC_LAST_FRAG) ) {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jun 30 10:11:57 UTC 2019
    - 12.9K bytes
    - Viewed (0)
  6. cmd/xl-storage-format-v1_gen.go

    1. err = msgp.WrapError(err)
    2. return
    3. }
    4. }
    5. }
    6. // Clear omitted fields.
    7. if zb0001Mask != 0x7 {
    8. if (zb0001Mask & 0x1) == 0 {
    9. z.Index = nil
    10. }
    11. if (zb0001Mask & 0x2) == 0 {
    12. z.Checksums = nil
    13. }
    14. if (zb0001Mask & 0x4) == 0 {
    15. z.Error = ""
    16. }
    17. }
    18. return
    19. }
    20.  
    21. // EncodeMsg implements msgp.Encodable
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 15:30:50 UTC 2024
    - 41.2K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/math/LongMath.java

    1. * Returns the greatest common divisor of {@code a, b}. Returns {@code 0} if {@code a == 0 && b ==
    2. * 0}.
    3. *
    4. * @throws IllegalArgumentException if {@code a < 0} or {@code b < 0}
    5. */
    6. public static long gcd(long a, long b) {
    7. /*
    8. * The reason we require both arguments to be >= 0 is because otherwise, what do you return on
    9. * gcd(0, Long.MIN_VALUE)? BigInteger.gcd would return positive 2^63, but positive 2^63 isn't an
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 09 16:39:37 UTC 2024
    - 45.2K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/io/MultiInputStreamTest.java

    1. public long skip(long n) {
    2. return 0;
    3. }
    4. };
    5. }
    6. })
    7. .iterator());
    8. assertEquals(0, multi.skip(-1));
    9. assertEquals(0, multi.skip(-1));
    10. assertEquals(0, multi.skip(0));
    11. ByteStreams.skipFully(multi, 20);
    12. assertEquals(20, multi.read());
    13. }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 4.6K bytes
    - Viewed (0)
  9. cmd/bootstrap-peer-server_gen_test.go

    1. v := ServerSystemConfig{}
    2. b.ReportAllocs()
    3. b.ResetTimer()
    4. for i := 0; i < b.N; i++ {
    5. v.MarshalMsg(nil)
    6. }
    7. }
    8.  
    9. func BenchmarkAppendMsgServerSystemConfig(b *testing.B) {
    10. v := ServerSystemConfig{}
    11. bts := make([]byte, 0, v.Msgsize())
    12. bts, _ = v.MarshalMsg(bts[0:0])
    13. b.SetBytes(int64(len(bts)))
    14. b.ReportAllocs()
    15. b.ResetTimer()
    16. for i := 0; i < b.N; i++ {
    17. bts, _ = v.MarshalMsg(bts[0:0])
    18. }
    19. }
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Jan 24 21:36:44 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  10. cmd/bucket-metadata_gen_test.go

    1. v := BucketMetadata{}
    2. b.ReportAllocs()
    3. b.ResetTimer()
    4. for i := 0; i < b.N; i++ {
    5. v.MarshalMsg(nil)
    6. }
    7. }
    8.  
    9. func BenchmarkAppendMsgBucketMetadata(b *testing.B) {
    10. v := BucketMetadata{}
    11. bts := make([]byte, 0, v.Msgsize())
    12. bts, _ = v.MarshalMsg(bts[0:0])
    13. b.SetBytes(int64(len(bts)))
    14. b.ReportAllocs()
    15. b.ResetTimer()
    16. for i := 0; i < b.N; i++ {
    17. bts, _ = v.MarshalMsg(bts[0:0])
    18. }
    19. }
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Apr 23 18:58:53 UTC 2021
    - 2.3K bytes
    - Viewed (0)
Back to top