<commit_before>package main

import (
	"os"

	"github.com/codegangsta/negroni"
	"github.com/gorilla/mux"
	"github.com/phyber/negroni-gzip/gzip"

	"github.com/johnweldon/dashboard.jwss.co/area/test"
)

func main() {
	router := mux.NewRouter()
	test.RegisterArea(router.PathPrefix("/test").Subrouter())

	n := negroni.Classic()
	n.Use(gzip.Gzip(gzip.DefaultCompression))
	n.UseHandler(router)
	n.Run(listenEndpoint())
}

func listenEndpoint() string {
	port := "9191"
	if p := os.Getenv("PORT"); p != "" {
		port = p
	}
	return "0.0.0.0:" + port
}<commit_msg>add github.com/unrolled/secure<commit_after>package main

import (
	"os"

	"github.com/codegangsta/negroni"
	"github.com/gorilla/mux"
	"github.com/phyber/negroni-gzip/gzip"
	"github.com/unrolled/secure"

	"github.com/johnweldon/dashboard.jwss.co/area/test"
)

func main() {
	router := mux.NewRouter()
	test.RegisterArea(router.PathPrefix("/test").Subrouter())

	secureMiddleware := secure.New(secure.Options{
		SSLRedirect:        true,
		SSLHost:            "secure.jwss.co/dashboard",
		SSLProxyHeaders:    map[string]string{"X-Forwarded-Proto": "https"},
		FrameDeny:          true,
		ContentTypeNosniff: true,
		BrowserXssFilter:   true,
		IsDevelopment:      false,
	})

	n := negroni.Classic()
	n.Use(negroni.HandlerFunc(secureMiddleware.HandlerFuncWithNext))
	n.Use(gzip.Gzip(gzip.DefaultCompression))
	n.UseHandler(router)
	n.Run(listenEndpoint())
}

func listenEndpoint() string {
	port := "3000"
	if p := os.Getenv("PORT"); p != "" {
		port = p
	}
	return "0.0.0.0:" + port
}
{'fraction_non_alphanumeric': 0.16926070038910507, 'fraction_numerical': 0.010376134889753566, 'mean_word_length': 4.1262458471760795, 'pattern_counts': {'":': 1, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7071921', 'n_tokens_mistral': 632, 'n_tokens_neox': 609, 'n_words': 84}