Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 783 for context_a (0.53 sec)

  1. tests/test_dependency_contextmanager.py

    
    async def context_a(state: dict = Depends(get_state)):
        state["context_a"] = "started a"
        try:
            yield state
        finally:
            state["context_a"] = "finished a"
    
    
    async def context_b(state: dict = Depends(context_a)):
        state["context_b"] = "started b"
        try:
            yield state
        finally:
            state["context_b"] = f"finished b with a: {state['context_a']}"
    
    
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Feb 24 23:06:37 GMT 2024
    - 11.6K bytes
    - Viewed (0)
  2. istioctl/pkg/cli/context.go

    import (
    	corev1 "k8s.io/api/core/v1"
    	"k8s.io/apimachinery/pkg/runtime"
    	"k8s.io/client-go/rest"
    
    	"istio.io/istio/istioctl/pkg/util/handlers"
    	"istio.io/istio/pkg/kube"
    	"istio.io/istio/pkg/ptr"
    )
    
    type Context interface {
    	// CLIClient returns a client for the default revision
    	CLIClient() (kube.CLIClient, error)
    	// CLIClientWithRevision returns a client for the given revision
    	CLIClientWithRevision(rev string) (kube.CLIClient, error)
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Apr 02 08:32:06 GMT 2024
    - 6.4K bytes
    - Viewed (0)
  3. tensorflow/c/eager/immediate_execution_context.h

    #ifndef TENSORFLOW_C_EAGER_IMMEDIATE_EXECUTION_CONTEXT_H_
    #define TENSORFLOW_C_EAGER_IMMEDIATE_EXECUTION_CONTEXT_H_
    
    #include <functional>
    #include <map>
    #include <memory>
    #include <vector>
    
    #include "absl/types/optional.h"
    #include "absl/types/span.h"
    #include "tensorflow/c/eager/abstract_context.h"
    #include "tensorflow/c/eager/immediate_execution_distributed_manager.h"
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Jul 06 08:34:00 GMT 2023
    - 12.3K bytes
    - Viewed (0)
  4. istioctl/pkg/cli/context_test.go

    Xiaopeng Han <******@****.***> 1686334669 +0800
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Jun 09 18:17:49 GMT 2023
    - 1.4K bytes
    - Viewed (0)
  5. tensorflow/c/eager/immediate_execution_distributed_manager.h

                                          bool reset_context, int keep_alive_secs,
                                          int64_t init_timeout_in_ms, int retries,
                                          bool clear_existing_contexts = false) = 0;
    
      // Initializes context for the local worker and no contexts will be created
      // for remote workers. Currently this only works for resetting context.
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Feb 21 22:37:46 GMT 2024
    - 2.9K bytes
    - Viewed (0)
  6. src/cmd/api/api_test.go

    	if *flagCheck {
    		// slow, not worth repeating in -check
    		t.Skip("skipping with -check set")
    	}
    	testenv.MustHaveGoBuild(t)
    	context := new(build.Context)
    	*context = build.Default
    	context.Dir = filepath.Join(testenv.GOROOT(t), "src")
    
    	w := NewWalker(context, context.Dir)
    	for _, pkg := range w.stdPackages {
    		if strings.HasPrefix(pkg, "vendor/") || strings.HasPrefix(pkg, "golang.org/x/") {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Jan 04 17:31:12 GMT 2024
    - 7.1K bytes
    - Viewed (0)
  7. cni/pkg/install/testdata/kubeconfig-newhost

        server: https://50.76.2.1:443
      name: local
    contexts:
    - context:
        cluster: local
        user: istio-cni
      name: istio-cni-context
    current-context: istio-cni-context
    kind: Config
    preferences: {}
    users:
    - name: istio-cni
      user:
    Plain Text
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Aug 11 01:19:03 GMT 2023
    - 1.7K bytes
    - Viewed (0)
  8. internal/kms/single-key.go

    		}
    	}
    	return plaintext, nil
    }
    
    func (kms secretKey) DecryptAll(_ context.Context, keyID string, ciphertexts [][]byte, contexts []Context) ([][]byte, error) {
    	plaintexts := make([][]byte, 0, len(ciphertexts))
    	for i := range ciphertexts {
    		plaintext, err := kms.DecryptKey(keyID, ciphertexts[i], contexts[i])
    		if err != nil {
    			return nil, err
    		}
    		plaintexts = append(plaintexts, plaintext)
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Mar 01 21:09:42 GMT 2024
    - 7.9K bytes
    - Viewed (0)
  9. internal/crypto/sse-s3.go

    		if i > 0 && keyID != keyIDs[i-1] {
    			sameKeyID = false
    		}
    	}
    	if sameKeyID {
    		contexts := make([]kms.Context, 0, len(keyIDs))
    		for i := range buckets {
    			contexts = append(contexts, kms.Context{buckets[i]: path.Join(buckets[i], objects[i])})
    		}
    		unsealKeys, err := k.DecryptAll(ctx, keyIDs[0], kmsKeys, contexts)
    		if err != nil {
    			return nil, err
    		}
    		keys := make([]ObjectKey, len(unsealKeys))
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 8.5K bytes
    - Viewed (0)
  10. istioctl/pkg/cli/option.go

    		return
    	}
    
    	// If a specific context was specified, use that. Otherwise, just use the current context from the kube config.
    	selectedContext := config.CurrentContext
    	if *r.configContext != "" {
    		selectedContext = *r.configContext
    	}
    
    	// Use the namespace associated with the selected context as default, if the context has one
    	context, ok := config.Contexts[selectedContext]
    	if !ok {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Jan 26 18:01:27 GMT 2024
    - 3.1K bytes
    - Viewed (0)
Back to top