<commit_before>#!/usr/bin/python
#
# this is used by the build scripts - it should not normally need to be
# called in a full DIALS installation (although this will probably work too)

"""
Echo the current DIALS version and build number.
"""

from __future__ import division
import datetime
# XXX TO CHANGE THE DIALS VERSION NAME, EDIT BASE_VERSION
BASE_VERSION = "dev"
# this is when the first DIALS installer was created
start_date = datetime.date(2014, 7, 9)
today = datetime.date.today()
delta = today - start_date
n_days = abs(delta.days) + 1
print "%s-%d" % (BASE_VERSION, n_days)<commit_msg>use UTC time in build number<commit_after>#!/usr/bin/python
#
# this is used by the build scripts - it should not normally need to be
# called in a full DIALS installation (although this will probably work too)

"""
Echo the current DIALS version and build number.
"""

from __future__ import division
import datetime
# XXX TO CHANGE THE DIALS VERSION NAME, EDIT BASE_VERSION
BASE_VERSION = "dev"
# this is when the first DIALS installer was created (UTC time)
start_date = datetime.date(2014, 7, 10)
today = datetime.datetime.utcnow().date()
delta = today - start_date
n_days = abs(delta.days) + 1
print "%s-%d" % (BASE_VERSION, n_days)
{'fraction_non_alphanumeric': 0.09149797570850203, 'fraction_numerical': 0.012145748987854251, 'mean_word_length': 4.6438356164383565, 'pattern_counts': {'":': 0, '<': 3, '<?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': '5484235', 'n_tokens_mistral': 404, 'n_tokens_neox': 380, 'n_words': 160}