<commit_before>var ref_element_id = null;
var ref_element_name = null;
var ref_level_id = '';
var ref_caller_id = '';
$(document).ready(function () {
 $("a.add_collector").click(function(){
    $(this).qtip({
        content: {
            title: { text : 'Choose a Collector', button: 'X' },
            url: $(this).attr('href')
        },
        show: { when: 'click', ready: true },
        position: {
            target: $(document.body), // Position it via the document body...
            corner: 'center' // ...at the center of the viewport
        },
        hide: false,
        style: {
            width: { min: 620, max: 1000},
            border: {radius:3},
            title: { background: '#5BABBD', color:'white'}
        },
        api: {
            beforeShow: function()
            {
                alert("show !!!") ;
                // Fade in the modal "blanket" using the defined show speed
			 ref_element_id = null;
			 ref_element_name = null;
                addBlackScreen()
                $('#qtip-blanket').fadeIn(this.options.show.effect.length);
            },
            beforeHide: function()
            {
                alert("Hide !!!") ;
                // Fade out the modal "blanket" using the defined hide speed
                $('#qtip-blanket').fadeOut(this.options.hide.effect.length).remove();
                alert("Hide bis !!!") ;
            },
	       onHide: function()
	       {
	          alert("Pouf !!!") ;
               $('.result_choose_collector').die('click') ;
	          $(this.elements.target).qtip("destroy");
	       }
         }
    });
    return false;
 });
});
function addCollectorValue(people_ref)
{
  parent = $(this).closest('table.collectors');
  parentId = $(parent).attr('id');
  $.ajax(
  {
    type: "GET",    
    url: $('a.hidden').attr('href')+ (0+$('#spec_ident_collectors tbody tr').length)+'/people_ref/'+people_ref + '/iorder_by/' + ($('table#'+parentId+' .spec_ident_collectors_data:visible').length+1),
    success: function(html)<commit_msg>Yann is the best, he let alert messages everywhere ! sorry guys...<commit_after>var ref_element_id = null;
var ref_element_name = null;
var ref_level_id = '';
var ref_caller_id = '';
$(document).ready(function () {
 $("a.add_collector").click(function(){
    $(this).qtip({
        content: {
            title: { text : 'Choose a Collector', button: 'X' },
            url: $(this).attr('href')
        },
        show: { when: 'click', ready: true },
        position: {
            target: $(document.body), // Position it via the document body...
            corner: 'center' // ...at the center of the viewport
        },
        hide: false,
        style: {
            width: { min: 620, max: 1000},
            border: {radius:3},
            title: { background: '#5BABBD', color:'white'}
        },
        api: {
            beforeShow: function()
            {
                // Fade in the modal "blanket" using the defined show speed
			 ref_element_id = null;
			 ref_element_name = null;
                addBlackScreen()
                $('#qtip-blanket').fadeIn(this.options.show.effect.length);
            },
            beforeHide: function()
            {
                // Fade out the modal "blanket" using the defined hide speed
                $('#qtip-blanket').fadeOut(this.options.hide.effect.length).remove();
            },
	       onHide: function()
	       {
               $('.result_choose_collector').die('click') ;
	          $(this.elements.target).qtip("destroy");
	       }
         }
    });
    return false;
 });
});
function addCollectorValue(people_ref)
{
  parent = $(this).closest('table.collectors');
  parentId = $(parent).attr('id');
  $.ajax(
  {
    type: "GET",    
    url: $('a.hidden').attr('href')+ (0+$('#spec_ident_collectors tbody tr').length)+'/people_ref/'+people_ref + '/iorder_by/' + ($('table#'+parentId+' .spec_ident_collectors_data:visible').length+1),
    success: function(html)
{'fraction_non_alphanumeric': 0.16574724172517552, 'fraction_numerical': 0.005516549648946841, 'mean_word_length': 1.9880149812734083, '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': '6919761', 'n_tokens_mistral': 1216, 'n_tokens_neox': 1160, 'n_words': 246}