<commit_before>package dynamake.tools;

public class ReflectToolFactory<T extends Tool> implements ToolFactory {
	private String name;
	private Class<T> c;

	@Override
	public String getName() {
		return name;
	}

	@Override
	public Tool createTool() {
		try {
			return c.newInstance();
		} catch (InstantiationException | IllegalAccessException e) {
			e.printStackTrace();
			return null;
		}
	}
}<commit_msg>Added constructor for initializing ReflectToolFactory objects with name and tool class.<commit_after>package dynamake.tools;

public class ReflectToolFactory<T extends Tool> implements ToolFactory {
	private String name;
	private Class<T> c;

	public ReflectToolFactory(String name, Class<T> c) {
		this.name = name;
		this.c = c;
	}

	@Override
	public String getName() {
		return name;
	}

	@Override
	public Tool createTool() {
		try {
			return c.newInstance();
		} catch (InstantiationException | IllegalAccessException e) {
			e.printStackTrace();
			return null;
		}
	}
}
{'fraction_non_alphanumeric': 0.09494949494949495, 'fraction_numerical': 0.0, 'mean_word_length': 4.327956989247312, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, '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': '2884791', 'n_tokens_mistral': 329, 'n_tokens_neox': 300, 'n_words': 89}