Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 3901 - 3910 of 6,702 for If (0.02 seconds)

  1. tests/test_security_api_key_query_optional.py

    class User(BaseModel):
        username: str
    
    
    def get_current_user(oauth_header: str | None = Security(api_key)):
        if oauth_header is None:
            return None
        user = User(username=oauth_header)
        return user
    
    
    @app.get("/users/me")
    def read_current_user(current_user: User | None = Depends(get_current_user)):
        if current_user is None:
            return {"msg": "Create an account first"}
        return current_user
    
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 17 09:59:14 GMT 2026
    - 2.1K bytes
    - Click Count (0)
  2. src/test/java/jcifs/internal/SMBProtocolDecodingExceptionTest.java

            assertNull(ex.getCause(), "Cause should be null when only message is provided");
    
            // toString should include the class name and (if non-null) the message
            String ts = ex.toString();
            assertTrue(ts.contains("SMBProtocolDecodingException"), "toString should include class name");
            if (message != null && !message.isEmpty()) {
                assertTrue(ts.contains(message), "toString should include non-empty message");
            }
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 5.1K bytes
    - Click Count (0)
  3. docs/site-replication/README.md

    - **Removing a site** is not allowed from a set of replicated sites once configured.
    - All sites must be using the **same** external IDP(s) if any.
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Tue Aug 12 18:20:36 GMT 2025
    - 3.4K bytes
    - Click Count (0)
  4. src/main/java/org/codelibs/fess/suggest/index/writer/SuggestWriter.java

                if (mergedIdSet.contains(item1Id)) {
                    continue;
                }
    
                SuggestItem mergedItem = item1;
                for (final SuggestItem item2 : items) {
                    if (item1.equals(item2)) {
                        continue;
                    }
    
                    final String item2Id = item2.getId();
                    if (item1Id.equals(item2Id)) {
    Created: Fri Apr 17 09:08:13 GMT 2026
    - Last Modified: Fri Jul 04 14:00:23 GMT 2025
    - 4.1K bytes
    - Click Count (0)
  5. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/test/rest/transform/headers/InjectHeaders.java

        @Override
        public void transformTest(ObjectNode doNodeParent) {
            ObjectNode doNodeValue = (ObjectNode) doNodeParent.get(getKeyToFind());
    
            if (shouldApplyHeaders(doNodeValue)) {
                ObjectNode headersNode = (ObjectNode) doNodeValue.get("headers");
                if (headersNode == null) {
                    headersNode = new ObjectNode(jsonNodeFactory);
                }
    
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Wed Jul 07 15:48:06 GMT 2021
    - 3K bytes
    - Click Count (0)
  6. README.md

    Used by Starlette:
    
    * [`httpx`](https://www.python-httpx.org) - Required if you want to use the `TestClient`.
    * [`jinja2`](https://jinja.palletsprojects.com) - Required if you want to use the default template configuration.
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Mar 07 09:29:03 GMT 2026
    - 24.3K bytes
    - Click Count (0)
  7. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/ElasticsearchJavaBasePlugin.java

            // we are not shipping these jars, we act like dumb consumers of these things
            if (project.getPath().startsWith(":test:fixtures") || project.getPath().equals(":build-tools")) {
                return;
            }
            // fail on any conflicting dependency versions
            project.getConfigurations().all(configuration -> {
                if (configuration.getName().endsWith("Fixture")) {
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Mon Sep 27 16:04:42 GMT 2021
    - 8K bytes
    - Click Count (0)
  8. CHANGELOG/CHANGELOG-1.8.md

              * 'node.kubernetes.io/network-unavailable=:NoSchedule' if NetworkUnavailable is true
              * 'node.kubernetes.io/disk-pressure=:NoSchedule' if DiskPressure is true
              * 'node.kubernetes.io/memory-pressure=:NoSchedule' if MemoryPressure is true
              * 'node.kubernetes.io/out-of-disk=:NoSchedule' if OutOfDisk is true
    Created: Fri Apr 03 09:05:14 GMT 2026
    - Last Modified: Tue Feb 20 15:45:02 GMT 2024
    - 312.2K bytes
    - Click Count (0)
  9. src/test/java/org/codelibs/fess/job/PythonJobTest.java

            } catch (JobProcessingException e) {
                assertEquals("Python Process terminated.", e.getMessage());
                assertNotNull(e.getCause());
                // Check cause message if available, otherwise just verify cause exists
                if (e.getCause().getMessage() != null) {
                    assertTrue(e.getCause().getMessage().contains("Process start failed"));
                }
            }
        }
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 22.2K bytes
    - Click Count (0)
  10. guava-testlib/src/com/google/common/collect/testing/google/BiMapTestSuiteBuilder.java

        boolean nullKeys = inverseFeatures.remove(MapFeature.ALLOWS_NULL_KEYS);
        boolean nullValues = inverseFeatures.remove(MapFeature.ALLOWS_NULL_VALUES);
    
        if (nullKeys) {
          inverseFeatures.add(MapFeature.ALLOWS_NULL_VALUES);
        }
        if (nullValues) {
          inverseFeatures.add(MapFeature.ALLOWS_NULL_KEYS);
        }
    
        inverseFeatures.add(NoRecurse.INVERSE);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Oct 30 16:15:19 GMT 2024
    - 6.8K bytes
    - Click Count (0)
Back to Top