<commit_before><!doctype html>
<html lang="en" ng-app="playerApp">
<head>
<meta charset="utf-8">
<title>Muzicodes Player</title>
<link rel="stylesheet" href="/vendor/bootstrap/dist/css/bootstrap.css">
<link rel="stylesheet" href="/css/player.css">
<link rel="stylesheet" href="/css/viz.css">
<link rel="stylesheet" href="/css/softkeyboard.css">
<link rel="stylesheet" href="/css/context.css">
<script src="/vendor/angular/angular.js"></script>
<script src="/vendor/angular-route/angular-route.js"></script>
<script src="/vendor/angular-resource/angular-resource.js"></script>
<script src="/vendor/angular-animate/angular-animate.js"></script>
<script src="/vendor/angular-bootstrap/ui-bootstrap-tpls.js"></script>
<script src="/js/socket.js"></script>
<script src="/js/logging.js"></script>
<script src="/js/audio.js"></script>
<script src="/js/softkeyboard.js"></script>
<script src="/js/player.js"></script>
<script src="/js/viz.js"></script>
<script src="/js/stream.js"></script>
<script src="/js/codeui.js"></script>
<script src="/js/codeuiparser.js"></script>
<script src="/js/noteprocessor.js"></script>
<!-- <script src="/js/filters.js"></script> -->
<script src="/js/midi.js"></script>
<script src="/js/osc.js"></script>
<script src="/js/context.js"></script>
<script src="/vendor/socket.io-1.2.0.js"></script>
</head>
<body ng-controller='PlayerCtrl'>

	<div id='header' class="row">
		<div class="col-md-4" uib-collapse="!recording && !listening">
			<inputmeter width="100" ng-if="!recordingStopped"></inputmeter><span id="recordingstatus" class="recordingstatus">{{recordingStatus}}</span><button id="stoprecording" class="recording" ng-click="stopRecording()" ng-disabled="recordingStopped" ng-class="{disabled: recordingStopped}">Stop</button><button class="recording" id="reload" ng-click="reload()">Reload</button>
			<mus-context context="context"></mus-context>
		</div>
		<div class="col-md-8">
			<softkeyboard on-note="onNote(note)"></softkeyboard>
			<span>{{ state=='audioinput' ? 'Running with Audio' : ( state=='midiinput' ? 'Running with Midi' : ( state=='loading' ? 'Loading...' : (state=='loaded' ? 'Initialising...' : (state=='error' ? 'Sorry, something went wrong' : 'Unknown state ('+state+')' )))) }}</span>
			<span>; Experience {{ experienceFile }}; Room "{{ room }}"; Channel "{{ channel }}"</span>
		</div>
	</div>
	<div class="row">
		<div class="col-md-12">
			<note-roll id='note-roll' notes="notes" time="time" groups="groups" period="maxTimeWindow-2" height="200" context="context" onselect="selectNotes(notes)"></note-roll>
		</div>
	</div>
	<div class="row">
		<mus-partcodes class="col-md-4" markers="markers" last-group="lastGroup" experience-state="experienceState" code-matchers="codeMatchers"></mus-partcodes>
		<div class="col-md-4"  id="state">
			<p>State (variables):</p>
			<ul><li ng-repeat="(name,value) in experienceState">{{name}}={{value}}</ul>
		</div>
		<url-view class="col-md-4 output" action-url="actionUrl"></url-view>
	</div>
</body>
</html><commit_msg>fix to show reload and context on player when midi enabled<commit_after><!doctype html>
<html lang="en" ng-app="playerApp">
<head>
<meta charset="utf-8">
<title>Muzicodes Player</title>
<link rel="stylesheet" href="/vendor/bootstrap/dist/css/bootstrap.css">
<link rel="stylesheet" href="/css/player.css">
<link rel="stylesheet" href="/css/viz.css">
<link rel="stylesheet" href="/css/softkeyboard.css">
<link rel="stylesheet" href="/css/context.css">
<script src="/vendor/angular/angular.js"></script>
<script src="/vendor/angular-route/angular-route.js"></script>
<script src="/vendor/angular-resource/angular-resource.js"></script>
<script src="/vendor/angular-animate/angular-animate.js"></script>
<script src="/vendor/angular-bootstrap/ui-bootstrap-tpls.js"></script>
<script src="/js/socket.js"></script>
<script src="/js/logging.js"></script>
<script src="/js/audio.js"></script>
<script src="/js/softkeyboard.js"></script>
<script src="/js/player.js"></script>
<script src="/js/viz.js"></script>
<script src="/js/stream.js"></script>
<script src="/js/codeui.js"></script>
<script src="/js/codeuiparser.js"></script>
<script src="/js/noteprocessor.js"></script>
<!-- <script src="/js/filters.js"></script> -->
<script src="/js/midi.js"></script>
<script src="/js/osc.js"></script>
<script src="/js/context.js"></script>
<script src="/vendor/socket.io-1.2.0.js"></script>
</head>
<body ng-controller='PlayerCtrl'>

	<div id='header' class="row">
		<div class="col-md-4" uib-collapse="!recording && !listening">
			<inputmeter width="100" ng-if="!recordingStopped"></inputmeter>
			<span id="recordingstatus" class="recordingstatus">{{recordingStatus}}</span>
			<button id="stoprecording" class="recording" ng-click="stopRecording()" ng-disabled="recordingStopped" ng-class="{disabled: recordingStopped}">Stop</button>
		</div>
		<div class="col-md-4">
			<mus-context context="context"></mus-context>
		</div>
		<div class="col-md-8">
			<button class="recording" id="reload" ng-click="reload()">Reload</button>
			<softkeyboard on-note="onNote(note)"></softkeyboard>
			<span>{{ state=='audioinput' ? 'Running with Audio' : ( state=='midiinput' ? 'Running with Midi' : ( state=='loading' ? 'Loading...' : (state=='loaded' ? 'Initialising...' : (state=='error' ? 'Sorry, something went wrong' : 'Unknown state ('+state+')' )))) }}</span>
			<span>; Experience {{ experienceFile }}; Room "{{ room }}"; Channel "{{ channel }}"</span>
		</div>
	</div>
	<div class="row">
		<div class="col-md-12">
			<note-roll id='note-roll' notes="notes" time="time" groups="groups" period="maxTimeWindow-2" height="200" context="context" onselect="selectNotes(notes)"></note-roll>
		</div>
	</div>
	<div class="row">
		<mus-partcodes class="col-md-4" markers="markers" last-group="lastGroup" experience-state="experienceState" code-matchers="codeMatchers"></mus-partcodes>
		<div class="col-md-4"  id="state">
			<p>State (variables):</p>
			<ul><li ng-repeat="(name,value) in experienceState">{{name}}={{value}}</ul>
		</div>
		<url-view class="col-md-4 output" action-url="actionUrl"></url-view>
	</div>
</body>
</html>
{'fraction_non_alphanumeric': 0.23763669006038846, 'fraction_numerical': 0.006038844458952179, 'mean_word_length': 5.908680947012401, 'pattern_counts': {'":': 0, '<': 199, '<?xml version=': 0, '>': 199, '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': '7525721', 'n_tokens_mistral': 2178, 'n_tokens_neox': 2062, 'n_words': 351}