<commit_before>class SessionsController < ApplicationController

  def callback
    auth = request.env['omniauth.auth']
    user = User.find_by_provider_and_uid(auth['provider'], auth['uid']) || User.create_with_omniauth(auth)
    session[:user_id] = user.id
    redirect_to root_path<commit_msg>add recognize<commit_after>class SessionsController < ApplicationController

  def callback
    auth = request.env['omniauth.auth']
    user = User.find_by_provider_and_uid(auth['provider'], auth['uid']) || User.create_with_omniauth(auth)
    session[:user_id] = user.id
    
    client_rest = Twitter::REST::Client.new do |config|
      config.consumer_key        = "dsFcWBVjn8BS6gyKv2q6X0QSw"
      config.consumer_secret     = "<KEY>"
      config.access_token        = "<KEY>"
      config.access_token_secret = "<KEY>"
    end
    randam = rand(10000)
    client_rest.update "@yuki_99_s 新しく人がログインしました。 #{randam}"
    
    redirect_to root_path
{'fraction_non_alphanumeric': 0.11546610169491525, 'fraction_numerical': 0.012711864406779662, 'mean_word_length': 4.053475935828877, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 6, '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': '3208964', 'n_tokens_mistral': 327, 'n_tokens_neox': 304, 'n_words': 49}