<commit_before><?xml version="1.0" encoding="utf-8"?>
<s:Group xmlns:fx="http://ns.adobe.com/mxml/2009" 
		 xmlns:s="library://ns.adobe.com/flex/spark" 
		 xmlns:mx="library://ns.adobe.com/flex/mx" 
		 width="100%" height="100%" 
		 xmlns:detail="org.openforis.collect.ui.component.detail.*" 
		 xmlns:component="org.openforis.collect.ui.component.*"
		 >
	
	<fx:Script>
		<![CDATA[
			import mx.collections.ArrayCollection;
			
			import org.openforis.collect.i18n.Message;
			import org.openforis.collect.presenter.DetailPresenter;
			import org.openforis.collect.ui.Images;
			
			private var _presenter:DetailPresenter;
			private var _forms:ArrayCollection;
			
			public static const EDIT_STATE:String = "edit";
			public static const LOADING_STATE:String = "loading";
			
			override protected function initializationComplete():void {
				super.initializationComplete();
				_presenter = new DetailPresenter(this);
				_forms = new ArrayCollection();
			}
			
		]]>
	</fx:Script>
	
	<s:states>
		<s:State name="edit" />
		<s:State name="loading" />
	</s:states>
	
	<s:layout>
		<s:VerticalLayout gap="10" />
	</s:layout>
	
	<!-- Record id, form version, save msg, etc.. -->
	<s:Group id="header" width="100%">
		<s:HGroup gap="10" verticalAlign="middle">
			<s:Button useHandCursor="true" buttonMode="true" id="backToListButton" icon="{Images.BACK}" label="{Message.get('edit.backToList')}"  />
			<s:Line yFrom="0" yTo="18" xFrom="1" xTo="0">
				<s:stroke>
					<s:SolidColorStroke color="gray" alpha="0.8"/>
				</s:stroke>
			</s:Line>
			<s:HGroup gap="4">
				<s:Label id="recordKeyLabel" 
						 styleName="title2"
						 />
			</s:HGroup>
		</s:HGroup>
		
		<!-- save message -->
		<s:Group horizontalCenter="0">
			<s:Label id="saveMessageLabel" />
		</s:Group>
		
		<!-- submit/reject buttons -->
		<s:HGroup right="0">
			<s:Button 
				id="rejectButton"
				icon="{Images.REJECT}" 
				label="{Message.get('edit.reject')}" 
				height="20"  
				useHandCursor="true"
				buttonMode="true"
				/>
			
			<s:Button 
				id="submitButton"
				icon="{Images.SUBMIT}" 
				label="{Message.get('edit.submit')}" 
				height="20"  
				useHandCursor="true"
				buttonMode="true"
				/>
		</s:HGroup>
	</s:Group>
	
	<!--<s:Group id="formWrapper" width="100%" height="100%" />-->
	<component:LoadingContent width="100%" height="100%" includeIn="loading" itemCreationPolicy="immediate" />
	
	<s:Group height="100%" width="100%">
		<detail:FormsContainer id="formsContainer" height="100%" width="100%" includeIn="edit" itemCreationPolicy="immediate" verticalGap="0" />
		<!-- form version label -->
		<!-- overlapped to the forms container -->
		<s:HGroup width="50%" 
				  horizontalAlign="right" 
				  verticalAlign="middle"
				  right="5"
				  gap="5">
			<s:Label fontSize="10" 
					 fontWeight="bold" 
					 text="{Message.get('edit.formVersion')}"/>
			<s:Label id="formVersionText" 
					 fontSize="10" 
					 fontWeight="bold" />
		</s:HGroup>
	</s:Group>
	
	<s:Group width="100%" id="buttonBar">
		<!-- Buttons: save, etc...-->
		<s:Button id="saveButton" label="{Message.get('edit.save')}"
				  horizontalCenter="0"
				  useHandCursor="true" buttonMode="true"
				  />
		
	</s:Group>
	
</s:Group>
<commit_msg>OFC-318 Form version runs over tabs<commit_after><?xml version="1.0" encoding="utf-8"?>
<s:Group xmlns:fx="http://ns.adobe.com/mxml/2009" 
		 xmlns:s="library://ns.adobe.com/flex/spark" 
		 xmlns:mx="library://ns.adobe.com/flex/mx" 
		 width="100%" height="100%" 
		 xmlns:detail="org.openforis.collect.ui.component.detail.*" 
		 xmlns:component="org.openforis.collect.ui.component.*"
		 >
	
	<fx:Script>
		<![CDATA[
			import mx.collections.ArrayCollection;
			
			import org.openforis.collect.i18n.Message;
			import org.openforis.collect.presenter.DetailPresenter;
			import org.openforis.collect.ui.Images;
			
			private var _presenter:DetailPresenter;
			private var _forms:ArrayCollection;
			
			public static const EDIT_STATE:String = "edit";
			public static const LOADING_STATE:String = "loading";
			
			override protected function initializationComplete():void {
				super.initializationComplete();
				_presenter = new DetailPresenter(this);
				_forms = new ArrayCollection();
			}
			
		]]>
	</fx:Script>
	
	<s:states>
		<s:State name="edit" />
		<s:State name="loading" />
	</s:states>
	
	<s:layout>
		<s:VerticalLayout gap="10" />
	</s:layout>
	
	<!-- Record id, form version, save msg, etc.. -->
	<s:Group id="header" width="100%">
		<s:HGroup gap="10" verticalAlign="middle">
			<s:Button id="backToListButton"
					  icon="{Images.BACK}"
					  label="{Message.get('edit.backToList')}"
					  useHandCursor="true" 
					  buttonMode="true" />
			<s:Line yFrom="0" yTo="18" xFrom="1" xTo="0">
				<s:stroke>
					<s:SolidColorStroke color="gray" alpha="0.8"/>
				</s:stroke>
			</s:Line>
			<s:HGroup gap="4">
				<s:Label id="recordKeyLabel" 
						 styleName="title2"
						 />
			</s:HGroup>
		</s:HGroup>
		
		<!-- save message -->
		<s:Group horizontalCenter="0">
			<s:Label id="saveMessageLabel" />
		</s:Group>
		
		<!-- submit/reject buttons -->
		<s:HGroup right="0"
				  verticalAlign="middle"
				  horizontalAlign="right">
			<!-- form version label -->
			<s:HGroup 
					  horizontalAlign="right" 
					  gap="5">
				<s:Label fontSize="10" 
						 fontWeight="bold" 
						 text="{Message.get('edit.formVersion')}"/>
				<s:Label id="formVersionText" 
						 fontSize="10" 
						 fontWeight="bold" />
			</s:HGroup>

			<s:Button 
				id="rejectButton"
				icon="{Images.REJECT}" 
				label="{Message.get('edit.reject')}" 
				height="20"  
				useHandCursor="true"
				buttonMode="true"
				/>
			
			<s:Button 
				id="submitButton"
				icon="{Images.SUBMIT}" 
				label="{Message.get('edit.submit')}" 
				height="20"  
				useHandCursor="true"
				buttonMode="true"
				/>
		</s:HGroup>
	</s:Group>
	
	<!--<s:Group id="formWrapper" width="100%" height="100%" />-->
	<component:LoadingContent width="100%" height="100%" includeIn="loading" itemCreationPolicy="immediate" />
	
	<detail:FormsContainer id="formsContainer" 
						   height="100%" 
						   width="100%" 
						   includeIn="edit" 
						   itemCreationPolicy="immediate" 
						   verticalGap="0" />
	
	<s:Group width="100%" id="buttonBar">
		<!-- Buttons: save, etc...-->
		<s:Button id="saveButton" label="{Message.get('edit.save')}"
				  horizontalCenter="0"
				  useHandCursor="true" buttonMode="true"
				  />
		
	</s:Group>
	
</s:Group>

{'fraction_non_alphanumeric': 0.1804790953727124, 'fraction_numerical': 0.021127808361850915, 'mean_word_length': 2.9036004645760745, 'pattern_counts': {'":': 0, '<': 104, '<?xml version=': 2, '>': 104, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 14}, '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': '4895908', 'n_tokens_mistral': 2959, 'n_tokens_neox': 2249, 'n_words': 355}