<commit_before>import React from "react";
require('./style.scss');

export default class Message extends React.Component {  
  render() {
    return (<div className="message"> { this.props.message.text } </div>)
  }
}

Message.propTypes = {
  message: React.PropTypes.array.isRequired
}<commit_msg>refactor Message component to export function<commit_after>import React from "react";
require('./style.scss');

const Message = ({ author, text }) => (
  <div className="message">
    <div>
      { author }>
    </div>
    <div>
      { text }>
    </div>
  </div>
)

Message.propTypes = {
  author: React.PropTypes.string.isRequired,
  text: React.PropTypes.string.isRequired
}

export default Message;
{'fraction_non_alphanumeric': 0.15121255349500715, 'fraction_numerical': 0.0, 'mean_word_length': 3.68, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 14, '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': '5877745', 'n_tokens_mistral': 220, 'n_tokens_neox': 217, 'n_words': 51}