Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
23,000 | void () { doTest(false); } | testLimit |
23,001 | void () { final Stream<Integer> a = Stream.empty(); final Stream<Integer> b = Stream.of(1); <caret> List<Integer> val = Stream.concat(a, b).collect(Collectors.toList()); } | bar |
23,002 | Stream<Integer> () { return Stream.of(1, 2, 3); } | foo |
23,003 | void () { <caret> List<Integer> val = foo().collect(Collectors.toList()); } | bar |
23,004 | void () { Collection<Integer> collection = Arrays.asList(1,2,3); <caret> List<Integer> values = collection.stream().collect(Collectors.toList()); } | bar |
23,005 | void () { <caret> List<Integer> val = IntStream.range(1, 10).boxed().collect(Collectors.toList()); } | bar |
23,006 | void () { <caret> List<Integer> val = Stream.iterate(1, i -> i + 1).collect(Collectors.toList()); } | bar |
23,007 | void () { <caret> List<Integer> val = IntStream.rangeClosed(1, 10).boxed().collect(Collectors.toList()); } | bar |
23,008 | void (String[] args) { <caret> final long res = DoubleStream.of(1.,2.,3.).boxed().count(); } | main |
23,009 | void (String[] args) { <caret> final long res = Stream.of(1,2,3) .mapToInt(Integer::intValue) .map(x -> x * x) .boxed() .mapToDouble(Integer::doubleValue) .mapToObj(x -> new Object()) .flatMapToLong(x -> LongStream.range(0, 10)) .sum(); } | main |
23,010 | void (String[] args) { <caret> final List<Integer> res = Stream.of(1).collect(Collectors.toList()); } | main |
23,011 | void (String[] args) { <caret> final long res = Stream.of(1,2,3).mapToInt(Integer::intValue).sum(); } | main |
23,012 | void (String[] args) { <caret> final long res = IntStream.of(1, 2, 3).filter(x -> x % 2 == 0).count(); } | main |
23,013 | void (String[] args) { <caret> final double res = DoubleStream.of(1.).sum(); } | main |
23,014 | void (String[] args) { <caret> final long res = LongStream.of(1).sum(); } | main |
23,015 | void (String[] args) { <caret> final double res = Stream.of(1,2,3).flatMapToDouble(x -> DoubleStream.of(1., 2.)).sum(); } | main |
23,016 | void (String[] args) { <caret> final int res = IntStream.of(1).sum(); } | main |
23,017 | void (String[] args) { <caret> final long res = Stream.of(1,2,3).mapToLong(Integer::longValue).sum(); } | main |
23,018 | void (String[] args) { IntStream stream = IntStream.of(1, 2, 3); <caret>stream.sum(); } | main |
23,019 | void (String[] args) { IntStream stream = IntStream.of(1, 2, 3); <caret>stream.filter(x -> x % 2 == 1).sum(); } | main |
23,020 | void () { <caret> final IntSummaryStatistics stat = IntStream.of(1, 12, 2).summaryStatistics(); } | bar |
23,021 | void () { <caret> Stream.of(1).forEachOrdered(x -> {}); } | bar |
23,022 | void () { <caret> int res = IntStream.of(1).sum(); } | bar |
23,023 | void () { <caret> int count = IntStream.of(1).count(); } | bar |
23,024 | void () { <caret> final Spliterator<Integer> spliterator = Stream.of(1).spliterator(); } | bar |
23,025 | void () { <caret> int count = IntStream.of(1).min(); } | bar |
23,026 | void () { <caret> boolean res = Stream.of(1).allMatch(x -> x % 2 == 0); } | bar |
23,027 | void () { <caret> boolean res = Stream.of(1).noneMatch(x -> x % 2 == 0); } | bar |
23,028 | void () { <caret> final List<Integer> list = Stream.of(1).collect(Collectors.toList()); } | bar |
23,029 | void () { <caret> final Optional<Integer> first = Stream.of(1).findAny(); } | bar |
23,030 | void () { <caret> Stream.of(1).forEach(x -> {}); } | bar |
23,031 | void () { <caret> Stream.of(1).close(); } | bar |
23,032 | void () { <caret> final Integer[] list = Stream.of(1).toArray(Integer[]::new); } | bar |
23,033 | void () { <caret> boolean res = Stream.of(1).anyMatch(x -> x % 2 == 0); } | bar |
23,034 | void () { <caret> int count = IntStream.of(1).max(); } | bar |
23,035 | void () { <caret> final Optional<Integer> first = Stream.of(1).findFirst(); } | bar |
23,036 | void () { <caret> Iterator<Integer> it = Stream.of(1).iterator(); } | bar |
23,037 | void () { <caret> int res = IntStream.of(1).average(); } | bar |
23,038 | void () { <caret> Optional<Integer> res = Stream.of(1).reduce((i1, i2) -> i1 + i2); } | bar |
23,039 | void () { <caret> int s = Stream.of(1, 2, 3).mapToInt(x -> x * x).sum(); } | bar |
23,040 | void () { <caret> Object[] val = Stream.of(1, 2, 3).sorted().toArray(); } | bar |
23,041 | void () { <caret> double s = Stream.of(1, 2, 3).mapToDouble(x -> x * x).sum(); } | bar |
23,042 | void () { <caret> Object[] val = Stream.of(1, 2, 3).onClose(x -> {}).toArray(); } | bar |
23,043 | void () { <caret> long s = Stream.of(1, 2, 3).mapToLong(x -> x * x).sum(); } | bar |
23,044 | void () { <caret> Object[] val = Stream.of(1, 2, 3).skip(2).toArray(); } | bar |
23,045 | void () { <caret> List<Integer> val = Stream.of(1, 2, 3).map(x -> x * x).collect(Collectors.toList()); } | bar |
23,046 | void () { <caret> int s = Stream.of(1, 2, 3).flatMapToInt(x -> IntStream.empty()).sum(); } | bar |
23,047 | void () { <caret> double s = Stream.of(1, 2, 3).flatMapToDouble(x -> DoubleStream.empty()).sum(); } | bar |
23,048 | void (String[] args) { <caret> final int res = IntStream.of(1, 2, 3).mapToObj(x -> new Object()).mapToInt(x -> 1).sum(); } | main |
23,049 | void () { <caret> Object[] val = Stream.of(1, 2, 3).distinct().toArray(); } | bar |
23,050 | void () { <caret> Object[] val = Stream.of(1, 2, 3).peek(System.out::println).toArray(); } | bar |
23,051 | void () { <caret> Object[] val = Stream.of(1, 2, 3).limit(1).toArray(); } | bar |
23,052 | void () { <caret> List<Integer> val = Stream.of(1, 2, 3).flatMap(x -> Stream.of(0, x)).collect(Collectors.toList()); } | bar |
23,053 | void () { <caret> List<Integer> val = Stream.of(1, 2, 3).filter(x -> x % 2 == 1).collect(Collectors.toList()); } | bar |
23,054 | void () { <caret> long s = Stream.of(1, 2, 3).flatMapToLong(x -> LongStream.empty()).sum(); } | bar |
23,055 | void () { <caret> Object[] val = IntStream.of(1,2,3).boxed().toArray(); } | bar |
23,056 | void () { <caret> final int[] res = IntStream.of(1, 2).toArray(); } | bar |
23,057 | void () { <caret> LongStream.of(1, 2, 3).sum(); } | bar |
23,058 | void () { <caret> DoubleStream.of(1, 2, 3).sum(); } | bar |
23,059 | void () { <caret> IntStream.of(1, 2, 3).sum(); } | bar |
23,060 | void () { <caret> IntStream.of(1, 3).anyMatch(x -> x % 2 == 0); } | bar |
23,061 | void () { <caret> Stream.of(1).forEach(x -> { }); } | bar |
23,062 | int () { <caret> return IntStream.range(1, 2).sum(); } | foo |
23,063 | void (String[] args) { foo(); } | main |
23,064 | void (String[] args) { final long count = Stream.of("abc"<caret>, "acd", "ef").map(String::length).filter(x -> x % 2 == 0).count(); } | main |
23,065 | void (String[] args) { <caret> int res = IntStream.of(1,2).sum(); } | main |
23,066 | int (int baz, int bar) { return IntStream.range(1, 2).sum(); } | foo |
23,067 | void (String[] args) { <caret> foo(0, IntStream.of(1, 2, 3).sum()); } | main |
23,068 | void (String[] args) { final long count = Stream.of("abc", "ac<caret>d", "ef").map(String::length).filter(x -> x % 2 == 0).count(); } | main |
23,069 | void (String[] args) { final long count = Stream.of("abc",<caret> "acd", "ef").map(String::length).filter(x -> x % 2 == 0).count(); } | main |
23,070 | void (String[] args) { final long count = Stream.of("abc", "acd", "ef").map(String::length)<caret>.filter(x -> x % 2 == 0).count(); } | main |
23,071 | void (String[] args) { final long count = Stream.of("abc", "acd", "ef").map(String::length).filter(x -> x % 2 == 0).peek(new Consumer<Integer>() { @Override public void accept(Integer x) { System.out.pr<caret>intln(x); } }).count(); } | main |
23,072 | void (Integer x) { System.out.pr<caret>intln(x); } | accept |
23,073 | void (String[] args) { final long count = Stream.<caret>of("abc", "acd", "ef").map(String::length).filter(x -> x % 2 == 0).count(); } | main |
23,074 | void (String[] args) { final long count = Stream.of("abc", "acd", "ef").map(String:<caret>:length).filter(x -> x % 2 == 0).count(); } | main |
23,075 | void (String[] args) { ((Runnable) () -> <caret>Stream.of(1, 2, 3).forEach(x -> {})).run(); } | main |
23,076 | void (String[] args) { final long count = Stream.of("abc", "acd", "ef").map(String::length).filter(x -> x % 2 == 0).count(<caret>); } | main |
23,077 | void (String[] args) { <caret> IntStream.range(1,2).forEach(x -> {}); } | main |
23,078 | void (String[] args) { final long count = Stream.of("abc", "acd", "ef").map(String::length).filter(x -> <caret>x % 2 == 0).count(); } | main |
23,079 | void (String[] args) { final String var = "abd"; final long count = Stream.of(va<caret>r, "acd", "ef").map(String::length).filter(x -> x % 2 == 0).peek(new Consumer<Integer>() { @Override public void accept(Integer x) { System.out.println(x); } }).count(); } | main |
23,080 | void (Integer x) { System.out.println(x); } | accept |
23,081 | int (int a, int b, int c) { return 0; } | bar |
23,082 | int () { <caret> return bar(0, 1, IntStream.range(1, 2).sum()); } | foo |
23,083 | void (String[] args) { foo(); } | main |
23,084 | void (String[] args) { <caret>final long count = Stream.of("abc", "acd", "ef").map(String::length).filter(x -> x % 2 == 0).count(); } | main |
23,085 | int (int a, int b, int c) { return 0; } | bar |
23,086 | int () { <caret> int result = bar(0, 1, IntStream.range(1, 2).sum()); return result; } | foo |
23,087 | void (String[] args) { foo(); } | main |
23,088 | void (String[] args) { final long count = Stream.of("abc", "acd", "ef").map(String::length).filter(x -> x % 2 == 0).peek(new Consumer<Integer>() { @Override public void accept(Integer x) { System.out.println(x); } }).count()<caret>; } | main |
23,089 | void (Integer x) { System.out.println(x); } | accept |
23,090 | void (int bar) { } | foo |
23,091 | void (String[] args) { <caret> foo(IntStream.of(1, 2, 3).sum()); } | main |
23,092 | void (String[] args) { new Runnable() { @Override public void run() { <caret> Stream.of(1,2,3).forEach(x -> {}); } }.run(); } | main |
23,093 | void () { <caret> Stream.of(1,2,3).forEach(x -> {}); } | run |
23,094 | long (long a, long b) { return a + b; } | fun |
23,095 | void (String[] args) { <caret> long c = fun(Stream.of(1, 2).count(), Stream.of(1, 2, 3).count()); } | main |
23,096 | void (String[] args) { final long cou<caret>nt = Stream .of(1, 2, 3).distinct().collect(Collectors.toList()) .stream().sorted().collect(Collectors.toList()) .stream().count(); } | main |
23,097 | void (String[] args) { Stream.of(1) .peek(x -> { <caret> Stream.of(1).count() }).forEach(x -> { }); } | main |
23,098 | void (String[] args) { <caret> IntStream.of(IntStream.of(1).sum()).skip(IntStream.of(1).count()).reduce(IntStream.of(1, 2).sum(), (l, r) -> l + r); } | main |
23,099 | long (long a, long b) { return a + b; } | fun |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.