<commit_before>import os

import rpc.ttypes as ttypes

from conn import PlowConnection

Conn = PlowConnection()

__all__ = [
    "getJobs",
    "getActiveJob",
    "getJobById",
    "killJob",
    "launchJob",
    "pauseJob",
    "getJobOutputs",
    "getLayerById",
    "getLayerByName",
    "addLayerOutput",
    "getTaskById",
    "getTasks",
    "getNodes"
]

def getJobs(**kwargs):
    filt = ttypes.JobFilterT()
    for k, v in kwargs.items():
        setattr(filt, k, v)
    return Conn.service.getJobs(filt)

def getActiveJob(name):
    return Conn.service.getActiveJob(name)<commit_msg>Exposed method for getting the server time.<commit_after>import os

import rpc.ttypes as ttypes

from conn import PlowConnection

Conn = PlowConnection()

__all__ = [
    "getJobs",
    "getActiveJob",
    "getJobById",
    "killJob",
    "launchJob",
    "pauseJob",
    "getJobOutputs",
    "getLayerById",
    "getLayerByName",
    "addLayerOutput",
    "getTaskById",
    "getTasks",
    "getNodes"
]

def getPlowTime():
    return Conn.service.getPlowTime()

def getJobs(**kwargs):
    filt = ttypes.JobFilterT()
    for k, v in kwargs.items():
        setattr(filt, k, v)
    return Conn.service.getJobs(filt)

def getActiveJob(name):
    return Conn.service.getActiveJob(name)
{'fraction_non_alphanumeric': 0.1267605633802817, 'fraction_numerical': 0.0, 'mean_word_length': 3.36518771331058, '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': '2209034', 'n_tokens_mistral': 463, 'n_tokens_neox': 456, 'n_words': 97}