Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 173 for get_path (0.12 sec)

  1. tests/test_dependency_security_overrides.py

        return "alice", required_scopes.scopes
    
    
    def get_data():
        return [1, 2, 3]
    
    
    def get_data_override():
        return [3, 4, 5]
    
    
    @app.get("/user")
    def read_user(
        user_data: Tuple[str, List[str]] = Security(get_user, scopes=["foo", "bar"]),
        data: List[int] = Depends(get_data),
    ):
        return {"user": user_data[0], "scopes": user_data[1], "data": data}
    
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Jun 14 15:54:46 UTC 2020
    - 1.4K bytes
    - Viewed (0)
  2. compat/maven-compat/src/test/java/org/apache/maven/repository/LegacyRepositorySystemTest.java

            policy.setUpdatePolicy("always");
    
            Repository repository = new Repository();
            repository.setId(RepositorySystem.DEFAULT_REMOTE_REPO_ID);
            repository.setUrl("file://" + repoDir.toURI().getPath());
            repository.setReleases(policy);
            repository.setSnapshots(policy);
    
            return Arrays.asList(repositorySystem.buildArtifactRepository(repository));
        }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/dfs/DfsReferralDataImpl.java

            }
            DfsReferralData other = (DfsReferralData) obj;
    
            return Objects.equals(getServer(), other.getServer()) && Objects.equals(getShare(), other.getShare())
                    && Objects.equals(getPath(), other.getPath()) && Objects.equals(getPathConsumed(), other.getPathConsumed());
        }
    
    
        /**
         * @param ref
         * @param reqPath
         * @param expire
         * @param consumed
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sat Nov 13 15:13:49 UTC 2021
    - 11K bytes
    - Viewed (0)
  4. compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/DefaultVersionResolver.java

                        syncContext.acquire(null, Collections.singleton(metadata));
    
                        if (metadata.getPath() != null && Files.exists(metadata.getPath())) {
                            try (InputStream in = Files.newInputStream(metadata.getPath())) {
                                versioning = new Versioning(
                                        new MetadataStaxReader().read(in, false).getVersioning());
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  5. impl/maven-core/src/main/java/org/apache/maven/internal/transformation/impl/DefaultConsumerPomBuilder.java

            final Path src;
    
            PomConsumerModelSource(Path path, Path src) {
                this.path = path;
                this.src = src;
            }
    
            @Override
            public Path getPath() {
                return path;
            }
    
            @Override
            public InputStream openStream() throws IOException {
                return Files.newInputStream(src);
            }
    
            @Override
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 11K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/app/web/admin/dict/mapping/AdminDictMappingAction.java

                    form.dictId = dictId;
                });
            }).renderWith(data -> {
                charMappingService.getCharMappingFile(dictId).ifPresent(file -> {
                    RenderDataUtil.register(data, "path", file.getPath());
                }).orElse(() -> {
                    throwValidationError(messages -> messages.addErrorsFailedToDownloadMappingFile(GLOBAL), this::asDictIndexHtml);
                });
            });
        }
    
        @Execute
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 19.5K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/io/FilesTest.java

      private static class BadLengthFile extends File {
    
        private final long badLength;
    
        public BadLengthFile(File delegate, long badLength) {
          super(delegate.getPath());
          this.badLength = badLength;
        }
    
        @Override
        public long length() {
          return badLength;
        }
    
        private static final long serialVersionUID = 0;
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 22.1K bytes
    - Viewed (0)
  8. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultModelProcessor.java

            Path pom = modelParsers.stream()
                    .map(m -> m.locate(projectDirectory)
                            .map(org.apache.maven.api.services.Source::getPath)
                            .orElse(null))
                    .filter(Objects::nonNull)
                    .findFirst()
                    .orElseGet(() -> modelLocator.locatePom(projectDirectory));
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  9. tests/test_jsonable_encoder.py

            else:
    
                class Config:
                    arbitrary_types_allowed = True
    
        test_path = PurePath("/foo", "bar")
        obj = ModelWithPath(path=test_path)
        assert jsonable_encoder(obj) == {"path": str(test_path)}
    
    
    def test_encode_model_with_pure_posix_path():
        class ModelWithPath(BaseModel):
            path: PurePosixPath
    
            if PYDANTIC_V2:
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Apr 18 21:56:59 UTC 2024
    - 9K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/app/web/api/admin/dict/ApiAdminDictAction.java

            final ListBody body = new ListBody();
            body.id = dictionaryFile.getId();
            body.type = dictionaryFile.getType();
            body.path = dictionaryFile.getPath();
            body.timestamp = dictionaryFile.getTimestamp();
            return body;
        }
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 2K bytes
    - Viewed (0)
Back to top