<commit_before>package main

import (
	"github.com/codegangsta/martini"
	"github.com/martini-contrib/sessions"

	"io/ioutil"
)

func main() {
	s := NewServer()
	m := martini.Classic()


	secret,err := ioutil.ReadFile(".secret")
	if err != nil {
		panic(err)
	}
	store := sessions.NewCookieStore(secret)
	m.Use(sessions.Sessions("ask_eecs_auth_session", store))

	m.Get("/q", s.HandleGetQuestions)
	m.Post("/q", s.HandlePostQuestion)
	m.Get("/q/:id", s.HandleGetQuestion)
	m.Put("/q/:id", s.HandleEditQuestion)
	m.Get("/q/:id/vote/:opt", s.HandleVote)
	m.Post("/q/:id/response", s.HandleQuestionResponse)
	m.Post("/q/:id/comment", s.HandleQuestionComment)

	m.Post("/login", s.HandleLogin)
	m.Post("/register", s.HandleRegister)
	m.Post("/logout", s.HandleLogout)
	m.Post("/me", s.HandleMe);
	m.Run()
}<commit_msg>can comment on responses<commit_after>package main

import (
	"github.com/codegangsta/martini"
	"github.com/martini-contrib/sessions"

	"io/ioutil"
)

func main() {
	s := NewServer()
	m := martini.Classic()


	secret,err := ioutil.ReadFile(".secret")
	if err != nil {
		panic(err)
	}
	store := sessions.NewCookieStore(secret)
	m.Use(sessions.Sessions("ask_eecs_auth_session", store))

	m.Get("/q", s.HandleGetQuestions)
	m.Post("/q", s.HandlePostQuestion)
	m.Get("/q/:id", s.HandleGetQuestion)
	m.Put("/q/:id", s.HandleEditQuestion)
	m.Get("/q/:id/vote/:opt", s.HandleVote)
	m.Post("/q/:id/response", s.HandleQuestionResponse)
	m.Post("/q/:id/response/:resp/comment", s.HandleResponseComment)
	m.Post("/q/:id/comment", s.HandleQuestionComment)

	m.Post("/login", s.HandleLogin)
	m.Post("/register", s.HandleRegister)
	m.Post("/logout", s.HandleLogout)
	m.Post("/me", s.HandleMe);
	m.Run()
}
{'fraction_non_alphanumeric': 0.20551967116852612, 'fraction_numerical': 0.0, 'mean_word_length': 4.68, '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': '7340974', 'n_tokens_mistral': 684, 'n_tokens_neox': 682, 'n_words': 95}