<commit_before>var spawn = require('child_process').spawn;
var util = require('./util.js');
var parseTime = util.parseTime;
var Graph = require('./graph.js');

function RRD(file) {
  this._file = file;
  this._dataSources = [];
  this._archives = [];
  this._step = 300;
}

RRD.prototype.step = function(step) {
  this._step = typeof step == 'string' ? parseTime(step) : step;<commit_msg>Some documentation added<commit_after>var spawn = require('child_process').spawn;
var util = require('./util.js');
var parseTime = util.parseTime;
var Graph = require('./graph.js');

/**
 * Creates an RRD object
 * @param {string} fileName
 */
function RRD(file) {
  this._file = file;
  this._dataSources = [];
  this._archives = [];
  this._step = 300;
}

/**
 * Set step (--step) to `step`, accepts number or string
 *
 * The string will be parsed like
 * `'1s' -> 1`
 * `'1min' -> 60`
 * @param  {mixed} step
 * @return {RRD}
 */
RRD.prototype.step = function(step) {
  this._step = typeof step == 'string' ? parseTime(step) : step;
{'fraction_non_alphanumeric': 0.1787109375, 'fraction_numerical': 0.0107421875, 'mean_word_length': 3.812206572769953, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '3452774', 'n_tokens_mistral': 355, 'n_tokens_neox': 344, 'n_words': 88}