<commit_before>package com.imcode.imcms.domain.dto;

import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Sort;

public class PageRequestDTO {

    private static final int DEFAULT_PAGE_SIZE = 500;
    private static final int DEFAULT_PAGE_NUMBER = 0;

    private PageRequest pageRequest;

    public PageRequestDTO() {
        this.pageRequest = new PageRequest(DEFAULT_PAGE_NUMBER, DEFAULT_PAGE_SIZE);
    }

    public PageRequestDTO(int page, int size) {
        this.pageRequest = new PageRequest(page, size);
    }

    public PageRequestDTO(int page, int size, Sort sort) {
        this.pageRequest = new PageRequest(page, size, sort);
    }

    public int getPage() {
        return pageRequest.getPageNumber();
    }

    public void setPage(int page) {
        pageRequest = new PageRequest(page, pageRequest.getPageSize(), pageRequest.getSort());
    }

    public int getSize() {
        return pageRequest.getPageSize();
    }

    public void setSize(int size) {
        pageRequest = new PageRequest(pageRequest.getPageNumber(), size, pageRequest.getSort());
    }

    public Sort getSort() {
        return pageRequest.getSort();
    }
}
<commit_msg>IMCMS-233 - Apply new UI to the admin panel and editors: - Changed default page size.<commit_after>package com.imcode.imcms.domain.dto;

import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Sort;

public class PageRequestDTO {

    private static final int DEFAULT_PAGE_SIZE = 100;
    private static final int DEFAULT_PAGE_NUMBER = 0;

    private PageRequest pageRequest;

    public PageRequestDTO() {
        this.pageRequest = new PageRequest(DEFAULT_PAGE_NUMBER, DEFAULT_PAGE_SIZE);
    }

    public PageRequestDTO(int page, int size) {
        this.pageRequest = new PageRequest(page, size);
    }

    public PageRequestDTO(int page, int size, Sort sort) {
        this.pageRequest = new PageRequest(page, size, sort);
    }

    public int getPage() {
        return pageRequest.getPageNumber();
    }

    public void setPage(int page) {
        pageRequest = new PageRequest(page, pageRequest.getPageSize(), pageRequest.getSort());
    }

    public int getSize() {
        return pageRequest.getPageSize();
    }

    public void setSize(int size) {
        pageRequest = new PageRequest(pageRequest.getPageNumber(), size, pageRequest.getSort());
    }

    public Sort getSort() {
        return pageRequest.getSort();
    }
}

{'fraction_non_alphanumeric': 0.09452936444086886, 'fraction_numerical': 0.004424778761061947, 'mean_word_length': 3.244027303754266, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '14064', 'n_tokens_mistral': 727, 'n_tokens_neox': 700, 'n_words': 181}