From 91ca897d99b4144ba74ef9e21cf810def6d6942e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dandelion=20Man=C3=A9?= Date: Fri, 15 May 2020 11:12:15 -0700 Subject: [PATCH] Update output format to include credOverTime (#1791) As requested by @s-ben, we map now include cred over time for all contributions, not just contributors. Based on discussion with @Beanow, we made it an optional field so that we can optionally filter to save space instead. I was initially concerned that we wouldn't be able to compute credOverTime for non-user nodes in CredRank, which is why I left it out. However, informed by discussions with @mZargham, I'm less concerned because PageRank (and thus CredRank) is a linear operator on the seed vector. So, if we want to compute the "cred over time" for individual contributions in CredRank, we can do so by constructing time-specific seed vectors (which flow only to activity minting cred in the specified interval), and the sum of contributions time-scoped cred will be equal to the non-time-scoped cred. It's good that we'll still have the epoch nodes for users, as that will allow us to model sponsorship cred flow dynamics. cc @wchargin for CredRank considerations. Test plan: Unit tests updated, `yarn test` passes. --- .../__snapshots__/example-github-output.json | 2252 ++++++++++++++++- src/analysis/output.js | 19 +- src/analysis/output.test.js | 10 + 3 files changed, 2275 insertions(+), 6 deletions(-) diff --git a/sharness/__snapshots__/example-github-output.json b/sharness/__snapshots__/example-github-output.json index d5389a3..92c7516 100644 --- a/sharness/__snapshots__/example-github-output.json +++ b/sharness/__snapshots__/example-github-output.json @@ -1,9 +1,59 @@ [ { "type": "sourcecred/analysis/output", - "version": "0.1.0" + "version": "0.2.0" }, { + "intervalEndpoints": [ + 1520121600000, + 1520726400000, + 1521331200000, + 1521936000000, + 1522540800000, + 1523145600000, + 1523750400000, + 1524355200000, + 1524960000000, + 1525564800000, + 1526169600000, + 1526774400000, + 1527379200000, + 1527984000000, + 1528588800000, + 1529193600000, + 1529798400000, + 1530403200000, + 1531008000000, + 1531612800000, + 1532217600000, + 1532822400000, + 1533427200000, + 1534032000000, + 1534636800000, + 1535241600000, + 1535846400000, + 1536451200000, + 1537056000000, + 1537660800000, + 1538265600000, + 1538870400000, + 1539475200000, + 1540080000000, + 1540684800000, + 1541289600000, + 1541894400000, + 1542499200000, + 1543104000000, + 1543708800000, + 1544313600000, + 1544918400000, + 1545523200000, + 1546128000000, + 1546732800000, + 1547337600000, + 1547942400000, + 1548547200000 + ], "orderedNodes": [ { "address": [ @@ -17,6 +67,56 @@ "420811872" ], "cred": 2.53312921101789, + "credOverTime": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1.140155897538397, + 0.688290015368937, + 0.34522421964428374, + 0.1734134743894277, + 0.08740741401055278, + 0.04437048587496571, + 0.022838083553684756, + 0.01206109254577341, + 0.006658460469873559, + 0.00393447243352246, + 0.0025332309018013498, + 0.0017668671453727912, + 0.0012888369497149616, + 0.0009418344776937493, + 0.000674310407915233, + 0.0004766784755712425, + 0.0003427016965252783, + 0.0002592048140801084, + 0.00021040541739723864, + 0.0002815249023998051 + ], "description": "[comment](https://github.com/sourcecred-test/example-github/issues/11#issuecomment-420811872) on [#11](https://github.com/sourcecred-test/example-github/issues/11): An issue with a comment from a deleted user", "minted": 1, "timestamp": 1536789545000 @@ -33,6 +133,56 @@ "420813013" ], "cred": 4.246639988874127, + "credOverTime": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 2.761769160005733, + 0.7367533629880453, + 0.36917943091065125, + 0.18512587759009408, + 0.09300299858685174, + 0.04690993237145657, + 0.023851825317483893, + 0.012316132502548649, + 0.006542290002370608, + 0.003648491561727208, + 0.002191265051316078, + 0.0014437593419796802, + 0.001035792794419704, + 0.0007791543924050073, + 0.0005880450502395298, + 0.00043727449896087227, + 0.00032606543356265177, + 0.00025225934037314835, + 0.00020741512417264593, + 0.0002794560097360736 + ], "description": "[comment](https://github.com/sourcecred-test/example-github/issues/11#issuecomment-420813013) on [#11](https://github.com/sourcecred-test/example-github/issues/11): An issue with a comment from a deleted user", "minted": 1, "timestamp": 1536789813000 @@ -49,6 +199,56 @@ "420813206" ], "cred": 3.196807145579773, + "credOverTime": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1.5249465688064685, + 0.8266416274188144, + 0.41458075028804087, + 0.2082251890575163, + 0.10492872757063934, + 0.053240176373140526, + 0.027378692558136592, + 0.014433708736847328, + 0.00794178092854797, + 0.004664406751954817, + 0.0029724624689103367, + 0.002040657092583222, + 0.001456381147708268, + 0.0010358950203940777, + 0.0007203053820960901, + 0.0004959515111053728, + 0.0003497372116906535, + 0.0002615063280644119, + 0.0002110958313366675, + 0.0002815250957766428 + ], "description": "[comment](https://github.com/sourcecred-test/example-github/issues/11#issuecomment-420813206) on [#11](https://github.com/sourcecred-test/example-github/issues/11): An issue with a comment from a deleted user", "minted": 1, "timestamp": 1536789858000 @@ -65,6 +265,56 @@ "420813621" ], "cred": 2.5925309334355573, + "credOverTime": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1.1781640286392725, + 0.7015647096839207, + 0.3515988861519153, + 0.17633352444962228, + 0.08859880761649287, + 0.04469791268809041, + 0.02273529579505188, + 0.011747185961637093, + 0.00624728578126508, + 0.0034910939325021877, + 0.002104056636020248, + 0.0013939863525977963, + 0.0010078071285607325, + 0.000764839036708537, + 0.0005819034322501312, + 0.0004351685644407749, + 0.00032549355834415346, + 0.0002521344624006958, + 0.00020739251501427717, + 0.00027942104944957136 + ], "description": "[comment](https://github.com/sourcecred-test/example-github/issues/11#issuecomment-420813621) on [#11](https://github.com/sourcecred-test/example-github/issues/11): An issue with a comment from a deleted user", "minted": 1, "timestamp": 1536789965000 @@ -81,6 +331,56 @@ "373768703" ], "cred": 2.5960839493691235, + "credOverTime": [ + 0, + 0, + 1.2578862222669913, + 0.6674763918606038, + 0.3338705657896488, + 0.16706712324282313, + 0.08366588800809534, + 0.041966373257346735, + 0.021118384988130175, + 0.008476794930436272, + 0.004420529007302411, + 0.002386910256029244, + 0.0013601423407924057, + 0.0008297800161098889, + 0.0005382525380193652, + 0.00028716199552091237, + 0.00018158258334018357, + 0.0021806934924696124, + 0.0011951441892896373, + 0.0006013205235798532, + 0.000276519816850234, + 0.00011479281281351264, + 0.00004258296537030182, + 0.000014225463522371305, + 0.000004410580204362435, + 0.0000013257418913973695, + 0.00009112754815883265, + 0.000029550791576208346, + 7.457363700796707e-8, + 4.0331079425926634e-8, + 1.898433731692366e-8, + 9.226861900893373e-9, + 4.565590845832999e-9, + 2.2812822246208954e-9, + 1.1475502650457605e-9, + 5.817481986634019e-10, + 2.986301130217216e-10, + 1.5657558911316557e-10, + 8.485997442722179e-11, + 4.8084713095968044e-11, + 2.8606795969944487e-11, + 1.77717866451697e-11, + 1.1425126259967362e-11, + 7.589055893833004e-12, + 5.278568238849607e-12, + 3.926035625026755e-12, + 3.1604988452145888e-12, + 4.211140241127823e-12 + ], "description": "[comment](https://github.com/sourcecred-test/example-github/issues/2#issuecomment-373768703) on [#2](https://github.com/sourcecred-test/example-github/issues/2): A referencing issue.", "minted": 1, "timestamp": 1521217693000 @@ -97,6 +397,56 @@ "373768850" ], "cred": 2.5960839493691235, + "credOverTime": [ + 0, + 0, + 1.2578862222669913, + 0.6674763918606038, + 0.3338705657896488, + 0.16706712324282313, + 0.08366588800809534, + 0.041966373257346735, + 0.021118384988130175, + 0.008476794930436272, + 0.004420529007302411, + 0.002386910256029244, + 0.0013601423407924057, + 0.0008297800161098889, + 0.0005382525380193652, + 0.00028716199552091237, + 0.00018158258334018357, + 0.0021806934924696124, + 0.0011951441892896373, + 0.0006013205235798532, + 0.000276519816850234, + 0.00011479281281351264, + 0.00004258296537030182, + 0.000014225463522371305, + 0.000004410580204362435, + 0.0000013257418913973695, + 0.00009112754815883265, + 0.000029550791576208346, + 7.457363700796707e-8, + 4.0331079425926634e-8, + 1.898433731692366e-8, + 9.226861900893373e-9, + 4.565590845832999e-9, + 2.2812822246208954e-9, + 1.1475502650457605e-9, + 5.817481986634019e-10, + 2.986301130217216e-10, + 1.5657558911316557e-10, + 8.485997442722179e-11, + 4.8084713095968044e-11, + 2.8606795969944487e-11, + 1.77717866451697e-11, + 1.1425126259967362e-11, + 7.589055893833004e-12, + 5.278568238849607e-12, + 3.926035625026755e-12, + 3.1604988452145888e-12, + 4.211140241127823e-12 + ], "description": "[comment](https://github.com/sourcecred-test/example-github/issues/2#issuecomment-373768850) on [#2](https://github.com/sourcecred-test/example-github/issues/2): A referencing issue.", "minted": 1, "timestamp": 1521217725000 @@ -113,6 +463,56 @@ "385576185" ], "cred": 2.298714421476436, + "credOverTime": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1.0497894783158594, + 0.5305203457935086, + 0.2701793719860175, + 0.13895118342585433, + 0.07204505459721117, + 0.037397024435923465, + 0.015492299290630679, + 0.007780982182006896, + 0.07955897184888479, + 0.04070377837571282, + 0.02105937394452544, + 0.010954869601015474, + 0.0055842283015138895, + 0.0026602916257569614, + 0.0011310158286479343, + 0.0004239139151569556, + 0.00014460745784725026, + 0.010698493419306898, + 0.0036199244062975764, + 0.000009331772218682952, + 0.000005104583626835801, + 0.0000024162581803575804, + 0.000001177692447435463, + 5.835662164517736e-7, + 2.917966633448596e-7, + 1.468342085219013e-7, + 7.445053542608283e-8, + 3.822126060983831e-8, + 2.0040785954839236e-8, + 1.0861835744922188e-8, + 6.154775014446883e-9, + 3.661649580756544e-9, + 2.2747823842172696e-9, + 1.4624141341954687e-9, + 9.713984811735294e-10, + 6.756565004376417e-10, + 5.025324729314343e-10, + 4.0454381713968625e-10, + 5.390259275135079e-10 + ], "description": "[comment](https://github.com/sourcecred-test/example-github/issues/2#issuecomment-385576185) on [#2](https://github.com/sourcecred-test/example-github/issues/2): A referencing issue.", "minted": 1, "timestamp": 1525137909000 @@ -129,6 +529,56 @@ "385576220" ], "cred": 2.298714421476436, + "credOverTime": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1.0497894783158594, + 0.5305203457935086, + 0.2701793719860175, + 0.13895118342585433, + 0.07204505459721117, + 0.037397024435923465, + 0.015492299290630679, + 0.007780982182006896, + 0.07955897184888479, + 0.04070377837571282, + 0.02105937394452544, + 0.010954869601015474, + 0.0055842283015138895, + 0.0026602916257569614, + 0.0011310158286479343, + 0.0004239139151569556, + 0.00014460745784725026, + 0.010698493419306898, + 0.0036199244062975764, + 0.000009331772218682952, + 0.000005104583626835801, + 0.0000024162581803575804, + 0.000001177692447435463, + 5.835662164517736e-7, + 2.917966633448596e-7, + 1.468342085219013e-7, + 7.445053542608283e-8, + 3.822126060983831e-8, + 2.0040785954839236e-8, + 1.0861835744922188e-8, + 6.154775014446883e-9, + 3.661649580756544e-9, + 2.2747823842172696e-9, + 1.4624141341954687e-9, + 9.713984811735294e-10, + 6.756565004376417e-10, + 5.025324729314343e-10, + 4.0454381713968625e-10, + 5.390259275135079e-10 + ], "description": "[comment](https://github.com/sourcecred-test/example-github/issues/2#issuecomment-385576220) on [#2](https://github.com/sourcecred-test/example-github/issues/2): A referencing issue.", "minted": 1, "timestamp": 1525137925000 @@ -145,6 +595,56 @@ "385576248" ], "cred": 2.298714421476436, + "credOverTime": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1.0497894783158594, + 0.5305203457935086, + 0.2701793719860175, + 0.13895118342585433, + 0.07204505459721117, + 0.037397024435923465, + 0.015492299290630679, + 0.007780982182006896, + 0.07955897184888479, + 0.04070377837571282, + 0.02105937394452544, + 0.010954869601015474, + 0.0055842283015138895, + 0.0026602916257569614, + 0.0011310158286479343, + 0.0004239139151569556, + 0.00014460745784725026, + 0.010698493419306898, + 0.0036199244062975764, + 0.000009331772218682952, + 0.000005104583626835801, + 0.0000024162581803575804, + 0.000001177692447435463, + 5.835662164517736e-7, + 2.917966633448596e-7, + 1.468342085219013e-7, + 7.445053542608283e-8, + 3.822126060983831e-8, + 2.0040785954839236e-8, + 1.0861835744922188e-8, + 6.154775014446883e-9, + 3.661649580756544e-9, + 2.2747823842172696e-9, + 1.4624141341954687e-9, + 9.713984811735294e-10, + 6.756565004376417e-10, + 5.025324729314343e-10, + 4.0454381713968625e-10, + 5.390259275135079e-10 + ], "description": "[comment](https://github.com/sourcecred-test/example-github/issues/2#issuecomment-385576248) on [#2](https://github.com/sourcecred-test/example-github/issues/2): A referencing issue.", "minted": 1, "timestamp": 1525137939000 @@ -161,6 +661,56 @@ "385576273" ], "cred": 2.298714421476436, + "credOverTime": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1.0497894783158594, + 0.5305203457935086, + 0.2701793719860175, + 0.13895118342585433, + 0.07204505459721117, + 0.037397024435923465, + 0.015492299290630679, + 0.007780982182006896, + 0.07955897184888479, + 0.04070377837571282, + 0.02105937394452544, + 0.010954869601015474, + 0.0055842283015138895, + 0.0026602916257569614, + 0.0011310158286479343, + 0.0004239139151569556, + 0.00014460745784725026, + 0.010698493419306898, + 0.0036199244062975764, + 0.000009331772218682952, + 0.000005104583626835801, + 0.0000024162581803575804, + 0.000001177692447435463, + 5.835662164517736e-7, + 2.917966633448596e-7, + 1.468342085219013e-7, + 7.445053542608283e-8, + 3.822126060983831e-8, + 2.0040785954839236e-8, + 1.0861835744922188e-8, + 6.154775014446883e-9, + 3.661649580756544e-9, + 2.2747823842172696e-9, + 1.4624141341954687e-9, + 9.713984811735294e-10, + 6.756565004376417e-10, + 5.025324729314343e-10, + 4.0454381713968625e-10, + 5.390259275135079e-10 + ], "description": "[comment](https://github.com/sourcecred-test/example-github/issues/2#issuecomment-385576273) on [#2](https://github.com/sourcecred-test/example-github/issues/2): A referencing issue.", "minted": 1, "timestamp": 1525137951000 @@ -177,6 +727,56 @@ "385576920" ], "cred": 2.2839401004354816, + "credOverTime": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1.0496295684271577, + 0.5303587804748013, + 0.2700149291718017, + 0.13878228428545267, + 0.07187041369244418, + 0.03721675879797542, + 0.015344638356131554, + 0.007635956739663416, + 0.0767201910517679, + 0.0380301874244874, + 0.01867916419876169, + 0.009035437935437138, + 0.0042650707363854155, + 0.0019389730115249837, + 0.0008333454036307317, + 0.00033222313243858135, + 0.00012260028175510896, + 0.009683580156109711, + 0.003427152000374013, + 0.000009063464035299099, + 0.000005029418641326346, + 0.0000023981049997834284, + 0.0000011732336356375231, + 5.824562996085487e-7, + 2.915184571581197e-7, + 1.4676410055398657e-7, + 7.443276052613247e-8, + 3.821670103095912e-8, + 2.0039590837394114e-8, + 1.0861511927031126e-8, + 6.154683284990527e-9, + 3.6616222968460715e-9, + 2.274773909591652e-9, + 1.4624114101510454e-9, + 9.713975764578002e-10, + 6.756561857997055e-10, + 5.02532355921365e-10, + 4.0454377004136764e-10, + 5.390258961338877e-10 + ], "description": "[comment](https://github.com/sourcecred-test/example-github/issues/2#issuecomment-385576920) on [#2](https://github.com/sourcecred-test/example-github/issues/2): A referencing issue.", "minted": 1, "timestamp": 1525138231000 @@ -193,6 +793,56 @@ "385576936" ], "cred": 2.3098538252064444, + "credOverTime": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1.049929389475162, + 0.5306616952558386, + 0.2703232183540088, + 0.13909888579125693, + 0.07219769102760731, + 0.037554397489222895, + 0.01562091572074623, + 0.007906733903153745, + 0.08199861838781917, + 0.04296178257818778, + 0.023003873643812258, + 0.012430447863161867, + 0.006498915565470204, + 0.003088434217978626, + 0.0012759464388217596, + 0.0004602367106067752, + 0.00015193112252912742, + 0.010998849277764063, + 0.0036725539640628767, + 0.00000940214555605016, + 0.000005123818821076863, + 0.000002420851212757941, + 0.0000011788138498227822, + 5.838445319494079e-7, + 2.9186632001632325e-7, + 1.4685174880459147e-7, + 7.445498083086541e-8, + 3.822240071860747e-8, + 2.0041084762178465e-8, + 1.0861916703178529e-8, + 6.154797947345982e-9, + 3.6616564018136547e-9, + 2.2747845028860125e-9, + 1.4624148152085564e-9, + 9.713987073527907e-10, + 6.756565790971829e-10, + 5.025325021839624e-10, + 4.045438289142682e-10, + 5.390259353584138e-10 + ], "description": "[comment](https://github.com/sourcecred-test/example-github/issues/2#issuecomment-385576936) on [#2](https://github.com/sourcecred-test/example-github/issues/2): A referencing issue.", "minted": 1, "timestamp": 1525138238000 @@ -209,6 +859,56 @@ "373768442" ], "cred": 2.8015678617071846, + "credOverTime": [ + 0, + 0, + 1.366821004749631, + 0.7182807606664318, + 0.3593837663124705, + 0.17993459512583246, + 0.09021025578738612, + 0.04534870083218045, + 0.022918744594378454, + 0.008161215159960772, + 0.004315397122437471, + 0.0023848511182955607, + 0.0014049106531967123, + 0.000888604001087679, + 0.0005892138455035105, + 0.0003115435080242968, + 0.000189810376586401, + 0.0001467391617996138, + 0.0000783046145044407, + 0.000039905810251396235, + 0.000019888709457387996, + 0.000009866880448442177, + 0.000004889778543046598, + 0.000002398288944339786, + 0.0000011463468945151585, + 5.251881120090673e-7, + 0.00008433294605746034, + 0.000036284660715742975, + 8.435824651008287e-8, + 6.112069994355283e-8, + 3.0471648268013014e-8, + 1.512517299719251e-8, + 7.450308935682707e-9, + 3.6233151839339216e-9, + 1.729812310547704e-9, + 8.098884269422388e-10, + 3.7683714827731783e-10, + 1.796625977553174e-10, + 9.075233865244992e-11, + 4.940764095064919e-11, + 2.88750146257814e-11, + 1.7822420261990192e-11, + 1.1434282979748922e-11, + 7.590685302563523e-12, + 5.278862807864922e-12, + 3.926091562841635e-12, + 3.160510229507518e-12, + 4.211144057861768e-12 + ], "description": "[comment](https://github.com/sourcecred-test/example-github/issues/6#issuecomment-373768442) on [#6](https://github.com/sourcecred-test/example-github/issues/6): An issue with comments", "minted": 1, "timestamp": 1521217642000 @@ -225,6 +925,56 @@ "373768538" ], "cred": 3.493088229494534, + "credOverTime": [ + 0, + 0, + 1.7022795272866091, + 0.8962982094984773, + 0.4484395269576658, + 0.22450939495291222, + 0.11254461747491125, + 0.05656290076679136, + 0.02857294193570777, + 0.010438789093769696, + 0.005509964551996323, + 0.0030344960719362966, + 0.0017757869843493801, + 0.0011095209728026261, + 0.0007204287357333964, + 0.00036904224093248044, + 0.00021591921185594128, + 0.00034499156653751114, + 0.00014067047109520025, + 0.0000568346596944793, + 0.000023939789859418708, + 0.000010725115074648086, + 0.000005050648753932982, + 0.000002425298848188901, + 0.0000011505457655079855, + 5.25820040874226e-7, + 0.00008435518329254014, + 0.00003628818497752804, + 8.436276009303842e-8, + 6.112190192318474e-8, + 3.047193199031276e-8, + 1.51252418522632e-8, + 7.450325973648256e-9, + 3.6233194418263724e-9, + 1.7298133819280143e-9, + 8.098886983700692e-10, + 3.768372178770094e-10, + 1.7966261599476564e-10, + 9.075234359397902e-11, + 4.9407642350394686e-11, + 2.8875015042110504e-11, + 1.7822420391304216e-11, + 1.1434283021314784e-11, + 7.590685316368432e-12, + 5.278862812665922e-12, + 3.926091564627069e-12, + 3.1605102302261816e-12, + 4.2111440583405846e-12 + ], "description": "[comment](https://github.com/sourcecred-test/example-github/issues/6#issuecomment-373768538) on [#6](https://github.com/sourcecred-test/example-github/issues/6): An issue with comments", "minted": 1, "timestamp": 1521217661000 @@ -241,6 +991,56 @@ "385223316" ], "cred": 2.0342606197228528, + "credOverTime": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0.9946325480157708, + 0.5024943736761925, + 0.25575833358756095, + 0.13139264245422727, + 0.0679938809178382, + 0.035175952705059986, + 0.014477652434995911, + 0.007209684544003826, + 0.004930977713017962, + 0.0025383682387874577, + 0.0013598734372243218, + 0.0007766421155699084, + 0.0004764419659943668, + 0.000304339967962333, + 0.00019032493468224668, + 0.00011007996375724063, + 0.000057261782888364786, + 0.009910923592155039, + 0.004444376830911038, + 0.000010555971020981256, + 0.000007735640570093225, + 0.000003878285948969947, + 0.0000019305248139173342, + 9.522826855759123e-7, + 4.6345393334478927e-7, + 2.2133700749142474e-7, + 1.0364723327175104e-7, + 4.823085862937615e-8, + 2.2995788769037404e-8, + 1.1616040885324404e-8, + 6.324107710339455e-9, + 3.6959813239057222e-9, + 2.281263452556016e-9, + 1.463586187374537e-9, + 9.71607043578706e-10, + 6.756942046439368e-10, + 5.025396327419554e-10, + 4.04545274237065e-10, + 5.390264159941434e-10 + ], "description": "[comment](https://github.com/sourcecred-test/example-github/issues/6#issuecomment-385223316) on [#6](https://github.com/sourcecred-test/example-github/issues/6): An issue with comments", "minted": 1, "timestamp": 1524973307000 @@ -257,6 +1057,56 @@ "417104047" ], "cred": 504.37376817302504, + "credOverTime": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 347.68602387181505, + 155.7952671648864, + 0.3591758372633302, + 0.2656225725345583, + 0.13289344244008672, + 0.06642865933136474, + 0.03317493574258757, + 0.016566951733968344, + 0.008307424372849568, + 0.00423691319338169, + 0.002255853982859489, + 0.0012926215623712337, + 0.0008052032231154888, + 0.000533795912799351, + 0.00036457652515940487, + 0.0002511030505374381, + 0.000173177853694126, + 0.00012029456374691845, + 0.00008592186186486637, + 0.00006485341390009941, + 0.000052612633134377124, + 0.00007038512829901614 + ], "description": "[comment](https://github.com/sourcecred-test/example-github/issues/6#issuecomment-417104047) on [#6](https://github.com/sourcecred-test/example-github/issues/6): An issue with comments", "minted": 1, "timestamp": 1535576390000 @@ -273,6 +1123,56 @@ "369162222" ], "cred": 3.119026688513382, + "credOverTime": [ + 1.5908084024994373, + 0.7955072319361579, + 0.34562730424696403, + 0.18140699859174667, + 0.09087660130430233, + 0.04561090444624343, + 0.022977449871940205, + 0.011659561810317519, + 0.005998273482173552, + 0.01284022665373645, + 0.0069378783527539655, + 0.003891841937940138, + 0.002230275970864854, + 0.001243274729219017, + 0.0006341192141258319, + 0.00023141210493122719, + 0.00009526929709625709, + 0.00030297573970117773, + 0.00008839583841365596, + 0.000026172464731043917, + 0.000008426498584408977, + 0.0000031155440232980283, + 0.0000013260855472183006, + 6.133467250601408e-7, + 2.881420323027952e-7, + 1.314623072379864e-7, + 0.00001281770405516885, + 0.00000536858792603249, + 1.2557683531046663e-8, + 9.013459621192017e-9, + 4.5145829889246055e-9, + 2.2614232334427554e-9, + 1.1334975097170665e-9, + 5.690873689320502e-10, + 2.8671093203416425e-10, + 1.4541332290820208e-10, + 7.465446860020085e-11, + 3.91435095797025e-11, + 2.1214945187990567e-11, + 1.2021172355536479e-11, + 7.1516983134366546e-12, + 4.4429466031328935e-12, + 2.8562815687914712e-12, + 1.8972639782477653e-12, + 1.3196420619745335e-12, + 9.815089072076077e-13, + 7.901247117083908e-13, + 1.0527850605589328e-12 + ], "description": "[comment](https://github.com/sourcecred-test/example-github/pull/3#issuecomment-369162222) on [#3](https://github.com/sourcecred-test/example-github/pull/3): Add README, merge via PR.", "minted": 1, "timestamp": 1519807420000 @@ -289,6 +1189,56 @@ "396430464" ], "cred": 3.8210842968806733, + "credOverTime": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1.314211476080893, + 0.6580514501796884, + 0.3643747244090727, + 0.18300978822763894, + 0.09223573837453626, + 0.04666341555188381, + 0.023641147829338235, + 0.01191558291055094, + 0.005929672599799551, + 0.0029100572183169966, + 0.0014229334857982071, + 0.15827666186353187, + 0.08087352885920707, + 0.4418721896949703, + 0.19438707518722795, + 0.11284053874688137, + 0.06197193431563944, + 0.03268187000338902, + 0.01681039382156379, + 0.008524548288061248, + 0.004286865003778167, + 0.0021425695041239904, + 0.0010637252169309608, + 0.000523146728450693, + 0.00025352944596781075, + 0.00011983611133102024, + 0.00005413943269722232, + 0.00002272480580575351, + 0.000008684747875621199, + 0.0000030267117311423943, + 9.806769299887634e-7, + 3.062632050360335e-7, + 3.458385843455548e-8 + ], "description": "[comment](https://github.com/sourcecred-test/example-github/pull/5#issuecomment-396430464) on [#5](https://github.com/sourcecred-test/example-github/pull/5): This pull request will be more contentious. I can feel it...", "minted": 1, "timestamp": 1528764380000 @@ -306,6 +1256,56 @@ "171460198" ], "cred": 22.134653244287485, + "credOverTime": [ + 1.4960063907316492, + 0.7481318448322765, + 0.3709005470644471, + 0.1830334896268978, + 0.09162965943748858, + 0.045928493269077206, + 0.023076651163122158, + 0.011648407186777355, + 0.0059299541319595105, + 0.5437865521755813, + 0.31323603654562376, + 0.19303266522746867, + 0.12542072029470078, + 0.08221590389911568, + 0.05166628829109134, + 0.024204941735886457, + 0.012964095466686056, + 0.13307713166120058, + 0.06490939935655404, + 0.029858174762075446, + 0.012596118674194643, + 0.004672309494923891, + 0.0014601896333180171, + 0.0003762697125120844, + 0.00008109620754381373, + 0.000015335700276796933, + 0.000621836966646742, + 0.00011099897416669493, + 1.8293592083213895e-7, + 8.789989219527953, + 4.393113440133505, + 2.1955393253537463, + 1.0970869989745886, + 0.5479719712182093, + 0.2734560227017446, + 0.1362222665168976, + 0.06762525285710261, + 0.03334411787213314, + 0.016222504743304906, + 0.007693227074591502, + 0.0034866637366121923, + 0.0014714176993299477, + 0.0005636417383311013, + 0.00019325178663171373, + 0.00005967846482149134, + 0.000016986245338111964, + 0.000004577525105662931, + 9.949583532483367e-7 + ], "description": "[comment](https://github.com/sourcecred-test/example-github/pull/5#discussion_r171460198) on [review](https://github.com/sourcecred-test/example-github/pull/5#pullrequestreview-100313899) on [#5](https://github.com/sourcecred-test/example-github/pull/5): This pull request will be more contentious. I can feel it...", "minted": 1, "timestamp": 1519878210000 @@ -318,6 +1318,56 @@ "MDY6Q29tbWl0MTIzMjU1MDA2OjBhMjIzMzQ2YjRlNmRlYzAxMjdiMWU2YWE4OTJjNGVlMDQyNGI2NmE=" ], "cred": 3.8900937101434803, + "credOverTime": [ + 1.9736876233023088, + 0.9869614813798115, + 0.43353020516114316, + 0.2242323388968942, + 0.11231853055740873, + 0.05636097149010442, + 0.028381349656199498, + 0.014389913715041934, + 0.0073909408363299935, + 0.02396213559866031, + 0.012912718379195021, + 0.007205551566487902, + 0.004087649043197289, + 0.002235785564895878, + 0.0011021050259129091, + 0.00037985661976446005, + 0.00014372528770640382, + 0.0005719564379778453, + 0.00015897522926064218, + 0.00004316744571183731, + 0.000012161718682957427, + 0.000003844002021207819, + 0.0000014481298184022554, + 6.305425205492288e-7, + 2.9019132311418974e-7, + 1.3167738322431823e-7, + 0.000012822928255375526, + 0.000005369109403610264, + 1.2558206723285636e-8, + 9.01357762652373e-9, + 4.514608026280765e-9, + 2.2614289379539675e-9, + 1.1334988720722268e-9, + 5.690877022588687e-10, + 2.867110147342783e-10, + 1.4541334360560895e-10, + 7.465447382890157e-11, + 3.9143510919979295e-11, + 2.1214945539504103e-11, + 1.2021172451123171e-11, + 7.151698340756619e-12, + 4.4429466113806395e-12, + 2.856281571404396e-12, + 1.8972639791111173e-12, + 1.3196420622744648e-12, + 9.815089073191573e-13, + 7.901247117532997e-13, + 1.05278506058886e-12 + ], "description": "[0a22334](https://github.com/sourcecred-test/example-github/commit/0a223346b4e6dec0127b1e6aa892c4ee0424b66a): Merge pull request #3 from sourcecred/add-readme", "minted": 1, "timestamp": 1519807427000 @@ -330,6 +1380,56 @@ "MDY6Q29tbWl0MTIzMjU1MDA2OjZiZDFiNGMwYjcxOWMyMmM2ODhhNzQ4NjNiZTA3YTY5OWI3YjliMzQ=" ], "cred": 1.5906962249252243, + "credOverTime": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0.63580137747721, + 0.4708495891695139, + 0.23621552483979505, + 0.11870421639593073, + 0.05987859983446461, + 0.030442875586675553, + 0.01571676634236877, + 0.008349022332680011, + 0.004660504484904627, + 0.0028093268722434173, + 0.001869483756755707, + 0.0013681400069987856, + 0.0010587891270753018, + 0.0008216116652353997, + 0.0006187067754472106, + 0.0004534261403420924, + 0.0003334464615078265, + 0.00025549634280901774, + 0.00020885248977659456, + 0.00028046882349010653 + ], "description": "[6bd1b4c](https://github.com/sourcecred-test/example-github/commit/6bd1b4c0b719c22c688a74863be07a699b7b9b34): A commit from someone with no GitHub account", "minted": 1, "timestamp": 1536806901000 @@ -342,6 +1442,56 @@ "MDY6Q29tbWl0MTIzMjU1MDA2OjZkNWIzYWEzMWViYjY4YTA2Y2ViNDZiYmQ2Y2Y0OWI2Y2NkNmY1ZTY=" ], "cred": 3.683594905039237, + "credOverTime": [ + 1.8269902836078808, + 0.9136024099506344, + 0.40284829667624295, + 0.20910039761233118, + 0.10472855542336271, + 0.05254245251550767, + 0.02644886559439753, + 0.013401057383339817, + 0.006875061552883559, + 0.0602219000115579, + 0.03202465346983739, + 0.01746592513902397, + 0.00956510134692921, + 0.004994802906240324, + 0.0023358519174687545, + 0.0001797577814373743, + 0.00010178671438249651, + 0.00007102648569758715, + 0.0000369290457759136, + 0.000018798485372183348, + 0.000009424593466393461, + 0.000004648288859100662, + 0.0000022350575332237065, + 0.0000010310012556388203, + 4.481149404511082e-7, + 1.8197386657522542e-7, + 0.000015722799957163817, + 0.000005974713250560394, + 0.0000011329861731514649, + 1.5543543169646862e-7, + 2.798373770157749e-8, + 5.640883864979223e-9, + 1.5920489163102714e-9, + 6.290792225988891e-10, + 2.944059926698045e-10, + 1.4638101215287133e-10, + 7.47745963939639e-11, + 3.91583858384514e-11, + 2.1216771573829572e-11, + 1.2021393251541728e-11, + 7.151724400302009e-12, + 4.442949552212047e-12, + 2.8562818799313567e-12, + 1.897264008608032e-12, + 1.3196420648470505e-12, + 9.81508907528053e-13, + 7.901247117697013e-13, + 1.0527850605893656e-12 + ], "description": "[6d5b3aa](https://github.com/sourcecred-test/example-github/commit/6d5b3aa31ebb68a06ceb46bbd6cf49b6ccd6f5e6): This pull request will be more contentious. I can feel it... (#5)", "minted": 1, "timestamp": 1519878354000 @@ -354,6 +1504,56 @@ "MDY6Q29tbWl0MTIzMjU1MDA2OmM0MzBiZDc0NDU1MTA1Zjc3MjE1ZWNlNTE5NDUwOTRjZWVlZTZjODY=" ], "cred": 2.431360411380684, + "credOverTime": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0.9774396775649541, + 0.7231957135613937, + 0.36215748707466866, + 0.18134501424346974, + 0.09084196944140116, + 0.04557441059908767, + 0.022958284969286234, + 0.011683293780568474, + 0.00608131155113825, + 0.003307209737098338, + 0.001934519777092554, + 0.0012506885847248818, + 0.0008973228887449109, + 0.000690295087544745, + 0.0005394188072702292, + 0.00041459869530467095, + 0.00031657651145444856, + 0.00024841863607912566, + 0.0002058185991471863, + 0.00027838127025449214 + ], "description": "[c430bd7](https://github.com/sourcecred-test/example-github/commit/c430bd74455105f77215ece51945094ceeee6c86): Hello from credbot!", "minted": 1, "timestamp": 1536788634000 @@ -366,6 +1566,56 @@ "MDY6Q29tbWl0MTIzMjU1MDA2OmVjOTFhZGI3MThhNjA0NWI0OTIzMDNmMDBkOGU4YmViOTU3ZGM3ODA=" ], "cred": 7.635343061238825, + "credOverTime": [ + 1.2085730668627523, + 0.6046966193074691, + 0.25827304416730956, + 0.1391704256925841, + 0.07002215769215232, + 0.035445772622981875, + 0.018153442278188648, + 0.009499240441287768, + 0.005156765254333431, + 0.002081897343759514, + 0.0012884929852939493, + 0.0008443653776655564, + 0.0005622162603521522, + 0.0003620693515391565, + 0.0002186585961108187, + 0.00009906799193067949, + 0.00005189027309478458, + 0.000035950994051912, + 0.00001834498874125335, + 0.000009315526430327728, + 0.000004726817688603833, + 0.000002396160327651004, + 0.0000012063340788768252, + 5.967190272759355e-7, + 2.862291205470862e-7, + 1.3127852103059512e-7, + 0.00001281401534892233, + 0.0000053683864534893555, + 2.3483886296918275, + 1.4648658132262868, + 0.7333207769899687, + 0.366974174479255, + 0.1835916984417487, + 0.09183197292945891, + 0.04592801400620831, + 0.022964241565316127, + 0.011475572986841114, + 0.005729780826018419, + 0.0028608279771388952, + 0.0014324668299371794, + 0.0007205439822600161, + 0.0003598749355004488, + 0.0001730054760964302, + 0.00007795848198248359, + 0.000033240851397310665, + 0.000013967240581007112, + 0.000006016057179152869, + 0.00000415431522615306 + ], "description": "[ec91adb](https://github.com/sourcecred-test/example-github/commit/ec91adb718a6045b492303f00d8e8beb957dc780): Commit without pull request.", "minted": 1, "timestamp": 1519807271000 @@ -378,6 +1628,56 @@ "MDY6Q29tbWl0MTIzMjU1MDA2OmVjYzg4OWRjOTRjZjZkYTE3YWU2ZWFiNWJiN2I3MTU1ZjU3NzUxOWQ=" ], "cred": 7.635343061238825, + "credOverTime": [ + 1.2085730668627523, + 0.6046966193074691, + 0.25827304416730956, + 0.1391704256925841, + 0.07002215769215232, + 0.035445772622981875, + 0.018153442278188648, + 0.009499240441287768, + 0.005156765254333431, + 0.002081897343759514, + 0.0012884929852939493, + 0.0008443653776655564, + 0.0005622162603521522, + 0.0003620693515391565, + 0.0002186585961108187, + 0.00009906799193067949, + 0.00005189027309478458, + 0.000035950994051912, + 0.00001834498874125335, + 0.000009315526430327728, + 0.000004726817688603833, + 0.000002396160327651004, + 0.0000012063340788768252, + 5.967190272759355e-7, + 2.862291205470862e-7, + 1.3127852103059512e-7, + 0.00001281401534892233, + 0.0000053683864534893555, + 2.3483886296918275, + 1.4648658132262868, + 0.7333207769899687, + 0.366974174479255, + 0.1835916984417487, + 0.09183197292945891, + 0.04592801400620831, + 0.022964241565316127, + 0.011475572986841114, + 0.005729780826018419, + 0.0028608279771388952, + 0.0014324668299371794, + 0.0007205439822600161, + 0.0003598749355004488, + 0.0001730054760964302, + 0.00007795848198248359, + 0.000033240851397310665, + 0.000013967240581007112, + 0.000006016057179152869, + 0.00000415431522615306 + ], "description": "[ecc889d](https://github.com/sourcecred-test/example-github/commit/ecc889dc94cf6da17ae6eab5bb7b7155f577519d): Add README, merge via PR.", "minted": 1, "timestamp": 1519807329000 @@ -392,6 +1692,56 @@ "1" ], "cred": 9.250716448278208, + "credOverTime": [ + 3.824858293315526, + 1.9128612921060726, + 0.890154487765612, + 0.4238898646864066, + 0.21256848838286158, + 0.10690547559380198, + 0.05407035835881212, + 0.027645789608199366, + 0.014419708781837744, + 0.15141052253114107, + 0.08778881909175007, + 0.05470773530111503, + 0.036150070306529135, + 0.02420508929043225, + 0.01553864937841934, + 0.007415696999144467, + 0.004019389495066662, + 0.04256880557757961, + 0.02098056626765584, + 0.009798608636462529, + 0.004241543645718275, + 0.0016438151637336639, + 0.000550133623057628, + 0.00015551745504630541, + 0.000037250125945572335, + 0.000007822921840627605, + 0.0003492590720946102, + 0.00006952857364297259, + 0.7689364246796546, + 0.2762594190414796, + 0.13827002202970887, + 0.0691811410279902, + 0.03460109017372064, + 0.01729932294338142, + 0.00864422632248839, + 0.004314460384992874, + 0.0021481318214578576, + 0.0010643914731995015, + 0.0005229118511198968, + 0.0002532384008651022, + 0.00011962245725792522, + 0.00005399719123148255, + 0.00002263149570874828, + 0.00000862252479368811, + 0.0000029834393775642473, + 9.485079594998387e-7, + 2.803722776009197e-7, + 8.403600998968557e-11 + ], "description": "[#1](https://github.com/sourcecred-test/example-github/issues/1): An example issue.", "minted": 2, "timestamp": 1519807088000 @@ -406,6 +1756,56 @@ "10" ], "cred": 6.770418609862759, + "credOverTime": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 2.667887683731262, + 1.3441825935293694, + 0.6799578461046039, + 0.34568840786398203, + 0.17615683381053596, + 0.08918545482203517, + 0.04427647347619358, + 0.021271965129189347, + 0.009784340039630949, + 0.9660808628570273, + 0.41966277488947523, + 0.002906473355098143, + 0.0013152611167958847, + 0.0008209625350594507, + 0.0005200965881948416, + 0.000319628830513424, + 0.0001856538393227054, + 0.00010207689381005124, + 0.000053982317863171926, + 0.000027922994724051092, + 0.000014320898327576313, + 0.000007377271061147086, + 0.000003881974233323681, + 0.0000021323409149102596, + 0.000001243173934952688, + 7.69560574628345e-7, + 5.022537228712963e-7, + 3.469868253650592e-7, + 2.57506425753117e-7, + 2.0716578169382225e-7, + 2.760062703716255e-7 + ], "description": "[#10](https://github.com/sourcecred-test/example-github/issues/10): Paired with multireference", "minted": 2, "timestamp": 1530297021000 @@ -420,6 +1820,56 @@ "11" ], "cred": 14.105993387589589, + "credOverTime": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 7.5617882237251495, + 3.2585691701044506, + 1.6320920844392097, + 0.8176029422569892, + 0.4099044780080111, + 0.20590492858225737, + 0.10384872604625896, + 0.052786377826434236, + 0.027223003888150084, + 0.01440524551457273, + 0.007949415183277452, + 0.004654213608682269, + 0.00291375711273541, + 0.0019310623692375532, + 0.0013258282542602774, + 0.0009302089725603654, + 0.0006724463426497834, + 0.000512250504516231, + 0.00041798890206049693, + 0.0005610359481268261 + ], "description": "[#11](https://github.com/sourcecred-test/example-github/issues/11): An issue with a comment from a deleted user", "minted": 2, "timestamp": 1536789479000 @@ -434,6 +1884,56 @@ "12" ], "cred": 5.294237506404908, + "credOverTime": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 2.349027830446882, + 1.465605242550504, + 0.7340566467862959, + 0.36770877179405537, + 0.1843262218869038, + 0.09256666372858775, + 0.046662866273725824, + 0.023699095733113736, + 0.012210008627377046, + 0.006463191533371098, + 0.0035931980107711797, + 0.00216588707735048, + 0.0014583773134387455, + 0.0010968953194663083, + 0.0008816331717006017, + 0.000716591979484459, + 0.0005778565357228186, + 0.00047164036421711567, + 0.00040027073552296506, + 0.0005486165364175695 + ], "description": "[#12](https://github.com/sourcecred-test/example-github/issues/12): An issue with commit references", "minted": 2, "timestamp": 1536878086000 @@ -448,6 +1948,56 @@ "13" ], "cred": 6.096967388154107, + "credOverTime": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 2.8110617806308036, + 1.6320804830289908, + 0.8177383266766413, + 0.40993700971065683, + 0.20580612060181852, + 0.10366454955241496, + 0.05256547361132493, + 0.026999091280174525, + 0.014200457686240385, + 0.007784400138798061, + 0.004554992561903611, + 0.0029081426300832853, + 0.002032321954551418, + 0.0015117577330263688, + 0.0011438067105154497, + 0.0008570805183249685, + 0.0006435386509043961, + 0.0005002784245974282, + 0.0004126768864840099, + 0.0005650991658522398 + ], "description": "[#13](https://github.com/sourcecred-test/example-github/issues/13): An issue with reactions", "minted": 2, "timestamp": 1536878137000 @@ -462,6 +2012,56 @@ "2" ], "cred": 14.437658732555255, + "credOverTime": [ + 3.3541543693307667, + 1.6772516257505046, + 1.4245859760587614, + 0.7134740848997609, + 0.3571074752733236, + 0.17892322117266235, + 0.0898305294870088, + 0.04528309036882712, + 0.023006981003458, + 2.0571942646434342, + 1.0396518035941762, + 0.5295162306684266, + 0.272404771430693, + 0.14135454874359665, + 0.07352352145108847, + 0.03058780413954168, + 0.015503202811257692, + 0.6247480006236498, + 0.34419995554192806, + 0.20030653528676065, + 0.12298216126743267, + 0.07735132818924464, + 0.047484562319833154, + 0.02729749587410463, + 0.014381358838191359, + 0.006885859291337955, + 0.6732026587953835, + 0.272864190584661, + 0.0016319557730196943, + 0.0005752788294387087, + 0.000248264174615312, + 0.00009716343040987764, + 0.00003383441830830834, + 0.000010529659738851442, + 0.0000030039348585279342, + 8.096536200552789e-7, + 2.1140600135349643e-7, + 5.451338997357125e-8, + 1.4099748546821968e-8, + 3.727895947623157e-9, + 1.0323444978631736e-9, + 3.0569936530626936e-10, + 9.755565281120308e-11, + 3.3752743240788276e-11, + 1.2984128041780586e-11, + 5.8008438692720986e-12, + 3.1239413462181336e-12, + 3.1340589264544193e-12 + ], "description": "[#2](https://github.com/sourcecred-test/example-github/issues/2): A referencing issue.", "minted": 2, "timestamp": 1519807129000 @@ -476,6 +2076,56 @@ "4" ], "cred": 5.685066854410411, + "credOverTime": [ + 2.930357607376002, + 1.4655348567596118, + 0.6620387873843013, + 0.30955201411714073, + 0.15524960447489183, + 0.07809686308237968, + 0.03951813646013927, + 0.02022421436398839, + 0.01056824723128225, + 0.005560536536025914, + 0.003205656429868533, + 0.001977891668110623, + 0.0012866954256598112, + 0.0008434097384237959, + 0.0005280974914380186, + 0.00022863674341882387, + 0.00012207941442737066, + 0.00006693775070596545, + 0.0000347268731254862, + 0.000017847309396379702, + 0.000009154991705145625, + 0.000004691131054838279, + 0.0000023834601996349358, + 0.0000011852080174613, + 5.686932515987198e-7, + 2.5975619239751065e-7, + 0.0000251812164220384, + 0.00001048735777328977, + 4.232799891150608e-8, + 2.6773189358824976e-8, + 1.3404295992324557e-8, + 6.7092880050564185e-9, + 3.3579447828344786e-9, + 1.6810172603051213e-9, + 8.421120932660923e-10, + 4.224435060840082e-10, + 2.1248396625603324e-10, + 1.0747506452421736e-10, + 5.5041364078375076e-11, + 2.8942283577609874e-11, + 1.5947006538959358e-11, + 9.348230235823846e-12, + 5.8201675023290825e-12, + 3.815124327475587e-12, + 2.6424535266047655e-12, + 1.963358631370436e-12, + 1.5802486825120879e-12, + 2.1056598131142903e-12 + ], "description": "[#4](https://github.com/sourcecred-test/example-github/issues/4): A closed pull request", "minted": 2, "timestamp": 1519807454000 @@ -490,6 +2140,56 @@ "6" ], "cred": 211.3423976445397, + "credOverTime": [ + 0, + 0, + 4.207623000475753, + 2.0586396013418935, + 1.0297694115416738, + 0.5153326765145666, + 0.2581153780607126, + 0.12950908432985386, + 0.06520955662467852, + 0.2937913862266011, + 0.14870466223546042, + 0.07597935956068465, + 0.03934424945528292, + 0.020693915279032894, + 0.011059049086486259, + 0.004818726543544927, + 0.00266468875651887, + 0.0021766306443378146, + 0.0013098987750108212, + 0.0007881651285390535, + 0.0004484941641262586, + 0.00023130647547300634, + 0.00010512704364676494, + 0.00004137758695224636, + 0.000014131626848725022, + 0.000004311849685765876, + 139.4493986388686, + 62.65365880988149, + 0.14521307030487146, + 0.10851764246968228, + 0.05540141273271252, + 0.02876422096337369, + 0.015363641135767806, + 0.008542254704980332, + 0.004948919794360155, + 0.002917655030234215, + 0.00167171186612394, + 0.0008899815526622836, + 0.0004295087771112669, + 0.0001873062033859569, + 0.00007482630550189615, + 0.00002803998608226198, + 0.000010103484689099167, + 0.0000035886818340843298, + 0.0000012962395547725774, + 4.919996751267762e-7, + 2.0014705534704614e-7, + 1.3408256735061692e-7 + ], "description": "[#6](https://github.com/sourcecred-test/example-github/issues/6): An issue with comments", "minted": 2, "timestamp": 1521217624000 @@ -504,6 +2204,56 @@ "7" ], "cred": 4.946610260970458, + "credOverTime": [ + 0, + 0, + 0, + 2.469510460417959, + 1.2350982371886798, + 0.6178903791937491, + 0.30928850863100094, + 0.15499223252356076, + 0.07785169141688973, + 0.038177852201048225, + 0.019643204735843203, + 0.010359242067507012, + 0.005687886430769844, + 0.003303638369787934, + 0.0020371979294730607, + 0.000973024892721805, + 0.0006119747484182012, + 0.0003955228654596596, + 0.00023267935426484618, + 0.0001295936396809997, + 0.00006961159943940444, + 0.00003656443566989164, + 0.000018817926797258705, + 0.000009418969891050447, + 0.000004534431627300042, + 0.000002074589289402096, + 0.00020128091683201658, + 0.00008386387125814017, + 3.385530042634697e-7, + 2.1416317630758788e-7, + 1.0722876482599791e-7, + 5.367290268370644e-8, + 2.6863207462483672e-8, + 1.3448050239687132e-8, + 6.736874732157548e-9, + 3.3795425295511193e-9, + 1.6998703433365957e-9, + 8.598001656123411e-10, + 4.4033082287433517e-10, + 2.3153824502866478e-10, + 1.2757604581290826e-10, + 7.47858399819341e-11, + 4.656133942573918e-11, + 3.052099442548516e-11, + 2.1139628145543145e-11, + 1.570686902596305e-11, + 1.2641989450035413e-11, + 1.6845278498210618e-11 + ], "description": "[#7](https://github.com/sourcecred-test/example-github/issues/7): An issue with an extremely long title, which even has a VerySuperFragicalisticialiManyCharacterUberLongTriplePlusGood word in it, and should really be truncated intelligently or something", "minted": 2, "timestamp": 1521569949000 @@ -518,6 +2268,56 @@ "8" ], "cred": 4.946610260970458, + "credOverTime": [ + 0, + 0, + 0, + 2.469510460417959, + 1.2350982371886798, + 0.6178903791937491, + 0.30928850863100094, + 0.15499223252356076, + 0.07785169141688973, + 0.038177852201048225, + 0.019643204735843203, + 0.010359242067507012, + 0.005687886430769844, + 0.003303638369787934, + 0.0020371979294730607, + 0.000973024892721805, + 0.0006119747484182012, + 0.0003955228654596596, + 0.00023267935426484618, + 0.0001295936396809997, + 0.00006961159943940444, + 0.00003656443566989164, + 0.000018817926797258705, + 0.000009418969891050447, + 0.000004534431627300042, + 0.000002074589289402096, + 0.00020128091683201658, + 0.00008386387125814017, + 3.385530042634697e-7, + 2.1416317630758788e-7, + 1.0722876482599791e-7, + 5.367290268370644e-8, + 2.6863207462483672e-8, + 1.3448050239687132e-8, + 6.736874732157548e-9, + 3.3795425295511193e-9, + 1.6998703433365957e-9, + 8.598001656123411e-10, + 4.4033082287433517e-10, + 2.3153824502866478e-10, + 1.2757604581290826e-10, + 7.47858399819341e-11, + 4.656133942573918e-11, + 3.052099442548516e-11, + 2.1139628145543145e-11, + 1.570686902596305e-11, + 1.2641989450035413e-11, + 1.6845278498210618e-11 + ], "description": "[#8](https://github.com/sourcecred-test/example-github/issues/8): Issue with Unicode: ศดแˆฒ๐ฃณๆฅข๐Ÿ‘ :heart: ๐ค”๐ค๐ค€๐ค‘๐ค๐ค‰๐ค”๐คŒ๐ค„๐ค๐ค โค๏ธ", "minted": 2, "timestamp": 1521570243000 @@ -532,6 +2332,56 @@ "3" ], "cred": 10.732840975697513, + "credOverTime": [ + 5.26509829499395, + 2.633008528836249, + 1.2091339690288305, + 0.5893049482582304, + 0.2952833952310201, + 0.1482708977560499, + 0.07476232684254525, + 0.038003552488408435, + 0.0196151932197188, + 0.16024194501751776, + 0.08979268187096588, + 0.053694390259079204, + 0.03421881125017456, + 0.02250411534140247, + 0.01449804462873075, + 0.007041276054580508, + 0.0038883247645492263, + 0.03922457789812052, + 0.01950296089978843, + 0.009150562717450994, + 0.003967973743096852, + 0.0015371605483806743, + 0.000513117423670849, + 0.00014433088663639643, + 0.000034349287905611155, + 0.000007201729957656557, + 0.0003279837691950666, + 0.00006981193657549342, + 1.3510278583998468e-7, + 6.334515599288029e-8, + 2.6747142535459633e-8, + 1.2221995544609972e-8, + 5.8384698177727455e-9, + 2.85658375789761e-9, + 1.4169677144097803e-9, + 7.096785572784592e-10, + 3.589317151680156e-10, + 1.8407829539950448e-10, + 9.657821186130824e-11, + 5.253586770791491e-11, + 3.0034410024566636e-11, + 1.8135664516158873e-11, + 1.14912572172713e-11, + 7.593817766223542e-12, + 5.2762592261102686e-12, + 3.92463896821685e-12, + 3.159987649390457e-12, + 4.2112376265305034e-12 + ], "description": "[#3](https://github.com/sourcecred-test/example-github/pull/3): Add README, merge via PR.", "minted": 4, "timestamp": 1519807399000 @@ -546,6 +2396,56 @@ "5" ], "cred": 14.89549879746905, + "credOverTime": [ + 6.190511489539374, + 3.0953903436146732, + 1.4511409197146963, + 0.7050929299344334, + 0.35284691169545523, + 0.17672592385083583, + 0.08866642602028092, + 0.04463873109846198, + 0.022628214753257873, + 0.5829545184003584, + 0.31071092870531264, + 0.17246812930340782, + 0.10013565405828469, + 0.059927234536461364, + 0.03580456901690611, + 0.5318369910472912, + 0.26684341787901183, + 0.16795521268900154, + 0.08448859473605583, + 0.04290320149613977, + 0.02212803965462086, + 0.011703749469632924, + 0.006405423823660204, + 0.0036110022490572695, + 0.0020245129558901596, + 0.001059281588431413, + 0.10922466185025231, + 0.04319598189670826, + 0.1550445642013515, + 0.039895991246344235, + 0.012602149563056624, + 0.003616754759498113, + 0.0009757929967219144, + 0.0002539731611334083, + 0.00006480868148725813, + 0.000016338481403260027, + 0.000004085545397351657, + 0.000001014696390433121, + 2.4961291060083027e-7, + 6.051210613324529e-8, + 1.4318404716795624e-8, + 3.245611839822386e-9, + 6.88850871001957e-10, + 1.3703889232533541e-10, + 2.7835872865139956e-11, + 7.580712677253217e-12, + 3.731409539068995e-12, + 4.243958696481264e-12 + ], "description": "[#5](https://github.com/sourcecred-test/example-github/pull/5): This pull request will be more contentious. I can feel it...", "minted": 4, "timestamp": 1519807636000 @@ -560,6 +2460,56 @@ "9" ], "cred": 11.767241520609149, + "credOverTime": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 4.89957945206093, + 2.4554480317848713, + 1.2325479520850773, + 0.6198542450211193, + 0.31199424976600715, + 0.15667839910173254, + 0.05077298095849679, + 0.025404147267310558, + 0.013890303343441298, + 0.007441542902961865, + 0.004190516976360531, + 0.0025257030155399944, + 0.001626446959289889, + 0.0010771356572576015, + 0.0006885655706246808, + 0.0004026992514889078, + 0.00021071378112002471, + 0.02229322985052143, + 0.009834532898778493, + 1.1278270317796948, + 0.4097421514598918, + 0.2062375438841307, + 0.10348167598947887, + 0.05183039976799599, + 0.025931881036954665, + 0.012962428369489541, + 0.0064709003238915385, + 0.0032220961648905962, + 0.001596611570063102, + 0.0007844004359084408, + 0.00037988060611113386, + 0.00017944821482704823, + 0.00008100490560514799, + 0.0000339530982315994, + 0.000012937669411638097, + 0.000004477857587189586, + 0.0000014247688504871578, + 4.2217409490637047e-7, + 2.2791127635837773e-9 + ], "description": "[#9](https://github.com/sourcecred-test/example-github/pull/9): An unmerged pull request", "minted": 4, "timestamp": 1525373595000 @@ -573,6 +2523,56 @@ "example-github" ], "cred": 34.166739709229304, + "credOverTime": [ + 8.084998264489464, + 4.04450531964644, + 3.2867208760750533, + 3.578081002240468, + 1.7902790230075674, + 0.8963759043254352, + 0.44942414832873434, + 0.2259475137489998, + 0.11420680931551756, + 1.545346436367627, + 0.7725898708791059, + 0.3863643769837601, + 0.19349223301997723, + 0.09736802450037133, + 0.04960329516691437, + 0.01669577844928855, + 0.009217699247254685, + 0.4326998571004771, + 0.21848610086890324, + 0.11110092437819434, + 0.05709933267973145, + 0.029729035513948752, + 0.015683524300256702, + 0.008389581186275452, + 0.004560564728623517, + 0.002502974849507993, + 0.30309916705513495, + 0.15602358195636684, + 3.6152515074946896, + 1.817822409030863, + 0.9117494730598441, + 0.45807027351336477, + 0.2309863722443356, + 0.11735214253369863, + 0.06047877439470554, + 0.03197177932672726, + 0.017602565249860792, + 0.010224708390035003, + 0.006237974328680906, + 0.003857550448395143, + 0.002283021164732544, + 0.0012304630001774319, + 0.0005918262958788743, + 0.0002575363187439405, + 0.00010581306732147806, + 0.00004330278826469264, + 0.00001836214110603591, + 0.000012634028481924362 + ], "description": "[sourcecred-test/example-github](https://github.com/sourcecred-test/example-github)", "minted": 4, "timestamp": 1519807034000 @@ -588,6 +2588,56 @@ "100313899" ], "cred": 6.3173802744599445, + "credOverTime": [ + 2.2075995537802284, + 1.1039245497971721, + 0.5434114035762649, + 0.2676115528739034, + 0.13391760281881337, + 0.06707216144996504, + 0.033648405319664794, + 0.016934655377681476, + 0.00857422267512426, + 0.707855980524528, + 0.3990959219159086, + 0.23861156701601274, + 0.149344304267908, + 0.09395435494192529, + 0.05671235970316074, + 0.025376972871864353, + 0.013332968031244527, + 0.13497342437705304, + 0.06539599035812761, + 0.029974761513813068, + 0.01262229636435518, + 0.004677878419296635, + 0.0014614007887937266, + 0.0003765769168674623, + 0.00008118691229579771, + 0.000015361981897040113, + 0.0006233123234252241, + 0.00011130396224846927, + 7.431560313056237e-7, + 0.00006560871242213637, + 0.000016423295062952158, + 0.0000041009995639130986, + 0.0000010253502063834605, + 2.5645464694796107e-7, + 6.417561745273385e-8, + 1.605638437151879e-8, + 4.0227711224175555e-9, + 1.0134261410516072e-9, + 2.5877562414497516e-10, + 6.861766662811178e-11, + 2.0094680620686132e-11, + 7.219499953821995e-12, + 3.4032297473259077e-12, + 1.99528021444238e-12, + 1.3357594810885821e-12, + 9.839938901754072e-13, + 7.904958901592078e-13, + 1.052961552064427e-12 + ], "description": "[review](https://github.com/sourcecred-test/example-github/pull/5#pullrequestreview-100313899) on [#5](https://github.com/sourcecred-test/example-github/pull/5): This pull request will be more contentious. I can feel it...", "minted": 1, "timestamp": 1519878210000 @@ -603,6 +2653,56 @@ "100314038" ], "cred": 3.2722027157529268, + "credOverTime": [ + 1.6093562353933746, + 0.8048298450937651, + 0.39520629606550656, + 0.19455100218228372, + 0.09741874066279209, + 0.04885314170223304, + 0.02456893153157495, + 0.0124241917512559, + 0.006346863440110371, + 0.03573815826494018, + 0.01974633222325961, + 0.011273771760375122, + 0.0064266189773066985, + 0.003440750845183251, + 0.0016416511044870102, + 0.00016295683713884155, + 0.0000897039332935432, + 0.00005237044482077675, + 0.00002701704745283353, + 0.000013775351579285781, + 0.000006977497476711597, + 0.0000035045425231316643, + 0.0000017274071697722264, + 8.21881235829293e-7, + 3.714610731394119e-7, + 1.5826731070364995e-7, + 0.000014384810834007856, + 0.000005706708367817533, + 6.022655981375682e-7, + 8.288000756961266e-8, + 1.65761491320431e-8, + 4.11440619673416e-9, + 1.4442873957393397e-9, + 6.397664367020507e-10, + 3.1083961667124804e-10, + 1.5598470512311998e-10, + 7.97106022489288e-11, + 4.1604669003378475e-11, + 2.2400200088469536e-11, + 1.2573143337420473e-11, + 7.392784157924632e-12, + 4.538136852134025e-12, + 2.8891176153948667e-12, + 1.90691468979866e-12, + 1.3220249653519539e-12, + 9.820021305919317e-13, + 7.902115023179494e-13, + 1.0529172831526087e-12 + ], "description": "[review](https://github.com/sourcecred-test/example-github/pull/5#pullrequestreview-100314038) on [#5](https://github.com/sourcecred-test/example-github/pull/5): This pull request will be more contentious. I can feel it...", "minted": 1, "timestamp": 1519878296000 @@ -616,6 +2716,56 @@ "credbot" ], "cred": 203.0134417581194, + "credOverTime": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 139.22718161736896, + 62.45489863640546, + 0.5348475855277606, + 0.3958251022436455, + 0.19831826166004118, + 0.09940708608368942, + 0.049903411216426566, + 0.025150856494036145, + 0.012795270524934631, + 0.006645223354390013, + 0.0035871593966044814, + 0.0020456449585482634, + 0.0012270064898748743, + 0.0007468448244604744, + 0.00043680730063431583, + 0.00023357591234111167, + 0.00011126918967216344, + 0.00004774056739140166, + 0.000019321204066441368, + 0.000007811934983359158, + 0.0000032859586609923397, + 0.000002239502862547324 + ], "description": "[@credbot](https://github.com/credbot)", "minted": 0, "timestamp": null @@ -629,6 +2779,56 @@ "decentralion" ], "cred": 42.33425220677316, + "credOverTime": [ + 9.734371505131229, + 4.866769476502015, + 5.45967678251199, + 4.7373704438615425, + 2.3682738955453986, + 1.183726718845694, + 0.5914613180048877, + 0.2953441802319966, + 0.1473144899165441, + 3.4978536212952984, + 1.7559491655988428, + 0.8839962777883124, + 0.44653137513507696, + 0.22600614078858708, + 0.11412708331142937, + 0.04241671830125515, + 0.02095600332095804, + 0.5492132258029613, + 0.27337032661021154, + 0.13551003711598433, + 0.06682765923330519, + 0.03282560139637494, + 0.01614582900556915, + 0.008011848698948467, + 0.0040263763117773495, + 0.002045146244647576, + 0.234125107916456, + 0.11935025856951863, + 2.066716441640751, + 1.225987646747624, + 0.6136508223713587, + 0.3070637150934105, + 0.15361287410473679, + 0.07683553891284155, + 0.03842818491166919, + 0.019214582306587714, + 0.009601140978431138, + 0.004791390002030775, + 0.002387368453447827, + 0.0011885801142664197, + 0.0005920728445612202, + 0.00029490583043628775, + 0.00014677639527190518, + 0.000073579877320932, + 0.00003767874911054204, + 0.000019748431956321648, + 0.000010429797539164292, + 0.0000021162129948814497 + ], "description": "[@decentralion](https://github.com/decentralion)", "minted": 0, "timestamp": null @@ -642,6 +2842,56 @@ "wchargin" ], "cred": 20.665736109648424, + "credOverTime": [ + 3.2656284948687713, + 1.6332305234979851, + 0.7903232174880094, + 0.387629556138458, + 0.19422610445460123, + 0.0975232811543062, + 0.049163681995112264, + 0.024968319768003445, + 0.012841760083455873, + 2.0822245037047016, + 1.034089896901157, + 0.5110232534616876, + 0.2509783904899231, + 0.12274874202391291, + 0.06025035809482062, + 0.5447720024018698, + 0.27263835703060446, + 0.59758395437282, + 0.3000282634776791, + 0.15118925792796095, + 0.07652198828866748, + 0.03884922236461138, + 0.01969158287492401, + 0.009906857241298115, + 0.004932976658345941, + 0.002434530240414069, + 0.2681147303260748, + 0.13176966055174677, + 4.058843517919881, + 1.8367923330326925, + 0.9177391675187996, + 0.4586312798516685, + 0.22923462336780273, + 0.11458820982342821, + 0.05728368945646571, + 0.02864135487747973, + 0.014326827613602582, + 0.007172594293986085, + 0.003594623694560603, + 0.0018024159597377954, + 0.0009034251924408875, + 0.00045284318806476605, + 0.00022709811397862172, + 0.00011335737730433143, + 0.00005578987820208967, + 0.000026985881699994214, + 0.00001293735928899364, + 0.000009567365419197517 + ], "description": "[@wchargin](https://github.com/wchargin)", "minted": 0, "timestamp": null diff --git a/src/analysis/output.js b/src/analysis/output.js index 844df93..b631567 100644 --- a/src/analysis/output.js +++ b/src/analysis/output.js @@ -18,7 +18,7 @@ export type CredFlow = {|+forwards: number, +backwards: number|}; export type Output = OutputV1; export const COMPAT_INFO = { type: "sourcecred/analysis/output", - version: "0.1.0", + version: "0.2.0", }; /** @@ -33,6 +33,10 @@ export const COMPAT_INFO = { export type OutputNode = {| +address: $ReadOnlyArray, +cred: number, + // Full cred over time (aligned with output interval boundaries). + // It's optional because it inflates the output size a lot -- we'll + // want to filter out low-cred nodes for large projects + +credOverTime: ?$ReadOnlyArray, +minted: number, +timestamp: TimestampMs | null, // Description comes from the underlying Graph node, so it's determined by the @@ -50,6 +54,8 @@ export type OutputV1 = {| // Ordered by address +orderedNodes: $ReadOnlyArray, +plugins: $ReadOnlyArray, + // Interval endpoints, aligned with credOverTime + +intervalEndpoints: $ReadOnlyArray, |}; export function fromTimelineCredAndPlugins( @@ -58,23 +64,26 @@ export function fromTimelineCredAndPlugins( ): Output { const {graph, weights} = tc.weightedGraph(); const nodeEvaluator = nodeWeightEvaluator(weights); + const intervalEndpoints = tc.intervals().map((x) => x.endTimeMs); const orderedNodes = Array.from(graph.nodes()).map( ({description, address, timestampMs}) => { - const cred = NullUtil.get(tc.credNode(address)).total; + const {cred, total} = NullUtil.get(tc.credNode(address)); // In TimelineCred, a node with a null timestamp will never mint cred, because we don't // know what period to mint it in. // When we transition to CredRank, we should remove this check. const minted = timestampMs == null ? 0 : nodeEvaluator(address); return { address: NodeAddress.toParts(address), - cred, + cred: total, + // todo: add optional filtering to reduce the data size + credOverTime: cred, minted, description, timestamp: timestampMs, }; } ); - return {orderedNodes, plugins}; + return {orderedNodes, plugins, intervalEndpoints}; } /** @@ -115,7 +124,7 @@ export type OutputV2 = {| +orderedNodes: $ReadOnlyArray, +plugins: $ReadOnlyArray, +contributors: $ReadOnlyArray, - +intervalEnd: $ReadOnlyArray, + +intervalEndpoints: $ReadOnlyArray, |}; /** diff --git a/src/analysis/output.test.js b/src/analysis/output.test.js index 9945c74..f42a110 100644 --- a/src/analysis/output.test.js +++ b/src/analysis/output.test.js @@ -122,5 +122,15 @@ describe("src/analysis/output", () => { expect(cred).toEqual(credNode.total); } }); + it("by default, all nodes have cred over time", () => { + const {output, timelineCred} = example(); + for (const {address, credOverTime} of output.orderedNodes) { + const credNode = timelineCred.credNode(NodeAddress.fromParts(address)); + if (credNode == null) { + throw new Error("Can't find node"); + } + expect(credOverTime).toEqual(credNode.cred); + } + }); }); });