<commit_before>import React from 'react/addons';

export default React.createClass({
  placeholder: function() {
    return '<div style="background: red;">You are on Production!</div>';
  },
  propTypes: {
    html: React.PropTypes.string,
    pattern: React.PropTypes.string,
    updateForm: React.PropTypes.func,
    saveOverlay: React.PropTypes.func
  },
  isDisabled: function() {
    return (this.props.pattern === '' || this.props.html === '');
  },
  render() {
    let cx = React.addons.classSet;
    let classes = cx({
      'button left': true,
      disabled: this.isDisabled()
    });
    return (
      <div className='edit'>
        <form name="edit">
          <label htmlFor='pattern'>URL Pattern</label>
          <input type='text' id='pattern' name='pattern' placeholder='example.com' value={this.props.pattern} onChange={this.props.updateForm} required='required' />
          <label htmlFor='html'>HTML</label>
          <pre>
            <code className="language-css"><commit_msg>Add placeholder text<commit_after>import React from 'react/addons';

export default React.createClass({
  propTypes: {
    html: React.PropTypes.string,
    pattern: React.PropTypes.string,
    updateForm: React.PropTypes.func,
    saveOverlay: React.PropTypes.func
  },
  placeholder: function() {
    return '<div style="background: red;">\n  You are on Production!\n</div>';
  },
  isDisabled: function() {
    return (this.props.pattern === '' || this.props.html === '');
  },
  render() {
    let cx = React.addons.classSet;
    let classes = cx({
      'button left': true,
      disabled: this.isDisabled()
    });
    return (
      <div className='edit'>
        <form name="edit">
          <label htmlFor='pattern'>URL Pattern</label>
          <input type='text' id='pattern' name='pattern' placeholder='example.com' value={this.props.pattern} onChange={this.props.updateForm} required='required' />
          <label htmlFor='html'>HTML</label>
          <pre>
            <code className="language-css">
{'fraction_non_alphanumeric': 0.158494304110946, 'fraction_numerical': 0.0, 'mean_word_length': 3.1649484536082473, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 25, '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': '6621693', 'n_tokens_mistral': 590, 'n_tokens_neox': 591, 'n_words': 128}