<commit_before>var FinanceTable = (function() {
    var financeTable, incomingTotal, outgoingTotal, currentFinances, financeArea,
        freeformRow, rowHeight;

    FinanceTable.prototype = {
        create: function() {
            financeArea = $("form #business_case_financials");
            rowHeight = financeTable.find("tbody tr.stakeholder").length;
            currentFinances = JSON.parse(financeArea.text());<commit_msg>Prevent JS breaking with a blank business case<commit_after>var FinanceTable = (function() {
    var financeTable, incomingTotal, outgoingTotal, currentFinances, financeArea,
        freeformRow, rowHeight;

    FinanceTable.prototype = {
        create: function() {
            financeArea = $("form #business_case_financials");
            rowHeight = financeTable.find("tbody tr.stakeholder").length;
            currentFinances = JSON.parse(financeArea.text()) || {};
{'fraction_non_alphanumeric': 0.10828729281767956, 'fraction_numerical': 0.0, 'mean_word_length': 3.485148514851485, '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': '3009114', 'n_tokens_mistral': 237, 'n_tokens_neox': 236, 'n_words': 50}