<commit_before>import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import NotificationCenter from '../component/notification-center';
import createStore from '../store/create';
import { addNotifications } from '../actions';
import {exampleStyle as style} from './style'
// Create the global redux store.
const store = createStore();

// Initial store population
const mockNotifs = [
    {title: 'TITRE', content: 'CONTENT ...', date: new Date().toISOString(), type: 'info', author: '<EMAIL>'},
    {title: 'TITRE 2', content: 'CONTENT 2 ...', date: new Date().toISOString(), type: 'info', author: '<EMAIL>'},
    {title: 'TITRE 3', content: 'CONTENT 3 ...', date: new Date().toISOString(), type: 'info', author: '<EMAIL>'}
];
//store.dispatch(addNotifications(mockNotifs));

// Create the react component when the DOM is loaded.
document.addEventListener('DOMContentLoaded', (event) => {
    const rootElement = document.getElementById('root');
    // The child must be wrapped in a function
    // to work around an issue in React 0.13.
    ReactDOM.render(
        <Provider store={store}>
            <div style={style}><NotificationCenter hasAddNotif={false} /></div>
        </Provider>,
    rootElement);
});<commit_msg>[layout] Add an example layout with a bar<commit_after>import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import NotificationCenter from '../component/notification-center';
import createStore from '../store/create';
import { addNotifications, openCenter } from '../actions';
import {exampleStyle as style} from './style'
// Create the global redux store.
const store = createStore();

// Initial store population
const mockNotifs = [
    {title: 'TITRE', content: 'CONTENT ...', date: new Date().toISOString(), type: 'info', author: '<EMAIL>'},
    {title: 'TITRE 2', content: 'CONTENT 2 ...', date: new Date().toISOString(), type: 'info', author: '<EMAIL>'},
    {title: 'TITRE 3', content: 'CONTENT 3 ...', date: new Date().toISOString(), type: 'info', author: '<EMAIL>'}
];
//store.dispatch(addNotifications(mockNotifs));

// Create the react component when the DOM is loaded.
document.addEventListener('DOMContentLoaded', (event) => {
    const rootElement = document.getElementById('root');
    // The child must be wrapped in a function
    // to work around an issue in React 0.13.
    ReactDOM.render(
            <div className='mdl-layout  mdl-layout--fixed-header'>
            <header className='mdl-layout__header'>
            <div className='mdl-layout__header-row'>
              <span className='mdl-layout-title'>Title</span>
              <div className='mdl-layout-spacer'></div>
              <nav className='mdl-navigation mdl-layout--large-screen-only'>
                <a className='mdl-navigation__link' href=''>Link</a>
                <a className='mdl-navigation__link' href=''>Link</a>
                <a className='mdl-navigation__link' href=''>Link</a>
                <Provider store={store}><NotificationCenter hasAddNotif={false} /></Provider>
              </nav>

            </div>
            </header>
            <div className='mdl-layout__drawer'>
            <span className='mdl-layout-title'>Title</span>
            <nav className='mdl-navigation'>
              <a className='mdl-navigation__link' href=''>Link</a>
              <a className='mdl-navigation__link' href=''>Link</a>
              <a className='mdl-navigation__link' href=''>Link</a>
              <a className='mdl-navigation__link' href=''>Link</a>
            </nav>
            </div>
            <main className='mdl-layout__content'>
            <div className='page-content'>APPLICATION CONTENT</div>
            </main>
            </div>,
    rootElement);
});
{'fraction_non_alphanumeric': 0.16106148187073044, 'fraction_numerical': 0.0036784025223331584, 'mean_word_length': 3.0979547900968782, 'pattern_counts': {'":': 0, '<': 53, '<?xml version=': 0, '>': 55, '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': '6498839', 'n_tokens_mistral': 1087, 'n_tokens_neox': 1062, 'n_words': 298}