<commit_before>package main

import (
	"flag"
	"log"
	"os"
	"os/signal"
	"sync"
	"syscall"
	"time"
)

var (
	zones = &ZoneStore{
		store: make(map[string]Zone),
		m:     new(sync.RWMutex),
		seri:  make(map[string]uint64),
	}
	config     = &Configs{
		ip:		"10.5.4.59",
		port:	8888,
		auth:	"",
	}
	configPath	string
	listenOn    string
	recurseTo   string
	apiKey      string
	buildtime   string
	buildcommit string
	
)

type Configs struct {
	ip			string
	port		int
	auth		string
}

func main() {
	flag.StringVar(&configPath, "c", "10.5.4.59", "The configs ip")
	flag.StringVar(&listenOn, "l", "", "The IP to listen on (default = blank = ALL)")
	flag.StringVar(&recurseTo, "r", "", "Pass-through requests that we can't answer to other DNS server (address:port or empty=disabled)")
	flag.StringVar(&apiKey, "k", "", "API key for http notifications")
	flag.Parse()
	
	log.Println("firedns (2015) by <NAME> is starting...")
	log.Printf("bult %s from commit %s", buildtime, buildcommit)
	config.ip = configPath
	Connect(config.ip,config.port,config.auth)
	prefetch(zones, true)

	server := &Server{
		host:     listenOn,
		port:     53,
		rTimeout: 5 * time.Second,
		wTimeout: 5 * time.Second,
		zones:    zones,
	}

	server.Run()

	go StartHTTP()

	sig := make(chan os.Signal)
	signal.Notify(sig, syscall.SIGINT, syscall.SIGTERM)
	for {
		select {
		case s := <-sig:
			log.Fatalf("Signal (%d) received, stopping\n", s)
		}
	}<commit_msg>change command line args for ip,port,auth<commit_after>package main

import (
	"flag"
	"log"
	"os"
	"os/signal"
	"sync"
	"syscall"
	"time"
)

var (
	zones = &ZoneStore{
		store: make(map[string]Zone),
		m:     new(sync.RWMutex),
		seri:  make(map[string]uint64),
	}
	config     = &Configs{
		ip:		"10.5.4.59",
		port:	8888,
		auth:	"",
	}
	ssdbip	string
	ssdbport	int
	ssdbauth	string
	listenOn    string
	recurseTo   string
	apiKey      string
	buildtime   string
	buildcommit string
	
)

type Configs struct {
	ip			string
	port		int
	auth		string
}

func main() {
	flag.StringVar(&ssdbip, "c", "10.5.4.59", "The ssdb ip")
	flag.IntVar(&ssdbport, "p", 8888, "The ssdb port")
	flag.StringVar(&ssdbauth, "a", "", "The ssdb auth password")
	flag.StringVar(&listenOn, "l", "", "The IP to listen on (default = blank = ALL)")
	flag.StringVar(&recurseTo, "r", "", "Pass-through requests that we can't answer to other DNS server (address:port or empty=disabled)")
	flag.StringVar(&apiKey, "k", "", "API key for http notifications")
	flag.Parse()
	
	log.Println("firedns (2015) by <NAME> is starting...")
	log.Printf("bult %s from commit %s", buildtime, buildcommit)
	config.ip = ssdbip
	config.port = ssdbport
	config.auth	= ssdbauth
	Connect(config.ip,config.port,config.auth)
	prefetch(zones, true)

	server := &Server{
		host:     listenOn,
		port:     53,
		rTimeout: 5 * time.Second,
		wTimeout: 5 * time.Second,
		zones:    zones,
	}

	server.Run()

	go StartHTTP()

	sig := make(chan os.Signal)
	signal.Notify(sig, syscall.SIGINT, syscall.SIGTERM)
	for {
		select {
		case s := <-sig:
			log.Fatalf("Signal (%d) received, stopping\n", s)
		}
	}
{'fraction_non_alphanumeric': 0.15369649805447472, 'fraction_numerical': 0.018158236057068743, 'mean_word_length': 3.583952451708767, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 4, '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': '838259', 'n_tokens_mistral': 1306, 'n_tokens_neox': 1215, 'n_words': 303}