<commit_before>(function (env) {
    "use strict";
    env.ddg_spice_launchbug = function(api_result){

        if (!api_result || api_result.error) {
            return Spice.failed('launchbug');
        }

        var months = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'],
        dateObj = DDG.getDateFromString(api_result.date_created),
        CreDate = [months[dateObj.getMonth()], dateObj.getDate(), dateObj.getFullYear()];

        var infoboxItems = {
            id: "Bug Id",
            can_expire: "Expires",
            information_type: "Type",
            message_count: "Comments on this Bug",
            heat: "Heat"
        };

        var infoboxData = [{
            heading: 'Bug Details'
        }];

        $.each(infoboxItems, function(key, value){
            if (api_result[key]){
                infoboxData.push({
                    label: value,
                    value: api_result[key]
                });
            }
        });

        infoboxData.push({label: "Date Created", value: CreDate.join(' ')});


        Spice.add({
            id: "launchbug",
            name: "Launchpad",
            data: api_result,
            meta: {
                sourceName: "Launchpad.com",
                sourceUrl: api_result.web_link
            },
            normalize: function(item) {
                return {
                    title: item.title,
                    subtitle: 'LaunchBug #' + item.id,
                    description: item.description,
                    infoboxData: infoboxData
                };
            },<commit_msg>changed .com with .net<commit_after>(function (env) {
    "use strict";
    env.ddg_spice_launchbug = function(api_result){

        if (!api_result || api_result.error) {
            return Spice.failed('launchbug');
        }

        var months = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'],
        dateObj = DDG.getDateFromString(api_result.date_created),
        CreDate = [months[dateObj.getMonth()], dateObj.getDate(), dateObj.getFullYear()];

        var infoboxItems = {
            id: "Bug Id",
            can_expire: "Expires",
            information_type: "Type",
            message_count: "Comments on this Bug",
            heat: "Heat"
        };

        var infoboxData = [{
            heading: 'Bug Details'
        }];

        $.each(infoboxItems, function(key, value){
            if (api_result[key]){
                infoboxData.push({
                    label: value,
                    value: api_result[key]
                });
            }
        });

        infoboxData.push({label: "Date Created", value: CreDate.join(' ')});


        Spice.add({
            id: "launchbug",
            name: "Launchpad",
            data: api_result,
            meta: {
                sourceName: "Launchpad.net",
                sourceUrl: api_result.web_link
            },
            normalize: function(item) {
                return {
                    title: item.title,
                    subtitle: 'LaunchBug #' + item.id,
                    description: item.description,
                    infoboxData: infoboxData
                };
            },
{'fraction_non_alphanumeric': 0.12893553223388307, 'fraction_numerical': 0.0, 'mean_word_length': 1.5082706766917293, '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': '2744799', 'n_tokens_mistral': 986, 'n_tokens_neox': 885, 'n_words': 185}