Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 67 for Snippet (0.13 seconds)

  1. build-logic/documentation/src/main/groovy/gradlebuild/docs/FindBadMultiLangSnippets.java

         */
        private void flagIfReversed(File file, Map<File, List<Error>> errors, List<Snippet> snippets) {
            List<Snippet> pair = snippets.stream()
                .filter(s -> s.lang != Language.UNKNOWN)
                .limit(2)
                .toList();
    
            if (pair.size() == 2 &&
                pair.get(0).lang == Language.GROOVY &&
                pair.get(1).lang == Language.KOTLIN) {
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Fri Aug 29 10:12:17 GMT 2025
    - 7.2K bytes
    - Click Count (0)
  2. impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultLifecycleRegistry.java

            public Collection<Phase> phases() {
                // START SNIPPET: clean
                return List.of(phase(
                        Phase.CLEAN,
                        plugin(
                                MAVEN_PLUGINS + "maven-clean-plugin:" + MAVEN_CLEAN_PLUGIN_VERSION + ":clean",
                                Phase.CLEAN)));
                // END SNIPPET: clean
            }
    
            @Override
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Mon Sep 29 14:45:25 GMT 2025
    - 20.1K bytes
    - Click Count (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/IteratorTester.java

     *
     * <p>For example, to test {@link java.util.Collections#unmodifiableList(java.util.List)
     * Collections.unmodifiableList}'s iterator:
     *
     * {@snippet :
     * List<String> expectedElements =
     *     Arrays.asList("a", "b", "c", "d", "e");
     * List<String> actualElements =
     *     Collections.unmodifiableList(
     *         Arrays.asList("a", "b", "c", "d", "e"));
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Sep 22 20:54:16 GMT 2025
    - 4.3K bytes
    - Click Count (0)
  4. guava-tests/test/com/google/common/graph/TraverserTest.java

       *
       * {@snippet :
       * b ---- a ---- d
       * |      |
       * |      |
       * e ---- c ---- f
       * }
       */
      private static final SuccessorsFunction<Character> JAVADOC_GRAPH =
          createUndirectedGraph("ba", "ad", "be", "ac", "ec", "cf");
    
      /**
       * A diamond shaped directed graph (arrows going down):
       *
       * {@snippet :
       *   a
       *  / \
       * b   c
       *  \ /
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Sep 30 17:09:51 GMT 2025
    - 47.4K bytes
    - Click Count (2)
  5. scripts/translate.py

    "code snippet"
    
        Also called "inline code". Text in a Markdown document which is surrounded by single backticks. A paragraph in a Markdown document can have a more than one code snippet.
    
        Example:
    
            «««
            `i am a code snippet`
            »»»
    
        Example:
    
            «««
            `first code snippet` `second code snippet` `third code snippet`
            »»»
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 19:05:53 GMT 2025
    - 34.1K bytes
    - Click Count (0)
  6. android/guava/src/com/google/common/collect/Streams.java

       * respective source streams. For example:
       *
       * {@snippet :
       * Streams.forEachPair(
       *   Stream.of("foo1", "foo2", "foo3"),
       *   Stream.of("bar1", "bar2"),
       *   (arg1, arg2) -> System.out.println(arg1 + ":" + arg2)
       * }
       *
       * <p>will print:
       *
       * {@snippet :
       * foo1:bar1
       * foo2:bar2
       * }
       *
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Oct 21 15:40:45 GMT 2025
    - 36.8K bytes
    - Click Count (0)
  7. guava/src/com/google/common/base/Stopwatch.java

     * reasonably accurate values are sufficient. If the uncommon case that you need to maximize
     * accuracy, use {@code System.nanoTime()} directly instead.
     *
     * <p>Basic usage:
     *
     * {@snippet :
     * Stopwatch stopwatch = Stopwatch.createStarted();
     * doSomething();
     * stopwatch.stop(); // optional
     *
     * Duration duration = stopwatch.elapsed();
     *
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Wed Oct 08 18:55:33 GMT 2025
    - 9.2K bytes
    - Click Count (0)
  8. docs/en/docs/_llm-test.md

    The tests:
    
    ## Code snippets { #code-snippets }
    
    //// tab | Test
    
    This is a code snippet: `foo`. And this is another code snippet: `bar`. And another one: `baz quux`.
    
    ////
    
    //// tab | Info
    
    Content of code snippets should be left as is.
    
    See section `### Content of code snippets` in the general prompt in `scripts/translate.py`.
    
    ////
    
    ## Quotes { #quotes }
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Thu Dec 11 14:48:47 GMT 2025
    - 11.4K bytes
    - Click Count (0)
  9. guava-testlib/src/com/google/common/collect/testing/IteratorTester.java

     *
     * <p>For example, to test {@link java.util.Collections#unmodifiableList(java.util.List)
     * Collections.unmodifiableList}'s iterator:
     *
     * {@snippet :
     * List<String> expectedElements =
     *     Arrays.asList("a", "b", "c", "d", "e");
     * List<String> actualElements =
     *     Collections.unmodifiableList(
     *         Arrays.asList("a", "b", "c", "d", "e"));
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Sep 22 20:54:16 GMT 2025
    - 4.3K bytes
    - Click Count (0)
  10. android/guava/src/com/google/common/collect/Multimaps.java

       * mapping functions to the input elements, accumulated in the encounter order of the stream.
       *
       * <p>Example:
       *
       * {@snippet :
       * static final ListMultimap<Character, String> FIRST_LETTER_MULTIMAP =
       *     Stream.of("banana", "apple", "carrot", "asparagus", "cherry")
       *         .collect(
       *             toMultimap(
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Sep 22 18:35:44 GMT 2025
    - 86.5K bytes
    - Click Count (0)
Back to Top