<commit_before>package main

import (
	"encoding/json"
	"fmt"
	"math/rand"
	"os"
	"strconv"
	"strings"
	"time"

	"github.com/atotto/clipboard"
	"github.com/codegangsta/cli"
)

type Emoji struct {
	Key      string   `json:"-"`
	Char     string   `json:"char"`
	Category string   `json:"category"`
	Keywords []string `json:"keywords"`
}

func makeKeywordLookUp(emojis []Emoji) map[string][]Emoji {
	kwdsMap := make(map[string][]Emoji)
	for _, emoji := range emojis {
		for _, kwd := range emoji.Keywords {
			kwdsMap[kwd] = append(kwdsMap[kwd], emoji)
		}
	}
	return kwdsMap
}

var keywordLookUp map[string][]Emoji

func init() {<commit_msg>Also include emoji key as keyword<commit_after>package main

import (
	"encoding/json"
	"fmt"
	"math/rand"
	"os"
	"strconv"
	"strings"
	"time"

	"github.com/atotto/clipboard"
	"github.com/codegangsta/cli"
)

type Emoji struct {
	Key      string   `json:"-"`
	Char     string   `json:"char"`
	Category string   `json:"category"`
	Keywords []string `json:"keywords"`
}

func makeKeywordLookUp(emojis []Emoji) map[string][]Emoji {
	kwdsMap := make(map[string][]Emoji)
	for _, emoji := range emojis {
		kwdsMap[emoji.Key] = append(kwdsMap[emoji.Key], emoji)
		for _, kwd := range emoji.Keywords {
			kwdsMap[kwd] = append(kwdsMap[kwd], emoji)
		}
	}
	return kwdsMap
}

var keywordLookUp map[string][]Emoji

func init() {
{'fraction_non_alphanumeric': 0.15498154981549817, 'fraction_numerical': 0.0, 'mean_word_length': 4.255813953488372, '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': '4270833', 'n_tokens_mistral': 555, 'n_tokens_neox': 560, 'n_words': 110}