<commit_before>-- Copyright (C) 2017 by chrono

--print(ngx.time())
--print(ngx.now())
--print(ngx.today())

local secs = ngx.time()
local msecs = ngx.now()

assert(msecs - secs < 1)

ngx.say(ngx.today())
ngx.say(ngx.localtime())
ngx.say(ngx.utctime())

local secs = 1514442072
ngx.say(ngx.http_time(secs))
ngx.say(ngx.cookie_time(secs))

local str = "Thu, 28 Dec 2017 06:21:12 GMT"
ngx.say(ngx.parse_http_time(str))

ngx.update_time()

ngx.sleep(1.0)
ngx.say("sleep 1 second")
ngx.sleep(0.02)
ngx.say("sleep 20 miliseconds")
<commit_msg>time.lua<commit_after>-- Copyright (C) 2017 by chrono

--print(ngx.time())
--print(ngx.now())
--print(ngx.today())

local secs = ngx.time()
local msecs = ngx.now()
ngx.say(secs)

assert(msecs - secs < 1)

ngx.say(ngx.today())
ngx.say(ngx.localtime())
ngx.say(ngx.utctime())

local secs = 1514880339
ngx.say(ngx.http_time(secs))
ngx.say(ngx.cookie_time(secs))

local str = "Tue, 02 Jan 2018 08:05:39 GMT"
ngx.say(ngx.parse_http_time(str))

ngx.update_time()

ngx.sleep(1.0)
ngx.say("sleep 1 second")
ngx.sleep(0.02)
ngx.say("sleep 20 miliseconds")

{'fraction_non_alphanumeric': 0.19539170506912443, 'fraction_numerical': 0.06451612903225806, 'mean_word_length': 4.838709677419355, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '2843576', 'n_tokens_mistral': 564, 'n_tokens_neox': 504, 'n_words': 89}