<commit_before>require 'contexts/get_oauth_user'
require 'contexts/get_google_apps_domain'

class DomainsController < ApplicationController

  # Endpoint for configuring a domain.
  #
  # GET /domains/example.com/configure
  def configure
    if user_signed_in?
      @domain = GetGoogleAppsDomain.new(:user => current_user, :domain_name => params[:domain_name]).call<commit_msg>Allow domain administrators to sign in<commit_after>require 'contexts/get_oauth_user'
require 'contexts/get_google_apps_domain'

class DomainsController < ApplicationController
  skip_before_action :authenticate_valid_account!, :only => [:configure]

  # Endpoint for configuring a domain.
  #
  # GET /domains/example.com/configure
  def configure
    if user_signed_in?
      @domain = GetGoogleAppsDomain.new(:user => current_user, :domain_name => params[:domain_name]).call
{'fraction_non_alphanumeric': 0.09228971962616822, 'fraction_numerical': 0.0, 'mean_word_length': 5.6434108527131785, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 8, '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': '4875711', 'n_tokens_mistral': 261, 'n_tokens_neox': 253, 'n_words': 54}