<commit_before>Doorkeeper.configure do
  # Change the ORM that doorkeeper will use.
  # Currently supported options are :active_record and :mongoid
  orm :active_record

  # This block will be called to check whether the resource owner is authenticated or not.
  resource_owner_authenticator do |routes|
    raise "Please configure doorkeeper resource_owner_authenticator block located in #{__FILE__}"
    # Put your resource owner authentication logic here.
    # If you want to use named routes from your app, you need to call them on the routes object.
    # For example:
    #   routes.new_user_session_path
    # Example implementation:
    #   User.find_by_id(session[:user_id]) || redirect_to(routes.new_user_session_url)
  end

  # If you want to restrict access to the web interface for adding oauth authorized applications, you need to declare the block below.
  # admin_authenticator do |routes|
  #   # Put your admin authentication logic here.<commit_msg>Update template initializer<commit_after>Doorkeeper.configure do
  # Change the ORM that doorkeeper will use.
  # Currently supported options are :active_record, :mongoid, and :mongo_mapper
  orm :active_record

  # This block will be called to check whether the resource owner is authenticated or not.
  resource_owner_authenticator do |routes|
    raise "Please configure doorkeeper resource_owner_authenticator block located in #{__FILE__}"
    # Put your resource owner authentication logic here.
    # If you want to use named routes from your app, you need to call them on the routes object.
    # For example:
    #   routes.new_user_session_path
    # Example implementation:
    #   User.find_by_id(session[:user_id]) || redirect_to(routes.new_user_session_url)
  end

  # If you want to restrict access to the web interface for adding oauth authorized applications, you need to declare the block below.
  # admin_authenticator do |routes|
  #   # Put your admin authentication logic here.
{'fraction_non_alphanumeric': 0.05340793489318413, 'fraction_numerical': 0.0, 'mean_word_length': 4.203703703703703, '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': '5389676', 'n_tokens_mistral': 525, 'n_tokens_neox': 518, 'n_words': 222}