<commit_before>import React from 'react';
import modules from 'ui/modules';
import { createStore, applyMiddleware } from 'redux';
import thunk from 'redux-thunk';

import rootReducer from './reducers';
import initialData from './initial_data';
import _ from 'lodash';

const app = modules.get('apps/kibana-react-d3-app');

app.service('$store', (kbnVersion, basePath) => {

  // Set the defaults from Kibana plugin
  initialData.app.kbnVersion = kbnVersion;
  initialData.app.basePath = basePath;
  initialData.counter_state = 0;

  const store = createStore(
    rootReducer
  );
  console.log(store.getState())

  return store;
});<commit_msg>ok for counter<commit_after>import React from 'react';
import modules from 'ui/modules';
import { createStore, applyMiddleware } from 'redux';
import thunk from 'redux-thunk';

import rootReducer from './reducers';
import initialData from './initial_data';
import _ from 'lodash';

const app = modules.get('apps/kibana-react-d3-app');

app.service('$store', (kbnVersion, basePath) => {

  // Set the defaults from Kibana plugin
  initialData.app.kbnVersion = kbnVersion;
  initialData.app.basePath = basePath;

  const store = createStore(
    rootReducer
  );
  console.log(store.getState())

  return store;
});
{'fraction_non_alphanumeric': 0.12957074721780604, 'fraction_numerical': 0.0023847376788553257, 'mean_word_length': 4.6968325791855206, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '6485880', 'n_tokens_mistral': 413, 'n_tokens_neox': 399, 'n_words': 106}