<commit_before>/* See license.txt for terms of usage */

define([
    "firebug/cookies/cookie",
    "firebug/lib/wrapper",
    "firebug/lib/string"
],
function(Cookie, Wrapper, Str) {

// ********************************************************************************************* //
// Constants

var Cu = Components.utils;

// ********************************************************************************************* //
// CookieUtils Implementation

var CookieUtils = 
{
    isDeletedCookie: function(cookie)
    {
        if (cookie.maxAge) {
            if (cookie.maxAge > 0)
                return false;
            else
                return true;
        }

        if (cookie.expires) {
            var expiresDate = new Date(cookie.expires * 1000);

            if (expiresDate.getTime() > Date.now())
                return false;
            else
                return true;
        }
<commit_msg>Simplify logic for checking if cookie is deleted<commit_after>/* See license.txt for terms of usage */

define([
    "firebug/cookies/cookie",
    "firebug/lib/wrapper",
    "firebug/lib/string"
],
function(Cookie, Wrapper, Str) {

// ********************************************************************************************* //
// Constants

var Cu = Components.utils;

// ********************************************************************************************* //
// CookieUtils Implementation

var CookieUtils = 
{
    isDeletedCookie: function(cookie)
    {
        if (cookie.maxAge)
            return cookie.maxAge <= 0;

        if (cookie.expires)
        {
            var expiresDate = new Date(cookie.expires * 1000);

            return expiresDate.getTime() <= Date.now();
        }

{'fraction_non_alphanumeric': 0.3110853163087638, 'fraction_numerical': 0.005803830528148578, 'mean_word_length': 2.6218487394957983, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '2883348', 'n_tokens_mistral': 464, 'n_tokens_neox': 416, 'n_words': 95}