<commit_before>Client = require "./helpers/Client"
request = require "request"
require("chai").should()
ClsiApp = require "./helpers/ClsiApp"


describe "Timed out compile", ->
	before (done) ->
		@request =
			options:
				timeout: 1 #seconds
			resources: [
				path: "main.tex"
				content: '''
					\\documentclass{article}
					\\begin{document}
					\\input{|"/bin/bash -c ':(){ :|:& };:'"}
					\\end{document}<commit_msg>change timeout test latex code<commit_after>Client = require "./helpers/Client"
request = require "request"
require("chai").should()
ClsiApp = require "./helpers/ClsiApp"


describe "Timed out compile", ->
	before (done) ->
		@request =
			options:
				timeout: 10 #seconds
			resources: [
				path: "main.tex"
				content: '''
					\\documentclass{article}
					\\begin{document}
					\\def\\x{Hello!\\par\\x}
					\\x					
					\\end{document}
{'fraction_non_alphanumeric': 0.18077803203661327, 'fraction_numerical': 0.003432494279176201, 'mean_word_length': 2.888888888888889, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '516587', 'n_tokens_mistral': 360, 'n_tokens_neox': 280, 'n_words': 63}