Search Options

Results per page
Sort
Preferred Languages
Advance

Results 211 - 220 of 2,941 for get2 (0.06 sec)

  1. tensorflow/c/eager/gradient_checker_test.cc

        TF_StatusPtr status(TF_NewStatus());
        TF_SetTracingImplementation(std::get<0>(GetParam()), status.get());
    
        {
          absl::Status s = StatusFromTF_Status(status.get());
          CHECK_EQ(errors::OK, s.code()) << s.message();
        }
    
        {
          AbstractContext* ctx_raw = nullptr;
          absl::Status s =
              BuildImmediateExecutionContext(std::get<1>(GetParam()), &ctx_raw);
          ASSERT_EQ(errors::OK, s.code()) << s.message();
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 05:11:17 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  2. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvn/forked/DefaultForkedMavenInvoker.java

            }
            if (mavenOptions.logFile().isPresent()) {
                cmdAndArguments.add("--log-file");
                cmdAndArguments.add(mavenOptions.logFile().get());
            }
            if (mavenOptions.color().isPresent()) {
                cmdAndArguments.add("--color");
                cmdAndArguments.add(mavenOptions.color().get());
            }
            if (mavenOptions.help().orElse(false)) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  3. tests/test_security_http_bearer.py

    app = FastAPI()
    
    security = HTTPBearer()
    
    
    @app.get("/users/me")
    def read_current_user(credentials: HTTPAuthorizationCredentials = Security(security)):
        return {"scheme": credentials.scheme, "credentials": credentials.credentials}
    
    
    client = TestClient(app)
    
    
    def test_security_http_bearer():
        response = client.get("/users/me", headers={"Authorization": "Bearer foobar"})
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 2K bytes
    - Viewed (0)
  4. tests/test_security_http_digest_description.py

    app = FastAPI()
    
    security = HTTPDigest(description="HTTPDigest scheme")
    
    
    @app.get("/users/me")
    def read_current_user(credentials: HTTPAuthorizationCredentials = Security(security)):
        return {"scheme": credentials.scheme, "credentials": credentials.credentials}
    
    
    client = TestClient(app)
    
    
    def test_security_http_digest():
        response = client.get("/users/me", headers={"Authorization": "Digest foobar"})
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/helper/CrawlingConfigHelperTest.java

            assertEquals("fp", crawlingConfigHelper.getPipeline("F1P").get());
            assertEquals("dp", crawlingConfigHelper.getPipeline("D1P").get());
        }
    
        public void test_sessionCountId() {
            final String sessionId = "12345";
            final String sessionCountId = sessionId + "-1";
            assertNull(crawlingConfigHelper.get(sessionCountId));
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 23.2K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/ProtocolTest.kt

    import okhttp3.Protocol.Companion.get
    import org.junit.jupiter.api.Assertions.assertThrows
    import org.junit.jupiter.api.Test
    
    class ProtocolTest {
      @Test
      fun testGetKnown() {
        assertThat(get("http/1.0")).isEqualTo(Protocol.HTTP_1_0)
        assertThat(get("http/1.1")).isEqualTo(Protocol.HTTP_1_1)
        assertThat(get("spdy/3.1")).isEqualTo(Protocol.SPDY_3)
        assertThat(get("h2")).isEqualTo(Protocol.HTTP_2)
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Thu Jan 04 05:32:07 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/ImmutableSetMultimapTest.java

        assertThat(multimap.get("a")).containsExactly(5, 2).inOrder();
        assertThat(multimap.get("b")).containsExactly(3, 6).inOrder();
        assertFalse(multimap.get("a") instanceof ImmutableSortedSet);
        assertFalse(multimap.get("x") instanceof ImmutableSortedSet);
        assertFalse(multimap.asMap().get("a") instanceof ImmutableSortedSet);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 26.9K bytes
    - Viewed (0)
  8. tests/test_tutorial/test_security/test_tutorial006_an.py

    client = TestClient(app)
    
    
    def test_security_http_basic():
        response = client.get("/users/me", auth=("john", "secret"))
        assert response.status_code == 200, response.text
        assert response.json() == {"username": "john", "password": "secret"}
    
    
    def test_security_http_basic_no_credentials():
        response = client.get("/users/me")
        assert response.json() == {"detail": "Not authenticated"}
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  9. tests/test_repeated_dependency_schema.py

                        },
                    },
                    "summary": "Get Deps",
                }
            }
        },
    }
    
    
    def test_schema():
        response = client.get("/openapi.json")
        assert response.status_code == status.HTTP_200_OK
        actual_schema = response.json()
        assert actual_schema == schema
        assert (
            len(actual_schema["paths"]["/"]["get"]["parameters"]) == 1
        )  # primary goal of this test
    
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  10. tests/test_security_http_bearer_description.py

    security = HTTPBearer(description="HTTP Bearer token scheme")
    
    
    @app.get("/users/me")
    def read_current_user(credentials: HTTPAuthorizationCredentials = Security(security)):
        return {"scheme": credentials.scheme, "credentials": credentials.credentials}
    
    
    client = TestClient(app)
    
    
    def test_security_http_bearer():
        response = client.get("/users/me", headers={"Authorization": "Bearer foobar"})
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 2.2K bytes
    - Viewed (0)
Back to top