<commit_before>

// var Browser = require("zombie");
var $ = require("jquery");
var _ = require("underscore");


// callback takes an array of objects with properties: date, time, location, trackingEvent.
function track(callback, trackingNumber) {
	page1(_.partial(page2, _.partial(page3, callback)), trackingNumber);
}

function page1(callback, trackingNumber) {
	$.get(
		"http://www.parcelforce.com/track-trace",
		function(data) {
			var properties = {};
			$(data).find("form#track-trace-request-form input[type=hidden]").each(function() {
				properties[$(this).attr("name")] = $(this).attr("value");
			});
			properties["track.x"] = 22;
			properties["track.y"] = 1;
			properties["track_id"] = trackingNumber;

			callback(properties);
		}
	);<commit_msg>now exports the track function<commit_after>

// var Browser = require("zombie");
var $ = require("jquery");
var _ = require("underscore");

module.exports = track;

// callback takes an array of objects with properties: date, time, location, trackingEvent.
function track(callback, trackingNumber) {
	page1(_.partial(page2, _.partial(page3, callback)), trackingNumber);
}

function page1(callback, trackingNumber) {
	$.get(
		"http://www.parcelforce.com/track-trace",
		function(data) {
			var properties = {};
			$(data).find("form#track-trace-request-form input[type=hidden]").each(function() {
				properties[$(this).attr("name")] = $(this).attr("value");
			});
			properties["track.x"] = 22;
			properties["track.y"] = 1;
			properties["track_id"] = trackingNumber;

			callback(properties);
		}
	);
{'fraction_non_alphanumeric': 0.18164435946462715, 'fraction_numerical': 0.008922880815806247, 'mean_word_length': 4.9245283018867925, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '5383682', 'n_tokens_mistral': 540, 'n_tokens_neox': 484, 'n_words': 98}