<commit_before>window.Wind = (function (undefined) {
    'use strict';

    function _calculateRotate (p_touch_x, p_touch_y, p_target_x, p_target_y) {
        var _PI = Math.atan2(p_touch_x - p_target_x, p_touch_y - p_target_y);
        return (2 - (_PI/Math.PI + 1))*180;
    }
    
    return function (opt) {
        var options = {
            rotate: function () {},
            tap: function () {},
            panel: document.querySelector('.time-panel'),
            plate: document.querySelector('.upside'),
            main: document.querySelector('.main'),
            alarmPointer: document.querySelector('.time-alarm')
        };

        if (typeof opt === 'function') {
            options.tap = opt;
        } else {
            for (var key in opt) {
                options[key] = opt[key];
            }
        }

        var touch = false;

        options.main.addEventListener('touchmove', rotate, false);
        options.main.addEventListener('touchend', touchUp, false);
        options.main.addEventListener('touchcancel', touchUp, false);
        options.main.addEventListener('click', touchUp, false);

        // to rotate the alarm pointer on move touch.
        function rotate (p_event) {
            p_event.preventDefault();

            touch = true;<commit_msg>binding click event to panel instead of main<commit_after>window.Wind = (function (undefined) {
    'use strict';

    function _calculateRotate (p_touch_x, p_touch_y, p_target_x, p_target_y) {
        var _PI = Math.atan2(p_touch_x - p_target_x, p_touch_y - p_target_y);
        return (2 - (_PI/Math.PI + 1))*180;
    }
    
    return function (opt) {
        var options = {
            rotate: function () {},
            tap: function () {},
            panel: document.querySelector('.time-panel'),
            plate: document.querySelector('.upside'),
            main: document.querySelector('.main'),
            alarmPointer: document.querySelector('.time-alarm')
        };

        if (typeof opt === 'function') {
            options.tap = opt;
        } else {
            for (var key in opt) {
                options[key] = opt[key];
            }
        }

        var touch = false;

        options.main.addEventListener('touchmove', rotate, false);
        options.main.addEventListener('touchend', touchUp, false);
        options.main.addEventListener('touchcancel', touchUp, false);
        options.panel.addEventListener('click', touchUp, false);

        // to rotate the alarm pointer on move touch.
        function rotate (p_event) {
            p_event.preventDefault();

            touch = true;
{'fraction_non_alphanumeric': 0.12414318354912414, 'fraction_numerical': 0.00456968773800457, 'mean_word_length': 2.0475638051044083, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1301143', 'n_tokens_mistral': 744, 'n_tokens_neox': 720, 'n_words': 168}