<commit_before>/**
 * @fileOverview Curve
 */
import React, { PureComponent, SVGProps } from 'react';
import { line as shapeLine, area as shapeArea, CurveFactory, curveBasisClosed, curveBasisOpen,
  curveBasis, curveLinearClosed, curveLinear, curveMonotoneX, curveMonotoneY,
  curveNatural, curveStep, curveStepAfter, curveStepBefore } from 'd3-shape';
import classNames from 'classnames';
import _ from 'lodash';
import { LayoutType, PresentationAttributesWithProps, adaptEventHandlers } from '../util/types';
// @ts-ignore
import { isNumber } from '../util/DataUtils';

interface CurveFactories {
  [index: string] : CurveFactory;
}

const CURVE_FACTORIES: CurveFactories = {
  curveBasisClosed, curveBasisOpen, curveBasis, curveLinearClosed, curveLinear,
  curveMonotoneX, curveMonotoneY, curveNatural, curveStep, curveStepAfter,
  curveStepBefore,
};

type CurveType = 'basis' | 'basisClosed' | 'basisOpen' | 'linear' | 'linearClosed' | 'natural' |
  'monotoneX' | 'monotoneY' | 'monotone' | 'step' | 'stepBefore' | 'stepAfter' | CurveFactory;

interface Point<T> {
  base?: Point<T>
  x: number;
  y: number;
  value: number;
  payload: T;
}<commit_msg>Removed unused variable.<commit_after>/**
 * @fileOverview Curve
 */
import React, { PureComponent } from 'react';
import { line as shapeLine, area as shapeArea, CurveFactory, curveBasisClosed, curveBasisOpen,
  curveBasis, curveLinearClosed, curveLinear, curveMonotoneX, curveMonotoneY,
  curveNatural, curveStep, curveStepAfter, curveStepBefore } from 'd3-shape';
import classNames from 'classnames';
import _ from 'lodash';
import { LayoutType, PresentationAttributesWithProps, adaptEventHandlers } from '../util/types';
// @ts-ignore
import { isNumber } from '../util/DataUtils';

interface CurveFactories {
  [index: string] : CurveFactory;
}

const CURVE_FACTORIES: CurveFactories = {
  curveBasisClosed, curveBasisOpen, curveBasis, curveLinearClosed, curveLinear,
  curveMonotoneX, curveMonotoneY, curveNatural, curveStep, curveStepAfter,
  curveStepBefore,
};

type CurveType = 'basis' | 'basisClosed' | 'basisOpen' | 'linear' | 'linearClosed' | 'natural' |
  'monotoneX' | 'monotoneY' | 'monotone' | 'step' | 'stepBefore' | 'stepAfter' | CurveFactory;

interface Point<T> {
  base?: Point<T>
  x: number;
  y: number;
  value: number;
  payload: T;
}
{'fraction_non_alphanumeric': 0.12343547690979716, 'fraction_numerical': 0.0008631851532153647, 'mean_word_length': 5.75801749271137, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '2442952', 'n_tokens_mistral': 788, 'n_tokens_neox': 752, 'n_words': 189}