AI Slop Code RIsk Monitor

moodle/moodle

Moodle - the world's open source learning platform

4.2 Low pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for moodle/moodle, a PHP project with 7,473 GitHub stars. SynthScan examined 9,097,130 lines of code across 59818 source files, recording 35388 pattern matches distributed across 17 syntactic categories. The legacy adjusted pattern signal is 4.2 (Low pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

4.2
Adjusted Signal
4.2
Raw Pattern Score
100%
Time Factor
2026-10-03
Last Push
7.5K
Stars
PHP
Language
9.1M
Lines of Code
59.8K
Files
35.4K
Pattern Hits
2026-10-12
Scan Date
0.00
HC Hit Rate

Risk Review · v3

Use each vector to guide manual verification of the underlying findings.

Cognitive Ownership Risk 18.4/100 · LOW

Can maintainers explain intent, assumptions, and trade-offs? 35134 finding(s).

Hallucinated Dependency & Supply Chain Risk 0.5/100 · LOW

Are imports declared and package/API names verified? 243 finding(s).

Agent Over-Engineering Ratio 11.7/100 · LOW

Are wrappers, guards, and repeated structures necessary? 20956 finding(s).

PR Review Velocity Impact 18.0/100 · LOW

Which changes need focused human review? 35388 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 56HIGH 22MEDIUM 57LOW 35253

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 35388 distinct pattern matches across 17 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. 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 configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Hyper-Verbose Identifiers20945 hits · 22694 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.js122function 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.php125 public function isIssuerIncludedAsParameter(): bool;CODE
LOW⚡…min/tool/mfa/factor/totp/extlib/OTPHP/OTPInterface.php130 public function setIssuerIncludedAsParameter(bool $issuer_included_as_parameter): void;CODE
LOW⚡…min/tool/mfa/factor/totp/extlib/OTPHP/OTPInterface.php132 public function withIssuerIncludedAsParameter(bool $issuer_included_as_parameter): self;CODE
LOW⚡public/admin/tool/mfa/factor/totp/extlib/OTPHP/OTP.php145 public function isIssuerIncludedAsParameter(): boolCODE
LOW⚡public/admin/tool/mfa/factor/totp/extlib/OTPHP/OTP.php150 public function setIssuerIncludedAsParameter(bool $issuer_included_as_parameter): voidCODE
LOW⚡public/admin/tool/mfa/factor/totp/extlib/OTPHP/OTP.php155 public function withIssuerIncludedAsParameter(bool $issuer_included_as_parameter): staticCODE
LOWpublic/admin/tool/mfa/factor/totp/extlib/OTPHP/OTP.php431 private function buildProvisioningUriLabel(): stringCODE
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.php263 public static function getDefaultClientCertSource()CODE
LOWpublic/lib/google2-auth/src/CredentialsLoader.php288 public static function shouldLoadClientCertSource()CODE
LOWpublic/lib/google2-auth/src/CredentialsLoader.php296 private static function loadDefaultClientCertSourceFile()CODE
LOW…lib/google2-auth/src/ApplicationDefaultCredentials.php268 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.php229 private static function getServiceAccountImpersonationEmail(string $serviceAccountImpersonationUrl): string|nullCODE
LOW…e2-auth/src/Credentials/ExternalAccountCredentials.php252 private function getImpersonatedAccessToken(string $stsToken, ?callable $httpHandler = null): arrayCODE
LOW…e2-auth/src/Credentials/ExternalAccountCredentials.php447 private function buildRegionalAccessBoundaryLookupUrl(string|null $clientName): stringCODE
LOW…2-auth/src/Credentials/RegionalAccessBoundaryTrait.php28 private function getRegionalAccessBoundary(CODE
LOW…2-auth/src/Credentials/RegionalAccessBoundaryTrait.php85 private function updateRegionalAccessBoundaryMetadata(CODE
LOW…2-auth/src/Credentials/RegionalAccessBoundaryTrait.php111 private function buildRegionalAccessBoundaryLookupUrl(CODE
LOW…2-auth/src/Credentials/RegionalAccessBoundaryTrait.php150 private function lookupRegionalAccessBoundary(CODE
20885 more matches not shown…
Over-Commented Block14051 hits · 14026 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
13991 more matches not shown…
Hallucination Indicators56 hits · 710 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
CRITICAL⚡public/course/yui/src/dragdrop/js/section.js251 if (Y.Moodle.core_course.util.section.getId(sectionlist.item(index - 1)) >CODE
CRITICAL⚡public/course/yui/src/dragdrop/js/section.js252 Y.Moodle.core_course.util.section.getId(sectionlist.item(index))) {CODE
CRITICAL⚡public/course/yui/src/dragdrop/js/section.js253 Y.log("Swapping " + Y.Moodle.core_course.util.section.getId(sectionlist.item(index - 1))CODE
CRITICAL⚡public/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
CRITICAL⚡public/course/yui/src/dragdrop/js/resource.js164 var cmid = Number(Y.Moodle.core_course.util.cm.getId(dragnode));CODE
CRITICAL⚡public/course/yui/src/dragdrop/js/resource.js173 params.sectionId = Y.Moodle.core_course.util.section.getId(dropnode.ancestor(M.course.format.get_section_wrapperCODE
CRITICAL⚡public/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.js108 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.js3function hk(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=Array(t);o<t;o++)n[o]=e[o];return n}function fk(e,t){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
CRITICAL⚡public/mod/quiz/yui/src/util/js/slot.js236 var page = Y.Moodle.mod_quiz.util.page.getPageFromSlot(slot);CODE
CRITICAL⚡public/mod/quiz/yui/src/util/js/slot.js239 if (!Y.Moodle.mod_quiz.util.page.isEmpty(page)) {CODE
CRITICAL⚡public/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
CRITICAL⚡public/mod/quiz/yui/src/toolboxes/js/resource.js506 'id': Y.Moodle.mod_quiz.util.slot.getId(nextactivity),CODE
CRITICAL⚡public/mod/quiz/yui/src/toolboxes/js/resource.js513 Y.Moodle.mod_quiz.util.page.add(activity);CODE
CRITICAL⚡public/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
CRITICAL⚡public/mod/quiz/yui/src/toolboxes/js/resource.js565 Y.Moodle.mod_quiz.util.slot.reorderSlots();CODE
CRITICAL⚡public/mod/quiz/yui/src/toolboxes/js/resource.js566 Y.Moodle.mod_quiz.util.slot.reorderPageBreaks();CODE
CRITICAL⚡public/mod/quiz/yui/src/toolboxes/js/resource.js567 Y.Moodle.mod_quiz.util.page.reorderPages();CODE
CRITICAL⚡public/mod/quiz/yui/src/toolboxes/js/resource.js568 Y.Moodle.mod_quiz.util.slot.updateOneSlotSections();CODE
CRITICAL⚡public/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
CRITICAL⚡public/mod/quiz/yui/src/dragdrop/js/section.js209 if (Y.Moodle.core_course.util.section.getId(sectionlist.item(index - 1)) >CODE
CRITICAL⚡public/mod/quiz/yui/src/dragdrop/js/section.js210 Y.Moodle.core_course.util.section.getId(sectionlist.item(index))) {CODE
CRITICAL⚡public/mod/quiz/yui/src/dragdrop/js/section.js211 Y.log("Swapping " + Y.Moodle.core_course.util.section.getId(sectionlist.item(index - 1))CODE
CRITICAL⚡public/mod/quiz/yui/src/dragdrop/js/section.js212 " with " + Y.Moodle.core_course.util.section.getId(sectionlist.item(index)),CODE
CRITICAL⚡public/mod/quiz/yui/src/dragdrop/js/resource.js132 params.id = Number(Y.Moodle.mod_quiz.util.slot.getId(dragnode));CODE
CRITICAL⚡public/mod/quiz/yui/src/dragdrop/js/resource.js133 params.sectionId = Y.Moodle.core_course.util.section.getId(dragnode.ancestor('li.section', true));CODE
CRITICAL⚡public/mod/quiz/yui/src/dragdrop/js/resource.js137 params.previousid = Number(Y.Moodle.mod_quiz.util.slot.getId(previousslot));CODE
CRITICAL⚡public/mod/quiz/yui/src/dragdrop/js/resource.js142 params.page = Number(Y.Moodle.mod_quiz.util.page.getId(previouspage));CODE
Fake / Example Data182 hits · 212 pts
SeverityFileLineSnippetContext
LOWUPGRADING.md3341 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.php174 'placeholder' => get_string('devicenameexample', 'factor_totp'),CODE
LOWpublic/admin/tool/mobile/settings.php632 '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
122 more matches not shown…
Synthetic Comment Markers12 hits · 91 pts
SeverityFileLineSnippetContext
HIGHpublic/lang/en/ai.php96$string['contentwatermark'] = 'Generated by AI';CODE
HIGHpublic/theme/boost/lib.php74 // 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
HIGH⚡…lic/lib/google2-service/src/AndroidPublisher/Image.php27 * The content is not generated by AI.COMMENT
HIGH⚡…lic/lib/google2-service/src/AndroidPublisher/Image.php31 * The content is generated by AI and attested by the developer.COMMENT
HIGH⚡…lic/lib/google2-service/src/AndroidPublisher/Image.php35 * Optional. Whether the image was generated by AI. Attested by the developer.COMMENT
HIGH…lic/lib/google2-service/src/AndroidPublisher/Image.php66 * Optional. Whether the image was generated by AI. Attested by the developer.COMMENT
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
MEDIUM⚡public/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⚡public/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
LOW⚡public/lib/completionlib.php1377 // Step 1: Exclude activities hidden from the user on the course page.COMMENT
LOW⚡public/lib/completionlib.php1382 // Step 2: Check if the user is excluded by group or grouping style restrictions.COMMENT
LOWpublic/lib/upgradelib.php1295 // 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.php171 # Step 5: Create the list of signed headers. This lists the headersCOMMENT
LOW⚡…/google2-auth/src/CredentialSource/AwsNativeSource.php181 # Step 6: Create payload hash (hash of the request body content). For GETCOMMENT
LOW⚡…/google2-auth/src/CredentialSource/AwsNativeSource.php185 # 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.js446 // Step 1: Add all overrides newStateData.COMMENT
LOWpublic/lib/amd/src/local/reactive/debugpanel.js471 // Step 2: delete unnecesary data from currentStateData.COMMENT
LOW…editor/tiny/plugins/aiplacement/classes/plugininfo.php131 // 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.php215 // 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
LOW⚡public/mod/quiz/tests/backup/repeated_restore_test.php559 // Step 2: Backup the quizCOMMENT
LOW⚡public/mod/quiz/tests/backup/repeated_restore_test.php566 // Step 3: Import the backup into the same course.COMMENT
LOW⚡public/mod/assign/tests/external/overrides_test.php1248 // Step 1: Verify no overrides initially.COMMENT
LOW⚡public/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
LOW⚡public/mod/assign/tests/external/overrides_test.php1318 // Step 6: Delete the override.COMMENT
LOW⚡public/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
Structural Annotation Overuse20 hits · 38 pts
SeverityFileLineSnippetContext
LOW⚡public/lib/completionlib.php1377 // Step 1: Exclude activities hidden from the user on the course page.COMMENT
LOW⚡public/lib/completionlib.php1382 // Step 2: Check if the user is excluded by group or grouping style restrictions.COMMENT
LOW⚡…/google2-auth/src/CredentialSource/AwsNativeSource.php171 # Step 5: Create the list of signed headers. This lists the headersCOMMENT
LOW⚡…/google2-auth/src/CredentialSource/AwsNativeSource.php181 # Step 6: Create payload hash (hash of the request body content). For GETCOMMENT
LOW⚡…/google2-auth/src/CredentialSource/AwsNativeSource.php185 # Step 7: Combine elements to create canonical requestCOMMENT
LOWpublic/lib/amd/src/local/reactive/debugpanel.js446 // Step 1: Add all overrides newStateData.COMMENT
LOWpublic/lib/amd/src/local/reactive/debugpanel.js471 // 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.php215 // 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
LOW⚡public/mod/quiz/tests/backup/repeated_restore_test.php559 // Step 2: Backup the quizCOMMENT
LOW⚡public/mod/quiz/tests/backup/repeated_restore_test.php566 // Step 3: Import the backup into the same course.COMMENT
LOW⚡public/mod/assign/tests/external/overrides_test.php1248 // Step 1: Verify no overrides initially.COMMENT
LOW⚡public/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
LOW⚡public/mod/assign/tests/external/overrides_test.php1318 // Step 6: Delete the override.COMMENT
LOW⚡public/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 Phrases13 hits · 26 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…/src/SA360/GoogleAdsSearchads360V23ErrorsErrorCode.php8109 * The plan is not enabled and API cannot provide mutation, forecast or stats.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.js1919 // 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
Modern AI Meta-Vocabulary7 hits · 20 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
MEDIUM…ganizationsLocationsWorkloadIdentityPoolsWellKnown.php36 * discovery-1_0.html#ProviderConfigurationResponse). For now, only agenticCOMMENT
MEDIUM…/OrganizationsLocationsWorkloadIdentityPoolsOpenid.php35 * 7517](https://tools.ietf.org/html/rfc7517). For now, only agentic systemCOMMENT
MEDIUM…ource/ProjectsLocationsWorkloadIdentityPoolsOpenid.php35 * 7517](https://tools.ietf.org/html/rfc7517). For now, only agentic systemCOMMENT
MEDIUM…ce/ProjectsLocationsWorkloadIdentityPoolsWellKnown.php36 * discovery-1_0.html#ProviderConfigurationResponse). For now, only agenticCOMMENT
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
Self-Referential Comments3 hits · 12 pts
SeverityFileLineSnippetContext
MEDIUM⚡…/google2-auth/src/CredentialSource/AwsNativeSource.php159 # Create a date for headers and the credential string in ISO-8601 formatCOMMENT
MEDIUM⚡…/google2-auth/src/CredentialSource/AwsNativeSource.php163 # Create the canonical headers and signed headers. Header namesCOMMENT
MEDIUM…/google2-auth/src/CredentialSource/AwsNativeSource.php203 # 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
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