<commit_before>require 'formula'

class TodoTxt < Formula
  homepage 'http://todotxt.com/'
  url 'https://github.com/downloads/ginatrapani/todo.txt-cli/todo.txt_cli-2.9.tar.gz'
  md5 'e815c63ab4e46285f0b0a30b7bac7918'

  head 'https://github.com/ginatrapani/todo.txt-cli.git'

  def install
    bin.install 'todo.sh'
    prefix.install 'todo.cfg' # Default config file
  end

  def caveats; <<-EOS.undent
    To configure, copy the default config to your home and edit it:
      cp #{prefix}/todo.cfg ~/.todo.cfg
    EOS
  end
end<commit_msg>todo-txt: install bash completion<commit_after>require 'formula'

class TodoTxt < Formula
  homepage 'http://todotxt.com/'
  url 'https://github.com/downloads/ginatrapani/todo.txt-cli/todo.txt_cli-2.9.tar.gz'
  md5 'e815c63ab4e46285f0b0a30b7bac7918'

  head 'https://github.com/ginatrapani/todo.txt-cli.git'

  def install
    bin.install 'todo.sh'
    prefix.install 'todo.cfg' # Default config file
    (prefix+'etc/bash_completion.d').install 'todo_completion'
  end

  def caveats; <<-EOS.undent
    To configure, copy the default config to your home and edit it:
      cp #{prefix}/todo.cfg ~/.todo.cfg

    Bash completion has been installed to:
      #{etc}/bash_completion.d
    EOS
  end
end
{'fraction_non_alphanumeric': 0.12399355877616747, 'fraction_numerical': 0.037037037037037035, 'mean_word_length': 3.4078014184397163, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5033218', 'n_tokens_mistral': 505, 'n_tokens_neox': 475, 'n_words': 99}