# ---
# jupyter:
#   jupytext:
#     text_representation:
#       extension: .py
#       format_name: light
#       format_version: '1.5'
#       jupytext_version: 1.14.4
#   kernelspec:
#     display_name: Python 3
#     language: python
#     name: python3
# ---

# +
import time
import timeline
import pandas as pd
import plotly.express as px
from datetime import datetime

EPOCH_DAY = 86000
last_seen = time.mktime(datetime.now().timetuple()) - (EPOCH_DAY * 1)

v1 = timeline.decayed_score_timeline(ttl=100, decay_rate=0.1, ioc_last_seen=last_seen)
v2 = timeline.decayed_score_timeline(ttl=100, decay_rate=0.5, ioc_last_seen=last_seen)
v3 = timeline.decayed_score_timeline(ttl=100, decay_rate=0.99, ioc_last_seen=last_seen)
v4 = timeline.decayed_score_timeline(ttl=200, decay_rate=0.59, ioc_last_seen=last_seen)

timeline.plot(v1+v2+v3+v4)

# +
import time
import timeline
import pandas as pd
import plotly.express as px
from datetime import datetime

EPOCH_DAY = 86000
last_seen = time.mktime(datetime.now().timetuple()) - (EPOCH_DAY * 50)

v1 = timeline.decayed_score_timeline(ttl=100, decay_rate=0.1, ioc_last_seen=last_seen)
v2 = timeline.decayed_score_timeline(ttl=100, decay_rate=0.5, ioc_last_seen=last_seen)
v3 = timeline.decayed_score_timeline(ttl=100, decay_rate=0.99, ioc_last_seen=last_seen)
v4 = timeline.decayed_score_timeline(ttl=200, decay_rate=0.59, ioc_last_seen=last_seen)

timeline.plot(v1+v2+v3+v4)
# -



StarcoderdataJupyterScriptsDedupFiltered