<commit_before>package main

import (
	"fmt"
	"github.com/3onyc/3do/api/v1"
	"github.com/3onyc/3do/appinit"
	"github.com/3onyc/3do/util"
	"github.com/GeertJohan/go.rice"
	"github.com/gorilla/mux"
	"github.com/jmoiron/sqlx"
	"github.com/namsral/flag"
	"log"
	"net/http"
	"net/http/httputil"
	"net/url"

	_ "github.com/mattn/go-sqlite3"
)

var (
	WEB_PORT     = flag.Uint64("port", 8080, "Port for the webserver to listen on")
	DEBUG        = flag.Bool("debug", false, "Debug mode")
	DB_SEED      = flag.Bool("db-seed", false, "Seed the DB with initial values")
	DB_URI       = flag.String("db-uri", ":memory:", "Path/URI to store DB at")
	FRONTEND_URL = flag.String(
		"frontend-url",
		"http://localhost:4200",
		"In debug mode reverse proxy is used instead of embedded files",
	)
)<commit_msg>Add support for config file<commit_after>package main

import (
	"fmt"
	"github.com/3onyc/3do/api/v1"
	"github.com/3onyc/3do/appinit"
	"github.com/3onyc/3do/util"
	"github.com/GeertJohan/go.rice"
	"github.com/gorilla/mux"
	"github.com/jmoiron/sqlx"
	"github.com/namsral/flag"
	"log"
	"net/http"
	"net/http/httputil"
	"net/url"

	_ "github.com/mattn/go-sqlite3"
)

var (
	CONFIG_FILE  = flag.String("config", "", "Path to config file")
	WEB_PORT     = flag.Uint64("port", 8080, "Port for the webserver to listen on")
	DEBUG        = flag.Bool("debug", false, "Debug mode")
	DB_SEED      = flag.Bool("db-seed", false, "Seed the DB with initial values")
	DB_URI       = flag.String("db-uri", ":memory:", "Path/URI to store DB at")
	FRONTEND_URL = flag.String(
		"frontend-url",
		"http://localhost:4200",
		"In debug mode reverse proxy is used instead of embedded files",
	)
)
{'fraction_non_alphanumeric': 0.16556688662267546, 'fraction_numerical': 0.021595680863827234, 'mean_word_length': 3.711864406779661, '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': '3116793', 'n_tokens_mistral': 705, 'n_tokens_neox': 681, 'n_words': 138}