Search Options

Results per page
Sort
Preferred Languages
Advance

Results 221 - 230 of 1,697 for modes (0.02 sec)

  1. fastapi/security/oauth2.py

    from typing import Any, Dict, List, Optional, Union, cast
    
    from fastapi.exceptions import HTTPException
    from fastapi.openapi.models import OAuth2 as OAuth2Model
    from fastapi.openapi.models import OAuthFlows as OAuthFlowsModel
    from fastapi.param_functions import Form
    from fastapi.security.base import SecurityBase
    from fastapi.security.utils import get_authorization_scheme_param
    from starlette.requests import Request
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Wed Oct 23 18:30:18 UTC 2024
    - 21.1K bytes
    - Viewed (0)
  2. compat/maven-model/src/test/java/org/apache/maven/model/SerializationTest.java

        @Test
        void testModelSerialization() throws Exception {
            Model model;
            try (InputStream is = getClass().getResourceAsStream("/xml/pom.xml")) {
                model = new MavenXpp3Reader().read(is);
            }
    
            // Serialize an inner child here so that the BaseObject.childrenTracking is non null
            Build build = model.getBuild();
    
            ByteArrayOutputStream baos = new ByteArrayOutputStream();
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  3. tests/joins_table_test.go

    	}
    
    	if DB.Unscoped().Model(&person).Association("Addresses").Count() != 2 {
    		t.Fatalf("Should found soft deleted addresses with unscoped")
    	}
    
    	DB.Model(&person).Association("Addresses").Clear()
    
    	if DB.Model(&person).Association("Addresses").Count() != 0 {
    		t.Fatalf("Should deleted all addresses")
    	}
    
    	if DB.Unscoped().Model(&person).Association("Addresses").Count() != 2 {
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Thu Sep 10 13:46:18 UTC 2020
    - 3.5K bytes
    - Viewed (0)
  4. gorm.go

    }
    
    // SetupJoinTable setup join table schema
    func (db *DB) SetupJoinTable(model interface{}, field string, joinTable interface{}) error {
    	var (
    		tx                      = db.getInstance()
    		stmt                    = tx.Statement
    		modelSchema, joinSchema *schema.Schema
    	)
    
    	err := stmt.Parse(model)
    	if err != nil {
    		return err
    	}
    	modelSchema = stmt.Schema
    
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Wed Oct 09 11:29:48 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  5. build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/docbook/ClassDocSuperTypeBuilder.java

    import gradlebuild.docs.dsl.docbook.model.ClassDoc;
    import gradlebuild.docs.dsl.source.model.ClassMetaData;
    
    import java.util.List;
    
    public class ClassDocSuperTypeBuilder {
        private final DslDocModel model;
        private final GenerationListener listener;
    
        public ClassDocSuperTypeBuilder(DslDocModel model, GenerationListener listener) {
            this.model = model;
            this.listener = listener;
        }
    
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Dec 09 08:14:05 UTC 2020
    - 2K bytes
    - Viewed (0)
  6. tests/test_tutorial/test_sql_databases/test_tutorial001.py

    from sqlmodel.main import default_registry
    
    from tests.utils import needs_py39, needs_py310
    
    
    def clear_sqlmodel():
        # Clear the tables in the metadata for the default base model
        SQLModel.metadata.clear()
        # Clear the Models associated with the registry, to avoid warnings
        default_registry.dispose()
    
    
    @pytest.fixture(
        name="client",
        params=[
            "tutorial001",
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Wed Oct 09 19:44:42 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  7. tests/test_duplicate_models_openapi.py

    from fastapi import FastAPI
    from fastapi.testclient import TestClient
    from pydantic import BaseModel
    
    app = FastAPI()
    
    
    class Model(BaseModel):
        pass
    
    
    class Model2(BaseModel):
        a: Model
    
    
    class Model3(BaseModel):
        c: Model
        d: Model2
    
    
    @app.get("/", response_model=Model3)
    def f():
        return {"c": {}, "d": {"a": {}}}
    
    
    client = TestClient(app)
    
    
    def test_get_api_route():
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  8. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/ModelSourceTransformer.java

     * under the License.
     */
    package org.apache.maven.model.building;
    
    import java.nio.file.Path;
    
    import org.apache.maven.model.Model;
    
    /**
     * The ModelSourceTransformer is a way to transform the local pom while streaming the input.
     *
     * The {@link #transform(Path, TransformerContext, Model)} method uses a Path on purpose, to ensure the
     * local pom is the original source.
     *
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  9. .teamcity/src/main/kotlin/configurations/BuildDistributions.kt

    import common.getBuildScanCustomValueParam
    import model.CIBuildModel
    import model.Stage
    
    class BuildDistributions(model: CIBuildModel, stage: Stage) : OsAwareBaseGradleBuildType(os = LINUX, stage = stage, init = {
        id("${model.projectId}_BuildDistributions")
        name = "Build Distributions"
        description = "Creation and verification of the distribution and documentation"
    
        applyDefaults(
            model,
            this,
            "packageBuild",
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Tue Sep 24 06:22:49 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  10. impl/maven-core/src/main/java/org/apache/maven/internal/transformation/impl/DefaultConsumerPomBuilder.java

        }
    
        static Model transform(Model model, MavenProject project) {
            String packaging = model.getPackaging();
            if (POM_PACKAGING.equals(packaging)) {
                // raw to consumer transform
                model = model.withRoot(false).withModules(null).withSubprojects(null);
                if (model.getParent() != null) {
                    model = model.withParent(model.getParent().withRelativePath(null));
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 11K bytes
    - Viewed (0)
Back to top