Apex

1 program Added 2025-10-23T15:37:25Z Model: x-ai/grok-4-fastTemp: 0.4 Evidence Report issue View issues
Aliases: —
Provenance: commit 73e9f6591b · authored 2025-10-23T17:37:25+02:00 · model x-ai/grok-4-fast

Sources mentioning this language

8 sources · pl_id: pl/apex
LLM (this repo) · 1PldbLinguistPygmentsWikipediaHyperpolyglotRosettacodeWikidata · Q1963461

Wikipedia infobox

Pulled from the wikimedia/structured-wikipedia snapshot — see data/raw/wikipedia_pl_facts.*.jsonl and pl_fact.csv for the long-table provenance.

LicenseProprietary
Homepagehttps://www.progress.com/openedge

Extensions claimed by this language

5 claims. Each row is one upstream assertion with its strength. SWH column shows file occurrences with that extension across the entire archive.
ExtensionSourceStrengthSWH
.clslinguistprimary2.6M files
.ppygmentsprimary5.0M files
.apexlinguistsecondary17.6K files
.clspygmentssecondary2.6M files
.triggerlinguistsecondary123.7K files

Related languages

APLX (0.33)VEX (0.20)AFNIX (0.18)April (0.18)LaTeX (0.18)

LLM-contributed programs

Apply Discount Method Example

Provenance: commit 73e9f6591b · authored 2025-10-23T17:37:25+02:00 · model x-ai/grok-4-fast · Temp 0.4
code.cls · added: 2025-10-23T15:37:25Z
public class MyHelloWorld {

    public static void applyDiscount(Book__c[] books, Decimal quantity, Decimal discount){

        for (Book__c b : books) {

            if (b.price__c * quantity < 1000){

                b.price__c *= (1-(discount/100));

            }

        }

    }

}

Real programs from Software Heritage

2 samples mined from derived_datasets/<date>/contents/*.parquet, byte-verified against the SWH archive. Citation-grade qualified SWHIDs preserved.
SBQQ__ProductLookupController.cls · 1873 B · ext .cls · seen 1415× in SWH
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 (SWH) · GitHub raw
Show source
/*
This file is generated and isn't the actual source code for this
managed global class.
This read-only file shows the class's global constructors,
methods, variables, and properties.
To enable code to compile, all methods return null.
*/
global class ProductLookupController {
    global ProductLookupController() {

    }
    global static void follow(String recordId) {

    }
    @RemoteAction
    global static String loadSearchModel(String quoteJSON, String processId, String customActionId) {
        return null;
    }
    global static String loadSearchModelPaginated(String quoteJSON, String processId, String customActionId, Integer pageNumber) {
        return null;
    }
    @RemoteAction
    global static String removeFavorites(String quoteJSON, List<Id> favoriteIds) {
        return null;
    }
    @RemoteAction
    global static String search(String quoteJSON, String filterValuesJSON, String customActionId, Integer resultLimit) {
        return null;
    }
    global static String search(String quoteJSON, String filterValuesJSON, String customActionId, Integer resultLimit, String searchString) {
        return null;
    }
    global static String searchPaginated(String quoteJSON, String filterValuesJSON, String customActionId, Integer resultLimit, Integer pageNumber) {
        return null;
    }
    global static String searchPaginated(String quoteJSON, String filterValuesJSON, String customActionId, Integer resultLimit, Integer pageNumber, String searchString) {
        return null;
    }
    @RemoteAction
    global static String suggest(String quoteJSON, String processJSON, Integer resultLimit) {
        return null;
    }
    global static String suggestPaginated(String quoteJSON, String processJSON, Integer resultLimit, Integer pageNumber) {
        return null;
    }
    global static void unfollow(String recordId) {

    }
}
nessus_translator.P · 2310 B · ext .p · seen 42× in SWH
via fallback
swh:1:cnt:8bd0acb72f6634648a52b82f1a345ca1ed7d9c77;origin=https://github.com/risksense/mulval;anchor=swh:1:rev:369f7484ea5263074f70464a7fada98b6e546df6;path=/src/adapter/nessus_translator.P
Open in SWH · Raw bytes (SWH) · GitHub raw
Show source

:- import member/2 from lists.
hasEffect(privEscalation).

vulExists(Host, CVE, Prog):- 
  vuln_exists(Host, CVE, Prog, _Range, _Losstype, _Severity, _AC ).

vulExists(Host, CVE, Prog):- 
  vuln_exists(Host, CVE, Prog, _Range, _Losstype, _Severity, _AC, Port, Prot ).

vulProperty(CVE, localExploit, Effect):- 
  vuln_exists(_Host, CVE, _Prog, RangeList,Losstype, _Severity, _AC ),
  member(local,RangeList),
  lossTypetoEffect(Losstype, Effect).

vulProperty(CVE, remoteExploit, Effect, Port, Prot):- 
  vuln_exists(_Host, CVE, _Prog, RangeList,Losstype, _Severity, _AC, Port, Prot ),
  member(remoteExploit,RangeList),
  not  member(user_action_req,RangeList),
  lossTypetoEffect(Losstype, Effect).

vulProperty(CVE, remoteExploit, Effect):- 
  vuln_exists(_Host, CVE, _Prog, RangeList,Losstype, _Severity, _AC, _Port, _Prot ),
  member(remoteExploit,RangeList),
  not  member(user_action_req,RangeList),
  lossTypetoEffect(Losstype, Effect).


vulProperty(CVE, remoteClient, Effect):- 
  vuln_exists(_Host, CVE, _Prog, RangeList,Losstype, _Severity, _AC ),
  member(remoteExploit,RangeList),
  member(user_action_req,RangeList),
  lossTypetoEffect(Losstype, Effect).


lossTypetoEffect(Losstype, Effect):-
            member('data_modification', Losstype),
            hasEffect(Effect).

lossTypetoEffect(Losstype, Effect):-
            member('data_loss', Losstype),
            hasEffect(Effect).

cvss(CVE, AC):-
	vuln_exists(Host, CVE, Prog, _RangeList, _Losstype, _Severity, AC ).

cvss(CVE, AC):-
        vuln_exists(_Host, CVE, _Prog, RangeList,Losstype, _Severity, AC, Port, Prot ).

networkServiceInfo(Host, Program, Prot, Port, someUser) :-
	vulExists(Host, CVE, Program),
        vulProperty(CVE, remoteExploit, _Effect, Port, Prot).

%hacl(Host, internet, Prot, Port) :-
 %       vuln_exists(Host, CVE, _Prog, RangeList,Losstype, _Severity, _AC, Port, Prot ).

%hacl(internet, Host, Prot, Port) :-
 %      vuln_exists(Host, CVE, _Prog, RangeList,Losstype, _Severity, _AC, Port, Prot ).

%this is not corrent, because it binds the CVE Port and Prot together which couldn't be true.
%hacl(Host, Host2, Prot, Port) :-
 %      vuln_exists(Host, CVE, _Prog, RangeList,Losstype, _Severity, _AC, Port, Prot ),
  %     vuln_exists(Host2, CVE, _Prog, RangeList,Losstype, _Severity, _AC, Port, Prot ).

Contribute — propose a file extension

Tell us where to find evidence about Apex (mapped to pl/apex). A reference URL is required; at least one of extension or program code must be provided too. A maintainer reviews each submission via a draft PR before anything lands.
Optional: attach a program from that URL
If the reference URL points at a single source file you'd like to add as an example program, paste it below. The workflow will write it under languages/Apex/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← apescript Aphasia →