<commit_before>import React, { PropTypes, Component } from 'react';
import classNames from 'classnames';
import '../../../device.post.css';

export default class HTC extends Component {
  static propTypes = {
    model: PropTypes.oneOf(['htc-one']),
    landscape: PropTypes.bool,
    screen: PropTypes.oneOfType([
      PropTypes.element,
      PropTypes.array
    ])
  };

  static defaultProps = {
    model: 'htc-one',
    landscape: false
  };

  constructor(props) {
    super(props);
  }

  render() {
    const { model, landscape } = this.props;

    const classes = classNames({
      'marvel-device': true,
      'htc-one': model === 'htc-one',
      landscape: landscape
    });

    return (
      <div className={classes}>
        <div className="top-bar"></div>
        <div className="camera"></div>
        <div className="sensor"></div>
        <div className="speaker"></div>
        <div className="screen">
          {this.props.screen}
        </div>
      </div>
    );
  }
};<commit_msg>Refactoring the HTC component into es6 syntax<commit_after>import React, { PropTypes, Component } from 'react';
import classNames from 'classnames';
import '../../../device.post.css';

const { oneOf, bool, oneOfType, element, array } = PropTypes;

class HTC extends Component {
  render() {
    const { model, landscape } = this.props;

    const classes = classNames({
      'marvel-device': true,
      'htc-one': model === 'htc-one',
      landscape: landscape
    });

    return (
      <div className={classes}>
        <div className="top-bar"></div>
        <div className="camera"></div>
        <div className="sensor"></div>
        <div className="speaker"></div>
        <div className="screen">
          {this.props.screen}
        </div>
      </div>
    );
  }
}

HTC.propTypes = {
  model: oneOf(['htc-one']),
  landscape: bool,
  screen: oneOfType([element,array])
};

HTC.defaultProps = {
  model: 'htc-one',
  landscape: false
};

export default HTC;
{'fraction_non_alphanumeric': 0.1625441696113074, 'fraction_numerical': 0.0005047955577990914, 'mean_word_length': 2.636697247706422, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 27, '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': '4104329', 'n_tokens_mistral': 607, 'n_tokens_neox': 611, 'n_words': 142}