<commit_before>package scrum.client.issues;

import ilarkesto.gwt.client.Date;

import java.util.Arrays;
import java.util.Comparator;
import java.util.List;
import java.util.Map;

import scrum.client.project.Project;

public class Issue extends GIssue {

	public static final String INIT_TYPE = Types.ISSUE;

	public static final String REFERENCE_PREFIX = "iss";

	public static final IssueTypeLabelProvider TYPE_LABEL_PROVIDER = new IssueTypeLabelProvider();

	public Issue(Project project) {
		setType(INIT_TYPE);
		setProject(project);
		setDate(Date.today());
	}

	public Issue(Map data) {
		super(data);
	}

	public String getReference() {
		return REFERENCE_PREFIX + getNumber();
	}

	@Override
	public List<String> getTypeOptions() {
		return Types.ALL;
	}

	public String getTypeLabel() {
		return TYPE_LABEL_PROVIDER.getLabel(getType());
	}

	public boolean isTypeRequirement() {
		return Types.REQUIREMENT.equals(getType());
	}

	public boolean isTypeQuality() {
		return Types.QUALITY.equals(getType());
	}

	@Override
	public String toString() {
		return getReference() + " (" + getType() + ") " + getLabel();
	}

	public static final Comparator<Issue> DATE_COMPARATOR = new Comparator<Issue>() {

		public int compare(Issue a, Issue b) {
			return a.getDate().compareTo(b.getDate());
		}
	};

	public static final Comparator<Issue> REVERSE_DATE_COMPARATOR = new Comparator<Issue>() {

		public int compare(Issue a, Issue b) {
			return DATE_COMPARATOR.compare(b, a);
		}
	};

	public static class Types {

		public static final String ISSUE = "issue";
		public static final String BUG = "bug";
		public static final String REQUIREMENT = "requirement";
		public static final String QUALITY = "quality";
		public static final String IDEA = "idea";

		public static final List<String> ALL = Arrays.asList(ISSUE, BUG, REQUIREMENT, QUALITY, IDEA);
	}
}
<commit_msg>bugfix<commit_after>package scrum.client.issues;

import ilarkesto.gwt.client.Date;
import ilarkesto.gwt.client.Gwt;

import java.util.Arrays;
import java.util.Comparator;
import java.util.List;
import java.util.Map;

import scrum.client.ScrumJs;
import scrum.client.project.Project;

public class Issue extends GIssue {

	public static final String INIT_TYPE = Types.ISSUE;

	public static final String REFERENCE_PREFIX = "iss";

	public static final IssueTypeLabelProvider TYPE_LABEL_PROVIDER = new IssueTypeLabelProvider();

	public Issue(Project project) {
		setType(INIT_TYPE);
		setProject(project);
		setDate(Date.today());
	}

	public Issue(Map data) {
		super(data);
	}

	public String getReference() {
		return REFERENCE_PREFIX + getNumber();
	}

	@Override
	public List<String> getTypeOptions() {
		return Types.ALL;
	}

	public String getTypeLabel() {
		return TYPE_LABEL_PROVIDER.getLabel(getType());
	}

	public boolean isTypeRequirement() {
		return Types.REQUIREMENT.equals(getType());
	}

	public boolean isTypeQuality() {
		return Types.QUALITY.equals(getType());
	}

	@Override
	public String toHtml() {
		return ScrumJs.createShowEntityByReferenceLink(getReference()) + " " + Gwt.escapeHtml(getLabel());
	}

	@Override
	public String toString() {
		return getReference() + " (" + getType() + ") " + getLabel();
	}

	public static final Comparator<Issue> DATE_COMPARATOR = new Comparator<Issue>() {

		public int compare(Issue a, Issue b) {
			return a.getDate().compareTo(b.getDate());
		}
	};

	public static final Comparator<Issue> REVERSE_DATE_COMPARATOR = new Comparator<Issue>() {

		public int compare(Issue a, Issue b) {
			return DATE_COMPARATOR.compare(b, a);
		}
	};

	public static class Types {

		public static final String ISSUE = "issue";
		public static final String BUG = "bug";
		public static final String REQUIREMENT = "requirement";
		public static final String QUALITY = "quality";
		public static final String IDEA = "idea";

		public static final List<String> ALL = Arrays.asList(ISSUE, BUG, REQUIREMENT, QUALITY, IDEA);
	}
}

{'fraction_non_alphanumeric': 0.11387268577225462, 'fraction_numerical': 0.0, 'mean_word_length': 4.70767004341534, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, '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': '4219934', 'n_tokens_mistral': 1366, 'n_tokens_neox': 1261, 'n_words': 327}