<commit_before># Include hook code here
require 'will_paginate'
ActionController::Base.class_eval { include ListFor::ActionController::InstanceMethods }
ActionController::Base.before_filter :load_list_params
ActionController::Base.helper ListForHelper
TrueClass.class_eval { include ListFor::TrueClass::InstanceMethods }
FalseClass.class_eval { include ListFor::FalseClass::InstanceMethods }
NilClass.class_eval { include ListFor::NilClass::InstanceMethods }<commit_msg>Refracted the structure. Added CSV support. Added feature to redirect if only one hit.<commit_after># Include hook code here
require 'will_paginate'
ActionController::Base.class_eval { include ListFor::Extensions::ActionController::InstanceMethods }
ActionController::Base.before_filter :load_list_params
ActionController::Base.helper ListFor::Helper
Array.class_eval { include ListFor::Extensions::Array::InstanceMethods }
TrueClass.class_eval { include ListFor::Extensions::TrueClass::InstanceMethods }
FalseClass.class_eval { include ListFor::Extensions::FalseClass::InstanceMethods }
NilClass.class_eval { include ListFor::Extensions::NilClass::InstanceMethods }
{'fraction_non_alphanumeric': 0.09507042253521127, 'fraction_numerical': 0.0, 'mean_word_length': 10.968421052631578, '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': '6823266', 'n_tokens_mistral': 290, 'n_tokens_neox': 283, 'n_words': 62}