<commit_before>require "rdw/version"
require "net/http"
require "nokogiri"

module RDW

  class CarInfo

    def initialize(license_plate)
      @license_plate = license_plate
      perform_request!
    end

    def number_of_cylinders
      parse("Aantalcilinders").to_i
    end

    def number_of_seats
      parse("Aantalzitplaatsen").to_i
    end

    def BPM
      parse("BPM").to_i
    end

    def fuel_efficiency_main_road
      parse("Brandstofverbruikbuitenweg").to_f
    end

    def fuel_efficiency_city
      parse("Brandstofverbruikstad").to_f
    end

    def fuel_efficiency_combined
      parse("Brandstofverbruikgecombineerd").to_f
    end

    def cylinder_capacity
      parse("Cilinderinhoud").to_f
    end

    def co2_combined
      parse("CO2uitstootgecombineerd").to_f
    end

    def color
      parse("Eerstekleur")
    end

    def fuel_type
      parse("Hoofdbrandstof")
    end

    def brand
      parse("Merk")
    end

    def energy_label
      parse("Zuinigheidslabel")
    end

    def stock_price
      parse('Catalogusprijs')
    end

    def inspect
      "<RDW::CarInfo license_plate:'#{@license_plate}' brand:'#{brand}' fuel_type:'#{fuel_type}'>"
    end<commit_msg>Handelsbenaming toegevoegd<commit_after>require "rdw/version"
require "net/http"
require "nokogiri"

module RDW

  class CarInfo

    def initialize(license_plate)
      @license_plate = license_plate
      perform_request!
    end

    def number_of_cylinders
      parse("Aantalcilinders").to_i
    end

    def number_of_seats
      parse("Aantalzitplaatsen").to_i
    end

    def BPM
      parse("BPM").to_i
    end

    def fuel_efficiency_main_road
      parse("Brandstofverbruikbuitenweg").to_f
    end

    def fuel_efficiency_city
      parse("Brandstofverbruikstad").to_f
    end

    def fuel_efficiency_combined
      parse("Brandstofverbruikgecombineerd").to_f
    end

    def cylinder_capacity
      parse("Cilinderinhoud").to_f
    end

    def co2_combined
      parse("CO2uitstootgecombineerd").to_f
    end

    def color
      parse("Eerstekleur")
    end

    def fuel_type
      parse("Hoofdbrandstof")
    end

    def brand
      parse("Merk")
    end

    def trade_name
      parse("Handelsbenaming")
    end

    def energy_label
      parse("Zuinigheidslabel")
    end

    def stock_price
      parse('Catalogusprijs')
    end

    def inspect
      "<RDW::CarInfo license_plate:'#{@license_plate}' brand:'#{brand}' fuel_type:'#{fuel_type}'>"
    end
{'fraction_non_alphanumeric': 0.08279742765273312, 'fraction_numerical': 0.001607717041800643, 'mean_word_length': 2.7655068078668683, 'pattern_counts': {'":': 0, '<': 5, '<?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': '2294838', 'n_tokens_mistral': 908, 'n_tokens_neox': 856, 'n_words': 154}