<commit_before>#!/usr/bin/python

__author__ = 'agallo'

try:
    from AuthWrapper import *
except ImportError:
    print "Unable to find AuthWrapper; falling back to shell username and private key"


from jnpr.junos import Device
from argparse import ArgumentParser
from pprint import pprint

# setup some command line arguments

print "I made it mast the try/import/except/print block"

parser = ArgumentParser(description="Script to pull prefixes advertised by (or through)"
                                    " a given ASN")

parser.add_argument('ASN', metavar='ASN', type=int)

parser.add_argument('router', metavar='target_router')


args = parser.parse_args()

ASN = args.ASN
router = args.router


dev = Device(router)
dev.open()

pprint( dev.facts )

dev.close()<commit_msg>initial<commit_after>#!/usr/bin/python

__author__ = 'agallo'

try:
    from AuthWrapper import *
except ImportError:
    print "Unable to find AuthWrapper; falling back to shell username and private key"


from jnpr.junos import Device
from argparse import ArgumentParser
from pprint import pprint

# setup some command line arguments

print "I made it mast the try/import/except/print block"

parser2 = ArgumentParser(description="Script to pull prefixes advertised by (or through)"
                                    " a given ASN")

parser2.add_argument('ASN', metavar='ASN', type=int)

parser2.add_argument('router', metavar='target_router')


args = parser2.parse_args()

ASN = args.ASN
router = args.router


dev = Device(router)
dev.open()

pprint( dev.facts )

dev.close()
{'fraction_non_alphanumeric': 0.09450830140485313, 'fraction_numerical': 0.002554278416347382, 'mean_word_length': 3.8816199376947043, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1172760', 'n_tokens_mistral': 489, 'n_tokens_neox': 472, 'n_words': 151}