<commit_before>package tlbot

import (
	"bytes"
	"fmt"
	"strings"
	"time"
)

type Action string

// Types of actions to broadcast
const (
	Typing            Action = "typing"
	UploadingPhoto    Action = "upload_photo"
	UploadingVideo    Action = "upload_video"
	UploadingAudio    Action = "upload_audio"
	UploadingDocument Action = "upload_document"
	FindingLocation   Action = "find_location"
)

// User represents a Telegram user or bot.
type User struct {
	ID        int    `json:"id"`
	Username  string `json:"username"`
	FirstName string `json:"first_name"`
	LastName  string `json:"last_name"`
}

// Chat represents a Telegram chat.
type Chat struct {
	ID        int    `json:"id"`
	Type      string `json:"type"`
	Title     string `json:"title"`
	Username  string `json:"username"`
	FirstName string `json:"first_name"`
	LastName  string `json:"last_name"`
}

// IsGroupChat reports whether the message is originally sent from a chat group.
func (c Chat) IsGroupChat() bool { return c.Title == "group" }

type Update struct {
	ID      int     `json:"update_id"`
	Payload Message `json:"message"`
}

// Message represents a message to be sent.
type Message struct {
	// Unique message identifier
	ID int `json:"message_id"`
<commit_msg>Fix wrong logic in IsGroupChat()<commit_after>package tlbot

import (
	"bytes"
	"fmt"
	"strings"
	"time"
)

type Action string

// Types of actions to broadcast
const (
	Typing            Action = "typing"
	UploadingPhoto    Action = "upload_photo"
	UploadingVideo    Action = "upload_video"
	UploadingAudio    Action = "upload_audio"
	UploadingDocument Action = "upload_document"
	FindingLocation   Action = "find_location"
)

// User represents a Telegram user or bot.
type User struct {
	ID        int    `json:"id"`
	Username  string `json:"username"`
	FirstName string `json:"first_name"`
	LastName  string `json:"last_name"`
}

// Chat represents a Telegram chat.
type Chat struct {
	ID        int    `json:"id"`
	Type      string `json:"type"`
	Title     string `json:"title"`
	Username  string `json:"username"`
	FirstName string `json:"first_name"`
	LastName  string `json:"last_name"`
}

// IsGroupChat reports whether the message is originally sent from a chat group.
func (c Chat) IsGroupChat() bool { return c.Type == "group" }

type Update struct {
	ID      int     `json:"update_id"`
	Payload Message `json:"message"`
}

// Message represents a message to be sent.
type Message struct {
	// Unique message identifier
	ID int `json:"message_id"`

{'fraction_non_alphanumeric': 0.10631494804156674, 'fraction_numerical': 0.0, 'mean_word_length': 3.6610800744878955, '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': '1382086', 'n_tokens_mistral': 774, 'n_tokens_neox': 769, 'n_words': 258}