<commit_before>var viewModel;

$(document).ready(function() {
    var tryLoad = Editor.tryLoad;
    var tryLoadMatchingId = Editor.tryLoadMatchingId;

    var marking_reserved_names = Editor.custom_part_type.marking_reserved_names = ['path','studentanswer','settings','marks','parttype','gaps','steps'];

    function ChoiceMaker() {
        var cm = this;
        this.choices = ko.observableArray([]);
        this.valid_choices = ko.computed(function() {
            return this.choices().filter(function(c) { return c.valid(); });
        },this)
        this.add_choice = function() {
            var choice = {value: ko.observable(''), label: ko.observable('')};
            choice.valid = ko.computed(function() {
                return choice.value()!='' && choice.label();
            });
            cm.choices.push(choice);
            return choice;<commit_msg>input_options is available in marking scripts<commit_after>var viewModel;

$(document).ready(function() {
    var tryLoad = Editor.tryLoad;
    var tryLoadMatchingId = Editor.tryLoadMatchingId;

    var marking_reserved_names = Editor.custom_part_type.marking_reserved_names = ['path','studentanswer','settings','marks','parttype','gaps','steps','input_options'];

    function ChoiceMaker() {
        var cm = this;
        this.choices = ko.observableArray([]);
        this.valid_choices = ko.computed(function() {
            return this.choices().filter(function(c) { return c.valid(); });
        },this)
        this.add_choice = function() {
            var choice = {value: ko.observable(''), label: ko.observable('')};
            choice.valid = ko.computed(function() {
                return choice.value()!='' && choice.label();
            });
            cm.choices.push(choice);
            return choice;
{'fraction_non_alphanumeric': 0.15105908584169453, 'fraction_numerical': 0.0, 'mean_word_length': 2.8685344827586206, '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': '2545472', 'n_tokens_mistral': 517, 'n_tokens_neox': 504, 'n_words': 90}