Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 324 for evacuate (0.29 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

    import org.jetbrains.kotlin.analysis.api.fir.KaFirSession
    import org.jetbrains.kotlin.analysis.api.fir.KaSymbolByFirBuilder
    import org.jetbrains.kotlin.analysis.api.fir.evaluate.FirAnnotationValueConverter
    import org.jetbrains.kotlin.analysis.api.fir.evaluate.FirCompileTimeConstantEvaluator
    import org.jetbrains.kotlin.analysis.api.types.KaTypeNullability
    import org.jetbrains.kotlin.descriptors.ClassKind
    import org.jetbrains.kotlin.fir.FirSession
    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. 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)
  5. staging/src/k8s.io/apiserver/pkg/authentication/cel/compile.go

    			found = true
    			break
    		}
    	}
    	if !found {
    		var reason string
    		if len(returnTypes) == 1 {
    			reason = fmt.Sprintf("must evaluate to %v", returnTypes[0].String())
    		} else {
    			reason = fmt.Sprintf("must evaluate to one of %v", returnTypes)
    		}
    
    		return resultError(reason, apiservercel.ErrorTypeInvalid)
    	}
    
    	if _, err = cel.AstToCheckedExpr(ast); err != nil {
    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. 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)
  7. 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)
  8. 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)
  9. 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)
  10. subprojects/core/src/main/java/org/gradle/api/internal/tasks/execution/SkipOnlyIfTaskExecuter.java

                        unsatisfiedSpec = onlyIf;
                    }
                }
            } catch (Throwable t) {
                state.setOutcome(new GradleException(String.format("Could not evaluate onlyIf predicate for %s.", task), t));
                return TaskExecuterResult.WITHOUT_OUTPUTS;
            }
    
            if (unsatisfiedSpec != null) {
                if (unsatisfiedSpec instanceof SelfDescribingSpec) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jan 24 11:36:30 UTC 2023
    - 3.3K bytes
    - Viewed (0)
Back to top