<commit_before>import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore } from 'redux';
import 'bootstrap/dist/css/bootstrap.css';
import moment from 'moment';
import registerServiceWorker from './registerServiceWorker';
import AppConnected from './App/AppConnected';
import appReducer from './App/appReducer';
import { setHighestMezicasId } from './Mezicasy/MezicasyActions';
import './index.css';

const preloadedState = {
  startujici: [
    { id: 0, cislo: 7, dokonceno: null },
    { id: 1, cislo: 4, dokonceno: null },
    { id: 10, cislo: 16, dokonceno: true, duration: moment.duration('PT0H4M32.45S') },
    { id: 2, cislo: 25, dokonceno: false },
    { id: 3, cislo: 9, dokonceno: true, duration: moment.duration('PT0H17M29.14S') },
    { id: 12, cislo: 15, dokonceno: true, duration: moment.duration('PT0H9M59.01S') },
    { id: 9, cislo: 1, dokonceno: false },
    { id: 29, cislo: 8, dokonceno: null },
    { id: 5, cislo: 59, dokonceno: null },
    { id: 11, cislo: 43, dokonceno: null },
    { id: 18, cislo: 42, dokonceno: false },
    { id: 10, cislo: 33, dokonceno: true, duration: moment.duration('PT0H3M22.45S') },
    { id: 7, cislo: 21, dokonceno: false },
    { id: 13, cislo: 24, dokonceno: true, duration: moment.duration('PT0H3M14.15S') },
    { id: 34, cislo: 25, dokonceno: null },
    { id: 14, cislo: 22, dokonceno: null },
    { id: 58, cislo: 30, dokonceno: null },
    { id: 15, cislo: 23, dokonceno: true, duration: moment.duration('PT0H2M42.38S') },
    { id: 59, cislo: 26, dokonceno: null }
  ]
};

let highestId = 0;
if (preloadedState.mezicasy) {
  preloadedState.mezicasy.forEach(mezicas => {
    if (mezicas.id > highestId) {
      highestId = mezicas.id;
    }
  });
}
setHighestMezicasId(highestId);<commit_msg>Initial state constains only startující na trase, no mezičas.<commit_after>import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore } from 'redux';
import 'bootstrap/dist/css/bootstrap.css';
import registerServiceWorker from './registerServiceWorker';
import AppConnected from './App/AppConnected';
import appReducer from './App/appReducer';
import { setHighestMezicasId } from './Mezicasy/MezicasyActions';
import './index.css';

const preloadedState = {
  startujici: [
    { id: 0, cislo: 7, dokonceno: null },
    { id: 1, cislo: 4, dokonceno: null },
    { id: 10, cislo: 16, dokonceno: null },
    { id: 2, cislo: 25, dokonceno: false },
    { id: 3, cislo: 9, dokonceno: null },
    { id: 12, cislo: 15, dokonceno: null, },
    { id: 9, cislo: 1, dokonceno: false },
    { id: 29, cislo: 8, dokonceno: null },
    { id: 5, cislo: 59, dokonceno: null },
    { id: 11, cislo: 43, dokonceno: null },
    { id: 18, cislo: 42, dokonceno: false },
    { id: 10, cislo: 33, dokonceno: null, },
    { id: 7, cislo: 21, dokonceno: false },
    { id: 13, cislo: 24, dokonceno: null, },
    { id: 34, cislo: 25, dokonceno: null },
    { id: 14, cislo: 22, dokonceno: null },
    { id: 58, cislo: 30, dokonceno: null },
    { id: 15, cislo: 23, dokonceno: null },
    { id: 59, cislo: 26, dokonceno: null }
  ]
};

let highestId = 0;
if (preloadedState.mezicasy) {
  preloadedState.mezicasy.forEach(mezicas => {
    if (mezicas.id > highestId) {
      highestId = mezicas.id;
    }
  });
}
setHighestMezicasId(highestId);
{'fraction_non_alphanumeric': 0.16063548102383055, 'fraction_numerical': 0.049132097675786995, 'mean_word_length': 3.6321525885558583, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '6558930', 'n_tokens_mistral': 1510, 'n_tokens_neox': 1319, 'n_words': 353}