<commit_before>from agavepy.agave import Agave
import sys

if __name__ == '__main__':
    if len(sys.argv) < 3:
        print 'Usage agave_swagger_list.py <api_server> <token> <path1> [<path2> ...]'
    args = sys.argv[1:]
    token = args[0]
    url = args[1]
    paths = args[2:]
    c = Agave(api_server = url, token='')
    resources = c.resources
    for api in resources['apis']:
        if api['path'] not in paths:
            continue
        for sub_api in api['api_declaration']['apis']:
            print('\033[0:32mPath: {0}\033[0:0m'.format(sub_api['path']))
            if len(sub_api['operations']) > 0:<commit_msg>TEsting<commit_after>from agavepy.agave import Agave
import sys

if __name__ == '__main__':
    if len(sys.argv) < 3:
        print 'Usage agave_swagger_list.py <api_server> <token> <path1> [<path2> ...]'
    args = sys.argv[1:]
    token = args[0]
    url = args[1]
    paths = args[2:]
    c = Agave(api_server = url, token='')
    import ipdb; ipdb.set_trace()
    resources = c.resources
    for api in resources['apis']:
        if api['path'] not in paths:
            continue
        for sub_api in api['api_declaration']['apis']:
            print('\033[0:32mPath: {0}\033[0:0m'.format(sub_api['path']))
            if len(sub_api['operations']) > 0:
{'fraction_non_alphanumeric': 0.16124031007751938, 'fraction_numerical': 0.031007751937984496, 'mean_word_length': 2.7859237536656893, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '2972442', 'n_tokens_mistral': 476, 'n_tokens_neox': 455, 'n_words': 106}