Repository Analysis

Chia-Network/chia-blockchain

Chia blockchain python implementation (full node, farmer, harvester, timelord, and wallet)

16.2 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of Chia-Network/chia-blockchain, a Python project with 10,808 GitHub stars. SynthScan v2.0 examined 316,057 lines of code across 1079 source files, recording 4496 pattern matches distributed across 18 syntactic categories. The overall adjusted score of 16.2 places this repository in the Moderate AI signal 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).

16.2
Adjusted Score
16.2
Raw Score
100%
Time Factor
2026-07-14
Last Push
10.8K
Stars
Python
Language
316.1K
Lines of Code
1.1K
Files
4.5K
Pattern Hits
2026-07-14
Scan Date
0.06
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

Longitudinal tracking requires multiple scan runs. Once this repository is re-scanned after new commits land, this chart will visualise how the synthetic code signal evolves over time — enabling you to detect whether AI authorship is growing, stabilising, or being actively corrected by human engineers.

No multi-scan history yet — run the scanner again to build trend data.

Severity Breakdown

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.

CRITICAL 26HIGH 38MEDIUM 163LOW 4269

Directory Score Breakdown

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.

Pattern Findings

The scanner identified 4496 distinct pattern matches across 18 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.

Hyper-Verbose Identifiers2360 hits · 2298 pts
SeverityFileLineSnippetContext
LOWtools/validate_rpcs.py27def get_height_to_hash_filename(root_path: Path, config: dict[str, Any]) -> Path:CODE
LOWtools/validate_rpcs.py47def get_block_hash_for_height(height: int, height_to_hash: bytes) -> bytes32:CODE
LOWtools/validate_rpcs.py155async def node_spends_with_conditions(CODE
LOWbenchmarks/address_manager_store.py87async def benchmark_serialize_deserialize(iterations: int = 5) -> None:CODE
LOWbenchmarks/mempool-long-lived.py92 async def get_unspent_lineage_info_for_puzzle_hash(_: bytes32) -> UnspentLineageInfo | None:CODE
LOWbenchmarks/streamable.py67def get_random_benchmark_object() -> BenchmarkClass:CODE
LOWbenchmarks/mempool.py94 async def get_unspent_lineage_info_for_puzzle_hash(_: bytes32) -> UnspentLineageInfo | None:CODE
LOWchia/introducer/introducer.py61 def _set_state_changed_callback(self, callback: StateChangedProtocol) -> None:CODE
LOWchia/introducer/start_introducer.py26def create_introducer_service(CODE
LOWchia/introducer/introducer_api.py37 def _set_state_changed_callback(self, callback: StateChangedProtocol) -> None:CODE
LOWchia/consensus/block_body_validation.py158def validate_block_merkle_roots(CODE
LOWchia/consensus/generator_tools.py53def tx_removals_and_additions(results: SpendBundleConditions | None) -> tuple[list[bytes32], list[Coin]]:CODE
LOWchia/consensus/vdf_info_computation.py11def get_signage_point_vdf_info(CODE
LOWchia/consensus/challenge_tree.py35def extract_slot_challenge_data(CODE
LOWchia/consensus/challenge_tree.py115def build_challenge_merkle_tree(slot_data: list[SlotChallengeData]) -> bytes32:CODE
LOWchia/consensus/challenge_tree.py133def compute_challenge_merkle_root(CODE
LOWchia/consensus/blockchain_interface.py61 async def get_block_records_in_range(self, start: int, stop: int) -> dict[bytes32, BlockRecord]: ...CODE
LOWchia/consensus/blockchain_interface.py63 async def get_header_blocks_in_range(CODE
LOWchia/consensus/blockchain_interface.py69 async def persist_sub_epoch_challenge_segments(CODE
LOWchia/consensus/blockchain_interface.py73 async def get_sub_epoch_challenge_segments(CODE
LOWchia/consensus/prev_transaction_block.py9def get_prev_transaction_block(CODE
LOWchia/consensus/full_block_to_block_record.py90def header_block_to_sub_block_record(CODE
LOWchia/consensus/block_rewards.py33def calculate_base_farmer_reward(height: uint32) -> uint64:CODE
LOWchia/consensus/block_creation.py411def unfinished_block_to_full_block(CODE
LOWchia/consensus/block_creation.py519def calculate_infusion_point_total_iters(CODE
LOWchia/consensus/block_creation.py529def unfinished_block_to_full_block_with_mmr(CODE
LOWchia/consensus/pot_iterations.py18def calculate_sp_interval_iters(constants: ConsensusConstants, sub_slot_iters: uint64) -> uint64:CODE
LOWchia/consensus/pot_iterations.py50def validate_pospace_and_get_required_iters(CODE
LOWchia/consensus/pot_iterations.py81def calculate_iterations_quality(CODE
LOWchia/consensus/block_record.py19 def prev_transaction_block_height(self) -> uint32: ...CODE
LOWchia/consensus/block_record.py22 def prev_transaction_block_hash(self) -> bytes32 | None: ...CODE
LOWchia/consensus/mmr.py201 def get_inclusion_proof_by_index(self, leaf_index: int) -> tuple[uint32, bytes, list[bytes32], bytes32] | None:CODE
LOWchia/consensus/blockchain.py633 def get_next_sub_slot_iters_and_difficulty(self, header_hash: bytes32, new_slot: bool) -> tuple[uint64, uint64]:CODE
LOWchia/consensus/blockchain.py694 def get_recent_reward_challenges(self) -> list[tuple[bytes32, uint128]]:CODE
LOWchia/consensus/blockchain.py715 async def validate_unfinished_block_header(CODE
LOWchia/consensus/blockchain.py785 async def validate_unfinished_block(CODE
LOWchia/consensus/blockchain.py903 async def get_block_records_in_range(self, start: int, stop: int) -> dict[bytes32, BlockRecord]:CODE
LOWchia/consensus/blockchain.py906 async def get_header_blocks_in_range(CODE
LOWchia/consensus/blockchain.py950 async def get_header_block_by_height(CODE
LOWchia/consensus/blockchain.py1021 async def persist_sub_epoch_challenge_segments(CODE
LOWchia/consensus/blockchain.py1026 async def get_sub_epoch_challenge_segments(CODE
LOWchia/consensus/get_block_challenge.py16def final_eos_is_already_included(CODE
LOWchia/consensus/difficulty_adjustment.py52def _get_second_to_last_transaction_block_in_previous_epoch(CODE
LOWchia/consensus/difficulty_adjustment.py130def height_can_be_first_in_epoch(constants: ConsensusConstants, height: uint32) -> bool:CODE
LOWchia/consensus/difficulty_adjustment.py134def can_finish_sub_and_full_epoch(CODE
LOWchia/consensus/difficulty_adjustment.py353def get_next_sub_slot_iters_and_difficulty(CODE
LOWchia/consensus/condition_tools.py74def make_aggsig_final_message(CODE
LOWchia/consensus/condition_tools.py138def pkm_pairs_for_conditions_dict(CODE
LOWchia/consensus/condition_tools.py170def created_outputs_for_conditions_dict(CODE
LOWchia/consensus/condition_tools.py183def conditions_dict_for_solution(CODE
LOWchia/consensus/coin_store_protocol.py42 async def get_coins_added_at_height(self, height: uint32) -> list[CoinRecord]:CODE
LOWchia/consensus/coin_store_protocol.py47 async def get_coins_removed_at_height(self, height: uint32) -> list[CoinRecord]:CODE
LOWchia/consensus/coin_store_protocol.py52 async def get_coin_records_by_puzzle_hash(CODE
LOWchia/consensus/coin_store_protocol.py63 async def get_coin_records_by_puzzle_hashes(CODE
LOWchia/consensus/coin_store_protocol.py74 async def get_coin_records_by_names(CODE
LOWchia/consensus/coin_store_protocol.py85 async def get_coin_states_by_puzzle_hashes(CODE
LOWchia/consensus/coin_store_protocol.py97 async def get_coin_records_by_parent_ids(CODE
LOWchia/consensus/coin_store_protocol.py123 async def batch_coin_states_by_puzzle_hashes(CODE
LOWchia/consensus/coin_store_protocol.py138 async def get_unspent_lineage_info_for_puzzle_hash(self, puzzle_hash: bytes32) -> UnspentLineageInfo | None:CODE
LOWchia/consensus/block_header_validation.py47def validate_unfinished_header_block(CODE
2300 more matches not shown…
Unused Imports877 hits · 863 pts
SeverityFileLineSnippetContext
LOWmanage-mypy.py3CODE
LOWactivated.py3CODE
LOWpoetry-check.py1CODE
LOWinstallhelper.py7CODE
LOWtools/run_block.py39CODE
LOWtools/generate_chain.py1CODE
LOWtools/test_full_sync.py3CODE
LOWtools/manage_clvm.py1CODE
LOWtools/chialispp.py1CODE
LOWtools/validate_rpcs.py3CODE
LOWtools/analyze_memory_profile.py1CODE
LOWtools/cpu_utilization.py1CODE
LOWbuild_scripts/check_dependency_artifacts.py1CODE
LOWbenchmarks/address_manager_store.py1CODE
LOWbenchmarks/mempool-long-lived.py1CODE
LOWbenchmarks/coin_store.py1CODE
LOWbenchmarks/streamable.py1CODE
LOWbenchmarks/block_ref.py1CODE
LOWbenchmarks/jsonify.py1CODE
LOWbenchmarks/blockchains.py1CODE
LOWbenchmarks/utils.py1CODE
LOWbenchmarks/mempool.py1CODE
LOWbenchmarks/block_store.py1CODE
LOWchia/__init__.py1CODE
LOWchia/__main__.py1CODE
LOWchia/introducer/introducer.py1CODE
LOWchia/introducer/introducer_service.py1CODE
LOWchia/introducer/start_introducer.py1CODE
LOWchia/introducer/introducer_api.py1CODE
LOWchia/consensus/block_body_validation.py1CODE
LOWchia/consensus/generator_tools.py1CODE
LOWchia/consensus/vdf_info_computation.py1CODE
LOWchia/consensus/challenge_tree.py8CODE
LOWchia/consensus/blockchain_interface.py1CODE
LOWchia/consensus/condition_costs.py1CODE
LOWchia/consensus/prev_transaction_block.py1CODE
LOWchia/consensus/block_height_map.py1CODE
LOWchia/consensus/multiprocess_validation.py1CODE
LOWchia/consensus/make_sub_epoch_summary.py1CODE
LOWchia/consensus/full_block_to_block_record.py1CODE
LOWchia/consensus/constants.py1CODE
LOWchia/consensus/block_rewards.py1CODE
LOWchia/consensus/coinbase.py1CODE
LOWchia/consensus/find_fork_point.py1CODE
LOWchia/consensus/deficit.py1CODE
LOWchia/consensus/block_creation.py1CODE
LOWchia/consensus/pot_iterations.py1CODE
LOWchia/consensus/block_record.py1CODE
LOWchia/consensus/default_constants.py1CODE
LOWchia/consensus/mmr.py1CODE
LOWchia/consensus/blockchain_mmr.py1CODE
LOWchia/consensus/block_height_map_protocol.py1CODE
LOWchia/consensus/signage_point.py1CODE
LOWchia/consensus/blockchain.py1CODE
LOWchia/consensus/get_block_generator.py1CODE
LOWchia/consensus/get_block_challenge.py1CODE
LOWchia/consensus/difficulty_adjustment.py1CODE
LOWchia/consensus/pos_quality.py1CODE
LOWchia/consensus/augmented_chain.py1CODE
LOWchia/consensus/condition_tools.py1CODE
817 more matches not shown…
Excessive Try-Catch Wrapping351 hits · 367 pts
SeverityFileLineSnippetContext
LOWPRETTY_GOOD_PRACTICES.md791 except Exception as e:CODE
MEDIUMPRETTY_GOOD_PRACTICES.md786def main():CODE
LOWtools/manage_clvm.py310 except Exception:CODE
LOWtools/manage_clvm.py399 except Exception:CODE
LOWtools/validate_rpcs.py164 except Exception as e:CODE
LOWtools/validate_rpcs.py178 except Exception as e:CODE
LOWtools/validate_rpcs.py193 except Exception as e:CODE
LOWtools/analyze_memory_profile.py62 except Exception:CODE
LOWtools/analyze_memory_profile.py105 except Exception as e:CODE
LOWtools/cpu_utilization.py50 except Exception:CODE
LOWtools/cpu_utilization.py58 except Exception:CODE
LOWbenchmarks/utils.py46 except Exception:CODE
LOWbenchmarks/utils.py51 except Exception:CODE
MEDIUMbenchmarks/utils.py38def get_commit_hash() -> str:CODE
LOW.github/workflows/dependency-cursor-review.yml932 except Exception:STRING
LOW.github/workflows/dependency-cursor-review.yml939 except Exception:STRING
LOW.github/workflows/dependency-cursor-review.yml947 except Exception:STRING
MEDIUM.github/workflows/dependency-cursor-review.yml788def read_file(path):CODE
LOWchia/introducer/introducer.py116 except Exception as e:CODE
LOWchia/introducer/introducer.py128 except Exception as e:CODE
LOWchia/consensus/block_height_map.py92 except Exception as e:CODE
LOWchia/consensus/block_height_map.py99 except Exception as e:CODE
LOWchia/consensus/block_height_map.py171 except Exception:CODE
LOWchia/consensus/multiprocess_validation.py163 except Exception:CODE
LOWchia/plot_sync/sender.py346 except Exception as e:CODE
LOWchia/plot_sync/receiver.py119 except Exception:CODE
LOWchia/plot_sync/receiver.py192 except Exception as e:CODE
LOWchia/ssl/ssl_check.py79 except Exception as e:CODE
LOWchia/ssl/ssl_check.py124 except Exception as e:CODE
LOWchia/ssl/ssl_check.py179 except Exception as e:CODE
LOWchia/pools/pool_wallet.py323 except Exception as e:CODE
LOWchia/types/blockchain_format/vdf.py78 except Exception:CODE
LOWchia/timelord/timelord_api.py160 except Exception:CODE
LOWchia/timelord/timelord_launcher.py109 except Exception as e:CODE
LOWchia/timelord/timelord.py1173 except Exception as e:CODE
LOWchia/timelord/timelord.py263 except Exception as e:CODE
LOWchia/timelord/timelord.py287 except Exception as e:CODE
LOWchia/timelord/timelord.py596 except Exception as e:CODE
LOWchia/timelord/timelord.py955 except Exception:CODE
LOWchia/timelord/timelord.py1135 except Exception:CODE
LOWchia/timelord/timelord.py1204 except Exception as e:CODE
LOWchia/timelord/timelord.py1257 except Exception as e:CODE
LOWchia/seeder/dns_server.py109 except Exception as e:CODE
LOWchia/seeder/dns_server.py223 except Exception as e:CODE
LOWchia/seeder/dns_server.py264 except Exception as e:CODE
LOWchia/seeder/dns_server.py336 except Exception:CODE
LOWchia/seeder/dns_server.py422 except Exception as e:CODE
LOWchia/seeder/crawler.py165 except Exception as e:CODE
LOWchia/seeder/crawler.py198 except Exception as e:CODE
LOWchia/seeder/crawler.py304 except Exception as e:CODE
LOWchia/seeder/crawler.py316 except Exception as e:CODE
LOWchia/seeder/crawler.py346 except Exception as e:CODE
LOWchia/util/files.py29 except Exception as e:CODE
LOWchia/util/files.py34 except Exception:CODE
LOWchia/util/files.py48 except Exception:CODE
LOWchia/util/files.py86 except Exception:CODE
LOWchia/util/files.py95 except Exception:CODE
LOWchia/util/config.py145 except Exception as e:CODE
LOWchia/util/beta_metrics.py114 except Exception as e:CODE
LOWchia/util/safe_cancel_task.py13 except Exception as e:CODE
291 more matches not shown…
Self-Referential Comments114 hits · 350 pts
SeverityFileLineSnippetContext
MEDIUMinstallhelper.py19# The following function is borrowed fromCOMMENT
MEDIUMtools/chialispp.py301 # The following functions maintain that stackCOMMENT
MEDIUMbenchmarks/address_manager_store.py43 # Create the ExtendedPeerInfoCOMMENT
MEDIUM.github/dependabot.yml1# This file is managed by the repo-content-updater project. Manual changes here will result in a PR to bring backCOMMENT
MEDIUMchia/consensus/generator_tools.py24 # Create an empty filter to begin withCOMMENT
MEDIUMchia/apis/farmer_stub.py30 # Create a concrete instance for decorators while keeping the ClassVar type hint for mypyCOMMENT
MEDIUMchia/util/files.py23 # Create the parent directory if necessaryCOMMENT
MEDIUMchia/util/files.py71 # Create the parent directory if necessaryCOMMENT
MEDIUMchia/util/streamable.py740 # Create the object without calling __init__() to avoid unnecessary post-init checks in strictdataclassCOMMENT
MEDIUMchia/util/keyring_wrapper.py266 self.keyring.write_keyring(fresh_salt=True) # Create a new salt since we're changing the passphraseCODE
MEDIUMchia/_tests/clvm/test_member_puzzles.py69 # Create an announcements to be asserted in the delegated puzzleCOMMENT
MEDIUMchia/_tests/clvm/test_member_puzzles.py309 # Create an announcements to be asserted in the delegated puzzleCOMMENT
MEDIUMchia/_tests/clvm/test_member_puzzles.py400 # Create an announcements to be asserted in the delegated puzzleCOMMENT
MEDIUMchia/_tests/tools/test_virtual_project.py504 # Create a temporary YAML configuration fileCOMMENT
MEDIUMchia/_tests/tools/test_legacy_keyring.py30 # Create the legacy keyring file with the old formatCOMMENT
MEDIUMchia/_tests/pools/test_pool_rpc.py1189 # Create a farming plotnft to url http://pool.example.comCOMMENT
MEDIUMchia/_tests/pools/test_pool_rpc.py1372 # Create a farming plotnft to url http://pool.example.comCOMMENT
MEDIUMchia/_tests/pools/test_pool_rpc.py1415 # Create a farming plotnft to url http://pool.example.comCOMMENT
MEDIUMchia/_tests/pools/test_pool_cmdline.py484 # Create a farming plotnft to url http://pool.example.comCOMMENT
MEDIUMchia/_tests/pools/test_pool_cmdline.py600 # Create a second farming plotnft to url http://pool.example.comCOMMENT
MEDIUMchia/_tests/pools/test_pool_cmdline.py680 # Create a self-pooling plotnftCOMMENT
MEDIUMchia/_tests/pools/test_pool_puzzles_lifecycle.py89 # Create the escaping inner puzzleCOMMENT
MEDIUMchia/_tests/pools/test_pool_puzzles_lifecycle.py154 # Create the spend bundleCOMMENT
MEDIUMchia/_tests/core/test_seeder.py365 # Create a mock ResolverCOMMENT
MEDIUMchia/_tests/core/test_farmer_harvester_rpc.py502 # Create a file at the test_path and make sure it detects thisCOMMENT
MEDIUM…/_tests/core/util/test_file_keyring_synchronization.py72 # Create a directory for each process to indicate readinessCOMMENT
MEDIUMchia/_tests/core/custom_types/test_sub_epoch_summary.py25 # Create a basic SubEpochSummaryCOMMENT
MEDIUMchia/_tests/core/server/test_rate_limits_v3.py667 # Create a slow handler so that the initial requests fill the window andCOMMENT
MEDIUMchia/_tests/core/server/test_rate_limits.py416 # The following code checks whether all of the runs resulted in the same number of items in "rate_limits_tx",COMMENT
MEDIUMchia/_tests/core/data_layer/test_plugin.py74 # Create an unreadable config fileCOMMENT
MEDIUMchia/_tests/core/data_layer/test_plugin.py93 # Create a config file with improper JSONCOMMENT
MEDIUMchia/_tests/core/full_node/test_performance.py123 # Create an unfinished blockCOMMENT
MEDIUMchia/_tests/core/full_node/test_address_manager.py756 # Create the new serialization (this would happen automatically through scheduled task)COMMENT
MEDIUMchia/_tests/core/full_node/test_full_node.py4136 # Create a transaction with a height condition that makes it pendingCOMMENT
MEDIUMchia/_tests/core/full_node/test_full_node.py4223 # Create a transaction and add it to the relevant full node's mempoolCOMMENT
MEDIUMchia/_tests/core/full_node/test_full_node.py4673 # Create an unfinished block that would be infused before the currentCOMMENT
MEDIUMchia/_tests/core/mempool/test_mempool_manager.py1386 # Create the spend bundles with a big enough cost that they get close to the limitCOMMENT
MEDIUMchia/_tests/core/mempool/test_mempool_manager.py1390 # Create a spend bundle with a relatively smaller cost.COMMENT
MEDIUMchia/_tests/core/mempool/test_mempool_manager.py1843 # Create a bunch of mempool items that spend the coin in different waysCOMMENT
MEDIUMchia/_tests/core/mempool/test_mempool_manager.py1982 # Create a coin with the identity puzzle hashCOMMENT
MEDIUMchia/_tests/core/mempool/test_mempool_manager.py2394 # Create a mempool item and keep track of its height added to mempoolCOMMENT
MEDIUMchia/_tests/core/mempool/test_mempool.py3218 # Create a spend bundle with a high fee, spending sb_A, which supports dedupCOMMENT
MEDIUMchia/_tests/core/mempool/test_mempool.py3223 # Create a spend bundle, with a low fee, that spends the dedup coin using the same solution ACOMMENT
MEDIUMchia/_tests/core/mempool/test_singleton_fast_forward.py279 # Create a solution for standard transactionCOMMENT
MEDIUMchia/_tests/blockchain/test_block_commitments.py255 # Create a copyCOMMENT
MEDIUMchia/_tests/plotting/test_plot_manager.py714 # Create a directory tree with some subdirectories containing plots, others not.COMMENT
MEDIUMchia/_tests/plotting/test_plot_manager.py765 # Create a directory tree with some subdirectories containing plots, others not.COMMENT
MEDIUMchia/_tests/plotting/test_plot_manager.py770 # Create a plot directory outside of the root plot directoryCOMMENT
MEDIUMchia/_tests/plotting/test_plot_manager.py773 # Create a symlink to the other plot directory from inside the root plot directoryCOMMENT
MEDIUMchia/_tests/wallet/test_coin_management.py172 # Create a cat walletSTRING
MEDIUMchia/_tests/wallet/db_wallet/test_db_graftroot.py40 # Create the coin we're testingCOMMENT
MEDIUMchia/_tests/wallet/db_wallet/test_db_graftroot.py82 # Create the spendCOMMENT
MEDIUMchia/_tests/wallet/vc_wallet/test_vc_lifecycle.py60 # Create a puzzle that will not pass the initial covenant checkCOMMENT
MEDIUMchia/_tests/wallet/nft_wallet/test_nft_wallet.py1019 # Create a NFT with DIDCOMMENT
MEDIUMchia/_tests/wallet/nft_wallet/test_nft_wallet.py1072 # Create a NFT without DID, this will go the unassigned NFT walletCOMMENT
MEDIUMchia/_tests/wallet/nft_wallet/test_nft_wallet.py1192 # Create a NFT with DIDCOMMENT
MEDIUMchia/_tests/wallet/nft_wallet/test_nft_wallet.py1339 # Create a NFT with DIDCOMMENT
MEDIUMchia/_tests/wallet/nft_wallet/test_nft_wallet.py1637 # Create a NFT with DIDCOMMENT
MEDIUMchia/_tests/wallet/nft_wallet/test_nft_wallet.py1834 # Create an NFT with DIDCOMMENT
MEDIUMchia/_tests/wallet/nft_wallet/test_nft_wallet.py2170 # Create an NFT with DIDCOMMENT
54 more matches not shown…
Deep Nesting370 hits · 321 pts
SeverityFileLineSnippetContext
LOWtools/generate_chain.py57CODE
LOWtools/manage_clvm.py205CODE
LOWtools/manage_clvm.py357CODE
LOWtools/chialispp.py329CODE
LOWtools/chialispp.py91CODE
LOWtools/chialispp.py244CODE
LOWtools/analyze_memory_profile.py79CODE
LOWtools/analyze_memory_profile.py112CODE
LOWtools/cpu_utilization.py31CODE
LOWbenchmarks/address_manager_store.py28CODE
LOWbenchmarks/streamable.py237CODE
LOWbenchmarks/blockchains.py34CODE
LOWbenchmarks/mempool.py82CODE
LOWchia/introducer/introducer.py71CODE
LOWchia/consensus/vdf_info_computation.py11CODE
LOWchia/consensus/block_height_map.py186CODE
LOWchia/consensus/multiprocess_validation.py82CODE
LOWchia/consensus/make_sub_epoch_summary.py94CODE
LOWchia/consensus/block_rewards.py10CODE
LOWchia/consensus/block_rewards.py33CODE
LOWchia/consensus/deficit.py7CODE
LOWchia/consensus/block_creation.py54CODE
LOWchia/consensus/block_creation.py287CODE
LOWchia/consensus/blockchain.py694CODE
LOWchia/consensus/blockchain.py906CODE
LOWchia/consensus/blockchain.py1048CODE
LOWchia/consensus/get_block_challenge.py53CODE
LOWchia/consensus/difficulty_adjustment.py134CODE
LOWchia/consensus/block_header_validation.py47CODE
LOWchia/consensus/block_header_validation.py848CODE
LOWchia/plot_sync/sender.py211CODE
LOWchia/plot_sync/sender.py329CODE
LOWchia/ssl/ssl_check.py65CODE
LOWchia/ssl/ssl_check.py100CODE
LOWchia/ssl/ssl_check.py110CODE
LOWchia/pools/pool_config.py128CODE
LOWchia/pools/pool_wallet.py807CODE
LOWchia/types/blockchain_format/proof_of_space.py211CODE
LOWchia/timelord/timelord_launcher.py84CODE
LOWchia/timelord/timelord.py325CODE
LOWchia/timelord/timelord.py404CODE
LOWchia/timelord/timelord.py469CODE
LOWchia/timelord/timelord.py493CODE
LOWchia/timelord/timelord.py565CODE
LOWchia/timelord/timelord.py959CODE
LOWchia/timelord/timelord.py1138CODE
LOWchia/timelord/timelord.py1184CODE
LOWchia/timelord/timelord_state.py184CODE
LOWchia/timelord/timelord_state.py224CODE
LOWchia/seeder/dns_server.py415CODE
LOWchia/seeder/dns_server.py503CODE
LOWchia/seeder/crawl_store.py186CODE
LOWchia/seeder/crawler.py201CODE
LOWchia/util/priority_mutex.py61CODE
LOWchia/util/config.py107CODE
LOWchia/util/config.py303CODE
LOWchia/util/streamable.py251CODE
LOWchia/util/streamable.py327CODE
LOWchia/util/streamable.py576CODE
LOWchia/util/streamable.py654CODE
310 more matches not shown…
Hallucination Indicators26 hits · 280 pts
SeverityFileLineSnippetContext
CRITICALchia/plot_sync/receiver.py341 self._current_sync.delta.valid.additions.copy(), self._current_sync.delta.valid.removals.copy()CODE
CRITICALchia/plot_sync/receiver.py351 self._invalid = self._current_sync.delta.invalid.additions.copy()CODE
CRITICALchia/plot_sync/receiver.py352 self._keys_missing = self._current_sync.delta.keys_missing.additions.copy()CODE
CRITICALchia/plot_sync/receiver.py353 self._duplicates = self._current_sync.delta.duplicates.additions.copy()CODE
CRITICALchia/timelord/timelord_api.py85 f"current rh: {self.timelord.last_state.peak.reward_chain_block.get_hash()}"CODE
CRITICALchia/timelord/timelord_api.py112 if self.timelord.last_state.peak.reward_chain_block.get_hash() == new_peak.reward_chain_block.get_hash():CODE
CRITICALchia/_tests/timelord/test_new_peak.py89 timelord_api.timelord.last_state.peak.reward_chain_block.get_hash()CODE
CRITICALchia/_tests/timelord/test_new_peak.py101 timelord_api.timelord.last_state.peak.reward_chain_block.get_hash()CODE
CRITICALchia/_tests/timelord/test_new_peak.py117 timelord_api.timelord.last_state.peak.reward_chain_block.get_hash()CODE
CRITICALchia/_tests/timelord/test_new_peak.py179 timelord_api.timelord.last_state.peak.reward_chain_block.get_hash()CODE
CRITICALchia/_tests/timelord/test_new_peak.py222 timelord_api.timelord.last_state.peak.reward_chain_block.get_hash()CODE
CRITICALchia/_tests/timelord/test_new_peak.py265 timelord_api.timelord.last_state.peak.reward_chain_block.get_hash()CODE
CRITICALchia/_tests/timelord/test_new_peak.py326 timelord_api.timelord.last_state.peak.reward_chain_block.get_hash()CODE
CRITICALchia/_tests/timelord/test_new_peak.py374 timelord_api.timelord.last_state.peak.reward_chain_block.get_hash()CODE
CRITICALchia/_tests/timelord/test_new_peak.py460 and timelord_api.timelord.last_state.peak.reward_chain_block.get_hash()CODE
CRITICALchia/_tests/timelord/test_new_peak.py488 timelord_api.timelord.last_state.peak.reward_chain_block.get_hash()CODE
CRITICALchia/_tests/timelord/test_new_peak.py531 timelord_api.timelord.last_state.peak.reward_chain_block.get_hash()CODE
CRITICALchia/_tests/timelord/test_new_peak.py628 and timelord_api.timelord.last_state.peak.reward_chain_block.get_hash()CODE
CRITICALchia/_tests/timelord/test_new_peak.py698 timelord_api.timelord.last_state.peak.reward_chain_block.get_hash()CODE
CRITICALchia/wallet/wallet_rpc_api.py525 await self.service.wallet_state_manager.trade_manager.trade_store.get_trade_record(CODE
CRITICALchia/wallet/wallet_rpc_api.py530 await self.service.wallet_state_manager.trade_manager.trade_store.delete_trade_record(CODE
CRITICALchia/wallet/wallet_rpc_api.py1854 await self.service.wallet_state_manager.notification_manager.notification_store.get_notifications(CODE
CRITICALchia/wallet/wallet_rpc_api.py1862 await self.service.wallet_state_manager.notification_manager.notification_store.delete_notifications(CODE
CRITICALchia/wallet/wallet_rpc_api.py2245 all_trades = await self.service.wallet_state_manager.trade_manager.trade_store.get_trades_between(CODE
CRITICALchia/wallet/wallet_rpc_api.py2274 ) = await self.service.wallet_state_manager.trade_manager.trade_store.get_trades_count()CODE
CRITICALchia/full_node/full_node_api.py1332 f"{request.end_of_sub_slot_bundle.challenge_chain.challenge_chain_end_of_slot_vdf.challenge.hex()}. "CODE
Cross-File Repetition31 hits · 155 pts
SeverityFileLineSnippetContext
HIGHbenchmarks/mempool-long-lived.py0this is a subset of blockrecord that the mempool manager uses for peak.STRING
HIGHbenchmarks/mempool.py0this is a subset of blockrecord that the mempool manager uses for peak.STRING
HIGHchia/_tests/core/mempool/test_mempool_manager.py0this is a subset of blockrecord that the mempool manager uses for peak.STRING
HIGHchia/apis/harvester_stub.py0non-functional api stub for timelordapi this is a protocol definition only - methods are not implemented and should neveSTRING
HIGHchia/apis/introducer_stub.py0non-functional api stub for timelordapi this is a protocol definition only - methods are not implemented and should neveSTRING
HIGHchia/apis/solver_stub.py0non-functional api stub for timelordapi this is a protocol definition only - methods are not implemented and should neveSTRING
HIGHchia/apis/full_node_stub.py0non-functional api stub for timelordapi this is a protocol definition only - methods are not implemented and should neveSTRING
HIGHchia/apis/wallet_stub.py0non-functional api stub for timelordapi this is a protocol definition only - methods are not implemented and should neveSTRING
HIGHchia/apis/farmer_stub.py0non-functional api stub for timelordapi this is a protocol definition only - methods are not implemented and should neveSTRING
HIGHchia/apis/timelord_stub.py0non-functional api stub for timelordapi this is a protocol definition only - methods are not implemented and should neveSTRING
HIGHchia/harvester/harvester_rpc_client.py0client to chia rpc, connects to a local service. uses http/json, and converts back from json into native python objects STRING
HIGHchia/farmer/farmer_rpc_client.py0client to chia rpc, connects to a local service. uses http/json, and converts back from json into native python objects STRING
HIGHchia/wallet/wallet_rpc_client.py0client to chia rpc, connects to a local service. uses http/json, and converts back from json into native python objects STRING
HIGHchia/full_node/full_node_rpc_client.py0client to chia rpc, connects to a local service. uses http/json, and converts back from json into native python objects STRING
HIGHchia/rpc/rpc_client.py0client to chia rpc, connects to a local service. uses http/json, and converts back from json into native python objects STRING
HIGHchia/_tests/core/data_layer/test_data_store_schema.py0insert into root(tree_id, generation, node_hash, status) values(:tree_id, :generation, :node_hash, :status)STRING
HIGHchia/_tests/core/data_layer/test_data_store.py0insert into root(tree_id, generation, node_hash, status) values(:tree_id, :generation, :node_hash, :status)STRING
HIGHchia/data_layer/data_store.py0insert into root(tree_id, generation, node_hash, status) values(:tree_id, :generation, :node_hash, :status)STRING
HIGHchia/_tests/core/full_node/test_full_node.py0true when running on macos with an intel cpu (x86_64). used to skip slow test params.STRING
HIGHchia/_tests/util/test_full_block_utils.py0true when running on macos with an intel cpu (x86_64). used to skip slow test params.STRING
HIGHchia/_tests/blockchain/test_blockchain.py0true when running on macos with an intel cpu (x86_64). used to skip slow test params.STRING
HIGHchia/data_layer/dl_wallet_store.py0walletuserstore keeps track of all user created wallets and necessary smart-contract dataSTRING
HIGHchia/wallet/wallet_user_store.py0walletuserstore keeps track of all user created wallets and necessary smart-contract dataSTRING
HIGHchia/wallet/vc_wallet/vc_store.py0walletuserstore keeps track of all user created wallets and necessary smart-contract dataSTRING
HIGHchia/data_layer/data_layer_wallet.py0this must be called under the wallet state manager lockSTRING
HIGHchia/wallet/nft_wallet/nft_wallet.py0this must be called under the wallet state manager lockSTRING
HIGHchia/wallet/did_wallet/did_wallet.py0this must be called under the wallet state manager lockSTRING
HIGHchia/wallet/vc_wallet/cr_cat_wallet.py0notification from wallet state manager that wallet has been received.STRING
HIGHchia/wallet/nft_wallet/nft_wallet.py0notification from wallet state manager that wallet has been received.STRING
HIGHchia/wallet/did_wallet/did_wallet.py0notification from wallet state manager that wallet has been received.STRING
HIGHchia/wallet/cat_wallet/cat_wallet.py0notification from wallet state manager that wallet has been received.STRING
Modern Structural Boilerplate105 hits · 114 pts
SeverityFileLineSnippetContext
LOWinstallhelper.py64def update_version(package_json_path: str) -> None:CODE
LOWchia/introducer/introducer.py61 def _set_state_changed_callback(self, callback: StateChangedProtocol) -> None:CODE
LOWchia/introducer/introducer_api.py37 def _set_state_changed_callback(self, callback: StateChangedProtocol) -> None:CODE
LOWchia/consensus/block_body_validation.py91 def update_fork_peak(self, block: FullBlock, header_hash: bytes32) -> None:CODE
LOWchia/consensus/block_height_map.py144 def update_height(self, height: uint32, header_hash: bytes32, ses: SubEpochSummary | None) -> None:CODE
LOWchia/consensus/default_constants.py105def update_testnet_overrides(network_id: str, overrides: dict[str, Any]) -> None:CODE
LOWchia/consensus/block_height_map_protocol.py11 def update_height(self, height: uint32, header_hash: bytes32, ses: SubEpochSummary | None) -> None: ...CODE
LOWchia/plot_sync/sender.py148 def set_connection(self, connection: WSChiaConnection) -> None:CODE
LOWchia/pools/pool_wallet.py231 async def update_pool_config(self, action_scope: WalletActionScope) -> None:CODE
LOWchia/apis/__init__.py12__all__ = [CODE
LOWchia/types/blockchain_format/classgroup.py5__all__ = ["ClassgroupElement"]CODE
LOWchia/types/blockchain_format/vdf.py17__all__ = ["VDFInfo", "VDFProof"]CODE
LOWchia/types/blockchain_format/coin.py9__all__ = ["Coin", "coin_as_list", "hash_coin_ids"]CODE
LOWchia/timelord/timelord_api.py45 def _set_state_changed_callback(self, callback: StateChangedProtocol) -> None:CODE
LOWchia/timelord/timelord.py220 def _set_state_changed_callback(self, callback: StateChangedProtocol) -> None:CODE
LOWchia/timelord/timelord.py227 def set_server(self, server: ChiaServer) -> None:CODE
LOWchia/timelord/timelord_state.py51 def set_state(self, state: timelord_protocol.NewPeakTimelord | EndOfSubSlotBundle) -> None:CODE
LOWchia/seeder/crawl_store.py167 async def update_best_timestamp(self, host: str, timestamp: uint64) -> None:CODE
LOWchia/seeder/crawl_store.py360 async def update_version(self, host: str, version: str, timestamp_now: uint64) -> None:CODE
LOWchia/seeder/crawler.py118 def _set_state_changed_callback(self, callback: StateChangedProtocol) -> None:CODE
LOWchia/seeder/crawler.py322 def set_server(self, server: ChiaServer) -> None:CODE
LOWchia/seeder/peer_record.py28 def update_version(self, version: str, now: uint64) -> None:CODE
LOWchia/util/task_referencer.py13logger = logging.getLogger(__name__)CODE
LOWchia/util/file_keyring.py327 def set_key(self, service: str, user: str, key: Key) -> None:CODE
LOWchia/util/file_keyring.py360 def set_label(self, fingerprint: int, label: str) -> None:CODE
LOWchia/util/file_keyring.py464 def set_passphrase_hint(self, passphrase_hint: str | None) -> None:CODE
LOWchia/util/keychain.py626 def set_cached_master_passphrase(passphrase: str | None) -> None:CODE
LOWchia/util/keychain.py668 def set_master_passphrase_hint(current_passphrase: str, passphrase_hint: str | None) -> None:CODE
LOWchia/util/keychain.py54def set_keys_root_path(keys_root_path: Path) -> None:CODE
LOWchia/util/keychain.py411 def set_label(self, fingerprint: int, label: str) -> None:CODE
LOWchia/util/keyring_wrapper.py169 def set_keys_root_path(keys_root_path: Path) -> None:CODE
LOWchia/util/keyring_wrapper.py213 def set_cached_master_passphrase(self, passphrase: str | None, validated: bool = False) -> None:CODE
LOWchia/util/db_version.py23async def set_db_version_async(db: aiosqlite.Connection, version: int) -> None:CODE
LOWchia/util/db_version.py29def set_db_version(db: sqlite3.Connection, version: int) -> None:CODE
LOWchia/util/action_scope.py164 def set_callback(self, new_callback: Callable[[StateInterface[_T_SideEffects]], Awaitable[None]] | None) -> None:CODE
LOWchia/harvester/harvester.py157 def _set_state_changed_callback(self, callback: StateChangedProtocol) -> None:CODE
LOWchia/harvester/harvester.py279 def set_server(self, server: ChiaServer) -> None:CODE
LOWchia/farmer/farmer.py283 def _set_state_changed_callback(self, callback: StateChangedProtocol) -> None:CODE
LOWchia/farmer/farmer.py319 def set_server(self, server: ChiaServer) -> None:CODE
LOWchia/farmer/farmer.py544 async def update_pool_state(self) -> None:CODE
LOWchia/farmer/farmer.py728 def set_reward_targets(self, farmer_target_encoded: str | None, pool_target_encoded: str | None) -> None:CODE
LOWchia/farmer/farmer.py740 async def set_payout_instructions(self, launcher_id: bytes32, payout_instructions: str) -> None:CODE
LOWchia/_tests/core/full_node/test_full_node.py3257 async def update_wallets(self, wallet_update: WalletUpdate) -> None:CODE
LOWchia/_tests/core/mempool/test_mempool_manager.py2443 def update_lineage(self, puzzle_hash: bytes32, coin: Coin | None) -> None:CODE
LOWchia/_tests/util/constants.py5__all__ = ["test_constants"]CODE
LOWchia/_tests/util/full_sync.py78 def set_received_message_callback(self, callback: ConnectionCallback) -> None:CODE
LOWchia/cmds/keys_funcs.py121def set_key_label(fingerprint: int, label: str) -> None:CODE
LOWchia/cmds/passphrase_funcs.py257def set_passphrase_hint(hint: str) -> None:CODE
LOWchia/cmds/beta_funcs.py92def update_beta_config(enabled: bool, path: Path, metrics_log_interval: int, config: dict[str, Any]) -> None:CODE
LOWchia/cmds/keys.py140def set_label_cmd(fingerprint: int, label: str) -> None:CODE
LOWchia/cmds/sim_funcs.py502async def set_auto_farm(rpc_port: int | None, root_path: Path, set_autofarm: bool) -> None:CODE
LOWchia/cmds/passphrase.py120def set_hint(hint: str) -> None:CODE
LOWchia/cmds/data.py18logger = logging.getLogger(__name__)CODE
LOWchia/cmds/wallet.py485def update_derivation_index_cmd(ctx: click.Context, wallet_rpc_port: int | None, fingerprint: int, index: int) -> None:CODE
LOWchia/server/server.py242 def set_received_message_callback(self, callback: ConnectionCallback) -> None:CODE
LOWchia/server/server.py810 def set_capabilities(self, capabilities: list[tuple[uint16, str]]) -> None:CODE
LOWchia/server/address_manager.py368 def _set_new_matrix(self, row: int, col: int, value: int) -> None:CODE
LOWchia/server/address_manager.py377 def _set_tried_matrix(self, row: int, col: int, value: int) -> None:CODE
LOWchia/server/chia_policy.py376def set_chia_policy(connection_limit: int) -> None:CODE
LOWchia/server/node_discovery.py142 async def update_peer_timestamp_on_message(self, peer: WSChiaConnection) -> None:CODE
45 more matches not shown…
AI Structural Patterns89 hits · 76 pts
SeverityFileLineSnippetContext
LOWchia/consensus/block_creation.py516CODE
LOWchia/seeder/crawler_rpc_api.py60CODE
LOWchia/seeder/peer_record.py59CODE
LOWchia/util/file_keyring.py60CODE
LOWchia/util/network.py44CODE
LOWchia/util/ws_message.py66CODE
LOWchia/util/db_wrapper.py202CODE
LOWchia/util/db_wrapper.py259CODE
LOWchia/harvester/harvester_rpc_client.py27CODE
LOWchia/harvester/harvester_rpc_client.py33CODE
LOWchia/harvester/harvester_rpc_client.py39CODE
LOWchia/harvester/harvester_rpc_client.py45CODE
LOWchia/harvester/harvester_rpc_client.py54CODE
LOWchia/harvester/harvester.py245CODE
LOWchia/_tests/core/util/test_block_cache.py24CODE
LOWchia/_tests/core/data_layer/test_data_rpc.py2566CODE
LOWchia/_tests/core/mempool/test_mempool_manager.py331CODE
LOWchia/_tests/util/blockchain.py41CODE
LOWchia/_tests/cmds/wallet/test_did.py197CODE
LOWchia/_tests/blockchain/test_augmented_chain.py101CODE
LOWchia/_tests/blockchain/test_lookup_fork_chain.py75CODE
LOWchia/_tests/blockchain/test_build_chains.py93CODE
LOWchia/server/address_manager.py79CODE
LOWchia/server/chia_policy.py204CODE
LOWchia/daemon/server.py137CODE
LOWchia/daemon/server.py1551CODE
LOWchia/daemon/server.py1608CODE
LOWchia/daemon/server.py645CODE
LOWchia/daemon/server.py649CODE
LOWchia/daemon/server.py1225CODE
LOWchia/daemon/server.py1311CODE
LOWchia/daemon/server.py1317CODE
LOWchia/daemon/client.py110CODE
LOWchia/daemon/client.py116CODE
LOWchia/daemon/client.py122CODE
LOWchia/daemon/client.py128CODE
LOWchia/daemon/client.py150CODE
LOWchia/daemon/client.py155CODE
LOWchia/daemon/client.py171CODE
LOWchia/simulator/setup_services.py99CODE
LOWchia/simulator/block_tools.py2346CODE
LOWchia/simulator/block_tools.py824CODE
LOWchia/plotting/util.py153CODE
LOWchia/data_layer/data_layer_server.py103CODE
LOWchia/data_layer/data_layer_server.py118CODE
LOWchia/data_layer/data_layer_util.py943CODE
LOWchia/data_layer/data_layer_rpc_client.py16CODE
LOWchia/data_layer/data_layer_rpc_client.py21CODE
LOWchia/data_layer/data_layer_rpc_client.py28CODE
LOWchia/data_layer/data_layer_rpc_client.py42CODE
LOWchia/data_layer/data_layer_rpc_client.py55CODE
LOWchia/data_layer/data_layer_rpc_client.py59CODE
LOWchia/data_layer/data_layer_rpc_client.py63CODE
LOWchia/data_layer/data_layer_rpc_client.py76CODE
LOWchia/data_layer/data_layer_rpc_client.py89CODE
LOWchia/data_layer/data_layer_rpc_client.py93CODE
LOWchia/data_layer/data_layer_rpc_client.py97CODE
LOWchia/data_layer/data_layer_rpc_client.py101CODE
LOWchia/data_layer/data_layer_rpc_client.py105CODE
LOWchia/data_layer/data_layer_rpc_client.py109CODE
29 more matches not shown…
Redundant / Tautological Comments48 hits · 74 pts
SeverityFileLineSnippetContext
LOWchia/consensus/mmr.py33 # Check if x is "all ones" (1, 3, 7, 15...) -> Peak of perfect binary treeCOMMENT
LOWchia/consensus/blockchain_mmr.py158 # Check if prev is finalized relative to new block:COMMENT
LOWchia/util/virtual_project_analysis.py263 # Check if the file is a Python file and not in the excluded pathsCOMMENT
LOWchia/util/virtual_project_analysis.py265 # Check if the file is non-emptyCOMMENT
LOWchia/_tests/tools/test_virtual_project.py520 # Check if the command ran successfullyCOMMENT
LOWchia/_tests/core/full_node/test_hard_fork_utils.py72 # Set HARD_FORK2_HEIGHT to be close to block height but leave room for transitionCOMMENT
LOWchia/_tests/core/full_node/test_full_node.py4350 # Set limit to 0 to trigger queue full exceptionCOMMENT
LOWchia/_tests/wallet/nft_wallet/test_nft_wallet.py1501 # Check if the NFT owner DID is resetCOMMENT
LOWchia/_tests/wallet/did_wallet/test_did.py690 # Check if the DID wallet is created in the wallet2COMMENT
LOWchia/_tests/wallet/did_wallet/test_did.py1279 # Check if the DID wallet is created in the wallet2COMMENT
LOWchia/_tests/wallet/cat_wallet/test_trades.py668 # Check if unused index changedCOMMENT
LOWchia/_tests/wallet/cat_wallet/test_trades.py1007 # Check if unused index changedCOMMENT
LOWchia/server/node_discovery.py443 # Check if the peer is having the default port of a network different than ours.COMMENT
LOWchia/server/node_discovery.py449 # Check if we got the peers from a full node or from the introducer.COMMENT
LOWchia/daemon/server.py1328 # Check if we have a connection to the requested service. This might be theCOMMENT
LOWchia/plotting/create_plots.py212 # Check if args.memo is of type bytes and convert it to a string if soCOMMENT
LOWchia/plotting/create_plots.py221 # Check if args.memo is of type bytes and convert it to a string if soCOMMENT
LOWchia/wallet/wallet_state_manager.py972 # Check if the coin is clawbackCOMMENT
LOWchia/wallet/wallet_state_manager.py977 # Check if the coin is a VCCOMMENT
LOWchia/wallet/wallet_state_manager.py983 # Check if the coin is a PlotNFTCOMMENT
LOWchia/wallet/wallet_state_manager.py926 # Check if the coin is a CATCOMMENT
LOWchia/wallet/wallet_state_manager.py949 # Check if the coin is a NFTCOMMENT
LOWchia/wallet/wallet_state_manager.py957 # Check if the coin is a DIDCOMMENT
LOWchia/wallet/wallet_state_manager.py1264 # Check if it is a special type of CATCOMMENT
LOWchia/wallet/wallet_state_manager.py1296 # Check if we already have a walletCOMMENT
LOWchia/wallet/wallet_state_manager.py1397 # Check if it was owned by usCOMMENT
LOWchia/wallet/wallet_state_manager.py1508 # Check if the NFT is a bulk mintingCOMMENT
LOWchia/wallet/wallet_state_manager.py1650 # Check if the wallet is the senderCOMMENT
LOWchia/wallet/wallet_state_manager.py1654 # Check if the wallet is the recipientCOMMENT
LOWchia/wallet/wallet_state_manager.py2001 # Check if the parent coin is a Clawback coinCOMMENT
LOWchia/wallet/wallet_state_manager.py2165 # Check if a child is a singleton launcherCOMMENT
LOWchia/wallet/wallet_state_manager.py3258 # Check if the metadata is updatedCOMMENT
LOWchia/wallet/wallet_state_manager.py3359 # Check if we have the DID walletCOMMENT
LOWchia/wallet/wallet_state_manager.py3379 # Check if the old wallet has the inner puzzleCOMMENT
LOWchia/wallet/wallet_node.py1451 # Set blockchain to the latest peakCOMMENT
LOWchia/wallet/wallet_node.py1251 # Check if any coin needs auto spendingCOMMENT
LOWchia/wallet/wallet_rpc_api.py2417 # Check if we have a DID wallet for thisCOMMENT
LOWchia/wallet/vc_wallet/vc_wallet.py166 # Check if we own the DIDCOMMENT
LOWchia/wallet/vc_wallet/vc_wallet.py358 # Check if we own the DIDCOMMENT
LOWchia/wallet/nft_wallet/nft_wallet.py288 # Check if the wallet owns the DIDCOMMENT
LOWchia/wallet/puzzles/clawback/drivers.py143 # Check if the inner puzzle is a P2 puzzleCOMMENT
LOWchia/wallet/puzzles/clawback/drivers.py173 # Check if the inner puzzle matches the coin puzzle hashCOMMENT
LOWchia/full_node/full_node_api.py2044 # Check if the request would exceed the subscription limit now.COMMENT
LOWchia/full_node/full_node_api.py2085 # Check if the request would exceed the subscription limit.COMMENT
LOWchia/full_node/full_node_api.py2125 # Check if the request would exceed the subscription limit now.COMMENT
LOWchia/full_node/full_node_api.py2148 # Check if the request would exceed the subscription limit.COMMENT
LOWchia/full_node/mempool_manager.py252 # Check if this is an item that spends an older ff singletonCOMMENT
LOWchia/rpc/rpc_server.py399 # Set success to true automatically (unless it's already set)COMMENT
Over-Commented Block61 hits · 52 pts
SeverityFileLineSnippetContext
LOW.markdown-lint.yml1---COMMENT
LOWtools/chialispp.py281 else:COMMENT
LOWbuild_scripts/build_macos-2-installer.sh121# xcrun notarytool submit --wait --apple-id username --password password --team-id team-id Chia-0.1.X.dmgCOMMENT
LOWbuild_scripts/assets/deb/postinst.sh1#!/usr/bin/env bashCOMMENT
LOW.github/actionlint.yaml1self-hosted-runner:COMMENT
LOW.github/workflows/codeql-analysis.yml1# For most projects, this workflow file will not need changing; you simply needCOMMENT
LOW.github/workflows/test.yml241 # with:COMMENT
LOW.github/workflows/super-linter.yml1---COMMENT
LOWchia/consensus/block_body_validation.py61@dataclassCOMMENT
LOWchia/consensus/blockchain.py1061 # peak -> * | : reorg_chainCOMMENT
LOWchia/types/generator_types.py21COMMENT
LOWchia/types/blockchain_format/program.py161 # Replicates the curry function from clvm_tools, taking advantage of *argsCOMMENT
LOWchia/util/initial-config.yaml301full_node:COMMENT
LOWchia/util/initial-config.yaml321 # it, then run it to compute its cost. The final block may not use allCOMMENT
LOWchia/util/initial-config.yaml401 # Only connect to peers who we have heard about in the last recent_peer_threshold secondsCOMMENT
LOWchia/util/initial-config.yaml621COMMENT
LOWchia/util/errors.py181 EPHEMERAL_RELATIVE_CONDITION = 141COMMENT
LOWchia/util/task_timing.py21# CHIA_INSTRUMENT_DATA_LAYER=1COMMENT
LOWchia/util/task_timing.py101# f_builtinsCOMMENT
LOWchia/util/bech32m.py1# Package: utilsCOMMENT
LOWchia/util/db_wrapper.py321 # SAVEPOINTs. An orphan SAVEPOINT (created but never released) causesCOMMENT
LOWchia/_tests/core/test_merkle_set.py181 # this tree looks like this:COMMENT
LOWchia/_tests/core/test_merkle_set.py221 assert merkle_set.get_root() == bytes32(compute_merkle_set_root(list(vals)))COMMENT
LOWchia/_tests/core/test_merkle_set.py261 assert merkle_set.get_root() == expectedCOMMENT
LOWchia/_tests/core/data_layer/test_data_store.py1641@pytest.mark.anyioCOMMENT
LOW…a/_tests/core/full_node/stores/test_full_node_store.py661 # continueCOMMENT
LOWchia/_tests/core/mempool/test_mempool_manager.py501 (make_test_conds(before_height_absolute=100), expect(before_height=100)),COMMENT
LOWchia/_tests/core/mempool/test_mempool_manager.py521 # 10100 is more restrictive than 20000COMMENT
LOWchia/_tests/core/mempool/test_mempool_manager.py1001 ([mk_item(coins[0:1])], mk_item(coins[0:1]), False),COMMENT
LOWchia/_tests/core/mempool/test_mempool_manager.py3261# (defun loop (n)COMMENT
LOWchia/_tests/core/mempool/test_mempool.py1921COMMENT
LOWchia/_tests/core/mempool/test_mempool.py2621# (iter (c (q . 83) (c (concat (large_string 0x00 A) (q . 100)) ())) B)COMMENT
LOWchia/_tests/core/mempool/test_mempool.py2641COMMENT
LOWchia/_tests/core/mempool/test_mempool.py2661# (iter (large_string 0x00 A) B)COMMENT
LOWchia/_tests/core/mempool/test_mempool.py2681# (defun iter (V N)COMMENT
LOWchia/_tests/generator/test_generator_types.py41 # gen_args_as_program = Program.from_bytes(bytes(gen_args))COMMENT
LOWchia/_tests/blockchain/test_blockchain.py821 # --- a/chia/consensus/multiprocess_validation.pyCOMMENT
LOWchia/_tests/blockchain/test_blockchain.py2881 )COMMENT
LOWchia/_tests/blockchain/test_blockchain.py2901 # bt_2.constants = bt_2.constants.replace(COMMENT
LOWchia/_tests/blockchain/test_blockchain.py2921 # tx = wt.generate_signed_transaction_multiple_coins(COMMENT
LOWchia/_tests/blockchain/test_blockchain.py4281 blocks_1 = default_10000_blocksCOMMENT
LOWchia/_tests/wallet/rpc/test_wallet_rpc.py3201# $ chia keys generateCOMMENT
LOWchia/_tests/wallet/cat_wallet/test_trades.py1701 ) as action_scope:COMMENT
LOWchia/wallet/puzzles/singleton_top_layer.py41COMMENT
LOWchia/wallet/puzzles/singleton_top_layer.py61# `------------' `-------------------------------'COMMENT
LOWchia/wallet/puzzles/singleton_top_layer.py81#COMMENT
LOWchia/wallet/puzzles/singleton_top_layer.py101#COMMENT
LOWchia/wallet/puzzles/singleton_top_layer.py121# PH = NoneCOMMENT
LOWchia/wallet/puzzles/singleton_top_layer.py141# solution_for_singleton(L, amount, AI)COMMENT
LOWchia/wallet/puzzles/singleton_top_layer.py161#COMMENT
LOWchia/wallet/puzzles/singleton_top_layer_v1_1.py41#COMMENT
LOWchia/wallet/puzzles/singleton_top_layer_v1_1.py61# | > The Eve coinCOMMENT
LOWchia/wallet/puzzles/singleton_top_layer_v1_1.py81# its own purpose. Adaptations of the program I and its descendants areCOMMENT
LOWchia/wallet/puzzles/singleton_top_layer_v1_1.py101# Coin(Launcher.name(), puzzle_for_singleton(Launcher.name(), I), amount)COMMENT
LOWchia/wallet/puzzles/singleton_top_layer_v1_1.py121# - Note: the Eve singleton's .parent_coin_info should match Launcher here.COMMENT
LOWchia/wallet/puzzles/singleton_top_layer_v1_1.py141# truths.COMMENT
LOWchia/wallet/puzzles/singleton_top_layer_v1_1.py161#COMMENT
LOWchia/full_node/full_node.py1261 # the timestamp of when the next request_block message is allowed toCOMMENT
LOWchia/full_node/full_node_store.py121 constants: ConsensusConstantsCOMMENT
LOWchia/full_node/full_node_store.py141 # it's not a transaction block, or it's a block we learned about via the oldCOMMENT
1 more matches not shown…
Decorative Section Separators16 hits · 51 pts
SeverityFileLineSnippetContext
MEDIUMchia/consensus/mmr.py13# ------------------------------------------------------------------------------COMMENT
MEDIUMchia/consensus/mmr.py15# ------------------------------------------------------------------------------COMMENT
MEDIUMchia/consensus/mmr.py88# ------------------------------------------------------------------------------COMMENT
MEDIUMchia/consensus/mmr.py90# ------------------------------------------------------------------------------COMMENT
MEDIUM…ts/core/full_node/test_full_node_api_rate_hardening.py148# ---------------------------------------------------------------------------COMMENT
MEDIUM…ts/core/full_node/test_full_node_api_rate_hardening.py150# ---------------------------------------------------------------------------COMMENT
MEDIUM…ts/core/full_node/test_full_node_api_rate_hardening.py109# ---------------------------------------------------------------------------COMMENT
MEDIUM…ts/core/full_node/test_full_node_api_rate_hardening.py111# ---------------------------------------------------------------------------COMMENT
MEDIUM…ts/core/full_node/test_full_node_api_rate_hardening.py207# ---------------------------------------------------------------------------COMMENT
MEDIUM…ts/core/full_node/test_full_node_api_rate_hardening.py209# ---------------------------------------------------------------------------COMMENT
MEDIUMchia/simulator/ssl_certs.py18# ---------------------------------------------------------------------------COMMENT
MEDIUMchia/simulator/ssl_certs.py24# ---------------------------------------------------------------------------COMMENT
MEDIUMchia/simulator/ssl_certs.py63# ---------------------------------------------------------------------------COMMENT
MEDIUMchia/simulator/ssl_certs.py65# ---------------------------------------------------------------------------COMMENT
MEDIUMchia/simulator/ssl_certs.py80# ---------------------------------------------------------------------------COMMENT
MEDIUMchia/simulator/ssl_certs.py82# ---------------------------------------------------------------------------COMMENT
AI Slop Vocabulary23 hits · 44 pts
SeverityFileLineSnippetContext
LOWchia/consensus/blockchain.py563 # in the common case, we just add a block on top of the chain. CheckCOMMENT
LOWchia/seeder/dns_server.py434 # If this doesn't throw, we can just add to the listCOMMENT
MEDIUMchia/util/files.py32 # If that fails, use the more robust shutil.move(), though it may internally initiate a copyCOMMENT
LOWchia/util/network.py189 selected_port = addresses[0][1] # no matches, just use the first one in the listCODE
LOWchia/util/db_wrapper.py450 # just use the existing transactionCOMMENT
LOWchia/_tests/clvm/test_restrictions.py55 # Attempt to just use any old dpuzCOMMENT
LOWchia/_tests/clvm/test_restrictions.py109 # Attempt to just use any old dpuzCOMMENT
LOWchia/_tests/core/util/test_keyring_wrapper.py351 # Expect: to retrieve the passphrase hint that was just setCOMMENT
LOWchia/_tests/core/util/test_keyring_wrapper.py369 # Expect: to retrieve the passphrase hint that was just setCOMMENT
LOWchia/_tests/core/util/test_keyring_wrapper.py390 # Expect: to retrieve the passphrase hint that was just setCOMMENT
LOWchia/_tests/core/util/test_keyring_wrapper.py398 # Expect: to retrieve the passphrase hint that was just setCOMMENT
LOWchia/_tests/core/data_layer/test_data_rpc.py3881 # ignore and just return empty responseCOMMENT
MEDIUMchia/_tests/util/time_out_assert.py161 # TODO: rework to leverage time_out_assert_custom_interval() such as by allowingCOMMENT
MEDIUMchia/_tests/cmds/test_cmd_framework.py55 # We hack this in because more robust solutions are harder and probably not worth itCOMMENT
LOWchia/_tests/blockchain/test_augmented_chain.py116 # before adding anything to the augmented blockchain, make sure we just passCOMMENT
LOWchia/_tests/wallet/sync/test_wallet_sync.py1578 # This can just return None if we have `none_response` enabled.COMMENT
MEDIUMchia/cmds/passphrase_funcs.py111 # We'll rely on Keyring initialization to leverage the cached passphrase forCOMMENT
LOWchia/server/server.py739 return None # server doesn't have a local port, just return None hereCODE
LOWchia/server/signal_handlers.py115 # This is a bit vague so let's just use a thread safe call for WindowsCOMMENT
LOWchia/data_layer/data_layer.py1014 # don't actually subscribe, just add to the listCOMMENT
LOWchia/wallet/puzzles/custody/custody_architecture.py138 # so we just return the branch as isCOMMENT
LOWchia/wallet/cat_wallet/cat_utils.py22ANYONE_CAN_SPEND_PUZZLE = Program.to(1) # simply return the conditionsCODE
LOWchia/full_node/full_node_api.py263 # If there's current pending request just add this peer to the set of peers that have this txCOMMENT
Cross-Language Confusion4 hits · 21 pts
SeverityFileLineSnippetContext
HIGHchia/consensus/challenge_tree.py119 Each merkle leaf contains: hash(challenge_hash || block_count)STRING
HIGHchia/_tests/blockchain/test_augmented_chain.py114 abc = AugmentedBlockchain(null)CODE
HIGHchia/wallet/wallet_protocol.py55 # require_derivation_paths() return trueCOMMENT
HIGHchia/full_node/mempool_manager.py189 and will make this function return falseSTRING
Modern AI Meta-Vocabulary6 hits · 20 pts
SeverityFileLineSnippetContext
MEDIUMchia/plot_sync/sender.py174 # TODO: switch to event driven codeCOMMENT
MEDIUMchia/seeder/dns_server.py91 # TODO: switch to event driven codeCOMMENT
MEDIUMchia/farmer/farmer.py292 # TODO: switch to event driven codeCOMMENT
MEDIUMchia/_tests/core/server/flood.py60 # TODO: switch to event driven codeCOMMENT
MEDIUMchia/_tests/core/server/serve.py82 # TODO: switch to event driven codeCOMMENT
MEDIUMchia/_tests/core/server/serve.py100 # TODO: switch to event driven codeCOMMENT
Slop Phrases9 hits · 16 pts
SeverityFileLineSnippetContext
LOWchia/consensus/blockchain.py448 # make sure to update _peak_height after the transaction is committed,COMMENT
MEDIUMchia/util/initial-config.yaml693 # If you need use a proxy for download data you can use this setting sampleCOMMENT
LOWchia/_tests/conftest.py586# If you add another test chain, don't forget to also add a "build_test_chains"COMMENT
LOWchia/_tests/conftest.py586# If you add another test chain, don't forget to also add a "build_test_chains"COMMENT
MEDIUMchia/_tests/pools/test_pool_cmdline.py580 # Here you can use None as the wallet_id and the code will pick the only pool wallet automaticallyCOMMENT
LOWchia/_tests/util/test_network_protocol_test.py45 # if these asserts fail, make sure to add the new network protocol messagesCOMMENT
LOWchia/_tests/util/test_network_protocol_test.py231 # if these asserts fail, make sure to add the new network protocol messagesCOMMENT
LOWchia/wallet/wallet_node_api.py57 # For trusted peers check if there are untrusted peers, if so make sure to disconnect them if the trusted nodeCOMMENT
LOWchia/full_node/full_node.py2281 # We need to make sure to always call this method even when we get a cancel exception, to make sureCOMMENT
Docstring Block Structure3 hits · 15 pts
SeverityFileLineSnippetContext
HIGHchia/full_node/eligible_coin_spends.py61 Performs a singleton fast forward, including the updating of all previous additions to point to the most recentSTRING
HIGHchia/full_node/eligible_coin_spends.py121 Checks all coin spends of a mempool item for deduplication eligibility and provides the caller with theSTRING
HIGHchia/full_node/eligible_coin_spends.py177 Provides the caller with a map that has a proper state of fast forwarded coin spends and additions starSTRING
TODO Padding3 hits · 4 pts
SeverityFileLineSnippetContext
LOWchia/_tests/wallet/nft_wallet/test_nft_lifecycle.py42 # TODO: Add test for updateableCOMMENT
LOWchia/data_layer/data_store.py236 # TODO: consider adding transactions around this codeSTRING
LOWchia/data_layer/data_layer_util.py151 # TODO: implement for internal nodes. currently this prints only terminal nodesCOMMENT