<commit_before>/*
 * response.js - Generates content for the response tabs
 * Copyright 2013 - <NAME>
 */

function Response(request) {
    
    // Appends the contents of the headers tab
    this.appendHeaders = function(root) {
        
        root.append('<h4>Status</h4>')
            .append($('<p class="status"></p>').append(request.status + ' ' + request.statusText))
            .append('<br><h4>Headers</h4>');
        
        // Create the table for displaying headers
        var table = $('<table class="table table-striped"></table>')
            .append('<tr><th>Name</th><th>Value</th></tr>')
        
        // Split the headers<commit_msg>Added fix for possible HTML injection vulnerability.<commit_after>/*
 * response.js - Generates content for the response tabs
 * Copyright 2013 - <NAME>
 */

function Response(request) {
    
    // Appends the contents of the headers tab
    this.appendHeaders = function(root) {
        
        root.append('<h4>Status</h4>')
            .append($('<p class="status"></p>').text(request.status + ' ' + request.statusText))
            .append('<br><h4>Headers</h4>');
        
        // Create the table for displaying headers
        var table = $('<table class="table table-striped"></table>')
            .append('<tr><th>Name</th><th>Value</th></tr>')
        
        // Split the headers
{'fraction_non_alphanumeric': 0.1643330876934414, 'fraction_numerical': 0.011790714812085483, 'mean_word_length': 2.395, 'pattern_counts': {'":': 0, '<': 35, '<?xml version=': 0, '>': 35, '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': '2203041', 'n_tokens_mistral': 394, 'n_tokens_neox': 378, 'n_words': 89}