messages
listlengths
2
2
language
stringclasses
8 values
prompt_type
stringclasses
2 values
lint_errors
int64
0
129
⌀
cyclomatic_complexity
int64
0
32
⌀
license
stringclasses
7 values
commit
stringlengths
40
40
repos
stringlengths
5
116k
new_file
stringlengths
4
220
status
stringclasses
6 values
error
stringlengths
26
74
⌀
is_valid_syntax
bool
2 classes
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar router = require('express').Router();\nvar jwt = require('jsonwebtoken');\nvar jwtSecret = require('../config/jwt_secret');\nvar User = require('../models/user');\n\nrouter.post('/', function(req, res) {\n User.findOne({ username: ...
javascript
edit
0
2
mit
147b15ee4b14c2a69fb12b17d7742f0760eb63f1
unixmonkey/caedence.net-2015,unixmonkey/caedence.net-2015
server/routes/session.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nexport function checkStatus(response) {\n if (response.status >= 200 && response.status < 300) {\n return response.json();\n }\n throw new Error(response.statusText);\n}\n\nexport function getShortDate(dateString) {\n const d = n...
javascript
edit
0
3
mit
25e44bb5e37df64916cd4d249bbf7d10115e2d49
ZachGawlik/print-to-resist,ZachGawlik/print-to-resist
src/utils.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar fs = require(\"fs\");\nvar path = require(\"path\");\nvar _ = require(\"lodash\");\n\nvar animals;\nvar adjectives;\n\nmodule.exports = function () {\n\tif (animals && adjectives) {\n\t\treturn { animals : animals, adjectives :...
javascript
edit
0
3
mit
0ab40cc1769b66a7e72891a79a204b8c0455933f
a-type/adjective-adjective-animal,a-type/adjective-adjective-animal,gswalden/adjective-adjective-animal
lib/loadLists.js
rejected_duplicate
Near-duplicate of sample 69459
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport PropTypes from \"prop-types\";\nimport React, { Component } from \"react\";\nimport {\n StyleSheet,\n ScrollView,\n View,\n TouchableWithoutFeedback,\n ViewPropTypes\n} from \"react-native\";\n\nexport default class OptionLi...
javascript
edit
null
null
mit
3436424d9d945c3132fa196f219fe08fd6887dcd
gs-akhan/react-native-chooser
lib/optionlist.js
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nmodule.exports = function (config) {\n config.set({\n autowatch: false,\n basePath: __dirname,\n browsers: ['PhantomJS'],\n files: [\n 'app/assets/bower_components/jquery/dist/jquery.js',\n 'app/a...
javascript
edit
0
1
mit
3d48ad17557a322f23ac9e1d8a1587507f351bea
jbnicolai/generator-gulp-rk,jbnicolai/generator-gulp-rk,jbnicolai/generator-gulp-rk
app/templates/karma.conf.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar through = require('through')\n , falafel = require('falafel')\n , unparse = require('escodegen').generate\n , util = require('util')\n , minimist = require('minimist')\n\nvar argv = minimist(process.argv.slice(2))\n\nvar default...
javascript
edit
0
4
mit
a172dc9a3ee1343933140b97f8a2bca48c43cff6
tellnes/jedify
js.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst redis = require('./redis');\nconst config = require('./config');\n\nconst getRequest = async (requestId) => {\n // Set TTL for request\n redis.expire(`requests:${requestId}`, config('requests_ttl'));\n return await redis.hgetal...
javascript
edit
0
1
mit
386bd63f8d21fde74018815d410179758f5241cf
DAVFoundation/missioncontrol,DAVFoundation/missioncontrol,DAVFoundation/missioncontrol
server/store/requests.js
rejected_duplicate
Near-duplicate of sample 98151
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport { defaults } from 'lodash';\nimport request from 'request';\nimport config from '../../config';\n\nexport default (url, options = {}) => {\n return new Promise((resolve, reject) => {\n const opts = defaults(options, {\n ...
javascript
edit
0
6
mit
a8e690949e1ae14faa228a9df9f5dce32183d6fa
artsy/metaphysics,broskoski/metaphysics,mzikherman/metaphysics-1,1aurabrown/metaphysics,artsy/metaphysics,mzikherman/metaphysics-1,mzikherman/metaphysics-1,craigspaeth/metaphysics,craigspaeth/metaphysics,artsy/metaphysics,mzikherman/metaphysics-1
lib/apis/fetch.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport UpstreamDredd from 'dredd';\n\nimport Reporter from './reporter';\n\nexport default class Dredd extends UpstreamDredd {\n constructor(config, logger) {\n super(config);\n\n this.canceled = false;\n\n this....
javascript
edit
0
5
mit
8a09e658300e825bbbcbb8ab42999bf3d9ce8958
voldern/roc-plugin-dredd
extensions/roc-plugin-dredd/src/dredd/index.js
rejected_duplicate
Near-duplicate of sample 78131
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar getUrlVar = function(key) {\n var result = new RegExp(key + \"=([^&]*)\", \"i\").exec(window.location.search);\n return result && unescape(result[1]) || \"\";\n};\n\nvar getIDFromURL = function(key) {\n var result = new Reg...
javascript
edit
0
4
mit
1944548e8ea77174d0929230e07a78220d3fe2ff
openfarmcc/OpenFarm,RickCarlino/OpenFarm,CloCkWeRX/OpenFarm,openfarmcc/OpenFarm,RickCarlino/OpenFarm,openfarmcc/OpenFarm,RickCarlino/OpenFarm,CloCkWeRX/OpenFarm,CloCkWeRX/OpenFarm,CloCkWeRX/OpenFarm,openfarmcc/OpenFarm,RickCarlino/OpenFarm
app/assets/javascripts/url-helpers.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nexport function load(files) {\n\treturn {\n\t\ttype: 'FILES_DATA_LOAD',\n\t\tpayload: files.map(file => {\n\t\t\treturn {\n\t\t\t\tid: file.Id,\n\t\t\t\tnewName: file.NewName,\n\t\t\t\toriginalName: file.OriginalName,\n\t\t\t\tsize: fil...
javascript
edit
0
1
mit
1f1f94c22e0e1d6132dfb813e467c8f642df56db
radencode/reflow-client,radencode/reflow-client,radencode/reflow,radencode/reflow
src/screens/rename/views/configure/containers/files/actions.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport RSVP from 'rsvp';\nimport Service from '@ember/service';\n\nexport default Service.extend({\n language: 'en',\n\n init() {\n this._super(...arguments);\n\n this.googlePackages = this.googlePackages || ['corechart', 'bar',...
javascript
edit
0
3
mit
fbc505bfc58d825d5440a260293ea3dcae04d56d
sir-dunxalot/ember-google-charts,sir-dunxalot/ember-google-charts
addon/services/google-charts.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport Ember from 'ember';\n\nexport default Ember.Component.extend({\n classNameBindings: ['offset:col-md-offset-1'],\n offset: false,\n timestamp: function() {\n return moment.unix(this.get('comment.time')).fromNow();\n }.prope...
javascript
edit
0
1
mit
e9c8040befea76e0462f845822d136f39bdfb17a
stevenwu/hacker-news
app/components/child-comment.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar db = require('tresdb-db');\n\nexports.count = function (callback) {\n // Count non-deleted attachments\n //\n // Parameters:\n // callback\n // function (err, number)\n //\n db.collection('attachments').countDocuments({...
javascript
edit
0
2
mit
fd474b753aa3fc34c8a494f578b8ab50bffadcc1
axelpale/tresdb,axelpale/tresdb
server/api/attachments/dal.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar src = exports.src = {};\n\nsrc.app = [\n 'src/index.js',\n 'src/api.js',\n 'src/app.js'\n];\n\nsrc.dummy = [\n 'src/dummy.js',\n 'src/fixtures.js'\n];\n\nsrc.lib = [].concat(\n src.app,\n src.dummy);\n\nsrc.demo...
javascript
edit
0
0
bsd-3-clause
7fe3fdf119d99e40b9917696a90244f05a0205ee
praekelt/vumi-ureport,praekelt/vumi-ureport
paths.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n(function (module) {\n module.component('mcProjectProcesses', {\n templateUrl: 'components/project/processes/mc-project-processes.html',\n controller: 'MCProjectProcessesComponentController'\n });\n\n module.contr...
javascript
edit
0
3
mit
dca31a84fd3ff04258907f5c8474c5576b224d9f
materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org
website/app/components/project/processes/mc-project-processes.component.js
rejected_duplicate
Near-duplicate of sample 68506
true
[ { "role": "user", "content": "Write javascript code for the following: Set up controllers for home and forecast" }, { "role": "assistant", "content": "/*jshint esversion: 6 */\n\nconst primed = angular.module('primed', ['ngRoute', 'ngResource']);\n\nprimed.controller('homeController', ['$scope',...
javascript
new_file
0
1
mit
d4a1349279c3218f75db94e3243cd272bf05e5e4
adam-rice/Primed,adam-rice/Primed
app.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nvar deepFind = function(obj, path) {\n\n if ((typeof obj !== \"object\") | obj === null) {\n\t return undefined;\n }\n if (typeof path === 'string') {\n path = path.split('.');\n }\n\n if (!Array.isArray(path))...
javascript
edit
0
5
mit
2db58a7024cade6d205a55afcfa40cf12bd43c69
yashprit/deep-find
index.js
rejected_duplicate
Near-duplicate of sample 78717
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n#!/usr/bin/env node\nconst express = require('express');\nconst fileExists = require('file-exists');\nconst bodyParser = require('body-parser');\nconst fs = require('fs');\nconst { port = 8123 } = require('minimist')(process.argv.slice(...
javascript
edit
0
4
mit
f24f75fc51c6bf508ec122bc5f25bcaaf1988219
finom/node-direct,finom/node-direct
index.js
rejected_duplicate
Near-duplicate of sample 94891
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/*jshint node: true */\n\"use strict\";\n\nmodule.exports = {\n\n /**\n * Returns true if and only if the string value of the first argument\n * ends with the given suffix. Otherwise, returns false. Does NOT support\n * t...
javascript
edit
0
3
mit
c9a7cc0dd50e934bb214c7988081b2bbe5bfa397
JangoBrick/teval,JangoBrick/teval
lib/stringutil.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar fs = require('fs');\nvar path = require('path');\nvar assert = require('assert');\n\nvar page = require('../').parse.page;\n\n\nvar CONTENT = fs.readFileSync(path.join(__dirname, './fixtures/PAGE.md'), 'utf8');\nvar LEXED = page(CON...
javascript
edit
0
1
apache-2.0
4bdcfd07a97de370aead0cbb8a9707568c9e4138
svenkatreddy/gitbook,intfrr/gitbook,guiquanz/gitbook,minghe/gitbook,GitbookIO/gitbook,qingying5810/gitbook,ferrior30/gitbook,haamop/documentation,palerdot/gitbook,gaearon/gitbook,ShaguptaS/gitbook,escopecz/documentation,rohan07/gitbook,bjlxj2008/gitbook,gaearon/gitbook,ferrior30/gitbook,jocr1627/gitbook,bjlxj2008/gitbo...
test/page.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nrequire('./lib/boot/logger');\n\nvar defaultConfig = {\n amqpUrl: process.env.AMQP_URL || 'amqp://localhost',\n amqpPrefetch: process.env.AMQP_PREFETCH || 10,\n amqpRequeue: true\n};\n\nmodule.exports = function(config) {\n for (var...
javascript
edit
0
4
mit
ae10cb3c2b3dd964c6d1f0bd670410b1833db1a5
dial-once/node-bunnymq
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar path = require('path');\nvar findParentDir = require('find-parent-dir');\nvar fs = require('fs');\n\nfunction resolve(targetUrl, source) {\n var packageRoot = findParentDir.sync(source, 'node_modules');\n\n if (!packageRoot) {\n ...
javascript
edit
0
6
apache-2.0
9bb668b1066497413f8abd0fff79e835ff781662
matthewdavidson/node-sass-tilde-importer
index.js
rejected_duplicate
Near-duplicate of sample 92494
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst ghost = require('ghost');\n\nghost().then(function (ghostServer) {\n ghostServer.start();\n});\n\n```\n\nApply this change: Add explicit config.js to ghost constructor" }, { "role": "assistant", "content": "const gh...
javascript
edit
0
1
mit
1a88800d7b13b65206818de6e472ceef30054892
jtanguy/clevercloud-ghost
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nvar throttle = require('throttleit');\n\nfunction requestProgress(request, options) {\n var reporter;\n var delayTimer;\n var delayCompleted;\n var totalSize;\n var previousReceivedSize;\n var received...
javascript
edit
0
4
mit
d21950affe91ead5be06c1197441577053464dcc
IndigoUnited/node-request-progress
index.js
rejected_duplicate
Near-duplicate of sample 72290
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport Ember from 'ember';\nimport { moduleForComponent, test } from 'ember-qunit';\n\nlet component;\n\nmoduleForComponent('tooltip-on-parent', 'Unit | Component | tooltip on parent', {\n unit: true,\n\n setup() {\n component = th...
javascript
edit
0
1
mit
a326ba30f5781c1a1297bb20636023021ed4baab
sir-dunxalot/ember-tooltips,cdl/ember-tooltips,cdl/ember-tooltips,zenefits/ember-tooltips,zenefits/ember-tooltips,kmiyashiro/ember-tooltips,maxhungry/ember-tooltips,sir-dunxalot/ember-tooltips,maxhungry/ember-tooltips,kmiyashiro/ember-tooltips
tests/unit/components/tooltip-on-parent-test.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nimport { NativeAppEventEmitter, NativeModules } from 'react-native';\nconst ReactNativeBluetooth = NativeModules.ReactNativeBluetooth;\n\nconst didChangeState = (callback) => {\n var subscription = NativeAppEventEmitte...
javascript
edit
0
2
apache-2.0
8aef4999d40fa0cedd3deb56daadbcd09eeece09
sogilis/react-native-bluetooth,sogilis/react-native-bluetooth-manager,sogilis/react-native-bluetooth,sogilis/react-native-bluetooth,sogilis/react-native-bluetooth-manager,sogilis/react-native-bluetooth-manager,sogilis/react-native-bluetooth-manager,sogilis/react-native-bluetooth
index.js
rejected_duplicate
Near-duplicate of sample 99275
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports = function(options) {\n\tvar cb = (options && options.variable) || 'cb';\n\tvar regexp = new RegExp('(?:\\\\b|&)' + cb + '=([a-zA-Z$_][a-zA-Z0-9$_]*)(?:&|$)');\n\treturn {\n\t\treshook: function(server, tile, req, res, re...
javascript
edit
0
4
apache-2.0
49dfc1e0d40375461c49699bf4285e17ab725e35
naturalatlas/tilestrata-jsonp
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n#!/usr/bin/env node\n'use strict';\nvar meow = require('meow');\nvar zipGot = require('./');\nvar objectAssign = require('object-assign');\n\nvar cli = meow({\n\thelp: [\n\t\t'Usage',\n\t ' zip-got <url> <exclude-patterns>... --cleanu...
javascript
edit
0
2
mit
cdaf0617ab59f81b251ab92cb7f797e3b626dbc1
ragingwind/zip-got,ragingwind/node-got-zip
cli.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n//\n// Copyright 2014 Ilkka Oksanen <<EMAIL>>\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the Licens...
javascript
edit
0
1
apache-2.0
75ef865f8867e45cfe60b8222de85ea20ac50670
ilkkao/mas,ilkkao/mas,ilkkao/mas,ilkkao/mas
server/controllers/userFiles.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n$(document).ready( function () {\n $(\"button.upvote\").click( function() {\n var commentId = $(\".upvote\").data(\"id\");\n event.preventDefault();\n $.ajax({\n url: '/response/up_vote',\n method: 'POST',\n dat...
javascript
edit
0
1
mit
220f460eda753822a83895750816972905b95d71
great-horned-owls-2014/dbc-what-is-this,great-horned-owls-2014/dbc-what-is-this
app/assets/javascripts/responses.js
rejected_duplicate
Near-duplicate of sample 72598
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nrequire('ts-node/register');\nexports.config = {\n baseUrl: 'http://127.0.0.1:8100/',\n seleniumAddress: 'http://127.0.0.1:4723/wd/hub',\n\n specs: [\n '../src/**/*.e2e.ts'\n ],\n exclude: [],\n\n framework: 'mocha',\n\n allSc...
javascript
edit
0
1
mit
7af0c2ae8b4b051f380c11bef21cc4f3ef5ee2b8
takeo-asai/typescript-starter,takeo-asai/typescript-starter,takeo-asai/typescript-starter,takeo-asai/typescript-starter
config/protractor.config.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport GeminiScrollbar from 'react-gemini-scrollbar';\n\nlet scrollbarWidth = null;\n\nconst ScrollbarUtil = {\n /**\n * Taken from Gemini's source code with some edits\n * https://github.com/noeldelgado/gemini-scrollbar/blob/maste...
javascript
edit
0
4
apache-2.0
81702fccfd16cae2feb1d083cfc782c1fb9ecc3c
dcos/dcos-ui,dcos/dcos-ui,dcos/dcos-ui,dcos/dcos-ui,dcos/dcos-ui
src/js/utils/ScrollbarUtil.js
rejected_duplicate
Near-duplicate of sample 98344
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// Adapted from https://github.com/jonschlinkert/is-plain-object\nfunction isObject(val) {\n return val != null && typeof val === 'object' && Array.isArray(val) === false;\n}\n\nfunction isObjectObject(o) {\n return isObject(o) === tr...
javascript
edit
0
5
mit
ec25aaaa53dcfa271f73a8f45fe65fd6e15f7973
chentsulin/react-redux-sweetalert
src/utils/is-plain-object.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n * Optimize module initialization.\n *\n * Site Kit by Google, Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License....
javascript
edit
0
1
apache-2.0
99f1680999747da59ef4b90bafddb467a92c5e19
google/site-kit-wp,google/site-kit-wp,google/site-kit-wp,google/site-kit-wp
assets/js/modules/optimize/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React, {useState} from 'react';\nimport PropTypes from 'prop-types';\n\nconst Counter = ({initialCount}) => {\n const [count, setCount] = useState(initialCount);\n const increment = () => setCount(count + 1);\n\n return ...
javascript
edit
0
1
isc
507b31b8ec5b3234db3a32e2c0a0359c9ac2cccb
thorgate/django-project-template,thorgate/django-project-template,thorgate/django-project-template,thorgate/django-project-template,thorgate/django-project-template
{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/app/src/components/Counter/Counter.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React from 'react';\nimport PropTypes from 'prop-types';\nimport {\n Well, InputGroup, FormControl, Button, Glyphicon\n} from 'react-bootstrap';\n\n\nclass SearchPostsWell extends React.Component {\n constructor(props) {\n ...
javascript
edit
0
3
mit
d4b9fd4ab129d3e5f8eefcdc368f951e8fd51bee
akornatskyy/sample-blog-react-redux,akornatskyy/sample-blog-react-redux
src/js/posts/components/search-posts-well.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar utils = require(\"radiodan-client\").utils,\n logger = utils.logger(__filename);\n\nmodule.exports = function(radiodan){\n return function() {\n clearPlayers(radiodan.cache.players).then(\n function() {\n process....
javascript
edit
0
2
apache-2.0
57a15a5194bc95b77110150d06d05a7b870804ce
radiodan/magic-button,radiodan/magic-button
lib/graceful-exit.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n\"use strict\";\n\nvar messages = require(\"./messages\");\nvar config = require(\"./config\");\nvar snippetUtils = require(\"./snippet\").utils;\n\nvar connect = require(\"connect\");\nvar http = require(\"http\"...
javascript
edit
0
1
apache-2.0
f24990cf94729e2aa25ea6e8cf4a32e0e38b150f
EdwonLim/browser-sync,stevemao/browser-sync,stevemao/browser-sync,zhelezko/browser-sync,EdwonLim/browser-sync,syarul/browser-sync,BrowserSync/browser-sync,Plou/browser-sync,nitinsurana/browser-sync,schmod/browser-sync,chengky/browser-sync,BrowserSync/browser-sync,schmod/browser-sync,Teino1978-Corp/Teino1978-Corp-browse...
lib/control-panel.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n#!/usr/bin/env node\n\nvar browserslist = require('./');\nvar pkg = require('./package.json');\nvar args = process.argv.slice(2);\n\nif ( args.length <= 0 || args.indexOf('--help') >= 0 ) {\n console.log([\n '...
javascript
edit
0
1
mit
cb7990566b9ac406946d57a0c4f00fb625d21efd
mdix/browserslist,ai/browserslist
cli.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar Twit = require('twit');\nvar twitInfo = [consumer_key, consumer_secret, access_token, access_token_secret];\n\n//use when testing locally\n// var twitInfo = require('./config.js')\n\nvar twitter = new Twit(twitInfo);\n\nvar useUpper...
javascript
edit
0
2
mit
8baf5366ca919593fe2f00dc245cba9eac984139
almightyboz/RabelaisMarkov
bot.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n$(document).ready(function(){\nvar latlng = new google.maps.LatLng(45.5374054, -122.65028);\nvar myOptions = {\n zoom: 8,\n center: latlng,\n mapTypeId: google.maps.MapTypeId.TERRAIN\n};\nvar map = new google.maps.Map(document...
javascript
edit
0
1
mit
33904221107d2f521b743ad06162b7b274f2d9ca
jlavallee/HotGator,jlavallee/HotGator
html/js/code.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport AppDispatcher from '../dispatcher/AppDispatcher';\nimport AppConstants from '../constants/AppConstants';\n\n\n\nexport default {\n\n add: function(type, content) {\n var id = Date.now();\n var notification = { _...
javascript
edit
0
2
mit
315f321d0c0d55669519cee39d0218cc4b71323f
KeitIG/museeks,KeitIG/museeks,MrBlenny/museeks,KeitIG/museeks,MrBlenny/museeks
src/js/actions/NotificationsActions.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/*\n * raf.js\n * https://github.com/ngryman/raf.js\n *\n * original requestAnimationFrame polyfill by Erik Möller\n * inspired from paul_irish gist and post\n *\n * Copyright (c) 2013 ngryman\n * Licensed under the MIT license.\n */\n\...
javascript
edit
0
5
mit
7cd66b92b824262a898bf539b0faba5ace6eaa0c
ngryman/raf.js
raf.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst path = require('path');\nmodule.exports = {\n entry: './build/index.js',\n devtool: 'source-map',\n mode: 'production',\n resolve: {\n alias: {\n ol: path.resolve('./src/ol'),\n },\n },\n output: {\n path: path...
javascript
edit
0
0
bsd-2-clause
3e4c82c5571f056be85fed1ae0fe3349ecfbb3d9
oterral/ol3,stweil/ol3,stweil/openlayers,adube/ol3,ahocevar/ol3,adube/ol3,ahocevar/openlayers,stweil/openlayers,ahocevar/openlayers,ahocevar/ol3,ahocevar/ol3,ahocevar/openlayers,oterral/ol3,stweil/ol3,adube/ol3,openlayers/openlayers,stweil/openlayers,ahocevar/ol3,stweil/ol3,oterral/ol3,stweil/ol3,openlayers/openlayers,...
config/webpack-config-legacy-build.js
rejected_duplicate
Near-duplicate of sample 96244
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport issueStrats from '../issue-strategies/index.js';\nimport * as promiseUtils from '../promise-utils.js';\n\nfunction validateStrategies(issueKey, jiraClientAPI) {\n return jiraClientAPI.findIssue(issueKey)\n .then(content =>\n ...
javascript
edit
0
2
mit
da7a5d7b717df6312bba26de5cf83fab651c37d8
TWExchangeSolutions/jira-precommit-hook,DarriusWrightGD/jira-precommit-hook
src/validation-strategies/one-valid-issue.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n * See https://github.com/evanw/node-source-map-support#browser-support\n * This is expected to be included in a browserify-module to give proper stack traces, based on browserify's source maps.\n */\nrequire('source-map-support')....
javascript
edit
0
0
bsd-3-clause
e2367d78b76e73a56ca7e1d04c87d6727a169397
splashblot/dronedb,codeandtheory/cartodb,splashblot/dronedb,CartoDB/cartodb,CartoDB/cartodb,splashblot/dronedb,splashblot/dronedb,codeandtheory/cartodb,codeandtheory/cartodb,CartoDB/cartodb,splashblot/dronedb,CartoDB/cartodb,codeandtheory/cartodb,codeandtheory/cartodb,CartoDB/cartodb
lib/build/source-map-support.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/*jshint node:true*/\n\nvar pkg = require('../../package.json');\n\nfunction getPeerDependencyVersion(packageJson, name) {\n var peerDependencies = packageJson.peerDependencies;\n\n return peerDependencies[name];\n}\n\nmodule.exports ...
javascript
edit
0
2
mit
d7070f4e55ba327ccce81de398d8a4ae66e38d06
pswai/ember-cli-react,pswai/ember-cli-react
blueprints/ember-cli-react/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports = {\n env: {\n amd: <%= (moduleFormat === 'amd') %>,\n commonjs: <%= (moduleFormat === 'commonjs') %>,\n es6: true,\n browser: true,\n jquery: true,\n mocha: <%= !useJest %>,\n...
javascript
edit
null
null
mit
4bbc355d992c2998f93058770d9f29faf3d9bc11
jhwohlgemuth/generator-techtonic,jhwohlgemuth/generator-techtonic,omahajs/generator-omaha,omahajs/generator-omaha,omahajs/generator-omaha,jhwohlgemuth/generator-techtonic,omahajs/generator-omaha
generators/project/templates/config/_eslintrc_webapp.js
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports = {\n // Packet constants\n PLAYER_START: \"1\",\n PLAYER_ADD: \"2\",\n PLAYER_ANGLE: \"2\",\n PLAYER_UPDATE: \"3\",\n PLAYER_ATTACK :\"4\",\n LEADERBOAD: \"5\",\n PLAYER_MOVE: \"3\",\n PLAYER_R...
javascript
edit
0
0
mit
761be726ceecbbd6857e1d229729ad78d327a685
wwwwwwwwwwwwwwwwwwwwwwwwwwwwww/m.io
src/utils/packetCodes.js
rejected_duplicate
Near-duplicate of sample 77924
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst base = require('./karma.base.conf');\n\nmodule.exports = function(config) {\n\tconfig.set(Object.assign(base, {\n\t\tbrowserStack: {\n\t\t\tusername: process.env.BROWSERSTACK_USERNAME,\n\t\t\taccessKey: process.env.BROWSERSTACK_AC...
javascript
edit
0
1
apache-2.0
eed6ca7654f6b794eb2d8731838a8998fdd8d9ba
weepower/wee-core
tests/config/karma.browserstack.conf.js
rejected_duplicate
Near-duplicate of sample 83439
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport mongoose from 'mongoose';\n\nconst host = process.env.MONGO_HOST;\nconst database = encodeURIComponent(process.env.MONGO_DATABASE);\nconst user = encodeURIComponent(process.env.MONGO_USER);\nconst password = encodeURIComponent(pr...
javascript
edit
0
1
mit
652f9ddc899d89f98c7f45a85ad81e90428cf922
WhosMySanta/app,WhosMySanta/app,WhosMySanta/whosmysanta
packages/whosmysanta-backend/src/data/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\nQt.include('call.js');\n\nvar createMessageType = (function() {\n var MessageBase = (function() {\n var constructor = function(descriptor) {\n this._descriptor = descriptor;\n\n this.serializeTo = function(o...
javascript
edit
0
3
mit
84220dd29e94cd40daf4d04c227a8e4c0d02cb93
nsuke/protobuf-qml,nsuke/protobuf-qml,nsuke/protobuf-qml,nsuke/protobuf-qml
lib/protobuf/imports/message.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar config = {\n /*\n metrics: {\n port: 4001\n }\n */\n/* // For Passport auth via geddy-passport\n, passport: {\n twitter: {\n consumerKey: 'XXXXX'\n , consumerSecret: 'XXXXX'\n }\n , facebook: {\n clientID:...
javascript
edit
0
0
apache-2.0
dfc02887804e7c5b2ce1555677cff4cd4910391c
kolonse/ejs,mmis1000/ejs-promise,rpaterson/ejs,cnwhy/ejs,xanxiver/ejs,cnwhy/ejs,mde/ejs,TimothyGu/ejs-tj,TimothyGu/ejs-tj,jtsay362/solveforall-ejs2,operatino/ejs,tyduptyler13/ejs,insidewarehouse/ejs,zensh/ejs,kolonse/ejs,zensh/ejs,insidewarehouse/ejs
templates/base/environment.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React, { Component } from 'react';\nimport Button from './components/Button.jsx';\n\nexport default class App extends Component {\nconstructor() {\n super();\n this.state = {\n selectedRange: 'bar',\n ranges: ...
javascript
edit
0
1
mit
3c23af1029c081be78aed07725495eaf2d8506f5
monners/date-range-list,monners/date-range-list
src/App.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React from 'react';\nimport { Link } from 'react-router';\n\nimport './Navbar.scss';\n\nexport default class Navbar extends React.Component {\n render () {\n return (\n <div className='navigation-items'>\n <Link c...
javascript
edit
0
1
mit
01c0bc1440fb4c14a8ae49b667fba0ab09accbc8
terakilobyte/terakilobyte.github.io,terakilobyte/terakilobyte.github.io
src/components/Navbar/Navbar.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar AI;\n\nAI = function(baseSpeed) {\n this.baseSpeed = baseSpeed;\n};\n\n// Simply follows the ball at all times\nAI.prototype.easy = function(player, ball) {\n 'use strict';\n var newY;\n newY = ball.y - (player.paddle.y + player...
javascript
edit
0
5
mit
a5747b9e826d79342b54d08857b57cb523e9225f
msanatan/pong,msanatan/pong,msanatan/pong
javascripts/ai.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nangular.module('myApp', [\n 'ngAnimate',\n 'ui.router',\n 'templates'\n ])\n .config(function($stateProvider, $urlRouterProvider, $locationProvider) {\n /**\n * Routes and States\n */\n $stateProvider\n .state(...
javascript
edit
0
1
mit
17d1c09accef6235dd29b4fd7f7bc25392092944
jeremymcintyre/rails-angular-sandbox,jeremymcintyre/rails-angular-sandbox,jeremymcintyre/rails-angular-sandbox
app/assets/javascripts/ng-app/app.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n * Utility function to check whether or not a view-context is a site kit view.\n *\n * Site Kit by Google, Copyright 2022 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this...
javascript
edit
0
1
apache-2.0
d45df4a5745c2bb3f5301f7a0ef587a3c5a73594
google/site-kit-wp,google/site-kit-wp,google/site-kit-wp,google/site-kit-wp
assets/js/util/is-site-kit-screen.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst mongoose = require('mongoose');\nconst Schema = mongoose.Schema;\n\nconst userSchema = new Schema({\n _id: { type: Number },\n profileImageName: { type: String, default: 'default.png' },\n email: { type: String, unique: t...
javascript
edit
0
1
mit
4ee7bc82b1282e718f88ba36ca2f7236f0019273
KidsTales/kt-web,KidsTales/kt-web
server/db/schemas/User.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict'; /*jslint node: true, es5: true, indent: 2 */\nvar util = require('util');\nvar stream = require('stream');\n\nvar TimeoutDetector = module.exports = function(opts) {\n if (opts === undefined) opts = {};\n // opts = {[tim...
javascript
edit
0
3
mit
b25d54624f98726483c25a4f5f25419b1ae42660
chbrown/twilight,chbrown/twilight,chbrown/tweetjobs
timeout.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport dispatcher from '../dispatcher/dispatcher';\nimport actionTypes from '../constants/action-types';\n\nimport axios from 'axios';\nimport {\n apiConstants\n} from '../constants/api-constants';\nconst {\n baseURL,\n apiKey,\n us...
javascript
edit
0
1
bsd-3-clause
17e1e14851112344b59b366676b3378ae09e798a
jeromelachaud/Last.fm-Activities-React,jeromelachaud/Last.fm-Activities-React
src/actions/action-creators.js
rejected_duplicate
Near-duplicate of sample 68273
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/*global define*/\ndefine([\n 'underscore',\n 'backgrid'\n], function (_, Backgrid) {\n 'use strict';\n\n var SelectCellRadioEditor;\n\n SelectCellRadioEditor = Backgrid.SelectCellEditor.extend({\n /**\n * ...
javascript
edit
0
1
mit
0104841e84a3cdd1019f416678621e7bd9606802
2ndkauboy/platform,trustify/oroplatform,geoffroycochard/platform,northdakota/platform,ramunasd/platform,Djamy/platform,2ndkauboy/platform,trustify/oroplatform,orocrm/platform,geoffroycochard/platform,hugeval/platform,geoffroycochard/platform,Djamy/platform,hugeval/platform,orocrm/platform,Djamy/platform,northdakota/pla...
src/Oro/Bundle/DataGridBundle/Resources/public/js/datagrid/editor/select-cell-radio-editor.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar App = Ember.Application.create({\n LOG_TRANSITIONS: true,\n LOG_TRANSITIONS_INTERNAL: true\n});\n\nApp.ApplicationAdapter = DS.RESTAdapter.extend({\n host: 'https://website-api.withregard.io',\n namespace: 'v1'\n});\n\nApp.Appli...
javascript
edit
0
4
apache-2.0
ddd9683976e6c41e6e6e2bd9de58232fabc2197b
with-regard/regard-website
portal/js/app.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport Component from '@ember/component';\nimport { inject as service } from '@ember/service';\nimport { task } from 'ember-concurrency';\n\nexport default Component.extend({\n router: service(),\n currentUser: service(),\n store: se...
javascript
edit
0
2
bsd-2-clause
bacca2639a4f76be79fff09a4442b3be9ecf861c
barberscore/barberscore-web,barberscore/barberscore-web,barberscore/barberscore-web
app/components/session-verify.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport test from 'ava'\nimport { assert } from '../../utils/chai'\nimport { normalizeHandler } from '../../utils/normalizer'\nimport * as queue from '../../../src/resources/queue/handler'\n\nconst create = normalizeHandler(queue.create)...
javascript
edit
0
1
mit
c623338be8d8ffe4771d670dc63d3ecaa8c1e43d
vcapretz/superbowleto,vcapretz/superbowleto
test/resources/queue/handler.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar minimist = require('minimist')\nvar xtend = require('xtend')\n\nmodule.exports = parseArgs\nfunction parseArgs (args, opt) {\n var argv = minimist(args, {\n boolean: [\n 'stream',\n 'debug',\n 'errorHandler',\n ...
javascript
edit
0
1
mit
752b6fa627271582c8facb56c80d65ae5cd246f9
msfeldstein/budo,mattdesl/budo,msfeldstein/budo,mattdesl/budo
lib/parse-args.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\ngemini.suite('CSS component', (suite) => {\n suite.setUrl('/?selectedKind=CSS%20component&selectedStory=default')\n .setCaptureElements('#storybook-preview-iframe')\n .capture('plain');\n});\n\ngemini.suite('Stateless functional ...
javascript
edit
0
1
mit
f147f649aaad040522d93becb2a7bc845494fc76
z-kit/component,z-kit/z-hello,z-kit/component,z-kit/z-hello
gemini/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\n/**\n * @ngdoc service\n * @name dockstore.ui.WebService\n * @description\n * # WebService\n * Constant in the dockstore.ui.\n */\nangular.module('dockstore.ui')\n .constant('WebService', {\n API_URI: 'http://www.do...
javascript
edit
0
0
apache-2.0
c94b627360ff4801d64e676e3714faa9a3490c40
ga4gh/dockstore-ui,ga4gh/dockstore-ui,ga4gh/dockstore-ui
app/scripts/services/webservice.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar playTarget = '.b-jambox__play';\nvar nextTarget = '.b-jambox__next';\nvar prevTarget = '.b-jambox__prev';\n\nfunction onKeyPress(key) {\n if (key === PREV) {\n simulateClick(document.querySelector(prevTarget));\n } else...
javascript
edit
0
4
apache-2.0
530467c4840fcd528cd836d1e25fa3174c6b3b9e
borismus/keysocket,iver56/keysocket,feedbee/keysocket,vinyldarkscratch/keysocket,feedbee/keysocket,borismus/keysocket,noelmansour/keysocket,kristianj/keysocket,ALiangLiang/keysocket,kristianj/keysocket,chrisdeely/keysocket,legionaryu/keysocket,vladikoff/keysocket,vinyldarkscratch/keysocket,Whoaa512/keysocket
extension/keysocket-yandex-music.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nclass Storage extends Phaser.Plugin {\n\n constructor (game, parent) {\n super(game, parent);\n }\n\n init (name) {\n localforage.config({ name });\n }\n\n // ------------------------------------------------------------------...
javascript
edit
0
1
mit
b94a452d4030829731047014cefa4f178591f891
rblopes/heart-star,rblopes/heart-star
src/scripts/plugins/Storage.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar AuthLoader = require('../authorizer/index').AuthLoader,\n createAuthInterface = require('../authorizer/auth-interface'),\n\n util = require('../authorizer/util');\n\nmodule.exports = [\n // Post authorization.\n function...
javascript
edit
0
5
apache-2.0
ae78fc5de9f85dd9e13412f626b643314799e487
postmanlabs/postman-runtime,postmanlabs/postman-runtime
lib/runner/request-helpers-postsend.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\nvar child_process = require('child_process');\nvar fs = require('fs');\nvar Module = require('module');\nvar path = require('path');\nvar _ = require('lodash');\n\nvar originalRequire = module.require;\nmodule.require = f...
javascript
edit
0
3
mit
4bac6994b83e1ae64a01bb25e060a3730571df38
yamadapc/nrequire
lib/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n * @param {import('discord.js').Guild} guild\n */\nfunction guild (guild) {\n return `${guild.id}, ${guild.name}`\n}\n\n/**\n* @param {import('discord.js').TextChannel} channel\n*/\nfunction channel (channel) {\n return `(${chann...
javascript
edit
0
1
mit
1b73b33858db20c9cfdc171a406d12c1bcfa590f
synzen/Discord.RSS,synzen/Discord.RSS
src/util/logger/serializers.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\n// APEP capital cases are also provided. Apple devices tend to provide uppercase file extensions and this conflicts with a known bug\n// APEP See : https://github.com/Artear/ReactResumableJS/issues/20\nvar imageFileTyp...
javascript
edit
0
0
mit
4acee6d5936b15656ea280b24b98de6771849497
UoSMediaFrameworks/uos-media-playback-framework-legacy,UoSMediaFrameworks/uos-media-playback-framework-legacy,UoSMediaFrameworks/uos-media-playback-framework-legacy
src/js/utils/allowed-upload-file-extensions.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nconst async = require('async');\nconst redis = require('redis').createClient(6379, 'redis');\n\nmodule.exports = redis;\n\nmodule.exports.jenkinsChanged = function(nodes, cb) {\n async.filter(nodes, function(node, cb) ...
javascript
edit
0
3
mit
8290936c560abc56ee43635ff7c90b14ea3042d2
Starefossen/jenkins-monitor
lib/redis.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React, { createContext, useState } from 'react';\nimport PropTypes from 'prop-types';\n\nconst UiContext = createContext({\n uiDarkMode: false,\n uiIsLoading: false,\n uiIsAnimating: false,\n});\n\nconst UiProvider = ({ childr...
javascript
edit
0
1
mit
fac6e93a0fe817fb3315f1f0806004c0e07cf64c
dreamyguy/gitinsight,dreamyguy/gitinsight,dreamyguy/gitinsight
frontend/src/contexts/UiProvider.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// 404 page using mapbox to show cities around the world.\n\n// Helper to generate the kind of coordinate pairs I'm using to store cities\nfunction bounds() {\n var center = map.getCenter();\n return {lat: center.lat, lng: center.lng,...
javascript
edit
0
2
mit
fde26acaffdb416751ff17c391f3a411e8d9207b
controversial/controversial.io,controversial/controversial.io,controversial/controversial.io
404/main.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar virus = document.querySelector(\"div\");\nvar x = 1;\nvar y = 0;\nvar vy = 0;\nvar ay = 0;\nvar vx = .1; // px per millisecond\nvar startTime = Date.now();\nvar clickTime;\ntimer = setInterval(function animate() {\n\tvar t = Date.no...
javascript
edit
0
4
mit
def7c0fcb0c0c2adbd66d530d0634d6a6e53f0d7
BOZ2323/virun,BOZ2323/virun
virun.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/* @flow */\nimport React, { PureComponent } from 'react';\nimport { View, StyleSheet } from 'react-native';\n\nimport connectWithActions from '../connectWithActions';\nimport type { Actions } from '../types';\nimport { Screen, ZulipBut...
javascript
edit
null
null
apache-2.0
9e43aeae0f6ea5333fb41444a7722f5afbd12691
vishwesh3/zulip-mobile,vishwesh3/zulip-mobile,vishwesh3/zulip-mobile,vishwesh3/zulip-mobile
src/start/WelcomeScreen.js
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar Q = require('q');\nvar tabBroker = require('../../src/js/client/tab_broker');\n\nexports.query = {\n setUp: function(cb) {\n var chrome = {\n runtime: {\n sendMessage: function(opts, callback) {\n callback({...
javascript
edit
0
2
mit
d0f07c2bdcf3b282555ab86c47c19e953b3f9715
findjashua/chrome-fast-tab-switcher,eanplatter/chrome-fast-tab-switcher,eanplatter/chrome-fast-tab-switcher,BinaryMuse/chrome-fast-tab-switcher,modulexcite/chrome-fast-tab-switcher,alubling/chrome-fast-tab-switcher,BinaryMuse/chrome-fast-tab-switcher,billychan/chrome-fast-tab-switcher,eanplatter/chrome-fast-tab-switche...
test/client/tab_broker_test.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// Dependencies\nvar Typpy = require(\"typpy\")\n , NodeElm = require(\"./composition/node\")\n , Composition = require(\"./composition\")\n , Enny = require(\"enny\")\n ;\n\nfunction Parser(input, appService, moduleInfo, callback) ...
javascript
edit
0
1
mit
7fdc72722c0bd39d485382a0df199e933c87b9c0
jillix/engine-builder
lib/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/*\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for\n * license information.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * C...
javascript
edit
0
1
mit
1d8cc9075091f1fe31e4d1d3a47a61abaefcd6f5
xingwu1/azure-sdk-for-node,xingwu1/azure-sdk-for-node,Azure/azure-sdk-for-node,xingwu1/azure-sdk-for-node,Azure/azure-sdk-for-node,Azure/azure-sdk-for-node
lib/services/apimanagement/lib/models/requestReportCollection.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar gulp = require(\"gulp\"),\n util = require(\"gulp-util\"),\n minifyHtml = require(\"gulp-minify-html\"),\n less = require(\"gulp-less\"),\n minifyCss = require(\"gulp-minify-css\"),\n minifyJs = require(\"gulp-uglify\...
javascript
edit
0
1
mit
b834bacb099306bac030b37477fbee0b4a3324de
bound1ess/todo-app,bound1ess/todo-app,bound1ess/todo-app
Gulpfile.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// ==UserScript==\n// @name SmartyFace\n// @description Text Prediction on facepunch\n// @author benjojo\n// @namespace http://facepunch.com\n// @include http://facepunch.com/*\...
javascript
edit
0
1
mit
3411cef46121ed8f27468275a6149ee1a55fd717
benjojo/SmartyFace
SmartyFace.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar trexControllers = angular.module('trexControllers', []);\n\ntrexControllers.controller('ProjectListCtrl', ['$scope', '$http',\n function($scope, $http) {\n $http.get('/api/1/projects/').success(function(data) {\n ...
javascript
edit
0
2
mit
a7cde01856ed053477d1edf907f4236ae2dbb23e
bjoernricks/trex,bjoernricks/trex
trex/static/js/controllers.js
rejected_duplicate
Near-duplicate of sample 98941
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar gulp = require('gulp'),\n $ = require('gulp-load-plugins')();\n\n\ngulp.task('styles', function() {\n gulp.src('app/**/*.scss')\n .pipe($.watch(function(files) {\n files.pipe($.sass())\n .pipe...
javascript
edit
0
1
mit
dd950e957c2acc4b12160c0d64721506cab0348f
SevereOverfl0w/generator-buymilk
Gulpfile.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\nvar _ = require('lodash');\nvar swagger = require('swagger-spec-express');\nvar schemaKeys = Object.keys(require('swagger-spec-express/lib/schemas/schema.json').properties);\nschemaKeys.push('definitions');\n\nmodule.expo...
javascript
edit
0
3
mit
f98f6b4660110f1421eae1f484d9242b62b0697d
eXigentCoder/node-api-seed,eXigentCoder/node-api-seed
src/swagger/add-model.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n;(function() {\n 'use strict';\n\n sigma.utils.pkg('sigma.canvas.nodes');\n\n /**\n * The default node renderer. It renders the node as a simple disc.\n *\n * @param {object} node The node object.\n * @...
javascript
edit
0
8
mit
e1cfb2e2b4cc186c7d23c47e9d759d54b7571c80
wesako/sigma.js,wesako/sigma.js
src/renderers/canvas/sigma.canvas.nodes.def.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar AddAnalysisOptionModel = require('./add-analysis-option-model');\n\nmodule.exports = function (analysisDefinitionNodeModel) {\n var models = [];\n\n var areaOfInfluence = _t('components.modals.add-analysis.options.sub-titles.area-...
javascript
edit
0
1
bsd-3-clause
811b7afd2dd29d36a3fd610ba55a6388ef8e2a47
CartoDB/cartodb,CartoDB/cartodb,splashblot/dronedb,CartoDB/cartodb,codeandtheory/cartodb,CartoDB/cartodb,codeandtheory/cartodb,splashblot/dronedb,splashblot/dronedb,splashblot/dronedb,CartoDB/cartodb,codeandtheory/cartodb,splashblot/dronedb,codeandtheory/cartodb,codeandtheory/cartodb
lib/assets/javascripts/cartodb3/components/modals/add-analysis/create-analysis-options-models.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n//Needed components\nvar Header = require('../header').component;\nvar Cartridge = require('../cartridge').component;\nvar ContentBar = require('../content-bar').component;\nvar Bar = require('../bar').component;\nvar ContentActions = r...
javascript
edit
0
1
mit
e5afbc0d575605db7c52326e1acb1e0af3186f87
JRLK/focus-components,Bernardstanislas/focus-components,Jerom138/focus-components,asimsir/focus-components,Bernardstanislas/focus-components,get-focus/focus-components,sebez/focus-components,sebez/focus-components,JRLK/focus-components,KleeGroup/focus-components,Bernardstanislas/focus-components,anisgh/focus-components...
application/layout/app-header.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport Ember from 'ember';\nimport ApplicationRouteMixin from 'simple-auth/mixins/application-route-mixin';\n\nexport default Ember.Route.extend(\n ApplicationRouteMixin, {\n beforeModel: function () {\n return this.csrf.fe...
javascript
edit
0
1
unlicense
04e12c573399f08472307d2654a46360dc365986
givanse/ember-cli-simple-auth-devise,bryanwongbh/ember-cli-simple-auth-devise,garth0323/therapy,givanse/ember-cli-simple-auth-devise,garth0323/therapy,givanse/ember-cli-simple-auth-devise,bryanwongbh/ember-cli-simple-auth-devise
my-frontend/app/routes/application.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar seq = require('seq');\nvar args = require('yargs').argv;\n\nvar Factory = require('./lib/database/Factory');\nvar config = require('./lib/configuration');\n\nvar fileName = args.filename || null;\nvar dbOptions = config.database;\n\...
javascript
edit
0
2
mit
d6f02fe1f7229548de0abf09549786cc9302a315
hackerspace-bootstrap/strichliste
createDatabase.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst buildBaseCss = require(`./build/base-css.js`);\nconst buildBaseHtml = require(`./build/base-html.js`);\nconst buildPackageCss = require(`./build/package-css.js`);\nconst buildPackageHtml = require(`./build/package-html.js`);\ncons...
javascript
edit
0
1
mit
e503dea58f44ac41fd18cbeaa634c6b373bb5b8d
avalanchesass/avalanche-website,avalanchesass/avalanche-website
scripts/build.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar express = require('express');\nvar mongoose = require('mongoose');\n\nvar app = express();\n\n// connect to mongo database named \"bolt\"\n// uncomment this line to use a local database\n// mongoose.connect('mongodb://localhost/bolt...
javascript
edit
0
1
mit
a8ece3a1f14c850d3eb79c0bb16532a419b91749
gm758/Bolt,boisterousSplash/Bolt,thomasRhoffmann/Bolt,elliotaplant/Bolt,elliotaplant/Bolt,boisterousSplash/Bolt,thomasRhoffmann/Bolt,gm758/Bolt
server/server.js
rejected_duplicate
Near-duplicate of sample 89443
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nfunction calcWidth(name) {\n return 225 + name.length * 6.305555555555555;\n}\n\nWebApp.connectHandlers.use(\"/package\", function(request, response) {\n var url = `https://atmospherejs.com/a/packages/findByNames\\\n?names=${request.u...
javascript
edit
0
4
mit
14f18e750480aeac369015f9e9fc25d475689b31
sungwoncho/meteor-icon,sungwoncho/meteor-icon
server/routes.js
rejected_duplicate
Near-duplicate of sample 100387
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst express = require('express');\nconst router = express.Router();\nconst puppeteer = require('puppeteer');\n\n\nrouter.get('/', function (req, res, next) {\n puppeteer.launch().then(async browser => {\n const page = await browse...
javascript
edit
0
6
apache-2.0
ccf9a08b7ead4552ad22d5a5e07980f1bee3723f
frocher/bnb_probe
routes/screenshot.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nwindow.addEventListener(\"load\", detect, false);\ndocument.getElementById(\"webMessengerRecentMessages\").addEventListener('DOMNodeInserted', detect, false); \n\nfunction detect(evt) {\n\n console.log(\"hello\");\n //characters f...
javascript
edit
0
4
mit
0b094a233b79ef8b5b7e63c65d167e03ee480cff
tchen01/monospace
background.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n\n/*\n * GET home page.\n */\n\n\nmodule.exports = function (app, options) {\n \"use strict\";\n\n /*\n GET list of routes (index page)\n */\n var getIndex = function (req, res) {\n // Todo: Add autentication\...
javascript
edit
0
6
mit
a2e2d40c60308104780e1f576fd6be365f463fe8
Turistforeningen/Turadmin,Turistforeningen/Turadmin,Turistforeningen/Turadmin,Turistforeningen/Turadmin
routes/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst map = {\n //steemit\n ned: 'steemit',\n justinw: 'steemit',\n elipowell: 'steemit',\n vandeberg: 'steemit',\n birdinc: 'steemit',\n gerbino: 'steemit',\n andrarchy: 'steemit',\n roadscape: 'steemit',\n ...
javascript
edit
0
0
mit
b62469ee1103dd69986570ec314be4c2473639ca
steemit/steemit.com,steemit/steemit.com,TimCliff/steemit.com,TimCliff/steemit.com,TimCliff/steemit.com,steemit/steemit.com
src/app/utils/AffiliationMap.js
accepted
null
true