<commit_before>import React, {Component} from 'react';
import {
    Redirect,
    Router,
    Route,
    Switch
} from 'react-router-dom';
import history from './history';
import NavBarContainer from './Containers/NavBarContainer';

import './App.css';

import FlowsListScreenContainer from './Containers/FlowsListScreenContainer';
import EditFlowScreenContainer from './Containers/EditFlowScreenContainer';

class App extends Component {

    render() {
        if (this.props.isRehydrated) {
            return (
                <Router history={history}>
                    <div className="App">
                        <NavBarContainer/>
                        <div className="container-fluid">
                            <Redirect exact from='/' to='/flows'/>
                            <Switch>
                                <Route exact path="/flows" component={FlowsListScreenContainer}/>
                                <Route path="/flows/:id" component={EditFlowScreenContainer}/>
                            </Switch><commit_msg>Removed Redirect from "/" to "/flows" because that broken browsing directly to "/flows/:id" (clicking such link within an app was working ok)<commit_after>import React, {Component} from 'react';
import {
    Router,
    Route,
    Switch
} from 'react-router-dom';
import history from './history';
import NavBarContainer from './Containers/NavBarContainer';

import './App.css';

import FlowsListScreenContainer from './Containers/FlowsListScreenContainer';
import EditFlowScreenContainer from './Containers/EditFlowScreenContainer';

class App extends Component {

    render() {
        if (this.props.isRehydrated) {
            return (
                <Router history={history}>
                    <div className="App">
                        <NavBarContainer/>
                        <div className="container-fluid">
                            <Switch>
                                <Route exact path="/flows" component={FlowsListScreenContainer}/>
                                <Route path="/flows/:id" component={EditFlowScreenContainer}/>
                            </Switch>
{'fraction_non_alphanumeric': 0.10789350770667912, 'fraction_numerical': 0.0, 'mean_word_length': 1.9667590027700832, 'pattern_counts': {'":': 0, '<': 20, '<?xml version=': 0, '>': 20, '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': '7673859', 'n_tokens_mistral': 519, 'n_tokens_neox': 494, 'n_words': 130}