From 031abd3c0b83aa890e8a09682cb45a6bcd714f2d Mon Sep 17 00:00:00 2001 From: Frank Zhao Date: Thu, 28 Nov 2024 15:39:33 +0800 Subject: [PATCH] label: add hubei university label (#1650) Signed-off-by: frank-zsy --- labeled_data/institutions/cug/index.yml | 16 ++++++++++++++++ labeled_data/institutions/hubu/index.yml | 12 ++++++++++++ labeled_data/institutions/hust/index.yml | 16 ++++++++++++++++ labeled_data/institutions/whu/index.yml | 20 ++++++++++++++++++++ labeled_data/regions/CN/hubei.yml | 4 ++++ src/label_data_utils.ts | 2 +- 6 files changed, 69 insertions(+), 1 deletion(-) create mode 100644 labeled_data/institutions/cug/index.yml create mode 100644 labeled_data/institutions/hubu/index.yml create mode 100644 labeled_data/institutions/hust/index.yml create mode 100644 labeled_data/institutions/whu/index.yml diff --git a/labeled_data/institutions/cug/index.yml b/labeled_data/institutions/cug/index.yml new file mode 100644 index 00000000..df82c2aa --- /dev/null +++ b/labeled_data/institutions/cug/index.yml @@ -0,0 +1,16 @@ +name: China University of Geosciences +type: University +meta: + name_zh: 地大 + name_zh_full: 中国地质大学(武汉) +data: + platforms: + - name: GitHub + type: Code Hosting + repos: + - id: 81367506 + name: cuglife + - id: 77605371 + name: CUG-hydro + - id: 66998566 + name: CUG-EMI diff --git a/labeled_data/institutions/hubu/index.yml b/labeled_data/institutions/hubu/index.yml new file mode 100644 index 00000000..6f331b51 --- /dev/null +++ b/labeled_data/institutions/hubu/index.yml @@ -0,0 +1,12 @@ +name: Hubei University +type: University +meta: + name_zh: 湖大 + name_zh_full: 湖北大学 +data: + platforms: + - name: GitHub + type: Code Hosting + orgs: + - id: 113109543 + name: OS-HUBU diff --git a/labeled_data/institutions/hust/index.yml b/labeled_data/institutions/hust/index.yml new file mode 100644 index 00000000..8b2b9ed1 --- /dev/null +++ b/labeled_data/institutions/hust/index.yml @@ -0,0 +1,16 @@ +name: Huazhong University of Science and Technology +type: University +meta: + name_zh: 华科大 + name_zh_full: 华中科技大学 +data: + platforms: + - name: GitHub + type: Code Hosting + orgs: + - id: 164288024 + name: hust-open-atom-club + - id: 112808337 + name: LANGYA-HUST + - id: 7669373 + name: hust-latex diff --git a/labeled_data/institutions/whu/index.yml b/labeled_data/institutions/whu/index.yml new file mode 100644 index 00000000..7586a2a2 --- /dev/null +++ b/labeled_data/institutions/whu/index.yml @@ -0,0 +1,20 @@ +name: Wuhan University +type: University +meta: + name_zh: 武大 + name_zh_full: 武汉大学 +data: + platforms: + - name: GitHub + type: Code Hosting + orgs: + - id: 78056486 + name: whutug + - id: 49439568 + name: openwhu + - id: 16358514 + name: WHUFT + - id: 112596701 + name: WHU-MSC + - id: 131381256 + name: WHUCodingAndOpen diff --git a/labeled_data/regions/CN/hubei.yml b/labeled_data/regions/CN/hubei.yml index 335cc3f4..d66b5d55 100644 --- a/labeled_data/regions/CN/hubei.yml +++ b/labeled_data/regions/CN/hubei.yml @@ -22,3 +22,7 @@ data: - :companies/wutos - :companies/ygsoft - :companies/zte + - :institutions/cug + - :institutions/hubu + - :institutions/hust + - :institutions/whu diff --git a/src/label_data_utils.ts b/src/label_data_utils.ts index 000f4248..2caa04f3 100644 --- a/src/label_data_utils.ts +++ b/src/label_data_utils.ts @@ -9,7 +9,7 @@ const labelInputPath = path.join(__dirname, labelInputDir); const checkKeysAndTypes = { labelTypes: new Set([ - 'Region-0', 'Region-1', 'Company', 'Community', 'Project', 'Foundation', 'Tech-0', 'Tech-1', 'Tech-2', 'Tech-3', 'Domain-0', 'Bot' + 'Region-0', 'Region-1', 'Company', 'Community', 'Project', 'Foundation', 'University', 'Tech-0', 'Tech-1', 'Tech-2', 'Tech-3', 'Domain-0', 'Bot' ]), labelKeys: new Set([ 'labels', 'platforms'