Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 231 - 240 of 808 for apply (0.02 seconds)

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

        public static final String LIBS_ELASTICSEARCH_CORE_PROJECT_PATH = ":libs:elasticsearch-core";
    
        @Override
        public TaskProvider<? extends Task> createTask(Project project) {
            project.getPlugins().apply(CompileOnlyResolvePlugin.class);
            project.getConfigurations().create("forbiddenApisCliJar");
            project.getDependencies().add("forbiddenApisCliJar", "de.thetaphi:forbiddenapis:3.1");
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 22 07:24:59 GMT 2021
    - 3.1K bytes
    - Click Count (0)
  2. build-logic-settings/architecture-docs/src/main/kotlin/gradlebuild.architecture-docs.settings.gradle.kts

        }
        val packageInfoData = tasks.register("packageInfoData", GeneratePackageInfoDataTask::class) {
            description = "Map packages to the list of package-info.java files that apply to them"
            outputFile = layout.buildDirectory.file("architecture/package-info.json")
            packageInfoFiles.from(GeneratePackageInfoDataTask.findPackageInfoFiles(objects, provider { structure.projectBaseDirs }))
        }
    
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Fri Jan 30 15:37:56 GMT 2026
    - 2.4K bytes
    - Click Count (0)
  3. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/EmptyDirTask.java

            this.dir = getProject().file(dir);
        }
    
        @Input
        public int getDirMode() {
            return dirMode;
        }
    
        /**
         * @param dirMode The permissions to apply to the new directory
         */
        public void setDirMode(int dirMode) {
            this.dirMode = dirMode;
        }
    
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 01 09:19:30 GMT 2021
    - 1.7K bytes
    - Click Count (0)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Dns.kt

            try {
              return InetAddress.getAllByName(hostname).toList()
            } catch (e: NullPointerException) {
              throw UnknownHostException("Broken system behaviour for dns lookup of $hostname").apply {
                initCause(e)
              }
            }
          }
        }
      }
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Fri Dec 27 13:39:56 GMT 2024
    - 2.2K bytes
    - Click Count (0)
Back to Top