<commit_before><html>
    <!-- Materialze style -->
    <head>
        <link rel="stylesheet" type="text/css" href="../../css/adapter.css"/>
        <link rel="stylesheet" type="text/css" href="../../lib/css/materialize.css">

        <!-- <link rel="stylesheet" type="text/css" href="http://materializecss.com/css/ghpages-materialize.css"/>  -->


        <script type="text/javascript" src="../../lib/js/jquery-3.2.1.min.js"></script>
        <script type="text/javascript" src="../../socket.io/socket.io.js"></script>

        <script type="text/javascript" src="../../js/translate.js"></script>
        <script type="text/javascript" src="../../lib/js/materialize.js"></script>
        <script type="text/javascript" src="../../js/adapter-settings.js"></script>
        <script type="text/javascript" src="words.js"></script>


        <!-- you have to define 2 functions in the global scope: -->
        <script type="text/javascript">

            function load(settings, onChange) {


                var stationTabHTML =  '';

                for (var st=0; st <10; st++) {
                    stationTabHTML += '        <div class="row stationclass"> <!-- Station ' + (st + 1) + ' -->';
                    stationTabHTML += '            <div class="col s12 m1 l1">';
                    stationTabHTML += '                <span class="translate">' + systemDictionary["Nummer"][systemLang] + '</span>&nbsp;' + (st + 1);
                    stationTabHTML += '            </div>';
                    stationTabHTML += '            <div class="input-field col s12 m5 l5">';
                    stationTabHTML += '                <input id="station' + st + '" name="name_station'+ st + '" pattern="[0-9|a-z]{8}+\-[0-9|a-z]{4}+\-[0-9|a-z]{4}+\-[0-9|a-z]{4}+\-[0-9|a-z]{12}$" placeholder="ab3d5678-ab34-ab34-ab34-ab3456789012" type="text" class="value validate" size="36" maxlength="36" autocomplete="off" />';
                    stationTabHTML += '                <label class="translate active" for="station' + st + '">' + systemDictionary["ID Tankstelle"][systemLang] + '</label>';
                    stationTabHTML += '                <span class="helper-text translate" data-error="wrong" data-success="good"><!--' + systemDictionary["StationID falsch oder leer"][systemLang] + '--></span>';
                    stationTabHTML += '                <!-- <span class="helper-text translate">' + systemDictionary["Woher Schluessel"][systemLang] + '</span> -->';
                    stationTabHTML += '            </div>';
                    stationTabHTML += '            <div class="input-field col s12 m5 l5">';
                    stationTabHTML += '                <input id="stationname' + st + '" name="name_station' + st + '" placeholder="Shell City" type="text" class="value" size="36" maxlength="36" autocomplete="off" />';
                    stationTabHTML += '                <label class="translate active" for="station' + st + '">' + systemDictionary["Name Tankstelle"][systemLang] + '</label>';
                    stationTabHTML += '            </div>';
                    stationTabHTML += '        </div><!-- Ende Station ' + (st + 1) + ' -->';
                }

                $('#insertstations').append(stationTabHTML);


                $('#apikey').val(settings.apikey).change(onChange);

                $('#station0').val(settings.station0).change(onChange);
                $('#stationname0').val(settings.stationname0).change(onChange);

                $('#station1').val(settings.station1).change(onChange);
                $('#stationname1').val(settings.stationname1).change(onChange);

                $('#station2').val(settings.station2).change(onChange);
                $('#stationname2').val(settings.stationname2).change(onChange);

                $('#station3').val(settings.station3).change(onChange);
                $('#stationname3').val(settings.stationname3).change(onChange);

                $('#station4').val(settings.station4).change(onChange);
                $('#stationname4').val(settings.stationname4).change(onChange);

                $('#station5').val(settings.station5).change(onChange);
                $('#stationname5').val(settings.stationname5).change(onChange);

                $('#station6').val(settings.station6).change(onChange);
                $('#stationname6').val(settings.stationname6).change(onChange);

                $('#station7').val(settings.station7).change(onChange);
                $('#stationname7').val(settings.stationname7).change(onChange);

                $('#station8').val(settings.station8).change(onChange);
                $('#stationname8').val(settings.stationname8).change(onChange);

                $('#station9').val(settings.station9).change(onChange);
                $('#stationname9').val(settings.stationname9).change(onChange);

                $('#sync_time').val(settings.synctime).change(onChange);

                if (settings.resetValues === undefined) settings.resetValues = true;
                $('#resetValues').prop('checked', settings.resetValues).change(onChange);

                if (settings.noLogs === undefined) settings.noLogs = true;
                $('#noLogs').prop('checked', settings.noLogs).change(onChange);


                M.updateTextFields();

                onChange(false);
            }


            function save(callback) {
                var patt = /[0-9|a-z]{8}+\-[0-9|a-z]{4}+\-[0-9|a-z]{4}+\-[0-9|a-z]{4}+\-[0-9|a-z]{12}/g;
                var apikey_string = $('#apikey').val();
                var regexp_result = apikey_string.match(patt);
                if (regexp_result === null) {
	                  confirmMessage(_('No_Password'), _('Warning!'), null, [_('Ignore warning'), _('Set API-Key')], function (result) {
	                      if (result === 1) {
	                          return;
	                      } else {
	                          save2(callback);
	                      }
	                  });
	              } else {
	                  save2(callback);
	              }
	          }


            function save2(callback) {

                var array = [];
                array [0] = [$('#station0').val().trim(), $('#stationname0').val().trim()];
                array [1] = [$('#station1').val().trim(), $('#stationname1').val().trim()];
                array [2] = [$('#station2').val().trim(), $('#stationname2').val().trim()];
                array [3] = [$('#station3').val().trim(), $('#stationname3').val().trim()];
                array [4] = [$('#station4').val().trim(), $('#stationname4').val().trim()];<commit_msg>2.0.0 regexp pattern update<commit_after><html>
    <!-- Materialze style -->
    <head>
        <link rel="stylesheet" type="text/css" href="../../css/adapter.css"/>
        <link rel="stylesheet" type="text/css" href="../../lib/css/materialize.css">

        <!-- <link rel="stylesheet" type="text/css" href="http://materializecss.com/css/ghpages-materialize.css"/>  -->


        <script type="text/javascript" src="../../lib/js/jquery-3.2.1.min.js"></script>
        <script type="text/javascript" src="../../socket.io/socket.io.js"></script>

        <script type="text/javascript" src="../../js/translate.js"></script>
        <script type="text/javascript" src="../../lib/js/materialize.js"></script>
        <script type="text/javascript" src="../../js/adapter-settings.js"></script>
        <script type="text/javascript" src="words.js"></script>


        <!-- you have to define 2 functions in the global scope: -->
        <script type="text/javascript">

            function load(settings, onChange) {


                var stationTabHTML =  '';

                for (var st=0; st <10; st++) {
                    stationTabHTML += '        <div class="row stationclass"> <!-- Station ' + (st + 1) + ' -->';
                    stationTabHTML += '            <div class="col s12 m1 l1">';
                    stationTabHTML += '                <span class="translate">' + systemDictionary["Nummer"][systemLang] + '</span>&nbsp;' + (st + 1);
                    stationTabHTML += '            </div>';
                    stationTabHTML += '            <div class="input-field col s12 m5 l5">';
                    stationTabHTML += '                <input id="station' + st + '" name="name_station'+ st + '" pattern="[0-9|a-z]{8}+\-[0-9|a-z]{4}+\-[0-9|a-z]{4}+\-[0-9|a-z]{4}+\-[0-9|a-z]{12}$" placeholder="ab3d5678-ab34-ab34-ab34-ab3456789012" type="text" class="value validate" size="36" maxlength="36" autocomplete="off" />';
                    stationTabHTML += '                <label class="translate active" for="station' + st + '">' + systemDictionary["ID Tankstelle"][systemLang] + '</label>';
                    stationTabHTML += '                <span class="helper-text translate" data-error="wrong" data-success="good"><!--' + systemDictionary["StationID falsch oder leer"][systemLang] + '--></span>';
                    stationTabHTML += '                <!-- <span class="helper-text translate">' + systemDictionary["Woher Schluessel"][systemLang] + '</span> -->';
                    stationTabHTML += '            </div>';
                    stationTabHTML += '            <div class="input-field col s12 m5 l5">';
                    stationTabHTML += '                <input id="stationname' + st + '" name="name_station' + st + '" placeholder="Shell City" type="text" class="value" size="36" maxlength="36" autocomplete="off" />';
                    stationTabHTML += '                <label class="translate active" for="station' + st + '">' + systemDictionary["Name Tankstelle"][systemLang] + '</label>';
                    stationTabHTML += '            </div>';
                    stationTabHTML += '        </div><!-- Ende Station ' + (st + 1) + ' -->';
                }

                $('#insertstations').append(stationTabHTML);


                $('#apikey').val(settings.apikey).change(onChange);

                $('#station0').val(settings.station0).change(onChange);
                $('#stationname0').val(settings.stationname0).change(onChange);

                $('#station1').val(settings.station1).change(onChange);
                $('#stationname1').val(settings.stationname1).change(onChange);

                $('#station2').val(settings.station2).change(onChange);
                $('#stationname2').val(settings.stationname2).change(onChange);

                $('#station3').val(settings.station3).change(onChange);
                $('#stationname3').val(settings.stationname3).change(onChange);

                $('#station4').val(settings.station4).change(onChange);
                $('#stationname4').val(settings.stationname4).change(onChange);

                $('#station5').val(settings.station5).change(onChange);
                $('#stationname5').val(settings.stationname5).change(onChange);

                $('#station6').val(settings.station6).change(onChange);
                $('#stationname6').val(settings.stationname6).change(onChange);

                $('#station7').val(settings.station7).change(onChange);
                $('#stationname7').val(settings.stationname7).change(onChange);

                $('#station8').val(settings.station8).change(onChange);
                $('#stationname8').val(settings.stationname8).change(onChange);

                $('#station9').val(settings.station9).change(onChange);
                $('#stationname9').val(settings.stationname9).change(onChange);

                $('#sync_time').val(settings.synctime).change(onChange);

                if (settings.resetValues === undefined) settings.resetValues = true;
                $('#resetValues').prop('checked', settings.resetValues).change(onChange);

                if (settings.noLogs === undefined) settings.noLogs = true;
                $('#noLogs').prop('checked', settings.noLogs).change(onChange);


                M.updateTextFields();

                onChange(false);
            }


            function save(callback) {
                var patt = /[0-9|a-z]{8}\-[0-9|a-z]{4}\-[0-9|a-z]{4}\-[0-9|a-z]{4}\-[0-9|a-z]{12}/g;
                var apikey_string = $('#apikey').val();
                var regexp_result = apikey_string.match(patt);
                if (regexp_result === null) {
	                  confirmMessage(_('No_Password'), _('Warning!'), null, [_('Ignore warning'), _('Set API-Key')], function (result) {
	                      if (result === 1) {
	                          return;
	                      } else {
	                          save2(callback);
	                      }
	                  });
	              } else {
	                  save2(callback);
	              }
	          }


            function save2(callback) {

                var array = [];
                array [0] = [$('#station0').val().trim(), $('#stationname0').val().trim()];
                array [1] = [$('#station1').val().trim(), $('#stationname1').val().trim()];
                array [2] = [$('#station2').val().trim(), $('#stationname2').val().trim()];
                array [3] = [$('#station3').val().trim(), $('#stationname3').val().trim()];
                array [4] = [$('#station4').val().trim(), $('#stationname4').val().trim()];
{'fraction_non_alphanumeric': 0.1961405095733454, 'fraction_numerical': 0.02163425297753656, 'mean_word_length': 1.992106450157871, 'pattern_counts': {'":': 0, '<': 95, '<?xml version=': 0, '>': 93, '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': '3260270', 'n_tokens_mistral': 3809, 'n_tokens_neox': 3554, 'n_words': 522}