<commit_before>/**
 * Dataverse FileBrowser configuration module.
 */
;(function (global, factory) {
    if (typeof define === 'function' && define.amd) {
        define(['js/rubeus'], factory);
    } else if (typeof $script === 'function') {
        $script.ready('rubeus', function() { factory(Rubeus); });
    } else { factory(Rubeus); }
}(this, function(Rubeus) {

    // Private members

    function getCitation(item) {
        bootbox.alert(
            '<table>' +
                '<tr>'+
                    '<td><b>Title: </b></td> <td>' + item.study + '</td>' +
                '</tr>' +
                '<tr>'+
                    '<td><b>Study Global ID: &nbsp&nbsp&nbsp</b></td> <td><a href="http://dx.doi.org/' + item.doi.split(":")[1] + '">' + item.doi + '</a></td>' +
                '</tr>' +
                '<tr>'+
                    '<td><b>Dataverse: </b></td> <td>' + item.dataverse + '</td>' +
                '</tr>' +
                '<tr><td>&nbsp</td></tr>' +
                '<tr>'+
                    '<td><b>Citation: </b></td> <td>' + item.citation + '</td>' +
                '</tr>' +
            '</table>'
        )
    }

    function refreshDataverseTree(grid, item, state) {
        var data = item.data || {};
        data.state = state;
        var url = item.urls.state + '?' + $.param({state: state});
        $.ajax({
            type: 'get',
            url: url,
            success: function(data) {
                // Update the item with the new state data
                $.extend(item, data[0]);
                grid.reloadFolder(item);
            }
        });
    }

    // Define HGrid Button Actions
    HGrid.Actions['releaseStudy'] = {
        on: 'click',
        callback: function (evt, row) {
            var self = this;
            var url = row.urls.release;
            bootbox.confirm(
                'By releasing this study, all content will be ' +
                    'made available through the Harvard Dataverse using their ' +<commit_msg>Improves Dataverse study information format.<commit_after>/**
 * Dataverse FileBrowser configuration module.
 */
;(function (global, factory) {
    if (typeof define === 'function' && define.amd) {
        define(['js/rubeus'], factory);
    } else if (typeof $script === 'function') {
        $script.ready('rubeus', function() { factory(Rubeus); });
    } else { factory(Rubeus); }
}(this, function(Rubeus) {

    // Private members

    function getCitation(item) {
        bootbox.alert(
            '<dl class="dl-horizontal">' +
                '<dt>Title</dt> <dd>' + item.study + '</dd>' +
                '<dt>Study Global ID</dt> <dd><a href="http://dx.doi.org/' + item.doi.split(":")[1] + '">' + item.doi + '</a></dd>' +
                '<dt>Dataverse</dt> <dd>' + item.dataverse + '</dd>' +
                '<dt>&nbsp</dt><dd>&nbsp</dd>' +
                '<dt>Citation</dt> <dd>' + item.citation + '</dd>' +
            '</dl>'
        )
    }

    function refreshDataverseTree(grid, item, state) {
        var data = item.data || {};
        data.state = state;
        var url = item.urls.state + '?' + $.param({state: state});
        $.ajax({
            type: 'get',
            url: url,
            success: function(data) {
                // Update the item with the new state data
                $.extend(item, data[0]);
                grid.reloadFolder(item);
            }
        });
    }

    // Define HGrid Button Actions
    HGrid.Actions['releaseStudy'] = {
        on: 'click',
        callback: function (evt, row) {
            var self = this;
            var url = row.urls.release;
            bootbox.confirm(
                'By releasing this study, all content will be ' +
                    'made available through the Harvard Dataverse using their ' +
{'fraction_non_alphanumeric': 0.17859952793076317, 'fraction_numerical': 0.001049042748492001, 'mean_word_length': 1.6412742382271468, 'pattern_counts': {'":': 2, '<': 67, '<?xml version=': 0, '>': 67, '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': '4328573', 'n_tokens_mistral': 1140, 'n_tokens_neox': 1111, 'n_words': 259}