<commit_before>import React from "react";
import * as B from "react-bootstrap";
import {Link} from "react-router";
import {LinkContainer} from "react-router-bootstrap";

// @ToDo:
// - Subscribe
// - Security
// - Wait for data to be ready
// - Style table

const Users = React.createClass({

  getUsers() {
    //console.log(Meteor.users.find())
    return (
      Meteor.users.find()
    );
  },

  renderUsers() {
    //console.log(this.getUsers())
    return this.getUsers().map((user) => {
      //console.log(user);
      return (
        <User key={user._id} user={user} />
      );
    });
  },

  render() {
    return (
      <table>
        <thead>
          <tr>
            <th>Family Name</th>
            <th>Given Name</th>
            <th>E-mail</th>
            <th>Roles</th>
            <th>Lost Login</th>
            <th>Active</th>
          </tr>
        </thead>
        <tbody>
        {this.renderUsers()}
        </tbody>
      </table>
    );
  }
});

const User = React.createClass({
  propTypes: {
    user: React.PropTypes.object.isRequired,
  },

  render() {
    return (
      <LinkContainer to={this.props.user.profile.name}>
        <tr>
          <td>
          {this.props.user.services.google.family_name}
          </td>
          <td><commit_msg>Fix typo.<commit_after>import React from "react";
import * as B from "react-bootstrap";
import {Link} from "react-router";
import {LinkContainer} from "react-router-bootstrap";

// @ToDo:
// - Subscribe
// - Security
// - Wait for data to be ready
// - Style table

const Users = React.createClass({

  getUsers() {
    //console.log(Meteor.users.find())
    return (
      Meteor.users.find()
    );
  },

  renderUsers() {
    //console.log(this.getUsers())
    return this.getUsers().map((user) => {
      //console.log(user);
      return (
        <User key={user._id} user={user} />
      );
    });
  },

  render() {
    return (
      <table>
        <thead>
          <tr>
            <th>Family Name</th>
            <th>Given Name</th>
            <th>E-mail</th>
            <th>Roles</th>
            <th>Last Login</th>
            <th>Active</th>
          </tr>
        </thead>
        <tbody>
        {this.renderUsers()}
        </tbody>
      </table>
    );
  }
});

const User = React.createClass({
  propTypes: {
    user: React.PropTypes.object.isRequired,
  },

  render() {
    return (
      <LinkContainer to={this.props.user.profile.name}>
        <tr>
          <td>
          {this.props.user.services.google.family_name}
          </td>
          <td>
{'fraction_non_alphanumeric': 0.16990668740279938, 'fraction_numerical': 0.0, 'mean_word_length': 1.7343251859723698, 'pattern_counts': {'":': 0, '<': 55, '<?xml version=': 0, '>': 57, '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': '1999894', 'n_tokens_mistral': 859, 'n_tokens_neox': 841, 'n_words': 158}