<commit_before>'use strict'

const expect = require('chai').expect

describe('security', () => {
  const security = require('./security')

  it('should encode token', () => {
    const user = {id: 'test', name: 'test'}
    const encodedToken = security.encodeToken(user)
    expect(user).to.eql(encodedToken)
    expect(security.decodeToken(encodedToken).name).to.equal(user.name)<commit_msg>fix ut<commit_after>'use strict'

const expect = require('chai').expect

describe('security', () => {
  const security = require('./security')

  it('should encode token', () => {
    const user = {id: 'test', name: 'test'}
    const encodedToken = security.encodeToken(user)
    expect(encodedToken.length > 0).to.equal(true)
    expect(security.decodeToken(encodedToken).name).to.equal(user.name)
{'fraction_non_alphanumeric': 0.17215189873417722, 'fraction_numerical': 0.0012658227848101266, 'mean_word_length': 4.773722627737226, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 8, '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': '2197943', 'n_tokens_mistral': 242, 'n_tokens_neox': 235, 'n_words': 47}