<commit_before>import React, { useState } from 'react';
import { Route, Switch } from 'react-router-dom';

import { ProtonApp, StandardPublicApp, StandardSetup, ModalsChildren } from 'react-components';
import locales from 'proton-shared/lib/i18n/locales';
import sentry from 'proton-shared/lib/helpers/sentry';

import * as config from './config';
import PrivateApp from './PrivateApp';
import DownloadSharedContainer from './components/DowloadShared/DownloadSharedContainer';
import { DownloadProvider } from './components/downloads/DownloadProvider';

import './app.scss';

const PublicDriveLinkContainer = () => {
    return (
        <DownloadProvider>
            <ModalsChildren />
            <DownloadSharedContainer />
        </DownloadProvider>
    );
};

const enhancedConfig = {
    APP_VERSION_DISPLAY: '4.0.0-beta.5',
    ...config,
};

sentry(enhancedConfig);

const App = () => {
    const [hasInitialAuth] = useState(() => {
        return !window.location.pathname.startsWith('/urls');
    });

    return (
        <ProtonApp config={enhancedConfig} hasInitialAuth={hasInitialAuth}>
            <Switch>
                <Route path="/urls">
                    <StandardPublicApp locales={locales}>
                        <PublicDriveLinkContainer />
                    </StandardPublicApp>
                </Route>
                <Route path="*">
                    <StandardSetup PrivateApp={PrivateApp} locales={locales} />
                </Route>
            </Switch>
        </ProtonApp>
    );
};

export default App;<commit_msg>version bump<commit_after>import React, { useState } from 'react';
import { Route, Switch } from 'react-router-dom';

import { ProtonApp, StandardPublicApp, StandardSetup, ModalsChildren } from 'react-components';
import locales from 'proton-shared/lib/i18n/locales';
import sentry from 'proton-shared/lib/helpers/sentry';

import * as config from './config';
import PrivateApp from './PrivateApp';
import DownloadSharedContainer from './components/DowloadShared/DownloadSharedContainer';
import { DownloadProvider } from './components/downloads/DownloadProvider';

import './app.scss';

const PublicDriveLinkContainer = () => {
    return (
        <DownloadProvider>
            <ModalsChildren />
            <DownloadSharedContainer />
        </DownloadProvider>
    );
};

const enhancedConfig = {
    APP_VERSION_DISPLAY: '4.0.0-beta.6',
    ...config,
};

sentry(enhancedConfig);

const App = () => {
    const [hasInitialAuth] = useState(() => {
        return !window.location.pathname.startsWith('/urls');
    });

    return (
        <ProtonApp config={enhancedConfig} hasInitialAuth={hasInitialAuth}>
            <Switch>
                <Route path="/urls">
                    <StandardPublicApp locales={locales}>
                        <PublicDriveLinkContainer />
                    </StandardPublicApp>
                </Route>
                <Route path="*">
                    <StandardSetup PrivateApp={PrivateApp} locales={locales} />
                </Route>
            </Switch>
        </ProtonApp>
    );
};

export default App;
{'fraction_non_alphanumeric': 0.12936279218699967, 'fraction_numerical': 0.0038424591738712775, 'mean_word_length': 2.502242152466368, 'pattern_counts': {'":': 0, '<': 35, '<?xml version=': 0, '>': 41, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 16, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6520235', 'n_tokens_mistral': 848, 'n_tokens_neox': 828, 'n_words': 174}