<commit_before>/*
Package interactive provides an easy to implement shell for simple, interactive
commandline applications. It is build on top of the excellent
https://golang.org/x/crypto/ssh/terminal package and tries to simplify the creation of
small and simple applications which run in shell mode. It isn't very powerful
(yet) but has enough features for basic usage. For example it shuts down
gracefully on Ctrl^C and Ctrl^D.

This small application echos the entered text:
    s := interactive.New(">")
    s.Action = func(c *interactive.Context) error {
        text := c.ReadLine()
        c.WriteLine(text)
        return nil
    }
    s.Run()
Returning an error instead of nil will print the error and close the session
with a return code 1. Calling `context.Close()` will close the session with a
return code 0.
*/
package interactive<commit_msg>Improve documentation<commit_after>/*
Package interactive provides an easy to implement shell for simple, interactive
commandline applications. It is build on top of the excellent
https://golang.org/x/crypto/ssh/terminal package and tries to simplify the creation of
small and simple applications which run in shell mode. It isn't very powerful
(yet) but has enough features for basic usage. For example it shuts down
gracefully on Ctrl^C and Ctrl^D.

This small application echos the entered text:
    s := interactive.New(">")
    s.Action = func(c *interactive.Context) error {
        text := c.ReadLine()
        c.WriteLine(text)
        return nil
    }
    s.Run()
Returning an error instead of nil will print the error and close the session
with a return code 1. Calling context.Close() will close the session with a
return code 0.
*/
package interactive
{'fraction_non_alphanumeric': 0.0686046511627907, 'fraction_numerical': 0.002325581395348837, 'mean_word_length': 3.728021978021978, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '1926026', 'n_tokens_mistral': 460, 'n_tokens_neox': 437, 'n_words': 226}