<commit_before>import React, { useState, useContext } from 'react';
import { Grid, Typography } from '@material-ui/core';
import { DatePicker, KeyboardDatePicker } from 'material-ui-pickers';
import { createRegressionDay as createRegressionDayRenderer } from './RegressionDay';
import { MuiPickersContext } from 'material-ui-pickers';
import Ad from '_shared/Ad';
import LeftArrowIcon from '@material-ui/icons/KeyboardArrowLeft';
import RightArrowIcon from '@material-ui/icons/KeyboardArrowRight';

function Regression() {
  const utils = useContext(MuiPickersContext);
  const [date, changeDate] = useState(new Date('2019-01-01T00:00:00.000Z'));

  const sharedProps = {
    value: date,
    onChange: changeDate,
    style: { margin: '0 10px' },
    format: 'MMMM d',
    leftArrowIcon: <LeftArrowIcon data-arrow="left" />,
    rightArrowIcon: <RightArrowIcon data-arrow="right" />,
    renderDay: createRegressionDayRenderer(utils!),
    KeyboardButtonProps: {
      className: 'keyboard-btn',
    },
  };

  return (
    <div style={{ marginTop: 30 }}>
      <Typography align="center" variant="h5" gutterBottom>
        This page is using for the automate regression of material-ui-pickers.
      </Typography>

      <Ad />
<commit_msg>Remove Ad from regression page<commit_after>import React, { useState, useContext } from 'react';
import { Grid, Typography } from '@material-ui/core';
import { DatePicker, KeyboardDatePicker } from 'material-ui-pickers';
import { createRegressionDay as createRegressionDayRenderer } from './RegressionDay';
import { MuiPickersContext } from 'material-ui-pickers';
import LeftArrowIcon from '@material-ui/icons/KeyboardArrowLeft';
import RightArrowIcon from '@material-ui/icons/KeyboardArrowRight';

function Regression() {
  const utils = useContext(MuiPickersContext);
  const [date, changeDate] = useState(new Date('2019-01-01T00:00:00.000Z'));

  const sharedProps = {
    value: date,
    onChange: changeDate,
    style: { margin: '0 10px' },
    format: 'MMMM d',
    leftArrowIcon: <LeftArrowIcon data-arrow="left" />,
    rightArrowIcon: <RightArrowIcon data-arrow="right" />,
    renderDay: createRegressionDayRenderer(utils!),
    KeyboardButtonProps: {
      className: 'keyboard-btn',
    },
  };

  return (
    <div style={{ marginTop: 30 }}>
      <Typography align="center" variant="h5" gutterBottom>
        This page is using for the automate regression of material-ui-pickers.
      </Typography>

{'fraction_non_alphanumeric': 0.12652563059397884, 'fraction_numerical': 0.01871440195280716, 'mean_word_length': 4.416299559471366, 'pattern_counts': {'":': 0, '<': 14, '<?xml version=': 0, '>': 14, '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': '947948', 'n_tokens_mistral': 769, 'n_tokens_neox': 758, 'n_words': 185}