<commit_before>import moment from 'moment';
import React, { Component, PropTypes } from 'react';
import { LineChart, Line, AreaChart, Area, Brush, XAxis, YAxis, CartesianGrid, Tooltip } from 'recharts';

const style = {
  h2: {
    textAlign: 'center',
  },
  lineChart: {
    margin: '0 auto',
  },
};

const formatDate = date => moment(date).format('YYYY-DD-MM');

const customToolTip = props => {
  console.log(props) 
  return (
    <div className="tooltip">
      <p className="label">{formatDate(props.label)}</p>
      {
        props.payload && props.payload.map(item => {
          const { name, value } = item;
          return (
            <p>
              <span>{name}</span> <span>{value}</span><commit_msg>Fix date display<commit_after>import moment from 'moment';
import React, { Component, PropTypes } from 'react';
import { LineChart, Line, AreaChart, Area, Brush, XAxis, YAxis, CartesianGrid, Tooltip } from 'recharts';

const style = {
  h2: {
    textAlign: 'center',
  },
  lineChart: {
    margin: '0 auto',
  },
};

const formatDate = date => moment(date).format('YYYY-MM-DD');

const customToolTip = props => {
  console.log(props) 
  return (
    <div className="tooltip">
      <p className="label">{formatDate(props.label)}</p>
      {
        props.payload && props.payload.map(item => {
          const { name, value } = item;
          return (
            <p>
              <span>{name}</span> <span>{value}</span>
{'fraction_non_alphanumeric': 0.16171389080856946, 'fraction_numerical': 0.0027643400138217, 'mean_word_length': 2.924119241192412, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 25, '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': '5614432', 'n_tokens_mistral': 460, 'n_tokens_neox': 457, 'n_words': 109}