<commit_before>"use strict";

var assert = require('assert');

var smush = function(w1,w2) {
    if (w1 === '' || w2.indexOf(w1) === 0) return w2;
    return w1[0] + smush(w1.substr(1), w2);
};

describe('word smushing', function() {
    it('should join words with no overlap', function() {
	assert.equal('thecat', smush('the', 'cat'));
    });

    it('should do single character overlaps', function() {<commit_msg>better failing test<commit_after>"use strict";

var assert = require('assert');

var smush = function(w1,w2) {
    if (w1 === '' || w2.indexOf(w1) === 0) return w2;
    return w1[0] + smush(w1.substr(1), w2);
};

var smushN = function() {
    var args = Array.prototype.slice.call(arguments);

    return '';
};

describe('word smushing', function() {
    it('should join words with no overlap', function() {
	assert.equal('thecat', smush('the', 'cat'));
    });

    it('should do single character overlaps', function() {
{'fraction_non_alphanumeric': 0.19402985074626866, 'fraction_numerical': 0.0255863539445629, 'mean_word_length': 4.15934065934066, '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': '6239799', 'n_tokens_mistral': 326, 'n_tokens_neox': 315, 'n_words': 83}