<commit_before>import java.io.*;
import java.util.*;

public class ReadFromFile {

    static long getInvCount(int arr[], int n)
    {
        long inv_count = 0;
        for (int i = 0; i < n ; i++) {
            for (int j = i+1; j < n; j++) {
                if (arr[i] > arr[j]) {
                    inv_count++;
                }
            }
        }
        return inv_count;
    }

    public static void main ( String s[] ) throws Exception {
        int arr[] = new int[100001];
        Scanner scr = new Scanner(new FileInputStream("arr_inv_data.txt")).useDelimiter("\n");<commit_msg>Update ReadFromFile.java<commit_after>import java.io.*;
import java.util.*;

public class ReadFromFile {

    // Brute force method to find the inversions in an array.
    static long getInvCount(int arr[], int n)
    {
        long inv_count = 0;
        for (int i = 0; i < n ; i++) {
            for (int j = i+1; j < n; j++) {
                if (arr[i] > arr[j]) {
                    inv_count++;
                }
            }
        }
        return inv_count;
    }

    public static void main ( String s[] ) throws Exception {
        int arr[] = new int[100001];
        Scanner scr = new Scanner(new FileInputStream("arr_inv_data.txt")).useDelimiter("\n");
{'fraction_non_alphanumeric': 0.13081166272655634, 'fraction_numerical': 0.014184397163120567, 'mean_word_length': 1.7194860813704498, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, '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': '315614', 'n_tokens_mistral': 406, 'n_tokens_neox': 387, 'n_words': 116}