<commit_before>package dynamake.transcription;

import java.util.List;

import dynamake.commands.CommandState;
import dynamake.models.PropogationContext;
import dynamake.models.Model.PendingUndoablePair;

public class SimpleExPendingCommandFactory2<T> implements ExPendingCommandFactory2<T> {
	private T reference;
	private List<CommandState<T>> pendingCommands;
	
	public SimpleExPendingCommandFactory2(T reference, List<CommandState<T>> pendingCommands) {
		this.reference = reference;
		this.pendingCommands = pendingCommands;
	}
	
	public SimpleExPendingCommandFactory2() {
		
	}

	@Override
	public T getReference() {
		return reference;
	}
	
	@Override
	public void createPendingCommands(List<CommandState<T>> pendingCommands) {
		pendingCommands.addAll(this.pendingCommands);
	}
	
	@Override
	public void afterPropogationFinished(List<PendingUndoablePair> pendingUndoablePairs, PropogationContext propCtx, int propDistance, Collector<T> collector) {

	}
	
	@Override
	public HistoryHandler<T> getHistoryHandler() {
		return new NullHistoryHandler<T>();
	}
}<commit_msg>Added another support for simpler usage of SimpleExPendingCommandFactory2.<commit_after>package dynamake.transcription;

import java.util.Arrays;
import java.util.List;

import dynamake.commands.CommandState;
import dynamake.models.PropogationContext;
import dynamake.models.Model.PendingUndoablePair;

public class SimpleExPendingCommandFactory2<T> implements ExPendingCommandFactory2<T> {
	private T reference;
	private List<CommandState<T>> pendingCommands;
	
	public SimpleExPendingCommandFactory2(T reference, List<CommandState<T>> pendingCommands) {
		this.reference = reference;
		this.pendingCommands = pendingCommands;
	}
	
	public SimpleExPendingCommandFactory2(T reference, @SuppressWarnings("unchecked") CommandState<T>... pendingCommands) {
		this.reference = reference;
		this.pendingCommands = Arrays.asList(pendingCommands);
	}
	
	public SimpleExPendingCommandFactory2() {
		
	}

	@Override
	public T getReference() {
		return reference;
	}
	
	@Override
	public void createPendingCommands(List<CommandState<T>> pendingCommands) {
		pendingCommands.addAll(this.pendingCommands);
	}
	
	@Override
	public void afterPropogationFinished(List<PendingUndoablePair> pendingUndoablePairs, PropogationContext propCtx, int propDistance, Collector<T> collector) {

	}
	
	@Override
	public HistoryHandler<T> getHistoryHandler() {
		return new NullHistoryHandler<T>();
	}
}
{'fraction_non_alphanumeric': 0.08731130150958792, 'fraction_numerical': 0.004079967360261118, 'mean_word_length': 6.784126984126984, 'pattern_counts': {'":': 0, '<': 28, '<?xml version=': 0, '>': 28, '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': '5277939', 'n_tokens_mistral': 736, 'n_tokens_neox': 730, 'n_words': 143}