<commit_before>package main

import (
	"bufio"
	"encoding/json"
	"fmt"
    "os"
)

func ParseFile(fileName string, analytics *Analytics) {
    file, err := os.Open(fileName)

    if err != nil {
        panic(err.Error())
    }

    defer file.Close()

    reader := bufio.NewReader(file)
    scanner := bufio.NewScanner(reader)
    var data map[string]interface{}

	fmt.Println("Mining JSON file: " + fileName);
	scanner.Split(bufio.ScanLines)
    for scanner.Scan() {
        err := json.Unmarshal(scanner.Bytes(), &data)

        if err != nil {
            panic(err);
        }<commit_msg>using spaces instead of tab<commit_after>package main

import (
	"bufio"
	"encoding/json"
	"fmt"
    "os"
)

func ParseFile(fileName string, analytics *Analytics) {
    file, err := os.Open(fileName)

    if err != nil {
        panic(err.Error())
    }

    defer file.Close()

    reader := bufio.NewReader(file)
    scanner := bufio.NewScanner(reader)
    var data map[string]interface{}

    fmt.Println("Mining JSON file: " + fileName);
    scanner.Split(bufio.ScanLines)
    for scanner.Scan() {
        err := json.Unmarshal(scanner.Bytes(), &data)

        if err != nil {
            panic(err);
        }
{'fraction_non_alphanumeric': 0.1390728476821192, 'fraction_numerical': 0.0, 'mean_word_length': 2.630630630630631, 'pattern_counts': {'":': 0, '<': 3, '<?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': '1802790', 'n_tokens_mistral': 413, 'n_tokens_neox': 401, 'n_words': 88}