<commit_before>require 'active_support/dependencies'
require "kinukake/version"
require "open3"

module Kinukake
  def run (command, *params)
    
    params.each do | param |
      command = command + ' ' + param.to_s    
    end 
    
    res = nil
    
    Open3.popen3(command) {|i, o, e, t|
      i.close
      res = o.read
      }
    <commit_msg>default shell dir is SHELL<commit_after>require 'active_support/dependencies'
require "kinukake/version"
require "open3"

module Kinukake
  def run (command, *params)
    
    params.each do | param |
      command = 'SHELL/' + command + ' ' + param.to_s    
    end 
    
    res = nil
    
    Open3.popen3(command) {|i, o, e, t|
      i.close
      res = o.read
      }
    
{'fraction_non_alphanumeric': 0.1095890410958904, 'fraction_numerical': 0.00821917808219178, 'mean_word_length': 2.123931623931624, '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': '3573369', 'n_tokens_mistral': 263, 'n_tokens_neox': 257, 'n_words': 63}