<commit_before>import OsfAdapter from './osf-adapter';

export default OsfAdapter.extend({
    buildURL(_, __, ___, requestType) {
        // Embed contributors
        var base = this._super(...arguments);
        if (['createRecord', 'updateRecord', 'deleteRecord'].indexOf(requestType) === -1) {
            return `${base}?embed=contributors`;
        } else {
            return base;
        }
    }
});
<commit_msg>Embed node links in node detail request.<commit_after>import OsfAdapter from './osf-adapter';

export default OsfAdapter.extend({
    buildURL(_, __, ___, requestType) {
        // Embed contributors and node_links
        var base = this._super(...arguments);
        if (['createRecord', 'updateRecord', 'deleteRecord'].indexOf(requestType) === -1) {
            return `${base}?embed=contributors&embed=node_links`;
        } else {
            return base;
        }
    }
});

{'fraction_non_alphanumeric': 0.1450719822812846, 'fraction_numerical': 0.0022148394241417496, 'mean_word_length': 2.5873015873015874, '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': '4402230', 'n_tokens_mistral': 258, 'n_tokens_neox': 252, 'n_words': 56}