<commit_before>package main

import (
	"flag"
	"fmt"
	"log"

	"go.uber.org/zap"
	"go.uber.org/zap/zapcore"

	"github.com/google/gops/agent"
	"github.com/mackee/kuiperbelt"
)

func main() {
	if err := agent.Listen(nil); err != nil {
		log.Fatal(err)
	}
	var configFilename, logLevel, port, sock string
	var showVersion bool
	var err error
	flag.StringVar(&configFilename, "config", "config.yml", "config path")
	flag.StringVar(&logLevel, "log-level", "info", "log level")
	flag.StringVar(&port, "port", "", "launch port")
	flag.StringVar(&sock, "sock", "", "unix domain socket path")
	flag.BoolVar(&showVersion, "version", false, "show version")
	flag.Parse()

	if showVersion {
		fmt.Printf("ekbo version: %s\n", kuiperbelt.Version)
		return
	}<commit_msg>add -gops-addr option.<commit_after>package main

import (
	"flag"
	"fmt"
	"log"

	"go.uber.org/zap"
	"go.uber.org/zap/zapcore"

	"github.com/google/gops/agent"
	"github.com/mackee/kuiperbelt"
)

func main() {
	var configFilename, logLevel, port, sock, gopsAddr string
	var showVersion bool
	var err error
	flag.StringVar(&configFilename, "config", "config.yml", "config path")
	flag.StringVar(&logLevel, "log-level", "info", "log level")
	flag.StringVar(&port, "port", "", "launch port")
	flag.StringVar(&gopsAddr, "gops-addr", "localhost:9181", "gops address")
	flag.StringVar(&sock, "sock", "", "unix domain socket path")
	flag.BoolVar(&showVersion, "version", false, "show version")
	flag.Parse()

	if showVersion {
		fmt.Printf("ekbo version: %s\n", kuiperbelt.Version)
		return
	}

	if err := agent.Listen(&agent.Options{Addr: gopsAddr}); err != nil {
		log.Fatal(err)
	}
{'fraction_non_alphanumeric': 0.17636252296387017, 'fraction_numerical': 0.002449479485609308, 'mean_word_length': 4.835714285714285, 'pattern_counts': {'":': 0, '<': 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': '757156', 'n_tokens_mistral': 640, 'n_tokens_neox': 615, 'n_words': 135}