Repository Analysis

exaloop/codon

A high-performance, zero-overhead, extensible Python compiler with built-in NumPy support

2.5 Likely human-written View on GitHub
2.5
Adjusted Score
2.5
Raw Score
100%
Time Factor
2026-05-29
Last Push
16,779
Stars
Python
Language
75,414
Lines of Code
342
Files
184
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 0HIGH 0MEDIUM 1LOW 183

Pattern Findings

184 matches across 6 categories. Click a row to expand file-level details.

Over-Commented Block164 hits · 164 pts
SeverityFileLineSnippet
LOWtest/types.cpp1// Copyright (C) 2022-2026 Exaloop Inc. <https://exaloop.io>
LOWtest/main.cpp1// Copyright (C) 2022-2026 Exaloop Inc. <https://exaloop.io>
LOWdocs/developers/ir.md201functions or types as needed in the pass.
LOWcodon/app/main.cpp1// Copyright (C) 2022-2026 Exaloop Inc. <https://exaloop.io>
LOWcodon/util/common.h1// Copyright (C) 2022-2026 Exaloop Inc. <https://exaloop.io>
LOWcodon/util/tser.h1// Licensed under the Boost License <https://opensource.org/licenses/BSL-1.0>.
LOWcodon/util/peg2cpp.cpp1// Copyright (C) 2022-2026 Exaloop Inc. <https://exaloop.io>
LOWcodon/runtime/exc.cpp1// Copyright (C) 2022-2026 Exaloop Inc. <https://exaloop.io>
LOWcodon/runtime/lib.cpp1// Copyright (C) 2022-2026 Exaloop Inc. <https://exaloop.io>
LOWcodon/runtime/lib.cpp21#include <unwind.h>
LOWcodon/runtime/lib.h1// Copyright (C) 2022-2026 Exaloop Inc. <https://exaloop.io>
LOWcodon/runtime/re.cpp1// Copyright (C) 2022-2026 Exaloop Inc. <https://exaloop.io>
LOWcodon/runtime/numpy/loops.cpp1// Copyright (C) 2022-2026 Exaloop Inc. <https://exaloop.io>
LOWcodon/runtime/floatlib/extendsftf2.c1//===-- lib/extendsftf2.c - single -> quad conversion -------------*- C -*-===//
LOWcodon/runtime/floatlib/extendhftf2.c1//===-- lib/extendhftf2.c - half -> quad conversion ---------------*- C -*-===//
LOWcodon/runtime/floatlib/int_lib.h1//===-- int_lib.h - configuration header for compiler-rt -----------------===//
LOWcodon/runtime/floatlib/int_lib.h21// ABI macro definitions
LOWcodon/runtime/floatlib/int_lib.h41#define ALWAYS_INLINE __attribute__((always_inline))
LOWcodon/runtime/floatlib/int_lib.h61#define COMPILER_RT_ALIAS(name, aliasname) \
LOWcodon/runtime/floatlib/int_lib.h81//
LOWcodon/runtime/floatlib/extendhfsf2.c1//===-- lib/extendhfsf2.c - half -> single conversion -------------*- C -*-===//
LOWcodon/runtime/floatlib/extendhfsf2.c21#if defined(__ARM_EABI__)
LOWcodon/runtime/floatlib/extendsfdf2.c1//===-- lib/extendsfdf2.c - single -> double conversion -----------*- C -*-===//
LOWcodon/runtime/floatlib/trunctfsf2.c1//===-- lib/trunctfsf2.c - quad -> single conversion --------------*- C -*-===//
LOWcodon/runtime/floatlib/trunctfdf2.c1//===-- lib/truncdfsf2.c - quad -> double conversion --------------*- C -*-===//
LOWcodon/runtime/floatlib/truncdfhf2.c1//===-- lib/truncdfhf2.c - double -> half conversion --------------*- C -*-===//
LOWcodon/runtime/floatlib/int_util.h1//===-- int_util.h - internal utility functions ---------------------------===//
LOWcodon/runtime/floatlib/int_math.h1//===-- int_math.h - internal math inlines --------------------------------===//
LOWcodon/runtime/floatlib/int_math.h21
LOWcodon/runtime/floatlib/int_math.h41#else
LOWcodon/runtime/floatlib/int_math.h61#define crt_copysign(x, y) copysign((x), (y))
LOWcodon/runtime/floatlib/int_math.h81#define crt_fmaxl(x, y) __max((x), (y))
LOWcodon/runtime/floatlib/fp_extend.h1//===-lib/fp_extend.h - low precision -> high precision conversion -*- C
LOWcodon/runtime/floatlib/fp_extend.h41
LOWcodon/runtime/floatlib/truncsfbf2.c1//===-- lib/truncsfbf2.c - single -> bfloat conversion ------------*- C -*-===//
LOWcodon/runtime/floatlib/int_endianness.h1//===-- int_endianness.h - configuration header for compiler-rt -----------===//
LOWcodon/runtime/floatlib/int_endianness.h21#if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
LOWcodon/runtime/floatlib/int_endianness.h41#error "unknown endianness"
LOWcodon/runtime/floatlib/int_endianness.h61
LOWcodon/runtime/floatlib/int_endianness.h81#ifdef __BIG_ENDIAN__
LOWcodon/runtime/floatlib/int_endianness.h101#define _YUGA_LITTLE_ENDIAN 1
LOWcodon/runtime/floatlib/int_types.h1//===-- int_lib.h - configuration header for compiler-rt -----------------===//
LOWcodon/runtime/floatlib/int_types.h21// si_int is defined in Linux sysroot's asm-generic/siginfo.h
LOWcodon/runtime/floatlib/int_types.h61 su_int low;
LOWcodon/runtime/floatlib/fp_trunc.h1//=== lib/fp_trunc.h - high precision -> low precision conversion *- C -*-===//
LOWcodon/runtime/floatlib/fp_lib.h1//===-- lib/fp_lib.h - Floating-point utilities -------------------*- C -*-===//
LOWcodon/runtime/floatlib/fp_lib.h21#define FP_LIB_HEADER
LOWcodon/runtime/floatlib/fp_lib.h181
LOWcodon/runtime/floatlib/fp_lib.h221#if !defined(QUAD_PRECISION) || defined(CRT_HAS_IEEE_TF)
LOWcodon/runtime/floatlib/truncdfbf2.c1//===-- lib/truncdfbf2.c - double -> bfloat conversion ------------*- C -*-===//
LOWcodon/runtime/floatlib/truncsfhf2.c1//===-- lib/truncsfhf2.c - single -> half conversion --------------*- C -*-===//
LOWcodon/runtime/floatlib/truncsfhf2.c21#if defined(__ARM_EABI__)
LOWcodon/runtime/floatlib/truncdfsf2.c1//===-- lib/truncdfsf2.c - double -> single conversion ------------*- C -*-===//
LOWcodon/runtime/floatlib/trunctfhf2.c1//===-- lib/trunctfhf2.c - quad -> half conversion ----------------*- C -*-===//
LOWcodon/runtime/floatlib/extenddftf2.c1//===-- lib/extenddftf2.c - double -> quad conversion -------------*- C -*-===//
LOWcodon/parser/common.cpp1// Copyright (C) 2022-2026 Exaloop Inc. <https://exaloop.io>
LOWcodon/parser/cache.h1// Copyright (C) 2022-2026 Exaloop Inc. <https://exaloop.io>
LOWcodon/parser/cache.h21
LOWcodon/parser/cache.h301 /// Find a function with a given canonical name and return a matching types::Type
LOWcodon/parser/cache.cpp1// Copyright (C) 2022-2026 Exaloop Inc. <https://exaloop.io>
104 more matches not shown…
Unused Imports8 hits · 8 pts
SeverityFileLineSnippet
LOWjit/codon/__init__.py7
LOWjit/codon/__init__.py7
LOWjit/codon/__init__.py7
LOWjit/codon/__init__.py7
LOWjit/codon/__init__.py7
LOWjit/codon/__init__.py7
LOWjit/codon/__init__.py7
LOWjit/codon/__init__.py7
Deep Nesting7 hits · 7 pts
SeverityFileLineSnippet
LOWbench/codon/go.py46
LOWbench/codon/go.py72
LOWbench/codon/go.py245
LOWbench/codon/go.py263
LOWtest/python/find-python-library.py3
LOWjit/codon/decorator.py77
LOWjit/codon/decorator.py175
Hyper-Verbose Identifiers3 hits · 4 pts
SeverityFileLineSnippet
LOWdocs/parallel/multithreading.md152def only_run_by_one_thread_at_a_time():
LOWdocs/parallel/multithreading.md156def only_run_by_master_thread():
LOWdocs/parallel/multithreading.md160def only_run_by_single_thread():
Dead Code1 hit · 2 pts
SeverityFileLineSnippet
MEDIUMtest/python/mymodule.py15
Overly Generic Function Names1 hit · 1 pts
SeverityFileLineSnippet
LOWbench/codon/taq.py37def process_data(series):