- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 261 for num1 (0.38 sec)
-
platforms/documentation/docs/src/docs/userguide/authoring-builds/structuring/sharing_build_logic_between_subprojects.adoc
open class MyCustomTask : DefaultTask() { @TaskAction fun calculateSum() { // Custom logic to calculate the sum of two numbers val num1 = 5 val num2 = 7 val sum = num1 + num2 // Print the result println("Sum: $sum") } } ---- ===== [.multi-language-sample] ===== .MyCustomTask.groovy [source, groovy] ----
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Apr 23 12:58:46 UTC 2024 - 11.7K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/test/integration/conversion/conversion_test.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 06 05:32:34 UTC 2023 - 47.1K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/test/integration/basic_test.go
// Check if int is preserved. unstructuredObj := gottenNoxuInstance.(*unstructured.Unstructured).Object num := unstructuredObj["num"].(map[string]interface{}) num1 := num["num1"].(int64) num2 := num["num2"].(int64) if num1 != 9223372036854775807 || num2 != 1000000 { t.Errorf("Expected %v, got %v, %v", `9223372036854775807, 1000000`, num1, num2) } } func TestPatch(t *testing.T) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Apr 23 11:35:33 UTC 2024 - 33.4K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/test/integration/fixtures/resources.go
"metadata": map[string]interface{}{ "namespace": namespace, "name": name, }, "content": map[string]interface{}{ "key": "value", }, "num": map[string]interface{}{ "num1": noxuInstanceNum, "num2": 1000000, }, }, } } // NewNoxuInstance returns a WishIHadChosenNoxu instance for v1beta1. func NewNoxuInstance(namespace, name string) *unstructured.Unstructured {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Nov 19 02:01:40 UTC 2021 - 21.4K bytes - Viewed (0) -
guava/src/com/google/common/math/BigIntegerMath.java
} static BigInteger listProduct(List<BigInteger> nums) { return listProduct(nums, 0, nums.size()); } static BigInteger listProduct(List<BigInteger> nums, int start, int end) { switch (end - start) { case 0: return BigInteger.ONE; case 1: return nums.get(start); case 2: return nums.get(start).multiply(nums.get(start + 1)); case 3:
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Feb 07 17:50:39 UTC 2024 - 18.9K bytes - Viewed (0) -
android/guava/src/com/google/common/math/BigIntegerMath.java
} static BigInteger listProduct(List<BigInteger> nums) { return listProduct(nums, 0, nums.size()); } static BigInteger listProduct(List<BigInteger> nums, int start, int end) { switch (end - start) { case 0: return BigInteger.ONE; case 1: return nums.get(start); case 2: return nums.get(start).multiply(nums.get(start + 1)); case 3:
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Feb 07 17:50:39 UTC 2024 - 18.9K bytes - Viewed (0) -
pkg/kubelet/cm/cpumanager/cpu_assignment.go
// sockets contain a bigger number of CPUs (free and busy) than NUMA nodes, or equivalently that each // socket contains more than one NUMA node. // // If instead sockets are lower in the memory hierarchy than NUMA nodes, they are sorted as follows. // First, they are sorted by number of free CPUs in the NUMA nodes that contain them. Then, for each
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jan 25 23:56:21 UTC 2024 - 36.3K bytes - Viewed (0) -
src/cmd/vendor/github.com/google/pprof/profile/encode.go
} else if l.numX != 0 || l.unitX != 0 { numValues := numLabels[key] units := numUnits[key] if l.unitX != 0 { var unit string unit, err = getString(p.stringTable, &l.unitX, err) units = padStringArray(units, len(numValues)) numUnits[key] = append(units, unit) } numLabels[key] = append(numLabels[key], l.numX) } } if len(labels) > 0 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 16 15:19:53 UTC 2024 - 17.1K bytes - Viewed (0) -
pkg/kubelet/cm/cpumanager/cpu_assignment_test.go
}, { "dual socket, multi numa per socket, HT, 3 NUMA node free", topoDualSocketMultiNumaPerSocketHT, mustParseCPUSet(t, "1-79"), []int{1, 2, 3}, }, { "dual socket, multi numa per socket, HT, 2 NUMA node free", topoDualSocketMultiNumaPerSocketHT, mustParseCPUSet(t, "1-9,11-79"), []int{2, 3}, }, { "dual socket, multi numa per socket, HT, 1 NUMA node free",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Oct 09 17:31:37 UTC 2023 - 22.7K bytes - Viewed (0) -
src/internal/profile/encode.go
encodeInt64Opt(b, 2, p.strX) encodeInt64Opt(b, 3, p.numX) } var labelDecoder = []decoder{ nil, // 0 // optional int64 key = 1 func(b *buffer, m message) error { return decodeInt64(b, &m.(*Label).keyX) }, // optional int64 str = 2 func(b *buffer, m message) error { return decodeInt64(b, &m.(*Label).strX) }, // optional int64 num = 3
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Dec 07 19:52:28 UTC 2023 - 13.6K bytes - Viewed (0)