<commit_before>require_relative 'version'

require_relative '../../lib/admix/google_drive/installed_app_authentication_manager'

class AdmixApp

  PATH_TO_FILE = File.expand_path('../../assets/auth_details.json',__FILE__)

  def initialize(auth_manager_class)
    @auth_manager_class = auth_manager_class
  end

  def start
    print("Enter Google Client ID for installed Application\n=> ")
    client_id = gets.chomp

    print("\nEnter Google Client Secret for installed Application\n=> ")
    client_secret = gets.chomp

    print("\nEnter your email address (to access your google drive files)\n=> ")
    user_email = gets.chomp

    @manager = @auth_manager_class.new(client_id, client_secret, PATH_TO_FILE, user_email)

    client_access_token = @manager.access_token
    if(!client_access_token)
      print("\nSorry, the application could not complete Athu2 process!\n" )
      return
    end
    print("\nYou've authorized access to the application successfully!\n" )
  end


end<commit_msg>Use ‘not’ instead of ‘!’ to negate and  remove parentheses from if statement  <commit_after>require_relative 'version'

require_relative '../../lib/admix/google_drive/installed_app_authentication_manager'

class AdmixApp

  PATH_TO_FILE = File.expand_path('../../assets/auth_details.json',__FILE__)

  def initialize(auth_manager_class)
    @auth_manager_class = auth_manager_class
  end

  def start
    print("Enter Google Client ID for installed Application\n=> ")
    client_id = gets.chomp

    print("\nEnter Google Client Secret for installed Application\n=> ")
    client_secret = gets.chomp

    print("\nEnter your email address (to access your google drive files)\n=> ")
    user_email = gets.chomp

    @manager = @auth_manager_class.new(client_id, client_secret, PATH_TO_FILE, user_email)

    client_access_token = @manager.access_token
    if not client_access_token
      print("\nSorry, the application could not complete Athu2 process!\n")
      return
    end
    print("\nYou've authorized access to the application successfully!\n")
  end


end
{'fraction_non_alphanumeric': 0.09491525423728814, 'fraction_numerical': 0.0009685230024213075, 'mean_word_length': 4.063725490196078, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '2596275', 'n_tokens_mistral': 619, 'n_tokens_neox': 593, 'n_words': 157}