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 _ = require('lodash')\nvar fs = require('fs')\nvar gzip = require('gzip-size')\nvar filesize = require('filesize')\nvar cssstats = require('cssstats')\n\nvar module = require('tachyons-font-family/package.json')\nvar moduleCss = fs....
javascript
edit
0
0
mit
080d0b9e175b42d7596f917885050f59fef119c7
fenderdigital/css-utilities,matyikriszta/moonlit-landing-page,tachyons-css/tachyons,fenderdigital/css-utilities,topherauyeung/portfolio,topherauyeung/portfolio,pietgeursen/pietgeursen.github.io,cwonrails/tachyons,getfrank/tachyons,topherauyeung/portfolio
lib/font-family.js
rejected_duplicate
Near-duplicate of sample 94386
true
[ { "role": "user", "content": "Write javascript code for the following: Add unit tests for scope-bootstrap.js in the browser" }, { "role": "assistant", "content": "(function(){\n\n var\n // global object\n global = this;\n\n test(\"scope() must be defined\",function(){\n strictEqual(ty...
javascript
new_file
0
1
mit
df372c1835f1282b3d3543ffa7a53f549d771ab9
eric-brechemier/scope-in-browser,eric-brechemier/scopeornot,eric-brechemier/scopeornot
tests/test-scope-bootstrap.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports = {\n\n // Production settings\n prod: {\n options: {\n sourceMap: true,\n loadPath: require('node-refills').includePaths,\n style: 'expanded',\n update: true,\n ...
javascript
edit
0
0
mit
efc216e5524c192f5e5ba382fd82a3658a53fb93
ideus-team/html-framework,ideus-team/html-framework
dev/grunt/sass.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nuis.directive('uiSelectMatch', ['uiSelectConfig', function(uiSelectConfig) {\n return {\n restrict: 'EA',\n require: '^uiSelect',\n replace: true,\n transclude: true,\n templateUrl: function(tElement) {\n // Gets th...
javascript
edit
0
3
mit
7e30fb3eacaf0ac4d467c2b4d3788cd3a9319000
exwar/ui-select,dimpu/ui-select,zamabraga/ui-select,arachnys/ui-select,sunshinemu/ui-select,viniciusdacal/ui-select,driver-by/ui-select,oncompass/ui-select,billypon/ui-select,WorktileTech/ui-select,colvir/ui-select,krotovic/ui-select,tommyp1ckles/ui-select,cbryer/ui-select,artemijan/ui-select,Vitaliy-Yarovuy/ui-select,...
src/uiSelectMatchDirective.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// Welcome!\n// Add your github user if you accepted the challenge!\n\nvar players = [\n\t'raphamorim',\n\t'israelst',\n\t'afonsopacifer',\n\t'rafaelfragosom',\n 'brunokinoshita',\n\t'paulinhoerry',\n\t'enieber',\n 'alanrsoares'\n...
javascript
edit
0
0
mit
8700b2759f43ce9af9bcffcdc166f09e36cc51a1
arthurvasconcelos/write-code-every-day,rafael-neri/write-code-every-day,pablobfonseca/write-code-every-day,chocsx/write-code-every-day,ppamorim/write-code-every-day,letanloc/write-code-every-day,viniciusdacal/write-code-every-day,letanloc/write-code-every-day,arthurvasconcelos/write-code-every-day,gpedro/write-code-eve...
challengers.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// Read AWS config from orion. Orion ensures these are only available on the server.\nvar awsConfig = {\n accessKeyId: orion.config.get('AWS_API_KEY'),\n secretAccessKey: orion.config.get('AWS_API_SECRET'),\n bucket: orion.config.get...
javascript
edit
0
1
apache-2.0
d311883f3607cc560355d673e706af73e3033198
GeoMakers/geomakers.org,GeoMakers/geomakers.org
lib/cfs/images.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nvar events = require('events'),\n util = require('util');\n\nmodule.exports = function(manager, data) {\n events.EventEmitter.call(this);\n var self = this,\n timeout = 10000 * Math.random();\n\n mana...
javascript
edit
0
1
mit
f2366dfdb6621855782065dd491bab2d7acab056
Oxygem/TaskSwarm.js,Oxygem/TaskSwarm.js
example/tasks/test-long.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar Karma = require('./karma');\nvar StatusUpdater = require('./updater');\nvar util = require('./util');\n\nvar KARMA_URL_ROOT = require('./constants').KARMA_URL_ROOT;\n\n\n// Connect to the server using socket.io http://socket.io\nvar...
javascript
edit
0
0
mit
7a23fa571854fa6c1e7e7dc7fdfddeafa9759d58
gayancliyanage/karma,tomkuk/karma,johnjbarton/karma,simudream/karma,mprobst/karma,jjoos/karma,mprobst/karma,skycocker/karma,harme199497/karma,karma-runner/karma,marthinus-engelbrecht/karma,jjoos/karma,clbond/karma,powerkid/karma,Dignifiedquire/karma,brianmhunt/karma,brianmhunt/karma,wesleycho/karma,aiboy/karma,rhlass/k...
client/main.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nfunction main_action() {\n\tif (/\\/$/.test(req.path)) { // Path ends with / -> we're in a popup\n\t\tthis.renderPopup({\n\t\t\tcontent: this.renderTemplate('picture', {\n\t\t\t\t// Make sure we're rendering the popup image versioned ev...
javascript
edit
0
5
mit
12139de66b4cb3f67bfcee86a68f0f5f21c4a4cf
lehni/boots,lehni/boots
type/helma/Picture/actions.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\ndefine([\n './stream',\n '../functional/isFunction',\n '../functional/isDefined',\n '../functional/invoke'\n], function (Stream, isFunction, isDefined, invoke) {\n 'use strict';\n\n /**\n * @param {Function} [imple...
javascript
edit
0
4
mit
847c0ae6ca511b13c6929156b0cb7efdbb6b382d
widmogrod/jef,widmogrod/jef
src/stream/push-stream.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/***\n * loggerSet - checks to see if the Logger object has been created on server\n * @returns {boolean} - return true if the Logger object has been created on server\n */\nvar loggerSet = function () {\n if (typeof Logger !== 'undefi...
javascript
edit
0
3
mit
5a6be2217aeede1ab994f477090d1a54c0d12be4
miktam/loggly,avrora/loggly
logglyMeteorMethods.js
rejected_duplicate
Near-duplicate of sample 82973
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n(function(){\n\nfunction mochaSinon(sinon){\n if (typeof beforeEach !== \"function\") {\n throw \"mocha-sinon relies on mocha having been loaded.\";\n }\n\n beforeEach(function() {\n if (null == this.sinon) {\n if (sinon.c...
javascript
edit
0
4
mit
1dc865d620a379d748b615606a54db191a981519
elliotf/mocha-sinon,elliotf/mocha-sinon
mocha-sinon.js
rejected_duplicate
Near-duplicate of sample 88830
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar messageTxt;\nvar messages;\n\n$(function () {\n\n\tmessageTxt = $(\"#messageTxt\");\n\tmessages = $(\"#messages\");\n\n\n\tw = new Ws(\"ws://\" + HOST + \"/my_endpoint\");\n\tw.OnConnect(function () {\n\t\tconsole.log(\"Websocket co...
javascript
edit
0
2
mit
efd73128ab38ef6aa7eb24f4b5ce2626ffa82520
iris-contrib/examples,iris-contrib/examples,iris-contrib/examples,iris-contrib/examples
websocket/static/js/chat.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nimport React from 'react/addons';\n\nimport Accordion from '../src/Accordion';\nimport AccordionItem from '../src/AccordionItem';\n\nclass Demo extends React.Component {\n\n render() {\n return (\n <Accordion>\...
javascript
edit
0
1
mit
28827db85d4df7e0b746250f280b95a51df8d78e
gracelauren/react-sanfona,clemsos/react-sanfona,thoshith/react-sanfona,daviferreira/react-sanfona,thoshith/react-sanfona,clemsos/react-sanfona
demo/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst fs = require('fs');\nconst path = require('path');\n\nconst jsFiles = fs.readdirSync(path.resolve('dist', 'chrome')).filter(filename => filename.endsWith('.js.br')).map(filename => `dist/chrome/${filename}`);\n\nmodule.exports = {...
javascript
edit
0
1
mit
46cbe420845c06082054acbe852c2c91ede21942
kristoferbaxter/preact-hn,kristoferbaxter/preact-hn
config/sw-precache.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\ndefine(['exports',\n './lib/request',\n 'url'],\nfunction(exports, Request, uri) {\n\n function request(url, method, cb) {\n var headers;\n \n if (typeof url == 'object') {\n var opts = url;\n cb = meth...
javascript
edit
0
7
mit
798e42eac900ed4992b3e55a9a0289d2a0d12a36
anchorjs/ajax,anchorjs/ajax
main.js
rejected_duplicate
Near-duplicate of sample 91768
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports = {\n parser: 'babel-eslint',\n extends: 'airbnb',\n globals: {\n before: true,\n beforeEach: true,\n after: true,\n afterEach: true,\n describe: true,\n it: true,\n xit: true,\n xdescribe: true...
javascript
edit
0
0
mit
b65a9293ea64c784f0005420285ffc748887923e
crewmeister/eslint-config-crewmeister
index.js
rejected_duplicate
Near-duplicate of sample 93199
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict'\n\nvar jsYAML = require('js-yaml')\n\nmodule.exports = yamlConfig\n\n// Modify remark to read configuration from comments.\nfunction yamlConfig() {\n var Parser = this.Parser\n var Compiler = this.Compiler\n var parser =...
javascript
edit
0
7
mit
103780267d930eb84fa76195e3aab87d17ce81dc
wooorm/mdast-yaml-config,wooorm/remark-yaml-config
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict'\n\nmodule.exports = visit\n\nvar visitParents = require('unist-util-visit-parents')\n\nvisit.CONTINUE = visitParents.CONTINUE\nvisit.SKIP = visitParents.SKIP\nvisit.EXIT = visitParents.EXIT\n\nfunction visit(tree, test, vis...
javascript
edit
0
3
mit
662dc290f8ef6b6c8e75a5ba4d793fa4d05310cc
wooorm/mdast-util-visit,wooorm/unist-util-visit
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport uuid from 'node-uuid';\nimport express from 'express';\nimport OrientDB from 'orientjs';\nimport {BinaryServer} from 'binaryjs';\n\nimport setupStreamServer from './lib/setup-stream-server';\nimport {setupInitQueue, setupNextSong...
javascript
edit
0
1
mit
37910ee13640757f545494aa527a1bb3234d7102
d3spis3d/na-streamer,d3spis3d/na-streamer
na-backend/js/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar Q = require('q');\n\nmodule.exports = function(AWS){\n\tAWS.Request.prototype.promise = function(){\n\t\tvar deferred = Q.defer();\n\n\t\tthis.\n\t\ton('success', function(response) {\n\t\t\tdeferred.resolve(response);\n\t\t}).\n\t\...
javascript
edit
0
1
mit
36ba97c81a0b5e566fa91cd6060055cfa8bf7333
Trioxis/aws-q
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst pluginLodash = require('babel-plugin-lodash')\nconst pluginReactRequire = require('babel-plugin-react-require').default\nconst presetEnv = require('babel-preset-env')\nconst presetStage1 = require('babel-preset-stage-1')\nconst pr...
javascript
edit
0
2
mit
c82ccfd1a8fef8b9c349c99373f7d627f3d89268
kensho/babel-preset-kensho,kensho/babel-preset-kensho
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports = (function store() {\n 'use strict';\n\n function nope() { /* Fallback for when no store is supported */ }\n\n try {\n sessionStorage.setItem('foo', 'bar');\n if (sessionStorage.getItem('foo') !== 'bar') throw 1...
javascript
edit
0
5
mit
f7849ab1de520add24e2b41a0b8523f7bcffa39b
unshiftio/sessionstorage
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar join = require('path').join;\r\nvar execFileSync = require('child_process').execFileSync;\r\nvar WHERE_PATH = join(process.env.WINDIR, 'System32', 'where.exe');\r\nvar cache = {};\r\nvar originalWhich = require('which');\r\n\r\nvar ...
javascript
edit
0
4
mit
290579181706f659131662ea22644b6559235663
bower/bower
lib/util/which.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-place-autocomplete',\n contentFor: function(type, config) {\n var content = '';\n if (type === 'body-footer') {\n var src = \"//maps.googleapis.com...
javascript
edit
0
6
mit
6c769fe72a23cd88da6a49de6672591a153bf9e4
dmuneras/ember-place-autocomplete,dmuneras/ember-place-autocomplete
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nconst colors = require('ansicolors');\nconst pluralize = require('pluralize');\nconst CLIEngine = require('eslint').CLIEngine;\n\nclass ESLinter {\n constructor(brunchConfig) {\n this.config = (brunchConfig && brunc...
javascript
edit
0
6
mit
fd086cb8c2036f6df2121cc43c9fb1c458da0ea3
spyl94/eslint-brunch,brunch/eslint-brunch
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// @flow\n\n/* eslint-disable no-console */\n\nimport path from 'path';\nimport { green } from 'chalk';\nimport inquirer from 'inquirer';\nimport createConfig from '../createConfig';\nimport { fileExists } from '../util/fs';\nimport { p...
javascript
edit
null
null
apache-2.0
407747697543d59daac59b94084070a9ce4ac945
amazeeio/lagoon,amazeeio/lagoon,amazeeio/lagoon,amazeeio/lagoon,amazeeio/lagoon,amazeeio/lagoon,amazeeio/lagoon
cli/src/commands/init.js
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nconst schedule = require('node-schedule');\n\nconst jenkins = require('./lib/jenkins');\nconst redis = require('./lib/redis');\n\nconst gitter = require('./lib/gitter');\nconst sendgrid = require('./lib/sendgrid');\n...
javascript
edit
0
3
mit
6e074e40c5418964b5b937c9e4578d649b611702
Starefossen/jenkins-monitor
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n\"use strict\";\n\nvar request = require('request');\nvar bodyParser = require('body-parser');\n\nvar express = require('express');\nvar app = express();\n\napp.use('/', express.static(__dirname + '/public'));\napp.use(bodyParser.json()...
javascript
edit
0
1
mit
d4ca2e310726bb8b83223704dfa6695fa905a676
flammenmensch/pact,flammenmensch/pact
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport {default as color, Color} from \"./src/color\";\nimport {default as rgb, Rgb} from \"./src/rgb\";\nimport {default as hsl, Hsl} from \"./src/hsl\";\nimport {default as lab, Lab} from \"./src/lab\";\nimport {default as hcl, Hcl} f...
javascript
edit
0
0
isc
6f0cfb0e09a602175c0b5e6b90b8f8a2bd90f96f
d3/d3-color
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n$(document).ready(function() {\n \n $(window).scroll(function() {\n if ($(this).scrollTop() > 1) {\n \n /* add header animation */\n $('header').addClass('scroll-nav scroll-animation');\n ...
javascript
edit
0
2
mit
ca8499e1b7d2ee822991234bd3881b03d117495a
andrewsgardner/AdaptiveNav,andrewsgardner/AdaptiveNav,andrewsgardner/AdaptiveNav
resources/scripts/animation.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar dgram = require('dgram');\n\nconst PORT = 5050\nconst PING_PAYLOAD = \"dd00000a000000000000000400000002\"\nconst POWER_PAYLOAD = \"dd02001300000010\"\n\nmodule.exports = Xbox;\n\nfunction Xbox(ip, id) {\n this.ip = ip;\n this.id =...
javascript
edit
0
2
mit
c5a120528daf4a1bae5b1d7bde43a275559b4e5c
arcreative/xbox-on
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\ndefine(function () {\n // Galician\n return {\n inputTooLong: function (args) {\n var overChars = args.input.length - args.maximum;\n\n var message = 'Engada ';\n\n if (overChars === 1) {\n message += 'un cará...
javascript
edit
0
2
mit
42075c62334e7f8d28bb833c8a442a92aa26cf9f
binary-koan/select2,jiawenbo/select2,murb/select2,matixmatix/select2,bottomline/select2,lewis-ing/select2,megahallon/select2,UziTech/select2,zhaoyan158567/select2,xtrepo/select2,afelixnieto/select2,syndbg/select2,openbizgit/select2,keitler/select2,tb/select2,marcoheyrex/select2,Restless-ET/select2,zhangwei900808/select...
src/js/select2/i18n/gl.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst bodyParser = require('body-parser');\nconst request = require('request');\nconst Entities = require('html-entities').AllHtmlEntities;\n\nconst entities = new Entities(); // decode strings like '&amp;'\n\nmodule.exports.fetchWiki =...
javascript
edit
0
3
mit
63c17b633da0843e1d118319d4029651a3c49b36
francoabaroa/escape-reality,lowtalkers/escape-reality,lowtalkers/escape-reality,francoabaroa/escape-reality
server/lib/utilities.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar fse = require(\"fs-extra\");\n\nfunction WebpackCopyAfterBuildPlugin(mappings) {\n this._mappings = mappings || {};\n}\n\nWebpackCopyAfterBuildPlugin.prototype.apply = function(compiler) {\n var mappings = this._mappings;\n\n com...
javascript
edit
0
4
mit
2a138e6ca9f5e55f7f233c4c36e625580033bdb6
rupurt/webpack-copy-after-build-plugin
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){\n(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),\nm=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m...
javascript
edit
0
2
mit
b5967babb15e165b72bf0e10b79f562112f105d3
outsideris/mocha,adamgruber/mocha,igwejk/mocha,hoverduck/mocha,mochajs/mocha,adamgruber/mocha,boneskull/mocha,boneskull/mocha,adamgruber/mocha,boneskull/mocha,igwejk/mocha,hoverduck/mocha,hoverduck/mocha,mochajs/mocha,hoverduck/mocha,outsideris/mocha,mochajs/mocha
docs/js/ga.js
rejected_duplicate
Near-duplicate of sample 73111
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/* jshint node: true */\n'use strict';\n\nmodule.exports = {\n name: 'ember-g-recaptcha',\n\n contentFor: function(type, config) {\n var content = '';\n if (type === 'body-footer') {\n var src = 'https://www.google.com/reca...
javascript
edit
0
2
mit
818da6248af63e209c6bbde9977fde9ba6569120
algonauti/ember-g-recaptcha,algonauti/ember-g-recaptcha
index.js
rejected_duplicate
Near-duplicate of sample 86389
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/* jshint node: true */\n'use strict';\n\nmodule.exports = {\n name: 'ember-full-story'\n};\n\n```\n\nApply this change: Include FullStory recording snippet in content-for header-footer" }, { "role": "assistant", "content":...
javascript
edit
0
2
mit
af05d45c247772363e2a0f7eb6b70d3b4225fed6
HeroicEric/ember-full-story,HeroicEric/ember-full-story
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nvar toStr = Object.prototype.toString;\nvar fnToStr = Function.prototype.toString;\nvar isFnRegex = /^\\s*function\\*/;\n\nmodule.exports = function isGeneratorFunction(fn) {\n\tvar fnStr = toStr.call(fn);\n\treturn fnS...
javascript
edit
0
3
mit
36f054590d4f5fa994af5f2e7d592840bf9f9d27
ljharb/is-generator-function
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nif (process.env.SUPERSTRING_USE_BROWSER_VERSION) {\n module.exports = require('./browser');\n} else {\n try {\n module.exports = require('./build/Release/superstring.node')\n } catch (e) {\n module.exports = require('./build/De...
javascript
edit
0
0
mit
82ce0eac8fba63e292ce6a8acffb353c3847ac53
atom/superstring,atom/superstring,atom/superstring,atom/superstring,atom/superstring
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports = stringify\nstringify.default = stringify\nfunction stringify (obj) {\n if (typeof obj === 'object' && typeof obj.toJSON !== 'function') {\n decirc(obj, '', [], null)\n }\n return JSON.stringify(obj)\n}\nfunction C...
javascript
edit
0
8
mit
b02325d6aab94f7d8f8c674b7883be95b98803cc
davidmarkclements/fast-safe-stringify
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\nvar isWeekend = function (date) {\n var dateString = date,\n weekDay = dateString.getDay(),\n hour = dateString.getHours();\n return ((weekDay === 5 && hour >= 17) || weekDay === 6 || weekDay === 0);\n};\n\nva...
javascript
edit
0
3
mit
189680a189a7216546ab6880c64c082eff596ebc
wibron/helg
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/* 2017 Omikhleia\n * License: MIT\n *\n * RoomJS bot main.\n */\nconst bunyan = require('bunyan')\nconst dotenv = require('dotenv')\n\nconst RoomJSBot = require('./src/room-js-bot')\nconst pkg = require('./package.json')\n\ndotenv.conf...
javascript
edit
0
0
mit
2804dff377eb18be7e38f56dcc9258ce5c8efdee
Omikhleia/room.js-bot
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/* @flow */\n\nimport defineType, { assertNodeType } from \"./index\";\n\ndefineType(\"AwaitExpression\", {\n builder: [\"argument\"],\n visitor: [\"argument\"],\n aliases: [\"Expression\", \"Terminatorless\"],\n fields: {\n argu...
javascript
edit
0
0
mit
3d08164e5234f9df990da42c746c2d970d748ee2
forivall/tacoscript,forivall/tacoscript
src/definitions/experimental.js
rejected_duplicate
Near-duplicate of sample 76333
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar fs = require('fs');\nvar minify = require('node-json-minify');\nvar argv = require('minimist')(process.argv.slice(2));\nvar jsesc = require('jsesc');\nvar elasticsearch = require('elasticsearch');\n\nvar esHost = argv.esHost || 'loc...
javascript
edit
0
1
mit
cc045ac777181deee31b53ef6e7af15948149a2f
jirwin/grapr
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// Karma configuration\n// Generated on Fri May 10 2013 21:56:54 GMT+0200 (CEST)\n\n\n// base path, that will be used to resolve files and exclude\nbasePath = '';\n\n\n// list of files / patterns to load in the browser\nfiles = [\n MOC...
javascript
edit
0
0
mit
2469d54612f13561c8765e6869f2f25ad81e6896
davidlitmark/beatsheet
karma.conf.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nfunction uriSync(method, model, options) {\n var resp = null,\n S4 = function() {\n return (((1+Math.random())*0x10000)|0).toString(16).substring(1);\n },\n guid = function() {\n return (S4(...
javascript
edit
0
10
mit
67de61b778758fda74ddcf266b55cd63be3118dc
uzikilon/backbone-uriStorage
Backbone.uriSync.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports = function(config){\n config.set({\n\n basePath : './',\n\n files : [\n 'app/bower_components/angular/angular.min.js',\n 'app/bower_components/angular-ui-router/release/angular-ui-router.min.js',\n '...
javascript
edit
0
1
mit
3b568238237e5741bc40d6d7ea45ee67aa48aee6
excellalabs/ncarb-certification-search,excellalabs/ncarb-certification-search
karma.conf.js
rejected_duplicate
Near-duplicate of sample 69899
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n An HTMLBars AST transformation that updates all {{t}} statements to\n ensure they have a namespace argument.\n*/\nvar path = require('path');\n\nfunction EnsureTNamespace(options) {\n this.syntax = null;\n this.options = optio...
javascript
edit
0
2
mit
204e0e86e94f1ba34e9734d6e6fa324b9c5bd237
zackthehuman/ember-template-i18n,zackthehuman/ember-template-i18n
lib/handlebars/t-namespace-inserter.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst configureStore = process.env.NODE_ENV === 'development' ?\n './configureStore.dev.js' :\n './configureStore.js';\n\n// eslint-disable-next-line import/no-dynamic-require\nmodule.exports = require(configureStore);\n\n```\n\nApply...
javascript
edit
0
0
mit
eeae82455bba5e665c87705873e6f5336530b2ea
nodaguti/word-quiz-generator-webapp,nodaguti/word-quiz-generator-webapp
src/redux/stores/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n$('#dripbot-title').css({\n\t\"display\": \"inline-block\",\n\t\"margin-right\": \"20px\"\n});\n\n$('#dripbot').css({\n \"text-align\": \"left\"\n});\n\n$('#dripbot-toggle.stop').css({\n \"background-color\": \"#e9656d\",\n \"c...
javascript
edit
0
0
mit
393b9acf689ae77658d12cc3bb16e5bb9b3fc49d
catofclysm/testing,kyotie/bot,apottere/DripBot,kyotie/bot,apottere/DripBot,catofclysm/testing
dripBot-css.js
rejected_duplicate
Near-duplicate of sample 72082
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst webpack = require('webpack');\nconst path = require('path');\nconst common = require('./webpack-common');\n\nconst ExtractTextPlugin = require('extract-text-webpack-plugin');\nconst UglifyJSPlugin = require('uglifyjs-webpack-plug...
javascript
edit
0
0
apache-2.0
b35b7b23767f7721e8fbb265e8515ac43e7603af
bartvde/sdk,boundlessgeo/sdk,jjmulenex/sdk,jjmulenex/sdk,boundlessgeo/sdk,bartvde/sdk
webpack-example.config.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport styleBody from 'ghost/mixins/style-body';\nimport AuthenticatedRoute from 'ghost/routes/authenticated';\n\nvar EditorRoute = AuthenticatedRoute.extend(styleBody, {\n classNames: ['editor'],\n controllerName: 'posts.post',\n...
javascript
edit
0
2
mit
ec3c232eccf82d221015a67a96060d798b24ac29
acburdine/Ghost-Admin,kevinansfield/Ghost-Admin,JohnONolan/Ghost-Admin,acburdine/Ghost-Admin,JohnONolan/Ghost-Admin,dbalders/Ghost-Admin,airycanon/Ghost-Admin,TryGhost/Ghost-Admin,airycanon/Ghost-Admin,kevinansfield/Ghost-Admin,TryGhost/Ghost-Admin,dbalders/Ghost-Admin
routes/editor.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar ini = require('ini');\nvar fs = require('graceful-fs');\nvar Log = require('log');\n\nvar arguments = require(__dirname + '/lib/arguments.js');\n\nglobal.log = new Log('debug', fs.createWriteStream(__dirname + '/crawler.log'));\n\ng...
javascript
edit
0
3
mit
2d4a2d6bd053f9f544960d32241a50e0ef3e206c
franjid/filmaffinity-crawler
crawl.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst responseFromObject = (mockResponse, response) => {\n // statusCode\n if (mockResponse.statusCode) {\n response.statusCode = mockResponse.statusCode\n }\n // statusMessage\n if (mockResponse.statusMessage) {\n...
javascript
edit
0
6
mit
3959092d6782d73d91b30cba3006555d187588b7
amadsen/satire
lib/response-from-object.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nvar utils = require('./utils/utils');\n\n//------------------------------------------------------------------------------\n// General rule - Create local version of Ember.* and DS.*\n//----------------------------------...
javascript
edit
0
6
mit
aad3c64a5290e35ed5e2af01e6eb3d40b595daac
netguru/eslint-plugin-ember
rules/local-modules.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport Ember from 'ember';\n\nimport countries from './countries';\n\n\nexport default Ember.Component.extend({\n i18n: Ember.inject.service(),\n countries: countries,\n languages: Ember.computed('countries', function() {\n ...
javascript
edit
0
3
apache-2.0
cc44c7a42facb03c0894442d057658fc3496fc40
CenterForOpenScience/isp,CenterForOpenScience/isp,CenterForOpenScience/isp
app/components/language-picker/component.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport * as types from './constants';\n\nexport const initialState = {\n openFeedbackModal: false,\n};\n\nconst feedbackReducer =\n(state = initialState, action) => {\n switch (action.type) {\n case types.OPEN_FEEDBACK_MODAL:\n ...
javascript
edit
0
2
mit
380cf68be7d9299b1ce12d3e49615a237510e800
udacityalumni/udacity-alumni-fe,udacityalumni/alumni-client,udacityalumni/alumni-client,udacityalumni/udacity-alumni-fe
app/src/containers/FeedbackContainer/reducer.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar command = process.argv[2]\nvar target = process.argv[3]\n\nvar concerns = require('cfg/concerns.json')\nvar types = require('cfg/types.json')\n\nvar tasks = {\n new: {\n runner: require('tasks/new'),\n help: \"new\"\n },\n ...
javascript
edit
0
0
mit
a22efd728018feb0ef93bab1643fe3f0b59751f0
YWebCA/ywca-cli
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\nvar gutil = require('gulp-util');\nvar through = require('through2');\nvar applySourceMap = require('vinyl-sourcemaps-apply');\nvar objectAssign = require('object-assign');\nvar to5 = require('6to5');\n\nmodule.exports = ...
javascript
edit
0
6
mit
abc25d8f6670a340e946fd10f86ed8fdaab7caba
benderTheCrime/gulp-babel,exponentjs/gulp-babel,StartPolymer/gulp-html-babel,metaraine/gulp-babel,chrisvariety/gulp-babel,woodne/gulp-babel,babel/gulp-babel,clarkmalmgren/gulp-babel
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport Component from '@ember/component';\nimport layout from './template';\nimport { inject as service } from '@ember/service';\n\nconst headers = [\n {\n name: 'state',\n sort: ['sortState', 'displayName'],\...
javascript
edit
0
0
apache-2.0
bfc1e0ae3f2b94da09038df235897d4bd5f2c53f
lvuch/ui,rancherio/ui,westlywright/ui,rancherio/ui,vincent99/ui,vincent99/ui,westlywright/ui,lvuch/ui,rancher/ui,rancher/ui,lvuch/ui,vincent99/ui,rancherio/ui,westlywright/ui,rancher/ui
app/components/namespace-table/component.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar fs = require('fs');\nvar chalk = require('chalk');\nvar partiesAbbreviation = require('./util/parties-abbreviations.js');\n\nmodule.exports = function splitResults(json, directory) {\n\n\tvar electionDate = json.electionDate;\n\n\t/...
javascript
edit
0
1
mit
1fb7db4e4b6a5b74fe64a4bc6199add13838d419
gabrielflorit/ap2json,gabrielflorit/APtoJSON
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nconst defaults = {\n currency: '€',\n currencyPosition: 'after',\n decimals: 2,\n decimalSeparator: ',',\n orderSeparator: '.',\n zeroDecimals: '',\n space: '&nbsp;'\n};\n\nmodule.exports = (value, options) => {\...
javascript
edit
0
10
mit
7d192d3b28db92f2ed3934edc3ea6f5bd4f53e85
Dreamseer/geld,Dreamseer/geld,Dreamseer/geld
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\nconst xRegExp = require('xregexp');\n\nmodule.exports = (text, separator) => {\n\tif (typeof text !== 'string') {\n\t\tthrow new TypeError('Expected a string');\n\t}\n\n\tseparator = typeof separator === 'undefined' ? '_'...
javascript
edit
0
3
mit
98ae624de5a246dd086ccfe629101a5234df43d4
sindresorhus/decamelize,sindresorhus/decamelize
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports = {\n\tdevices: require(\"./src/lib/devices\"),\n\tdrivers: require(\"./src/lib/drivers\"),\n\tevents: require(\"./src/lib/events\"),\n\tmaps: require(\"./src/lib/maps\")\n};\n```\n\nApply this change: Remove problematic ...
javascript
edit
0
0
mit
54c7145a717d4b94a0dd1645534df6ee15bb3853
deHugo/hid-robot
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar Disclosure = function(el) {\n var self = this;\n self.el = el;\n self.isActive = false;\n self.details = el.querySelectorAll('[data-details]');\n el.addEventListener('click', function(e) { self.toggle(e) });\n self.hide();\n};...
javascript
edit
0
2
mit
4c288518a673a0f5e92b00a6965d47af5ca73d73
wunderlist/disclose
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\n// Load the http module to create an http server.\nvar http = require('http');\n\nvar listenPort = process.env.VCAP_APP_PORT || 8000;\n\n// Configure our HTTP server to respond with Hello World to all requests.\nvar ser...
javascript
edit
0
1
mit
f54449a5bd5b47422cecedd37eeeba2146636d93
clhynfield/hello-foundry
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n#!/usr/bin/env node\n\nmodule.exports = (function() {\n var turboLogo = require('turbo-logo'),\n colors = require('colors/safe');\n\n return {\n print: finalPrint\n };\n\n /////////\n\n function getText() {\...
javascript
edit
0
3
mit
3af5dc02cbd32fbd6bc7a23d32c37b6d10fd4a50
sfabrizio/burgerjs-logo
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nvar getArrowFunctions = function getArrowFunctions() {\n return [\n\t\tFunction('return (a, b) => a * b;')(),\n\t\tFunction('return () => 42;')(),\n\t\tFunction('return () => function () {};')(),\n\t\tFunction('retur...
javascript
edit
0
1
mit
610403ccff3f35289271152636d3cd755933ddbf
tomhughes/make-arrow-function,ljharb/make-arrow-function
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports = semanticEditionParse\n\nvar digit = '[1-9][0-9]*'\n\nvar EUCD = new RegExp(\n '^' +\n '(' + digit + ')e' +\n '(?:' +\n '(' + digit + ')u' +\n '(?:' +\n '(' + digit + ')c' + ')?' + ')?' +\n '(?:' +\n '(...
javascript
edit
0
2
mit
2d8b974dc886445162f83e93d187d9b6fd121385
kemitchell/reviewers-edition-parse.js
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst fs = require('fs');\nconst Fuze = require('fuse.js');\nconst mustache = require('mustache');\n\nconst template = fs.readFileSync('./template.md', {encoding: 'utf-8'});\n\nmodule.exports = robot => {\n robot.on('issues.opened', as...
javascript
edit
0
3
isc
07eb76fb3d19873e834ac2728d1480792df87878
MarshallOfSound/probot-issue-duplicate-detection
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar through = require('through-gulp')\nvar gutil = require('gulp-util')\nvar rext = require('replace-ext')\nvar preprocessor = require('sourdough-preprocessor')\nvar PluginError = gutil.PluginError\n\nvar PLUGIN_NAME = 'gulp-sourdough'\...
javascript
edit
0
5
mit
c99347702cec08822804ac695f5981bfdb9bbb09
sourdough-css/gulp-sourdough
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict'\n\nvar State = require('dover')\nvar Observ = require('observ')\nvar emailRegex = require('email-regex')({exact: true})\nvar isEmail = emailRegex.test.bind(emailRegex)\nvar h = require('virtual-dom/h')\nvar changeEvent = re...
javascript
edit
0
4
mit
875b8d4eebdb588db43ee1ff70477a5e118d6475
bendrucker/email-input
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nmodule.exports = makeError;\nfunction makeError(code, message, options) {\n var line = options.line;\n var column = options.column;\n var filename = options.filename;\n var src = options.src;\n var fullMessage;\n ...
javascript
edit
0
3
mit
e09500cf8e9a98c47110e08578935ba31a45dccb
pugjs/pug-error,pugjs/jade-error,jadejs/jade-error
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nvar eco = require('eco');\n\nexports.name = 'eco';\nexports.outputFormat = 'html';\nexports.render = function (str, options) {\n return eco.render(str, options);\n};\n\n```\n\nApply this change: Use XML as output forma...
javascript
edit
0
1
mit
d8b9c5cc2b17811fc663dde384f4b1a1d5ef571a
jstransformers/jstransformer-eco,jstransformers/jstransformer-eco
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// Avoid `console` errors in browsers that lack a console.\n(function() {\n var noop = function noop() {};\n var methods = [\n 'assert', 'clear', 'count', 'debug', 'dir', 'dirxml', 'error',\n 'exception', 'group', 'g...
javascript
edit
0
3
mit
dc00673b7c056392409139dba451305a828a230d
briankelleher/html5-boilerplate,rodrigolins/html5-boilerplate,hisherear/html5-boilerplate,yk92/is117-Project1,klokie/howlermonkeygods.github.com,hfb7/HTML-FORM-TUTORIAL-,zachmorgan/webdevHollywoodFitness-team-02,wp34/PSD-to-HTML,nanakojoaba/project1,elbernante/html5-boilerplate,katy-400/Boiler,tonyalee1169/html5-boiler...
js/plugins.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\ndocument.getElementById(\"ayuda\").setAttribute(\"aria-current\", \"page\");\nvar aside = document.getElementById(\"complementario\");\nvar button = document.createElement(\"BUTTON\");\nvar text = document.createTextNode(\"Prueba\");\nb...
javascript
edit
0
3
mit
356fdb8abac0259d1016a93da57561b41acc07d6
nvdaes/nvdaes.github.io,nvdaes/nvdaes.github.io
scripts/ayuda.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nfunction scrollTo(e) {\n var distanceToTop = function (el) {\n try {\n return Math.floor(el.getBoundingClientRect().top);\n } catch (err) {\n console.log(err);\n }\n ...
javascript
edit
0
2
mit
f63888293718914c86f373bb5974f82fe8bdced0
deduced/bov-personal-portfolio,deduced/bov-personal-portfolio
src/assets/js/scrolling-nav.js
rejected_duplicate
Near-duplicate of sample 83432
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nBureaucracy.start.cols = [\n\t{\n\t\t_id: 'name',\n\t\tname: \"Name\",\n\t\ttype: String\n\t},\n\t{\n\t\t_id: 'date',\n\t\tname: \"Travel Date\",\n\t\ttype: Date\n\t},\n\t{\n\t\t_id: 'age',\n\t\tname: \"Age\",\n\t\ttype: Number\n\t},\n\...
javascript
edit
0
1
mit
232addfd19313b1a97ac6e4936de7965464b8602
1083/bureaucracy,1083/bureaucracy
scripts/start.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar redis = require('redis'),\n redisCon = module.exports = {};\n\nredisCon.subClient = redis.createClient();\nredisCon.pubClient = redis.createClient();\n\nredisCon.subClient.psubscribe('__keyevent@0__:expired');\n\nredisCon.register ...
javascript
edit
0
1
mit
5f06b4187d66c9d58edb36411e719c5bbe9320fd
howtox/howtox-server,howtox/howtox-server
controllers/redis_con.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// Include The 'require.async' Module\nrequire(\"require.async\")(require);\n\n/**\n * Tokenizes an input string.\n *\n * @param {String} Input\n *\n * @return {Array}\n */\nfunction tokenize (input) {\n return input\n .re...
javascript
edit
0
2
mit
3d6b4cd627992544062a40512957d179fd78561f
itkoren/Lets-Node-ex-6
sentiment/index.js
rejected_duplicate
Near-duplicate of sample 90670
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/* eslint-env node */\nconst path = require('path');\nvar browsers = ['Chrome'];\n\nif (process.env.NODE_ENV === 'test') {\n browsers = ['PhantomJS'];\n}\n\nmodule.exports = (config) => {\n config.set({\n basePath: '.',\n framew...
javascript
edit
0
1
bsd-3-clause
60a9d9581242f35ff0250264dbe79dcabf654658
rma-consulting/rc-d3,rma-consulting/react-easy-chart,rma-consulting/react-easy-chart,rma-consulting/rc-d3
karma.conf.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nconst Hapi = require('hapi');\n\nconst server = new Hapi.Server();\nconst port = process.env.PORT || 3000;\nconst verifyToken = process.env.VERIFY_TOKEN || '';\nserver.connection({port: port});\n\nserver.start((err) => ...
javascript
edit
0
2
mit
41b33a8470d2156ad5e4dcb4f5e8b7114661d46b
Keeprcom/keepr-bot
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n\"use strict\";\n\nvar port = process.env.PORT || 8080;\nvar file = require(\"fs\").readFileSync;\nvar glob = require(\"glob\");\nvar path = require(\"path\");\n\nvar rested = require(\"rested\");\n\nvar routes = glob.sync(\"routes/*.js...
javascript
edit
0
1
bsd-3-clause
73b9d262433290c174cd7decce85f167aae28adb
munapps/munapps-api
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n#! /usr/bin/env ./node_modules/.bin/babel-node\n\n\nimport prompt from 'prompt';\nimport {parse} from 'nomnom';\n\n\nconst schema = {\n properties: {\n name: {\n description: 'Package name: ',\n pattern: /^[a-z]+[a-z\\-_]+...
javascript
edit
0
1
mit
33760ac596580da775a1dc3d5a9d766cb95dafb3
cloverfield-tools/cf-package,halhenke/cf-package,nkbt/cf-react-component-template,davegomez/cf-package
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// @flow\nmodule.exports = {\n extends: [\n 'plugin:flowtype/recommended',\n 'plugin:react/recommended',\n 'plugin:jest/recommended',\n './rules/imports.js',\n // This comes last so that prettier-config can turn off appr...
javascript
edit
0
0
mit
95592d8cf6d543fe94ca616ad8ff17f6b0468bcd
fusionjs/eslint-config-fusion
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nconst compiler = require('vueify').compiler;\nconst fs = require('fs');\n\nclass VueBrunch {\n\n constructor(config) {\n this.config = config && config.plugins && config.plugins.vue || {};\n this.styles = {};\n ...
javascript
edit
0
7
mit
b40f8f9e76c3f1060e1f90661b0689069b518a86
nblackburn/vue-brunch
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-power-select',\n\n included: function(appOrAddon) {\n var app = appOrAddon.app || appOrAddon;\n if (!app.__emberPowerSelectIncludedInvoked) {\n app...
javascript
edit
0
6
mit
b96ebaa28f23f209edf14c1707fa975fa98c8601
chrisgame/ember-power-select,cibernox/ember-power-select,cibernox/ember-power-select,esbanarango/ember-power-select,Dremora/ember-power-select,esbanarango/ember-power-select,cibernox/ember-power-select,Dremora/ember-power-select,chrisgame/ember-power-select,cibernox/ember-power-select,esbanarango/ember-power-select
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar Sandbox = require('sandbox');\n\nmodule.exports = exports = function(json, callback) {\n\t// run the code in a sandbox to thwart evil people\n\tvar s = new Sandbox();\n\n\t// in a self executing function set json equal to a variable...
javascript
edit
0
2
mit
f878604de6113018d04662430ee413f33019e73e
TechplexEngineer/json_sanitizer
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport postcss from 'postcss';\n\nconst postcssFlexibility = postcss.plugin('postcss-flexibility', () => css => {\n\tcss.walkRules(rule => {\n\t\tconst isDisabled = rule.some(({prop, text}) =>\n\t\t\tprop === '-js-display' || text === '...
javascript
edit
0
4
mit
9264467c47bb6d75d22af3d0d05fe65cc5ca9b06
nozebra/postcss-flexibility
index.js
rejected_duplicate
Near-duplicate of sample 78746
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports = function (promise, timeout, opts) {\n var Promise = promise.constructor;\n var rejectWith = opts && opts.rejectWith;\n var resolveWith = opts && opts.resolveWith;\n var timer;\n\n var timeoutPromise ...
javascript
edit
0
3
mit
ca0ba0848959d90e10c015a3046bb0de980c98af
inikulin/time-limit-promise
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nmodule.exports = class TCache {\n constructor(tag) {\n this.tag = tag;\n\n this._tasks = [];\n this._fetching = false;\n }\n\n _run() {\n this._fetching = true;\n\n let firstT...
javascript
edit
0
4
mit
65f347df72317e2d14c131e3d1f655648a96390f
Kevin-Xi/throttle-memo
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar gulp = require('gulp'),\n react = require('gulp-react'),\n gulpIf = require('gulp-if'),\n uglify = require('gulp-uglify'),\n _ = require('underscore'),\n elixir = require('laravel-elixir'),\n utilities = require('l...
javascript
edit
0
1
mit
199c960612d904e6a46f8cb81be8cd468c7f7b48
joecohens/laravel-elixir-react
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar exec = require('child_process').exec;\nvar _ = require('lodash');\nvar Q = require('q');\n\n\nfunction UrlToImage() {\n var api = {};\n\n api.render = function(url, file, opts) {\n var def = Q.defer();\n\n var ar...
javascript
edit
0
1
mit
542184e39a2258637a94af2b16e7928172790e39
kimmobrunfeldt/url-to-image
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n!function(mocha) {\n 'use strict';\n\n //mocha.checkLeaks();\n mocha.options.ignoreLeaks = true;\n mocha.globals(['chai', 'BatchGl', 'mocha', 'BatchGlMocks']);\n mocha.run();\n}(mocha);\n\n```\n\nApply this change: Make Mocha check...
javascript
edit
0
1
mit
03438de28023ae1587ea583b0bc3fee85b15a2b5
reissbaker/batchgl,reissbaker/batchgl
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\nconst chalk = require('chalk');\nconst isRoot = require('is-root');\nconst isDocker = require('is-docker');\n\nmodule.exports = message => {\n\tconst defaultMessage = chalk`\n{red.bold You are not allowed to run this app ...
javascript
edit
0
4
mit
4452a7c909eb3d01223d974fb5374564b585f6cd
sindresorhus/sudo-block,sindresorhus/sudo-block
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar cookie = require('cookie');\n\nvar _cookies = cookie.parse((document && document.cookie) ? document.cookie : '');\n\nfor (var key in _cookies) {\n try {\n _cookies[key] = JSON.parse(_cookies[key]);\n } catch(e) {\n // Not se...
javascript
edit
0
2
mit
45fc2acf3cac89556e2534642e127846bedf9566
eXon/react-cookie,ChrisCinelli/react-cookie-async,reactivestack/cookies,xpepermint/react-cookie,reactivestack/cookies,reactivestack/cookies
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n * Remove node_modules/hydro/ entries from the\n * error stacks.\n *\n * @param {Object} hydro\n * @api public\n */\n\nmodule.exports = function(hydro) {\n if (!hydro.get('cleanStacks')) return;\n\n hydro.on('post:test', function...
javascript
edit
0
3
mit
0a058c8b02653b15565e309d48fde545242d0ec5
hydrojs/clean-stacks
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar hyperglue = require('hyperglue');\n\nmodule.exports = function (html, data, scope) {\n var keys = Object.keys(data),\n _data = {},\n _key = typeof scope !== 'undefined' ? scope + ' ' : '',\n k;\n\n for (k ...
javascript
edit
0
3
mit
8fe74297557c873cbece865373adaa7b1a739c1b
derekr/hypergluten,derekr/hypergluten
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// Karma configuration file, see link for more information\n// https://karma-runner.github.io/0.13/config/configuration-file.html\n\nmodule.exports = function (config) {\n config.set({\n basePath: '',\n frameworks: ['jasmine', '@...
javascript
edit
0
4
bsd-3-clause
962be4f730dbc050f4fb706e28ff545aaf7dcee6
cumulous/web,cumulous/web,cumulous/web,cumulous/web
karma.conf.js
accepted
null
true