MCPcopy Create free account
hub / github.com/codecombat/codecombat / getCodeContext

Method getCodeContext

app/models/Level.js:579–588  ·  view source on GitHub ↗
(plan)

Source from the content-addressed store, hash-verified

577 }
578
579 getCodeContext (plan) {
580 if (!plan) return {}
581 let context = utils.i18n(plan, 'context')
582 if (utils.showOzaria()) {
583 context = _.merge({
584 external_ch1_avatar: store.getters?.['me/getCh1Avatar.avatarCodeString']?.crown,
585 }, context)
586 }
587 return context
588 }
589
590 static thresholdForScore ({ level, type, score }) {
591 let levelScoreType, levelScoreTypes

Callers 2

getSolutionsMethod · 0.95
getSampleCodeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected