<commit_before>/** @jsx React.DOM */
/**
 * Copyright (c) 2014, Tidepool Project
 *
 * This program is free software; you can redistribute it and/or modify it under
 * the terms of the associated License, which is identical to the BSD 2-Clause
 * License as published by the Open Source Initiative at opensource.org.
 *
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the License for more details.
 *
 * You should have received a copy of the License along with this program; if
 * not, you can obtain one from Tidepool Project at tidepool.org.
 */

var React = window.React;

var BrowserWarningOverlay = React.createClass({
  propTypes: {
    onSubmit: React.PropTypes.func
  },

  getInitialState: function() {
    return {
      agreed: false
    };
  },

  render: function() {
    var submitButton = this.renderSubmitButton();

    return (
      /* jshint ignore:start */
      <div className="browser-warning-overlay js-terms">
        <div className="browser-warning-overlay-content browser-warning-overlay-box">
          <div className="browser-warning-overlay-title">WARNING</div>
          <div className="browser-warning-overlay-text">
          <p>PLEASE NOTE: This version of <strong>Blip</strong> should only be used with the Chrome browser.</p>
          <p><strong>THERAPY CHANGES SHOULD ONLY BE MADE AFTER CONSULTING WITH YOUR DOCTOR, AND ONLY BASED ON DATA SHOWN IN THE CHROME BROWSER.</strong></p>
          </div>
          <form className="browser-warning-overlay-form">
            {submitButton}
          </form>
        </div>
      </div>
      /* jshint ignore:end */
    );
  },

  renderSubmitButton: function() {
    /* jshint ignore:start */
    return (
      <button
        className="btn btn-primary js-terms-submit"
        onClick={this.handleSubmit}
        >I understand, Continue.</button>
    );
    /* jshint ignore:end */
  },

  handleSubmit: function(e) {
    if (e) {
      e.preventDefault();
    }

    var submit = this.props.onSubmit;
    if (submit) {
      submit();
    }
  }
});

module.exports = BrowserWarningOverlay;<commit_msg>make jshint's dreams come true<commit_after>/** @jsx React.DOM */
/**
 * Copyright (c) 2014, Tidepool Project
 *
 * This program is free software; you can redistribute it and/or modify it under
 * the terms of the associated License, which is identical to the BSD 2-Clause
 * License as published by the Open Source Initiative at opensource.org.
 *
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the License for more details.
 *
 * You should have received a copy of the License along with this program; if
 * not, you can obtain one from Tidepool Project at tidepool.org.
 */

var React = window.React;

var BrowserWarningOverlay = React.createClass({
  propTypes: {
    onSubmit: React.PropTypes.func
  },

  getInitialState: function() {
    return {
      agreed: false
    };
  },

  render: function() {
    var submitButton = this.renderSubmitButton();

    /* jshint ignore:start */
    return (
      <div className="browser-warning-overlay js-terms">
        <div className="browser-warning-overlay-content browser-warning-overlay-box">
          <div className="browser-warning-overlay-title">WARNING</div>
          <div className="browser-warning-overlay-text">
          <p>PLEASE NOTE: This version of <strong>Blip</strong> should only be used with the Chrome browser.</p>
          <p><strong>THERAPY CHANGES SHOULD ONLY BE MADE AFTER CONSULTING WITH YOUR DOCTOR, AND ONLY BASED ON DATA SHOWN IN THE CHROME BROWSER.</strong></p>
          </div>
          <form className="browser-warning-overlay-form">
            {submitButton}
          </form>
        </div>
      </div>
    );
    /* jshint ignore:end */
  },

  renderSubmitButton: function() {
    /* jshint ignore:start */
    return (
      <button 
        className="btn btn-primary js-terms-submit" 
        onClick={this.handleSubmit}
        >I understand, Continue.
      </button>
    );
    /* jshint ignore:end */
  },

  handleSubmit: function(e) {
    if (e) {
      e.preventDefault();
    }

    var submit = this.props.onSubmit;
    if (submit) {
      submit();
    }
  }
});

module.exports = BrowserWarningOverlay;
{'fraction_non_alphanumeric': 0.10811413285777977, 'fraction_numerical': 0.002229157378510923, 'mean_word_length': 2.757956448911223, 'pattern_counts': {'":': 0, '<': 43, '<?xml version=': 0, '>': 43, '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': '4152227', 'n_tokens_mistral': 1298, 'n_tokens_neox': 1257, 'n_words': 418}