<commit_before>from .qsub import BaseQsub, Qsub
from .qstat import Qwatch


__all__ = ("BaseQsub",
           "Qsub",
           "Qwatch",
           )

# # Borrowed from the discussion in the link below:
# # https://stackoverflow.com/questions/44247099/click-command-line-interfaces-make-options-required-if-other-optional-option-is
# class NotRequiredIf(click.Option):
#     def __init__(self, *args, **kwargs):
#         self.not_required_if = kwargs.pop('not_required_if')
#         assert self.not_required_if, "'not_required_if' parameter required"
#         kwargs['help'] = (kwargs.get('help', '') +
#                           ' NOTE: This argument is mutually exclusive with %s.' %
#                           self.not_required_if
#                           ).strip()
#         super(NotRequiredIf, self).__init__(*args, **kwargs)
#
#     def handle_parse_result(self, ctx, opts, args):<commit_msg>Added a TargetJobKeyError class for the pbs module.<commit_after>from .qsub import BaseQsub, Qsub
from .qstat import Qwatch


__all__ = ("BaseQsub",
           "Qsub",
           "Qwatch",
           "TargetJobKeyError"
           )


class TargetJobKeyError(KeyError):

    def __init__(self, *args, **kwargs):
        super().__init__(*args, **kwargs)

# # Borrowed from the discussion in the link below:
# # https://stackoverflow.com/questions/44247099/click-command-line-interfaces-make-options-required-if-other-optional-option-is
# class NotRequiredIf(click.Option):
#     def __init__(self, *args, **kwargs):
#         self.not_required_if = kwargs.pop('not_required_if')
#         assert self.not_required_if, "'not_required_if' parameter required"
#         kwargs['help'] = (kwargs.get('help', '') +
#                           ' NOTE: This argument is mutually exclusive with %s.' %
#                           self.not_required_if
#                           ).strip()
#         super(NotRequiredIf, self).__init__(*args, **kwargs)
#
#     def handle_parse_result(self, ctx, opts, args):
{'fraction_non_alphanumeric': 0.1299800796812749, 'fraction_numerical': 0.00796812749003984, 'mean_word_length': 2.568383658969805, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '947429', 'n_tokens_mistral': 614, 'n_tokens_neox': 599, 'n_words': 125}