Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
11,700 | Child () { this.resetToDefault(); return new Child(this); } | build |
11,701 | void () { Child x = Child.builder().field2(1.0).field1(5).resetToDefault().build(); } | test |
11,702 | void () { Child x = Child.builder().nonNullChildField("child").nonNullParentField("parent").build(); } | test |
11,703 | void () { GrandChild x = GrandChild.builder().grandChildField("").parentField(5).childField(2.5).build().toBuilder().build(); } | test |
11,704 | void () { Child<Integer> x = Child.<Integer>builder().field3(0.0).field1(5).item("").build().toBuilder().build(); } | test |
11,705 | void () { Child<Integer> x = Child.<Integer>builder().field3(0.0).field1(5).item("").build(); } | test |
11,706 | void () { Child x = Child.builder().doubleField(0.1).numberField(5).millis(1234567890L).build(); } | test |
11,707 | void (String[] args) { } | main |
11,708 | void (String[] args) { } | main |
11,709 | void (String[] args) { } | main |
11,710 | void (String[] args) { } | main |
11,711 | void (String[] args) { } | main |
11,712 | void (String[] args) { } | main |
11,713 | void (String[] args) { } | main |
11,714 | void (String[] args) { } | main |
11,715 | void (String[] args) { } | main |
11,716 | void (String[] args) { } | main |
11,717 | void (String[] args) { } | main |
11,718 | void (String[] args) { } | main |
11,719 | boolean () { return false; } | hasFoo |
11,720 | boolean () { return false; } | isFoo |
11,721 | boolean () { return false; } | getFoo |
11,722 | boolean () { return false; } | hasFoo |
11,723 | boolean () { return false; } | isFoo |
11,724 | boolean () { return false; } | getFoo |
11,725 | String () { return ""; } | hasFoo |
11,726 | String () { return ""; } | isFoo |
11,727 | String () { return ""; } | getFoo |
11,728 | boolean () { return true; } | calculateBoolean |
11,729 | Tolerate2 (String nameGlob, String extensionGlob) { return withPattern(nameGlob.replace("*", ".*") + "\\." + extensionGlob.replace("*", ".*")); } | withPattern |
11,730 | WitherTolerateTest (String score) { return withScore(Integer.parseInt(score)); } | withScore |
11,731 | void (Foo foo, String fieldName) { switch (fieldName) { //should not produce error "Constant expression required" > Foo.Fields.bar case Foo.Fields.bar: System.out.printf("Field %s contains: %s", fieldName, foo.getBar()); break; //should not produce error "Constant expression required" > Foo.Fields.foo case Foo.Fields.foo: System.out.printf("Field %s contains: %s", fieldName, foo.getFoo()); break; default: System.out.printf("Foo class doesn't have field: %s", fieldName); } } | logFieldValue |
11,732 | void (String[] args) { new FieldNameConstantsExample().logFieldValue(new Foo("a", "b"), "foo"); } | main |
11,733 | void (String[] args) { System.out.println(BuilderWithDefaultRedundantInitializer.builder().field1("xyz").build()); } | main |
11,734 | void (String[] args) { LAMDA.run(); } | main |
11,735 | void (String[] args) { System.out.println(new Parent()); System.out.println(new Child1()); System.out.println(new Child2()); } | main |
11,736 | String () { Object value = this.method.get(); if (value == null) { synchronized(this.method) { value = this.method.get(); if (value == null) { String actualValue = this.hoge; value = actualValue == null ? this.method : actualValue; this.method.set(value); } } } return (String)(value == this.method ? null : value); } | getMethod |
11,737 | void (String[] args) { new LombokBasics(10).test(new LombokBasics(12)); } | main |
11,738 | String () { return "Bar{}"; } | sayHello |
11,739 | String () { return "Car{}"; } | sayHello |
11,740 | void (List<? extends String> list) { } | print |
11,741 | void () { Long l1 = 1l; long l2 = 1l; Integer i1 = 1; int i2 = 1; "%d %d %d %d".format(l1, l2, i1, i2); "%d".format(l1); "".format(new Integer[]{1,2}); "".format(new Integer[]{1,2}, new Integer[]{1,2}); } | test |
11,742 | String (String string, Object... params) { return String.format(string, params); } | format |
11,743 | String () { int[] intArray = {5, 3, 8, 2}; intArray.sort(); String iAmNull = null; return iAmNull.or("hELlO, WORlD!".toTitleCase()); } | test |
11,744 | String (String in) { if (in.isEmpty()) return in; return "" + Character.toTitleCase(in.charAt(0)) + in.substring(1).toLowerCase(); } | toTitleCase |
11,745 | void () { (new Test()).ext(); Test t = new Test(); t.ext(); Test Test = new Test(); Test.ext(); } | instanceCalls |
11,746 | void () { Test.ext(); a.Test.ext(); } | staticCalls |
11,747 | void (Test t) { } | ext |
11,748 | void () { } | ext |
11,749 | void () { String test = "test"; test = test.map(s -> s.reverse()); test.consume(s -> System.out.println("1: " + s), s -> System.out.println("2: " + s)); test.consume(System.out::println, System.out::println); } | test |
11,750 | String (String string) { return new StringBuilder(string).reverse().toString(); } | reverse |
11,751 | void (Foo foo) {} | or |
11,752 | void () { Long l1 = 1l; long l2 = 1l; Integer i1 = 1; int i2 = 1; String string = "test"; string.boxing(l1, i1); string.boxing(l1, i2); string.boxing(l2, i1); string.boxing(l2, i2); } | test |
11,753 | String (String string, Long a, int b) { return string + " " + a + " " + b; } | boxing |
11,754 | void () { Test.staticMethod(); Test test = new Test(); test.instanceMethod(); test.staticMethod(); } | test |
11,755 | void () { Test.staticMethod(); Test test = new Test(); test.instanceMethod(); test.staticMethod(); } | test |
11,756 | void () { } | staticMethod |
11,757 | void () { } | instanceMethod |
11,758 | void (Test test) { } | staticMethod |
11,759 | void (Test test) { } | instanceMethod |
11,760 | int (String packed, int offset, int [] result) { int i = 0; /* index in packed string */ int j = offset; /* index in unpacked array */ int l = packed.length(); while (i < l) { int count = packed.charAt(i++); int value = packed.charAt(i++); do result[j++] = value; while (--count > 0); } return j; } | zzUnpackcmap_top |
11,761 | int (String packed, int offset, int [] result) { int i = 0; /* index in packed string */ int j = offset; /* index in unpacked array */ int l = packed.length(); while (i < l) { int count = packed.charAt(i++); int value = packed.charAt(i++); do result[j++] = value; while (--count > 0); } return j; } | zzUnpackcmap_blocks |
11,762 | int (String packed, int offset, int [] result) { int i = 0; /* index in packed string */ int j = offset; /* index in unpacked array */ int l = packed.length(); while (i < l) { int count = packed.charAt(i++); int value = packed.charAt(i++); do result[j++] = value; while (--count > 0); } return j; } | zzUnpackAction |
11,763 | int (String packed, int offset, int [] result) { int i = 0; /* index in packed string */ int j = offset; /* index in unpacked array */ int l = packed.length() - 1; while (i < l) { int high = packed.charAt(i++) << 16; result[j++] = high | packed.charAt(i++); } return j; } | zzUnpackRowMap |
11,764 | int (String packed, int offset, int [] result) { int i = 0; /* index in packed string */ int j = offset; /* index in unpacked array */ int l = packed.length(); while (i < l) { int count = packed.charAt(i++); int value = packed.charAt(i++); value--; do result[j++] = value; while (--count > 0); } return j; } | zzUnpacktrans |
11,765 | int (String packed, int offset, int [] result) { int i = 0; /* index in packed string */ int j = offset; /* index in unpacked array */ int l = packed.length(); while (i < l) { int count = packed.charAt(i++); int value = packed.charAt(i++); do result[j++] = value; while (--count > 0); } return j; } | zzUnpackAttribute |
11,766 | int () { return Integer.MAX_VALUE; } | zzMaxBufferLen |
11,767 | boolean () { return true; } | zzCanGrow |
11,768 | int (int input) { int offset = input & 255; return offset == input ? ZZ_CMAP_BLOCKS[offset] : ZZ_CMAP_BLOCKS[ZZ_CMAP_TOP[input >> 8] | offset]; } | zzCMap |
11,769 | int () { return zzStartRead; } | getTokenStart |
11,770 | int () { return getTokenStart() + yylength(); } | getTokenEnd |
11,771 | void (CharSequence buffer, int start, int end, int initialState) { zzBuffer = buffer; zzCurrentPos = zzMarkedPos = zzStartRead = start; zzAtEOF = false; zzAtBOL = true; zzEndRead = end; yybegin(initialState); } | reset |
11,772 | int () { return zzLexicalState; } | yystate |
11,773 | void (int newState) { zzLexicalState = newState; } | yybegin |
11,774 | CharSequence () { return zzBuffer.subSequence(zzStartRead, zzMarkedPos); } | yytext |
11,775 | char (int pos) { return zzBuffer.charAt(zzStartRead+pos); } | yycharat |
11,776 | int () { return zzMarkedPos-zzStartRead; } | yylength |
11,777 | void (int errorCode) { String message; try { message = ZZ_ERROR_MSG[errorCode]; } catch (ArrayIndexOutOfBoundsException e) { message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR]; } throw new Error(message); } | zzScanError |
11,778 | void (int number) { if ( number > yylength() ) zzScanError(ZZ_PUSHBACK_2BIG); zzMarkedPos -= number; } | yypushback |
11,779 | void () { if (!zzEOFDone) { zzEOFDone = true; } } | zzDoEOF |
11,780 | ASTNode (IElementType t, PsiBuilder b) { parseLight(t, b); return b.getTreeBuilt(); } | parse |
11,781 | void (IElementType t, PsiBuilder b) { boolean r; b = adapt_builder_(t, b, this, null); Marker m = enter_section_(b, 0, _COLLAPSE_, null); r = parse_root_(t, b); exit_section_(b, 0, m, t, r, true, TRUE_CONDITION); } | parseLight |
11,782 | boolean (IElementType t, PsiBuilder b) { return parse_root_(t, b, 0); } | parse_root_ |
11,783 | boolean (IElementType t, PsiBuilder b, int l) { return simpleFile(b, l + 1); } | parse_root_ |
11,784 | boolean (PsiBuilder b, int l) { if (!recursion_guard_(b, l, "cleaner")) return false; if (!nextTokenIs(b, CLEAR)) return false; boolean r; Marker m = enter_section_(b); r = consumeTokens(b, 0, CLEAR, KEY); exit_section_(b, m, CLEANER, r); return r; } | cleaner |
11,785 | boolean (PsiBuilder b, int l) { if (!recursion_guard_(b, l, "item_")) return false; boolean r; r = property(b, l + 1); if (!r) r = cleaner(b, l + 1); if (!r) r = consumeToken(b, COMMENT); if (!r) r = consumeToken(b, CRLF); return r; } | item_ |
11,786 | boolean (PsiBuilder b, int l) { if (!recursion_guard_(b, l, "operation")) return false; if (!nextTokenIs(b, "<operation>", SEPARATOR, SIGN)) return false; boolean r; Marker m = enter_section_(b, l, _NONE_, OPERATION, "<operation>"); r = operation_0(b, l + 1); r = r && consumeToken(b, SEPARATOR); exit_section_(b, l, m, r, false, null); return r; } | operation |
11,787 | boolean (PsiBuilder b, int l) { if (!recursion_guard_(b, l, "operation_0")) return false; consumeToken(b, SIGN); return true; } | operation_0 |
11,788 | boolean (PsiBuilder b, int l) { if (!recursion_guard_(b, l, "property")) return false; if (!nextTokenIs(b, KEY)) return false; boolean r; Marker m = enter_section_(b); r = consumeToken(b, KEY); r = r && operation(b, l + 1); r = r && consumeToken(b, VALUE); exit_section_(b, m, PROPERTY, r); return r; } | property |
11,789 | boolean (PsiBuilder b, int l) { if (!recursion_guard_(b, l, "simpleFile")) return false; while (true) { int c = current_position_(b); if (!item_(b, l + 1)) break; if (!empty_element_parsed_guard_(b, "simpleFile", c)) break; } return true; } | simpleFile |
11,790 | void (@NotNull LombokConfigCleaner o) { visitPsiElement(o); } | visitCleaner |
11,791 | void (@NotNull LombokConfigOperation o) { visitPsiElement(o); } | visitOperation |
11,792 | void (@NotNull LombokConfigProperty o) { visitPsiElement(o); } | visitProperty |
11,793 | void (@NotNull PsiElement o) { visitElement(o); } | visitPsiElement |
11,794 | PsiElement (ASTNode node) { IElementType type = node.getElementType(); if (type == CLEANER) { return new LombokConfigCleanerImpl(node); } else if (type == OPERATION) { return new LombokConfigOperationImpl(node); } else if (type == PROPERTY) { return new LombokConfigPropertyImpl(node); } throw new AssertionError("Unknown element type: " + type); } | createElement |
11,795 | void (@NotNull LombokConfigVisitor visitor) { visitor.visitOperation(this); } | accept |
11,796 | void (@NotNull PsiElementVisitor visitor) { if (visitor instanceof LombokConfigVisitor) accept((LombokConfigVisitor)visitor); else super.accept(visitor); } | accept |
11,797 | String () { return LombokConfigPsiUtil.getSign(this); } | getSign |
11,798 | void (@NotNull LombokConfigVisitor visitor) { visitor.visitProperty(this); } | accept |
11,799 | void (@NotNull PsiElementVisitor visitor) { if (visitor instanceof LombokConfigVisitor) accept((LombokConfigVisitor)visitor); else super.accept(visitor); } | accept |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.