<commit_before># encoding: utf-8

require 'terminal-table'

require_relative '../version'
require_relative '../exceptions/exceptions'

module GoodData
  module Rest
    # Wrapper of low-level HTTP/REST client/library
    class Connection
      DEFAULT_URL = ENV['GD_GEM_SERVER'] || 'https://secure.gooddata.com'
      LOGIN_PATH = '/gdc/account/login'
      TOKEN_PATH = '/gdc/account/token'
      KEYS_TO_SCRUB = [:password, :verifyPassword, :authorizationToken]

      DEFAULT_HEADERS = {
        :content_type => :json,
        :accept => [:json, :zip],<commit_msg>[BIA-13] - Updated based on @cvengros feedback, using GD_SERVER env variable<commit_after># encoding: utf-8

require 'terminal-table'

require_relative '../version'
require_relative '../exceptions/exceptions'

module GoodData
  module Rest
    # Wrapper of low-level HTTP/REST client/library
    class Connection
      DEFAULT_URL = ENV['GD_SERVER'] || 'https://secure.gooddata.com'
      LOGIN_PATH = '/gdc/account/login'
      TOKEN_PATH = '/gdc/account/token'
      KEYS_TO_SCRUB = [:password, :<PASSWORD>Password, :authorizationToken]

      DEFAULT_HEADERS = {
        :content_type => :json,
        :accept => [:json, :zip],
{'fraction_non_alphanumeric': 0.13010842368640535, 'fraction_numerical': 0.003336113427856547, 'mean_word_length': 3.4609665427509295, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 8, 'https://': 2, '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': '4128405', 'n_tokens_mistral': 391, 'n_tokens_neox': 380, 'n_words': 82}