<commit_before>// Copyright 2010 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

package main

import (
	"flag"
	"fmt"
	"io/ioutil"
	"log"
	"os"
	"runtime"

	"github.com/pointlander/peg/tree"
)

const VERSION string = "v1.1.0"

var (
	inline   = flag.Bool("inline", false, "parse rule inlining")
	_switch  = flag.Bool("switch", false, "replace if-else if-else like blocks with switch blocks")
	print    = flag.Bool("print", false, "directly dump the syntax tree")
	syntax   = flag.Bool("syntax", false, "print out the syntax tree")
	noast    = flag.Bool("noast", false, "disable AST")
	strict   = flag.Bool("strict", false, "treat compiler warnings as errors")
	filename = flag.String("output", "", "specify name of output file")
	showVersion = flag.Bool("version", false, "print the version and exit")
)

func main() {
	runtime.GOMAXPROCS(2)
	flag.Parse()

	if *showVersion {
		fmt.Println("version:",VERSION)
		return
	}
	<commit_msg>improved version flag<commit_after>// Copyright 2010 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

package main

import (
	"flag"
	"fmt"
	"io/ioutil"
	"log"
	"os"
	"runtime"

	"github.com/pointlander/peg/tree"
)

var (
	inline   = flag.Bool("inline", false, "parse rule inlining")
	_switch  = flag.Bool("switch", false, "replace if-else if-else like blocks with switch blocks")
	print    = flag.Bool("print", false, "directly dump the syntax tree")
	syntax   = flag.Bool("syntax", false, "print out the syntax tree")
	noast    = flag.Bool("noast", false, "disable AST")
	strict   = flag.Bool("strict", false, "treat compiler warnings as errors")
	filename = flag.String("output", "", "specify name of output file")
	showVersion = flag.Bool("version", false, "print the version and exit")
)

// whether running with -version should
// show the last time `build.go buildinfo` was ran 
const Show_BUILDTIME = false

func main() {
	runtime.GOMAXPROCS(2)
	flag.Parse()

	if *showVersion {
		if IS_TAGGED {
			fmt.Println("version:",VERSION)
		} else {
			fmt.Printf("version: %s-%s\n",VERSION,COMMIT)
		}
		if Show_BUILDTIME {fmt.Println("time:",BUILDTIME)}
		return
	}
	
{'fraction_non_alphanumeric': 0.13830715532286214, 'fraction_numerical': 0.005671902268760907, 'mean_word_length': 3.984782608695652, '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': '6447003', 'n_tokens_mistral': 791, 'n_tokens_neox': 763, 'n_words': 246}