ubiquity-os-marketplace / daemon-pricing

0 stars 12 forks source link

`/allow` Broken #34

Closed 0x4007 closed 4 weeks ago

0x4007 commented 4 weeks ago

/allow @0x4007 price

assistive-pricing plugin failed to run.
Error: Column 'repository_id' of relation 'access' does not exist

Usage:   /<command> @<username> [labels...]

Arguments:
  command        The command to execute, e.g. /allow
  username       User name to allow rights to, e.g @ubiquibot
  labels         Labels to allow, e.g time priority

Options:
  -V, --version  output the version number
  -h, --help     display help for command

Originally posted by @ubiquity-os[bot] in https://github.com/0x4007/command-start-stop/issues/1#issuecomment-2350971720

0x4007 commented 4 weeks ago

Who has access to the database?

ubiquity-os[bot] commented 4 weeks ago

@0x4007 the deadline is at Sat, Sep 14, 4:43 PM UTC

0x4007 commented 4 weeks ago

I figured it out.

ubiquity-os[bot] commented 4 weeks ago

[ 99.054 WXDAI ]

@0x4007
Contributions Overview
View Contribution Count Reward
Issue Task 1 50
Issue Specification 1 48.31
Issue Comment 3 0.744
Conversation Incentives
Comment Formatting Relevance Reward
``` assistive-pricing plugin failed to run. Error:…
48.31
content:
  pre:
    symbols:
      \b\w+\b:
        count: 1
        multiplier: 0.1
    score: 0
  code:
    symbols:
      \b\w+\b:
        count: 59
        multiplier: 0.1
    score: 5
  p:
    symbols:
      \b\w+\b:
        count: 1
        multiplier: 0.1
    score: 1
  em:
    symbols:
      \b\w+\b:
        count: 18
        multiplier: 0.1
    score: 0
multiplier: 3
1 48.31
Who has access to the database?
0.92
content:
  p:
    symbols:
      \b\w+\b:
        count: 6
        multiplier: 0.2
    score: 1
multiplier: 1
0.5 0.46
I figured it out.
0.65
content:
  p:
    symbols:
      \b\w+\b:
        count: 4
        multiplier: 0.2
    score: 1
multiplier: 1
0.2 0.13
https://github.com/0x4007/command-start-stop/issues/1#issuecomme…
1.54
content:
  p:
    symbols:
      \b\w+\b:
        count: 11
        multiplier: 0.2
    score: 1
multiplier: 1
0.1 0.154
0x4007 commented 4 weeks ago

https://github.com/0x4007/command-start-stop/issues/1#issuecomment-2351037372

0x4007 commented 4 weeks ago

@gentlementlegen code word count is nuts. That aint right

gentlementlegen commented 4 weeks ago

@0x4007 The word count is close to correct, counted with a tool gave me 66 for the spec, here the word count for the spec is 79. The total should have been (((18*0.1) + (1*0.1) + (59*0.1) + (1*0.1))*3)^0.85=14.74, so dunno what happened.

0x4007 commented 4 weeks ago

It's not supposed to count words inside of block quotes or code

gentlementlegen commented 4 weeks ago

According to the configuration code is rewarded 5 https://github.com/ubiquity/ubiquibot-config/blob/development/.github/.ubiquibot-config.yml#L53 which explain why you got such a high reward.

0x4007 commented 4 weeks ago

It should be 5 for the entire code block. Words should all be credited 0.1 but ignored in code block and block quotes

gentlementlegen commented 4 weeks ago

Then this should be ok after https://github.com/ubiquibot/conversation-rewards/issues/92 is in.