<commit_before>/** @jsx React.DOM */

var React = require("react");
var RCSS = require("rcss");

var GAWidget = require("./ga-widget.jsx");
var StoriesWidget = require("./stories-widget.jsx");
var GHMetaWidget = require("./github-widget.jsx");
var TeamWidget = require("./team-widget.jsx");
var ExperimentsWidget = require("./experiments-widget.jsx");
var WidgetContainer = require("./widget-container.jsx");
var AtAllWidget = require("./hipchat-widget.jsx");
var HomeWidget = require("./home-widget.jsx");
var RegistrationsWidget = require("./registrations-widget.jsx");
var RegistrationsGraphWidget = require("./registrations-graph-widget.jsx");
var ErrorGraphWidget = require("./error-graph-widget.jsx");
var TweetsWidget = require("./tweets-widget.jsx");
var ScreenSelectorWidget = require("./screen-selector-widget.jsx");
var util = require("./util.js");

var dashboardClass = require("./style/dashboard-style.js");

var Dashboard = React.createClass({
    render: function() {
        var screen = parseInt(util.getParameterByName("screen"));
        switch (screen) {
            case 0:
                return <div className={dashboardClass.className}>
                    <HomeWidget/>
                    <GHMetaWidget/>
                    <StoriesWidget />
                    <TweetsWidget />
                    <TeamWidget />
                    <HipChatWidget />
                    <ErrorGraphWidget />
                    <RegistrationsGraphWidget />
                    <RegistrationsWidget />
                    <ExperimentsWidget />
                </div>;
            case 1:
                return <div className={dashboardClass.className}>
                </div>;
            default:
                return <div className={dashboardClass.className}>
                    <ScreenSelectorWidget screen={0} />
                    <ScreenSelectorWidget screen={1} />
                </div>;
        }
    }
});

module.exports = Dashboard;<commit_msg>Switch to 1-indexing for screens.<commit_after>/** @jsx React.DOM */

var React = require("react");
var RCSS = require("rcss");

var GAWidget = require("./ga-widget.jsx");
var StoriesWidget = require("./stories-widget.jsx");
var GHMetaWidget = require("./github-widget.jsx");
var TeamWidget = require("./team-widget.jsx");
var ExperimentsWidget = require("./experiments-widget.jsx");
var WidgetContainer = require("./widget-container.jsx");
var AtAllWidget = require("./hipchat-widget.jsx");
var HomeWidget = require("./home-widget.jsx");
var RegistrationsWidget = require("./registrations-widget.jsx");
var RegistrationsGraphWidget = require("./registrations-graph-widget.jsx");
var ErrorGraphWidget = require("./error-graph-widget.jsx");
var TweetsWidget = require("./tweets-widget.jsx");
var ScreenSelectorWidget = require("./screen-selector-widget.jsx");
var util = require("./util.js");

var dashboardClass = require("./style/dashboard-style.js");

var Dashboard = React.createClass({
    render: function() {
        var screen = parseInt(util.getParameterByName("screen"));
        switch (screen) {
            case 1:
                return <div className={dashboardClass.className}>
                    <HomeWidget/>
                    <GHMetaWidget/>
                    <StoriesWidget />
                    <TweetsWidget />
                    <TeamWidget />
                    <HipChatWidget />
                    <ErrorGraphWidget />
                    <RegistrationsGraphWidget />
                    <RegistrationsWidget />
                    <ExperimentsWidget />
                </div>;
            case 2:
                return <div className={dashboardClass.className}>
                </div>;
            default:
                return <div className={dashboardClass.className}>
                    <ScreenSelectorWidget screen={1} />
                    <ScreenSelectorWidget screen={2} />
                </div>;
        }
    }
});

module.exports = Dashboard;
{'fraction_non_alphanumeric': 0.14076690211907164, 'fraction_numerical': 0.002270433905146317, 'mean_word_length': 2.1393507521773554, 'pattern_counts': {'":': 0, '<': 39, '<?xml version=': 0, '>': 39, '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': '757719', 'n_tokens_mistral': 1061, 'n_tokens_neox': 1024, 'n_words': 197}