<commit_before>namespace ddui {
    export interface ListRow {
        $selected?: boolean;
    }

    export interface ListConfig {
        url: string;
        id?: string;
        paging?: boolean;
        responseListName?: string;
        responseCountName?: string;
    }

    export class DataList<T extends ListRow> {

        id: string;
        rows: T[];
        url: string;
        count: number;
        data: any;
        filter: any;
        paging: boolean;
        areFiltersSet: boolean;
        forceListUpdate: boolean;
        selectedAllPages: boolean;
        isLoading: boolean;
        responseListName: string; //TODO add default
        responseCountName: string; //TODO add default

        onListResponseSuccess: any;
        onListResponseError: any;

        initFilterFunc: Function;

        constructor(config: ListConfig, private $http: ng.IHttpService, private $location: ng.ILocationService) {
            this.id = config.id;
            this.rows = [];
            this.count = 0;
            this.data = null;   // will be assigned raw last response
            this.filter = { skip: 0, limit: 25 };
            this.paging = config.paging;
            this.areFiltersSet = false;
            this.selectedAllPages = false;
            this.isLoading = false;
            this.url = config.url;
            this.responseListName = config.responseListName;
            this.responseCountName = config.responseCountName;
            this.initFilterFunc = () => { return {}; };
        }

        onSuccess(callback: (list: T[], count: number) => void) {
            this.onListResponseSuccess = callback;
        }

        onError(callback: (data: any) => void) {
            this.onListResponseError = callback;
        }<commit_msg>chore(listservice): remove uneeded todos<commit_after>namespace ddui {
    export interface ListRow {
        $selected?: boolean;
    }

    export interface ListConfig {
        url: string;
        id?: string;
        paging?: boolean;
        responseListName?: string;
        responseCountName?: string;
    }

    export class DataList<T extends ListRow> {

        id: string;
        rows: T[];
        url: string;
        count: number;
        data: any;
        filter: any;
        paging: boolean;
        areFiltersSet: boolean;
        forceListUpdate: boolean;
        selectedAllPages: boolean;
        isLoading: boolean;
        responseListName: string;
        responseCountName: string;

        onListResponseSuccess: any;
        onListResponseError: any;

        initFilterFunc: Function;

        constructor(config: ListConfig, private $http: ng.IHttpService, private $location: ng.ILocationService) {
            this.id = config.id;
            this.rows = [];
            this.count = 0;
            this.data = null;   // will be assigned raw last response
            this.filter = { skip: 0, limit: 25 };
            this.paging = config.paging;
            this.areFiltersSet = false;
            this.selectedAllPages = false;
            this.isLoading = false;
            this.url = config.url;
            this.responseListName = config.responseListName || 'items';
            this.responseCountName = config.responseCountName || 'count';
            this.initFilterFunc = () => { return {}; };
        }

        onSuccess(callback: (list: T[], count: number) => void) {
            this.onListResponseSuccess = callback;
        }

        onError(callback: (data: any) => void) {
            this.onListResponseError = callback;
        }
{'fraction_non_alphanumeric': 0.09862320876650744, 'fraction_numerical': 0.00224782242202866, 'mean_word_length': 1.8849270664505673, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '954422', 'n_tokens_mistral': 951, 'n_tokens_neox': 932, 'n_words': 237}