<commit_before>import Container from '../../src/components/container'
import FakePlayback from '../../src/base/playback'
import Events from '../../src/base/events'

describe('Container', function() {
  beforeEach(function() {
    this.playback = new FakePlayback()
    this.container = new Container({playback: this.playback})
  })

  it('uses settings from playback', function() {
    expect(this.container.settings).to.deep.equal((new FakePlayback).settings)
  })

  it('gets playback type', function() {
    expect(this.container.getPlaybackType()).to.equal(Playback.NO_OP)
  })

  it('listens to playback:progress event', function() {
    sinon.spy(this.container, 'progress')
    this.container.bindEvents()
    this.playback.trigger(Events.PLAYBACK_PROGRESS)
    assert.ok(this.container.progress.calledOnce)
  })
<commit_msg>imports playback<commit_after>import Container from '../../src/components/container'
import FakePlayback from '../../src/base/playback'
import Playback from '../../src/base/playback'
import Events from '../../src/base/events'

describe('Container', function() {
  beforeEach(function() {
    this.playback = new FakePlayback()
    this.container = new Container({playback: this.playback})
  })

  it('uses settings from playback', function() {
    expect(this.container.settings).to.deep.equal((new FakePlayback).settings)
  })

  it('gets playback type', function() {
    expect(this.container.getPlaybackType()).to.equal(Playback.NO_OP)
  })

  it('listens to playback:progress event', function() {
    sinon.spy(this.container, 'progress')
    this.container.bindEvents()
    this.playback.trigger(Events.PLAYBACK_PROGRESS)
    assert.ok(this.container.progress.calledOnce)
  })

{'fraction_non_alphanumeric': 0.15869311551925322, 'fraction_numerical': 0.0, 'mean_word_length': 4.2607361963190185, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6626008', 'n_tokens_mistral': 525, 'n_tokens_neox': 516, 'n_words': 93}