<commit_before>package main

import (
	. "github.com/onsi/ginkgo"
	. "github.com/onsi/gomega"
	//	"testing"
	//"io"
	"github.com/codegangsta/martini-contrib/render"
	"github.com/go-martini/martini"
	"net/http"
	"net/http/httptest"
	//"github.com/codegangsta/martini-contrib/binding"
)

// var (
// 	response *httptest.ResponseRecorder
// )

// func TestGoGonki(t *testing.T) {
// 	RegisterFailHandler(Fail)
// 	RunSpecs(t, "GoGonki Suite")
// }

func Request(method string, route string, handler martini.Handler) {
	m := martini.Classic()
	m.Get(route, handler)
	m.Use(render.Renderer())
	request, _ := http.NewRequest(method, route, nil)
	response = httptest.NewRecorder()
	m.ServeHTTP(response, request)
}
<commit_msg>testing<commit_after>package main

import (
	. "github.com/onsi/ginkgo"
	. "github.com/onsi/gomega"
	//	"testing"
	//"io"
	"github.com/codegangsta/martini-contrib/render"
	"github.com/go-martini/martini"
	"net/http"
	"net/http/httptest"
	//"github.com/codegangsta/martini-contrib/binding"
)

// var (
// 	response *httptest.ResponseRecorder
// )

// func TestGoGonki(t *testing.T) {
// 	RegisterFailHandler(Fail)
// 	RunSpecs(t, "GoGonki Suite")
// }

func Request(method string, route string, handler martini.Handler, data map[string]string) {
	m := martini.Classic()
	m.Get(route, handler, data)
	m.Use(render.Renderer())
	request, _ := http.NewRequest(method, route, nil)
	response = httptest.NewRecorder()
	m.ServeHTTP(response, request)
}

{'fraction_non_alphanumeric': 0.17076502732240437, 'fraction_numerical': 0.0, 'mean_word_length': 4.1223776223776225, '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': '2175013', 'n_tokens_mistral': 586, 'n_tokens_neox': 585, 'n_words': 87}