<commit_before>{{> sparql/prefixes.mustache }}

SELECT (REPLACE(STR(?exercise), "^.*\\/([^/]+)$", "$1") AS ?id)
       ?name
WHERE {
  ?exercise a sp:Query ;
    rdfs:label ?name .
}<commit_msg>Order exercises by query length<commit_after>{{> sparql/prefixes.mustache }}

SELECT (REPLACE(STR(?exercise), "^.*\\/([^/]+)$", "$1") AS ?id)
       ?name
WHERE {
  ?exercise a sp:Query ;
    rdfs:label ?name ;
    sp:text ?query .    
}
ORDER BY STRLEN(?query) {{! Complexity ~ query length }}
{'fraction_non_alphanumeric': 0.22131147540983606, 'fraction_numerical': 0.004098360655737705, 'mean_word_length': 3.5700934579439254, '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': '3818293', 'n_tokens_mistral': 195, 'n_tokens_neox': 176, 'n_words': 40}