<commit_before><!DOCTYPE html>
<!--
    Licensed to the Apache Software Foundation (ASF) under one
    or more contributor license agreements.  See the NOTICE file
    distributed with this work for additional information
    regarding copyright ownership.  The ASF licenses this file
    to you under the Apache License, Version 2.0 (the
    "License"); you may not use this file except in compliance
    with the License.  You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing,
    software distributed under the License is distributed on an
    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
     KIND, either express or implied.  See the License for the
    specific language governing permissions and limitations
    under the License.
-->
<html>
    <head>


        <meta charset="utf-8" />
        <meta name="format-detection" content="telephone=no" />
        <meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height, target-densitydpi=device-dpi" />
        <link rel="stylesheet" type="text/css" href="css/index.css" />
       

        <title> Enter expense </title>
    </head>
    <body>
        <div class="app">
            <h1> <div class="project_name">expenses</div></h1>

             <input type='text' id='nameInput' placeholder="name"> <br>
             <input type='text'  placeholder="expense" id='expenseInput'><br>
             <input type='text'  placeholder="commodity" id='commodityInput'><br>
            <!-- Date <input type='text' id='dateInput'> <br> -->
  
             <input type="button" id="buttonSend" value="Enter"/> 

             <div id="messagesDiv" >

             </div>
        </div>

<script type='text/javascript' src='https://cdn.firebase.com/v0/firebase.js'></script>
<script type='text/javascript' src='js/jquery.min.js'></script>


 <script type="text/javascript" src="phonegap.js"></script>
        <script type="text/javascript">

              var PROJECT_NAME="picnic";
              var isOnline = false;

                document.addEventListener("deviceready", onDeviceReady, false);
                function onDeviceReady(){
                       document.addEventListener("offline", onOffline, false);
                       document.addEventListener("online", onOnline, false);

                }

                $(document).ready(function() {

                      $(".project_name").html(PROJECT_NAME);
                
                });

                function getDate()
                {
                        var today = new Date();
                        var dd = today.getDate();
                        var mm = today.getMonth()+1; //January is 0!

                       var yyyy = today.getFullYear();
                        if(dd<10){dd='0'+dd} if(mm<10){mm='0'+mm} today = dd+'/'+mm+'/'+yyyy;

                        return today;
                }  


                //  interact with firebase
                function onOnline(){
                  alert("online :-) in handler");
                  isOnline = true;<commit_msg>online-offline<commit_after><!DOCTYPE html>
<!--
    Licensed to the Apache Software Foundation (ASF) under one
    or more contributor license agreements.  See the NOTICE file
    distributed with this work for additional information
    regarding copyright ownership.  The ASF licenses this file
    to you under the Apache License, Version 2.0 (the
    "License"); you may not use this file except in compliance
    with the License.  You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing,
    software distributed under the License is distributed on an
    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
     KIND, either express or implied.  See the License for the
    specific language governing permissions and limitations
    under the License.
-->
<html>
    <head>


        <meta charset="utf-8" />
        <meta name="format-detection" content="telephone=no" />
        <meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height, target-densitydpi=device-dpi" />
        <link rel="stylesheet" type="text/css" href="css/index.css" />
       

        <title> Enter expense </title>
    </head>
    <body>
        <div class="app">
            <h1> <div class="project_name">expenses</div></h1>

             <input type='text' id='nameInput' placeholder="name"> <br>
             <input type='text'  placeholder="expense" id='expenseInput'><br>
             <input type='text'  placeholder="commodity" id='commodityInput'><br>
            <!-- Date <input type='text' id='dateInput'> <br> -->
  
             <input type="button" id="buttonSend" value="Enter"/> 

             <div id="messagesDiv" >

             </div>
        </div>

<script type='text/javascript' src='https://cdn.firebase.com/v0/firebase.js'></script>
<script type='text/javascript' src='js/jquery.min.js'></script>


 <script type="text/javascript" src="phonegap.js"></script>
        <script type="text/javascript">

              var PROJECT_NAME="picnic";
              var isOnline = false;

                 document.addEventListener("offline", onOffline, false);
                 document.addEventListener("online", onOnline, false);

                 /*
                document.addEventListener("deviceready", onDeviceReady, false);
                function onDeviceReady(){
                      

                }
                */

                
                $(document).ready(function() {

                      $(".project_name").html(PROJECT_NAME);
                
                });

                function getDate()
                {
                        var today = new Date();
                        var dd = today.getDate();
                        var mm = today.getMonth()+1; //January is 0!

                       var yyyy = today.getFullYear();
                        if(dd<10){dd='0'+dd} if(mm<10){mm='0'+mm} today = dd+'/'+mm+'/'+yyyy;

                        return today;
                }  


                //  interact with firebase
                function onOnline(){
                  alert("online :-) in handler");
                  isOnline = true;
{'fraction_non_alphanumeric': 0.12316941575458609, 'fraction_numerical': 0.005857869585324495, 'mean_word_length': 1.949090909090909, 'pattern_counts': {'":': 0, '<': 81, '<?xml version=': 0, '>': 77, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '3461415', 'n_tokens_mistral': 1765, 'n_tokens_neox': 1644, 'n_words': 467}