Skip to content

Calculates the relative percentage difference in two given directories. I

Notifications You must be signed in to change notification settings

hknio/Diff_Calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Diff_Calculator (OUTDATED)

Use https://github.com/hknio/Compare_Tool

Calculates the relative percentage difference in two given directories.

Description

Calculates the relative percentage difference in two given directories. It was made to more easily calculate the percentage of change between commits in remediation checks of audits. It finds the percentage of change by calculating the Levenshtein distance.

Requirements

Requirements can be installed with the following command.

pip3 install -r requirements.txt

Usage

Two different usage options are available: Normal:

python3 main.py -p1 <PATH1> -p2 <PATH2>

Verbose:

python3 main.py -p1 <PATH1> -p2 <PATH2> -v

Example Output

Normal: alt text

Verbose: alt text

Output Details

The tool's output also lists the files that were examined. For each file, the list contains similarity percentage, difference percentage, and number of changed lines, in that order.

alt text

Docker

Diff calculator now offers Docker to its users. In order to run Diff Calculator via docker one has to use the two provided scripts; build.sh and sc.sh.

Setup Docker

sh ./build.sh

Run via Docker

sh ./sc.sh <PATH1> <PATH2>

alt text

About

Calculates the relative percentage difference in two given directories. I

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published