<commit_before><?php

require_once 'quizzer/Assessment.php';
require_once 'quizzer/deserializers/AssessmentDeserializer.php';

class AssessmentLoader
{
    public static function loadAssessmentFromUrls($questionsUrl, $answersUrl, $gradesUrl)
    {
        if (!isset($questionsUrl) || !isset($answersUrl)) {
            throw new Exception('Questions and answers URLs cannot be null');
        }

        $questionsJson = file_get_contents($questionsUrl);
        $answersJson = file_get_contents($answersUrl);

        $gradesJson = null;
        if (!empty($gradesUrl)) {<commit_msg>Change empty for isset<commit_after><?php

require_once 'quizzer/Assessment.php';
require_once 'quizzer/deserializers/AssessmentDeserializer.php';

class AssessmentLoader
{
    public static function loadAssessmentFromUrls($questionsUrl, $answersUrl, $gradesUrl)
    {
        if (!isset($questionsUrl) || !isset($answersUrl)) {
            throw new Exception('Questions and answers URLs cannot be null');
        }

        $questionsJson = file_get_contents($questionsUrl);
        $answersJson = file_get_contents($answersUrl);

        $gradesJson = null;
        if (!isset($gradesUrl)) {
{'fraction_non_alphanumeric': 0.11195928753180662, 'fraction_numerical': 0.0, 'mean_word_length': 3.9166666666666665, 'pattern_counts': {'":': 0, '<': 5, '<?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': '2871207', 'n_tokens_mistral': 358, 'n_tokens_neox': 334, 'n_words': 71}