Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 1,827 for name (0.16 sec)

  1. tests/test_jsonable_encoder.py

            "name": "Firulais",
            "owner": {"name": "Foo"},
        }
    
    
    def test_encode_class():
        person = Person(name="Foo")
        pet = Pet(owner=person, name="Firulais")
        assert jsonable_encoder(pet) == {"name": "Firulais", "owner": {"name": "Foo"}}
        assert jsonable_encoder(pet, include={"name"}) == {"name": "Firulais"}
        assert jsonable_encoder(pet, exclude={"owner"}) == {"name": "Firulais"}
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 21:56:59 GMT 2024
    - 9K bytes
    - Viewed (0)
  2. istioctl/pkg/util/handlers/handlers.go

    	kubelib "istio.io/istio/pkg/kube"
    )
    
    // InferPodInfo Uses name to infer namespace if the passed name contains namespace information.
    // Otherwise uses the namespace value passed into the function
    func InferPodInfo(name, defaultNS string) (string, string) {
    	return inferNsInfo(name, defaultNS)
    }
    
    // inferNsInfo Uses name to infer namespace if the passed name contains namespace information.
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Tue Feb 06 15:01:41 GMT 2024
    - 6.2K bytes
    - Viewed (0)
  3. chainable_api.go

    //
    //	// Find the first user with name jinzhu
    //	db.Where("name = ?", "jinzhu").First(&user)
    //	// Find the first user with name jinzhu and age 20
    //	db.Where(&User{Name: "jinzhu", Age: 20}).First(&user)
    //	// Find the first user with name jinzhu and age not equal to 20
    //	db.Where("name = ?", "jinzhu").Where("age <> ?", "20").First(&user)
    //
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Wed Apr 17 03:38:55 GMT 2024
    - 14.3K bytes
    - Viewed (1)
  4. src/archive/zip/reader_test.go

    		<-done
    	}
    }
    
    func equalTimeAndZone(t1, t2 time.Time) bool {
    	name1, offset1 := t1.Zone()
    	name2, offset2 := t2.Zone()
    	return t1.Equal(t2) && name1 == name2 && offset1 == offset2
    }
    
    func readTestFile(t *testing.T, zt ZipTest, ft ZipTestFile, f *File, raw []byte) {
    	if f.Name != ft.Name {
    		t.Errorf("name=%q, want %q", f.Name, ft.Name)
    	}
    	if !ft.Modified.IsZero() && !equalTimeAndZone(f.Modified, ft.Modified) {
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Wed Mar 27 18:23:49 GMT 2024
    - 55.3K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/es/log/cbean/ca/bs/BsUserInfoCA.java

            }
        }
    
        public void scriptedMetric(String name, ConditionOptionCall<ScriptedMetricAggregationBuilder> opLambda) {
            ScriptedMetricAggregationBuilder builder = regScriptedMetricA(name);
            if (opLambda != null) {
                opLambda.callback(builder);
            }
        }
    
        public void topHits(String name, ConditionOptionCall<TopHitsAggregationBuilder> opLambda) {
    Java
    - Registered: Mon Apr 29 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 12.3K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/es/config/cbean/ca/bs/BsElevateWordToLabelCA.java

            }
        }
    
        public void scriptedMetric(String name, ConditionOptionCall<ScriptedMetricAggregationBuilder> opLambda) {
            ScriptedMetricAggregationBuilder builder = regScriptedMetricA(name);
            if (opLambda != null) {
                opLambda.callback(builder);
            }
        }
    
        public void topHits(String name, ConditionOptionCall<TopHitsAggregationBuilder> opLambda) {
    Java
    - Registered: Mon Apr 29 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 15.2K bytes
    - Viewed (0)
  7. src/archive/tar/common.go

    // Passing an instance of this to [FileInfoHeader] permits the caller
    // to avoid a system-dependent name lookup by specifying the Uname and Gname directly.
    type FileInfoNames interface {
    	fs.FileInfo
    	// Uname should give a user name.
    	Uname() (string, error)
    	// Gname should give a group name.
    	Gname() (string, error)
    }
    
    // isHeaderOnlyType checks if the given type flag is of the type that has no
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Mar 15 16:01:50 GMT 2024
    - 24.7K bytes
    - Viewed (2)
  8. istioctl/pkg/workload/workload_test.go

    		checkGolden, ok := checkFiles[f.Name()]
    		if !ok {
    			if checkGolden, ok := checkFiles[f.Name()[:len(f.Name())-len(goldenSuffix)]]; !(checkGolden && ok) {
    				t.Errorf("unexpected file in output dir: %s", f.Name())
    			}
    			continue
    		}
    		if checkGolden {
    			t.Run(f.Name(), func(t *testing.T) {
    				contents := util.ReadFile(t, path.Join(testdir, f.Name()))
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Wed Mar 27 16:59:05 GMT 2024
    - 14.6K bytes
    - Viewed (0)
  9. cmd/metacache-entries.go

    		return e, false
    	}
    
    	// Name should match...
    	if e.name != other.name {
    		if e.name < other.name {
    			return e, false
    		}
    		return other, false
    	}
    
    	if other.isDir() || e.isDir() {
    		if e.isDir() {
    			return e, other.isDir() == e.isDir()
    		}
    		return other, other.isDir() == e.isDir()
    	}
    	eVers, eErr := e.xlmeta()
    	oVers, oErr := other.xlmeta()
    	if eErr != nil || oErr != nil {
    		return nil, false
    	}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 19 16:43:43 GMT 2024
    - 23.2K bytes
    - Viewed (0)
  10. fastapi/dependencies/utils.py

            return True
        elif lenient_issubclass(type_annotation, Response):
            dependant.response_param_name = param_name
            return True
        elif lenient_issubclass(type_annotation, StarletteBackgroundTasks):
            dependant.background_tasks_param_name = param_name
            return True
        elif lenient_issubclass(type_annotation, SecurityScopes):
            dependant.security_scopes_param_name = param_name
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Apr 02 02:52:56 GMT 2024
    - 29.5K bytes
    - Viewed (0)
Back to top