Search is not available for this dataset
query
stringlengths
7
355k
document
stringlengths
9
341k
metadata
dict
negatives
listlengths
0
101
negative_scores
listlengths
0
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
Allow for default ports for http and https.
function isSamePort(protocol1, port1, protocol2, port2) { if (port1 === port2) { return true; } else if (protocol1 === protocol2) { if (protocol1 === 'http') { return useDefault(port1, '80') === useDefault(port2, '80'); } else if (protocol1 === 'https'...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function defaultPort(protocol) {\n return {'http:':80, 'https:':443}[protocol];\n }", "function defaultPort(protocol) {\n return {'http:':80, 'https:':443}[protocol];\n }", "function defaultPort(protocol) {\n return {'http:':80, 'https:':443}[protocol];\n }", "function defaultPort(protoc...
[ "0.7144659", "0.7144659", "0.7144659", "0.7144659", "0.7144659", "0.7144659", "0.7144659", "0.7144659", "0.7144659", "0.7144659", "0.7144659", "0.7144659", "0.7144659", "0.69693637", "0.640366", "0.640366", "0.640366", "0.640366", "0.640366", "0.62979347", "0.62979347", "0....
0.55507046
37
Easy API for creating new setFilters
function setFilters() {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setFilters(){}", "function setFilters(){}", "function setFilters(){}", "function setFilters(){}", "function setFilters(){}", "function setFilters(){}", "function setFilters(){}", "function setFilters(){}", "function setFilters(){}" ]
[ "0.8424095", "0.8424095", "0.8424095", "0.8424095", "0.8424095", "0.8424095", "0.8424095", "0.8424095", "0.8424095" ]
0.0
-1
Implement the identical functionality for filter and not
function winnow( elements, qualifier, not ) { if ( jQuery.isFunction( qualifier ) ) { return jQuery.grep( elements, function( elem, i ) { return !!qualifier.call( elem, i, elem ) !== not; } ); } // Single element if ( qualifier.nodeType ) { return jQuery.grep( elements, function( elem ) { return ( elem...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "filter() {\n\t}", "filter() {\n\t}", "function filter() {\n \n}", "function filterFunction() {\n \n}", "function Nothing$prototype$filter(pred) {\n return this;\n }", "removeAllFilters() {}", "function noFilter(filterObj) {\n return Object.\n keys(filterObj).\n ...
[ "0.7414202", "0.7414202", "0.7190614", "0.68605345", "0.67637694", "0.6652279", "0.6458428", "0.6458428", "0.6458428", "0.6458428", "0.62949085", "0.62917763", "0.6256145", "0.62463313", "0.6206256", "0.61977714", "0.61925614", "0.61901116", "0.6183571", "0.6165225", "0.61495...
0.0
-1
Convert Stringformatted options into Objectformatted ones
function createOptions( options ) { var object = {}; jQuery.each( options.match( rnothtmlwhite ) || [], function( _, flag ) { object[ flag ] = true; } ); return object; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function normalizeOption(option){if(isString(option)){return normalizeStringOption(option);}else if(isGroup(option)){var title=option.title,options=option.options;return{title:title,options:options.map(function(option){return isString(option)?normalizeStringOption(option):option;})};}return option;}", "function ...
[ "0.6646514", "0.66005486", "0.66005486", "0.66005486", "0.649457", "0.63181406", "0.62969595", "0.62960297", "0.62944365", "0.62496066", "0.62457913", "0.61913466", "0.615734", "0.6145045", "0.61051947", "0.60929805", "0.6089481", "0.6005777", "0.59753966", "0.59635246", "0.5...
0.0
-1
The ready event handler and self cleanup method
function completed() { document.removeEventListener( "DOMContentLoaded", completed ); window.removeEventListener( "load", completed ); jQuery.ready(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function readyCallBack() {\n}", "static ready() { }", "onReady() {}", "ready() {\r\n\t\tsuper.ready();\r\n\t}", "ready() {\n super.ready();\n }", "ready() {\n super.ready();\n }", "ready() {\n super.ready();\n }", "ready() {\n super.ready();\n }", "ready() {\...
[ "0.7247566", "0.72123104", "0.7174342", "0.7150074", "0.7060503", "0.7060503", "0.7060503", "0.7060503", "0.7060503", "0.7060503", "0.7060503", "0.7060503", "0.7060503", "0.7060503", "0.7060503", "0.7060503", "0.7043742", "0.7043742", "0.7043742", "0.7043742", "0.6912354", ...
0.0
-1
Mark scripts as having already been evaluated
function setGlobalEval( elems, refElements ) { var i = 0, l = elems.length; for ( ; i < l; i++ ) { dataPriv.set( elems[ i ], "globalEval", !refElements || dataPriv.get( refElements[ i ], "globalEval" ) ); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "globalEval() {\n // phase one, if we have head inserts, we build up those before going into the script eval phase\n let insertHeadElems = new ExtDomQuery_1.ExtDomQuery(...this.internalContext.getIf(Const_1.DEFERRED_HEAD_INSERTS).value);\n insertHeadElems.runHeadInserts(true);\n // phas...
[ "0.5987435", "0.5798831", "0.5772783", "0.57142234", "0.5673525", "0.56659687", "0.5592892", "0.5492997", "0.5467838", "0.53731847", "0.5336245", "0.5309647", "0.5303123", "0.52803385", "0.52720535", "0.52717704", "0.52695596", "0.52677536", "0.52672625", "0.52672625", "0.525...
0.0
-1
Support: IE <=9 only See 13393 for more info
function safeActiveElement() { try { return document.activeElement; } catch ( err ) { } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function isLowIE9() {\r\n var e = window.navigator.userAgent.toString().toUpperCase();\r\n var flag = false;\r\n if (e.indexOf(\"MSIE\") >= 0) {\r\n\r\n if (e.indexOf(\"MSIE 6.0\") > 0) flag = true;\r\n if (e.indexOf(\"MSIE 7.0\") > 0) flag = true;\r\n if (e.in...
[ "0.689851", "0.66326797", "0.66046655", "0.66046655", "0.6463074", "0.63900834", "0.63459474", "0.6298214", "0.6298214", "0.629166", "0.62508917", "0.62266773", "0.6220732", "0.61609477", "0.61441", "0.61390316", "0.61260134", "0.61123794", "0.6086247", "0.6085502", "0.605937...
0.0
-1
Prefer a tbody over its parent table for containing new rows
function manipulationTarget( elem, content ) { if ( nodeName( elem, "table" ) && nodeName( content.nodeType !== 11 ? content : content.firstChild, "tr" ) ) { return jQuery( ">tbody", elem )[ 0 ] || elem; } return elem; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function r(a,b){return fa.nodeName(a,\"table\")&&fa.nodeName(11!==b.nodeType?b:b.firstChild,\"tr\")?a.getElementsByTagName(\"tbody\")[0]||a.appendChild(a.ownerDocument.createElement(\"tbody\")):a}", "_createDataRows(tbody) {\r\n const that = this,\r\n rowDetailTemplate = that.rowDetailTemplate,...
[ "0.71068895", "0.70123374", "0.69515854", "0.67283845", "0.6453831", "0.64362985", "0.6406883", "0.6403995", "0.6383349", "0.6368027", "0.6368027", "0.6327824", "0.63271356", "0.63271356", "0.6291889", "0.62862366", "0.62862366", "0.6275941", "0.62185556", "0.6214741", "0.621...
0.0
-1
Replace/restore the type attribute of script elements for safe DOM manipulation
function disableScript( elem ) { elem.type = ( elem.getAttribute( "type" ) !== null ) + "/" + elem.type; return elem; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function disableScript( elem ) {\r\n\tvar attr = elem.getAttributeNode(\"type\");\r\n\telem.type = ( attr && attr.specified ) + \"/\" + elem.type;\r\n\treturn elem;\r\n}", "function disableScript( elem ) {\n\tvar attr = elem.getAttributeNode(\"type\");\n\telem.type = ( attr && attr.specified ) + \"/\" + elem.typ...
[ "0.7015881", "0.6984669", "0.6984669", "0.6984669", "0.6984669", "0.6984669", "0.6984669", "0.6984669", "0.6984669", "0.6984669", "0.6984669", "0.6942055", "0.6937486", "0.68989927", "0.6888514", "0.6888514", "0.6888514", "0.6886676", "0.688531", "0.68820333", "0.68746465", ...
0.0
-1
Fix IE bugs, see support tests
function fixInput( src, dest ) { var nodeName = dest.nodeName.toLowerCase(); // Fails to persist the checked state of a cloned checkbox or radio button. if ( nodeName === "input" && rcheckableType.test( src.type ) ) { dest.checked = src.checked; // Fails to return the selected option to the default selected sta...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function IEcompatibility() {\n\t// Only do anything if this is IE\n\tif(Browser.ie){\n\t\tvar __fix = $$(\"#kbbcode-size-options\", \"#kbbcode-size-options span\", \n\t\t\t\t\t\t\"#kbbcode-colortable\", \"#kbbcode-colortable td\");\n\t\tif (__fix) {\n\t\t\t__fix.setProperty('unselectable', 'on');\n\t\t}\n\t}\n}", ...
[ "0.7220337", "0.70940924", "0.699044", "0.68625945", "0.66801953", "0.6574329", "0.6557123", "0.65142417", "0.65142417", "0.64660573", "0.64034224", "0.6379892", "0.6297539", "0.6296395", "0.62622595", "0.6166529", "0.6163856", "0.61358476", "0.61114734", "0.6054131", "0.6026...
0.0
-1
Executing both pixelPosition & boxSizingReliable tests require only one layout so they're executed at the same time to save the second computation.
function computeStyleTests() { // This is a singleton, we need to execute it only once if ( !div ) { return; } div.style.cssText = "box-sizing:border-box;" + "position:relative;display:block;" + "margin:auto;border:1px;padding:1px;" + "top:1%;width:50%"; div.innerHTML = ""; documentElement....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function computePixelPositionAndBoxSizingReliable() {\n\t\t\t// Support: Firefox, Android 2.3 (Prefixed box-sizing versions).\n\t\t\tdiv.style.cssText = \"-webkit-box-sizing:border-box;-moz-box-sizing:border-box;\" +\n\t\t\t\t\"box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;\" +...
[ "0.72141045", "0.7208969", "0.7208969", "0.7208019", "0.7208019", "0.7151946", "0.7151946", "0.71497786", "0.71334136", "0.71334136", "0.71334136", "0.71334136", "0.71334136", "0.71334136", "0.71334136", "0.71334136", "0.71334136", "0.71334136", "0.71334136", "0.71334136", "0...
0.0
-1
Return a css property mapped to a potentially vendor prefixed property
function vendorPropName( name ) { // Shortcut for names that are not vendor prefixed if ( name in emptyStyle ) { return name; } // Check for vendor prefixed names var capName = name[ 0 ].toUpperCase() + name.slice( 1 ), i = cssPrefixes.length; while ( i-- ) { name = cssPrefixes[ i ] + capName; if ( nam...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function vendorPropName(name){// Shortcut for names that are not vendor prefixed\nif(name in emptyStyle){return name;}// Check for vendor prefixed names\nvar capName=name[0].toUpperCase()+name.slice(1),i=cssPrefixes.length;while(i--){name=cssPrefixes[i]+capName;if(name in emptyStyle){return name;}}}// Return a pro...
[ "0.81005985", "0.81005985", "0.78016007", "0.78016007", "0.78016007", "0.78016007", "0.78016007", "0.78016007", "0.78016007", "0.78016007", "0.7733556", "0.7720143", "0.76417613", "0.76077086", "0.7600333", "0.752937", "0.74653137", "0.7459531", "0.7444486", "0.7416608", "0.7...
0.0
-1
Return a property mapped along what jQuery.cssProps suggests or to a vendor prefixed property.
function finalPropName( name ) { var ret = jQuery.cssProps[ name ]; if ( !ret ) { ret = jQuery.cssProps[ name ] = vendorPropName( name ) || name; } return ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function vendorPropName(name){// Shortcut for names that are not vendor prefixed\nif(name in emptyStyle){return name;}// Check for vendor prefixed names\nvar capName=name[0].toUpperCase()+name.slice(1),i=cssPrefixes.length;while(i--){name=cssPrefixes[i]+capName;if(name in emptyStyle){return name;}}}// Return a pro...
[ "0.8121673", "0.8121673", "0.7477136", "0.7477136", "0.7477136", "0.7477136", "0.7477136", "0.7477136", "0.7477136", "0.7477136", "0.7335047", "0.7335047", "0.7179643", "0.7175815", "0.7074095" ]
0.0
-1
Animations created synchronously will run synchronously
function createFxNow() { window.setTimeout( function() { fxNow = undefined; } ); return ( fxNow = jQuery.now() ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "_playAnimation() {\n if (this._animationLast === undefined && this._animationQueue.length > 0) {\n this._animationLast = this._animationCurrent;\n this._animationCurrent = this._animationQueue.shift();\n console.log(\"New: \" + this._animationCurrent.name);\n this...
[ "0.72297084", "0.7172655", "0.6751781", "0.6701827", "0.66490537", "0.6644208", "0.66413045", "0.65767395", "0.6515558", "0.64943016", "0.64906734", "0.6407048", "0.6392758", "0.6383256", "0.63779354", "0.6373179", "0.63684577", "0.6353303", "0.63494754", "0.6331653", "0.6321...
0.0
-1
Generate parameters to create a standard animation
function genFx( type, includeWidth ) { var which, i = 0, attrs = { height: type }; // If we include width, step value is 1 to do all cssExpand values, // otherwise step value is 2 to skip over Left and Right includeWidth = includeWidth ? 1 : 0; for ( ; i < 4; i += 2 - includeWidth ) { which = cssExpand[ i ]...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setParameters() {\n params.viscosity = 0.02;\n params.u0 = -amplitude;\n params.one36th = 1 / 36;\n params.one9th = 1 / 9;\n params.four9ths = 4 / 9;\n params.gridSize = 5;\n params.m = int(height / params.gridSize);\n params.n = int(width / params.gridSize);\n}", "function generateAnimationPara...
[ "0.64786154", "0.6449539", "0.62383676", "0.62094295", "0.620264", "0.6019677", "0.5995794", "0.5946647", "0.59392697", "0.59392697", "0.59102035", "0.5872475", "0.5831839", "0.5829009", "0.58253944", "0.5819507", "0.5814374", "0.58004045", "0.5788535", "0.57818687", "0.57811...
0.0
-1
Strip and collapse whitespace according to HTML spec
function stripAndCollapse( value ) { var tokens = value.match( rnothtmlwhite ) || []; return tokens.join( " " ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function stripAndCollapse(value){var tokens=value.match(rnothtmlwhite)||[];return tokens.join(\" \");}", "function stripAndCollapse(value){var tokens=value.match(rnothtmlwhite)||[];return tokens.join(\" \");}", "function stripAndCollapse(value){var tokens=value.match(rnothtmlwhite)||[];return tokens.join(\" \"...
[ "0.79224557", "0.79224557", "0.79224557", "0.76790833", "0.75981474", "0.7587476", "0.7583516", "0.7560448", "0.75548595", "0.75548595", "0.75548595", "0.75548595", "0.75548595", "0.75548595", "0.75548595", "0.75548595", "0.75548595", "0.75548595", "0.75548595", "0.75548595", ...
0.0
-1
Base "constructor" for jQuery.ajaxPrefilter and jQuery.ajaxTransport
function addToPrefiltersOrTransports( structure ) { // dataTypeExpression is optional and defaults to "*" return function( dataTypeExpression, func ) { if ( typeof dataTypeExpression !== "string" ) { func = dataTypeExpression; dataTypeExpression = "*"; } var dataType, i = 0, dataTypes = dataTypeE...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "constructor() {\n this.config = Config.ajax;\n this.xhr;\n this.Serialize;\n }", "function AjaxPipelineConstructor() {\r\n BaseObject.call(this,arguments);\r\n }", "function Ajax(__constructor) {\r\n if (Params.env.isFirefox) return GM_xmlhttpRequest(__constructor);\r\n ...
[ "0.6991814", "0.6822895", "0.6370532", "0.61629635", "0.59248525", "0.5838086", "0.5837303", "0.5837303", "0.5829264", "0.5829264", "0.5829264", "0.5829264", "0.5829264", "0.5829264", "0.5797926", "0.5787502", "0.5787502", "0.57434845", "0.5730902", "0.5730208", "0.56613284",...
0.0
-1
Base inspection function for prefilters and transports
function inspectPrefiltersOrTransports( structure, options, originalOptions, jqXHR ) { var inspected = {}, seekingTransport = ( structure === transports ); function inspect( dataType ) { var selected; inspected[ dataType ] = true; jQuery.each( structure[ dataType ] || [], function( _, prefilterOrFactory ) {...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function inspectPrefiltersOrTransports(structure, options, originalOptions, jqXHR) {\n\n var inspected = {},\n seekin...
[ "0.6271232", "0.62278324", "0.6089844", "0.6089844", "0.6089844", "0.6089844", "0.6089844", "0.6089844", "0.6089844", "0.6089844", "0.6089844", "0.6089844", "0.607385", "0.60586876", "0.60586876", "0.6036968", "0.601241", "0.601241", "0.601241", "0.601241", "0.601241", "0.6...
0.0
-1
A special extend for ajax options that takes "flat" options (not to be deep extended) Fixes 9887
function ajaxExtend( target, src ) { var key, deep, flatOptions = jQuery.ajaxSettings.flatOptions || {}; for ( key in src ) { if ( src[ key ] !== undefined ) { ( flatOptions[ key ] ? target : ( deep || ( deep = {} ) ) )[ key ] = src[ key ]; } } if ( deep ) { jQuery.extend( true, target, deep ); } ret...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ajaxExtend(target,src){var key,deep,flatOptions=jQuery.ajaxSettings.flatOptions||{};for(key in src){if(src[key]!==undefined){(flatOptions[key]?target:deep||(deep={}))[key]=src[key];}}if(deep){jQuery.extend(true,target,deep);}}", "function ajaxExtend(target,src){var key,deep,flatOptions=jQuery.ajaxSettin...
[ "0.7665618", "0.76088846", "0.7564515", "0.7564515", "0.7564515", "0.7564515", "0.7564515", "0.7564515", "0.7545308", "0.7545308", "0.7525767", "0.74563456", "0.7317387", "0.73121077", "0.7290653", "0.7289935", "0.72548693", "0.7240521", "0.7239604", "0.7239604", "0.7224887",...
0.0
-1
Handles responses to an ajax request: finds the right dataType (mediates between contenttype and expected dataType) returns the corresponding response
function ajaxHandleResponses( s, jqXHR, responses ) { var ct, type, finalDataType, firstDataType, contents = s.contents, dataTypes = s.dataTypes; // Remove auto dataType and get content-type in the process while ( dataTypes[ 0 ] === "*" ) { dataTypes.shift(); if ( ct === undefined ) { ct = s.mimeType ||...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ajaxHandleResponses(s,jqXHR,responses){var firstDataType,ct,finalDataType,type,contents=s.contents,dataTypes=s.dataTypes;// Remove auto dataType and get content-type in the process\nwhile(dataTypes[0]===\"*\"){dataTypes.shift();if(ct===undefined){ct=s.mimeType||jqXHR.getResponseHeader(\"Content-Type\");}}...
[ "0.78495306", "0.7837287", "0.7837287", "0.7776159", "0.77616936", "0.7757058", "0.7718631", "0.77153635", "0.7672706", "0.7629886", "0.7614238", "0.7604389", "0.7600136", "0.75993776", "0.75971514", "0.75971514", "0.75971514", "0.75971514", "0.75971514", "0.75971514", "0.759...
0.0
-1
Chain conversions given the request and the original response Also sets the responseXXX fields on the jqXHR instance
function ajaxConvert( s, response, jqXHR, isSuccess ) { var conv2, current, conv, tmp, prev, converters = {}, // Work with a copy of dataTypes in case we need to modify it for conversion dataTypes = s.dataTypes.slice(); // Create converters map with lowercased keys if ( dataTypes[ 1 ] ) { for ( conv in s.c...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ajaxConvert(s,response,jqXHR,isSuccess){var conv2,current,conv,tmp,prev,converters={}, // Work with a copy of dataTypes in case we need to modify it for conversion\ndataTypes=s.dataTypes.slice(); // Create converters map with lowercased keys\nif(dataTypes[1]){for(conv in s.converters){converters[conv.toLo...
[ "0.6271321", "0.62646276", "0.62049013", "0.6195344", "0.61946756", "0.617919", "0.617919", "0.61764264", "0.61531335", "0.6096145", "0.6090841", "0.60874856", "0.60874856", "0.60874856", "0.60874856", "0.60874856", "0.60752946", "0.60752946", "0.60752946", "0.605084", "0.601...
0.0
-1
Callback for when everything is done
function done( status, nativeStatusText, responses, headers ) { var isSuccess, success, error, response, modified, statusText = nativeStatusText; // Ignore repeat invocations if ( completed ) { return; } completed = true; // Clear timeout if it exists if ( timeoutTimer ) { window.cle...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function done() {}", "function finished(err){\n }", "onFinish() {}", "function AllDone(){\n \n}", "async onFinished() {}", "done() {}", "_onEnd() {}", "done () {}", "complete() {}", "function onFinish() {\n console.log('finished!');\n}", "function complete(){\r\n ...
[ "0.7607877", "0.73473793", "0.73289984", "0.7317956", "0.7304225", "0.72417575", "0.7235767", "0.69856775", "0.68565404", "0.6855536", "0.6845145", "0.6817738", "0.6773241", "0.6773241", "0.6773241", "0.6773241", "0.677228", "0.67654777", "0.67654777", "0.6763289", "0.6711056...
0.0
-1
data = all tweets list including the search word
function scb(data) { console.log(data); for (var i = 0; i < data.length; i++) { if (data[i].TweetsArray.length > 0) { checkNeedToExplore = true; data[i].TweetsArray = data[i].TweetsArray.slice(0, 10); //the number in the slice can be changed tweetsFullInfo(data[i]); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function tweetSearch() {\n console.log(\"Give it a second...\");\n console.log('-----------------------------------------------------------------------');\n var Tweets = new Twitter(key.twitterKeys);\n //Twitter parameters and get method to retrieve the appropriate data\n var params = {screen_name: ...
[ "0.72883034", "0.7153314", "0.7110108", "0.71076024", "0.7055349", "0.6948278", "0.6921324", "0.6870872", "0.68461317", "0.6819043", "0.67707974", "0.6726", "0.6690207", "0.6670001", "0.66601145", "0.6658483", "0.66514784", "0.66419697", "0.6630985", "0.6630232", "0.64990586"...
0.58609354
78
tweeters to explore (the whole process get info + post)
function callTweetersToExplore() { AlltweetersFromApi = []; isWholeProcessTweeters = true; var tweetersStr = ""; TweetersToExplore = TweetersToExplore.filter(tweeterName => ((tweeterName != "YouTube") && (tweeterName != "CNN"))); for (var i = 0; i < TweetersToExplore.length; i++) { tweetersS...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getAndTreatMentions(err, data, response) {\n\t\n\t// for each mentions\n\tdata.forEach(function (tweet) {\n\t\t// get informations\n\t\tvar id = tweet.id;\n\t\tvar userName = tweet.user.screen_name;\n\t\tvar creationDate = tweet.created_at;\n\t\t\n\t\t\n\t\t// Replace all useless chars\n\t\tvar message = ...
[ "0.68814504", "0.6788302", "0.6777022", "0.67640144", "0.66906244", "0.6654462", "0.66040134", "0.6591051", "0.6568892", "0.65609235", "0.65582293", "0.6534268", "0.6523113", "0.65164083", "0.6504928", "0.6489407", "0.64846414", "0.6472264", "0.64696497", "0.64570266", "0.645...
0.6948366
0
success of tweeters to explore
function getSuccessTweeters(data) { AlltweetersFromApi = AlltweetersFromApi.concat(data); chkIfFinished = chkFinishExplore(TweetersToExplore, AlltweetersFromApi) //we need to check if we finished to find all the tweeters we needed to explore if (chkIfFinished) // finished to find all tweeters { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function tweets(tweet) { cb(tweet) }", "function retweet() {\n var params = {\n q: 'christmas',\n count: 2,\n result_type: 'recent',\n lang: 'en' \n }\n\n var tweet = {\n status: 'Retweeting most recent tweets about ' + params.q\n }\n\n print('retweet', 'params and tweet instantiated');\n\...
[ "0.71424603", "0.70622647", "0.6994405", "0.69829595", "0.692714", "0.69216734", "0.68812454", "0.6879523", "0.6871003", "0.68422925", "0.6839733", "0.6839508", "0.6821499", "0.6773713", "0.6764107", "0.67630017", "0.6759661", "0.6730136", "0.6707242", "0.66934395", "0.667941...
0.7188887
0
do the insert of new tweeters + update of existing tweeters + insert connections of friends
function createTweeters() { console.log("tweeters explored that need to be inserted/updated:"); console.log(AlltweetersFromApi); if (fullOrCustomized == "customized" && counterCustomizedIndication == 1) indicationUser("Found tweeters.."); var allNewTweeters = []; var allTweetersToUpdate = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async function addTweetToDatabase(tweet) {\n var query = \"MERGE (author:Person {author_id:$author_id}) MERGE (tweet:Tweet {id:$id, text:$text, lang:$lang, created_at:$created_at}) MERGE (conversation:Conversation {id:$conv_id}) MERGE (author) - [:Authored] -> (tweet) MERGE (tweet) - [:In_Conversation] -> (conver...
[ "0.6333034", "0.59875405", "0.5953434", "0.5938067", "0.5915269", "0.591441", "0.5907443", "0.5874745", "0.56788164", "0.55807585", "0.5464064", "0.5450434", "0.5411102", "0.53967834", "0.5392277", "0.5352466", "0.5341427", "0.5330146", "0.53263706", "0.5300449", "0.5294807",...
0.67633694
0
success of insert tweeters or success of update tweeters (if there are no new tweeters)
function postSuccessAndFriends(data) { console.log("success"); var allTweetersFriend = []; var allTweetsByTweeter = [] console.log("start ajax of tweeters - friends"); for (var i = 0; i < AlltweetersFromApi.length; i++) { allTweetersFriend = allTweetersFriend.concat(AlltweetersFromApi[i].Al...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function createTweeters() {\n console.log(\"tweeters explored that need to be inserted/updated:\");\n console.log(AlltweetersFromApi);\n\n if (fullOrCustomized == \"customized\" && counterCustomizedIndication == 1)\n indicationUser(\"Found tweeters..\");\n\n var allNewTweeters = [];\n var all...
[ "0.70532286", "0.65642715", "0.61718273", "0.60787785", "0.60455805", "0.5952243", "0.5928424", "0.5905143", "0.58568984", "0.5853292", "0.58521837", "0.58174694", "0.58039707", "0.57951576", "0.572401", "0.56638384", "0.5626129", "0.5619296", "0.5566491", "0.5552942", "0.552...
0.5853122
10
ajax call of tweets get all the information about tweets we needed to explore + the information about their tweeters
function callTweets() { var tweetsToExplore = ""; AlltweetsFromApi = []; console.log("start ajax - get tweets"); TweetsToExplore = [...new Set(TweetsToExplore)]; // remove duplicates CopyTweetsToExplore = TweetsToExplore.slice(); for (var i = 0; i < TweetsToExplore.length; i++) { let fou...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getTheTweets() {\n\t\t// load the data\n\t\t$.ajax({\n\t\t\t\turl: 'http://search.twitter.com/search.json?q='+trendQuery+'&rpp=5&result_type=recent&callback=?',\n\t\t\t\tdataType: 'jsonp',\n\t\t\t\tcontext: wrapperTweets,\n\t\t\t// if successful\n\t\t\tsuccess: function(tweeters) {\n\t\t\t\t$(tweetList).e...
[ "0.8123155", "0.78590953", "0.7830492", "0.7812746", "0.7808556", "0.778942", "0.776249", "0.77451384", "0.7735457", "0.7703625", "0.7697042", "0.76749575", "0.76568377", "0.76508635", "0.7584146", "0.7579166", "0.7574996", "0.75632787", "0.74569565", "0.7428309", "0.73566455...
0.7414509
20
success of explored tweets
function getSuccessTweetsByIds(data) { AlltweetsFromApi = AlltweetsFromApi.concat(data); chkIfFinished = chkFinishExplore(TweetsToExplore, AlltweetsFromApi) //we need to check if we finished to find all the tweets we needed to explore if (chkIfFinished) // finished to find all tweets createTweets()...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function tweets(tweet) { cb(tweet) }", "function analyzeTweets(tweets) {\n var tweetData = { 'positive': { 'percent': 0, 'frequency': [], 'hashtags': [] }, 'trust': { 'percent': 0, 'frequency': [], 'hashtags': [] }, 'anticipation': { 'percent': 0, 'frequency': [], 'hashtags': [] }, 'joy': { 'percent': 0, 'fre...
[ "0.6879374", "0.66747487", "0.6647363", "0.66007113", "0.6576048", "0.6555934", "0.65290266", "0.64891386", "0.6403152", "0.639117", "0.6386134", "0.63662887", "0.6362589", "0.6360892", "0.636079", "0.63111234", "0.6295048", "0.62764347", "0.62642676", "0.6260289", "0.6248787...
0.5911211
74
create objects of tweets and check the chain
function createTweets() { console.log("tweets explored:"); console.log(AlltweetsFromApi); TweetsToExplore = []; AlltweetersFromApi = []; for (var i = 0; i < AlltweetsFromApi.length; i++) { for (var j = 0; j < AlltweetsFromApi[i].ExpendedTweets.length; j++) { if (AlltweetsFromA...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getSuccessTweetsByIds(data) {\n\n AlltweetsFromApi = AlltweetsFromApi.concat(data);\n chkIfFinished = chkFinishExplore(TweetsToExplore, AlltweetsFromApi) //we need to check if we finished to find all the tweets we needed to explore\n if (chkIfFinished) // finished to find all tweets\n crea...
[ "0.632761", "0.6275368", "0.626328", "0.6197928", "0.61620677", "0.6150525", "0.6135312", "0.6073466", "0.6036994", "0.6025833", "0.60224664", "0.601422", "0.59454846", "0.59287715", "0.5907026", "0.5904819", "0.58765084", "0.5871646", "0.58660144", "0.5862298", "0.58349407",...
0.6895333
0
post all the tweets the whole chain
function postTweets() { if (Alltweets.length > 0) { //there are tweets to post if (fullOrCustomized == "customized") indicationUser("almost there.."); Alltweets = getUnique(); Alltweets.sort((a, b) => (a.IdTweet > b.IdTweet) ? 1 : -1) // sort allTweets by idTweet from min to max(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function loopOverTweets (tweets, i, utils, cb) {\n OutputFormatter[utils.outputAsFunc](tweets[i]).then((out) => {\n utils.options.enrichment_promise(out).then((enrichedData) => {\n SaveTo[utils.saveTypeFunc](enrichedData, false, tweets[i]).then(() => {\n i++\n if (i < tweets.length...
[ "0.65956134", "0.65774614", "0.64210594", "0.6392184", "0.6342382", "0.63334554", "0.62711996", "0.6262187", "0.6203063", "0.6185084", "0.6158045", "0.6149431", "0.60720384", "0.6058418", "0.60378563", "0.6036977", "0.60309654", "0.6027344", "0.6022841", "0.6019771", "0.60098...
0.7210653
0
for dateset in python
function postContents() { const regex = /["']/g; for (var i = 0; i < data.length; i++) { idStrTweet = data[i].IdStr; data[i].Text = data[i].Text.replace(regex, "''"); textTweet = data[i].Text; urlTweet = data[i].Url; IdStrUser = data[i].CreatedBy.IdStr; let conte...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "setDates(){\n\t\tthis.dates=[];\n\t\tlet min=new Date(this.min);\n\t\twhile(min<=this.max){\n\t\t\tthis.dates.push(new Date(min));\n\t\t\tmin.setDate(min.getDate()+1);\n\t\t}\n\t\tthis.dates.push(new Date(min));\n\t}", "setTemporal(values) {\n let temporal = this.temporal();\n if (temporal) {\n let st...
[ "0.6259859", "0.61281216", "0.6063929", "0.5837201", "0.5794907", "0.5681178", "0.56801754", "0.56506145", "0.56506145", "0.56506145", "0.56506145", "0.56506145", "0.5611765", "0.55950594", "0.5574672", "0.55400836", "0.54971623", "0.5467197", "0.54222757", "0.5414126", "0.54...
0.0
-1
John is worried because each month a list with the weights of members is published and each month he is the last on the list which means he is the heaviest. I am the one who establishes the list so I told him: "Don't worry any more, I will modify the order of the list". It was decided to attribute a "weight" to numbers...
function orderWeight(strng) { // Split string into array of individual numbers let strArr = strng.split(' '); let weightObj = []; // Calculate individual weights strArr.forEach(function(val, i) { let weight = val.split('').reduce(function(prev, next) { return parseInt(prev) + parseInt(next); },...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function orderWeight(strng) {\n\n const sumOf = (str) => {\n let sum =0;\n for(n of str)\n sum=sum+parseInt(n)\n return sum\n }\n\n return strng\n .split(' ')\n .sort((a, b) => {return (\n sumOf(a) === sumOf(b) ?\n a - b : sumOf(a) - sumOf(b)\n )})\n .join(' ')\n}", "fu...
[ "0.6612514", "0.62635994", "0.5840026", "0.5682996", "0.55415833", "0.55215967", "0.5461199", "0.5454252", "0.5443703", "0.541224", "0.5363491", "0.5361335", "0.5336797", "0.5312474", "0.52973896", "0.5291003", "0.52860945", "0.5173713", "0.5132213", "0.5118597", "0.5118362",...
0.6624819
0
addEvent Attaches an event handler to an object in a crossbrowser way. This version intercepts handlers for the DOMContentLoaded event and queues them, firing once it's own central handler which is implemented cross browser has fired.
function addEvent(obj, evt, fn) { if (obj == document && evt == "DOMContentLoaded") { // Support adding listeners for DOMContentLoaded event if (document.ready) fn.apply(obj, []); else addEvent.listeners.push(fn); } else if (obj.addEventListener) obj.addEventListener(evt, fn, false); e...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function AddEvent(obj,eventName,handler)\n{ \n\tif(document.all)\n\t{\t \n\t\tobj.attachEvent(\"on\"+eventName,handler);\n\t}else{\t \n\t\tobj.addEventListener(eventName,handler,false);\n\t}\n}", "addEvent(eventListener, func) {\n this.func[eventListener] = func;\n this.addEventToB...
[ "0.6569679", "0.6521808", "0.64421165", "0.640157", "0.63937616", "0.6371041", "0.63312", "0.63287085", "0.63139963", "0.62648267", "0.6252764", "0.62155586", "0.6190681", "0.6181449", "0.6174633", "0.61532867", "0.61521244", "0.6152098", "0.61424184", "0.61424184", "0.614241...
0.72982126
0
removeEvent Removes an event from an object in a crossbrowser way.
function removeEvent(obj, evt, fn ) { if (obj == document && evt == "DOMContentLoaded") { for (var i=addEvent.listeners.length-1; i>=0; i--) if (addEvent.listeners[i] == fn) addEvent.listeners.splice(i, 1); } else if (obj.removeEventListener) obj.removeEventListener(evt, fn, false); else if ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function removeEvent(object, eventName, functionName, capture){\n\t\t//following true if browser == EI\n\tif(object.detachEvent) {\n\t\tobject.detachEvent(\"on\" + eventName, functionName);\n\t} //end if EI\n\t//else is another browser\n\telse if(object.removeEventListener) {\n\t\tobject.removeEventListener(eventN...
[ "0.77065855", "0.7342668", "0.72498447", "0.7249125", "0.71098316", "0.71082777", "0.68564534", "0.6796328", "0.67666376", "0.6659874", "0.66546226", "0.6637498", "0.6619399", "0.6579504", "0.6567916", "0.656344", "0.63668233", "0.6348382", "0.6316566", "0.62867546", "0.62694...
0.71251446
4
function to push to user
function pushToUser(title,body,url,tag){ readAllData('peter-parker') .then(function(data) { // console.log('peter-parker',data[0].pp); if(data[0] == undefined){ var pId = ''; }else{ var pId = data[0].pp; } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function userPush() {\n $('.name').html(user.name);\n\n if (user.bio === '') {\n user.bio = ('\\n'+ user.name + ' Is incredibly lazy and has not filled out his bio.');\n }\n $('#bio').html(user.bio);\n $('#logo').attr('src', user.logo);\n $('.chat').attr('src', ...
[ "0.7152533", "0.69177186", "0.6588421", "0.6586756", "0.6531864", "0.6477496", "0.64659244", "0.64305276", "0.6427069", "0.6391646", "0.6369122", "0.63671345", "0.63253677", "0.63172466", "0.6306566", "0.6286749", "0.62742746", "0.6265199", "0.6261222", "0.6244725", "0.623203...
0.6096134
31
create table two component to get the patient details into a table
viewPdf(url) { if (url) { window.location = url; } else{ alert("There is no PDF to view"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function departmentTable() { }", "function infoTable(tableData2) {\n tableData2.map(data => {\n var row = tbody.append(\"tr\");\n // Append each row with data\n row.append(\"td\").text(data.datetime);\n row.append(\"td\").text(data.city);\n row.append(\"td\").text(data.stat...
[ "0.62551475", "0.6162738", "0.604473", "0.60415393", "0.6029423", "0.6018354", "0.59730566", "0.5966221", "0.593705", "0.59239286", "0.5923088", "0.59107244", "0.59084135", "0.58986956", "0.58920413", "0.58697796", "0.5862542", "0.58447134", "0.5839589", "0.5837657", "0.58185...
0.0
-1
get random number in range, max is exclusive
function randomIntFromInterval(min, max) { return Math.floor(Math.random() * (Math.floor(max) - Math.ceil(min))) + min; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "range(max, min){\n let num = Math.round(Math.random()*(min-max)+max);\n return num;\n}", "range(min, max) {\n\t\tlet r = Math.floor(Math.random() * max);\n\t\twhile(r < min)\n\t\t\tr = Math.floor(Math.random() * max);\n\t\treturn r;\n\t}", "function getRandomInt(max) {return Math.floor(Math.random() * Mat...
[ "0.8558811", "0.84306616", "0.83733183", "0.8368091", "0.83498603", "0.83498603", "0.83280426", "0.8323403", "0.8306632", "0.83019185", "0.83000535", "0.8258291", "0.82572263", "0.82571435", "0.82509375", "0.8243091", "0.82336724", "0.823307", "0.823307", "0.822514", "0.82061...
0.0
-1
Convert from fahrenheit to celsius
function toFahrenheit(celsius) { return $http.get(urlBase + '/c2f/' + celsius); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function toCelsius(fahrenheit) {\n return (fahrenheit - 32) * 5 / 9;\n}", "function toCelsius(fahrenheit) {\n return (fahrenheit - 32) * 5 / 9;\n}", "function toCelsius (fahrenheit) {\r\n var convertedTemp = (fahrenheit - 32) * .5556;\r\n return convertedTemp;\r\n}", "function toCelsius(fahrenheit) {\n ...
[ "0.8614401", "0.8614401", "0.8581971", "0.85712904", "0.856657", "0.85654914", "0.85090613", "0.8384124", "0.8277837", "0.8270589", "0.82435346", "0.82219005", "0.81369954", "0.81247246", "0.80914736", "0.78975934", "0.7884391", "0.7852854", "0.7837404", "0.7835321", "0.78234...
0.0
-1
Convert from celsius to fahrenheit
function toCelsius(fahrenheit) { return $http.get(urlBase + '/f2c/' + fahrenheit); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function celsiusToFahrenheit (c) {\n var fahrenheit = ( c * ( 9 / 5) ) + 32;\n return fahrenheit;\n }", "function toCelsius(fahrenheit) {\n return (fahrenheit - 32) * 5 / 9;\n}", "function toCelsius(fahrenheit) {\n return (fahrenheit - 32) * 5 / 9;\n}", "function toCelsius (fahrenheit) {\r\n ...
[ "0.8541915", "0.8221233", "0.8221233", "0.81616145", "0.8154538", "0.8121557", "0.81119525", "0.8090982", "0.8080546", "0.8071184", "0.80681604", "0.80524486", "0.80248505", "0.7995086", "0.79573905", "0.79533875", "0.7950671", "0.7947299", "0.79280585", "0.79176", "0.7900351...
0.0
-1
Fetch customer by ID
function getCustomer(id) { return $http.get(urlBase + '/' + id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "fetchSpecificCustomers(id) {\r\n return Api().get('/customers/' + id)\r\n }", "getCustomer(id) {\n this.CustomerService.fetch(id)\n .then(data => {\n });\n }", "static async get(id) {\n const results = await db.query(\n `SELECT id, \n first_name AS \"firstNam...
[ "0.85824883", "0.8200478", "0.77838945", "0.7733826", "0.7703143", "0.7527368", "0.7394031", "0.73279154", "0.72962636", "0.726401", "0.72554857", "0.71711946", "0.71695083", "0.69669473", "0.6952274", "0.6894783", "0.68675745", "0.6845316", "0.68266976", "0.6805681", "0.6762...
0.8056254
2
Abstracts save for insert vs update
function save(cust) { var operation = cust.id ? updateCustomer : insertCustomer; return operation(cust); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "save() {}", "save() {\n this._mutateModel();\n\n this._super(...arguments);\n }", "save() {\n }", "async save() {\n const priv = privates.get(this);\n const tableName = priv.get(\"tableName\");\n if (tableName) {\n const formData = new FormData(this.form);\n if (formData.ge...
[ "0.7615034", "0.7195936", "0.69607085", "0.6802034", "0.67683405", "0.6742082", "0.66835946", "0.66065747", "0.64843285", "0.6475832", "0.6471823", "0.64425385", "0.6441563", "0.64236706", "0.6420843", "0.6359447", "0.6354535", "0.63441885", "0.6336018", "0.6320796", "0.62986...
0.6021477
38
CustomerEditCtrl.$inject = ['$scope', '$location', '$routeParams', 'CustomerService', 'ngDialog']; [CustomerEditCtrl description]
function CustomerEditCtrl($scope, $location, $routeParams, CustomerService, ngDialog) { /*jshint validthis: true */ var vm = this; vm.back = back; vm.updateCustomer = updateCustomer; vm.deleteRecord = deleteRecord; vm.deleteCustomer = deleteCustomer; init(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function CustomerCtrl($scope, $location, CustomerService) {\n $scope.editRecord = editRecord;\n\n init();\n\n\n /**\n * Initilize customer view\n */\n function init() {\n getCustomers();\n $scope.columns = [{\n field: 'id',\n ...
[ "0.7736925", "0.7033842", "0.69767827", "0.6797997", "0.64685017", "0.6421705", "0.637626", "0.6371723", "0.6339161", "0.63387", "0.6244434", "0.6184998", "0.6165084", "0.6120268", "0.6114863", "0.60838795", "0.60604477", "0.60602987", "0.60554194", "0.60192394", "0.6004746",...
0.8087299
0
Fetch customer by ID
function getCustomer(id) { if (id === 'new') { $scope.customer = {}; } else { CustomerService.getCustomer(id).success(function(cust) { $scope.customer = cust; }).error(function() { $location.path('/customer')...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "fetchSpecificCustomers(id) {\r\n return Api().get('/customers/' + id)\r\n }", "getCustomer(id) {\n this.CustomerService.fetch(id)\n .then(data => {\n });\n }", "function getCustomer(id) {\n return $http.get(urlBase + '/' + id);\n }", "static async get(id)...
[ "0.85824883", "0.8200478", "0.8056254", "0.77838945", "0.7733826", "0.7703143", "0.7527368", "0.7394031", "0.73279154", "0.72962636", "0.726401", "0.71711946", "0.71695083", "0.69669473", "0.6952274", "0.6894783", "0.68675745", "0.6845316", "0.68266976", "0.6805681", "0.67626...
0.72554857
11
Navigate back to customer view
function back() { $location.path('/customer'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function back() {\n window.history.back();\n //director.navigateTo({ path: 'customer-service-dashboard' });\n }", "function goBack() {\n\t\t\t$state.go('^.detail', {id: vm.order._id});\n\t\t}", "function goBack() {\n\t\t\t$state.go('^.detail', {id: vm.basket._id});\n\t\t}", "function goBack()\n ...
[ "0.787522", "0.74264014", "0.72758543", "0.7244841", "0.7244565", "0.72435147", "0.72304296", "0.71976274", "0.7189385", "0.71742946", "0.71742946", "0.7168386", "0.71559685", "0.7138332", "0.7056893", "0.70057726", "0.6952327", "0.6922826", "0.69195503", "0.6882214", "0.6867...
0.762941
1
Save changes to backend
function updateCustomer() { var cust = $scope.customer; CustomerService.save(cust) .success(function() { $location.path('/customer'); $scope.status = 'Updated Customer! Refreshing customer list.'; }) .error(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "save () { this.store.saveSync() }", "async save() {\n // Check if anything has changed or stop here.\n const originData = await loadDataObject(this.dataKey)\n\n if (this.data === originData) {\n console.log('Nothing changed here for ' + this.dataKey)\n return\n }\n\n // Con...
[ "0.7196912", "0.71599746", "0.7034844", "0.6934265", "0.6822088", "0.67294645", "0.67288476", "0.6727072", "0.6726243", "0.67181414", "0.66599685", "0.66376305", "0.66329455", "0.6603908", "0.65659904", "0.65189064", "0.6513947", "0.6487232", "0.6446206", "0.6437121", "0.6402...
0.0
-1
CustomerCtrl.$inject = ['$scope', '$location', 'CustomerService']; [CustomerCtrl The Controller entry point]
function CustomerCtrl($scope, $location, CustomerService) { $scope.editRecord = editRecord; init(); /** * Initilize customer view */ function init() { getCustomers(); $scope.columns = [{ field: 'id', width: '10%...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function CustomerController($scope){\n\t$scope.name = {};\n\t$scope.sendMessage = function(){};\n}", "function init() {\n $scope.customers = customersService.getCustomers();\n }", "function RegionController($scope, $location, applicationState, Choko) {\n}", "function ItemController($scope, $location, app...
[ "0.69750106", "0.6839959", "0.6674538", "0.6610232", "0.646482", "0.6445719", "0.6373643", "0.6315714", "0.6301835", "0.6284736", "0.6205624", "0.61309856", "0.61015147", "0.6089282", "0.6044989", "0.60433346", "0.6022436", "0.60218227", "0.60165095", "0.601332", "0.6002339",...
0.69879645
0
Fetch customer data from backend
function getCustomers() { CustomerService.getCustomers() .success(function(custs) { $scope.gridOpts.data = custs; }) .error(function(error) { $scope.status = 'Unable to load customer data: ' + error.message; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "fetchCustomers() {\r\n return Api().get('/customers')\r\n }", "function getCustomerList() {\n\t// TODO: add logic to call backend system\n\n\n}", "getCustomer(id) {\n this.CustomerService.fetch(id)\n .then(data => {\n });\n }", "async getCustomer() {\n const cus...
[ "0.7917543", "0.78873885", "0.76318765", "0.7561359", "0.7397374", "0.7371728", "0.73368716", "0.70844597", "0.70170873", "0.7007184", "0.70030755", "0.6932696", "0.6927104", "0.69040364", "0.68959045", "0.68951917", "0.6894722", "0.6886335", "0.68635577", "0.6847097", "0.684...
0.7176108
7
HeatCtrl.$inject = ['$scope', 'HeatService']; [HeatCtrl description]
function HeatCtrl($scope, heatService) { /*jshint validthis: true */ var vm = this; vm.f2c = f2c; vm.c2f = c2f; init(); /** * Inits the ctrl. */ function init() { $scope.defaultValue = { celsius: 0.0, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "constructor() {\n 'ngInject';\n }", "constructor() {\n 'ngInject';\n }", "function userCtrl($scope) {\n \n }", "function RegionController($scope, $location, applicationState, Choko) {\n}", "function featuresController($scope, dal, notifications) {\r\n\r\n //PARAMS\r\n var vm = thi...
[ "0.6378432", "0.6378432", "0.6373535", "0.62616366", "0.62307477", "0.6227112", "0.62248677", "0.6207507", "0.6168871", "0.6135521", "0.61319816", "0.6107525", "0.60400665", "0.6033046", "0.6021182", "0.60149145", "0.59980524", "0.5994313", "0.59938", "0.59352493", "0.5864851...
0.73926765
0
Sets the DataTable up. Should be called on page load.
function init_analytics_data_table(table) { table.addColumn("string", "Name"); table.addColumn("datetime", "Timestamp"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setDataTable() \n{\n\tvar oTable = $('#lookupmasterdetails').DataTable({\n\t\tresponsive : true,\n\t\tdata : dataSet,\n\t\tselect : true,\n\t\t\"paging\" : true,\n\t\t\"bDestroy\" : true\n\t});\n}", "function initTable() {\n // set up the table column names we want to use in the table\n var columns = ...
[ "0.71567965", "0.70832825", "0.6955379", "0.6825458", "0.67681336", "0.67550635", "0.67543155", "0.6731219", "0.67306274", "0.67251986", "0.6721476", "0.6683672", "0.66544914", "0.66527504", "0.6633842", "0.6618837", "0.6614332", "0.66069275", "0.6560621", "0.6527051", "0.651...
0.5834162
94
Sets the checkin habits data table up. Should be called on page load.
function init_checkin_habits_data_table(table) { table.addColumn("string", "Day"); // Add hour columns $.each(["12 am", "2", "4", "6", "8", "10 am", "12 pm", "2", "4", "6", "8", "10 pm"], function (idx, value) { table.addColumn("number", value); }); // Add days. $.each(["Sun", "Mon", "Tue", "Wed", "Thu", "Fri...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function update_checkin_habits_html_table(data_table) {\n\tvar i = 0;\n\tvar j = 0;\n\n\tvar $table = $(\"#analytics-checkin-habits\");\n\n\t// Build header row.\n\tvar header_row = \"<tr>\";\n\tfor (i = 0; i < data_table.getNumberOfColumns(); i++) {\n\t\theader_row += \"<th>\" + data_table.getColumnLabel(i) + \"<...
[ "0.69156885", "0.61158335", "0.61076385", "0.6092613", "0.596893", "0.58244824", "0.5679493", "0.5672861", "0.5660904", "0.56608355", "0.5595404", "0.5479275", "0.539032", "0.5346791", "0.53439194", "0.5328267", "0.529432", "0.5245036", "0.52318764", "0.5220787", "0.52169526"...
0.7315196
0
Increments the correct counter in the checkin habits data table. Pass in a date.
function increment_checkin_habits_counter(timestamp, place_name, place_id) { // Get the row to modify. var row = timestamp.getDay(); // Get column to modify. var column; switch (timestamp.getHours()) { case 0: case 1: column = 1; break; case 2: case 3: column = 2; break; case 4: case 5: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function incrementTestCaseDate(){\n if (process.env.TEST_CASE_NUMBER) {\n return knex.raw(`\n UPDATE hearings \n SET date = (date + interval '1 day')\n WHERE case_id = '${process.env.TEST_CASE_NUMBER}'\n `)\n }\n}", "function incrementDate() {\n setDate(add...
[ "0.6129352", "0.6078876", "0.5680667", "0.5528496", "0.5488436", "0.53022623", "0.5297801", "0.5263194", "0.52561927", "0.52044165", "0.51802665", "0.5161003", "0.5120443", "0.51078814", "0.5099614", "0.50913626", "0.5075798", "0.5073706", "0.5067906", "0.5044292", "0.5041283...
0.6994744
0
Updates the checkin habits HTML table.
function update_checkin_habits_html_table(data_table) { var i = 0; var j = 0; var $table = $("#analytics-checkin-habits"); // Build header row. var header_row = "<tr>"; for (i = 0; i < data_table.getNumberOfColumns(); i++) { header_row += "<th>" + data_table.getColumnLabel(i) + "</th>"; } header_row += "</t...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function updateTable() {\n var rowCount = 5;\n if(pageId == 'page-screen')\n rowCount = 8;\n\n // Build the new table contents\n var html = '';\n for(var i = getGuessesCount() - 1; i >= Math.max(0, getGuessesCount() - row...
[ "0.6008457", "0.57015634", "0.56658196", "0.52996683", "0.52579105", "0.5245452", "0.52040863", "0.51301736", "0.5097612", "0.5094924", "0.5088619", "0.50853455", "0.50782204", "0.50242174", "0.50049293", "0.49942285", "0.49905375", "0.49882638", "0.49863303", "0.49784324", "...
0.7355698
0
Adds a row to the specified analytics table.
function add_analytics_row(table, name, timestamp) { // Check for greater than zero rows. if (table.getNumberOfRows() > 0) { // Don't add the same name twice in a row on the same day. var last_name = table.getValue(table.getNumberOfRows() - 1, 0); var last_ts = table.getValue(table.getNumberOfRows() - 1, 1); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function appendRow(row)\n{\n var that = this;\n\n function exists(item)\n {\n return that.identifier && item[that.identifier] === row[that.identifier];\n }\n\n if (!this.rows.contains(exists))\n {\n this.rows.push(row);\n return true;\n }\n\n return false;\n}", "funct...
[ "0.62301475", "0.60947037", "0.6054823", "0.59532166", "0.5942438", "0.59332544", "0.58943146", "0.58878034", "0.58663714", "0.5815541", "0.57772183", "0.5747594", "0.57007146", "0.56967676", "0.56757164", "0.56502634", "0.5645976", "0.56293964", "0.5616634", "0.56061435", "0...
0.6775101
0
Returns an array with the grouped analytics and the sorted rows numbers, in that order.
function distill_analytics(table, filter) { switch (filter) { case "all": // Don't filter the checkins. var grouped = google.visualization.data.group(table, [0], [Analytics.count_column]); return [grouped, grouped.getSortedRows([{ column: 1, desc: true }]).slice(0,5)]; break; case "month": // Filter...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "getSummaryArray() {\n var summaryArray = [];\n for (var i = 0; i < this.rows.length; i++) {\n var bindedField = this.rows[i].bindedField;\n summaryArray.push({\n property: bindedField.property,\n value: bindedField.value,\n hierarchy: bindedField.hierarchy,\n exportName:...
[ "0.5602974", "0.55477035", "0.53527284", "0.53305167", "0.5319268", "0.53057563", "0.5248413", "0.5240381", "0.52318037", "0.5176504", "0.5156924", "0.5086266", "0.50759965", "0.5070644", "0.5065028", "0.5065028", "0.5065028", "0.5065028", "0.5065028", "0.5060716", "0.5037176...
0.51297873
11
given an array, replace object.values with object.children This is to use "children" accessor of d3
function changeValuesToChildren(arr){ for (var i=0; i < arr.length; i++){ if (Array.isArray(arr[i].values)){ arr[i].children = arr[i].values delete arr[i].values changeValuesToChildren(arr[i].children) } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function map(array, depth){\n\t\t\tif(!array){\n\t\t\t\tutils.error(\"depth \"+ depth + \"error, we assume that all data has same hierarchies\");\n\t\t\t}\n\t\t\tvar i = -1,\n\t\t\tn = array.length,\n\t\t\t\tkey = keys[depth++],\n\t\t\t\tkeyValue,\n\t\t\t\t\tobject,\n\t\t\t\t\tvaluesByKey = new Map(),\n\t\t\t\t\t\...
[ "0.61004573", "0.60829026", "0.6015905", "0.6015905", "0.5912374", "0.58292246", "0.57788813", "0.5731752", "0.5580445", "0.55798244", "0.55798244", "0.55798244", "0.55798244", "0.55798244", "0.55588084", "0.54948074", "0.5467731", "0.54226637", "0.5417751", "0.5413895", "0.5...
0.75589174
0
Toggle children on click.
function click(d) { if (d.children) { d._children = d.children; d.children = null; } else { d.children = d._children; d._children = null; } update(d); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "toggleChildren() {\n\t\tthis.setState({\n\t\t\tlinksVisible: !this.state.linksVisible\n\t\t});\n\t}", "function toggle_sidebar_sublist()\n{\n $(\".navbar_right_sidebar .sidebar_main_item.expandable\").click(function(){\n var child_container=$(this).find(\".subele_container\");\n if (child_contai...
[ "0.7110301", "0.6869267", "0.6655963", "0.6654497", "0.665069", "0.66472757", "0.66196424", "0.6617967", "0.6611529", "0.6591686", "0.654975", "0.6496521", "0.6458841", "0.64187694", "0.6404308", "0.63751197", "0.6367944", "0.6303494", "0.6300836", "0.6289716", "0.6254156", ...
0.5865026
65
TODO: unused: big repos cause too many calls
async function fetchAllPulls(owner, repo) { const queryString = ` query p1 ($owner:String!, $repo:String!, $after:String) { repository(owner:$owner, name:$repo) { pullRequests (first:100, after:$after) { pageInfo { hasNextPage endCursor } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async fetchRepos_BIG() {\n let repos = [];\n const NUM_PER_PAGE = 100;\n let pageNumber = 1;\n\n do {\n let response = await this.callApi(`/users/${this.username}/repos?page=${pageNumber}?per_page=${NUM_PER_PAGE}`);\n repos = repos.concat(response);\n pa...
[ "0.6596456", "0.649453", "0.6481715", "0.6388741", "0.6347751", "0.6219529", "0.620395", "0.61965275", "0.6179274", "0.6166891", "0.6140586", "0.6117277", "0.6107372", "0.6103003", "0.60648257", "0.6038746", "0.60018903", "0.5997092", "0.59918356", "0.59890074", "0.5985795", ...
0.0
-1
add any needed code to ensure that the smurfs collection exists on state and it has data coming from the server Notice what your map function is looping over and returning inside of Smurfs. You'll need to make sure you have the right properties on state and pass them down to props.
componentDidMount() { axios .get(smurfUrl) .then(smurfs => this.updateSmurfs(smurfs.data)) .catch(error => this.updateErrors(error.message)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "componentDidMount() {\n this.props.getSmurfs();\n }", "componentDidMount() {\n this.getSmurfs()\n }", "FetchSmurfs() {\n axios\n .get(`${baseUrl}`)\n .then(res => {\n this.setState({ smurfs: res.data });\n })\n .catch(err => {\n console.log(console.log(err));\n ...
[ "0.63226986", "0.6292785", "0.6132513", "0.59032243", "0.58333355", "0.5721649", "0.5717143", "0.5658106", "0.5642341", "0.56170726", "0.55648905", "0.55181134", "0.54949737", "0.54889476", "0.5487633", "0.54737157", "0.5459405", "0.5457376", "0.54327446", "0.5430614", "0.542...
0.58219564
5
how to put inputFilter and inputSorted to work together? when filtering by achieved and choosing all dreams, how can I use search if they are not connected?
inputSorted() { const text = document.querySelector('#sort').value document.querySelector("#dream-list").innerHTML = "" if(text === "all" ) { const allDreams = Dream.all allDreams.forEach(dream => dream.addToDom()) } else{ const filtered = Dream.al...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "onFilterInputChange(e){\n\n\t\tconst sortedList = this.state.sortedItems;\n const updatedList = sortedList.filter(function(item){\n return (item.value.title.toLowerCase().search(\n e.target.value.toLowerCase()) !== -1) ||\n\t\t\t\t(item.value.field.toLowerCase().search(\n\t e.target.value.toLow...
[ "0.6710108", "0.6587919", "0.64114165", "0.6405869", "0.62972987", "0.6267772", "0.6117226", "0.6094952", "0.6080336", "0.6065456", "0.6053103", "0.6047486", "0.60424405", "0.60361093", "0.6031605", "0.602683", "0.60234505", "0.6007178", "0.59971356", "0.5986241", "0.59851784...
0.7250602
0
added for live coding challenge
repeatPizza() { // document.querySelector("#dream-list").innerHTML = "" const dreamInfo = { name: "Cheese", image_url: "https://dennys.id/wp-content/uploads/2019/04/skillets-veggie.jpg", description: "Pepperoni pizza is good", achieved: "Yes", ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function solution(s) {\n\n}", "function challenge2() {\n\n}", "private internal function m248() {}", "function challenge3() {\n\n}", "function polybius(input, encode = true) {\n let encoded = [];\n let decrypt = [];\n let numberPairs = [];\n let arrayOfNumbers = [];\n let codedLetter2;\n ...
[ "0.6151223", "0.6105453", "0.6032759", "0.6015568", "0.58887315", "0.58871514", "0.58871514", "0.5852495", "0.57973224", "0.5653254", "0.56141907", "0.56100696", "0.56021273", "0.56013787", "0.55677074", "0.5560161", "0.5539002", "0.5519199", "0.5513869", "0.55072486", "0.546...
0.0
-1
Update the enemy's position, required method for game Parameter: dt, a time delta between ticks
update(dt) { // You should multiply any movement by the dt parameter // which will ensure the game runs at the same speed for // all computers. this.x += this.speed * dt; if (this.x > 500) { this.x = -100; } if (player.x...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "update(dt) {\n\t\t//Set enemy speed\n \tthis.x += this.s*dt;\n\n \tthis.checkOutside();\n\t}", "update(dt) {\n // You should multiply any movement by the dt parameter\n // which will ensure the game runs at the same speed for\n // all computers.\n // handles enemy movement- use dt(time delta) t...
[ "0.8167918", "0.801686", "0.7931508", "0.7909292", "0.78075486", "0.778639", "0.77530104", "0.7751094", "0.7711367", "0.77112335", "0.7692084", "0.7676698", "0.7666261", "0.7660824", "0.7598044", "0.75639874", "0.75333107", "0.74965864", "0.7484057", "0.7440003", "0.7399002",...
0.6367208
81
Draw the enemy on the screen, required method for game
render() { ctx.drawImage(Resources.get(this.sprite), this.x, this.y); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function drawEnemy(EnemyX,EnemyY){\n image(Enemy,EnemyX,EnemyY,50,50);\n}", "draw() {\n this.drawExistingEntities();\n this.disableEntities();\n this.blockHeroMovement();\n this.killedEnemiesCounter();\n }", "function drawScreen() {\n clearScreen()\n updateEnemyPosition()\n checkforCollisions(...
[ "0.76843923", "0.7487544", "0.7386564", "0.7359986", "0.7287564", "0.7205077", "0.7126465", "0.7106327", "0.70885825", "0.7072633", "0.7021551", "0.69351256", "0.6835809", "0.6813989", "0.6801824", "0.6794051", "0.6773389", "0.6772969", "0.6761267", "0.6755159", "0.674638", ...
0.0
-1
Esse construtor permite que componentes vizinhos interajam entre si. Nesse caso o input na barra de pesquisa filtra o objeto robo.
constructor(){ super() this.state = { robo: [], //Campo de pesquisa começa vazio a medida que for inputado valores começara a filtragem. campoPesquisa: '' } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "constructor (nombre, apellido,sueldo, cargo){ //solicitio los parametros incluidos los que vincule\n super(nombre,apellido) // con super selecciono los parametros que pide la clase vinculada\n this.sueldo= sueldo;\n this.cargo=cargo;\n }", "constructor(nombre,saldo,telefono,tipo){\n ...
[ "0.67152363", "0.63238454", "0.6147693", "0.6128368", "0.5950366", "0.59482205", "0.59242886", "0.5909258", "0.59037864", "0.5897219", "0.5885139", "0.5838378", "0.581493", "0.5777934", "0.5775704", "0.5756931", "0.5722376", "0.5711434", "0.5684991", "0.5656685", "0.5652563",...
0.6690702
1
>190 repeat return a string / rest parameters / ...
function max( ...numbers){ let result = -Infinity; for(let number of numbers){ if(number > result) result = number; } return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function rest() {\n return 'zzzzz...';\n}", "function sc_string() {\n for (var i = 0; i < arguments.length; i++)\n\targuments[i] = arguments[i].val;\n return \"\".concat.apply(\"\", arguments);\n}", "function repeat(what, times) {\n\tvar result = '';\n\twhile (times > 0) {\n\t\tresult += what;\n\t\tti...
[ "0.6562191", "0.60405695", "0.6033777", "0.60162574", "0.6015724", "0.60135305", "0.5932611", "0.5920955", "0.5835468", "0.58201885", "0.578752", "0.57817125", "0.5781057", "0.5779487", "0.5762057", "0.5717376", "0.5712577", "0.5705719", "0.5686093", "0.56775403", "0.56687975...
0.0
-1
>spreads to array / Math Object
function randomPointOnCircle(radius){ let angle = Math.random() * 2 * Math.PI; return {x: radius * Math.cos(angle), y: radius * Math.sin(angle)}; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function spread(o) { return { ...o }; }", "function __spreadArray(to, from) {\n for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)\n to[j] = from[i];\n return to;\n }", "function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++)...
[ "0.6163921", "0.6142613", "0.5880331", "0.581748", "0.5785063", "0.57788384", "0.57788384", "0.57788384", "0.57788384", "0.57788384", "0.57788384", "0.57788384", "0.57788384", "0.57788384", "0.57788384", "0.57788384", "0.57496613", "0.5740669", "0.57114786", "0.56890166", "0....
0.0
-1
Loads a specific goal.
function loadGoal(worker, goalId) { if (goalId != null) { var goal = datastore.readGoal(goalId); worker.port.emit("GoalLoaded", goal); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function loadGoals(data) {\n _goals = data;\n}", "function loadGoalSummary(worker, goalId) {\n if (goalId != null) {\n var summary = datastore.readLogEntriesByGoal(goalId, 30)\n worker.port.emit(\"GoalSummaryLoaded\", summary);\n }\n}", "getGoal(goalId) {\n return fetch(`${config.API_ENDPOINT}/goal...
[ "0.66969186", "0.60212016", "0.5897612", "0.5609576", "0.546582", "0.5451758", "0.5351916", "0.5248549", "0.51979625", "0.518171", "0.5154923", "0.5085495", "0.5063631", "0.5060534", "0.50566673", "0.50387293", "0.50368655", "0.50025237", "0.4996387", "0.4995541", "0.49881905...
0.7647578
0
Adds a new goal.
function addGoal(worker, goal) { if (goal != null) { goal = datastore.createGoal(goal); worker.port.emit("GoalAdded", goal); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function addGoal() {\n\t\t\tif (vm.adding == false) {\n\t\t\t\tvm.adding = true;\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// Make sure that there are values in the\n\t\t\t// fields\n\t\t\tif (vm.goalName === '' || vm.goalImportance === '') {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// Create a new goal\n\t\t\tvar goal = {};\n...
[ "0.79856825", "0.6849999", "0.6810557", "0.63432723", "0.60588056", "0.60256296", "0.60256296", "0.5850969", "0.5558206", "0.5459917", "0.53296745", "0.5197274", "0.5183026", "0.51686543", "0.5160888", "0.5153987", "0.51058966", "0.5079764", "0.50449413", "0.50128853", "0.499...
0.7616285
1
Updates an existing goal.
function updateGoal(worker, goal) { if (goal != null) { goal = datastore.updateGoal(goal); worker.port.emit("GoalUpdated", goal); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async function update(req, res) {\n try {\n const goal = await Goal.findById(req.params.goalId);\n\n if (goal === null) {\n return res.status(404).json({ message: \"Goal not found.\" });\n }\n\n // Only allow deletion of own goals\n if (String(req.user._id) === String(goal.user._id)) {\n ...
[ "0.68599373", "0.6844596", "0.657004", "0.6279191", "0.5909266", "0.55486345", "0.550924", "0.550924", "0.550924", "0.5491711", "0.5321404", "0.52908057", "0.5240919", "0.51948893", "0.51832944", "0.51535726", "0.5109712", "0.51036376", "0.5044857", "0.5042262", "0.50110424",...
0.7175791
0
Deletes an existing goal.
function deleteGoal(worker, goalId) { if (goalId != null) { datastore.deleteGoal(goalId); worker.port.emit("GoalDeleted", goalId); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "deleteGoal(request, response) {\n goalStore.removeGoal(request.params.userid, request.params.id);\n response.redirect('back');\n }", "function deleteGoal(goal_id) {\n console.log(goal_id)\n axios.delete(`/api/goals/${goal_id}`).then(response => {\n console.log(response);\n ...
[ "0.7114383", "0.70278025", "0.69663674", "0.64627016", "0.62605965", "0.5973848", "0.5575794", "0.53324544", "0.52901393", "0.5279329", "0.5227657", "0.5225524", "0.52189875", "0.52110165", "0.5200728", "0.51959604", "0.51950216", "0.51931316", "0.5153899", "0.5150483", "0.51...
0.72668606
0
GOAL: NOTES // /////////////////////////////////////////////////////////////////////////// Loads all notes of a specific task.
function loadGoalNotes(worker, goalId) { if (goalId) { var notes = datastore.readGoalNotes(goalId); worker.port.emit("GoalNotesLoaded", notes); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function loadNotes(worker, taskId) {\n if (taskId) {\n var notes = datastore.readTaskNotes(taskId);\n worker.port.emit(\"NotesLoaded\", notes);\n }\n}", "function loadNotes() {\n noteId = 0;\n idx = 1;\n notes = [];\n document.getElementById('data').innerHTML = '';\n\n ...
[ "0.77490234", "0.714542", "0.67694235", "0.67076814", "0.66799253", "0.6646694", "0.6497229", "0.64937925", "0.64382696", "0.6352013", "0.63474256", "0.6310427", "0.6298425", "0.6267879", "0.62386256", "0.6231978", "0.61904407", "0.6185427", "0.6184763", "0.61513555", "0.6130...
0.6646749
5
Loads a specific note.
function loadGoalNote(worker, noteId) { if (noteId != null) { var note = datastore.readNote(noteId); worker.port.emit("GoalNoteLoaded", note); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function loadNote(worker, noteId) {\n if (noteId != null) {\n var note = datastore.readNote(noteId);\n worker.port.emit(\"NoteLoaded\", note);\n }\n}", "function loadNotes(worker, taskId) {\n if (taskId) {\n var notes = datastore.readTaskNotes(taskId);\n worker.port.emit(\"NotesLoaded\", notes);\n...
[ "0.78009856", "0.65826184", "0.6414041", "0.6321216", "0.6311428", "0.6283839", "0.62827486", "0.61970717", "0.61266047", "0.6105879", "0.6093509", "0.60569024", "0.6009658", "0.58771026", "0.58737016", "0.58468366", "0.5821984", "0.57980174", "0.5790491", "0.5780928", "0.568...
0.72276115
1
Adds a new note.
function addGoalNote(worker, note) { if (note != null) { note = datastore.createNote(note); worker.port.emit("GoalNoteAdded", note); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "addNote () {\n const time = Date.now()\n // Default new note\n const note = {\n id: String(time),\n title: 'New note ' + (this.notes.length + 1),\n content: \"**Hi!** This notebook is using [markdown](https://github.com/adam-p/markdown-h...
[ "0.8345926", "0.8156594", "0.814471", "0.8136532", "0.79707325", "0.7922103", "0.7797839", "0.7719247", "0.7708589", "0.76989484", "0.76495576", "0.76231104", "0.7605257", "0.7584652", "0.7551716", "0.7541581", "0.7502714", "0.75009304", "0.7458113", "0.7380265", "0.73735017"...
0.6931292
32
Updates an existing note.
function updateGoalNote(worker, note) { if (note != null) { note = datastore.updateNote(note); worker.port.emit("GoalNoteUpdated", note); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function updateNote(worker, note) {\n if (note != null) {\n note = datastore.updateNote(note);\n worker.port.emit(\"NoteUpdated\", note);\n }\n}", "function updateNote(req, res) {\n Note.findByIdAndUpdate(\n req.params.id,\n {\n $set: {\n title: req.body.title,\n body: req.body....
[ "0.7467224", "0.717873", "0.70171463", "0.6981838", "0.68415636", "0.6834212", "0.68333673", "0.67583543", "0.6680375", "0.6656779", "0.6566746", "0.65390205", "0.64495826", "0.6432617", "0.6288902", "0.62577087", "0.6242929", "0.6200992", "0.61654085", "0.61592335", "0.61502...
0.6853127
4
Deletes an existing note.
function deleteGoalNote(worker, noteId) { if (noteId != null) { datastore.deleteNote(noteId); worker.port.emit("GoalNoteDeleted", noteId); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function deleteNote(event) {\n event.preventDefault();\n const element = event.target;\n\n const note = $(this).data('id');\n\n $.ajax({\n method: 'delete',\n url: `/api/notes/${note}`,\n headers: { 'X-CSRF-Token': token },\n }).done(() => {\n ...
[ "0.75940394", "0.7587106", "0.7398375", "0.7326879", "0.73168516", "0.7185912", "0.7158054", "0.715111", "0.71295506", "0.70740175", "0.70443845", "0.7017453", "0.70065475", "0.6971772", "0.69519013", "0.6936821", "0.6897642", "0.6834923", "0.682091", "0.68058825", "0.6754204...
0.6658649
35
GOAL: SUMMARY // /////////////////////////////////////////////////////////////////////////// Loads the goal summary.
function loadGoalSummary(worker, goalId) { if (goalId != null) { var summary = datastore.readLogEntriesByGoal(goalId, 30) worker.port.emit("GoalSummaryLoaded", summary); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "fetchSummary() {\n return this.makeRequest('summary')\n }", "async function getSummary () {\n try {\n return (await axios.get(`${backendAPI}/tracker/summary`)).data;\n } catch (error) {\n throw generateError(error);\n }\n }", "func...
[ "0.63890815", "0.6194099", "0.60921216", "0.6075933", "0.57185477", "0.5627658", "0.5583151", "0.55401117", "0.5534001", "0.5506674", "0.5496268", "0.54296243", "0.5428423", "0.5415897", "0.54024947", "0.53932154", "0.5388642", "0.5328969", "0.52925664", "0.52463526", "0.5241...
0.7201698
0
TASKS // /////////////////////////////////////////////////////////////////////////// Loads all tasks of a specific goal.
function loadTasks(worker, goalId) { if (goalId != null) { var tasks = datastore.readTasks(goalId); worker.port.emit("TasksLoaded", tasks); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "getTasks() {\n var self = this;\n\n // Get data from server\n getAPITasks(self);\n }", "function loadTasks(){\n return fetch(\"/task/json\").then(response=>response.json());\n }", "function loadTasks() {\n for (let j = 0; j < toDoList.length; j++) {\n // Checking if the Task has been ma...
[ "0.68775004", "0.68122977", "0.6772915", "0.6727799", "0.6650313", "0.66439223", "0.66103256", "0.65961677", "0.6513648", "0.64822435", "0.64539725", "0.6452431", "0.6315209", "0.63005394", "0.6299773", "0.6259334", "0.6259264", "0.62551266", "0.62533385", "0.61857444", "0.61...
0.74896187
0
Loads a specific task.
function loadTask(worker, taskId) { if (taskId) { var task = datastore.readTask(taskId); worker.port.emit("TaskLoaded", task); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function loadTask() {\n $this = $(this);\n\n // determine the type of the task\n switch ($this.attr(\"type\")) {\n case \"info\" : $(\"#INFO\").html(jsonData[0].sequences[$this.attr(\"seq\")].tasks[$this.attr(\"task\")].lines);\n break;\n case \"code\" : lines = jsonData[0].se...
[ "0.71396106", "0.68588835", "0.67844594", "0.6734795", "0.6641475", "0.6444666", "0.64199746", "0.6289201", "0.6284542", "0.6284542", "0.6235675", "0.6234399", "0.6100347", "0.60809046", "0.6005697", "0.6003814", "0.5974337", "0.5896702", "0.58745754", "0.5810193", "0.5791355...
0.7521421
0
Adds a new task.
function addTask(worker, task) { if (task != null) { task = datastore.createTask(task); worker.port.emit("TaskAdded", task); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "addNewTask() {\n let task = new Task(this.newTaskName);\n task.id = new Date().getMilliseconds();\n this.tasks.push(task);\n }", "function addTask() {\n Task.addTask(info.newTask);\n info.newTask = \"\";\n }", "function addTask(task){\n\ttasks.push(task);\n}", "function addNewT...
[ "0.83821356", "0.8282277", "0.8242113", "0.8020116", "0.79634064", "0.7924768", "0.785861", "0.76619154", "0.76385033", "0.7604146", "0.75931525", "0.7586507", "0.7552222", "0.7498343", "0.7451415", "0.74405634", "0.74328375", "0.7385623", "0.7362363", "0.73591435", "0.735625...
0.71764386
28
Updates an existing task.
function updateTask(worker, task) { if (task != null) { task = datastore.updateTask(task); worker.port.emit("TaskUpdated", task); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "updateTask(task) {\n return instance.put('todo-lists/tasks', task);\n }", "function updateTask(task, id){\n API.updateTask(task, id)\n .then(()=>{\n getTasks();\n }).catch();\n }", "function updateTask(taskId, task) {\n return TaskModel.update({\n ...
[ "0.8286944", "0.79667777", "0.7855238", "0.7656611", "0.75148106", "0.74672437", "0.7460935", "0.7416753", "0.737171", "0.73517954", "0.7264842", "0.72531277", "0.7201471", "0.7143345", "0.7108432", "0.68754494", "0.6868817", "0.6851651", "0.68400496", "0.68282527", "0.676793...
0.7169176
13
Deletes an existing task.
function deleteTask(worker, taskId) { if (taskId) { datastore.deleteTask(taskId); worker.port.emit("TaskDeleted", taskId); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function deleteTask (taskId, callback) {\n var taskKey = datastore.key([\n 'Task',\n taskId\n ]);\n\n datastore.delete(taskKey, function (err) {\n if (err) {\n return callback(err);\n }\n\n console.log('Task %d deleted successfully.', taskId);\n return callback(null);\n });\n}", "funct...
[ "0.7991364", "0.7835681", "0.76600504", "0.7425654", "0.73694235", "0.73071796", "0.7245951", "0.71274096", "0.7108529", "0.7062627", "0.7058851", "0.6969647", "0.6915041", "0.6912147", "0.6856949", "0.6812015", "0.6805192", "0.6804654", "0.67732155", "0.673696", "0.6736109",...
0.71996164
7
TASK: NOTES // /////////////////////////////////////////////////////////////////////////// Loads all notes of a specific task.
function loadNotes(worker, taskId) { if (taskId) { var notes = datastore.readTaskNotes(taskId); worker.port.emit("NotesLoaded", notes); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function loadNotes() {\n noteId = 0;\n idx = 1;\n notes = [];\n document.getElementById('data').innerHTML = '';\n\n chrome.storage.sync.get('todos_notes', function(result) {\n notes = result.todos_notes;\n if (!notes) {\n notes = [''];\n ...
[ "0.73662674", "0.6998332", "0.68746316", "0.68375903", "0.6767326", "0.65885454", "0.6583164", "0.6567407", "0.65639997", "0.6553672", "0.6493453", "0.64496535", "0.6433105", "0.64036006", "0.63666654", "0.63643223", "0.6359745", "0.6349713", "0.63330245", "0.6321417", "0.631...
0.79581
0
Loads a specific note.
function loadNote(worker, noteId) { if (noteId != null) { var note = datastore.readNote(noteId); worker.port.emit("NoteLoaded", note); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function loadGoalNote(worker, noteId) {\n if (noteId != null) {\n var note = datastore.readNote(noteId);\n worker.port.emit(\"GoalNoteLoaded\", note);\n }\n}", "function loadNotes(worker, taskId) {\n if (taskId) {\n var notes = datastore.readTaskNotes(taskId);\n worker.port.emit(\"NotesLoaded\", n...
[ "0.72276115", "0.65826184", "0.6414041", "0.6321216", "0.6311428", "0.6283839", "0.62827486", "0.61970717", "0.61266047", "0.6105879", "0.6093509", "0.60569024", "0.6009658", "0.58771026", "0.58737016", "0.58468366", "0.5821984", "0.57980174", "0.5790491", "0.5780928", "0.568...
0.78009856
0
Adds a new note.
function addNote(worker, note) { if (note != null) { note = datastore.createNote(note); worker.port.emit("NoteAdded", note); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "addNote () {\n const time = Date.now()\n // Default new note\n const note = {\n id: String(time),\n title: 'New note ' + (this.notes.length + 1),\n content: \"**Hi!** This notebook is using [markdown](https://github.com/adam-p/markdown-h...
[ "0.8345926", "0.8156594", "0.814471", "0.8136532", "0.79707325", "0.7922103", "0.7797839", "0.7719247", "0.7708589", "0.76989484", "0.76231104", "0.7605257", "0.7584652", "0.7551716", "0.7541581", "0.7502714", "0.75009304", "0.7458113", "0.7380265", "0.73735017", "0.73682326"...
0.76495576
10
Updates an existing note.
function updateNote(worker, note) { if (note != null) { note = datastore.updateNote(note); worker.port.emit("NoteUpdated", note); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function updateNote(req, res) {\n Note.findByIdAndUpdate(\n req.params.id,\n {\n $set: {\n title: req.body.title,\n body: req.body.body\n }\n },\n {\n new: true\n }\n )\n .then(dbNoteData => res.status(200).json(dbNoteData))\n .catch(err => {\n console.log(e...
[ "0.717873", "0.70171463", "0.6981838", "0.6853127", "0.68415636", "0.6834212", "0.68333673", "0.67583543", "0.6680375", "0.6656779", "0.6566746", "0.65390205", "0.64495826", "0.6432617", "0.6288902", "0.62577087", "0.6242929", "0.6200992", "0.61654085", "0.61592335", "0.61502...
0.7467224
0
Deletes an existing note.
function deleteNote(worker, noteId) { if (noteId != null) { datastore.deleteNote(noteId); worker.port.emit("NoteDeleted", noteId); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function deleteNote(event) {\n event.preventDefault();\n const element = event.target;\n\n const note = $(this).data('id');\n\n $.ajax({\n method: 'delete',\n url: `/api/notes/${note}`,\n headers: { 'X-CSRF-Token': token },\n }).done(() => {\n ...
[ "0.75940394", "0.7587106", "0.7398375", "0.73168516", "0.7185912", "0.7158054", "0.715111", "0.71295506", "0.70740175", "0.70443845", "0.7017453", "0.70065475", "0.6971772", "0.69519013", "0.6936821", "0.6897642", "0.6834923", "0.682091", "0.68058825", "0.67542046", "0.675149...
0.7326879
3
TASK: BOOKMARKS // /////////////////////////////////////////////////////////////////////////// Loads all bookmarks of a specific task.
function loadBookmarks(worker, taskId) { if (taskId) { var bookmarks = datastore.readBookmarks(taskId); worker.port.emit("BookmarksLoaded", bookmarks); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function loadBookmarks(bm)\n {\n let lb = $(\"#listOfBookmarks\");\n\n\n //debug(bm);\n\n // bm and slider clear\n lb.empty();\n sliderBookMarks.empty();\n\n bm.sort((a, b) => {\n if (+a.pos > +b.pos)\n return 1;\n if (+a.pos < +b.po...
[ "0.6323143", "0.6235183", "0.6111281", "0.60934114", "0.60802215", "0.59930027", "0.59420866", "0.59180564", "0.5876568", "0.5822531", "0.5797092", "0.5745624", "0.57437575", "0.5710032", "0.56797236", "0.56623256", "0.5576672", "0.55458796", "0.55308443", "0.5471505", "0.545...
0.7711766
0
Loads a specific bookmark.
function loadBookmark(worker, bookmarkId) { if (bookmarkId != null) { var bookmark = datastore.readBookmark(bookmarkId); worker.port.emit("BookmarkLoaded", bookmark); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function loadBookmark(bookmark) {\n\t//stop();\n\tlocalStorage.setItem(\"bookmark\", $(bookmark).text());\n\twindow.location.href = $(bookmark).attr(\"href\");\n}", "async getBookmark (href) {\n await assertPermission(this.sender, 'app:bookmarks:read')\n assertString(href, 'Parameter one must be a URL')\n ...
[ "0.7166302", "0.64000344", "0.6276194", "0.61684924", "0.5792894", "0.5774499", "0.57555294", "0.57507384", "0.5708285", "0.5700449", "0.55829805", "0.5576335", "0.55464715", "0.55458075", "0.5545157", "0.5527746", "0.55254143", "0.55176485", "0.5479689", "0.54608506", "0.538...
0.7661554
0
Adds a new bookmark.
function addBookmark(worker, bookmark) { if (bookmark != null) { bookmark = datastore.createBookmark(bookmark); worker.port.emit("BookmarkAdded", bookmark); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function addBookmark() {\n let bmsvc = Cc[\"@mozilla.org/browser/nav-bookmarks-service;1\"]\n .getService(Ci.nsINavBookmarksService);\n let ios = Cc[\"@mozilla.org/network/io-service;1\"]\n .getService(Ci.nsIIOService);\n let bid = bmsvc.insertBookmark(bmsvc.unfiledBookmarksFolder, \n ...
[ "0.7723382", "0.77083683", "0.7532016", "0.72315735", "0.69268733", "0.68287027", "0.66642374", "0.65640557", "0.6522361", "0.64902914", "0.64545476", "0.64534986", "0.64437497", "0.643639", "0.63946897", "0.6373771", "0.6360955", "0.6290594", "0.6278893", "0.6245418", "0.619...
0.78617465
0
Updates an existing bookmark.
function updateBookmark(worker, bookmark) { if (bookmark != null) { bookmark = datastore.updateBookmark(bookmark); worker.port.emit("BookmarkUpdated", bookmark); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "update({ bookmark, body }, res) {\n let attributes = {\n }\n bookmark.update(attributes).then((h)=>{res.json(h)});\n }", "function setBookmark(){\n\tclearBookmarks();\n\taddBookmark();\n}", "function updateLink() {\n const url = urlInput.value;\n const name = nameInput.value;\n ...
[ "0.7514943", "0.70817596", "0.69961005", "0.65284467", "0.6333232", "0.63257104", "0.6245618", "0.6195501", "0.6194871", "0.6033913", "0.5981866", "0.5965718", "0.5946728", "0.59067094", "0.5881711", "0.58568746", "0.5794424", "0.5771467", "0.5763295", "0.5736614", "0.5661294...
0.79812175
0
Deletes an existing bookmark.
function deleteBookmark(worker, bookmarkId) { if (bookmarkId != null) { datastore.deleteBookmark(bookmarkId); worker.port.emit("BookmarkDeleted", bookmarkId); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function deleteBookmark() {\n\tvar bookmarkLink = $(bookmark).find('.bookmark-link');\n\tvar name = $(bookmarkLink).text();\n\tvar bookmarkUrl = $(bookmarkLink).attr('href');\n \n $.post('/delete-bookmark', {\"name\" : name, \"url\" : bookmarkUrl}, function(data) {\n \t}); \n\n window.location.href = \...
[ "0.7826224", "0.7132043", "0.6936273", "0.6871158", "0.6759788", "0.6748769", "0.66602325", "0.6616156", "0.6518392", "0.64664185", "0.6465376", "0.62350863", "0.6229382", "0.5992256", "0.59825414", "0.59623384", "0.5909737", "0.5806544", "0.57978475", "0.57568055", "0.571473...
0.7485098
1
TASK: SCREENSHOT // /////////////////////////////////////////////////////////////////////////// Load screenshots regarding a certain task.
function loadScreenshots(worker, taskId) { if (taskId != null) { var screenshots = datastore.readScreenshots(taskId); worker.port.emit("ScreenshotsLoaded", screenshots); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async takeScreenshot (id, screenshotPath) {\r\n await this.nightmareInstances[id].screenshot(screenshotPath);\r\n }", "takeScreenshot(scNumber, ssNumber) {\n cy.wait(1000)\n cy.screenshot(this.path + this.scenario + scNumber + '-' + ssNumber, { capture: 'viewport' })\n }", "async function take...
[ "0.6091631", "0.6068672", "0.6039616", "0.6027652", "0.59391624", "0.5870259", "0.5738786", "0.57310146", "0.57184064", "0.57046956", "0.57031447", "0.56432474", "0.5591534", "0.55705535", "0.55395246", "0.551046", "0.5507826", "0.54599893", "0.54451376", "0.54335636", "0.543...
0.7125835
0
TASK: ATTACHMENTS (DEPRECATED) //
function loadAttachments(worker, taskId) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async handleAttachments () {\n\t\t// not yet supported\n\t}", "function fixAttachmentLinks() {\n fixAttachmentLinksHelper('a', 'href');\n fixAttachmentLinksHelper('img', 'src');\n}", "function handleAttachmentAction(bot, inputs) {\r\n if (inputs.type == 'add reference') {\r\n addReference(bot, inputs...
[ "0.62181485", "0.58508605", "0.58278775", "0.56123453", "0.55462086", "0.5465009", "0.54431105", "0.5419681", "0.5418374", "0.5396792", "0.5366328", "0.5359315", "0.5346966", "0.53331333", "0.533194", "0.5326729", "0.53218657", "0.5319185", "0.52867395", "0.52609634", "0.5232...
0.52243155
21
TASK: LOG // /////////////////////////////////////////////////////////////////////////// Adds a new log entry.
function addLogEntry(worker, entry) { if (entry != null) { datastore.createLogEntry(entry); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function logData(entry) {\n fs.appendFile(\"log.txt\", entry + \"\\n\", function(error) {\n if(error) {\n console.log(error);\n }\n })\n}", "function EditLogItemInsert () {}", "function logLine(entry, delay) {\n journal.push({entry: entry, delay: delay || 1000});\n }", "fun...
[ "0.68855155", "0.66923296", "0.65750885", "0.6413012", "0.6276903", "0.6259565", "0.62330294", "0.6219916", "0.619423", "0.61509", "0.6141759", "0.60966414", "0.6067646", "0.60619175", "0.6058946", "0.605758", "0.60385936", "0.6009785", "0.59772795", "0.5972079", "0.59521866"...
0.6801146
1
Deletes a specific log entry.
function deleteLogEntry(worker, entryId) { if (entryId != null) { datastore.deleteLogEntry(entryId); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function deleteEntry (req, res) {\n logger.debug('Request recieved to cease entry by id', { loggerModule, URL: req.originalUrl, id: req.params.id })\n _performDatabaseUpdate(req, res, {endDate: new Date()})\n }", "function EditLogItemDelete () {}", "function deleteEntry(id) {\n API.deleteEntry(id)\...
[ "0.67112637", "0.66665274", "0.6659457", "0.6646003", "0.66301054", "0.65694165", "0.656568", "0.62978315", "0.620925", "0.61968976", "0.60860604", "0.608262", "0.60256475", "0.60208935", "0.5819502", "0.5766459", "0.5726172", "0.57051224", "0.56880355", "0.5667441", "0.56331...
0.7065055
0
Returns the complete log.
function getAllLogEntries(worker) { var logEntries = datastore.readLogEntries(); worker.port.emit("LogEntriesLoaded", logEntries); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "getLog() {\n\t\treturn this.log;\n\t}", "get log() {\n\t\treturn this._log;\n\t}", "getData () {\n return this._logData\n }", "async getLog(name) {\n let res = find(this.mission, { fileName: name })\n if (!res) return [];\n const logs = res.logModel;\n const list = await logs....
[ "0.70490223", "0.6846974", "0.6348812", "0.6306022", "0.6260941", "0.61530167", "0.61149275", "0.6095179", "0.6002245", "0.59715843", "0.59657174", "0.59592193", "0.59494954", "0.58679193", "0.5865444", "0.5818883", "0.5817756", "0.5804876", "0.578964", "0.5778162", "0.576386...
0.52167594
78
Returns the last active task from log.
function getLatestGoalFromLog(worker) { var logEntries = datastore.readLogEntriesByAction("goal_selected"); if (logEntries && logEntries.length > 0) { worker.port.emit("LatestActiveGoalLoaded", logEntries[0]); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getLatestTaskFromLog(worker) {\n var logEntries = datastore.readLogEntriesByAction(\"task_selected\");\n\n if (logEntries && logEntries.length > 0) {\n worker.port.emit(\"LatestActiveTaskLoaded\", logEntries[0]);\n }\n}", "getTask() {\n\t\treturn currentTask.tasks.get(this.props.taskId);\n\t}", ...
[ "0.72884077", "0.60309356", "0.56311613", "0.5525753", "0.5493877", "0.54534894", "0.5446529", "0.5388059", "0.53567237", "0.53466344", "0.53465885", "0.5326286", "0.53225005", "0.5294796", "0.5290427", "0.5272261", "0.5261116", "0.5260001", "0.5252036", "0.5244448", "0.52400...
0.60082567
2
Returns the last active task from log.
function getLatestTaskFromLog(worker) { var logEntries = datastore.readLogEntriesByAction("task_selected"); if (logEntries && logEntries.length > 0) { worker.port.emit("LatestActiveTaskLoaded", logEntries[0]); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "getTask() {\n\t\treturn currentTask.tasks.get(this.props.taskId);\n\t}", "function getLatestGoalFromLog(worker) {\n var logEntries = datastore.readLogEntriesByAction(\"goal_selected\");\n\n if (logEntries && logEntries.length > 0) {\n worker.port.emit(\"LatestActiveGoalLoaded\", logEntries[0]);\n }\n}", ...
[ "0.6031495", "0.60078704", "0.56302947", "0.5524367", "0.5492916", "0.5453559", "0.54465896", "0.53872097", "0.5356866", "0.5346863", "0.534649", "0.5325078", "0.53231883", "0.52952576", "0.52920157", "0.5271742", "0.52612984", "0.52596384", "0.5251359", "0.5245205", "0.52397...
0.7288126
0
Returns the complete browsing history of a given task.
function getBrowsingHistory(worker, taskId) { if (taskId) { var logEntries = datastore.readLogEntriesByTask(taskId, "location_change"); worker.port.emit("HistoryLoaded", logEntries); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getHistory() {\n var db = getDatabase();\n var respath=\"\";\n db.transaction(function(tx) {\n var rs = tx.executeSql('SELECT history.url FROM history ORDER BY history.uid;');\n for (var i = 0; i < rs.rows.length; i++) {\n openUrlPage.addHistory(rs.rows.item(i).url)\n ...
[ "0.64898765", "0.6299323", "0.6279849", "0.6279849", "0.6213123", "0.6179907", "0.61774784", "0.5975218", "0.5942721", "0.5925686", "0.58808833", "0.58808833", "0.58808833", "0.58116806", "0.57800364", "0.56950337", "0.567735", "0.56670433", "0.56581354", "0.56414944", "0.563...
0.72579896
0
Clear the browse history of a given task.
function removeBrowseHistory(worker, taskId) { if (taskId) { var logEntries = datastore.readLogEntriesByTask(taskId, "location_change"); for (let entry of logEntries) { datastore.deleteLogEntry(entry._id); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function clearTask(e) {\r\n taskList.innerHTML = \"\";\r\n localStorage.clear();\r\n}", "function clearToday(task) {\n if (task.isToday()) {\n task.setToday(false);\n task.resetTags = [\"today\"];\n task.setTags = [];\n updateTask(task);\n }\n}", "clear() {\n this.history = [];\n this.acc...
[ "0.65808165", "0.63049585", "0.6276963", "0.61748946", "0.6162164", "0.6100904", "0.609825", "0.60853684", "0.60538393", "0.5997105", "0.5997105", "0.59908795", "0.59592354", "0.5946914", "0.59188807", "0.5916661", "0.5903093", "0.5892309", "0.588719", "0.58694094", "0.586685...
0.6354406
1