<commit_before>package main

import (
	"flag"
	"fmt"
	"os"

	"github.com/genkiroid/cert"
)

var version = ""

func main() {
	var skipVerify bool
	var format string
	var showVersion bool
	var template string

	flag.BoolVar(&skipVerify, "k", false, "Skip verification of server's certificate chain and host name.")
	flag.StringVar(&format, "f", "simple table", "Output format. md: as markdown, json: as JSON. ")
	flag.BoolVar(&showVersion, "v", false, "Show version.")
	flag.BoolVar(&showVersion, "version", false, "Show version.")
	flag.StringVar(&template, "t", "", "Output format as Go template string or Go template file path.")
	flag.Parse()

	if showVersion {
		fmt.Println("cert version ", version)
		return
	}

	var c cert.Certs
	var err error

	cert.SkipVerify = skipVerify

	c, err = cert.NewCerts(flag.Args())
	if err != nil {
		fmt.Fprintf(os.Stderr, "%v\n", err)
		os.Exit(1)
	}

	if template == "" {
		switch format {
		case "md":
			fmt.Printf("%s", c.Markdown())
		case "json":
			fmt.Printf("%s", c.JSON())
		default:
			fmt.Printf("%s", c)
		}
		return
	}

	if err := cert.SetUserTempl(template); err != nil {
		fmt.Fprintf(os.Stderr, "%v\n", err)
		os.Exit(1)
	} else {
		fmt.Printf("%s", c)
		return
	}
}
<commit_msg>Remove unnecessary block<commit_after>package main

import (
	"flag"
	"fmt"
	"os"

	"github.com/genkiroid/cert"
)

var version = ""

func main() {
	var skipVerify bool
	var format string
	var showVersion bool
	var template string

	flag.BoolVar(&skipVerify, "k", false, "Skip verification of server's certificate chain and host name.")
	flag.StringVar(&format, "f", "simple table", "Output format. md: as markdown, json: as JSON. ")
	flag.BoolVar(&showVersion, "v", false, "Show version.")
	flag.BoolVar(&showVersion, "version", false, "Show version.")
	flag.StringVar(&template, "t", "", "Output format as Go template string or Go template file path.")
	flag.Parse()

	if showVersion {
		fmt.Println("cert version ", version)
		return
	}

	var c cert.Certs
	var err error

	cert.SkipVerify = skipVerify

	c, err = cert.NewCerts(flag.Args())
	if err != nil {
		fmt.Fprintf(os.Stderr, "%v\n", err)
		os.Exit(1)
	}

	if template == "" {
		switch format {
		case "md":
			fmt.Printf("%s", c.Markdown())
		case "json":
			fmt.Printf("%s", c.JSON())
		default:
			fmt.Printf("%s", c)
		}
		return
	}

	if err := cert.SetUserTempl(template); err != nil {
		fmt.Fprintf(os.Stderr, "%v\n", err)
		os.Exit(1)
	}

	fmt.Printf("%s", c)
}

{'fraction_non_alphanumeric': 0.16571892770105606, 'fraction_numerical': 0.0016246953696181965, 'mean_word_length': 3.7365384615384616, 'pattern_counts': {'":': 4, '<': 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': '715809', 'n_tokens_mistral': 946, 'n_tokens_neox': 904, 'n_words': 248}