<commit_before>package view.editor;


import java.util.ResourceBundle;

import api.ISerializable;
<<<<<<< HEAD
import javafx.collections.ObservableList;
=======
import javafx.scene.control.Button;
>>>>>>> frontend
import view.Utilities;

public class EditorFactory {

	public Editor createEditor(Class<?> name,  String language, ISerializable toEdit, ObservableList<ISerializable> masterList, ObservableList<ISerializable> otherList) {
		Editor editor = null;
		try {
			editor = (Editor) name.getConstructor( String.class, ISerializable.class, ObservableList.class, ObservableList.class).newInstance( language, toEdit, masterList, otherList);
		} catch (Exception e) {
			Utilities.showError("editCreate", ResourceBundle.getBundle(language));
		}
		return editor;
	}
}<commit_msg>imports<commit_after>package view.editor;


import java.util.ResourceBundle;
import api.ISerializable;
import javafx.collections.ObservableList;
import view.Utilities;

public class EditorFactory {

	public Editor createEditor(Class<?> name,  String language, ISerializable toEdit, ObservableList<ISerializable> masterList, ObservableList<ISerializable> otherList) {
		Editor editor = null;
		try {
			editor = (Editor) name.getConstructor( String.class, ISerializable.class, ObservableList.class, ObservableList.class).newInstance( language, toEdit, masterList, otherList);
		} catch (Exception e) {
			Utilities.showError("editCreate", ResourceBundle.getBundle(language));
		}
		return editor;
	}
}
{'fraction_non_alphanumeric': 0.11276164753544902, 'fraction_numerical': 0.0, 'mean_word_length': 6.41, 'pattern_counts': {'":': 0, '<': 16, '<?xml version=': 0, '>': 16, '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': '5918053', 'n_tokens_mistral': 441, 'n_tokens_neox': 421, 'n_words': 98}