AI Slop Code RIsk Monitor

microsoft/FLAML

A fast library for AutoML and tuning. Join our Discord: https://discord.gg/Cppx2vSPVP.

16.1 Elevated pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for microsoft/FLAML, a Jupyter Notebook project with 4,406 GitHub stars. SynthScan examined 68,057 lines of code across 374 source files, recording 808 pattern matches distributed across 19 syntactic categories. The legacy adjusted pattern signal is 16.1 (Elevated 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.

16.1
Adjusted Signal
16.1
Raw Pattern Score
100%
Time Factor
2026-10-11
Last Push
4.4K
Stars
Jupyter Notebook
Language
68.1K
Lines of Code
374
Files
808
Pattern Hits
2026-10-12
Scan Date
0.18
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 31.3/100 · MEDIUM

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

Hallucinated Dependency & Supply Chain Risk 14.8/100 · LOW

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

Agent Over-Engineering Ratio 38.5/100 · MEDIUM

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

PR Review Velocity Impact 57.7/100 · HIGH

Which changes need focused human review? 808 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 66MEDIUM 17LOW 725

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 808 distinct pattern matches across 19 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.

Empty Error Handlers56 hits · 280 pts
SeverityFileLineSnippetContext
HIGHtest/automl/test_model.py111except ValueError:CODE
HIGHtest/automl/test_model.py122except ValueError:CODE
HIGHtest/automl/test_split.py219except AssertionError:CODE
HIGHtest/automl/test_notebook_example.py183except ImportError:CODE
HIGHtest/automl/test_score.py221except NotImplementedError:CODE
HIGHtest/automl/test_multiclass.py285except ImportError:CODE
HIGHtest/automl/test_multiclass.py559except ImportError:CODE
HIGHtest/automl/test_warmstart.py222except AssertionError:CODE
HIGHtest/tune/test_searcher.py47except ValueError:CODE
HIGHtest/tune/test_searcher.py74except AttributeError:CODE
HIGHtest/tune/test_searcher.py86except ValueError:CODE
HIGHtest/tune/test_searcher.py91except AttributeError:CODE
HIGHtest/tune/test_searcher.py96except ValueError:CODE
HIGHtest/tune/test_searcher.py101except TypeError:CODE
HIGHtest/tune/test_searcher.py106except TypeError:CODE
HIGHtest/tune/test_searcher.py111except ValueError:CODE
HIGHtest/tune/test_searcher.py116except TypeError:CODE
HIGHtest/tune/test_searcher.py121except ValueError:CODE
HIGHtest/tune/test_searcher.py128except ValueError:CODE
HIGHtest/tune/test_searcher.py140except ValueError:CODE
HIGHtest/tune/test_searcher.py146except TypeError:CODE
HIGHtest/tune/test_searcher.py152except TypeError:CODE
HIGHtest/tune/test_searcher.py158except RuntimeError:CODE
HIGHtest/tune/test_searcher.py163except RuntimeError:CODE
HIGHtest/tune/test_searcher.py169except RuntimeError:CODE
HIGHtest/tune/test_searcher.py174except RuntimeError:CODE
HIGHtest/tune/test_searcher.py196except AssertionError:CODE
HIGHtest/tune/test_space.py107except ValueError:CODE
HIGHtest/tune/test_space.py121except TuneError:CODE
HIGHtest/autogen/oai/test_completion.py36except ValueError:CODE
HIGHtest/spark/test_mlflow.py24except ImportError:CODE
HIGHflaml/default/suggest.py15except ImportError:CODE
HIGHflaml/default/portfolio.py82except KeyError: # no "default"CODE
HIGHflaml/default/portfolio.py112except FileNotFoundError:CODE
HIGHflaml/automl/model.py106except ValueError:CODE
HIGHflaml/automl/model.py97except ValueError:CODE
HIGHflaml/automl/model.py117except ValueError:CODE
HIGHflaml/automl/ml.py31except ImportError:CODE
HIGHflaml/automl/automl.py1722except Exception:CODE
HIGHflaml/automl/automl.py2677except FileNotFoundError:CODE
HIGHflaml/automl/automl.py1522except Exception:CODE
HIGHflaml/automl/automl.py2664except FileNotFoundError:CODE
HIGHflaml/automl/automl.py1690except Exception:CODE
HIGHflaml/automl/data.py27except ImportError:CODE
HIGHflaml/automl/data.py862except Exception:CODE
HIGHflaml/automl/data.py852except TypeError:CODE
HIGHflaml/automl/data.py832except Exception:CODE
HIGHflaml/automl/task/time_series_task.py494except ImportError:CODE
HIGHflaml/automl/task/generic_task.py24except ImportError:CODE
HIGHflaml/automl/task/generic_task.py37except ImportError:CODE
HIGHflaml/automl/task/generic_task.py1345except ImportError:CODE
HIGHflaml/onlineml/trial.py14except ImportError:CODE
HIGHflaml/fabric/mlflow.py257except Exception:CODE
HIGHflaml/fabric/mlflow.py372except Exception:CODE
HIGHflaml/fabric/mlflow.py422except mlflow.exceptions.MlflowException:CODE
HIGHflaml/autogen/oai/completion.py950except ValueError:CODE
Hyper-Verbose Identifiers261 hits · 276 pts
SeverityFileLineSnippetContext
LOWtest/conftest.py22def evaluate_cv_folds_with_underlying_model(X_train_all, y_train_all, kf, model: Any, task: str) -> List[float]:CODE
LOWtest/test_autovw.py377 def test_vw_oml_problem_and_vanilla_vw(self):CODE
LOWtest/test_autovw.py392 def test_supervised_vw_tune_namespace(self):CODE
LOWtest/test_autovw.py415 def test_supervised_vw_tune_namespace_learningrate(self):CODE
LOWtest/test_autovw.py441 def test_bandit_vw_tune_namespace(self):CODE
LOWtest/test_autovw.py444 def test_bandit_vw_tune_namespace_learningrate(self):CODE
LOWtest/default/test_defaults.py72def test_suggest_classification():CODE
LOWtest/automl/test_extra_models.py180def _test_sparse_matrix_classification(estimator):CODE
LOWtest/automl/test_extra_models.py219def test_load_multi_dataset_aggregates_without_resample():CODE
LOWtest/automl/test_split.py58def test_time_split_with_sample_weight():CODE
LOWtest/automl/test_split.py80def test_group_split_with_sample_weight_alignment():CODE
LOWtest/automl/test_split.py131def test_group_split_with_sample_weight_series_alignment():CODE
LOWtest/automl/test_split.py189def test_groups_for_classification_task():CODE
LOWtest/automl/test_split.py227def test_groups_for_regression_task():CODE
LOWtest/automl/test_split.py256def test_groups_with_sample_weights():CODE
LOWtest/automl/test_split.py297def test_stratified_groupkfold():CODE
LOWtest/automl/test_resampler.py88def test_resampler_hook_fires_per_fold_and_balances_train():CODE
LOWtest/automl/test_resampler.py109def test_resampler_runs_on_final_fit_with_max_iter_one():CODE
LOWtest/automl/test_resampler.py126def test_resampler_with_ensemble_raises():CODE
LOWtest/automl/test_resampler.py143def test_resampler_disables_auto_augment_for_rare_classes():CODE
LOWtest/automl/test_resampler.py162def test_resampler_leaves_validation_untouched():CODE
LOWtest/automl/test_resampler.py195def test_resampler_with_sample_weight_raises():CODE
LOWtest/automl/test_resampler.py210def test_resampler_with_groups_raises():CODE
LOWtest/automl/test_resampler.py225def test_resampler_with_sample_weight_by_estimator_raises():CODE
LOWtest/automl/test_resampler.py242def test_resampler_with_configured_sample_weight_by_estimator_raises():CODE
LOWtest/automl/test_resampler.py256def test_resampler_without_fit_resample_raises():CODE
LOWtest/automl/test_resampler.py267def test_resampler_with_noncallable_fit_resample_raises():CODE
LOWtest/automl/test_resampler.py278def test_resampler_not_cloneable_raises():CODE
LOWtest/automl/test_resampler.py298def test_resampler_none_is_default_and_noop():CODE
LOWtest/automl/test_resampler.py313def test_resampler_from_constructor_settings():CODE
LOWtest/automl/test_resampler.py323def test_resampler_does_not_leak_across_fits():CODE
LOWtest/automl/test_resampler.py341def test_retrain_from_log_with_resampler(tmp_path):CODE
LOWtest/automl/test_resampler.py378def test_resampler_holdout_rejects_singleton(split_type, allow_label_overlap):CODE
LOWtest/automl/test_resampler.py393def test_resampler_holdout_has_disjoint_rows(split_type):CODE
LOWtest/automl/test_resampler.py418def test_resampler_accepts_null_weights(eval_method, source):CODE
LOWtest/automl/test_resampler.py434def test_resampler_smote_integration():CODE
LOWtest/automl/test_sklearn_17_compat.py19def test_extra_trees_regressor_type():CODE
LOWtest/automl/test_sklearn_17_compat.py26def test_extra_trees_classifier_type():CODE
LOWtest/automl/test_sklearn_17_compat.py37def test_random_forest_regressor_type():CODE
LOWtest/automl/test_sklearn_17_compat.py44def test_random_forest_classifier_type():CODE
LOW⚡test/automl/test_sklearn_17_compat.py58def test_lgbm_classifier_type():CODE
LOW⚡test/automl/test_sklearn_17_compat.py65def test_xgboost_regressor_type():CODE
LOW⚡test/automl/test_sklearn_17_compat.py72def test_xgboost_classifier_type():CODE
LOWtest/automl/test_free_mem_ratio.py9def test_free_mem_ratio_reaches_the_search():CODE
LOWtest/automl/test_free_mem_ratio.py44def test_free_mem_ratio_reaches_the_search_holdout():CODE
LOWtest/automl/test_forecast.py127def test_simple_forecaster_sets_initialization_method(monkeypatch):CODE
LOWtest/automl/test_forecast.py160def test_average_forecasters_set_training_boundary(estimator_name):CODE
LOWtest/automl/test_forecast.py225def test_statsmodels_future_forecast_uses_training_boundary():CODE
LOWtest/automl/test_forecast.py249def test_statsmodels_delayed_future_forecast():CODE
LOWtest/automl/test_forecast.py272def test_statsmodels_delayed_future_forecast_requires_exog():CODE
LOWtest/automl/test_forecast.py294def test_statsmodels_generated_exog_fills_future_gap():CODE
LOWtest/automl/test_forecast.py322def test_statsmodels_rejects_mixed_training_and_future_periods():CODE
LOWtest/automl/test_forecast.py361def test_multivariate_forecast_num(budget=5, estimators_when_no_prophet=["arima", "sarimax", "holt-winters"]):CODE
LOWtest/automl/test_forecast.py491def test_multivariate_forecast_cat(budget=5, estimators_when_no_prophet=["arima", "sarimax", "holt-winters"]):CODE
LOWtest/automl/test_forecast.py569def test_forecast_classification(budget=5):CODE
LOWtest/automl/test_forecast.py847def test_log_training_metric_ts_models():CODE
LOWtest/automl/test_binary_metric_on_multiclass.py8def test_binary_only_metric_on_multiclass_raises(metric):CODE
LOWtest/automl/test_constraints.py95def test_metric_constraints_custom():CODE
LOWtest/automl/test_preprocess_api.py16 def test_automl_preprocess_before_fit(self):CODE
LOWtest/automl/test_preprocess_api.py26 def test_automl_preprocess_classification(self):CODE
201 more matches not shown…
Unused Imports214 hits · 202 pts
SeverityFileLineSnippetContext
LOWtest/conftest.py1CODE
LOWtest/conftest.py1CODE
LOWtest/conftest.py4CODE
LOWtest/test_autovw.py4CODE
LOWtest/automl/test_extra_models.py24CODE
LOWtest/automl/test_sklearn_17_compat.py8CODE
LOWtest/automl/test_free_mem_ratio.py1CODE
LOWtest/automl/test_forecast.py641CODE
LOWtest/automl/test_forecast.py37CODE
LOWtest/automl/test_forecast.py385CODE
LOWtest/automl/test_forecast.py510CODE
LOWtest/automl/test_forecast.py835CODE
LOWtest/automl/test_custom_hp.py9CODE
LOWtest/automl/test_score.py39CODE
LOWtest/automl/test_warmstart.py180CODE
LOWtest/automl/test_no_overlap.py3CODE
LOWtest/pipeline_tuning_example/train/train.py5CODE
LOWtest/tune/test_searcher.py324CODE
LOWtest/tune/example_scheduler.py1CODE
LOWtest/tune/test_sample.py6CODE
LOWtest/tune/test_sample.py6CODE
LOWtest/tune/test_sample.py6CODE
LOWtest/tune/test_sample.py6CODE
LOWtest/tune/test_sample.py6CODE
LOWtest/tune/test_lexiflow.py3CODE
LOWtest/tune/test_flaml_raytune_consistency.py6CODE
LOWtest/tune/test_tune.py6CODE
LOWtest/tune/test_tune.py9CODE
LOWtest/tune/test_tune.py117CODE
LOWtest/tune/test_search_thread.py3CODE
LOWtest/nlp/test_autohf_cv.py9CODE
LOWtest/nlp/test_default.py11CODE
LOWtest/nlp/test_autohf_classificationhead.py13CODE
LOWtest/nlp/test_autohf_classificationhead.py13CODE
LOWtest/nlp/test_autohf_classificationhead.py13CODE
LOWtest/nlp/test_autohf_classificationhead.py9CODE
LOWtest/nlp/test_autohf_multichoice_classification.py9CODE
LOWtest/nni/mnist.py13CODE
LOWtest/autogen/test_code.py238CODE
LOWtest/autogen/test_notebook.py7CODE
LOWtest/autogen/agentchat/test_async.py51CODE
LOWtest/autogen/agentchat/test_math_user_proxy_agent.py20CODE
LOWtest/autogen/agentchat/test_assistant_agent.py20CODE
LOWtest/autogen/agentchat/test_assistant_agent.py64CODE
LOWtest/autogen/agentchat/test_assistant_agent.py118CODE
LOWtest/autogen/agentchat/test_assistant_agent.py161CODE
LOWtest/autogen/agentchat/extensions/tsp.py5CODE
LOWtest/autogen/agentchat/extensions/tsp.py6CODE
LOWtest/autogen/agentchat/extensions/tsp.py8CODE
LOWtest/autogen/agentchat/extensions/tsp.py9CODE
LOWtest/autogen/oai/test_completion.py123CODE
LOWtest/autogen/oai/test_completion.py212CODE
LOWtest/autogen/oai/test_completion.py331CODE
LOWtest/spark/test_utils.py17CODE
LOWtest/spark/test_overtime.py11CODE
LOWtest/spark/test_overtime.py13CODE
LOWtest/spark/test_multiclass.py23CODE
LOWtest/spark/test_mlflow.py3CODE
LOWtest/spark/test_mlflow.py11CODE
LOWtest/spark/test_mlflow.py22CODE
154 more matches not shown…
Deep Nesting115 hits · 108 pts
SeverityFileLineSnippetContext
LOWtest/test_autovw.py45CODE
LOWtest/automl/test_training_log.py14CODE
LOWtest/automl/test_forecast.py441CODE
LOWtest/automl/test_forecast.py447CODE
LOWtest/tune/test_pytorch_cifar10.py189CODE
LOWtest/tune/test_scheduler.py56CODE
LOWtest/tune/test_tune.py115CODE
LOWtest/nlp/test_autohf.py15CODE
LOWtest/nlp/test_autohf_tokenclassification.py18CODE
LOWtest/nlp/test_autohf_tokenclassification.py71CODE
LOWtest/autogen/test_notebook.py17CODE
LOWflaml/default/suggest.py23CODE
LOWflaml/automl/model.py391CODE
LOWflaml/automl/model.py1475CODE
LOWflaml/automl/model.py1569CODE
LOWflaml/automl/model.py2123CODE
LOWflaml/automl/model.py2258CODE
LOWflaml/automl/ml.py99CODE
LOWflaml/automl/ml.py197CODE
LOWflaml/automl/automl.py1011CODE
LOWflaml/automl/automl.py1441CODE
LOWflaml/automl/automl.py1694CODE
LOWflaml/automl/automl.py1862CODE
LOWflaml/automl/automl.py2775CODE
LOWflaml/automl/automl.py2971CODE
LOWflaml/automl/automl.py3265CODE
LOWflaml/automl/automl.py3534CODE
LOWflaml/automl/automl.py1470CODE
LOWflaml/automl/automl.py1510CODE
LOWflaml/automl/data.py151CODE
LOWflaml/automl/data.py635CODE
LOWflaml/automl/data.py753CODE
LOWflaml/automl/data.py269CODE
LOWflaml/automl/data.py410CODE
LOWflaml/automl/state.py57CODE
LOWflaml/automl/task/time_series_task.py96CODE
LOWflaml/automl/task/generic_task.py103CODE
LOWflaml/automl/task/generic_task.py309CODE
LOWflaml/automl/task/generic_task.py369CODE
LOWflaml/automl/task/generic_task.py501CODE
LOWflaml/automl/task/generic_task.py828CODE
LOWflaml/automl/task/generic_task.py1096CODE
LOWflaml/automl/task/generic_task.py1132CODE
LOWflaml/automl/task/generic_task.py1161CODE
LOWflaml/automl/task/generic_task.py1294CODE
LOWflaml/automl/task/generic_task.py1374CODE
LOWflaml/automl/nlp/utils.py14CODE
LOWflaml/automl/nlp/utils.py38CODE
LOWflaml/automl/nlp/huggingface/utils.py26CODE
LOWflaml/automl/nlp/huggingface/utils.py79CODE
LOWflaml/automl/nlp/huggingface/utils.py312CODE
LOWflaml/automl/nlp/huggingface/utils.py375CODE
LOWflaml/automl/nlp/huggingface/utils.py388CODE
LOWflaml/automl/time_series/ts_data.py229CODE
LOWflaml/automl/time_series/ts_data.py385CODE
LOWflaml/automl/time_series/ts_model.py336CODE
LOWflaml/automl/spark/metrics.py50CODE
LOWflaml/automl/spark/utils.py26CODE
LOWflaml/automl/spark/utils.py179CODE
LOWflaml/tune/trial.py24CODE
55 more matches not shown…
Excessive Try-Catch Wrapping39 hits · 39 pts
SeverityFileLineSnippetContext
LOWtest/automl/test_regression.py304 except Exception:CODE
LOWtest/nni/mnist.py210 except Exception as exception:CODE
LOWflaml/automl/ml.py137 except Exception:CODE
LOWflaml/automl/automl.py488 except Exception:CODE
LOWflaml/automl/automl.py544 except Exception as e:CODE
LOWflaml/automl/automl.py1489 except Exception:CODE
LOWflaml/automl/automl.py1504 except Exception:CODE
LOWflaml/automl/automl.py1522 except Exception:CODE
LOWflaml/automl/automl.py1633 except Exception as e:CODE
LOWflaml/automl/automl.py1653 except Exception:CODE
LOWflaml/automl/automl.py1690 except Exception:CODE
LOWflaml/automl/automl.py1722 except Exception:CODE
LOWflaml/automl/automl.py1755 except Exception as e:CODE
LOWflaml/automl/automl.py1773 except Exception as e:CODE
LOWflaml/automl/automl.py3510 except Exception as e:CODE
LOWflaml/automl/automl.py3517 except Exception as e:CODE
LOWflaml/automl/data.py832 except Exception:CODE
LOWflaml/automl/data.py862 except Exception:CODE
LOWflaml/automl/task/time_series_task.py155 except Exception:CODE
LOWflaml/automl/time_series/ts_model.py410 except Exception as e:CODE
LOWflaml/automl/spark/__init__.py59 except Exception:CODE
LOWflaml/automl/spark/__init__.py75 except Exception:CODE
LOWflaml/automl/spark/__init__.py95 except Exception:CODE
LOWflaml/automl/spark/utils.py65 except Exception:CODE
LOWflaml/tune/searcher/suggestion.py97except Exception: # pragma: no coverCODE
LOWflaml/tune/searcher/suggestion.py824 except Exception as exc:CODE
LOWflaml/tune/searcher/blendsearch.py231 except Exception:CODE
MEDIUMflaml/fabric/mlflow.py135def get_mlflow_log_latency(model_history=False, delete_run=True):CODE
LOWflaml/fabric/mlflow.py257 except Exception:CODE
LOWflaml/fabric/mlflow.py290 except Exception as e:CODE
LOWflaml/fabric/mlflow.py372 except Exception:CODE
LOWflaml/fabric/mlflow.py572 except Exception as e:CODE
LOWflaml/autogen/math_utils.py42 except Exception:CODE
LOWflaml/autogen/math_utils.py99 except Exception:CODE
LOWflaml/autogen/math_utils.py136 except Exception:CODE
LOWflaml/autogen/math_utils.py279 except Exception:CODE
LOWflaml/autogen/agentchat/conversable_agent.py975 except Exception as e:CODE
LOW…aml/autogen/agentchat/contrib/math_user_proxy_agent.py417 except Exception:CODE
LOW…aml/autogen/agentchat/contrib/math_user_proxy_agent.py446 except Exception:CODE
Over-Commented Block39 hits · 39 pts
SeverityFileLineSnippetContext
LOWtest/tune/test_space.py21 # Sample a float uniformly between 0.0001 and 0.1, whileCOMMENT
LOWtest/tune/test_restore.py81COMMENT
LOWtest/autogen/test_code.py21# def test_find_code():COMMENT
LOWtest/autogen/test_code.py41# # "gpt-3.5-turbo-16k-0613",COMMENT
LOWtest/autogen/test_code.py61# print('Hello, World! printed to hello.txt')COMMENT
LOWtest/autogen/test_code.py81# },COMMENT
LOWtest/autogen/test_code.py101# Please execute the above Python code to save a pandas df with 3 rows and 3 columns to disk.COMMENT
LOWtest/autogen/test_code.py121# "role": "user",COMMENT
LOWtest/autogen/agentchat/test_conversable_agent.py181 # test_context()COMMENT
LOWtest/autogen/agentchat/test_assistant_agent.py201 test_gpt35()COMMENT
LOWtest/spark/test_utils.py441 # test ndcgCOMMENT
LOWtest/spark/test_mlflow.py341 # test_tune_autolog_parentrun_nonparallel()COMMENT
LOWtest/spark/test_0sparkml.py421 # cProfile.run("_test_spark_large_df()", "_test_spark_large_df.profile")COMMENT
LOWwebsite/docusaurus.config.js61 {COMMENT
LOWwebsite/docs/Use-Cases/Tune-User-Defined-Function.md161 # mean=10 and sd=2COMMENT
LOWwebsite/src/components/HomepageFeatures.js21 description: (COMMENT
LOWflaml/default/portfolio.py141# for i, task in enumerate(neighbors):COMMENT
LOWflaml/automl/model.py741 # ) and n_iter > 1:COMMENT
LOWflaml/automl/model.py761 # if (COMMENT
LOWflaml/automl/task/generic_task.py1341 try:COMMENT
LOWflaml/automl/time_series/sklearn.py161 # TODO: do we want auto-clipping?COMMENT
LOWflaml/automl/time_series/sklearn.py181 # **{col: X[col] != "" for col in X.filter(like="_holiday_").columns}COMMENT
LOWflaml/tune/trial.py1# Copyright 2020 The Ray Authors.COMMENT
LOWflaml/tune/analysis.py1# Copyright 2020 The Ray Authors.COMMENT
LOWflaml/tune/result.py1# Copyright 2020 The Ray Authors.COMMENT
LOWflaml/tune/sample.py1# Copyright 2020 The Ray Authors.COMMENT
LOWflaml/tune/space.py141# for key, domain in space.items():COMMENT
LOWflaml/tune/searcher/variant_generator.py1# Copyright 2020 The Ray Authors.COMMENT
LOWflaml/tune/searcher/suggestion.py1# Copyright 2020 The Ray Authors.COMMENT
LOWflaml/tune/searcher/online_searcher.py61COMMENT
LOWflaml/tune/scheduler/trial_scheduler.py1# Copyright 2020 The Ray Authors.COMMENT
LOWflaml/onlineml/trial_runner.py21 # The max number of Trial.RUNNING trials is running_budget.COMMENT
LOWflaml/onlineml/trial_runner.py41 Args:COMMENT
LOWflaml/onlineml/trial_runner.py61 # It adds candidate trials to the scheduler. It is called inside of the add_trialCOMMENT
LOWflaml/autogen/code_utils.py61# "content": """In the following conversation, an assistant suggests code and a user is expected to run it.COMMENT
LOWflaml/autogen/code_utils.py81COMMENT
LOWflaml/autogen/code_utils.py321 while container.status != "exited" and time.time() - start_time < timeout:COMMENT
LOWflaml/autogen/code_utils.py541 # for i, config in enumerate(configs):COMMENT
LOW…autogen/agentchat/contrib/retrieve_user_proxy_agent.py281 else:COMMENT
Modern Structural Boilerplate34 hits · 34 pts
SeverityFileLineSnippetContext
LOWtest/test_autovw.py42logger = logging.getLogger(__name__)CODE
LOWtest/pipeline_tuning_example/tuner/tuner_func.py9logger = logging.getLogger(__name__)CODE
LOWtest/pipeline_tuning_example/data_prep/data_prep.py8logger = logging.getLogger(__name__)CODE
LOWtest/tune/test_pytorch_cifar10.py9logger = logging.getLogger(__name__)CODE
LOWtest/tune/test_tune.py23logger = logging.getLogger(__name__)CODE
LOWflaml/__init__.py15logger = logging.getLogger(__name__)CODE
LOWflaml/default/suggest.py19logger = logging.getLogger(__name__)CODE
LOWflaml/automl/logger.py29logger = logging.getLogger(__name__)CODE
LOWflaml/automl/ml.py38logger = logging.getLogger(__name__)CODE
LOWflaml/automl/task/time_series_task.py26logger = logging.getLogger(__name__)CODE
LOWflaml/automl/task/generic_task.py40logger = logging.getLogger(__name__)CODE
LOWflaml/automl/spark/__init__.py50logger = logging.getLogger(__name__)CODE
LOWflaml/automl/spark/utils.py19logger = logging.getLogger(__name__)CODE
LOWflaml/tune/analysis.py25logger = logging.getLogger(__name__)CODE
LOWflaml/tune/trial_runner.py15logger = logging.getLogger(__name__)CODE
LOWflaml/tune/logger.py29logger = logging.getLogger(__name__)CODE
LOWflaml/tune/sample.py37logger = logging.getLogger(__name__)CODE
LOWflaml/tune/space.py19logger = logging.getLogger(__name__)CODE
LOWflaml/tune/searcher/variant_generator.py37logger = logging.getLogger(__name__)CODE
LOWflaml/tune/searcher/suggestion.py108logger = logging.getLogger(__name__)CODE
LOWflaml/tune/searcher/blendsearch.py35logger = logging.getLogger(__name__)CODE
LOWflaml/tune/searcher/online_searcher.py11logger = logging.getLogger(__name__)CODE
LOWflaml/tune/searcher/flow2.py35logger = logging.getLogger(__name__)CODE
LOWflaml/tune/searcher/search_thread.py25logger = logging.getLogger(__name__)CODE
LOWflaml/tune/scheduler/online_scheduler.py10logger = logging.getLogger(__name__)CODE
LOWflaml/tune/spark/__init__.py8__all__ = ["check_spark", "get_n_cpus", "with_parameters", "broadcast_code"]CODE
LOWflaml/tune/spark/utils.py8logger = logging.getLogger(__name__)CODE
LOWflaml/onlineml/trial.py17logger = logging.getLogger(__name__)CODE
LOWflaml/onlineml/trial_runner.py9logger = logging.getLogger(__name__)CODE
LOWflaml/onlineml/autovw.py16logger = logging.getLogger(__name__)CODE
LOWflaml/autogen/retrieve_utils.py13logger = logging.getLogger(__name__)CODE
LOWflaml/autogen/agentchat/__init__.py7__all__ = [CODE
LOWflaml/autogen/oai/completion.py34logger = logging.getLogger(__name__)CODE
LOWflaml/autogen/oai/__init__.py10__all__ = [CODE
Self-Referential Comments10 hits · 30 pts
SeverityFileLineSnippetContext
MEDIUMtest/automl/test_custom_hp.py83 # Create a simple regression datasetCOMMENT
MEDIUMtest/automl/test_preprocess_api.py78 # Create a simple datasetCOMMENT
MEDIUMtest/automl/test_preprocess_api.py221 # Create a simple estimatorCOMMENT
MEDIUMtest/automl/test_multiclass.py202 # Create a LogisticRegression with specific non-default parametersCOMMENT
MEDIUMtest/automl/test_no_overlap.py156 # Create a simple datasetCOMMENT
MEDIUMtest/nni/mnist.py1# This file is copied from NNI projectCOMMENT
MEDIUMtest/spark/test_0sparkml.py347 # Create a test DataFrame with various typesCOMMENT
MEDIUMtest/spark/test_0sparkml.py375 # Create a test DataFrame with various typesCOMMENT
MEDIUMflaml/automl/time_series/tcn.py1# This file is adapted fromCOMMENT
MEDIUMflaml/automl/spark/metrics.py35 # Create a new column 'prediction' based on the maximum probability valueCOMMENT
Cross-Language Confusion4 hits · 15 pts
SeverityFileLineSnippetContext
HIGH⚡test/spark/test_utils.py267 assert d1.equals(d2)STRING
HIGH⚡test/spark/test_utils.py270 assert d1.equals(d2)STRING
HIGH⚡flaml/automl/state.py32 (1) If the type of the starting point does not match the required type in search space, return falseSTRING
HIGH⚡flaml/automl/state.py33 (2) If the starting point is not in the required search space, return falseSTRING
Docstring Block Structure3 hits · 15 pts
SeverityFileLineSnippetContext
HIGHflaml/automl/automl.py920Preprocess data using task-level preprocessing. This method applies task-level preprocessing transformations toSTRING
HIGHflaml/automl/task/task.py216Choose an appropriate data split type for this data and task. If split_type is 'auto' then this is determined bSTRING
HIGHflaml/automl/task/task.py331Determine the estimator class corresponding to the provided name. Args: estimator_name: Name of theSTRING
Cross-File Repetition3 hits · 15 pts
SeverityFileLineSnippetContext
HIGHtest/automl/test_regression.py0xgboostestimator with the logregobj function as the objective functionSTRING
HIGHwebsite/docs/Use-Cases/Task-Oriented-AutoML.md0xgboostestimator with the logregobj function as the objective functionSTRING
HIGHwebsite/docs/Examples/AutoML-for-XGBoost.md0xgboostestimator with the logregobj function as the objective functionSTRING
AI Structural Patterns14 hits · 13 pts
SeverityFileLineSnippetContext
LOWtest/automl/test_forecast.py466CODE
LOWtest/spark/test_tune.py33CODE
LOWflaml/automl/automl.py1011CODE
LOWflaml/automl/automl.py1862CODE
LOWflaml/automl/nlp/huggingface/utils.py283CODE
LOWflaml/tune/tune.py235CODE
LOWflaml/tune/searcher/blendsearch.py44CODE
LOWflaml/tune/searcher/flow2.py44CODE
LOWflaml/onlineml/autovw.py26CODE
LOWflaml/fabric/mlflow.py77CODE
LOWflaml/fabric/mlflow.py273CODE
LOWflaml/autogen/retrieve_utils.py184CODE
LOWflaml/autogen/agentchat/conversable_agent.py46CODE
LOWflaml/autogen/agentchat/user_proxy_agent.py19CODE
Modern AI Meta-Vocabulary4 hits · 11 pts
SeverityFileLineSnippetContext
MEDIUMtest/default/test_defaults.py278 # make sure that zero-shot config out of the search space does not degnerate to low cost init configCOMMENT
MEDIUMtest/default/test_defaults.py280 # make sure that the zero-shot config {} is not modifiedCOMMENT
MEDIUMwebsite/docs/Use-Cases/Task-Oriented-AutoML.md669`starting_points` is a dictionary or a str to specify the starting hyperparameter config. (1) When it is a dictionary, tCODE
MEDIUMwebsite/docs/Use-Cases/Zero-Shot-AutoML.md90### Combine zero shot AutoML and hyperparameter tuningCOMMENT
Redundant / Tautological Comments7 hits · 10 pts
SeverityFileLineSnippetContext
LOWtest/automl/test_training_log.py37 # Check if the training log file is populated.COMMENT
LOWtest/automl/test_python_log.py107 # Check if the log buffer is populated.COMMENT
LOWflaml/automl/model.py1213 # Check if processing_class parameter is supported (transformers >= 4.44.0)COMMENT
LOWflaml/automl/data.py698 # Check if timestampCOMMENT
LOWflaml/automl/data.py724 # Check if timestampCOMMENT
LOWflaml/tune/spark/utils.py165 # Check if Spark is availableCOMMENT
LOW…aml/autogen/agentchat/contrib/math_user_proxy_agent.py233 # Check if there is any print statementCOMMENT
AI Slop Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMtest/autogen/oai/test_completion.py280 # a more comprehensive tuning exampleCOMMENT
Decorative Section Separators1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMflaml/automl/time_series/sklearn.py171 # ----------COMMENT
TODO Padding1 hit · 2 pts
SeverityFileLineSnippetContext
LOWtest/nlp/test_default.py167# TODO: implement _test_zero_shot_modelCOMMENT
Structural Annotation Overuse1 hit · 2 pts
SeverityFileLineSnippetContext
LOWflaml/onlineml/trial_runner.py115 # NOTE: This function consists of the following several parts:COMMENT
Slop Phrases1 hit · 2 pts
SeverityFileLineSnippetContext
LOWflaml/autogen/code_utils.py65# When the user needs to run multiple blocks in sequence, make sure to output all the blocks to run in a right order.COMMENT