AI Slop Code RIsk Monitor

lightgbm-org/LightGBM

A fast, distributed, high performance gradient boosting (GBT, GBDT, GBRT, GBM or MART) framework based on decision tree algorithms, used for ranking, classification and many other machine learning tasks.

6.2 Moderate pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for lightgbm-org/LightGBM, a C++ project with 18,854 GitHub stars. SynthScan examined 116,610 lines of code across 356 source files, recording 713 pattern matches distributed across 14 syntactic categories. The legacy adjusted pattern signal is 6.2 (Moderate pattern signal); it is not an authorship estimate.

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

6.2
Adjusted Signal
6.2
Raw Pattern Score
100%
Time Factor
2026-10-10
Last Push
18.9K
Stars
C++
Language
116.6K
Lines of Code
356
Files
713
Pattern Hits
2026-10-12
Scan Date
0.04
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 23.5/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 2.1/100 · LOW

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

Agent Over-Engineering Ratio 13.2/100 · LOW

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

PR Review Velocity Impact 29.2/100 · MEDIUM

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

What These Metrics Mean

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

Pattern-Signal History

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

Severity Breakdown

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

CRITICAL 0HIGH 13MEDIUM 13LOW 687

Directory Score Breakdown

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

Pattern Findings

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

Hyper-Verbose Identifiers314 hits · 254 pts
SeverityFileLineSnippetContext
LOW.ci/parameter-generator.py199def gen_parameter_description(CODE
LOWtests/python_package_test/test_polars.py22def generate_simple_polars_frame() -> pl.DataFrame:CODE
LOWtests/python_package_test/test_polars.py30def generate_nullable_polars_frame(dtype: Any) -> pl.DataFrame:CODE
LOWtests/python_package_test/test_polars.py41def generate_dummy_polars_frame() -> pl.DataFrame:CODE
LOWtests/python_package_test/test_polars.py50def generate_random_polars_frame(CODE
LOWtests/python_package_test/test_polars.py68def generate_random_polars_series(CODE
LOWtests/python_package_test/test_polars.py114def test_dataset_construct_fuzzy(tmp_path, polars_frame_fn, dataset_params):CODE
LOWtests/python_package_test/test_polars.py126def test_dataset_construct_fuzzy_boolean(tmp_path):CODE
LOWtests/python_package_test/test_polars.py144def test_dataset_construct_fields_fuzzy():CODE
LOWtests/python_package_test/test_polars.py180def test_dataset_construct_labels(polars_type):CODE
LOWtests/python_package_test/test_polars.py191def test_dataset_construct_labels_boolean():CODE
LOWtests/python_package_test/test_polars.py205def test_dataset_construct_weights_none():CODE
LOWtests/python_package_test/test_polars.py215def test_dataset_construct_weights(polars_type):CODE
LOWtests/python_package_test/test_polars.py230def test_dataset_construct_groups(polars_type):CODE
LOWtests/python_package_test/test_polars.py246def test_dataset_construct_position(polars_type):CODE
LOWtests/python_package_test/test_polars.py258def test_dataset_construct_position_with_duplicates_and_out_of_order(polars_type):CODE
LOWtests/python_package_test/test_polars.py275def test_dataset_construct_init_scores_array(polars_type):CODE
LOWtests/python_package_test/test_polars.py286def test_dataset_construct_init_scores_table():CODE
LOWtests/python_package_test/test_polars.py306def assert_equal_predict_polars_pandas(booster: lgb.Booster, data: pl.DataFrame):CODE
LOWtests/python_package_test/test_polars.py350def test_predict_binary_classification():CODE
LOWtests/python_package_test/test_polars.py365def test_predict_multiclass_classification():CODE
LOWtests/python_package_test/test_polars.py396def test_polars_feature_name_auto():CODE
LOWtests/python_package_test/test_polars.py408def test_polars_feature_name_manual():CODE
LOWtests/python_package_test/test_polars.py421def test_get_data_polars_frame():CODE
LOWtests/python_package_test/test_polars.py435def test_get_data_polars_frame_subset(rng):CODE
LOW⚡tests/python_package_test/test_engine.py2479def test_refit_with_one_tree_regression():CODE
LOW⚡tests/python_package_test/test_engine.py2488def test_refit_with_one_tree_binary_classification():CODE
LOW⚡tests/python_package_test/test_engine.py2497def test_refit_with_one_tree_multiclass_classification():CODE
LOW⚡tests/python_package_test/test_engine.py2506def test_refit_dataset_params(rng):CODE
LOW⚡tests/python_package_test/test_engine.py2582def test_constant_features_regression():CODE
LOW⚡tests/python_package_test/test_engine.py2589def test_constant_features_binary():CODE
LOW⚡tests/python_package_test/test_engine.py2595def test_constant_features_multiclass():CODE
LOW⚡tests/python_package_test/test_engine.py2601def test_constant_features_multiclassova():CODE
LOW⚡tests/python_package_test/test_engine.py4860def test_train_and_cv_raise_informative_error_for_train_set_of_wrong_type():CODE
LOW⚡tests/python_package_test/test_engine.py4868def test_train_and_cv_raise_informative_error_for_impossible_num_boost_round(num_boost_round):CODE
LOW⚡tests/python_package_test/test_engine.py4877def test_train_raises_informative_error_if_any_valid_sets_are_not_dataset_objects():CODE
LOWtests/python_package_test/test_engine.py163def test_weighted_percentile_inside_label_range(objective):CODE
LOWtests/python_package_test/test_engine.py200def test_missing_value_handle():CODE
LOWtests/python_package_test/test_engine.py220def test_missing_value_handle_more_na():CODE
LOWtests/python_package_test/test_engine.py240def test_missing_value_handle_na():CODE
LOWtests/python_package_test/test_engine.py271def test_missing_value_handle_zero():CODE
LOWtests/python_package_test/test_engine.py302def test_missing_value_handle_none():CODE
LOWtests/python_package_test/test_engine.py397def test_categorical_handle_na(use_quantized_grad):CODE
LOWtests/python_package_test/test_engine.py447def test_categorical_non_zero_inputs(use_quantized_grad):CODE
LOWtests/python_package_test/test_engine.py526def test_multiclass_prediction_early_stopping():CODE
LOWtests/python_package_test/test_engine.py696def test_ranking_prediction_early_stopping():CODE
LOWtests/python_package_test/test_engine.py779def test_ranking_with_position_information_with_file(tmp_path):CODE
LOWtests/python_package_test/test_engine.py830def test_ranking_with_position_information_with_dataset_constructor(tmp_path):CODE
LOWtests/python_package_test/test_engine.py933def test_early_stopping_ignores_training_set(use_valid):CODE
LOWtests/python_package_test/test_engine.py971def test_early_stopping_callback_can_be_reused_after_it_disabled_itself(disabling_reason):CODE
LOWtests/python_package_test/test_engine.py1024def test_early_stopping_via_global_params(first_metric_only):CODE
LOWtests/python_package_test/test_engine.py1052def test_early_stopping_is_not_enabled_for_non_positive_stopping_rounds(early_stopping_round):CODE
LOWtests/python_package_test/test_engine.py1102def test_early_stopping_min_delta(first_only, single_metric, greater_is_better):CODE
LOWtests/python_package_test/test_engine.py1181def test_early_stopping_min_delta_via_global_params(early_stopping_min_delta):CODE
LOWtests/python_package_test/test_engine.py1203def test_early_stopping_can_be_triggered_via_custom_callback():CODE
LOWtests/python_package_test/test_engine.py1206 def _early_stop_after_seventh_iteration(env):CODE
LOWtests/python_package_test/test_engine.py1251def test_continue_train_reused_dataset():CODE
LOWtests/python_package_test/test_engine.py1283def test_continue_train_multiclass():CODE
LOWtests/python_package_test/test_engine.py1371def test_cv_works_with_init_model(tmp_path):CODE
LOWtests/python_package_test/test_engine.py1545def test_feature_name_with_non_ascii(rng, tmp_path):CODE
254 more matches not shown…
Over-Commented Block219 hits · 194 pts
SeverityFileLineSnippetContext
LOWCMakeLists.txt801COMMENT
LOWCMakeLists.txt821 #COMMENT
LOWbuild_r.R1# For macOS users who have decided to use gccCOMMENT
LOWbuild-python.sh1#!/bin/shCOMMENT
LOWbuild-python.sh21# sh ./build-python.sh install --precompileCOMMENT
LOWbuild-python.sh41# --gpuCOMMENT
LOWbuild-cran-package.sh1#!/bin/shCOMMENT
LOW.ci/check-workflow-status.sh1#!/bin/bashCOMMENT
LOW.ci/set-commit-status.sh1#!/bin/bashCOMMENT
LOW.ci/append-comment.sh1#!/bin/bashCOMMENT
LOW.ci/install-r-deps.R1# Install R dependencies, using only base R.COMMENT
LOW.ci/check-dynamic-dependencies.sh1#!/bin/bashCOMMENT
LOW.ci/rerun-workflow.sh1#!/bin/bashCOMMENT
LOW.ci/conda-envs/ci-core.txt1# [description]COMMENT
LOWR-package/demo/basic_walkthrough.R81# Since we do not have this file with us, the following line is just for illustrationCOMMENT
LOWR-package/demo/categorical_features_rules.R1# Here we are going to try training a model with categorical featuresCOMMENT
LOWR-package/demo/categorical_features_rules.R21# $ duration : int 79 220 185 199 226 141 341 151 57 313 ...COMMENT
LOWR-package/demo/categorical_features_rules.R41# $ marital : num 1 2 1 3 3 2 2 2 1 1 ...COMMENT
LOWR-package/demo/efficient_many_training.R1# Efficient training means training without giving up too much RAMCOMMENT
LOWR-package/tests/testthat/helper.R1# ref for this file:COMMENT
LOWR-package/R/lgb.convert_with_rules.R61#'COMMENT
LOWR-package/R/lgb.convert_with_rules.R81#' new_iris <- lgb.convert_with_rules(data = iris)COMMENT
LOWR-package/R/lgb.convert_with_rules.R101#'COMMENT
LOWR-package/R/lgb.interpret.R1#' @name lgb.interpretCOMMENT
LOWR-package/R/lgb.interpret.R21#' \dontshow{data.table::setDTthreads(1L)}COMMENT
LOWR-package/R/lgb.interpret.R41#' )COMMENT
LOWR-package/R/utils.R161 params$metric <- as.list(unique(unlist(params$metric)))COMMENT
LOWR-package/R/utils.R181# For example, "num_iterations" can also be provided to lgb.train()COMMENT
LOWR-package/R/multithreading.R1#' @name setLGBMThreadsCOMMENT
LOWR-package/R/multithreading.R21#' @exportCOMMENT
LOWR-package/R/lgb.restore_handle.R1#' @name lgb.restore_handleCOMMENT
LOWR-package/R/lgb.restore_handle.R21#' \dontshow{setLGBMthreads(2L)}COMMENT
LOWR-package/R/lgb.plot.importance.R1#' @name lgb.plot.importanceCOMMENT
LOWR-package/R/lgb.plot.importance.R21#' \donttest{COMMENT
LOWR-package/R/lgb.model.dt.tree.R1#' @name lgb.model.dt.treeCOMMENT
LOWR-package/R/lgb.model.dt.tree.R21#' for a leaf, it simply labels it as \code{"NA"}}COMMENT
LOWR-package/R/lgb.model.dt.tree.R41#' dtrain <- lgb.Dataset(train$data, label = train$label)COMMENT
LOWR-package/R/lgb.train.R1#' @name lgb.trainCOMMENT
LOWR-package/R/lgb.train.R21#' train <- agaricus.trainCOMMENT
LOWR-package/R/lightgbm.R1#' @name lgb_shared_paramsCOMMENT
LOWR-package/R/lightgbm.R21#' The "metric" section of the documentation}COMMENT
LOWR-package/R/lightgbm.R41#' \item{\bold{c. list}:COMMENT
LOWR-package/R/lightgbm.R61#' validation set does not improve for several consecutive iterations.COMMENT
LOWR-package/R/lightgbm.R81#' de-serialized, the underlying C++ model object gets reconstructed from these raw bytes, but will onlyCOMMENT
LOWR-package/R/lightgbm.R101#' than \code{\link{lgb.train}}.COMMENT
LOWR-package/R/lightgbm.R121#' \code{label}).COMMENT
LOWR-package/R/lightgbm.R141#' If passing \code{NULL} (the default), will try to use the number of physical cores in theCOMMENT
LOWR-package/R/lightgbm.R261 what = lgb.trainCOMMENT
LOWR-package/R/lightgbm.R281#' https://archive.ics.uci.edu/dataset/73/mushroomCOMMENT
LOWR-package/R/lightgbm.R301#' \item{\code{label}: the label for each record}COMMENT
LOWR-package/R/lightgbm.R321#' UCI Machine Learning Repository.COMMENT
LOWR-package/R/lgb.make_serializable.R1#' @name lgb.make_serializableCOMMENT
LOWR-package/R/lgb.Dataset.R1#' @name lgb_shared_dataset_paramsCOMMENT
LOWR-package/R/lgb.Dataset.R761#' @title Construct \code{lgb.Dataset} objectCOMMENT
LOWR-package/R/lgb.Dataset.R781#' @param categorical_feature categorical features. This can either be a character vector of featureCOMMENT
LOWR-package/R/lgb.Dataset.R841#' a character representing a path to a text file (CSV, TSV, or LibSVM),COMMENT
LOWR-package/R/lgb.Dataset.R861#'COMMENT
LOWR-package/R/lgb.Dataset.R881#' , row.names = FALSECOMMENT
LOWR-package/R/lgb.Dataset.R921COMMENT
LOWR-package/R/lgb.Dataset.R941COMMENT
159 more matches not shown…
Redundant / Tautological Comments34 hits · 58 pts
SeverityFileLineSnippetContext
LOWR-package/R/lgb.Predictor.R27 # Check if model file is a booster handle alreadyCOMMENT
LOW⚡R-package/R/lgb.Predictor.R74 # Check if number of iterations is existing - if not, then set it to -1 (use all)COMMENT
LOW⚡R-package/R/lgb.Predictor.R78 # Check if start iterations is existing - if not, then set it to 0 (start from the first iteration)COMMENT
LOW⚡R-package/R/lgb.Predictor.R83 # Check if data is a file name and not a matrixCOMMENT
LOWR-package/R/lgb.Predictor.R243 # Check if data is a matrixCOMMENT
LOWR-package/R/lgb.Predictor.R424 # Check if data is a dgCMatrix (sparse matrix, column compressed format)COMMENT
LOWR-package/R/lgb.Predictor.R450 # Check if number of rows is strange (not a multiple of the dataset rows)COMMENT
LOWR-package/R/lgb.model.dt.tree.R147 # Check if split index is not null in leafCOMMENT
LOWR-package/R/lightgbm.R226 # Set data to a temporary variableCOMMENT
LOWR-package/R/lgb.Dataset.R162 # Check if more categorical features were output over the feature spaceCOMMENT
LOWR-package/R/lgb.Dataset.R366 # Check if dgCMatrix (sparse matrix column compressed)COMMENT
LOWR-package/R/lgb.Dataset.R417 # Check if dgCMatrix (sparse matrix column compressed)COMMENT
LOWR-package/R/lgb.Dataset.R466 # Check if attribute key is in the known attribute listCOMMENT
LOWR-package/R/lgb.Dataset.R517 # Check if attribute key is in the known attribute listCOMMENT
LOWR-package/R/lgb.Dataset.R1026 # Check if invalid element listCOMMENT
LOWR-package/R/lgb.Dataset.R1134 # Check if dataset is not a datasetCOMMENT
LOWR-package/R/lgb.importance.R71 # Check if relative values are requestedCOMMENT
LOW⚡R-package/R/lgb.Booster.R840 # Check if there are evaluation metricsCOMMENT
LOW⚡R-package/R/lgb.Booster.R843 # Check if evaluation metric is a functionCOMMENT
LOW⚡R-package/R/lgb.Booster.R850 # Check if data to assess is existing differentlyCOMMENT
LOWR-package/R/lgb.Booster.R205 # Check if objective is emptyCOMMENT
LOWR-package/R/lgb.Booster.R403 # Check if evaluation was not doneCOMMENT
LOWR-package/R/lgb.Booster.R745 # Check if current iteration was already predictedCOMMENT
LOWR-package/R/lgb.Booster.R1544 # Check if evaluation result is existingCOMMENT
LOWR-package/R/lgb.Booster.R1560 # Check if error is requestedCOMMENT
LOW⚡R-package/R/callback.R79 # Check if period is at least 1 or moreCOMMENT
LOW⚡R-package/R/callback.R85 # Check if iteration matches moduoCOMMENT
LOW⚡R-package/R/callback.R91 # Check if message is existingCOMMENT
LOWR-package/R/callback.R135 # Check if evaluation record existsCOMMENT
LOWR-package/R/callback.R207 # Check if verbose or notCOMMENT
LOWR-package/R/callback.R265 # Check if score is betterCOMMENT
LOWR-package/R/callback.R279 # Check if early stopping is requiredCOMMENT
LOWR-package/src/install.libs.R175# Check if Windows installation (for gcc vs Visual Studio)COMMENT
LOWpython-package/lightgbm/basic.py3109 # Check if the weight contains values other than oneCOMMENT
Empty Error Handlers9 hits · 45 pts
SeverityFileLineSnippetContext
HIGHtests/python_package_test/test_engine.py881except ImportError:CODE
HIGHtests/python_package_test/test_sklearn.py597except lgb.dask._DaskImportErrorTypes:CODE
HIGHpython-package/lightgbm/__init__.py17except ImportError:CODE
HIGHpython-package/lightgbm/__init__.py21except ImportError:CODE
HIGHpython-package/lightgbm/__init__.py25except ImportError:CODE
HIGHpython-package/lightgbm/basic.py1004except AttributeError:CODE
HIGHpython-package/lightgbm/basic.py1817except AttributeError:CODE
HIGHpython-package/lightgbm/basic.py3819except AttributeError:CODE
HIGHpython-package/lightgbm/basic.py3824except AttributeError:CODE
Deep Nesting44 hits · 34 pts
SeverityFileLineSnippetContext
LOW.ci/parameter-generator.py16CODE
LOW.ci/parameter-generator.py109CODE
LOW.ci/parameter-generator.py199CODE
LOW.ci/parameter-generator.py263CODE
LOWtests/python_package_test/test_engine.py134CODE
LOWtests/python_package_test/test_engine.py723CODE
LOWtests/python_package_test/test_engine.py725CODE
LOWtests/python_package_test/test_basic.py784CODE
LOWtests/python_package_test/test_consistency.py13CODE
LOWtests/python_package_test/test_consistency.py49CODE
LOWtests/python_package_test/utils.py165CODE
LOWtests/python_package_test/utils.py178CODE
LOWtests/python_package_test/test_dask.py155CODE
LOWtests/python_package_test/test_dask.py330CODE
LOWtests/python_package_test/test_dask.py822CODE
LOWtests/python_package_test/test_dask.py1639CODE
LOWtests/python_package_test/test_sklearn.py71CODE
LOWtests/python_package_test/test_sklearn.py1746CODE
LOWtests/python_package_test/test_sklearn.py2240CODE
LOWpython-package/lightgbm/callback.py325CODE
LOWpython-package/lightgbm/callback.py409CODE
LOWpython-package/lightgbm/plotting.py460CODE
LOWpython-package/lightgbm/plotting.py482CODE
LOWpython-package/lightgbm/engine.py108CODE
LOWpython-package/lightgbm/engine.py526CODE
LOWpython-package/lightgbm/dask.py193CODE
LOWpython-package/lightgbm/dask.py439CODE
LOWpython-package/lightgbm/dask.py922CODE
LOWpython-package/lightgbm/basic.py349CODE
LOWpython-package/lightgbm/basic.py467CODE
LOWpython-package/lightgbm/basic.py807CODE
LOWpython-package/lightgbm/basic.py1013CODE
LOWpython-package/lightgbm/basic.py2023CODE
LOWpython-package/lightgbm/basic.py2066CODE
LOWpython-package/lightgbm/basic.py2483CODE
LOWpython-package/lightgbm/basic.py2727CODE
LOWpython-package/lightgbm/basic.py2918CODE
LOWpython-package/lightgbm/basic.py3317CODE
LOWpython-package/lightgbm/basic.py3500CODE
LOWpython-package/lightgbm/basic.py3677CODE
LOWpython-package/lightgbm/basic.py5331CODE
LOWpython-package/lightgbm/sklearn.py719CODE
LOWpython-package/lightgbm/sklearn.py825CODE
LOWpython-package/lightgbm/sklearn.py1944CODE
Unused Imports33 hits · 28 pts
SeverityFileLineSnippetContext
LOWpython-package/lightgbm/compat.py153CODE
LOWpython-package/lightgbm/compat.py154CODE
LOWpython-package/lightgbm/compat.py155CODE
LOWpython-package/lightgbm/__init__.py11CODE
LOWpython-package/lightgbm/__init__.py11CODE
LOWpython-package/lightgbm/__init__.py11CODE
LOWpython-package/lightgbm/__init__.py11CODE
LOWpython-package/lightgbm/__init__.py11CODE
LOWpython-package/lightgbm/__init__.py12CODE
LOWpython-package/lightgbm/__init__.py12CODE
LOWpython-package/lightgbm/__init__.py12CODE
LOWpython-package/lightgbm/__init__.py12CODE
LOWpython-package/lightgbm/__init__.py12CODE
LOWpython-package/lightgbm/__init__.py13CODE
LOWpython-package/lightgbm/__init__.py13CODE
LOWpython-package/lightgbm/__init__.py13CODE
LOWpython-package/lightgbm/__init__.py16CODE
LOWpython-package/lightgbm/__init__.py16CODE
LOWpython-package/lightgbm/__init__.py16CODE
LOWpython-package/lightgbm/__init__.py16CODE
LOWpython-package/lightgbm/__init__.py20CODE
LOWpython-package/lightgbm/__init__.py20CODE
LOWpython-package/lightgbm/__init__.py20CODE
LOWpython-package/lightgbm/__init__.py20CODE
LOWpython-package/lightgbm/__init__.py20CODE
LOWpython-package/lightgbm/__init__.py24CODE
LOWpython-package/lightgbm/__init__.py24CODE
LOWpython-package/lightgbm/__init__.py24CODE
LOWpython-package/lightgbm/dask.py49CODE
LOWpython-package/lightgbm/basic.py35CODE
LOWpython-package/lightgbm/basic.py35CODE
LOWpython-package/lightgbm/sklearn.py56CODE
LOWdocs/conf.py119CODE
AI Structural Patterns24 hits · 23 pts
SeverityFileLineSnippetContext
LOWtests/python_package_test/utils.py41CODE
LOWpython-package/lightgbm/plotting.py37CODE
LOWpython-package/lightgbm/plotting.py176CODE
LOWpython-package/lightgbm/plotting.py294CODE
LOWpython-package/lightgbm/plotting.py749CODE
LOWpython-package/lightgbm/engine.py639CODE
LOWpython-package/lightgbm/dask.py439CODE
LOWpython-package/lightgbm/dask.py1101CODE
LOWpython-package/lightgbm/dask.py1179CODE
LOWpython-package/lightgbm/dask.py1353CODE
LOWpython-package/lightgbm/dask.py1651CODE
LOWpython-package/lightgbm/dask.py1825CODE
LOWpython-package/lightgbm/dask.py2049CODE
LOWpython-package/lightgbm/dask.py2223CODE
LOWpython-package/lightgbm/basic.py1697CODE
LOWpython-package/lightgbm/basic.py4886CODE
LOWpython-package/lightgbm/sklearn.py388CODE
LOWpython-package/lightgbm/sklearn.py825CODE
LOWpython-package/lightgbm/sklearn.py1420CODE
LOWpython-package/lightgbm/sklearn.py1598CODE
LOWpython-package/lightgbm/sklearn.py1762CODE
LOWpython-package/lightgbm/sklearn.py1944CODE
LOWpython-package/lightgbm/sklearn.py2392CODE
LOWpython-package/lightgbm/sklearn.py2557CODE
Cross-Language Confusion3 hits · 22 pts
SeverityFileLineSnippetContext
HIGH⚡docs/conf.py291 sh build-cran-package.sh || exit 1CODE
HIGH⚡docs/conf.py292 R CMD INSTALL --with-keep.source lightgbm_*.tar.gz || exit 1CODE
HIGH⚡docs/conf.py293 Rscript .ci/build-docs.R || exit 1CODE
Self-Referential Comments7 hits · 21 pts
SeverityFileLineSnippetContext
MEDIUMR-package/demo/categorical_features_rules.R69# Creating the LightGBM dataset with categorical featuresCOMMENT
MEDIUMR-package/R/lgb.train.R165 # Create the predictor setCOMMENT
MEDIUMR-package/R/lgb.cv.R186 # Create the predictor setCOMMENT
MEDIUMR-package/R/lgb.cv.R541 # Create a vector of integers from 1:k as many times as possible withoutCOMMENT
MEDIUMR-package/inst/make-r-def.R2# Create a definition file (.def) from a .dll file, using objdump.COMMENT
MEDIUMpython-package/lightgbm/basic.py4029 # Create the node record, and populate universal data membersCOMMENT
MEDIUMdocs/conf.py6# This file is execfile()d with the current directory set to itsCOMMENT
AI Slop Vocabulary8 hits · 16 pts
SeverityFileLineSnippetContext
LOWbuild-python.sh347 # avoid trying to recompile, just use hatchling and copy in relevant filesCOMMENT
LOWR-package/demo/basic_walkthrough.R140# To load it in, simply call lgb.DatasetCOMMENT
MEDIUMtests/python_package_test/test_sklearn.py1418 # Verify that eval_metric is robust to receiving a list with NoneCOMMENT
MEDIUMtests/python_package_test/test_sklearn.py362 y = y.astype(str) # utilize label encoder at it's max powerCODE
MEDIUMtests/python_package_test/test_sklearn.py390 y = y.astype(str) # utilize label encoder at it's max powerCODE
MEDIUMtests/python_package_test/test_sklearn.py420 y = y.astype(str) # utilize label encoder at it's max powerCODE
LOWpython-package/lightgbm/basic.py2801 # If the data is Arrow, we can just pass it to CCOMMENT
MEDIUMsrc/io/dataset_loader.cpp54 // support to get header from parser config, so could utilize following label name to id mapping logic.COMMENT
Structural Annotation Overuse6 hits · 12 pts
SeverityFileLineSnippetContext
LOW⚡MAINTAINING.md66### Step 1: Put up a Release PRCOMMENT
LOW⚡MAINTAINING.md75### Step 2: Merge the Release PRCOMMENT
LOW⚡MAINTAINING.md81### Step 3: Wait for a New CI Run on `main`COMMENT
LOW⚡MAINTAINING.md87### Step 4: Create a ReleaseCOMMENT
LOWMAINTAINING.md98### Step 5: Upload ArtifactsCOMMENT
LOWMAINTAINING.md118### Step 6: Complete All Other Post-merge Release StepsCOMMENT
Modern Structural Boilerplate8 hits · 8 pts
SeverityFileLineSnippetContext
LOWtests/distributed/_test_distributed.py77 def _set_ports(self) -> None:CODE
LOWpython-package/lightgbm/callback.py20__all__ = [CODE
LOWpython-package/lightgbm/plotting.py15__all__ = [CODE
LOWpython-package/lightgbm/__init__.py33__all__ = [CODE
LOWpython-package/lightgbm/engine.py28__all__ = [CODE
LOWpython-package/lightgbm/dask.py41__all__ = [CODE
LOWpython-package/lightgbm/basic.py38__all__ = [CODE
LOWpython-package/lightgbm/sklearn.py59__all__ = [CODE
AI Response Leakage1 hit · 8 pts
SeverityFileLineSnippetContext
HIGHR-package/demo/basic_walkthrough.R4# In this example, we are aiming to predict whether a mushroom is edibleCOMMENT
Slop Phrases3 hits · 6 pts
SeverityFileLineSnippetContext
LOWR-package/R/lgb.Booster.R1122#' different parameters or prediction type, so make sure to check that the output is whatCOMMENT
LOWinclude/LightGBM/config.h1099 // desc = **Note**: don't forget to allow this port in firewall settings before trainingCOMMENT
MEDIUMsrc/treelearner/parallel_tree_learner.h124* When #data is large and #feature is large, you can use this to have better speed-upCOMMENT