<commit_before>import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import bindAll from 'lodash/bindAll';
import pick from 'lodash/pick';
import xor from 'lodash/xor';

import * as util from '../../../../utils';

import styles from './style.css';
import AxisChart from '../../../axis-chart';
import { XAxis, YAxis } from '../../../axis';
import {
  Bars,
  GroupedBars,
  StackedBars,
} from '../../../bar';
import Legend from '../../../legend';

const FOCUSED_STYLE = {
  stroke: '#000',
  strokeWidth: 2,
};

const DEFAULT_PADDING_NO_AXIS_LABELS = {
  top: 10,
  right: 10,
  bottom: 20,
  left: 30,
};

const DEFAULT_PADDING_WITH_AXIS_LABELS = {
  top: 10,
  right: 10,
  bottom: 50,
  left: 60,
};

export default class BarChart extends React.PureComponent {
  constructor(props) {
    super(props);<commit_msg>Add constant representing default axis properties.<commit_after>import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import bindAll from 'lodash/bindAll';
import pick from 'lodash/pick';
import xor from 'lodash/xor';

import * as util from '../../../../utils';

import styles from './style.css';
import AxisChart from '../../../axis-chart';
import { XAxis, YAxis } from '../../../axis';
import {
  Bars,
  GroupedBars,
  StackedBars,
} from '../../../bar';
import Legend from '../../../legend';

const FOCUSED_STYLE = {
  stroke: '#000',
  strokeWidth: 2,
};

const DEFAULT_PADDING_NO_AXIS_LABELS = {
  top: 10,
  right: 10,
  bottom: 20,
  left: 30,
};

const DEFAULT_PADDING_WITH_AXIS_LABELS = {
  top: 10,
  right: 10,
  bottom: 50,
  left: 60,
};

const DEFAULT_AXIS_PROPERTIES = {
  height: 100,
  tickFontFamily: 'Helvetica',
  tickFontSize: 12,
  tickFormat: null,
  width: 230,
};
export default class BarChart extends React.PureComponent {
  constructor(props) {
    super(props);
{'fraction_non_alphanumeric': 0.16385669125395153, 'fraction_numerical': 0.02528977871443625, 'mean_word_length': 3.4787735849056602, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '127160', 'n_tokens_mistral': 698, 'n_tokens_neox': 655, 'n_words': 188}