<commit_before><!-- top navbar with question title -->
<nav class="navbar navbar-default navbar-fixed-top" av-affix-top=".navbar-unfixed-top" role="navigation">
  <div class="container">
    <div class="row avb-top-navbar">
      <div class="pull-left"
        ng-i18next="[i18next]({sprintf:['2','3', stateData.questionNum+1, election.questions.length]})avBooth.stepAndQuestionNumber">
      </div>
      <div class="pull-right">
        <span
          class="glyphicon glyphicon-question-sign"
          ng-click="launchHelp()">
        </span>
        <span ng-click="launchHelp()" ng-i18next="avBooth.helpTitle"></span>
        <span class="dropdown left-padding" av-change-lang>
      </div>
    </div>

  </div>
</nav>

<div class="wrapper-unfixed">
  <div class="navbar-unfixed-top text-center" av-collapsing=".unfixed-top-height" data-toggle-selector="[avb-conditional-accordion-screen] #avb-toggle">
    <div class="container">
      <div class="hidden unfixed-top-height"></div>
      <h1>{{stateData.question.title}}</h1>
      <p class="description" ng-bind-html="stateData.question.description | addTargetBlank"></p>
    </div>
  </div>
</div>

<div id="avb-toggle" class="text-center item-block hidden">
  <span class="glyphicon glyphicon-play"></span>
</div>

<div class="content avb-content" ng-if="stateData.question.layout === 'conditional-accordion'">
  <div class="container">
    <div class="row">
      <!-- only shown if in mobile: a row with selected opts and filter -->
      <div
        ng-if="!hideSelection"
        class="visible-xs col-xs-12 small-selected padded"
        ng-class="{dropdown: stateData.affixDropDownShown}">
        <div
          class="pull-left"
          ng-click="stateData.affixDropDownShown = !stateData.affixDropDownShown">
          <h4 class="text-brand-success" ng-i18next="[i18next]({count: numSelectedOptions()})avBooth.numSelectedOptionsSmall"></h4>
          <span
            class="text-brand-success glyphicon glyphicon-play avb-toggle-span">
            </span>
        </div>
        <div
          class="pull-right filter-input"
          ng-class="{hidden: stateData.affixDropDownShown}">
          <div class="pull-right filter-input">
            <input type="text"
              class="filter-input"
              id="filter-input"
              ng-model="stateData.filter"
              ng-model-options="{debounce: 500}"
              ng-i18next="[placeholder]avBooth.filterOptionsPlaceholder"
              />
            <span class="glyphicon glyphicon-search"></span>
          </div>
        </div>
      </div>

      <!-- show available options and filter -->
      <div class="col-xs-12" ng-class="{'col-sm-6': !hideSelection}">
        <div class="pull-left hidden-xs">
          <h4 class="text-brand-success" ng-i18next="avBooth.questionAvailableOptionsTitle"></h4>
        </div>
        <div class="pull-right filter-input hidden-xs">
          <input type="text"
            class="filter-input"
            id="filter-input"
            ng-model="stateData.filter"
            ng-model-options="{debounce: 500}"
            ng-i18next="[placeholder]avBooth.filterOptionsPlaceholder"
            />
          <span class="glyphicon glyphicon-search"></span>
        </div>
        <div avb-available-options
          layout="stateData.question.layout"
          max="stateData.question.max"
          min="stateData.question.min"
          options="stateData.question.answers"
          filter="{{stateData.filter}}"
          ng-class="{hidden: stateData.affixIsSet && stateData.affixDropDownShown}">
        </div>
      </div>

      <!-- show selected options -->
      <div
        class="col-xs-12 col-sm-6 padded"
        ng-if="!hideSelection"
        ng-class="{hidden: windowWidth < 768 && !stateData.affixDropDownShown, affixedSelection: windowWidth < 768 && stateData.affixIsSet}">
        <h4 class="text-brand-success padded-left" ng-i18next="[i18next]({count: numSelectedOptions()})avBooth.questionSelectedOptionsTitle"></h4>
        <div avb-selected-options
          layout="stateData.question.layout"
          max="stateData.question.max"
          min="stateData.question.min"
          sorted="stateData.sorted"
          ordered="stateData.ordered"
          options="stateData.question.answers">
        </div>
      </div>
    </div>

    <!-- next button -->
    <div class="row hidden" ng-cloak av-affix-bottom="stateData.affixIsSet" data-force-affix-width="768">
      <p class="warnings">
        <span
          class="text-brand-warning"
          id="selectMoreOptsWarning"
          ng-i18next="[i18next]({min: stateData.question.min})avBooth.selectMoreOpts"
          ng-if="numSelectedOptions() < stateData.question.min">
        </span>
        <span
          class="text-brand-primary"
          id="maxSelectedLimitReached"
          ng-i18next="[i18next]({max: stateData.question.max})avBooth.maxSelectedLimitReached"
          ng-if="numSelectedOptions() === stateData.question.max">
        </span>
        <span
          ng-i18next="[i18next]({count: numSelectedOptions()})avBooth.numOptionsSelected"
          ng-if="numSelectedOptions() !== stateData.question.max && numSelectedOptions() >= stateData.question.min">
        </span>
        <span
          ng-i18next="[i18next]({min:stateData.question.min, max:stateData.question.max})avBooth.numOptionsLimits"
          ng-if="numSelectedOptions() !== stateData.question.max && numSelectedOptions() >= stateData.question.min">
        </span>
      </p>
      <button
        class="btn btn-block btn-lg btn-success btn-plain"
        ng-i18next="avBooth.continueButton"
        ng-click="questionNext()">
      </button>
    </div>
  </div>
</div>


<!-- conditional -->
<div class="content avb-content conditional" ng-if="stateData.question.layout === 'conditional'">
  <div class="container">
    <div class="row options-row">
      <div class="col-xs-12">
        <h3>¿Aceptas la propuesta de programa?</h3>
      </div><commit_msg>changing conditional question and link<commit_after><!-- top navbar with question title -->
<nav class="navbar navbar-default navbar-fixed-top" av-affix-top=".navbar-unfixed-top" role="navigation">
  <div class="container">
    <div class="row avb-top-navbar">
      <div class="pull-left"
        ng-i18next="[i18next]({sprintf:['2','3', stateData.questionNum+1, election.questions.length]})avBooth.stepAndQuestionNumber">
      </div>
      <div class="pull-right">
        <span
          class="glyphicon glyphicon-question-sign"
          ng-click="launchHelp()">
        </span>
        <span ng-click="launchHelp()" ng-i18next="avBooth.helpTitle"></span>
        <span class="dropdown left-padding" av-change-lang>
      </div>
    </div>

  </div>
</nav>

<div class="wrapper-unfixed">
  <div class="navbar-unfixed-top text-center" av-collapsing=".unfixed-top-height" data-toggle-selector="[avb-conditional-accordion-screen] #avb-toggle">
    <div class="container">
      <div class="hidden unfixed-top-height"></div>
      <h1>{{stateData.question.title}}</h1>
      <p class="description" ng-bind-html="stateData.question.description | addTargetBlank"></p>
    </div>
  </div>
</div>

<div id="avb-toggle" class="text-center item-block hidden">
  <span class="glyphicon glyphicon-play"></span>
</div>

<div class="content avb-content" ng-if="stateData.question.layout === 'conditional-accordion'">
  <div class="container">
    <div class="row">
      <!-- only shown if in mobile: a row with selected opts and filter -->
      <div
        ng-if="!hideSelection"
        class="visible-xs col-xs-12 small-selected padded"
        ng-class="{dropdown: stateData.affixDropDownShown}">
        <div
          class="pull-left"
          ng-click="stateData.affixDropDownShown = !stateData.affixDropDownShown">
          <h4 class="text-brand-success" ng-i18next="[i18next]({count: numSelectedOptions()})avBooth.numSelectedOptionsSmall"></h4>
          <span
            class="text-brand-success glyphicon glyphicon-play avb-toggle-span">
            </span>
        </div>
        <div
          class="pull-right filter-input"
          ng-class="{hidden: stateData.affixDropDownShown}">
          <div class="pull-right filter-input">
            <input type="text"
              class="filter-input"
              id="filter-input"
              ng-model="stateData.filter"
              ng-model-options="{debounce: 500}"
              ng-i18next="[placeholder]avBooth.filterOptionsPlaceholder"
              />
            <span class="glyphicon glyphicon-search"></span>
          </div>
        </div>
      </div>

      <!-- show available options and filter -->
      <div class="col-xs-12" ng-class="{'col-sm-6': !hideSelection}">
        <div class="pull-left hidden-xs">
          <h4 class="text-brand-success" ng-i18next="avBooth.questionAvailableOptionsTitle"></h4>
        </div>
        <div class="pull-right filter-input hidden-xs">
          <input type="text"
            class="filter-input"
            id="filter-input"
            ng-model="stateData.filter"
            ng-model-options="{debounce: 500}"
            ng-i18next="[placeholder]avBooth.filterOptionsPlaceholder"
            />
          <span class="glyphicon glyphicon-search"></span>
        </div>
        <div avb-available-options
          layout="stateData.question.layout"
          max="stateData.question.max"
          min="stateData.question.min"
          options="stateData.question.answers"
          filter="{{stateData.filter}}"
          ng-class="{hidden: stateData.affixIsSet && stateData.affixDropDownShown}">
        </div>
      </div>

      <!-- show selected options -->
      <div
        class="col-xs-12 col-sm-6 padded"
        ng-if="!hideSelection"
        ng-class="{hidden: windowWidth < 768 && !stateData.affixDropDownShown, affixedSelection: windowWidth < 768 && stateData.affixIsSet}">
        <h4 class="text-brand-success padded-left" ng-i18next="[i18next]({count: numSelectedOptions()})avBooth.questionSelectedOptionsTitle"></h4>
        <div avb-selected-options
          layout="stateData.question.layout"
          max="stateData.question.max"
          min="stateData.question.min"
          sorted="stateData.sorted"
          ordered="stateData.ordered"
          options="stateData.question.answers">
        </div>
      </div>
    </div>

    <!-- next button -->
    <div class="row hidden" ng-cloak av-affix-bottom="stateData.affixIsSet" data-force-affix-width="768">
      <p class="warnings">
        <span
          class="text-brand-warning"
          id="selectMoreOptsWarning"
          ng-i18next="[i18next]({min: stateData.question.min})avBooth.selectMoreOpts"
          ng-if="numSelectedOptions() < stateData.question.min">
        </span>
        <span
          class="text-brand-primary"
          id="maxSelectedLimitReached"
          ng-i18next="[i18next]({max: stateData.question.max})avBooth.maxSelectedLimitReached"
          ng-if="numSelectedOptions() === stateData.question.max">
        </span>
        <span
          ng-i18next="[i18next]({count: numSelectedOptions()})avBooth.numOptionsSelected"
          ng-if="numSelectedOptions() !== stateData.question.max && numSelectedOptions() >= stateData.question.min">
        </span>
        <span
          ng-i18next="[i18next]({min:stateData.question.min, max:stateData.question.max})avBooth.numOptionsLimits"
          ng-if="numSelectedOptions() !== stateData.question.max && numSelectedOptions() >= stateData.question.min">
        </span>
      </p>
      <button
        class="btn btn-block btn-lg btn-success btn-plain"
        ng-i18next="avBooth.continueButton"
        ng-click="questionNext()">
      </button>
    </div>
  </div>
</div>


<!-- conditional -->
<div class="content avb-content conditional" ng-if="stateData.question.layout === 'conditional'">
  <div class="container">
    <div class="row options-row">
      <div class="col-xs-12">
        <h3>¿Quieres que <a href="http://ahoramadrid.org/AHORAMADRID_programa_municipales_2015.pdf" target="_blank">este sea el programa</a> que lleve la candidatura de Ahora Madrid a las elecciones municipales de mayo?</h3>
      </div>
{'fraction_non_alphanumeric': 0.15746938775510205, 'fraction_numerical': 0.01273469387755102, 'mean_word_length': 2.6690625935908954, 'pattern_counts': {'":': 0, '<': 207, '<?xml version=': 0, '>': 205, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, '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': '6276956', 'n_tokens_mistral': 3897, 'n_tokens_neox': 3729, 'n_words': 595}