4
$\begingroup$

In the election chat room I gave a count of the number of users allowed to vote: 126 users. I did this by looking at the users page and just counting them by hand. It started a series of others calculating the number and getting different answers. I am thrilled that it inspired others to take notice. Since we are getting different numbers and some are using what I would consider a more accurate means of counting (ref) the question is as the title.

How can the actual count of those eligible to vote be determined?


A related question if the number is different than what can be derived by counting the users page is why a difference in the two ways? E.g. Are there people allowed to vote that are not showing up on the users page? etc.

$\endgroup$

2 Answers 2

8
$\begingroup$

I'm guessing one of the easiest ways is to go to the users tab, sort by reputation, all time, and then count. Each page is 4x9, so 36 people and you can add it up pretty quickly.

As of right now, you have three full pages plus 18 extra on page 4. That's 108+18 = 126. It requires a bit of math but it's more reliable than SEDE since that's only updated weekly.

$\endgroup$
6
  • $\begingroup$ @GuyCoder Area51 says 150 have 200+ reputation, so that's more than the claim that 126 have >= 150. $\endgroup$
    – Rob
    Commented Mar 29, 2022 at 15:24
  • 2
    $\begingroup$ @Rob Did you see We recommend: in the line before 150 users with 200+ rep (on pace for 154 users at 90 days)? $\endgroup$
    – Guy Coder
    Commented Mar 29, 2022 at 15:30
  • $\begingroup$ @GuyCoder so you didn't notice that all the values are incorrect --- In your quest to prove my statement untrue you failed to notice anything else, let's not continue. $\endgroup$
    – Rob
    Commented Mar 29, 2022 at 15:37
  • $\begingroup$ @Rob Could you further describe how the values in your link are incorrect? I checked some of the user profiles and I think the numbers are (at least mostly) correct on the "all" tab. You could check some of the possible problems listed in comments here. $\endgroup$
    – Bubbler
    Commented Apr 1, 2022 at 2:33
  • $\begingroup$ @bub, no. This was a lengthy back and forth, the excess comments were deleted by Catija, leaving what is there now; let's not restart. $\endgroup$
    – Rob
    Commented Apr 1, 2022 at 4:40
  • $\begingroup$ Oh, sorry then. $\endgroup$
    – Bubbler
    Commented Apr 1, 2022 at 5:00
7
$\begingroup$

You can use the Stack Exchange API for this to get the live number of eligible voters, because there is a min (reputation) field.

Current result --

Example use of the API:
https://api.stackexchange.com/docs/users#min=150&filter=!40CXOUq0axmHYcgDp&site=proofassistants&run=true


The ElectionBot, when set up in the election chat room, also gets the number of eligible voters this way, and is able to return the number of users who are eligible, as well as the number who has already voted for that election.

Example chat message:

Based on the number of Constituent badges awarded, 57 (44.53% of 128 eligible) users have voted so far.

$\endgroup$
4
  • $\begingroup$ Thanks Samuel. You're a diamond moderator on SO right? On that site, it's not preferred to display hyperlinks instead of URLs? $\endgroup$ Commented Mar 30, 2022 at 3:22
  • $\begingroup$ Well, the URL query parameters is important to the answer. $\endgroup$ Commented Mar 30, 2022 at 3:24
  • $\begingroup$ I see. So basically the way to use the API, is to change the URL (e.g. proofassistants changes to stackoverflow and 150 changes to 3000)? There's no other way to run the API with different parameters? Also, I guess you didn't actually answer the question, about whether or not it's preferred to display hyperlinks instead of URLs on SO (in cases where the URL doesn't contain query parameters or something with a similar level of importance). $\endgroup$ Commented Mar 30, 2022 at 3:28
  • $\begingroup$ Correct, that's how it's done. No, there's no link display preference as far as I'm aware of. $\endgroup$ Commented Mar 30, 2022 at 3:36

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .