<commit_before>var assert = require('chai').assert;
var fun = require('../lib/utils').stripStackOverflow;

describe('stripStackOverflow', function() {
    it('should not strip -f parameters in the title', function () {
        var title = `monitoring - How does the "tail" command's "-f" parameter ...`;
        assert.equal(fun(title), title);
    });
    it('should strip Unix & Linux Stack Exchange', function() {
        assert.equal(
            fun('table - combine text files column-wise - Unix & Linux Stack Exchange'),
            'table - combine text files column-wise'
        );
    });
    it('should strip Unix', function() {
        assert.equal(
            fun('table - combine text files column-wise - Unix ...'),
            'table - combine text files column-wise'
        );
    });
    it('should preserve titles with one dash on the left', function() {<commit_msg>Remove ES6 template strings for node 0.10+ compatibility<commit_after>var assert = require('chai').assert;
var fun = require('../lib/utils').stripStackOverflow;

describe('stripStackOverflow', function() {
    it('should not strip -f parameters in the title', function () {
        var title = 'monitoring - How does the "tail" command\'s "-f" parameter ...';
        assert.equal(fun(title), title);
    });
    it('should strip Unix & Linux Stack Exchange', function() {
        assert.equal(
            fun('table - combine text files column-wise - Unix & Linux Stack Exchange'),
            'table - combine text files column-wise'
        );
    });
    it('should strip Unix', function() {
        assert.equal(
            fun('table - combine text files column-wise - Unix ...'),
            'table - combine text files column-wise'
        );
    });
    it('should preserve titles with one dash on the left', function() {
{'fraction_non_alphanumeric': 0.13791208791208792, 'fraction_numerical': 0.002197802197802198, 'mean_word_length': 2.5154440154440154, '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': '7561877', 'n_tokens_mistral': 477, 'n_tokens_neox': 463, 'n_words': 161}