This report presents the forensic synthetic code analysis of Biohub/esm, a Jupyter Notebook project with 2,844 GitHub stars. SynthScan v2.0 examined 100,047 lines of code across 132 source files, recording 364 pattern matches distributed across 15 syntactic categories. The overall adjusted score of 4.8 places this repository in the Likely human-written band.
The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).
This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.
Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.
This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.
The scanner identified 364 distinct pattern matches across 15 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | esm/utils/misc_test.py | 23 | def test_merge_annotations_gap(): | CODE |
| LOW | esm/utils/misc.py | 40 | def slice_python_object_as_numpy( | CODE |
| LOW | esm/utils/misc.py | 180 | def stack_variable_length_tensors( | CODE |
| LOW | esm/utils/misc.py | 394 | def get_chainbreak_boundaries_from_sequence(sequence: Sequence[str]) -> np.ndarray: | CODE |
| LOW | esm/utils/misc.py | 444 | def iterate_with_intermediate( | CODE |
| LOW | esm/utils/system.py | 10 | def run_subprocess_with_errorcheck( | CODE |
| LOW | esm/utils/encoding.py | 26 | def get_default_secondary_structure(sequence_length: int) -> str: | CODE |
| LOW | esm/utils/encoding.py | 100 | def tokenize_secondary_structure( | CODE |
| LOW | esm/utils/encoding.py | 138 | def tokenize_function_annotations( | CODE |
| LOW | esm/utils/encoding.py | 156 | def get_default_sequence_tokens( | CODE |
| LOW | esm/utils/encoding.py | 172 | def get_default_structure_tokens( | CODE |
| LOW | esm/utils/encoding.py | 185 | def get_default_secondary_structure_tokens( | CODE |
| LOW | esm/utils/encoding.py | 206 | def get_default_function_tokens( | CODE |
| LOW | esm/utils/encoding.py | 219 | def get_default_residue_annotation_tokens( | CODE |
| LOW | esm/utils/generation.py | 37 | def _trim_sequence_tensor_dataclass(o: Any, sequence_len: int): | CODE |
| LOW | esm/utils/generation.py | 240 | def _get_iterative_sampling_mask_for_prompt_and_step( | CODE |
| LOW | esm/utils/generation.py | 349 | def _get_annealed_temperature(step: int, num_steps: int, initial_temperature: float): | CODE |
| LOW | esm/utils/generation.py | 354 | def iterative_sampling_tokens( | CODE |
| LOW | esm/utils/decoding.py | 172 | def decode_secondary_structure( | CODE |
| LOW | esm/utils/decoding.py | 206 | def decode_function_annotations( | CODE |
| LOW | esm/utils/decoding.py | 223 | def decode_residue_annotations( | CODE |
| LOW | esm/utils/sequential_dataclass.py | 97 | def _check_sequence_lengths_match(self): | CODE |
| LOW | esm/utils/residue_constants.py | 429 | def load_stereo_chemical_props() -> ( | CODE |
| LOW | esm/utils/residue_constants.py | 1042 | def _make_rigid_group_constants(): | CODE |
| LOW | esm/utils/sampling.py | 109 | def get_default_sampling_config( | CODE |
| LOW | esm/utils/sampling.py | 241 | def sample_residue_annotation_logits( | CODE |
| LOW | esm/utils/msa/msa.py | 23 | def remove_insertions_from_sequence(seq: str) -> str: | CODE |
| LOW⚡ | esm/utils/msa/msa_test.py | 71 | def test_deletions_flow_through_featurization(tmp_path): | CODE |
| LOW⚡ | esm/utils/msa/msa_test.py | 78 | def test_from_sequences_has_no_deletions_and_recomputes(): | CODE |
| LOW⚡ | esm/utils/msa/msa_test.py | 86 | def test_slicing_carries_deletions(tmp_path): | CODE |
| LOW⚡ | esm/utils/msa/msa_test.py | 98 | def test_sliced_deletions_flow_through_featurization(tmp_path): | CODE |
| LOW⚡ | esm/utils/msa/msa_test.py | 107 | def test_deletions_dropped_when_not_column_aligned(): | CODE |
| LOW⚡ | esm/utils/msa/msa_test.py | 117 | def test_pad_to_depth_carries_deletions(tmp_path): | CODE |
| LOW⚡ | esm/utils/msa/msa_test.py | 126 | def test_stack_carries_deletions(tmp_path): | CODE |
| LOW⚡ | esm/utils/msa/msa_test.py | 135 | def test_stack_drops_deletions_if_any_missing(tmp_path): | CODE |
| LOW⚡ | esm/utils/msa/msa_test.py | 141 | def test_concat_carries_deletions_without_join_token(tmp_path): | CODE |
| LOW | esm/utils/msa/msa_test.py | 152 | def test_concat_drops_deletions_with_join_token(tmp_path): | CODE |
| LOW | esm/utils/msa/msa_test.py | 158 | def test_state_dict_round_trip(tmp_path): | CODE |
| LOW | esm/utils/msa/msa_test.py | 170 | def test_state_dict_omits_deletions_when_absent(): | CODE |
| LOW | esm/utils/constants/models.py | 19 | def forge_only_return_single_layer_hidden_states(model_name: str): | CODE |
| LOW | esm/utils/constants/models.py | 23 | def model_is_locally_supported(x: str): | CODE |
| LOW | esm/utils/function/encode_decode.py | 13 | def encode_function_annotations( | CODE |
| LOW | esm/utils/function/encode_decode.py | 136 | def decode_residue_annotation_tokens( | CODE |
| LOW | esm/utils/structure/mmcif_parsing.py | 384 | def _parse_nonpoly_from_mmcif(self) -> dict[tuple, bs.AtomArray]: | CODE |
| LOW | esm/utils/structure/input_builder.py | 83 | def serialize_structure_prediction_input(all_atom_input: StructurePredictionInput): | CODE |
| LOW | esm/utils/structure/input_builder.py | 157 | def deserialize_structure_prediction_input( | CODE |
| LOW | esm/utils/structure/protein_structure.py | 70 | def compute_alignment_tensors( | CODE |
| LOW | esm/utils/structure/protein_structure.py | 165 | def compute_rmsd_no_alignment( | CODE |
| LOW | esm/utils/structure/protein_structure.py | 263 | def compute_gdt_ts_no_alignment( | CODE |
| LOW | esm/utils/structure/input_builder_test.py | 38 | def test_roundtrip_minimal_protein() -> None: | CODE |
| LOW | esm/utils/structure/input_builder_test.py | 43 | def test_roundtrip_protein_with_modifications() -> None: | CODE |
| LOW | esm/utils/structure/input_builder_test.py | 68 | def test_roundtrip_protein_with_msa() -> None: | CODE |
| LOW | esm/utils/structure/input_builder_test.py | 82 | def test_roundtrip_rna_dna_ligand() -> None: | CODE |
| LOW | esm/utils/structure/input_builder_test.py | 99 | def test_roundtrip_full_with_conditioning() -> None: | CODE |
| LOW | esm/utils/structure/input_builder_test.py | 140 | def test_unsupported_sequence_type_raises() -> None: | CODE |
| LOW | esm/utils/structure/protein_chain.py | 243 | def residue_index_no_insertions(self) -> np.ndarray: | CODE |
| LOW | esm/utils/structure/protein_chain.py | 774 | def chain_iterable_from_mmcif( | CODE |
| LOW | esm/utils/structure/protein_chain.py | 982 | def from_backbone_atom_coordinates( | CODE |
| LOW | esm/utils/structure/protein_chain.py | 1369 | def to_structure_encoder_inputs( | CODE |
| LOW | esm/utils/structure/protein_complex.py | 57 | def _parse_operation_expression(expression): | CODE |
| 87 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | esm/models/esmfold2/constants.py | 6 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | esm/models/esmfold2/constants.py | 8 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | esm/models/esmfold2/constants.py | 15 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | esm/models/esmfold2/constants.py | 17 | # ============================================================================= | COMMENT |
| MEDIUM | esm/models/esmfold2/constants.py | 55 | # ============================================================================= | COMMENT |
| MEDIUM | esm/models/esmfold2/constants.py | 57 | # ============================================================================= | COMMENT |
| MEDIUM | esm/models/esmfold2/constants.py | 164 | # ============================================================================= | COMMENT |
| MEDIUM | esm/models/esmfold2/constants.py | 166 | # ============================================================================= | COMMENT |
| MEDIUM | esm/models/esmfold2/constants.py | 201 | # ============================================================================= | COMMENT |
| MEDIUM | esm/models/esmfold2/constants.py | 203 | # ============================================================================= | COMMENT |
| MEDIUM | esm/models/esmfold2/constants.py | 302 | # ============================================================================= | COMMENT |
| MEDIUM | esm/models/esmfold2/constants.py | 304 | # ============================================================================= | COMMENT |
| MEDIUM | esm/models/esmfold2/prepare_input.py | 60 | # ============================================================================= | COMMENT |
| MEDIUM | esm/models/esmfold2/prepare_input.py | 62 | # ============================================================================= | COMMENT |
| MEDIUM | esm/models/esmfold2/prepare_input.py | 107 | # ============================================================================= | COMMENT |
| MEDIUM | esm/models/esmfold2/prepare_input.py | 109 | # ============================================================================= | COMMENT |
| MEDIUM | esm/models/esmfold2/prepare_input.py | 186 | # ============================================================================= | COMMENT |
| MEDIUM | esm/models/esmfold2/prepare_input.py | 188 | # ============================================================================= | COMMENT |
| MEDIUM | esm/models/esmfold2/prepare_input.py | 670 | # ============================================================================= | COMMENT |
| MEDIUM | esm/models/esmfold2/prepare_input.py | 672 | # ============================================================================= | COMMENT |
| MEDIUM | esm/models/esmfold2/prepare_input.py | 820 | # ============================================================================= | COMMENT |
| MEDIUM | esm/models/esmfold2/prepare_input.py | 822 | # ============================================================================= | COMMENT |
| MEDIUM | esm/models/esmfold2/prepare_input.py | 1465 | # ============================================================================= | COMMENT |
| MEDIUM | esm/models/esmfold2/prepare_input.py | 1467 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | esm/sdk/experimental/guided_generation.py | 107 | # ---------------------------------------------- | COMMENT |
| MEDIUM⚡ | esm/sdk/experimental/guided_generation.py | 109 | # ---------------------------------------------- | COMMENT |
| MEDIUM⚡ | esm/sdk/experimental/guided_generation.py | 119 | # ---------------------------------------------- | COMMENT |
| MEDIUM⚡ | esm/sdk/experimental/guided_generation.py | 121 | # ---------------------------------------------- | COMMENT |
| MEDIUM | cookbook/snippets/esmc.py | 21 | # ================================================================ | COMMENT |
| MEDIUM | cookbook/snippets/esmc.py | 23 | # ================================================================ | COMMENT |
| MEDIUM | cookbook/snippets/esmc.py | 63 | # ================================================================ | COMMENT |
| MEDIUM | cookbook/snippets/esmc.py | 65 | # ================================================================ | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | esm/utils/generation.py | 37 | CODE | |
| LOW | esm/utils/generation.py | 66 | CODE | |
| LOW | esm/utils/generation.py | 130 | CODE | |
| LOW | esm/utils/sequential_dataclass.py | 97 | CODE | |
| LOW | esm/utils/residue_constants.py | 1118 | CODE | |
| LOW | esm/utils/sampling.py | 133 | CODE | |
| LOW | esm/utils/forge_context_manager.py | 88 | CODE | |
| LOW | esm/utils/constants/esm3.py | 105 | CODE | |
| LOW | esm/utils/structure/mmcif_parsing.py | 101 | CODE | |
| LOW | esm/utils/structure/mmcif_parsing.py | 146 | CODE | |
| LOW | esm/utils/structure/mmcif_parsing.py | 202 | CODE | |
| LOW | esm/utils/structure/mmcif_parsing.py | 384 | CODE | |
| LOW | esm/utils/structure/mmcif_parsing.py | 449 | CODE | |
| LOW | esm/utils/structure/input_builder.py | 83 | CODE | |
| LOW | esm/utils/structure/input_builder.py | 157 | CODE | |
| LOW | esm/utils/structure/molecular_complex.py | 447 | CODE | |
| LOW | esm/utils/structure/molecular_complex.py | 732 | CODE | |
| LOW | esm/utils/structure/molecular_complex.py | 895 | CODE | |
| LOW | esm/utils/structure/molecular_complex.py | 1065 | CODE | |
| LOW | esm/utils/structure/molecular_complex.py | 1298 | CODE | |
| LOW | esm/utils/structure/protein_chain.py | 88 | CODE | |
| LOW | esm/utils/structure/protein_chain.py | 905 | CODE | |
| LOW | esm/utils/structure/protein_chain.py | 1019 | CODE | |
| LOW | esm/utils/structure/protein_complex.py | 803 | CODE | |
| LOW | esm/utils/structure/molecular_complex_test.py | 304 | CODE | |
| LOW | esm/models/esmfold2/conformers.py | 268 | CODE | |
| LOW | esm/models/esmfold2/processor.py | 86 | CODE | |
| LOW | esm/models/esmfold2/paired_msa.py | 95 | CODE | |
| LOW | esm/models/esmfold2/prepare_input.py | 157 | CODE | |
| LOW | esm/models/esmfold2/prepare_input.py | 329 | CODE | |
| LOW | esm/models/esmfold2/prepare_input.py | 675 | CODE | |
| LOW | esm/models/esmfold2/prepare_input.py | 690 | CODE | |
| LOW | esm/models/esmfold2/prepare_input.py | 825 | CODE | |
| LOW | esm/models/esmfold2/prepare_input.py | 965 | CODE | |
| LOW | esm/models/esmfold2/prepare_input.py | 1105 | CODE | |
| LOW | esm/models/esmfold2/prepare_input.py | 1145 | CODE | |
| LOW | esm/models/esmfold2/output.py | 18 | CODE | |
| LOW | esm/models/esmfold2/output.py | 129 | CODE | |
| LOW | esm/tokenization/residue_tokenizer.py | 73 | CODE | |
| LOW | esm/sdk/forge.py | 133 | CODE | |
| LOW | esm/sdk/api.py | 56 | CODE | |
| LOW | esm/sdk/api.py | 165 | CODE | |
| LOW | esm/widgets/utils/prompting.py | 385 | CODE | |
| LOW | esm/widgets/components/results_visualizer.py | 21 | CODE | |
| LOW | esm/widgets/components/results_visualizer.py | 55 | CODE | |
| LOW | esm/widgets/components/sequence_prompt_selector.py | 13 | CODE | |
| LOW | esm/widgets/components/sequence_prompt_selector.py | 96 | CODE | |
| LOW | esm/widgets/components/structure_prompt_selector.py | 19 | CODE | |
| LOW | esm/widgets/components/structure_prompt_selector.py | 94 | CODE | |
| LOW | esm/widgets/components/structure_prompt_selector.py | 309 | CODE | |
| LOW | esm/widgets/views/prediction.py | 14 | CODE | |
| LOW | esm/widgets/views/prediction.py | 80 | CODE | |
| LOW | esm/widgets/views/esm3_generation_launcher.py | 21 | CODE | |
| LOW | esm/widgets/views/esm3_generation_launcher.py | 133 | CODE | |
| LOW | esm/widgets/views/inverse_folding.py | 14 | CODE | |
| LOW | esm/widgets/views/inverse_folding.py | 54 | CODE | |
| LOW | esm/widgets/views/esm3_prompt_preview.py | 74 | CODE | |
| LOW | esm/widgets/views/esm3_prompt_preview.py | 133 | CODE | |
| LOW | cookbook/tutorials/binder_design.py | 828 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | esm/utils/types.py | 1 | CODE | |
| LOW | esm/utils/msa/msa.py | 1 | CODE | |
| LOW | esm/utils/msa/__init__.py | 1 | CODE | |
| LOW | esm/utils/msa/__init__.py | 1 | CODE | |
| LOW | esm/utils/msa/__init__.py | 1 | CODE | |
| LOW | esm/utils/structure/aligner.py | 1 | CODE | |
| LOW | esm/utils/structure/mmcif_parsing.py | 1 | CODE | |
| LOW | esm/utils/structure/affine3d.py | 1 | CODE | |
| LOW | esm/utils/structure/molecular_complex.py | 1 | CODE | |
| LOW | esm/utils/structure/protein_structure.py | 1 | CODE | |
| LOW | esm/utils/structure/protein_chain.py | 1 | CODE | |
| LOW | esm/utils/structure/protein_complex.py | 1 | CODE | |
| LOW | esm/models/esm3.py | 1 | CODE | |
| LOW | esm/models/esmc.py | 1 | CODE | |
| LOW | esm/models/esmfold2/conformers.py | 7 | CODE | |
| LOW | esm/models/esmfold2/__init__.py | 1 | CODE | |
| LOW | esm/models/esmfold2/__init__.py | 2 | CODE | |
| LOW | esm/models/esmfold2/__init__.py | 3 | CODE | |
| LOW | esm/models/esmfold2/__init__.py | 3 | CODE | |
| LOW | esm/models/esmfold2/__init__.py | 4 | CODE | |
| LOW | esm/models/esmfold2/__init__.py | 4 | CODE | |
| LOW | esm/models/esmfold2/__init__.py | 5 | CODE | |
| LOW | esm/models/esmfold2/__init__.py | 5 | CODE | |
| LOW | esm/models/esmfold2/__init__.py | 5 | CODE | |
| LOW | esm/models/esmfold2/__init__.py | 5 | CODE | |
| LOW | esm/models/esmfold2/__init__.py | 5 | CODE | |
| LOW | esm/models/esmfold2/__init__.py | 5 | CODE | |
| LOW | esm/models/esmfold2/__init__.py | 5 | CODE | |
| LOW | esm/models/esmfold2/__init__.py | 5 | CODE | |
| LOW | esm/models/esmfold2/__init__.py | 5 | CODE | |
| LOW | esm/models/esmfold2/__init__.py | 16 | CODE | |
| LOW | esm/models/esmfold2/__init__.py | 16 | CODE | |
| LOW | esm/models/esmfold2/__init__.py | 16 | CODE | |
| LOW | esm/models/esmfold2/types.py | 9 | CODE | |
| LOW | esm/models/esmfold2/types.py | 10 | CODE | |
| LOW | esm/models/esmfold2/types.py | 11 | CODE | |
| LOW | esm/models/esmfold2/types.py | 11 | CODE | |
| LOW | esm/models/esmfold2/types.py | 11 | CODE | |
| LOW | esm/models/esmfold2/types.py | 11 | CODE | |
| LOW | esm/models/esmfold2/types.py | 11 | CODE | |
| LOW | esm/models/esmfold2/types.py | 11 | CODE | |
| LOW | esm/models/esmfold2/types.py | 11 | CODE | |
| LOW | esm/models/esmfold2/types.py | 11 | CODE | |
| LOW | esm/models/esmfold2/prepare_input.py | 7 | CODE | |
| LOW | esm/sdk/forge.py | 1 | CODE | |
| LOW | esm/sdk/api.py | 1 | CODE | |
| LOW | esm/sdk/experimental/__init__.py | 1 | CODE | |
| LOW | esm/sdk/experimental/__init__.py | 1 | CODE | |
| LOW | esm/sdk/experimental/__init__.py | 1 | CODE | |
| LOW | esm/sdk/experimental/__init__.py | 6 | CODE | |
| LOW | esm/sdk/experimental/__init__.py | 6 | CODE | |
| LOW | esm/sdk/experimental/constrained_generation.py | 1 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | esm/utils/forge_context_manager.py | 137 | except Exception as e: | CODE |
| LOW | esm/utils/structure/mmcif_parsing.py | 98 | except Exception as e: | CODE |
| LOW | esm/utils/structure/mmcif_parsing.py | 142 | except Exception: | CODE |
| LOW | esm/utils/structure/mmcif_parsing.py | 191 | except Exception: | CODE |
| LOW | esm/utils/structure/mmcif_parsing.py | 495 | except Exception: | CODE |
| LOW | esm/utils/structure/molecular_complex.py | 476 | except Exception: | CODE |
| LOW | esm/utils/structure/molecular_complex.py | 540 | except Exception: | CODE |
| LOW | esm/utils/structure/molecular_complex.py | 1061 | except Exception: | CODE |
| LOW | esm/utils/structure/molecular_complex.py | 1133 | except Exception as e: | CODE |
| LOW | esm/models/esmfold2/conformers.py | 59 | except Exception as e: | CODE |
| LOW | esm/sdk/forge.py | 939 | except Exception as e: | STRING |
| LOW | esm/sdk/retry.py | 34 | except Exception: | CODE |
| MEDIUM | esm/sdk/retry.py | 31 | def log_retry_attempt(retry_state): | CODE |
| LOW | esm/sdk/sagemaker.py | 46 | except Exception as e: | CODE |
| LOW | esm/sdk/sagemaker.py | 108 | except Exception as e: | CODE |
| LOW | esm/sdk/base_forge_client.py | 128 | except Exception as e: | CODE |
| LOW | esm/sdk/base_forge_client.py | 158 | except Exception as e: | CODE |
| LOW | esm/widgets/utils/protein_import.py | 110 | except Exception as e: | CODE |
| MEDIUM | esm/widgets/utils/protein_import.py | 112 | wrapped_print(f"Error: {e}") | CODE |
| LOW | esm/widgets/utils/protein_import.py | 148 | except Exception as e: | CODE |
| MEDIUM | esm/widgets/utils/protein_import.py | 150 | wrapped_print(f"Error: {e}") | CODE |
| MEDIUM | esm/widgets/utils/protein_import.py | 132 | def on_upload(self, _): | CODE |
| LOW | esm/widgets/components/structure_prompt_selector.py | 190 | except Exception as e: | CODE |
| LOW | esm/widgets/components/structure_prompt_selector.py | 331 | except Exception as e: | CODE |
| LOW | esm/widgets/components/function_annotator.py | 123 | except Exception as e: | CODE |
| MEDIUM | esm/widgets/components/function_annotator.py | 125 | print(f"Error: {e}") | CODE |
| LOW | esm/widgets/views/prediction.py | 149 | except Exception as e: | CODE |
| MEDIUM | esm/widgets/views/prediction.py | 80 | def on_click_predict(_): | CODE |
| LOW | esm/widgets/views/esm3_generation_launcher.py | 185 | except Exception: | CODE |
| LOW | esm/widgets/views/inverse_folding.py | 86 | except Exception as e: | CODE |
| MEDIUM | esm/widgets/views/inverse_folding.py | 54 | def on_click_inverse_fold(_): | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | esm/utils/residue_constants.py | 494 | # Create a fast lookup dict for bond lengths. | COMMENT |
| MEDIUM | esm/utils/residue_constants.py | 870 | # Define a restype name for all unknown residues. | COMMENT |
| MEDIUM | esm/utils/structure/mmcif_parsing.py | 330 | # Create a basic mapping based on the chain_data | COMMENT |
| MEDIUM | esm/utils/structure/molecular_complex.py | 580 | # Create a mapping from chain_id to numeric indices | COMMENT |
| MEDIUM | esm/models/esm3.py | 391 | # The following methods are for the ESM3InferenceClient interface | COMMENT |
| MEDIUM | esm/widgets/components/function_annotator.py | 33 | # Create a text box input and a list of children to select from | COMMENT |
| MEDIUM | cookbook/snippets/sae_example.py | 19 | # Create a protein | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | esm/layers/transformer_stack.py | 26 | CODE | |
| LOW | esm/layers/blocks.py | 73 | CODE | |
| LOW | esm/utils/structure/protein_complex.py | 936 | CODE | |
| LOW | esm/models/esm3.py | 267 | CODE | |
| LOW | esm/models/vqvae.py | 49 | CODE | |
| LOW | esm/models/esmc.py | 191 | CODE | |
| LOW | esm/models/esmfold2/processor.py | 327 | CODE | |
| LOW | esm/sdk/forge.py | 1232 | CODE | |
| LOW | esm/sdk/sagemaker.py | 59 | CODE | |
| LOW | esm/sdk/sagemaker.py | 119 | CODE | |
| LOW | esm/widgets/utils/drawing/draw_category_array.py | 13 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | esm/utils/residue_constants.py | 798 | Maps the given sequence into a one-hot encoded matrix. Args: sequence: An amino acid sequence. mapping: | STRING |
| HIGH | esm/models/esm3.py | 283 | Performs forward pass through the ESM3 model. Check utils to see how to tokenize inputs from raw data. | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | esm/utils/structure/mmcif_parsing.py | 286 | # Check if there are duplicate residue numbers in this chain | COMMENT |
| LOW | esm/utils/structure/molecular_complex.py | 298 | # Check if token is a standard 3-letter amino acid code | COMMENT |
| LOW | esm/utils/structure/molecular_complex.py | 459 | # Check if input is a file path or mmCIF string content | COMMENT |
| LOW | esm/utils/structure/molecular_complex.py | 1168 | # Check if both tokens have atoms | COMMENT |
| LOW | esm/utils/structure/molecular_complex.py | 1236 | # Check if both tokens have atoms | COMMENT |
| LOW | esm/models/esmfold2/prepare_input.py | 226 | # Check if standard residue (has predefined atom list) | COMMENT |
| LOW | esm/widgets/components/sequence_prompt_selector.py | 123 | a = 0.5 # Set alpha to 0.5 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | cookbook/snippets/esm3.py | 204 | "To try this script with a Forge/Biohub Platform API, please run ESM_API_KEY=your_api_key python esm3.py" | CODE |
| HIGH | cookbook/snippets/esmc.py | 137 | "To try this script with a Forge/Biohub Platform API, please run ESM_API_KEY=your_api_key python esm3.py" | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | esm/utils/msa/__init__.py | 3 | __all__ = ["MSA", "FastMSA", "remove_insertions_from_sequence"] | CODE |
| LOW | esm/models/esmfold2/__init__.py | 22 | __all__ = [ | CODE |
| LOW | esm/models/esmfold2/processor.py | 422 | __all__ = ["ESMFold2InputBuilder", "clean_esmfold2_input"] | CODE |
| LOW | esm/models/esmfold2/types.py | 22 | __all__ = [ | CODE |
| LOW | esm/sdk/experimental/__init__.py | 8 | __all__ = [ | CODE |
| LOW | esm/sdk/experimental/constrained_generation.py | 72 | def update_lambda(self, g: float, eta: float, gamma: float) -> None: | CODE |
| LOW | cookbook/tutorials/binder_design.py | 66 | logger = logging.getLogger(__name__) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | cookbook/tutorials/binder_design.py | 1185 | .run_commands("apt update && apt install -y git build-essential") | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | esm/utils/misc.py | 281 | # For MPS, just return a no-op context manager (nullcontext) since MPS does not support autocast. | COMMENT |
| MEDIUM | esm/utils/structure/molecular_complex.py | 347 | # Normalize to uppercase and strip whitespace for robust matching | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | README.md | 35 | The **[ESM Atlas](https://biohub.ai/esm/protein/atlas)** is a map of 6.8 billion proteins covering the full breadth of l | CODE |
| MEDIUM | cookbook/tutorials/README.md | 38 | | Generating proteins with ESM3 | `esm3_generate.ipynb`<br>[![Open In Colab](https://colab.research.google.com/assets/c | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | esm/layers/rotary.py | 1 | # Copyright 2022 EleutherAI and the HuggingFace Inc. team. All rights reserved. | COMMENT |
| LOW | esm/utils/residue_constants.py | 1 | # Copyright 2025 EvolutionaryScale | COMMENT |