<commit_before>/**
 * Disable arrangements that are not allowed for this contact form
 *
 * @param {Array} packageIDs List of package IDs
 */
function disableNotAllowed(packageIDs)
{
    let options = document.getElementById('arrangement_id').getElementsByTagName('option');
    for (let i = 0; i < options.length; i++) {
        options[i].disabled = (packageIDs.indexOf(parseInt(options[i].value,10)) === -1);
    }
}

/*
 * Get packages that are valid for a given contact form
 *
 * @param {Number} formID
 * @param {String} subdomain
 */
function getContactFormArrangements(formID, subdomain)
{
    if (!formID) {
        return false;<commit_msg>Update admin code a bit more<commit_after>/**
 * Disable arrangements that are not allowed for this contact form
 *
 * @param {Array} packageIDs List of package IDs
 */
function disableNotAllowed(packageIDs)
{
    let optionEls = document.getElementById('arrangement_id').getElementsByTagName('option');
    for (let optionEl of optionEls) {
        optionEl.disabled = !packageIDs.includes(parseInt(optionEl.value,10));
    }
}

/*
 * Get packages that are valid for a given contact form
 *
 * @param {Number} formID
 * @param {String} subdomain
 */
function getContactFormArrangements(formID, subdomain)
{
    if (!formID) {
        return false;
{'fraction_non_alphanumeric': 0.1170130869899923, 'fraction_numerical': 0.004618937644341801, 'mean_word_length': 4.078125, 'pattern_counts': {'":': 0, '<': 4, '<?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': '6218169', 'n_tokens_mistral': 384, 'n_tokens_neox': 381, 'n_words': 113}