<commit_before>package main

import (
	"github.com/bmizerany/pat"
	"github.com/timeredbull/tsuru/api/app"
	"github.com/timeredbull/tsuru/api/service"
	"log"
	"net/http"
)

func main() {
	m := pat.New()

	m.Post("/services", http.HandlerFunc(service.CreateHandler))
	m.Get("/services", http.HandlerFunc(service.ServicesHandler))
	m.Get("/services/types", http.HandlerFunc(service.ServiceTypesHandler))
	m.Get("/services/:name", http.HandlerFunc(service.DeleteHandler))
	m.Post("/services/bind", http.HandlerFunc(service.BindHandler))
	m.Post("/services/unbind", http.HandlerFunc(service.BindHandler))

	m.Get("/apps/:name/delete", http.HandlerFunc(app.AppDelete))
	m.Get("/apps/:name", http.HandlerFunc(app.AppInfo))
	m.Post("/apps/:name/application", http.HandlerFunc(app.Upload))
	m.Get("/apps", http.HandlerFunc(app.AppList))
	m.Post("/apps", http.HandlerFunc(app.CreateAppHandler))

	log.Fatal(http.ListenAndServe(":4000", m))
}<commit_msg>Fixed wrong handler in webserver<commit_after>package main

import (
	"github.com/bmizerany/pat"
	"github.com/timeredbull/tsuru/api/app"
	"github.com/timeredbull/tsuru/api/service"
	"log"
	"net/http"
)

func main() {
	m := pat.New()

	m.Post("/services", http.HandlerFunc(service.CreateHandler))
	m.Get("/services", http.HandlerFunc(service.ServicesHandler))
	m.Get("/services/types", http.HandlerFunc(service.ServiceTypesHandler))
	m.Get("/services/:name", http.HandlerFunc(service.DeleteHandler))
	m.Post("/services/bind", http.HandlerFunc(service.BindHandler))
	m.Post("/services/unbind", http.HandlerFunc(service.UnbindHandler))

	m.Get("/apps/:name/delete", http.HandlerFunc(app.AppDelete))
	m.Get("/apps/:name", http.HandlerFunc(app.AppInfo))
	m.Post("/apps/:name/application", http.HandlerFunc(app.Upload))
	m.Get("/apps", http.HandlerFunc(app.AppList))
	m.Post("/apps", http.HandlerFunc(app.CreateAppHandler))

	log.Fatal(http.ListenAndServe(":4000", m))
}
{'fraction_non_alphanumeric': 0.19087572102779235, 'fraction_numerical': 0.004195070791819612, 'mean_word_length': 6.040590405904059, 'pattern_counts': {'":': 2, '<': 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': '773316', 'n_tokens_mistral': 683, 'n_tokens_neox': 671, 'n_words': 76}