<commit_before># frozen_string_literal: true
require 'httparty'

module Watson
  class ToneAnalyzer
    def initialize(username, password, version = 'v3',
      version_date = '2016-05-19')
      @username = username
      @password = password
      @url = "https://gateway.watsonplatform.net/tone-analyzer/api" \
        "/#{version}/tone?version=#{version_date}"
    end

    def tone(options = {})
      HTTParty.post(
        @url,<commit_msg>neat fix<commit_after># frozen_string_literal: true
require 'httparty'

module Watson
  class ToneAnalyzer
    def initialize(
        username, password, version = 'v3', version_date = '2016-05-19'
      )
      @username = username
      @password = password
      @url = 'https://gateway.watsonplatform.net/tone-analyzer/api' \
        "/#{version}/tone?version=#{version_date}"
    end

    def tone(options = {})
      HTTParty.post(
        @url,
{'fraction_non_alphanumeric': 0.12903225806451613, 'fraction_numerical': 0.020022246941045607, 'mean_word_length': 2.8793103448275863, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '4483076', 'n_tokens_mistral': 298, 'n_tokens_neox': 281, 'n_words': 57}