public static boolean saveCommits(Map<String, LinkedList<Commit>> map) {
		try {
			for(String fullName : map.keySet()) {
				JsonArrayBuilder arrayBuilder = Json.createArrayBuilder();
				for(Commit commit : map.get(fullName)) {
					arrayBuilder.add(commit.toJsonObject());
				}
	
				String content = arrayBuilder.build().toString();
				String folder = DATA_FOLDER + File.separator + fullName.split("/")[0];
				String path = DATA_FOLDER + File.separator + fullName.replace("/", File.separator) + ".json";
	
				File userFolder = new File(folder);
				if(!userFolder.exists()) {
					userFolder.mkdir();
				}
	
				File commitFile = new File(path);
				if(!commitFile.exists()) {
					commitFile.createNewFile();
				}
	
				FileWriter filewriter = new FileWriter(commitFile);
				filewriter.write(content);
				filewriter.close();
			}
		} catch (IOException e) {
			return false;
		}
		
		return true;
	}