<commit_before>require 'digest/md5'
require 'find'

module Manifesto
  
  # Returns an Array of non-hidden files within the <tt>./public</tt> directory, unless <tt>:directory</tt> is specified.
  # The output also includes a computed hash of the files' contents, unless <tt>:compute_hash</tt> is set to <tt>false</tt>.
  #
  # === Examples
  #
  # Basic usage, list all non-hidden files in <tt>./public</tt> and include a computed hash of their contents:<commit_msg>Switched from a module to a class<commit_after>require 'digest/md5'
require 'find'

class Manifesto
  
  # Returns an Array of non-hidden files within the <tt>./public</tt> directory, unless <tt>:directory</tt> is specified.
  # The output also includes a computed hash of the files' contents, unless <tt>:compute_hash</tt> is set to <tt>false</tt>.
  #
  # === Examples
  #
  # Basic usage, list all non-hidden files in <tt>./public</tt> and include a computed hash of their contents:
{'fraction_non_alphanumeric': 0.11987381703470032, 'fraction_numerical': 0.002103049421661409, 'mean_word_length': 4.090909090909091, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 23, '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': '1019030', 'n_tokens_mistral': 288, 'n_tokens_neox': 285, 'n_words': 113}