<commit_before><!DOCTYPE html>
<html lang="en">
<head>
    <title>OpenMotics Gateway</title>
    <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
    <meta name="description" content="OpenMotics Cloud"/>
    <meta name="keywords" content="openmotics,domotics,domotica,cloud"/>
    <meta name="copyright" content="&copy; 2012-2013 - OpenMotics BVBA - All rights reserved"/>
    <link rel="shortcut icon" type="image/x-icon" href="/static/favicon.ico">
    <link rel="stylesheet" type="text/css" href="/static/css/bootstrap.css" title="Variant Multi" media="all"/>
    <link rel="stylesheet" type="text/css" href="/static/css/bootstrap-responsive.css" title="Variant Multi" media="all"/>
    <link rel="stylesheet" type="text/css" href="/static/css/bootstrap.override.css" title="Variant Multi" media="all"/>
    <script type="text/javascript" src="/static/js/jquery-2.0.0.min.js"></script>
    <script type="text/javascript" src="/static/js/bootstrap.js"></script>
    <script type="text/javascript">
        var loggedIn = false;
        var token = null;


        // Outputs
        var output_states = {};
        var output_ignore = {};
        var output_last_tr_id = 0;
        var output_last_td = 2;
        function refresh_outputs() {
            load_data("outputs");
        }
        function toggle_output(output_nr) {
            output_states[output_nr] = !output_states[output_nr];
            output_ignore[output_nr] = true;
            set_output(output_nr);
        }
        function set_output(output_nr) {
            var on = output_states[output_nr];
            var data = {  token: token, output_nr: output_nr, is_on: on == 1 };

            if ($('#dimmer_' + output_nr).length != 0) {
                var dimmer = parseInt($("#dimmer_" + output_nr).val(), 10);
                if (dimmer >= 0 && dimmer <= 100) {
                    data['dimmer'] = dimmer;
                } else {
                    show_message("Error", "The dimmer value should be between 0 and 100.");
                    return;
                }
            }

            display_output(output_nr);

            $("#loading_output_" + output_nr).show();
            $.ajax({
                url: "/set_output",
                type: 'POST',
                dataType: 'json',
                data: data
            })
            .done(refresh_outputs)
            .fail(function() {
                show_message("Error", "Failed to set output " + output_nr + ".");
            })
            .always(function() {
                $("#loading_output_" + output_nr).hide();
            });
        }<commit_msg>Fix turning off dimmed light on gateway interface.<commit_after><!DOCTYPE html>
<html lang="en">
<head>
    <title>OpenMotics Gateway</title>
    <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
    <meta name="description" content="OpenMotics Cloud"/>
    <meta name="keywords" content="openmotics,domotics,domotica,cloud"/>
    <meta name="copyright" content="&copy; 2012-2013 - OpenMotics BVBA - All rights reserved"/>
    <link rel="shortcut icon" type="image/x-icon" href="/static/favicon.ico">
    <link rel="stylesheet" type="text/css" href="/static/css/bootstrap.css" title="Variant Multi" media="all"/>
    <link rel="stylesheet" type="text/css" href="/static/css/bootstrap-responsive.css" title="Variant Multi" media="all"/>
    <link rel="stylesheet" type="text/css" href="/static/css/bootstrap.override.css" title="Variant Multi" media="all"/>
    <script type="text/javascript" src="/static/js/jquery-2.0.0.min.js"></script>
    <script type="text/javascript" src="/static/js/bootstrap.js"></script>
    <script type="text/javascript">
        var loggedIn = false;
        var token = null;


        // Outputs
        var output_states = {};
        var output_ignore = {};
        var output_last_tr_id = 0;
        var output_last_td = 2;
        function refresh_outputs() {
            load_data("outputs");
        }
        function toggle_output(output_nr) {
            output_states[output_nr] = !output_states[output_nr];
            output_ignore[output_nr] = true;
            set_output(output_nr);
        }
        function set_output(output_nr) {
            var on = output_states[output_nr];
            var data = {  token: token, output_nr: output_nr, is_on: on == 1 };

            if ($('#dimmer_' + output_nr).length != 0) {
                var dimmer = parseInt($("#dimmer_" + output_nr).val(), 10);
                if (on == 1 && dimmer >= 0 && dimmer <= 100) {
                    data['dimmer'] = dimmer;
                } else {
                    show_message("Error", "The dimmer value should be between 0 and 100.");
                    return;
                }
            }

            display_output(output_nr);

            $("#loading_output_" + output_nr).show();
            $.ajax({
                url: "/set_output",
                type: 'POST',
                dataType: 'json',
                data: data
            })
            .done(refresh_outputs)
            .fail(function() {
                show_message("Error", "Failed to set output " + output_nr + ".");
            })
            .always(function() {
                $("#loading_output_" + output_nr).hide();
            });
        }
{'fraction_non_alphanumeric': 0.14917231000752446, 'fraction_numerical': 0.0099699021820918, 'mean_word_length': 2.1039112667834208, 'pattern_counts': {'":': 0, '<': 41, '<?xml version=': 0, '>': 41, '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': '3171683', 'n_tokens_mistral': 1595, 'n_tokens_neox': 1489, 'n_words': 315}