<commit_before>package common.domain;

public class Letter {
	private static int staticId = 0;
	
	private char letter;
	private int id; 
	
	public Letter(char value) {
		this.letter = value;
		this.id = getNewId();
	}
	
	public char getValue() {
		return letter;
	}
	
	public int getId() {
		return id;
	}
	
	/**
	 * Generates new id: should be called in constructor.
	 */
	protected static int getNewId() {
		return staticId++;<commit_msg>Minor cosmetic code change in Letter: renamed 'staticId' to 'lastId' and added a Javadoc comment.<commit_after>package common.domain;

public class Letter {
  /** Must only be accessed from within getNewId() */
	private static int lastId = 0;
	
	private char letter;
	private int id; 
	
	public Letter(char value) {
		this.letter = value;
		this.id = getNewId();
	}
	
	public char getValue() {
		return letter;
	}
	
	public int getId() {
		return id;
	}
	
	/**
	 * Generates new id: should be called in constructor.
	 */
	protected static int getNewId() {
		return lastId++;
{'fraction_non_alphanumeric': 0.10355029585798817, 'fraction_numerical': 0.0019723865877712033, 'mean_word_length': 3.3191489361702127, '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': '2454834', 'n_tokens_mistral': 353, 'n_tokens_neox': 314, 'n_words': 114}