<commit_before>import React from "react";

import { Tabs, Tab } from "../Utility/Tabs";
import { StarredMarkets, TopMarkets, FeaturedMarkets } from "./Markets";

class DashboardPage extends React.Component {
    render() {
        return (
            <div className="grid-block page-layout">
                <div className="grid-block no-padding">
                    <div className="grid-content app-tables no-padding" ref="appTables">
                        <div className="content-block small-12">
                            <div className="tabs-container generic-bordered-box">
                                <Tabs defaultActiveTab={1} segmented={false} setting="dashboardTab" className="account-tabs" tabsClass="account-overview no-padding bordered-header content-block">
                                    <Tab title="dashboard.starred_markets">
                                        <StarredMarkets />
                                    </Tab>
                                    <Tab title="dashboard.featured_markets">
                                        <FeaturedMarkets />
                                    </Tab>
                                    {/* <Tab title="dashboard.top_markets">
                                        <TopMarkets />
                                    </Tab> */}
                                </Tabs>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        );
    }
}

export default DashboardPage;<commit_msg>Add back welcome page for new users (#1167)<commit_after>import React from "react";
import { connect } from "alt-react";

import LoadingIndicator from "../LoadingIndicator";
import LoginSelector from "../LoginSelector";
import AccountStore from "stores/AccountStore";

import { Tabs, Tab } from "../Utility/Tabs";
import { StarredMarkets, TopMarkets, FeaturedMarkets } from "./Markets";

class DashboardPage extends React.Component {
    render() {
        let { linkedAccounts, myIgnoredAccounts, accountsReady, passwordAccount } = this.props;
        if (!accountsReady) {
            return <LoadingIndicator />;
        }
        
        let accountCount = linkedAccounts.size + myIgnoredAccounts.size + (passwordAccount ? 1 : 0);
        if (!accountCount) {
            return <LoginSelector />;
        }

        return (
            <div className="grid-block page-layout">
                <div className="grid-block no-padding">
                    <div className="grid-content app-tables no-padding" ref="appTables">
                        <div className="content-block small-12">
                            <div className="tabs-container generic-bordered-box">
                                <Tabs defaultActiveTab={1} segmented={false} setting="dashboardTab" className="account-tabs" tabsClass="account-overview no-padding bordered-header content-block">
                                    <Tab title="dashboard.starred_markets">
                                        <StarredMarkets />
                                    </Tab>
                                    <Tab title="dashboard.featured_markets">
                                        <FeaturedMarkets />
                                    </Tab>
                                    {/* <Tab title="dashboard.top_markets">
                                        <TopMarkets />
                                    </Tab> */}
                                </Tabs>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        );
    }
}

export default connect(DashboardPage, {
    listenTo () {
        return [AccountStore];
    },
    getProps() {
        let { linkedAccounts, myIgnoredAccounts, passwordAccount, accountsLoaded, refsLoaded } = AccountStore.getState();

        return {
            linkedAccounts,
            myIgnoredAccounts,
            passwordAccount,
            accountsReady: accountsLoaded && refsLoaded
        };
    }
});
{'fraction_non_alphanumeric': 0.10164497913086178, 'fraction_numerical': 0.0029462312791554137, 'mean_word_length': 1.2810750279955208, 'pattern_counts': {'":': 0, '<': 47, '<?xml version=': 0, '>': 47, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 24, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6975201', 'n_tokens_mistral': 945, 'n_tokens_neox': 907, 'n_words': 197}