<commit_before>import React from 'react';
import {  persistStore  } from 'redux-persist';
import { Route,  Switch } from 'react-router-dom';
import NotFoundPage from './components/NotFoundPage';
import Layout from './components/Layout';
import DefaultPage from './containers/DefaultPage';
import BPlaene from './containers/BPlaene';
import Ehrenamt from './containers/Ehrenamt';
import Stadtplan from './containers/Stadtplan';
import Experiments from './containers/Experiments';

import store from './redux/store';
import ReactLoading from 'react-loading';

export default class App extends React.Component {
  constructor() {
    super();
    this.state = { rehydrated: false };
  }

  componentWillMount(){
    persistStore(store,null, () => {
      let thisHere=this;
      setTimeout(()=>{
        thisHere.setState({ rehydrated: true });
      },1);
    });
  }

  render() {
    if (!this.state.rehydrated){
     return (
        <div>
          <main>
            <ReactLoading style={{margin: "auto",width: "30%" , height: "60%", padding: "50px"}} type="spin" color="#444" />
          </main>
        </div>
      );
    } else {
      return (
        <div>
            <main>
              <Route component={Layout}/>
              <Switch>
                <Route exact path="/" component={DefaultPage} />
                <Route exact path="/ehrenamt/:layers?/:offerid?" component={Ehrenamt} />
                <Route exact path="/bplaene/:layers?/:bplannummer?" component={BPlaene} />
                <Route exact path="/stadtplan/:layers?/" component={Stadtplan} />
                <Route exact path="/experiments" component={Experiments}/>
                <Route exact path="/default(/:layers)(/:bplannummer)" component={DefaultPage}/>
                <Route component={NotFoundPage} />
              </Switch><commit_msg>:sparkles: working on #28: add route for kitas<commit_after>import React from 'react';
import {  persistStore  } from 'redux-persist';
import { Route,  Switch } from 'react-router-dom';
import NotFoundPage from './components/NotFoundPage';
import Layout from './components/Layout';
import DefaultPage from './containers/DefaultPage';
import BPlaene from './containers/BPlaene';
import Ehrenamt from './containers/Ehrenamt';
import Stadtplan from './containers/Stadtplan';
import Kitas from './containers/Kitas';
import Experiments from './containers/Experiments';

import store from './redux/store';
import ReactLoading from 'react-loading';

export default class App extends React.Component {
  constructor() {
    super();
    this.state = { rehydrated: false };
  }

  componentWillMount(){
    persistStore(store,null, () => {
      let thisHere=this;
      setTimeout(()=>{
        thisHere.setState({ rehydrated: true });
      },1);
    });
  }

  render() {
    if (!this.state.rehydrated){
     return (
        <div>
          <main>
            <ReactLoading style={{margin: "auto",width: "30%" , height: "60%", padding: "50px"}} type="spin" color="#444" />
          </main>
        </div>
      );
    } else {
      return (
        <div>
            <main>
              <Route component={Layout}/>
              <Switch>
                <Route exact path="/" component={DefaultPage} />
                <Route exact path="/ehrenamt/:layers?/:offerid?" component={Ehrenamt} />
                <Route exact path="/bplaene/:layers?/:bplannummer?" component={BPlaene} />
                <Route exact path="/stadtplan/:layers?/" component={Stadtplan} />
                <Route exact path="/kitas/:layers?/" component={Kitas} />
                <Route exact path="/experiments" component={Experiments}/>
                <Route exact path="/default(/:layers)(/:bplannummer)" component={DefaultPage}/>
                <Route component={NotFoundPage} />
              </Switch>
{'fraction_non_alphanumeric': 0.1544907043728725, 'fraction_numerical': 0.005760670332547788, 'mean_word_length': 2.5767790262172285, 'pattern_counts': {'":': 0, '<': 38, '<?xml version=': 0, '>': 42, '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': '1614350', 'n_tokens_mistral': 1098, 'n_tokens_neox': 1095, 'n_words': 256}