nus-yam/ex-repair huggingface dataset:
Program: 81027
Project: 81027
Buggy source:
private static Set<Integer> getRelevantSellerIDs(int partnerID){
  Set<Integer> retSet=new TreeSet<>();
  try {
    String jsonText=parseJSON(new URL(API_LINK_BASE + API_EXTENSION_PARTNER + partnerID+ "String_Node_Str"));
    if (jsonText == null) {
      return retSet;
    }
    JSONParser mP=new JSONParser();
    try {
      JSONObject obj=(JSONObject)mP.parse(jsonText);
      for (      String s : (Iterable<String>)obj.keySet()) {
        try {
          JSONObject obj2=((JSONObject)obj.get(s));
          if (obj2.get("String_Node_Str") == null) {
            System.out.println("String_Node_Str");
          }
 else           if (((String)obj2.get("String_Node_Str")).toLowerCase().contains("String_Node_Str")) {
            System.out.println("String_Node_Str" + obj2.get("String_Node_Str"));
            retSet.add(Integer.parseInt(s));
          }
        }
 catch (        ClassCastException e) {
          e.printStackTrace();
        }
      }
    }
 catch (    ClassCastException cce) {
      System.out.println("String_Node_Str" + mP.parse(jsonText).getClass().getName() + "String_Node_Str"+ mP.parse(jsonText));
    }
  }
 catch (  IOException iOException) {
    System.out.println("String_Node_Str" + partnerID);
  }
catch (  ParseException parseException) {
  }
  return retSet;
}

Fixed version (ground truth):
private static Set<Integer> getRelevantSellerIDs(int partnerID){
  Set<Integer> retSet=new TreeSet<>();
  try {
    String jsonText=parseJSON(new URL(API_LINK_BASE + API_EXTENSION_PARTNER + partnerID+ "String_Node_Str"));
    if (jsonText == null) {
      return retSet;
    }
    JSONParser mP=new JSONParser();
    try {
      JSONObject obj=(JSONObject)mP.parse(jsonText);
      for (      String s : (Iterable<String>)obj.keySet()) {
        try {
          JSONObject obj2=((JSONObject)obj.get(s));
          String seller=(String)obj2.get("String_Node_Str");
          if (seller == null) {
            System.out.println("String_Node_Str");
          }
 else           if (seller.toLowerCase().contains("String_Node_Str") || seller.toLowerCase().contains("String_Node_Str")) {
            System.out.println("String_Node_Str" + obj2.get("String_Node_Str"));
            retSet.add(Integer.parseInt(s));
          }
        }
 catch (        ClassCastException e) {
          e.printStackTrace();
        }
      }
    }
 catch (    ClassCastException cce) {
      System.out.println("String_Node_Str" + mP.parse(jsonText).getClass().getName() + "String_Node_Str"+ mP.parse(jsonText));
    }
  }
 catch (  IOException iOException) {
    System.out.println("String_Node_Str" + partnerID);
  }
catch (  ParseException parseException) {
  }
  return retSet;
}
Program: 81028
Project: 81028
Buggy source:
public static Set<String> getAllRelevantURLs(){
  Set<Integer> sellerIDs=getAllRelevantSellerIDs();
  Set<Integer> partnerIDs=getAllPartners(sellerIDs);
  final Set<String> retSet=new TreeSet<>();
  for (  int partnerID : partnerIDs) {
    retSet.addAll(getAllPartnerEventURLs(partnerID));
  }
  for (  int sellerID : sellerIDs) {
    retSet.addAll(getAllSellerEventURLs(sellerID));
  }
  int[] venues={13961,16418,20012,15820};
  for (  int venueID : venues) {
    retSet.addAll(getAllVenueEventURLs(venueID));
  }
  return retSet;
}

Fixed version (ground truth):
public static Set<String> getAllRelevantURLs(){
  Set<Integer> sellerIDs=getAllRelevantSellerIDs();
  sellerIDs.add(getSellerID("String_Node_Str"));
  sellerIDs.add(getSellerID("String_Node_Str"));
  sellerIDs.add(getSellerID("String_Node_Str"));
  sellerIDs.add(getSellerID("String_Node_Str"));
  Set<Integer> partnerIDs=getAllPartners(sellerIDs);
  partnerIDs.add(getPartnerID("String_Node_Str"));
  partnerIDs.add(getPartnerID("String_Node_Str"));
  partnerIDs.add(getPartnerID("String_Node_Str"));
  partnerIDs.add(getPartnerID("String_Node_Str"));
  final Set<String> retSet=new TreeSet<>();
  for (  int partnerID : partnerIDs) {
    retSet.addAll(getAllPartnerEventURLs(partnerID));
  }
  for (  int sellerID : sellerIDs) {
    retSet.addAll(getAllSellerEventURLs(sellerID));
  }
  int[] venues={13961,16418,20012,15820};
  for (  int venueID : venues) {
    retSet.addAll(getAllVenueEventURLs(venueID));
  }
  return retSet;
}
Program: 81029
Project: 81029
Buggy source:
private static Set<String> getAllEventURLs(JSONObject obj){
  Set<String> retSet=new TreeSet<>();
  for (  String s : (Iterable<String>)obj.keySet()) {
    retSet.add("String_Node_Str" + s);
    try {
      JSONObject obj2=((JSONObject)obj.get(s));
      if (obj2.get("String_Node_Str") != null) {
        retSet.add((String)obj2.get("String_Node_Str"));
      }
    }
 catch (    ClassCastException cce) {
      System.out.println("String_Node_Str" + s + "String_Node_Str"+ obj.get(s).getClass().getSimpleName());
    }
  }
  return retSet;
}

Fixed version (ground truth):
private static Set<String> getAllEventURLs(JSONObject obj){
  Set<String> retSet=new TreeSet<>();
  for (  String s : (Iterable<String>)obj.keySet()) {
    retSet.add(EVENT_LINK_BASE + s);
    try {
      JSONObject obj2=((JSONObject)obj.get(s));
      if (obj2.get("String_Node_Str") != null) {
        retSet.add((String)obj2.get("String_Node_Str"));
      }
    }
 catch (    ClassCastException cce) {
      System.out.println("String_Node_Str" + s + "String_Node_Str"+ obj.get(s).getClass().getSimpleName());
    }
  }
  return retSet;
}
Program: 81030
Project: 81030
Buggy source:
@Override public synchronized boolean ticketsFound(){
  return !alreadyChecked.contains(currentLink);
}

Fixed version (ground truth):
@Override public synchronized boolean ticketsFound(){
  if (currentLink == null) {
    return false;
  }
  return !alreadyChecked.contains(currentLink);
}
Program: 81031
Project: 81031
Buggy source:
/** 
 * Parses the link from the given String. Note that this cannot parse links with spaces.
 * @param link The String with a link to extract
 * @return The link
 */
public static String parseLink(String link){
  if (link == null) {
    return "String_Node_Str";
  }
  if (link.contains("String_Node_Str")) {
    link=link.substring(link.indexOf("String_Node_Str"));
  }
 else   if (link.contains("String_Node_Str")) {
    link=link.substring(link.indexOf("String_Node_Str"));
  }
 else   if (link.contains("String_Node_Str")) {
    link=link.substring(link.indexOf("String_Node_Str"));
  }
 else {
    return null;
  }
  if (link.contains("String_Node_Str")) {
    link=link.substring(0,link.indexOf("String_Node_Str"));
  }
  link=link.trim();
  if (link.endsWith("String_Node_Str")) {
    link=link.substring(0,link.length() - 1);
  }
  System.out.println("String_Node_Str" + link);
  return link.trim();
}

Fixed version (ground truth):
/** 
 * Parses the link from the given String. Note that this cannot parse links with spaces.
 * @param link The String with a link to extract
 * @return The link
 */
public static String parseLink(String link){
  if (link == null) {
    return "String_Node_Str";
  }
  if (link.contains("String_Node_Str")) {
    link=link.substring(link.indexOf("String_Node_Str"));
  }
 else   if (link.contains("String_Node_Str")) {
    link=link.substring(link.indexOf("String_Node_Str"));
  }
 else   if (link.contains("String_Node_Str")) {
    link=link.substring(link.indexOf("String_Node_Str"));
  }
 else {
    return null;
  }
  if (link.contains("String_Node_Str")) {
    link=link.substring(0,link.indexOf("String_Node_Str"));
  }
  if (link.contains("String_Node_Str")) {
    link=link.substring(0,link.indexOf("String_Node_Str"));
  }
  link=link.trim();
  if (link.endsWith("String_Node_Str")) {
    link=link.substring(0,link.length() - 1);
  }
  System.out.println("String_Node_Str" + link);
  return link.trim();
}
Program: 81032
Project: 81032
Buggy source:
/** 
 * Returns the expo currently set. This should adhere to the format of "PAX [expo]" or just "[expo]".
 * @return The expo currently set
 * @see #setExpo(java.lang.String)
 */
public static String getExpo(){
  return Expo;
}

Fixed version (ground truth):
/** 
 * Returns the expo currently set. This should adhere to the format of "PAX [expo]" or just "[expo]".
 * @return The expo currently set
 * @see #setExpo(java.lang.String)
 */
public static String getExpo(){
  if (Expo == null) {
    return "String_Node_Str";
  }
  return Expo;
}
Program: 81033
Project: 81033
Buggy source:
/** 
 * Checks whether or not the given URL is a PAX ticket page.
 * @param URL The URL to check
 * @return True if it is, false if not
 */
public static boolean isPaxPage(String URL){
  try {
    HttpURLConnection connect=Browser.setUpConnection(new URL(URL));
    BufferedReader reader=new BufferedReader(new InputStreamReader(connect.getInputStream()));
    String text="String_Node_Str";
    String line;
    while ((line=reader.readLine()) != null) {
      DataTracker.addDataUsed(line.length());
      text+=line.toLowerCase();
    }
    if (text.contains(Browser.getExpo().toLowerCase())) {
      System.out.println("String_Node_Str");
      return true;
    }
  }
 catch (  IOException iOException) {
  }
  return false;
}

Fixed version (ground truth):
/** 
 * Checks whether or not the given URL is a PAX ticket page or a queue page.
 * @param URL The URL to check
 * @return True if it is, false if not
 */
public static boolean isPaxPage(String URL){
  try {
    HttpURLConnection connect=Browser.setUpConnection(new URL(URL));
    BufferedReader reader=new BufferedReader(new InputStreamReader(connect.getInputStream()));
    String text="String_Node_Str";
    String line;
    while ((line=reader.readLine()) != null) {
      DataTracker.addDataUsed(line.length());
      text+=line.toLowerCase();
    }
    if (text.contains("String_Node_Str") || text.contains("String_Node_Str")) {
      System.out.println("String_Node_Str");
      return true;
    }
 else {
      return false;
    }
  }
 catch (  IOException iOException) {
    return true;
  }
}
Program: 81034
Project: 81034
Buggy source:
public static void runTwitterStream(Twitter twitter,String[] handles){
  if (isStreamingTwitter()) {
    return;
  }
  System.out.println(Arrays.toString(handles));
  try {
    myStream=new TwitterStreamFactory().getInstance(twitter.getAuthorization());
    myStream.addListener(listener);
    myStream.addConnectionLifeCycleListener(cLCListener);
    myStream.user(handles);
    usersToCheck=handles.clone();
  }
 catch (  Exception e) {
    e.printStackTrace();
  }
}

Fixed version (ground truth):
public static void runTwitterStream(Twitter twitter,String[] handles){
  if (isStreamingTwitter()) {
    return;
  }
  System.out.println(Arrays.toString(handles));
  try {
    myStream=new TwitterStreamFactory().getInstance(twitter.getAuthorization());
    myStream.addListener(listener);
    myStream.addConnectionLifeCycleListener(cLCListener);
    myStream.user(handles);
    usersToCheck=handles.clone();
    for (int i=0; i < usersToCheck.length; i++) {
      if (usersToCheck[i].startsWith("String_Node_Str")) {
        usersToCheck[i]=usersToCheck[i].replaceFirst("String_Node_Str","String_Node_Str");
      }
      usersToCheck[i]=usersToCheck[i].toLowerCase();
    }
  }
 catch (  Exception e) {
    e.printStackTrace();
  }
}
Program: 81035
Project: 81035
Buggy source:
@Override public void onException(Exception ex){
  System.out.println("String_Node_Str");
  ex.printStackTrace();
}

Fixed version (ground truth):
@Override public void onException(Exception ex){
  ex.printStackTrace();
  if (++successiveErrorCount == 1) {
    if (ex.getMessage().contains("String_Node_Str")) {
      ErrorDisplay.showErrorWindow("String_Node_Str","String_Node_Str" + "String_Node_Str",ex);
    }
  }
 else   if (successiveErrorCount == 3) {
    if (ex.getMessage().contains("String_Node_Str")) {
      ErrorDisplay.showErrorWindow("String_Node_Str","String_Node_Str" + "String_Node_Str",ex);
    }
 else {
      ErrorDisplay.showErrorWindow("String_Node_Str","String_Node_Str" + "String_Node_Str",ex);
    }
    myStream.shutdown();
  }
}
Program: 81036
Project: 81036
Buggy source:
@Override public void onConnect(){
  System.out.println("String_Node_Str");
  CheckSetup.twitterConnection(true);
}

Fixed version (ground truth):
@Override public void onConnect(){
  System.out.println("String_Node_Str");
  CheckSetup.twitterConnection(true);
  successiveErrorCount=0;
}
Program: 81037
Project: 81037
Buggy source:
@Override public void onCleanUp(){
  System.out.println("String_Node_Str");
}

Fixed version (ground truth):
@Override public void onCleanUp(){
  System.out.println("String_Node_Str");
  myStream=null;
  successiveErrorCount=0;
}
Program: 81038
Project: 81038
Buggy source:
@Override public void onDisconnect(){
  System.out.println("String_Node_Str");
  ErrorDisplay.showErrorWindow("String_Node_Str" + "String_Node_Str");
  CheckSetup.twitterConnection(false);
}

Fixed version (ground truth):
@Override public void onDisconnect(){
  System.out.println("String_Node_Str");
  CheckSetup.twitterConnection(false);
}
Program: 81039
Project: 81039
Buggy source:
@Override public void onStatus(Status status){
  System.out.println("String_Node_Str" + status.getUser().getScreenName() + "String_Node_Str"+ status.getText());
  if (!TwitterReader.hasKeyword(status.getText())) {
    System.out.println("String_Node_Str");
  }
 else {
    for (    String s : usersToCheck) {
      if (s.startsWith("String_Node_Str")) {
        s=s.replaceFirst("String_Node_Str","String_Node_Str");
      }
      if (s.toLowerCase().equals(status.getUser().getScreenName().toLowerCase())) {
        if (status.getText().contains("String_Node_Str")) {
          String tStatus=status.getText();
          String link=Browser.parseLink(tStatus);
          while (link != null) {
            String toOpen=Browser.unshortenURL(link);
            if (!toOpen.contains("String_Node_Str") && !toOpen.contains("String_Node_Str") && !toOpen.contains("String_Node_Str")) {
              System.out.println("String_Node_Str");
            }
 else             if (!TicketChecker.hasOpenedLink(toOpen)) {
              CheckSetup.linkFound(toOpen);
              TicketChecker.addLinkFound(toOpen);
            }
 else {
              System.out.println("String_Node_Str");
            }
            tStatus=tStatus.substring(tStatus.indexOf(link) + link.length(),tStatus.length());
            link=Browser.parseLink(tStatus);
          }
          return;
        }
 else {
          System.out.println("String_Node_Str");
        }
      }
    }
    System.out.println("String_Node_Str");
  }
}

Fixed version (ground truth):
@Override public void onStatus(Status status){
  System.out.println("String_Node_Str" + status.getUser().getScreenName() + "String_Node_Str"+ status.getText());
  if (!TwitterReader.hasKeyword(status.getText())) {
    System.out.println("String_Node_Str");
  }
 else {
    for (    String s : usersToCheck) {
      if (s.equals(status.getUser().getScreenName().toLowerCase()) && status.getText().contains("String_Node_Str")) {
        String tStatus=status.getText();
        String link=Browser.parseLink(tStatus);
        while (link != null) {
          String toOpen=Browser.unshortenURL(link);
          if (!toOpen.contains("String_Node_Str") && !toOpen.contains("String_Node_Str") && !toOpen.contains("String_Node_Str")) {
            System.out.println("String_Node_Str");
          }
 else           if (!TicketChecker.hasOpenedLink(toOpen)) {
            CheckSetup.linkFound(toOpen);
            TicketChecker.addLinkFound(toOpen);
          }
 else {
            System.out.println("String_Node_Str");
          }
          tStatus=tStatus.substring(tStatus.indexOf(link) + link.length(),tStatus.length());
          link=Browser.parseLink(tStatus);
        }
        return;
      }
 else {
        System.out.println("String_Node_Str");
      }
    }
    System.out.println("String_Node_Str");
  }
}
Program: 81040
Project: 81040
Buggy source:
public void setShouldSave(boolean save){
  shouldSave=save && value != null;
}

Fixed version (ground truth):
public void setShouldSave(boolean save){
  shouldSave=save;
}
Program: 81041
Project: 81041
Buggy source:
public static synchronized void savePreferences(){
  boolean shouldSave=getBooleanPreference(Preference.TYPES.SAVE_PREFS);
  System.out.println("String_Node_Str" + shouldSave);
  try {
    for (    Preference p : prefArray) {
      if (p.getValue() == null || (!shouldSave && !p.forceSave())) {
        myPrefs.remove(p.getPrefType().name());
      }
 else {
        myPrefs.put(p.getPrefType().name(),String.valueOf(p.getValue()));
      }
    }
    myPrefs.sync();
  }
 catch (  BackingStoreException bse) {
  }
}

Fixed version (ground truth):
public static synchronized void savePreferences(){
  boolean shouldSave=getBooleanPreference(Preference.TYPES.SAVE_PREFS);
  System.out.println("String_Node_Str" + shouldSave);
  try {
    for (    Preference p : prefArray) {
      if (p.getValue() == null || ((!shouldSave || !p.shouldSave()) && !p.forceSave())) {
        myPrefs.remove(p.getPrefType().name());
      }
 else {
        myPrefs.put(p.getPrefType().name(),String.valueOf(p.getValue()));
      }
    }
    myPrefs.sync();
  }
 catch (  BackingStoreException bse) {
  }
}
Program: 81042
Project: 81042
Buggy source:
/** 
 * Gets the latest Showclix ID for a specific PAX event. This uses the Showclix API to find all of the events listed under a specific seller. In this case, each PAX event (Prime, East, etc) has a separate Showclix seller account associated with it. This uses the fact that every new Showclix event has a larger ID than before, and simply returns the largest Event ID for the specific expo given.
 * @param expo The expo to check
 * @return The most recent Showclix ID
 */
public static int getLatestShowclixID(String expo){
  try {
    URL url=new URL(getShowclixAPILink(expo));
    HttpURLConnection httpCon=(HttpURLConnection)url.openConnection();
    httpCon.addRequestProperty("String_Node_Str","String_Node_Str");
    BufferedReader reader=new BufferedReader(new InputStreamReader(httpCon.getInputStream()));
    String jsonText="String_Node_Str";
    String line;
    while ((line=reader.readLine()) != null) {
      DataTracker.addDataUsed(line.length());
      jsonText+=line;
    }
    reader.close();
    JSONParser mP=new JSONParser();
    JSONObject obj=(JSONObject)mP.parse(jsonText);
    int maxId=0;
    for (    String s : (Iterable<String>)obj.keySet()) {
      maxId=Math.max(maxId,Integer.parseInt((String)s));
    }
    System.out.println("String_Node_Str" + maxId);
    return maxId;
  }
 catch (  Exception e) {
    e.printStackTrace();
    return -1;
  }
}

Fixed version (ground truth):
/** 
 * Gets the latest Showclix ID for a specific PAX event. This uses the Showclix API to find all of the events listed under a specific seller. In this case, each PAX event (Prime, East, etc) has a separate Showclix seller account associated with it. This uses the fact that every new Showclix event has a larger ID than before, and simply returns the largest Event ID for the specific expo given.
 * @param expo The expo to check
 * @return The most recent Showclix ID
 */
public static int getLatestShowclixID(String expo){
  try {
    URL url=new URL(getShowclixAPILink(expo));
    HttpURLConnection httpCon=(HttpURLConnection)url.openConnection();
    httpCon.addRequestProperty("String_Node_Str","String_Node_Str");
    BufferedReader reader=new BufferedReader(new InputStreamReader(httpCon.getInputStream()));
    String jsonText="String_Node_Str";
    String line;
    while ((line=reader.readLine()) != null) {
      DataTracker.addDataUsed(line.length());
      jsonText+=line;
    }
    reader.close();
    JSONParser mP=new JSONParser();
    JSONObject obj=(JSONObject)mP.parse(jsonText);
    int maxId=0;
    for (    String s : (Iterable<String>)obj.keySet()) {
      maxId=Math.max(maxId,Integer.parseInt((String)s));
    }
    return maxId;
  }
 catch (  Exception e) {
    e.printStackTrace();
    return -1;
  }
}
Program: 81043
Project: 81043
Buggy source:
/** 
 * Sets the PAX Website link text. Note that this automatically starts with "PAX Website link:"
 * @param s The text to use
 */
public static void setStatusWebsiteLink(String s){
  if (status != null) {
    status.setWebsiteLink(s);
  }
}

Fixed version (ground truth):
/** 
 * Sets the PAX Website link text. Note that this automatically starts with "PAX Website link:"
 * @param s The text to use
 */
public static void setStatusWebsiteLink(String s){
  if (status != null) {
    status.setWebsiteLink(s);
  }
 else {
    System.out.println("String_Node_Str" + s);
  }
}
Program: 81044
Project: 81044
Buggy source:
/** 
 * Sets the Showclix link text. Note that this automatically starts with "Showclix link:"
 * @param s The text to use
 */
public static void setStatusShowclixLink(String s){
  if (status != null) {
    status.setShowclixLink(s);
  }
}

Fixed version (ground truth):
/** 
 * Sets the Showclix link text. Note that this automatically starts with "Showclix link:"
 * @param s The text to use
 */
public static void setStatusShowclixLink(String s){
  if (status != null) {
    status.setShowclixLink(s);
  }
 else {
    System.out.println("String_Node_Str" + s);
  }
}
Program: 81045
Project: 81045
Buggy source:
public void setEmailAddress(String address){
  if (address == null) {
    System.out.println("String_Node_Str");
    return;
  }
 else   if (address.length() < 5) {
    System.out.println("String_Node_Str");
    return;
  }
 else   if (!address.contains("String_Node_Str")) {
    System.out.println("String_Node_Str" + address + "String_Node_Str");
    address+=getCarrierExtension("String_Node_Str");
  }
  System.out.println("String_Node_Str" + address);
  address=address.trim();
  String temp=address.substring(0,address.indexOf("String_Node_Str"));
  temp=temp.replace("String_Node_Str","String_Node_Str");
  temp=temp.replace("String_Node_Str","String_Node_Str");
  temp=temp.replace("String_Node_Str","String_Node_Str");
  address=temp + address.substring(address.indexOf("String_Node_Str"));
  System.out.println("String_Node_Str" + address);
  completeAddress=address;
}

Fixed version (ground truth):
public void setEmailAddress(String address){
  if (address == null) {
    System.out.println("String_Node_Str");
    return;
  }
 else   if (address.length() < 5) {
    System.out.println("String_Node_Str");
    return;
  }
 else   if (!address.contains("String_Node_Str")) {
    System.out.println("String_Node_Str" + address + "String_Node_Str");
    address+=getCarrierExtension("String_Node_Str");
  }
  System.out.println("String_Node_Str" + address);
  address=address.trim();
  String temp=address.substring(0,address.indexOf("String_Node_Str"));
  temp=temp.replace("String_Node_Str","String_Node_Str");
  temp=temp.replace("String_Node_Str","String_Node_Str");
  temp=temp.replace("String_Node_Str","String_Node_Str");
  temp=temp.replace("String_Node_Str","String_Node_Str");
  address=temp + address.substring(address.indexOf("String_Node_Str"));
  System.out.println("String_Node_Str" + address);
  completeAddress=address;
}
Program: 81046
Project: 81046
Buggy source:
/** 
 * Calculates how many error windows are open once an error window is closed. This method unlocks the   {@link Signin} window once ALL the errorwindows are closed. This should ONLY be called when an error window is closed, otherwise unexpected results could occur.
 */
public static void errWindowClosed(){
  if (--errorWindowCount == 0) {
    if (canExit()) {
      System.exit(0);
    }
  }
}

Fixed version (ground truth):
/** 
 * Calculates how many error windows are open once an error window is closed. This method unlocks the   {@link Signin} window once ALL the errorwindows are closed. This should ONLY be called when an error window is closed, otherwise unexpected results could occur.
 */
public static void errWindowClosed(){
}
Program: 81047
Project: 81047
Buggy source:
/** 
 * Sends a test email. Uses the same Thread, blocks for about 10 seconds.
 */
public static void sendTestEmail(){
  Email.testEmail();
}

Fixed version (ground truth):
/** 
 * Sends a test email. Uses the same Thread, blocks until completed.
 */
public static void sendTestEmail(){
  Email.testEmail();
}
Program: 81051
Project: 81051
Buggy source:
/** 
 * @param args the command line arguments
 */
public static void main(String[] args){
  System.out.println("String_Node_Str");
  javax.swing.ToolTipManager.sharedInstance().setDismissDelay(600000);
  Email.init();
  KeyboardHandler.init();
  System.out.println("String_Node_Str");
  UpdateHandler.loadVersionNotes();
  parseCommandLineArgs(args);
}

Fixed version (ground truth):
/** 
 * @param args the command line arguments
 */
public static void main(String[] args){
  System.out.println("String_Node_Str");
  javax.swing.ToolTipManager.sharedInstance().setDismissDelay(600000);
  Email.init();
  KeyboardHandler.init();
  System.out.println("String_Node_Str");
  UpdateHandler.loadVersionNotes();
  startProgram(args);
}
Program: 81056
Project: 81056
Buggy source:
/** 
 * Initializes the Email class. Note that this should be run before any other method in the Email class is used.
 */
public static void init(){
  emailSettings();
}

Fixed version (ground truth):
/** 
 * Initializes the Email class. Note that this should be run before any other method in the Email class is used.
 */
public static void init(){
  props.put("String_Node_Str","String_Node_Str");
  props.put("String_Node_Str","String_Node_Str");
  props.put("String_Node_Str","String_Node_Str");
}
Program: 81058
Project: 81058
Buggy source:
/** 
 * Plays the alarm. Note that this checks   {@link #soundEnabled()} to make sure it's supposed to play. This method only allows one sound to play at atime, and resets the sound currently playing to the beginning.
 * @return True if the alarm was successfully started, false if not
 */
public static boolean playAlarm(){
  if (!soundEnabled()) {
    return false;
  }
  try {
    if (clip != null) {
      clip.stop();
      clip.setFramePosition(0);
    }
    clip=AudioSystem.getClip();
    InputStream audioSrc=PAXChecker.class.getResourceAsStream("String_Node_Str");
    InputStream bufferedIn=new BufferedInputStream(audioSrc);
    AudioInputStream inputStream=AudioSystem.getAudioInputStream(bufferedIn);
    clip.open(inputStream);
    clip.start();
    return true;
  }
 catch (  Exception e) {
    e.printStackTrace();
  }
  return false;
}

Fixed version (ground truth):
/** 
 * Plays the alarm. Note that this checks   {@link #soundEnabled()} to make sure it's supposed to play. This method only allows one sound to play at atime, and resets the sound currently playing to the beginning.
 * @return True if the alarm was successfully started, false if not
 */
public static boolean playAlarm(){
  if (!soundEnabled()) {
    return false;
  }
  try {
    if (clip != null) {
      clip.stop();
      clip.setFramePosition(0);
    }
    clip=AudioSystem.getClip();
    clip.addLineListener(listener);
    InputStream audioSrc=PAXChecker.class.getResourceAsStream("String_Node_Str");
    InputStream bufferedIn=new BufferedInputStream(audioSrc);
    AudioInputStream inputStream=AudioSystem.getAudioInputStream(bufferedIn);
    clip.open(inputStream);
    clip.start();
    return true;
  }
 catch (  Exception e) {
    e.printStackTrace();
  }
  return false;
}
Program: 81059
Project: 81059
Buggy source:
/** 
 * Gets the amount of data (in bytes) used by the program.
 * @return The amount of data (in bytes) used by the program
 */
public static long getDataUsed(){
  return dataUsed;
}

Fixed version (ground truth):
/** 
 * Gets the amount of data (in bytes) used by the program.
 * @return The amount of data (in bytes) used by the program
 */
public static synchronized long getDataUsed(){
  return dataUsed;
}
Program: 81060
Project: 81060
Buggy source:
/** 
 * Gets the amount of data in megabytes used by the program. Note that the double only extends out two decimal places.
 * @return The amount of data in megabytes used by the program
 */
public static double getDataUsedMB(){
  return (double)((int)((double)getDataUsed() / 1024 / 1024 * 100)) / 100;
}

Fixed version (ground truth):
/** 
 * Gets the amount of data in megabytes used by the program. Note that the double only extends out two decimal places.
 * @return The amount of data in megabytes used by the program
 */
public static synchronized double getDataUsedMB(){
  return (double)((int)((double)getDataUsed() / 1024 / 1024 * 100)) / 100;
}
Program: 81061
Project: 81061
Buggy source:
/** 
 * Adds an amount of data (in bytes) used by the program. This should be called whenever a network connection is made.
 * @param data The amount of data (in bytes) to add to the total data used
 */
public static void addDataUsed(long data){
  dataUsed+=data;
}

Fixed version (ground truth):
/** 
 * Adds an amount of data (in bytes) used by the program. This should be called whenever a network connection is made.
 * @param data The amount of data (in bytes) to add to the total data used
 */
public static synchronized void addDataUsed(long data){
  dataUsed+=data;
}
Program: 81063
Project: 81063
Buggy source:
public static void init(paxchecker.gui.Status s){
  status=s;
  threadPool=Executors.newFixedThreadPool(3);
}

Fixed version (ground truth):
public static void init(paxchecker.gui.Status s){
  status=s;
  threadPool=Executors.newFixedThreadPool(3);
  threadWait=new Phaser();
  threadWait.register();
}
Program: 81064
Project: 81064
Buggy source:
public static void addChecker(Check c){
  checks.add(c);
  cB=new Phaser();
  cB.register();
  c.init(status,cB);
}

Fixed version (ground truth):
public static void addChecker(Check c){
  for (  Check reg : checks) {
    if (c.getClass().isInstance(reg)) {
      System.out.println("String_Node_Str" + c.getClass().getSimpleName() + "String_Node_Str");
      return;
    }
  }
  c.init(status,threadWait);
  checks.add(c);
}
Program: 81065
Project: 81065
Buggy source:
public static boolean isUpdated(){
  for (  Check c : checks) {
    threadPool.submit(c);
  }
  System.out.println("String_Node_Str");
  cB.arriveAndAwaitAdvance();
  for (  Check c : checks) {
    c.updateGUI(status);
    if (c.ticketsFound() && !hasOpenedLink(c.getLink())) {
      System.out.println("String_Node_Str" + c.getLink());
      setLinkFound(c.getLink());
      c.reset();
      return true;
    }
 else {
      System.out.println("String_Node_Str" + c.getLink());
    }
  }
  return false;
}

Fixed version (ground truth):
public static boolean isUpdated(){
  for (  Check c : checks) {
    threadPool.submit(c);
  }
  System.out.println("String_Node_Str");
  threadWait.arriveAndAwaitAdvance();
  System.out.println("String_Node_Str");
  for (  Check c : checks) {
    c.updateGUI(status);
    if (c.ticketsFound() && !hasOpenedLink(c.getLink())) {
      System.out.println("String_Node_Str" + c.getLink());
      setLinkFound(c.getLink());
      c.reset();
      return true;
    }
 else {
      System.out.println("String_Node_Str" + c.getLink());
    }
  }
  return false;
}
Program: 81067
Project: 81067
Buggy source:
/** 
 * Sends a test email on a daemon Thread. Note that this also updates the Status window if possible.
 */
public static void sendBackgroundTestEmail(){
  startBackgroundThread(new Runnable(){
    @Override public void run(){
      try {
        Checker.setStatusTextButtonState(false);
        Checker.setStatusTextButtonText("String_Node_Str");
        if (!Email.testEmail()) {
          Checker.setStatusTextButtonText("String_Node_Str");
          Checker.setStatusTextButtonState(true);
          return;
        }
        long timeStarted=System.currentTimeMillis();
        while (System.currentTimeMillis() - timeStarted < 60000) {
          Checker.setStatusTextButtonText((60 - (int)((System.currentTimeMillis() - timeStarted) / 1000)) + "String_Node_Str");
          Thread.sleep(200);
        }
        Checker.setStatusTextButtonText("String_Node_Str");
        Checker.setStatusTextButtonState(true);
      }
 catch (      Exception e) {
        System.out.println("String_Node_Str");
        e.printStackTrace();
        Checker.setStatusTextButtonText("String_Node_Str");
        Checker.setStatusTextButtonState(true);
      }
    }
  }
,"String_Node_Str");
}

Fixed version (ground truth):
/** 
 * Sends a test email on a daemon Thread. Note that this also updates the Status window if possible.
 */
public static void sendBackgroundTestEmail(){
  startBackgroundThread(new Runnable(){
    @Override public void run(){
      try {
        Checker.setStatusTextButtonState(false);
        Checker.setStatusTextButtonText("String_Node_Str");
        if (!Email.testEmail()) {
          Checker.setStatusTextButtonText("String_Node_Str");
          Checker.setStatusTextButtonState(true);
          return;
        }
        long timeStarted=System.currentTimeMillis();
        while (System.currentTimeMillis() - timeStarted < 300000) {
          Checker.setStatusTextButtonText((300 - (int)((System.currentTimeMillis() - timeStarted) / 1000)) + "String_Node_Str");
          Thread.sleep(200);
        }
        Checker.setStatusTextButtonText("String_Node_Str");
        Checker.setStatusTextButtonState(true);
      }
 catch (      Exception e) {
        System.out.println("String_Node_Str");
        e.printStackTrace();
        Checker.setStatusTextButtonText("String_Node_Str");
        Checker.setStatusTextButtonState(true);
      }
    }
  }
,"String_Node_Str");
}
Program: 81069
Project: 81069
Buggy source:
@Override public void run(){
  try {
    Checker.setStatusTextButtonState(false);
    Checker.setStatusTextButtonText("String_Node_Str");
    if (!Email.testEmail()) {
      Checker.setStatusTextButtonText("String_Node_Str");
      Checker.setStatusTextButtonState(true);
      return;
    }
    long timeStarted=System.currentTimeMillis();
    while (System.currentTimeMillis() - timeStarted < 60000) {
      Checker.setStatusTextButtonText((60 - (int)((System.currentTimeMillis() - timeStarted) / 1000)) + "String_Node_Str");
      Thread.sleep(200);
    }
    Checker.setStatusTextButtonText("String_Node_Str");
    Checker.setStatusTextButtonState(true);
  }
 catch (  Exception e) {
    System.out.println("String_Node_Str");
    e.printStackTrace();
    Checker.setStatusTextButtonText("String_Node_Str");
    Checker.setStatusTextButtonState(true);
  }
}

Fixed version (ground truth):
@Override public void run(){
  try {
    Checker.setStatusTextButtonState(false);
    Checker.setStatusTextButtonText("String_Node_Str");
    if (!Email.testEmail()) {
      Checker.setStatusTextButtonText("String_Node_Str");
      Checker.setStatusTextButtonState(true);
      return;
    }
    long timeStarted=System.currentTimeMillis();
    while (System.currentTimeMillis() - timeStarted < 300000) {
      Checker.setStatusTextButtonText((300 - (int)((System.currentTimeMillis() - timeStarted) / 1000)) + "String_Node_Str");
      Thread.sleep(200);
    }
    Checker.setStatusTextButtonText("String_Node_Str");
    Checker.setStatusTextButtonState(true);
  }
 catch (  Exception e) {
    System.out.println("String_Node_Str");
    e.printStackTrace();
    Checker.setStatusTextButtonText("String_Node_Str");
    Checker.setStatusTextButtonState(true);
  }
}
Program: 81070
Project: 81070
Buggy source:
private static int getLatestID(URL url){
  try {
    HttpURLConnection httpCon=Browser.setUpConnection(url);
    BufferedReader reader=new BufferedReader(new InputStreamReader(httpCon.getInputStream()));
    String jsonText="String_Node_Str";
    String line;
    while ((line=reader.readLine()) != null) {
      DataTracker.addDataUsed(line.length());
      jsonText+=line;
    }
    reader.close();
    JSONParser mP=new JSONParser();
    JSONObject obj=(JSONObject)mP.parse(jsonText);
    int maxId=0;
    for (    String s : (Iterable<String>)obj.keySet()) {
      try {
        maxId=Math.max(maxId,Integer.parseInt((String)s));
      }
 catch (      NumberFormatException nfe) {
        System.out.println("String_Node_Str" + s);
      }
    }
    return maxId;
  }
 catch (  java.net.SocketTimeoutException ste) {
    System.out.println("String_Node_Str");
  }
catch (  IOException|ParseException e) {
    e.printStackTrace();
  }
  return -1;
}

Fixed version (ground truth):
private static int getLatestID(URL url){
  try {
    HttpURLConnection httpCon=Browser.setUpConnection(url);
    BufferedReader reader=new BufferedReader(new InputStreamReader(httpCon.getInputStream()));
    String jsonText="String_Node_Str";
    String line;
    while ((line=reader.readLine()) != null) {
      DataTracker.addDataUsed(line.length());
      jsonText+=line;
    }
    reader.close();
    JSONParser mP=new JSONParser();
    JSONObject obj=(JSONObject)mP.parse(jsonText);
    int maxID=0;
    for (    String s : (Iterable<String>)obj.keySet()) {
      try {
        maxID=Math.max(maxID,Integer.parseInt((String)s));
      }
 catch (      NumberFormatException nfe) {
        System.out.println("String_Node_Str" + s);
      }
    }
    return maxID;
  }
 catch (  java.net.SocketTimeoutException ste) {
    System.out.println("String_Node_Str");
  }
catch (  IOException|ParseException e) {
    e.printStackTrace();
  }
  return -1;
}
Program: 81071
Project: 81071
Buggy source:
public void init(paxchecker.gui.Status s){
  linkLabel=s.addLinkJLabel();
}

Fixed version (ground truth):
public void init(paxchecker.gui.Status s,java.util.concurrent.Phaser cB){
  linkLabel=s.addLinkJLabel();
  cycBar=cB;
  cycBar.register();
  reset();
}
Program: 81072
Project: 81072
Buggy source:
@Override public void init(paxchecker.gui.Status s){
  super.init(s);
  reset();
  s.updateJLabel(linkLabel,getLink());
}

Fixed version (ground truth):
@Override public synchronized void init(paxchecker.gui.Status s,java.util.concurrent.Phaser cB){
  super.init(s,cB);
  s.updateJLabel(linkLabel,"String_Node_Str");
}
Program: 81073
Project: 81073
Buggy source:
@Override public String getLink(){
  return currentLinkFound;
}

Fixed version (ground truth):
@Override public synchronized String getLink(){
  return currentLinkFound;
}
Program: 81074
Project: 81074
Buggy source:
@Override public void updateGUI(paxchecker.gui.Status s){
  s.updateJLabel(linkLabel,"String_Node_Str" + getLink());
}

Fixed version (ground truth):
@Override public synchronized void updateGUI(paxchecker.gui.Status s){
  s.updateJLabel(linkLabel,"String_Node_Str" + getLink());
}
Program: 81075
Project: 81075
Buggy source:
@Override public boolean ticketsFound(){
  if (currentLinkFound.equals(lastLinkFound)) {
    return false;
  }
 else   if (currentLinkFound == null) {
    return false;
  }
 else   if (currentLinkFound.equals("String_Node_Str") || currentLinkFound.equals("String_Node_Str")) {
    return false;
  }
 else   if (currentLinkFound.equals("String_Node_Str")) {
    return false;
  }
 else   if (!currentLinkFound.contains("String_Node_Str" + PaxsiteReader.getWebsiteLink(Browser.getExpo()) + "String_Node_Str")) {
    System.out.println("String_Node_Str" + currentLinkFound);
    return true;
  }
  return false;
}

Fixed version (ground truth):
@Override public synchronized boolean ticketsFound(){
  if (currentLinkFound.equals(lastLinkFound)) {
    return false;
  }
 else   if (currentLinkFound == null) {
    return false;
  }
 else   if (currentLinkFound.equals("String_Node_Str") || currentLinkFound.equals("String_Node_Str")) {
    return false;
  }
 else   if (currentLinkFound.equals("String_Node_Str")) {
    return false;
  }
 else   if (!currentLinkFound.contains("String_Node_Str" + PaxsiteReader.getWebsiteLink(Browser.getExpo()) + "String_Node_Str")) {
    System.out.println("String_Node_Str" + currentLinkFound);
    return true;
  }
  return false;
}
Program: 81076
Project: 81076
Buggy source:
@Override public void reset(){
  lastLinkFound=PaxsiteReader.getCurrentButtonLink(Browser.getExpo());
}

Fixed version (ground truth):
@Override public synchronized void reset(){
  lastLinkFound=PaxsiteReader.getCurrentButtonLink(Browser.getExpo());
}
Program: 81077
Project: 81077
Buggy source:
@Override public void updateLink(){
  currentLinkFound=PaxsiteReader.getCurrentButtonLink(Browser.getExpo());
}

Fixed version (ground truth):
@Override public synchronized final void updateLink(){
  currentLinkFound=PaxsiteReader.getCurrentButtonLink(Browser.getExpo());
}
Program: 81078
Project: 81078
Buggy source:
@Override public void init(paxchecker.gui.Status s){
  super.init(s);
  reset();
  s.updateJLabel(linkLabel,getLink());
}

Fixed version (ground truth):
@Override public synchronized void init(paxchecker.gui.Status s,java.util.concurrent.Phaser cB){
  super.init(s,cB);
  s.updateJLabel(linkLabel,"String_Node_Str");
}
Program: 81079
Project: 81079
Buggy source:
@Override public void updateGUI(paxchecker.gui.Status s){
  s.updateJLabel(linkLabel,"String_Node_Str" + getLink());
}

Fixed version (ground truth):
@Override public synchronized void updateGUI(paxchecker.gui.Status s){
  s.updateJLabel(linkLabel,"String_Node_Str" + getLink());
}
Program: 81080
Project: 81080
Buggy source:
@Override public boolean ticketsFound(){
  return currentShowclixEventID > lastShowclixEventID;
}

Fixed version (ground truth):
@Override public synchronized boolean ticketsFound(){
synchronized (LOCK) {
  }
  return currentShowclixEventID > lastShowclixEventID;
}
Program: 81081
Project: 81081
Buggy source:
@Override public void reset(){
  lastShowclixEventID=ShowclixReader.getLatestEventID(Browser.getExpo());
}

Fixed version (ground truth):
@Override public synchronized void reset(){
  lastShowclixEventID=ShowclixReader.getLatestEventID(Browser.getExpo());
}
Program: 81082
Project: 81082
Buggy source:
@Override public void updateLink(){
  currentShowclixEventID=ShowclixReader.getLatestEventID(Browser.getExpo());
}

Fixed version (ground truth):
@Override public synchronized void updateLink(){
  currentShowclixEventID=ShowclixReader.getLatestEventID(Browser.getExpo());
}
Program: 81083
Project: 81083
Buggy source:
@Override public void init(paxchecker.gui.Status s){
  super.init(s);
  s.updateJLabel(linkLabel,"String_Node_Str");
}

Fixed version (ground truth):
@Override public synchronized void init(paxchecker.gui.Status s,java.util.concurrent.Phaser cB){
  super.init(s,cB);
  s.updateJLabel(linkLabel,"String_Node_Str");
}
Program: 81084
Project: 81084
Buggy source:
@Override public String getLink(){
  return null;
}

Fixed version (ground truth):
@Override public synchronized String getLink(){
  return null;
}
Program: 81085
Project: 81085
Buggy source:
@Override public void updateGUI(paxchecker.gui.Status s){
}

Fixed version (ground truth):
@Override public synchronized void updateGUI(paxchecker.gui.Status s){
}
Program: 81086
Project: 81086
Buggy source:
@Override public boolean ticketsFound(){
  return false;
}

Fixed version (ground truth):
@Override public synchronized boolean ticketsFound(){
  return false;
}
Program: 81087
Project: 81087
Buggy source:
@Override public void reset(){
}

Fixed version (ground truth):
@Override public synchronized void reset(){
}
Program: 81088
Project: 81088
Buggy source:
@Override public void updateLink(){
}

Fixed version (ground truth):
@Override public synchronized void updateLink(){
}
Program: 81089
Project: 81089
Buggy source:
public static void init(paxchecker.gui.Status s){
  status=s;
}

Fixed version (ground truth):
public static void init(paxchecker.gui.Status s){
  status=s;
  threadPool=Executors.newFixedThreadPool(3);
}
Program: 81090
Project: 81090
Buggy source:
public static void addChecker(Check c){
  checks.add(c);
  c.init(status);
}

Fixed version (ground truth):
public static void addChecker(Check c){
  checks.add(c);
  cB=new Phaser();
  cB.register();
  c.init(status,cB);
}
Program: 81091
Project: 81091
Buggy source:
public static boolean isUpdated(){
  for (  Check c : checks) {
    c.updateLink();
    c.updateGUI(status);
    if (c.ticketsFound()) {
      System.out.println("String_Node_Str" + c.getLink());
      setLinkFound(c.getLink());
      c.reset();
      return true;
    }
 else {
      System.out.println("String_Node_Str" + c.getLink());
    }
  }
  return false;
}

Fixed version (ground truth):
public static boolean isUpdated(){
  for (  Check c : checks) {
    threadPool.submit(c);
  }
  System.out.println("String_Node_Str");
  cB.arriveAndAwaitAdvance();
  for (  Check c : checks) {
    c.updateGUI(status);
    if (c.ticketsFound()) {
      System.out.println("String_Node_Str" + c.getLink());
      setLinkFound(c.getLink());
      c.reset();
      return true;
    }
 else {
      System.out.println("String_Node_Str" + c.getLink());
    }
  }
  return false;
}
Program: 81092
Project: 81092
Buggy source:
/** 
 * Creates new form patchNotes.
 * @param uF The Update object that this patchNotes is attached to
 */
public PatchNotes(Update uF){
  javax.swing.SwingUtilities.invokeLater(new Runnable(){
    @Override public void run(){
      initComponents();
      customComponents();
      setVisible(true);
    }
  }
);
  updateFrom=uF;
}

Fixed version (ground truth):
/** 
 * Creates new form patchNotes.
 * @param uF The Update object that this patchNotes is attached to
 */
public PatchNotes(Update uF){
  updateFrom=uF;
  javax.swing.SwingUtilities.invokeLater(new Runnable(){
    @Override public void run(){
      initComponents();
      customComponents();
    }
  }
);
}
Program: 81093
Project: 81093
Buggy source:
/** 
 * Parses the link out of the given line of HTML. Note that this requires an href with the link surrounded by quotation marks for this to work. Furthermore, the link can't have any quotation marks in it (though if it does, you have bigger problems).
 * @param parse The HTML to parse
 * @return The link from the HTML, or the address to the current expo site
 * @see #getExpo()
 * @see #getWebsiteLink(java.lang.String)
 * @see #getCurrentButtonLinkLine()
 */
private static String parseHRef(String parse){
  if (parse == null) {
    System.out.println("String_Node_Str");
    return null;
  }
  try {
    parse=parse.trim();
    parse=parse.substring(parse.indexOf("String_Node_Str") + 6);
    parse=parse.substring(0,parse.indexOf("String_Node_Str"));
    if (parse.startsWith("String_Node_Str") && parse.endsWith("String_Node_Str")) {
      parse=parse.substring(1,parse.length() - 1);
    }
 else     if (parse.length() < 10) {
      System.out.println("String_Node_Str");
      return null;
    }
    return parse.trim();
  }
 catch (  Exception e) {
    System.out.println("String_Node_Str");
    e.printStackTrace();
    return null;
  }
}

Fixed version (ground truth):
/** 
 * Parses the link out of the given line of HTML. Note that this requires an href with the link surrounded by quotation marks for this to work. Furthermore, the link can't have any quotation marks in it (though if it does, you have bigger problems).
 * @param parse The HTML to parse
 * @return The link from the HTML, or the address to the current expo site
 * @see #getExpo()
 * @see #getWebsiteLink(java.lang.String)
 * @see #getCurrentButtonLinkLine()
 */
private static String parseHRef(String parse){
  if (parse == null) {
    System.out.println("String_Node_Str");
    return "String_Node_Str";
  }
  try {
    parse=parse.trim();
    parse=parse.substring(parse.indexOf("String_Node_Str") + 6);
    parse=parse.substring(0,parse.indexOf("String_Node_Str"));
    if (parse.startsWith("String_Node_Str") && parse.endsWith("String_Node_Str")) {
      parse=parse.substring(1,parse.length() - 1);
    }
 else     if (parse.length() < 10) {
      System.out.println("String_Node_Str");
      return null;
    }
    return parse.trim();
  }
 catch (  Exception e) {
    System.out.println("String_Node_Str");
    e.printStackTrace();
    return "String_Node_Str";
  }
}
Program: 81094
Project: 81094
Buggy source:
@Override public synchronized void init(paxchecker.gui.Status s,java.util.concurrent.Phaser cB){
  super.init(s,cB);
  s.updateJLabel(linkLabel,"String_Node_Str");
  twitter=new TwitterReader("String_Node_Str");
}

Fixed version (ground truth):
@Override public synchronized void init(paxchecker.gui.Status s,java.util.concurrent.Phaser cB){
  twitter=new TwitterReader("String_Node_Str");
  super.init(s,cB);
  s.updateJLabel(linkLabel,"String_Node_Str");
}