<commit_before>require "digest/sha1"
class UsersController < ApplicationController
  # Include some methods and set some default filters. 
  # See documentation: CMS::Controller::Agents#included
  include CMS::Controller::Agents
  include CMS::Controller::Authorization
  include CMS::Controller::Base

  # Get the User for member actions
  #before_filter :get_agent, :only => :show
  
  # Filter for activation actions
  before_filter :activation_required, :only => [ :activate, 
                                                 :forgot_password, 
                                                 :reset_password ]
  # Filter for password recovery actions
  before_filter :login_and_pass_auth_required, :only => [ :forgot_password,
                                                          :reset_password ]
  before_filter :get_container, :only=>[:search_users]
  
  before_filter :authentication_required, :only => [:edit, :update,:manage_users, :destroy]
  before_filter :user_is_admin, :only=> [:manage_users]
<commit_msg>Borrar include repetido en AgentsController (rompe los tests)<commit_after>require "digest/sha1"
class UsersController < ApplicationController
  # Include some methods and set some default filters. 
  # See documentation: CMS::Controller::Agents#included
  include CMS::Controller::Agents
  include CMS::Controller::Authorization

  # Get the User for member actions
  #before_filter :get_agent, :only => :show
  
  # Filter for activation actions
  before_filter :activation_required, :only => [ :activate, 
                                                 :forgot_password, 
                                                 :reset_password ]
  # Filter for password recovery actions
  before_filter :login_and_pass_auth_required, :only => [ :forgot_password,
                                                          :reset_password ]
  before_filter :get_container, :only=>[:search_users]
  
  before_filter :authentication_required, :only => [:edit, :update,:manage_users, :destroy]
  before_filter :user_is_admin, :only=> [:manage_users]

{'fraction_non_alphanumeric': 0.08599033816425121, 'fraction_numerical': 0.000966183574879227, 'mean_word_length': 2.7382671480144403, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 12, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6594534', 'n_tokens_mistral': 531, 'n_tokens_neox': 503, 'n_words': 135}