Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 621 - 630 of 693 for fun (0.01 seconds)

  1. okhttp-testing-support/src/main/kotlin/okhttp3/RecordingHostnameVerifier.kt

    import javax.net.ssl.HostnameVerifier
    import javax.net.ssl.SSLSession
    
    class RecordingHostnameVerifier : HostnameVerifier {
      @JvmField
      val calls: MutableList<String> = mutableListOf()
    
      @Synchronized override fun verify(
        hostname: String,
        session: SSLSession,
      ): Boolean {
        calls.add("verify $hostname")
        return true
      }
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 980 bytes
    - Click Count (0)
  2. okhttp-testing-support/src/main/kotlin/okhttp3/TestUtilCommon.kt

     * limitations under the License.
     */
    package okhttp3
    
    import okio.Buffer
    import okio.Path
    import okio.Path.Companion.toPath
    
    val okHttpRoot: Path
      get() = getEnv("OKHTTP_ROOT")!!.toPath()
    
    fun String(vararg codePoints: Int): String {
      val buffer = Buffer()
      for (codePoint in codePoints) {
        buffer.writeUtf8CodePoint(codePoint)
      }
      return buffer.readUtf8()
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Wed Dec 20 23:27:07 GMT 2023
    - 931 bytes
    - Click Count (0)
  3. native-image-tests/src/test/kotlin/okhttp3/nativeimage/PublicSuffixDatabaseTest.kt

    package okhttp3.nativeimage
    
    import assertk.assertThat
    import assertk.assertions.isEqualTo
    import okhttp3.HttpUrl.Companion.toHttpUrl
    import org.junit.jupiter.api.Test
    
    class PublicSuffixDatabaseTest {
      @Test
      fun testResourcesLoaded() {
        val url = "https://api.twitter.com".toHttpUrl()
    
        assertThat(url.topPrivateDomain()).isEqualTo("twitter.com")
      }
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Fri Jul 04 08:15:11 GMT 2025
    - 964 bytes
    - Click Count (0)
  4. okhttp/src/commonTest/kotlin/okhttp3/internal/publicsuffix/ConfiguredPublicSuffixList.kt

    import okio.ByteString
    
    /**
     * An implementation of I/O for `PublicSuffixDatabase` by directly passing in ByteStrings.
     */
    internal class ConfiguredPublicSuffixList : PublicSuffixList {
      override fun ensureLoaded() {
      }
    
      override var bytes: ByteString = ByteString.EMPTY
    
      override var exceptionBytes: ByteString = ByteString.EMPTY
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue May 27 22:00:49 GMT 2025
    - 978 bytes
    - Click Count (0)
  5. build-logic-commons/basics/src/main/kotlin/gradlebuild/basics/PublicApi.kt

                }
            }
        }
    
        private val excludePackagePatterns = listOf(Pattern.compile(".+\\.internal(\\..+)?"))
    
        fun isPublicApiPackage(packageName: String) =
            includePackagePatterns.any { it.matcher(packageName).matches() } &&
                !excludePackagePatterns.any { it.matcher(packageName).matches() }
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Wed Jun 12 23:20:08 GMT 2024
    - 2.4K bytes
    - Click Count (0)
  6. build-logic/src/main/kotlin/JavaModules.kt

    import org.gradle.jvm.toolchain.JavaToolchainService
    import org.gradle.kotlin.dsl.configure
    import org.gradle.kotlin.dsl.getByType
    import org.gradle.kotlin.dsl.named
    import org.jetbrains.kotlin.gradle.tasks.KotlinJvmCompile
    
    fun Project.applyJavaModules(
      moduleName: String,
      defaultVersion: Int = 8,
      javaModuleVersion: Int = 9,
      enableValidation: Boolean = true,
    ) {
      plugins.apply("me.champeau.mrjar")
    
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Thu Feb 05 22:47:58 GMT 2026
    - 2.3K bytes
    - Click Count (0)
  7. build-logic/build-update-utils/src/main/kotlin/gradlebuild/buildutils/tasks/CheckContributorsInReleaseNotes.kt

    import java.util.TreeSet
    
    
    @DisableCachingByDefault(because = "Depends on GitHub API")
    abstract class CheckContributorsInReleaseNotes : AbstractCheckOrUpdateContributorsInReleaseNotes() {
        @TaskAction
        fun check() {
            val contributorsInReleaseNotes = TreeSet(getContributorsInReleaseNotes().map { it.login })
            val contributorsFromPullRequests = TreeSet(getContributorsFromPullRequests().map { it.login })
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Fri Jun 28 08:29:24 GMT 2024
    - 1.9K bytes
    - Click Count (0)
  8. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/IsProbablyUtf8.kt

     * sample of code points to detect Unicode control characters commonly used in binary file
     * signatures.
     *
     * @param codePointLimit the number of code points to read in order to make a decision.
     */
    internal fun BufferedSource.isProbablyUtf8(codePointLimit: Long = Long.MAX_VALUE): Boolean {
      try {
        val peek = peek()
        for (i in 0 until codePointLimit) {
          if (peek.exhausted()) {
            break
          }
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Mon Oct 06 22:47:06 GMT 2025
    - 1.4K bytes
    - Click Count (0)
  9. build-logic-commons/basics/src/main/kotlin/gradlebuild/basics/repositories-extensions.kt

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package gradlebuild.basics
    
    import org.gradle.api.artifacts.dsl.RepositoryHandler
    
    
    fun RepositoryHandler.googleApisJs() {
        ivy {
            name = "googleApisJs"
            setUrl("https://ajax.googleapis.com/ajax/libs")
            patternLayout {
                artifact("[organization]/[revision]/[module].[ext]")
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Thu Jan 22 16:47:41 GMT 2026
    - 1.1K bytes
    - Click Count (0)
  10. okhttp-brotli/src/main/kotlin/okhttp3/brotli/Brotli.kt

    import okio.Source
    import okio.source
    import org.brotli.dec.BrotliInputStream
    
    object Brotli : CompressionInterceptor.DecompressionAlgorithm {
      override val encoding: String get() = "br"
    
      override fun decompress(compressedSource: BufferedSource): Source = BrotliInputStream(compressedSource.inputStream()).source()
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Oct 07 15:15:28 GMT 2025
    - 1010 bytes
    - Click Count (0)
Back to Top