<commit_before>import React from 'react'
import ReactDOM from 'react-dom'
import {Provider} from 'react-redux'
import {addLocaleData} from 'react-intl'
import {IntlProvider} from 'react-intl-redux'
import consoleLogger from '../consoleLogger'
import _union from 'lodash/union'

import de from 'react-intl/locale-data/de'
import en from 'react-intl/locale-data/en'
import fr from 'react-intl/locale-data/fr'
import it from 'react-intl/locale-data/it'

import {LoadMask} from 'tocco-ui'

import storeFactory from '../storeFactory'
import intl from '../intl'
import errorLogging from '../errorLogging'

export const createStore = (reducers, sagas, input, name, handleErrors, emitAction) => {
  const initialState = getIntialState(input)
  return storeFactory.createStore(initialState, reducers, sagas, name, handleErrors, emitAction)
}

export const createApp = (name,
                          content,
                          store,
                          {
                            input = {},
                            actions = undefined,
                            publicPath = undefined,
                            textResourceModules = []
                          }) => {
  try {
    if (publicPath) {
      setWebpacksPublicPath(publicPath)
    }

    if (actions) {
      dispatchActions(actions, store)
    }

    const initIntlPromise = setupIntl(input, store, name, textResourceModules)
    const component = getAppComponent(store, initIntlPromise, name, content)

    return {
      renderComponent: () => component,
      store,
      methods: {
        setLocale: locale => intl.setLocale(store, name, locale)
      }
    }
  } catch (error) {<commit_msg>refactor(tocco-util): remove unused params<commit_after>import React from 'react'
import ReactDOM from 'react-dom'
import {Provider} from 'react-redux'
import {addLocaleData} from 'react-intl'
import {IntlProvider} from 'react-intl-redux'
import consoleLogger from '../consoleLogger'
import _union from 'lodash/union'

import de from 'react-intl/locale-data/de'
import en from 'react-intl/locale-data/en'
import fr from 'react-intl/locale-data/fr'
import it from 'react-intl/locale-data/it'

import {LoadMask} from 'tocco-ui'

import storeFactory from '../storeFactory'
import intl from '../intl'
import errorLogging from '../errorLogging'

export const createStore = (reducers, sagas, input, name) => {
  const initialState = getIntialState(input)
  return storeFactory.createStore(initialState, reducers, sagas, name)
}

export const createApp = (name,
                          content,
                          store,
                          {
                            input = {},
                            actions = undefined,
                            publicPath = undefined,
                            textResourceModules = []
                          }) => {
  try {
    if (publicPath) {
      setWebpacksPublicPath(publicPath)
    }

    if (actions) {
      dispatchActions(actions, store)
    }

    const initIntlPromise = setupIntl(input, store, name, textResourceModules)
    const component = getAppComponent(store, initIntlPromise, name, content)

    return {
      renderComponent: () => component,
      store,
      methods: {
        setLocale: locale => intl.setLocale(store, name, locale)
      }
    }
  } catch (error) {
{'fraction_non_alphanumeric': 0.10242587601078167, 'fraction_numerical': 0.0, 'mean_word_length': 2.3433433433433435, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '3100268', 'n_tokens_mistral': 942, 'n_tokens_neox': 932, 'n_words': 245}