<commit_before>module Transmogriffy
  class Github
    attr_reader :github_path, :milestones_path, :issues_path

    def initialize(options)
      @github_path = options[:github_path]
      @milestones_path = File.join(github_path, 'milestones')
      @issues_path = File.join(github_path, 'issues')

      # Ensure the directories exist.
      FileUtils.mkdir_p(milestones_path)
      FileUtils.mkdir_p(issues_path)
    end

    def create_milestone(options)
      puts "Creating milestone: ##{options[:number]}: #{options[:title]}"
      File.open(File.join(milestone_path, "#{options[:number]}.json"), 'w+') { |f| f.write(options.to_json) }
    end

    def create_issue(options)
      puts "Creating issue: ##{options[:number]}: #{options[:title]}"
      comments = options.delete(:comments)
      File.open(File.join(issues_path, "#{options[:number]}.json"), 'w+') { |f| f.write(options.to_json) }
      File.open(File.join(issues_path, "#{options[:number]}.comments.json"), 'w+') { |f| f.write(comments.to_json) }
    end
  end
end<commit_msg>Correct path.<commit_after>module Transmogriffy
  class Github
    attr_reader :github_path, :milestones_path, :issues_path

    def initialize(options)
      @github_path = options[:github_path]
      @milestones_path = File.join(github_path, 'milestones')
      @issues_path = File.join(github_path, 'issues')

      # Ensure the directories exist.
      FileUtils.mkdir_p(milestones_path)
      FileUtils.mkdir_p(issues_path)
    end

    def create_milestone(options)
      puts "Creating milestone: ##{options[:number]}: #{options[:title]}"
      File.open(File.join(milestones_path, "#{options[:number]}.json"), 'w+') { |f| f.write(options.to_json) }
    end

    def create_issue(options)
      puts "Creating issue: ##{options[:number]}: #{options[:title]}"
      comments = options.delete(:comments)
      File.open(File.join(issues_path, "#{options[:number]}.json"), 'w+') { |f| f.write(options.to_json) }
      File.open(File.join(issues_path, "#{options[:number]}.comments.json"), 'w+') { |f| f.write(comments.to_json) }
    end
  end
end
{'fraction_non_alphanumeric': 0.15959980943306337, 'fraction_numerical': 0.0, 'mean_word_length': 4.2109181141439205, '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': '6689866', 'n_tokens_mistral': 722, 'n_tokens_neox': 695, 'n_words': 120}