<commit_before>/* eslint-env browser */
import { merge } from 'ramda';
import React from 'react';
import ReactDOM from 'react-dom';
import { Root, initialState } from 'xod-client';
import App from './view/containers/App';

import settingsReducer from './settings/reducer';
import projectsReducer from './projects/reducer';

const extraReducers = {
  settings: settingsReducer,
  projects: projectsReducer,
};

const electronInitialState = merge(initialState, {
  editor: merge(initialState.editor, {
    currentPatchPath: null,
    tabs: {},
  }),
});

ReactDOM.render(
  <Root
    extraReducers={extraReducers}
    initialState={electronInitialState}
  >
    <App />
  </Root>,
  document.getElementById('root')
);<commit_msg>fix(xod-client-electron): revert disabling of opened tab on IDE launch (there is a lot of work)<commit_after>/* eslint-env browser */
import React from 'react';
import ReactDOM from 'react-dom';
import { Root, initialState } from 'xod-client';
import App from './view/containers/App';

import settingsReducer from './settings/reducer';
import projectsReducer from './projects/reducer';

const extraReducers = {
  settings: settingsReducer,
  projects: projectsReducer,
};

ReactDOM.render(
  <Root
    extraReducers={extraReducers}
    initialState={initialState} // TODO: Remove project and opened patch when possible
  >
    <App />
  </Root>,
  document.getElementById('root')
);
{'fraction_non_alphanumeric': 0.12916962384669978, 'fraction_numerical': 0.0, 'mean_word_length': 4.595238095238095, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '5889052', 'n_tokens_mistral': 433, 'n_tokens_neox': 419, 'n_words': 116}