<commit_before>package main

import (
	"crypto/sha1"
	"fmt"

	"github.com/codegangsta/martini"
	"github.com/martini-contrib/render"
)

func main() {
	m:= martini.Classic()
	m.Use(render.Renderer(render.Options{
		Directory : "templates",
		Layout : "layout",
		Extensions: []string{".tmpl", ".html"}, 
	}))
	// add an auth step here to redirect to /login if not authed
	m.Get("/", func(r render.Render) {
		r.HTML(200, "index", nil)
	})

	m.Get("/poll", func(r render.Render) {
		r.HTML(200, "poll", nil)
	})

	m.Get("/hash", func() string {
		h := sha1.New()
		h.Write([]byte("this is a hash"))
		hs := h.Sum(nil)<commit_msg>added gzip to make the amount of bytes served smaller<commit_after>package main

import (
	"crypto/sha1"
	"fmt"

	"github.com/codegangsta/martini"
	"github.com/martini-contrib/render"
	"github.com/martini-contrib/gzip"
)

func main() {
	m:= martini.Classic()
	m.Use(gzip.All())
	m.Use(render.Renderer(render.Options{
		Directory : "templates",
		Layout : "layout",
		Extensions: []string{".tmpl", ".html"}, 
	}))
	// add an auth step here to redirect to /login if not authed
	m.Get("/", func(r render.Render) {
		r.HTML(200, "index", nil)
	})

	m.Get("/poll", func(r render.Render) {
		r.HTML(200, "poll", nil)
	})

	m.Get("/hash", func() string {
		h := sha1.New()
		h.Write([]byte("this is a hash"))
		hs := h.Sum(nil)
{'fraction_non_alphanumeric': 0.19910846953937592, 'fraction_numerical': 0.01188707280832095, 'mean_word_length': 3.742957746478873, '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': '3410435', 'n_tokens_mistral': 555, 'n_tokens_neox': 519, 'n_words': 118}