<commit_before>require_relative '../spec_helper'
require_relative '../../lib/slack/reader'
require 'dotenv'
Dotenv.load

api_token = ENV["TEST_API_TOKEN"]
raise 'Please set api token before testing. The token should be written in .env at project root.' unless api_token

describe Togelack::Slack::Reader do
  r = Togelack::Slack::Reader.new(api_token)
  describe '#initialize' do
    it 'should set api_token' do
      r.api_token.must_equal api_token
    end
  end

end
<commit_msg>modify too long statement<commit_after>require_relative '../spec_helper'
require_relative '../../lib/slack/reader'
require 'dotenv'
Dotenv.load

api_token = ENV["TEST_API_TOKEN"]
unless api_token
  raise <<EOS
    Please set api token before testing.
    The token should be written in .env at project root.
EOS
end


describe Togelack::Slack::Reader do
  r = Togelack::Slack::Reader.new(api_token)
  describe '#initialize' do
    it 'should set api_token' do
      r.api_token.must_equal api_token
    end
  end

end

{'fraction_non_alphanumeric': 0.0999000999000999, 'fraction_numerical': 0.0, 'mean_word_length': 4.112244897959184, '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': '891546', 'n_tokens_mistral': 332, 'n_tokens_neox': 327, 'n_words': 98}