<commit_before>require "notis/version"
require 'open3'

module Notis
    def Notis.runit(command)
	  	begin
		    stdout_str, stderr_str, status = Open3.capture3(command)
		    if status.exitstatus == 0
		    	return "#{stdout_str}"
		    else
		      	STDERR.puts stderr_str
		      	exit 1
		    end
	  	rescue => e
		    STDERR.puts e.message
		    exit 1
		end #end begin/rescue blocks
	end #end runit
end #end Notis module<commit_msg>documentation of code<commit_after>require "notis/version"
require 'open3'

module Notis
    def Notis.runit(command)
	  	begin
		    stdout_str, stderr_str, status = Open3.capture3(command)
		    if status.exitstatus == 0
		    	return "#{stdout_str}"
		    else
		      	STDERR.puts stderr_str #if the primary application fails, pass the error message to the user
		      	exit 1
		    end
	  	rescue => e
		    STDERR.puts e.message
		    exit 1
		end #end begin/rescue blocks
	end #end runit
end #end Notis module
{'fraction_non_alphanumeric': 0.07322175732217573, 'fraction_numerical': 0.012552301255230125, 'mean_word_length': 2.5313653136531364, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '2519294', 'n_tokens_mistral': 370, 'n_tokens_neox': 314, 'n_words': 95}