<commit_before>﻿<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0" DefaultTargets="MakeInstallPackage">
    <Target Name="MakeInstallPackage" Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
        <!-- Read package version from the manifest -->
        <XmlRead Condition=" '$(OS)' != 'Unix' " Prefix="n" Namespace="http://schemas.microsoft.com/developer/msbuild/2003" XPath="/dotnetnuke/packages/package[1]/@version" XmlFileName="..\R7.ImageHandler\R7.ImageHandler.dnn">
            <Output TaskParameter="Value" PropertyName="Version" />
        </XmlRead>
        <Exec Condition=" '$(OS)' == 'Unix' " Command="xmllint --xpath 'string(/dotnetnuke/packages/package[1]/@version)' ..\R7.ImageHandler\R7.ImageHandler.dnn &gt; __version" />
        <ReadLinesFromFile Condition=" '$(OS)' == 'Unix' " File="__version">
            <Output TaskParameter="Lines" PropertyName="Version" />
        </ReadLinesFromFile>
        <Delete Condition=" '$(OS)' == 'Unix' " Files="__version" />
        <!-- Declare binaries -->
        <ItemGroup>
            <InstallBinaryFiles Include="$(MainProjectOutputPath)\R7.ImageHandler*.dll" />
        </ItemGroup>
        <!-- Declare manifest files -->
        <ItemGroup>
            <InstallManifestFiles Include="..\R7.ImageHandler\*.dnn" />
            <InstallManifestFiles Include="..\R7.ImageHandler\*.dnn6" />
            <InstallManifestFiles Include="..\R7.ImageHandler\license.htm" />
            <InstallManifestFiles Include="..\R7.ImageHandler\releaseNotes.htm" /><commit_msg>Use XmlPeek to read version number from DNN manifest<commit_after>﻿<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0" DefaultTargets="MakeInstallPackage">
    <Target Name="MakeInstallPackage" Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
        <!-- Read package version from the manifest -->
		<XmlPeek Query="/dotnetnuke/packages/package[1]/@version" XmlInputPath="..\R7.ImageHandler\R7.ImageHandler.dnn">
            <Output TaskParameter="Result" PropertyName="Version" />
        </XmlPeek>
	    <!-- Declare binaries -->
        <ItemGroup>
            <InstallBinaryFiles Include="$(MainProjectOutputPath)\R7.ImageHandler*.dll" />
        </ItemGroup>
        <!-- Declare manifest files -->
        <ItemGroup>
            <InstallManifestFiles Include="..\R7.ImageHandler\*.dnn" />
            <InstallManifestFiles Include="..\R7.ImageHandler\*.dnn6" />
            <InstallManifestFiles Include="..\R7.ImageHandler\license.htm" />
            <InstallManifestFiles Include="..\R7.ImageHandler\releaseNotes.htm" />
{'fraction_non_alphanumeric': 0.17469000729394601, 'fraction_numerical': 0.015681983953318747, 'mean_word_length': 3.3128930817610063, 'pattern_counts': {'":': 0, '<': 42, '<?xml version=': 2, '>': 42, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 5}, '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': '4592977', 'n_tokens_mistral': 832, 'n_tokens_neox': 769, 'n_words': 123}