<commit_before>
extends HBoxContainer

const types = preload("res://mask/mask.gd").types
const type_textures = preload("res://mask/mask.gd").type_textures

var current_mask = ""
var previous_mask = ""

onready var tree = get_tree()
onready var player = tree.get_nodes_in_group("player")[0]
onready var _sprite = get_node("Sprite")

func _ready():
	set_process(true)

func _process(delta):
	if not player == null:
		current_mask = player.get_current_mask()
		if current_mask != previous_mask:
			previous_mask = current_mask
			if type_textures.has(current_mask):
				_sprite.set_texture(type_textures[ current_mask ])<commit_msg>Avoid duplicate path of the samething.<commit_after>
extends HBoxContainer

const mask = preload("res://mask/mask.gd")
const types = mask.types
const type_textures = mask.type_textures

var current_mask = ""
var previous_mask = ""

onready var tree = get_tree()
onready var player = tree.get_nodes_in_group("player")[0]
onready var _sprite = get_node("Sprite")

func _ready():
	set_process(true)

func _process(delta):
	if not player == null:
		current_mask = player.get_current_mask()
		if current_mask != previous_mask:
			previous_mask = current_mask
			if type_textures.has(current_mask):
				_sprite.set_texture(type_textures[ current_mask ])
{'fraction_non_alphanumeric': 0.11206896551724138, 'fraction_numerical': 0.001567398119122257, 'mean_word_length': 5.616580310880829, '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': '6111145', 'n_tokens_mistral': 447, 'n_tokens_neox': 430, 'n_words': 98}