- Sort Score
- Num 10 results
- Language All
Results 131 - 140 of 2,463 for xpath (0.02 seconds)
-
tests/test_request_params/test_header/test_optional_list.py
] ) @pytest.mark.parametrize( "path", ["/optional-list-str", "/model-optional-list-str"], ) def test_optional_list_str_missing(path: str): client = TestClient(app) response = client.get(path) assert response.status_code == 200, response.text assert response.json() == {"p": None} @pytest.mark.parametrize( "path", ["/optional-list-str", "/model-optional-list-str"], )Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Feb 17 09:59:14 GMT 2026 - 9.6K bytes - Click Count (0) -
android/guava/src/com/google/common/io/MoreFiles.java
} } /** * Returns a path to the parent directory of the given path. If the path actually has a parent * path, this is simple. Otherwise, we need to do some trickier things. Returns null if the path * is a root or is the empty path. */ private static @Nullable Path getParentPath(Path path) { Path parent = path.getParent(); // Paths that have a parent:
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Apr 14 16:07:06 GMT 2025 - 34.6K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/mylasta/direction/sponsor/FessCookieResourceProviderTest.java
assertEquals(Integer.valueOf(expire), provider.provideDefaultExpire()); } } // Test with different path values @Test public void test_differentPathValues() { String[] testPaths = { "/", "/app", "/test/path", "/a/b/c/d", "" }; for (String path : testPaths) { ComponentUtil.setFessConfig(new FessConfig.SimpleImpl() {
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 9.2K bytes - Click Count (0) -
tests/test_request_params/test_query/test_list.py
def read_model_required_list_str(p: Annotated[QueryModelRequiredListStr, Query()]): return {"p": p.p} @pytest.mark.parametrize( "path", ["/required-list-str", "/model-required-list-str"], ) def test_required_list_str_schema(path: str): assert app.openapi()["paths"][path]["get"]["parameters"] == snapshot( [ { "required": True, "schema": {
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Feb 08 10:18:38 GMT 2026 - 11.2K bytes - Click Count (0) -
scripts/translation_fixer.py
first_dirs_str = tuple(str(d) for d in first_dirs) for path in lang_path_root.rglob("*.md"): if str(path).startswith(first_dirs_str): continue if path.parent == first_parent: continue yield path def get_all_paths(lang: str): res: list[str] = [] lang_docs_root = Path("docs") / lang / "docs" for path in iter_all_lang_paths(lang_docs_root):
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sat Jan 10 21:48:08 GMT 2026 - 3.2K bytes - Click Count (0) -
docs/tr/docs/tutorial/body-fields.md
# Body - Alanlar { #body-fields } `Query`, `Path` ve `Body` ile *path operation function* parametrelerinde ek doğrulama ve metadata tanımlayabildiğiniz gibi, Pydantic modellerinin içinde de Pydantic'in `Field`'ını kullanarak doğrulama ve metadata tanımlayabilirsiniz. ## `Field`'ı import edin { #import-field } Önce import etmeniz gerekir: {* ../../docs_src/body_fields/tutorial001_an_py310.py hl[4] *} /// warning | UyarıCreated: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 05 15:43:38 GMT 2026 - 2.7K bytes - Click Count (0) -
docs/en/docs/tutorial/dependencies/index.md
It is just a function that can take all the same parameters that a *path operation function* can take: {* ../../docs_src/dependencies/tutorial001_an_py310.py hl[8:9] *} That's it. **2 lines**. And it has the same shape and structure that all your *path operation functions* have. You can think of it as a *path operation function* without the "decorator" (without the `@app.get("/some-path")`). And it can return anything you want.Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 05 18:13:19 GMT 2026 - 9.5K bytes - Click Count (0) -
src/main/java/jcifs/util/PathValidator.java
} /** * Validate and normalize a path * * @param path the path to validate * @return normalized safe path * @throws SmbException if path is invalid or dangerous */ public String validatePath(String path) throws SmbException { if (path == null || path.isEmpty()) { throw new SmbException("Path cannot be null or empty"); } // Check lengthCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 14.5K bytes - Click Count (0) -
src/main/java/jcifs/util/ServerResponseValidator.java
if (path.length() > MAX_PATH_SIZE) { failedValidations.incrementAndGet(); log.warn("Path exceeds maximum length: {}", path.length()); throw new SmbException("Path exceeds maximum length"); } // Check for directory traversal if (path.contains("..") || path.contains("./") || path.contains(".\\")) { failedValidations.incrementAndGet();
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 16.6K bytes - Click Count (0) -
internal/lock/lock_windows.go
// Don't canonicalize UNC paths. return path } if !filepath.IsAbs(path) { // Relative path return path } const prefix = `\\?` pathbuf := make([]byte, len(prefix)+len(path)+len(`\`)) copy(pathbuf, prefix) n := len(path) r, w := 0, len(prefix) for r < n { switch { case os.IsPathSeparator(path[r]): // empty block r++
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 7.9K bytes - Click Count (0)