Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,335 for isList (0.18 sec)

  1. src/cmd/vendor/golang.org/x/text/internal/language/match.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package language
    
    import "errors"
    
    type scriptRegionFlags uint8
    
    const (
    	isList = 1 << iota
    	scriptInFrom
    	regionInFrom
    )
    
    func (t *Tag) setUndefinedLang(id Language) {
    	if t.LangID == 0 {
    		t.LangID = id
    	}
    }
    
    func (t *Tag) setUndefinedScript(id Script) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  2. tensorflow/c/experimental/ops/gen/cpp/views/arg_view.cc

    string ArgView::VariableName() const { return arg_.name(); }
    
    string ArgView::SetterMethod() const {
      if (IsList()) {
        return "AddInputList";
      } else {
        return "AddInput";
      }
    }
    
    std::vector<string> ArgView::SetterArgs() const { return {VariableName()}; }
    
    bool ArgView::IsList() const { return arg_.arg_type().is_list(); }
    
    int ArgView::Position() const { return arg_.position(); }
    
    }  // namespace cpp
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Jun 03 07:02:00 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/audit/request.go

    func copyWithoutManagedFields(obj runtime.Object) (runtime.Object, bool, error) {
    	isAccessor := true
    	if _, err := meta.Accessor(obj); err != nil {
    		isAccessor = false
    	}
    	isList := meta.IsListType(obj)
    	_, isTable := obj.(*metav1.Table)
    	if !isAccessor && !isList && !isTable {
    		return nil, false, nil
    	}
    
    	// TODO a deep copy isn't really needed here, figure out how we can reliably
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jul 03 16:16:51 UTC 2023
    - 9K bytes
    - Viewed (0)
  4. tensorflow/c/experimental/ops/gen/cpp/views/arg_view.h

    namespace cpp {
    
    class ArgView {
     public:
      explicit ArgView(ArgSpec arg);
    
      string VariableName() const;
      string SetterMethod() const;
      std::vector<string> SetterArgs() const;
      int Position() const;
    
      bool IsList() const;
    
     private:
      ArgSpec arg_;
    };
    
    }  // namespace cpp
    }  // namespace generator
    }  // namespace tensorflow
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 15 18:23:40 UTC 2021
    - 1.4K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/conversion/webhook_converter.go

    func getObjectsToConvert(obj runtime.Object, apiVersion string) []runtime.RawExtension {
    	listObj, isList := obj.(*unstructured.UnstructuredList)
    	var objects []runtime.RawExtension
    	if isList {
    		for i := range listObj.Items {
    			// Only sent item for conversion, if the apiVersion is different
    			if listObj.Items[i].GetAPIVersion() != apiVersion {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 07 19:37:55 UTC 2023
    - 20.6K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/cel/types_test.go

    limitations under the License.
    */
    
    package cel
    
    import (
    	"testing"
    )
    
    func TestTypes_ListType(t *testing.T) {
    	list := NewListType(StringType, -1)
    	if !list.IsList() {
    		t.Error("list type not identifiable as list")
    	}
    	if list.TypeName() != "list" {
    		t.Errorf("got %s, wanted list", list.TypeName())
    	}
    	if list.DefaultValue() == nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 10 22:05:55 UTC 2022
    - 2.1K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apimachinery/pkg/test/api_meta_help_test.go

    	"k8s.io/apimachinery/pkg/runtime/serializer"
    )
    
    func TestIsList(t *testing.T) {
    	tests := []struct {
    		obj    runtime.Object
    		isList bool
    	}{
    		{&testapigroup.CarpList{}, true},
    		{&testapigroup.Carp{}, false},
    	}
    	for _, item := range tests {
    		if e, a := item.isList, meta.IsListType(item.obj); e != a {
    			t.Errorf("%v: Expected %v, got %v", reflect.TypeOf(item.obj), e, a)
    		}
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:46:12 UTC 2023
    - 8.5K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/cel/types.go

    	if isDecl {
    		return false
    	}
    	return t.defaultValue.Type().HasTrait(trait)
    }
    
    // IsList returns whether the declaration is a `list` type which defines a parameterized element
    // type, but not a parameterized key type or fields.
    func (t *DeclType) IsList() bool {
    	return t.KeyType == nil && t.ElemType != nil && t.Fields == nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 08 15:52:31 UTC 2023
    - 18K bytes
    - Viewed (0)
  9. src/go/doc/comment/parse.go

    			if i < len(lines) && lines[i] != "" && !isList(lines[i]) {
    				switch {
    				case isList(lines[i-1]):
    					// If the final unindented line looks like a list item,
    					// this may be the first indented line wrap of
    					// a mistakenly unindented list.
    					// Leave all the unindented list items.
    					forceIndent = end
    					end--
    					for end > start && isList(lines[end-1]) {
    						end--
    					}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 33.5K bytes
    - Viewed (0)
  10. tensorflow/c/experimental/ops/gen/cpp/views/op_view.cc

      return str_util::Split(op_.description(), "\n");
    }
    
    string OpView::Summary() const { return op_.summary(); }
    
    // Context
    bool OpView::IsListOp() const {
      return NumOutputs() == 1 && OnlyOutput().IsList();
    }
    
    }  // namespace cpp
    }  // namespace generator
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Jun 03 07:02:00 UTC 2024
    - 3.2K bytes
    - Viewed (0)
Back to top