<commit_before>import React, { Component } from 'react';
import PropTypes from 'prop-types';

class Registration extends Component {

  render() {
    const language = this.context.language.PendingRegistrationsView;

    return (
      <li>
        <div className="pending-item">
          <div className="email">
            <p>{this.props.registration.email}</p>
          </div>
          <div className="org">
            <p>{this.props.registration.organization.name || this.props.registration.organization.changePending}</p>
          </div>
          <div className="approve-action">
            <select onChange={this.props.onInputChange.bind(this)} className="capitalize small-form" name={this.props.registration.id}>
              <option className="capitalize">{language.action}</option>
              <option className="capitalize small-form" value="approve">{language.approve}</option>
              <option className="capitalize small-form" value="deny">{language.deny}</option>
            </select>
          </div>
        </div>
      </li>
    );
  }
}


Registration.contextTypes = {
  language: PropTypes.object,
};

export default Registration;
<commit_msg>Changed to functional component<commit_after>import React from 'react';
import PropTypes from 'prop-types';

const Registration = (props, context) => {
  const language = context.language.PendingRegistrationsView;

  return (
    <li>
      <div className="pending-item">
        <div className="email">
          <p>{props.registration.email}</p>
        </div>
        <div className="org">
          <p>{props.registration.organization.name || props.registration.organization.changePending}</p>
        </div>
        <div className="approve-action">
          <select onChange={props.onInputChange} className="capitalize small-form" name={props.registration.id}>
            <option className="capitalize">{language.action}</option>
            <option className="capitalize small-form" value="approve">{language.approve}</option>
            <option className="capitalize small-form" value="deny">{language.deny}</option>
          </select>
        </div>
      </div>
    </li>
  );
};

Registration.contextTypes = {
  language: PropTypes.object,
};

export default Registration;

{'fraction_non_alphanumeric': 0.14254192409532215, 'fraction_numerical': 0.0, 'mean_word_length': 2.942608695652174, 'pattern_counts': {'":': 0, '<': 47, '<?xml version=': 0, '>': 48, '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': '3504098', 'n_tokens_mistral': 629, 'n_tokens_neox': 610, 'n_words': 115}