<commit_before>package easyvk

import (
	"encoding/json"
	"fmt"
)

type Status struct {
	vk *VK
}

func (s *Status) Get(id int) (string, error) {
	params := map[string]string{"user_id": fmt.Sprint(id) }
	resp, err := s.vk.Request("status.get", params)
	if err != nil {
		return "", err
	}
	var status StatusInfo
	err = json.Unmarshal(resp, &status)
	if err != nil {
		return "", err
	}
	return status.Response.Text, nil
}

func (s *Status) Set(text string, id int) (bool, error) {
	params := map[string]string{
		"text": text,
		"group_id": fmt.Sprint(id),
	}
	resp, err := s.vk.Request("status.set", params)
	if err != nil {
		return false, err
	}
	var status response
	err = json.Unmarshal(resp, &status)
	if err != nil {
		return false, err
	}
	return status.Response == 1, nil
}<commit_msg>Refactor with golint<commit_after>package easyvk

import (
	"encoding/json"
	"fmt"
)

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

// Get Returns data required to show the
// status of a user or community
func (s *Status) Get(id int) (string, error) {
	params := map[string]string{"user_id": fmt.Sprint(id) }
	resp, err := s.vk.Request("status.get", params)
	if err != nil {
		return "", err
	}
	var status StatusInfo
	err = json.Unmarshal(resp, &status)
	if err != nil {
		return "", err
	}
	return status.Response.Text, nil
}

// Set a new status for the current user
func (s *Status) Set(text string, id int) (bool, error) {
	params := map[string]string{
		"text": text,
		"group_id": fmt.Sprint(id),
	}
	resp, err := s.vk.Request("status.set", params)
	if err != nil {
		return false, err
	}
	var status response
	err = json.Unmarshal(resp, &status)
	if err != nil {
		return false, err
	}
	return status.Response == 1, nil
}
{'fraction_non_alphanumeric': 0.1505922165820643, 'fraction_numerical': 0.0011280315848843769, 'mean_word_length': 3.631853785900783, 'pattern_counts': {'":': 6, '<': 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': '3988237', 'n_tokens_mistral': 672, 'n_tokens_neox': 644, 'n_words': 202}