<commit_before>
/**
 * Expose 'matrix'
 */

module.exports = Matrix;


/**
 * Matrix constructor.
 * @api public
 */

function Matrix() {
  this.entries = [].slice.call(arguments) || [];
}

/**
 * [get description]
 * @return {[type]} [description]
 */

Matrix.prototype.get = function(row, column) {
 return this.entries[row - 1][column - 1];
};


/**
 * Set matrix entry.
 *
 * Examples:
 *
 *   matrix.set(1, 1, 10);
 *   
 * @param {Number} row
 * @param {Number} column 
 * @param {Number} value
 * @api public
 */

Matrix.prototype.set = function(row, column, value) {
  this.entries[row - 1][column - 1] = value;
  return this;
};


Matrix.prototype.row = function() {

};


Matrix.prototype.column = function() {
  // body...
};


Matrix.prototype.size = function() {
  return [this.entries.length, this.entries[0].length];
};<commit_msg>noen dynamic matrix<commit_after>
/**
 * Expose 'matrix'
 */

module.exports = Matrix;


/**
 * Multi dimensional matrix.
 * 
 * Examples:
 *
 *   var mat = new Matrix();
 *   var mat = new Matrix(
 *     [2, 1],
 *     [1, 0]
 *   );
 *   
 * @api public
 */

function Matrix() {
  this.entries = [].slice.call(arguments) || [];
}


/**
 * Get matrix entry.
 *
 * Examples:
 *
 *   mat.get(1, 1);
 * 
 * @return {Number}
 * @api public
 */

Matrix.prototype.get = function(row, column) {
 return this.entries[row - 1][column - 1];
};


/**
 * Set matrix entry.
 *
 * Examples:
 *
 *   matrix.set(1, 1, 10);
 *   
 * @param {Number} row
 * @param {Number} column 
 * @param {Number} value
 * @api public
 */

Matrix.prototype.set = function(row, column, value) {
  this.entries[row - 1][column - 1] = value;
  return this;
};


Matrix.prototype.row = function() {

};


Matrix.prototype.column = function() {
  // body...
};


/**
 * Matrix size.
 *
 * Examples:
 *
 *   mat.size(); // => [2, 2]
 *   
 * @return {Array}
 * @api public
 */

Matrix.prototype.size = function() {
  return [this.entries.length, this.entries[0].length];
};
{'fraction_non_alphanumeric': 0.198284561049445, 'fraction_numerical': 0.013118062563067608, 'mean_word_length': 2.741509433962264, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '5943639', 'n_tokens_mistral': 730, 'n_tokens_neox': 696, 'n_words': 157}