<commit_before>import { initializeOptions } from './url'
import { initializeSliders, resizeSliders } from './sliders'
import { initializeShapes } from './shapes'
import { initializeColors } from './colors'


function ready() {
  const options = initializeOptions()
  initializeSliders(options)
  initializeShapes(options)
  initializeColors(options)

  window.addEventListener('resize', resizeSliders)
}

if (document.readyState !== 'loading') {
  ready()
} else {
  document.addEventListener('DOMContentLoaded', ready)
}<commit_msg>Made ready run after CSS is loaded.<commit_after>import { initializeOptions } from './url'
import { initializeSliders, resizeSliders } from './sliders'
import { initializeShapes } from './shapes'
import { initializeColors } from './colors'


function ready() {
  const options = initializeOptions()
  initializeSliders(options)
  initializeShapes(options)
  initializeColors(options)

  window.addEventListener('resize', resizeSliders)
}

if (document.readyState === 'complete') {
  ready()
} else {
  window.addEventListener('load', ready)
}
{'fraction_non_alphanumeric': 0.12558139534883722, 'fraction_numerical': 0.0, 'mean_word_length': 5.560975609756097, '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': '5644261', 'n_tokens_mistral': 296, 'n_tokens_neox': 289, 'n_words': 74}