<commit_before><?xml version="1.0" encoding="utf-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"
     xmlns:util="http://schemas.microsoft.com/wix/UtilExtension">
  
  <?define Version = "1.0.0.0" ?>
  
	<Product Id="*" Name="Code Pulse" Language="1033" Version="$(var.Version)" Manufacturer="Code Dx, Inc." UpgradeCode="dc5c75ce-4562-4dc9-a1f5-e8e7e01b1c13">
		<Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" Platform="x64" />

		<Icon Id="AppIcon" SourceFile="AppIcon.ico"/>
		<Property Id="ARPPRODUCTICON" Value="AppIcon" />
    
		<MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." />
		<MediaTemplate EmbedCab="yes" />

		<Property Id="WIXUI_INSTALLDIR" Value="INSTALLFOLDER" />
    
		<UIRef Id="WixUI_InstallDir" />
		<WixVariable Id="WixUILicenseRtf" Value="License.rtf" />
		<WixVariable Id="WixUIDialogBmp" Value="WixUIDialogBmp.bmp" />
		<WixVariable Id="WixUIBannerBmp" Value="WixUIBannerBmp.bmp" />
		<Property Id="WIXUI_EXITDIALOGOPTIONALTEXT" Value="Thank you for installing Code Pulse. See the Code Pulse Start menu folder for the application shortcut and a link to open the Wiki." />

		<Component Id="ApplicationShortcuts" Guid="*" Directory="CodePulseProgramsFolder">
		<Shortcut Id="CodePulseShortcut"
                Name="Code Pulse"
                Description="Launch Code Pulse"
                Target="[INSTALLFOLDER]codepulse.exe"
                WorkingDirectory="INSTALLFOLDER"/>
		<util:InternetShortcut Id="HomeWikiLink"
                             Name="Code Pulse Wiki - Home"
                             Target="https://github.com/codedx/codepulse/wiki"/>
		<RemoveFolder Id="RemoveShortcutFolder" On="uninstall"/>
		<RegistryValue
			Root="HKCU"
			Key="Software\Code Dx, Inc.\CodePulse"
			Name="installed"
			Type="integer"
			Value="1"
			KeyPath="yes"/>
		</Component>

		<Feature Id="ProductFeature" Title="CodePulse" Level="1">
			<ComponentGroupRef Id="CodePulseApp"/>
			<ComponentGroupRef Id="SymbolService"/>
			<ComponentGroupRef Id="Tracers"/>
			<ComponentRef Id="ApplicationShortcuts"/>
		</Feature>

    <InstallExecuteSequence>
      <Custom Action="ValidateCodePulseInstallFolderProperty" After="CostFinalize">
        NOT Installed
      </Custom>
      <Custom Action="ValidateCodePulseInstallFolderCustomAction" After="InstallInitialize">
        NOT Installed
      </Custom>
    </InstallExecuteSequence>
	</Product>

	<Fragment>
		<Directory Id="TARGETDIR" Name="SourceDir">
			<Directory Id="ProgramFiles64Folder">
				<Directory Id="INSTALLFOLDER" Name="Code Pulse" />
			</Directory>
		<Directory Id="ProgramMenuFolder">
			<Directory Id="CodePulseProgramsFolder" Name="Code Pulse"/>
			</Directory>
		</Directory>
	</Fragment>

  <Fragment>
    <CustomAction Id="ValidateCodePulseInstallFolderProperty" Property="ValidateCodePulseInstallFolderCustomAction" Value="[INSTALLFOLDER]"/>
    <CustomAction Id="ValidateCodePulseInstallFolderCustomAction" BinaryKey="CodePulseInstallerDll" DllEntry="ValidateCodePulseInstallFolder" Execute="deferred"/>
    <Binary Id="CodePulseInstallerDll" SourceFile="CodePulse.Installer.dll"/>
  </Fragment><commit_msg>Remove compile warning by shortening binary key<commit_after><?xml version="1.0" encoding="utf-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"
     xmlns:util="http://schemas.microsoft.com/wix/UtilExtension">
  
  <?define Version = "1.0.0.0" ?>
  
	<Product Id="*" Name="Code Pulse" Language="1033" Version="$(var.Version)" Manufacturer="Code Dx, Inc." UpgradeCode="dc5c75ce-4562-4dc9-a1f5-e8e7e01b1c13">
		<Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" Platform="x64" />

		<Icon Id="AppIcon" SourceFile="AppIcon.ico"/>
		<Property Id="ARPPRODUCTICON" Value="AppIcon" />
    
		<MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." />
		<MediaTemplate EmbedCab="yes" />

		<Property Id="WIXUI_INSTALLDIR" Value="INSTALLFOLDER" />
    
		<UIRef Id="WixUI_InstallDir" />
		<WixVariable Id="WixUILicenseRtf" Value="License.rtf" />
		<WixVariable Id="WixUIDialogBmp" Value="WixUIDialogBmp.bmp" />
		<WixVariable Id="WixUIBannerBmp" Value="WixUIBannerBmp.bmp" />
		<Property Id="WIXUI_EXITDIALOGOPTIONALTEXT" Value="Thank you for installing Code Pulse. See the Code Pulse Start menu folder for the application shortcut and a link to open the Wiki." />

		<Component Id="ApplicationShortcuts" Guid="*" Directory="CodePulseProgramsFolder">
		<Shortcut Id="CodePulseShortcut"
                Name="Code Pulse"
                Description="Launch Code Pulse"
                Target="[INSTALLFOLDER]codepulse.exe"
                WorkingDirectory="INSTALLFOLDER"/>
		<util:InternetShortcut Id="HomeWikiLink"
                             Name="Code Pulse Wiki - Home"
                             Target="https://github.com/codedx/codepulse/wiki"/>
		<RemoveFolder Id="RemoveShortcutFolder" On="uninstall"/>
		<RegistryValue
			Root="HKCU"
			Key="Software\Code Dx, Inc.\CodePulse"
			Name="installed"
			Type="integer"
			Value="1"
			KeyPath="yes"/>
		</Component>

		<Feature Id="ProductFeature" Title="CodePulse" Level="1">
			<ComponentGroupRef Id="CodePulseApp"/>
			<ComponentGroupRef Id="SymbolService"/>
			<ComponentGroupRef Id="Tracers"/>
			<ComponentRef Id="ApplicationShortcuts"/>
		</Feature>

    <InstallExecuteSequence>
      <Custom Action="ValidateCodePulseInstallFolderProperty" After="CostFinalize">
        NOT Installed
      </Custom>
      <Custom Action="ValidateCodePulseInstallFolderCustomAction" After="InstallInitialize">
        NOT Installed
      </Custom>
    </InstallExecuteSequence>
	</Product>

	<Fragment>
		<Directory Id="TARGETDIR" Name="SourceDir">
			<Directory Id="ProgramFiles64Folder">
				<Directory Id="INSTALLFOLDER" Name="Code Pulse" />
			</Directory>
		<Directory Id="ProgramMenuFolder">
			<Directory Id="CodePulseProgramsFolder" Name="Code Pulse"/>
			</Directory>
		</Directory>
	</Fragment>

  <Fragment>
    <CustomAction Id="ValidateCodePulseInstallFolderProperty" Property="ValidateCodePulseInstallFolderCustomAction" Value="[INSTALLFOLDER]"/>
    <CustomAction Id="ValidateCodePulseInstallFolderCustomAction" BinaryKey="CodePulseDll" DllEntry="ValidateCodePulseInstallFolder" Execute="deferred"/>
    <Binary Id="CodePulseDll" SourceFile="CodePulse.Installer.dll"/>
  </Fragment>
{'fraction_non_alphanumeric': 0.13714464229928147, 'fraction_numerical': 0.013120899718837863, 'mean_word_length': 4.505588993981084, 'pattern_counts': {'":': 0, '<': 101, '<?xml version=': 2, '>': 101, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 6}, 'pii_count': 2, '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': '3398645', 'n_tokens_mistral': 2183, 'n_tokens_neox': 1985, 'n_words': 357}