Git Product home page Git Product logo

tax_se's Introduction

Taxing Collaborative Software Engineering

GitHub Codacy Badge

Replication package for our work on "Taxing Collaborative Software Engineering"

Requirements

This replication package requires Python 3.10 or higher. Install the dependencies via

python3 -m pip install -r requirements.txt

For a faster loading, we recommend to optionally install orjson via pip:

python3 -m pip install orjson

How to run

Step 1: Crawl

First, we collect all timelines from all pull requests at a GitHub instance. crawler.py requires an <api_token> for your GitHub instance and an <out_dir> where the results are stored into:

python3 crawl.py <api_token> <out_dir>

[crawler.py](crawler.py also provides the following optional command line arguments:

  • --api_url for the GitHub instance URL (default: https://api.github.com)
  • --disable_cache for disable caching (for larger instances not recommended)
  • --num_workers for parallel processes (default: 1)
  • --organization for limiting to one organization (helpful for organizations hosted on github.com)

To list all options in detail, run

python3 crawl.py --h

Step 2: Model pull requests as cross-border communication channels

For this step, you will need

  1. the directory of the previously collected data and
  2. a mapping of users and countries. This can be either a dict for a static mapping (does not capture changes in the users' location over time) or a dataframe for time-dependent mapping as data frame monthly sampled (captures changes in the users' location over time).

Run notebook.ipynb. Look out for the instructions as inline comments.

License

Copyright © 2023 Michael Dorner

This work is licensed under MIT license.

tax_se's People

Contributors

michaeldorner avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.