<commit_before>var strava = require('strava-v3');

var uploadSplitStuff = {
	/*
	 * Activity objects require parameters:
	 * name: 				string
	 * type: 				string, "ride" "run" "swim"
	 * start_date_local: 	ISO 8601 formatted date time
	 * elapsed_time: 		integer, seconds
	 * optional stuff...
	 */
	uploadSplitActivities : function (swim, bike, run) {
		//check objects for required parameters?
		strava.activities.create(swim, this.doneFunc);
		strava.activities.create(bike, this.doneFunc);
		strava.activities.create(run, this.doneFunc);
	}

	doneFunc : function(data) {
		console.log("successfully uploaded activity " + data.stuff);
	}
}

module.exports = uploadSplitStuff;<commit_msg>documented fully, who know's what the callback gets<commit_after>var strava = require('strava-v3');

var uploadSplitStuff = {
	/*
	 * Activity objects require parameters:
	 * name: 				string
	 * type: 				string, "ride" "run" "swim"
	 * start_date_local: 	ISO 8601 formatted date time
	 * elapsed_time: 		integer, seconds
	 * description:			string, OPTIONAL
	 * distance:  			float, meters, OPTIONAL
	 */
	uploadSplitActivities : function (swim, bike, run) {
		//check objects for required parameters?
		strava.activities.create(swim, this.doneFunc);
		strava.activities.create(bike, this.doneFunc);
		strava.activities.create(run, this.doneFunc);
	}

	doneFunc : function(data) {
		console.log("successfully uploaded activity " + data);
	}
}

module.exports = uploadSplitStuff;
{'fraction_non_alphanumeric': 0.11972789115646258, 'fraction_numerical': 0.006802721088435374, 'mean_word_length': 4.143356643356643, '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': '5414362', 'n_tokens_mistral': 530, 'n_tokens_neox': 484, 'n_words': 113}