1 viewer
rust 1,859,968 · typescript 235,218 · javascript 132,952 · python 20,426 · 6,406 files · digest c536f05fc420 · built in 1.4 s · crystals off
crates/cre8-app-provider/src/adapters/pubchem.rs
Items
const BASE const COMPOUND_PAGE const PROPERTIES const REQUEST_TIMEOUT const REQUEST_SPACING const BATCH_SIZE const MAX_COMPOUNDS const SYNONYM_CAP const KIND const IDENTITY_CONFIDENCE const FORMULA_CONFIDENCE const SYNONYM_CONFIDENCE struct PubChemProvider struct Structure enum Lookup static PACER impl ExternalDataProvider for PubChemProvider const CAFFEINE_3D const CAFFEINE_2D const ASPIRIN_3D
Functions
By call-graph weight (PageRank; 1.0 is the average function). 48 functions in all.
| function | kind | lines | cyclomatic | callers | callees | weight | crystal |
|---|---|---|---|---|---|---|---|
| normalize_inchikeysrc/adapters/pubchem.rs:101 | fn | 10 | 5 | 4 | 0 | 1.7 | |
| bundle_recordssrc/adapters/pubchem.rs:358 | fn | 13 | 1 | 2 | 4 | 1.6 | |
| propertiessrc/adapters/pubchem.rs:656 | fn | 3 | 1 | 2 | 0 | 1.5 | |
| compound_recordsrc/adapters/pubchem.rs:168 | fn | 146 | 22 | 5 | 11 | 1.4 | |
| normalize_pubchem_payloadsrc/adapters/pubchem.rs:374 | fn | 3 | 1 | 4 | 1 | 1.3 | |
| lookupssrc/adapters/pubchem.rs:421 | fn | 30 | 10 | 3 | 5 | 1.2 | |
| caffeine_rowsrc/adapters/pubchem.rs:676 | fn | 3 | 1 | 4 | 1 | 1 | |
| property_rowssrc/adapters/pubchem.rs:318 | fn | 9 | 4 | 2 | 0 | 1 | |
| countsrc/adapters/pubchem.rs:691 | fn | 3 | 1 | 4 | 0 | 0.9 | |
| synonyms_forsrc/adapters/pubchem.rs:331 | fn | 15 | 4 | 1 | 0 | 0.8 | |
| per_compoundsrc/adapters/pubchem.rs:349 | fn | 8 | 5 | 1 | 0 | 0.8 | |
| targetssrc/adapters/pubchem.rs:680 | fn | 10 | 1 | 3 | 0 | 0.8 | |
| inchikey_keysrc/adapters/pubchem.rs:90 | fn | 3 | 1 | 3 | 0 | 0.8 | |
| cids_from_identifier_listsrc/adapters/pubchem.rs:380 | fn | 7 | 1 | 2 | 0 | 0.8 | |
| sdf_dimensionsrc/adapters/pubchem.rs:139 | fn | 7 | 3 | 2 | 0 | 0.7 | |
| bundlesrc/adapters/pubchem.rs:666 | fn | 9 | 1 | 2 | 0 | 0.7 | |
| structure_sdfsrc/adapters/pubchem.rs:484 | fn | 6 | 2 | 2 | 1 | 0.7 | |
| pacesrc/adapters/pubchem.rs:454 | fn | 4 | 1 | 2 | 1 | 0.7 | |
| parse_cidsrc/adapters/pubchem.rs:396 | fn | 8 | 2 | 1 | 0 | 0.7 | |
| parse_namesrc/adapters/pubchem.rs:405 | fn | 7 | 2 | 1 | 1 | 0.7 | |
| parse_inchikeysrc/adapters/pubchem.rs:413 | fn | 5 | 1 | 1 | 1 | 0.7 | |
| neutral_formulasrc/adapters/pubchem.rs:130 | fn | 6 | 3 | 2 | 0 | 0.7 | |
| get_jsonsrc/adapters/pubchem.rs:460 | fn | 9 | 4 | 2 | 5 | 0.7 | |
| get_textsrc/adapters/pubchem.rs:471 | fn | 9 | 4 | 1 | 5 | 0.6 | |
| cid_keysrc/adapters/pubchem.rs:95 | fn | 3 | 1 | 1 | 0 | 0.6 | |
| fieldsrc/adapters/pubchem.rs:112 | fn | 4 | 1 | 1 | 1 | 0.6 | |
| claimsrc/adapters/pubchem.rs:117 | fn | 10 | 1 | 1 | 0 | 0.6 | |
| parse_structuresrc/adapters/pubchem.rs:154 | fn | 10 | 1 | 1 | 2 | 0.6 | |
| fetch_bundlesrc/adapters/pubchem.rs:493 | fn | 28 | 3 | 1 | 4 | 0.6 | |
| PubChemProvider::descriptorsrc/adapters/pubchem.rs:523 | trait impl | 13 | 1 | 0 | 0 | 0.5 | |
| PubChemProvider::seed_recordssrc/adapters/pubchem.rs:537 | trait impl | 3 | 1 | 0 | 0 | 0.5 | |
| PubChemProvider::normalize_payloadsrc/adapters/pubchem.rs:541 | trait impl | 3 | 1 | 0 | 1 | 0.5 | |
| PubChemProvider::sync_contractsrc/adapters/pubchem.rs:545 | trait impl | 33 | 1 | 0 | 1 | 0.5 | |
| PubChemProvider::fetch_livesrc/adapters/pubchem.rs:579 | trait impl | 64 | 10 | 0 | 6 | 0.5 | |
| synonymssrc/adapters/pubchem.rs:662 | fn | 3 | 1 | 0 | 0 | 0.5 | |
| compound_keys_on_inchikey_and_keeps_the_cid_as_alias_and_identity_claimsrc/adapters/pubchem.rs:696 | fn | 36 | 1 | 0 | 3 | 0.5 | |
| structure_is_the_parsed_conformer_and_agrees_with_the_reported_formulasrc/adapters/pubchem.rs:734 | fn | 20 | 1 | 0 | 4 | 0.5 | |
| a_formula_the_structure_disagrees_with_stays_and_the_mismatch_is_recordedsrc/adapters/pubchem.rs:756 | fn | 14 | 1 | 0 | 5 | 0.5 | |
| an_unreadable_sdf_leaves_an_error_and_still_yields_the_recordsrc/adapters/pubchem.rs:772 | fn | 5 | 1 | 0 | 2 | 0.5 | |
| a_missing_3d_record_falls_back_to_the_2d_sdfsrc/adapters/pubchem.rs:779 | fn | 29 | 1 | 0 | 4 | 0.5 | |
| the_molfile_header_names_the_dimension_when_the_bundle_does_notsrc/adapters/pubchem.rs:810 | fn | 7 | 1 | 0 | 3 | 0.5 | |
| only_a_404_reads_as_not_foundsrc/adapters/pubchem.rs:819 | fn | 11 | 1 | 0 | 1 | 0.5 | |
| name_resolution_reads_the_identifier_listsrc/adapters/pubchem.rs:832 | fn | 12 | 1 | 0 | 2 | 0.5 | |
| lookups_read_cids_names_inchikeys_and_free_textsrc/adapters/pubchem.rs:846 | fn | 30 | 1 | 0 | 2 | 0.5 | |
| lookups_refuse_bad_inputsrc/adapters/pubchem.rs:878 | fn | 17 | 1 | 0 | 1 | 0.5 | |
| payload_accepts_bare_property_tables_and_legacy_smiles_namessrc/adapters/pubchem.rs:897 | fn | 28 | 1 | 0 | 4 | 0.5 | |
| pubchem_provider_is_registered_in_the_catalogsrc/adapters/pubchem.rs:927 | fn | 3 | 1 | 0 | 1 | 0.5 | |
| live_fetch_returns_caffeine_and_aspirin_with_structuressrc/adapters/pubchem.rs:934 | fn | 12 | 1 | 0 | 0 | 0.5 |
Source not readable from this process.