<commit_before># Rails 3 aliases, backwards-compatible with Rails 2.

function _rails_command () {
  if [ -e "script/server" ]; then
    ruby script/$@
  else
    ruby script/rails $@
  fi
}

alias rc='_rails_command console'
alias rg='_rails_command generate'
alias rd='_rails_command destroy'
alias rdb='_rails_command dbconsole'
alias rdbm='rake db:migrate db:test:clone'
alias rp='_rails_command plugin'
alias devlog='tail -f log/development.log'
alias rrs='touch tmp/restart.txt'
<commit_msg>ruby: alias for pry-enabled rails console<commit_after># Rails 3 aliases, backwards-compatible with Rails 2.

function _rails_command () {
  if [ -e "script/server" ]; then
    ruby script/$@
  else
    ruby script/rails $@
  fi
}

alias pryc='pry -r./config/environment.rb'
alias rc='_rails_command console'
alias rg='_rails_command generate'
alias rd='_rails_command destroy'
alias rdb='_rails_command dbconsole'
alias rdbm='rake db:migrate db:test:clone'
alias rp='_rails_command plugin'
alias devlog='tail -f log/development.log'
alias rrs='touch tmp/restart.txt'

{'fraction_non_alphanumeric': 0.11455399061032864, 'fraction_numerical': 0.003755868544600939, 'mean_word_length': 5.161849710982659, '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': '3899957', 'n_tokens_mistral': 389, 'n_tokens_neox': 354, 'n_words': 100}