<commit_before>// +build !appengine
package main

import (
	"fmt"
	"github.com/theDukeW/docopt-go"
	"net/http"
)

func main() {
	usage := `
	My web server.

	Usage:
	  gostart [--ip=<ip>] [--port=<port>]
	  gostart -h | --help
	  gostart --version

	Options:
	  -h --help     Show this screen.
	  --version     Show version.`

	args, _ := docopt.Parse(usage, nil, true, "gostart 1.0", false)

	ip := "localhost"
	if args["--ip"] != nil {
		ip = args["--ip"].(string)
	}

	port := "3000"
	if args["--port"] != nil {
		port = args["--port"].(string)
	}

	fmt.Println("Starting server")

	h := httpHandler()

	if err := http.ListenAndServe(ip+":"+port, h); err != nil {
		fmt.Printf("Server error:%v \n", err)
		panic(err)
	}
}<commit_msg>Standalone server now displays which ip and port it's running on<commit_after>// +build !appengine
package main

import (
	"fmt"
	"github.com/theDukeW/docopt-go"
	"net/http"
)

func main() {
	usage := `
	My web server.

	Usage:
	  gostart [--ip=<ip>] [--port=<port>]
	  gostart -h | --help
	  gostart --version

	Options:
	  -h --help     Show this screen.
	  --version     Show version.`

	args, _ := docopt.Parse(usage, nil, true, "gostart 1.0", false)

	ip := "localhost"
	if args["--ip"] != nil {
		ip = args["--ip"].(string)
	}

	port := "3000"
	if args["--port"] != nil {
		port = args["--port"].(string)
	}

	fmt.Printf("Server running at %s:%s\n", ip, port)

	h := httpHandler()

	if err := http.ListenAndServe(ip+":"+port, h); err != nil {
		fmt.Printf("Server error:%v \n", err)
		panic(err)
	}
}
{'fraction_non_alphanumeric': 0.20557717250324253, 'fraction_numerical': 0.007782101167315175, 'mean_word_length': 2.8768844221105527, 'pattern_counts': {'":': 2, '<': 7, '<?xml version=': 0, '>': 7, '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': '2151450', 'n_tokens_mistral': 657, 'n_tokens_neox': 611, 'n_words': 152}