<commit_before>package kitsu

import (
	"fmt"
)

// Possible values for User.RatingSystem.
const (
	UserRatingSystemAdvanced = "advanced"
	UserRatingSystemRegular  = "regular"
	UserRatingSystemSimple   = "simple"
)

// Possible values for User.Theme.
const (
	UserThemeLight = "light"
	UserThemeDark  = "dark"
)

// UserService handles communication with the user related methods of the
// Kitsu API.
//
// Kitsu API docs:
// http://docs.kitsu.apiary.io/#reference/users/users
type UserService service

// User represents a Kitsu user.
type User struct {
	ID string `jsonapi:"primary,users"`

	// --- Attributes ---

	// ISO 8601 date and time, e.g. 2017-07-27T22:21:26.824Z
	CreatedAt string `jsonapi:"attr,createdAt,omitempty"`

	// ISO 8601 of last modification, e.g. 2017-07-27T22:47:45.129Z
	UpdatedAt string `jsonapi:"attr,updatedAt,omitempty"`

	// e.g. vikhyat
	Name string `jsonapi:"attr,name,omitempty"`

	PastNames []string `jsonapi:"attr,pastNames,omitempty"`

	// Unique slug used for page URLs, e.g. vikhyat
	Slug string `jsonapi:"attr,slug,omitempty"`

	// Max length of 500 characters, e.g.
	//
	// Co-founder of Hummingbird. Obsessed with Gumi.
	About string `jsonapi:"attr,about,omitempty"`

	// e.g. Seattle, WA
	Location string `jsonapi:"attr,location,omitempty"`

	// e.g. Waifu
	WaifuOrHusbando string `jsonapi:"attr,waifuOrHusbando,omitempty"`

	// e.g. 1716
	followersCount int `jsonapi:"attr,followersCount,omitempty"`

	// e.g. 2031
	followingCount int `jsonapi:"attr,followingCount,omitempty"`

	Birthday string `jsonapi:"attr,birthday,omitempty"`
	Gender   string `jsonapi:"attr,gender,omitempty"`

	CommentsCount       int `jsonapi:"attr,commentsCount,omitempty"`
	FavoritesCount      int `jsonapi:"attr,favoritesCount,omitempty"`
	LikesGivenCount     int `jsonapi:"attr,likesGivenCount,omitempty"`
	ReviewsCount        int `jsonapi:"attr,reviewsCount,omitempty"`
	LikesReceivedCount  int `jsonapi:"attr,likesReceivedCount,omitempty"`
	PostsCount          int `jsonapi:"attr,postsCount,omitempty"`
	RatingsCount        int `jsonapi:"attr,ratingsCount,omitempty"`
	MediaReactionsCount int `jsonapi:"attr,mediaReactionsCount,omitempty"`

	// e.g. 2015-01-30T16:49:35.173Z
	ProExpiresAt string `jsonapi:"attr,proExpiresAt,omitempty"`

	Title string `jsonapi:"attr,title,omitempty"`

	ProfileCompleted bool `jsonapi:"attr,profileCompleted,omitempty"`
	FeedCompleted    bool `jsonapi:"attr,feedCompleted,omitempty"`

	// e.g.
	//
	// "tiny": "https://media.kitsu.io/users/avatars/1/tiny.jpg?1434087646"<commit_msg>Fix panic caused by unexported User fields<commit_after>package kitsu

import (
	"fmt"
)

// Possible values for User.RatingSystem.
const (
	UserRatingSystemAdvanced = "advanced"
	UserRatingSystemRegular  = "regular"
	UserRatingSystemSimple   = "simple"
)

// Possible values for User.Theme.
const (
	UserThemeLight = "light"
	UserThemeDark  = "dark"
)

// UserService handles communication with the user related methods of the
// Kitsu API.
//
// Kitsu API docs:
// http://docs.kitsu.apiary.io/#reference/users/users
type UserService service

// User represents a Kitsu user.
type User struct {
	ID string `jsonapi:"primary,users"`

	// --- Attributes ---

	// ISO 8601 date and time, e.g. 2017-07-27T22:21:26.824Z
	CreatedAt string `jsonapi:"attr,createdAt,omitempty"`

	// ISO 8601 of last modification, e.g. 2017-07-27T22:47:45.129Z
	UpdatedAt string `jsonapi:"attr,updatedAt,omitempty"`

	// e.g. vikhyat
	Name string `jsonapi:"attr,name,omitempty"`

	PastNames []string `jsonapi:"attr,pastNames,omitempty"`

	// Unique slug used for page URLs, e.g. vikhyat
	Slug string `jsonapi:"attr,slug,omitempty"`

	// Max length of 500 characters, e.g.
	//
	// Co-founder of Hummingbird. Obsessed with Gumi.
	About string `jsonapi:"attr,about,omitempty"`

	// e.g. Seattle, WA
	Location string `jsonapi:"attr,location,omitempty"`

	// e.g. Waifu
	WaifuOrHusbando string `jsonapi:"attr,waifuOrHusbando,omitempty"`

	// e.g. 1716
	FollowersCount int `jsonapi:"attr,followersCount,omitempty"`

	// e.g. 2031
	FollowingCount int `jsonapi:"attr,followingCount,omitempty"`

	Birthday string `jsonapi:"attr,birthday,omitempty"`
	Gender   string `jsonapi:"attr,gender,omitempty"`

	CommentsCount       int `jsonapi:"attr,commentsCount,omitempty"`
	FavoritesCount      int `jsonapi:"attr,favoritesCount,omitempty"`
	LikesGivenCount     int `jsonapi:"attr,likesGivenCount,omitempty"`
	ReviewsCount        int `jsonapi:"attr,reviewsCount,omitempty"`
	LikesReceivedCount  int `jsonapi:"attr,likesReceivedCount,omitempty"`
	PostsCount          int `jsonapi:"attr,postsCount,omitempty"`
	RatingsCount        int `jsonapi:"attr,ratingsCount,omitempty"`
	MediaReactionsCount int `jsonapi:"attr,mediaReactionsCount,omitempty"`

	// e.g. 2015-01-30T16:49:35.173Z
	ProExpiresAt string `jsonapi:"attr,proExpiresAt,omitempty"`

	Title string `jsonapi:"attr,title,omitempty"`

	ProfileCompleted bool `jsonapi:"attr,profileCompleted,omitempty"`
	FeedCompleted    bool `jsonapi:"attr,feedCompleted,omitempty"`

	// e.g.
	//
	// "tiny": "https://media.kitsu.io/users/avatars/1/tiny.jpg?1434087646"
{'fraction_non_alphanumeric': 0.13124387855044076, 'fraction_numerical': 0.03173359451518119, 'mean_word_length': 4.730639730639731, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '1299086', 'n_tokens_mistral': 1880, 'n_tokens_neox': 1676, 'n_words': 359}