<commit_before>       //window.alert('!');
      rootURL = "";
      u = "";
      function setRoot(){
          
          rootURL = "";
          address_url = window.location.href;
          links = $('a');

          array_Address_url = address_url.split("/");
          //console.log(array_Address_url);
          resources = [];
          actions = [];
          indexes = [];
          profiles = [];
          isResource = false;
          isAction = false;
          isId = false;
          isProfile = false;
          actions = ['new','edit'];
          resources = ['local','realty','route','user','profile','album'];
          configs = ['config'];

          function whatIs(arrayI){
              if(arrayI=='user'){
                  return 'isUser';
                
              }else if(configs.indexOf(arrayI)!=-1){
                  return 'isConfig';
                
              }else if(resources.indexOf(arrayI)!=-1){
                  return 'isResource';
               
              }else if(actions.indexOf(arrayI)!=-1){
                  return 'isAction';   
               
              }else if(arrayI!=='' && !isNaN(arrayI)){
                  return 'isNum' ; 
                
              }else{
                  return false;   
              }
          }

          for(var i=0 ,l = (array_Address_url.length);i<l;i++){

              if(whatIs(array_Address_url[i])!==false){
                  indexes.push(whatIs(array_Address_url[i]));   
              }
          }
              
          function defineRoot(u){
            //console.log(u);
              if(u==='isUser/isAction'){
                  rootURL = '../'; 
              }else if(u==='isUser/isConfig'){
                  rootURL = '../'; 
              }else if(u==='isResource/isAction'){
                  rootURL = '../../';
              }else if(u==='isResource/isNum'){
                  rootURL = '../';
              }else if(u==='isResource/isAction/isNum'){
                  rootURL = '../../';
              }else if(u==='/'){
                  rootURL = ''; 
              }
              //console.log(rootURL);
          }

          u = indexes.join('/') ;
          //console.log(indexes);
          defineRoot(u);

          links.each(function(i,it){
              $el = $(it);

              try{
                  if(!$el.attr('href').toString().contains('google')){
                      str = $el.attr('href').toString();
                      $el.attr('href',rootURL+str);  
                  }
              }catch(e){
                 
              }
          });
          if($('.header_avatar').length > 0){
              $el = $('.header_avatar');
              src = $el.attr('src').toString();
              $el.attr('src',rootURL+src);
          }

          if($(".avatar").length > 0){
              $el2 = $(".avatar");
              src2 = $el2.attr('src').toString();
              $el2.attr('src',rootURL+src2);
          }

          if($("#aformSearch").length > 0){
              $el3 = $("#aformSearch");
              src3 = $el3.attr('action').toString();
              $el3.attr('src',rootURL+src3);
          }
          if($(".local_album_status_add").length > 0){
              $el4 = $(".local_album_status_add");
              src4 = $el4.attr('src').toString();
              $el4.attr('src',rootURL+src4);
          }
          if($(".local_album_status_dll").length > 0){
              $el5 = $(".local_album_status_dll"); 
              src5 = $el5.attr('src').toString();
              $el5.attr('src',rootURL+src5);
          }
          if($(".realty_album_status_add").length > 0){
              $el6 = $(".realty_album_status_add");
              src6 = $el6.attr('src').toString();
              $el6.attr('src',rootURL+src6);
          }
          if($(".realty_album_status_dll").length > 0){
              $el7 = $(".realty_album_status_dll"); 
              src7 = $el7.attr('src').toString();
              $el7.attr('src',rootURL+src7);
          }
          if($(".link_fb").length > 0){
              $el8 = $(".link_fb"); 
              src8 = $el8.attr('src').toString();
              $el8.attr('src',rootURL+src8);
          }
      } //fim setRoot


      $('#main').ready(function(){
          //console.log('READY');
          setRoot();
      });

       Array.prototype.contains = function(key, val, param) {
           var i = this.length;
           while (i--) {
              if(this[i][key] == param) {<commit_msg>modificando carregamento do seRoot() no js<commit_after>       //window.alert('!');
      rootURL = "";
      u = "";
      function setRoot(){
          
          rootURL = "";
          address_url = window.location.href;
          links = $('a');

          array_Address_url = address_url.split("/");
          //console.log(array_Address_url);
          resources = [];
          actions = [];
          indexes = [];
          profiles = [];
          isResource = false;
          isAction = false;
          isId = false;
          isProfile = false;
          actions = ['new','edit'];
          resources = ['local','realty','route','user','profile','album'];
          configs = ['config'];

          function whatIs(arrayI){
              if(arrayI=='user'){
                  return 'isUser';
                
              }else if(configs.indexOf(arrayI)!=-1){
                  return 'isConfig';
                
              }else if(resources.indexOf(arrayI)!=-1){
                  return 'isResource';
               
              }else if(actions.indexOf(arrayI)!=-1){
                  return 'isAction';   
               
              }else if(arrayI!=='' && !isNaN(arrayI)){
                  return 'isNum' ; 
                
              }else{
                  return false;   
              }
          }

          for(var i=0 ,l = (array_Address_url.length);i<l;i++){

              if(whatIs(array_Address_url[i])!==false){
                  indexes.push(whatIs(array_Address_url[i]));   
              }
          }
              
          function defineRoot(u){
            //console.log(u);
              if(u==='isUser/isAction'){
                  rootURL = '../'; 
              }else if(u==='isUser/isConfig'){
                  rootURL = '../'; 
              }else if(u==='isResource/isAction'){
                  rootURL = '../../';
              }else if(u==='isResource/isNum'){
                  rootURL = '../';
              }else if(u==='isResource/isAction/isNum'){
                  rootURL = '../../';
              }else if(u==='/'){
                  rootURL = ''; 
              }
              //console.log(rootURL);
          }

          u = indexes.join('/') ;
          //console.log(indexes);
          defineRoot(u);

          links.each(function(i,it){
              $el = $(it);

              try{
                  if(!$el.attr('href').toString().contains('google')){
                      str = $el.attr('href').toString();
                      $el.attr('href',rootURL+str);  
                  }
              }catch(e){
                 
              }
          });
          if($('.header_avatar').length > 0){
              $el = $('.header_avatar');
              src = $el.attr('src').toString();
              $el.attr('src',rootURL+src);
          }

          if($(".avatar").length > 0){
              $el2 = $(".avatar");
              src2 = $el2.attr('src').toString();
              $el2.attr('src',rootURL+src2);
          }

          if($("#aformSearch").length > 0){
              $el3 = $("#aformSearch");
              src3 = $el3.attr('action').toString();
              $el3.attr('src',rootURL+src3);
          }
          if($(".local_album_status_add").length > 0){
              $el4 = $(".local_album_status_add");
              src4 = $el4.attr('src').toString();
              $el4.attr('src',rootURL+src4);
          }
          if($(".local_album_status_dll").length > 0){
              $el5 = $(".local_album_status_dll"); 
              src5 = $el5.attr('src').toString();
              $el5.attr('src',rootURL+src5);
          }
          if($(".realty_album_status_add").length > 0){
              $el6 = $(".realty_album_status_add");
              src6 = $el6.attr('src').toString();
              $el6.attr('src',rootURL+src6);
          }
          if($(".realty_album_status_dll").length > 0){
              $el7 = $(".realty_album_status_dll"); 
              src7 = $el7.attr('src').toString();
              $el7.attr('src',rootURL+src7);
          }
          if($(".link_fb").length > 0){
              $el8 = $(".link_fb"); 
              src8 = $el8.attr('src').toString();
              $el8.attr('src',rootURL+src8);
          }
      } //fim setRoot


      $('.container').ready(function(){
          console.log('container');
          setRoot();
      });

       Array.prototype.contains = function(key, val, param) {
           var i = this.length;
           while (i--) {
              if(this[i][key] == param) {
{'fraction_non_alphanumeric': 0.17648356496801235, 'fraction_numerical': 0.010368409441870726, 'mean_word_length': 1.231602264336697, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 19, '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': '555472', 'n_tokens_mistral': 2647, 'n_tokens_neox': 2537, 'n_words': 343}