<commit_before>// @flow weak

import { AppContainer } from 'react-hot-loader';
import { createStore } from 'redux';
import { Provider } from 'react-redux';
import React from 'react';
import ReactPerf from 'react-addons-perf';
import { render } from 'react-dom';
import App from 'docs/site/src/components/App';

// Warns about potential accessibility issues with your React elements.
//
// import a11y from 'react-a11y';
// if (process.env.NODE_ENV !== 'production') {
//   a11y(React, { includeSrcNode: true, ReactDOM });
// }

window.Perf = ReactPerf;

const docs = (state = { dark: true }, action) => {
  if (action.type === 'TOGGLE_THEME_SHADE') {
    return {
      ...state,
      dark: !state.dark,
    };
  }
  return state;
};

export const store = createStore(docs);
<commit_msg>import createStore from store folder/move theme reducer to separate file<commit_after>// @flow weak

import { AppContainer } from 'react-hot-loader';
import { Provider } from 'react-redux';
import React from 'react';
import ReactPerf from 'react-addons-perf';
import { render } from 'react-dom';
import createStore from 'docs/site/src/store/createStore';
import App from 'docs/site/src/components/App';

// Warns about potential accessibility issues with your React elements.
//
// import a11y from 'react-a11y';
// if (process.env.NODE_ENV !== 'production') {
//   a11y(React, { includeSrcNode: true, ReactDOM });
// }

window.Perf = ReactPerf;

export const store = createStore();

{'fraction_non_alphanumeric': 0.14547926580557444, 'fraction_numerical': 0.008157715839564922, 'mean_word_length': 3.9395973154362416, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '4701556', 'n_tokens_mistral': 475, 'n_tokens_neox': 465, 'n_words': 138}