<commit_before>$(document).ready(
    function() {
        $('.attached-button-wrap').click(
            function() {
                $(this).children('.attached-button')[0].click();
            }
        );
        setupStep1();
    }
);

function setupClipboard(element) {
    var client = new ZeroClipboard(element, { moviePath: "ZeroClipboard.swf", debug: false });
    client.on( "load", function(client) {
        client.on( "complete", function(client, args) {
            client.setText(args.text);
        });
    });
}

function setupButtonsForExporting() {
    $('#email-export').click(function(event) {
        event.preventDefault();

        window.location.href = "mailto:?subject=Project%20Dependency%20Status&body=" + buildMessageForExport();
    });

    function buildMessageForExport() {
        var message = "Hello world!\n\nWe've found updates to the following libraries used in your project:\n\n";
        $('.has-update-available').each( function() {
            var elem = $(this);
            message += elem.attr('data-artifact') + ": " +
                       elem.attr('data-version') + "--> " +
                       elem.attr('data-new-version') + "\n" +
                       elem.attr('data-group') + ":" +
                       elem.attr('data-artifact') + ":" +<commit_msg>Add Github project info in e-mail<commit_after>$(document).ready(
    function() {
        $('.attached-button-wrap').click(
            function() {
                $(this).children('.attached-button')[0].click();
            }
        );
        setupStep1();
    }
);

function setupClipboard(element) {
    var client = new ZeroClipboard(element, { moviePath: "ZeroClipboard.swf", debug: false });
    client.on( "load", function(client) {
        client.on( "complete", function(client, args) {
            client.setText(args.text);
        });
    });
}

function setupButtonsForExporting() {
    $('#email-export').click(function(event) {
        event.preventDefault();

        var github_project = $('input[name="github-info"]').val();
        var subject = encodeURIComponent("Project Dependency Status for " + github_project);
        window.location.href = "mailto:?subject=" + subject + "&body=" + buildMessageForExport(github_project);
    });

    function buildMessageForExport(project) {
        var message = "Hello world!\n\nWe've found updates to the following libraries used in " + project + ":\n\n";
        $('.has-update-available').each( function() {
            var elem = $(this);
            message += elem.attr('data-artifact') + ": " +
                       elem.attr('data-version') + "--> " +
                       elem.attr('data-new-version') + '\n"' +
                       elem.attr('data-group') + ":" +
                       elem.attr('data-artifact') + ":" +
{'fraction_non_alphanumeric': 0.17003904863329783, 'fraction_numerical': 0.0028399006034788782, 'mean_word_length': 2.2095671981776763, 'pattern_counts': {'":': 7, '<': 3, '<?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': '7104335', 'n_tokens_mistral': 795, 'n_tokens_neox': 775, 'n_words': 135}