<commit_before>require 'trello'
require 'json'
module Yello

  class << self
    def trello
      Yello::Trello.new(Yello::Auth.get)
    end
  end

  class Trello
    attr_reader :client 

    def initialize(auth)
      @client = ::Trello::Client.new( 
                                     developer_public_key: auth.key,
                                     member_token: auth.token)
    end

    def create(name, lists, options=create_options)
      board = client.create(:boards, 'name'=>name)
      unless options[:merge]
        board.lists.each{|l|
          l.closed = true
          l.save
        } 
      end

      lists.reverse.each do |l|
        list = client.create(:list, l.attributes.merge('idBoard'=>board.id))
        l.cards.each do |c|
          card = client.create(:card, c.attributes.merge('idList'=>list.id))
          c.checklists.each do |cl|
            checklist = client.find(:checklist, JSON.parse(card.create_new_checklist(cl.name))['id'])
            cl.items.each do |i|
              checklist.add_item(i) 
            end
          end 
        end
      end
    end
<commit_msg>Get rid of currently useless options<commit_after>require 'trello'
require 'json'
module Yello

  class << self
    def trello
      Yello::Trello.new(Yello::Auth.get)
    end
  end

  class Trello
    attr_reader :client 

    def initialize(auth)
      @client = ::Trello::Client.new( 
                                     developer_public_key: auth.key,
                                     member_token: auth.token)
    end

    def create(name, lists)
      board = client.create(:boards, 'name'=>name)
      board.lists.each do |l|
        l.closed = true
        l.save
      end

      lists.reverse.each do |l|
        list = client.create(:list, l.attributes.merge('idBoard'=>board.id))
        l.cards.each do |c|
          card = client.create(:card, c.attributes.merge('idList'=>list.id))
          c.checklists.each do |cl|
            checklist = client.find(:checklist, JSON.parse(card.create_new_checklist(cl.name))['id'])
            cl.items.each do |i|
              checklist.add_item(i) 
            end
          end 
        end
      end
    end

{'fraction_non_alphanumeric': 0.11299176578225069, 'fraction_numerical': 0.0, 'mean_word_length': 1.7509433962264151, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2087064', 'n_tokens_mistral': 683, 'n_tokens_neox': 652, 'n_words': 138}