<commit_before>/**
 * Copyright (c) 2011-2014 Berkeley Model United Nations. All rights reserved.
 * Use of this source code is governed by a BSD License (see LICENSE).
 *
 * @jsx React.DOM
 */

'use strict';

var $ = require('jquery');
var React = require('react/addons');

var Button = require('./Button');

var ChangePasswordView = React.createClass({
  mixins: [React.addons.LinkedStateMixin],

  getInitialState: function() {
    return {
      loading: false,
      currentPassword: null,
      newPassword: null,
      newPassword2: null,
    };
  },

  render: function() {
    if (!this.props.isVisible) {
      return <div />;
    }

    return (
      <div
        id="changepassword-container"
        className="change-passwordrounded-bottom transparent">
        <form
          id="changepassword"
          onSubmit={this._handleSubmit}>
          <div className="input">
            <label htmlFor="oldpassword">Current Password</label>
            <input
              type="password"
              className="rounded-small"
              valueLink={this.linkState('currentPassword')}
            />
          </div>
          <div className="input">
            <label htmlFor="newpassword">New Password</label>
            <input
              type="password"
              className="rounded-small"
              valueLink={this.linkState('newPassword')}
            />
          </div>
          <div className="input">
            <label htmlFor="newpassword">New Password (again)</label>
            <input
              type="password"
              className="rounded-small"
              valueLink={this.linkState('newPassword2')}
            />
          </div>
          <div className="rounded-small topbarbutton">
            <Button<commit_msg>Fix typo in ChangePasswordView.<commit_after>/**
 * Copyright (c) 2011-2014 Berkeley Model United Nations. All rights reserved.
 * Use of this source code is governed by a BSD License (see LICENSE).
 *
 * @jsx React.DOM
 */

'use strict';

var $ = require('jquery');
var React = require('react/addons');

var Button = require('./Button');

var ChangePasswordView = React.createClass({
  mixins: [React.addons.LinkedStateMixin],

  getInitialState: function() {
    return {
      loading: false,
      currentPassword: null,
      newPassword: null,
      newPassword2: null,
    };
  },

  render: function() {
    if (!this.props.isVisible) {
      return <div />;
    }

    return (
      <div
        id="changepassword-container"
        className="change-password rounded-bottom transparent">
        <form
          id="changepassword"
          onSubmit={this._handleSubmit}>
          <div className="input">
            <label htmlFor="oldpassword">Current Password</label>
            <input
              type="password"
              className="rounded-small"
              valueLink={this.linkState('currentPassword')}
            />
          </div>
          <div className="input">
            <label htmlFor="newpassword">New Password</label>
            <input
              type="password"
              className="rounded-small"
              valueLink={this.linkState('newPassword')}
            />
          </div>
          <div className="input">
            <label htmlFor="newpassword">New Password (again)</label>
            <input
              type="password"
              className="rounded-small"
              valueLink={this.linkState('newPassword2')}
            />
          </div>
          <div className="rounded-small topbarbutton">
            <Button
{'fraction_non_alphanumeric': 0.12405488658639037, 'fraction_numerical': 0.005600672080649678, 'mean_word_length': 1.9916247906197655, 'pattern_counts': {'":': 0, '<': 43, '<?xml version=': 0, '>': 41, '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': '4331181', 'n_tokens_mistral': 950, 'n_tokens_neox': 916, 'n_words': 205}