smilegeng commited on
Commit
9762bc3
·
verified ·
1 Parent(s): 0136377

Add TsFile (converted from MattiaBonfanti-CS/IN5000-MB-TUD-Forecasting)

Browse files
.gitattributes CHANGED
@@ -58,3 +58,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
58
  # Video files - compressed
59
  *.mp4 filter=lfs diff=lfs merge=lfs -text
60
  *.webm filter=lfs diff=lfs merge=lfs -text
 
 
58
  # Video files - compressed
59
  *.mp4 filter=lfs diff=lfs merge=lfs -text
60
  *.webm filter=lfs diff=lfs merge=lfs -text
61
+ data/in5000_oss_forecasting.tsfile filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,99 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ task_categories:
4
+ - time-series-forecasting
5
+ tags:
6
+ - timeseries
7
+ - forecasting
8
+ - tsfile
9
+ - github
10
+ - open-source-software
11
+ ---
12
+
13
+ # IN5000 Open-Source Software Evolution — Forecasting (TsFile)
14
+
15
+ This dataset is the multivariate time-series forecasting data from the TU Delft
16
+ **IN5000** MSc thesis *"A Framework for Identifying Evolution Patterns of
17
+ Open-Source Software Projects"*, converted from CSV to
18
+ [Apache TsFile](https://tsfile.apache.org/) format.
19
+
20
+ Each time series describes the evolution of one open-source GitHub repository
21
+ over a sequence of observation steps, across 11 software-engineering activity
22
+ metrics (stars, issues, commits, contributors, deployments, forks, pull
23
+ requests, workflows, releases, repository size, …).
24
+
25
+ ## Source
26
+
27
+ - **Original dataset**: [MattiaBonfanti-CS/IN5000-MB-TUD-Forecasting](https://huggingface.co/datasets/MattiaBonfanti-CS/IN5000-MB-TUD-Forecasting)
28
+ - **Original code / analysis**: <https://github.com/IN5000-MB-TUD/data-analysis>
29
+ - **Author**: Mattia Bonfanti — MSc Computer Science (Software Technology),
30
+ TU Delft, IN5000 master's thesis, academic year 2023/2024
31
+ (m.bonfanti@student.tudelft.nl)
32
+ - **License**: MIT (inherited from the original dataset)
33
+
34
+ ## Data structure
35
+
36
+ The source is a single CSV (`time_series_data.csv`, 109,882 rows × 14 columns)
37
+ in long format: one row per (repository, step). Key facts derived from the data:
38
+
39
+ - **1,323 distinct repositories** (`unique_id`, e.g. `nlbdev/pipeline`), each one
40
+ an independent time series.
41
+ - **`ds`** is a per-series integer step index `0, 1, 2, …` (ordinal observation
42
+ step, **not** a real calendar timestamp). Series lengths vary (≈30–162 steps,
43
+ median 83).
44
+ - **`cluster`** ∈ {0, 1, 2} is a fixed evolution-pattern cluster label assigned
45
+ to each repository (constant within a series).
46
+ - **`repository`** is the integer encoding of `unique_id` (1:1 mapping).
47
+ - 10 integer activity metrics: `stargazers`, `issues`, `commits`,
48
+ `contributors`, `deployments`, `forks`, `pull_requests`, `workflows`,
49
+ `releases`, `size`. No missing values.
50
+
51
+ ## TsFile mapping
52
+
53
+ The TsFile uses the **table model**. One repository = one device (time-series).
54
+
55
+ | TsFile role | Column(s) | Type | Notes |
56
+ |---|---|---|---|
57
+ | **TAG** (device dimension) | `unique_id`, `cluster` | STRING, INT64 | repository identity + its evolution cluster |
58
+ | **TIME** | derived from `ds` | INT64 (ms) | `ds` value used directly as the millisecond timestamp |
59
+ | **FIELD** | `repository` | INT64 | integer encoding of `unique_id` (redundant, kept on request) |
60
+ | **FIELD** | `stargazers`, `issues`, `commits`, `contributors`, `deployments`, `forks`, `pull_requests`, `workflows`, `releases`, `size` | INT64 | activity metrics |
61
+
62
+ - Table name: `in5000_oss_forecasting`. Time precision: `ms`.
63
+ - Within each device, rows are sorted by `Time` (ascending).
64
+
65
+ ### Conversion notes (column handling)
66
+
67
+ - **`ds` → Time**: consumed into the derived `Time` column and **not** kept as a
68
+ separate field. Lossless: `Time` equals the original `ds`. Because the dataset
69
+ carries no real calendar dates (only an ordinal step index), the integer step
70
+ is written directly as a millisecond value.
71
+ - **`repository`** is kept as a FIELD even though it is a 1:1 numeric encoding of
72
+ the `unique_id` tag (redundant by design choice).
73
+ - **No rows dropped**; the dataset has no train/test split (single CSV).
74
+
75
+ ## Files
76
+
77
+ ```
78
+ .
79
+ ├── README.md
80
+ └── data/
81
+ └── in5000_oss_forecasting.tsfile
82
+ ```
83
+
84
+ ## Reading the TsFile
85
+
86
+ ```python
87
+ from tsfile import TsFileReader
88
+
89
+ reader = TsFileReader("data/in5000_oss_forecasting.tsfile")
90
+ for name, table in reader.get_all_table_schemas().items():
91
+ print(name, [c.get_column_name() for c in table.get_columns()])
92
+ # Query FIELD/TAG columns of the table 'in5000_oss_forecasting' via reader.query_table(...)
93
+ ```
94
+
95
+ ## Citation
96
+
97
+ Please cite the original thesis / dataset author (Mattia Bonfanti, TU Delft
98
+ IN5000, 2023/2024) and link back to the
99
+ [original dataset](https://huggingface.co/datasets/MattiaBonfanti-CS/IN5000-MB-TUD-Forecasting).
data/in5000_oss_forecasting.tsfile ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dec5a067dd53ff6028c3d7183f63c56ccdb3943a1aedaa0d645e9f006e7be41c
3
+ size 11554212