<commit_before><?xml version="1.0" encoding="utf-8"?>
<component:PopUp xmlns:fx="http://ns.adobe.com/mxml/2009" 
				 xmlns:s="library://ns.adobe.com/flex/spark" 
				 xmlns:mx="library://ns.adobe.com/flex/mx"
				 xmlns:component="org.openforis.collect.ui.component.*"
				 width="300" height="230"
				 title="{Message.get('surveySelection.popUp.title')}"
				 >
	
	<fx:Script>
		<![CDATA[
			import mx.events.FlexEvent;
			
			import org.openforis.collect.i18n.Message;
			import org.openforis.collect.presenter.SurveySelectionPresenter;
			import org.openforis.collect.util.ApplicationConstants;
			
			public static const DEFAULT_STATE:String = "default";
			public static const LOADING_ROOT_ENTITIES_STATE:String = "loadingRootEntities";
			public static const ROOT_ENTITIES_LOADED_STATE:String = "rootEntitiesLoaded";
			public static const LOADING_STATE:String = "loading";
			
			private var _presenter:SurveySelectionPresenter;
			
			private var _automaticallySelect:Boolean = false;
			
			override protected function creationCompleteHandler(event:FlexEvent):void {
				super.creationCompleteHandler(event);
				_presenter = new SurveySelectionPresenter(this);
			}
			
			public function get automaticallySelect():Boolean {
				return _automaticallySelect;
			}

			public function set automaticallySelect(value:Boolean):void {
				_automaticallySelect = value;
			}
			
		]]>
	</fx:Script>
	
	<component:layout>
		<s:VerticalLayout horizontalAlign="center" />
	</component:layout>

	<component:states>
		<s:State name="default" />
		<s:State name="loading" />
		<s:State name="loadingRootEntities" />
		<s:State name="rootEntitiesLoaded" />
	</component:states>
	
	<component:LoadingContent width="100%" height="100%" includeIn="loading" 
							  itemCreationPolicy="immediate"/>
	
	<s:Group height="100%" width="100%">
		<s:VGroup horizontalCenter="0" horizontalAlign="center" gap="30">
			<s:Form>
				<s:FormItem label="{Message.get('surveySelection.survey')}">
					<s:DropDownList id="surveyDDL" labelField="name" />
				</s:FormItem>
				<s:FormItem label="{Message.get('surveySelection.rootEntity')}">
					<s:DropDownList id="rootEntityDDL" labelField="name" />
				</s:FormItem>
			</s:Form>
			<s:HGroup gap="30">
				<s:Button id="okButton" label="{Message.get('surveySelection.ok')}"
						  useHandCursor="true" buttonMode="true"
						  enabled.loadingRootEntities="false"
						  />
				<s:Button id="cancelButton"
						   label="{Message.get('global.cancel')}"
						   useHandCursor="true" 
						   buttonMode="true"
						   />
			</s:HGroup>
		</s:VGroup>
	</s:Group>
</component:PopUp>
<commit_msg>OFC-1197 - Enlarge input fields in survey selection popup<commit_after><?xml version="1.0" encoding="utf-8"?>
<component:PopUp xmlns:fx="http://ns.adobe.com/mxml/2009" 
				 xmlns:s="library://ns.adobe.com/flex/spark" 
				 xmlns:mx="library://ns.adobe.com/flex/mx"
				 xmlns:component="org.openforis.collect.ui.component.*"
				 width="350" height="230"
				 title="{Message.get('surveySelection.popUp.title')}"
				 >
	
	<fx:Script>
		<![CDATA[
			import mx.events.FlexEvent;
			
			import org.openforis.collect.i18n.Message;
			import org.openforis.collect.presenter.SurveySelectionPresenter;
			import org.openforis.collect.util.ApplicationConstants;
			
			public static const DEFAULT_STATE:String = "default";
			public static const LOADING_ROOT_ENTITIES_STATE:String = "loadingRootEntities";
			public static const ROOT_ENTITIES_LOADED_STATE:String = "rootEntitiesLoaded";
			public static const LOADING_STATE:String = "loading";
			
			private var _presenter:SurveySelectionPresenter;
			
			private var _automaticallySelect:Boolean = false;
			
			override protected function creationCompleteHandler(event:FlexEvent):void {
				super.creationCompleteHandler(event);
				_presenter = new SurveySelectionPresenter(this);
			}
			
			public function get automaticallySelect():Boolean {
				return _automaticallySelect;
			}

			public function set automaticallySelect(value:Boolean):void {
				_automaticallySelect = value;
			}
			
		]]>
	</fx:Script>
	
	<component:layout>
		<s:VerticalLayout horizontalAlign="center" />
	</component:layout>

	<component:states>
		<s:State name="default" />
		<s:State name="loading" />
		<s:State name="loadingRootEntities" />
		<s:State name="rootEntitiesLoaded" />
	</component:states>
	
	<component:LoadingContent width="100%" height="100%" includeIn="loading" 
							  itemCreationPolicy="immediate"/>
	
	<s:Group height="100%" width="100%">
		<s:VGroup horizontalCenter="0" horizontalAlign="center" gap="30">
			<s:Form>
				<s:FormItem label="{Message.get('surveySelection.survey')}">
					<s:DropDownList id="surveyDDL" labelField="name"
									width="200" />
				</s:FormItem>
				<s:FormItem label="{Message.get('surveySelection.rootEntity')}">
					<s:DropDownList id="rootEntityDDL" labelField="name"
									width="150" />
				</s:FormItem>
			</s:Form>
			<s:HGroup gap="30">
				<s:Button id="okButton" label="{Message.get('surveySelection.ok')}"
						  useHandCursor="true" buttonMode="true"
						  enabled.loadingRootEntities="false"
						  />
				<s:Button id="cancelButton"
						   label="{Message.get('global.cancel')}"
						   useHandCursor="true" 
						   buttonMode="true"
						   />
			</s:HGroup>
		</s:VGroup>
	</s:Group>
</component:PopUp>

{'fraction_non_alphanumeric': 0.14749813293502614, 'fraction_numerical': 0.013816280806572068, 'mean_word_length': 4.195926285160039, 'pattern_counts': {'":': 0, '<': 67, '<?xml version=': 2, '>': 67, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 12}, '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': '6965517', 'n_tokens_mistral': 2153, 'n_tokens_neox': 1691, 'n_words': 261}