<commit_before>var strgURL =   location.pathname;                      // path of current component

// constuctor for the array of objects
function tabElement(id, folderName, tabTxt )  {
	this.id = id;                                       // elementID as needed in html; 
	this.folderName = folderName;                       // folder name of the component 
    this.tabTxt = tabTxt;                               // Text displayed as menu on the web
	this.currentListItem = '<li id="' + this.id + '" class="current"> <a href="../..' + this.folderName + 'index.html"><span>' + this.tabTxt + '</span></a></li>';
	this.listItem = '<li id="' + this.id + '"> <a href="../..' + this.folderName + 'index.html"><span>' + this.tabTxt + '</span></a></li>';
};

// array of objects
var arr = [];

// fill array
 arr.push( new tabElement( "GEN",    "/General/html/",     "General")   );
 arr.push( new tabElement( "CORE",   "/Core/html/",        "Core")      );
 arr.push( new tabElement( "DRV",    "/Driver/html/",      "Driver")    );
 arr.push( new tabElement( "DSP",    "/DSP/html/",         "DSP")       );
 arr.push( new tabElement( "RTOS",   "/RTOS/html/",        "RTOS API")  );
 arr.push( new tabElement( "RTX",    "/RTX/html/",         "RTX")       );
 arr.push( new tabElement( "PACK",   "/Pack/html/",        "Pack")      );
 arr.push( new tabElement( "SVD",    "/SVD/html/",         "SVD")       );
 arr.push( new tabElement( "DAP",    "/DAP/html/",         "DAP")       );
 
// write tabs
// called from the header file.
function writeComponentTabs()  {
  for ( var i=0; i < arr.length; i++ ) {
    if (strgURL.search(arr[i].folderName) > 0) {                    // if this is the current folder
      document.write(arr[i].currentListItem);                       // then print and hightlight the tab
    } else {                                                      
      document.write(arr[i].listItem);                              // else, print the tab
    }                                                             
  }
};<commit_msg>remove section RTX from CMSIS documentation<commit_after>var strgURL =   location.pathname;                      // path of current component

// constuctor for the array of objects
function tabElement(id, folderName, tabTxt )  {
	this.id = id;                                       // elementID as needed in html; 
	this.folderName = folderName;                       // folder name of the component 
    this.tabTxt = tabTxt;                               // Text displayed as menu on the web
	this.currentListItem = '<li id="' + this.id + '" class="current"> <a href="../..' + this.folderName + 'index.html"><span>' + this.tabTxt + '</span></a></li>';
	this.listItem = '<li id="' + this.id + '"> <a href="../..' + this.folderName + 'index.html"><span>' + this.tabTxt + '</span></a></li>';
};

// array of objects
var arr = [];

// fill array
 arr.push( new tabElement( "GEN",    "/General/html/",     "General")   );
 arr.push( new tabElement( "CORE",   "/Core/html/",        "Core")      );
 arr.push( new tabElement( "DRV",    "/Driver/html/",      "Driver")    );
 arr.push( new tabElement( "DSP",    "/DSP/html/",         "DSP")       );
 arr.push( new tabElement( "RTOS",   "/RTOS/html/",        "RTOS API")  );
// arr.push( new tabElement( "RTX",    "/RTX/html/",         "RTX")       );
 arr.push( new tabElement( "PACK",   "/Pack/html/",        "Pack")      );
 arr.push( new tabElement( "SVD",    "/SVD/html/",         "SVD")       );
 arr.push( new tabElement( "DAP",    "/DAP/html/",         "DAP")       );
 
// write tabs
// called from the header file.
function writeComponentTabs()  {
  for ( var i=0; i < arr.length; i++ ) {
    if (strgURL.search(arr[i].folderName) > 0) {                    // if this is the current folder
      document.write(arr[i].currentListItem);                       // then print and hightlight the tab
    } else {                                                      
      document.write(arr[i].listItem);                              // else, print the tab
    }                                                             
  }
};
{'fraction_non_alphanumeric': 0.16803874092009685, 'fraction_numerical': 0.0009685230024213075, 'mean_word_length': 1.5915934755332497, 'pattern_counts': {'":': 0, '<': 29, '<?xml version=': 0, '>': 29, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 16, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4148713', 'n_tokens_mistral': 1236, 'n_tokens_neox': 1212, 'n_words': 325}