<commit_before>import React from 'react';
import PropTypes from 'prop-types';
import moment from 'moment';
import { withStyles, IconButton } from 'material-ui';

export const CalendarHeader = (props) => {
  const {
    classes,
    currentMonth,
    onMonthChange,
    leftArrowIcon,
    rightArrowIcon,
  } = props;

  const selectNextMonth = () => onMonthChange(currentMonth.clone().add(1, 'months'));
  const selectPreviousMonth = () => onMonthChange(currentMonth.clone().subtract(1, 'months'));
  const weekdays = [0, 1, 2, 3, 4, 5, 6].map(dow => moment().weekday(dow).format('dd'));

  return (
    <div>
      <div className={classes.switchHeader}>
        <IconButton onClick={selectPreviousMonth}>
          {leftArrowIcon}
        </IconButton>

        <div className={classes.monthName}>
          { currentMonth.format('MMMM YYYY')}
        </div>

        <IconButton onClick={selectNextMonth}>
          {rightArrowIcon}
        </IconButton>
      </div><commit_msg>rename variable to be more human readable<commit_after>import React from 'react';
import PropTypes from 'prop-types';
import moment from 'moment';
import { withStyles, IconButton } from 'material-ui';

export const CalendarHeader = (props) => {
  const {
    classes,
    currentMonth,
    onMonthChange,
    leftArrowIcon,
    rightArrowIcon,
  } = props;

  const selectNextMonth = () => onMonthChange(currentMonth.clone().add(1, 'months'));
  const selectPreviousMonth = () => onMonthChange(currentMonth.clone().subtract(1, 'months'));
  const weekdays = [0, 1, 2, 3, 4, 5, 6].map(dayOfWeek => moment().weekday(dayOfWeek).format('dd'));

  return (
    <div>
      <div className={classes.switchHeader}>
        <IconButton onClick={selectPreviousMonth}>
          {leftArrowIcon}
        </IconButton>

        <div className={classes.monthName}>
          { currentMonth.format('MMMM YYYY')}
        </div>

        <IconButton onClick={selectNextMonth}>
          {rightArrowIcon}
        </IconButton>
      </div>
{'fraction_non_alphanumeric': 0.14185814185814186, 'fraction_numerical': 0.008991008991008992, 'mean_word_length': 3.326133909287257, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 29, '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': '908420', 'n_tokens_mistral': 607, 'n_tokens_neox': 594, 'n_words': 133}