<commit_before>package org.metacsp.utility;

import java.util.Arrays;

/**
 * 
 * Generates r-permutations of n integers with repetition.
 * The algorithm is from Applied Combinatorics, by Alan Tucker.
 * Based on code from <a href="koders.com">koders.com</a>.
 * 
 * @author <NAME>
 */
public class Permutation {
	private int n, r;
	private int[] index;
	private boolean hasNext = true;

	/**
	 * Instantiates a new permutation object for r-permutations of n integers.
	 * @param n Number of integers available.
	 * @param r Size of permutations.
	 */
	public Permutation(int n, int r) {
		this.n = n;
		this.r = r;<commit_msg>Added script to remove old javadoc entries. --F.<commit_after>package org.metacsp.utility;

import java.util.Arrays;

/**
 * 
 * Generates r-permutations of n integers with repetition.
 * The algorithm is from Applied Combinatorics, by Alan Tucker.
 * Based on code from <a href="http://koders.com">koders.com</a>.
 * 
 * @author <NAME>
 */
public class Permutation {
	private int n, r;
	private int[] index;
	private boolean hasNext = true;

	/**
	 * Instantiates a new permutation object for r-permutations of n integers.
	 * @param n Number of integers available.
	 * @param r Size of permutations.
	 */
	public Permutation(int n, int r) {
		this.n = n;
		this.r = r;
{'fraction_non_alphanumeric': 0.11325115562403698, 'fraction_numerical': 0.0, 'mean_word_length': 3.4486301369863015, 'pattern_counts': {'":': 0, '<': 9, '<?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': '5930464', 'n_tokens_mistral': 457, 'n_tokens_neox': 411, 'n_words': 150}