<commit_before>'use strict';

module.exports = function (pkg = {}) {
    const LF = '\n';

    const get = require('lodash.get');
    const stripIndents = require('common-tags').stripIndents;

    function h1(text) {
        return `${text}${LF}${'='.repeat(text.length)}`;
    }

    function h2(text) {
        return `${text}${LF}${'-'.repeat(text.length)}`;
    }

    let sections = [];

    // Header
    sections.push(stripIndents`
        ${h1(pkg.name)}
        ${get(pkg, 'description', 'TBD')}
    `);

    // Usage
    sections.push(stripIndents`
        ${h2('Usage')}
        TBD
    `);

    // Testing
    sections.push(stripIndents`
        ${h2('Testing')}
        ${get(pkg, 'scripts.test', 'TBD')}
    `);

    // License
    sections.push(stripIndents`
        ${h2('License')}
        ${get(pkg, 'license', 'TBD')}
    `);

    return sections.join(`${LF}${LF}`);
};<commit_msg>Code cleanup.<commit_after>'use strict';

module.exports = function (pkg = {}) {
    const LF = '\n';

    const get = require('lodash.get');
    const stripIndents = require('common-tags').stripIndents;

    function h1(text) {
        return `${text}${LF}${'='.repeat(text.length)}`;
    }

    function h2(text) {
        return `${text}${LF}${'-'.repeat(text.length)}`;
    }

    let sections = [];

    // Header
    sections.push(stripIndents`
        ${h1(get(pkg, 'name', '&lt;package name&gt;'))}
        ${get(pkg, 'description', '_To be documented._')}
    `);

    // Usage
    sections.push(stripIndents`
        ${h2('Usage')}
        _To be documented._
    `);

    // Testing
    sections.push(stripIndents`
        ${h2('Testing')}
        ${get(pkg, 'scripts.test', '_To be documented._')}
    `);

    // License
    sections.push(stripIndents`
        ${h2('License')}
        ${get(pkg, 'license', '_To be documented._')}
    `);

    return sections.join(`${LF}${LF}`);
};
{'fraction_non_alphanumeric': 0.20991561181434598, 'fraction_numerical': 0.006329113924050633, 'mean_word_length': 2.430379746835443, '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': '1589419', 'n_tokens_mistral': 671, 'n_tokens_neox': 644, 'n_words': 108}