Technical report · September 2026
Blind binary sentiment classification on GitHub developer comments: an evaluation model versus a general-purpose flash LLM
Abstract
We compare typesafe-ai/jev, an evaluation model that returns a structured choice with probabilities, against alibaba/qwen3.7-flash, a general-purpose generative model, on 1,000 class-balanced pull-request and commit comments from the GitHub sentiment gold standard of Novielli et al. [1]. Neither model saw the reference label. Jev labelled 91.1% of comments correctly (95% CI 89.2%–92.7%) and Qwen3.7 Flash 87.7% (85.5%–89.6%). The 3.4-point gap in favour of Jev is statistically significant under an exact McNemar test on the 94 comments where the models disagreed (p < 0.001). Both models missed the same 59 comments; we publish all 1,000 answers for inspection.
1Headline accuracy
Accuracy is the share of all 1,000 comments labelled correctly; an answer that could not be parsed counts as wrong. Because the sample is exactly half positive and half negative, a coin flip scores 50%, and so does a model that always answers the same way.
| Model | Accuracy | 95% CI | Macro F1 | Recall + | Recall − | No answer | Median latency | Tokens in / out | Expected cost / 1k | Billed / 1k |
|---|---|---|---|---|---|---|---|---|---|---|
| Jev | 91.1% | 89.2%–92.7% | 0.911 | 93.4% | 88.8% | 0 | 282 ms | 383 / 32 | $0.0161 | $0.0000 |
| Qwen3.7 Flash | 87.7% | 85.5%–89.6% | 0.876 | 98.6% | 76.8% | 0 | 3.4 s | 133 / 233 | $0.0342 | $0.0342 |
Throttling. AI Gateway held this account to about 5 requests a minute for Qwen3.7 Flash. The full run sent requests in parallel and retried each one the gateway turned away, so counting those waits the median request took 344 ms for Jev and 54.0 s for Qwen3.7 Flash. The waits come from the account’s limit, not the model, and an account with a higher limit would not see them. So the response times above come only from the separate throttle-free speed test. Without throttling, Qwen3.7 Flash is still slower than Jev because it produces about 230 tokens per comment, most of them reasoning that is not part of its one-word reply; Jev produces 32.
2Every verdict, one square each
Each square below is one comment, in the same position in both grids, so you can compare the two models comment by comment. Grey squares are correct and red squares are mistakes. Hover a square to see what each model said, or switch the highlight to the comments where the models disagreed.
- Correct
- ✕ Wrong
- No usable answer
| actual ↓ predicted → | positive | negative |
|---|---|---|
| positive | 46793% | 337% |
| negative | 5611% | 44489% |
| actual ↓ predicted → | positive | negative |
|---|---|---|
| positive | 49399% | 71% |
| negative | 11623% | 38477% |
3Where they disagree
Both models saw the same comments, so the fair comparison is paired. The models agreed on 906 comments (90.6%) and disagreed on 94. Only those disagreements tell the models apart, and McNemar’s test [3] asks whether they split more unevenly than chance would. Jev was right on 64 and Qwen3.7 Flash on 30 (p < 0.001). At the 5% level, Jev is the more accurate model on this task.
| Qwen3.7 Flash right | Qwen3.7 Flash wrong | |
|---|---|---|
| Jev right | 84784.7% | 646.4% |
| Jev wrong | 303.0% | 595.9% |
Does length matter? Most comments are a sentence or two, and the shortest give a model almost nothing to go on beyond a word or an emoticon. Figure 5 splits the sample into five equal groups by word count.
- Jev
- Qwen3.7 Flash
View as table
| Words | Comments | Jev | Qwen3.7 Flash |
|---|---|---|---|
| 1–5 | 200 | 93.5% | 92.5% |
| 5–10 | 200 | 92.0% | 87.5% |
| 10–16 | 200 | 90.5% | 86.0% |
| 16–26 | 200 | 92.5% | 87.0% |
| 26–56 | 200 | 87.0% | 85.5% |
4Does Jev know when it’s wrong?
As an evaluation model, Jev returns a probability for each label, not just an answer. A well-calibrated model that says “90% sure” should be right about 90% of the time. Its average confidence was 94.8% on answers it got right and 74.6% on answers it got wrong. The expected calibration error [4] is 3.0 points, which is well calibrated. Qwen3.7 Flash returns only text, so it has no equivalent chart.
View as table
| Confidence bin | Comments | Mean confidence | Accuracy |
|---|---|---|---|
| 50%–55% | 17 | 52.6% | 47.1% |
| 55%–60% | 30 | 57.1% | 53.3% |
| 60%–65% | 29 | 63.0% | 69.0% |
| 65%–70% | 18 | 67.9% | 55.6% |
| 70%–75% | 24 | 72.8% | 54.2% |
| 75%–80% | 29 | 78.1% | 79.3% |
| 80%–85% | 35 | 83.5% | 88.6% |
| 85%–90% | 42 | 88.1% | 76.2% |
| 90%–95% | 81 | 93.1% | 95.1% |
| 95%–100% | 695 | 99.5% | 98.0% |
5Error analysis
Accuracy doesn’t show what the mistakes look like. These are the actual comments the models got wrong, with the human label and each model’s answer.
Comments where exactly one model was right. Jev won 64 of these 94. Shortest first. Showing 12 of 94.
Naughty!
evil fix!
ah, sorry
holy crap
Oops. My mistake !
That demotivator is GREAT.
Oops forgot indentation :(
Hahaha what was i thinking
my editor is the culprit!
Gah, didn't notice that :)
Oops... forget about this !
That typo was just crazy!
6Method
Data. The GitHub sentiment gold standard [1] holds 7,122 comments on pull requests and commits from 90 repositories in the 2014 MSR Mining Challenge dataset, each labelled positive, negative or neutral by human annotators following written guidelines. We set aside the 3,022 neutral comments to keep the task binary, undid a second layer of CSV quoting left by the dataset’s export (a stray closing quotation mark on most texts, doubled quotation marks inside them), dropped 1 exact duplicate, and drew 500 positive and 500 negative comments from the 4,099 that remained, with a seeded shuffle (seed 42). The source file is committed in data/raw/github_gold.csv and the sample in data/github/sample.json.
Blinding. A request contains only the comment text, the task instructions and the two label definitions below. The reference label stays on disk and is joined back only when scoring.
Models. Both models were called once per comment through Vercel AI Gateway with the AI SDK (ai@7.0.113). Jev is an evaluation model, called with experimental_evaluate and a single choice question; it returns the chosen label with a probability for each option. Qwen3.7 Flash is a chat model, called with generateText at temperature 0. Its reply was matched against the words “positive” and “negative”, and a reply containing neither or both counted as no answer (there were none).
typesafe-ai/jev{
"state": "<comment text>",
"questions": {
"sentiment": {
"type": "choice",
"instructions": "Classify the overall emotional tone the author expresses in this comment from a GitHub pull request or commit discussion.",
"criteria": {
"positive": "The author's overall tone is positive, for example appreciative, pleased, enthusiastic or friendly.",
"negative": "The author's overall tone is negative, for example frustrated, annoyed, disappointed or hostile."
}
}
}
}alibaba/qwen3.7-flashsystem You are a sentiment classifier. Classify the overall emotional tone the author expresses in this comment from a GitHub pull request or commit discussion. positive: The author's overall tone is positive, for example appreciative, pleased, enthusiastic or friendly. negative: The author's overall tone is negative, for example frustrated, annoyed, disappointed or hostile. Answer with exactly one lowercase word, positive or negative, and nothing else. user <comment> <comment text> </comment>
Listing 1. The exact requests. Both models get the same instructions and label definitions.
Statistics. Intervals are 95% Wilson score intervals [2]. The two models are compared with a two-sided exact McNemar test [3] (a binomial test on the discordant pairs). Calibration uses expected calibration error [4] over 5-point bins of the evaluation model’s probability for its chosen label.
7Limitations
- An easier task than real use. Neutral comments, 43% of the gold standard, are left out. In a real repository most comments are neutral, so a two-way test overstates how well either model would triage live discussion.
- Labels are annotators’ readings of tone. Short comments are often ambiguous, and some of each model’s “errors” may be cases where a reasonable reader would disagree with the label; the gallery above is the place to check.
- Possible contamination. The comments were public on GitHub years before either model was trained, and the labelled dataset has been public since 2020.
- One run, one prompt. Results are from a single pass with one wording. Different instructions, few-shot examples or a different answer parser could move the numbers by a point or two.
- Different interfaces. The evaluation model answers in a fixed format; the chat model has to be parsed. That is part of what is being compared, not a flaw to correct for.
References
- N. Novielli, F. Calefato, D. Dongiovanni, D. Girardi, F. Lanubile. Can We Use SE-specific Sentiment Analysis Tools in a Cross-Platform Setting? MSR, 2020. Dataset: “A gold standard for polarity of emotions of software developers in GitHub”, figshare.com/articles/dataset/11604597, licensed CC BY 4.0. We removed the neutral comments, repaired the CSV quoting and drew a balanced sample.
- E. B. Wilson. Probable inference, the law of succession, and statistical inference. JASA 22(158), 1927.
- Q. McNemar. Note on the sampling error of the difference between correlated proportions or percentages. Psychometrika 12(2), 1947.
- C. Guo, G. Pleiss, Y. Sun, K. Q. Weinberger. On Calibration of Modern Neural Networks. ICML, 2017.
Data & reproduction
Every answer is filed in data/github/results.json and in github/results.csv, one row per comment. The site is static and makes no model calls. To re-run:
npm install cp .env.example .env.local # add AI_GATEWAY_API_KEY npm run eval -- --dataset github # 1,000 comments × 2 models, resumable npm run build