AI Slop Code RIsk Monitor

TheAlgorithms/Python

All Algorithms implemented in Python

14.9 Moderate pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for TheAlgorithms/Python, a Python project with 225,148 GitHub stars. SynthScan examined 218,371 lines of code across 1706 source files, recording 1489 pattern matches distributed across 22 syntactic categories. The legacy adjusted pattern signal is 14.9 (Moderate pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

14.9
Adjusted Signal
14.9
Raw Pattern Score
100%
Time Factor
2026-10-06
Last Push
225.1K
Stars
Python
Language
218.4K
Lines of Code
1.7K
Files
1.5K
Pattern Hits
2026-10-12
Scan Date
0.24
HC Hit Rate

Risk Review · v3

Use each vector to guide manual verification of the underlying findings.

Cognitive Ownership Risk 34.8/100 · MEDIUM

Can maintainers explain intent, assumptions, and trade-offs? 922 finding(s).

Hallucinated Dependency & Supply Chain Risk 15.7/100 · LOW

Are imports declared and package/API names verified? 399 finding(s).

Agent Over-Engineering Ratio 20.0/100 · LOW

Are wrappers, guards, and repeated structures necessary? 492 finding(s).

PR Review Velocity Impact 57.0/100 · HIGH

Which changes need focused human review? 1489 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 1HIGH 406MEDIUM 77LOW 1005

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 1489 distinct pattern matches across 22 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. 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 configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Docstring Block Structure187 hits · 935 pts
SeverityFileLineSnippetContext
HIGHsearches/interpolation_search.py7 Searches for an item in a sorted collection by interpolation search algorithm. Args: sorted_collectionSTRING
HIGHsearches/interpolation_search.py79Pure implementation of interpolation search algorithm in Python by recursion Be careful collection must be ascendingSTRING
HIGHdata_structures/binary_tree/floor_and_ceiling.py37 Find the floor and ceiling values for a given key in a Binary Search Tree (BST). Args: root: The root STRING
HIGHdata_structures/linked_list/is_palindrome.py13 Check if a linked list is a palindrome. Args: head: The head of the linked list. Returns: STRING
HIGHdata_structures/linked_list/is_palindrome.py69 Check if a linked list is a palindrome using a stack. Args: head (ListNode): The head of the linked liSTRING
HIGHdata_structures/linked_list/is_palindrome.py125 Check if a linked list is a palindrome using a dictionary. Args: head (ListNode): The head of the linkSTRING
HIGHdata_structures/linked_list/circular_linked_list.py108 Delete and return the data of the node at the nth pos in Circular Linked List. Args: index STRING
HIGHdata_structures/linked_list/swap_nodes.py44 Add a new node with the given data to the beginning of the Linked List. Args: new_data (AnSTRING
HIGHdata_structures/linked_list/swap_nodes.py68 Swap the positions of two nodes in the Linked List based on their data values. Args: node_STRING
HIGHdata_structures/arrays/pairwise_iteration.py15 Generate pairs of elements from an iterable just like: https://docs.python.org/3/library/itertools.html#itertooSTRING
HIGHdata_structures/arrays/pairwise_iteration.py81 Generate pairs of elements from an iterable with a given step size. This function uses list comprehensions to STRING
HIGHdata_structures/arrays/median_two_array.py7 Find the median of two arrays. Args: nums1: The first array. nums2: The second array. RetSTRING
HIGHdata_structures/arrays/kth_largest_element.py9 Partitions list based on the pivot element. This function rearranges the elements in the input list 'elements'STRING
HIGHdata_structures/arrays/kth_largest_element.py45 Finds the kth largest element in a list. Should deliver similar results to: ```python def kth_largest_eSTRING
HIGHdata_structures/arrays/merge_sorted.py2 Merge two sorted arrays into one sorted array. Args: nums1: The first sorted array. nums2: TheSTRING
HIGHdata_structures/arrays/find_triplets_with_0_sum.py5 Given a list of integers, return elements a, b, c such that a + b + c = 0. Args: nums: list of integersSTRING
HIGHdata_structures/arrays/find_triplets_with_0_sum.py28 Function for finding the triplets with a given sum in the array using hashing. Given a list of integers, returSTRING
HIGHdata_structures/arrays/find_triplets_with_0_sum.py85 Finds all unique triplets in the array which gives the sum of zero using the two-pointer technique. Args: STRING
HIGHdata_structures/arrays/rotate_array.py2 Rotates a list to the right by steps positions. Parameters: arr (List[int]): The list of integers to rotatSTRING
HIGHdata_structures/arrays/rotate_array.py33 Reverses a portion of the list in place from index start to end. Parameters: start (int): StarSTRING
HIGHdata_structures/arrays/equilibrium_index_in_array.py21 Find the first equilibrium index of an array. Args: arr: The input array of integers. Returns: STRING
HIGHdata_structures/arrays/index_2d_array_in_1d.py63 Retrieves the value of the one-dimensional index from a two-dimensional array. Args: array: A 2D arraySTRING
HIGHdata_structures/arrays/product_sum.py26 Recursively calculates the product sum of an array. The product sum of an array is defined as the sum of its eSTRING
HIGHdata_structures/arrays/product_sum.py70 Calculates the product sum of an array. Args: array (List[Union[int, List]]): The array of integers anSTRING
HIGHdata_structures/arrays/product_sum.py98 It Calculates the product sum of an array using iterative approach. It's similar to BFS algorithm (Breadth firsSTRING
HIGHdata_structures/arrays/gas_station.py10 Finds the starting station index to complete the circuit, or returns -1 if not possible. Args: gas_stSTRING
HIGHdata_structures/arrays/merge_intervals.py2 Merge all overlapping intervals. Each interval is represented as a list of two integers [start, end]. The STRING
HIGHhashes/crc32.py58 Calculate the CRC32 hash of byte data. Args: data: Byte data to calculate the hash for Returns: STRING
HIGHstrings/booths_algorithm.py12 Find the lexicographically minimal rotation of the input string. Args: string (str): InputSTRING
HIGHstrings/count_vowels_consonants.py2 Count the number of vowels and consonants in a given string. This function ignores non-alphabetic charSTRING
HIGHstrings/strip.py2 Remove leading and trailing characters (whitespace by default) from a string. Args: user_string (str):STRING
HIGHstrings/largest_smallest_words.py2 Find the smallest and largest words in a given input string based on their length. Args: input_string STRING
HIGHdata_compression/coordinate_compression.py83 Compress a single value. Args: original: The value to compress. Returns: The STRING
HIGHdata_compression/coordinate_compression.py107 Decompress a single integer. Args: num: The compressed integer to decompress. ReturnsSTRING
HIGHcomputer_vision/vision_transformer.py24 Split an image into non-overlapping patches. Args: image: Input image array of shape (height, width, cSTRING
HIGHcomputer_vision/vision_transformer.py81 Linearly project flattened patches to embedding dimension. Args: patches: Array of patches with shape STRING
HIGHcomputer_vision/vision_transformer.py121 Add learnable positional encodings to patch embeddings. Args: embeddings: Embedded patches of shape (nSTRING
HIGHcomputer_vision/vision_transformer.py170 Compute scaled dot-product attention. Attention(Q, K, V) = softmax(QK^T / sqrt(d_k))V Args: querySTRING
HIGHcomputer_vision/vision_transformer.py218 Apply Layer Normalization. Args: embeddings: Input array of shape (seq_len, embedding_dim) epsSTRING
HIGHcomputer_vision/vision_transformer.py244 Apply position-wise feed-forward network. FFN(x) = max(0, xW1 + b1)W2 + b2 Args: embeddings: InpuSTRING
HIGHcomputer_vision/vision_transformer.py292 Apply a single Transformer encoder block. The block consists of: 1. Multi-head self-attention with residuaSTRING
HIGHcomputer_vision/vision_transformer.py348 Apply Vision Transformer for image classification. Architecture: 1. Split image into patches 2. LinearSTRING
HIGHcomputer_vision/haralick_descriptors.py29 Normalizes image in Numpy 2D array format, between ranges 0-cap, as to fit uint8 type. Args: imageSTRING
HIGHcomputer_vision/haralick_descriptors.py54Normalizes a 1D array, between ranges 0-cap. Args: array: List containing values to be normalized between cSTRING
HIGHcomputer_vision/haralick_descriptors.py108 Simple image transformation using one of two available filter functions: Erosion and Dilation. Args: STRING
HIGHscheduling/job_sequencing_with_deadline.py2 Function to find the maximum profit by doing jobs in a given time frame Args: jobs [list]: A list of tSTRING
HIGHconversions/binary_to_gray_code.py13 Convert a binary number to its Gray Code equivalent. The algorithm works by XORing the binary number with itseSTRING
HIGHconversions/binary_to_gray_code.py62 Convert a Gray Code number to its binary equivalent. The algorithm works by repeatedly XORing the gray code wiSTRING
HIGHconversions/binary_to_gray_code.py118 Convert a decimal number to its Gray Code representation as a binary string. Args: decimal_number: A pSTRING
HIGHconversions/binary_to_gray_code.py157 Convert a Gray Code binary string to its decimal equivalent. Args: gray_string: A string of 0s and 1s STRING
HIGHconversions/hex_to_rgb.py12 Converts a hexadecimal color code to RGB values. Args: hex_color (str): A hexadecimal color code, e.g.STRING
HIGHconversions/endianness.py35 Swap the byte order of a 16-bit integer. Args: value: 16-bit integer (0 to 65,535) Returns: STRING
HIGHconversions/endianness.py73 Swap the byte order of a 32-bit integer. Args: value: 32-bit integer (0 to 4,294,967,295) ReturnsSTRING
HIGHconversions/endianness.py119 Swap the byte order of a 64-bit integer. Args: value: 64-bit integer (0 to 18,446,744,073,709,551,615)STRING
HIGHconversions/endianness.py166 Convert bytes to integer using little-endian byte order. Args: data: Byte sequence to convert (1-8 bytSTRING
HIGHconversions/endianness.py202 Convert bytes to integer using big-endian byte order. Args: data: Byte sequence to convert (1-8 bytes)STRING
HIGHconversions/endianness.py238 Convert integer to bytes using little-endian byte order. Args: value: Integer to convert (non-negativeSTRING
HIGHconversions/endianness.py279 Convert integer to bytes using big-endian byte order. Args: value: Integer to convert (non-negative) STRING
HIGHelectronics/wheatstone_bridge.py8 Calculate the unknown resistance (Rx) in a Wheatstone bridge circuit. Wheatstone Bridge is an electrical circuSTRING
HIGHmachine_learning/ordinary_least_squares_regression.py20 Performs Ordinary Least Squares Regression (OLSR) on the given data. Args: x: The independent variableSTRING
127 more matches not shown…
Cross-File Repetition101 hits · 505 pts
SeverityFileLineSnippetContext
HIGHdata_structures/binary_tree/mirror_binary_tree.py0a node has a value variable and pointers to nodes to its left and right.STRING
HIGHdata_structures/binary_tree/binary_tree_path_sum.py0a node has a value variable and pointers to nodes to its left and right.STRING
HIGHdata_structures/binary_tree/binary_tree_node_sum.py0a node has a value variable and pointers to nodes to its left and right.STRING
HIGHdata_structures/linked_list/__init__.py0add an item to the linkedlist at the specified position. default position is 0 (the head). args: item (any): the item toSTRING
HIGHdata_structures/linked_list/kth_element_from_end.py0add an item to the linkedlist at the specified position. default position is 0 (the head). args: item (any): the item toSTRING
HIGHdata_structures/linked_list/partition_linked_list.py0add an item to the linkedlist at the specified position. default position is 0 (the head). args: item (any): the item toSTRING
HIGHdata_structures/linked_list/__init__.py0>>> linked_list = linkedlist() >>> linked_list.add(23) >>> linked_list.add(14) >>> linked_list.add(9) >>> print(linked_lSTRING
HIGHdata_structures/linked_list/kth_element_from_end.py0>>> linked_list = linkedlist() >>> linked_list.add(23) >>> linked_list.add(14) >>> linked_list.add(9) >>> print(linked_lSTRING
HIGHdata_structures/linked_list/partition_linked_list.py0>>> linked_list = linkedlist() >>> linked_list.add(23) >>> linked_list.add(14) >>> linked_list.add(9) >>> print(linked_lSTRING
HIGHdata_structures/hashing/number_theory/prime_numbers.py0checks to see if a number is a prime in o(sqrt(n)). a number is prime if it has exactly two factors: 1 and itself. >>> iSTRING
HIGHproject_euler/problem_037/sol1.py0checks to see if a number is a prime in o(sqrt(n)). a number is prime if it has exactly two factors: 1 and itself. >>> iSTRING
HIGHproject_euler/problem_041/sol1.py0checks to see if a number is a prime in o(sqrt(n)). a number is prime if it has exactly two factors: 1 and itself. >>> iSTRING
HIGHproject_euler/problem_046/sol1.py0checks to see if a number is a prime in o(sqrt(n)). a number is prime if it has exactly two factors: 1 and itself. >>> iSTRING
HIGHproject_euler/problem_049/sol1.py0checks to see if a number is a prime in o(sqrt(n)). a number is prime if it has exactly two factors: 1 and itself. >>> iSTRING
HIGHproject_euler/problem_058/sol1.py0checks to see if a number is a prime in o(sqrt(n)). a number is prime if it has exactly two factors: 1 and itself. >>> iSTRING
HIGHproject_euler/problem_007/sol3.py0project euler problem 7: https://projecteuler.net/problem=7 10001st prime by listing the first six prime numbers: 2, 3, STRING
HIGHproject_euler/problem_007/sol2.py0project euler problem 7: https://projecteuler.net/problem=7 10001st prime by listing the first six prime numbers: 2, 3, STRING
HIGHproject_euler/problem_007/sol1.py0project euler problem 7: https://projecteuler.net/problem=7 10001st prime by listing the first six prime numbers: 2, 3, STRING
HIGHproject_euler/problem_007/sol3.py0checks to see if a number is a prime in o(sqrt(n)). a number is prime if it has exactly two factors: 1 and itself. returSTRING
HIGHproject_euler/problem_007/sol2.py0checks to see if a number is a prime in o(sqrt(n)). a number is prime if it has exactly two factors: 1 and itself. returSTRING
HIGHproject_euler/problem_007/sol1.py0checks to see if a number is a prime in o(sqrt(n)). a number is prime if it has exactly two factors: 1 and itself. returSTRING
HIGHproject_euler/problem_003/sol1.py0checks to see if a number is a prime in o(sqrt(n)). a number is prime if it has exactly two factors: 1 and itself. returSTRING
HIGHproject_euler/problem_027/sol1.py0checks to see if a number is a prime in o(sqrt(n)). a number is prime if it has exactly two factors: 1 and itself. returSTRING
HIGHproject_euler/problem_010/sol2.py0checks to see if a number is a prime in o(sqrt(n)). a number is prime if it has exactly two factors: 1 and itself. returSTRING
HIGHproject_euler/problem_010/sol1.py0checks to see if a number is a prime in o(sqrt(n)). a number is prime if it has exactly two factors: 1 and itself. returSTRING
HIGHproject_euler/problem_009/sol3.py0project euler problem 9: https://projecteuler.net/problem=9 special pythagorean triplet a pythagorean triplet is a set oSTRING
HIGHproject_euler/problem_009/sol2.py0project euler problem 9: https://projecteuler.net/problem=9 special pythagorean triplet a pythagorean triplet is a set oSTRING
HIGHproject_euler/problem_009/sol1.py0project euler problem 9: https://projecteuler.net/problem=9 special pythagorean triplet a pythagorean triplet is a set oSTRING
HIGHproject_euler/problem_009/sol4.py0project euler problem 9: https://projecteuler.net/problem=9 special pythagorean triplet a pythagorean triplet is a set oSTRING
HIGHproject_euler/problem_008/sol3.py0project euler problem 8: https://projecteuler.net/problem=8 largest product in a series the four adjacent digits in the STRING
HIGHproject_euler/problem_008/sol2.py0project euler problem 8: https://projecteuler.net/problem=8 largest product in a series the four adjacent digits in the STRING
HIGHproject_euler/problem_008/sol1.py0project euler problem 8: https://projecteuler.net/problem=8 largest product in a series the four adjacent digits in the STRING
HIGHproject_euler/problem_234/sol1.py0sieve of erotosthenes function to return all the prime numbers up to a number 'limit' https://en.wikipedia.org/wiki/sievSTRING
HIGHproject_euler/problem_051/sol1.py0sieve of erotosthenes function to return all the prime numbers up to a number 'limit' https://en.wikipedia.org/wiki/sievSTRING
HIGHproject_euler/problem_050/sol1.py0sieve of erotosthenes function to return all the prime numbers up to a number 'limit' https://en.wikipedia.org/wiki/sievSTRING
HIGHproject_euler/problem_006/sol3.py0project euler problem 6: https://projecteuler.net/problem=6 sum square difference the sum of the squares of the first teSTRING
HIGHproject_euler/problem_006/sol2.py0project euler problem 6: https://projecteuler.net/problem=6 sum square difference the sum of the squares of the first teSTRING
HIGHproject_euler/problem_006/sol1.py0project euler problem 6: https://projecteuler.net/problem=6 sum square difference the sum of the squares of the first teSTRING
HIGHproject_euler/problem_006/sol4.py0project euler problem 6: https://projecteuler.net/problem=6 sum square difference the sum of the squares of the first teSTRING
HIGHproject_euler/problem_006/sol3.py0returns the difference between the sum of the squares of the first n natural numbers and the square of the sum. >>> soluSTRING
HIGHproject_euler/problem_006/sol2.py0returns the difference between the sum of the squares of the first n natural numbers and the square of the sum. >>> soluSTRING
HIGHproject_euler/problem_006/sol1.py0returns the difference between the sum of the squares of the first n natural numbers and the square of the sum. >>> soluSTRING
HIGHproject_euler/problem_006/sol4.py0returns the difference between the sum of the squares of the first n natural numbers and the square of the sum. >>> soluSTRING
HIGHproject_euler/problem_001/sol7.py0project euler problem 1: https://projecteuler.net/problem=1 multiples of 3 and 5 if we list all the natural numbers beloSTRING
HIGHproject_euler/problem_001/sol3.py0project euler problem 1: https://projecteuler.net/problem=1 multiples of 3 and 5 if we list all the natural numbers beloSTRING
HIGHproject_euler/problem_001/sol2.py0project euler problem 1: https://projecteuler.net/problem=1 multiples of 3 and 5 if we list all the natural numbers beloSTRING
HIGHproject_euler/problem_001/sol6.py0project euler problem 1: https://projecteuler.net/problem=1 multiples of 3 and 5 if we list all the natural numbers beloSTRING
HIGHproject_euler/problem_001/sol1.py0project euler problem 1: https://projecteuler.net/problem=1 multiples of 3 and 5 if we list all the natural numbers beloSTRING
HIGHproject_euler/problem_001/sol5.py0project euler problem 1: https://projecteuler.net/problem=1 multiples of 3 and 5 if we list all the natural numbers beloSTRING
HIGHproject_euler/problem_001/sol4.py0project euler problem 1: https://projecteuler.net/problem=1 multiples of 3 and 5 if we list all the natural numbers beloSTRING
HIGHproject_euler/problem_001/sol7.py0returns the sum of all the multiples of 3 or 5 below n. >>> solution(3) 0 >>> solution(4) 3 >>> solution(10) 23 >>> soluSTRING
HIGHproject_euler/problem_001/sol2.py0returns the sum of all the multiples of 3 or 5 below n. >>> solution(3) 0 >>> solution(4) 3 >>> solution(10) 23 >>> soluSTRING
HIGHproject_euler/problem_001/sol6.py0returns the sum of all the multiples of 3 or 5 below n. >>> solution(3) 0 >>> solution(4) 3 >>> solution(10) 23 >>> soluSTRING
HIGHproject_euler/problem_001/sol4.py0returns the sum of all the multiples of 3 or 5 below n. >>> solution(3) 0 >>> solution(4) 3 >>> solution(10) 23 >>> soluSTRING
HIGHproject_euler/problem_001/sol1.py0returns the sum of all the multiples of 3 or 5 below n. >>> solution(3) 0 >>> solution(4) 3 >>> solution(10) 23 >>> soluSTRING
HIGHproject_euler/problem_111/sol1.py0calculates the list of primes up to and including `max_num`. >>> generate_primes(6) [2, 3, 5]STRING
HIGHproject_euler/problem_124/sol1.py0calculates the list of primes up to and including `max_num`. >>> generate_primes(6) [2, 3, 5]STRING
HIGHproject_euler/problem_095/sol1.py0calculates the list of primes up to and including `max_num`. >>> generate_primes(6) [2, 3, 5]STRING
HIGHproject_euler/problem_025/sol3.py0the fibonacci sequence is defined by the recurrence relation: fn = fn-1 + fn-2, where f1 = 1 and f2 = 1. hence the firstSTRING
HIGHproject_euler/problem_025/sol2.py0the fibonacci sequence is defined by the recurrence relation: fn = fn-1 + fn-2, where f1 = 1 and f2 = 1. hence the firstSTRING
41 more matches not shown…
Cross-Language Confusion112 hits · 453 pts
SeverityFileLineSnippetContext
HIGHdata_structures/stacks/dijkstras_two_stack_algorithm.py61 operand_stack.push(int(i))CODE
HIGHdata_structures/stacks/dijkstras_two_stack_algorithm.py64 operator_stack.push(i)CODE
HIGHdata_structures/stacks/dijkstras_two_stack_algorithm.py75 operand_stack.push(total)CODE
HIGH⚡data_structures/stacks/stack_with_singly_linked_list.py28 >>> stack.push(5)STRING
HIGH⚡data_structures/stacks/stack_with_singly_linked_list.py29 >>> stack.push(9)STRING
HIGH⚡data_structures/stacks/stack_with_singly_linked_list.py30 >>> stack.push('python')STRING
HIGH⚡data_structures/stacks/stack_with_singly_linked_list.py35 >>> stack.push('algorithms')STRING
HIGH⚡data_structures/stacks/stack_with_singly_linked_list.py62 >>> stack.push("c")STRING
HIGH⚡data_structures/stacks/stack_with_singly_linked_list.py63 >>> stack.push("b")STRING
HIGH⚡data_structures/stacks/stack_with_singly_linked_list.py64 >>> stack.push("a")STRING
HIGH⚡data_structures/stacks/stack_with_singly_linked_list.py75 >>> stack.push("c")STRING
HIGH⚡data_structures/stacks/stack_with_singly_linked_list.py76 >>> stack.push("b")STRING
HIGH⚡data_structures/stacks/stack_with_singly_linked_list.py77 >>> stack.push("a")STRING
HIGH⚡data_structures/stacks/stack_with_singly_linked_list.py88 >>> stack.push(1)STRING
HIGH⚡data_structures/stacks/stack_with_singly_linked_list.py97 >>> stack.push("Python")STRING
HIGH⚡data_structures/stacks/stack_with_singly_linked_list.py98 >>> stack.push("Java")STRING
HIGH⚡data_structures/stacks/stack_with_singly_linked_list.py99 >>> stack.push("C")STRING
HIGH⚡data_structures/stacks/stack_with_singly_linked_list.py115 >>> stack.push("c")STRING
HIGH⚡data_structures/stacks/stack_with_singly_linked_list.py116 >>> stack.push("b")STRING
HIGH⚡data_structures/stacks/stack_with_singly_linked_list.py117 >>> stack.push("a")STRING
HIGH⚡data_structures/stacks/stack_with_singly_linked_list.py135 >>> stack.push("Java")STRING
HIGH⚡data_structures/stacks/stack_with_singly_linked_list.py136 >>> stack.push("C")STRING
HIGH⚡data_structures/stacks/stack_with_singly_linked_list.py137 >>> stack.push("Python")STRING
HIGH⚡data_structures/stacks/stack_with_singly_linked_list.py150 >>> stack.push("Java")STRING
HIGH⚡data_structures/stacks/stack_with_singly_linked_list.py151 >>> stack.push("C")STRING
HIGH⚡data_structures/stacks/stack_with_singly_linked_list.py152 >>> stack.push("Python")STRING
HIGHdata_structures/stacks/stack_with_doubly_linked_list.py26 ... stack.push(i)STRING
HIGH⚡data_structures/stacks/stack_with_doubly_linked_list.py100 stack.push(4)CODE
HIGH⚡data_structures/stacks/stack_with_doubly_linked_list.py103 stack.push(5)CODE
HIGH⚡data_structures/stacks/stack_with_doubly_linked_list.py106 stack.push(6)CODE
HIGH⚡data_structures/stacks/stack_with_doubly_linked_list.py109 stack.push(7)CODE
HIGHdata_structures/stacks/balanced_parentheses.py27 stack.push(bracket)CODE
HIGH⚡data_structures/stacks/stack.py40 >>> S.push(10)STRING
HIGH⚡data_structures/stacks/stack.py41 >>> S.push(20)STRING
HIGH⚡data_structures/stacks/stack.py46 >>> S.push(10)STRING
HIGH⚡data_structures/stacks/stack.py47 >>> S.push(20)STRING
HIGHdata_structures/stacks/stack.py62 >>> S.push(-5)STRING
HIGHdata_structures/stacks/stack.py63 >>> S.push(10)STRING
HIGHdata_structures/stacks/stack.py81 >>> S.push(-5)STRING
HIGHdata_structures/stacks/stack.py82 >>> S.push(10)STRING
HIGHdata_structures/stacks/stack.py104 >>> S.push(10)STRING
HIGHdata_structures/stacks/stack.py117 >>> S.push(10)STRING
HIGH⚡data_structures/stacks/stack.py132 >>> S.push(10)STRING
HIGH⚡data_structures/stacks/stack.py137 >>> S.push(10)STRING
HIGH⚡data_structures/stacks/stack.py138 >>> S.push(20)STRING
HIGHdata_structures/stacks/stack.py149 >>> S.push(10)STRING
HIGHdata_structures/stacks/stack.py154 >>> S.push(10)STRING
HIGH⚡data_structures/stacks/stack.py185 stack.push(i)CODE
HIGH⚡data_structures/stacks/stack.py194 stack.push(100)CODE
HIGH⚡data_structures/stacks/stack.py198 stack.push(200)CODE
HIGH⚡data_structures/stacks/infix_to_postfix_conversion.py74 stack.push(char)CODE
HIGH⚡data_structures/stacks/infix_to_postfix_conversion.py82 stack.push(char)CODE
HIGH⚡data_structures/stacks/infix_to_postfix_conversion.py89 stack.push(char)CODE
HIGH⚡data_structures/stacks/infix_to_postfix_conversion.py96 stack.push(char)CODE
HIGH⚡data_structures/stacks/stack_using_two_queues.py13 >>> stack.push(1)STRING
HIGH⚡data_structures/stacks/stack_using_two_queues.py14 >>> stack.push(2)STRING
HIGH⚡data_structures/stacks/stack_using_two_queues.py15 >>> stack.push(3)STRING
HIGHdata_structures/stacks/stack_using_two_queues.py68 stack.push(element)CODE
HIGHdata_structures/binary_tree/avl_tree.py302 q.push(self.root)STRING
HIGH⚡data_structures/binary_tree/avl_tree.py313 q.push(None)STRING
52 more matches not shown…
Hyper-Verbose Identifiers320 hits · 324 pts
SeverityFileLineSnippetContext
LOWsearches/binary_search.py267def binary_search_with_duplicates(sorted_collection: list[int], item: int) -> list[int]:CODE
LOWsearches/binary_search.py342def binary_search_by_recursion(CODE
LOWsearches/exponential_search.py19def binary_search_by_recursion(CODE
LOWsearches/interpolation_search.py76def interpolation_search_by_recursion(CODE
LOWdata_structures/kd_tree/tests/test_kdtree.py63def test_nearest_neighbour_search() -> None:CODE
LOWdata_structures/stacks/next_greater_element.py7def next_greatest_element_slow(arr: list[float]) -> list[float]:CODE
LOWdata_structures/stacks/next_greater_element.py40def next_greatest_element_fast(arr: list[float]) -> list[float]:CODE
LOWdata_structures/stacks/dijkstras_two_stack_algorithm.py40def dijkstras_two_stack_algorithm(equation: str) -> int:CODE
LOWdata_structures/stacks/kth_next_greater_element.py10def find_kth_next_greater_element(CODE
LOWdata_structures/binary_tree/binary_tree_traversals.py119def get_nodes_from_left_to_right(root: Node | None, level: int) -> Generator[int]:STRING
LOWdata_structures/binary_tree/binary_tree_traversals.py141def get_nodes_from_right_to_left(root: Node | None, level: int) -> Generator[int]:STRING
LOW…ta_structures/binary_tree/diff_views_of_binary_tree.py30def binary_tree_right_side_view(root: TreeNode) -> list[int]:STRING
LOW…ta_structures/binary_tree/diff_views_of_binary_tree.py70def binary_tree_left_side_view(root: TreeNode) -> list[int]:STRING
LOW…ta_structures/binary_tree/diff_views_of_binary_tree.py110def binary_tree_top_side_view(root: TreeNode) -> list[int]:STRING
LOW…ta_structures/binary_tree/diff_views_of_binary_tree.py159def binary_tree_bottom_side_view(root: TreeNode) -> list[int]:STRING
LOW…structures/binary_tree/binary_search_tree_recursive.py546def binary_search_tree_example() -> None:STRING
LOWdata_structures/linked_list/skip_list.py269def test_insert_overrides_existing_value() -> None:CODE
LOWdata_structures/linked_list/skip_list.py297def test_searching_empty_list_returns_none() -> None:CODE
LOWdata_structures/linked_list/skip_list.py318def test_deleting_item_from_empty_list_do_nothing() -> None:CODE
LOWdata_structures/linked_list/skip_list.py325def test_deleted_items_are_not_founded_by_find_method() -> None:CODE
LOWdata_structures/linked_list/skip_list.py340def test_delete_removes_only_given_key() -> None:CODE
LOWdata_structures/linked_list/skip_list.py373def test_delete_doesnt_leave_dead_nodes() -> None:CODE
LOWdata_structures/linked_list/skip_list.py391def test_iter_always_yields_sorted_values() -> None:CODE
LOWdata_structures/linked_list/circular_linked_list.py151def test_circular_linked_list() -> None:CODE
LOWdata_structures/hashing/tests/test_hash_map.py77def test_hash_map_is_the_same_as_dict(operations) -> None:CODE
LOWdata_structures/hashing/tests/test_hash_map.py90def test_no_new_methods_was_added_to_api() -> None:CODE
LOWdata_structures/arrays/pairwise_iteration.py78def pairwise_iteration_comprehension(CODE
LOWdata_structures/arrays/median_two_array.py6def find_median_sorted_arrays(nums1: list[int], nums2: list[int]) -> float:CODE
LOWdata_structures/queues/circular_queue_linked_list.py142 def check_can_perform_operation(self) -> None:CODE
LOW⚡data_structures/suffix_tree/tests/test_suffix_tree.py20 def test_search_existing_patterns(self) -> None:CODE
LOW⚡data_structures/suffix_tree/tests/test_suffix_tree.py29 def test_search_non_existing_patterns(self) -> None:CODE
LOW⚡data_structures/suffix_tree/tests/test_suffix_tree.py38 def test_search_empty_pattern(self) -> None:CODE
LOWstrings/damerau_levenshtein_distance.py11def damerau_levenshtein_distance(first_string: str, second_string: str) -> int:CODE
LOWstrings/palindrome.py84def is_palindrome_ignore_case_and_spaces(s: str) -> bool:CODE
LOWstrings/can_string_be_rearranged_as_palindrome.py11def can_string_be_rearranged_as_palindrome_counter(CODE
LOWstrings/can_string_be_rearranged_as_palindrome.py29def can_string_be_rearranged_as_palindrome(input_str: str = "") -> bool:CODE
LOWstrings/suffix_automaton.py117 def count_distinct_substrings(self) -> int:CODE
LOWstrings/is_srilankan_phone_number.py4def is_sri_lankan_phone_number(phone: str) -> bool:CODE
LOWstrings/alternative_string_arrange.py1def alternative_string_arrange(first_str: str, second_str: str) -> str:CODE
LOWstrings/levenshtein_distance.py54def levenshtein_distance_optimized(first_word: str, second_word: str) -> int:CODE
LOWstrings/levenshtein_distance.py99def benchmark_levenshtein_distance(func: Callable) -> None:CODE
LOWstrings/count_vowels_consonants.py1def count_vowels_and_consonants(text: str) -> tuple[int, int]:CODE
LOWstrings/boyer_moore_horspool.py41def boyer_moore_horspool_search(text: str, pattern: str) -> int:CODE
LOWstrings/boyer_moore_horspool.py86def boyer_moore_horspool_search_all(text: str, pattern: str) -> list[int]:CODE
LOWstrings/largest_smallest_words.py1def find_smallest_and_largest_words(input_string: str) -> tuple:CODE
LOWstrings/credit_card_validator.py55def validate_credit_card_number(credit_card_number: str) -> bool:CODE
LOWbit_manipulation/find_previous_power_of_two.py1def find_previous_power_of_two(number: int) -> int:CODE
LOWbit_manipulation/single_bit_manipulation_operations.py97def clear_least_significant_set_bit(number: int) -> int:CODE
LOWbit_manipulation/is_even.py37def is_even_using_shift_operator(number: int) -> bool:CODE
LOWbit_manipulation/bitwise_addition_recursive.py7def bitwise_addition_recursive(number: int, other_number: int) -> int:CODE
LOWbit_manipulation/count_number_of_one_bits.py4def get_set_bits_count_using_brian_kernighans_algorithm(number: int) -> int:CODE
LOWbit_manipulation/count_number_of_one_bits.py35def get_set_bits_count_using_modulo_operator(number: int) -> int:CODE
LOWbit_manipulation/count_number_of_one_bits.py67def get_set_bits_count_using_lookup_table(number: int) -> int:CODE
LOWbit_manipulation/gray_code_sequence.py48def gray_code_sequence_string(bit_count: int) -> list[str]:CODE
LOWbit_manipulation/binary_count_trailing_zeros.py4def binary_count_trailing_zeros(a: int) -> int:CODE
LOWbit_manipulation/largest_pow_of_two_le_num.py22def largest_pow_of_two_le_num(number: int) -> int:CODE
LOWbit_manipulation/index_of_rightmost_set_bit.py4def get_index_of_rightmost_set_bit(number: int) -> int:CODE
LOWbit_manipulation/highest_set_bit.py1def get_highest_set_bit_position(number: int) -> int:CODE
LOWdata_compression/peak_signal_to_noise_ratio.py17def peak_signal_to_noise_ratio(original: float, contrast: float) -> float:CODE
LOWproject_euler/problem_203/sol1.py34def get_pascal_triangle_unique_coefficients(depth: int) -> set[int]:CODE
260 more matches not shown…
Unused Imports285 hits · 284 pts
SeverityFileLineSnippetContext
LOWnetworking_flow/push_relabel.py19CODE
LOWsearches/simple_binary_search.py11CODE
LOWsearches/double_linear_search.py1CODE
LOWsearches/exponential_search.py16CODE
LOWsearches/ternary_search.py10CODE
LOWsearches/binary_tree_traversal.py5CODE
LOWdata_structures/kd_tree/kd_node.py9CODE
LOWdata_structures/stacks/next_greater_element.py1CODE
LOWdata_structures/stacks/stack_with_singly_linked_list.py3CODE
LOWdata_structures/stacks/stack_with_doubly_linked_list.py4CODE
LOWdata_structures/stacks/stack.py1CODE
LOWdata_structures/stacks/stack_tracking_min_max.py1CODE
LOWdata_structures/stacks/stack_using_two_queues.py1CODE
LOW…ctures/binary_tree/flatten_binarytree_to_linkedlist.py14CODE
LOWdata_structures/binary_tree/wavelet_tree.py11CODE
LOWdata_structures/binary_tree/merge_two_binary_trees.py9CODE
LOWdata_structures/binary_tree/avl_tree.py9CODE
LOWdata_structures/binary_tree/treap.py1CODE
LOW…a_structures/binary_tree/non_recursive_segment_tree.py39CODE
LOWdata_structures/binary_tree/persistent_segment_tree.py1CODE
LOWdata_structures/binary_tree/mirror_binary_tree.py7CODE
LOWdata_structures/binary_tree/splay_tree.py14CODE
LOWdata_structures/binary_tree/is_sum_tree.py7CODE
LOWdata_structures/binary_tree/binary_search_tree.py92CODE
LOWdata_structures/binary_tree/binary_tree_traversals.py1CODE
LOWdata_structures/binary_tree/red_black_tree.py1CODE
LOWdata_structures/binary_tree/floor_and_ceiling.py13CODE
LOWdata_structures/binary_tree/binary_tree_path_sum.py10CODE
LOWdata_structures/binary_tree/symmetric_tree.py8CODE
LOW…ta_structures/binary_tree/diff_views_of_binary_tree.py9CODE
LOWdata_structures/binary_tree/distribute_coins.py40CODE
LOWdata_structures/binary_tree/basic_binary_tree.py1CODE
LOW…structures/binary_tree/binary_tree_maximum_path_sum.py1CODE
LOWdata_structures/binary_tree/lowest_common_ancestor.py4CODE
LOWdata_structures/binary_tree/diameter_of_binary_tree.py6CODE
LOWdata_structures/binary_tree/lazy_segment_tree.py1CODE
LOW…tures/binary_tree/serialize_deserialize_binary_tree.py1CODE
LOW…structures/binary_tree/binary_search_tree_recursive.py11CODE
LOWdata_structures/binary_tree/maximum_sum_bst.py1CODE
LOWdata_structures/binary_tree/binary_tree_node_sum.py11CODE
LOWdata_structures/binary_tree/is_sorted.py17CODE
LOWdata_structures/linked_list/merge_two_lists.py5CODE
LOWdata_structures/linked_list/is_palindrome.py1CODE
LOWdata_structures/linked_list/__init__.py9CODE
LOW…tructures/linked_list/middle_element_of_linked_list.py1CODE
LOWdata_structures/linked_list/rotate_to_the_right.py1CODE
LOWdata_structures/linked_list/kth_element_from_end.py1CODE
LOWdata_structures/linked_list/skip_list.py6CODE
LOWdata_structures/linked_list/circular_linked_list.py1CODE
LOWdata_structures/linked_list/swap_nodes.py1CODE
LOWdata_structures/linked_list/reverse_k_group.py1CODE
LOWdata_structures/linked_list/sorted_linked_list.py1CODE
LOWdata_structures/linked_list/doubly_linked_list.py5CODE
LOWdata_structures/linked_list/print_reverse.py1CODE
LOWdata_structures/linked_list/has_loop.py1CODE
LOW…ctures/linked_list/remove_nth_node_from_end_of_list.py3CODE
LOWdata_structures/linked_list/partition_linked_list.py1CODE
LOWdata_structures/linked_list/singly_linked_list.py1CODE
LOWdata_structures/heap/heap.py1CODE
LOWdata_structures/heap/skew_heap.py3CODE
225 more matches not shown…
Deep Nesting166 hits · 162 pts
SeverityFileLineSnippetContext
LOWsearches/simulated_annealing.py9CODE
LOWsearches/hill_climbing.py93CODE
LOWsearches/ternary_search.py62CODE
LOWsearches/ternary_search.py117CODE
LOWsearches/tabu_search.py127CODE
LOWsearches/tabu_search.py188CODE
LOWsearches/interpolation_search.py6CODE
LOWsearches/fibonacci_search.py59CODE
LOWsearches/median_of_medians.py61CODE
LOWdata_structures/stacks/next_greater_element.py71CODE
LOWdata_structures/stacks/dijkstras_two_stack_algorithm.py40CODE
LOWdata_structures/stacks/infix_to_prefix_conversion.py18CODE
LOWdata_structures/stacks/infix_to_postfix_conversion.py45CODE
LOWdata_structures/binary_tree/avl_tree.py198CODE
LOWdata_structures/binary_tree/avl_tree.py297CODE
LOWdata_structures/binary_tree/splay_tree.py92CODE
LOWdata_structures/binary_tree/binary_search_tree.py170CODE
LOWdata_structures/binary_tree/red_black_tree.py112CODE
LOWdata_structures/binary_tree/red_black_tree.py150CODE
LOWdata_structures/binary_tree/red_black_tree.py367CODE
LOWdata_structures/binary_tree/red_black_tree.py384CODE
LOWdata_structures/binary_tree/maximum_fenwick_tree.py87CODE
LOWdata_structures/linked_list/is_palindrome.py124CODE
LOWdata_structures/linked_list/skip_list.py163CODE
LOWdata_structures/linked_list/sorted_linked_list.py80CODE
LOWdata_structures/linked_list/sorted_linked_list.py113CODE
LOWdata_structures/linked_list/doubly_linked_list.py66CODE
LOWdata_structures/linked_list/doubly_linked_list.py123CODE
LOWdata_structures/trie/radix_tree.py52CODE
LOWdata_structures/trie/radix_tree.py138CODE
LOWdata_structures/arrays/find_triplets_with_0_sum.py27CODE
LOWdata_structures/arrays/find_triplets_with_0_sum.py84CODE
LOWhashes/sha1.py88CODE
LOWhashes/hamming_code.py71CODE
LOWhashes/hamming_code.py147CODE
LOWhashes/md5.py297CODE
LOWstrings/min_window_substring.py1CODE
LOWstrings/camel_case_to_snake_case.py1CODE
LOWstrings/wildcard_pattern_matching.py10CODE
LOWstrings/aho_corasick.py67CODE
LOWbit_manipulation/fast_walsh_hadamard_transform.py86CODE
LOWbit_manipulation/fast_walsh_hadamard_transform.py146CODE
LOWproject_euler/problem_009/sol1.py20CODE
LOWproject_euler/problem_054/sol1.py141CODE
LOWproject_euler/problem_054/sol1.py280CODE
LOWproject_euler/problem_039/sol1.py17CODE
LOWproject_euler/problem_111/sol1.py49CODE
LOWproject_euler/problem_180/sol1.py88CODE
LOWproject_euler/problem_142/sol1.py29CODE
LOWproject_euler/problem_551/sol1.py20CODE
LOWproject_euler/problem_049/sol1.py95CODE
LOWproject_euler/problem_092/sol1.py19CODE
LOWproject_euler/problem_004/sol1.py16CODE
LOWproject_euler/problem_027/sol1.py62CODE
LOWproject_euler/problem_087/sol1.py18CODE
LOWproject_euler/problem_017/sol1.py19CODE
LOWproject_euler/problem_026/sol1.py27CODE
LOWproject_euler/problem_019/sol1.py24CODE
LOWscheduling/cpuschedulingalgorithms.py359CODE
LOWscheduling/round_robin.py12CODE
106 more matches not shown…
Redundant / Tautological Comments99 hits · 151 pts
SeverityFileLineSnippetContext
LOWdata_structures/kd_tree/example/example_usage.py38 # Print the resultsCOMMENT
LOWdata_structures/kd_tree/tests/test_kdtree.py49 # Check if root node is not NoneCOMMENT
LOWdata_structures/kd_tree/tests/test_kdtree.py52 # Check if root has correct dimensionsCOMMENT
LOWdata_structures/linked_list/rotate_to_the_right.py97 # Check if the list is empty or has only one elementCOMMENT
LOWdata_structures/linked_list/from_sequence.py53 # Loop through elements from position 1COMMENT
LOWdata_structures/linked_list/singly_linked_list.py444 # Check if it's empty or notCOMMENT
LOWdata_structures/arrays/find_triplets_with_0_sum.py69 # Verify if the desired value exists in the set.COMMENT
LOWstrings/min_window_substring.py64 # Check if window is the smallest found so farCOMMENT
LOWstrings/min_window_substring.py80 # Check if window is the smallest found so farCOMMENT
LOWstrings/can_string_be_rearranged_as_palindrome.py7# Check if characters of the given string can be rearranged to form a palindrome.COMMENT
LOWlinear_programming/simplex.py49 # Check if RHS is negativeCOMMENT
LOWcomputer_vision/intensity_based_segmentation.py49 # Display the resultsCOMMENT
LOWscheduling/shortest_job_first.py71 # Increment timeCOMMENT
LOWgenetic_algorithm/basic_string.py122 # Verify if N_POPULATION is bigger than N_SELECTEDCOMMENT
LOWgenetic_algorithm/basic_string.py161 # Check if there is a matching evolution.COMMENT
LOWgenetic_algorithm/basic_string.py189 # Check if the population has already reached the maximum value and if so,COMMENT
LOWconversions/hex_to_rgb.py60 # Check if the input is a valid hex color codeCOMMENT
LOWmachine_learning/gradient_boosting_classifier.py43 >>> # Check if the model is trainedSTRING
LOWmachine_learning/gradient_boosting_classifier.py73 >>> # Check if the predictions have the correct shapeSTRING
LOWmachine_learning/gradient_boosting_classifier.py99 >>> # Check if residuals have the correct shapeSTRING
LOWmachine_learning/dimensionality_reduction.py106 # Check if the features have been loadedCOMMENT
LOWmachine_learning/dimensionality_reduction.py142 # Check if the dimension desired is less than the number of classesCOMMENT
LOWmachine_learning/dimensionality_reduction.py145 # Check if features have been already loadedCOMMENT
LOWmachine_learning/dimensionality_reduction.py277 # Check if we're close enoughCOMMENT
LOWmachine_learning/sequential_minimum_optimization.py161 # Check if alpha violates the KKT conditionCOMMENT
LOWbacktracking/coloring.py53 # Check if any adjacent vertex has already been colored with the same colorCOMMENT
LOWbacktracking/coloring.py114 # Check if it's valid to color the current vertex with 'color'COMMENT
LOWbacktracking/rat_in_maze.py123 # Check if source and destination coordinates are Invalid.COMMENT
LOWbacktracking/n_queens.py48 # Check if there is any queen in the same upper column,COMMENT
LOW⚡other/word_search.py85 # Check if there is space for the word above the rowCOMMENT
LOW⚡other/word_search.py91 # Check if there is space to the right of the word as well as aboveCOMMENT
LOW⚡other/word_search.py95 # Check if there are existing lettersCOMMENT
LOW⚡other/word_search.py155 # Check if there is space for the word below the rowCOMMENT
LOW⚡other/word_search.py161 # Check if there is space to the right of the word as well as belowCOMMENT
LOW⚡other/word_search.py165 # Check if there are existing lettersCOMMENT
LOW⚡other/word_search.py225 # Check if there is space for the word below the rowCOMMENT
LOW⚡other/word_search.py231 # Check if there is space to the left of the word as well as belowCOMMENT
LOW⚡other/word_search.py235 # Check if there are existing lettersCOMMENT
LOW⚡other/word_search.py295 # Check if there is space for the word above the rowCOMMENT
LOW⚡other/word_search.py301 # Check if there is space to the left of the word as well as aboveCOMMENT
LOW⚡other/word_search.py305 # Check if there are existing lettersCOMMENT
LOWother/word_search.py53 # Check if there is space above the row to fit in the wordCOMMENT
LOWother/word_search.py125 # Check if there is space to the right of the wordCOMMENT
LOWother/word_search.py129 # Check if there are existing lettersCOMMENT
LOWother/word_search.py193 # Check if there is space below the row to fit in the wordCOMMENT
LOWother/word_search.py265 # Check if there is space to the left of the wordCOMMENT
LOWother/word_search.py269 # Check if there are existing lettersCOMMENT
LOWdynamic_programming/largest_divisible_subset.py37 # Iterate through the arrayCOMMENT
LOWdynamic_programming/needleman_wunsch.py151 # Check if diagonal step was optimalCOMMENT
LOWdynamic_programming/needleman_wunsch.py162 # Check if vertical step (gap in second sequence) was optimalCOMMENT
LOWdynamic_programming/narcissistic_number.py84 # Check if narcissisticCOMMENT
LOWneural_network/two_hidden_layers_neural_network.py289 # Set give_loss to True if you want to see loss in every iteration.COMMENT
LOWneural_network/sliding_window_attention.py68 >>> (output.sum() != 0).item() # Check if output is non-zeroSTRING
LOWblockchain/simple_proof_of_work.py41 # Check if the hash meets the difficulty requirementCOMMENT
LOWciphers/des_ecb.py363 >>> len(key) # Check if the key length is correctSTRING
LOWciphers/base58.py106 # Check if the encoded string contains non base64 charactersCOMMENT
LOWciphers/base64_cipher.py106 # Check if the encoded string contains non base64 charactersCOMMENT
LOWmaths/line_intersection.py144 # Check if the intersection point lies within the bounds of both line segmentsCOMMENT
LOWmaths/line_length.py48 # Increment stepCOMMENT
LOWmaths/ear_clipping_polygon_triangulation.py32 # Check if the vertex is convex based on the polygon's orientation.COMMENT
39 more matches not shown…
Self-Referential Comments42 hits · 116 pts
SeverityFileLineSnippetContext
MEDIUMnetworking_flow/ford_fulkerson.py86 # Create a copy of the graph to avoid modifying the originalCOMMENT
MEDIUMdata_structures/stacks/stock_span_problem.py34 # Create a stack and push index of fist element to itCOMMENT
MEDIUMdata_structures/stacks/postfix_to_infix_conversion.py30 # Create a stack to store the operands and operators.COMMENT
MEDIUMdata_structures/stacks/postfix_evaluation.py191 # Create a loop so that the user can evaluate postfix expressions multiple timesCOMMENT
MEDIUMdata_structures/linked_list/sorted_linked_list.py25 """This class represents a sorted linked list."""STRING
MEDIUMdata_structures/linked_list/floyds_cycle_detection.py107 # Create a cycle in the linked listSTRING
MEDIUMdata_structures/linked_list/floyds_cycle_detection.py139 # Create a cycle in the linked listCOMMENT
MEDIUMdata_structures/arrays/dynamic_array.py5 self.array = [None] * self.capacity # Create an array with initial capacityCODE
MEDIUMstrings/damerau_levenshtein_distance.py36 # Create a dynamic programming matrix to store the distancesCOMMENT
MEDIUMstrings/word_occurrence.py18 # Creating a dictionary containing count of each wordCOMMENT
MEDIUMdata_compression/lz77.py217 # Initialize compressor classCOMMENT
MEDIUMproject_euler/problem_054/sol1.py186 # This function is not part of the problem, I did it just for funCOMMENT
MEDIUMcomputer_vision/vision_transformer.py417 # Create a sample image (224x224x3 for ImageNet-style input)COMMENT
MEDIUMcomputer_vision/intensity_based_segmentation.py3# Importing necessary librariesCOMMENT
MEDIUMcomputer_vision/horn_schunck.py42 # Create a grid of all pixel coordinates and subtract the flow to get theCOMMENT
MEDIUMscheduling/job_sequencing_with_deadline.py24 # Create a list of size equal to the maximum deadlineCOMMENT
MEDIUMconversions/prefix_conversions_string.py16# Create a generic variable that can be 'Enum', or any subclass.COMMENT
MEDIUMfile_transfer/send_file.py5 sock = socket.socket() # Create a socket objectCODE
MEDIUMknapsack/greedy_knapsack.py46 # Creating a copy of the list and sorting profit/weight in ascending orderCOMMENT
MEDIUMdynamic_programming/longest_increasing_subsequence.py19def longest_subsequence(array: list[int]) -> list[int]: # This function is recursiveCODE
MEDIUMdynamic_programming/egg_dropping.py33 # Create a DP table to store the results of subproblems.COMMENT
MEDIUMneural_network/sliding_window_attention.py75 # Define the window rangeCOMMENT
MEDIUM…ital_image_processing/test_digital_image_processing.py127 # Create a numpy array as the same height and width of read imageCOMMENT
MEDIUM…gital_image_processing/filters/local_binary_pattern.py69 # Create a numpy array as the same height and width of read imageCOMMENT
MEDIUMblockchain/simple_proof_of_work.py35 # Create a single string representing all block dataCOMMENT
MEDIUMciphers/simple_keyword_cypher.py27 # Create a list of the letters in the alphabetCOMMENT
MEDIUMciphers/fractionated_morse_cipher.py75# Create a reverse dictionary for Morse codeCOMMENT
MEDIUMmaths/first_fundamental_form.py48 # Define the mathematical symbolsCOMMENT
MEDIUMmaths/first_fundamental_form.py56 # Define the position vector rCOMMENT
MEDIUMgraphs/edmonds_blossom_algorithm.py75 # Create an adjacency list for the graphCOMMENT
MEDIUMgeometry/triangle.py8# Define a Point on a 2D normalized orthogonal euclidean gridCOMMENT
MEDIUMgeometry/tests/test_graham_scan.py222 # Create a circle of pointsCOMMENT
MEDIUMcellular_automata/one_dimensional.py11# Define the first generation of cellsCOMMENT
MEDIUMcellular_automata/one_dimensional.py38 # Define a new cell and add it to the new generationCOMMENT
MEDIUMcellular_automata/one_dimensional.py55 # Create the output imageCOMMENT
MEDIUMcellular_automata/nagel_schrekenberg.py47 highway = [[-1] * number_of_cells] # Create a highway without any carCODE
MEDIUMphysics/casimir_effect.py42# Define the Reduced Planck Constant ℏ (H bar), speed of light C, value ofCOMMENT
MEDIUMphysics/newtons_law_of_gravitation.py24# Define the Gravitational Constant G and the functionCOMMENT
MEDIUMweb_programming/current_weather.py14# Define the URL for the APIs with placeholdersCOMMENT
MEDIUMsorts/reversort.py90 arr = collection[:] # Create a copy to avoid modifying the originalCODE
MEDIUMsorts/reversort.py135 arr = collection[:] # Create a copy to avoid modifying the originalCODE
MEDIUMsorts/flash_sort.py73 # Create a copy to avoid modifying the original arrayCOMMENT
Decorative Section Separators31 hits · 80 pts
SeverityFileLineSnippetContext
MEDIUMhashes/hamming_code.py234# ---------------------------------------------------------------------COMMENT
MEDIUMmaths/primelib.py92# ------------------------------------------COMMENT
MEDIUMmaths/primelib.py138# --------------------------------COMMENT
MEDIUMmaths/primelib.py176# -----------------------------------------COMMENT
MEDIUMmaths/primelib.py232# -----------------------------------------COMMENT
MEDIUMmaths/primelib.py274# ----------------------------------------------COMMENT
MEDIUMmaths/primelib.py316# ----------------------COMMENT
MEDIUMmaths/primelib.py345# ------------------------COMMENT
MEDIUMmaths/primelib.py374# ------------------------COMMENT
MEDIUMmaths/primelib.py444# ----------------------------------------------COMMENT
MEDIUMmaths/primelib.py535# ----------------------------------COMMENT
MEDIUMmaths/primelib.py584# ---------------------------------------------------COMMENT
MEDIUMmaths/primelib.py648# ----------------------------------------------------COMMENT
MEDIUMmaths/primelib.py685# ----------------------------------------------------COMMENT
MEDIUMmaths/primelib.py725# ------------------------------------------------------------COMMENT
MEDIUMmaths/primelib.py764# -----------------------------------------------------------------COMMENT
MEDIUMmaths/primelib.py797# -------------------------------------------------------------------COMMENT
MEDIUMgeometry/ramer_douglas_peucker.py138 # ---------------------------------------------------------------------------COMMENT
MEDIUMgeometry/ramer_douglas_peucker.py146 # ---------------------------------------------------------------------------COMMENT
MEDIUMsorts/smoothsort.py177 # ------------------------------------------------------------------COMMENT
MEDIUMsorts/smoothsort.py179 # ------------------------------------------------------------------COMMENT
MEDIUMsorts/smoothsort.py192 # ------------------------------------------------------------------COMMENT
MEDIUMsorts/smoothsort.py194 # ------------------------------------------------------------------COMMENT
MEDIUMquantum/quantum_entanglement.py.DISABLED.txt21 # q_1: ─────┤ X ├─╫─┤M├STRING
MEDIUMquantum/quantum_entanglement.py.DISABLED.txt23 # c: 2/═══════════╩══╩═STRING
MEDIUM⚡quantum/quantum_teleportation.py.DISABLED.txt24 # ┌─────────────────┐ ┌───┐STRING
MEDIUM⚡quantum/quantum_teleportation.py.DISABLED.txt25 #qr_0: ┤ U(π/2,π/2,π/2) ├───────■──┤ H ├─■─────────STRING
MEDIUM⚡quantum/quantum_teleportation.py.DISABLED.txt26 # └──────┬───┬──────┘ ┌─┴─┐└───┘ │STRING
MEDIUM⚡quantum/quantum_teleportation.py.DISABLED.txt27 #qr_1: ───────┤ H ├─────────■──┤ X ├──────┼───■─────STRING
MEDIUM⚡quantum/quantum_teleportation.py.DISABLED.txt29 #qr_2: ───────────────────┤ X ├───────────■─┤ X ├┤M├STRING
MEDIUM⚡quantum/quantum_teleportation.py.DISABLED.txt31 #cr: 1/═══════════════════════════════════════════╩═STRING
Verbosity Indicators22 hits · 50 pts
SeverityFileLineSnippetContext
LOW⚡data_structures/arrays/set_matrix_zeroes.py44 # Step 1: Mark rows and columns that need to be zeroedCOMMENT
LOW⚡data_structures/arrays/set_matrix_zeroes.py53 # Step 2: Update the inner matrix cellsCOMMENT
LOW⚡data_structures/arrays/set_matrix_zeroes.py59 # Step 3: Handle the first rowCOMMENT
LOW⚡data_structures/arrays/set_matrix_zeroes.py64 # Step 4: Handle the first columnCOMMENT
LOW⚡computer_vision/vision_transformer.py383 # Step 1: Create patchesCOMMENT
LOW⚡computer_vision/vision_transformer.py386 # Step 2: Embed patchesCOMMENT
LOW⚡computer_vision/vision_transformer.py389 # Step 3: Add positional encodings (includes CLS token)COMMENT
LOW⚡computer_vision/vision_transformer.py392 # Step 4: Pass through Transformer encoder layersCOMMENT
LOW⚡computer_vision/vision_transformer.py396 # Step 5: Extract CLS token (first token)COMMENT
LOW⚡computer_vision/vision_transformer.py399 # Step 6: Classification head (linear layer)COMMENT
LOW⚡geodesy/radar_target_calculation.py150 # Step 1: Convert Radar polar measurements to Local ENU Cartesian coordinatesCOMMENT
LOW⚡geodesy/radar_target_calculation.py160 # Step 2: Get absolute ECEF position of the RadarCOMMENT
LOW⚡geodesy/radar_target_calculation.py163 # Step 3: Convert the Local ENU offsets to ECEF offsetsCOMMENT
LOW⚡geodesy/radar_target_calculation.py166 # Step 4: Add offsets to the Radar's ECEF coordinates to find Target ECEFCOMMENT
LOW⚡geodesy/radar_target_calculation.py171 # Step 5: Convert Target ECEF back to Geodetic coordinatesCOMMENT
LOW⚡greedy_methods/activity_selection.py44 # Step 1: Sort the activities by their end timeCOMMENT
LOW⚡greedy_methods/activity_selection.py47 # Step 2: Select the first activity (the one that finishes the earliest)COMMENT
LOW⚡greedy_methods/activity_selection.py51 # Step 3: Iterate through the sorted activities and select the onesCOMMENT
LOW⚡sorts/kirkpatrick_reisch_sort.py51 # Step 1: Divide the input into sqrt(n) blocksCOMMENT
LOW⚡sorts/kirkpatrick_reisch_sort.py55 # Step 2: Sort each blockCOMMENT
LOW⚡sorts/kirkpatrick_reisch_sort.py59 # Step 3: Create a min-heap of the first elements of each blockCOMMENT
LOW⚡sorts/kirkpatrick_reisch_sort.py63 # Step 4: Extract elements from the heap and refill from blocksCOMMENT
Structural Annotation Overuse22 hits · 48 pts
SeverityFileLineSnippetContext
LOW⚡data_structures/arrays/set_matrix_zeroes.py44 # Step 1: Mark rows and columns that need to be zeroedCOMMENT
LOW⚡data_structures/arrays/set_matrix_zeroes.py53 # Step 2: Update the inner matrix cellsCOMMENT
LOW⚡data_structures/arrays/set_matrix_zeroes.py59 # Step 3: Handle the first rowCOMMENT
LOW⚡data_structures/arrays/set_matrix_zeroes.py64 # Step 4: Handle the first columnCOMMENT
LOW⚡computer_vision/vision_transformer.py383 # Step 1: Create patchesCOMMENT
LOW⚡computer_vision/vision_transformer.py386 # Step 2: Embed patchesCOMMENT
LOW⚡computer_vision/vision_transformer.py389 # Step 3: Add positional encodings (includes CLS token)COMMENT
LOW⚡computer_vision/vision_transformer.py392 # Step 4: Pass through Transformer encoder layersCOMMENT
LOW⚡computer_vision/vision_transformer.py396 # Step 5: Extract CLS token (first token)COMMENT
LOW⚡computer_vision/vision_transformer.py399 # Step 6: Classification head (linear layer)COMMENT
LOW⚡geodesy/radar_target_calculation.py150 # Step 1: Convert Radar polar measurements to Local ENU Cartesian coordinatesCOMMENT
LOW⚡geodesy/radar_target_calculation.py160 # Step 2: Get absolute ECEF position of the RadarCOMMENT
LOW⚡geodesy/radar_target_calculation.py163 # Step 3: Convert the Local ENU offsets to ECEF offsetsCOMMENT
LOW⚡geodesy/radar_target_calculation.py166 # Step 4: Add offsets to the Radar's ECEF coordinates to find Target ECEFCOMMENT
LOW⚡geodesy/radar_target_calculation.py171 # Step 5: Convert Target ECEF back to Geodetic coordinatesCOMMENT
LOW⚡greedy_methods/activity_selection.py44 # Step 1: Sort the activities by their end timeCOMMENT
LOW⚡greedy_methods/activity_selection.py47 # Step 2: Select the first activity (the one that finishes the earliest)COMMENT
LOW⚡greedy_methods/activity_selection.py51 # Step 3: Iterate through the sorted activities and select the onesCOMMENT
LOW⚡sorts/kirkpatrick_reisch_sort.py51 # Step 1: Divide the input into sqrt(n) blocksCOMMENT
LOW⚡sorts/kirkpatrick_reisch_sort.py55 # Step 2: Sort each blockCOMMENT
LOW⚡sorts/kirkpatrick_reisch_sort.py59 # Step 3: Create a min-heap of the first elements of each blockCOMMENT
LOW⚡sorts/kirkpatrick_reisch_sort.py63 # Step 4: Extract elements from the heap and refill from blocksCOMMENT
Over-Commented Block35 hits · 35 pts
SeverityFileLineSnippetContext
LOWbit_manipulation/xor_swap_two_integers.py1# Information on XOR swap: https://en.wikipedia.org/wiki/Bitwise_operation#XORCOMMENT
LOWproject_euler/problem_054/sol1.py161 'Tie'COMMENT
LOWproject_euler/problem_054/sol1.py281 # Kind Values for internal use:COMMENT
LOWproject_euler/problem_191/sol1.py61 # First, check if the combination is already in the cache, andCOMMENT
LOWgenetic_algorithm/basic_string.py141 while True:COMMENT
LOWmachine_learning/k_medoids.py181 raise TypeError("Cluster assignments must be an ndarray")COMMENT
LOWbacktracking/n_queens_math.py101 # If row is equal to the size of the board it means there are a queen in each row inCOMMENT
LOWfractals/mandelbrot.py141 # uncomment for colored version, different section, zoomed inCOMMENT
LOWdynamic_programming/optimal_binary_search_tree.py1#!/usr/bin/env python3COMMENT
LOW.devcontainer/devcontainer.json1{COMMENT
LOWdigital_image_processing/index_calculation.py41 Wavelength Range 520 nm to 560 nmCOMMENT
LOWdigital_image_processing/index_calculation.py61 #"CIgreen" -- green, nirCOMMENT
LOWciphers/xor_cipher.py241 from doctest import testmodCOMMENT
LOWciphers/xor_cipher.py261# print("encrypt successful")COMMENT
LOWscripts/close_pull_requests_with_require_type_hints.sh1#!/bin/bashCOMMENT
LOW…/close_pull_requests_with_require_descriptive_names.sh1#!/bin/bashCOMMENT
LOWscripts/close_pull_requests_with_require_tests.sh1#!/bin/bashCOMMENT
LOWscripts/close_pull_requests_with_awaiting_changes.sh1#!/bin/bashCOMMENT
LOWscripts/close_pull_requests_with_label.sh1#!/bin/bashCOMMENT
LOWscripts/close_pull_requests_with_failing_tests.sh1#!/bin/bashCOMMENT
LOWscripts/find_git_conflicts.sh1#!/bin/bashCOMMENT
LOW.github/workflows/ty.yml21 persist-credentials: falseCOMMENT
LOW.github/workflows/ty.yml41 # ty see the synced dependencies, so the `[tool.ty.rules]` severities inCOMMENT
LOWmaths/pollard_rho.py41 # Because of the relationship between ``f(f(x))`` and ``f(x)``, thisCOMMENT
LOWmaths/pollard_rho.py101 # The divisor is a nontrivial factor of ``num``!COMMENT
LOWmaths/weddles_rule.py141 # table, h = compute_table(func, a, b, acc)COMMENT
LOWmaths/entropy.py121 # "of message cottage windows do besides against uncivil. Delightful "COMMENT
LOWgraphs/matching_min_vertex_cover.py61 # graph = {0: [1, 3], 1: [0, 3], 2: [0, 3, 4], 3: [0, 1, 2], 4: [2, 3]}COMMENT
LOWgraphs/dijkstra_algorithm.py461COMMENT
LOWgraphs/dijkstra_algorithm.py481# Node 8 has distance: 14COMMENT
LOWgraphs/graph_list.py101 # if only source vertex is present in adjacency list, add destination vertexCOMMENT
LOWgraphs/graph_list.py121 self.adj_list[source_vertex] = [destination_vertex]COMMENT
LOWgraphs/travelling_salesman_problem.py201COMMENT
LOWgraphs/graphs_floyd_warshall.py101COMMENT
LOWgraphs/graphs_floyd_warshall.py121COMMENT
Example Usage Blocks18 hits · 26 pts
SeverityFileLineSnippetContext
LOWdata_structures/arrays/reverse_array.py68 # Example usage:COMMENT
LOWcomputer_vision/vision_transformer.py413 # Example usageCOMMENT
LOWmachine_learning/ridge_regression.py149# Example usageCOMMENT
LOWdynamic_programming/floyd_warshall.py66 # Example usageCOMMENT
LOWneural_network/optimizers/adam_optimizer.py95# Usage exampleCOMMENT
LOWneural_network/optimizers/momentum_sgd.py71# Usage exampleCOMMENT
LOWneural_network/optimizers/adagrad.py71# Usage exampleCOMMENT
LOWneural_network/optimizers/nesterov_accelerated_sgd.py75# Usage exampleCOMMENT
LOWneural_network/optimizers/muon_optimizer.py100# Usage exampleCOMMENT
LOWblockchain/simple_proof_of_work.py53 # Example usage:COMMENT
LOWciphers/vernam_cipher.py34 # Example usageCOMMENT
LOWscripts/close_pull_requests_with_label.sh6# Usage:COMMENT
LOWscripts/find_git_conflicts.sh13# Usage:COMMENT
LOWmaths/sieve_of_atkin.py108 # Example usageCOMMENT
LOWmaths/spearman_rank_correlation_coefficient.py97 # Example usage:COMMENT
LOWmaths/ncr_combinations.py71 # Example usageCOMMENT
LOWgeometry/graham_scan.py230 # Example usageCOMMENT
LOWgeometry/jarvis_march.py184 # Example usageCOMMENT
Empty Error Handlers5 hits · 25 pts
SeverityFileLineSnippetContext
HIGHmachine_learning/dimensionality_reduction.py397except ValueError:CODE
HIGHmachine_learning/dimensionality_reduction.py404except ValueError:CODE
HIGHscripts/pr_file_map.py116except ValueError:CODE
HIGHcellular_automata/game_of_life.py203except KeyboardInterrupt:CODE
HIGHweb_programming/emails_from_url.py105except ValueError:CODE
Modern Structural Boilerplate23 hits · 24 pts
SeverityFileLineSnippetContext
LOW⚡data_structures/binary_tree/avl_tree.py62 def set_data(self, data: Any) -> None:CODE
LOW⚡data_structures/binary_tree/avl_tree.py65 def set_left(self, node: MyNode | None) -> None:CODE
LOW⚡data_structures/binary_tree/avl_tree.py68 def set_right(self, node: MyNode | None) -> None:CODE
LOW⚡data_structures/binary_tree/avl_tree.py71 def set_height(self, height: int) -> None:CODE
LOWdata_structures/binary_tree/segment_tree_other.py176 def _update_tree(self, node, i, val) -> None:CODE
LOWdata_structures/linked_list/doubly_linked_list_two.py77 def set_head(self, node: Node) -> None:CODE
LOWdata_structures/linked_list/doubly_linked_list_two.py84 def set_tail(self, node: Node) -> None:CODE
LOWdata_structures/hashing/hash_table.py133 def _set_value(self, key, data) -> None:CODE
LOWdata_structures/hashing/hash_table_with_linked_list.py10 def _set_value(self, key, data) -> None:CODE
LOWdata_structures/heap/heap_generic.py79 def update_item(self, item: int, item_value: int) -> None:CODE
LOWdata_structures/arrays/set_matrix_zeroes.py29def set_matrix_zeroes(matrix: list[list[int]]) -> None:CODE
LOWstrings/aho_corasick.py42 def set_fail_transitions(self) -> None:CODE
LOWmachine_learning/frequent_pattern_growth.py128def update_tree(items: list, in_tree: TreeNode, header_table: dict, count: int) -> None:CODE
LOWfractals/vicsek.py53def set_color(rgb: str) -> None:CODE
LOWgraphs/minimum_spanning_tree_prims.py12 def set_position(self, vertex, pos) -> None:CODE
LOWgraphs/boruvka.py61 def set_component(self, u_node: int) -> None:CODE
LOWgraphs/minimum_spanning_tree_prims2.py120 def update_key(self, elem: T, weight: int) -> None:CODE
LOWgraphs/edmonds_karp_multiple_source_and_sink.py56 def set_maximum_flow_algorithm(self, algorithm) -> None:CODE
LOWcellular_automata/wa_tor.py132 def set_planet(self, planet: list[list[Entity | None]]) -> None:CODE
LOWphysics/n_body_simulation.py86 def update_position(self, delta_time: float) -> None:CODE
LOWphysics/n_body_simulation.py136 def update_system(self, delta_time: float) -> None:CODE
LOWmatrix/similar_matrices.py40__all__ = ["are_similar_matrices"]CODE
LOWaudio_filters/iir_filter.py39 def set_coefficients(self, a_coeffs: list[float], b_coeffs: list[float]) -> None:STRING
Excessive Try-Catch Wrapping8 hits · 10 pts
SeverityFileLineSnippetContext
LOWdata_structures/hashing/tests/test_hash_map.py23 except Exception as e:CODE
MEDIUMdata_structures/hashing/tests/test_hash_map.py20def _run_operation(obj, fun, *args):CODE
LOWhashes/enigma_machine.py71 except Exception as error:CODE
MEDIUMmachine_learning/decision_tree.py41 print("Error: Input labels must be one dimensional")CODE
LOWmaths/bearing.py51 except Exception as exc:CODE
MEDIUMmaths/perfect_number.py301 print(f"Error: {e}")CODE
LOWmaths/shoelace_area.py56 except Exception as exc:CODE
LOWphysics/newtons_second_law_of_motion.py77 except Exception:STRING
Hallucination Indicators1 hit · 10 pts
SeverityFileLineSnippetContext
CRITICALfile_transfer/tests/test_send_file.py26 file.return_value.__enter__.return_value.read.assert_called()CODE
AI Response Leakage1 hit · 8 pts
SeverityFileLineSnippetContext
HIGHciphers/elgamal_key_generator.py11# I have written my code naively same as definition of primitive rootCOMMENT
AI Slop Vocabulary4 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMdata_structures/stacks/stack.py17 """A stack is an abstract data type that serves as a collection ofSTRING
LOWdata_structures/arrays/merge_sorted.py48 # If one array is empty, simply return the other.COMMENT
LOWstrings/text_justification.py62 # just add the last word to the sentenceCOMMENT
LOWciphers/mono_alphabetic_ciphers.py26 # symbol is not in LETTERS, just add itCOMMENT
AI Structural Patterns4 hits · 4 pts
SeverityFileLineSnippetContext
LOWsearches/simulated_annealing.py9CODE
LOWproject_euler/problem_020/sol1.py50CODE
LOWcomputer_vision/vision_transformer.py284CODE
LOWphysics/grahams_law.py39CODE
Overly Generic Function Names2 hits · 2 pts
SeverityFileLineSnippetContext
LOWsearches/hill_climbing.py35 >>> def test_function(x, y):STRING
LOWgraphs/multi_heuristic_astar.py81def do_something(back_pointer, goal, start) -> None:CODE
Fake / Example Data1 hit · 0 pts
SeverityFileLineSnippetContext
LOWhashes/elf.py5 >>> elf_hash('lorem ipsum')STRING