<commit_before>package slackbot

import (
	"encoding/json"
	"io/ioutil"
	"net/http"
	"net/http/httptest"
	"testing"
)

func TestVersionHandler(t *testing.T) {
	request, err := http.NewRequest("GET", "/api/1/verison", nil)
	if err != nil {
		t.FailNow()
	}
	response := httptest.NewRecorder()

	VersionHandler(response, request)

	if response.Code != http.StatusOK {
		t.Fatalf("Status from GET did not return 200, instead returned %v", response.Code)
		t.FailNow()
	}

	versionBody, err := ioutil.ReadAll(response.Body)
	if err != nil {
		t.FailNow()<commit_msg>Fixed spelling mistake<commit_after>package slackbot

import (
	"encoding/json"
	"io/ioutil"
	"net/http"
	"net/http/httptest"
	"testing"
)

func TestVersionHandler(t *testing.T) {
	request, err := http.NewRequest("GET", "/api/1/version", nil)
	if err != nil {
		t.FailNow()
	}
	response := httptest.NewRecorder()

	VersionHandler(response, request)

	if response.Code != http.StatusOK {
		t.Fatalf("Status from GET did not return 200, instead returned %v", response.Code)
		t.FailNow()
	}

	versionBody, err := ioutil.ReadAll(response.Body)
	if err != nil {
		t.FailNow()
{'fraction_non_alphanumeric': 0.15180935569285084, 'fraction_numerical': 0.00706090026478376, 'mean_word_length': 4.274418604651163, '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': '5036427', 'n_tokens_mistral': 441, 'n_tokens_neox': 419, 'n_words': 93}