<commit_before>/**
 * Author: <NAME>
 * Date: 2015-8-27
 */
var ajaxHelper = {
    getUrl: function(elem) {
        var tag = elem.tagName.toLowerCase();
        switch(tag) {
            case "a":
                var url = $(elem).attr("href") ? $(elem).attr("href") : null;
                break;
            case "form":
                var url = $(elem).attr("action") ? $(elem).attr("action") : null;
                break;
            default :
                var url = null;<commit_msg>Add support for other html tag.<commit_after>/**
 * Author: <NAME>
 * Date: 2015-8-27
 */
var ajaxHelper = {
    getUrl: function(elem) {
        var tag = elem.tagName.toLowerCase();
        switch(tag) {
            case "a":
                var url = $(elem).attr("href") ? $(elem).attr("href") : null;
                break;
            case "form":
                var url = $(elem).attr("action") ? $(elem).attr("action") : null;
                break;
            default :
                var url = $(elem).attr("ajax-url") ? $(elem).attr("ajax-url") : null;
{'fraction_non_alphanumeric': 0.17452830188679244, 'fraction_numerical': 0.013207547169811321, 'mean_word_length': 1.5941320293398533, 'pattern_counts': {'":': 4, '<': 5, '<?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': '6564383', 'n_tokens_mistral': 326, 'n_tokens_neox': 306, 'n_words': 72}