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\n#!/usr/bin/env node\n\nvar oust = require('../index');\nvar pkg = require('../package.json');\nvar fs = require('fs');\n\n\nvar argv = require('minimist')((process.argv.slice(2)))\n\nvar printHelp = function() {\n\tconsole.log('oust');\...
javascript
edit
0
2
apache-2.0
750402603dd7060bec89b98704be75597c6634bd
addyosmani/oust,addyosmani/oust,actmd/oust,actmd/oust
bin/oust.js
rejected_duplicate
Near-duplicate of sample 73725
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\nconst CLI = require('clui');\nconst clc = require('cli-color');\nconst gauge = CLI.Gauge;\nconst Line = CLI.Line;\n\nmodule.exports = function (tactile, max) {\n\tif (!tactile) {\n\t\treturn new Line();\n\t}\n\tlet name =...
javascript
edit
0
5
mit
da15d3de4dca28bb7ade0818b8dc0b97967c067d
ProbablePrime/interactive-keyboard,ProbablePrime/beam-keyboard
lib/widgets/KeyBar.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n\"use strict\";\n\nangular.module('arethusa.sg').directive('sgContextMenuSelector', [\n 'sg',\n function(sg) {\n return {\n restrict: 'A',\n scope: {\n obj: '='\n },\n link: function(scope, element, attrs...
javascript
edit
0
2
mit
a00605eaf01b7ebe50aea57981b85faa3b406d4a
fbaumgardt/arethusa,alpheios-project/arethusa,fbaumgardt/arethusa,fbaumgardt/arethusa,Masoumeh/arethusa,Masoumeh/arethusa,PonteIneptique/arethusa,latin-language-toolkit/arethusa,PonteIneptique/arethusa,alpheios-project/arethusa,alpheios-project/arethusa,latin-language-toolkit/arethusa
app/js/arethusa.sg/directives/sg_context_menu_selector.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\n/* Services */\n\nvar splitcoinServices = angular.module('splitcoin.services', ['ngResource']);\n\n// Demonstrate how to register services\n// In this case it is a simple value service.\nsplitcoinServices.factory('Ticke...
javascript
edit
0
1
mit
3cd107a985bcfd81b79633f06d3c21fe641f68c5
kpeatt/splitcoin,kpeatt/splitcoin,kpeatt/splitcoin
app/js/services.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/* expand_contract_toggle.js: Support for show more/hide more in lists of umlaut content.\n \n The JS needs to swap out the image for expand/contract toggle. AND we need\n the URL it swaps in to be an ABSOLUTE url when we're using...
javascript
edit
0
2
mit
e324b674c13a39b54141acaa0ab31ebc66177eb2
team-umlaut/umlaut,team-umlaut/umlaut,team-umlaut/umlaut
app/assets/javascripts/umlaut/expand_contract_toggle.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n\"use strict\";\n\nangular.module('arethusa.core').directive('arethusaGridHandle', [\n function() {\n return {\n restrict: 'E',\n scope: true,\n link: function(scope, element, attrs, ctrl, transclude) {\n\n },\n ...
javascript
edit
0
1
mit
e23a40064468c27be76dbb27efd4e4f2ac91ece5
PonteIneptique/arethusa,Masoumeh/arethusa,Masoumeh/arethusa,alpheios-project/arethusa,fbaumgardt/arethusa,latin-language-toolkit/arethusa,fbaumgardt/arethusa,alpheios-project/arethusa,alpheios-project/arethusa,PonteIneptique/arethusa,fbaumgardt/arethusa,latin-language-toolkit/arethusa
app/js/arethusa.core/directives/arethusa_grid_handle.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport dotenv from \"dotenv\";\nimport moment from \"moment\";\n\ndotenv.load();\n\nexport const MONGODB_URL = process.env.MONGODB_URL || \"mongodb://localhost:27017/test\";\nexport const KINESIS_STREAM_NAME = process.env.KINESIS_STREAM...
javascript
edit
0
0
apache-2.0
5e579bd846f2fd223688dbfeca19b8a9a9f98295
innowatio/iwwa-lambda-virtual-aggregator,innowatio/iwwa-lambda-virtual-aggregator
src/config.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst yaml = require('js-yaml');\nconst ignore = require('ignore');\n\nmodule.exports = robot => {\n robot.on('pull_request.opened', autolabel);\n robot.on('pull_request.synchronize', autolabel);\n\n async function autolabel(context)...
javascript
edit
0
4
isc
21b22e766902e94c60f6a257bde1dae9b7a16975
SymbiFlow/autolabeler
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar fs = require('fs'),\n path = require('path')\n\nmodule.exports = function (target) {\n var directory = path.dirname(module.parent.filename),\n rootDirectory = locatePackageJson(directory)\n\n return requireFromRoot(target,...
javascript
edit
0
4
mit
f2ac02fcd69265f4e045883f5b033a91dd4e406d
anthonynichols/node-include
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n\"use strict\";\n\nvar glob = require(\"glob\");\nvar path = require(\"path\");\n\nmodule.exports = function (content, sourceMap) {\n this.cacheable && this.cacheable();\n var resourceDir = path.dirname(this.resourcePath);\n var patt...
javascript
edit
0
2
mit
018018062b1a4f127d4861707ec9c438248a8dab
seanchas116/glob-loader
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nApp.Views.PlanningView = Backbone.View.extend({\n\n className: 'planning',\n\n initialize: function() {\n this.lessons = this.collection;\n this.lessons.on('add change remove reset', this.render, this);\n },\n\n ...
javascript
edit
0
2
mit
78da26a359947988dbcacd635600909764b410a3
mdarse/take-the-register,mdarse/take-the-register
src/UCP/AbsenceBundle/Resources/public/js/app/views/planningview.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n(function($, window, document, undefined) {\n\n $.rapido_Utilities = {\n\n // Get class of element object\n getClass: function(el) {\n el = $(el).attr('class').replace(/^\\s\\s*/, '').replace(/\\s\\s*$/, '');\n return '...
javascript
edit
0
3
mit
eaf923a11d75bbdb5373cd4629d31e4a38c5a659
raffone/rapido,raffone/rapido,raffone/rapido
js/rapido.utilities.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nexport function ValidationError(message, details = {}) {\n const {\n columns = {},\n value = null\n } = details;\n\n this.message = message;\n this.columns = columns;\n this.value = value;\n\n if (message...
javascript
edit
0
3
mit
e32792f7b23aa899a083f0618d1b093f93101e9f
goodybag/nagoya
src/errors.js
rejected_duplicate
Near-duplicate of sample 87124
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nconst choo = require('choo');\nconst html = require('choo/html');\nconst app = choo();\n\n\napp.model({\n state: {\n todos: [],\n },\n reducers: {\n addTodo: (state, data) => {\n const newTodos = state.tod...
javascript
edit
0
1
mit
a4b63fa20875feef9f7e5e940b5873dd8fb2c082
fernandocanizo/choodo
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 = 'xml';\nexports.compile = eco;\n\n```\n\nApply this change: Fix to use `html` outputFormat" }, { "role": "assistant", "content": "'u...
javascript
edit
0
0
mit
e16f18fadb94f7eee4b71db653e65f4bbe4ab396
jstransformers/jstransformer-eco,jstransformers/jstransformer-eco
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\n/**\n * @ngdoc Main App module\n * @name app\n * @description Main entry point of the application\n *\n */\nangular.module('app', [\n 'ui.router', 'ui.bootstrap',\n 'app.environment',\n 'module.core'\n]).config(funct...
javascript
edit
0
1
mit
3908e9c9fea87ec27ab8ce3434f14f0d50618e11
genu/simple-frontend-boilerplate,genu/simple-angular-boilerplate,genu/simple-frontend-boilerplate,genu/simple-angular-boilerplate
src/js/app.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar babelPresetEs2015,\n commonJsPlugin,\n es2015PluginList,\n es2015WebpackPluginList;\n\nbabelPresetEs2015 = require('babel-preset-es2015');\n\ntry {\n // npm ^2\n commonJsPlugin = require('babel-preset-es2015/node_modu...
javascript
edit
0
1
bsd-3-clause
9f71330ad43cb188feef6a6c6053ae9f6dd731f5
gajus/babel-preset-es2015-webpack
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nfunction ImageFile(_game) {\r\n\tthis.game = _game;\r\n\tthis.name = new Array();\r\n\tthis.data = new Array();\r\n\tthis.counter = 0;\r\n\t\r\n\treturn this;\r\n};\r\n\t\r\nImageFile.prototype.load = function(_imageSrc, _width, _height...
javascript
edit
0
2
mit
951adf61d874553956ac63d2268629d7b2a603ec
fjsantosb/Molecule
core/imagefile.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/* jshint node: true */\n'use strict';\nvar request = require('request');\nvar BasePlugin = require('ember-cli-deploy-plugin');\n\nmodule.exports = {\n name: 'ember-cli-deploy-cdnify-purge-cache',\n createDeployPlugin: function(option...
javascript
edit
0
2
mit
8929cc57fe95f1802a7676250ed489562f76c8db
fauxton/ember-cli-deploy-cdnify-purge-cache,fauxton/ember-cli-deploy-cdnify-purge-cache
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n\"use strict\"\n\nconst examine = require(\"./lib/examine\")\nconst inspect = require(\"./lib/inspect\")\nconst isPlainObject = require(\"./lib/is-plain-object\")\nconst whereAll = require(\"./lib/where-all\")\n\nmodule.exports = { exam...
javascript
edit
0
0
mit
7920bd541507d35990f146aa45168a4b2f4331be
icylace/icylace-object-utils
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar url = require('url')\n\nmodule.exports = function(uri, cb) {\n var parsed\n try {\n parsed = url.parse(uri)\n }\n catch (err) {\n return cb(err)\n }\n\n if (!parsed.host) {\n return cb(new Error('Invalid url: ' + uri)...
javascript
edit
0
5
mit
fbed9d4aac28c0ef9d5070b31aeec9de09009e26
evanlucas/remote-file-size
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport Phaser from 'phaser';\n\nexport default class extends Phaser.Sprite {\n constructor(game, x, y, sprite, frame) {\n super(game, x, y, sprite, frame);\n\n this.anchor.setTo(0.5, 0.5);\n }\n}\n\n```\n\nApply this change: Ali...
javascript
edit
0
1
mit
0ed42a900e206c2cd78fdf6b5f6578254394f3e2
ThomasMays/incremental-forest,ThomasMays/incremental-forest
src/sprites/Common/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/* eslint-env node */\n'use strict';\n\nmodule.exports = {\n name: 'ember-cli-flagpole',\n\n flagpoleConfigPath: 'config/flagpole',\n\n init() {\n this._super.init && this._super.init.apply(this, arguments);\n\n const Registry ...
javascript
edit
0
4
mit
05e85127b8a0180651c0d5eba9116106fbc40ce9
camhux/ember-cli-flagpole,camhux/ember-cli-flagpole,camhux/ember-cli-flagpole
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst passport = require('passport');\nconst GoogleStrategy = require('passport-google-oauth20').Strategy;\nconst keys = require('../config/keys');\nconst mongoose = require('mongoose');\nconst User = mongoose.model('users'); // retriev...
javascript
edit
0
2
mit
ae1ac92b8884f41656eda30a0949fec0eceb2428
chhaymenghong/FullStackReact
server/services/passport.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/*\n * JBoss, Home of Professional Open Source.\n * Copyright 2014-2018 Red Hat, Inc., and individual contributors\n * as indicated by the @author tags.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you m...
javascript
edit
0
2
apache-2.0
4bfa64cf19896baf36af8a21f022771252700c27
thescouser89/pnc,jdcasey/pnc,matedo1/pnc,matedo1/pnc,alexcreasy/pnc,alexcreasy/pnc,jdcasey/pnc,rnc/pnc,matejonnet/pnc,alexcreasy/pnc,matedo1/pnc,pkocandr/pnc,jdcasey/pnc,project-ncl/pnc
ui/app/common/components/pnc-temporary-build-record-label/pncTemporaryBuildRecordLabel.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst colors = {\n red: '#e42d40',\n white: '#ffffff',\n veryLightGray: '#ededed',\n lightGray: '#cccccc',\n gray: '#888888',\n darkGray: '#575757'\n}\n\nconst brandPreferences = {\n primary: colors.red,\n bg: colors.white,\n\n ...
javascript
edit
0
0
mit
e39eb6b1f2c4841ddc293428ab0c358214e897ad
hackclub/api,hackclub/api,hackclub/api
src/colors.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React from 'react';\nimport {IndexRoute, Route} from 'react-router';\nimport { isLoaded as isAuthLoaded, load as loadAuth } from 'redux/modules/auth';\nimport {\n App,\n Chat,\n Home,\n Widgets,\n About,\n Login...
javascript
edit
0
2
mit
292d030fbc3048bf2c98c4d414537681f5d3493a
Boelensman1/championpick2
src/routes.js
rejected_duplicate
Near-duplicate of sample 106454
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar TreeModel = require('tree-model');\n\nmodule.exports = function(DataTypes) {\n return [{\n name: {\n type: DataTypes.STRING,\n allowNull: false\n }\n }, {\n instanceMethods: {\n insertIntoDirs: function(UUI...
javascript
edit
0
1
mit
ad4f2512ab1e42bf19b877c04eddd831cf747fb0
wikilab/wikilab-api
models/collections.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// require Johnny's static\nvar JohhnysStatic = require(\"../index\")\n\n // require http\n , http = require('http');\n\n// set static server: public folder\nJohhnysStatic.setStaticServer({root: \"./public\"});\n\n// set routes\nJoh...
javascript
edit
0
2
mit
f0dc23100b7563c60f62dad82a4aaf364a69c2cb
IonicaBizauTrash/johnnys-node-static,IonicaBizau/statique,IonicaBizauTrash/johnnys-node-static,IonicaBizau/node-statique,IonicaBizau/johnnys-node-static,IonicaBizau/johnnys-node-static
test/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport assert from 'power-assert';\nimport { camelToKebab } from '../src/utils';\n\ndescribe('utils', () => {\n it('translates camelCase to kebab-case', () => {\n assert(camelToKebab('camelCaseToKebabCase') === 'camel-case-to-kebab-...
javascript
edit
0
1
mit
f76d185650f187a509b59e86a09df063a177af78
ktsn/vuex-connect,ktsn/vuex-connect
test/utils.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport AppController from './AppController'\n\nexport default class DefaultController extends AppController {\n async indexAction(context) {\n return context.redirectToRoute('hello', {name: 'Christoph', foo: 'bar'})\n }\n}\n\n```\n...
javascript
edit
0
1
mit
98943dcae31dbee0ad3e7a4b2b568128a3d20524
CHH/learning-node,CHH/learning-node
app/controllers/DefaultController.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nconst fs = require('fs');\nconst path = require('path');\nconst cp = require('child_process');\nconst sass = require('../');\n\nconst root = path.resolve(__dirname, './test-cases');\nconst cases = fs.readdirSync(root);\...
javascript
edit
0
2
mit
d01325010342043712e1680d4fb577eaa4df3634
GeorgeTaveras1231/npm-sass,lennym/npm-sass
test/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\nvar P = require('bluebird');\nvar _ = require('lodash');\nvar Schemas = require('../generators/schemas');\n\nfunction ResourceUpdater(model, params) {\n var schema = Schemas.schemas[model.collection.name];\n\n this.perf...
javascript
edit
0
2
mit
069de55f17261315570eff2183b1c042abbec45a
SeyZ/forest-express-mongoose
services/resource-updater.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport puppeteer from 'puppeteer';\n\nexport async function evaluatePage (url, matches, timeout = 4000) {\n const args = await puppeteer.defaultArgs();\n const browser = await puppeteer.launch({\n args: [...args, '--enable-experime...
javascript
edit
0
2
apache-2.0
073c72bb5caef958a820cdeadc440a042dd4f111
GoogleChromeLabs/worker-plugin
test/_page.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nconst debug = require('debug')('calendar:routes:year');\nconst express = require('express');\nconst common = require('./common');\nconst monthRouter = require('./month');\nconst validators = require('../lib/validators')...
javascript
edit
0
1
mit
7317ad7bfd9b9d55ab1cf54c09c537a64ea0e798
kollavarsham/calendar-api
routes/year.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nfunction log(level, msg) {\n var args = [level].concat([].slice.call(msg));\n console.log.apply(console, args); // eslint-disable-line no-console\n}\n\nexport var None = 0;\nexport var Warn = 1;\nexport var Info = 2;\nexport var De...
javascript
edit
0
2
bsd-3-clause
b404a2f25f0259fd49dbc3f851765e5be2bc7050
vega/vega,vega/vega,vega/vega,lgrammel/vega,vega/vega
packages/vega-util/src/logger.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar ssr = require('done-ssr-middleware');\n\nmodule.exports = ssr({\n config: __dirname + \"/package.json!npm\",\n main: \"bitcentive/index.stache!done-autorender\",\n liveReload: true\n});\n\n```\n\nApply this change: Add auth-cooki...
javascript
edit
0
0
mit
e5954cf78a8daf138ca1a81ead64f1d38719a970
donejs/bitcentive,donejs/bitcentive
public/ssr.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nPackage.describe({\n name: \"modules-runtime\",\n version: \"0.7.10\",\n summary: \"CommonJS module system\",\n git: \"https://github.com/benjamn/install\",\n documentation: \"README.md\"\n});\n\nNpm.depends({\n install: \"0.8.8\"...
javascript
edit
0
1
mit
de11f73477e3c6881f09b613d87063489756686d
Hansoft/meteor,Hansoft/meteor,Hansoft/meteor,Hansoft/meteor,Hansoft/meteor,Hansoft/meteor,Hansoft/meteor
packages/modules-runtime/package.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst Route = require('../structures/Route');\n\nclass verifyGET extends Route {\n\tconstructor() {\n\t\tsuper('/verify', 'get');\n\t}\n\n\trun(req, res, user) {\n\t\treturn res.json({\n\t\t\tmessage: 'Successfully verified token',\n\t\...
javascript
edit
0
1
mit
04fb2218cd6a5d32a0b4c1d8de9b9ad43994888d
WeebDev/lolisafe,WeebDev/lolisafe,WeebDev/loli-safe,WeebDev/loli-safe
src/api/routes/verifyGET.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport Ember from 'ember';\nimport config from 'ember-get-config';\n\nconst {\n 'ember-new-version-detection': {\n appName,\n },\n} = config;\n\nconst {\n computed,\n inject: {\n service,\n },\n run: {\n next: runNext,\n ...
javascript
edit
0
2
mit
407a8292712cfa3cc6ae9957e6ba22ed1795ad28
PrecisionNutrition/ember-new-version-detection,PrecisionNutrition/ember-new-version-detection,PrecisionNutrition/ember-new-version-detection,PrecisionNutrition/ember-new-version-detection
addon/mixins/version-header-handler.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n * Created by mcgourtyalex on 4/14/15.\n */\n\nvar MainButtons = {\n\n // setup sets a callback for #breeder_find keyup\n setup: function() {\n $('.button-a').hover( function() {\n $('#tagline-text').html(\"...
javascript
edit
0
1
mit
7168416a52b9b85f1bdee68614a6324f957b219d
hyu596/Simpatico-Pup,hyu596/Simpatico-Pup,eabartlett/ratemypup,cjzcpsyx/rate-my-pup,cjzcpsyx/rate-my-pup,eabartlett/ratemypup,eabartlett/ratemypup,cjzcpsyx/rate-my-pup,cjzcpsyx/rate-my-pup,hyu596/Simpatico-Pup,eabartlett/ratemypup
app/assets/javascripts/main-buttons.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar assert = require('chai').assert;\n\nvar worker = require('../../worker');\n\ndescribe('Dummy worker', function() {\n describe('#hello()', function() {\n it('should return \"hello\"', function() {\n assert.equal(worker.hello...
javascript
edit
0
1
apache-2.0
1013442623ef19dc92bc2e791417fe11903e66f3
tavultesoft/keymanweb,tavultesoft/keymanweb
common/predictive-text/unit_tests/headless/worker-intialization.js
rejected_duplicate
Near-duplicate of sample 88516
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nlet videoImage = document.getElementById('video_image');\nvideoImage.src = `http://${document.domain}:8080/?action=stream`;\nlet cameraJoystick = {\n zone: videoImage,\n color: 'red'\n};\nlet cameraJoystickManager = nipplejs.crea...
javascript
edit
0
2
apache-2.0
e05370ea9c0a001cee9d9a20ec44e7ea212a3822
dmweis/DynamixelServo,dmweis/DynamixelServo,dmweis/DynamixelServo,dmweis/DynamixelServo
DynamixelServo.Quadruped.WebInterface/wwwroot/js/VideoStreaming.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n\"use strict\";\n\nvar commonmark = require(\"commonmark\");\n\nvar markdownTransform = function(){\n let reader = new commonmark.Parser();\n let writer = new commonmark.HtmlRenderer({\n safe: true\n });\n\n return fu...
javascript
edit
0
1
bsd-3-clause
b6e483d624a1a8be8559277d5c430bd470abf68e
nteract/transformime-commonmark
src/commonmark.transform.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nApp.controller('DramasCtrl', [ '$http', function($http, $q) {\n var dramas = this;\n dramas.list1 = 'Drag and Drop with default confirmation';\n \n dramas.items = [];\n $http.get('/dramas').then(function(response) {\n dramas.ite...
javascript
edit
0
1
mit
ee692dc4d7321e7440b681c13ae82fdb8ed97516
ac-adekunle/secondlead,ac-adekunle/secondlead,ac-adekunle/secondlead
app/assets/javascripts/angular/dramas/dramas-controller.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React, { PropTypes } from 'react'\n\nexport default class Html extends React.Component {\n render ({ children, assets, title } = this.props) {\n return (\n <html>\n <head>\n <title>{title}</title>\n ...
javascript
edit
0
1
mit
0241f074b65dbf70f10b5da6ddf0d3bfa161964f
svagi/httptest
api/src/pages/Html.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nangular.module('webClientApp')\n .controller('ProfileCtrl', ['$scope', '$rootScope', '$location', '$routeParams', 'UserArticle', 'UserDraft', 'User',\n function ($scope, $rootScope, $location, $routeParams, UserAr...
javascript
edit
0
3
bsd-2-clause
a8dde15447d79b73ca12a0a7acf2ff0390f24b49
ahmgeek/manshar,RashaHussein/manshar,mjalajel/manshar,manshar/manshar,ahmgeek/manshar,RashaHussein/manshar,manshar/manshar,ahmgeek/manshar,manshar/manshar,ahmgeek/manshar,mjalajel/manshar,RashaHussein/manshar,mjalajel/manshar,mjalajel/manshar,RashaHussein/manshar,manshar/manshar
web-client/app/scripts/controllers/profileController.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport Ember from 'ember';\nconst { Component } = Ember;\n\nexport default Component.extend({\n tagName: 'box'\n});\n\n```\n\nApply this change: Use div to fix centering" }, { "role": "assistant", "content": "import Ember f...
javascript
edit
0
0
mit
3c396dff053dceb6472d3283e7b6eeb7f6c6e976
shipshapecode/website,shipshapecode/shipshape.io,shipshapecode/shipshape.io,shipshapecode/website
app/components/device-mock/component.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React from 'react';\n\nimport metricFeeder from '../../hoc/metric-feeder';\nimport { formatMetric } from '../../utils/string-utils';\n\nfunction NodeDetailsHealthOverflowItem(props) {\n return (\n <div className=\"node-detail...
javascript
edit
0
1
apache-2.0
9acffe52b1c8dcd806459968c03c96afaad9fb06
dilgerma/scope,paulbellamy/scope,dilgerma/scope,kinvolk/scope,weaveworks/scope,weaveworks/scope,alban/scope,weaveworks/scope,weaveworks/scope,paulbellamy/scope,kinvolk/scope,kinvolk/scope,alban/scope,paulbellamy/scope,alban/scope,kinvolk/scope,dilgerma/scope,alban/scope,kinvolk/scope,paulbellamy/scope,alban/scope,weave...
client/app/scripts/components/node-details/node-details-health-overflow-item.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport nodeResolve from 'rollup-plugin-node-resolve';\nimport { globalsRegex, GLOBAL } from 'rollup-globals-regex';\n\nexport default {\n input: 'dist/src/ng-dynamic-component.js',\n output: {\n file: 'dist/bundles/ng-dynamic-compo...
javascript
edit
0
2
mit
3df2bbf433f53347458d6defef06a88937b89d0b
gund/ng-dynamic-component,gund/ng-dynamic-component,gund/ng-dynamic-component
rollup.config.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst bunyan = require('bunyan');\nconst path = require('path');\nconst PrettyStream = require('bunyan-prettystream');\n\nconst streams = [{\n level: (process.env.NODE_ENV === 'development') ? 'debug' : 'info',\n path: path.join(__dir...
javascript
edit
0
0
mit
3f0ede6159e8f6286112fafe1fbea1ac3b0822c0
octahedron/octopush
src/infrastructure/logger.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport { createSelector } from 'reselect';\nimport * as deps from '../deps';\nimport * as selectors from '../selectors';\n\nexport const getSettingsCreator = (packageName) => createSelector(\n selectors.getSettingsLiveCollection,\n de...
javascript
edit
0
3
mit
364c445bab29675b8f0992efec57ca70ed6dd989
worona/worona,worona/worona-dashboard,worona/worona-core,worona/worona,worona/worona-core,worona/worona,worona/worona-dashboard
client/packages/settings-dashboard-extension-worona/src/dashboard/selectorCreators/index.js
rejected_duplicate
Near-duplicate of sample 72927
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\nvar React = require('react');\nvar doctype = '<!DOCTYPE html>\\n';\nvar transformResponse = require('subprocess-middleware').transformResponse;\n\nvar render = function (Component, body, res) {\n //var start = process....
javascript
edit
0
3
mit
3f6c7ef639ea0a475cdff67b4e85fe58e6a1de07
kidaa/encoded,4dn-dcic/fourfront,hms-dbmi/fourfront,philiptzou/clincoded,ENCODE-DCC/snovault,hms-dbmi/fourfront,ENCODE-DCC/encoded,ENCODE-DCC/encoded,hms-dbmi/fourfront,kidaa/encoded,T2DREAM/t2dream-portal,ClinGen/clincoded,ENCODE-DCC/snovault,philiptzou/clincoded,ClinGen/clincoded,ENCODE-DCC/snovault,ENCODE-DCC/encode...
src/encoded/static/libs/react-middleware.js
accepted
null
true
[ { "role": "user", "content": "Write javascript code for the following: Add Element.matches fix for IE" }, { "role": "assistant", "content": "require('svg4everybody')();\n\nif (!window.Element.prototype.matches) {\n\twindow.Element.prototype.matches = window.Element.prototype.msMatchesSelector;\n...
javascript
new_file
0
0
mit
000f6aa302cda2e54d2e26ca85e28452dc50c382
engageinteractive/front-end-baseplate,engageinteractive/core,engageinteractive/core,engageinteractive/front-end-baseplate,engageinteractive/front-end-baseplate
src/js/modules/polyfills.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nangular.module('personality.controller', [])\n\n.controller('PersonalityController', [\n'$scope', '$http', 'personalityService',\n($scope, $http, personalityService) => {\n $scope.roastOptions = [\n 'light',\n 'm...
javascript
edit
0
1
mit
cbccd67c481080e5e4d65d75dc03c57ea26de763
o3world/o3-barista,o3world/o3-barista
public/personality.controller.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport DS from 'ember-data';\nimport Session from 'exp-models/models/session';\n\nexport default Session.extend({\n frameIndex: DS.attr(),\n surveyPage: DS.attr()\n});\n\n```\n\nApply this change: Set default frameIndex & surveyPa...
javascript
edit
0
0
apache-2.0
a093a6e38762c35091f46136942a3f469483de6b
CenterForOpenScience/isp,CenterForOpenScience/isp,CenterForOpenScience/isp
app/models/session.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nvar ngModule = angular.module('woDirectives');\n\nngModule.directive('keyfileInput', function() {\n return function(scope, elm) {\n elm.on('change', function(e) {\n for (var i = 0; i < e.target.file...
javascript
edit
0
2
mit
e9a8702b3995781cb5ed6b8c2e746c360e36b812
whiteout-io/mail,dopry/mail-html5,sheafferusa/mail-html5,dopry/mail-html5,tanx/hoodiecrow,clochix/mail-html5,b-deng/mail-html5,dopry/mail-html5,tanx/hoodiecrow,dopry/mail-html5,whiteout-io/mail-html5,whiteout-io/mail-html5,clochix/mail-html5,whiteout-io/mail,whiteout-io/mail,sheafferusa/mail-html5,kalatestimine/mail-ht...
src/js/directive/contacts.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nApp.ApplicationRoute = Ember.Route.extend({\n // admittedly, this should be in IndexRoute and not in the\n // top level ApplicationRoute; we're in transition... :-)\n model: function () {\n return ['red', 'yellow', 'blue...
javascript
edit
0
0
mit
f9d943aa29eef1367e24e7815d0bc8970e98bd27
rjsamson/ember-hapi-base
app/scripts/routes/application_route.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nvar serialNumber = require('./index');\n\nvar fail = function (err) {\n\tconsole.error('Could not read serial number:', err);\n};\n\nserialNumber(function (err) {\n\tif (process.platform !== 'win32' && err.toString().ma...
javascript
edit
0
4
isc
6334dd1cbe27a8b84df69cc8e450a92c637df3b7
dcrystalj/serial-number,es128/serial-number
setup.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// @flow\nimport debug from 'debug'\nimport get from 'lodash/get'\n\nconst dbg = debug('woonerf:message')\n\n/**\n * Expose a Set of all the keys used\n */\nexport const KeysUsed = new Set()\n\n/**\n * Set the messages object\n */\nexpo...
javascript
edit
null
null
mit
09a491cff5573526768c1161eaf393cf1e29f74a
conveyal/woonerf
src/message.js
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport Promise from 'bluebird';\nimport { logger } from './logging';\n\n/**\n * Do a promise returning function with retries.\n */\nexport function withRetries(promiseFn, maxRetries, delaySeconds, errMsg, expBackoff) {\n let retryCount...
javascript
edit
0
3
apache-2.0
76161510b3ad61a0f667958bc4b2eb97c4f36469
KillrVideo/killrvideo-web,KillrVideo/killrvideo-web,KillrVideo/killrvideo-web
src/server/utils/promises.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nclass PublicCommentsAPIService {\n constructor(publicAPIRoute) {\n this.publicAPIRoute = publicAPIRoute;\n }\n\n getCommentsListFor(targetId) {\n return this.publicAPIRoute('comments').get({target: targetId}).then...
javascript
edit
0
1
mit
3d2e011bc3efd28f6ddaa2dde04a76abeabf3574
materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org
website/src/app/models/api/public-comments-api.service.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// @flow\n\nconst express = require('express');\nconst statusRoute = require('./status');\nconst keysRoute = require('./keys');\nconst graphqlRoute = require('./graphql');\n\n/* ::\nimport type { $Request, $Response } from 'express';\n*...
javascript
edit
0
1
apache-2.0
ffa9d2d83ac39ffbff46036c1c53045f6de488a0
amazeeio/lagoon,amazeeio/lagoon,amazeeio/lagoon,amazeeio/lagoon,amazeeio/lagoon,amazeeio/lagoon,amazeeio/lagoon
services/api/src/routes/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar ipc = require('ipc')\nvar userData = require('./user-data.js')\n\ndocument.addEventListener('DOMContentLoaded', function (event) {\n var data = userData.getData()\n updateIndex(data.contents)\n\n ipc.on('confirm-clear-response', ...
javascript
edit
0
3
bsd-2-clause
115438d4ea6dde1eeaf68054b8f7606a28e13009
dice/git-it-electron,countryoven/git-it-electron,countryoven/git-it-electron,dice/git-it-electron,rets5s/git-it-electron,IonicaBizauKitchen/git-it-electron,jlord/git-it-electron,IonicaBizauKitchen/git-it-electron,countryoven/git-it-electron,shiftkey/git-it-electron,rets5s/git-it-electron,countryoven/git-it-electron,cou...
challenges-completed.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports = {\n \"allow_create_new_accounts\" : true,\n \"send_emails\" : false,\n \"application_sender_email\" : process.env.SENDER_EMAIL || \"email@test.com\",\n\n // transports email via SMTP\n \"email_smtp_tra...
javascript
edit
0
0
mit
1009736eb9141fec58a34584b6b8764e92a3967e
YulioTech/timeoff,YulioTech/timeoff
config/app.json.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nexport default function replaceCountryCode(\n currentSelectedCountry,\n nextSelectedCountry,\n number,\n) {\n const dialCodeRegex = RegExp(`^(${currentSelectedCountry.dialCode})`)\n const newNumber = number.replace(dialCodeRegex, n...
javascript
edit
0
1
mit
513507afcb36ad4d56bcc89596bd9252774fca2b
mukeshsoni/react-telephone-input,mukeshsoni/react-telephone-input
src/replace_country_code.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// Main vuex store\n\nimport Vue from 'vue'\nimport Vuex from 'vuex'\nimport * as actions from './actions'\nimport * as getters from './getters'\nimport intro from './modules/intro'\nimport weeks from './modules/weeks'\nimport switches ...
javascript
edit
0
1
mit
35748918436e557248c659c837635daf0af2e7bd
reichlab/flusight,reichlab/flusight,reichlab/flusight
src/store/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nrequire('es6-shim');\n\nconst intent = require('./intent');\nconst makeTime$ = require('./time');\nconst record = require('./record-streams');\nconst timeTravelStreams = require('./time-travel-streams');\nconst timeTravelBarView = requi...
javascript
edit
0
1
mit
71130ab567994962d9083c9dbd8bd69ea4a35d52
cyclejs/cycle-time-travel
src/time-travel.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar gulp = require('gulp');\nvar watch = require('gulp-watch');\nvar uglify = require('gulp-uglify');\nvar print = require('gulp-print');\nvar tsc = require('gulp-typescript-compiler');\n\n\n\ngulp.task('typescript', function() {\n re...
javascript
edit
0
1
mit
1a8b13fd53e23cd069e792476854e5b9af20f19a
micurs/relax.js,micurs/relax.js,micurs/relax.js
site/gulpfile.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar minimatch = require('minimatch');\nvar cheerio = require('cheerio');\nvar extend = require('extend');\nvar marked = require('marked');\n\nvar config = require('../config/marked');\nmarked.setOptions(config);\n\nfunction plugin(opts)...
javascript
edit
0
1
mit
7f148da89b0048bf05acbfa8c64a39d0927a4e79
basham/v4.bash.am,basham/v4.bash.am
scripts/plugins/markdown-markup.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// try block handler\nexports.TryStatement = (node, anscestors, generator) => {\n generator.advance(\"try\");\n // node.block will always be a BlockStatement\n generator.generate(node.block, anscestors);\n node.handler && generator....
javascript
edit
0
3
mit
1fc05c7aeba8dc6fa7217ad438980bd99e5a325b
interlockjs/intergenerator
src/subgenerators/errors.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst menubar = require('menubar')\nconst { ipcMain } = require('electron')\n\nconst configure = require('./src/helpers/configure')\n\nconst mb = menubar({\n alwaysOnTop: true,\n resizable: false,\n width: 292,\n height: 344,\n ico...
javascript
edit
0
1
mit
af0106c1e90dba0a66c7f162a23f1060b28beaa1
dawnlabs/alchemy,dawnlabs/alchemy,dawnlabs/alchemy
main.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport includes from 'lodash/includes';\nimport map from 'lodash/map';\nimport reduce from 'lodash/reduce';\nimport keys from 'lodash/keys';\nimport get from 'lodash/get';\nimport isEmpty from 'lodash/isEmpty';\n\nexport const getFields...
javascript
edit
0
3
bsd-2-clause
7eae22dc3a4a35bdd568a559b569964378196ba9
tidepool-org/blip,tidepool-org/blip,tidepool-org/blip
app/core/forms.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar path = require('path');\nvar chai = require('chai');\n\nchai.use(require('chai-fs'));\nchai.should();\n\nconst ROOT_DIR = path.join(process.cwd(), '..');\n\ndescribe('As a dev', function() {\n\n describe('when testing cartridge f...
javascript
edit
0
1
mit
945a41728236981a1d5f5884763cbd9793ba42f8
cartridge/cartridge,code-computerlove/slate,code-computerlove/slate
generatorTests/test/fileStructureSpec.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nfunction setCurrentMonthInInput() {\n console.log(\"Tried to set month in input. Disabled right now\");\n}\n\n$('#form-submit-button').click(function (a, c) {\n console.log(\"Form being submitted\", a, c);\n return false;\n});\n\n```...
javascript
edit
0
2
mit
fb1497b7195af0ed76e00d670d07f7472c1a3fb0
ayushgoel/flock-message-reporter,ayushgoel/flock-message-reporter,ayushgoel/flock-message-reporter,ayushgoel/flock-message-reporter
static/main.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n * We need to map identifiers between TestSwarm and BrowserStack.\n *\n * Sources:\n * - TestSwarm: https://github.com/jquery/testswarm/blob/master/inc/BrowserInfo.php\n * - ua-parser: https://github.com/ua-parser/uap-core\n * - Br...
javascript
edit
0
0
mit
f246bb8163d663ca173ae3be386a9f7bb82fd66c
clarkbox/testswarm-browserstack,clarkbox/testswarm-browserstack,mzgol/testswarm-browserstack,mzgol/testswarm-browserstack
src/mapHelper.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// grunt-docco\n// https://github.com/DavidSouther/grunt-docco\n//\n// Copyright (c) 2012 David Souther\n// Licensed under the MIT license.\n\n\"use strict\"\nvar docco = require('docco');\n\nmodule.exports = function(grunt) {\n grunt....
javascript
edit
0
2
mit
7361aa3e36272dfe8a138df011894d79e79b4448
joseph-jja/grunt-docco-dir,DavidSouther/grunt-docco,joseph-jja/grunt-docco-dir,neocotic/grunt-docco
tasks/docco.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst { expect } = require('chai');\nconst request = require('supertest');\nconst app = require('../app');\n\n\ndescribe('Pages', function() {\n describe('/', function() {\n let req;\n\n beforeEach(function() {\n req = reque...
javascript
edit
0
1
mit
78c5eab8d563b44269a591b9249439b55d31d72b
slavapavlutin/pavlutin-node,slavapavlutin/pavlutin-node
test/pages-test.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport DefineMap from 'can-define/map/';\nimport DefineList from 'can-define/list/';\nimport superMap from 'can-connect/can/super-map/';\nimport tag from 'can-connect/can/tag/';\n\nexport const OsProject = DefineMap.extend({\n seal: fa...
javascript
edit
0
0
mit
4d3a9dd9764f0cd934342d63036b6b5b76e6e0be
donejs/bitcentive,donejs/bitcentive
public/models/os-project.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/*global angular */\n\n'use strict';\n\ndescribe('Unit: Constants', function () {\n\n var constants;\n\n beforeEach(function () {\n // instantiate the app module\n angular.mock.module('app');\n\n // mock the directive\n an...
javascript
edit
0
1
mit
b42ca23427c9a6e630b77b58b94f4de9c56b372b
UKHomeOffice/removals_wallboard,UKHomeOffice/removals_wallboard,UKHomeOffice/removals_wallboard
test/unit/constants_spec.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar GraoModel = function(di) {\n di.event.newSuccess('Database Connection....');\n di.mongoose.connect(di.config.db);\n di.event.newSuccess('Instance created');\n di.models = this;\n di.models = di.loader.tryLoad(di.loader.loading(...
javascript
edit
0
1
mit
7edcb97899f0812c280bb73326b6041d734656d1
marcelomf/graojs,marcelomf/graojs,marcelomf/graojs,synackbr/graojs,synackbr/graojs,synackbr/graojs
src/core/GraoModel.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar Gravatar = require('../dist/index.js');\nvar React = require('react');\n\nReact.renderComponent(\n React.DOM.div(null,\n [\n React.DOM.h2(null, \"<Gravatar email='<EMAIL>' />\"),\n G...
javascript
edit
0
0
mit
7f7eae887362b117cca1f567fbd2ea8677082e0c
KyleAMathews/react-gravatar
examples/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nfunction Player() {\n this.strength = statRoll();\n this.dexterity = statRoll();\n this.mind = statRoll();\n this.init(arguments);\n}\nMextend(Player, {\n player: true,\n name: '<sV|Bvs>(.exe)',\n experience: 0\n});...
javascript
edit
0
5
unlicense
c1dca6018d44c0090e1b5bbf16eb4df12882ece5
skeeto/disc-rl
src/player.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport R from 'ramda';\nimport compose from './util/compose.js';\nimport join from './util/join.js';\nimport not from './util/not.js';\nimport upperCase from './util/upper-case.js';\nimport lowerCase from './util/lower-case.js';\nimport...
javascript
edit
0
0
mit
25cdc352467d9302aa6c09cd0124295f4e3b8814
restrung/restrung-js
src/swap-case.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports =\n{\n\thome: '/home', // the path to users home directory (absolute!)\n\ttmp: process.env.HOME + '/.ezseed/tmp', //the tmp folder path - default to HOME/.ezseed/tmp (absolute!)\n watcher: 'unix:///usr/local/opt/ez...
javascript
edit
0
0
bsd-3-clause
e3c41cb206d1c36622c41cf0ec45e61501bababa
ezseed/ezseed,ezseed/ezseed
config/config-sample.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar gulp = require('gulp');\nvar source = require('vinyl-source-stream');\nvar browserify = require('browserify');\nvar streamify = require('gulp-streamify');\nvar uglify = require('gulp-uglify');\nvar sass = require('gulp-sass');\nvar ...
javascript
edit
0
1
mit
3b346545f373a2d52db9dc4d8774b75c4cf46246
eiriksm/sqr,eiriksm/sqr
gulpfile.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar eventStream = require('event-stream'),\n gulp = require('gulp'),\n chmod = require('gulp-chmod'),\n zip = require('gulp-zip'),\n tar = require('gulp-tar'),\n gzip = require('gulp-gzip'),\n rename = require('gulp-re...
javascript
edit
0
1
apache-2.0
b894d45eda87023ebcb4775c2720b0ceb58a4c9a
Mibew/button-refresh-plugin,Mibew/button-refresh-plugin
gulpfile.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar gulp = require('gulp');\nvar sourcemaps = require('gulp-sourcemaps');\nvar babel = require('gulp-babel');\nvar concat = require('gulp-concat');\nvar jasmine = require('gulp-jasmine');\n\ngulp.task('jasmine', function () {\n return ...
javascript
edit
0
1
mit
1726c021482bff178832cb4e3c0816cf560416f0
trapridge/es67-fun
gulpfile.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nDoc = Base.extend({\n\tbeans: true,\n\n\tinitialize: function(canvas) {\n\t\tif (canvas) {\n\t\t\tthis.canvas = canvas;\n\t\t\tthis.ctx = this.canvas.getContext('2d');\n\t\t\tthis.size = new Size(canvas.offsetWidth, canvas.offsetHeight)...
javascript
edit
0
3
mit
d0c2c5dd1d067c832c7fcd1883f737132956adc3
proofme/paper.js,iconexperience/paper.js,Olegas/paper.js,superjudge/paper.js,0/paper.js,li0t/paper.js,li0t/paper.js,byte-foundry/paper.js,luisbrito/paper.js,fredoche/paper.js,nancymark/paper.js,Olegas/paper.js,nancymark/paper.js,rgordeev/paper.js,ClaireRutkoske/paper.js,ClaireRutkoske/paper.js,byte-foundry/paper.js,Jun...
src/document/Doc.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst takeNoArgs = (method) => function() {\n return method(this.props);\n};\n\nconst takeFirstArg = (method) => function(nextProps) {\n return method(this.props, nextProps);\n};\n\nconst methodCreators = {\n componentWillMount: take...
javascript
edit
0
1
mit
ce8ce0520c7cf64fe954b55fb8e90e6e21b0909d
jfairbank/react-classify,jfairbank/react-classify
src/methodCreators.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/*jshint -W030 */\nvar gremlin = require('../');\n\ndescribe('Bindings', function() {\n it('should support bindings with client.execute()', function(done) {\n var client = gremlin.createClient();\n\n client.execute('g.v(x)', { x:...
javascript
edit
0
1
mit
3cc85e098b44c54683820526998e341dd0a184e1
jbmusso/gremlin-client,hiddenmoo/gremlin-client,CosmosDB/gremlin-javascript,CosmosDB/gremlin-javascript,hiddenmoo/gremlin-client,jbmusso/gremlin-javascript,jbmusso/gremlin-javascript
test/bindings.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nfunction testCase(name, tests) {\n var testCase = TestCase(name);\n\n for (var test in tests) {\n if (test != \"setUp\" && test != \"tearDown\") {\n testCase.prototype[\"test \" + test] = tests[test];\n } ...
javascript
edit
0
4
bsd-3-clause
b10940e31c2a218574f9a5babbf2b782bc7baecd
busterjs/buster-core,geddski/buster-core,busterjs/buster-core
lib/buster-util/jstestdriver-shim.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/* eslint-env node */\n\nmodule.exports = function(environment) {\n var ENV = {\n modulePrefix: 'noise',\n environment: environment,\n rootURL: '/',\n locationType: 'auto',\n EmberENV: {\n FEATURES: {\n // He...
javascript
edit
0
4
apache-2.0
602fe72de7d59a80ff3a50c011bce5c4f820a905
pipedown/try_out_noise,pipedown/try_out_noise,pipedown/try_out_noise
config/environment.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport got from 'got'\n\nexport default (client, dataset) => {\n // Sanity client doesn't handle streams natively since we want to support node/browser\n // with same API. We're just using it here to get hold of URLs and tokens.\n co...
javascript
edit
0
1
mit
2bbab9759bce51c6f9641e4237c8010445d848d8
sanity-io/sanity,sanity-io/sanity,sanity-io/sanity,sanity-io/sanity
packages/@sanity/core/src/actions/dataset/streamDataset.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nfunction(onenter, onupdate, onexit) {\n var enter = this.enter(), update = this, exit = this.exit();\n if (typeof onenter === \"function\") {\n enter = onenter(enter);\n if (enter) enter = enter.selection();\n } else {\n ent...
javascript
edit
0
7
isc
e47584cb25cf75311e368a4ad87ba61b68d906ae
d3/d3-selection
src/selection/join.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport webpack from 'webpack'\nimport getBaseConfig from './webpack.config'\n\nexport default config => {\n const baseConfig = getBaseConfig(Object.assign({}, config, {env: 'production'}))\n const skipMinify = config.skipMinify\n\n r...
javascript
edit
0
2
mit
c8fc979080729361180ab6a04df63c0140a1ffd2
sanity-io/sanity,sanity-io/sanity,sanity-io/sanity,sanity-io/sanity
packages/@sanity/server/src/configs/webpack.config.prod.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React from 'react'\nimport GoogleAnalyticsScript from './scripts/google-analytics'\n\n\nexport default Page\n\nfunction Page({\n children,\n title = 'JavaScript Air',\n description = 'The live JavaScript podcast all about Java...
javascript
edit
0
1
mit
62756a7e5ed5297cc2084644ac82d678179a3362
javascriptair/site,javascriptair/site,javascriptair/site
src/components/page.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React from 'react';\nimport { Link } from 'react-router';\nimport HomepageTile from './homepage-tile.js';\nimport chaptersData from './chapter-data.js';\n\n// Clone the chapters since sort mutates the array\nconst chapters = [......
javascript
edit
0
1
mit
5337b3add954120583cbee1610ca2d8f188d9322
nicolasartman/learning-prototype,nicolasartman/learning-prototype,nicolasartman/chalees-min,nicolasartman/chalees-min
src/js/home-page.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar Couleurs = require (\"../index\");\n\nconsole.log(\"Red\".rgb([255, 0, 0]));\nconsole.log(\"Yellow\".rgb(255, 255, 0));\nconsole.log(\"Blue\".rgb(\"#2980b9\"));\n\nconsole.log(\"Bold\".bold())\nconsole.log(\"Italic\".italic())\ncons...
javascript
edit
0
0
mit
d92c8ce875ce3da991ebce9222c200489da0b18f
IonicaBizau/node-couleurs
test/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport _ from 'lodash';\n\nimport ListField from '../list_field.js';\n\nfunction getListFields() {\n\treturn _.filter(this.getFields(), function(field) {\n\t\treturn field instanceof ListField;\n\t});\n};\n\nexport default getListFields...
javascript
edit
0
3
mit
d43f60a6bbc181c0f08fa5dcfdbd1ab19709afef
jagi/meteor-astronomy
lib/modules/fields/class_static_methods/get_list_fields.js
accepted
null
true