<commit_before>package main

import (
	"fmt"
	"log"
	"os"
	"time"

	"github.com/robdimsdale/wl"
	wl_logger "github.com/robdimsdale/wl/logger"
	wl_oauth "github.com/robdimsdale/wl/oauth"
)

func main() {
	client := wl_oauth.NewClient(
		os.Getenv("WL_ACCESS_TOKEN"),
		os.Getenv("WL_CLIENT_ID"),
		wl.APIURL,
		wl_logger.NewLogger(wl_logger.INFO),
	)

	root, err := client.Root()
	if err != nil {
		log.Fatal(err)
	}

	myID := root.UserID

	lists, err := client.Lists()
	if err != nil {
		log.Fatal(err)
	}

	tasks, err := client.Tasks()
	if err != nil {
		log.Fatal(err)
	}

	filtered := []wl.Task{}

	for _, task := range tasks {
		// Remove completed tasks
		if task.Completed {
			continue
		}

		// Remove tasks assigned to someone else
		if task.AssigneeID != uint(0) && task.AssigneeID != myID {
			continue
		}

		// Include tasks assigned to me or starred
		if task.AssigneeID == myID || task.Starred {
			filtered = append(filtered, task)
			continue
		}

		// Include overdue tasks
		if !task.DueDate.IsZero() && time.Now().After(task.DueDate) {
			filtered = append(filtered, task)
		}

	}

	if len(filtered) == 0 {
		return
	}

	fmt.Printf("✅ %v\n", len(filtered))

	var lastList uint

	for _, task := range filtered {
		// Print the list header
		if lastList != task.ListID {
			for _, list := range lists {
				if list.ID == task.ListID {
					fmt.Printf("\n%s\n\n", list.Title)
					lastList = list.ID
					break
				}
			}
		}

		fmt.Printf("  %s\n", task.Title)
	}

	fmt.Println()
}<commit_msg>Show emoji symbols for overdue/assigned/starred<commit_after>package main

import (
	"fmt"
	"log"
	"os"
	"time"

	"github.com/robdimsdale/wl"
	wl_logger "github.com/robdimsdale/wl/logger"
	wl_oauth "github.com/robdimsdale/wl/oauth"
)

func main() {
	client := wl_oauth.NewClient(
		os.Getenv("WL_ACCESS_TOKEN"),
		os.Getenv("WL_CLIENT_ID"),
		wl.APIURL,
		wl_logger.NewLogger(wl_logger.INFO),
	)

	root, err := client.Root()
	if err != nil {
		log.Fatal(err)
	}

	myID := root.UserID

	lists, err := client.Lists()
	if err != nil {
		log.Fatal(err)
	}

	tasks, err := client.Tasks()
	if err != nil {
		log.Fatal(err)
	}

	filtered := []wl.Task{}

	for _, task := range tasks {
		// Remove completed tasks
		if task.Completed {
			continue
		}

		// Remove tasks assigned to someone else
		if task.AssigneeID != uint(0) && task.AssigneeID != myID {
			continue
		}

		// Include tasks assigned to me or starred
		if task.AssigneeID == myID || task.Starred {
			filtered = append(filtered, task)
			continue
		}

		// Include overdue tasks
		if !task.DueDate.IsZero() && time.Now().After(task.DueDate) {
			filtered = append(filtered, task)
		}

	}

	if len(filtered) == 0 {
		return
	}

	fmt.Printf("✅ %v\n", len(filtered))

	var lastList uint

	for _, task := range filtered {
		// Print the list header
		if lastList != task.ListID {
			for _, list := range lists {
				if list.ID == task.ListID {
					fmt.Printf("\n%s\n\n", list.Title)
					lastList = list.ID
					break
				}
			}
		}

		var overdueString string
		if !task.DueDate.IsZero() && time.Now().After(task.DueDate) {
			overdueString = "⏰ "
		}

		var assignedString string
		if task.AssigneeID == myID {
			assignedString = "👤 "
		}

		var starString string
		if task.Starred {
			starString = "🌟 "
		}

		fmt.Printf(
			"  %s%s%s%s\n",
			overdueString,
			assignedString,
			starString,
			task.Title,
		)
	}

	fmt.Println()
}
{'fraction_non_alphanumeric': 0.14952996474735605, 'fraction_numerical': 0.0011750881316098707, 'mean_word_length': 2.847457627118644, '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': '6006715', 'n_tokens_mistral': 1511, 'n_tokens_neox': 1304, 'n_words': 286}