- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 19 for mapValue (0.2 sec)
-
src/internal/fmtsort/sort.go
func Sort(mapValue reflect.Value) SortedMap { if mapValue.Type().Kind() != reflect.Map { return nil } // Note: this code is arranged to not panic even in the presence // of a concurrent map update. The runtime is responsible for // yelling loudly if that happens. See issue 33275. n := mapValue.Len() sorted := make(SortedMap, 0, n) iter := mapValue.MapRange() for iter.Next() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 20 19:31:45 UTC 2024 - 4.9K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/cel/lazy/lazy_test.go
activation := &testActivation{variables: variablesMap} // add foo as a string variablesType.Fields["foo"] = apiservercel.NewDeclField("foo", apiservercel.StringType, true, nil, nil) variablesMap.Append("foo", func(_ *MapValue) ref.Val { return types.String("foo-string") }) exp := "variables.foo == 'foo-string'" v, err := compileAndRun(env, activation, exp) if err != nil { t.Fatalf("%q: %v", exp, err) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 10 22:07:40 UTC 2024 - 4.6K bytes - Viewed (0) -
testing/integ-test/src/crossVersionTest/groovy/org/gradle/integtests/AbstractTaskSubclassingBinaryCompatibilityCrossVersionSpec.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 8.3K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/plugin/cel/composition.go
return cost } type variableAccessor struct { name string result CompilationResult activation any context *compositionContext } func (a *variableAccessor) Callback(_ *lazy.MapValue) ref.Val { if a.result.Error != nil { return types.NewErr("composited variable %q fails to compile: %v", a.name, a.result.Error) } v, details, err := a.result.Program.ContextEval(a.context, a.activation)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Feb 13 21:06:39 UTC 2024 - 7.4K bytes - Viewed (0) -
testing/public-api-tests/src/integTest/groovy/org/gradle/api/PublicApiIntegrationTest.groovy
abstract class CustomTask : DefaultTask() { @get:Input abstract val mapValues: MapProperty<String, Int> @TaskAction fun customAction() { println("Hello from custom task") // println("- mapValues['alma'] = \${mapValues['alma']}") } } """ expect:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Jun 07 08:43:08 UTC 2024 - 8.8K bytes - Viewed (0) -
build-logic/binary-compatibility/src/main/kotlin/gradlebuild/binarycompatibility/AlphabeticalAcceptedApiChangesTask.kt
val sortedChanges = originalChanges.mapValues { sortChanges(it.value) } val mismatches = originalChanges.mapValues { findMismatches(it.value, sortedChanges[it.key]!!) }.filterValues { it.isNotEmpty() } if (mismatches.isNotEmpty()) { val formattedMismatches = mismatches.mapValues { mismatch ->
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Jun 04 14:00:46 UTC 2024 - 2.5K bytes - Viewed (0) -
platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/btree/FreeListBlockStore.java
store.flush(); } private void verify(FreeListBlock block, int maxValue) { if (block.largestInNextBlock > maxValue) { throw new RuntimeException("corrupt free list"); } int current = 0; for (FreeListEntry entry : block.entries) { if (entry.size > maxValue) { throw new RuntimeException("corrupt free list"); }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Apr 26 16:02:32 UTC 2024 - 8.7K bytes - Viewed (0) -
analysis/analysis-api-impl-base/tests/org/jetbrains/kotlin/analysis/api/impl/base/test/cases/components/importOptimizer/AbstractAnalysisApiImportOptimizerTest.kt
val importAnalysisRendered = buildString { val sortedUsedDeclarations = importsAnalysis.usedDeclarations .toSortedMap(compareBy { importPath -> importPath.toString() }) .mapValues { (_, importedNames) -> importedNames.sorted() } appendLine("USED DECLARATIONS:") for ((path, elements) in sortedUsedDeclarations) { appendLine()
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Wed Mar 27 16:04:54 UTC 2024 - 1.8K bytes - Viewed (0) -
build-logic/binary-compatibility/src/main/kotlin/gradlebuild/binarycompatibility/SortAcceptedApiChangesTask.kt
*/ @CacheableTask abstract class SortAcceptedApiChangesTask : AbstractAcceptedApiChangesMaintenanceTask() { @TaskAction fun execute() { loadChanges().mapValues { formatChanges(sortChanges(it.value)) }.forEach { it.key.bufferedWriter().use { out -> out.write(it.value) } } } private
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Jun 04 14:00:46 UTC 2024 - 2K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/experimental/tac/transforms/device_transform.cc
if (!q_type) return failure(); const float scale = q_type.getScale(); const float zp = q_type.getZeroPoint(); auto input_values = input_dequant.getValue(); // mapValues always takes a function returning APInt, even when the output // is actually float. using DequantizeFuncType = llvm::APInt(const llvm::APInt&); auto dequantize_func = [&](const APInt& ap_int_value) -> APInt {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 8.4K bytes - Viewed (0)