Search Options

Results per page
Sort
Preferred Languages
Advance

Results 3901 - 3910 of 7,014 for _return (0.09 sec)

  1. tests/test_security_api_key_query.py

    
    class User(BaseModel):
        username: str
    
    
    def get_current_user(oauth_header: str = Security(api_key)):
        user = User(username=oauth_header)
        return user
    
    
    @app.get("/users/me")
    def read_current_user(current_user: User = Depends(get_current_user)):
        return current_user
    
    
    client = TestClient(app)
    
    
    def test_security_api_key():
        response = client.get("/users/me?key=secret")
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  2. cmd/scannermetric_string.go

    func (i scannerMetric) String() string {
    	if i >= scannerMetric(len(_scannerMetric_index)-1) {
    		return "scannerMetric(" + strconv.FormatInt(int64(i), 10) + ")"
    	}
    	return _scannerMetric_name[_scannerMetric_index[i]:_scannerMetric_index[i+1]]
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 25 05:15:31 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  3. docs_src/dependencies/tutorial011_an_py39.py

        def __call__(self, q: str = ""):
            if q:
                return self.fixed_content in q
            return False
    
    
    checker = FixedContentQueryChecker("bar")
    
    
    @app.get("/query-checker/")
    async def read_query_check(fixed_content_included: Annotated[bool, Depends(checker)]):
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 544 bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/ImmutableMapWithBadHashesMapInterfaceTest.java

        Colliders colliders = new Colliders();
        return ImmutableMap.of(
            colliders.e0(), 0,
            colliders.e1(), 1,
            colliders.e2(), 2,
            colliders.e3(), 3);
      }
    
      @Override
      protected Object getKeyNotInPopulatedMap() {
        return new Colliders().e4();
      }
    
      @Override
      protected Integer getValueNotInPopulatedMap() {
        return 4;
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Mar 09 02:18:08 UTC 2022
    - 1.4K bytes
    - Viewed (0)
  5. android/guava-tests/benchmark/com/google/common/collect/InternersBenchmark.java

          String unused = interner.intern(Double.toHexString(Math.random()));
        }
        return reps;
      }
    
      @Benchmark
      int strongInterner(int reps) {
        Interner<String> interner = Interners.newStrongInterner();
        for (int i = 0; i < reps; i++) {
          String unused = interner.intern(Double.toHexString(Math.random()));
        }
        return reps;
      }
    
      @Benchmark
      int stringIntern(int reps) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Mar 04 04:06:35 UTC 2022
    - 1.4K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/SetsFilterSortedSetTest.java

        // we have to make the result not Navigable
        return new ForwardingSortedSet<Integer>() {
          @Override
          protected SortedSet<Integer> delegate() {
            return result;
          }
        };
      }
    
      @Override
      SortedSet<Integer> filter(SortedSet<Integer> elements, Predicate<? super Integer> predicate) {
        return Sets.filter(elements, predicate);
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Mar 16 21:55:55 UTC 2022
    - 1.4K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/UsingToStringOrdering.java

      @Override
      public int compare(Object left, Object right) {
        return left.toString().compareTo(right.toString());
      }
    
      // preserve singleton-ness, so equals() and hashCode() work correctly
      private Object readResolve() {
        return INSTANCE;
      }
    
      @Override
      public String toString() {
        return "Ordering.usingToString()";
      }
    
      private UsingToStringOrdering() {}
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sun Jun 20 14:22:42 UTC 2021
    - 1.4K bytes
    - Viewed (0)
  8. istioctl/pkg/kubeinject/google.go

    	// A bit inexact but should be good enough.
    	return strings.Contains(addr, ".googleapis.com/") || strings.Contains(addr, ".googleapis.com:443/")
    }
    
    func mcpTransport(ctx context.Context, tr http.RoundTripper) (http.RoundTripper, error) {
    	creds, err := google.FindDefaultCredentials(ctx, "https://www.googleapis.com/auth/cloud-platform")
    	if err != nil {
    		return nil, fmt.Errorf("finding default GCP credentials: %w", err)
    	}
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Thu Jun 15 15:02:17 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  9. docs_src/dependencies/tutorial001_an_py310.py

    async def common_parameters(q: str | None = None, skip: int = 0, limit: int = 100):
        return {"q": q, "skip": skip, "limit": limit}
    
    
    @app.get("/items/")
    async def read_items(commons: Annotated[dict, Depends(common_parameters)]):
        return commons
    
    
    @app.get("/users/")
    async def read_users(commons: Annotated[dict, Depends(common_parameters)]):
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 454 bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/helper/FileTypeHelper.java

            if (StringUtil.isBlank(filetype)) {
                return defaultValue;
            }
            return filetype;
        }
    
        public String getDefaultValue() {
            return defaultValue;
        }
    
        public void setDefaultValue(final String defaultValue) {
            this.defaultValue = defaultValue;
        }
    
        public String[] getTypes() {
            return mimetypeMap.values().stream().distinct().toArray(n -> new String[n]);
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 2.4K bytes
    - Viewed (0)
Back to top