<commit_before>import '@src/styles/main.scss';
import React from 'react';
import { render } from 'react-dom';
import { hashHistory } from 'react-router';
import { syncHistoryWithStore } from 'react-router-redux';
import { Root } from '@src/containers';
import configureStore from '@src/redux/configureStore';

window.backendUrl = 'http://localhost:3001/api';
window.tokenName = '<PASSWORD>';

const store = configureStore();

const history = syncHistoryWithStore(hashHistory, store);

render(
    <Root store={store} history={history} />,
    document.getElementById('root')
);<commit_msg>use the right backend url when in production<commit_after>import '@src/styles/main.scss';
import React from 'react';
import { render } from 'react-dom';
import { hashHistory } from 'react-router';
import { syncHistoryWithStore } from 'react-router-redux';
import { Root } from '@src/containers';
import configureStore from '@src/redux/configureStore';

window.backendUrl = (process.env.NODE_ENV === 'production') ? '/' : 'http://localhost:3001/api';
window.tokenName = '<PASSWORD>';

const store = configureStore();

const history = syncHistoryWithStore(hashHistory, store);

render(
    <Root store={store} history={history} />,
    document.getElementById('root')
);
{'fraction_non_alphanumeric': 0.15274463007159905, 'fraction_numerical': 0.006364359586316627, 'mean_word_length': 5.8, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '1832024', 'n_tokens_mistral': 368, 'n_tokens_neox': 363, 'n_words': 93}