<commit_before>package admin

import (
	"context"
	"time"

	"google.golang.org/api/identitytoolkit/v3"
)

// UserRecord is the firebase authentication user
type UserRecord struct {
	UserID        string
	Email         string
	EmailVerified bool
	DisplayName   string
	PhotoURL      string
	Disabled      bool
	Metadata      UserMetadata
	ProviderData  []*UserInfo
}

type UserMetadata struct {
	CreatedAt      time.Time
	LastSignedInAt time.Time
}

// UserInfo is the user provider information
type UserInfo struct {
	UserID      string
	Email       string
	DisplayName string
	PhotoURL    string
	ProviderID  string
}

func parseDate(t int64) time.Time {
	if t == 0 {
		return time.Time{}
	}
	return time.Unix(t/1000, 0)
}

func toUserRecord(user *identitytoolkit.UserInfo) *UserRecord {
	return &UserRecord{
		UserID:        user.LocalId,
		Email:         user.Email,
		EmailVerified: user.EmailVerified,
		DisplayName:   user.DisplayName,
		PhotoURL:      user.PhotoUrl,
		Disabled:      user.Disabled,<commit_msg>auth: add comment<commit_after>package admin

import (
	"context"
	"time"

	"google.golang.org/api/identitytoolkit/v3"
)

// UserRecord is the firebase authentication user
type UserRecord struct {
	UserID        string
	Email         string
	EmailVerified bool
	DisplayName   string
	PhotoURL      string
	Disabled      bool
	Metadata      UserMetadata
	ProviderData  []*UserInfo
}

// UserMetadata is the metadata for user
type UserMetadata struct {
	CreatedAt      time.Time
	LastSignedInAt time.Time
}

// UserInfo is the user provider information
type UserInfo struct {
	UserID      string
	Email       string
	DisplayName string
	PhotoURL    string
	ProviderID  string
}

func parseDate(t int64) time.Time {
	if t == 0 {
		return time.Time{}
	}
	return time.Unix(t/1000, 0)
}

func toUserRecord(user *identitytoolkit.UserInfo) *UserRecord {
	return &UserRecord{
		UserID:        user.LocalId,
		Email:         user.Email,
		EmailVerified: user.EmailVerified,
		DisplayName:   user.DisplayName,
		PhotoURL:      user.PhotoUrl,
		Disabled:      user.Disabled,
{'fraction_non_alphanumeric': 0.07263107263107263, 'fraction_numerical': 0.008658008658008658, 'mean_word_length': 3.110671936758893, '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': '7666927', 'n_tokens_mistral': 689, 'n_tokens_neox': 656, 'n_words': 181}