<commit_before>describe("Basics", function() {
	beforeEach(function() {
		var div = $("<div id='cmd-resume'></div>");
		$("body").append(div);
		jasmine.Ajax.install();
	});

	afterEach(function() {
		$("#cmd-resume").remove();
		jasmine.Ajax.uninstall();
	});

	describe("Name Command", function() {
		describe("Featuring name", function() {
			beforeEach(function() {
				$("#cmd-resume").CMDResume("justName.json");
			});

			it("Includes the name", function() {
				var mostRecentRequest = jasmine.Ajax.requests.mostRecent();

				mostRecentRequest.respondWith({
					status: 200,
					responseText: JSON.stringify(loadJSON("justName"))
				});

				enterCommand("name");

				var output = getSimpleOutput();
				expect(output.summary).toEqual("Name");
				expect(output.value).toEqual("<NAME>");
			});

			it("Ignores -top", function() {
				var mostRecentRequest = jasmine.Ajax.requests.mostRecent();

				mostRecentRequest.respondWith({
					status: 200,
					responseText: JSON.stringify(loadJSON("justName"))
				});

				enterCommand("name -top");

				var output = getSimpleOutput();
				expect(output.summary).toEqual("Name");
				expect(output.value).toEqual("<NAME>");
			});
		});

		describe("Without name", function() {
			beforeEach(function() {
				$("#cmd-resume").CMDResume("noName.json");
			});

			it("Returns command error", function() {
				var mostRecentRequest = jasmine.Ajax.requests.mostRecent();

				mostRecentRequest.respondWith({
					status: 200,
					responseText: JSON.stringify(loadJSON("empty"))
				});

				enterCommand("name");

				var output = failedCommandOutput();

				expect(output.command).toEqual("name");
				expect(output.message).toEqual(" is an unknown command.");
			});
		});

		describe("Empty name", function() {
			beforeEach(function() {
				$("#cmd-resume").CMDResume("noName.json");
				jasmine.Ajax.requests.mostRecent().respondWith({
					status: 200,
					responseText: JSON.stringify(loadJSON("emptyStrings"))
				});
			});

			it("Returns command error", function() {

				enterCommand("name");

				var output = failedCommandOutput();

				expect(output.command).toEqual("name");
				expect(output.message).toEqual(" is an unknown command.");
			});
		});
	});

	describe("Help", function() {
		describe("Full command set", function() {
			beforeEach(function() {
				$("#cmd-resume").CMDResume("noName.json");
				var mostRecentRequest = jasmine.Ajax.requests.mostRecent();

				mostRecentRequest.respondWith({
					status: 200,
					responseText: JSON.stringify(loadJSON("details-without-github"))
				});
			});
			it("List of commands", function() {
				enterCommand("help");
				var output = helpOutput();
				expect(output.command).toEqual("Available Commands:");
				expect(output.values.length).toEqual(20);
			});
		});

		describe("Reduced command set", function() {
			beforeEach(function() {<commit_msg>:umbrella: Add in test case for new command<commit_after>describe("Basics", function() {
	beforeEach(function() {
		var div = $("<div id='cmd-resume'></div>");
		$("body").append(div);
		jasmine.Ajax.install();
	});

	afterEach(function() {
		$("#cmd-resume").remove();
		jasmine.Ajax.uninstall();
	});

	describe("Name Command", function() {
		describe("Featuring name", function() {
			beforeEach(function() {
				$("#cmd-resume").CMDResume("justName.json");
			});

			it("Includes the name", function() {
				var mostRecentRequest = jasmine.Ajax.requests.mostRecent();

				mostRecentRequest.respondWith({
					status: 200,
					responseText: JSON.stringify(loadJSON("justName"))
				});

				enterCommand("name");

				var output = getSimpleOutput();
				expect(output.summary).toEqual("Name");
				expect(output.value).toEqual("<NAME>");
			});

			it("Ignores -top", function() {
				var mostRecentRequest = jasmine.Ajax.requests.mostRecent();

				mostRecentRequest.respondWith({
					status: 200,
					responseText: JSON.stringify(loadJSON("justName"))
				});

				enterCommand("name -top");

				var output = getSimpleOutput();
				expect(output.summary).toEqual("Name");
				expect(output.value).toEqual("<NAME>");
			});
		});

		describe("Without name", function() {
			beforeEach(function() {
				$("#cmd-resume").CMDResume("noName.json");
			});

			it("Returns command error", function() {
				var mostRecentRequest = jasmine.Ajax.requests.mostRecent();

				mostRecentRequest.respondWith({
					status: 200,
					responseText: JSON.stringify(loadJSON("empty"))
				});

				enterCommand("name");

				var output = failedCommandOutput();

				expect(output.command).toEqual("name");
				expect(output.message).toEqual(" is an unknown command.");
			});
		});

		describe("Empty name", function() {
			beforeEach(function() {
				$("#cmd-resume").CMDResume("noName.json");
				jasmine.Ajax.requests.mostRecent().respondWith({
					status: 200,
					responseText: JSON.stringify(loadJSON("emptyStrings"))
				});
			});

			it("Returns command error", function() {

				enterCommand("name");

				var output = failedCommandOutput();

				expect(output.command).toEqual("name");
				expect(output.message).toEqual(" is an unknown command.");
			});
		});
	});

	describe("Resume", function() {
		beforeEach(function() {
			$("#cmd-resume").CMDResume("details.json");
			var mostRecentRequest = jasmine.Ajax.requests.mostRecent();

			mostRecentRequest.respondWith({
				status: 200,
				responseText: JSON.stringify(loadJSON("details-without-volunteering"))
			});
		});

		it("Contains sections", function() {
			enterCommand("resume");
			var output = $(".terminal-output > div").text();
			expect(output).toContain("Name");
			expect(output).toContain("Label");
			expect(output).toContain("About");
			expect(output).toContain("Employment");
			expect(output).not.toContain("Volunteering");
			expect(output).toContain("Education");
			expect(output).toContain("Awards");
			expect(output).toContain("Publications");
			expect(output).toContain("Skills");
			expect(output).toContain("Languages");
			expect(output).toContain("Interests");
			expect(output).toContain("References");
		});
	});

	describe("Help", function() {
		describe("Full command set", function() {
			beforeEach(function() {
				$("#cmd-resume").CMDResume("noName.json");
				var mostRecentRequest = jasmine.Ajax.requests.mostRecent();

				mostRecentRequest.respondWith({
					status: 200,
					responseText: JSON.stringify(loadJSON("details-without-github"))
				});
			});
			it("List of commands", function() {
				enterCommand("help");
				var output = helpOutput();
				expect(output.command).toEqual("Available Commands:");
				expect(output.values.length).toEqual(20);
			});
		});

		describe("Reduced command set", function() {
			beforeEach(function() {
{'fraction_non_alphanumeric': 0.1844213649851632, 'fraction_numerical': 0.005489614243323442, 'mean_word_length': 4.14187643020595, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 12, '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': '3175701', 'n_tokens_mistral': 2576, 'n_tokens_neox': 2002, 'n_words': 317}