AI Slop Code Risk Monitor

microsoft/FLAML

SlopCodeMonitor badge for microsoft/FLAML Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

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

17.8 Elevated pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for microsoft/FLAML, a Jupyter Notebook project with 4,417 GitHub stars. SynthScan examined 69,222 lines of code across 381 source files, recording 885 pattern matches distributed across 19 syntactic categories. The legacy adjusted pattern signal is 17.8 (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.

17.8
Adjusted Signal
17.8
Raw Pattern Score
100%
Time Factor
2026-11-01
Last Push
4.4K
Stars
Jupyter Notebook
Language
69.2K
Lines of Code
381
Files
885
Pattern Hits
2026-10-31
Scan Date
0.19
HC Hit Rate

Risk Review · Payload v1

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.

Cognitive Ownership Risk 34.7/100 · MEDIUM

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

Hallucinated Dependency & Supply Chain Risk 17.3/100 · LOW

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

Agent Over-Engineering Ratio 41.5/100 · MEDIUM

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

PR Review Velocity Impact 60.6/100 · HIGH

Which changes need focused human review? 885 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 74MEDIUM 18LOW 793

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 885 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.

Hyper-Verbose Identifiers323 hits · 350 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_packaging.py8 def test_pyarrow_test_dependency(self):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.py76def test_suggest_classification():CODE
LOW⚡test/default/test_defaults.py290def test_suggested_config_changes_do_not_affect_later_suggestions(estimator, task):CODE
LOWtest/default/test_defaults.py301def test_suggest_config_preserves_user_predictor():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_training_log_append.py15def test_appended_trial_can_be_loaded_from_checkpoint(tmp_path):CODE
LOWtest/automl/test_training_log_append.py31def test_append_uses_next_unused_record_id(tmp_path, existing_ids):CODE
LOWtest/automl/test_training_log_append.py54def test_append_creates_missing_log(tmp_path):CODE
LOWtest/automl/test_training_log_append.py63def test_appended_checkpoint_keeps_current_run_best(tmp_path):CODE
LOWtest/automl/test_training_log_append.py78def test_append_skips_checkpoint_only_log(tmp_path):CODE
LOWtest/automl/test_training_log_append.py89def test_append_preserves_valid_record_and_checkpoint_tails(tmp_path, checkpoint_tail, line_ending):CODE
LOWtest/automl/test_training_log_append.py111def test_writer_does_not_wait_for_another_fit(tmp_path, append):CODE
LOWtest/automl/test_training_log_append.py135def test_writer_closes_after_context_error(tmp_path, append):CODE
LOWtest/automl/test_training_log_append.py148def test_append_preserves_invalid_log(tmp_path):CODE
LOWtest/automl/test_training_log_append.py160def test_writer_handles_open_error(tmp_path):CODE
LOWtest/automl/test_training_log_append.py170def test_default_writer_overwrites_existing_records(tmp_path):CODE
LOW⚡test/automl/test_add_time_idx_col.py6def test_daily_time_idx_counts_steps():CODE
LOW⚡test/automl/test_add_time_idx_col.py12def test_daily_time_idx_with_shared_timestamps():CODE
LOW⚡test/automl/test_add_time_idx_col.py20def test_month_end_time_idx_with_shared_timestamps():CODE
LOW⚡test/automl/test_add_time_idx_col.py27def test_tz_aware_daily_time_idx_across_dst():CODE
LOW⚡test/automl/test_add_time_idx_col.py34def test_tz_aware_business_day_time_idx_across_dst():CODE
LOW⚡test/automl/test_add_time_idx_col.py41def test_irregular_time_idx_keeps_gaps():CODE
LOW⚡test/automl/test_add_time_idx_col.py48def test_irregular_time_idx_uses_a_step_that_divides_every_gap():CODE
LOW⚡test/automl/test_add_time_idx_col.py56def test_tz_aware_hourly_time_idx_keeps_a_missing_dst_fold_hour():CODE
LOW⚡test/automl/test_add_time_idx_col.py64def test_tz_aware_irregular_daily_time_idx_across_dst():CODE
LOW⚡test/automl/test_add_time_idx_col.py74def test_sparse_month_end_time_idx_counts_months():CODE
LOW⚡test/automl/test_add_time_idx_col.py82def test_sparse_quarter_end_time_idx_counts_quarters():CODE
LOW⚡test/automl/test_add_time_idx_col.py89def test_tz_aware_same_day_of_month_time_idx_keeps_both_dst_fold_hours():CODE
LOWtest/automl/test_add_time_idx_col.py101def test_tz_aware_dst_fold_hours_then_same_day_of_month_get_distinct_time_idx():CODE
LOWtest/automl/test_add_time_idx_col.py111def test_regular_grid_check_builds_one_candidate_per_date(monkeypatch):CODE
LOWtest/automl/test_datetime_missing.py25def test_fit_imputes_missing_datetime_from_valid_ordinals(utc):CODE
LOWtest/automl/test_datetime_missing.py43def test_transform_uses_training_datetime_median(utc, all_missing):CODE
LOW⚡test/automl/test_datetime_missing.py59def test_valid_datetimes_keep_their_ordinals(utc):CODE
LOW⚡test/automl/test_datetime_missing.py69def test_all_missing_training_datetime_is_still_dropped():CODE
LOW⚡test/automl/test_datetime_missing.py77def test_task_validation_and_preprocess_impute_missing_datetimes(task_name):CODE
LOWtest/automl/test_rouge_metric.py25def test_rouge_loss_supports_current_and_legacy_scores(CODE
LOW⚡test/automl/test_rouge_metric.py55def test_non_rouge_metric_keeps_its_loss_direction(metric_modules):CODE
LOW⚡test/automl/test_rouge_metric.py64def test_missing_huggingface_dependency_keeps_helpful_error(monkeypatch):CODE
LOW⚡test/automl/test_rouge_metric.py71def test_missing_metric_keeps_helpful_error(monkeypatch, metric_modules):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
263 more matches not shown…
Empty Error Handlers57 hits · 285 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.py16except 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/training_log.py79except FileNotFoundError:CODE
HIGHflaml/automl/automl.py1727except Exception:CODE
HIGHflaml/automl/automl.py2687except FileNotFoundError:CODE
HIGHflaml/automl/automl.py1527except Exception:CODE
HIGHflaml/automl/automl.py2674except FileNotFoundError:CODE
HIGHflaml/automl/automl.py1695except Exception:CODE
HIGHflaml/automl/data.py27except ImportError:CODE
HIGHflaml/automl/data.py921except Exception:CODE
HIGHflaml/automl/data.py911except TypeError:CODE
HIGHflaml/automl/data.py891except 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
Unused Imports214 hits · 200 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.py801CODE
LOWtest/automl/test_forecast.py37CODE
LOWtest/automl/test_forecast.py545CODE
LOWtest/automl/test_forecast.py670CODE
LOWtest/automl/test_forecast.py995CODE
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 Nesting119 hits · 110 pts
SeverityFileLineSnippetContext
LOWtest/test_packaging.py8CODE
LOWtest/test_autovw.py45CODE
LOWtest/automl/test_training_log.py14CODE
LOWtest/automl/test_forecast.py601CODE
LOWtest/automl/test_forecast.py607CODE
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.py24CODE
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.py200CODE
LOWflaml/automl/training_log.py71CODE
LOWflaml/automl/automl.py1016CODE
LOWflaml/automl/automl.py1446CODE
LOWflaml/automl/automl.py1699CODE
LOWflaml/automl/automl.py1867CODE
LOWflaml/automl/automl.py2785CODE
LOWflaml/automl/automl.py2981CODE
LOWflaml/automl/automl.py3275CODE
LOWflaml/automl/automl.py3544CODE
LOWflaml/automl/automl.py1475CODE
LOWflaml/automl/automl.py1515CODE
LOWflaml/automl/data.py151CODE
LOWflaml/automl/data.py246CODE
LOWflaml/automl/data.py694CODE
LOWflaml/automl/data.py812CODE
LOWflaml/automl/data.py324CODE
LOWflaml/automl/data.py469CODE
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
59 more matches not shown…
Cross-Language Confusion11 hits · 62 pts
SeverityFileLineSnippetContext
HIGH⚡test/automl/test_pandas_preprocessing.py22 assert result.index.equals(pd.RangeIndex(3))CODE
HIGHtest/automl/test_pandas_preprocessing.py72 assert predicted.columns.equals(fitted.columns)CODE
HIGH⚡test/automl/test_pandas_preprocessing.py103 assert state.y_train_all.index.equals(pd.RangeIndex(6))CODE
HIGH⚡test/automl/test_pandas_preprocessing.py105 assert state.X_train_all.index.equals(pd.RangeIndex(6))CODE
HIGH⚡test/automl/test_pandas_preprocessing.py110 assert state.sample_weight_all.index.equals(pd.RangeIndex(6))CODE
HIGH⚡test/automl/test_pandas_preprocessing.py111 assert labels.index.equals(index)CODE
HIGH⚡test/spark/test_utils.py267 assert d1.equals(d2)STRING
HIGH⚡test/spark/test_utils.py270 assert d1.equals(d2)STRING
HIGHflaml/automl/data.py318 return grid.equals(dates)CODE
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
Excessive Try-Catch Wrapping41 hits · 42 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.py493 except Exception:CODE
LOWflaml/automl/automl.py549 except Exception as e:CODE
LOWflaml/automl/automl.py1494 except Exception:CODE
LOWflaml/automl/automl.py1509 except Exception:CODE
LOWflaml/automl/automl.py1527 except Exception:CODE
LOWflaml/automl/automl.py1638 except Exception as e:CODE
LOWflaml/automl/automl.py1658 except Exception:CODE
LOWflaml/automl/automl.py1695 except Exception:CODE
LOWflaml/automl/automl.py1727 except Exception:CODE
LOWflaml/automl/automl.py1760 except Exception as e:CODE
LOWflaml/automl/automl.py1778 except Exception as e:CODE
LOWflaml/automl/automl.py3520 except Exception as e:CODE
LOWflaml/automl/automl.py3527 except Exception as e:CODE
MEDIUMflaml/automl/data.py310def _is_regular_grid(dates, freq):CODE
LOWflaml/automl/data.py314 except Exception:CODE
LOWflaml/automl/data.py891 except Exception:CODE
LOWflaml/automl/data.py921 except Exception:CODE
LOWflaml/automl/task/time_series_task.py155 except Exception:CODE
LOWflaml/automl/time_series/ts_model.py422 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 Block40 hits · 40 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/data.py521 X[column] = X[column].cat.add_categories("__NAN__")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.py20logger = 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
Docstring Block Structure3 hits · 15 pts
SeverityFileLineSnippetContext
HIGHflaml/automl/automl.py925Preprocess 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
Modern AI Meta-Vocabulary4 hits · 14 pts
SeverityFileLineSnippetContext
MEDIUM⚡test/default/test_defaults.py282 # make sure that zero-shot config out of the search space does not degnerate to low cost init configCOMMENT
MEDIUM⚡test/default/test_defaults.py284 # 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
AI Structural Patterns14 hits · 12 pts
SeverityFileLineSnippetContext
LOWtest/automl/test_forecast.py626CODE
LOWtest/spark/test_tune.py33CODE
LOWflaml/automl/automl.py1016CODE
LOWflaml/automl/automl.py1867CODE
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
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.py757 # Check if timestampCOMMENT
LOWflaml/automl/data.py783 # 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