Repository Analysis

microsoft/FLAML

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

11.7 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of microsoft/FLAML, a Jupyter Notebook project with 4,384 GitHub stars. SynthScan v2.0 examined 66,245 lines of code across 365 source files, recording 701 pattern matches distributed across 18 syntactic categories. The overall adjusted score of 11.7 places this repository in the Low AI signal band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

11.7
Adjusted Score
11.7
Raw Score
100%
Time Factor
2026-08-09
Last Push
4.4K
Stars
Jupyter Notebook
Language
66.2K
Lines of Code
365
Files
701
Pattern Hits
2026-08-09
Scan Date
0.03
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

Longitudinal tracking requires multiple scan runs. Once this repository is re-scanned after new commits land, this chart will visualise how the synthetic code signal evolves over time — enabling you to detect whether AI authorship is growing, stabilising, or being actively corrected by human engineers.

No multi-scan history yet — run the scanner again to build trend data.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 0HIGH 10MEDIUM 17LOW 674

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

The scanner identified 701 distinct pattern matches across 18 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. 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 diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Hyper-Verbose Identifiers211 hits · 226 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.py55def test_time_split_with_sample_weight():CODE
LOWtest/automl/test_split.py77def test_groups_for_classification_task():CODE
LOWtest/automl/test_split.py115def test_groups_for_regression_task():CODE
LOWtest/automl/test_split.py144def test_groups_with_sample_weights():CODE
LOWtest/automl/test_split.py181def test_stratified_groupkfold():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
LOWtest/automl/test_sklearn_17_compat.py58def test_lgbm_classifier_type():CODE
LOWtest/automl/test_sklearn_17_compat.py65def test_xgboost_regressor_type():CODE
LOWtest/automl/test_sklearn_17_compat.py72def test_xgboost_classifier_type():CODE
LOWtest/automl/test_forecast.py196def test_multivariate_forecast_num(budget=5, estimators_when_no_prophet=["arima", "sarimax", "holt-winters"]):CODE
LOWtest/automl/test_forecast.py326def test_multivariate_forecast_cat(budget=5, estimators_when_no_prophet=["arima", "sarimax", "holt-winters"]):CODE
LOWtest/automl/test_forecast.py404def test_forecast_classification(budget=5):CODE
LOWtest/automl/test_forecast.py682def test_log_training_metric_ts_models():CODE
LOWtest/automl/test_constraints.py95def test_metric_constraints_custom():CODE
LOWtest/automl/test_preprocess_api.py14 def test_automl_preprocess_before_fit(self):CODE
LOWtest/automl/test_preprocess_api.py24 def test_automl_preprocess_classification(self):CODE
LOWtest/automl/test_preprocess_api.py49 def test_automl_preprocess_regression(self):CODE
LOWtest/automl/test_preprocess_api.py74 def test_automl_preprocess_with_dataframe(self):CODE
LOWtest/automl/test_preprocess_api.py113 def test_estimator_preprocess(self):CODE
LOWtest/automl/test_preprocess_api.py176 def test_preprocess_with_mixed_types(self):CODE
LOWtest/automl/test_preprocess_api.py215 def test_estimator_preprocess_without_automl(self):CODE
LOWtest/automl/test_preprocess_api.py254 def test_codes_stable_when_predict_uses_only_a_subset(self):CODE
LOWtest/automl/test_preprocess_api.py269 def test_unseen_categories_emit_warning_and_map_to_sentinel(self):CODE
LOWtest/automl/test_multiclass.py184 def test_ensemble_final_estimator_params_not_tuned(self):CODE
LOWtest/automl/test_multiclass.py281 def test_invalid_custom_metric(self):CODE
LOWtest/automl/test_multiclass.py403 def test_roc_auc_ovr_weighted(self):CODE
LOWtest/automl/test_multiclass.py417 def test_roc_auc_ovo_weighted(self):CODE
LOWtest/automl/test_multiclass.py431 def test_sparse_matrix_classification(self):CODE
LOWtest/automl/test_multiclass.py496 def test_fit_w_starting_point(self, as_frame=True, n_concurrent_trials=1):CODE
LOWtest/automl/test_multiclass.py551 def test_fit_w_starting_points_list(self, as_frame=True, n_concurrent_trials=1):CODE
LOWtest/automl/test_multiclass.py609 def test_starting_points_should_improve_performance(self):CODE
LOWtest/automl/test_notebook.py30def test_automl_classification(save=False):CODE
LOWtest/automl/test_mlflow.py15def test_autologged_model_round_trip():CODE
LOWtest/automl/test_mlflow.py35 def test_update_and_install_requirements(self):CODE
LOWtest/automl/test_mlflow.py47 def test_should_start_new_run_by_default(self, automl_settings):CODE
LOWtest/automl/test_mlflow.py60 def test_should_not_start_new_run_when_mlflow_logging_set_to_false_in_init(self, automl_settings):CODE
LOWtest/automl/test_mlflow.py73 def test_should_not_start_new_run_when_mlflow_logging_set_to_false_in_fit(self, automl_settings):CODE
LOWtest/automl/test_mlflow.py86 def test_should_start_new_run_when_mlflow_logging_set_to_true_in_fit(self, automl_settings):CODE
LOWtest/automl/test_warmstart.py11 def test_fit_w_freezinghp_starting_point(self, as_frame=True):CODE
LOWtest/automl/test_ts_data.py7def test_prettify_prediction_generates_timestamps_without_test_data():CODE
LOWtest/automl/test_ts_data.py28def test_prettify_prediction_generates_monthly_timestamps_without_test_data():CODE
LOWtest/automl/test_ts_data.py47def test_create_forward_frame_uses_next_frequency_offset():CODE
LOWtest/automl/test_no_overlap.py9def test_allow_label_overlap_true():CODE
LOWtest/automl/test_no_overlap.py60def test_allow_label_overlap_false():CODE
LOWtest/automl/test_no_overlap.py112def test_uniform_split_with_overlap_control():CODE
LOWtest/automl/test_no_overlap.py226def test_single_instance_class():CODE
LOWtest/automl/test_classification.py273 def test_sparse_matrix_xgboost(self):CODE
LOWtest/automl/test_classification.py371 def test_parallel_xgboost_others(self):CODE
151 more matches not shown…
Unused Imports215 hits · 207 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_forecast.py476CODE
LOWtest/automl/test_forecast.py36CODE
LOWtest/automl/test_forecast.py220CODE
LOWtest/automl/test_forecast.py345CODE
LOWtest/automl/test_forecast.py670CODE
LOWtest/automl/test_custom_hp.py8CODE
LOWtest/automl/test_score.py36CODE
LOWtest/automl/test_warmstart.py174CODE
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.py2CODE
LOWtest/tune/test_sample.py2CODE
LOWtest/tune/test_sample.py2CODE
LOWtest/tune/test_sample.py2CODE
LOWtest/tune/test_sample.py2CODE
LOWtest/tune/test_sample.py2CODE
LOWtest/tune/test_sample.py2CODE
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.py12CODE
LOWtest/nlp/test_autohf_classificationhead.py12CODE
LOWtest/nlp/test_autohf_classificationhead.py12CODE
LOWtest/nlp/test_autohf_classificationhead.py8CODE
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.py122CODE
LOWtest/autogen/oai/test_completion.py211CODE
LOWtest/autogen/oai/test_completion.py330CODE
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
155 more matches not shown…
Deep Nesting114 hits · 109 pts
SeverityFileLineSnippetContext
LOWtest/test_autovw.py45CODE
LOWtest/automl/test_training_log.py12CODE
LOWtest/automl/test_forecast.py276CODE
LOWtest/automl/test_forecast.py282CODE
LOWtest/tune/test_pytorch_cifar10.py189CODE
LOWtest/tune/test_scheduler.py56CODE
LOWtest/tune/test_tune.py115CODE
LOWtest/nlp/test_autohf.py14CODE
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.py953CODE
LOWflaml/automl/automl.py1370CODE
LOWflaml/automl/automl.py1623CODE
LOWflaml/automl/automl.py1791CODE
LOWflaml/automl/automl.py2678CODE
LOWflaml/automl/automl.py2874CODE
LOWflaml/automl/automl.py3168CODE
LOWflaml/automl/automl.py3437CODE
LOWflaml/automl/automl.py1399CODE
LOWflaml/automl/automl.py1439CODE
LOWflaml/automl/data.py151CODE
LOWflaml/automl/data.py607CODE
LOWflaml/automl/data.py725CODE
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.py1073CODE
LOWflaml/automl/task/generic_task.py1109CODE
LOWflaml/automl/task/generic_task.py1138CODE
LOWflaml/automl/task/generic_task.py1271CODE
LOWflaml/automl/task/generic_task.py1351CODE
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/spark/metrics.py50CODE
LOWflaml/automl/spark/utils.py26CODE
LOWflaml/automl/spark/utils.py179CODE
LOWflaml/tune/trial.py24CODE
LOWflaml/tune/trial.py95CODE
54 more matches not shown…
Excessive Try-Catch Wrapping38 hits · 39 pts
SeverityFileLineSnippetContext
LOWtest/automl/test_regression.py298 except Exception:CODE
LOWtest/nni/mnist.py210 except Exception as exception:CODE
LOWflaml/automl/ml.py137 except Exception:CODE
LOWflaml/automl/automl.py475 except Exception:CODE
LOWflaml/automl/automl.py1418 except Exception:CODE
LOWflaml/automl/automl.py1433 except Exception:CODE
LOWflaml/automl/automl.py1451 except Exception:CODE
LOWflaml/automl/automl.py1562 except Exception as e:CODE
LOWflaml/automl/automl.py1582 except Exception:CODE
LOWflaml/automl/automl.py1619 except Exception:CODE
LOWflaml/automl/automl.py1651 except Exception:CODE
LOWflaml/automl/automl.py1684 except Exception as e:CODE
LOWflaml/automl/automl.py1702 except Exception as e:CODE
LOWflaml/automl/automl.py3413 except Exception as e:CODE
LOWflaml/automl/automl.py3420 except Exception as e:CODE
LOWflaml/automl/data.py804 except Exception:CODE
LOWflaml/automl/data.py834 except Exception:CODE
LOWflaml/automl/task/time_series_task.py155 except Exception:CODE
LOWflaml/automl/time_series/ts_model.py381 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
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
MEDIUMflaml/fabric/mlflow.py135def get_mlflow_log_latency(model_history=False, delete_run=True):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.py1321 estimator_list += ["catboost"]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.py79 # Create a simple regression datasetCOMMENT
MEDIUMtest/automl/test_preprocess_api.py76 # Create a simple datasetCOMMENT
MEDIUMtest/automl/test_preprocess_api.py219 # Create a simple estimatorCOMMENT
MEDIUMtest/automl/test_multiclass.py195 # 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
HIGHtest/spark/test_utils.py267 assert d1.equals(d2)STRING
HIGHtest/spark/test_utils.py270 assert d1.equals(d2)STRING
HIGHflaml/automl/state.py32 (1) If the type of the starting point does not match the required type in search space, return falseSTRING
HIGHflaml/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.py862Preprocess 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.py301CODE
LOWtest/spark/test_tune.py33CODE
LOWflaml/automl/automl.py953CODE
LOWflaml/automl/automl.py1791CODE
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.py35 # 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.py670 # Check if timestampCOMMENT
LOWflaml/automl/data.py696 # 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.py279 # 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