<commit_before>
from rest_framework import pagination
from rest_framework.response import Response

# TODO: Include 'last' link, see
# https://developer.github.com/guides/traversing-with-pagination/ -
# 2016-01-20


class CustomPagination(pagination.PageNumberPagination):
    page_size = 10
    # TODO: change this to 100, makes more sense against ddos and such
    # - 2016-01-20:
    max_page_size = 400
    page_size_query_param = 'page_size'


class CustomTransactionPagination(CustomPagination):
    max_page_size = 800


class IatiXMLPagination(pagination.PageNumberPagination):
    page_size = 10
    max_page_size = 100
    page_size_query_param = 'page_size'
<commit_msg>Increase max page size for all API pagination..<commit_after>
from rest_framework import pagination
from rest_framework.response import Response

# TODO: Include 'last' link, see
# https://developer.github.com/guides/traversing-with-pagination/ -
# 2016-01-20


class CustomPagination(pagination.PageNumberPagination):
    page_size = 10  # default
    max_page_size = 2000
    page_size_query_param = 'page_size'


class CustomTransactionPagination(CustomPagination):
    max_page_size = 2000


class IatiXMLPagination(pagination.PageNumberPagination):
    page_size = 10  # default
    max_page_size = 2000
    page_size_query_param = 'page_size'

{'fraction_non_alphanumeric': 0.07819548872180451, 'fraction_numerical': 0.042105263157894736, 'mean_word_length': 4.616033755274262, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2187845', 'n_tokens_mistral': 473, 'n_tokens_neox': 422, 'n_words': 94}