Repository Analysis

moodle/moodle

Moodle - the world's open source learning platform

4.0 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of moodle/moodle, a PHP project with 7,302 GitHub stars. SynthScan v2.0 examined 8,360,966 lines of code across 54571 source files, recording 30795 pattern matches distributed across 17 syntactic categories. The overall adjusted score of 4.0 places this repository in the Likely human-written band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

4.0
Adjusted Score
4.0
Raw Score
100%
Time Factor
2026-07-28
Last Push
7.3K
Stars
PHP
Language
8.4M
Lines of Code
54.6K
Files
30.8K
Pattern Hits
2026-08-02
Scan Date
0.00
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

Longitudinal tracking requires multiple scan runs. Once this repository is re-scanned after new commits land, this chart will visualise how the synthetic code signal evolves over time — enabling you to detect whether AI authorship is growing, stabilising, or being actively corrected by human engineers.

No multi-scan history yet — run the scanner again to build trend data.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 56HIGH 19MEDIUM 52LOW 30668

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

The scanner identified 30795 distinct pattern matches across 17 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Hyper-Verbose Identifiers16643 hits · 18114 pts
SeverityFileLineSnippetContext
LOW.grunt/babel-plugin-add-module-to-define.js54 function getModuleNameFromFileName(searchFileName) {CODE
LOWpublic/competency/tests/api_test.php4023 protected function assertSuccessWithGradeCompetencyInCourse($courseid, $userid, $compid, $grade = 1) {CODE
LOWpublic/competency/tests/api_test.php4043 protected function assertExceptionWithGradeCompetencyInCourse($exceptiontype, $exceptiontext, $courseid, $userid, $cCODE
LOWpublic/repository/s3/S3.php1530 public static function listOriginAccessIdentities()CODE
LOWpublic/repository/s3/S3.php1641 public static function getDistributionInvalidationList($distributionId)CODE
LOWpublic/course/format/amd/src/courseeditor.js44function dispatchStateChangedEvent(detail, target) {CODE
LOWpublic/course/format/amd/src/activitychooser.js121function getCoursePositionFromTarget(target) {CODE
LOW…ourse/format/amd/src/local/activitychooser/dialogue.js49export async function displayActivityChooserModal(CODE
LOW…min/tool/mfa/factor/totp/extlib/OTPHP/OTPInterface.php84 public function isIssuerIncludedAsParameter(): bool;CODE
LOW…min/tool/mfa/factor/totp/extlib/OTPHP/OTPInterface.php86 public function setIssuerIncludedAsParameter(bool $issuer_included_as_parameter): void;CODE
LOW…n/tool/mfa/factor/totp/extlib/OTPHP/ParameterTrait.php75 public function isIssuerIncludedAsParameter(): boolCODE
LOW…n/tool/mfa/factor/totp/extlib/OTPHP/ParameterTrait.php80 public function setIssuerIncludedAsParameter(bool $issuer_included_as_parameter): voidCODE
LOWpublic/admin/tool/lpmigrate/tests/processor_test.php507 protected function assertCourseCompetencyExists($course, $competency) {CODE
LOWpublic/admin/tool/lpmigrate/tests/processor_test.php518 protected function assertCourseCompetencyNotExists($course, $competency) {CODE
LOWpublic/admin/tool/lpmigrate/tests/processor_test.php530 protected function assertCourseCompetencyMigrated($course, $compfrom, $compto) {CODE
LOWpublic/admin/tool/lpmigrate/tests/processor_test.php555 protected function assertCourseCompetencyNotMigrated($course, $compfrom, $compto) {CODE
LOWpublic/admin/tool/lpmigrate/tests/processor_test.php576 protected function assertModuleCompetencyExists($cm, $competency) {CODE
LOWpublic/admin/tool/lpmigrate/tests/processor_test.php587 protected function assertModuleCompetencyNotExists($cm, $competency) {CODE
LOWpublic/admin/tool/lpmigrate/tests/processor_test.php599 protected function assertModuleCompetencyMigrated($cm, $compfrom, $compto) {CODE
LOWpublic/admin/tool/lpmigrate/tests/processor_test.php624 protected function assertModuleCompetencyNotMigrated($cm, $compfrom, $compto) {CODE
LOWpublic/enrol/lti/classes/data_connector.php634 public function getUserResultSourcedIDsResourceLink($resourcelink, $localonly, $idscope) {CODE
LOWpublic/enrol/lti/classes/data_connector.php812 public function deleteResourceLinkShareKey($sharekey) {CODE
LOWpublic/enrol/lti/ims-blti/OAuthBody.php6function getLastOAuthBodyBaseString() {CODE
LOWpublic/question/type/ddimageortext/amd/src/question.js47 function DragDropOntoImageQuestion(containerId, readOnly, places) {CODE
LOWpublic/lib/formslib.php3096 function hardFreezeAllVisibleExcept($elementList)CODE
LOWpublic/lib/tcpdf/tcpdf.php3477 public function setHeaderTemplateAutoreset($val=true) {CODE
LOWpublic/lib/tcpdf/tcpdf.php7957 protected function getInternalPageNumberAliases($a= '') {CODE
LOWpublic/lib/tcpdf/tcpdf.php7978 protected function getAllInternalPageNumberAliases() {CODE
LOWpublic/lib/tcpdf/tcpdf.php7996 protected function replaceRightShiftPageNumAliases($page, $aliases, $diff) {CODE
LOWpublic/lib/tcpdf/tcpdf.php10387 public function setDocModificationTimestamp($time) {CODE
LOWpublic/lib/tcpdf/tcpdf.php10410 public function getDocModificationTimestamp() {CODE
LOWpublic/lib/tcpdf/tcpdf.php13664 public function addEmptySignatureAppearance($x=0, $y=0, $w=0, $h=0, $page=-1, $name='') {CODE
LOWpublic/lib/tcpdf/tcpdf.php13682 protected function getSignatureAppearanceArray($x=0, $y=0, $w=0, $h=0, $page=-1, $name='') {CODE
LOWpublic/lib/tcpdf/include/tcpdf_static.php1658 public static function getTransformationMatrixProduct($ta, $tb) {CODE
LOWpublic/lib/tcpdf/include/tcpdf_filters.php150 public static function decodeFilterASCIIHexDecode($data) {CODE
LOWpublic/lib/tcpdf/include/tcpdf_filters.php371 public static function decodeFilterRunLengthDecode($data) {CODE
LOWpublic/lib/tcpdf/include/tcpdf_filters.php408 public static function decodeFilterCCITTFaxDecode($data) {CODE
LOWpublic/lib/tcpdf/include/barcodes/qrcode.php1688 protected function insertStructuredAppendHeader($items, $size, $index, $parity) {CODE
LOWpublic/lib/tcpdf/include/barcodes/datamatrix.php653 protected function getSwitchEncodingCodeword($mode) {CODE
LOWpublic/lib/google2-auth/src/CredentialsLoader.php245 public static function getDefaultClientCertSource()CODE
LOWpublic/lib/google2-auth/src/CredentialsLoader.php270 public static function shouldLoadClientCertSource()CODE
LOWpublic/lib/google2-auth/src/CredentialsLoader.php278 private static function loadDefaultClientCertSourceFile()CODE
LOW…lib/google2-auth/src/ApplicationDefaultCredentials.php260 public static function getProxyIdTokenMiddleware(CODE
LOWpublic/lib/google2-auth/src/AccessToken.php350 private function retrieveCertsFromLocation($url, array $options = [])CODE
LOWpublic/lib/google2-auth/src/AccessToken.php465 private function getCacheKeyFromCertLocation($certsLocation)CODE
LOWpublic/lib/google2-auth/src/OAuth2.php589 public function generateCredentialsRequest(?callable $httpHandler = null, array $headers = [])CODE
LOWpublic/lib/google2-auth/src/OAuth2.php827 public function buildFullAuthorizationUri(array $config = [])CODE
LOWpublic/lib/google2-auth/src/MetricsTrait.php72 protected function applyServiceApiUsageMetrics($metadata)CODE
LOWpublic/lib/google2-auth/src/MetricsTrait.php98 protected function applyTokenEndpointMetrics($metadata, $authRequestType)CODE
LOW…google2-auth/src/CredentialSource/ExecutableSource.php168 private function getCachedExecutableResponse(): ?arrayCODE
LOW…e2-auth/src/Credentials/ExternalAccountCredentials.php234 private function getImpersonatedAccessToken(string $stsToken, ?callable $httpHandler = null): arrayCODE
LOW…le2-auth/src/Credentials/ServiceAccountCredentials.php344 private function createJwtAccessCredentials()CODE
LOW…/Credentials/ImpersonatedServiceAccountCredentials.php164 private function getImpersonatedServiceAccountNameFromUrl(CODE
LOWpublic/lib/pear/HTML/QuickForm/Renderer/Tableless.php284 function setOpenHiddenFieldsetTemplate($html)CODE
LOW…heet/phpspreadsheet/src/PhpSpreadsheet/Spreadsheet.php512 public function getCalculationEngineOrNull(): ?CalculationCODE
LOW…heet/phpspreadsheet/src/PhpSpreadsheet/Spreadsheet.php584 public function duplicateWorksheetByTitle(string $title): WorksheetCODE
LOW…heet/phpspreadsheet/src/PhpSpreadsheet/Spreadsheet.php818 public function setActiveSheetIndexByName(string $worksheetName): WorksheetCODE
LOW…heet/phpspreadsheet/src/PhpSpreadsheet/Spreadsheet.php1000 private function getGlobalDefinedNameByType(string $name, bool $type): ?DefinedNameCODE
LOW…heet/phpspreadsheet/src/PhpSpreadsheet/Spreadsheet.php1009 private function getLocalDefinedNameByType(string $name, bool $type, ?Worksheet $worksheet = null): ?DefinedNameCODE
LOW…heet/phpspreadsheet/src/PhpSpreadsheet/Spreadsheet.php1566 public function getAutoFilterDateGrouping(): boolCODE
16583 more matches not shown…
Over-Commented Block13774 hits · 13750 pts
SeverityFileLineSnippetContext
LOWGruntfile.js1// This file is part of Moodle - http://moodle.org/COMMENT
LOWindex.php1<?phpCOMMENT
LOWconfig-dist.php1<?phpCOMMENT
LOWconfig-dist.php21// //COMMENT
LOWconfig-dist.php61 // default portCOMMENT
LOWconfig-dist.php81 // the VERSION function instead of the versionCOMMENT
LOWconfig-dist.php101 // It is worth noting that for MySQL require and verify-full are the same COMMENT
LOWconfig-dist.php121 // not a string!COMMENT
LOWconfig-dist.php161 */COMMENT
LOWconfig-dist.php181// Now you need a place where Moodle can save uploaded files. ThisCOMMENT
LOWconfig-dist.php201COMMENT
LOWconfig-dist.php221//COMMENT
LOWconfig-dist.php241// See details at: http://php.net/manual/en/function.date-default-timezone-set.phpCOMMENT
LOWconfig-dist.php261// $CFG->includeuserpasswordsinbackup = true;COMMENT
LOWconfig-dist.php281// If you obtain user conflicts on restore, rather than enabling this settingCOMMENT
LOWconfig-dist.php301// These variables define the specific settings for defined course formats.COMMENT
LOWconfig-dist.php321// Seconds for files to remain in caches. Decrease this if you are worriedCOMMENT
LOWconfig-dist.php341//COMMENT
LOWconfig-dist.php361// $CFG->session_memcached_acquire_lock_timeout = 120;COMMENT
LOWconfig-dist.php381// $CFG->session_redis_lock_retry = 100; // Optional wait between lock attempts in ms, default is 10COMMENT
LOWconfig-dist.php401//COMMENT
LOWconfig-dist.php421// it may be also necessary to enable this when using port forwarding.COMMENT
LOWconfig-dist.php441// For example: if $CFG->customscripts/course/view.php exists thenCOMMENT
LOWconfig-dist.php461// and printout of the dataCOMMENT
LOWconfig-dist.php481//COMMENT
LOWconfig-dist.php501// the following statements. In the General part put:COMMENT
LOWconfig-dist.php521//COMMENT
LOWconfig-dist.php541//COMMENT
LOWconfig-dist.php561// $CFG->lang = 'yourlangcode'; // for example 'cs'COMMENT
LOWconfig-dist.php581// Use the following flag to completely disable the Available update notificationsCOMMENT
LOWconfig-dist.php601// whilst still showing the state of tasks.COMMENT
LOWconfig-dist.php621// file locking for SQLServer. If $CFG->preventfilelocking is set, then theCOMMENT
LOWconfig-dist.php641//COMMENT
LOWconfig-dist.php661// 'extension' => 'frog',COMMENT
LOWconfig-dist.php681// password.COMMENT
LOWconfig-dist.php701// by default unless $CFG->alternateloginurl is set.COMMENT
LOWconfig-dist.php721// $CFG->taskruntimeerror = 24 * 60 * 60;COMMENT
LOWconfig-dist.php741// $CFG->enable_read_only_sessions_debug = true;COMMENT
LOWconfig-dist.php761// $CFG->maxcoursesincategory = 10000;COMMENT
LOWconfig-dist.php781// $CFG->h5pcrossorigin = 'anonymous';COMMENT
LOWconfig-dist.php801// `progresspollinterval` config setting, to determine the interval (in seconds) at which theCOMMENT
LOWconfig-dist.php821// Maximum character length for a user profile description.COMMENT
LOWconfig-dist.php841// $CFG->debug_developer_use_pretty_exceptions = true;COMMENT
LOWconfig-dist.php861// Prevent theme cachingCOMMENT
LOWconfig-dist.php881// $CFG->yuiloginclude = array(COMMENT
LOWconfig-dist.php901// $CFG->nosmsever = true; // NOT FOR PRODUCTION SERVERS!COMMENT
LOWconfig-dist.php921// $CFG->showcrondebugging = true;COMMENT
LOWconfig-dist.php941// Core settings are specified directly via assignment to $CFG variable.COMMENT
LOWconfig-dist.php961//COMMENT
LOWconfig-dist.php981//COMMENT
LOWconfig-dist.php1001// $CFG->behat_config = array(COMMENT
LOWconfig-dist.php1021// ),COMMENT
LOWconfig-dist.php1041// 'browser' => 'phantomjs',COMMENT
LOWconfig-dist.php1061//COMMENT
LOWconfig-dist.php1081// * a screenshot (JavaScript is required for the screenshot functionality, so not all browsers support this option)COMMENT
LOWconfig-dist.php1101// 'behat_wwwroot' => 'http://127.0.0.1/moodle',COMMENT
LOWconfig-dist.php1121//COMMENT
LOWconfig-dist.php1141// it's usage in production environments is not recommended; if it is used to create JMeter test plansCOMMENT
LOWconfig-dist.php1161// Probably something like /usr/bin/php. If you enter this, cron scripts can beCOMMENT
LOWconfig-dist.php1181// (Development->Profiling) built into Moodle.COMMENT
13714 more matches not shown…
Hallucination Indicators56 hits · 705 pts
SeverityFileLineSnippetContext
CRITICALpublic/repository/repository_callback.php95 window.opener.M.core_filepicker.active_filepicker.list();CODE
CRITICALpublic/course/yui/src/dragdrop/js/section.js72 var sectionid = Y.Moodle.core_course.util.section.getId(sectionnode);CODE
CRITICALpublic/course/yui/src/dragdrop/js/section.js172 dragnodeid = Y.Moodle.core_course.util.section.getId(dragnode),CODE
CRITICALpublic/course/yui/src/dragdrop/js/section.js251 if (Y.Moodle.core_course.util.section.getId(sectionlist.item(index - 1)) >CODE
CRITICALpublic/course/yui/src/dragdrop/js/section.js252 Y.Moodle.core_course.util.section.getId(sectionlist.item(index))) {CODE
CRITICALpublic/course/yui/src/dragdrop/js/section.js253 Y.log("Swapping " + Y.Moodle.core_course.util.section.getId(sectionlist.item(index - 1))CODE
CRITICALpublic/course/yui/src/dragdrop/js/section.js254 " with " + Y.Moodle.core_course.util.section.getId(sectionlist.item(index)));CODE
CRITICALpublic/course/yui/src/dragdrop/js/section.js267 Y.Moodle.core_course.util.section.getId(sectionlist.item(index)));CODE
CRITICALpublic/course/yui/src/dragdrop/js/resource.js164 var cmid = Number(Y.Moodle.core_course.util.cm.getId(dragnode));CODE
CRITICALpublic/course/yui/src/dragdrop/js/resource.js173 params.sectionId = Y.Moodle.core_course.util.section.getId(dropnode.ancestor(M.course.format.get_section_wrapperCODE
CRITICALpublic/course/yui/src/dragdrop/js/resource.js176 beforeid = Number(Y.Moodle.core_course.util.cm.getId(dragnode.next()));CODE
CRITICALpublic/course/amd/src/actions.js144 id = Y.Moodle.core_course.util.cm.getId(Y.Node(item));CODE
CRITICALpublic/course/amd/src/actions.js158 name = Y.Moodle.core_course.util.cm.getName(Y.Node(element.get(0)));CODE
CRITICALpublic/lib/form/yui/src/dateselector/js/calendar.js115 var calendarimageelement = document.getElementById(M.form.dateselector.currentowner.calendarimage.get('iCODE
CRITICALpublic/lib/jquery/jquery-3.7.1.js7975jQuery.each( jQuery.expr.match.bool.source.match( /\w+/g ), function( _i, name ) {CODE
CRITICALpublic/lib/jquery/jquery-3.7.1.min.js2!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):fCODE
CRITICALpublic/lib/jquery/ui-1.14.1/jquery-ui.min.js6(t=>{"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)})(function(V){V.ui=V.ui||{};V.ui.version="1.14CODE
CRITICAL…/lib/editor/tiny/js/tinymce/themes/silver/theme.min.js1!function(){"use strict";const e=Object.getPrototypeOf,t=(e,t,o)=>!!o(e,t.prototype)||e.constructor?.name===t.name,o=e=>CODE
CRITICALpublic/h5p/h5plib/v128/joubel/core/js/h5p.js2894 window.parent.H5P.externalDispatcher.trigger.call(this, event);CODE
CRITICALpublic/h5p/h5plib/v128/joubel/core/js/jquery.js2!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):fCODE
CRITICAL…ib/v128/joubel/editor/scripts/h5peditor-image-popup.js270 this.cropper.sections.tools.classList.add('hidden');CODE
CRITICAL…ib/v128/joubel/editor/scripts/h5peditor-image-popup.js272 this.cropper.sections.tools.classList.add('wait');CODE
CRITICAL…ib/v128/joubel/editor/scripts/h5peditor-image-popup.js282 this.cropper.sections.tools.classList.remove('hidden', 'wait');CODE
CRITICALpublic/mod/quiz/yui/src/util/js/slot.js191 if (!Y.Moodle.mod_quiz.util.page.getPageFromSlot(slot)) {CODE
CRITICALpublic/mod/quiz/yui/src/util/js/slot.js236 var page = Y.Moodle.mod_quiz.util.page.getPageFromSlot(slot);CODE
CRITICALpublic/mod/quiz/yui/src/util/js/slot.js239 if (!Y.Moodle.mod_quiz.util.page.isEmpty(page)) {CODE
CRITICALpublic/mod/quiz/yui/src/util/js/slot.js243 Y.Moodle.mod_quiz.util.page.remove(page);CODE
CRITICALpublic/mod/quiz/yui/src/util/js/slot.js338 if (Y.Moodle.mod_quiz.util.page.isPage(nextitem)) {CODE
CRITICALpublic/mod/quiz/yui/src/util/js/page.js227 Y.Moodle.mod_quiz.util.slot.removePageBreak(previousslot);CODE
CRITICALpublic/mod/quiz/yui/src/toolboxes/js/resource.js195 'id': Y.Moodle.mod_quiz.util.slot.getId(element)CODE
CRITICALpublic/mod/quiz/yui/src/toolboxes/js/resource.js200 Y.Moodle.mod_quiz.util.slot.remove(element);CODE
CRITICALpublic/mod/quiz/yui/src/toolboxes/js/resource.js278 var slot = Y.Moodle.mod_quiz.util.slot.getSlotFromComponent(node);CODE
CRITICALpublic/mod/quiz/yui/src/toolboxes/js/resource.js280 ids += Y.Moodle.mod_quiz.util.slot.getId(slot);CODE
CRITICALpublic/mod/quiz/yui/src/toolboxes/js/resource.js308 Y.Moodle.mod_quiz.util.slot.remove(node.ancestor('li.activity'));CODE
CRITICALpublic/mod/quiz/yui/src/toolboxes/js/resource.js348 'id': Y.Moodle.mod_quiz.util.slot.getId(activity)CODE
CRITICALpublic/mod/quiz/yui/src/toolboxes/js/resource.js421 'id': Y.Moodle.mod_quiz.util.slot.getId(activity)CODE
CRITICALpublic/mod/quiz/yui/src/toolboxes/js/resource.js506 'id': Y.Moodle.mod_quiz.util.slot.getId(nextactivity),CODE
CRITICALpublic/mod/quiz/yui/src/toolboxes/js/resource.js513 Y.Moodle.mod_quiz.util.page.add(activity);CODE
CRITICALpublic/mod/quiz/yui/src/toolboxes/js/resource.js516 Y.Moodle.mod_quiz.util.page.remove(page, true);CODE
CRITICALpublic/mod/quiz/yui/src/toolboxes/js/resource.js545 'id': Y.Moodle.mod_quiz.util.slot.getId(activity),CODE
CRITICALpublic/mod/quiz/yui/src/toolboxes/js/resource.js551 Y.Moodle.mod_quiz.util.slot.updateDependencyIcon(activity, response.requireprevious);CODE
CRITICALpublic/mod/quiz/yui/src/toolboxes/js/resource.js565 Y.Moodle.mod_quiz.util.slot.reorderSlots();CODE
CRITICALpublic/mod/quiz/yui/src/toolboxes/js/resource.js566 Y.Moodle.mod_quiz.util.slot.reorderPageBreaks();CODE
CRITICALpublic/mod/quiz/yui/src/toolboxes/js/resource.js567 Y.Moodle.mod_quiz.util.page.reorderPages();CODE
CRITICALpublic/mod/quiz/yui/src/toolboxes/js/resource.js568 Y.Moodle.mod_quiz.util.slot.updateOneSlotSections();CODE
CRITICALpublic/mod/quiz/yui/src/toolboxes/js/resource.js569 Y.Moodle.mod_quiz.util.slot.updateAllDependencyIcons();CODE
CRITICALpublic/mod/quiz/yui/src/dragdrop/js/section.js61 var sectionid = Y.Moodle.core_course.util.section.getId(sectionnode);CODE
CRITICALpublic/mod/quiz/yui/src/dragdrop/js/section.js128 dragnodeid = Y.Moodle.core_course.util.section.getId(dragnode),CODE
CRITICALpublic/mod/quiz/yui/src/dragdrop/js/section.js209 if (Y.Moodle.core_course.util.section.getId(sectionlist.item(index - 1)) >CODE
CRITICALpublic/mod/quiz/yui/src/dragdrop/js/section.js210 Y.Moodle.core_course.util.section.getId(sectionlist.item(index))) {CODE
CRITICALpublic/mod/quiz/yui/src/dragdrop/js/section.js211 Y.log("Swapping " + Y.Moodle.core_course.util.section.getId(sectionlist.item(index - 1))CODE
CRITICALpublic/mod/quiz/yui/src/dragdrop/js/section.js212 " with " + Y.Moodle.core_course.util.section.getId(sectionlist.item(index)),CODE
CRITICALpublic/mod/quiz/yui/src/dragdrop/js/resource.js132 params.id = Number(Y.Moodle.mod_quiz.util.slot.getId(dragnode));CODE
CRITICALpublic/mod/quiz/yui/src/dragdrop/js/resource.js133 params.sectionId = Y.Moodle.core_course.util.section.getId(dragnode.ancestor('li.section', true));CODE
CRITICALpublic/mod/quiz/yui/src/dragdrop/js/resource.js137 params.previousid = Number(Y.Moodle.mod_quiz.util.slot.getId(previousslot));CODE
CRITICALpublic/mod/quiz/yui/src/dragdrop/js/resource.js142 params.page = Number(Y.Moodle.mod_quiz.util.page.getId(previouspage));CODE
Fake / Example Data176 hits · 204 pts
SeverityFileLineSnippetContext
LOWUPGRADING.md2878 You can check the contents of an email using the step `Then the email to "user@example.com" with subject containing "sCODE
LOWpublic/repository/url/locallib.php204 * space. Examples: "example.com", "user@example.com",COMMENT
LOWpublic/course/editsection_form.php34 'placeholder' => $this->_customdata['defaultsectionname'],CODE
LOWpublic/course/tests/course_request_test.php51 $data->summary_editor['text'] = 'Lorem Ipsum ©';CODE
LOWpublic/course/tests/course_request_test.php110 $data->summary_editor['text'] = 'Lorem Ipsum ©';CODE
LOWpublic/course/tests/course_request_test.php213 $data->summary_editor['text'] = 'Lorem Ipsum ©';CODE
LOW…course/tests/reportbuilder/datasource/courses_test.php269 'course:summary_value' => 'Lorem ipsum',CODE
LOWpublic/auth/db/tests/db_test.php211 $user3 = (object)array('name'=>'admin', 'pass'=>'heslo', 'email'=>'admin@example.com'); // Should be skipped.CODE
LOWpublic/reportbuilder/tests/local/report/base_test.php137 $systemreport->add_base_condition_sql("email = :{$paramemail}", [$paramemail => 'admin@example.com']);CODE
LOWpublic/reportbuilder/tests/local/report/base_test.php141 $this->assertEquals([$paramusername => 'admin', $paramemail => 'admin@example.com'], $params);CODE
LOW…er/tests/external/custom_report_data_exporter_test.php68 'columns' => ['Admin User', 'admin@example.com'],CODE
LOW…reportbuilder/tests/external/reports/retrieve_test.php82 'columns' => ['Admin User', 'admin@example.com'],CODE
LOWpublic/comment/classes/manager.php528 'placeholder' => get_string('addcomment'),CODE
LOWpublic/admin/classes/local/settings/autocomplete.php80 'placeholder',CODE
LOWpublic/admin/classes/local/settings/autocomplete.php187 $context['placeholder'] = $this->placeholder;CODE
LOWpublic/admin/tool/capability/classes/settings_form.php58 $form->addElement('text', 'search', $strsearch, ['data-action' => 'search', 'placeholder' => $strsearch])CODE
LOW…lic/admin/tool/mfa/classes/local/form/reset_factor.php56 ['placeholder' => get_string('resetfactorplaceholder', 'tool_mfa')]);CODE
LOWpublic/admin/tool/mfa/factor/totp/classes/factor.php170 'placeholder' => get_string('devicenameexample', 'factor_totp'),CODE
LOWpublic/admin/tool/mobile/settings.php581 'placeholder' => new lang_string('filetypeexclusionlistplaceholder', 'tool_mobile'),CODE
LOWpublic/admin/tool/mobile/tests/externallib_test.php126 set_config('supportemail', 'test@test.com');CODE
LOWpublic/admin/tool/mobile/tests/externallib_test.php186 set_config('supportemail', 'test@test.com');CODE
LOW…al/htmlchecker/common/checks/content_too_long_test.php40 <p><span>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent accumsan, ante varius viverra aliquam, doCODE
LOW…al/htmlchecker/common/checks/content_too_long_test.php40 <p><span>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent accumsan, ante varius viverra aliquam, doCODE
LOW…al/htmlchecker/common/checks/content_too_long_test.php52 Sed lacinia nunc lobortis, vestibulum nisi dictum, pulvinar tellus. Lorem ipsum dolor sit amet, consectetur adipisciCODE
LOW…al/htmlchecker/common/checks/content_too_long_test.php52 Sed lacinia nunc lobortis, vestibulum nisi dictum, pulvinar tellus. Lorem ipsum dolor sit amet, consectetur adipisciCODE
LOW…al/htmlchecker/common/checks/content_too_long_test.php61 pharetra magna sed tristique. Pellentesque blandit elit ac neque lacinia finibus. Lorem ipsum dolor sit amet, consecCODE
LOW…al/htmlchecker/common/checks/content_too_long_test.php61 pharetra magna sed tristique. Pellentesque blandit elit ac neque lacinia finibus. Lorem ipsum dolor sit amet, consecCODE
LOW…s/local/htmlchecker/common/checks/no_headings_test.php47 Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec ut varius elit, vel euismod neque. Nunc vulputateCODE
LOW…s/local/htmlchecker/common/checks/no_headings_test.php47 Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec ut varius elit, vel euismod neque. Nunc vulputateCODE
LOW…s/local/htmlchecker/common/checks/no_headings_test.php78 Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec ut varius elit, vel euismod neque. Nunc vulputateCODE
LOW…s/local/htmlchecker/common/checks/no_headings_test.php78 Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec ut varius elit, vel euismod neque. Nunc vulputateCODE
LOW…s/local/htmlchecker/common/checks/no_headings_test.php109 Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec ut varius elit, vel euismod neque. Nunc vulputateCODE
LOW…s/local/htmlchecker/common/checks/no_headings_test.php109 Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec ut varius elit, vel euismod neque. Nunc vulputateCODE
LOW…s/local/htmlchecker/common/checks/no_headings_test.php140 Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec ut varius elit, vel euismod neque. Nunc vulputateCODE
LOW…s/local/htmlchecker/common/checks/no_headings_test.php140 Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec ut varius elit, vel euismod neque. Nunc vulputateCODE
LOW…s/local/htmlchecker/common/checks/no_headings_test.php171 Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec ut varius elit, vel euismod neque. Nunc vulputateCODE
LOW…s/local/htmlchecker/common/checks/no_headings_test.php171 Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec ut varius elit, vel euismod neque. Nunc vulputateCODE
LOW…s/local/htmlchecker/common/checks/no_headings_test.php202 Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec ut varius elit, vel euismod neque. Nunc vulputateCODE
LOW…s/local/htmlchecker/common/checks/no_headings_test.php202 Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec ut varius elit, vel euismod neque. Nunc vulputateCODE
LOW…s/local/htmlchecker/common/checks/no_headings_test.php233 Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec ut varius elit, vel euismod neque. Nunc vulputateCODE
LOW…s/local/htmlchecker/common/checks/no_headings_test.php233 Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec ut varius elit, vel euismod neque. Nunc vulputateCODE
LOW…onentlibrary/content/moodle/components/search-input.md82 "placeholder": "Search settings",CODE
LOW…n/tool/componentlibrary/content/moodle/themes/grids.md23 Lorem ipsum dolor sit ametCODE
LOW…n/tool/componentlibrary/content/moodle/themes/grids.md23 Lorem ipsum dolor sit ametCODE
LOWpublic/admin/tool/policy/classes/form/policydoc.php80 ['maxlength' => 1333, 'placeholder' => $default]);CODE
LOW…ic/admin/tool/customlang/classes/output/translator.php77 $string->placeholderhelp = $output->help_icon('placeholder', 'tool_customlang',CODE
LOW…blic/admin/tool/customlang/lang/en/tool_customlang.php85$string['placeholder'] = 'Placeholders';CODE
LOWpublic/enrol/lti/tests/helper_test.php347 $this->assertStringContainsString('Test course 1 Lorem ipsum dolor sit amet', $description);CODE
LOWpublic/enrol/lti/tests/helper_test.php347 $this->assertStringContainsString('Test course 1 Lorem ipsum dolor sit amet', $description);CODE
LOW…ti/tests/local/ltiadvantage/lti_advantage_testcase.php58 'email' => 'smithj@example.org'CODE
LOW…ge/amd/src/message_drawer_view_conversation_patcher.js1204 [loadingFirstMessages, {type: 'placeholder'}],CODE
LOW…ge/amd/src/message_drawer_view_conversation_patcher.js1241 return {type: 'placeholder'};CODE
LOW…e/amd/src/message_drawer_view_conversation_renderer.js431 messageTextArea.prop('placeholder', string);CODE
LOW…e/amd/src/message_drawer_view_conversation_renderer.js473 messageTextArea.removeAttr('placeholder');CODE
LOW…e/amd/src/message_drawer_view_conversation_renderer.js1017 case 'placeholder':CODE
LOWpublic/user/tests/fields_test.php285 'city' => 'C1', 'department' => 'D1', 'email' => 'e1@example.org',CODE
LOWpublic/user/tests/fields_test.php288 'city' => 'C2', 'department' => 'D2', 'email' => 'e2@example.org',CODE
LOWpublic/user/tests/fields_test.php482 'profile_field_a' => 'A1', 'email' => 'e1@example.org'];CODE
LOWpublic/user/tests/externallib_test.php456 $USER->email = "admin@example.com";CODE
LOW…lic/user/tests/reportbuilder/datasource/users_test.php54 $this->assertEquals(['Admin User', 'admin', 'admin@example.com'], $adminrow);CODE
116 more matches not shown…
AI Slop Vocabulary30 hits · 86 pts
SeverityFileLineSnippetContext
MEDIUM…/course/classes/output/actionbar/initials_selector.php52 // template expects HTML in its respective context properties. Ideally, children of comboboxsearch would leveragCOMMENT
MEDIUM…blic/course/classes/output/actionbar/user_selector.php51 // template expects HTML in its respective context properties. Ideally, children of comboboxsearch would leveragCOMMENT
MEDIUM…lic/course/classes/output/actionbar/group_selector.php54 // template expects HTML in its respective context properties. Ideally, children of comboboxsearch would leveragCOMMENT
MEDIUMpublic/message/classes/api.php560 // - subname: Essentially a subtitle for the conversation. So you'd have "name: subname".COMMENT
MEDIUM…ic/question/type/ddimageortext/tests/question_test.php98 // check the calculation is robust to it.COMMENT
MEDIUM…heet/phpspreadsheet/src/PhpSpreadsheet/Reader/Xlsx.php883 // But in some cases, this attribute isn't set; so we need to delve a level COMMENT
MEDIUM…c/lib/xhprof/xhprof_html/jquery/jquery.autocomplete.js342 // try to leverage ajaxQueue plugin to abort previous requestsCOMMENT
MEDIUM…lic/lib/yuilib/3.18.1/datatable-sort/datatable-sort.js492 // FIXME: Declaring inline override to leverage closure vsCOMMENT
MEDIUM…b/yuilib/3.18.1/datatable-sort/datatable-sort-debug.js492 // FIXME: Declaring inline override to leverage closure vsCOMMENT
MEDIUM…ib/3.18.1/event-custom-base/event-custom-base-debug.js1779 // TODO: More robust regex, accounting for categoryCOMMENT
MEDIUM…b/yuilib/3.18.1/event-custom-base/event-custom-base.js1767 // TODO: More robust regex, accounting for categoryCOMMENT
MEDIUMpublic/lib/yuilib/3.18.1/view/view.js216 // TODO: Make this more robust by using lazy-binding:COMMENT
MEDIUMpublic/lib/yuilib/3.18.1/view/view-debug.js216 // TODO: Make this more robust by using lazy-binding:COMMENT
MEDIUMpublic/lib/jquery/jquery-3.7.1.js10665// understands anonymous AMD modules. A named AMD is safest and most robustCOMMENT
MEDIUM…b/aws-sdk/src/data/appconfig/2019-10-09/api-2.json.php3return [ 'version' => '2.0', 'metadata' => [ 'apiVersion' => '2019-10-09', 'endpointPrefix' => 'appconfig', 'jsonVersionCODE
MEDIUMpublic/lib/amd/src/adapter.js1843 // This is an ugly hack, but at the same time is way more robust thanCOMMENT
MEDIUMpublic/lib/htmlpurifier/HTMLPurifier/Generator.php230 // Essentially, Internet Explorer, when calculatingCOMMENT
MEDIUMpublic/lib/htmlpurifier/HTMLPurifier/ChildDef/List.php71 // ToDo: Make this more robust in the case of not ol/ulCOMMENT
MEDIUMpublic/lib/editor/tiny/js/tinymce/tinymce.min.js10!function(){"use strict";var e=function(e){if(null===e)return"null";if(void 0===e)return"undefined";var t=typeof e;returCODE
MEDIUMpublic/lib/editor/tiny/js/tinymce/tinymce.min.js10!function(){"use strict";var e=function(e){if(null===e)return"null";if(void 0===e)return"undefined";var t=typeof e;returCODE
MEDIUM…blic/h5p/h5plib/v128/joubel/core/js/h5p-hub-sharing.js41 */var r=n(0),o=n(15),a=n(40);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<aCOMMENT
MEDIUM…blic/h5p/h5plib/v128/joubel/core/js/h5p-hub-sharing.js41 */var r=n(0),o=n(15),a=n(40);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<aCOMMENT
MEDIUM…h5p/h5plib/v128/joubel/core/js/h5p-hub-registration.js29 */var r=n(0),i=n(7),o=n(21);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arCOMMENT
MEDIUM…h5p/h5plib/v128/joubel/core/js/h5p-hub-registration.js29 */var r=n(0),i=n(7),o=n(21);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arCOMMENT
MEDIUM…/h5plib/v128/joubel/editor/ckeditor/translations/pt.js1!function(e){const a=e.pt=e.pt||{};a.dictionary=Object.assign(a.dictionary||{},{"(may require <kbd>Fn</kbd>)":"(pode exiCODE
MEDIUM…5p/h5plib/v128/joubel/editor/scripts/h5p-hub-client.js41 */var r=n(0),a=n(22),i=n(36);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<aCOMMENT
MEDIUM…5p/h5plib/v128/joubel/editor/scripts/h5p-hub-client.js41 */var r=n(0),a=n(22),i=n(36);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<aCOMMENT
MEDIUMpublic/mod/wiki/diff/difflib.php551 // Yep! Definitely deleted.COMMENT
MEDIUMlib/bundles/react-dom/client.js15`).replace(fh,"")}function Qv(l,t){return t=J0(t),J0(l)===t}function Z(l,t,a,u,n,e){switch(a){case"children":typeof u=="CODE
MEDIUMlib/bundles/react-dom/client.development.js15`).replace(jS,"")}function g2(l,t){return t=zy(t),zy(l)===t}function j(l,t,a,u,n,c){switch(a){case"children":typeof u=="CODE
Verbosity Indicators43 hits · 73 pts
SeverityFileLineSnippetContext
LOWpublic/course/dndupload.js309 * image we need to check if all the dataTransfers types are files.COMMENT
LOWpublic/admin/tool/usertours/amd/src/tour.js872 // First, we need to check if the step's content contains any images.COMMENT
LOWpublic/admin/tool/mobile/classes/external.php535 // We need to check if the functions being called are included in the service of the current token.COMMENT
LOWpublic/message/externallib.php3435 // User is not a contact, so we need to check if the user is allowed to see the profile or not.COMMENT
LOWpublic/message/classes/api.php2089 // We need to check if they are in the same course.COMMENT
LOWpublic/message/amd/src/message_drawer.js349 // We need to check if we are on the message/index page.COMMENT
LOWpublic/message/amd/src/message_drawer_view_settings.js224 // we need to check if this processor has been locked by the admin.COMMENT
LOWpublic/user/amd/src/comboboxsearch/user.js38 // Register a couple of events onto the document since we need to check if they are moving off the component.COMMENT
LOW…blic/question/bank/managecategories/classes/helper.php56 * category may appear empty. The purpose of this function is to detect the questions thatCOMMENT
LOWpublic/question/type/ordering/amd/src/drag_reorder.js270 // After we have potentially moved the item, we need to check if the order has changed.COMMENT
LOWpublic/question/format/blackboard_six/formatqti.php800 // The ddmatch question type is not part of core, so we need to check if it is defined.COMMENT
LOWpublic/question/format/blackboard_six/formatpool.php392 // The ddmatch question type is not part of core, so we need to check if it is defined.COMMENT
LOWpublic/lib/accesslib.php983 // So we need to check if the user has been marked as dirty or not in the cache directly.COMMENT
LOWpublic/lib/completionlib.php1372 // Step 1: Exclude activities hidden from the user on the course page.COMMENT
LOWpublic/lib/completionlib.php1377 // Step 2: Check if the user is excluded by group or grouping style restrictions.COMMENT
LOWpublic/lib/upgradelib.php1287 // Now, we need to check if services were removed, in that case we need to remove the function from them.COMMENT
LOW…/google2-auth/src/CredentialSource/AwsNativeSource.php167 # Step 5: Create the list of signed headers. This lists the headersCOMMENT
LOW…/google2-auth/src/CredentialSource/AwsNativeSource.php177 # Step 6: Create payload hash (hash of the request body content). For GETCOMMENT
LOW…/google2-auth/src/CredentialSource/AwsNativeSource.php181 # Step 7: Combine elements to create canonical requestCOMMENT
LOWpublic/lib/classes/output/icon_system_fontawesome.php616 // If the icon is not mapped, we need to check if it is deprecated.COMMENT
LOWpublic/lib/classes/navigation/global_navigation.php357 // However we need to check if there is more content that can yet be loaded for the specific module COMMENT
LOWpublic/lib/classes/external/action_link_exporter.php100 // If the text is a renderable, we need to check if it can be exported.COMMENT
LOWpublic/lib/grade/grade_category.php1331 // We need to check if the grademax/min was adjusted per user because of excluded items.COMMENT
LOWpublic/lib/amd/src/local/reactive/debugpanel.js445 // Step 1: Add all overrides newStateData.COMMENT
LOWpublic/lib/amd/src/local/reactive/debugpanel.js470 // Step 2: delete unnecesary data from currentStateData.COMMENT
LOW…editor/tiny/plugins/aiplacement/classes/plugininfo.php125 // For generate image, we need to check if the user has the capability to upload files.COMMENT
LOWpublic/lib/editor/tiny/plugins/premium/settings.php46 // If the self-hosted package is selected, we need to check if the standalone path is set.COMMENT
LOW…ditor/tiny/plugins/media/amd/src/embed/embedhelpers.js331 // So in order to check if attr="true", we need to check if the attribute exists and if the value is empty or true.COMMENT
LOWpublic/lib/editor/tiny/js/tinymce/models/dom/model.js6729 * Because the resizers were moved into the editor for inline mode, we need to check if the event target COMMENT
LOWpublic/filter/tex/texdebug.php201 // Step 3: Set convert or dvisvgm command.COMMENT
LOWpublic/h5p/classes/framework.php183 * The purpose of this function is to map the strings used in the core h5p methodsCOMMENT
LOWpublic/mod/quiz/tests/lib_test.php149 // Step 1: Create one course and a user with editing teacher capabilities.COMMENT
LOWpublic/mod/quiz/tests/backup/repeated_restore_test.php516 // Step 1: Create two courses and a user with editing teacher capabilities.COMMENT
LOWpublic/mod/quiz/tests/backup/repeated_restore_test.php559 // Step 2: Backup the quizCOMMENT
LOWpublic/mod/quiz/tests/backup/repeated_restore_test.php566 // Step 3: Import the backup into the same course.COMMENT
LOWpublic/mod/assign/tests/external/overrides_test.php1248 // Step 1: Verify no overrides initially.COMMENT
LOWpublic/mod/assign/tests/external/overrides_test.php1253 // Step 2: Create an user override with both due date and cutoff date.COMMENT
LOWpublic/mod/assign/tests/external/overrides_test.php1270 // Step 3: Get and verify override exists with correct properties.COMMENT
LOWpublic/mod/assign/tests/external/overrides_test.php1282 // Step 4: Update the override (change due date, remove cutoff date).COMMENT
LOWpublic/mod/assign/tests/external/overrides_test.php1297 // Step 5: Verify update took effect.COMMENT
LOWpublic/mod/assign/tests/external/overrides_test.php1318 // Step 6: Delete the override.COMMENT
LOWpublic/mod/assign/tests/external/overrides_test.php1327 // Step 7: Verify deleted from both API and database.COMMENT
LOW…lasses/external/get_h5pactivity_access_information.php76 // For mod/h5pactivity:submit we need to check if tracking is enabled in the h5pactivity for the current useCOMMENT
Synthetic Comment Markers9 hits · 58 pts
SeverityFileLineSnippetContext
HIGHpublic/lang/en/ai.php94$string['contentwatermark'] = 'Generated by AI';CODE
HIGHpublic/theme/boost/lib.php76 // Add a watermark to indicate the image is AI generated, but only for the default image.COMMENT
HIGHpublic/theme/classic/lib.php127 // Add a watermark to indicate the image is AI generated, but only for the default image.COMMENT
HIGH…ement/courseassist/classes/external/summarise_text.php137 'The text generated by AI.',CODE
HIGH…acement/courseassist/classes/external/explain_text.php137 'The text generated by AI.',CODE
HIGH…ai/placement/editor/classes/external/generate_text.php132 'The text generated by AI.',CODE
HIGHpublic/lib/tcpdf/tcpdf.php17822 // the last line must be shifted to be aligned as requestedCOMMENT
HIGHpublic/lib/tcpdf/tcpdf.php18773 // the last line must be shifted to be aligned as requestedCOMMENT
HIGHpublic/lib/jquery/ui-1.14.1/jquery-ui.js8524 // Format a name, short or long as requestedCOMMENT
Structural Annotation Overuse20 hits · 38 pts
SeverityFileLineSnippetContext
LOWpublic/lib/completionlib.php1372 // Step 1: Exclude activities hidden from the user on the course page.COMMENT
LOWpublic/lib/completionlib.php1377 // Step 2: Check if the user is excluded by group or grouping style restrictions.COMMENT
LOW…/google2-auth/src/CredentialSource/AwsNativeSource.php167 # Step 5: Create the list of signed headers. This lists the headersCOMMENT
LOW…/google2-auth/src/CredentialSource/AwsNativeSource.php177 # Step 6: Create payload hash (hash of the request body content). For GETCOMMENT
LOW…/google2-auth/src/CredentialSource/AwsNativeSource.php181 # Step 7: Combine elements to create canonical requestCOMMENT
LOWpublic/lib/amd/src/local/reactive/debugpanel.js445 // Step 1: Add all overrides newStateData.COMMENT
LOWpublic/lib/amd/src/local/reactive/debugpanel.js470 // Step 2: delete unnecesary data from currentStateData.COMMENT
LOWpublic/filter/tex/texdebug.php201 // Step 3: Set convert or dvisvgm command.COMMENT
LOWpublic/backup/cc/cc_lib/cc_convert_moodle2.php76 //Step 1 - Get the list and order of sections/topicsCOMMENT
LOWpublic/mod/quiz/tests/lib_test.php149 // Step 1: Create one course and a user with editing teacher capabilities.COMMENT
LOWpublic/mod/quiz/tests/backup/repeated_restore_test.php516 // Step 1: Create two courses and a user with editing teacher capabilities.COMMENT
LOWpublic/mod/quiz/tests/backup/repeated_restore_test.php559 // Step 2: Backup the quizCOMMENT
LOWpublic/mod/quiz/tests/backup/repeated_restore_test.php566 // Step 3: Import the backup into the same course.COMMENT
LOWpublic/mod/assign/tests/external/overrides_test.php1248 // Step 1: Verify no overrides initially.COMMENT
LOWpublic/mod/assign/tests/external/overrides_test.php1253 // Step 2: Create an user override with both due date and cutoff date.COMMENT
LOWpublic/mod/assign/tests/external/overrides_test.php1270 // Step 3: Get and verify override exists with correct properties.COMMENT
LOWpublic/mod/assign/tests/external/overrides_test.php1282 // Step 4: Update the override (change due date, remove cutoff date).COMMENT
LOWpublic/mod/assign/tests/external/overrides_test.php1297 // Step 5: Verify update took effect.COMMENT
LOWpublic/mod/assign/tests/external/overrides_test.php1318 // Step 6: Delete the override.COMMENT
LOWpublic/mod/assign/tests/external/overrides_test.php1327 // Step 7: Verify deleted from both API and database.COMMENT
AI Response Leakage5 hits · 38 pts
SeverityFileLineSnippetContext
HIGHpublic/competency/tests/task/task_test.php88 // The template is now hidden, and I've added a user with a missing plan. Nothing should happen.COMMENT
HIGHpublic/competency/tests/task/task_test.php195 // The template is now hidden, and I've added a user with a missing plan. Nothing should happen.COMMENT
HIGHpublic/theme/yui_combo.php339 // I've added this as a separate regex so it can be easily removed onceCOMMENT
HIGHpublic/theme/yui_combo.php356 // I've added this as a separate regex so it can be easily removed onceCOMMENT
HIGHpublic/filter/urltolink/classes/text_filter.php55 // I've added img tags to this list of tags to ignore.COMMENT
Decorative Section Separators11 hits · 33 pts
SeverityFileLineSnippetContext
MEDIUMpublic/lib/js/esm/tests/deprecated.test.ts47 // ── Validation ─────────────────────────────────────────────────────────COMMENT
MEDIUMpublic/lib/js/esm/tests/deprecated.test.ts75 // ── Plain-text message ─────────────────────────────────────────────────COMMENT
MEDIUMpublic/lib/js/esm/tests/deprecated.test.ts116 // ── Toast notification ─────────────────────────────────────────────────COMMENT
MEDIUMpublic/lib/js/esm/tests/deprecated.test.ts186 // ── Final deprecation ──────────────────────────────────────────────────COMMENT
MEDIUMpublic/lib/js/esm/tests/fetch.test.ts81 // ── request() ─────────────────────────────────────────────────────────COMMENT
MEDIUMpublic/lib/js/esm/tests/fetch.test.ts206 // ── performGet ────────────────────────────────────────────────────────COMMENT
MEDIUMpublic/lib/js/esm/tests/fetch.test.ts239 // ── performHead ───────────────────────────────────────────────────────COMMENT
MEDIUMpublic/lib/js/esm/tests/fetch.test.ts250 // ── performPost ───────────────────────────────────────────────────────COMMENT
MEDIUMpublic/lib/js/esm/tests/fetch.test.ts262 // ── performPut ────────────────────────────────────────────────────────COMMENT
MEDIUMpublic/lib/js/esm/tests/fetch.test.ts274 // ── performPatch ──────────────────────────────────────────────────────COMMENT
MEDIUMpublic/lib/js/esm/tests/fetch.test.ts286 // ── performDelete ─────────────────────────────────────────────────────COMMENT
Slop Phrases12 hits · 23 pts
SeverityFileLineSnippetContext
LOWpublic/lib/graphlib.php57 'title_font' => 'default.ttf', // title text font. don't forget to set 'path_to_fonts' above.CODE
LOWpublic/lib/graphlib.php66 'label_font' => 'default.ttf', // label text font. don't forget to set 'path_to_fonts' above.CODE
LOWpublic/lib/graphlib.php122 'axis_font' => 'default.ttf', // axis text font. don't forget to set 'path_to_fonts' above.CODE
LOWpublic/lib/graphlib.php145 'legend_font' => 'default.ttf', // legend text font. don't forget to set 'path_to_fonts' above.CODE
MEDIUMpublic/lib/dmllib.php35 * (feel free to modify, improve and document such page, thanks!)COMMENT
LOWpublic/lib/form/listing.php47* Don't forget to escape your HTML as soon as one string comes from an input/external source.COMMENT
LOWpublic/lib/bennu/iCalendar_rfc2445.php233 --$len; // Don't forget to update this!CODE
LOWpublic/lib/table/classes/sql_table.php76 * After calling this function, don't forget to call close_recordset.COMMENT
MEDIUM…2-service/src/DLP/GooglePrivacyDlpV2TimespanConfig.php125 * tables#ingestion_time), you can use any of the following pseudo-columns asCOMMENT
MEDIUM…lic/lib/google2-service/src/CustomSearchAPI/Search.php27 * search/docs/refinements#create) (refinements) you can use for refining aCOMMENT
MEDIUM…lic/lib/google2-service/src/CustomSearchAPI/Search.php57 * search/docs/refinements#create) (refinements) you can use for refining aCOMMENT
MEDIUM…blic/mod/glossary/formats/TEMPLATE/TEMPLATE_format.php102 // Anyway, you can modify this to use your own print format!!COMMENT
Cross-Language Confusion (JS/TS)3 hits · 22 pts
SeverityFileLineSnippetContext
HIGH…or/tiny/plugins/html/amd/src/beautify/beautify-html.js373 // but still return True as though you hadCOMMENT
HIGH…/editor/tiny/plugins/html/amd/src/beautify/beautify.js1918 // but still return True as though you hadCOMMENT
HIGH…tor/tiny/plugins/html/amd/src/beautify/beautify-css.js363 // but still return True as though you hadCOMMENT
Self-Referential Comments3 hits · 12 pts
SeverityFileLineSnippetContext
MEDIUM…/google2-auth/src/CredentialSource/AwsNativeSource.php155 # Create a date for headers and the credential string in ISO-8601 formatCOMMENT
MEDIUM…/google2-auth/src/CredentialSource/AwsNativeSource.php159 # Create the canonical headers and signed headers. Header namesCOMMENT
MEDIUM…/google2-auth/src/CredentialSource/AwsNativeSource.php199 # Create the signing key using the function defined above.COMMENT
Magic Placeholder Names2 hits · 10 pts
SeverityFileLineSnippetContext
HIGHpublic/lib/google2/README.md258POST https://datastore.googleapis.com/v1beta3/projects/YOUR_PROJECT_ID:runQuery?key=YOUR_API_KEYCODE
HIGH…blic/lib/editor/tiny/plugins/premium/readme_moodle.txt7The URL looks like this: https://cdn.tiny.cloud/1/YOUR_API_KEY/tinymce/VERSION/plugins.min.jsCODE
Modern AI Meta-Vocabulary3 hits · 8 pts
SeverityFileLineSnippetContext
MEDIUM…lib/aws-sdk/src/data/bedrock/2023-04-20/api-2.json.php3return [ 'version' => '2.0', 'metadata' => [ 'apiVersion' => '2023-04-20', 'auth' => [ 'aws.auth#sigv4', 'smithy.api#httCODE
MEDIUMpublic/lib/php-di/invoker/README.md136#### Built-in support for dependency injectionCOMMENT
MEDIUMpublic/lib/php-di/php-di/change-log.md255* [#162](https://github.com/PHP-DI/PHP-DI/pull/162) Added `Container::call()` to call functions with dependency injectioCOMMENT
TODO Padding4 hits · 6 pts
SeverityFileLineSnippetContext
LOWpublic/grade/edit/tree/index.php125 //TODO: implement autosorting based on order of mods on course page, categories first, manual items lastCOMMENT
LOWpublic/lib/yuilib/3.18.1/dom-base/dom-base.js198 // TODO: implement multipe selectCOMMENT
LOWpublic/lib/yuilib/3.18.1/dom-base/dom-base-debug.js200 // TODO: implement multipe selectCOMMENT
LOWpublic/lib/grade/tests/grade_category_test.php722 // TODO: implement detailed tests.COMMENT
Overly Generic Function Names1 hit · 1 pts
SeverityFileLineSnippetContext
LOWpublic/lib/jquery/jquery-3.7.1.js4139function getData( data ) {CODE