Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 305 for evacuated (0.39 sec)

  1. pkg/test/util/tmpl/evaluate.go

    	tpl, err := file.AsString(filePath)
    	if err != nil {
    		return "", err
    	}
    	return Evaluate(tpl, data)
    }
    
    // EvaluateOrFail calls Evaluate and fails tests if it returns error.
    func EvaluateOrFail(t test.Failer, tpl string, data any) string {
    	t.Helper()
    	s, err := Evaluate(tpl, data)
    	if err != nil {
    		t.Fatalf("tmpl.EvaluateOrFail: %v", err)
    	}
    	return s
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 25 19:30:47 UTC 2022
    - 3.1K bytes
    - Viewed (0)
  2. analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/components/KtCompileTimeConstantProvider.kt

         */
        public fun KtExpression.evaluate(): KaConstantValue? =
            withValidityAssertion { analysisSession.compileTimeConstantProvider.evaluate(this) }
    
        /**
         * Returns a [KaConstantValue] if the expression evaluates to a value that can be used as an annotation parameter value,
         * e.g. an array of constants, otherwise returns null.
         */
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Fri Jun 07 11:53:09 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  3. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/utils/firUtils.kt

    internal fun FirExpression.asKaInitializerValue(builder: KaSymbolByFirBuilder, forAnnotationDefaultValue: Boolean): KaInitializerValue {
        val ktExpression = psi as? KtExpression
        val evaluated = FirCompileTimeConstantEvaluator.evaluateAsKtConstantValue(this)
    
        return when (evaluated) {
            null -> if (forAnnotationDefaultValue) {
                val annotationConstantValue = FirAnnotationValueConverter.toConstantValue(this, builder)
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Fri Jun 07 11:53:09 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/audit/evaluator.go

    */
    
    package audit
    
    import (
    	"k8s.io/apiserver/pkg/apis/audit"
    	"k8s.io/apiserver/pkg/authorization/authorizer"
    )
    
    // RequestAuditConfig is the evaluated audit configuration that is applicable to
    // a given request. PolicyRuleEvaluator evaluates the audit policy against the
    // authorizer attributes and returns a RequestAuditConfig that applies to the request.
    type RequestAuditConfig struct {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 02 22:24:14 UTC 2022
    - 1.6K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/authentication/cel/compile.go

    // The claims CEL variable is available to the expression.
    func (c compiler) CompileClaimsExpression(expressionAccessor ExpressionAccessor) (CompilationResult, error) {
    	return c.compile(expressionAccessor, claimsVarName)
    }
    
    // CompileUserExpression compiles the given expressionAccessor into a CEL program that can be evaluated.
    // The user CEL variable is available to the expression.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 08 17:59:05 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  6. platforms/core-configuration/declarative-dsl-provider/src/main/kotlin/org/gradle/internal/declarativedsl/provider/DeclarativeDslScriptPluginFactory.kt

            topLevelScript: Boolean
        ): ScriptPlugin =
            DeclarativeDslPlugin(scriptSource) { target ->
                when (val result = declarativeKotlinScriptEvaluator.evaluate(target, scriptSource, targetScope)) {
                    is EvaluationResult.Evaluated -> Unit
                    is EvaluationResult.NotEvaluated ->
                        throw DeclarativeDslNotEvaluatedException(scriptSource.fileName, result.stageFailures)
                }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 30 12:25:47 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  7. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r15/ToolingApiConfigurationOnDemandCrossVersionSpec.groovy

            file("build.gradle") << "allprojects { task foo }"
            file("impl/build.gradle") << "task bar(dependsOn: ':api:foo')"
            file("other/build.gradle") << "assert false: 'should not be evaluated'"
    
            when:
            withBuild { it.forTasks(":impl:bar") }
    
            then:
            noExceptionThrown()
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 2K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/utils/eval_util.cc

        TFE_Context* context, llvm::SmallVectorImpl<mlir::Attribute>* results) {
      if (!context) {
        VLOG(1) << "Can't evaluate with null context.";
        return mlir::failure();
      }
      // If any operand is nullptr returns true for a failure.
      // TODO(b/120678030): remove this constraint if we find operators can be
      // evaluated with some unknown operands.
      if (std::any_of(operands.begin(), operands.end(),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Dec 13 06:02:14 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  9. subprojects/core/src/test/groovy/org/gradle/configuration/project/LifecycleProjectEvaluatorTest.groovy

            when:
            evaluate()
    
            then:
            1 * cancellationToken.cancellationRequested >> true
            0 * delegate._
    
            and:
            thrown(BuildCancelledException)
        }
    
        void "evaluates the project firing all necessary listeners and updating the state"() {
            when:
            evaluate()
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 08 13:46:07 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/authorization/cel/matcher.go

    		}
    		// If at least one matchCondition successfully evaluates to FALSE,
    		// return early
    		if !match {
    			metrics.RecordAuthorizationMatchConditionExclusion(ctx, c.AuthorizerType, c.AuthorizerName)
    			return false, nil
    		}
    	}
    	// if there is any error, return
    	if len(evalErrors) > 0 {
    		return false, utilerrors.NewAggregate(evalErrors)
    	}
    	// return ALL matchConditions evaluate to TRUE successfully without error
    	return true, nil
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 22:41:27 UTC 2024
    - 2.9K bytes
    - Viewed (0)
Back to top