<commit_before>/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package randomgen;

import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.util.ArrayList;
import java.util.Random;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.jdom2.Attribute;
import org.jdom2.Document;
import org.jdom2.Element;
import org.jdom2.output.Format;
import org.jdom2.output.XMLOutputter;
import xmlleveltool.LevelElement;
import xmlleveltool.ObjectsList;

/**
 *
 * @author Karl
 */
public class Generator {
    private ArrayList<ObjectsList> objetcsList = new ArrayList<>();
    private Random rand = new Random();
    
    public static void main(String[] args){
        Generator gen = new Generator();
        gen.generate(37);
        gen.build(System.out);
    }
    
    public void generate(int nbSteps){
        for(int i = 0; i < nbSteps; i++){
            this.objetcsList.add(this.getRandomObjectsList());<commit_msg>Add random generator<commit_after>/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package randomgen;

import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.util.ArrayList;
import java.util.Random;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.jdom2.Attribute;
import org.jdom2.Document;
import org.jdom2.Element;
import org.jdom2.output.Format;
import org.jdom2.output.XMLOutputter;
import xmlleveltool.LevelElement;
import xmlleveltool.ObjectsList;

/**
 *
 * @author Karl
 */
public class Generator {
    private ArrayList<ObjectsList> objetcsList = new ArrayList<>();
    private Random rand = new Random();
    
    public static void main(String[] args){
        Generator gen = new Generator();
        gen.generate(28);
        gen.build(System.out);
    }
    
    public void generate(int nbSteps){
        for(int i = 0; i < nbSteps; i++){
            this.objetcsList.add(this.getRandomObjectsList());
{'fraction_non_alphanumeric': 0.11266249398170439, 'fraction_numerical': 0.0077034183919114105, 'mean_word_length': 3.7120181405895694, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '1070969', 'n_tokens_mistral': 633, 'n_tokens_neox': 620, 'n_words': 165}