Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 287 for Model (0.18 sec)

  1. docs/en/docs/how-to/async-sql-encode-databases.md

    ```
    
    !!! info
        In Pydantic v1 the method was called `.dict()`, it was deprecated (but still supported) in Pydantic v2, and renamed to `.model_dump()`.
    
        The examples here use `.dict()` for compatibility with Pydantic v1, but you should use `.model_dump()` instead if you can use Pydantic v2.
    
    !!! note
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 5.3K bytes
    - Viewed (0)
  2. mockwebserver-junit4/src/test/java/mockwebserver3/junit4/MockWebServerRuleTest.kt

    import assertk.assertions.isTrue
    import java.net.ConnectException
    import java.util.concurrent.atomic.AtomicBoolean
    import org.junit.Assert.fail
    import org.junit.Test
    import org.junit.runner.Description
    import org.junit.runners.model.Statement
    
    class MockWebServerRuleTest {
      @Test fun statementStartsAndStops() {
        val rule = MockWebServerRule()
        val called = AtomicBoolean()
        val statement: Statement =
          rule.apply(
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.5K bytes
    - Viewed (1)
  3. build-logic-commons/module-identity/src/main/kotlin/gradlebuild/identity/extension/ModuleIdentityExtension.kt

     * limitations under the License.
     */
    
    package gradlebuild.identity.extension
    
    import gradlebuild.basics.buildCommitId
    import gradlebuild.identity.tasks.BuildReceipt
    import org.gradle.api.model.ObjectFactory
    import org.gradle.api.provider.Property
    import org.gradle.api.tasks.TaskContainer
    import org.gradle.api.tasks.bundling.Jar
    import org.gradle.kotlin.dsl.*
    import org.gradle.util.GradleVersion
    
    
    Plain Text
    - Registered: Wed Apr 24 11:36:11 GMT 2024
    - Last Modified: Sat Sep 30 16:17:28 GMT 2023
    - 2.1K bytes
    - Viewed (0)
  4. .teamcity/src/main/kotlin/model/GradleSubprojectProvider.kt

     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package model
    
    import com.alibaba.fastjson.JSON
    import java.io.File
    
    val ignoredSubprojects = listOf(
        "soak", // soak test
        "distributions-integ-tests", // build distribution testing
    Plain Text
    - Registered: Wed Apr 24 11:36:11 GMT 2024
    - Last Modified: Fri Jun 02 14:55:06 GMT 2023
    - 2.2K bytes
    - Viewed (1)
  5. docs/en/docs/tutorial/body-multiple-params.md

    ## Embed a single body parameter
    
    Let's say you only have a single `item` body parameter from a Pydantic model `Item`.
    
    By default, **FastAPI** will then expect its body directly.
    
    But if you want it to expect a JSON with a key `item` and inside of it the model contents, as it does when you declare extra body parameters, you can use the special `Body` parameter `embed`:
    
    ```Python
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Oct 17 05:59:11 GMT 2023
    - 7.7K bytes
    - Viewed (0)
  6. build-logic/build-update-utils/src/main/kotlin/gradlebuild/buildutils/tasks/SubprojectsInfo.kt

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package gradlebuild.buildutils.tasks
    
    import com.google.gson.GsonBuilder
    import gradlebuild.buildutils.model.GradleSubproject
    import org.gradle.api.DefaultTask
    import org.gradle.api.tasks.Internal
    import org.gradle.work.DisableCachingByDefault
    import java.io.File
    import kotlin.io.path.invariantSeparatorsPathString
    
    
    Plain Text
    - Registered: Wed Apr 24 11:36:11 GMT 2024
    - Last Modified: Thu Apr 04 07:21:38 GMT 2024
    - 2.9K bytes
    - Viewed (0)
  7. .teamcity/src/main/kotlin/model/CIBuildModel.kt

        CompileAll {
            override fun create(model: CIBuildModel, stage: Stage): BaseGradleBuildType {
                return CompileAll(model, stage)
            }
        },
        SanityCheck {
            override fun create(model: CIBuildModel, stage: Stage): BaseGradleBuildType {
                return SanityCheck(model, stage)
            }
        },
        BuildDistributions {
            override fun create(model: CIBuildModel, stage: Stage): BaseGradleBuildType {
    Plain Text
    - Registered: Wed Apr 24 11:36:11 GMT 2024
    - Last Modified: Fri Feb 23 01:54:48 GMT 2024
    - 20.9K bytes
    - Viewed (0)
  8. .teamcity/src/main/kotlin/configurations/DocsTest.kt

            }
        }
    }
    
    fun asDocsTestId(model: CIBuildModel, os: Os): String {
        return "${model.projectId}_DocsTest_${os.asName()}"
    }
    
    class DocsTestProject(
        model: CIBuildModel,
        stage: Stage,
        val os: Os,
        testJava: JvmCategory,
        testTypes: List<DocsTestType>
    ) : Project({
        id(asDocsTestId(model, os))
    Plain Text
    - Registered: Wed Apr 24 11:36:11 GMT 2024
    - Last Modified: Tue Dec 05 00:08:14 GMT 2023
    - 4.7K bytes
    - Viewed (0)
  9. .teamcity/src/test/kotlin/PromotionProjectTests.kt

                model.buildTypes.map { it.name }
            )
        }
    
        @Test
        fun `promotion project has expected build types for other branches`() {
            val model = setupModelFor("release")
    
            assertEquals("Promotion", model.name)
            assertEquals(11, model.buildTypes.size)
            assertEquals(
    Plain Text
    - Registered: Wed Apr 24 11:36:11 GMT 2024
    - Last Modified: Tue Feb 13 14:18:23 GMT 2024
    - 13.4K bytes
    - Viewed (0)
  10. .teamcity/src/main/kotlin/configurations/GradleBuildConfigurationDefaults.kt

    import jetbrains.buildServer.configs.kotlin.buildFeatures.parallelTests
    import jetbrains.buildServer.configs.kotlin.buildFeatures.pullRequests
    import model.CIBuildModel
    import model.StageName
    
    fun checkCleanDirUnixLike(dir: String, exitOnFailure: Boolean = true) = """
        REPO=$dir
        if [ -e ${'$'}REPO ] ; then
            tree ${'$'}REPO
            rm -rf ${'$'}REPO
    Plain Text
    - Registered: Wed Apr 24 11:36:11 GMT 2024
    - Last Modified: Wed Apr 24 08:17:56 GMT 2024
    - 7.9K bytes
    - Viewed (0)
Back to top