<commit_before>// Copyright 2012 <NAME>. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

package main

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

func prompt() {
    fmt.Print("YALL> ")
}

func repl() {
    env := yall.NewEnv()
    for {
        prompt()
        reader := bufio.NewReader(os.Stdin)
        line, _, err := reader.ReadLine()
        if nil != err {
            return
        }
        func() {
            defer func(){
                if r := recover(); r != nil {
                    fmt.Println(r)
                    panic(r)
                }
            }()
            if result := env.EvalString(string(line)); result != nil {
                fmt.Println(result.String())
            }
        }()
    }
    fmt.Println()
}

func main() {
    repl()
}<commit_msg>Prompt<commit_after>// Copyright 2012 <NAME>. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

package main

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

func prompt() {
    fmt.Print("yall> ")
}

func repl() {
    env := yall.NewEnv()
    for {
        prompt()
        reader := bufio.NewReader(os.Stdin)
        line, _, err := reader.ReadLine()
        if nil != err {
            return
        }
        func() {
            defer func(){
                if r := recover(); r != nil {
                    fmt.Println(r)
                    panic(r)
                }
            }()
            if result := env.EvalString(string(line)); result != nil {
                fmt.Println(result.String())
            }
        }()
    }
    fmt.Println()
}

func main() {
    repl()
}
{'fraction_non_alphanumeric': 0.13508872352604465, 'fraction_numerical': 0.0045792787635947334, 'mean_word_length': 1.358974358974359, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '855045', 'n_tokens_mistral': 544, 'n_tokens_neox': 524, 'n_words': 142}