<commit_before>package jp.setchi.HitAndBlow;

import java.util.Arrays;
import java.util.Collections;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

public class StringUtility {
	
	private StringUtility() {}
	
	public static Boolean isDistinctChars(String str) {
		if (str == null) {
			throw new IllegalArgumentException("nullłB");
		}
		
		final Set<Character> existedCharacters = new HashSet<>();
		
		for (char c : str.toCharArray()) {
			if (existedCharacters.contains(c)) {
				return false;
			}
			existedCharacters.add(c);
		}
		
		return true;
	}
	
	public static String generateDistinctRandomNumeric(int digits) {
		final List<Integer> numbers = Arrays.asList(0, 1, 2, 3, 4, 5, 6, 7, 8, 9);
		
		if (digits < 0 || numbers.size() < digits) {
			throw new IllegalArgumentException(
					"0~" + numbers.size() + "͈̔͂Ŏw肵Ă: " + digits);
		}
		
		Collections.shuffle(numbers);
		
		StringBuilder stringBuilder = new StringBuilder();
		for (int number : numbers.subList(0, digits)) {
			stringBuilder.append(number);
		}
		
		return stringBuilder.toString();
	}
}
<commit_msg> Add final modifiers to immutable variables<commit_after>package jp.setchi.HitAndBlow;

import java.util.Arrays;
import java.util.Collections;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

public class StringUtility {
	
	private StringUtility() {}
	
	public static Boolean isDistinctChars(String str) {
		if (str == null) {
			throw new IllegalArgumentException("nullłB");
		}
		
		final Set<Character> existedCharacters = new HashSet<>();
		
		for (char c : str.toCharArray()) {
			if (existedCharacters.contains(c)) {
				return false;
			}
			existedCharacters.add(c);
		}
		
		return true;
	}
	
	public static String generateDistinctRandomNumeric(int digits) {
		final List<Integer> numbers = Arrays.asList(0, 1, 2, 3, 4, 5, 6, 7, 8, 9);
		
		if (digits < 0 || numbers.size() < digits) {
			throw new IllegalArgumentException(
					"0~" + numbers.size() + "͈̔͂Ŏw肵Ă: " + digits);
		}
		
		Collections.shuffle(numbers);
		
		final StringBuilder stringBuilder = new StringBuilder();
		for (int number : numbers.subList(0, digits)) {
			stringBuilder.append(number);
		}
		
		return stringBuilder.toString();
	}
}

{'fraction_non_alphanumeric': 0.12923351158645277, 'fraction_numerical': 0.011586452762923352, 'mean_word_length': 3.8383620689655173, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 9, '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': '359608', 'n_tokens_mistral': 874, 'n_tokens_neox': 727, 'n_words': 181}