<commit_before>window.ReactLoadingIndicator = React.createBackboneClass
  displayName: 'ReactLoadingIndicator'
  changeOptions: 'sync request'

  render: ->
    if !@model() || @model().loading()
      _img ['ajax-loader', src: Factlink.Global.ajax_loader_image]
    else
      _span()<commit_msg>Allow empty state in loading indicator<commit_after>window.ReactLoadingIndicator = React.createBackboneClass
  displayName: 'ReactLoadingIndicator'
  changeOptions: 'sync request'

  render: ->
    if !@model() || @model().loading()
      _img ['ajax-loader', src: Factlink.Global.ajax_loader_image]
    else if @model().length > 0
      _span()
    else
      @props.children || _span()
{'fraction_non_alphanumeric': 0.12719298245614036, 'fraction_numerical': 0.0014619883040935672, 'mean_word_length': 4.1893939393939394, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, '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': '6957755', 'n_tokens_mistral': 205, 'n_tokens_neox': 207, 'n_words': 44}