<commit_before>package main

import (
	"fmt"
	"log"
	"net/http"
	"os"
	"regexp"

	"github.com/gojp/goreportcard/handlers"
)

func makeHandler(name string, fn func(http.ResponseWriter, *http.Request, string, string)) http.HandlerFunc {
	return func(w http.ResponseWriter, r *http.Request) {
		validPath := regexp.MustCompile(fmt.Sprintf(`^/%s/([a-zA-Z0-9\-_]+)/([a-zA-Z0-9\-_]+)$`, name))

		m := validPath.FindStringSubmatch(r.URL.Path)
		if m == nil {
			http.NotFound(w, r)
			return
		}<commit_msg>adding period to url regex in the makeHandler method to allow for github usernames, org names, and repo names<commit_after>package main

import (
	"fmt"
	"log"
	"net/http"
	"os"
	"regexp"

	"github.com/gojp/goreportcard/handlers"
)

func makeHandler(name string, fn func(http.ResponseWriter, *http.Request, string, string)) http.HandlerFunc {
	return func(w http.ResponseWriter, r *http.Request) {
		validPath := regexp.MustCompile(fmt.Sprintf(`^/%s/([a-zA-Z0-9\-_.]+)/([a-zA-Z0-9\-_.]+)$`, name))

		m := validPath.FindStringSubmatch(r.URL.Path)
		if m == nil {
			http.NotFound(w, r)
			return
		}
{'fraction_non_alphanumeric': 0.17454545454545456, 'fraction_numerical': 0.007272727272727273, 'mean_word_length': 4.169014084507042, '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': '2151458', 'n_tokens_mistral': 452, 'n_tokens_neox': 422, 'n_words': 86}