<commit_before>unless File.basename(File.dirname(__FILE__)) == 'progressive_projects_list'
  raise "Progressive Project List plugin directory should be 'progressive_projects_list' instead of '#{File.basename(File.dirname(__FILE__))}'"
end

Redmine::Plugin.register :progressive_projects_list do
  name 'Progressive Projects List plugin'
  author '<NAME>'
  description 'Projects List with menus and progress bars.'
  version '0.5.0'
  url 'http://stgeneral.github.io/redmine-progressive-projects-list/'
  author_url 'https://github.com/stgeneral'

  settings :default => {
    'show_project_description'  => false,
    'show_project_progress'     => true,
    'show_project_menu'         => false,
    'show_only_for_my_projects' => false,
    'show_project_progress_overview' => ''
  }, :partial => 'settings/progressive_projects_list'
end

if Rails::VERSION::MAJOR >= 3
  require 'progressive_projects_list'
  require 'progressive/projects_helper_patch'
  require 'progressive/projects_list_view_listener'
  require 'progressive/recent_projects_view_listener'
else
  # Rails 2.x (ChiliProject) compatibility
  require 'dispatcher'
  Dispatcher.to_prepare :progressive_projects_list do
    require_dependency 'progressive_projects_list'
    require_dependency 'progressive/projects_helper_patch'
    require_dependency 'progressive/application_helper_patch'
  end
end<commit_msg>Version 0.5.1<commit_after>unless File.basename(File.dirname(__FILE__)) == 'progressive_projects_list'
  raise "Progressive Project List plugin directory should be 'progressive_projects_list' instead of '#{File.basename(File.dirname(__FILE__))}'"
end

Redmine::Plugin.register :progressive_projects_list do
  name 'Progressive Projects List plugin'
  author '<NAME>'
  description 'Projects List with menus and progress bars.'
  version '0.5.1'
  url 'http://stgeneral.github.io/redmine-progressive-projects-list/'
  author_url 'https://github.com/stgeneral'

  settings :default => {
    'show_project_description'  => false,
    'show_project_progress'     => true,
    'show_project_menu'         => false,
    'show_only_for_my_projects' => false,
    'show_project_progress_overview' => ''
  }, :partial => 'settings/progressive_projects_list'
end

if Rails::VERSION::MAJOR >= 3
  require 'progressive_projects_list'
  require 'progressive/projects_helper_patch'
  require 'progressive/projects_list_view_listener'
  require 'progressive/recent_projects_view_listener'
else
  # Rails 2.x (ChiliProject) compatibility
  require 'dispatcher'
  Dispatcher.to_prepare :progressive_projects_list do
    require_dependency 'progressive_projects_list'
    require_dependency 'progressive/projects_helper_patch'
    require_dependency 'progressive/application_helper_patch'
  end
end
{'fraction_non_alphanumeric': 0.09855072463768116, 'fraction_numerical': 0.004710144927536232, 'mean_word_length': 5.637019230769231, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 21, 'https://': 2, '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': '25489', 'n_tokens_mistral': 851, 'n_tokens_neox': 819, 'n_words': 166}