<commit_before>import sublime, sublime_plugin
import subprocess
import os
import threading

class Runner(threading.Thread):
    def __init__(self, command, shell, env, view):
      self.stdout = None
      self.stderr = None
      self.command = command or ''
      self.shell = shell or ''
      self.env = env or ''
      self.view = view or None
      threading.Thread.__init__(self)

    def run(self):
      proc = subprocess.Popen(
        self.command,
        shell=True,
        stdout=subprocess.PIPE,
        stderr=subprocess.STDOUT,
        universal_newlines=True,
        env=self.env,
        executable=self.shell
      )

      self.stdout, self.stderr = proc.communicate()
      self.view.run_command('insert_view', { 'string': self.stdout })

class RunCommand(sublime_plugin.WindowCommand):<commit_msg>Update the script to use the interactive version of the shell to make it load the rcs<commit_after>import sublime, sublime_plugin
import subprocess
import os
import threading

class Runner(threading.Thread):
    def __init__(self, command, shell, env, view):
      self.stdout = None
      self.stderr = None
      self.command = command or ''
      self.shell = shell or ''
      self.env = env or ''
      self.view = view or None
      threading.Thread.__init__(self)

    def run(self):
      proc = subprocess.Popen(
        [self.shell, '-ic', self.command],
        shell=False,
        stdout=subprocess.PIPE,
        stderr=subprocess.STDOUT,
        universal_newlines=True,
        env=self.env,
      )

      self.stdout, self.stderr = proc.communicate()
      self.view.run_command('insert_view', { 'string': self.stdout })

class RunCommand(sublime_plugin.WindowCommand):
{'fraction_non_alphanumeric': 0.10304449648711944, 'fraction_numerical': 0.0, 'mean_word_length': 2.7396061269146608, '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': '6006346', 'n_tokens_mistral': 520, 'n_tokens_neox': 505, 'n_words': 124}