<commit_before>api.repl = {}

function api.repl.open()
  local win = api.textgrid.open()

  local fg = "00FF00"
  local bg = "222222"

  win:settitle("Developer Console")

  local stdout = ""
  local stdin = ""

  local function printstr(x, y, str)
    local size = win:getsize()
    local w = size.w
    local h = size.h

    for i = 1, #str do
      if x == w + 1 then
        x = 1
        y = y + 1
      end

      if y == h + 1 then break end

      local c = str:sub(i,i):byte()
      if c == string.byte("\n") then
        x = 1
        y = y + 1
      else
        win:set(c, x, y, fg, bg)
        x = x + 1
      end<commit_msg>Renaming Hydra REPL window.<commit_after>api.repl = {}

function api.repl.open()
  local win = api.textgrid.open()

  local fg = "00FF00"
  local bg = "222222"

  win:settitle("Hydra REPL")

  local stdout = ""
  local stdin = ""

  local function printstr(x, y, str)
    local size = win:getsize()
    local w = size.w
    local h = size.h

    for i = 1, #str do
      if x == w + 1 then
        x = 1
        y = y + 1
      end

      if y == h + 1 then break end

      local c = str:sub(i,i):byte()
      if c == string.byte("\n") then
        x = 1
        y = y + 1
      else
        win:set(c, x, y, fg, bg)
        x = x + 1
      end
{'fraction_non_alphanumeric': 0.1332813717848792, 'fraction_numerical': 0.028059236165237724, 'mean_word_length': 1.647422680412371, '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': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '293749', 'n_tokens_mistral': 522, 'n_tokens_neox': 475, 'n_words': 156}