<commit_before>package main

import (
	"github.com/scyth/go-webproject/src/gwp/gwp_context"
	"github.com/scyth/go-webproject/src/gwp/gwp_template"
	"github.com/scyth/go-webproject/src/gwp/gwp_module"
	"github.com/scyth/go-webproject/src/gwp/libs/gorilla/mux"
	"github.com/scyth/go-webproject/src/gwp/modules/mod_sessions"
	"github.com/scyth/go-webproject/src/gwp/modules/mod_example"
	"bytes"
	"net/http"
	"fmt"
)

type Example struct {
	ID string
	Name string
	LoggedIn bool
	ErrorMsg string
}


// initHandlres defines all the routes for our web application
func initHandlers(r *mux.Router) {
	// If gorilla-mux is enabled, r is pointer to mux.Router and we have to use it.
	// Once first match is found, appropriate handler is called, so make sure you 
	// order patterns appropriately. Pattern is regexp.
	// usage would be: r.HandleFunc("/some-regexp-pattern", handlerFn)
	//
	// If gorilla-mux is disabled, you will use default http's way of defining patterns.
	// Patterns are not regexp. Instead, longest match will win, so you don't have to worry
	// about ordering in this case.<commit_msg>fix import paths in example/handlers.go<commit_after>package main

import (
	"bytes"
	"net/http"
	"fmt"
	"github.com/scyth/go-webproject/gwp/gwp_context"
	"github.com/scyth/go-webproject/gwp/gwp_template"
	"github.com/scyth/go-webproject/gwp/gwp_module"
	"github.com/scyth/go-webproject/gwp/libs/gorilla/mux"
	"github.com/scyth/go-webproject/gwp/modules/mod_sessions"
	"github.com/scyth/go-webproject/gwp/modules/mod_example"
)

type Example struct {
	ID string
	Name string
	LoggedIn bool
	ErrorMsg string
}


// initHandlres defines all the routes for our web application
func initHandlers(r *mux.Router) {
	// If gorilla-mux is enabled, r is pointer to mux.Router and we have to use it.
	// Once first match is found, appropriate handler is called, so make sure you 
	// order patterns appropriately. Pattern is regexp.
	// usage would be: r.HandleFunc("/some-regexp-pattern", handlerFn)
	//
	// If gorilla-mux is disabled, you will use default http's way of defining patterns.
	// Patterns are not regexp. Instead, longest match will win, so you don't have to worry
	// about ordering in this case.
{'fraction_non_alphanumeric': 0.10899182561307902, 'fraction_numerical': 0.0, 'mean_word_length': 3.88470066518847, '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': '493364', 'n_tokens_mistral': 783, 'n_tokens_neox': 766, 'n_words': 217}