Skip to content

TCC-AppRecommender/scripts

Repository files navigation

Scripts

This repository contains the scripts used to help the work with AppRecommender.

The following explains each script

popularity-contest

Its the same script of package popularity-contest, this script is in this repository to dont needs install the popularity-contest, because to use this script with the package needs run with sudo

Usage: popularity-contest

generate_popcon.py

Script to generate the fake popularity-contest submissions, this script runs the popularity-contest for the user and use the lines of the user submission to create multiples fake submissions.

Usage: generate_popcon.py [number_of_submissions] [folder_to_save]

create_popcon_clusters.py

This script is used to separate the popularity-contest submissions in clusters, this clustarization its made by the packages in each submission.

Usage: create_popcon_clusters.py [popcon-entries_path] [random_state] [n_clusters] [n_processors]

[options] popcon-entries_path - Its the path of folder with the popularity-contest submissions random_state - Its a number of random_state of KMeans n_clusters - Its the number of clusters are been used n_processors - Its the number of processors to be used

send_popcon_entries.sh

Use this script to send the popularity-contest for an another folder using the popularity-contest folder template, like this exemple:

  • Files: 1a2b, 1a3b, 2a2b, 2a3b
  • Folders: 1a, 2a
  • Files path: 1a/1a2b, 1a/1a3b, 2a/2a2b, 2a/3a4b

Usage: send_popcon_entries.sh [actual_submissions_folder] [destiny_submissions_folder]

unzip_targz.sh

Script to unzip all tar.gz in a folder, and remove the tar.gz files

Usage: ./unzip_targz.sh [folder_with_targz]

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published