Skip to content

Instantly share code, notes, and snippets.

@housemaister
housemaister / issue-58-jscpd-duplicates-proposal.patch
Created August 11, 2026 14:58
Proposed JSCPD duplicate-code cleanup for dashboards/forecast.yaml and scripts/00_core.yaml
diff --git a/dashboards/forecast.yaml b/dashboards/forecast.yaml
index e8d8a92..e0003f2 100644
--- a/dashboards/forecast.yaml
+++ b/dashboards/forecast.yaml
@@ -240,7 +240,7 @@ views:
curve: straight
color: "#9e9e9e"
extend_to: false
- data_generator: |
+ data_generator: &cumulativeForecastGenerator |

Keybase proof

I hereby claim:

  • I am housemaister on github.
  • I am housemaister (https://keybase.io/housemaister) on keybase.
  • I have a public key whose fingerprint is 17B9 1A24 62A0 AC48 B40F 6B00 83B4 8F40 1052 3FC9

To claim this, I am signing this object:

import os
import subprocess
class Colorcodes(object):
"""
Provides ANSI terminal color codes which are gathered via the ``tput``
utility. That way, they are portable. Color codes are initialized to
empty strings. If the output is being redirected or if there occurs
any error with ``tput``, keep empty strings.