<commit_before># -*- coding: UTF-8 -*-
from django.conf import settings
from django.utils.html import format_html
from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger
from django.core import urlresolvers
from django.template.defaultfilters import timesince
from django.utils.http import urlencode
from django.utils.translation import ugettext_lazy as _
from django.template.defaultfilters import slugify
from horizon import tables
from horizon import tabs

class PaginationTable(tables.DataTable):
    """base table s paginatorem a jeho pomocnyma metodama
    u table staci specifikovat model_name:String (lze pouzivat i bez nej, ale musi byt nejakym zpusobem overridnouta)
    paginator lze pretizit bud overridnutim metody get_paginator_data
    nebo rovnou overridnutim property paginator na dane tabulce
    defaultne je vypnuty defaultni horajzni paginator, lze zapnout overridnutim has_more_data 
    """

    """ Turn off render pagination into template.

    .. attribute:: pagination

    Django model class.

    .. attribute:: model_class

        Turn off render `Show all` into template.

    .. attribute:: show_all_url

    """
    model_class = None
    page = "1"
    pagination = True
    show_all_url = True
    
    PAGINATION_COUNT = "25"
    _paginator = None

    def __init__(self, *args, **kwargs):
        super(PaginationTable, self).__init__(*args, **kwargs)

        has_get_data = hasattr(self, 'get_paginator_data') and callable(self.get_paginator_data)

        if not has_get_data:
            cls_name = self.__class__.__name__
            raise NotImplementedError('You must define either a "get_paginator_data" '
                                      'method on %s.' % cls_name)
<commit_msg>pagination position<commit_after># -*- coding: UTF-8 -*-
from django.conf import settings
from django.utils.html import format_html
from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger
from django.core import urlresolvers
from django.template.defaultfilters import timesince
from django.utils.http import urlencode
from django.utils.translation import ugettext_lazy as _
from django.template.defaultfilters import slugify
from horizon import tables
from horizon import tabs

class PaginationTable(tables.DataTable):
    """base table s paginatorem a jeho pomocnyma metodama
    u table staci specifikovat model_name:String (lze pouzivat i bez nej, ale musi byt nejakym zpusobem overridnouta)
    paginator lze pretizit bud overridnutim metody get_paginator_data
    nebo rovnou overridnutim property paginator na dane tabulce
    defaultne je vypnuty defaultni horajzni paginator, lze zapnout overridnutim has_more_data 
    """

    """ Turn off render pagination into template.

    .. attribute:: pagination

    Django model class.

    .. attribute:: model_class

        Turn off render `Show all` into template.

    .. attribute:: show_all_url

    .. attribute:: position

        Position of pagionation Top, Bottom, Both

    """
    model_class = None
    page = "1"
    pagination = True
    position = "bottom"
    show_all_url = True
    
    PAGINATION_COUNT = "25"
    _paginator = None

    def __init__(self, *args, **kwargs):
        super(PaginationTable, self).__init__(*args, **kwargs)

        has_get_data = hasattr(self, 'get_paginator_data') and callable(self.get_paginator_data)

        if not has_get_data:
            cls_name = self.__class__.__name__
            raise NotImplementedError('You must define either a "get_paginator_data" '
                                      'method on %s.' % cls_name)

{'fraction_non_alphanumeric': 0.06798002219755826, 'fraction_numerical': 0.0022197558268590455, 'mean_word_length': 3.3329326923076925, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4423327', 'n_tokens_mistral': 1085, 'n_tokens_neox': 1055, 'n_words': 329}