<commit_before>function get_edit_resource_popup(external_activity_id, popup_options){
  var lightboxConfig = {
        content:"<div style='padding:10px'>Loading...Please Wait.</div>",
        title:"Edit Options"
    };
    list_lightbox=new Lightbox(lightboxConfig);
    jQuery(".buttons")[0].innerHTML = jQuery(".buttons")[0].innerHTML + "<a href='javascript:void(0)' style='float:right;margin-top: 5px;margin-right: 10px' class='button' onclick='close_popup()'>Cancel</a>"
    var target_url = "/eresources/999/edit";
    if (popup_options && popup_options.use_short_form) {
      target_url = "/eresources/999/edit_basic"
    }
    target_url = target_url.replace('999',external_activity_id);

    var resizeLightbox = function() {
      list_lightbox.handle.setSize(800,document.viewport.getHeight() - 40);
      list_lightbox.handle.center({top: 20});
    };

    // Need to remove this when it closes
    jQuery(window).resize(resizeLightbox);

    var options = {
        method: 'get',
        onSuccess: function(transport) {
            var text = transport.responseText;<commit_msg>add comment describing why the 999 is used<commit_after>function get_edit_resource_popup(external_activity_id, popup_options){
  var lightboxConfig = {
        content:"<div style='padding:10px'>Loading...Please Wait.</div>",
        title:"Edit Options"
    };
    list_lightbox=new Lightbox(lightboxConfig);
    jQuery(".buttons")[0].innerHTML = jQuery(".buttons")[0].innerHTML + "<a href='javascript:void(0)' style='float:right;margin-top: 5px;margin-right: 10px' class='button' onclick='close_popup()'>Cancel</a>"

    // This 999 template is used because we cannot use route helpers in assets
    // The docker build process precompiles the assets and while doing so the route helpers
    // are not available.
    var target_url = "/eresources/999/edit";
    if (popup_options && popup_options.use_short_form) {
      target_url = "/eresources/999/edit_basic"
    }
    target_url = target_url.replace('999',external_activity_id);

    var resizeLightbox = function() {
      list_lightbox.handle.setSize(800,document.viewport.getHeight() - 40);
      list_lightbox.handle.center({top: 20});
    };

    // Need to remove this when it closes
    jQuery(window).resize(resizeLightbox);

    var options = {
        method: 'get',
        onSuccess: function(transport) {
            var text = transport.responseText;
{'fraction_non_alphanumeric': 0.1336367397600331, 'fraction_numerical': 0.022341745966073644, 'mean_word_length': 3.8263473053892216, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '6340970', 'n_tokens_mistral': 758, 'n_tokens_neox': 702, 'n_words': 147}