<commit_before>var React = require('react');
var Router = require('react-router');
var Route = Router.Route;
var RouteHandler = Router.RouteHandler;

// This is the class that displays a Ping confirmation (or Ping error) momentarily...
// then it redirects to the client home, automatically.
var PingConfirm = React.createClass({
  mixins: [Router.Navigation, Router.State],
  componentDidMount: function() {
    var outerScope = this;
    window.setTimeout((function() {
      outerScope.transitionTo('directory');
    }), 6000);

  },
  render: function() {

    if(this.props.params.success==='1') {
      return(

        <div className="main-content container-fluid">

          <div className="row client-app-logo">
            <img className="col-xs-4 col-sm-3 col-md-2" src="images/logo_03.png" />
          </div>

          <div className="row">

            <div className="col-xs-8 col-xs-push-2 client-ping">

              <p className="client-large text-center">Success!</p>
              <p className="client-medium text-center">Your message has been sent!</p>

            </div>
          </div>
        </div>

      );
    } else {
      return(

        <div className="main-content container-fluid">
          <div className="row client-app-logo">
            <img className="col-xs-4 col-sm-3 col-md-2" src="images/logo_03.png" />
          </div>
          <div className="row">
            <div className="col-xs-8 col-xs-push-2 client-ping">

              <p className="client-large text-center">Error!</p>
              <p className="client-medium text-center">Try sending your message again, or choose another recipient.</p>

            </div>
          </div>
        </div>

      );
    }
  }
});

module.exports = PingConfirm;<commit_msg>[Refactor] Adds various minor refactors<commit_after>var React = require('react');
var Router = require('react-router');
var Route = Router.Route;
var RouteHandler = Router.RouteHandler;

// This is the class that displays a Ping confirmation (or Ping error) momentarily...
// then it redirects to the client home, automatically.
var PingConfirm = React.createClass({
  mixins: [Router.Navigation, Router.State],
  componentDidMount: function() {
    var outerScope = this;
    window.setTimeout((function() {
      outerScope.transitionTo('/');
    }), 7000);

  },
  render: function() {

    if(this.props.params.success==='1') {
      return(

        <div className="main-content container-fluid">

          <div className="row client-app-logo">
            <img className="col-xs-4 col-sm-3 col-md-2" src="images/logo_03.png" />
          </div>

          <div className="row">

            <div className="col-xs-8 col-xs-push-2 client-ping">

              <p className="client-large text-center">Success!</p>
              <p className="client-medium text-center">Your message has been sent.</p>

            </div>
          </div>

        </div>

      );
    } else {
      return(

        <div className="main-content container-fluid">

          <div className="row client-app-logo">
            <img className="col-xs-4 col-sm-3 col-md-2" src="images/logo_03.png" />
          </div>

          <div className="row">
            <div className="col-xs-8 col-xs-push-2 client-ping">

              <p className="client-large text-center">ERROR!</p>
              <p className="client-medium text-center">Please try sending your message again, or choose another recipient.</p>

            </div>
          </div>

        </div>

      );
    }
  }
});

module.exports = PingConfirm;
{'fraction_non_alphanumeric': 0.1480548558634201, 'fraction_numerical': 0.010635320458998041, 'mean_word_length': 2.260948905109489, 'pattern_counts': {'":': 0, '<': 55, '<?xml version=': 0, '>': 55, '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': '6032195', 'n_tokens_mistral': 1084, 'n_tokens_neox': 1036, 'n_words': 246}