<commit_before>require 'nokogiri'
require 'mechanize'
require_relative 'kindle/highlight'
require_relative 'kindle/reader'

module Kindle

  class Kindle
    include Nokogiri
    
    KINDLE_URL = 'http://kindle.amazon.com'

    attr_reader :agent, :current_page, :asins, :highlights

    def initialize(options = {:login => nil, :password => nil})
      @highlights = [] 
      @current_offset = 25
      @current_highlights = 1
      @current_upcoming = []
      options.each_pair { |k,v| instance_variable_set("@#{k}", v) }
      @agent = Mechanize.new
      @agent.redirect_ok = true
      @agent.user_agent_alias = 'Windows IE 7'
    end

    def get_kindle_highlights
      reader = Reader.new(login: @login, password: @password)
      reader.get_kindle_highlights
    end

  end


end<commit_msg>Cleanup.<commit_after>require 'nokogiri'
require 'mechanize'
require_relative 'kindle/highlight'
require_relative 'kindle/reader'

module Kindle

  class Kindle

    include Nokogiri
    
    def initialize(options = {})
      options.each_pair { |k,v| instance_variable_set("@#{k}", v) }
    end

    def get_kindle_highlights
      reader = Reader.new(login: @login, password: @password)
      reader.get_kindle_highlights
    end

  end

end
{'fraction_non_alphanumeric': 0.10585404971932638, 'fraction_numerical': 0.0032076984763432237, 'mean_word_length': 3.3636363636363638, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '3569949', 'n_tokens_mistral': 428, 'n_tokens_neox': 407, 'n_words': 88}