<commit_before><?php
namespace App\BusinessLogicLayer\managers;

use App\Models\GameVersion;
use App\Models\Resource;
use App\Models\ResourceCategory;
use App\Models\ResourceCategoryTranslation;
use App\StorageLayer\ResourceCategoryStorage;
use App\StorageLayer\ResourceCategoryTranslationStorage;
use App\StorageLayer\ResourceFileStorage;
use App\StorageLayer\ResourceTranslationStorage;
use Illuminate\Database\Eloquent\Collection;

/**
 * Class containing the Business logic for Resource Categories
 */
class ResourceCategoryManager {

    private $resourceCategoryStorage;
    private $resourceCategoryTranslationStorage;

    private $resourceCategoryOrdering = array(
        'audios/game_instructions/' => 1,
        'audios/storyline_audios/' => 2,<commit_msg>Game resource categories are now ordered | added comments MGOR-61<commit_after><?php
namespace App\BusinessLogicLayer\managers;

use App\Models\GameVersion;
use App\Models\Resource;
use App\Models\ResourceCategory;
use App\Models\ResourceCategoryTranslation;
use App\StorageLayer\ResourceCategoryStorage;
use App\StorageLayer\ResourceCategoryTranslationStorage;
use App\StorageLayer\ResourceFileStorage;
use App\StorageLayer\ResourceTranslationStorage;
use Illuminate\Database\Eloquent\Collection;

/**
 * Class containing the Business logic for Resource Categories
 */
class ResourceCategoryManager {

    private $resourceCategoryStorage;
    private $resourceCategoryTranslationStorage;

    /**
     * We can order each of the resource categories by add an integer tied to it's path.
     * When the resource is created, it will have the ordering described here (or null of we do not describe an ordering
     * for this resource category.
     *
     * Then, the resource categories will be presented to teh user ordered by this ordering.
     *
     * @var array
     */
    private $resourceCategoryOrdering = array(
        'audios/game_instructions/' => 1,
        'audios/storyline_audios/' => 2,
{'fraction_non_alphanumeric': 0.07598784194528875, 'fraction_numerical': 0.00303951367781155, 'mean_word_length': 4.741279069767442, 'pattern_counts': {'":': 0, '<': 5, '<?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': '2650456', 'n_tokens_mistral': 509, 'n_tokens_neox': 501, 'n_words': 148}