<commit_before>import React, { PropTypes } from 'react';
import classNames from 'classnames';
import { line } from 'd3-shape';

import { eventHandleWrapper } from '../../../utils/events';
import {
  CommonPropTypes,
  CommonDefaultProps,
  propResolver,
  PureComponent,
} from '../../../utils';

export default class Line extends PureComponent {
  render() {
    const {
      className,
      data,
      dataAccessors,
      onClick,
      onMouseLeave,
      onMouseMove,
      onMouseOver,
      scales,
      style,
    } = this.props;

    const path = line()
      .x((datum) => scales.x(propResolver(datum, dataAccessors.x)))
      .y((datum) => scales.y(propResolver(datum, dataAccessors.y)));

    return (
      <path
        className={classNames(className)}
        d={path(data)}
        fill="none"
        onClick={eventHandleWrapper(onClick, data, this)}
        onMouseLeave={eventHandleWrapper(onMouseLeave, data, this)}
        onMouseMove={eventHandleWrapper(onMouseMove, data, this)}
        onMouseOver={eventHandleWrapper(onMouseOver, data, this)}
        style={style}
      />
    );
  }
}<commit_msg>apply no class if no class name<commit_after>import React, { PropTypes } from 'react';
import classNames from 'classnames';
import { line } from 'd3-shape';

import { eventHandleWrapper } from '../../../utils/events';
import {
  CommonPropTypes,
  CommonDefaultProps,
  propResolver,
  PureComponent,
} from '../../../utils';

export default class Line extends PureComponent {
  render() {
    const {
      className,
      data,
      dataAccessors,
      onClick,
      onMouseLeave,
      onMouseMove,
      onMouseOver,
      scales,
      style,
    } = this.props;

    const path = line()
      .x((datum) => scales.x(propResolver(datum, dataAccessors.x)))
      .y((datum) => scales.y(propResolver(datum, dataAccessors.y)));

    return (
      <path
        className={className && classNames(className)}
        d={path(data)}
        fill="none"
        onClick={eventHandleWrapper(onClick, data, this)}
        onMouseLeave={eventHandleWrapper(onMouseLeave, data, this)}
        onMouseMove={eventHandleWrapper(onMouseMove, data, this)}
        onMouseOver={eventHandleWrapper(onMouseOver, data, this)}
        style={style}
      />
    );
  }
}
{'fraction_non_alphanumeric': 0.13467424573677306, 'fraction_numerical': 0.0008745080891998251, 'mean_word_length': 2.8196994991652753, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '4979606', 'n_tokens_mistral': 679, 'n_tokens_neox': 681, 'n_words': 145}