class OccurrenceAdder {

  private static final int BUFFER_SIZE = 16384;

  private void run(Map<String, Integer> map, File dir) throws IOException {
    File[] files = dir.listFiles();
    for (File file : files) {
      runOnFile(map, file);
    }
  }

  private void runOnFile(Map<String, Integer> map, File file) throws IOException {
    System.out.println("Working on " + file);
    try (
      InputStream fileStream = new FileInputStream(file);
      InputStream gzipStream = new GZIPInputStream(fileStream, BUFFER_SIZE);
      Reader decoder = new InputStreamReader(gzipStream, "utf-8");
      BufferedReader buffered = new BufferedReader(decoder, BUFFER_SIZE)
    ) {
      String line;
      while ((line = buffered.readLine()) != null) {
        String[] parts = line.split("\t");
        String word = parts[0];
        int occurrences = Integer.parseInt(parts[2]);
        Integer val = map.get(word);
        if (val != null) {
          map.put(word, val + occurrences);
        }
      }
    }
  }

  public static void main(String[] args) throws IOException {<FILL_FUNCTION_BODY>}

}

    if (args.length != 2) {
      System.out.println("Usage: " + OccurrenceAdder.class.getName() + " <wordfile> <dir>");
      System.exit(1);
    }
    OccurrenceAdder occurrenceAdder = new OccurrenceAdder();
    Map<String, Integer> map = new HashMap<>();
    List<String> words = IOUtils.readLines(new FileInputStream(args[0]));
    for (String word : words) {
      map.put(word, 0);
    }
    occurrenceAdder.run(map, new File(args[1]));
    System.out.println("-------------------------");
    for (Map.Entry<String, Integer> entry : map.entrySet()) {
      System.out.println(entry.getValue() + "\t" + entry.getKey());
    }
  
<no_super_class>