<commit_before>package main

import (
	"fmt"
	"net/http"

	"code.google.com/p/getopt"
	. "github.com/weaveworks/weave/common"
	"github.com/weaveworks/weave/proxy"
)

var (
	defaultTarget = "unix:///var/run/docker.sock"
	defaultListen = ":12375"
)

func main() {
	var target, listen string
	var withDNS, debug bool

	getopt.BoolVarLong(&debug, "debug", 'd', "log debugging information")
	getopt.StringVar(&target, 'H', fmt.Sprintf("docker daemon URL to proxy (default %s)", defaultTarget))
	getopt.StringVar(&listen, 'L', fmt.Sprintf("address on which to listen (default %s)", defaultListen))
	getopt.BoolVarLong(&withDNS, "with-dns", 'w', "register connected containers with weaveDNS")
	getopt.Parse()

	if target == "" {
		target = defaultTarget
	}

	if listen == "" {
		listen = defaultListen
	}

	if debug {
		InitDefaultLogging(true)
	}

	p, err := proxy.NewProxy(target, withDNS)
	if err != nil {
		Error.Fatalf("Could not start proxy: %s", err)
	}
	s := &http.Server{
		Addr:    listen,
		Handler: p,
	}

	Info.Printf("Listening on %s", listen)
	Info.Printf("Proxying %s", target)

	if err := s.ListenAndServe(); err != nil {
		Error.Fatalf("Could not listen on %s: %s", listen, err)
	}
}
<commit_msg>updating proxy with-dns description to match docs<commit_after>package main

import (
	"fmt"
	"net/http"

	"code.google.com/p/getopt"
	. "github.com/weaveworks/weave/common"
	"github.com/weaveworks/weave/proxy"
)

var (
	defaultTarget = "unix:///var/run/docker.sock"
	defaultListen = ":12375"
)

func main() {
	var target, listen string
	var withDNS, debug bool

	getopt.BoolVarLong(&debug, "debug", 'd', "log debugging information")
	getopt.StringVar(&target, 'H', fmt.Sprintf("docker daemon URL to proxy (default %s)", defaultTarget))
	getopt.StringVar(&listen, 'L', fmt.Sprintf("address on which to listen (default %s)", defaultListen))
	getopt.BoolVarLong(&withDNS, "with-dns", 'w', "instruct created containers to use weaveDNS as their nameserver")
	getopt.Parse()

	if target == "" {
		target = defaultTarget
	}

	if listen == "" {
		listen = defaultListen
	}

	if debug {
		InitDefaultLogging(true)
	}

	p, err := proxy.NewProxy(target, withDNS)
	if err != nil {
		Error.Fatalf("Could not start proxy: %s", err)
	}
	s := &http.Server{
		Addr:    listen,
		Handler: p,
	}

	Info.Printf("Listening on %s", listen)
	Info.Printf("Proxying %s", target)

	if err := s.ListenAndServe(); err != nil {
		Error.Fatalf("Could not listen on %s: %s", listen, err)
	}
}

{'fraction_non_alphanumeric': 0.15910931174089069, 'fraction_numerical': 0.004048582995951417, 'mean_word_length': 4.213080168776371, 'pattern_counts': {'":': 2, '<': 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': '4075777', 'n_tokens_mistral': 939, 'n_tokens_neox': 902, 'n_words': 226}