<commit_before>/*
 * HTTP Mock
 */

define(['mocks/results/elements', 'mocks/results/metrics/counters',
	'mocks/results/rpc', 'mocks/http-router'],
	function (Elements, Counters, RPC, HttpRouter) {

	Em.debug('Loading HTTP Mock');

	/*
	 * Joins the arguments as a path string.
	 * e.g. HTTP.get('metrics', 1, 2, 3) => GET /metrics/1/2/3 HTTP/1.1
	 */
	function getPath(args) {
		var i = args.length, path = [];
		while (i--) {
			if (typeof args[i] === 'string') {
				path.push(args[i]);
			}
		}<commit_msg> +review CR-312 ENG-2581 #time 5m  Loop fix for path<commit_after>/*
 * HTTP Mock
 */

define(['mocks/results/elements', 'mocks/results/metrics/counters',
	'mocks/results/rpc', 'mocks/http-router'],
	function (Elements, Counters, RPC, HttpRouter) {

	Em.debug('Loading HTTP Mock');

	/*
	 * Joins the arguments as a path string.
	 * e.g. HTTP.get('metrics', 1, 2, 3) => GET /metrics/1/2/3 HTTP/1.1
	 */
	function getPath(args) {
		var i = 0, path = [];
		for (var i = 0; i < args.length; i ++) {
			if (typeof args[i] === 'string') {
				path.push(args[i]);
			}
		}
{'fraction_non_alphanumeric': 0.1970260223048327, 'fraction_numerical': 0.024163568773234202, 'mean_word_length': 3.190661478599222, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 5, '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': '4698015', 'n_tokens_mistral': 449, 'n_tokens_neox': 401, 'n_words': 100}