<commit_before>(function() {
	
	// if (!data.status.feature.streamer) return response.error(403);
	
	// if (program.tuner && program.tuner.isScrambling) return response.error(409);
	
	// if (!fs.existsSync(program.recorded)) return response.error(410);
	
	switch (request.type) {
		// HTTP Live Streaming (Experimental)
		case 'txt'://for debug
		case 'm3u8':
			response.head(200);
			
			// var current  = (program.end - program.start) / 1000;
			var current = 0;
			
			var d = {
				t    : request.query.t      || '5',//duration(seconds)
				s    : request.query.s      || '1024x576',//size(WxH)
				'c:v': request.query['c:v'] || 'libx264',//vcodec
				'c:a': request.query['c:a'] || 'libfdk_aac',//acodec
				'b:v': request.query['b:v'] || '1M',//bitrate
				'b:a': request.query['b:a'] || '96k'//ab
			};
			
			d.t = parseInt(d.t, 10);
			
			response.write('#EXTM3U\n');
			response.write('#EXT-X-TARGETDURATION:' + d.t + '\n');
			response.write('#EXT-X-MEDIA-SEQUENCE:0\n');
			
			var target = request.query.prefix || '';
			target += 'watch.m2ts?nore=1&t=' + d.t + '&c:v=' + d['c:v'] + '&c:a=' + d['c:a'];
			target += '&b:v=' + d['b:v'] + '&s=' + d.s + '&b:a=' + d['b:a'];<commit_msg>リファクタリング<commit_after>(function() {
	
	if (!data.status.feature.streamer) return response.error(403);
	
	if (program.tuner && program.tuner.isScrambling) return response.error(409);
	
	switch (request.type) {
		// HTTP Live Streaming (Experimental)
		case 'txt'://for debug
		case 'm3u8':
			response.head(200);
			
			// var current  = (program.end - program.start) / 1000;
			var current = 0;
			
			var d = {
				t    : request.query.t      || '5',//duration(seconds)
				s    : request.query.s      || '1024x576',//size(WxH)
				'c:v': request.query['c:v'] || 'libx264',//vcodec
				'c:a': request.query['c:a'] || 'libfdk_aac',//acodec
				'b:v': request.query['b:v'] || '1M',//bitrate
				'b:a': request.query['b:a'] || '96k'//ab
			};
			
			d.t = parseInt(d.t, 10);
			
			response.write('#EXTM3U\n');
			response.write('#EXT-X-TARGETDURATION:' + d.t + '\n');
			response.write('#EXT-X-MEDIA-SEQUENCE:0\n');
			
			var target = request.query.prefix || '';
			target += 'watch.m2ts?nore=1&t=' + d.t + '&c:v=' + d['c:v'] + '&c:a=' + d['c:a'];
			target += '&b:v=' + d['b:v'] + '&s=' + d.s + '&b:a=' + d['b:a'];
{'fraction_non_alphanumeric': 0.245136186770428, 'fraction_numerical': 0.0324254215304799, 'mean_word_length': 2.948805460750853, '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': '2537252', 'n_tokens_mistral': 1126, 'n_tokens_neox': 944, 'n_words': 153}