nus-yam/ex-repair huggingface dataset:
Program: 13816
Project: 13816
Buggy source:
/** 
 * Nb. Post-constructor for what is inside the class such as methods, members etc. + imports. Both this method and the super class'es   {@link ObjectType#initType}methods must be called for the class to be fully initialized and ready for use. Must be called only once.
 * @param members Member variables for class.
 * @param properties Property methods for class.
 * @param nonPropertyMethods Other methods for class.
 */
public void initContent(List<Member> members,List<Property> properties,List<Method> nonPropertyMethods){
  if (initializedContent)   throw new IllegalStateException("String_Node_Str");
  this.members=Objects.requireNonNull(members);
  this.properties=Objects.requireNonNull(properties);
  this.methods=Objects.requireNonNull(nonPropertyMethods);
  initializedContent=true;
}

Fixed version (ground truth):
/** 
 * Nb. Post-constructor for what is inside the class such as methods, members etc. + imports. Both this method and the super class'es   {@link ObjectType#initType}methods must be called for the class to be fully initialized and ready for use. Must be called only once.
 * @param members Member variables for class.
 * @param methods Other methods for class.
 * @param declaredModifiers declared clazz modifiers (empty if a new Clazz)
 */
public void initContent(List<Member> members,List<Method> methods,EnumSet<Modifier> declaredModifiers){
  if (initializedContent)   throw new IllegalStateException("String_Node_Str");
  this.members=Objects.requireNonNull(members);
  this.methods=Objects.requireNonNull(methods);
  this.declaredModifiers=Objects.requireNonNull(declaredModifiers);
  initializedContent=true;
}
Program: 13817
Project: 13817
Buggy source:
public BasicClazz(Configuration configuration,String qualifiedProtoTypicalTypeName,ThrowingFunction<BasicClazz,HelperTypes> helperFactoryMethod) throws Exception {
  super(qualifiedProtoTypicalTypeName);
  super.clazzUsingType=this;
  this.configuration=Objects.requireNonNull(configuration);
  this.packageName=getPackageFromQualifiedName(qualifiedProtoTypicalTypeName);
  this.helperTypes=helperFactoryMethod.apply(this);
  this.properties=new ArrayList<Property>();
  this.methods=new ArrayList<Method>();
  this.members=new ArrayList<Member>();
  initializedContent=false;
}

Fixed version (ground truth):
public BasicClazz(BasicClazz optClazzUsingType,Configuration configuration,String qualifiedProtoTypicalTypeName,ThrowingFunction<BasicClazz,HelperTypes> helperFactoryMethod,NoType noType) throws Exception {
  super(optClazzUsingType,qualifiedProtoTypicalTypeName,noType);
  this.configuration=Objects.requireNonNull(configuration);
  this.packageName=getPackageFromQualifiedName(qualifiedProtoTypicalTypeName);
  this.helperTypes=helperFactoryMethod.apply(this);
  this.methods=new ArrayList<Method>();
  this.members=new ArrayList<Member>();
  this.declaredModifiers=EnumSet.noneOf(Modifier.class);
  initializedContent=false;
}
Program: 13818
Project: 13818
Buggy source:
@Override public String toString(int level){
  StringBuilder sb=new StringBuilder();
  sb.append("String_Node_Str" + Integer.toHexString(System.identityHashCode(this)));
  if (level < MAX_RECURSIVE_LEVEL) {
    sb.append("String_Node_Str" + initialized() + "String_Node_Str"+ qualifiedProtoTypicalTypeName);
  }
  if (level == 0) {
    sb.append("String_Node_Str" + packageName + System.lineSeparator()+ "String_Node_Str"+ baseClazzType.toString(level + 1)+ System.lineSeparator()+ "String_Node_Str"+ interfaceTypes.stream().map(t -> t.toString(level + 1)).collect(Collectors.joining("String_Node_Str" + System.lineSeparator()))+ "String_Node_Str"+ System.lineSeparator()+ "String_Node_Str"+ interfaceTypesWithAscendants.stream().map(t -> t.toString(level + 1)).collect(Collectors.joining("String_Node_Str" + System.lineSeparator()))+ "String_Node_Str"+ System.lineSeparator()+ "String_Node_Str"+ ToStringUtil.toString(genericTypeArguments,level + 1)+ System.lineSeparator()+ "String_Node_Str"+ ToStringUtil.toString(members,level + 1)+ System.lineSeparator()+ "String_Node_Str"+ ToStringUtil.toString(properties,level + 1)+ System.lineSeparator()+ "String_Node_Str"+ ToStringUtil.toString(methods,level + 1)+ System.lineSeparator()+ "String_Node_Str"+ configuration+ "String_Node_Str"+ System.lineSeparator());
  }
  sb.append("String_Node_Str");
  return sb.toString();
}

Fixed version (ground truth):
@Override public String toString(int level){
  StringBuilder sb=new StringBuilder();
  sb.append("String_Node_Str" + Integer.toHexString(System.identityHashCode(this)));
  if (level < MAX_RECURSIVE_LEVEL) {
    sb.append("String_Node_Str" + initialized() + "String_Node_Str"+ qualifiedProtoTypicalTypeName);
  }
  if (level <= 0) {
    sb.append("String_Node_Str" + packageName + System.lineSeparator()+ "String_Node_Str"+ baseClazzType.toString(level + 1)+ System.lineSeparator()+ "String_Node_Str"+ interfaceTypes.stream().map(t -> t.toString(level + 1)).collect(Collectors.joining("String_Node_Str" + System.lineSeparator()))+ "String_Node_Str"+ System.lineSeparator()+ "String_Node_Str"+ superTypesWithAscendants.stream().map(t -> t.toString(level + 1)).collect(Collectors.joining("String_Node_Str" + System.lineSeparator()))+ "String_Node_Str"+ System.lineSeparator()+ "String_Node_Str"+ ToStringUtil.toString(genericTypeArguments,"String_Node_Str",level + 1)+ System.lineSeparator()+ "String_Node_Str"+ ToStringUtil.toString(members,System.lineSeparator(),level + 1)+ System.lineSeparator()+ "String_Node_Str"+ ToStringUtil.toString(methods,System.lineSeparator(),level + 1)+ System.lineSeparator()+ "String_Node_Str"+ declaredModifiers);
  }
  sb.append("String_Node_Str");
  return sb.toString();
}
Program: 13819
Project: 13819
Buggy source:
/** 
 * Nb. Post-constructor for what is inside the class such as methods, members etc. + imports. Calls super class'es initContent internally Both this method and the ancestor class'es   {@link ObjectType#initType}methods must be called for the class to be fully initialized and ready for use. Must be called only once.
 * @param members Member variables for class.
 * @param properties Property methods for class.
 * @param nonPropertyMethods Other methods for class.
 * @param importTypes Types to be imported for class.
 * @param chosenComparableMembers Members to be used for compareToOperation
 */
public void initContent(List<Member> members,List<Property> properties,List<Method> nonPropertyMethods,List<Type> importTypes,List<Member> chosenComparableMembers){
  super.initContent(members,properties,nonPropertyMethods);
  this.importTypes=Objects.requireNonNull(importTypes);
  this.chosenComparableMembers=Objects.requireNonNull(chosenComparableMembers);
}

Fixed version (ground truth):
/** 
 * Nb. Post-constructor for what is inside the class such as methods, members etc. + imports. Calls super class'es initContent internally Both this method and the ancestor class'es   {@link ObjectType#initType}methods must be called for the class to be fully initialized and ready for use. Must be called only once.
 * @param members Member variables for class.
 * @param properties Property methods for class.
 * @param methods Non-property methods for class.
 * @param importTypes Types to be imported for class.
 * @param chosenComparableMembers Members to be used for compareToOperation
 */
public void initContent(List<Member> members,List<Property> properties,List<Method> methods,List<Type> importTypes,List<Member> chosenComparableMembers){
  super.initContent(members,methods,EnumSet.noneOf(Modifier.class));
  this.properties=Objects.requireNonNull(properties);
  this.importTypes=Objects.requireNonNull(importTypes);
  this.chosenComparableMembers=Objects.requireNonNull(chosenComparableMembers);
}
Program: 13820
Project: 13820
Buggy source:
/** 
 * Constructs a prelimiary Clazz instance from a configuration with only a few values such as name specificed in advanced. After constructing the instance, the various setters must be used to finish initialization.
 * @param configuration The configuration of how generated code should look.
 * @param qualifiedClassName The full name of the class that should be generated.
 * @param qualifiedMaster The fill name of the item this class was generated from.
 * @param javaDoc JavaDoc if any.
 * @param fileHeaderText Text to output as header for file(s).
 * @param helperFactoryMethod Method that can generate helper types for this class.
 * @throws Exception Exception if could not construct clazz.
 */
public Clazz(Configuration configuration,String qualifiedClassName,String qualifiedMaster,String javaDoc,String fileHeaderText,ThrowingFunction<BasicClazz,HelperTypes> helperFactoryMethod) throws Exception {
  super(configuration,qualifiedClassName,helperFactoryMethod);
  super.clazzUsingType=this;
  this.qualifiedMaster=qualifiedMaster;
  this.interfaceTypes=new ArrayList<Type>();
  this.baseClazzType=new NoType(this);
  this.javaDoc=Objects.requireNonNull(javaDoc);
  this.fileHeaderText=Objects.requireNonNull(fileHeaderText);
  this.importTypes=new ArrayList<Type>();
}

Fixed version (ground truth):
/** 
 * Constructs a prelimiary Clazz instance from a configuration with only a few values such as name specificed in advanced. After constructing the instance, the various setters must be used to finish initialization.
 * @param configuration The configuration of how generated code should look.
 * @param qualifiedClassName The full name of the class that should be generated.
 * @param qualifiedMaster The fill name of the item this class was generated from.
 * @param javaDoc JavaDoc if any.
 * @param fileHeaderText Text to output as header for file(s).
 * @param helperFactoryMethod Method that can generate helper types for this class.
 * @param noType Helper type that represents no-type.
 * @throws Exception Exception if could not construct clazz.
 */
public Clazz(Configuration configuration,String qualifiedClassName,String qualifiedMaster,String javaDoc,String fileHeaderText,ThrowingFunction<BasicClazz,HelperTypes> helperFactoryMethod,NoType noType) throws Exception {
  super(null,configuration,qualifiedClassName,helperFactoryMethod,noType);
  super.clazzUsingType=this;
  this.qualifiedMaster=qualifiedMaster;
  this.interfaceTypes=new ArrayList<Type>();
  this.baseClazzType=noType;
  this.javaDoc=Objects.requireNonNull(javaDoc);
  this.fileHeaderText=Objects.requireNonNull(fileHeaderText);
  this.importTypes=new ArrayList<Type>();
}
Program: 13821
Project: 13821
Buggy source:
@Override public String toString(int level){
  StringBuilder sb=new StringBuilder();
  sb.append("String_Node_Str" + Integer.toHexString(System.identityHashCode(this)));
  if (level < MAX_RECURSIVE_LEVEL) {
    sb.append("String_Node_Str" + initialized() + "String_Node_Str"+ qualifiedProtoTypicalTypeName);
  }
  if (level == 0) {
    sb.append("String_Node_Str" + packageName + System.lineSeparator()+ "String_Node_Str"+ baseClazzType.toString(level + 1)+ System.lineSeparator()+ "String_Node_Str"+ interfaceTypes.stream().map(t -> t.toString(level + 1)).collect(Collectors.joining("String_Node_Str" + System.lineSeparator()))+ "String_Node_Str"+ System.lineSeparator()+ "String_Node_Str"+ interfaceTypesWithAscendants.stream().map(t -> t.toString(level + 1)).collect(Collectors.joining("String_Node_Str" + System.lineSeparator()))+ "String_Node_Str"+ System.lineSeparator()+ "String_Node_Str"+ ToStringUtil.toString(importTypes,level + 1)+ System.lineSeparator()+ "String_Node_Str"+ ToStringUtil.toString(genericTypeArguments,level + 1)+ System.lineSeparator()+ "String_Node_Str"+ ToStringUtil.toString(members,level + 1)+ System.lineSeparator()+ "String_Node_Str"+ ToStringUtil.toString(properties,level + 1)+ System.lineSeparator()+ "String_Node_Str"+ ToStringUtil.toString(methods,level + 1)+ System.lineSeparator()+ "String_Node_Str"+ configuration+ "String_Node_Str"+ System.lineSeparator());
  }
  sb.append("String_Node_Str");
  return sb.toString();
}

Fixed version (ground truth):
@Override public String toString(int level){
  StringBuilder sb=new StringBuilder();
  sb.append("String_Node_Str" + Integer.toHexString(System.identityHashCode(this)));
  if (level < MAX_RECURSIVE_LEVEL) {
    sb.append("String_Node_Str" + initialized() + "String_Node_Str"+ qualifiedProtoTypicalTypeName);
  }
  if (level == 0) {
    sb.append("String_Node_Str" + packageName + System.lineSeparator()+ "String_Node_Str"+ baseClazzType.toString(level)+ System.lineSeparator()+ "String_Node_Str"+ interfaceTypes.stream().map(t -> t.toString(level + 1)).collect(Collectors.joining("String_Node_Str" + System.lineSeparator()))+ "String_Node_Str"+ System.lineSeparator()+ "String_Node_Str"+ superTypesWithAscendants.stream().map(t -> t.toString(level + 1)).collect(Collectors.joining("String_Node_Str" + System.lineSeparator()))+ "String_Node_Str"+ System.lineSeparator()+ "String_Node_Str"+ ToStringUtil.toString(importTypes,"String_Node_Str",level + 1)+ System.lineSeparator()+ "String_Node_Str"+ ToStringUtil.toString(genericTypeArguments,"String_Node_Str",level + 1)+ System.lineSeparator()+ "String_Node_Str"+ ToStringUtil.toString(members,System.lineSeparator(),level + 1)+ System.lineSeparator()+ "String_Node_Str"+ ToStringUtil.toString(properties,System.lineSeparator(),level + 1)+ System.lineSeparator()+ "String_Node_Str"+ ToStringUtil.toString(methods,System.lineSeparator(),level + 1)+ System.lineSeparator());
  }
  sb.append("String_Node_Str");
  return sb.toString();
}
Program: 13822
Project: 13822
Buggy source:
public List<Method> getClaimedImplementationMethods(){
  return methods.stream().filter(m -> m.implementationInfo == ImplementationInfo.IMPLEMENTATION_CLAIMED_BY_GENERATED_OBJECT).collect(Collectors.toList());
}

Fixed version (ground truth):
public List<Method> getClaimedImplementationMethods(){
  return methods.stream().filter(m -> m.implementationInfo == ImplementationInfo.IMPLEMENTATION_PROVIDED_BY_THIS_OBJECT).collect(Collectors.toList());
}
Program: 13823
Project: 13823
Buggy source:
/** 
 * {@inheritDoc}
 */
@Override public final char[] getCharArray(){
  return charArray;
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}
 */
@Override public char[] getCharArray(){
  return charArray;
}
Program: 13824
Project: 13824
Buggy source:
/** 
 * {@inheritDoc}
 */
@Override public final int[][] getIntMultiArray(){
  return intMultiArray;
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}
 */
@Override public int[][] getIntMultiArray(){
  return intMultiArray;
}
Program: 13825
Project: 13825
Buggy source:
/** 
 * {@inheritDoc}
 */
@Override public final byte getByte(){
  return _byte;
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}
 */
@Override public byte getByte(){
  return _byte;
}
Program: 13826
Project: 13826
Buggy source:
/** 
 * {@inheritDoc}
 */
@Override public final long[][] getLongMultiArray(){
  return longMultiArray;
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}
 */
@Override public long[][] getLongMultiArray(){
  return longMultiArray;
}
Program: 13827
Project: 13827
Buggy source:
/** 
 * {@inheritDoc}
 */
@Override public final double getDouble(){
  return _double;
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}
 */
@Override public double getDouble(){
  return _double;
}
Program: 13828
Project: 13828
Buggy source:
/** 
 * {@inheritDoc}
 */
@Override public final double[][] getDoubleMultiArray(){
  return doubleMultiArray;
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}
 */
@Override public double[][] getDoubleMultiArray(){
  return doubleMultiArray;
}
Program: 13829
Project: 13829
Buggy source:
/** 
 * {@inheritDoc}
 */
@Override public final float getFloat(){
  return _float;
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}
 */
@Override public float getFloat(){
  return _float;
}
Program: 13830
Project: 13830
Buggy source:
/** 
 * {@inheritDoc}
 */
@Override public final double[] getDoubleArray(){
  return doubleArray;
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}
 */
@Override public double[] getDoubleArray(){
  return doubleArray;
}
Program: 13831
Project: 13831
Buggy source:
/** 
 * {@inheritDoc}
 */
@Override public final boolean isBoolean(){
  return _boolean;
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}
 */
@Override public boolean isBoolean(){
  return _boolean;
}
Program: 13832
Project: 13832
Buggy source:
/** 
 * {@inheritDoc}
 */
@Override public final java.util.Date getDate(){
  return date;
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}
 */
@Override public java.util.Date getDate(){
  return date;
}
Program: 13833
Project: 13833
Buggy source:
/** 
 * {@inheritDoc}
 */
@Override public final boolean[] getBooleanArray(){
  return booleanArray;
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}
 */
@Override public boolean[] getBooleanArray(){
  return booleanArray;
}
Program: 13834
Project: 13834
Buggy source:
/** 
 * {@inheritDoc}
 */
@Override public final Object getObject(){
  return _object;
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}
 */
@Override public Object getObject(){
  return _object;
}
Program: 13835
Project: 13835
Buggy source:
/** 
 * {@inheritDoc}
 */
@Override public final Object[][] getObjectMultiArray(){
  return objectMultiArray;
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}
 */
@Override public Object[][] getObjectMultiArray(){
  return objectMultiArray;
}
Program: 13836
Project: 13836
Buggy source:
/** 
 * {@inheritDoc}
 */
@Override public final float[][] getFloatMultiArray(){
  return floatMultiArray;
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}
 */
@Override public float[][] getFloatMultiArray(){
  return floatMultiArray;
}
Program: 13837
Project: 13837
Buggy source:
/** 
 * {@inheritDoc}
 */
@Override public final char[][] getCharMultiArray(){
  return charMultiArray;
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}
 */
@Override public char[][] getCharMultiArray(){
  return charMultiArray;
}
Program: 13838
Project: 13838
Buggy source:
/** 
 * {@inheritDoc}
 */
@Override public final boolean[][] getBooleanMultiArray(){
  return booleanMultiArray;
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}
 */
@Override public boolean[][] getBooleanMultiArray(){
  return booleanMultiArray;
}
Program: 13839
Project: 13839
Buggy source:
/** 
 * {@inheritDoc}
 */
@Override public final ComplexInterfaceWithAllTypes getOther(){
  return other;
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}
 */
@Override public ComplexInterfaceWithAllTypes getOther(){
  return other;
}
Program: 13840
Project: 13840
Buggy source:
/** 
 * {@inheritDoc}
 */
@Override public final Object[] getObjectArray(){
  return objectArray;
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}
 */
@Override public Object[] getObjectArray(){
  return objectArray;
}
Program: 13841
Project: 13841
Buggy source:
/** 
 * {@inheritDoc}
 */
@Override public final String getString(){
  return _string;
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}
 */
@Override public String getString(){
  return _string;
}
Program: 13842
Project: 13842
Buggy source:
/** 
 * {@inheritDoc}
 */
@Override public final float[] getFloatArray(){
  return floatArray;
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}
 */
@Override public float[] getFloatArray(){
  return floatArray;
}
Program: 13843
Project: 13843
Buggy source:
/** 
 * {@inheritDoc}
 */
@Override public final long[] getLongArray(){
  return longArray;
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}
 */
@Override public long[] getLongArray(){
  return longArray;
}
Program: 13844
Project: 13844
Buggy source:
/** 
 * {@inheritDoc}
 */
@Override public final long getLong(){
  return _long;
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}
 */
@Override public long getLong(){
  return _long;
}
Program: 13845
Project: 13845
Buggy source:
/** 
 * {@inheritDoc}
 */
@Override public final int getInt(){
  return _int;
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}
 */
@Override public int getInt(){
  return _int;
}
Program: 13846
Project: 13846
Buggy source:
/** 
 * {@inheritDoc}
 */
@Override public final char getChar(){
  return _char;
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}
 */
@Override public char getChar(){
  return _char;
}
Program: 13847
Project: 13847
Buggy source:
/** 
 * {@inheritDoc}
 */
@Override public final byte[][] getByteMultiArray(){
  return byteMultiArray;
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}
 */
@Override public byte[][] getByteMultiArray(){
  return byteMultiArray;
}
Program: 13848
Project: 13848
Buggy source:
/** 
 * {@inheritDoc}
 */
@Override public final byte[] getByteArray(){
  return byteArray;
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}
 */
@Override public byte[] getByteArray(){
  return byteArray;
}
Program: 13849
Project: 13849
Buggy source:
/** 
 * {@inheritDoc}
 */
@Override public final int[] getIntArray(){
  return intArray;
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}
 */
@Override public int[] getIntArray(){
  return intArray;
}
Program: 13850
Project: 13850
Buggy source:
/** 
 * {@inheritDoc}
 */
@Override public final Object getObject(){
  return _object;
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}
 */
@Override public Object getObject(){
  return _object;
}
Program: 13851
Project: 13851
Buggy source:
/** 
 * {@inheritDoc}
 */
@Override public final String getValue(){
  return value;
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}
 */
@Override public String getValue(){
  return value;
}
Program: 13852
Project: 13852
Buggy source:
/** 
 * {@inheritDoc}
 */
@Override public final void setValue(final String value){
  this.value=Objects.requireNonNull(value);
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}
 */
@Override public void setValue(final String value){
  this.value=Objects.requireNonNull(value);
}
Program: 13853
Project: 13853
Buggy source:
/** 
 * {@inheritDoc}
 */
@Override public final Object getObject(){
  return _object;
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}
 */
@Override public Object getObject(){
  return _object;
}
Program: 13854
Project: 13854
Buggy source:
/** 
 * {@inheritDoc}
 */
@Override public final String getString(){
  return _string;
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}
 */
@Override public String getString(){
  return _string;
}
Program: 13855
Project: 13855
Buggy source:
/** 
 * Constructs a prelimiary Clazz instance from a configuration with only a few values such as name specificed in advanced. After constructing the instance, the various setters must be used to finish initialization.
 * @param configuration The configuration of how generated code should look.
 * @param qualifiedClassName The full name of the class that should be generated.
 * @param qualifiedMaster The fill name of the item this class was generated from.
 * @param javaDoc JavaDoc if any.
 * @param fileHeaderText Text to output as header for file(s).
 * @param helperFactoryMethod Method that can generate helper types for this class.
 * @param noType Helper type that represents no-type.
 * @throws Exception Exception if could not construct clazz.
 */
public Clazz(Configuration configuration,String qualifiedClassName,String qualifiedMaster,String javaDoc,String fileHeaderText,ThrowingFunction<BasicClazz,HelperTypes> helperFactoryMethod,NoType noType) throws Exception {
  super(null,configuration,qualifiedClassName,helperFactoryMethod,noType);
  super.clazzUsingType=this;
  this.qualifiedMaster=qualifiedMaster;
  this.interfaceTypes=new ArrayList<Type>();
  this.baseClazzType=noType;
  this.javaDoc=Objects.requireNonNull(javaDoc);
  this.fileHeaderText=Objects.requireNonNull(fileHeaderText);
  this.importTypes=new ArrayList<Type>();
  this.modifiers=EnumSet.noneOf(Modifier.class);
}

Fixed version (ground truth):
/** 
 * Constructs a prelimiary Clazz instance from a configuration with only a few values such as name specificed in advanced. After constructing the instance, the various setters must be used to finish initialization.
 * @param configuration The configuration of how generated code should look.
 * @param qualifiedClassName The full name of the class that should be generated.
 * @param qualifiedMaster The fill name of the item this class was generated from.
 * @param javaDoc JavaDoc if any.
 * @param fileHeaderText Text to output as header for file(s).
 * @param helperFactoryMethod Method that can generate helper types for this class.
 * @throws Exception Exception if could not construct clazz.
 */
public Clazz(Configuration configuration,String qualifiedClassName,String qualifiedMaster,String javaDoc,String fileHeaderText,ThrowingFunction<BasicClazz,HelperTypes> helperFactoryMethod) throws Exception {
  super(null,configuration,qualifiedClassName,helperFactoryMethod);
  super.clazzUsingType=this;
  this.qualifiedMaster=qualifiedMaster;
  this.interfaceTypes=new ArrayList<Type>();
  this.baseClazzType=null;
  this.javaDoc=Objects.requireNonNull(javaDoc);
  this.fileHeaderText=Objects.requireNonNull(fileHeaderText);
  this.importTypes=new ArrayList<Type>();
  this.modifiers=EnumSet.noneOf(Modifier.class);
}
Program: 13856
Project: 13856
Buggy source:
@Override public String toString(int level){
  StringBuilder sb=new StringBuilder();
  sb.append("String_Node_Str" + Integer.toHexString(System.identityHashCode(this)));
  if (level < MAX_RECURSIVE_LEVEL)   sb.append("String_Node_Str" + name + "String_Node_Str"+ type.getPrototypicalName()+ "String_Node_Str"+ properties.stream().map(p -> p.name).collect(Collectors.joining("String_Node_Str"))+ "String_Node_Str"+ declaredModifiers+ "String_Node_Str"+ getModifiers()+ "String_Node_Str"+ isMutable()+ "String_Node_Str");
  sb.append("String_Node_Str");
  return sb.toString();
}

Fixed version (ground truth):
@Override public String toString(int level){
  StringBuilder sb=new StringBuilder();
  sb.append("String_Node_Str" + Integer.toHexString(System.identityHashCode(this)));
  if (level < MAX_RECURSIVE_LEVEL)   sb.append("String_Node_Str" + name + "String_Node_Str"+ type.getPrototypicalName()+ "String_Node_Str"+ clazz.getName()+ "String_Node_Str"+ properties.stream().map(p -> p.name).collect(Collectors.joining("String_Node_Str"))+ "String_Node_Str"+ declaredModifiers+ "String_Node_Str"+ getModifiers()+ "String_Node_Str"+ isMutable()+ "String_Node_Str");
  sb.append("String_Node_Str");
  return sb.toString();
}
Program: 13857
Project: 13857
Buggy source:
/** 
 * Nb. Post-constructor for what this type is based on such as supertypes. This method must be called for the type to be fully initialized. Nb. Subclasses of this class may require additional post-constructors to be called. Must be called only once.
 * @param baseClazzType Base class of this type if any (NoType if no base class exist).
 * @param interfaceTypes Direct super-interfaces of this type.
 * @param superTypesWithAncestors All ancestor interfaces of this type.
 * @param genericTypeArguments Generic arguments of this type.
 */
public void initType(Type baseClazzType,List<Type> interfaceTypes,Set<Type> superTypesWithAncestors,List<Type> genericTypeArguments){
}

Fixed version (ground truth):
/** 
 * Nb. Post-constructor for what this type is based on such as supertypes. This method must be called for the type to be fully initialized. Nb. Subclasses of this class may require additional post-constructors to be called. Must be called only once.
 * @param baseClazzType Base class of this type if any (NoType if no base class exist).
 * @param interfaceTypes Direct super-interfaces of this type.
 * @param superTypesWithAncestors All ancestor interfaces of this type.
 * @param genericTypeArguments Generic arguments of this type.
 */
public void initType(ObjectType baseClazzType,List<Type> interfaceTypes,Set<Type> superTypesWithAncestors,List<Type> genericTypeArguments){
}
Program: 13858
Project: 13858
Buggy source:
public Type getBaseClazzType(){
}

Fixed version (ground truth):
public ObjectType getBaseClazzType(){
}
Program: 13859
Project: 13859
Buggy source:
private ObjectType(BasicClazz clazzUsingType,String qualifiedProtoTypicalTypeName,Type baseClazz,List<Type> superInterfaces,Set<Type> superTypesWithAncestors,List<Type> genericTypeArguments){
  super(clazzUsingType,qualifiedProtoTypicalTypeName);
  this.genericTypeArguments=genericTypeArguments;
  this.baseClazzType=Objects.requireNonNull(baseClazz);
  this.interfaceTypes=Objects.requireNonNull(superInterfaces);
  this.superTypesWithAscendants=Objects.requireNonNull(superTypesWithAncestors);
}

Fixed version (ground truth):
private ObjectType(BasicClazz clazzUsingType,String qualifiedProtoTypicalTypeName,ObjectType baseClazz,List<Type> superInterfaces,Set<Type> superTypesWithAncestors,List<Type> genericTypeArguments){
  super(clazzUsingType,qualifiedProtoTypicalTypeName);
  this.genericTypeArguments=genericTypeArguments;
  this.baseClazzType=baseClazz;
  this.interfaceTypes=Objects.requireNonNull(superInterfaces);
  this.superTypesWithAscendants=Objects.requireNonNull(superTypesWithAncestors);
}
Program: 13860
Project: 13860
Buggy source:
@Override public String toString(int level){
  StringBuilder sb=new StringBuilder();
  sb.append("String_Node_Str" + Integer.toHexString(System.identityHashCode(this)));
  if (level < MAX_RECURSIVE_LEVEL)   sb.append("String_Node_Str" + initialized() + "String_Node_Str"+ qualifiedProtoTypicalTypeName+ "String_Node_Str"+ getName()+ "String_Node_Str"+ ToStringUtil.toString(genericTypeArguments,"String_Node_Str",level + 1)+ "String_Node_Str"+ baseClazzType.toString(level + 1)+ "String_Node_Str"+ ToStringUtil.toString(interfaceTypes,"String_Node_Str",level + 1));
  sb.append("String_Node_Str");
  return sb.toString();
}

Fixed version (ground truth):
@Override public String toString(int level){
  StringBuilder sb=new StringBuilder();
  sb.append("String_Node_Str" + Integer.toHexString(System.identityHashCode(this)));
  if (level < MAX_RECURSIVE_LEVEL)   sb.append("String_Node_Str" + initialized() + "String_Node_Str"+ qualifiedProtoTypicalTypeName+ "String_Node_Str"+ getName()+ "String_Node_Str"+ ToStringUtil.toString(genericTypeArguments,"String_Node_Str",level + 1)+ System.lineSeparator()+ "String_Node_Str"+ baseClazzType.toString(level + 1)+ "String_Node_Str"+ ToStringUtil.toString(interfaceTypes,System.lineSeparator(),level + 1));
  sb.append("String_Node_Str");
  return sb.toString();
}
Program: 13861
Project: 13861
Buggy source:
public static <T>T createInstanceUsingFactory(Class<T> clazz) throws InstantiationException, IllegalAccessException, IllegalArgumentException, InvocationTargetException {
  Method mostCompleteFactoryMethod=Arrays.stream(clazz.getMethods()).filter(m -> m.getName().equals(ConfigurationDefaults.factoryMethodName) && Modifier.isStatic(m.getModifiers())).max((a,b) -> Integer.compare(a.getParameterCount(),b.getParameterCount())).get();
  Parameter[] parameters=mostCompleteFactoryMethod.getParameters();
  Object[] args=new Object[parameters.length];
  for (int i=0; i < parameters.length; ++i) {
    args[i]=getTestValue(parameters[i].getType());
  }
  return (T)mostCompleteFactoryMethod.invoke(null,args);
}

Fixed version (ground truth):
@SuppressWarnings("String_Node_Str") public static <T>T createInstanceUsingFactory(Class<T> clazz) throws InstantiationException, IllegalAccessException, IllegalArgumentException, InvocationTargetException {
  Method mostCompleteFactoryMethod=Arrays.stream(clazz.getMethods()).filter(m -> m.getName().equals(ConfigurationDefaults.factoryMethodName) && Modifier.isStatic(m.getModifiers())).max((a,b) -> Integer.compare(a.getParameterCount(),b.getParameterCount())).get();
  Parameter[] parameters=mostCompleteFactoryMethod.getParameters();
  Object[] args=new Object[parameters.length];
  for (int i=0; i < parameters.length; ++i) {
    args[i]=getTestValue(parameters[i].getType());
  }
  return (T)mostCompleteFactoryMethod.invoke(null,args);
}
Program: 13862
Project: 13862
Buggy source:
public DelegateConstructor(BasicClazz clazz,Type declaringType,Type returnType,List<Parameter> parameters,List<Type> thrownTypes,String javaDoc,EnumSet<Modifier> declaredModifiers,ImplementationInfo implementationInfo,Constructor delegateMethod){
  super(clazz,declaringType,returnType,parameters,thrownTypes,javaDoc,declaredModifiers,implementationInfo);
  this.delegateConstructor=Objects.requireNonNull(delegateMethod);
}

Fixed version (ground truth):
public DelegateConstructor(BasicClazz clazz,Type declaringType,Type returnType,List<Parameter> parameters,List<Type> thrownTypes,String javaDoc,EnumSet<Modifier> declaredModifiers,EnumSet<Modifier> modifiers,ImplementationInfo implementationInfo,Constructor delegateMethod){
  super(clazz,declaringType,returnType,parameters,thrownTypes,javaDoc,declaredModifiers,modifiers,implementationInfo);
  this.delegateConstructor=Objects.requireNonNull(delegateMethod);
}
Program: 13863
Project: 13863
Buggy source:
public Method(BasicClazz clazz,Type declaringType,String methodName,Type returnType,List<Parameter> parameters,List<Type> thrownTypes,String javaDoc,EnumSet<Modifier> declaredModifiers,EnumSet<Modifier> modifiers,ImplementationInfo implementationInfo,TemplateKind templateKind){
  super(clazz,methodName,declaredModifiers);
  this.declaringType=Objects.requireNonNull(declaringType);
  this.parameters=Objects.requireNonNull(parameters);
  this.thrownTypes=Objects.requireNonNull(thrownTypes);
  this.javaDoc=Objects.requireNonNull(javaDoc);
  this.returnType=Objects.requireNonNull(returnType);
  this.modifiers=modifiers;
  this.implementationInfo=implementationInfo;
switch (templateKind) {
case TYPED:
    this.templateName=STUtil.getTypedTemplateName(name,parameters.stream().map(p -> p.getErasedType().getQualifiedName()));
  break;
case UNTYPED:
this.templateName=STUtil.getUnTypedTemplateName(name);
break;
case CONSTRUCTOR:
this.templateName=STUtil.getConstructorTemplateName(methodName);
break;
case PROPERTY:
this.templateName=STUtil.getPropertyTemplateName(methodName);
break;
default :
throw new IllegalArgumentException("String_Node_Str" + templateKind);
}
}

Fixed version (ground truth):
public Method(BasicClazz clazz,Type declaringType,String methodName,Type returnType,List<Parameter> parameters,List<Type> thrownTypes,String javaDoc,EnumSet<Modifier> declaredModifiers,EnumSet<Modifier> modifiers,ImplementationInfo implementationInfo,TemplateKind templateKind){
  super(clazz,methodName,declaredModifiers);
  this.declaringType=Objects.requireNonNull(declaringType);
  this.parameters=Objects.requireNonNull(parameters);
  this.thrownTypes=Objects.requireNonNull(thrownTypes);
  this.javaDoc=Objects.requireNonNull(javaDoc);
  this.returnType=Objects.requireNonNull(returnType);
  this.modifiers=modifiers;
  this.implementationInfo=implementationInfo;
  this.overriddenByMethod=Optional.empty();
  this.overridesMethod=Optional.empty();
switch (templateKind) {
case TYPED:
    this.templateName=STUtil.getTypedTemplateName(name,parameters.stream().map(p -> p.getErasedType().getQualifiedName()));
  break;
case UNTYPED:
this.templateName=STUtil.getUnTypedTemplateName(name);
break;
case CONSTRUCTOR:
this.templateName=STUtil.getConstructorTemplateName(methodName);
break;
case PROPERTY:
this.templateName=STUtil.getPropertyTemplateName(methodName);
break;
default :
throw new IllegalArgumentException("String_Node_Str" + templateKind);
}
}
Program: 13864
Project: 13864
Buggy source:
@Override public String toString(int level){
  StringBuilder sb=new StringBuilder();
  String name=isConstructor() ? "String_Node_Str" : "String_Node_Str";
  sb.append(name + "String_Node_Str" + Integer.toHexString(System.identityHashCode(this)));
  if (level < MAX_RECURSIVE_LEVEL)   sb.append("String_Node_Str" + declaringType.getName() + "String_Node_Str"+ getName()+ "String_Node_Str"+ parameters.stream().map(t -> t.toString(level + 1)).collect(Collectors.joining("String_Node_Str" + System.lineSeparator()))+ "String_Node_Str"+ "String_Node_Str"+ returnType.getPrototypicalName()+ "String_Node_Str"+ thrownTypes.stream().map(t -> t.getPrototypicalName()).collect(Collectors.joining("String_Node_Str" + System.lineSeparator()))+ "String_Node_Str"+ "String_Node_Str"+ declaredModifiers+ "String_Node_Str"+ modifiers+ "String_Node_Str"+ implementationInfo+ "String_Node_Str");
  sb.append("String_Node_Str");
  return sb.toString();
}

Fixed version (ground truth):
@Override public String toString(int level){
  StringBuilder sb=new StringBuilder();
  String name=isConstructor() ? "String_Node_Str" : "String_Node_Str";
  sb.append(name + "String_Node_Str" + Integer.toHexString(System.identityHashCode(this)));
  if (level < MAX_RECURSIVE_LEVEL)   sb.append("String_Node_Str" + declaringType.getName() + "String_Node_Str"+ getName()+ "String_Node_Str"+ parameters.stream().map(t -> t.toString(level + 1)).collect(Collectors.joining("String_Node_Str" + System.lineSeparator()))+ "String_Node_Str"+ "String_Node_Str"+ returnType.getPrototypicalName()+ "String_Node_Str"+ thrownTypes.stream().map(t -> t.getPrototypicalName()).collect(Collectors.joining("String_Node_Str" + System.lineSeparator()))+ "String_Node_Str"+ "String_Node_Str"+ this.isOverridden()+ "String_Node_Str"+ declaredModifiers+ "String_Node_Str"+ modifiers+ "String_Node_Str"+ implementationInfo+ "String_Node_Str");
  sb.append("String_Node_Str");
  return sb.toString();
}
Program: 13865
Project: 13865
Buggy source:
public void setImplementationInfo(ImplementationInfo implementationInfo){
  this.implementationInfo=implementationInfo;
}

Fixed version (ground truth):
public void setImplementationInfo(ImplementationInfo implementationInfo){
  this.implementationInfo=Objects.requireNonNull(implementationInfo);
}
Program: 13866
Project: 13866
Buggy source:
public String outputClass() throws Exception {
  lastException=null;
  String result=null;
  STGroup.verbose=LOGGER.isLoggable(Level.FINE);
  STGroup.trackCreationEvents=cfg.isDebugStringTemplatesEnabled();
  STGroup group=stTemplates.getSTGroup();
  group.registerModelAdaptor(Model.class,new STCustomModelAdaptor());
  group.registerRenderer(Date.class,new STISODateRender());
  group.setListener(new ErrorListener());
  ST st=group.getInstanceOf(mainTemplate);
  try {
    st.add(mainTemplateArg,Objects.requireNonNull(clazz));
  }
 catch (  Exception e) {
    throw new STException("String_Node_Str",e);
  }
  result=st.render(Objects.requireNonNull(cfg).getLocale(),cfg.getLineWidth());
  if (result == null)   throw new STException("String_Node_Str");
  Exception exception=lastException;
  if (exception != null)   throw exception;
  if (cfg.isDebugStringTemplatesEnabled()) {
    LOGGER.warning(() -> "String_Node_Str");
    STViz viz=st.inspect();
    viz.waitForClose();
  }
  return result;
}

Fixed version (ground truth):
public String outputClass() throws Exception {
  lastException=null;
  String result=null;
  STGroup group=stTemplates.getSTGroup();
  stTemplates.exceptions().clear();
  group.registerModelAdaptor(Model.class,new STCustomModelAdaptor());
  group.registerRenderer(Date.class,new STISODateRender());
  ST st=group.getInstanceOf(mainTemplate);
  try {
    st.add(mainTemplateArg,Objects.requireNonNull(clazz));
  }
 catch (  Exception e) {
    throw new STException("String_Node_Str",e);
  }
  result=st.render(Objects.requireNonNull(cfg).getLocale(),cfg.getLineWidth());
  if (!stTemplates.exceptions().isEmpty())   throw stTemplates.exceptions().getFirst();
  if (result == null)   throw new STException("String_Node_Str");
  if (cfg.isDebugStringTemplatesEnabled()) {
    LOGGER.warning(() -> "String_Node_Str");
    STViz viz=st.inspect();
    viz.waitForClose();
  }
  return result;
}
Program: 13867
Project: 13867
Buggy source:
public STTemplates(ResourceLoader resourceLoader,Configuration cfg) throws Exception {
  STGroup defaultGroup=new STGroupFile(mainTemplateFile,delimiterStartChar,delimiterStopChar);
  String customTemplateFileName=cfg.getCustomJavaTemplateFileName();
  if (customTemplateFileName != null) {
    URI uri=resourceLoader.getFileResourceAsURL(customTemplateFileName);
    URL url=uri.toURL();
    group=new STGroupFile(url,templateFilesEncoding,delimiterStartChar,delimiterStopChar);
    group.importTemplates(defaultGroup);
    LOGGER.info(() -> "String_Node_Str" + customTemplateFileName + "String_Node_Str"+ url.toString());
  }
 else {
    group=defaultGroup;
  }
  Set<String> templateNames=getAllTemplateNames(group);
  templateMethodNames=Collections.unmodifiableSet(Collections.unmodifiableSet(templateNames.stream().filter(n -> n.startsWith(method_prefix)).map(n -> templateNameToMethodName(n)).collect(Collectors.toSet())));
  if (LOGGER.isLoggable(Level.FINE))   for (  String templateName : templateMethodNames)   LOGGER.fine("String_Node_Str" + templateName + "String_Node_Str");
}

Fixed version (ground truth):
public STTemplates(ResourceLoader resourceLoader,Configuration cfg) throws Exception {
  stExceptions=new ArrayDeque<STException>();
  STGroup.verbose=LOGGER.isLoggable(Level.FINE);
  STGroup.trackCreationEvents=cfg.isDebugStringTemplatesEnabled();
  STGroup defaultGroup=new STGroupFile(mainTemplateFile,delimiterStartChar,delimiterStopChar);
  String customTemplateFileName=cfg.getCustomJavaTemplateFileName();
  if (customTemplateFileName != null) {
    URI uri=resourceLoader.getFileResourceAsURL(customTemplateFileName);
    URL url=uri.toURL();
    group=new STGroupFile(url,templateFilesEncoding,delimiterStartChar,delimiterStopChar);
    group.importTemplates(defaultGroup);
    LOGGER.info(() -> "String_Node_Str" + customTemplateFileName + "String_Node_Str"+ url.toString());
  }
 else {
    group=defaultGroup;
  }
  group.setListener(myErrorListener);
  Set<String> templateNames=getAllTemplateNames(group);
  templateMethodNames=Collections.unmodifiableSet(Collections.unmodifiableSet(templateNames.stream().filter(n -> n.startsWith(method_prefix)).map(n -> templateNameToMethodName(n)).collect(Collectors.toSet())));
  if (LOGGER.isLoggable(Level.FINE))   for (  String templateName : templateMethodNames)   LOGGER.fine("String_Node_Str" + templateName + "String_Node_Str");
}
Program: 13870
Project: 13870
Buggy source:
private static String syntesisePropertyMemberName(ExecutableElement method){
  String name=method.getSimpleName().toString();
  int skip;
  if (name.startsWith("String_Node_Str"))   skip=2;
 else   if (name.startsWith("String_Node_Str") || name.startsWith("String_Node_Str"))   skip=3;
 else   skip=0;
  if (name.length() > skip)   name=name.substring(skip);
  name=Introspector.decapitalize(name);
  name=NamesUtil.makeSafeJavaIdentifier(name);
  return name;
}

Fixed version (ground truth):
private static String syntesisePropertyMemberName(String[] propertyPrefixes,ExecutableElement method){
  String name=method.getSimpleName().toString();
  int i=0;
  while (i < propertyPrefixes.length) {
    String prefix=propertyPrefixes[i++];
    int skip=prefix.length();
    if (name.startsWith(prefix) && name.length() > skip) {
      name=name.substring(skip);
      name=Introspector.decapitalize(name);
      name=NamesUtil.makeSafeJavaIdentifier(name);
      return name;
    }
  }
  return name;
}
Program: 13871
Project: 13871
Buggy source:
@Override public synchronized void onResumeGame(){
  if (ResourcesManager.getInstance().settingsService.isMute()) {
    ResourcesManager.getInstance().musicService.muteMusic();
  }
  if (!(mEngine.getScene() instanceof GameScene) && !(mEngine.getScene() instanceof ScoreScreen)) {
    ResourcesManager.getInstance().musicService.playMusic();
  }
  levelInfoDataSource.open();
  super.onResumeGame();
}

Fixed version (ground truth):
@Override public synchronized void onResumeGame(){
  if (ResourcesManager.getInstance().settingsService.isMute()) {
    ResourcesManager.getInstance().musicService.muteMusic();
  }
  if ((mEngine.getScene() instanceof MainMenuScene) || (mEngine.getScene() instanceof SettingsScene) || (mEngine.getScene() instanceof LevelChoiceScene)) {
    ResourcesManager.getInstance().musicService.playMusic();
  }
  levelInfoDataSource.open();
  super.onResumeGame();
}
Program: 13872
Project: 13872
Buggy source:
public JustPlayScore getBestJustPlayScore(){
  Cursor cursor=database.query(TABLE_SCORE,new String[]{COLUMN_SCORE_POINTS,COLUMN_SCORE_SOLVED_LEVELS},null,null,null,null,COLUMN_SCORE_POINTS + "String_Node_Str","String_Node_Str");
  if (cursor.getCount() == 0) {
    return null;
  }
  cursor.moveToFirst();
  return cursorToJustPlayScore(cursor);
}

Fixed version (ground truth):
public JustPlayScore getBestJustPlayScore(){
  Cursor cursor=database.query(TABLE_SCORE,new String[]{COLUMN_SCORE_POINTS,COLUMN_SCORE_SOLVED_LEVELS},null,null,null,null,COLUMN_SCORE_POINTS + "String_Node_Str","String_Node_Str");
  if (cursor.getCount() == 0) {
    return null;
  }
  cursor.moveToFirst();
  JustPlayScore justPlayScore=cursorToJustPlayScore(cursor);
  cursor.close();
  return justPlayScore;
}
Program: 13873
Project: 13873
Buggy source:
@Override public void onSolvedGame(){
  timeBasedGameService.stop();
  restartButton.setVisible(false);
  if (!leaveScene) {
    leaveScene=true;
    engine.registerUpdateHandler(new TimerHandler(1f,new ITimerCallback(){
      @Override public void onTimePassed(      TimerHandler pTimerHandler){
        engine.unregisterUpdateHandler(pTimerHandler);
        storyService.loadJustPlayScoreSceneFromJustPlayScene(new JustPlayLevelResult(timeBasedGameService.getRemainingTime(),gameService.getLevel().getMovesCount(),gameService.getLevel().getMinimumMovesToSolve()));
      }
    }
));
  }
}

Fixed version (ground truth):
@Override public void onSolvedGame(){
  timeBasedGameService.stop();
  restartButton.setVisible(false);
  if (!leaveScene) {
    restartButton.setEnabled(false);
    leaveScene=true;
    engine.registerUpdateHandler(new TimerHandler(1f,new ITimerCallback(){
      @Override public void onTimePassed(      TimerHandler pTimerHandler){
        engine.unregisterUpdateHandler(pTimerHandler);
        storyService.loadJustPlayScoreSceneFromJustPlayScene(new JustPlayLevelResult(timeBasedGameService.getRemainingTime(),gameService.getLevel().getMovesCount(),gameService.getLevel().getMinimumMovesToSolve()));
      }
    }
));
  }
}
Program: 13874
Project: 13874
Buggy source:
@Override public void onLostGame(){
  if (!leaveScene) {
    leaveScene=true;
    engine.registerUpdateHandler(new TimerHandler(1f,new ITimerCallback(){
      @Override public void onTimePassed(      TimerHandler pTimerHandler){
        engine.unregisterUpdateHandler(pTimerHandler);
        storyService.loadJustPlayScoreSceneFromJustPlayScene(new JustPlayLevelResult(-1,gameService.getLevel().getMovesCount(),gameService.getLevel().getMinimumMovesToSolve()));
      }
    }
));
  }
}

Fixed version (ground truth):
@Override public void onLostGame(){
  if (!leaveScene) {
    restartButton.setEnabled(false);
    leaveScene=true;
    engine.registerUpdateHandler(new TimerHandler(1f,new ITimerCallback(){
      @Override public void onTimePassed(      TimerHandler pTimerHandler){
        engine.unregisterUpdateHandler(pTimerHandler);
        storyService.loadJustPlayScoreSceneFromJustPlayScene(new JustPlayLevelResult(-1,gameService.getLevel().getMovesCount(),gameService.getLevel().getMinimumMovesToSolve()));
      }
    }
));
  }
}
Program: 13875
Project: 13875
Buggy source:
public JustPlayGameScene(TimeBasedGameService timeBasedGameService,JustPlayLevel justPlayLevel){
  super(justPlayLevel.getLevel());
  this.justPlayLevel=justPlayLevel;
  leaveScene=false;
  this.timeBasedGameService=timeBasedGameService;
  timeBasedGameService.attach(this);
  leftTime.setText(String.valueOf(justPlayLevel.getLeftTime()));
}

Fixed version (ground truth):
public JustPlayGameScene(TimeBasedGameService timeBasedGameService,JustPlayLevel justPlayLevel){
  super(justPlayLevel.getLevel());
  this.justPlayLevel=justPlayLevel;
  leaveScene=false;
  this.timeBasedGameService=timeBasedGameService;
  timeBasedGameService.attach(this);
  leftTime.setText(String.valueOf(justPlayLevel.getLeftTime()));
  checkRestartedLevel(timeBasedGameService);
}
Program: 13876
Project: 13876
Buggy source:
void shiftLine(boolean horizontal,int row,int steps);

Fixed version (ground truth):
void shiftLine(boolean horizontal,int row,int steps,boolean silent);
Program: 13877
Project: 13877
Buggy source:
private void notifyAllObserver(){
  for (  GameSceneObserver observer : observers) {
    observer.updateGameScene();
  }
}

Fixed version (ground truth):
@Override public void notifyAllObserver(){
  for (  GameSceneObserver observer : observers) {
    observer.updateGameScene();
  }
}