<commit_before>@(stream: Stream)

@WIN_5M() = {5*60*1000}
@WIN_30M() = {30*60*1000}
@WIN_1H() = {60*60*1000}
@WIN_1D() = {24*60*60*1000}
@WIN_1W() = {7*24*60*60*1000}
@WIN_1M() = {30*24*60*60*1000}
@WIN_1Y() = {365*24*60*60*1000}
@if(stream != null) {
<div id="streamblock@{stream.id}" >
@if(stream.hasData()) {
  
	<span id="streamconfig@{stream.id}" class="streamconfig form-inline">
	    <input type="radio" name="streamwindow@{stream.id}" value="@WIN_5M" id="streamwindow@{stream.id}-1"><label for="streamwindow@{stream.id}-1">5min</label>
	    <input type="radio" name="streamwindow@{stream.id}" value="@WIN_30M" id="streamwindow@{stream.id}-2"><label for="streamwindow@{stream.id}-2">30min</label>
	    <input type="radio" name="streamwindow@{stream.id}" value="@WIN_1H" id="streamwindow@{stream.id}-3"><label for="streamwindow@{stream.id}-3">1h</label>
	    <input type="radio" name="streamwindow@{stream.id}" value="@WIN_1D" id="streamwindow@{stream.id}-4"><label for="streamwindow@{stream.id}-4">1d</label>
	    <input type="radio" name="streamwindow@{stream.id}" value="@WIN_1W" id="streamwindow@{stream.id}-5"><label for="streamwindow@{stream.id}-5">1w</label>
	    <input type="radio" name="streamwindow@{stream.id}" value="@WIN_1M" id="streamwindow@{stream.id}-6"><label for="streamwindow@{stream.id}-6">1m</label>
	    <input type="radio" name="streamwindow@{stream.id}" value="@WIN_1Y" id="streamwindow@{<EMAIL>}-7"><label for="streamwindow@{stream.id}-7">1y</label>
	</span>
	<div id="streamtitle@{stream.id}" class="streamtitle">
		<a name="@{stream.file.getPath()}"></a>
		Stream 
		<a herf="" data-toggle="tooltip" title="id : @{stream.id}">@if(stream.file != null) {@stream.file.getPath()} else {id: @{stream.id}}</a>
		@if(stream.source != null) {
			(<a href="/sources/@{stream.source.id}">@{stream.source.label}</a>)
		}
		@vstream.streamToolbar(stream, stream.canWrite(Secured.getCurrentUser()), false, stream.publicAccess)
	</div>
<div>
	Key:<i class="">@stream.getKey()</i>
</div>
	<div class="plot-container">
		<div class="row-fluid">
      <div class="span9">
				<div id="streamplot@{stream.id}" stream_id="@{stream.id}" class="streamplot"></div>
			</div>
			<div class="span3">
				<div id="overview@{stream.id}" stream_id="@{stream.id}" class="streamplot_overview"></span>
			</div>
		</div>
	</div>
	<script type="text/javascript">



		// one global JavaScript object per stream
		var streamp<EMAIL>@{<EMAIL>} = new Object();
		streamplot@{stream.id}.stream_id = '@{stream.id}';
		streamplot@{stream.id}.id = 'streamplot@{stream.id}';
		streamplot@{<EMAIL>}.uri = '@{routes.CtrlSource.getDataById(stream.id)}';
		streamplot@{stream.id}.path = '@{stream.file.getPath()}'; // for parsing the returned JSON
		streamplot@{stream.id}.window = @WIN_1D; // in ms
		streamplot@{<EMAIL>}.since = parseInt(((new Date()).getTime() - streamplot@{stream.id}.window)); // in s for database
		streamplot@{<EMAIL>}.points = [];
		streamplot@{stream.id}.timeout = null;
		//stre<EMAIL>@{<EMAIL>}.overview = new Object();
		//streamplot@{stream.id}.overview.plotID = @{stream.id};
		$(function () {
			// init Flot plot
			stre<EMAIL>}.plot = $.plot($("#streamplot@{stream.id}"), [ streamplot@{<EMAIL>}.points ], StreamPlots.options);
			streamplot@{stream.id}.overview = $.plot($("#overview@{stream.id}"), [ streamplot@{stream.id}.points ], StreamPlots.overview_options);
			
			// setup config form
			$("input:radio[name='streamwindow@{<EMAIL>}']").filter('[value="@WIN_1D"]').attr('checked', true);
			$("input:radio[name='streamwindow@{stream.id}']").change( function(){
				StreamPlots.setWindow(streamplot@{stream.id}, eval($("input:radio[name='streamwindow@{stream.id}']:checked").val()) ); });
			StreamPlots.setup(streamplot@{stream.id});
			// start polling
			StreamPlots.poll(streamplot@{stream.id});
		});
	</script>
	} else {
		<div id="streamtitle@{stream.id}" class="streamtitle">
			Data stream 
			<a herf="">@if(stream.file != null) {@stream.file.getPath()} else {id: @{stream.id}}</a>
			@vstream.streamToolbar(stream, stream.canWrite(Secured.getCurrentUser()), false, stream.publicAccess)
		</div>
		&nbsp;No data
	}
	</div>
}
<commit_msg>stream key displayed<commit_after>@(stream: Stream)

@WIN_5M() = {5*60*1000}
@WIN_30M() = {30*60*1000}
@WIN_1H() = {60*60*1000}
@WIN_1D() = {24*60*60*1000}
@WIN_1W() = {7*24*60*60*1000}
@WIN_1M() = {30*24*60*60*1000}
@WIN_1Y() = {365*24*60*60*1000}
@if(stream != null) {
<div id="streamblock@{stream.id}" >
@if(stream.hasData()) {
  
	<span id="streamconfig@{stream.id}" class="streamconfig form-inline">
	    <input type="radio" name="streamwindow@{stream.id}" value="@WIN_5M" id="streamwindow@{stream.id}-1"><label for="streamwindow@{stream.id}-1">5min</label>
	    <input type="radio" name="streamwindow@{<EMAIL>}" value="@WIN_30M" id="streamwindow@{stream.id}-2"><label for="streamwindow@{stream.id}-2">30min</label>
	    <input type="radio" name="streamwindow@{stream.id}" value="@WIN_1H" id="streamwindow@{stream.id}-3"><label for="streamwindow@{stream.id}-3">1h</label>
	    <input type="radio" name="streamwindow@{stream.id}" value="@WIN_1D" id="streamwindow@{stream.id}-4"><label for="streamwindow@{stream.id}-4">1d</label>
	    <input type="radio" name="streamwindow@{stream.id}" value="@WIN_1W" id="streamwindow@{stream.id}-5"><label for="streamwindow@{stream.id}-5">1w</label>
	    <input type="radio" name="streamwindow@{stream.id}" value="@WIN_1M" id="streamwindow@{stream.id}-6"><label for="streamwindow@{stream.id}-6">1m</label>
	    <input type="radio" name="streamwindow@{stream.id}" value="@WIN_1Y" id="streamwindow@{stream.id}-7"><label for="streamwindow@{stream.id}-7">1y</label>
	</span>
	<div id="streamtitle@{stream.id}" class="streamtitle">
		<a name="@{stream.file.getPath()}"></a>
		Stream 
		<a herf="" data-toggle="tooltip" title="id : @{stream.id}">@if(stream.file != null) {@stream.file.getPath()} else {id: @{stream.id}}</a>
		@if(stream.source != null) {
			(<a href="/sources/@{stream.source.id}">@{stream.source.label}</a>)
		}
		@vstream.streamToolbar(stream, stream.canWrite(Secured.getCurrentUser()), false, stream.publicAccess)
	</div>
<div style="background-color='#333'; border 1px solid black;">
	Key: <i>@stream.getKey()</i>
</div>
	<div class="plot-container">
		<div class="row-fluid">
      <div class="span9">
				<div id="streamplot@{stream.id}" stream_id="@{stream.id}" class="streamplot"></div>
			</div>
			<div class="span3">
				<div id="overview@{stream.id}" stream_id="@{stream.id}" class="streamplot_overview"></span>
			</div>
		</div>
	</div>
	<script type="text/javascript">



		// one global JavaScript object per stream
		var streamp<EMAIL>@{<EMAIL>} = new Object();
		stre<EMAIL>}.stream_id = '@{stream.id}';
		streamp<EMAIL>@{<EMAIL>}.id = 'stre<EMAIL>}';
		streamplot@{<EMAIL>}.uri = '@{routes.CtrlSource.getDataById(stream.id)}';
		stre<EMAIL>@{<EMAIL>}.path = '@{stream.file.getPath()}'; // for parsing the returned JSON
		stre<EMAIL>@{<EMAIL>}.window = @WIN_1D; // in ms
		stre<EMAIL>@{<EMAIL>}.since = parseInt(((new Date()).getTime() - streamplot@{stream.id}.window)); // in s for database
		stre<EMAIL>}.points = [];
		stre<EMAIL>@{<EMAIL>}.timeout = null;
		//stre<EMAIL>}.overview = new Object();
		//stre<EMAIL>@{stream.id}.overview.plotID = @{stream.id};
		$(function () {
			// init Flot plot
			<EMAIL>}.plot = $.plot($("#streamplot@{<EMAIL>}"), [ stre<EMAIL>}.points ], StreamPlots.options);
			stre<EMAIL>@{<EMAIL>}.overview = $.plot($("#overview@{stream.id}"), [ streamplot@{<EMAIL>}.points ], StreamPlots.overview_options);
			
			// setup config form
			$("input:radio[name='streamwindow@{stream.id}']").filter('[value="@WIN_1D"]').attr('checked', true);
			$("input:radio[name='stream<EMAIL>@{<EMAIL>}']").change( function(){
				StreamPlots.setWindow(streamplot@{<EMAIL>}, eval($("input:radio[name='streamwindow@{stream.id}']:checked").val()) ); });
			StreamPlots.setup(streamplot@{stream.id});
			// start polling
			StreamPlots.poll(streamplot@{stream.id});
		});
	</script>
	} else {
		<div id="streamtitle@{stream.id}" class="streamtitle">
			Data stream 
			<a herf="">@if(stream.file != null) {@stream.file.getPath()} else {id: @{stream.id}}</a>
			@vstream.streamToolbar(stream, stream.canWrite(Secured.getCurrentUser()), false, stream.publicAccess)
		</div>
		<div>
		Key: <i>@stream.getKey()</i>
	</div>	
		&nbsp;No data
	}
	</div>
}

{'fraction_non_alphanumeric': 0.2395907684986914, 'fraction_numerical': 0.02688555793480847, 'mean_word_length': 5.857259380097879, 'pattern_counts': {'":': 0, '<': 156, '<?xml version=': 0, '>': 156, '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': '1785143', 'n_tokens_mistral': 3310, 'n_tokens_neox': 3038, 'n_words': 429}