<commit_before>/* global window, document, fetch */
import React from 'react';
import ReactDOM from 'react-dom';
import { Router, hashHistory } from 'react-router';
import { Members, Provider as CoreProvider, Core } from 'oicr-ui-core';

const { transformJSON } = Members.helpers;

// Load store.
const store = require('../site/store').default;

const client = Core.initApolloClient(true, store);

// Render Members
const targetMembers = document.getElementById('app-members');

if (targetMembers) {
    // Check if static data is provided
    const staticMembers = transformJSON(
        targetMembers.getAttribute('data-members')
    );

    if (staticMembers) {
        store.dispatch({ type: 'RECEIVE_MEMBERS', staticMembers });
    }

    ReactDOM.render(
        <CoreProvider store={store} client={client}>
            <Router history={hashHistory}>
                <Members.BaseRoutes isStatic={!!staticMembers} />
            </Router>
        </CoreProvider>,
        targetMembers
    );
}<commit_msg>Members fix<commit_after>/* global window, document, fetch */
import React from 'react';
import ReactDOM from 'react-dom';
import { Router, hashHistory } from 'react-router';
import { Members, Provider as CoreProvider, Core } from 'oicr-ui-core';

const { transformJSON } = Members.helpers;

// Load store.
const store = require('../site/store').default;

const client = Core.initApolloClient(true, store);

// Render Members
const targetMembers = document.getElementById('app-members');

if (targetMembers) {
    // Check if static data is provided
    const staticMembers = transformJSON(
        targetMembers.getAttribute('data-members')
    );

    if (staticMembers) {
        store.dispatch({ type: 'RECEIVE_MEMBERS', data: staticMembers });
    }

    ReactDOM.render(
        <CoreProvider store={store} client={client}>
            <Router history={hashHistory}>
                <Members.BaseRoutes isStatic={!!staticMembers} />
            </Router>
        </CoreProvider>,
        targetMembers
    );
}
{'fraction_non_alphanumeric': 0.128698224852071, 'fraction_numerical': 0.0, 'mean_word_length': 3.2182952182952183, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '7626580', 'n_tokens_mistral': 556, 'n_tokens_neox': 552, 'n_words': 146}