<commit_before>package website

import ()

type WebsiteInfo struct {
	Version     string `json:"version"`
	Description string `json:"description"`
}

func Download() error {
	return nil
}<commit_msg>Start moving functionality over from main package into the website package<commit_after>package website

import (
	"encoding/json"
	"io"
	"io/ioutil"
	"net/http"
	"os"
	"path/filepath"
)

var mcurl = ""

type WebsiteInfo struct {
	Version     string `json:"version"`
	Description string `json:"description"`
}

func Download() error {
	return nil
}

func newVersionOfWebsite() bool {
	resp, _ := http.Get(mcurl + "/materials_website.json")
	defer resp.Body.Close()

	body, _ := ioutil.ReadAll(resp.Body)
	var websiteInfo WebsiteInfo
	json.Unmarshal(body, &websiteInfo)
	return false
}

func downloadWebsite(dirPath string) {
	getDownloadedVersionOfWebsite()
	out, _ := os.Create(filepath.Join(dirPath, "materials_website.tar"))
	defer out.Close()

	resp, _ := http.Get(mcurl + "/materials_website.tar")
	defer resp.Body.Close()
	io.Copy(out, resp.Body)
}

func getDownloadedVersionOfWebsite() int {
	//content := ioutil.ReadFile()
	return 0
}
{'fraction_non_alphanumeric': 0.1270815074496056, 'fraction_numerical': 0.0008764241893076249, 'mean_word_length': 4.917098445595855, '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': 5, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1959190', 'n_tokens_mistral': 395, 'n_tokens_neox': 375, 'n_words': 92}