<commit_before>package routers

import (
	"github.com/pompeu/controllers"
	"github.com/pompeu/helpers"
	"github.com/pompeu/models"
)

func ReHander() *helpers.RegexpHandler {
	person := &models.Person{}
	post := &models.Post{}
	coment := &models.Coment{}
	server := &controllers.Server{}

	h := new(helpers.RegexpHandler)

	h.HandleFunc("/users/$", "POST", person.Save)
	h.HandleFunc("/users/$", "GET", person.GetAll)
	h.HandleFunc("/users/[0-9a-z]+$", "PUT", person.Update)
	h.HandleFunc("/users/[0-9a-z]+$", "DELETE", person.Remove)
	h.HandleFunc("/users/[0-9a-z]+$", "GET", person.GetOne)

	h.HandleFunc("/posts/$", "POST", post.Save)
	h.HandleFunc("/posts/$", "GET", post.GetAll)
	h.HandleFunc("/posts/[0-9a-z]+$", "PUT", post.Update)
	h.HandleFunc("/posts/[0-9a-z]+$", "DELETE", post.Remove)
	h.HandleFunc("/posts/[0-9a-z]+$", "GET", post.GetOne)

	h.HandleFunc("/coments/$", "POST", coment.Save)
	h.HandleFunc("/coments/$", "GET", coment.GetAll)
	h.HandleFunc("/coments/[0-9a-z]+$", "PUT", coment.Update)
	h.HandleFunc("/coments/[0-9a-z]+$", "DELETE", coment.Remove)
	h.HandleFunc("/coments/[0-9a-z]+$", "GET", coment.GetOne)

	h.HandleFunc("/login/", "GET", controllers.Login)
	h.HandleFunc("/login/", "POST", controllers.Login)

	h.HandleFunc("/registrar/", "GET", controllers.Registrar)
	h.HandleFunc("/registrar/", "POST", controllers.Registrar)

	h.HandleFunc(".*.[js|css|png|svg|jpg]", "GET", controllers.Assets)

	h.HandleFunc("/", "GET", server.MainIndex)

	return h
}<commit_msg>routes not used removed<commit_after>package routers

import (
	"github.com/pompeu/controllers"
	"github.com/pompeu/helpers"
)

func ReHander() *helpers.RegexpHandler {

	h := new(helpers.RegexpHandler)

	h.HandleFunc("/post/$", "GET", controllers.CriarPost)
	h.HandleFunc("/post/edit/[0-9a-z]+$", "GET", controllers.CriarPost)
	h.HandleFunc("/post/show/[0-9a-z]+$", "GET", controllers.ShowPost)
	h.HandleFunc("/post/", "POST", controllers.CriarPost)

	h.HandleFunc("/login/", "GET", controllers.Login)
	h.HandleFunc("/login/", "POST", controllers.Login)
	h.HandleFunc("/logout/", "GET", controllers.Logout)

	h.HandleFunc("/registrar/", "GET", controllers.Registrar)
	h.HandleFunc("/registrar/", "POST", controllers.Registrar)

	h.HandleFunc(".*.[js|css|png|svg|jpg]", "GET", controllers.Assets)

	h.HandleFunc("/", "GET", controllers.MainIndex)

	return h
}
{'fraction_non_alphanumeric': 0.23459413514662134, 'fraction_numerical': 0.009349766255843604, 'mean_word_length': 5.14621409921671, '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': '5491056', 'n_tokens_mistral': 954, 'n_tokens_neox': 916, 'n_words': 132}