Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 191 - 200 of 613 for APPLY (0.08 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/precommit/ValidateRestSpecPlugin.java

    import java.io.File;
    
    public class ValidateRestSpecPlugin implements InternalPlugin {
        private static final String DOUBLE_STAR = "**"; // checkstyle thinks these are javadocs :(
    
        @Override
        public void apply(Project project) {
            Provider<ValidateJsonAgainstSchemaTask> validateRestSpecTask = project.getTasks()
                .register("validateRestSpec", ValidateJsonAgainstSchemaTask.class, task -> {
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 01 09:19:30 GMT 2021
    - 2.6K bytes
    - Click Count (0)
  2. okhttp-testing-support/src/main/kotlin/okhttp3/OkHttpClientTestRule.kt

    import org.junit.jupiter.api.Assertions.fail
    import org.junit.jupiter.api.extension.AfterEachCallback
    import org.junit.jupiter.api.extension.BeforeEachCallback
    import org.junit.jupiter.api.extension.ExtensionContext
    
    /**
     * Apply this rule to all tests. It adds additional checks for leaked resources and uncaught
     * exceptions.
     *
     * Use [newClient] as a factory for a OkHttpClient instances. These instances are specifically
     * configured for testing.
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Nov 04 19:13:52 GMT 2025
    - 10.8K bytes
    - Click Count (0)
  3. guava-testlib/test/com/google/common/testing/TestLogHandlerTest.java

      private final TearDownStack stack = new TearDownStack();
    
      @Override
      protected void setUp() throws Exception {
        super.setUp();
    
        handler = new TestLogHandler();
    
        // You could also apply it higher up the Logger hierarchy than this
        ExampleClassUnderTest.logger.addHandler(handler);
    
        ExampleClassUnderTest.logger.setUseParentHandlers(false); // optional
    
        stack.addTearDown(
            () -> {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 17 16:11:48 GMT 2026
    - 2.9K bytes
    - Click Count (0)
  4. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/goals/CompatibilityFixStrategy.java

            boolean useAll = options.all().orElse(false);
            if (useAll) {
                return true;
            }
    
            // Apply default behavior: if no specific options are provided, enable --model
            // OR if all options are explicitly disabled, still apply default behavior
            boolean noOptionsSpecified = options.all().isEmpty()
                    && options.infer().isEmpty()
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Tue Nov 18 18:03:26 GMT 2025
    - 22.2K bytes
    - Click Count (0)
  5. fastapi/.agents/skills/fastapi/SKILL.md

    @router.get("/")
    async def list_items():
        return []
    
    
    # In main.py
    app.include_router(router, prefix="/items", tags=["items"])
    ```
    
    There could be exceptions, but try to follow this convention.
    
    Apply shared dependencies at the router level via `dependencies=[Depends(...)]`.
    
    ## Dependency Injection
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 01 10:05:57 GMT 2026
    - 10.1K bytes
    - Click Count (0)
  6. src/main/java/org/codelibs/fess/helper/VirtualHostHelper.java

            });
        }
    
        /**
         * Processes virtual host configuration by applying a function to the matched virtual host key.
         *
         * @param <T> The return type of the function
         * @param func The function to apply to the virtual host key
         * @param defaultValue The default value to return if no virtual host matches
         * @return The result of applying the function, or the default value
         */
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Jul 17 08:28:31 GMT 2025
    - 4.2K bytes
    - Click Count (0)
  7. okhttp/src/commonTest/kotlin/okhttp3/CompressionInterceptorTest.kt

    import org.junit.jupiter.api.extension.RegisterExtension
    
    class CompressionInterceptorTest {
      @RegisterExtension
      val clientTestRule = OkHttpClientTestRule()
    
      val source =
        Buffer().apply {
          write("Hello World".encodeUtf8())
        } as Source
    
      @Test
      fun emptyDoesntChangeRequestOrResponse() {
        val empty = CompressionInterceptor()
        val client =
          clientTestRule
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Fri Aug 01 06:04:22 GMT 2025
    - 3K bytes
    - Click Count (0)
  8. src/main/java/org/codelibs/fess/app/web/admin/boostdoc/CreateForm.java

        @ValidateTypeFailure
        public Integer crudMode;
    
        /** URL expression pattern to match documents for boosting */
        @Required
        @Size(max = 10000)
        public String urlExpr;
    
        /** Boost expression to apply to matching documents */
        @Required
        @Size(max = 10000)
        public String boostExpr;
    
        /** Sort order for displaying boost configurations */
        @Required
        @Min(value = 0)
        @Max(value = 2147483647)
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Jul 17 08:28:31 GMT 2025
    - 2.4K bytes
    - Click Count (0)
  9. guava/src/com/google/common/collect/Maps.java

            K k = (K) key;
            return function.apply(k);
          } else {
            return defaultValue;
          }
        }
    
        @Override
        public @Nullable V remove(@Nullable Object key) {
          if (backingSet().remove(key)) {
            @SuppressWarnings("unchecked") // unsafe, but Javadoc warns about it
            K k = (K) key;
            return function.apply(k);
          } else {
            return null;
          }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 163.4K bytes
    - Click Count (0)
  10. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/RepositoriesSetupPlugin.java

    public class RepositoriesSetupPlugin implements Plugin<Project> {
    
        private static final Pattern LUCENE_SNAPSHOT_REGEX = Pattern.compile("\\w+-snapshot-([a-z0-9]+)");
    
        @Override
        public void apply(Project project) {
            configureRepositories(project);
        }
    
        /**
         * Adds repositories used by ES projects and dependencies
         */
        public static void configureRepositories(Project project) {
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 01 09:19:30 GMT 2021
    - 2.7K bytes
    - Click Count (0)
Back to Top