<commit_before>require 'redmine'
require_dependency 'redmine_scheduling_poll/hooks'
require_dependency 'redmine_scheduling_poll/macros'

Redmine::Plugin.register :redmine_scheduling_poll do
  name 'Scheduling Poll plugin'
  author '@cat_in_136'
  description 'provide simple polls to scheduling appointments'
  version '2.0.0'
  url 'https://github.com/cat-in-136/redmine_scheduling_poll'
  author_url 'https://github.com/cat-in-136/'

  project_module :scheduling_polls do
    permission :view_schduling_polls, :polls => [:show, :show_by_issue]
    permission :vote_schduling_polls, :polls => [:new, :create, :edit, :update, :vote]
  end

  settings :default => {
    'scheduling_vote_value_5' => '',
    'scheduling_vote_value_4' => '',
    'scheduling_vote_value_3' => 'OK',
    'scheduling_vote_value_2' => 'maybe',
    'scheduling_vote_value_1' => 'NG',
    'scheduling_poll_item_date_format' => 'yy-mm-dd',
  }, :partial => 'settings/scheduling_poll_settings'
end<commit_msg>version to v2.2.0<commit_after>require 'redmine'
require_dependency 'redmine_scheduling_poll/hooks'
require_dependency 'redmine_scheduling_poll/macros'

Redmine::Plugin.register :redmine_scheduling_poll do
  name 'Scheduling Poll plugin'
  author '@cat_in_136'
  description 'provide simple polls to scheduling appointments'
  version '2.2.0'
  url 'https://github.com/cat-in-136/redmine_scheduling_poll'
  author_url 'https://github.com/cat-in-136/'

  project_module :scheduling_polls do
    permission :view_schduling_polls, :polls => [:show, :show_by_issue]
    permission :vote_schduling_polls, :polls => [:new, :create, :edit, :update, :vote]
  end

  settings :default => {
    'scheduling_vote_value_5' => '',
    'scheduling_vote_value_4' => '',
    'scheduling_vote_value_3' => 'OK',
    'scheduling_vote_value_2' => 'maybe',
    'scheduling_vote_value_1' => 'NG',
    'scheduling_poll_item_date_format' => 'yy-mm-dd',
  }, :partial => 'settings/scheduling_poll_settings'
end
{'fraction_non_alphanumeric': 0.13224821973550355, 'fraction_numerical': 0.018819938962360123, 'mean_word_length': 5.449180327868852, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 23, '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': '25493', 'n_tokens_mistral': 750, 'n_tokens_neox': 693, 'n_words': 121}