<commit_before>package rest

import (
	"encoding/json"
	"fmt"
	"socialapi/models"
)

func FetchPopularTopics(accountId int64, groupName, token string) ([]*models.ChannelContainer, error) {
	url := fmt.Sprintf("/popular/topics/weekly?accountId=%d&groupName=%s", accountId, groupName)
	res, err := sendRequestWithAuth("GET", url, nil, token)
	if err != nil {
		return nil, err
	}

	var channels []*models.ChannelContainer
	err = json.Unmarshal(res, &channels)
	if err != nil {
		return nil, err
	}

	return channels, nil
}
<commit_msg>socialapi/rest: popular topic accountIds are removed<commit_after>package rest

import (
	"encoding/json"
	"fmt"
	"socialapi/models"
)

func FetchPopularTopics(token string) ([]*models.ChannelContainer, error) {
	url := fmt.Sprintf("/popular/topics/weekly")
	res, err := sendRequestWithAuth("GET", url, nil, token)
	if err != nil {
		return nil, err
	}

	var channels []*models.ChannelContainer
	err = json.Unmarshal(res, &channels)
	if err != nil {
		return nil, err
	}

	return channels, nil
}

{'fraction_non_alphanumeric': 0.1379980563654033, 'fraction_numerical': 0.001943634596695821, 'mean_word_length': 4.8522727272727275, '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': '905847', 'n_tokens_mistral': 366, 'n_tokens_neox': 350, 'n_words': 90}