<commit_before><commit_msg>Create TORQUES-CheckSelection.jsfl<commit_after>/**
 * print the information for selection.
 * @author  <NAME>.
 * @version 1.0
 */

fl.outputPanel.clear();
fl.trace( "== TORQUES-CheckSelection.jsfl ==" );

var selectionArray = fl.getDocumentDOM().selection;
var numSelection   = selectionArray.length;

for( var i=0; i<numSelection; i++ ){
  var element = selectionArray[i];
  
  fl.trace( ">"+element.name +" ("+element.elementType+")" );
  if( element.elementType == "instance" ){
	  var item = element.libraryItem;
    fl.trace(" ["+item.name+"("+item.itemType+")]");
	  if( item.linkageExportForAS ){
		  fl.trace("  \""+item.linkageBaseClass+"\"" );
		  fl.trace("  \""+item.linkageClassName+"\"" );
	  }
	  else{
	  }
  }
  fl.trace( "" );
}
{'fraction_non_alphanumeric': 0.20258064516129032, 'fraction_numerical': 0.003870967741935484, 'mean_word_length': 3.9426751592356686, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4862794', 'n_tokens_mistral': 287, 'n_tokens_neox': 276, 'n_words': 47}