<commit_before>module Unixoid

  class Github
    
    GITHUB_URL = 'https://api.github.com/user/repos'
    REPO_NAME = 'unixoid_submission'

    def initialize
      @runner = Runner.new
    end

    def create_repo
      puts "Please enter your Github username:"
      @runner.run(%Q{curl -u #{username} #{GITHUB_URL} -d '{"name": #{REPO_NAME}}'})
    end

    private

    def username
      $stdin.gets.chomp
    end
  end
end
<commit_msg>Adds convenience method to Github class<commit_after>module Unixoid

  class Github
    
    GITHUB_URL = 'https://api.github.com/user/repos'
    REPO_NAME = 'unixoid_submission'

    def initialize
      @runner = Runner.new
    end

    def self.create_repo
      new.create_repo
    end

    def create_repo
      puts "Please enter your Github username:"
      @runner.run(%Q{curl -u #{username} #{GITHUB_URL} -d '{"name": #{REPO_NAME}}'})
    end

    private

    def username
      $stdin.gets.chomp
    end
  end
end

{'fraction_non_alphanumeric': 0.10537190082644628, 'fraction_numerical': 0.0, 'mean_word_length': 2.4981949458483754, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 3, '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': '2719366', 'n_tokens_mistral': 347, 'n_tokens_neox': 329, 'n_words': 81}