<commit_before>#!/usr/bin/env python

from dateutil import parser

class Job:
    def __init__(self, id, name, status, start_timestamp, finish_timestamp, duration):
        self.id = id
        self.name = name
        self.status = status
        self.start_timestamp = parser.parse(start_timestamp)
        self.finish_timestamp = parser.parse(finish_timestamp)
        self.duration = (int(duration) / 1000) if duration else (self.finish_timestamp - self.start_timestamp).total_seconds()

    def report(self, reporter):
        reporter.send_status(self.finish_timestamp, self.name, self.status)
        reporter.send_duration(self.finish_timestamp, self.name, self.duration)<commit_msg>Compute job duration retaining decimals<commit_after>#!/usr/bin/env python

from dateutil import parser

class Job:
    def __init__(self, id, name, status, start_timestamp, finish_timestamp, duration):
        self.id = id
        self.name = name
        self.status = status
        self.start_timestamp = parser.parse(start_timestamp)
        self.finish_timestamp = parser.parse(finish_timestamp)
        self.duration = (int(duration) / float(1000)) if duration else (self.finish_timestamp - self.start_timestamp).total_seconds()

    def report(self, reporter):
        reporter.send_status(self.finish_timestamp, self.name, self.status)
        reporter.send_duration(self.finish_timestamp, self.name, self.duration)
{'fraction_non_alphanumeric': 0.0989399293286219, 'fraction_numerical': 0.005653710247349823, 'mean_word_length': 3.6732673267326734, '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': '1096681', 'n_tokens_mistral': 405, 'n_tokens_neox': 395, 'n_words': 89}