<commit_before><?xml version="1.0" encoding="utf-8"?>
<s:Button xmlns:fx="http://ns.adobe.com/mxml/2009"
		  xmlns:s="library://ns.adobe.com/flex/spark"
		  xmlns:mx="library://ns.adobe.com/flex/mx"
		  label="Upload XL20 Output File"
		  click="uploadButton_clickHandler(event)"
		  icon="@Embed(source='/assets/icons/upload.png')">
	<fx:Script>
		<![CDATA[
			import org.everest.flex.ui.components.ErrorView;
			private var fileRef:FileReference = new FileReference();
			
			public var data:ByteArray;
			
			protected function uploadButton_clickHandler(event:MouseEvent):void
			{
				fileRef.addEventListener(Event.SELECT, selectHandler);
				fileRef.addEventListener(Event.COMPLETE, onLoadComplete);
				fileRef.addEventListener(IOErrorEvent.IO_ERROR, onLoadError);
				fileRef.browse([new FileFilter("XL20 Output Files (*.txt)", "*.txt")]);
			}
			
			private function onLoadComplete(e:Event):void
			{
				this.data = fileRef.data;<commit_msg>Fixed XL20 output file button extension (should have been merged in from the 15x branch)<commit_after><?xml version="1.0" encoding="utf-8"?>
<s:Button xmlns:fx="http://ns.adobe.com/mxml/2009"
		  xmlns:s="library://ns.adobe.com/flex/spark"
		  xmlns:mx="library://ns.adobe.com/flex/mx"
		  label="Upload XL20 Output File"
		  click="uploadButton_clickHandler(event)"
		  icon="@Embed(source='/assets/icons/upload.png')">
	<fx:Script>
		<![CDATA[
			import org.everest.flex.ui.components.ErrorView;
			private var fileRef:FileReference = new FileReference();
			
			public var data:ByteArray;
			
			protected function uploadButton_clickHandler(event:MouseEvent):void
			{
				fileRef.addEventListener(Event.SELECT, selectHandler);
				fileRef.addEventListener(Event.COMPLETE, onLoadComplete);
				fileRef.addEventListener(IOErrorEvent.IO_ERROR, onLoadError);
				fileRef.browse([new FileFilter("XL20 Output Files (*.tpo)", "*.tpo")]);
			}
			
			private function onLoadComplete(e:Event):void
			{
				this.data = fileRef.data;
{'fraction_non_alphanumeric': 0.14653865588681153, 'fraction_numerical': 0.013137948458817585, 'mean_word_length': 4.641025641025641, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 2, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 10}, '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': '3521867', 'n_tokens_mistral': 761, 'n_tokens_neox': 628, 'n_words': 103}