<commit_before>COMPLEX_SUBJECT_TYPE = 'ComplexSubject'
SAO_URI = 'https://id.kb.se/term/sao'
PREFLABEL = 'prefLabel'
TEMPSUB_TYPE = 'TemporalSubdivision'
SUBJECTS_TO_DELETE = ['pm14bcq70h0qnnr': 'medeltiden',
                      'dbqt2sfx579q4h9': 'medeltiden',
                      '53hlst5p58lc91k': 'forntiden',
                      'hftx5wm1424mg1f': 'forntiden',
                      '64jmtv6q2v2t5b9': 'antiken',
                      'fcrv3tgz3dr0z7r': 'renässansen',
                      '75knvw8r0qh4c88': 'renässansen']

TERMS_TO_UPDATE = (SUBJECTS_TO_DELETE.values() as List).unique()

PrintWriter failedAuthIDs = getReportWriter("failed-to-delete-authIDs")
PrintWriter scheduledForDeletion = getReportWriter("scheduled-for-deletion")


String termToUri(term) {
    return SAO_URI + '/' + URLEncoder.encode(term.capitalize(), "UTF-8").replaceAll("\\+", "%20")
}

String getIdOfTerm(term) {
    String uri<commit_msg>Change from List to Set<commit_after>COMPLEX_SUBJECT_TYPE = 'ComplexSubject'
SAO_URI = 'https://id.kb.se/term/sao'
PREFLABEL = 'prefLabel'
TEMPSUB_TYPE = 'TemporalSubdivision'
SUBJECTS_TO_DELETE = ['pm14bcq70h0qnnr': 'medeltiden',
                      'dbqt2sfx579q4h9': 'medeltiden',
                      '53hlst5p58lc91k': 'forntiden',
                      'hftx5wm1424mg1f': 'forntiden',
                      '64jmtv6q2v2t5b9': 'antiken',
                      'fcrv3tgz3dr0z7r': 'renässansen',
                      '75knvw8r0qh4c88': 'renässansen']

TERMS_TO_UPDATE = SUBJECTS_TO_DELETE.values() as Set

PrintWriter failedAuthIDs = getReportWriter("failed-to-delete-authIDs")
PrintWriter scheduledForDeletion = getReportWriter("scheduled-for-deletion")


String termToUri(term) {
    return SAO_URI + '/' + URLEncoder.encode(term.capitalize(), "UTF-8").replaceAll("\\+", "%20")
}

String getIdOfTerm(term) {
    String uri
{'fraction_non_alphanumeric': 0.1303648068669528, 'fraction_numerical': 0.048283261802575105, 'mean_word_length': 3.1629464285714284, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '1897078', 'n_tokens_mistral': 737, 'n_tokens_neox': 682, 'n_words': 91}