686970717273747576
protected Sheet process(LogRecord rec) { ProjectOp op = ProjectOp.valueOf(rec); if (op != null) { ProjectChange ch = new ProjectChange(op, rec.getMillis()); List<ProjectChange> list = Collections.singletonList(ch); return new Sheet(list); } return Sheet.EMPTY; }
77787980818283
protected Sheet finishSessionUpload( String userId, int sessionNumber, boolean initialParse, Sheet d ) { // just keep the technology counts, no sequences of operations return new Sheet(d.getTechnologies()); }
87888990919293949596979899100101102103104
List<ProjectChange> twoOp = two.getOperations(); if (oneOp != null && twoOp != null) { if (oneOp.isEmpty()) { return new Sheet(twoOp); } if (twoOp.isEmpty()) { return new Sheet(oneOp); } List<ProjectChange> both = new ArrayList<ProjectChange>(oneOp); both.addAll(twoOp); return new Sheet(both); } else { return new Sheet(mergeCountMaps(one.getTechnologies(), two.getTechnologies())); } }
142143144145146147148
int cnt = pref.getInt(k, 0); if (cnt > 0) { amounts.put(k, cnt); } } return new Sheet(amounts); }
57585960616263646566
String longStr = str; for (int i = 0; i < 100; i++){ longStr = longStr.concat(str); } techs.put(longStr, 1); Sheet sheet = new Sheet(techs); Preferences prefs = new DatabaseTestCase.TestPreferences(); projects.write(prefs, sheet); }