<commit_before>import { expect } from 'chai';

import Iterator from 'Src/iterator';

import sheet1x1 from '../fixtures/1x1/data';
import sheet1x1Object from '../fixtures/1x1/sheet';

import sheet2x2 from '../fixtures/2x2/data';
import sheet2x2Object from '../fixtures/2x2/sheet';

import sheet1x1Offset from '../fixtures/1x1-offset/data';
import sheet1x1OffsetObject from '../fixtures/1x1-offset/sheet';

import sheet2x2Offset from '../fixtures/2x2-offset/data';
import sheet2x2OffsetObject from '../fixtures/2x2-offset/sheet';


describe('Iterator', () => {
  let iterator;

  it('should set sheet property on initialization', () => {
    iterator = new Iterator(sheet1x1Object);
    expect(iterator.sheet).to.equal(sheet1x1Object);
  });

  it('should set position property on initialization as first row index', () => {
    iterator = new Iterator(sheet1x1Object);
    expect(iterator.position).to.equal(sheet1x1Object.firstRow);
  });

  describe('selectColumns', () => {
    it('should return unique and sorted sequence of numbers', () => {
      expect(Iterator.selectColumns([1, 5, 2, 2, 6])).to.deep.equal([1, 2, 5, 6]);
    });
  });
});<commit_msg>Remove unused imports from iterator.spec.js<commit_after>import { expect } from 'chai';

import Iterator from 'Src/iterator';

import sheet1x1Object from '../fixtures/1x1/sheet';


describe('Iterator', () => {
  let iterator;

  it('should set sheet property on initialization', () => {
    iterator = new Iterator(sheet1x1Object);
    expect(iterator.sheet).to.equal(sheet1x1Object);
  });

  it('should set position property on initialization as first row index', () => {
    iterator = new Iterator(sheet1x1Object);
    expect(iterator.position).to.equal(sheet1x1Object.firstRow);
  });

  describe('selectColumns', () => {
    it('should return unique and sorted sequence of numbers', () => {
      expect(Iterator.selectColumns([1, 5, 2, 2, 6])).to.deep.equal([1, 2, 5, 6]);
    });
  });
});
{'fraction_non_alphanumeric': 0.16265984654731458, 'fraction_numerical': 0.03580562659846547, 'mean_word_length': 4.272237196765499, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, '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': '3598725', 'n_tokens_mistral': 638, 'n_tokens_neox': 613, 'n_words': 144}