<commit_before>// jsonschema2go is the command invoked by go generate in order to generate the go client library.
package main

import (
	"bufio"
	"fmt"
	docopt "github.com/docopt/docopt-go"
	"github.com/petemoore/jsonschema2go/jsonschema2go"
	"io"
	"os"
)

func stdInToStringArray() []string {
	results := make([]string, 1)
	reader := bufio.NewReader(os.Stdin)
	for {
		line, err := reader.ReadString('\n')
		if err == io.EOF {
			break
		}
		jsonschema2go.ExitOnFail(err)
		results = append(results, line)
	}
	return results
}

var (
	version = "jsonschema2go 1.0"
	usage   = `<commit_msg>Fix for stripping new line characters when reading from standard in<commit_after>// jsonschema2go is the command invoked by go generate in order to generate the go client library.
package main

import (
	"bufio"
	"fmt"
	docopt "github.com/docopt/docopt-go"
	"github.com/petemoore/jsonschema2go/jsonschema2go"
	"io"
	"os"
)

func stdInToStringArray() []string {
	results := make([]string, 1)
	reader := bufio.NewReader(os.Stdin)
	for {
		line, err := reader.ReadString('\n')
		if err == io.EOF {
			break
		}
		// strip \n from string
		if line != "" {
			line = line[:len(line)-1]
		}
		jsonschema2go.ExitOnFail(err)
		results = append(results, line)
	}
	return results
}

var (
	version = "jsonschema2go 1.0"
	usage   = `
{'fraction_non_alphanumeric': 0.12947448591012947, 'fraction_numerical': 0.012947448591012947, 'mean_word_length': 3.760869565217391, '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': '6727195', 'n_tokens_mistral': 517, 'n_tokens_neox': 502, 'n_words': 126}