<commit_before>require_dependency 'require_auth_to_comment_plugin/ext/profile'

class RequireAuthToCommentPlugin < Noosfero::Plugin

  include ActionView::Helpers::TagHelper
  include ActionView::Helpers::FormTagHelper
  include ApplicationHelper

  def self.plugin_name
    "RequireAuthToCommentPlugin"
  end

  def self.plugin_description
    _("Requires users to authenticate in order to post comments.")
  end

  def filter_comment(c)
    c.reject! unless logged_in? || allowed_by_profile
  end

  def profile_editor_extras
    expanded_template('profile-editor-extras.rhtml')
  end

  def stylesheet?
    true
  end

  def js_files
    ['hide_comment_form.js']
  end
<commit_msg>adding jquery livequery in noosfero plugin<commit_after>require_dependency 'require_auth_to_comment_plugin/ext/profile'

class RequireAuthToCommentPlugin < Noosfero::Plugin

  include ActionView::Helpers::TagHelper
  include ActionView::Helpers::FormTagHelper
  include ApplicationHelper

  def self.plugin_name
    "RequireAuthToCommentPlugin"
  end

  def self.plugin_description
    _("Requires users to authenticate in order to post comments.")
  end

  def filter_comment(c)
    c.reject! unless logged_in? || allowed_by_profile
  end

  def profile_editor_extras
    expanded_template('profile-editor-extras.rhtml')
  end

  def stylesheet?
    true
  end

  def js_files
    ['hide_comment_form.js', 'jquery.livequery.min.js']
  end

{'fraction_non_alphanumeric': 0.0702247191011236, 'fraction_numerical': 0.0, 'mean_word_length': 4.7, 'pattern_counts': {'":': 0, '<': 5, '<?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': '5564413', 'n_tokens_mistral': 445, 'n_tokens_neox': 433, 'n_words': 98}