<commit_before>function rxViewModel(options) {
    var self = this;

    self.myrx_id = options.myrx_id;
    self.rx_id = options.rx_id;
    self.name = ko.observable(options.name);
    self.description = ko.observable(options.description);
    self.color = options.color;
    self.editable = options.editable;
    self.rx_internal_name = options.rx_internal_name;
    self.confirmDelete = ko.observable(false);

    return self;
}

function scenarioFormViewModel(options) {
    var self = this;
    var colors = ['#A6CEE3', '#1F78B4', '#B2DF8A', '#33A02C', '#8DD3C7', '#E31A1C', '#FDBF6F', 
                  '#FF7F00', '#CAB2D6', '#6A3D9A', '#FFFF99', '#FB9A99', '#FFFFB3',
                  '#BEBADA', '#FB8072', '#80B1D3', '#FDB462', '#B3DE69', '#FCCDE5',
                  '#D9D9D9', '#BC80BD', '#CCEBC5', '#AAAAAA', '#777777', '#000000'];

    self.prescriptionList = ko.observableArray([]);
    self.inputRxs = ko.observable({});

	// @TODO make computed so viewModel will update as soon as any part of a name is entered. it's 2:30am.
	self.nameRequired = ko.observable(false);

    if (options && options.myrxList) {
        $.each(options.myrxList, function(i, myrx) {
            self.prescriptionList.unshift(new rxViewModel({
                name: myrx.name,
                description: myrx.description,
                myrx_id: myrx.myrx_id,
                rx_id: myrx.rx_id,
                rx_internal_name: myrx.rx_internal_name,<commit_msg>Removing #000000 from the RX color array<commit_after>function rxViewModel(options) {
    var self = this;

    self.myrx_id = options.myrx_id;
    self.rx_id = options.rx_id;
    self.name = ko.observable(options.name);
    self.description = ko.observable(options.description);
    self.color = options.color;
    self.editable = options.editable;
    self.rx_internal_name = options.rx_internal_name;
    self.confirmDelete = ko.observable(false);

    return self;
}

function scenarioFormViewModel(options) {
    var self = this;
    var colors = ['#A6CEE3', '#1F78B4', '#B2DF8A', '#33A02C', '#8DD3C7', '#E31A1C', '#FDBF6F', 
                  '#FF7F00', '#CAB2D6', '#6A3D9A', '#FFFF99', '#FB9A99', '#FFFFB3',
                  '#BEBADA', '#FB8072', '#80B1D3', '#FDB462', '#B3DE69', '#FCCDE5',
                  '#D9D9D9', '#BC80BD', '#CCEBC5', '#AAAAAA', '#777777'];

    self.prescriptionList = ko.observableArray([]);
    self.inputRxs = ko.observable({});

	// @TODO make computed so viewModel will update as soon as any part of a name is entered. it's 2:30am.
	self.nameRequired = ko.observable(false);

    if (options && options.myrxList) {
        $.each(options.myrxList, function(i, myrx) {
            self.prescriptionList.unshift(new rxViewModel({
                name: myrx.name,
                description: myrx.description,
                myrx_id: myrx.myrx_id,
                rx_id: myrx.rx_id,
                rx_internal_name: myrx.rx_internal_name,
{'fraction_non_alphanumeric': 0.15020435967302453, 'fraction_numerical': 0.04700272479564033, 'mean_word_length': 2.844240837696335, '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': '2065941', 'n_tokens_mistral': 1101, 'n_tokens_neox': 1021, 'n_words': 200}