<commit_before>37a38,43
> import java.io.File;            // why? I don't know
> import bsh.util.BshCompleter;
> import bsh.util.NameCompletionTable;
> import bsh.classpath.ClassManagerImpl;
> import org.gnu.readline.Readline;
> import org.gnu.readline.ReadlineReader;
104a111
> 
221a229
> 
225a234
> 
358c367,393
<             Reader in = new CommandLineReader( new InputStreamReader(src));
---
>             Reader in = null;
>             boolean usingReadline = false;
>             try {
>                 File history = new File(System.getProperty("user.home") +
>                                         File.separator + ".bsh_history");
>                 if (!history.exists()) {
>                     try {
>                         history.createNewFile();
>                     } catch(IOException ioe) {
>                         debug("Unable to create history file: " + history.getAbsolutePath());
>                     }
>                 }
>                 // should I wrap CommandLineReader around it?
>                 if (history.canWrite() && history.canRead()) {
>                     in = new ReadlineReader("bsh % ", history);
>                 } else {
>                     in = new ReadlineReader("bsh % ");
>                     debug("Unable to read/write history file: " + history.getAbsolutePath());
>                 }
>             } catch (IOException ioe) {
>                 System.err.println("Unable to invoke ReadlineReader " +
>                                    "due to: " + ioe);<commit_msg>added ReadlineLibrary argument to constructor of ReadlineReader<commit_after>37a38,43
> import java.io.File;            // why? I don't know
> import bsh.util.BshCompleter;
> import bsh.util.NameCompletionTable;
> import bsh.classpath.ClassManagerImpl;
> import org.gnu.readline.Readline;
> import org.gnu.readline.ReadlineReader;
104a111
> 
221a229
> 
225a234
> 
358c367,393
<             Reader in = new CommandLineReader( new InputStreamReader(src));
---
>             Reader in = null;
>             boolean usingReadline = false;
>             try {
>                 File history = new File(System.getProperty("user.home") +
>                                         File.separator + ".bsh_history");
>                 if (!history.exists()) {
>                     try {
>                         history.createNewFile();
>                     } catch(IOException ioe) {
>                         debug("Unable to create history file: " + history.getAbsolutePath());
>                     }
>                 }
>                 // should I wrap CommandLineReader around it?
>                 if (history.canWrite() && history.canRead()) {
>                     in = new ReadlineReader("bsh % ", history,ReadlineLibrary.Editline);
>                 } else {
>                     in = new ReadlineReader("bsh % ",ReadlineLibrary.Editline);
>                     debug("Unable to read/write history file: " + history.getAbsolutePath());
>                 }
>             } catch (IOException ioe) {
>                 System.err.println("Unable to invoke ReadlineReader " +
>                                    "due to: " + ioe);
{'fraction_non_alphanumeric': 0.11363636363636363, 'fraction_numerical': 0.020833333333333332, 'mean_word_length': 1.4893951296150825, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 65, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '951656', 'n_tokens_mistral': 873, 'n_tokens_neox': 806, 'n_words': 176}