nus-yam/ex-repair huggingface dataset:
Program: 10175
Project: 10175
Buggy source:
/** 
 * make init-button red if you have to click
 */
public void updateInitButtonColor(){
  if (!config.isInitKnowledgeSource()) {
    initButton.setForeground(Color.RED);
  }
 else   initButton.setForeground(Color.BLACK);
}

Fixed version (ground truth):
/** 
 * make init-button red if you have to click
 */
public void updateInitButtonColor(){
  if (!config.needsInitKnowledgeSource()) {
    initButton.setForeground(Color.RED);
  }
 else   initButton.setForeground(Color.BLACK);
}
Program: 10176
Project: 10176
Buggy source:
/** 
 * after this, you can change widgets
 */
public void setSource(){
  config.setKnowledgeSource(config.getComponentManager().knowledgeSource(selectableSources.get(choosenClassIndex)));
  config.setInitKnowledgeSource(false);
  updateAll();
}

Fixed version (ground truth):
/** 
 * after this, you can change widgets
 */
public void setSource(){
  config.setKnowledgeSource(config.getComponentManager().knowledgeSource(selectableSources.get(choosenClassIndex)));
  updateAll();
}
Program: 10177
Project: 10177
Buggy source:
/** 
 * after this, next tab can be used
 */
public void init(){
  setSource();
  if (config.getKnowledgeSource() != null && config.isSetURL()) {
    try {
      config.getKnowledgeSource().init();
      config.setInitKnowledgeSource(true);
      System.out.println("String_Node_Str");
      startGUI.updateTabColors();
    }
 catch (    ComponentInitException e) {
      e.printStackTrace();
    }
  }
}

Fixed version (ground truth):
/** 
 * after this, next tab can be used
 */
public void init(){
  setSource();
  if (config.getKnowledgeSource() != null && config.isSetURL()) {
    try {
      config.getKnowledgeSource().init();
      System.out.println("String_Node_Str");
      startGUI.updateTabColors();
    }
 catch (    ComponentInitException e) {
      e.printStackTrace();
    }
  }
}
Program: 10178
Project: 10178
Buggy source:
/** 
 * make init-button red if you have to click
 */
public void updateInitButtonColor(){
  if (!config.isInitLearningAlgorithm()) {
    initButton.setForeground(Color.RED);
  }
 else   initButton.setForeground(Color.BLACK);
}

Fixed version (ground truth):
/** 
 * make init-button red if you have to click
 */
public void updateInitButtonColor(){
  if (!config.needsInitLearningAlgorithm()) {
    initButton.setForeground(Color.RED);
  }
 else   initButton.setForeground(Color.BLACK);
}
Program: 10179
Project: 10179
Buggy source:
public void actionPerformed(ActionEvent e){
  if (choosenClassIndex != cb.getSelectedIndex()) {
    choosenClassIndex=cb.getSelectedIndex();
    config.setInitLearningAlgorithm(false);
    init();
  }
  if (e.getSource() == autoInitButton)   setLearningAlgorithm();
  if (e.getSource() == initButton)   init();
}

Fixed version (ground truth):
public void actionPerformed(ActionEvent e){
  if (choosenClassIndex != cb.getSelectedIndex()) {
    choosenClassIndex=cb.getSelectedIndex();
  }
  if (e.getSource() == autoInitButton)   setLearningAlgorithm();
}
Program: 10180
Project: 10180
Buggy source:
/** 
 * update OptionPanel with new selection
 */
public void updateOptionPanel(){
}

Fixed version (ground truth):
/** 
 * update OptionPanel with new selection
 */
public void updateOptionPanel(){
  optionPanel.update(config.getLearningAlgorithm());
}
Program: 10183
Project: 10183
Buggy source:
/** 
 * @param args
 */
public static void main(String[] args){
  System.out.println("String_Node_Str");
  SimpleLayout layout=new SimpleLayout();
  FileAppender fileAppender=null;
  ;
  try {
    fileAppender=new FileAppender(layout,"String_Node_Str",false);
  }
 catch (  Exception e) {
    e.printStackTrace();
  }
  ConsoleAppender consoleAppender=new ConsoleAppender(layout);
  logger.removeAllAppenders();
  logger.addAppender(consoleAppender);
  logger.addAppender(fileAppender);
  logger.setLevel(Level.DEBUG);
  Sample s=new Sample();
  s.owlfile="String_Node_Str";
  s.posExamples=new TreeSet<String>();
  s.negExamples=new TreeSet<String>();
  s.posExamples.add("String_Node_Str");
  s.posExamples.add("String_Node_Str");
  s.posExamples.add("String_Node_Str");
  s.posExamples.add("String_Node_Str");
  s.posExamples.add("String_Node_Str");
  s.negExamples.add("String_Node_Str");
  s.negExamples.add("String_Node_Str");
  s.negExamples.add("String_Node_Str");
  s.negExamples.add("String_Node_Str");
  s.negExamples.add("String_Node_Str");
  List<Description> conceptresults=s.learn();
  int x=0;
  for (  Description description : conceptresults) {
    if (x >= 5)     break;
    System.out.println(description.toManchesterSyntaxString(null,null));
    x++;
  }
  System.out.println("String_Node_Str");
  JamonMonitorLogger.printAllSortedByLabel();
}

Fixed version (ground truth):
public static void main(String[] args) throws IOException, ComponentInitException, LearningProblemUnsupportedException {
  SimpleLayout layout=new SimpleLayout();
  FileAppender fileAppender=new FileAppender(layout,"String_Node_Str",false);
  ConsoleAppender consoleAppender=new ConsoleAppender(layout);
  logger.removeAllAppenders();
  logger.addAppender(consoleAppender);
  logger.addAppender(fileAppender);
  logger.setLevel(Level.DEBUG);
  String owlFile="String_Node_Str";
  SortedSet<String> posExamples=new TreeSet<String>();
  posExamples.add("String_Node_Str");
  posExamples.add("String_Node_Str");
  posExamples.add("String_Node_Str");
  posExamples.add("String_Node_Str");
  posExamples.add("String_Node_Str");
  SortedSet<String> negExamples=new TreeSet<String>();
  negExamples.add("String_Node_Str");
  negExamples.add("String_Node_Str");
  negExamples.add("String_Node_Str");
  negExamples.add("String_Node_Str");
  negExamples.add("String_Node_Str");
  List<EvaluatedDescription> results=learn(owlFile,posExamples,negExamples,5);
  int x=0;
  for (  EvaluatedDescription ed : results) {
    System.out.println("String_Node_Str" + x);
    System.out.println("String_Node_Str" + ed.getDescription().toManchesterSyntaxString(null,null));
    System.out.println("String_Node_Str" + df.format(ed.getAccuracy() * 100) + "String_Node_Str");
    System.out.println();
    x++;
  }
  Files.createFile(new File("String_Node_Str"),MonitorFactory.getReport());
}
Program: 10184
Project: 10184
Buggy source:
@Override public int compare(EvaluatedDescription ed1,EvaluatedDescription ed2){
  double acc1=ed1.getAccuracy();
  double acc2=ed2.getAccuracy();
  if (acc1 > acc2)   return 1;
 else   if (acc1 < acc2)   return -1;
 else {
    int length1=ed1.getDescriptionLength();
    int length2=ed2.getDescriptionLength();
    if (length1 < length2)     return 1;
 else     if (length1 > length2)     return -1;
 else     return cc.compare(ed1.getDescription(),ed2.getDescription());
  }
}

Fixed version (ground truth):
@Override public int compare(EvaluatedDescription ed1,EvaluatedDescription ed2){
  double acc1=ed1.getAccuracy();
  double acc2=ed2.getAccuracy();
  if (acc1 > acc2)   return -1;
 else   if (acc1 < acc2)   return 1;
 else {
    int length1=ed1.getDescriptionLength();
    int length2=ed2.getDescriptionLength();
    if (length1 < length2)     return -1;
 else     if (length1 > length2)     return 1;
 else     return cc.compare(ed1.getDescription(),ed2.getDescription());
  }
}
Program: 10186
Project: 10186
Buggy source:
/** 
 * this checks for consistency and manipulates the tuples, before they get triple
 * @param tuples tuples for the node
 * @param node
 * @return
 */
public Set<StringTuple> check(Set<StringTuple> tuples,Node node){
  Set<StringTuple> toRemove=new HashSet<StringTuple>();
  Iterator<StringTuple> it=tuples.iterator();
  while (it.hasNext()) {
    StringTuple t=(StringTuple)it.next();
    replacePredicate(t);
    replaceObject(t);
    if (t.a.equals(type) && t.b.equals(classns) && node instanceof ClassNode) {
      toRemove.add(t);
    }
    if (t.b.equals(classns) && node instanceof ClassNode) {
      toRemove.add(t);
    }
    if (t.a.equals(type) && t.b.equals(thing) && node instanceof InstanceNode) {
      toRemove.add(t);
    }
  }
  tuples.removeAll(toRemove);
  return tuples;
}

Fixed version (ground truth):
/** 
 * this checks for consistency and manipulates the tuples, before they get triple
 * @param tuples tuples for the node
 * @param node
 * @return
 */
public Set<StringTuple> check(Set<StringTuple> tuples,Node node){
  Set<StringTuple> toRemove=new HashSet<StringTuple>();
  Iterator<StringTuple> it=tuples.iterator();
  float lat=0;
  float lng=0;
  String clas="String_Node_Str";
  StringTuple typeTupel=null;
  if (node.uri.toString().equals("String_Node_Str"))   tuples.add(new StringTuple("String_Node_Str","String_Node_Str"));
  while (it.hasNext()) {
    StringTuple t=(StringTuple)it.next();
    if (t.a.equals("String_Node_Str")) {
      clas=t.b;
      typeTupel=t;
    }
    if (t.a.equals("String_Node_Str"))     lat=Float.parseFloat(t.b.substring(0,t.b.indexOf("String_Node_Str")));
    if (t.a.equals("String_Node_Str"))     lng=Float.parseFloat(t.b.substring(0,t.b.indexOf("String_Node_Str")));
  }
  if (clas.equals("String_Node_Str")) {
    if (lat > 50 && lat < 52 && lng > 12 && lng < 13) {
      tuples.add(new StringTuple("String_Node_Str","String_Node_Str"));
      tuples.remove(typeTupel);
    }
  }
  return tuples;
}
Program: 10187
Project: 10187
Buggy source:
@Override public Vector<Node> expand(TypedSparqlQueryInterface tsq,Manipulators m){
  Set<StringTuple> s=tsq.getTupelForResource(uri);
  m.check(s,this);
  Vector<Node> Nodes=new Vector<Node>();
  Iterator<StringTuple> it=s.iterator();
  while (it.hasNext()) {
    StringTuple t=(StringTuple)it.next();
    if (!t.b.startsWith("String_Node_Str"))     continue;
    try {
      if (t.a.equals(Manipulators.type)) {
        ClassNode tmp=new ClassNode(new URI(t.b));
        classes.add(tmp);
        Nodes.add(tmp);
      }
 else {
        InstanceNode tmp=new InstanceNode(new URI(t.b));
        properties.add(new PropertyNode(new URI(t.a),this,tmp));
        Nodes.add(tmp);
      }
    }
 catch (    Exception e) {
      System.out.println("String_Node_Str" + t);
      e.printStackTrace();
    }
  }
  expanded=true;
  return Nodes;
}

Fixed version (ground truth):
@Override public Vector<Node> expand(TypedSparqlQueryInterface tsq,Manipulators m){
  Set<StringTuple> s=tsq.getTupelForResource(uri);
  s=m.check(s,this);
  Vector<Node> Nodes=new Vector<Node>();
  Iterator<StringTuple> it=s.iterator();
  while (it.hasNext()) {
    StringTuple t=(StringTuple)it.next();
    if (!t.b.startsWith("String_Node_Str"))     continue;
    try {
      if (t.a.equals(Manipulators.type)) {
        ClassNode tmp=new ClassNode(new URI(t.b));
        classes.add(tmp);
        Nodes.add(tmp);
      }
 else {
        InstanceNode tmp=new InstanceNode(new URI(t.b));
        properties.add(new PropertyNode(new URI(t.a),this,tmp));
        Nodes.add(tmp);
      }
    }
 catch (    Exception e) {
      System.out.println("String_Node_Str" + t);
      e.printStackTrace();
    }
  }
  expanded=true;
  return Nodes;
}
Program: 10188
Project: 10188
Buggy source:
private String internalFilterAssemblySubject(){
  String Filter="String_Node_Str";
  if (!this.sparqlQueryType.isLiterals())   Filter+="String_Node_Str";
  for (  String p : sparqlQueryType.getPredicatefilterlist()) {
    Filter+=lineend + filterPredicate(p);
  }
  for (  String o : sparqlQueryType.getObjectfilterlist()) {
    Filter+=lineend + filterObject(o);
  }
  return Filter;
}

Fixed version (ground truth):
private String internalFilterAssemblySubject(){
  String Filter="String_Node_Str";
  if (!this.sparqlQueryType.isLiterals()) {
    Filter+="String_Node_Str";
    if (sparqlQueryType.getPredicatefilterlist().size() > 0)     Filter+="String_Node_Str";
  }
 else   if (sparqlQueryType.getPredicatefilterlist().size() > 0)   Filter+="String_Node_Str";
  int i=1;
  for (  String p : sparqlQueryType.getPredicatefilterlist()) {
    if (this.sparqlQueryType.getMode() == "String_Node_Str")     if (!this.sparqlQueryType.isLiterals() || i != 1)     Filter+=lineend + filterPredicate(p);
 else     Filter+=lineend + filterPredicate(p).substring(2);
 else     if (this.sparqlQueryType.getMode() == "String_Node_Str")     if (!this.sparqlQueryType.isLiterals() || i != 1)     Filter+=lineend + allowPredicate(p);
 else     Filter+=lineend + allowPredicate(p).substring(2);
    i++;
  }
  if (sparqlQueryType.getPredicatefilterlist().size() > 0)   Filter+="String_Node_Str";
  if ((sparqlQueryType.getPredicatefilterlist().size() > 0 || !this.sparqlQueryType.isLiterals()) && sparqlQueryType.getObjectfilterlist().size() > 0)   Filter+="String_Node_Str";
 else   if (sparqlQueryType.getObjectfilterlist().size() > 0)   Filter+="String_Node_Str";
  i=1;
  for (  String o : sparqlQueryType.getObjectfilterlist()) {
    if (this.sparqlQueryType.getMode() == "String_Node_Str")     if (!this.sparqlQueryType.isLiterals() || i != 1)     Filter+=lineend + filterObject(o);
 else     Filter+=lineend + filterObject(o).substring(2);
 else     if (this.sparqlQueryType.getMode() == "String_Node_Str")     if (!this.sparqlQueryType.isLiterals() || i != 1)     Filter+=lineend + allowObject(o);
 else     Filter+=lineend + allowObject(o).substring(2);
    i++;
  }
  if (sparqlQueryType.getObjectfilterlist().size() > 0)   Filter+="String_Node_Str";
  return Filter;
}
Program: 10189
Project: 10189
Buggy source:
public String makeSubjectQueryUsingFilters(String subject){
  String Filter=internalFilterAssemblySubject();
  String ret="String_Node_Str" + lineend + "String_Node_Str"+ subject+ "String_Node_Str"+ lineend+ "String_Node_Str"+ lineend+ "String_Node_Str"+ Filter+ "String_Node_Str";
  return ret;
}

Fixed version (ground truth):
public String makeSubjectQueryUsingFilters(String subject){
  String Filter=internalFilterAssemblySubject();
  String ret="String_Node_Str";
  if (Filter.length() > 0)   ret="String_Node_Str" + lineend + "String_Node_Str"+ subject+ "String_Node_Str"+ lineend+ "String_Node_Str"+ lineend+ Filter+ "String_Node_Str";
 else   ret="String_Node_Str" + lineend + "String_Node_Str"+ subject+ "String_Node_Str";
  return ret;
}
Program: 10190
Project: 10190
Buggy source:
public static SparqlQueryType getFilterByName(String name){
  if (name.equals("String_Node_Str"))   return YagoFilter();
  if (name.equals("String_Node_Str"))   return SKOS();
  if (name.equals("String_Node_Str"))   return YAGOSKOS();
  if (name.equals("String_Node_Str"))   return YagoSpecialHierarchy();
  if (name.equals("String_Node_Str"))   return test();
  return null;
}

Fixed version (ground truth):
public static SparqlQueryType getFilterByName(String name){
  if (name.equals("String_Node_Str"))   return YagoFilter();
  if (name.equals("String_Node_Str"))   return SKOS();
  if (name.equals("String_Node_Str"))   return YAGOSKOS();
  if (name.equals("String_Node_Str"))   return YagoSpecialHierarchy();
  if (name.equals("String_Node_Str"))   return test();
  if (name.equals("String_Node_Str"))   return DBpediaNavigatorFilter();
  return null;
}
Program: 10191
Project: 10191
Buggy source:
@WebMethod public String[] getNegativeExamples(int sessionID,int componentID,String[] positives,int results,String namespace) throws ClientNotKnownException {
  SortedSet<String> set=new TreeSet<String>(Arrays.asList(positives));
  ClientState state=getState(sessionID);
  Component component=state.getComponent(componentID);
  SparqlKnowledgeSource ks=(SparqlKnowledgeSource)component;
  SPARQLTasks task=ks.getSparqlTask();
  AutomaticNegativeExampleFinderSPARQL finder=new AutomaticNegativeExampleFinderSPARQL(set,task);
  finder.makeNegativeExamplesFromRelatedInstances(set,namespace);
  finder.makeNegativeExamplesFromParallelClasses(set,2);
  SortedSet<String> negExamples=finder.getNegativeExamples(results);
  return negExamples.toArray(new String[negExamples.size()]);
}

Fixed version (ground truth):
@WebMethod public String[] getNegativeExamples(int sessionID,int componentID,String[] positives,int results,String namespace) throws ClientNotKnownException {
  SortedSet<String> set=new TreeSet<String>(Arrays.asList(positives));
  ClientState state=getState(sessionID);
  Component component=state.getComponent(componentID);
  SparqlKnowledgeSource ks=(SparqlKnowledgeSource)component;
  SPARQLTasks task=ks.getSparqlTask();
  AutomaticNegativeExampleFinderSPARQL finder=new AutomaticNegativeExampleFinderSPARQL(set,task);
  finder.makeNegativeExamplesFromParallelClasses(set,5);
  SortedSet<String> negExamples=finder.getNegativeExamples(results);
  return negExamples.toArray(new String[negExamples.size()]);
}
Program: 10192
Project: 10192
Buggy source:
/** 
 * @see #getCurrentlyBestEvaluatedDescriptions(int,double,boolean)
 */
public synchronized List<Description> getCurrentlyBestDescriptions(int nrOfDescriptions,boolean filterNonMinimalDescriptions){
  List<Description> currentlyBest=getCurrentlyBestDescriptions();
  List<Description> returnList=new LinkedList<Description>();
  int count=0;
  for (  Description ed : currentlyBest) {
    if (count >= nrOfDescriptions)     return returnList;
    if (!filterNonMinimalDescriptions || ConceptTransformation.isDescriptionMinimal(ed))     returnList.add(ed);
    count++;
  }
  return returnList;
}

Fixed version (ground truth):
/** 
 * @see #getCurrentlyBestEvaluatedDescriptions(int,double,boolean)
 */
public synchronized List<Description> getCurrentlyBestDescriptions(int nrOfDescriptions,boolean filterNonMinimalDescriptions){
  List<Description> currentlyBest=getCurrentlyBestDescriptions();
  List<Description> returnList=new LinkedList<Description>();
  for (  Description ed : currentlyBest) {
    if (returnList.size() >= nrOfDescriptions)     return returnList;
    if (!filterNonMinimalDescriptions || ConceptTransformation.isDescriptionMinimal(ed))     returnList.add(ed);
  }
  return returnList;
}
Program: 10195
Project: 10195
Buggy source:
@Override public void done(){
  List<Description> result=null;
  try {
    result=get();
  }
 catch (  InterruptedException e) {
    e.printStackTrace();
  }
catch (  ExecutionException e) {
    e.printStackTrace();
  }
  panel4.getStartButton().setEnabled(true);
  panel4.getStopButton().setEnabled(false);
  updateList(result);
  panel4.getLoadingLabel().setBusy(false);
  panel4.getStatusLabel().setText("String_Node_Str");
}

Fixed version (ground truth):
@Override public void done(){
  timer.cancel();
  List<Description> result=null;
  try {
    result=get();
  }
 catch (  InterruptedException e) {
    e.printStackTrace();
  }
catch (  ExecutionException e) {
    e.printStackTrace();
  }
  panel4.getStartButton().setEnabled(true);
  panel4.getStopButton().setEnabled(false);
  updateList(result);
  panel4.getLoadingLabel().setBusy(false);
  panel4.getStatusLabel().setText("String_Node_Str");
}
Program: 10196
Project: 10196
Buggy source:
public void actionPerformed(ActionEvent event){
  if (event.getActionCommand().equals("String_Node_Str")) {
    panel4.getModel().clear();
    panel4.getStartButton().setEnabled(false);
    panel4.getStopButton().setEnabled(true);
    worker=new ResultSwingWorker();
    worker.execute();
  }
 else {
    canceled=true;
    panel4.getStopButton().setEnabled(false);
    getWizardModel().getOre().getLa().stop();
    timer.cancel();
    panel4.getStartButton().setEnabled(true);
    panel4.getStatusLabel().setText("String_Node_Str");
    panel4.getLoadingLabel().setBusy(false);
  }
}

Fixed version (ground truth):
public void actionPerformed(ActionEvent event){
  if (event.getActionCommand().equals("String_Node_Str")) {
    panel4.getModel().clear();
    panel4.getStartButton().setEnabled(false);
    panel4.getStopButton().setEnabled(true);
    worker=new ResultSwingWorker();
    worker.execute();
  }
 else {
    canceled=true;
    panel4.getStopButton().setEnabled(false);
    la.stop();
    timer.cancel();
    panel4.getStartButton().setEnabled(true);
    panel4.getStatusLabel().setText("String_Node_Str");
    panel4.getLoadingLabel().setBusy(false);
  }
}
Program: 10197
Project: 10197
Buggy source:
@SuppressWarnings("String_Node_Str") @Override public List<Description> doInBackground(){
  panel4.getResultList().setCellRenderer(new ColumnListCellRenderer(getWizardModel().getOre()));
  panel4.getLoadingLabel().setBusy(true);
  panel4.getStatusLabel().setText("String_Node_Str");
  getWizardModel().getOre().setNoise(panel4.getNoise());
  la=getWizardModel().getOre().getLa();
  timer=new Timer();
  timer.schedule(new TimerTask(){
    @Override public void run(){
      if (la != null) {
        System.out.println(scheduledExecutionTime() - System.currentTimeMillis());
        publish(la.getCurrentlyBestDescriptions(10,true));
      }
    }
  }
,1000,1000);
  t=new Thread(new Runnable(){
    @Override public void run(){
      la.start();
    }
  }
);
  t.setPriority(Thread.MIN_PRIORITY);
  t.start();
  try {
    t.join();
  }
 catch (  InterruptedException e) {
    e.printStackTrace();
  }
  List<Description> result=getWizardModel().getOre().getLearningResults(10);
  return result;
}

Fixed version (ground truth):
@SuppressWarnings("String_Node_Str") @Override public List<Description> doInBackground(){
  panel4.getResultList().setCellRenderer(new ColumnListCellRenderer(getWizardModel().getOre()));
  panel4.getLoadingLabel().setBusy(true);
  panel4.getStatusLabel().setText("String_Node_Str");
  getWizardModel().getOre().setNoise(panel4.getNoise());
  la=getWizardModel().getOre().getLa();
  timer=new Timer();
  timer.schedule(new TimerTask(){
    @Override public void run(){
      if (la != null) {
        publish(la.getCurrentlyBestDescriptions(30,true));
      }
    }
  }
,1000,1000);
  t=new Thread(new Runnable(){
    @Override public void run(){
      getWizardModel().getOre().start();
    }
  }
);
  t.setPriority(Thread.MIN_PRIORITY);
  t.start();
  try {
    t.join();
  }
 catch (  InterruptedException e) {
    e.printStackTrace();
  }
  List<Description> result=getWizardModel().getOre().getLearningResults(30);
  return result;
}
Program: 10200
Project: 10200
Buggy source:
/** 
 * Starts the learning algorithm and returns the best concept found. This method will block until learning is completed.
 * @param id Session ID.
 * @param format The format of the result string: "manchester", "kb", "dl".
 * @return The best solution found.
 * @throws ClientNotKnownException
 */
@WebMethod public String learn(int id,String format) throws ClientNotKnownException {
  ClientState state=getState(id);
  state.getLearningAlgorithm().start();
  Description solution=state.getLearningAlgorithm().getBestSolution();
  if (format == "String_Node_Str")   return solution.toManchesterSyntaxString(state.getReasoningService().getBaseURI(),new HashMap<String,String>());
 else   if (format == "String_Node_Str")   return solution.toKBSyntaxString();
 else   return solution.toString();
}

Fixed version (ground truth):
/** 
 * Starts the learning algorithm and returns the best concept found. This method will block until learning is completed.
 * @param id Session ID.
 * @param format The format of the result string: "manchester", "kb", "dl".
 * @return The best solution found.
 * @throws ClientNotKnownException
 */
@WebMethod public String learn(int id,String format) throws ClientNotKnownException {
  ClientState state=getState(id);
  state.getLearningAlgorithm().start();
  Description solution=state.getLearningAlgorithm().getBestSolution();
  if (format.equals("String_Node_Str"))   return solution.toManchesterSyntaxString(state.getReasoningService().getBaseURI(),new HashMap<String,String>());
 else   if (format.equals("String_Node_Str"))   return solution.toKBSyntaxString();
 else   return solution.toString();
}
Program: 10201
Project: 10201
Buggy source:
public Set<Description> getSimpleSuggestions(ReasoningService rs,Set<Individual> indi){
  simpleSuggestions=new HashSet<Description>();
  List<ObjectProperty> test=rs.getAtomicRolesList();
  while (test.iterator().hasNext()) {
    test.iterator().next();
    Description d1=new ObjectSomeRestriction(test.iterator().next(),new Thing());
    test.remove(rs.getAtomicRolesList().iterator().next());
    System.out.println("String_Node_Str" + d1);
    simpleSuggestions.add(d1);
  }
  return simpleSuggestions;
}

Fixed version (ground truth):
public Set<Description> getSimpleSuggestions(ReasoningService rs,Set<Individual> indi){
  simpleSuggestions=new HashSet<Description>();
  List<ObjectProperty> test=rs.getAtomicRolesList();
  while (test.iterator().hasNext()) {
    test.iterator().next();
    Description d1=new ObjectSomeRestriction(test.iterator().next(),new Thing());
    test.remove(rs.getAtomicRolesList().iterator().next());
    simpleSuggestions.add(d1);
  }
  return simpleSuggestions;
}
Program: 10203
Project: 10203
Buggy source:
/** 
 * This method sets the individuals that belong to the concept which is chosen in protege.
 */
public void setPositiveConcept(){
  SortedSet<Individual> individuals=null;
  for (Iterator<NamedClass> i=rs.getAtomicConcepts().iterator(); i.hasNext(); ) {
    if (individuals == null) {
      NamedClass concept=i.next();
      if (concept.toString().endsWith("String_Node_Str" + aktuell.getRootObject().toString())) {
        if (rs.retrieval(concept) != null) {
          individual=rs.retrieval(concept);
          break;
        }
      }
    }
  }
}

Fixed version (ground truth):
/** 
 * This method sets the individuals that belong to the concept which is chosen in protege.
 */
public void setPositiveConcept(){
  SortedSet<Individual> individuals=null;
  if (!aktuell.getRootObject().toString().equals("String_Node_Str")) {
    for (Iterator<NamedClass> i=rs.getAtomicConcepts().iterator(); i.hasNext(); ) {
      if (individuals == null) {
        NamedClass concept=i.next();
        if (concept.toString().endsWith("String_Node_Str" + aktuell.getRootObject().toString())) {
          if (rs.retrieval(concept) != null) {
            individual=rs.retrieval(concept);
            break;
          }
        }
      }
    }
  }
 else {
    individual=rs.getIndividuals();
  }
}
Program: 10204
Project: 10204
Buggy source:
/** 
 * This method gets an Individual and checks if this individual belongs to the concept chosen in protege.
 * @param indi Individual to check if it belongs to the chosen concept 
 * @return is Individual belongs to the concept which is chosen in protege.
 */
public boolean setPositivExamplesChecked(String indi){
  boolean isChecked=false;
  if (individual.toString().contains(indi)) {
    isChecked=true;
  }
  return isChecked;
}

Fixed version (ground truth):
/** 
 * This method gets an Individual and checks if this individual belongs to the concept chosen in protege.
 * @param indi Individual to check if it belongs to the chosen concept 
 * @return is Individual belongs to the concept which is chosen in protege.
 */
public boolean setPositivExamplesChecked(String indi){
  boolean isChecked=false;
  if (individual != null) {
    if (individual.toString().contains(indi)) {
      isChecked=true;
    }
  }
  return isChecked;
}
Program: 10205
Project: 10205
Buggy source:
/** 
 * @return
 */
public OWLDescription getSollution(){
  System.out.println(model.getSolution());
  return model.getSolution();
}

Fixed version (ground truth):
/** 
 * @return
 */
public OWLDescription getSollution(){
  return model.getSolution();
}
Program: 10206
Project: 10206
Buggy source:
public void clear(){
  System.out.println("String_Node_Str");
  dllearner.unsetEverything();
  dllearner.makeView();
  handleVerifyEditorContents();
  initialDescription=null;
  editor.setText("String_Node_Str");
}

Fixed version (ground truth):
public void clear(){
  dllearner.unsetEverything();
  dllearner.makeView();
  handleVerifyEditorContents();
  initialDescription=null;
  editor.setText("String_Node_Str");
}
Program: 10207
Project: 10207
Buggy source:
@Override public Set<OWLDescription> getEditedObjects(){
  if (tabbedPane.getSelectedComponent() == classSelectorPanel) {
    return classSelectorPanel.getSelectedClasses();
  }
 else   if (tabbedPane.getSelectedComponent() == restrictionCreatorPanel) {
    return restrictionCreatorPanel.createRestrictions();
  }
 else   if (tabbedPane.getSelectedComponent() == dllearner) {
    System.out.println("String_Node_Str" + dllearner.getSollutions());
    return dllearner.getSollutions();
  }
  return super.getEditedObjects();
}

Fixed version (ground truth):
@Override public Set<OWLDescription> getEditedObjects(){
  if (tabbedPane.getSelectedComponent() == classSelectorPanel) {
    return classSelectorPanel.getSelectedClasses();
  }
 else   if (tabbedPane.getSelectedComponent() == restrictionCreatorPanel) {
    return restrictionCreatorPanel.createRestrictions();
  }
 else   if (tabbedPane.getSelectedComponent() == dllearner) {
    return dllearner.getSollutions();
  }
  return super.getEditedObjects();
}
Program: 10208
Project: 10208
Buggy source:
/** 
 * Entry point for CLI interface.
 * @param args
 */
public static void main(String[] args) throws ComponentInitException {
  File file=new File(args[args.length - 1]);
  boolean inQueryMode=false;
  if (args.length > 1 && args[0].equals("String_Node_Str"))   inQueryMode=true;
  SimpleLayout layout=new SimpleLayout();
  ConsoleAppender consoleAppender=new ConsoleAppender(layout);
  FileAppender fileAppender=null;
  ;
  try {
    fileAppender=new FileAppender(layout,"String_Node_Str",false);
  }
 catch (  Exception e) {
    e.printStackTrace();
  }
  logger.removeAllAppenders();
  logger.addAppender(consoleAppender);
  logger.addAppender(fileAppender);
  logger.setLevel(Level.TRACE);
  Logger.getLogger(KnowledgeSource.class).setLevel(Level.WARN);
  Logger.getLogger(SparqlKnowledgeSource.class).setLevel(Level.WARN);
  Logger.getLogger(TypedSparqlQuery.class).setLevel(Level.WARN);
  Start start=null;
  start=new Start(file);
  start.start(inQueryMode);
}

Fixed version (ground truth):
/** 
 * Entry point for CLI interface.
 * @param args
 */
public static void main(String[] args) throws ComponentInitException {
  File file=new File(args[args.length - 1]);
  boolean inQueryMode=false;
  if (args.length > 1 && args[0].equals("String_Node_Str"))   inQueryMode=true;
  SimpleLayout layout=new SimpleLayout();
  ConsoleAppender consoleAppender=new ConsoleAppender(layout);
  FileAppender fileAppender=null;
  ;
  try {
    fileAppender=new FileAppender(layout,"String_Node_Str",false);
  }
 catch (  Exception e) {
    e.printStackTrace();
  }
  logger.removeAllAppenders();
  logger.addAppender(consoleAppender);
  logger.addAppender(fileAppender);
  logger.setLevel(Level.TRACE);
  Logger.getLogger(KnowledgeSource.class).setLevel(Level.WARN);
  Logger.getLogger(SparqlKnowledgeSource.class).setLevel(Level.WARN);
  Logger.getLogger(TypedSparqlQuery.class).setLevel(Level.WARN);
  Start start=null;
  start=new Start(file);
  start.start(inQueryMode);
  JamonMonitorLogger.printAllSortedByLabel();
}
Program: 10209
Project: 10209
Buggy source:
/** 
 * Takes a SPARQL query (which has not been evaluated yet) as argument and returns a JSON result set. The result set is taken from this cache if the query is stored here. Otherwise the query is send and its result added to the cache and returned. Convenience method.
 * @param query The SPARQL query.
 * @return Jena result set.
 */
public String executeSparqlQuery(SparqlQuery query){
  JamonMonitorLogger.getTimeMonitor(Cache.class,"String_Node_Str").start();
  JamonMonitorLogger.increaseCount(Cache.class,"String_Node_Str");
  JamonMonitorLogger.getTimeMonitor(Cache.class,"String_Node_Str").start();
  String result=getCacheEntry(query.getQueryString());
  JamonMonitorLogger.getTimeMonitor(Cache.class,"String_Node_Str").stop();
  if (result != null) {
    logger.trace("String_Node_Str");
    JamonMonitorLogger.increaseCount(Cache.class,"String_Node_Str");
  }
 else {
    query.send();
    String json=query.getResult();
    if (json != null) {
      addToCache(query.getQueryString(),json);
    }
 else     json="String_Node_Str";
    logger.warn("String_Node_Str" + query.getQueryString());
  }
  JamonMonitorLogger.getTimeMonitor(Cache.class,"String_Node_Str").stop();
  return result;
}

Fixed version (ground truth):
/** 
 * Takes a SPARQL query (which has not been evaluated yet) as argument and returns a JSON result set. The result set is taken from this cache if the query is stored here. Otherwise the query is send and its result added to the cache and returned. Convenience method.
 * @param query The SPARQL query.
 * @return Jena result set.
 */
public String executeSparqlQuery(SparqlQuery query){
  JamonMonitorLogger.getTimeMonitor(Cache.class,"String_Node_Str").start();
  JamonMonitorLogger.increaseCount(Cache.class,"String_Node_Str");
  JamonMonitorLogger.getTimeMonitor(Cache.class,"String_Node_Str").start();
  String result=getCacheEntry(query.getQueryString());
  JamonMonitorLogger.getTimeMonitor(Cache.class,"String_Node_Str").stop();
  if (result != null) {
    logger.trace("String_Node_Str");
    JamonMonitorLogger.increaseCount(Cache.class,"String_Node_Str");
  }
 else {
    query.send();
    String json=query.getResult();
    if (json != null) {
      addToCache(query.getQueryString(),json);
      result=json;
    }
 else {
      json="String_Node_Str";
      logger.warn(Cache.class.getSimpleName() + "String_Node_Str" + query.getQueryString());
    }
  }
  JamonMonitorLogger.getTimeMonitor(Cache.class,"String_Node_Str").stop();
  return result;
}
Program: 10210
Project: 10210
Buggy source:
public static LinkedList<SparqlEndpoint> listEndpoints(){
  LinkedList<SparqlEndpoint> ll=new LinkedList<SparqlEndpoint>();
  ll.add(EndpointDBLP());
  ll.add(EndpointDBpedia());
  ll.add(EndpointDOAPspace());
  ll.add(EndpointGovTrack());
  ll.add(EndpointJamendo());
  ll.add(EndpointJohnPeel());
  ll.add(EndpointlocalJoseki());
  ll.add(EndpointMagnaTune());
  ll.add(EndpointMusicbrainz());
  ll.add(EndpointMyOpenlink());
  ll.add(EndpointRevyu());
  ll.add(EndpointSWConference());
  ll.add(EndpointUSCensus());
  ll.add(EndpointWorldFactBook());
  ll.add(EndpointRiese());
  ll.add(EndpointTalisBlogs());
  ll.add(EndpointSWSchool());
  ll.add(EndpointSparqlette());
  return ll;
}

Fixed version (ground truth):
public static LinkedList<SparqlEndpoint> listEndpoints(){
  LinkedList<SparqlEndpoint> ll=new LinkedList<SparqlEndpoint>();
  ll.add(EndpointDBLP());
  ll.add(EndpointDBpedia());
  ll.add(EndpointDOAPspace());
  ll.add(EndpointGovTrack());
  ll.add(EndpointJamendo());
  ll.add(EndpointJohnPeel());
  ll.add(EndpointlocalJoseki());
  ll.add(EndpointMagnaTune());
  ll.add(EndpointMusicbrainz());
  ll.add(EndpointMyOpenlink());
  ll.add(EndpointRevyu());
  ll.add(EndpointSWConference());
  ll.add(EndpointUSCensus());
  ll.add(EndpointWorldFactBook());
  ll.add(EndpointRiese());
  ll.add(EndpointTalisBlogs());
  ll.add(EndpointSWSchool());
  ll.add(EndpointSparqlette());
  ll.add(EndpointLOCALDBpedia());
  return ll;
}
Program: 10211
Project: 10211
Buggy source:
/** 
 * @param args
 */
public static void main(String[] args){
  System.out.println("String_Node_Str");
  initLogger();
  if (local) {
    url="String_Node_Str";
    sparqlTasks=new SPARQLTasks(Cache.getPersistentCache(),SparqlEndpoint.EndpointLOCALDBpedia());
  }
 else {
    url="String_Node_Str";
    sparqlTasks=new SPARQLTasks(Cache.getPersistentCache(),SparqlEndpoint.EndpointDBpedia());
  }
  String prim="String_Node_Str";
  String award=("String_Node_Str");
  SKOS7030 s=new SKOS7030();
  s.makeExamples(prim,percentOfSKOSSet,negfactor,sparqlResultSize);
  List<Description> conceptresults=s.learn(s.posExamples,s.negExamples);
  logger.debug("String_Node_Str" + conceptresults.size());
  for (  Description oneConcept : conceptresults) {
  }
  System.out.println("String_Node_Str");
  JamonMonitorLogger.printAll();
}

Fixed version (ground truth):
/** 
 * @param args
 */
public static void main(String[] args){
  System.out.println("String_Node_Str");
  initLogger();
  if (local) {
    url="String_Node_Str";
    sparqlTasks=new SPARQLTasks(Cache.getPersistentCache(),SparqlEndpoint.EndpointLOCALDBpedia());
  }
 else {
    url="String_Node_Str";
    sparqlTasks=new SPARQLTasks(Cache.getPersistentCache(),SparqlEndpoint.EndpointDBpedia());
  }
  String prim="String_Node_Str";
  String award=("String_Node_Str");
  SKOS7030 s=new SKOS7030();
  s.makeExamples(prim,percentOfSKOSSet,negfactor,sparqlResultSize);
  List<Description> conceptresults=s.learn(s.posExamples,s.negExamples);
  logger.debug("String_Node_Str" + conceptresults.size());
  for (  Description oneConcept : conceptresults) {
  }
  System.out.println("String_Node_Str");
  JamonMonitorLogger.printAllSortedByLabel();
}
Program: 10212
Project: 10212
Buggy source:
public static SortedSet<String> selectDBpediaConcepts(int number){
  String query="String_Node_Str" + "String_Node_Str" + "String_Node_Str" + 1000 + "String_Node_Str";
  String JSON=(c.executeSparqlQuery(new SparqlQuery(query,se)));
  ResultSet rs=SparqlQuery.JSONtoResultSet(JSON);
  return null;
}

Fixed version (ground truth):
public static SortedSet<String> selectDBpediaConcepts(int number){
  String query="String_Node_Str" + "String_Node_Str" + "String_Node_Str" + 1000 + "String_Node_Str";
  String JSON=(c.executeSparqlQuery(new SparqlQuery(query,se)));
  ResultSet rs=SparqlQuery.JSONtoResultSet(JSON);
  if (rs == null)   ;
  return null;
}
Program: 10213
Project: 10213
Buggy source:
static void DBpedia(){
  se=SparqlEndpoint.EndpointLOCALDBpedia();
  SortedSet<String> concepts=new TreeSet<String>();
  SortedSet<String> tmpSet=selectDBpediaConcepts(20);
  System.out.println(concepts.size());
  for (  String string : tmpSet) {
    concepts.add("String_Node_Str" + string + "String_Node_Str");
  }
  concepts.remove(concepts.first());
  concepts.remove(concepts.first());
  concepts.remove(concepts.first());
  concepts.remove(concepts.first());
  concepts.remove(concepts.first());
  concepts.remove(concepts.first());
  concepts.remove(concepts.first());
  SortedSet<String> posExamples=new TreeSet<String>();
  SortedSet<String> negExamples=new TreeSet<String>();
  String url="String_Node_Str";
  url="String_Node_Str";
  String concept=concepts.first();
  int i=0;
  Statistics.setCurrentLabel("String_Node_Str");
  int recursiondepth=0;
  boolean closeAfterRecursion=false;
  int numberOfTriples=0;
  for (  String oneConcept : concepts) {
    useRelated=true;
    useSuperClasses=true;
    useParallelClasses=false;
    poslimit=10;
    neglimit=10;
    LearnSparql ls=new LearnSparql();
    TreeSet<String> igno=new TreeSet<String>();
    System.out.println(oneConcept);
    ls.learnDBpedia(posExamples,negExamples,url,igno,recursiondepth,closeAfterRecursion,false);
  }
}

Fixed version (ground truth):
static void DBpedia(){
  se=SparqlEndpoint.EndpointLOCALDBpedia();
  SortedSet<String> concepts=new TreeSet<String>();
  SortedSet<String> tmpSet=selectDBpediaConcepts(20);
  System.out.println(concepts.size());
  for (  String string : tmpSet) {
    concepts.add("String_Node_Str" + string + "String_Node_Str");
  }
  concepts.remove(concepts.first());
  concepts.remove(concepts.first());
  concepts.remove(concepts.first());
  concepts.remove(concepts.first());
  concepts.remove(concepts.first());
  concepts.remove(concepts.first());
  concepts.remove(concepts.first());
  SortedSet<String> posExamples=new TreeSet<String>();
  SortedSet<String> negExamples=new TreeSet<String>();
  String url="String_Node_Str";
  url="String_Node_Str";
  Statistics.setCurrentLabel("String_Node_Str");
  int recursiondepth=0;
  boolean closeAfterRecursion=false;
  for (  String oneConcept : concepts) {
    useRelated=true;
    useSuperClasses=true;
    useParallelClasses=false;
    poslimit=10;
    neglimit=10;
    LearnSparql ls=new LearnSparql();
    TreeSet<String> igno=new TreeSet<String>();
    System.out.println(oneConcept);
    ls.learnDBpedia(posExamples,negExamples,url,igno,recursiondepth,closeAfterRecursion,false);
  }
}
Program: 10214
Project: 10214
Buggy source:
public static SortedSet<String> selectDBpediaConcepts(int number){
  String query="String_Node_Str" + "String_Node_Str" + "String_Node_Str";
  String JSON=(c.executeSparqlQuery(new SparqlQuery(query,se)));
  ResultSet rs=SparqlQuery.JSONtoResultSet(JSON);
  return null;
}

Fixed version (ground truth):
public static SortedSet<String> selectDBpediaConcepts(int number){
  String query="String_Node_Str" + "String_Node_Str" + "String_Node_Str";
  String JSON=(c.executeSparqlQuery(new SparqlQuery(query,se)));
  ResultSet rs=SparqlQuery.JSONtoResultSet(JSON);
  if (rs == null)   ;
  return null;
}
Program: 10215
Project: 10215
Buggy source:
private static double httpQuery(String query) throws Exception {
  char value[]={13,10};
  String cut=new String(value);
  String test="String_Node_Str" + URLEncoder.encode(query,"String_Node_Str") + "String_Node_Str"+ cut+ "String_Node_Str"+ cut+ "String_Node_Str"+ cut+ "String_Node_Str"+ cut+ "String_Node_Str"+ cut+ "String_Node_Str"+ cut+ "String_Node_Str"+ cut+ cut;
  String retval="String_Node_Str";
  double start=System.currentTimeMillis();
  byte resp[]=null;
  try {
    Socket SparqlServer=new Socket(InetAddress.getByName("String_Node_Str"),8890);
    String request=test;
    (SparqlServer.getOutputStream()).write(request.getBytes());
    resp=readBuffer(new BufferedInputStream(SparqlServer.getInputStream()));
    retval=new String(resp);
    retval=retval.substring(retval.indexOf(cut + "String_Node_Str" + cut) + 4);
    SparqlServer.close();
  }
 catch (  Exception e) {
  }
  double end=System.currentTimeMillis();
  return (end - start) / 1000;
}

Fixed version (ground truth):
@Deprecated @SuppressWarnings("String_Node_Str") private static double httpQuery(String query) throws Exception {
  char value[]={13,10};
  String cut=new String(value);
  String test="String_Node_Str" + URLEncoder.encode(query,"String_Node_Str") + "String_Node_Str"+ cut+ "String_Node_Str"+ cut+ "String_Node_Str"+ cut+ "String_Node_Str"+ cut+ "String_Node_Str"+ cut+ "String_Node_Str"+ cut+ "String_Node_Str"+ cut+ cut;
  String retval="String_Node_Str";
  double start=System.currentTimeMillis();
  byte resp[]=null;
  try {
    Socket SparqlServer=new Socket(InetAddress.getByName("String_Node_Str"),8890);
    String request=test;
    (SparqlServer.getOutputStream()).write(request.getBytes());
    resp=readBuffer(new BufferedInputStream(SparqlServer.getInputStream()));
    retval=new String(resp);
    retval=retval.substring(retval.indexOf(cut + "String_Node_Str" + cut) + 4);
    SparqlServer.close();
  }
 catch (  Exception e) {
  }
  double end=System.currentTimeMillis();
  return (end - start) / 1000;
}
Program: 10216
Project: 10216
Buggy source:
public static void main(String[] args){
  SimpleLayout layout=new SimpleLayout();
  ConsoleAppender consoleAppender=new ConsoleAppender(layout);
  FileAppender fileAppender=null;
  ;
  try {
    fileAppender=new FileAppender(layout,"String_Node_Str",false);
  }
 catch (  Exception e) {
    e.printStackTrace();
  }
  logger.removeAllAppenders();
  logger.addAppender(fileAppender);
  logger.addAppender(consoleAppender);
  logger.setLevel(Level.DEBUG);
  Logger.getLogger(SparqlKnowledgeSource.class).setLevel(Level.INFO);
  LinkedList<SparqlEndpoint> ll=SparqlEndpoint.listEndpoints();
  int i=1;
  for (int j=0; j < ll.size(); j++) {
    testEndPoint(ll.get(j));
    logger.info("String_Node_Str" + i + "String_Node_Str"+ ll.size());
    i++;
  }
  logger.info("String_Node_Str");
  for (  String str : working) {
    logger.info(str);
  }
  for (  String str : notworking) {
    logger.info(str);
  }
}

Fixed version (ground truth):
public static void main(String[] args){
  SimpleLayout layout=new SimpleLayout();
  ConsoleAppender consoleAppender=new ConsoleAppender(layout);
  FileAppender fileAppender=null;
  ;
  try {
    fileAppender=new FileAppender(layout,"String_Node_Str",false);
  }
 catch (  Exception e) {
    e.printStackTrace();
  }
  logger.removeAllAppenders();
  logger.addAppender(fileAppender);
  logger.addAppender(consoleAppender);
  logger.setLevel(Level.TRACE);
  Logger.getLogger(SparqlKnowledgeSource.class).setLevel(Level.WARN);
  LinkedList<SparqlEndpoint> ll=SparqlEndpoint.listEndpoints();
  int i=1;
  for (int j=0; j < ll.size(); j++) {
    testEndPoint(ll.get(j));
    if (i == 3)     break;
    logger.info("String_Node_Str" + i + "String_Node_Str"+ ll.size());
    i++;
  }
  logger.info("String_Node_Str");
  for (  String str : working) {
    logger.info(str);
  }
  for (  String str : notworking) {
    logger.info(str);
  }
  JamonMonitorLogger.printAllSortedByLabel();
}
Program: 10217
Project: 10217
Buggy source:
public static void testEndPoint(SparqlEndpoint se){
  SimpleClock sc=new SimpleClock();
  try {
    String SPARQLquery="String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str";
    SPARQLquery="String_Node_Str";
    int i=new SPARQLTasks(se).queryAsSet(SPARQLquery,"String_Node_Str").size();
    working.add(sc.getAndSet("String_Node_Str" + se.getURL() + "String_Node_Str"+ ((i == 100) ? "String_Node_Str" : "String_Node_Str" + i + "String_Node_Str")+ "String_Node_Str"));
  }
 catch (  Exception e) {
    notworking.add(sc.getAndSet("String_Node_Str" + se.getURL()));
  }
}

Fixed version (ground truth):
public static void testEndPoint(SparqlEndpoint se){
  SimpleClock sc=new SimpleClock();
  try {
    String SPARQLquery="String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str";
    SPARQLquery="String_Node_Str";
    SortedSet<String> tmp=new SPARQLTasks(se).queryAsSet(SPARQLquery,"String_Node_Str");
    int i=tmp.size();
    working.add(sc.getAndSet("String_Node_Str" + se.getURL() + "String_Node_Str"+ ((i == 100) ? "String_Node_Str" : "String_Node_Str" + i + "String_Node_Str")+ "String_Node_Str"));
  }
 catch (  Exception e) {
    notworking.add(sc.getAndSet("String_Node_Str" + se.getURL()));
  }
}
Program: 10218
Project: 10218
Buggy source:
public static void increaseCount(Class clazz,String label){
  MonitorFactory.getMonitor(getMonitorPrefix(clazz) + label,"String_Node_Str").add(1.0);
}

Fixed version (ground truth):
@SuppressWarnings("String_Node_Str") public static void increaseCount(Class clazz,String label){
  Monitor m=MonitorFactory.getMonitor(getMonitorPrefix(clazz) + label,"String_Node_Str");
  m.setHits(m.getHits() + 1);
}
Program: 10219
Project: 10219
Buggy source:
public static Monitor getTimeMonitor(Class clazz,String label){
  String labeltmp=getMonitorPrefix(clazz) + label;
  return MonitorFactory.getTimeMonitor(labeltmp);
}

Fixed version (ground truth):
@SuppressWarnings("String_Node_Str") public static Monitor getTimeMonitor(Class clazz,String label){
  String labeltmp=getMonitorPrefix(clazz) + label;
  return MonitorFactory.getTimeMonitor(labeltmp);
}