<commit_before>package http

import (
	"net/http"

	"github.com/julienschmidt/httprouter"
)

func newRouter(contr controller) http.Handler {
	router := httprouter.New()
	router.POST("/api/albums/", contr.handleAlbum())
	router.GET("/api/albums/:album/ready/", contr.handleReady())
	router.GET("/api/albums/:album/", contr.handlePair())
	router.PATCH("/api/albums/:album/", contr.handleVote())
	router.GET("/api/albums/:album/top/", contr.handleTop())
	return router
}<commit_msg>Use descriptive route names<commit_after>package http

import (
	"net/http"

	"github.com/julienschmidt/httprouter"
)

func newRouter(contr controller) http.Handler {
	router := httprouter.New()
	router.POST("/api/albums/", contr.handleAlbum())
	router.GET("/api/albums/:album/ready/", contr.handleReady())
	router.GET("/api/albums/:album/pair/", contr.handlePair())
	router.PATCH("/api/albums/:album/vote/", contr.handleVote())
	router.GET("/api/albums/:album/top/", contr.handleTop())
	return router
}
{'fraction_non_alphanumeric': 0.19144602851323828, 'fraction_numerical': 0.0, 'mean_word_length': 5.2215189873417724, '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': '3183394', 'n_tokens_mistral': 344, 'n_tokens_neox': 348, 'n_words': 49}