query stringlengths 9 14.6k | document stringlengths 8 5.39M | metadata dict | negatives listlengths 0 30 | negative_scores listlengths 0 30 | document_score stringlengths 5 10 | document_rank stringclasses 2
values |
|---|---|---|---|---|---|---|
Slider function for Mass of magnet | function massSliderFN(scope) {
scope.magnet_mass=scope.magnet_Mass; /** Get mass of magnet */
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function breadthSliderFN(scope){\n diameter_float=scope.magnet_Breadth/100; /** set breadth of magnet and convert to meter */\n scope.magnet_breadth=scope.magnet_Breadth;\n vibration_container.getChildByName('magnet_zoom').y=225-scope.magnet_breadth*1; /** Set manget breadth in zoom view */\n vibration... | [
"0.7014059",
"0.6705193",
"0.62868726",
"0.6237702",
"0.61575705",
"0.6076149",
"0.6046867",
"0.6024737",
"0.5993677",
"0.59776664",
"0.5974024",
"0.58880734",
"0.588737",
"0.5878593",
"0.5863005",
"0.58599144",
"0.5846856",
"0.5845302",
"0.5812479",
"0.5796269",
"0.5796087",... | 0.7634317 | 0 |
Slider function for Lengtho fo magnet | function lengthSliderFN(scope) {
scope.magnet_length=scope.magnet_Length; /** Set length of magnet */
vibration_container.getChildByName('magnet_zoom').x = 534.5 - scope.magnet_Length*1.5; /** Set the length of manget in zoom view */
vibration_container.getChildByName('magnet_zoom').scaleX = 0.78 + scope.ma... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"_update_slider () {\n let x = this.clock / TIMER_MAX_DURATION;\n let y = (Math.log(x * (Math.pow(2, 10) - 1) +1)) / Math.log(2) / 10;\n\n this.slider.value = y;\n if (this.fullscreen.is_open) this.fullscreen.slider.value = y;\n }",
"function sliderChange() {\n var sliderVal = do... | [
"0.6595068",
"0.64488745",
"0.6403633",
"0.61151654",
"0.609607",
"0.6056329",
"0.605326",
"0.5986234",
"0.5914617",
"0.59142816",
"0.58567137",
"0.5841687",
"0.58294654",
"0.5827154",
"0.58238167",
"0.5806758",
"0.5782844",
"0.577157",
"0.57687175",
"0.5727487",
"0.572587",
... | 0.7454667 | 0 |
Slider function for Breadth of magnet | function breadthSliderFN(scope){
diameter_float=scope.magnet_Breadth/100; /** set breadth of magnet and convert to meter */
scope.magnet_breadth=scope.magnet_Breadth;
vibration_container.getChildByName('magnet_zoom').y=225-scope.magnet_breadth*1; /** Set manget breadth in zoom view */
vibration_containe... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function changeNodeBreadth(event) {\n maxNodeHeight = Number(event.target.value)\n display()\n}",
"initSlider() {\n const slider = {};\n const box = this.box.current;\n const { sliderMargin, cursorMinSize } = this.props;\n slider.max = box.scrollHeight - box.clientHeight;\n slider.isVisible ... | [
"0.60249317",
"0.5957044",
"0.5895756",
"0.5887459",
"0.58630186",
"0.58605075",
"0.5832236",
"0.58317924",
"0.5818385",
"0.5778468",
"0.57172936",
"0.56966233",
"0.568014",
"0.5657382",
"0.5620407",
"0.5619735",
"0.5611423",
"0.5592577",
"0.55887145",
"0.55883014",
"0.557683... | 0.81121284 | 0 |
Function to rotate magnetometer | function rotateMagnetometerFN(scope){
scope.rotate_angle = scope.rotateAngle;
var magnetometer_tween = createjs.Tween.get(getMagnetoCBN("magnetometer")).to({
rotation: (scope.rotate_angle)
}, 500); /** To rotate magnetometer */
var magnetometer_round_tween = createjs.Tween.get(getMagnetoCBN("mag... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"rotate() {\n this.angle += (((Math.PI * 2) / 360) * 1);\n }",
"rotate(){\n\t\tthis.angle += this.turningSpeed;\n\t}",
"rotate() {\n this.prevRotation = this.rotation;\n if(this.velocity.left) {\n this.target[0] = this._x + (this.width/2) - 50;\n }\n else if(this.velocity.right) {\n th... | [
"0.67102957",
"0.6663364",
"0.65554434",
"0.6478383",
"0.6469553",
"0.63467586",
"0.6323787",
"0.6286795",
"0.6245192",
"0.62045467",
"0.61790663",
"0.61772114",
"0.6166886",
"0.6141832",
"0.61412454",
"0.61392516",
"0.6136149",
"0.6121763",
"0.6112199",
"0.6100568",
"0.60711... | 0.70756805 | 0 |
set magnet position in the scale while rotating the scale | function setMagnetPosition(scope,multi_factor){
sideA_x = initial_pos + Math.cos(scope.rotate_angle*multiplication_const)*multi_factor; /** Initial x postion of magnet, math functions used for circular position of magnet */
sideA_y = initial_pos + Math.sin(scope.rotate_angle*multiplication_const)*multi_factor; /** In... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"updateRotation () {\n if (this.x > this.target.x) {\n this.scale.x = this.scale.x < 0 ? -this.scale.x : this.scale.x\n } else {\n this.scale.x = this.scale.x < 0 ? this.scale.x : -this.scale.x\n }\n }",
"function transformScaleRotate(position) {\n // Calculate distance\n var dx ... | [
"0.70532644",
"0.69945097",
"0.6819839",
"0.634038",
"0.61914665",
"0.6190725",
"0.61435354",
"0.60659266",
"0.6059929",
"0.60554004",
"0.6013179",
"0.5993474",
"0.5978053",
"0.5968115",
"0.5952165",
"0.5948736",
"0.59360147",
"0.5927152",
"0.5923027",
"0.5910289",
"0.5906805... | 0.73268574 | 0 |
Function to adjust the distance of magnet | function setMagnetDistanceFN(scope){
scope.magnet_distance = scope.magnet_distance;
if(side_index == 0){
var magnet_tanB_x_tween = createjs.Tween.get(getMagnetoCBN("magnet_tanB")).to({
x: (initial_pos+(scope.magnet_distance*6.3 + position_adjust_factor)*Math.cos(scope.rotate_angle*multiplication_c... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function calc_distance()\n{\n\tdistance = ((rWheelHeight * 3.14) / 360) * distance;\n}",
"function liftShinPart (distance){\n\n}",
"function updateOdometer(distance) {\n odometer += distance;\n }",
"function updateOdometer(distance) {\n odometer += distance;\n }",
"setMinDistance(minDis... | [
"0.6831098",
"0.61151564",
"0.60469055",
"0.60469055",
"0.60342324",
"0.6034006",
"0.601223",
"0.5974928",
"0.5936758",
"0.59294266",
"0.5893021",
"0.58288723",
"0.5824592",
"0.57728803",
"0.5771971",
"0.57187635",
"0.56710166",
"0.5668469",
"0.566652",
"0.5633343",
"0.558674... | 0.72358567 | 0 |
Function to reverse magnet | function reverseMagnetFN(scope){
calculateAngle(scope);
var _rot=0;
if(magnet_placed){ /** rotate needle of magnetometer */
var needle_tween = createjs.Tween.get(getMagnetoCBN("needle")).to({
rotation: (deflection_angle)
}, 500);
}
if(pos_index == 0){ /** Initial adjustment of manget and it position to... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function reverse() {}",
"function reverse() {\n\n}",
"reverse() {\n\n }",
"function invertDrag() {\n viewer.controls.rotateSpeed = -viewer.controls.rotateSpeed;\n }",
"function NormalLinksRechts(){ \n\tvar sideward : Vector3 = transform.TransformDirection(Vector3.right);\n\tvar sideSpeed : float = ... | [
"0.63469505",
"0.6092347",
"0.60811645",
"0.60395944",
"0.6029028",
"0.5968191",
"0.58333075",
"0.5761002",
"0.569389",
"0.5682819",
"0.5662106",
"0.5590729",
"0.55891705",
"0.55744463",
"0.55614376",
"0.5511925",
"0.5502408",
"0.5481768",
"0.5481736",
"0.5481528",
"0.5432870... | 0.7730707 | 0 |
Function to zoom magnetometer | function objectZoom(scope){
scope.zoomPercentage = scope.zoom_value;
var deflection_stage_tween = createjs.Tween.get(deflection_stage).to({
scaleX: (1 + (scope.zoomPercentage / 11.11)),
scaleY: (1 + (scope.zoomPercentage / 11.11))
}, 500); /** To zoom magnetometer using scaling x */
deflection_magnetometer_cont... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function zoom(e) {\n if (e.wheelDelta > 0) {\n zoomIn(e);\n }\n else {\n zoomOut(e);\n }\n}",
"function zoomed() {\n updateGraph(); //Continuously update graph while panning and zooming\n }",
"zoomIn() {\n this.zoomTo(this.zoom / Camera.ZOOM_FACTOR);\n }",
... | [
"0.6804464",
"0.677378",
"0.6744814",
"0.6734307",
"0.67289037",
"0.6710188",
"0.6569317",
"0.6562656",
"0.6557728",
"0.6535539",
"0.65275466",
"0.6516279",
"0.6465674",
"0.6465674",
"0.6453875",
"0.6423337",
"0.6370192",
"0.63544697",
"0.6344089",
"0.6337375",
"0.63363624",
... | 0.68051326 | 0 |
Function to place magnet of vibration magnetometer | function placeMagnetFN(scope){
vibration_mgnt_placed = true;
while(exp<20){ /** To display result values as power of 10 */
var number = moment_of_inertia*Math.pow(10,exp)
if(number >= 1){
scope.bh_value = number.toFixed(2)+"X10";
scope.exponent = "-"+exp;
brea... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function initialisationOfVariables() {\n magnet_placed = false;\n vibration_container.alpha=1; /** Initially display of vibration magnetometer */\n deflection_magnetometer_container.alpha=0;/** Hide deflection magnetometer at initial stage */\n initial_adj_flag=false; /** Initial adjustment flag */\n ... | [
"0.6569861",
"0.62992233",
"0.6283513",
"0.6254491",
"0.6203066",
"0.6197756",
"0.60741025",
"0.60588527",
"0.5924194",
"0.59129757",
"0.5906626",
"0.5849471",
"0.57499343",
"0.5677994",
"0.5646403",
"0.55463374",
"0.5511908",
"0.54490584",
"0.53544277",
"0.53469783",
"0.5333... | 0.70486003 | 0 |
Function to place magnet of deflection magnetometer | function placeDeflectionMagnetFN(scope){
magnet_placed = true;
scope.magnet_distance_disable = false;
scope.magnetDeflec_place_disable=true;
getMagnetoCBN("magnet_tanB").x = side_index == 0 ? sideA_x : sideB_x; /** x position of magnet while placing magnet*/
getMagnetoCBN("magnet_tanB").y = side_ind... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function placeMagnetFN(scope){\n vibration_mgnt_placed = true;\n while(exp<20){ /** To display result values as power of 10 */\n var number = moment_of_inertia*Math.pow(10,exp)\n if(number >= 1){\n scope.bh_value = number.toFixed(2)+\"X10\";\n scope.exponent = \"-\"+exp;\n... | [
"0.7146651",
"0.69546753",
"0.6863244",
"0.66142637",
"0.66064745",
"0.656451",
"0.6343095",
"0.615374",
"0.6136527",
"0.60064274",
"0.57785696",
"0.5719367",
"0.56506073",
"0.5626214",
"0.5609491",
"0.55779314",
"0.55662125",
"0.54822874",
"0.5470801",
"0.54695874",
"0.54416... | 0.75546473 | 0 |
Function to oscilate the magnet in vibration magnetometer | function oscilation(){
cont++;
if (total_time % 10 == 0 && amplitude > 0) { /** To decrease oscilation of magnet and it decrease in each 10 count */
amplitude = amplitude - 2;
anim_speed = anim_speed + 10;
}
oscilation_tween = createjs.Tween.get(vibration_container.getChildByName("magnet_zoom"), {
loop: f... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"accelerate(){\n this.velocity = 2;\n }",
"function oscillate(t, b, c, d) {\n var i = 4; // # of bounces\n t /= d; // percentage\n t = Math.PI * i * t; // go from 0 -> 2π\n t = Math.sin(t) * c; // now, oscillates between c, -c\n t = Math.abs(t); // \"half wave rectifier\"\... | [
"0.6103939",
"0.60942703",
"0.5977514",
"0.59505296",
"0.5933239",
"0.5875205",
"0.582435",
"0.5757305",
"0.573249",
"0.5690139",
"0.5687491",
"0.5642846",
"0.56318605",
"0.5581902",
"0.5524405",
"0.5522013",
"0.54978067",
"0.54581517",
"0.54520726",
"0.54520726",
"0.54520726... | 0.7373362 | 0 |
Animation for magnet movement | function magnetAnimation(){
if(frame<=8 && clockwise){
frame++;
}else{
clockwise = false;
}
if(!clockwise){
frame--;
if(frame == 1){
clockwise = true;
}
}
vibration_container.removeChild(vibration_container.getChildByName("magnet_frames"));
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function setMagnetDistanceFN(scope){\n scope.magnet_distance = scope.magnet_distance;\n if(side_index == 0){\n\t\tvar magnet_tanB_x_tween = createjs.Tween.get(getMagnetoCBN(\"magnet_tanB\")).to({\n x: (initial_pos+(scope.magnet_distance*6.3 + position_adjust_factor)*Math.cos(scope.rotate_angle*mul... | [
"0.67162514",
"0.6532778",
"0.6505597",
"0.6503549",
"0.65013564",
"0.6463061",
"0.6442303",
"0.63834304",
"0.6367191",
"0.6347415",
"0.63418674",
"0.6337172",
"0.6301918",
"0.6298206",
"0.6291706",
"0.6287403",
"0.6283942",
"0.6267312",
"0.6255574",
"0.62537885",
"0.6250424"... | 0.6720083 | 0 |
Max Non Negative Subarray | function maxNonNegSubArray(A) {
let ans = [];
let maxSum = 0;
let current = [];
let currentSum = 0;
for (let i = 0; i < A.length; i++) {
if (A[i] >= 0) {
current.push(A[i]);
currentSum += A[i];
} else {
if (currentSum > maxSum) {
maxSum = currentSum;
ans = current;
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function findNegativeMax(arr) {\n let max;\n let count = 0;\n arr.forEach(elem => {\n if (elem < 0) {\n if (count === 0 && elem < 0) {\n max = elem;\n count++;\n }\n if (elem < 0 && count > 0) {\n if (elem > max) {\n max = elem;\n }\n }\n }\n });\n... | [
"0.7391105",
"0.7387059",
"0.7387059",
"0.73110795",
"0.7283287",
"0.72320634",
"0.7193104",
"0.7134122",
"0.71198297",
"0.70643246",
"0.70213956",
"0.70121545",
"0.7009696",
"0.7009696",
"0.70052314",
"0.70049125",
"0.6963352",
"0.696139",
"0.69509304",
"0.69429415",
"0.6912... | 0.75394505 | 0 |
exit mechanism to result page | function EmbarrassingSymptomExit() {
window.location.href = "results.html";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"exit() {\n $(\"#header\").show();\n let context = new Context();\n context.search_bar.prop(\"disabled\", false);\n context.submit_button.prop(\"disabled\", false);\n\n $(\"#intro\").remove();\n }",
"function exit()\n{\n if (window.XMLHttpRequest)\n {// code for IE7+, Firef... | [
"0.6708135",
"0.670513",
"0.66310275",
"0.66224015",
"0.643648",
"0.6414463",
"0.64005136",
"0.63930595",
"0.63464534",
"0.63290524",
"0.6306523",
"0.63029146",
"0.62971205",
"0.6275878",
"0.61824167",
"0.61778164",
"0.61669",
"0.61618197",
"0.6149508",
"0.6143902",
"0.613929... | 0.6925138 | 0 |
Sets whether beginning a transaction will succeed | beginTransactionStatus(succeeds) {
this._beginStatus = succeeds;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async beginTransaction() {\n }",
"rollbackStatus(succeeds) {\n\t\tthis._rollbackStatus = succeeds;\n\t}",
"beginTransaction(cb) {\n\t\tthis.beginCalled = true;\n\t\tif (this._beginStatus) {\n\t\t\treturn cb(null);\n\t\t}\n\t\telse {\n\t\t\treturn cb(new Error(\"Cannot begin transaction!\"));\n\t\t}\n\t}",
"... | [
"0.6066657",
"0.59375495",
"0.5890632",
"0.5864505",
"0.5712376",
"0.5628459",
"0.5486715",
"0.5428827",
"0.5426604",
"0.54033816",
"0.5374799",
"0.53663915",
"0.5342072",
"0.5300624",
"0.5273028",
"0.52472764",
"0.5228232",
"0.5228232",
"0.5226672",
"0.5226672",
"0.51734686"... | 0.7629441 | 0 |
Sets whether committing will succeed | commitStatus(succeeds) {
this._commitStatus = succeeds;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"willCommit() {}",
"willCommit() {}",
"async commit() {}",
"function onCommit(result) {\r\n\t}",
"beginTransactionStatus(succeeds) {\n\t\tthis._beginStatus = succeeds;\n\t}",
"commit() {\n assert(this.pending);\n this.pending.commit();\n this.pending = null;\n }",
"commit(cb) {\n\t\tthis.commi... | [
"0.74669796",
"0.74669796",
"0.7152506",
"0.6477871",
"0.6382576",
"0.6354542",
"0.63510174",
"0.6349009",
"0.6323849",
"0.6308635",
"0.6231312",
"0.61490506",
"0.6130228",
"0.5994624",
"0.5967445",
"0.5966092",
"0.59582996",
"0.5937379",
"0.5931483",
"0.5931483",
"0.59305096... | 0.78433883 | 0 |
Sets whether rolling back will succeed | rollbackStatus(succeeds) {
this._rollbackStatus = succeeds;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"commitStatus(succeeds) {\n\t\tthis._commitStatus = succeeds;\n\t}",
"beginTransactionStatus(succeeds) {\n\t\tthis._beginStatus = succeeds;\n\t}",
"signalingStateRollback() {\n if (this._signalingState === SignalingState.HaveLocalOffer ||\n this.signalingState === SignalingState.HaveRemoteOffe... | [
"0.58516514",
"0.56315637",
"0.56092495",
"0.55007654",
"0.5459988",
"0.54209316",
"0.540458",
"0.53990453",
"0.53966725",
"0.5333901",
"0.5210813",
"0.5210813",
"0.51993847",
"0.51993847",
"0.5193566",
"0.5166147",
"0.51554507",
"0.5142957",
"0.5134051",
"0.5131617",
"0.5075... | 0.7153278 | 0 |
Sets whether connecting will succeed | connectStatus(succeeds) {
this._connectStatus = succeeds;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"simulateConnectFailure() {\n this.simulateConnectFailure_ = true;\n }",
"IsConnecting() { return this._connecting; }",
"connect (cb) {\n this._connected = !this._errorOnConnect\n return handleReturn(this._errorOnConnect, null, cb)\n }",
"connect() {\n if (this.isConnected()) {\n Promise.re... | [
"0.6856856",
"0.6652918",
"0.6550288",
"0.65014076",
"0.6401367",
"0.6387069",
"0.6355042",
"0.63184595",
"0.6317754",
"0.6260183",
"0.6221479",
"0.60978234",
"0.6058781",
"0.604732",
"0.6044958",
"0.6005479",
"0.59907854",
"0.5986031",
"0.5984569",
"0.5974867",
"0.5933645",
... | 0.76228166 | 0 |
Sets the results that will be returned for a query. Results is a map from strings to result sets | queryResults(results) {
this._queryResults = results;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"resetResults() {\n\n\t\tthis.results = {\n\t\t\tcollections: {},\n\t\t\tmetaCollection: []\n\t\t}\n\n\t\tfor (let tableName of this.options.tableNames) {\n\t\t\tthis.results.collections[tableName] = []\n\t\t}\n\n\t}",
"function Results({ setQuery, results }) {\n // If there are no results, show a special messag... | [
"0.6700002",
"0.6578245",
"0.62855387",
"0.6225015",
"0.61558867",
"0.6121244",
"0.61132646",
"0.5996188",
"0.589871",
"0.57824",
"0.5728416",
"0.5728416",
"0.5701211",
"0.568649",
"0.5675941",
"0.56618005",
"0.56341237",
"0.5609843",
"0.559601",
"0.5594169",
"0.55767864",
... | 0.7139773 | 0 |
mock of the mysql.createManager | function createManager(results, defaults = {
connectStatus: true,
beginStatus: true,
commitStatus: true,
rollbackStatus: true,
}) {
function makeDBH() {
const base = new MockMySQL();
base.connectStatus(defaults.connectStatus);
base.beginTransactionStatus(defaults.beginStatus);
base.commitStatus(defaults.co... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"createEntityManager() {\n return new EntityManager(this);\n }",
"function AwesomeDB()\n{\n this.MySQL = Object.create(Adb_MySQL);\n}",
"function DatabaseFactory() {}",
"async __mockDatabase () {\n\t\t/* eslint global-require: 0 */\n\t\t/* eslint node/no-unpublished-require: 0 */\n\n\t\tconst sha... | [
"0.56951934",
"0.56948084",
"0.5668627",
"0.5575838",
"0.5518192",
"0.5471798",
"0.5441528",
"0.5393294",
"0.53726375",
"0.5359043",
"0.5348063",
"0.5341194",
"0.53282875",
"0.53282356",
"0.5327523",
"0.5306771",
"0.53045046",
"0.5303501",
"0.52943325",
"0.5289893",
"0.526992... | 0.71639585 | 0 |
extract CJS dependencies from source text via regex static analysis read require('x') statements not in comments or strings | function getCJSDeps (source) {
cjsRequireRegEx.lastIndex = commentRegEx$1.lastIndex = stringRegEx$1.lastIndex = 0;
var deps = [];
var match;
// track string and comment locations for unminified source
var stringLocations = [], commentLocations = [];
function inLocation (locations, match) {
for (var ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function extractDependencies(code) {\n const ranges = [0];\n // are we currently in a quoted string? -> SINGLE_QUOTE or DOUBLE_QUOTE, else undefined\n var currentQuote;\n // scan the code for string literals and comments.\n for (var i = 0, charCode; (charCode = code.charCodeAt(i)); i++) {\n if (charCode ==... | [
"0.70779353",
"0.7007807",
"0.698617",
"0.6330398",
"0.6306725",
"0.60763943",
"0.6057676",
"0.58578503",
"0.58549905",
"0.58547264",
"0.5745649",
"0.56938535",
"0.56565565",
"0.56134593",
"0.55394167",
"0.5497536",
"0.54639906",
"0.5375987",
"0.5335136",
"0.5330729",
"0.5305... | 0.77257717 | 1 |
Define the function representing the weights RMSE error to minimize, taking in input q = [q_1,...q_nbAssets, q_cash], the quantity of lots associated to each asset, with q_cash being the quantity of cash of the portfolio. | function f(q, opt) {
//
if (opt) {
var q_curr = opt.x_c;
var q_curr_updated_idx = opt.x_c_updatedIndexes;
var f_curr = opt.f_x_c;
}
// Compute the RMSE
//
// Note that the value below is not exactly the RMSE, because for speed-up
// purposes, the full RMSE is not recomputed at every function c... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function computeRMSE(a, b) {\r\n if (a.length !== b.length) {\r\n return false;\r\n }\r\n var length = a.length;\r\n var sum = 0.0;\r\n for (i = length; i -= 4;) {\r\n sum += (a[i] - b[i]) * (a[i] - b[i]);\r\n sum += (a[i + 1] - b[i + 1]) * (a[i + 1] - b[i + 1]);\r\n sum ... | [
"0.4817127",
"0.4782159",
"0.47775552",
"0.47771657",
"0.4693249",
"0.4588965",
"0.45874518",
"0.4553442",
"0.45463508",
"0.4533774",
"0.45309213",
"0.4522571",
"0.4510048",
"0.45007718",
"0.449542",
"0.44728532",
"0.4470953",
"0.44550592",
"0.44229463",
"0.43347266",
"0.4321... | 0.70778424 | 0 |
Define the function which generates a feasible solution "close" to another feasible solution, used by the threshold accepting algorithm. The input q represents q = [q_1,...q_nbAssets, q_cash], the quantity of lots associated to each asset, with q_cash being the quantity of cash of the portfolio. | function neighbourGenerator(q, neighbourGeneratorParameters) {
// Internal function to compute a random integer
// C.f. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/random
function randomIndex(min, max) { // 0, n --> 0, n-1
return Math.floor(Math.random() * (max - ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function solve(Q, c, A, b, meq = 0) {\n // Arbitrarily set the last coordinate to 0, which makes the formula valid\n // This is simpler than special casing the last element\n c.pop();\n Q.pop();\n Q.forEach((row) => row.pop());\n A.forEach((row) => row.pop());\n\n // Solve\n const { solutio... | [
"0.5451396",
"0.53134245",
"0.5288054",
"0.52410823",
"0.5190087",
"0.51737523",
"0.5132923",
"0.51201695",
"0.50129324",
"0.5006034",
"0.49733695",
"0.49146035",
"0.49011067",
"0.4900004",
"0.4872355",
"0.486356",
"0.48283064",
"0.48195243",
"0.4815715",
"0.47939366",
"0.479... | 0.543343 | 1 |
Para que los lideres o analistas puedan ver los ganados segun el id del usuario | function usuario_ganados (req,res) {
//ID del usuario que esta logeado
let id_usuario = req.params.id
//Traerme todos las personas que un usuario haya ganado y que les falte agregar el resultado de la llamada y la visita o alguno de los dos
conexionDB.query(`
SELECT *,
(EXISTS(
SELECT persona_id FR... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async function inscribir(idOferta) {\n let i = await Crud.setUserOferta([usuario.idVoluntario, idOferta]);\n loadDataUsuario();\n }",
"function perdioVida() { \n setState(TIEMPOESPERA);\n user.perdioVida();\n if (user.conseguirVidas() > 0) {\n inicioNivel();\n ... | [
"0.6356341",
"0.6284716",
"0.6274298",
"0.62498486",
"0.61423093",
"0.6046329",
"0.6041784",
"0.60313046",
"0.60217524",
"0.5969148",
"0.58996147",
"0.58937556",
"0.58462214",
"0.583763",
"0.58114356",
"0.5784108",
"0.5780555",
"0.5769128",
"0.57665527",
"0.5766443",
"0.57409... | 0.6953013 | 0 |
Aligns the stencil container to the shape of the page, then moves the cutout links to sit above any currently visible rectangles. | function draw() {
var pageDiv = p.reader.visiblePages()[0];
var cmptId = pageComponentId(pageDiv);
if (!p.components[cmptId]) {
return;
}
// Position the container.
alignToComponent(pageDiv);
// Layout the cutouts.
var placed = 0;
if (!p.disabled) {
var rects = p.compon... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function boundsRedirect() {\n if (styles.left >= (width + 30)) {\n setStyles({\n ...styles,\n left: -40\n })\n } else if (styles.left <= -50) {\n setStyles({\n ...styles,\n left: width + 20\n })\n ... | [
"0.5195356",
"0.5128728",
"0.5115589",
"0.5098996",
"0.5094106",
"0.5034991",
"0.50268716",
"0.4995341",
"0.49857056",
"0.49653947",
"0.49617413",
"0.49037316",
"0.4900174",
"0.4888514",
"0.48740447",
"0.487013",
"0.48533186",
"0.48505497",
"0.48503363",
"0.48223457",
"0.4815... | 0.6348898 | 0 |
Returns the active component id for the given page, or the current page if no argument passed in. | function pageComponentId(pageDiv) {
pageDiv = pageDiv || p.reader.visiblePages()[0];
return pageDiv.m.activeFrame.m.component.properties.id;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function getActivePageId() {\n return $.mobile.activePage.attr(\"id\");\n}",
"isActivePage(page){\n return (this.props.page == page)? \"active\" : \"\";\n }",
"getPageActiveState(num) {\n if (this.state.page === num) {\n return \"page-item active\";\n } else {\n return \"page-item\... | [
"0.6711816",
"0.64275706",
"0.6286836",
"0.6259207",
"0.6187071",
"0.61439097",
"0.60132104",
"0.58639544",
"0.5711647",
"0.5587922",
"0.558558",
"0.5561143",
"0.55291444",
"0.5483808",
"0.5429123",
"0.5404612",
"0.53910947",
"0.53637457",
"0.5289713",
"0.5266311",
"0.5248564... | 0.71483886 | 0 |
Returns an object with either: an 'external' property an absolute URL with a protocol, host & etc, which should be treated as an external resource (eg, open in new window) OR a 'componentId' property a relative URL with no forward slash, which must be treated as a componentId; and a 'hash' property which may be an anch... | function deconstructHref(url) {
var result = {};
var re = new RegExp("^"+p.baseURL+"([^#]*)(#.*)?$");
var match = url.match(re);
if (match) {
result.componentId = match[1] || pageComponentId();
result.hash = match[2] || '';
} else {
result.external = url;
}
return result;
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function parseURL(input) {\n var uri = document.createElement('a');\n uri.href = input;\n\n return {\n protocol: uri.protocol,\n server: uri.hostname,\n resource: uri.pathname,\n };\n}",
"function urlParse(href) {\n var parser = document.createElement('a');\n parser.href = ... | [
"0.5650493",
"0.55014664",
"0.5449489",
"0.5404604",
"0.53276104",
"0.52976656",
"0.5284572",
"0.5263283",
"0.52491945",
"0.52491945",
"0.5244452",
"0.52366936",
"0.520984",
"0.5208012",
"0.51985997",
"0.5169074",
"0.5162588",
"0.5149183",
"0.51323086",
"0.51276946",
"0.51119... | 0.66088843 | 0 |
Returns the base URL for the reader's host page, which can be used to deconstruct the hrefs of individual links within components. | function getBaseURL() {
var a = document.createElement('a');
a.setAttribute('href', 'x');
return a.href.replace(/x$/,'')
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function _getBase() {\n\t\t\tvar protocol = window.location.protocol + \"//\",\n\t\t\t\thost = window.location.host;\n\t\t\treturn protocol + host;\n\t\t}",
"function getBaseUrl() {\r\n\tvar base;\r\n\r\n\tif (getURLParameter($(parent.location).attr('href'), \"base\") != null) {\r\n\t\tbase = getURLParameter($(p... | [
"0.7075467",
"0.6892145",
"0.6862781",
"0.6806818",
"0.6522506",
"0.651324",
"0.6493895",
"0.64856637",
"0.64232063",
"0.6417479",
"0.6381947",
"0.63775784",
"0.6208417",
"0.61853683",
"0.61732227",
"0.6167959",
"0.61600494",
"0.6138259",
"0.6086225",
"0.6084708",
"0.60759306... | 0.69182837 | 1 |
Invoked when a cutout is clicked opens external URL in new window, or moves to an internal component. | function cutoutClick(evt) {
var cutout = evt.currentTarget;
if (cutout.getAttribute('href')) { return; }
var olink = cutout.relatedLink;
Monocle.Events.listen(olink, 'click', clickHandler);
var mimicEvt = document.createEvent('MouseEvents');
mimicEvt.initMouseEvent(
'click',
true,
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"handleClick(url) {\n Linking.openURL(url);\n }",
"function handleClick() {\n window.open(link);\n }",
"handleBrowserJSNewWindow (evt) {\n shell.openExternal(evt.channel.url, { activate: !flux.settings.S.getState().os.openLinksInBackground })\n }",
"function clickedWindow(){\n\tconsole.log('click... | [
"0.58401144",
"0.5803771",
"0.5751124",
"0.57257104",
"0.57028514",
"0.569104",
"0.564822",
"0.56139576",
"0.5578358",
"0.55696964",
"0.556892",
"0.555318",
"0.5550234",
"0.553079",
"0.5522281",
"0.5520968",
"0.55178046",
"0.5471339",
"0.5465883",
"0.5457557",
"0.5457521",
... | 0.7135518 | 0 |
NoteBox Acts as an interface to the coloured note boxes on the page, exposing methods for playing audio, handling clicks,and enabling/disabling the note box. | function NoteBox(key, onClick) {
// Create references to box element and audio element.
var boxEl = document.getElementById(key);
var audioEl = document.getElementById(key + '-audio');
if (!boxEl) throw new Error('No NoteBox element with id' + key);
if (!audioEl) throw new Error('No audio element with id' + key + ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function NoteBox(key, onClick) {\n\t// Create references to box element and audio element.\n\tvar boxEl = document.getElementById(key);\n\tvar audioEl = document.getElementById(key + '-audio');\n\tif (!boxEl) throw new Error('No NoteBox element with id' + key);\n\tif (!audioEl) throw new Error('No audio element wi... | [
"0.75166094",
"0.62895226",
"0.600263",
"0.5987128",
"0.59499955",
"0.594206",
"0.59294456",
"0.5864015",
"0.5775293",
"0.5754484",
"0.5742222",
"0.57215",
"0.57127243",
"0.56986743",
"0.5697913",
"0.56768656",
"0.5668735",
"0.56529224",
"0.56174237",
"0.5579233",
"0.55441964... | 0.75252056 | 0 |
Display mass position of canvas | function drawMassOnCanvas(x, y, R, cLine, cFill, can)
{
var cx = can.getContext("2d");
// Get Canvas Coordinate
var XMINCAN = 0;
var XMAXCAN = can.width;
var YMINCAN = can.height;
var YMAXCAN = 0;
// Draw mass
var RR = tx(2*R) - tx(R);
cx.beginPath();
cx.strokeStyle = cLine;
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function drawMassOnCanvas(x, y, R, cLine, cFill, can) {\n\tvar cx = can.getContext(\"2d\");\n\t\n\t// Get canvas coordinate\n\tvar XMIN = 0;\n\tvar YMIN = can.height;\n\tvar XMAX = can.width;\n\tvar YMAX = 0;\n\t\n\t// Draw mass\n\tvar RR = tx(2*R) - tx(R);\n\tcx.beginPath();\n\tcx.strokeStyle = cLine;\n\tcx.lineW... | [
"0.63797534",
"0.61002386",
"0.6023633",
"0.602115",
"0.6018079",
"0.6002376",
"0.5966439",
"0.59516734",
"0.594106",
"0.58551604",
"0.5831665",
"0.5827889",
"0.58034724",
"0.57888585",
"0.578233",
"0.5781233",
"0.57759666",
"0.57651484",
"0.57500774",
"0.57468456",
"0.574031... | 0.6498155 | 0 |
Create and Arrange Elements | function createAndArrangeElements()
{
// Create Header Elements
h1 = document.createElement("h1");
h1.innerHTML = "Motion Caused by Gravitional Force.";
// Create Start Button
startBtn = document.createElement("button");
startBtn.innerHTML = "Start";
startBtn.style.width = "48px";
start... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function createAndArrangeElements() {\n\t// Create text with style h1\n\th1 = document.createElement(\"h1\");\n\th1.innerHTML = \"simulasi 2d gerak benda yang saling terpengaruh gravitasi satu sama lain\";\n\t\n\t// Create start button\n\tbtn = document.createElement(\"button\");\n\tbtn.innerHTML = \"Start\";\n\tb... | [
"0.71490115",
"0.66962105",
"0.6622818",
"0.6512374",
"0.6440376",
"0.63408226",
"0.63120687",
"0.6261739",
"0.62025744",
"0.6136776",
"0.6133529",
"0.61276907",
"0.60558164",
"0.60234547",
"0.601604",
"0.6001712",
"0.5999936",
"0.5999936",
"0.5993966",
"0.5956396",
"0.595230... | 0.6830786 | 1 |
Mock API call with delay | async function apiCall(time=1500) {
await new Promise(resolve => setTimeout(resolve, time));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function getData(callbackFn){\n setTimeout(function(){callbackFn(mockData)},1);\n}",
"function mockserver () {\n //console.log('mock', Date.now())\n return new Promise(function(resolve, reject){\n setTimeout(()=>{\n let time = Date.now()\n resolve({ ttl:60, last_updated: posixTime(), data: 'DAT D... | [
"0.64150816",
"0.6158689",
"0.59329903",
"0.58586633",
"0.5785513",
"0.57413673",
"0.5729357",
"0.56799847",
"0.5655477",
"0.5566478",
"0.5507201",
"0.5501581",
"0.5430792",
"0.54303396",
"0.54248804",
"0.5419433",
"0.5415257",
"0.5414737",
"0.53928",
"0.5390894",
"0.5373274"... | 0.64217335 | 0 |
Sort money in descending order | function sortByMoney(array, key) {
return array.sort(function(a, b) {
var x = a.money.replace("£",""); var y = b.money.replace("£","");//replace ”£”, only compare number
return ((x > y) ? -1 : ((x < y) ? 1 : 0));
});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function sortByRichest(){\n\n // a,b are object but we need to return numbers so use b.money - a.money \n data = data.sort((a,b) => b.money - a.money);\n \n updateDOM();\n}",
"function sorted (){\n data.sort((a,b)=>b.money - a.money);\n UpdateDom();\n}",
"function sortByRichest() {\n data.sort((a, b) ... | [
"0.74288",
"0.73951966",
"0.7344417",
"0.7344417",
"0.70471114",
"0.70314044",
"0.68644506",
"0.6833317",
"0.6758183",
"0.65901744",
"0.6585",
"0.6581928",
"0.6567183",
"0.6420994",
"0.64013463",
"0.64012545",
"0.63653755",
"0.6344685",
"0.6338603",
"0.6323174",
"0.6261007",
... | 0.74245054 | 1 |
Checks if a target class (the one placing classes adject to) is on the edge of the schema Returns: true if target class is on the edge | function onEdge(classInd) {
if (classInd == 0 || classInd % CLASSES_PER_ROW == 0 || (classInd + 1) % CLASSES_PER_ROW == 0) {
return true;
}
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function edgeCanBePlaced() {\n // If user has not clicked a node different to the selected node, return false\n if (selectedItem == null || currentItem == null || currentItem == selectedItem) {\n return false;\n }\n \n // If an edge already exists between the two nodes, return false\n for (v... | [
"0.5788408",
"0.56421936",
"0.56146073",
"0.5596518",
"0.5482962",
"0.54656225",
"0.5456549",
"0.5442138",
"0.5430966",
"0.54233176",
"0.53701484",
"0.53530055",
"0.5311917",
"0.52985924",
"0.5291364",
"0.5277027",
"0.52640706",
"0.52383155",
"0.51930404",
"0.5183141",
"0.518... | 0.59983295 | 0 |
Arranges class when the target class is on the edge Arguments: sortedClassArr = array holding newly arranged classes, className = name of class to place, connToInd = (short for "connected to index") index of target class in sortedClassArr, classInd = index of class to place in classArr | function arrangeEdge(sortedClassArr, className, connToInd, classInd) {
var pos = null, incrementAmt = null;
var right = connToInd + 1,
left = connToInd - 1,
above = connToInd - CLASSES_PER_ROW,
below = connToInd + CLASSES_PER_ROW;
// Place in best case scenarios
if (classInd == CLASS_ARR_SIZE - 1) { ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function arrangeNonEdge(sortedClassArr, className, connToInd) {\n\tvar dirArr = [connToInd + 1,\t\t// right\n\t\tconnToInd - 1, \t\t\t// left\n\t\tconnToInd - CLASSES_PER_ROW, \t// above\n\t\tconnToInd + CLASSES_PER_ROW \t// below\n\t];\n\n\tfor (var dirAttempt = 0; dirAttempt < dirArr.length; dirAttempt++) {\n\t\... | [
"0.78887826",
"0.69457096",
"0.6322832",
"0.6065774",
"0.5754259",
"0.57539886",
"0.54308414",
"0.53527516",
"0.5290459",
"0.52700776",
"0.5229441",
"0.52262163",
"0.5220754",
"0.5120959",
"0.5116763",
"0.501979",
"0.49966186",
"0.49111992",
"0.4845896",
"0.48416108",
"0.4827... | 0.8329626 | 0 |
Arranges class when the target class is not on edge Arguments: sortedClassArr = array holding newly arranged classes, className = name of class to place, connToInd = (short for "connected to index") index of target class in sortedClassArr | function arrangeNonEdge(sortedClassArr, className, connToInd) {
var dirArr = [connToInd + 1, // right
connToInd - 1, // left
connToInd - CLASSES_PER_ROW, // above
connToInd + CLASSES_PER_ROW // below
];
for (var dirAttempt = 0; dirAttempt < dirArr.length; dirAttempt++) {
var dir = dirArr[dirAttempt];
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function arrangeEdge(sortedClassArr, className, connToInd, classInd) {\n\tvar pos = null, incrementAmt = null;\n\tvar right = connToInd + 1, \n\t\tleft = connToInd - 1, \n\t\tabove = connToInd - CLASSES_PER_ROW, \n\t\tbelow = connToInd + CLASSES_PER_ROW;\n\n\t// Place in best case scenarios\n\tif (classInd == CLAS... | [
"0.8082881",
"0.6926659",
"0.638115",
"0.6217265",
"0.5811309",
"0.5628041",
"0.5397672",
"0.5312415",
"0.52903146",
"0.52901715",
"0.5278304",
"0.52581584",
"0.52316123",
"0.51626027",
"0.50586957",
"0.4981917",
"0.4948947",
"0.4935496",
"0.48284513",
"0.48257747",
"0.481051... | 0.8143201 | 0 |
Arranges generalisation classes such that theyre in optimal "generalisation formation" (i.e. 2 subclasses in same row, then superclass in between and above them) Arguments: classArr = array holding unsorted class names, sortedClassArr = array holding sorted class names, genClasses = object holding class names involved ... | function arrangeGens(sortedClassArr, genClasses) {
var posSuperclass = 1;
var posAnchorClass = null;
var posSubclass1 = null;
var posSubclass2 = null;
// For all columns, where there are spare columns on left and right of superclass column)
for (; posSuperclass < CLASSES_PER_ROW - 1; posSuperclass++) {
posSubc... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function adjacentClasses(classArr, sortedClassArr, genClassArr) {\n\t// Store associations between classes\n\tvar assocArr = [];\n\t$(xmlDoc).find(TAG_ASSOC).each(function() {\n\t\t// Get class titles from xml\n\t\tvar classFromName = $(this).children(TAG_CLASS).children(TAG_CLASS_NAME).text();\n\t\tvar classToNam... | [
"0.6733478",
"0.66560555",
"0.62393844",
"0.60278285",
"0.59579796",
"0.57870245",
"0.5546456",
"0.5470476",
"0.54564613",
"0.5432343",
"0.54252225",
"0.53478616",
"0.53078383",
"0.52741647",
"0.521652",
"0.52022266",
"0.5181861",
"0.5155968",
"0.51527566",
"0.5145273",
"0.51... | 0.8796366 | 0 |
Increments number of connections for a class Arguments: classArr = class array, numConnArr = array holding number of connections for each class, className = target class for incrementing its connection count | function incrementNumConn(classArr, numConnArr, className) {
for (var ind = 0; ind < classArr.length - 1; ind++) {
if (classArr[ind] == className) { // If already in connection array
numConnArr[ind]++;
} else if (ind == classArr.length - 1) { // If not stored yet
alert('[!] arrangeSchema.js: association inv... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function setMidClass(classArr, numConnArr) {\n\tvar maxConnInd = 0, maxConn = -1;\n\t$.each(classArr, function(k, v) {\n\t\tif (numConnArr[k] > maxConn) {\n\t\t\tmaxConn = numConnArr[k];\n\t\t\tmaxConnInd = k;\n\t\t}\n\t});\n\n\tvar sortedClassArr = new Array(CLASS_ARR_SIZE);\n\t$.each(sortedClassArr, function(k, ... | [
"0.62048125",
"0.5503779",
"0.5430111",
"0.5336476",
"0.5256522",
"0.50506485",
"0.4995798",
"0.4995514",
"0.49610418",
"0.49282745",
"0.49116805",
"0.49116805",
"0.49073118",
"0.4898067",
"0.48716825",
"0.4852408",
"0.4808846",
"0.47960165",
"0.477974",
"0.47521967",
"0.4747... | 0.8481298 | 0 |
Create bundle renderer. Serves bundled files for production. Observes and updates bundle, manifest and template in dev mode. | function _createRenderer({template,bundle,manifest}={}){
const viewTemplate = template || fs.readFileSync(TEMPLATE_PATH,'utf-8')
const serverBundle = bundle || require('./../build/vue-ssr-server-bundle.json')
const clientManifest = manifest || require('./../build/vue-ssr-client-manifest.json')
return c... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function createRenderer(bundle, options) {\n\t// https://github.com/vuejs/vue/blob/dev/packages/vue-server-renderer/README.md#why-use-bundlerenderer\n\treturn createBundleRenderer(\n\t\tbundle,\n\t\tObject.assign(options, {\n\t\t\t// for component caching\n\t\t\tcache: LRU({\n\t\t\t\tmax: 1000,\n\t\t\t\tmaxAge: 10... | [
"0.74348104",
"0.6590594",
"0.65725243",
"0.6483431",
"0.64313924",
"0.64212096",
"0.63626677",
"0.6314026",
"0.6311613",
"0.630195",
"0.62585187",
"0.62547475",
"0.6236269",
"0.6142522",
"0.6138013",
"0.6137346",
"0.6058548",
"0.6055945",
"0.5981314",
"0.59798604",
"0.595771... | 0.7355683 | 1 |
get user related events. 1) Comments. 2) Pledges. 3) user_project: follow or like projects function done(error, news) | function getUserNews(username, done){
var count = 0;
var rst = [];
function onSqlDone(error, rows, fields){
count++;
if(!error){
rst = rst.concat(news.newsList(fields[0].table, rows));
}
if(count == 3){
return done(null, rst);
}
}
//tmpDone(null, [1]);
db.user.getComment(username,... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function usersGoingEvent(req, res) {\r\n console.log(req.params.eventID);\r\n Events.findOne({id:req.params.eventID})\r\n .then(data => {\r\n if (data) {\r\n UserProfile.find({username:{$in:data.interestedUsers}})\r\n .then(data2 => {\r\n if (data2) {\r\n var returnData = [];\r\n\r\... | [
"0.6163307",
"0.60658634",
"0.5865692",
"0.5828852",
"0.5733836",
"0.57170504",
"0.56049585",
"0.556993",
"0.551814",
"0.549558",
"0.54863626",
"0.5466749",
"0.54466987",
"0.5431616",
"0.54095805",
"0.5404643",
"0.539178",
"0.5391603",
"0.5385259",
"0.5367598",
"0.5337296",
... | 0.62590057 | 0 |
Make a query to the Instagram API name String name of the endpoint urlKeywords Object keywords arguments for the URL (iff required in URL) params Object parameters for endpoint asyncCallback Function optional callback. If passed, the method runs asynchronously, instead of synchronously, and calls asyncCallback. On the ... | function query(name, urlKeywords, params, asyncCallback) {
var endpoint = _ENDPOINTS[name];
if (typeof(endpoint) === 'undefined') {
throw new Meteor.Error('Unknown endpoint', name + ' not found.');
}
var config = (Meteor.settings || {})['instagram'];
if (!config || !config.client_id || !con... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function requestKeywordSearch(keywordQuery, type = ['track', 'artist']) {\n // Hard coded a limit of 8 results, should be enough\n const queryUrl = `https://api.spotify.com/v1/search?q=${encodeURIComponent(keywordQuery)}&type=${type.join()}&limit=8`;\n\n return requestToApi(queryUrl)\n .catch((error) => rend... | [
"0.5757794",
"0.5451996",
"0.53828776",
"0.5368707",
"0.53275174",
"0.53181744",
"0.52919954",
"0.5125867",
"0.5106627",
"0.5082946",
"0.5076036",
"0.50634986",
"0.50569385",
"0.5046534",
"0.50174713",
"0.4994606",
"0.49386966",
"0.49257997",
"0.49187216",
"0.49147078",
"0.49... | 0.8380341 | 0 |
function to send sms of current location postal code to taxi service using expo sms | async function handleSend() {
const result = await SMS.sendSMSAsync('71222', 'BOOK ' + postal +' Pick Up/Drop off Point')
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function sendSms(phone){\n \n return axios.post(BaseUrl+\"send-signup-token\",{phone});\n}",
"function sendSms() {\n\n // 'msg' and 'numberToDial' are passed in via the HTTP request from the Finesse gadget.\n // Pass these to the Tropo API to send an SMS.\n message(msg, {\n to:\"+\" + numbe... | [
"0.6486916",
"0.64257026",
"0.6223338",
"0.6112753",
"0.609961",
"0.59565556",
"0.5934593",
"0.5917962",
"0.59093696",
"0.5875354",
"0.5842253",
"0.58230966",
"0.5814191",
"0.58111185",
"0.578254",
"0.57577854",
"0.572877",
"0.5714986",
"0.57113487",
"0.5678518",
"0.5675447",... | 0.7444458 | 0 |
This is called to prepare for dragging the sizer div | function OnMouseDown(event)
{
var x;
// Make sure the splitter is at the top of the z-index
divSizer.style.zIndex = 5000;
// The content is in an IFRAME which steals mouse events so
// hide it while resizing.
topicContent.style.display = "none";
if(isIE)
x = window.eve... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function draggInit(elem) {// Will be called when user starts dragging an element\n\t // Store the object of the element which needs to be moved\n\t if (options.draggable && !options.hideHeader) {\n\t drg_fConsole = elem;\n\t drg_x_elem = drg_x_pos - drg_fConsole.offsetLeft;\n\t drg_y_ele... | [
"0.63349545",
"0.6287189",
"0.6222826",
"0.6200756",
"0.61861455",
"0.6175743",
"0.6153584",
"0.6144277",
"0.6110053",
"0.6107428",
"0.60972035",
"0.60393167",
"0.6022047",
"0.6019465",
"0.6016198",
"0.60121995",
"0.6010399",
"0.60054266",
"0.5997379",
"0.5989945",
"0.5978867... | 0.6702847 | 0 |
Update the menu and notification items. | function updateMenus() {
if (updatingMenus <= 0) {
loadMenuFriends(5);
loadNotificationFriends();
loadUnreadMessages();
loadMenuGroups();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function updateMenu() {\n const menu = Menu.getApplicationMenu()\n if (!menu) return\n\n menu.items.find(menuItem => menuItem.label === 'Updates').submenu.items.forEach(subMenuItem => {\n switch (subMenuItem.key) {\n case 'checkForUpdate':\n subMenuItem.visible = state === 'no-update'\n br... | [
"0.7816349",
"0.7111093",
"0.7096529",
"0.7076917",
"0.69360095",
"0.68084455",
"0.67060393",
"0.6546716",
"0.65363115",
"0.65310895",
"0.6526089",
"0.6303999",
"0.6298491",
"0.6283976",
"0.6249546",
"0.62361455",
"0.6167898",
"0.6166332",
"0.61097383",
"0.60891634",
"0.60816... | 0.71839416 | 1 |
endregion region event emitting region connected, disconnected, & errored Emits an event signaling that the socket has opened a connection to the BotSocket server. | _emitOpened() {
/**
* @event BSClientSocket#E_SOCKET_OPEN
* @type {Object}
*/
this.emit(this.constructor.E_SOCKET_OPEN, {});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"_emitErrored() {\n /**\n * @event BSClientSocket#E_SOCKET_ERROR\n * @type {Object}\n */\n this.emit(this.constructor.E_SOCKET_ERROR, {});\n }",
"socketError(err) {\n debug('socket error', err.message);\n this.emit('error', err);\n this.disconnect();\n... | [
"0.6823748",
"0.6509043",
"0.62906605",
"0.6288956",
"0.6232791",
"0.6208096",
"0.61933494",
"0.6181289",
"0.6177541",
"0.6137348",
"0.6133439",
"0.60937595",
"0.60832",
"0.6074521",
"0.6066231",
"0.6066231",
"0.60627156",
"0.60538983",
"0.6049985",
"0.60308796",
"0.60308796"... | 0.67135954 | 1 |
Emits an event signaling that the socket has errored while connecting to or from the BotSocket server. | _emitErrored() {
/**
* @event BSClientSocket#E_SOCKET_ERROR
* @type {Object}
*/
this.emit(this.constructor.E_SOCKET_ERROR, {});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"socketError(err) {\n debug('socket error', err.message);\n this.emit('error', err);\n this.disconnect();\n }",
"onError(err) {\n debug(\"socket error %j\", err);\n Socket.priorWebsocketSuccess = false;\n this.emit(\"error\", err);\n this.onClose(\"transport error\", err);\n }... | [
"0.72773385",
"0.71816945",
"0.71816945",
"0.70593333",
"0.702082",
"0.69212925",
"0.68696654",
"0.68510944",
"0.68434507",
"0.6710335",
"0.667622",
"0.6669335",
"0.6618485",
"0.6589056",
"0.6544791",
"0.6544791",
"0.65212876",
"0.6500261",
"0.648396",
"0.6474149",
"0.6472192... | 0.7839454 | 0 |
Attempts to connect to the BotSocket server by instancing a new socket. | connect() {
// todo: test about closing the socket if it's already connected/open
this._newSocket();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"connect() {\n const {\n socket,\n } = this;\n\n if (!socket) {\n return;\n }\n\n socket.open();\n }",
"connect() {\n this.socket = new net.Socket();\n this.socket.on('connect', () => {\n const reader = new SocketMessageReader(this.socket);\n const wri... | [
"0.7224919",
"0.71287906",
"0.7076853",
"0.68987906",
"0.6875312",
"0.68647116",
"0.6829169",
"0.6829169",
"0.68101954",
"0.66965556",
"0.6693076",
"0.6680116",
"0.66725564",
"0.65944666",
"0.6581269",
"0.65587837",
"0.65546703",
"0.6532996",
"0.6510778",
"0.6421884",
"0.6379... | 0.7315884 | 0 |
Determine if browser can handle dragging and dropping files. Params: None Return: Bool whether browser can handle drag and drop | function canDoDragAndDrop() {
var div = document.createElement('div');
return (('draggable' in div) || ('ondragstart' in div && 'ondrop' in div)) &&
'FormData' in window && 'FileReader' in window;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function isFileDragAndDropSupported()\n {\n // is drag and drop supported in general?\n if (!(\"draggable\" in document.createElement(\"span\")))\n return false;\n\n // check if file API is implemented (Chrome 6+, Firefox 4+, Safari 6, IE 10, Opera 12)\n if (!!window.FileR... | [
"0.8028242",
"0.7373274",
"0.7330292",
"0.7322065",
"0.7291405",
"0.7291405",
"0.7068865",
"0.6815427",
"0.67613643",
"0.66897845",
"0.6655304",
"0.6653689",
"0.6566441",
"0.6566441",
"0.65638685",
"0.6556683",
"0.6556683",
"0.6556683",
"0.6556683",
"0.6556683",
"0.6556683",
... | 0.8026448 | 1 |
Read demo text file from Github and parse. Params: None Return: None | function readDemoFile() {
const DEMO_FILE_LINK = "https://raw.githubusercontent.com/hunterhedges/mipsSimulator/master/sampleinputs/sample_1.txt";
$.get(DEMO_FILE_LINK, function(data) {
parseInputFile(data);
});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function readExample(layer = undefined){\n cleanSelections();\n // read text from URL location\n var request = new XMLHttpRequest();\n request.open('GET', 'https://raw.githubusercontent.com/MirjamFi/BioGraphVisart/master/example.graphml', false);\n request.onreadystatechange = function () {\n if (request... | [
"0.6211326",
"0.61180735",
"0.60476416",
"0.5889527",
"0.577729",
"0.57487696",
"0.57208884",
"0.569746",
"0.56855583",
"0.567258",
"0.56487894",
"0.5647104",
"0.56460255",
"0.5611445",
"0.5608156",
"0.5606174",
"0.5588705",
"0.55784523",
"0.5571276",
"0.5547972",
"0.55447876... | 0.75005156 | 0 |
Read text file from upload, check validity of file, and parse. Display warning on empty text file or incorrect file type. Params: Event from drag and drop or file upload link Return: None | function readFileOnUpload(event) {
var droppedFile;
if(event.type == "drop") {
droppedFile = event.originalEvent.dataTransfer.files[0];
}
else if(event.type == "change") {
droppedFile = $("#file")[0].files[0];
}
if(droppedFile.type.includes("text")) {
const reader = new FileReader();
rea... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function dropFile(e) {\r\n e.preventDefault();\r\n var files = e.dataTransfer.files;\r\n var f = files[0];\r\n var fileType = /text/;\r\n // Limit fileSize to 1M...\r\n if (f.size > FILE_SIZE_LIMIT) {\r\n warningPopup('Specified file is too large (' + f.size\r\n + ' byt... | [
"0.6832636",
"0.68028295",
"0.66553646",
"0.66213953",
"0.65179485",
"0.64237064",
"0.64080554",
"0.63990486",
"0.63909894",
"0.63760346",
"0.6344475",
"0.6341882",
"0.6244684",
"0.6227586",
"0.62135106",
"0.6212204",
"0.6210775",
"0.6207727",
"0.61910415",
"0.6186391",
"0.61... | 0.82741237 | 0 |
Parse section of text file. Params: String of text in uploaded file Section to parse Return: Array of strings from section split by lines or null if section does not exist | function parseSection(fileContent, section) {
var sectionString = "";
var sectionArray;
var i = 0;
if(fileContent.includes(section.sectionName)) {
i = fileContent.indexOf(section.sectionName) + section.sectionName.length;
while(!section.stopCharacters.includes(fileContent.charAt(i)) && i < fileConten... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"parseTextChunks() {\n\t\tlet textChunks = this.metaChunks.filter(info => info.type === TEXT)\n\t\tfor (let seg of textChunks) {\n\t\t\tlet [key, val] = this.file.getString(seg.start, seg.size).split('\\0')\n\t\t\tthis.injectKeyValToIhdr(key, val)\n\t\t}\n\t}",
"parse_lines(data, lang, callback) {\n\n // See [... | [
"0.60806763",
"0.6055847",
"0.6043736",
"0.6024509",
"0.59265196",
"0.5885228",
"0.5793519",
"0.5736863",
"0.55697924",
"0.55044675",
"0.5497591",
"0.5493225",
"0.5405687",
"0.54016215",
"0.5401471",
"0.53903204",
"0.53885686",
"0.53597885",
"0.5357573",
"0.53574",
"0.5314944... | 0.73899883 | 0 |
Separate lines of register section into register number and value, then set the values in registers. Params: Array of strings from register section Return: None | function loadRegisters(registerArray) {
if(!registerArray) {
return;
}
for(var i = 0; i < registerArray.length; i++) {
var j = 0;
var registerNumber = "";
var registerValue = "";
while(registerArray[i].charAt(j) != " " && j < registerArray[i].length) {
registerNumber += registerArray[... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"ADR() {\n this.reg[this.curReg] = this.reg.SRM;\n }",
"set (register, value) {\n this.registers[register] = value\n return true\n }",
"writeValue(register, value) {\n this.reg[this.regNum(register)] = value;\n }",
"updateRegisters() {\n if (this.hasUi) {\n document.getE... | [
"0.52271926",
"0.5159635",
"0.51481706",
"0.50660944",
"0.49902293",
"0.4954582",
"0.49365416",
"0.49286765",
"0.49060374",
"0.4865274",
"0.48379335",
"0.48117667",
"0.47369683",
"0.4725591",
"0.4725591",
"0.4687236",
"0.46711567",
"0.46686116",
"0.463346",
"0.46123582",
"0.4... | 0.63422227 | 0 |
Check that register number is valid. Register string must start with 'r' followed by number or only number. MIPS only has registers valued between 0 and 31 inclusive. Register 0 is always equal to 0. Params: String relating to register Return: Bool whether register is valid | function isValidRegister(register) {
var registerNumber;
var isValid = false;
registerNumber = parseInt(register);
if(registerNumber || registerNumber == 0) {
if(registerNumber > 0 && registerNumber < 32) {
isValid = true;
}
else {
warnings.push("Register <strong>" + register + "</st... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function testReg(reg, str){\n\tconsole.log(reg.test(str));\n}",
"function isValidDigit(str){\n\t\tvar validRegExp = /^[0-9]+$/i;\n\t\tres=true;\n\t\t// search email text for regular exp matches\n\t\tif (str.search(validRegExp) == -1) {\n\t\t\tres=false;\n\t\t} \n\t\treturn res; \n\t}",
"function is_cellphone_n... | [
"0.63353205",
"0.6163696",
"0.6108346",
"0.6065625",
"0.60553193",
"0.6043273",
"0.5988981",
"0.5979404",
"0.59372556",
"0.5848268",
"0.5821306",
"0.58201003",
"0.5819521",
"0.58046734",
"0.5803027",
"0.57904816",
"0.57852864",
"0.5769371",
"0.57685804",
"0.5767911",
"0.57574... | 0.8090288 | 0 |
Separate lines of memory section in memory location and value, then set the values in memory. Params: Array of strings from memory section Return: None | function loadMemory(memoryArray) {
if(!memoryArray) {
return;
}
for(var i = 0; i < memoryArray.length; i++) {
var j = 0;
var memoryLocation = "";
var memoryValue = "";
while(memoryArray[i].charAt(j) != " " && j < memoryArray[i].length) {
memoryLocation += memoryArray[i].charAt(j);
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static setMemContent(memory, address, value, realAddress) {\n if (value < SHORT_NUMBER.MIN || value > SHORT_NUMBER.MAX) {\n /**\n * TODO: cast to `short`\n * memory[address] = (short) (val >> 16);\n * memory[address + 1] = (short) (val & 0xFFFF);\n *\n */\n memory[addres... | [
"0.60786176",
"0.55815583",
"0.544713",
"0.53663725",
"0.528092",
"0.5263554",
"0.52439815",
"0.5206136",
"0.51824874",
"0.51422477",
"0.50661725",
"0.5046265",
"0.50279516",
"0.49932656",
"0.49839035",
"0.48885295",
"0.48703662",
"0.4837532",
"0.48374385",
"0.48074076",
"0.4... | 0.65045077 | 0 |
Check that memory location is valid. Memory string must start with 'm' followed by number or only number. Memory location must be greater than 0, less than 2^4 (65280), and divisible by 4. Params: String relating to memory location Return: Bool whether memory location is valid | function isValidMemoryLocation(memoryLocation) {
var memoryNumber;
var isValid = false;
memoryNumber = parseInt(memoryLocation);
if(memoryNumber || memoryLocation == 0) {
if(memoryNumber >= 0 && memoryNumber < 65280) {
isValid = true;
}
else {
warnings.push("Memory location <strong>" ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function inputIsValid(memory, i) {\n var positionsValid = true;\n if (memory[i + 1] > memory.length || memory[i + 2] > memory.length || memory[i + 3] > memory.length) {\n console.log(\"Error: illegal memory address\");\n positionsValid = false;\n }\n return positionsValid;\n}",
"functio... | [
"0.6826358",
"0.6188594",
"0.5652493",
"0.56464237",
"0.55318487",
"0.5507881",
"0.54849464",
"0.54731494",
"0.5417094",
"0.54094106",
"0.53843105",
"0.53590006",
"0.53436035",
"0.5300868",
"0.5300868",
"0.5300868",
"0.5300868",
"0.52960914",
"0.52906585",
"0.5284489",
"0.526... | 0.77911973 | 0 |
Read the opcode and function code if applicable to determine which MIPS instruction the code is. Push a decoded string to decodedCode array or push warning. Params: Array of strings from code section Return: None | function loadDecodedCode(codeArray) {
if(!codeArray) {
return;
}
for(var i = 0; i < codeArray.length; i++) {
codeArray[i] = codeArray[i].replace(/ /g,"");
var result = findInstruction(codeArray[i], ACTIONS.DECODE);
if(result) {
decodedCode.push(result);
// Instructions used in simu... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function decode(){\n\t// Separate opCode (equivalent to opCode = IR % 100\n\topCode = IR.charAt(1);\n\t// Separate operand\n\toperand = IR.substring(2,4);\n\treturn 0;\n}",
"function parse_and_compile(string) {\n \n // machine_code is array for machine instructions\n const machine_code = [];\n \n ... | [
"0.5875629",
"0.5769121",
"0.57577723",
"0.5650982",
"0.5589459",
"0.5559252",
"0.5509319",
"0.54531926",
"0.5423458",
"0.53922427",
"0.53574187",
"0.5334884",
"0.5303505",
"0.52793103",
"0.5206982",
"0.5091265",
"0.5062969",
"0.506021",
"0.50574404",
"0.50574404",
"0.5057440... | 0.6429115 | 0 |
Show instructions container, then add registers, memory, and decoded code to container. Smooth scroll to container. Params: None Return: None | function displayDecodedInstructions() {
$("#decodedInstructionsContainer").show();
$("#decodedInstructions").append("REGISTERS<br />");
for(var key in registers) {
$("#decodedInstructions").append("R" + key + " " + registers[key] + "<br />");
}
if(registers.length == 0) {
$("#decodedInstructions").... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function instructions(){\n let instructionContainer = document.getElementsByClassName(\"instruction-container\")[0];\n \n //Display instructions\n instructionContainer.style.display = \"block\";\n}",
"function showInstructions() {\n \n hideElements();\n $('#instructions').show();\n $('#inst... | [
"0.61613584",
"0.61459994",
"0.58690095",
"0.58148795",
"0.58123624",
"0.5742131",
"0.5547936",
"0.5536335",
"0.546449",
"0.54596454",
"0.54398996",
"0.5433349",
"0.54194164",
"0.5413294",
"0.5382796",
"0.5363497",
"0.53289574",
"0.5321577",
"0.5310143",
"0.52163166",
"0.5205... | 0.68847615 | 0 |
Display warnings to user in modal. Params: None Return: None | function displayWarnings() {
if(warnings.length != 0) {
const warningsTitle = "Warnings";
var warningsBody = "";
for(var i = 0; i < warnings.length; i++) {
warningsBody += (i+1) + ". " + warnings[i] + "<br />";
}
showModal(warningsTitle, warningsBody);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function WarningMsgPopUp(WarningReason) { //Show Error Msg \n $(\".modalWarningMsg\").modal('show');\n $(\".alertwarningmsg\").text(WarningReason);\n $(\".modal-title\").html(\"Warning !\");\n}",
"function showWarningMessage(message, buttonText, buttonEvent) {\r\n displayWarning(\"#demoModal\", \"... | [
"0.79893273",
"0.7350269",
"0.72774005",
"0.70112795",
"0.6999672",
"0.6996372",
"0.69197744",
"0.68969625",
"0.6805597",
"0.67718756",
"0.67337763",
"0.6690278",
"0.6671133",
"0.6661963",
"0.6632136",
"0.65911025",
"0.6542344",
"0.65410876",
"0.6534558",
"0.65083915",
"0.650... | 0.8455462 | 0 |
Display modal to user. Params: String for title of modal String for content of modal body Return: None | function showModal(modalTitle, modalBody) {
$("#modalTitle").html(modalTitle);
$("#modalBody").html(modalBody);
$("#modal").modal("show");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function showPopUp(bodyHtml) {\r\n modal.style.display = \"block\";\r\n if (bodyHtml) { document.getElementById('modalBody').innerHTML = bodyHtml; }\r\n}",
"function modal_handler(header, body) {\n let modal_header = document.querySelector('#modal_header h2');\n let modal_body = document.querySelector('#... | [
"0.7451044",
"0.7153041",
"0.71225464",
"0.70984554",
"0.7005597",
"0.70034426",
"0.698977",
"0.6979953",
"0.6962089",
"0.69480157",
"0.6938655",
"0.6936034",
"0.6879076",
"0.68677986",
"0.68545115",
"0.6837395",
"0.68144405",
"0.6813534",
"0.6779731",
"0.6754675",
"0.675099"... | 0.75773126 | 0 |
calcStartTotal() method to calculate percentages in bars | function calcStartTotal(e) {
let axis = config.x.type === 'ordinal' || (config.x.type === 'linear' && config.x.bin)
? 'y'
: 'x';
e.total = sum(e.values.map(m => +m.values[axis]));
let counter = 0;
e.values.forEach((v, i) => {
if (config.x.type === 'ord... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function calcTotal() {\n\tvar numTotal = currentTotal.reduce( function (acc, val) {\n\t\treturn acc + val;\n });\n $('.total').text(`Total: $ ${numTotal}`);\n}",
"function calculatePercentage( partialValue, totalValue ) {\n return ( 100 * partialValue ) / totalValue;\n}",
"function makePercent() {\n ... | [
"0.62281704",
"0.6163121",
"0.6091974",
"0.5969355",
"0.5953331",
"0.595143",
"0.5941325",
"0.5911683",
"0.587721",
"0.58754146",
"0.58745825",
"0.58723",
"0.5872052",
"0.58682007",
"0.5862106",
"0.5843081",
"0.5836712",
"0.5821924",
"0.58184516",
"0.58096874",
"0.58082086",
... | 0.77934426 | 0 |
Remove previous data when new fetch | removePreviousData(){
fetchResults = [];
fetchResultsDesc = [];
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function clearData() {\r\n fetch('/clearData').then(response => response.json()).then(\r\n data => {updatePreviousCalculations(data)});\r\n}",
"function clearData() {\n setRefresh(true);\n setData()\n setRefresh(false);\n }",
"function resetData(){ fetch('/api/reset', {method: 'DE... | [
"0.7396888",
"0.6757228",
"0.66003126",
"0.64488435",
"0.6438615",
"0.63734484",
"0.63734484",
"0.63734484",
"0.63734484",
"0.63734484",
"0.63734484",
"0.63734484",
"0.63734484",
"0.63734484",
"0.63734484",
"0.63734484",
"0.6370964",
"0.6362336",
"0.63493097",
"0.632834",
"0.... | 0.83502144 | 0 |
get the player with the most votes if there is a tie, no player wins | getWinner() {
const voteCounts = Object.values(this.votes);
if (voteCounts.length === 0) return null;
const max = Math.max(...voteCounts);
const winners = Object.keys(this.votes).filter(p => this.votes[p] === max)
if (winners.length === 1) return winners[0];
els... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function mostPointsScored() {\n const playersArray = Object.entries(players());\n const playerWithMostPoints = playersArray.reduce((a, b) => a[1].points > b[1].points ? a : b);\n return playerWithMostPoints[0];\n}",
"function winnerPoints(){\n let pointsArr = []\n // loop through dogs points, add to array\n... | [
"0.7613699",
"0.7007272",
"0.6890973",
"0.68185014",
"0.67592514",
"0.6519539",
"0.64447635",
"0.641443",
"0.63677996",
"0.63637805",
"0.63567275",
"0.63468575",
"0.63131464",
"0.63076276",
"0.629672",
"0.6286698",
"0.6276753",
"0.6271699",
"0.6271487",
"0.6268753",
"0.624505... | 0.7984711 | 0 |
Intercept the context menu search box | function suggestLinksInContextMenu() {
// Clear existing results
$("#contextmenu #addLinkContextMenu li.searchResult").remove();
if ($('#contextmenu #addLinkContextMenu input[name="search"]').val().length == 0)
return;
var searchesReturned = 0;
var resultsReturned = 0;
// Search
for (var... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"addSearchItems(menu, menuInfo) {\n if (!menuInfo.selectionText || menuInfo.selectionText.length < 1) {\n return menu;\n }\n\n const match = matchesWord(menuInfo.selectionText);\n if (!match || match.length === 0) {\n return menu;\n }\n\n if (process.platform === 'darwin') {\n const... | [
"0.6441144",
"0.640897",
"0.6344188",
"0.6304466",
"0.62995774",
"0.6206436",
"0.6196422",
"0.6189119",
"0.6181",
"0.6179954",
"0.6167506",
"0.6166784",
"0.61569524",
"0.61139476",
"0.6108441",
"0.61079025",
"0.6077508",
"0.6077288",
"0.6073416",
"0.6070877",
"0.6054166",
"... | 0.66497153 | 0 |
Set up listening to leap events | function setLeapTriggers() {
$('body').on('leapEvent', triggerLeapEvent);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function init()\n{\n if(leap_motion_settings.fingers === 'yes')\n {\n add_fingers();\n }\n\n setInterval(check_focus, 1000);\n connection = setInterval(check_connection, 1000);\n}",
"initializeEvents () {\n }",
"function setupEventListener() {\n\t\tlastEvent = cls.currentEvent;\n\t\tsetTimeout(checkFo... | [
"0.6312268",
"0.61338496",
"0.60880136",
"0.6060978",
"0.605925",
"0.6050058",
"0.60448444",
"0.60441846",
"0.6040747",
"0.60318846",
"0.60195893",
"0.598369",
"0.598369",
"0.5971157",
"0.5971157",
"0.5971157",
"0.5971157",
"0.5971157",
"0.5971157",
"0.5971157",
"0.5971157",
... | 0.72492874 | 0 |
Removes event listener, found by id | function removeEventListener(id) {
for(var key in listeners) {
for (var i=0, len=listeners[key].length; i<len; i++) {
if (listeners[key][i].id === id) {
listeners[key].splice(i, 1);
}
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"remove(id) {\n this._listeners.delete(id);\n }",
"function unsubscribe (id) {\n listeners[id] = undefined;\n }",
"function unsubscribe (id) {\n listeners[id] = undefined;\n }",
"function unsubscribe (id) {\n listeners[id] = undefined;\n }",
"function unsubscribe (id) {\n listeners[... | [
"0.8321887",
"0.82380795",
"0.82380795",
"0.82380795",
"0.82380795",
"0.82380795",
"0.82380795",
"0.82380795",
"0.82380795",
"0.82380795",
"0.82380795",
"0.82380795",
"0.82380795",
"0.82380795",
"0.82380795",
"0.81394553",
"0.8090953",
"0.7743206",
"0.7539441",
"0.73252225",
... | 0.8389008 | 0 |
Run from engine, sets up all the triggers | function init() {
setKeyTriggers();
setLeapTriggers();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function Triggers() {}",
"function insertTriggers(next)\n\t\t\t\t\t{\n\t\t\t\t\t\tvar changedCondition = [];\n\t\t\t\t\t\tvar columns = getTableColumns(definition);\n\n\t\t\t\t\t\t//console.log(definition, columns)\n\n\t\t\t\t\t\tfor (var i=0; i<columns.length; i++)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tvar name = colum... | [
"0.64516985",
"0.5741502",
"0.56945145",
"0.5578289",
"0.5545087",
"0.55350703",
"0.5498712",
"0.54549366",
"0.53976244",
"0.5383615",
"0.5369561",
"0.53559965",
"0.5326245",
"0.52926266",
"0.5279205",
"0.526909",
"0.5259435",
"0.52407634",
"0.52207065",
"0.52138776",
"0.5166... | 0.5761955 | 1 |
Very simple, sets the background color and calls your state machine function | function draw() {
background(186,184,108);
// will call your state machine function
drawFunction();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function draw() {\n background(170, 158, 169);\n\n // will call the state machine function\n drawFunction();\n}",
"function draw() {\n background(255,255,224);\n\n // will call your state machine function\n drawFunction();\n}",
"function draw() {\n background(230);\n checkState()\n}",
"function draw(... | [
"0.75629365",
"0.7520265",
"0.71484023",
"0.7048919",
"0.695193",
"0.68756163",
"0.6858902",
"0.68442273",
"0.67794204",
"0.67561555",
"0.6668821",
"0.6659127",
"0.66534555",
"0.66512585",
"0.6647484",
"0.6626403",
"0.66110575",
"0.65912753",
"0.6589594",
"0.6585181",
"0.6572... | 0.75814486 | 0 |
Converter for the layout property binding | function layoutConverter(view, direction, value) {
$(view.el).attr("layout", value);
switch (value) {
case "horizontal":
$(view.el).children().css("float", "left");
break;
case "vertical":
$(view.el).children().css("float", "none");
break;
case "composite":
// TODO
break;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"get layoutType(){ return this.ui.layoutType; }",
"getLayoutType(){return this._layoutType;}",
"getLayoutType(){return this._layoutType;}",
"get layoutAlignX(){ return this.ui.layoutAlignX; }",
"setLayoutType(layoutType){this.layoutType=layoutType.toLowerCase();return this;}",
"setLayoutType(layoutType){t... | [
"0.61868656",
"0.5661919",
"0.5661919",
"0.5493252",
"0.5324816",
"0.5324816",
"0.5294607",
"0.5294607",
"0.5281435",
"0.524069",
"0.5236408",
"0.5211326",
"0.51848984",
"0.51689905",
"0.5122656",
"0.5122656",
"0.5122656",
"0.5018193",
"0.4980467",
"0.48676133",
"0.4850273",
... | 0.65890414 | 0 |
Initializing a new instance of Set Mark This Page Number action. | function SetMarkThisPageNumberAction(markThisPageNumber) {
_super.call(this, action.Source.View, actionType.MARK_THIS_PAGE_NUMBER);
this.auditLog.logContent = this.auditLog.logContent.replace('{0}', markThisPageNumber.toString());
this._markThisPageNumber = markThisPageNumber;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"SET_PAGE_NUMBER(state, payload) {\n state.pageNumber = payload;\n }",
"function setCurrentPage(page_number) {\n return { type: restConstants.SETCURRENT_PAGE, payload: page_number }\n}",
"setPageNumber(state, newPageNumber) {\n\t\t\tstate.pageNumber = newPageNumber\n\t\t}",
"setFirstPage(... | [
"0.5641226",
"0.55632025",
"0.5521474",
"0.53510004",
"0.53505427",
"0.53140795",
"0.5283016",
"0.5262526",
"0.5239828",
"0.51960415",
"0.51960415",
"0.51960415",
"0.51485133",
"0.50971097",
"0.50971097",
"0.5091596",
"0.5003973",
"0.5001846",
"0.4992814",
"0.4991717",
"0.498... | 0.73692095 | 0 |
Validate Buy Order Request NOTE: We are not validating an actual order object here, just the request | static async validateBuyOrderRequest(request) {
const rules = {
buyer: 'required|hexaddress',
fee_processing: 'feeprocessing',
amount: 'required'
}
const validation = await Validator.validate(request, rules, messages)
if (validation.fails()) {
return validation.messages()
}
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static async validateCancelOrderRequest(order, userid) {\n // Order not found, return error message\n if (order == null) {\n return {\n success: false,\n message: 'Order not found'\n }\n }\n\n // Order not owned by user, return error\n if (order.maker != userid) {\n retu... | [
"0.69347376",
"0.66775674",
"0.6602391",
"0.65216684",
"0.6283262",
"0.621932",
"0.59939086",
"0.59181184",
"0.5782183",
"0.57741284",
"0.5773385",
"0.57564",
"0.5711231",
"0.56575966",
"0.5628255",
"0.5568078",
"0.5555505",
"0.55252683",
"0.54887253",
"0.5481872",
"0.5470835... | 0.83977073 | 0 |
Validate order can be canceled | static async validateCancelOrderRequest(order, userid) {
// Order not found, return error message
if (order == null) {
return {
success: false,
message: 'Order not found'
}
}
// Order not owned by user, return error
if (order.maker != userid) {
return {
suc... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function cancelOrder(orderID) {\n\n}",
"async cancel({ params, request, response }) {\n let userid = params.userid\n\n // Find the order specified and owned by the requester (userid = wallet address)\n let query = await Order.query()\n .where('id', '=', params.id)\n .where('maker', '=', userid... | [
"0.64888275",
"0.63067955",
"0.63019127",
"0.62666345",
"0.61926293",
"0.60230124",
"0.5968438",
"0.59162456",
"0.58371145",
"0.58000314",
"0.5768878",
"0.57215554",
"0.5708624",
"0.5671536",
"0.5667628",
"0.5636741",
"0.56262755",
"0.5623538",
"0.5621894",
"0.56186455",
"0.5... | 0.69931084 | 0 |
Holds the asynchronous callback handler Add the Callback Handler to array list | function addToCallbackList(cb) {
__callbackList[__callbackList.length] = cb;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"on(callback) {\n this.handlers.push(callback);\n }",
"function callbackListener() {\n callbacks.push([].slice.call(arguments, 0));\n }",
"register_callback(cb) {\n this._callbacks.push(cb);\n }",
"function AsyncAddonListCallback(aCallback) {\n this.callback = aCallback;\n this.a... | [
"0.7058962",
"0.7034113",
"0.6589994",
"0.64475846",
"0.63904554",
"0.63904554",
"0.62615913",
"0.62615544",
"0.62615544",
"0.62577146",
"0.6224523",
"0.620269",
"0.6195705",
"0.61844695",
"0.6102278",
"0.6089969",
"0.60848826",
"0.6083801",
"0.60457814",
"0.60411435",
"0.601... | 0.71950805 | 0 |
ensure dockercompose stack is down before starting it | function dockerDown() {
const startTime = Date.now();
signale.pending('Ensuring docker environment is in a clean slate...');
return misc.compose.down({
'remove-orphans': '',
volumes: ''
}).then(() => {
signale.success('Docker environment is clean', getElapsed(startTime));
})... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async function dockerComposeDown() {\n const file = WORKING_DIR + '/' + MANAGER_YML;\n await bashService.exec(DOCKER_COMPOSE_COMMAND, ['-f', file, 'down'], options);\n}",
"async function dockerComposeUp() {\n const file = WORKING_DIR + '/' + MANAGER_YML;\n await bashService.exec(DOCKER_COMPOSE_COMMAND, ['-f'... | [
"0.6582293",
"0.5931051",
"0.5930754",
"0.57857406",
"0.52921766",
"0.519744",
"0.5189693",
"0.5051206",
"0.49494666",
"0.4903337",
"0.4863811",
"0.47853467",
"0.47146752",
"0.46780264",
"0.46554267",
"0.46539807",
"0.46498778",
"0.46291134",
"0.46282902",
"0.4619316",
"0.460... | 0.744055 | 0 |
The nucleus of Cesium. resolveStyles is called on the rendered elements before they are returned in render. It iterates over the elements and children, rewriting props to add event handlers required to capture user interactions (e.g. mouse over). It also replaces the style prop because it adds in the various interactio... | function resolveStyles(
component,
renderedElement,
existingKeyMap
) {
existingKeyMap = existingKeyMap || {};
// Recurse over children first in case we bail early. Could be optimized to be
// iterative if needed. Note that children only include those rendered in
// `this` component. Child n... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function applyStyles(_ref) {\n var state = _ref.state;\n Object.keys(state.elements).forEach(function (name) {\n var style = state.styles[name] || {};\n var attributes = state.attributes[name] || {};\n var element = state.elements[name]; // arrow is optional + virtual elements\n\n ... | [
"0.58643615",
"0.583038",
"0.58138394",
"0.5802415",
"0.58011794",
"0.5781741",
"0.5781741",
"0.5777088",
"0.5777088",
"0.5771598",
"0.5771598",
"0.5771598",
"0.5771598",
"0.5771598",
"0.5771598",
"0.57550955",
"0.57550955",
"0.5749658",
"0.5749658",
"0.5749658",
"0.5749658",... | 0.67083836 | 0 |
Merge style objects. Special casing for props starting with ';'; the values should be objects, and are merged with others of the same name (instead of overwriting). | function _mergeStyles(styles) {
var styleProp = {};
styles.forEach(style => {
if (!style || typeof style !== 'object') {
return;
}
var styleObj = style; // flow :(
Object.keys(styleObj).forEach(name => {
if (name.indexOf(':') === 0) {
st... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function mergeStyles() {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n var _a = extractStyleParts_1.extractStyleParts(args), classes = _a.classes, objects = _a.objects;\n if (objects.length) {\n classes.push(styleToClassName_1.styl... | [
"0.69068325",
"0.69068325",
"0.6900296",
"0.6844101",
"0.68107617",
"0.6770557",
"0.6770531",
"0.66975576",
"0.6616785",
"0.6616785",
"0.6616785",
"0.6616785",
"0.6609881",
"0.6575802",
"0.6575802",
"0.6575802",
"0.6575802",
"0.6575802",
"0.6575802",
"0.6575802",
"0.65608233"... | 0.7533992 | 0 |
Simple animation helper that injects CSS into a style object containing the keyframes, and returns a string with the generated animation name. | function animation(keyframes) {
var name = 'Animation' + animationIndex;
animationIndex += 1;
var rule = '@' + keyframesPrefixed + ' ' + name + ' {\n' +
Object.keys(keyframes).map((percentage) => {
var props = keyframes[percentage];
var serializedProps = CSSPropertyOperation... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function keyframes(styles) {\n return (new KeyframePiece(styles)).className;\n}",
"function Keyframes(name, css) {\n _classCallCheck(this, Keyframes);\n\n _defineProperty(this, \"animationName\", '');\n\n _defineProperty(this, \"rules\", '');\n\n _defineProperty(this, \"id\", '');\n\n ... | [
"0.69248253",
"0.6801947",
"0.662923",
"0.65527034",
"0.64786935",
"0.63178766",
"0.6278507",
"0.6278507",
"0.62357986",
"0.62242585",
"0.6154973",
"0.6119877",
"0.61188614",
"0.61188614",
"0.61188614",
"0.61107606",
"0.6096447",
"0.6096447",
"0.6077331",
"0.6077331",
"0.6077... | 0.763405 | 0 |
remove inline style to make css effective again | function removeInlineStyles(_elem) {
_elem.css({
opacity : "",
transform: ""
});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function resetInlineStyles() {\n\n var targetPosition = $target[0].style.position;\n $wrapper.attr('style', '');\n $target.attr('style', '');\n $base.attr('style', '');\n $container.attr('style', '');\n $target[0].style.position = targetPosition;\n\n }",
"clearCss() {\n this.$el.removeAttri... | [
"0.7647764",
"0.7337066",
"0.73007214",
"0.72981536",
"0.71839386",
"0.714115",
"0.6948955",
"0.6922336",
"0.6764296",
"0.66058165",
"0.6603217",
"0.6592511",
"0.6570581",
"0.65298676",
"0.65072715",
"0.64043313",
"0.64043313",
"0.63986534",
"0.6379818",
"0.6348494",
"0.63329... | 0.78247535 | 0 |
Sets all bricks in brickGrid to 1 HP | function brickReset(){
bricksLeft = 0;
for (var i = 3 * BRICK_COLS; i < BRICK_COLS * BRICK_ROWS; i++) {
brickGrid[i] = 1;
bricksLeft++;
}
raiseDifficulty();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function initBricks() {\n // Initialises the bricks array\n bricks = new BrickList();\n\n // Same size as image which will be transposed on top\n brickw = 50;\n brickh = 15;\n\n // For loop goes through all bricks\n for (i=0; i < NUM_BRICK_COLLUMN; ++i) {\n for (j=0; j < NUM_BRICK_ROW; ... | [
"0.6342072",
"0.63179445",
"0.6302918",
"0.62195843",
"0.60619646",
"0.60244656",
"0.5920844",
"0.58726317",
"0.58604443",
"0.58330363",
"0.5803952",
"0.5762628",
"0.5736228",
"0.5729347",
"0.5711364",
"0.56722236",
"0.5653885",
"0.56519264",
"0.56504476",
"0.5640729",
"0.562... | 0.6338926 | 1 |
Calls moveAll and drawAll every 1000 / 30 milliseconds | function updateAll(){
moveAll();
drawAll();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function clock() {\n\t\tctx.clearRect(0, 0, width, height);\n\t\tconsole.log(\"re-draw\");\n\t\tfor(var i = 0; i < squares.length; i++) {\n\t\t\tsquares[i].move();\n\t\t}\n\t}",
"loop(self){\n self.update();\n self.draw();\n }",
"function tick(){\n // Save the current time\n g_seconds = perf... | [
"0.7606945",
"0.72093934",
"0.7061531",
"0.69977933",
"0.6995712",
"0.6990559",
"0.6955192",
"0.69523203",
"0.6878221",
"0.68752927",
"0.68533844",
"0.68149596",
"0.6800398",
"0.67912334",
"0.6783444",
"0.67515236",
"0.6730387",
"0.6684083",
"0.66789687",
"0.66578835",
"0.665... | 0.7532876 | 1 |
Builds the 2 dialogs 1. For editing any span on the page. 2. For providing URL to any image on the page. 1 more dialog to show alerts. | function buildDialogs() {
// Span dialogs
$("#comment_dialog").dialog({
modal : true,
autoOpen : false,
/*
* show:'slide', hide:'slide',
*/
buttons : {
"Add" : function() {
isPopupCancelled = false;
$(this).dialog("close");
},
Cancel : function() {
isPopupCancelled =... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function editButtonsAndDialogs() {\n $(\".edit_btn\").each(\n function() {\n //get assignment id of this edit button\n assignmentId = $(this).data('assignment-id'); \n //get associated edit dialog\n var dlg = $(\".edit_dialog[data-assignment-id=\" + assignmentId + \"]\");\n \n //... | [
"0.6481303",
"0.64465827",
"0.6378032",
"0.6241784",
"0.61293143",
"0.607231",
"0.60713494",
"0.6068694",
"0.60000443",
"0.5986809",
"0.5981674",
"0.5969019",
"0.5964917",
"0.59203136",
"0.59164345",
"0.590646",
"0.58941",
"0.58864033",
"0.5877956",
"0.58678836",
"0.5854773",... | 0.7129257 | 0 |
Called to post the image to facebook. | function postToFacebook() {
var url = 'https://graph.facebook.com/me/photos?access_token=';
//var host = "https://fakewallapp.appspot.com";
$.ajax({
type : "POST",
url : myDomain + "saveimage",
data : {
image : $('canvas')[0].toDataURL()
},
success : function(data) {
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function postToFB(img_url){\n console.log(\"posting to fb!\"); \n // fbLogin(function(){\n console.log(\"Logged into facebook!\");\n // login\n FB.api('/me/photos?access_token='+access_token, 'post', { \n \t//FB.api('/'+user_id+'/feed?access_token='+access_token, 'post', { \n\turl: img_url, \n... | [
"0.7890295",
"0.6913469",
"0.68753856",
"0.6577642",
"0.64477545",
"0.64346725",
"0.6393516",
"0.6383397",
"0.62897277",
"0.61928",
"0.61663985",
"0.61496055",
"0.6011234",
"0.60064495",
"0.59291077",
"0.5893482",
"0.5848519",
"0.5841204",
"0.57850295",
"0.57837003",
"0.57820... | 0.7516535 | 1 |
This function validates the graph by making sure that each connected node is of a different type. If invalid, throws error. After all checks have been successful, the function returns an object that contains an array of intent nodes and an array of context nodes. | function validate(graph) {
const { nodes, edges } = graph;
validNodesAndEdges(nodes, edges);
hasNoDanglingNodes(nodes, edges);
validTopContextNode(nodes, edges);
validNodeTypes(nodes);
noDuplicateNames(nodes);
const intentNodes = [];
const contextNodes = [];
nodes.forEach((node) => {
const { type... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async function assertToContext(graph) {\n console.group('assertion');\n // get the rules from rules context\n let rules = await context.find('Rules', 'concept'),\n rulesContext = await new Context(Gun.node.soul(rules));\n\n let concepts = await rulesContext.concepts;\n concepts = concepts.data;\n if(con... | [
"0.5451013",
"0.50059235",
"0.49087778",
"0.4753062",
"0.4694223",
"0.46727905",
"0.45909467",
"0.45821995",
"0.4563477",
"0.45589674",
"0.45580482",
"0.4550654",
"0.45292723",
"0.44982064",
"0.44877112",
"0.44636872",
"0.44239205",
"0.44143036",
"0.44114393",
"0.44114393",
"... | 0.7549679 | 0 |
Return the front vector of the camera; | getFrontVector(){
return vec3(
this.position[0] + this.direction[0],
this.position[1] + this.direction[1],
this.position[2] + this.direction[2]
);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function getForearmVector(forearm){ //forearm is an Object3D\n\n\t//return vector pointing away for now\n\treturn new THREE.Vector3(0,1,-1);\n}",
"function GetMouseFaceVector() : Vector3\n{\n\tvar testPosition : Vector3 = Camera.main.ScreenToWorldPoint(Vector3(GetTouch().x,GetTouch().y,50));\n\tvar camPosition:V... | [
"0.6848833",
"0.67156976",
"0.64173096",
"0.64082485",
"0.63923347",
"0.6190075",
"0.61121595",
"0.60748214",
"0.60153073",
"0.60100377",
"0.5978523",
"0.5943781",
"0.5935699",
"0.5912064",
"0.5910554",
"0.59023607",
"0.5894478",
"0.58050865",
"0.5786837",
"0.5786837",
"0.578... | 0.78415394 | 0 |
loadTemplates : this function loads the template list when view is initialized | function loadTemplates () {
$http.get('/getCreatedTemplates').then(function (response) {
$scope.templateList = response.data.templates;
});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function loadTemplates(){\n\n}",
"function initLoad(){\n\t\tconsole.log('loading all templates');\n\t\t\n\t\t/*\n\t\t So I wanted to have the external templates specified in <script> tags\n\t\t <script id=\"flashcard_template\" type=\"text/template\" src=\"templates/flashcards.html\"></script>\n\t\t but there w... | [
"0.80761594",
"0.7553601",
"0.7402414",
"0.73684895",
"0.73596686",
"0.7314844",
"0.7157933",
"0.7140571",
"0.7140571",
"0.6931087",
"0.68683225",
"0.6834146",
"0.6808353",
"0.67789197",
"0.6743525",
"0.67054224",
"0.66537094",
"0.6608596",
"0.6590959",
"0.6523072",
"0.635203... | 0.81958455 | 0 |
changeVariables : Updates variables in template when they are changed on the form. This should be done automatically by angular data binding, but as variables are added after dom is compiled by angular, and no way of recompiling dom has been found, data binding on variables needs to be manually implemented with js thro... | function changeVariables () {
// Get name and value of variable that has been modified on dropdown menu
var NameVariable = this.variable[0];
var ValueVariable = this.variable[1];
// Get all labels on #actualTemplate content (variables are stored on templates inside label ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function updateVariables() {\n var isFormValid = true;\n var variables = lodash.map(ctrl.variables, function (variable) {\n if (!variable.ui.isFormValid) {\n isFormValid = false;\n }\n\n return lodash.omit(variable, 'ui');\n ... | [
"0.66958934",
"0.6297614",
"0.62482107",
"0.6099806",
"0.5799898",
"0.5796905",
"0.5749327",
"0.56670827",
"0.5491835",
"0.5465012",
"0.53957397",
"0.53957397",
"0.53926605",
"0.5384862",
"0.53575546",
"0.53312016",
"0.5329211",
"0.5329211",
"0.5329211",
"0.5329211",
"0.53292... | 0.83473676 | 0 |
mutate compilation options using mcmc for partial obfuscation | function mutation_mcmc_po(origin, minified, source_map, predicted, mutator, N) {
var output = [];
var origin_code = fs.readFileSync(origin, 'utf-8');
var origin_varTab = extract_variables(origin_code);
var minified_code = fs.readFileSync(minified, 'utf-8');
var map_varTab = extract_mapping(minified_code, source_... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"apply(compiler) {\n const pluginName = this.constructor.name;\n compiler.hooks.compilation.tap(pluginName, (compilation) => {\n compilation.hooks.processAssets.tap({\n name: 'WebpackEncrytpNodejsModule',\n stage: webpack.Compilation.PROCESS_ASSETS_STAGE_DERIVED\n }, (assets) => {\n ... | [
"0.5586194",
"0.55126464",
"0.547236",
"0.54398966",
"0.54398966",
"0.5425451",
"0.5391079",
"0.53241867",
"0.53048193",
"0.52092963",
"0.51409155",
"0.5135663",
"0.51027817",
"0.50909853",
"0.508749",
"0.4987674",
"0.4985311",
"0.49828404",
"0.49828404",
"0.49828404",
"0.496... | 0.5565853 | 1 |
Convierte un array o un array de arrays en un xml ................................................. DrArrayAXml | function DrArrayAXml (arr,ID) {
var r="<ROWSET"+(ID!=null?" NOMBRE=\""+ID+"\" ":"")+">",i,j;
for (i=0;i<arr.length;i++) {
r+="<ROW ID=\""+i+"\">";
for (j=0;j<arr[i].length;j++) {
r+="<CAMPO NOMBRE=\""+j+"\" TIPO=\"STRING\">"+DrdEscXML(arr[i][j])+"</CAMPO>"
}
r+="</ROW>";
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function ElementArray () {}",
"function wddxDeserializer_deserializeIE5_array(elem) {\r\n\r\n // Local variables\r\n var i;\r\n var ar=new Array;\r\n \r\n // For each child element in array, deserialize it\r\n for (i=0; i < elem.childNodes.length; i++)\r\n ar[i]=this.deserializeAnyElement( elem.childNod... | [
"0.64039236",
"0.6147706",
"0.594016",
"0.5934155",
"0.591367",
"0.5910442",
"0.5848867",
"0.57935804",
"0.57935804",
"0.57803714",
"0.5707657",
"0.569849",
"0.56943506",
"0.5676151",
"0.5619864",
"0.5562968",
"0.55356634",
"0.5533045",
"0.55067503",
"0.5488548",
"0.5471242",... | 0.6941044 | 0 |
Ordena por burbuja ................................................. DrOrdenaDoble (aux) | function DrOrdenaDoble(arr,valor) {
//Array, true/false según queramos de mayor a menor o viceversa
if (valor==null)
valor=true;
//Ordeno por burbuja
//Mejora: implementar quickshort
if (arr.length<2)
return arr;
var i,j,im1,im2;
if (valor)
for (i=arr.length-1;i>0;i--) {
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function controlaDerrota(){\r\n\t\t\t\t\t\t\tif(escudosDestruidos==true||oxigenoAgotado==true){\r\n\t\t\t\t\t\t\t\tDerrota=true;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}",
"function Przedmiot(adres)\n{\n this.adres = adres;\n\n var odpowiedniaNalepka;\n for (let element of document.querySelectorAll(\"table.decorat... | [
"0.64875025",
"0.6298138",
"0.61066246",
"0.603199",
"0.60189426",
"0.600833",
"0.58669364",
"0.58243144",
"0.57984537",
"0.5795597",
"0.5780032",
"0.57734066",
"0.57669914",
"0.5739435",
"0.5737605",
"0.5726706",
"0.57265043",
"0.57224834",
"0.57181275",
"0.5710111",
"0.5704... | 0.64405817 | 1 |
Escapar en JS ................................................. DrEscJS (aux) | function DrEscJS (cad) {
if (cad!=null)
return cad.replace(/\\/gi,"\\\\").replace(/"/gi,"\\\"");
return "";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function esc_js( $text ) {\n $safe_text = wp_check_invalid_utf8( $text );\n $safe_text = _wp_specialchars( $safe_text, ENT_COMPAT );\n $safe_text = preg_replace( '/&#(x)?0*(?(1)27|39);?/i', \"'\", stripslashes( $safe_text ) );\n $safe_text = str_replace( \"\\r\", '', $safe_text );\n... | [
"0.638434",
"0.63387",
"0.62264",
"0.6038468",
"0.6038468",
"0.6038468",
"0.60196435",
"0.5990332",
"0.5990332",
"0.5990332",
"0.5990332",
"0.5966817",
"0.5847356",
"0.57970077",
"0.5747711",
"0.57108617",
"0.5692415",
"0.5682927",
"0.5667327",
"0.56579214",
"0.564455",
"0.... | 0.75204235 | 0 |
Buscar un dato en una columna de un array bidimensional ................................................. DrExisteEnArray (aux) | function DrExisteEnArray(array,dato,columna) {
var i;
for (i=0;i<array.length;i++) {
if (columna==null) {
if (array[i]==dato)
return true;
}
else {
if (array[i][columna]==dato)
return true;
}
}
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function DrIndiceEnArray(array,dato,columna) {\n var i;\n for (i=0;i<array.length;i++) {\n if (columna==null) {\n if (array[i]==dato)\n return i;\n }\n else {\n if (array[i][columna]==dato)\n return i;\n }\n }\n return -1;\n }",
"... | [
"0.6212905",
"0.57370925",
"0.57269514",
"0.5704292",
"0.5594284",
"0.557585",
"0.5508047",
"0.549498",
"0.54518074",
"0.54400593",
"0.538994",
"0.52871037",
"0.5221557",
"0.5193748",
"0.5184191",
"0.51837057",
"0.5159775",
"0.5123334",
"0.5122945",
"0.51216584",
"0.510823",
... | 0.69440144 | 0 |
Buscar un dato en una columna de un array bidimensional, retorna indice ................................................. DrIndiceEnArray (aux) | function DrIndiceEnArray(array,dato,columna) {
var i;
for (i=0;i<array.length;i++) {
if (columna==null) {
if (array[i]==dato)
return i;
}
else {
if (array[i][columna]==dato)
return i;
}
}
return -1;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function col2Array(dat){\nreturn values(dat).map((v) => {return v['$0']['$1'];});\n}",
"function rowColToArrayIndex(col, row) {\n \t\treturn col + TILE_COLS * row;\n \t}",
"function col2Array(dat) {\n // values function didn't exist so replaced map solution with loop solution\n //return values(dat).map... | [
"0.59924906",
"0.5980423",
"0.56868374",
"0.56615657",
"0.5646317",
"0.55822855",
"0.55231",
"0.55219716",
"0.5519368",
"0.5477809",
"0.5450563",
"0.5400197",
"0.5396118",
"0.53874207",
"0.5352406",
"0.5324267",
"0.52887475",
"0.5254081",
"0.5235793",
"0.5214889",
"0.5211016"... | 0.7216447 | 0 |
Find if a polygon is clockwise or counterclockwise. Return TRUE if Clockwise (negative sum) & FALSE if Counterclockwise (+positive sum). Note that the area of a convex polygon is defined to be positive if the points are ... ... arranged in a counterclockwise order, and negative if they are in clockwise order! | function cs_gmaps_drawing_is_clockwise(vertices){
var sum = 0;
for(var i=0; i<vertices.length-1; i++){
var current = vertices[i],
next = vertices[i+1];
sum += (next.lat() - current.lat()) * (next.lng() + current.lng());
}
return sum < 0;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"get clockwise() {\n\n // Return true as the the signed area is greater than equal to zero\n if (this.signedArea() >= 0) return true;\n\n // Return false as the order is counter-clockwise\n return false;\n }",
"function isClockwise(outline)\n{\n var nodes = outline.nodes;\n if (nodes.length < 3... | [
"0.6939675",
"0.6706933",
"0.6546444",
"0.6168362",
"0.6107464",
"0.60684353",
"0.59887946",
"0.598277",
"0.59776145",
"0.5971656",
"0.5956755",
"0.594022",
"0.59270924",
"0.5926754",
"0.59208655",
"0.591395",
"0.5898087",
"0.5894605",
"0.5894605",
"0.58891255",
"0.5873504",
... | 0.73288935 | 0 |
Check Category Rating with similar values | function RatingCheck() {
leastVal;
ratedCategory;
var flag = true;
jQuery.each(feedback, function(i, val) {
if (val != undefined && val != '') {
var categoryVal = val;
if (categoryVal.indexOf(",") > -1) {
categoryVal = categoryVal.split(",");
categoryVal = cleanArray(categoryVal);
} else {
ca... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function isRating() {}",
"checkRating(movie) {\n if (Number(movie.vote_average) >= Number(this.props.minimumRating)) {\n return true;\n } else {\n return false;\n }\n }",
"function checkContestRatings(contestId) {\n const form = document.querySelector('#wp-photo-contest-form-'+contestId)... | [
"0.6297464",
"0.60259503",
"0.6008093",
"0.59271884",
"0.5912794",
"0.5834944",
"0.5834944",
"0.5834944",
"0.5834944",
"0.5825433",
"0.5769229",
"0.5712383",
"0.5655848",
"0.5640295",
"0.5525203",
"0.5472974",
"0.5455785",
"0.54557407",
"0.54460794",
"0.54460794",
"0.54273975... | 0.71679026 | 0 |
AJAX to change language for currently logged in user or before login that will then be saved to their record after login | function changeLanguageSelf(lang) {
$.ajax ({
type: "POST",
url: appRoot + 'users/setLanguageForSelf',
async: false,
dataType: 'json',
data: {"data[User][locale]" : lang , "data[AppController][AppController_id]" : acidValue}
}).done(function(){
window.location.rel... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"ChangeLanguage() {\n Cookies.set(_Value_.CULTURE, $(_Value_.Language + \" option:selected\").val());\n location.reload();\n /*\n var _language = $(_Value_.Language + \" option:selected\").val();\n window.CULTURE = _language;\n window.location.href = _Data_.SetQueryString(w... | [
"0.7002458",
"0.69921356",
"0.6960163",
"0.68094355",
"0.67211825",
"0.6709826",
"0.6709572",
"0.66964877",
"0.6672324",
"0.66586584",
"0.6622448",
"0.6614176",
"0.659837",
"0.65743667",
"0.65026546",
"0.6480368",
"0.6475363",
"0.642843",
"0.6413816",
"0.6410363",
"0.63916713... | 0.7346226 | 0 |
Show UW NetID login when "shift", "u" and "w" are typed at the same time Used for instances that have UWNETID_LOGIN as false. (if "true" it always is shown so this isn't need. | function typeForNetId() {
var map = {16: false, 85: false, 87: false};
$(document).keydown(function(e) {
if (e.keyCode in map) {
map[e.keyCode] = true;
if (map[16] && map[85] && map[87]) {
$("#uwLogin").fadeIn('slowUW');
}
}
}).keyup(functi... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function login(show) {\n\t\tdocument.getElementById(\"login\").style.display=\"inline\";\n\t\tdocument.getElementById(\"register\").style.display=\"none\";\n\t\tif(show == true){\n\t\t\tvar incorrect_login_element = document.getElementById(\"incorrect-login\");\n\t\t\tincorrect_login_element.classList.remove(\"hid... | [
"0.5693133",
"0.56720734",
"0.5655415",
"0.5614829",
"0.56028885",
"0.5581704",
"0.55686796",
"0.55397683",
"0.55122787",
"0.55096096",
"0.54897505",
"0.54897505",
"0.546732",
"0.5452416",
"0.5432844",
"0.5423868",
"0.5422914",
"0.5401716",
"0.5395738",
"0.53884894",
"0.53516... | 0.6088871 | 0 |
Adds a close button to popover title when created | function addPopoverClose() {
$(".popover-title").append('<button type="button" id="closePopover" class="close">×</button>');
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function TriggerPopOver(content, title) {\n\n $('.BCSPopOver').popover({\n container: 'body',\n placement: 'right',\n html: 'true',\n title: '<span class=\"text-info\"><strong>' + title + '</strong></span> <button type=\"button\" id=\"close\" class=\"close\" onclick=\"ClosePopOver(&a... | [
"0.68371046",
"0.6579372",
"0.6206119",
"0.60997313",
"0.60252666",
"0.6018949",
"0.6009552",
"0.59435904",
"0.59401274",
"0.58675057",
"0.58527446",
"0.58037",
"0.57581717",
"0.5753278",
"0.5753278",
"0.5742753",
"0.5727416",
"0.5721355",
"0.567346",
"0.5661363",
"0.5583612"... | 0.865798 | 0 |
Initializes a new instance of `FixedSizeSet`. | function FixedSizeSet(limit) {
if (limit === void 0) { limit = 1000; }
this._items = new Set();
this._limit = limit;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function MySet() {\n this.set = {};\n this.size = 0;\n }",
"function Set(size)\n{\t\n\tthis.map = new Map(size);\n}",
"function IntegerBufferSet() {\n this.$IntegerBufferSet_valueToPositionMap = {};\n this.$IntegerBufferSet_size = 0;\n this.$IntegerBufferSet_smallValues = new Heap(\n ... | [
"0.62977976",
"0.6028485",
"0.58888596",
"0.5843366",
"0.57312113",
"0.5704593",
"0.5665482",
"0.5665482",
"0.5665482",
"0.5665482",
"0.5665482",
"0.5665482",
"0.5665482",
"0.5643376",
"0.5640993",
"0.5640993",
"0.5640993",
"0.5640993",
"0.5640993",
"0.5640993",
"0.5640993",
... | 0.7053671 | 0 |
sawed is called by a mouseover listener placed on all markers if the weapon is available and listener fires, the marker is removed | function sawed(marker){
if(chainsawSelected){
marker.setIcon(corpseIcon);
setTimeout(function(){
map.removeLayer(marker);
}, 1000)
scoreboard.innerHTML++;
var index = markerList.indexOf(marker);
if(index > -1){
markerList.splice(index, 1);
}
setTimeout(functi... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function mouseReleased() {\n mUser = false;\n let removing = false;\n for (let l = locs.length - 1; l >= 0; l--) {\n let loc = locs[l];\n\n // Remove them\n if (loc.hover() && !loc.moosing) {\n loc.stop();\n locs.splice(l, 1);\n removing = true;\n }\n\n // Turn off moosing\n loc... | [
"0.5964451",
"0.58087695",
"0.5801324",
"0.5753259",
"0.5751544",
"0.57284266",
"0.5694259",
"0.56915516",
"0.5663245",
"0.5613679",
"0.56051993",
"0.55797195",
"0.5549717",
"0.55493295",
"0.5535478",
"0.5515085",
"0.5488128",
"0.54866636",
"0.5479913",
"0.5469574",
"0.545749... | 0.6945235 | 0 |
save the settings object back to its file | function saveSettings() {
fs.writeFileSync(settings.settingsFile, JSON.stringify(settings, null, 4));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function save_settings(){\n var settings = {\n font : numeral_fonts[numeral_fonts_index].getName(),\n color_scheme : color_schemes[color_scheme_index].name,\n };\n var file = SETTING_PREFIX + \".settings.json\";\n console.log(file + \": saving:\" + JSON.stringify(settings));\n require(\"Storage\").write... | [
"0.76089025",
"0.7338172",
"0.7314941",
"0.6971683",
"0.6876948",
"0.68357956",
"0.6798564",
"0.6789439",
"0.6786802",
"0.67817855",
"0.67799777",
"0.67791563",
"0.676012",
"0.670699",
"0.66928786",
"0.6681942",
"0.66617745",
"0.6618505",
"0.6593972",
"0.6588506",
"0.6564754"... | 0.8142825 | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.