Repository Analysis

TheAlgorithms/Python

All Algorithms implemented in Python

13.1 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of TheAlgorithms/Python, a Python project with 222,675 GitHub stars. SynthScan v2.0 examined 183,008 lines of code across 1481 source files, recording 1155 pattern matches distributed across 20 syntactic categories. The overall adjusted score of 13.1 places this repository in the Low 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).

13.1
Adjusted Score
13.1
Raw Score
100%
Time Factor
2026-07-11
Last Push
222.7K
Stars
Python
Language
183.0K
Lines of Code
1.5K
Files
1.2K
Pattern Hits
2026-07-14
Scan Date
0.20
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

This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.

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 1HIGH 296MEDIUM 60LOW 798

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 1155 distinct pattern matches across 20 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.

Docstring Block Structure92 hits · 460 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/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/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/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.py24 Find the equilibrium index of an array. Args: arr (list[int]): The input array of integers. ReturSTRING
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.py24 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.py68 Calculates the product sum of an array. Args: array (List[Union[int, List]]): The array of integers anSTRING
HIGHstrings/strip.py2 Remove leading and trailing characters (whitespace by default) from a string. Args: user_string (str):STRING
HIGHcomputer_vision/haralick_descriptors.py28 Normalizes image in Numpy 2D array format, between ranges 0-cap, as to fit uint8 type. Args: imageSTRING
HIGHcomputer_vision/haralick_descriptors.py53Normalizes a 1D array, between ranges 0-cap. Args: array: List containing values to be normalized between cSTRING
HIGHcomputer_vision/haralick_descriptors.py107 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
HIGHmachine_learning/loss_functions.py442 Calculate the Mean Absolute Percentage Error between y_true and y_pred. Mean Absolute Percentage Error calculaSTRING
HIGHmachine_learning/loss_functions.py577 Calculate the Smooth L1 Loss between y_true and y_pred. The Smooth L1 Loss is less sensitive to outliers than STRING
HIGHmachine_learning/mfcc.py77 Calculate Mel Frequency Cepstral Coefficients (MFCCs) from an audio signal. Args: audio: The input audSTRING
HIGHmachine_learning/mfcc.py153 Normalize an audio signal by scaling it to have values between -1 and 1. Args: audio: The input audio STRING
HIGHmachine_learning/mfcc.py180 Split an audio signal into overlapping frames. Args: audio: The input audio signal. sample_ratSTRING
HIGHmachine_learning/mfcc.py219 Calculate the Fast Fourier Transform (FFT) of windowed audio data. Args: audio_windowed: The windowed STRING
HIGHmachine_learning/mfcc.py255 Calculate the power of the audio signal from its FFT. Args: audio_fft: The FFT of the audio signal. STRING
HIGHmachine_learning/mfcc.py275 Convert a frequency in Hertz to the mel scale. Args: freq: The frequency in Hertz. Returns: STRING
HIGHmachine_learning/mfcc.py293 Convert a frequency in the mel scale to Hertz. Args: mels: The frequency in mel scale. Returns: STRING
HIGHmachine_learning/mfcc.py313 Create a Mel-spaced filter bank for audio processing. Args: sample_rate: The sample rate of the audio.STRING
HIGHmachine_learning/mfcc.py352 Generate filters for audio processing. Args: filter_points: A list of filter points. ftt_size:STRING
HIGHmachine_learning/mfcc.py390 Calculate the filter points and frequencies for mel frequency filters. Args: sample_rate: The sample rSTRING
HIGHmachine_learning/mfcc.py431 Compute the Discrete Cosine Transform (DCT) basis matrix. Args: dct_filter_num: The number of DCT filtSTRING
HIGHother/sliding_window_maximum.py5 Return a list containing the maximum of each sliding window of size window_size. This implementation uses a moSTRING
HIGHdynamic_programming/matrix_chain_multiplication.py55 Find the minimum number of multiplcations required to multiply the chain of matrices Args: `arr`: The STRING
HIGHdynamic_programming/narcissistic_number.py28 Find all narcissistic numbers up to the given limit using dynamic programming. This function uses memoization STRING
HIGHdynamic_programming/iterating_through_submasks.py13 Args: mask : number which shows mask ( always integer > 0, zero does not have any submasks ) STRING
HIGHdynamic_programming/climbing_stairs.py5 LeetCdoe No.70: Climbing Stairs Distinct ways to climb a number_of_steps staircase where each time you can eithSTRING
HIGHneural_network/input_data.py48Extract the images into a 4D uint8 numpy array [index, y, x, depth]. Args: f: A file object that can be passeSTRING
HIGHneural_network/input_data.py87Extract the labels into a 1D uint8 numpy array [index]. Args: f: A file object that can be passed into a gzipSTRING
HIGH…rk/activation_functions/leaky_rectified_linear_unit.py13 Implements the LeakyReLU activation function. Parameters: vector (np.ndarray): The input aSTRING
HIGH…ork/activation_functions/gaussian_error_linear_unit.py29 Implements the Gaussian Error Linear Unit (GELU) function Parameters: vector (np.ndarray): A numpy arSTRING
HIGHneural_network/activation_functions/mish.py15 Implements the Mish activation function. Parameters: vector (np.ndarray): The input array STRING
HIGHneural_network/activation_functions/swish.py34 Implements the Sigmoid Linear Unit (SiLU) or swish function Parameters: vector (np.ndarray): A numpy STRING
HIGHneural_network/activation_functions/swish.py54 Parameters: vector (np.ndarray): A numpy array consisting of real values trainable_parameter: Use STRING
HIGHneural_network/activation_functions/squareplus.py13 Implements the SquarePlus activation function. Parameters: vector (np.ndarray): The input array for thSTRING
HIGHneural_network/activation_functions/softplus.py13 Implements the Softplus activation function. Parameters: vector (np.ndarray): The input array for the STRING
HIGHciphers/diffie.py5 Find a primitive root modulo modulus, if one exists. Args: modulus : The modulus for which to find a pSTRING
HIGHmaths/binary_multiplication.py24 Multiply 'a' and 'b' using bitwise multiplication. Parameters: a (int): The first number. b (int): TheSTRING
HIGHmaths/binary_multiplication.py62 Calculate (a * b) % c using binary multiplication and modular arithmetic. Parameters: a (int): The first nSTRING
HIGHmaths/tanh.py17 Implements the tanh function Parameters: vector: np.ndarray Returns: STRING
HIGHmaths/perfect_number.py16 Check if a number is a perfect number. A perfect number is a positive integer that is equal to the sum of its STRING
HIGHmaths/josephus_problem.py19 Solve the Josephus problem for num_people and a step_size recursively. Args: num_people: A positive inSTRING
HIGHmaths/josephus_problem.py81 Find the winner of the Josephus problem for num_people and a step_size. Args: num_people (int): NumberSTRING
HIGHmaths/josephus_problem.py101 Solve the Josephus problem for num_people and a step_size iteratively. Args: num_people (int): The numSTRING
32 more matches not shown…
Cross-File Repetition92 hits · 460 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/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_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
HIGHproject_euler/problem_025/sol1.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/sol3.py0returns the index of the first term in the fibonacci sequence to contain n digits. >>> solution(1000) 4782 >>> solution(STRING
HIGHproject_euler/problem_025/sol2.py0returns the index of the first term in the fibonacci sequence to contain n digits. >>> solution(1000) 4782 >>> solution(STRING
HIGHproject_euler/problem_025/sol1.py0returns the index of the first term in the fibonacci sequence to contain n digits. >>> solution(1000) 4782 >>> solution(STRING
HIGHproject_euler/problem_003/sol3.py0project euler problem 3: https://projecteuler.net/problem=3 largest prime factor the prime factors of 13195 are 5, 7, 13STRING
HIGHproject_euler/problem_003/sol2.py0project euler problem 3: https://projecteuler.net/problem=3 largest prime factor the prime factors of 13195 are 5, 7, 13STRING
HIGHproject_euler/problem_003/sol1.py0project euler problem 3: https://projecteuler.net/problem=3 largest prime factor the prime factors of 13195 are 5, 7, 13STRING
HIGHproject_euler/problem_003/sol3.py0returns the largest prime factor of a given number n. >>> solution(13195) 29 >>> solution(10) 5 >>> solution(17) 17 >>> STRING
HIGHproject_euler/problem_003/sol2.py0returns the largest prime factor of a given number n. >>> solution(13195) 29 >>> solution(10) 5 >>> solution(17) 17 >>> STRING
32 more matches not shown…
Cross-Language Confusion111 hits · 450 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
HIGHdata_structures/stacks/stack_with_singly_linked_list.py28 >>> stack.push(5)STRING
HIGHdata_structures/stacks/stack_with_singly_linked_list.py29 >>> stack.push(9)STRING
HIGHdata_structures/stacks/stack_with_singly_linked_list.py30 >>> stack.push('python')STRING
HIGHdata_structures/stacks/stack_with_singly_linked_list.py35 >>> stack.push('algorithms')STRING
HIGHdata_structures/stacks/stack_with_singly_linked_list.py62 >>> stack.push("c")STRING
HIGHdata_structures/stacks/stack_with_singly_linked_list.py63 >>> stack.push("b")STRING
HIGHdata_structures/stacks/stack_with_singly_linked_list.py64 >>> stack.push("a")STRING
HIGHdata_structures/stacks/stack_with_singly_linked_list.py75 >>> stack.push("c")STRING
HIGHdata_structures/stacks/stack_with_singly_linked_list.py76 >>> stack.push("b")STRING
HIGHdata_structures/stacks/stack_with_singly_linked_list.py77 >>> stack.push("a")STRING
HIGHdata_structures/stacks/stack_with_singly_linked_list.py88 >>> stack.push(1)STRING
HIGHdata_structures/stacks/stack_with_singly_linked_list.py97 >>> stack.push("Python")STRING
HIGHdata_structures/stacks/stack_with_singly_linked_list.py98 >>> stack.push("Java")STRING
HIGHdata_structures/stacks/stack_with_singly_linked_list.py99 >>> stack.push("C")STRING
HIGHdata_structures/stacks/stack_with_singly_linked_list.py115 >>> stack.push("c")STRING
HIGHdata_structures/stacks/stack_with_singly_linked_list.py116 >>> stack.push("b")STRING
HIGHdata_structures/stacks/stack_with_singly_linked_list.py117 >>> stack.push("a")STRING
HIGHdata_structures/stacks/stack_with_singly_linked_list.py135 >>> stack.push("Java")STRING
HIGHdata_structures/stacks/stack_with_singly_linked_list.py136 >>> stack.push("C")STRING
HIGHdata_structures/stacks/stack_with_singly_linked_list.py137 >>> stack.push("Python")STRING
HIGHdata_structures/stacks/stack_with_singly_linked_list.py150 >>> stack.push("Java")STRING
HIGHdata_structures/stacks/stack_with_singly_linked_list.py151 >>> stack.push("C")STRING
HIGHdata_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
HIGHdata_structures/stacks/stack_with_doubly_linked_list.py100 stack.push(4)CODE
HIGHdata_structures/stacks/stack_with_doubly_linked_list.py103 stack.push(5)CODE
HIGHdata_structures/stacks/stack_with_doubly_linked_list.py106 stack.push(6)CODE
HIGHdata_structures/stacks/stack_with_doubly_linked_list.py109 stack.push(7)CODE
HIGHdata_structures/stacks/balanced_parentheses.py21 stack.push(bracket)CODE
HIGHdata_structures/stacks/stack.py40 >>> S.push(10)STRING
HIGHdata_structures/stacks/stack.py41 >>> S.push(20)STRING
HIGHdata_structures/stacks/stack.py46 >>> S.push(10)STRING
HIGHdata_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
HIGHdata_structures/stacks/stack.py132 >>> S.push(10)STRING
HIGHdata_structures/stacks/stack.py137 >>> S.push(10)STRING
HIGHdata_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
HIGHdata_structures/stacks/stack.py185 stack.push(i)CODE
HIGHdata_structures/stacks/stack.py194 stack.push(100)CODE
HIGHdata_structures/stacks/stack.py198 stack.push(200)CODE
HIGHdata_structures/stacks/infix_to_postfix_conversion.py74 stack.push(char)CODE
HIGHdata_structures/stacks/infix_to_postfix_conversion.py82 stack.push(char)CODE
HIGHdata_structures/stacks/infix_to_postfix_conversion.py89 stack.push(char)CODE
HIGHdata_structures/stacks/infix_to_postfix_conversion.py96 stack.push(char)CODE
HIGHdata_structures/stacks/stack_using_two_queues.py13 >>> stack.push(1)STRING
HIGHdata_structures/stacks/stack_using_two_queues.py14 >>> stack.push(2)STRING
HIGHdata_structures/stacks/stack_using_two_queues.py15 >>> stack.push(3)STRING
HIGHdata_structures/stacks/stack_using_two_queues.py67 stack.push(element)CODE
HIGHdata_structures/binary_tree/avl_tree.py301 q.push(self.root)STRING
HIGHdata_structures/binary_tree/avl_tree.py312 q.push(None)STRING
51 more matches not shown…
Unused Imports249 hits · 248 pts
SeverityFileLineSnippetContext
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_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/mirror_binary_tree.py7CODE
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
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/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/print_reverse.py1CODE
LOWdata_structures/linked_list/has_loop.py1CODE
LOWdata_structures/linked_list/singly_linked_list.py1CODE
LOWdata_structures/heap/heap.py1CODE
LOWdata_structures/heap/skew_heap.py3CODE
LOWdata_structures/heap/randomized_heap.py3CODE
LOWdata_structures/queues/linked_queue.py3CODE
LOWdata_structures/queues/double_ended_queue.py5CODE
LOWdata_structures/queues/circular_queue_linked_list.py4CODE
LOWdata_structures/suffix_tree/suffix_tree_node.py9CODE
LOWhashes/luhn.py3CODE
LOWstrings/anagrams.py1CODE
LOWstrings/autocomplete_using_trie.py1CODE
LOWstrings/knuth_morris_pratt.py1CODE
LOWstrings/aho_corasick.py1CODE
189 more matches not shown…
Hyper-Verbose Identifiers244 hits · 246 pts
SeverityFileLineSnippetContext
LOWsearches/binary_search.py245def binary_search_with_duplicates(sorted_collection: list[int], item: int) -> list[int]:CODE
LOWsearches/binary_search.py320def 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.py61def test_nearest_neighbour_search():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/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():CODE
LOWdata_structures/linked_list/skip_list.py297def test_searching_empty_list_returns_none():CODE
LOWdata_structures/linked_list/skip_list.py318def test_deleting_item_from_empty_list_do_nothing():CODE
LOWdata_structures/linked_list/skip_list.py325def test_deleted_items_are_not_founded_by_find_method():CODE
LOWdata_structures/linked_list/skip_list.py340def test_delete_removes_only_given_key():CODE
LOWdata_structures/linked_list/skip_list.py373def test_delete_doesnt_leave_dead_nodes():CODE
LOWdata_structures/linked_list/skip_list.py391def test_iter_always_yields_sorted_values():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):CODE
LOWdata_structures/hashing/tests/test_hash_map.py90def test_no_new_methods_was_added_to_api():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
LOWdata_structures/suffix_tree/tests/test_suffix_tree.py20 def test_search_existing_patterns(self) -> None:CODE
LOWdata_structures/suffix_tree/tests/test_suffix_tree.py29 def test_search_non_existing_patterns(self) -> None:CODE
LOWdata_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/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/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/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/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.py33def get_set_bits_count_using_modulo_operator(number: int) -> int:CODE
LOWbit_manipulation/gray_code_sequence.py50def gray_code_sequence_string(bit_count: int) -> list: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
LOWproject_euler/problem_054/test_poker_hand.py161def test_hand_is_five_high_straight(hand, expected, card_values):CODE
LOWproject_euler/problem_054/test_poker_hand.py196def test_custom_sort_five_high_straight():CODE
LOWproject_euler/problem_054/test_poker_hand.py203def test_multiple_calls_five_high_straight():CODE
LOWproject_euler/problem_205/sol1.py17def total_frequency_distribution(sides_number: int, dice_number: int) -> list[int]:CODE
LOWproject_euler/problem_064/sol1.py19def continuous_fraction_period(n: int) -> int:CODE
LOWproject_euler/problem_187/sol1.py17def slow_calculate_prime_numbers(max_number: int) -> list[int]:CODE
LOWproject_euler/problem_587/sol1.py32def circle_bottom_arc_integral(point: float) -> float:CODE
LOWproject_euler/problem_012/sol2.py26def triangle_number_generator():CODE
LOWfinancial/straight_line_depreciation.py32def straight_line_depreciation(CODE
LOWfinancial/exponential_moving_average.py15def exponential_moving_average(CODE
LOWfinancial/equated_monthly_installments.py11def equated_monthly_installments(CODE
184 more matches not shown…
Deep Nesting162 hits · 158 pts
SeverityFileLineSnippetContext
LOWsearches/simulated_annealing.py9CODE
LOWsearches/hill_climbing.py86CODE
LOWsearches/ternary_search.py62CODE
LOWsearches/ternary_search.py112CODE
LOWsearches/tabu_search.py127CODE
LOWsearches/tabu_search.py188CODE
LOWsearches/interpolation_search.py6CODE
LOWsearches/fibonacci_search.py58CODE
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.py296CODE
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/linked_list/is_palindrome.py124CODE
LOWdata_structures/linked_list/skip_list.py163CODE
LOWdata_structures/linked_list/doubly_linked_list.py62CODE
LOWdata_structures/linked_list/doubly_linked_list.py114CODE
LOWdata_structures/trie/radix_tree.py50CODE
LOWdata_structures/trie/radix_tree.py131CODE
LOWdata_structures/arrays/find_triplets_with_0_sum.py27CODE
LOWhashes/sha1.py88CODE
LOWhashes/hamming_code.py71CODE
LOWhashes/hamming_code.py147CODE
LOWhashes/md5.py297CODE
LOWstrings/camel_case_to_snake_case.py1CODE
LOWstrings/wildcard_pattern_matching.py10CODE
LOWstrings/aho_corasick.py67CODE
LOWproject_euler/problem_009/sol1.py20CODE
LOWproject_euler/problem_054/sol1.py141CODE
LOWproject_euler/problem_054/sol1.py187CODE
LOWproject_euler/problem_054/sol1.py279CODE
LOWproject_euler/problem_039/sol1.py17CODE
LOWproject_euler/problem_180/sol1.py88CODE
LOWproject_euler/problem_135/sol1.py23CODE
LOWproject_euler/problem_551/sol1.py20CODE
LOWproject_euler/problem_049/sol1.py95CODE
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
LOWcomputer_vision/flip_augmentation.py78CODE
LOWcomputer_vision/mosaic_augmentation.py87CODE
LOWscheduling/round_robin.py12CODE
LOWscheduling/non_preemptive_shortest_job_first.py13CODE
LOWconversions/rgb_hsv_conversion.py15CODE
LOWelectronics/electric_power.py12CODE
LOWelectronics/electric_conductivity.py6CODE
LOWelectronics/coulombs_law.py8CODE
LOWelectronics/builtin_voltage.py8CODE
LOWelectronics/carrier_concentration.py8CODE
LOWelectronics/resistor_color_code.py260CODE
102 more matches not shown…
Redundant / Tautological Comments76 hits · 118 pts
SeverityFileLineSnippetContext
LOWdata_structures/kd_tree/example/example_usage.py38 # Print the resultsCOMMENT
LOWdata_structures/kd_tree/tests/test_kdtree.py47 # Check if root node is not NoneCOMMENT
LOWdata_structures/kd_tree/tests/test_kdtree.py50 # 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.py437 # 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/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
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/sequential_minimum_optimization.py161 # Check if alpha violates the KKT conditionCOMMENT
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
LOWother/word_search.py85 # Check if there is space for the word above the rowCOMMENT
LOWother/word_search.py91 # Check if there is space to the right of the word as well as aboveCOMMENT
LOWother/word_search.py95 # Check if there are existing lettersCOMMENT
LOWother/word_search.py155 # Check if there is space for the word below the rowCOMMENT
LOWother/word_search.py161 # Check if there is space to the right of the word as well as belowCOMMENT
LOWother/word_search.py165 # Check if there are existing lettersCOMMENT
LOWother/word_search.py225 # Check if there is space for the word below the rowCOMMENT
LOWother/word_search.py231 # Check if there is space to the left of the word as well as belowCOMMENT
LOWother/word_search.py235 # Check if there are existing lettersCOMMENT
LOWother/word_search.py295 # Check if there is space for the word above the rowCOMMENT
LOWother/word_search.py301 # Check if there is space to the left of the word as well as aboveCOMMENT
LOWother/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/k_means_clustering_tensorflow.py138 # Assign value to appropriate variableCOMMENT
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
LOWciphers/base64_cipher.py106 # Check if the encoded string contains non base64 charactersCOMMENT
LOWscripts/close_pull_requests_with_require_type_hints.sh12 # Check if the "require type hints" label is presentCOMMENT
LOW…/close_pull_requests_with_require_descriptive_names.sh12 # Check if the "require descriptive names" label is presentCOMMENT
LOWscripts/close_pull_requests_with_require_tests.sh12 # Check if the "require_tests" label is presentCOMMENT
LOWscripts/close_pull_requests_with_awaiting_changes.sh12 # Check if the "awaiting changes" label is presentCOMMENT
LOWscripts/close_pull_requests_with_failing_tests.sh12 # Check if the "tests are failing" label is presentCOMMENT
LOWmaths/line_length.py48 # Increment stepCOMMENT
LOWmaths/area_under_curve.py45 # Increment stepCOMMENT
LOWmaths/numerical_analysis/bisection_2.py46 # Check if middle point is rootCOMMENT
LOWmaths/numerical_analysis/numerical_integration.py49 # Increment stepCOMMENT
LOWgreedy_methods/minimum_coin_change.py98 # Print resultCOMMENT
LOWgraphs/bidirectional_search.py34 # Check if this creates an intersectionCOMMENT
LOWgraphs/bidirectional_search.py95 # Check if start and goal are in the graphCOMMENT
LOWgraphs/minimum_spanning_tree_prims2.py98 # Check if the priority queue is emptyCOMMENT
LOWgraphs/dijkstra_algorithm.py246 # Check if u already in graphCOMMENT
16 more matches not shown…
Self-Referential Comments29 hits · 82 pts
SeverityFileLineSnippetContext
MEDIUMdata_structures/stacks/stock_span_problem.py34 # Create a stack and push index of fist element to itCOMMENT
MEDIUMdata_structures/stacks/postfix_evaluation.py191 # Create a loop so that the user can evaluate postfix expressions multiple timesCOMMENT
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
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/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
MEDIUMmachine_learning/xgboost_classifier.py59 # Create an XGBoost Classifier from the training dataCOMMENT
MEDIUMdynamic_programming/k_means_clustering_tensorflow.py89 # Initialize all variablesCOMMENT
MEDIUMdynamic_programming/longest_increasing_subsequence.py19def longest_subsequence(array: list[int]) -> list[int]: # This function is recursiveCODE
MEDIUM…ital_image_processing/test_digital_image_processing.py125 # 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
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
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
Decorative Section Separators28 hits · 71 pts
SeverityFileLineSnippetContext
MEDIUMhashes/hamming_code.py234# ---------------------------------------------------------------------COMMENT
MEDIUMneural_network/input_data.py14# ==============================================================================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
MEDIUMquantum/quantum_entanglement.py.DISABLED.txt21 # q_1: ─────┤ X ├─╫─┤M├STRING
MEDIUMquantum/quantum_entanglement.py.DISABLED.txt23 # c: 2/═══════════╩══╩═STRING
MEDIUMquantum/quantum_teleportation.py.DISABLED.txt24 # ┌─────────────────┐ ┌───┐STRING
MEDIUMquantum/quantum_teleportation.py.DISABLED.txt25 #qr_0: ┤ U(π/2,π/2,π/2) ├───────■──┤ H ├─■─────────STRING
MEDIUMquantum/quantum_teleportation.py.DISABLED.txt26 # └──────┬───┬──────┘ ┌─┴─┐└───┘ │STRING
MEDIUMquantum/quantum_teleportation.py.DISABLED.txt27 #qr_1: ───────┤ H ├─────────■──┤ X ├──────┼───■─────STRING
MEDIUMquantum/quantum_teleportation.py.DISABLED.txt29 #qr_2: ───────────────────┤ X ├───────────■─┤ X ├┤M├STRING
MEDIUMquantum/quantum_teleportation.py.DISABLED.txt31 #cr: 1/═══════════════════════════════════════════╩═STRING
Over-Commented Block23 hits · 23 pts
SeverityFileLineSnippetContext
LOWproject_euler/problem_054/sol1.py161 'Tie'COMMENT
LOWproject_euler/problem_054/sol1.py281 # 7: Four of a kindCOMMENT
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
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 # img = get_image(figure_center_x = -0.6, figure_center_y = -0.4,COMMENT
LOWdynamic_programming/optimal_binary_search_tree.py1#!/usr/bin/env python3COMMENT
LOWdynamic_programming/k_means_clustering_tensorflow.py81 ##INITIALIZING STATE VARIABLESCOMMENT
LOWneural_network/input_data.py1# Copyright 2016 The TensorFlow Authors. All Rights Reserved.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
LOWmaths/pollard_rho.py41 # Because of the relationship between ``f(f(x))`` and ``f(x)``, thisCOMMENT
LOWmaths/pollard_rho.py101 else: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/graphs_floyd_warshall.py81 # Enter number of edges: 2COMMENT
LOWgraphs/graphs_floyd_warshall.py101 # INF 0 2COMMENT
Modern Structural Boilerplate15 hits · 16 pts
SeverityFileLineSnippetContext
LOWdata_structures/binary_tree/avl_tree.py62 def set_data(self, data: Any) -> None:CODE
LOWdata_structures/binary_tree/avl_tree.py65 def set_left(self, node: MyNode | None) -> None:CODE
LOWdata_structures/binary_tree/avl_tree.py68 def set_right(self, node: MyNode | None) -> None:CODE
LOWdata_structures/binary_tree/avl_tree.py71 def set_height(self, height: int) -> None:CODE
LOWdata_structures/linked_list/doubly_linked_list_two.py78 def set_head(self, node: Node) -> None:CODE
LOWdata_structures/linked_list/doubly_linked_list_two.py85 def set_tail(self, node: Node) -> None:CODE
LOWdata_structures/heap/heap_generic.py79 def update_item(self, item: int, item_value: 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
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
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
LOWaudio_filters/iir_filter.py39 def set_coefficients(self, a_coeffs: list[float], b_coeffs: list[float]) -> None:STRING
Fake / Example Data10 hits · 11 pts
SeverityFileLineSnippetContext
LOWhashes/elf.py5 >>> elf_hash('lorem ipsum')STRING
LOWneural_network/input_data.py129 fake_data=False,CODE
LOWneural_network/input_data.py137 one_hot arg is used only if fake_data is true. `dtype` can be eitherSTRING
LOWneural_network/input_data.py144 fake_data: Ignore inages and labels, use fake data.STRING
LOWneural_network/input_data.py159 if fake_data:CODE
LOWneural_network/input_data.py200 def next_batch(self, batch_size, fake_data=False, shuffle=True):CODE
LOWneural_network/input_data.py202 if fake_data:CODE
LOWneural_network/input_data.py272 fake_data=False,CODE
LOWneural_network/input_data.py280 if fake_data:CODE
LOWneural_network/input_data.py284 [], [], fake_data=True, one_hot=one_hot, dtype=dtype, seed=seedCODE
Hallucination Indicators1 hit · 10 pts
SeverityFileLineSnippetContext
CRITICALfile_transfer/tests/test_send_file.py26 file.return_value.__enter__.return_value.read.assert_called()CODE
Structural Annotation Overuse4 hits · 9 pts
SeverityFileLineSnippetContext
LOWcomputer_vision/cnn_classification.py35 # Step 1 - ConvolutionCOMMENT
LOWcomputer_vision/cnn_classification.py42 # Step 2 - PoolingCOMMENT
LOWcomputer_vision/cnn_classification.py49 # Step 3 - FlatteningCOMMENT
LOWcomputer_vision/cnn_classification.py52 # Step 4 - Full connectionCOMMENT
Example Usage Blocks5 hits · 8 pts
SeverityFileLineSnippetContext
LOWdynamic_programming/floyd_warshall.py66 # Example usageCOMMENT
LOWciphers/vernam_cipher.py34 # Example usageCOMMENT
LOWmaths/spearman_rank_correlation_coefficient.py75 # Example usage:COMMENT
LOWgeometry/graham_scan.py230 # Example usageCOMMENT
LOWgeometry/jarvis_march.py184 # Example usageCOMMENT
AI Response Leakage1 hit · 8 pts
SeverityFileLineSnippetContext
HIGHciphers/elgamal_key_generator.py11# I have written my code naively same as definition of primitive rootCOMMENT
Excessive Try-Catch Wrapping5 hits · 6 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.py49 except Exception as error:CODE
MEDIUMmachine_learning/decision_tree.py41 print("Error: Input labels must be one dimensional")CODE
LOWphysics/newtons_second_law_of_motion.py77 except Exception:STRING
AI Slop Vocabulary3 hits · 4 pts
SeverityFileLineSnippetContext
MEDIUMdata_structures/stacks/stack.py17 """A stack is an abstract data type that serves as a collection ofSTRING
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 Patterns3 hits · 3 pts
SeverityFileLineSnippetContext
LOWsearches/simulated_annealing.py9CODE
LOWproject_euler/problem_020/sol1.py50CODE
LOWphysics/grahams_law.py39CODE
Overly Generic Function Names2 hits · 2 pts
SeverityFileLineSnippetContext
LOWsearches/hill_climbing.py28 >>> def test_function(x, y):STRING
LOWgraphs/multi_heuristic_astar.py81def do_something(back_pointer, goal, start):CODE