- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 12 for groupValues (0.06 seconds)
-
build-logic/build-update-utils/src/main/kotlin/gradlebuild/buildutils/tasks/AbstractCheckOrUpdateContributorsInReleaseNotes.kt
.filter { it.isNotEmpty() } .onEach { check(contributorLineRegex.containsMatchIn(it)) { "Invalid contributor line: $it" } } .map { GitHubUser(contributorLineRegex.find(it)!!.groupValues[2], contributorLineRegex.find(it)!!.groupValues[1]) } .toSet() } /** * Parses the release notes file and returns the triple: (linesBeforeContributors, contributorLines, linesAfterContributors) */Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Tue Jun 24 07:54:08 GMT 2025 - 5.7K bytes - Click Count (0) -
build-logic/binary-compatibility/src/main/kotlin/gradlebuild/binarycompatibility/sources/JavaSourceQueries.kt
private val SINCE_REGEX = Regex("""@since ([^\s]+)""") private fun BodyDeclaration<*>.getSince(): String? = comment?.orElse(null)?.content?.let { content -> SINCE_REGEX.find(content)?.groupValues?.get(1) } private val FieldDeclaration.fieldName: String get() = variables.first().name.asString() private fun JApiMethod.isEnumImplicitMethod(): Boolean =
Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Fri Jun 06 17:52:09 GMT 2025 - 6.5K bytes - Click Count (0) -
build-logic-settings/architecture-docs/src/main/kotlin/gradlebuild/GeneratePackageInfoDataTask.kt
for (packageInfoFile in packageInfoFiles.files) { val packageLine = packageInfoFile.useLines { lines -> lines.first { it.startsWith("package") } } val packageName = packageLineRegex.find(packageLine)!!.groupValues[1] results.add(packageName to packageInfoFile.relativeTo(baseDir).path) } val outputData = results.groupBy(keySelector = { it.first }, valueTransform = { it.second })
Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Fri Jan 30 15:37:56 GMT 2026 - 2.7K bytes - Click Count (0) -
build-logic/cleanup/src/main/kotlin/gradlebuild/testing/services/BuildBucketProvider.kt
&& versionUnderTest < GradleVersion.version(endVersionExclusive) } private fun extractTestTaskGradleVersion(name: String): String? = "gradle(.+)CrossVersionTest".toRegex().find(name)?.groupValues?.get(1) } class IncludeTestClassProvider(private val includeTestClasses: Map<String, List<String>>) : BuildBucketProvider { override fun configureTest(testTask: Test, sourceSetName: String) {
Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Fri Jun 28 08:29:28 GMT 2024 - 4.9K bytes - Click Count (0) -
build-logic-commons/basics/src/main/kotlin/gradlebuild/basics/transforms/Minify.kt
} else { outputs.file(artifact) } } private fun extractArtifactName(fileName: String): String { return jarArtifactRegex.matchEntire(fileName) ?.groupValues ?.get(1) ?: error("Cannot derive artifact name from: $fileName") } private fun minify(artifact: File, keepClasses: Set<String>, jarFile: File): File {Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Thu Dec 18 11:46:45 GMT 2025 - 4.9K bytes - Click Count (0) -
samples/guide/src/test/kotlin/okhttp3/AllMainsTest.kt
val suffix = it.path.replace("${prefix}samples/guide/src/main/java/", "") suffix .replace("(.*)\\.java".toRegex()) { mr -> mr.groupValues[1].replace('/', '.') }.replace("(.*)\\.kt".toRegex()) { mr -> mr.groupValues[1].replace('/', '.') + "Kt" } }.sorted() } } @Disabled("Don't run by default") @Tag("Slow") class AllMainsTest { @ParameterizedTest
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 2.8K bytes - Click Count (0) -
build-logic/build-update-utils/src/main/kotlin/gradlebuild/buildutils/tasks/FixProjectHealthTask.kt
val match = dependencyRegex.find(dependency) if (match != null) { val oldDependency = match.groupValues[3] + match.groupValues[2] val newDependency = match.groupValues[1] + match.groupValues[2] lines.replaceAll { it.replace(oldDependency, newDependency) } } } file.writeText(lines.joinToString("\n"))
Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Mon Mar 03 06:57:08 GMT 2025 - 6.2K bytes - Click Count (1) -
samples/tlssurvey/src/main/kotlin/okhttp3/survey/Iana.kt
if (s.contains("Reserved") || s.contains("Unassigned")) return null val matcher = IANA_CSV_PATTERN.matchEntire(s) ?: return null val id = (matcher.groupValues[1] + matcher.groupValues[2]).decodeHex() return SuiteId(id, matcher.groupValues[3]) } class IanaSuites( val name: String, val suites: List<SuiteId>, ) { fun fromJavaName(javaName: String): SuiteId = suites.firstOrNull {
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 2K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/MediaType.kt
val typeSubtype = TYPE_SUBTYPE.matchAt(this, 0) ?: throw IllegalArgumentException("No subtype found for: \"$this\"") val type = typeSubtype.groupValues[1].lowercase() val subtype = typeSubtype.groupValues[2].lowercase() val parameterNamesAndValues = mutableListOf<String>() var s = typeSubtype.range.last + 1 while (s < length) {Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 5.9K bytes - Click Count (0) -
build-logic/src/main/kotlin/AlpnVersions.kt
return version } val javaVersion = System.getProperty("java.version") val match = "1\\.8\\.0_(\\d+)(-.*)?".toRegex().find(javaVersion) ?: return null return alpnBootVersionForPatchVersion(match.groupValues.first().toInt())
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Sun Feb 01 16:35:35 GMT 2026 - 1.8K bytes - Click Count (0)