<commit_before>'use strict';

var _     = require('lodash');
var React = require('react');

var Overview  = require('dashboard/nco/Overview.jsx');
var Breakdown = require('dashboard/nco/Breakdown.jsx');

var NCODashboard = React.createClass({
  propTypes : {
    dashboard : React.PropTypes.object.isRequired,
    data      : React.PropTypes.object.isRequired,
    region    : React.PropTypes.object.isRequired,

    loading   : React.PropTypes.bool
  },

  getDefaultProps : function () {
    return {
      loading : false
    };
  },

  render : function () {
    var data    = this.props.data;
    var loading = this.props.loading;

    return (<h1> hi this is john </h1>
    );
  }
});

module.exports = NCODashboard;<commit_msg>bring back the nco dashboard<commit_after>'use strict';

var _     = require('lodash');
var React = require('react');

var Overview  = require('dashboard/nco/Overview.jsx');
var Breakdown = require('dashboard/nco/Breakdown.jsx');

var NCODashboard = React.createClass({
  propTypes : {
    dashboard : React.PropTypes.object.isRequired,
    data      : React.PropTypes.object.isRequired,
    region    : React.PropTypes.object.isRequired,

    loading   : React.PropTypes.bool
  },

  getDefaultProps : function () {
    return {
      loading : false
    };
  },

  render : function () {
    var data    = this.props.data;
    var loading = this.props.loading;

    return (
      <div id='nco-dashboard'>
        <section>
          <div className='row'>
            <div className='small-12 columns'>
              <h3>Overview for {this.props.region.name}</h3>
            </div>
          </div>

          <Overview data={data.overview} loading={loading} />
        </section>

        <section>
          <div className='row'>
            <div className='small-12 columns'>
              <h3>Breakdown by Sub-Regions</h3>
            </div>
          </div>

          <Breakdown data={data.breakdown} loading={loading} />
        </section>
      </div>
    );
  }
});

module.exports = NCODashboard;
{'fraction_non_alphanumeric': 0.13803230543318648, 'fraction_numerical': 0.004894762604013705, 'mean_word_length': 2.3897180762852406, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 25, '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': '6180031', 'n_tokens_mistral': 648, 'n_tokens_neox': 626, 'n_words': 124}