<commit_before><?xml version="1.0" encoding="UTF-8"?>

<?include Variables.wxi ?>

<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:netfx="http://schemas.microsoft.com/wix/NetFxExtension" xmlns:util="http://schemas.microsoft.com/wix/UtilExtension">
  <Fragment>
    <?foreach ide in VS2010;VS2012;VS2013 ?>

    <PropertyRef Id="$(var.ide)_ROOT_FOLDER" />

    <ComponentGroup Id="CompGroup_$(var.ide)Extension" Directory="INSTALLFOLDER">
      <ComponentRef Id="Comp_CSharpGrammar" />
      <ComponentRef Id="Comp_JsonGrammar" />
      <ComponentRef Id="Comp_NitraPathVariable"/>
      <ComponentRef Id="Comp_NitraGlobalConfig"/>
      <ComponentRef Id="Comp_Nitra.VisualStudio"/>
      <ComponentRef Id="Comp_Nemerle.Diff"/>
      <ComponentRef Id="Comp_NLog"/>
      <ComponentRef Id="Comp_$(var.ide)Extension" />
      <ComponentRef Id="Comp_$(var.ide)ItemTemplates" />
      <ComponentRef Id="Comp_$(var.ide)ProjectTemplates" />
      <ComponentRef Id="Comp_$(var.ide)_CleanupExtensionFolder"/>
    </ComponentGroup>

    <DirectoryRef Id="TARGETDIR">
      <Directory Id="$(var.ide)_ROOT_FOLDER" Name="$(var.ide)">
        <Directory Id="$(var.ide)_Common7_Folder" Name="Common7">
          <Directory Id="$(var.ide)_IDE_Folder" Name="IDE">
            <Directory Id="$(var.ide)_Extensions_Folder" Name="Extensions">
              <Directory Id="$(var.ide)_ExtensionManufacturer_Folder" Name="$(var.Manufacturer)">
                <Directory Id="$(var.ide)_ExtensionName_Folder" Name="$(var.ProductName)">
                  <Directory Id="$(var.ide)EXTENSIONDIR" Name="$(var.ProductVersion)">
                    <Directory Id="$(var.ide)_ItemTemplates_Folder" Name="ItemTemplates">
                      <Directory Id="$(var.ide)_NitraItemTemplates_Folder" Name="Nitra" />
                    </Directory>
                    <Directory Id="$(var.ide)_ProjectTemplates_Folder" Name="ProjectTemplates">
                      <Directory Id="$(var.ide)_NitraProjectTemplates_Folder" Name="Nitra" />
                    </Directory>
                  </Directory>
                </Directory>
              </Directory>
            </Directory>
          </Directory>
        </Directory>
      </Directory>
    </DirectoryRef>

    <CustomAction Id="$(var.ide)UpdateExtensionsInit" Property="$(var.ide)UpdateExtensions" Value="[$(var.ide)_Extensions_Folder]extensions.configurationchanged" />
    <CustomAction Id="$(var.ide)UpdateExtensions" Impersonate="no" BinaryKey="ScriptActions.js" JScriptCall="UpdateFileTimestamp" Return="check" Execute="deferred" />

    <Property Id="$(var.ide)EXTENSIONDIR">
      <RegistrySearch Id="$(var.ide)EXTENSIONDIR_REGSEARCH" Key="Software\$(var.Manufacturer)\$(var.ProductName)" Root="HKLM" Type="raw" Name="$(var.ide)ExtensionPath" />
    </Property>

    <DirectoryRef Id="$(var.ide)EXTENSIONDIR">
      <Component Id="Comp_$(var.ide)_CleanupExtensionFolder" Guid="*">
        <RegistryValue Root="HKLM" Key="Software\$(var.Manufacturer)\$(var.ProductName)" Name="$(var.ide)ExtensionPath" Type="string" Value="[$(var.ide)EXTENSIONDIR]" KeyPath="yes" />
        <util:RemoveFolderEx On="uninstall" Property="$(var.ide)EXTENSIONDIR" />
      </Component>
    </DirectoryRef>

    <?endforeach?>

    <Binary Id="ScriptActions.js" SourceFile="ScriptActions.js" />

    <DirectoryRef Id="TARGETDIR">
      <Component Id="Comp_NitraPathVariable" DiskId="1" Guid="$(var.Comp_NitraPathVariable_Guid)">
        <Environment Id="Env_NITRAPATH" Name="NITRAPATH" System="yes" Permanent="no" Part="all" Action="set" Value="[INSTALLFOLDER]" />
      </Component>
    </DirectoryRef>

    <DirectoryRef Id="INSTALLFOLDER">
      <Component Id="Comp_NitraGlobalConfig" DiskId="1" Guid="$(var.Comp_NitraGlobalConfig_Guid)">
        <File Id="File_NitraGlobalConfig.xml" Name="NitraGlobalConfig.xml" Source="NitraGlobalConfig.xml" />
      </Component>
      <Component Id="Comp_Nitra.VisualStudio" DiskId="1" Guid="$(var.Comp_Nitra.VisualStudio_Guid)">
        <File Id="File_Nitra.VisualStudio.dll" Name="Nitra.VisualStudio.dll" Source="$(var.VisualStudioPackageSourcePath)">
          <netfx:NativeImage Id="Image_Nitra.VisualStudio.dll" Priority="1" Platform="all" Dependencies="no" AppBaseDirectory="INSTALLFOLDER" />
        </File>
        <?if $(var.Configuration) = "Debug" ?>
        <File Id="File_Nitra.VisualStudio.pdb" Name="Nitra.VisualStudio.pdb" Source="$(var.VisualStudioPackageSourcePath)" />
        <?endif?>
      </Component>
      <Component Id="Comp_Nemerle.Diff" DiskId="1" Guid="$(var.Comp_Nemerle.Diff_Guid)">
        <File Id="File_Nemerle.Diff.dll" Name="Nemerle.Diff.dll" Source="$(var.VisualStudioPackageSourcePath)">
          <netfx:NativeImage Id="Image_Nemerle.Diff.dll" Priority="1" Platform="all" Dependencies="no" AppBaseDirectory="INSTALLFOLDER" />
        </File>
      </Component>
      <Component Id="Comp_NLog" DiskId="1" Guid="$(var.Comp_NLog_Guid)">
        <File Id="File_NLog.dll" Name="NLog.dll" Source="$(var.VisualStudioPackageSourcePath)">
          <netfx:NativeImage  Id="Image_NLog.dll" Priority="1" Platform="all" Dependencies="no" AppBaseDirectory="INSTALLFOLDER" />
        </File>
        <File Id="File_NLog.dll.nlog" Name="NLog.dll.nlog" Source="$(var.VisualStudioPackageSourcePath)" />
      </Component>
    </DirectoryRef>

    <?define ItemTemplates    = "SyntaxModule.zip"?>
    <?define ProjectTemplates = "EmptyParserLibrary.zip;SampleParserApplication.zip;QuotationSample.zip"?>
<commit_msg>Change environment variable name casing.<commit_after><?xml version="1.0" encoding="UTF-8"?>

<?include Variables.wxi ?>

<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:netfx="http://schemas.microsoft.com/wix/NetFxExtension" xmlns:util="http://schemas.microsoft.com/wix/UtilExtension">
  <Fragment>
    <?foreach ide in VS2010;VS2012;VS2013 ?>

    <PropertyRef Id="$(var.ide)_ROOT_FOLDER" />

    <ComponentGroup Id="CompGroup_$(var.ide)Extension" Directory="INSTALLFOLDER">
      <ComponentRef Id="Comp_CSharpGrammar" />
      <ComponentRef Id="Comp_JsonGrammar" />
      <ComponentRef Id="Comp_NitraPathVariable"/>
      <ComponentRef Id="Comp_NitraGlobalConfig"/>
      <ComponentRef Id="Comp_Nitra.VisualStudio"/>
      <ComponentRef Id="Comp_Nemerle.Diff"/>
      <ComponentRef Id="Comp_NLog"/>
      <ComponentRef Id="Comp_$(var.ide)Extension" />
      <ComponentRef Id="Comp_$(var.ide)ItemTemplates" />
      <ComponentRef Id="Comp_$(var.ide)ProjectTemplates" />
      <ComponentRef Id="Comp_$(var.ide)_CleanupExtensionFolder"/>
    </ComponentGroup>

    <DirectoryRef Id="TARGETDIR">
      <Directory Id="$(var.ide)_ROOT_FOLDER" Name="$(var.ide)">
        <Directory Id="$(var.ide)_Common7_Folder" Name="Common7">
          <Directory Id="$(var.ide)_IDE_Folder" Name="IDE">
            <Directory Id="$(var.ide)_Extensions_Folder" Name="Extensions">
              <Directory Id="$(var.ide)_ExtensionManufacturer_Folder" Name="$(var.Manufacturer)">
                <Directory Id="$(var.ide)_ExtensionName_Folder" Name="$(var.ProductName)">
                  <Directory Id="$(var.ide)EXTENSIONDIR" Name="$(var.ProductVersion)">
                    <Directory Id="$(var.ide)_ItemTemplates_Folder" Name="ItemTemplates">
                      <Directory Id="$(var.ide)_NitraItemTemplates_Folder" Name="Nitra" />
                    </Directory>
                    <Directory Id="$(var.ide)_ProjectTemplates_Folder" Name="ProjectTemplates">
                      <Directory Id="$(var.ide)_NitraProjectTemplates_Folder" Name="Nitra" />
                    </Directory>
                  </Directory>
                </Directory>
              </Directory>
            </Directory>
          </Directory>
        </Directory>
      </Directory>
    </DirectoryRef>

    <CustomAction Id="$(var.ide)UpdateExtensionsInit" Property="$(var.ide)UpdateExtensions" Value="[$(var.ide)_Extensions_Folder]extensions.configurationchanged" />
    <CustomAction Id="$(var.ide)UpdateExtensions" Impersonate="no" BinaryKey="ScriptActions.js" JScriptCall="UpdateFileTimestamp" Return="check" Execute="deferred" />

    <Property Id="$(var.ide)EXTENSIONDIR">
      <RegistrySearch Id="$(var.ide)EXTENSIONDIR_REGSEARCH" Key="Software\$(var.Manufacturer)\$(var.ProductName)" Root="HKLM" Type="raw" Name="$(var.ide)ExtensionPath" />
    </Property>

    <DirectoryRef Id="$(var.ide)EXTENSIONDIR">
      <Component Id="Comp_$(var.ide)_CleanupExtensionFolder" Guid="*">
        <RegistryValue Root="HKLM" Key="Software\$(var.Manufacturer)\$(var.ProductName)" Name="$(var.ide)ExtensionPath" Type="string" Value="[$(var.ide)EXTENSIONDIR]" KeyPath="yes" />
        <util:RemoveFolderEx On="uninstall" Property="$(var.ide)EXTENSIONDIR" />
      </Component>
    </DirectoryRef>

    <?endforeach?>

    <Binary Id="ScriptActions.js" SourceFile="ScriptActions.js" />

    <DirectoryRef Id="TARGETDIR">
      <Component Id="Comp_NitraPathVariable" DiskId="1" Guid="$(var.Comp_NitraPathVariable_Guid)">
        <Environment Id="Env_NITRAPATH" Name="NitraPath" System="yes" Permanent="no" Part="all" Action="set" Value="[INSTALLFOLDER]" />
      </Component>
    </DirectoryRef>

    <DirectoryRef Id="INSTALLFOLDER">
      <Component Id="Comp_NitraGlobalConfig" DiskId="1" Guid="$(var.Comp_NitraGlobalConfig_Guid)">
        <File Id="File_NitraGlobalConfig.xml" Name="NitraGlobalConfig.xml" Source="NitraGlobalConfig.xml" />
      </Component>
      <Component Id="Comp_Nitra.VisualStudio" DiskId="1" Guid="$(var.Comp_Nitra.VisualStudio_Guid)">
        <File Id="File_Nitra.VisualStudio.dll" Name="Nitra.VisualStudio.dll" Source="$(var.VisualStudioPackageSourcePath)">
          <netfx:NativeImage Id="Image_Nitra.VisualStudio.dll" Priority="1" Platform="all" Dependencies="no" AppBaseDirectory="INSTALLFOLDER" />
        </File>
        <?if $(var.Configuration) = "Debug" ?>
        <File Id="File_Nitra.VisualStudio.pdb" Name="Nitra.VisualStudio.pdb" Source="$(var.VisualStudioPackageSourcePath)" />
        <?endif?>
      </Component>
      <Component Id="Comp_Nemerle.Diff" DiskId="1" Guid="$(var.Comp_Nemerle.Diff_Guid)">
        <File Id="File_Nemerle.Diff.dll" Name="Nemerle.Diff.dll" Source="$(var.VisualStudioPackageSourcePath)">
          <netfx:NativeImage Id="Image_Nemerle.Diff.dll" Priority="1" Platform="all" Dependencies="no" AppBaseDirectory="INSTALLFOLDER" />
        </File>
      </Component>
      <Component Id="Comp_NLog" DiskId="1" Guid="$(var.Comp_NLog_Guid)">
        <File Id="File_NLog.dll" Name="NLog.dll" Source="$(var.VisualStudioPackageSourcePath)">
          <netfx:NativeImage  Id="Image_NLog.dll" Priority="1" Platform="all" Dependencies="no" AppBaseDirectory="INSTALLFOLDER" />
        </File>
        <File Id="File_NLog.dll.nlog" Name="NLog.dll.nlog" Source="$(var.VisualStudioPackageSourcePath)" />
      </Component>
    </DirectoryRef>

    <?define ItemTemplates    = "SyntaxModule.zip"?>
    <?define ProjectTemplates = "EmptyParserLibrary.zip;SampleParserApplication.zip;QuotationSample.zip"?>

{'fraction_non_alphanumeric': 0.16477736465040355, 'fraction_numerical': 0.005259816813276503, 'mean_word_length': 4.040219378427788, 'pattern_counts': {'":': 0, '<': 173, '<?xml version=': 2, '>': 173, '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': '2069286', 'n_tokens_mistral': 3635, 'n_tokens_neox': 3321, 'n_words': 448}