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 gulp = require('gulp');\nvar jshint = require('gulp-jshint');\nvar jasmine = require('gulp-jasmine');\nvar uglify = require('gulp-uglify');\nvar rename = require('gulp-rename');\n\ngulp.task('lint', function () {\n gulp.src('./*....
javascript
edit
0
1
mit
87e05a837d74c7a6c1cd566711d005b45089016b
rbonvall/lambada
gulpfile.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar gulp = require('gulp'),\n eslint = require('gulp-eslint'),\n mocha = require('gulp-mocha'),\n flow = require('gulp-flowtype'),\n babel = require('babel/register');\n\ngulp.task('lint', function() {\n return gulp.src([...
javascript
edit
0
1
mit
e59cd3ab355207093b86084c32fdcf29e7054cbc
ameyms/switchboard
gulpfile.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar gulp = require('gulp'),\n jsdoc = require('gulp-jsdoc'),\n ghPages = require('gulp-gh-pages'),\n docsSrcDir = './assets/js/**/*.js',\n docsDestDir = './docs/js',\n jsDocTask;\n\njsDocTask = function() {\n return gulp...
javascript
edit
0
1
mit
d41a53734f7577d1f64af7eceae523599a662669
moneyadviceservice/dough,moneyadviceservice/dough,moneyadviceservice/dough,moneyadviceservice/dough
gulpfile.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar gulp = require('gulp');\n\nvar files = ['index.js', 'test/*.js', 'gulpfile.js'];\n\ngulp.task('lint', function (done) {\n var eslint = require('gulp-eslint');\n return gulp.src(files)\n .pipe(eslint())\n .pipe(eslint.format(...
javascript
edit
0
1
mit
af6d16e6b6732b17365bae023b6990a15b4ec049
cbas/postcss-imperial
gulpfile.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar gulp= require('gulp')\nvar dts = require('dts-generator');\n\ngulp.task('default', function(){\n dts .generate({\n name: 'uservice',\n baseDir: './module',\n excludes: ['./typings/node/node.d.ts', './typings/typescript/li...
javascript
edit
0
1
mit
de0a700dabe20f24a9939c642977fda8a43353cc
christyharagan/uservices,christyharagan/uservices
gulpfile.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nvar validate = require('./validate');\nvar ValidationError = require('../error/validation_error');\n\nmodule.exports = function validateLayoutProperty(options) {\n var key = options.key;\n var style = options.styl...
javascript
edit
0
11
isc
2440066e35307d9f4b7d25b715150638c703166a
pka/mapbox-gl-style-spec,pka/mapbox-gl-style-spec
lib/validate/validate_layout_property.js
rejected_complexity
Cyclomatic complexity too high: 11
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n\"use strict\";\n\nconst Task = require('../Task'),\n gulp = require('gulp'),\n path = require('path'),\n nodemon = require('gulp-nodemon'),\n ProjectType = require('../../ProjectType'),\n _ = require('lodash');\n\nclass ...
javascript
edit
0
2
mit
819a6bf697b4c7c7c7b523be58be832a697a9b45
mtfranchetto/smild,mtfranchetto/smild,mtfranchetto/smild
lib/tasks/nodejs/NodeWatchBuildTask.js
rejected_duplicate
Near-duplicate of sample 82465
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/*jslint devel: true, browser: true, indent: 2, nomen: true */\n/*global define */\n\ndefine([], function () {\n 'use strict';\n\n console.log('it works');\n});\n```\n\nApply this change: Comment out annoying debug code." }, { ...
javascript
edit
0
1
mit
0e8a21eea09024ba9fbfca0ac2efebc87253d46f
brianmcallister/m
demo/assets/js/script.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/* eslint-env node */\n'use strict'\n\nconst EmberApp = require('ember-cli/lib/broccoli/ember-app')\nconst cssnext = require('postcss-cssnext')\n\nmodule.exports = function(defaults) {\n let app = new EmberApp(defaults, {\n postcssO...
javascript
edit
0
1
mit
26b699534b64370c22cb6fbb99b0a9146111854d
opensource-challenge/opensource-challenge-client,opensource-challenge/opensource-challenge-client
ember-cli-build.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar gulp = require('gulp');\nvar mocha = require('gulp-mocha');\nvar coffee = require('gulp-coffee');\nvar concat = require('gulp-concat');\nrequire('coffee-script/register');\n\n\n\ngulp.task('test', function(){\n return gulp.src('./t...
javascript
edit
0
1
mit
2c6bfb27c4b7122ac76db7bd5a1edc1939567fb7
casesandberg/react-map-styles
gulpfile.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar\tname = require('./package.json').moduleName,\n fs = require('fs'),\n gulp = require('gulp'),\n plugins = require('gulp-load-plugins')()\n\nvar head = fs.readFileSync('./node_modules/@electerious/modulizer/head.j...
javascript
edit
0
1
mit
d2d6fbddfbdfe74671f4813d7f3b80582ee11928
electerious/scrollSnap,electerious/scrollSnap
gulpfile.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst async = require('./async')\n\nmodule.exports = function(providers, cb) {\n\n function setup(values) {\n const currentValues = results.reduce(( pre, cur ) => Object.assign(pre, cur), {})\n\n cb(null,\n {\n get: k...
javascript
edit
0
2
apache-2.0
1ff930c6b1662558ad6f9ec5a400327f552e42b1
reneweb/dvar,reneweb/dvar
lib/main.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// Store the preference locale in cookies and (if available) session to use\n// on next requests.\n\n\n'use strict';\n\n\nvar _ = require('lodash');\n\n\nvar LOCALE_COOKIE_MAX_AGE = 0xFFFFFFFF; // Maximum 32-bit unsigned integer.\n\n\nm...
javascript
edit
0
5
mit
ddaed5d7e81798b4ed4e5db2872469e4468db1b8
nodeca/nodeca.users
server/common/set_language.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar MacaroonAuthUtils = require(\"../utils/macaroon_auth.js\");\n\nmodule.exports = function(options) {\n return function getMacaroonUserSecret(req, res, next) {\n if(typeof options.collection !== \"undefined\" && option...
javascript
edit
0
8
bsd-3-clause
ddb525f99c03dd70c41325eca6e00ddfd454fcdd
Saganus/macaroons-express-demo,Saganus/macaroons-express-demo
middleware/get_macaroon_user_secret.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst CleanWebpackPlugin = require(\"clean-webpack-plugin\")\nconst path = require(\"path\")\nconst webpack = require(\"webpack\")\n\nconst dist = path.join(process.cwd(), \"public\")\nconst src = path.join(process.cwd(), \"src\")\n\n//...
javascript
edit
0
0
mit
fc9513427abdd10d65fc2381c4a4945bbc32c9af
DevNebulae/ads-pt-api
webpack/shared.config.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n\"use strict\"\n\nvar _ = require('underscore'),\n fs = require('fs'),\n sys = require('sys'),\n exec = require('child_process').exec,\n program = require('commander');\n\nvar path = require('path'),\n fs = require('fs'),\n lib = ...
javascript
edit
0
1
mit
fefcc30a9cf75496f118c5cfaf09760297f319c7
baer/pint
lib/pint.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n\nvar path = require('path');\nvar util = require('util');\nvar yeoman = require('yeoman-generator');\n\nmodule.exports = TestGenerator;\n\n// TestGenerator stubs out a very basic test suite during the generation\n// process of a ne...
javascript
edit
0
2
bsd-2-clause
1cba85bfc369fea8168ef3f7bed0d1747c131e8f
yeoman/generator-mocha,yeoman/generator-mocha
generator/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n\n// SwellRT bootstrap script\n\n// A fake SwellRT object to register on ready handlers\n// before the GWT module is loaded\n\nwindow.swellrt = {\n\n onReady: function(handler) {\n if (!handler || typeof handler !== \"function\")...
javascript
edit
0
5
apache-2.0
c4c331cbce72af7d298b8f221648bc2bd8a5c6e8
P2Pvalue/swellrt,P2Pvalue/swellrt,P2Pvalue/swellrt,Grasia/swellrt,P2Pvalue/swellrt,Grasia/swellrt,Grasia/swellrt,Grasia/swellrt
wave/war/swellrt-beta.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar cote = require('cote'),\n models = require('../models');\n\nvar userResponder = new cote.Responder({\n name: 'user responder',\n namespace: 'user',\n respondsTo: ['create']\n});\n\nvar userPublisher = new cote.Publisher(...
javascript
edit
0
2
mit
76e5c44b4bfa07dceb8e5c2b24583334542ecd7c
dashersw/cote-workshop,dashersw/cote-workshop
services/user-service.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nexport const INTRODUCTION = '1. Introduction';\nexport const PRIMITIVES = '2. Primitives';\nexport const FOUNDATION = '3. Foundation';\nexport const LOW_LEVEL_BLOCKS = '4. Low level blocks';\nexport const MID_LEVEL_BLOCKS = '5. Mid leve...
javascript
edit
0
1
mit
a7d9fd9a03d96a517cdad5a4126c3b8f9db4b7b9
teamleadercrm/teamleader-ui
.storybook/utils/index.js
rejected_duplicate
Near-duplicate of sample 92304
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst assert = require('assert')\nconst deprecations = require('electron').deprecations\n\ndescribe('deprecations', function () {\n beforeEach(function () {\n deprecations.setHandler(null)\n process.throwDeprecation = true\n })\...
javascript
edit
0
1
mit
722a07de86d32807dd0968ff0cf0b7bb93f88d97
electron/electron,aichingm/electron,tonyganch/electron,jhen0409/electron,the-ress/electron,brave/electron,tonyganch/electron,Gerhut/electron,leethomas/electron,dongjoon-hyun/electron,Gerhut/electron,thompsonemerson/electron,Gerhut/electron,miniak/electron,noikiy/electron,leethomas/electron,shiftkey/electron,dongjoon-hy...
spec/api-deprecations-spec.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst _ = require('lodash/fp')\nconst axios = require('axios')\n\nconst BN = require('../../../bn')\n\nfunction getBuyPrice (obj) {\n const currencyPair = obj.currencyPair\n\n return axios({\n method: 'get',\n url: `https://api....
javascript
edit
0
2
unlicense
60bcaf4ec4f4ecf4f0add2d2823eaa8dbcfdb738
lamassu/lamassu-server,naconner/lamassu-server,naconner/lamassu-server,naconner/lamassu-server,lamassu/lamassu-server,lamassu/lamassu-server
lib/plugins/ticker/coinbase/coinbase.js
rejected_duplicate
Near-duplicate of sample 84172
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst {resolve} = require('path');\nconst webpack =require('webpack');\n\nmodule.exports = {\n entry: [\n './index.tsx'\n ],\n output:{\n filename: 'bundle.js',\n path: resolve(__dirname, 'static'),\n ...
javascript
edit
0
0
mit
31f3e1b1fee376bde552365d92ec51211d1718ae
bernalrs/react-typescript-webpack2,bernalrs/react-typescript-webpack2,bernalrs/react-typescript-webpack2
webpack.common.config.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React from 'react'\nimport { Router, Route, browserHistory } from 'react-router'\n\n// views.\nimport Layout from './views/Layout'\nimport Home from './views/Home'\nimport About from './views/About'\n\nconst Routes = () => {\n r...
javascript
edit
0
1
mit
3838fc789467d5488623d79d986791c79a31134f
rhberro/the-react-client,rhberro/the-react-client
app/routes.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n#! /usr/bin/env node\nvar yargs = require(\"yargs\");\n\nconsole.log(yargs.parse(process.argv.slice(2)));\n\n//var argv = require(\"yargs\").argv;\n//process.argv.slice(2).forEach(function (val, index, array) {\n// console.log(index + ...
javascript
edit
0
0
mit
a3f9c48c28f7d4ab46667b97f4c55123021c1c7d
pjdietz/rester-client,pjdietz/rester-client
bin/cliapp.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n(function() {\n var element = null;\n var nav_elements = document.querySelectorAll('li.nav-item-container');\n\n for (var i = 0; i < nav_elements.length; i++) {\n var current = nav_elements[i];\n if (current.inner...
javascript
edit
0
4
mit
88b940117ccc0ce7e88ed03f4e642f70b9835ee6
bluekeyes/gpm-dlv,bluekeyes/gpm-dlv
gpm-dlv/js/main.js
rejected_duplicate
Near-duplicate of sample 92166
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar ItemEditController = Em.ObjectController.extend({\n setComplete: function () {\n var complete = this.get('canonicalModel.complete');\n this.set('model.complete', complete);\n }.observes('canonicalModel.complete'),\n\n actio...
javascript
edit
0
2
mit
33d56f057c974d466102b8bd05a7b0a99cbb0c5e
darvelo/wishlist,darvelo/wishlist
app/scripts/app/controllers/item/edit.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar URL = require('url')\n , redis = require('redis');\n\nmodule.exports = function (config) {\n var client, url, port, host, db, pass;\n\n if (config = config || {}) {\n try {\n\n url = URL.parse(config && config.url |...
javascript
edit
0
10
mit
9553367d007ad813bf42051af94bc671619fc308
henrjk/connect,anvilresearch/connect,tonyevans/connect,henrjk/connect,tonyevans/connect,anvilresearch/connect,EternalDeiwos/connect,henrjk/connect,tonyevans/connect,jawaid/connect,EternalDeiwos/connect,EternalDeiwos/connect,anvilresearch/connect,jawaid/connect,msamblanet/connect,msamblanet/connect
boot/redis.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar ItemEditController = Em.ObjectController.extend({\n complete: function (key, value) {\n if (arguments.length > 1) {\n return value;\n }\n\n return this.get('canonicalModel.complete');\n }.property('canonicalModel.com...
javascript
edit
0
2
mit
9b7f8f849643c6503b3e78ba41525865ce0da91b
darvelo/wishlist,darvelo/wishlist
app/scripts/app/controllers/item/edit.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n(function() {\n 'use strict';\n\n var cli = require('casper').create().cli;\n var parapsych = require(cli.raw.get('rootdir') + '/dist/parapsych').create(require);\n\n parapsych.set('cli', cli)\n .set('initUrl', '/')\n .set('in...
javascript
edit
0
1
mit
ec86eded4c14b5b82a36dd731c272a43b8565ea6
codeactual/conjure,codeactual/conjure
test/bin.js
rejected_duplicate
Near-duplicate of sample 67795
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar canihaz = require('canihaz'),\n fs = require('fs'),\n p = require('path');\n\n/**\n * Install dependency modules that are not yet installed, and needed for executing the tasks.\n *\n * @param {Array} depNames: an array of dependen...
javascript
edit
0
2
mit
0d705644e49cab96f5ffd4b4337d2ac8d5cbb053
cliffano/bob
lib/deps.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nconst shell = require('shelljs');\nconst cmd = require('./cmd');\n\n// Execute msbuild.exe with passed arguments\nmodule.exports = function exec(args) {\n process.exit(shell.exec(cmd(args)).code);\n}\n\n```\n\nApply ...
javascript
edit
0
2
mit
bacbc61e1f74fc8e40544c7e6e2434d68509c773
TimMurphy/npm-msbuild
lib/exec.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/* See license.txt for terms of usage */\n\n\"use strict\";\n\nconst self = require(\"sdk/self\");\n\nconst { Cu, Ci } = require(\"chrome\");\nconst { Panel } = require(\"dev/panel.js\");\nconst { Class } = require(\"sdk/core/heritage\"...
javascript
edit
0
1
bsd-3-clause
7bed9dc2f607264f7499251119a36e9bd530b2f9
firebug/devtools-extension-examples,firebug/devtools-extension-examples
HelloWorld/lib/myPanel.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar buffer = require(\"./buffer\");\n\n/**\n * @namespace Splat\n */\nmodule.exports = {\n makeBuffer: buffer.makeBuffer,\n flipBufferHorizontally: buffer.flipBufferHorizontally,\n flipBufferVertically: buffer.flipBufferVertically,\n...
javascript
edit
0
0
mit
329ab24aed5a9848e98d6a504ad8b2997142c23b
SplatJS/splat-ecs
lib/main.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport Image from '../image';\n\nexport default function bitDepth(newBitDepth = 8) {\n\n this.checkProcessable('bitDepth', {\n bitDepth: [8, 16]\n });\n\n if (![8,16].includes(newBitDepth)) throw Error('You need to speci...
javascript
edit
0
6
mit
1461598f43ec70e9cfea8313406b3c5482d7032b
image-js/ij,image-js/core,image-js/ij,image-js/image-js,image-js/core,image-js/image-js,image-js/ij
src/image/transform/bitDepth.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nvar Component = require('../ui/Component');\n\nfunction ResultItem() {\n ResultItem.super.apply(this, arguments);\n}\n\nResultItem.Prototype = function() {\n\n this.shouldRerender = function() {\n return false;\n ...
javascript
edit
0
6
mit
aa3925cdf7d3427541d0d50a08bef0f628aabd2c
podviaznikov/substance,substance/substance,substance/substance,michael/substance-1,andene/substance,michael/substance-1,stencila/substance,podviaznikov/substance,andene/substance
test/ResultItem.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nangular.module('bolt.controller', [])\n\n.controller('BoltController', function($scope, Geo){\n \n})\n\n```\n\nApply this change: Add user session to bolt $scope" }, { "role": "assistant", "content": "angular.module('bolt.c...
javascript
edit
0
1
mit
d6b84881d747f2fe6f2fe61a5e762c04ac821ae5
gm758/Bolt,boisterousSplash/Bolt,gm758/Bolt,thomasRhoffmann/Bolt,elliotaplant/Bolt,thomasRhoffmann/Bolt,boisterousSplash/Bolt,elliotaplant/Bolt
client/app/controllers/boltController.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// Requires a Modernizr build with `canvastest` included\n// http://www.modernizr.com/download/#-canvas-canvastext\nModernizr.addTest('emoji', function() {\n if (!Modernizr.canvastext) return false;\n var node = document.createElement...
javascript
edit
0
2
mit
bd0b72d850975ba74e3b7eb785fc169ab08c4c8c
Modernizr/Modernizr,Modernizr/Modernizr
feature-detects/emoji.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport Voice from '../lib/Voice';\n\nimport NexmoStub from './NexmoStub';\n\nvar voiceAPIs = [\n 'sendTTSMessage',\n 'sendTTSPromptWithCapture',\n 'sendTTSPromptWithConfirm',\n 'call' \n];\n\ndescribe('Voice Object', function () {\...
javascript
edit
0
1
mit
113f8c74b6780af1def3c07d1c87b266223930dc
Nexmo/nexmo-node
test/Voice-test.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React from 'react';\nimport { shallow, render } from 'enzyme';\nimport { expect } from 'chai';\n\n// see: https://github.com/mochajs/mocha/issues/1847\nconst { describe, it } = global;\n\nimport Preview from '../Preview';\n\n\nde...
javascript
edit
0
1
mit
32a0847fa95609901cb97ac28003a148e8ad559a
PaulDebus/monod,TailorDev/monod,TailorDev/monod,TailorDev/monod,PaulDebus/monod,PaulDebus/monod
app/components/__tests__/Preview-test.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\n// Modules\n// ===============================================\nvar gulp = require('gulp'),\n\tgutil = require('gulp-util'),\n\tbrowserSync = require(\"browser-sync\"),\n\tpaths = require('../paths');\n\n\n// Copy CSS t...
javascript
edit
0
1
mit
eba9d1a3a4615726c2ef6db72bf9cd508c6a0489
ilkome/front-end,ilkome/frontend,ilkome/front-end,ilkome/frontend
gulpfile.js/tasks/css.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n(function() {\n var todolist = document.querySelector('#todolist');\n var todolistView = new ToMvc.View( 'todolist', '#todolist' );\n var todolistModel = new ToMvc.Model( 'todolist' );\n var nrTodos = 0;\n\n f...
javascript
edit
0
2
mit
bd0deb99380267ae9636791180cbe39eaf9ef8e5
ludder/tomvc
app.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar path = require(\"path\");\n\nmodule.exports = function (config) {\n config.set({\n logLevel: config.LOG_DEBUG,\n port: 3334,\n browsers: [\"PhantomJS\"],\n singleRun: true,\n frameworks: [\"jasmine\"],\n files: [\...
javascript
edit
0
1
apache-2.0
98ce6706af142a0383449e4b734907741ce5a898
matthewrwilton/citibank-statement-to-sheets,matthewrwilton/citibank-statement-to-sheets,matthewrwilton/citibank-statement-to-sheets
karma.conf.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\npageflow.ChangeThemeView = Backbone.Marionette.ItemView.extend({\n template: 'templates/change_theme',\n\n ui: {\n changeThemeButton: '.change_theme',\n labelText: 'label .name'\n },\n\n events: {\n 'click .change_theme': f...
javascript
edit
0
2
mit
079f1469cfd4daca8d9c900835ea557f94304a1e
codevise/pageflow,codevise/pageflow,tf/pageflow,tf/pageflow,tf/pageflow-dependabot-test,Modularfield/pageflow,Modularfield/pageflow,Modularfield/pageflow,tf/pageflow,tf/pageflow,codevise/pageflow,Modularfield/pageflow,codevise/pageflow,tf/pageflow-dependabot-test,tf/pageflow-dependabot-test,tf/pageflow-dependabot-test
app/assets/javascripts/pageflow/editor/views/change_theme_view.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar twilio = require('twilio');\nvar _ = require('lodash');\nvar config = require('./config');\n\n\n// Middleware to valid the request is coming from twilio\nfunction validRequest(req, res, next) {\n\tif (twilio.validateExpressRequest(r...
javascript
edit
0
2
apache-2.0
0c425775317ef58273184f031affafc2a6e61330
hart/betty,hart/betty,SamyPesse/betty,SamyPesse/betty,nelsonic/betty,nelsonic/betty
lib/middlewares.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar Whenever = function(){\n\tvar callbacks = [];\n\tvar ready = false;\n\tvar args;\n\treturn {\n\t\tready: function(){\n\t\t\targs = arguments;\n\t\t\tcallbacks.forEach(function(callback){\n\t\t\t\tcallback.apply(this, args);\n\t\t\t}...
javascript
edit
0
2
mit
d0a6efa2827627c67743eb0f248a981b69a0d68a
David-Mulder/whenever.js
whenever.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React, { Component, PropTypes } from 'react';\nimport { bindActionCreators } from 'redux';\nimport { connect } from 'react-redux';\nimport InvitationDialog from '../components/InvitationDialog';\nimport * as inviteActions from '....
javascript
edit
0
1
mit
d38a4d3011421fc8fe4681170401cb234426e78d
webcom-components/visio-sample,webcom-components/visio-sample,webcom-components/visio-sample
src/js/containers/App.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nexport default function (obj, props) {\n Object.keys(props).forEach(function (name) {\n const prop = props[name];\n const descrptor = Object.getOwnPropertyDescriptor(obj, name);\n const isDinosaurBrowser = name !== 'arguments'...
javascript
edit
0
8
mit
ba3ff79946cc25f8b3f5eebe3f544d0c8c233dfa
chrisdarroch/skatejs,skatejs/skatejs,skatejs/skatejs,skatejs/skatejs,chrisdarroch/skatejs
src/util/define-properties.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nmodule.exports = function(config) {\n\n config.set({\n frameworks: ['<%= testFramework %>', 'browserify'],\n files: [\n 'src/**/*.js',\n 'test/**/*.js',\n { pattern: 'src/**/*.ts', included: false,...
javascript
edit
0
1
mit
3d24b99f496ad3707fb3fc6bc5136b44cf4a3a97
yohangz/generator-typescript-npm-bower,yohangz/generator-typescript-npm-bower,yohangz/generator-typescript-npm-bower
generators/karma-conf/templates/karma-coverage.conf.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n\nvar gulp = require('gulp'),\n sass = require('gulp-sass'),\n cssmin = require('gulp-minify-css'),\n prefix = require('gulp-autoprefixer'),\n rename = require('gulp-rename'),\n header = require('gulp-header'),\n p...
javascript
edit
0
1
mit
28fd05ef69b975df9aec6f2e93d39ede4d2fb5f1
KolibriDev/Cress
gulpfile.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nvar gulp = require('gulp');\nvar $ = require('gulp-load-plugins')();\nvar runSequence = require('run-sequence');\nvar bs = require('browser-sync').create();\nvar del = require('del');\n\ngulp.task('lint', function () {\...
javascript
edit
0
1
mit
3939f1697d5c8e1a50cf71a034aa0cd07e24cfee
htanjo/gulp-boilerplate,htanjo/gulp-boilerplate
gulpfile.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar gulp = require(\"gulp\"),\n connect = require(\"gulp-connect\"),\n babel = require(\"gulp-babel\");\n\ngulp.task(\"webserver\", function () {\n connect.server();\n});\n\ngulp.task(\"babel\", function () {\n return gulp.src(\"src...
javascript
edit
0
1
mit
b3136d3fb55977e2da0a8641e19d6b7b2ddc7e23
khwang/plum,khwang/plum
gulpfile.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use babel'\n\nimport * as _ from 'lodash'\nimport * as path from 'path'\n\ndescribe('The Ispell provider for Atom Linter', () => {\n const lint = require('../lib/providers').provideLinter().lint\n\n beforeEach(() => {\n waitsForPr...
javascript
edit
0
1
mit
1e744c94a6db22cb9a7b20ab2ec1f34308458964
yitzchak/linter-hunspell,yitzchak/linter-hunspell
spec/main-spec.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nwindow.addEventListener('load', function() {\t\r\n\t// https://developer.mozilla.org/en/Code_snippets/Tabbed_browser\r\n\tvar browser = window.opener.getBrowser();\r\n\tvar doc = window.opener.content.document;\r\n\tvar c = doc.SimpleMa...
javascript
edit
0
2
isc
8eaa78b65d74a276278a61d05381edfb0a407467
chrslgn/cs3300-ramrod-map
chrome/content/addressList.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar async = require('async');\n\nvar DoWhen = function(obj, ev) {\n var args,\n triggerCallbacks,\n objCallback,\n callbacks = [];\n\n triggerCallbacks = function() {\n for(var i = 0; i < callbacks.leng...
javascript
edit
0
3
bsd-2-clause
587ed71e7dd5a39e9cb550e619b6638da59933eb
1stvamp/dowhen.js
lib/dowhen.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nvar gulp = require('gulp'),\n browserify = require('browserify'),\n transform = require('vinyl-transform'),\n uglify = require('gulp-uglify'),\n sourcemaps = require('gulp-sourcemaps'),\n jasmine = requir...
javascript
edit
0
1
mit
1a6b85141a7589ed4ebadefd75340d643d61a687
rowanoulton/bowler,rowanoulton/bowler
gulpfile.js
rejected_duplicate
Near-duplicate of sample 95289
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar lodash = require('lodash');\n\nmodule.exports = {\n applyRules: function(rules, element, opts) {\n if (!rules) {\n return [];\n }\n\n return lodash.flatten(rules.map(function(rule) {\n r...
javascript
edit
0
2
isc
f0742659c8af024a8d73bd2ea9b8fae52591b7d9
KrekkieD/htmllint,htmllint/htmllint,htmllint/htmllint,KrekkieD/htmllint
lib/knife/apply_rules.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar gulp = require('gulp');\nvar webpack = require('webpack-stream');\n\nvar client = {\n config: require('./config/webpack.prod.client.js'),\n in: './src/client/index.jsx'\n}, server = {\n config: require('./config/webpack.pro...
javascript
edit
0
2
mit
a6f6fa942486ec30ac459b5187a334604188f419
AdamSalma/Lurka,AdamSalma/Lurka
gulpfile.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport path from 'path';\nimport {CLIEngine, linter} from 'eslint';\nimport PackageJson from '../lib/package_json';\n\nconst project = PackageJson.load();\nconst baseConfig = linter.defaults();\n\nconst options = {\n baseConfig: Object...
javascript
edit
0
0
mit
18ad9cc05ed8a0aaabc438e32b3ef086687622e4
vinsonchuong/eslint-defaults
src/bin/eslint.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst Config = use('config');\n\n\nconst CORSController = {\n\n path: 'cors',\n\n permissions: {},\n\n OPTIONS : [\n\n function () {\n // @path: .*\n\n this.response.headers['Acce...
javascript
edit
0
0
mit
2d1b2627997c7e0568b66fdbbde15a15d63fd67f
yura-chaikovsky/dominion
components/cors/controller.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nif (!(typeof MochaWeb === 'undefined')){\n MochaWeb.testOnly(function () {\n setTimeout(function (){\n describe('The Route \"/\"', function () {\n it('Should have the title \"Map\"', function () {\n var title = ...
javascript
edit
0
1
mit
1b73efa26e8778cf9755b407acc00d55494e4a16
Kriegslustig/Bergbau-Graub-nden,Kriegslustig/Bergbau-Graub-nden,Kriegslustig/Bergbau-Graub-nden
tests/mocha/client/displayAListOfPlaces.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n */\n\nimport {resolve} from 'pa...
javascript
edit
null
null
mit
d46710a85c03fc7264e7b6186b6d1d5cf31de4b6
facebook/flow,facebook/flow,mroch/flow,mroch/flow,facebook/flow,mroch/flow,mroch/flow,facebook/flow,mroch/flow,facebook/flow,mroch/flow,facebook/flow,mroch/flow,facebook/flow
packages/flow-dev-tools/src/constants.js
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports = {\n 'speedyfx:msg': require('./message'),\n 'speedyfx:prs': require('./presence'),\n 'speedyfx:rq': require('./request')\n};\n```\n\nApply this change: Modify namespace of message type" }, { "role": "as...
javascript
edit
0
0
mit
073326ef326964f261bcdb2fe210493efaaf73fe
johnsmith17th/SpeedyFx
lib/communication/handler/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n(function() {\n angular.module('notely.login')\n .service('CurrentUser', CurrentUser);\n\n CurrentUser['$inject'] = ['$window']\n function CurrentUser($window) {\n var currentUser = JSON.parse($window.localStorage.getItem('curr...
javascript
edit
0
2
mit
12ac4e2696d611956a9e6acfbe2ed2ebf7517c06
FretlessBecks/notely,FretlessBecks/notely
app/login/current-user.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst rankSize = 16\n\nfunction blobLength(b) {\n if (typeof b.byteLength !== 'undefined') return b.byteLength\n if (typeof b.size !== 'undefined') return b.size\n return b.length\n}\n\nexport default class ChunkedBlob {\n\n constru...
javascript
edit
0
3
bsd-3-clause
09f37253a32542839ef72174cdc14b2a61575d93
codebhendi/filepizza,hanford/filepizza,bradparks/filepizza_javascript_send_files_webrtc,jekrb/filepizza,codevlabs/filepizza,Ribeiro/filepizza,gramakri/filepizza,pquochoang/filepizza
lib/ChunkedBlob.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport { createStore, applyMiddleware } from 'redux';\nimport { reduxReactRouter } from 'redux-router';\nimport createHistory from 'history/lib/createBrowserHistory';\nimport routes from '../routes';\nimport thunkMiddleware from 'redux-...
javascript
edit
0
2
mit
95046feb15b5450b4bc19fbf73a46cba5e7ab842
benjaminhoffman/Encompass,benjaminhoffman/Encompass,benjaminhoffman/Encompass
server/frontend/store/configureStore.js
rejected_duplicate
Near-duplicate of sample 100723
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport Ember from 'ember';\nimport $ from 'jquery';\n\nexport default Ember.Controller.extend({\n transportApiSrv: Ember.inject.service('trasport-api'),\n searchLocation: null,\n destinations: null,\n selectedDestination: null,\n t...
javascript
edit
0
1
mit
d24fac89a787dcf182fc99630f32bc96df61cba2
pe1te3son/transportme,pe1te3son/transportme
app/controllers/trains.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar gpio = require('rpi-gpio');\nvar async = require('async');\nvar assert = require('assert');\nvar sinon = require('sinon');\n\nvar message =\n 'Please ensure that your Raspberry Pi is set up with with physical pins ' +\n '7 and...
javascript
edit
0
1
mit
258666fc69af024c9aa5a51b7714f8647c77c537
JamesBarwell/rpi-gpio.js
test/integration/main.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport request from 'superagent';\nimport { Promise } from 'bluebird';\nimport { isValidToken } from './jwt';\n\nexport default class TokenClient {\n constructor(config) {\n this.user = config.user;\n this.password = config.passw...
javascript
edit
0
4
mit
a04731b805376dcbfcbafffc08e91698009b4cfc
andrewk/biodome-client
lib/TokenClient.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst CurrentData = {\n display_location: {\n full: 'Den'\n },\n temp_f: 70\n};\n\nconst ForecastData = {\n txt_forecast: {\n forecastday:[{\n title: 'Monday',\n fcttext: 'Clear all day',\n }]\n },\n simpleforec...
javascript
edit
0
0
mit
8d958f42d2de3dd0d5dbae778df32100092aa962
thatPamIAm/weathrly,thatPamIAm/weathrly
test/helpers/MockData.js
rejected_duplicate
Near-duplicate of sample 90239
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/* globals Ember */\n(function() {\n const { Component, computed } = Ember;\n\n Component.reopen({\n __HTML_ATTRIBUTES__: computed({\n set: function(key, value) {\n let attributes = Object.keys(value);\n let cust...
javascript
edit
0
3
mit
9124af224228fd3bf3c41967f9bc6b2baa6f9e53
mmun/ember-component-attributes,mmun/ember-component-attributes
vendor/ember-component-attributes/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n\"use strict\";\n\nvar utils = require('./../../utils');\n\nfunction define(name, prop, priv) {\n var descriptor = {enumerable: true};\n\n var getter = prop.get;\n var setter = prop.set;\n\n if (getter !== false) {\n if (!utils.i...
javascript
edit
0
6
mit
1991066ed6b2f8c93ae76034f30ed3c23ac2dca5
yamb/yamb
lib/yamb/proto/define.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\n/**\n* Remove the first character of a string.\n*\n* @module @stdlib/string/remove-first\n*\n* @example\n* var removeFirst = require( '@stdlib/string/remove-first' );\n*\n* var out = removeFirst( 'last man standing' );\...
javascript
edit
0
0
apache-2.0
9114f3e67a68a6fba193a1bfa09d411b805e3a94
stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib
lib/node_modules/@stdlib/string/remove-first/lib/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nconst remote = require('remote');\nconst Menu = remote.require('menu');\nconst MenuItem = remote.require('menu-item');\nconst slackWebview = appRequire('webview/slack-webview');\n\nlet popupOpenEvent;\n\nfunction initia...
javascript
edit
0
1
mit
68d37b8d80edef757b252205d69290a829bdf9e1
pekim/slack-wrapped,pekim/slack-wrapped
src/script/window/action/context-menu.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst unexpected = require('unexpected');\nconst baseExpect = unexpected.clone();\n\nbaseExpect.addAssertion(\n '<string> to jest match <string>',\n (expect, subject, value) => {\n expect.errorMode = 'bubble';\n retu...
javascript
edit
0
2
bsd-3-clause
939d1502140150ae539c6c74dd4fe1b2eb613438
alexjeffburke/jest-unexpected
lib/jestUnexpected.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport Ember from 'ember';\nimport DS from 'ember-data';\n\nconst VALIDATION_ERROR_STATUSES = [400, 422];\n\nexport default DS.RESTAdapter.extend({\n namespace: 'api',\n\n isInvalid: function(status) {\n return VALIDATION_ERROR_STA...
javascript
edit
0
6
mit
b297f9bad36d7955d1841744301a37489aa528bf
CrshOverride/ember-web-api,CrshOverride/ember-web-api
addon/adapters/web-api.js
rejected_duplicate
Near-duplicate of sample 77975
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n$(function() {\n\n var $documentNav = $('.document-nav');\n\n if($documentNav.length) {\n\n var targets = []\n , $window = $(window);\n\n $documentNav.find('a').each(function() {\n targets.push( $...
javascript
edit
0
4
mit
70e1ebb7559a7e131e72cef4e50a37e2c7792838
pillars/bibliosoph
assets/js/document-nav.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// Documentation available at https://theintern.github.io\n\ndefine({\n\tproxyPort: 9010,\n\tproxyUrl: 'http://localhost:9010/',\n\texcludeInstrumentation: /^(?:bower_components|node_modules|public)\\//,\n\ttunnel: 'NullTunnel',\n\tload...
javascript
edit
0
0
apache-2.0
58f635a28ceac0466ad3b928a5201c4443e60ff2
weepower/wee,weepower/wee
source/js/tests/config.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport { window } from 'global';\nimport deprecate from 'util-deprecate';\nimport addons from '@storybook/addons';\n\nimport { vueHandler } from './vue';\nimport { reactHandler } from './react';\nimport { angularHandler } from './angula...
javascript
edit
0
4
mit
a6bf1851c243ed51d8c17dc5b3d007fbee9a758b
storybooks/storybook,storybooks/storybook,rhalff/storybook,kadirahq/react-storybook,storybooks/storybook,storybooks/react-storybook,storybooks/react-storybook,rhalff/storybook,storybooks/storybook,storybooks/react-storybook,kadirahq/react-storybook,storybooks/storybook,rhalff/storybook,rhalff/storybook,rhalff/storybook...
addons/knobs/src/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// Place all the behaviors and hooks related to the matching controller here.\n// All this logic will automatically be available in application.js.\n\nfunction VoteStatsGraph(selector, options) {\n this.selector = selector;\n this.opt...
javascript
edit
0
1
bsd-3-clause
95b6e11a11d21dba2eef8ce8d426f1c866c289f9
holderdeord/hdo-site,holderdeord/hdo-site,holderdeord/hdo-site,holderdeord/hdo-site
app/assets/javascripts/representatives.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n * Copyright (c) 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n ...
javascript
edit
0
0
mit
3937af4c24411a6b34015f2c69f1df5fa5ab6475
kassens/relay,kassens/relay,facebook/relay,benjaminogles/relay,dbslone/relay,facebook/relay,zpao/relay,xuorig/relay,voideanvalue/relay,cpojer/relay,facebook/relay,dbslone/relay,benjaminogles/relay,josephsavona/relay,iamchenxin/relay,atxwebs/relay,wincent/relay,xuorig/relay,xuorig/relay,iamchenxin/relay,voideanvalue/rel...
packages/relay-compiler/RelayCompiler.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React, { Component } from 'react';\nimport { connect } from 'react-redux';\nimport store from '../store.js';\nimport { restart } from '../actions/name-actions';\nimport { selectGender } from '../actions/gender-actions';\nimport M...
javascript
edit
0
1
apache-2.0
5781e808241d4ac821e58832abee7b4847e54f1c
johnbrowe/barnanavn,johnbrowe/barnanavn,johnbrowe/barnanavn
src/components/Restart.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport {\n createClient,\n} from 'redis';\nimport nconf from '../config';\n\nlet sub;\nlet client;\n\nfunction redisConns() {\n sub = createClient(nconf.get('redis'));\n client = createClient(nconf.get('redis'));\n}\n\nexport functio...
javascript
edit
0
3
mit
b2e834f24e5e6dbe7cb0f3beb39253eb978704d9
rit-sse/slushbot,rit-sse/slushbot
notifications/helpers.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar $ = require('jquery');\nvar _ = require('./utils.js');\n\n\n// When passed to the template evaluator,\n// its render method will create actual DOM elements\nvar DOMInterface = function() {\n return {\n createFragment: function()...
javascript
edit
0
4
mit
495701f1977ef5493497a8855cd9fcafb1ceaad5
syntheticore/declaire
src/clientDOMInterface.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React from 'react'\n\nexport default function Checker({\n multiselect,\n checked,\n disabled,\n id,\n name,\n onChange\n}) {\n if (disabled) {\n return null\n }\n\n return (\n <label className=\"ars-table-checker\"...
javascript
edit
0
4
mit
7eaad2f4582da2f63cfe57e182d73f97abaebfca
vigetlabs/ars-arsenal,vigetlabs/ars-arsenal,vigetlabs/ars-arsenal
src/components/table-view/checker.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nAV.VisualizationView = Backbone.View.extend({\n el: '#visualization',\n // The rendering of the visualization will be slightly\n // different here, because there is no templating necessary:\n // The server gives back a page....
javascript
edit
0
2
bsd-3-clause
6dd54b63ee36f46b490bcbfda97193d567386756
Swarthmore/juxtaphor,Swarthmore/juxtaphor
dev/_/components/js/visualizationView.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n * @license\n * Copyright 2017 The FOAM Authors. All Rights Reserved.\n * http://www.apache.org/licenses/LICENSE-2.0\n */\n\n/*\nfoam.RELATIONSHIP({\n cardinality: '*:*',\n sourceModel: 'foam.nanos.auth.Group',\n targetModel: 'f...
javascript
edit
0
0
apache-2.0
8e406d84dbc5c0da73428c1be5ce3915c12a59de
jacksonic/vjlofvhjfgm,foam-framework/foam2,jacksonic/vjlofvhjfgm,jacksonic/vjlofvhjfgm,foam-framework/foam2,foam-framework/foam2,foam-framework/foam2,foam-framework/foam2
src/foam/nanos/auth/Relationships.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n * Extend +destination+ with +source+\n */\nfunction extend(destination, source) {\n for (var property in source) {\n destination[property] = source[property];\n }\n return destination;\n};\n\nextend(Array.prototype, {\n /**...
javascript
edit
0
3
mit
63cea3de01e108c43815cac66f88ccde3d22f1a8
Northern01/tuneup_js,MYOB-Technology/tuneup_js,Northern01/tuneup_js,misfitdavidl/tuneup_js,alexvollmer/tuneup_js,songxiang321/ios-monkey,MYOB-Technology/tuneup_js,alexvollmer/tuneup_js,giginet/tuneup_js,songxiang321/ios-monkey,Banno/tuneup_js,giginet/tuneup_js,misfitdavidl/tuneup_js,Banno/tuneup_js
lang-ext.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n * Step 7\n * Where installation are run (npm, bower)\n */\n\nexport default function () {\n this.npmInstall(\n this.options['social-networks'].split(',').map(service => `passport-${service.toLowerCase()}-token`),\n {save: t...
javascript
edit
0
1
mit
b687c6d803bd7a026d68927e5ec16a7323814c8b
ghaiklor/generator-sails-rest-api,italoag/generator-sails-rest-api,ghaiklor/generator-sails-rest-api,tnunes/generator-trails,jaumard/generator-trails,italoag/generator-sails-rest-api,konstantinzolotarev/generator-trails
src/authentication/steps/install.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar indicator = {}\n\nindicator.show = function() {\n var hud = MBProgressHUD.showHUDAddedToAnimated(this._getRootWindow(), true);\n hud.dimBackground = true;\n};\n\nindicator.hide = function() {\n MBProgressHUD.hideHUDForViewAnimate...
javascript
edit
0
1
mit
d9097a2a1296a690b942043e63ac4b42f0532229
pocketsmith/nativescript-loading-indicator,pocketsmith/nativescript-loading-indicator
loading-indicator.ios.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar querystring = require('querystring');\n\nfunction isFunction(func) {\n return typeof func == 'function';\n}\n\nmodule.exports = {\n stringify: function(object) {\n var converted = {};\n\n for (var key in object) {\n if ...
javascript
edit
0
3
mit
e154bb8b1d231b80340baf56fbf5549eaffe7669
delighted/delighted-node,callemall/delighted-node
lib/utils/queryparams.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/*\n * stompit.NullWritable\n * Copyright (c) 2014 Graham Daws <<EMAIL>>\n * MIT licensed\n */\n\nvar stream = require('stream');\nvar util = require('util');\n\nfunction NullWritable(){\n \n stream.Writable.call(this);\n \n ...
javascript
edit
0
2
mit
a5d22e50ef1c18a37c4b59d24f893677839ca5e1
gdaws/node-stomp
lib/util/nullwritable.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nangular.module('genome.directive', [])\n\n.directive('dstTopNav', function() {\n\n return {\n controller: function($scope, $cookies, $rootScope, $location, SelfFactory) {\n $scope.user_first_name = $cookies.user_first_name;\n ...
javascript
edit
0
3
mit
c4660c920dcf68d502e279dc44a4dd1995f19a22
ThunderousFigs/Genomes,ThunderousFigs/Genomes,ThunderousFigs/Genomes
static/app/directives/dst_top_nav.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nmodule.exports = function(grunt) {\n\n grunt.initConfig({\n pkg: grunt.file.readJSON('package.json'),\n jshint: {\n all: [\n 'Gruntfile.js',\n 'lib/*.js',\n ...
javascript
edit
0
1
mit
e70bc552af4ea37157a9e2f18cf9ad47eecd3e8c
b225ccc/linerate_node_rest_api_module,b225ccc/linerate_node_rest_api_module
Gruntfile.js
rejected_duplicate
Near-duplicate of sample 87067
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports = function(deployer) {\n deployer.deploy(ConvertLib);\n deployer.autolink(MetaCoin);\n deployer.deploy(MetaCoin);\n};\n\n```\n\nApply this change: Make example deploy a bit simpler." }, { "role": "assistant", ...
javascript
edit
0
1
mit
288110620df451b768098a9befc7521e913a106a
ConsenSys/truffle
packages/truffle/example/migrations/2_deploy_contracts.js
rejected_duplicate
Near-duplicate of sample 81071
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React from 'react';\nimport PropTypes from 'prop-types';\nimport { connect } from 'react-redux';\n\nconst AssessmentEntryColHeaderView = ({ questions }) => {\n const values = Object.keys(questions);\n return (\n <tr classNam...
javascript
edit
0
1
isc
4f030e8ae4aadf0dbfc155cb763d2d947d70252d
klpdotorg/tada-frontend,klpdotorg/tada-frontend,klpdotorg/tada-frontend
app/containers/AssessmentEntry/AssessmentEntryColHeader.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nfunction getDescProp(obj, prop) {\n var parts = prop.split('.');\n while(parts.length) obj = obj[parts.shift()];\n return obj;\n}\n\nangular.module('gomApp.formUtil', [\n 'ngMaterial'\n])\n\n.directive('gomAsync...
javascript
edit
0
3
bsd-2-clause
09ee3b4d8098e6e69d34e453cb48487129d591ff
jhogg41/gm-o-matic,jhogg41/gm-o-matic,jhogg41/gm-o-matic
gom/app/components/formUtil/formUtil.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport {\n isString,\n isArray,\n isBoolean,\n} from \"lodash\"\nimport {\n isStandardSyntaxProperty,\n isCustomProperty,\n report,\n ruleMessages,\n validateOptions,\n} from \"../../utils\"\nimport { all as properties } from \"...
javascript
edit
0
8
mit
bcdd65f8c220249204df1e21b9d8c19fdbd94890
stylelint/stylelint,hudochenkov/stylelint,stylelint/stylelint,heatwaveo8/stylelint,hudochenkov/stylelint,gucong3000/stylelint,heatwaveo8/stylelint,heatwaveo8/stylelint,gaidarenko/stylelint,stylelint/stylelint,hudochenkov/stylelint,gucong3000/stylelint,stylelint/stylelint,gaidarenko/stylelint,gaidarenko/stylelint,gucong...
src/rules/property-no-unknown/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst React = require('react')\nconst { connect } = require('react-redux')\nconst RequestsContainer = require('./requests')\nconst SidebarContainer = require('./sidebar')\nconst AppBar = require('material-ui/AppBar').default\n\nconst Ap...
javascript
edit
0
1
isc
d04fe29f5f079300a9f2a5c3cc35da47ad5ff097
niklasi/halland-proxy,niklasi/halland-proxy
app/renderer/containers/app.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/* global require, module */\n\nvar EmberApp = require('ember-cli/lib/broccoli/ember-app');\nvar Funnel = require('broccoli-funnel');\n\nmodule.exports = function(defaults) {\n\n var app = new EmberApp(defaults, {\n // Any other opt...
javascript
edit
0
1
mit
57266bd4bfb9a61f7efc106c4d2df47b432f9a7d
Turistforeningen/Hytteadmin,Turistforeningen/Hytteadmin
client/ember-cli-build.js
rejected_duplicate
Near-duplicate of sample 84595
true