<commit_before>require 'transmogriffy/version'
require 'transmogriffy/lighthouse'
require 'transmogriffy/github'

module Transmogriffy
  class Migrator
    
    def initialize
      @l = Transmogriffy::Lighthouse.new(:lighthouse_export_path => ENV['LIGHTHOUSE_EXPORT_PATH'])
      @g = Transmogriffy::Github.new(:github_token => ENV['GITHUB_TOKEN'], :github_repo => ENV['GITHUB_REPO'])
    end

    def migrate!
      @l.milestones.each do |m|
        @g.create_milestone(m)
      end

      @g.reset_milestones!

      @l.tickets.each do |t|
        @g.create_issue(t)
      end
    end
  end
end<commit_msg>Switching to just export JSON directly.<commit_after>require 'transmogriffy/version'
require 'transmogriffy/lighthouse'
require 'transmogriffy/github'

module Transmogriffy
  class Migrator
    
    def initialize
      @l = Transmogriffy::Lighthouse.new(:lighthouse_path => ENV['LIGHTHOUSE_PATH'])
      @g = Transmogriffy::Github.new(:github_path => ENV['GITHUB_PATH'])
    end

    def migrate!
      @l.milestones.each do |m|
        @g.create_milestone(m)
      end

      @l.tickets.each do |t|
        @g.create_issue(t)
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.11168384879725086, 'fraction_numerical': 0.0, 'mean_word_length': 3.2363636363636363, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 8, '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': '1316039', 'n_tokens_mistral': 451, 'n_tokens_neox': 422, 'n_words': 75}