@@ -0,0 +1,1279 @@
+package com.formulasearchengine.mathosphere.mlp.gold;%0A%0Aimport com.fasterxml.jackson.databind.ObjectMapper;%0A%0Aimport org.apache.commons.csv.CSVFormat;%0Aimport org.apache.commons.csv.CSVRecord;%0Aimport org.junit.Ignore;%0Aimport org.junit.Test;%0A%0Aimport java.io.File;%0Aimport java.io.FileReader;%0Aimport java.io.IOException;%0Aimport java.util.HashMap;%0Aimport java.util.List;%0Aimport java.util.Map;%0A%0A/**%0A * Created by Moritz on 02.01.2016.%0A */%0Apublic class AddTitles %7B%0A%0A  @Test%0A  @Ignore%0A  public void addTitles() throws IOException %7B%0A    final File file = new File(getClass().getResource(%22gold.json%22).getFile());%0A    Map%3CInteger,String%3E titles = new HashMap%3C%3E();%0A    FileReader in = new FileReader(new File(getClass().getResource(%22titles.csv%22).getFile()));%0A    Iterable%3CCSVRecord%3E records = CSVFormat.RFC4180.parse(in);%0A    for (CSVRecord record : records) %7B%0A      titles.put(Integer.valueOf(record.get(0)),record.get(1));%0A    %7D%0A    ObjectMapper mapper = new ObjectMapper();%0A    List userData = mapper.readValue(file, List.class);%0A    for (Object o : userData) %7B%0A      final Map entry = (Map) o;%0A      Map formula = (Map) entry.get(%22formula%22);%0A      formula.put(%22title%22,titles.get(Integer.parseInt(String.valueOf(formula.get(%22oldId%22))) ));%0A    %7D%0A    mapper.writeValue(file, userData);%0A  %7D%0A%7D%0A

Add program to add titles