<commit_before>package init

import (
	"bufio"
	"fmt"
	"os"
)

func Init() error {
	if _, err := os.Open("./ci"); err != nil {
		reader := bufio.NewReader(os.Stdin)
		fmt.Println("You do not have a ci/ directory. Create one now? (y/n)")

		text, err := reader.ReadString('\n')
		if err != nil {
			return err
		}

		fmt.Println(text)
	}
	return nil
}<commit_msg>prompt for ci-dir<commit_after>package init

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

func Init() error {
	if _, err := os.Open("./ci"); err != nil {
		reader := bufio.NewReader(os.Stdin)
		fmt.Println("You do not have a ci/ directory. Create one now? (y/n)")

		text, err := reader.ReadString('\n')
		if err != nil {
			return err
		}

		if strings.Trim(text, "\n\r") == "y" || strings.Trim(text, "\n\r") == "Y" {
			if err := os.Mkdir("ci", os.ModeDir); err != nil {
				log.Fatal(err)
			}
		}

		fmt.Println(text)
	}
	return nil
}
{'fraction_non_alphanumeric': 0.1940463065049614, 'fraction_numerical': 0.0, 'mean_word_length': 2.930735930735931, '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': '3180529', 'n_tokens_mistral': 404, 'n_tokens_neox': 370, 'n_words': 94}