rust 1,860,549 · typescript 235,540 · javascript 132,956 · python 20,426 · 6,408 files · digest f04d4637f52b · built in 1.5 s · crystals off
crates/cre8-app-provider/src/adapters/openfda.rs
Items
const BASE const REQUEST_TIMEOUT const REQUEST_SPACING static PACER const MAX_PAGE_LIMIT const MAX_SKIP const SECTION_CHAR_CAP const KEY_ENV const LABEL_SECTIONS const PRODUCT_FIELDS const RECALL_FIELDS const HARMONIZED_FIELDS const IDENTIFIER_CONFIDENCE const MAKER_CONFIDENCE const TEXT_MENTION_CONFIDENCE const RECALL_HARMONIZED_CONFIDENCE struct OpenFdaProvider enum Dataset impl Dataset struct PagePlan struct Stamp impl Stamp struct Relations const PRODUCT_RELATIONS const RECALL_RELATIONS impl ExternalDataProvider for OpenFdaProvider
Functions
By call-graph weight (PageRank; 1.0 is the average function). 57 functions in all.
| function | kind | lines | cyclomatic | callers | callees | weight | crystal |
|---|---|---|---|---|---|---|---|
| textsrc/adapters/openfda.rs:403 | fn | 4 | 1 | 3 | 1 | 2.2 | |
| row_recordsrc/adapters/openfda.rs:774 | fn | 11 | 4 | 1 | 3 | 1.9 | |
| targetssrc/adapters/openfda.rs:955 | fn | 10 | 1 | 4 | 0 | 1.7 | |
| normalize_openfda_payloadsrc/adapters/openfda.rs:788 | fn | 14 | 3 | 8 | 1 | 1.7 | |
| Dataset::parsesrc/adapters/openfda.rs:204 | method | 8 | 4 | 1 | 0 | 1.1 | |
| keyssrc/adapters/openfda.rs:966 | fn | 3 | 1 | 5 | 1 | 1.1 | |
| stringssrc/adapters/openfda.rs:414 | fn | 7 | 3 | 1 | 1 | 1.1 | |
| with_paramssrc/adapters/openfda.rs:970 | fn | 3 | 1 | 4 | 0 | 1.1 | |
| product_recordsrc/adapters/openfda.rs:540 | fn | 73 | 7 | 1 | 11 | 1 | |
| label_recordsrc/adapters/openfda.rs:636 | fn | 69 | 10 | 1 | 10 | 1 | |
| recall_recordsrc/adapters/openfda.rs:707 | fn | 65 | 6 | 1 | 10 | 1 | |
| search_expressionsrc/adapters/openfda.rs:305 | fn | 49 | 16 | 4 | 6 | 1 | |
| ndc_responsesrc/adapters/openfda.rs:931 | fn | 3 | 1 | 3 | 0 | 0.8 | |
| label_responsesrc/adapters/openfda.rs:940 | fn | 3 | 1 | 3 | 0 | 0.8 | |
| Dataset::default_page_sizesrc/adapters/openfda.rs:239 | method | 6 | 2 | 1 | 0 | 0.8 | |
| usize_paramsrc/adapters/openfda.rs:356 | fn | 11 | 4 | 1 | 0 | 0.8 | |
| fieldsrc/adapters/openfda.rs:408 | fn | 3 | 1 | 3 | 1 | 0.8 | |
| source_urlsrc/adapters/openfda.rs:460 | fn | 3 | 1 | 3 | 0 | 0.8 | |
| copy_fieldssrc/adapters/openfda.rs:464 | fn | 7 | 3 | 3 | 0 | 0.8 | |
| harmonized_claimssrc/adapters/openfda.rs:504 | fn | 23 | 6 | 3 | 8 | 0.8 | |
| organization_claimsrc/adapters/openfda.rs:530 | fn | 8 | 2 | 3 | 4 | 0.8 | |
| datasetsrc/adapters/openfda.rs:267 | fn | 7 | 3 | 3 | 1 | 0.7 | |
| api_keysrc/adapters/openfda.rs:429 | fn | 11 | 1 | 2 | 3 | 0.7 | |
| stampedsrc/adapters/openfda.rs:950 | fn | 4 | 1 | 3 | 0 | 0.7 | |
| atsrc/adapters/openfda.rs:399 | fn | 3 | 1 | 1 | 0 | 0.7 | |
| enforcement_responsesrc/adapters/openfda.rs:946 | fn | 3 | 1 | 2 | 0 | 0.7 | |
| page_plansrc/adapters/openfda.rs:376 | fn | 15 | 4 | 2 | 2 | 0.7 | |
| next_cursorsrc/adapters/openfda.rs:394 | fn | 4 | 4 | 2 | 0 | 0.7 | |
| total_matchessrc/adapters/openfda.rs:804 | fn | 3 | 1 | 2 | 0 | 0.7 | |
| harmonizedsrc/adapters/openfda.rs:422 | fn | 3 | 1 | 2 | 1 | 0.7 | |
| Dataset::search_fieldsrc/adapters/openfda.rs:248 | method | 17 | 13 | 1 | 0 | 0.6 | |
| phrasesrc/adapters/openfda.rs:277 | fn | 3 | 1 | 1 | 1 | 0.6 | |
| search_valuesrc/adapters/openfda.rs:283 | fn | 20 | 10 | 1 | 6 | 0.6 | |
| sectionsrc/adapters/openfda.rs:617 | fn | 17 | 4 | 1 | 0 | 0.6 | |
| Dataset::operationsrc/adapters/openfda.rs:229 | method | 7 | 3 | 1 | 0 | 0.5 | |
| Dataset::idsrc/adapters/openfda.rs:213 | method | 7 | 3 | 0 | 0 | 0.5 | |
| Dataset::pathsrc/adapters/openfda.rs:221 | method | 7 | 3 | 0 | 0 | 0.5 | |
| Stamp::applysrc/adapters/openfda.rs:449 | method | 8 | 3 | 0 | 0 | 0.5 | |
| OpenFdaProvider::descriptorsrc/adapters/openfda.rs:809 | trait impl | 14 | 1 | 0 | 0 | 0.5 | |
| OpenFdaProvider::seed_recordssrc/adapters/openfda.rs:824 | trait impl | 3 | 1 | 0 | 0 | 0.5 | |
| OpenFdaProvider::normalize_payloadsrc/adapters/openfda.rs:828 | trait impl | 3 | 1 | 0 | 1 | 0.5 | |
| OpenFdaProvider::sync_contractsrc/adapters/openfda.rs:832 | trait impl | 23 | 1 | 0 | 1 | 0.5 | |
| OpenFdaProvider::fetch_livesrc/adapters/openfda.rs:856 | trait impl | 67 | 8 | 0 | 10 | 0.5 | |
| an_ndc_product_keys_on_its_product_ndc_and_joins_unii_rxcui_package_label_and_labelersrc/adapters/openfda.rs:975 | fn | 41 | 1 | 0 | 5 | 0.5 | |
| a_label_keys_on_its_set_id_and_keeps_section_texts_with_a_truncation_flagsrc/adapters/openfda.rs:1018 | fn | 48 | 1 | 0 | 5 | 0.5 | |
| over_the_counter_and_boxed_warning_labels_keep_their_own_sectionssrc/adapters/openfda.rs:1068 | fn | 26 | 2 | 0 | 3 | 0.5 | |
| a_recall_keys_on_its_number_and_names_the_ndcs_in_its_text_and_its_harmonized_blocksrc/adapters/openfda.rs:1096 | fn | 57 | 2 | 0 | 5 | 0.5 | |
| a_recall_with_an_empty_harmonized_block_still_yields_its_recordsrc/adapters/openfda.rs:1155 | fn | 13 | 1 | 0 | 2 | 0.5 | |
| payload_accepts_bare_rows_and_reads_nothing_from_an_error_bodysrc/adapters/openfda.rs:1170 | fn | 20 | 1 | 0 | 4 | 0.5 | |
| convenience_fields_become_a_search_expression_for_their_datasetsrc/adapters/openfda.rs:1192 | fn | 37 | 1 | 0 | 4 | 0.5 | |
| a_free_text_query_is_search_syntax_an_ndc_or_a_brand_namesrc/adapters/openfda.rs:1231 | fn | 10 | 1 | 0 | 2 | 0.5 | |
| search_refuses_bad_inputsrc/adapters/openfda.rs:1243 | fn | 20 | 1 | 0 | 4 | 0.5 | |
| paging_reads_limit_skip_and_cursor_and_refuses_values_past_the_ceilingssrc/adapters/openfda.rs:1265 | fn | 22 | 1 | 0 | 3 | 0.5 | |
| the_cursor_stops_at_a_short_page_the_total_or_the_skip_ceilingsrc/adapters/openfda.rs:1289 | fn | 13 | 1 | 0 | 3 | 0.5 | |
| an_api_key_is_read_from_paramssrc/adapters/openfda.rs:1304 | fn | 5 | 1 | 0 | 2 | 0.5 | |
| openfda_provider_is_registered_in_the_catalogsrc/adapters/openfda.rs:1311 | fn | 3 | 1 | 0 | 1 | 0.5 | |
| live_fetch_reads_each_dataset_and_an_empty_searchsrc/adapters/openfda.rs:1319 | fn | 19 | 1 | 0 | 0 | 0.5 |
Source not readable from this process.