Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 1,113 for torrent (0.27 sec)

  1. docs_src/security/tutorial007_an_py39.py

    app = FastAPI()
    
    security = HTTPBasic()
    
    
    def get_current_username(
        credentials: Annotated[HTTPBasicCredentials, Depends(security)],
    ):
        current_username_bytes = credentials.username.encode("utf8")
        correct_username_bytes = b"stanleyjobson"
        is_correct_username = secrets.compare_digest(
            current_username_bytes, correct_username_bytes
        )
        current_password_bytes = credentials.password.encode("utf8")
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Mar 26 16:56:53 GMT 2024
    - 1.1K bytes
    - Viewed (0)
  2. cmd/config-current.go

    jiuker <******@****.***> 1713872008 +0800
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Apr 23 11:33:28 GMT 2024
    - 30.7K bytes
    - Viewed (0)
  3. cmd/config-current_test.go

    Klaus Post <******@****.***> 1671477014 +0100
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Dec 19 19:10:14 GMT 2022
    - 2K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/cache/CacheTesting.java

            for (ReferenceEntry<?, ?> current : segment.writeQueue) {
              assertTrue(entries.add(current));
              if (prev != null) {
                assertSame(prev, current.getPreviousInWriteQueue());
                assertSame(prev.getNextInWriteQueue(), current);
                assertThat(prev.getWriteTime()).isAtMost(current.getWriteTime());
              }
              Object key = current.getKey();
              if (key != null) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 16.7K bytes
    - Viewed (0)
  5. cmd/metacache-walk.go

    	var scanDir func(path string) error
    
    	scanDir = func(current string) error {
    		// Skip forward, if requested...
    		sb := bytebufferpool.Get()
    		defer func() {
    			sb.Reset()
    			bytebufferpool.Put(sb)
    		}()
    
    		forward := ""
    		if len(opts.ForwardTo) > 0 && strings.HasPrefix(opts.ForwardTo, current) {
    			forward = strings.TrimPrefix(opts.ForwardTo, current)
    			// Trim further directories and trailing slash.
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Apr 15 08:25:46 GMT 2024
    - 12.4K bytes
    - Viewed (0)
  6. guava-tests/benchmark/com/google/common/collect/ConcurrentHashMultisetBenchmark.java

          checkArgument(occurrences > 0, "Invalid occurrences: %s", occurrences);
    
          while (true) {
            int current = count(element);
            if (current == 0) {
              return 0;
            }
            if (occurrences >= current) {
              if (countMap.remove(element, current)) {
                return current;
              }
            } else {
              // We know it's an "E" because it already exists in the map.
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed May 09 15:17:25 GMT 2018
    - 16.6K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/primitives/UnsignedLongs.java

         */
        static boolean overflowInParse(long current, int digit, int radix) {
          if (current >= 0) {
            if (current < maxValueDivs[radix]) {
              return false;
            }
            if (current > maxValueDivs[radix]) {
              return true;
            }
            // current == maxValueDivs[radix]
            return (digit > maxValueMods[radix]);
          }
    
          // current < 0: high bit is set
          return true;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 17.6K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/cache/CacheTesting.java

            for (ReferenceEntry<?, ?> current : segment.writeQueue) {
              assertTrue(entries.add(current));
              if (prev != null) {
                assertSame(prev, current.getPreviousInWriteQueue());
                assertSame(prev.getNextInWriteQueue(), current);
                assertThat(prev.getWriteTime()).isAtMost(current.getWriteTime());
              }
              Object key = current.getKey();
              if (key != null) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 16.7K bytes
    - Viewed (0)
  9. android/guava-tests/benchmark/com/google/common/collect/ConcurrentHashMultisetBenchmark.java

          checkArgument(occurrences > 0, "Invalid occurrences: %s", occurrences);
    
          while (true) {
            int current = count(element);
            if (current == 0) {
              return 0;
            }
            if (occurrences >= current) {
              if (countMap.remove(element, current)) {
                return current;
              }
            } else {
              // We know it's an "E" because it already exists in the map.
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Apr 06 12:56:11 GMT 2023
    - 16.6K bytes
    - Viewed (0)
  10. tests/test_security_oauth2.py

        return form_data
    
    
    @app.get("/users/me")
    # Here we use string annotations to test them
    def read_current_user(current_user: "User" = Depends(get_current_user)):
        return current_user
    
    
    client = TestClient(app)
    
    
    def test_security_oauth2():
        response = client.get("/users/me", headers={"Authorization": "Bearer footokenbar"})
        assert response.status_code == 200, response.text
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 10.7K bytes
    - Viewed (0)
Back to top