<commit_before>const assert = require('assert')
const spawn = require('child_process').spawn

/*
 * Start Captagent, Check Exit Code
 */
describe('CaptAgent Initialization', () => {
  let args = [
    "-v"
  ]
  let exitCode

  before((done) => {
    let process = spawn('../src/captagent', args)
    process.on('exit', (code) => {
      exitCode = code
      done()
    })
  })
  it('exit code should be zero', () => {
    assert.equal(exitCode, 0)
  })
 })

/*
 * Start Captagent, Check Exit Code
 */
describe('CaptAgent Version', () => {
  let args = [
    "-v"
  ]
  let exitCode
  let output

  before((done) => {
    let process = spawn('../src/captagent', args)
    process.stdout.on('data', function(data) {
      output = data.toString();
    });
    process.on('exit', (code) => {
      exitCode = code
      done()
    })
  })
  it('exit code should be zero', () => {
    assert.equal(exitCode, 0)
  })
  it('should print version number', () => {
    assert.ok(output.length > 0);
    assert.ok(output.startsWith('version'));
  })
 })<commit_msg>FIX: fixing ci test<commit_after>const assert = require('assert')
const spawn = require('child_process').spawn

/*
 * Start Captagent, Check Exit Code
 */
describe('CaptAgent Version', () => {
  let args = [
    "-v"
  ]
  let exitCode
  let output

  before((done) => {
    let process = spawn('../src/captagent', args)
    process.stdout.on('data', function(data) {
      output = data.toString();
    });
    process.on('exit', (code) => {
      exitCode = code
      done()
    })
  })
  it('exit code should be zero', () => {
    assert.equal(exitCode, 0)
  })
  it('should print version number', () => {
    assert.ok(output.length > 0);
    assert.ok(output.startsWith('version'));
  })
 })

/*
 * Start Captagent, CHeck list of devices and exit
 */
describe('CaptAgent Initialization', () => {
  let args = [
    "-a"
  ]
    let exitCode
    let output

  before((done) => {
    process.stdout.on('data', function(data) {                                                                                                        
      output = data.toString();                                                                                                                       
    });                                                                                                                                               
    process.on('exit', (code) => {                                                                                                                    
      exitCode = code                                                                                                                                 
      done()                                                                                                                                          
    })
  })
  it('exit code should be zero', () => {
    assert.equal(exitCode, 0)
  })
    it('should print the list of devices', () => {
    assert.ok(output.length > 0);
    assert.ok(output.startsWith(''));
  })
 })
{'fraction_non_alphanumeric': 0.14090019569471623, 'fraction_numerical': 0.00228310502283105, 'mean_word_length': 1.224075416968818, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 25, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 32, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '708091', 'n_tokens_mistral': 785, 'n_tokens_neox': 760, 'n_words': 171}