<commit_before>module Users
  class OmniauthCallbacksController < Devise::OmniauthCallbacksController
    skip_before_action :ensure_user

    def bike_index
      @user = User.from_omniauth(request.env['omniauth.auth'].uid, request.env['omniauth.auth'])
      if @user.persisted?
        sign_in_and_redirect @user
        set_flash_message(:notice, :success, kind: 'BikeIndex') if is_navigational_format?
      else<commit_msg>fix rails 5 devise issue<commit_after>module Users
  class OmniauthCallbacksController < Devise::OmniauthCallbacksController
    skip_before_action :ensure_user, raise: false

    def bike_index
      @user = User.from_omniauth(request.env['omniauth.auth'].uid, request.env['omniauth.auth'])
      if @user.persisted?
        sign_in_and_redirect @user
        set_flash_message(:notice, :success, kind: 'BikeIndex') if is_navigational_format?
      else
{'fraction_non_alphanumeric': 0.0928652321630804, 'fraction_numerical': 0.0011325028312570782, 'mean_word_length': 4.559748427672956, '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': '5996234', 'n_tokens_mistral': 280, 'n_tokens_neox': 268, 'n_words': 51}