<commit_before>import React, { Component } from 'react';
import { connect } from 'react-redux';
import TextField from 'material-ui/TextField';
import DatePicker from 'material-ui/DatePicker';
import TimePicker from 'material-ui/TimePicker';
import RaisedButton from 'material-ui/RaisedButton';
import * as actions from './redux';

export class DemonstrationForm extends Component {
  onChangeTitle = (demonstration, value) => {
    this.props.changeTitle(this.props.id, value);
  };
  onChangeDescription = (demonstration, value) => {
    this.props.changeDescription(this.props.id, value);
  };
  onChangeDate = (_, value) => {
    this.props.changeDate(this.props.id, value.valueOf());
  };

  onChangeTime = (_, value) => {
    this.props.changeDate(this.props.id, value.valueOf());
  };
  onSubmit = (demonstration) => {
    demonstration.prdemonstrationDefault();
  };

  render() {
    const date = this.props.date ? new Date(this.props.date) : null;
    return (
      <form onSubmit={this.onSubmit} className="container">
        <TextField
          required<commit_msg>Update DemonstrationForm.jsx<commit_after>import React, { Component } from 'react';
import { connect } from 'react-redux';
import TextField from 'material-ui/TextField';
import DatePicker from 'material-ui/DatePicker';
import TimePicker from 'material-ui/TimePicker';
import RaisedButton from 'material-ui/RaisedButton';
import * as actions from './redux';

export class DemonstrationForm extends Component {
  onChangeTitle = (demonstration, value) => {
    this.props.changeTitle(this.props.id, value);
  };
  onChangeDescription = (demonstration, value) => {
    this.props.changeDescription(this.props.id, value);
  };
  onChangeDate = (_, value) => {
    this.props.changeDate(this.props.id, value.valueOf());
  };

  onChangeTime = (_, value) => {
    this.props.changeDate(this.props.id, value.valueOf());
  };
  onSubmit = (demonstration) => {
    demonstration.preventDefault();
  };

  render() {
    const date = this.props.date ? new Date(this.props.date) : null;
    return (
      <form onSubmit={this.onSubmit} className="container">
        <TextField
          required
{'fraction_non_alphanumeric': 0.14087759815242495, 'fraction_numerical': 0.0, 'mean_word_length': 4.048951048951049, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 15, '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': '1201335', 'n_tokens_mistral': 660, 'n_tokens_neox': 643, 'n_words': 138}