<commit_before>package main

import(
	"fmt"
	"log"
	"net/http"
	"os"
	"gofire/web"
	"gofire/socket"
	"code.google.com/p/go.net/websocket"
)

const StandardPort = "8080"

func main(){

	port := os.Getenv("PORT")

	if port == ""{
		port = StandardPort
	}

	http.HandleFunc("/", web.IndexHandler)
	log.Println("IndexHandler registered")

	http.HandleFunc("/login", web.LoginHandler)
	log.Println("LoginHandler registered")

	http.HandleFunc("/logout", web.LogoutHandler)
	log.Println("LogoutHandler registered")

	http.HandleFunc("/chat", web.ChatHandler)
	log.Println("ChatHandler registered")

	socket.Start()
	log.Println("Fireserver is running")

	http.Handle("/ws",websocket.Handler(socket.SocketHandler))

	log.Printf("Server started on port: :%s", port)
	err := http.ListenAndServe(fmt.Sprintf(":%s", port),nil)
	panic(err)
}<commit_msg>u can specify address<commit_after>package main

import(
	"fmt"
	"log"
	"net/http"
	"os"
	"gofire/web"
	"gofire/socket"
	"code.google.com/p/go.net/websocket"
)

const StandardPort = "8080"

const StandardAddress = "localhost"

func main(){

	addr := os.Getenv("ADRESS")

	if addr == ""{
		addr = StandardAddress
	}

	port := os.Getenv("PORT")

	if port == ""{
		port = StandardPort
	}

	http.HandleFunc("/", web.IndexHandler)
	log.Println("IndexHandler registered")

	http.HandleFunc("/login", web.LoginHandler)
	log.Println("LoginHandler registered")

	http.HandleFunc("/logout", web.LogoutHandler)
	log.Println("LogoutHandler registered")

	http.HandleFunc("/chat", web.ChatHandler)
	log.Println("ChatHandler registered")

	socket.Start()
	log.Println("Fireserver is running")

	http.Handle("/ws",websocket.Handler(socket.SocketHandler))

	log.Printf("Server started on : %s:%s",addr, port)
	err := http.ListenAndServe(fmt.Sprintf("%s:%s",addr,port),nil)
	panic(err)
}
{'fraction_non_alphanumeric': 0.1717283268912203, 'fraction_numerical': 0.004417448923246825, 'mean_word_length': 5.184300341296928, 'pattern_counts': {'":': 1, '<': 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': '267314', 'n_tokens_mistral': 683, 'n_tokens_neox': 650, 'n_words': 114}