Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 29 for Motivation (0.24 sec)

  1. docs/de/docs/python-types.md

    !!! note "Hinweis"
        Wenn Sie ein Python-Experte sind und bereits alles über Typhinweise wissen, überspringen Sie dieses Kapitel und fahren Sie mit dem nächsten fort.
    
    ## Motivation
    
    Fangen wir mit einem einfachen Beispiel an:
    
    ```Python
    {!../../../docs_src/python_types/tutorial001.py!}
    ```
    
    Dieses Programm gibt aus:
    
    ```
    John Doe
    ```
    
    Die Funktion macht Folgendes:
    Plain Text
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 20:29:25 GMT 2024
    - 19.3K bytes
    - Viewed (0)
  2. docs/en/docs/python-types.md

    But even if you never use **FastAPI**, you would benefit from learning a bit about them.
    
    !!! note
        If you are a Python expert, and you already know everything about type hints, skip to the next chapter.
    
    ## Motivation
    
    Let's start with a simple example:
    
    ```Python
    {!../../../docs_src/python_types/tutorial001.py!}
    ```
    
    Calling this program outputs:
    
    ```
    John Doe
    ```
    
    The function does the following:
    Plain Text
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 17K bytes
    - Viewed (0)
  3. maven-core/src/main/java/org/apache/maven/settings/SettingsUtilsV4.java

            profile.id(modelProfile.getId());
    
            org.apache.maven.api.model.Activation modelActivation = modelProfile.getActivation();
    
            if (modelActivation != null) {
                Activation.Builder activation = Activation.newBuilder();
    
                activation.activeByDefault(modelActivation.isActiveByDefault());
    
                activation.jdk(modelActivation.getJdk());
    
    Java
    - Registered: Sun Mar 24 03:35:10 GMT 2024
    - Last Modified: Thu Feb 15 08:42:00 GMT 2024
    - 13.8K bytes
    - Viewed (0)
  4. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/profile/FileProfileActivator.java

        @Override
        public boolean isActive(Profile profile, ProfileActivationContext context, ModelProblemCollector problems) {
            Activation activation = profile.getActivation();
    
            if (activation == null) {
                return false;
            }
    
            ActivationFile file = activation.getFile();
    
            if (file == null) {
                return false;
            }
    
            String path;
            boolean missing;
    
    Java
    - Registered: Sun Apr 21 03:35:09 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 4.1K bytes
    - Viewed (0)
  5. maven-api-impl/src/main/java/org/apache/maven/internal/impl/SettingsUtilsV4.java

            profile.id(modelProfile.getId());
    
            org.apache.maven.api.model.Activation modelActivation = modelProfile.getActivation();
    
            if (modelActivation != null) {
                Activation.Builder activation = Activation.newBuilder();
    
                activation.activeByDefault(modelActivation.isActiveByDefault());
    
                activation.jdk(modelActivation.getJdk());
    
    Java
    - Registered: Sun Apr 21 03:35:09 GMT 2024
    - Last Modified: Mon Mar 25 10:50:01 GMT 2024
    - 13.4K bytes
    - Viewed (0)
  6. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/profile/PropertyProfileActivator.java

        @Override
        public boolean presentInConfig(Profile profile, ProfileActivationContext context, ModelProblemCollector problems) {
            Activation activation = profile.getActivation();
    
            if (activation == null) {
                return false;
            }
    
            ActivationProperty property = activation.getProperty();
    
            return property != null;
        }
    Java
    - Registered: Sun Apr 21 03:35:09 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 3.6K bytes
    - Viewed (0)
  7. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/profile/JdkVersionProfileActivator.java

        @Override
        public boolean isActive(Profile profile, ProfileActivationContext context, ModelProblemCollector problems) {
            Activation activation = profile.getActivation();
    
            if (activation == null) {
                return false;
            }
    
            String jdk = activation.getJdk();
    
            if (jdk == null) {
                return false;
            }
    
    Java
    - Registered: Sun Apr 21 03:35:09 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 6.2K bytes
    - Viewed (0)
  8. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/profile/OperatingSystemProfileActivator.java

        @Override
        public boolean isActive(Profile profile, ProfileActivationContext context, ModelProblemCollector problems) {
            Activation activation = profile.getActivation();
    
            if (activation == null) {
                return false;
            }
    
            ActivationOS os = activation.getOs();
    
            if (os == null) {
                return false;
            }
    
            boolean active = ensureAtLeastOneNonNull(os);
    
    Java
    - Registered: Sun Apr 21 03:35:09 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 4.9K bytes
    - Viewed (0)
  9. maven-core/src/test/java/org/apache/maven/settings/SettingsUtilsTest.java

                    .name("name" + Long.toHexString(entropy.nextLong()))
                    .version("version" + Long.toHexString(entropy.nextLong()))
                    .build();
            Activation a = Activation.newBuilder()
                    .activeByDefault(entropy.nextBoolean())
                    .jdk("jdk" + Long.toHexString(entropy.nextLong()))
                    .file(af)
                    .property(ap)
                    .os(ao)
    Java
    - Registered: Sun Apr 21 03:35:09 GMT 2024
    - Last Modified: Mon Mar 25 10:50:01 GMT 2024
    - 6.7K bytes
    - Viewed (0)
  10. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/DefaultProfileActivationContext.java

    import java.util.Map;
    import java.util.Properties;
    import java.util.stream.Collectors;
    
    import org.apache.maven.api.services.model.*;
    
    /**
     * Describes the environmental context used to determine the activation status of profiles.
     *
     */
    public class DefaultProfileActivationContext implements ProfileActivationContext {
    
        private List<String> activeProfileIds = Collections.emptyList();
    
    Java
    - Registered: Sun Apr 21 03:35:09 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 6.9K bytes
    - Viewed (0)
Back to top