<commit_before>var DateTimePicker, DateTimePickerDate, DateTimePickerTime, Glyphicon, React;

React = require('react/addons');

DateTimePickerDate = require('./DateTimePickerDate');

DateTimePickerTime = require('./DateTimePickerTime');

Glyphicon = require('react-bootstrap').Glyphicon;

DateTimePicker = React.createClass({
  propTypes: {
    showDatePicker: React.PropTypes.bool,
    showTimePicker: React.PropTypes.bool,
    subtractMonth: React.PropTypes.func.isRequired,
    addMonth: React.PropTypes.func.isRequired,
    viewDate: React.PropTypes.object.isRequired,
    selectedDate: React.PropTypes.object.isRequired,
    showToday: React.PropTypes.bool,
    viewMode: React.PropTypes.oneOfType([
      React.PropTypes.string,
      React.PropTypes.number
    ]),
    daysOfWeekDisabled: React.PropTypes.array,
    setSelectedDate: React.PropTypes.func.isRequired,
    subtractYear: React.PropTypes.func.isRequired,
    addYear: React.PropTypes.func.isRequired,
    setViewMonth: React.PropTypes.func.isRequired,
    setViewYear: React.PropTypes.func.isRequired,
    subtractHour: React.PropTypes.func.isRequired,
    addHour: React.PropTypes.func.isRequired,
    subtractMinute: React.PropTypes.func.isRequired,
    addMinute: React.PropTypes.func.isRequired,
    addDecade: React.PropTypes.func.isRequired,
    subtractDecade: React.PropTypes.func.isRequired,
    togglePeriod: React.PropTypes.func.isRequired
  },
  renderDatePicker: function() {
    if (this.props.showDatePicker) {
      return (
      <li>
        <DateTimePickerDate
              addMonth={this.props.addMonth}
              subtractMonth={this.props.subtractMonth}
              setSelectedDate={this.props.setSelectedDate}
              viewDate={this.props.viewDate}
              selectedDate={this.props.selectedDate}
              showToday={this.props.showToday}
              viewMode={this.props.viewMode}
              daysOfWeekDisabled={this.props.daysOfWeekDisabled}
              subtractYear={this.props.subtractYear}
              addYear={this.props.addYear}
              setViewMonth={this.props.setViewMonth}
              setViewYear={this.props.setViewYear}
              addDecade={this.props.addDecade}
              subtractDecade={this.props.subtractDecade}
        />
      </li>
      );
    }
  },
  renderTimePicker: function() {
    if (this.props.showTimePicker) {
      return (
      <li>
        <DateTimePickerTime
              viewDate={this.props.viewDate}
              selectedDate={this.props.selectedDate}
              setSelectedHour={this.props.setSelectedHour}
              setSelectedMinute={this.props.setSelectedMinute}
              addHour={this.props.addHour}
              subtractHour={this.props.subtractHour}
              addMinute={this.props.addMinute}
              subtractMinute={this.props.subtractMinute}
              togglePeriod={this.props.togglePeriod}
        />
      </li>
      );
    }
  },
  render: function() {
    return (
      <div className={React.addons.classSet(this.props.widgetClasses)} style={this.props.widgetStyle}>

        <ul className="list-unstyled">

          {this.renderDatePicker()}

          <li>
            <a className="btn picker-switch" style={{width:'100%'}} onClick={this.props.togglePicker}><Glyphicon glyph={this.props.showTimePicker ? 'calendar' : 'time'} /></a>
          </li>

          {this.renderTimePicker()}

        </ul>

      </div>

    );
  }
});

module.exports = DateTimePicker;<commit_msg>Changing anchor tag to span<commit_after>var DateTimePicker, DateTimePickerDate, DateTimePickerTime, Glyphicon, React;

React = require('react/addons');

DateTimePickerDate = require('./DateTimePickerDate');

DateTimePickerTime = require('./DateTimePickerTime');

Glyphicon = require('react-bootstrap').Glyphicon;

DateTimePicker = React.createClass({
  propTypes: {
    showDatePicker: React.PropTypes.bool,
    showTimePicker: React.PropTypes.bool,
    subtractMonth: React.PropTypes.func.isRequired,
    addMonth: React.PropTypes.func.isRequired,
    viewDate: React.PropTypes.object.isRequired,
    selectedDate: React.PropTypes.object.isRequired,
    showToday: React.PropTypes.bool,
    viewMode: React.PropTypes.oneOfType([
      React.PropTypes.string,
      React.PropTypes.number
    ]),
    daysOfWeekDisabled: React.PropTypes.array,
    setSelectedDate: React.PropTypes.func.isRequired,
    subtractYear: React.PropTypes.func.isRequired,
    addYear: React.PropTypes.func.isRequired,
    setViewMonth: React.PropTypes.func.isRequired,
    setViewYear: React.PropTypes.func.isRequired,
    subtractHour: React.PropTypes.func.isRequired,
    addHour: React.PropTypes.func.isRequired,
    subtractMinute: React.PropTypes.func.isRequired,
    addMinute: React.PropTypes.func.isRequired,
    addDecade: React.PropTypes.func.isRequired,
    subtractDecade: React.PropTypes.func.isRequired,
    togglePeriod: React.PropTypes.func.isRequired
  },
  renderDatePicker: function() {
    if (this.props.showDatePicker) {
      return (
      <li>
        <DateTimePickerDate
              addMonth={this.props.addMonth}
              subtractMonth={this.props.subtractMonth}
              setSelectedDate={this.props.setSelectedDate}
              viewDate={this.props.viewDate}
              selectedDate={this.props.selectedDate}
              showToday={this.props.showToday}
              viewMode={this.props.viewMode}
              daysOfWeekDisabled={this.props.daysOfWeekDisabled}
              subtractYear={this.props.subtractYear}
              addYear={this.props.addYear}
              setViewMonth={this.props.setViewMonth}
              setViewYear={this.props.setViewYear}
              addDecade={this.props.addDecade}
              subtractDecade={this.props.subtractDecade}
        />
      </li>
      );
    }
  },
  renderTimePicker: function() {
    if (this.props.showTimePicker) {
      return (
      <li>
        <DateTimePickerTime
              viewDate={this.props.viewDate}
              selectedDate={this.props.selectedDate}
              setSelectedHour={this.props.setSelectedHour}
              setSelectedMinute={this.props.setSelectedMinute}
              addHour={this.props.addHour}
              subtractHour={this.props.subtractHour}
              addMinute={this.props.addMinute}
              subtractMinute={this.props.subtractMinute}
              togglePeriod={this.props.togglePeriod}
        />
      </li>
      );
    }
  },
  render: function() {
    return (
      <div className={React.addons.classSet(this.props.widgetClasses)} style={this.props.widgetStyle}>

        <ul className="list-unstyled">

          {this.renderDatePicker()}

          <li>
            <span className="btn picker-switch" style={{width:'100%'}} onClick={this.props.togglePicker}><Glyphicon glyph={this.props.showTimePicker ? 'calendar' : 'time'} /></span>
          </li>

          {this.renderTimePicker()}

        </ul>

      </div>

    );
  }
});

module.exports = DateTimePicker;
{'fraction_non_alphanumeric': 0.11677584733694105, 'fraction_numerical': 0.000854457419538593, 'mean_word_length': 2.7536076964190275, 'pattern_counts': {'":': 0, '<': 33, '<?xml version=': 0, '>': 33, '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': '3063127', 'n_tokens_mistral': 2076, 'n_tokens_neox': 2058, 'n_words': 253}