<commit_before>/**
 * Copyright (c) 2015 - 2017 <NAME> <<EMAIL>>
 */

require('es6-promise').polyfill(); // required for redux-form

import React    from "react";
import ReactDOM from "react-dom";
import App      from "./components/App";
import store    from "./Store";
import Actions  from "./Actions";
import route    from "./route";
import mapConst from "./constants/Map"

import { Provider, connect } from "react-redux";

if (__DEVELOPMENT__) {
  window.React = React;
  // const { whyDidYouUpdate } = require('why-did-you-update');
  // whyDidYouUpdate(React);
}

// listen for back button, forward button, URL change etc.
window.onpopstate = route;

const ConnectedApp = connect((s) => s)(App);

const rootElement = document.querySelector('#app');

// inject the 'dispatch' method and the state
const Wrapper = <Provider store = {store} ><ConnectedApp /></Provider>;

if(window.location.hash == ""){
  store.dispatch(Actions.showMenu());
}

// read the hash url and navigate to the right page
store.dispatch(Actions.updateStateFromURL);
route();
store.dispatch(Actions.setZoom(mapConst.DEFAULT_ZOOM));

ReactDOM.render(Wrapper, rootElement);<commit_msg>fix(routing): zoom in correctly when routing to entry<commit_after>/**
 * Copyright (c) 2015 - 2017 <NAME> <<EMAIL>>
 */

require('es6-promise').polyfill(); // required for redux-form

import React    from "react";
import ReactDOM from "react-dom";
import App      from "./components/App";
import store    from "./Store";
import Actions  from "./Actions";
import route    from "./route";
import mapConst from "./constants/Map"

import { Provider, connect } from "react-redux";

if (__DEVELOPMENT__) {
  window.React = React;
  // const { whyDidYouUpdate } = require('why-did-you-update');
  // whyDidYouUpdate(React);
}

// listen for back button, forward button, URL change etc.
window.onpopstate = route;

const ConnectedApp = connect((s) => s)(App);

const rootElement = document.querySelector('#app');

// inject the 'dispatch' method and the state
const Wrapper = <Provider store = {store} ><ConnectedApp /></Provider>;

if(window.location.hash == ""){
  store.dispatch(Actions.showMenu());
}

// read the hash url and navigate to the right page
store.dispatch(Actions.updateStateFromURL);
store.dispatch(Actions.setZoom(mapConst.DEFAULT_ZOOM));
route();

ReactDOM.render(Wrapper, rootElement);
{'fraction_non_alphanumeric': 0.1522476675148431, 'fraction_numerical': 0.007633587786259542, 'mean_word_length': 4.435483870967742, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 17, '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': '5776713', 'n_tokens_mistral': 724, 'n_tokens_neox': 707, 'n_words': 208}