nus-yam/ex-repair huggingface dataset:
Program: 3692
Project: 3692
Buggy source:
/** 
 * Post method for updating an instance of UserResource
 * @param content representation for the resource
 * @return an HTTP response with content of the  created resource.
 */
@Path("String_Node_Str") @POST @Consumes("String_Node_Str") public String updateUser(@PathParam("String_Node_Str") String astrEmail,String json){
  String strName=null;
  try {
    JSONObject content=new JSONObject(json);
    User u=User.selectByUsername(astrEmail);
    if (content.getString("String_Node_Str") != null) {
      u.setFirstName(content.getString("String_Node_Str"));
    }
    if (content.getString("String_Node_Str") != null) {
      u.setLastName(content.getString("String_Node_Str"));
    }
    if (content.getString("String_Node_Str") != null) {
      u.setPhone(content.getString("String_Node_Str"));
    }
    if (content.getString("String_Node_Str") != null) {
      u.setPassword(content.getString("String_Node_Str"));
    }
    u.save();
    User uUpdated=User.selectByUsername(content.getString("String_Node_Str"));
    strName=uUpdated.getFirstName();
  }
 catch (  Exception ex) {
    return ex.toString();
  }
  return "String_Node_Str" + strName;
}

Fixed version (ground truth):
/** 
 * Post method for updating an instance of UserResource
 * @param content representation for the resource
 * @return an HTTP response with content of the  created resource.
 */
@Path("String_Node_Str") @POST @Consumes("String_Node_Str") public String updateUser(@PathParam("String_Node_Str") String astrEmail,String json){
  String strName=null;
  try {
    JSONObject content=new JSONObject(json);
    User u=User.selectByUsername(astrEmail);
    if (content.getString("String_Node_Str") != null) {
      u.setFirstName(content.getString("String_Node_Str"));
    }
    if (content.getString("String_Node_Str") != null) {
      u.setLastName(content.getString("String_Node_Str"));
    }
    if (content.getString("String_Node_Str") != null) {
      u.setPhone(content.getString("String_Node_Str"));
    }
    if (content.getString("String_Node_Str") != null) {
      u.setPassword(content.getString("String_Node_Str"));
    }
    if (content.getString("String_Node_Str") != null) {
      u.setEmail(content.getString("String_Node_Str"));
    }
    u.save();
    User uUpdated=User.selectByUsername(content.getString("String_Node_Str"));
    strName=uUpdated.getFirstName();
  }
 catch (  Exception ex) {
    return ex.toString();
  }
  return "String_Node_Str" + strName;
}
Program: 3693
Project: 3693
Buggy source:
@Path("String_Node_Str") @DELETE public String deletePerson(@QueryParam("String_Node_Str") String PersonEmail){
{
    String EML=null;
    try {
      JSONObject content=new JSONObject(PersonEmail);
      EML=content.toString();
      System.out.println("String_Node_Str" + content.getString("String_Node_Str"));
      Person person=Person.selectByPersonEmail(content.getString("String_Node_Str"));
      person.delete(true);
      return ("String_Node_Str");
    }
 catch (    Exception E) {
      return (EML);
    }
  }
}

Fixed version (ground truth):
@Path("String_Node_Str") @DELETE public String deletePerson(@PathParam("String_Node_Str") String id){
{
    try {
      System.out.println("String_Node_Str" + id);
      Person person=(Person)EntityBase.selectByID(id);
      if (person instanceof User) {
        return "String_Node_Str";
      }
      if (person == null) {
        return "String_Node_Str";
      }
      person.delete(true);
      return ("String_Node_Str");
    }
 catch (    Exception E) {
      return (E.getMessage());
    }
  }
}
Program: 3694
Project: 3694
Buggy source:
/** 
 * Update the clock time fields.
 * @param hourOfDay 24-hr clock time hour field
 * @param minutes   clock time minutes field
 */
public void updateTime(int hourOfDay,int minutes){
  this.hourOfDay=hourOfDay;
  this.minutes=minutes;
}

Fixed version (ground truth):
/** 
 * Update the clock time fields.
 * @param hourOfDay 24-hr clock time hour field
 * @param minutes   clock time minutes field
 */
public void updateTime(int hourOfDay,int minutes){
  this.mHourOfDay=hourOfDay;
  this.mMinutes=minutes;
}
Program: 3695
Project: 3695
Buggy source:
public int getHourOfDay(){
  return hourOfDay;
}

Fixed version (ground truth):
public int getHourOfDay(){
  return mHourOfDay;
}
Program: 3696
Project: 3696
Buggy source:
@Override public void writeToParcel(Parcel dest,int flags){
  dest.writeInt(hourOfDay);
  dest.writeInt(minutes);
}

Fixed version (ground truth):
@Override public void writeToParcel(Parcel dest,int flags){
  dest.writeInt(mHourOfDay);
  dest.writeInt(mMinutes);
}
Program: 3697
Project: 3697
Buggy source:
public int getMinutes(){
  return minutes;
}

Fixed version (ground truth):
public int getMinutes(){
  return mMinutes;
}
Program: 3698
Project: 3698
Buggy source:
private void enableAlarm(){
  Intent innerIntent=new Intent(Intent.ACTION_VIEW,songUri);
  innerIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
  lastAlarmIntent=PendingIntent.getActivity(this,0,innerIntent,PendingIntent.FLAG_CANCEL_CURRENT);
  getAlarmManager().setRepeating(AlarmManager.RTC_WAKEUP,alarmTimestamp,AlarmManager.INTERVAL_DAY,lastAlarmIntent);
  showToast(R.string.info_alarm_enabled);
}

Fixed version (ground truth):
private void enableAlarm(){
  Intent innerIntent=new Intent(Intent.ACTION_VIEW,songUri);
  innerIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
  lastAlarmIntent=PendingIntent.getActivity(this,0,innerIntent,PendingIntent.FLAG_CANCEL_CURRENT);
  getAlarmManager().setRepeating(AlarmManager.RTC_WAKEUP,alarmTime.toTimestamp(),AlarmManager.INTERVAL_DAY,lastAlarmIntent);
  showToast(R.string.info_alarm_enabled);
}
Program: 3699
Project: 3699
Buggy source:
public SongAlarmActivity(){
  alarmTimestamp=NO_ALARM_TIME_SET;
  alarmTime=null;
  lastAlarmIntent=null;
  songUri=null;
}

Fixed version (ground truth):
public SongAlarmActivity(){
  alarmTime=null;
  lastAlarmIntent=null;
  songUri=null;
}
Program: 3700
Project: 3700
Buggy source:
@Override public boolean onPreferenceChange(Preference pref,Object newValue){
  boolean allowChange=false;
  if (mAlarmEnabledPref == pref) {
    boolean enableAlarm=((Boolean)newValue).booleanValue();
    if (enableAlarm) {
      if (NO_ALARM_TIME_SET == alarmTimestamp) {
        showToast(R.string.error_no_time_set);
      }
 else       if (null == songUri) {
        showToast(R.string.error_no_song_set);
      }
 else {
        enableAlarm();
        allowChange=true;
      }
    }
 else {
      getAlarmManager().cancel(lastAlarmIntent);
      showToast(R.string.info_alarm_disabled);
      allowChange=true;
      lastAlarmIntent=null;
    }
  }
  return allowChange;
}

Fixed version (ground truth):
@Override public boolean onPreferenceChange(Preference pref,Object newValue){
  boolean allowChange=false;
  if (mAlarmEnabledPref == pref) {
    boolean enableAlarm=((Boolean)newValue).booleanValue();
    if (enableAlarm) {
      if (null == alarmTime) {
        showToast(R.string.error_no_time_set);
      }
 else       if (null == songUri) {
        showToast(R.string.error_no_song_set);
      }
 else {
        enableAlarm();
        allowChange=true;
      }
    }
 else {
      getAlarmManager().cancel(lastAlarmIntent);
      showToast(R.string.info_alarm_disabled);
      allowChange=true;
      lastAlarmIntent=null;
    }
  }
  return allowChange;
}
Program: 3701
Project: 3701
Buggy source:
private void updateTimeSummary(){
  if (null == alarmTime) {
    return;
  }
  Calendar cal=Calendar.getInstance();
  cal.setTimeInMillis(System.currentTimeMillis());
  int currentHourOfDay=cal.get(Calendar.HOUR_OF_DAY), currentMinutes=cal.get(Calendar.MINUTE);
  int hourOfDay=alarmTime.getHourOfDay(), minutes=alarmTime.getMinutes();
  if (currentHourOfDay > hourOfDay || (currentHourOfDay == hourOfDay && currentMinutes > minutes)) {
    cal.add(Calendar.DAY_OF_YEAR,1);
  }
  cal.set(Calendar.MILLISECOND,0);
  cal.set(Calendar.SECOND,0);
  cal.set(Calendar.HOUR_OF_DAY,hourOfDay);
  cal.set(Calendar.MINUTE,minutes);
  alarmTimestamp=cal.getTimeInMillis();
  mAlarmTimePref.setSummary(DateFormat.format(getResources().getString(R.string.date_format_alarm_time),cal));
}

Fixed version (ground truth):
private void updateTimeSummary(){
  if (null == alarmTime) {
    return;
  }
  Calendar cal=Calendar.getInstance();
  cal.setTimeInMillis(alarmTime.toTimestamp());
  mAlarmTimePref.setSummary(DateFormat.format(getResources().getString(R.string.date_format_alarm_time),cal));
}
Program: 3702
Project: 3702
Buggy source:
@Override public boolean onPreferenceChange(Preference pref,Object newValue){
  boolean allowChange=false;
  if (mAlarmEnabledPref == pref) {
    boolean enableAlarm=((Boolean)newValue).booleanValue();
    if (enableAlarm) {
      if (NO_ALARM_TIME_SET == alarmTimestamp) {
        showToast(R.string.error_no_time_set);
      }
 else       if (null == songUri) {
        showToast(R.string.error_no_song_set);
      }
 else {
        enableAlarm();
        allowChange=true;
      }
    }
 else {
      getAlarmManager().cancel(lastAlarmIntent);
      showToast(R.string.info_alarm_disabled);
      allowChange=true;
      alarmTimestamp=NO_ALARM_TIME_SET;
      lastAlarmIntent=null;
    }
  }
  return allowChange;
}

Fixed version (ground truth):
@Override public boolean onPreferenceChange(Preference pref,Object newValue){
  boolean allowChange=false;
  if (mAlarmEnabledPref == pref) {
    boolean enableAlarm=((Boolean)newValue).booleanValue();
    if (enableAlarm) {
      if (NO_ALARM_TIME_SET == alarmTimestamp) {
        showToast(R.string.error_no_time_set);
      }
 else       if (null == songUri) {
        showToast(R.string.error_no_song_set);
      }
 else {
        enableAlarm();
        allowChange=true;
      }
    }
 else {
      getAlarmManager().cancel(lastAlarmIntent);
      showToast(R.string.info_alarm_disabled);
      allowChange=true;
      lastAlarmIntent=null;
    }
  }
  return allowChange;
}
Program: 3705
Project: 3705
Buggy source:
private static boolean shouldShowPage1(){
  if (!InstallSettings.AUTO_SHARING_OPTION.getValue()) {
    return true;
  }
  if (!InstallSettings.ANONYMOUS_DATA_COLLECTION.getValue()) {
    return true;
  }
  if (!InstallSettings.FILTER_OPTION.getValue()) {
    return true;
  }
  if (!InstallSettings.START_STARTUP.getValue()) {
    return GuiUtils.shouldShowStartOnStartupWindow();
  }
  return false;
}

Fixed version (ground truth):
private static boolean shouldShowPage1(){
  if (!InstallSettings.AUTO_SHARING_OPTION.getValue()) {
    return true;
  }
  if (!InstallSettings.ANONYMOUS_DATA_COLLECTION.getValue()) {
    return true;
  }
  if (!InstallSettings.CONTENT_FILTER_OPTION.getValue()) {
    return true;
  }
  if (!InstallSettings.START_STARTUP.getValue()) {
    return GuiUtils.shouldShowStartOnStartupWindow();
  }
  return false;
}
Program: 3706
Project: 3706
Buggy source:
@Override public Time getMediaTime(){
  if ((audioProperties != null) && audioProperties.containsKey(AUDIO_LENGTH_BYTES) && audioProperties.containsKey("String_Node_Str")) {
    float byteslength=((Integer)audioProperties.get(AUDIO_LENGTH_BYTES)).floatValue();
    float progress=bytesRead / byteslength;
    long currentTime=(long)((((Long)audioProperties.get("String_Node_Str")) / 1000) * progress);
    return new Time(currentTime);
  }
  return new Time(0);
}

Fixed version (ground truth):
@Override public Time getMediaTime(){
  if ((audioProperties != null) && audioProperties.containsKey(AUDIO_LENGTH_BYTES) && audioProperties.containsKey("String_Node_Str")) {
    return new Time(bytesRead);
  }
  return new Time(0);
}
Program: 3707
Project: 3707
Buggy source:
@Override public void start(){
  state=Started;
  audioPlayer.playSong();
}

Fixed version (ground truth):
@Override public void start(){
  state=Started;
  PlayerState status=getPlayer().getStatus();
  if (status != PlayerState.PAUSED) {
    audioPlayer.stop();
    audioPlayer.playSong();
  }
 else {
    audioPlayer.unpause();
  }
}
Program: 3708
Project: 3708
Buggy source:
@Override public void stateChange(AudioPlayerEvent event){
  if (event.getState() == PlayerState.EOM) {
    state=Unrealized;
    for (    ControllerListener listener : listenerList) {
      listener.controllerUpdate(new EndOfMediaEvent(JavaSoundPlayer.this,0,0,0,null));
    }
  }
 else   if (event.getState() == PlayerState.STOPPED || event.getState() == PlayerState.PAUSED) {
    state=Realized;
    for (    ControllerListener listener : listenerList) {
      listener.controllerUpdate(new StopEvent(JavaSoundPlayer.this,0,0,0,null));
    }
  }
 else   if (event.getState() == PlayerState.PLAYING) {
    state=Started;
  }
 else {
    state=Realized;
  }
}

Fixed version (ground truth):
@Override public void stateChange(AudioPlayerEvent event){
  if (event.getState() == PlayerState.EOM) {
    state=Unrealized;
    for (    ControllerListener listener : listenerList) {
      listener.controllerUpdate(new EndOfMediaEvent(JavaSoundPlayer.this,0,0,0,null));
    }
  }
 else   if (event.getState() == PlayerState.STOPPED || event.getState() == PlayerState.PAUSED) {
    state=Realized;
    for (    ControllerListener listener : listenerList) {
      listener.controllerUpdate(new StopEvent(JavaSoundPlayer.this,0,0,0,null));
    }
  }
 else   if (event.getState() == PlayerState.PLAYING) {
    state=Started;
    for (    ControllerListener listener : listenerList) {
      listener.controllerUpdate(new StartEvent(JavaSoundPlayer.this,0,0,0,null,null));
    }
  }
 else {
    state=Realized;
  }
}
Program: 3709
Project: 3709
Buggy source:
@Override public void songOpened(Map<String,Object> properties){
  audioProperties=properties;
  if (audioProperties != null && audioProperties.containsKey("String_Node_Str")) {
    duration=new Time(((Long)audioProperties.get("String_Node_Str")) / 1000);
  }
 else {
    duration=Time.TIME_UNKNOWN;
  }
  for (  ControllerListener listener : listenerList) {
    listener.controllerUpdate(new StartEvent(JavaSoundPlayer.this,0,0,0,null,null));
  }
}

Fixed version (ground truth):
@Override public void songOpened(Map<String,Object> properties){
  audioProperties=properties;
  if (audioProperties != null && audioProperties.containsKey(AUDIO_LENGTH_BYTES)) {
    duration=new Time((Integer)audioProperties.get(AUDIO_LENGTH_BYTES));
  }
 else {
    duration=Time.TIME_UNKNOWN;
  }
  for (  ControllerListener listener : listenerList) {
    listener.controllerUpdate(new StartEvent(JavaSoundPlayer.this,0,0,0,null,null));
  }
}
Program: 3710
Project: 3710
Buggy source:
@Override public void pause(){
  player.stop();
}

Fixed version (ground truth):
@Override public void pause(){
  if (player instanceof JavaSoundPlayer)   ((JavaSoundPlayer)player).pause();
 else   player.stop();
}
Program: 3711
Project: 3711
Buggy source:
private void createTabs(PropertiableFile propertiableFile,final FileInfoType type){
  List<Tabs> tabs=new ArrayList<Tabs>();
  tabs.add(Tabs.GENERAL);
  Torrent torrent=(Torrent)propertiableFile.getProperty(FilePropertyKey.TORRENT);
  if (torrent != null) {
    if (torrent.isEditable()) {
      tabs.add(Tabs.LIMITS);
    }
    if (torrent.hasMetaData()) {
      tabs.add(Tabs.BITTORENT);
      tabs.add(Tabs.TRACKERS);
    }
    if (torrent.isEditable()) {
      tabs.add(Tabs.TRANSFERS);
      tabs.add(Tabs.PIECES);
    }
  }
 else {
    if (type == FileInfoType.LOCAL_FILE) {
      tabs.add(Tabs.SHARING);
    }
    if (type != FileInfoType.REMOTE_FILE) {
      tabs.add(Tabs.TRANSFERS);
    }
    if (type == FileInfoType.DOWNLOADING_FILE) {
      tabs.add(Tabs.PIECES);
    }
  }
  tabPanel.setTabs(tabs);
}

Fixed version (ground truth):
private void createTabs(PropertiableFile propertiableFile,final FileInfoType type){
  List<Tabs> tabs=new ArrayList<Tabs>();
  tabs.add(Tabs.GENERAL);
  Torrent torrent=(Torrent)propertiableFile.getProperty(FilePropertyKey.TORRENT);
  if (torrent != null) {
    if (torrent.isEditable()) {
      tabs.add(Tabs.LIMITS);
    }
    if (torrent.hasMetaData()) {
      tabs.add(Tabs.BITTORENT);
      tabs.add(Tabs.TRACKERS);
    }
    if (torrent.isEditable()) {
      tabs.add(Tabs.TRANSFERS);
      if (type == FileInfoType.DOWNLOADING_FILE) {
        tabs.add(Tabs.PIECES);
      }
    }
  }
 else {
    if (type == FileInfoType.LOCAL_FILE) {
      tabs.add(Tabs.SHARING);
    }
    if (type != FileInfoType.REMOTE_FILE) {
      tabs.add(Tabs.TRANSFERS);
    }
    if (type == FileInfoType.DOWNLOADING_FILE) {
      tabs.add(Tabs.PIECES);
    }
  }
  tabPanel.setTabs(tabs);
}
Program: 3714
Project: 3714
Buggy source:
/** 
 * Displays an Info dialog for the specified download item.
 */
private void showInfoDialog(DownloadItem item){
switch (item.getDownloadItemType()) {
case ANTIVIRUS:
    avInfoPanelFactory.get().showVendorMessage();
  break;
case BITTORRENT:
switch (item.getState()) {
case DANGEROUS:
  avInfoPanelFactory.get().showDangerMessage(item,false);
break;
case SCANNING:
case SCANNING_FRAGMENT:
avInfoPanelFactory.get().showVendorMessage();
break;
case THREAT_FOUND:
avInfoPanelFactory.get().showThreatMessage(item,false);
break;
case SCAN_FAILED:
avInfoPanelFactory.get().showFailureMessage(item,false);
break;
default :
createFileInfoDialog(item);
break;
}
case GNUTELLA:
switch (item.getState()) {
case DANGEROUS:
avInfoPanelFactory.get().showDangerMessage(item,false);
break;
case SCANNING:
case SCANNING_FRAGMENT:
avInfoPanelFactory.get().showVendorMessage();
break;
case THREAT_FOUND:
avInfoPanelFactory.get().showThreatMessage(item,false);
break;
case SCAN_FAILED:
avInfoPanelFactory.get().showFailureMessage(item,false);
break;
}
break;
}
}

Fixed version (ground truth):
/** 
 * Displays an Info dialog for the specified download item.
 */
private void showInfoDialog(DownloadItem item){
switch (item.getDownloadItemType()) {
case ANTIVIRUS:
    avInfoPanelFactory.get().showVendorMessage();
  return;
case BITTORRENT:
switch (item.getState()) {
case DANGEROUS:
  avInfoPanelFactory.get().showDangerMessage(item,false);
return;
case SCANNING:
case SCANNING_FRAGMENT:
avInfoPanelFactory.get().showVendorMessage();
return;
case THREAT_FOUND:
avInfoPanelFactory.get().showThreatMessage(item,false);
return;
case SCAN_FAILED:
avInfoPanelFactory.get().showFailureMessage(item,false);
return;
default :
createFileInfoDialog(item);
return;
}
case GNUTELLA:
switch (item.getState()) {
case DANGEROUS:
avInfoPanelFactory.get().showDangerMessage(item,false);
return;
case SCANNING:
case SCANNING_FRAGMENT:
avInfoPanelFactory.get().showVendorMessage();
return;
case THREAT_FOUND:
avInfoPanelFactory.get().showThreatMessage(item,false);
return;
case SCAN_FAILED:
avInfoPanelFactory.get().showFailureMessage(item,false);
return;
}
break;
}
}
Program: 3715
Project: 3715
Buggy source:
public void load(String url){
  loadedOnce=true;
  url=application.addClientInfoToUrl(url);
  if (firstRequest) {
    if (isLastRequestSuccessful()) {
      firstRequest=false;
    }
 else {
      url+="String_Node_Str";
      if (application.isNewInstall()) {
        url+="String_Node_Str" + true;
        url+="String_Node_Str" + EncodingUtils.encode(application.getAskValue());
      }
      if (initialLoadTime == -1) {
        initialLoadTime=System.currentTimeMillis();
      }
    }
  }
  if (MozillaInitialization.isInitialized()) {
    browser.load(url);
  }
 else {
    url+="String_Node_Str";
    URL bgImage=HomePanel.class.getResource("String_Node_Str");
    URL topImage=HomePanel.class.getResource("String_Node_Str");
    String offlinePage="String_Node_Str" + bgImage.toExternalForm() + "String_Node_Str"+ topImage.toExternalForm()+ "String_Node_Str";
    fallbackBrowser.setPageAsynchronous(url,offlinePage).addFutureListener(new EventListener<FutureEvent<LoadResult>>(){
      @SwingEDTEvent public void handleEvent(      FutureEvent<LoadResult> event){
        pageLoadFinished(event.getResult() == LoadResult.SERVER_PAGE);
      }
    }
);
  }
}

Fixed version (ground truth):
public void load(String url){
  loadedOnce=true;
  url=application.addClientInfoToUrl(url);
  if (firstRequest) {
    if (isLastRequestSuccessful()) {
      firstRequest=false;
    }
 else {
      url+="String_Node_Str";
      if (application.isNewInstall()) {
        url+="String_Node_Str" + true;
        if (OSUtils.isWindows()) {
          url+="String_Node_Str" + EncodingUtils.encode(application.getAskValue());
        }
      }
      if (initialLoadTime == -1) {
        initialLoadTime=System.currentTimeMillis();
      }
    }
  }
  if (MozillaInitialization.isInitialized()) {
    browser.load(url);
  }
 else {
    url+="String_Node_Str";
    URL bgImage=HomePanel.class.getResource("String_Node_Str");
    URL topImage=HomePanel.class.getResource("String_Node_Str");
    String offlinePage="String_Node_Str" + bgImage.toExternalForm() + "String_Node_Str"+ topImage.toExternalForm()+ "String_Node_Str";
    fallbackBrowser.setPageAsynchronous(url,offlinePage).addFutureListener(new EventListener<FutureEvent<LoadResult>>(){
      @SwingEDTEvent public void handleEvent(      FutureEvent<LoadResult> event){
        pageLoadFinished(event.getResult() == LoadResult.SERVER_PAGE);
      }
    }
);
  }
}
Program: 3717
Project: 3717
Buggy source:
/** 
 * Creates a Spinner to set the Max Download Bandwidth for a Torrent.
 */
private JSpinner createDownloadSpinner(){
  SpinnerNumberModel maxSpinnerModel=new SpinnerNumberModel(DownloadSettings.MAX_DOWNLOAD_SPEED.getValue() / 1024,DownloadSettings.MAX_DOWNLOAD_SPEED.getMinValue().intValue() / 1024,DownloadSettings.MAX_DOWNLOAD_SPEED.getMaxValue().intValue() / 1024,1);
  return createSpinner(maxSpinnerModel);
}

Fixed version (ground truth):
/** 
 * Creates a Spinner to set the Max Download Bandwidth for a Torrent.
 */
private JSpinner createDownloadSpinner(){
  SpinnerNumberModel maxSpinnerModel=new SpinnerNumberModel(DownloadSettings.MAX_DOWNLOAD_SPEED.getValue() / 1024,DownloadSettings.MAX_DOWNLOAD_SPEED.getMinValue().intValue() / 1024,DownloadSettings.LIMIT_MAX_DOWNLOAD_SPEED.get() ? (DownloadSettings.MAX_DOWNLOAD_SPEED.getValue() / 1024) : (DownloadSettings.MAX_DOWNLOAD_SPEED.getMaxValue().intValue() / 1024),1);
  return createSpinner(maxSpinnerModel);
}
Program: 3718
Project: 3718
Buggy source:
/** 
 * Creates a Spinner to set the Max Upload Bandwidth for a Torrent. 
 */
private JSpinner createUploadSpinner(){
  SpinnerNumberModel maxUploadSpinnerModel=new SpinnerNumberModel(UploadSettings.MAX_UPLOAD_SPEED.getValue() / 1024,UploadSettings.MAX_UPLOAD_SPEED.getMinValue().intValue() / 1024,UploadSettings.MAX_UPLOAD_SPEED.getMaxValue().intValue() / 1024,1);
  return createSpinner(maxUploadSpinnerModel);
}

Fixed version (ground truth):
/** 
 * Creates a Spinner to set the Max Upload Bandwidth for a Torrent. 
 */
private JSpinner createUploadSpinner(){
  SpinnerNumberModel maxUploadSpinnerModel=new SpinnerNumberModel(UploadSettings.MAX_UPLOAD_SPEED.getValue() / 1024,UploadSettings.MAX_UPLOAD_SPEED.getMinValue().intValue() / 1024,UploadSettings.LIMIT_MAX_UPLOAD_SPEED.get() ? (UploadSettings.MAX_UPLOAD_SPEED.getValue() / 1024) : (UploadSettings.MAX_UPLOAD_SPEED.getMaxValue().intValue() / 1024),1);
  return createSpinner(maxUploadSpinnerModel);
}
Program: 3719
Project: 3719
Buggy source:
/** 
 * Asks the user whether to continue with a torrent download that contains files with banned extensions.
 * @return true if the download should continue.
 */
@Override public boolean promptAboutTorrentWithBannedExtensions(Torrent torrent,Set<String> bannedExtensions){
  String extensions=StringUtils.explode(bannedExtensions,"String_Node_Str");
  String warning=I18n.tr("String_Node_Str",extensions);
  String prompt=I18n.tr("String_Node_Str");
  MultiLineLabel label=new MultiLineLabel(warning + "String_Node_Str" + prompt,400);
  int ok=FocusJOptionPane.showConfirmDialog(GuiUtils.getMainFrame(),label,torrent.getName(),JOptionPane.YES_NO_OPTION);
  return ok == JOptionPane.YES_OPTION;
}

Fixed version (ground truth):
/** 
 * Asks the user whether to continue with a torrent download that contains files with banned extensions.
 * @return true if the download should continue.
 */
@Override public boolean promptAboutTorrentWithBannedExtensions(Torrent torrent,Set<String> bannedExtensions){
  String extensions=StringUtils.explode(bannedExtensions,"String_Node_Str");
  String warning=I18n.tr("String_Node_Str",extensions);
  String prompt=I18n.tr("String_Node_Str");
  final MultiLineLabel label=new MultiLineLabel(warning + "String_Node_Str" + prompt,400);
  final String title=I18n.tr("String_Node_Str",torrent.getName());
  final AtomicInteger result=new AtomicInteger(JOptionPane.YES_OPTION);
  SwingUtils.invokeNowOrWait(new Runnable(){
    @Override public void run(){
      result.set(FocusJOptionPane.showConfirmDialog(GuiUtils.getMainFrame(),label,title,JOptionPane.YES_NO_OPTION));
    }
  }
);
  return result.get() == JOptionPane.YES_OPTION;
}
Program: 3720
Project: 3720
Buggy source:
@Override public boolean promptUserQuestion(String marktr){
  return yesNoQuestion(I18n.tr(marktr));
}

Fixed version (ground truth):
@Override public boolean promptUserQuestion(final String marktr){
  final MultiLineLabel label=new MultiLineLabel(I18n.tr(marktr),400);
  final String title=I18n.tr("String_Node_Str");
  final AtomicInteger result=new AtomicInteger(JOptionPane.YES_OPTION);
  SwingUtils.invokeNowOrWait(new Runnable(){
    @Override public void run(){
      result.set(FocusJOptionPane.showConfirmDialog(GuiUtils.getMainFrame(),label,title,JOptionPane.YES_NO_OPTION));
    }
  }
);
  return result.get() == JOptionPane.YES_OPTION;
}
Program: 3721
Project: 3721
Buggy source:
@Override public void run(){
  result.set(TorrentDownloadSelector.showBittorrentSelector(torrent,fileInfoPanelFactory.get()));
}

Fixed version (ground truth):
@Override public void run(){
  result.set(FocusJOptionPane.showConfirmDialog(GuiUtils.getMainFrame(),label,title,JOptionPane.YES_NO_OPTION));
}
Program: 3722
Project: 3722
Buggy source:
public void testKeyMismatchServerUnsuccessfullyDecrypts() throws Exception {
  settingsStub.serverPublicKey="String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str";
  String json="String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str";
  serverController.setReturnJsonTemplate(json);
  serverController.startServer();
  ActivationCommunicator comm=injector.getInstance(ActivationCommunicator.class);
  try {
    comm.activate("String_Node_Str",RequestType.USER_ACTIVATE);
    fail("String_Node_Str");
  }
 catch (  InvalidTokenException e) {
    assertEquals("String_Node_Str",e.getMessage());
  }
}

Fixed version (ground truth):
public void testKeyMismatchServerUnsuccessfullyDecrypts() throws Exception {
  settingsStub.serverPublicKey="String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str";
  String json="String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str";
  serverController.setReturnJsonTemplate(json);
  serverController.startServer();
  ActivationCommunicator comm=injector.getInstance(ActivationCommunicator.class);
  ActivationResponse resp=comm.activate("String_Node_Str",RequestType.USER_ACTIVATE);
  assertEquals(ActivationResponse.Type.ERROR,resp.getResponseType());
}
Program: 3723
Project: 3723
Buggy source:
public ActivationResponse activate(final String licenseId,RequestType type) throws IOException, InvalidDataException, InvalidTokenException {
  String randomNumber=getRandomToken();
  String lidToken=getEncryptedToken(licenseId,randomNumber);
  String postContent=activationSettings.getQueryString() + "String_Node_Str" + licenseId+ "String_Node_Str"+ lidToken;
  String jsonResult=sendToServer(postContent,licenseId,type);
  ActivationResponse activationResponse=activationFactory.createFromJson(jsonResult);
  boolean responseHasSameRandomNumber=randomNumber.equals(activationResponse.getToken());
  if (!responseHasSameRandomNumber) {
    throw new InvalidTokenException("String_Node_Str");
  }
  return activationResponse;
}

Fixed version (ground truth):
public ActivationResponse activate(final String licenseId,RequestType type) throws IOException, InvalidDataException, InvalidTokenException {
  String randomNumber=getRandomToken();
  String lidToken=getEncryptedToken(licenseId,randomNumber);
  String postContent=activationSettings.getQueryString() + "String_Node_Str" + licenseId+ "String_Node_Str"+ lidToken;
  String jsonResult=sendToServer(postContent,licenseId,type);
  ActivationResponse activationResponse=activationFactory.createFromJson(jsonResult);
  boolean responseHasSameRandomNumber=randomNumber.equals(activationResponse.getToken());
  if ((activationResponse.getResponseType() == ActivationResponse.Type.VALID) && !responseHasSameRandomNumber) {
    throw new InvalidTokenException("String_Node_Str");
  }
  return activationResponse;
}
Program: 3724
Project: 3724
Buggy source:
private void checkLicenseForCompleteness(){
  if (getLength() == 14 || getLength() == 0) {
    if (!licenseIsCorrectLength) {
      firePropertyChange(LICENSE_IS_CORRECT_LENGTH,licenseIsCorrectLength,true);
      licenseIsCorrectLength=true;
    }
  }
 else {
    if (licenseIsCorrectLength) {
      firePropertyChange(LICENSE_IS_CORRECT_LENGTH,licenseIsCorrectLength,false);
      licenseIsCorrectLength=false;
    }
  }
}

Fixed version (ground truth):
private void checkLicenseForCompleteness(){
  boolean isCorrectLength=getLength() == 14 || getLength() == 0;
  firePropertyChange(LICENSE_IS_CORRECT_LENGTH,!isCorrectLength,isCorrectLength);
}
Program: 3725
Project: 3725
Buggy source:
@Inject public ActivationManagerImpl(@Named("String_Node_Str") ScheduledExecutorService scheduler,ActivationCommunicator activationCommunicator,ActivationModel activationModel,ActivationSerializer activationSerializer,ActivationResponseFactory activationReponseFactory,ActivationSettingsController activationSettings,ApplicationServices applicationServices){
  this.activationModel=activationModel;
  this.scheduler=scheduler;
  this.activationCommunicator=activationCommunicator;
  this.activationSerializer=activationSerializer;
  this.activationResponseFactory=activationReponseFactory;
  this.activationSettings=activationSettings;
  this.applicationServices=applicationServices;
}

Fixed version (ground truth):
@Inject public ActivationManagerImpl(@Named("String_Node_Str") ScheduledExecutorService scheduler,ActivationCommunicator activationCommunicator,ActivationModel activationModel,ActivationSerializer activationSerializer,ActivationResponseFactory activationReponseFactory,ActivationSettingsController activationSettings){
  this.activationModel=activationModel;
  this.scheduler=scheduler;
  this.activationCommunicator=activationCommunicator;
  this.activationSerializer=activationSerializer;
  this.activationResponseFactory=activationReponseFactory;
  this.activationSettings=activationSettings;
}
Program: 3726
Project: 3726
Buggy source:
private void deleteBuyProLinks(boolean lastStartPro){
  if (OSUtils.isWindows() && (!lastStartPro || applicationServices.isNewInstall())) {
    File pathToLimeWireStartMenuLink=new File(System.getProperty("String_Node_Str") + PATH_TO_BUY_PRO_LINK);
    if (pathToLimeWireStartMenuLink.exists()) {
      pathToLimeWireStartMenuLink.delete();
    }
    File pathToLimeWireAllUsersStartMenuLink=new File(System.getProperty("String_Node_Str") + "String_Node_Str" + PATH_TO_BUY_PRO_LINK);
    if (pathToLimeWireAllUsersStartMenuLink.exists()) {
      pathToLimeWireAllUsersStartMenuLink.delete();
    }
  }
}

Fixed version (ground truth):
private void deleteBuyProLinks(boolean lastStartPro){
  if (OSUtils.isWindows() && (!lastStartPro || activationSettings.isNewInstall())) {
    File pathToLimeWireStartMenuLink=new File(System.getProperty("String_Node_Str") + PATH_TO_BUY_PRO_LINK);
    if (pathToLimeWireStartMenuLink.exists()) {
      pathToLimeWireStartMenuLink.delete();
    }
    File pathToLimeWireAllUsersStartMenuLink=new File(System.getProperty("String_Node_Str") + "String_Node_Str" + PATH_TO_BUY_PRO_LINK);
    if (pathToLimeWireAllUsersStartMenuLink.exists()) {
      pathToLimeWireAllUsersStartMenuLink.delete();
    }
  }
}
Program: 3727
Project: 3727
Buggy source:
/** 
 * @param comm ActivationCommunicator
 * @return an {@link ActivationManager} object with astub/mocked  {@link ActivationCommunicator}
 */
private ActivationManagerImpl getActivationManager(ActivationCommunicator comm){
  ActivationModel model=injector.getInstance(ActivationModel.class);
  ActivationSerializer serializer=injector.getInstance(ActivationSerializer.class);
  ScheduledExecutorService scheduler=injector.getInstance(Key.get(ScheduledExecutorService.class,Names.named("String_Node_Str")));
  ActivationResponseFactory factory=injector.getInstance(ActivationResponseFactory.class);
  return new ActivationManagerImpl(scheduler,comm,model,serializer,factory,activationSettings,null);
}

Fixed version (ground truth):
/** 
 * @param comm ActivationCommunicator
 * @return an {@link ActivationManager} object with astub/mocked  {@link ActivationCommunicator}
 */
private ActivationManagerImpl getActivationManager(ActivationCommunicator comm){
  ActivationModel model=injector.getInstance(ActivationModel.class);
  ActivationSerializer serializer=injector.getInstance(ActivationSerializer.class);
  ScheduledExecutorService scheduler=injector.getInstance(Key.get(ScheduledExecutorService.class,Names.named("String_Node_Str")));
  ActivationResponseFactory factory=injector.getInstance(ActivationResponseFactory.class);
  return new ActivationManagerImpl(scheduler,comm,model,serializer,factory,activationSettings);
}
Program: 3729
Project: 3729
Buggy source:
public UnderneathActivationTableMessagePanel(){
  setLayout(new BorderLayout());
  setOpaque(false);
  iconLabel=new JLabel(unsupportedIcon);
  textLabel=new LabelWithLinkSupport();
  add(iconLabel,BorderLayout.WEST);
  add(textLabel,BorderLayout.CENTER);
}

Fixed version (ground truth):
public UnderneathActivationTableMessagePanel(){
  setLayout(new BorderLayout());
  setOpaque(false);
  iconLabel=new JLabel(unsupportedIcon);
  iconLabel.setBorder(BorderFactory.createEmptyBorder(0,0,0,6));
  textLabel=new LabelWithLinkSupport();
  textLabel.setBorder(BorderFactory.createEmptyBorder());
  add(iconLabel,BorderLayout.WEST);
  add(textLabel,BorderLayout.CENTER);
}
Program: 3730
Project: 3730
Buggy source:
public ActivationTable(EventList<ActivationItem> eventList,CalendarRenderer calendarRenderer,Application application){
  GuiUtils.assignResources(this);
  model=new DefaultEventTableModel<ActivationItem>(new SortedList<ActivationItem>(eventList,new ActivationItemComparator()),new ActivationTableFormat());
  setModel(model);
  this.application=application;
  initTable();
  getColumnExt(ActivationTableFormat.DATE_REGISTERED_INDEX).setMinWidth(90);
  getColumnExt(ActivationTableFormat.DATE_REGISTERED_INDEX).setMaxWidth(90);
  getColumnExt(ActivationTableFormat.DATE_EXPIRE_INDEX).setMinWidth(90);
  getColumnExt(ActivationTableFormat.DATE_EXPIRE_INDEX).setMaxWidth(90);
  getColumn(ActivationTableFormat.MODULE_TYPE_INDEX).setCellRenderer(new LicenseTypeEditorRenderer());
  getColumn(ActivationTableFormat.MODULE_TYPE_INDEX).setCellEditor(new LicenseTypeEditorRenderer());
  getColumn(ActivationTableFormat.DATE_REGISTERED_INDEX).setCellRenderer(calendarRenderer);
  getColumn(ActivationTableFormat.DATE_EXPIRE_INDEX).setCellRenderer(new ExpiredRendererEditor());
  ExpiredRendererEditor expiredRenderer=new ExpiredRendererEditor();
  expiredRenderer.addActionListener(new ActivationInfoAction(expiredRenderer,this,application));
  getColumn(ActivationTableFormat.DATE_EXPIRE_INDEX).setCellEditor(expiredRenderer);
  setupHighlighters();
}

Fixed version (ground truth):
public ActivationTable(EventList<ActivationItem> eventList,CalendarRenderer calendarRenderer,Application application){
  GuiUtils.assignResources(this);
  model=new DefaultEventTableModel<ActivationItem>(new SortedList<ActivationItem>(eventList,new ActivationItemComparator()),new ActivationTableFormat());
  setModel(model);
  this.application=application;
  initTable();
  getColumnExt(ActivationTableFormat.DATE_REGISTERED_INDEX).setMinWidth(100);
  getColumnExt(ActivationTableFormat.DATE_REGISTERED_INDEX).setMaxWidth(100);
  getColumnExt(ActivationTableFormat.DATE_EXPIRE_INDEX).setMinWidth(100);
  getColumnExt(ActivationTableFormat.DATE_EXPIRE_INDEX).setMaxWidth(100);
  getColumn(ActivationTableFormat.MODULE_TYPE_INDEX).setCellRenderer(new LicenseTypeEditorRenderer());
  getColumn(ActivationTableFormat.MODULE_TYPE_INDEX).setCellEditor(new LicenseTypeEditorRenderer());
  getColumn(ActivationTableFormat.DATE_REGISTERED_INDEX).setCellRenderer(calendarRenderer);
  getColumn(ActivationTableFormat.DATE_EXPIRE_INDEX).setCellRenderer(new ExpiredRendererEditor());
  ExpiredRendererEditor expiredRenderer=new ExpiredRendererEditor();
  expiredRenderer.addActionListener(new ActivationInfoAction(expiredRenderer,this,application));
  getColumn(ActivationTableFormat.DATE_EXPIRE_INDEX).setCellEditor(expiredRenderer);
  setupHighlighters();
}
Program: 3732
Project: 3732
Buggy source:
@Inject public ActivationCommunicatorImpl(ActSettings activationSettings,ActivationResponseFactory activationFactory,Provider<LimeHttpClient> httpClientProvider){
  this.activationSettings=activationSettings;
  this.httpClientProvider=httpClientProvider;
  this.activationFactory=activationFactory;
}

Fixed version (ground truth):
@Inject public ActivationCommunicatorImpl(ActivationSettingsController activationSettings,ActivationResponseFactory activationFactory,Provider<LimeHttpClient> httpClientProvider){
  this.activationSettings=activationSettings;
  this.httpClientProvider=httpClientProvider;
  this.activationFactory=activationFactory;
}
Program: 3733
Project: 3733
Buggy source:
@Inject public ActivationItemFactoryImpl(ActSettings activationSettings){
  this.activationSettings=activationSettings;
}

Fixed version (ground truth):
@Inject public ActivationItemFactoryImpl(ActivationSettingsController activationSettings){
  this.activationSettings=activationSettings;
}
Program: 3734
Project: 3734
Buggy source:
public ActivationItemImpl(ActSettings activationSettings,int intID,String licenseName,Date datePurchased,Date dateExpired,Status currentStatus,boolean isLoadedFromDisk){
  this.activationSettings=activationSettings;
  this.intID=intID;
  this.moduleID=ActivationID.getActivationID(intID);
  this.licenseName=licenseName;
  this.datePurchased=datePurchased;
  this.dateExpired=dateExpired;
  this.currentStatus=updateActivationStatus(currentStatus,isLoadedFromDisk);
}

Fixed version (ground truth):
public ActivationItemImpl(ActivationSettingsController activationSettings,int intID,String licenseName,Date datePurchased,Date dateExpired,Status currentStatus,boolean isLoadedFromDisk){
  this.activationSettings=activationSettings;
  this.intID=intID;
  this.moduleID=ActivationID.getActivationID(intID);
  this.licenseName=licenseName;
  this.datePurchased=datePurchased;
  this.dateExpired=dateExpired;
  this.currentStatus=updateActivationStatus(currentStatus,isLoadedFromDisk);
}
Program: 3735
Project: 3735
Buggy source:
@Inject public ActivationManagerImpl(@Named("String_Node_Str") ScheduledExecutorService scheduler,ActivationCommunicator activationCommunicator,ActivationModel activationModel,ActivationSerializer activationSerializer,ActivationResponseFactory activationReponseFactory,ActSettings activationSettings){
  this.activationModel=activationModel;
  this.scheduler=scheduler;
  this.activationCommunicator=activationCommunicator;
  this.activationSerializer=activationSerializer;
  this.activationResponseFactory=activationReponseFactory;
  this.activationSettings=activationSettings;
}

Fixed version (ground truth):
@Inject public ActivationManagerImpl(@Named("String_Node_Str") ScheduledExecutorService scheduler,ActivationCommunicator activationCommunicator,ActivationModel activationModel,ActivationSerializer activationSerializer,ActivationResponseFactory activationReponseFactory,ActivationSettingsController activationSettings){
  this.activationModel=activationModel;
  this.scheduler=scheduler;
  this.activationCommunicator=activationCommunicator;
  this.activationSerializer=activationSerializer;
  this.activationResponseFactory=activationReponseFactory;
  this.activationSettings=activationSettings;
}
Program: 3736
Project: 3736
Buggy source:
@Inject public ActivationSerializerImpl(ActivationSerializerSettings settings,CipherProvider cipherProvider,ActSettings activationSettings){
  this.settings=settings;
  this.cipherProvider=cipherProvider;
  this.activationSettings=activationSettings;
}

Fixed version (ground truth):
@Inject public ActivationSerializerImpl(ActivationSerializerSettings settings,CipherProvider cipherProvider,ActivationSettingsController activationSettings){
  this.settings=settings;
  this.cipherProvider=cipherProvider;
  this.activationSettings=activationSettings;
}
Program: 3737
Project: 3737
Buggy source:
private Module[] getModules(){
  List<Module> modules=new ArrayList<Module>();
  modules.add(new AbstractModule(){
    @Override public void configure(){
      bind(ActSettings.class).toInstance(new ActivationSettingStub());
      bind(ActivationCommunicator.class).to(ActivationCommunicatorImpl.class);
      bind(ActivationResponseFactory.class).to(ActivationResponseFactoryImpl.class);
      bind(ActivationItemFactory.class).to(ActivationItemFactoryImpl.class);
      bind(ScheduledExecutorService.class).annotatedWith(Names.named("String_Node_Str")).toInstance(new SimpleTimer(true));
    }
  }
);
  modules.add(new LimeWireHttpModule());
  modules.add(new LimeWireCommonModule());
  modules.add(new LimeWireNetTestModule());
  return modules.toArray(new Module[modules.size()]);
}

Fixed version (ground truth):
private Module[] getModules(){
  List<Module> modules=new ArrayList<Module>();
  modules.add(new AbstractModule(){
    @Override public void configure(){
      bind(ActivationSettingsController.class).toInstance(new ActivationSettingStub());
      bind(ActivationCommunicator.class).to(ActivationCommunicatorImpl.class);
      bind(ActivationResponseFactory.class).to(ActivationResponseFactoryImpl.class);
      bind(ActivationItemFactory.class).to(ActivationItemFactoryImpl.class);
      bind(ScheduledExecutorService.class).annotatedWith(Names.named("String_Node_Str")).toInstance(new SimpleTimer(true));
    }
  }
);
  modules.add(new LimeWireHttpModule());
  modules.add(new LimeWireCommonModule());
  modules.add(new LimeWireNetTestModule());
  return modules.toArray(new Module[modules.size()]);
}
Program: 3738
Project: 3738
Buggy source:
@Override public void configure(){
  bind(ActSettings.class).toInstance(new ActivationSettingStub());
  bind(ActivationCommunicator.class).to(ActivationCommunicatorImpl.class);
  bind(ActivationResponseFactory.class).to(ActivationResponseFactoryImpl.class);
  bind(ActivationItemFactory.class).to(ActivationItemFactoryImpl.class);
  bind(ScheduledExecutorService.class).annotatedWith(Names.named("String_Node_Str")).toInstance(new SimpleTimer(true));
}

Fixed version (ground truth):
@Override public void configure(){
  bind(ActivationSettingsController.class).toInstance(new ActivationSettingStub());
  bind(ActivationCommunicator.class).to(ActivationCommunicatorImpl.class);
  bind(ActivationResponseFactory.class).to(ActivationResponseFactoryImpl.class);
  bind(ActivationItemFactory.class).to(ActivationItemFactoryImpl.class);
  bind(ScheduledExecutorService.class).annotatedWith(Names.named("String_Node_Str")).toInstance(new SimpleTimer(true));
}
Program: 3739
Project: 3739
Buggy source:
@Override protected void setUp() throws Exception {
  injector=createInjector(getModules());
  serverController=new ServerController();
  comm=injector.getInstance(ActivationCommunicator.class);
  settingsStub=(ActivationSettingStub)injector.getInstance(ActSettings.class);
  settingsStub.setActivationHost("String_Node_Str");
}

Fixed version (ground truth):
@Override protected void setUp() throws Exception {
  injector=createInjector(getModules());
  serverController=new ServerController();
  comm=injector.getInstance(ActivationCommunicator.class);
  settingsStub=(ActivationSettingStub)injector.getInstance(ActivationSettingsController.class);
  settingsStub.setActivationHost("String_Node_Str");
}
Program: 3740
Project: 3740
Buggy source:
private Module[] getModules(){
  List<Module> modules=new ArrayList<Module>();
  modules.add(new AbstractModule(){
    @Override public void configure(){
      bind(CipherProvider.class).to(CipherProviderImpl.class);
      bind(ActSettings.class).to(ActivationSettingStub.class);
      bind(ScheduledExecutorService.class).annotatedWith(Names.named("String_Node_Str")).toInstance(new SimpleTimer(true));
      LimeScheduledThreadPoolExecutor scheduledThreadExecutor=new LimeScheduledThreadPoolExecutor(1,ExecutorsHelper.daemonThreadFactory("String_Node_Str"));
      bind(Executor.class).annotatedWith(Names.named("String_Node_Str")).toInstance(scheduledThreadExecutor);
      bind(ScheduledExecutorService.class).annotatedWith(Names.named("String_Node_Str")).toInstance(scheduledThreadExecutor);
      bind(ActivationResponseFactory.class).to(ActivationResponseFactoryImpl.class);
      bind(ActivationModel.class).to(ActivationModelImpl.class);
      bind(ActivationItemFactory.class).to(ActivationItemFactoryImpl.class);
    }
  }
);
  modules.add(new ActivationSerializerModule());
  modules.add(new LimeWireHttpModule());
  modules.add(new LimeWireCommonModule());
  modules.add(new LimeWireNetTestModule());
  return modules.toArray(new Module[modules.size()]);
}

Fixed version (ground truth):
private Module[] getModules(){
  List<Module> modules=new ArrayList<Module>();
  modules.add(new AbstractModule(){
    @Override public void configure(){
      bind(CipherProvider.class).to(CipherProviderImpl.class);
      bind(ActivationSettingsController.class).to(ActivationSettingStub.class);
      bind(ScheduledExecutorService.class).annotatedWith(Names.named("String_Node_Str")).toInstance(new SimpleTimer(true));
      LimeScheduledThreadPoolExecutor scheduledThreadExecutor=new LimeScheduledThreadPoolExecutor(1,ExecutorsHelper.daemonThreadFactory("String_Node_Str"));
      bind(Executor.class).annotatedWith(Names.named("String_Node_Str")).toInstance(scheduledThreadExecutor);
      bind(ScheduledExecutorService.class).annotatedWith(Names.named("String_Node_Str")).toInstance(scheduledThreadExecutor);
      bind(ActivationResponseFactory.class).to(ActivationResponseFactoryImpl.class);
      bind(ActivationModel.class).to(ActivationModelImpl.class);
      bind(ActivationItemFactory.class).to(ActivationItemFactoryImpl.class);
    }
  }
);
  modules.add(new ActivationSerializerModule());
  modules.add(new LimeWireHttpModule());
  modules.add(new LimeWireCommonModule());
  modules.add(new LimeWireNetTestModule());
  return modules.toArray(new Module[modules.size()]);
}