<commit_before>require 'udefine/global'
bodyguard = require '../dist/bodyguard'
{expect} = require 'chai'


describe 'bodyguard', ->
  it 'is a function', ->
    expect(bodyguard).to.be.a('function')

  it 'has silence property', ->
    expect(bodyguard).to.have.a.property('silent')
<commit_msg>Updated signature test<commit_after>require 'udefine/global'
bodyguard = require '../dist/bodyguard'
{expect} = require 'chai'


describe 'bodyguard', ->
  it 'is a function', ->
    expect(bodyguard).to.be.a('function')

  it 'throws an exception when no name is defined', ->
    expect(-> bodyguard()).to.throw(Error)
    
  it 'returns undefined if no definition or object is defined', ->
    expect(bodyguard('test')).to.be.a('undefined')
    expect(bodyguard('test')).to.equal(undefined)

  it 'has silence property', ->
    expect(bodyguard).to.have.a.property('silent')

{'fraction_non_alphanumeric': 0.16838487972508592, 'fraction_numerical': 0.0, 'mean_word_length': 4.141176470588236, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 12, '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': '1838635', 'n_tokens_mistral': 281, 'n_tokens_neox': 275, 'n_words': 65}