<commit_before>
importScripts("/app/bower_components/videogular-questions/questions-worker.js");

loadAnnotations({
	"first-question": {
		time: 4,
		questions: [
			{
				id: "first-question",
				type: "single",
				question: "What is the moon made of?",
				options: [
					{
						name: "cheese"
					},
					{
						name: "cheeese"
					},
					{
						name: "cheeeeeese"
					}
				]
			},
			{
				id: "check-question",
				type: "single",
				question: "Answer incorrect, do you want to review the video",
				options: [
					{
						name: "Yes",
						action: function(video) {
							video.setTime(0);
						}
					},
					{
						name: "No"
					}
				],
				condition: function(questions, result) {
					// show if the answer to the previous question is not "cheese"
					return result !== "cheese";
				}
			}
		]
	}
});<commit_msg>Move the action to the outer question object<commit_after>
importScripts("/app/bower_components/videogular-questions/questions-worker.js");

loadAnnotations({
	"first-question": {
		time: 4,
		questions: [
			{
				id: "first-question",
				type: "single",
				question: "What is the moon made of?",
				options: [
					{
						name: "cheese"
					},
					{
						name: "cheeese"
					},
					{
						name: "cheeeeeese"
					}
				]
			},
			{
				id: "check-question",
				type: "single",
				question: "Answer incorrect, do you want to review the video",
				options: [
					{
						name: "Yes"
					},
					{
						name: "No"
					}
				],
				action: function(result, video) {
					if (result === "Yes") {
						video.setTime(0);
					}
				},
				condition: function(questions, result) {
					// show if the answer to the previous question is not "cheese"
					return result !== "cheese";
				}
			}
		]
	}
});
{'fraction_non_alphanumeric': 0.14772727272727273, 'fraction_numerical': 0.0022727272727272726, 'mean_word_length': 2.0051194539249146, 'pattern_counts': {'":': 2, '<': 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': '4311531', 'n_tokens_mistral': 884, 'n_tokens_neox': 592, 'n_words': 139}