Unnamed: 0
int64 0
305k
| body
stringlengths 7
52.9k
| name
stringlengths 1
185
|
|---|---|---|
11,300
|
int () { return this.y; }
|
getY
|
11,301
|
int () { return this.i; }
|
getI
|
11,302
|
int () { return this.foo; }
|
getFoo
|
11,303
|
String () { return this.fieldName; }
|
getFieldName
|
11,304
|
boolean (final java.lang.Object o) { if (o == this) return true; if (!(o instanceof GetterLazyEahcToString)) return false; final GetterLazyEahcToString other = (GetterLazyEahcToString) o; if (!other.canEqual((java.lang.Object) this)) return false; final java.lang.Object this$value = this.getValue(); final java.lang.Object other$value = other.getValue(); if (this$value == null ? other$value != null : !this$value.equals(other$value)) return false; final java.lang.Object this$value2 = this.value2; final java.lang.Object other$value2 = other.value2; if (this$value2 == null ? other$value2 != null : !this$value2.equals(other$value2)) return false; return true; }
|
equals
|
11,305
|
boolean (final java.lang.Object other) { return other instanceof GetterLazyEahcToString; }
|
canEqual
|
11,306
|
int () { final int PRIME = 59; int result = 1; final java.lang.Object $value = this.getValue(); result = result * PRIME + ($value == null ? 43 : $value.hashCode()); final java.lang.Object $value2 = this.value2; result = result * PRIME + ($value2 == null ? 43 : $value2.hashCode()); return result; }
|
hashCode
|
11,307
|
String () { java.lang.Object value = this.value.get(); if (value == null) { synchronized (this.value) { value = this.value.get(); if (value == null) { final String actualValue = ""; value = actualValue == null ? this.value : actualValue; this.value.set(value); } } } return (String) (value == this.value ? null : value); }
|
getValue
|
11,308
|
String () { return this.value2; }
|
getValue2
|
11,309
|
boolean () { return this.isPublic; }
|
isPublic
|
11,310
|
boolean () { return this.isProtected; }
|
isProtected
|
11,311
|
boolean () { return this.isPrivate; }
|
isPrivate
|
11,312
|
boolean () { return this.isPublic; }
|
isPublic
|
11,313
|
String () { return this.couldBeNull; }
|
getCouldBeNull
|
11,314
|
String () { return this.nonNull; }
|
getNonNull
|
11,315
|
ValueType () { java.lang.Object value = this.fieldName.get(); if (value == null) { synchronized (this.fieldName) { value = this.fieldName.get(); if (value == null) { final ValueType actualValue = new ValueType(); value = actualValue == null ? this.fieldName : actualValue; this.fieldName.set(value); } } } return (ValueType) (value == this.fieldName ? null : value); }
|
getFieldName
|
11,316
|
int () { return this.bad1; }
|
getBad1
|
11,317
|
int () { return this.bad2; }
|
getBad2
|
11,318
|
int () { return this.bad3; }
|
getBad3
|
11,319
|
int () { return this.bad4; }
|
getBad4
|
11,320
|
int () { return this.good1; }
|
getGood1
|
11,321
|
int () { return this.good2; }
|
getGood2
|
11,322
|
int () { return this.good3; }
|
getGood3
|
11,323
|
int () { return this.good4; }
|
getGood4
|
11,324
|
int () { return this.test; }
|
getTest
|
11,325
|
boolean () { java.lang.Object value = this.booleanField.get(); if (value == null) { synchronized (this.booleanField) { value = this.booleanField.get(); if (value == null) { final boolean actualValue = true; value = actualValue; this.booleanField.set(value); } } } return (java.lang.Boolean) value; }
|
isBooleanField
|
11,326
|
byte () { java.lang.Object value = this.byteField.get(); if (value == null) { synchronized (this.byteField) { value = this.byteField.get(); if (value == null) { final byte actualValue = 1; value = actualValue; this.byteField.set(value); } } } return (java.lang.Byte) value; }
|
getByteField
|
11,327
|
short () { java.lang.Object value = this.shortField.get(); if (value == null) { synchronized (this.shortField) { value = this.shortField.get(); if (value == null) { final short actualValue = 1; value = actualValue; this.shortField.set(value); } } } return (java.lang.Short) value; }
|
getShortField
|
11,328
|
int () { java.lang.Object value = this.intField.get(); if (value == null) { synchronized (this.intField) { value = this.intField.get(); if (value == null) { final int actualValue = 1; value = actualValue; this.intField.set(value); } } } return (java.lang.Integer) value; }
|
getIntField
|
11,329
|
long () { java.lang.Object value = this.longField.get(); if (value == null) { synchronized (this.longField) { value = this.longField.get(); if (value == null) { final long actualValue = 1; value = actualValue; this.longField.set(value); } } } return (java.lang.Long) value; }
|
getLongField
|
11,330
|
float () { java.lang.Object value = this.floatField.get(); if (value == null) { synchronized (this.floatField) { value = this.floatField.get(); if (value == null) { final float actualValue = 1.0F; value = actualValue; this.floatField.set(value); } } } return (java.lang.Float) value; }
|
getFloatField
|
11,331
|
double () { java.lang.Object value = this.doubleField.get(); if (value == null) { synchronized (this.doubleField) { value = this.doubleField.get(); if (value == null) { final double actualValue = 1.0; value = actualValue; this.doubleField.set(value); } } } return (java.lang.Double) value; }
|
getDoubleField
|
11,332
|
char () { java.lang.Object value = this.charField.get(); if (value == null) { synchronized (this.charField) { value = this.charField.get(); if (value == null) { final char actualValue = '1'; value = actualValue; this.charField.set(value); } } } return (java.lang.Character) value; }
|
getCharField
|
11,333
|
int[] () { java.lang.Object value = this.intArrayField.get(); if (value == null) { synchronized (this.intArrayField) { value = this.intArrayField.get(); if (value == null) { final int[] actualValue = new int[] {1}; value = actualValue == null ? this.intArrayField : actualValue; this.intArrayField.set(value); } } } return (int[]) (value == this.intArrayField ? null : value); }
|
getIntArrayField
|
11,334
|
int () { return this.annotation; }
|
getAnnotation
|
11,335
|
int () { return this.javadoc; }
|
getJavadoc
|
11,336
|
boolean () { return true; }
|
calculateBoolean
|
11,337
|
boolean (final java.lang.Object o) { if (o == this) return true; if (!(o instanceof GetterLazyBoolean)) return false; final GetterLazyBoolean other = (GetterLazyBoolean) o; if (!other.canEqual((java.lang.Object) this)) return false; if (this.isBooleanValue() != other.isBooleanValue()) return false; return true; }
|
equals
|
11,338
|
boolean (final java.lang.Object other) { return other instanceof GetterLazyBoolean; }
|
canEqual
|
11,339
|
int () { final int PRIME = 59; int result = 1; result = result * PRIME + (this.isBooleanValue() ? 79 : 97); return result; }
|
hashCode
|
11,340
|
boolean () { java.lang.Object value = this.booleanValue.get(); if (value == null) { synchronized (this.booleanValue) { value = this.booleanValue.get(); if (value == null) { final boolean actualValue = calculateBoolean(); value = actualValue; this.booleanValue.set(value); } } } return (java.lang.Boolean) value; }
|
isBooleanValue
|
11,341
|
boolean () { java.lang.Object value = this.otherBooleanValue.get(); if (value == null) { synchronized (this.otherBooleanValue) { value = this.otherBooleanValue.get(); if (value == null) { final boolean actualValue = !calculateBoolean(); value = actualValue; this.otherBooleanValue.set(value); } } } return (java.lang.Boolean) value; }
|
isOtherBooleanValue
|
11,342
|
int () { return this.i; }
|
getI
|
11,343
|
int () { return this.j; }
|
getJ
|
11,344
|
int () { return this.k; }
|
getK
|
11,345
|
int () { return this.x; }
|
getX
|
11,346
|
boolean () { return Getter.foo; }
|
isFoo
|
11,347
|
int () { return Getter.bar; }
|
getBar
|
11,348
|
int () { return this.i; }
|
getI
|
11,349
|
int () { return this.i; }
|
getI
|
11,350
|
int () { return this.foo; }
|
getFoo
|
11,351
|
void (String pattern) { setPattern(Pattern.compile(pattern)); }
|
setPattern
|
11,352
|
void (final Pattern pattern) { this.pattern = pattern; }
|
setPattern
|
11,353
|
Pattern () { return this.pattern; }
|
getPattern
|
11,354
|
Tolerate2 (String pattern) { return withPattern(Pattern.compile(pattern)); }
|
withPattern
|
11,355
|
Tolerate2 (String nameGlob, String extensionGlob) { return withPattern(nameGlob.replace("*", ".*") + "\\." + extensionGlob.replace("*", ".*")); }
|
withPattern
|
11,356
|
Pattern () { return this.pattern; }
|
getPattern
|
11,357
|
Tolerate2 (final Pattern pattern) { return this.pattern == pattern ? this : new Tolerate2(pattern); }
|
withPattern
|
11,358
|
WitherTolerateTest (String score) { return withScore(Integer.parseInt(score)); }
|
withScore
|
11,359
|
WitherTolerateTest (Integer score) { return this.score == score ? this : new WitherTolerateTest(score); }
|
withScore
|
11,360
|
void (final int i) { this.i = i; }
|
setI
|
11,361
|
void (final int i) { this.i = i; }
|
setI
|
11,362
|
void (final int foo) { this.foo = foo; }
|
setFoo
|
11,363
|
void (final boolean isPrivate) { this.isPrivate = isPrivate; }
|
setPrivate
|
11,364
|
void (final boolean isProtected) { this.isProtected = isProtected; }
|
setProtected
|
11,365
|
void (final boolean isPublic) { this.isPublic = isPublic; }
|
setPublic
|
11,366
|
void (final boolean value) { this.value = value; }
|
setValue
|
11,367
|
void (final boolean foo) { Setter.foo = foo; }
|
setFoo
|
11,368
|
void (final int bar) { Setter.bar = bar; }
|
setBar
|
11,369
|
void (final boolean isPublic) { this.isPublic = isPublic; }
|
setPublic
|
11,370
|
void (final boolean isProtected) { this.isProtected = isProtected; }
|
setProtected
|
11,371
|
void (final boolean isPrivate) { this.isPrivate = isPrivate; }
|
setPrivate
|
11,372
|
void (final boolean isPublic) { this.isPublic = isPublic; }
|
setPublic
|
11,373
|
void (final String couldBeNull) { this.couldBeNull = couldBeNull; }
|
setCouldBeNull
|
11,374
|
void (@lombok.NonNull final String nonNull) { this.nonNull = nonNull; }
|
setNonNull
|
11,375
|
void (final int i) { this.i = i; }
|
setI
|
11,376
|
void (@Test final int j) { this.j = j; }
|
setJ
|
11,377
|
void (@Test final int k) { this.k = k; }
|
setK
|
11,378
|
void (final String foo) { this.foo = foo; }
|
setFoo
|
11,379
|
void (final String foo) { this.foo = foo; }
|
setFoo
|
11,380
|
void (final int annotation) { this.annotation = annotation; }
|
setAnnotation
|
11,381
|
void (final int javadoc) { this.javadoc = javadoc; }
|
setJavadoc
|
11,382
|
record ( int foo, String b<caret>ar ) { public static void main(String[] args) { FindUsageBuilderRecord findUsageBuilderRecord = FindUsageBuilderRecord.builder() .bar("bar") .foo(1981) .build(); System.out.println("Bar is: " + findUsageBuilderRecord.bar()); System.out.println("Foo is: " + findUsageBuilderRecord.foo()); } }
|
FindUsageBuilderRecord
|
11,383
|
void (String[] args) { FindUsageBuilderRecord findUsageBuilderRecord = FindUsageBuilderRecord.builder() .bar("bar") .foo(1981) .build(); System.out.println("Bar is: " + findUsageBuilderRecord.bar()); System.out.println("Foo is: " + findUsageBuilderRecord.foo()); }
|
main
|
11,384
|
record ( int foo, String b<caret>ar ) { public static void main(String[] args) { FindUsageWitherRecord findUsageWitherRecord = new FindUsageWitherRecord(1, "bar"); findUsageWitherRecord .withBar("myBar") .withFoo(1981); System.out.println("Bar is: " + findUsageWitherRecord.bar()); System.out.println("Foo is: " + findUsageWitherRecord.foo()); } }
|
FindUsageWitherRecord
|
11,385
|
void (String[] args) { FindUsageWitherRecord findUsageWitherRecord = new FindUsageWitherRecord(1, "bar"); findUsageWitherRecord .withBar("myBar") .withFoo(1981); System.out.println("Bar is: " + findUsageWitherRecord.bar()); System.out.println("Foo is: " + findUsageWitherRecord.foo()); }
|
main
|
11,386
|
void (String[] args) { FindUsageBuilder findUsageBuilder = FindUsageBuilder.builder() .bar("bar") .foo(1981) .build(); System.out.println("Bar is: " + findUsageBuilder.getBar()); System.out.println("Foo is: " + findUsageBuilder.getFoo()); }
|
main
|
11,387
|
void (String[] args) { FindUsageGetterSetter findUsageGetterSetter = new FindUsageGetterSetter(); findUsageGetterSetter.setBar("myBar"); findUsageGetterSetter.setFoo(1981); System.out.println("Bar is: " + findUsageGetterSetter.getBar()); System.out.println("Foo is: " + findUsageGetterSetter.getFoo()); }
|
main
|
11,388
|
void (String[] args) { FindUsageSingularBuilder findUsageBuilder = FindUsageSingularBuilder.builder() .bar("bar") .fooDate(16061981, new Date()); findUsageBuilder = FindUsageSingularBuilder.builder() .bars(Arrays.asList("bar1", "bar2")) .fooDateMap(Collections.emptyMap()); findUsageBuilder = FindUsageSingularBuilder.builder() .clearBars() .clearFooDateMap() .build(); System.out.println("Bar is: " + findUsageBuilder.getBars()); System.out.println("Foo is: " + findUsageBuilder.getFooDateMap()); }
|
main
|
11,389
|
void (String[] args) { FindUsageWither findUsageWither = new FindUsageWither(1, "bar"); findUsageWither .withBar("myBar") .withFoo(1981); System.out.println("Bar is: " + findUsageWither.getBar()); System.out.println("Foo is: " + findUsageWither.getFoo()); }
|
main
|
11,390
|
void (String[] args) { FindUsageAccessors findUsageAccessors = new FindUsageAccessors(); findUsageAccessors.setBar("myBar"); findUsageAccessors.foo(1981); System.out.println("Bar is: " + findUsageAccessors.getBar()); System.out.println("Foo is: " + findUsageAccessors.foo()); }
|
main
|
11,391
|
void (String[] args) { DataDto.o3f(2); }
|
main
|
11,392
|
void (String[] args) { ValueDto.o3f(2); }
|
main
|
11,393
|
void () { while(b) { System.out.println("hello"); } System.out.println(); }
|
test
|
11,394
|
void () { while(b2) { System.out.println("hello"); } <error descr="Unreachable statement">System.out.println();</error> }
|
test2
|
11,395
|
void (String[] args) { WithTest withTest = WithTest.builder().build(); WithTest errorLine = withTest.withDetail("test"); System.out.println(errorLine); }
|
main
|
11,396
|
record (String detail) { public static WithTest ERROR = builder() .detail("detail") .build(); }
|
WithTest
|
11,397
|
void () { final String file; try { file = "classpath:data/resource.json"; new java.io.FileInputStream(file); } catch (java.io.IOException e) { System.out.println(<error descr="Variable 'file' might not have been initialized">file</error>); } }
|
m
|
11,398
|
void () { String name; try { try { name = ""; throwsMyException(); throwsSomeException(); throwsAnotherException(); } catch (SneakThrowsDoesntCatchCaughtExceptionNested.SomeException e) { } } catch (SneakThrowsDoesntCatchCaughtExceptionNested.AnotherException e) { System.out.println(<error descr="Variable 'name' might not have been initialized">name</error>); } }
|
m
|
11,399
|
void (String[] args) { System.out.println(y); }
|
main
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.