<commit_before># sub_shell_expansion - class SubShellExpansion - :( ...block...) -returns 
# content of the last command's output

class SubShellExpansion < SubShell
  def call env:, frames:
    my_env = env._clone
    sio = StringIO.new
    my_env[:out] = sio
    super env:my_env, frames:frames
      sio.close_write
      sio.rewind
      return sio.read.gsub(/\n/, ' ')
  end
  def ordinal
    COMMAND
  end
  def to_s
    ':(' + @block.to_s + ')'
  end
end
<commit_msg>\'corrected behaviiour for subshell expansion to chunk output via split, will be flattened in statement.rb\'<commit_after># sub_shell_expansion - class SubShellExpansion - :( ...block...) -returns 
# content of the last command's output

class SubShellExpansion < SubShell
  def call env:, frames:
    my_env = env._clone
    sio = StringIO.new
    my_env[:out] = sio
    super env:my_env, frames:frames
      sio.close_write
      sio.rewind
      return sio.read.gsub(/\n/, ' ').split
  end
  def ordinal
    COMMAND
  end
  def to_s
    ':(' + @block.to_s + ')'
  end
end

{'fraction_non_alphanumeric': 0.11344137273593899, 'fraction_numerical': 0.0, 'mean_word_length': 2.736654804270463, 'pattern_counts': {'":': 0, '<': 5, '<?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': '6790774', 'n_tokens_mistral': 377, 'n_tokens_neox': 358, 'n_words': 99}