.cls

7 claimants 2 primary 4 secondary shared primary (2)

SWH popularity

From the SWH-MSR-ARV dataset (Desmazières, Di Cosmo, Lorentz, MSR 2025; file nb_extensions_alphanum.csv) — one row per (ext, year) in the full SWH archive. Case-aggregated. citation.

2.6M
total occurrences
1.1M
since 2019 (43.2%)
1970–2023
years active

Case variants in archive: .cls (2.6M), .CLS (6.5K), .Cls (188), .CLs (1) — aggregated above.

Attribution status

This extension is attributed to Apex; ObjectScript as primary by 2 authoritative claims.

Authoritative sources: ✓ Linguist △ Pygments · secondary ✗ Wikidata · no claim △ Wikipedia · secondary

Disagree or have a correction? Open a labelling issue.

Claimants (10)

Languages that list .cls among their extensions. Strength reflects whether the upstream source treated it as their primary extension.
LanguageSourceStrength
Apexlinguistprimary
ObjectScriptlinguistprimary
Apexpygmentssecondary
ObjectScriptpygmentssecondary
OpenEdge ABLlinguistsecondary
OpenEdge ABLpygmentssecondary
TeXlinguistsecondary
VBAlinguistsecondary
Visual Basic 6.0linguistsecondary
Visual Basic .NETwikipediaproposed

Wikidata says… (1)

File formats, image formats, audio codecs and other non-PL entities that claim .cls on Wikidata (property P1195) or in the Wikipedia infobox. Source: data/derived/external_extension_index.csv. Click Use as new PL on any row to open the Add-PL form pre-filled with that entry's name, Wikipedia/Wikidata URL, and this extension — one submission creates the PL + claim.
Right entry isn't listed? Add manually ↗
FormatClass (Wikidata P31)Suggested labelMIMENotesAction
Visual Basic class definition Q105849998
file format
file formatUse as new PL ↗

Disambiguation rules (5)

Linguist heuristics that decide, by content, which language a .cls file actually is.
RulePredictsKindPredicates (truncated)
h/linguist/.cls/0Visual Basic 6.0predicates[{"kind": "any", "regexes": ["^[ ]*VERSION [0-9]\\.[0-9] CLASS"]}, {"kind": "any", "regexes": ["^\\s*BEGIN(?:\\r?\\n|\\r)\\s*MultiUse\\s*=.*(?:\\r?\\n|\\r)\\s*Persistable\\s*="]}]
h/linguist/.cls/1VBApredicates[{"kind": "any", "regexes": ["^[ ]*VERSION [0-9]\\.[0-9] CLASS"]}]
h/linguist/.cls/2TeXpredicates[{"kind": "any", "regexes": ["^\\s*\\\\(?:NeedsTeXFormat|ProvidesClass)\\{"]}]
h/linguist/.cls/3ObjectScriptpredicates[{"kind": "any", "regexes": ["^Class\\s"]}]
h/linguist/.cls/4OpenEdge ABLpredicates[{"kind": "any", "regexes": ["(?i)^\\s*(?:end\\s+(?:class|interface)\\.|(?:class|interface)\\s+[a-z_][a-z0-9_#$%&-]*:)"]}]

SWH-mined examples (1)

Real archived programs with this extension, byte-verified against the SWH archive. Useful for deciding what this extension actually is when the attribution is uncertain.
SBQQ__ProductLookupController.cls · 1873 B · seen 1415× in SWH
predicted: unclassified via fallback
swh:1:cnt:b8d32bd2c542a3ae97a5d50840f0aac0f33d170b;origin=https://github.com/niteshCopado/PartnerProduction;anchor=swh:1:rev:925a58eef8de7a88b03bbf972ea361ad3a84b5df;path=/classes/SBQQ__ProductLookupController.cls
Open in SWH · Raw bytes
Request more SWH-mined examples
If the examples above don't disambiguate what .cls is, request a fresh mining run.
(or open the pre-filled issue directly)