Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 360 for listOf (0.23 sec)

  1. .teamcity/src/main/kotlin/model/FunctionalTestBucketGenerator.kt

                SubprojectTestClassTime::totalTime,
                { largeElement, factor ->
                    List(factor) { SmallSubprojectBucket(largeElement.subProject, parallelization(factor)) }
                },
                { list ->
                    SmallSubprojectBucket(list.map { it.subProject }, parallelization(1))
                },
                testCoverage.expectedBucketNumber,
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Feb 15 17:04:41 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  2. platforms/core-configuration/kotlin-dsl/src/test/kotlin/org/gradle/kotlin/dsl/resolver/CompactTreeTest.kt

    import org.hamcrest.MatcherAssert.assertThat
    import org.junit.Test
    
    
    class CompactTreeTest {
    
        @Test
        fun `it will compact common prefixes`() {
            assertThat(
                compactStringFor(listOf("/a/b/c", "/a/b/d", "/a/e/c"), separator = '/'),
                equalTo("/a/{b/{c, d}, e/c}")
            )
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 396 bytes
    - Viewed (0)
  3. analysis/analysis-api/testData/components/compilerFacility/compilation/codeFragments/inlineFunctionUsage.kt

    // FILE: context.kt
    fun test() {
        <caret_context>val x = 0
    }
    
    
    // MODULE: main
    // MODULE_KIND: CodeFragment
    // CONTEXT_MODULE: context
    
    // FILE: fragment.kt
    // CODE_FRAGMENT_KIND: EXPRESSION
    listOf(1, 2, 3, 4, 5)
        .filter { (it % 2) == 0 }
        .map { it * 2 }
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Jan 30 11:41:26 UTC 2024
    - 325 bytes
    - Viewed (0)
  4. platforms/documentation/docs/src/snippets/scala/zinc/kotlin/build.gradle.kts

        testImplementation("junit:junit:4.13")
    }
    
    // tag::adjust-memory[]
    tasks.withType<ScalaCompile>().configureEach {
        scalaCompileOptions.forkOptions.apply {
            memoryMaximumSize = "1g"
            jvmArgs = listOf("-XX:MaxMetaspaceSize=512m")
        }
    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 500 bytes
    - Viewed (0)
  5. .teamcity/src/main/kotlin/model/PerformanceTestSpec.kt

            get() = false
    
        val buildSpecs: List<FlameGraphGenerationBuildSpec>
            get() = scenarios.flatMap { scenario ->
                Os.values().flatMap { os ->
                    val arch = if (os == Os.MACOS) Arch.AARCH64 else Arch.AMD64
                    if (os == Os.WINDOWS) {
                        listOf("jprofiler")
                    } else {
                        listOf("async-profiler", "async-profiler-heap")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jun 03 03:39:03 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  6. platforms/core-configuration/declarative-dsl-core/src/main/kotlin/org/gradle/internal/declarativedsl/language/languageUtils.kt

    package org.gradle.internal.declarativedsl.language
    
    
    fun Expr.asChainOrNull(): AccessChain? = (this as? PropertyAccess)?.asChainOrNull()
    
    
    fun PropertyAccess.asChainOrNull(): AccessChain? =
        if (receiver == null) AccessChain(listOf(name)) else {
            val prev = when (receiver) {
                is PropertyAccess -> receiver.asChainOrNull()
                else -> null
            }
            if (prev != null)
                AccessChain(prev.nameParts + name)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Feb 02 12:28:39 UTC 2024
    - 477 bytes
    - Viewed (0)
  7. platforms/documentation/docs/src/snippets/dependencyManagement/customizingResolution-conditionalSubstitutionRule/kotlin/settings.gradle.kts

    rootProject.name = "customizing-resolution-conditional-substitution-rule"
    val projectNames = listOf("project1", "project2", "project3")
    include("consumer")
    
    projectNames.forEach { name ->
        if (isIncluded(name)) {
            println("project $name is INTERNAL to this build")
            include(name)
        } else {
            println("project $name is external to this build")
        }
    }
    
    fun isIncluded(projectName: String): Boolean {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 616 bytes
    - Viewed (0)
  8. platforms/documentation/docs/src/samples/credentials-handling/pass-credentials-to-external-tool-via-stdin/kotlin/build.gradle.kts

    val login = tasks.register<Exec>("login") {
        val loginProvider = providers.credentials(PasswordCredentials::class.java, "login")
        inputs.property("credentials", loginProvider)
    
        commandLine = listOf("sh", "login.sh")
        doFirst {
            val loginCredentials = loginProvider.get()
            standardInput = java.io.ByteArrayInputStream("${loginCredentials.username}\n${loginCredentials.password}".toByteArray())
        }
    }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 551 bytes
    - Viewed (0)
  9. .teamcity/src/main/kotlin/model/bucket-extensions.kt

    ): List<R> {
        if (list.isEmpty()) {
            return noElementSplitFunction(expectedBucketNumber)
        }
        if (expectedBucketNumber == 1) {
            return listOf(smallElementAggregateFunction(list))
        }
    
        val expectedBucketSize = list.sumOf(toIntFunction) / expectedBucketNumber
    
        if (expectedBucketSize == 0) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 17 05:17:44 UTC 2022
    - 4K bytes
    - Viewed (0)
  10. build-logic/cleanup/src/main/kotlin/gradlebuild/cleanup/Cleanup.kt

                    delete { delete(transformDir) }
                }
        }
    }
    
    
    private
    val scriptCacheDirNames =
        // TODO Remove gradle-kotlin-dsl* after a while
        listOf("scripts", "scripts-remapped", "gradle-kotlin-dsl", "gradle-kotlin-dsl-accessors", "kotlin-dsl")
    
    
    private
    fun scriptsCacheDirsUnder(cacheDir: File) =
        scriptCacheDirNames
            .map { File(cacheDir, it) }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jan 08 12:45:57 UTC 2024
    - 4.4K bytes
    - Viewed (0)
Back to top