<commit_before><div style="pkgDetail">
  <table>
    <tr>
      <td>
        <span class="packagePic">
          <#if pkg.pictureUrl!=null>
           <img src="${pkg.pictureUrl}" alt="Picture Not Available">
          </#if>
          <#if pkg.pictureUrl==null>
           <img class="pkgLogo" id="placeholder-${pkg.id}" src="${Root.path}/skin/images/package.png" alt="Loading"/>
           <img class="pkgLogo" id="logo-${pkg.id}" src="${This.getConnectBaseUrl()}marketplace/package/${pkg.id}/logo" onload="showRealLogo('${pkg.id}')" style="display:none">
          </#if>
        </span>
      </td>
      <td>
        <span class="packageInfo">
    	   <table>
     		<tr>
      		  <td class="packageLabel">Description :</td>
        		<td class="packageField"> ${pkg.description} </td>
     		  </tr>
      		<tr>
       		 <td class="packageLabel">Home Page :</td>
       		 <td class="packageField">
       		 <#if pkg.homePage?? || pkg.homePage=="" >
       		    <A href="${This.getConnectBaseUrl()}marketplace/package/${pkg.id}" target="pkgHomePage"> Home Page on Nuxeo Connect </A>
       		 <#else>
       		    <A href="${pkg.homePage}" target="pkgHomePage"> Home Page </A>
       		 </#if>
       		  </td>
     		</tr>
      		<tr>
        	 <td class="packageLabel"> ${pkg.commentsNumber} comments :</td>
        	 <td class="packageField">
        	 <#if pkg.commentsNumber==0 >
        	 &nbsp;
        	 <#else>
        	 <span class="commentArea" id="commentArea-${pkg.id}">
        	 <A href="javascript:fetchComments('${pkg.id}')">more ...</A>
        	 </span>
        	 </#if>
        	 </td>
      		</tr>
      		<tr>
      		  <td class="packageLabel">Download count :</td>
       		  <td class="packageField"> ${pkg.downloadsCount} </td>
      		</tr>
      	 </table>
  		</span>
      </td>
      <td width="25%">
        <span class="packageInfo">
          <table>
            <tr>
			<td>Target platforms</td>
            <td><#list pkg.getTargetPlatforms() as pf>
                ${pf} &nbsp;
                </#list>
            </td>
            </tr><tr>
        	<td>Package dependencies</td>
        	<td>
	        <#if (pkg.getDependencies()?size==0)>
	            None
	            <#else>
		            <#list pkg.getDependencies() as dep>
		            ${dep.name} &nbsp; (${dep.versionRange.minVersion} -&gt; ${dep.versionRange.maxVersion})<br/>
		            </#list>
		        </#if>
	        </td>
			</tr>
			<tr>
				<td><span class="boldLabel">Production state</span></td>
				<td> ${Context.getMessage('label.productionState.'+pkg.productionState)}</td>
			</tr><tr>
				<td><span class="boldLabel">Certification status</span></td>
				<td> ${Context.getMessage('label.validationState.'+pkg.validationState)}</td>
			<tr>
				<td><span class="boldLabel">Nuxeo support</span></td>
				<td><#if pkg.isSupported()>
					   Yes
					<#else>
					   No
					</#if>
				</td>
			</tr>
		</table>
        </span>
      </td>
    </tr>
  </table>

</div>
<commit_msg>fix comment and download count on local packages<commit_after><div style="pkgDetail">
  <table>
    <tr>
      <td>
        <span class="packagePic">
          <#if pkg.pictureUrl!=null>
           <img src="${pkg.pictureUrl}" alt="Picture Not Available">
          </#if>
          <#if pkg.pictureUrl==null>
           <img class="pkgLogo" id="placeholder-${pkg.id}" src="${Root.path}/skin/images/package.png" alt="Loading"/>
           <img class="pkgLogo" id="logo-${pkg.id}" src="${This.getConnectBaseUrl()}marketplace/package/${pkg.id}/logo" onload="showRealLogo('${pkg.id}')" style="display:none">
          </#if>
        </span>
      </td>
      <td>
        <span class="packageInfo">
    	   <table>
     		<tr>
      		  <td class="packageLabel">Description :</td>
        		<td class="packageField"> ${pkg.description} </td>
     		  </tr>
      		<tr>
       		 <td class="packageLabel">Home Page :</td>
       		 <td class="packageField">
       		 <#if pkg.homePage?? || pkg.homePage=="" >
       		    <A href="${This.getConnectBaseUrl()}marketplace/package/${pkg.id}" target="pkgHomePage"> Home Page on Nuxeo Connect </A>
       		 <#else>
       		    <A href="${pkg.homePage}" target="pkgHomePage"> Home Page </A>
       		 </#if>
       		  </td>
     		</tr>
      		<tr>
        	 <td class="packageLabel">
        	 <#if pkg.isLocal()==false>
        	 ${pkg.commentsNumber}
        	 </#if> comments :</td>
        	 <td class="packageField">
        	 <#if pkg.commentsNumber==0 && !pkg.isLocal() >
        	 &nbsp;
        	 <#else>
        	 <span class="commentArea" id="commentArea-${pkg.id}">
        	 <A href="javascript:fetchComments('${pkg.id}')">get comments...</A>
        	 </span>
        	 </#if>
        	 </td>
      		</tr>
      		<#if pkg.isLocal()==false>
      		<tr>
      		  <td class="packageLabel">Download count :</td>
       		  <td class="packageField"> ${pkg.downloadsCount} </td>
      		</tr>
      		</#if>
      	 </table>
  		</span>
      </td>
      <td width="25%">
        <span class="packageInfo">
          <table>
            <tr>
			<td>Target platforms</td>
            <td><#list pkg.getTargetPlatforms() as pf>
                ${pf} &nbsp;
                </#list>
            </td>
            </tr><tr>
        	<td>Package dependencies</td>
        	<td>
	        <#if (pkg.getDependencies()?size==0)>
	            None
	            <#else>
		            <#list pkg.getDependencies() as dep>
		            ${dep.name} &nbsp; (${dep.versionRange.minVersion} -&gt; ${dep.versionRange.maxVersion})<br/>
		            </#list>
		        </#if>
	        </td>
			</tr>
			<tr>
				<td><span class="boldLabel">Production state</span></td>
				<td> ${Context.getMessage('label.productionState.'+pkg.productionState)}</td>
			</tr><tr>
				<td><span class="boldLabel">Certification status</span></td>
				<td> ${Context.getMessage('label.validationState.'+pkg.validationState)}</td>
			<tr>
				<td><span class="boldLabel">Nuxeo support</span></td>
				<td><#if pkg.isSupported()>
					   Yes
					<#else>
					   No
					</#if>
				</td>
			</tr>
		</table>
        </span>
      </td>
    </tr>
  </table>

</div>

{'fraction_non_alphanumeric': 0.19431891542930924, 'fraction_numerical': 0.0012911555842479018, 'mean_word_length': 1.8971482000935016, 'pattern_counts': {'":': 0, '<': 233, '<?xml version=': 0, '>': 233, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 5, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6653346', 'n_tokens_mistral': 2266, 'n_tokens_neox': 2086, 'n_words': 364}