- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 600 for num1 (0.09 sec)
-
test/chan/powser1.go
func add(u, v rat) rat { g := gcd(u.den, v.den) return i2tor(u.num*(v.den/g)+v.num*(u.den/g), u.den*(v.den/g)) } func mul(u, v rat) rat { g1 := gcd(u.num, v.den) g2 := gcd(u.den, v.num) var r rat r.num = (u.num / g1) * (v.num / g2) r.den = (u.den / g2) * (v.den / g1) return r } func neg(u rat) rat { return i2tor(-u.num, u.den) } func sub(u, v rat) rat { return add(u, neg(v))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 25 22:22:20 UTC 2020 - 12.7K bytes - Viewed (0) -
pkg/wasm/httpfetcher_test.go
}{ { name: "download ok", handler: func(w http.ResponseWriter, r *http.Request, num int) { fmt.Fprintln(w, "wasm") }, timeout: 5 * time.Second, wantNumRequest: 1, }, { name: "download retry", handler: func(w http.ResponseWriter, r *http.Request, num int) { if num <= 2 { w.WriteHeader(http.StatusInternalServerError) } else { fmt.Fprintln(w, "wasm") }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed May 24 15:56:41 UTC 2023 - 7.5K bytes - Viewed (0) -
platforms/core-execution/snapshots/src/test/groovy/org/gradle/internal/vfs/impl/DefaultFileSystemAccessConcurrencyTest.groovy
} allowFileSystemAccess(true) read(dir) def executorService = Executors.newFixedThreadPool(100) when: (1..1000).each { num -> executorService.submit({ def locationToUpdate = dir.file(num).file("in-dir.txt") fileSystemAccess.write([locationToUpdate.absolutePath]) { locationToUpdate.text = "updated" } })
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:34:50 UTC 2023 - 1.8K bytes - Viewed (0) -
pkg/kubelet/cm/cpumanager/policy.go
// and is consulted to achieve NUMA aware resource alignment among this // and other resource controllers. GetTopologyHints(s state.State, pod *v1.Pod, container *v1.Container) map[string][]topologymanager.TopologyHint // GetPodTopologyHints implements the topologymanager.HintProvider Interface // and is consulted to achieve NUMA aware resource alignment per Pod // among this and other resource controllers.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 03 16:26:09 UTC 2023 - 1.8K bytes - Viewed (0) -
docs/debugging/hash-set/main.go
if cardinality <= 0 { // Returns an empty int slice for cardinality < 0. return nil } nums := make([]int, cardinality) keyCrc := crc32.Checksum([]byte(key), crc32.IEEETable) start := int(keyCrc % uint32(cardinality)) for i := 1; i <= cardinality; i++ { nums[i-1] = 1 + ((start + i) % cardinality) } return nums } var ( file, object, deploymentID, prefix string setCount, shards int
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Sep 19 18:05:16 UTC 2022 - 3.7K bytes - Viewed (0) -
src/cmd/vet/testdata/assign/assign.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 20 15:46:42 UTC 2019 - 804 bytes - Viewed (0) -
src/test/java/org/codelibs/core/collection/CaseInsensitiveMapTest.java
for (int j = 0; j < 3; ++j) { final int num = 100000; final Map<String, String> hmap = new HashMap<String, String>(); final Map<String, String> cimap = new CaseInsensitiveMap<String>(); long start = System.currentTimeMillis(); for (int i = 0; i < num; i++) { hmap.put("a" + String.valueOf(i), null); }
Registered: Wed Jun 12 12:50:12 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 4K bytes - Viewed (0) -
src/math/big/rat_test.go
b := 1<<wid + a if sign == '-' { b = -b } for exp := -150; exp < 150; exp += einc { num, den := NewInt(b), NewInt(1) if exp > 0 { num.Lsh(num, uint(exp)) } else { den.Lsh(den, uint(-exp)) } r := new(Rat).SetFrac(num, den) f, _ := r.Float32() if !checkIsBestApprox32(t, f, r) { // Append context information.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jan 07 00:15:59 UTC 2022 - 18.9K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/it/search/SearchApiTests.java
} @Test public void searchTestWith1Word() throws Exception { String query = "java"; Map<String, String> params = new HashMap<>(); params.put("q", query); params.put("num", "100"); String response = checkMethodBase(new HashMap<>()).params(params).get("/api/v1/documents").asString(); assertTrue(JsonPath.from(response).getInt("record_count") > 0);
Registered: Wed Jun 12 13:08:18 UTC 2024 - Last Modified: Thu Feb 22 01:37:57 UTC 2024 - 18.6K bytes - Viewed (0) -
pkg/kubelet/cm/cpumanager/topology/topology.go
type NUMANodeInfo map[int]cpuset.CPUSet // CPUDetails is a map from CPU ID to Core ID, Socket ID, and NUMA ID. type CPUDetails map[int]CPUInfo // CPUTopology contains details of node cpu, where : // CPU - logical CPU, cadvisor - thread // Core - physical CPU, cadvisor - Core // Socket - socket, cadvisor - Socket // NUMA Node - NUMA cell, cadvisor - Node type CPUTopology struct { NumCPUs int NumCores int NumSockets int
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 03 16:26:09 UTC 2023 - 7.9K bytes - Viewed (0)