<commit_before>require 'spec_helper'
describe 'ApiNumbering section tests' do
  it 'ApiNumbering | GetClassType method' do
    docx = DocBuilderWrapper.new.build_doc_and_parse('asserts/js/docx/smoke/ApiNumbering/getclasstype.js')
    expect(docx.elements.last.character_style_array.first.text).to eq('Class Type = numbering')
  end

  it 'ApiNumbering | GetLevel method' do
    docx = DocBuilderWrapper.new.build_doc_and_parse('asserts/js/docx/smoke/ApiNumbering/getlevel.js')
    docx.elements[1..docx.elements.size].each_with_index do |current_element, index|
      expect(current_element.character_style_array.first.text).to eq("Default bullet lvl #{index + 1}")
      expect(current_element.numbering.ilvl).to eq(index.to_s)
    end<commit_msg>One more fix for numbering<commit_after>require 'spec_helper'
describe 'ApiNumbering section tests' do
  it 'ApiNumbering | GetClassType method' do
    docx = DocBuilderWrapper.new.build_doc_and_parse('asserts/js/docx/smoke/ApiNumbering/getclasstype.js')
    expect(docx.elements.last.character_style_array.first.text).to eq('Class Type = numbering')
  end

  it 'ApiNumbering | GetLevel method' do
    docx = DocBuilderWrapper.new.build_doc_and_parse('asserts/js/docx/smoke/ApiNumbering/getlevel.js')
    docx.elements[1..docx.elements.size].each_with_index do |current_element, index|
      expect(current_element.character_style_array.first.text).to eq("Default bullet lvl #{index + 1}")
      expect(current_element.numbering.ilvl).to eq(index)
    end
{'fraction_non_alphanumeric': 0.11236702127659574, 'fraction_numerical': 0.0026595744680851063, 'mean_word_length': 5.2190082644628095, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7374408', 'n_tokens_mistral': 508, 'n_tokens_neox': 503, 'n_words': 81}