<commit_before>package main

import (
	"fmt"
)

type Player struct {
	ID       int
	Name     string
	Location int
}

func Move(c *connection, d string) {
	if rooms[c.player.Location].Exit[d] > 0 {
		c.player.Location = rooms[c.player.Location].Exit[d]
		c.send <- []byte("going " + d)
		c.send <- []byte(rooms[c.player.Location].Description)
	}
	c.send <- []byte("there is nothing in that direction")
	return
}

func SetNick(c *connection, n string) {
	old := c.player.Name
	c.player.Name = n
	if len(old) > 0 {
		h.broadcast <- []byte(fmt.Sprintf("%s has changed nickname to %s", old, c.player.Name))
	} else {
		c.player.Location = 1
		c.send <- []byte("nickname has been set to: " + c.player.Name)
		c.send <- []byte(rooms[1].Description)
	}
}
<commit_msg>Minor fix to move function.<commit_after>package main

import (
	"fmt"
)

type Player struct {
	ID       int
	Name     string
	Location int
}

func Move(c *connection, d string) {
	if rooms[c.player.Location].Exit[d] > 0 {
		c.player.Location = rooms[c.player.Location].Exit[d]
		c.send <- []byte("going " + d)
		c.send <- []byte(rooms[c.player.Location].Description)
	} else {
		c.send <- []byte("there is nothing in that direction")
	}
	return
}

func SetNick(c *connection, n string) {
	old := c.player.Name
	c.player.Name = n
	if len(old) > 0 {
		h.broadcast <- []byte(fmt.Sprintf("%s has changed nickname to %s", old, c.player.Name))
	} else {
		c.player.Location = 1
		c.send <- []byte("nickname has been set to: " + c.player.Name)
		c.send <- []byte(rooms[1].Description)
	}
}

{'fraction_non_alphanumeric': 0.17044718081659105, 'fraction_numerical': 0.005184705119896306, 'mean_word_length': 3.2770083102493075, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 7, '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': '3155479', 'n_tokens_mistral': 612, 'n_tokens_neox': 574, 'n_words': 143}