Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 128 for Booleans (0.15 sec)

  1. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/compilation_test.go

    			expectedSetCost:  0,
    		},
    		{
    			name:             "map of booleans with all",
    			schemaGenerator:  genMapWithRule("boolean", "self.all(x, true)"),
    			expectedCalcCost: 943718,
    			setMaxElements:   100,
    			expectedSetCost:  302,
    		},
    		{
    			name:             "map of booleans with has",
    			schemaGenerator:  genMapWithRule("boolean", "has(self.x)"),
    			expectedCalcCost: 0,
    			setMaxElements:   1024,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 20:13:14 UTC 2024
    - 51.5K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/celcoststability_test.go

    			expectCost: map[string]int64{
    				"self.val1 == self.val2":   5,
    				"self.val1 == b'AB'":       3,
    				"type(self.val1) == bytes": 4,
    				"size(self.val1) == 2":     4,
    			},
    		},
    		{name: "booleans",
    			obj:    objs(true, true, false, false),
    			schema: schemas(booleanType, booleanType, booleanType, booleanType),
    			expectCost: map[string]int64{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 19:20:16 UTC 2024
    - 80.2K bytes
    - Viewed (0)
  3. pkg/kubelet/eviction/helpers.go

    		p2Disk.Sub(p2Request)
    		// prioritize evicting the pod which has the larger consumption of disk
    		return p2Disk.Cmp(p1Disk)
    	}
    }
    
    // cmpBool compares booleans, placing true before false
    func cmpBool(a, b bool) int {
    	if a == b {
    		return 0
    	}
    	if !b {
    		return -1
    	}
    	return 1
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 01 18:46:33 UTC 2023
    - 53.6K bytes
    - Viewed (0)
  4. pkg/controller/daemon/daemon_controller.go

    	case statusErr != nil:
    		return statusErr
    	}
    
    	return nil
    }
    
    // NodeShouldRunDaemonPod checks a set of preconditions against a (node,daemonset) and returns a
    // summary. Returned booleans are:
    //   - shouldRun:
    //     Returns true when a daemonset should run on the node if a daemonset pod is not already
    //     running on that node.
    //   - shouldContinueRunning:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 51.3K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssa/prove.go

    // representation can mean something else.
    type domain uint
    
    const (
    	signed domain = 1 << iota
    	unsigned
    	pointer
    	boolean
    )
    
    var domainStrings = [...]string{
    	"signed", "unsigned", "pointer", "boolean",
    }
    
    func (d domain) String() string {
    	s := ""
    	for i, ds := range domainStrings {
    		if d&(1<<uint(i)) != 0 {
    			if len(s) != 0 {
    				s += "|"
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:30:21 UTC 2024
    - 48.9K bytes
    - Viewed (0)
  6. src/html/template/exec_test.go

    	// Booleans
    	{"not", "{{not true}} {{not false}}", "false true", nil, true},
    	{"and", "{{and false 0}} {{and 1 0}} {{and 0 true}} {{and 1 1}}", "false 0 0 1", nil, true},
    	{"or", "{{or 0 0}} {{or 1 0}} {{or 0 true}} {{or 1 1}}", "0 1 true 1", nil, true},
    	{"boolean if", "{{if and true 1 `hi`}}TRUE{{else}}FALSE{{end}}", "TRUE", tVal, true},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 24 21:59:12 UTC 2024
    - 57.6K bytes
    - Viewed (0)
  7. src/text/template/exec_test.go

    	{"and undef", "{{and 1 .Unknown}}", "<no value>", nil, true},
    	{"or undef", "{{or 0 .Unknown}}", "<no value>", nil, true},
    	{"boolean if", "{{if and true 1 `hi`}}TRUE{{else}}FALSE{{end}}", "TRUE", tVal, true},
    	{"boolean if not", "{{if and true 1 `hi` | not}}TRUE{{else}}FALSE{{end}}", "FALSE", nil, true},
    	{"boolean if pipe", "{{if true | not | and 1}}TRUE{{else}}FALSE{{end}}", "FALSE", nil, true},
    
    	// Indexing.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 22:23:55 UTC 2024
    - 60.1K bytes
    - Viewed (0)
  8. tensorflow/c/c_api.h

    //   struct as mentioned above.
    // * Every call that has a TF_Status* argument clears it on success
    //   and fills it with error info on failure.
    // * unsigned char is used for booleans (instead of the 'bool' type).
    //   In C++ bool is a keyword while in C99 bool is a macro defined
    //   in stdbool.h. It is possible for the two to be inconsistent.
    //   For example, neither the C99 nor the C++11 standard force a byte
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Oct 26 21:08:15 UTC 2023
    - 82.3K bytes
    - Viewed (0)
  9. pkg/controller/job/job_controller.go

    		uncountedStatus.Failed = newUncounted
    	}
    	return updated
    }
    
    // removeTrackingFinalizerFromPods removes tracking finalizers from Pods and
    // returns an array of booleans where the i-th value is true if the finalizer
    // of the i-th Pod was successfully removed (if the pod was deleted when this
    // function was called, it's considered as the finalizer was removed successfully).
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 10 23:56:37 UTC 2024
    - 77.6K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/types.go

    }
    
    // TableRow is an individual row in a table.
    // +protobuf=false
    type TableRow struct {
    	// cells will be as wide as the column definitions array and may contain strings, numbers (float64 or
    	// int64), booleans, simple maps, lists, or null. See the type field of the column definition for a
    	// more detailed description.
    	// +listType=atomic
    	Cells []interface{} `json:"cells"`
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 05 10:52:25 UTC 2024
    - 79.2K bytes
    - Viewed (1)
Back to top