<commit_before><?xml version="1.0" encoding="UTF-8"?>
<driver name="remote_fs">
	<actions>
		<action name="next_to_remote">
			<processing>
				<serverCallback methodName="uploadActions"></serverCallback>
			</processing>
		</action>
		<action name="trigger_remote_copy">
			<processing>
				<serverCallback methodName="uploadActions"></serverCallback>
			</processing>
		</action>
		<action name="upload">
			<gui text="27" title="27" src="yast_backup.png" accessKey="upload_access_key" hasAccessKey="true">
				<context selection="false" dir="true" recycle="hidden"
					actionBar="true" contextMenu="true" infoPanel="false"
					actionBarGroup="put">
				</context></gui>
			<rightsContext noUser="true" userLogged="only" read="true" write="true" adminOnly=""></rightsContext>
			<processing>
				<clientCallback prepareModal="true"><![CDATA[
				if(ajaxplorer.actionBar.getFlashVersion() >= 8 && (document.location.href.substring(0,5)!='https' || Prototype.Browser.IE) && flashUploaderEnabled)
				{
					modal.setCloseAction(function(){						
						var bgManager = ajaxplorer.actionBar.bgManager;
						bgManager.queueAction("trigger_remote_copy", new Hash(), "Copying files to server");
						bgManager.next();
					});
					modal.showDialogForm('Upload', 
										'flash_upload_form', 
										null, 
										function(){
											hideLightBox();
											return false;
										}, 
										null, 
										true, true);				
				}
				else
				{
					modal.showDialogForm('Upload', 
										'originalUploadForm', 
										function(oForm){
											ajaxplorer.actionBar.multi_selector = new MultiUploader(oForm, '6' );
										}, 
										null, 
										null, 
										true, true);					
					
					modal.setCloseAction(function(){						
						ajaxplorer.fireContextRefresh();
						var bgManager = ajaxplorer.actionBar.bgManager;
						bgManager.queueAction("trigger_remote_copy", new Hash(), "Copying files to server");
						bgManager.next();
					});
					modal.showDialogForm('Upload', 'originalUploadForm', null, function(){ajaxplorer.actionBar.multi_selector.submitMainForm();return false;});
				}				
					]]></clientCallback>
				<clientForm id="flash_upload_form"><![CDATA[
					<!-- UPLOAD FORM -->
					<form action="AJXP_SERVER_ACCESS" target="hidden_iframe" enctype="multipart/form-data" method="POST" id="originalUploadForm" style="text-align:left; display:none;" box_width="470">					
					<table>
						<tr>	
							<td id="fileInputContainer" valign="top" align="right">
								<input type="file" name="userfile_1" class="dialogFocus">
								<div id="uploadBrowseButton" class="fakeUploadButton" align="center"><img src="AJXP_THEME_FOLDER/images/actions/22/view_list_details.png"><br/>AJXP_MESSAGE[171]</div>
								<div id="uploadSendButton" class="fakeUploadButton" align="center"><img src="AJXP_THEME_FOLDER/images/actions/22/yast_backup.png"><br/>AJXP_MESSAGE[77]</div>
							</td>
							<td rowspan="2" id="uploadFilesListContainer" valign="top">
								<div id="upload_files_list" class="uploadFilesList"></div>
							</td>
						</tr>
						<tr>	
							<td valign="bottom" align="right">
								<div class="fakeUploadButton fakeOptionButton" id="uploadOptionsButton" align="center">AJXP_MESSAGE[310]</div>
								<div class="fakeUploadButton fakeOptionButton" id="uploadCloseButton" align="center">AJXP_MESSAGE[86]</div>
							</td>
						</tr>
					</table>
					<input type="hidden" name="get_action" value="upload">	
					</form>
					
					<!-- FLEX UPLOAD FORM -->
					<div id="flash_upload_form" box_width="470">
					<div id="flashscreen">
					<iframe id="flashframe" frameborder="0" src="AJXP_SERVER_ACCESS?get_action=get_template&template_name=flash_tpl.html&encode=false"></iframe>
					</div>
					</div>
					<script language="javascript">$('originalUploadForm').hide();</script>
				]]></clientForm>
				<serverCallback methodName="uploadActions"></serverCallback>
				</processing>
		</action>		
	</actions>
</driver>
<commit_msg>Fix double call to showDialogForm()<commit_after><?xml version="1.0" encoding="UTF-8"?>
<driver name="remote_fs">
	<actions>
		<action name="next_to_remote">
			<processing>
				<serverCallback methodName="uploadActions"></serverCallback>
			</processing>
		</action>
		<action name="trigger_remote_copy">
			<processing>
				<serverCallback methodName="uploadActions"></serverCallback>
			</processing>
		</action>
		<action name="upload">
			<gui text="27" title="27" src="yast_backup.png" accessKey="upload_access_key" hasAccessKey="true">
				<context selection="false" dir="true" recycle="hidden"
					actionBar="true" contextMenu="true" infoPanel="false"
					actionBarGroup="put">
				</context></gui>
			<rightsContext noUser="true" userLogged="only" read="true" write="true" adminOnly=""></rightsContext>
			<processing>
				<clientCallback prepareModal="true"><![CDATA[
				if(ajaxplorer.actionBar.getFlashVersion() >= 8 && (document.location.href.substring(0,5)!='https' || Prototype.Browser.IE) && flashUploaderEnabled)
				{
					modal.setCloseAction(function(){						
						var bgManager = ajaxplorer.actionBar.bgManager;
						bgManager.queueAction("trigger_remote_copy", new Hash(), "Copying files to server");
						bgManager.next();
					});
					modal.showDialogForm('Upload', 
										'flash_upload_form', 
										null, 
										function(){
											hideLightBox();
											return false;
										}, 
										null, 
										true, true);				
				}
				else
				{
					modal.setCloseAction(function(){						
						ajaxplorer.fireContextRefresh();
						var bgManager = ajaxplorer.actionBar.bgManager;
						bgManager.queueAction("trigger_remote_copy", new Hash(), "Copying files to server");
						bgManager.next();
					});
					modal.showDialogForm('Upload', 
										'originalUploadForm', 
										function(oForm){
											ajaxplorer.actionBar.multi_selector = new MultiUploader(oForm, '6' );
										}, 
										function(){
											ajaxplorer.actionBar.multi_selector.submitMainForm();return false;
											},
										null, 
										true, true);
				}				
					]]></clientCallback>
				<clientForm id="flash_upload_form"><![CDATA[
					<!-- UPLOAD FORM -->
					<form action="AJXP_SERVER_ACCESS" target="hidden_iframe" enctype="multipart/form-data" method="POST" id="originalUploadForm" style="text-align:left; display:none;" box_width="470">					
					<table>
						<tr>	
							<td id="fileInputContainer" valign="top" align="right">
								<input type="file" name="userfile_1" class="dialogFocus">
								<div id="uploadBrowseButton" class="fakeUploadButton" align="center"><img src="AJXP_THEME_FOLDER/images/actions/22/view_list_details.png"><br/>AJXP_MESSAGE[171]</div>
								<div id="uploadSendButton" class="fakeUploadButton" align="center"><img src="AJXP_THEME_FOLDER/images/actions/22/yast_backup.png"><br/>AJXP_MESSAGE[77]</div>
							</td>
							<td rowspan="2" id="uploadFilesListContainer" valign="top">
								<div id="upload_files_list" class="uploadFilesList"></div>
							</td>
						</tr>
						<tr>	
							<td valign="bottom" align="right">
								<div class="fakeUploadButton fakeOptionButton" id="uploadOptionsButton" align="center">AJXP_MESSAGE[310]</div>
								<div class="fakeUploadButton fakeOptionButton" id="uploadCloseButton" align="center">AJXP_MESSAGE[86]</div>
							</td>
						</tr>
					</table>
					<input type="hidden" name="get_action" value="upload">	
					</form>
					
					<!-- FLEX UPLOAD FORM -->
					<div id="flash_upload_form" box_width="470">
					<div id="flashscreen">
					<iframe id="flashframe" frameborder="0" src="AJXP_SERVER_ACCESS?get_action=get_template&template_name=flash_tpl.html&encode=false"></iframe>
					</div>
					</div>
					<script language="javascript">$('originalUploadForm').hide();</script>
				]]></clientForm>
				<serverCallback methodName="uploadActions"></serverCallback>
				</processing>
		</action>		
	</actions>
</driver>

{'fraction_non_alphanumeric': 0.1533292608430055, 'fraction_numerical': 0.008307880268784361, 'mean_word_length': 3.204417051874679, 'pattern_counts': {'":': 0, '<': 153, '<?xml version=': 2, '>': 155, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '5321609', 'n_tokens_mistral': 3482, 'n_tokens_neox': 2479, 'n_words': 385}