Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 52 for get_default (0.14 sec)

  1. fastapi/_compat.py

                return self.get_default()
    
            @property
            def type_(self) -> Any:
                return self.field_info.annotation
    
            def __post_init__(self) -> None:
                self._type_adapter: TypeAdapter[Any] = TypeAdapter(
                    Annotated[self.field_info.annotation, self.field_info]
                )
    
            def get_default(self) -> Any:
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Oct 12 09:36:32 UTC 2024
    - 23.4K bytes
    - Viewed (0)
  2. compat/maven-resolver-provider/src/test/java/org/apache/maven/repository/internal/RemoteSnapshotMetadataTest.java

        @BeforeEach
        void setLocaleToUseBuddhistCalendar() {
            defaultLocale = Locale.getDefault();
            Locale.setDefault(new Locale("th", "TH"));
        }
    
        @AfterEach
        void restoreLocale() {
            Locale.setDefault(defaultLocale);
        }
    
        static String gregorianDate() {
            SimpleDateFormat df = new SimpleDateFormat("yyyyMMdd");
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  3. compat/maven-artifact/src/test/java/org/apache/maven/artifact/versioning/ComparableVersionTest.java

        }
    
        @Test
        void testLocaleIndependent() {
            Locale orig = Locale.getDefault();
            Locale[] locales = {Locale.ENGLISH, new Locale("tr"), Locale.getDefault()};
            try {
                for (Locale locale : locales) {
                    Locale.setDefault(locale);
                    checkVersionsEqual("1-abcdefghijklmnopqrstuvwxyz", "1-ABCDEFGHIJKLMNOPQRSTUVWXYZ");
                }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 14K bytes
    - Viewed (0)
  4. compat/maven-resolver-provider/src/test/java/org/apache/maven/repository/internal/VersionTest.java

            Locale orig = Locale.getDefault();
            try {
                Locale[] locales = {Locale.ENGLISH, new Locale("tr")};
                for (Locale locale : locales) {
                    Locale.setDefault(locale);
                    assertOrder(X_EQ_Y, "1-abcdefghijklmnopqrstuvwxyz", "1-ABCDEFGHIJKLMNOPQRSTUVWXYZ");
                }
            } finally {
                Locale.setDefault(orig);
            }
        }
    
        @Test
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/testers/MapGetOrDefaultTester.java

        assertEquals(
            "getOrDefault(present, def) should return the associated value",
            v0(),
            getMap().getOrDefault(k0(), v3()));
      }
    
      @CollectionSize.Require(absent = ZERO)
      public void testGetOrDefault_presentNullDefault() {
        assertEquals(
            "getOrDefault(present, null) should return the associated value",
            v0(),
            getMap().getOrDefault(k0(), null));
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:51:04 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  6. fastapi/openapi/utils.py

                            response_schema = {}
                    operation.setdefault("responses", {}).setdefault(
                        status_code, {}
                    ).setdefault("content", {}).setdefault(route_response_media_type, {})[
                        "schema"
                    ] = response_schema
                if route.responses:
                    operation_responses = operation.setdefault("responses", {})
                    for (
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Sep 17 18:54:10 UTC 2024
    - 22.6K bytes
    - Viewed (0)
  7. impl/maven-core/src/main/java/org/apache/maven/artifact/resolver/filter/ExclusionArtifactFilter.java

        }
    
        private static Predicate<Artifact> toPredicate(Exclusion exclusion) {
            PathMatcher groupId = FileSystems.getDefault().getPathMatcher("glob:" + exclusion.getGroupId());
            PathMatcher artifactId = FileSystems.getDefault().getPathMatcher("glob:" + exclusion.getArtifactId());
            Predicate<Artifact> predGroupId = a -> groupId.matches(createPathProxy(a.getGroupId()));
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3K bytes
    - Viewed (0)
  8. compat/maven-model-builder/src/main/java/org/apache/maven/model/profile/activation/OperatingSystemProfileActivator.java

                    .getOrDefault("os.name", Os.OS_NAME)
                    .toLowerCase(Locale.ENGLISH);
            String actualOsArch = context.getSystemProperties()
                    .getOrDefault("os.arch", Os.OS_ARCH)
                    .toLowerCase(Locale.ENGLISH);
            String actualOsVersion = context.getSystemProperties()
                    .getOrDefault("os.version", Os.OS_VERSION)
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  9. impl/maven-core/src/main/java/org/apache/maven/ReactorReader.java

        }
    
        private MavenProject getProject(Artifact artifact) {
            return getAllProjects()
                    .getOrDefault(artifact.getGroupId(), Collections.emptyMap())
                    .getOrDefault(artifact.getArtifactId(), Collections.emptyMap())
                    .getOrDefault(artifact.getBaseVersion(), null);
        }
    
        // groupId -> (artifactId -> (version -> project)))
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 22.3K bytes
    - Viewed (0)
  10. .teamcity/src/main/kotlin/configurations/StageTriggers.kt

            triggers.add(StageTrigger(model, stage, prevStage, null, allDependencies))
    
            stageWithOsTriggers.getOrDefault(stage.stageName, emptyList()).forEach { targetOs ->
                val dependencies = allDependencies.filter { it.os == targetOs }
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Nov 06 08:08:13 UTC 2024
    - 5.8K bytes
    - Viewed (0)
Back to top