<commit_before>function SelectableArray () {
    this.items = ko.observableArray();
    this.selectedItems = ko.observableArray();
}
SelectableArray.prototype.removeSelected = function () {
    var selected;
    selected = this.selectedItems();
    this.items.remove(function (item) {
        for (var i = 0; i < selected.length; ++i)
            if (_.isEqual(selected[i], item)) return true;
        return false;
    });
    this.selectedItems.removeAll();
    this.selectedItems.valueHasMutated();
    this.items.valueHasMutated();
};

function ListOfFiles () {
    SelectableArray.call(this);
    this.items = ko.observableArray([
        {"Filename": "bwv77.mxl"},
        {"Filename": "madrigal51.mxl"}
    ]);
}
ListOfFiles.prototype = Object.create(SelectableArray.prototype);
ListOfFiles.prototype.constructor = ListOfFiles;

function ListOfPieces () {
    SelectableArray.call(this);
    this.items = ko.observableArray();
}
ListOfPieces.prototype = Object.create(SelectableArray.prototype);
ListOfPieces.prototype.constructor = ListOfPieces;

function Wizard() {
    var self = this;
    self.state = ko.observable();
}

var Piece = function(path, title, partNames, offset, partCombinations, repeatIdentical) {
    this.path = ko.observable(path);
    this.title = ko.observable(title);
    this.partNames = ko.observable(partNames);
    this.offset = ko.observable(offset);
    this.partCombinations = ko.observable(partCombinations);
    this.repeatIdentical = ko.observable(repeatIdentical);
}<commit_msg>made partCombinations of Piece a ko observableArray<commit_after>function SelectableArray () {
    this.items = ko.observableArray();
    this.selectedItems = ko.observableArray();
}
SelectableArray.prototype.removeSelected = function () {
    var selected;
    selected = this.selectedItems();
    this.items.remove(function (item) {
        for (var i = 0; i < selected.length; ++i)
            if (_.isEqual(selected[i], item)) return true;
        return false;
    });
    this.selectedItems.removeAll();
    this.selectedItems.valueHasMutated();
    this.items.valueHasMutated();
};

function ListOfFiles () {
    SelectableArray.call(this);
    this.items = ko.observableArray([
        {"Filename": "bwv77.mxl"},
        {"Filename": "madrigal51.mxl"}
    ]);
}
ListOfFiles.prototype = Object.create(SelectableArray.prototype);
ListOfFiles.prototype.constructor = ListOfFiles;

function ListOfPieces () {
    SelectableArray.call(this);
    this.items = ko.observableArray();
}
ListOfPieces.prototype = Object.create(SelectableArray.prototype);
ListOfPieces.prototype.constructor = ListOfPieces;

function Wizard() {
    var self = this;
    self.state = ko.observable();
}

var Piece = function(path, title, partNames, offset, partCombinations, repeatIdentical) {
    this.path = ko.observable(path);
    this.title = ko.observable(title);
    this.partNames = ko.observableArray(partNames);
    this.offset = ko.observable(offset);
    this.partCombinations = ko.observable(partCombinations);
    this.repeatIdentical = ko.observable(repeatIdentical);
}
{'fraction_non_alphanumeric': 0.13168991242296466, 'fraction_numerical': 0.003243593902043464, 'mean_word_length': 4.014634146341463, 'pattern_counts': {'":': 4, '<': 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': '2860990', 'n_tokens_mistral': 954, 'n_tokens_neox': 943, 'n_words': 166}