A python library for user-friendly forecasting and anomaly detection on time series.
This report presents the forensic synthetic code analysis of unit8co/darts, a Python project with 9,466 GitHub stars. SynthScan v2.0 examined 161,336 lines of code across 331 source files, recording 2194 pattern matches distributed across 16 syntactic categories. The overall adjusted score of 22.3 places this repository in the Moderate 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).
This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.
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.
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.
The scanner identified 2194 distinct pattern matches across 16 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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH⚡ | darts/timeseries.py | 5274 | if not self._time_index.equals(other._time_index): | CODE |
| HIGH⚡ | darts/timeseries.py | 5280 | if not self.components.equals(other.components): | CODE |
| HIGH⚡ | darts/timeseries.py | 5286 | elif isinstance(sc_self, pd.DataFrame) and not sc_self.equals(sc_other): | CODE |
| HIGH | darts/timeseries.py | 5886 | ts.static_covariates.columns.equals(series[0].static_covariates.columns) | CODE |
| HIGH | darts/metrics/utils.py | 470 | if not pred_series.components.equals(actual_series.components): | CODE |
| HIGH | darts/metrics/utils.py | 478 | if not predicted_components.equals(actual_series.components): | CODE |
| HIGH | darts/metrics/utils.py | 860 | is undefined, so the result is ``np.nan``. | STRING |
| HIGH⚡ | darts/tests/test_timeseries.py | 110 | assert ts_pd_series.equals(pd_series) | CODE |
| HIGH⚡ | darts/tests/test_timeseries.py | 117 | assert ts_pd_df.equals(pd_df) | CODE |
| HIGH⚡ | darts/tests/test_timeseries.py | 120 | assert ts_pd_df.equals(pd_df.reset_index()) | CODE |
| HIGH⚡ | darts/tests/test_timeseries.py | 165 | assert ts_pl_df.equals(pl_df) | CODE |
| HIGH⚡ | darts/tests/test_timeseries.py | 175 | assert ts_pl_df_2.equals(pl_df) | CODE |
| HIGH⚡ | darts/tests/test_timeseries.py | 229 | assert series.time_index.equals(pd.RangeIndex(stop=1)) | CODE |
| HIGH⚡ | darts/tests/test_timeseries.py | 232 | assert series.time_index.equals(pd.RangeIndex(start=10, stop=11)) | CODE |
| HIGH⚡ | darts/tests/test_timeseries.py | 236 | assert series.time_index.equals(pd.RangeIndex(start=10, stop=20)) | CODE |
| HIGH⚡ | darts/tests/test_timeseries.py | 240 | assert series.time_index.equals(pd.RangeIndex(start=10, stop=50)) | CODE |
| HIGH⚡ | darts/tests/test_timeseries.py | 244 | assert series.time_index.equals(pd.RangeIndex(start=10, stop=40)) | CODE |
| HIGH⚡ | darts/tests/test_timeseries.py | 248 | assert series.time_index.equals(pd.RangeIndex(start=10, stop=40, step=4)) | CODE |
| HIGH⚡ | darts/tests/test_timeseries.py | 252 | assert series.time_index.equals(pd.RangeIndex(start=0, stop=0, step=1)) | CODE |
| HIGH⚡ | darts/tests/test_timeseries.py | 2497 | assert test_series.time_index.equals(appended.time_index) | CODE |
| HIGH⚡ | darts/tests/test_timeseries.py | 2498 | assert appended.components.equals(seriesA.components) | CODE |
| HIGH⚡ | darts/tests/test_timeseries.py | 2517 | assert test_series.time_index.equals(appended.time_index) | CODE |
| HIGH⚡ | darts/tests/test_timeseries.py | 2523 | assert test_series.time_index.equals(appended_sq.time_index) | CODE |
| HIGH⚡ | darts/tests/test_timeseries.py | 2524 | assert appended_sq.components.equals(seriesA.components) | CODE |
| HIGH⚡ | darts/tests/test_timeseries.py | 2533 | assert test_series.time_index.equals(prepended.time_index) | CODE |
| HIGH⚡ | darts/tests/test_timeseries.py | 2534 | assert prepended.components.equals(seriesB.components) | CODE |
| HIGH⚡ | darts/tests/test_timeseries.py | 2553 | assert test_series.time_index.equals(prepended.time_index) | CODE |
| HIGH⚡ | darts/tests/test_timeseries.py | 2554 | assert prepended.components.equals(test_series.components) | CODE |
| HIGH⚡ | darts/tests/test_timeseries.py | 2560 | assert test_series.time_index.equals(prepended_sq.time_index) | CODE |
| HIGH⚡ | darts/tests/test_timeseries.py | 2561 | assert prepended_sq.components.equals(test_series.components) | CODE |
| HIGH | darts/tests/test_timeseries.py | 206 | assert ts.time_index.equals( | CODE |
| HIGH | darts/tests/test_timeseries.py | 270 | assert series.time_index.equals( | CODE |
| HIGH | darts/tests/test_timeseries.py | 362 | assert ts_from_int_idx.time_index.equals(ts_from_range_idx.time_index) | CODE |
| HIGH | darts/tests/test_timeseries.py | 696 | assert appended.time_index.equals(expected_idx) | CODE |
| HIGH | darts/tests/test_timeseries.py | 697 | assert appended.components.equals(series_1.components) | CODE |
| HIGH | darts/tests/test_timeseries.py | 801 | assert appended.time_index.equals(expected_idx) | CODE |
| HIGH | darts/tests/test_timeseries.py | 802 | assert appended.components.equals(series.components) | CODE |
| HIGH | darts/tests/test_timeseries.py | 817 | assert prepended.time_index.equals(expected_idx) | CODE |
| HIGH | darts/tests/test_timeseries.py | 818 | assert prepended.components.equals(series_1.components) | CODE |
| HIGH | darts/tests/test_timeseries.py | 1395 | assert series.time_index.equals(series_target.time_index) | CODE |
| HIGH | darts/tests/test_timeseries.py | 2113 | assert ts.time_index.equals(idx) | CODE |
| HIGH | darts/tests/test_timeseries.py | 2123 | assert ts.time_index.equals(idx) | CODE |
| HIGH | darts/tests/test_timeseries.py | 2355 | assert s_int.components.equals(series.components) | CODE |
| HIGH | darts/tests/test_timeseries.py | 2376 | assert s_int.time_index.equals(s_int_idx) | CODE |
| HIGH | darts/tests/test_timeseries.py | 2436 | assert s1_int.time_index.equals(s2_int.time_index) and s1_int.time_index.equals( | CODE |
| HIGH | darts/tests/test_timeseries.py | 2461 | assert seriesB.time_index.equals( | CODE |
| HIGH | darts/tests/test_timeseries.py | 2468 | assert seriesC.time_index.equals( | CODE |
| HIGH⚡ | darts/tests/test_timeseries_static_covariates.py | 826 | assert ts_multi.static_covariates.index.equals( | CODE |
| HIGH⚡ | darts/tests/test_timeseries_static_covariates.py | 829 | assert ts_multi.static_covariates.columns.equals(static_covs.columns) | CODE |
| HIGH⚡ | darts/tests/test_timeseries_static_covariates.py | 836 | assert ts_multi.static_covariates.index.equals(ts_multi.components) | CODE |
| HIGH⚡ | darts/tests/test_timeseries_static_covariates.py | 837 | assert ts_multi.static_covariates.columns.equals(static_covs.columns) | CODE |
| HIGH⚡ | darts/tests/test_timeseries_static_covariates.py | 1050 | assert ts_scaled.static_covariates.equals(ts.static_covariates) | CODE |
| HIGH⚡ | darts/tests/test_timeseries_static_covariates.py | 1053 | assert ts_inv.static_covariates.equals(ts.static_covariates) | CODE |
| HIGH⚡ | darts/tests/test_timeseries_static_covariates.py | 1081 | assert ts.static_covariates.index.equals(ts.components) | CODE |
| HIGH⚡ | darts/tests/test_timeseries_static_covariates.py | 1084 | assert ts0.static_covariates.index.equals(ts.components) | CODE |
| HIGH⚡ | darts/tests/test_timeseries_static_covariates.py | 1087 | assert ts1.static_covariates.index.equals(pd.Index(["comp1"])) | CODE |
| HIGH⚡ | darts/tests/test_timeseries_static_covariates.py | 1090 | assert ts2.static_covariates.index.equals(pd.Index(["comp2"])) | CODE |
| HIGH⚡ | darts/tests/test_timeseries_static_covariates.py | 1093 | assert ts3.static_covariates.index.equals(pd.Index(["comp1", "comp2"])) | CODE |
| HIGH⚡ | darts/tests/test_timeseries_static_covariates.py | 1096 | assert ts4.static_covariates.index.equals(pd.Index(["comp1", "comp2"])) | CODE |
| HIGH⚡ | darts/tests/test_timeseries_static_covariates.py | 1107 | assert ts.static_covariates.index.equals( | CODE |
| 213 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docs/fix_package_titles.py | 18 | def extract_docstring_from_file(file_path): | CODE |
| LOW⚡ | docs/fix_package_titles.py | 114 | def process_package_docstrings(app, docname, source): | CODE |
| LOW | darts/logging.py | 31 | def raise_deprecation_warning( | CODE |
| LOW | darts/logging.py | 143 | def execute_and_suppress_output(function, logger, suppression_threshold_level, *args): | CODE |
| LOW | darts/logging.py | 164 | def suppress_lightning_warnings(suppress_all: bool = False): | CODE |
| LOW | darts/config.py | 162 | def _on_plotting_style_change(self, value: bool) -> None: | CODE |
| LOW | darts/timeseries.py | 5039 | def _observed_freq_datetime_index(index: pd.DatetimeIndex) -> set: | CODE |
| LOW | darts/timeseries.py | 5062 | def _observed_freq_integer_index(index: pd.Index) -> set: | CODE |
| LOW | darts/timeseries.py | 5213 | def _get_first_timestamp_after(self, ts: pd.Timestamp) -> pd.Timestamp | int: | CODE |
| LOW | darts/timeseries.py | 5216 | def _get_last_timestamp_before(self, ts: pd.Timestamp) -> pd.Timestamp | int: | CODE |
| LOW | darts/metrics/__init__.py | 229 | def _build_time_dependent_metrics(): | CODE |
| LOW | darts/metrics/__init__.py | 234 | def _build_classification_metrics(): | CODE |
| LOW | darts/metrics/utils.py | 128 | def wrapper_classification_support(*args, **kwargs): | CODE |
| LOW | darts/metrics/utils.py | 330 | def wrapper_multivariate_support(*args, **kwargs) -> METRIC_OUTPUT_TYPE: | CODE |
| LOW | darts/metrics/utils.py | 705 | def _get_highest_probability_label( | CODE |
| LOW | darts/ad/utils.py | 88 | def eval_metric_from_binary_prediction( | CODE |
| LOW | darts/ad/utils.py | 294 | def show_anomalies_from_scores( | CODE |
| LOW | darts/ad/utils.py | 742 | def _plot_series_and_anomalies( | CODE |
| LOW | darts/ad/scorers/scorers.py | 124 | def eval_metric_from_prediction( | CODE |
| LOW | darts/ad/scorers/scorers.py | 169 | def show_anomalies_from_prediction( | CODE |
| LOW | darts/ad/scorers/scorers.py | 258 | def _score_core_from_prediction( | CODE |
| LOW | darts/ad/scorers/scorers.py | 314 | def _extract_deterministic_series(self, series: TimeSeries, name_series: str): | CODE |
| LOW | darts/ad/scorers/scorers.py | 326 | def _extract_deterministic_values(self, series: np.ndarray, name_series: str): | CODE |
| LOW | darts/ad/scorers/scorers.py | 655 | def _score_core_from_prediction( | CODE |
| LOW | darts/ad/scorers/scorers.py | 884 | def _convert_tabular_to_series( | CODE |
| LOW | darts/ad/scorers/scorers.py | 938 | def _score_core_from_prediction( | CODE |
| LOW | darts/ad/scorers/norm_scorer.py | 55 | def _score_core_from_prediction( | CODE |
| LOW | darts/ad/scorers/difference_scorer.py | 23 | def _score_core_from_prediction( | CODE |
| LOW | …ocessing/transformers/static_covariates_transformer.py | 229 | def _process_static_cov_columns( | CODE |
| LOW | …ocessing/transformers/static_covariates_transformer.py | 265 | def _create_category_mappings( | CODE |
| LOW | …ocessing/transformers/static_covariates_transformer.py | 331 | def _create_inv_component_masks( | CODE |
| LOW | darts/dataprocessing/transformers/midas.py | 437 | def _process_static_covariates( | CODE |
| LOW | darts/dataprocessing/encoders/encoder_base.py | 151 | def generate_train_inference_idx( | CODE |
| LOW | darts/dataprocessing/encoders/encoders.py | 1561 | def _process_input_transformer( | CODE |
| LOW | darts/datasets/dataset_loaders.py | 90 | def _check_dataset_integrity_or_raise(self): | CODE |
| LOW⚡ | darts/tests/test_timeseries.py | 122 | def test_df_time_col_not_present(self): | CODE |
| LOW⚡ | darts/tests/test_timeseries.py | 128 | def test_df_invalid_time_col_dtype(self): | CODE |
| LOW⚡ | darts/tests/test_timeseries.py | 185 | def test_creation_from_dataframe_with_dates(self, backend, date_type): | CODE |
| LOW⚡ | darts/tests/test_timeseries.py | 220 | def test_integer_range_indexing(self): | CODE |
| LOW⚡ | darts/tests/test_timeseries.py | 2511 | def helper_test_append_values(test_series: TimeSeries): | CODE |
| LOW⚡ | darts/tests/test_timeseries.py | 2547 | def helper_test_prepend_values(test_series: TimeSeries): | CODE |
| LOW⚡ | darts/tests/test_timeseries.py | 2800 | def test_creation_with_hierarchy_sunny_day(self): | CODE |
| LOW⚡ | darts/tests/test_timeseries.py | 2808 | def test_with_hierarchy_sunny_day(self): | CODE |
| LOW⚡ | darts/tests/test_timeseries.py | 2812 | def test_with_hierarchy_rainy_day(self): | CODE |
| LOW⚡ | darts/tests/test_timeseries.py | 2991 | def test_head_sunny_day_sample_axis(self): | CODE |
| LOW⚡ | darts/tests/test_timeseries.py | 2996 | def test_head_overshot_time_axis(self): | CODE |
| LOW⚡ | darts/tests/test_timeseries.py | 3001 | def test_head_overshot_component_axis(self): | CODE |
| LOW⚡ | darts/tests/test_timeseries.py | 3005 | def test_head_overshot_sample_axis(self): | CODE |
| LOW⚡ | darts/tests/test_timeseries.py | 3009 | def test_head_numeric_time_index(self): | CODE |
| LOW⚡ | darts/tests/test_timeseries.py | 3014 | def test_tail_overshot_time_axis(self): | CODE |
| LOW⚡ | darts/tests/test_timeseries.py | 3019 | def test_tail_overshot_component_axis(self): | CODE |
| LOW⚡ | darts/tests/test_timeseries.py | 3023 | def test_tail_overshot_sample_axis(self): | CODE |
| LOW⚡ | darts/tests/test_timeseries.py | 3027 | def test_tail_numeric_time_index(self): | CODE |
| LOW | darts/tests/test_timeseries.py | 78 | def test_from_times_and_values(self): | CODE |
| LOW | darts/tests/test_timeseries.py | 419 | def test_univariate_component(self): | CODE |
| LOW | darts/tests/test_timeseries.py | 625 | def test_intersect_more_freqs(self, config): | CODE |
| LOW | darts/tests/test_timeseries.py | 758 | def test_append_and_prepend_values(self, config): | CODE |
| LOW | darts/tests/test_timeseries.py | 1009 | def test_getitem_datetime_index(self): | CODE |
| LOW | darts/tests/test_timeseries.py | 1078 | def test_getitem_integer_index(self): | CODE |
| LOW | darts/tests/test_timeseries.py | 1132 | def test_getitem_list_of_integers(self, is_dti): | CODE |
| 1217 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | darts/ad/scorers/nll_gamma_scorer.py | 0 | nll laplace scorer parameters ---------- window integer value indicating the size of the window w used by the scorer to | STRING |
| HIGH | darts/ad/scorers/scorers.py | 0 | nll laplace scorer parameters ---------- window integer value indicating the size of the window w used by the scorer to | STRING |
| HIGH | darts/ad/scorers/nll_poisson_scorer.py | 0 | nll laplace scorer parameters ---------- window integer value indicating the size of the window w used by the scorer to | STRING |
| HIGH | darts/ad/scorers/nll_gaussian_scorer.py | 0 | nll laplace scorer parameters ---------- window integer value indicating the size of the window w used by the scorer to | STRING |
| HIGH | darts/ad/scorers/nll_exponential_scorer.py | 0 | nll laplace scorer parameters ---------- window integer value indicating the size of the window w used by the scorer to | STRING |
| HIGH | darts/ad/scorers/nll_laplace_scorer.py | 0 | nll laplace scorer parameters ---------- window integer value indicating the size of the window w used by the scorer to | STRING |
| HIGH | …aprocessing/transformers/test_base_data_transformer.py | 0 | applies the (invertible) transform `transformed_series = scale * series + translation`. when 'fitting' this transform, t | STRING |
| HIGH | …cessing/transformers/test_fittable_data_transformer.py | 0 | applies the (invertible) transform `transformed_series = scale * series + translation`. when 'fitting' this transform, t | STRING |
| HIGH | …nsformers/test_invertible_fittable_data_transformer.py | 0 | applies the (invertible) transform `transformed_series = scale * series + translation`. when 'fitting' this transform, t | STRING |
| HIGH | …ssing/transformers/test_invertible_data_transformer.py | 0 | applies the (invertible) transform `transformed_series = scale * series + translation`. when 'fitting' this transform, t | STRING |
| HIGH | …aprocessing/transformers/test_base_data_transformer.py | 0 | implements the transform `scale * series + translation`. if `component_mask` is in `kwargs`, this is manually applied an | STRING |
| HIGH | …cessing/transformers/test_fittable_data_transformer.py | 0 | implements the transform `scale * series + translation`. if `component_mask` is in `kwargs`, this is manually applied an | STRING |
| HIGH | …nsformers/test_invertible_fittable_data_transformer.py | 0 | implements the transform `scale * series + translation`. if `component_mask` is in `kwargs`, this is manually applied an | STRING |
| HIGH | …ssing/transformers/test_invertible_data_transformer.py | 0 | implements the transform `scale * series + translation`. if `component_mask` is in `kwargs`, this is manually applied an | STRING |
| HIGH | …aprocessing/transformers/test_base_data_transformer.py | 0 | tests for correct transformation of multiple series when different param values are used for different parallel jobs (i. | STRING |
| HIGH | …nsformers/test_invertible_fittable_data_transformer.py | 0 | tests for correct transformation of multiple series when different param values are used for different parallel jobs (i. | STRING |
| HIGH | …ssing/transformers/test_invertible_data_transformer.py | 0 | tests for correct transformation of multiple series when different param values are used for different parallel jobs (i. | STRING |
| HIGH | …aprocessing/transformers/test_base_data_transformer.py | 0 | tests that `stack_samples` and `unstack_samples` correctly implemented when considering multi-sample timeseries. | STRING |
| HIGH | …cessing/transformers/test_fittable_data_transformer.py | 0 | tests that `stack_samples` and `unstack_samples` correctly implemented when considering multi-sample timeseries. | STRING |
| HIGH | …nsformers/test_invertible_fittable_data_transformer.py | 0 | tests that `stack_samples` and `unstack_samples` correctly implemented when considering multi-sample timeseries. | STRING |
| HIGH | …ssing/transformers/test_invertible_data_transformer.py | 0 | tests that `stack_samples` and `unstack_samples` correctly implemented when considering multi-sample timeseries. | STRING |
| HIGH | …aprocessing/transformers/test_base_data_transformer.py | 0 | tests that automatic component masking is correctly implemented, and that manual component masking is also handled corre | STRING |
| HIGH | …cessing/transformers/test_fittable_data_transformer.py | 0 | tests that automatic component masking is correctly implemented, and that manual component masking is also handled corre | STRING |
| HIGH | …nsformers/test_invertible_fittable_data_transformer.py | 0 | tests that automatic component masking is correctly implemented, and that manual component masking is also handled corre | STRING |
| HIGH | …ssing/transformers/test_invertible_data_transformer.py | 0 | tests that automatic component masking is correctly implemented, and that manual component masking is also handled corre | STRING |
| HIGH | …tils/historical_forecasts/test_historical_forecasts.py | 0 | check that passing sample weights work and that it yields different results than without sample weights. | STRING |
| HIGH | darts/tests/models/forecasting/test_residuals.py | 0 | check that passing sample weights work and that it yields different results than without sample weights. | STRING |
| HIGH | darts/tests/models/forecasting/test_backtesting.py | 0 | check that passing sample weights work and that it yields different results than without sample weights. | STRING |
| HIGH | …s/tabularization/test_create_lagged_prediction_data.py | 0 | tests the `create_lagged_training_data` function defined in `darts.utils.data.tabularization`. there are broadly two 'gr | STRING |
| HIGH | …s/tests/utils/tabularization/test_get_feature_times.py | 0 | tests the `create_lagged_training_data` function defined in `darts.utils.data.tabularization`. there are broadly two 'gr | STRING |
| HIGH | …ils/tabularization/test_create_lagged_training_data.py | 0 | tests the `create_lagged_training_data` function defined in `darts.utils.data.tabularization`. there are broadly two 'gr | STRING |
| HIGH | …s/tabularization/test_create_lagged_prediction_data.py | 0 | helper function called by `get_feature_times` that extracts all times within `future_covariates` that can be used to cre | STRING |
| HIGH | …s/tests/utils/tabularization/test_get_feature_times.py | 0 | helper function called by `get_feature_times` that extracts all times within `future_covariates` that can be used to cre | STRING |
| HIGH | …ils/tabularization/test_create_lagged_training_data.py | 0 | helper function called by `get_feature_times` that extracts all times within `future_covariates` that can be used to cre | STRING |
| HIGH | darts/tests/models/forecasting/test_timesfm2p5.py | 0 | load validation inputs for patchtstfmmodel fidelity tests. the data imports here are adapted from the `20-sklearnmodel-e | STRING |
| HIGH | darts/tests/models/forecasting/test_chronos2.py | 0 | load validation inputs for patchtstfmmodel fidelity tests. the data imports here are adapted from the `20-sklearnmodel-e | STRING |
| HIGH | darts/tests/models/forecasting/test_patchtst_fm.py | 0 | load validation inputs for patchtstfmmodel fidelity tests. the data imports here are adapted from the `20-sklearnmodel-e | STRING |
| HIGH | darts/utils/likelihood_models/sklearn.py | 0 | samples a prediction from the likelihood distribution and the predicted parameters. | STRING |
| HIGH | darts/utils/likelihood_models/torch.py | 0 | samples a prediction from the likelihood distribution and the predicted parameters. | STRING |
| HIGH | darts/utils/likelihood_models/statsforecast.py | 0 | samples a prediction from the likelihood distribution and the predicted parameters. | STRING |
| HIGH | darts/models/forecasting/catboost_model.py | 0 | sklearn classifier model can be used to fit any scikit-learn-like classifier class to predict the target time series wit | STRING |
| HIGH | darts/models/forecasting/xgboost.py | 0 | sklearn classifier model can be used to fit any scikit-learn-like classifier class to predict the target time series wit | STRING |
| HIGH | darts/models/forecasting/linear_regression_model.py | 0 | sklearn classifier model can be used to fit any scikit-learn-like classifier class to predict the target time series wit | STRING |
| HIGH | darts/models/forecasting/lgbm.py | 0 | sklearn classifier model can be used to fit any scikit-learn-like classifier class to predict the target time series wit | STRING |
| HIGH | darts/models/forecasting/sklearn_model.py | 0 | sklearn classifier model can be used to fit any scikit-learn-like classifier class to predict the target time series wit | STRING |
| HIGH | darts/models/forecasting/catboost_model.py | 0 | fit/train the model on one or multiple series. parameters ---------- series timeseries or sequence[timeseries] object co | STRING |
| HIGH | darts/models/forecasting/xgboost.py | 0 | fit/train the model on one or multiple series. parameters ---------- series timeseries or sequence[timeseries] object co | STRING |
| HIGH | darts/models/forecasting/lgbm.py | 0 | fit/train the model on one or multiple series. parameters ---------- series timeseries or sequence[timeseries] object co | STRING |
| HIGH | darts/models/forecasting/sklearn_model.py | 0 | fit/train the model on one or multiple series. parameters ---------- series timeseries or sequence[timeseries] object co | STRING |
| HIGH | darts/models/forecasting/catboost_model.py | 0 | returns the name of the categorical features parameter from model's `fit` method . | STRING |
| HIGH | darts/models/forecasting/lgbm.py | 0 | returns the name of the categorical features parameter from model's `fit` method . | STRING |
| HIGH | darts/models/forecasting/sklearn_model.py | 0 | returns the name of the categorical features parameter from model's `fit` method . | STRING |
| HIGH | darts/models/forecasting/sf_auto_ces.py | 0 | auto-theta based on the `statsforecasts package <https://github.com/nixtla/statsforecast>`__. automatically selects the | STRING |
| HIGH | darts/models/forecasting/sf_auto_ets.py | 0 | auto-theta based on the `statsforecasts package <https://github.com/nixtla/statsforecast>`__. automatically selects the | STRING |
| HIGH | darts/models/forecasting/sf_auto_theta.py | 0 | auto-theta based on the `statsforecasts package <https://github.com/nixtla/statsforecast>`__. automatically selects the | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | darts/__init__.py | 8 | CODE | |
| LOW | darts/__init__.py | 8 | CODE | |
| LOW | darts/__init__.py | 8 | CODE | |
| LOW | darts/__init__.py | 8 | CODE | |
| LOW | darts/__init__.py | 8 | CODE | |
| LOW | darts/__init__.py | 15 | CODE | |
| LOW | darts/__init__.py | 15 | CODE | |
| LOW | darts/__init__.py | 15 | CODE | |
| LOW | darts/__init__.py | 15 | CODE | |
| LOW | darts/typing.py | 16 | CODE | |
| LOW | darts/timeseries.py | 42 | CODE | |
| LOW | darts/metrics/__init__.py | 109 | CODE | |
| LOW | darts/metrics/__init__.py | 110 | CODE | |
| LOW | darts/metrics/__init__.py | 111 | CODE | |
| LOW | darts/metrics/__init__.py | 112 | CODE | |
| LOW | darts/metrics/__init__.py | 113 | CODE | |
| LOW | darts/metrics/__init__.py | 114 | CODE | |
| LOW | darts/metrics/__init__.py | 115 | CODE | |
| LOW | darts/metrics/__init__.py | 118 | CODE | |
| LOW | darts/metrics/__init__.py | 119 | CODE | |
| LOW | darts/metrics/__init__.py | 120 | CODE | |
| LOW | darts/metrics/__init__.py | 121 | CODE | |
| LOW | darts/metrics/__init__.py | 122 | CODE | |
| LOW | darts/metrics/__init__.py | 123 | CODE | |
| LOW | darts/metrics/__init__.py | 124 | CODE | |
| LOW | darts/metrics/__init__.py | 125 | CODE | |
| LOW | darts/metrics/__init__.py | 126 | CODE | |
| LOW | darts/metrics/__init__.py | 127 | CODE | |
| LOW | darts/metrics/__init__.py | 128 | CODE | |
| LOW | darts/metrics/__init__.py | 129 | CODE | |
| LOW | darts/metrics/__init__.py | 130 | CODE | |
| LOW | darts/metrics/__init__.py | 131 | CODE | |
| LOW | darts/metrics/__init__.py | 132 | CODE | |
| LOW | darts/metrics/__init__.py | 133 | CODE | |
| LOW | darts/metrics/__init__.py | 134 | CODE | |
| LOW | darts/metrics/__init__.py | 135 | CODE | |
| LOW | darts/metrics/__init__.py | 136 | CODE | |
| LOW | darts/metrics/__init__.py | 137 | CODE | |
| LOW | darts/metrics/__init__.py | 138 | CODE | |
| LOW | darts/metrics/__init__.py | 139 | CODE | |
| LOW | darts/metrics/__init__.py | 140 | CODE | |
| LOW | darts/metrics/__init__.py | 141 | CODE | |
| LOW | darts/metrics/__init__.py | 142 | CODE | |
| LOW | darts/metrics/__init__.py | 143 | CODE | |
| LOW | darts/metrics/__init__.py | 144 | CODE | |
| LOW | darts/metrics/__init__.py | 145 | CODE | |
| LOW | darts/metrics/__init__.py | 146 | CODE | |
| LOW | darts/metrics/__init__.py | 147 | CODE | |
| LOW | darts/metrics/__init__.py | 148 | CODE | |
| LOW | darts/metrics/__init__.py | 149 | CODE | |
| LOW | darts/metrics/__init__.py | 150 | CODE | |
| LOW | darts/metrics/__init__.py | 151 | CODE | |
| LOW | darts/metrics/__init__.py | 152 | CODE | |
| LOW | darts/metrics/__init__.py | 153 | CODE | |
| LOW | darts/metrics/__init__.py | 154 | CODE | |
| LOW | darts/ad/__init__.py | 34 | CODE | |
| LOW | darts/ad/__init__.py | 35 | CODE | |
| LOW | darts/ad/__init__.py | 38 | CODE | |
| LOW | darts/ad/__init__.py | 39 | CODE | |
| LOW | darts/ad/__init__.py | 40 | CODE | |
| 215 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | darts/timeseries.py | 110 | CODE | |
| LOW | darts/timeseries.py | 581 | CODE | |
| LOW | darts/timeseries.py | 686 | CODE | |
| LOW | darts/timeseries.py | 849 | CODE | |
| LOW | darts/timeseries.py | 1220 | CODE | |
| LOW | darts/timeseries.py | 4375 | CODE | |
| LOW | darts/timeseries.py | 4466 | CODE | |
| LOW | darts/metrics/metrics.py | 41 | CODE | |
| LOW | darts/metrics/metrics.py | 226 | CODE | |
| LOW | darts/metrics/metrics.py | 411 | CODE | |
| LOW | darts/metrics/metrics.py | 542 | CODE | |
| LOW | darts/metrics/metrics.py | 668 | CODE | |
| LOW | darts/metrics/metrics.py | 853 | CODE | |
| LOW | darts/metrics/metrics.py | 984 | CODE | |
| LOW | darts/metrics/metrics.py | 1197 | CODE | |
| LOW | darts/metrics/metrics.py | 1319 | CODE | |
| LOW | darts/metrics/metrics.py | 1511 | CODE | |
| LOW | darts/metrics/metrics.py | 1821 | CODE | |
| LOW | darts/metrics/metrics.py | 2127 | CODE | |
| LOW | darts/metrics/metrics.py | 2521 | CODE | |
| LOW | darts/metrics/metrics.py | 2581 | CODE | |
| LOW | darts/metrics/metrics.py | 2904 | CODE | |
| LOW | darts/metrics/metrics.py | 3324 | CODE | |
| LOW | darts/metrics/metrics.py | 3429 | CODE | |
| LOW | darts/metrics/metrics.py | 3526 | CODE | |
| LOW | darts/metrics/metrics.py | 3658 | CODE | |
| LOW | darts/metrics/metrics.py | 3757 | CODE | |
| LOW | darts/metrics/metrics.py | 3867 | CODE | |
| LOW | darts/metrics/metrics.py | 3962 | CODE | |
| LOW | darts/metrics/metrics.py | 4074 | CODE | |
| LOW | darts/metrics/metrics.py | 4264 | CODE | |
| LOW | darts/metrics/metrics.py | 4382 | CODE | |
| LOW | darts/metrics/metrics.py | 4500 | CODE | |
| LOW | darts/ad/utils.py | 294 | CODE | |
| LOW | darts/ad/anomaly_model/forecasting_am.py | 66 | CODE | |
| LOW | darts/ad/anomaly_model/forecasting_am.py | 153 | CODE | |
| LOW | darts/ad/anomaly_model/forecasting_am.py | 240 | CODE | |
| LOW | darts/ad/anomaly_model/forecasting_am.py | 325 | CODE | |
| LOW | darts/ad/anomaly_model/forecasting_am.py | 424 | CODE | |
| LOW | darts/ad/anomaly_model/forecasting_am.py | 534 | CODE | |
| LOW | darts/dataprocessing/dtw/_plot.py | 4 | CODE | |
| LOW | …taprocessing/transformers/fittable_data_transformer.py | 25 | CODE | |
| LOW | darts/dataprocessing/transformers/window_transformer.py | 14 | CODE | |
| LOW | darts/tests/metrics/test_metrics.py | 2205 | CODE | |
| LOW | darts/tests/models/forecasting/test_sklearn_models.py | 74 | CODE | |
| LOW | darts/utils/timeseries_generation.py | 93 | CODE | |
| LOW | darts/utils/timeseries_generation.py | 154 | CODE | |
| LOW | darts/utils/timeseries_generation.py | 223 | CODE | |
| LOW | darts/utils/timeseries_generation.py | 305 | CODE | |
| LOW | darts/utils/_plotting.py | 171 | CODE | |
| LOW | darts/utils/_plotting.py | 346 | CODE | |
| LOW | darts/utils/statistics.py | 1108 | CODE | |
| LOW | …ical_forecasts/optimized_historical_forecasts_torch.py | 21 | CODE | |
| LOW | …ical_forecasts/optimized_historical_forecasts_torch.py | 141 | CODE | |
| LOW | …forecasts/optimized_historical_forecasts_regression.py | 23 | CODE | |
| LOW | darts/utils/data/torch_datasets/training_dataset.py | 60 | CODE | |
| LOW | darts/utils/data/torch_datasets/training_dataset.py | 346 | CODE | |
| LOW | darts/utils/data/torch_datasets/training_dataset.py | 449 | CODE | |
| LOW | darts/utils/data/torch_datasets/inference_dataset.py | 62 | CODE | |
| LOW | darts/utils/data/tabularization/tabularization.py | 32 | CODE | |
| 63 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | docs/fix_package_titles.py | 104 | # Check if it's a package (has __init__.py) | COMMENT |
| LOW⚡ | docs/fix_package_titles.py | 107 | # Check if it's a module (has .py file) | COMMENT |
| LOW | docs/fix_package_titles.py | 130 | # Check if this is a package RST file (contains ".. currentmodule::") | COMMENT |
| LOW | darts/tests/test_timeseries_plotly.py | 222 | # Check if the alpha is present in the fillcolor string | COMMENT |
| LOW | darts/tests/test_timeseries_plotly.py | 459 | # Check if the trace color is green (Plotly stores this in marker or line) | COMMENT |
| LOW⚡ | darts/tests/ad/test_detectors.py | 64 | # Check if return type is TimeSeries when input is a single series | COMMENT |
| LOW⚡ | darts/tests/ad/test_detectors.py | 66 | # Check if return type is Sequence when input is a Sequence of series | COMMENT |
| LOW⚡ | darts/tests/ad/test_detectors.py | 82 | # Check if return type is float when input is a series | COMMENT |
| LOW⚡ | darts/tests/ad/test_detectors.py | 87 | # Check if return type is Sequence when input is a Sequence of series | COMMENT |
| LOW⚡ | darts/tests/ad/test_detectors.py | 96 | # Check if return type is Sequence when input is a multivariate series | COMMENT |
| LOW⚡ | darts/tests/ad/test_detectors.py | 103 | # Check if return type is Sequence when input is a multivariate series | COMMENT |
| LOW | darts/tests/ad/test_detectors.py | 159 | # Check if _fit_called is False | COMMENT |
| LOW | darts/tests/ad/test_detectors.py | 174 | # Check if _fit_called is True after being fitted | COMMENT |
| LOW | darts/tests/ad/test_detectors.py | 185 | # Check if _fit_called is True after being fitted | COMMENT |
| LOW⚡ | darts/tests/ad/test_scorers.py | 173 | # Check if return type is float when input is a series | COMMENT |
| LOW⚡ | darts/tests/ad/test_scorers.py | 178 | # Check if return type is Sequence when input is a Sequence of series | COMMENT |
| LOW⚡ | darts/tests/ad/test_scorers.py | 184 | # Check if return type is Sequence when input is a multivariate series | COMMENT |
| LOW⚡ | darts/tests/ad/test_scorers.py | 190 | # Check if return type is Sequence when input is a multivariate series | COMMENT |
| LOW⚡ | darts/tests/ad/test_scorers.py | 202 | # Check if return type is float when input is a series | COMMENT |
| LOW⚡ | darts/tests/ad/test_scorers.py | 205 | # Check if return type is Sequence when input is a sequence of series | COMMENT |
| LOW⚡ | darts/tests/ad/test_scorers.py | 209 | # Check if return type is Sequence when input is a multivariate series | COMMENT |
| LOW⚡ | darts/tests/ad/test_scorers.py | 212 | # Check if return type is Sequence when input is a sequence of multivariate series | COMMENT |
| LOW⚡ | darts/tests/ad/test_scorers.py | 217 | # Check if return type is float when input is a series | COMMENT |
| LOW⚡ | darts/tests/ad/test_scorers.py | 222 | # Check if return type is Sequence when input is a Sequence of series | COMMENT |
| LOW⚡ | darts/tests/ad/test_scorers.py | 229 | # Check if return type is Sequence when input is a multivariate series | COMMENT |
| LOW⚡ | darts/tests/ad/test_scorers.py | 235 | # Check if return type is Sequence when input is a multivariate series | COMMENT |
| LOW⚡ | darts/tests/ad/test_scorers.py | 243 | # Check if return type is float when input is a series | COMMENT |
| LOW⚡ | darts/tests/ad/test_scorers.py | 250 | # Check if return type is Sequence when input is a Sequence of series | COMMENT |
| LOW⚡ | darts/tests/ad/test_scorers.py | 257 | # Check if return type is a float when input is a multivariate series and component_wise is set to `False` | COMMENT |
| LOW⚡ | darts/tests/ad/test_scorers.py | 264 | # Check if return type is Sequence when input is a multivariate series and component_wise is set to `False` | COMMENT |
| LOW⚡ | darts/tests/ad/test_scorers.py | 273 | # Check if return type is a float when input is a multivariate series and component_wise is set to `True` | COMMENT |
| LOW⚡ | darts/tests/ad/test_scorers.py | 280 | # Check if return type is Sequence when input is a multivariate series and component_wise is set to `True` | COMMENT |
| LOW⚡ | darts/tests/ad/test_scorers.py | 589 | # Check if _fit_called is True after being fitted | COMMENT |
| LOW⚡ | darts/tests/ad/test_scorers.py | 597 | # Check if _fit_called is True after being fitted | COMMENT |
| LOW⚡ | darts/tests/ad/test_scorers.py | 607 | # Check if _fit_called is True after being fitted | COMMENT |
| LOW⚡ | darts/tests/ad/test_scorers.py | 617 | # Check if _fit_called is True after being fitted | COMMENT |
| LOW | darts/tests/ad/test_scorers.py | 451 | # Check if trainable is False, being a NonFittableAnomalyScorer | COMMENT |
| LOW | darts/tests/ad/test_scorers.py | 492 | # Check if _fit_called is False | COMMENT |
| LOW | darts/tests/ad/test_anomaly_model.py | 475 | # Check if return type is float when input is a series | COMMENT |
| LOW | darts/tests/ad/test_anomaly_model.py | 481 | # Check if return type is Sequence when input is a Sequence of series | COMMENT |
| LOW | darts/tests/ad/test_aggregators.py | 229 | # Check if return type is the same number of series in input | COMMENT |
| LOW | darts/tests/ad/test_aggregators.py | 464 | # Check if _fit_called is False before calling fit | COMMENT |
| LOW | darts/tests/ad/test_aggregators.py | 470 | # Check if _fit_called is True after calling fit | COMMENT |
| LOW | darts/models/forecasting/sklearn_model.py | 456 | # Check if only default lags are provided | COMMENT |
| LOW | darts/models/forecasting/sklearn_model.py | 1049 | # Check if multi-output regression is required | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | darts/timeseries.py | 110 | CODE | |
| LOW | darts/timeseries.py | 1780 | CODE | |
| LOW | darts/timeseries.py | 2354 | CODE | |
| LOW | darts/timeseries.py | 5572 | CODE | |
| LOW | darts/ad/utils.py | 142 | CODE | |
| LOW | darts/dataprocessing/dtw/cost_matrix.py | 115 | CODE | |
| LOW | darts/dataprocessing/transformers/reconciliation.py | 231 | CODE | |
| LOW | …ocessing/transformers/static_covariates_transformer.py | 265 | CODE | |
| LOW | …ocessing/transformers/static_covariates_transformer.py | 450 | CODE | |
| LOW | darts/dataprocessing/transformers/midas.py | 317 | CODE | |
| LOW | darts/dataprocessing/encoders/encoders.py | 1450 | CODE | |
| LOW | darts/datasets/dataset_loaders.py | 144 | CODE | |
| LOW | darts/tests/test_timeseries.py | 1261 | CODE | |
| LOW | darts/tests/test_timeseries_plot.py | 79 | CODE | |
| LOW | darts/tests/dataprocessing/encoders/test_encoders.py | 325 | CODE | |
| LOW | darts/tests/utils/test_timeseries_generation.py | 209 | CODE | |
| LOW | darts/tests/utils/torch_datasets/test_torch_datasets.py | 45 | CODE | |
| LOW | …tils/historical_forecasts/test_historical_forecasts.py | 1688 | CODE | |
| LOW | …tils/historical_forecasts/test_historical_forecasts.py | 2895 | CODE | |
| LOW | …tils/historical_forecasts/test_historical_forecasts.py | 4525 | CODE | |
| LOW | …tils/historical_forecasts/test_historical_forecasts.py | 4636 | CODE | |
| LOW | …s/tabularization/test_create_lagged_prediction_data.py | 231 | CODE | |
| LOW | …ils/tabularization/test_create_lagged_training_data.py | 258 | CODE | |
| LOW | …ils/tabularization/test_create_lagged_training_data.py | 414 | CODE | |
| LOW | darts/tests/models/forecasting/test_TCN.py | 74 | CODE | |
| LOW | darts/tests/models/forecasting/test_dlinear_nlinear.py | 132 | CODE | |
| LOW | …/tests/models/forecasting/test_probabilistic_models.py | 620 | CODE | |
| LOW | darts/tests/models/forecasting/test_sklearn_models.py | 380 | CODE | |
| LOW | darts/tests/models/forecasting/test_sklearn_models.py | 695 | CODE | |
| LOW | darts/tests/models/forecasting/test_sklearn_models.py | 1668 | CODE | |
| LOW | darts/tests/models/forecasting/test_sklearn_models.py | 395 | CODE | |
| LOW | darts/tests/models/forecasting/test_conformal_model.py | 1184 | CODE | |
| LOW | darts/utils/_plotting.py | 27 | CODE | |
| LOW | darts/utils/_plotting.py | 171 | CODE | |
| LOW | darts/utils/utils.py | 756 | CODE | |
| LOW | darts/utils/statistics.py | 140 | CODE | |
| LOW | darts/utils/ts_utils.py | 56 | CODE | |
| LOW | darts/utils/ts_utils.py | 185 | CODE | |
| LOW | darts/utils/historical_forecasts/utils.py | 40 | CODE | |
| LOW | darts/utils/historical_forecasts/utils.py | 1024 | CODE | |
| LOW | darts/utils/historical_forecasts/utils.py | 1334 | CODE | |
| LOW | …forecasts/optimized_historical_forecasts_regression.py | 23 | CODE | |
| LOW | darts/utils/data/torch_datasets/dataset.py | 71 | CODE | |
| LOW | darts/utils/data/tabularization/tabularization.py | 1528 | CODE | |
| LOW | darts/utils/data/tabularization/tabularization.py | 1780 | CODE | |
| LOW | darts/utils/likelihood_models/sklearn.py | 670 | CODE | |
| LOW | darts/models/components/tft_submodels.py | 369 | CODE | |
| LOW | darts/models/forecasting/ensemble_model.py | 78 | CODE | |
| LOW | darts/models/forecasting/ensemble_model.py | 241 | CODE | |
| LOW | darts/models/forecasting/ensemble_model.py | 755 | CODE | |
| LOW | darts/models/forecasting/prophet_model.py | 630 | CODE | |
| LOW | darts/models/forecasting/tft_model.py | 989 | CODE | |
| LOW | darts/models/forecasting/conformal_models.py | 1085 | CODE | |
| LOW | darts/models/forecasting/forecasting_model.py | 668 | CODE | |
| LOW | darts/models/forecasting/forecasting_model.py | 2001 | CODE | |
| LOW | darts/models/forecasting/fft.py | 82 | CODE | |
| LOW | darts/models/forecasting/sf_croston.py | 16 | CODE | |
| LOW | darts/models/forecasting/torch_forecasting_model.py | 452 | CODE | |
| LOW | darts/models/forecasting/torch_forecasting_model.py | 3001 | CODE | |
| LOW | darts/models/forecasting/sklearn_model.py | 317 | CODE | |
| 7 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | darts/tests/test_timeseries.py | 2500 | # Creating a gap is not allowed | COMMENT |
| MEDIUM⚡ | darts/tests/test_timeseries.py | 2536 | # Creating a gap is not allowed | COMMENT |
| MEDIUM | darts/tests/test_timeseries_plotly.py | 302 | # Create a univariate deterministic series | COMMENT |
| MEDIUM | darts/tests/test_timeseries_plotly.py | 349 | # Define a side effect for the mock import | COMMENT |
| MEDIUM | …tils/historical_forecasts/test_historical_forecasts.py | 4530 | # Create a custom model that tracks fit and predict arguments | COMMENT |
| MEDIUM | …tils/historical_forecasts/test_historical_forecasts.py | 4646 | # Create a custom Pipeline subclass that tracks fit, transform, and inverse_transform arguments | COMMENT |
| MEDIUM⚡ | darts/tests/models/forecasting/test_prophet.py | 370 | # Create a simple timeseries | COMMENT |
| MEDIUM | …ts/models/forecasting/test_local_forecasting_models.py | 649 | # Create a custom model that tracks fit and predict arguments | COMMENT |
| MEDIUM | darts/tests/optional_deps/test_ray.py | 52 | # Create the model using model_args from Ray Tune | COMMENT |
| MEDIUM | darts/tests/optional_deps/test_ray.py | 92 | # Define the trainable function that will be tuned by Ray Tune | COMMENT |
| MEDIUM | darts/tests/optional_deps/test_ray.py | 110 | # Create the Tuner object and run the hyperparameter search | COMMENT |
| MEDIUM | darts/models/forecasting/block_rnn_model.py | 161 | # Defining the RNN module | COMMENT |
| MEDIUM | darts/models/forecasting/transformer_model.py | 273 | # Defining the Transformer module | COMMENT |
| MEDIUM | darts/models/forecasting/pl_forecasting_module.py | 491 | # Create the optimizer and (optionally) the learning rate scheduler | COMMENT |
| MEDIUM | darts/models/forecasting/rnn_model.py | 260 | # Defining the RNN module | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | darts/timeseries.py | 4236 | # More robust than predicting from window params, as some functions | COMMENT |
| MEDIUM | darts/metrics/utils.py | 65 | # Note: for new metrics added to this module to be able to leverage the two decorators, it is required both having | COMMENT |
| MEDIUM | darts/dataprocessing/transformers/midas.py | 124 | """MIDAS needs the high frequency period name in order to easily reverse_transform | STRING |
| LOW | darts/dataprocessing/encoders/encoder_base.py | 275 | # user supplied covariates: simply return the covariate time index; guarantees that an exception is | COMMENT |
| LOW | darts/dataprocessing/encoders/encoder_base.py | 316 | # user supplied covariates: simply return the covariate time index; guarantees that an exception is | COMMENT |
| LOW | darts/dataprocessing/encoders/encoder_base.py | 374 | # user supplied covariates: simply return the covariate time index; guarantees that models raise an | COMMENT |
| LOW | darts/dataprocessing/encoders/encoder_base.py | 378 | # simply return the target time index. | COMMENT |
| LOW | darts/dataprocessing/encoders/encoder_base.py | 424 | # user supplied covariates: simply return the covariate time index; guarantees that an exception is | COMMENT |
| LOW | darts/dataprocessing/encoders/encoder_base.py | 428 | # simply return the target time index. | COMMENT |
| LOW | darts/tests/ad/test_scorers.py | 834 | # test plotting (just call the functions) | COMMENT |
| MEDIUM | darts/models/forecasting/sf_model.py | 24 | """This serves as a protocol for expected StatsForecast model API.""" | STRING |
| MEDIUM | darts/models/forecasting/torch_forecasting_model.py | 3044 | # warning messages formatted to facilitate copy-pasting | COMMENT |
| MEDIUM | darts/models/forecasting/linear_regression_model.py | 242 | # assign the Quantile regressor to self.model to leverage existing logic | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | docs/fix_package_titles.py | 46 | # ================== | COMMENT |
| MEDIUM | docs/fix_package_titles.py | 153 | # ============ | COMMENT |
| MEDIUM | docs/source/conf.py | 196 | # --------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | darts/tests/models/forecasting/foundation_test_utils.py | 16 | # ── Artefact paths ────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | darts/tests/models/forecasting/foundation_test_utils.py | 30 | # ── HuggingFace mock download (Chronos-2 tiny artefact) ──────────────────── | COMMENT |
| MEDIUM | darts/tests/models/forecasting/foundation_test_utils.py | 53 | # ── TiRex stub ────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | darts/tests/models/forecasting/foundation_test_utils.py | 77 | # ── TimesFM 2.5 tiny model ───────────────────────────────────────────────── | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | darts/config.py | 298 | def set_option(self, pattern: str, value: Any) -> None: | CODE |
| LOW | darts/config.py | 385 | def set_option(pat: str, value: Any) -> None: | CODE |
| LOW | darts/__init__.py | 24 | __all__ = [ | CODE |
| LOW | darts/ad/anomaly_model/__init__.py | 28 | __all__ = [ | CODE |
| LOW | darts/ad/aggregators/__init__.py | 19 | __all__ = [ | CODE |
| LOW | darts/ad/scorers/__init__.py | 83 | __all__ = [ | CODE |
| LOW | darts/ad/detectors/__init__.py | 25 | __all__ = [ | CODE |
| LOW | darts/dataprocessing/__init__.py | 11 | __all__ = ["Pipeline"] | CODE |
| LOW | darts/dataprocessing/dtw/__init__.py | 19 | __all__ = [ | CODE |
| LOW | darts/dataprocessing/encoders/encoder_base.py | 892 | def _update_mask(self, covariates: list[TimeSeries]) -> None: | CODE |
| LOW | darts/dataprocessing/encoders/__init__.py | 21 | __all__ = [ | CODE |
| LOW | darts/dataprocessing/encoders/encoders.py | 1388 | def _setup_encoders(self, params: dict) -> None: | CODE |
| LOW | darts/dataprocessing/encoders/encoders.py | 1427 | def _setup_transformer(self, params: dict) -> None: | CODE |
| LOW | darts/utils/__init__.py | 15 | __all__ = [ | CODE |
| LOW | darts/utils/data/tabularization/__init__.py | 23 | __all__ = [ | CODE |
| LOW | examples/utils/__init__.py | 3 | __all__ = ["fix_pythonpath_if_working_locally"] | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docs/source/conf.py | 1 | # Configuration file for the Sphinx documentation builder. | COMMENT |
| LOW | docs/source/conf.py | 181 | } | COMMENT |
| LOW | darts/dataprocessing/encoders/encoder_base.py | 381 | # target index; always True for all models except SKLearnModels. | COMMENT |
| LOW | darts/dataprocessing/encoders/encoder_base.py | 421 | COMMENT | |
| LOW | darts/tests/ad/test_anomaly_model.py | 261 | ) | COMMENT |
| LOW | darts/tests/explainability/test_shap_explainer.py | 201 | "output_chunk_length": 4, | COMMENT |
| LOW | darts/models/forecasting/timesfm2p5_model.py | 241 | COMMENT | |
| LOW | darts/models/forecasting/block_rnn_model.py | 201 | # B: batch size | COMMENT |
| LOW | darts/models/forecasting/nf_model.py | 221 | """ | COMMENT |
| LOW | darts/models/forecasting/nf_model.py | 281 | elif self.converts_to_multivariate: | COMMENT |
| LOW | darts/models/forecasting/tirex_model.py | 101 | Optional keyword arguments. | COMMENT |
| LOW | darts/models/forecasting/tsmixer_model.py | 1 | """ | COMMENT |
| LOW | darts/models/forecasting/tsmixer_model.py | 461 | COMMENT | |
| LOW | .github/scripts/libomp-macOS.sh | 1 | brew install libomp | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docs/fix_package_titles.py | 81 | except Exception: | CODE |
| LOW | darts/metrics/utils.py | 730 | except Exception: | CODE |
| LOW | darts/datasets/dataset_loaders.py | 136 | except Exception as e: | CODE |
| LOW | darts/datasets/dataset_loaders.py | 159 | except Exception as e: | CODE |
| LOW | darts/datasets/dataset_loaders.py | 224 | except Exception as e: | CODE |
| LOW | darts/tests/test_logging.py | 25 | except Exception: | CODE |
| LOW | darts/tests/test_logging.py | 60 | except Exception: | CODE |
| LOW | darts/utils/ts_utils.py | 221 | except Exception as err: | CODE |
| LOW | darts/models/forecasting/forecasting_model.py | 2284 | except Exception as err: | STRING |
| LOW | darts/models/forecasting/global_baseline_models.py | 423 | except Exception as err: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | darts/utils/historical_forecasts/utils.py | 699 | # get the first and last historical forecast start points for either (re)training or (zero shot) prediction | COMMENT |
| MEDIUM | darts/models/forecasting/patchtst_fm_model.py | 271 | # Build the full context window | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docs/fix_package_titles.py | 31 | # Extract docstring (enclosed by `"""lorem ipsum"""` or `'''lorem ipsum'''`) | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | darts/explainability/utils.py | 170 | # make sure to remove any encodings from covariates if downstream tasks require covariates without encodings | COMMENT |