<commit_before>{% extends "prodtask/_index.html" %}
{% load url from future %}
{% load static from staticfiles %}
{% load js %}

{% block bl_title %}Core App of Monitoring{% endblock %}

{% block subtitle %}
{% if title %}{{ title }}{% else %}Datatable{% endif %}
{% endblock %}

{% block extra_css %}
{{ block.super }}
	<style type="text/css" title="currentStyle">
	    @import "{% static "css/jquery-ui-1.10.3.custom.min.css" %}";
        @import "{% static "css/jquery.dataTables_themeroller.css" %}";
	</style>

  <style type="text/css">

    .dataTables_wrapper { display: inline-block; }
  </style>

{% endblock %}

{% block base_js %}
{{ block.super }}


{% django_js %}
    <script type="text/javascript" src="{% static "js/jquery-ui-1.10.3.custom.min.js" %}"></script>
{% endblock %}



{% block extra_js %}
{{ block.super }}
    <script type="text/javascript" src="{% static "js/jquery.dataTables.min.js" %}"></script>
    <script type="text/javascript" src="{% static "js/libs/jquery-migrate-1.0.0.min.js" %}"></script>
    <script type="text/javascript" src="{% static "js/jquery.address-1.5.js" %}"></script>
{% endblock %}


{% block body %}


<script type="text/javascript">

    function requestServerData( sSource, aoData, fnCallback, oSettings ) {

      function prepareData( data, textStatus, jqXHR )
      {
        console.log(data)
        for(var i in data['aaData'])
        {
            var row = data['aaData'][i];
{#            TODO: replace to Django.js, when it's ready https://github.com/noirbizarre/django.js/pull/38 #}
            row[0] = '<a href="'+"{% url 'prodtask:home' %}"+'request/'+ row[0] +'/">'+row[0]+'</a>&nbsp;&nbsp;'+'<span style="float: right;" ><a href="'+
            "{% url 'prodtask:home' %}"+'request_update/' + row[0]+'/">Update</a>&nbsp;'+'<a href="'+"{% url 'prodtask:home' %}"+'inputlist_with_request/'+ row[0]+'/">List</a>';

            row[1] = '<a href="'+row[1]+'">'+row[1]+'</a>';

        }
        fnCallback( data, textStatus, jqXHR );
      }

      oSettings.jqXHR = $.ajax( {
        "dataType": 'json',
        "type": "GET",
        "url": sSource,
        "data": aoData,
        "success": prepareData
      } )
    }


<commit_msg>Add tasks list<commit_after>{% extends "prodtask/_index.html" %}
{% load url from future %}
{% load static from staticfiles %}
{% load js %}

{% block bl_title %}Core App of Monitoring{% endblock %}

{% block subtitle %}
{% if title %}{{ title }}{% else %}Datatable{% endif %}
{% endblock %}

{% block extra_css %}
{{ block.super }}
	<style type="text/css" title="currentStyle">
	    @import "{% static "css/jquery-ui-1.10.3.custom.min.css" %}";
        @import "{% static "css/jquery.dataTables_themeroller.css" %}";
	</style>

  <style type="text/css">

    .dataTables_wrapper { display: inline-block; }
  </style>

{% endblock %}

{% block base_js %}
{{ block.super }}


{% django_js %}
    <script type="text/javascript" src="{% static "js/jquery-ui-1.10.3.custom.min.js" %}"></script>
{% endblock %}



{% block extra_js %}
{{ block.super }}
    <script type="text/javascript" src="{% static "js/jquery.dataTables.min.js" %}"></script>
    <script type="text/javascript" src="{% static "js/libs/jquery-migrate-1.0.0.min.js" %}"></script>
    <script type="text/javascript" src="{% static "js/jquery.address-1.5.js" %}"></script>
{% endblock %}


{% block body %}


<script type="text/javascript">

    function requestServerData( sSource, aoData, fnCallback, oSettings ) {

      function prepareData( data, textStatus, jqXHR )
      {
        console.log(data)
        for(var i in data['aaData'])
        {
            var row = data['aaData'][i];
{#            TODO: replace to Django.js, when it's ready https://github.com/noirbizarre/django.js/pull/38 #}
            row[0] = '<a href="'+"{% url 'prodtask:home' %}"+'request/'+ row[0] +'/">'+row[0]+'</a>&nbsp;&nbsp;'+'<span style="float: right;" ><a href="'+
            "{% url 'prodtask:home' %}"+'request_update/' + row[0]+'/">Update</a>&nbsp;'+'<a href="'+"{% url 'prodtask:home' %}"+'inputlist_with_request/'+ row[0]+'/">List</a>&nbsp;'
                    +'<a href="'+"{% url 'prodtask:home' %}"+'task_table/#/?request='+ row[0]+'">Tasks</a>';

            row[1] = '<a href="'+row[1]+'">'+row[1]+'</a>';

        }
        fnCallback( data, textStatus, jqXHR );
      }

      oSettings.jqXHR = $.ajax( {
        "dataType": 'json',
        "type": "GET",
        "url": sSource,
        "data": aoData,
        "success": prepareData
      } )
    }



{'fraction_non_alphanumeric': 0.22533657029353343, 'fraction_numerical': 0.010372986095784595, 'mean_word_length': 3.1125226860254083, 'pattern_counts': {'":': 10, '<': 49, '<?xml version=': 0, '>': 49, 'https://': 2, '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': '1687662', 'n_tokens_mistral': 1704, 'n_tokens_neox': 1572, 'n_words': 314}