<commit_before>package main

import (
    "github.com/hoisie/web.go"
)

func hello(val string) string { return "hello " + val }

func main() {
    web.Get("/(.*)", hello)
    web.Run("0.0.0.0:9999")
}<commit_msg>Update example<commit_after>package main

import (
    "github.com/rday/web"
)

type Message struct {
    Greeting string
    Response string
}

func hello(val string) (Message, error) {
    msg := Message{val, "Hello " + val}
    return msg, nil
}

func plain(val string) ([]byte, error) {
    return []byte("Plain " + val), nil
}

func main() {
    web.Get("/plain/(.*)", plain)
    web.Get("/(.*)", hello)
    web.Run("0.0.0.0:9999")
}

{'fraction_non_alphanumeric': 0.1889400921658986, 'fraction_numerical': 0.02457757296466974, 'mean_word_length': 3.075, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '1630096', 'n_tokens_mistral': 257, 'n_tokens_neox': 246, 'n_words': 56}