Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 889 for Model (0.22 sec)

  1. tests/test_jsonable_encoder.py

    
    def test_encode_model_with_alias_raises():
        with pytest.raises(ValidationError):
            ModelWithAlias(foo="Bar")
    
    
    def test_encode_model_with_alias():
        model = ModelWithAlias(Foo="Bar")
        assert jsonable_encoder(model) == {"Foo": "Bar"}
    
    
    def test_encode_model_with_default():
        model = ModelWithDefault(foo="foo", bar="bar")
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 21:56:59 GMT 2024
    - 9K bytes
    - Viewed (0)
  2. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/Result.java

     * <ol>
     * <li>success - in which case only the model field is set
     * <li>success with warnings - model field + non-error model problems
     * <li>error - no model, but diagnostics
     * <li>error - (partial) model and diagnostics
     * </ol>
     * Could encode these variants as subclasses, but kept in one for now
     *
     * @param <T> the model type
     */
    public class Result<T> {
    
        /**
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 6.8K bytes
    - Viewed (0)
  3. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/DefaultModelBuilder.java

        }
    
        static String getGroupId(Model model) {
            String groupId = model.getGroupId();
            if (groupId == null && model.getParent() != null) {
                groupId = model.getParent().getGroupId();
            }
            return groupId;
        }
    
        private String getVersion(Model model) {
            String version = model.getVersion();
            if (version == null && model.getParent() != null) {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri May 03 08:48:38 GMT 2024
    - 61.5K bytes
    - Viewed (0)
  4. maven-core/src/main/java/org/apache/maven/project/DefaultModelBuildingListener.java

        }
    
        /**
         * Gets the project whose model is being built.
         *
         * @return The project, never {@code null}.
         */
        public MavenProject getProject() {
            return project;
        }
    
        @Override
        public void buildExtensionsAssembled(ModelBuildingEvent event) {
            Model model = new Model(event.model());
    
            try {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 5.1K bytes
    - Viewed (0)
  5. docs_src/path_params/tutorial005.py

    
    app = FastAPI()
    
    
    @app.get("/models/{model_name}")
    async def get_model(model_name: ModelName):
        if model_name is ModelName.alexnet:
            return {"model_name": model_name, "message": "Deep Learning FTW!"}
    
        if model_name.value == "lenet":
            return {"model_name": model_name, "message": "LeCNN all the images"}
    
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Aug 26 13:26:03 GMT 2022
    - 546 bytes
    - Viewed (0)
  6. maven-core/src/test/resources/apiv4-repo/junit/junit/4.13.1/junit-4.13.1.jar

    Object createTest() throws Exception; protected Object createTest(model.FrameworkMethod) throws Exception; protected String testName(model.FrameworkMethod); protected model.Statement methodBlock(model.FrameworkMethod); protected model.Statement methodInvoker(model.FrameworkMethod, Object); protected model.Statement possiblyExpectingExc(model.FrameworkMethod, Object, model.Statement); protected model.Statement withPotentialTimeout(model.FrameworkMethod, Object, model.Statement); protected model.Statement...
    Archive
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Tue Dec 19 19:08:55 GMT 2023
    - 373.7K bytes
    - Viewed (0)
  7. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/DefaultLifecycleBindingsInjector.java

    import org.apache.maven.api.di.Named;
    import org.apache.maven.api.di.Singleton;
    import org.apache.maven.api.model.Build;
    import org.apache.maven.api.model.Model;
    import org.apache.maven.api.model.Plugin;
    import org.apache.maven.api.model.PluginContainer;
    import org.apache.maven.api.model.PluginExecution;
    import org.apache.maven.api.model.PluginManagement;
    import org.apache.maven.api.services.BuilderProblem.Severity;
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 8.6K bytes
    - Viewed (0)
  8. fastapi/routing.py

            self.response_model_include = response_model_include
            self.response_model_exclude = response_model_exclude
            self.response_model_by_alias = response_model_by_alias
            self.response_model_exclude_unset = response_model_exclude_unset
            self.response_model_exclude_defaults = response_model_exclude_defaults
            self.response_model_exclude_none = response_model_exclude_none
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Apr 02 02:48:51 GMT 2024
    - 170.1K bytes
    - Viewed (0)
  9. maven-core/src/main/resources/META-INF/maven/org.apache.maven.api.di.Inject

    org.apache.maven.internal.impl.model.DefaultModelPathTranslator
    org.apache.maven.internal.impl.model.DefaultInheritanceAssembler
    org.apache.maven.internal.impl.model.DefaultProfileSelector
    org.apache.maven.internal.impl.model.DefaultProfileInjector
    org.apache.maven.internal.impl.model.DefaultPluginManagementInjector
    org.apache.maven.internal.impl.model.DefaultDependencyManagementInjector
    Plain Text
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Thu Apr 25 14:13:36 GMT 2024
    - 4.2K bytes
    - Viewed (0)
  10. tests/test_datetime_custom_encoder.py

        app = FastAPI()
        model = ModelWithDatetimeField(dt_field=datetime(2019, 1, 1, 8))
    
        @app.get("/model", response_model=ModelWithDatetimeField)
        def get_model():
            return model
    
        client = TestClient(app)
        with client:
            response = client.get("/model")
        assert response.json() == {"dt_field": "2019-01-01T08:00:00+00:00"}
    
    
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jul 07 17:12:13 GMT 2023
    - 1.6K bytes
    - Viewed (0)
Back to top