TimesFM (Time Series Foundation Model) is a pretrained time-series foundation model developed by Google Research for time-series forecasting.
This report presents the forensic synthetic code analysis of google-research/timesfm, a Python project with 26,859 GitHub stars. SynthScan v2.0 examined 30,070 lines of code across 84 source files, recording 296 pattern matches distributed across 18 syntactic categories. The overall adjusted score of 22.7 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 296 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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | tests/test_configs.py | 37 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_configs.py | 39 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_configs.py | 99 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_configs.py | 101 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_configs.py | 131 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_configs.py | 133 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_configs.py | 180 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_configs.py | 182 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_torch_utils.py | 35 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_torch_utils.py | 37 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_torch_utils.py | 181 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_torch_utils.py | 183 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/test_torch_utils.py | 304 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/test_torch_utils.py | 306 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_base_utils.py | 32 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_base_utils.py | 34 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_base_utils.py | 94 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_base_utils.py | 96 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/test_torch_layers.py | 32 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/test_torch_layers.py | 34 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_torch_layers.py | 145 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_torch_layers.py | 147 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_torch_layers.py | 202 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_torch_layers.py | 204 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …casting/examples/anomaly-detection/detect_anomalies.py | 45 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …casting/examples/anomaly-detection/detect_anomalies.py | 47 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …casting/examples/anomaly-detection/detect_anomalies.py | 93 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …casting/examples/anomaly-detection/detect_anomalies.py | 95 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …casting/examples/anomaly-detection/detect_anomalies.py | 167 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …casting/examples/anomaly-detection/detect_anomalies.py | 169 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …casting/examples/anomaly-detection/detect_anomalies.py | 192 | # ----------------------------------------------------------------------- | COMMENT |
| MEDIUM | …casting/examples/anomaly-detection/detect_anomalies.py | 194 | # ----------------------------------------------------------------------- | COMMENT |
| MEDIUM | …casting/examples/anomaly-detection/detect_anomalies.py | 294 | # ----------------------------------------------------------------------- | COMMENT |
| MEDIUM | …casting/examples/anomaly-detection/detect_anomalies.py | 296 | # ----------------------------------------------------------------------- | COMMENT |
| MEDIUM | …casting/examples/anomaly-detection/detect_anomalies.py | 386 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …casting/examples/anomaly-detection/detect_anomalies.py | 388 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | …mesfm-forecasting/examples/finetuning/finetune_lora.py | 52 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | …mesfm-forecasting/examples/finetuning/finetune_lora.py | 54 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | …mesfm-forecasting/examples/finetuning/finetune_lora.py | 183 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | …mesfm-forecasting/examples/finetuning/finetune_lora.py | 185 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | …mesfm-forecasting/examples/finetuning/finetune_lora.py | 194 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | …mesfm-forecasting/examples/finetuning/finetune_lora.py | 196 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | …mesfm-forecasting/examples/finetuning/finetune_lora.py | 206 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | …mesfm-forecasting/examples/finetuning/finetune_lora.py | 208 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | …mesfm-forecasting/examples/finetuning/finetune_lora.py | 237 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | …mesfm-forecasting/examples/finetuning/finetune_lora.py | 239 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | …mesfm-forecasting/examples/finetuning/finetune_lora.py | 247 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | …mesfm-forecasting/examples/finetuning/finetune_lora.py | 249 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM | …mesfm-forecasting/examples/finetuning/finetune_lora.py | 139 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …mesfm-forecasting/examples/finetuning/finetune_lora.py | 141 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …mesfm-forecasting/examples/finetuning/finetune_lora.py | 219 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM | …mesfm-forecasting/examples/finetuning/finetune_lora.py | 221 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM | …mesfm-forecasting/examples/finetuning/finetune_lora.py | 313 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …mesfm-forecasting/examples/finetuning/finetune_lora.py | 315 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …mesfm-forecasting/examples/finetuning/finetune_lora.py | 399 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …mesfm-forecasting/examples/finetuning/finetune_lora.py | 401 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | timesfm-forecasting/scripts/check_system.py | 31 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | timesfm-forecasting/scripts/check_system.py | 33 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | timesfm-forecasting/scripts/check_system.py | 69 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | timesfm-forecasting/scripts/check_system.py | 71 | # --------------------------------------------------------------------------- | COMMENT |
| 6 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH⚡ | …recasting/examples/global-temperature/generate_html.py | 403 | ...Array(nActual).fill(null), | CODE |
| HIGH⚡ | …recasting/examples/global-temperature/generate_html.py | 411 | dataUsed.push(step.historical_values[i]); | CODE |
| HIGH⚡ | …recasting/examples/global-temperature/generate_html.py | 413 | dataUsed.push(null); | CODE |
| HIGH⚡ | …recasting/examples/global-temperature/generate_html.py | 413 | dataUsed.push(null); | CODE |
| HIGH⚡ | …recasting/examples/global-temperature/generate_html.py | 427 | if (forecastIdx >= 0 && forecastIdx < nForecast) {{ | CODE |
| HIGH⚡ | …recasting/examples/global-temperature/generate_html.py | 428 | q90Lower.push(step.q10[forecastIdx]); | CODE |
| HIGH⚡ | …recasting/examples/global-temperature/generate_html.py | 429 | q90Upper.push(step.q90[forecastIdx]); | CODE |
| HIGH⚡ | …recasting/examples/global-temperature/generate_html.py | 430 | q80Lower.push(step.q20[forecastIdx]); | CODE |
| HIGH⚡ | …recasting/examples/global-temperature/generate_html.py | 431 | q80Upper.push(step.q80[forecastIdx]); | CODE |
| HIGH⚡ | …recasting/examples/global-temperature/generate_html.py | 433 | q90Lower.push(null); | CODE |
| HIGH⚡ | …recasting/examples/global-temperature/generate_html.py | 433 | q90Lower.push(null); | CODE |
| HIGH⚡ | …recasting/examples/global-temperature/generate_html.py | 434 | q90Upper.push(null); | CODE |
| HIGH⚡ | …recasting/examples/global-temperature/generate_html.py | 434 | q90Upper.push(null); | CODE |
| HIGH⚡ | …recasting/examples/global-temperature/generate_html.py | 435 | q80Lower.push(null); | CODE |
| HIGH⚡ | …recasting/examples/global-temperature/generate_html.py | 435 | q80Lower.push(null); | CODE |
| HIGH⚡ | …recasting/examples/global-temperature/generate_html.py | 436 | q80Upper.push(null); | CODE |
| HIGH⚡ | …recasting/examples/global-temperature/generate_html.py | 436 | q80Upper.push(null); | CODE |
| HIGH⚡ | …recasting/examples/global-temperature/generate_html.py | 448 | if (forecastIdx >= 0 && forecastIdx < nForecast) {{ | CODE |
| HIGH⚡ | …recasting/examples/global-temperature/generate_html.py | 449 | forecastData.push(step.point_forecast[forecastIdx]); | CODE |
| HIGH⚡ | …recasting/examples/global-temperature/generate_html.py | 451 | forecastData.push(null); | CODE |
| HIGH⚡ | …recasting/examples/global-temperature/generate_html.py | 451 | forecastData.push(null); | CODE |
| HIGH | …recasting/examples/global-temperature/generate_html.py | 227 | let chart = null; | CODE |
| HIGH | …recasting/examples/global-temperature/generate_html.py | 229 | let playInterval = null; | CODE |
| HIGH | …recasting/examples/global-temperature/generate_html.py | 275 | data: [...Array(animationData.actual_data.dates.length).fill(null), ...finalStep.point_forec | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | v1/experiments/extended_benchmarks/utils.py | 124 | def _transform_quantiles_to_levels(quantiles: List[float]) -> List[int]: | CODE |
| LOW⚡ | v1/experiments/extended_benchmarks/utils.py | 132 | def _create_dir_if_not_exists(directory: str): | CODE |
| LOW⚡ | v1/experiments/extended_benchmarks/utils.py | 136 | def _transform_gluonts_instance_to_df( | CODE |
| LOW | v1/experiments/extended_benchmarks/utils.py | 151 | def _transform_gluonts_dataset_to_df( | CODE |
| LOW | v1/experiments/extended_benchmarks/utils.py | 193 | def fcst_from_level_to_quantiles( | CODE |
| LOW | v1/experiments/extended_benchmarks/utils.py | 232 | def evaluate_from_predictions( | CODE |
| LOW | v1/experiments/baselines/timegpt_pipeline.py | 37 | def maybe_convert_col_to_datetime( | CODE |
| LOW | v1/tests/test_data_loader.py | 9 | def test_train_gen_respects_batch_size_when_permute_is_false(tmp_path: Path) -> None: | CODE |
| LOW | v1/tests/test_timesfm.py | 48 | def test_timesfm_forecast_on_df( | CODE |
| LOW | v1/src/timesfm/pytorch_patched_decoder.py | 146 | def get_large_negative_number(dtype: torch.dtype) -> torch.Tensor: | CODE |
| LOW | v1/src/adapter/utils.py | 281 | def _get_adapter_weight_params( | CODE |
| LOW | v1/src/adapter/utils.py | 417 | def _initialize_adapter_params( | CODE |
| LOW⚡ | tests/test_configs.py | 45 | def test_defaults_match_safe_inference_settings(self): | CODE |
| LOW | tests/test_configs.py | 63 | def test_frozen_prevents_mutation(self): | CODE |
| LOW | tests/test_configs.py | 73 | def test_replace_creates_independent_copy(self): | CODE |
| LOW⚡ | tests/test_configs.py | 86 | def test_equality_is_structural(self): | CODE |
| LOW⚡ | tests/test_configs.py | 92 | def test_inequality_on_any_field_difference(self): | CODE |
| LOW⚡ | tests/test_configs.py | 107 | def test_frozen_prevents_mutation(self): | CODE |
| LOW | tests/test_configs.py | 118 | def test_activation_accepts_all_valid_literals(self): | CODE |
| LOW⚡ | tests/test_configs.py | 139 | def test_model_dims_must_be_divisible_by_num_heads(self): | CODE |
| LOW | tests/test_configs.py | 160 | def test_stacked_config_composes_correctly(self): | CODE |
| LOW⚡ | tests/test_configs.py | 188 | def test_frozen_prevents_mutation(self): | CODE |
| LOW | tests/test_force_flip_invariance.py | 32 | def test_flip_invariance_holds_in_autoregressive_region(self): | CODE |
| LOW⚡ | tests/test_torch_utils.py | 43 | def test_single_batch_matches_numpy(self): | CODE |
| LOW | tests/test_torch_utils.py | 66 | def test_incremental_accumulation_matches_full_computation(self): | CODE |
| LOW | tests/test_torch_utils.py | 99 | def test_masked_elements_excluded_from_statistics(self): | CODE |
| LOW | tests/test_torch_utils.py | 119 | def test_all_masked_yields_zero_stats(self): | CODE |
| LOW | tests/test_torch_utils.py | 137 | def test_batched_computation_independent(self): | CODE |
| LOW | tests/test_torch_utils.py | 163 | def test_constant_input_yields_zero_sigma(self): | CODE |
| LOW⚡ | tests/test_torch_utils.py | 189 | def test_forward_then_reverse_is_identity(self): | CODE |
| LOW | tests/test_torch_utils.py | 206 | def test_forward_produces_correct_normalization(self): | CODE |
| LOW | tests/test_torch_utils.py | 217 | def test_reverse_produces_correct_denormalization(self): | CODE |
| LOW | tests/test_torch_utils.py | 228 | def test_zero_sigma_does_not_produce_nan(self): | CODE |
| LOW | tests/test_torch_utils.py | 244 | def test_near_zero_sigma_guarded_by_tolerance(self): | CODE |
| LOW | tests/test_torch_utils.py | 289 | def test_negative_values_handled_correctly(self): | CODE |
| LOW | tests/test_torch_utils.py | 325 | def test_key_value_shape_consistency(self): | CODE |
| LOW | tests/test_model_loading.py | 28 | def test_torch_load_checkpoint_and_from_pretrained_local(self): | CODE |
| LOW | tests/test_model_loading.py | 63 | def test_torch_compile_wraps_forward(self): | CODE |
| LOW | tests/test_model_loading.py | 77 | def test_torch_no_compile_leaves_forward_unchanged(self): | CODE |
| LOW | tests/test_model_loading.py | 90 | def test_flax_model_init_kwargs(self): | CODE |
| LOW⚡ | tests/test_base_utils.py | 40 | def test_no_nans_returns_unchanged(self): | CODE |
| LOW⚡ | tests/test_base_utils.py | 46 | def test_strips_leading_nans_only(self): | CODE |
| LOW⚡ | tests/test_base_utils.py | 59 | def test_no_leading_nan_with_internal_nans(self): | CODE |
| LOW⚡ | tests/test_base_utils.py | 66 | def test_single_valid_element(self): | CODE |
| LOW⚡ | tests/test_base_utils.py | 72 | def test_all_nans_returns_full_array(self): | CODE |
| LOW⚡ | tests/test_base_utils.py | 102 | def test_no_nans_returns_identical(self): | CODE |
| LOW⚡ | tests/test_base_utils.py | 108 | def test_interpolates_single_interior_nan(self): | CODE |
| LOW⚡ | tests/test_base_utils.py | 114 | def test_interpolates_multiple_interior_nans(self): | CODE |
| LOW⚡ | tests/test_base_utils.py | 120 | def test_extrapolates_trailing_nans(self): | CODE |
| LOW⚡ | tests/test_base_utils.py | 128 | def test_extrapolates_leading_nans(self): | CODE |
| LOW⚡ | tests/test_base_utils.py | 144 | def test_preserves_non_nan_values(self): | CODE |
| LOW⚡ | tests/test_base_utils.py | 154 | def test_interpolation_is_monotone_for_monotone_input(self): | CODE |
| LOW⚡ | tests/test_base_utils.py | 163 | def test_single_non_nan_fills_all_gaps(self): | CODE |
| LOW | tests/test_torch_layers.py | 66 | def test_residual_connection_nonzero(self): | CODE |
| LOW | tests/test_torch_layers.py | 93 | def test_all_activations_produce_valid_output(self, activation): | CODE |
| LOW | tests/test_torch_layers.py | 108 | def test_invalid_activation_raises(self): | CODE |
| LOW | tests/test_torch_layers.py | 121 | def test_gradient_flows_through_both_paths(self): | CODE |
| LOW⚡ | tests/test_torch_layers.py | 153 | def test_output_shape_preserved(self): | CODE |
| LOW⚡ | tests/test_torch_layers.py | 160 | def test_zero_scale_produces_zeros(self): | CODE |
| LOW | tests/test_torch_layers.py | 173 | def test_unit_scale_preserves_rms_magnitude(self): | CODE |
| 9 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | requirements.txt | 1 | # This file was autogenerated by uv via the following command: | COMMENT |
| LOW | requirements.txt | 21 | httpx==0.28.1 | COMMENT |
| LOW | requirements.txt | 41 | tqdm==4.67.1 | COMMENT |
| LOW | v1/README.md | 221 | COMMENT | |
| LOW | v1/experiments/extended_benchmarks/utils.py | 1 | # Copyright 2024 Google LLC | COMMENT |
| LOW | v1/experiments/extended_benchmarks/run_timesfm.py | 1 | # Copyright 2024 Google LLC | COMMENT |
| LOW | v1/experiments/extended_benchmarks/run_timegpt.py | 1 | # Copyright 2024 Google LLC | COMMENT |
| LOW | v1/experiments/baselines/__init__.py | 1 | # Copyright 2024 Google LLC | COMMENT |
| LOW | v1/experiments/baselines/timegpt_pipeline.py | 1 | # Copyright 2024 Google LLC | COMMENT |
| LOW | v1/experiments/long_horizon_benchmarks/run_eval.py | 1 | # Copyright 2024 The Google Research Authors. | COMMENT |
| LOW | v1/tests/test_timesfm.py | 1 | # Copyright 2024 The Google Research Authors. | COMMENT |
| LOW | v1/peft/finetune.py | 1 | # Copyright 2024 The Google Research Authors. | COMMENT |
| LOW | v1/src/timesfm/patched_decoder.py | 1 | # Copyright 2024 Google LLC | COMMENT |
| LOW | v1/src/timesfm/timesfm_torch.py | 1 | # Copyright 2024 Google LLC | COMMENT |
| LOW | v1/src/timesfm/xreg_lib.py | 1 | # Copyright 2024 Google LLC | COMMENT |
| LOW | v1/src/timesfm/timesfm_jax.py | 1 | # Copyright 2024 Google LLC | COMMENT |
| LOW | v1/src/timesfm/data_loader.py | 1 | # Copyright 2024 The Google Research Authors. | COMMENT |
| LOW | v1/src/timesfm/pytorch_patched_decoder.py | 1 | # Copyright 2024 Google LLC | COMMENT |
| LOW | v1/src/timesfm/time_features.py | 1 | # Copyright 2024 The Google Research Authors. | COMMENT |
| LOW | v1/src/timesfm/__init__.py | 1 | # Copyright 2024 Google LLC | COMMENT |
| LOW | v1/src/timesfm/timesfm_base.py | 1 | # Copyright 2024 Google LLC | COMMENT |
| LOW | v1/src/adapter/dora_layers.py | 1 | # Copyright 2024 The Google Research Authors. | COMMENT |
| LOW | v1/src/adapter/__init__.py | 1 | # Copyright 2024 Google LLC | COMMENT |
| LOW | v1/src/adapter/lora_layers.py | 1 | # Copyright 2024 The Google Research Authors. | COMMENT |
| LOW | v1/src/adapter/utils.py | 1 | # Copyright 2024 The Google Research Authors. | COMMENT |
| LOW | tests/test_configs.py | 1 | # Copyright 2025 Google LLC | COMMENT |
| LOW | tests/test_force_flip_invariance.py | 1 | # Copyright 2025 Google LLC | COMMENT |
| LOW | tests/test_torch_utils.py | 1 | # Copyright 2025 Google LLC | COMMENT |
| LOW | tests/test_model_loading.py | 1 | # Copyright 2025 Google LLC | COMMENT |
| LOW | tests/test_base_utils.py | 1 | # Copyright 2025 Google LLC | COMMENT |
| LOW | tests/test_torch_layers.py | 1 | # Copyright 2025 Google LLC | COMMENT |
| LOW | …forecasting/examples/global-temperature/run_example.sh | 1 | #!/bin/bash | COMMENT |
| LOW | src/timesfm/configs.py | 1 | # Copyright 2025 Google LLC | COMMENT |
| LOW | src/timesfm/__init__.py | 1 | # Copyright 2025 Google LLC | COMMENT |
| LOW | src/timesfm/timesfm_2p5/timesfm_2p5_torch.py | 1 | # Copyright 2025 Google LLC | COMMENT |
| LOW | src/timesfm/timesfm_2p5/timesfm_2p5_flax.py | 1 | # Copyright 2025 Google LLC | COMMENT |
| LOW | src/timesfm/timesfm_2p5/timesfm_2p5_base.py | 1 | # Copyright 2025 Google LLC | COMMENT |
| LOW | src/timesfm/torch/dense.py | 1 | # Copyright 2025 Google LLC | COMMENT |
| LOW | src/timesfm/torch/util.py | 1 | # Copyright 2025 Google LLC | COMMENT |
| LOW | src/timesfm/torch/__init__.py | 1 | # Copyright 2025 Google LLC | COMMENT |
| LOW | src/timesfm/torch/transformer.py | 1 | # Copyright 2025 Google LLC | COMMENT |
| LOW | src/timesfm/torch/normalization.py | 1 | # Copyright 2025 Google LLC | COMMENT |
| LOW | src/timesfm/utils/xreg_lib.py | 1 | # Copyright 2025 Google LLC | COMMENT |
| LOW | src/timesfm/flax/dense.py | 1 | # Copyright 2025 Google LLC | COMMENT |
| LOW | src/timesfm/flax/util.py | 1 | # Copyright 2025 Google LLC | COMMENT |
| LOW | src/timesfm/flax/__init__.py | 1 | # Copyright 2025 Google LLC | COMMENT |
| LOW | src/timesfm/flax/transformer.py | 1 | # Copyright 2025 Google LLC | COMMENT |
| LOW | src/timesfm/flax/normalization.py | 1 | # Copyright 2025 Google LLC | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | v1/experiments/extended_benchmarks/run_timegpt.py | 19 | CODE | |
| LOW | v1/experiments/baselines/timegpt_pipeline.py | 18 | CODE | |
| LOW | v1/src/timesfm/__init__.py | 19 | CODE | |
| LOW | v1/src/timesfm/__init__.py | 19 | CODE | |
| LOW | v1/src/timesfm/__init__.py | 19 | CODE | |
| LOW | v1/src/timesfm/__init__.py | 19 | CODE | |
| LOW | v1/src/timesfm/__init__.py | 28 | CODE | |
| LOW | v1/src/timesfm/__init__.py | 29 | CODE | |
| LOW | v1/src/timesfm/__init__.py | 33 | CODE | |
| LOW | v1/src/adapter/__init__.py | 17 | CODE | |
| LOW | v1/src/adapter/__init__.py | 17 | CODE | |
| LOW | v1/src/adapter/__init__.py | 17 | CODE | |
| LOW | v1/src/adapter/__init__.py | 18 | CODE | |
| LOW | v1/src/adapter/__init__.py | 18 | CODE | |
| LOW | v1/src/adapter/__init__.py | 18 | CODE | |
| LOW | v1/src/finetuning/finetuning_example.py | 12 | CODE | |
| LOW | v1/src/finetuning/finetuning_example.py | 17 | CODE | |
| LOW | …ing/examples/covariates-forecasting/demo_covariates.py | 28 | CODE | |
| LOW | …casting/examples/anomaly-detection/detect_anomalies.py | 17 | CODE | |
| LOW | …orecasting/examples/global-temperature/run_forecast.py | 7 | CODE | |
| LOW | …recasting/examples/global-temperature/generate_html.py | 9 | CODE | |
| LOW | …ting/examples/global-temperature/visualize_forecast.py | 14 | CODE | |
| LOW | …examples/global-temperature/generate_animation_data.py | 11 | CODE | |
| LOW | …orecasting/examples/global-temperature/generate_gif.py | 8 | CODE | |
| LOW | timesfm-forecasting/scripts/forecast_csv.py | 21 | CODE | |
| LOW | timesfm-forecasting/scripts/check_system.py | 16 | CODE | |
| LOW | timesfm-forecasting/scripts/check_system.py | 28 | CODE | |
| LOW | src/timesfm/__init__.py | 17 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | v1/src/timesfm/timesfm_torch.py | 80 | Forecasts on a list of time series. Args: inputs: list of time series forecast contexts. Each context time se | STRING |
| HIGH | v1/src/timesfm/timesfm_jax.py | 247 | Forecasts on a list of time series. Args: inputs: list of time series forecast contexts. Each context time se | STRING |
| HIGH | v1/src/timesfm/timesfm_base.py | 322 | Forecasts on a list of time series. Args: inputs: list of time series forecast contexts. Each context time se | STRING |
| HIGH | v1/src/timesfm/timesfm_base.py | 356 | Forecasts on a list of time series. Args: inputs: list of time series forecast contexts. Each context time se | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | v1/experiments/extended_benchmarks/utils.py | 155 | with multiprocessing.Pool(os.cpu_count()) as pool: # Create a process pool | CODE |
| MEDIUM | v1/src/timesfm/patched_decoder.py | 68 | # Create a range array for indexing | COMMENT |
| MEDIUM | v1/src/timesfm/patched_decoder.py | 185 | # Create a mask where P is 0 | COMMENT |
| MEDIUM | v1/src/timesfm/pytorch_patched_decoder.py | 92 | # Create a mask where padding is 0 | COMMENT |
| MEDIUM | src/timesfm/timesfm_2p5/timesfm_2p5_torch.py | 356 | # Create an instance of the model wrapper class. | COMMENT |
| MEDIUM | src/timesfm/timesfm_2p5/timesfm_2p5_flax.py | 481 | # Create an instance of the model wrapper class. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | v1/src/timesfm/timesfm_torch.py | 0 | forecasts on a list of time series. args: inputs: list of time series forecast contexts. each context time series should | STRING |
| HIGH | v1/src/timesfm/timesfm_jax.py | 0 | forecasts on a list of time series. args: inputs: list of time series forecast contexts. each context time series should | STRING |
| HIGH | v1/src/timesfm/timesfm_base.py | 0 | forecasts on a list of time series. args: inputs: list of time series forecast contexts. each context time series should | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | v1/experiments/extended_benchmarks/utils.py | 104 | CODE | |
| LOW | v1/src/timesfm/xreg_lib.py | 193 | CODE | |
| LOW | v1/src/timesfm/xreg_lib.py | 392 | CODE | |
| LOW | v1/src/timesfm/timesfm_base.py | 53 | CODE | |
| LOW | v1/src/timesfm/timesfm_base.py | 347 | CODE | |
| LOW | v1/src/adapter/utils.py | 43 | CODE | |
| LOW | v1/src/adapter/utils.py | 200 | CODE | |
| LOW | v1/src/adapter/utils.py | 281 | CODE | |
| LOW | v1/src/adapter/utils.py | 417 | CODE | |
| LOW | timesfm-forecasting/scripts/forecast_csv.py | 144 | CODE | |
| LOW | timesfm-forecasting/scripts/check_system.py | 127 | CODE | |
| LOW | timesfm-forecasting/scripts/check_system.py | 174 | CODE | |
| LOW | timesfm-forecasting/scripts/check_system.py | 384 | CODE | |
| LOW | src/timesfm/utils/xreg_lib.py | 210 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | timesfm-forecasting/SKILL.md | 143 | ### Step 1: Verify System (always first) | COMMENT |
| LOW | timesfm-forecasting/SKILL.md | 149 | ### Step 2: Install TimesFM | COMMENT |
| LOW | timesfm-forecasting/SKILL.md | 162 | ### Step 3: Install PyTorch for Your Hardware | COMMENT |
| LOW⚡ | …forecasting/examples/global-temperature/run_example.sh | 26 | # Step 1: Preflight check | COMMENT |
| LOW⚡ | …forecasting/examples/global-temperature/run_example.sh | 34 | # Step 2: Run forecast | COMMENT |
| LOW⚡ | …forecasting/examples/global-temperature/run_example.sh | 40 | # Step 3: Generate visualization | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | v1/src/timesfm/__init__.py | 32 | except Exception as _: | CODE |
| LOW | v1/src/finetuning/finetuning_example.py | 327 | except Exception as e: | CODE |
| MEDIUM | v1/src/finetuning/finetuning_example.py | 328 | print(f"Error in process {rank}: {str(e)}") | CODE |
| LOW | v1/src/finetuning/finetuning_example.py | 395 | except Exception as e: | CODE |
| LOW | timesfm-forecasting/scripts/forecast_csv.py | 164 | except Exception: | CODE |
| LOW | timesfm-forecasting/scripts/check_system.py | 167 | except Exception: | CODE |
| LOW | timesfm-forecasting/scripts/check_system.py | 218 | except Exception: | CODE |
| LOW | src/timesfm/timesfm_2p5/timesfm_2p5_torch.py | 333 | except Exception: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | v1/experiments/extended_benchmarks/utils.py | 56 | CODE | |
| LOW | v1/peft/finetune.py | 63 | CODE | |
| LOW | v1/src/timesfm/xreg_lib.py | 392 | CODE | |
| LOW | v1/src/timesfm/timesfm_base.py | 429 | CODE | |
| LOW | src/timesfm/timesfm_2p5/timesfm_2p5_flax.py | 466 | CODE | |
| LOW | src/timesfm/timesfm_2p5/timesfm_2p5_base.py | 198 | CODE | |
| LOW | src/timesfm/torch/transformer.py | 151 | CODE | |
| LOW | src/timesfm/utils/xreg_lib.py | 414 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | …forecasting/examples/global-temperature/run_example.sh | 26 | # Step 1: Preflight check | COMMENT |
| LOW⚡ | …forecasting/examples/global-temperature/run_example.sh | 34 | # Step 2: Run forecast | COMMENT |
| LOW⚡ | …forecasting/examples/global-temperature/run_example.sh | 40 | # Step 3: Generate visualization | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | README.md | 15 | * [Vertex Model Garden](https://pantheon.corp.google.com/vertex-ai/publishers/google/model-garden/timesfm): Docker | COMMENT |
| MEDIUM | timesfm-forecasting/SKILL.md | 265 | max_context=1024, # Max context window | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | v1/src/timesfm/timesfm_base.py | 109 | if not np.any(nans): # Check if there are any NaNs | CODE |
| LOW⚡ | timesfm-forecasting/scripts/check_system.py | 388 | # Check if GPU is available | COMMENT |
| LOW | src/timesfm/timesfm_2p5/timesfm_2p5_base.py | 63 | if not np.any(nans): # Check if there are any NaNs | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/test_model_loading.py | 51 | custom_kwarg="dummy_value", | CODE |
| LOW | tests/test_model_loading.py | 94 | custom_kwarg="dummy_value", | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …forecasting/examples/global-temperature/run_example.sh | 9 | # Usage: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | …mesfm-forecasting/examples/finetuning/finetune_lora.py | 49 | logger = logging.getLogger(__name__) | CODE |