<commit_before>export default {
  name: 'Line',
  props: [
    {
      name: 'type',
      type: `'basis' | 'basisClosed' | 'basisOpen' | 'linear' | 'linearClosed' | 'natural' |
      'monotoneX' | 'monotoneY' | 'monotone' | 'step' | 'stepBefore' | 'stepAfter' | Function`,
      defaultVal: '\'linear\'',
      isOptional: false,
      desc: {
        'en-US': `The interpolation type of line. And customized interpolation function can be set to type. It's the same as type in Area.`,
        'zh-CN': '曲线的插值类型，可以接收自定义的函数。折线对应的 type 为 “linear” 。',
      },
      examples: [{
        name: 'd3-shape interpolation',
        url: 'https://github.com/d3/d3-shape#curves',
        isExternal: true,
      }, {
        name: 'An AreaChart which has two area with different interpolation.',
        url: '/examples/CardinalAreaChart',
      }],
    }, {
      name: 'dataKey',
      type: 'String | Number | Function',
      defaultVal: 'null',
      isOptional: false,
      desc: {
        'en-US': 'The key or getter of a group of data which should be unique in a LineChart.',
        'zh-CN': '每个区域图对应一个唯一的 key，需要在 LineChart 中保证唯一。',
      },
    }, {
      name: 'xAxisId',
      type: 'String | Number',
      defaultVal: '0',
      isOptional: false,
      desc: {
         'en-US': 'The id of x-axis which is corresponding to the data.',
         'zh-CN': '区域图对应的 x 轴的 id 。',
      },
    }, {
      name: 'yAxisId',
      type: 'String | Number',
      defaultVal: '0',
      isOptional: false,
      desc: {
        'en-US': 'The id of y-axis which is corresponding to the data.',
        'zh-CN': '区域图对应的 y 轴的 id 。',
      },
    }, {
      name: 'legendType',
      type: `'line' | 'square' | 'rect'| 'circle' | 'cross' | 'diamond' | 'square' | 'star' | 'triangle' | 'wye' | 'none'`,
      defaultVal: '\'line\'',
      isOptional: true,
      desc: {
        'en-US': 'The type of icon in legend.  If set to \'none\', no legend item will be rendered.',
        'zh-CN': '对应的图例 icon 的类型。',
      },
    }, {
      name: 'dot',
      type: 'Boolean | Object | ReactElement | Function',
      defaultVal: 'true',
      isOptional: false,
      desc: {
        'en-US': 'If false set, dots will not be drawn. If true set, dots will be drawn which have the props calculated internally. If object set, dots will be drawn which have the props mergered by the internal calculated props and the option. If ReactElement set, the option can be the custom dot element.If set a function, the function will be called to render customized dot.',
        'zh-CN': '曲线上的点，接收多种配置。当值为 false ，不渲染点。当值为 true ，点会继承 Line 的属性配置，例如配置了 Area 的 stroke 为 "red"， 点会继承这个属性。当值为一个对象的时候，会把这个对象解析为点的属性，来覆盖默认属性。当值是一个 React Element ，会克隆这个 React Element 来渲染“点”。当值是一个 函数 时，会调用这个函数去渲染自定义的“点”。',
      },
      format: [
        `<Line dataKey="value" dot={false} />`,
        `<Line dataKey="value" dot={{ stroke: 'red', strokeWidth: 2 }} />`,
        `<Line dataKey="value" dot={<CustomizedDot />} />`,
        `<Line dataKey="value" dot={renderDot} />`,
      ],
      examples: [{
        name: 'A line chart with customized dot',
        url: '/examples/CustomizedDotLineChart',
      }],
    }, {
      name: 'activeDot',
      type: 'Boolean | Object | ReactElement | Function',
      defaultVal: 'true',
      isOptional: false,
      desc: {
        'en-US': 'The dot is shown when muser enter a line chart and this chart has tooltip. If false set, no active dot will not be drawn. If true set, active dot will be drawn which have the props calculated internally. If object set, active dot will be drawn which have the props mergered by the internal calculated props and the option. If ReactElement set, the option can be the custom active dot element.If set a function, the function will be called to render customized active dot.',
        'zh-CN': '当图表触发mouseenter事件，并且需要展示 Tooltip 的时候，会展示一个“激活状态的点”。当值为 false ，不渲染“激活状态的点”。当值为 true ，点会继承 Line 的属性配置，例如配置了 Line 的 stroke 为 "red"， 点会继承这个属性。当值为一个对象的时候，会把这个对象解析为点的属性，来覆盖默认属性。当值是一个 React Element ，会克隆这个 React Element 来渲染“点”。当值是一个 函数 时，会调用这个函数去渲染自定义的“点”。',
      },
      format: [
        `<Line dataKey="value" activeDot={false} />`,
        `<Line dataKey="value" activeDot={{ stroke: 'red', strokeWidth: 2, r: 10 }} />`,
        `<Line dataKey="value" activeDot={<CustomizedActiveDot />} />`,
        `<Line dataKey="value" activeDot={renderDot} />`,
      ],
      examples: [{
        name: 'A simple line chart',
        url: '/examples/SimpleLineChart',
      }],<commit_msg>Fixes English string typo for activeDot section in Line.js docs<commit_after>export default {
  name: 'Line',
  props: [
    {
      name: 'type',
      type: `'basis' | 'basisClosed' | 'basisOpen' | 'linear' | 'linearClosed' | 'natural' |
      'monotoneX' | 'monotoneY' | 'monotone' | 'step' | 'stepBefore' | 'stepAfter' | Function`,
      defaultVal: '\'linear\'',
      isOptional: false,
      desc: {
        'en-US': `The interpolation type of line. And customized interpolation function can be set to type. It's the same as type in Area.`,
        'zh-CN': '曲线的插值类型，可以接收自定义的函数。折线对应的 type 为 “linear” 。',
      },
      examples: [{
        name: 'd3-shape interpolation',
        url: 'https://github.com/d3/d3-shape#curves',
        isExternal: true,
      }, {
        name: 'An AreaChart which has two area with different interpolation.',
        url: '/examples/CardinalAreaChart',
      }],
    }, {
      name: 'dataKey',
      type: 'String | Number | Function',
      defaultVal: 'null',
      isOptional: false,
      desc: {
        'en-US': 'The key or getter of a group of data which should be unique in a LineChart.',
        'zh-CN': '每个区域图对应一个唯一的 key，需要在 LineChart 中保证唯一。',
      },
    }, {
      name: 'xAxisId',
      type: 'String | Number',
      defaultVal: '0',
      isOptional: false,
      desc: {
         'en-US': 'The id of x-axis which is corresponding to the data.',
         'zh-CN': '区域图对应的 x 轴的 id 。',
      },
    }, {
      name: 'yAxisId',
      type: 'String | Number',
      defaultVal: '0',
      isOptional: false,
      desc: {
        'en-US': 'The id of y-axis which is corresponding to the data.',
        'zh-CN': '区域图对应的 y 轴的 id 。',
      },
    }, {
      name: 'legendType',
      type: `'line' | 'square' | 'rect'| 'circle' | 'cross' | 'diamond' | 'square' | 'star' | 'triangle' | 'wye' | 'none'`,
      defaultVal: '\'line\'',
      isOptional: true,
      desc: {
        'en-US': 'The type of icon in legend.  If set to \'none\', no legend item will be rendered.',
        'zh-CN': '对应的图例 icon 的类型。',
      },
    }, {
      name: 'dot',
      type: 'Boolean | Object | ReactElement | Function',
      defaultVal: 'true',
      isOptional: false,
      desc: {
        'en-US': 'If false set, dots will not be drawn. If true set, dots will be drawn which have the props calculated internally. If object set, dots will be drawn which have the props mergered by the internal calculated props and the option. If ReactElement set, the option can be the custom dot element.If set a function, the function will be called to render customized dot.',
        'zh-CN': '曲线上的点，接收多种配置。当值为 false ，不渲染点。当值为 true ，点会继承 Line 的属性配置，例如配置了 Area 的 stroke 为 "red"， 点会继承这个属性。当值为一个对象的时候，会把这个对象解析为点的属性，来覆盖默认属性。当值是一个 React Element ，会克隆这个 React Element 来渲染“点”。当值是一个 函数 时，会调用这个函数去渲染自定义的“点”。',
      },
      format: [
        `<Line dataKey="value" dot={false} />`,
        `<Line dataKey="value" dot={{ stroke: 'red', strokeWidth: 2 }} />`,
        `<Line dataKey="value" dot={<CustomizedDot />} />`,
        `<Line dataKey="value" dot={renderDot} />`,
      ],
      examples: [{
        name: 'A line chart with customized dot',
        url: '/examples/CustomizedDotLineChart',
      }],
    }, {
      name: 'activeDot',
      type: 'Boolean | Object | ReactElement | Function',
      defaultVal: 'true',
      isOptional: false,
      desc: {
        'en-US': 'The active dot is shown when a user enters a line chart and this chart has tooltip. If set to false, no active dot will be drawn. If set to true, active dot will be drawn with the props calculated internally. If passed an object, active dot will be drawn, and the internally calculated props will be merged with the key value pairs of the passed object. If passed a ReactElement, the option can be the custom active dot element. If passed a function, the function will be called to render a customized active dot.',
        'zh-CN': '当图表触发mouseenter事件，并且需要展示 Tooltip 的时候，会展示一个“激活状态的点”。当值为 false ，不渲染“激活状态的点”。当值为 true ，点会继承 Line 的属性配置，例如配置了 Line 的 stroke 为 "red"， 点会继承这个属性。当值为一个对象的时候，会把这个对象解析为点的属性，来覆盖默认属性。当值是一个 React Element ，会克隆这个 React Element 来渲染“点”。当值是一个 函数 时，会调用这个函数去渲染自定义的“点”。',
      },
      format: [
        `<Line dataKey="value" activeDot={false} />`,
        `<Line dataKey="value" activeDot={{ stroke: 'red', strokeWidth: 2, r: 10 }} />`,
        `<Line dataKey="value" activeDot={<CustomizedActiveDot />} />`,
        `<Line dataKey="value" activeDot={renderDot} />`,
      ],
      examples: [{
        name: 'A simple line chart',
        url: '/examples/SimpleLineChart',
      }],
{'fraction_non_alphanumeric': 0.13862038664323376, 'fraction_numerical': 0.001977152899824253, 'mean_word_length': 2.666935159081756, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 23, 'https://': 2, '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': '1835867', 'n_tokens_mistral': 3262, 'n_tokens_neox': 3372, 'n_words': 971}