<commit_before>import React from "react"
import {render} from "react-dom"
import {Provider} from "react-redux"

import {Application} from "@lacqueristas/ui"
import * as signals from "@lacqueristas/signals"
import environment from "./environment"
import redux from "./redux"
import history from "./history"
import sdk from "./sdk"

window.env = environment(
  [...document.querySelectorAll("meta[type='environment']")]
)

sdk()
  .then((client: HSDKClienType): ReduxStoreType => redux({
    client,
    history,
  }))
  .then((store: ReduxStoreType): ReduxStoreType => {
    history.listen(function locationChange (next: LocationType, action: HistoryActionType): any {
      if (action !== "PUSH") {
        return store.dispatch(signals.updateNavigation(next))
      }

      return null
    })

    return store
  })
  .then((store: ReduxStoreType): ReduxStoreType => {
    setInterval((): any => store.dispatch(signals.refreshResources()), 25000)

    store.dispatch(signals.refreshResources())

    return store
  })
  .then((store: ReduxStoreType): ReduxStoreType => {
    return render(
      <Provider store={store}>
        <Application signals={signals} />
      </Provider>,
      document.getElementById("application")
    )
  })<commit_msg>:ram:<commit_after>import React from "react"
import {render} from "react-dom"
import {Provider} from "react-redux"

import {Application} from "@lacqueristas/ui"
import * as signals from "@lacqueristas/signals"
import environment from "./environment"
import redux from "./redux"
import history from "./history"
import sdk from "./sdk"

const REFRESH_WAIT_TIME = 25000

window.env = environment(
  [...document.querySelectorAll("meta[type='environment']")]
)

sdk()
  .then((client: HSDKClienType): ReduxStoreType => redux({
    client,
    history,
  }))
  .then((store: ReduxStoreType): ReduxStoreType => {
    history.listen(function locationChange (next: LocationType, action: HistoryActionType): any {
      if (action !== "PUSH") {
        return store.dispatch(signals.updateNavigation(next))
      }

      return null
    })

    return store
  })
  .then((store: ReduxStoreType): ReduxStoreType => {
    setInterval((): any => store.dispatch(signals.refreshResources()), REFRESH_WAIT_TIME)

    store.dispatch(signals.refreshResources())

    return store
  })
  .then((store: ReduxStoreType): ReduxStoreType => {
    return render(
      <Provider store={store}>
        <Application signals={signals} />
      </Provider>,
      document.getElementById("application")
    )
  })
{'fraction_non_alphanumeric': 0.14218196140212683, 'fraction_numerical': 0.003938558487593541, 'mean_word_length': 3.9034749034749034, 'pattern_counts': {'":': 0, '<': 9, '<?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': '4190123', 'n_tokens_mistral': 766, 'n_tokens_neox': 743, 'n_words': 177}