<commit_before>package main

import (
	"fmt"
	"log"
	"os"
	"strings"
)

var action, token, password, apiKey, message, email string

func init() {
	apiKey = strings.ToLower(os.Getenv("NOTESHRED_API_KEY"))
	if apiKey == "" {
		log.Fatal("NOTESHRED_API_KEY not set")
	}

	if len(os.Args) < 3 {
		showInstructions()
		os.Exit(0)
	}

  // show or new
	action = strings.ToLower(os.Args[1])

	if action == "show" {
		if len(os.Args) < 4 {
			showInstructions()
			os.Exit(0)
		}
		token = os.Args[2]
		password = os.Args[3]

	} else if action == "new" {
		message = os.Args[2]
		if len(os.Args) == 4 && os.Args[3] != "" {
			email = os.Args[3]<commit_msg>go fmt<commit_after>package main

import (
	"fmt"
	"log"
	"os"
	"strings"
)

var action, token, password, apiKey, message, email string

func init() {
	apiKey = strings.ToLower(os.Getenv("NOTESHRED_API_KEY"))
	if apiKey == "" {
		log.Fatal("NOTESHRED_API_KEY not set")
	}

	if len(os.Args) < 3 {
		showInstructions()
		os.Exit(0)
	}

	// show or new
	action = strings.ToLower(os.Args[1])

	if action == "show" {
		if len(os.Args) < 4 {
			showInstructions()
			os.Exit(0)
		}
		token = os.Args[2]
		password = os.Args[3]

	} else if action == "new" {
		message = os.Args[2]
		if len(os.Args) == 4 && os.Args[3] != "" {
			email = os.Args[3]
{'fraction_non_alphanumeric': 0.17701863354037267, 'fraction_numerical': 0.017080745341614908, 'mean_word_length': 3.226229508196721, 'pattern_counts': {'":': 0, '<': 7, '<?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': '5402894', 'n_tokens_mistral': 587, 'n_tokens_neox': 536, 'n_words': 116}