<commit_before>import { Component, PropTypes } from "react";
import Fieldset from "./Fieldset";

export default class Form extends Component {

  static propTypes = {
    theme: PropTypes.string,
    classes: PropTypes.oneOfType([
      PropTypes.string,
      PropTypes.array,
    ]),
    children: PropTypes.any, // eslint-disable-line
    id: PropTypes.string,
    submit: PropTypes.func,
    action: PropTypes.string,
    method: PropTypes.string,
    style: PropTypes.object, // eslint-disable-line
    fieldsetTheme: PropTypes.string,
  }

  layoutClasses = () => {
    let classes = [
      "hard-ends",
    ];

    if (this.props.classes) {
      classes = classes.concat(this.props.classes);
    }

    return classes.join(" ");
  }

  render() {
    return (
      <form
        id={this.props.id}
        onSubmit={this.props.submit}
        className={this.props.theme || this.layoutClasses()}
        action={this.props.action}
        method={this.props.method}
        style={this.props.style}
      >
        <Fieldset
          theme={this.props.fieldsetTheme}
        >
          {this.props.children}
        </Fieldset>
      </form>
    );
  }
}
<commit_msg>component form proptype<commit_after>import { Component, PropTypes } from "react";
import Fieldset from "./Fieldset";

export default class Form extends Component {

  static propTypes = {
    theme: PropTypes.string,
    classes: PropTypes.oneOfType([
      PropTypes.string,
      PropTypes.array,
    ]),
    children: PropTypes.any, // eslint-disable-line
    id: PropTypes.string,
    submit: PropTypes.func,
    action: PropTypes.bool,
    method: PropTypes.string,
    style: PropTypes.object, // eslint-disable-line
    fieldsetTheme: PropTypes.string,
  }

  layoutClasses = () => {
    let classes = [
      "hard-ends",
    ];

    if (this.props.classes) {
      classes = classes.concat(this.props.classes);
    }

    return classes.join(" ");
  }

  render() {
    return (
      <form
        id={this.props.id}
        onSubmit={this.props.submit}
        className={this.props.theme || this.layoutClasses()}
        action={this.props.action}
        method={this.props.method}
        style={this.props.style}
      >
        <Fieldset
          theme={this.props.fieldsetTheme}
        >
          {this.props.children}
        </Fieldset>
      </form>
    );
  }
}

{'fraction_non_alphanumeric': 0.1327134404057481, 'fraction_numerical': 0.0, 'mean_word_length': 2.2738589211618256, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 13, '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': '7535553', 'n_tokens_mistral': 707, 'n_tokens_neox': 720, 'n_words': 130}