<commit_before>/*
 * Created Jul 21, 2010
 */
package ltg.ps.api.phenomena;

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

import ltg.ps.api.Command;


/**
 * Represents a command sent to a specific phenomena.
 *
 * @author Gugo
 */
public abstract class PhenomenaCommand implements Command{
	
	// Logger
	protected Logger log = LoggerFactory.getLogger(this.getClass());
	
	// Target phenomena
	protected Phenomena target = null;
	// Origin of the command
	protected String from = null;
	
	
	/**
	 * Constructor.
	 * The phenomena passed as input is in charge of handling this command.
	 * 
	 * @param target Phenomena that will handle the command
	 * @param from The window that generated the command
	 */
	public PhenomenaCommand(Phenomena target, String from) {
		this.target = target;
		this.from = from;
	}

}<commit_msg>[api] Changed PhenomenaCommand to take a PhenomenaWindow as the origin of the command.<commit_after>/*
 * Created Jul 21, 2010
 */
package ltg.ps.api.phenomena;

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

import ltg.ps.api.Command;


/**
 * Represents a command sent to a specific phenomena.
 *
 * @author Gugo
 */
public abstract class PhenomenaCommand implements Command{
	
	// Logger
	protected Logger log = LoggerFactory.getLogger(this.getClass());
	
	// Target phenomena
	protected Phenomena target = null;
	// Origin of the command
	protected PhenomenaWindow origin = null;
	
	
	/**
	 * Constructor.
	 * The phenomena passed as input is in charge of handling this command.
	 * 
	 * @param target Phenomena that will handle the command
	 * @param origin The window that generated the command
	 */
	public PhenomenaCommand(Phenomena target, PhenomenaWindow origin) {
		this.target = target;
		this.origin = origin;
	}

}
{'fraction_non_alphanumeric': 0.08947664603263927, 'fraction_numerical': 0.009003939223410242, 'mean_word_length': 3.654450261780105, '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': '824491', 'n_tokens_mistral': 570, 'n_tokens_neox': 519, 'n_words': 184}