<commit_before><div class="jumbotron subhead">
  <div ng-cloak class="container">

    <div class="row">
      <div class="span2">
        <a href="/#/"><img ng-src="/static/globaleaks_logo.png" class="img-rounded"></a>
      </div>

      <div class="span10">
        <!-- XXX come up with a way to make this inherit from the header.html template -->
        <h1>{{ "New Submission" | translate }}</h1>
      </div>

    </div>

  </div>
</div>

<div class="container" ng-show="!node_info.name">
    <h2>{{ "Loading..." | translate }}</h2>
</div>

<div ng-cloak class="container" ng-show="!node_info.configured && node_info.name">
  <h2>{{ "This node is not configured." | translate }}</h2>
  <p>{{ "You will not be able to perform a submission." | translate }}<br>
  {{ "Admin please configure at least one Context and associated Receivers using" | translate }}
  <a href="/#/admin/contexts">
    {{ "Admin management interface" | translate }}
  </a>.</p>
</div>

<div ng-cloak ng-controller="WizardCtrl" class="container" ng-show="node_info.name && node_info.configured">

  <div class="tabbable tabs-below">

    <ul class="nav nav-tabs">
      <li ng-repeat="step in steps"
        ng-class="{active: $index==getCurrentStepIndex(), disabled: uploading}">
        <a href="javascript:void(0)"
          ng-click="goToStep($index)" ng-disabled="uploading">
          <div ng-switch on="step">

            <span ng-switch-when="1">
              1 - {{ "Receiver selection" | translate }}
            </span>

            <span ng-switch-when="2">
              2 - {{ "Fill out your submission" | translate }}
            </span>

            <span ng-switch-when="3">
              3 - {{ "Final Step" | translate }}
            </span>

          </div>
        </a>
      </li>
    </ul>

    <div ng-switch on="selection">

      <!-- First Step -->
      <div ng-switch-when="1" class="receiverCards">
        <div class="contextPick" ng-show="submission.contexts.length > 1">
            <p class="lead">
            {{ "Choose the context and receivers that will be sure to transform your submission into action!" | translate }}</p>

            <p ng-show="node_info.configured">
            {{ "I want to report on" | translate }}

            <select class="contexts" ng-model="submission.current_context"
                    ng-options="context as context.name for context in submission.contexts">
            </select>
            </p>
        </div>
        <div class="contextPick" ng-hide="submission.contexts.length > 1">
          {{ "I want to report on" | translate }}: <span class="label">{{submission.current_context.name}}</span>
        </div>

        <p>{{submission.current_context.description}}</p>

        <div ng-repeat="(idx, receiver) in submission.current_context_receivers">
          <div ng-hide="idx >= submission.current_context_receivers.length/2" class="row">

            <div class="receiverCard span5"
                 ng-class="{selected: submission.receivers_selected[receiver.receiver_gus]}"
                 ng-class-odd="{receiverCardOdd: true}"
                 ng-class-even="{receiverCardEven: true}">

              <input ng-model="submission.receivers_selected[receiver.receiver_gus]"
                     type="checkbox" value="{{receiver.receiver_gus}}"
                     class="receiverSelection" ng-show="submission.current_context.selectable_receiver">

              <div class="row">
                <div class="span2">
                  <img ng-src="/static/{{receiver.receiver_gus}}.png" class="img-polaroid">
                </div>

                <div class="span3">
                  <h3>{{receiver.name}}</h3>
                  <p>{{receiver.description}}</p>
                </div>
              </div>
            </div>

            <div class="receiverCard span5" ng-hide="idx >= ((submission.current_context_receivers.length - 1)/2)"
                 ng-class="{selected: submission.receivers_selected[submission.current_context_receivers[submission.current_context_receivers.length - idx - 1].receiver_gus]}"
                 ng-class-odd="{receiverCardOdd: true}"
                 ng-class-even="{receiverCardEven: true}">

              <input ng-model="submission.receivers_selected[submission.current_context_receivers[submission.current_context_receivers.length - idx - 1].receiver_gus]"
                     type="checkbox" value="{{submission.current_context_receivers[submission.current_context_receivers.length - idx - 1].receiver_gus}}"
                     class="receiverSelection" ng-show="submission.current_context.selectable_receiver">

              <div class="row">
                <div class="span2">
                  <img ng-src="/static/{{submission.current_context_receivers[submission.current_context_receivers.length - idx - 1].receiver_gus}}.png" class="img-polaroid">
                </div>

                <div class="span3">
                  <h3>{{submission.current_context_receivers[submission.current_context_receivers.length - idx - 1].name}}</h3>
                  <p>{{submission.current_context_receivers[submission.current_context_receivers.length - idx - 1].description}}</p>
                </div>
              </div>
            </div>

          </div>
        </div>
      </div>
      <!-- /1 -->

      <!-- Second Step -->
      <div ng-switch-when="2">

        <p class="lead">
        {{ "Enter the information that is relevant to your submission and possibly upload the relevant accompanying files" | translate }}</p>
        <p>{{submission.current_context.description}}</p>

        <div class="row">

            <div ng-form="submissionForm" ng-controller="SubmissionFormController"> 
              <div class="span6 submissionDetails" ng-include="Templates.submission.form"></div>
            </div>

          <div ng-include="'views/widgets/fileupload.html'" class="span4">
          </div>

        </div>

      </div>
      <!-- /2 -->

      <!-- Third Step -->
      <div ng-switch-when="3">

        <div class="row">

          <div class="span12">
            <p>
            {{ "To ensure your anonymity be sure that you are visiting this site using the" | translate }}
            {{ "You acknowledge that failure to do so will result in the inability to technically protect your anonymity." | translate }}
            </p>

            <p>
              {{ "To further enhance your security, please follow these instructions:" | translate }}
            </p>

            <ul>
              <li>{{ "In the event that you would like to remain anonymous, do not submit any personal information. (e.g. your name or relationship to the offender. Do not submit any information that can be traced back to you.)" | translate }}</li>
              <li>{{ "Please do not submit your report on a PC provided by your employer. Particularly an intranet connection may jeopardize your anonymity." | translate }}</li><commit_msg>added a missing link needed to complete a sentence.<commit_after><div class="jumbotron subhead">
  <div ng-cloak class="container">

    <div class="row">
      <div class="span2">
        <a href="/#/"><img ng-src="/static/globaleaks_logo.png" class="img-rounded"></a>
      </div>

      <div class="span10">
        <!-- XXX come up with a way to make this inherit from the header.html template -->
        <h1>{{ "New Submission" | translate }}</h1>
      </div>

    </div>

  </div>
</div>

<div class="container" ng-show="!node_info.name">
    <h2>{{ "Loading..." | translate }}</h2>
</div>

<div ng-cloak class="container" ng-show="!node_info.configured && node_info.name">
  <h2>{{ "This node is not configured." | translate }}</h2>
  <p>{{ "You will not be able to perform a submission." | translate }}<br>
  {{ "Admin please configure at least one Context and associated Receivers using" | translate }}
  <a href="/#/admin/contexts">
    {{ "Admin management interface" | translate }}
  </a>.</p>
</div>

<div ng-cloak ng-controller="WizardCtrl" class="container" ng-show="node_info.name && node_info.configured">

  <div class="tabbable tabs-below">

    <ul class="nav nav-tabs">
      <li ng-repeat="step in steps"
        ng-class="{active: $index==getCurrentStepIndex(), disabled: uploading}">
        <a href="javascript:void(0)"
          ng-click="goToStep($index)" ng-disabled="uploading">
          <div ng-switch on="step">

            <span ng-switch-when="1">
              1 - {{ "Receiver selection" | translate }}
            </span>

            <span ng-switch-when="2">
              2 - {{ "Fill out your submission" | translate }}
            </span>

            <span ng-switch-when="3">
              3 - {{ "Final Step" | translate }}
            </span>

          </div>
        </a>
      </li>
    </ul>

    <div ng-switch on="selection">

      <!-- First Step -->
      <div ng-switch-when="1" class="receiverCards">
        <div class="contextPick" ng-show="submission.contexts.length > 1">
            <p class="lead">
            {{ "Choose the context and receivers that will be sure to transform your submission into action!" | translate }}</p>

            <p ng-show="node_info.configured">
            {{ "I want to report on" | translate }}

            <select class="contexts" ng-model="submission.current_context"
                    ng-options="context as context.name for context in submission.contexts">
            </select>
            </p>
        </div>
        <div class="contextPick" ng-hide="submission.contexts.length > 1">
          {{ "I want to report on" | translate }}: <span class="label">{{submission.current_context.name}}</span>
        </div>

        <p>{{submission.current_context.description}}</p>

        <div ng-repeat="(idx, receiver) in submission.current_context_receivers">
          <div ng-hide="idx >= submission.current_context_receivers.length/2" class="row">

            <div class="receiverCard span5"
                 ng-class="{selected: submission.receivers_selected[receiver.receiver_gus]}"
                 ng-class-odd="{receiverCardOdd: true}"
                 ng-class-even="{receiverCardEven: true}">

              <input ng-model="submission.receivers_selected[receiver.receiver_gus]"
                     type="checkbox" value="{{receiver.receiver_gus}}"
                     class="receiverSelection" ng-show="submission.current_context.selectable_receiver">

              <div class="row">
                <div class="span2">
                  <img ng-src="/static/{{receiver.receiver_gus}}.png" class="img-polaroid">
                </div>

                <div class="span3">
                  <h3>{{receiver.name}}</h3>
                  <p>{{receiver.description}}</p>
                </div>
              </div>
            </div>

            <div class="receiverCard span5" ng-hide="idx >= ((submission.current_context_receivers.length - 1)/2)"
                 ng-class="{selected: submission.receivers_selected[submission.current_context_receivers[submission.current_context_receivers.length - idx - 1].receiver_gus]}"
                 ng-class-odd="{receiverCardOdd: true}"
                 ng-class-even="{receiverCardEven: true}">

              <input ng-model="submission.receivers_selected[submission.current_context_receivers[submission.current_context_receivers.length - idx - 1].receiver_gus]"
                     type="checkbox" value="{{submission.current_context_receivers[submission.current_context_receivers.length - idx - 1].receiver_gus}}"
                     class="receiverSelection" ng-show="submission.current_context.selectable_receiver">

              <div class="row">
                <div class="span2">
                  <img ng-src="/static/{{submission.current_context_receivers[submission.current_context_receivers.length - idx - 1].receiver_gus}}.png" class="img-polaroid">
                </div>

                <div class="span3">
                  <h3>{{submission.current_context_receivers[submission.current_context_receivers.length - idx - 1].name}}</h3>
                  <p>{{submission.current_context_receivers[submission.current_context_receivers.length - idx - 1].description}}</p>
                </div>
              </div>
            </div>

          </div>
        </div>
      </div>
      <!-- /1 -->

      <!-- Second Step -->
      <div ng-switch-when="2">

        <p class="lead">
        {{ "Enter the information that is relevant to your submission and possibly upload the relevant accompanying files" | translate }}</p>
        <p>{{submission.current_context.description}}</p>

        <div class="row">

            <div ng-form="submissionForm" ng-controller="SubmissionFormController"> 
              <div class="span6 submissionDetails" ng-include="Templates.submission.form"></div>
            </div>

          <div ng-include="'views/widgets/fileupload.html'" class="span4">
          </div>

        </div>

      </div>
      <!-- /2 -->

      <!-- Third Step -->
      <div ng-switch-when="3">

        <div class="row">

          <div class="span12">
            <p>
            {{ "To ensure your anonymity be sure that you are visiting this site using the" | translate }}
            <a href="http://www.torproject.us/projects/torbrowser.html">Tor Browser Bundle</a>
            </p>

            <p>
            {{ "You acknowledge that failure to do so will result in the inability to technically protect your anonymity." | translate }}
            </p>

            <p>
              {{ "To further enhance your security, please follow these instructions:" | translate }}
            </p>

            <ul>
              <li>{{ "In the event that you would like to remain anonymous, do not submit any personal information. (e.g. your name or relationship to the offender. Do not submit any information that can be traced back to you.)" | translate }}</li>
              <li>{{ "Please do not submit your report on a PC provided by your employer. Particularly an intranet connection may jeopardize your anonymity." | translate }}</li>
{'fraction_non_alphanumeric': 0.14580526203815333, 'fraction_numerical': 0.006524359974469896, 'mean_word_length': 2.238860817638953, 'pattern_counts': {'":': 0, '<': 257, '<?xml version=': 0, '>': 265, 'https://': 0, 'lorem ipsum': 0, 'www.': 1, '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': '363910', 'n_tokens_mistral': 4167, 'n_tokens_neox': 3893, 'n_words': 937}