nus-yam/ex-repair huggingface dataset:
Program: 37799
Project: 37799
Buggy source:
public static Cell getWyckoffCell(Cell cell){
  Cell answer=null;
  String output=getFindsymOutput(cell);
  try {
    answer=parseWyckoffCell(output,cell);
  }
 catch (  Exception x) {
    if (GAParameters.getParams().getVerbosity() >= 4) {
      System.out.println(x.getLocalizedMessage());
      System.out.println("String_Node_Str");
      System.out.println(cell);
      System.out.println(getFindsymInput(cell,accuracy2));
    }
    answer=cell;
  }
  return answer;
}

Fixed version (ground truth):
public static Cell getWyckoffCell(Cell cell){
  Cell answer=null;
  String output=getFindsymOutput(cell);
  try {
    answer=parseWyckoffCell(output,cell);
  }
 catch (  Exception x) {
    if (GAParameters.getParams().getVerbosity() >= 4) {
      System.out.println(x.getLocalizedMessage());
      System.out.println("String_Node_Str");
      System.out.println(cell);
      System.out.println(getFindsymInput(cell,accuracies[0]));
      (new Exception()).printStackTrace();
    }
    answer=cell;
  }
  return answer;
}
Program: 37800
Project: 37800
Buggy source:
public List<Organism> getOrganismsSorted(){
class StructureEnergyComparator implements Comparator<Organism> {
    public int compare(    Organism a,    Organism b){
      return a.getFitness() > b.getFitness() ? -1 : 1;
    }
  }
  List<Organism> sortedOrgs=new ArrayList<Organism>(organisms);
  Collections.sort(organisms,new StructureEnergyComparator());
  return sortedOrgs;
}

Fixed version (ground truth):
public List<Organism> getOrganismsSorted(){
class StructureEnergyComparator implements Comparator<Organism> {
    public int compare(    Organism a,    Organism b){
      return a.getFitness() > b.getFitness() ? -1 : 1;
    }
  }
  List<Organism> sortedOrgs=new ArrayList<Organism>(organisms);
  Collections.sort(sortedOrgs,new StructureEnergyComparator());
  return sortedOrgs;
}
Program: 37801
Project: 37801
Buggy source:
private double parseFinalEnergy(String lammpsOutput){
  Double finalEnergy=Double.POSITIVE_INFINITY;
  int verbosity=GAParameters.getParams().getVerbosity();
  String lines[]=lammpsOutput.split("String_Node_Str");
  int i;
  for (i=0; i < lines.length; i++) {
    if (lines[i].matches("String_Node_Str")) {
      String energies[]=lines[i + 2].trim().split("String_Node_Str");
      finalEnergy=Double.parseDouble(energies[4]);
    }
  }
  return finalEnergy;
}

Fixed version (ground truth):
private double parseFinalEnergy(String lammpsOutput){
  Double finalEnergy=Double.POSITIVE_INFINITY;
  int verbosity=GAParameters.getParams().getVerbosity();
  String lines[]=lammpsOutput.split("String_Node_Str");
  int i;
  for (i=0; i < lines.length; i++) {
    if (lines[i].matches("String_Node_Str")) {
      String energies[]=lines[i + 2].trim().split("String_Node_Str");
      try {
        finalEnergy=Double.parseDouble(energies[4]);
      }
 catch (      NumberFormatException x) {
        System.out.println("String_Node_Str");
      }
    }
  }
  return finalEnergy;
}
Program: 37803
Project: 37803
Buggy source:
private double lammpsRun(StructureOrg c){
  GAParameters params=GAParameters.getParams();
  double finalEnergy=Double.POSITIVE_INFINITY;
  int verbosity=GAParameters.getParams().getVerbosity();
  String outDirPath=params.getTempDirName() + "String_Node_Str" + params.getRunTitle()+ "String_Node_Str"+ c.getID();
  File outDir=new File(outDirPath);
  outDir.mkdir();
  c.getCell().writeCIF(outDirPath + "String_Node_Str" + c.getID()+ "String_Node_Str");
  utility.Utility.writeStringToFile(getLammpsInputFile(c,potlStr),outDirPath + "String_Node_Str" + inFileName);
  utility.Utility.writeStringToFile(getLammpsDataFile(c),outDirPath + "String_Node_Str" + dataFileName);
  if (verbosity >= 3)   System.out.println("String_Node_Str" + c.getID());
  String lammpsOutput=runLAMMPS(outDir.getAbsolutePath());
  Cell a=parseOutputStructure(c.getCell(),outDirPath + "String_Node_Str" + dumpFileName);
  if (a == null) {
    if (verbosity >= 3)     System.out.println("String_Node_Str");
  }
 else {
    c.setCell(a);
  }
  finalEnergy=parseFinalEnergy(lammpsOutput);
  if (verbosity >= 3)   System.out.println("String_Node_Str" + c.getID() + "String_Node_Str"+ finalEnergy+ "String_Node_Str");
  return finalEnergy;
}

Fixed version (ground truth):
private double lammpsRun(StructureOrg c){
  GAParameters params=GAParameters.getParams();
  double finalEnergy=Double.POSITIVE_INFINITY;
  int verbosity=GAParameters.getParams().getVerbosity();
  String outDirPath=params.getTempDirName() + "String_Node_Str" + params.getRunTitle()+ "String_Node_Str"+ c.getID();
  File outDir=new File(outDirPath);
  outDir.mkdir();
  c.getCell().writeCIF(outDirPath + "String_Node_Str" + c.getID()+ "String_Node_Str");
  utility.Utility.writeStringToFile(getLammpsInputFile(c,potlStr),outDirPath + "String_Node_Str" + inFileName);
  utility.Utility.writeStringToFile(getLammpsDataFile(c),outDirPath + "String_Node_Str" + dataFileName);
  if (verbosity >= 3)   System.out.println("String_Node_Str" + c.getID());
  String lammpsOutput=runLAMMPS(outDir.getAbsolutePath());
  Cell a=parseOutputStructure(c.getCell(),outDirPath + "String_Node_Str" + dumpFileName);
  if (a == null) {
    if (verbosity >= 3)     System.out.println("String_Node_Str");
  }
 else {
    c.setCell(a);
    finalEnergy=parseFinalEnergy(lammpsOutput);
  }
  if (verbosity >= 3)   System.out.println("String_Node_Str" + c.getID() + "String_Node_Str"+ finalEnergy+ "String_Node_Str");
  return finalEnergy;
}
Program: 37805
Project: 37805
Buggy source:
public Composition getRandomIntegerCompInSpace(int minNumAtoms,int maxNumAtoms){
  Map<Element,Double> m=new HashMap<Element,Double>();
  double sumAtoms=0.0;
  for (  Composition c : endpoints) {
    double fracOfThisComp=GAParameters.getParams().getRandom().nextDouble();
    for (    Element e : elements) {
      double numOfElem=c.getStoichiometricUnit().get(e) * fracOfThisComp;
      sumAtoms+=numOfElem;
      if (m.keySet().contains(e))       m.put(e,m.get(e) + numOfElem);
 else       m.put(e,numOfElem);
    }
  }
  int targetNumAtoms=RandomNumbers.getUniformIntBetween(minNumAtoms,maxNumAtoms);
  Map<Element,Integer> c=new HashMap<Element,Integer>();
  for (  Element e : m.keySet())   c.put(e,Math.round(Math.round(m.get(e) * targetNumAtoms / sumAtoms)));
  return new Composition(c,false);
}

Fixed version (ground truth):
public Composition getRandomIntegerCompInSpace(int minNumAtoms,int maxNumAtoms){
  Map<Element,Double> m=new HashMap<Element,Double>();
  double sumAtoms=0.0;
  for (  Composition c : endpoints) {
    double fracOfThisComp=GAParameters.getParams().getRandom().nextDouble();
    for (    Element e : elements) {
      double numOfElem=c.getStoichiometricUnit().get(e) * fracOfThisComp;
      sumAtoms+=numOfElem;
      if (m.keySet().contains(e))       m.put(e,m.get(e) + numOfElem);
 else       m.put(e,numOfElem);
    }
  }
  int targetNumAtoms=RandomNumbers.getUniformIntBetweenInclusive(minNumAtoms,maxNumAtoms);
  Map<Element,Integer> c=new HashMap<Element,Integer>();
  for (  Element e : m.keySet())   c.put(e,Math.round(Math.round(m.get(e) * targetNumAtoms / sumAtoms)));
  return new Composition(c,false);
}
Program: 37806
Project: 37806
Buggy source:
private static Boolean madeEnough(Generation offspring){
  GAParameters params=GAParameters.getParams();
  if (GAParameters.getParams().getRecord().getGenNum() == 0) {
    List<Pair<StructureOrgCreator,Integer>> initialOrgCreators=params.getInitialOrgCreators();
    for (    Pair<StructureOrgCreator,Integer> i : initialOrgCreators) {
      if (i.getSecond() > 0)       return false;
    }
    if (GAParameters.getParams().getVerbosity() >= 1)     System.out.println("String_Node_Str");
    return true;
  }
 else {
    if (params.getNumCalcsInParallel() != 1)     return offspring.getNumOrganisms() >= params.getMinPopSize();
 else     return offspring.getNumOrganisms() >= params.getPopSize();
  }
}

Fixed version (ground truth):
private static Boolean madeEnough(Generation offspring){
  GAParameters params=GAParameters.getParams();
  if (GAParameters.getParams().getRecord().getGenNum() == 0) {
    List<Pair<StructureOrgCreator,Integer>> initialOrgCreators=params.getInitialOrgCreators();
    for (    Pair<StructureOrgCreator,Integer> i : initialOrgCreators) {
      if (i.getSecond() > 0)       return false;
    }
    if (GAParameters.getParams().getVerbosity() >= 1)     System.out.println("String_Node_Str");
    return true;
  }
 else {
    if (params.getNumCalcsInParallel() != 1)     return offspring.getNumOrganisms() >= Math.min(params.getMinPopSize(),params.getPopSize());
 else     return offspring.getNumOrganisms() >= params.getPopSize();
  }
}
Program: 37807
Project: 37807
Buggy source:
private void removeAtoms(int numAtoms,List<Site> newSites){
  GAParameters params=GAParameters.getParams();
  Random rand=params.getRandom();
  for (int i=0; i < numAtoms; i++) {
    newSites.remove(RandomNumbers.getUniformIntBetween(0,newSites.size()));
  }
}

Fixed version (ground truth):
private void removeAtoms(int numAtoms,List<Site> newSites){
  GAParameters params=GAParameters.getParams();
  Random rand=params.getRandom();
  for (int i=0; i < numAtoms; i++) {
    newSites.remove(RandomNumbers.getUniformIntBetweenInclusive(0,newSites.size() - 1));
  }
}
Program: 37808
Project: 37808
Buggy source:
public Permutation(String[] args){
  if (args.length < 3)   GAParameters.usage("String_Node_Str",true);
  meanExchanges=Double.parseDouble(args[0]);
  sigmaExchanges=Double.parseDouble(args[1]);
  pairStrings=GAUtils.subArray(args,2);
}

Fixed version (ground truth):
public Permutation(String[] args){
  if (args.length < 3)   GAParameters.usage("String_Node_Str",true);
  meanExchanges=Double.parseDouble(args[0]);
  sigmaExchanges=Double.parseDouble(args[1]);
  if (meanExchanges == 0 && sigmaExchanges == 0)   GAParameters.usage("String_Node_Str",true);
  pairStrings=GAUtils.subArray(args,2);
}
Program: 37811
Project: 37811
Buggy source:
@Override public void onStart(IContext context) throws JFException {
  this.engine=context.getEngine();
  this.history=context.getHistory();
  this.context=context;
  this.orderIsOpen=false;
  this.console=context.getConsole();
  this.totalProfit=0;
  this.totalCommission=0;
  this.orderLabel="String_Node_Str";
  console.getOut().println("String_Node_Str");
  subscribeInstruments();
  if (isBuyOrder ^ isSellOrder) {
    if (isBuyOrder)     orderCmd=IEngine.OrderCommand.BUYLIMIT;
 else     orderCmd=IEngine.OrderCommand.SELLLIMIT;
  }
 else {
    console.getErr().println("String_Node_Str");
    return;
  }
  double takeProfitPips=stopLossPips;
  if (rewardRiskRatio != 1) {
    takeProfitPips*=rewardRiskRatio;
    if ((takeProfitPips % 0.1) != 0) {
      takeProfitPips=(new BigDecimal(takeProfitPips)).setScale(1,BigDecimal.ROUND_HALF_UP).doubleValue();
    }
  }
  String direction=orderCmd.isLong() ? "String_Node_Str" : "String_Node_Str";
  IOrder order=submitOrder(this.constantCurrencyRisk,orderCmd,stopLossPips,takeProfitPips);
  console.getInfo().println("String_Node_Str" + order.getLabel() + "String_Node_Str"+ direction+ "String_Node_Str"+ order.getStopLossPrice()+ "String_Node_Str"+ order.getTakeProfitPrice()+ "String_Node_Str"+ order.getAmount());
  this.orderIsOpen=true;
}

Fixed version (ground truth):
@Override public void onStart(IContext context) throws JFException {
  this.engine=context.getEngine();
  this.history=context.getHistory();
  this.context=context;
  this.orderIsOpen=false;
  this.console=context.getConsole();
  this.totalProfit=0;
  this.totalCommission=0;
  this.orderLabel="String_Node_Str";
  console.getOut().println("String_Node_Str");
  subscribeInstruments();
  if (isBuyOrder ^ isSellOrder) {
    if (isBuyOrder)     orderCmd=IEngine.OrderCommand.BUY;
 else     orderCmd=IEngine.OrderCommand.SELL;
  }
 else {
    console.getErr().println("String_Node_Str");
    return;
  }
  double takeProfitPips=stopLossPips;
  if (rewardRiskRatio != 1) {
    takeProfitPips*=rewardRiskRatio;
    if ((takeProfitPips % 0.1) != 0) {
      takeProfitPips=(new BigDecimal(takeProfitPips)).setScale(1,BigDecimal.ROUND_HALF_UP).doubleValue();
    }
  }
  String direction=orderCmd.isLong() ? "String_Node_Str" : "String_Node_Str";
  IOrder order=submitOrder(this.constantCurrencyRisk,orderCmd,stopLossPips,takeProfitPips);
  console.getInfo().println("String_Node_Str" + order.getLabel() + "String_Node_Str"+ direction+ "String_Node_Str"+ order.getStopLossPrice()+ "String_Node_Str"+ order.getTakeProfitPrice()+ "String_Node_Str"+ order.getAmount());
  this.orderIsOpen=true;
}
Program: 37812
Project: 37812
Buggy source:
@Override public void onStart(IContext context) throws JFException {
  this.engine=context.getEngine();
  this.history=context.getHistory();
  this.context=context;
  this.orderIsOpen=false;
  this.console=context.getConsole();
  this.totalProfit=0;
  this.totalCommission=0;
  this.orderLabel="String_Node_Str";
  console.getOut().println("String_Node_Str");
  subscribeInstruments();
  if (isBuyOrder ^ isSellOrder) {
    if (isBuyOrder)     orderCmd=IEngine.OrderCommand.BUYLIMIT;
 else     orderCmd=IEngine.OrderCommand.SELLLIMIT;
  }
 else {
    console.getErr().println("String_Node_Str");
    return;
  }
  double takeProfitPips=stopLossPips;
  if (rewardRiskRatio != 1) {
    takeProfitPips*=rewardRiskRatio;
    if ((takeProfitPips % 0.1) != 0) {
      takeProfitPips=(new BigDecimal(takeProfitPips)).setScale(1,BigDecimal.ROUND_HALF_UP).doubleValue();
    }
  }
  String direction=orderCmd.isLong() ? "String_Node_Str" : "String_Node_Str";
  IOrder order=submitOrder(this.constantCurrencyRisk,orderCmd,stopLossPips,takeProfitPips);
  console.getInfo().println("String_Node_Str" + order.getLabel() + "String_Node_Str"+ direction+ "String_Node_Str"+ order.getStopLossPrice()+ "String_Node_Str"+ order.getTakeProfitPrice()+ "String_Node_Str"+ order.getAmount());
  this.orderIsOpen=true;
}

Fixed version (ground truth):
@Override public void onStart(IContext context) throws JFException {
  this.engine=context.getEngine();
  this.history=context.getHistory();
  this.context=context;
  this.orderIsOpen=false;
  this.console=context.getConsole();
  this.totalProfit=0;
  this.totalCommission=0;
  this.orderLabel="String_Node_Str";
  console.getOut().println("String_Node_Str");
  subscribeInstruments();
  if (isBuyOrder ^ isSellOrder) {
    if (isBuyOrder)     orderCmd=IEngine.OrderCommand.BUY;
 else     orderCmd=IEngine.OrderCommand.SELL;
  }
 else {
    console.getErr().println("String_Node_Str");
    return;
  }
  double takeProfitPips=stopLossPips;
  if (rewardRiskRatio != 1) {
    takeProfitPips*=rewardRiskRatio;
    if ((takeProfitPips % 0.1) != 0) {
      takeProfitPips=(new BigDecimal(takeProfitPips)).setScale(1,BigDecimal.ROUND_HALF_UP).doubleValue();
    }
  }
  String direction=orderCmd.isLong() ? "String_Node_Str" : "String_Node_Str";
  IOrder order=submitOrder(this.constantCurrencyRisk,orderCmd,stopLossPips,takeProfitPips);
  console.getInfo().println("String_Node_Str" + order.getLabel() + "String_Node_Str"+ direction+ "String_Node_Str"+ order.getStopLossPrice()+ "String_Node_Str"+ order.getTakeProfitPrice()+ "String_Node_Str"+ order.getAmount());
  this.orderIsOpen=true;
}
Program: 37813
Project: 37813
Buggy source:
@Override public void onBar(Instrument instrument,Period period,IBar askBar,IBar bidBar) throws JFException {
  if (instrument.equals(this.instrument) && period.equals(Period.ONE_MIN) && (orderIsOpen)) {
    checkSLMoveBE(askBar,bidBar);
  }
  if (instrument.equals(this.instrument) && period.equals(this.period) && (orderIsOpen)) {
    double[] haCandle=indicators.heikinAshi(instrument,period,OfferSide.BID,1);
    double haOpen=haCandle[0];
    double haClose=haCandle[1];
    console.getErr().println("String_Node_Str" + haOpen + "String_Node_Str"+ haClose);
    boolean closeOrder=false;
    if (isBuyOrder) {
      if (haClose < haOpen) {
        closeOrder=true;
      }
    }
 else {
      if (haClose > haOpen) {
        closeOrder=true;
      }
    }
    if (closeOrder) {
      IOrder o=engine.getOrder(orderLabel);
      if (o != null) {
        o.close();
        this.orderIsOpen=false;
      }
 else {
        console.getErr().println("String_Node_Str" + orderLabel + "String_Node_Str");
      }
    }
  }
}

Fixed version (ground truth):
@Override public void onBar(Instrument instrument,Period period,IBar askBar,IBar bidBar) throws JFException {
  if (instrument.equals(this.instrument) && period.equals(Period.ONE_MIN) && (orderIsOpen)) {
    checkSLMoveBE(askBar,bidBar);
  }
  if (instrument.equals(this.instrument) && period.equals(this.period) && (orderIsOpen)) {
    double[] haCandle=indicators.heikinAshi(instrument,period,OfferSide.BID,1);
    double haOpen=haCandle[0];
    double haClose=haCandle[1];
    boolean closeOrder=false;
    if (isBuyOrder) {
      if (haClose < haOpen) {
        closeOrder=true;
      }
    }
 else {
      if (haClose > haOpen) {
        closeOrder=true;
      }
    }
    if (closeOrder) {
      IOrder o=engine.getOrder(orderLabel);
      if (o != null) {
        o.close();
        this.orderIsOpen=false;
      }
 else {
        console.getErr().println("String_Node_Str" + orderLabel + "String_Node_Str");
      }
    }
  }
}
Program: 37815
Project: 37815
Buggy source:
@Before public void setUp(){
  FakeApplication app=Helpers.fakeApplication();
  Helpers.start(app);
  Option<JPAPlugin> jpaPlugin=app.getWrappedApplication().plugin(JPAPlugin.class);
  em=jpaPlugin.get().em("String_Node_Str");
  JPA.bindForCurrentThread(em);
}

Fixed version (ground truth):
@Before public void setUp(){
  FakeApplication app=Helpers.fakeApplication();
  Helpers.start(app);
  Option<JPAPlugin> jpaPlugin=app.getWrappedApplication().plugin(JPAPlugin.class);
  em=jpaPlugin.get().em("String_Node_Str");
  JPA.bindForCurrentThread(em);
  em.getTransaction().begin();
}
Program: 37816
Project: 37816
Buggy source:
@After public void tearDown(){
  JPA.bindForCurrentThread(null);
  em.close();
}

Fixed version (ground truth):
@After public void tearDown(){
  em.getTransaction().commit();
  JPA.bindForCurrentThread(null);
  em.close();
}
Program: 37817
Project: 37817
Buggy source:
public void doDelete(HttpServletRequest request,HttpServletResponse response) throws IOException, ServletException {
  BufferedReader br=new BufferedReader(new InputStreamReader(request.getInputStream()));
  String json="String_Node_Str";
  if (br != null) {
    String nextLine=br.readLine();
    while (nextLine != null) {
      json+=nextLine;
      nextLine=br.readLine();
    }
    br.close();
  }
  System.out.println(json);
  ScheduleResponse jobData=this.mapper.readValue(json,ScheduleResponse.class);
  response.setContentType("String_Node_Str");
  ScheduleResponse responseContent=unschedule(jobData);
  mapper.writeValue(response.getOutputStream(),responseContent);
}

Fixed version (ground truth):
public void doDelete(HttpServletRequest request,HttpServletResponse response) throws IOException, ServletException {
  String path=request.getRequestURI();
  String[] parts=path.split("String_Node_Str");
  String key=parts[parts.length - 1];
  response.setContentType("String_Node_Str");
  ScheduleResponse responseContent=unschedule(key);
  mapper.writeValue(response.getOutputStream(),responseContent);
}
Program: 37818
Project: 37818
Buggy source:
private ScheduleResponse unschedule(ScheduleResponse jobDataCancel){
  String[] parts=jobDataCancel.getKey().split("String_Node_Str");
  ScheduleResponse response=new ScheduleResponse();
  response.setKey("String_Node_Str");
  if (parts.length == 2) {
    try {
      scheduler.deleteJob(new JobKey(parts[1],parts[0]));
      response.setKey("String_Node_Str");
      return response;
    }
 catch (    SchedulerException e) {
      System.out.println("String_Node_Str");
      e.printStackTrace();
    }
  }
  return response;
}

Fixed version (ground truth):
private ScheduleResponse unschedule(String key){
  String[] parts=key.split("String_Node_Str");
  ScheduleResponse response=new ScheduleResponse();
  response.setKey("String_Node_Str");
  if (parts.length == 2) {
    try {
      scheduler.deleteJob(new JobKey(parts[1],parts[0]));
      response.setKey("String_Node_Str");
      return response;
    }
 catch (    SchedulerException e) {
      System.out.println("String_Node_Str");
      e.printStackTrace();
    }
  }
  return response;
}
Program: 37819
Project: 37819
Buggy source:
private ScheduleResponse schedule(JobData jobData) throws SchedulerException {
  JobDetail job=newJob(HttpJob.class).withIdentity(UUID.randomUUID().toString(),"String_Node_Str").usingJobData("String_Node_Str",jobData.getUrl()).usingJobData("String_Node_Str",jobData.getPayload()).build();
  Date startTime=new Date(jobData.getTimestamp());
  Trigger trigger=newTrigger().withIdentity(UUID.randomUUID().toString(),"String_Node_Str").startAt(startTime).build();
  scheduler.scheduleJob(job,trigger);
  TriggerKey triggerKey=trigger.getKey();
  ScheduleResponse response=new ScheduleResponse();
  response.setKey(triggerKey.getGroup() + "String_Node_Str" + triggerKey.getName());
  System.out.println("String_Node_Str" + startTime);
  return response;
}

Fixed version (ground truth):
private ScheduleResponse schedule(JobData jobData) throws SchedulerException {
  JobDetail job=newJob(HttpJob.class).withIdentity(UUID.randomUUID().toString(),"String_Node_Str").usingJobData("String_Node_Str",jobData.getUrl()).usingJobData("String_Node_Str",jobData.getPayload()).build();
  Date startTime=new Date(jobData.getTimestamp());
  Trigger trigger=newTrigger().withIdentity(UUID.randomUUID().toString(),"String_Node_Str").startAt(startTime).build();
  scheduler.scheduleJob(job,trigger);
  TriggerKey triggerKey=trigger.getKey();
  ScheduleResponse response=new ScheduleResponse();
  response.setKey(triggerKey.getGroup() + JobDataId.groupDelimiter + triggerKey.getName()+ JobDataId.triggerJobDelimiter+ job.getKey().getName());
  System.out.println("String_Node_Str" + startTime);
  return response;
}
Program: 37820
Project: 37820
Buggy source:
public void doDelete(HttpServletRequest request,HttpServletResponse response) throws IOException, ServletException {
  System.out.println("String_Node_Str");
  String path=request.getRequestURI();
  String[] parts=path.split("String_Node_Str");
  String key=parts[parts.length - 1];
  response.setContentType("String_Node_Str");
  ScheduleResponse responseContent=unschedule(key);
  mapper.writeValue(response.getOutputStream(),responseContent);
  System.out.println("String_Node_Str");
}

Fixed version (ground truth):
public void doDelete(HttpServletRequest request,HttpServletResponse response) throws IOException, ServletException {
  System.out.println("String_Node_Str");
  String path=request.getRequestURI();
  String[] parts=path.split("String_Node_Str");
  String key=parts[parts.length - 1];
  System.out.println("String_Node_Str" + key);
  JobDataId jobDataId=new JobDataId();
  jobDataId.setJobId(key);
  response.setContentType("String_Node_Str");
  ScheduleResponse responseContent=unschedule(jobDataId);
  mapper.writeValue(response.getOutputStream(),responseContent);
  System.out.println("String_Node_Str");
}
Program: 37821
Project: 37821
Buggy source:
private ScheduleResponse update(JobData jobData,JobDataId jobDataId) throws SchedulerException {
  JobDetail job=newJob(HttpJob.class).withIdentity(jobDataId.getName(),jobDataId.getGroup()).usingJobData("String_Node_Str",jobData.getUrl()).usingJobData("String_Node_Str",jobData.getPayload()).build();
  scheduler.addJob(job,true,true);
  Date startTime=new Date(jobData.getTimestamp());
  Trigger oldTrigger=scheduler.getTrigger(TriggerKey.triggerKey(jobDataId.getName(),jobDataId.getGroup()));
  Trigger newTrigger=newTrigger().withIdentity(jobDataId.getName(),jobDataId.getGroup()).startAt(startTime).build();
  scheduler.rescheduleJob(oldTrigger.getKey(),newTrigger);
  ScheduleResponse response=new ScheduleResponse();
  response.setKey(jobDataId.getJobId());
  System.out.println("String_Node_Str" + jobDataId.getJobId());
  return response;
}

Fixed version (ground truth):
private ScheduleResponse update(JobData jobData,JobDataId jobDataId) throws SchedulerException {
  System.out.println(jobData);
  JobDetail job=newJob(HttpJob.class).withIdentity(jobDataId.getJobName(),jobDataId.getGroup()).usingJobData("String_Node_Str",jobData.getUrl()).usingJobData("String_Node_Str",jobData.getPayload()).build();
  scheduler.addJob(job,true,true);
  Date startTime=new Date(jobData.getTimestamp());
  Trigger oldTrigger=scheduler.getTrigger(TriggerKey.triggerKey(jobDataId.getTriggerName(),jobDataId.getGroup()));
  Trigger newTrigger=newTrigger().withIdentity(jobDataId.getTriggerName(),jobDataId.getGroup()).startAt(startTime).build();
  scheduler.rescheduleJob(oldTrigger.getKey(),newTrigger);
  ScheduleResponse response=new ScheduleResponse();
  response.setKey(jobDataId.getJobId());
  System.out.println("String_Node_Str" + jobDataId.getJobId());
  return response;
}
Program: 37822
Project: 37822
Buggy source:
private ScheduleResponse unschedule(String key){
  String[] parts=key.split("String_Node_Str");
  ScheduleResponse response=new ScheduleResponse();
  response.setKey("String_Node_Str");
  if (parts.length == 2) {
    try {
      scheduler.deleteJob(new JobKey(parts[1],parts[0]));
      response.setKey("String_Node_Str");
      System.out.println("String_Node_Str" + key);
      return response;
    }
 catch (    SchedulerException e) {
      System.out.println("String_Node_Str" + key);
      e.printStackTrace();
    }
  }
 else {
    System.out.println("String_Node_Str" + key);
  }
  return response;
}

Fixed version (ground truth):
private ScheduleResponse unschedule(JobDataId jobDataId){
  ScheduleResponse response=new ScheduleResponse();
  response.setKey("String_Node_Str");
  try {
    scheduler.deleteJob(new JobKey(jobDataId.getJobName(),jobDataId.getGroup()));
    response.setKey("String_Node_Str");
    System.out.println("String_Node_Str" + jobDataId.getJobName());
    return response;
  }
 catch (  SchedulerException e) {
    System.out.println("String_Node_Str" + jobDataId.getJobName());
    e.printStackTrace();
  }
  return response;
}
Program: 37823
Project: 37823
Buggy source:
public String getName(){
  if (jobId == null) {
    return "String_Node_Str";
  }
  String[] parts=jobId.split("String_Node_Str");
  if (parts.length > 1) {
    return parts[1];
  }
  return "String_Node_Str";
}

Fixed version (ground truth):
private String getName(){
  if (jobId == null) {
    return "String_Node_Str";
  }
  String[] parts=jobId.split(groupDelimiter);
  if (parts.length > 1) {
    return parts[1];
  }
  return "String_Node_Str";
}
Program: 37824
Project: 37824
Buggy source:
public String getGroup(){
  if (jobId == null) {
    return "String_Node_Str";
  }
  return jobId.split("String_Node_Str")[0];
}

Fixed version (ground truth):
public String getGroup(){
  if (jobId == null) {
    return "String_Node_Str";
  }
  return jobId.split(groupDelimiter)[0];
}
Program: 37825
Project: 37825
Buggy source:
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException {
  s.defaultReadObject();
  Gdx.app.log("String_Node_Str","String_Node_Str" + manList.size() + "String_Node_Str"+ buildingsList.size());
  for (  Man man : manList) {
    Singleton.getInstance(Renderer.class).attachDrawScissor(man);
  }
  for (  Building building : buildingsList) {
    Singleton.getInstance(Renderer.class).attachDrawScissor(building);
    Singleton.getInstance(CollisionDetector.class).attachCollisionDetection(building);
    if (building.getType() == BuildingType.FarmHouse)     for (    FarmLand land : ((FarmHouse)building).getFarmLands()) {
      Singleton.getInstance(Renderer.class).attachDrawScissor(land);
      Singleton.getInstance(CollisionDetector.class).attachCollisionDetection(land);
    }
    if (building.getType() == BuildingType.Ranch)     for (    RanchLand land : ((Ranch)building).getRanchLands()) {
      Singleton.getInstance(Renderer.class).attachDrawScissor(land);
      Singleton.getInstance(CollisionDetector.class).attachCollisionDetection(land);
    }
  }
}

Fixed version (ground truth):
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException {
  s.defaultReadObject();
  Gdx.app.log("String_Node_Str","String_Node_Str" + manList.size() + "String_Node_Str"+ buildingsList.size());
  for (  Man man : manList) {
    Singleton.getInstance(Renderer.class).attachDrawScissor(man);
  }
  for (  Building building : buildingsList) {
    Singleton.getInstance(Renderer.class).attachDrawScissor(building);
    Singleton.getInstance(CollisionDetector.class).attachCollisionDetection(building);
    if (building.getType() == BuildingType.FarmHouse)     for (    FarmLand land : ((FarmHouse)building).getFarmLands()) {
      Singleton.getInstance(Renderer.class).attachDrawScissor(land);
      Singleton.getInstance(CollisionDetector.class).attachCollisionDetection(land);
    }
    if (building.getType() == BuildingType.Ranch)     for (    RanchLand land : ((Ranch)building).getRanchLands()) {
      Singleton.getInstance(Renderer.class).attachDrawScissor(land);
      Singleton.getInstance(CollisionDetector.class).attachCollisionDetection(land);
    }
  }
  for (  Man man : manList) {
    ManInfo minfo=man.getInfo();
    minfo.interpretBuildingHashCode(buildingsList);
  }
}
Program: 37826
Project: 37826
Buggy source:
public Building(String textureName,BuildingType type){
  super(textureName);
  this.buildingType=type;
  init();
  mSprite.getTexture().setFilter(TextureFilter.Linear,TextureFilter.Linear);
}

Fixed version (ground truth):
public Building(String textureName,BuildingType type){
  super(textureName);
  this.buildingType=type;
  init();
  mSprite.getTexture().setFilter(TextureFilter.Linear,TextureFilter.Linear);
  hashCode=hashCode();
}
Program: 37827
Project: 37827
Buggy source:
void addBuilderButtons(){
  for (int i=0; i < numAllowed; i++) {
    FlipButton btn;
    btn=new FlipButton(allowedBuilderTexture,allowedBuilderTexture,null);
    builderButtons.add(btn);
    btn.setPosition(BUILDER_WIDTH * i,0);
    btn.setSize(BUILDER_WIDTH,BUILDER_WIDTH);
    final int indexOfClickedButton=i;
    btn.addListener(new EventListener(){
      @Override public boolean handle(      Event event){
        FlipButton clickedButton=builderButtons.get(indexOfClickedButton);
        if (clickedButton.getImgUp() == forbiddenBuilderTexture) {
          clickedButton.setImgUp(allowedBuilderTexture);
          numSelected=indexOfClickedButton + 1;
        }
 else {
          clickedButton.setImgUp(forbiddenBuilderTexture);
          numSelected=indexOfClickedButton;
        }
        window.builderLimitSelected(numSelected);
        for (int i=0; i < numAllowed; i++) {
          if (i == indexOfClickedButton)           continue;
          if (i < numSelected) {
            if (i < numBuilder) {
              builderButtons.get(i).setImgUp(builderTexture);
            }
 else {
              builderButtons.get(i).setImgUp(allowedBuilderTexture);
            }
          }
 else {
            builderButtons.get(i).setImgUp(forbiddenBuilderTexture);
          }
        }
        return true;
      }
    }
);
    addActor(btn);
  }
}

Fixed version (ground truth):
void addBuilderButtons(){
  for (int i=0; i < numAllowed; i++) {
    FlipButton btn;
    btn=new FlipButton(allowedBuilderTexture,allowedBuilderTexture,null);
    builderButtons.add(btn);
    btn.setPosition(BUILDER_WIDTH * i,0);
    btn.setSize(BUILDER_WIDTH,BUILDER_WIDTH);
    final int indexOfClickedButton=i;
    btn.addListener(new InputListener(){
      @Override public boolean touchDown(      InputEvent event,      float x,      float y,      int pointer,      int button){
        FlipButton clickedButton=builderButtons.get(indexOfClickedButton);
        if (clickedButton.getImgUp() == forbiddenBuilderTexture) {
          clickedButton.setImgUp(allowedBuilderTexture);
          numSelected=indexOfClickedButton + 1;
        }
 else {
          clickedButton.setImgUp(forbiddenBuilderTexture);
          numSelected=indexOfClickedButton;
        }
        window.builderLimitSelected(numSelected);
        for (int i=0; i < numAllowed; i++) {
          if (i == indexOfClickedButton)           continue;
          if (i < numSelected) {
            if (i < numBuilder) {
              builderButtons.get(i).setImgUp(builderTexture);
            }
 else {
              builderButtons.get(i).setImgUp(allowedBuilderTexture);
            }
          }
 else {
            builderButtons.get(i).setImgUp(forbiddenBuilderTexture);
          }
        }
        return true;
      }
    }
);
    addActor(btn);
  }
}
Program: 37828
Project: 37828
Buggy source:
public void doConstructionWork(int amount){
  finishedConstructionWork=Math.min(constructionWork,finishedConstructionWork + amount);
  constructionWindow.setProcess(getProcess());
}

Fixed version (ground truth):
public void doConstructionWork(int amount){
  finishedConstructionWork=Math.min(constructionWork,finishedConstructionWork + amount);
  if (constructionWindow != null)   constructionWindow.setProcess(getProcess());
}
Program: 37829
Project: 37829
Buggy source:
void addBuilderButtons(){
  for (int i=0; i < numAllowed; i++) {
    FlipButton btn;
    btn=new FlipButton(allowedBuilderTexture,allowedBuilderTexture,null);
    builderButtons.add(btn);
    btn.setPosition(BUILDER_WIDTH * i,0);
    btn.setSize(BUILDER_WIDTH,BUILDER_WIDTH);
    final int indexOfClickedButton=i;
    btn.addListener(new EventListener(){
      @Override public boolean handle(      Event event){
        FlipButton clickedButton=builderButtons.get(indexOfClickedButton);
        if (clickedButton.getImgUp() == forbiddenBuilderTexture) {
          clickedButton.setImgUp(allowedBuilderTexture);
          numSelected++;
        }
 else {
          clickedButton.setImgUp(forbiddenBuilderTexture);
          numSelected--;
        }
        numSelected=indexOfClickedButton + 1;
        window.builderLimitSelected(numSelected);
        for (int i=0; i < numAllowed; i++) {
          if (i == indexOfClickedButton)           continue;
          if (i < numSelected) {
            if (i < numBuilder) {
              builderButtons.get(i).setImgUp(builderTexture);
            }
 else {
              builderButtons.get(i).setImgUp(allowedBuilderTexture);
            }
          }
 else {
            builderButtons.get(i).setImgUp(forbiddenBuilderTexture);
          }
        }
        return true;
      }
    }
);
    addActor(btn);
  }
}

Fixed version (ground truth):
void addBuilderButtons(){
  for (int i=0; i < numAllowed; i++) {
    FlipButton btn;
    btn=new FlipButton(allowedBuilderTexture,allowedBuilderTexture,null);
    builderButtons.add(btn);
    btn.setPosition(BUILDER_WIDTH * i,0);
    btn.setSize(BUILDER_WIDTH,BUILDER_WIDTH);
    final int indexOfClickedButton=i;
    btn.addListener(new EventListener(){
      @Override public boolean handle(      Event event){
        FlipButton clickedButton=builderButtons.get(indexOfClickedButton);
        if (clickedButton.getImgUp() == forbiddenBuilderTexture) {
          clickedButton.setImgUp(allowedBuilderTexture);
          numSelected=indexOfClickedButton + 1;
        }
 else {
          clickedButton.setImgUp(forbiddenBuilderTexture);
          numSelected=indexOfClickedButton;
        }
        window.builderLimitSelected(numSelected);
        for (int i=0; i < numAllowed; i++) {
          if (i == indexOfClickedButton)           continue;
          if (i < numSelected) {
            if (i < numBuilder) {
              builderButtons.get(i).setImgUp(builderTexture);
            }
 else {
              builderButtons.get(i).setImgUp(allowedBuilderTexture);
            }
          }
 else {
            builderButtons.get(i).setImgUp(forbiddenBuilderTexture);
          }
        }
        return true;
      }
    }
);
    addActor(btn);
  }
}
Program: 37830
Project: 37830
Buggy source:
@Override public boolean handle(Event event){
  FlipButton clickedButton=builderButtons.get(indexOfClickedButton);
  if (clickedButton.getImgUp() == forbiddenBuilderTexture) {
    clickedButton.setImgUp(allowedBuilderTexture);
    numSelected++;
  }
 else {
    clickedButton.setImgUp(forbiddenBuilderTexture);
    numSelected--;
  }
  numSelected=indexOfClickedButton + 1;
  window.builderLimitSelected(numSelected);
  for (int i=0; i < numAllowed; i++) {
    if (i == indexOfClickedButton)     continue;
    if (i < numSelected) {
      if (i < numBuilder) {
        builderButtons.get(i).setImgUp(builderTexture);
      }
 else {
        builderButtons.get(i).setImgUp(allowedBuilderTexture);
      }
    }
 else {
      builderButtons.get(i).setImgUp(forbiddenBuilderTexture);
    }
  }
  return true;
}

Fixed version (ground truth):
@Override public boolean handle(Event event){
  FlipButton clickedButton=builderButtons.get(indexOfClickedButton);
  if (clickedButton.getImgUp() == forbiddenBuilderTexture) {
    clickedButton.setImgUp(allowedBuilderTexture);
    numSelected=indexOfClickedButton + 1;
  }
 else {
    clickedButton.setImgUp(forbiddenBuilderTexture);
    numSelected=indexOfClickedButton;
  }
  window.builderLimitSelected(numSelected);
  for (int i=0; i < numAllowed; i++) {
    if (i == indexOfClickedButton)     continue;
    if (i < numSelected) {
      if (i < numBuilder) {
        builderButtons.get(i).setImgUp(builderTexture);
      }
 else {
        builderButtons.get(i).setImgUp(allowedBuilderTexture);
      }
    }
 else {
      builderButtons.get(i).setImgUp(forbiddenBuilderTexture);
    }
  }
  return true;
}
Program: 37831
Project: 37831
Buggy source:
public void createTestWindow(){
}

Fixed version (ground truth):
public void createTestWindow(){
  LabelStyle labelStyle=new LabelStyle();
  labelStyle.font=ResourceManager.getInstance(ResourceManager.class).getFont((int)(Settings.UNIT * 0.3f));
  labelStyle.fontColor=Color.WHITE;
  Label label=new Label("String_Node_Str",labelStyle);
  label.setSize(60,40);
  label.setPosition(0,0);
  label.setAlignment(Align.center);
  Table table=new Table();
  table.add(label).spaceLeft(10f);
  table.setSize(200,200);
  table.setPosition(300,300);
  mStage.addActor(table);
}
Program: 37833
Project: 37833
Buggy source:
public boolean sameConcept(Unit toUnit){
  if (this.getBaseName() != toUnit.getBaseName() && getParentQuantity() != toUnit.getParentQuantity() && !getParentQuantity().getConcept().equals(toUnit.getParentQuantity().getConcept())) {
    return false;
  }
  return true;
}

Fixed version (ground truth):
public boolean sameConcept(Unit toUnit){
  if (!this.getBaseName().equalsIgnoreCase(toUnit.getBaseName()) && getParentQuantity() != toUnit.getParentQuantity() && (getParentQuantity() == null || toUnit.getParentQuantity() == null || !getParentQuantity().getConcept().equalsIgnoreCase(toUnit.getParentQuantity().getConcept()))) {
    return false;
  }
  return true;
}
Program: 37835
Project: 37835
Buggy source:
/** 
 * Get the exact k best parses for the sentence.
 * @param k The number of best parses to return
 * @return The exact k best parses for the sentence, witheach accompanied by its score (typically a negative log probability).
 */
public List<ScoredObject<Tree>> getKBestParses(int k){
  cand=new HashMap<Vertex,PriorityQueue<Derivation>>();
  dHat=new HashMap<Vertex,LinkedList<Derivation>>();
  int start=0;
  int end=length;
  int goal=stateIndex.indexOf(goalStr);
  Vertex v=new Vertex(goal,start,end);
  List<ScoredObject<Tree>> kBestTrees=new ArrayList<ScoredObject<Tree>>();
  for (int i=1; i <= k; i++) {
    Tree internalTree=getTree(v,i,k);
    if (internalTree == null) {
      break;
    }
    kBestTrees.add(new ScoredObject<Tree>(internalTree,dHat.get(v).get(i - 1).score));
  }
  return kBestTrees;
}

Fixed version (ground truth):
/** 
 * Get the exact k best parses for the sentence.
 * @param k The number of best parses to return
 * @return The exact k best parses for the sentence, witheach accompanied by its score (typically a negative log probability).
 */
public List<ScoredObject<Tree>> getKBestParses(int k){
  cand=new HashMap<Vertex,PriorityQueue<Derivation>>();
  dHat=new HashMap<Vertex,LinkedList<Derivation>>();
  int start=0;
  int end=length;
  int goal=stateIndex.indexOf(goalStr);
  Vertex v=new Vertex(goal,start,end);
  List<ScoredObject<Tree>> kBestTrees=new ArrayList<ScoredObject<Tree>>();
  for (int i=1; i <= k; i++) {
    Tree internalTree=getTree(v,i,k);
    if (internalTree == null) {
      break;
    }
    kBestTrees.add(new ScoredObject<Tree>(internalTree,dHat.get(v).get(i - 1).score));
    double score=scoreBinarizedTree(internalTree,0);
    assert(Math.abs(score - dHat.get(v).get(i - 1).score) < 1e-6);
  }
  return kBestTrees;
}
Program: 37836
Project: 37836
Buggy source:
private List<Arc> getBackwardsStar(Vertex v){
  List<Arc> bs=new ArrayList<Arc>();
  if (isTag[v.goal]) {
    List<Vertex> tails=new ArrayList<Vertex>();
    double score=iScore[v.start][v.end][v.goal];
    Arc arc=new Arc(tails,v,score);
    bs.add(arc);
  }
  for (int split=v.start + 1; split < v.end; split++) {
    for (    BinaryRule br : bg.ruleListByParent(v.goal)) {
      Vertex lChild=new Vertex(br.leftChild,v.start,split);
      Vertex rChild=new Vertex(br.rightChild,split,v.end);
      List<Vertex> tails=new ArrayList<Vertex>();
      tails.add(lChild);
      tails.add(rChild);
      Arc arc=new Arc(tails,v,br.score);
      bs.add(arc);
    }
  }
  for (  UnaryRule ur : ug.rulesByParent(v.goal)) {
    Vertex child=new Vertex(ur.child,v.start,v.end);
    List<Vertex> tails=new ArrayList<Vertex>();
    tails.add(child);
    Arc arc=new Arc(tails,v,ur.score);
    bs.add(arc);
  }
  return bs;
}

Fixed version (ground truth):
private List<Arc> getBackwardsStar(Vertex v){
  List<Arc> bs=new ArrayList<Arc>();
  if (isTag[v.goal] && v.start == v.end - 1) {
    List<Vertex> tails=new ArrayList<Vertex>();
    double score=iScore[v.start][v.end][v.goal];
    Arc arc=new Arc(tails,v,score);
    bs.add(arc);
  }
  for (int split=v.start + 1; split < v.end; split++) {
    for (    BinaryRule br : bg.ruleListByParent(v.goal)) {
      Vertex lChild=new Vertex(br.leftChild,v.start,split);
      Vertex rChild=new Vertex(br.rightChild,split,v.end);
      List<Vertex> tails=new ArrayList<Vertex>();
      tails.add(lChild);
      tails.add(rChild);
      Arc arc=new Arc(tails,v,br.score + lex.score(br,v.start,v.end,split));
      bs.add(arc);
    }
  }
  for (  UnaryRule ur : ug.rulesByParent(v.goal)) {
    Vertex child=new Vertex(ur.child,v.start,v.end);
    List<Vertex> tails=new ArrayList<Vertex>();
    tails.add(child);
    Arc arc=new Arc(tails,v,ur.score);
    bs.add(arc);
  }
  return bs;
}
Program: 37838
Project: 37838
Buggy source:
public void print(FTypes[] values){
  for (int i=0; i < fvals.length; i++) {
    if (fvals[i] > Float.MIN_VALUE) {
      System.out.println(values[i].name() + "String_Node_Str" + fvals[i]);
    }
  }
  return;
}

Fixed version (ground truth):
public void print(FTypes[] values,double[] weights){
  for (int i=0; i < fvals.length; i++) {
    if (fvals[i] > Float.MIN_VALUE) {
      System.out.println(values[i].name() + "String_Node_Str" + fvals[i]+ "String_Node_Str"+ (weights[i] * fvals[i]));
    }
  }
  return;
}
Program: 37839
Project: 37839
Buggy source:
public public void onServiceStateChanged(ServiceState serviceState){
  if (serviceState.getState() == ServiceState.STATE_OUT_OF_SERVICE) {
    intent=new Intent(context,DarkService.class);
    intent.setAction(DarkService.ACTION_RADIO_LOST);
    context.startService(intent);
  }
}

Fixed version (ground truth):
public void onServiceStateChanged(ServiceState serviceState){
  if (serviceState.getState() == ServiceState.STATE_OUT_OF_SERVICE) {
    Intent intent=new Intent(RadioMonitor.this,DarkService.class);
    intent.setAction(DarkService.ACTION_RADIO_LOST);
    startService(intent);
  }
}
Program: 37840
Project: 37840
Buggy source:
public void init(){
  TelephonyManager telephony=Context.getSystemService(Context.TELEPHONY_SERVICE);
  telephony.listen(new PhoneListener(),PhoneStateListener.LISTEN_SERVICE_STATE);
}

Fixed version (ground truth):
public void init(){
  TelephonyManager telephony=(TelephonyManager)getSystemService(TELEPHONY_SERVICE);
  telephony.listen(new PhoneListener(),PhoneStateListener.LISTEN_SERVICE_STATE);
}
Program: 37841
Project: 37841
Buggy source:
private void create(){
  Intent intent=new Intent(this,DarkService.class);
  intent.setAction(DarkService.ACTION_CREATE);
  intent.putExtra(DarkService.EXTRA_VOLUME_PATH,"String_Node_Str");
  intent.putExtra(DarkService.EXTRA_SIZE,42);
  intent.putExtra(DarkService.EXTRA_PASS_1,"String_Node_Str");
  intent.putExtra(DarkService.EXTRA_PASS_2,"String_Node_Str");
  startService(intent);
}

Fixed version (ground truth):
private void create(){
  Intent intent=new Intent(this,DarkService.class);
  intent.setAction(DarkService.ACTION_CREATE);
  intent.putExtra(DarkService.EXTRA_VOLUME_PATH,getFilesDir() + "String_Node_Str");
  intent.putExtra(DarkService.EXTRA_SIZE1,2048);
  intent.putExtra(DarkService.EXTRA_SIZE2,1024);
  intent.putExtra(DarkService.EXTRA_PASS_1,"String_Node_Str");
  intent.putExtra(DarkService.EXTRA_PASS_2,"String_Node_Str");
  startService(intent);
}
Program: 37842
Project: 37842
Buggy source:
private void close(){
  Intent intent=new Intent(this,DarkService.class);
  intent.setAction(DarkService.ACTION_CLOSE);
  intent.putExtra(DarkService.EXTRA_VOLUME_PATH,"String_Node_Str");
  startService(intent);
}

Fixed version (ground truth):
private void close(){
  Intent intent=new Intent(this,DarkService.class);
  intent.setAction(DarkService.ACTION_CLOSE);
  intent.putExtra(DarkService.EXTRA_VOLUME_PATH,getFilesDir() + "String_Node_Str");
  startService(intent);
}
Program: 37843
Project: 37843
Buggy source:
private void delete(){
  Intent intent=new Intent(this,DarkService.class);
  intent.setAction(DarkService.ACTION_DELETE);
  intent.putExtra(DarkService.EXTRA_MOUNT_PATH,"String_Node_Str");
  startService(intent);
}

Fixed version (ground truth):
private void delete(){
  Intent intent=new Intent(this,DarkService.class);
  intent.setAction(DarkService.ACTION_DELETE);
  intent.putExtra(DarkService.EXTRA_VOLUME_PATH,getFilesDir() + "String_Node_Str");
  startService(intent);
}
Program: 37844
Project: 37844
Buggy source:
private void open(){
  Intent intent=new Intent(this,DarkService.class);
  intent.setAction(DarkService.ACTION_OPEN);
  intent.putExtra(DarkService.EXTRA_VOLUME_PATH,"String_Node_Str");
  startService(intent);
}

Fixed version (ground truth):
private void open(){
  Intent intent=new Intent(this,DarkService.class);
  intent.setAction(DarkService.ACTION_OPEN);
  intent.putExtra(DarkService.EXTRA_VOLUME_PATH,getFilesDir() + "String_Node_Str");
  intent.putExtra(DarkService.EXTRA_MOUNT_PATH,"String_Node_Str");
  intent.putExtra(DarkService.EXTRA_PASS,"String_Node_Str");
  startService(intent);
}