AI Slop Code RIsk Monitor

google-research/timesfm

TimesFM (Time Series Foundation Model) is a pretrained time-series foundation model developed by Google Research for time-series forecasting.

24.6 Elevated pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for google-research/timesfm, a Python project with 34,181 GitHub stars. SynthScan examined 37,690 lines of code across 131 source files, recording 495 pattern matches distributed across 19 syntactic categories. The legacy adjusted pattern signal is 24.6 (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.

24.6
Adjusted Signal
24.6
Raw Pattern Score
100%
Time Factor
2026-09-29
Last Push
34.2K
Stars
Python
Language
37.7K
Lines of Code
131
Files
495
Pattern Hits
2026-10-12
Scan Date
0.30
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 37.6/100 · MEDIUM

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

Hallucinated Dependency & Supply Chain Risk 27.9/100 · MEDIUM

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

Agent Over-Engineering Ratio 48.2/100 · MEDIUM

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

PR Review Velocity Impact 67.2/100 · HIGH

Which changes need focused human review? 495 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 39MEDIUM 75LOW 381

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

Decorative Section Separators66 hits · 249 pts
SeverityFileLineSnippetContext
MEDIUM⚡tests/test_configs.py37# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_configs.py39# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_configs.py99# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_configs.py101# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_configs.py131# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_configs.py133# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_configs.py180# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_configs.py182# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_torch_utils.py35# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_torch_utils.py37# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_torch_utils.py181# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_torch_utils.py183# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_torch_utils.py304# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_torch_utils.py306# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_base_utils.py32# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_base_utils.py34# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_base_utils.py94# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_base_utils.py96# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_torch_layers.py32# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_torch_layers.py34# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_torch_layers.py145# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_torch_layers.py147# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_torch_layers.py202# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_torch_layers.py204# ---------------------------------------------------------------------------COMMENT
MEDIUM…casting/examples/anomaly-detection/detect_anomalies.py45# ---------------------------------------------------------------------------COMMENT
MEDIUM…casting/examples/anomaly-detection/detect_anomalies.py47# ---------------------------------------------------------------------------COMMENT
MEDIUM…casting/examples/anomaly-detection/detect_anomalies.py93# ---------------------------------------------------------------------------COMMENT
MEDIUM…casting/examples/anomaly-detection/detect_anomalies.py95# ---------------------------------------------------------------------------COMMENT
MEDIUM…casting/examples/anomaly-detection/detect_anomalies.py167# ---------------------------------------------------------------------------COMMENT
MEDIUM…casting/examples/anomaly-detection/detect_anomalies.py169# ---------------------------------------------------------------------------COMMENT
MEDIUM…casting/examples/anomaly-detection/detect_anomalies.py192 # -----------------------------------------------------------------------COMMENT
MEDIUM…casting/examples/anomaly-detection/detect_anomalies.py194 # -----------------------------------------------------------------------COMMENT
MEDIUM…casting/examples/anomaly-detection/detect_anomalies.py294 # -----------------------------------------------------------------------COMMENT
MEDIUM…casting/examples/anomaly-detection/detect_anomalies.py296 # -----------------------------------------------------------------------COMMENT
MEDIUM…casting/examples/anomaly-detection/detect_anomalies.py386# ---------------------------------------------------------------------------COMMENT
MEDIUM…casting/examples/anomaly-detection/detect_anomalies.py388# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…mesfm-forecasting/examples/finetuning/finetune_lora.py52# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…mesfm-forecasting/examples/finetuning/finetune_lora.py54# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…mesfm-forecasting/examples/finetuning/finetune_lora.py183# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…mesfm-forecasting/examples/finetuning/finetune_lora.py185# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…mesfm-forecasting/examples/finetuning/finetune_lora.py194 # ------------------------------------------------------------------COMMENT
MEDIUM⚡…mesfm-forecasting/examples/finetuning/finetune_lora.py196 # ------------------------------------------------------------------COMMENT
MEDIUM⚡…mesfm-forecasting/examples/finetuning/finetune_lora.py206 # ------------------------------------------------------------------COMMENT
MEDIUM⚡…mesfm-forecasting/examples/finetuning/finetune_lora.py208 # ------------------------------------------------------------------COMMENT
MEDIUM⚡…mesfm-forecasting/examples/finetuning/finetune_lora.py237 # ------------------------------------------------------------------COMMENT
MEDIUM⚡…mesfm-forecasting/examples/finetuning/finetune_lora.py239 # ------------------------------------------------------------------COMMENT
MEDIUM⚡…mesfm-forecasting/examples/finetuning/finetune_lora.py247 # ------------------------------------------------------------------COMMENT
MEDIUM⚡…mesfm-forecasting/examples/finetuning/finetune_lora.py249 # ------------------------------------------------------------------COMMENT
MEDIUM…mesfm-forecasting/examples/finetuning/finetune_lora.py139# ---------------------------------------------------------------------------COMMENT
MEDIUM…mesfm-forecasting/examples/finetuning/finetune_lora.py141# ---------------------------------------------------------------------------COMMENT
MEDIUM…mesfm-forecasting/examples/finetuning/finetune_lora.py219 # ------------------------------------------------------------------COMMENT
MEDIUM…mesfm-forecasting/examples/finetuning/finetune_lora.py221 # ------------------------------------------------------------------COMMENT
MEDIUM…mesfm-forecasting/examples/finetuning/finetune_lora.py313# ---------------------------------------------------------------------------COMMENT
MEDIUM…mesfm-forecasting/examples/finetuning/finetune_lora.py315# ---------------------------------------------------------------------------COMMENT
MEDIUM…mesfm-forecasting/examples/finetuning/finetune_lora.py399# ---------------------------------------------------------------------------COMMENT
MEDIUM…mesfm-forecasting/examples/finetuning/finetune_lora.py401# ---------------------------------------------------------------------------COMMENT
MEDIUMtimesfm-forecasting/scripts/check_system.py31# ---------------------------------------------------------------------------COMMENT
MEDIUMtimesfm-forecasting/scripts/check_system.py33# ---------------------------------------------------------------------------COMMENT
MEDIUMtimesfm-forecasting/scripts/check_system.py69# ---------------------------------------------------------------------------COMMENT
MEDIUMtimesfm-forecasting/scripts/check_system.py71# ---------------------------------------------------------------------------COMMENT
6 more matches not shown…
Cross-Language Confusion24 hits · 161 pts
SeverityFileLineSnippetContext
HIGH⚡…recasting/examples/global-temperature/generate_html.py403 ...Array(nActual).fill(null),CODE
HIGH⚡…recasting/examples/global-temperature/generate_html.py411 dataUsed.push(step.historical_values[i]);CODE
HIGH⚡…recasting/examples/global-temperature/generate_html.py413 dataUsed.push(null);CODE
HIGH⚡…recasting/examples/global-temperature/generate_html.py413 dataUsed.push(null);CODE
HIGH⚡…recasting/examples/global-temperature/generate_html.py427 if (forecastIdx >= 0 && forecastIdx < nForecast) {{CODE
HIGH⚡…recasting/examples/global-temperature/generate_html.py428 q90Lower.push(step.q10[forecastIdx]);CODE
HIGH⚡…recasting/examples/global-temperature/generate_html.py429 q90Upper.push(step.q90[forecastIdx]);CODE
HIGH⚡…recasting/examples/global-temperature/generate_html.py430 q80Lower.push(step.q20[forecastIdx]);CODE
HIGH⚡…recasting/examples/global-temperature/generate_html.py431 q80Upper.push(step.q80[forecastIdx]);CODE
HIGH⚡…recasting/examples/global-temperature/generate_html.py433 q90Lower.push(null);CODE
HIGH⚡…recasting/examples/global-temperature/generate_html.py433 q90Lower.push(null);CODE
HIGH⚡…recasting/examples/global-temperature/generate_html.py434 q90Upper.push(null);CODE
HIGH⚡…recasting/examples/global-temperature/generate_html.py434 q90Upper.push(null);CODE
HIGH⚡…recasting/examples/global-temperature/generate_html.py435 q80Lower.push(null);CODE
HIGH⚡…recasting/examples/global-temperature/generate_html.py435 q80Lower.push(null);CODE
HIGH⚡…recasting/examples/global-temperature/generate_html.py436 q80Upper.push(null);CODE
HIGH⚡…recasting/examples/global-temperature/generate_html.py436 q80Upper.push(null);CODE
HIGH⚡…recasting/examples/global-temperature/generate_html.py448 if (forecastIdx >= 0 && forecastIdx < nForecast) {{CODE
HIGH⚡…recasting/examples/global-temperature/generate_html.py449 forecastData.push(step.point_forecast[forecastIdx]);CODE
HIGH⚡…recasting/examples/global-temperature/generate_html.py451 forecastData.push(null);CODE
HIGH⚡…recasting/examples/global-temperature/generate_html.py451 forecastData.push(null);CODE
HIGH…recasting/examples/global-temperature/generate_html.py227 let chart = null;CODE
HIGH…recasting/examples/global-temperature/generate_html.py229 let playInterval = null;CODE
HIGH…recasting/examples/global-temperature/generate_html.py275 data: [...Array(animationData.actual_data.dates.length).fill(null), ...finalStep.point_forecCODE
Hyper-Verbose Identifiers132 hits · 154 pts
SeverityFileLineSnippetContext
LOW⚡v1/experiments/extended_benchmarks/utils.py124 def _transform_quantiles_to_levels(quantiles: List[float]) -> List[int]:CODE
LOW⚡v1/experiments/extended_benchmarks/utils.py132 def _create_dir_if_not_exists(directory: str):CODE
LOW⚡v1/experiments/extended_benchmarks/utils.py136 def _transform_gluonts_instance_to_df(CODE
LOWv1/experiments/extended_benchmarks/utils.py151 def _transform_gluonts_dataset_to_df(CODE
LOWv1/experiments/extended_benchmarks/utils.py193 def fcst_from_level_to_quantiles(CODE
LOWv1/experiments/extended_benchmarks/utils.py232 def evaluate_from_predictions(CODE
LOWv1/experiments/baselines/timegpt_pipeline.py37def maybe_convert_col_to_datetime(CODE
LOWv1/tests/test_data_loader.py9def test_train_gen_respects_batch_size_when_permute_is_false(tmp_path: Path) -> None:CODE
LOWv1/tests/test_timesfm.py48def test_timesfm_forecast_on_df(CODE
LOWv1/src/timesfm/pytorch_patched_decoder.py146def get_large_negative_number(dtype: torch.dtype) -> torch.Tensor:CODE
LOWv1/src/adapter/utils.py281def _get_adapter_weight_params(CODE
LOWv1/src/adapter/utils.py417def _initialize_adapter_params(CODE
LOW⚡tests/test_configs.py45 def test_defaults_match_safe_inference_settings(self):CODE
LOWtests/test_configs.py63 def test_frozen_prevents_mutation(self):CODE
LOWtests/test_configs.py73 def test_replace_creates_independent_copy(self):CODE
LOW⚡tests/test_configs.py86 def test_equality_is_structural(self):CODE
LOW⚡tests/test_configs.py92 def test_inequality_on_any_field_difference(self):CODE
LOW⚡tests/test_configs.py107 def test_frozen_prevents_mutation(self):CODE
LOWtests/test_configs.py118 def test_activation_accepts_all_valid_literals(self):CODE
LOW⚡tests/test_configs.py139 def test_model_dims_must_be_divisible_by_num_heads(self):CODE
LOWtests/test_configs.py160 def test_stacked_config_composes_correctly(self):CODE
LOW⚡tests/test_configs.py188 def test_frozen_prevents_mutation(self):CODE
LOWtests/test_force_flip_invariance.py32 def test_flip_invariance_holds_in_autoregressive_region(self):CODE
LOW⚡tests/test_torch_utils.py43 def test_single_batch_matches_numpy(self):CODE
LOWtests/test_torch_utils.py66 def test_incremental_accumulation_matches_full_computation(self):CODE
LOWtests/test_torch_utils.py99 def test_masked_elements_excluded_from_statistics(self):CODE
LOWtests/test_torch_utils.py119 def test_all_masked_yields_zero_stats(self):CODE
LOWtests/test_torch_utils.py137 def test_batched_computation_independent(self):CODE
LOWtests/test_torch_utils.py163 def test_constant_input_yields_zero_sigma(self):CODE
LOW⚡tests/test_torch_utils.py189 def test_forward_then_reverse_is_identity(self):CODE
LOWtests/test_torch_utils.py206 def test_forward_produces_correct_normalization(self):CODE
LOWtests/test_torch_utils.py217 def test_reverse_produces_correct_denormalization(self):CODE
LOWtests/test_torch_utils.py228 def test_zero_sigma_does_not_produce_nan(self):CODE
LOWtests/test_torch_utils.py244 def test_near_zero_sigma_guarded_by_tolerance(self):CODE
LOWtests/test_torch_utils.py289 def test_negative_values_handled_correctly(self):CODE
LOWtests/test_torch_utils.py325 def test_key_value_shape_consistency(self):CODE
LOWtests/test_model_loading.py28 def test_torch_load_checkpoint_and_from_pretrained_local(self):CODE
LOWtests/test_model_loading.py63 def test_torch_compile_wraps_forward(self):CODE
LOWtests/test_model_loading.py77 def test_torch_no_compile_leaves_forward_unchanged(self):CODE
LOWtests/test_model_loading.py90 def test_flax_model_init_kwargs(self):CODE
LOW⚡tests/test_base_utils.py40 def test_no_nans_returns_unchanged(self):CODE
LOW⚡tests/test_base_utils.py46 def test_strips_leading_nans_only(self):CODE
LOW⚡tests/test_base_utils.py59 def test_no_leading_nan_with_internal_nans(self):CODE
LOW⚡tests/test_base_utils.py66 def test_single_valid_element(self):CODE
LOW⚡tests/test_base_utils.py72 def test_all_nans_returns_full_array(self):CODE
LOW⚡tests/test_base_utils.py102 def test_no_nans_returns_identical(self):CODE
LOW⚡tests/test_base_utils.py108 def test_interpolates_single_interior_nan(self):CODE
LOW⚡tests/test_base_utils.py114 def test_interpolates_multiple_interior_nans(self):CODE
LOW⚡tests/test_base_utils.py120 def test_extrapolates_trailing_nans(self):CODE
LOW⚡tests/test_base_utils.py128 def test_extrapolates_leading_nans(self):CODE
LOW⚡tests/test_base_utils.py144 def test_preserves_non_nan_values(self):CODE
LOW⚡tests/test_base_utils.py154 def test_interpolation_is_monotone_for_monotone_input(self):CODE
LOW⚡tests/test_base_utils.py163 def test_single_non_nan_fills_all_gaps(self):CODE
LOWtests/test_torch_layers.py66 def test_residual_connection_nonzero(self):CODE
LOWtests/test_torch_layers.py93 def test_all_activations_produce_valid_output(self, activation):CODE
LOWtests/test_torch_layers.py108 def test_invalid_activation_raises(self):CODE
LOWtests/test_torch_layers.py121 def test_gradient_flows_through_both_paths(self):CODE
LOW⚡tests/test_torch_layers.py153 def test_output_shape_preserved(self):CODE
LOW⚡tests/test_torch_layers.py160 def test_zero_scale_produces_zeros(self):CODE
LOWtests/test_torch_layers.py173 def test_unit_scale_preserves_rms_magnitude(self):CODE
72 more matches not shown…
Over-Commented Block92 hits · 92 pts
SeverityFileLineSnippetContext
LOWrequirements.txt1# This file was autogenerated by uv via the following command:COMMENT
LOWrequirements.txt21httpx==0.28.1COMMENT
LOWrequirements.txt41tqdm==4.67.1COMMENT
LOWv1/README.md221COMMENT
LOWv1/experiments/extended_benchmarks/utils.py1# Copyright 2024 Google LLCCOMMENT
LOWv1/experiments/extended_benchmarks/run_timesfm.py1# Copyright 2024 Google LLCCOMMENT
LOWv1/experiments/extended_benchmarks/run_timegpt.py1# Copyright 2024 Google LLCCOMMENT
LOWv1/experiments/baselines/__init__.py1# Copyright 2024 Google LLCCOMMENT
LOWv1/experiments/baselines/timegpt_pipeline.py1# Copyright 2024 Google LLCCOMMENT
LOWv1/experiments/long_horizon_benchmarks/run_eval.py1# Copyright 2024 The Google Research Authors.COMMENT
LOWv1/tests/test_timesfm.py1# Copyright 2024 The Google Research Authors.COMMENT
LOWv1/peft/finetune.py1# Copyright 2024 The Google Research Authors.COMMENT
LOWv1/src/timesfm/patched_decoder.py1# Copyright 2024 Google LLCCOMMENT
LOWv1/src/timesfm/timesfm_torch.py1# Copyright 2024 Google LLCCOMMENT
LOWv1/src/timesfm/xreg_lib.py1# Copyright 2024 Google LLCCOMMENT
LOWv1/src/timesfm/timesfm_jax.py1# Copyright 2024 Google LLCCOMMENT
LOWv1/src/timesfm/data_loader.py1# Copyright 2024 The Google Research Authors.COMMENT
LOWv1/src/timesfm/pytorch_patched_decoder.py1# Copyright 2024 Google LLCCOMMENT
LOWv1/src/timesfm/time_features.py1# Copyright 2024 The Google Research Authors.COMMENT
LOWv1/src/timesfm/__init__.py1# Copyright 2024 Google LLCCOMMENT
LOWv1/src/timesfm/timesfm_base.py1# Copyright 2024 Google LLCCOMMENT
LOWv1/src/adapter/dora_layers.py1# Copyright 2024 The Google Research Authors.COMMENT
LOWv1/src/adapter/__init__.py1# Copyright 2024 Google LLCCOMMENT
LOWv1/src/adapter/lora_layers.py1# Copyright 2024 The Google Research Authors.COMMENT
LOWv1/src/adapter/utils.py1# Copyright 2024 The Google Research Authors.COMMENT
LOWtests/test_configs.py1# Copyright 2025 Google LLCCOMMENT
LOWtests/test_force_flip_invariance.py1# Copyright 2025 Google LLCCOMMENT
LOWtests/test_torch_utils.py1# Copyright 2025 Google LLCCOMMENT
LOWtests/test_model_loading.py1# Copyright 2025 Google LLCCOMMENT
LOWtests/test_base_utils.py1# Copyright 2025 Google LLCCOMMENT
LOWtests/test_torch_layers.py1# Copyright 2025 Google LLCCOMMENT
LOW…forecasting/examples/global-temperature/run_example.sh1#!/bin/bashCOMMENT
LOW…mesfm3-usage/benchmarks/gift_eval/evaluate_all_gift.py1# Copyright 2026 Google LLCCOMMENT
LOWtimesfm3-usage/benchmarks/time_bench/run_time_bench.py1# Copyright 2026 Google LLCCOMMENT
LOWtimesfm3-usage/benchmarks/fev_bench/run_fev_bench.py1# Copyright 2026 Google LLCCOMMENT
LOWsrc/timesfm/configs.py1# Copyright 2025 Google LLCCOMMENT
LOWsrc/timesfm/__init__.py1# Copyright 2025 Google LLCCOMMENT
LOWsrc/timesfm/timesfm_2p5/timesfm_2p5_torch.py1# Copyright 2025 Google LLCCOMMENT
LOWsrc/timesfm/timesfm_2p5/timesfm_2p5_flax.py1# Copyright 2025 Google LLCCOMMENT
LOWsrc/timesfm/timesfm_2p5/timesfm_2p5_base.py1# Copyright 2025 Google LLCCOMMENT
LOWsrc/timesfm/torch/dense.py1# Copyright 2025 Google LLCCOMMENT
LOWsrc/timesfm/torch/util.py1# Copyright 2025 Google LLCCOMMENT
LOWsrc/timesfm/torch/__init__.py1# Copyright 2025 Google LLCCOMMENT
LOWsrc/timesfm/torch/transformer.py1# Copyright 2025 Google LLCCOMMENT
LOWsrc/timesfm/torch/normalization.py1# Copyright 2025 Google LLCCOMMENT
LOWsrc/timesfm/utils/xreg_lib.py1# Copyright 2025 Google LLCCOMMENT
LOWsrc/timesfm/flax/dense.py1# Copyright 2025 Google LLCCOMMENT
LOWsrc/timesfm/flax/util.py1# Copyright 2025 Google LLCCOMMENT
LOWsrc/timesfm/flax/__init__.py1# Copyright 2025 Google LLCCOMMENT
LOWsrc/timesfm/flax/transformer.py1# Copyright 2025 Google LLCCOMMENT
LOWsrc/timesfm/flax/normalization.py1# Copyright 2025 Google LLCCOMMENT
LOWsrc/timesfm3/configs.py1# Copyright 2026 Google LLCCOMMENT
LOWsrc/timesfm3/transformations.py1# Copyright 2026 Google LLCCOMMENT
LOWsrc/timesfm3/dense.py1# Copyright 2026 Google LLCCOMMENT
LOWsrc/timesfm3/util.py1# Copyright 2026 Google LLCCOMMENT
LOWsrc/timesfm3/backward_compat_test.py1# Copyright 2026 Google LLCCOMMENT
LOWsrc/timesfm3/timesfm3_forecaster.py1# Copyright 2026 Google LLCCOMMENT
LOWsrc/timesfm3/__init__.py1# Copyright 2026 Google LLCCOMMENT
LOWsrc/timesfm3/model.py1# Copyright 2026 Google LLCCOMMENT
LOWsrc/timesfm3/transformer.py1# Copyright 2026 Google LLCCOMMENT
32 more matches not shown…
Unused Imports84 hits · 84 pts
SeverityFileLineSnippetContext
LOWv1/experiments/extended_benchmarks/run_timegpt.py19CODE
LOWv1/experiments/baselines/timegpt_pipeline.py18CODE
LOWv1/src/timesfm/__init__.py19CODE
LOWv1/src/timesfm/__init__.py19CODE
LOWv1/src/timesfm/__init__.py19CODE
LOWv1/src/timesfm/__init__.py19CODE
LOWv1/src/timesfm/__init__.py28CODE
LOWv1/src/timesfm/__init__.py29CODE
LOWv1/src/timesfm/__init__.py33CODE
LOWv1/src/adapter/__init__.py17CODE
LOWv1/src/adapter/__init__.py17CODE
LOWv1/src/adapter/__init__.py17CODE
LOWv1/src/adapter/__init__.py18CODE
LOWv1/src/adapter/__init__.py18CODE
LOWv1/src/adapter/__init__.py18CODE
LOWv1/src/finetuning/finetuning_example.py12CODE
LOWv1/src/finetuning/finetuning_example.py17CODE
LOW…ing/examples/covariates-forecasting/demo_covariates.py28CODE
LOW…casting/examples/anomaly-detection/detect_anomalies.py17CODE
LOW…orecasting/examples/global-temperature/run_forecast.py7CODE
LOW…recasting/examples/global-temperature/generate_html.py9CODE
LOW…ting/examples/global-temperature/visualize_forecast.py14CODE
LOW…examples/global-temperature/generate_animation_data.py11CODE
LOW…orecasting/examples/global-temperature/generate_gif.py8CODE
LOWtimesfm-forecasting/scripts/forecast_csv.py21CODE
LOWtimesfm-forecasting/scripts/check_system.py16CODE
LOWtimesfm-forecasting/scripts/check_system.py28CODE
LOW…mesfm3-usage/benchmarks/gift_eval/evaluate_all_gift.py23CODE
LOW…mesfm3-usage/benchmarks/gift_eval/evaluate_all_gift.py104CODE
LOWtimesfm3-usage/benchmarks/time_bench/run_time_bench.py17CODE
LOWtimesfm3-usage/benchmarks/time_bench/run_time_bench.py18CODE
LOWtimesfm3-usage/benchmarks/time_bench/run_time_bench.py19CODE
LOWtimesfm3-usage/benchmarks/fev_bench/run_fev_bench.py17CODE
LOWtimesfm3-usage/benchmarks/fev_bench/run_fev_bench.py18CODE
LOWtimesfm3-usage/benchmarks/fev_bench/run_fev_bench.py19CODE
LOWsrc/timesfm/__init__.py17CODE
LOWsrc/timesfm/__init__.py32CODE
LOWsrc/timesfm/__init__.py32CODE
LOWsrc/timesfm3/configs.py22CODE
LOWsrc/timesfm3/transformations.py22CODE
LOWsrc/timesfm3/dense.py22CODE
LOWsrc/timesfm3/util.py22CODE
LOWsrc/timesfm3/backward_compat_test.py26CODE
LOWsrc/timesfm3/timesfm3_forecaster.py22CODE
LOWsrc/timesfm3/model.py22CODE
LOWsrc/timesfm3/transformer.py22CODE
LOWsrc/timesfm3/cpm_revin_refine.py22CODE
LOWsrc/timesfm3/normalization.py22CODE
LOWsrc/timesfm3/evaluator.py22CODE
LOWsrc/timesfm3/torch/transformations.py21CODE
LOWsrc/timesfm3/torch/dense.py17CODE
LOWsrc/timesfm3/torch/util.py17CODE
LOWsrc/timesfm3/torch/timesfm3_forecaster.py17CODE
LOWsrc/timesfm3/torch/__init__.py17CODE
LOWsrc/timesfm3/torch/__init__.py17CODE
LOWsrc/timesfm3/torch/__init__.py17CODE
LOWsrc/timesfm3/torch/__init__.py18CODE
LOWsrc/timesfm3/torch/__init__.py19CODE
LOWsrc/timesfm3/torch/__init__.py20CODE
LOWsrc/timesfm3/torch/__init__.py20CODE
24 more matches not shown…
Empty Error Handlers8 hits · 40 pts
SeverityFileLineSnippetContext
HIGHtimesfm-forecasting/scripts/forecast_csv.py164except Exception:CODE
HIGHtimesfm-forecasting/scripts/check_system.py167except Exception:CODE
HIGHtimesfm-forecasting/scripts/check_system.py218except Exception:CODE
HIGH…mesfm3-usage/benchmarks/gift_eval/evaluate_all_gift.py283except Exception:CODE
HIGHsrc/timesfm/__init__.py22except ImportError:CODE
HIGHsrc/timesfm/__init__.py28except ImportError:CODE
HIGHsrc/timesfm/__init__.py33except ImportError:CODE
HIGHsrc/timesfm/timesfm_2p5/timesfm_2p5_torch.py333except Exception:CODE
Deep Nesting20 hits · 20 pts
SeverityFileLineSnippetContext
LOWv1/experiments/extended_benchmarks/utils.py104CODE
LOWv1/src/timesfm/xreg_lib.py193CODE
LOWv1/src/timesfm/xreg_lib.py392CODE
LOWv1/src/timesfm/timesfm_base.py53CODE
LOWv1/src/timesfm/timesfm_base.py347CODE
LOWv1/src/adapter/utils.py43CODE
LOWv1/src/adapter/utils.py200CODE
LOWv1/src/adapter/utils.py281CODE
LOWv1/src/adapter/utils.py417CODE
LOWtimesfm-forecasting/scripts/forecast_csv.py144CODE
LOWtimesfm-forecasting/scripts/check_system.py127CODE
LOWtimesfm-forecasting/scripts/check_system.py174CODE
LOWtimesfm-forecasting/scripts/check_system.py384CODE
LOW…mesfm3-usage/benchmarks/gift_eval/evaluate_all_gift.py236CODE
LOWsrc/timesfm/utils/xreg_lib.py210CODE
LOWsrc/timesfm3/torch/timesfm3_forecaster.py136CODE
LOWsrc/timesfm3/torch/timesfm3_forecaster.py465CODE
LOWsrc/timesfm3/torch/evaluator.py46CODE
LOWsrc/timesfm3/mlx/timesfm3_forecaster.py168CODE
LOWsrc/timesfm3/mlx/timesfm3_forecaster.py233CODE
Docstring Block Structure4 hits · 20 pts
SeverityFileLineSnippetContext
HIGHv1/src/timesfm/timesfm_torch.py80Forecasts on a list of time series. Args: inputs: list of time series forecast contexts. Each context time seSTRING
HIGHv1/src/timesfm/timesfm_jax.py247Forecasts on a list of time series. Args: inputs: list of time series forecast contexts. Each context time seSTRING
HIGHv1/src/timesfm/timesfm_base.py322Forecasts on a list of time series. Args: inputs: list of time series forecast contexts. Each context time seSTRING
HIGHv1/src/timesfm/timesfm_base.py356Forecasts on a list of time series. Args: inputs: list of time series forecast contexts. Each context time seSTRING
AI Structural Patterns18 hits · 18 pts
SeverityFileLineSnippetContext
LOWv1/experiments/extended_benchmarks/utils.py56CODE
LOWv1/peft/finetune.py63CODE
LOWv1/src/timesfm/xreg_lib.py392CODE
LOWv1/src/timesfm/timesfm_base.py429CODE
LOWsrc/timesfm/timesfm_2p5/timesfm_2p5_flax.py466CODE
LOWsrc/timesfm/timesfm_2p5/timesfm_2p5_base.py198CODE
LOWsrc/timesfm/torch/transformer.py151CODE
LOWsrc/timesfm/utils/xreg_lib.py414CODE
LOWsrc/timesfm3/torch/timesfm3_forecaster.py433CODE
LOWsrc/timesfm3/torch/timesfm3_forecaster.py465CODE
LOWsrc/timesfm3/torch/model.py59CODE
LOWsrc/timesfm3/torch/model.py364CODE
LOWsrc/timesfm3/torch/transformer.py159CODE
LOWsrc/timesfm3/torch/evaluator.py46CODE
LOWsrc/timesfm3/mlx/timesfm3_forecaster.py136CODE
LOWsrc/timesfm3/mlx/timesfm3_forecaster.py168CODE
LOWsrc/timesfm3/mlx/model_parity_test.py67CODE
LOWsrc/timesfm3/mlx/model_parity_test.py127CODE
Self-Referential Comments6 hits · 17 pts
SeverityFileLineSnippetContext
MEDIUMv1/experiments/extended_benchmarks/utils.py155 with multiprocessing.Pool(os.cpu_count()) as pool: # Create a process poolCODE
MEDIUMv1/src/timesfm/patched_decoder.py68 # Create a range array for indexingCOMMENT
MEDIUMv1/src/timesfm/patched_decoder.py185 # Create a mask where P is 0COMMENT
MEDIUMv1/src/timesfm/pytorch_patched_decoder.py92 # Create a mask where padding is 0COMMENT
MEDIUMsrc/timesfm/timesfm_2p5/timesfm_2p5_torch.py356 # Create an instance of the model wrapper class.COMMENT
MEDIUMsrc/timesfm/timesfm_2p5/timesfm_2p5_flax.py481 # Create an instance of the model wrapper class.COMMENT
Excessive Try-Catch Wrapping14 hits · 16 pts
SeverityFileLineSnippetContext
LOWv1/src/timesfm/__init__.py32except Exception as _:CODE
LOWv1/src/finetuning/finetuning_example.py327 except Exception as e:CODE
MEDIUMv1/src/finetuning/finetuning_example.py328 print(f"Error in process {rank}: {str(e)}")CODE
LOWv1/src/finetuning/finetuning_example.py395 except Exception as e:CODE
LOWtimesfm-forecasting/scripts/forecast_csv.py164 except Exception:CODE
LOWtimesfm-forecasting/scripts/check_system.py167 except Exception:CODE
LOWtimesfm-forecasting/scripts/check_system.py218 except Exception:CODE
LOW…mesfm3-usage/benchmarks/gift_eval/evaluate_all_gift.py283 except Exception:CODE
LOW…mesfm3-usage/benchmarks/gift_eval/evaluate_all_gift.py388 except Exception as e:CODE
LOWtimesfm3-usage/benchmarks/time_bench/run_time_bench.py39 except Exception as e:CODE
LOWtimesfm3-usage/benchmarks/fev_bench/run_fev_bench.py39 except Exception as e:CODE
LOWsrc/timesfm/timesfm_2p5/timesfm_2p5_torch.py333 except Exception:CODE
LOWsrc/timesfm3/mlx/timesfm3_forecaster_test.py62 except Exception:CODE
MEDIUMsrc/timesfm3/mlx/timesfm3_forecaster_test.py42def _weights_cached() -> bool:CODE
Structural Annotation Overuse8 hits · 16 pts
SeverityFileLineSnippetContext
LOWtimesfm-forecasting/SKILL.md143### Step 1: Verify System (always first)COMMENT
LOWtimesfm-forecasting/SKILL.md149### Step 2: Install TimesFMCOMMENT
LOWtimesfm-forecasting/SKILL.md162### Step 3: Install PyTorch for Your HardwareCOMMENT
LOW⚡…forecasting/examples/global-temperature/run_example.sh26# Step 1: Preflight checkCOMMENT
LOW⚡…forecasting/examples/global-temperature/run_example.sh34# Step 2: Run forecastCOMMENT
LOW⚡…forecasting/examples/global-temperature/run_example.sh40# Step 3: Generate visualizationCOMMENT
LOW⚡src/timesfm3/torch/evaluator.py161 # Step 2: Compute how many target slots fit per forward pass.COMMENT
LOW⚡src/timesfm3/torch/evaluator.py168 # Step 3: Process each target chunk, concatenate along variate axis.COMMENT
Cross-File Repetition3 hits · 15 pts
SeverityFileLineSnippetContext
HIGHv1/src/timesfm/timesfm_torch.py0forecasts on a list of time series. args: inputs: list of time series forecast contexts. each context time series shouldSTRING
HIGHv1/src/timesfm/timesfm_jax.py0forecasts on a list of time series. args: inputs: list of time series forecast contexts. each context time series shouldSTRING
HIGHv1/src/timesfm/timesfm_base.py0forecasts on a list of time series. args: inputs: list of time series forecast contexts. each context time series shouldSTRING
Verbosity Indicators5 hits · 11 pts
SeverityFileLineSnippetContext
LOW⚡…forecasting/examples/global-temperature/run_example.sh26# Step 1: Preflight checkCOMMENT
LOW⚡…forecasting/examples/global-temperature/run_example.sh34# Step 2: Run forecastCOMMENT
LOW⚡…forecasting/examples/global-temperature/run_example.sh40# Step 3: Generate visualizationCOMMENT
LOW⚡src/timesfm3/torch/evaluator.py161 # Step 2: Compute how many target slots fit per forward pass.COMMENT
LOW⚡src/timesfm3/torch/evaluator.py168 # Step 3: Process each target chunk, concatenate along variate axis.COMMENT
Redundant / Tautological Comments3 hits · 4 pts
SeverityFileLineSnippetContext
LOWv1/src/timesfm/timesfm_base.py109 if not np.any(nans): # Check if there are any NaNsCODE
LOW⚡timesfm-forecasting/scripts/check_system.py388 # Check if GPU is availableCOMMENT
LOWsrc/timesfm/timesfm_2p5/timesfm_2p5_base.py63 if not np.any(nans): # Check if there are any NaNsCODE
Modern Structural Boilerplate4 hits · 4 pts
SeverityFileLineSnippetContext
LOW⚡…mesfm-forecasting/examples/finetuning/finetune_lora.py49logger = logging.getLogger(__name__)CODE
LOWsrc/timesfm3/__init__.py37__all__ = [CODE
LOWsrc/timesfm3/torch/dense.py75 def set_input_dims(self, input_dim: int) -> None:CODE
LOWsrc/timesfm3/torch/__init__.py27__all__ = [CODE
Fake / Example Data2 hits · 2 pts
SeverityFileLineSnippetContext
LOWtests/test_model_loading.py51 custom_kwarg="dummy_value",CODE
LOWtests/test_model_loading.py94 custom_kwarg="dummy_value",CODE
Modern AI Meta-Vocabulary1 hit · 2 pts
SeverityFileLineSnippetContext
MEDIUMtimesfm-forecasting/SKILL.md265 max_context=1024, # Max context windowCODE
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippetContext
LOW…forecasting/examples/global-temperature/run_example.sh9# Usage:COMMENT