query
stringlengths
9
14.6k
document
stringlengths
8
5.39M
metadata
dict
negatives
listlengths
0
30
negative_scores
listlengths
0
30
document_score
stringlengths
5
10
document_rank
stringclasses
2 values
Checks if this wizard is currently inside its last step
isLastStep() { return this.wizardSteps.length > 0 && this.currentStepIndex === this.wizardSteps.length - 1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "hasPreviousStep() {\n return this.hasStep(this.currentStepIndex - 1);\n }", "function isTherePreviousStep() {\n\tif ((recipe[(current_step - 1)]) == undefined) {\n\t\treturn false;\n\t}\n\telse {\n\t\treturn true;\n\t}\t\n}", "isCurrent(wizardStep) {\n return wizardStep.selected;\n }", "i...
[ "0.73158675", "0.7070728", "0.6947358", "0.6947358", "0.68061227", "0.67038226", "0.6650835", "0.6535491", "0.6510453", "0.6510453", "0.6336239", "0.6328484", "0.62452275", "0.61663663", "0.6160195", "0.6160195", "0.61124355", "0.6110408", "0.6110408", "0.6098297", "0.6087460...
0.8459782
0
Finds the index of the step with the given `stepId`. If no step with the given `stepId` exists, `1` is returned
getIndexOfStepWithId(stepId) { return this.wizardSteps.findIndex(step => step.stepId === stepId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "getIndexOfStep(step) {\n return this.wizardSteps.indexOf(step);\n }", "function findStep(stepID) {\n\tfor (var i=0; i<allSteps.length; i++) {\n\t\tif (allSteps[i].name == stepID) {\n\t\t\tvar thisStep = allSteps[i];\n\t\t\tthisStep.index = i;\n\t\t\treturn thisStep;\n\t\t}\n\t}\n\treturn null;\n}", "...
[ "0.7259505", "0.6980785", "0.6268173", "0.620252", "0.61299866", "0.60970294", "0.6081416", "0.60488707", "0.5936436", "0.58541447", "0.5832439", "0.5715784", "0.56843054", "0.5680703", "0.56161183", "0.55660355", "0.5552259", "0.5551486", "0.5526986", "0.5495271", "0.5478414...
0.8251447
0
Finds the index of the given [[WizardStep]] `step`. If the given [[WizardStep]] is not contained inside this wizard, `1` is returned
getIndexOfStep(step) { return this.wizardSteps.indexOf(step); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "getIndexOfStepWithId(stepId) {\n return this.wizardSteps.findIndex(step => step.stepId === stepId);\n }", "function findStep(stepID) {\n\tfor (var i=0; i<allSteps.length; i++) {\n\t\tif (allSteps[i].name == stepID) {\n\t\t\tvar thisStep = allSteps[i];\n\t\t\tthisStep.index = i;\n\t\t\treturn thisStep;\...
[ "0.73800766", "0.6829322", "0.6752951", "0.65789956", "0.6169497", "0.61289334", "0.5955033", "0.5953152", "0.58375216", "0.58375216", "0.58375216", "0.58375216", "0.58375216", "0.58134836", "0.5770634", "0.5752647", "0.5710975", "0.5635492", "0.5604697", "0.55318254", "0.550...
0.85738534
0
Calculates the correct [[MovingDirection]] value for a given `destinationStep` compared to the `currentStepIndex`.
getMovingDirection(destinationStep) { let movingDirection; if (destinationStep > this.currentStepIndex) { movingDirection = MovingDirection.Forwards; } else if (destinationStep < this.currentStepIndex) { movingDirection = MovingDirection.Backwards; } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getScrollDirection(currentScroll) {\n var direction = currentScroll > lastScroll ? 'down' : 'up';\n lastScroll = currentScroll; //needed for auto-height sections to determine if we want to scroll to the top or bottom of the destination\n\n previousDestTop = currentScroll;\n return dire...
[ "0.5946278", "0.5852326", "0.5830195", "0.5830195", "0.5830195", "0.5830195", "0.5830195", "0.5803096", "0.5803096", "0.5803096", "0.5803096", "0.5803096", "0.5778637", "0.5712", "0.5566804", "0.5553293", "0.5528641", "0.54888153", "0.5485352", "0.5389296", "0.53838706", "0...
0.8213985
0
Checks, whether a wizard step, as defined by the given destination index, can be transitioned to. This method controls navigation by [[goToStep]], [[goToPreviousStep]], and [[goToNextStep]] directives. Navigation by navigation bar is governed by [[isNavigable]].
canGoToStep(destinationIndex) { return this.navigation.canGoToStep(this, destinationIndex); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "canTransitionToStep(wizard, destinationIndex) {\n return this.isNavigable(wizard, destinationIndex);\n }", "canGoToStep(wizard, destinationIndex) {\n const hasStep = wizard.hasStep(destinationIndex);\n const movingDirection = wizard.getMovingDirection(destinationIndex);\n const can...
[ "0.88562757", "0.7972408", "0.7424479", "0.721169", "0.721169", "0.64273155", "0.6314918", "0.61585194", "0.59982157", "0.54273164", "0.54273164", "0.5417813", "0.53788453", "0.5340788", "0.5311739", "0.5283782", "0.52543926", "0.52412516", "0.52087605", "0.5205247", "0.51990...
0.8375312
1
Returns the number of wizard steps, that need to be displaced in the navigation bar
get numberOfWizardSteps() { return this.wizard.wizardSteps.length; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getTotal(){\n return document.getElementById('overview')?document.getElementsByClassName('step').length - 1: document.getElementsByClassName('step').length;\n }", "get wizardSteps() {\n switch (this.direction) {\n case 'right-to-left':\n return this.wiz...
[ "0.67590123", "0.60661143", "0.60661143", "0.60028714", "0.59887296", "0.59773463", "0.59093374", "0.58970755", "0.5773606", "0.57634693", "0.5756974", "0.5715166", "0.5703936", "0.56908315", "0.56676793", "0.56240684", "0.56228405", "0.55466485", "0.5538936", "0.5537627", "0...
0.7418916
1
Checks, whether a [[WizardStep]] can be marked as `current` in the navigation bar
isCurrent(wizardStep) { return wizardStep.selected; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "isNavigable(wizardStep) {\n return !wizardStep.selected && !this.wizard.disableNavigationBar &&\n this.wizard.isNavigable(this.wizard.getIndexOfStep(wizardStep));\n }", "isNavigable(wizardStep) {\n return !wizardStep.selected && !this.wizard.disableNavigationBar &&\n this.w...
[ "0.6899404", "0.6899404", "0.6301874", "0.62340254", "0.6194191", "0.60079426", "0.59952515", "0.5973131", "0.59614146", "0.5822641", "0.5747335", "0.5654943", "0.5654943", "0.5654943", "0.5654943", "0.5654943", "0.56127787", "0.5586502", "0.553155", "0.5517505", "0.5483631",...
0.7306232
1
Checks, whether a [[WizardStep]] can be marked as `editing` in the navigation bar
isEditing(wizardStep) { return wizardStep.editing; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "isNavigable(wizardStep) {\n return !wizardStep.selected && !this.wizard.disableNavigationBar &&\n this.wizard.isNavigable(this.wizard.getIndexOfStep(wizardStep));\n }", "isNavigable(wizardStep) {\n return !wizardStep.selected && !this.wizard.disableNavigationBar &&\n this.w...
[ "0.6750302", "0.6750302", "0.6398489", "0.6171247", "0.59916437", "0.59725964", "0.59463125", "0.59463125", "0.5908576", "0.58420944", "0.5841403", "0.5803241", "0.57751846", "0.5750335", "0.5750223", "0.56589633", "0.5639572", "0.5596988", "0.5592259", "0.5544042", "0.552887...
0.7230402
1
Checks, whether a [[WizardStep]] can be marked as `done` in the navigation bar
isDone(wizardStep) { return wizardStep.completed; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "isNavigable(wizardStep) {\n return !wizardStep.selected && !this.wizard.disableNavigationBar &&\n this.wizard.isNavigable(this.wizard.getIndexOfStep(wizardStep));\n }", "isNavigable(wizardStep) {\n return !wizardStep.selected && !this.wizard.disableNavigationBar &&\n this.w...
[ "0.6860347", "0.6860347", "0.6680838", "0.6680838", "0.649143", "0.6292814", "0.6229505", "0.61171305", "0.61171305", "0.6050048", "0.6050048", "0.6036553", "0.5994487", "0.5958272", "0.5948831", "0.5897384", "0.58672553", "0.5826817", "0.5737372", "0.570114", "0.56980366", ...
0.6928854
1
Checks, whether a [[WizardStep]] can be marked as `optional` in the navigation bar
isOptional(wizardStep) { return wizardStep.optional; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "isNavigable(wizardStep) {\n return !wizardStep.selected && !this.wizard.disableNavigationBar &&\n this.wizard.isNavigable(this.wizard.getIndexOfStep(wizardStep));\n }", "isNavigable(wizardStep) {\n return !wizardStep.selected && !this.wizard.disableNavigationBar &&\n this.w...
[ "0.6355546", "0.6355546", "0.6153288", "0.60900855", "0.5814659", "0.5540764", "0.5437612", "0.5437612", "0.5434586", "0.54282695", "0.54096144", "0.54058516", "0.5354515", "0.5329395", "0.5325062", "0.5320841", "0.5304849", "0.5288393", "0.5210379", "0.5188083", "0.518252", ...
0.7578247
1
Checks, whether a [[WizardStep]] can be marked as `completed` in the navigation bar. The `completed` class is only applied to completion steps.
isCompleted(wizardStep) { return wizardStep instanceof WizardCompletionStep && this.wizard.completed; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get completed() {\n return this.wizardSteps.every(step => step.completed || step.optional);\n }", "isNavigable(wizardStep) {\n return !wizardStep.selected && !this.wizard.disableNavigationBar &&\n this.wizard.isNavigable(this.wizard.getIndexOfStep(wizardStep));\n }", "isNavigable...
[ "0.6466284", "0.64464927", "0.64464927", "0.6395687", "0.6254464", "0.6186004", "0.6186004", "0.61121196", "0.6033654", "0.5945203", "0.5887403", "0.581737", "0.5622904", "0.55980176", "0.5535069", "0.5522666", "0.5498598", "0.5492127", "0.54863524", "0.5485303", "0.54621184"...
0.71986043
1
Checks, whether a [[WizardStep]] can be marked as `navigable` in the navigation bar. A wizard step can be navigated to if: the step is currently not selected the navigation bar isn't disabled the navigation mode allows navigation to the step
isNavigable(wizardStep) { return !wizardStep.selected && !this.wizard.disableNavigationBar && this.wizard.isNavigable(this.wizard.getIndexOfStep(wizardStep)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "canTransitionToStep(wizard, destinationIndex) {\n return this.isNavigable(wizard, destinationIndex);\n }", "get navigationInProgress() {\n if (!this.regions || !this.regions.length || !this.isElementValid(this.activeRegion)) {\n return false;\n }\n if (!this.lastInputEve...
[ "0.6477861", "0.63232857", "0.6182327", "0.6162443", "0.602268", "0.59825265", "0.5945547", "0.5900869", "0.5870909", "0.583094", "0.58294225", "0.5781811", "0.54331166", "0.5389406", "0.5373094", "0.5344751", "0.5318631", "0.53177917", "0.53137475", "0.53137475", "0.5272504"...
0.79536235
1
Checks whether the given `value` implements the interface [[StepId]].
function isStepId(value) { return value.hasOwnProperty('stepId') && !(value instanceof WizardStep); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function isStepIndex(value) {\n return value.hasOwnProperty('stepIndex');\n}", "function isId(value) {\n return typeof value === \"string\" || typeof value === \"number\";\n}", "function isId(value) {\n return typeof value === \"string\" || typeof value === \"number\";\n}", "function isStepOffset(value)...
[ "0.64006597", "0.58884895", "0.58884895", "0.58498746", "0.55208516", "0.55208516", "0.55208516", "0.55208516", "0.549415", "0.549415", "0.549415", "0.549415", "0.549111", "0.5477042", "0.5477042", "0.54713243", "0.545068", "0.545068", "0.5438097", "0.5438097", "0.5438097", ...
0.7946601
0
Checks whether the given `value` implements the interface [[StepIndex]].
function isStepIndex(value) { return value.hasOwnProperty('stepIndex'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function isStepId(value) {\n return value.hasOwnProperty('stepId') && !(value instanceof WizardStep);\n}", "function isStepOffset(value) {\n return value.hasOwnProperty('stepOffset');\n}", "hasStep(stepIndex) {\n return this.wizardSteps.length > 0 && 0 <= stepIndex && stepIndex < this.wizardSteps....
[ "0.6502141", "0.6368605", "0.6026196", "0.5803586", "0.54826283", "0.54826283", "0.54826283", "0.54826283", "0.544555", "0.5438801", "0.5430518", "0.5430518", "0.5405991", "0.5376572", "0.5376572", "0.5376572", "0.5271671", "0.523302", "0.523302", "0.523302", "0.523302", "0...
0.7741092
0
Checks whether the given `value` implements the interface [[StepOffset]].
function isStepOffset(value) { return value.hasOwnProperty('stepOffset'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function isStepIndex(value) {\n return value.hasOwnProperty('stepIndex');\n}", "function checkOffsetOrLengthValue(value, offset) {\n if (typeof value === 'number') {\n // Check for non finite/non integers\n if (!isFiniteInteger(value) || value < 0) {\n throw new Error(offset ? ERRO...
[ "0.6593876", "0.59947115", "0.59947115", "0.5971321", "0.5667005", "0.5538231", "0.5538231", "0.5538231", "0.5538231", "0.55346644", "0.5507572", "0.5504276", "0.5504276", "0.5457174", "0.5457174", "0.5457174", "0.5429628", "0.5429628", "0.5429628", "0.5429628", "0.54280025",...
0.810686
0
A convenience field for `preFinalize`
get finalize() { return this.preFinalize; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "set finalize(emitter) {\n /* istanbul ignore next */\n this.preFinalize = emitter;\n }", "set finalize(emitter) {\n /* istanbul ignore next */\n this.preFinalize = emitter;\n }", "set finalize(emitter) {\n /* istanbul ignore next */\n this.preFinalize = emitter;\...
[ "0.7117332", "0.7117332", "0.7117332", "0.6927629", "0.6927629", "0.6927629", "0.6927629", "0.62360346", "0.6203667", "0.61888313", "0.6080891", "0.604198", "0.59585786", "0.586977", "0.57899004", "0.57621974", "0.57621974", "0.57621974", "0.5741789", "0.56473374", "0.5571320...
0.80003405
1
Listener method for `click` events on the component with this directive. After this method is called the wizard will try to transition to the `destinationStep`
onClick() { this.wizard.goToStep(this.destinationStep, this.preFinalize, this.postFinalize); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "onClick() {\n this.wizard.goToPreviousStep(this.preFinalize, this.postFinalize);\n }", "onClick() {\n this.wizard.goToNextStep(this.preFinalize, this.postFinalize);\n }", "_handleClick() {\n this._stepper.next();\n }", "goToStep(wizard, destinationIndex, preFinalize, postFinaliz...
[ "0.6478911", "0.64786994", "0.6384727", "0.60830194", "0.59883595", "0.59032", "0.58037984", "0.57050186", "0.57050186", "0.5670382", "0.5647325", "0.5572182", "0.5572182", "0.5572182", "0.5572182", "0.5572182", "0.5479895", "0.5429585", "0.5424469", "0.54240054", "0.54158056...
0.73503864
0
Listener method for `click` events on the component with this directive. After this method is called the wizard will try to transition to the next step
onClick() { this.wizard.goToNextStep(this.preFinalize, this.postFinalize); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "onClick() {\n this.wizard.goToStep(this.destinationStep, this.preFinalize, this.postFinalize);\n }", "_handleClick() {\n this._stepper.next();\n }", "onClick() {\n this.wizard.goToPreviousStep(this.preFinalize, this.postFinalize);\n }", "_handleClick() {\n this._stepper.p...
[ "0.7089685", "0.69424903", "0.69109446", "0.62115836", "0.6198361", "0.6198361", "0.5915644", "0.58032393", "0.5782552", "0.5768961", "0.56575274", "0.56415755", "0.56133574", "0.55958235", "0.5548496", "0.5548496", "0.5548496", "0.5548496", "0.5548496", "0.5548496", "0.55480...
0.6995111
1
A convenience field for `preFinalize`
get finalize() { return this.preFinalize; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "set finalize(emitter) {\n /* istanbul ignore next */\n this.preFinalize = emitter;\n }", "set finalize(emitter) {\n /* istanbul ignore next */\n this.preFinalize = emitter;\n }", "set finalize(emitter) {\n /* istanbul ignore next */\n this.preFinalize = emitter;\...
[ "0.71170676", "0.71170676", "0.71170676", "0.6925964", "0.6925964", "0.6925964", "0.6925964", "0.62356186", "0.6202836", "0.6188713", "0.608006", "0.6042422", "0.5956262", "0.5868293", "0.57897687", "0.5761864", "0.5761864", "0.5761864", "0.5740182", "0.564635", "0.5570662", ...
0.80000275
0
Listener method for `click` events on the component with this directive. After this method is called the wizard will try to transition to the previous step
onClick() { this.wizard.goToPreviousStep(this.preFinalize, this.postFinalize); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "onClick() {\n this.wizard.goToStep(this.destinationStep, this.preFinalize, this.postFinalize);\n }", "_handleClick() {\n this._stepper.previous();\n }", "onClick() {\n this.wizard.goToNextStep(this.preFinalize, this.postFinalize);\n }", "_handleClick() {\n this._stepper.n...
[ "0.6846885", "0.6845933", "0.66327524", "0.64958894", "0.6132", "0.6132", "0.578211", "0.5725608", "0.57202333", "0.5697284", "0.56829065", "0.5649515", "0.56485355", "0.55289966", "0.5520443", "0.551909", "0.55094105", "0.5472821", "0.547", "0.543746", "0.54330623", "0.542...
0.7209603
0
Shuts down the WebSocket server.
async close() { // Close all pending connections. forEach(this._pendingAuthRequests, ({ socket }) => socket.destroy()); // Shut down server. try { this._wsServer.close(); } catch (e) { log.warn(`Cannot shutdown WebSocket server cleanly: ${e}`); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "stop()\n\t{\n\t\tlogger.debug('stop()');\n\n\t\t// Don't close the given http.Server|https.Server but just unmount the\n\t\t// WebSocket server.\n\t\tthis._wsServer.unmount();\n\t}", "function closeWebSocket() {\n var socket = gSocket;\n if (socket === null) return;\n \n socket.close();\n}", "funct...
[ "0.74299985", "0.69778734", "0.69477856", "0.68517894", "0.68400216", "0.68149406", "0.68000096", "0.6740421", "0.67104053", "0.6689374", "0.66621435", "0.6642312", "0.66350496", "0.663441", "0.663441", "0.6634173", "0.6634173", "0.6633463", "0.662425", "0.6617797", "0.661189...
0.71942896
1
HTTP Upgrade request to WebSocket received, execute AuthFilter if specified..
async onUpgrade(request, socket, head) { const { websocketAuth, websocketAuthTimeoutMs } = this.config; // Create client ID and pendingRequest. const clientId = makeId(); const pendingRequest = (this._pendingAuthRequests[clientId] = { clientId, request, socket, head }); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "onConnectionUpgrade ( request, socket, head ) {\n\t\tthis.wss.handleUpgrade( request, socket, head, this.onConnect.bind( this ) );\n\t}", "function proxyUpgrade(apiUrl, req, socket, firstPacket) {\n // WebSocket requests must use the `GET` method and must have the\n // `Upgrade: websocket` header.\n if (\n ...
[ "0.69186634", "0.65935355", "0.6427575", "0.64199305", "0.6364857", "0.6364857", "0.6364857", "0.6284813", "0.5769291", "0.57104", "0.5687531", "0.56865716", "0.5649605", "0.5567272", "0.55204475", "0.5491996", "0.54838884", "0.54838884", "0.54838884", "0.543355", "0.54188067...
0.7379512
0
Constructor: sets state to the props of the problem passed in
constructor (props) { super(props) this.state = {problem:this.props.problem, msg:this.props.msg}; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "constructor(props) {\n super(props);\n this.state = {\n numProblems: 0, // Number of problems (marker)\n problems: false, // There is a problem or not\n modal: false // Handle the modal (open or closed)\n };\n }", "constructor(props) {\n super(props);\n this.state = props.data;\n ...
[ "0.7219103", "0.6904066", "0.6758792", "0.67064023", "0.6699285", "0.6677786", "0.66019535", "0.6575242", "0.65161383", "0.65069306", "0.6492275", "0.64304125", "0.64199007", "0.6412325", "0.63924456", "0.63889015", "0.63873327", "0.6379496", "0.63686955", "0.6361909", "0.636...
0.785561
0
updateProblem transferReason and probStatus will be updated
updateProblem(transferReason, probStatus) { var problem = Object.assign( this.state.problem, {transferReason: transferReason, probStatus: probStatus} ); // onChangeProblem is a props of the Navigator (index.ios.js) this.props.onChangeProblem(problem); this.setState(pro...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function updateProfileProblemStatus(data){\n\tconsole.log(\"update learner profile problem\");\n\tajax(APP.LEARNER_PROFILE_STATUS_UPDATE + \"?problem=\" + escape(JSON.stringify(APP.currentProblem)));\n}", "_onProblemsCountChange(e) {\n this.problemsCount = e.detail.value;\n this.requestUpdate();\n ...
[ "0.6197046", "0.5467933", "0.5382335", "0.53607833", "0.535352", "0.53532237", "0.53293747", "0.5306458", "0.529171", "0.52715796", "0.52600044", "0.52528447", "0.5250541", "0.5245506", "0.51780814", "0.5175215", "0.5163671", "0.51364225", "0.5124085", "0.5121597", "0.5116774...
0.6950864
0
draw points and centers
function draw_points() { ctx.clearRect(0, 0, win_width, win_height); // draw points for (var i = 0; i < Points.length; i++) { ctx.fillStyle = Colors[Points[i].group]; ctx.beginPath(); ctx.arc(Points[i].x, Points[i].y, 3, 0, Math.PI * 2, true); ctx.fill(); } // draw center points for (var i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function drawPoints() {\n strokeWeight(0);\n fill(211, 223, 242);\n for (let i = 0; i < points.length; i++) {\n // multiply by width/height because it is normalized\n let x = points[i].x * width;\n let y = points[i].y * height;\n circle(x, y, pointDiameter);\n }\n}", "func...
[ "0.73371255", "0.72472703", "0.7103604", "0.70471793", "0.6946579", "0.6847616", "0.67944366", "0.6634327", "0.66301554", "0.6579383", "0.65744025", "0.6569627", "0.6501541", "0.6496129", "0.6405817", "0.63643056", "0.6354146", "0.6349294", "0.6341984", "0.63325256", "0.63090...
0.77256954
0
Handles edit button on selected user
function editUser(event) { var editButton = $(event.currentTarget); var userId = editButton .parent() .parent() .parent() .attr('id'); userId = parseInt(userId); currentUserID = userId; userService .findUserById(userId) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function editUser(event) {\n $button= $(event.currentTarget);\n $userId=$button.parent().parent().parent().attr(\"id\");\n findUserById($userId).then(renderUser);\n }", "function editUser(e) {\r\n if (e.target.className === \"save\") {\r\n let newUserData = prepareEditedUser(e);\r\n ...
[ "0.80484873", "0.77136", "0.7380997", "0.72630066", "0.7252838", "0.71671516", "0.71213305", "0.70506597", "0.69616574", "0.6958954", "0.6875406", "0.6863547", "0.68527913", "0.6841256", "0.67582935", "0.6732902", "0.6730865", "0.6695096", "0.66697806", "0.6666269", "0.665858...
0.79947335
1
Rotates elements inside cog evenly depending on how many there is
function rotateMemes(cog) { var num_memes = cog.children.length; for (var i = 0; i < num_memes; i++) { var meme = cog.children[i]; meme.style.transform = "rotate(" + (i * 360 / num_memes) + "deg)"; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function rotateElements() {\n $('.h5p-column-content').each(function () {\n var r = -3 + (Math.random() * (6)); // -3 to +3 deg\n $(this).css('transform', 'rotate(' + r + 'deg');\n });\n }", "function rotate(el, container) {\n var elArray = jQuery.makeA...
[ "0.6584384", "0.6440893", "0.63655466", "0.61711246", "0.5956678", "0.5917475", "0.5878851", "0.5874645", "0.5874645", "0.5874645", "0.58625704", "0.5829455", "0.5820674", "0.5808359", "0.5806594", "0.5770826", "0.5754663", "0.57317775", "0.57179385", "0.57119745", "0.5690478...
0.65169066
1
Determine if input is a logical button. Element may be , , etc.
function isButton (el) { return el.classList.contains("button"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "isButton (element) {\n if (this.buttonTypes.indexOf(element.type) >=0 ){\n return !this.isTooComplexStyle(element)\n }\n return false\n }", "function isSwitchBtn(btnElement) {\n return btnElement === switchBtn;\n }", "function buttonIsPressed(button) {\n if (typeof(button) == \"objec...
[ "0.73506755", "0.6338709", "0.61530757", "0.61530757", "0.6088353", "0.6088353", "0.6088353", "0.60829264", "0.60598624", "0.60441", "0.59983826", "0.59835804", "0.5869032", "0.58521265", "0.5836232", "0.5804446", "0.57965356", "0.57609963", "0.57467085", "0.56999713", "0.569...
0.6805742
1
JGL MAIN LIBRARY ////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////////////////////// Functions that have yet to be converted are in jlg.lib.old.js ///////////////////////////////////////////////////////////////////////////////...
function jglDestroy(object) { if (object!=undefined && !object._destroyed && object.destroy!=undefined) {object.destroy();} object = undefined; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "destroy() {\n // destroy everything related to WebGL and the slider\n this.destroyWebGL();\n this.destroySlider();\n }", "destroy() {\n if (this.frameBuffer.stencil) {\n this.gl.deleteRenderbuffer(this.frameBuffer.stencil);\n }\n this.frameBuffer.destroy();\n\n this.frame...
[ "0.736962", "0.72700256", "0.72380364", "0.71222764", "0.70668286", "0.7050583", "0.7046573", "0.69743997", "0.6951056", "0.69330364", "0.6915185", "0.69138783", "0.6887346", "0.6887346", "0.686658", "0.68576485", "0.6840939", "0.6826139", "0.6824257", "0.6813697", "0.6808587...
0.7618077
0
Coordinate Functions Function for changing to visual Angle Coordinates. If this function is called while drawing a stencil, it does not effect the normal canvas.
function jglVisualAngleCoordinates() { let w = app.view.parentNode.clientWidth, h = app.view.parentNode.clientHeight; console.log('Setting 0,0 to: ' + w/2 + ', ' +h/2); jgl.pixi.container.setTransform(w/2, h/2); jgl.pixi.usingVisualAngles = true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function mouseActionLocal(angleXY) {\n encoder.azim = angleXY[0];\n encoder.elev = angleXY[1];\n encoder.updateGains();\n}", "function mouseActionLocal(angleXY) {\n encoder.azim = angleXY[0];\n encoder.elev = angleXY[1];\n encoder.updateGains();\n}", "updateValues() {\n this.s = Math.c...
[ "0.55942255", "0.55942255", "0.54133207", "0.5382197", "0.5225038", "0.5155207", "0.5104293", "0.5085548", "0.5026078", "0.49494684", "0.49319577", "0.4886885", "0.48751575", "0.48394603", "0.48259723", "0.48156098", "0.4813158", "0.480719", "0.47988385", "0.47986203", "0.479...
0.62829345
0
Add tab pane usage block
_addTabUsageBlock() { let tabId = 'tab-usage-block'; let $navTab = $('<li/>').append( $('<a/>', { text: Translator.trans('open_orchestra_backoffice.shared_block.tab_usage_block'), 'data-toggle': 'tab', role: 'tab', href: '#'+tab...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function addTab() {\n\t\tvar tab_title = $tab_title_input.val() || 'Tab '+tab_counter;\n\t\t$tabs.tabs('add', '#tabs-'+tab_title, tab_title);\n\t\ttab_counter++;\n\t\t// call the markitup editor on the new tab\n\t\t$('.added').markItUp(mySettings);\n\t}", "function addTab() {\n var label = tabTitl...
[ "0.64839643", "0.6198984", "0.6074835", "0.5990692", "0.5933882", "0.5933882", "0.59336483", "0.58718574", "0.5861514", "0.5852915", "0.58457184", "0.5842578", "0.5835541", "0.5827788", "0.5699432", "0.5683492", "0.56648266", "0.56333894", "0.5633053", "0.558654", "0.5554882"...
0.7982846
0
console.log(createColumnsName().segmentsName[2]); CREATE ATTRIBUTS IN HTML CLASS number of columns as first of all declared in CSS file as Classes of HTML element which need to split as value of attribute gridtemplatecolumns
function createColumnsInHTML(numOfColumns) { for(let i=1; i<=numOfColumns; i++) { document.getElementById("firstHalf").insertAdjacentHTML("beforeend", `<div class="first-col-${i}"></div>`); document.getElementById("secondHalf").insertAdjacentHTML("beforeend", `<div class="second-col-${i}"></div>`); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function selectSegments(numOfColumns) {\n const segments = [];\n const secondSegments = [];\n\n for(let i=0; i<numOfColumns; i++){\n segments.push(document.querySelector(`.${createColumnsName().segmentsName[i]}`));\n secondSegments.push(document.querySelector(`.${createColumnsName().secondSe...
[ "0.61088467", "0.6094285", "0.60230565", "0.59997416", "0.5962533", "0.5949924", "0.5941162", "0.591371", "0.5909398", "0.59061337", "0.5894134", "0.5856693", "0.58460975", "0.58364946", "0.5831845", "0.5821201", "0.5783416", "0.57798016", "0.57059246", "0.5694812", "0.566475...
0.61866647
0
Functions to store/load completed task list in localStorage
function storeCompletedTaskList() { localStorage.setItem('completedTasks', JSON.stringify($tasksCompleteList.html())); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function saveInLocalStorage(){\n localStorage.setItem('tasks', JSON.stringify(tasks));\n}", "function saveData() {\n localStorage.removeItem(\"tasks\");\n localStorage.setItem(\"tasks\", JSON.stringify(taskList));\n}", "function save() {\n localStorage.setItem(LOCAL_STORAGE_KEY, JSON.stringify(task...
[ "0.80102664", "0.8005519", "0.80019695", "0.7997637", "0.798186", "0.798024", "0.7974998", "0.79747814", "0.79719967", "0.79354775", "0.7916928", "0.7914545", "0.7863366", "0.78367144", "0.78229827", "0.7800756", "0.77998656", "0.7787533", "0.7773403", "0.7759663", "0.7758835...
0.8468155
0
Function to show most recently completed task
function recentlyCompleted() { if($('#tasks-completed li').length >= 1) { var recentlyCompleted = $( "#tasks-completed li:first-child span.task-name" ).text(); $('#recently-complete').text('Recently completed task: ' + recentlyCompleted); } else { $('#recently-complete').text(''); } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function displayTask() {\n if (tasks.length != 0) { \n if (tasks.length == 1 && (tasks[0] == \"Min\" || tasks[0] == \"Max\")) {\n panel.refreshTask('Delete ' + tasks[0] + ' again');\n } else {\n panel.refreshTask('Delete ' + tasks[0]);\...
[ "0.68150365", "0.67559135", "0.6338306", "0.6186694", "0.6152542", "0.6063072", "0.60536087", "0.6044375", "0.60202754", "0.5995863", "0.59622717", "0.5923735", "0.59019417", "0.58858275", "0.58749825", "0.58548737", "0.58309644", "0.58173627", "0.5803797", "0.57962173", "0.5...
0.67928106
1
Asserts there has been exactly one Firestore update since last call.
function assertFirestoreUpdate() { const expectedCalls = callCount++; cyQueue( () => expect(updateDisasterSpy).to.have.callCount(expectedCalls)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function assertFirestoreUpdate() {\n const expectedCalls = callCount++;\n cy.wait(0).then(\n () => expect(updateDisasterSpy).to.have.callCount(expectedCalls));\n }", "function testPostUpdateState (cb) {\n d.find({}, function (err, docs) {\n var doc1 = _.find(docs, function (...
[ "0.77304655", "0.6206372", "0.5948906", "0.56476843", "0.55410326", "0.54893434", "0.52961975", "0.52173376", "0.52144593", "0.5208279", "0.51913965", "0.5178394", "0.5167465", "0.5158884", "0.51160157", "0.51046765", "0.50989777", "0.5064011", "0.50421673", "0.5039605", "0.5...
0.7630633
1
Asserts there has been exactly one Firestore update since last call.
function assertFirestoreUpdate() { const expectedCalls = callCount++; cy.wait(0).then( () => expect(updateDisasterSpy).to.have.callCount(expectedCalls)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function assertFirestoreUpdate() {\n const expectedCalls = callCount++;\n cyQueue(\n () => expect(updateDisasterSpy).to.have.callCount(expectedCalls));\n }", "function testPostUpdateState (cb) {\n d.find({}, function (err, docs) {\n var doc1 = _.find(docs, function (d) {...
[ "0.7631581", "0.6205408", "0.59479547", "0.5647661", "0.55408734", "0.54888177", "0.52973527", "0.5217796", "0.52154696", "0.5208847", "0.5191002", "0.5177249", "0.51662624", "0.51590264", "0.5114976", "0.5102736", "0.5098918", "0.50658375", "0.50421923", "0.50396234", "0.503...
0.77315724
0
Reference to the baked texture of the reflection probe&039;s surrounding.
get bakedTexture() {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get customBakedTexture() {}", "get texture() {}", "set bakedTexture(value) {}", "set customBakedTexture(value) {}", "get prototypeTexture() {}", "get texture() {return this._lastValidTexture.object;}", "getTargetTexture() {\n const {targetTexture} = this.bindings[this.currentIndex];...
[ "0.70827955", "0.67193216", "0.64305633", "0.63857234", "0.6169103", "0.6163696", "0.6096426", "0.60392505", "0.5994748", "0.57824075", "0.55711466", "0.5457913", "0.5453186", "0.5323972", "0.5298207", "0.52971864", "0.5280219", "0.5199031", "0.5175664", "0.5167682", "0.51277...
0.7265578
0
Distance around probe used for blending (used in deferred probes).
get blendDistance() {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "distance() {\n return this.speed * this.duration() / 3600000;\n }", "get shadowDistance() {}", "function dist() {\n let temp = Math.floor(\n findDistance(coord.lat, goal.lat, coord.long, goal.long)\n );\n\n return temp;\n }", "GetDistanceToPoint() {}", "getPixelPerMeter() {\n\t\tle...
[ "0.58016145", "0.57498896", "0.5699722", "0.5663911", "0.5655584", "0.5647649", "0.5623344", "0.55610025", "0.55096495", "0.55083305", "0.5505597", "0.55025", "0.5460591", "0.54321724", "0.5423276", "0.5408046", "0.53921056", "0.5378531", "0.5371674", "0.53663516", "0.5346097...
0.63005924
0
Should this reflection probe use box projection?
get boxProjection() {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "set boxProjection(value) {}", "testInnerRay(ray) {\n let dot = ray.t.dot(this.n);\n if (dot >= 0) {\n return null;\n }\n let len = ray.s.minus(this._a).dot(this.n);\n if (len < 0)\n return null;\n let p = ray.s.add(ray.t.mul(-len / dot));\n i...
[ "0.6748579", "0.564441", "0.56008625", "0.552115", "0.5479027", "0.54249614", "0.5331878", "0.53289574", "0.52589977", "0.51983124", "0.5179387", "0.5164422", "0.5164422", "0.5164422", "0.5132426", "0.51107335", "0.509229", "0.509229", "0.5087623", "0.50857955", "0.50783247",...
0.704075
0
Should this reflection probe use box projection?
set boxProjection(value) {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get boxProjection() {}", "testInnerRay(ray) {\n let dot = ray.t.dot(this.n);\n if (dot >= 0) {\n return null;\n }\n let len = ray.s.minus(this._a).dot(this.n);\n if (len < 0)\n return null;\n let p = ray.s.add(ray.t.mul(-len / dot));\n if (th...
[ "0.704075", "0.564441", "0.56008625", "0.552115", "0.5479027", "0.54249614", "0.5331878", "0.53289574", "0.52589977", "0.51983124", "0.5179387", "0.5164422", "0.5164422", "0.5164422", "0.5132426", "0.51107335", "0.509229", "0.509229", "0.5087623", "0.50857955", "0.50783247", ...
0.6748579
1
The center of the box area in which reflections will be applied to the objects. Measured in the probes&039;s local space.
get center() {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get Center() {}", "findCenter() {\n return {\n x: (this.right - this.left)/2 + this.left,\n y: (this.bottom - this.top)/2 + this.top\n };\n }", "get Center() { return [this.x1 + (0.5 * this.x2 - this.x1), this.y1 + (0.5 * this.y2 - this.y1)]; }", "get Center() { return [this.x1 + (0.5 * thi...
[ "0.67956465", "0.6654497", "0.6573654", "0.6573654", "0.65184927", "0.6476276", "0.6431353", "0.64255995", "0.64255995", "0.63618577", "0.6339451", "0.6289863", "0.6277171", "0.62325966", "0.6216166", "0.6164454", "0.61266935", "0.61265963", "0.6125346", "0.61133826", "0.6105...
0.676087
1
Reference to the baked texture of the reflection probe&039;s surrounding. Use this to assign custom reflection texture.
get customBakedTexture() {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "set customBakedTexture(value) {}", "get bakedTexture() {}", "set bakedTexture(value) {}", "get texture() {}", "set texture(value) {}", "get prototypeTexture() {}", "getTargetTexture() {\n const {targetTexture} = this.bindings[this.currentIndex];\n return targetTexture;\n }", "set prototypeText...
[ "0.71561337", "0.71009654", "0.67364126", "0.67330986", "0.6402117", "0.6390182", "0.6359429", "0.616232", "0.61284167", "0.60931623", "0.5912027", "0.5808373", "0.5699142", "0.56949073", "0.5484625", "0.5477338", "0.5419144", "0.53754514", "0.53381276", "0.53229135", "0.5313...
0.7419012
0
Reference to the baked texture of the reflection probe&039;s surrounding. Use this to assign custom reflection texture.
set customBakedTexture(value) {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get customBakedTexture() {}", "get bakedTexture() {}", "set bakedTexture(value) {}", "get texture() {}", "set texture(value) {}", "get prototypeTexture() {}", "getTargetTexture() {\n const {targetTexture} = this.bindings[this.currentIndex];\n return targetTexture;\n }", "set prototypeTexture(v...
[ "0.74183285", "0.7100536", "0.6734239", "0.6733221", "0.6400286", "0.6390492", "0.635971", "0.6160632", "0.6128191", "0.6093029", "0.59127134", "0.5808399", "0.5698852", "0.56925255", "0.5482143", "0.5476018", "0.5417811", "0.53731734", "0.53365934", "0.5321965", "0.53135157"...
0.71539265
1
The far clipping plane distance when rendering the probe.
get farClipPlane() {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get planeDistance() {}", "get nearClipPlane() {}", "get outlineDistance() {\n\t\treturn this.__Internal__Dont__Modify__.outlineDistance;\n\t}", "get drawHeight() {\n if (this._camera) {\n return this.scaledHeight / this._camera.z / this.pixelRatio;\n }\n return this.scaledHeig...
[ "0.6469134", "0.64521176", "0.5983025", "0.5836421", "0.57729244", "0.57206386", "0.56840897", "0.5653135", "0.56445694", "0.5596605", "0.55800426", "0.55469525", "0.5539708", "0.5533356", "0.55300367", "0.55139345", "0.55134", "0.5510711", "0.55052036", "0.5503583", "0.54734...
0.649671
0
The intensity modifier that is applied to the texture of reflection probe in the shader.
get intensity() {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "set intensity(value) {}", "intensity(val) {\n this._intensity = val;\n return this;\n }", "getRainIntensity(data) {\n var intensity;\n if (data.precipProbability === 0) {\n return '';\n }\n intensity = 'v. light';\n if (data.precipIntensity > 0.017) {\n intensity =...
[ "0.6514846", "0.6123762", "0.5661257", "0.56287163", "0.56066597", "0.5462491", "0.5346458", "0.5238062", "0.5219151", "0.5184885", "0.5184818", "0.5142407", "0.511715", "0.50913423", "0.50731426", "0.5067336", "0.5062229", "0.50607467", "0.5049724", "0.5026357", "0.50011504"...
0.696278
0
The intensity modifier that is applied to the texture of reflection probe in the shader.
set intensity(value) {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get intensity() {}", "intensity(val) {\n this._intensity = val;\n return this;\n }", "getRainIntensity(data) {\n var intensity;\n if (data.precipProbability === 0) {\n return '';\n }\n intensity = 'v. light';\n if (data.precipIntensity > 0.017) {\n intensity = 'lig...
[ "0.6963199", "0.61247325", "0.5661698", "0.5629789", "0.56057686", "0.546389", "0.53478235", "0.52393013", "0.52210844", "0.51859784", "0.5185512", "0.5142978", "0.5117213", "0.5090312", "0.5074019", "0.5067437", "0.5061804", "0.5060193", "0.5050885", "0.5026065", "0.50019854...
0.6515741
1
The near clipping plane distance when rendering the probe.
get nearClipPlane() {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get planeDistance() {}", "set nearClipPlane(value) {}", "function traveledDistance() {\n if (data.mousetrackingX !== undefined) {\n if (data.mousetrackingX.length === data.mousetrackingY.length) {\n return data.mousetrackingX.length;\n ...
[ "0.63286823", "0.6076302", "0.6055566", "0.596657", "0.58086056", "0.5750723", "0.5705141", "0.56890994", "0.56665176", "0.56139016", "0.5582821", "0.5556038", "0.55419576", "0.5533158", "0.55329204", "0.5522672", "0.55132437", "0.549765", "0.5477393", "0.5467972", "0.5467972...
0.71027
0
Sets the way the probe will refresh.See Also: ReflectionProbeRefreshMode.
set refreshMode(value) {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "recalibrate() {\n this.recalRequested = true;\n }", "function toggle_refresh()\n{\n refresh_con = refresh_con == 1 ? 0 : 1;\n $('refresh').innerHTML = refresh_con == 1 ? 'Refresh On' : 'Refresh Off';\n new Effect.Highlight( 'refresh', { duration: 3, endcolor: \"#2d2d2d\" } );\n}", "onPropertiesCha...
[ "0.5664736", "0.5526535", "0.5392078", "0.5335004", "0.5333492", "0.5264326", "0.52270454", "0.5218213", "0.5208774", "0.519372", "0.51814204", "0.51811814", "0.51649547", "0.51188123", "0.51188123", "0.50671667", "0.50371283", "0.5021944", "0.502182", "0.501046", "0.5004864"...
0.62260467
0
Shadow drawing distance when rendering the probe.
get shadowDistance() {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "set shadowDistance(value) {}", "function drawShadow(){\n shadowsize = (y/11);\n //x size is roughly double y size, hence shadowsize is halved for y\n ctx.drawImage(landershadow, x+2, canvas.height-25, shadowsize, (shadowsize/2.25));\n}", "function shadowExp()\n{\n kony.print(\"\\n**********in shadowE...
[ "0.728762", "0.68421155", "0.61667174", "0.58907264", "0.5667313", "0.5643355", "0.5624091", "0.55825794", "0.5580875", "0.54918", "0.5461224", "0.5458555", "0.5412514", "0.5380551", "0.53742296", "0.53555566", "0.5352776", "0.53504926", "0.5332036", "0.53215075", "0.528988",...
0.765425
0
Shadow drawing distance when rendering the probe.
set shadowDistance(value) {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get shadowDistance() {}", "function drawShadow(){\n shadowsize = (y/11);\n //x size is roughly double y size, hence shadowsize is halved for y\n ctx.drawImage(landershadow, x+2, canvas.height-25, shadowsize, (shadowsize/2.25));\n}", "function shadowExp()\n{\n kony.print(\"\\n**********in shadowExp***...
[ "0.765425", "0.68421155", "0.61667174", "0.58907264", "0.5667313", "0.5643355", "0.5624091", "0.55825794", "0.5580875", "0.54918", "0.5461224", "0.5458555", "0.5412514", "0.5380551", "0.53742296", "0.53555566", "0.5352776", "0.53504926", "0.5332036", "0.53215075", "0.528988",...
0.728762
1
Texture which is passed to the shader of the objects in the vicinity of the reflection probe (Read Only).
get texture() {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "set texture(value) {}", "get prototypeTexture() {}", "get texture() {\n return textureAsset.getGFXTexture();\n }", "get bakedTexture() {}", "get texture() {\n return this.texture_;\n }", "getTargetTexture() {\n const {targetTexture} = this.bindings[this.currentIndex];\n...
[ "0.6656147", "0.6550374", "0.64268935", "0.6356155", "0.6306783", "0.623099", "0.62167555", "0.62123364", "0.62087226", "0.62069577", "0.6184253", "0.61581916", "0.6137351", "0.6119762", "0.6057649", "0.6022797", "0.5983089", "0.59822714", "0.5950509", "0.5937064", "0.5922584...
0.7122814
0
Texture which is passed to the shader of the objects in the vicinity of the reflection probe (Read Only).
set texture(value) {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get texture() {}", "get prototypeTexture() {}", "get texture() {\n return textureAsset.getGFXTexture();\n }", "get bakedTexture() {}", "get texture() {\n return this.texture_;\n }", "getTargetTexture() {\n const {targetTexture} = this.bindings[this.currentIndex];\n r...
[ "0.7121569", "0.6549523", "0.6425819", "0.6355149", "0.6305589", "0.62293273", "0.6216646", "0.62132245", "0.62076104", "0.620536", "0.6183756", "0.6156802", "0.6136919", "0.6118249", "0.6057281", "0.6020891", "0.59832245", "0.59820056", "0.59493434", "0.5935844", "0.5922201"...
0.66553813
1
Sets this probe timeslicing modeSee Also: ReflectionProbeTimeSlicingMode.
get timeSlicingMode() {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "set timeSlicingMode(value) {}", "scale( timeScale ) {\n\n\t\tif ( timeScale !== 1.0 ) {\n\n\t\t\tconst times = this.times;\n\n\t\t\tfor ( let i = 0, n = times.length; i !== n; ++ i ) {\n\n\t\t\t\ttimes[ i ] *= timeScale;\n\n\t\t\t}\n\n\t\t}\n\n\t\treturn this;\n\n\t}", "scale( timeScale ) {\n\n\t\tif ( timeSca...
[ "0.7416406", "0.45747975", "0.45747975", "0.44776368", "0.44626918", "0.44591495", "0.44175005", "0.4402908", "0.43845892", "0.43838814", "0.43543202", "0.4345952", "0.43245044", "0.4292523", "0.42701298", "0.42685196", "0.42685196", "0.41844907", "0.4178826", "0.4174385", "0...
0.64971536
1
Sets this probe timeslicing modeSee Also: ReflectionProbeTimeSlicingMode.
set timeSlicingMode(value) {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get timeSlicingMode() {}", "scale( timeScale ) {\n\n\t\tif ( timeScale !== 1.0 ) {\n\n\t\t\tconst times = this.times;\n\n\t\t\tfor ( let i = 0, n = times.length; i !== n; ++ i ) {\n\n\t\t\t\ttimes[ i ] *= timeScale;\n\n\t\t\t}\n\n\t\t}\n\n\t\treturn this;\n\n\t}", "scale( timeScale ) {\n\n\t\tif ( timeScale !=...
[ "0.6494952", "0.45739418", "0.45739418", "0.44790643", "0.4464577", "0.44599307", "0.44183895", "0.44048345", "0.43864647", "0.43829128", "0.43561602", "0.43443972", "0.432905", "0.42957366", "0.42722145", "0.4272021", "0.4272021", "0.41874307", "0.41833487", "0.41745895", "0...
0.7415586
0
Checks if a probe has finished a timesliced render.
IsFinishedRendering() {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "_checkIfComplete() {\n\n\t\tif(this._matchedCards === this.rows*this.cols) {\n\n\t\t\t// Delay for the animations\n\t\t\tsetTimeout(() => {\n\n\t\t\t\talert(`You have scored ${this._score} points`);\n\n\t\t\t\tclearInterval(this._timer);\n\n\t\t\t\tthis.initGame();\n\t\t\t}, 400);\n\t\t}\n\t}", "isFinished (){\n...
[ "0.6434865", "0.61926115", "0.6117266", "0.6112615", "0.60928637", "0.60928637", "0.6086681", "0.6080972", "0.60749286", "0.6045608", "0.59833187", "0.59833187", "0.59833187", "0.59833187", "0.59833187", "0.59833187", "0.59833187", "0.59833187", "0.59833187", "0.59833187", "0...
0.70569885
0
generateLandColor checks the argument objects key: values to return a string value for a background color conditionals check for starting point (home), discovered status, and land type
function generateLandColor(arg) { if (arg.land_type === 'forest' && arg.discovered) { return '#005000' } else if (arg.land_type === 'plains' && arg.discovered) { return '#779e27' } else if (arg.land_type === 'mountains' && arg.discovered) { return '#8694a1' } else if ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getColor(land) {\n while (true) {\n var r = Math.floor(Math.random() * 256) + 1\n var g = Math.floor(Math.random() * 256) + 1\n var b = Math.floor(Math.random() * 256) + 1\n hsp = Math.sqrt(\n 0.299 * (r * r) +\n 0.587 * (g *...
[ "0.64930844", "0.63040906", "0.563691", "0.55755174", "0.5570232", "0.5557693", "0.5512309", "0.5498374", "0.54926354", "0.5486537", "0.54752666", "0.5473787", "0.54709595", "0.5442448", "0.5426467", "0.54168504", "0.5414333", "0.53957206", "0.5386422", "0.53840107", "0.53716...
0.79706955
0
Adding components to the game (ie.airplane and score).
function startGame() { // Controls the size and position of the components. Makes game piece into an image. myGamePiece = new component(100, 30, "Pictures/green airplane.png", 500, 140, "image"); // Image by Clker-Free-Vector-Images https://pixabay.com/vectors/airplane-plane-transportation-303563/ mySco...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function main() {\n //add field object to stage\n field = new objects.Field(assets.getResult(\"field\"));\n stage.addChild(field);\n //add ball object to stage\n ball = new objects.Ball(assets.getResult(\"ball\"));\n stage.addChild(ball);\n // add player object to stage\n player = new objec...
[ "0.63050693", "0.6177481", "0.597377", "0.5860274", "0.5852552", "0.5845836", "0.5836872", "0.5811675", "0.57272583", "0.57205844", "0.56991065", "0.5696297", "0.5694972", "0.5689614", "0.5688687", "0.5670309", "0.5654906", "0.5643647", "0.5635047", "0.5619037", "0.561182", ...
0.700696
0
Factory method to create a DigitalMachine object
static createInstance(machineId,manufactuer,countryOfManufacturing,manufacturedDateTime,lifeSpan,supplier,suppliermspid, expiryDateTime,faceValue) { return new DigitalMachine( {machineId,manufactuer,countryOfManufacturing,manufacturedDateTime,lifeSpan,supplier,suppliermspid, expiryDateTime,faceValue} ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function VMFactory() {}", "function VehicleFactory() {}", "function VehicleFactory() {}", "function VehicleFactory() {}", "function VehicleFactory() { }", "function VehicleFactory() { }", "function makeComputer(maker, Processor, Ram, HardDisc) {\n return {\n\t\tmaker : maker,\n\t\tProcessor : Proces...
[ "0.5930239", "0.58623207", "0.58623207", "0.58623207", "0.5848054", "0.5848054", "0.57969344", "0.57530355", "0.5730522", "0.56703794", "0.5583939", "0.5580881", "0.5580881", "0.5553937", "0.5494214", "0.5468449", "0.5468449", "0.5382446", "0.5368283", "0.5368283", "0.5357169...
0.76245666
0
dispatch event on click of delete button
onDeleteBtnClick() { this._deleteTodoBtn.addEventListener('click', () => { this.dispatchEvent(new CustomEvent('deleteTodo', { bubbles: true })); }) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function deleteHandler() {\n console.log(\"clicked delete button in tasks\");\n deleteTask($(this).data(\"id\"))\n} // end deleteHandler", "onDeleteEvent(e){ \n let event = new CustomEvent('eventremoved', {\n bubbles: true, \n detail: {\n deleted:true, \n ...
[ "0.7765188", "0.77392024", "0.7680642", "0.7626358", "0.75356597", "0.739766", "0.73840183", "0.7375109", "0.7344694", "0.7334085", "0.73311174", "0.73288155", "0.72957736", "0.7294476", "0.7258596", "0.72567993", "0.7244753", "0.72146475", "0.7211462", "0.7203306", "0.719702...
0.7893263
0
dispatch event on click of complete button
onCompleteBtnClick() { this._completeTodoBtn.addEventListener('click', () => { this.dispatchEvent(new CustomEvent('toggleCompleted', { bubbles: true })); }) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function onCompletedClick() {\n console.log(\"Clicked!\");\n console.log('Hello');\n}", "complete () {\n this.detailBox.innerHTML = 'Click to begin'\n this.container.addEventListener('click', this.begin.bind(this))\n }", "function actionCompleted () {\n\n\talert('Completed');\n}", "function done...
[ "0.6786625", "0.6752431", "0.6310192", "0.6258012", "0.62389445", "0.6229899", "0.6208531", "0.61948586", "0.61823976", "0.61817", "0.6128179", "0.6126189", "0.6115366", "0.6115258", "0.6097734", "0.6065481", "0.6059994", "0.60581595", "0.60537636", "0.60455805", "0.6042501",...
0.7711721
0
Change the query to use the current datasets and genes
function setQuery(genes, group, datasets){ // Update the text area genesList.val(genes.join("\n")); // Uncheck all checkboxes in the multiselect, // then check the datasets with the given IDs if (datasets.length == 0){ datasets = Object.keys(publicGroupToDatasets[group]); } var dataset_ids = datasets...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function useSelectedDataset() {\n let modUrl = \"/models-for-dataset?dataset=\" + getSelectedDatasetName();\n let imgUrl = \"/dataset-details?dataset=\" + getSelectedDatasetName();\n\n populateModels(modUrl);\n populateStaticImages(imgUrl);\n}", "function runChartQuery() {\n var go = [{\n ...
[ "0.57340837", "0.5686882", "0.55945504", "0.5523722", "0.5479915", "0.5339983", "0.5338128", "0.52880615", "0.5217914", "0.5208167", "0.5167052", "0.516108", "0.51203096", "0.5104779", "0.5091961", "0.50647235", "0.5064486", "0.50426984", "0.5042344", "0.50095916", "0.4995938...
0.6247539
0
Function to process MCQ data
function mcqProcessing(mcqData) { // { // type: "MCQ", // options: ["England", "Australia", "UAE", "Malaysia"], // responses: ["England" , "Norway", "England", "France", "England", "Malaysia", "UAE"] // }, //document.write(mcqData.type, "<br><br>"); const mcqOptions = mcqData.o...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function MQTT_Process_Data(feedbackItem, matchedString) {\r\n\tCF.log(\"Receieved MQTT packet: \"+ matchedString + \" Started with: \" + matchedString.charCodeAt(0) + \" Length: \" + matchedString.length);\r\n\t// Append new message(s) to queue\r\n\tmessage_queue = message_queue + matchedString;\r\n\tCF.log(\"Mess...
[ "0.64026934", "0.5638412", "0.5605055", "0.55904096", "0.55706304", "0.5560711", "0.55311567", "0.5507246", "0.5397834", "0.5396196", "0.5353202", "0.53290594", "0.5315897", "0.5308166", "0.5296068", "0.52917206", "0.5280176", "0.5279465", "0.5260649", "0.5244781", "0.5219015...
0.5771257
1
Function for processing checkbox data
function checkboxProcessing(cbData) { // { // type: "CHECKBOX", // options: ["Dairy milk", "Five star", "Milky bar", "Munch", "KitKat"], // responses: [["Five star", "Milky bar", "Munch", "KitKat"], // ["KitKat"], // ["Five star", "Milky bar", "Munch", "KitKat...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function CheckBox_GetData()\n{\n\t//create an array for the result and return it with our value\n\treturn new Array(this.InterpreterObject.Properties[__NEMESIS_PROPERTY_CHECKED]);\n}", "handleCheckbox(elem) {\n\n this.filtering[elem.id] = elem.checked;\n\n this.dashboard.updateChart()\n }", "f...
[ "0.65782994", "0.6514172", "0.64951515", "0.6485666", "0.64443594", "0.6422566", "0.64216506", "0.6405183", "0.6380487", "0.6333795", "0.6330264", "0.6309538", "0.6298967", "0.6232485", "0.6228747", "0.6208295", "0.6204558", "0.6194831", "0.61924386", "0.6189607", "0.61682266...
0.65549874
1
Async function that invokes a callback with a count representing the number of times a given `walkFn` will reach a node
function countInvocations(walkFn, lessCode, callback) { less.parse(lessCode, function(err, ast) { if (err) { return callback(err); } var count = 0; walkFn(ast, function(node, depth, done) { // For each node traversed, increase count by 1 count++; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "length() {\n let count = 0;\n\n this.traverse(function (node) {\n count++;\n console.log('current count is ' + count);\n });\n\n return count;\n }", "function waitForChildren(number, callback){\n var waitingFor = number;\n\n function countOne(){\n waitingFor--;\n if(waiting...
[ "0.59423935", "0.58464295", "0.5832915", "0.5832915", "0.5832915", "0.55681825", "0.55591774", "0.5553762", "0.55392236", "0.54539686", "0.5420375", "0.5351588", "0.5314258", "0.5307379", "0.530263", "0.5299657", "0.5275063", "0.5275063", "0.5269103", "0.52623445", "0.5208844...
0.675245
0
get the part of the day
function dayPart(oDate) { var theHour = oDate.getHours(); if (theHour < 6) return "wee hours"; if (theHour < 12) return "morning"; if (theHour < 18) return "afternoon"; return "evening"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getDay(){\n\treturn day;\n}", "d (date) {\n return date.getDay()\n }", "function getDay() {\n return ''+ this._day.getDay();\n }", "function getDateProg(time) {\n\n var jour = time.start[0].substr(6, 2);\n var mois = time.start[0].substr(4, 2);\n\n return jour + '/' + mois;\n\n}...
[ "0.6913098", "0.67396826", "0.67316985", "0.6694461", "0.66239965", "0.65740186", "0.6542855", "0.65379477", "0.65057135", "0.64363724", "0.6423953", "0.64205515", "0.6399414", "0.6339373", "0.63299584", "0.6310404", "0.61947584", "0.6161346", "0.6112455", "0.6101593", "0.608...
0.7503941
0
Initialize the targets and reset the balls
function initTargets(){ centerList = []; targetVertices = []; ballVertices=[]; ballUVs = []; velocities = []; ballIndex = 0; for(var x = 0; x < maxNumTargets; x++){ //Set to random position let randomX = Math.random() - Math.random(); let randomY = Math.random() - Math.random(); let random...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function resetBalls() {\r\n positionArray = [];\r\n velocityArray = [];\r\n radiusArray = [];\r\n colorArray = [];\r\n}", "resetBowlingpositions(){\n\t\tthis.bowler.setPosition(config.width * 0.55, config.height * 0.39);\n\t\tthis.ball.setAlpha(0);\n\t\tthis.ball.setScale(0.2);\n\t\tthis.bowlingStart...
[ "0.74768835", "0.67267513", "0.6590401", "0.65205336", "0.65175426", "0.6516638", "0.6513832", "0.6473402", "0.6469684", "0.646919", "0.6377826", "0.6310804", "0.62335277", "0.62308544", "0.62204325", "0.62120646", "0.619156", "0.61893255", "0.6159228", "0.61469465", "0.60628...
0.7264373
1
Constructs a new AuditSearchRequest. Request for searching audits
constructor() { AuditSearchRequest.initialize(this); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "construct(inSearchRequest : ISOClaimSearchRequest, inExposure : Exposure) {\n super(inSearchRequest, inExposure)\n }", "function create_search_req(petFinder_auth, user_input, res){\n\tlet query = querystring.stringify({//convert from js obj to query string\n\t\ttype:`${user_input.animals}`\n\t});\n\tlet acce...
[ "0.6415811", "0.6177824", "0.58909506", "0.5868356", "0.58675843", "0.5866068", "0.5844683", "0.58161354", "0.5808667", "0.5688326", "0.5571544", "0.55553", "0.5499968", "0.5487516", "0.538539", "0.5359976", "0.53246254", "0.5316952", "0.5259397", "0.5238464", "0.5222728", ...
0.71241647
0
Insert a trade into a list of trades according to date.
function tradeInsertion(trade, tradeList) { //insert new trade into new trade list at the first position where a date //is <= this trade date. for(var i=tradeList.length-1; i>=0; i--) { if(tradeList[i].exitDate.getTime() <= trade.exitDate.getTime()) { //Insert tradeList.splice(i+1, 0, trade); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function addTransaction(date, amount) {\n transactions.set(date, amount);\n}", "function addTransactions(date, amount, transactions) {\n\ttransactions[date]= amount;\n\tconsole.log(` ${transactions}`);\n}", "function addTransaction(date, amount) {\n transactions.set(date, amount)\n \n console.log(transacti...
[ "0.6099695", "0.56192183", "0.54976606", "0.5320738", "0.5214864", "0.5197269", "0.5069722", "0.5027092", "0.47896641", "0.47636634", "0.4755771", "0.47179654", "0.46961802", "0.46837944", "0.46679103", "0.46627408", "0.45961878", "0.45627815", "0.45548394", "0.45311564", "0....
0.7495356
0
Rebuild Stats Tab List
function rebuildStats (){ var statsListUL = $('#statsList'); var statsDtl; var statsUL; var statsLI; var saveGroup; var statBegDtMoment; var statEndDtMoment; initToolTipster(); statsListUL.empty(); if (stat.length == 0){ statsDtl = $("<li class='groupSection'></li>"); statsDtl.append(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function updateTab(tab) {\n var index = tab;\n $(\"#pokemon-title\").text(currentTeam.pokemon[index]);\n $(\"#pokemon-input\").val(currentTeam.pokemon[index]);\n $(\"#ability-input\").val(currentTeam.abilities[index]);\n $(\"#level-input\").val(currentTeam.levels[index]);\n $(\"#item-input\").val...
[ "0.6557413", "0.64558285", "0.6394682", "0.62416124", "0.62309396", "0.61619574", "0.61102", "0.60646594", "0.59839106", "0.597924", "0.59746885", "0.59230727", "0.5919488", "0.5906579", "0.59042937", "0.5886569", "0.5882712", "0.58760256", "0.58548844", "0.5831198", "0.58098...
0.65577155
0
Limits a given value between a lower and upper limit
function limitWithin( value, lowerLimit, upperLimit ) { if ( value > upperLimit ) { return upperLimit; } else if ( value < lowerLimit ) { return lowerLimit; } return value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "valueLimit(val, min=0, max=100) {\n return val < min ? min : (val > max ? max : val)\n }", "function limiter(v,min,max){\n var v = Math.min(Math.max(v, min), max);\n return v;\n}", "function clampBetween(value, lowerBound, upperBound) {\n let result;\n if ( value >= lowerBound && value <= upper...
[ "0.79518586", "0.7757406", "0.7729722", "0.7429545", "0.7422497", "0.733296", "0.7323599", "0.72869146", "0.72823083", "0.7272653", "0.7271317", "0.7271166", "0.7245134", "0.723836", "0.72366214", "0.7225488", "0.72195816", "0.71696615", "0.7168425", "0.7143585", "0.7139009",...
0.8113222
0
Adding new crust row when clicked + sign for crust
function addCrust() { var current = crusst; crusst++ if ($("a#addcrust-" + current + ".add-plus").length == 1) { $("#addcrust-" + current).remove(); $("#crustaction-" + current).append("<a id='removecrustrow-" + current + "' onclick='removecrust(this);' class='add-min'></a>"); } $(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function addRow() {\n}", "onAddClick() {\n var newRow = this.state.rows\n this.num = this.num + 1\n newRow = newRow.concat(<Row name={this.num}/>)\n this.setState(\n {\n rows: newRow\n }\n )\n }", "function addR() \n{\n\t//getting acces...
[ "0.6843981", "0.66986", "0.6678837", "0.66558987", "0.6652038", "0.6507477", "0.6489599", "0.64440346", "0.63409024", "0.6307958", "0.62778205", "0.6255206", "0.6249817", "0.6211178", "0.62079966", "0.6196449", "0.61855716", "0.6185245", "0.6162928", "0.6161705", "0.61582386"...
0.7659145
0
Rest all tax fields to 0 when clicked on Inclusive.
function resetFields() { $.each($("#taxdetailstable")[0].rows, function (index, value) { $.each(value.cells, function (index, value) { $.each(value.children, function (index, value) { if (value.type == "text") { value.value = 0; } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function verTax () {\n\t\t\tif (product.tax == 1){\n\t\t\t\t$scope.vistaTax = 'Iva Incluido';\n\t\t\t}\n\t\t\telse{\n\t\t\t\t$scope.vistaTax = product.tax;\n\t\t\t}\n\t\t}", "function unchecked_refund_items() {\n // change shipping cost\n jQuery('.refund_shipping_cost').val('');\n jQuery('.r...
[ "0.57605416", "0.5749394", "0.5664792", "0.56042975", "0.5497325", "0.54678863", "0.5453429", "0.54517716", "0.5441718", "0.5423611", "0.54142237", "0.5409883", "0.5337448", "0.53180254", "0.5314285", "0.53077966", "0.5295183", "0.5288915", "0.52553827", "0.5233899", "0.52194...
0.6326681
0
End of Auto populate taxes /////////////// Adding new Topping row when clicked + sign for Topping
function addTopping() { var current = topp; topp++ if ($("a#addrow-" + current + ".add-plus").length == 1) { $("#addrow-" + current).remove(); $("#topaction-" + current).append("<a id='removerow-" + current + "' onclick='removetopping(this);' class='add-min'></a>"); } $('<tr id="t...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function AddTaxChange(btnAdd, cellNum) {\n AddRow(btnAdd, cellNum);\n SumTotalTaxChange();\n}", "function DrawNewbussinesstripRow() {\n $('#dtBusinessTrip').DataTable().row.add([\n $('#drpName').val(),\n 'Senior',\n $('#txtOfferDays').val(),\n $('#txtOfferAmountperday').val()...
[ "0.6748445", "0.5949445", "0.58959466", "0.5836445", "0.56951946", "0.56940055", "0.56839335", "0.5665659", "0.56639796", "0.558455", "0.55674887", "0.55574214", "0.5546565", "0.5544974", "0.55173695", "0.55163413", "0.55163413", "0.55080235", "0.548564", "0.5484771", "0.5469...
0.72925425
0
This method will initialize the Category class Input : none Output : initialized
function Category(){ console.log("Initialize Category Class"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "init() {\n this.category = this.inputs.getProp('category');\n }", "constructor() {\n\t\tthis.categories = [];\n\t}", "function JAFTING_Category() { this.initialize(...arguments); }", "constructor() {\n /**\n * Array of subcategories. Can be empty.\n * @member {Array.<module:mod...
[ "0.77150667", "0.7451392", "0.7390957", "0.7188726", "0.714612", "0.7074984", "0.7049358", "0.6806322", "0.6749926", "0.67321974", "0.667202", "0.65633315", "0.6560347", "0.6407581", "0.6367806", "0.6350303", "0.628766", "0.6273707", "0.6219111", "0.6108685", "0.61022484", ...
0.75298005
1
This function creates hours and gives them 'am' or 'pm'.
function hours(hour){ if (hour == 0){ hour = '12am' } else if (hour < 12){ hour = hour + 'am' } else if (hour == 12){ hour = '12pm' } else { hour = (hour - 12) + 'pm' } return hour }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function am_pm(h)\n{\n with (Math) {\n var hours, minutes, ampm, result=\"\";\n hours = floor(h);\n minutes = floor((h - hours) * 60 + 0.5);\n if (minutes == 60)\n {\n hours += 1;\n minutes = 0;\n }\n\n if (hours > 11)\n {\n ...
[ "0.7331637", "0.7209454", "0.706311", "0.7059181", "0.70101225", "0.69942176", "0.6975424", "0.6974398", "0.6837569", "0.68293446", "0.6808681", "0.6797545", "0.67956114", "0.67556846", "0.67201257", "0.67164046", "0.67164046", "0.6670237", "0.6670009", "0.66492456", "0.66473...
0.72983944
1
This function generates the number of cookies per hour
function GenStoreCookies(stores){ for (var i = 0; i < 15; i++){ var cookiesPerHour = Math.floor(stores.avgCookies * getRandomInt(stores.min,stores.max)); stores.numOfCookies.push(cookiesPerHour); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function perHour(store){\n for(var i = 1; i <= store.hoursOpen.length; i++){\n store.cookiePerHour.push(randomCust(store.custMin, store.custMax) * Math.floor(store.avgCookie));\n };\n console.log(store.cookiePerHour);\n // return store.cookiePerHour;\n}", "function count_all_cookies() {\n chrome.cookie...
[ "0.67017084", "0.6319965", "0.6262996", "0.6090947", "0.6030592", "0.59339494", "0.588223", "0.57342994", "0.56010675", "0.5574082", "0.55085915", "0.5483272", "0.5469441", "0.5464603", "0.54602623", "0.5456263", "0.5435276", "0.542439", "0.5401866", "0.5396836", "0.53883195"...
0.7420781
0
This creates the totals row.
function totalsRowCreate(){ var tfoot= document.getElementsByTagName('tfoot')[0]; while (tfoot.firstChild){ tfoot.removeChild(tfoot.firstChild) }; var tr = document.createElement('tr'); var td = document.createElement('td'); var txt = document.createTextNode('Totals'); td.appendChild(txt); tr.append...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function makeTotalRow(tableElement){\n //compute total per hour of all locations\n hourlyTotal = calculateHourlyTotal();\n //add total\n tableElement.append(makeTableRow('Totals', hourlyTotal, getSum(hourlyTotal) ));\n}", "function totals_row_maker(datasets) {\n var total_cost = $scope.total_order...
[ "0.7610204", "0.75601393", "0.7353541", "0.7351328", "0.7281536", "0.7164735", "0.7106047", "0.70213175", "0.69897604", "0.6911742", "0.6875616", "0.6875314", "0.6860699", "0.68208927", "0.6779439", "0.67574066", "0.67258257", "0.67131305", "0.66880757", "0.6683757", "0.66755...
0.76214015
0
region: Helpers / Enable rootDirs merge support for require (used with tsnode)
function hookRequire() { if (rootDirs.length > 0) { const originalRequire = Module.prototype.require; Module.prototype.require = function (request) { if (!path.isAbsolute(request) && request.startsWith('.')) { const moduleDir = path.dirname(this.filename); const moduleRootDir = rootDirs...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function install(tree, options) {\n if (isObject(tree)) {\n fileMergeContents(root, tree, options);\n }\n return rootRequire;\n }", "function resolveRoot(root, runfiles) {\n return __awaiter(this, void 0, void 0, function* () {\n // create a node_modules directory if no...
[ "0.6166548", "0.58846605", "0.5683413", "0.55986845", "0.55470484", "0.5470638", "0.5453047", "0.5433944", "0.5421485", "0.5403883", "0.53788555", "0.5348442", "0.53270805", "0.53085256", "0.5300055", "0.5285119", "0.52758086", "0.52686316", "0.52118367", "0.5184135", "0.5181...
0.65611804
0
Returns the width of canvas
function width() { return canvas.width; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get width() {\n\t\treturn this._canvas.width;\n\t}", "get canvasWidth() {\n return this.canvas.width;\n }", "getWidth() {\n return this.canvas.width;\n }", "get width() { return this._.canvas.width; }", "get halfCanvasWidth() {\n return this.canvas.width / 2;\n }", "get width(){ r...
[ "0.8393092", "0.83772326", "0.8184759", "0.8110526", "0.7789737", "0.7769027", "0.76745254", "0.76089704", "0.75461704", "0.74204916", "0.7407398", "0.7217806", "0.72161233", "0.7125923", "0.7113819", "0.7094289", "0.7085806", "0.7046256", "0.70149326", "0.70087755", "0.69734...
0.9159077
0
Returns height of canvas
function height() { return canvas.height; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get canvasHeight() {\n return this.canvas.height;\n }", "get height() {\n\t\treturn this._canvas.height;\n\t}", "getHeight() {\n return this.canvas.height;\n }", "get halfCanvasHeight() {\n return this.canvas.height / 2;\n }", "get height(){ return this.Canvas.height }", "get draw...
[ "0.8336293", "0.8243901", "0.8027831", "0.7693636", "0.7607247", "0.75131965", "0.74169266", "0.724708", "0.7174772", "0.70894", "0.6946346", "0.694017", "0.6916913", "0.6913457", "0.6913347", "0.69057727", "0.69042134", "0.68785906", "0.6869837", "0.68695444", "0.68680835", ...
0.91176265
0
Tower Graphics Area Draws the attack area
function drawTowerRange(spec) { ctx.beginPath(); ctx.fillStyle = 'rgba(255, 0, 0, 0.1)'; // Red, Green, Blue, Alpha ctx.arc(spec.x, spec.y, spec.attackDistance, 0, 2*Math.PI); ctx.fill(); ctx.stroke(); ctx.closePath(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function draw() {\n\n// This is the colourful wall.\nbackground(bg.r,bg.g,bg.b);\n\n\nbg.r= map(mouseX,0, width,20,255);\nbg.r= map(mouseY,0, height,50,255);\nbg.g= map(mouseX,0, width,0,255);\nbg.b= map(mouseY,0, height,0,255);\n\n// This is the house perimeter.\nrectMode(CENTER);\nfill(house.fill.r, house.fill.g...
[ "0.66420287", "0.6528028", "0.6442054", "0.64394444", "0.6357113", "0.6283109", "0.62527686", "0.62264395", "0.6216673", "0.6204364", "0.6192029", "0.61814207", "0.6170312", "0.61659616", "0.6148064", "0.6128036", "0.61141056", "0.6108806", "0.6088197", "0.60780865", "0.60581...
0.6849971
0
For requiring js files while avoiding duplication
function requireJS(path){ var dataName = path.replace(/\W/g, ''); if(!$.hasData(document.body)||($.hasData(document.body)&&$.data(document.body, dataName)!=1)){ $.data(document.body, dataName, 1); $("html head").append('<script type="text/javascript" src="' + path + '"></script>'); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function require() { return {}; }", "function loadJS(path,name) {\n js[name] = fs.readFileSync(__dirname+path,\"utf8\")\n}", "function requires(src){\r\n\treturn (new AjaxJSLoader(src)).retrieve();\r\n}", "function fixImportScript(file){//{filename: STRING, src: STRING}\r\n\r\n\tvar fileName = file.filename...
[ "0.6375318", "0.63073295", "0.6297783", "0.62447906", "0.6208108", "0.6122894", "0.6122894", "0.6054277", "0.6041194", "0.6034735", "0.60296196", "0.59961504", "0.59769404", "0.5969511", "0.5957443", "0.59528345", "0.59473103", "0.5944647", "0.59399635", "0.59294516", "0.5929...
0.63076776
1
Get Success Status from Ajax JSON String
function getAjaxStatus(json){ var obj = $.parseJSON(json); return obj.success; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ajaxCompleted(ajax) {\n\tvar resp = JSON.parse(ajax.responseText);\n\tconsole.log(ajax.responseText);\n\tconsole.log(resp);\n\tvar stat = \"\";\n \n\tif (resp.status=='failed'){\n $(\"reg\").disabled = false;\n $(\"name\").style.backgroundColor = \"#98FB98\";\n\n }\n else{\n ...
[ "0.6828973", "0.65563923", "0.6537636", "0.65042454", "0.65042454", "0.6356436", "0.6275936", "0.6265395", "0.62551373", "0.6251838", "0.62045246", "0.6199523", "0.619118", "0.61769354", "0.6168302", "0.6136423", "0.6136318", "0.6096509", "0.60774916", "0.6025319", "0.6013167...
0.82020795
0
Get Failure Reason from Ajax JSON String
function getAjaxFailureReason(json){ if(getAjaxStatus(json)==true){ return false; }else{ var obj = $.parseJSON(json); return obj.reason; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ajaxFailed(json){\n $('body').html(json);\n}", "function getAjaxErr(xhr, txtStatus, errThrown) {\n console.log('error', xhr, txtStatus, errThrown);\n var errTxt = 'Error';\n if (xhr.responseText) {\n try {\n // JSON response is an explanation of the problem.\n //...
[ "0.67635083", "0.6688311", "0.66028106", "0.6454197", "0.6418174", "0.63996565", "0.6396591", "0.6393199", "0.63541806", "0.629447", "0.6268929", "0.6257373", "0.62399656", "0.62081087", "0.6187003", "0.6145369", "0.61373323", "0.61220205", "0.61220205", "0.61220205", "0.6119...
0.8248564
0
Get Data from Ajax JSON String
function getAjaxData(json){ if(getAjaxStatus(json)==false){ return false; }else{ var obj = $.parseJSON(json); return obj.data; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ajax_json_result(json,_var){\n\treturn json.match(/<data>(.+)<\\/data>/m)? json.match(/<data>(.+)<\\/data>/m)[1] : '';\t//filter json result\n}", "function getJson(data) {\n $.ajax({\n dataType: \"json\",\n url: dataUrl,\n success: function(data) {\n par...
[ "0.7047348", "0.67564106", "0.6598645", "0.65069115", "0.6467537", "0.64362466", "0.64234984", "0.6347825", "0.6311983", "0.6296", "0.6258074", "0.6241197", "0.6217904", "0.61891574", "0.6188926", "0.6135169", "0.61346257", "0.6122668", "0.6088955", "0.6083037", "0.60714066",...
0.6952753
1
is true when the client has already requested the server end points.
get knowsServerEndpoint() { return (this._serverEndpoints && this._serverEndpoints.length > 0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function isConnect() {\n return !needWait;\n }", "get hasKnownServers() {\n return Array.from(this.servers.values()).some(sd => sd.type !== ServerType.Unknown);\n }", "get hasKnownServers() {\n return Array.from(this.servers.values()).some(sd => sd.type !== ServerType.Unknown);\n }", "function ch...
[ "0.59546936", "0.58957636", "0.58957636", "0.5871455", "0.58569473", "0.58569473", "0.58444375", "0.57013726", "0.56994706", "0.56833124", "0.5637461", "0.5632702", "0.5603742", "0.5602011", "0.5550383", "0.55497015", "0.5537891", "0.5537891", "0.5537891", "0.5537891", "0.553...
0.72955155
0
return the endpoint information matching security mode and security policy.
findEndpointForSecurity(securityMode, securityPolicy) { securityMode = node_opcua_service_secure_channel_1.coerceMessageSecurityMode(securityMode); securityPolicy = node_opcua_secure_channel_1.coerceSecurityPolicy(securityPolicy); node_opcua_assert_1.assert(this.knowsServerEndpoint, "Server end ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "findEndpoint(endpointUrl, securityMode, securityPolicy) {\n node_opcua_assert_1.assert(this.knowsServerEndpoint, \"Server end point are not known yet\");\n if (!this._serverEndpoints || this._serverEndpoints.length === 0) {\n return undefined;\n }\n return _.find(this._server...
[ "0.6479317", "0.5825596", "0.5124372", "0.5124372", "0.5124372", "0.5055031", "0.50093293", "0.4987446", "0.48990867", "0.47960812", "0.47960812", "0.4756508", "0.46658766", "0.4656198", "0.4653203", "0.4643486", "0.46382937", "0.46382937", "0.46046668", "0.45906293", "0.4578...
0.7078893
0
return the endpoint information matching the specified url , security mode and security policy.
findEndpoint(endpointUrl, securityMode, securityPolicy) { node_opcua_assert_1.assert(this.knowsServerEndpoint, "Server end point are not known yet"); if (!this._serverEndpoints || this._serverEndpoints.length === 0) { return undefined; } return _.find(this._serverEndpoints, (...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "findEndpointForSecurity(securityMode, securityPolicy) {\n securityMode = node_opcua_service_secure_channel_1.coerceMessageSecurityMode(securityMode);\n securityPolicy = node_opcua_secure_channel_1.coerceSecurityPolicy(securityPolicy);\n node_opcua_assert_1.assert(this.knowsServerEndpoint, \"Se...
[ "0.6291263", "0.56007016", "0.51227427", "0.5109801", "0.5109801", "0.5109801", "0.5022445", "0.5017204", "0.49684152", "0.49562413", "0.49175507", "0.48954085", "0.48766273", "0.48737884", "0.48709553", "0.48485145", "0.48214078", "0.4814803", "0.48043397", "0.47683123", "0....
0.6644035
0
Ensures that component subscribes to Redux store updates. Any time Redux store is updated mapStateToProps is called. Function should return plain object. Resulting object is merged into component props. Therefore any time state changes, App component and all child components will get specified part of the state (state....
function mapStateToProps(state) { return state.accounts; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function mapStateToProps(state, ownProps) {\n return {\n accounts: state.accounts,\n drizzleStatus: state.drizzleStatus\n }\n}", "function mapStateToProps(state, ownProps) {\n return {\n accounts: state.accounts,\n drizzleStatus: state.drizzleStatus,\n }\n}", "function mapStateToProps(state) {\...
[ "0.62963647", "0.62579286", "0.6189444", "0.6053749", "0.5982737", "0.5945845", "0.58888584", "0.5836958", "0.581663", "0.57929397", "0.5781575", "0.5767995", "0.5727131", "0.5711507", "0.5697626", "0.5680017", "0.5677867", "0.5676501", "0.56735736", "0.5666492", "0.564565", ...
0.69486845
0
Returns an object that binds Redux dispatch to your application's actions. Each property on resulting object becomes an action creator. Object that is returned by mapDispatchToProps is merged into components props by Redux. Therefore actions could be triggered as this.props.fetchAccounts(). See
function mapDispatchToProps(dispatch) { return { fetchAccounts: () => dispatch(fetchAccounts()), }; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function mapDispatchToProps(dispatch) {\n return {\n actions: bindActionCreators({ ...authActions, ...globalActions }, dispatch),\n };\n}", "function mapDispatchToProps(dispatch) {\n return {\n actions: {\n Auth: bindActionCreators(AuthAction, dispatch),\n }\n }\n}", "functi...
[ "0.7297397", "0.7292298", "0.7292298", "0.7292298", "0.72743523", "0.7272051", "0.72496545", "0.72454274", "0.72454274", "0.72454274", "0.72065866", "0.71679056", "0.714478", "0.71422327", "0.71412385", "0.7132793", "0.7125255", "0.71248746", "0.7122833", "0.7105492", "0.7105...
0.79978365
0
Customer Files parameter example: &searchname=customerfiles&customer=4710
function customerfiles(request){ var customer = request.parameters.customer; var lookup = search.lookupFields({ type: search.Type.CUSTOMER, id: customer, columns: ['custentity_bb1_file_list_backup'] }); var file_list = lookup.custentity_bb1_file_list_backup; log.debug("","file list="+JSO...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "getFileRequestData (filters) {\n return client.get(\"/request/file/data\", {\n params: {\n filters: filters\n }\n }).then(response => response.data);\n }", "function browseFile(fieldToStoreURL, stripParameters)\r\n{\r\n var fileName = \"\";\r\n fileName = browseForFileURL(); //returns ...
[ "0.55947715", "0.54867953", "0.5385199", "0.52692086", "0.5261338", "0.51419127", "0.5134162", "0.51204866", "0.5050886", "0.5007252", "0.49530533", "0.48327863", "0.48255774", "0.47961274", "0.4779572", "0.47724968", "0.47521922", "0.4745228", "0.4729909", "0.47289273", "0.4...
0.76220965
0
Total Sales By Location Morrisons !!!!! OLD !!!!! customer 8073 Morrisons "parent" 8196 Morrisons Gadbrook Spend By Account (between two dates) Could put period and fleet filters on here too.
function total_sales_by_location_morrisons(request){ var searchname = request.parameters.searchname; var datefrom = request.parameters.datefrom; var datetill = request.parameters.datetill; var pagenumber = isnull(parseInt(request.parameters.pagenumber),0); var fleet = isnull(parseInt(request.paramete...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function total_sales_by_location(request){\n\n \t\tvar searchname = request.parameters.searchname;\n\t\t\tvar datefrom = request.parameters.datefrom;\n\t\t\tvar datetill = request.parameters.datetill;\n\t\t\tvar customer = request.parameters.customer;\n\t\t\tvar pagenumber = isnull(parseInt(request.parameters.p...
[ "0.6599147", "0.6007713", "0.5877663", "0.5771423", "0.57074964", "0.567904", "0.5670189", "0.563662", "0.5596895", "0.5527434", "0.55191475", "0.548762", "0.5470979", "0.54621404", "0.54551", "0.5425307", "0.5421636", "0.5421603", "0.5409834", "0.54042846", "0.5388825", "0...
0.7973655
0
Total Sales by Location Spend By Account (between two dates) Could put period and fleet filters on here too. customer 8073 Morrisons "parent" 8196 Morrisons Gadbrook, 848 Dixon
function total_sales_by_location(request){ var searchname = request.parameters.searchname; var datefrom = request.parameters.datefrom; var datetill = request.parameters.datetill; var customer = request.parameters.customer; var pagenumber = isnull(parseInt(request.parameters.pagenumber),0); //fleet ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function total_sales_by_location_morrisons(request){\n\n \t\tvar searchname = request.parameters.searchname;\n\t\t\tvar datefrom = request.parameters.datefrom;\n\t\t\tvar datetill = request.parameters.datetill;\n\t\t\tvar pagenumber = isnull(parseInt(request.parameters.pagenumber),0);\n\t\t\tvar fleet = isnull(...
[ "0.748416", "0.6277501", "0.6211932", "0.60023284", "0.5917666", "0.57634836", "0.57249093", "0.56959784", "0.56696975", "0.56424874", "0.56340384", "0.56284255", "0.5472335", "0.5466256", "0.54419565", "0.54394096", "0.5422577", "0.5417617", "0.5413656", "0.53938615", "0.539...
0.72833216
1
Top Parts by Value customer 8073 Morrisons "parent" 8196 Morrisons Gadbrook, 848 Dixon
function top_parts_by_value(request){ //var searchObj = search.load({id: 'customsearch1428'}); var searchname = request.parameters.searchname; var datefrom = request.parameters.datefrom; var datetill = request.parameters.datetill; var pagenumber = isnull(parseInt(request.parameters.pagenumber),0); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function top_parts_by_quantity(request){\n\n\t\t\t//var searchObj = search.load({id: 'customsearch1428'});\n\t\t\tvar searchname = request.parameters.searchname;\n\t\t\tvar datefrom = request.parameters.datefrom;\n\t\t\tvar datetill = request.parameters.datetill;\n\t\t\tvar pagenumber = isnull(parseInt(request.par...
[ "0.6540091", "0.5611754", "0.5192512", "0.51690423", "0.5136153", "0.5107985", "0.5086292", "0.50501955", "0.50053704", "0.49866167", "0.49855426", "0.4947865", "0.49134615", "0.49117818", "0.48497412", "0.48441258", "0.48285216", "0.4811643", "0.48084658", "0.47896126", "0.4...
0.70202506
0
Top Parts Summary by Quantity customer 8073 Morrisons "parent" 8196 Morrisons Gadbrook, 848 Dixon
function top_parts_by_quantity(request){ //var searchObj = search.load({id: 'customsearch1428'}); var searchname = request.parameters.searchname; var datefrom = request.parameters.datefrom; var datetill = request.parameters.datetill; var pagenumber = isnull(parseInt(request.parameters.pagenumber),0); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function morrisons_top_parts_by_quantity_OLD(request){\n\n\t\t\tvar result1 = [];\n\t\t\tvar entitySearchObj = search.load({id: 'customsearch1429'});\n\t\t\tvar searchResultCount = entitySearchObj.runPaged().count;\n\t\t\tlog.debug(\"entitySearchObj result count\",\"entitySearchObj result count:\"+searchResultCoun...
[ "0.6369931", "0.6226327", "0.5608935", "0.52423406", "0.5212387", "0.5183109", "0.5164828", "0.5150483", "0.5130558", "0.512517", "0.5123947", "0.50795853", "0.5032728", "0.5013399", "0.50108165", "0.49874574", "0.4966946", "0.49466294", "0.4925934", "0.49203226", "0.4915979"...
0.714139
0
Morrisons Top Parts Summary by Quantity !!!!!!!!!!!!!! OLD !!!!!!!!!!!!!
function morrisons_top_parts_by_quantity_OLD(request){ var result1 = []; var entitySearchObj = search.load({id: 'customsearch1429'}); var searchResultCount = entitySearchObj.runPaged().count; log.debug("entitySearchObj result count","entitySearchObj result count:"+searchResultCount); var searchResult =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function totalOrder() {\n var salePriceTotal = 0,\n laborPriceTotal = 0,\n shopSupplies = 0,\n hazardMaterials = 0,\n taxableAmount = 0,\n extras = 0,\n SHOP_SUPPLIES_CAP = 19.73,\n HAZARD_MATERIALS_...
[ "0.6330781", "0.6091367", "0.600275", "0.589668", "0.588762", "0.5605868", "0.55964494", "0.5568243", "0.5535065", "0.5527654", "0.55152535", "0.54996365", "0.54672", "0.5466018", "0.54620147", "0.5461639", "0.5451511", "0.5400708", "0.54001004", "0.5386982", "0.5381205", "...
0.6962798
0
Parse a raw version response from an APM repo
function parseApmVersionReturn(res) { return { version: res.semanticVersion.join('.'), contractAddress: res.contractAddress, // toUtf8String(, true) to ignore UTF8 errors parsing and let downstream // components identify faulty content URIs contentUri: ethers_1.ethers.utils.t...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "_parseVersion() {\n if (this.packageJsonContent) {\n if (!this.packageJsonContent.hasOwnProperty('version')) {\n throw (new Error('Cannot find property \"version in package.json\"'))\n }\n\n const parts = this.packageJsonContent.version.split('.')\n ...
[ "0.60306495", "0.59976304", "0.5820642", "0.5764572", "0.56378394", "0.55775756", "0.55751073", "0.55746996", "0.5491419", "0.5488697", "0.5410264", "0.5410264", "0.5410264", "0.5410264", "0.5396331", "0.5396331", "0.5396331", "0.53763247", "0.53673875", "0.5366932", "0.53484...
0.6951524
0
Return a semantic version string into the APM version array format
function toApmVersionArray(version) { const semverObj = semver_1.default.parse(version); if (!semverObj) throw Error(`Invalid semver ${version}`); return [semverObj.major, semverObj.minor, semverObj.patch]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function parseSemver(input) {\n var match = input.match(SEMVER_REGEXP) || [];\n var major = parseInt(match[1], 10);\n var minor = parseInt(match[2], 10);\n var patch = parseInt(match[3], 10);\n return {\n buildmetadata: match[5],\n major: isNaN(major) ? undefined : major,\n mino...
[ "0.60059667", "0.60059667", "0.60059667", "0.5979925", "0.59656227", "0.5963306", "0.5890183", "0.5858417", "0.5641124", "0.5622992", "0.56019", "0.5472754", "0.540197", "0.53265", "0.53194815", "0.53116006", "0.5305553", "0.5272818", "0.5250347", "0.5225877", "0.5190152", ...
0.7382553
0
Returns a joined IPFS location given an IPFS gateway and an IPFS path This util makes sure the url is properly joined, and that it contains the "ipfs" route only once, stripping it from the gateway and the location
function joinIpfsLocation(ipfsGateway, location) { return url_1.urlJoin(stipIpfsPrefix(ipfsGateway), 'ipfs', stipIpfsPrefix(location)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get locationPathName() {}", "function assembleQueryURL() {\n\n // Store the location of the truck in a variable called coordinates\n var coordinates = [truckLocation];\n var distributions = [];\n keepTrack = [truckLocation];\n\n // Create...
[ "0.5330953", "0.5274176", "0.51219213", "0.51210594", "0.51210594", "0.51210594", "0.5089206", "0.5089206", "0.5089206", "0.5089206", "0.5089206", "0.5089206", "0.5089206", "0.5089206", "0.5089206", "0.5089206", "0.5089206", "0.5089206", "0.5089206", "0.5089206", "0.5089206",...
0.7588507
0
Return a fetchable URL to get the resources of a contentURI
function contentUriToFetchUrl(contentUri, options) { if (!contentUri) throw Error(`contentUri is empty`); const [protocol, location] = contentUri.split(/[/:](.+)/); switch (protocol) { case 'http': case 'https': if (!location) throw Error(`contentUri locat...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "resource(fullUrl){\n //Pega o caminho da URL ou seja a string que vem após a porta e antes das querys\n //protocolo://domínio:porta/RECURSO/.../RECURSO?query_string#fragmento\n let parsedUrl = url.parse(fullUrl).pathname\n return parsedUrl\n }", "function getURI() {\n retu...
[ "0.58680576", "0.5812987", "0.57983506", "0.5641299", "0.5599224", "0.5504395", "0.54823065", "0.54823065", "0.54823065", "0.54823065", "0.54823065", "0.54823065", "0.54823065", "0.54823065", "0.54823065", "0.54823065", "0.54823065", "0.54823065", "0.54823065", "0.54823065", ...
0.60967344
0