itemIDPadded.insert(0, '0');
}
List<Preference> prefs = new ArrayList<Preference>();
File movieFile = new File(new File(dataDirectory, "training_set"), "mv_00" + itemIDPadded + ".txt");
try {
for (String line : new FileLineIterable(movieFile, true)) {
int firstComma = line.indexOf((int) ',');
Integer userID = Integer.valueOf(line.substring(0, firstComma));
int secondComma = line.indexOf((int) ',', firstComma + 1);
float rating = Float.parseFloat(line.substring(firstComma + 1, secondComma));
prefs.add(new GenericPreference(userID, itemID, rating));