code stringlengths 3 6.57k |
|---|
enumerate(bosa.values) |
logger.info('Processed %i / %i addresses', i, len(bosa) |
tuple(el.lower() |
extended.to_csv(args.output_file, index=False) |
logger.fatal(io) |
sys.exit(1) |
perform_exact_matching(bosa, comparison, address_dict, comp_keys) |
bosa.columns.get_loc('address_id') |
bosa.columns.get_loc('EPSG:4326_lon') |
bosa.columns.get_loc('EPSG:4326_lat') |
logger.info('Performing matching') |
comparison.iterrows() |
logger.info('Matched %i / %i addresses', i, len(comparison) |
tuple(el.lower() |
type(el) |
logger.error('Column %s not found in the comparison file', ke) |
sys.exit(1) |
extended.append(row) |
pd.DataFrame(extended) |
astype('Int64') |
parser.add_argument('output_file', help='Name of file to write output to') |
file. (as a json dict of {comparison_key: bosa_key}) |
parser.parse_args() |
get_best_logger(args.log_name, args.verbose) |
compare_addresses(args) |
decode_response(resp) |
base64.b64decode(resp.encode('utf8') |
get_xmldoc(xmlstring) |
XML(xmlstring) |
get_assertion(doc) |
doc.find('{urn:oasis:names:tc:SAML:2.0:assertion}Assertion') |
get_assertion_attributes(assertion) |
format(ns) |
getchildren() |
attr.find('{}AttributeValue'.format(ns) |
get_conditions(assertion) |
assertion.find('{}Conditions'.format(ns) |
strptime(dtstr) |
datetime.datetime.strptime(dtstr.split('.') |
verify_ip(reported_ip, client_ip) |
logging.getLogger('islykill') |
verify_date_is_after(reported_date, current_date) |
verify_date_is_before(reported_date, current_date) |
AuthenticationError(Exception) |
SAMLResponse(object) |
__init__(self, kt) |
parse_saml(saml, ip, disable_checks=[], decode=True) |
logging.getLogger('islykill') |
logger.debug('Starting SAML authentication process') |
logger.debug(saml) |
logger.debug(saml.__class__) |
decode_response(saml) |
logger.debug(dec_resp.__class__) |
os.path.dirname(os.path.abspath(__file__) |
os.path.join(ca_pem_loc, 'Oll_kedjan.pem') |
logger.debug('Using ca_pem_file: %s' % ca_pem_file) |
xmldsig(dec_resp) |
verify(ca_pem_file=ca_pem_file) |
logger.debug('verify OK') |
get_xmldoc(dec_resp) |
get_assertion(xml) |
get_assertion_attributes(assertion) |
get_conditions(assertion) |
logger.debug('all XML fetched...') |
datetime.datetime.now() |
verify_ip(attributes['IPAddress'], ip) |
checkError('verify_ip failed', disable_checks) |
strptime(conditions.attrib['NotBefore']) |
checkError('verify_date_is_after failed', disable_checks) |
strptime(conditions.attrib['NotOnOrAfter']) |
checkError('verify_date_is_before', disable_checks) |
strptime(conditions.attrib['NotOnOrAfter']) |
logger.debug('authenticated successfully: %s', kt) |
SAMLResponse(kt) |
logger.error('AuthenticationError: %s', e.message) |
logger.error('Unknown error occurred:') |
logger.error(traceback.format_exc() |
mail_admins('SAML authentication error', traceback.format_exc() |
checkError('Unknown error', disable_checks) |
checkError(name, disable_checks=[]) |
AuthenticationError(name) |
pyximport.install(build_in_temp=False, inplace=True) |
us (100 ms) |
us (100 s) |
Sort(object) |
__init__(self, detector=None, stream=None, tw=None) |
window (us) |
get_nextnid(self) |
list(self.neurons) |
len(nids) |
max(max(nids) |
property(get_nextnid) |
get_nextmuid(self) |
list(self.neurons) |
len(nids) |
min(min(nids) |
property(get_nextmuid) |
get_good(self) |
self.neurons.values() |
good.append(neuron.id) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.