From 88feb267f439ebd89a6fac8404ad28416cde2320 Mon Sep 17 00:00:00 2001 From: Mentlegen <9807008+gentlementlegen@users.noreply.github.com> Date: Tue, 22 Oct 2024 13:02:51 +0900 Subject: [PATCH] chore: update reward values in permit generation results Updated reward values, word counts, and total calculations in permit and comment JSON files. --- tests/__mocks__/db-seed.json | 35 ++++++++ .../results/github-comment-results.json | 90 +++++++++---------- tests/__mocks__/results/output.html | 5 +- .../results/permit-generation-results.json | 84 ++++++++--------- 4 files changed, 123 insertions(+), 91 deletions(-) diff --git a/tests/__mocks__/db-seed.json b/tests/__mocks__/db-seed.json index 3faf2562..8f26e9f1 100644 --- a/tests/__mocks__/db-seed.json +++ b/tests/__mocks__/db-seed.json @@ -134,6 +134,41 @@ "following": 72, "created_at": "2014-11-17T19:03:33Z", "updated_at": "2024-07-06T13:13:06Z" + }, + { + "login": "whilefoo", + "id": 139262667, + "node_id": "U_kgDOCEz6yw", + "avatar_url": "https://avatars.githubusercontent.com/u/139262667?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/whilefoo", + "html_url": "https://github.com/whilefoo", + "followers_url": "https://api.github.com/users/whilefoo/followers", + "following_url": "https://api.github.com/users/whilefoo/following{/other_user}", + "gists_url": "https://api.github.com/users/whilefoo/gists{/gist_id}", + "starred_url": "https://api.github.com/users/whilefoo/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/whilefoo/subscriptions", + "organizations_url": "https://api.github.com/users/whilefoo/orgs", + "repos_url": "https://api.github.com/users/whilefoo/repos", + "events_url": "https://api.github.com/users/whilefoo/events{/privacy}", + "received_events_url": "https://api.github.com/users/whilefoo/received_events", + "type": "User", + "user_view_type": "public", + "site_admin": false, + "name": null, + "company": null, + "blog": "", + "location": null, + "email": null, + "hireable": null, + "bio": null, + "twitter_username": null, + "public_repos": 6, + "public_gists": 0, + "followers": 2, + "following": 1, + "created_at": "2023-07-11T17:34:03Z", + "updated_at": "2024-07-09T13:56:56Z" } ], "wallets": [ diff --git a/tests/__mocks__/results/github-comment-results.json b/tests/__mocks__/results/github-comment-results.json index 103eb712..c1af0978 100644 --- a/tests/__mocks__/results/github-comment-results.json +++ b/tests/__mocks__/results/github-comment-results.json @@ -115,10 +115,10 @@ }, "multiplier": 1, "relevance": 0.8, - "reward": 14.168, + "reward": 14.232, "words": { - "result": 7.71, - "wordCount": 166, + "result": 7.79, + "wordCount": 168, "wordValue": 0.1 } }, @@ -189,10 +189,10 @@ }, "multiplier": 1, "relevance": 0.8, - "reward": 19.56, + "reward": 19.656, "words": { - "result": 9.45, - "wordCount": 211, + "result": 9.57, + "wordCount": 214, "wordValue": 0.1 } }, @@ -923,9 +923,9 @@ "url": "https://github.com/ubiquity-os/conversation-rewards/pull/12#issuecomment-2063712447" } ], - "evaluationCommentHtml": "

 [ 154.217 WXDAI ] 

@0x4007
Contributions Overview
ViewContributionCountReward
IssueComment996.72
ReviewComment2357.497
", - "permitUrl": "https://pay.ubq.fi?claim=W3sidHlwZSI6ImVyYzIwLXBlcm1pdCIsInBlcm1pdCI6eyJwZXJtaXR0ZWQiOnsidG9rZW4iOiIweGU5MUQxNTNFMGI0MTUxOEEyQ2U4RGQzRDc5NDRGYTg2MzQ2M2E5N2QiLCJhbW91bnQiOiIxNTQyMTcwMDAwMDAwMDAwMDAwMDAifSwibm9uY2UiOiIzMzkyOTQxNzYyNzkzOTc1NTkzMTc4MTExNTY1OTgzNzk3NDc1ODk0MDM3NDk1NDA0MTMxMjg2MzgyNzgwNDExNjg3NzA4MzUyODg4IiwiZGVhZGxpbmUiOiI1Nzg5NjA0NDYxODY1ODA5NzcxMTc4NTQ5MjUwNDM0Mzk1MzkyNjYzNDk5MjMzMjgyMDI4MjAxOTcyODc5MjAwMzk1NjU2NDgxOTk2NyJ9LCJ0cmFuc2ZlckRldGFpbHMiOnsidG8iOiIweDREMDcwNGY0MDBENTdCYTkzZUVhODg3NjVDM0ZjREJEODI2ZENGYzQiLCJyZXF1ZXN0ZWRBbW91bnQiOiIxNTQyMTcwMDAwMDAwMDAwMDAwMDAifSwib3duZXIiOiIweGQ5NTMwRjNmYkJFYTExYmVEMDFEQzA5RTc5MzE4ZjJmMjAyMjM3MTYiLCJzaWduYXR1cmUiOiIweGU1Y2QzZWVlYzg4YzNhODNlY2M1NTNiOTFlOTM2YmVhNDMyNDY0ZWEwMmM5MTZmN2ExYjc2OTk3YjI5ZGY2MzMyOWM2NzVlODAzODQzYTU3ZDUwOTNkYzMyOTA1NjJhMzYyY2FlNTBlOTZhOTYwOGQxNjUyMGM1YWI5NDAzMzQyMWMiLCJuZXR3b3JrSWQiOjEwMH1d", - "total": 154.217, + "evaluationCommentHtml": "

 [ 154.377 WXDAI ] 

@0x4007
Contributions Overview
ViewContributionCountReward
IssueComment996.88
ReviewComment2357.497
Conversation Incentives
CommentFormattingRelevanceReward
@whilefoo rfc on how we can deal with comment outputs. Perhaps w…
4.64
content:
  content:
    p:
      score: 1
      elementCount: 1
    pre:
      score: 0
      elementCount: 1
    code:
      score: 1
      elementCount: 1
  result: 2
regex:
  wordCount: 47
  wordValue: 0.1
  result: 2.64
0.84.112
I think you should fork from and overtake that second pull due t…
2.11
content:
  content:
    p:
      score: 1
      elementCount: 1
  result: 1
regex:
  wordCount: 17
  wordValue: 0.1
  result: 1.11
0.81.888
I think the most pure architecture would be that plugins can NOT…
24.21
content:
  content:
    p:
      score: 1
      elementCount: 7
    ul:
      score: 1
      elementCount: 1
    li:
      score: 1
      elementCount: 2
    code:
      score: 1
      elementCount: 2
  result: 12
regex:
  wordCount: 285
  wordValue: 0.1
  result: 12.21
0.821.768
I know JSON makes things more complicated than it needs to be wi…
15.79
content:
  content:
    p:
      score: 1
      elementCount: 4
    code:
      score: 1
      elementCount: 4
  result: 8
regex:
  wordCount: 168
  wordValue: 0.1
  result: 7.79
0.814.232
Going back to my \"plugin-side-rendering\" mention, the data manip…
13.22
content:
  content:
    p:
      score: 1
      elementCount: 2
    code:
      score: 1
      elementCount: 5
    pre:
      score: 0
      elementCount: 1
  result: 7
regex:
  wordCount: 129
  wordValue: 0.1
  result: 6.22
0.811.976
The proposed `comment` output is intended for ease of co…
21.57
content:
  content:
    p:
      score: 1
      elementCount: 6
    code:
      score: 1
      elementCount: 3
    a:
      score: 1
      elementCount: 2
    h3:
      score: 1
      elementCount: 1
    pre:
      score: 0
      elementCount: 1
  result: 12
regex:
  wordCount: 214
  wordValue: 0.1
  result: 9.57
0.819.656
I understand your concern and I would need to put more thought i…
12.93
content:
  content:
    p:
      score: 1
      elementCount: 5
    code:
      score: 1
      elementCount: 1
    ol:
      score: 0
      elementCount: 1
    li:
      score: 1
      elementCount: 2
  result: 8
regex:
  wordCount: 98
  wordValue: 0.1
  result: 4.93
0.811.944
I see, so you're suggesting that we must annotate each comment a…
9.88
content:
  content:
    p:
      score: 1
      elementCount: 1
    ol:
      score: 0
      elementCount: 1
    li:
      score: 1
      elementCount: 4
  result: 5
regex:
  wordCount: 97
  wordValue: 0.1
  result: 4.88
0.88.904
Consider calling it \"contributor\" and \"collaborator\" as that is …
2.75
content:
  content:
    p:
      score: 1
      elementCount: 1
  result: 1
regex:
  wordCount: 29
  wordValue: 0.1
  result: 1.75
0.82.4
Nice code quality per usual
1.39
content:
  content:
    p:
      score: 1
      elementCount: 1
  result: 1
regex:
  wordCount: 5
  wordValue: 0.1
  result: 0.39
0.71.273
\"Comment\" implication isn't clear to me
1.52
content:
  content:
    p:
      score: 1
      elementCount: 1
  result: 1
regex:
  wordCount: 7
  wordValue: 0.1
  result: 0.52
0.71.364
I've always been anti empty string for variable declarations. It…
3.73
content:
  content:
    p:
      score: 1
      elementCount: 1
  result: 1
regex:
  wordCount: 49
  wordValue: 0.1
  result: 2.73
0.72.911
Our RPCs don't work anymore
1.46
content:
  content:
    p:
      score: 1
      elementCount: 1
  result: 1
regex:
  wordCount: 6
  wordValue: 0.1
  result: 0.46
0.71.322
Yes consider changing them to verbs `ISSUER``COMME…
4.7
content:
  content:
    p:
      score: 1
      elementCount: 1
    code:
      score: 1
      elementCount: 2
  result: 3
regex:
  wordCount: 28
  wordValue: 0.1
  result: 1.7
0.74.19
`[].join(\"\");` yields an empty string as well if there's…
2.94
content:
  content:
    p:
      score: 1
      elementCount: 1
    code:
      score: 1
      elementCount: 1
  result: 2
regex:
  wordCount: 14
  wordValue: 0.1
  result: 0.94
0.72.658
Perhaps it will make the config more expressive if you add other…
3.49
content:
  content:
    p:
      score: 1
      elementCount: 1
    pre:
      score: 0
      elementCount: 1
    code:
      score: 1
      elementCount: 1
  result: 2
regex:
  wordCount: 24
  wordValue: 0.1
  result: 1.49
0.73.043
What is this @link syntax
1.39
content:
  content:
    p:
      score: 1
      elementCount: 1
  result: 1
regex:
  wordCount: 5
  wordValue: 0.1
  result: 0.39
0.71.273
Just noticed the bit wise operators 1337 code
1.59
content:
  content:
    p:
      score: 1
      elementCount: 1
  result: 1
regex:
  wordCount: 8
  wordValue: 0.1
  result: 0.59
0.71.413
It might seem convoluted but I think that it condenses the logic…
7.48
content:
  content:
    p:
      score: 1
      elementCount: 1
    code:
      score: 1
      elementCount: 3
    pre:
      score: 0
      elementCount: 1
  result: 4
regex:
  wordCount: 65
  wordValue: 0.1
  result: 3.48
0.76.436
I am aware of its purpose. I am proposing to make the config mor…
2.44
content:
  content:
    p:
      score: 1
      elementCount: 1
  result: 1
regex:
  wordCount: 23
  wordValue: 0.1
  result: 1.44
0.72.008
Will you use array syntax?
1.39
content:
  content:
    p:
      score: 1
      elementCount: 1
  result: 1
regex:
  wordCount: 5
  wordValue: 0.1
  result: 0.39
0.71.273
This regex appears to convert repeating spaces i.e. `\" \"&#…
4.22
content:
  content:
    p:
      score: 1
      elementCount: 1
    code:
      score: 1
      elementCount: 2
  result: 3
regex:
  wordCount: 19
  wordValue: 0.1
  result: 1.22
0.73.854
This doesn't seem right. Network ID 1 is mainnet. The RPC clearl…
2.54
content:
  content:
    p:
      score: 1
      elementCount: 1
  result: 1
regex:
  wordCount: 25
  wordValue: 0.1
  result: 1.54
0.72.078
Seems like not a very useful mock.
1.52
content:
  content:
    p:
      score: 1
      elementCount: 1
  result: 1
regex:
  wordCount: 7
  wordValue: 0.1
  result: 0.52
0.71.364
Same here
1.18
content:
  content:
    p:
      score: 1
      elementCount: 1
  result: 1
regex:
  wordCount: 2
  wordValue: 0.1
  result: 0.18
0.71.126
The token address indeed represents DAI on mainnet.
1.59
content:
  content:
    p:
      score: 1
      elementCount: 1
  result: 1
regex:
  wordCount: 8
  wordValue: 0.1
  result: 0.59
0.71.413
@gentlementlegen rfc
1.18
content:
  content:
    p:
      score: 1
      elementCount: 1
  result: 1
regex:
  wordCount: 2
  wordValue: 0.1
  result: 0.18
0.71.126
Why not do it in the industry standard way? All values are denom…
4.8
content:
  content:
    p:
      score: 1
      elementCount: 1
    code:
      score: 1
      elementCount: 2
  result: 3
regex:
  wordCount: 30
  wordValue: 0.1
  result: 1.8
0.74.26
I'm not sure if I understand but task reward is if you completed…
3.35
content:
  content:
    p:
      score: 1
      elementCount: 1
  result: 1
regex:
  wordCount: 41
  wordValue: 0.1
  result: 2.35
0.72.645
Spoke a bit on this in dms. @whilefoo my intent with referring t…
8.05
content:
  content:
    p:
      score: 1
      elementCount: 3
  result: 3
regex:
  wordCount: 101
  wordValue: 0.1
  result: 5.05
0.76.535
Possibly. I personally haven't had that issue but either way my …
2.7
content:
  content:
    p:
      score: 1
      elementCount: 1
  result: 1
regex:
  wordCount: 28
  wordValue: 0.1
  result: 1.7
0.72.19
I think it's fine. I generally scrutinize test code less than no…
2.06
content:
  content:
    p:
      score: 1
      elementCount: 1
  result: 1
regex:
  wordCount: 16
  wordValue: 0.1
  result: 1.06
0.71.742
", + "permitUrl": "https://pay.ubq.fi?claim=W3sidHlwZSI6ImVyYzIwLXBlcm1pdCIsInBlcm1pdCI6eyJwZXJtaXR0ZWQiOnsidG9rZW4iOiIweGU5MUQxNTNFMGI0MTUxOEEyQ2U4RGQzRDc5NDRGYTg2MzQ2M2E5N2QiLCJhbW91bnQiOiIxNTQzNzcwMDAwMDAwMDAwMDAwMDAifSwibm9uY2UiOiIzMzkyOTQxNzYyNzkzOTc1NTkzMTc4MTExNTY1OTgzNzk3NDc1ODk0MDM3NDk1NDA0MTMxMjg2MzgyNzgwNDExNjg3NzA4MzUyODg4IiwiZGVhZGxpbmUiOiIxMTU3OTIwODkyMzczMTYxOTU0MjM1NzA5ODUwMDg2ODc5MDc4NTMyNjk5ODQ2NjU2NDA1NjQwMzk0NTc1ODQwMDc5MTMxMjk2Mzk5MzUifSwidHJhbnNmZXJEZXRhaWxzIjp7InRvIjoiMHg0RDA3MDRmNDAwRDU3QmE5M2VFYTg4NzY1QzNGY0RCRDgyNmRDRmM0IiwicmVxdWVzdGVkQW1vdW50IjoiMTU0Mzc3MDAwMDAwMDAwMDAwMDAwIn0sIm93bmVyIjoiMHhkOTUzMEYzZmJCRWExMWJlRDAxREMwOUU3OTMxOGYyZjIwMjIzNzE2Iiwic2lnbmF0dXJlIjoiMHg1YjExNDIxNTlkYTYxYjYwMjdlODU5OTE5YTYzN2I1ZGY0OTI3NGJjNzY4YmQ0MDRhZWRkYTI4YWUwMDIzMjQ4MTU1MDFjNWI1OWQ1OGE5NzY1YjlhMjk0NDFhNjkyNjQ5Yzg1ZDhmNmQ1Yjg5N2IzZDljNmEzZjA3ZjQzZGRkNTFjIiwibmV0d29ya0lkIjoxMDB9XQ==", + "total": 154.377, "userId": 4975670 }, "gentlementlegen": { @@ -945,10 +945,10 @@ }, "multiplier": 1, "relevance": 0.8, - "reward": 4.128, + "reward": 4.288, "words": { - "result": 3.91, - "wordCount": 33, + "result": 4.11, + "wordCount": 35, "wordValue": 0.2 } }, @@ -978,10 +978,10 @@ }, "multiplier": 1, "relevance": 0.8, - "reward": 17.696, + "reward": 17.76, "words": { - "result": 10.87, - "wordCount": 110, + "result": 10.95, + "wordCount": 111, "wordValue": 0.2 } }, @@ -1007,10 +1007,10 @@ }, "multiplier": 1, "relevance": 0.8, - "reward": 14.96, + "reward": 15.032, "words": { - "result": 11.2, - "wordCount": 114, + "result": 11.29, + "wordCount": 115, "wordValue": 0.2 } }, @@ -1389,10 +1389,10 @@ }, "multiplier": 2, "relevance": 0.7, - "reward": 12.018, + "reward": 12.172, "words": { - "result": 2.87, - "wordCount": 23, + "result": 2.98, + "wordCount": 24, "wordValue": 0.2 } }, @@ -1415,10 +1415,10 @@ }, "multiplier": 2, "relevance": 0.7, - "reward": 13.392, + "reward": 13.518, "words": { - "result": 5.28, - "wordCount": 47, + "result": 5.37, + "wordCount": 48, "wordValue": 0.2 } }, @@ -1501,10 +1501,10 @@ }, "multiplier": 2, "relevance": 0.7, - "reward": 9.894, + "reward": 10.034, "words": { - "result": 4.21, - "wordCount": 36, + "result": 4.31, + "wordCount": 37, "wordValue": 0.2 } }, @@ -1527,10 +1527,10 @@ }, "multiplier": 2, "relevance": 0.7, - "reward": 4.954, + "reward": 5.108, "words": { - "result": 2.11, - "wordCount": 16, + "result": 2.22, + "wordCount": 17, "wordValue": 0.2 } }, @@ -1755,10 +1755,10 @@ }, "multiplier": 2, "relevance": 0.7, - "reward": 22.58, + "reward": 22.72, "words": { - "result": 4.7, - "wordCount": 41, + "result": 4.8, + "wordCount": 42, "wordValue": 0.2 } }, @@ -1871,10 +1871,10 @@ }, "multiplier": 2, "relevance": 0.7, - "reward": 28.708, + "reward": 28.834, "words": { - "result": 6.22, - "wordCount": 57, + "result": 6.31, + "wordCount": 58, "wordValue": 0.2 } }, @@ -1932,13 +1932,13 @@ "url": "https://github.com/ubiquity-os/conversation-rewards/pull/12#issuecomment-2063348339" } ], - "evaluationCommentHtml": "

 [ 817.346 WXDAI ] 

@gentlementlegen
Contributions Overview
ViewContributionCountReward
IssueTask1400
IssueSpecification115.93
IssueComment9112.568
ReviewComment25288.848
", - "permitUrl": "https://pay.ubq.fi?claim=W3sidHlwZSI6ImVyYzIwLXBlcm1pdCIsInBlcm1pdCI6eyJwZXJtaXR0ZWQiOnsidG9rZW4iOiIweGU5MUQxNTNFMGI0MTUxOEEyQ2U4RGQzRDc5NDRGYTg2MzQ2M2E5N2QiLCJhbW91bnQiOiI4MTczNDYwMDAwMDAwMDAwMDAwMDAifSwibm9uY2UiOiI4MzA3NjQzNzQ0NjQ5OTU4OTMwNDYxMTEyODk2MzkxNjcxMDEwNjg4NjEwMjQzNjAyMzg4MTUyMDA1ODM0NjgwMDU3ODc1NDQwMTc1NSIsImRlYWRsaW5lIjoiNTc4OTYwNDQ2MTg2NTgwOTc3MTE3ODU0OTI1MDQzNDM5NTM5MjY2MzQ5OTIzMzI4MjAyODIwMTk3Mjg3OTIwMDM5NTY1NjQ4MTk5NjcifSwidHJhbnNmZXJEZXRhaWxzIjp7InRvIjoiMHg0RDA3MDRmNDAwRDU3QmE5M2VFYTg4NzY1QzNGY0RCRDgyNmRDRmM0IiwicmVxdWVzdGVkQW1vdW50IjoiODE3MzQ2MDAwMDAwMDAwMDAwMDAwIn0sIm93bmVyIjoiMHhkOTUzMEYzZmJCRWExMWJlRDAxREMwOUU3OTMxOGYyZjIwMjIzNzE2Iiwic2lnbmF0dXJlIjoiMHg3ZTQ5YzQyOTc2NWYyOGFmOTRiZjMzMjRlYmQwZWRiYTc5MmNiZjY2MzkwMTlmZGI0M2I4ZjA0Y2IwNWYxMTU5NmMxNDNjMjliNzJiNTIzODVmMDlkMmQwNjllMjg1M2RmZDE1M2NiODY1MWIxNDUzY2I0MjZiYjQ1ZjI3OTAzYjFjIiwibmV0d29ya0lkIjoxMDB9XQ==", + "evaluationCommentHtml": "

 [ 818.482 WXDAI ] 

@gentlementlegen
Contributions Overview
ViewContributionCountReward
IssueTask1400
IssueSpecification115.93
IssueComment9112.864
ReviewComment25289.688
Conversation Incentives
CommentFormattingRelevanceReward
In the v1 of the Ubiquibot, when a result gets evaluated, a reca…
15.93
content:
  content:
    p:
      score: 1
      elementCount: 6
    a:
      score: 1
      elementCount: 1
    ul:
      score: 1
      elementCount: 1
    li:
      score: 1
      elementCount: 3
  result: 11
regex:
  wordCount: 98
  wordValue: 0.1
  result: 4.93
115.93
This needs https://github.com/ubiquity-os/conversation-rewards/p…
5.11
content:
  content:
    p:
      score: 1
      elementCount: 1
  result: 1
regex:
  wordCount: 35
  wordValue: 0.2
  result: 4.11
0.84.288
To me 1 is the most straightforward to do for few reasons:- th…
19.95
content:
  content:
    p:
      score: 1
      elementCount: 5
    ul:
      score: 1
      elementCount: 1
    li:
      score: 1
      elementCount: 3
  result: 9
regex:
  wordCount: 111
  wordValue: 0.2
  result: 10.95
0.817.76
I think each plugin should output JSON not html as it is not rel…
17.29
content:
  content:
    p:
      score: 1
      elementCount: 3
    code:
      score: 1
      elementCount: 3
  result: 6
regex:
  wordCount: 115
  wordValue: 0.2
  result: 11.29
0.815.032
If you want to manipulate and convey data, HTML really is not ma…
17.85
content:
  content:
    p:
      score: 1
      elementCount: 4
    a:
      score: 1
      elementCount: 1
  result: 5
regex:
  wordCount: 134
  wordValue: 0.2
  result: 12.85
0.815.28
But then how do we consider the formatting of that output?Prac…
19.87
content:
  content:
    p:
      score: 1
      elementCount: 5
  result: 5
regex:
  wordCount: 159
  wordValue: 0.2
  result: 14.87
0.816.896
This can work, but we skyrocket coupling and to me defeat purpos…
7.03
content:
  content:
    p:
      score: 1
      elementCount: 1
  result: 1
regex:
  wordCount: 55
  wordValue: 0.2
  result: 6.03
0.85.824
@pavlovcik To mitigate that that's why inside the comment reward…
10.73
content:
  content:
    p:
      score: 1
      elementCount: 1
    code:
      score: 1
      elementCount: 1
  result: 2
regex:
  wordCount: 85
  wordValue: 0.2
  result: 8.73
0.88.984
I realized that to carry this task properly we need to handle fl…
9.31
content:
  content:
    p:
      score: 1
      elementCount: 1
    code:
      score: 1
      elementCount: 2
  result: 3
regex:
  wordCount: 58
  wordValue: 0.2
  result: 6.31
0.88.048
Agreed, I think currently there are 3 possible things to annotat…
21.94
content:
  content:
    p:
      score: 1
      elementCount: 5
    ul:
      score: 1
      elementCount: 1
    li:
      score: 1
      elementCount: 3
    code:
      score: 1
      elementCount: 7
  result: 16
regex:
  wordCount: 54
  wordValue: 0.2
  result: 5.94
0.820.752
Resolves #5 Depends on #8 Reviews looks gigantic but it's on…
3
content:
  content:
    p:
      score: 1
      elementCount: 3
  result: 3
regex:
  wordCount: 19
  wordValue: 0
  result: 0
0.70
I think in this case it makes sense because this function will r…
12.49
content:
  content:
    p:
      score: 1
      elementCount: 2
    code:
      score: 1
      elementCount: 4
  result: 6
regex:
  wordCount: 60
  wordValue: 0.2
  result: 6.49
0.721.086
It is supposed to represent a comment. Would you prefer a descri…
4.11
content:
  content:
    p:
      score: 1
      elementCount: 1
    code:
      score: 1
      elementCount: 1
  result: 2
regex:
  wordCount: 16
  wordValue: 0.2
  result: 2.11
0.76.954
True, just picked this up from the previous codebase. https://rp…
3.44
content:
  content:
    p:
      score: 1
      elementCount: 1
  result: 1
regex:
  wordCount: 19
  wordValue: 0.2
  result: 2.44
0.75.416
Seems convoluted to me and I don't know what problem that solved…
7.6
content:
  content:
    p:
      score: 1
      elementCount: 2
    code:
      score: 1
      elementCount: 1
  result: 3
regex:
  wordCount: 40
  wordValue: 0.2
  result: 4.6
0.712.44
Changed `COMMENT` to `COMMENTED`, added jsdoc de…
6.98
content:
  content:
    p:
      score: 1
      elementCount: 2
    code:
      score: 1
      elementCount: 2
  result: 4
regex:
  wordCount: 24
  wordValue: 0.2
  result: 2.98
0.712.172
Simply makes the docs linking the code within the comment, for c…
8.37
content:
  content:
    p:
      score: 1
      elementCount: 3
  result: 3
regex:
  wordCount: 48
  wordValue: 0.2
  result: 5.37
0.713.518
In the case of a string it would coerce the value and you would …
4.09
content:
  content:
    p:
      score: 1
      elementCount: 1
  result: 1
regex:
  wordCount: 25
  wordValue: 0.2
  result: 3.09
0.76.326
`observe` would help to chose what we want to include an…
7.7
content:
  content:
    p:
      score: 1
      elementCount: 1
    code:
      score: 1
      elementCount: 1
    a:
      score: 1
      elementCount: 1
  result: 3
regex:
  wordCount: 41
  wordValue: 0.2
  result: 4.7
0.712.58
Not very useful indeed. I am working on the tests on a separate …
6.31
content:
  content:
    p:
      score: 1
      elementCount: 2
  result: 2
regex:
  wordCount: 37
  wordValue: 0.2
  result: 4.31
0.710.034
See https://github.com/ubiquity-os/conversation-rewards/pull/14 …
3.22
content:
  content:
    p:
      score: 1
      elementCount: 1
  result: 1
regex:
  wordCount: 17
  wordValue: 0.2
  result: 2.22
0.75.108
Good point, also symbol should not be DAI but ETH isn't it? …
7.89
content:
  content:
    p:
      score: 1
      elementCount: 2
    code:
      score: 1
      elementCount: 1
  result: 3
regex:
  wordCount: 43
  wordValue: 0.2
  result: 4.89
0.712.846
Had changed it everywhere else but here, now it should be fine
2.65
content:
  content:
    p:
      score: 1
      elementCount: 1
  result: 1
regex:
  wordCount: 12
  wordValue: 0.2
  result: 1.65
0.74.31
This matches any whitespace character (spaces, tabs, line breaks…
4.91
content:
  content:
    p:
      score: 1
      elementCount: 1
  result: 1
regex:
  wordCount: 33
  wordValue: 0.2
  result: 3.91
0.77.474
By definition `dump` was just outputting results to stdo…
9.22
content:
  content:
    p:
      score: 1
      elementCount: 1
    code:
      score: 1
      elementCount: 1
  result: 2
regex:
  wordCount: 68
  wordValue: 0.2
  result: 7.22
0.714.108
Un-nested them one level. I think that the `buildXrow` s…
5.09
content:
  content:
    p:
      score: 1
      elementCount: 1
    code:
      score: 1
      elementCount: 1
  result: 2
regex:
  wordCount: 25
  wordValue: 0.2
  result: 3.09
0.78.326
I assumed BigInt only handles integers, and we manipulate a lot …
3.98
content:
  content:
    p:
      score: 1
      elementCount: 1
  result: 1
regex:
  wordCount: 24
  wordValue: 0.2
  result: 2.98
0.76.172
There is one permit generated per participating user, last run:…
4.44
content:
  content:
    p:
      score: 1
      elementCount: 2
  result: 2
regex:
  wordCount: 19
  wordValue: 0.2
  result: 2.44
0.77.416
I made it according to the previous version:- Issue Specificat…
12.8
content:
  content:
    p:
      score: 1
      elementCount: 5
    ul:
      score: 1
      elementCount: 1
    li:
      score: 1
      elementCount: 2
  result: 8
regex:
  wordCount: 42
  wordValue: 0.2
  result: 4.8
0.722.72
Wouldn't that lead to precision loss in JS and after the divisio…
5.6
content:
  content:
    p:
      score: 1
      elementCount: 1
    code:
      score: 1
      elementCount: 1
  result: 2
regex:
  wordCount: 30
  wordValue: 0.2
  result: 3.6
0.79.04
That is correct. I understand now why you're confused:The valu…
21.95
content:
  content:
    p:
      score: 1
      elementCount: 8
    code:
      score: 1
      elementCount: 7
  result: 15
regex:
  wordCount: 65
  wordValue: 0.2
  result: 6.95
0.739.73
I don't think is it relevant in this scenario because we are not…
6.37
content:
  content:
    p:
      score: 1
      elementCount: 1
  result: 1
regex:
  wordCount: 48
  wordValue: 0.2
  result: 5.37
0.79.518
@whilefoo you are correct, these were wrongly used. I corrected …
16.31
content:
  content:
    p:
      score: 1
      elementCount: 5
    code:
      score: 1
      elementCount: 5
  result: 10
regex:
  wordCount: 58
  wordValue: 0.2
  result: 6.31
0.728.834
Example of successful comment posting with results:https://git…
4.11
content:
  content:
    p:
      score: 1
      elementCount: 2
  result: 2
regex:
  wordCount: 16
  wordValue: 0.2
  result: 2.11
0.76.954
@0x4007 I believe that if I had all the tests in this PR it will…
4.29
content:
  content:
    p:
      score: 1
      elementCount: 1
  result: 1
regex:
  wordCount: 27
  wordValue: 0.2
  result: 3.29
0.76.606
", + "permitUrl": "https://pay.ubq.fi?claim=W3sidHlwZSI6ImVyYzIwLXBlcm1pdCIsInBlcm1pdCI6eyJwZXJtaXR0ZWQiOnsidG9rZW4iOiIweGU5MUQxNTNFMGI0MTUxOEEyQ2U4RGQzRDc5NDRGYTg2MzQ2M2E5N2QiLCJhbW91bnQiOiI4MTg0ODIwMDAwMDAwMDAwMDAwMDAifSwibm9uY2UiOiI4MzA3NjQzNzQ0NjQ5OTU4OTMwNDYxMTEyODk2MzkxNjcxMDEwNjg4NjEwMjQzNjAyMzg4MTUyMDA1ODM0NjgwMDU3ODc1NDQwMTc1NSIsImRlYWRsaW5lIjoiMTE1NzkyMDg5MjM3MzE2MTk1NDIzNTcwOTg1MDA4Njg3OTA3ODUzMjY5OTg0NjY1NjQwNTY0MDM5NDU3NTg0MDA3OTEzMTI5NjM5OTM1In0sInRyYW5zZmVyRGV0YWlscyI6eyJ0byI6IjB4NEQwNzA0ZjQwMEQ1N0JhOTNlRWE4ODc2NUMzRmNEQkQ4MjZkQ0ZjNCIsInJlcXVlc3RlZEFtb3VudCI6IjgxODQ4MjAwMDAwMDAwMDAwMDAwMCJ9LCJvd25lciI6IjB4ZDk1MzBGM2ZiQkVhMTFiZUQwMURDMDlFNzkzMThmMmYyMDIyMzcxNiIsInNpZ25hdHVyZSI6IjB4NjczNTJkNzZjYzM5Yjg1MWI1NzZlNGYyZjg2M2Y2ZjcyNGNjOWFhNGIwYTgyOTNhNjE3NDcwMTEzYjZkNmJjNTVmNTYyY2FiZTU4OGIxZTdjZDg4YjJmNzQ5ZDlmODcwMTQ1YjdiNzBkMGU3OWY5MDFkOTU3MTYzOGEyMzVkZmIxYiIsIm5ldHdvcmtJZCI6MTAwfV0=", "task": { "multiplier": 1, "reward": 400 }, - "total": 817.346, + "total": 818.482, "userId": 9807008 }, "whilefoo": { @@ -2182,10 +2182,10 @@ }, "multiplier": 0.25, "relevance": 0.7, - "reward": 1.429, + "reward": 1.436, "words": { - "result": 3.88, - "wordCount": 74, + "result": 3.92, + "wordCount": 75, "wordValue": 0.1 } }, @@ -2275,8 +2275,8 @@ "url": "https://github.com/ubiquity-os/conversation-rewards/pull/12#discussion_r1579556333" } ], - "evaluationCommentHtml": "

 [ 10.723 WXDAI ] 

@whilefoo
Contributions Overview
ViewContributionCountReward
IssueComment13.8505
ReviewComment116.8725
", - "total": 10.723, + "evaluationCommentHtml": "

 [ 10.73 WXDAI ] 

@whilefoo
Contributions Overview
ViewContributionCountReward
IssueComment13.8505
ReviewComment116.8795
Conversation Incentives
CommentFormattingRelevanceReward
there are a couple of options:1. we let the conversation-rewar…
16.99
content:
  content:
    p:
      score: 1
      elementCount: 6
    ol:
      score: 0
      elementCount: 1
    li:
      score: 1
      elementCount: 3
  result: 9
regex:
  wordCount: 173
  wordValue: 0.1
  result: 7.99
0.83.8505
```suggestionreturn result;```…
2.94
content:
  content:
    pre:
      score: 0
      elementCount: 1
    code:
      score: 1
      elementCount: 1
    p:
      score: 1
      elementCount: 1
  result: 2
regex:
  wordCount: 14
  wordValue: 0.1
  result: 0.94
0.70.6695
I'm not sure if it's a good idea to rely on logs for testing, is…
2.54
content:
  content:
    p:
      score: 1
      elementCount: 1
  result: 1
regex:
  wordCount: 25
  wordValue: 0.1
  result: 1.54
0.70.5245
why so many nested functions? it becomes hard to read
1.71
content:
  content:
    p:
      score: 1
      elementCount: 1
  result: 1
regex:
  wordCount: 10
  wordValue: 0.1
  result: 0.71
0.70.37675
is there a reason we are using Decimal.js instead of native BigI…
1.88
content:
  content:
    p:
      score: 1
      elementCount: 1
  result: 1
regex:
  wordCount: 13
  wordValue: 0.1
  result: 0.88
0.70.404
Shouldn't task be issue opening item and specification is pull r…
2.49
content:
  content:
    p:
      score: 1
      elementCount: 1
  result: 1
regex:
  wordCount: 24
  wordValue: 0.1
  result: 1.49
0.70.50825
I assume this is a permit for task assignee, but where are other…
2.28
content:
  content:
    p:
      score: 1
      elementCount: 1
  result: 1
regex:
  wordCount: 20
  wordValue: 0.1
  result: 1.28
0.70.474
gotcha, I thought this html is for all users
1.65
content:
  content:
    p:
      score: 1
      elementCount: 1
  result: 1
regex:
  wordCount: 9
  wordValue: 0.1
  result: 0.65
0.70.36125
I can see from the example that it works correctly but when read…
6.92
content:
  content:
    p:
      score: 1
      elementCount: 3
  result: 3
regex:
  wordCount: 75
  wordValue: 0.1
  result: 3.92
0.71.436
Ok so we need it for precise floating point calculations, in tha…
2.11
content:
  content:
    p:
      score: 1
      elementCount: 1
  result: 1
regex:
  wordCount: 17
  wordValue: 0.1
  result: 1.11
0.70.44675
why is it `ISSUER` which is meant for author of issue/re…
6.1
content:
  content:
    p:
      score: 1
      elementCount: 2
    code:
      score: 1
      elementCount: 2
  result: 4
regex:
  wordCount: 36
  wordValue: 0.1
  result: 2.1
0.71.3725
this makes more sense!
1.32
content:
  content:
    p:
      score: 1
      elementCount: 1
  result: 1
regex:
  wordCount: 4
  wordValue: 0.1
  result: 0.32
0.70.306
", + "total": 10.73, "userId": 139262667 } -} +} \ No newline at end of file diff --git a/tests/__mocks__/results/output.html b/tests/__mocks__/results/output.html index a3e4f7c4..9fa6e4a7 100644 --- a/tests/__mocks__/results/output.html +++ b/tests/__mocks__/results/output.html @@ -1,7 +1,4 @@ -> [!NOTE] -> This output has been truncated due to the comment length limit. - -

 [ 817.346 WXDAI ] 

@gentlementlegen
Contributions Overview
ViewContributionCountReward
IssueTask1400
IssueSpecification115.93
IssueComment9112.568
ReviewComment25288.848

 [ 154.217 WXDAI ] 

@0x4007
Contributions Overview
ViewContributionCountReward
IssueComment996.72
ReviewComment2357.497

 [ 10.723 WXDAI ] 

@whilefoo
Contributions Overview
ViewContributionCountReward
IssueComment13.8505
ReviewComment116.8725
+

 [ 818.482 WXDAI ] 

@gentlementlegen
Contributions Overview
ViewContributionCountReward
IssueTask1400
IssueSpecification115.93
IssueComment9112.864
ReviewComment25289.688
Conversation Incentives
CommentFormattingRelevanceReward
In the v1 of the Ubiquibot, when a result gets evaluated, a reca…
15.93
content:
  content:
    p:
      score: 1
      elementCount: 6
    a:
      score: 1
      elementCount: 1
    ul:
      score: 1
      elementCount: 1
    li:
      score: 1
      elementCount: 3
  result: 11
regex:
  wordCount: 98
  wordValue: 0.1
  result: 4.93
115.93
This needs https://github.com/ubiquity-os/conversation-rewards/p…
5.11
content:
  content:
    p:
      score: 1
      elementCount: 1
  result: 1
regex:
  wordCount: 35
  wordValue: 0.2
  result: 4.11
0.84.288
To me 1 is the most straightforward to do for few reasons:- th…
19.95
content:
  content:
    p:
      score: 1
      elementCount: 5
    ul:
      score: 1
      elementCount: 1
    li:
      score: 1
      elementCount: 3
  result: 9
regex:
  wordCount: 111
  wordValue: 0.2
  result: 10.95
0.817.76
I think each plugin should output JSON not html as it is not rel…
17.29
content:
  content:
    p:
      score: 1
      elementCount: 3
    code:
      score: 1
      elementCount: 3
  result: 6
regex:
  wordCount: 115
  wordValue: 0.2
  result: 11.29
0.815.032
If you want to manipulate and convey data, HTML really is not ma…
17.85
content:
  content:
    p:
      score: 1
      elementCount: 4
    a:
      score: 1
      elementCount: 1
  result: 5
regex:
  wordCount: 134
  wordValue: 0.2
  result: 12.85
0.815.28
But then how do we consider the formatting of that output?Prac…
19.87
content:
  content:
    p:
      score: 1
      elementCount: 5
  result: 5
regex:
  wordCount: 159
  wordValue: 0.2
  result: 14.87
0.816.896
This can work, but we skyrocket coupling and to me defeat purpos…
7.03
content:
  content:
    p:
      score: 1
      elementCount: 1
  result: 1
regex:
  wordCount: 55
  wordValue: 0.2
  result: 6.03
0.85.824
@pavlovcik To mitigate that that's why inside the comment reward…
10.73
content:
  content:
    p:
      score: 1
      elementCount: 1
    code:
      score: 1
      elementCount: 1
  result: 2
regex:
  wordCount: 85
  wordValue: 0.2
  result: 8.73
0.88.984
I realized that to carry this task properly we need to handle fl…
9.31
content:
  content:
    p:
      score: 1
      elementCount: 1
    code:
      score: 1
      elementCount: 2
  result: 3
regex:
  wordCount: 58
  wordValue: 0.2
  result: 6.31
0.88.048
Agreed, I think currently there are 3 possible things to annotat…
21.94
content:
  content:
    p:
      score: 1
      elementCount: 5
    ul:
      score: 1
      elementCount: 1
    li:
      score: 1
      elementCount: 3
    code:
      score: 1
      elementCount: 7
  result: 16
regex:
  wordCount: 54
  wordValue: 0.2
  result: 5.94
0.820.752
Resolves #5 Depends on #8 Reviews looks gigantic but it's on…
3
content:
  content:
    p:
      score: 1
      elementCount: 3
  result: 3
regex:
  wordCount: 19
  wordValue: 0
  result: 0
0.70
I think in this case it makes sense because this function will r…
12.49
content:
  content:
    p:
      score: 1
      elementCount: 2
    code:
      score: 1
      elementCount: 4
  result: 6
regex:
  wordCount: 60
  wordValue: 0.2
  result: 6.49
0.721.086
It is supposed to represent a comment. Would you prefer a descri…
4.11
content:
  content:
    p:
      score: 1
      elementCount: 1
    code:
      score: 1
      elementCount: 1
  result: 2
regex:
  wordCount: 16
  wordValue: 0.2
  result: 2.11
0.76.954
True, just picked this up from the previous codebase. https://rp…
3.44
content:
  content:
    p:
      score: 1
      elementCount: 1
  result: 1
regex:
  wordCount: 19
  wordValue: 0.2
  result: 2.44
0.75.416
Seems convoluted to me and I don't know what problem that solved…
7.6
content:
  content:
    p:
      score: 1
      elementCount: 2
    code:
      score: 1
      elementCount: 1
  result: 3
regex:
  wordCount: 40
  wordValue: 0.2
  result: 4.6
0.712.44
Changed `COMMENT` to `COMMENTED`, added jsdoc de…
6.98
content:
  content:
    p:
      score: 1
      elementCount: 2
    code:
      score: 1
      elementCount: 2
  result: 4
regex:
  wordCount: 24
  wordValue: 0.2
  result: 2.98
0.712.172
Simply makes the docs linking the code within the comment, for c…
8.37
content:
  content:
    p:
      score: 1
      elementCount: 3
  result: 3
regex:
  wordCount: 48
  wordValue: 0.2
  result: 5.37
0.713.518
In the case of a string it would coerce the value and you would …
4.09
content:
  content:
    p:
      score: 1
      elementCount: 1
  result: 1
regex:
  wordCount: 25
  wordValue: 0.2
  result: 3.09
0.76.326
`observe` would help to chose what we want to include an…
7.7
content:
  content:
    p:
      score: 1
      elementCount: 1
    code:
      score: 1
      elementCount: 1
    a:
      score: 1
      elementCount: 1
  result: 3
regex:
  wordCount: 41
  wordValue: 0.2
  result: 4.7
0.712.58
Not very useful indeed. I am working on the tests on a separate …
6.31
content:
  content:
    p:
      score: 1
      elementCount: 2
  result: 2
regex:
  wordCount: 37
  wordValue: 0.2
  result: 4.31
0.710.034
See https://github.com/ubiquity-os/conversation-rewards/pull/14 …
3.22
content:
  content:
    p:
      score: 1
      elementCount: 1
  result: 1
regex:
  wordCount: 17
  wordValue: 0.2
  result: 2.22
0.75.108
Good point, also symbol should not be DAI but ETH isn't it? …
7.89
content:
  content:
    p:
      score: 1
      elementCount: 2
    code:
      score: 1
      elementCount: 1
  result: 3
regex:
  wordCount: 43
  wordValue: 0.2
  result: 4.89
0.712.846
Had changed it everywhere else but here, now it should be fine
2.65
content:
  content:
    p:
      score: 1
      elementCount: 1
  result: 1
regex:
  wordCount: 12
  wordValue: 0.2
  result: 1.65
0.74.31
This matches any whitespace character (spaces, tabs, line breaks…
4.91
content:
  content:
    p:
      score: 1
      elementCount: 1
  result: 1
regex:
  wordCount: 33
  wordValue: 0.2
  result: 3.91
0.77.474
By definition `dump` was just outputting results to stdo…
9.22
content:
  content:
    p:
      score: 1
      elementCount: 1
    code:
      score: 1
      elementCount: 1
  result: 2
regex:
  wordCount: 68
  wordValue: 0.2
  result: 7.22
0.714.108
Un-nested them one level. I think that the `buildXrow` s…
5.09
content:
  content:
    p:
      score: 1
      elementCount: 1
    code:
      score: 1
      elementCount: 1
  result: 2
regex:
  wordCount: 25
  wordValue: 0.2
  result: 3.09
0.78.326
I assumed BigInt only handles integers, and we manipulate a lot …
3.98
content:
  content:
    p:
      score: 1
      elementCount: 1
  result: 1
regex:
  wordCount: 24
  wordValue: 0.2
  result: 2.98
0.76.172
There is one permit generated per participating user, last run:…
4.44
content:
  content:
    p:
      score: 1
      elementCount: 2
  result: 2
regex:
  wordCount: 19
  wordValue: 0.2
  result: 2.44
0.77.416
I made it according to the previous version:- Issue Specificat…
12.8
content:
  content:
    p:
      score: 1
      elementCount: 5
    ul:
      score: 1
      elementCount: 1
    li:
      score: 1
      elementCount: 2
  result: 8
regex:
  wordCount: 42
  wordValue: 0.2
  result: 4.8
0.722.72
Wouldn't that lead to precision loss in JS and after the divisio…
5.6
content:
  content:
    p:
      score: 1
      elementCount: 1
    code:
      score: 1
      elementCount: 1
  result: 2
regex:
  wordCount: 30
  wordValue: 0.2
  result: 3.6
0.79.04
That is correct. I understand now why you're confused:The valu…
21.95
content:
  content:
    p:
      score: 1
      elementCount: 8
    code:
      score: 1
      elementCount: 7
  result: 15
regex:
  wordCount: 65
  wordValue: 0.2
  result: 6.95
0.739.73
I don't think is it relevant in this scenario because we are not…
6.37
content:
  content:
    p:
      score: 1
      elementCount: 1
  result: 1
regex:
  wordCount: 48
  wordValue: 0.2
  result: 5.37
0.79.518
@whilefoo you are correct, these were wrongly used. I corrected …
16.31
content:
  content:
    p:
      score: 1
      elementCount: 5
    code:
      score: 1
      elementCount: 5
  result: 10
regex:
  wordCount: 58
  wordValue: 0.2
  result: 6.31
0.728.834
Example of successful comment posting with results:https://git…
4.11
content:
  content:
    p:
      score: 1
      elementCount: 2
  result: 2
regex:
  wordCount: 16
  wordValue: 0.2
  result: 2.11
0.76.954
@0x4007 I believe that if I had all the tests in this PR it will…
4.29
content:
  content:
    p:
      score: 1
      elementCount: 1
  result: 1
regex:
  wordCount: 27
  wordValue: 0.2
  result: 3.29
0.76.606

 [ 154.377 WXDAI ] 

@0x4007
Contributions Overview
ViewContributionCountReward
IssueComment996.88
ReviewComment2357.497
Conversation Incentives
CommentFormattingRelevanceReward
@whilefoo rfc on how we can deal with comment outputs. Perhaps w…
4.64
content:
  content:
    p:
      score: 1
      elementCount: 1
    pre:
      score: 0
      elementCount: 1
    code:
      score: 1
      elementCount: 1
  result: 2
regex:
  wordCount: 47
  wordValue: 0.1
  result: 2.64
0.84.112
I think you should fork from and overtake that second pull due t…
2.11
content:
  content:
    p:
      score: 1
      elementCount: 1
  result: 1
regex:
  wordCount: 17
  wordValue: 0.1
  result: 1.11
0.81.888
I think the most pure architecture would be that plugins can NOT…
24.21
content:
  content:
    p:
      score: 1
      elementCount: 7
    ul:
      score: 1
      elementCount: 1
    li:
      score: 1
      elementCount: 2
    code:
      score: 1
      elementCount: 2
  result: 12
regex:
  wordCount: 285
  wordValue: 0.1
  result: 12.21
0.821.768
I know JSON makes things more complicated than it needs to be wi…
15.79
content:
  content:
    p:
      score: 1
      elementCount: 4
    code:
      score: 1
      elementCount: 4
  result: 8
regex:
  wordCount: 168
  wordValue: 0.1
  result: 7.79
0.814.232
Going back to my "plugin-side-rendering" mention, the data manip…
13.22
content:
  content:
    p:
      score: 1
      elementCount: 2
    code:
      score: 1
      elementCount: 5
    pre:
      score: 0
      elementCount: 1
  result: 7
regex:
  wordCount: 129
  wordValue: 0.1
  result: 6.22
0.811.976
The proposed `comment` output is intended for ease of co…
21.57
content:
  content:
    p:
      score: 1
      elementCount: 6
    code:
      score: 1
      elementCount: 3
    a:
      score: 1
      elementCount: 2
    h3:
      score: 1
      elementCount: 1
    pre:
      score: 0
      elementCount: 1
  result: 12
regex:
  wordCount: 214
  wordValue: 0.1
  result: 9.57
0.819.656
I understand your concern and I would need to put more thought i…
12.93
content:
  content:
    p:
      score: 1
      elementCount: 5
    code:
      score: 1
      elementCount: 1
    ol:
      score: 0
      elementCount: 1
    li:
      score: 1
      elementCount: 2
  result: 8
regex:
  wordCount: 98
  wordValue: 0.1
  result: 4.93
0.811.944
I see, so you're suggesting that we must annotate each comment a…
9.88
content:
  content:
    p:
      score: 1
      elementCount: 1
    ol:
      score: 0
      elementCount: 1
    li:
      score: 1
      elementCount: 4
  result: 5
regex:
  wordCount: 97
  wordValue: 0.1
  result: 4.88
0.88.904
Consider calling it "contributor" and "collaborator" as that is …
2.75
content:
  content:
    p:
      score: 1
      elementCount: 1
  result: 1
regex:
  wordCount: 29
  wordValue: 0.1
  result: 1.75
0.82.4
Nice code quality per usual
1.39
content:
  content:
    p:
      score: 1
      elementCount: 1
  result: 1
regex:
  wordCount: 5
  wordValue: 0.1
  result: 0.39
0.71.273
"Comment" implication isn't clear to me
1.52
content:
  content:
    p:
      score: 1
      elementCount: 1
  result: 1
regex:
  wordCount: 7
  wordValue: 0.1
  result: 0.52
0.71.364
I've always been anti empty string for variable declarations. It…
3.73
content:
  content:
    p:
      score: 1
      elementCount: 1
  result: 1
regex:
  wordCount: 49
  wordValue: 0.1
  result: 2.73
0.72.911
Our RPCs don't work anymore
1.46
content:
  content:
    p:
      score: 1
      elementCount: 1
  result: 1
regex:
  wordCount: 6
  wordValue: 0.1
  result: 0.46
0.71.322
Yes consider changing them to verbs `ISSUER``COMME…
4.7
content:
  content:
    p:
      score: 1
      elementCount: 1
    code:
      score: 1
      elementCount: 2
  result: 3
regex:
  wordCount: 28
  wordValue: 0.1
  result: 1.7
0.74.19
`[].join("");` yields an empty string as well if there's…
2.94
content:
  content:
    p:
      score: 1
      elementCount: 1
    code:
      score: 1
      elementCount: 1
  result: 2
regex:
  wordCount: 14
  wordValue: 0.1
  result: 0.94
0.72.658
Perhaps it will make the config more expressive if you add other…
3.49
content:
  content:
    p:
      score: 1
      elementCount: 1
    pre:
      score: 0
      elementCount: 1
    code:
      score: 1
      elementCount: 1
  result: 2
regex:
  wordCount: 24
  wordValue: 0.1
  result: 1.49
0.73.043
What is this @link syntax
1.39
content:
  content:
    p:
      score: 1
      elementCount: 1
  result: 1
regex:
  wordCount: 5
  wordValue: 0.1
  result: 0.39
0.71.273
Just noticed the bit wise operators 1337 code
1.59
content:
  content:
    p:
      score: 1
      elementCount: 1
  result: 1
regex:
  wordCount: 8
  wordValue: 0.1
  result: 0.59
0.71.413
It might seem convoluted but I think that it condenses the logic…
7.48
content:
  content:
    p:
      score: 1
      elementCount: 1
    code:
      score: 1
      elementCount: 3
    pre:
      score: 0
      elementCount: 1
  result: 4
regex:
  wordCount: 65
  wordValue: 0.1
  result: 3.48
0.76.436
I am aware of its purpose. I am proposing to make the config mor…
2.44
content:
  content:
    p:
      score: 1
      elementCount: 1
  result: 1
regex:
  wordCount: 23
  wordValue: 0.1
  result: 1.44
0.72.008
Will you use array syntax?
1.39
content:
  content:
    p:
      score: 1
      elementCount: 1
  result: 1
regex:
  wordCount: 5
  wordValue: 0.1
  result: 0.39
0.71.273
This regex appears to convert repeating spaces i.e. `" "&#…
4.22
content:
  content:
    p:
      score: 1
      elementCount: 1
    code:
      score: 1
      elementCount: 2
  result: 3
regex:
  wordCount: 19
  wordValue: 0.1
  result: 1.22
0.73.854
This doesn't seem right. Network ID 1 is mainnet. The RPC clearl…
2.54
content:
  content:
    p:
      score: 1
      elementCount: 1
  result: 1
regex:
  wordCount: 25
  wordValue: 0.1
  result: 1.54
0.72.078
Seems like not a very useful mock.
1.52
content:
  content:
    p:
      score: 1
      elementCount: 1
  result: 1
regex:
  wordCount: 7
  wordValue: 0.1
  result: 0.52
0.71.364
Same here
1.18
content:
  content:
    p:
      score: 1
      elementCount: 1
  result: 1
regex:
  wordCount: 2
  wordValue: 0.1
  result: 0.18
0.71.126
The token address indeed represents DAI on mainnet.
1.59
content:
  content:
    p:
      score: 1
      elementCount: 1
  result: 1
regex:
  wordCount: 8
  wordValue: 0.1
  result: 0.59
0.71.413
@gentlementlegen rfc
1.18
content:
  content:
    p:
      score: 1
      elementCount: 1
  result: 1
regex:
  wordCount: 2
  wordValue: 0.1
  result: 0.18
0.71.126
Why not do it in the industry standard way? All values are denom…
4.8
content:
  content:
    p:
      score: 1
      elementCount: 1
    code:
      score: 1
      elementCount: 2
  result: 3
regex:
  wordCount: 30
  wordValue: 0.1
  result: 1.8
0.74.26
I'm not sure if I understand but task reward is if you completed…
3.35
content:
  content:
    p:
      score: 1
      elementCount: 1
  result: 1
regex:
  wordCount: 41
  wordValue: 0.1
  result: 2.35
0.72.645
Spoke a bit on this in dms. @whilefoo my intent with referring t…
8.05
content:
  content:
    p:
      score: 1
      elementCount: 3
  result: 3
regex:
  wordCount: 101
  wordValue: 0.1
  result: 5.05
0.76.535
Possibly. I personally haven't had that issue but either way my …
2.7
content:
  content:
    p:
      score: 1
      elementCount: 1
  result: 1
regex:
  wordCount: 28
  wordValue: 0.1
  result: 1.7
0.72.19
I think it's fine. I generally scrutinize test code less than no…
2.06
content:
  content:
    p:
      score: 1
      elementCount: 1
  result: 1
regex:
  wordCount: 16
  wordValue: 0.1
  result: 1.06
0.71.742

 [ 10.73 WXDAI ] 

@whilefoo
Contributions Overview
ViewContributionCountReward
IssueComment13.8505
ReviewComment116.8795
Conversation Incentives
CommentFormattingRelevanceReward
there are a couple of options:1. we let the conversation-rewar…
16.99
content:
  content:
    p:
      score: 1
      elementCount: 6
    ol:
      score: 0
      elementCount: 1
    li:
      score: 1
      elementCount: 3
  result: 9
regex:
  wordCount: 173
  wordValue: 0.1
  result: 7.99
0.83.8505
```suggestionreturn result;```…
2.94
content:
  content:
    pre:
      score: 0
      elementCount: 1
    code:
      score: 1
      elementCount: 1
    p:
      score: 1
      elementCount: 1
  result: 2
regex:
  wordCount: 14
  wordValue: 0.1
  result: 0.94
0.70.6695
I'm not sure if it's a good idea to rely on logs for testing, is…
2.54
content:
  content:
    p:
      score: 1
      elementCount: 1
  result: 1
regex:
  wordCount: 25
  wordValue: 0.1
  result: 1.54
0.70.5245
why so many nested functions? it becomes hard to read
1.71
content:
  content:
    p:
      score: 1
      elementCount: 1
  result: 1
regex:
  wordCount: 10
  wordValue: 0.1
  result: 0.71
0.70.37675
is there a reason we are using Decimal.js instead of native BigI…
1.88
content:
  content:
    p:
      score: 1
      elementCount: 1
  result: 1
regex:
  wordCount: 13
  wordValue: 0.1
  result: 0.88
0.70.404
Shouldn't task be issue opening item and specification is pull r…
2.49
content:
  content:
    p:
      score: 1
      elementCount: 1
  result: 1
regex:
  wordCount: 24
  wordValue: 0.1
  result: 1.49
0.70.50825
I assume this is a permit for task assignee, but where are other…
2.28
content:
  content:
    p:
      score: 1
      elementCount: 1
  result: 1
regex:
  wordCount: 20
  wordValue: 0.1
  result: 1.28
0.70.474
gotcha, I thought this html is for all users
1.65
content:
  content:
    p:
      score: 1
      elementCount: 1
  result: 1
regex:
  wordCount: 9
  wordValue: 0.1
  result: 0.65
0.70.36125
I can see from the example that it works correctly but when read…
6.92
content:
  content:
    p:
      score: 1
      elementCount: 3
  result: 3
regex:
  wordCount: 75
  wordValue: 0.1
  result: 3.92
0.71.436
Ok so we need it for precise floating point calculations, in tha…
2.11
content:
  content:
    p:
      score: 1
      elementCount: 1
  result: 1
regex:
  wordCount: 17
  wordValue: 0.1
  result: 1.11
0.70.44675
why is it `ISSUER` which is meant for author of issue/re…
6.1
content:
  content:
    p:
      score: 1
      elementCount: 2
    code:
      score: 1
      elementCount: 2
  result: 4
regex:
  wordCount: 36
  wordValue: 0.1
  result: 2.1
0.71.3725
this makes more sense!
1.32
content:
  content:
    p:
      score: 1
      elementCount: 1
  result: 1
regex:
  wordCount: 4
  wordValue: 0.1
  result: 0.32
0.70.306