<commit_before>var _ = require('lodash')
var React = require('react')
const {
  Datascope, LocalDatascope,
  ClearQueryLink,
  } = require('react-datascope')

var parseSchema = require('./utils/parseSchema')

var AdminPage = React.createClass({
  propTypes: {
    title: React.PropTypes.string.isRequired,
    getData: React.PropTypes.func.isRequired
  },
  getInitialState: function () {
    return {
      data: null,
      schema: null,
      query: {},
      areFiltersVisible: true
    }
  },

  componentWillMount: function () {
    this.props.getData(null, null, {'cache-control': 'no-cache'}).then(response => {<commit_msg>fix props validation on AdminPage.js<commit_after>var _ = require('lodash')
var React = require('react')
const {
  Datascope, LocalDatascope,
  ClearQueryLink
  } = require('react-datascope')

var parseSchema = require('./utils/parseSchema')

var AdminPage = React.createClass({
  propTypes: {
    title: React.PropTypes.string.isRequired,
    getData: React.PropTypes.func.isRequired,
    schema: React.PropTypes.object,
    fields: React.PropTypes.object,
    datascopeFilters: React.PropTypes.element,
    children: React.PropTypes.array
  },
  getInitialState: function () {
    return {
      data: null,
      schema: null,
      query: {},
      areFiltersVisible: true
    }
  },

  componentWillMount: function () {
    this.props.getData(null, null, {'cache-control': 'no-cache'}).then(response => {
{'fraction_non_alphanumeric': 0.1361111111111111, 'fraction_numerical': 0.0, 'mean_word_length': 3.6785714285714284, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '499086', 'n_tokens_mistral': 452, 'n_tokens_neox': 452, 'n_words': 86}