<commit_before><head>
    <title>Pomodimer</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta name=viewport content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height">
    
    <script type="text/javascript" src="cordova.js"></script>
    
    <script src="js/phonon.min.js"></script>
    <link rel="stylesheet" href="css/phonon.min.css">
    
    <script src="js/progressbar.min.js"></script>
    
    <script src="js/touch.js"></script>
    
    <script src="js/knockout-3.3.0.min.js"></script>
    
    <link rel="stylesheet" href="css/fix.css">
</head>
<body id="body">
    
    
    
    <!--<taskList data-page="true">
        <header class="header-bar">
            <div class="pull-left">
                <h1 class="title">Pomodimer</h1>
            </div>
            <a class="btn pull-right icon icon-settings" data-popover-id="pop-settings"></a>
        </header>
        <div class="content">
            
            <ul class="list" id="task-list" data-bind="foreach: tasks">
                <li class="padded-list">
                    <a>
                        <span class="" data-bind="text: name"></span>
                        <span class="pull-right" data-bind="text: tomatos"></span>
                    </a>
                </li>
            </ul>
            <ul class="list">
                <li class="padded-list" id="add-task">
                    <a>
                        <span class="icon icon-add pull-left"></span>
                        <span>Добавить новую задачу</span>
                    </a>
                </li>
            </ul>
            
        </div>
    </taskList>-->
    
    
    
    
    
    
    
    <timer data-page="true">
        <link rel="stylesheet" href="css/timer.css">
        
        <header class="header-bar">
            <div class="pull-left">
                <h1 class="title">Pomodimer</h1>
            </div>
            <a class="btn pull-right icon icon-settings" data-popover-id="pop-settings"></a>
        </header>
        
        <nav class="tabs header-tabs">
            <div class="tab-items">
                <a class="tab-item">Список дел</a>
                <a class="tab-item">Таймер</a>
                <!--<a class="tab-item"><i class="icon icon-settings"></i></a>-->
            </div>
            <div class="tab-indicator"></div>
        </nav>
        
        <div class="content" data-tab-contents="true" data-disable-swipe="false">
            
            <div class="popover" id="pop-settings" data-status="closed">
                <ul class="list">
                    <li><a class="padded-list js-stop-timer">Остановить таймер</a></li>
                </ul>
            </div>
            
            
            
            
            <div class="tab-content" id="tab-tasklist">
                <ul class="list" id="task-list" data-bind="foreach: tasks">
                    <li class="padded-list">
                        <a>
                            <span class="" data-bind="text: name"></span>
                            <span class="pull-right" data-bind="text: tomatos"></span>
                        </a>
                    </li>
                </ul>
                <ul class="list">
                    <li class="padded-list" id="add-task">
                        <a>
                            <span class="icon icon-add pull-left"></span>
                            <span>Добавить новую задачу</span>
                        </a>
                    </li>
                </ul>
            </div>
            
            
            
            
            <div class="tab-content" id="tab-timer">
                <h3 id="current-task-name" class="text-center" data-bind="text: currentTask"></h3>
                
                <div id="timer"></div>
                
                <!--<div>Icons made by <a href="http://www.freepik.com" title="Freepik">Freepik</a> from <a href="http://www.flaticon.com" title="Flaticon">www.flaticon.com</a>             is licensed by <a href="http://creativecommons.org/licenses/by/3.0/" title="Creative Commons BY 3.0">CC BY 3.0</a></div>-->
            </div>
        </div>
        
        
        
        <script>
            //phonon.notif('Я готов!', 3000, false);
            
            
            
            element = document.getElementById('timer');

            fullTime = 60 * 15;
            currentTime = fullTime;
            seconds = new ProgressBar.Circle(element, {
                duration: 1000,
                strokeWidth: 5,
                color: "rgba(255, 245, 238, 1)",
                trailColor: "rgba(255, 245, 238, 0.3)",
                text: {
                    value: '00:00',
                },
                step: function(state, bar) {
                    if ( currentTime <= 0 ) {
                        bar.setText( '00:00' );
                    } else {
                        //bar.setText( pad( Math.floor((fullTime - 1 - 1/currentTime)/60), 2 ) + ':' + pad( fullTime - (fullTime - currentTime)%60, 2 ) );
                        bar.setText( pad(Math.floor(currentTime / 60), 2) + ':' + pad(currentTime % 60, 2) );
                    }
                }
            });
            
            phonon.notif('Для запуска таймера нажмите на него.', 5000, false);
            
            //var timerElem = document.querySelector('#timer');
            //timerElem.on('tap', function() {
            //    timerElem.off('tap');
            //    window.plugins.insomnia.keepAwake();    // не гасить экран
            //    window.timerInterval = setInterval(function() {
            //        if ( currentTime === 0 ) {
            //            //currentTime = 0;
            //            clearInterval( window.timerInterval );
            //            //seconds.setText( '00:00' );
            //        } else {
            //            currentTime = currentTime - 1;
            //        }
            //        seconds.animate(1 - (currentTime / fullTime));
            //    }, 1000);
            //});<commit_msg>add task panel<commit_after><head>
    <title>Pomodimer</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta name=viewport content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height">
    
    <script type="text/javascript" src="cordova.js"></script>
    
    <script src="js/phonon.min.js"></script>
    <link rel="stylesheet" href="css/phonon.min.css">
    
    <script src="js/progressbar.min.js"></script>
    
    <script src="js/touch.js"></script>
    
    <script src="js/knockout-3.3.0.min.js"></script>
    
    <link rel="stylesheet" href="css/fix.css">
</head>
<body id="body">
    
    
    
    <!--<taskList data-page="true">
        <header class="header-bar">
            <div class="pull-left">
                <h1 class="title">Pomodimer</h1>
            </div>
            <a class="btn pull-right icon icon-settings" data-popover-id="pop-settings"></a>
        </header>
        <div class="content">
            
            <ul class="list" id="task-list" data-bind="foreach: tasks">
                <li class="padded-list">
                    <a>
                        <span class="" data-bind="text: name"></span>
                        <span class="pull-right" data-bind="text: tomatos"></span>
                    </a>
                </li>
            </ul>
            <ul class="list">
                <li class="padded-list" id="add-task">
                    <a>
                        <span class="icon icon-add pull-left"></span>
                        <span>Добавить новую задачу</span>
                    </a>
                </li>
            </ul>
            
        </div>
    </taskList>-->
    
    
    
    
    
    
    
    <timer data-page="true">
        <link rel="stylesheet" href="css/timer.css">
        
        <header class="header-bar">
            <div class="pull-left">
                <h1 class="title">Pomodimer</h1>
            </div>
            <a class="btn pull-right icon icon-settings" data-popover-id="pop-settings"></a>
        </header>
        
        <nav class="tabs header-tabs">
            <div class="tab-items">
                <a class="tab-item">Список дел</a>
                <a class="tab-item">Таймер</a>
                <!--<a class="tab-item"><i class="icon icon-settings"></i></a>-->
            </div>
            <div class="tab-indicator"></div>
        </nav>
        
        <div class="content" data-tab-contents="true" data-disable-swipe="false">
            
            <div class="popover" id="pop-settings" data-status="closed">
                <ul class="list">
                    <li><a class="padded-list js-stop-timer">Остановить таймер</a></li>
                </ul>
            </div>
            
            
            
            
            <div class="tab-content" id="tab-tasklist">
                <ul class="list" id="task-list" data-bind="foreach: tasks">
                    <li class="padded-list">
                        <a>
                            <span class="" data-bind="text: name"></span>
                            <span class="pull-right" data-bind="text: tomatos"></span>
                        </a>
                    </li>
                </ul>
                <ul class="list">
                    <li class="padded-list" id="add-task">
                        <a data-panel-id="add-task-panel">
                            <span class="icon icon-add pull-left"></span>
                            <span>Добавить новую задачу</span>
                        </a>
                    </li>
                </ul>
                
                <div id="add-task-panel" class="panel">
                    <header class="header-bar">
                        <!--<a class="btn icon icon-close pull-right" href="#" data-panel-close="true"></a>-->
                        <h1 class="title pull-left">Добавление задачи</h1>
                    </header>
            
                    <div class="content">
                        <p class="padded-full">
                            <input type="text" placeholder="Название задачи">
                        </p>
                    </div>
                </div>
            </div>
            
            
            
            
            <div class="tab-content" id="tab-timer">
                <h3 id="current-task-name" class="text-center" data-bind="text: currentTask"></h3>
                
                <div id="timer"></div>
                
                <!--<div>Icons made by <a href="http://www.freepik.com" title="Freepik">Freepik</a> from <a href="http://www.flaticon.com" title="Flaticon">www.flaticon.com</a>             is licensed by <a href="http://creativecommons.org/licenses/by/3.0/" title="Creative Commons BY 3.0">CC BY 3.0</a></div>-->
            </div>
        </div>
        
        
        
        <script>
            //phonon.notif('Я готов!', 3000, false);
            
            
            
            element = document.getElementById('timer');

            fullTime = 60 * 15;
            currentTime = fullTime;
            seconds = new ProgressBar.Circle(element, {
                duration: 1000,
                strokeWidth: 5,
                color: "rgba(255, 245, 238, 1)",
                trailColor: "rgba(255, 245, 238, 0.3)",
                text: {
                    value: '00:00',
                },
                step: function(state, bar) {
                    if ( currentTime <= 0 ) {
                        bar.setText( '00:00' );
                    } else {
                        //bar.setText( pad( Math.floor((fullTime - 1 - 1/currentTime)/60), 2 ) + ':' + pad( fullTime - (fullTime - currentTime)%60, 2 ) );
                        bar.setText( pad(Math.floor(currentTime / 60), 2) + ':' + pad(currentTime % 60, 2) );
                    }
                }
            });
            
            //phonon.notif('Для запуска таймера нажмите на него.', 5000, false);
            
            //var timerElem = document.querySelector('#timer');
            //timerElem.on('tap', function() {
            //    timerElem.off('tap');
            //    window.plugins.insomnia.keepAwake();    // не гасить экран
            //    window.timerInterval = setInterval(function() {
            //        if ( currentTime === 0 ) {
            //            //currentTime = 0;
            //            clearInterval( window.timerInterval );
            //            //seconds.setText( '00:00' );
            //        } else {
            //            currentTime = currentTime - 1;
            //        }
            //        seconds.animate(1 - (currentTime / fullTime));
            //    }, 1000);
            //});
{'fraction_non_alphanumeric': 0.15549039277722046, 'fraction_numerical': 0.014352959333281888, 'mean_word_length': 1.1895590471363406, 'pattern_counts': {'":': 0, '<': 269, '<?xml version=': 0, '>': 267, 'https://': 0, 'lorem ipsum': 0, 'www.': 6, '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': '5119110', 'n_tokens_mistral': 3868, 'n_tokens_neox': 3617, 'n_words': 651}