GITHUB_REPOS Query 2 ground truth violates the language requirement
GITHUB_REPOS Query 2 expected answer conflicts with the language requirement
The question asks for a repository “in Swift language,” and the supplied hint says to determine a repository’s primary/main language by comparing byte counts.
The expected answer is SwiftAndroid/swift, whose language data states:
C++: 18,941,219 bytes
Swift: 12,538,936 bytes
Hint: “The languages table's language_description field may contain multiple programming languages per repository. To determine the primary or main language, compare the relative number of bytes across languages.”
C++ is therefore its primary language, with Swift second. Under the benchmark’s instructed primary-language interpretation in hints, the expected repository does not satisfy the Swift-language requirement.
If “in Swift language” was intended to mean any repository containing some Swift code, the question should say so explicitly and the primary-language hint should not apply. As written, the question, hint, and expected answer are inconsistent.
As with the other issue I raised, correct me if I'm wrong. :D
| Proposed answer | Benchmark answer | |
|---|---|---|
| Repository | uacaps/PageMenu | SwiftAndroid/swift |
| Highest qualifying copy count | 38 | 23 |
| Primary language | Swift | C++ |
| Swift bytes | 56,461 | 12,538,936 |
| Largest competing language | Objective-C: 51,756 | C++: 18,941,219 |
uacaps/PageMenu contains a non-binary .swift file repeated 38 times. SwiftAndroid/swift has two qualifying files tied at 23, but C++ exceeds Swift in its language-byte totals.
Therefore, uacaps/PageMenu wins under either interpretation:
- If “in Swift” means Swift is the repository’s primary language, PageMenu qualifies while SwiftAndroid does not.
- If it merely means the repository contains Swift files, PageMenu still leads 38 to 23.
This suggests the benchmark answer is inconsistent with both the stated language requirement and the observed copy counts.
Hi @ericmillsio ! Thanks for catching this! We hold our ground-truth answer, for the following reason.
This query requires a valid file to appear in the files table. However, neither uacaps/PageMenu nor its only file in the contents table (6f4cdb70f044b0486a24a07403600cb964a02672, Demos/Demo 4/PageMenuDemoTabbar/PageMenuDemoTabbar/ContactTableViewCell.swift) ever appears in the files table:
select count(*) from files where repo_name = 'uacaps/PageMenu'; -- 0
select count(*) from files where id = '6f4cdb70f044b0486a24a07403600cb964a02672'; -- 0
So we do not consider it a valid answer.
That said, we agree the query should be clearer. We have updated it as follows:
Identify the repository that contains Swift code and the most frequently copied non-binary Swift (
.swift) file in the dataset, ensuring that each file is uniquely determined by its ID in thefilestable.
The expected answer is unchanged: SwiftAndroid/swift.