wangdx25 commited on
Commit
00b1851
·
verified ·
1 Parent(s): e201235

Add TsFile (converted from ronantakizawa/github-top-projects)

Browse files
Files changed (3) hide show
  1. .gitattributes +1 -0
  2. README.md +71 -0
  3. github_top_projects.tsfile +3 -0
.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
+ github_top_projects.tsfile filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ task_categories:
4
+ - time-series-forecasting
5
+ tags:
6
+ - tsfile
7
+ - timeseries
8
+ - time-series
9
+ - github
10
+ - trending
11
+ - repositories
12
+ - software-engineering
13
+ - popularity
14
+ - format:tsfile
15
+ pretty_name: GitHub Trending Projects (TsFile)
16
+ size_categories:
17
+ - 100K<n<1M
18
+ ---
19
+
20
+ # GitHub Trending Projects (TsFile)
21
+
22
+ Apache TsFile version of [`ronantakizawa/github-top-projects`](https://huggingface.co/datasets/ronantakizawa/github-top-projects).
23
+
24
+ ## Overview
25
+
26
+ 423,098 GitHub trending repository entries spanning 12+ years (August 2013 –
27
+ November 2025), scraped from Wayback Machine snapshots of GitHub's trending page.
28
+ Captures the evolution of trending repositories over time — software development
29
+ trends across languages and domains, and popular open-source projects. Multiple
30
+ intra-day snapshots per repository are collapsed to the latest snapshot per day.
31
+
32
+ ## Schema (TsFile structure)
33
+
34
+ - **Time** (INT64, milliseconds) — the snapshot date.
35
+ - **repo_owner** / **name** (TAG) — the repository (device dimension).
36
+ - **star_count** / **fork_count** (FIELD, FLOAT).
37
+ - **rank** (FIELD, INT64) — the daily rank.
38
+
39
+ ## Usage
40
+
41
+ Install the Apache TsFile Python SDK (`pip install tsfile`) and read a converted file:
42
+
43
+ ```python
44
+ from pathlib import Path
45
+ from tsfile import TsFileReader
46
+
47
+ path = Path("github_top_projects.tsfile")
48
+ with TsFileReader(str(path)) as reader:
49
+ schemas = reader.get_all_table_schemas()
50
+ print("tables:", list(schemas))
51
+ table_name = next(iter(schemas))
52
+ table = schemas[table_name]
53
+ columns = [column.get_column_name() for column in table.get_columns()]
54
+ print("columns:", columns)
55
+ field_names = [
56
+ column.get_column_name()
57
+ for column in table.get_columns()
58
+ if column.get_column_name() not in {"Time", "time"}
59
+ ]
60
+ if field_names:
61
+ with reader.query_table(table_name, field_names[:3], batch_size=1024) as result:
62
+ batch = result.read_arrow_batch()
63
+ if batch is not None:
64
+ print(batch.to_pandas().head())
65
+ ```
66
+
67
+ ## Source & license
68
+
69
+ - Original dataset: https://huggingface.co/datasets/ronantakizawa/github-top-projects
70
+ - Author / publisher: ronantakizawa
71
+ - License: MIT
github_top_projects.tsfile ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f8963ba14aea344dfa60a00480cf2351d34a9853f142cca12905c2c5600c2b03
3
+ size 7293214