<commit_before>package main

import (
	"encoding/json"
	"fmt"
	"io"
	"io/ioutil"
	"net/http"
	"os"
	"strings"
)

const (
	libFolderName   = "lib"
	packageFileName = "package.json"
	baseURL         = "http://search.maven.org/remotecontent?filepath="

	pom     = ".pom"
	jar     = ".jar"
	jarDock = "-javadoc.jar"
	tests   = "-tests.jar"
	source  = "-sources.jar"
)

type dep struct {
	GroupId    string
	ArtifactId string
	Version    string
}

func check(e error) {
	if e != nil {
		panic(e)
	}
}

func readFile() []dep {
	abspath, _ := os.Getwd()
	filename := abspath + "/" + packageFileName

	_, err := os.Stat(filename)
	check(err)

	filebyte, err := ioutil.ReadFile(filename)
	check(err)

	var deps []dep

	var depsMap map[string]interface{}
	json.Unmarshal(filebyte, &depsMap)

	for key, value := range depsMap {

		splitName := strings.Split(key, "#")

		str, _ := value.(string)
		deppy := dep{splitName[1], splitName[0], str}

		deps = append(deps, deppy)

		// fmt.Println(deps)
	}

	return deps

}

func downloadFile(depURL string) io.ReadCloser {

	resp, err := http.Get(depURL)
	check(err)
	return resp.Body
}

func runChecks() bool {<commit_msg>Update jib.go<commit_after>package main

import (
	"encoding/json"
	"fmt"
	"io"
	"io/ioutil"
	"net/http"
	"os"
	"strings"
)

const (
	libFolderName   = "lib"
	packageFileName = "package.json"
	baseURL         = "http://search.maven.org/remotecontent?filepath="

	pom     = ".pom"
	jar     = ".jar"
	jarDock = "-javadoc.jar"
	tests   = "-tests.jar"
	source  = "-sources.jar"
)

type dep struct {
	GroupId    string
	ArtifactId string
	Version    string
}

func check(e error) {
	if e != nil {
		panic(e)
	}
}

func readFile() []dep {
	abspath, _ := os.Getwd()
	filename := abspath + "/" + packageFileName

	_, err := os.Stat(filename)
	check(err)

	filebyte, err := ioutil.ReadFile(filename)
	check(err)

	var deps []dep

	var depsMap map[string]interface{}
	json.Unmarshal(filebyte, &depsMap)

	for key, value := range depsMap {

		splitName := strings.Split(key, "#")

		str, _ := value.(string)
		deppy := dep{splitName[1], splitName[0], str}

		deps = append(deps, deppy)
	}

	return deps

}

func downloadFile(depURL string) io.ReadCloser {

	resp, err := http.Get(depURL)
	check(err)
	return resp.Body
}

func runChecks() bool {
{'fraction_non_alphanumeric': 0.15458515283842794, 'fraction_numerical': 0.0017467248908296944, 'mean_word_length': 3.363809523809524, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5026020', 'n_tokens_mistral': 950, 'n_tokens_neox': 905, 'n_words': 196}