Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1061 - 1070 of 2,189 for else_ (0.02 seconds)

  1. okhttp/src/commonJvmAndroid/kotlin/okhttp3/TlsVersion.kt

          when (javaName) {
            "TLSv1.3" -> TLS_1_3
            "TLSv1.2" -> TLS_1_2
            "TLSv1.1" -> TLS_1_1
            "TLSv1" -> TLS_1_0
            "SSLv3" -> SSL_3_0
            else -> throw IllegalArgumentException("Unexpected TLS version: $javaName")
          }
      }
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 1.5K bytes
    - Click Count (0)
  2. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/cisupport/CIDetectorHelperRunner.java

    public class CIDetectorHelperRunner {
        public static void main(String[] args) {
            List<CIInfo> detect = CIDetectorHelper.detectCI();
            if (detect.isEmpty()) {
                System.out.print("NONE;");
            } else {
                detect.forEach(d -> System.out.print(d.name() + (d.isVerbose() ? "+VERBOSE" : "") + ";"));
            }
        }
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Sun Apr 13 18:50:07 GMT 2025
    - 1.3K bytes
    - Click Count (0)
  3. tests/test_security_api_key_cookie_optional.py

        return user
    
    
    @app.get("/users/me")
    def read_current_user(current_user: User = Depends(get_current_user)):
        if current_user is None:
            return {"msg": "Create an account first"}
        else:
            return current_user
    
    
    def test_security_api_key():
        client = TestClient(app, cookies={"key": "secret"})
        response = client.get("/users/me")
        assert response.status_code == 200, response.text
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Fri Jun 30 18:25:16 GMT 2023
    - 2.1K bytes
    - Click Count (0)
  4. okhttp-testing-support/src/main/kotlin/okhttp3/testing/PlatformVersion.kt

     * limitations under the License.
     */
    package okhttp3.testing
    
    object PlatformVersion {
      val majorVersion: Int by lazy {
        when (val jvmSpecVersion = getJvmSpecVersion()) {
          "1.8" -> 8
          else -> jvmSpecVersion.toInt()
        }
      }
    
      fun getJvmSpecVersion(): String = System.getProperty("java.specification.version", "unknown")
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 902 bytes
    - Click Count (0)
  5. src/main/java/jcifs/smb1/netbios/NameQueryResponse.java

            srcIndex += 2;
            final int address = readInt4(src, srcIndex);
            if (address != 0) {
                addrEntry[addrIndex] = new NbtAddress(recordName, address, groupName, nodeType);
            } else {
                addrEntry[addrIndex] = null;
            }
    
            return 6;
        }
    
        @Override
        public String toString() {
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 2K bytes
    - Click Count (0)
  6. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/ws/MessageDeflater.kt

          val newSize = deflatedBytes.size - LAST_OCTETS_COUNT_TO_REMOVE_AFTER_DEFLATION
          deflatedBytes.readAndWriteUnsafe().use { cursor ->
            cursor.resizeBuffer(newSize)
          }
        } else {
          // Same as adding EMPTY_DEFLATE_BLOCK and then removing 4 bytes.
          deflatedBytes.writeByte(0x00)
        }
    
        buffer.write(deflatedBytes, deflatedBytes.size)
      }
    
      @Throws(IOException::class)
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Fri Dec 27 13:39:56 GMT 2024
    - 2.1K bytes
    - Click Count (0)
  7. impl/maven-core/src/main/java/org/apache/maven/lifecycle/internal/PhaseRecorder.java

            if (lifecyclePhase != null) {
                PhaseId phaseId = PhaseId.of(lifecyclePhase);
                if (lastLifecyclePhase == null) {
                    lastLifecyclePhase = phaseId.phase();
                } else if (!phaseId.phase().equals(lastLifecyclePhase)) {
                    project.addLifecyclePhase(lastLifecyclePhase);
                    lastLifecyclePhase = phaseId.phase();
                }
            }
    
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Oct 25 12:31:46 GMT 2024
    - 2.2K bytes
    - Click Count (0)
  8. build-logic/kotlin-dsl-shared-runtime/src/main/kotlin/org/gradle/kotlin/dsl/internal/sharedruntime/codegen/SourceFileHeader.kt

        "redundant_projection",
        "RemoveRedundantBackticks",
        "ObjectPropertyName",
        "deprecation",
        "detekt:all"
    )
    @file:org.gradle.api.Generated${if (isIncubating) "\n@file:org.gradle.api.Incubating" else ""}
    
    package $packageName
    """
    
    const val KOTLIN_DSL_PACKAGE_NAME = "org.gradle.kotlin.dsl"
    
    const val KOTLIN_DSL_PACKAGE_PATH = "org/gradle/kotlin/dsl"
    
    const val LICENSE_HEADER = """/*
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Thu Aug 08 10:56:09 GMT 2024
    - 2K bytes
    - Click Count (0)
  9. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Address.kt

       * this URL are always empty, since they are not significant for planning a route.
       */
      @get:JvmName("url")
      val url: HttpUrl =
        HttpUrl
          .Builder()
          .scheme(if (sslSocketFactory != null) "https" else "http")
          .host(uriHost)
          .port(uriPort)
          .build()
    
      /**
       * The protocols the client supports. This method always returns a non-null list that
       * contains minimally [Protocol.HTTP_1_1].
       */
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 7.3K bytes
    - Click Count (0)
  10. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnsh/ShellInvoker.java

                        sb.style(AttributedStyle.DEFAULT.bold().foreground(69));
                    } else {
                        sb.style(AttributedStyle.DEFAULT.foreground(AttributedStyle.CYAN));
                    }
                } else {
                    sb.style(AttributedStyle.DEFAULT.boldOff().foregroundOff());
                }
            }
        }
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Thu Oct 16 06:12:36 GMT 2025
    - 10.1K bytes
    - Click Count (0)
Back to Top