MCPcopy Create free account

hub / github.com/FDA/openfda / functions

Functions1,029 in github.com/FDA/openfda

↓ 418 callersMethodget
(self, key)
openfda/parallel/sharded_db.py:45
↓ 393 callersFunctioneq_
Shorthand for 'assert a == b, "%r != %r" % (a, b)
openfda/tests/api_test_helpers.py:121
↓ 53 callersMethodadd
(self, key, value)
openfda/parallel/mapreduce.py:117
↓ 48 callersFunctionok_
Shorthand for assert. Saves 3 whole characters!
openfda/tests/api_test_helpers.py:114
↓ 34 callersMethodfrom_glob
(glob, mr_input=FilenameInput())
openfda/parallel/mapreduce.py:90
↓ 28 callersMethodput
(self, key, value)
openfda/parallel/sharded_db.py:42
↓ 26 callersMethodopen
Open an existing ShardedDB.
openfda/parallel/sharded_db.py:34
↓ 23 callersMethodfrom_sharded
(prefix, mr_input=LevelDBInput())
openfda/parallel/mapreduce.py:94
↓ 22 callersFunction_add_field
(openfda, field, value)
openfda/spl/annotate.py:33
↓ 22 callersFunction_add_field
(openfda, field, value)
openfda/res/annotate.py:47
↓ 19 callersFunction_add_field
(openfda, field, value)
openfda/drugsfda/annotate.py:26
↓ 19 callersFunction_add_field
(openfda, field, value)
openfda/faers/annotate.py:45
↓ 19 callersFunction_add_field
(openfda, field, value)
openfda/adae/annotate.py:51
↓ 19 callersMethodisdigit
(self, s)
openfda/adae/pipeline.py:569
↓ 15 callersMethodfield_val_str
(self, soup, field_key)
openfda/device_recall/pipeline.py:223
↓ 14 callersMethodmap
(self, spl_set_id, value, output)
openfda/spl/pipeline.py:245
↓ 12 callersMethodrange_iter
(self, start_key, end_key)
openfda/parallel/sharded_db.py:48
↓ 12 callersMethodrun
(self)
openfda/drugsfda/pipeline.py:465
↓ 11 callersFunction_add_field
(openfda, field, value)
openfda/ndc/annotate.py:33
↓ 11 callersMethodrun
(self)
openfda/annotation_table/pipeline.py:365
↓ 10 callersMethodadd
(id, json)
openfda/adae/tests/pipeline_test.py:59
↓ 10 callersFunctionopen_data_file
(fname)
openfda/test_common.py:15
↓ 9 callersMethodas_dict
Returns the content of this database as an in-memory Python dictionary
openfda/parallel/sharded_db.py:59
↓ 7 callersFunction_joinable_dict
(record_list, join_key_list)
openfda/annotation_table/combine_harmonization.py:34
↓ 7 callersFunctiondata_filename
(fname, caller_frame=1)
openfda/test_common.py:8
↓ 7 callersFunctionfirst_file_timestamp
:param path: path to an existing directory :return: timestamp of the first file found in the given directory as YYYY-MM-DD - If the fi
openfda/common.py:312
↓ 7 callersMethodfrom_sharded_list
(shard_list, mr_input=LevelDBInput())
openfda/parallel/mapreduce.py:98
↓ 7 callersFunctionnewest_file_timestamp
:param path: path to an existing directory :return: timestamp of the newest file found in the given directory as YYYY-MM-DD
openfda/common.py:337
↓ 7 callersMethodoutput
(self)
openfda/common.py:117
↓ 6 callersMethod__init__
(self, filename, mr_input, start_pos, end_pos)
openfda/parallel/inputs.py:29
↓ 6 callersFunctionfirst_match_or_empty_string
(matches)
openfda/spl/extract.py:35
↓ 6 callersMethodrun_mr
(self, prefix, input_data, input_format=parallel.LineInput(), mapper=pa
openfda/tests/parallel_test.py:35
↓ 6 callersMethodverify_parsing
(self, f, actual, msg)
openfda/spl/tests/process_barcodes_test.py:17
↓ 5 callersFunctionbuild_products_key
(app_number, json)
openfda/drugsfda/pipeline.py:211
↓ 5 callersFunctionbuild_submissions_key
(app_number, json)
openfda/drugsfda/pipeline.py:333
↓ 5 callersMethodfilter
(self, data, lookup=None)
openfda/maude/pipeline.py:724
↓ 5 callersMethodprocess_xpath_map
(self, xpath_map, root_node, json)
openfda/adae/pipeline.py:527
↓ 5 callersMethodrun
(self)
openfda/tests/luigi_test.py:21
↓ 4 callersFunction__len_check
(chk, _type='EAN13')
openfda/res/ean.py:32
↓ 4 callersFunction_checked_subprocess
(quiet=False, *args, **kw)
openfda/common.py:121
↓ 4 callersFunction_combine_dicts
(record_dict, new_data_dict, new_data_key)
openfda/annotation_table/combine_harmonization.py:49
↓ 4 callersFunctioncompletely_flatten
A Flattening function that takes a highly nested dictionary and flattens it into a single depth dictionary with breadcrumb style keys, {a.b.c:
scripts/generate_fields_yaml.py:47
↓ 4 callersFunctionconstruct_join_key
A helper function to construct a join key from dictionary values.
openfda/registration/pipeline.py:111
↓ 4 callersFunctionfetch
(query)
openfda/tests/api_test_helpers.py:74
↓ 4 callersMethodflatten
Helper function which flattens a filtered harmonized db entry. Moves any key/values from the `classification` dictionary to the top-
openfda/device_harmonization/pipeline.py:169
↓ 4 callersMethodfrom_list
(list, mr_input=FilenameInput())
openfda/parallel/mapreduce.py:86
↓ 4 callersFunctionnormalize_product_name
Simple drugname normalization: strip punctuation and whitespace and lowercase.
openfda/faers/annotate.py:11
↓ 4 callersMethodoutput
(self)
openfda/faers/pipeline.py:81
↓ 4 callersMethodoutput
(self)
openfda/covid19serology/pipeline.py:63
↓ 4 callersFunctionp
(obj)
openfda/tests/index_util_test.py:16
↓ 4 callersFunctionprint_total
(name, query, count=None)
scripts/generate_tests.py:27
↓ 4 callersFunctionread_json_file
(json_file)
openfda/annotation_table/combine_harmonization.py:30
↓ 4 callersFunctionupca_check_digit
(chk)
openfda/res/ean.py:80
↓ 3 callersMethod__init__
(self, doc_lookup)
openfda/drugsfda/pipeline.py:249
↓ 3 callersMethod_output_file
(self)
openfda/parallel/watchdog.py:17
↓ 3 callersFunction_prefix
Helper function that removes the last entry from a '.' delimited string.
scripts/generate_fields_yaml.py:116
↓ 3 callersFunctionassertCorsHeaders
(res)
api/faers/test/integration/cors_test.js:47
↓ 3 callersFunctionbatch_dir
(batch)
openfda/device_recall/pipeline.py:51
↓ 3 callersMethodcreate
Create a new ShardedDB with the given number of output shards.
openfda/parallel/sharded_db.py:29
↓ 3 callersFunctionean_check_digit
Returns the checksum digit of an EAN-13/8 code
openfda/res/ean.py:40
↓ 3 callersFunctionfail
(msg)
openfda/tests/api_test_helpers.py:141
↓ 3 callersFunctionfetch_headers
(query)
openfda/tests/api_test_helpers.py:80
↓ 3 callersMethodfield_val_date
(self, soup, field_key)
openfda/device_recall/pipeline.py:239
↓ 3 callersFunctionfirst_match_or_empty_string
(matches)
openfda/annotation_table/extract_unii.py:48
↓ 3 callersFunctionfixDate
(y, m, d)
openfda/spl/fix_date.py:12
↓ 3 callersMethodfix_utf8_issues
(self, filename)
openfda/ndc/pipeline.py:74
↓ 3 callersMethodflag_file
(self)
openfda/spl/pipeline.py:130
↓ 3 callersMethodflag_file
(self)
openfda/spl/pipeline.py:155
↓ 3 callersMethodmap_shard
(self, map_input, map_output)
openfda/adae/pipeline.py:425
↓ 3 callersFunctionmapreduce
( inputs, mapper, reducer, output_prefix, output_format=LevelDBOutput(), num_shards=None, map_wo
openfda/parallel/mapreduce.py:146
↓ 3 callersMethodoutput
(self)
openfda/res/pipeline.py:108
↓ 3 callersMethodoutput
(self)
openfda/tobacco_problem/pipeline.py:33
↓ 3 callersMethodoutput
(self)
openfda/export/pipeline.py:293
↓ 3 callersMethodoutput
(self)
openfda/export/pipeline.py:433
↓ 3 callersFunctionparseNextURL
(link)
api/faers/test/integration/search_after_test.js:166
↓ 3 callersFunctionread_json_file
(json_file)
openfda/res/annotate.py:8
↓ 3 callersMethodrun
(self)
openfda/ndc/pipeline.py:269
↓ 3 callersMethodrun
(self)
openfda/ndc/pipeline.py:315
↓ 3 callersFunctionshell_cmd
(fmt, *args)
openfda/common.py:150
↓ 2 callersFunctionAddHarmonizedRowToOpenfda
(openfda, row)
openfda/res/annotate.py:94
↓ 2 callersFunctionAnnotateDrugByKey
(drug, key, harmonized_dict)
openfda/adae/annotate.py:119
↓ 2 callersMethod__init__
(self, spl_s3_dir)
openfda/annotation_table/pipeline.py:543
↓ 2 callersFunction__sum_digits
(chk, start=0, end=1, step=2, mult=1)
openfda/res/ean.py:37
↓ 2 callersMethod_data
Return a task that supplies the data files to load into ES. By default, this is just `data_source`, but this can be overridden for more
openfda/index_util.py:453
↓ 2 callersMethod_fetch_ids
(self, start, end)
openfda/device_recall/pipeline.py:206
↓ 2 callersFunction_formatMessage
Honour the longMessage attribute when generating failure messages. If longMessage is False this means: * Use only an explicit message if it is pro
openfda/tests/api_test_helpers.py:145
↓ 2 callersFunction_format_cmd
(args, fmt)
openfda/common.py:159
↓ 2 callersFunction_make_file_name
Helper function for making uniform file names.
openfda/index_util.py:74
↓ 2 callersFunction_make_partition
Helper function for making the partition object that is appended to manifest.partitions list.
openfda/index_util.py:117
↓ 2 callersMethod_nonce_file
(self)
openfda/tasks.py:58
↓ 2 callersMethod_shard_for
(self, key)
openfda/parallel/sharded_db.py:39
↓ 2 callersFunction_split
Helper function that splits a string into an array, swaps the encoded values for more descriptive ones and then generates an _exact field
openfda/maude/pipeline.py:267
↓ 2 callersFunction_write_chunk
Helper function for writing out zip file chunks.
openfda/index_util.py:60
↓ 2 callersMethodadd
(self, obj)
openfda/common.py:39
↓ 2 callersFunctionbuildURL
(modifiedQueryStr)
api/faers/traversal.js:5
↓ 2 callersMethodbuild_date_range_query
(key, start, end, negate=False)
openfda/export/pipeline.py:144
↓ 2 callersMethodcomplete
(self)
openfda/tasks.py:77
↓ 2 callersFunctionconvert_unicode
(data)
openfda/common.py:300
↓ 2 callersMethodcreate_writer
(self, prefix, shard_idx, num_shards)
openfda/parallel/outputs.py:31
↓ 2 callersFunctionextract_counts
(results)
openfda/tests/api_test_helpers.py:16
next →1–100 of 1,029, ranked by callers