Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 746 for defn (0.05 sec)

  1. subprojects/core/src/test/groovy/org/gradle/initialization/exception/DefaultExceptionAnalyserTest.groovy

        def 'wraps original exception when it is not a contextual exception'() {
            given:
            def failure = new RuntimeException()
            def analyser = analyser()
            def result = []
    
            when:
            analyser.collectFailures(failure, result)
    
            then:
            result.size() == 1
            def transformedFailure = result[0]
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 05 19:36:14 UTC 2023
    - 11.9K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/transforms/legalize_patterns.td

                        $num_bits, $narrow_range)))>;
    
    def LegalizeFill : Pat<(TF_FillOp $arg, $value), (TFL_FillOp $arg, $value)>;
    
    def LegalizeFloor : Pat<(TF_FloorOp $arg), (TFL_FloorOp $arg)>;
    
    def LegalizeLeakyRelu : Pat<(TF_LeakyReluOp $arg, F32Attr:$a),
                                (TFL_LeakyReluOp $arg, $a)>;
    
    def LegalizeLog : Pat<(TF_LogOp $arg), (TFL_LogOp $arg)>;
    
    def LegalizeLog1p : Pat<
      (TF_Log1pOp F32Tensor:$arg),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 04 13:30:42 UTC 2024
    - 28.5K bytes
    - Viewed (0)
  3. docs/az/docs/index.md

    app = FastAPI()
    
    
    @app.get("/")
    def read_root():
        return {"Hello": "World"}
    
    
    @app.get("/items/{item_id}")
    def read_item(item_id: int, q: Union[str, None] = None):
        return {"item_id": item_id, "q": q}
    ```
    
    <details markdown="1">
    <summary>Və ya <code>async def</code>...</summary>
    
    Əgər kodunuzda `async` və ya `await` vardırsa `async def` istifadə edə bilərik:
    
    ```Python hl_lines="9  14"
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Mon Apr 29 05:18:04 UTC 2024
    - 22.8K bytes
    - Viewed (0)
  4. platforms/core-configuration/file-collections/src/test/groovy/org/gradle/api/internal/file/CompositeFileCollectionSpec.groovy

            then:
            visited == 2
            deps as List == [dependency]
        }
    
        def "collection dependencies are live"() {
            def task = Stub(Task)
            def dependency1 = Stub(Task)
            def dependency2 = Stub(Task)
            def dependencySource = Mock(TaskDependencyContainer)
    
            def collection = new TestCollection() {
                @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 12K bytes
    - Viewed (0)
  5. platforms/core-runtime/build-process-services/src/test/groovy/org/gradle/api/internal/classpath/DefaultModuleRegistryTest.groovy

        }
    
        def "ignores external module jar from runtime ClassLoader"() {
            def classesDir = tmpDir.createDir("some-module/build/classes/java/main")
            def staticResourcesDir = tmpDir.createDir("some-module/src/main/resources")
            def cl = classLoaderFor([externalDependency, classesDir, resourcesDir, staticResourcesDir, externalRuntimeDep])
            def registry = new DefaultModuleRegistry(cl, ClassPath.EMPTY, null)
    
            expect:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 24 06:16:07 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  6. platforms/core-runtime/concurrent/src/test/groovy/org/gradle/internal/concurrent/DefaultExecutorFactoryTest.groovy

            then:
            def ex = thrown(RuntimeException)
            ex.is(failure1)
        }
    
        def stopOfFixedSizedScheduledExecutorRethrowsFirstExecutionException() {
            given:
            def failure1 = new RuntimeException()
            def action1 = {
                throw failure1
            }
    
            def failure2 = new RuntimeException()
            def action2 = {
                instant.broken2
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 19:07:35 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  7. platforms/software/dependency-management/src/test/groovy/org/gradle/internal/resource/transfer/DefaultCacheAwareExternalResourceAccessorTest.groovy

            def location = new ExternalResourceName("thing")
            def fileStore = Mock(CacheAwareExternalResourceAccessor.ResourceFileStore)
            def localCandidates = Mock(LocallyAvailableResourceCandidates)
            def remoteResource = Mock(ExternalResource)
            def metaData = Mock(ExternalResourceMetaData)
            def localResource = new DefaultLocallyAvailableResource(cachedFile, TestUtil.checksumService)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jan 02 17:19:47 UTC 2024
    - 19.1K bytes
    - Viewed (0)
  8. subprojects/core/src/test/groovy/org/gradle/internal/model/StateTransitionControllerTest.groovy

            e.message == "Can only transition <state> to state B from state A however it is currently in state B."
    
            and:
            0 * _
        }
    
        def "fails transition when previous transition has failed"() {
            def action = Mock(Runnable)
            def failure = new RuntimeException()
            def controller = controller(TestState.A)
    
            when:
            asWorker {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 05 16:29:26 UTC 2024
    - 23K bytes
    - Viewed (0)
  9. platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/internal/manage/schema/extract/ManagedProxyClassGeneratorTest.groovy

        static def generator = new ManagedProxyClassGenerator()
        static Map<List<?>, Class<?>> generated = [:]
        def typeConverter = new DefaultTypeConverter(Stub(FileResolver))
    
        def "generates a node backed view class for an interface"() {
            expect:
            def impl = newNodeBackedInstance(SomeType)
            impl instanceof SomeType
        }
    
        def "generates a view class for an interface"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 27.6K bytes
    - Viewed (0)
  10. platforms/core-execution/snapshots/src/test/groovy/org/gradle/internal/vfs/impl/DefaultSnapshotHierarchyTest.groovy

        }
    
        def "visits the correct snapshots"() {
            def parent = tmpDir.createDir()
            def dir1 = parent.createDir("dir1")
            def dir1dir2 = dir1.createDir("dir2")
            def dir1dir2dir3 = dir1dir2.createDir("dir3")
            def dir1dir2dir4 = dir1dir2.createDir("dir4")
            def dir1dir5 = dir1.createDir("dir5/and/more")
            def dir6 = parent.createDir("dir6")
    
            expect:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Nov 22 09:41:32 UTC 2023
    - 32.4K bytes
    - Viewed (0)
Back to top