<commit_before>
import java.util.Random;

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
/**
 *
 * @author Dimitar
 */
public class Main {

    static Random rand = new Random();

    private static void stressInsert(Treap treap, int n){
        System.out.println(String.format("Starting inserting %d elements: ", n));
        long start = System.currentTimeMillis();
        for (int i = 0; i < n; i++) {
            treap.insert(i);
        }
        long end = System.currentTimeMillis();
        System.out.println(end - start);
    }
    
    public static void main(String[] args) {

        Treap treap = new TreapImpl();

        treap.insert(6);
        System.out.println(treap);
        treap.insert(2);
        System.out.println(treap);
        treap.insert(18);
        System.out.println(treap);
        treap.insert(-1);
        System.out.println(treap);
        treap.insert(4);
        System.out.println(treap);
        treap.insert(10);
        System.out.println(treap);
        treap.insert(3);
        System.out.println(treap);
        treap.insert(8);
        System.out.println(treap);
        
        System.out.println(treap.containsKey(6));
        treap.remove(6);
        System.out.println(treap);
        System.out.println(treap.containsKey(6));
        
        stressInsert(treap, 1_000_000);
        stressInsert(treap, 4_000_000);
        stressInsert(treap, 8_000_000);
        stressInsert(treap, 16_000_000);
        
    }
}<commit_msg>bug fix<commit_after>
import java.util.Random;

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
/**
 *
 * @author Dimitar
 */
public class Main {

    static Random rand = new Random();

    private static void stressInsert(int n){
        Treap treap = new TreapImpl();
        System.out.println(String.format("Starting inserting %d elements: ", n));
        long start = System.currentTimeMillis();
        for (int i = 0; i < n; i++) {
            treap.insert(i);
        }
        long end = System.currentTimeMillis();
        System.out.println(end - start);
    }
    
    public static void main(String[] args) {

        Treap treap = new TreapImpl();

        treap.insert(6);
        System.out.println(treap);
        treap.insert(2);
        System.out.println(treap);
        treap.insert(18);
        System.out.println(treap);
        treap.insert(-1);
        System.out.println(treap);
        treap.insert(4);
        System.out.println(treap);
        treap.insert(10);
        System.out.println(treap);
        treap.insert(3);
        System.out.println(treap);
        treap.insert(8);
        System.out.println(treap);
        
        System.out.println(treap.containsKey(6));
        treap.remove(6);
        System.out.println(treap);
        System.out.println(treap.containsKey(6));
        
        stressInsert(2_000_000);
        stressInsert(4_000_000);
        stressInsert(8_000_000);
        stressInsert(16_000_000);
        stressInsert(32_000_000);
        
    }
}
{'fraction_non_alphanumeric': 0.1256127450980392, 'fraction_numerical': 0.028799019607843136, 'mean_word_length': 2.1884765625, 'pattern_counts': {'":': 0, '<': 5, '<?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': '3490700', 'n_tokens_mistral': 1056, 'n_tokens_neox': 996, 'n_words': 208}