Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 2,493 for found$ (1.82 sec)

  1. src/strings/example_test.go

    	show := func(s, sep string) {
    		after, found := strings.CutPrefix(s, sep)
    		fmt.Printf("CutPrefix(%q, %q) = %q, %v\n", s, sep, after, found)
    	}
    	show("Gopher", "Go")
    	show("Gopher", "ph")
    	// Output:
    	// CutPrefix("Gopher", "Go") = "pher", true
    	// CutPrefix("Gopher", "ph") = "Gopher", false
    }
    
    func ExampleCutSuffix() {
    	show := func(s, sep string) {
    		before, found := strings.CutSuffix(s, sep)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 09 22:05:38 UTC 2023
    - 10.7K bytes
    - Viewed (0)
  2. tensorflow/c/experimental/saved_model/core/tf_saved_model_api.cc

      if (!node.has_value()) {
        return errors::NotFound("No saved object found at path ", function_path);
      }
    
      *function = revived_objects_.concrete_functions.Find(*node);
      if (*function == nullptr) {
        return errors::NotFound("No function found at path ", function_path);
      }
    
      return Status();
    }
    
    Status TFSavedModelAPI::GetFunctions(
        int node_id,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Feb 27 09:34:33 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  3. src/cmd/vendor/github.com/google/pprof/internal/driver/interactive.go

    // is not specified.
    func functionCompleter(substring string, fns []string) string {
    	found := ""
    	for _, fName := range fns {
    		if strings.Contains(fName, substring) {
    			if found != "" {
    				return substring
    			}
    			found = fName
    		}
    	}
    	if found != "" {
    		return found
    	}
    	return substring
    }
    
    func functionNames(p *profile.Profile) []string {
    	var fns []string
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 22 18:58:12 UTC 2022
    - 10.6K bytes
    - Viewed (0)
  4. cni/pkg/nodeagent/podcgroupns.go

    			continue
    		case containerID == "":
    			// This is the first container ID found so far.
    			podUID = candidatePodUID
    			containerID = candidateContainerID
    		case containerID != candidateContainerID:
    			// More than one container ID found in the cgroups.
    			return "", "", fmt.Errorf("multiple container IDs found in cgroups (%s, %s)",
    				containerID, candidateContainerID)
    		case podUID != candidatePodUID:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Apr 12 21:47:31 UTC 2024
    - 11K bytes
    - Viewed (0)
  5. cmd/bucket-lifecycle-handlers_test.go

    			t.Errorf("Test %d: %s: Expected the response status to be `%d`, but instead found `%d`", i+1, instanceType, testCase.expectedRespStatus, rec.Code)
    		}
    		if testCase.shouldPass && !bytes.Equal(testCase.lifecycleResponse, rec.Body.Bytes()) {
    			t.Errorf("Test %d: %s: Expected the response to be `%s`, but instead found `%s`", i+1, instanceType, string(testCase.lifecycleResponse), rec.Body.String())
    		}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:50:49 UTC 2024
    - 11.3K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/unstructured/unstructured.go

    		u.Object = make(map[string]interface{})
    	}
    	SetNestedStringMap(u.Object, value, fields...)
    }
    
    func (u *Unstructured) GetOwnerReferences() []metav1.OwnerReference {
    	field, found, err := NestedFieldNoCopy(u.Object, "metadata", "ownerReferences")
    	if !found || err != nil {
    		return nil
    	}
    	original, ok := field.([]interface{})
    	if !ok {
    		return nil
    	}
    	ret := make([]metav1.OwnerReference, 0, len(original))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun May 28 03:26:35 UTC 2023
    - 13.7K bytes
    - Viewed (0)
  7. src/cmd/go/internal/modload/query.go

    		found = fmt.Sprintf(" (%s)", e.Mod.Version)
    	}
    
    	if strings.Contains(e.Pattern, "...") {
    		return fmt.Sprintf("module %s@%s found%s, but does not contain packages matching %s", e.Mod.Path, e.Query, found, e.Pattern)
    	}
    	return fmt.Sprintf("module %s@%s found%s, but does not contain package %s", e.Mod.Path, e.Query, found, e.Pattern)
    }
    
    func (e *PackageNotInModuleError) ImportPath() string {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 11 22:29:11 UTC 2023
    - 44.7K bytes
    - Viewed (0)
  8. pkg/controller/garbagecollector/graph_builder.go

    func (gb *GraphBuilder) reportInvalidNamespaceOwnerRef(n *node, invalidOwnerUID types.UID) {
    	var invalidOwnerRef metav1.OwnerReference
    	var found = false
    	for _, ownerRef := range n.owners {
    		if ownerRef.UID == invalidOwnerUID {
    			invalidOwnerRef = ownerRef
    			found = true
    			break
    		}
    	}
    	if !found {
    		return
    	}
    	ref := &v1.ObjectReference{
    		Kind:       n.identity.Kind,
    		APIVersion: n.identity.APIVersion,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 36.9K bytes
    - Viewed (0)
  9. pkg/volume/iscsi/iscsi_util.go

    	iscsiadmErrorSessExists = 15
    
    	// iscsiadm exit code for "session could not be found"
    	exit_ISCSI_ERR_SESS_NOT_FOUND = 2
    	// iscsiadm exit code for "no records/targets/sessions/portals found to execute operation on."
    	exit_ISCSI_ERR_NO_OBJS_FOUND = 21
    )
    
    var (
    	chapSt = []string{
    		"discovery.sendtargets.auth.username",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 22 12:53:01 UTC 2022
    - 34.1K bytes
    - Viewed (0)
  10. operator/cmd/mesh/test-util_test.go

    	got, found, err := tpath.Find(o.UnstructuredObject().UnstructuredContent(), util.PathFromString("metadata.labels"))
    	if err != nil {
    		log.Errorf("bad path: %s", err)
    		return false
    	}
    	if !found {
    		return false
    	}
    	return got.(map[string]any)[label] == value
    }
    
    // mustGetService returns the service with the given name or fails if it's not found in objs.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 31 14:48:28 UTC 2023
    - 15.3K bytes
    - Viewed (0)
Back to top