<commit_before># -*- coding: utf-8 -*-
<%inherit file="base.mako"/>
<%block name="header">
<h1>${project.id} - ${project.name} - ${_('Edit')}</h1>
</%block>
<%block name="content">
<link rel="stylesheet" href="${request.static_url('osmtm:static/js/lib/datepicker3.css')}">
<script type="text/javascript" src="${request.static_url('osmtm:static/js/lib/angular.min.js')}"></script>
<script type="text/javascript" src="${request.static_url('osmtm:static/js/lib/bootstrap-datepicker.js')}"></script>
<script>
    var locale_name = "${request.locale_name}";
</script>

<%
  bootstrap_locale_baseurl = 'osmtm:static/js/lib/locales/bootstrap-datepicker.%s.js'
  try:
    bootstrap_locale = request.static_url(bootstrap_locale_baseurl % request.locale_name.replace('_', '-'))
  except IOError:
    bootstrap_locale = request.static_url(bootstrap_locale_baseurl % request.locale_name[:2])
  except IOError:
    bootstrap_locale = request.static_url(bootstrap_locale_baseurl % 'en')
%>
<script type="text/javascript" src="${bootstrap_locale}"></script>

<link rel="stylesheet" href="${request.static_url('osmtm:static/js/lib/Leaflet.draw/dist/leaflet.draw.css')}"/>
<script src="${request.static_url('osmtm:static/js/lib/leaflet.js')}"></script>
<script src="${request.static_url('osmtm:static/js/lib/Leaflet.draw/dist/leaflet.draw.js')}"></script>
<div id="markdown_cheat_sheet" class="modal fade">
  <div class="modal-dialog">
  <div class="modal-content">
    <div class="modal-header">
      <button type="button" class="close pull-right" data-dismiss="modal" aria-hidden="true">&times;</button>
      <h4 class="modal-title">Markdown Quick Reference</h4>
    </div>
    <div class="modal-body"></div>
  </div>
  </div>
</div>

<!-- Modal -->
<div class="modal fade" id="invalidateAllModal" tabindex="-1" role="dialog" aria-labelledby="invalidateAll">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title" id="myModalLabel">${_('Invalidate All')}</h4>
      </div>
      <div class="modal-body">
        <p>
          ${_("This will mark all tasks currently marked as 'done' as invalid. Please use this only if you are sure of what you are doing.")}
        </p>
        <div class="text-center">
          <div class="form-group">
            <label for="project_invalidate_comment" class="control-label">
              ${_('Invalidation comment')}
            </label>
            <textarea id="project_invalidate_comment" name="invalidate_all_comment" class="form-control" placeholder="${_('This will be sent as the invalidation comment to users.')}" rows="2"></textarea>
          </div>
          <div class="form-group">
            Please enter the number ${project.id} in the box:
            <input id="project_invalidate_challenge_id" />
          </div>
          <p class="errors"></p>
          <a class="btn btn-danger btn-lg btn-invalidate-all">
             <span class="glyphicon glyphicon-share-alt"></span>&nbsp;
             ${_('Invalidate all done tasks')}
          </a>
        </div>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
      </div>
    </div>
  </div>
</div>
<script>
  var converter = new Showdown.converter();
  var project_id = ${project.id};
<%
from shapely.wkb import loads
from geojson import Feature, FeatureCollection, dumps
geometry = loads(str(project.area.geometry.data))
%>
  var geometry = ${dumps(geometry)|n};
  var priority_areas = ${dumps(priority_areas)|n};
</script>
<div class="container">
  <form method="post" action="" enctype="multipart/form-data" class="form">
    <div class="row">
      <div class="tabbable tabs row">
        <ul class="nav nav-tabs">
          <li><a href="#description" data-toggle="tab">${_('Description')}</a></li>
          <li><a href="#instructions" data-toggle="tab">${_('Instructions')}</a></li>
          <li><a href="#area" data-toggle="tab">${_('Area')}</a></li>
          <li><a href="#imagery" data-toggle="tab">${_('Imagery')}</a></li>
          <li><a id="priority_areas_tab" href="#priority_areas" data-toggle="tab">${_('Priority Areas')}</a></li>
          <li><a href="#allowed_users" data-toggle="tab">${_('Allowed Users')}</a></li>
          <li><a href="#misc" data-toggle="tab">${_('Misc')}</a></li>
        </ul><commit_msg>change text of Close button for invalidate-all modal to Cancel<commit_after># -*- coding: utf-8 -*-
<%inherit file="base.mako"/>
<%block name="header">
<h1>${project.id} - ${project.name} - ${_('Edit')}</h1>
</%block>
<%block name="content">
<link rel="stylesheet" href="${request.static_url('osmtm:static/js/lib/datepicker3.css')}">
<script type="text/javascript" src="${request.static_url('osmtm:static/js/lib/angular.min.js')}"></script>
<script type="text/javascript" src="${request.static_url('osmtm:static/js/lib/bootstrap-datepicker.js')}"></script>
<script>
    var locale_name = "${request.locale_name}";
</script>

<%
  bootstrap_locale_baseurl = 'osmtm:static/js/lib/locales/bootstrap-datepicker.%s.js'
  try:
    bootstrap_locale = request.static_url(bootstrap_locale_baseurl % request.locale_name.replace('_', '-'))
  except IOError:
    bootstrap_locale = request.static_url(bootstrap_locale_baseurl % request.locale_name[:2])
  except IOError:
    bootstrap_locale = request.static_url(bootstrap_locale_baseurl % 'en')
%>
<script type="text/javascript" src="${bootstrap_locale}"></script>

<link rel="stylesheet" href="${request.static_url('osmtm:static/js/lib/Leaflet.draw/dist/leaflet.draw.css')}"/>
<script src="${request.static_url('osmtm:static/js/lib/leaflet.js')}"></script>
<script src="${request.static_url('osmtm:static/js/lib/Leaflet.draw/dist/leaflet.draw.js')}"></script>
<div id="markdown_cheat_sheet" class="modal fade">
  <div class="modal-dialog">
  <div class="modal-content">
    <div class="modal-header">
      <button type="button" class="close pull-right" data-dismiss="modal" aria-hidden="true">&times;</button>
      <h4 class="modal-title">Markdown Quick Reference</h4>
    </div>
    <div class="modal-body"></div>
  </div>
  </div>
</div>

<!-- Modal -->
<div class="modal fade" id="invalidateAllModal" tabindex="-1" role="dialog" aria-labelledby="invalidateAll">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title" id="myModalLabel">${_('Invalidate All')}</h4>
      </div>
      <div class="modal-body">
        <p>
          ${_("This will mark all tasks currently marked as 'done' as invalid. Please use this only if you are sure of what you are doing.")}
        </p>
        <div class="text-center">
          <div class="form-group">
            <label for="project_invalidate_comment" class="control-label">
              ${_('Invalidation comment')}
            </label>
            <textarea id="project_invalidate_comment" name="invalidate_all_comment" class="form-control" placeholder="${_('This will be sent as the invalidation comment to users.')}" rows="2"></textarea>
          </div>
          <div class="form-group">
            Please enter the number ${project.id} in the box:
            <input id="project_invalidate_challenge_id" />
          </div>
          <p class="errors"></p>
          <a class="btn btn-danger btn-lg btn-invalidate-all">
             <span class="glyphicon glyphicon-share-alt"></span>&nbsp;
             ${_('Invalidate all done tasks')}
          </a>
        </div>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
      </div>
    </div>
  </div>
</div>
<script>
  var converter = new Showdown.converter();
  var project_id = ${project.id};
<%
from shapely.wkb import loads
from geojson import Feature, FeatureCollection, dumps
geometry = loads(str(project.area.geometry.data))
%>
  var geometry = ${dumps(geometry)|n};
  var priority_areas = ${dumps(priority_areas)|n};
</script>
<div class="container">
  <form method="post" action="" enctype="multipart/form-data" class="form">
    <div class="row">
      <div class="tabbable tabs row">
        <ul class="nav nav-tabs">
          <li><a href="#description" data-toggle="tab">${_('Description')}</a></li>
          <li><a href="#instructions" data-toggle="tab">${_('Instructions')}</a></li>
          <li><a href="#area" data-toggle="tab">${_('Area')}</a></li>
          <li><a href="#imagery" data-toggle="tab">${_('Imagery')}</a></li>
          <li><a id="priority_areas_tab" href="#priority_areas" data-toggle="tab">${_('Priority Areas')}</a></li>
          <li><a href="#allowed_users" data-toggle="tab">${_('Allowed Users')}</a></li>
          <li><a href="#misc" data-toggle="tab">${_('Misc')}</a></li>
        </ul>
{'fraction_non_alphanumeric': 0.19905681070410178, 'fraction_numerical': 0.002412809826716385, 'mean_word_length': 3.9371954520844614, 'pattern_counts': {'":': 0, '<': 227, '<?xml version=': 0, '>': 227, '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': '3725587', 'n_tokens_mistral': 2981, 'n_tokens_neox': 2936, 'n_words': 544}