<commit_before>@extends('layouts.default')
@section('content')            

<div class="title">Simulate</div>
<form>
@foreach (['cant_sleep' => 'Cannot sleep', 'bad_night' => 'Bad night', 'pre_wake_up' => "Pre wake up", 'wake_up' => 'Wake up'] as $event => $label)
<p style="font-size:2em; font-weight: bold"><a href="{{ route('simulate.trigger', $event) }}">{{ $label }}</a> </p>
@endforeach

</form>

<script type="text/javascript" src="http://assets.codepen.io/assets/common/stopExecutionOnTimeout-f961f59a28ef4fd551736b43f94620b5.js">
     speechSynthesis.speak(SpeechSynthesisUtterance('Hello World'));
</script>


@endsection<commit_msg>Speech synth now works in chrome<commit_after>@extends('layouts.default')
@section('content')            

<div class="title">Simulate</div>
<form>
@foreach (['cant_sleep' => 'Cannot sleep', 'bad_night' => 'Bad night', 'pre_wake_up' => "Pre wake up", 'wake_up' => 'Wake up'] as $event => $label)
<p style="font-size:2em; font-weight: bold"><a href="{{ route('simulate.trigger', $event) }}">{{ $label }}</a> </p>
@endforeach

</form>


    <script>
  window.console = window.console || function(t) {};
</script>


<script type="text/javascript">
if ('speechSynthesis' in window) {
    var msg = new SpeechSynthesisUtterance();
    msg.text = "Wake up, please.";
    msg.volume = 1.0;
    window.speechSynthesis.speak(msg);
} 
</script>


@endsection
{'fraction_non_alphanumeric': 0.20416966211358734, 'fraction_numerical': 0.018691588785046728, 'mean_word_length': 5.13215859030837, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 35, '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': '5775549', 'n_tokens_mistral': 517, 'n_tokens_neox': 498, 'n_words': 105}