<commit_before>module Ironboard
  class UsernameParser
    def self.get_username
      parser = Ironboard::NetrcInteractor.new
      username = parser.username

      if !username
        print "Enter your github username: "
        username = gets.strip
        user_id = Ironboard::GithubInteractor.get_user_id_for(username)
        parser.write(username, user_id)
      end

      username
    end
  end
end
<commit_msg>Check for valid user_id before running specs<commit_after>module Ironboard
  class UsernameParser
    def self.get_username
      parser = Ironboard::NetrcInteractor.new
      username = parser.username
      user_id = parser.user_id

      if !username || user_id == 'none'
        print "Enter your github username: "
        username = gets.strip
        user_id = Ironboard::GithubInteractor.get_user_id_for(username)
        parser.write(username, user_id)
      end

      username
    end
  end
end

{'fraction_non_alphanumeric': 0.06458557588805167, 'fraction_numerical': 0.0, 'mean_word_length': 2.7051792828685257, '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': '7198939', 'n_tokens_mistral': 271, 'n_tokens_neox': 263, 'n_words': 66}