Skip to main content

GitHub Collaboration Relation Extraction

Project description

GitHub_Collaboration_Relation_Extraction

Collaboration Relation Extraction from GitHub logs. Collaboration relations include 2 categories: EventAction relations and Reference relations. This is a relation extraction tool for Project https://github.com/birdflyi/OSDB_STN_reference_coupling_data_analysis.

Quick Start

  1. Download the directory etc/ and file main.py in GitHub_Collaboration_Relation_Extraction into the root directory of your new project.
  2. Change the default settings in etc/authConf.py.
  • AuthConfig
    • You need to set the DEFAULT_INTMED_MODE in [I_AUTH_SETTINGS_LOCAL_HOSTS, I_AUTH_SETTINGS_ALIYUN_HOSTS, I_AUTH_SETTINGS_ALIYUN_INTERMEDIATE_HOSTS], and set the corresponding auth_settings_xxx_hosts dict.
    • If you have an Aliyun Cloud or other database service within github log tables, please set the server authorization information below the line Aliyun
    • If you want a sample dataset to start, you can Download a ClickHouse sample data for your docker container, and set the server authorization information below the line local docker image.
  • GITHUB_TOKENS
  1. Change the settings in main.py and run it.
  • Change the repo_names and year settings
    • Notes: It may take a lot of time to process all records. Set limit as a positive integer to limit the max number of records when you just want to take a test.
  • Create the data/ directory
    • Create the directory in the root directory of your project: data_dirs = ['data', 'data/github_osdb_data', 'data/global_data', 'data/github_osdb_data/repos', 'data/github_osdb_data/repos_dedup_content', 'data/github_osdb_data/GitHub_Collaboration_Network_repos']. Make directories:
import os

base_dir = '' or os.getcwd()  # you can set a base dir or use the current dir by default.
data_dirs = ['data', 'data/github_osdb_data', 'data/global_data', 'data/github_osdb_data/repos', 'data/github_osdb_data/repos_dedup_content', 'data/github_osdb_data/GitHub_Collaboration_Network_repos']
for rel_data_dir in data_dirs:  \
    os.makedirs(os.path.join(base_dir, rel_data_dir), exist_ok=True)  # avoid the FileExistsError

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gh_core-2.2.0.tar.gz (119.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

GH_CoRE-2.2.0-py2.py3-none-any.whl (84.6 kB view details)

Uploaded Python 2Python 3

File details

Details for the file gh_core-2.2.0.tar.gz.

File metadata

  • Download URL: gh_core-2.2.0.tar.gz
  • Upload date:
  • Size: 119.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for gh_core-2.2.0.tar.gz
Algorithm Hash digest
SHA256 8b9cda942c560a131d359bf8bb2d1eb952357d3f03b8b272f91ec0e86be3f9b2
MD5 a7f3051d8facb47386cbd335e5853336
BLAKE2b-256 2507d964655ac1d57053ea149c68c1a2dd3a08b007b268a17062436a476490ff

See more details on using hashes here.

File details

Details for the file GH_CoRE-2.2.0-py2.py3-none-any.whl.

File metadata

  • Download URL: GH_CoRE-2.2.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 84.6 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for GH_CoRE-2.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 7a589fa4c01afbc36e7c3b0c1689bdf96337510d4211fd58f7e71e5b77c5cf3d
MD5 be903c08b48b047a3668c203a46e8f67
BLAKE2b-256 176f02b0c9a5a636ad2116112dcb2fc3f9099e70d2bb83755e48ef9158ac5e3e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page