<commit_before>import React, { Component } from 'react';
import Heading from './Heading';
import UserItem from './UserItem';

class App extends Component {

  constructor(props) {
    super(props);
    this.state = {
      users: [
        { name: { first: 'Alice', last: 'A' }, email: '<EMAIL>' },
        { name: { first: 'Bob', last: 'B' }, email: '<EMAIL>' },
        { name: { first: 'Charlie', last: 'C' }, email: '<EMAIL>' }
      ]
    };
  }

  render() {
    return (
      <div>
        <Heading/>
        {this.state.users.map(u => <UserItem user={u} /> )}
      </div>
    );
  }

}

export default App;
<commit_msg>Fetch list of users from server<commit_after>import React, { Component } from 'react';
import Heading from './Heading';
import UserItem from './UserItem';

class App extends Component {

  constructor(props) {
    super(props);
    this.state = {
      users: []
    };
  }

  componentDidMount() {
    fetch('https://randomuser.me/api/?seed=foobar&nat=nz&results=500')
      .then(response => response.json())
      .then(json => this.setState({ users: json.results }));
  }

  render() {
    return (
      <div>
        <Heading/>
        {this.state.users.map(u => <UserItem user={u} /> )}
      </div>
    );
  }

}

export default App;

{'fraction_non_alphanumeric': 0.18174665617623917, 'fraction_numerical': 0.0023603461841070024, 'mean_word_length': 2.4565217391304346, 'pattern_counts': {'":': 0, '<': 14, '<?xml version=': 0, '>': 18, 'https://': 1, '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': '3037766', 'n_tokens_mistral': 435, 'n_tokens_neox': 423, 'n_words': 98}