Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 198 for path3a (0.21 sec)

  1. tests/test_include_router_defaults_overrides.py

        assert response.json() == {
            "openapi": "3.1.0",
            "info": {"title": "FastAPI", "version": "0.1.0"},
            "paths": {
                "/override1": {
                    "get": {
                        "tags": ["path1a", "path1b"],
                        "summary": "Path1 Override",
                        "operationId": "path1_override_override1_get",
                        "parameters": [
                            {
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 358.6K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/common/python/testing_test.py

      def test_get_dir_size(self):
        self.assertEqual(testing.get_dir_size(self.path_a), 4)
        self.assertEqual(testing.get_dir_size(self.path_b), 8)
    
      def test_get_size_ratio(self):
        self.assertEqual(testing.get_size_ratio(self.path_a, self.path_b), 0.5)
        self.assertEqual(testing.get_size_ratio(self.path_b, self.path_a), 2.0)
    
    
    if __name__ == '__main__':
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 21 08:51:46 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/common/python/testing.py

    def get_size_ratio(path_a: str, path_b: str) -> float:
      """Return the size ratio of the given paths.
    
      Args:
        path_a: Path of a directory or a file to be the nominator of the ratio.
        path_b: Path of a directory or a file to be the denominator of the ratio.
    
      Returns:
        Ratio of size of path_a / size of path_b.
      """
      size_a = get_dir_size(path_a)
      size_b = get_dir_size(path_b)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 21 08:51:46 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  4. operator/pkg/util/path.go

    	EscapedPathSeparator = "\\" + PathSeparator
    )
    
    // ValidKeyRegex is a regex for a valid path key element.
    var ValidKeyRegex = regexp.MustCompile("^[a-zA-Z0-9_-]*$")
    
    // Path is a path in slice form.
    type Path []string
    
    // PathFromString converts a string path of form a.b.c to a string slice representation.
    func PathFromString(path string) Path {
    	path = filepath.Clean(path)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Dec 12 17:12:54 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  5. src/path/path.go

    // If the path is empty, Base returns ".".
    // If the path consists entirely of slashes, Base returns "/".
    func Base(path string) string {
    	if path == "" {
    		return "."
    	}
    	// Strip trailing slashes.
    	for len(path) > 0 && path[len(path)-1] == '/' {
    		path = path[0 : len(path)-1]
    	}
    	// Find the last element
    	if i := bytealg.LastIndexByteString(path, '/'); i >= 0 {
    		path = path[i+1:]
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 23 17:33:57 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiextensions-apiserver/test/integration/ratcheting_test_cases/invalid/httproute/invalid-path-alphanum-specialchars-mix.yaml

    apiVersion: gateway.networking.k8s.io/v1beta1
    kind: HTTPRoute
    metadata:
      name: invalid-path-alphanum-specialchars-mix
    spec:
      rules:
      - matches:
        - path:
            type: PathPrefix
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 27 17:15:18 UTC 2023
    - 212 bytes
    - Viewed (0)
  7. platforms/ide/ide/src/test/groovy/org/gradle/plugins/ide/eclipse/model/ClasspathTest.groovy

            path1    | path2    | test1   | test2   | expectedEntries
            '/pathA' | '/pathA' | 'false' | 'false' | [[path: '/pathA', test: 'false']]
            '/pathA' | '/pathA' | 'false' | 'true'  | [[path: '/pathA', test: 'false']]
            '/pathA' | '/pathA' | 'true'  | 'false' | [[path: '/pathA', test: 'false']]
            '/pathA' | '/pathA' | 'true'  | 'true'  | [[path: '/pathA', test: 'true' ]]
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sun Mar 24 15:55:52 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  8. src/path/filepath/path.go

    // Join(base, path) will always produce a path contained within base and
    // Clean(path) will always produce an unrooted path with no ".." path elements.
    //
    // IsLocal is a purely lexical operation.
    // In particular, it does not account for the effect of any symbolic links
    // that may exist in the filesystem.
    func IsLocal(path string) bool {
    	return filepathlite.IsLocal(path)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  9. tests/test_tutorial/test_request_forms_and_files/test_tutorial001_an.py

                ]
            }
        )
    
    
    def test_post_files_and_token(tmp_path, app: FastAPI):
        patha = tmp_path / "test.txt"
        pathb = tmp_path / "testb.txt"
        patha.write_text("<file content>")
        pathb.write_text("<file b content>")
    
        client = TestClient(app)
        with patha.open("rb") as filea, pathb.open("rb") as fileb:
            response = client.post(
                "/files/",
                data={"token": "foo"},
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  10. tests/test_tutorial/test_request_forms_and_files/test_tutorial001.py

                ]
            }
        )
    
    
    def test_post_files_and_token(tmp_path, app: FastAPI):
        patha = tmp_path / "test.txt"
        pathb = tmp_path / "testb.txt"
        patha.write_text("<file content>")
        pathb.write_text("<file b content>")
    
        client = TestClient(app)
        with patha.open("rb") as filea, pathb.open("rb") as fileb:
            response = client.post(
                "/files/",
                data={"token": "foo"},
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 9.8K bytes
    - Viewed (0)
Back to top