Code Monkey home page Code Monkey logo

Comments (6)

erikbern avatar erikbern commented on August 30, 2024

It's because both the numerator and the denominator changes over time. Both of them go to zero. In your case there are only so many commits that reached 2.5 years old versus a lot more commits reached 1 year of age. So if the denominator goes down then the ratio goes up.

Hope this explanation makes sense

from git-of-theseus.

remram44 avatar remram44 commented on August 30, 2024

No, I can't wrap my head around this 😳

Is the X axis project time or commit age?

from git-of-theseus.

erikbern avatar erikbern commented on August 30, 2024

X axis is commit age

from git-of-theseus.

erikbern avatar erikbern commented on August 30, 2024

here's a scenario. project has two commits, one from 2000, one from 2015. today is 2016. the first commit is still present in the code base, the second one was reverted in 2016.

first year: 100% because both commits were in the code base
second year: 50% because the second commit was removed
third year: 100% because now only the first commit counts (we don't know anything about the second commit, could be reverted in the future)

from git-of-theseus.

remram44 avatar remram44 commented on August 30, 2024

I see! (commits that age still present)/(commits that age), it makes sense. Thanks for explaining!

from git-of-theseus.

erikbern avatar erikbern commented on August 30, 2024

you got it :)

from git-of-theseus.

Related Issues (20)

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.