<commit_before>package main

import (
	"fmt"
	"os"

	//Required for plugins to register
	_ "github.com/zero-boilerplate/dto-layer-generator/plugins/client"
	_ "github.com/zero-boilerplate/dto-layer-generator/plugins/server"

	"github.com/zero-boilerplate/dto-layer-generator/helpers"
	"github.com/zero-boilerplate/dto-layer-generator/plugins"
	"github.com/zero-boilerplate/dto-layer-generator/setup"
)

type tmpLogger struct{}

func (t *tmpLogger) Error(msg string, params ...interface{}) {
	fmt.Println(fmt.Sprintf("[E] "+msg, params...))
}

func (t *tmpLogger) Warn(msg string, params ...interface{}) {
	fmt.Println(fmt.Sprintf("[W] "+msg, params...))
}

func (t *tmpLogger) Info(msg string, params ...interface{}) {
	fmt.Println(fmt.Sprintf("[I] "+msg, params...))
}

func (t *tmpLogger) Debug(msg string, params ...interface{}) {
	fmt.Println(fmt.Sprintf("[D] "+msg, params...))
}

func main() {
	logger := &tmpLogger{}
	defer func() {
		if r := recover(); r != nil {
			logger.Error("FAILURE: %#v", r)
		}
	}()

	if len(os.Args) < 2 {
		panic("First command-line argument must be path to the dto setup YAML file.")
	}<commit_msg>If a `panic` occurs in the executable command, explicitly exit with code 2.<commit_after>package main

import (
	"fmt"
	"os"

	//Required for plugins to register
	_ "github.com/zero-boilerplate/dto-layer-generator/plugins/client/java_android"
	_ "github.com/zero-boilerplate/dto-layer-generator/plugins/server/go"

	"github.com/zero-boilerplate/dto-layer-generator/helpers"
	"github.com/zero-boilerplate/dto-layer-generator/plugins"
	"github.com/zero-boilerplate/dto-layer-generator/setup"
)

type tmpLogger struct{}

func (t *tmpLogger) Error(msg string, params ...interface{}) {
	fmt.Println(fmt.Sprintf("[E] "+msg, params...))
}

func (t *tmpLogger) Warn(msg string, params ...interface{}) {
	fmt.Println(fmt.Sprintf("[W] "+msg, params...))
}

func (t *tmpLogger) Info(msg string, params ...interface{}) {
	fmt.Println(fmt.Sprintf("[I] "+msg, params...))
}

func (t *tmpLogger) Debug(msg string, params ...interface{}) {
	fmt.Println(fmt.Sprintf("[D] "+msg, params...))
}

func main() {
	logger := &tmpLogger{}
	defer func() {
		if r := recover(); r != nil {
			logger.Error("FAILURE: %#v", r)
			os.Exit(2)
		}
	}()

	if len(os.Args) < 2 {
		panic("First command-line argument must be path to the dto setup YAML file.")
	}
{'fraction_non_alphanumeric': 0.186864406779661, 'fraction_numerical': 0.001694915254237288, 'mean_word_length': 4.1214750542299345, 'pattern_counts': {'":': 0, '<': 5, '<?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': '6548065', 'n_tokens_mistral': 876, 'n_tokens_neox': 852, 'n_words': 187}