<commit_before>/*
* Copyright 2010-2012 Research In Motion Limited.
*
* Licensed 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.
*/

/**
 * @toc {User Interface} HTML5 Navigator
 * @namespace This Navigator API provides functionality to return the online status of the browser. 
*/
webkitNavigator = {

        /**
         * @function
         * @constructedBy window.navigator
         * @description Returns the Navigator object.
         * @PB10+
         * @BB10X
         * @RIPPLE
         * @example
         * function supportNavigator() {
         *   if(window.navigator) {
         *    alert("supported");
         *   } else {
         *    alert("unsupported");
         *   }
         * }
         */
        webkitNavigator : undefined
};

    /**
     * @description The property returns a boolean value to indicate the status online or offline
     * @readOnly
     * @type Boolean
     * @PB10+
     * @BB50+
     * @RIPPLE
     * @example
     * function supportNavigatorOnline() {
     *  if(window.navigator.onLine) {
     *    alert("onLine");
     *  } else {
     *    alert("offline");
     *  }
     * }
     */
    webkitNavigator.prototype.onLine = false;<commit_msg>add documentation for online and offline events<commit_after>/*
* Copyright 2010-2012 Research In Motion Limited.
*
* Licensed 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.
*/

/**
 * @toc {User Interface} HTML5 Navigator
 * @namespace This Navigator API provides functionality to return the online status of the browser. 
*/
navigator = {

        /**
         * @function
         * @constructedBy window.navigator
         * @description Returns the Navigator object.
         * @PB10+
         * @BB10X
         * @RIPPLE
         * @example
         * function supportNavigator() {
         *   if(window.navigator) {
         *    alert("supported");
         *   } else {
         *    alert("unsupported");
         *   }
         * }
         */
        navigator : undefined
};

    /**
     * @description The property returns a boolean value to indicate the status online or offline
     * @readOnly
     * @type Boolean
     * @PB10+
     * @BB50+
     * @RIPPLE
     * @example
     * function supportNavigatorOnline() {
     *  if(window.navigator.onLine) {
     *    alert("onLine");
     *  } else {
     *    alert("offline");
     *  }
     * }
     */
    navigator.prototype.onLine = false;


   /**
    * @noSignature
    * @event
    * @PB10+
    * @BB50+
    * @RIPPLE
    * @description The <b>online</b> event is triggered whenever browser switches to online
    * @callback {function} CallbackFunction The callback function that will be invoked on the online event
    * @param {Boolean} useCapture A boolean that indicates whether the user wishes to initiate capture
    * @example
    *
    * function onOnline() {}
    *   document.body.addEventListener("online", function() { alert("online")}, false);
    * }
    */
   navigator.prototype.online : function(){},


   /**
    * @noSignature
    * @event
    * @PB10+
    * @BB50+
    * @RIPPLE
    * @description The <b>offline</b> event is triggered whenever browser switches to offline
    * @callback {function} CallbackFunction The callback function that will be invoked on the offline event
    * @param {Boolean} useCapture A boolean that indicates whether the user wishes to initiate capture
    * @example
    *
    * function onOffline() {}
    *   document.body.addEventListener("offline", function() { alert("offline")}, false);
    * }
    */
   navigator.prototype.offline : function(){}
{'fraction_non_alphanumeric': 0.10325847644209599, 'fraction_numerical': 0.011008366358432409, 'mean_word_length': 2.444275966641395, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, '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': '198790', 'n_tokens_mistral': 1280, 'n_tokens_neox': 1221, 'n_words': 419}