- Sort Score
- Num 10 results
- Language All
Results 501 - 510 of 693 for fun (0.01 seconds)
-
build-logic-commons/basics/src/main/kotlin/gradlebuild/basics/StringExtensions.kt
* See the License for the specific language governing permissions and * limitations under the License. */ package gradlebuild.basics import java.util.Locale fun String.capitalize(): String = replaceFirstChar { it.uppercase(Locale.US) } fun String.decapitalize(): String =
Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Sun Dec 15 07:49:41 GMT 2024 - 839 bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/ConnectionPool.kt
fun idleConnectionCount(): Int = delegate.idleConnectionCount() /** Returns total number of connections in the pool. */ fun connectionCount(): Int = delegate.connectionCount() internal val connectionListener: ConnectionListener get() = delegate.connectionListener /** Close and remove all idle connections in the pool. */ fun evictAll() { delegate.evictAll() }
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Oct 07 21:55:03 GMT 2025 - 3.4K bytes - Click Count (0) -
android-test/src/androidDeviceTest/java/okhttp/android/test/sni/SniOverrideTest.kt
class SniOverrideTest { var client = OkHttpClient .Builder() .build() @Test fun getWithCustomSocketFactory() { assumeTrue(Build.VERSION.SDK_INT >= 24) class CustomSSLSocketFactory( delegate: SSLSocketFactory, ) : DelegatingSSLSocketFactory(delegate) { override fun configureSocket(sslSocket: SSLSocket): SSLSocket { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Mon Jan 26 07:38:51 GMT 2026 - 3.6K bytes - Click Count (0) -
okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/DerHeader.kt
// Avoid Long.hashCode(long) which isn't available on Android 5. override fun hashCode(): Int { var result = 0 result = 31 * result + tagClass result = 31 * result + tag.toInt() result = 31 * result + (if (constructed) 0 else 1) result = 31 * result + length.toInt() return result } override fun toString(): String = "$tagClass/$tag" companion object {
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 2.3K bytes - Click Count (0) -
.teamcity/src/main/kotlin/configurations/CompileAll.kt
platforms/core-runtime/base-services/build/generated-resources/build-receipt/org/gradle/build-receipt.properties """, ) }) { companion object { fun buildTypeId(model: CIBuildModel) = buildTypeId(model.projectId) fun buildTypeId(projectId: String) = "${projectId}_CompileAllBuild" }Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Mon Dec 22 07:15:16 GMT 2025 - 1.4K bytes - Click Count (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/SimpleProvider.kt
import org.junit.jupiter.params.provider.ArgumentsProvider abstract class SimpleProvider : ArgumentsProvider { @Suppress("OVERRIDE_DEPRECATION") override fun provideArguments(context: ExtensionContext) = arguments().map { Arguments.of(it) }.stream() @Throws(Exception::class) abstract fun arguments(): List<Any>Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Feb 03 22:17:59 GMT 2026 - 1K bytes - Click Count (0) -
build-logic-commons/module-identity/src/main/kotlin/gradlebuild/identity/model/ReleasedVersion.kt
import java.text.SimpleDateFormat import java.util.Date import java.util.TimeZone data class ReleasedVersion(val version: String, val buildTime: String) { fun gradleVersion() = GradleVersion.version(version) fun buildTimeStamp(): Date = SimpleDateFormat("yyyyMMddHHmmssZ").apply { timeZone = TimeZone.getTimeZone("UTC") }.parse(buildTime)
Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Sat Sep 30 16:17:28 GMT 2023 - 1K bytes - Click Count (0) -
build-logic/src/main/kotlin/okhttp.jvm-conventions.gradle.kts
id("okhttp.base-conventions") id("com.gradleup.tapmoc") } val libs = extensions.getByType<VersionCatalogsExtension>().named("libs") fun library(alias: String) = libs.findLibrary(alias).get().get().let { "${it.module.group}:${it.module.name}:${it.versionConstraint.requiredVersion}" } fun version(alias: String) = libs.findVersion(alias).get().toString() extensions.configure<JavaPluginExtension> { toolchain {
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Mon Feb 09 14:40:26 GMT 2026 - 1.4K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/MediaTypeGetTest.kt
import kotlin.test.assertEquals import kotlin.test.assertFailsWith import okhttp3.MediaType.Companion.toMediaType open class MediaTypeGetTest : MediaTypeTest() { override fun parse(string: String): MediaType = string.toMediaType() override fun assertInvalid( string: String, exceptionMessage: String?, ) { val e = assertFailsWith<IllegalArgumentException> { parse(string) }
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Fri Dec 27 13:39:56 GMT 2024 - 1.1K bytes - Click Count (0) -
tests/test_pydanticv2_dataclasses_uuid_stringified_annotations.py
@app.get("/item", response_model=Item) async def read_item(): return { "id": uuid.uuid4(), "name": "Island In The Moon", "price": 12.99, "description": "A place to be playin' and havin' fun", "tags": ["breater"], } client = TestClient(app) def test_annotations(): response = client.get("/item") assert response.status_code == 200, response.text
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Mon Mar 16 10:16:48 GMT 2026 - 1.1K bytes - Click Count (0)