<commit_before>= Filewatcher

Simple file watcher. Detects changes in files.

Examples:

Watch a list of files and directoriess:

  require 'filewatcher'

  FileWatcher.new(["lib/", "Rakefile"]).watch do |filename|
    puts "Updated " + filename
  end

Print names of files beeing watched before we begin:

  FileWatcher.new(["./lib/"],"Watching files:").watch do |filename|
    puts "Updated " + filename
  end
  => Watching files:
  lib/filewatcher.rb

To check for changes more often than once every second:

  FileWatcher.new(["README.rdoc"]).watch(0.5) do |filename|
    puts "Updated " + filename
  end

= Install

  sudo gem install filewatcher
<commit_msg>added credits section<commit_after>= Filewatcher

Simple file watcher. Detects changes in files.

Examples:

Watch a list of files and directories:

  require 'filewatcher'

  FileWatcher.new(["lib/", "Rakefile"]).watch do |filename|
    puts "Updated " + filename
  end

Print names of files beeing watched before we begin:

  FileWatcher.new(["lib/"],"Watching files:").watch do |filename|
    puts "Updated " + filename
  end
  => Watching files:
  lib/filewatcher.rb

To check for changes more often than once every second:

  FileWatcher.new(["README.rdoc"]).watch(0.5) do |filename|
    puts "Updated " + filename
  end

= Install

  sudo gem install filewatcher

{'fraction_non_alphanumeric': 0.10652663165791448, 'fraction_numerical': 0.003000750187546887, 'mean_word_length': 3.8864468864468864, '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': '2788317', 'n_tokens_mistral': 433, 'n_tokens_neox': 423, 'n_words': 140}