Program: 88930
Project: 88930
Buggy source:
private void doYoutubeRequest(String sender,String youtubeId,int startSeconds){
  updateQueuesForLeavers();
  if (blacklistedYoutubeIds.contains(youtubeId)) {
    denySong(sender,"String_Node_Str");
    return;
  }
  String infoUrl="String_Node_Str" + youtubeId + "String_Node_Str"+ conf.getUserCountryCode();
  GetMethod get=new GetMethod(infoUrl);
  HttpClient client=new HttpClient();
  try {
    int errcode=client.executeMethod(get);
    if (errcode != 200) {
      logger.info("String_Node_Str" + errcode + "String_Node_Str"+ infoUrl);
      denySong(sender,"String_Node_Str");
      return;
    }
  }
 catch (  IOException e) {
    logger.warn("String_Node_Str",e);
    denySong(sender,"String_Node_Str");
    return;
  }
  try {
    String resp=IOUtils.toString(get.getResponseBodyAsStream(),"String_Node_Str");
    if (resp == null) {
      logger.info("String_Node_Str" + infoUrl);
      denySong(sender,"String_Node_Str");
      return;
    }
    JSONObject obj=new JSONObject(resp);
    JSONObject data=obj.getJSONObject("String_Node_Str");
    String title=data.getString("String_Node_Str");
    int durationSeconds=data.getInt("String_Node_Str");
    JSONObject accessControl=data.getJSONObject("String_Node_Str");
    String embedAllowed=accessControl.getString("String_Node_Str");
    JSONObject status=data.optJSONObject("String_Node_Str");
    String restrictionReason=null;
    if (status != null) {
      restrictionReason=status.optString("String_Node_Str");
    }
    if ("String_Node_Str".equals(restrictionReason)) {
      denySong(sender,"String_Node_Str");
      return;
    }
    if ("String_Node_Str".equals(restrictionReason)) {
      denySong(sender,"String_Node_Str");
      return;
    }
    if (!("String_Node_Str".equals(embedAllowed))) {
      denySong(sender,"String_Node_Str");
      return;
    }
    if (!sender.equals(streamer) && durationSeconds / 60.0 > songLengthAllowedMinutes()) {
      denySong(sender,"String_Node_Str" + songLengthAllowedMinutes() + "String_Node_Str");
      return;
    }
    if (!sender.equals(streamer) && conf.getQueueSize() > 0 && songList.size() >= conf.getQueueSize()) {
      denySong(sender,"String_Node_Str" + conf.getQueueSize());
      return;
    }
    if (currentSong != null && youtubeId.equals(currentSong.getVideoId())) {
      denySong(sender,"String_Node_Str" + title + "String_Node_Str");
      return;
    }
    if (idCountInMainList(youtubeId) > 0) {
      denySong(sender,"String_Node_Str" + title + "String_Node_Str");
      return;
    }
    if (!sender.equals(streamer) && idInRecentHistory(youtubeId)) {
      denySong(sender,"String_Node_Str" + title + "String_Node_Str"+ conf.getRecencyDays()+ "String_Node_Str");
      return;
    }
    if (!sender.equals(streamer) && conf.getMaxSongsPerUser() > 0 && senderCount(sender) >= conf.getMaxSongsPerUser()) {
      denySong(sender,"String_Node_Str" + conf.getMaxSongsPerUser() + "String_Node_Str");
      return;
    }
    if (!sender.equals(streamer) && moveToPrimaryIfSongInSecondary(youtubeId)) {
      irc.message(sender + "String_Node_Str" + title+ "String_Node_Str");
      return;
    }
    if (!(currentSong == null && conf.isShowUpNextMessages())) {
      irc.message(sender + "String_Node_Str" + title+ "String_Node_Str"+ nextRequestId);
    }
    SongEntry newSong=new SongEntry(title,youtubeId,nextRequestId,sender,new Date().getTime(),durationSeconds,false,startSeconds);
    addSongToQueue(newSong);
  }
 catch (  IOException e) {
    logger.error("String_Node_Str" + youtubeId + "String_Node_Str",e);
    return;
  }
}

Fixed version (ground truth):
private void doYoutubeRequest(String sender,String youtubeId,int startSeconds){
  updateQueuesForLeavers();
  if (blacklistedYoutubeIds.contains(youtubeId)) {
    denySong(sender,"String_Node_Str");
    return;
  }
  String infoUrl="String_Node_Str" + youtubeId + "String_Node_Str"+ conf.getUserCountryCode();
  GetMethod get=new GetMethod(infoUrl);
  HttpClient client=new HttpClient();
  try {
    int errcode=client.executeMethod(get);
    if (errcode != 200) {
      logger.info("String_Node_Str" + errcode + "String_Node_Str"+ infoUrl);
      denySong(sender,"String_Node_Str");
      return;
    }
  }
 catch (  IOException e) {
    logger.warn("String_Node_Str",e);
    denySong(sender,"String_Node_Str");
    return;
  }
  try {
    String resp=IOUtils.toString(get.getResponseBodyAsStream(),"String_Node_Str");
    if (resp == null) {
      logger.info("String_Node_Str" + infoUrl);
      denySong(sender,"String_Node_Str");
      return;
    }
    JSONObject obj=new JSONObject(resp);
    JSONObject data=obj.getJSONObject("String_Node_Str");
    String title=data.getString("String_Node_Str");
    int durationSeconds=data.getInt("String_Node_Str");
    JSONObject accessControl=data.getJSONObject("String_Node_Str");
    String embedAllowed=accessControl.getString("String_Node_Str");
    JSONObject status=data.optJSONObject("String_Node_Str");
    String restrictionReason=null;
    if (status != null) {
      restrictionReason=status.optString("String_Node_Str");
    }
    if ("String_Node_Str".equals(restrictionReason)) {
      denySong(sender,"String_Node_Str");
      return;
    }
    if ("String_Node_Str".equals(restrictionReason)) {
      denySong(sender,"String_Node_Str");
      return;
    }
    if (!("String_Node_Str".equals(embedAllowed))) {
      denySong(sender,"String_Node_Str");
      return;
    }
    if (!sender.equals(streamer) && durationSeconds / 60.0 > songLengthAllowedMinutes()) {
      denySong(sender,"String_Node_Str" + songLengthAllowedMinutes() + "String_Node_Str");
      return;
    }
    if (!sender.equals(streamer) && conf.getQueueSize() > 0 && songList.size() >= conf.getQueueSize()) {
      denySong(sender,"String_Node_Str" + conf.getQueueSize());
      return;
    }
    if (currentSong != null && youtubeId.equals(currentSong.getVideoId())) {
      denySong(sender,"String_Node_Str" + title + "String_Node_Str");
      return;
    }
    if (idCountInMainList(youtubeId) > 0) {
      denySong(sender,"String_Node_Str" + title + "String_Node_Str");
      return;
    }
    if (!sender.equals(streamer) && idInRecentHistory(youtubeId)) {
      denySong(sender,"String_Node_Str" + title + "String_Node_Str"+ conf.getRecencyDays()+ "String_Node_Str");
      return;
    }
    if (!sender.equals(streamer) && conf.getMaxSongsPerUser() > 0 && senderCount(sender) >= conf.getMaxSongsPerUser()) {
      denySong(sender,"String_Node_Str" + conf.getMaxSongsPerUser() + "String_Node_Str");
      return;
    }
    if (!sender.equals(streamer) && moveToPrimaryIfSongInSecondary(youtubeId)) {
      irc.message(sender + "String_Node_Str" + title+ "String_Node_Str");
      return;
    }
    irc.message(sender + "String_Node_Str" + title+ "String_Node_Str"+ nextRequestId);
    SongEntry newSong=new SongEntry(title,youtubeId,nextRequestId,sender,new Date().getTime(),durationSeconds,false,startSeconds);
    addSongToQueue(newSong);
  }
 catch (  IOException e) {
    logger.error("String_Node_Str" + youtubeId + "String_Node_Str",e);
    return;
  }
}