Research · Comments from GitHub pull requests and commits · Models called through Vercel AI Gateway

Can AI models tell praise from complaint?

We gave Jev and Qwen3.7 Flash 1,000 comments from GitHub pull requests and commits and asked whether each was positive or negative. People have labelled every comment, and the models never see those labels. We checked every answer.

Jevtypesafe-ai/jev
91.1%
911 of 1,000 correct · 95% CI 89.2%–92.7%
Median response
282 ms
Cost / 1k comments
$0.0161
Purpose-built evaluation model
Qwen3.7 Flashalibaba/qwen3.7-flash
87.7%
877 of 1,000 correct · 95% CI 85.5%–89.6%
Median response
3.4 s
Cost / 1k comments
$0.0342
General-purpose flash LLM

Gap 3.4 ptsPaired test p < 0.001Class balance 50 / 50Chance 50%

  1. 01Sample

    1,000 comments drawn at random from 4,099 positive or negative comments in the GitHub sentiment gold standard, half positive and half negative (seed 42).

  2. 02Blind

    The human label is set aside. Each model sees only the comment and the task.

  3. 03Ask

    Both models are called through Vercel AI Gateway with the same instructions and label definitions.

  4. 04Score

    Every answer is checked against the human annotators’ label and filed, once.

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.

Jev
91.1%
Qwen3.7 Flash
87.7%
80%85%90%95%100%
Figure 1. Accuracy with 95% Wilson score intervals [2]. Intervals are for each model on its own; the paired comparison is in Figure 4.
ModelAccuracy95% CIMacro F1Recall +Recall −No answerMedian latencyTokens in / outExpected cost / 1kBilled / 1k
Jev91.1%89.2%–92.7%0.91193.4%88.8%0282 ms383 / 32$0.0161$0.0000
Qwen3.7 Flash87.7%85.5%–89.6%0.87698.6%76.8%03.4 s133 / 233$0.0342$0.0342
Table 1. Recall + / − is accuracy on positive and on negative comments. Median latency comes from a separate speed test of 50 comments per model: one request at a time from one client through AI Gateway, each timed as a single attempt. Any request the gateway throttled or failed to serve was discarded and sent again rather than timed (discarded: Jev 1 throttled, 5 service errors; Qwen3.7 Flash 50 throttled). 95th percentile: Jev 407 ms, Qwen3.7 Flash 9.5 s. Tokens are the mean per comment. Expected cost is those tokens at list price (Jev $0.042 in / $0 out; Qwen3.7 Flash $0.03 in / $0.13 out per million tokens), whatever free tier or credits apply. Billed is what AI Gateway charged this run; Jev was billed $0 on this account (free tier).

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
Jev89 missed
Positive comments500
Negative comments500
Qwen3.7 Flash123 missed
Positive comments500
Negative comments500
Figure 2. All 1,000 verdicts per model, grouped by the human label. Full per-comment answers are in the CSV download.
Jev
actual ↓  predicted →positivenegative
positive46733
negative56444
Qwen3.7 Flash
actual ↓  predicted →positivenegative
positive4937
negative116384
Figure 3. Confusion matrices. Rows are the human label and columns are the model’s answer; shading is the share of the row. Errors off the diagonal show whether a model leans positive or negative.

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 right84784.7%646.4%
Jev wrong303.0%595.9%
Figure 4. Paired outcomes. The off-diagonal cells are the discordant pairs used by the exact McNemar test.

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
80%
85%
90%
95%
100%
87.0%85.5%
1–55–1010–1616–2626–56
Comment length, words (five equal-size groups of 200)
View as table
WordsCommentsJevQwen3.7 Flash
1–520093.5%92.5%
5–1020092.0%87.5%
10–1620090.5%86.0%
16–2620092.5%87.0%
26–5620087.0%85.5%
Figure 5. Accuracy by comment length. Each group holds 200 comments, so each point has a 95% interval of roughly ±4 points. Read the trend, not single points.

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.

0%
25%
50%
75%
100%
perfectly calibrated
50%60%70%80%90%100%
Jev’s probability for the label it chose · bubble area = number of comments
View as table
Confidence binCommentsMean confidenceAccuracy
50%–55%1752.6%47.1%
55%–60%3057.1%53.3%
60%–65%2963.0%69.0%
65%–70%1867.9%55.6%
70%–75%2472.8%54.2%
75%–80%2978.1%79.3%
80%–85%3583.5%88.6%
85%–90%4288.1%76.2%
90%–95%8193.1%95.1%
95%–100%69599.5%98.0%
Figure 6. Reliability diagram for Jev, in 5-point confidence bins. Points below the diagonal are over-confident and points above it are under-confident.

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.

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).

Jev · 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."
      }
    }
  }
}
Qwen3.7 Flash · alibaba/qwen3.7-flash
system
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

  1. 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.
  2. E. B. Wilson. Probable inference, the law of succession, and statistical inference. JASA 22(158), 1927.
  3. Q. McNemar. Note on the sampling error of the difference between correlated proportions or percentages. Psychometrika 12(2), 1947.
  4. 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