<commit_before>#!/usr/bin/env ruby

require 'gooddata'
require 'gooddata/command'

require 'irb'

module IRB
  def IRB.start2(bind, ap_path)
    IRB.setup(ap_path)
    irb = Irb.new(WorkSpace.new(bind))
    @CONF[:MAIN_CONTEXT] = irb.context
    trap("SIGINT") do
      irb.signal_handle
    end
    catch(:IRB_EXIT) do
      irb.eval_input
    end
  end
end


GoodData::Command.connect
puts "Logged into GoodData as #{GoodData.profile.user}"
puts
IRB::start2 binding, $STDIN
puts "Logging out"<commit_msg>CODE: auto-include GoodData module in the interactive mode<commit_after>#!/usr/bin/env ruby

require 'gooddata'
require 'gooddata/command'

require 'irb'

include GoodData

module IRB
  def IRB.start2(bind, ap_path)
    IRB.setup(ap_path)
    irb = Irb.new(WorkSpace.new(bind))
    @CONF[:MAIN_CONTEXT] = irb.context
    trap("SIGINT") do
      irb.signal_handle
    end
    catch(:IRB_EXIT) do
      irb.eval_input
    end
  end
end


Command.connect
puts "Logged into GoodData as #{GoodData.profile.user}"
puts
IRB::start2 binding, $STDIN
puts "Logging out"
{'fraction_non_alphanumeric': 0.11267605633802817, 'fraction_numerical': 0.003755868544600939, 'mean_word_length': 3.7589285714285716, 'pattern_counts': {'":': 0, '<': 3, '<?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': '3156614', 'n_tokens_mistral': 408, 'n_tokens_neox': 405, 'n_words': 92}