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 |
|---|---|---|---|---|---|---|
Change the current visualization method. If not a sequence doesn't have the current visualization method stored, it will be computed. | changeMethod({ commit, state, dispatch }, { method }) {
commit("setCurrentMethod", { method })
for (const description in state.sequences) {
// check whether we need to transform the sequence
if (
!Object.prototype.hasOwnProperty.call(
state.sequences[description].visualization,
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"activate_render_method(method) {\n this.render_method = method;\n\n // Rerender all the existing labels now that MathJax is available.\n for (const cell of this.quiver.all_cells()) {\n cell.render_label(this);\n }\n }",
"insertTransformedSequence(state, { description, me... | [
"0.604363",
"0.6020519",
"0.5651099",
"0.562479",
"0.5601524",
"0.55948013",
"0.55948013",
"0.55948013",
"0.55780137",
"0.5514251",
"0.5299056",
"0.5151094",
"0.5075902",
"0.5024073",
"0.49970034",
"0.49853754",
"0.49817857",
"0.49414864",
"0.48578605",
"0.48552704",
"0.48472... | 0.71788245 | 0 |
get stock price by stock's symbol froms server | function getPriceBySymbol(stockSymbol) {
var deferred = $q.defer();
if (stockSymbol) {
$http.get('YahooRealtimeData', { responseType: 'json', params: { symbol: stockSymbol } }).then(
function(res) {
angular.merge($scope.oneStock, res.d... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"stockPrice(stockSymbol) {\n return this.request(`/stock/${stockSymbol}/price`);\n }",
"function api_get_price(stock, dry){\n stock = stock.toUpperCase();\n if (!SYMBOLS.includes(stock)){\n if (!dry) alert('Please pick a valid stock symbol');\n return new Promise((resolve, reject) =>... | [
"0.7938974",
"0.7371781",
"0.73442996",
"0.72045153",
"0.70906764",
"0.7039669",
"0.69975847",
"0.69561255",
"0.6951591",
"0.6924118",
"0.68183815",
"0.67869014",
"0.6770378",
"0.6761317",
"0.6746348",
"0.66935384",
"0.6660362",
"0.6658064",
"0.66230947",
"0.657673",
"0.65598... | 0.7372453 | 1 |
get stock info by stock's symbol from server | function getInfoBySymbol(stockSymbol) {
var deferred = $q.defer();
if (stockSymbol) {
$http.get('getOneInfo', { responseType: 'json', params: { symbol: stockSymbol } }).then(
function(res) {
angular.merge($scope.oneStock, res.data);
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"stockKeyStats(stockSymbol) {\n return this.request(`/stock/${stockSymbol}/stats`);\n }",
"function getStocks(stock) {\n\tconst apiURL = 'https://api.iextrading.com/1.0/stock/';\n\tconst params = '/batch?types=quote,news,chart&range=1m&last=1';\n\tconst queryURL = apiURL + stock + params;\n\t// return A... | [
"0.73445046",
"0.722609",
"0.71717495",
"0.7139015",
"0.71159554",
"0.7095419",
"0.70896065",
"0.70465213",
"0.703366",
"0.69910276",
"0.6848503",
"0.68172693",
"0.6775706",
"0.6769279",
"0.67157006",
"0.6709183",
"0.667822",
"0.66687965",
"0.66590977",
"0.6594469",
"0.654731... | 0.76254576 | 0 |
add new stock in stock table page | function addStock(stockSymbol) {
if (!(objectWithPropExists($scope.stockArr, 'symbol', stockSymbol))) {
$scope.alert = false;
addStockDB(stockSymbol).then(function() {
getInfoBySymbol(stockSymbol).then(function() {
getPriceBySymb... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function add_stock(){\n\t\t\n\t\tvar p_type = $('#product_type').val();\n\t\tvar p_name = $('#product_name').val();\n\t\tvar entry_date = $('#entry_date').val();\n\t\tvar quantity = $('#stock_qut').val();\n\t\t//alert(p_type)\n\t\t$.post(\"stock_details/add_stock.php\", { p_type: p_type, p_name: p_name, entry_date... | [
"0.6975193",
"0.64622974",
"0.64362586",
"0.6404882",
"0.6374205",
"0.6371975",
"0.62994444",
"0.6287272",
"0.6281651",
"0.6276586",
"0.62143147",
"0.6127762",
"0.611402",
"0.6107526",
"0.61041605",
"0.60965437",
"0.60729605",
"0.60667044",
"0.6012923",
"0.60088086",
"0.60061... | 0.65909886 | 1 |
delete one stock form db | function deleteStock(stockSymbol) {
removeByKey($scope.stockArr, {
key: 'symbol',
value: stockSymbol
});
$http.get('delOneStock', { params: { symbol: stockSymbol } }).then(
function(res) {
console.log("delete stock f... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function deleteStock() {\n\n console.log($(\".actparent .id\").html());\n prodnam = $(\".product_name.act\").html();\n $(\"#product-list\").css(\"opacity\", \"0\");\n data = \"id=\" + String($(\".actparent .id\").html()) + \"^del=Stock^class=Stock\";\n dbOperations(\"del\", \"delete_operation\", dat... | [
"0.7276553",
"0.7177791",
"0.707186",
"0.7025876",
"0.70060885",
"0.6971107",
"0.6894977",
"0.67827547",
"0.6738121",
"0.65817577",
"0.65228957",
"0.64997214",
"0.6488068",
"0.6485455",
"0.64424056",
"0.6423171",
"0.6385535",
"0.6354806",
"0.63544416",
"0.6334145",
"0.6304096... | 0.7711087 | 0 |
this callback is always called here as req.version is provided as 3.0.0 | function respondV3(req, res, next) {
res.status(200).send('ok v3');
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function detectApiVersionMiddleware(req, res, next) {\n const version = parseInt(req.headers[\"n-api-version\"], 10) || parseInt(req.params.apiVersion, 10) || 0;\n req.apiVersion = res.apiVersion = version;\n\n next();\n}",
"function getVersion(req, res, next) {\n var npmVersion = getNpmVersion(),\n gitRe... | [
"0.66188824",
"0.60533303",
"0.59928805",
"0.57976353",
"0.57602024",
"0.5737138",
"0.56556636",
"0.55960834",
"0.5585821",
"0.5537914",
"0.55301493",
"0.55059123",
"0.5492179",
"0.5455443",
"0.5372542",
"0.5355368",
"0.5348804",
"0.53440714",
"0.53202045",
"0.5287459",
"0.52... | 0.61258185 | 1 |
eslintenable maxlinesperfunction If we cannot test in Chrome/Chromium directly, we can try to compare output to `exampleextension.crx` which was tested. | async function shouldItWorkInChrome (t, cfg, example) {
const {
crxPath,
keyPath
} = cfg;
// Example ZIP was tested by now, so it should be ok to reuse it.
const zip = fs.createReadStream(example.zip);
// Recreate CRX from example ZIP, because ZIP can differ by a few bytes from system to system (possibly uid ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async function compareOutput(x) {\n const filesToTest = [];\n const testFolder = 'tests/ui-tests';\n fs.readdirSync(testFolder).forEach(file => {\n const curPath = path.join(testFolder, file);\n if (fs.lstatSync(curPath).isDirectory() || !curPath.endsWith('.goml')) {\n return;\n ... | [
"0.5482742",
"0.53122085",
"0.52945703",
"0.5278443",
"0.5252167",
"0.52093065",
"0.5185353",
"0.5112679",
"0.5104901",
"0.5049792",
"0.5017068",
"0.5003513",
"0.49878654",
"0.49810013",
"0.49712014",
"0.49290252",
"0.4927702",
"0.49188128",
"0.49112284",
"0.49046898",
"0.487... | 0.6339128 | 0 |
create an array of date components with all entried with less significance than p (precision) zeroed out. an optional offset can be added to p | precArray(d, p, offset) {
var tn = this.makeArray(d);
tn[p] += offset || 0;
for (var i = p + 1; i < 7; i++) {
tn[i] = i < 3 ? 1 : 0;
}
return tn;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function createNullPoints (data) {\n var i = 0;\n while (i < data.length - 1) {\n //86400000 is the number of milliseconds in a day\n if (data[i + 1].x - data[i].x > 86400000) {\n var numNullPoints = (data[i + 1].x - data[i].x) / 86400000;\n var firstPart = data.splice(0, i + 1);\n ... | [
"0.53382903",
"0.5302193",
"0.5087646",
"0.50754684",
"0.49977654",
"0.49552473",
"0.4892225",
"0.48475125",
"0.47815627",
"0.47815627",
"0.47815627",
"0.47815627",
"0.47815627",
"0.47815627",
"0.47815627",
"0.47815627",
"0.47815627",
"0.47815627",
"0.47815627",
"0.47815627",
... | 0.6581045 | 0 |
returns an array of rays where result[n].height === game field row | function ray(origin) {
var stepX = step(sin, cos, origin.x, origin.y);
var stepY = step(cos, sin, origin.y, origin.x, true);
//nextStep.height = game field row
var nextStep = stepX.length2 < stepY.length2
? inspect(stepX, 1, 0, origin.distance, stepX.y)
: inspect(stepY, 0, 1, origin.distanc... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function checkForHorizontalMatches(grid, height, width){\n xMatchList = [];\n for (var a = 0; a < grid.length; a++){\n for (var b = 0; b < grid[a].length; b++){\n if (grid[a][b-1]){\n if (grid[a][b].stoneColor != grid[a][b-1].stoneColor){\n ... | [
"0.5658887",
"0.5410027",
"0.5364983",
"0.5321555",
"0.53143716",
"0.5209405",
"0.52076465",
"0.51773435",
"0.517521",
"0.51546544",
"0.5141201",
"0.5139767",
"0.5134479",
"0.51310366",
"0.5127595",
"0.50947106",
"0.5073796",
"0.5055398",
"0.5053789",
"0.5050228",
"0.5050228"... | 0.6070555 | 0 |
========================================= USER REQUESTS JOPURNEY REVIEWS =========== =========================================== | function getUserRequestJourneysReviews (tipo,id){
/*
tipp = tipo de pedido -> request ou journey ou reviews
id = o id do utilizador
*/
if (tipo == 'Request')
url_add = url+'rquest=getUser'+tipo+'s&userid='+id
else if (tipo =='Journey')
url_add = url+'rquest=getUser'+tipo+'s&userid='+id
else
url_add = url+'... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"* reviews (request, response) { \n const role = request.currentUser.role\n const reviews = yield Database\n .select('reviews.id as id', 'rating', 'title', 'review', 'display_name')\n .from('reviews')\n .join('users', 'reviews.user_id', 'users.id')\n\n yield res... | [
"0.63450414",
"0.6048613",
"0.60178256",
"0.5722398",
"0.57087004",
"0.5691572",
"0.5662827",
"0.5622132",
"0.5598155",
"0.5559064",
"0.5550821",
"0.5544143",
"0.5536836",
"0.5535549",
"0.55247074",
"0.55047846",
"0.5491473",
"0.54876536",
"0.54735285",
"0.542958",
"0.5413555... | 0.6264556 | 1 |
var $dialog = $('' + '' + '' + 'Loading' + ''); | function dialogContent(msg) {
$dialog = $('<div id="ibsLoading" style="display:block" class="loadmodal">' +
'<div class="modalInner">' +
'<div id="loadingMessage" class="cssload-loader">' +
'<p><img src="/content/assets/images/loading.gif"></img>' + msg + '</p></div>' +
'</div></... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function getLoadingContent() {\n\tjQuery('#dialog').dialog('option', 'buttons', {} );\n\tvar h = '<div style=\"margin-top: 50px; text-align: center\">';\n\th += '<img width=\"64\" height=\"64\" src=\"/tracer/deployment/main/images/loading2.gif\" /><br />';\n\th += '<h5>Loading...</h5>';\n\th += '</div>';\n\treturn... | [
"0.718577",
"0.66214037",
"0.6612196",
"0.6612196",
"0.65334743",
"0.6531047",
"0.6499266",
"0.64920545",
"0.6335855",
"0.6290415",
"0.6284465",
"0.612639",
"0.6100454",
"0.60898334",
"0.605412",
"0.59892666",
"0.5950933",
"0.5929581",
"0.5928913",
"0.592686",
"0.58934414",
... | 0.6731313 | 1 |
Checks if the key is an actual letter | function isLetter(key) {
let result = false;
let invalidKeys = ["Enter", "Meta", "Control", "Alt", "CapsLock", "Shift",
"ArrowLeft", "ArrowRight", "ArrowDown", "ArrowUp"];
let alphabet = /^[a-zA-Z]+$/i;
// Check if key matches alphabet
result = alphabet.test(key);
// Check for invalid keys
for (var i = 0;... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function isLetter(key) {\n if (key.toLowerCase() != key.toUpperCase() && key.length === 1) {\n return true;\n } else {\n return false;\n }\n}",
"function isLetter(keyInput) {\r\n\r\n // Define default result state to avoid mix-matched data\r\n let result = false;\r\n \r\n // Verify character... | [
"0.82887733",
"0.76970947",
"0.74513054",
"0.73405606",
"0.7304898",
"0.7248707",
"0.72409195",
"0.7220847",
"0.71728903",
"0.7158996",
"0.7158996",
"0.70628303",
"0.7046944",
"0.70458597",
"0.70165855",
"0.6997461",
"0.6964634",
"0.69536984",
"0.693087",
"0.69288045",
"0.691... | 0.78908026 | 1 |
Editor Shortcodes V2 extensions integrates well with wpeditor option type. The wpeditor itself is responsible for having an attr named datafwshortcodeslist. This attr should contain valid JSON and it should contain a list of shortcodes we should render. | function shortcodesListFor (editor) {
var $wpEditor = jQuery(editor.targetElm).closest(
'.fw-option-type-wp-editor'
);
var isWpEditor = $wpEditor.length > 0;
if (isWpEditor) {
if ($wpEditor.attr('data-fw-shortcodes-list')) {
return JSON.parse($wpEditor.attr('data-fw-shortcodes-list'));
}
retu... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function wpb_shortcodesToVisualEditor() {\n var content = wpb_getContentFromTinyMCE();\n jQuery('.wpb_main_sortable').html('');\n new jQuery.wpbShortcode().fromEditor(content, jQuery.wpb_stage);\n return;\n var load_img = '<img src=\"' + jQuery('img.ajax-loading').attr('src') + '\" />';\n jQuery(... | [
"0.5567073",
"0.55410933",
"0.55302304",
"0.5275576",
"0.5100504",
"0.504888",
"0.50368667",
"0.5020425",
"0.5020346",
"0.49593166",
"0.49297285",
"0.49006397",
"0.48983565",
"0.48965353",
"0.48893356",
"0.4876333",
"0.4851293",
"0.48435804",
"0.4774489",
"0.4710517",
"0.4695... | 0.72602683 | 0 |
Tentukan Fitness Function console.log(fitness([3, 3])) | function fitness(x) {
return 1 / (evaluation(x) + 8)
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function calculate_population_fitness(population) {\n fitnesses = []\n population.map((item) => fitnesses.push(fitness(item)))\n return fitnesses\n}",
"calcFitness()\n {\n for(let i=0; i< this.population.length; i++)\n {\n this.population[i].calculateFitness(this.target); ... | [
"0.732339",
"0.72993904",
"0.7282521",
"0.71694887",
"0.7102021",
"0.7045822",
"0.6879166",
"0.6874325",
"0.685598",
"0.6849009",
"0.68007207",
"0.67934895",
"0.6777451",
"0.6752723",
"0.674974",
"0.67161673",
"0.6699248",
"0.6690449",
"0.6686843",
"0.66219646",
"0.6615807",
... | 0.73427474 | 0 |
Kalkulasikan Populasi Fitness console.log(calculate_population_fitness(generate_population(5))) | function calculate_population_fitness(population) {
fitnesses = []
population.map((item) => fitnesses.push(fitness(item)))
return fitnesses
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"calcFitness() {\n for (let i = 0; i < this.population.length; i++) {\n this.population[i].calcFitness(this.target);\n }\n }",
"calcFitness()\n {\n for(let i=0; i< this.population.length; i++)\n {\n this.population[i].calculateFitness(this.target); \n }\n ... | [
"0.7892956",
"0.7882546",
"0.7616866",
"0.7439407",
"0.7374236",
"0.7245666",
"0.7213422",
"0.7080067",
"0.7019952",
"0.70120513",
"0.6955843",
"0.69429547",
"0.6867858",
"0.68540853",
"0.68469703",
"0.68137705",
"0.6793823",
"0.6789959",
"0.6786667",
"0.67820174",
"0.675165"... | 0.81424147 | 0 |
Mencari Parent (Roulette Wheel Selection) var population = generate_population(5) console.log(roulette_wheel( population, calculate_population_fitness(population) )) | function roulette_wheel(population, fitnesses) {
sum_fitness = fitnesses.reduce((total, current) => total + current, 0)
select_id = -1
random = (Math.random() * (sum_fitness)) + 0
fitnesses.some((item, i) => {
// console.log(random + " + " + item)
if (random <= 0) {
select_id = i;
return tr... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"rouletteWheel() \n {\n //To look at a car's progress, iterate through this.population[i] with each\n //of them being indviduals\n \n //totalProgress represents the accumulated progress that all of the progress had made \n var totalProgress = 0;\n //console.log(\"1: tota... | [
"0.81318563",
"0.74578625",
"0.61542493",
"0.6130798",
"0.6025838",
"0.5981788",
"0.5981564",
"0.5935094",
"0.5889416",
"0.5820322",
"0.5790683",
"0.5749155",
"0.5700703",
"0.5663756",
"0.5623757",
"0.56111974",
"0.5582268",
"0.5572794",
"0.55418",
"0.5510004",
"0.5507333",
... | 0.7653696 | 1 |
Sample Populasi population = generate_population(5) fitnesses = calculate_population_fitness(population) console.log(sample_population(population, fitnesses)) | function sample_population(population, fitnesses, selection_rate) {
num_of_selected_chromosome = parseInt(selection_rate * population.length)
mating_population = []
// console.log(num_of_selected_chromosome + " " + population.length)
for (var i = 0; i < num_of_selected_chromosome; i++)
mating_population.pu... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function calculate_population_fitness(population) {\n fitnesses = []\n population.map((item) => fitnesses.push(fitness(item)))\n return fitnesses\n}",
"function create_generation(population, fitnesses, mating_probability, mutation_probability) {\n mating_population = sample_population(population, fitnesses, ... | [
"0.7665348",
"0.73624676",
"0.7312096",
"0.70585275",
"0.69913876",
"0.6985478",
"0.6911497",
"0.6882992",
"0.68709606",
"0.67918885",
"0.6760242",
"0.6729633",
"0.67036986",
"0.6677549",
"0.65815586",
"0.6567564",
"0.65034395",
"0.6470219",
"0.64575607",
"0.64223826",
"0.640... | 0.7572815 | 1 |
Rekombinasi (Crossover) population = generate_population(5) fitnesses = calculate_population_fitness(population) mating_probability = 0.7 mating_population = sample_population(population, fitnesses) console.log(mating_population) console.log(crossover(mating_population)) | function crossover (mating_population) {
// console.log(mating_population.length - 1)
for (var i = 0; i < (mating_population.length - 1); i++) {
parent1 = mating_population[i]
parent2 = mating_population[i + 1]
crossover_bit = Math.random() * ((parent1.length - 1) - 1) + 1
temp = parent1[crossover_b... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"reproduce(matingPool) \n {\n //Set the new array for the new offspring\n let newPopulation = new Array(this.popSize);\n\n //Using the crossover function cross matingPool A and matingPool B\n for(let i = 0; i < this.popSize; i++) \n {\n let a = int(random(this.popSiz... | [
"0.7635839",
"0.718283",
"0.6979956",
"0.68484163",
"0.677946",
"0.66672516",
"0.6641569",
"0.65739065",
"0.65602016",
"0.6508691",
"0.64727026",
"0.64684844",
"0.6414976",
"0.63400096",
"0.63370144",
"0.6314671",
"0.63106596",
"0.62599427",
"0.62527335",
"0.6197079",
"0.6179... | 0.74289775 | 1 |
Mutasi population = generate_population(5) mutation_probability = 0.0001 console.log(mutate(population, mutation_probability)) | function mutate(population, mutation_probability) {
for (var i = 0; i < population.length; i++) {
random = Math.random()
if (random < mutation_probability) {
cur_chromosome = population[i]
random = Math.round(Math.random() * (cur_chromosome - 1)) + 0
random_gen = cur_chromosome[Math.round(Ma... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"mutate(newPopulation) \n {\n for(let i = 0; i < this.popSize; i++) \n {\n for (let j = 0; j < this.indSize; j++) \n {\n if (random() < this.mutationRate) \n {\n newPopulation[i].gens[j] = int(random(2));\n }\n ... | [
"0.7421125",
"0.7327232",
"0.7063369",
"0.66364264",
"0.65853816",
"0.65740186",
"0.657385",
"0.6500494",
"0.6489942",
"0.64461607",
"0.63726234",
"0.63686687",
"0.6297427",
"0.62895006",
"0.6268689",
"0.62478673",
"0.62271017",
"0.6108438",
"0.6092123",
"0.6032305",
"0.60297... | 0.8104808 | 0 |
Populasi Penimpah population = generate_population(5) fitnesses = calculate_population_fitness(population) preserve_rate = 0.3 console.log(preserve_top(population, fitnesses, preserve_rate)) | function preserve_top(population, fitnesses
, preserve_rate) {
newPopulation = []
for (var i = 0; i < population.length; i++) {
newPopulation.push({
chromosome: population[i],
fitness: fitnesses[i]
})
}
newPopulation.sort((a, b) => (a.fitness < b.fitness) ? 1 : (a.fitness == b.fitness) ? 0 ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function create_generation(population, fitnesses, mating_probability, mutation_probability) {\n mating_population = sample_population(population, fitnesses, mating_probability)\n parents = crossover(mating_population)\n preserved_population = preserve_top(population, fitnesses, (1 - mating_probability).toFixed(... | [
"0.6981173",
"0.667573",
"0.6644875",
"0.65646356",
"0.6558942",
"0.6530528",
"0.63980734",
"0.63786405",
"0.62575173",
"0.62368786",
"0.6204366",
"0.61805695",
"0.6170076",
"0.60952526",
"0.6061023",
"0.60600835",
"0.6046945",
"0.604555",
"0.6031141",
"0.6027645",
"0.6023695... | 0.7789211 | 0 |
Buat generasi population = generate_population(5) fitness_values = calculate_population_fitness(population) mating_probability = 0.7 mutation_probability = 0.001 console.log(create_generation(population, fitness_values, mating_probability, mutation_probability)) | function create_generation(population, fitnesses, mating_probability, mutation_probability) {
mating_population = sample_population(population, fitnesses, mating_probability)
parents = crossover(mating_population)
preserved_population = preserve_top(population, fitnesses, (1 - mating_probability).toFixed(1))
//... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"generateNewPop() {\n this.generationNumber++;\n var newPopulation = [];\n\n for (var i = 0; i < this.populationSize; i++) {\n let newChild = this.giveBirth();\n newPopulation.push(newChild);\n }\n\n this.population = newPopulation;\n this.sumFitness();\n this.sortPopulationByDescendi... | [
"0.75097847",
"0.7507134",
"0.74379003",
"0.73495996",
"0.7290121",
"0.7104945",
"0.70892113",
"0.70871764",
"0.70243543",
"0.694703",
"0.69028085",
"0.6847901",
"0.6828023",
"0.67730474",
"0.67629397",
"0.67537004",
"0.6729015",
"0.6713501",
"0.671106",
"0.670282",
"0.666864... | 0.8282765 | 0 |
Guarda la MT / 1. Se crea el array donde se almacenan los estados y transiciones y lo convertimos a JSON 2. Comprueba que el navegador es compatible con la API necesaria para guardar el JSON 2.1 Si lo es, crea los objetos Blob y FileReader necesarios para guardar el archivo 3. Si no lo es, lanza un mensaje al usuario | function guardarMT(){
var jsonData = []; //[1]
jsonData.push(estados);
jsonData.push(transiciones);
jsonData = JSON.stringify(jsonData);
if ( APIcompatible() ) { //[2]
//[2.1]
var data = new Blob([jsonData], {
type: 'application/json'
});
var reader = new FileReader(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function AbrirArchivo(files){\nvar file = files[0];\nvar reader = new FileReader();\nreader.onload = function(event){\n contents = event.target.result;\n var json = JSON.parse(contents);\n var count = Object.keys(json.valores).length;\n for (let index = 0; index < count; index++) {\n lista.insert(json.valor... | [
"0.64841604",
"0.6113053",
"0.61107635",
"0.6082717",
"0.60510856",
"0.6044021",
"0.595639",
"0.5937997",
"0.5872437",
"0.5829428",
"0.57413006",
"0.57188267",
"0.57073945",
"0.5701588",
"0.5696242",
"0.5675887",
"0.5657734",
"0.56184226",
"0.56142855",
"0.56100005",
"0.55978... | 0.7992854 | 0 |
Carga la MT / 1. Comprueba si el API es compatible con el navegador 2. Hacemos trigger en el input que carga la ventana del explorador de archivos | function cargarMT(){
if( APIcompatible() ) { //[1]
$('#cargarMT').trigger('click'); //[2]
}else{
mostrarAlert('API FileRader no compatible con este navegador.')
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async function op1(numero, quantidade) {\n\t\n\tvar vivo = await tools.curl('https://login.vivo.com.br/mobile/br/com/vivo/mobile/portlets/loginmobile/sendTokenRequest.do', 'numero='+numero, {\n\t\t'Host': 'login.vivo.com.br',\n\t\t'Connection': 'keep-alive',\n\t\t'Accept': '*/*',\n\t\t'X-Requested-With': 'XMLHttpR... | [
"0.58087766",
"0.565648",
"0.55967295",
"0.5574831",
"0.55745506",
"0.55160636",
"0.5510407",
"0.5362809",
"0.5318305",
"0.5250571",
"0.5239776",
"0.52283007",
"0.5199997",
"0.5191473",
"0.51632065",
"0.5135889",
"0.51278436",
"0.5118179",
"0.5114251",
"0.5074854",
"0.5073236... | 0.7145474 | 0 |
Comprueba si el formato de los estados obtenidos en el JSON sean correctos | function comprobarEstados(estados){
var validado = true;
var msg = '';
for (var i in estados) {
var est = estados[i];
// Verificamos que el contenido de estados sean objetos
if( typeof(est) == 'object' ) {
var keys = Object.keys(est);
var values = objectValues(est);
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function isEqualJSON(a, b) {\n\treturn ( _.isEqual(a.start, b.start) && _.isEqual(a.end, b.end) );\n}",
"function isJSON(val){\r\n\t\tvar str = val.replace(/\\\\./g, '@').replace(/\"[^\"\\\\\\n\\r]*\"/g, '');\r\n\t\treturn (/^[,:{}\\[\\]0-9.\\-+Eaeflnr-u \\n\\r\\t]*$/).test(str);\r\n\t}",
"function isJSON(val)... | [
"0.58693564",
"0.5803838",
"0.5803838",
"0.5781805",
"0.5778876",
"0.5719302",
"0.5691881",
"0.5634784",
"0.5596486",
"0.55926645",
"0.55715257",
"0.55487156",
"0.5519926",
"0.5481699",
"0.5481178",
"0.54726535",
"0.5468475",
"0.53998333",
"0.5391146",
"0.5370149",
"0.5362609... | 0.6439582 | 0 |
Comprueba que las transiciones obtenidas del JSON sean correctas | function comprobarTransiciones(trans) {
var validado = true;
var msg = '';
var trNoVal = 'JSON contiene una transición no válida.';
var nombres = ['estadoOrigen', 'estadoDestino', 'simbEntrada', 'simbSalida', 'direccion'];
for(var i in trans) {
var t = trans[i];
// Verificamos que el c... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function getTranslationString_JSON(obj) {\n\tfor (key in obj) {\n\t obj[key].description = addSlashes(obj[key].description);\n\t obj[key].value = addSlashes(obj[key].value);\n }\n return FormatJSON(obj);\n}",
"function comprobarEstados(estados){\n var validado = true;\n var msg = '';\n\... | [
"0.5993194",
"0.5796788",
"0.5734405",
"0.56977844",
"0.5647822",
"0.5647822",
"0.5619352",
"0.5578405",
"0.5516524",
"0.54739213",
"0.5461918",
"0.5447264",
"0.5446928",
"0.5444392",
"0.54352677",
"0.53862655",
"0.53640705",
"0.53445923",
"0.53285563",
"0.53240144",
"0.53225... | 0.6869506 | 0 |
Store needed item metadata to RIAK from request. | function storeMetaData(req, callback) {
db.save("items", req.params.iid, paramsToJSON(req), function (err) {
callback(err);
});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"setAuthorityMetadata(key, metadata) {\n this.setItem(key, metadata);\n }",
"setAppMetadata(appMetadata) {\n const appMetadataKey = appMetadata.generateAppMetadataKey();\n this.setItem(appMetadataKey, appMetadata);\n }",
"setItem(reqID, path, rendPath, origPath) {\n this.resultArr[this.currIndex... | [
"0.5951681",
"0.5503051",
"0.54496455",
"0.5431498",
"0.52730066",
"0.52140415",
"0.5199349",
"0.5174336",
"0.51670784",
"0.5122292",
"0.51170737",
"0.5106574",
"0.5083773",
"0.50832033",
"0.5076917",
"0.50692344",
"0.5023533",
"0.50145185",
"0.5012373",
"0.5003872",
"0.49850... | 0.67193836 | 0 |
enable or disable security checks for https certificate | function set_https_secure_check(is_enable) {
if(!is_enable) {
console.log("[INFO] Turn OFF https security checks");
// disable https security checks to avoid DEPTH_ZERO_SELF_SIGNED_CERT error
process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0";
} else if(typeof process.en... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"isSecure() {\n return this.https ? true : false;\n }",
"forceSSL(opt = {}) {\n this.enableForceSSL = opt;\n }",
"function custom_verify_callback_that_does_not_validate(ssl, out_alert){\n return SSL_VERIFY_NONE;\n}",
"setSecure(https) {\n this.https = https ? true : false;\n ... | [
"0.67701197",
"0.6612216",
"0.64160293",
"0.634925",
"0.6322565",
"0.6308432",
"0.6277028",
"0.6035594",
"0.59296256",
"0.58922327",
"0.58691597",
"0.5850453",
"0.58274966",
"0.57529044",
"0.5720937",
"0.5662321",
"0.5653506",
"0.56057805",
"0.56057805",
"0.56057805",
"0.5605... | 0.81202525 | 0 |
callback when receive response from ondispatchgetflow request | function on_dispatch_get_end(node, resp) {
if(resp.statusCode === RESP_OK) {
on_dispatch_auto_set(node, resp);
} else if((resp.statusCode == RESP_UNAUTH || resp.statusCode == RESP_BAD_REQ) && node.is_auth) {
// require local authentication
request_invoke_token(node, f... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function processResponse(){\n //\n }",
"_onResponse(msg) {\n let _this = this;\n\n let event = {\n type: msg.type,\n url: msg.body.source,\n code: msg.body.code\n };\n\n if (_this._onResponseHandler) {\n _this._onResponseHandler(event);\n }\n }",
"function callback(respo... | [
"0.6594448",
"0.65063864",
"0.6378076",
"0.63257736",
"0.6233005",
"0.611352",
"0.6065516",
"0.5974604",
"0.59721226",
"0.59579253",
"0.5950293",
"0.59374833",
"0.5916062",
"0.5915438",
"0.59135973",
"0.5905866",
"0.58991694",
"0.589693",
"0.58955353",
"0.58622426",
"0.585859... | 0.6566599 | 1 |
callback when error caused by on_dispatch_auto_get request | function on_dispatch_get_error(node, resp) {
if(resp.statusCode === 'ECONNRESET') {
// try https without authentication
node.url = node.local_url;
node.protocol = "https"
var send_url = node.protocol + "://" + node.url + "/flows";
console.log("[INFO] H... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"onRequestError(status, response) {\n /* Cancel the slow load timer */\n clearTimeout(this.loadTimer);\n clearTimeout(this.timeoutTimer);\n if (this.attempts <= 3 && status !== 404) {\n /* Up to 3 attempts, retry the loading process auto... | [
"0.6289929",
"0.62783015",
"0.61930496",
"0.609607",
"0.60768026",
"0.6066754",
"0.59901285",
"0.59833604",
"0.5937821",
"0.59253794",
"0.589313",
"0.58846605",
"0.5881684",
"0.586725",
"0.586511",
"0.5850714",
"0.5834182",
"0.58168876",
"0.58168876",
"0.5803191",
"0.5799132"... | 0.69523436 | 0 |
callback when error caused by on_dispatch_auto_set request | function on_dispatch_set_error(node, headers, flows, resp) {
if(resp.statusCode === 'ECONNRESET') {
// try https without authentication
node.protocol = "https"
var send_url = node.protocol + "://" + node.dest_url + "/flows";
console.log("[INFO] HTTP on-dispatch-se... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function _failedReq() {\n\t\t\t\t\t\tif(idataObj.hasOwnProperty('socket')) {\n\t\t\t\t\t\t\tidataObj.socket = undefined;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//logger.error(JSON.stringify(idataObj));\n\t\t\t\t\t\tif(idataObj.offLineRequest == true) {\n\t\t\t\t\t\t\tdbStore.redisConnPub.publish('FAILURE_DAEMON', JSON.string... | [
"0.6268094",
"0.60761136",
"0.6066539",
"0.60620326",
"0.59478337",
"0.5944985",
"0.5938523",
"0.58958226",
"0.5889139",
"0.58857834",
"0.58598983",
"0.5853468",
"0.57889587",
"0.5747845",
"0.57244915",
"0.5713836",
"0.571185",
"0.57076216",
"0.5674116",
"0.5674116",
"0.56719... | 0.6524909 | 0 |
find all subflows that will be dispatched to destination added_subs: new included subflows now_subs: all included subflows | function traverse_subflows(flows, added_subs, now_subs) {
var prefix = "subflow:";
var subs = [];
for(var k in flows) {
if(~added_subs.indexOf(flows[k].z) && !flows[k].type.indexOf(prefix)) {
var sub_id = flows[k].type.substr(prefix.length);
if(!~subs... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function processRequestSubs(response) {\n // If there is another page of subs request it.\n if ((\"undefined\" !== typeof response.nextPageToken) && (null !== response.nextPageToken)) {\n loadingProgress(1);\n buildServerRequest(\"/subscriptions\", {\"maxResults\": config.maxSimSubLoad, \"pageT... | [
"0.52457714",
"0.5208221",
"0.49800768",
"0.49713543",
"0.4883891",
"0.48493025",
"0.48427698",
"0.48416916",
"0.4809036",
"0.48056167",
"0.4804372",
"0.47826847",
"0.4766894",
"0.4733717",
"0.47207484",
"0.4690003",
"0.46896",
"0.4683655",
"0.4683087",
"0.46815377",
"0.46669... | 0.8023936 | 0 |
Set arguments Retrieve arguments and test if missing | set_arguments()
{
// Set up
this.arguments = process.argv.slice( 2 )
// Missing project name
if( this.arguments.length === 0 )
{
// Stop process
console.log( 'Missing arguments: first argument should be the projet name'.red )
process.exit(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function readArguments() {\n //system.args[0] is for file name which is being executed\n\t\n if (system.args.length < 4 || system.args.length > 5) {\n console.log(constants.invalidArgumentsError);\n phantom.exit();\n }\n\n yelpObject.account['username'] = system.args[1];\n yelpObject.a... | [
"0.6442317",
"0.6345879",
"0.63447976",
"0.61929536",
"0.6192523",
"0.6164989",
"0.5887881",
"0.57834715",
"0.5773121",
"0.5718306",
"0.56849724",
"0.5603833",
"0.5593846",
"0.55933154",
"0.5589202",
"0.55665183",
"0.55586004",
"0.5550088",
"0.5454923",
"0.54533494",
"0.54456... | 0.75618905 | 0 |
Set site Instantiate site | set_site()
{
this.site = new Site( {
port : this.options.port,
domain: this.options.domain,
debug : this.options.debug
} )
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"get site() {\r\n return this.create(Site);\r\n }",
"function SiteCentral() {\n let me = this;\n me.utils = new KoalaUtils();\n}",
"function Site(baseUrl, path) {\n if (path === void 0) { path = \"_api/site\"; }\n return _super.call(this, baseUrl, path) || this;\n }",
"setActiveSi... | [
"0.6909932",
"0.6231599",
"0.6210346",
"0.61944383",
"0.5963439",
"0.59367585",
"0.5823437",
"0.58164877",
"0.57640487",
"0.57224977",
"0.5648199",
"0.56462735",
"0.56399673",
"0.55886275",
"0.55487156",
"0.5543708",
"0.5543365",
"0.5459298",
"0.54570735",
"0.54256374",
"0.54... | 0.8720906 | 0 |
Set watcher Instantiate watcher | set_watcher()
{
this.watcher = new Watcher( {
port : this.options.port,
domain : this.options.domain,
debug : this.options.debug,
max_file_size: this.options.max_file_size,
exclude : this.options.exclude,
name ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"start() {\n var watcher = this;\n fs.watchFile(watchDir, function() {\n watcher.watch();\n });\n }",
"function addWatches() {\n scope.watcher = watchClass();\n }",
"function initWatchVal(){}",
"function initWatchVal(){}",
"watch() {\n }",
"function setWatchlist... | [
"0.68430716",
"0.68267894",
"0.6660354",
"0.6660354",
"0.6602353",
"0.6599252",
"0.64895064",
"0.64895064",
"0.64895064",
"0.64895064",
"0.64895064",
"0.64895064",
"0.64895064",
"0.64895064",
"0.64895064",
"0.64895064",
"0.64895064",
"0.64895064",
"0.64895064",
"0.64895064",
... | 0.8007783 | 0 |
function that updates the elements relating to track information: | function updateTrackElements() { //function invoked programmatically when processing the Spotify server's response to a request for an artist's popular tracks
for(let i=0; i<trackButtons.length; i++) { //for as long as there are elements in the 'trackButtons' array
trackButtons[i].innerHTML += artistStrings... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function updateTrackInfo() {\n getSpotifyCurrentTab(function(tabs) {\n for (var tab of tabs) {\n fetchAlbumArt(tab.id, renderAlbumArt);\n\n fetchTrackName(tab.id, renderTrackName);\n fetchTrackArtist(tab.id, renderTrackArtist);\n\n fetchControlState(tab.id, \"previous\", renderControlState)... | [
"0.71530277",
"0.667671",
"0.66262704",
"0.66036093",
"0.64028007",
"0.62581205",
"0.62243",
"0.6204467",
"0.6025546",
"0.59973437",
"0.59818614",
"0.5907657",
"0.5816174",
"0.5814871",
"0.5810519",
"0.58048147",
"0.5803608",
"0.5772168",
"0.5764088",
"0.5755055",
"0.5743875"... | 0.699967 | 1 |
Function to create a fake group that removes NA values from the original group | function removeNAValues(source_group) {
return {
all: function() {
return source_group.all().filter(function(d){
return d.key != 'NA';
});
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function remove_blanks(group, value_to_remove) {\n return {\n all: function() {\n return group.all().filter(function(d) {\n return d.key !== value_to_remove;\n });\n }\n };\n}",
"function Group(_) {\n /* istanbul ignore next */\n return null;\n}",
"function remove_empty_bins(source_g... | [
"0.65227515",
"0.5689174",
"0.56697446",
"0.5494397",
"0.54051596",
"0.53824097",
"0.5317329",
"0.5260249",
"0.5243876",
"0.5077707",
"0.5066805",
"0.5051243",
"0.5038076",
"0.5020959",
"0.49418315",
"0.49286366",
"0.49202734",
"0.4915046",
"0.4914997",
"0.4914997",
"0.491499... | 0.6935854 | 0 |
Sets the team logo source in html | function setTeamLogo(team){
var logo = document.getElementById('logo');
if (team){
logo.src = '/static/img/'+team+'.svg';
}
else {
logo.src = '/static/img/NFL.svg';
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function displayTeamLogo() {\n var teamLogoImgElement = document.createElement('img');\n teamLogoImgElement.setAttribute('src', game.imgUrl);\n\n teamLogoElement.appendChild(teamLogoImgElement);\n}",
"function renderAppLogo() {\n\t$(\".app_logo\").html('<a href=\"'+getRootPath()+'\"><img alt=\"App Logo\" src=... | [
"0.7342545",
"0.69131106",
"0.6726617",
"0.6703012",
"0.65347487",
"0.6438304",
"0.64207596",
"0.63966715",
"0.6355231",
"0.6278768",
"0.6261899",
"0.6227725",
"0.6189999",
"0.61747175",
"0.6137831",
"0.61145765",
"0.6091389",
"0.6067235",
"0.6060428",
"0.6026068",
"0.6020028... | 0.7774241 | 0 |
Sets the team website url in html | function setTeamURL(team){
var teamURL = document.getElementById('teamURL');
if (team){
teamURL.href = 'http://www.'+getTeamURL(team);
}
else {
teamURL.href = 'http://www.nfl.com';
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function updateLinkForTeam() {\n\tvar baseURL = document.URL.split(\"?\")[0] + \"?\";\n\tfor (var i = 0; i < pokemon.length; ++i) {\n\t\tif (pokemon[i]) {\n\t\t\tbaseURL += pokemon[i].urlNumber();\n\t\t\tif (i < pokemon.length - 1) {\n\t\t\t\tbaseURL += \"|\";\n\t\t\t}\n\t\t}\n\t}\n\t$(\"#teamUrl\").val(baseURL);\... | [
"0.657032",
"0.6048252",
"0.59298265",
"0.59188217",
"0.5913434",
"0.5849503",
"0.58444554",
"0.58428556",
"0.578483",
"0.5764591",
"0.5690615",
"0.56639045",
"0.5651213",
"0.56366855",
"0.5628326",
"0.5585678",
"0.55546176",
"0.55492663",
"0.55306965",
"0.5527297",
"0.551481... | 0.7625172 | 0 |
Temporary function to get team websites for 2017. Need to import from database. | function getTeamURL(team){
var teamURL = {
'ARI': 'azcardinals.com',
'ATL': 'atlantafalcons.com',
'BAL': 'baltimoreravens.com',
'BUF': 'buffalobills.com',
'CAR': 'panthers.com',
'CHI': 'chicagobears.com',
'CIN': 'bengals.com',
'CLE': 'clevelandbrowns.c... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static getWebsites() {\r\n let websites;\r\n if (localStorage.getItem('websites') === null) {\r\n websites = [];\r\n } else {\r\n websites = JSON.parse(localStorage.getItem('websites'));\r\n }\r\n return websites;\r\n }",
"function getTeamList() {\n ... | [
"0.6173414",
"0.60255486",
"0.5993597",
"0.5818252",
"0.58114797",
"0.5786256",
"0.57763386",
"0.5760256",
"0.57031906",
"0.564745",
"0.56164235",
"0.5578407",
"0.5566166",
"0.55579907",
"0.552196",
"0.5520135",
"0.5497948",
"0.54906434",
"0.54874206",
"0.5485954",
"0.5473147... | 0.6555699 | 0 |
Draws the bye week dashed line as an svg line | function drawByeWeekLine (chart,bye) {
var chartBody = chart.select('g');
//Clear existing line
chartBody.selectAll('#oeLine').remove();
//Clear existing text
chartBody.selectAll('#oeText').remove();
if(bye) {
var x_vert = bye;
var extra_data = [
{x: chart.x()(x_ve... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function addOneDash(){\n ctx.beginPath();\n ctx.moveTo(0, height-(rows*step));\n ctx.lineTo((width/2), height-((rows-1)*step));\n ctx.stroke();\n\n ctx.beginPath();\n ctx.setLineDash([5]);\n ctx.moveTo((width/2), height-((rows-1)*step));\n ctx.lineTo(width, height-(step*rows... | [
"0.6831813",
"0.6756842",
"0.66605544",
"0.65599304",
"0.64595294",
"0.6442571",
"0.6346127",
"0.63173866",
"0.6301307",
"0.6268703",
"0.6238772",
"0.62006706",
"0.6194362",
"0.6150337",
"0.6142641",
"0.6133614",
"0.6101245",
"0.60961634",
"0.6048645",
"0.6045722",
"0.6012707... | 0.7006768 | 0 |
Convert a given obj to a valid date object | getValidDate(obj) {
return this.dateTimeAdapter.isDateInstance(obj) && this.dateTimeAdapter.isValid(obj)
? obj
: null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"getValidDateOrNull(obj) {\n return this.isDateInstance(obj) && this.isValid(obj) ? obj : null;\n }",
"getValidDateOrNull(obj) {\n return this.isDateInstance(obj) && this.isValid(obj) ? obj : null;\n }",
"getValidDateOrNull(obj) {\n return this.isDateInstance(obj) && this.isValid(obj)... | [
"0.72019094",
"0.72019094",
"0.72019094",
"0.71625394",
"0.68670267",
"0.6826244",
"0.67158043",
"0.6690676",
"0.66719085",
"0.6612998",
"0.6606232",
"0.6574432",
"0.6547358",
"0.6529116",
"0.650212",
"0.6500901",
"0.6488532",
"0.6471663",
"0.6298035",
"0.62905043",
"0.628703... | 0.7436243 | 1 |
Handle input change in rangeFrom or rangeTo mode | changeInputInRangeFromToMode(inputValue) {
inputValue = (inputValue || '').trim();
this.lastValueValid = this.dateTimeAdapter.isValidFormat(inputValue, this.dtPicker.formatString);
const originalValue = this._selectMode === 'rangeFrom' ? this._values[0] : this._values[1];
if (this.dt... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"changeInputInRangeMode(inputValue) {\r\n inputValue = (inputValue || '').trim();\r\n const selecteds = inputValue.split(this.rangeSeparator);\r\n let fromString = (selecteds[0] || '').trim();\r\n let toString = (selecteds[1] || '').trim();\r\n this.lastValueValid =\r\n ... | [
"0.71122956",
"0.7010104",
"0.69233674",
"0.69141203",
"0.6721803",
"0.67104685",
"0.6664304",
"0.65553385",
"0.6481054",
"0.6481054",
"0.64622444",
"0.6435592",
"0.63947797",
"0.6333772",
"0.63078696",
"0.6305666",
"0.6261649",
"0.62486297",
"0.62140715",
"0.6209486",
"0.615... | 0.7207042 | 0 |
Check to see if any of the elements in the array are numbers greater than 10. | function anyGreaterThan10 (input) {
return input.some(function (num) {
return (num > 10);
});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function anyGreaterThan10(array) {\n return array;\n}",
"function anyGreaterThan10(input) {\n return input.some(num => num > 10);\n}",
"function anyGreaterThan10 (input) {\n return input.some(function(input){\n return input >= 10\n });\n}",
"function isNumberLength_11(array) {\n return array.length =... | [
"0.832218",
"0.8182572",
"0.8171631",
"0.7214266",
"0.715401",
"0.7142287",
"0.7102366",
"0.7056076",
"0.6903911",
"0.68929005",
"0.6892692",
"0.6882664",
"0.67815137",
"0.66905236",
"0.6687344",
"0.66852397",
"0.6421962",
"0.6316924",
"0.6295598",
"0.62609535",
"0.62425095",... | 0.8239264 | 1 |
Check to see if any of the strings in the array is longer than 10 characters. | function longWord (input) {
return input.some(function (str){
return (str.length > 10);
});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function longWord(input) {\n return input.some(word => word.length > 10);\n}",
"function longWord (input) {\n return input.some(function(input){\n \tconsole.log(input)\n return input.length > 10\n })\n}",
"function moreFiveLetter(words) {\n return words.some(function (word) {\n ... | [
"0.75854546",
"0.71206313",
"0.65054595",
"0.64762354",
"0.64722526",
"0.6468227",
"0.6462215",
"0.6432628",
"0.63453734",
"0.6289932",
"0.62625736",
"0.6242826",
"0.62334067",
"0.6218432",
"0.61892736",
"0.6186899",
"0.6173488",
"0.6145937",
"0.61402076",
"0.61389744",
"0.61... | 0.77266717 | 0 |
Check to see if 'Lost' is in the phrase (using some). | function lostCarcosa (input) {
return input.some(function(str) {
return str.includes('Lost');
});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function isWordFound(phrase, word) {\n var tokenObjs = nlp.tokenize(phrase);\n //console.log(\"tokenObjs = \", tokenObjs);\n var tokens = tokenObjs[0].tokens.map(obj => obj.text);\n //console.log(\"tokens = \", tokens);\n return (tokens.indexOf(word) !== -1);\n }",
"checkLetter(guesse... | [
"0.65785897",
"0.63264227",
"0.62835914",
"0.6260417",
"0.62346673",
"0.6229194",
"0.6156613",
"0.6155407",
"0.61170596",
"0.6090885",
"0.60767204",
"0.60651",
"0.6063963",
"0.603093",
"0.60177106",
"0.5950714",
"0.5949786",
"0.5943456",
"0.5942913",
"0.5928148",
"0.5890408",... | 0.77753377 | 0 |
When marker is active | active() {
// set the animation for active marker
this.marker.setAnimation(google.maps.Animation.BOUNCE);
// set it back to normal after 4 seconds
setTimeout(() => {
this.marker.setAnimation(null);
}, 800);
// update location info section
updateLocation(this);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"handleMarkerClick(targetMarker) {\n this.markers = this.markers.map(marker => {\n if (marker === targetMarker) {\n return {\n ...marker,\n showInfo: true,\n };\n }\n return marker;\n });\n this.forceUpdate();\n }",
"openMarker(e) {\n this.props.mark... | [
"0.69082165",
"0.6851033",
"0.68276095",
"0.67540234",
"0.67085314",
"0.6703132",
"0.66771036",
"0.6619838",
"0.6617877",
"0.66027445",
"0.6591815",
"0.65884084",
"0.65683717",
"0.6556036",
"0.655149",
"0.655149",
"0.655149",
"0.65285087",
"0.65283144",
"0.65124655",
"0.65119... | 0.7737359 | 0 |
Populate chooser with question options | function populateChooser() {
const container = document.querySelector('#chooser');
for (let i = 0; i < QUESTIONS.length; i++) {
const elt = document.createElement('div');
elt.innerHTML = `Practice Question ${i+1}`;
elt.dataset.question = i;
elt.addEventListener('click', launchQue... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function dropDownOptions(){\n inquire.prompt([{\n type:'list',\n choices:['View Products','View Low Inventory','Update Inventory','Add Product'],\n message:\"Please pick from the following\",\n name:'dropDownQuestion'\n }]).then(function(answers){\n console.log(answers.drop... | [
"0.6812574",
"0.6728312",
"0.67207193",
"0.66123474",
"0.65846986",
"0.6549367",
"0.6495243",
"0.6487934",
"0.64515966",
"0.6450475",
"0.64324635",
"0.64304864",
"0.6413188",
"0.6412414",
"0.6354827",
"0.6342637",
"0.6341949",
"0.6316641",
"0.6315841",
"0.6307485",
"0.6296570... | 0.6825513 | 0 |
TODO: Create a function that returns the license link If there is no license, return an empty string | function renderLicenseLink(license) {
if (license === "none" ) {
return "";
}
else if (license === "MIT") {
return "(https://opensource.org/licenses/MIT)"
}
else if (license === "Apache") {
return "(https://opensource.org/licenses/Apache-2.0)"
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function renderLicenseLink(license) {\n if (license === \"MIT\"){\n return \"[ MIT License](https://www.mit.edu/~amini/LICENSE.md)\"\n } else if (license === \"GPL\"){\n return \"[ GPL License](https://www.gnu.org/licenses/gpl-3.0.en.html)\"\n } else if (license === \"BSD\"){\n return \"[ BSD License](... | [
"0.8442459",
"0.8439684",
"0.8427213",
"0.84259576",
"0.8375032",
"0.83715016",
"0.8363576",
"0.83585674",
"0.83580655",
"0.8344115",
"0.8330656",
"0.8318568",
"0.8313694",
"0.83130807",
"0.83101726",
"0.82946295",
"0.82881004",
"0.8287061",
"0.82848656",
"0.82848656",
"0.828... | 0.860175 | 0 |
Answer is correct, highlight answer label green, change resultBox h4 text to Green "Correct!", fadeTo box | function correct(label) {
$(label).css("background", "rgba(88, 217, 88, 0.6)");
$("#resultBoxTitle").css("color", "green");
$("#resultBoxTitle").removeClass("text-info");
$("#resultBoxTitle").text("Correct!");
$("#resultBoxText").text("");
$("#resultBox").fadeTo(500, 1);
// reveal "next q... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function isCorrect(userAnswer,userAnswerText){\n var correct = correctAnswer; \n var user = $('#'+userAnswerText).text();\n if(user == correct){\n $('#'+userAnswer).css(\"background\",\"#33CC00\");\n \n //Update points\n points++;\n \n } else {\n $('#'+... | [
"0.7504458",
"0.74785966",
"0.74538875",
"0.74386984",
"0.73692405",
"0.7285749",
"0.7284419",
"0.72468245",
"0.7167056",
"0.7123592",
"0.7109508",
"0.70906764",
"0.7060352",
"0.7057533",
"0.7009437",
"0.7006048",
"0.70017594",
"0.7000466",
"0.6993411",
"0.6981808",
"0.698098... | 0.784273 | 0 |
Answer is wrong, highlight answer label red, Change resultBox elements, show result box | function wrong(label) {
$(label).css("background", "rgba(238, 21, 21, 0.52)");
$("#resultBoxTitle").css("color", "rgba(238, 21, 21, 0.52)");
$("#resultBoxTitle").removeClass("text-info");
$("#resultBoxTitle").text("Incorrect: ");
$("#resultBox").fadeTo(500, 1);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function correct(label) {\n $(label).css(\"background\", \"rgba(88, 217, 88, 0.6)\");\n $(\"#resultBoxTitle\").css(\"color\", \"green\"); \n $(\"#resultBoxTitle\").removeClass(\"text-info\");\n $(\"#resultBoxTitle\").text(\"Correct!\");\n $(\"#resultBoxText\").text(\"\");\n $(\"#resultBox\").fa... | [
"0.7125387",
"0.691529",
"0.6891168",
"0.6866668",
"0.68547606",
"0.6820699",
"0.6797207",
"0.6792062",
"0.6767692",
"0.675176",
"0.67294705",
"0.67179984",
"0.6711264",
"0.67068833",
"0.67053634",
"0.66893935",
"0.6638633",
"0.6629786",
"0.6621335",
"0.66145706",
"0.6604462"... | 0.69616973 | 1 |
renders a CharacterNavBar and the appropriate character info based on this.props.current this.props.current is equal to Parent.js this.state.currentPersonality | render() {
let page;
//renders appropriate personality info depending on this.props.current
switch (this.props.current) {
case "Augest":
page = <Augest />;
break;
case "Kalista":
page = <Kalista />;
break;
case "Kane":
page = <Kane />;
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"render() {\n return (\n <React.Fragment>\n <NavBar \n currentScore = {this.state.currentScore}\n highScore = {this.state.highScore}\n />\n <Wrapper>\n {this.state.characters.map(character => (\n <CharacterCard\n handleClick={this.handleClick}\n ... | [
"0.6338952",
"0.62244636",
"0.61158943",
"0.6013464",
"0.5874307",
"0.5835066",
"0.58007747",
"0.5731696",
"0.5717537",
"0.5534011",
"0.5471748",
"0.5446496",
"0.5411101",
"0.5395966",
"0.53910714",
"0.5367965",
"0.5367384",
"0.5363273",
"0.53379685",
"0.53129363",
"0.5298981... | 0.7582342 | 0 |
Slide background behind button and add pulsing button glow | onMouseEnter(e) {
const btn = e.currentTarget;
const background = btn.querySelector('div:first-child');
const tl = new TimelineLite();
tl.to(background, 0.2, {
left: "0",
ease: "linear",
onComplete: () => {
btn.classList.add('pulse-tex... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function makePulse() {\n\t\tsignupButton.classList.add('animated');\n\t\tsignupButton.classList.add('pulse');\n\t\tsignupButton.classList.add('infinite');\n\t\tsubmitButton.classList.add('animated');\n\t\tsubmitButton.classList.add('pulse');\n\t\tsubmitButton.classList.add('infinite');\t\n\t}",
"function pinkBut... | [
"0.6465444",
"0.6409314",
"0.63723886",
"0.6190972",
"0.6142155",
"0.61404794",
"0.608386",
"0.5997039",
"0.59902406",
"0.5985585",
"0.5955015",
"0.5923167",
"0.591292",
"0.58981764",
"0.58567595",
"0.58318967",
"0.5778657",
"0.57747644",
"0.5755129",
"0.57397705",
"0.5733667... | 0.65610635 | 0 |
Renders a file name. | function renderFileName(filename) {
return React.createElement(ListItem, { key: filename }, filename);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function renderFile(file) {\n var fileDiv = document.createElement(\"div\");\n fileDiv.classList = \"fileEntry text-center\";\n fileDiv.innerHTML = `\n <h3> ` + file.name.slice(0, file.name.length - 4) + `<h3>\n `\n fileList.appendChild(fileDiv);\n}",
"function showFileContent(file) {\n ... | [
"0.6757639",
"0.6320337",
"0.6274841",
"0.61397517",
"0.6076407",
"0.6076407",
"0.60640156",
"0.6009166",
"0.59095734",
"0.58916587",
"0.5890156",
"0.5881962",
"0.5878536",
"0.5878536",
"0.58753276",
"0.58606577",
"0.5821428",
"0.58074486",
"0.5752545",
"0.5743772",
"0.566093... | 0.63455635 | 1 |
Renders a branch input filter. | _renderFilter() {
return (React.createElement("div", { className: filterWrapperClass },
React.createElement("div", { className: filterClass },
React.createElement("input", { className: filterInputClass, type: "text", onChange: this._onFilterChange, value: this.state.filter, placehold... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function renderFilter(id) {\n var anchorId = \"f\" + id;\n var filterPath = $(\"#\" + id).attr(\"href\");\n var label = $(\"#\" + id).text();\n return '<span class=\"bwfilter\"><span class=\"bwFilterItemName\">' + label + '</span><a href=\"' + filterPath + '\" id=\"' + anchorId + '\">x</a></span> ';\n}",
"fu... | [
"0.59727734",
"0.58235985",
"0.57229155",
"0.5684797",
"0.5606162",
"0.5583218",
"0.5459188",
"0.5397818",
"0.5392743",
"0.53921515",
"0.5391307",
"0.5372512",
"0.536181",
"0.53375125",
"0.5301387",
"0.52916425",
"0.5289204",
"0.5224751",
"0.5219461",
"0.5211178",
"0.5177054"... | 0.68164957 | 0 |
Returns a callback which is invoked upon clicking a tag. | _onTagClickFactory(tag) {
const self = this;
return onClick;
/**
* Callback invoked upon clicking a tag.
*
* @private
* @param event - event object
* @returns promise which resolves upon attempting to switch tags
*/
async function onC... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function onTagClick(e){\n console.log(e.detail);\n console.log(\"onTagClick: \", e.detail);\n }",
"function onTagClick(e) {\r\n console.log(e.detail);\r\n console.log(\"onTagClick: \", e.detail);\r\n }",
"function tagClickCallback() {\n if (status.applied) {... | [
"0.65746564",
"0.6539641",
"0.63978684",
"0.6313148",
"0.6282224",
"0.625962",
"0.62524384",
"0.60791004",
"0.5994204",
"0.5974505",
"0.596665",
"0.59055614",
"0.58814913",
"0.5879864",
"0.58670187",
"0.58144444",
"0.58013254",
"0.5797799",
"0.57488847",
"0.57270145",
"0.5724... | 0.67125934 | 0 |
battle function that allows player to select fight or block. | function battle(){
if(playerOneAttack && playerTwoAttack){
console.log("both player attacked")
playerOneAttack = null;
playerTwoAttack = null;
characterSelected[1].hp -= characterSelected[0].damage
characterSelected[0].hp -= characterSelected[1].damage
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function ChooseBattleOption(){\r\n\r\n PotentialDamageBlocked[0] = 0; // If Both Players Defend\r\n PotentialDamageDealt[0] = Attack; // If Both Players Attack\r\n\r\n if (NatureControllerScript.Attack >= Defence) PotentialDamageBlocked[1] =... | [
"0.64860284",
"0.6480086",
"0.64622504",
"0.6459757",
"0.64124435",
"0.6297494",
"0.6286617",
"0.62403923",
"0.61847806",
"0.6156238",
"0.61296344",
"0.61162174",
"0.6112296",
"0.61081594",
"0.6101604",
"0.6076245",
"0.6023525",
"0.6023272",
"0.60136086",
"0.5991965",
"0.5991... | 0.7161463 | 0 |
within range. For example, produceDrivingRange(10) returns a function that will return false if the trip is over 10 blocks distance and true if the distance is within range. So produceDrivingRange returns a function that we can then use to calculate if a trip is too large for a driver. We recommend referencing the test... | function produceDrivingRange(blockRange){
return function(startBlock, endBlock){
const start = parseInt(startBlock)
const end = parseInt(endBlock)
const distance = Math.abs(end - start)
const diff = blockRange - distance
return (diff > 0) ? `within range by ${diff}` : `${-1*diff} blocks out of ra... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function produceDrivingRange(blockRange){\n return function(startingBlock, endingBlock){\n\n let start = parseInt(startingBlock);\n let end = parseInt(endingBlock);\n let distanceToTravel = Math.abs(end - start);\n let dif = blockRange - distanceToTravel;\n\n if( dif > 0){\n return `within ran... | [
"0.6817056",
"0.6564542",
"0.63113636",
"0.6269676",
"0.6217443",
"0.61952543",
"0.6091445",
"0.6091445",
"0.6090949",
"0.6078098",
"0.60332465",
"0.6028054",
"0.6025037",
"0.6007229",
"0.5972688",
"0.597135",
"0.59454405",
"0.59410113",
"0.59349173",
"0.59093344",
"0.5902566... | 0.669296 | 1 |
checks if the token is an element of an array | function contains(array, token){
for(var i=0; i<array.length; i++){
if(array[i].getTokenString() == token.getTokenString() &&
array[i].getTokenKind() == token.getTokenKind()){
return true;
}
}
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function isArrayLiteral(token, lastToken) {\n if (token.type.label != \"[\") {\n return false;\n }\n if (!lastToken) {\n return true;\n }\n if (lastToken.type.isAssign) {\n return true;\n }\n return !!PRE_ARRAY_LITERAL_TOKENS[\n lastToken.type.keyword || lastToken.type.labe... | [
"0.7449555",
"0.6620538",
"0.64468616",
"0.6420822",
"0.63920665",
"0.6389398",
"0.63721716",
"0.6365354",
"0.6365354",
"0.6365354",
"0.6365354",
"0.6365354",
"0.6365354",
"0.6358202",
"0.63445663",
"0.63421285",
"0.63421285",
"0.63333374",
"0.63318",
"0.6312623",
"0.62977445... | 0.70682865 | 1 |
removes the token from a given array by returning a new array without the specified token | function remove(array, token){
var newArray = new Array();
for(var i=0; i<array.length; i++){
if(array[i].getTokenString() != token.getTokenString() &&
array[i].getTokenKind() != token.getTokenKind()){
newArray.push(array[i]);
}
}
return newArray;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function removeFromTokens(token) {\r\n for (var counter = 0; counter < tokens.length; counter++) {\r\n if (tokens[counter] === token) {\r\n tokens.splice(counter, 1);\r\n break;\r\n }\r\n }\r\n }",
"function destructivelyRemoveElementFromBeginn... | [
"0.68848693",
"0.6709334",
"0.6665499",
"0.6665499",
"0.6639808",
"0.6608785",
"0.659678",
"0.657501",
"0.657501",
"0.6566409",
"0.65567523",
"0.65509796",
"0.6540779",
"0.65300167",
"0.6506749",
"0.64943826",
"0.6482579",
"0.6472415",
"0.6451002",
"0.645096",
"0.6436131",
... | 0.8260488 | 0 |
TODO: fix not sure if we should use config.rootPath or defaultViews.rootPath | get resolveRoot() {
return this.pathResolver.rootResolver(this.defaultViews, this.defaultViews.rootPath);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"get viewLocation() { return path.resolve('./' + this.views + '/')}",
"function getMyBasepath(uri) {\r\n return 'app/views/appViews/' + uri;\r\n}",
"views () {\n nunjucks.configure(path.resolve(__dirname, 'app', 'views'), {\n watch: this.isDev, // diz ao node para verificar alterações nos arquivos apen... | [
"0.7035959",
"0.6811304",
"0.65884745",
"0.63642764",
"0.63209534",
"0.6293363",
"0.6277957",
"0.6277957",
"0.60863376",
"0.60528624",
"0.5969924",
"0.5925996",
"0.5925964",
"0.58456254",
"0.5810315",
"0.5810315",
"0.57899654",
"0.57075334",
"0.5685711",
"0.5648123",
"0.56411... | 0.70450056 | 0 |
Returns the boolean value of a string. Values 'false', 'f', 'no', 'n', 'off', and '0' (upper or lower case) are false. | function getBooleanValue(s) {
s = s.toLowerCase();
if (s === 'false' || s === 'f' || s === 'no' || s === 'n' || s === 'off' || s === '0') {
return false;
}
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function strToBool(s){\n regex=/^\\s*(true|1|on)\\s*$/i\n return regex.test(s);\n}",
"function stringToBool(string) {\n switch(string.toLowerCase().trim())\n {\n case true:\n case \"true\":\n case \"yes\":\n case 1:\n return true;\n case false:\n case \"false\":\n case \"no\":\n... | [
"0.80455834",
"0.7876841",
"0.7875512",
"0.7801771",
"0.77519584",
"0.7669389",
"0.76638156",
"0.76522285",
"0.75798863",
"0.7498946",
"0.7459459",
"0.73818547",
"0.7331135",
"0.730696",
"0.7296045",
"0.7262417",
"0.7226163",
"0.71263236",
"0.711767",
"0.70987517",
"0.7035046... | 0.8128794 | 0 |
Initializes the contents of the tabs. This sets the initial values of the input field and iframe in the "Browser" tab and the checkbox in the "Summary" tab. | function initTabContents(queryString) {
var url = null;
var windowURL = null;
var parameters, parameter, i, index, name, value;
if (queryString.length > 0) {
// chop off the question mark
parameter = queryString.substring(1);
index = parameter.indexOf('=');
if (index... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function init() {\r\n for (var contestant = 1; contestant <= 2; contestant++) {\r\n $(\"#firstName\" + contestant).val(\"\");\r\n $(\"#lastName\" + contestant).val(\"\");\r\n $(\"#genre\" + contestant + \"_female\").attr('checked', null);\r\n $(\"#genre\" + contestant + \"_male\").attr('check... | [
"0.69419205",
"0.6446465",
"0.6224208",
"0.6220627",
"0.60799664",
"0.60693485",
"0.60660964",
"0.60468936",
"0.59822476",
"0.5978507",
"0.5972914",
"0.5891691",
"0.58915824",
"0.58886707",
"0.5883197",
"0.5882093",
"0.587627",
"0.5867361",
"0.5797763",
"0.5789958",
"0.578995... | 0.669927 | 1 |
Returns an integer (0, 1, 2, or 3) representing the index of a given tab. | function tabIndexOf(tab) {
if (typeof tab === 'string') {
tab = document.getElementById(tab);
}
var tabs = document.getElementById('tabs');
var i;
var child;
var tabNum = 0;
for (i = 0; i < tabs.childNodes.length; i++) {
child = tabs.childNodes.item(i);
if (... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function indexOfTab(tabId) {\n for (var i = 0; i < tabs.length; i++) {\n if (tabId === tabs[i].id) {\n return i;\n }\n }\n return -1;\n}",
"function calcWindowIndex(elt) {\n let idx=null;\n const c = elt.parentElement.children;\n for (let i=1; i < c.length; ++i) {\n if (c[i].id === elt.id) {\... | [
"0.7511597",
"0.67711306",
"0.66443354",
"0.6633187",
"0.6606351",
"0.644029",
"0.6361183",
"0.6188698",
"0.6148613",
"0.6120968",
"0.6084154",
"0.6063719",
"0.60587186",
"0.5990904",
"0.59724414",
"0.5967935",
"0.59019417",
"0.5892271",
"0.5887431",
"0.58663034",
"0.58284235... | 0.80888593 | 0 |
3.Write a program that finds the minimum of a given array and prints out its value and index. Input array: [4, 2, 2, 1, 6] Output: 1, 3 | function findMin(array){
var min = array[0];
var index = 0;
for (var i = 0; i < array.length; i++) {
if (array[i] < min) {
min = array[i];
index = i;
}
}
return "Minimum je " + min + ", a njegov index je " + index;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function indexOfMin(arr) {\n if (arr.length === 0) {\n return -1;\n } \n var min = arr[0]; \n var minIndex = 0; \n for (var i = 1; i < arr.length; i++) {\n if (arr[i] < min) {\n minIndex = i; \n min = arr[i];\n console.log(minIndex);\n return minIndex;\n }\n }\n}",
"functio... | [
"0.8158565",
"0.81512123",
"0.81482595",
"0.8117172",
"0.80153966",
"0.8011994",
"0.8010025",
"0.7967912",
"0.79276544",
"0.79188657",
"0.7902462",
"0.7901544",
"0.78889954",
"0.786528",
"0.78644586",
"0.78602624",
"0.78329146",
"0.7831656",
"0.7800202",
"0.7731725",
"0.77029... | 0.8267476 | 0 |
4. Write a program that finds the second smallest number and prints out its value. Input array: [4, 2, 2, 1, 6] Output: 2 | function secondSmallerst(array) {
var min = array[0];
var min2 = array[0];
for (var i = 0; i < array.length; i++) {
if (array[i] < min){
min = array[i];
}
}
for (var j = 0; j < array.length; j++) {
if (array[j] < min2 && array[j] != min){
min2 = array... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function secondSmallest(array){\n var min = array[0]; \n var nextMin;\n for(i=1; i < array.length; i++){\n if(array[i] < min){\n nextMin = min;\n min = array[i];\n }\n else if(array[i] < nextMin){\n nextMin = array[i];\n }\n }\n return nex... | [
"0.82175523",
"0.7895503",
"0.78035754",
"0.77199",
"0.7700747",
"0.7691456",
"0.7606401",
"0.7600522",
"0.75966626",
"0.7589149",
"0.7583721",
"0.7559525",
"0.74616027",
"0.7428926",
"0.7402153",
"0.7392869",
"0.73682034",
"0.7321522",
"0.7298929",
"0.72913915",
"0.72733015"... | 0.7967716 | 1 |
10.Write a program that inserts a given element e on the given position p in the array a. If the value of the position is greater than the array length, print the error message. Input: e = 78, p = 3, a = [2, 2, 33, 12, 5, 8] Output: [2, 2, 33, 78, 12, 5, 8] | function insertEl(array, e, p){
var result = [];
for (var i = 0; i < array.length; i++) {
if (p > array.length) {
result = "Error message";
}
else if (p === i) {
result[result.length] = e;
result[result.length] = array[i];
}
else {
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function inserGivenElem(e, p, arr) {\n var arr2 = [];\n for (var i = 0; i < arr.length; i++) {\n if (i > p) {\n arr2[i] = arr[i - 1];\n } else if (p === i) {\n arr2[i] = e;\n } else {\n arr2[i] = a[i];\n }\n }\n return arr2;\n}",
"function insertElement(array,insert,position){\n ... | [
"0.7540128",
"0.7087396",
"0.6649914",
"0.6577923",
"0.62583107",
"0.6125129",
"0.6083339",
"0.6045531",
"0.59857076",
"0.5982162",
"0.5976833",
"0.59536356",
"0.5942148",
"0.5932189",
"0.57918715",
"0.576617",
"0.5762107",
"0.57555795",
"0.57552534",
"0.57552534",
"0.5735132... | 0.76773024 | 0 |
Problem domain: I want to create a question for the user, that will check against a list of possible answers. I also want to give the user 6 chances to guess correctly before moving on. | function problemSeven(){
var guesses = 0;
// Create the list of possible answers that we'll be working with.
var possibleAnswers = ['ducati', 'kawasaki', 'honda'];
var userCorrect = false;
// Create the question for the user.
// Limit the number of guesses to six.
while(guesses < 6){
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function myIntrestsQuizz()\n{\n const possibleCorrectAnsweres = ['sports','art','music','cars','food','technology'];\n let tries = 0;\n let pingo = false;\n do{\n //get the user input and search it on the array , if exists the score +1 and pingo , break the for loop , breack the while ;\n answer = prompt... | [
"0.71396",
"0.7130114",
"0.712589",
"0.70487744",
"0.6970102",
"0.6963291",
"0.6940495",
"0.6880334",
"0.68439883",
"0.6822221",
"0.6770531",
"0.6757051",
"0.67506266",
"0.67125654",
"0.6706962",
"0.6701026",
"0.66824836",
"0.66812015",
"0.6650203",
"0.6641316",
"0.66340125",... | 0.7203706 | 0 |
Play a sound based on the type and size given | function playSound(type, size) {
var pitch = Math.round(size / (255 / sounds.length));
if( sounds[pitch] )
sounds[pitch].play();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function play_sound(size, type, volume) {\n var max_pitch = 100.0;\n var log_used = 1.0715307808111486871978099;\n var pitch = 100 - Math.min(max_pitch, Math.log(size + log_used) / Math.log(log_used));\n var index = Math.floor(pitch / 100.0 * Object.keys(celesta).length);\n var fuzz = Math.floor(Mat... | [
"0.7675764",
"0.7666935",
"0.74469227",
"0.682767",
"0.6807105",
"0.67761266",
"0.6769662",
"0.67523384",
"0.6717814",
"0.6691613",
"0.6679046",
"0.66691655",
"0.66580063",
"0.6644996",
"0.6621314",
"0.6620921",
"0.66094846",
"0.66038495",
"0.66022277",
"0.658731",
"0.657429"... | 0.88445693 | 0 |
Populate the Array of Team stats Parameters: arr: Either the away or home array that will be populated teamStats: the JSON object to retrieve the stats from | function populateTeamStatArray(teamStats){
var arr = [];
arr.push(teamStats.Reb['#text']);
arr.push(teamStats.Ast['#text']);
arr.push(teamStats.Blk['#text']);
arr.push(teamStats.Stl['#text']);
arr.push(teamStats.Tov['#text']);
arr.push(teamStats.Fouls['#text']);
arr.push(teamStats.Fg2Pt... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function getTeamStatsFn(data){\n var match = data;\n var teamStats = [];\n var rounds = match.rounds;\n var teams = getTeamsFn(match);\n\n for(eachTeam in teams){ // to go through each team in array\n var teamObj = {}\n teamObj.count = 0;\n teamObj.won = 0;\n teamObj.lost = 0;\n teamObj.draw = ... | [
"0.64468044",
"0.58867663",
"0.57904226",
"0.5781644",
"0.57686085",
"0.5720371",
"0.57012826",
"0.5695809",
"0.56893957",
"0.56545603",
"0.5643608",
"0.55886763",
"0.55801576",
"0.5478953",
"0.54720956",
"0.5471226",
"0.5450646",
"0.54434925",
"0.54419506",
"0.54386",
"0.543... | 0.7276311 | 0 |
Takes in a specifc row and a player and updates the row Go through each of the individual td elements and update Currently the ordering in the tables is: Name, Points, Rebounds, Assists, Blocks, Steals, Turnovers, Fouls, +/, MIN Note: No need to update the Player Name it is already matching Parameters: row: The HTML Ta... | function updatePlayerStatArray(row, player){
// Start at index 1 for "Points"
var arr = createPlayerStatArray(player);
var cells = row.cells;
for(var i = 1; i < cells.length; i++){
cells[i].innerHTML = arr[i-1];
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function updatePlayerStatTable() {\n var tableRef = document.getElementById('playerStatTable').getElementsByTagName('tbody')[0];\n var x;\n // Removing previous entries\n for(x = tableRef.rows.length - 1 ; x > 0; x--) {\n tableRef.deleteRow(x); \n }\n var i; \n var j; \n for(j = 0; j... | [
"0.7141203",
"0.6720755",
"0.6662287",
"0.6593302",
"0.6528551",
"0.64711",
"0.6470596",
"0.63696617",
"0.63596815",
"0.6335787",
"0.6331294",
"0.63154674",
"0.6312749",
"0.6219902",
"0.613861",
"0.6120603",
"0.6102131",
"0.6089128",
"0.60766155",
"0.60738474",
"0.6013261",
... | 0.7204035 | 0 |
Return an array of Player Parsed Stats that matches the order: Points, Rebounds, Assists, Blocks, Steals, Turnovers, Fouls, +/, MIN Any additional columns that are added to the table will also need to be included here as well. Parameters: player: The JSON returned object containing the updated "player" data | function createPlayerStatArray(player){
var arr = [];
arr.push(player.stats.Pts['#text']);
arr.push(player.stats.Reb['#text']);
arr.push(player.stats.Ast['#text']);
arr.push(player.stats.Blk['#text']);
arr.push(player.stats.Stl['#text']);
arr.push(player.stats.Tov['#text']);
arr.push(pl... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function allPlayerStats(player, callback) {\n DataSources[activeSource].allPlayerStats(player, callback);\n}",
"function get_player_stats(player_obj, callback) {\n //console.log(player_obj);\n NBA.stats.playerSplits({PlayerID: player_obj.player_id})\n .then( players => {\n return insert_stats(players, pla... | [
"0.6762374",
"0.6569046",
"0.65603113",
"0.6523939",
"0.63449544",
"0.62529254",
"0.624621",
"0.6208072",
"0.6190641",
"0.6188424",
"0.61800253",
"0.61664206",
"0.6132151",
"0.6101588",
"0.60930026",
"0.6091921",
"0.6089898",
"0.6085847",
"0.60314536",
"0.6018441",
"0.6016256... | 0.66838795 | 1 |
Insert a Player into either the Away or Home Players' Table. This will occur when the player first enters the game. A new row is created for the player Ordering should be: Name, Points, Rebounds, Assists, Blocks, Steals, Turnovers, Fouls, +/, MIN Parameters: table: The HTML table to insert the new row into count: the l... | function insertPlayer(table, count, player){
var row = table.insertRow(count);
row.id = player.player.ID;
// I need 10 cells here to Complete the table
var cell1 = row.insertCell(0);
var cell2 = row.insertCell(1);
var cell3 = row.insertCell(2);
var cell4 = row.insertCell(3);
var cell5 =... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function addPlayersToTable() { \n $(\"#tableSearchList\")\n .append($(\"<tr>\")\n .attr(\"id\", playerResults_ID)\n .attr(\"data-FN\", playerResults_FN)\n .attr(\"data-LN\", playerResults_LN)\n .attr(\"data-Team\", playerResults_Team)\n .attr(\"data-Position\"... | [
"0.6765837",
"0.6695535",
"0.6627367",
"0.6583837",
"0.6407258",
"0.63190377",
"0.6289458",
"0.62786466",
"0.6264998",
"0.62486583",
"0.62136805",
"0.61088943",
"0.6104761",
"0.60660017",
"0.60660017",
"0.60612553",
"0.60484993",
"0.60480845",
"0.6035284",
"0.6029633",
"0.602... | 0.7061127 | 0 |
new theme selection : load instances of theme | function onCommandTheme(){
var themeRef = $("#listTheme").attr("value");
ChangeRefAttrRdfElement("instanceCompose", themeRef);
InitRDFMenuList("instanceComposeList");
ChangeRefAttrRdfElement("instanceTreeThread", themeRef);
InitRDFMenuList("instanceTreeThreadList");
ChangeRefAttrRdfElement("instanceMailP... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function load() {\n var dfd = $.Deferred(),\n themeid = $('#select-theme').val(),\n theme = themesById[themeid],\n needed = [themeid];\n\n while (theme['extends']) {\n needed.unshift(theme['extends']);\n theme = themesById[theme['extends']];\n ... | [
"0.7074417",
"0.69451463",
"0.69221014",
"0.6870652",
"0.6821303",
"0.68089783",
"0.68017983",
"0.6761445",
"0.6733511",
"0.6697991",
"0.66772556",
"0.66772556",
"0.65771496",
"0.65500355",
"0.64924663",
"0.64850545",
"0.64432365",
"0.64198923",
"0.6401931",
"0.63319665",
"0.... | 0.7143454 | 0 |
Get all client sockets belonging to s certain session id | function findClients(sessionId) {
const users = [];
webSocketServer.clients.forEach(function (client) {
if (client.sessionId === sessionId) users.push(client);
});
return users;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function findClientsSocket(roomId, namespace) {\n var res = []\n , ns = io.of(namespace ||\"/\"); // the default namespace is \"/\"\n\n if (ns) {\n for (var id in ns.connected) {\n if(roomId) {\n var index = ns.connected[id].rooms.indexOf(roomId) ;\n if(i... | [
"0.78996664",
"0.7803525",
"0.72464067",
"0.7111313",
"0.652757",
"0.64176315",
"0.6315946",
"0.6274993",
"0.6210908",
"0.61060226",
"0.6057311",
"0.6028298",
"0.5793195",
"0.5762851",
"0.57186365",
"0.5682442",
"0.5655528",
"0.56020796",
"0.5595741",
"0.5517158",
"0.5513095"... | 0.788526 | 1 |
Returns function expression `fn` with its $jw property set to true. This allows us to cpsconvert function expressions while still treating them as "primitive" values. | function $lambda(fn)
{
fn.$jw = true;
return fn;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function make_expr_fun(expr: string): Function {\n return new Function('$', '\"use strict\"; return (' + expr + ')');\n}",
"function fnDirect(value) { return value; }",
"function Xb(){return function(v){return v}}",
"function asFunc(fun) {\n if (fun && fun.FUNC___) {\n // fastpath shortcut\n if... | [
"0.60310686",
"0.55951935",
"0.53745216",
"0.53603303",
"0.53330797",
"0.5297565",
"0.5236747",
"0.5220915",
"0.5217534",
"0.521704",
"0.5165754",
"0.5044904",
"0.503202",
"0.5000492",
"0.49293655",
"0.49270657",
"0.48618898",
"0.4849853",
"0.48414516",
"0.4837272",
"0.483698... | 0.66610974 | 0 |
Returns function expression `fn` with its $isK property set to true. This allows us to detect continuations at runtime while still creating them in a single step (ie, without always having to assign them to an intermediate variable first). The $exHandlers property is set to the current exception handler stack, so that ... | function $makeK(fn, handlerStack)
{
fn.$isK = true;
fn.$exHandlers = handlerStack;
return fn;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function K(x) { return function(y) { return x; }; }",
"function addConsequence (key) {\n return function (fn) {\n var step = last(this.steps)\n if (!step) throw new Error('promise-conditional: ' + key + '(): no steps defined yet')\n\n var steps = replaceLast(this.steps, {\n condition: step.conditi... | [
"0.48911792",
"0.4888561",
"0.4839863",
"0.47969168",
"0.47969168",
"0.47205722",
"0.4697573",
"0.46824163",
"0.46666962",
"0.46666962",
"0.46666962",
"0.45604292",
"0.4551688",
"0.45171073",
"0.45171073",
"0.45171073",
"0.45171073",
"0.45171073",
"0.45101616",
"0.45038012",
... | 0.66482615 | 0 |
Make a copy of the arguments object `origArgs` that doesn't include the continuation argument (if any) as one of the numbered arguments. The continuation is still available as the 'continuation' property. The constructed arguments object is different from the original in these ways: 1) Doesn't include continuation in a... | function $makeArguments(origArgs)
{
var newArgs = new Object;
newArgs.callee = origArgs.callee;
newArgs.caller = origArgs.caller;
if(origArgs[0] && origArgs[0].$isK)
{
newArgs.continuation = origArgs[0];
newArgs.length = origArgs.length - 1;
for(var i = 1; i < origArgs.length; i++)
newArgs[... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function args(original) {\n var result = {length: 0};\n pushMethod.apply(result, original);\n result.CLASS___ = 'Arguments';\n useGetHandler(result, 'callee', poisonArgsCallee);\n useSetHandler(result, 'callee', poisonArgsCallee);\n useGetHandler(result, 'caller', poisonArgsCaller);\n useSetHa... | [
"0.5925813",
"0.5537421",
"0.5479779",
"0.5450111",
"0.5393698",
"0.5319182",
"0.5270074",
"0.5201653",
"0.51565844",
"0.5112931",
"0.5112931",
"0.5034338",
"0.50285137",
"0.49917153",
"0.49655887",
"0.49377763",
"0.4915669",
"0.4884332",
"0.4864435",
"0.48275852",
"0.4789998... | 0.73461145 | 0 |
If `thisObj` is provided, then returns true if its `f` method is a transformed function. If `thisObj` is not provided, then returns true if `f` is a transformed function. We need this function because the very act of attempting to access a nonexistent field on a native object can cause IE to throw (this can also happen... | function $isTransformed(f, thisObj)
{
try
{
if(thisObj != null && thisObj != undefined)
return thisObj[f].$jw;
return f.$jw;
}
catch(e)
{
return false;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function isFunction(obj) {\n return (obj && typeof obj === \"function\");\n }",
"static isFunction(obj) {\n return !!(obj && obj.constructor && obj.call && obj.apply);\n }",
"function checkThis(v, flAllowFunctions = false) {\n const msg = 'Attempting to call a method as a function. Require... | [
"0.64612067",
"0.63638",
"0.6314994",
"0.6300486",
"0.62875915",
"0.62664205",
"0.61862725",
"0.6157187",
"0.6157187",
"0.6110298",
"0.6110298",
"0.60945654",
"0.60878396",
"0.6057479",
"0.60532695",
"0.60532695",
"0.60130936",
"0.60130936",
"0.5918111",
"0.57209146",
"0.5651... | 0.7712687 | 0 |
Call a function in either CPS or direct style, depending upon whether the function is CPStransformed. The continuation `k` will be called with the results regardless of the style that the function is called in. `thisObj` specifies the current `this` context, and `args` is an Array of arguments to pass to `f`. | function $call(f, k, thisObj, args)
{
if($isTransformed(f))
return f.apply(thisObj, [k].concat(args));
else
return k(f.apply(thisObj, args));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function $callFromDirect(f, thisObj, args)\n{\n var argArray = new Array;\n for(var idx = 0; idx < args.length; idx++)\n argArray[idx] = args[idx];\n return $trampoline(function() {\n return f.apply(thisObj, [$id].concat(argArray));\n });\n}",
"function co(f, g){\n... | [
"0.57352686",
"0.5379974",
"0.53783137",
"0.5318837",
"0.4990293",
"0.4990293",
"0.4990293",
"0.4990293",
"0.49691242",
"0.49610615",
"0.4906827",
"0.48554692",
"0.48554692",
"0.48554692",
"0.48554692",
"0.48554692",
"0.48554692",
"0.48554692",
"0.48554692",
"0.48554692",
"0.... | 0.66471386 | 0 |
Call a function in either CPS or direct style, depending upon whether the function is CPStransformed. The continuation `k` will be called with the results regardless of the style that the function is called in. `thisObj` specifies the current `this` context. If `thisObj` is nonnull, the function `thisObj[f]` will be ca... | function $call0(f, k, thisObj, a1, a2, a3, a4, a5, a6, a7, a8)
{
var r;
if(thisObj != null && thisObj != undefined)
{
if($isTransformed(f, thisObj))
{
try
{
switch(arguments.length)
{
case 3:
return thisObj[f](k);
case 4:
return thisObj[f](k,... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function $call(f, k, thisObj, args)\n{\n if($isTransformed(f))\n return f.apply(thisObj, [k].concat(args));\n else\n return k(f.apply(thisObj, args));\n}",
"function $callFromDirect(f, thisObj, args)\n{\n var argArray = new Array;\n for(var idx = 0; idx < args.length; idx++)\n argArray[idx] = args[i... | [
"0.6175858",
"0.5152541",
"0.5065123",
"0.47253442",
"0.47172573",
"0.46988437",
"0.46988437",
"0.46988437",
"0.46988437",
"0.46988437",
"0.46988437",
"0.46988437",
"0.46988437",
"0.46988437",
"0.46414724",
"0.4628125",
"0.46183944",
"0.4600503",
"0.45979092",
"0.45912948",
"... | 0.6686044 | 0 |
Used for replacing expressions of the form `new ctor(arg1, arg2, ...)` with an explicit function call. An object is constructed using the specified constructor `ctor`, which is passed the arguments of the array `args`. The continuation `k` will be called with the result. The constructor will be called in either direct ... | function $new(ctor, k, args)
{
if($isTransformed(ctor))
{
if(!ctor.$blank)
ctor.$blank = $makeBlank(ctor);
var obj = new ctor.$blank;
var augmentedK = $makeK(function(x) {
if(x != null && x != undefined)
return k(x);
else
return k(obj);
});
return ctor.app... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function applyConstructor(ctor, args) {\n // http://stackoverflow.com/a/8843181/4137472\n return new (ctor.bind.apply(ctor, [null].concat(args)));\n }",
"function construct(ctor, args) {\r\n function F() {\r\n return ctor.apply(this, args);\r\n }\r\n F.prototype =... | [
"0.7020985",
"0.687341",
"0.6819989",
"0.67804766",
"0.6742247",
"0.6742247",
"0.6742247",
"0.66977906",
"0.6653526",
"0.66514665",
"0.66514665",
"0.66473424",
"0.6632789",
"0.6521532",
"0.65036315",
"0.6405267",
"0.63401943",
"0.62802523",
"0.6174363",
"0.6047535",
"0.598526... | 0.70243716 | 0 |
Start a trampoline loop that calls `f` on the arguments in `args` with `this` set to `thisObj`. | function $callFromDirect(f, thisObj, args)
{
var argArray = new Array;
for(var idx = 0; idx < args.length; idx++)
argArray[idx] = args[idx];
return $trampoline(function() {
return f.apply(thisObj, [$id].concat(argArray));
});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function Execute(f, args) {\n while (true) try {\n stackLen = 200;\n return f.apply(null, args);\n } catch(ex) {\n if (ex instanceof Continuation) f = ex.f, args = ex.args;\n else throw ex;\n }\n}",
"call(f, ...args) {\n f.call(this, ...args);\n\n return this;\n }",
... | [
"0.60214835",
"0.59341925",
"0.5465586",
"0.5465586",
"0.5463145",
"0.54544246",
"0.5445371",
"0.5445371",
"0.5445371",
"0.5445371",
"0.54092336",
"0.530553",
"0.50672",
"0.5056333",
"0.50444037",
"0.5042449",
"0.5042449",
"0.5042449",
"0.5028034",
"0.5028034",
"0.5028034",
... | 0.69781506 | 0 |
Check to see if the piece can pass through or into a space | pass(space) {
if(space.occupied === this.color){
return false;
} else if(space.terrain === 3){
console.log('Cannot enter mountains')
return false;
} else if(this.mounted === true && space.terrain === 2){
console.log('Mounted units cannot enter rough terrain');
r... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function sameSpaceCheck() {\n\tif(GreenChar.currentTile==PurpleChar.currentTile) {\n\t\tPurpleChar.pitShake();\n\t\tGreenChar.pitShake();\n\t\taudioSourceInvalid = invalidSound.AddComponent(\"AudioSource\");\n\t\taudioSourceInvalid.audio.clip = Resources.Load(\"Sounds/invalid_move_2\");\n\t\taudioSourceInvalid.aud... | [
"0.6930515",
"0.6831875",
"0.67218804",
"0.66049254",
"0.65722716",
"0.6549515",
"0.65168625",
"0.64652747",
"0.64652747",
"0.6417171",
"0.64132744",
"0.6377258",
"0.6344013",
"0.6334139",
"0.63181764",
"0.62915057",
"0.62729365",
"0.6272161",
"0.62600166",
"0.6246489",
"0.62... | 0.69090784 | 1 |
within horizontal & vertical range check | check_hv_range(space) {
const xd = Math.abs(this.x - space.x);
const yd = Math.abs(this.y - space.y);
if(xd <= this.straight || yd <= this.stright) {
return true;
} else {
return false;
};
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"within(a, b) {\n\t\tconst min = this.displayPosition;\n\t\tconst max = new NPoint(min.x + this.nodeDiv.clientWidth, min.y + this.nodeDiv.clientHeight);\n\t\treturn (min.x >= a.x && max.x <= b.x && min.y >= a.y && max.y <= b.y);\n\t}",
"within(a, b) {\n\t\tconst min = this.displayPosition;\n\t\tconst max = new NP... | [
"0.71275663",
"0.71275663",
"0.7057909",
"0.7026115",
"0.6969001",
"0.6964573",
"0.6947843",
"0.6941701",
"0.68838733",
"0.68275714",
"0.67988306",
"0.67888564",
"0.67844725",
"0.67843",
"0.67569435",
"0.6754633",
"0.6753941",
"0.6649157",
"0.66045344",
"0.66023874",
"0.65969... | 0.74674594 | 0 |
within diagonal range check; | check_d_range(space) {
const xd = Math.abs(this.x - space.x);
if(xd <= this.straight) {
return true;
} else {
return false;
};
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"inBounds(row, col) {\n return (row >= 0 && row <= this.MAX_ROW && col >= 0 && col <= this.MAX_COL);\n }",
"check_hv_range(space) {\r\n const xd = Math.abs(this.x - space.x);\r\n const yd = Math.abs(this.y - space.y);\r\n\r\n if(xd <= this.straight || yd <= this.stright) {\r\n retu... | [
"0.69501776",
"0.68201363",
"0.6812384",
"0.6764034",
"0.6623199",
"0.661211",
"0.66112745",
"0.65922225",
"0.64966536",
"0.6458346",
"0.6436909",
"0.6432892",
"0.6414436",
"0.6406671",
"0.6386858",
"0.63687116",
"0.6314675",
"0.6314675",
"0.6314675",
"0.6314675",
"0.6314675"... | 0.6955892 | 0 |
Tests the roundtrip time of Port.postMessage() after opening a channel. | function testConnect() {
setChildTextNode("resultsConnect", "running...");
chrome.tabs.query({active: true, currentWindow: true}, function(tabs) {
var timer = new chrome.Interval();
timer.start();
var port = chrome.tabs.connect(tabs[0].id);
port.postMessage({counter: 1});
port.onMessage.addListener(function ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async function test() {\n const worker = new Worker(`\n require('worker_threads').parentPort.on('message', ({ port }) => {\n port.postMessage('firstMessage');\n port.postMessage('lastMessage');\n port.close();\n });\n `, { eval: true });\n\n for (let i = 0; i < 10000; i++) {\n const { port1, port2... | [
"0.6170296",
"0.5658896",
"0.5658896",
"0.5473332",
"0.54687417",
"0.53508574",
"0.5328549",
"0.52993137",
"0.52861375",
"0.5215141",
"0.52068233",
"0.51961845",
"0.5181569",
"0.5169043",
"0.5100997",
"0.5090834",
"0.507228",
"0.50537604",
"0.50244397",
"0.5015081",
"0.496864... | 0.6086031 | 1 |
Add links in d3_edge. | function updateLinks(key) {
var isSource = key === 'sources';
var neighbours = edge.get(key);
neighbours.forEach(
function(d) {
// get number of time we meet d
var neighbour_count = neighbour_counts[key][... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function addLinks(links) {\r\n\t\tgraph.edges =graph.edges || [];\r\n\t\tif (links!==undefined && links.length) {\r\n\t\t\tlinks.forEach(function(link, index) {\r\n\t\t\t\tvar indexOfSourceAndTarget= getIndexOfSourceAndTarget(link);\r\n\t\t\t\tif (indexOfSourceAndTarget!==undefined && indexOfSourceAndTarget.source... | [
"0.71875584",
"0.663291",
"0.6613549",
"0.65586877",
"0.6532144",
"0.6523612",
"0.6520498",
"0.6515395",
"0.6449254",
"0.6443401",
"0.63778394",
"0.6318881",
"0.62799066",
"0.6268353",
"0.62202126",
"0.6210523",
"0.62025416",
"0.6189043",
"0.61733615",
"0.6173073",
"0.6163956... | 0.66975236 | 1 |
Save node related to entity ids in memory. | function storeNode(node) {
// add reference between entity id and node
if (node.elt.get('info')) {
var entity = node.elt.get('info').entity;
if (entity !== undefined) {
if (nodes_by_entity_ids[entity] === undefined) {
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"storeNode(node, id) {\n node._index_ = id;\n this.nodes.set(id, node);\n }",
"function savePositions () {\n var updateTheseNodes = {};\n\n // store indices for all fixed nodes\n for (var key in data) {\n updateTheseNodes[key] = {\n 'fixedNodes': {},\n 'unfixedNodes': {}\n };\n if (da... | [
"0.64068586",
"0.5768878",
"0.5617854",
"0.5614154",
"0.5602244",
"0.560021",
"0.5410348",
"0.53655905",
"0.5324189",
"0.52951384",
"0.52844286",
"0.5251536",
"0.5249157",
"0.52305055",
"0.51179904",
"0.51042813",
"0.5098946",
"0.5087642",
"0.5080977",
"0.50268024",
"0.501781... | 0.72104216 | 0 |
days: Array of days with boolean values. hours: Is array of hours. min: Is array with minutes. If hours is length = 1, then min is used. Default cron is setetd to 0 12 // 12:00 everyday | constructor(days, hours, min, rdy) {
this.min = "0"
this.hour = "12"
this.day = "*"
this.month = "*"
this.dow = "*"
if (days && hours && min)
this.loadDataFromState(days, hours, min)
.then(resp => { rdy() })
.catch(e => console.log(e))
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static cron(options) {\n if (options.weekDay !== undefined && options.day !== undefined) {\n throw new Error('Cannot supply both \\'day\\' and \\'weekDay\\', use at most one');\n }\n const minute = fallback(options.minute, '*');\n const hour = fallback(options.hour, '*');\n ... | [
"0.59368616",
"0.5580227",
"0.5368965",
"0.52342844",
"0.5100077",
"0.5077287",
"0.5062685",
"0.501419",
"0.50100857",
"0.49884287",
"0.49620888",
"0.4930935",
"0.4922297",
"0.49203175",
"0.49199253",
"0.49173433",
"0.48895082",
"0.48740372",
"0.48493782",
"0.4831883",
"0.482... | 0.55910486 | 1 |
for each category in the budget, collect the total activity in the transactions | getActivity() {
let totalActivity = 0;
// for each category in the budget
this.budget.budgetCategories.forEach(category => {
let categoryActivity = 0;
// for each transaction
this.transactions.forEach(transaction => {
if (transaction.transactio... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function sumCategory() {\n\tconst currentCategory = budgetApp.storage.getCategoryByIndex(\n\t\tbudgetApp.currentCategory\n\t);\n\tcurrentCategory.total = 0;\n\n\tcurrentCategory.inputs.forEach(function(item) {\n\t\tcurrentCategory.total += item.value ? item.value : 0;\n\t});\n}",
"totalBudgeted(date) {\n ... | [
"0.6445617",
"0.6423669",
"0.6263478",
"0.6110284",
"0.59481114",
"0.59019554",
"0.58993524",
"0.5877572",
"0.58726364",
"0.58590806",
"0.5851871",
"0.5835491",
"0.5811169",
"0.5746699",
"0.5741389",
"0.57207805",
"0.5718527",
"0.5715174",
"0.5706476",
"0.567609",
"0.56721133... | 0.72998977 | 0 |
find the f class in d; | function getClass(d,f){
if(document.getElementsByClassName){
return d.getElementsByClassName(f);
}else{
var a = [];
var e =document.getElementsByTagName("*");
for(var c = 0;c<e.length;c++){
var b = e[c].className.split(" ");
if(findArr(b,f)){
a.push(e[c]);
}
}
return a;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function getClassById (id){\n function getClass (class1){\n return class1.id == id;\n }\n\n return classes.find(getClass);\n\n}",
"function matchingClass(cls) {\n return (el) => el.classList.contains(cls);\n }",
"static FindObjectOfType() {}",
"static FindObjectOfType() {}",
"static Fin... | [
"0.5852926",
"0.5768664",
"0.5715221",
"0.5715221",
"0.5715221",
"0.5715221",
"0.5715221",
"0.5715221",
"0.5663201",
"0.55335414",
"0.552095",
"0.54948014",
"0.542128",
"0.53212744",
"0.5232521",
"0.5225072",
"0.5220101",
"0.51590073",
"0.5155185",
"0.51362675",
"0.50921553",... | 0.66137683 | 0 |
================================ GETS ================================ obtains all types plants | async getTypesPlants(req, res) {
try {
const typesPlants = await TypePlant.find({});
res.status(200).send(typesPlants);
} catch (error) {
console.log(error);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function getAllPropertyTypes() {\r\n return get('/propertytype/getall').then(function (res) {\r\n return res.data;\r\n }).catch(function (err) {\r\n return err.response.data;\r\n });\r\n}",
"static async getPlants() {\n const response = await TrefleApi._request(\"GET\", \"\");\n retu... | [
"0.66414756",
"0.6481604",
"0.6421281",
"0.6234752",
"0.61881876",
"0.61817414",
"0.6093411",
"0.60833895",
"0.6079978",
"0.59784055",
"0.5943535",
"0.5882314",
"0.58798134",
"0.5873045",
"0.58585393",
"0.5851506",
"0.5839714",
"0.5819364",
"0.5792244",
"0.5789844",
"0.574498... | 0.7152793 | 0 |
globals canvasDatagrid: false / this file is for developing in a sandbox on a local machine | function g() {
'use strict';
var x,
y,
grid = canvasDatagrid({
parentNode: document.body,
allowFreezingColumns: true,
allowFreezingRows: true,
debug: false
});
grid.style.columnHeaderCellHeight = 40;
grid.style.cellHeight = 40;
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"gridView(canvas) {\n // this method should be completed by the students\n }",
"renderCanvas() {\n /**\n * @type {p5.Vector} mouse\n */\n let mouse = this.p.createVector(this.p.mouseX - this.position.x, this.p.mouseY - this.position.y);\n mouse.x = Math.floor(mouse.x... | [
"0.62909234",
"0.61103076",
"0.60552096",
"0.5941779",
"0.59393555",
"0.58938485",
"0.58049786",
"0.58049786",
"0.5758657",
"0.57575005",
"0.5746821",
"0.5745675",
"0.5745675",
"0.5742877",
"0.5709783",
"0.57059944",
"0.57038003",
"0.56731457",
"0.5670259",
"0.5665548",
"0.56... | 0.7206126 | 0 |
Append new location message to DOM | function appendLocationMessage(data) {
const time = moment(data.created_at).format('h:mm A');
const template = document.querySelector('#message-loc-template').innerHTML;
const html = Mustache.render(template, {
from: data.from,
text: 'My current position.',
url: data.url,
createdAt: ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"append(location, object) {\n\t\t//- set wrap\n\t\tDOMappend(document.querySelector(location), object);\n\t}",
"function addLocation() {\n\tvar i = locations.length;\n\tvar location = new Object();\n\tlocation.x = newLocationX;\n\tlocation.y = newLocationY;\n\tlocation.facing = facing;\n\t$(\"#fullBodymap\").appe... | [
"0.6482639",
"0.6482515",
"0.6329735",
"0.6145606",
"0.6120205",
"0.60558116",
"0.6036779",
"0.60175276",
"0.601572",
"0.59885013",
"0.5940631",
"0.5920052",
"0.59067136",
"0.59063137",
"0.58384514",
"0.5827412",
"0.57968414",
"0.57943535",
"0.578631",
"0.578631",
"0.57814246... | 0.7565304 | 0 |
IO Emit location message | function emitLocationMsg(position) {
return new Promise((resolve) => {
socket.emit('createLocationMessage', {
latitude: position.coords.latitude,
longitude: position.coords.longitude,
}, () => {
resolve();
});
});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function publishLocation() {\n const here = magik.hic(); // get player current location\n const hereJSON = magik.toJSON(here); // turn it into a JSON object\n magik.dixit(`Published location for ${global.PlayerName} via eventbus`);\n // magik.dixit(JSON.stringify(hereJSON)); // you can print it out\n\n... | [
"0.65454614",
"0.63184077",
"0.63184077",
"0.6300967",
"0.6300967",
"0.605969",
"0.605969",
"0.5897345",
"0.58380246",
"0.583357",
"0.58207875",
"0.57920206",
"0.5778752",
"0.5756894",
"0.5756894",
"0.5756894",
"0.5756894",
"0.5756894",
"0.57420176",
"0.5723888",
"0.56624657"... | 0.6471475 | 1 |
find the caseSize of a given title | function findCaseSizeOfTitle(data, title) {
if (title === '') {
return data.caseSize;
}
if (data.title !== title) {
if (data.children) {
let match = 0;
data.children.forEach((d) => {
const res = findCaseSizeOfTitle(d, title);
if (res !== 0) {
match = res;
}
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function findCaseSizeOfTitle(data, title) {\n if (title === '') {\n return data.children.reduce((a, c) => a + c.caseSize, 0);\n }\n if (data.title !== title) {\n if (data.children) {\n let match = 0;\n data.children.forEach((d) => {\n const res = findCaseSizeOfTitle(d, title);\n if... | [
"0.80059767",
"0.67425984",
"0.6102572",
"0.58485836",
"0.5762212",
"0.571185",
"0.5689598",
"0.5606185",
"0.5580951",
"0.5572981",
"0.5572981",
"0.5569807",
"0.5501982",
"0.54197985",
"0.5412475",
"0.54022455",
"0.54005593",
"0.53870976",
"0.5374978",
"0.5374056",
"0.5368371... | 0.8027496 | 0 |
we got the point we want to snap to (C), but we need to check if a coord of the polygon receives priority over C as the snapping point. Let's check this here | _checkPrioritiySnapping (closestLayer) {
const map = this._map
// A and B are the points of the closest segment to P (the marker position we want to snap)
const A = closestLayer.segment[0]
const B = closestLayer.segment[1]
// C is the point we would snap to on the segment.
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"checkDist (coord, polygonIndex, mouseX, mouseY) {\n const VERTEX = this.distance(coord, { x: mouseX, y: mouseY });\n if (VERTEX < 8) {\n this.snappedGeoCoords = { ...this.mouseGeoCoord };\n this.snappedPolygonIndex = polygonIndex;\n return true;\n }\n return false;\n }",
"handleSnapTo... | [
"0.6979792",
"0.6516162",
"0.6308877",
"0.62669784",
"0.62459373",
"0.6207575",
"0.6182705",
"0.61115724",
"0.60660636",
"0.60660636",
"0.60660636",
"0.60660636",
"0.60660636",
"0.606313",
"0.6032464",
"0.6000272",
"0.599023",
"0.5983201",
"0.5983201",
"0.5983201",
"0.5983201... | 0.7308682 | 0 |
creates the middle markes between coordinates | _createMiddleMarker (leftM, rightM) {
// cancel if there are no two markers
if (!leftM || !rightM) {
return false
}
const latlng = Utils.calcMiddleLatLng(
this._map,
leftM.getLatLng(),
rightM.getLatLng()
)
const middleMarker = this._createMarker(latl... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function calcMidpoint(x1, y1, x2, y2) {\n return {\n x: (x1 + x2)/2,\n y: (y1 + y2)/2\n };\n}",
"function middle(x, y, height, width) {\r\n\treturn [x + height / 2, y + width / 2];\r\n}",
"function setMiddleX() {\r\n self.middleX = (self.left + self.right) / 2;\r\n }",
"get mid_x() { //cent... | [
"0.60746336",
"0.6071764",
"0.59413075",
"0.5898607",
"0.58870435",
"0.57327795",
"0.5688709",
"0.5688344",
"0.56695527",
"0.56613946",
"0.56585056",
"0.5626396",
"0.5623397",
"0.5623397",
"0.56099445",
"0.5583482",
"0.5549504",
"0.55492395",
"0.5537982",
"0.5527909",
"0.5526... | 0.6518516 | 0 |
adds a new marker from a middlemarker | _addMarker (newM, leftM, rightM) {
// first, make this middlemarker a regular marker
newM.off('movestart')
newM.off('click')
// now, create the polygon coordinate point for that marker
// and push into marker array
// and associate polygon coordinate with marker coordinate
con... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"addMarker(marker) {\n this._markers[marker.id] = marker;\n this._markerListDirty = true;\n }",
"function addSingleMaker(){\n\tmarker = new google.maps.Marker({\n\t\tposition:{\n\t\t\tlat: -41.295005,\n\t\t\tlng: 174.78362\n\t\t},\n\t\tmap: map,\n\t\tanimation: google.maps.Animation.DROP,\n\t\tic... | [
"0.708869",
"0.6874317",
"0.678981",
"0.67622066",
"0.67567605",
"0.6734004",
"0.67236024",
"0.6716816",
"0.6713898",
"0.6704364",
"0.6700245",
"0.6700245",
"0.6699185",
"0.6698362",
"0.6685099",
"0.66714525",
"0.6665403",
"0.6660773",
"0.6655376",
"0.6647741",
"0.66464025",
... | 0.7177421 | 0 |
Retrieves the network's arp table (require previously executed os ping scan) (warning arp table does not works well on virtualbox debian 9 : show only one entry ...) same problem with vmware esxi or not ? //TODO: test on ubuntu web server TESTED ON : WINDOWS 7, DEBIAN 9 | async arpTable() {
return new Promise((resolve, reject) => {
let flag = '';
if(this.osType === OS_WINDOWS){
flag = '-a'; //on windows : -a is required even for single IP translation
}else{
flag = '-n'; //on debian : show ip in column Address
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"readARP() {\n try {\n var content = fs.readFileSync(ARP_FILE, 'utf8');\n return content\n .split(os.EOL)\n .map((line) => {\n let ip = findPattern(IPV4, line);\n if (!ip) return null;\n let mac = fin... | [
"0.6436241",
"0.61346453",
"0.5668043",
"0.5586548",
"0.55371106",
"0.53139794",
"0.5101919",
"0.50358516",
"0.50296533",
"0.5005702",
"0.4879348",
"0.48349702",
"0.48022667",
"0.47877058",
"0.47617555",
"0.47506824",
"0.47286996",
"0.47157905",
"0.47028956",
"0.46942425",
"0... | 0.79956335 | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.