<commit_before>#!/usr/bin/perl

################################################################################
# Sub routines:

sub uniq {
	    return keys %{{ map { $_ => 1 } @_ }};
    }

################################################################################


$SHADERS_PATH = "../../Resources/shaders/";
$SHADER_VARIABLES_FILEPATH = $SHADERS_PATH . "shader_variables";

$TARGET_PATH = "../../Vajra/Framework/OpenGL/ShaderHandles/";
$ENUM_HEADER_FILE_PATH = $TARGET_PATH . "Declarations.h";
$ENUM_SOURCE_FILE_PATH = $TARGET_PATH . "Declarations.cpp";

printf "\nShaders variables file: $SHADER_VARIABLES_FILEPATH";
printf "\nShader variables:\n";

open(FILE_SHADER_VARIABLES, $SHADER_VARIABLES_FILEPATH);
@variable_declarations = <FILE_SHADER_VARIABLES>;
close(FILE_SHADER_VARIABLES);

foreach $declaration (@variable_declarations) {
	chomp($declaration);
	if ($declaration =~ /^(\w*)\s+(\w*)\s+(\w*).*$/) {
		printf "\n> $declaration";
		push(@qualifiers, $1);
		push(@datatypes, $2);<commit_msg>Update generateEnums.pl after the Resources were moved to ExampleGame.<commit_after>#!/usr/bin/perl

################################################################################
# Sub routines:

sub uniq {
	    return keys %{{ map { $_ => 1 } @_ }};
    }

################################################################################


$SHADERS_PATH = "../../ExampleGame/Resources/shaders/";
$SHADER_VARIABLES_FILEPATH = $SHADERS_PATH . "shader_variables";

$TARGET_PATH = "../../Vajra/Framework/OpenGL/ShaderHandles/";
$ENUM_HEADER_FILE_PATH = $TARGET_PATH . "Declarations.h";
$ENUM_SOURCE_FILE_PATH = $TARGET_PATH . "Declarations.cpp";

printf "\nShaders variables file: $SHADER_VARIABLES_FILEPATH";
printf "\nShader variables:\n";

open(FILE_SHADER_VARIABLES, $SHADER_VARIABLES_FILEPATH);
@variable_declarations = <FILE_SHADER_VARIABLES>;
close(FILE_SHADER_VARIABLES);

foreach $declaration (@variable_declarations) {
	chomp($declaration);
	if ($declaration =~ /^(\w*)\s+(\w*)\s+(\w*).*$/) {
		printf "\n> $declaration";
		push(@qualifiers, $1);
		push(@datatypes, $2);
{'fraction_non_alphanumeric': 0.30272596843615496, 'fraction_numerical': 0.0028694404591104736, 'mean_word_length': 6.366197183098592, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '5909761', 'n_tokens_mistral': 709, 'n_tokens_neox': 706, 'n_words': 105}