<commit_before>/*** @jsx React.DOM */

var React = require("react");
var Reflux = require("reflux");
var Router = require("react-router");

var api = require("../api");
var MemberListStore = require("../stores/memberListStore");

var ProjectDetails = React.createClass({
  mixins: [Reflux.connect(MemberListStore, "memberList"), Router.State],

  componentWillMount: function() {
    api.request(this.getMemberListEndpoint(), {
      success: function(data, textStatus, jqXHR) {
        MemberListStore.loadInitialData(data);
      }.bind(this)
    });
  },

  getMemberListEndpoint: function() {
    var params = this.getParams();
    return '/projects/' + params.orgId + '/' + params.projectId + '/members/';
  },

  render: function () {
    return (
      <Router.RouteHandler memberList={this.state.memberList} />
    );
  }
});

module.exports = ProjectDetails;<commit_msg>Missing memberList on initial state<commit_after>/*** @jsx React.DOM */

var React = require("react");
var Reflux = require("reflux");
var Router = require("react-router");

var api = require("../api");
var MemberListStore = require("../stores/memberListStore");

var ProjectDetails = React.createClass({
  mixins: [Reflux.connect(MemberListStore, "memberList"), Router.State],

  getInitialState: function(){
    return {
      memberList: []
    };
  },

  componentWillMount: function() {
    api.request(this.getMemberListEndpoint(), {
      success: function(data, textStatus, jqXHR) {
        MemberListStore.loadInitialData(data);
      }.bind(this)
    });
  },

  getMemberListEndpoint: function() {
    var params = this.getParams();
    return '/projects/' + params.orgId + '/' + params.projectId + '/members/';
  },

  render: function () {
    return (
      <Router.RouteHandler memberList={this.state.memberList} />
    );
  }
});

module.exports = ProjectDetails;
{'fraction_non_alphanumeric': 0.16469321851453175, 'fraction_numerical': 0.0, 'mean_word_length': 3.74234693877551, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4821252', 'n_tokens_mistral': 577, 'n_tokens_neox': 560, 'n_words': 109}