<commit_before># frozen_string_literal: true

require 'spec_helper'
require 'i18n/tasks/commands'

RSpec.describe 'Google Translation' do
  nil_value_test = ['nil-value-key', nil, nil]
  text_test      = ['key', "Hello - %{user} O'Neill!", "Hola - %{user} ¡O'Neill!"]
  html_test      = ['html-key.html', "Hello - <b>%{user} O'neill</b>", "Hola - <b>%{user} O'neill</b>"]
  html_test_plrl = ['html-key.html.one', '<b>Hello %{count}</b>', '<b>Hola %{count}</b>']
  array_test     = ['array-key', ['Hello.', nil, '', 'Goodbye.'], ['Hola.', nil, '', 'Adiós.']]
  fixnum_test    = ['numeric-key', 1, 1]
  ref_key_test   = ['ref-key', :reference, :reference]

  describe 'real world test' do<commit_msg>Update google_translate_spec.rb<commit_after># frozen_string_literal: true

require 'spec_helper'
require 'i18n/tasks/commands'

RSpec.describe 'Google Translation' do
  nil_value_test = ['nil-value-key', nil, nil]
  text_test      = ['key', "Hello - %{user} O'Neill!", "Hola - %{user} O'Neill!"]
  html_test      = ['html-key.html', "Hello - <b>%{user} O'neill</b>", "Hola - <b>%{user} O'neill</b>"]
  html_test_plrl = ['html-key.html.one', '<b>Hello %{count}</b>', '<b>Hola %{count}</b>']
  array_test     = ['array-key', ['Hello.', nil, '', 'Goodbye.'], ['Hola.', nil, '', 'Adiós.']]
  fixnum_test    = ['numeric-key', 1, 1]
  ref_key_test   = ['ref-key', :reference, :reference]

  describe 'real world test' do
{'fraction_non_alphanumeric': 0.23213021939136588, 'fraction_numerical': 0.005661712668082095, 'mean_word_length': 4.256505576208179, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, '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': '2949331', 'n_tokens_mistral': 568, 'n_tokens_neox': 546, 'n_words': 116}