<commit_before>/**
 * Utility functions
 */

function redirectVersion() {
    var url = document.URL.split("?");
    var selected_resource_id = document.getElementById('version_id').value;
    var query = window.location.search.substring(1);
    var parameters = query.split("&");
    var params = parameters[0] + '&id=' + selected_resource_id;<commit_msg>Simplified the redirectVersion javascript function.<commit_after>/**
 * Utility functions
 */

function redirectVersion() {
    var url = document.URL.split("?");
    var selected_version = document.getElementById('version_id').value;
    var parameters = window.location.search.substring(1).split("&");
    var params = parameters[0] + '&id=' + selected_version;
{'fraction_non_alphanumeric': 0.14881780250347706, 'fraction_numerical': 0.005563282336578581, 'mean_word_length': 4.714285714285714, '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': '1542514', 'n_tokens_mistral': 203, 'n_tokens_neox': 197, 'n_words': 44}