Skip to content

Latest commit

 

History

History
52 lines (37 loc) · 1.66 KB

README.md

File metadata and controls

52 lines (37 loc) · 1.66 KB

Example Usage of Output Data from PTMTorrent

This directory contains a script to collect data from a repository from the PTMTorrent dataset.

Table of Contents

About

This is an example program that extracts and graphs commit information from repositories.

This directory contains a Python 3.10 script that reads and extracts model paths from an example JSON file (from the ONNX Model Zoo component).

This is then passed into PRIME which extracts commit related information and plots it.

Dependencies

This program is dependent upon PTMTorrent being installed, as well PRIME's dependencies.

Python dependencies are managed with pip and requirements.txt:

How to Run

Instructions were written for Linux operating systems

  1. Change directories into the ONNX Model Zoo PTMTorrent directory: cd ptm_torrent/onnxmodelzoo
  2. Create a Python 3.10 virtual environment: python3.10 -m venv env
  3. Activate virtual environment: source env/bin/activate
  4. Upgrade pip: python -m pip install --upgrade pip
  5. Execute the program with: ./run.bash

References

[1] N. Synovic and G. K. Thiruvathukal, “SoftwareSystemsLaboratory/clime-metrics.” Zenodo, Apr. 25, 2022. doi: 10.5281/zenodo.6484082.