software-gardening / almanack

An open-source handbook of applied guidance and tools for sustainable software development and maintenance.
https://software-gardening.github.io/almanack
BSD 3-Clause "New" or "Revised" License
0 stars 2 forks source link

Create a file-based information entropy calculation function. #63

Closed willdavidson05 closed 2 months ago

willdavidson05 commented 3 months ago

Existing issue check

Description

I want to develop a file-based function that tracks the amount of information entropy in a repository using the Shannon entropy formula. This function will reference LoC_tracker, an existing function that tracks the total number of lines changed in the code. It will be tested on high and low entropy datasets to ensure accurate calculation.

Example

def entropy_calculation(LoC returned value):
return shannon_entropy
......
def test_entropy_calculation(LoC returned value):
.......

Would you like to work on a solution for this?