Program: 16788
Project: 16788
Buggy source:
public void map(IntWritable key,Text value,Context context) throws IOException, InterruptedException {
  String temp_path=conf.get("String_Node_Str") + key.get() + "String_Node_Str";
  System.out.println("String_Node_Str" + temp_path);
  HipiImageBundle hib=new HipiImageBundle(new Path(temp_path),conf);
  hib.open(HipiImageBundle.FILE_MODE_WRITE,true);
  String word=value.toString();
  BufferedReader reader=new BufferedReader(new StringReader(word));
  String uri;
  int i=key.get();
  int iprev=i;
  while ((uri=reader.readLine()) != null) {
    if (i >= iprev + 100) {
      hib.close();
      context.write(new BooleanWritable(true),new Text(hib.getPath().toString()));
      temp_path=conf.get("String_Node_Str") + i + "String_Node_Str";
      hib=new HipiImageBundle(new Path(temp_path),conf);
      hib.open(HipiImageBundle.FILE_MODE_WRITE,true);
      iprev=i;
    }
    long startT=0;
    long stopT=0;
    startT=System.currentTimeMillis();
    try {
      String type="String_Node_Str";
      URLConnection conn;
      context.progress();
      try {
        URL link=new URL(uri);
        conn=link.openConnection();
        conn.connect();
        type=conn.getContentType();
      }
 catch (      Exception e) {
        System.err.println("String_Node_Str" + uri);
        continue;
      }
      if (type == null)       continue;
      if (type.compareTo("String_Node_Str") == 0)       continue;
      if (type != null) {
        if (type.compareTo("String_Node_Str") == 0)         hib.addImage(conn.getInputStream(),ImageType.JPEG_IMAGE);
      }
    }
 catch (    Exception e) {
      e.printStackTrace();
      System.err.println("String_Node_Str");
      try {
        Thread.sleep(1000);
      }
 catch (      InterruptedException e1) {
        e1.printStackTrace();
      }
    }
    i++;
    stopT=System.currentTimeMillis();
    float el=(float)(stopT - startT) / 1000.0f;
    System.out.println("String_Node_Str" + el + "String_Node_Str");
    System.out.println("String_Node_Str");
  }
  try {
    context.write(new BooleanWritable(true),new Text(hib.getPath().toString()));
    reader.close();
    hib.close();
  }
 catch (  Exception e) {
    e.printStackTrace();
  }
}

Fixed version (ground truth):
public void map(IntWritable key,Text value,Context context) throws IOException, InterruptedException {
  String temp_path=conf.get("String_Node_Str") + key.get() + "String_Node_Str";
  System.out.println("String_Node_Str" + temp_path);
  HipiImageBundle hib=new HipiImageBundle(new Path(temp_path),conf);
  hib.open(HipiImageBundle.FILE_MODE_WRITE,true);
  String word=value.toString();
  BufferedReader reader=new BufferedReader(new StringReader(word));
  String uri;
  int i=key.get();
  int iprev=i;
  while ((uri=reader.readLine()) != null) {
    if (i >= iprev + 100) {
      hib.close();
      context.write(new BooleanWritable(true),new Text(hib.getPath().toString()));
      temp_path=conf.get("String_Node_Str") + i + "String_Node_Str";
      hib=new HipiImageBundle(new Path(temp_path),conf);
      hib.open(HipiImageBundle.FILE_MODE_WRITE,true);
      iprev=i;
    }
    long startT=0;
    long stopT=0;
    startT=System.currentTimeMillis();
    try {
      String type="String_Node_Str";
      URLConnection conn;
      context.progress();
      try {
        URL link=new URL(uri);
        conn=link.openConnection();
        conn.connect();
        type=conn.getContentType();
      }
 catch (      Exception e) {
        System.err.println("String_Node_Str" + uri);
        continue;
      }
      if (type == null)       continue;
      if (type.compareTo("String_Node_Str") == 0)       continue;
      if (type != null) {
        if (type.compareTo("String_Node_Str") == 0)         hib.addImage(conn.getInputStream(),ImageType.JPEG_IMAGE);
      }
    }
 catch (    Exception e) {
      e.printStackTrace();
      System.err.println("String_Node_Str");
      try {
        Thread.sleep(1000);
      }
 catch (      InterruptedException e1) {
        e1.printStackTrace();
      }
    }
    i++;
    stopT=System.currentTimeMillis();
    float el=(float)(stopT - startT) / 1000.0f;
    System.out.println("String_Node_Str" + el + "String_Node_Str");
    System.out.println("String_Node_Str");
  }
  try {
    reader.close();
    hib.close();
    context.write(new BooleanWritable(true),new Text(hib.getPath().toString()));
  }
 catch (  Exception e) {
    e.printStackTrace();
  }
}