<commit_before><!doctype html>
<html>
  <head>
    <title>TiM</title>
    <meta charset="utf-8" />
    <link href='http://fonts.googleapis.com/css?family=Rajdhani:400,700' rel='stylesheet' type='text/css'>
    <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css" rel="stylesheet">
    <link href="style.css" rel="stylesheet" />
    <script type="text/javascript" src="http://code.jquery.com/jquery-2.1.1.min.js"></script>
    <script type="text/javascript" src="script.js"></script>
    <script type="text/javascript" src="jquery.timer.js"></script>
    <script type="text/javascript" src="timer.js"></script>
  </head>
  <body>
    <h1>Time is Money</h1>
    <div id="timer">
        <h2>
            <i class="fa fa-clock-o fa-fw fa-lg"></i>
            <span id="clock">00:00</span>
        </h2>
    </div>
    <br class="clearfix" />
    <button id="play">
        <i class="fa fa-play fa-fw fa-lg"></i>
        Play / Pause
    </button>
    <!--
    <button id="reset" onclick='Example1.Timer.resetStopwatch();'>
        <i class="fa fa-trash-o fa-fw fa-lg"></i>
        Clear
    </button>
    -->
    <button id="reset">
        <i class="fa fa-trash-o fa-fw fa-lg"></i>
        Clear
    </button>

    <div id="go_rest_popup" class="popup">
        <div class="wrapper">
            <h3>Everybody need a rest.</h3>
            <p>To keep your eyes health - please stay away from monitors & TVs</p>
            <button id="go_rest">Go rest!</button>
        </div>
    </div>

    <div id="go_work_popup" class="popup">
        <div class="wrapper">
            <h3>Everybody need to work.</h3>
            <p>To have a lot of money & practice new skills - keep working hard!</p>
            <button id="go_work">Go back to work!</button>
        </div>
    </div>

    <script>
        var timeTillRest = 40000;
        var timeRest = 10000;
        var playingState = false;
        $('#play').on('click',function(){
            Work.Timer.toggle();
            TillRestCountdown.Timer.toggle();
            if (! playingState) {
                $('#play').html('<i class="fa fa-pause fa-fw fa-lg"></i>Pause');
                playingState = true;
            }
            else {
                $('#play').html('<i class="fa fa-play fa-fw fa-lg"></i>Play');
                playingState = false;
            }
        });

        $('#reset').on('click',function(){
            wipeLocalStorage();
            location.reload();
        });

        $('#end_rest').on('click',function(){
            TillRestCountdown.resetCountdown();
        });

        $('#go_rest').on('click',function(){
           $('#go_rest_popup').fadeOut();
           RestCountdown.Timer.play();
        });

        $('#go_work').on('click',function(){<commit_msg>Block play/pause button while resting<commit_after><!doctype html>
<html>
  <head>
    <title>TiM</title>
    <meta charset="utf-8" />
    <link href='http://fonts.googleapis.com/css?family=Rajdhani:400,700' rel='stylesheet' type='text/css'>
    <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css" rel="stylesheet">
    <link href="style.css" rel="stylesheet" />
    <script type="text/javascript" src="http://code.jquery.com/jquery-2.1.1.min.js"></script>
    <script type="text/javascript" src="script.js"></script>
    <script type="text/javascript" src="jquery.timer.js"></script>
    <script type="text/javascript" src="timer.js"></script>
  </head>
  <body>
    <h1>Time is Money</h1>
    <div id="timer">
        <h2>
            <i class="fa fa-clock-o fa-fw fa-lg"></i>
            <span id="clock">00:00</span>
        </h2>
    </div>
    <br class="clearfix" />
    <button id="play">
        <i class="fa fa-play fa-fw fa-lg"></i>
        Play / Pause
    </button>
    <!--
    <button id="reset" onclick='Example1.Timer.resetStopwatch();'>
        <i class="fa fa-trash-o fa-fw fa-lg"></i>
        Clear
    </button>
    -->
    <button id="reset">
        <i class="fa fa-trash-o fa-fw fa-lg"></i>
        Clear
    </button>

    <div id="go_rest_popup" class="popup">
        <div class="wrapper">
            <h3>Everybody need a rest.</h3>
            <p>To keep your eyes health - please stay away from monitors & TVs</p>
            <button id="go_rest">Go rest!</button>
        </div>
    </div>

    <div id="go_work_popup" class="popup">
        <div class="wrapper">
            <h3>Everybody need to work.</h3>
            <p>To have a lot of money & practice new skills - keep working hard!</p>
            <button id="go_work">Go back to work!</button>
        </div>
    </div>

    <script>
        var timeTillRest = 40000;
        var timeRest = 10000;
        var playingState = false;
        var isWorking = true;
        $('#play').on('click',function(){
            if (isWorking) {
                Work.Timer.toggle();
                TillRestCountdown.Timer.toggle();
                if (! playingState) {
                    $('#play').html('<i class="fa fa-pause fa-fw fa-lg"></i>Pause');
                    playingState = true;
                }
                else {
                    $('#play').html('<i class="fa fa-play fa-fw fa-lg"></i>Play');
                    playingState = false;
                }
            }
        });

        $('#reset').on('click',function(){
            isWorking = true;
            wipeLocalStorage();
            location.reload();
        });

        $('#go_rest').on('click',function(){
           isWorking = false;
           $('#go_rest_popup').fadeOut();
           RestCountdown.Timer.play();
        });

        $('#go_work').on('click',function(){
           isWorking = true;
{'fraction_non_alphanumeric': 0.18472344161545215, 'fraction_numerical': 0.012642669007901668, 'mean_word_length': 1.9713093375065207, 'pattern_counts': {'":': 0, '<': 139, '<?xml version=': 0, '>': 139, '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': '7602950', 'n_tokens_mistral': 1865, 'n_tokens_neox': 1795, 'n_words': 350}