<commit_before><component>
    <name>CollectEarthMainComponent</name>
    <description>CollectEarth</description>
    <canBeEdited>1</canBeEdited>
    <selected>1</selected>
    <show>1</show>
    <desktopShortcutList>
        <shortcut>
            <comment>Start Collect Earth</comment>
            <exec>${installdir}/CollectEarth-launcher.run</exec>
            <icon>${installdir}/launcher_logo.png</icon>
            <name>Collect Earth</name>
            <path></path>
            <platforms>all</platforms>
            <runAsAdmin>0</runAsAdmin>
            <runInTerminal>0</runInTerminal>
            <windowsExec>${installdir}/CollectEarth-launcher.exe</windowsExec>
            <windowsExecArgs></windowsExecArgs>
            <windowsIcon>${installdir}/launcher_icon.ico</windowsIcon>
            <windowsPath></windowsPath>
        </shortcut>
    </desktopShortcutList>
    <folderList>
        <folder>
            <description>Program Files</description>
            <destination>${installdir}</destination>
            <name>programfiles</name>
            <platforms>all</platforms>
            <distributionFileList>
                <distributionDirectory>
                    <origin>COLLECT_EARTH_MAIN_FOLDER/collect-earth-app/src/main/resources/images</origin>
                </distributionDirectory>
                <distributionDirectory>
                    <origin>COLLECT_EARTH_MAIN_FOLDER/collect-earth-app/target/earth-libs</origin>
                </distributionDirectory>
                <distributionFile>
                    <origin>COLLECT_EARTH_MAIN_FOLDER/collect-earth-app/target/CollectEarth.jar</origin>
                </distributionFile>
                <distributionFile>
                    <origin>COLLECT_EARTH_MAIN_FOLDER/collect-earth-app/disclaimer.txt</origin>
                </distributionFile>
                <distributionFile>
                    <origin>COLLECT_EARTH_MAIN_FOLDER/collect-earth-app/README.txt</origin>
                </distributionFile>
                <distributionFile>
                    <origin>COLLECT_EARTH_MAIN_FOLDER/collect-earth-app/License.txt</origin>
                </distributionFile>
                <distributionFile>
                    <origin>COLLECT_EARTH_MAIN_FOLDER/collect-earth-app/UserManual.pdf</origin>
                </distributionFile>
                <distributionFile>
                    <origin>earth.properties_initial</origin>
                </distributionFile>
                <distributionFile>
                    <origin>earth.properties_forced_update</origin>
                </distributionFile>
                <distributionFile>
                    <origin>update.ini</origin>
                </distributionFile>
            </distributionFileList>
            <shortcutList>
                <shortcut>
                    <comment>Uninstall</comment>
                    <exec>${installdir}/${uninstallerName}</exec>
                    <icon></icon>
                    <name>Uninstall ${product_fullname}</name>
                    <path>${installdir}</path>
                    <platforms>all</platforms>
                    <runAsAdmin>0</runAsAdmin>
                    <runInTerminal>0</runInTerminal>
                    <windowsExec>${installdir}/${uninstallerName}.exe</windowsExec>
                    <windowsExecArgs></windowsExecArgs>
                    <windowsIcon></windowsIcon>
                    <windowsPath>${installdir}</windowsPath>
                </shortcut>
            </shortcutList>
        </folder>
		<folder>
            <description>Resources Windows</description>
            <destination>${installdir}/resources</destination>
            <name>resourceswindows</name>
            <platforms>windows</platforms>
            <distributionFileList>
	         	<distributionDirectory  allowWildcards="1">
	                <excludeFiles>*/chromedriver32;*/chromedriver64;*/chromedriver_mac;*/geckodriver;*/geckodriver_mac</excludeFiles>
	            	<origin>../../../collect-earth-app/resources/*</origin>
	            </distributionDirectory>
            </distributionFileList>
        </folder>
        <folder>
            <description>Resources Linux</description>
            <destination>${installdir}/resources</destination>
            <name>resourceslinux</name>
            <platforms>linux</platforms>
            <distributionFileList>
	         	<distributionDirectory  allowWildcards="1">
	                <excludeFiles>*/chromedriver.exe;*/chromedriver_mac;*/geckodriver.exe;*/geckodriver_mac</excludeFiles>
	            	<origin>../../../collect-earth-app/resources/*</origin>
	            </distributionDirectory>
            </distributionFileList>
        </folder>
        <folder>
            <description>Resources Mac</description>
            <destination>${installdir}/resources</destination>
            <name>resourcesosx</name>
            <platforms>osx</platforms>
            <distributionFileList>
	         	<distributionDirectory allowWildcards="1">
	                <excludeFiles>*/chromedriver.exe;*/chromedriver32;*/chromedriver64;*/geckodriver.exe;*/geckodriver</excludeFiles>
	            	<origin>../../../collect-earth-app/resources/*</origin>
	            </distributionDirectory>
            </distributionFileList>
        </folder>
        <folder>
            <description>Program Files</description>
            <destination>${installdir}</destination>
            <name>programfileslinux</name>
            <platforms>linux linux-x64</platforms>
            <distributionFileList>
                <distributionFile>
                    <origin>launcher_logo.png</origin>
                </distributionFile>
                <distributionFile>
                    <origin>COLLECT_EARTH_MAIN_FOLDER/collect-earth-app/autoupdate/autoupdate.run</origin>
                </distributionFile>
            </distributionFileList>
        </folder>
        <folder>
            <description>Program Files</description>
            <destination>${installdir}</destination>
            <name>programfileswindows</name>
            <platforms>windows</platforms>
            <distributionFileList>
                <distributionFile>
                    <origin>launcher_icon.ico</origin>
                </distributionFile>
                <distributionFile>
                    <origin>COLLECT_EARTH_MAIN_FOLDER/collect-earth-app/autoupdate/autoupdate.exe</origin>
                </distributionFile>
            </distributionFileList>
        </folder>
        <folder>
            <description>Program Files</description>
            <destination>${installdir}</destination>
            <name>programfilesosx</name>
            <platforms>osx</platforms>
            <distributionFileList>
                <!-- 
                <distributionFile>
                    <origin>launcher_icon.icns</origin>
                </distributionFile>
                 -->
                <distributionDirectory>
                    <origin>COLLECT_EARTH_MAIN_FOLDER/collect-earth-app/autoupdate/autoupdate.app</origin>
                </distributionDirectory>
            </distributionFileList>
        </folder>
    </folderList>
    <initializationActionList>
        <setInstallerVariable>
            <name>java_launcher_jar</name>
            <progressText>Creating Launcher</progressText>
            <value>CollectEarth.jar</value>
        </setInstallerVariable>
         <if>
        	<actionList>
        		<setInstallerVariable>
        			<name>default_installdir</name>
        			<value>${env(SYSTEMDRIVE)}/OpenForis/${product_shortname}</value> 
        		</setInstallerVariable>
        	</actionList>
        	<conditionRuleList>
        		<platformTest>
        			<type>windows</type>
        		</platformTest>
			</conditionRuleList> 
			<elseActionList>
				<setInstallerVariable>
				<name>default_installdir</name>
				<value>~/OpenForis/${product_shortname}</value>
			</setInstallerVariable>
			</elseActionList>
		</if>
    </initializationActionList>
    
    <parameterList>
        <directoryParameter>
            <name>installdir</name>
            <description>Installer.Parameter.installdir.description</description>
            <explanation>Installer.Parameter.installdir.explanation</explanation>
            <value></value>
            <default>${default_installdir}</default>
            <allowEmptyValue>0</allowEmptyValue>
            <ask>yes</ask>
            <cliOptionName>prefix</cliOptionName>
            <mustBeWritable>yes</mustBeWritable>
            <mustExist>0</mustExist>
            <width>40</width>
        </directoryParameter>
    </parameterList>
    <postBuildActionList>
        <!-- Change installer icon on OS X, during build time -->
        
        <copyFile>
            <destination>${installbuilder_output_filename}/Contents/Resources/installbuilder.icns</destination>
            <origin>COLLECT_EARTH_MAIN_FOLDER/collect-earth-installer/src/main/resources/installer_icon.icns</origin>
            <ruleList>
                <compareText logic="equals" text="${platform_name}" value="osx"/>
            </ruleList>
        </copyFile>
    </postBuildActionList>
    <postInstallationActionList>
        <substitute>
            <files>${installdir}/earth.properties_initial;${installdir}/earth.properties_forced_update</files>
            <type>regexp</type>
            <substitutionList>
                <substitution>
                    <pattern>install_directory</pattern>
                    <value>${installdir}</value>
                </substitution>
                <substitution>
                    <pattern>INSTALLATION_LANGUAGE</pattern>
                    <value>${installation_language_code}</value>
                </substitution>
            </substitutionList>
        </substitute>
        	
        <changePermissions>
            <files>${installdir}/${java_launcher_binary_name};${installdir}/*.log;${installdir}/*.properties;${installdir}/generated;${installdir}/*.db;${installdir}/*.dbSaiku</files>
            <permissions>0777</permissions>
        </changePermissions>
         <changePermissions>
            <files>${installdir}/resources/chromedriver32;${installdir}/resources/chromedriver64;${installdir}/resources/geckodriver</files>
            <permissions>0777</permissions>
            <ruleList>
                <platformTest>
                    <type>linux</type>
                </platformTest>
            </ruleList>
        </changePermissions>
        <changePermissions>
            <files>${installdir}/resources/chromedriver_mac;${installdir}/resources/geckodriver_mac</files>
            <permissions>0777</permissions><commit_msg>Fix bug on linux64 not including resources folder<commit_after><component>
    <name>CollectEarthMainComponent</name>
    <description>CollectEarth</description>
    <canBeEdited>1</canBeEdited>
    <selected>1</selected>
    <show>1</show>
    <desktopShortcutList>
        <shortcut>
            <comment>Start Collect Earth</comment>
            <exec>${installdir}/CollectEarth-launcher.run</exec>
            <icon>${installdir}/launcher_logo.png</icon>
            <name>Collect Earth</name>
            <path></path>
            <platforms>all</platforms>
            <runAsAdmin>0</runAsAdmin>
            <runInTerminal>0</runInTerminal>
            <windowsExec>${installdir}/CollectEarth-launcher.exe</windowsExec>
            <windowsExecArgs></windowsExecArgs>
            <windowsIcon>${installdir}/launcher_icon.ico</windowsIcon>
            <windowsPath></windowsPath>
        </shortcut>
    </desktopShortcutList>
    <folderList>
        <folder>
            <description>Program Files</description>
            <destination>${installdir}</destination>
            <name>programfiles</name>
            <platforms>all</platforms>
            <distributionFileList>
                <distributionDirectory>
                    <origin>COLLECT_EARTH_MAIN_FOLDER/collect-earth-app/src/main/resources/images</origin>
                </distributionDirectory>
                <distributionDirectory>
                    <origin>COLLECT_EARTH_MAIN_FOLDER/collect-earth-app/target/earth-libs</origin>
                </distributionDirectory>
                <distributionFile>
                    <origin>COLLECT_EARTH_MAIN_FOLDER/collect-earth-app/target/CollectEarth.jar</origin>
                </distributionFile>
                <distributionFile>
                    <origin>COLLECT_EARTH_MAIN_FOLDER/collect-earth-app/disclaimer.txt</origin>
                </distributionFile>
                <distributionFile>
                    <origin>COLLECT_EARTH_MAIN_FOLDER/collect-earth-app/README.txt</origin>
                </distributionFile>
                <distributionFile>
                    <origin>COLLECT_EARTH_MAIN_FOLDER/collect-earth-app/License.txt</origin>
                </distributionFile>
                <distributionFile>
                    <origin>COLLECT_EARTH_MAIN_FOLDER/collect-earth-app/UserManual.pdf</origin>
                </distributionFile>
                <distributionFile>
                    <origin>earth.properties_initial</origin>
                </distributionFile>
                <distributionFile>
                    <origin>earth.properties_forced_update</origin>
                </distributionFile>
                <distributionFile>
                    <origin>update.ini</origin>
                </distributionFile>
            </distributionFileList>
            <shortcutList>
                <shortcut>
                    <comment>Uninstall</comment>
                    <exec>${installdir}/${uninstallerName}</exec>
                    <icon></icon>
                    <name>Uninstall ${product_fullname}</name>
                    <path>${installdir}</path>
                    <platforms>all</platforms>
                    <runAsAdmin>0</runAsAdmin>
                    <runInTerminal>0</runInTerminal>
                    <windowsExec>${installdir}/${uninstallerName}.exe</windowsExec>
                    <windowsExecArgs></windowsExecArgs>
                    <windowsIcon></windowsIcon>
                    <windowsPath>${installdir}</windowsPath>
                </shortcut>
            </shortcutList>
        </folder>
		<folder>
            <description>Resources Windows</description>
            <destination>${installdir}/resources</destination>
            <name>resourceswindows</name>
            <platforms>windows</platforms>
            <distributionFileList>
	         	<distributionDirectory  allowWildcards="1">
	                <excludeFiles>*/chromedriver32;*/chromedriver64;*/chromedriver_mac;*/geckodriver;*/geckodriver_mac</excludeFiles>
	            	<origin>../../../collect-earth-app/resources/*</origin>
	            </distributionDirectory>
            </distributionFileList>
        </folder>
        <folder>
            <description>Resources Linux</description>
            <destination>${installdir}/resources</destination>
            <name>resourceslinux</name>
            <platforms>linux linux-x64</platforms>
            <distributionFileList>
	         	<distributionDirectory  allowWildcards="1">
	                <excludeFiles>*/chromedriver.exe;*/chromedriver_mac;*/geckodriver.exe;*/geckodriver_mac</excludeFiles>
	            	<origin>../../../collect-earth-app/resources/*</origin>
	            </distributionDirectory>
            </distributionFileList>
        </folder>
        <folder>
            <description>Resources Mac</description>
            <destination>${installdir}/resources</destination>
            <name>resourcesosx</name>
            <platforms>osx</platforms>
            <distributionFileList>
	         	<distributionDirectory allowWildcards="1">
	                <excludeFiles>*/chromedriver.exe;*/chromedriver32;*/chromedriver64;*/geckodriver.exe;*/geckodriver</excludeFiles>
	            	<origin>../../../collect-earth-app/resources/*</origin>
	            </distributionDirectory>
            </distributionFileList>
        </folder>
        <folder>
            <description>Program Files</description>
            <destination>${installdir}</destination>
            <name>programfileslinux</name>
            <platforms>linux linux-x64</platforms>
            <distributionFileList>
                <distributionFile>
                    <origin>launcher_logo.png</origin>
                </distributionFile>
                <distributionFile>
                    <origin>COLLECT_EARTH_MAIN_FOLDER/collect-earth-app/autoupdate/autoupdate.run</origin>
                </distributionFile>
            </distributionFileList>
        </folder>
        <folder>
            <description>Program Files</description>
            <destination>${installdir}</destination>
            <name>programfileswindows</name>
            <platforms>windows</platforms>
            <distributionFileList>
                <distributionFile>
                    <origin>launcher_icon.ico</origin>
                </distributionFile>
                <distributionFile>
                    <origin>COLLECT_EARTH_MAIN_FOLDER/collect-earth-app/autoupdate/autoupdate.exe</origin>
                </distributionFile>
            </distributionFileList>
        </folder>
        <folder>
            <description>Program Files</description>
            <destination>${installdir}</destination>
            <name>programfilesosx</name>
            <platforms>osx</platforms>
            <distributionFileList>
                <!-- 
                <distributionFile>
                    <origin>launcher_icon.icns</origin>
                </distributionFile>
                 -->
                <distributionDirectory>
                    <origin>COLLECT_EARTH_MAIN_FOLDER/collect-earth-app/autoupdate/autoupdate.app</origin>
                </distributionDirectory>
            </distributionFileList>
        </folder>
    </folderList>
    <initializationActionList>
        <setInstallerVariable>
            <name>java_launcher_jar</name>
            <progressText>Creating Launcher</progressText>
            <value>CollectEarth.jar</value>
        </setInstallerVariable>
         <if>
        	<actionList>
        		<setInstallerVariable>
        			<name>default_installdir</name>
        			<value>${env(SYSTEMDRIVE)}/OpenForis/${product_shortname}</value> 
        		</setInstallerVariable>
        	</actionList>
        	<conditionRuleList>
        		<platformTest>
        			<type>windows</type>
        		</platformTest>
			</conditionRuleList> 
			<elseActionList>
				<setInstallerVariable>
				<name>default_installdir</name>
				<value>~/OpenForis/${product_shortname}</value>
			</setInstallerVariable>
			</elseActionList>
		</if>
    </initializationActionList>
    
    <parameterList>
        <directoryParameter>
            <name>installdir</name>
            <description>Installer.Parameter.installdir.description</description>
            <explanation>Installer.Parameter.installdir.explanation</explanation>
            <value></value>
            <default>${default_installdir}</default>
            <allowEmptyValue>0</allowEmptyValue>
            <ask>yes</ask>
            <cliOptionName>prefix</cliOptionName>
            <mustBeWritable>yes</mustBeWritable>
            <mustExist>0</mustExist>
            <width>40</width>
        </directoryParameter>
    </parameterList>
    <postBuildActionList>
        <!-- Change installer icon on OS X, during build time -->
        
        <copyFile>
            <destination>${installbuilder_output_filename}/Contents/Resources/installbuilder.icns</destination>
            <origin>COLLECT_EARTH_MAIN_FOLDER/collect-earth-installer/src/main/resources/installer_icon.icns</origin>
            <ruleList>
                <compareText logic="equals" text="${platform_name}" value="osx"/>
            </ruleList>
        </copyFile>
    </postBuildActionList>
    <postInstallationActionList>
        <substitute>
            <files>${installdir}/earth.properties_initial;${installdir}/earth.properties_forced_update</files>
            <type>regexp</type>
            <substitutionList>
                <substitution>
                    <pattern>install_directory</pattern>
                    <value>${installdir}</value>
                </substitution>
                <substitution>
                    <pattern>INSTALLATION_LANGUAGE</pattern>
                    <value>${installation_language_code}</value>
                </substitution>
            </substitutionList>
        </substitute>
        	
        <changePermissions>
            <files>${installdir}/${java_launcher_binary_name};${installdir}/*.log;${installdir}/*.properties;${installdir}/generated;${installdir}/*.db;${installdir}/*.dbSaiku</files>
            <permissions>0777</permissions>
        </changePermissions>
         <changePermissions>
            <files>${installdir}/resources/chromedriver32;${installdir}/resources/chromedriver64;${installdir}/resources/geckodriver</files>
            <permissions>0777</permissions>
            <ruleList>
                <platformTest>
                    <type>linux linux-x64</type>
                </platformTest>
            </ruleList>
        </changePermissions>
        <changePermissions>
            <files>${installdir}/resources/chromedriver_mac;${installdir}/resources/geckodriver_mac</files>
            <permissions>0777</permissions>
{'fraction_non_alphanumeric': 0.11701831025188214, 'fraction_numerical': 0.003996653964123059, 'mean_word_length': 1.9486160591942998, 'pattern_counts': {'":': 0, '<': 707, '<?xml version=': 0, '>': 707, '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': '2407470', 'n_tokens_mistral': 6108, 'n_tokens_neox': 5615, 'n_words': 538}