<commit_before>(function () {
	// Create the connector object
	var myConnector = tableau.makeConnector();

	// Define the schema
	myConnector.getSchema = function (schemaCallback) {
		var cols = [{
				id : "mag",
				alias : "magnitude",
				dataType : "float"
			},
            {
				id : "title",
				alias : "title",
				dataType : "string"
			},
            {
				id : "url",
				alias : "url",
				dataType : "string"
			},
            {
				id : "lat",
				alias : "latitude",
				dataType : "float"
			},
            {
				id : "lon",
				alias : "longitude",
				dataType : "float"
			}
		];

		var tableInfo = {
			id : "earthquakeFeed",
			alias : "Earthquakes with magnitude greater than 4.5 in the last seven days",
			columns : cols
		};

		schemaCallback([tableInfo]);
	};

	// Download the data
	myConnector.getData = function (table, doneCallback) {
		var tableData = [],
		mag = 0,
		title = "",
		url = "",
		lat = "",
		lon = "";

		$.getJSON("http://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/4.5_week.geojson", function (resp) {
			var feat = resp.features;

			// Iterate over the JSON object
			for (var i = 0, len = feat.length; i < len; i++) {
				mag = feat[i].properties.mag;
				title = feat[i].properties.title;
				url = feat[i].properties.url;
				lon = feat[i].geometry.coordinates[0];
				lat = feat[i].geometry.coordinates[1];

				tableData.push({
					"mag" : mag,
					"title" : title,
					"url" : url,
					"lon" : lon,
					"lat" : lat
				});
			}

			table.appendRows(tableData);
			doneCallback();
		});
	};

	setupConnector = function () {
		tableau.connectionName = "USGS Earthquake Feed"; // This will be the data source name in Tableau
		tableau.submit(); // This sends the connector object to Tableau
	};

	tableau.registerConnector(myConnector);

	// Create event listeners for when the user submits the form
	$(document).ready(function () {
		$("#submitButton").click(function () {
			setupConnector();
		});
	});
})();
<commit_msg>Match indent style of other js files<commit_after>(function () {
	// Create the connector object
	var myConnector = tableau.makeConnector();

	// Define the schema
	myConnector.getSchema = function (schemaCallback) {
		var cols = [
			{ id : "mag", alias : "magnitude", dataType : "float" },
			{ id : "title", alias : "title", dataType : "string" },
			{ id : "url", alias : "url", dataType : "string" },
			{ id : "lat", alias : "latitude", dataType : "float" },
			{ id : "lon", alias : "longitude", dataType : "float" }
		];

		var tableInfo = {
			id : "earthquakeFeed",
			alias : "Earthquakes with magnitude greater than 4.5 in the last seven days",
			columns : cols
		};

		schemaCallback([tableInfo]);
	};

	// Download the data
	myConnector.getData = function (table, doneCallback) {
		var tableData = [],
		mag = 0,
		title = "",
		url = "",
		lat = "",
		lon = "";

		$.getJSON("http://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/4.5_week.geojson", function (resp) {
			var feat = resp.features;

			// Iterate over the JSON object
			for (var i = 0, len = feat.length; i < len; i++) {
				mag = feat[i].properties.mag;
				title = feat[i].properties.title;
				url = feat[i].properties.url;
				lon = feat[i].geometry.coordinates[0];
				lat = feat[i].geometry.coordinates[1];

				tableData.push({
					"mag" : mag,
					"title" : title,
					"url" : url,
					"lon" : lon,
					"lat" : lat
				});
			}

			table.appendRows(tableData);
			doneCallback();
		});
	};

	setupConnector = function () {
		tableau.connectionName = "USGS Earthquake Feed"; // This will be the data source name in Tableau
		tableau.submit(); // This sends the connector object to Tableau
	};

	tableau.registerConnector(myConnector);

	// Create event listeners for when the user submits the form
	$(document).ready(function () {
		$("#submitButton").click(function () {
			setupConnector();
		});
	});
})();

{'fraction_non_alphanumeric': 0.16119096509240247, 'fraction_numerical': 0.00513347022587269, 'mean_word_length': 2.7761627906976742, 'pattern_counts': {'":': 0, '<': 5, '<?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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4698373', 'n_tokens_mistral': 1535, 'n_tokens_neox': 1289, 'n_words': 326}