<commit_before>require "rubygems"
require 'thor'
require "thor/runner"

module HurriyetCli
  class HammerOfTheGods < Thor
    desc "articles", "Fetch all articles"
    method_option :top, desc: "Fetch N articles"
    def articles
      client = Hurriyet::Client.new(ENV['API_KEY'])<commit_msg>Check api_key.<commit_after>require "rubygems"
require 'thor'
require "thor/runner"

module HurriyetCli
  class HammerOfTheGods < Thor
    unless ENV['API_KEY']
      raise 'Please add your API_KEY'
    end

    desc "articles", "Fetch all articles"
    method_option :top, desc: "Fetch N articles"
    def articles
      client = Hurriyet::Client.new(ENV['API_KEY'])
{'fraction_non_alphanumeric': 0.10454545454545454, 'fraction_numerical': 0.0, 'mean_word_length': 4.246031746031746, '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': '202484', 'n_tokens_mistral': 225, 'n_tokens_neox': 209, 'n_words': 60}