<commit_before>/* eslint max-len: 0 */
import React from 'react';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';


const products = [];

function addProducts(quantity) {
  const startId = products.length;
  for (let i = 0; i < quantity; i++) {
    const id = startId + i;
    products.push({
      id: id,
      name: 'Item name ' + id,
      price: 2100 + i
    });
  }
}

addProducts(5);

export default class ColumnHeaderSpan extends React.Component {
  render() {
    return (
      <BootstrapTable data={ products }>
        <TableHeaderColumn row='0' rowSpan='2' dataField='id' isKey={ true } >Product ID</TableHeaderColumn>
        <TableHeaderColumn row='0' colSpan='2' dataField='name'>Product Name</TableHeaderColumn>
        <TableHeaderColumn row='1' dataField='name'>Product Name</TableHeaderColumn>
        <TableHeaderColumn row='1' dataField='price'>Product Price</TableHeaderColumn>
      </BootstrapTable>
    );
  }
}<commit_msg>corrected an example<commit_after>/* eslint max-len: 0 */
import React from 'react';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';


const products = [];

function addProducts(quantity) {
  const startId = products.length;
  for (let i = 0; i < quantity; i++) {
    const id = startId + i;
    products.push({
      id: id,
      name: 'Item name ' + id,
      price: 2100 + i
    });
  }
}

addProducts(5);

export default class ColumnHeaderSpan extends React.Component {
  render() {
    return (
      <BootstrapTable data={ products }>
        <TableHeaderColumn row='0' rowSpan='2' dataField='id' isKey={ true } >ID</TableHeaderColumn>
        <TableHeaderColumn row='0' colSpan='2'>Product</TableHeaderColumn>
        <TableHeaderColumn row='1' dataField='name'>Name</TableHeaderColumn>
        <TableHeaderColumn row='1' dataField='price'>Price</TableHeaderColumn>
      </BootstrapTable>
    );
  }
}
{'fraction_non_alphanumeric': 0.1374803972817564, 'fraction_numerical': 0.013591217982226868, 'mean_word_length': 3.5789473684210527, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 23, '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': '5701484', 'n_tokens_mistral': 598, 'n_tokens_neox': 574, 'n_words': 147}