<commit_before><commit_msg>add gc testing code<commit_after>
__author__    = "<NAME>"
__copyright__ = "Copyright 2012-2013, The SAGA Project"
__license__   = "MIT"


import gc
import sys
import saga
from   pprint import pprint as pp

try :

    if True :
        js1 = saga.job.Service ('ssh://localhost/bin/sh')
        print sys.getrefcount (js1)
        pp (gc.get_referrers (js1))

except saga.SagaException as e :
    print str(e)


# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4

{'fraction_non_alphanumeric': 0.1016260162601626, 'fraction_numerical': 0.028455284552845527, 'mean_word_length': 3.324561403508772, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '7522825', 'n_tokens_mistral': 185, 'n_tokens_neox': 171, 'n_words': 49}