<commit_before>$(function() {
	$(window).on('action:ajaxify.end', function(e, data) {
		if (
			data.url === 'register'
			&& window.plugin
			&& plugin['spam-be-gone']
			&& plugin['spam-be-gone'].recaptchaArgs
		) {
			var args = plugin['spam-be-gone'].recaptchaArgs;
			Recaptcha.create(
				args.publicKey,
				args.targetId,
				{
					theme: args.options.theme,
					lang: args.options.lang,
					tabIndex: args.options.tabindex,
					callback: function() {
						var error = utils.param('error');<commit_msg>safe handling of the captcha target<commit_after>$(function() {
	$(window).on('action:ajaxify.end', function(e, data) {
		if (
			data.url === 'register'
			&& window.plugin
			&& plugin['spam-be-gone']
			&& plugin['spam-be-gone'].recaptchaArgs
			&& $('#' + plugin['spam-be-gone'].recaptchaArgs.targetId).length
		) {
			var args = plugin['spam-be-gone'].recaptchaArgs;
			Recaptcha.create(
				args.publicKey,
				args.targetId,
				{
					theme: args.options.theme,
					lang: args.options.lang,
					tabIndex: args.options.tabindex,
					callback: function() {
						var error = utils.param('error');
{'fraction_non_alphanumeric': 0.1767857142857143, 'fraction_numerical': 0.0, 'mean_word_length': 3.2786259541984735, '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': '6051955', 'n_tokens_mistral': 484, 'n_tokens_neox': 388, 'n_words': 59}