Search Options

Results per page
Sort
Preferred Languages
Advance

Results 4961 - 4970 of 7,014 for _return (0.05 sec)

  1. src/main/java/org/codelibs/core/lang/ThreadUtil.java

            if (millis < 1L) {
                return;
            }
            try {
                Thread.sleep(millis);
            } catch (final InterruptedException e) {
                throw new InterruptedRuntimeException(e);
            }
        }
    
        public static void sleepQuietly(final long millis) {
            if (millis < 1L) {
                return;
            }
            try {
                Thread.sleep(millis);
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  2. src/main/java/jcifs/EmptyIterator.java

         *
         * @see java.util.Iterator#hasNext()
         */
        @Override
        public boolean hasNext () {
            return false;
        }
    
    
        /**
         * {@inheritDoc}
         *
         * @see java.util.Iterator#next()
         */
        @Override
        public SmbResource next () {
            return null;
        }
    
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.CloseableIterator#close()
         */
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Tue Oct 16 10:32:35 UTC 2018
    - 1.5K bytes
    - Viewed (0)
  3. compat/maven-builder-support/src/main/java/org/apache/maven/building/ProblemCollectorFactory.java

         * The default implementation is not visible, create it with this factory
         *
         * @param problems starting set of problems, may be {@code null}
         * @return a new instance of a ProblemCollector
         */
        public static ProblemCollector newInstance(List<Problem> problems) {
            return new DefaultProblemCollector(problems);
        }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  4. tests/test_security_http_bearer_optional.py

    
    @app.get("/users/me")
    def read_current_user(
        credentials: Optional[HTTPAuthorizationCredentials] = Security(security),
    ):
        if credentials is None:
            return {"msg": "Create an account first"}
        return {"scheme": credentials.scheme, "credentials": credentials.credentials}
    
    
    client = TestClient(app)
    
    
    def test_security_http_bearer():
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  5. tests/test_security_oauth2_password_bearer_optional.py

    oauth2_scheme = OAuth2PasswordBearer(tokenUrl="/token", auto_error=False)
    
    
    @app.get("/items/")
    async def read_items(token: Optional[str] = Security(oauth2_scheme)):
        if token is None:
            return {"msg": "Create an account first"}
        return {"token": token}
    
    
    client = TestClient(app)
    
    
    def test_no_token():
        response = client.get("/items")
        assert response.status_code == 200, response.text
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  6. istioctl/pkg/cli/context_test.go

    		description      string
    		namespace        string
    		defaultNamespace string
    		wantNamespace    string
    	}{
    		{
    			description:      "return test namespace",
    			namespace:        "test",
    			defaultNamespace: "default",
    			wantNamespace:    "test",
    		},
    		{
    			description:      "return default namespace",
    			namespace:        "",
    			defaultNamespace: "default",
    			wantNamespace:    "default",
    		},
    	}
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Fri Jun 09 18:17:49 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  7. istioctl/pkg/util/clusters/wrapper.go

    func (w *Wrapper) MarshalJSON() ([]byte, error) {
    	return protomarshal.Marshal(w)
    }
    
    // UnmarshalJSON is a custom unmarshaller to handle protobuf pain
    func (w *Wrapper) UnmarshalJSON(b []byte) error {
    	cd := &admin.Clusters{}
    	err := protomarshal.UnmarshalAllowUnknown(b, cd)
    	*w = Wrapper{cd}
    	return err
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Thu Nov 03 08:41:32 UTC 2022
    - 1.2K bytes
    - Viewed (0)
  8. tests/test_tutorial/test_request_files/test_tutorial002_an_py39.py

    from ...utils import needs_py39
    
    
    @pytest.fixture(name="app")
    def get_app():
        from docs_src.request_files.tutorial002_an_py39 import app
    
        return app
    
    
    @pytest.fixture(name="client")
    def get_client(app: FastAPI):
        client = TestClient(app)
        return client
    
    
    @needs_py39
    def test_post_form_no_body(client: TestClient):
        response = client.post("/files/")
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  9. fess-crawler-opensearch/src/test/java/org/codelibs/fess/crawler/service/impl/OpenSearchUrlQueueServiceTest.java

        @Resource
        private FesenClient fesenClient;
    
        private OpenSearchRunner runner;
    
        @Override
        protected String prepareConfigFile() {
            return "app.xml";
        }
    
        @Override
        protected boolean isUseOneTimeContainer() {
            return true;
        }
    
        @Override
        public void setUp() throws Exception {
            // create runner instance
            runner = new OpenSearchRunner();
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Nov 07 04:44:10 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  10. docs_src/cookie_param_models/tutorial001.py

    class Cookies(BaseModel):
        session_id: str
        fatebook_tracker: Union[str, None] = None
        googall_tracker: Union[str, None] = None
    
    
    @app.get("/items/")
    async def read_items(cookies: Cookies = Cookie()):
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Sep 17 18:54:10 UTC 2024
    - 341 bytes
    - Viewed (0)
Back to top