<commit_before>package easyvk

import (
	"fmt"
	"encoding/json"
)

// A Fave describes a set of methods
// to work with faves.
type Fave struct {
	vk *VK
}

// GetUsers returns a list of users whom the current user has bookmarked.
func (f *Fave) GetUsers(offset, count uint) (FaveUsers, error) {
	params := map[string]string{
		"offset": fmt.Sprint(offset),
		"count":  fmt.Sprint(count),
	}
	resp, err := f.vk.Request("fave.getUsers", params)
	if err != nil {
		return FaveUsers{}, err
	}
	nextResp, count, err := f.vk.ResponseWithCount(resp)
	var users FaveUsers
	err = json.Unmarshal(nextResp, &users)
	if err != nil {
		return FaveUsers{}, err
	}

	return users, nil
}

// GetLinks returns a list of links that the current user has bookmarked.
func (f *Fave) GetLinks(offset, count uint) (FaveLinks, error) {
	params := map[string]string{
		"offset": fmt.Sprint(offset),
		"count":  fmt.Sprint(count),
	}
	resp, err := f.vk.Request("fave.getLinks", params)
	if err != nil {
		return FaveLinks{}, err
	}
	nextResp, count, err := f.vk.ResponseWithCount(resp)
	var links FaveLinks
	err = json.Unmarshal(nextResp, &links)
	if err != nil {
		return FaveLinks{}, err
	}

	return links, nil
}<commit_msg>Return counts<commit_after>package easyvk

import (
	"fmt"
	"encoding/json"
)

// A Fave describes a set of methods
// to work with faves.
type Fave struct {
	vk *VK
}

// GetUsers returns a list of users whom the current user has bookmarked.
// Also this func return count of all bookmarked users.
func (f *Fave) GetUsers(offset, count uint) (FaveUsers, uint, error) {
	params := map[string]string{
		"offset": fmt.Sprint(offset),
		"count":  fmt.Sprint(count),
	}
	resp, err := f.vk.Request("fave.getUsers", params)
	if err != nil {
		return FaveUsers{}, 0, err
	}
	nextResp, quantity, err := f.vk.ResponseWithCount(resp)
	var users FaveUsers
	err = json.Unmarshal(nextResp, &users)
	if err != nil {
		return FaveUsers{}, 0, err
	}

	return users, quantity, nil
}

// GetLinks returns a list of links that the current user has bookmarked.
// Also this func return count of all bookmarked links.
func (f *Fave) GetLinks(offset, count uint) (FaveLinks, uint, error) {
	params := map[string]string{
		"offset": fmt.Sprint(offset),
		"count":  fmt.Sprint(count),
	}
	resp, err := f.vk.Request("fave.getLinks", params)
	if err != nil {
		return FaveLinks{}, 0, err
	}
	nextResp, quantity, err := f.vk.ResponseWithCount(resp)
	var links FaveLinks
	err = json.Unmarshal(nextResp, &links)
	if err != nil {
		return FaveLinks{}, 0, err
	}

	return links, quantity, nil
}
{'fraction_non_alphanumeric': 0.13494539781591264, 'fraction_numerical': 0.0015600624024961, 'mean_word_length': 3.951737451737452, 'pattern_counts': {'":': 8, '<': 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': '1946219', 'n_tokens_mistral': 958, 'n_tokens_neox': 902, 'n_words': 289}