<commit_before>import React from 'react';
import isEmpty from 'lodash.isempty';
import MyPoll from './MyPoll';

export default function DisplayCharts({charts}){
  if(charts && !isEmpty(charts)){
    return (
      <div>
        {charts.map(chartData => {
          return (
            <div key={chartData.id}>
              <h2>{chartData.title}</h2>
              {chartData.description}
              <MyPoll data={chartData.data} chartId={chartData.id}/>
            </div>
          );
        })}
      </div>
    );
  } else {
    return (
      <div>
        Is Empty
      </div>
    );
  }
}
<commit_msg>You can now click a chart on the front page to vote<commit_after>import React from 'react';
import isEmpty from 'lodash.isempty';
import MyPoll from './MyPoll';
import { Link } from 'react-router';

export default function DisplayCharts({charts}){
  if(charts && !isEmpty(charts)){
    return (
      <div>
        {charts.map(chartData => {
          return (
            <div key={chartData.id}>
              <h2>
                <Link to={"poll/" + chartData.id}>
                {chartData.title}
                </Link>
              </h2>
              {chartData.description}
              <br />
              <Link to={"poll/" + chartData.id}>
              <MyPoll data={chartData.data} chartId={chartData.id}/>
              </Link>
            </div>
          );
        })}
      </div>
    );
  } else {
    return (
      <div>
        Is Empty
      </div>
    );
  }
}

{'fraction_non_alphanumeric': 0.14447403462050598, 'fraction_numerical': 0.002663115845539281, 'mean_word_length': 1.5561224489795917, 'pattern_counts': {'":': 0, '<': 26, '<?xml version=': 0, '>': 28, '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': '5877208', 'n_tokens_mistral': 471, 'n_tokens_neox': 453, 'n_words': 100}