<commit_before>import React from 'react'
import { translate } from '../helpers/I18n'
import classNames from 'classnames'

import styles from './styles'

// === Component Options ===
// loadingType = message type from locale [string] (default: '')
// middle      = Component is centered both vertically & horizontally [bool] (default: false)
// noMargin    = Component has no margin [bool] (default: false)
// color       = Color of the spinner (available colors: blue, grey, white, red) [string] (default: 'blue')
// size        = Size of the spinner (available sizes: tiny, small, medium, large, xlarge, xxlarge) [string] (default: 'medium')

export const Spinner = ({ t, loadingType, middle, noMargin, color, size }) => {
  return (
    <div
      className={classNames(
        styles['coz-spinner'], {
          [styles['coz-spinner--middle']]: middle,
          [styles['coz-spinner--no-margin']]: noMargin,
          [styles[`coz-spinner--${color}`]]: color,
          [styles[`coz-spinner--${size}`]]: size
        }
      )}
    >
      {loadingType && <p>{t(`loading.${loadingType}`)}</p>}
    </div>
  )
}

export default translate()(Spinner)
<commit_msg>chore: removed useless comments<commit_after>import React from 'react'
import { translate } from '../helpers/I18n'
import classNames from 'classnames'

import styles from './styles'

export const Spinner = ({ t, loadingType, middle, noMargin, color, size }) => {
  return (
    <div
      className={classNames(
        styles['coz-spinner'], {
          [styles['coz-spinner--middle']]: middle,
          [styles['coz-spinner--no-margin']]: noMargin,
          [styles[`coz-spinner--${color}`]]: color,
          [styles[`coz-spinner--${size}`]]: size
        }
      )}
    >
      {loadingType && <p>{t(`loading.${loadingType}`)}</p>}
    </div>
  )
}

export default translate()(Spinner)

{'fraction_non_alphanumeric': 0.17339795368874528, 'fraction_numerical': 0.002154011847065159, 'mean_word_length': 3.056768558951965, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 13, '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': '7522301', 'n_tokens_mistral': 579, 'n_tokens_neox': 583, 'n_words': 146}