<commit_before><?php

//common environment attributes including search paths. not specific to Learnosity
include_once '../env_config.php';

//site scaffolding
include_once 'includes/header.php';

//common Learnosity config elements including API version control vars
include_once '../lrn_config.php';

use LearnositySdk\Request\Init;
use LearnositySdk\Utils\Uuid;

$security = [
    'consumer_key' => $consumer_key,
    'domain'       => $domain
];

//simple api request object for Reports API
$request = [
    'reports' => [
		[
			'id'        => 'progress-by-tag',
			'type'      => 'progress-by-tag',
			'user_id'   => 'mce_student_1',
			'hierarchy' => 'CCSS'
		],
        [
			"id"        => "progress-by-tag-by-user",
            "type"      => "progress-by-tag-by-user",
            "users"     => [
                ["id" => "mce_student_1","name" => "<NAME>"],
                ["id" => "mce_student_2","name" => "<NAME>"]
            ],
            "hierarchy_reference" => "CCSS"
        ],
		[
		    'id'          => 'progress-single',
		    'type'        => 'progress-single',
            'ui'          => 'pie',
		    'user_id'     => 'demo_student',
		    'hierarchy'   => 'questiontype',
		    'tag_hierarchy_path' => [
		        [
		            'type'  => 'questiontype',
		            'name'  => 'mcq'
		        ]
		    ]
		]
    ]
];

$Init = new Init('reports', $security, $consumer_secret, $request);
$signedRequest = $Init->generate();

?>

    <div class="jumbotron section">
        <div class="toolbar">
            <ul class="list-inline"><commit_msg>[DOC] Fix deprecated hierarchy definitions.<commit_after><?php

//common environment attributes including search paths. not specific to Learnosity
include_once '../env_config.php';

//site scaffolding
include_once 'includes/header.php';

//common Learnosity config elements including API version control vars
include_once '../lrn_config.php';

use LearnositySdk\Request\Init;
use LearnositySdk\Utils\Uuid;

$security = [
    'consumer_key' => $consumer_key,
    'domain'       => $domain
];

//simple api request object for Reports API
$request = [
    'reports' => [
		[
			'id'        => 'progress-by-tag',
			'type'      => 'progress-by-tag',
			'user_id'   => 'mce_student_1',
			'hierarchy_reference' => 'CCSS'
		],
        [
			"id"        => "progress-by-tag-by-user",
            "type"      => "progress-by-tag-by-user",
            "users"     => [
                ["id" => "mce_student_1","name" => "<NAME>"],
                ["id" => "mce_student_2","name" => "<NAME>"]
            ],
            "hierarchy_reference" => "CCSS"
        ],
		[
		    'id'          => 'progress-single',
		    'type'        => 'progress-single',
            'ui'          => 'pie',
		    'user_id'     => 'demo_student',
		    'hierarchy_reference'   => 'questiontype',
		    'tag_hierarchy_path' => [
		        [
		            'type'  => 'questiontype',
		            'name'  => 'mcq'
		        ]
		    ]
		]
    ]
];

$Init = new Init('reports', $security, $consumer_secret, $request);
$signedRequest = $Init->generate();

?>

    <div class="jumbotron section">
        <div class="toolbar">
            <ul class="list-inline">
{'fraction_non_alphanumeric': 0.1709375, 'fraction_numerical': 0.001875, 'mean_word_length': 2.095744680851064, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 63, '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': '6637275', 'n_tokens_mistral': 1110, 'n_tokens_neox': 1022, 'n_words': 197}