<commit_before>require 'json'
require 'httmultiparty'
require 'logger'

module Marmot
  class Client
    include HTTMultiParty

    base_uri 'www.fontsquirrel.com'
    attr_accessor :logger
    attr_reader   :params
    @@headers_set = false

    def initialize
      logger = ::Logger.new("/dev/null")
      logger.close
    end

    # Convert a font file to a webfont kit
    #
    # @param [String] input_io Input IO. Examples: File.new("font.ttf"), STDOUT
    #
    # @param [Hash] options Options
    #
    # @option options 
    #   [String]   :output_io          
    #   Output IO
    #   Default is a File with the name like "webfontkit-20130312-200144.zip"
    #
    # @option options <commit_msg>Support logger on Windows support<commit_after>require 'json'
require 'httmultiparty'
require 'logger'

module Marmot
  class Client
    include HTTMultiParty

    base_uri 'www.fontsquirrel.com'
    attr_accessor :logger
    attr_reader   :params
    @@headers_set = false

    def initialize
      logger = ::Logger.new(STDOUT)
      logger.close
    end

    # Convert a font file to a webfont kit
    #
    # @param [String] input_io Input IO. Examples: File.new("font.ttf"), STDOUT
    #
    # @param [Hash] options Options
    #
    # @option options 
    #   [String]   :output_io          
    #   Output IO
    #   Default is a File with the name like "webfontkit-20130312-200144.zip"
    #
    # @option options 
{'fraction_non_alphanumeric': 0.08957312806158152, 'fraction_numerical': 0.01959412176347096, 'mean_word_length': 2.4793187347931873, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '2184141', 'n_tokens_mistral': 488, 'n_tokens_neox': 458, 'n_words': 130}