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 Matcher = require('minimatch').Minimatch;\n\n/**\n * Sets the given metadata on the file object\n *\n * @param file {Object}\n * @param metadata {Object}\n * @private\n */\nfunction setMetadata(file, rule) {\n Object.keys(rule.me...
javascript
edit
0
3
mit
8e957e055863ade32d8ea115c13d103c96865bc9
dpobel/metalsmith-filemetadata
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst express = require('express');\nconst app = express();\nconst opn = require('opn')\n\nconst { execSync } = require('child_process')\n// Can't use __dirname while /spec is a symlink\nconst cwd = execSync('pwd').toString().trim()\n\n...
javascript
edit
0
1
mit
4fe628f4f2bb48905423581081351d3e9a89406e
unpoly/unpoly,unpoly/unpoly,unpoly/unpoly
spec/app.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar inquirer = require('inquirer');\n\ninquirer.prompt([\n {\n name: 'q1',\n message: 'Which author details would you like to use with this repository?',\n type: 'list',\n choices: [\n 'Jane Doe...
javascript
edit
0
2
mit
7b52da206551aa78798ff20560ad47407a62331b
dannycjones/git-chauthor
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nHueLight = function(bridge, id, params) {\n this.bridge = bridge;\n this.id = id;\n this.params = params;\n}\n\nHueLight.prototype = {\n\n updateState: function(key, val) {\n let state = {};\n state[key] = val;\n this.bridg...
javascript
edit
0
4
mit
afeb2bd8caf4aefc188cbd4271cddee03dbea97a
iwazaru/meteor-hue
light.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nfunction load_ipython_extension() {\n\n var extensionLoaded = false;\n\n function loadScript( host, name ) {\n var script = document.createElement( 'script' );\n script.src = name\n ? host + `/juno/${name}.js`\n : host...
javascript
edit
0
3
mit
98c6022c6fdcd5d52b2d2cb14438f20f69bf62c1
DigitalGlobe/juno-magic,timbr-io/juno-magic,DigitalGlobe/juno-magic,timbr-io/juno-magic
js/src/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// Initial dot attributes\nfunction dot_init (selection, scales) {\n selection\n\t.style(\"fill\", \"rgb(31, 119, 180)\")\n .attr(\"class\", function(d,i) {\n\t return \"dot\"; \n });\n // tooltips when hovering p...
javascript
edit
0
1
mit
0466df310c5f496873a913cc4cba71de10024490
juba/uniquanti,juba/uniquanti
js/plot-dots.js
accepted
null
true
[ { "role": "user", "content": "Write javascript code for the following: [WEB-589] Storybook: Use more granular list of devices in viewports addon" }, { "role": "assistant", "content": "import { addParameters } from '@storybook/react';\nimport { INITIAL_VIEWPORTS } from '@storybook/addon-viewport'...
javascript
new_file
0
0
bsd-2-clause
3cb861cb1e2e8e27401cd8052e3f4b860fc239d3
tidepool-org/blip,tidepool-org/blip,tidepool-org/blip
.storybook/preview.js
rejected_duplicate
Near-duplicate of sample 71278
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nfunction create_VIM_VIEW(environment, messager, context) {\n var executor = environment.executor;\n\n // ignores ids that listenTo returns (no need to remove listening ever)\n messager.listenTo('interpreter_initialized', receiveMessa...
javascript
edit
0
2
mit
7d9d87b9b275c0dc4b59855481999a84db55fd64
egaga/openvim,egaga/openvim,egaga/openvim
js/view/view.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict'\n\nexports.init = (bot, prefs) => {\n\n bot.register.command('echo', {\n\n format: true,\n fn: message => {\n\n var response = message.text.replace('/echo', \"\");\n\n if (!response)\n...
javascript
edit
0
4
bsd-3-clause
ec3582492bee170a3569555a02a1ae5506fd47bc
lkd70/the-engine
plugins/strings.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nvar React = require('react');\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.ca...
javascript
edit
0
4
isc
34431d548557a520b91bdaa19e17e4343eb90e26
mapbox/react-range
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n\nvar async = require('async');\nvar timetree = require('../');\nvar util = require('util');\n\nvar timer = timetree('example');\n\nreturn async.waterfall(\n [\n function(callback) {\n var subTimer = timer.split('ta...
javascript
edit
0
2
mit
1acb3efc8dca76641449e79d6741204e730c77b5
skybet/time-tree
examples/workflow.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst chalk = require('chalk')\nconst format = require('./lib/format')\nconst game = require('./lib/game')\nconst input = require('./lib/input')\nconst log = console.log\nconst output = require('./lib/output')\nconst validation = requir...
javascript
edit
0
0
mit
16bff549746a78303d3b74206d81c2b5b6fc8a73
notmessenger/poker-analysis
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict'\nconst path = require('path')\nconst {spawnSync} = require('child_process')\nconst {\n env: {\n STANDARDJS_EXECUTABLE,\n STANDARDJS_ARGV,\n SKIP_CODE_STYLE_CHECKING\n }\n} = require('process')\n\nconst wdir = pat...
javascript
edit
0
7
mit
70bc487276e3f848e17cceddc50d76708720f43b
KSXGitHub/react-hello-world,KSXGitHub/react-hello-world,KSXGitHub/react-hello-world
check/javascript.standard.check.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/* eslint-disable radix */\n// eslint-disable-next-line import/prefer-default-export\nexport const getTimeStringMinutes = (timeStr) => {\n const parts = timeStr.split(':');\n\n const hours = parseInt(parts[0]);\n const minutes ...
javascript
edit
0
3
mit
7030b915522e63dcbd5f3863ab29c9c18c6bd522
TobitSoftware/chayns-components,TobitSoftware/chayns-components,TobitSoftware/chayns-components
src/utils/dateTimeHelper.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport Ember from 'ember';\nimport ValidatorsMessages from 'ember-cp-validations/validators/messages';\n\nconst { Logger:logger } = Ember;\n\nexport default function() {\n ValidatorsMessages.reopen({\n intl: Ember.inject.service(),\...
javascript
edit
0
3
mit
2e0cd847e13278e0565561882233dbe9255b2868
ember-intl/ember-intl-cp-validations,jasonmit/ember-intl-cp-validations,ember-intl/ember-intl-cp-validations,jasonmit/ember-intl-cp-validations
addon/initialize.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar Core = require('./libs/core');\nvar Members = require('./libs/members');\nvar Topics = require('./libs/topics');\nvar Posts = require('./libs/posts');\n\nmodule.exports = Ipboard;\n\nfunction Ipboard(apiUrl, apiKey) {\n if (!apiUrl...
javascript
edit
0
3
mit
429765336837523743824a11c15d2697b650a987
Raesta/ipboard-api
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar denodeify = require('es6-denodeify')(Promise)\nvar tough = require('tough-cookie')\n\nmodule.exports = function fetchCookieDecorator (fetch, jar) {\n fetch = fetch || window.fetch\n jar = jar || new tough.CookieJar()\n\n var getC...
javascript
edit
0
3
unlicense
328e7087162d18ad17b8be080cff5651ecf38dfc
valeriangalliat/fetch-cookie,valeriangalliat/fetch-cookie
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar ByteBuffer = require('bytebuffer');\nvar ProtoBuf = require('protobufjs');\n\nvar path = require('path');\n\nvar ChunkData = \n ProtoBuf\n .loadProtoFile(path.join(__dirname, 'ChunkData.proto'))\n .build('ChunkData');\n\nvar ...
javascript
edit
0
2
mit
e2776808661246c2ad1848b87477a06d0dbd3756
hellojwilde/node-safebrowsing
src/io/DataRedirectRequestType.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n\"use strict\"\n\nconst express = require('express');\nconst HTTPStatus = require('http-status-codes');\n\nvar scraper = require('./app/routes/scraper');\n\nconst app = express();\n\n// This middleware will be executed for every request...
javascript
edit
0
2
mit
5036e91352cd194ca8f6fd50f2b659a4eb49a0fc
C3-TKO/junkan-server
index.js
rejected_duplicate
Near-duplicate of sample 92356
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// Requires\nvar Q = require('q');\nvar _ = require('underscore');\n\nvar qClass = require('qpatch').qClass;\n\n// Etcd client\nvar Etcd = qClass(require('node-etcd'), ['watcher']);\n\n\n// Since etcd create the dir keys automatically\n...
javascript
edit
0
2
apache-2.0
1f35f69760ef27b4aea1101daa39fefbfa70a2f8
AaronO/etcd-dump
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar katex = require(\"katex\");\nvar cheerio = require(\"cheerio\");\n\nmodule.exports = {\n book: {\n assets: \"./book\",\n js: []\n },\n hooks: {\n page: function(page) {\n for (var i in page.s...
javascript
edit
0
3
apache-2.0
49c001670c4ec12041c5a39767879d0cb1f3a76e
GitbookIO/plugin-katex
index.js
rejected_duplicate
Near-duplicate of sample 76188
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar app = angular.module(\"AdmissionsApp\");\n\napp.service(\"PasswordCheckService\", [\"$http\", function ($http) {\n var submitBaseUrl = \"http://localhost:8001/part\";\n\n this.checkPassword = function (password, partNumber) {\...
javascript
edit
0
1
mit
af49fca9b49697b5580e1075717bcb6710af1af9
bobziroll/admissions,bobziroll/admissions
app/services/passwordCheckService.js
rejected_duplicate
Near-duplicate of sample 71569
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport parser from \"./parser\";\n\nexport {default as Token} from \"./lexer/token\";\nexport {default as Node} from \"./lexer/node\";\n\nexport default {\n\tparse: parser\n};\n\n```\n\nApply this change: Remove lexer from the public AP...
javascript
edit
0
0
mit
dd302f6145e34a2cb796011b7b4b568158ed6ec1
coryroloff/dustjs-ast
lib/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nvar amazon = require('amazon-product-api');\nvar client = amazon.createClient({\n awsId: process.env.AWS_ID,\n awsSecret: process.env.AWS_SECRET,\n awsTag: process.env.AWS_TAG\n});\n\nmodule.exports = function(title,...
javascript
edit
0
4
mit
d1e80ed5aa35827b3d91db596209f71975ce7549
matiassingers/shelfies-amazon-linker
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nconst CssImport = require('postcss-import');\nconst PresetEnv = require('postcss-preset-env');\nconst broccoliPostCSS = require('broccoli-postcss')\nconst mergeTrees = require('broccoli-merge-trees');\nconst funnel = re...
javascript
edit
0
4
mit
e5803bc13cdcf0d21bd13486bbe3b05eda4004f5
stonecircle/ember-cli-notifications,stonecircle/ember-cli-notifications,Blooie/ember-cli-notifications,Blooie/ember-cli-notifications
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar pkg = require(\"./package.json\");\n\nmodule.exports = {\n build: require(\"./lib/build\"),\n create: require(\"./lib/create\"),\n compiler: require(\"truffle-compile\"),\n config: require(\"./lib/config\"),\n console: require(...
javascript
edit
0
0
mit
138fdeef3eef86aeb629b64e69c523fe0aa62db4
DigixGlobal/truffle,prashantpawar/truffle
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport {\n cacheClient,\n jsonCodec\n} from '@scola/api';\n\nimport Server from './src/server';\n\nexport {\n Server,\n cacheClient,\n jsonCodec\n};\n\n```\n\nApply this change: Add jsonFilter in export for HTTP setup" }, { ...
javascript
edit
0
0
mit
e4ff593f3b474ace3df94fb42f4a666a14e94759
scola84/node-app-server
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar solarflare = function (rays) {\n\tvar $element = document.createElement('div');\n\n\tif (Array.isArray(rays)) {\n\t\trays.forEach(function (e, i) {\n\t\t\tif (i === 0 && typeof e === 'string') {\n\t\t\t\tif (e.length > 0) {\n\t\t\t\...
javascript
edit
0
10
mit
1ba4ed884ae724944e186f8a729e06d16b6ace24
thirdstrongestguardian/solarflare
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar PostcssCompiler = require('broccoli-postcss');\nvar checker = require('ember-cli-version-checker');\n\nfunction PostCSSPlugin (plugins, options) {\n this.name = 'ember-cli-postcss';\n options = options || {};\n options.inputFile ...
javascript
edit
0
7
mit
f9d7d9eb13c8f48e36012c063fce41382408a04b
jeffjewiss/ember-cli-postcss,jeffjewiss/ember-cli-postcss
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n\ntry {\n module.exports = require('./build/Release/node_sleep.node');\n} catch (e) {\n console.log('sleep: using busy loop fallback');\n\n module.exports = {\n sleep: function(s) {\n var e = new Date().getTime() + (s * 1000)...
javascript
edit
0
2
mit
3400709119be37c6f2a9be6efba3c2a00de4e349
ErikDubbelboer/node-sleep,ErikDubbelboer/node-sleep,ErikDubbelboer/node-sleep
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nvar EventEmitter = require('events').EventEmitter;\nvar Console = require('./console');\n\nvar hostname = require('os').hostname();\nvar pid = process.pid;\n\nvar emitter = new EventEmitter();\nvar _console = new C...
javascript
edit
0
2
mit
20150d63e25f99d1f06b4c35116152760e722aca
aantthony/logger
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst tmp = require('tmp');\nconst fs = require('fs');\n\nfunction isReactComponent(source = '') {\n return source.indexOf('(_react.Component)') > -1;\n}\n\nfunction WebpackAccessibilityPlugin(options) {\n this.createElement = options...
javascript
edit
0
3
mit
a5b2703306889221297e896f0f64134923882204
evcohen/accessibility-webpack-plugin
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n\n/* jshint esnext: true, node: true */\n'use strict';\n\nvar rollbar = require('rollbar');\nvar log = require('loglevel');\n\nrollbar.init(process.env.ROLLBAR_TOKEN, {environment: process.env.ROLLBAR_ENVIRONMENT});\n\nexports.rejectHan...
javascript
edit
0
2
mit
15328712460ab20f3544b1b73e4a305790f555fc
heroku/awsdetailedbilling
lib/cliutils.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/* jshint node: true */\n'use strict';\n\nmodule.exports = {\n name: 'ember-keyboard-shortcuts',\n\n included: function(app, parentAddon) {\n let target = (parentAddon || app);\n target.import(app.bowerDirectory + '/mousetrap/mo...
javascript
edit
0
1
mit
8107e3ece5669a940e449a0accecafbe6119a19e
Skalar/ember-keyboard-shortcuts,Skalar/ember-keyboard-shortcuts
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// dependencies\nvar jipics = \"http://jipics.net/\"\n , Request = require(\"request\")\n , fs = require(\"fs\")\n ;\n\n/**\n * Upload method\n *\n * Arguments\n * @options: a string representing the image path or an\n * ...
javascript
edit
0
3
mit
f4d42dce73a5d300cf2b87ba5caac9f0b356a3cd
jillix/node-jipics
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/* jshint node: true */\n'use strict';\n\nmodule.exports = {\n name: 'ember-cli-nouislider',\n\n included: function(app) {\n this._super.included(app);\n\n app.import({\n development: app.bowerDirectory + '/nouislider/distr...
javascript
edit
0
2
mit
df98deda70f2e53aae5fff219b8e24f946c511e8
kennethkalmer/ember-cli-nouislider,kennethkalmer/ember-cli-nouislider,kennethkalmer/ember-cli-nouislider
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst Assert = require('assert')\nconst Child = require('child_process')\nconst Fs = require('fs')\nconst Path = require('path')\n\nconst packagePath = Path.join(process.cwd(), 'package.json')\n\nlet keys = []\nlet out = {}\n\nmodule.ex...
javascript
edit
0
2
mit
432b8e18fc5b173d524d83616b8d8fcd1d624600
onmodulus/knock-knock,jackboberg/knock-knock
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport extract from 'flarum/common/utils/extract';\nimport username from 'flarum/common/helpers/username';\nimport User from 'flarum/common/models/User';\nimport Group from 'flarum/common/models/Group';\nimport LinkButton from 'flarum/c...
javascript
edit
null
null
mit
f8c0d43c341c3bdf2f9664c162bb1375354e2e4d
flagrow/byobu,flagrow/byobu
js/src/forum/pages/labels/recipientLabel.js
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\n/**\n * Export all prototypes.\n * (C) 2013 Alex Fernández.\n */\n\n// requires\nrequire('./lib/string.js');\nrequire('./lib/array.js');\nvar mathLib = require('./lib/math.js');\nvar objectLib = require('./lib/object.js...
javascript
edit
0
0
mit
7169b95291a24c69d5bacbf501f2e3f4a7413048
alexfernandez/prototypes
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst express = require('express');\nconst helmet = require('helmet');\nconst winston = require('winston');\nconst bodyParser = require('body-parser');\nconst env = require('./src/env');\n\nvar server = express();\nvar router = require(...
javascript
edit
0
2
mit
4bab1cdf0074a95f6251d71662409bdaf0643640
NSAppsTeam/nickel-bot
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar BufferList = require('bl');\nvar onFinished = require('on-finished');\n\nmodule.exports = function bufferResponse(res, cb) {\n\tvar write = res.write;\n\tvar end = res.end;\n\tvar buf = new BufferList();\n\tres.write = function(data...
javascript
edit
0
4
mit
cd8f440db7c1edb9b788f8af0ba6a276a8986b9c
kapouer/express-buffer-response
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n(function (module) {\n module.controller(\"FileEditController\", FileEditController);\n\n FileEditController.$inject = ['file', '$scope'];\n\n /* @ngInject */\n function FileEditController(file, $scope) {\n console.lo...
javascript
edit
0
1
mit
788cd10725c28ee6f0b25c371475e73ebe229fb3
materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org
website/app/application/core/projects/project/files/file-edit-controller.js
rejected_duplicate
Near-duplicate of sample 70377
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nangular.module('proxtop').service('open', ['ipc', 'settings', '$state', function(ipc, settings, $state) {\n const self = this;\n ['Anime', 'Manga'].forEach(function(name) {\n const lower = name.toLowerCase();\n self[...
javascript
edit
0
6
mit
1ae694e934965b2d02bd9e0a8c34aba18e9767fa
kumpelblase2/proxtop,kumpelblase2/proxtop,kumpelblase2/proxtop,kumpelblase2/proxtop
src/ui/providers/open.provider.js
accepted
null
true
[ { "role": "user", "content": "Write javascript code for the following: Support for enter/tab key to add new property line." }, { "role": "assistant", "content": "var app = angular.module(\"EAG_Home\", [\"Controllers\"]);\n\napp.directive('ngEnter', function () {\n return function (scope, elem...
javascript
new_file
0
4
mit
ffe085496a8b2b4663740593ba7eb04d8cabe458
manthanhd/flow2-api-manager,manthanhd/flow2-api-manager
public/javascripts/eag_home/app.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React, {Component} from 'react'\n\nimport AlloyEditor from 'alloyeditor/dist/alloy-editor/alloy-editor-no-react'\nimport 'alloyeditor/dist/alloy-editor/assets/alloy-editor-atlas.css'\n\nAlloyEditor.Selections[3].buttons.splice(4,...
javascript
edit
0
2
mit
823928a2015e373e0bc4c4628182517f48a5ca11
NCI-Agency/anet,NCI-Agency/anet,NCI-Agency/anet,NCI-Agency/anet,NCI-Agency/anet
client/src/components/TextEditor.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/* global describe, it, before */\n\nvar requirejs = require(\"requirejs\");\nvar assert = require(\"assert\");\nvar should = require(\"should\");\nvar jsdom = require('mocha-jsdom');\nvar skill = require('fs').readFileSync('./test/spec...
javascript
edit
0
1
mit
0a299476bd7ae926cd13f57034baaab58bdd5fe9
phodal/sherlock,Bobjoy/sherlock,Bobjoy/sherlock,ivanyang1984/sherlock,ivanyang1984/sherlock,phodal/sherlock
test/spec/utils_spec.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// Rules from eslint-plugin-html\nmodule.exports = {\n \"plugins\": [\"html\"],\n \"settings\": {\n \"html\": {\n // \"html-extensions\": [],\n // \"xml-extensions\": [],\n \"indent\": \"+4\...
javascript
edit
0
0
mit
860e2e10ba8d66ddd79a4c6005758c3ceeabc1e8
TrebleFM/eslint-config
rules/plugins/html.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n \n google.maps.event.addDomListener(window, 'load', initialize);\n\n function initialize() {\n\t var myLatlng = new google.maps.LatLng(-25.363882,131.044922);\n\t var mapOptions = {\n\t zoom: 4,\n\t center: myLatlng,\n\t ...
javascript
edit
0
1
mit
e65b931e2c9be0df35103c94963ff9cbd67bead9
CSC301H-Fall2013/healthyhome,CSC301H-Fall2013/healthyhome
static/js/homepage-map.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nTemplate.postsList.helpers({\n posts: function() {\n return Posts.find();\n }\n});\n```\n\nApply this change: Sort posts by submitted timestamp.\n\nchapter7-8" }, { "role": "assistant", "content": "Template.postsList.he...
javascript
edit
0
1
mit
d1d813bf161eb28dc95852d519cf8fe274b3d12a
scimusmn/sd-waw,scimusmn/sd-waw
client/views/posts/posts_list.js
rejected_duplicate
Near-duplicate of sample 71801
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n\"use strict\";\nconst RequestResults = require(\"../constants/RequestResults\");\nconst Utils = require(\"../utils/Utils\");\n\nlet _token = null;\nlet _requester = null;\n\nmodule.exports = {\n\n initialize: function(token, request...
javascript
edit
0
4
apache-2.0
ac9c6dc87213afd0bb368b781db807884d6bc0eb
iobeam/iobeam-client-node
src/endpoints/Namespaces.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n\n\n/**\n * Load all external dependencies\n * We use var so it's global available : ) ( not let,const)\n */\nvar fs = require('fs');\nvar _ = require('lodash');\n\n\n/**\n * Load all internal dependencies\n */\nconst cfg = req...
javascript
edit
0
1
mit
6c25da5552413ad22ef64d5f2cd38d6f8aa1abd2
Windmolders/piJS,Windmolders/piJS
client/src/pi.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\n/**\n * Dependencies.\n */\n\nvar phonetics;\n\nphonetics = require('double-metaphone');\n\n/**\n * Define `doubleMetaphone`.\n */\n\nfunction doubleMetaphone() {}\n\n/**\n * Change handler.\n *\n * @this {WordNode}\n *...
javascript
edit
0
4
mit
1321057d416297a63447381fdfa9fdd4e1701300
wooorm/retext-double-metaphone
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar fs = require('fs');\nvar path = require('path');\nvar xec = require('xbmc-event-client');\n\nvar keyboard = require('./lib/keyboard');\n\n\nvar kodikeys = function(opt) {\n\n var defaults = {\n port: 9777\n }\n opt = Object.as...
javascript
edit
0
2
mit
7e2f1110699d07c796bd2b63704fecce5ca7f053
bartels/kodikeys
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict'\n\nconst ExtDate = require('./src/date')\nconst Bitmask = require('./src/bitmask')\n\nconst { parse } = require('./src/parser')\n\nconst types = [\n 'Date', 'Year', 'Season', 'Interval', 'Set', 'List', 'Century', 'Decade'\...
javascript
edit
0
2
bsd-2-clause
2cf4de63acf4d04d81ffda59864fb094c7b06e68
inukshuk/edtf.js
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict'\n\nvar toArray = require('stream-to-array')\nvar Promise = require('bluebird')\n\nmodule.exports = streamToPromise\n\nfunction streamToPromise (stream) {\n if (stream.readable) return fromReadable(stream)\n if (stream.wri...
javascript
edit
0
3
mit
21cb52e63c4017fc4b2406705ea492d083c7b670
bendrucker/stream-to-promise
index.js
rejected_duplicate
Near-duplicate of sample 94373
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar actionpack = {\n Action: require('./lib/action'),\n Route: require('./lib/route')\n};\n\nmodule.exports = actionpack;\n```\n\nApply this change: Fix lib file reference in main actionpack file" }, { "role": "assistant", ...
javascript
edit
0
0
mit
5452f6291db4e49247b364bd50baa8dfd9f80309
alexparker/actionpack
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar path = require('path'),\n fs = require('fs');\n\nfunction AssetManifestPlugin(output, keyRoot) {\n this.output = output;\n this.keyRoot = keyRoot;\n}\n\nAssetManifestPlugin.prototype.apply = function(compiler) {\n var assets =...
javascript
edit
0
1
mit
c21124fc272b9ac469f8994da000ebda9d3e9b1b
rentpath/webpack-asset-manifest
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/*!\n * docdown v0.3.0\n * Copyright 2011-2016 John-David Dalton <http://allyoucanleet.com/>\n * Available under MIT license <http://mths.be/mit>\n */\n'use strict';\n\nvar _ = require('lodash'),\n fs = require('fs'),\n path = req...
javascript
edit
0
3
mit
2951f66c823a5c9104ac93e17b3635461f9cf8e4
jdalton/docdown,DannyNemer/docdown
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict'\n\nconst markdownIt = require('markdown-it')\n\nexports.name = 'markdown-it'\nexports.outputFormat = 'html'\nexports.inputFormats = ['markdown-it', 'markdown', 'md']\n\nexports.render = function (str, options) {\n options ...
javascript
edit
0
7
mit
0809ccb437162bb2eaf761107d24f7f46022ae36
jstransformers/jstransformer-markdown-it,jstransformers/jstransformer-markdown-it
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar path = require('path');\n\nmodule.exports = class BowerResolvePlugin {\n constructor(options) {\n this.options = options;\n }\n\n apply(resolver) {\n resolver.plugin('existing-directory', function (request, ca...
javascript
edit
0
5
mit
9f9ae6226b34ebbbcb2bac022c4dd7184ae4e6c9
codewizz/bower-resolve-webpack-plugin
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\n/**\n * @description\n * A tool that downloads a given number of pug images to the directory where it is run.\n *\n * @example\n * node pugbalm 5 // download 5 pugs\n */\n\nvar request = require('request'),\n _ = req...
javascript
edit
0
3
mit
229a4a770a3d6675355584449da0c9dec86a215d
wbprice/pugbalm
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar path = require('path')\nvar meta = require(path.join(__dirname, 'lib', 'meta.js'))\n\nmodule.exports = Dat\n\n// new Dat(cb)\n// new Dat({foo: bar})\n// new Dat({foo: bar}, cb)\n// new Dat('./foo)\n// new Dat('./foo', cb)\n// new Da...
javascript
edit
0
6
bsd-3-clause
8a6133d252d62d88ae65f166cd270013d093b018
mafintosh/dat,yetone/dat,vfulco/dat,ajschumacher/dat,bmpvieira/dat,waldoj/dat,stamhe/dat,delkyd/dat,eayoungs/dat,rjsteinert/dat,RichardLitt/dat,bmpvieira/dat,FLGMwt/dat,maxogden/dat,flyingzumwalt/dat,LinusU/dat,adriagalin/dat,captainsafia/dat,mattknox/dat,jbenet/dat,jqnatividad/dat,jbenet/dat,karissa/dat,mcanthony/dat,...
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar models = require('./lib/models');\nvar config = require('./config/gateway.config');\nvar dirty = require('dirty');\nvar db = dirty(config.datasource || './data/messages.db');\n\nvar storedMessages = new models.Messages();\n\ndb.on(...
javascript
edit
0
2
mit
13db7d2de7a1c870c4fc495b37707e3d57a5293e
marcusbaer/node-sms
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar fs = require(\"fs\")\n\nvar isJavascript = /\\.js$/\n\nmodule.exports = allFiles\n\nfunction allFiles(uri, regex) {\n var stat = fs.statSync(uri)\n regex = regex || isJavascript\n\n if (stat.isFile()) {\n if (!regex....
javascript
edit
0
4
mit
edf0663395e5bb7ffd33724c4e15f6f1e86757e3
Raynos/all-files
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar parseUrl = require('url').parse;\nvar isSecure = function(req) {\n if (req.secure) {\n return true;\n } else if (\n req.get('X-Forwarded-Proto') &&\n req.get('X-Forwarded-Proto').toLowerCase &&\n req.get('X-Forwarded-P...
javascript
edit
0
5
mit
4a54f47e0ba30a18bc14acb853fe029e1adbc448
fatfisz/express-force-ssl,battlejj/express-force-ssl
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n * Module dependencies\n */\n\nvar crypto = require('crypto');\n\n/**\n * The size ratio between a base64 string and the equivalent byte buffer\n */\n\nvar ratio = Math.log(64) / Math.log(256);\n\n/**\n * Generate an Unique Id\n *\...
javascript
edit
0
2
mit
6596ba740494d50acb87db49a7f82581461ade49
coreh/uid2
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar bodyParser = require('body-parser')\nvar dataUriToBuffer = require('data-uri-to-buffer')\nvar express = require('express')\nvar app = express()\n\n/**\n * This is your custom transform function\n * move it wherever, call it whatever...
javascript
edit
0
1
mit
0ba7ac2dcf74a9faf81ba4bbfb8385b9238e03d1
jasonrhodes/revisit-gifplay,revisitors/revisit.link-quickstart
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport Dexie from 'dexie'\n\nconst Promise = Dexie.Promise\n\nexport default class DexieBatch {\n constructor(opts = { batchSize: 20 }) {\n this.opts = opts\n }\n\n each(collection, callback) {\n return this.eachBatch(collectio...
javascript
edit
0
2
mit
34d5cbdc59e187cc01d59e1da4f5d6ebfb7fbf8b
raphinesse/dexie-batch
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst FileSystemBackend = require('./src/backend/FileSystemBackend')\nconst FileSystemBuffer = require('./src/backend/FileSystemBuffer')\n\nconst host = require('./src/host/singletonHost')\nconst util = require('./src/util')\n\n// Vario...
javascript
edit
0
1
apache-2.0
791848044248b9c044e18fe034955e093cf0fb1f
stencila/node,stencila/node
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n#!/usr/bin/env node\n\n\nvar http = require('http')\nvar opn = require('opn')\nvar rc = module.require('rc')\nvar argv = require('optimist').argv\nvar config = rc('hcat', {}, argv)\n\nif (argv.usage) {\n\tconsole.log(require('./usage.js...
javascript
edit
0
1
mit
0ccd76579d0be07a5ee894462d66815fb7fe8b2e
kessler/node-hcat,noffle/node-hcat,noffle/node-hcat,kessler/node-hcat
index.js
rejected_duplicate
Near-duplicate of sample 96080
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nvar stylus = require('stylus'),\n gutil = require('gulp-util'),\n PluginError = gutil.PluginError,\n log = gutil.log,\n Transform = require('stream').Transform,\n ...
javascript
edit
0
5
mit
a622e46cfa037f77dda4d2f958fc25994ac1db1b
polovi/gulp-stylus
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nvar mustache = require('mustache');\n\nexports.name = 'mustache';\nexports.outputFormat = 'xml';\nexports.render = function (str, options, locals) {\n return mustache.render(str, locals);\n};\n\n```\n\nApply this chang...
javascript
edit
0
1
mit
aabd1c398661c01b8cb37985ec618697b28fb648
jstransformers/jstransformer-mustache,jstransformers/jstransformer-mustache
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nvar fs = require('fs');\n\nfunction reset() {\n exports.out = [];\n exports.xmlEmitter = null;\n exports.opts = {};\n} reset();\n\n/**\n * Load a formatter\n * @param {String} formatterPath\n * @return\n */\nf...
javascript
edit
0
4
mit
32251d41d59301cbe95c3508f1836bae33d8c867
cleydsonjr/gulp-jshint-xml-file-reporter,lourenzo/gulp-jshint-xml-file-reporter
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/*\nCopyright (c) 2015-2018 Claude Petit\n\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restric...
javascript
edit
0
0
mit
84dc0d3bfc19870898701a584ceafaad37bcb2da
sickle2/package-config
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport { randomBytes } from 'crypto';\n\n// Crockford's Base32\n// https://en.wikipedia.org/wiki/Base32\nconst ENCODING = \"0123456789ABCDEFGHJKMNPQRSTVWXYZ\"\n\nfunction strongRandomNumber() {\n return randomBytes(4).readUInt32LE() / ...
javascript
edit
0
2
mit
340af16870161abce00a6635fe7355f31449fe7f
alizain/ulid,alizain/ulid
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar excludeMethods = [\n /^constructor$/, \n /^render$/, \n /^component[A-Za-z]+$/,\n /^shouldComponentUpdate$/\n];\n\nvar displayNameReg = /^function\\s+([a-zA-Z]+)/;\n\nfunction isExcluded(methodName) {\n return excludeMethods.so...
javascript
edit
0
4
mit
a344ebe9ea0894f6b963600be0223d6e4712241a
nemisj/react-bind-to-class
index.js
rejected_duplicate
Near-duplicate of sample 81325
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar path = require('path')\n\n// Export function to create new config (builder is passed in from outside)\nmodule.exports = function (builder) {\n var bootstrapLess = require.resolve('bootstrap/less/bootstrap.less')\n\n return builder...
javascript
edit
0
1
mit
1e79060197f4aa803c1a0328c027ef755d6db500
nknapp/bootprint-base,bootprint/bootprint-base,bootprint/bootprint-base,nknapp/bootprint-base
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nvar\n\tplatform = require('enyo/platform'),\n\tdispatcher = require('enyo/dispatcher'),\n\tgesture = require('enyo/gesture');\n\nexports = module.exports = require('./lib/options');\nexports.version = '2.6.0-pre';\n\n//...
javascript
edit
0
0
apache-2.0
6703a04ee5aef02d03a67db2b53cda19bef0893b
enyojs/moonstone
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/* jshint node: true */\n'use strict';\n\nmodule.exports = {\n name: 'ember-virtual-scrollkit',\n included: function(app) {\n app.import('vendor/zynga-scroller/Animate.js');\n app.import('vendor/zynga-scroller/Scroller.js');\n ...
javascript
edit
0
3
mit
5c461bbcbb1e79108c03d1f90035203de53b682e
yapplabs/ember-virtual-scrollkit,yapplabs/ember-virtual-scrollkit
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar path = require('path');\n\nvar root = __dirname.replace(/[\\-\\[\\]\\/\\{\\}\\(\\)\\*\\+\\?\\.\\\\\\^\\$\\|]/g, \"\\\\$&\");\nvar escape = function (str) {\n return str.replace(/[\\-\\[\\]\\/\\{\\}\\(\\)\\*\\+\\?\\.\\\\\\^\\$\\...
javascript
edit
0
2
mit
89b14395900423d75ca4b388c693d6aca56fd51f
bezoerb/postcss,longdog/postcss,himynameisdave/postcss,ashelley/postcss,whitneyit/postcss,eprincev-egor/postcss,MadLittleMods/postcss,andrepolischuk/postcss,jonathantneal/postcss,webdev1001/postcss,pazams/postcss,bendtherules/postcss,admdh/postcss,f/postcss,justim/postcss,ajoslin/postcss,omeripek/postcss,johnie/postcss...
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport Cycle from '@cycle/core';\nimport {makeDOMDriver} from '@cycle/dom';\n\nimport slides from './src/slides';\n\nconst drivers = {\n DOM: makeDOMDriver('.app')\n};\n\nif (module.hot) module.hot.accept();\n\nCycle.run(slides, driver...
javascript
edit
0
1
mit
5f2ed649ff35563a00e09b8edbcb55c8d2e25416
Widdershin/cycle-talk,Widdershin/cycle-talk
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar express = require('express');\nvar haml = require('hamljs');\nvar path = require('path');\nvar fs = require('fs');\nvar bodyParser = require('body-parser');\nvar engine = require('./libs/words_finder...
javascript
edit
0
1
unlicense
6e74f4e97d65ed57c0ab0d8e67eb96d545973889
cawel/words-finder,cawel/words-finder,cawel/words-finder
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nfunction r() {\n\tvar strings = arguments[0];\n\tvar values = Array.prototype.slice.call(arguments, 1);\n\t\n\tvar str = str = strings.raw.reduce(function(prev, cur, idx) {\n\t\treturn prev + values[idx-1] + cur;\n\t});\n\t\n\t\n\tstr =...
javascript
edit
0
2
mit
8a7c1e89a7029b6fcb97edff62987ae2618944fa
Wooooo/remove-tabs
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// Requires\nvar Q = require('q');\nvar _ = require('underscore');\n\nvar qClass = require('qpatch').qClass;\n\n// Etcd client\nvar Etcd = qClass(require('node-etcd'), ['watcher']);\n\n\n// Since etcd create the dir keys automatically\n...
javascript
edit
0
2
apache-2.0
75ddb13451a346c431af5b7af8a017a555bca4a6
AaronO/etcd-dump
index.js
rejected_duplicate
Near-duplicate of sample 100003
true
[ { "role": "user", "content": "Write javascript code for the following: Add a state-of-art API all" }, { "role": "assistant", "content": "// Entry point of data fetching\nconst request = require('superagent');\nconst path = require('path');\nconst url = require('url');\n\nconst DOMAIN = 'https://...
javascript
new_file
0
1
apache-2.0
24d4cabb6ddcd36218c75f9127c6e459cc070005
tngan/node-stackexchange
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/* Copyright (c) 2014 Chico Charlesworth, MIT License */\n'use strict';\n\nvar sharder = require('sharder');\nvar async = require('async');\n\nvar name = 'seneca-shard-cache';\n\nmodule.exports = function( options ) {\n\n var seneca = ...
javascript
edit
0
2
mit
2753b27b569ee1e07bf8177d3cea4ce688a88799
chico/seneca-shard-cache
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar gulp = require('gulp'),\n Elixir = require('laravel-elixir'),\n livereload = require('gulp-livereload'),\n config = Elixir.config;\n\n\nElixir.extend('livereload', function (src) {\n\n defaultSrc = [\n 'app/**/*',...
javascript
edit
0
2
mit
153e99b80da12a3a704ad0aad97ec499ceefab4d
EHLOVader/laravel-elixir-livereload
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/*!\n * global-prefix <https://github.com/jonschlinkert/global-prefix>\n *\n * Copyright (c) 2015 Jon Schlinkert.\n * Licensed under the MIT license.\n */\n\n'use strict';\n\n/**\n * This is the code used internally by npm to\n * resolv...
javascript
edit
0
0
mit
d8d1afb8d3e1a9c1c2b5b29a3d212ccb1244078e
jonschlinkert/global-prefix
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n(function(root, factory) {\n\t// Basbosa registry should be loaded once\n\t\n\t\n\tif (typeof exports !== 'undefined') {\n \t// Node.js\n module.exports = factory(root);\n } else if (typeof define === 'function' && define.amd) {\n ...
javascript
edit
0
6
mit
9188e3a5ab852e9a0cd9e8ed1433c7a841232e20
ygaras/basbosa-registry
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/*\n */\n\nvar hash;\nvar exec = require('child_process').exec;\nexports.version = function(major, minor, cb) {\n if (hash) {\n cb (null, hash);\n } else {\n var child = exec('git rev-parse --short HEAD', {cwd: __dirname} ,\n ...
javascript
edit
0
3
mit
0e359034e3fd80d26493991f18bacf318f422df3
Reregistered/version-git
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar Agent = require( '../models/agent' ),\n NotAuthorizedError = require( '../errors/not-authorized' );\n\nmodule.exports = function( req, res, next ) {\n if ( 'string' !== typeof req.body.secret ) {\n throw new NotAuthoriz...
javascript
edit
0
3
mit
412c00ad137a9b5c8f6d8af8783cd26f23aa9eec
myact/myact-api
app/middlewares/interpret-agent.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar ai = ai || {}; //!< @namespace ai\n\nai.init = function(){\n setInterval(\"ai._mainLoop();\", 1000 / 120);\n setInterval(\"api.keepPlay();\", 1000 / 60);\n}\n\n\nai._mainLoop = function(){\n obs = api.getObstacles();\n if (obs....
javascript
edit
0
10
bsd-3-clause
dcd0ec0371f64fe5e9452b020c7e69e4393cf1cd
NTU223/Dino,NTU223/Dino
js/ai.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar _ = require('lodash');\n\nexports.formatNumber = function(dialect) {\n return {\n mysql: _.identity,\n sqlite3: _.identity,\n postgresql: function(count) { return count.toString() }\n }[dialect];\n}\n\nexports.countModels...
javascript
edit
0
2
mit
6dd4d4e8e02148e73bffacc7bc1b75e24f81734d
bookshelf/bookshelf,bookshelf/bookshelf,tgriesser/bookshelf,tgriesser/bookshelf
test/integration/helpers/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// XXX autopublish warning is printed on each restart. super spammy!\n\nMeteor.publish(\"directory\", function () {\n // XXX too easy to accidentally publish the list of validation tokens\n return Meteor.users.find({}, {fields: {\"ema...
javascript
edit
0
1
mit
f119348d9cda7d764a35165984775cc6e0fb06d7
luohuazju/meteor,skarekrow/meteor,Quicksteve/meteor,l0rd0fwar/meteor,daslicht/meteor,Puena/meteor,kencheung/meteor,yiliaofan/meteor,HugoRLopes/meteor,Urigo/meteor,meteor-velocity/meteor,brettle/meteor,juansgaitan/meteor,kengchau/meteor,somallg/meteor,DAB0mB/meteor,jg3526/meteor,chmac/meteor,ashwathgovind/meteor,Hansoft...
examples/parties/server/server.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n\nvar\n\textend = req('/lib/utilities/extend'),\n\tReplyMessage = req('/lib/messages/reply'),\n\tReplies = req('/lib/constants/replies'),\n\tNotOnChannelError = req('/lib/errors/not-on-channel');\n\n\nclass Not...
javascript
edit
0
1
isc
5980bfc6e570f913ee210fd08770906a8e81ca5a
burninggarden/pirc,burninggarden/pirc
lib/messages/replies/not-on-channel.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nconst { waterfall, mapSeries } = require('async');\nconst logger = require('../../lib/logger');\n\nmodule.exports = function createPreviewRelease(getConfig, getReleasePreview, notify, repos) {\n\n return ({ verbose = f...
javascript
edit
0
2
mit
c53802d7edb53148e6449d75b293e6d6ff3af4b0
AudienseCo/monorail,AudienseCo/monorail
core/actions/slackPreviewRelease.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n(function() {\n module('gpub.spec.preprocess');\n\n test('Preprocess grouping', function() {\n var cache = new gpub.util.MoveTreeCache();\n var sgf = '(;GM[1]AW[aa]AB[ba];B[bb]C[The End!])';\n var o = new gpub.Options({\n ...
javascript
edit
0
1
mit
995b6f66277d34bf19a6081b3d1fce62b5d61bd8
Kashomon/gpub,Kashomon/gpub,Kashomon/gpub
src/spec/preprocess_test.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\ndefine(['jquery'], function ($) {\n var colors = {\n log: '#000000',\n warn: '#cc9900',\n error: '#cc0000'\n };\n \n var log = $('#log');\n \n if (!console) {\n console = {};\n }\n for...
javascript
edit
0
10
mit
e52d1ead0f7ec36b3c18c8984c2d9f40fb78f557
configurator/billbill,configurator/billbill
scripts/console.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nfunction onDownloadFinished(duration)\n{\n console.log(\"Finished download in: \" + duration + \"ms\");\n initGame();\n initDebugger();\n}\n\n/*\n * Called on a resource download finish\n * Params :\n * downloadedAmount : Amou...
javascript
edit
0
1
mit
a2e65ca5a422133cdb7b0d183029b4b9a21ac6d2
DanAurea/Django-RPG,DanAurea/Trisdanvalwen,DanAurea/Trisdanvalwen,DanAurea/Django-RPG,DanAurea/Trisdanvalwen,DanAurea/Trisdanvalwen,DanAurea/Django-RPG,DanAurea/Django-RPG
game/static/game/js/GameLoader.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/*\n * Copyright (c) 2016 Steven Soloff\n *\n * This is free software: you can redistribute it and/or modify it under the\n * terms of the MIT License (https://opensource.org/licenses/MIT).\n * This software comes with ABSOLUTELY NO WAR...
javascript
edit
0
1
mit
92fb0fea29bd8187256f8699f7422c8f3344cf2f
ssoloff/eslint-config-crockford
spec/variable-declarations-spec.js
accepted
null
true