<commit_before>export function updateUrlWithoutReload($state, navItem) {
    $state.go('.', {id: navItem.id}, {notify: false});
}


const defaultDefinitions = {
    children: [],
    parent: null
};


export function hasRelatedDefinitions(definitions = defaultDefinitions) {
    const relatedCount = definitions.children.length
        + (definitions.parent
            ? 1
            : 0);

    return relatedCount > 0;
}


<commit_msg>Indicators: "Related Indicators" heading is displayed even if there are no child indicators<commit_after>export function updateUrlWithoutReload($state, navItem) {
    $state.go('.', {id: navItem.id}, {notify: false});
}


const defaultDefinitions = {
    children: [],
    parent: null
};


export function hasRelatedDefinitions(definitions = defaultDefinitions) {
    return definitions.children.length > 0;
}



{'fraction_non_alphanumeric': 0.11633372502937721, 'fraction_numerical': 0.004700352526439483, 'mean_word_length': 3.8135593220338984, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '3009808', 'n_tokens_mistral': 254, 'n_tokens_neox': 231, 'n_words': 60}