<commit_before>Punching Bag
============
Punching Bag is a hit tracking plugin for Ruby on Rails that specializes in simple trending.

Features
========
* Total hit count
* Hit counts for the last day, week, month, etc.
* Simple trending based on most hits in the last day, week, month, etc.
* Rake task to group old hit records for better performance
* [ActsAsTaggableOn](https://github.com/mbleigh/acts-as-taggable-on) integration for trending tags/topics support
* [Voight-Kampff](https://github.com/adamcrown/Voight-Kampff) integration for bot checking

Installation
============

__In your Gemfile add:__

    gem punching_bag

__In the terminal run:__

    rails g punching_bag
    rake db:migrate

__In your model add:__

    acts_as_punchable

Usage
=====
__Tracking hits in your controller__

    class PostsController < ApplicationController
      def show
        @post.punch(request)
      end
    end

__Getting a total hit count in your view__<commit_msg>Fixing readme installation instructions<commit_after>Punching Bag
============
Punching Bag is a hit tracking plugin for Ruby on Rails that specializes in simple trending.

Features
========
* Total hit count
* Hit counts for the last day, week, month, etc.
* Simple trending based on most hits in the last day, week, month, etc.
* Rake task to group old hit records for better performance
* [ActsAsTaggableOn](https://github.com/mbleigh/acts-as-taggable-on) integration for trending tags/topics support
* [Voight-Kampff](https://github.com/adamcrown/Voight-Kampff) integration for bot checking

Installation
============

__In your Gemfile add:__

    gem "punching_bag"

__In the terminal run:__

    bundle install
    rails g punching_bag
    rake db:migrate

__In your model add:__

    acts_as_punchable

Usage
=====
__Tracking hits in your controller__

    class PostsController < ApplicationController
      def show
        @post.punch(request)
      end
    end

__Getting a total hit count in your view__
{'fraction_non_alphanumeric': 0.09168765743073048, 'fraction_numerical': 0.0, 'mean_word_length': 4.015151515151516, 'pattern_counts': {'":': 0, '<': 5, '<?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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2919199', 'n_tokens_mistral': 603, 'n_tokens_neox': 580, 'n_words': 220}