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
Callback invoked upon receiving a change event.
function onChange() { __debug_330( 'Received a change event.' ); self.render(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "change() { }", "function onChange() {\n\t\t__debug_452( 'Received a change event.' );\n\t\tself.render();\n\t}", "handleEventChange() {\n }", "function onChange() {\n\t\t/* eslint-disable no-underscore-dangle */\n\t\t__debug_730( 'Received a change event.' );\n\t\tif ( self._autoRender ) {\n\t\t\tself.ren...
[ "0.76206696", "0.7620642", "0.7567978", "0.7562529", "0.7559636", "0.75364155", "0.7521261", "0.7519743", "0.7512532", "0.7497861", "0.74954176", "0.74885535", "0.7486875", "0.74790376", "0.7469961", "0.7469411", "0.74654305", "0.74590075", "0.74529", "0.74512655", "0.7369066...
0.7603297
2
Reemits a render event.
function onRender() { var args; var i; __debug_330( 'Received a render event. Re-emitting...' ); args = new Array( arguments.length+1 ); args[ 0 ] = 'render'; for ( i = 0; i < arguments.length; i++ ) { args[ i+1 ] = arguments[ i ]; } self.emit.apply( self, args ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function onRender() {\n\t\tvar args;\n\t\tvar i;\n\t\t__debug_587( 'Received a render event. Re-emitting...' );\n\t\targs = new Array( arguments.length+1 );\n\t\targs[ 0 ] = 'render';\n\t\tfor ( i = 0; i < arguments.length; i++ ) {\n\t\t\targs[ i+1 ] = arguments[ i ];\n\t\t}\n\t\tself.emit.apply( self, args );\n\t...
[ "0.7726372", "0.7672331", "0.7665788", "0.76572526", "0.7655998", "0.76539224", "0.7652522", "0.76429856", "0.76421237", "0.76247567", "0.7623794", "0.6994004", "0.67871696", "0.67314553", "0.67314553", "0.6673593", "0.65053445", "0.65043765", "0.6444167", "0.63916767", "0.63...
0.7651107
7
Callback invoked upon receiving a change event.
function onChange() { __debug_429( 'Received a change event.' ); if ( self._autoRender ) { // eslint-disable-line no-underscore-dangle self.render(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function onChange() {\n\t\t__debug_452( 'Received a change event.' );\n\t\tself.render();\n\t}", "change() { }", "function onChange() {\n\t\t__debug_330( 'Received a change event.' );\n\t\tself.render();\n\t}", "handleEventChange() {\n }", "function onChange() {\n\t\t/* eslint-disable no-underscore-dang...
[ "0.76215637", "0.7620866", "0.7604169", "0.75682276", "0.7563224", "0.75595355", "0.7537074", "0.7521918", "0.7520366", "0.7513234", "0.7498563", "0.7496141", "0.7489214", "0.7487912", "0.7479759", "0.7470643", "0.74661165", "0.7458496", "0.7453694", "0.7451992", "0.736924", ...
0.7470105
16
Reemits a render event.
function onRender() { var args; var i; __debug_429( 'Received a render event. Re-emitting...' ); args = new Array( arguments.length+1 ); args[ 0 ] = 'render'; for ( i = 0; i < arguments.length; i++ ) { args[ i+1 ] = arguments[ i ]; } self.emit.apply( self, args ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function onRender() {\n\t\tvar args;\n\t\tvar i;\n\t\t__debug_587( 'Received a render event. Re-emitting...' );\n\t\targs = new Array( arguments.length+1 );\n\t\targs[ 0 ] = 'render';\n\t\tfor ( i = 0; i < arguments.length; i++ ) {\n\t\t\targs[ i+1 ] = arguments[ i ];\n\t\t}\n\t\tself.emit.apply( self, args );\n\t...
[ "0.7726372", "0.7672331", "0.7665788", "0.76572526", "0.7655998", "0.76539224", "0.7652522", "0.7651107", "0.76429856", "0.76247567", "0.7623794", "0.6994004", "0.67871696", "0.67314553", "0.67314553", "0.6673593", "0.65053445", "0.65043765", "0.6444167", "0.63916767", "0.638...
0.76421237
9
Callback invoked upon receiving a change event.
function onChange() { __debug_412( 'Received a change event.' ); if ( self._autoRender ) { // eslint-disable-line no-underscore-dangle self.render(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "change() { }", "function onChange() {\n\t\t__debug_452( 'Received a change event.' );\n\t\tself.render();\n\t}", "function onChange() {\n\t\t__debug_330( 'Received a change event.' );\n\t\tself.render();\n\t}", "handleEventChange() {\n }", "function onChange() {\n\t\t/* eslint-disable no-underscore-dang...
[ "0.76206696", "0.7620642", "0.7603297", "0.7567978", "0.7562529", "0.7559636", "0.75364155", "0.7521261", "0.7519743", "0.7512532", "0.74954176", "0.74885535", "0.7486875", "0.74790376", "0.7469961", "0.7469411", "0.74654305", "0.74590075", "0.74529", "0.74512655", "0.7369066...
0.7497861
10
Reemits a render event.
function onRender() { var args; var i; __debug_412( 'Received a render event. Re-emitting...' ); args = new Array( arguments.length+1 ); args[ 0 ] = 'render'; for ( i = 0; i < arguments.length; i++ ) { args[ i+1 ] = arguments[ i ]; } self.emit.apply( self, args ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function onRender() {\n\t\tvar args;\n\t\tvar i;\n\t\t__debug_587( 'Received a render event. Re-emitting...' );\n\t\targs = new Array( arguments.length+1 );\n\t\targs[ 0 ] = 'render';\n\t\tfor ( i = 0; i < arguments.length; i++ ) {\n\t\t\targs[ i+1 ] = arguments[ i ];\n\t\t}\n\t\tself.emit.apply( self, args );\n\t...
[ "0.7726372", "0.7672331", "0.7665788", "0.7655998", "0.76539224", "0.7652522", "0.7651107", "0.76429856", "0.76421237", "0.76247567", "0.7623794", "0.6994004", "0.67871696", "0.67314553", "0.67314553", "0.6673593", "0.65053445", "0.65043765", "0.6444167", "0.63916767", "0.638...
0.76572526
3
Callback invoked upon receiving a change event.
function onChange() { __debug_457( 'Received a change event.' ); if ( self._autoRender ) { // eslint-disable-line no-underscore-dangle self.render(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function onChange() {\n\t\t__debug_452( 'Received a change event.' );\n\t\tself.render();\n\t}", "change() { }", "function onChange() {\n\t\t__debug_330( 'Received a change event.' );\n\t\tself.render();\n\t}", "handleEventChange() {\n }", "function onChange() {\n\t\t/* eslint-disable no-underscore-dang...
[ "0.76215637", "0.7620866", "0.7604169", "0.75682276", "0.7563224", "0.75595355", "0.7537074", "0.7521918", "0.7520366", "0.7513234", "0.7498563", "0.7496141", "0.7489214", "0.7487912", "0.7470643", "0.7470105", "0.74661165", "0.7458496", "0.7453694", "0.7451992", "0.736924", ...
0.7479759
14
Reemits a render event.
function onRender() { var args; var i; __debug_457( 'Received a render event. Re-emitting...' ); args = new Array( arguments.length+1 ); args[ 0 ] = 'render'; for ( i = 0; i < arguments.length; i++ ) { args[ i+1 ] = arguments[ i ]; } self.emit.apply( self, args ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function onRender() {\n\t\tvar args;\n\t\tvar i;\n\t\t__debug_587( 'Received a render event. Re-emitting...' );\n\t\targs = new Array( arguments.length+1 );\n\t\targs[ 0 ] = 'render';\n\t\tfor ( i = 0; i < arguments.length; i++ ) {\n\t\t\targs[ i+1 ] = arguments[ i ];\n\t\t}\n\t\tself.emit.apply( self, args );\n\t...
[ "0.7726372", "0.7672331", "0.7665788", "0.76572526", "0.76539224", "0.7652522", "0.7651107", "0.76429856", "0.76421237", "0.76247567", "0.7623794", "0.6994004", "0.67871696", "0.67314553", "0.67314553", "0.6673593", "0.65053445", "0.65043765", "0.6444167", "0.63916767", "0.63...
0.7655998
4
Callback invoked upon receiving a change event.
function onChange() { __debug_587( 'Received a change event.' ); if ( self._autoRender ) { // eslint-disable-line no-underscore-dangle self.render(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "change() { }", "function onChange() {\n\t\t__debug_452( 'Received a change event.' );\n\t\tself.render();\n\t}", "function onChange() {\n\t\t__debug_330( 'Received a change event.' );\n\t\tself.render();\n\t}", "handleEventChange() {\n }", "function onChange() {\n\t\t/* eslint-disable no-underscore-dang...
[ "0.76206696", "0.7620642", "0.7603297", "0.7567978", "0.7562529", "0.7559636", "0.75364155", "0.7521261", "0.7512532", "0.7497861", "0.74954176", "0.74885535", "0.7486875", "0.74790376", "0.7469961", "0.7469411", "0.74654305", "0.74590075", "0.74529", "0.74512655", "0.7369066...
0.7519743
8
Reemits a render event.
function onRender() { var args; var i; __debug_587( 'Received a render event. Re-emitting...' ); args = new Array( arguments.length+1 ); args[ 0 ] = 'render'; for ( i = 0; i < arguments.length; i++ ) { args[ i+1 ] = arguments[ i ]; } self.emit.apply( self, args ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function onRender() {\n\t\tvar args;\n\t\tvar i;\n\t\t__debug_395( 'Received a render event. Re-emitting...' );\n\t\targs = new Array( arguments.length+1 );\n\t\targs[ 0 ] = 'render';\n\t\tfor ( i = 0; i < arguments.length; i++ ) {\n\t\t\targs[ i+1 ] = arguments[ i ];\n\t\t}\n\t\tself.emit.apply( self, args );\n\t...
[ "0.7672331", "0.7665788", "0.76572526", "0.7655998", "0.76539224", "0.7652522", "0.7651107", "0.76429856", "0.76421237", "0.76247567", "0.7623794", "0.6994004", "0.67871696", "0.67314553", "0.67314553", "0.6673593", "0.65053445", "0.65043765", "0.6444167", "0.63916767", "0.63...
0.7726372
0
Callback invoked upon receiving a change event.
function onChange() { __debug_475( 'Received a change event.' ); if ( self._autoRender ) { // eslint-disable-line no-underscore-dangle self.render(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function onChange() {\n\t\t__debug_452( 'Received a change event.' );\n\t\tself.render();\n\t}", "change() { }", "function onChange() {\n\t\t__debug_330( 'Received a change event.' );\n\t\tself.render();\n\t}", "handleEventChange() {\n }", "function onChange() {\n\t\t/* eslint-disable no-underscore-dang...
[ "0.76215637", "0.7620866", "0.7604169", "0.75682276", "0.7563224", "0.75595355", "0.7537074", "0.7521918", "0.7520366", "0.7513234", "0.7498563", "0.7489214", "0.7487912", "0.7479759", "0.7470643", "0.7470105", "0.74661165", "0.7458496", "0.7453694", "0.7451992", "0.736924", ...
0.7496141
11
Reemits a render event.
function onRender() { var args; var i; __debug_475( 'Received a render event. Re-emitting...' ); args = new Array( arguments.length+1 ); args[ 0 ] = 'render'; for ( i = 0; i < arguments.length; i++ ) { args[ i+1 ] = arguments[ i ]; } self.emit.apply( self, args ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function onRender() {\n\t\tvar args;\n\t\tvar i;\n\t\t__debug_587( 'Received a render event. Re-emitting...' );\n\t\targs = new Array( arguments.length+1 );\n\t\targs[ 0 ] = 'render';\n\t\tfor ( i = 0; i < arguments.length; i++ ) {\n\t\t\targs[ i+1 ] = arguments[ i ];\n\t\t}\n\t\tself.emit.apply( self, args );\n\t...
[ "0.7726372", "0.7672331", "0.7665788", "0.76572526", "0.7655998", "0.76539224", "0.7652522", "0.7651107", "0.76421237", "0.76247567", "0.7623794", "0.6994004", "0.67871696", "0.67314553", "0.67314553", "0.6673593", "0.65053445", "0.65043765", "0.6444167", "0.63916767", "0.638...
0.76429856
8
Callback invoked upon receiving a change event.
function onChange() { __debug_395( 'Received a change event.' ); if ( self._autoRender ) { // eslint-disable-line no-underscore-dangle self.render(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "change() { }", "function onChange() {\n\t\t__debug_452( 'Received a change event.' );\n\t\tself.render();\n\t}", "function onChange() {\n\t\t__debug_330( 'Received a change event.' );\n\t\tself.render();\n\t}", "handleEventChange() {\n }", "function onChange() {\n\t\t/* eslint-disable no-underscore-dang...
[ "0.76206696", "0.7620642", "0.7603297", "0.7567978", "0.7562529", "0.7559636", "0.75364155", "0.7521261", "0.7519743", "0.7512532", "0.7497861", "0.74954176", "0.74885535", "0.7486875", "0.74790376", "0.7469961", "0.7469411", "0.74654305", "0.74590075", "0.74529", "0.7369066"...
0.74512655
20
Reemits a render event.
function onRender() { var args; var i; __debug_395( 'Received a render event. Re-emitting...' ); args = new Array( arguments.length+1 ); args[ 0 ] = 'render'; for ( i = 0; i < arguments.length; i++ ) { args[ i+1 ] = arguments[ i ]; } self.emit.apply( self, args ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function onRender() {\n\t\tvar args;\n\t\tvar i;\n\t\t__debug_587( 'Received a render event. Re-emitting...' );\n\t\targs = new Array( arguments.length+1 );\n\t\targs[ 0 ] = 'render';\n\t\tfor ( i = 0; i < arguments.length; i++ ) {\n\t\t\targs[ i+1 ] = arguments[ i ];\n\t\t}\n\t\tself.emit.apply( self, args );\n\t...
[ "0.7726372", "0.7665788", "0.76572526", "0.7655998", "0.76539224", "0.7652522", "0.7651107", "0.76429856", "0.76421237", "0.76247567", "0.7623794", "0.6994004", "0.67871696", "0.67314553", "0.67314553", "0.6673593", "0.65053445", "0.65043765", "0.6444167", "0.63916767", "0.63...
0.7672331
1
Callback invoked upon receiving a change event.
function onChange() { __debug_452( 'Received a change event.' ); self.render(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "change() { }", "function onChange() {\n\t\t__debug_330( 'Received a change event.' );\n\t\tself.render();\n\t}", "handleEventChange() {\n }", "function onChange() {\n\t\t/* eslint-disable no-underscore-dangle */\n\t\t__debug_730( 'Received a change event.' );\n\t\tif ( self._autoRender ) {\n\t\t\tself.ren...
[ "0.7620866", "0.7604169", "0.75682276", "0.7563224", "0.75595355", "0.7537074", "0.7521918", "0.7520366", "0.7513234", "0.7498563", "0.7496141", "0.7489214", "0.7487912", "0.7479759", "0.7470643", "0.7470105", "0.74661165", "0.7458496", "0.7453694", "0.7451992", "0.736924", ...
0.76215637
0
Reemits a render event.
function onRender() { var args; var i; __debug_452( 'Received a render event. Re-emitting...' ); args = new Array( arguments.length+1 ); args[ 0 ] = 'render'; for ( i = 0; i < arguments.length; i++ ) { args[ i+1 ] = arguments[ i ]; } self.emit.apply( self, args ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function onRender() {\n\t\tvar args;\n\t\tvar i;\n\t\t__debug_587( 'Received a render event. Re-emitting...' );\n\t\targs = new Array( arguments.length+1 );\n\t\targs[ 0 ] = 'render';\n\t\tfor ( i = 0; i < arguments.length; i++ ) {\n\t\t\targs[ i+1 ] = arguments[ i ];\n\t\t}\n\t\tself.emit.apply( self, args );\n\t...
[ "0.7726372", "0.7672331", "0.7665788", "0.76572526", "0.7655998", "0.76539224", "0.7652522", "0.7651107", "0.76429856", "0.76421237", "0.7623794", "0.6994004", "0.67871696", "0.67314553", "0.67314553", "0.6673593", "0.65053445", "0.65043765", "0.6444167", "0.63916767", "0.638...
0.76247567
10
Callback invoked upon receiving a change event.
function onChange() { __debug_332( 'Received a change event.' ); if ( self._autoRender ) { // eslint-disable-line no-underscore-dangle self.render(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "change() { }", "function onChange() {\n\t\t__debug_452( 'Received a change event.' );\n\t\tself.render();\n\t}", "function onChange() {\n\t\t__debug_330( 'Received a change event.' );\n\t\tself.render();\n\t}", "handleEventChange() {\n }", "function onChange() {\n\t\t/* eslint-disable no-underscore-dang...
[ "0.76206696", "0.7620642", "0.7603297", "0.7567978", "0.7562529", "0.7559636", "0.75364155", "0.7521261", "0.7519743", "0.7512532", "0.7497861", "0.74954176", "0.74885535", "0.7486875", "0.74790376", "0.7469411", "0.74654305", "0.74590075", "0.74529", "0.74512655", "0.7369066...
0.7469961
15
Reemits a render event.
function onRender() { var args; var i; __debug_332( 'Received a render event. Re-emitting...' ); args = new Array( arguments.length+1 ); args[ 0 ] = 'render'; for ( i = 0; i < arguments.length; i++ ) { args[ i+1 ] = arguments[ i ]; } self.emit.apply( self, args ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function onRender() {\n\t\tvar args;\n\t\tvar i;\n\t\t__debug_587( 'Received a render event. Re-emitting...' );\n\t\targs = new Array( arguments.length+1 );\n\t\targs[ 0 ] = 'render';\n\t\tfor ( i = 0; i < arguments.length; i++ ) {\n\t\t\targs[ i+1 ] = arguments[ i ];\n\t\t}\n\t\tself.emit.apply( self, args );\n\t...
[ "0.7726372", "0.7672331", "0.7665788", "0.76572526", "0.7655998", "0.76539224", "0.7651107", "0.76429856", "0.76421237", "0.76247567", "0.7623794", "0.6994004", "0.67871696", "0.67314553", "0.67314553", "0.6673593", "0.65053445", "0.65043765", "0.6444167", "0.63916767", "0.63...
0.7652522
6
Compute perpendicular offset line of length rc.
function cornerTangents(x0, y0, x1, y1, r1, rc, cw) { var x01 = x0 - x1, y01 = y0 - y1, lo = (cw ? rc : -rc) / sqrt(x01 * x01 + y01 * y01), ox = lo * y01, oy = -lo * x01, x11 = x0 + ox, y11 = y0 + oy, x10 = x1 + ox, y10 = y1 + oy, x00 = (x11 + x10) / 2, y00 = (y11 + y10) / 2, dx = x10 - x11, dy = y10 - y11, d2 = dx * dx + dy * dy, r = r1 - rc, D = x11 * y10 - x10 * y11, d = (dy < 0 ? -1 : 1) * sqrt(max(0, r * r * d2 - D * D)), cx0 = (D * dy - dx * d) / d2, cy0 = (-D * dx - dy * d) / d2, cx1 = (D * dy + dx * d) / d2, cy1 = (-D * dx + dy * d) / d2, dx0 = cx0 - x00, dy0 = cy0 - y00, dx1 = cx1 - x00, dy1 = cy1 - y00; // Pick the closer of the two intersection points. // TODO Is there a faster way to determine which intersection to use? if (dx0 * dx0 + dy0 * dy0 > dx1 * dx1 + dy1 * dy1) cx0 = cx1, cy0 = cy1; return { cx: cx0, cy: cy0, x01: -ox, y01: -oy, x11: cx0 * (r1 / r - 1), y11: cy0 * (r1 / r - 1) }; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function drawPerpendicularLine(context, eventData, element, data, color, lineWidth) {\n\n // mid point of long-axis line\n var mid = {\n x: (data.handles.start.x + data.handles.end.x) / 2,\n y: (data.handles.start.y + data.handles.end.y) / 2\n };\n\n // Length of l...
[ "0.61555076", "0.6136213", "0.592017", "0.5753711", "0.5637825", "0.5612782", "0.54631627", "0.5454807", "0.5444906", "0.53873765", "0.5300839", "0.5262509", "0.51919144", "0.5177952", "0.5157787", "0.5157787", "0.5157787", "0.5149515", "0.51270515", "0.5126161", "0.5105256",...
0.0
-1
Calculate the slopes of the tangents (Hermitetype interpolation) based on the following paper: Steffen, M. 1990. A Simple Method for Monotonic Interpolation in One Dimension. Astronomy and Astrophysics, Vol. 239, NO. NOV(II), P. 443, 1990.
function slope3(that, x2, y2) { var h0 = that._x1 - that._x0, h1 = x2 - that._x1, s0 = (that._y1 - that._y0) / (h0 || h1 < 0 && -0), s1 = (y2 - that._y1) / (h1 || h0 < 0 && -0), p = (s0 * h1 + s1 * h0) / (h0 + h1); return (sign(s0) + sign(s1)) * Math.min(Math.abs(s0), Math.abs(s1), 0.5 * Math.abs(p)) || 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function d3_svg_lineSlope(p0, p1) {\n return (p1[1] - p0[1]) / (p1[0] - p0[0]);\n}", "function d3_svg_lineSlope(p0, p1) {\n return (p1[1] - p0[1]) / (p1[0] - p0[0]);\n}", "function d3_svg_lineSlope(p0, p1) {\n return (p1[1] - p0[1]) / (p1[0] - p0[0]);\n}", "function slope2(that,t){var h=that._x1-that._x0;...
[ "0.6538685", "0.6538685", "0.6538685", "0.6504977", "0.64406794", "0.6413437", "0.6412215", "0.6385186", "0.6385186", "0.6385186", "0.6385186", "0.6385186", "0.6385186", "0.6385186", "0.63743275", "0.63743275", "0.637079", "0.6367638", "0.63454497", "0.6232359", "0.6232359", ...
0.0
-1
Calculate a onesided slope.
function slope2(that, t) { var h = that._x1 - that._x0; return h ? (3 * (that._y1 - that._y0) / h - t) / 2 : t; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function calculateSlope() {\n let x1 = 2;\n let x2 = 4;\n let firstPointY = 2 * x1 - 2;\n let secondPointY = 2 * x2 - 2;\n return (secondPointY - firstPointY) / (x2 - x1);\n}", "function slope(a, b) {\n return (b.y - a.y) / (b.x - a.x);\n }", "function slope(a, b) {\n return (b.y - a.y)...
[ "0.7581995", "0.74803245", "0.74803245", "0.74425995", "0.74425995", "0.7222996", "0.7183728", "0.7183728", "0.7183728", "0.7166007", "0.7138525", "0.713446", "0.71305066", "0.711682", "0.7022051", "0.70193577", "0.700835", "0.69189817", "0.69015527", "0.6782913", "0.6677642"...
0.65396535
95
Callback invoked upon receiving a change event.
function onChange() { __debug_488( 'Received a change event.' ); if ( self._autoRender ) { // eslint-disable-line no-underscore-dangle self.render(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function onChange() {\n\t\t__debug_452( 'Received a change event.' );\n\t\tself.render();\n\t}", "change() { }", "function onChange() {\n\t\t__debug_330( 'Received a change event.' );\n\t\tself.render();\n\t}", "handleEventChange() {\n }", "function onChange() {\n\t\t/* eslint-disable no-underscore-dang...
[ "0.76215637", "0.7620866", "0.7604169", "0.75682276", "0.7563224", "0.75595355", "0.7537074", "0.7520366", "0.7513234", "0.7498563", "0.7496141", "0.7489214", "0.7487912", "0.7479759", "0.7470643", "0.7470105", "0.74661165", "0.7458496", "0.7453694", "0.7451992", "0.736924", ...
0.7521918
7
Reemits a render event.
function onRender() { var args; var i; __debug_488( 'Received a render event. Re-emitting...' ); args = new Array( arguments.length+1 ); args[ 0 ] = 'render'; for ( i = 0; i < arguments.length; i++ ) { args[ i+1 ] = arguments[ i ]; } self.emit.apply( self, args ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function onRender() {\n\t\tvar args;\n\t\tvar i;\n\t\t__debug_587( 'Received a render event. Re-emitting...' );\n\t\targs = new Array( arguments.length+1 );\n\t\targs[ 0 ] = 'render';\n\t\tfor ( i = 0; i < arguments.length; i++ ) {\n\t\t\targs[ i+1 ] = arguments[ i ];\n\t\t}\n\t\tself.emit.apply( self, args );\n\t...
[ "0.7726372", "0.7672331", "0.7665788", "0.76572526", "0.7655998", "0.7652522", "0.7651107", "0.76429856", "0.76421237", "0.76247567", "0.7623794", "0.6994004", "0.67871696", "0.67314553", "0.67314553", "0.6673593", "0.65053445", "0.65043765", "0.6444167", "0.63916767", "0.638...
0.76539224
5
Callback invoked upon receiving a change event.
function onChange() { __debug_577( 'Received a change event.' ); if ( self._autoRender ) { // eslint-disable-line no-underscore-dangle self.render(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function onChange() {\n\t\t__debug_452( 'Received a change event.' );\n\t\tself.render();\n\t}", "change() { }", "function onChange() {\n\t\t__debug_330( 'Received a change event.' );\n\t\tself.render();\n\t}", "handleEventChange() {\n }", "function onChange() {\n\t\t/* eslint-disable no-underscore-dang...
[ "0.76215637", "0.7620866", "0.7604169", "0.75682276", "0.7563224", "0.75595355", "0.7537074", "0.7521918", "0.7520366", "0.7513234", "0.7498563", "0.7496141", "0.7489214", "0.7487912", "0.7479759", "0.7470643", "0.7470105", "0.7458496", "0.7453694", "0.7451992", "0.736924", ...
0.74661165
17
Reemits a render event.
function onRender() { var args; var i; __debug_577( 'Received a render event. Re-emitting...' ); args = new Array( arguments.length+1 ); args[ 0 ] = 'render'; for ( i = 0; i < arguments.length; i++ ) { args[ i+1 ] = arguments[ i ]; } self.emit.apply( self, args ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function onRender() {\n\t\tvar args;\n\t\tvar i;\n\t\t__debug_587( 'Received a render event. Re-emitting...' );\n\t\targs = new Array( arguments.length+1 );\n\t\targs[ 0 ] = 'render';\n\t\tfor ( i = 0; i < arguments.length; i++ ) {\n\t\t\targs[ i+1 ] = arguments[ i ];\n\t\t}\n\t\tself.emit.apply( self, args );\n\t...
[ "0.7726008", "0.76720464", "0.76568705", "0.76556915", "0.7653662", "0.7652237", "0.76507944", "0.7642652", "0.7641725", "0.76243794", "0.7623485", "0.6988311", "0.6787753", "0.67292804", "0.67292804", "0.66715395", "0.6504154", "0.65031016", "0.64408934", "0.63911784", "0.63...
0.76654947
2
Callback invoked upon receiving a change event.
function onChange() { __debug_520( 'Received a change event.' ); if ( self._autoRender ) { // eslint-disable-line no-underscore-dangle self.render(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function onChange() {\n\t\t__debug_452( 'Received a change event.' );\n\t\tself.render();\n\t}", "change() { }", "function onChange() {\n\t\t__debug_330( 'Received a change event.' );\n\t\tself.render();\n\t}", "handleEventChange() {\n }", "function onChange() {\n\t\t/* eslint-disable no-underscore-dang...
[ "0.76215637", "0.7620866", "0.7604169", "0.75682276", "0.7563224", "0.75595355", "0.7537074", "0.7521918", "0.7520366", "0.7513234", "0.7498563", "0.7496141", "0.7487912", "0.7479759", "0.7470643", "0.7470105", "0.74661165", "0.7458496", "0.7453694", "0.7451992", "0.736924", ...
0.7489214
12
Reemits a render event.
function onRender() { var args; var i; __debug_520( 'Received a render event. Re-emitting...' ); args = new Array( arguments.length+1 ); args[ 0 ] = 'render'; for ( i = 0; i < arguments.length; i++ ) { args[ i+1 ] = arguments[ i ]; } self.emit.apply( self, args ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function onRender() {\n\t\tvar args;\n\t\tvar i;\n\t\t__debug_587( 'Received a render event. Re-emitting...' );\n\t\targs = new Array( arguments.length+1 );\n\t\targs[ 0 ] = 'render';\n\t\tfor ( i = 0; i < arguments.length; i++ ) {\n\t\t\targs[ i+1 ] = arguments[ i ];\n\t\t}\n\t\tself.emit.apply( self, args );\n\t...
[ "0.7726372", "0.7672331", "0.7665788", "0.76572526", "0.7655998", "0.76539224", "0.7652522", "0.7651107", "0.76429856", "0.76421237", "0.76247567", "0.6994004", "0.67871696", "0.67314553", "0.67314553", "0.6673593", "0.65053445", "0.65043765", "0.6444167", "0.63916767", "0.63...
0.7623794
11
Callback invoked upon receiving a change event.
function onChange() { /* eslint-disable no-underscore-dangle */ __debug_596( 'Received a change event.' ); if ( self._autoRender ) { self.render(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function onChange() {\n\t\t__debug_452( 'Received a change event.' );\n\t\tself.render();\n\t}", "change() { }", "function onChange() {\n\t\t__debug_330( 'Received a change event.' );\n\t\tself.render();\n\t}", "handleEventChange() {\n }", "function onChange() {\n\t\t/* eslint-disable no-underscore-dang...
[ "0.76215637", "0.7620866", "0.7604169", "0.75682276", "0.7563224", "0.75595355", "0.7537074", "0.7521918", "0.7520366", "0.7498563", "0.7496141", "0.7489214", "0.7487912", "0.7479759", "0.7470643", "0.7470105", "0.74661165", "0.7458496", "0.7453694", "0.7451992", "0.736924", ...
0.7513234
9
Callback invoked upon receiving a change event.
function onChange() { /* eslint-disable no-underscore-dangle */ __debug_259( 'Received a change event.' ); if ( self._autoRender ) { self.render(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "change() { }", "function onChange() {\n\t\t__debug_452( 'Received a change event.' );\n\t\tself.render();\n\t}", "function onChange() {\n\t\t__debug_330( 'Received a change event.' );\n\t\tself.render();\n\t}", "handleEventChange() {\n }", "function onChange() {\n\t\t/* eslint-disable no-underscore-dang...
[ "0.76206696", "0.7620642", "0.7603297", "0.7567978", "0.7562529", "0.7559636", "0.7521261", "0.7519743", "0.7512532", "0.7497861", "0.74954176", "0.74885535", "0.7486875", "0.74790376", "0.7469961", "0.7469411", "0.74654305", "0.74590075", "0.74529", "0.74512655", "0.7369066"...
0.75364155
6
Callback invoked upon receiving a `change` event.
function onChange() { /* eslint-disable no-underscore-dangle */ __debug_730( 'Received a change event.' ); if ( self._autoRender ) { self.render(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "onchange() {}", "function onChange() {\n\t\t__debug_452( 'Received a change event.' );\n\t\tself.render();\n\t}", "function onChange() {\n\t\t__debug_330( 'Received a change event.' );\n\t\tself.render();\n\t}", "function onChange() {\n\t\t/* eslint-disable no-underscore-dangle */\n\t\t__debug_259( 'Received...
[ "0.780158", "0.7738475", "0.77369756", "0.77029145", "0.76844275", "0.7682688", "0.7669162", "0.7657933", "0.76380193", "0.76380044", "0.76366675", "0.762749", "0.7620743", "0.7619063", "0.7610295", "0.7607545", "0.76055974", "0.74953437", "0.7451562", "0.73982304", "0.738166...
0.7720417
3
Next turn alteration, comp generation
function nextTurn() { let index = floor(random(next.length)); let position = next.splice(index, 1)[0]; let i = position[0]; let j = position[1]; board[i][j] = players[currentPlayer]; currentPlayer = (currentPlayer + 1) % players.length; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function nextGeneration() {\n boardTmp = [];\n board.forEach(arrayTiles => boardTmp.push(new Array(arrayTiles.length)));\n board.forEach((arrayTiles, index1D) => arrayTiles.forEach((tile, index2D) => boardTmp[index1D][index2D] = tile));\n\n board.forEach((arrayTiles, index1D) => arrayTiles.forEach((til...
[ "0.6370642", "0.59359837", "0.5902944", "0.5851451", "0.5778909", "0.57437503", "0.570387", "0.5686315", "0.5671231", "0.567009", "0.56489676", "0.5602402", "0.55906326", "0.5579446", "0.5560562", "0.5552275", "0.552184", "0.54985714", "0.5469438", "0.5460973", "0.5455673", ...
0.0
-1
console.log(expTwo(2, 2)); console.log(expTwo(2, 6)); console.log(expTwo(2, 7));
function fibIt(n) { const fibArr = [1, 1]; while (fibArr.length < n) { fibArr.push(fibArr[fibArr.length - 2] + fibArr[fibArr.length - 1]); } return fibArr; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function exp(args){\n return Math.exp(args);\n}", "function executeExponential(x, y) {\r\n if (x != NaN && y != NaN) {\r\n let result = \"\";\r\n let rollingResult = 1;\r\n for (let i = 0; i < y; i++) {\r\n rollingResult *= x;\r\n result += rollingResult + \" \";\r\n }\r\n console.lo...
[ "0.7817147", "0.69642866", "0.6905295", "0.6774016", "0.6765923", "0.67334956", "0.66194695", "0.65695155", "0.6547786", "0.6544614", "0.6543179", "0.6530159", "0.65273", "0.64918613", "0.64756984", "0.6473066", "0.6458299", "0.6439698", "0.6420843", "0.64118695", "0.6408318"...
0.0
-1
console.log(bSearch([1, 2, 3], 1)); console.log(bSearch([2, 3, 4, 5], 3)); console.log(bSearch([2, 4, 6, 8, 10], 6)); console.log(bSearch([1, 3, 4, 5, 9], 5)); console.log(bSearch([1, 2, 3, 4, 5, 6], 6) ); console.log(bSearch([1, 2, 3, 4, 5, 6], 0)); console.log(bSearch([1, 2, 3, 4, 5, 7], 6));
function makeChange(total, coinsArr) { if (total <= 0) { return []; } for (let i = 0; i < coinsArr.length; i++) { if (total >= coinsArr[i]) { total -= coinsArr[i]; return [coinsArr[i]].concat(makeChange(total, coinsArr.slice(i, coinsArr.length))); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function bSearch(arr, val) {\n let start = 0;\n let end = arr.length - 1;\n\n while (start < end) {\n const mid = Math.floor((end - start) / 2) + start;\n if (arr[mid] === val) {\n return mid;\n }\n if (arr[mid] < val) {\n start = mid + 1;\n } else {\n end = mid - 1;\n }\n }\n\...
[ "0.7691193", "0.76159966", "0.74805665", "0.746844", "0.746709", "0.7350664", "0.73291844", "0.7279991", "0.7263582", "0.7149281", "0.71429867", "0.71399575", "0.7089549", "0.7084962", "0.7023133", "0.70065725", "0.6953944", "0.69396734", "0.6908604", "0.6898395", "0.6897295"...
0.0
-1
helper function to create screen icons that aren't too bland
function createScreenIcon( color1, color2, gradientType ) { let colorGradient; if ( gradientType === 'radial' ) { colorGradient = new RadialGradient( Screen.MINIMUM_HOME_SCREEN_ICON_SIZE.width / 2, Screen.MINIMUM_HOME_SCREEN_ICON_SIZE.height / 2, 0, Screen.MINIMUM_HOME_SCREEN_ICON_SIZE.width / 2, Screen.MINIMUM_HOME_SCREEN_ICON_SIZE.height / 2, Screen.MINIMUM_HOME_SCREEN_ICON_SIZE.width * 0.67 ).addColorStop( 0, color1 ).addColorStop( 1, color2 ); } else { colorGradient = new LinearGradient( 0, 0, Screen.MINIMUM_HOME_SCREEN_ICON_SIZE.width, 0 ) .addColorStop( 0, color1 ) .addColorStop( 1, color2 ); } return new Rectangle( 0, 0, Screen.MINIMUM_HOME_SCREEN_ICON_SIZE.width, Screen.MINIMUM_HOME_SCREEN_ICON_SIZE.height, { fill: colorGradient } ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function icons() {\r\n var arr = [], style = 'style=\"width:18px\"';\r\n if (iconMapper.map(link)) add(iconMapper.map(link));\r\n if (iconMapper.map(obj.Type)) add(iconMapper.map(obj.Type));\r\n if (reg !== 'Message' && iconMapper.map(reg)) add(iconMapper...
[ "0.653394", "0.64948696", "0.6324698", "0.6131527", "0.61132276", "0.6077673", "0.60317254", "0.5997315", "0.59818953", "0.59696025", "0.59612584", "0.5942439", "0.59236854", "0.5912766", "0.5911654", "0.5897362", "0.58966035", "0.5868933", "0.5854789", "0.58000994", "0.57902...
0.5676443
29
Middleware that checks if a user is logged in. If so, the request continues to be processed, otherwise a 403 is returned.
function isLoggedIn(req, res, next) { if (res.locals.currentUser) { next(); } else { res.sendStatus(403); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async allowIfLoggedIn(req, res, next) {\n try {\n const user = res.locals.loggedInUser;\n if (!user) {\n return res\n .status(401)\n .json(new Error(\"BAD_REQUEST\", \"You need to be logged in\"));\n }\n req.user = user;\n next();\n } catch (error) {\n n...
[ "0.7827452", "0.77530235", "0.7675514", "0.76472944", "0.7637547", "0.76310486", "0.7608536", "0.74873734", "0.7468612", "0.7465361", "0.74617076", "0.74407274", "0.743438", "0.7419489", "0.7409926", "0.7403108", "0.73996663", "0.73903835", "0.7380974", "0.73611355", "0.73152...
0.79686546
0
Middleware that loads a users tasks if they are logged in.
function loadUserTasks(req, res, next) { if (!res.locals.currentUser) { return next(); } Tasks.find({}).or([ {owner:res.locals.currentUser}, {collaborators: res.locals.currentUser.email}]) .exec (function(err, tasks) { if (!err) { res.locals.tasks = tasks; } next(); }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function loadUserTasks(req, res, next) {\n if(!res.locals.currentUser){\n return next();\n }\n Tasks.find({}).or([\n {owner: res.locals.currentUser},\n {collaborators: res.locals.currentUser.email}])\n .exec(function(err, tasks){\n if(!err){\n res.locals.tasks = tasks;\n }\n ...
[ "0.7552267", "0.63138", "0.6076081", "0.59633875", "0.5859155", "0.57973707", "0.5749827", "0.57380086", "0.5675299", "0.56383246", "0.5515433", "0.5482063", "0.5480782", "0.54631424", "0.54522187", "0.5445917", "0.5397883", "0.5397883", "0.5397883", "0.53881", "0.53676164", ...
0.7532927
1
Lifecycle methods On connect, setup the initial views
async connectedCallback() { super.connectedCallback && super.connectedCallback(); this.addEventListener('select-scene', this[$onSelectScene]); this.addEventListener('select-entity', this[$onSelectEntity]); this.addEventListener('select-renderer', this[$onSelectRenderer]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "initViews() {\n this.views = this.generateViews();\n this.prepareViewsModelsFields();\n }", "init() {\n // call the base component's init function\n UIComponent.prototype.init.apply(this, arguments)\n\n // set the device model\n this.setModel(models.createDeviceModel(...
[ "0.70371205", "0.6850621", "0.6842083", "0.68247706", "0.67924404", "0.67113656", "0.6603565", "0.65922785", "0.6552805", "0.6542487", "0.6528293", "0.65077037", "0.64928514", "0.64866334", "0.646086", "0.6371092", "0.6370404", "0.6363772", "0.63458115", "0.6337986", "0.63329...
0.0
-1
Fired when content is initially loaded
[$onContentLoad](e) { this.activeScene = undefined; this.activeEntity = undefined; this.activeRenderer = undefined; this.needsReload = false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function loaded() {\n\taddElements();\n\tosScroll();\n\t// initiate tabs\n\t$('#tabs').tab();\n\t// set event listeners\n\tsetOneTimeEventListeners();\n\t//updateChecked();\n}", "function cb_contentLoaded(cb) {}", "function onInit() {\n Event.onDOMReady(onDOMReady, this.cfg.getProperty(\"container\"), t...
[ "0.7462758", "0.73048556", "0.7154768", "0.712948", "0.7107197", "0.7094617", "0.7086776", "0.70827293", "0.70110893", "0.7003444", "0.69913834", "0.6972502", "0.69507337", "0.69409984", "0.6928354", "0.6907729", "0.6904762", "0.68920195", "0.6811773", "0.6784577", "0.6770408...
0.0
-1
A command from a descendant node. Process here.
[$onCommand](e) { const { type } = e.detail; switch (type) { case 'update-property': const { uuid, property, value, dataType } = e.detail; this.content.updateProperty(uuid, property, value, dataType); break; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "executeNode(msg) {\n if(msg.author.id === this.discordCli.user.id)\n return;\n\n let commObj = this.root.crawl(msg.content);\n if(!commObj) return;\n \n if(commObj.Node.Type === \"command\")\n commObj.Node.execute(this, commObj, msg);\n else this.emit...
[ "0.64110625", "0.6034039", "0.578237", "0.56419116", "0.54777205", "0.54163957", "0.53817046", "0.5350749", "0.53096783", "0.52692664", "0.5247834", "0.52113336", "0.5188026", "0.51648444", "0.5055249", "0.50030017", "0.49994463", "0.49942243", "0.49942243", "0.49925396", "0....
0.0
-1
Write password to the password input
function writePassword() { var password = generatePassword(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function writePassword() {}", "function writePassword() {\n var password = getPasswordOptions();\n var passwordText = document.querySelector('#password');\n \n passwordText.value = password;\n }", "function writePassword() {\n var password = generatePassword();\n var passwordText = document.qu...
[ "0.88605946", "0.85434437", "0.8511256", "0.8500835", "0.84896296", "0.84846", "0.84719414", "0.84686357", "0.8454292", "0.8443738", "0.8431387", "0.8419759", "0.8418786", "0.8406216", "0.8403772", "0.8400314", "0.8392802", "0.83758265", "0.8370068", "0.83642554", "0.836013",...
0.0
-1
Wrap the callback in a function that ignores failures
function unloader() { try { callback(); } catch(ex) {} }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "wrapCallback(callback) {\r\n return (error, value) => {\r\n if (error) {\r\n this.reject(error);\r\n }\r\n else {\r\n this.resolve(value);\r\n }\r\n if (typeof callback === 'function') {\r\n // Attaching noop...
[ "0.7130556", "0.70233274", "0.6992538", "0.6796988", "0.6796988", "0.67850184", "0.67459124", "0.6743518", "0.67404836", "0.67404836", "0.67404836", "0.67404836", "0.67404836", "0.67404836", "0.67404836", "0.67404836", "0.6726263", "0.66969687", "0.66800034", "0.6672507", "0....
0.0
-1
Provide a way to remove the unloader
function removeUnloader() { let index = unloaders.indexOf(unloader); if (index != -1) unloaders.splice(index, 1); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function removeUnloader() {\n let index = unloaders.indexOf(unloader);\n if (index != -1)\n unloaders.splice(index, 1);\n }", "function unloader() {\n try {\n callback();\n }\n catch(ex) {}\n }", "function unloader() {\n ...
[ "0.8408761", "0.79491895", "0.7903677", "0.7877581", "0.7877581", "0.7701299", "0.7543409", "0.7223334", "0.7223334", "0.71700823", "0.7098222", "0.7098222", "0.70753145", "0.7031964", "0.7005381", "0.6834327", "0.6819188", "0.67495775", "0.67100435", "0.6699955", "0.66456705...
0.8381989
1
Adding the event Handler
function workerMessageHandler(event) { let [rgb, uuid] = JSON.parse(event.data); for (let doc of getImageDocuments()) { if (doc.body.getAttribute("standalone-image-backgrounds-uuid") == uuid) { doc.body.style.background = rgb; return; } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function EventHandlers() {}", "function EventHandlers() {}", "function EventHandlers() {}", "function EventHandlers() {}", "function EventHandlers() {}", "function EventHandlers() {}", "function EventHandlers() {}", "function EventHandlers() {}", "function EventHandlers() {}", "function EventHand...
[ "0.7136425", "0.7136425", "0.7136425", "0.7136425", "0.7136425", "0.7136425", "0.7136425", "0.7136425", "0.7136425", "0.7136425", "0.7136425", "0.7136425", "0.7136425", "0.7136425", "0.7136425", "0.7136425", "0.7136425", "0.7136425", "0.7136425", "0.7024205", "0.7020167", "...
0.0
-1
Save and new players
savePlayers() { var data = { name: this.state.name, year: this.state.year, major: this.state.major, position: this.state.position, hometown: this.state.hometown, }; PlayersDataService.create(data) .then(response => { this.setState({ id: response.data.id, name: response.data.name, year: response.data.year, major: response.data.major, position: response.data.position, hometown: response.data.hometown, submitted:true }); console.log("response", response.data); }).catch(e => { console.log(e, data); }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function savePlayer() {\n window.localStorage.setItem('players',\n JSON.stringify(players));\n}", "function savePlayer()\n\t{\n\t\tlet playerNumber = $('#number').val();\n\t\tlet dataPlayer = {\n\t\t\tname : $('#name').val(),\n\t\t\tmail: $('#mail').val(),\n\t\t\tnumber: playerNumber,\n\t\t\tposition: ...
[ "0.77751213", "0.7435508", "0.7104197", "0.70841295", "0.69330937", "0.6861676", "0.6847475", "0.6840494", "0.6759647", "0.6746505", "0.67310685", "0.67263496", "0.664336", "0.6626201", "0.65870696", "0.64921266", "0.64840263", "0.64775723", "0.6455494", "0.6432882", "0.64294...
0.6084212
50
INICIO: FUNCION PARA OBTENER DATOS DE LA TABLA
function mgrilla_item_obtener_datos_01(){ tblregistro_vista_data = $("#grdregistro_vista_data").dataTable({ "aProcessing": true, "aServerSide": true, dom: "Bfrtip", "searching": true, lengthChange: false, colReorder: true, buttons: [ "copyHtml5", "excelHtml5", "csvHtml5", { extend: "pdfHtml5", orientation: "landscape", download: "open", pageSize: "A4", text: "PDF" }, "colvis" ], "ajax":{ url: "../../controller/arc_producto.php?caso=ctrl_obtener_vista_00", type : "post", dataType : "json", error: function(e){ console.log(e.responseText); } }, "bDestroy": true, "responsive": true, "bInfo":true, "iDisplayLength": 10, "language": { "url": "//cdn.datatables.net/plug-ins/1.10.21/i18n/Spanish.json" } }).DataTable(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function obtener_datos_por_establecimiento() {\n var lista = conexion_resultados();\n //var promedios = conexion_resultados_promedio_por_fecha();\n var contenido = \"\";\n var fecha = \"\";\n\n //removemos los datos previos de la tabla\n\n //checamos si la tabla tiene datos\n if (lista.length ...
[ "0.66968024", "0.6579337", "0.6579223", "0.6562613", "0.6553101", "0.6532155", "0.65128386", "0.64807796", "0.6453171", "0.64436877", "0.64122856", "0.640908", "0.63985884", "0.63939595", "0.63822573", "0.6377218", "0.63661706", "0.63648486", "0.635815", "0.6351869", "0.63498...
0.6589488
1
FIN: FUNCION PARA OBTENER DATOS DE LA TABLA / INICIO: FUNCION PARA ELIMINAR UN REGISTRO
function mgrilla_item_eliminar(scodigo_aleatorio){ var lscodigo_aleatorio = scodigo_aleatorio.toString().replace("/","").slice(0, -1); var lsauditoria_usuario = $("#VGL_susuario_codigo").val(); console.log("lscodigo_aleatorio : " + lscodigo_aleatorio); console.log("lsauditoria_usuario : " + lsauditoria_usuario); swal({ title: "Eliminar", text: "�Est� seguro de eliminar el registro seleccionado?", icon: "warning", buttons: { cancel: { text: "Cancelar", value: null, visible: true, className: "btn btn-default", closeModal: true, }, confirm: { text: "Eliminar", value: true, visible: true, className: "btn btn-warning", closeModal: true } } }).then((result) => { if (result==true) { /** BUSCAR SI OTRAS TABLAS DEPENDEN DE ESTE REGISTRO */ $.post("../../controller/arc_producto.php?caso=ctrl_buscar_dependencia",{ pscodigo_aleatorio:lscodigo_aleatorio}, function(data, status){ data = JSON.parse(data); /** console.log(data); */ var lnnumero_registros = data.nnumero_registros; /** console.log("lnnumero_registros: " + lnnumero_registros); */ if (lnnumero_registros == "0") { $.post("../../controller/arc_producto.php?caso=ctrl_eliminar",{ pscodigo_aleatorio:lscodigo_aleatorio, psauditoria_usuario:lsauditoria_usuario, },function(data, status){ $("#grdregistro_vista_data").DataTable().ajax.reload(); swal( "Eliminar!", "El registro se elimin� correctamente.", "success" ); }); } else { swal( "Aviso!", "No puede eliminar este registro porque est� asociado con otra informaci�n.", "success" ); }; }); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ControlloDataInserita(datadafiltrare,campo,dt,colore,sfondo) {\r\n\r\nvar gg; //variabile per i giorni\r\nvar mm; // variabile per i mesi\r\nvar yy; // variabile per l'anno\r\nvar dateNow = new Date(); // assegna la data corrente (presa dal pc locale)\r\nvar yearNow = dateNow.getFullYear(); //assegna l'a...
[ "0.6797313", "0.657865", "0.6565169", "0.6465045", "0.64612997", "0.634519", "0.6326708", "0.62875354", "0.62767005", "0.6266325", "0.6207428", "0.6202906", "0.61876357", "0.6163063", "0.6137261", "0.6128854", "0.6124658", "0.6122147", "0.61144793", "0.61117905", "0.61112016"...
0.0
-1
FIN: FUNCION PARA ELIMINAR UN REGISTRO / OBJETO: grilla METODO:
function mgrilla_item_seleccion_fondocolor(){ $("#grdregistro_vista_data tbody").on( "click", "tr", function () { if ( $(this).hasClass("selected") ) { $(this).removeClass("selected"); } else { tblregistro_vista_data.$("tr.selected").removeClass("selected"); $(this).addClass("selected"); } } ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function checkExistRegistro(ressult){\n if(ressult.length > 0) { msjDanger('REGISTRO', '<strong>Existe un registro pendiente con esa cuenta</strong>'); }\n else {\n gestor.addLocal(\"\", \"\", \"\", 'registro');\n\n let registro = {};\n registro[\"id\"] = $(\"#usuario\").val();\n ...
[ "0.63085294", "0.6274227", "0.6264676", "0.6165149", "0.61538434", "0.6142857", "0.61343884", "0.61341226", "0.6113145", "0.6086374", "0.6071996", "0.60386664", "0.60135895", "0.59961265", "0.59800535", "0.59462136", "0.59325397", "0.5914893", "0.59080696", "0.5896865", "0.58...
0.0
-1
OBJETO: Formulario METODO: INIT
function mobjetos__inicializar(){ /* $("#txtNombreDelCampo").val(""); */ /* cmbNombreDelCampo__inicializar(); */ /* $("#txtNombreDelCampo").focus(); */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "constructor(objeto) {\n\t\tthis.posicionamento = new posicionamento(objeto.linha, objeto.coluna);\n\t\tthis.sujo = objeto.sujo;\n\t\tthis.visitado = objeto.visitado;\n\t\tthis.listado = objeto.listado;\n\t}", "static initialize(obj, body, path) { \n obj['body'] = body;\n obj['path'] = path;\n }"...
[ "0.6921524", "0.62317103", "0.61054164", "0.6092609", "0.59790766", "0.59395015", "0.5874257", "0.5872613", "0.5869123", "0.5849715", "0.58419317", "0.5835324", "0.5742354", "0.5719568", "0.5716567", "0.57033557", "0.5694918", "0.56939", "0.56908244", "0.5676737", "0.56694186...
0.52536845
75
OBJETO: cmbNombreDelCampo METODO: INIT
function cmbNombreDelCampo__inicializar(){ /* $("#cmbNombreDelCampo").html(""); */ /* $("#cmbNombreDelCampo").selectpicker("refresh"); */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function mobjetos__inicializar(){\n\t/* $(\"#txtNombreDelCampo\").val(\"\"); */\n\t/* cmbNombreDelCampo__inicializar(); */\n\t/* $(\"#txtNombreDelCampo\").focus(); */\n}", "function cargar_datos_combo(combo, txt_arr_texto, txt_arr_valor){\n\telem_cmb_texto\t= string_to_array(\";\" , txt_arr_texto);\n\telem_cmb_v...
[ "0.80524755", "0.67754775", "0.6702719", "0.66650796", "0.6597001", "0.6558983", "0.65227914", "0.64197606", "0.64086306", "0.6389258", "0.63877875", "0.6359854", "0.6277756", "0.6239082", "0.6176311", "0.6140267", "0.6090288", "0.6077477", "0.60774136", "0.60629165", "0.6049...
0.728498
1
hello.js Hello world in JavaScript.
function hello(name) { console.log('Hello, World! My name is ' + name + '.') }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function helloWorld() {\n console.log('hello javascript'); \n console.log('I like ruby more'); \n}", "function hello() {\r\n\tconsole.log(\"Hello World!\");\r\n}", "function hello() {\n console.log('hello world');\n }", "function hello() {\n console.log(\"Hello, World\");\n}", "function hello(){\...
[ "0.8060585", "0.80592626", "0.80045366", "0.7967275", "0.79332227", "0.7868017", "0.7860543", "0.78283167", "0.78264123", "0.77858233", "0.77799135", "0.7742085", "0.773192", "0.7730461", "0.7712661", "0.7709662", "0.7703147", "0.76378775", "0.7625013", "0.761975", "0.761975"...
0.73781604
54
==================================================== /Function: for dialog box to appear
function dialog(arg) { var x = document.createElement("DIALOG"); var t = document.createTextNode(arg); x.setAttribute("open", "open"); x.appendChild(t); document.body.appendChild(x); /*close dialog after 3sec*/ setTimeout(function(){ x.removeAttribute("open", "open"); /* x.setAttribute("close", "close");*/ }, 3000); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function display_dialogBox(dialogContentElement,message,title,buttons_to_display)\n{\n\t$(dialogContentElement).appendTo('body').html(message)\n\t.dialog(\n\t{\n\t\tmodal \t\t\t: true, \n\t\ttitle \t\t\t: title, \n\t\tzIndex \t\t\t: 10000, \n\t\tautoOpen \t\t: true,\n\t\twidth \t\t\t: 'auto', \n\t\theight \t\t\t: ...
[ "0.7468991", "0.74425626", "0.744037", "0.7352576", "0.7273359", "0.72544926", "0.71837753", "0.7182276", "0.71661544", "0.7165528", "0.7131259", "0.7109547", "0.710226", "0.7093812", "0.70553535", "0.7023936", "0.699124", "0.6953656", "0.69374275", "0.6937003", "0.6931964", ...
0.0
-1
Check for empty input and change the error state
checkInput() { var checkArr = [false, false, false, false, false] if (this.refs.companyName.value === '') { checkArr[0] = true; } if (this.refs.companyAddress.value === '') { checkArr[1] = true; } if (this.refs.companyRevenue.value === '') { checkArr[2] = true; } if (this.state.country_code === '') { checkArr[3] = true; } if (this.refs.companyPhoneNumber.value === '') { checkArr[4] = true; } this.setState({ error: checkArr}) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "checkEmptyInput() {\n if (\n this.state.selected === \"\" ||\n this.state.date === \"\" ||\n this.state.date2 === \"\" ||\n this.state.timeStart === \"\" ||\n this.state.timeEnd === \"\"\n ) {\n alert(\"Error!Dont Leave Blank Fields!\");\n return false;\n }\n return t...
[ "0.7182022", "0.7030161", "0.6984411", "0.6972721", "0.69539297", "0.69399756", "0.68481624", "0.67780215", "0.6716509", "0.6688958", "0.66460836", "0.6628474", "0.6565465", "0.6526228", "0.6515873", "0.6502551", "0.64997756", "0.6466677", "0.64562184", "0.6453888", "0.645112...
0.6229368
43
Select the class for the input form based on the error state
selectClass() { var inputArr = this.state.input.slice() this.state.error.map((item, index) => { if (this.state.error[index] == true && index != 3) { inputArr[index] = 'empty_input' } else if (this.state.error[index] == true && index == 3) { inputArr[index] = '2px solid red' } else { inputArr[index] = '' } }) this.setState({input: inputArr}) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function inputError()\n {\n input.addClass('mt-error');\n }", "function toggleError(state) {\n state ? $('#classInput').addClass('error') :\n $('#classInput').removeClass('error');\n}", "function setErrorFor(input){\r\n const form_required = input.parentElement;\r\n form_required.c...
[ "0.7497861", "0.7146865", "0.696939", "0.6861162", "0.6804934", "0.6783795", "0.6694252", "0.66486627", "0.6636805", "0.66358185", "0.66026324", "0.65632033", "0.65338755", "0.6532126", "0.6525144", "0.65196353", "0.65191036", "0.6504873", "0.6473391", "0.64716434", "0.644861...
0.6558868
12
Reset the input form after create action
reset() { this.refs.companyName.value = ''; this.refs.companyAddress.value = ''; this.setState({revenue: '', phone: ''}) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function resetNewAnnotationForm(){\n\t\t$(\"#new-annotation-title\").val(\"\");\n\t\t$(\"#new-annotation-text\").val(\"\");\n\t\t$(\"#new-annotation-image\").val(\"\")\n\t\t$(\"#new-annotation-public\")[0].checked = false;\n\t\t$(\".error.message\").css(\"display\", \"none\");\n\t\t$(\"#new-annotation-title-field\...
[ "0.7235578", "0.72270215", "0.7140411", "0.7101065", "0.70979637", "0.7094577", "0.701642", "0.7004627", "0.69644606", "0.69596606", "0.69519454", "0.692664", "0.6914254", "0.6882194", "0.688006", "0.68757063", "0.68650883", "0.6859159", "0.6852934", "0.6851091", "0.6839408",...
0.0
-1
Change the state of the notification (show / hide)
displayNotification() { this.setState({snackbar: true}) setTimeout(()=>this.setState({snackbar: false}), 3000); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "notificationsToggle(state) {\n // console.log(\"toggle\")\n if (state.notificationsShow == \"show\") {\n state.notificationsShow = \"\"\n } else {\n state.notificationsShow = \"show\"\n }\n }", "function setNotificationPopupStatus() {\n if (notificationIsOpen == 0) {\n ...
[ "0.77550167", "0.7161063", "0.7114141", "0.70133686", "0.7013232", "0.700943", "0.69459236", "0.6845056", "0.6774296", "0.6752678", "0.6670241", "0.6641349", "0.65946954", "0.6577906", "0.65738887", "0.65695256", "0.65387446", "0.6503707", "0.6487407", "0.64763045", "0.645873...
0.6531113
17
Save the value of the country code from child component to local state
onCountryPick(code) { this.setState({ country_code: code}) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "onValueChange (value){\n this.setState({\n country: value,\n countryCorrect: true\n })\n }", "function handleCountryButtonClick(e) {\n console.log(e.target.innerText);\n\n let countrySelectedCode;\n\n countriesArray.forEach(countryEntry => {\n if (countryEntry...
[ "0.66277164", "0.6586168", "0.6520552", "0.65062267", "0.64619666", "0.64419705", "0.6410882", "0.6338161", "0.630967", "0.62645483", "0.6263269", "0.6251508", "0.62390023", "0.6216782", "0.6192552", "0.61216736", "0.6063683", "0.6002637", "0.5842488", "0.57879114", "0.574327...
0.71605444
0
render warning label based on the error state
renderLabel() { return ( { Name: () => { if (this.state.error[0] === true) { return <Label bsStyle="danger">Please input Name</Label> } }, Address: () => { if (this.state.error[1] === true) { return <Label bsStyle="danger">Please input Address</Label> } }, Revenue: () => { if (this.state.error[2] === true) { return <Label bsStyle="danger">Please input Revenue</Label> } }, Phone: () => { if (this.state.error[3] === true || this.state.error[4] === true) { return <Label bsStyle="danger">Please input Code & Phone Number</Label> } } } ) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function errorLabel(message) {\n\treturn '<label class=\"control-label\">\\\n\t\t\t\t<i class=\"fa fa-times-circle-o\"></i> '+message+'</label>'\n}", "function updateUiError() {\n showElements(statusMessage);\n statusMessage.textContent =\n \"Sorry you have entered invalid value, please try again!\";\n sta...
[ "0.6972556", "0.6655608", "0.664206", "0.66191643", "0.6601564", "0.6586565", "0.6570012", "0.65548104", "0.6530104", "0.6506649", "0.65011764", "0.6478161", "0.6466833", "0.6366441", "0.63482183", "0.63067216", "0.6303571", "0.62840676", "0.6276389", "0.627094", "0.6239385",...
0.6319255
15
Normal function This works when we have to call the function again and again here our variables are safe that they are immutable so the variables can't be accessed
function addTogether() { var x = 20; var y = 20; var answer = x + y; console.log('Normal function call executed') console.log(answer); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "transient protected internal function m189() {}", "private public function m246() {}", "transient private protected internal function m182() {}", "static private internal function m121() {}", "transient final protected internal function m174() {}", "mutate() {}", "mutate() {}", "private internal func...
[ "0.61011446", "0.6052135", "0.5941378", "0.58603555", "0.5822046", "0.5805021", "0.5805021", "0.5804598", "0.5803815", "0.57589203", "0.5728567", "0.5702517", "0.5702517", "0.56998575", "0.56721276", "0.56392086", "0.5604708", "0.56006026", "0.55686533", "0.55584663", "0.5557...
0.0
-1
These next 2 functions are in charge of displayed "correct" or "incorrect," depending on the users input. If the user selects the correct answer, their score goes up by one (b++).
function q1c() { message003.innerHTML = "Correct."; message002.innerHTML = ""; score001.innerHTML = b++; message004.innerHTML = "<button class=buttons002 onclick=next001()>Next</button>"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function answerIsCorrect () {\r\n feedbackForCorrect();\r\n updateScore();\r\n}", "function submitAnswer(){\r\n\ty = document.getElementById(\"qans\").value\r\n\tvar yy=y.toUpperCase();\r\n\tx = document.getElementById(\"question\").value\r\n \r\n\tif (ans===1){\r\n\t\ty = document.getElementById(\"qans\")....
[ "0.7731449", "0.7606274", "0.75470644", "0.7523671", "0.739199", "0.73683095", "0.733974", "0.7332711", "0.725763", "0.7246252", "0.72375065", "0.7236545", "0.7235316", "0.7233012", "0.7219098", "0.72053796", "0.7199229", "0.71969515", "0.7188333", "0.71645355", "0.71564496",...
0.0
-1
These if and else if statements tell the webpage what to do when the user selects the "next" button. The user can only earn a maximum of '5' points. Once they have earned '5' points, the quiz will display a message saying, "end of quiz."
function next001() { if (a == "2") { message001.innerHTML = question001[1]; message002.innerHTML = options002; message003.innerHTML = ""; number001.innerHTML = a++; message004.innerHTML = ""; } else if (a == "3") { message001.innerHTML = question001[2]; message002.innerHTML = options003; message003.innerHTML = ""; number001.innerHTML = a++; message004.innerHTML = ""; } else if (a == "4") { message001.innerHTML = question001[3]; message002.innerHTML = options004; message003.innerHTML = ""; number001.innerHTML = a++; message004.innerHTML = ""; } else if (a == "5") { message001.innerHTML = question001[4]; message002.innerHTML = options005; message003.innerHTML = ""; number001.innerHTML = a++; message004.innerHTML = ""; } else { window.clearInterval(update); c = "-"; message001.innerHTML = "End of Quiz"; message002.innerHTML = ""; message003.innerHTML = ""; message004.innerHTML = "<button class=buttons002 onclick=repeat001()>Repeat</button>"; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function nextQuestion(event) {\n\n\n // condition uses click event to add to user score if correct ansser is made //\n if (event.target.value === questions[currentQuesIndex].correctAns) {\n score++;\n } else {\n time -= 5;\n counter.textContent = time + \" Seconds left on quiz.\";\n ...
[ "0.7439825", "0.73396844", "0.7278731", "0.72403735", "0.7192062", "0.71648914", "0.71577525", "0.71508676", "0.7131774", "0.7110317", "0.70371896", "0.69992965", "0.69607574", "0.69505984", "0.693869", "0.6931927", "0.6914498", "0.69003505", "0.68879175", "0.6879303", "0.686...
0.0
-1
fecha = a y fecha2 =b a>b = TRUE a=b = FALSE a<b = FALSE
function compare_dates(fecha, fecha2) { var xMonth=fecha.substring(3, 5); var xDay=fecha.substring(0, 2); var xYear=fecha.substring(6,10); var yMonth=fecha2.substring(3,5); var yDay=fecha2.substring(0, 2); var yYear=fecha2.substring(6,10); if (xYear > yYear){ return(true); }else{ if (xYear == yYear){ if (xMonth > yMonth){ return(true); }else{ if (xMonth == yMonth){ if (xDay> yDay) return(true); else return(false); }else{ return(false); } } }else{ return(false); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function comparafecha(fecha1, fecha2){\n \n dia = fecha1.substring(0,2) //dia\n mes = fecha1.substring(3,5) //mes\n anho = fecha1.substring(6,10) //anho\n fecha1x = anho + mes + dia\n dia = fecha2.substring(0,2) //dia\n mes = fecha2.substring(3,5) //mes...
[ "0.7259568", "0.718672", "0.69970506", "0.69300467", "0.6892409", "0.6877885", "0.6823914", "0.6727701", "0.66037464", "0.6589632", "0.6589632", "0.6589632", "0.6565917", "0.6565917", "0.6564586", "0.65605354", "0.65605354", "0.6559399", "0.6509227", "0.6497943", "0.6483748",...
0.7268331
0
Funcion valida solo digitos numericos
function validateDigitos(myfield, e) { return restrictCharacters(myfield, e, digitsOnly); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function onlyNumeric() {\n //Get element id\n const idName = this.id;\n // Regex that checks if input has somethong that is not a digit\n const current_value = $(`#${idName}`).val();\n const re = new RegExp(/(\\D+)/gi);\n const match = re.exec(current_value);\n // Check match\n if (match !=...
[ "0.74387825", "0.73756796", "0.7375156", "0.73401827", "0.7258924", "0.72289145", "0.7200956", "0.7190702", "0.7165188", "0.71361583", "0.7125462", "0.7123674", "0.7111539", "0.7084717", "0.7055427", "0.70404387", "0.70199436", "0.70189685", "0.70189685", "0.70189685", "0.700...
0.69078535
42
Funcion valida solo formato horaminutosegundo
function validateTiempo(myfield, e) { return restrictCharacters(myfield, e, tiempo); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function validarHora() {\n\t// usaremos un expresion regular para comprobar que la hora cumple el patron indicado:\n\t// podemos teclear horas de 00 a 23 (0[0-9]|1[0-9]|2[0-3]) Ej: 01 o 12 o 22\n\t// seguido de : [:]\n\t// y para terminar el numero de minutos desde 00 a 59 (0[0-9]|1[0-9]|2[0-9]|3[0-9]|4[0-9]|5[0-9...
[ "0.7329562", "0.71338624", "0.6980917", "0.69069797", "0.6889594", "0.667362", "0.6519527", "0.6480206", "0.647397", "0.6419536", "0.6301572", "0.6273503", "0.6263211", "0.6235162", "0.6206305", "0.619528", "0.61902666", "0.6129", "0.61119133", "0.6064636", "0.60093075", "0...
0.0
-1
The `pgquerystream` module returns a stream, but the only way to get it out of the promise that `pgClient` returns is to use `highlandflatten`.
getStream() { return h( this._client.connect() .then(() => { const query = new QueryStream(this._source, this._params); const stream = this._client.query(query); stream.on('end', () => { this._client.end(); }); return stream .pipe(h()) ; }) ) .flatten() ; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "_stream(connection, query, /** @type {NodeJS.ReadWriteStream} */ stream) {\n return new Promise((resolve, reject) => {\n const request = this._makeRequest(query, (err) => {\n if (err) {\n stream.emit('error', err);\n return reject(err);\n }\n\n resolve();\n });\n...
[ "0.64795226", "0.6207072", "0.60264564", "0.58850384", "0.5598717", "0.5508695", "0.53263193", "0.5218715", "0.5214324", "0.5167134", "0.5157735", "0.51560813", "0.51560813", "0.51181746", "0.51110923", "0.5095104", "0.5084343", "0.50747144", "0.5061584", "0.5024673", "0.5008...
0.69250476
0
group every two posts
getGroupedArray(posts) { return posts.reduce((result, value, index, array) => { if (index % 2 === 0) result.push(array.slice(index, index + 2)); return result; }, []); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function combinePosts() {\n\tfor (var j = (blogEntries.length - 1); j >= 0; j--) {\n\t\tformatPostHTML(j);\n\t}\n}", "function get_even(criterion, cb) {\n var gotten = 0;\n var posts = {};\n criterion.count = criterion.count / 2;\n get_posts(criterion, function(gposts) {\n gotten++;\n O...
[ "0.584434", "0.5771722", "0.5568487", "0.5404918", "0.52304906", "0.5187347", "0.5178116", "0.51092744", "0.50892144", "0.5088701", "0.5053758", "0.49986213", "0.4992475", "0.49838698", "0.49736896", "0.4966728", "0.49456382", "0.49372658", "0.49299955", "0.49046978", "0.4887...
0.6859666
0
sum(20,30)//argument function expression function expression simply means create a function and put it into the variables.
function sum1(a,b){ var total = a+b; console.log(total); // but it is not a fully function expression }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function sum() {\n \n}", "function sum(a,b) {\n return function(c,d){\n return a+b+c+d\n }\n}", "function \n//declare a function\nfunction sum()\n//need parentheses for your parameters\nfunction sum(num1, num2) {}", "sum() {}", "function sum(a) {\n return function(b) {\n return a + b;\n }\n}", "fu...
[ "0.74143606", "0.74037623", "0.72606206", "0.72070473", "0.7196615", "0.71475965", "0.7141033", "0.7139179", "0.7135075", "0.7130645", "0.70102155", "0.7009452", "0.6999755", "0.69970095", "0.69677067", "0.69579846", "0.6952157", "0.6918777", "0.6916012", "0.6862404", "0.6862...
0.73504925
2
Handler to call on window resize
function handleResize() { // Set window width/height to state setWindowSize({ width: window.innerWidth, height: window.innerHeight, }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function onWindowResize() {\n\n\t\t\t}", "function onWindowResize() {\n updateSizes();\n }", "function onWindowResize() {\n\tonAggregateResize();\n}", "function edgtfOnWindowResize() {\n }", "onResize () {}", "onWindowResize() {\n\t\tthis.windowHeight = this.getWindowHeight();\n\t\tthis.updatePosi...
[ "0.87321997", "0.8683529", "0.83361626", "0.83318853", "0.8291285", "0.81736803", "0.81348217", "0.8123529", "0.810275", "0.80989", "0.80720466", "0.8034636", "0.7989424", "0.78245544", "0.7814024", "0.78111494", "0.7800373", "0.7796291", "0.7774407", "0.7746661", "0.76973426...
0.7538565
55
Check input for number and handle if not
function checkInput(e) { console.log(e.target.value); //check if value is a valid number (even number as strings) if (isNaN(e.target.value)) { //is not a number console.log("Not a number"); allowStep2 = false; sliderInputLine.style.background = "red"; step1Button.style.background = "#acacac"; } else { //is a number console.log("Nummberr"); allowStep2 = true; slider.value = e.target.value; sliderInputLine.style.removeProperty("background"); step1Button.style.removeProperty("background"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function isInputNumber(evt){\n var ch =String.fromCharCode(evt.which);\n if(!(/[0-9]/.test(ch))){\n evt.preventDefault();\n }\n }", "function isInputNumber(e) {\n let regularExpresion = new RegExp('^[1-9]?[0-9]{1}$|^100$');\n let regExpOk = regularExpresion.test(e.target.valu...
[ "0.75849277", "0.7581397", "0.7495194", "0.74772006", "0.7453199", "0.74108815", "0.73889863", "0.7386815", "0.7384658", "0.73415124", "0.73415124", "0.73023343", "0.73023343", "0.7276251", "0.72664434", "0.7257845", "0.7240908", "0.7210033", "0.71980447", "0.719417", "0.7186...
0.0
-1
Change between period with refreshing onclick
function addClickEventToLI() { dropdownLIS = document.querySelectorAll("#step-1 .dropdown li"); dropdownLIS.forEach(li => { li.addEventListener("click", togglePeriod); }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function doRefresh(){\n let nextUpdate = new Date();\n nextUpdate.setMinutes(nextUpdate.getMinutes() + 1);\n $('#nextUpdate').html(nextUpdate.toLocaleString());\n clearTable();\n loadDefaults();\n}", "scheduleRefresh() {}", "scheduleRefresh() {}", "function setRefresh () {\n setInterval( function() {wi...
[ "0.68825096", "0.67292047", "0.67292047", "0.6644801", "0.6534746", "0.65260994", "0.6498279", "0.6463243", "0.64344376", "0.6398418", "0.6382496", "0.63329375", "0.63287085", "0.6294224", "0.62608135", "0.62406343", "0.6226506", "0.6221737", "0.61603916", "0.6156099", "0.613...
0.0
-1
Get overview of latets three donations and top three donators
function getOverview() { db.collection("overview_visitor") .get() .then(function(querySnapshot) { querySnapshot.forEach(function(doc) { // doc.data() is never undefined for query doc snapshots console.log("Your document data is: ", doc.data()); overview = doc.data(); displayRecentDonors(); displayTopDonors(); }); }) .catch(function(error) { console.log("Error getting documents: ", error); }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getResults() {\n // Grab all of the current donations\n $.getJSON(\"/all\", function(data) {\n // For each donation...\n for (var i = 0; i < data.length; i++) {\n // ...populate #results with a p-tag that includes the donation's dollars and object id\n $(\"#results\").prepend...
[ "0.62073314", "0.5788435", "0.55614734", "0.55528474", "0.54944396", "0.5448022", "0.53475666", "0.52442676", "0.52006704", "0.51176554", "0.51054585", "0.50813174", "0.5071811", "0.50456935", "0.5022276", "0.5005735", "0.4976097", "0.49623036", "0.49599645", "0.4947852", "0....
0.0
-1
OBJETOS PARA USAR PROXIMAMENTE
function Compra(productos, importe, metodoDePago,cantCuotas){ this.productos = productos; this.importe = importe; this.metodoDePago = metodoDePago; this.cantCuotas = cantCuotas; financiar = function(){ if (this.metodoDePago = 'C' && this.cantCuotas > 1){ importe = importe/cantCuotas } } recibo = function(){ return `Productos ${Array.from(productos.nombre)}\n Importe final = ${importe} en ${cantCuotas}` } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function SetItems() {\n //configuracion del tootip de ayuda\n //tooltip de navegacion superior\n $('.navigationTop a').cluetip({ splitTitle: '|', width: 250, delayedClose: 1200, cursor: 'pointer', sticky: false });\n //tooltip para el link del mapa\n $('.SiteMapa span a').cluetip({ splitTitle: ...
[ "0.6244575", "0.6229888", "0.6157935", "0.6088538", "0.5997714", "0.59884983", "0.59588945", "0.5954717", "0.5939371", "0.59172285", "0.59086657", "0.58998126", "0.5877936", "0.58721083", "0.58602405", "0.5857508", "0.58437175", "0.58403164", "0.5829069", "0.5820085", "0.5815...
0.0
-1
Recursively encodes the supplied object according to the canonical JSON form as specified at It's a restricted dialect of JSON in which keys are lexically sorted, floats are not allowed, and only double quotes and backslashes are escaped.
function canonicalize(object) { const buffer = []; if (typeof object === 'string') { buffer.push(canonicalizeString(object)); } else if (typeof object === 'boolean') { buffer.push(JSON.stringify(object)); } else if (Number.isInteger(object)) { buffer.push(JSON.stringify(object)); } else if (object === null) { buffer.push(JSON.stringify(object)); } else if (Array.isArray(object)) { buffer.push(LEFT_SQUARE_BRACKET); let first = true; object.forEach((element) => { if (!first) { buffer.push(COMMA); } first = false; buffer.push(canonicalize(element)); }); buffer.push(RIGHT_SQUARE_BRACKET); } else if (typeof object === 'object') { buffer.push(LEFT_CURLY_BRACKET); let first = true; Object.keys(object) .sort() .forEach((property) => { if (!first) { buffer.push(COMMA); } first = false; buffer.push(canonicalizeString(property)); buffer.push(COLON); buffer.push(canonicalize(object[property])); }); buffer.push(RIGHT_CURLY_BRACKET); } else { throw new TypeError('cannot encode ' + object.toString()); } return buffer.join(''); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function json_encode(mixed_val) {\n var retVal, json = this.window.JSON;\n try {\n if (typeof json === 'object' && typeof json.stringify === 'function') {\n retVal = json.stringify(mixed_val); // Errors will not be caught here if our own equivalent to resource\n // (an instance of PHPJS_Resource) i...
[ "0.65108734", "0.6498207", "0.6440513", "0.6400591", "0.6358962", "0.6182721", "0.6169059", "0.61364204", "0.6134429", "0.61203116", "0.61112165", "0.61024374", "0.60910016", "0.60730433", "0.6054769", "0.6008793", "0.5993195", "0.59900856", "0.596988", "0.5943206", "0.591155...
0.64422095
2
String canonicalization consists of escaping backslash (\) and double quote (") characters and wrapping the resulting string in double quotes.
function canonicalizeString(string) { const escapedString = string.replace(/\\/g, '\\\\').replace(/"/g, '\\"'); return '"' + escapedString + '"'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function quote(s) {\n /*\n * ECMA-262, 5th ed., 7.8.4: All characters may appear literally in a\n * string literal except for the closing quote character, backslash,\n * carriage return, line separator, paragraph separator, and line feed.\n * Any character may appear in the f...
[ "0.70207036", "0.7013718", "0.70078886", "0.70078886", "0.70078886", "0.70078886", "0.70078886", "0.70078886", "0.70078886", "0.70078886", "0.70078886", "0.70078886", "0.70078886", "0.70078886", "0.70078886", "0.70078886", "0.70078886", "0.70078886", "0.70078886", "0.70078886",...
0.84380484
0
sync the location and zoom of the otherMaps to the sourceMap
function syncMaps(sourceMap, otherMaps) { var latlong = getLatLong(sourceMap); var zoom = getZoom(sourceMap); $.each(otherMaps, function(i, other) { centerMap(other, latlong); setZoom(other, zoom); }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "_synchronizeMaps(baseMap) {\n var targetMaps = this._maps.filter(function (m, i) { return m !== baseMap; });\n this._detachMapMoveHandlers();\n var cam = baseMap.getCamera();\n targetMaps.forEach(function (targetMap) {\n targetMap.setCamera({\n center: cam.cent...
[ "0.6934311", "0.6875341", "0.6770373", "0.6702336", "0.6663416", "0.633148", "0.6262989", "0.6157794", "0.6115247", "0.60888463", "0.60747707", "0.606771", "0.60570526", "0.60399926", "0.60247386", "0.5992457", "0.598272", "0.5982104", "0.5973126", "0.5970586", "0.59662515", ...
0.7958602
0
get every other map besides the passed in one
function getMapsBesides(map) { return $.grep(getMapArray(), function(value) { return value != map }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "_get2Groups(map) {\n let group1 = [],\n group2 = [];\n\n let keys = [...map.keys()];\n keys.forEach(k => map.get(k) == 1 ? group1.push(k) : group2.push(k))\n return [group1, group2];\n }", "function unionWithRewrite(map1, map2) {\n var unionMap = clone(map1);\n var map2Keys = Obje...
[ "0.664387", "0.5547924", "0.54715455", "0.5321724", "0.5314321", "0.53141475", "0.5274261", "0.5246803", "0.52312505", "0.5210243", "0.51902014", "0.5167166", "0.50993174", "0.50810695", "0.5032744", "0.50284076", "0.5013123", "0.49897864", "0.49639085", "0.4962114", "0.49564...
0.5872471
1
two maps are close enough if the latitude and longitude are within 0.01 of each other
function closeEnough(latLong, otherLatLong) { return Math.abs(latLong[0] - otherLatLong[0]) < 0.01 && Math.abs(latLong[1] - otherLatLong[1]) < 0.01; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function calculateDistance(lon1,lat1,lon2,lat2){\n\n var dGridSizeXReduction = Math.abs(Math.cos(lat1 * Math.PI / 180.0 ));\n var dRed2 = dGridSizeXReduction * dGridSizeXReduction;\n var dMinDist2 = (lon1 - lon2) * (lon1 - lon2) * dRed2 + (lat1 - lat2) * (lat1 - lat2);\t\n return Math.sqrt(dMinDist2);...
[ "0.68691903", "0.6734594", "0.66759187", "0.6652746", "0.6638453", "0.6638453", "0.66240364", "0.65910727", "0.657463", "0.6573136", "0.65559983", "0.6546252", "0.6521168", "0.65164185", "0.6516011", "0.6505852", "0.64942694", "0.64934486", "0.64902854", "0.64853597", "0.6484...
0.6781569
1
find a map that has a different center than the others
function findOutOfSyncMap() { var zoomedMap = findOddball(getMapArray(), zoomComparator); if (zoomedMap !== null) { return zoomedMap; } return findOddball(getMapArray(), latlongComparator); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function calculateCenter() {\r\n center = map.getCenter();\r\n}", "function calculateCenter() {\n center = map.getCenter();\n}", "getMapCenter() {\n const windowPosition = new Cesium.Cartesian2(this.viewer.container.clientWidth / 2, this.viewer.container.clientHeight / 2);\n const pickRay = this.viewer...
[ "0.6463745", "0.64509517", "0.63682985", "0.6336122", "0.62718886", "0.62503517", "0.623549", "0.61337286", "0.6132496", "0.61113125", "0.60910153", "0.6034984", "0.6026063", "0.60081106", "0.5957826", "0.59485686", "0.59464943", "0.5945837", "0.59399664", "0.5930833", "0.591...
0.6207904
7
generic function to find the oddball in an array given a comparator function
function findOddball(array, comparator) { var cur = array[0]; var candidate = null; for (var i = 1; i < array.length; i++) { var same = comparator(cur, array[i]); if (candidate != null) { return same? candidate : cur; } if (!same) { candidate = cur; } cur = array[i]; } return candidate == null? null : cur; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function returnOdds(array) {\n}", "function oddComparator(home,away,flag){\n if(home >= away){\n if(flag == \"low\"){\n return [\"away\",away];\n }else{\n return [\"home\",home]\n }\n }else{\n if(flag == \"low\"){\n return [\"home\",home]\n }else{\n return [\"away\",away]\n }\n...
[ "0.6244344", "0.62087166", "0.61113536", "0.6020386", "0.6016672", "0.5956524", "0.5872543", "0.5862129", "0.5854646", "0.58497524", "0.5821213", "0.5815745", "0.5771867", "0.57388544", "0.57379687", "0.5722937", "0.5706383", "0.5700951", "0.5698129", "0.5694465", "0.56922215...
0.8121236
0
wrapper functions to unify common actions across the different map apis
function getLatLong(map) { if (map === GoogleMap) { var ll = GoogleMap.getCenter(); return [ll.lat(), ll.lng()]; } if (map === BingMap) { var ll = BingMap.getCenter(); return [ll.latitude, ll.longitude]; } if (map === NokiaMap) { var ll = NokiaMap.center; return [ll.latitude, ll.longitude]; } if (map == MapquestMap) { var ll = MapquestMap.getCenter(); return[ll.lat, ll.lng]; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "handleMapLoad(map) {\n }", "function map() {\n\n}", "function excitM_func(){\n hidemapFunction();\n uncheckedmap();\n }", "switch(value, map) {\n let key;\n if (typeof value === 'function') {\n key = value(data)\n } else if (typeof value === 'object') {\n key = data\n ...
[ "0.6100964", "0.6006923", "0.60001475", "0.5823043", "0.56716067", "0.5618831", "0.55897784", "0.5569147", "0.55447567", "0.5544591", "0.5530329", "0.5486036", "0.54831845", "0.548281", "0.548281", "0.54489267", "0.54161245", "0.54161245", "0.541174", "0.5349169", "0.5329154"...
0.0
-1
Find Match function that accepts a list of job characteristics and a list of individual skills/characteristics and provides a match score between 0 and 100
function findMatch() { let jobCharacteristics = jobs.characteristics[0]; let candidateSkills = candidates.skills[0]; // use substring method to compare strings let result = jobCharacteristics.localeCompare(candidateSkills); document.getElementById("result").innerHTML = result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function jobAwesomenessScore(jobAttrs) {\n /**\n * @param {Object} jobAttrs - Qualities of a job tested for awesomeness\n * @return {number} 0 score for offer without good qualities and +1 for every\n * met quality\n */\n const { paidVacation = 0, hammocksInOffice = false, freeLunch = ...
[ "0.59509116", "0.5862599", "0.5837954", "0.57781386", "0.5654197", "0.5591687", "0.5563011", "0.55531454", "0.5536104", "0.5518001", "0.5508716", "0.55009043", "0.54773307", "0.5431363", "0.54272795", "0.5406172", "0.54042715", "0.5384472", "0.5379751", "0.536157", "0.5348487...
0.68565404
0
Action functions that the hero can use to attack and heal
function attack(attacker, defender) { return defender - attacker; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function damageStep(actionOne, actionTwo) {\n disableTwo();\n if (actionOne === \"attack\" && actionTwo === \"attack\") {\n doubleAttack(playerOne, playerTwo, \"#healthTwo\", \"#healthOne\");\n showAnimation(\"#animateAttackOne\", 900);\n showAnimation(\"#animateAttackTwo\", 900);\n enableOne();\n }...
[ "0.74064153", "0.7200529", "0.70779645", "0.70751286", "0.6983173", "0.69171274", "0.6914797", "0.69110733", "0.690933", "0.68821394", "0.6825817", "0.6813672", "0.67973083", "0.6788586", "0.6775967", "0.67603105", "0.6740354", "0.6727519", "0.67202854", "0.67132866", "0.6690...
0.0
-1
TODO function for rolling saveObj.Value + d20
render() { const {Title = ''} = this.props const {ArrOfObj} = this.props const ArrOfObjMap = ArrOfObj.map( obj => { return ( <div key={obj.Name} onClick={() => this.props.d20Roll(obj.Modifier)}> <p>{obj.Name}:+ <span className='rollableUnderline'> {obj.Modifier}</span><span> </span> </p> </div> ) }) return ( <div className="listing" ><strong>{Title}</strong> {ArrOfObjMap}</div> ) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function save_vals(d)\n{\n this._current = d;\n}", "autoSaveInterval() {\n return 0;\n }", "function SaveObject() {\n var oDuplicated = JSON.parse(JSON.stringify(o));\n DeleteBlocTemplateFromAssembly();\n AllUndefinedNullToNothing();\n if (ConfiguratorMode == 'CBC') {\n o.BlocAs...
[ "0.57454187", "0.52772325", "0.5209462", "0.5208864", "0.5089226", "0.50510496", "0.50181735", "0.5005604", "0.4998471", "0.49515292", "0.494541", "0.4919279", "0.49120328", "0.4908172", "0.48728994", "0.48652047", "0.4865071", "0.48645088", "0.4863521", "0.48503473", "0.4849...
0.0
-1
Anything returned from this function will end up as props on the MonsterList container
function mapDispatchToProps(dispatch) { // Whenever selectCombatant is called, the result should be passed to all // of our reducers return { d20Roll: payload => dispatch(actions.d20Roll(payload)), }; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "render(){\n \n return (\n <ul>\n {this.props.list} \n </ul>\n );\n }", "renderItems(){\n\t\tconst props = _.omit(this.props,'todos');\n\t\treturn _.map(this.props.todos,\n\t\t\t\t\t(todo,index) => <TodosListItems key={index} {...todo} {...p...
[ "0.7117978", "0.6485039", "0.6475667", "0.64648813", "0.6461909", "0.64353174", "0.6430416", "0.6425077", "0.64219165", "0.64199656", "0.6418656", "0.6402311", "0.63976157", "0.6394177", "0.6392487", "0.6387277", "0.6383899", "0.6368485", "0.63668275", "0.63510805", "0.635034...
0.0
-1
Main loop function for P5
function draw() { // Update global 'now' time gNow = Date.now(); gEntities.forEach(it => it.update()); // Clear scene by drawing background image(gBackgroundImage, 0, 0); gEntities.forEach(it => it.draw()); // Handle entity lifetimes, clean up dead entities, persist live entities let toLive = []; gEntities.forEach(it => { if (it.age < 1.0) { toLive.push(it); } }); gEntities = toLive; // Keep track of time taken to update frame let frameTime = Date.now() - gNow; gRecentFrameTimes.push(frameTime); //console.log("Frame Time: %d", gRecentFrameTimes.get(gRecentFrameTimes.size - 1)); //console.log("Recent Avg Time: %d", gRecentFrameTimes.calcAvg()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async function main() {\n new p5((p_) => {\n p = p_;\n p.setup = setup;\n p.draw = draw;\n }, elements.container);\n\n if (ENABLE_STATS) {\n stats.showPanel(0);\n elements.stats.appendChild(stats.dom);\n }\n}", "async function main() {\n new p5((p_) => {\n p = p_;\n p.setup = setup;\n ...
[ "0.73906696", "0.7029275", "0.69783676", "0.6934992", "0.6733713", "0.6447369", "0.6421549", "0.64155376", "0.63992256", "0.637662", "0.63630915", "0.63070947", "0.62747186", "0.6274321", "0.62596905", "0.62596905", "0.6204799", "0.6144313", "0.61204153", "0.6114658", "0.6096...
0.0
-1
number of concurrent tests running now executes a single test thread
async function _TestThread(test, threadRun) { try { ++ThreadsRunning; console.log(`Starting ${threadRun}. Concurrency level: ${ThreadsRunning}`); await test.run(threadRun); } finally { --ThreadsRunning; console.log(`Finished ${threadRun}. Concurrency level: ${ThreadsRunning}`); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "testMasterToWorkersStress(count) {\n let name = \"testMasterToWorkersStress\";\n let descr = \"master -> workers\";\n let timeout = this.timeout(1000, name);\n\n this.printTest(name, descr);\n\n t(name);\n\n let done = 0;\n for(let i = 0; i < count; i++)\n ...
[ "0.6993691", "0.6454532", "0.64185894", "0.63561773", "0.629008", "0.6249886", "0.6171251", "0.61491233", "0.61013246", "0.6087901", "0.60600585", "0.60472065", "0.60472065", "0.6046934", "0.60169166", "0.5974415", "0.5932966", "0.59263813", "0.5926331", "0.5926331", "0.59197...
0.6556837
1
executes a single test attempt
async function _TestAttempt(Test, attemptId) { const attemptRun = new TestRun(TestsStarted); attemptRun.setAttempt(attemptId, Config.Retries); const test = new Test(); await test.startup(); try { let threads = []; if (Config.ConcurrencyLevel > 1) console.log(`Starting ${Config.ConcurrencyLevel} test threads`); for (let threadId = 1; threadId <= Config.ConcurrencyLevel; ++threadId) { const threadRun = attemptRun.clone(); threadRun.setThread(threadId, Config.ConcurrencyLevel); threads.push(_TestThread(test, threadRun)); } if (Config.ConcurrencyLevel > 1) console.log(`Started all ${Config.ConcurrencyLevel} test threads.`); await Promise.all(threads); if (Config.ConcurrencyLevel > 1) console.log(`Finished all ${Config.ConcurrencyLevel} test threads.`); } finally { console.log(`Shutting down DUT`); await test.shutdown(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function test() {\n console.log('Beginning test process!'.blue);\n projects.action = 'test';\n github.getCredentials()\n .catch(janitor.error('Failure getting credentials'.red))\n .then(greenlight.getGradable)\n .catch(janitor.error('Failure getting sessions'.red))\n .then(sessions.selectSession)\n ...
[ "0.633422", "0.6168832", "0.60930187", "0.60531735", "0.60150033", "0.6009484", "0.59632236", "0.59632236", "0.5955077", "0.5951789", "0.5938829", "0.5903746", "0.58633435", "0.5839731", "0.5820697", "0.5787346", "0.57793945", "0.5752619", "0.5744626", "0.57334924", "0.571661...
0.58785534
12
executes a single test (i.e. all test attempts)
async function _TestCurrentConfig(Test) { ++TestsStarted; let attemptsMade = 0; let attemptsFailed = 0; const attemptsAllowed = 1 + Config.Retries; for (let attemptId = 1; attemptsMade < attemptsAllowed; ++attemptId) { try { ++TotalAttemptsMade; ++attemptsMade; await _TestAttempt(Test, attemptId); break; // stop on success } catch (error) { ++attemptsFailed; if (attemptsMade < attemptsAllowed) { const progress = attemptsFailed + "/" + attemptsAllowed; console.log(`Test attempt failure (${progress}):`, error); // keep going } else { console.log(`Test failure`); throw error; } } } // success if (attemptsMade > 1) console.log("Probability of a test failure:", attemptsFailed, "/", attemptsMade, "=", Gadgets.PrettyPercent(attemptsFailed, attemptsMade)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function test() {\n runTests0();\n runTests1(); \n return true;\n}", "function test() {\n console.log('TEST SUITE');\n for(let i=0; i < testFuncs.length; i++) {\n let test = testFuncs[i];\n try {\n test();\n console.log('(' + i + ')' + test.name + ': PASS')\n }...
[ "0.71311814", "0.6791854", "0.6772601", "0.6749921", "0.6657094", "0.6656648", "0.66052127", "0.6581665", "0.6548607", "0.648556", "0.6480711", "0.6480711", "0.6480711", "0.6480711", "0.64749134", "0.6466539", "0.6432324", "0.6425759", "0.63813496", "0.6377981", "0.6350631", ...
0.6134453
28
toutes les fonctions pour la gestion des likes/dislikes
function verifLike(indexUser, sauceLike, userId) { console.log("entrer dans verif like "); if (indexUser >= 0 && userId == sauceLike.usersLiked[indexUser]) { var retour = true; console.log("Userid dans userliked : " + userId); } else { var retour = false; } console.log("Sortie verif like : " + retour); return retour; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function addLikes() {\n if (propLike?.includes(user.username)) {\n let index = propLike.indexOf(user.username);\n let removeLike = [\n ...propLike.slice(0, index),\n ...propLike.slice(index + 1),\n ];\n setLikeGet(removeLike);\n setPropLike(removeLike);\n setRedLike(\...
[ "0.7037115", "0.6716931", "0.6677691", "0.66748005", "0.65788645", "0.6576081", "0.65593225", "0.64817494", "0.64688694", "0.63861847", "0.6382836", "0.63731337", "0.63709956", "0.6359728", "0.63559794", "0.63240814", "0.6323698", "0.6317979", "0.62864673", "0.6278346", "0.62...
0.5985718
50
add event for showing/hiding context menu entry
function initEfendiOverlay() { var menu = document.getElementById("contentAreaContextMenu"); menu.addEventListener("popupshowing", efendiContextMenu, false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function modifyEventContextMenu() {\n displayEventEditWindow();\n}", "beforeContextMenuShow() {}", "beforeContextMenuShow() {}", "function xcustom_onContextMenu(event) {\r\n console.log('there we are...');\r\n}", "internalShowContextMenu(event) {\n const me = this;\n\n if (me.disabled) {\n ...
[ "0.76271635", "0.761847", "0.761847", "0.7161592", "0.7158529", "0.69545746", "0.68992835", "0.687808", "0.6836662", "0.6833877", "0.6802744", "0.6779805", "0.67744386", "0.65534484", "0.654806", "0.64092535", "0.63947004", "0.6394613", "0.6390894", "0.63803047", "0.63684493"...
0.6471374
15
From mozilla code sniplets, with minor adjustments.
function openAndReuseOneTabPerURL(baseurl, url) { var wm = Components.classes["@mozilla.org/appshell/window-mediator;1"] .getService(Components.interfaces.nsIWindowMediator); var browserEnumerator = wm.getEnumerator("navigator:browser"); // Check each browser instance for our URL var found = false; while (!found && browserEnumerator.hasMoreElements()) { var browserInstance = browserEnumerator.getNext().getBrowser(); // Check each tab of this browser instance var numTabs = browserInstance.tabContainer.childNodes.length; for(var index=0; index<numTabs; index++) { var currentBrowser = browserInstance.getBrowserAtIndex(index); if (currentBrowser.currentURI.spec.substr(0, baseurl.length) == baseurl) { // The URL is already opened. Select this tab. browserInstance.selectedTab = browserInstance.tabContainer.childNodes[index]; // Focus *this* browser browserInstance.focus(); // If seeked uri is same, don't bother reloading page. if( currentBrowser.currentURI.spec != url ) { browserInstance.loadURI(url); } found = true; break; } } } // Our URL isn't open. Open it now. if (!found) { var recentWindow = wm.getMostRecentWindow("navigator:browser"); if (recentWindow) { // Use an existing browser window recentWindow.delayedOpenTab(url, null, null, null, null); } else { // No browser windows are open, so open a new one. window.open(url); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function bookmarklet(window,document,origin) {\n\t\n\t/**\n\t * setup the 10kse namespace\n\t * NOTE: This does not duplicate the code in intro.js since \n\t * the bookmarklet will be running in a different page.\n\t */\n\tvar tenk = window['10kse'];\n\tif (!tenk) {\n\t\ttenk = window['10kse'] = {};\n\t}\n\t...
[ "0.55030835", "0.55003494", "0.54429686", "0.54147685", "0.5398537", "0.53779215", "0.53097284", "0.53071123", "0.5235395", "0.52288944", "0.5213894", "0.51850426", "0.51823974", "0.5176944", "0.51632684", "0.51238483", "0.51196563", "0.5100645", "0.50905436", "0.50900596", "...
0.0
-1
======================================== Content Functions SRC: _libCommon =====================================================================
function timeoutIfNoAction() { var timeSince = new Date().getTime() - usrLastAction.getTime(); if (usrLoginId != '' && timeSince > usrTimeOutDuration) { if (TRUSTED_DEVICE) { var params = prepParams(params, 'keep_alive', 'select'); var successf = function(rslt) { }; serverCall(params, successf, FAILF); } else { usrLogoutScheduled = true; statusMsg('Logging Out User in 1 minute'); window.setTimeout(function() { if (usrLogoutScheduled) {logOutUser();} }, 60000); } } else { window.setTimeout(timeoutIfNoAction, usrTimeOutDuration); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function _____SHARED_functions_____(){}", "transient protected internal function m189() {}", "static private internal function m121() {}", "static final private internal function m106() {}", "private internal function m248() {}", "function Common() {}", "function Utils() {}", "function Utils() {}", ...
[ "0.7471532", "0.65764624", "0.6545635", "0.64686495", "0.645713", "0.64404064", "0.64194584", "0.64194584", "0.6417254", "0.640311", "0.6334331", "0.6240642", "0.6224469", "0.61963916", "0.61932546", "0.61741394", "0.61453396", "0.61324304", "0.611919", "0.6114764", "0.610839...
0.0
-1
Div Access and App Layout Calls SRC: _quickGolfScoreWeb =====================================================================
function showQuickGolfScore() { retrieveQuickGolfScoreList(); standardShowContentPane('quickGolfScore', 'Quick Golf Score Entry'); if (isFormEmpty('quickGolfScoreForm')) { toggleSaveMode('quickGolfScoreForm', false); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function changeLayout() {\r\n // Remove the buddy icon\r\n if (!showBuddyIcon) {\r\n $('table.launchHead').remove();\r\n\t\tGM_addStyle('#Main {margin-top: 15px ! important; }');\r\n }\r\n\r\n // Dynamic width of homepage contents\r\n if (dynamicWidth) {\r\n GM_addStyle(\r\n ...
[ "0.59432876", "0.57692146", "0.57540226", "0.5744127", "0.57131356", "0.5620428", "0.56040776", "0.5602493", "0.5587911", "0.55816156", "0.5559524", "0.5522513", "0.55204725", "0.55191565", "0.54750574", "0.54747313", "0.5454405", "0.5450765", "0.54461366", "0.5430118", "0.54...
0.0
-1
Server Call Wrappers SRC: changePasswordDialogCommon =====================================================================
function submitChangePasswordDialogForm() { if (validateChangePasswordDialogForm()) { var params = bindForm('changePasswordDialogForm'); clearForm('changePasswordDialogForm'); submitChangePasswordDialog(params); $('#changePasswordDialog').dialog('close'); } else { briefNotify( 'Please Correct Form Validation Errors To Continue', 'WARNING' ); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ChangePassword() {\n\t}", "function changePasswordCallback(result){\n switch (result.error){\n // If no error, show feedback \"password changed\"\n case API_NO_ERROR:\n info('sinfo', locale_strings['PASSWORD_CHANGED'], 4);\n $('change_password').reset();\n ...
[ "0.711304", "0.705767", "0.67993295", "0.6733707", "0.6629076", "0.6621782", "0.65903485", "0.6565416", "0.65533084", "0.65287584", "0.640671", "0.6403341", "0.6400127", "0.639077", "0.6365038", "0.63614184", "0.6324651", "0.6313576", "0.62969023", "0.6281232", "0.62807643", ...
0.6696044
4
Div Access and App Layout Calls SRC: _supportRequestCommon =====================================================================
function showSupportRequest() { retrieveSupportRequestList(); standardShowContentPane('supportRequest', 'Support Request'); if (isFormEmpty('supportRequestForm')) { toggleSaveMode('supportRequestForm', false); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function onRequest(context) {\n \tif (context.request.method === 'GET') \n \t{ \n\t\t\tform = DrawPage(context);\n\t\t\tform.Title = 'Taskinator Workspace';\n\t\t\t\n\t\t\t//if(runtime.getCurrentUser().id==PutNumberHere)\n\t\t\t// Folder as container is SuiteScripts > SST_NearNet_Building_List\n\t\t\tfor...
[ "0.5925586", "0.5689611", "0.5610953", "0.54993784", "0.54674304", "0.5432253", "0.53773105", "0.5366764", "0.53481644", "0.53452724", "0.5335805", "0.5326828", "0.53225416", "0.53152746", "0.5305735", "0.52938116", "0.5292513", "0.5280812", "0.5278606", "0.5267955", "0.52634...
0.58486456
1
page specific functions SRC: _supportRequestCommon =====================================================================
function imposeSupportRequestSecurityUIRestrictions() { var divIdToSecure; divIdToSecure = '#supportRequestFormSave'; (isUserAuthorized('UPDATE_SUPPORT_REQUEST', false)) ? securityshow(divIdToSecure) : securityHide(divIdToSecure); divIdToSecure = '#supportRequestFormAdd'; (isUserAuthorized('INSERT_SUPPORT_REQUEST', false)) ? securityshow(divIdToSecure) : securityHide(divIdToSecure); divIdToSecure = '#supportRequestEntryDivId'; (isUserAuthorized('UPDATE_SUPPORT_REQUEST', false) || isUserAuthorized('INSERT_SUPPORT_REQUEST', false)) ? securityshow(divIdToSecure) : securityHide(divIdToSecure); if (!isUserAuthorized('INSERT_SUPPORT_REQUEST', false) && !isUserAuthorized('UPDATE_SUPPORT_REQUEST', false)) { securityLockForm('supportRequestForm', true); } if (!isUserAuthorized('INSERT_SUPPORT_REQUEST', false) && isFormEmpty('supportRequestForm')) { securityLockForm('supportRequestForm', true); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function test_request_filter_on_request_page() {}", "function init_support_requests(){\n\thideAllRequestPanel();\n\t$(\"#options-links li\").click(function() { \n\t\tvar target = $(this).attr( \"data-target\" );\n\t\t$(\"#options-links li\").removeClass('active');\n\t\t$(this).addClass('active');\n\t\thideAllReq...
[ "0.65674484", "0.59379715", "0.58753777", "0.58440727", "0.58253276", "0.57646555", "0.5758129", "0.5674644", "0.56234187", "0.55583334", "0.55120695", "0.5510181", "0.54953355", "0.5470429", "0.54345524", "0.54170644", "0.53994197", "0.5377799", "0.5375204", "0.5361053", "0....
0.5553456
10
call this function on page load
function setupCheckboxes() { $('input[type=checkbox]').each(function() { $(this).after('<i></i>'); if($(this).is(':checked') ) $(this).next().removeClass().addClass('fas fa-check-square'); else $(this).next().removeClass().addClass('far fa-square'); }); $('input[type=checkbox]').change(function() { $(this).next().toggleClass('fas').toggleClass('far').toggleClass('fa-check-square').toggleClass('fa-square'); }); $('input[type=checkbox]').focus(function() { $(this).next().css('background-color','hsl(160, 50%, 80%)'); }); $('input[type=checkbox]').focusout(function() { $(this).next().css('background-color',''); }); $('input[type=checkbox]').css('cursor', 'pointer'); $('label input[type=checkbox]').css('cursor', 'pointer'); $('input[type=checkbox]').css('opacity', '0'); $('input[type=checkbox]').css('margin-top', '5px'); $('input[type=checkbox]').css('position', 'absolute'); // update display if they change the checkbox value programmatically // even if they use code like: // $('#myCheckbox').prop('checked', true); // instead of // $('#myCheckbox').change(); $.propHooks.checked = { set: function (el, value) { if (el.checked !== value) { el.checked = value; $(el).trigger('change'); } } }; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function init() {\n // THIS IS THE CODE THAT WILL BE EXECUTED ONCE THE WEBPAGE LOADS\n }", "function onPageLoaded() {\n}", "function onPageLoad() {\n\n}", "function documentReadyFunction() {\n onPageLoadOrResize();\n onPageLoad();\n }", "function alwaysRunOnload () {\n\t\n\t}", "func...
[ "0.74014395", "0.72967666", "0.7242379", "0.71442395", "0.7123803", "0.7103647", "0.7079569", "0.7076129", "0.70610845", "0.7025726", "0.701841", "0.7008091", "0.700402", "0.6986577", "0.69697005", "0.6962277", "0.69620925", "0.69608456", "0.6923495", "0.6918835", "0.69182026...
0.0
-1
manually update checkboxes if checked property is changed some other way
function updateCheckboxes() { $('input[type=checkbox').each(function() { if($(this).is(':checked') ) $(this).next().removeClass().addClass('fas fa-check-square'); else $(this).next().removeClass().addClass('far fa-square'); }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "updateCheckboxes() {\n for (const id of this.compareList.keys()) {\n this._checkCheckbox(id);\n }\n }", "checkChanged(indx){\n //update checkbox status when checkboxes are checked... \n this.props.selectionChanged(indx);\n }", "updateChecked(state, checked) {\r\n state.checked...
[ "0.7975897", "0.76959556", "0.7561912", "0.7350959", "0.7347982", "0.7310954", "0.7310954", "0.72847956", "0.72246754", "0.71308136", "0.7103185", "0.7090293", "0.7086325", "0.7085157", "0.7069243", "0.6993052", "0.6981249", "0.6978817", "0.6972909", "0.6961727", "0.6935424",...
0.7303407
7
bracketRegex is used to specify which type of bracket to scan should be a regexp, e.g. /[[\]]/ Note: If "where" is on an open bracket, then this bracket is ignored. Returns false when no bracket was found, null when it reached maxScanLines and gave up
function scanForBracket(cm,where,dir,style,config){for(var maxScanLen=config&&config.maxScanLineLength||1e4,maxScanLines=config&&config.maxScanLines||1e3,stack=[],re=config&&config.bracketRegex?config.bracketRegex:/[(){}[\]]/,lineEnd=dir>0?Math.min(where.line+maxScanLines,cm.lastLine()+1):Math.max(cm.firstLine()-1,where.line-maxScanLines),lineNo=where.line;lineNo!=lineEnd;lineNo+=dir){var line=cm.getLine(lineNo);if(line){var pos=dir>0?0:line.length-1,end=dir>0?line.length:-1;if(!(line.length>maxScanLen))for(lineNo==where.line&&(pos=where.ch-(dir<0?1:0));pos!=end;pos+=dir){var ch=line.charAt(pos);if(re.test(ch)&&(void 0===style||cm.getTokenTypeAt(Pos(lineNo,pos+1))==style)){var match=matching[ch];if(">"==match.charAt(1)==dir>0)stack.push(ch);else{if(!stack.length)return{pos:Pos(lineNo,pos),ch:ch};stack.pop()}}}}}return lineNo-dir!=(dir>0?cm.lastLine():cm.firstLine())&&null}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function scanForBracket(cm, where, dir, style, config) {\n var maxScanLen = (config && config.maxScanLineLength) || 10000;\n var maxScanLines = (config && config.maxScanLines) || 1000;\n\n var stack = [];\n var re = config && config.bracketRegex ? config.bracketRegex : /[(){}[\\]]/;\n var lineEnd = ...
[ "0.6263195", "0.6263195", "0.62033737", "0.6127634", "0.61057466", "0.6090401", "0.60674477", "0.6061399", "0.5991664", "0.5839983", "0.58044076", "0.56190467", "0.54611206", "0.54331553", "0.5268002", "0.52239686", "0.50594854", "0.49665856", "0.49522534", "0.48941374", "0.4...
0.6583798
0
End of Express setup bits Get the soundcloud id from the soudncloud url I have already built a simple web service for this.
function getSoundcloudIDFromURL(url, callback) { var url = "https://api.soundcloud.com/resolve.json?client_id="+config.soundcloud.id+"&url="+url; request({url:url, json:true}, function (error, response, data) { if (!error && response.statusCode == 200) { callback(data.id); } }) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getSoundcloudIDfromURL(url,callback) {\n\tvar url = \"https://api.soundcloud.com/resolve.json?client_id=\"+config.soundcloud.id+\"&url=\"+url;\n\trequest({url:url,json:true},function(error,response,data) {\n\t\tif(!error && response.statusCode == 200) {\n\t\t\tcallback(data.id);\n\t\t}\n\t})\n}", "funct...
[ "0.76895875", "0.6681648", "0.65367275", "0.6455802", "0.62311125", "0.6102817", "0.5931228", "0.589306", "0.5850929", "0.57600605", "0.5737367", "0.57365894", "0.5649092", "0.5643538", "0.56375027", "0.56375027", "0.55755097", "0.5546863", "0.5516768", "0.5484918", "0.546560...
0.7612295
1
simple password checks. raise alert if password or username is empty or if passwords don't match
function PswCheck() { if ($('#usernameFld').val().length > 0 && $('#passwordFld').val().length > 0 && $('#passwordFld').val() === $('#verifyPasswordFld').val()) { $('#alert').hide(); return true; } else { $('#alert').fadeIn(); return false; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function validateCreds(username, password){\n\tlet sql = \"SELECT salt, password FROM appuser WHERE username=?;\";\n\tdb.get(sql, [username], (err, row) => {\n\t\tresult = {};\n\t\tif (err) {\n\t\t\treturn false;\n\t\t} else {\n\t\t\tif (!row) {\n\t\t\t\treturn false;\n\t\t\t} else {\n\t\t\t\thashedPass = combineH...
[ "0.73250186", "0.7298997", "0.7296585", "0.7279182", "0.7254303", "0.7237787", "0.7219309", "0.7173442", "0.71519846", "0.7150609", "0.71438104", "0.7141677", "0.7135826", "0.71343863", "0.7132594", "0.7119334", "0.7104924", "0.7099809", "0.70744836", "0.70714045", "0.7054135...
0.74553084
0