<commit_before>package request

import (
	"math"
	"net/url"
	"path"
	"regexp"
	"strconv"
	"strings"
	"time"

	"github.com/kennygrant/sanitize"
)

const (
	DEFAULT_REPLY_LIMIT = 3
	MAX_REPLY_LIMIT     = 25
	MAX_LIMIT           = 25
	ORDER_ASC           = "ASC"
	ORDER_DESC          = "DESC"
)

type Query struct {
	Id              int64     `url:"id,omitempty"`
	Skip            int       `url:"skip"`
	Limit           int       `url:"limit"`
	To              time.Time `url:"to"`
	From            time.Time `url:"from"`
	GroupName       string    `url:"groupName"`
	GroupChannelId  int64     `url:"groupChannelId"`
	Type            string    `url:"type"`
	Privacy         string    `url:"privacy"`
	AccountId       int64     `url:"accountId"`
	AccountNickname string    `url:"accountNickname"`
	Name            string    `url:"name"`
	Slug            string    `url:"slug"`
	ShowExempt      bool      `url:"showExempt"`
	ReplyLimit      int       `url:"replyLimit"`
	ReplySkip       int       `url:"replySkip"`
	AddIsInteracted bool      `url:"addIsInteracted"`
	ObjectId        int64     `url:"objectId"`
	Exclude         map[string]interface{}
	Sort            map[string]string
}

func NewQuery() *Query {
	return &Query{
		Exclude: make(map[string]interface{}, 0),
		Sort:    make(map[string]string, 0),
	}
}
<commit_msg>socialapi: limit is added to newquery<commit_after>package request

import (
	"math"
	"net/url"
	"path"
	"regexp"
	"strconv"
	"strings"
	"time"

	"github.com/kennygrant/sanitize"
)

const (
	DEFAULT_REPLY_LIMIT = 3
	MAX_REPLY_LIMIT     = 25
	MAX_LIMIT           = 25
	ORDER_ASC           = "ASC"
	ORDER_DESC          = "DESC"
)

type Query struct {
	Id              int64     `url:"id,omitempty"`
	Skip            int       `url:"skip"`
	Limit           int       `url:"limit"`
	To              time.Time `url:"to"`
	From            time.Time `url:"from"`
	GroupName       string    `url:"groupName"`
	GroupChannelId  int64     `url:"groupChannelId"`
	Type            string    `url:"type"`
	Privacy         string    `url:"privacy"`
	AccountId       int64     `url:"accountId"`
	AccountNickname string    `url:"accountNickname"`
	Name            string    `url:"name"`
	Slug            string    `url:"slug"`
	ShowExempt      bool      `url:"showExempt"`
	ReplyLimit      int       `url:"replyLimit"`
	ReplySkip       int       `url:"replySkip"`
	AddIsInteracted bool      `url:"addIsInteracted"`
	ObjectId        int64     `url:"objectId"`
	Exclude         map[string]interface{}
	Sort            map[string]string
}

func NewQuery() *Query {
	return &Query{
		Exclude: make(map[string]interface{}, 0),
		Sort:    make(map[string]string, 0),
		Limit:   MAX_LIMIT,
	}
}

{'fraction_non_alphanumeric': 0.12054896142433234, 'fraction_numerical': 0.01112759643916914, 'mean_word_length': 2.1954976303317535, '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': '4802810', 'n_tokens_mistral': 931, 'n_tokens_neox': 906, 'n_words': 195}