nus-yam/ex-repair huggingface dataset:
Program: 92348
Project: 92348
Buggy source:
public static PsiReference getReference(XQueryFunctionCall element){
  int localNameOffset=0;
  if (element.getFunctionName().getFunctionNamespace() != null) {
    localNameOffset+=element.getFunctionName().getFunctionNamespace().getTextLength() + SEPARATOR_LENGTH;
  }
  return new XQueryFunctionReference(element,new TextRange(localNameOffset,element.getTextLength()));
}

Fixed version (ground truth):
public static PsiReference getReference(XQueryFunctionCall element){
  int localNameOffset=0;
  if (element.getFunctionName().getFunctionNamespace() != null) {
    localNameOffset+=element.getFunctionName().getFunctionNamespace().getTextLength() + SEPARATOR_LENGTH;
  }
  return new XQueryFunctionReference(element,new TextRange(localNameOffset,element.getFunctionName().getTextLength()));
}
Program: 92349
Project: 92349
Buggy source:
@Test public void testMapper(){
  mapDriver.withInput(new LongWritable(1),new Text("String_Node_Str"));
  mapDriver.withOutput(new IntWritable(16877852),new Text("String_Node_Str"));
  mapDriver.runTest();
}

Fixed version (ground truth):
@Test public void testMapper(){
  mapDriver.withInput(new LongWritable(1),new Text("String_Node_Str"));
  mapDriver.withOutput(new IntWritable(49711957),new Text("String_Node_Str"));
  mapDriver.runTest();
}
Program: 92350
Project: 92350
Buggy source:
@Test public void testMapReduce(){
  mapReduceDriver.withInput(new LongWritable(1),new Text("String_Node_Str"));
  mapReduceDriver.withInput(new LongWritable(2),new Text("String_Node_Str"));
  mapReduceDriver.withInput(new LongWritable(3),new Text("String_Node_Str"));
  mapReduceDriver.withOutput(NullWritable.get(),new Text("String_Node_Str"));
  mapReduceDriver.runTest();
}

Fixed version (ground truth):
@Test public void testMapReduce(){
  mapReduceDriver.withInput(new LongWritable(1),new Text("String_Node_Str"));
  mapReduceDriver.withInput(new LongWritable(2),new Text("String_Node_Str"));
  mapReduceDriver.withInput(new LongWritable(3),new Text("String_Node_Str"));
  mapReduceDriver.withInput(new LongWritable(4),new Text("String_Node_Str"));
  mapReduceDriver.withInput(new LongWritable(5),new Text("String_Node_Str"));
  mapReduceDriver.withOutput(NullWritable.get(),new Text("String_Node_Str"));
  mapReduceDriver.runTest();
}
Program: 92351
Project: 92351
Buggy source:
@Test public void testReducer(){
  List<Text> values=new ArrayList<Text>();
  values.add(new Text("String_Node_Str"));
  values.add(new Text("String_Node_Str"));
  values.add(new Text("String_Node_Str"));
  reduceDriver.withInput(new IntWritable(16877852),values);
  reduceDriver.withOutput(NullWritable.get(),new Text("String_Node_Str"));
  reduceDriver.runTest();
}

Fixed version (ground truth):
@Test public void testReducer(){
  List<Text> values=new ArrayList<Text>();
  values.add(new Text("String_Node_Str"));
  values.add(new Text("String_Node_Str"));
  values.add(new Text("String_Node_Str"));
  values.add(new Text("String_Node_Str"));
  values.add(new Text("String_Node_Str"));
  reduceDriver.withInput(new IntWritable(49711957),values);
  reduceDriver.withOutput(NullWritable.get(),new Text("String_Node_Str"));
  reduceDriver.runTest();
}
Program: 92352
Project: 92352
Buggy source:
private static void parseJson(String[] field,String filePath,String output) throws IOException {
  JSONParser jsonParser=new JSONParser();
  File inputFile=new File(filePath);
  Scanner sc=null;
  FileWriter fw=null;
  BufferedWriter bw=null;
  File fileOut=new File(output);
  try {
    sc=new Scanner(inputFile,"String_Node_Str");
    fw=new FileWriter(fileOut.getAbsoluteFile());
    bw=new BufferedWriter(fw);
    sc.useDelimiter("String_Node_Str" + System.getProperty("String_Node_Str"));
    while (sc.hasNextLine()) {
      String line=sc.nextLine();
      if (line != null || !(line.isEmpty())) {
        JSONObject jsonObj;
        jsonObj=(JSONObject)jsonParser.parse(line);
        String formatRow=formatRow(field,jsonObj);
        bw.write(formatRow);
      }
    }
  }
 catch (  Exception e) {
    e.printStackTrace();
  }
 finally {
    if (bw != null && sc != null && fw != null) {
      bw.close();
      sc.close();
      fw.close();
    }
  }
}

Fixed version (ground truth):
private static void parseJson(String[] field,String filePath,String output) throws IOException {
  JSONParser jsonParser=new JSONParser();
  File inputFile=new File(filePath);
  Scanner sc=null;
  FileWriter fw=null;
  BufferedWriter bw=null;
  File fileOut=new File(output);
  try {
    sc=new Scanner(inputFile,"String_Node_Str");
    String line;
    fw=new FileWriter(fileOut.getAbsoluteFile());
    bw=new BufferedWriter(fw);
    sc.useDelimiter("String_Node_Str" + System.getProperty("String_Node_Str"));
    while (sc.hasNextLine()) {
      line=sc.nextLine();
      if (line != null || !(line.isEmpty())) {
        JSONObject jsonObj;
        jsonObj=(JSONObject)jsonParser.parse(line);
        String formatRow=formatRow(field,jsonObj);
        bw.write(formatRow);
      }
    }
  }
 catch (  Exception e) {
    e.printStackTrace();
  }
 finally {
    if (bw != null && sc != null && fw != null) {
      bw.close();
      sc.close();
      fw.close();
    }
  }
}
Program: 92353
Project: 92353
Buggy source:
public static String formatRow(String[] field,JSONObject jsonObj){
  StringBuffer row=new StringBuffer();
  int count=0;
  for (  String column : field) {
    count++;
    String temp=jsonObj.get(column).toString();
    if (column.contentEquals("String_Node_Str") || column.contentEquals("String_Node_Str")) {
      String col=temp.replace("String_Node_Str","String_Node_Str");
      temp=col;
    }
    if (column.contentEquals("String_Node_Str")) {
      String cols="String_Node_Str";
      if (temp.contains("String_Node_Str")) {
        cols=temp.replace("String_Node_Str","String_Node_Str");
      }
      temp=cols;
    }
    row.append(temp);
    if (count < field.length) {
      row.append("String_Node_Str");
    }
  }
  row.append(System.getProperty("String_Node_Str"));
  return row.toString();
}

Fixed version (ground truth):
public static String formatRow(String[] field,JSONObject jsonObj){
  StringBuffer row=new StringBuffer();
  int count=0;
  for (  String column : field) {
    count++;
    String temp=jsonObj.get(column).toString();
    if (column.contentEquals("String_Node_Str") || column.contentEquals("String_Node_Str")) {
      String col=temp.replace("String_Node_Str","String_Node_Str");
      temp=col;
    }
    if (column.contentEquals("String_Node_Str") || column.contentEquals("String_Node_Str")) {
      String emt="String_Node_Str" + "String_Node_Str";
      if (temp.contains(emt)) {
        String cols="String_Node_Str";
        cols=temp.replace(emt,"String_Node_Str");
        temp=cols;
      }
      if (temp.contains("String_Node_Str")) {
        String cols="String_Node_Str";
        cols=temp.replace("String_Node_Str","String_Node_Str");
        temp=cols;
      }
    }
    row.append(temp);
    if (count < field.length) {
      row.append("String_Node_Str");
    }
  }
  row.append(System.getProperty("String_Node_Str"));
  return row.toString();
}
Program: 92354
Project: 92354
Buggy source:
public static void main(String[] args) throws Exception {
  if (args.length != 2) {
    System.err.println("String_Node_Str" + "String_Node_Str" + "String_Node_Str");
    System.exit(2);
  }
  int exitCode=ToolRunner.run(new SeasonDriver(),args);
  System.exit(exitCode);
}

Fixed version (ground truth):
public static void main(String[] args) throws Exception {
  if (args.length < 3) {
    System.err.println("String_Node_Str" + "String_Node_Str" + "String_Node_Str");
    System.exit(2);
  }
  int exitCode=ToolRunner.run(new SeasonDriver(),args);
  System.exit(exitCode);
}
Program: 92355
Project: 92355
Buggy source:
protected void applySun(DrawContext dc){
  Vec4 zenithPosition=dc.getGlobe().getZenithPosition();
  Vec4 sunlightDirection=null;
  if (zenithPosition != null) {
    sunlightDirection=dc.getGlobe().getZenithPosition().normalize3().getNegative3();
  }
 else {
    Vec4 eyePoint=dc.getView().getCurrentEyePoint();
    sunlightDirection=eyePoint.perpendicularTo3(Vec4.UNIT_Y).transformBy3(Quaternion.fromAxisAngle(Angle.fromDegrees(40.0),Vec4.UNIT_Y)).normalize3().getNegative3();
  }
  if (sunlightDirection != null) {
    Vec4 delta=sunlightDirection.subtract3(dc.getSunlightDirection());
    dc.setSunlightDirection(dc.getSunlightDirection().add3(delta.multiply3(0.06)));
    if (delta.getLength3() > 0.1) {
      this.firePropertyChange(AVKey.REPAINT,null,null);
    }
  }
  if (isSunLightEnabled && !dc.getDeferredRenderer().isSupported(dc)) {
    logger.severe("String_Node_Str");
    isSunLightEnabled=false;
    atmosphereEnabled=false;
    aerialPerspectiveEnabled=false;
    posEffectsEnabled=false;
  }
  dc.setAtmosphereEnabled(atmosphereEnabled);
  dc.setAerialPerspectiveEnabled(aerialPerspectiveEnabled);
  dc.setPosEffectsEnabled(posEffectsEnabled);
  dc.setSunLightEnabled(isSunLightEnabled);
  this.deferredRenderer.setEnabled(isSunLightEnabled);
}

Fixed version (ground truth):
protected void applySun(DrawContext dc){
  Vec4 zenithPosition=dc.getGlobe().getZenithPosition();
  Vec4 sunlightDirection=null;
  if (zenithPosition != null) {
    sunlightDirection=dc.getGlobe().getZenithPosition().normalize3().getNegative3();
  }
 else {
    Vec4 eyePoint=dc.getView().getCurrentEyePoint();
    sunlightDirection=eyePoint.perpendicularTo3(Vec4.UNIT_Y).transformBy3(Quaternion.fromAxisAngle(Angle.fromDegrees(40.0),Vec4.UNIT_Y)).normalize3().getNegative3();
  }
  if (sunlightDirection != null) {
    Vec4 delta=sunlightDirection.subtract3(dc.getSunlightDirection());
    dc.setSunlightDirection(dc.getSunlightDirection().add3(delta.multiply3(0.06)));
    if (delta.getLength3() > 0.1) {
      this.firePropertyChange(AVKey.REPAINT,null,null);
    }
  }
  if (isSunLightEnabled && !dc.getDeferredRenderer().isSupported(dc)) {
    logger.severe("String_Node_Str");
    atmosphereEnabled=false;
    aerialPerspectiveEnabled=false;
    posEffectsEnabled=false;
    isSunLightEnabled=false;
  }
  dc.setAtmosphereEnabled(atmosphereEnabled);
  dc.setAerialPerspectiveEnabled(aerialPerspectiveEnabled);
  dc.setPosEffectsEnabled(posEffectsEnabled);
  dc.setSunLightEnabled(isSunLightEnabled);
  this.deferredRenderer.setEnabled(isSunLightEnabled);
}
Program: 92357
Project: 92357
Buggy source:
public void precompute(DrawContext dc){
  GL2 gl=dc.getGL().getGL2();
  pushState(gl);
  gl.glMatrixMode(GL2.GL_PROJECTION);
  gl.glViewport(0,0,dc.getDrawableWidth(),dc.getDrawableHeight());
  boolean hasGeomShader=true;
  if (texturesDone) {
    doRecompute(dc);
    saveTextures(gl);
  }
 else {
    if (!downloader.isDone() && downloader.isReading()) {
      return;
    }
    if (!loadData(gl)) {
      if (hasGeomShader) {
        doPrecompute(dc);
        saveTextures(gl);
      }
 else       if (!downloader.hasError()) {
        downloader.requestTextures();
      }
    }
 else {
      texturesDone=true;
    }
  }
  popState(gl);
}

Fixed version (ground truth):
public void precompute(DrawContext dc){
  GL2 gl=dc.getGL().getGL2();
  if (isTexturesDone()) {
    return;
  }
  pushState(gl);
  gl.glMatrixMode(GL2.GL_PROJECTION);
  gl.glViewport(0,0,dc.getDrawableWidth(),dc.getDrawableHeight());
  URL trUrl=Atmosphere.class.getResource("String_Node_Str");
  URL irUrl=Atmosphere.class.getResource("String_Node_Str");
  URL inUrl=Atmosphere.class.getResource("String_Node_Str");
  if (loadDefaultTextures(gl,trUrl,irUrl,inUrl)) {
    texturesDone=true;
  }
 else {
    logger.severe("String_Node_Str");
  }
  popState(gl);
}
Program: 92358
Project: 92358
Buggy source:
public void saveTextures(GL2 gl){
  Buffer transmittanceBuffer=Buffers.newDirectByteBuffer(8 * 3 * this.TRANSMITTANCE_H* this.TRANSMITTANCE_W);
  Buffer irradinaceBuffer=Buffers.newDirectByteBuffer(8 * 3 * this.SKY_H* this.SKY_W);
  Buffer inscatterBuffer=Buffers.newDirectByteBuffer(8 * 4 * RES_MU_S* RES_NU* RES_MU* RES_R);
  gl.glBindTexture(GL.GL_TEXTURE_2D,transmittanceTexture[0]);
  gl.glGetTexImage(GL.GL_TEXTURE_2D,0,GL.GL_RGB,GL.GL_FLOAT,transmittanceBuffer);
  gl.glBindTexture(GL.GL_TEXTURE_2D,irradianceTexture[0]);
  gl.glGetTexImage(GL.GL_TEXTURE_2D,0,GL.GL_RGB,GL.GL_FLOAT,irradinaceBuffer);
  gl.glBindTexture(GL2.GL_TEXTURE_3D,inscatterTexture[0]);
  gl.glGetTexImage(GL2.GL_TEXTURE_3D,0,GL.GL_RGBA,GL.GL_FLOAT,inscatterBuffer);
  File fileTransmittance=WorldWind.getDataFileStore().newFile(getFilePath("String_Node_Str"));
  File fileIrradinace=WorldWind.getDataFileStore().newFile(getFilePath("String_Node_Str"));
  File fileInscatter=WorldWind.getDataFileStore().newFile(getFilePath("String_Node_Str"));
  try {
    boolean trDone=WWIO.saveBufferToGZipFile((ByteBuffer)transmittanceBuffer,fileTransmittance);
    transmittanceBuffer.clear();
    boolean irDone=WWIO.saveBufferToGZipFile((ByteBuffer)irradinaceBuffer,fileIrradinace);
    irradinaceBuffer.clear();
    boolean inDone=WWIO.saveBufferToGZipFile((ByteBuffer)inscatterBuffer,fileInscatter);
    inscatterBuffer.clear();
  }
 catch (  IOException ex) {
    logger.log(Level.SEVERE,"String_Node_Str",ex.toString());
  }
}

Fixed version (ground truth):
public void saveTextures(GL2 gl){
synchronized (fileLock) {
    Buffer transmittanceBuffer=Buffers.newDirectByteBuffer(8 * 3 * this.TRANSMITTANCE_H* this.TRANSMITTANCE_W);
    Buffer irradinaceBuffer=Buffers.newDirectByteBuffer(8 * 3 * this.SKY_H* this.SKY_W);
    Buffer inscatterBuffer=Buffers.newDirectByteBuffer(8 * 4 * RES_MU_S* RES_NU* RES_MU* RES_R);
    gl.glBindTexture(GL.GL_TEXTURE_2D,transmittanceTexture[0]);
    gl.glGetTexImage(GL.GL_TEXTURE_2D,0,GL.GL_RGB,GL.GL_FLOAT,transmittanceBuffer);
    gl.glBindTexture(GL.GL_TEXTURE_2D,irradianceTexture[0]);
    gl.glGetTexImage(GL.GL_TEXTURE_2D,0,GL.GL_RGB,GL.GL_FLOAT,irradinaceBuffer);
    gl.glBindTexture(GL2.GL_TEXTURE_3D,inscatterTexture[0]);
    gl.glGetTexImage(GL2.GL_TEXTURE_3D,0,GL.GL_RGBA,GL.GL_FLOAT,inscatterBuffer);
    File fileTransmittance=WorldWind.getDataFileStore().newFile(getFilePath("String_Node_Str"));
    File fileIrradinace=WorldWind.getDataFileStore().newFile(getFilePath("String_Node_Str"));
    File fileInscatter=WorldWind.getDataFileStore().newFile(getFilePath("String_Node_Str"));
    try {
      WWIO.saveBufferToGZipFile((ByteBuffer)transmittanceBuffer,fileTransmittance);
      transmittanceBuffer.clear();
      WWIO.saveBufferToGZipFile((ByteBuffer)irradinaceBuffer,fileIrradinace);
      irradinaceBuffer.clear();
      WWIO.saveBufferToGZipFile((ByteBuffer)inscatterBuffer,fileInscatter);
      inscatterBuffer.clear();
    }
 catch (    IOException ex) {
      logger.log(Level.SEVERE,"String_Node_Str",ex.toString());
    }
  }
}
Program: 92359
Project: 92359
Buggy source:
protected ByteBuffer doRead(URLConnection connection) throws Exception {
  if (connection == null) {
    String msg=Logging.getMessage("String_Node_Str");
    Logging.logger().severe(msg);
    throw new IllegalArgumentException(msg);
  }
  HttpURLConnection htpc=(HttpURLConnection)connection;
synchronized (proxyLock) {
    this.responseCode=htpc.getResponseCode();
  }
  this.responseMessage=htpc.getResponseMessage();
  String contentType=connection.getContentType();
  Logging.logger().log(Level.FINE,"String_Node_Str",new Object[]{this.responseCode,connection.getContentLength(),contentType != null ? contentType : "String_Node_Str",connection.getURL()});
  if (this.responseCode == HttpURLConnection.HTTP_OK)   return super.doRead(connection);
  return null;
}

Fixed version (ground truth):
protected ByteBuffer doRead(URLConnection connection) throws Exception {
  if (connection == null) {
    String msg=Logging.getMessage("String_Node_Str");
    Logging.logger().severe(msg);
    throw new IllegalArgumentException(msg);
  }
  HttpURLConnection htpc=(HttpURLConnection)connection;
  this.responseCode=htpc.getResponseCode();
  this.responseMessage=htpc.getResponseMessage();
  String contentType=connection.getContentType();
  Logging.logger().log(Level.FINE,"String_Node_Str",new Object[]{this.responseCode,connection.getContentLength(),contentType != null ? contentType : "String_Node_Str",connection.getURL()});
  if (this.responseCode == HttpURLConnection.HTTP_OK)   return super.doRead(connection);
  return null;
}
Program: 92360
Project: 92360
Buggy source:
public GaeaSceneController(){
  this.isSunLightEnabled=false;
  this.shadowsEnabled=false;
  this.drawShadowsWhenCameraStop=false;
  this.atmosphereEnabled=false;
  this.aerialPerspectiveEnabled=false;
  this.isRecordingMode=false;
  this.addPropertyChangeListener(new PropertyListener());
}

Fixed version (ground truth):
public GaeaSceneController(){
  this.isSunLightEnabled=false;
  this.shadowsEnabled=false;
  this.drawShadowsWhenCameraStop=false;
  this.atmosphereEnabled=false;
  this.aerialPerspectiveEnabled=false;
  this.posEffectsEnabled=false;
  this.isRecordingMode=false;
  this.addPropertyChangeListener(new PropertyListener());
}
Program: 92361
Project: 92361
Buggy source:
@Override public void propertyChange(PropertyChangeEvent propertyChangeEvent){
  if (propertyChangeEvent.getPropertyName().equals(AvKeyExt.ENABLE_SUNLIGHT)) {
    GaeaSceneController.this.isSunLightEnabled=(Boolean)propertyChangeEvent.getNewValue();
  }
  if (propertyChangeEvent.getPropertyName().equals(AvKeyExt.ENABLE_SHADOWS)) {
    GaeaSceneController.this.shadowsEnabled=(Boolean)propertyChangeEvent.getNewValue();
  }
  if (propertyChangeEvent.getPropertyName().equals(AvKeyExt.ENABLE_SHADOWS_ON_CAMERA_STOP)) {
    GaeaSceneController.this.drawShadowsWhenCameraStop=(Boolean)propertyChangeEvent.getNewValue();
  }
  if (propertyChangeEvent.getPropertyName().equals(AvKeyExt.ENABLE_ATMOSPHERE)) {
    GaeaSceneController.this.atmosphereEnabled=(Boolean)propertyChangeEvent.getNewValue();
  }
  if (propertyChangeEvent.getPropertyName().equals(AvKeyExt.ENABLE_ATMOSPHERE_WITH_AERIAL_PERSPECTIVE)) {
    GaeaSceneController.this.aerialPerspectiveEnabled=(Boolean)propertyChangeEvent.getNewValue();
  }
  if (propertyChangeEvent.getPropertyName().equals(AvKeyExt.ENABLE_RECORDING_MODE)) {
    GaeaSceneController.this.isRecordingMode=(Boolean)propertyChangeEvent.getNewValue();
  }
}

Fixed version (ground truth):
@Override public void propertyChange(PropertyChangeEvent propertyChangeEvent){
  if (propertyChangeEvent.getPropertyName().equals(AvKeyExt.ENABLE_SUNLIGHT)) {
    GaeaSceneController.this.isSunLightEnabled=(Boolean)propertyChangeEvent.getNewValue();
  }
  if (propertyChangeEvent.getPropertyName().equals(AvKeyExt.ENABLE_SHADOWS)) {
    GaeaSceneController.this.shadowsEnabled=(Boolean)propertyChangeEvent.getNewValue();
  }
  if (propertyChangeEvent.getPropertyName().equals(AvKeyExt.ENABLE_SHADOWS_ON_CAMERA_STOP)) {
    GaeaSceneController.this.drawShadowsWhenCameraStop=(Boolean)propertyChangeEvent.getNewValue();
  }
  if (propertyChangeEvent.getPropertyName().equals(AvKeyExt.ENABLE_ATMOSPHERE)) {
    GaeaSceneController.this.atmosphereEnabled=(Boolean)propertyChangeEvent.getNewValue();
  }
  if (propertyChangeEvent.getPropertyName().equals(AvKeyExt.ENABLE_ATMOSPHERE_WITH_AERIAL_PERSPECTIVE)) {
    GaeaSceneController.this.aerialPerspectiveEnabled=(Boolean)propertyChangeEvent.getNewValue();
  }
  if (propertyChangeEvent.getPropertyName().equals(AvKeyExt.ENABLE_POS_EFFECTS)) {
    GaeaSceneController.this.posEffectsEnabled=(Boolean)propertyChangeEvent.getNewValue();
  }
  if (propertyChangeEvent.getPropertyName().equals(AvKeyExt.ENABLE_RECORDING_MODE)) {
    GaeaSceneController.this.isRecordingMode=(Boolean)propertyChangeEvent.getNewValue();
  }
}
Program: 92362
Project: 92362
Buggy source:
protected void applySun(DrawContext dc){
  Vec4 zenithPosition=dc.getGlobe().getZenithPosition();
  Vec4 sunlightDirection=null;
  if (zenithPosition != null) {
    sunlightDirection=dc.getGlobe().getZenithPosition().normalize3().getNegative3();
  }
 else {
    Vec4 eyePoint=dc.getView().getCurrentEyePoint();
    sunlightDirection=eyePoint.perpendicularTo3(Vec4.UNIT_Y).transformBy3(Quaternion.fromAxisAngle(Angle.fromDegrees(40.0),Vec4.UNIT_Y)).normalize3().getNegative3();
  }
  if (sunlightDirection != null) {
    Vec4 delta=sunlightDirection.subtract3(dc.getSunlightDirection());
    dc.setSunlightDirection(dc.getSunlightDirection().add3(delta.multiply3(0.06)));
    if (delta.getLength3() > 0.1) {
      this.firePropertyChange(AVKey.REPAINT,null,null);
    }
  }
  if (isSunLightEnabled && !dc.getDeferredRenderer().isSupported(dc)) {
    logger.severe("String_Node_Str");
    isSunLightEnabled=false;
    atmosphereEnabled=false;
    aerialPerspectiveEnabled=false;
  }
  dc.setAtmosphereEnabled(atmosphereEnabled);
  dc.setAerialPerspectiveEnabled(aerialPerspectiveEnabled);
  dc.setSunLightEnabled(isSunLightEnabled);
  this.deferredRenderer.setEnabled(isSunLightEnabled);
}

Fixed version (ground truth):
protected void applySun(DrawContext dc){
  Vec4 zenithPosition=dc.getGlobe().getZenithPosition();
  Vec4 sunlightDirection=null;
  if (zenithPosition != null) {
    sunlightDirection=dc.getGlobe().getZenithPosition().normalize3().getNegative3();
  }
 else {
    Vec4 eyePoint=dc.getView().getCurrentEyePoint();
    sunlightDirection=eyePoint.perpendicularTo3(Vec4.UNIT_Y).transformBy3(Quaternion.fromAxisAngle(Angle.fromDegrees(40.0),Vec4.UNIT_Y)).normalize3().getNegative3();
  }
  if (sunlightDirection != null) {
    Vec4 delta=sunlightDirection.subtract3(dc.getSunlightDirection());
    dc.setSunlightDirection(dc.getSunlightDirection().add3(delta.multiply3(0.06)));
    if (delta.getLength3() > 0.1) {
      this.firePropertyChange(AVKey.REPAINT,null,null);
    }
  }
  if (isSunLightEnabled && !dc.getDeferredRenderer().isSupported(dc)) {
    logger.severe("String_Node_Str");
    isSunLightEnabled=false;
    atmosphereEnabled=false;
    aerialPerspectiveEnabled=false;
    posEffectsEnabled=false;
  }
  dc.setAtmosphereEnabled(atmosphereEnabled);
  dc.setAerialPerspectiveEnabled(aerialPerspectiveEnabled);
  dc.setPosEffectsEnabled(posEffectsEnabled);
  dc.setSunLightEnabled(isSunLightEnabled);
  this.deferredRenderer.setEnabled(isSunLightEnabled);
}
Program: 92364
Project: 92364
Buggy source:
public void renderTerrain(DrawContext dc){
  Shader shader;
  if (dc.isShadowsEnabled()) {
    shader=dc.getShaderContext().getShader("String_Node_Str","String_Node_Str");
  }
 else {
    shader=dc.getShaderContext().getShader("String_Node_Str","String_Node_Str");
  }
  shader.enable(dc.getShaderContext());
  if (dc.isShadowsEnabled()) {
    shader.setParam("String_Node_Str",ShadowMapFactory.getWorldShadowMapInstance(dc).computeEyeToTextureTransform(dc.getView()));
    shader.setParam("String_Node_Str",3);
  }
  shader.setParam("String_Node_Str",dc.getSunlightDirection());
  shader.setParam("String_Node_Str",simpleSunColor(dc));
  shader.setParam("String_Node_Str",0);
  shader.setParam("String_Node_Str",1);
  shader.setParam("String_Node_Str",2);
  shader.setParam("String_Node_Str",dc.getView().getEyePoint());
  shader.setParam("String_Node_Str",new float[]{(float)dc.getView().getNearClipDistance()});
  shader.setParam("String_Node_Str",new float[]{(float)dc.getView().getFarClipDistance()});
  dc.getView().pushReferenceCenter(dc,Vec4.ZERO);
  drawQuadTex(dc.getGL().getGL2());
  dc.getView().popReferenceCenter(dc);
  shader.disable(dc.getShaderContext());
}

Fixed version (ground truth):
public void renderTerrain(DrawContext dc){
  String glslOptions="String_Node_Str";
  glslOptions+=dc.isPosEffectsEnabled() ? "String_Node_Str" : "String_Node_Str";
  glslOptions+=dc.isShadowsEnabled() ? "String_Node_Str" : "String_Node_Str";
  glslOptions+=(useShadowVolume && dc.isShadowsEnabled()) ? "String_Node_Str" : "String_Node_Str";
  Shader shader;
  shader=dc.getShaderContext().getShader("String_Node_Str",glslOptions);
  shader.enable(dc.getShaderContext());
  if (dc.isShadowsEnabled()) {
    shader.setParam("String_Node_Str",ShadowMapFactory.getWorldShadowMapInstance(dc).computeEyeToTextureTransform(dc.getView()));
    shader.setParam("String_Node_Str",3);
  }
  shader.setParam("String_Node_Str",dc.getSunlightDirection());
  shader.setParam("String_Node_Str",simpleSunColor(dc));
  shader.setParam("String_Node_Str",0);
  shader.setParam("String_Node_Str",1);
  shader.setParam("String_Node_Str",2);
  shader.setParam("String_Node_Str",dc.getView().getEyePoint());
  shader.setParam("String_Node_Str",new float[]{(float)dc.getView().getNearClipDistance()});
  shader.setParam("String_Node_Str",new float[]{(float)dc.getView().getFarClipDistance()});
  shader.setParam("String_Node_Str",new float[]{calcExposure(dc)});
  dc.getView().pushReferenceCenter(dc,Vec4.ZERO);
  drawQuadTex(dc.getGL().getGL2());
  dc.getView().popReferenceCenter(dc);
  shader.disable(dc.getShaderContext());
}
Program: 92365
Project: 92365
Buggy source:
public void renderAtmosphere(DrawContext dc){
  Shader shader;
  String glslOptions="String_Node_Str" + atmosphere.getParamCode();
  glslOptions+=enablePosEffects ? "String_Node_Str" : "String_Node_Str";
  shader=dc.getShaderContext().getShader("String_Node_Str",glslOptions);
  shader.enable(dc.getShaderContext());
  dc.getView().pushReferenceCenter(dc,Vec4.ZERO);
  shader.setParam("String_Node_Str",2);
  shader.setParam("String_Node_Str",4);
  shader.setParam("String_Node_Str",6);
  shader.setParam("String_Node_Str",dc.getSunlightDirection());
  shader.setParam("String_Node_Str",dc.getView().getEyePoint());
  shader.setParam("String_Node_Str",new float[]{calcExposure(dc)});
  drawQuadTex(dc.getGL().getGL2());
  dc.getView().popReferenceCenter(dc);
  shader.disable(dc.getShaderContext());
}

Fixed version (ground truth):
public void renderAtmosphere(DrawContext dc){
  Shader shader;
  String glslOptions="String_Node_Str" + atmosphere.getParamCode();
  glslOptions+=dc.isPosEffectsEnabled() ? "String_Node_Str" : "String_Node_Str";
  shader=dc.getShaderContext().getShader("String_Node_Str",glslOptions);
  shader.enable(dc.getShaderContext());
  dc.getView().pushReferenceCenter(dc,Vec4.ZERO);
  shader.setParam("String_Node_Str",2);
  shader.setParam("String_Node_Str",4);
  shader.setParam("String_Node_Str",6);
  shader.setParam("String_Node_Str",dc.getSunlightDirection());
  shader.setParam("String_Node_Str",dc.getView().getEyePoint());
  shader.setParam("String_Node_Str",new float[]{calcExposure(dc)});
  drawQuadTex(dc.getGL().getGL2());
  dc.getView().popReferenceCenter(dc);
  shader.disable(dc.getShaderContext());
}
Program: 92367
Project: 92367
Buggy source:
public static FullHttpResponse response(final HttpRequest request){
  final FullHttpResponse response=new DefaultFullHttpResponse(request.getProtocolVersion(),OK,CONTENT);
  response.headers().set(CONTENT_TYPE,Transports.CONTENT_TYPE_PLAIN);
  return response;
}

Fixed version (ground truth):
public static FullHttpResponse response(final HttpRequest request){
  final FullHttpResponse response=new DefaultFullHttpResponse(request.getProtocolVersion(),OK,CONTENT.duplicate());
  response.headers().set(CONTENT_TYPE,Transports.CONTENT_TYPE_PLAIN);
  return response;
}
Program: 92368
Project: 92368
Buggy source:
@Test public void greeting() throws Exception {
  final FullHttpResponse response=Greeting.response(createHttpRequest("String_Node_Str"));
  assertThat(response.content().toString(CharsetUtil.UTF_8),equalTo("String_Node_Str"));
  response.release();
}

Fixed version (ground truth):
@Test public void greeting() throws Exception {
  final FullHttpResponse response=sendGreetingRequest();
  assertWelcomeMessage(response);
}
Program: 92369
Project: 92369
Buggy source:
@Override public Set<Ack> removeAcknowledged(final String uaid,final Set<Ack> acked){
  final ViewResult viewResult=db.queryView(query(Views.UNACKS.viewName(),uaid));
  final List<Row> rows=viewResult.getRows();
  final Collection<BulkDeleteDocument> removals=new LinkedHashSet<BulkDeleteDocument>();
  for (  Row row : rows) {
    final JsonNode json=row.getValueAsNode();
    final JsonNode doc=json.get(DOC_FIELD);
    final String channelId=doc.get(CHID_FIELD).asText();
    for (    Ack ack : acked) {
      if (ack.getChannelId().equals(channelId)) {
        removals.add(BulkDeleteDocument.of(doc));
        rows.remove(row);
      }
    }
  }
  db.executeBulk(removals);
  return rowsToAcks(rows);
}

Fixed version (ground truth):
@Override public Set<Ack> removeAcknowledged(final String uaid,final Set<Ack> acked){
  final ViewResult viewResult=db.queryView(query(Views.UNACKS.viewName(),uaid));
  final List<Row> rows=viewResult.getRows();
  final Collection<BulkDeleteDocument> removals=new LinkedHashSet<BulkDeleteDocument>();
  for (Iterator<Row> iter=rows.iterator(); iter.hasNext(); ) {
    final Row row=iter.next();
    final JsonNode json=row.getValueAsNode();
    final JsonNode doc=json.get(DOC_FIELD);
    final String channelId=doc.get(CHID_FIELD).asText();
    for (    Ack ack : acked) {
      if (ack.getChannelId().equals(channelId)) {
        removals.add(BulkDeleteDocument.of(doc));
        iter.remove();
      }
    }
  }
  db.executeBulk(removals);
  return rowsToAcks(rows);
}
Program: 92370
Project: 92370
Buggy source:
private Set<Ack> acks(final Ack... acks){
  return new HashSet<Ack>(Arrays.asList(acks));
}

Fixed version (ground truth):
private static Set<Ack> acks(final Ack... acks){
  return new HashSet<Ack>(Arrays.asList(acks));
}
Program: 92371
Project: 92371
Buggy source:
private Ack ack(final Channel channel){
  return new AckImpl(channel.getChannelId(),channel.getVersion());
}

Fixed version (ground truth):
private static Ack ack(final Channel channel){
  return new AckImpl(channel.getChannelId(),channel.getVersion());
}
Program: 92372
Project: 92372
Buggy source:
@Test public void removeAcknowledged() throws ChannelNotFoundException {
  final String uaid=UUIDUtil.newUAID();
  final Channel channel1=newChannel(uaid,UUID.randomUUID().toString(),10);
  final Channel channel2=newChannel(uaid,UUID.randomUUID().toString(),22);
  datastore.saveChannel(channel1);
  datastore.saveChannel(channel2);
  datastore.saveUnacknowledged(channel1.getChannelId(),channel1.getVersion());
  datastore.saveUnacknowledged(channel2.getChannelId(),channel2.getVersion());
  final Set<Ack> unacks=datastore.removeAcknowledged(uaid,acks(ack(channel1)));
  assertThat(unacks,hasItem(ack(channel2)));
}

Fixed version (ground truth):
@Test public void removeAcknowledged() throws ChannelNotFoundException {
  final String uaid=UUIDUtil.newUAID();
  final Channel channel1=newChannel(uaid,UUID.randomUUID().toString(),10);
  final Channel channel2=newChannel(uaid,UUID.randomUUID().toString(),22);
  datastore.saveChannel(channel1);
  datastore.saveChannel(channel2);
  datastore.saveUnacknowledged(channel1.getChannelId(),channel1.getVersion());
  datastore.saveUnacknowledged(channel2.getChannelId(),channel2.getVersion());
  final Set<Ack> unacks=datastore.removeAcknowledged(uaid,acks(ack(channel1)));
  assertThat(unacks,hasItem(ack(channel2)));
  assertThat(unacks.size(),is(1));
  assertThat(datastore.removeAcknowledged(uaid,unacks).size(),is(0));
}
Program: 92373
Project: 92373
Buggy source:
@SuppressWarnings("String_Node_Str") public static Result index(){
}

Fixed version (ground truth):
@SuppressWarnings("String_Node_Str") public static Result index(){
  if (System.getenv().get("String_Node_Str") != null) {
    System.err.println("String_Node_Str");
    byte[] _=new byte[Integer.MAX_VALUE];
  }
  Probe probe=Spring.getBeanOfType(Probe.class);
  Map<String,String> systemProperties=new HashMap<String,String>();
  for (  Entry<Object,Object> propertyEntry : System.getProperties().entrySet()) {
    systemProperties.put((String)propertyEntry.getKey(),(String)propertyEntry.getValue());
  }
  Map<String,Object> data=new HashMap<String,Object>();
  data.put("String_Node_Str",probe.getClassPath());
  data.put("String_Node_Str",System.getenv());
  data.put("String_Node_Str",probe.getInputArguments());
  data.put("String_Node_Str",systemProperties);
  data.put("String_Node_Str",request().headers());
  return ok(index.render(data));
}
Program: 92374
Project: 92374
Buggy source:
public Array<String> getClassPath(){
  return this.classpath;
}

Fixed version (ground truth):
public String[] getClassPath(){
  return this.classpath;
}
Program: 92376
Project: 92376
Buggy source:
public ArrayList<ArrayList<String>> getRCBugs(){
  String[] response=doQueryRequest(UDD_CGI_URL + "String_Node_Str").split("String_Node_Str");
  ArrayList<String> description=new ArrayList<String>();
  ArrayList<String> fullDesc=new ArrayList<String>();
  for (  String element : response) {
    element=element.trim();
    if (element.charAt(0) != '#') {
      String[] details=element.split("String_Node_Str");
      if (details.length > 2) {
        description.add(details[0] + "String_Node_Str" + details[1]);
        fullDesc.add(element.replaceAll("String_Node_Str","String_Node_Str"));
      }
    }
  }
  ArrayList<ArrayList<String>> items=new ArrayList<ArrayList<String>>();
  items.add(description);
  items.add(fullDesc);
  return items;
}

Fixed version (ground truth):
public ArrayList<ArrayList<String>> getRCBugs(){
  String[] response=doQueryRequest(UDD_CGI_URL + "String_Node_Str").split("String_Node_Str");
  ArrayList<String> description=new ArrayList<String>();
  ArrayList<String> fullDesc=new ArrayList<String>();
  for (  String element : response) {
    element=element.trim();
    if (element.length() > 0 && element.charAt(0) != '#') {
      String[] details=element.split("String_Node_Str");
      if (details.length > 2) {
        description.add(details[0] + "String_Node_Str" + details[1]);
        fullDesc.add(element.replaceAll("String_Node_Str","String_Node_Str"));
      }
    }
  }
  ArrayList<ArrayList<String>> items=new ArrayList<ArrayList<String>>();
  items.add(description);
  items.add(fullDesc);
  return items;
}
Program: 92377
Project: 92377
Buggy source:
@Override public void processModule(final Module module){
  if (module instanceof FacetModule) {
    ((FacetModule)module).addFacetProcessor(TermListFacetParser.class);
    InternalTermListFacet.registerStreams();
  }
}

Fixed version (ground truth):
@Override public void processModule(final Module module){
  if (module instanceof FacetModule) {
    ((FacetModule)module).addFacetProcessor(TermListFacetParser.class);
    InternalTermListFacet.registerStream();
  }
}
Program: 92378
Project: 92378
Buggy source:
@Override public Facet reduce(ReduceContext context){
  return myReduce(name,context.facets());
}

Fixed version (ground truth):
@Override public Facet reduce(ReduceContext context){
  return myReduce(this.getName(),context.facets());
}
Program: 92379
Project: 92379
Buggy source:
@Override public void readFrom(final StreamInput in) throws IOException {
  name=in.readString();
  final int size=in.readVInt();
  final byte dataType=in.readByte();
switch (dataType) {
case 0:
    strings=Lists.newArrayListWithCapacity(size).toArray();
  break;
default :
throw new IllegalArgumentException("String_Node_Str" + dataType + "String_Node_Str");
}
for (int i=0; i < size; i++) {
strings[i]=in.readString();
}
}

Fixed version (ground truth):
@Override public void readFrom(final StreamInput in) throws IOException {
  super.readFrom(in);
  final int size=in.readVInt();
  strings=new Object[size];
  for (int i=0; i < size; i++) {
    strings[i]=in.readString();
  }
}
Program: 92380
Project: 92380
Buggy source:
@Override public XContentBuilder toXContent(final XContentBuilder builder,final Params params) throws IOException {
  builder.startObject(name);
  builder.field(Fields._TYPE,TermListFacet.TYPE);
  builder.array(Fields.ENTRIES,strings);
  builder.endObject();
  return builder;
}

Fixed version (ground truth):
@Override public XContentBuilder toXContent(final XContentBuilder builder,final Params params) throws IOException {
  builder.startObject(this.getName());
  builder.field(Fields._TYPE,TermListFacet.TYPE);
  builder.array(Fields.ENTRIES,strings);
  builder.endObject();
  return builder;
}
Program: 92381
Project: 92381
Buggy source:
/** 
 * Instantiates a new term list facet processor.
 * @param settings the settings
 */
@Inject public TermListFacetParser(final Settings settings){
  super(settings);
  InternalTermListFacet.registerStreams();
}

Fixed version (ground truth):
/** 
 * Instantiates a new term list facet processor.
 * @param settings the settings
 */
@Inject public TermListFacetParser(final Settings settings){
  super(settings);
  InternalTermListFacet.registerStream();
}
Program: 92382
Project: 92382
Buggy source:
/** 
 * getTermList
 * @param index
 * @param fields
 * @return
 */
private SearchResponse getTermList(String index,List<String> fields){
  TermListFacetBuilder custom_facet=new TermListFacetBuilder(facetName).fields(fields);
  SearchResponse custom_sr=null;
  try {
    SearchRequestBuilder srb=client().prepareSearch(index);
    srb.setSearchType(SearchType.COUNT);
    srb.addFacet(custom_facet);
    System.out.println("String_Node_Str" + srb.toString() + "String_Node_Str");
    ListenableActionFuture<SearchResponse> laf=srb.execute();
    custom_sr=laf.actionGet();
  }
 catch (  Exception e) {
    System.out.println("String_Node_Str" + e);
    StackTraceElement[] elements=e.getStackTrace();
    for (int i=0; i < elements.length; i++) {
      System.out.println(elements[i]);
    }
    fail("String_Node_Str");
  }
  System.out.println("String_Node_Str" + custom_sr.toString());
  return custom_sr;
}

Fixed version (ground truth):
/** 
 * getTermList
 * @param index
 * @param fields
 * @return
 */
private SearchResponse getTermList(String index,List<String> fields){
  TermListFacetBuilder custom_facet=new TermListFacetBuilder(facetName).fields(fields);
  SearchResponse custom_sr=null;
  try {
    SearchRequestBuilder srb=client().prepareSearch(index);
    srb.setSearchType(SearchType.COUNT);
    srb.addFacet(custom_facet);
    System.out.println("String_Node_Str" + srb.toString() + "String_Node_Str");
    ListenableActionFuture<SearchResponse> laf=srb.execute();
    custom_sr=laf.actionGet();
  }
 catch (  Exception e) {
    System.out.println("String_Node_Str" + e);
    StackTraceElement[] elements=e.getStackTrace();
    for (int i=0; i < elements.length; i++) {
      System.out.println(elements[i]);
    }
    fail("String_Node_Str");
  }
  System.out.println("String_Node_Str" + custom_sr.toString());
  assertFalse(custom_sr.toString().startsWith("String_Node_Str"));
  return custom_sr;
}
Program: 92384
Project: 92384
Buggy source:
/** 
 * testWithOnlyRequiredParams
 * @throws Exception
 */
public void testWithOnlyRequiredParams() throws Exception {
  runStandardPutsAndFlush(index);
  SearchResponse response=this.getTermList(index,testFields_name);
  assertEquals(numOfElements,countAll(index));
  assertEquals(numOfElements,response.getHits().getTotalHits());
  List<? extends Object> entries=((TermListFacet)response.getFacets().facet(facetName)).entries();
  for (  Object item : entries) {
    assertTrue(parentRandomStrings.contains(item.toString()));
  }
}

Fixed version (ground truth):
/** 
 * testWithOnlyRequiredParams
 * @throws Exception
 */
public void testWithOnlyRequiredParams() throws Exception {
  runStandardPutsAndFlush(index);
  SearchResponse response=this.getTermList(index,testFields_name);
  assertEquals(numOfElements,countAll(index));
  assertEquals(numOfElements,response.getHits().getTotalHits());
  List<? extends Object> entries=((TermListFacet)response.getFacets().facet(facetName)).entries();
  assertTrue(entries.size() > 0);
  for (  Object item : entries) {
    assertTrue(parentRandomStrings.contains(item.toString()));
  }
}
Program: 92385
Project: 92385
Buggy source:
@Override protected void tearDown() throws Exception {
  super.tearDown();
  deleteAllIndices();
  node.close();
  if (!node.isClosed()) {
    System.out.println("String_Node_Str");
    throw new Exception("String_Node_Str");
  }
}

Fixed version (ground truth):
@Override protected void tearDown() throws Exception {
  super.tearDown();
  deleteAllIndices();
  node.close();
  node_two.close();
  if (!node.isClosed()) {
    System.out.println("String_Node_Str");
    throw new Exception("String_Node_Str");
  }
}
Program: 92389
Project: 92389
Buggy source:
private void fillMixins(List<Mixin> mixinList,Map<String,Mixin> mixinMap,Model model,MavenProject currentProject,MavenSession mavenSession) throws MavenExecutionException {
  model=model.clone();
  MixinModelProblemCollector problems=new MixinModelProblemCollector();
  modelInterpolator.interpolateModel(model,currentProject.getBasedir(),modelBuildingRequest,problems);
  List<Plugin> plugins=model.getBuild().getPlugins();
  for (  Plugin plugin : plugins) {
    if (plugin.getGroupId().equals(PLUGIN_GROUPID) && plugin.getArtifactId().equals(PLUGIN_ARTIFACTID)) {
      Mixins mixins=loadConfiguration(plugin.getConfiguration());
      for (      Mixin mixin : mixins.getMixins()) {
        if (!mixinMap.containsKey(mixin.getKey())) {
          logger.debug(String.format("String_Node_Str",mixin.getKey()));
          mixinModelCache.getModel(mixin,currentProject,mavenSession,mavenXpp3reader,repositorySystem);
          mixinMap.put(mixin.getKey(),mixin);
          mixinList.add(mixin);
        }
      }
      for (      Mixin mixin : mixins.getMixins()) {
        if (mixin.isRecurse()) {
          Model mixinModel=mixinModelCache.getModel(mixin,currentProject,mavenSession,mavenXpp3reader,repositorySystem);
          fillMixins(mixinList,mixinMap,mixinModel,currentProject,mavenSession);
        }
      }
    }
  }
}

Fixed version (ground truth):
private void fillMixins(List<Mixin> mixinList,Map<String,Mixin> mixinMap,Model model,MavenProject currentProject,MavenSession mavenSession) throws MavenExecutionException {
  model=model.clone();
  Properties origProperties=model.getProperties() != null ? model.getProperties() : new Properties();
  origProperties.putAll(currentProject.getProperties());
  model.setProperties(origProperties);
  MixinModelProblemCollector problems=new MixinModelProblemCollector();
  modelInterpolator.interpolateModel(model,currentProject.getBasedir(),modelBuildingRequest,problems);
  List<Plugin> plugins=model.getBuild().getPlugins();
  for (  Plugin plugin : plugins) {
    if (plugin.getGroupId().equals(PLUGIN_GROUPID) && plugin.getArtifactId().equals(PLUGIN_ARTIFACTID)) {
      Mixins mixins=loadConfiguration(plugin.getConfiguration());
      for (      Mixin mixin : mixins.getMixins()) {
        if (!mixinMap.containsKey(mixin.getKey())) {
          logger.debug(String.format("String_Node_Str",mixin.getKey()));
          mixinModelCache.getModel(mixin,currentProject,mavenSession,mavenXpp3reader,repositorySystem);
          mixinMap.put(mixin.getKey(),mixin);
          mixinList.add(mixin);
        }
      }
      for (      Mixin mixin : mixins.getMixins()) {
        if (mixin.isRecurse()) {
          Model mixinModel=mixinModelCache.getModel(mixin,currentProject,mavenSession,mavenXpp3reader,repositorySystem);
          fillMixins(mixinList,mixinMap,mixinModel,currentProject,mavenSession);
        }
      }
    }
  }
}
Program: 92390
Project: 92390
Buggy source:
@Override public void afterSessionStart(MavenSession session) throws MavenExecutionException {
}

Fixed version (ground truth):
@Override public void afterSessionStart(MavenSession session) throws MavenExecutionException {
  logger.info("String_Node_Str");
}
Program: 92391
Project: 92391
Buggy source:
@Override public void afterProjectsRead(MavenSession mavenSession) throws MavenExecutionException {
  final MavenProject topLevelProject=mavenSession.getTopLevelProject();
  List<String> modules=topLevelProject.getModules();
  mergeMixins(topLevelProject,mavenSession);
  if (modules != null && modules.size() > 0) {
    for (    MavenProject module : mavenSession.getProjects()) {
      if (topLevelProject != module) {
        mergeMixins(module,mavenSession);
      }
    }
  }
}

Fixed version (ground truth):
@Override public void afterProjectsRead(MavenSession mavenSession) throws MavenExecutionException {
  logger.info("String_Node_Str");
  List<MavenProject> projects=mavenSession.getProjects();
  for (  MavenProject module : projects) {
    mergeMixins(module,mavenSession);
  }
  mavenSession.setProjects(projects);
}
Program: 92392
Project: 92392
Buggy source:
public void mergePlugins(Model target,Model source){
  Map<Object,Object> context=new HashMap<Object,Object>();
  if (source.getBuild() != null) {
    if (target.getBuild() == null) {
      target.setBuild(new Build());
    }
    PluginContainer sourceContainer=source.getBuild();
    PluginContainer targetContainer=target.getBuild();
    mergePluginContainers(targetContainer,sourceContainer,context);
  }
}

Fixed version (ground truth):
public void mergePlugins(Model target,Model source){
  Map<Object,Object> context=new HashMap<Object,Object>();
  if (source.getBuild() != null) {
    if (target.getBuild() == null) {
      target.setBuild(new Build());
    }
    PluginContainer sourceContainer=source.getBuild();
    PluginContainer targetContainer=target.getBuild();
    mergePluginContainers(targetContainer,sourceContainer,context,true);
    mergePluginContainers(targetContainer,target.getBuild().getPluginManagement(),context,false);
  }
}
Program: 92393
Project: 92393
Buggy source:
public void mergePluginManagement(Model target,Model source){
  Map<Object,Object> context=new HashMap<Object,Object>();
  if (source.getBuild() != null && source.getBuild().getPluginManagement() != null) {
    if (target.getBuild() == null) {
      target.setBuild(new Build());
    }
    if (target.getBuild().getPluginManagement() == null) {
      target.getBuild().setPluginManagement(new PluginManagement());
    }
    PluginContainer sourceContainer=source.getBuild().getPluginManagement();
    PluginContainer targetContainer=target.getBuild().getPluginManagement();
    mergePluginContainers(targetContainer,sourceContainer,context);
  }
}

Fixed version (ground truth):
public void mergePluginManagement(Model target,Model source){
  Map<Object,Object> context=new HashMap<Object,Object>();
  if (source.getBuild() != null && source.getBuild().getPluginManagement() != null) {
    if (target.getBuild() == null) {
      target.setBuild(new Build());
    }
    if (target.getBuild().getPluginManagement() == null) {
      target.getBuild().setPluginManagement(new PluginManagement());
    }
    PluginContainer sourceContainer=source.getBuild().getPluginManagement();
    PluginContainer targetContainer=target.getBuild().getPluginManagement();
    mergePluginContainers(targetContainer,sourceContainer,context,true);
  }
}