nus-yam/ex-repair huggingface dataset:
Program: 44241
Project: 44241
Buggy source:
public void Load(){
  String[] rs=context.LoadBaseline(this);
  String c="String_Node_Str" + (rs[1].matches("String_Node_Str") ? rs[1] : rs[1] + "String_Node_Str" + this.pvob);
  logger.debug("String_Node_Str" + c);
  String s="String_Node_Str" + (rs[2].matches("String_Node_Str") ? rs[2] : rs[2] + "String_Node_Str" + this.pvob);
  logger.debug("String_Node_Str" + s);
  this.component=(Component)UCMEntity.GetEntity(c);
  this.stream=(Stream)UCMEntity.GetEntity(s);
  this.plevel=GetPlevelFromString(rs[3]);
  this.user=rs[4];
  activities=new ArrayList<Activity>();
  this.loaded=true;
}

Fixed version (ground truth):
public void Load(){
  String[] rs=context.LoadBaseline(this);
  String c=(rs[1].matches("String_Node_Str") ? "String_Node_Str" : "String_Node_Str") + (rs[1].matches("String_Node_Str") ? rs[1] : rs[1] + "String_Node_Str" + this.pvob);
  logger.debug("String_Node_Str" + c);
  String s=(rs[2].matches("String_Node_Str") ? "String_Node_Str" : "String_Node_Str") + (rs[2].matches("String_Node_Str") ? rs[2] : rs[2] + "String_Node_Str" + this.pvob);
  logger.debug("String_Node_Str" + s);
  this.component=(Component)UCMEntity.GetEntity(c);
  this.stream=(Stream)UCMEntity.GetEntity(s);
  this.plevel=GetPlevelFromString(rs[3]);
  this.user=rs[4];
  activities=new ArrayList<Activity>();
  this.loaded=true;
}
Program: 44242
Project: 44242
Buggy source:
public boolean TagExists(String tagType,String tagID,UCMEntity entity){
  ArrayList<Tag> tags=context.ListTags(entity);
  for (  Tag t : tags) {
    t.Load();
    if (t.GetTagType().equals(t.GetTagType()) && t.GetTagID().equals(tagID)) {
      return true;
    }
  }
  return false;
}

Fixed version (ground truth):
public boolean TagExists(String tagType,String tagID,UCMEntity entity){
  ArrayList<Tag> tags=context.ListTags(entity);
  for (  Tag t : tags) {
    if (t.GetTagType().equals(t.GetTagType()) && t.GetTagID().equals(tagID)) {
      return true;
    }
  }
  return false;
}
Program: 44243
Project: 44243
Buggy source:
public Tag GetTag(String tagType,String tagID,UCMEntity entity){
  logger.debug(entity.toString());
  ArrayList<Tag> tags=context.ListTags(entity);
  for (  Tag t : tags) {
    t.Load();
    if (t.GetTagType().equals(t.GetTagType()) && t.GetTagID().equals(tagID)) {
      t.SetTagEntity(entity);
      return t;
    }
  }
  logger.log("String_Node_Str" + tagType + tagID+ "String_Node_Str");
  Tag tag=context.NewTag(tagType,tagID,entity,"String_Node_Str");
  return tag;
}

Fixed version (ground truth):
public Tag GetTag(String tagType,String tagID,UCMEntity entity){
  logger.debug(entity.toString());
  ArrayList<Tag> tags=context.ListTags(entity);
  for (  Tag t : tags) {
    if (t.GetTagType().equals(t.GetTagType()) && t.GetTagID().equals(tagID)) {
      t.SetTagEntity(entity);
      return t;
    }
  }
  logger.log("String_Node_Str" + tagType + tagID+ "String_Node_Str");
  Tag tag=context.NewTag(tagType,tagID,entity,"String_Node_Str");
  return tag;
}
Program: 44244
Project: 44244
Buggy source:
public void SaveState(){
  context.SaveState();
}

Fixed version (ground truth):
public static void SaveState(){
  context.SaveState();
}
Program: 44245
Project: 44245
Buggy source:
public Tuple<Stream,String> GetStreamFromView(File viewroot){
  String wvroot=strategy.GetCurrentViewRoot(viewroot);
  String viewtag=SnapshotView.ViewrootIsValid(wvroot);
  String streamstr=strategy.GetStreamFromView(viewtag);
  Stream stream=UCMEntity.GetStream(streamstr);
  return new Tuple<Stream,String>(stream,viewtag);
}

Fixed version (ground truth):
public Tuple<Stream,String> GetStreamFromView(File viewroot){
  File wvroot=strategy.GetCurrentViewRoot(viewroot);
  String viewtag="String_Node_Str";
  try {
    viewtag=strategy.ViewrootIsValid(wvroot);
  }
 catch (  IOException e) {
    e.printStackTrace();
  }
  String streamstr=strategy.GetStreamFromView(viewtag);
  Stream stream=UCMEntity.GetStream(streamstr);
  return new Tuple<Stream,String>(stream,viewtag);
}
Program: 44246
Project: 44246
Buggy source:
public ArrayList<Tag> ListTags(UCMEntity entity){
  ArrayList<Tag> tags=new ArrayList<Tag>();
  String result=strategy.GetTags(entity.GetFQName()).trim();
  String[] rs=result.split("String_Node_Str");
  if (result.length() > 0) {
    for (    String s : rs) {
      tags.add((Tag)UCMEntity.GetEntity(s.trim()));
    }
  }
  return tags;
}

Fixed version (ground truth):
public ArrayList<Tag> ListTags(UCMEntity entity){
  ArrayList<Tag> tags=new ArrayList<Tag>();
  List<Tuple<String,String>> result=strategy.GetTags(entity.GetFQName());
  if (result.size() > 0) {
    for (    Tuple<String,String> s : result) {
      Tag tag=(Tag)UCMEntity.GetEntity(s.t1.trim());
      tag.SetKeyValue(s.t2);
      tags.add(tag);
    }
  }
  return tags;
}
Program: 44247
Project: 44247
Buggy source:
public void MakeSnapshotView(Stream stream,String viewroot,String viewtag){
  strategy.MakeSnapshotView(stream.GetFQName(),viewtag,viewroot);
}

Fixed version (ground truth):
public void MakeSnapshotView(Stream stream,File viewroot,String viewtag){
  strategy.MakeSnapshotView(stream.GetFQName(),viewroot,viewtag);
}
Program: 44248
Project: 44248
Buggy source:
public void printResults(IQuery query){
  String resultType=query.getResults().getResultType();
  outputStream.println(String.format("String_Node_Str",resultType));
  if (resultType.equalsIgnoreCase(ResultType.XML.toString())) {
    outputStream.println(XMLResult.class.cast(query).resultsAsMergedXML());
    return;
  }
  if (resultType.equalsIgnoreCase(ResultType.CTM.toString())) {
    outputStream.println(CTMResult.class.cast(query).resultsAsMergedCTM());
    return;
  }
  printComplexResults(query);
}

Fixed version (ground truth):
public void printResults(IQuery query){
  String resultType=query.getResults().getResultType();
  outputStream.println(String.format("String_Node_Str",resultType));
  if (resultType.equalsIgnoreCase(ResultType.XML.toString())) {
    outputStream.println(XMLResult.class.cast(query.getResults()).resultsAsMergedXML());
    return;
  }
  if (resultType.equalsIgnoreCase(ResultType.CTM.toString())) {
    outputStream.println(CTMResult.class.cast(query.getResults()).resultsAsMergedCTM());
    return;
  }
  printComplexResults(query);
}
Program: 44249
Project: 44249
Buggy source:
public void open() throws IOException {
  output.println("String_Node_Str");
  InputStreamReader converter=new InputStreamReader(System.in);
  BufferedReader in=new BufferedReader(converter);
  String q="String_Node_Str";
  while (true) {
    output.print(String.format("String_Node_Str",prefix,q.isEmpty() ? "String_Node_Str" : "String_Node_Str"));
    String line=in.readLine();
    if (q.isEmpty()) {
      String trimedLine=line.trim();
      if (trimedLine.matches("String_Node_Str"))       break;
      if (trimedLine.matches("String_Node_Str")) {
        printCommands();
        continue;
      }
      if (trimedLine.matches("String_Node_Str")) {
        printStats();
        continue;
      }
    }
    q=q.concat(line);
    if (!line.trim().endsWith("String_Node_Str"))     continue;
    q=q.substring(0,q.lastIndexOf("String_Node_Str"));
    runQuery(q);
    q="String_Node_Str";
  }
}

Fixed version (ground truth):
public void open() throws IOException {
  output.println("String_Node_Str");
  InputStreamReader converter=new InputStreamReader(System.in);
  BufferedReader in=new BufferedReader(converter);
  String q="String_Node_Str";
  while (true) {
    output.print(String.format("String_Node_Str",prefix,q.isEmpty() ? "String_Node_Str" : "String_Node_Str"));
    String line=in.readLine();
    if (q.isEmpty()) {
      String trimedLine=line.trim();
      if (trimedLine.matches("String_Node_Str"))       break;
      if (trimedLine.matches("String_Node_Str")) {
        printCommands();
        continue;
      }
      if (trimedLine.matches("String_Node_Str")) {
        printStats();
        continue;
      }
    }
    q=q.concat(line);
    if (!line.trim().endsWith("String_Node_Str"))     continue;
    if (q.trim().length() > 1) {
      q=q.substring(0,q.lastIndexOf("String_Node_Str"));
      runQuery(q);
    }
    q="String_Node_Str";
  }
}
Program: 44250
Project: 44250
Buggy source:
public void open() throws IOException {
  output.println("String_Node_Str");
  String q="String_Node_Str";
  String line;
  while ((line=reader.readLine(String.format("String_Node_Str",prefix,q.isEmpty() ? "String_Node_Str" : "String_Node_Str"))) != null) {
    if (q.isEmpty()) {
      String trimedLine=line.trim();
      if (trimedLine.matches("String_Node_Str"))       break;
      if (trimedLine.matches("String_Node_Str")) {
        printCommands();
        continue;
      }
      if (trimedLine.matches("String_Node_Str")) {
        printStats();
        continue;
      }
    }
    q=q.concat(line);
    if (!line.trim().endsWith("String_Node_Str"))     continue;
    if (q.trim().length() > 1) {
      q=q.substring(0,q.lastIndexOf("String_Node_Str"));
      runQuery(q);
    }
    q="String_Node_Str";
  }
}

Fixed version (ground truth):
public void open() throws IOException {
  output.println("String_Node_Str");
  String q="String_Node_Str";
  String line;
  while ((line=reader.readLine(String.format("String_Node_Str",prefix,q.isEmpty() ? "String_Node_Str" : "String_Node_Str"))) != null) {
    if (q.isEmpty()) {
      String trimedLine=line.trim();
      if (trimedLine.matches("String_Node_Str"))       break;
      if (trimedLine.matches("String_Node_Str")) {
        printCommands();
        continue;
      }
      if (trimedLine.matches("String_Node_Str")) {
        printStats();
        continue;
      }
    }
    q=q.concat(line + "String_Node_Str");
    if (!line.trim().endsWith("String_Node_Str"))     continue;
    if (q.trim().length() > 1) {
      q=q.substring(0,q.lastIndexOf("String_Node_Str"));
      runQuery(q);
    }
    q="String_Node_Str";
  }
}
Program: 44252
Project: 44252
Buggy source:
public void setupMobMax(){
  config.load();
  mobMax=config.getInt("String_Node_Str",-1);
}

Fixed version (ground truth):
public void setupMobMax(){
  config.load();
  mobMax=config.getInt("String_Node_Str",-1);
  config.setProperty("String_Node_Str",mobMax);
  config.save();
}
Program: 44253
Project: 44253
Buggy source:
public void addBlackList(String type){
  config.load();
  String blacklist=config.getString("String_Node_Str");
  blacklist=blacklist + "String_Node_Str" + type.toLowerCase();
  config.setProperty("String_Node_Str",blacklist);
  mobBlacklist.add(type.toLowerCase());
}

Fixed version (ground truth):
public void addBlackList(String type){
  config.load();
  mobBlacklist.add(type.toLowerCase());
  String blacklist="String_Node_Str";
  for (  String mob : mobBlacklist) {
    blacklist+=mob + "String_Node_Str";
  }
  config.setProperty("String_Node_Str",blacklist.trim());
  config.save();
}
Program: 44254
Project: 44254
Buggy source:
public boolean removeBlackList(String type){
  config.load();
  boolean wasThere=mobBlacklist.remove(type.toLowerCase());
  if (!wasThere) {
    return false;
  }
  String blacklist="String_Node_Str";
  for (  String mob : mobBlacklist) {
    blacklist=blacklist + "String_Node_Str" + mob;
  }
  config.setProperty("String_Node_Str",blacklist.trim());
  return true;
}

Fixed version (ground truth):
public boolean removeBlackList(String type){
  config.load();
  try {
    boolean wasThere=mobBlacklist.remove(type.toLowerCase());
    if (!wasThere) {
      return false;
    }
  }
 catch (  Exception e) {
    System.out.println(e);
    System.out.println(e.getMessage());
    return false;
  }
  String blacklist="String_Node_Str";
  for (  String mob : mobBlacklist) {
    blacklist+=mob + "String_Node_Str";
  }
  config.setProperty("String_Node_Str",blacklist.trim());
  config.save();
  return true;
}
Program: 44255
Project: 44255
Buggy source:
public void setupBlacklist(){
  config.load();
  String blacklist=config.getString("String_Node_Str");
  try {
    mobBlacklist=Arrays.asList(blacklist.split("String_Node_Str"));
  }
 catch (  Exception e) {
    mobBlacklist=new ArrayList<String>();
  }
  for (  String mob : mobBlacklist) {
    mob=mob.toLowerCase();
  }
}

Fixed version (ground truth):
public void setupBlacklist(){
  config.load();
  mobBlacklist=new ArrayList<String>();
  try {
    String[] blacklist=config.getString("String_Node_Str").split("String_Node_Str");
    for (    String mob : blacklist) {
      mobBlacklist.add(mob);
    }
  }
 catch (  Exception e) {
    config.setProperty("String_Node_Str","String_Node_Str");
  }
}
Program: 44256
Project: 44256
Buggy source:
/** 
 * Called when the activity is first created. 
 */
@Override public void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  setContentView(R.layout.route);
  mRoute=(Route)getIntent().getParcelableExtra("String_Node_Str");
  initActionBar(mRoute.getTitle());
  mMapView=(MapView)findViewById(R.id.mapview);
  mMapView.setBuiltInZoomControls(true);
  mMapOverlays=mMapView.getOverlays();
  itemizedOverlay=new PlaceItemizedOverlay(this,mMapView);
  initList(mRoute);
  int index=1;
  for (  Place place : mRoute.getPlaces()) {
    addPlaceOverlay(place,index);
    index++;
  }
  mMapOverlays.add(itemizedOverlay);
  myLocationOverlay(mMapView);
  mMc=mMapView.getController();
  final MapController mc=mMc;
  if (mMapOverlays.size() > 0) {
    PlaceItemizedOverlay first=(PlaceItemizedOverlay)mMapOverlays.get(0);
    GeoPoint point=first.getCenter();
    mc.animateTo(point);
    mc.setZoom(14);
  }
}

Fixed version (ground truth):
/** 
 * Called when the activity is first created. 
 */
@Override public void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  setContentView(R.layout.route);
  mRoute=(Route)getIntent().getParcelableExtra("String_Node_Str");
  initActionBar(mRoute.getTitle());
  mMapView=(MapView)findViewById(R.id.mapview);
  mMapView.setBuiltInZoomControls(true);
  mMapOverlays=mMapView.getOverlays();
  itemizedOverlay=new PlaceItemizedOverlay(this,mMapView);
  initList(mRoute);
  int index=1;
  for (  Place place : mRoute.getPlaces()) {
    addPlaceOverlay(place,index);
    index++;
  }
  mMapOverlays.add(itemizedOverlay);
  myLocationOverlay(mMapView);
  mMc=mMapView.getController();
  final MapController mc=mMc;
  if (mMapOverlays.size() > 0) {
    PlaceItemizedOverlay first=(PlaceItemizedOverlay)mMapOverlays.get(0);
    GeoPoint point=first.getCenter();
    mc.animateTo(point);
    mc.setZoom(14);
  }
  onRotationChange(getResources().getConfiguration());
}
Program: 44257
Project: 44257
Buggy source:
/** 
 * @see android.app.Activity#onConfigurationChanged(android.content.res.Configuration)
 */
@Override public void onConfigurationChanged(Configuration newConfig){
  if (newConfig.orientation == newConfig.ORIENTATION_LANDSCAPE) {
    Log.d("String_Node_Str","String_Node_Str");
    mPlacesList.setVisibility(View.VISIBLE);
  }
 else {
    mPlacesList.setVisibility(View.GONE);
  }
  super.onConfigurationChanged(newConfig);
}

Fixed version (ground truth):
/** 
 * @see android.app.Activity#onConfigurationChanged(android.content.res.Configuration)
 */
@Override public void onConfigurationChanged(Configuration newConfig){
  onRotationChange(newConfig);
  super.onConfigurationChanged(newConfig);
}
Program: 44259
Project: 44259
Buggy source:
@Override public void writeToParcel(Parcel dest,int flags){
  dest.writeString(this.title);
  dest.writeString(this.description);
  dest.writeTypedList(this.places);
}

Fixed version (ground truth):
@Override public void writeToParcel(Parcel dest,int flags){
  dest.writeString(title);
  dest.writeParcelable(createdBy,0);
  dest.writeString(description);
  dest.writeTypedList(places);
}
Program: 44260
Project: 44260
Buggy source:
public Route(Parcel parcel){
  this.title=parcel.readString();
  this.description=parcel.readString();
  this.places=new ArrayList<Place>();
  parcel.readTypedList(this.places,Place.CREATOR);
}

Fixed version (ground truth):
public Route(Parcel parcel){
  title=parcel.readString();
  createdBy=parcel.readParcelable(User.class.getClassLoader());
  description=parcel.readString();
  places=new ArrayList<Place>();
  parcel.readTypedList(places,Place.CREATOR);
}
Program: 44262
Project: 44262
Buggy source:
/** 
 * Write the given input stream to the appender
 * @param input
 */
public void write(InputStream input){
  if (enabled) {
    BufferedReader in=new BufferedReader(new InputStreamReader(input));
    String line="String_Node_Str";
    try {
      while ((line=in.readLine()) != null) {
synchronized (getOut()) {
          getOut().write(line + Logger.linesep);
          getOut().flush();
        }
      }
    }
 catch (    IOException e) {
      e.printStackTrace();
    }
  }
}

Fixed version (ground truth):
/** 
 * Write the given input stream to the appender
 * @param input
 */
public void write(InputStream input){
  if (enabled) {
    BufferedReader in=null;
    try {
      in=new BufferedReader(new InputStreamReader(input,"String_Node_Str"));
      String line="String_Node_Str";
      try {
        while ((line=in.readLine()) != null) {
synchronized (getOut()) {
            getOut().write(line + Logger.linesep);
            getOut().flush();
          }
        }
      }
 catch (      IOException e) {
        e.printStackTrace();
      }
    }
 catch (    UnsupportedEncodingException e) {
      e.printStackTrace();
    }
  }
}
Program: 44263
Project: 44263
Buggy source:
public FileAppender(File file,LogLevel level) throws IOException {
  super(new PrintWriter(new FileWriter(file,true)),level);
  this.file=file;
}

Fixed version (ground truth):
public FileAppender(File file,LogLevel level) throws IOException {
  super(new PrintWriter(file,"String_Node_Str"),level);
  this.file=file;
}
Program: 44265
Project: 44265
Buggy source:
public void setRecorder(Recorder recorder){
  this.recorder=recorder;
}

Fixed version (ground truth):
public static void setRecorder(Recorder recorder){
  recorder=recorder;
}
Program: 44266
Project: 44266
Buggy source:
public void run(){
  try {
    InputStreamReader isr=new InputStreamReader(is);
    BufferedReader br=new BufferedReader(isr);
    String line=null;
    while ((line=br.readLine()) != null) {
      lres.add(line);
    }
    for (int i=0; i < lres.size() - 1; ++i) {
      sres.append(lres.get(i) + linesep);
    }
    if (lres.size() > 0) {
      sres.append(lres.get(lres.size() - 1));
    }
synchronized (this) {
      notifyAll();
    }
  }
 catch (  IOException ioe) {
    ioe.printStackTrace();
  }
}

Fixed version (ground truth):
public void run(){
  try {
    InputStreamReader isr=new InputStreamReader(is,"String_Node_Str");
    BufferedReader br=new BufferedReader(isr);
    String line=null;
    while ((line=br.readLine()) != null) {
      lres.add(line);
    }
    for (int i=0; i < lres.size() - 1; ++i) {
      sres.append(lres.get(i) + linesep);
    }
    if (lres.size() > 0) {
      sres.append(lres.get(lres.size() - 1));
    }
synchronized (this) {
      notifyAll();
    }
  }
 catch (  IOException ioe) {
    ioe.printStackTrace();
  }
}
Program: 44267
Project: 44267
Buggy source:
/** 
 * Convert   {@link InputStream} to {@link String}
 */
public static String toString(InputStream is){
  java.util.Scanner s=new java.util.Scanner(is).useDelimiter("String_Node_Str");
  return s.hasNext() ? s.next() : "String_Node_Str";
}

Fixed version (ground truth):
/** 
 * Convert   {@link InputStream} to {@link String}
 */
public static String toString(InputStream is){
  java.util.Scanner s=new java.util.Scanner(is,"String_Node_Str").useDelimiter("String_Node_Str");
  return s.hasNext() ? s.next() : "String_Node_Str";
}
Program: 44268
Project: 44268
Buggy source:
public static String streamToString(InputStream is) throws IOException {
  if (is != null) {
    Writer writer=new StringWriter();
    char[] buffer=new char[1024];
    try {
      Reader reader=new BufferedReader(new InputStreamReader(is));
      int n;
      while ((n=reader.read(buffer)) != -1) {
        writer.write(buffer,0,n);
      }
    }
  finally {
      is.close();
    }
    return writer.toString();
  }
 else {
    return "String_Node_Str";
  }
}

Fixed version (ground truth):
public static String streamToString(InputStream is) throws IOException {
  if (is != null) {
    Writer writer=new StringWriter();
    char[] buffer=new char[1024];
    try {
      Reader reader=new BufferedReader(new InputStreamReader(is,"String_Node_Str"));
      int n;
      while ((n=reader.read(buffer)) != -1) {
        writer.write(buffer,0,n);
      }
    }
  finally {
      is.close();
    }
    return writer.toString();
  }
 else {
    return "String_Node_Str";
  }
}
Program: 44269
Project: 44269
Buggy source:
public static List<String> streamToStrings(InputStream is) throws IOException {
  if (is != null) {
    List<String> lines=new ArrayList<String>();
    try {
      BufferedReader reader=new BufferedReader(new InputStreamReader(is));
      String line="String_Node_Str";
      while ((line=reader.readLine()) != null) {
        lines.add(line);
      }
    }
  finally {
      is.close();
    }
    return lines;
  }
 else {
    return null;
  }
}

Fixed version (ground truth):
public static List<String> streamToStrings(InputStream is) throws IOException {
  if (is != null) {
    List<String> lines=new ArrayList<String>();
    try {
      BufferedReader reader=new BufferedReader(new InputStreamReader(is,"String_Node_Str"));
      String line="String_Node_Str";
      while ((line=reader.readLine()) != null) {
        lines.add(line);
      }
    }
  finally {
      is.close();
    }
    return lines;
  }
 else {
    return null;
  }
}
Program: 44271
Project: 44271
Buggy source:
public static void removeAppender(Appender appender){
  if (appender != null) {
    appenders.remove(appender);
    appender.getOut().close();
  }
}

Fixed version (ground truth):
public static void removeAppender(Appender appender){
  if (appender != null) {
synchronized (appenders) {
      appenders.remove(appender);
      appender.getOut().close();
    }
  }
}
Program: 44272
Project: 44272
Buggy source:
public static void addAppender(Appender appender){
  appenders.add(appender);
}

Fixed version (ground truth):
public static void addAppender(Appender appender){
synchronized (appenders) {
    appenders.add(appender);
  }
}
Program: 44273
Project: 44273
Buggy source:
private CommandLine(){
  os=System.getProperty("String_Node_Str");
  logger.debug("String_Node_Str" + os);
  if (os.matches("String_Node_Str")) {
    logger.debug("String_Node_Str");
    cmd=new String[3];
    cmd[0]="String_Node_Str";
    cmd[1]="String_Node_Str";
    last=2;
  }
 else {
    thisos=OperatingSystem.UNIX;
    cmd=new String[1];
  }
  logger.debug("String_Node_Str");
}

Fixed version (ground truth):
private CommandLine(){
  os=System.getProperty("String_Node_Str");
  logger.debug("String_Node_Str" + os);
  if (os.matches("String_Node_Str")) {
    logger.debug("String_Node_Str");
    cmd=new String[3];
    cmd[0]="String_Node_Str";
    cmd[1]="String_Node_Str";
    last=2;
  }
 else {
    thisos=OperatingSystem.UNIX;
    cmd=new String[3];
    cmd[0]="String_Node_Str";
    cmd[1]="String_Node_Str";
    last=2;
  }
}
Program: 44274
Project: 44274
Buggy source:
public void parse(String[] args){
  String currentStr=null;
  Option current=null;
  for (int i=0; i < args.length; i++) {
    if (args[i].startsWith("String_Node_Str")) {
      if (args[i].startsWith("String_Node_Str",1)) {
        currentStr=args[i].substring(2);
        current=null;
        String[] val=currentStr.split("String_Node_Str",2);
        if (val.length == 2) {
          currentStr=val[0];
        }
        for (        Option o : options) {
          if (currentStr.equalsIgnoreCase(o.longName)) {
            current=o;
            if (val.length == 2) {
              o.addValue(val[1]);
            }
            o.setUsed();
          }
        }
      }
 else {
        currentStr=args[i].substring(1);
        current=null;
        for (        Option o : options) {
          if (currentStr.equals(o.shortName)) {
            current=o;
            o.setUsed();
          }
        }
      }
    }
 else {
      if (current != null) {
        current.addValue(args[i]);
      }
    }
  }
  this.verboseUsed();
  setTemplate();
  if (isVerbose()) {
    out.setMinimumLevel(LogLevel.VERBOSE);
  }
 else {
    out.setMinimumLevel(LogLevel.INFO);
  }
}

Fixed version (ground truth):
public void parse(String[] args){
  String currentStr=null;
  Option current=null;
  for (int i=0; i < args.length; i++) {
    if (args[i].startsWith("String_Node_Str")) {
      if (args[i].startsWith("String_Node_Str",1)) {
        currentStr=args[i].substring(2);
        current=null;
        String[] val=currentStr.split("String_Node_Str",2);
        if (val.length == 2) {
          currentStr=val[0];
        }
        for (        Option o : options) {
          if (currentStr.equalsIgnoreCase(o.longName)) {
            current=o;
            if (val.length == 2) {
              o.addValue(val[1]);
            }
            o.setUsed();
          }
        }
      }
 else {
        currentStr=args[i].substring(1);
        current=null;
        for (        Option o : options) {
          if (currentStr.equals(o.shortName)) {
            current=o;
            o.setUsed();
          }
        }
      }
    }
 else {
      if (current != null) {
        current.addValue(args[i]);
      }
    }
  }
  this.verboseUsed();
  setTemplate();
  if (isVerbose()) {
    out.setMinimumLevel(LogLevel.VERBOSE);
  }
 else {
    out.setMinimumLevel(LogLevel.INFO);
  }
  if (odebug.isUsed()) {
    out.setMinimumLevel(LogLevel.DEBUG);
  }
}
Program: 44275
Project: 44275
Buggy source:
public void setDefaultOptions(){
  ohelp=new Option("String_Node_Str","String_Node_Str",false,0,"String_Node_Str");
  oversion=new Option("String_Node_Str",null,false,0,"String_Node_Str");
  overbose=new Option("String_Node_Str",null,false,0,"String_Node_Str");
  otemplate=new Option("String_Node_Str",null,false,1,"String_Node_Str");
  ologfile=new Option("String_Node_Str",null,false,-1,"String_Node_Str");
  this.setOption(ohelp);
  this.setOption(oversion);
  this.setOption(overbose);
  this.setOption(otemplate);
  this.setOption(ologfile);
}

Fixed version (ground truth):
public void setDefaultOptions(){
  ohelp=new Option("String_Node_Str","String_Node_Str",false,0,"String_Node_Str");
  oversion=new Option("String_Node_Str",null,false,0,"String_Node_Str");
  overbose=new Option("String_Node_Str",null,false,0,"String_Node_Str");
  odebug=new Option("String_Node_Str",null,false,0,"String_Node_Str");
  otemplate=new Option("String_Node_Str",null,false,1,"String_Node_Str");
  ologfile=new Option("String_Node_Str",null,false,-1,"String_Node_Str");
  this.setOption(ohelp);
  this.setOption(oversion);
  this.setOption(overbose);
  this.setOption(odebug);
  this.setOption(otemplate);
  this.setOption(ologfile);
}
Program: 44276
Project: 44276
Buggy source:
private void logfileUsed(){
  System.out.println("String_Node_Str" + logger);
  if (ologfile != null && ologfile.used) {
    try {
      List<String> as=ologfile.getStrings();
      logger.debug("String_Node_Str" + as.get(0));
      FileAppender appender=new FileAppender(new File(as.get(0)));
      if (as.size() > 1) {
        logger.debug("String_Node_Str" + as.get(1));
        appender.setMinimumLevel(LogLevel.valueOf(as.get(1)));
      }
      if (as.size() > 2) {
        Set<String> ss=new HashSet<String>(Arrays.asList(as.get(2).split("String_Node_Str")));
        if (ss.size() > 0) {
          logger.debug("String_Node_Str" + ss);
          appender.setSubscribeAll(false);
          appender.setSubscriptions(ss);
        }
      }
      if (as.size() > 3) {
        logger.debug("String_Node_Str" + as.get(3));
        appender.setTemplate(as.get(3));
      }
      Logger.addAppender(appender);
    }
 catch (    IOException e) {
      logger.warning("String_Node_Str" + ologfile.getString());
    }
  }
}

Fixed version (ground truth):
private void logfileUsed(){
  System.out.println("String_Node_Str" + logger);
  if (ologfile != null && ologfile.used) {
    try {
      List<String> as=ologfile.getStrings();
      logger.debug("String_Node_Str" + as);
      logger.debug("String_Node_Str" + as.get(0));
      FileAppender appender=new FileAppender(new File(as.get(0)));
      if (as.size() > 1) {
        logger.debug("String_Node_Str" + as.get(1));
        appender.setMinimumLevel(LogLevel.valueOf(as.get(1)));
      }
      if (as.size() > 2) {
        Set<String> ss=new HashSet<String>(Arrays.asList(as.get(2).split("String_Node_Str")));
        if (ss.size() > 0 && as.get(2).length() > 0) {
          logger.debug("String_Node_Str" + ss);
          appender.setSubscribeAll(false);
          appender.setSubscriptions(ss);
        }
      }
      if (as.size() > 3) {
        logger.fatal("String_Node_Str" + as.get(3));
        appender.setTemplate(as.get(3));
      }
      Logger.addAppender(appender);
    }
 catch (    IOException e) {
      logger.warning("String_Node_Str" + ologfile.getString());
    }
  }
}
Program: 44277
Project: 44277
Buggy source:
protected void shutdown(){
  logger.verbose("String_Node_Str");
  Logger.removeAppender(out);
}

Fixed version (ground truth):
protected void shutdown(){
  logger.debug("String_Node_Str");
  Logger.removeAppender(out);
}
Program: 44278
Project: 44278
Buggy source:
public void setLocalLog(File log){
  System.out.println("String_Node_Str" + log);
  try {
    fw=new FileWriter(log,true);
  }
 catch (  Exception e1) {
    return;
  }
  System.out.println("String_Node_Str" + log.getAbsoluteFile());
  this.bwout=new BufferedWriter(fw);
  if (this.bwout == null) {
    System.out.println("String_Node_Str");
  }
 else {
    System.out.println("String_Node_Str");
  }
  if (this.getLocalLog() == null) {
    System.out.println("String_Node_Str");
  }
 else {
    System.out.println("String_Node_Str");
  }
}

Fixed version (ground truth):
public void setLocalLog(File log){
  try {
    fw=new FileWriter(log,true);
  }
 catch (  Exception e1) {
    return;
  }
  this.pwout=new PrintWriter(fw);
}
Program: 44279
Project: 44279
Buggy source:
public Logger(){
  System.out.println("String_Node_Str");
}

Fixed version (ground truth):
public Logger(){
}
Program: 44280
Project: 44280
Buggy source:
private static void newDate(Calendar n){
  nowDate=n;
  if (fw != null) {
    try {
      fw.close();
      out.close();
    }
 catch (    IOException e) {
      System.err.println("String_Node_Str");
    }
  }
  try {
    file=new File(path + "String_Node_Str" + logformat.format(nowDate.getTime())+ "String_Node_Str");
    fw=new FileWriter(file,append);
  }
 catch (  IOException e) {
    try {
      file=new File("String_Node_Str" + logformat.format(nowDate.getTime()) + "String_Node_Str");
      fw=new FileWriter(file,append);
    }
 catch (    IOException e1) {
      System.err.println("String_Node_Str");
      System.exit(1);
    }
  }
  out=new BufferedWriter(fw);
}

Fixed version (ground truth):
private static void newDate(Calendar n){
  nowDate=n;
  if (fw != null) {
    try {
      fw.close();
      out.close();
    }
 catch (    IOException e) {
      System.err.println("String_Node_Str");
    }
  }
  try {
    file=new File(path + "String_Node_Str" + logformat.format(nowDate.getTime())+ "String_Node_Str");
    fw=new FileWriter(file,append);
  }
 catch (  IOException e) {
    try {
      file=new File("String_Node_Str" + logformat.format(nowDate.getTime()) + "String_Node_Str");
      fw=new FileWriter(file,append);
    }
 catch (    IOException e1) {
      System.err.println("String_Node_Str");
      System.exit(1);
    }
  }
  out=new PrintWriter(fw);
}
Program: 44281
Project: 44281
Buggy source:
public static Logger getLogger(Logger l){
  if (plogger == null) {
    plogger=new PraqmaLogger(true,true);
  }
  l.setLogger(plogger);
  l.bwout=null;
  return l;
}

Fixed version (ground truth):
public static Logger getLogger(Logger l){
  if (plogger == null) {
    plogger=new PraqmaLogger(true,true);
  }
  l.setLogger(plogger);
  return l;
}
Program: 44282
Project: 44282
Buggy source:
private String _log(Object msg,String type,Logger l,int size){
  if (!l.enabled) {
    return null;
  }
  StackTraceElement[] stack=Thread.currentThread().getStackTrace();
  String name=stack[size].getClassName();
  String myMsg=null;
  if (l.isIncluded(name) || PraqmaLogger.isIncluded(name) || l.all|| this.all) {
    Calendar now=Calendar.getInstance();
    if (getDate(now).after(getDate(nowDate))) {
      newDate(now);
    }
    if (type != null) {
      if (type.length() > PraqmaLogger.typemaxlength) {
        type=type.substring(0,8);
      }
      String stackMsg=stack[size].getClassName() + "String_Node_Str" + stack[size].getMethodName()+ "String_Node_Str"+ stack[size].getLineNumber();
      String msg_=format.format(now.getTime()) + "String_Node_Str" + type+ "String_Node_Str"+ new String(new char[PraqmaLogger.typemaxlength - type.length()]).replace("String_Node_Str","String_Node_Str")+ stackMsg;
      myMsg=msg_ + "String_Node_Str" + objectToString(msg)+ linesep;
    }
 else {
      myMsg=objectToString(msg) + linesep;
    }
    try {
      out.write(myMsg);
      out.flush();
    }
 catch (    Exception e) {
      System.out.println("String_Node_Str");
    }
    System.out.println("String_Node_Str");
    if (l.getLocalLog() != null) {
      System.out.println("String_Node_Str");
    }
 else {
      System.out.println("String_Node_Str");
    }
    if (l.getLocalLog() != null) {
      try {
        System.out.println("String_Node_Str");
        l.getLocalLog().write(myMsg);
        l.getLocalLog().flush();
      }
 catch (      Exception e) {
        System.out.println("String_Node_Str");
      }
    }
  }
  return myMsg;
}

Fixed version (ground truth):
private String _log(Object msg,String type,Logger l,int size){
  if (!l.enabled) {
    return null;
  }
  StackTraceElement[] stack=Thread.currentThread().getStackTrace();
  String name=stack[size].getClassName();
  String myMsg=null;
  if (l.isIncluded(name) || PraqmaLogger.isIncluded(name) || l.all|| this.all) {
    Calendar now=Calendar.getInstance();
    if (getDate(now).after(getDate(nowDate))) {
      newDate(now);
    }
    if (type != null) {
      if (type.length() > PraqmaLogger.typemaxlength) {
        type=type.substring(0,8);
      }
      String stackMsg=stack[size].getClassName() + "String_Node_Str" + stack[size].getMethodName()+ "String_Node_Str"+ stack[size].getLineNumber();
      String msg_=format.format(now.getTime()) + "String_Node_Str" + type+ "String_Node_Str"+ new String(new char[PraqmaLogger.typemaxlength - type.length()]).replace("String_Node_Str","String_Node_Str")+ stackMsg;
      myMsg=msg_ + "String_Node_Str" + objectToString(msg)+ linesep;
    }
 else {
      myMsg=objectToString(msg) + linesep;
    }
    out.write(myMsg);
    out.flush();
    if (l.getLocalLog() != null) {
      l.getLocalLog().write(myMsg);
      l.getLocalLog().flush();
    }
  }
  return myMsg;
}
Program: 44283
Project: 44283
Buggy source:
public BufferedWriter getLocalLog(){
  if (this.bwout == null) {
    System.out.println("String_Node_Str");
  }
 else {
    System.out.println("String_Node_Str");
  }
  return this.bwout;
}

Fixed version (ground truth):
public PrintWriter getLocalLog(){
  return this.pwout;
}
Program: 44284
Project: 44284
Buggy source:
public void parse(String[] args){
  String currentStr=null;
  Option current=null;
  for (int i=0; i < args.length; i++) {
    if (args[i].startsWith("String_Node_Str")) {
      if (args[i].startsWith("String_Node_Str",1)) {
        currentStr=args[i].substring(2);
        current=null;
        String[] val=currentStr.split("String_Node_Str",1);
        if (val.length == 2) {
          currentStr=val[0];
        }
        for (        Option o : options) {
          if (currentStr.equalsIgnoreCase(o.longName)) {
            current=o;
            if (val.length == 2) {
              o.addValue(val[1]);
            }
            o.setUsed();
          }
        }
      }
 else {
        currentStr=args[i].substring(1);
        current=null;
        for (        Option o : options) {
          if (currentStr.equalsIgnoreCase(o.shortName)) {
            current=o;
            o.setUsed();
          }
        }
      }
    }
 else {
      if (current != null) {
        current.addValue(args[i]);
      }
    }
  }
}

Fixed version (ground truth):
public void parse(String[] args){
  String currentStr=null;
  Option current=null;
  for (int i=0; i < args.length; i++) {
    if (args[i].startsWith("String_Node_Str")) {
      if (args[i].startsWith("String_Node_Str",1)) {
        currentStr=args[i].substring(2);
        current=null;
        String[] val=currentStr.split("String_Node_Str",2);
        if (val.length == 2) {
          currentStr=val[0];
        }
        for (        Option o : options) {
          if (currentStr.equalsIgnoreCase(o.longName)) {
            current=o;
            if (val.length == 2) {
              o.addValue(val[1]);
            }
            o.setUsed();
          }
        }
      }
 else {
        currentStr=args[i].substring(1);
        current=null;
        for (        Option o : options) {
          if (currentStr.equalsIgnoreCase(o.shortName)) {
            current=o;
            o.setUsed();
          }
        }
      }
    }
 else {
      if (current != null) {
        current.addValue(args[i]);
      }
    }
  }
}
Program: 44285
Project: 44285
Buggy source:
public void checkOptions() throws Exception {
  for (  Option o : options) {
    if (o.required && !o.used) {
      throw new Exception(o.longName + "String_Node_Str");
    }
    if (o.arguments != o.values.size() && o.used) {
      throw new Exception("String_Node_Str" + o.longName + "String_Node_Str"+ o.arguments+ "String_Node_Str");
    }
  }
}

Fixed version (ground truth):
public void checkOptions() throws Exception {
  String errors="String_Node_Str";
  for (  Option o : options) {
    if (o.required && !o.used) {
      errors+=o.longName + "String_Node_Str";
    }
    if (o.arguments != o.values.size() && o.used) {
      errors+="String_Node_Str" + o.longName + "String_Node_Str"+ o.arguments+ "String_Node_Str";
    }
  }
  if (errors.length() > 0) {
    throw new Exception(errors);
  }
}
Program: 44286
Project: 44286
Buggy source:
protected FileObject getResource(String name) throws IOException {
  return processingEnv.getFiler().createResource(CLASS_OUTPUT,"String_Node_Str",name);
}

Fixed version (ground truth):
protected FileObject getResource(String name) throws IOException {
  return processingEnv.getFiler().getResource(CLASS_OUTPUT,"String_Node_Str",name);
}
Program: 44287
Project: 44287
Buggy source:
protected void writePropertyFile(Properties p,String name) throws IOException {
  FileObject f=getResource(name);
  OutputStream os=f.openOutputStream();
  p.store(os,null);
  os.close();
}

Fixed version (ground truth):
protected void writePropertyFile(Properties p,String name) throws IOException {
  FileObject f=createResource(name);
  OutputStream os=f.openOutputStream();
  p.store(os,null);
  os.close();
}
Program: 44288
Project: 44288
Buggy source:
@Override public boolean process(Set<? extends TypeElement> annotations,RoundEnvironment roundEnv){
  if (roundEnv.processingOver()) {
    return false;
  }
  ElementScanner6<Void,Void> scanner=new ElementScanner6<Void,Void>(){
    @Override public Void visitExecutable(    ExecutableElement e,    Void aVoid){
      if (e.getAnnotation(DataBoundConstructor.class) != null) {
        write(e);
      }
 else {
        String javadoc=getJavadoc(e);
        if (javadoc != null && javadoc.contains("String_Node_Str")) {
          write(e);
        }
      }
      return super.visitExecutable(e,aVoid);
    }
  }
;
  for (  Element e : roundEnv.getRootElements())   scanner.scan(e,null);
  return false;
}

Fixed version (ground truth):
@Override public boolean process(Set<? extends TypeElement> annotations,RoundEnvironment roundEnv){
  ElementScanner6<Void,Void> scanner=new ElementScanner6<Void,Void>(){
    @Override public Void visitExecutable(    ExecutableElement e,    Void aVoid){
      if (e.getAnnotation(DataBoundConstructor.class) != null) {
        write(e);
      }
 else {
        String javadoc=getJavadoc(e);
        if (javadoc != null && javadoc.contains("String_Node_Str")) {
          write(e);
        }
      }
      return super.visitExecutable(e,aVoid);
    }
  }
;
  for (  Element e : roundEnv.getRootElements())   scanner.scan(e,null);
  return false;
}
Program: 44289
Project: 44289
Buggy source:
@Override public boolean process(Set<? extends TypeElement> annotations,RoundEnvironment roundEnv){
  try {
    if (roundEnv.processingOver()) {
      return false;
    }
    Multimap<TypeElement,Element> props=LinkedListMultimap.create();
    for (    Element exported : roundEnv.getElementsAnnotatedWith(Exported.class)) {
      props.put((TypeElement)exported.getEnclosingElement(),exported);
    }
    Set<String> exposedBeanNames=scanExisting();
    for (    Entry<TypeElement,Collection<Element>> e : props.asMap().entrySet()) {
      exposedBeanNames.add(e.getKey().getQualifiedName().toString());
      final Properties javadocs=new Properties();
      for (      Element md : e.getValue()) {
switch (md.getKind()) {
case FIELD:
case METHOD:
          String javadoc=getJavadoc(md);
        if (javadoc != null)         javadocs.put(md.getSimpleName().toString(),javadoc);
      break;
default :
    throw new AssertionError("String_Node_Str" + md);
}
}
String javadocFile=e.getKey().getQualifiedName().toString().replace('.','/') + "String_Node_Str";
notice("String_Node_Str" + javadocFile,e.getKey());
writePropertyFile(javadocs,javadocFile);
}
FileObject beans=getResource(STAPLER_BEAN_FILE);
PrintWriter w=new PrintWriter(new OutputStreamWriter(beans.openOutputStream(),"String_Node_Str"));
for (String beanName : exposedBeanNames) w.println(beanName);
w.close();
}
 catch (IOException x) {
error(x.toString());
}
return false;
}

Fixed version (ground truth):
@Override public boolean process(Set<? extends TypeElement> annotations,RoundEnvironment roundEnv){
  try {
    if (roundEnv.processingOver()) {
      return false;
    }
    Multimap<TypeElement,Element> props=LinkedListMultimap.create();
    for (    Element exported : roundEnv.getElementsAnnotatedWith(Exported.class)) {
      props.put((TypeElement)exported.getEnclosingElement(),exported);
    }
    Set<String> exposedBeanNames=scanExisting();
    for (    Entry<TypeElement,Collection<Element>> e : props.asMap().entrySet()) {
      exposedBeanNames.add(e.getKey().getQualifiedName().toString());
      final Properties javadocs=new Properties();
      for (      Element md : e.getValue()) {
switch (md.getKind()) {
case FIELD:
case METHOD:
          String javadoc=getJavadoc(md);
        if (javadoc != null)         javadocs.put(md.getSimpleName().toString(),javadoc);
      break;
default :
    throw new AssertionError("String_Node_Str" + md);
}
}
String javadocFile=e.getKey().getQualifiedName().toString().replace('.','/') + "String_Node_Str";
notice("String_Node_Str" + javadocFile,e.getKey());
writePropertyFile(javadocs,javadocFile);
}
FileObject beans=createResource(STAPLER_BEAN_FILE);
PrintWriter w=new PrintWriter(new OutputStreamWriter(beans.openOutputStream(),"String_Node_Str"));
for (String beanName : exposedBeanNames) w.println(beanName);
w.close();
}
 catch (IOException x) {
error(x.toString());
}
return false;
}
Program: 44290
Project: 44290
Buggy source:
/** 
 * @param m Method whose parameter has  {@link QueryParameter}
 */
private void write(ExecutableElement m) throws IOException {
  StringBuffer buf=new StringBuffer();
  for (  VariableElement p : m.getParameters()) {
    if (buf.length() > 0)     buf.append(',');
    buf.append(p.getSimpleName());
  }
  TypeElement t=(TypeElement)m.getEnclosingElement();
  FileObject f=getResource(t.getQualifiedName().toString().replace('.','/') + "String_Node_Str" + m.getSimpleName()+ "String_Node_Str");
  notice("String_Node_Str" + f,m);
  OutputStream os=f.openOutputStream();
  try {
    IOUtils.write(buf,os,"String_Node_Str");
  }
  finally {
    os.close();
  }
}

Fixed version (ground truth):
/** 
 * @param m Method whose parameter has  {@link QueryParameter}
 */
private void write(ExecutableElement m) throws IOException {
  StringBuffer buf=new StringBuffer();
  for (  VariableElement p : m.getParameters()) {
    if (buf.length() > 0)     buf.append(',');
    buf.append(p.getSimpleName());
  }
  TypeElement t=(TypeElement)m.getEnclosingElement();
  FileObject f=createResource(t.getQualifiedName().toString().replace('.','/') + "String_Node_Str" + m.getSimpleName()+ "String_Node_Str");
  notice("String_Node_Str" + f,m);
  OutputStream os=f.openOutputStream();
  try {
    IOUtils.write(buf,os,"String_Node_Str");
  }
  finally {
    os.close();
  }
}
Program: 44291
Project: 44291
Buggy source:
public List compile(CompilerConfiguration config) throws CompilerException {
  config.setTargetVersion("String_Node_Str");
  config.setSourceVersion("String_Node_Str");
  File destinationDir=new File(config.getOutputLocation());
  if (!destinationDir.exists()) {
    destinationDir.mkdirs();
  }
  String[] sourceFiles=getSourceFiles(config);
  if (sourceFiles.length == 0) {
    return Collections.EMPTY_LIST;
  }
  getLogger().info("String_Node_Str" + sourceFiles.length + "String_Node_Str"+ "String_Node_Str"+ (sourceFiles.length == 1 ? "String_Node_Str" : "String_Node_Str")+ "String_Node_Str"+ destinationDir.getAbsolutePath());
  if (config.isFork()) {
    config.addClasspathEntry(whichJar(AnnotationProcessorFactoryImpl.class));
    config.addCompilerCustomArgument("String_Node_Str",AnnotationProcessorFactoryImpl.class.getName());
  }
  config.addCompilerCustomArgument("String_Node_Str",new File(config.getOutputLocation()).getAbsolutePath());
  String[] args=buildCompilerArguments(config,sourceFiles);
  if (config.isFork()) {
    String executable=config.getExecutable();
    if (StringUtils.isEmpty(executable))     executable=new File(new File(System.getProperty("String_Node_Str")),"String_Node_Str").getAbsolutePath();
    return compileOutOfProcess(config,executable,args);
  }
 else {
    return compileInProcess(args);
  }
}

Fixed version (ground truth):
public List compile(CompilerConfiguration config) throws CompilerException {
  config.setTargetVersion("String_Node_Str");
  config.setSourceVersion("String_Node_Str");
  File destinationDir=new File(config.getOutputLocation());
  if (!destinationDir.exists()) {
    destinationDir.mkdirs();
  }
  String[] sourceFiles=getSourceFiles(config);
  if (sourceFiles.length == 0) {
    return Collections.EMPTY_LIST;
  }
  getLogger().info("String_Node_Str" + sourceFiles.length + "String_Node_Str"+ "String_Node_Str"+ (sourceFiles.length == 1 ? "String_Node_Str" : "String_Node_Str")+ "String_Node_Str"+ destinationDir.getAbsolutePath());
  if (config.isFork()) {
    config.addClasspathEntry(whichJar(AnnotationProcessorFactoryImpl.class));
    config.addCompilerCustomArgument("String_Node_Str",AnnotationProcessorFactoryImpl.class.getName());
  }
  config.addCompilerCustomArgument("String_Node_Str",new File(config.getOutputLocation()).getAbsolutePath());
  String[] args=buildCompilerArguments(config,sourceFiles);
  if (config.isFork()) {
    String executable=config.getExecutable();
    if (StringUtils.isEmpty(executable)) {
      File apt=new File(new File(System.getProperty("String_Node_Str")),"String_Node_Str");
      if (!apt.exists())       apt=new File(new File(System.getProperty("String_Node_Str")),"String_Node_Str");
      executable=apt.getAbsolutePath();
    }
    return compileOutOfProcess(config,executable,args);
  }
 else {
    return compileInProcess(args);
  }
}