<commit_before>var ical = require('./ical')
  , request = require('request')
  , fs = require('fs')

exports.fromURL = function(url, opts, cb){
  if (!cb)
    return;
  request(url, opts, function(err, r, data){
  	if (err)
  	{
  	  return cb(err, null);
  	}
  	else if (r.statusCode != 200)
  	{
       return cb(r.statusCode + ": " + r.statusMessage, null);
  	}

  	cb(undefined, ical.parseICS(data));
  })
}

exports.parseFile = function(filename){
  return ical.parseICS(fs.readFileSync(filename, 'utf8'))
}


var rrule = require('rrule').RRule

function getLocaleISOString(date) {
	var year = date.getFullYear().toString(10).padStart(4,'0');
	var month = (date.getMonth().toString(10) + 1).padStart(2,'0');
	var day = date.getDate().toString(10).padStart(2,'0');<commit_msg>fix: correcting syntax<commit_after>var ical = require('./ical')
  , request = require('request')
  , fs = require('fs')

exports.fromURL = function(url, opts, cb){
  if (!cb)
    return;
  request(url, opts, function(err, r, data){
  	if (err)
  	{
  	  return cb(err, null);
  	}
  	else if (r.statusCode != 200)
  	{
       return cb(r.statusCode + ": " + r.statusMessage, null);
  	}

  	cb(undefined, ical.parseICS(data));
  })
}

exports.parseFile = function(filename){
  return ical.parseICS(fs.readFileSync(filename, 'utf8'))
}


var rrule = require('rrule').RRule

function getLocaleISOString(date) {
	var year = date.getFullYear().toString(10).padStart(4,'0');
	var month = (date.getMonth() + 1).toString(10).padStart(2,'0');
	var day = date.getDate().toString(10).padStart(2,'0');
{'fraction_non_alphanumeric': 0.18626827717736807, 'fraction_numerical': 0.02161474888747616, 'mean_word_length': 3.996825396825397, 'pattern_counts': {'":': 2, '<': 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': '3221636', 'n_tokens_mistral': 599, 'n_tokens_neox': 579, 'n_words': 109}