<commit_before>package ch.tkuhn.nanopub.server;

import java.io.File;

import org.nanopub.NanopubImpl;

public class LoadNanopubs {

	private LoadNanopubs() {}  // no instances allowed

	public static void main(String[] args) {
		try {
			for (String s : args) {
				loadNanopub(new File(s));
			}
		} catch (Exception ex) {
			ex.printStackTrace();
			System.exit(1);
		}
	}

	public static void loadNanopub(File file) throws Exception {
		try {
			NanopubDb.get().loadNanopub(new NanopubImpl(file));
		} catch (Exception ex) {
			ex.printStackTrace();
			System.exit(1);
		}
	}

}<commit_msg>Simpler code<commit_after>package ch.tkuhn.nanopub.server;

import java.io.File;

import org.nanopub.NanopubImpl;

public class LoadNanopubs {

	private LoadNanopubs() {}  // no instances allowed

	public static void main(String[] args) {
		try {
			for (String s : args) {
				NanopubDb.get().loadNanopub(new NanopubImpl(new File(s)));
			}
		} catch (Exception ex) {
			ex.printStackTrace();
			System.exit(1);
		}
	}

}
{'fraction_non_alphanumeric': 0.1328740157480315, 'fraction_numerical': 0.002952755905511811, 'mean_word_length': 3.6227272727272726, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1560009', 'n_tokens_mistral': 427, 'n_tokens_neox': 365, 'n_words': 79}