<commit_before>/*
 * A wrapper for all the meaningful site-wide operations
 */

 var jNVL = (function (self,$) {

	 var	self = {},
	 		privateVariable = 1;

	 /**
	  *
	  */
	 self.moduleProperty = 1;

	 /**
	  *
	  */
	 function _privateMethod()
	 {
		 console.log("private");
	 }

     self.initSite = function()
     {
         $('.topcontrol a').click(function () {
             $('html, body, .scroller').animate({scrollTop: '0px'}, 800);
             return false;
         });
         console.log("Site controller loaded")
     };


     /**
	  *
	  */
	 self.moduleMethod = function ()
	 {
		 var obj = {
				 "flammable": "inflammable",
				 "duh": "no duh"
				 };
				 $.each( obj, function( key, value ) {
					 console.log( key + ": " + value );
				 });
		 _privateMethod();
		console.log("public");
	 };

     /**
      *
      * @param url
      * @returns {{}}
      */
     self.getProjectsJSON = function(url)
     {
         console.log("getProjectsJSON - " + url);
         var ret = null;
         $.getJSON(url, function(data)
         {
             data.projects = data.projects || {};
             ret = data.projects;
         });
         return ret;
     }

     /**
      * Check the page for references generated by CSL (csl-title) to insert the URL
      * to the PubReader version (<li data-reader=".....">)
      *
      * @todo[vanch3d] check if this could be done directly at the level of CSL transformation
      */
     self.addPubReaderLinks = function()
     {
         $("li[data-reader]").each(function(idx,obj){
             var elt= $(obj).find("span.csl-title");
             if (!elt) return;
             var newLink = $("<a/>", {
                 href : $(obj).attr("data-reader"),
                 text : elt.text(),
                 title : "Read the full text online"
             });
             elt.empty().append(newLink);
         });

     }



     return self;

 }( jNVL || {}, jQuery ));

<commit_msg>changed 'PubReader' selector to allow wider scope<commit_after>/*
 * A wrapper for all the meaningful site-wide operations
 */

 var jNVL = (function (self,$) {

	 var	self = {},
	 		privateVariable = 1;

	 /**
	  *
	  */
	 self.moduleProperty = 1;

	 /**
	  *
	  */
	 function _privateMethod()
	 {
		 console.log("private");
	 }

     self.initSite = function()
     {
         $('.topcontrol a').click(function () {
             $('html, body, .scroller').animate({scrollTop: '0px'}, 800);
             return false;
         });
         console.log("Site controller loaded")
     };


     /**
	  *
	  */
	 self.moduleMethod = function ()
	 {
		 var obj = {
				 "flammable": "inflammable",
				 "duh": "no duh"
				 };
				 $.each( obj, function( key, value ) {
					 console.log( key + ": " + value );
				 });
		 _privateMethod();
		console.log("public");
	 };

     /**
      *
      * @param url
      * @returns {{}}
      */
     self.getProjectsJSON = function(url)
     {
         console.log("getProjectsJSON - " + url);
         var ret = null;
         $.getJSON(url, function(data)
         {
             data.projects = data.projects || {};
             ret = data.projects;
         });
         return ret;
     }

     /**
      * Check the page for references generated by CSL (csl-title) to insert the URL
      * to the PubReader version (<li data-reader=".....">)
      *
      * @todo[vanch3d] check if this could be done directly at the level of CSL transformation
      */
     self.addPubReaderLinks = function()
     {
         $("[data-reader]").each(function(idx,obj){
             var elt= $(obj).find("span.csl-title");
             if (!elt) return;
             var newLink = $("<a/>", {
                 href : $(obj).attr("data-reader"),
                 text : elt.text(),
                 title : "Read the full text online"
             });
             elt.empty().append(newLink);
         });

     }



     return self;

 }( jNVL || {}, jQuery ));


{'fraction_non_alphanumeric': 0.16119252147549268, 'fraction_numerical': 0.0035371399696816574, 'mean_word_length': 1.6201191264063535, 'pattern_counts': {'":': 6, '<': 7, '<?xml version=': 0, '>': 7, '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': '2816699', 'n_tokens_mistral': 1292, 'n_tokens_neox': 1145, 'n_words': 272}