Statistical Machine Intelligence & Learning Engine
This report summarizes scanner evidence for haifengl/smile, a Java project with 6,428 GitHub stars. SynthScan examined 754,717 lines of code across 2439 source files, recording 356 pattern matches distributed across 17 syntactic categories. The legacy adjusted pattern signal is 1.6 (Low 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.
Use each vector to guide manual verification of the underlying findings.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 75 finding(s).
Are imports declared and package/API names verified? 32 finding(s).
Are wrappers, guards, and repeated structures necessary? 250 finding(s).
Which changes need focused human review? 356 finding(s).
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.
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.
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.
The scanner identified 356 distinct pattern matches across 17 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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | core/ASSOCIATION_RULE_MINING.md | 421 | // ── FP-Tree construction ────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | core/ASSOCIATION_RULE_MINING.md | 431 | // ── Frequent item sets ──────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | core/ASSOCIATION_RULE_MINING.md | 439 | // ── Association rules ───────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | core/ANOMALY_DETECTION.md | 522 | // ── IsolationForest ────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | core/ANOMALY_DETECTION.md | 546 | // ── SVM (One-Class) ────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | core/ANOMALY_DETECTION.md | 565 | // ── LOF (Local Outlier Factor) ─────────────────────────────────────────────── | COMMENT |
| MEDIUM | …rc/test/java/smile/classification/ClassLabelsTest.java | 28 | // ── fit(int[]) ───────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …rc/test/java/smile/classification/ClassLabelsTest.java | 78 | // ── priori ──────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …rc/test/java/smile/classification/ClassLabelsTest.java | 101 | // ── ni (per-class count) ─────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …rc/test/java/smile/classification/ClassLabelsTest.java | 113 | // ── indexOf ─────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …rc/test/java/smile/classification/ClassLabelsTest.java | 127 | // ── scale ───────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …/java/smile/classification/DiscreteNaiveBayesTest.java | 381 | // ── predict(int[]) correctness — bug fix: must return original label ──────── | COMMENT |
| MEDIUM | …/java/smile/classification/DiscreteNaiveBayesTest.java | 417 | // ── isSoft / isOnline ───────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …/java/smile/classification/DiscreteNaiveBayesTest.java | 438 | // ── all model variants accept non-contiguous labels ─────────────────────── | COMMENT |
| MEDIUM | …/java/smile/classification/DiscreteNaiveBayesTest.java | 456 | // ── TWCNB batch with non-contiguous labels ──────────────────────────────── | COMMENT |
| MEDIUM | …/java/smile/classification/DiscreteNaiveBayesTest.java | 485 | // ── constructor validation ───────────────────────────────────────────────── | COMMENT |
| MEDIUM | …/java/smile/classification/DiscreteNaiveBayesTest.java | 518 | // ── empty instance ──────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …/test/java/smile/classification/OneVersusRestTest.java | 39 | // ── isSoft consistency (bug fix: was always true) ────────────────────────── | COMMENT |
| MEDIUM | …/test/java/smile/classification/OneVersusRestTest.java | 79 | // ── basic fit and predict ───────────────────────────────────────────────── | COMMENT |
| MEDIUM | …c/test/java/smile/classification/OneVersusOneTest.java | 38 | // ── isSoft consistency (bug fix: was always true) ────────────────────────── | COMMENT |
| MEDIUM | …c/test/java/smile/classification/OneVersusOneTest.java | 71 | // ── hard predict (voting) works regardless of Platt ────────────────────── | COMMENT |
| MEDIUM | …c/test/java/smile/classification/OneVersusOneTest.java | 88 | // ── soft predict ───────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …c/test/java/smile/classification/OneVersusOneTest.java | 118 | // ── basic fit validation ────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …c/test/java/smile/classification/PlattScalingTest.java | 27 | // ── scale (constructor) ──────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …c/test/java/smile/classification/PlattScalingTest.java | 62 | // ── fit(scores, y) ───────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …va/smile/classification/resampling/SMOTETomekTest.java | 58 | // ─── Options tests ──────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …va/smile/classification/resampling/SMOTETomekTest.java | 121 | // ─── fit() tests ───────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …java/smile/classification/resampling/SVMSMOTETest.java | 57 | // ─── Options tests ──────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …java/smile/classification/resampling/SVMSMOTETest.java | 130 | // ─── fit() tests ───────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …va/smile/classification/resampling/TomekLinksTest.java | 34 | // ─── Options tests ──────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …va/smile/classification/resampling/TomekLinksTest.java | 86 | // ─── fit() tests ───────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …test/java/smile/classification/resampling/BSOTest.java | 59 | // ─── Options tests ──────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …test/java/smile/classification/resampling/BSOTest.java | 175 | // ─── fit() tests ───────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …t/java/smile/classification/resampling/ADASYNTest.java | 54 | // ─── Options tests ──────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …t/java/smile/classification/resampling/ADASYNTest.java | 125 | // ─── fit() tests ───────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …/java/smile/clustering/HierarchicalClusteringTest.java | 182 | // ── partition(int k) ────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …/java/smile/clustering/HierarchicalClusteringTest.java | 210 | // ── partition(double h) ─────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …/java/smile/clustering/HierarchicalClusteringTest.java | 243 | // ── Linkage consistency ─────────────────────────────────────────────────── | COMMENT |
| MEDIUM | core/src/test/java/smile/clustering/DBSCANTest.java | 85 | // ── Parameter validation ─────────────────────────────────────────────────── | COMMENT |
| MEDIUM | core/src/test/java/smile/clustering/DBSCANTest.java | 111 | // ── predict ─────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | core/src/test/java/smile/clustering/DBSCANTest.java | 148 | // ── Edge cases ──────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | core/src/test/java/smile/clustering/DENCLUETest.java | 85 | // ── Options round-trip ──────────────────────────────────────────────────── | COMMENT |
| MEDIUM | core/src/test/java/smile/clustering/DENCLUETest.java | 125 | // ── Options validation ───────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …src/test/java/smile/clustering/ClusteringUnitTest.java | 33 | // ── Clustering.run ──────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …src/test/java/smile/clustering/ClusteringUnitTest.java | 68 | // ── Clustering.Options validation ───────────────────────────────────────── | COMMENT |
| MEDIUM | …src/test/java/smile/clustering/ClusteringUnitTest.java | 94 | // ── Clustering.Options round-trip ───────────────────────────────────────── | COMMENT |
| MEDIUM | …/java/smile/clustering/DeterministicAnnealingTest.java | 102 | // ── fit produces finite, valid result ───────────────────────────────────── | COMMENT |
| MEDIUM | …/java/smile/clustering/DeterministicAnnealingTest.java | 136 | // ── Options validation ───────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …/java/smile/clustering/DeterministicAnnealingTest.java | 174 | // ── Options round-trip ──────────────────────────────────────────────────── | COMMENT |
| MEDIUM | core/src/test/java/smile/regression/GLMTest.java | 142 | // ── GLM.Options round-trip ───────────────────────────────────────────────── | COMMENT |
| MEDIUM | core/src/test/java/smile/regression/GLMTest.java | 176 | // ── Binomial logLikelihood fix ───────────────────────────────────────────── | COMMENT |
| MEDIUM | core/src/test/java/smile/regression/GLMTest.java | 263 | // ── GLM Bernoulli fit — deviance and logLikelihood are consistent ────────── | COMMENT |
| MEDIUM | core/src/test/java/smile/regression/GLMTest.java | 298 | // ── GLM Binomial fit — logLikelihood is finite and non-positive ─────────── | COMMENT |
| MEDIUM | …t/java/smile/regression/BinarySparseLinearSVMTest.java | 62 | // ── predict returns continuous value (bug fix) ───────────────────────────── | COMMENT |
| MEDIUM | …t/java/smile/regression/BinarySparseLinearSVMTest.java | 92 | // ── weights and intercept accessors ─────────────────────────────────────── | COMMENT |
| MEDIUM | …t/java/smile/regression/BinarySparseLinearSVMTest.java | 115 | // ── SVM.fit factory consistency ─────────────────────────────────────────── | COMMENT |
| MEDIUM | core/src/test/java/smile/regression/SVMTest.java | 123 | // ── constructor validation ───────────────────────────────────────────────── | COMMENT |
| MEDIUM | core/src/test/java/smile/regression/SVMTest.java | 176 | // ── Properties round-trip ───────────────────────────────────────────────── | COMMENT |
| MEDIUM | …src/main/java/smile/classification/resampling/BSO.java | 307 | // ── Step 2: classify each minority sample ─────────────────────────── | COMMENT |
| MEDIUM | …src/main/java/smile/classification/resampling/BSO.java | 359 | // ── Step 3: build indexes needed for synthesis ─────────────────────── | COMMENT |
| 184 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | …dio/src/main/java/smile/studio/kernel/ScalaKernel.java | 99 | new dotty.tools.dotc.core.Contexts.ContextBase().initialCtx(); | CODE |
| CRITICAL | …mile/llm/model/qwen/QwenVerifyGraphRaggedCudaTest.java | 122 | int capturesBefore = smile.llm.engine.VerifyCudaGraphSession.CAPTURES.get(); | CODE |
| CRITICAL | …mile/llm/model/qwen/QwenVerifyGraphRaggedCudaTest.java | 200 | assertEquals(3, smile.llm.engine.VerifyCudaGraphSession.CAPTURES.get() - capturesBefore, | CODE |
| CRITICAL | …llm/model/qwen/QwenVerifyGraphMultiBucketCudaTest.java | 118 | int capturesBefore = smile.llm.engine.VerifyCudaGraphSession.CAPTURES.get(); | CODE |
| CRITICAL | …llm/model/qwen/QwenVerifyGraphMultiBucketCudaTest.java | 194 | assertEquals(1, smile.llm.engine.VerifyCudaGraphSession.CAPTURES.get() - capturesBefore, | CODE |
| CRITICAL | deep/src/test/java/smile/deep/layer/LayerTest.java | 89 | org.junit.jupiter.api.Assumptions.assumeTrue( | CODE |
| CRITICAL | …p/src/test/java/smile/deep/tensor/SafeTensorsTest.java | 390 | @org.junit.jupiter.api.condition.EnabledIfSystemProperty( | CODE |
| CRITICAL⚡ | deep/src/main/java/smile/llm/model/qwen/QwenModel.java | 1749 | smile.llm.engine.VerifyCudaGraphSession.RESETS.get(), | CODE |
| CRITICAL⚡ | deep/src/main/java/smile/llm/model/qwen/QwenModel.java | 1750 | smile.llm.engine.VerifyCudaGraphSession.WARMUPS.get(), | CODE |
| CRITICAL⚡ | deep/src/main/java/smile/llm/model/qwen/QwenModel.java | 1751 | smile.llm.engine.VerifyCudaGraphSession.CAPTURES.get(), | CODE |
| CRITICAL⚡ | deep/src/main/java/smile/llm/model/qwen/QwenModel.java | 1752 | smile.llm.engine.VerifyCudaGraphSession.CLOSES.get()); | CODE |
| CRITICAL | deep/src/main/java/smile/llm/model/qwen/Tokenizer.java | 332 | tokenizer.setChatTemplate(smile.llm.template.Qwen3ChatTemplate.Variant.detect(jinja)); | CODE |
| CRITICAL | scala/src/main/scala-2.13/smile/plot/RenderMacro.scala | 35 | compile(q"""(spec: VegaLite) => { println(org.apache.zeppelin.spark.utils.DisplayUtils.html(spec.iframe())) }""") | CODE |
| CRITICAL | scala/src/main/scala-2.13/smile/plot/RenderMacro.scala | 47 | compile(q"""(canvas: Canvas) => { println(org.apache.zeppelin.spark.utils.DisplayUtils.html(smile.plot.swing.Html. | CODE |
| CRITICAL | scala/src/main/scala-2.13/smile/plot/RenderMacro.scala | 59 | compile(q"""(grid: MultiFigurePane) => { println(org.apache.zeppelin.spark.utils.DisplayUtils.html(smile.plot.swin | CODE |
| CRITICAL | …rve/src/main/java/smile/chat/ConversationResource.java | 280 | return ConversationItem.find("conversationId", io.quarkus.panache.common.Sort.by("createdAt"), | CODE |
| CRITICAL | …rve/src/main/java/smile/chat/ConversationResource.java | 282 | .page(io.quarkus.panache.common.Page.of(pageIndex, pageSize)) | CODE |
| CRITICAL | base/src/main/java/smile/io/Arrow.java | 1324 | return new org.apache.arrow.vector.types.pojo.Schema(fields, null); | CODE |
| CRITICAL | spark/src/test/java/smile/spark/DataTypeUtilsTest.java | 76 | org.apache.spark.sql.types.StructType sparkSchema = new org.apache.spark.sql.types.StructType(new StructField[]{ | CODE |
| CRITICAL | …src/test/java/smile/spark/DataFrameConversionTest.java | 54 | org.apache.spark.sql.types.StructType schema = new org.apache.spark.sql.types.StructType(new StructField[]{ | CODE |
| CRITICAL | …src/test/java/smile/spark/DataFrameConversionTest.java | 93 | org.apache.spark.sql.types.StructType schema = new org.apache.spark.sql.types.StructType(new StructField[]{ | CODE |
| CRITICAL | spark/src/main/java/smile/spark/DataTypeUtils.java | 142 | return new org.apache.spark.sql.types.StructType(fields); | CODE |
| CRITICAL | spark/src/main/java/smile/spark/DataTypeUtils.java | 157 | return new org.apache.spark.sql.types.StructField( | CODE |
| CRITICAL | spark/src/main/java/smile/spark/DataTypeUtils.java | 181 | case Decimal -> org.apache.spark.sql.types.DataTypes.createDecimalType(); | CODE |
| CRITICAL | spark/src/main/java/smile/spark/DataTypeUtils.java | 189 | yield org.apache.spark.sql.types.DataTypes.createArrayType(toSparkType(arr.getComponentType()), true); | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …/main/java/smile/classification/resampling/ADASYN.java | 242 | // Step 1: for each minority sample, count majority neighbors in k-NN of full data. | COMMENT |
| LOW⚡ | …/main/java/smile/classification/resampling/ADASYN.java | 261 | // Step 2: normalize r̂ so it sums to 1. | COMMENT |
| LOW⚡ | …/main/java/smile/classification/resampling/ADASYN.java | 271 | // Step 3: compute per-sample generation count g_i = round(r̂_i * G). | COMMENT |
| LOW | …/main/java/smile/classification/resampling/ADASYN.java | 282 | // Step 4: for each minority sample, generate g_i synthetic samples using | COMMENT |
| LOW⚡ | core/src/main/java/smile/anomaly/LOF.java | 251 | // Step 1: find k nearest neighbors and k-distance for each observation | COMMENT |
| LOW⚡ | core/src/main/java/smile/anomaly/LOF.java | 258 | // Step 2: compute local reachability density (lrd) for each observation | COMMENT |
| LOW | core/src/main/java/smile/anomaly/LOF.java | 270 | // Step 3: compute LOF scores | COMMENT |
| LOW⚡ | base/DATA_TRANSFORMATION.md | 416 | // Step 1: fit imputer on raw training data | COMMENT |
| LOW⚡ | base/DATA_TRANSFORMATION.md | 419 | // Step 2: fit scaler on imputed training data | COMMENT |
| LOW⚡ | base/DATA_TRANSFORMATION.md | 422 | // Step 3: fit standardiser on scaled+imputed training data | COMMENT |
| LOW | …/src/test/java/smile/data/transform/TransformTest.java | 156 | // Step 1: 1 * 2 = 2; Step 2 applied to transformed data: 2 + 1 = 3 | COMMENT |
| LOW⚡ | base/src/main/java/smile/graph/Graph.java | 1184 | // Step 1: Find a Minimum Spanning Tree (MST) | COMMENT |
| LOW⚡ | base/src/main/java/smile/graph/Graph.java | 1188 | // Step 2: Find vertices with odd degree in MST | COMMENT |
| LOW | base/src/main/java/smile/graph/Graph.java | 1202 | // Step 3: Perform Minimum Weight Perfect Matching on odd-degree vertices | COMMENT |
| LOW | base/src/main/java/smile/graph/Graph.java | 1230 | // Step 4: Combine MST edges and matching edges to form a multigraph | COMMENT |
| LOW | base/src/main/java/smile/graph/Graph.java | 1243 | // Step 5: Find an Eulerian Circuit | COMMENT |
| LOW | base/src/main/java/smile/graph/Graph.java | 1269 | // Step 6: Shortcut the Eulerian Circuit to form a Hamiltonian Path | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | studio/src/universal/conf/smile.ini | 1 | ### Setting -X directly (-J is stripped) | COMMENT |
| LOW | studio/src/universal/conf/smile.ini | 21 | COMMENT | |
| LOW | studio/src/universal/conf/smile.ini | 41 | # UseCompressedOop is on by default for up to 32GB heap. | COMMENT |
| LOW | core/src/test/java/smile/model/cart/LossTest.java | 141 | assertEquals(-1.0, response[0], 1E-12); | COMMENT |
| LOW | plot/src/main/java/smile/plot/swing/Canvas.java | 681 | propertyTable.setAutoResizeMode(JTable.AUTO_RESIZE_OFF); | COMMENT |
| LOW | bin/gpu-test-and-build.sh | 1 | #!/bin/bash | COMMENT |
| LOW | …st/java/smile/llm/model/qwen/QwenWindowVerifyTest.java | 301 | // row in the batch was a partial accept. A fully-accepted row (r == n) | COMMENT |
| LOW | …st/java/smile/llm/model/qwen/QwenWindowVerifyTest.java | 401 | // (testGivenSamePositionBatchedCohortWhenSpeculateBatchThenMatches..., | COMMENT |
| LOW | …st/java/smile/llm/model/qwen/QwenWindowVerifyTest.java | 601 | COMMENT | |
| LOW | …lm/model/qwen/QwenVerifyGraphFullModelCaptureTest.java | 141 | Math.max(2, args.maxBatchSize()), device, ScalarType.Float); | COMMENT |
| LOW | …lm/model/qwen/QwenVerifyGraphFullModelCaptureTest.java | 181 | // otherwise mirrors): with random, untrained weights and a | COMMENT |
| LOW | deep/src/test/java/smile/deep/metric/MetricTest.java | 541 | COMMENT | |
| LOW | deep/src/main/cpp/CMakeLists.txt | 1 | # ============================================================================= | COMMENT |
| LOW | deep/src/main/cpp/CMakeLists.txt | 121 | message(STATUS "Torch version : ${Torch_VERSION}") | COMMENT |
| LOW | deep/src/main/cpp/smile_cuda_graph.cpp | 1 | /* | COMMENT |
| LOW | deep/src/main/cpp/smile_torch.cpp | 21 | * All C handles are thin heap wrappers around the corresponding libtorch | COMMENT |
| LOW | deep/src/main/cpp/smile_torch.cpp | 41 | #include <cstring> | COMMENT |
| LOW | deep/src/main/cpp/smile_torch.cpp | 61 | # include <ATen/BlasBackend.h> | COMMENT |
| LOW | deep/src/main/cpp/smile_flashinfer.cpp | 1 | /* | COMMENT |
| LOW | …/main/cpp/third_party/vllm_marlin/core/scalar_type.hpp | 1 | #pragma once | COMMENT |
| LOW | …arty/vllm_marlin/quantization/marlin/marlin_template.h | 241 | int max_shared_mem) { | COMMENT |
| LOW | …arty/vllm_marlin/quantization/marlin/marlin_template.h | 661 | // when the batchsize is not a multiple of 16. | COMMENT |
| LOW | …rty/vllm_marlin/moe/marlin_moe_wna16/marlin_template.h | 261 | // 1 2 4 | COMMENT |
| LOW | …n/cpp/third_party/flashinfer/include/flashinfer/fp16.h | 1 | // SPDX - FileCopyrightText : 2017 - 2024 Marat Dukhan | COMMENT |
| LOW | …ird_party/flashinfer/include/flashinfer/cubin_loader.h | 21 | // The python code is expected to call `FlashInferSetCubinCallback` when | COMMENT |
| LOW | .github/workflows/codeql.yml | 1 | # For most projects, this workflow file will not need changing; you simply need | COMMENT |
| LOW | .github/workflows/smile-torch-build.yml | 1 | # ============================================================================= | COMMENT |
| LOW | serve/src/test/docker/smoke-test.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | serve/src/main/resources/smile/chat/olive_cli.py | 1 | # Copyright (c) 2010-2026 Haifeng Li. All rights reserved. | COMMENT |
| LOW | base/DATASET.md | 701 | // ----------------------------------------------------------------- | COMMENT |
| LOW | base/src/main/java/smile/util/HuggingFaceHub.java | 421 | // Check refs/ cache for a previously resolved commit hash. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …/main/java/smile/classification/resampling/ADASYN.java | 242 | // Step 1: for each minority sample, count majority neighbors in k-NN of full data. | COMMENT |
| LOW⚡ | …/main/java/smile/classification/resampling/ADASYN.java | 261 | // Step 2: normalize r̂ so it sums to 1. | COMMENT |
| LOW⚡ | …/main/java/smile/classification/resampling/ADASYN.java | 271 | // Step 3: compute per-sample generation count g_i = round(r̂_i * G). | COMMENT |
| LOW | …/main/java/smile/classification/resampling/ADASYN.java | 282 | // Step 4: for each minority sample, generate g_i synthetic samples using | COMMENT |
| LOW⚡ | core/src/main/java/smile/anomaly/LOF.java | 251 | // Step 1: find k nearest neighbors and k-distance for each observation | COMMENT |
| LOW⚡ | core/src/main/java/smile/anomaly/LOF.java | 258 | // Step 2: compute local reachability density (lrd) for each observation | COMMENT |
| LOW | core/src/main/java/smile/anomaly/LOF.java | 270 | // Step 3: compute LOF scores | COMMENT |
| LOW | …/src/test/java/smile/data/transform/TransformTest.java | 156 | // Step 1: 1 * 2 = 2; Step 2 applied to transformed data: 2 + 1 = 3 | COMMENT |
| LOW⚡ | base/src/main/java/smile/graph/Graph.java | 1184 | // Step 1: Find a Minimum Spanning Tree (MST) | COMMENT |
| LOW⚡ | base/src/main/java/smile/graph/Graph.java | 1188 | // Step 2: Find vertices with odd degree in MST | COMMENT |
| LOW | base/src/main/java/smile/graph/Graph.java | 1202 | // Step 3: Perform Minimum Weight Perfect Matching on odd-degree vertices | COMMENT |
| LOW | base/src/main/java/smile/graph/Graph.java | 1230 | // Step 4: Combine MST edges and matching edges to form a multigraph | COMMENT |
| LOW | base/src/main/java/smile/graph/Graph.java | 1243 | // Step 5: Find an Eulerian Circuit | COMMENT |
| LOW | base/src/main/java/smile/graph/Graph.java | 1269 | // Step 6: Shortcut the Eulerian Circuit to form a Hamiltonian Path | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | core/src/test/java/smile/association/ARMTest.java | 117 | // leverage = 0.6 - 0.8 * 0.7 = 0.04 | COMMENT |
| MEDIUM | core/src/test/java/smile/association/ARMTest.java | 150 | // Given — lift and leverage differ; equals/hashCode intentionally ignores them | COMMENT |
| MEDIUM | …le/feature/transform/FeatureTransformEdgeCaseTest.java | 247 | // Then – the bulk of data (first 5 rows) should be less spread by robust | COMMENT |
| MEDIUM | …del/qwen/QwenVerifyGraphTensorParallelCaptureTest.java | 187 | // real, robust correctness signal. | COMMENT |
| MEDIUM | …lm/model/qwen/QwenVerifyGraphFullModelCaptureTest.java | 187 | // diff below is the real, robust correctness signal. | COMMENT |
| MEDIUM | serve/src/main/webui/package-lock.json | 3837 | "resolved": "https://registry.npmjs.org/robust-predicates/-/robust-predicates-3.0.3.tgz", | CODE |
| MEDIUM | base/src/test/java/smile/cs/CompressedSensingTest.java | 192 | // Generous iteration budget for a robust test | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | kotlin/src/main/kotlin/smile/regression.kt | 0 | able to handle both numerical and categorical data: | STRING |
| HIGH | kotlin/src/main/kotlin/smile/classification.kt | 0 | able to handle both numerical and categorical data: | STRING |
| HIGH | scala/src/main/scala/smile/classification/package.scala | 0 | able to handle both numerical and categorical data: | STRING |
| HIGH | scala/src/main/scala/smile/regression/package.scala | 0 | able to handle both numerical and categorical data: | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | studio/README.md | 836 | export SERPAPI_KEY="your_api_key" | CODE |
| HIGH | studio/README.md | 839 | $env:SERPAPI_KEY = "your_api_key" | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | studio/src/test/java/smile/studio/StatusBarTest.java | 89 | "Acme Corp", | CODE |
| LOW | studio/src/test/java/smile/studio/StatusBarTest.java | 104 | assertTrue(statusBar.getLicenseBadgeText().contains("Acme Corp")); | CODE |
| LOW | …c/test/java/smile/studio/license/LicenseStoreTest.java | 258 | {"ver":1,"id":"LIC-2026-0300","customer":"Acme Corp","tier":"STUDIO_TEAM","seats":5,"issuedAt":"2026-04- | CODE |
| LOW | …c/test/java/smile/studio/license/LicenseStoreTest.java | 284 | {"ver":1,"id":"LIC-2026-0400","customer":"Acme Corp","tier":"ENTERPRISE","seats":25,"issuedAt":"2026-04- | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | .github/workflows/codeql.yml | 58 | # If you are analyzing a compiled language, you can modify the 'build-mode' for that language to customize how | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | .github/workflows/ci.yml | 51 | # Create a symlink to the latest libonnxruntime.so in the capi directory | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | studio/README.md | 3 | > **SMILE Studio** is an agentic IDE for data science using Python or [SMILE](https://www.aihalo.dev//) on JVM. It combi | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | bin/setup.sh | 11 | # Check if running inside a GitHub Actions runner | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …ty/vllm_marlin/quantization/marlin/generate_kernels.py | 103 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | serve/src/main/resources/smile/chat/olive_cli.py | 40 | def maybe_register_ep_libraries(ep_paths: dict) -> None: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | serve/src/main/resources/smile/chat/olive_cli.py | 68 | except Exception as exc: # noqa: BLE001 — skip broken optional EPs | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | serve/src/main/resources/smile/chat/olive_cli.py | 30 | CODE |