<commit_before>##syntax=xwiki/2.1
{{velocity output="false"}}
#macro (getVersions $extensionId $versions)
  #set ($return = [])
  ## TODO: Collect the versions for features too.
  #foreach ($version in $services.extension.resolveVersions($extensionId, 0, -1))
    #if ($version.type == 'STABLE')
      #set ($discard = $return.add($version.value))
    #end
  #end
  #set ($versions = $NULL)
  #setVariable("$versions" $return)
#end

#macro (displayDefaultUIStep_unknownPreviousUI)
  #if ($request.previousUiId && $request.previousUiVersion)
    #set ($previousUi = $services.extension.resolve($request.previousUiId, $request.previousUiVersion))
  #end
  #if (!$previousUi)
    {{html}}
    <form action="" class="xform hidden">
      <div class="xHint">$escapetool.xml($services.localization.render(
        'platform.extension.distributionWizard.uiStepPreviousUIUpgradeQuestion', [$documentCount]))</div>
      <p class="buttons">
        <span class="buttonwrapper">
          <input type="submit" class="button" value="$escapetool.xml($services.localization.render(
            'platform.extension.distributionWizard.uiStepPreviousUIUpgradeYesLabel'))" />
        </span>
        <span class="buttonwrapper">
          <input type="submit" class="button secondary" value="$escapetool.xml($services.localization.render(
            'platform.extension.distributionWizard.uiStepPreviousUIUpgradeNoLabel'))" />
        </span>
      </p><commit_msg>XWIKI-8744: Introduce per wiki distribution status * Put back the hard-coded versions for now.<commit_after>##syntax=xwiki/2.1
{{velocity output="false"}}
#macro (getVersions $extensionId $versions)
  ## FIXME: We should retrieve the list of previous versions for the recommended UI, by getting the available versions
  ## for each of its features (old identifiers).
  #if ($xwiki.hasSubWikis())
    ## XWiki Manager versions
    #set ($return = '4.2-milestone-2,4.2-milestone-1,4.1.4,4.1.3,4.1.2,4.1.1,4.1,4.1-rc-1,4.1-milestone-2,4.1-milestone-1,4.0.1,4.0,4.0-rc-1,4.0-milestone-2,4.0-milestone-1,3.5.1,3.5,3.5-milestone-1,3.4,3.4-rc-1,3.4-milestone-1,3.3.1,3.3,3.3-rc-1,3.3-milestone-2,3.3-milestone-1,3.2.1,3.2,3.2-rc-1,3.2-milestone-3,3.2-milestone-2,3.2-milestone-1,3.1.1,3.1,3.1-rc-1,3.1-milestone-2,3.1-milestone-1,3.0.1,3.0,2.7.2,2.7.1,2.7,2.6.2,2.6.1,2.6,2.5.2,2.5.1,2.5,2.4.4,2.4.3,2.4.2,2.4.1,2.4,2.3.2,2.3.1,2.3,2.2.6,2.2.5,2.2.4,2.2.3,2.2.2,2.2.1,2.2,2.1.2,2.1.1,2.1,2.0.5,2.0.4,2.0.3,2.0.2,2.0.1.1,2.0.1,2.0,1.7.4,1.7.3,1.7.2,1.7.1,1.7,1.6.4,1.6.3,1.6.2,1.6.1,1.6,1.5.1,1.5,1.4.1,1.4,1.3,1.3-rc-1,1.2.1,1.2,1.2-rc-1,1.2-milestone-2,1.2-milestone-1,1.1.1,1.1,1.0,1.0-rc-1,1.0-milestone-3,1.0-milestone-2,1.0-milestone-1')
  #else
    ## XWiki Enterprise versions
    #set ($return = '4.2-milestone-2,4.2-milestone-1,4.1.4,4.1.3,4.1.2,4.1.1,4.1,4.1-rc-1,4.1-milestone-2,4.1-milestone-1,4.0.1,4.0,4.0-rc-1,4.0-milestone-2,4.0-milestone-1,3.5.1,3.5,3.5-milestone-1,3.4,3.4-rc-1,3.4-milestone-1,3.3.1,3.3,3.3-rc-1,3.3-milestone-2,3.3-milestone-1,3.2.1,3.2,3.2-rc-1,3.2-milestone-3,3.2-milestone-2,3.2-milestone-1,3.1.1,3.1,3.1-rc-1,3.1-milestone-2,3.1-milestone-1,3.0.1,3.0,3.0-rc-1,3.0-milestone-3,3.0-milestone-2,3.0-milestone-1,2.7.2,2.7.1,2.7,2.7-rc-1,2.6.2,2.6.1,2.6,2.6-rc-2,2.6-rc-1,2.5.2,2.5.1,2.5,2.5-rc-1,2.5-milestone-2,2.5-milestone-1,2.4.4,2.4.3,2.4.2,2.4.1,2.4,2.4-rc-1,2.4-milestone-2,2.4-milestone-1,2.3.2,2.3.1,2.3,2.3-rc-1,2.3-milestone-2,2.3-milestone-1,2.2.6,2.2.5,2.2.4,2.2.3,2.2.2,2.2.1,2.2,2.2-rc-2,2.2-rc-1,2.2-milestone-2,2.2-milestone-1,2.1.2,2.1.1,2.1,2.1-rc-1,2.1-milestone-1,2.0.5,2.0.4,2.0.3,2.0.2,2.0.1,2.0,2.0-rc-2,2.0-rc-1,2.0-milestone-4,2.0-milestone-3,2.0-milestone-2,2.0-milestone-1,1.9.4,1.9.3,1.9.2,1.9.1,1.9,1.9-rc-1,1.9-milestone-2,1.9-milestone-1,1.8.4,1.8.3,1.8.2,1.8.1,1.8,1.8-rc-2,1.8-rc-1,1.8-milestone-2,1.8-milestone-1,1.7.2,1.7.1,1.7,1.7-rc-1,1.7-milestone-3,1.7-milestone-2,1.7-milestone-1,1.6.2,1.6.1,1.6,1.6-milestone-2,1.6-milestone-1,1.5.2,1.5.1,1.5,1.5-rc-2,1.5-rc-1,1.5-milestone-2,1.5-milestone-1,1.4.2,1.4.1,1.4,1.4-rc-1,1.4-milestone-2,1.4-milestone-1,1.3.2,1.3.1,1.3,1.3-rc-1,1.3-milestone-2,1.3-milestone-1,1.2.2,1.2.1,1.2,1.2-rc-3,1.2-rc-2,1.2-rc-1,1.2-milestone-2,1.2-milestone-1,1.1.2,1.1.1,1.1,1.1-rc-2,1.1-rc-1,1.1-milestone-4,1.1-milestone-3')
  #end
  #set ($return = $return.split(','))
  #set ($versions = $NULL)
  #setVariable("$versions" $return)
#end

#macro (displayDefaultUIStep_unknownPreviousUI)
  #if ($request.previousUiId && $request.previousUiVersion)
    #set ($previousUi = $services.extension.resolve($request.previousUiId, $request.previousUiVersion))
  #end
  #if (!$previousUi)
    {{html}}
    <form action="" class="xform hidden">
      <div class="xHint">$escapetool.xml($services.localization.render(
        'platform.extension.distributionWizard.uiStepPreviousUIUpgradeQuestion', [$documentCount]))</div>
      <p class="buttons">
        <span class="buttonwrapper">
          <input type="submit" class="button" value="$escapetool.xml($services.localization.render(
            'platform.extension.distributionWizard.uiStepPreviousUIUpgradeYesLabel'))" />
        </span>
        <span class="buttonwrapper">
          <input type="submit" class="button secondary" value="$escapetool.xml($services.localization.render(
            'platform.extension.distributionWizard.uiStepPreviousUIUpgradeNoLabel'))" />
        </span>
      </p>
{'fraction_non_alphanumeric': 0.2436896807720861, 'fraction_numerical': 0.13994060876020786, 'mean_word_length': 3.582482993197279, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 25, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 6}, 'pii_count': 1, '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': '3756780', 'n_tokens_mistral': 2702, 'n_tokens_neox': 2675, 'n_words': 186}