<commit_before>'use strict';

var React = require('react');
var DateTimeGroup = require('../src/DateTimeGroup.jsx');
var myDate = new Date('2015-05-05T09:00');

var myRestrictedDate = new Date('2015-05-10T09:00');
var minDate = new Date('2015-05-03T00:00');
var maxDate = new Date('2015-05-16T00:00');
var excludedDates = [
  new Date('2015-05-05T00:00'),
  new Date('2015-05-06T00:00'),
  new Date('2015-05-12T00:00'),
  new Date('2015-05-15T00:00')
];

var fns = {};

fns.changeDate = function(newDate) {
  myDate = newDate;
  fns.render();
};

fns.render = function() {
  React.render(
    <div>
      <h1>Defaults</h1>
      <DateTimeGroup />

      <h1>Date Only</h1>
      <DateTimeGroup includeTime={false} />

      <h1>Options for time (value shared with "Events")</h1>
      <DateTimeGroup
        value={myDate}
        onChange={fns.changeDate}
        timeClassName="myClass"
        timeLabel="Choose a time"
        timeName="TheTime"
        timeStart={330}
        timeEnd={2130}
        timeStep={15}
        dateContainerClass="col-xs-12 col-md-8"
        timeContainerClass="col-xs-12 col-md-4" />

      <h1>Options for date</h1>
      <DateTimeGroup
        value={myRestrictedDate}
        dateClassName="myClass"
        dateLabel="Choose a date"
        dateName="TheDate"
        dateStart={minDate}
        dateEnd={maxDate}
        dateExclusions={excludedDates}
        dateFormat="MMMM Do YYYY"
        dateContainerClass="col-xs-12 col-md-8"
        timeContainerClass="col-xs-12 col-md-4" />

      <h1>Events (value shared with "Options for time")</h1>
      <DateTimeGroup value={myDate} onChange={fns.changeDate} /><commit_msg>fixing documentation based on a comment luke made on ollie original PR<commit_after>'use strict';

var React = require('react');
var DateTimeGroup = require('../src/DateTimeGroup.jsx');
var myDate = new Date('2015-05-05T09:00');

var myRestrictedDate = new Date('2015-05-10T09:00');
var minDate = new Date('2015-05-03T00:00');
var maxDate = new Date('2015-05-16T00:00');
var excludedDates = [
  new Date('2015-05-05T00:00'),
  new Date('2015-05-06T00:00'),
  new Date('2015-05-12T00:00'),
  new Date('2015-05-15T00:00')
];

var fns = {};

fns.changeDate = function(newDate) {
  myDate = newDate;
  fns.render();
};

fns.render = function() {
  React.render(
    <div>
      <h1>Defaults</h1>
      <DateTimeGroup />

      <h1>Date Only</h1>
      <DateTimeGroup includeTime={false} />

      <h1>Options for date</h1>
      <DateTimeGroup
        value={myRestrictedDate}
        dateClassName="myClass"
        dateLabel="Choose a date"
        dateName="TheDate"
        dateStart={minDate}
        dateEnd={maxDate}
        dateExclusions={excludedDates}
        dateFormat="MMMM Do YYYY"
        dateContainerClass="col-xs-12 col-md-8"
        timeContainerClass="col-xs-12 col-md-4" />

      <h1>Options for time (value shared with "Events")</h1>
      <DateTimeGroup
        value={myDate}
        onChange={fns.changeDate}
        timeClassName="myClass"
        timeLabel="Choose a time"
        timeName="TheTime"
        timeStart={330}
        timeEnd={2130}
        timeStep={15}
        dateContainerClass="col-xs-12 col-md-8"
        timeContainerClass="col-xs-12 col-md-4" />

      <h1>Events (value shared with "Options for time")</h1>
      <DateTimeGroup value={myDate} onChange={fns.changeDate} />
{'fraction_non_alphanumeric': 0.15084294587400177, 'fraction_numerical': 0.075125702454895, 'mean_word_length': 2.932558139534884, 'pattern_counts': {'":': 0, '<': 35, '<?xml version=': 0, '>': 35, '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': '3774103', 'n_tokens_mistral': 1300, 'n_tokens_neox': 1156, 'n_words': 217}