<commit_before>class Page

    constructor: (@pageNum, @result, options = {}) ->
        query = {}
        @rows = []
        @result.query.clauses.each (clause) ->
            _.extend( query, clause.toParam() ) if clause.isValid

        options = {
            format: 'array', total_count: 't'
            start: @pageNum * @result.pageSize, limit: @result.pageSize,
            query: query, url: @result.query.src::urlRoot(),
            fields: _.pluck( @result.query.fields.where(query: true), 'id')
        }

        _.extend(options, _.omit(@result.query.syncOptions, 'include'))

        @pendingLoad = Lanes.Models.Sync.perform('GET', options).then (resp) =>
            @result.total = resp.total<commit_msg>Notify query when load starts<commit_after>class Page

    constructor: (@pageNum, @result, options = {}) ->
        query = {}
        @rows = []
        @result.query.clauses.each (clause) ->
            _.extend( query, clause.toParam() ) if clause.isValid

        options = {
            format: 'array', total_count: 't'
            start: @pageNum * @result.pageSize, limit: @result.pageSize,
            query: query, url: @result.query.src::urlRoot(),
            fields: _.pluck( @result.query.fields.where(query: true), 'id')
        }

        _.extend(options, _.omit(@result.query.syncOptions, 'include'))
        @result.query.trigger('request', @result.query, 'GET', {})
        @pendingLoad = Lanes.Models.Sync.perform('GET', options).then (resp) =>
            @result.total = resp.total
{'fraction_non_alphanumeric': 0.16099476439790575, 'fraction_numerical': 0.0, 'mean_word_length': 2.3311546840958606, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '6262138', 'n_tokens_mistral': 452, 'n_tokens_neox': 447, 'n_words': 92}