<commit_before><html>
	<head>
		<script>
			// The value of the following variables will be
			// replaced if no error occurs.
			var credentialToken = "TOKEN";
			var credentialSecret = "SECRET";
			var allowedOrigins = "ALLOWED_ORIGIN";
			if (credentialToken !== "TOKEN") {
				try {
					window.opener.Package.oauth.OAuth._handleCredentialSecret(credentialToken, credentialSecret);
					window.close()
				} catch (e) {
					window.addEventListener("message", function (e) {
						var message;
						try {
							message = JSON.parse(e.data);
						} catch (err) {
							return;
						}
						if (
							message.credentialToken === credentialToken &&
							allowedOrigins.indexOf(e.origin) !== -1
						) {
							var response = JSON.stringify({
								credentialToken: credentialToken,
								credentialSecret: credentialSecret
							});
							e.source.postMessage(response, e.origin);
							window.close();
						}
					});
				}
			} else {
				try {
					window.opener.Package.oauth.OAuth._handleCredentialSecret;
					window.close()
				} catch (e) {
					window.addEventListener("message", function (e) {
						if (allowedOrigins.indexOf(e.origin) !== -1) {
							var response = JSON.stringify({
								error: "ERROR"
							});
							e.source.postMessage(response, e.origin);
							window.close();
						}
					});
				}<commit_msg>Add credential to URL for PhoneGap/Cordova support<commit_after><html>
	<head>
		<script>
			// The value of the following variables will be
			// replaced if no error occurs.
			var credentialToken = "TOKEN";
			var credentialSecret = "SECRET";
			var allowedOrigins = "ALLOWED_ORIGIN";
			
			window.location.href = document.URL 
					+ '&credentialSecret=' + credentialSecret 
					+ '&credentialToken='  + credentialToken;
			
			if (credentialToken !== "TOKEN") {
				try {
					window.opener.Package.oauth.OAuth._handleCredentialSecret(credentialToken, credentialSecret);
					window.close();
				} catch (e) {
					window.addEventListener("message", function (e) {
						var message;
						try {
							message = JSON.parse(e.data);
						} catch (err) {
							return;
						}
						if (
							message.credentialToken === credentialToken &&
							allowedOrigins.indexOf(e.origin) !== -1
						) {
							var response = JSON.stringify({
								credentialToken: credentialToken,
								credentialSecret: credentialSecret
							});
							e.source.postMessage(response, e.origin);
							window.close();
						}
					});
				}
			} else {
				try {
					window.opener.Package.oauth.OAuth._handleCredentialSecret;
					window.close();
				} catch (e) {
					window.addEventListener("message", function (e) {
						if (allowedOrigins.indexOf(e.origin) !== -1) {
							var response = JSON.stringify({
								error: "ERROR"
							});
							e.source.postMessage(response, e.origin);
							window.close();
						}
					});
				}
{'fraction_non_alphanumeric': 0.12932226832641772, 'fraction_numerical': 0.0013831258644536654, 'mean_word_length': 2.363953488372093, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '1249481', 'n_tokens_mistral': 1294, 'n_tokens_neox': 875, 'n_words': 172}