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

var PlayerDivisionRow = React.createClass({
	render: function() {
		return (
			<ul className="small-block-grid-4">
				<PlayerCell player={this.props.Player} admin={this.props.admin} />
				<li>{this.props.wins}</li>
				<li>{this.props.losses}</li>
				<li>{this.props.rank}</li>
			</ul>
		);
	}
});

var DivisionTable = React.createClass({
	render: function() {
		var rows = [];
		var admin = this.props.admin;
		var winDict = this.props.wins;
		var lossDict = this.props.losses;
		this.props.division.Players.forEach(function(player) {
			var wins = 0;
			var losses = 0;
			if (player.Name in winDict) {
				wins = winDict[player.Name];
			}
			if (player.Name in lossDict) {
				losses = lossDict[player.Name];
			}
			rows.push(<PlayerDivisionRow player={player} 
										   wins={wins}
										   losses={losses}
										   rank={-1}
										   admin={admin} />);
		});
		return (
			<div>
				<ul className="small-block-grid-1">
					<li>{this.props.division.Name}</li>
				</ul>
				<ul className="small-block-grid-4">
					<li>Player</li>
					<li>Wins</li>
					<li>Losses</li>
					<li>Rank</li>
				</ul>
				{rows}
			</div>
		);
	}
});

var ConferenceTable = React.createClass({
	render: function() {
		var divisionCount = this.props.conference.Divisions.length;
		var rows = [];
		var admin = this.props.admin;
		var wins = this.props.wins;
		var losses = this.props.losses;
		this.props.conference.Divisions.forEach(function(division) {
			rows.push(
				<li>
					<DivisionTable division={division}
									 admin={admin}
									 wins={wins}
									 losses={losses}/>
				</li>
			);
		});
		return (
			<ul className="small-block-grid-1 centered">
				<li>{this.props.conference.Name}</li>
				<li>
					<ul className="small-block-grid-1 medium-block-grid-2">
						{rows}
					</ul>
				</li><commit_msg>Fixed a problem with capitalization of Player.  Updated the layout to be single-column for each side.<commit_after>/** @jsx React.DOM */

var PlayerDivisionRow = React.createClass({
	render: function() {
		return (
			<ul className="small-block-grid-4">
				<PlayerCell player={this.props.player} admin={this.props.admin} />
				<li>{this.props.wins}</li>
				<li>{this.props.losses}</li>
				<li>{this.props.rank}</li>
			</ul>
		);
	}
});

var DivisionTable = React.createClass({
	render: function() {
		var rows = [];
		var admin = this.props.admin;
		var winDict = this.props.wins;
		var lossDict = this.props.losses;
		this.props.division.Players.forEach(function(player) {
			var wins = 0;
			var losses = 0;
			if (player.Name in winDict) {
				wins = winDict[player.Name];
			}
			if (player.Name in lossDict) {
				losses = lossDict[player.Name];
			}
			rows.push(<PlayerDivisionRow player={player} 
										   wins={wins}
										   losses={losses}
										   rank={-1}
										   admin={admin} />);
		});
		return (
			<div>
				<ul className="small-block-grid-1">
					<li>{this.props.division.Name}</li>
				</ul>
				<ul className="small-block-grid-4">
					<li>Player</li>
					<li>Wins</li>
					<li>Losses</li>
					<li>Rank</li>
				</ul>
				{rows}
			</div>
		);
	}
});

var ConferenceTable = React.createClass({
	render: function() {
		var divisionCount = this.props.conference.Divisions.length;
		var rows = [];
		var admin = this.props.admin;
		var wins = this.props.wins;
		var losses = this.props.losses;
		this.props.conference.Divisions.forEach(function(division) {
			rows.push(
				<li>
					<DivisionTable division={division}
									 admin={admin}
									 wins={wins}
									 losses={losses}/>
				</li>
			);
		});
		return (
			<ul className="small-block-grid-1 centered">
				<li>{this.props.conference.Name}</li>
				<li>
					<ul className="small-block-grid-1">
						{rows}
					</ul>
				</li>
{'fraction_non_alphanumeric': 0.17216117216117216, 'fraction_numerical': 0.004447933019361591, 'mean_word_length': 2.593045112781955, 'pattern_counts': {'":': 0, '<': 75, '<?xml version=': 0, '>': 75, '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': '1752727', 'n_tokens_mistral': 1753, 'n_tokens_neox': 1350, 'n_words': 241}