<commit_before>function GetArrow(pk) {
    jQuery.support.cors = true;
    $.ajax({
        url: 'relationRetrieve/'+pk,
        type: 'GET',
        dataType: 'json',
        contentType: "application/json;charset=utf-8",
        success: function (data) {
            return data['relates_to'];
        },
        error: function (x, y, z) {
            alert(x + '\n' + y + '\n' + z);
        }
    });
}

$(function(){

    var searchItem = window.location.pathname;
    console.log(searchItem);
    var theRegex = /([0-9])+/igm;
    var searchId = theRegex.exec(searchItem)[0];
    console.log("id: "+searchId);

    $.ajax({
        url: '/cocomapapp/relationList?topic_id='+searchId,
        type: 'GET',
        dataType: 'json',
        success: function (data) {
            var json_array = data;
            console.log(data)
            // create an array with nodes<commit_msg>minor fix to regex in infocus screen<commit_after>function GetArrow(pk) {
    jQuery.support.cors = true;
    $.ajax({
        url: 'relationRetrieve/'+pk,
        type: 'GET',
        dataType: 'json',
        contentType: "application/json;charset=utf-8",
        success: function (data) {
            return data['relates_to'];
        },
        error: function (x, y, z) {
            alert(x + '\n' + y + '\n' + z);
        }
    });
}

$(function(){

    var searchItem = window.location.pathname;
    console.log(searchItem);
    var theRegex = /([0-9]+)/igm;
    var searchId = theRegex.exec(searchItem)[0];
    console.log("id: "+searchId);

    $.ajax({
        url: '/cocomapapp/relationList?topic_id='+searchId,
        type: 'GET',
        dataType: 'json',
        success: function (data) {
            var json_array = data;
            console.log(data)
            // create an array with nodes
{'fraction_non_alphanumeric': 0.1562326869806094, 'fraction_numerical': 0.00443213296398892, 'mean_word_length': 2.0352941176470587, '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': '490879', 'n_tokens_mistral': 578, 'n_tokens_neox': 569, 'n_words': 125}