<commit_before>package api

import (
	"net/http"

	"github.com/gin-gonic/gin"
)

func (api *API) TokenAuth() gin.HandlerFunc {
	return func(c *gin.Context) {
		if api.token != c.Request.Header.Get("token") {
			c.AbortWithStatus(http.StatusUnauthorized)
			return
		}
	}
}<commit_msg>Rename auth header to Authorization<commit_after>package api

import (
	"net/http"

	"github.com/gin-gonic/gin"
)

func (api *API) TokenAuth() gin.HandlerFunc {
	return func(c *gin.Context) {
		if api.token != c.Request.Header.Get("Authorization") {
			c.AbortWithStatus(http.StatusUnauthorized)
			return
		}
	}
}
{'fraction_non_alphanumeric': 0.14715719063545152, 'fraction_numerical': 0.0, 'mean_word_length': 4.119658119658119, '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': '6849434', 'n_tokens_mistral': 241, 'n_tokens_neox': 224, 'n_words': 40}