<commit_before>package beaform.commands;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import beaform.dao.FormulaDAO;
import beaform.entities.Formula;
import beaform.events.Event;
import beaform.events.FormulaCreatedEvent;

public class CreateNewFormulaCommand implements Command {
	private static final Logger LOG = LoggerFactory.getLogger(CreateNewFormulaCommand.class);

	private final Formula formula;

	public CreateNewFormulaCommand(Formula formula) {
		this.formula = formula;
	}

	@Override
	public void execute() {
		Event create = new FormulaCreatedEvent(this.formula.getName());
		LOG.debug(create.toEventString());
		FormulaDAO.addFormula(this.formula);
	}

}<commit_msg>Don't bother with events for now<commit_after>package beaform.commands;

import beaform.dao.FormulaDAO;
import beaform.entities.Formula;

public class CreateNewFormulaCommand implements Command {

	private final Formula formula;

	public CreateNewFormulaCommand(Formula formula) {
		this.formula = formula;
	}

	@Override
	public void execute() {
		FormulaDAO.addFormula(this.formula);
	}

}
{'fraction_non_alphanumeric': 0.08831646734130635, 'fraction_numerical': 0.0018399264029438822, 'mean_word_length': 5.929936305732484, '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': '5564956', 'n_tokens_mistral': 354, 'n_tokens_neox': 338, 'n_words': 74}