12 KiB
Generated
Third-party material in pplus-library
Generated by python3 scripts/mojo/corpus.py emit in pplus-core (pixi run mojo-emit) from mojo/pin.json, mojo/mojo.lock.json and the files under mojo/corpus/. Do not edit; pplus-core's tests/third-party.test.mjs fails while this file is out of date.
Everything in this repository is ours, under the Apache License 2.0 (LICENSE.md), except mojo/corpus/, which is Modular's material harvested for Mojo 1.2.0 and listed below; mojo/licenses/, the upstream license texts; and mojo/golden/, the answers Compiler Explorer (godbolt.org) returned for each program, which are the Mojo compiler's output for our programs and for the corpus. A file under mojo/corpus/ is a test fixture: pplus-core's tests read it and the app does not ship it.
Sources
| source | repository | commit | license the pin states | license file at that commit | copy here |
|---|---|---|---|---|---|
| modular | modular/modular | 527d069ee11a |
Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same license) | LICENSE, checked 2026-11-12 |
mojo/licenses/modular-LICENSE.txt |
| mojo-quest | modular/mojo-quest | 8e884a709866 |
Apache-2.0 WITH LLVM-exception per file headers; the repo has no LICENSE file, so confirm with Modular before showing exercises to students | none, checked 2026-11-12 | none |
| mojo-syntax | modular/mojo-syntax | 48cdeac4f6b5 |
MIT | LICENSE, checked 2026-11-12 |
mojo/licenses/mojo-syntax-LICENSE.txt |
| skills | modular/skills | c18d0e2b34e9 |
Apache-2.0 WITH LLVM-exception | LICENSE, checked 2026-11-12 |
mojo/licenses/skills-LICENSE.txt |
| vscode-mojo | modular/vscode-mojo | e7f673213c2d |
Apache-2.0 | LICENSE, checked 2026-11-12 |
mojo/licenses/vscode-mojo-LICENSE.txt |
What each check found:
- modular: The root LICENSE is Apache-2.0 WITH LLVM-exception for the whole repository, and the README says the repository and its contributions are under it; nothing carves out docs/. Licenses/LICENSE is the MAX Community License, which Licenses/README.md says ships with Modular's packaged products, not the repository's sources. The docs' .mdx pages carry no header of their own; docs/site/code/*.mojo carry Modular's Apache-2.0 WITH LLVM-exception header.
- mojo-quest: The repository github.com/modular/mojo-quest is public and holds this commit (so the inferred name is right); at this commit it has no LICENSE, COPYING or NOTICE file; its README and package.json name no license. exercises/*.mojo carry Modular's Apache-2.0 WITH LLVM-exception header; src/data/issues.ts (the starters and the ticket text) carries none.
- mojo-syntax: MIT, copyright Modular Inc., MagicStack Inc. and Microsoft Corporation. The MIT notice must go with copies of the grammar.
- skills: Apache-2.0 WITH LLVM-exception (the LLVM Project's license text, verbatim). mojo-syntax/SKILL.md carries no header of its own.
- vscode-mojo: Apache-2.0 (the plain license, no LLVM exception), with no NOTICE file.
Harvested programs, by license header
Each .mojo file the processors wrote, with the header it carries in its first 40 lines. "Apache-2.0 WITH LLVM-exception" is Modular's header ("Copyright (c) , Modular Inc. ... Licensed under the Apache License v2.0 with LLVM Exceptions").
| source | processor | files | with Modular's header | with another header | with no header |
|---|---|---|---|---|---|
| modular | diagnostics | 185 | 185 | 0 | 0 |
| modular | manual | 206 | 175 | 0 | 31 |
| mojo-quest | quest | 176 | 88 | 0 | 88 |
| all | 567 | 448 | 0 | 119 |
Files with a header other than Modular's
None.
Files with no license header (119)
These carry no header because the processor took them out of a file that has none: a manual page's program and its output (docs/site/manual/*.mdx), or a Mojo Quest starter (src/data/issues.ts). They fall under their repository's license, where it has one (see Sources).
- modular:
docs/site/manual/control-flow.mdx:manual/snippets/manual-control-flow-28.mojo,manual/snippets/manual-control-flow-29.mojo,manual/snippets/manual-control-flow-30.mojo - modular:
docs/site/manual/errors.mdx:manual/snippets/manual-errors-1.mojo,manual/snippets/manual-errors-5.mojo,manual/snippets/manual-errors-6.mojo,manual/snippets/manual-errors-7.mojo,manual/snippets/manual-errors-8.mojo - modular:
docs/site/manual/parameters/index.mdx:manual/snippets/manual-parameters-index-1.mojo,manual/snippets/manual-parameters-index-2.mojo,manual/snippets/manual-parameters-index-4.mojo,manual/snippets/manual-parameters-index-7.mojo - modular:
docs/site/manual/pointers/using-pointers.mdx:manual/snippets/manual-pointers-using-pointers-4.mojo - modular:
docs/site/manual/python/types.mdx:manual/snippets/manual-python-types-1.mojo,manual/snippets/manual-python-types-2.mojo,manual/snippets/manual-python-types-3.mojo,manual/snippets/manual-python-types-4.mojo,manual/snippets/manual-python-types-5.mojo,manual/snippets/manual-python-types-6.mojo - modular:
docs/site/manual/types.mdx:manual/snippets/manual-types-7.mojo - modular:
docs/site/manual/values/lifetimes.mdx:manual/snippets/manual-values-lifetimes-1.mojo,manual/snippets/manual-values-lifetimes-2.mojo,manual/snippets/manual-values-lifetimes-3.mojo - modular:
docs/site/manual/values/ownership.mdx:manual/snippets/manual-values-ownership-1.mojo,manual/snippets/manual-values-ownership-2.mojo,manual/snippets/manual-values-ownership-3.mojo,manual/snippets/manual-values-ownership-4.mojo,manual/snippets/manual-values-ownership-5.mojo - modular:
docs/site/manual/values/value-semantics.mdx:manual/snippets/manual-values-value-semantics-1.mojo,manual/snippets/manual-values-value-semantics-2.mojo - modular:
docs/site/reference/decorators/parameter.mdx:manual/snippets/reference-decorators-parameter-1.mojo - mojo-quest:
src/data/issues.ts:quest/starters/MQ_101.mojo,quest/starters/MQ_102.mojo,quest/starters/MQ_103.mojo,quest/starters/MQ_104.mojo,quest/starters/MQ_105.mojo,quest/starters/MQ_106.mojo,quest/starters/MQ_107.mojo,quest/starters/MQ_108.mojo,quest/starters/MQ_109.mojo,quest/starters/MQ_110.mojo,quest/starters/MQ_111.mojo,quest/starters/MQ_113.mojo,quest/starters/MQ_115.mojo,quest/starters/MQ_201.mojo,quest/starters/MQ_202.mojo,quest/starters/MQ_203.mojo,quest/starters/MQ_207.mojo,quest/starters/MQ_208.mojo,quest/starters/MQ_210.mojo,quest/starters/MQ_211.mojo,quest/starters/MQ_213.mojo,quest/starters/MQ_214.mojo,quest/starters/MQ_215.mojo,quest/starters/MQ_219.mojo,quest/starters/MQ_220.mojo,quest/starters/MQ_221.mojo,quest/starters/MQ_222.mojo,quest/starters/MQ_223.mojo,quest/starters/MQ_224.mojo,quest/starters/MQ_301.mojo,quest/starters/MQ_302.mojo,quest/starters/MQ_303.mojo,quest/starters/MQ_304.mojo,quest/starters/MQ_305.mojo,quest/starters/MQ_306.mojo,quest/starters/MQ_308.mojo,quest/starters/MQ_309.mojo,quest/starters/MQ_310.mojo,quest/starters/MQ_312.mojo,quest/starters/MQ_320.mojo,quest/starters/MQ_321.mojo,quest/starters/MQ_322.mojo,quest/starters/MQ_323.mojo,quest/starters/MQ_324.mojo,quest/starters/MQ_325.mojo,quest/starters/MQ_326.mojo,quest/starters/MQ_327.mojo,quest/starters/MQ_328.mojo,quest/starters/MQ_401.mojo,quest/starters/MQ_402.mojo,quest/starters/MQ_403.mojo,quest/starters/MQ_412.mojo,quest/starters/MQ_501.mojo,quest/starters/MQ_502.mojo,quest/starters/MQ_503.mojo,quest/starters/MQ_504.mojo,quest/starters/MQ_505.mojo,quest/starters/MQ_507.mojo,quest/starters/MQ_508.mojo,quest/starters/MQ_510.mojo,quest/starters/MQ_511.mojo,quest/starters/MQ_512.mojo,quest/starters/MQ_513.mojo,quest/starters/MQ_520.mojo,quest/starters/MQ_601.mojo,quest/starters/MQ_602.mojo,quest/starters/MQ_604.mojo,quest/starters/MQ_702.mojo,quest/starters/MQ_703.mojo,quest/starters/MQ_704.mojo,quest/starters/MQ_705.mojo,quest/starters/MQ_706.mojo,quest/starters/MQ_710.mojo,quest/starters/MQ_801.mojo,quest/starters/MQ_803.mojo,quest/starters/MQ_810.mojo,quest/starters/MQ_812.mojo,quest/starters/MQ_825.mojo,quest/starters/MQ_827.mojo,quest/starters/MQ_830.mojo,quest/starters/MQ_835.mojo,quest/starters/MQ_845.mojo,quest/starters/MQ_852.mojo,quest/starters/MQ_858.mojo,quest/starters/MQ_901.mojo,quest/starters/MQ_903.mojo,quest/starters/MQ_950.mojo,quest/starters/MQ_951.mojo
Data files
Files a processor derived from upstream files: lists of words, names, messages and test cases, in JSON. None can carry a header; each comes from the source and inputs named here.
| file | source | made from | what it holds |
|---|---|---|---|
mojo/corpus/SOURCES.md |
ours | the harvest itself | what came from where, and what each processor found |
mojo/corpus/diagnostics/manifest.json |
modular | test | The compiler's own diagnostic tests: what it rejects, where, and in what words |
mojo/corpus/editor/editor.json |
vscode-mojo | language-configuration.json, package.json | How an editor should treat Mojo, from the official VS Code extension |
mojo/corpus/manual/manifest.json |
modular | docs/site/code, docs/site/manual | The Mojo Manual: its tested code samples, and its program/output pairs |
mojo/corpus/messages/messages.json |
modular | lib/MojoParser | The compiler's diagnostic wording, and the fixes it offers, from its source |
mojo/corpus/quest/manifest.json |
mojo-quest | src/data/issues.ts, exercises | Mojo Quest: 85 tickets, each a completed solution and a broken starter |
mojo/corpus/release/release.json |
modular | docs/site/releases | Release notes for the pinned version, and whether the snapshot matches the pin |
mojo/corpus/report.json |
ours | the harvest itself | what came from where, and what each processor found |
mojo/corpus/skill/removed-syntax.json |
skills | mojo-syntax/SKILL.md | Modular's mojo-syntax skill: its table of removed syntax and replacements |
mojo/corpus/stdindex/stdindex.json |
modular | stdlib/std | Which standard-library package exports each public name |
mojo/corpus/stdtypes/stdtypes.json |
modular | stdlib/std | The standard library's structs and traits, as far as a checker needs them |
mojo/corpus/syntax/cases.json |
mojo-syntax | tests, syntaxes/mojo.syntax.json | The Mojo TextMate grammar's tests, as plain highlighting cases |
mojo/corpus/syntax/mojo.syntax.json |
mojo-syntax | syntaxes/mojo.syntax.json | The TextMate grammar itself, parsed and written back as JSON |
mojo/corpus/tokens/tokens.json |
modular | include/Mojo/MojoParser/TokenKinds.def, lib/MojoParser | The words of the language, from the compiler and the stdlib themselves |
Notices
- The files from modular/modular and modular/skills are Copyright (c) Modular Inc. and are distributed under the Apache License v2.0 with LLVM Exceptions (
mojo/licenses/modular-LICENSE.txt,mojo/licenses/skills-LICENSE.txt); those from modular/vscode-mojo under the Apache License 2.0 (mojo/licenses/vscode-mojo-LICENSE.txt). Nothing was changed, except that a manual snippet was cut out of the page that holds it and a data file was derived as the table above says. - The files from modular/mojo-quest are Modular's. Its solutions carry Modular's Apache-2.0 WITH LLVM-exception header; the repository has no license file, and its starters and ticket text come from a module with no header (see Sources).
mojo/corpus/syntax/mojo.syntax.jsonis the TextMate grammar of modular/mojo-syntax, under the MIT license whose notice ismojo/licenses/mojo-syntax-LICENSE.txt.- "Mojo" and "Modular" are trademarks of Modular Inc. This project is not affiliated with or endorsed by Modular.