<commit_before>import React, {PropTypes} from 'react';
import * as d3 from 'd3';

class CompareForm extends React.Component {
  constructor(props, context) {
    super(props, context);
  }

  renderSummaryStats(meta) {
    const order = ["followers", "following", "public_repos", "public_gists"];
    return (
      <div>
        <table style={{margin: "0 auto"}}>
          <tbody>
            {order.map((item, i) => {
              return (
                <td key={i}>
                  <div>
                    <h3>{meta[item]}</h3>
                    <p>{item}</p>
                  </div>
                </td>
              );
            })}
          </tbody>
        </table>
      </div>
    );
  }

  render() {
    const { meta1, meta2 } = this.props;

    // Would be fun to have an arc around the avator to show what they are writing in etc.
    const arc = d3.arc()
      .innerRadius(125)
      .outerRadius(125 + 5);

    const pie = d3.pie()
      .padAngle(.02);

    const data = [12, 32, 15, 21];


    return (
      <div style={{display: "inline-block", width: "100%", margin: "50px 0"}}>
        <div className="person-left" style={{float:"left", width: "49.75%"}}>
          <div style={{textAlign: "center"}}>
            {/*<svg style={{width: 300, height: 300}}>
              {pie(data).map((slice, i) => <path d={arc(slice)} transform={`translate(${300/2},${300/2})`} key={i} fill={"maroon"} />)}
            </svg>*/}
            <img src={meta1.avatar_url} style={{borderRadius:"50%", width: "250px", border: "5px solid #CCCCCC"}} />
            <h1>{meta1.name}</h1>
            <h2 style={{color: "#666"}}>{meta1.login}</h2>
            {this.renderSummaryStats(meta1)}
          </div>
        </div>

        <div style={{float: "left", width: ".5%", height: "450px", background: "gray"}}/>

        <div className="person-right" style={{float:"right", width: "49.75%"}}>
          <div style={{textAlign: "center"}}>
            <img src={meta2.avatar_url} style={{borderRadius:"50%", width: "250px", border: "5px solid #CCCCCC"}} /><commit_msg>commenting out<commit_after>import React, {PropTypes} from 'react';
// import * as d3 from 'd3';

class CompareForm extends React.Component {
  constructor(props, context) {
    super(props, context);
  }

  renderSummaryStats(meta) {
    const order = ["followers", "following", "public_repos", "public_gists"];
    return (
      <div>
        <table style={{margin: "0 auto"}}>
          <tbody>
            {order.map((item, i) => {
              return (
                <td key={i}>
                  <div>
                    <h3>{meta[item]}</h3>
                    <p>{item}</p>
                  </div>
                </td>
              );
            })}
          </tbody>
        </table>
      </div>
    );
  }

  render() {
    const { meta1, meta2 } = this.props;

    // Would be fun to have an arc around the avator to show what they are writing in etc.
    // const arc = d3.arc()
    //   .innerRadius(125)
    //   .outerRadius(125 + 5);

    // const pie = d3.pie()
    //   .padAngle(.02);

    // const data = [12, 32, 15, 21];


    return (
      <div style={{display: "inline-block", width: "100%", margin: "50px 0"}}>
        <div className="person-left" style={{float:"left", width: "49.75%"}}>
          <div style={{textAlign: "center"}}>
            {/*<svg style={{width: 300, height: 300}}>
              {pie(data).map((slice, i) => <path d={arc(slice)} transform={`translate(${300/2},${300/2})`} key={i} fill={"maroon"} />)}
            </svg>*/}
            <img src={meta1.avatar_url} style={{borderRadius:"50%", width: "250px", border: "5px solid #CCCCCC"}} />
            <h1>{meta1.name}</h1>
            <h2 style={{color: "#666"}}>{meta1.login}</h2>
            {this.renderSummaryStats(meta1)}
          </div>
        </div>

        <div style={{float: "left", width: ".5%", height: "450px", background: "gray"}}/>

        <div className="person-right" style={{float:"right", width: "49.75%"}}>
          <div style={{textAlign: "center"}}>
            <img src={meta2.avatar_url} style={{borderRadius:"50%", width: "250px", border: "5px solid #CCCCCC"}} />
{'fraction_non_alphanumeric': 0.19790176442536958, 'fraction_numerical': 0.039103481163567, 'mean_word_length': 2.0376538740043446, 'pattern_counts': {'":': 0, '<': 65, '<?xml version=': 0, '>': 69, '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': '1367131', 'n_tokens_mistral': 1475, 'n_tokens_neox': 1365, 'n_words': 313}