<commit_before>require 'httpclient'
require 'json'
require 'uri'
require 'rentlinx/default'
require 'rentlinx/modules/property_client_methods'
require 'rentlinx/modules/unit_client_methods'
require 'rentlinx/modules/photo_client_methods'
require 'rentlinx/modules/amenity_client_methods'
require 'rentlinx/modules/link_client_methods'

module Rentlinx
  class Client
    include Rentlinx::PropertyClientMethods
    include Rentlinx::UnitClientMethods
    include Rentlinx::PhotoClientMethods
    include Rentlinx::AmenityClientMethods
    include Rentlinx::LinkClientMethods

    def initialize
      raise Rentlinx::NotConfigured if Rentlinx.username.nil? ||
                                       Rentlinx.password.nil? ||
                                       Rentlinx.site_url.nil?

      @url_prefix = (Rentlinx.site_url + '/').freeze  # Extra slashes are fine
      @api_token ||= authenticate(Rentlinx.username, Rentlinx.password)
    end

    def post(object)
      case object
      when Rentlinx::Property<commit_msg>sc - remove extra space to make rubocop happy<commit_after>require 'httpclient'
require 'json'
require 'uri'
require 'rentlinx/default'
require 'rentlinx/modules/property_client_methods'
require 'rentlinx/modules/unit_client_methods'
require 'rentlinx/modules/photo_client_methods'
require 'rentlinx/modules/amenity_client_methods'
require 'rentlinx/modules/link_client_methods'

module Rentlinx
  class Client
    include Rentlinx::PropertyClientMethods
    include Rentlinx::UnitClientMethods
    include Rentlinx::PhotoClientMethods
    include Rentlinx::AmenityClientMethods
    include Rentlinx::LinkClientMethods

    def initialize
      raise Rentlinx::NotConfigured if Rentlinx.username.nil? ||
                                       Rentlinx.password.nil? ||
                                       Rentlinx.site_url.nil?

      @url_prefix = (Rentlinx.site_url + '/').freeze # Extra slashes are fine
      @api_token ||= authenticate(Rentlinx.username, Rentlinx.password)
    end

    def post(object)
      case object
      when Rentlinx::Property
{'fraction_non_alphanumeric': 0.07810253953042645, 'fraction_numerical': 0.0, 'mean_word_length': 3.43312101910828, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4855292', 'n_tokens_mistral': 632, 'n_tokens_neox': 599, 'n_words': 120}