<commit_before>{% extends 'base.html' %} {% block title %}
<title>{{ lang.help_settings }} - {{ settings.title_text }}</title>
{% endblock title %} {% block navi %}
<ul class="nav nav-sidebar">
  <li><a href='index.php?year={{ dateStart|date("Y") }}'><span class="glyphicon glyphicon-home" aria-hidden="true"></span> {{ lang.front_page }} {{ dateStart|date("Y") }}<span class="sr-only">(current)</span></a></li>
</ul>
<ul class="nav nav-sidebar">
  <li>
    <a href='statistics.php?year={{ dateStart|date("Y") }}'> <span class="glyphicon glyphicon-th-list" aria-hidden="true"></span> {{ lang.statistics }} {{ dateStart|date("Y") }}</a>
  </li>
</ul>
<ul class="nav nav-sidebar">
  <li><a href="add_case.php"><span class="glyphicon glyphicon-plus" aria-hidden="true"></span> {{ lang.add_a_request }}</a></li>
</ul>
<ul class="nav nav-sidebar">
  <li {% if not debug %}class="active" {% endif %}><a href="help.php"><span class="glyphicon glyphicon-question-sign" aria-hidden="true"></span> {{ lang.help_licenses }}</a></li>
</ul>
<ul class="nav nav-sidebar">
  <li {% if debug%}class="active" {% endif %}><a href="help.php?settings=1"><span class="glyphicon glyphicon-wrench" aria-hidden="true"></span> {{ lang.settings }}</a></li>
</ul>
</div>
{% endblock navi %} {% block content %}
<div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
  {% if debug %}
  <h4>conf/settings.conf</h4>
  <form class="form form-horizontal" role="form" method="post" action="help.php?settings=1&save=settings">
    <div class="form-group">
      <textarea style="background-color:#EEE;" rows="30" class="mceNoEditor textarea col-md-12" name="settings_conf">{{ settings_filedump }}</textarea>
    </div>
    <div class="form-group">
      <button type="submit" class="btn btn-sm btn-success">{{ lang.save_changes }}</button>
      <button type="reset" class="btn btn-sm btn-warning">{{ lang.cancel_changes }}</button>
    </div>
  </form>
  <h4>conf/crimes_autofill.conf</h4>
  <form class="form form-horizontal" role="form" method="post" action="help.php?settings=1&save=crimes">
    <div class="form-group">
      <textarea style="background-color:#EEE;" rows="10" class="mceNoEditor textarea col-md-12" name="crimes_conf">{{ crimes_filedump }}</textarea>
    </div>
    <div class="form-group">
      <button type="submit" class="btn btn-sm btn-success">{{ lang.save_changes }}</button>
      <button type="reset" class="btn btn-sm btn-warning">{{ lang.cancel_changes }}</button>
    </div>
  </form>
  <h4>{{ lang.event_log }}</h4>
  <form class="form form-horizontal">
    <div class="form-group">
<pre>
{% for entry in event_log %}{{ entry.id }} {{ entry.event_level }} {{ entry.event_timestamp }} {{ entry.event_descr }} {{ entry.ip }}
{% endfor %}
</pre>
    </div>
  </form>
  {% else %}
  <h1 class="page-header">Help for Kirjuri</h1>
  <a type="button" class="btn btn-default" href="#"><i class="fa fa-arrow-left"></i> {{ lang.help_button_navigation }} </a>
  <a type="button" class="btn btn-primary" href="#"><i class="fa fa-info-circle"></i> {{ lang.help_button_modal }}</a>
  <a type="button" class="btn btn-info" href="#"><i class="fa fa-print"></i> {{ lang.help_button_print }}</a>
  <a type="button" class="btn btn-success" href="#"><i class="fa fa-save"></i> {{ lang.help_button_save }}</a>
  <a type="button" class="btn btn-danger" href="#"><i class="fa fa-remove"></i> {{ lang.help_button_delete }}</a>
  <h3>{{ lang.licenses }}</h3>
  <pre>
Kirjuri has been built using the following software modules:

Debian 8, PHP 5, MySQL server, Bootstrap CSS/HTML/JS framework, Font Awesome,
jQuery, Twig template engine.

Original code for Kirjuri is released under the MIT license:

The MIT License (MIT)
Copyright (c) 2016 <NAME>

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

</pre>
  <pre>Icons made by Freepik, Icomoon, Revicon from www.flaticon.com is licensed by CC BY 3.0
http://www.freepik.com/
http://www.flaticon.com/authors/icomoon
http://www.flaticon.com/authors/revicon
http://creativecommons.org/licenses/by/3.0/
</pre>
  <pre>Twig license

Copyright (c) 2009-2014 by the Twig Team, see AUTHORS for more details.

Some rights reserved.

Redistribution and use in source and binary forms, with or without modification,
 are permitted provided that the following conditions are met:

Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.

Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

The names of the contributors may not be used to endorse or promote products
derived from this software without specific prior written permission.
<commit_msg>Fixes<commit_after>{% extends 'base.html' %} {% block title %}
<title>{{ lang.help_settings }} - {{ settings.title_text }}</title>
{% endblock title %} {% block navi %}
<ul class="nav nav-sidebar">
  <li><a href='index.php?year={{ dateStart|date("Y") }}'><span class="glyphicon glyphicon-home" aria-hidden="true"></span> {{ lang.front_page }} {{ dateStart|date("Y") }}<span class="sr-only">(current)</span></a></li>
</ul>
<ul class="nav nav-sidebar">
  <li>
    <a href='statistics.php?year={{ dateStart|date("Y") }}'> <span class="glyphicon glyphicon-th-list" aria-hidden="true"></span> {{ lang.statistics }} {{ dateStart|date("Y") }}</a>
  </li>
</ul>
<ul class="nav nav-sidebar">
  <li><a href="add_case.php"><span class="glyphicon glyphicon-plus" aria-hidden="true"></span> {{ lang.add_a_request }}</a></li>
</ul>
<ul class="nav nav-sidebar">
  <li {% if not debug %}class="active" {% endif %}><a href="help.php"><span class="glyphicon glyphicon-question-sign" aria-hidden="true"></span> {{ lang.help_licenses }}</a></li>
</ul>
<ul class="nav nav-sidebar">
  <li {% if debug%}class="active" {% endif %}><a href="help.php?settings=1"><span class="glyphicon glyphicon-wrench" aria-hidden="true"></span> {{ lang.settings }}</a></li>
</ul>
</div>
{% endblock navi %} {% block content %}
<div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
  {% if debug %}
  <h4>conf/settings.conf</h4>
  <form class="form form-horizontal" role="form" method="post" action="help.php?settings=1&save=settings">
    <div class="form-group">
      <textarea style="background-color:#EEE;" rows="30" class="mceNoEditor textarea col-md-12" name="settings_conf">{{ settings_filedump }}</textarea>
    </div>
    <div class="form-group">
      <button type="submit" class="btn btn-sm btn-success">{{ lang.save_changes }}</button>
      <button type="reset" class="btn btn-sm btn-warning">{{ lang.cancel_changes }}</button>
    </div>
  </form>
  <h4>conf/crimes_autofill.conf</h4>
  <form class="form form-horizontal" role="form" method="post" action="help.php?settings=1&save=crimes">
    <div class="form-group">
      <textarea style="background-color:#EEE;" rows="10" class="mceNoEditor textarea col-md-12" name="crimes_conf">{{ crimes_filedump }}</textarea>
    </div>
    <div class="form-group">
      <button type="submit" class="btn btn-sm btn-success">{{ lang.save_changes }}</button>
      <button type="reset" class="btn btn-sm btn-warning">{{ lang.cancel_changes }}</button>
    </div>
  </form>
  <h4>{{ lang.event_log }}</h4>
  <form class="form form-horizontal">
    <div class="form-group">
<pre>
{% for entry in event_log %}{{ entry.id }} {{ entry.event_level }} {{ entry.event_timestamp }} {{ entry.event_descr }} {{ entry.ip }}
{% endfor %}
</pre>
    </div>
  </form>
  {% else %}
  <h1 class="page-header">Help for Kirjuri</h1>
  <a type="button" class="btn btn-default" href="#"><i class="fa fa-arrow-left"></i> {{ lang.help_button_navigation }} </a>
  <a type="button" class="btn btn-primary" href="#"><i class="fa fa-info-circle"></i> {{ lang.help_button_modal }}</a>
  <a type="button" class="btn btn-info" href="#"><i class="fa fa-print"></i> {{ lang.help_button_print }}</a>
  <a type="button" class="btn btn-success" href="#"><i class="fa fa-save"></i> {{ lang.help_button_save }}</a>
  <a type="button" class="btn btn-danger" href="#"><i class="fa fa-remove"></i> {{ lang.help_button_delete }}</a>
  <h3>{{ lang.licenses }}</h3>
  <pre>
Kirjuri has been built using the following software modules:

Debian 8, PHP 5, MySQL server, Bootstrap CSS/HTML/JS framework, Font Awesome,
jQuery, Twig template engine.

Original code for Kirjuri is released under the MIT license:

The MIT License (MIT)
Copyright (c) 2016 <NAME>

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

</pre>
  <pre>Icons made by Freepik, Icomoon, Revicon from www.flaticon.com is licensed by CC BY 3.0
http://www.freepik.com/
http://www.flaticon.com/authors/icomoon
http://www.flaticon.com/authors/revicon
http://creativecommons.org/licenses/by/3.0/
</pre>
  <pre>Twig license

Copyright (c) 2009-2014 by the Twig Team, see AUTHORS for more details.

Some rights reserved.

Redistribution and use in source and binary forms, with or without modification,
 are permitted provided that the following conditions are met:

Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.

Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

The names of the contributors may not be used to endorse or promote products
derived from this software without specific prior written permission.

{'fraction_non_alphanumeric': 0.16024973985431842, 'fraction_numerical': 0.007630939993062782, 'mean_word_length': 4.9052739375320025, 'pattern_counts': {'":': 0, '<': 227, '<?xml version=': 0, '>': 227, 'https://': 0, 'lorem ipsum': 0, 'www.': 8, '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': '2078649', 'n_tokens_mistral': 3686, 'n_tokens_neox': 3513, 'n_words': 1162}