<commit_before>package edu.jhu.thrax.hadoop.jobs;

import edu.jhu.thrax.hadoop.features.mapred.*;

public class FeatureJobFactory {

	public static MapReduceFeature get(String name) {
		if (name.equals("e2fphrase"))
			return new SourcePhraseGivenTargetFeature();
		else if (name.equals("f2ephrase"))
			return new TargetPhraseGivenSourceFeature();
		else if (name.equals("rarity"))
			return new RarityPenaltyFeature();
		else if (name.equals("lexprob"))
			return new LexicalProbabilityFeature();
		else if (name.equals("f_given_lhs"))
			return new SourcePhraseGivenLHSFeature();
		else if (name.equals("lhs_given_f"))
			return new LhsGivenSourcePhraseFeature();
		else if (name.equals("f_given_e_and_lhs"))
			return new SourcePhraseGivenTargetandLHSFeature();
		else if (name.equals("e_given_lhs"))
			return new TargetPhraseGivenLHSFeature();
		else if (name.equals("lhs_given_e"))
			return new LhsGivenTargetPhraseFeature();
		else if (name.equals("e_given_f_and_lhs"))
			return new TargetPhraseGivenSourceandLHSFeature();

		return null;
	}
}<commit_msg>Added new features to job factory.<commit_after>package edu.jhu.thrax.hadoop.jobs;

import edu.jhu.thrax.hadoop.features.mapred.*;

public class FeatureJobFactory {

  public static MapReduceFeature get(String name) {
    if (name.equals("e2fphrase"))
      return new SourcePhraseGivenTargetFeature();
    else if (name.equals("f2ephrase"))
      return new TargetPhraseGivenSourceFeature();
    else if (name.equals("rarity"))
      return new RarityPenaltyFeature();
    else if (name.equals("lexprob"))
      return new LexicalProbabilityFeature();
    else if (name.equals("f_given_lhs"))
      return new SourcePhraseGivenLHSFeature();
    else if (name.equals("lhs_given_f"))
      return new LhsGivenSourcePhraseFeature();
    else if (name.equals("f_given_e_and_lhs"))
      return new SourcePhraseGivenTargetandLHSFeature();
    else if (name.equals("e_given_lhs"))
      return new TargetPhraseGivenLHSFeature();
    else if (name.equals("lhs_given_e"))
      return new LhsGivenTargetPhraseFeature();
    else if (name.equals("e_inv_given_lhs"))
      return new TargetPhraseGivenLHSFeature();
    else if (name.equals("lhs_given_e_inv"))
      return new LhsGivenTargetPhraseFeature();
    else if (name.equals("e_given_f_and_lhs")) return new TargetPhraseGivenSourceandLHSFeature();

    return null;
  }
}
{'fraction_non_alphanumeric': 0.1119496855345912, 'fraction_numerical': 0.0016771488469601676, 'mean_word_length': 5.01007556675063, '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': '3950338', 'n_tokens_mistral': 853, 'n_tokens_neox': 754, 'n_words': 163}