<commit_before><?php

// Side Panel UI
echo $HTML->side_panel_start();
echo $HTML->para('To import CSV data, upload a new file and then select it from the menu.');
echo $HTML->para('CSV data must have the following headings: title, building, street, town, region, country, postcode');
echo $HTML->para('Imported locations will be added to the queue to be plotted onto the map.');
echo $HTML->side_panel_end();

// Main Panel UI
echo $HTML->main_panel_start();
include('_subnav.php');

echo $HTML->heading1('Import Locations');

if ($message) {
    echo $message;
}
<commit_msg>added notification when rows fail to be imported<commit_after><?php

// Side Panel UI
echo $HTML->side_panel_start();
echo $HTML->para('To import CSV data, upload a new file and then select it from the menu.');
echo $HTML->para('CSV data must have the following headings: title, building, street, town, region, country, postcode');
echo $HTML->para('Imported locations will be added to the queue to be plotted onto the map.');
echo $HTML->side_panel_end();

// Main Panel UI
echo $HTML->main_panel_start();
include('_subnav.php');

echo $HTML->heading1('Import Locations');

if ($message) {
    echo $message;
}

if($Importer->get_failed_rows() > 0) {
    echo $HTML->failure_message('%s rows could not be imported due to missing column data', $Importer->get_failed_rows());
}

{'fraction_non_alphanumeric': 0.1395864106351551, 'fraction_numerical': 0.0022156573116691287, 'mean_word_length': 5.159090909090909, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 21, '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': '3745433', 'n_tokens_mistral': 407, 'n_tokens_neox': 407, 'n_words': 156}