Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 601 - 610 of 2,872 for Gist (0.14 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/test/rest/transform/warnings/InjectAllowedWarnings.java

    import org.gradle.api.tasks.Optional;
    
    import java.util.List;
    
    /**
     * A transformation to inject an allowed warning.
     */
    public class InjectAllowedWarnings extends FeatureInjector implements RestTestTransformByParentObject {
    
        private static JsonNodeFactory jsonNodeFactory = JsonNodeFactory.withExactBigDecimals(false);
    
        private final List<String> allowedWarnings;
        private String testName;
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Thu Jul 15 08:50:42 GMT 2021
    - 3.3K bytes
    - Click Count (0)
  2. src/test/java/org/codelibs/fess/ds/DataStoreFactoryTest.java

                    return List.of("Zebra", "Apple", "Banana").stream().sorted().collect(java.util.stream.Collectors.toList());
                }
            };
    
            List<String> names = testFactory.loadDataStoreNameList();
            assertEquals(3, names.size());
            assertEquals("Apple", names.get(0));
            assertEquals("Banana", names.get(1));
            assertEquals("Zebra", names.get(2));
        }
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 18.2K bytes
    - Click Count (0)
  3. okhttp/src/jvmTest/kotlin/okhttp3/KotlinDeprecationErrorTest.kt

        val dispatcher: Dispatcher = client.dispatcher()
        val proxy: Proxy? = client.proxy()
        val protocols: List<Protocol> = client.protocols()
        val connectionSpecs: List<ConnectionSpec> = client.connectionSpecs()
        val interceptors: List<Interceptor> = client.interceptors()
        val networkInterceptors: List<Interceptor> = client.networkInterceptors()
        val eventListenerFactory: EventListener.Factory = client.eventListenerFactory()
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Fri Dec 27 13:39:56 GMT 2024
    - 13.3K bytes
    - Click Count (0)
  4. guava-tests/test/com/google/common/primitives/DoublesTest.java

        double[] array = {0.0, 1.0};
        List<Double> list = Doubles.asList(array);
        list.set(0, 2.0);
        assertThat(array).isEqualTo(new double[] {2.0, 1.0});
        array[1] = 3.0;
        assertThat(list).containsExactly(2.0, 3.0).inOrder();
      }
    
      public void testAsList_toArray_roundTrip() {
        double[] array = {0.0, 1.0, 2.0};
        List<Double> list = Doubles.asList(array);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Mar 08 01:43:32 GMT 2026
    - 30.9K bytes
    - Click Count (0)
  5. guava-tests/test/com/google/common/primitives/LongsTest.java

      public void testAsList_isAView() {
        long[] array = {0L, 1L};
        List<Long> list = Longs.asList(array);
        list.set(0, 2L);
        assertThat(array).isEqualTo(new long[] {2L, 1L});
        array[1] = 3L;
        assertThat(list).containsExactly(2L, 3L).inOrder();
      }
    
      public void testAsList_toArray_roundTrip() {
        long[] array = {0L, 1L, 2L};
        List<Long> list = Longs.asList(array);
        long[] newArray = Longs.toArray(list);
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 17 16:45:58 GMT 2026
    - 28.8K bytes
    - Click Count (0)
  6. guava-tests/test/com/google/common/primitives/ShortsTest.java

      public void testToArray_withNull() {
        List<@Nullable Short> list = Arrays.asList((short) 0, (short) 1, null);
        assertThrows(NullPointerException.class, () -> Shorts.toArray(list));
      }
    
      public void testToArray_withConversion() {
        short[] array = {(short) 0, (short) 1, (short) 2};
    
        List<Byte> bytes = Arrays.asList((byte) 0, (byte) 1, (byte) 2);
        List<Short> shorts = Arrays.asList((short) 0, (short) 1, (short) 2);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Mar 08 01:43:32 GMT 2026
    - 27.6K bytes
    - Click Count (0)
  7. guava-tests/test/com/google/common/collect/ArrayListMultimapTest.java

        ListMultimap<String, Integer> multimap = create();
        multimap.putAll("foo", asList(1, 2, 3, 4, 5));
        List<Integer> list = multimap.get("foo");
        assertThat(multimap.get("foo")).containsExactly(1, 2, 3, 4, 5).inOrder();
        List<Integer> sublist = list.subList(0, 5);
        assertThat(sublist).containsExactly(1, 2, 3, 4, 5).inOrder();
    
        sublist.clear();
        assertTrue(sublist.isEmpty());
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 6.6K bytes
    - Click Count (0)
  8. android/guava/src/com/google/common/collect/Ordering.java

          // k is really large; just do a straightforward sorted-copy-and-sublist
          ArrayList<E> list = Lists.newArrayList(iterator);
          sort(list, this);
          if (list.size() > k) {
            list.subList(k, list.size()).clear();
          }
          list.trimToSize();
          return unmodifiableList(list);
        } else {
          TopKSelector<E> selector = TopKSelector.least(k, this);
          selector.offerAll(iterator);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 23 19:19:10 GMT 2026
    - 39.4K bytes
    - Click Count (0)
  9. src/main/java/org/codelibs/fess/app/web/api/admin/fileconfig/ApiAdminFileconfigAction.java

            validateApi(body, messages -> {});
            final FileConfigPager pager = copyBeanToNewBean(body, FileConfigPager.class);
            final List<FileConfig> list = fileConfigService.getFileConfigList(pager);
            return asJson(
                    new ApiResult.ApiConfigsResponse<EditBody>().settings(list.stream().map(this::createEditBody).collect(Collectors.toList()))
                            .total(pager.getAllRecordCount())
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Aug 07 03:06:29 GMT 2025
    - 9.2K bytes
    - Click Count (0)
  10. android/guava-testlib/test/com/google/common/collect/testing/IteratorTesterTest.java

    import com.google.common.annotations.GwtCompatible;
    import com.google.common.collect.ImmutableList;
    import com.google.common.collect.Lists;
    import java.util.ArrayList;
    import java.util.Iterator;
    import java.util.List;
    import java.util.NoSuchElementException;
    import junit.framework.TestCase;
    
    /**
     * Unit test for IteratorTester.
     *
     * @author Mick Killianey
     */
    @GwtCompatible
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Aug 06 18:32:41 GMT 2025
    - 10.3K bytes
    - Click Count (0)
Back to Top