Search Options

Results per page
Sort
Preferred Languages
Advance

Results 4291 - 4300 of 5,353 for Return (0.05 sec)

  1. docs/distributed/DESIGN.md

    func sipHashMod(key string, cardinality int, id [16]byte) int {
            if cardinality <= 0 {
                    return -1
            }
            sip := siphash.New(id[:])
            sip.Write([]byte(key))
            return int(sip.Sum64() % uint64(cardinality))
    }
    ```
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Wed Feb 26 09:25:50 UTC 2025
    - 8K bytes
    - Viewed (2)
  2. src/test/java/jcifs/smb/SIDTest.java

            s.revision = revision;
            s.sub_authority_count = (byte) subs.length;
            s.identifier_authority = Arrays.copyOf(identAuth, 6);
            s.sub_authority = Arrays.copyOf(subs, subs.length);
            return s;
        }
    
        @Nested
        @DisplayName("Basic Constructor and Utility Tests")
        class BasicTests {
    
            @Test
            @DisplayName("Textual constructor happy path and toString consistency")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/math/QuantilesTest.java

          return PSEUDORANDOM_DATASET_SORTED.get(position);
        } else {
          int positionFloor = IntMath.divide(199 * index, 2, FLOOR);
          int positionCeil = IntMath.divide(199 * index, 2, CEILING);
          double lowerValue = PSEUDORANDOM_DATASET_SORTED.get(positionFloor);
          double upperValue = PSEUDORANDOM_DATASET_SORTED.get(positionCeil);
          return (lowerValue + upperValue) / 2.0;
        }
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 29.8K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/math/QuantilesTest.java

          return PSEUDORANDOM_DATASET_SORTED.get(position);
        } else {
          int positionFloor = IntMath.divide(199 * index, 2, FLOOR);
          int positionCeil = IntMath.divide(199 * index, 2, CEILING);
          double lowerValue = PSEUDORANDOM_DATASET_SORTED.get(positionFloor);
          double upperValue = PSEUDORANDOM_DATASET_SORTED.get(positionCeil);
          return (lowerValue + upperValue) / 2.0;
        }
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 29.8K bytes
    - Viewed (0)
  5. cmd/erasure-healing_test.go

    			Parity: 4,
    		},
    	})
    
    	nDisks := 16
    	fsDirs, err := getRandomDisks(nDisks)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	defer removeRoots(fsDirs)
    
    	// Everything is fine, should return nil
    	objLayer, _, err := initObjectLayer(ctx, mustGetPoolEndpoints(0, fsDirs...))
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	setObjectLayer(objLayer)
    
    	bucket := getRandomBucketName()
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 48.5K bytes
    - Viewed (0)
  6. src/archive/tar/reader_test.go

    			out = append(out, blk[:]...)
    		}
    		return out
    	}
    
    	makeSparseStrings := func(sp []sparseEntry) (out []string) {
    		var f formatter
    		for _, s := range sp {
    			var b [24]byte
    			f.formatNumeric(b[:12], s.Offset)
    			f.formatNumeric(b[12:], s.Length)
    			out = append(out, string(b[:]))
    		}
    		return out
    	}
    
    	vectors := []struct {
    		input    []byte
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Thu Oct 03 15:48:09 UTC 2024
    - 46.9K bytes
    - Viewed (0)
  7. src/archive/tar/writer_test.go

    			testClose{nil},
    		},
    	}}
    
    	equalError := func(x, y error) bool {
    		_, ok1 := x.(headerError)
    		_, ok2 := y.(headerError)
    		if ok1 || ok2 {
    			return ok1 && ok2
    		}
    		return x == y
    	}
    	for _, v := range vectors {
    		t.Run(path.Base(v.file), func(t *testing.T) {
    			const maxSize = 10 << 10 // 10KiB
    			buf := new(bytes.Buffer)
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Mon Feb 03 16:38:43 UTC 2025
    - 39.8K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/reflect/TypeCapture.java

     * Captures the actual type of {@code T}.
     *
     * @author Ben Yu
     */
    abstract class TypeCapture<T> {
    
      /** Returns the captured type. */
      final Type capture() {
        Type superclass = getClass().getGenericSuperclass();
        checkArgument(superclass instanceof ParameterizedType, "%s isn't parameterized", superclass);
        return ((ParameterizedType) superclass).getActualTypeArguments()[0];
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 03:10:51 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java

                      protected Queue<String> create(String[] elements) {
                        return MinMaxPriorityQueue.create(asList(elements));
                      }
                    })
                .named("MinMaxPriorityQueue")
                .withFeatures(CollectionSize.ANY, CollectionFeature.GENERAL_PURPOSE)
                .createTestSuite());
        return suite;
      }
    
      // Overkill alert!  Test all combinations of 0-2 options during creation.
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 36K bytes
    - Viewed (0)
  10. .teamcity/src/main/kotlin/model/CIBuildModel.kt

            val shortenedSubprojectName = subProjectName.replace("internal", "i").replace("Testing", "T")
            if (shortenedSubprojectName.length + prefix.length <= 80) {
                return shortenedSubprojectName
            }
            return shortenedSubprojectName.replace(Regex("[aeiou]"), "")
        }
    
        fun asName(): String =
            listOf(
                testType.name
                    .lowercase()
                    .toCamelCase()
    Registered: Wed Sep 10 11:36:15 UTC 2025
    - Last Modified: Sun Aug 03 22:40:28 UTC 2025
    - 25.9K bytes
    - Viewed (0)
Back to top