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// Includes\nvar http = require('./http.js').func;\nvar getHash = require('./getHash.js').func;\nvar getVerificationInputs = require('./getVerificationInputs.js').func;\nvar cache = require('../cache');\n\n// Args\nexports.required = ['...
javascript
edit
0
2
mit
5a814afebb6ed8478d63d8c6167c686c90381ef9
OnlyTwentyCharacters/roblox-js,sentanos/roblox-js,FroastJ/roblox-js
lib/util/getVerification.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar timeCheck = require('../checks/time.js');\nvar expect = require('chai').expect;\nvar cases = require('cases');\n\ndescribe('check response code', function() {\n it('returns true for responses faster than or equal to the limit', c...
javascript
edit
0
1
mit
d674af62e6bbc3dbe5308a77208466b4b3f41600
hgcummings/hypermeter
test/checkTime.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n#ifndef __browser_dom_Document__\n#define __browser_dom_Document__\n\n////////////////////////////////////////////////////////////////////////////////\n// Document\n\nDocument = DomElement.get(document);\n\n#ifdef DEFINE_GLOBALS\n\nfunc...
javascript
edit
null
null
mit
085379b06b7536d5d0a2e1449ebf86f4d9c9978c
lehni/bootstrap.js,lehni/bootstrap.js,lehni/bootstrap.js
src/browser/dom/Document.js
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// Depend on ./graph module\nconst {buildGraph} = require(\"./graph\");\n\nconst roads = [\n \"Alice's House-Bob's House\", \"Alice's House-Cabin\",\n \"Alice's House-Post Office\", \"Bob's House-Town Hall\",\n \"Daria's Ho...
javascript
edit
0
1
mit
1cbb01464c3fe479db53849b242dc6961969e0a4
bewuethr/ctci
eloquent_js/chapter10/roads.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nconst config = {\n repository_url: 'github.com/zulhilmizainuddin/url-shortener',\n base_url: 'localhost:7000',\n log_level: 'info',\n memcached_server: 'localhost:11211',\n cache_lifetime: 60\n};\n\nmodul...
javascript
edit
0
0
mit
593ebb3d69d6d9848ef06a83f98b43fe761c18c5
zulhilmizainuddin/url-shortener,zulhilmizainuddin/url-shortener
config.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/* @flow */\n\nimport test from 'tape';\nimport sasspec from '../src';\n\nconst sass = assert => {\n assert.plan(1);\n return sasspec('./test/fixtures/func.scss', assert);\n};\n\ntest('function should be called with no args', assert =...
javascript
edit
0
1
mit
45b0cb289f8c6145b36c67f924a7037eb1375fd4
zephraph/sasspec
test/func.spec.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nlet config = {\n scheme: window.location.protocol.slice(0, -1),\n host: window.location.hostname,\n port: window.location.port,\n getUrl: () => `${config.scheme}://${config.host}:${config.port}`,\n getWs: () => `ws://${co...
javascript
edit
0
1
mit
a4b85b58368e6fadaa123169920eca5271d168a1
Piotrekol/StreamCompanion,Piotrekol/StreamCompanion
webOverlay/lib/consts.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar fs = require('fs'),\n glob = require('glob'),\n path = require('path'),\n wrench = require('wrench');\n\nvar counter = 0;\ntry { fs.mkdirSync('/tmp/lumbar-test', 0755); } catch (err) {}\n\nexports.testDir = function(testNam...
javascript
edit
0
1
mit
968a4f8d03986c81f175a7f3a5614f478a3eb3f1
walmartlabs/lumbar
test/lib/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar Knox = Npm.require(\"knox\");\nvar Future = Npm.require('fibers/future');\n\nvar knox;\nvar S3;\n\nMeteor.methods({\n\tS3config:function(obj){\n\t\tknox = Knox.createClient(obj);\n\t\tS3 = {directory:obj.directory || \"/\"};\n\t},\n...
javascript
edit
0
3
mit
b04e131a010336466724f6cbfd4e439e1325adca
PrincessTeruko/S3,Lepozepo/S3,Lepozepo/S3
s3server.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nexports.config = {\n files: {\n javascripts: {\n joinTo: {\n 'vendor.js': /^vendor/\n },\n entryPoints: {\n 'app/index.js': 'app.js'\n }\n },\n stylesheets: {\n joinTo: 'app.css'\n }\n...
javascript
edit
0
0
mit
6cf41cb33cf23f806d338e34022ad8036f487d69
makenew/tasty-brunch,makenew/tasty-brunch,makenew/tasty-brunch
brunch-config.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n(function (<bridge>, document) {\n if (document.readyState == \"loaded\" || document.readyState == \"complete\") {\n document.__creammonkeyed__ = true;\n } else {\n return;\n }\n with ({ location: window.locati...
javascript
edit
null
null
mit
765c72bb9528d08a94f5f5c1162eecb8ac29f9fd
tbodt/greasekit,chrismessina/greasekit,sohocoke/greasekit,kzys/greasekit
template.js
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict'\nexports.topic = {\n name: 'heroku',\n // this is the help text that shows up under `heroku help`\n description: 'a topic for the webhooks plugin'\n}\n\nexports.commands = [\n require('./commands/webhooks/add.js'),\n r...
javascript
edit
0
0
isc
109e79d4c84a91ddb2da990df12cc8a19cdcaa5d
heroku/heroku-cli,heroku/cli,heroku/cli,heroku/heroku-cli,heroku/heroku-cli,heroku/cli,heroku/heroku-cli,heroku/cli
packages/heroku-webhooks/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/* jshint expr:true */\nimport {\n describe,\n it,\n beforeEach,\n afterEach\n} from 'mocha';\nimport { expect } from 'chai';\nimport Ember from 'ember';\nimport startApp from '../helpers/start-app';\n\nvar App;\n\ndescribe('Accepta...
javascript
edit
0
1
apache-2.0
911073f881a2dc5cf2f9e75c33970ef7510ca0b6
trentmwillis/ember-cli-mocha,lazybensch/ember-cli-mocha,ember-cli/ember-cli-mocha,cowboyd/ember-cli-mocha,HeroicEric/ember-cli-mocha,blimmer/ember-cli-mocha,lazybensch/ember-cli-mocha,switchfly/ember-cli-mocha,blimmer/ember-cli-mocha,switchfly/ember-cli-mocha,trentmwillis/ember-cli-mocha,HeroicEric/ember-cli-mocha,embe...
blueprints/acceptance-test/files/tests/acceptance/__name__-test.js
rejected_duplicate
Near-duplicate of sample 81525
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React, { Component, PropTypes } from 'react';\nimport { List } from 'immutable';\nimport { Card } from 'components';\n\nexport default class Hand extends Component {\n static propTypes = {\n cards: PropTypes.instanceOf(List),...
javascript
edit
0
1
mit
d235280734513a0e3439d06ec540e583a1e3b298
inooid/react-redux-card-game,inooid/react-redux-card-game
src/components/Hand/Hand.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n * Straight exports with short alias, to support browserify.\n *\n */\nexports.dot = exports.dotCase = require('dot-case')\nexports.swap = exports.swapCase = require('swap-case')\nexports.path = exports.pa...
javascript
edit
0
0
mit
83d5edd10d8f00cd8ea0a059462629e394cbc78e
gdi2290/change-case,dirwin517/change-case,blakeembrey/change-case
change-case.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\ndescribe(\"Core Bliss\", function () {\n\t\"use strict\";\n\n\tbefore(function() {\n\t\tfixture.setBase('tests/fixtures');\n\t});\n\n\tbeforeEach(function () {\n\t\tthis.fixture = fixture.load('core.html');\n\t});\n\n\t// testing setup\...
javascript
edit
0
1
mit
dbb0a79af0c061b1de7acb0d609b05a438d52cae
LeaVerou/bliss,dperrymorrow/bliss,LeaVerou/bliss,dperrymorrow/bliss
tests/CoreSpec.js
rejected_duplicate
Near-duplicate of sample 93597
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// We have to remove node_modules/react to avoid having multiple copies loaded.\n// eslint-disable-next-line import/no-unresolved\nimport React, { PropTypes } from 'react';\nimport { connect } from '@folio/stripes-connect'; // eslint-di...
javascript
edit
0
1
apache-2.0
c7287c701bbea9921592f4cf19c893bc8a14bdb0
folio-org/ui-users,folio-org/ui-users
settings/PermissionSet.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n * @flow\n */\n\nimport osascript from '@exponent/osascript';\n\nexport async function openFinderToFolderAsync(dir: string) {\n return await osascript.openFinderToFolderAsync(dir);\n}\n\nexport async function openFolderInItermOrTe...
javascript
edit
null
null
mit
a5cd0683901f30c668dac9d421644bb70587359e
exponentjs/xdl,exponentjs/xdl,exponentjs/xdl
src/FileSystem.js
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React, { Component, PropTypes } from 'react';\n\nexport default class DigitalInput extends Component {\n static propTypes = {\n write: PropTypes.func.isRequired,\n };\n\n constructor(props, context) {\n super(props, cont...
javascript
edit
0
1
mit
d1917086cb72e173c876ded5f7c9cb41e9b1de36
UniSiegenCSCW/remotino,UniSiegenCSCW/remotino,UniSiegenCSCW/remotino
app/components/Pin/AnalogOutput.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nangular.module('PassApp')\n.factory('ApiService', function($http, $q){\n\tvar o = {};\n\tvar baseUrl = \"http://localhost:3000\";\n\n\to.createExam = function(data){\n\t\t$http.post(baseUrl + '/exam', data).then(function(response){\n\t\...
javascript
edit
0
2
mit
43d2eaf00f644dcb16a0d0768280644e8eecd453
PuppetMasterz/passda,PuppetMasterz/passda
public/js/services/apiservice.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nmodule.exports = {\n meta: {\n docs: {\n description: 'Forbid methods added in ES6'\n },\n schema: []\n },\n create(context) {\n return {\n CallExpression(node) {\n if(node.callee && node...
javascript
edit
0
5
mit
2bff34f82b729c2fa08f2d08c4afa8a76a0d8508
nkt/eslint-plugin-es5
src/rules/no-es6-methods.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar timeout = 20000;\nvar demoCommands = {\n getSelector: function(client) {\n if(client.globals.environment === 'xvfb_mobile')\n return this.elements.searchResult.selector;\n else\n return this.el...
javascript
edit
0
2
mit
b067732c5d495aec9174c0255f3172ade7ed2c24
leandroromero/trainings-nightwatchJS
guideDemo/pages/SearchPage.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nMeteor.methods({\n createBet: function(user,defender,title,wager) {\n Bets.insert({\n bettors: [ user, defender ],\n status: \"open\",\n title: title,\n wager: wager,\n createdAt: new Date()\n });\n },\n...
javascript
edit
0
1
mit
9a2c253713ac535c64eeec95d36042f1a086afd6
nmmascia/webet,nmmascia/webet
server/methods.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst electron = require('electron')\nconst app = electron.app\nconst dialog = electron.dialog\nconst globalShortcut = electron.globalShortcut\n\napp.on('ready', function () {\n globalShortcut.register('CommandOrControl+Alt+K', functio...
javascript
edit
0
1
mit
ab2c150d9bc68d6d30d68e31cad35144b93dff86
blep/electron-api-demos,PanCheng111/XDF_Personal_Analysis,blep/electron-api-demos,electron/electron-api-demos,electron/electron-api-demos,PanCheng111/XDF_Personal_Analysis,PanCheng111/XDF_Personal_Analysis,blep/electron-api-demos,electron/electron-api-demos,blep/electron-api-demos
main-process/menus/shortcuts.js
rejected_duplicate
Near-duplicate of sample 76242
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/* eslint no-var:0 */\nvar webpack = require('webpack');\nvar yargs = require('yargs');\n\nvar options = yargs\n .alias('p', 'optimize-minimize')\n .alias('d', 'debug')\n .argv;\n\nvar config = {\n entry: './src/vizceral.js',\n out...
javascript
edit
0
0
apache-2.0
32484a56d4a26599050b499058a69a1e4129e6d8
Netflix/vizceral
webpack.config.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst { execSync } = require('child_process');\nconst fs = require('fs');\nconst path = require('path');\nconst babelrcHelper = require('../../config/babelrcHelper').default;\n\nmodule.exports = ({\n directory = process.cwd(),\n babel...
javascript
edit
0
1
mit
98e00b18e66eead105f61eb8a8e075d49178e394
fervorous/fervor
src/cli/commands/build.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport createLogger from 'redux-logger';\nimport thunk from 'redux-thunk';\nimport transactionReducer from './reducers'\nimport { applyMiddleware, createStore } from 'redux';\nimport { render } from 'react-dom';\n\nimport React from 're...
javascript
edit
0
0
mit
e29490acfc65d15e3cf641516a97877c8442193e
hwaterke/inab,hwaterke/inab,hwaterke/inab,hwaterke/inab
client/src/app.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React from 'react'\nimport DateTime from 'react-datetime'\n\nlet datePickerCount = 0\nexport default function DatePicker(p) {\n // Run once on mount and cleanup on unmount\n React.useEffect(() => {\n datePickerCount++\n r...
javascript
edit
0
3
mit
ae0053421cf899038b481cf02a09cba91b7943ee
conveyal/analysis-ui,conveyal/analysis-ui,conveyal/analysis-ui
lib/components/date-picker.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar prod = {\n pdm:'http://59.110.152.96/',\n assess:'http://59.110.152.96/',\n iqc:'http://59.110.152.96/'\n};\n\nwindow._activeEnv = prod;\n```\n\nApply this change: Update to use domain name" }, { "role": "assistant"...
javascript
edit
0
0
mit
6a06227076e8903146a5a28f989b4bade5730c85
EasyAssessSystem/web-ui,EasyAssessSystem/web-ui,EasyAssessSystem/web-ui,EasyAssessSystem/web-ui
deploy/prod.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n//\n// Browser requests, mirrors the syntax of the node requests\n//\n\nvar when = require('when');\n\nvar form = require('./form');\n\nexports.https = function(options, formData) {\n\n options = options || {};\n options.headers = opt...
javascript
edit
0
4
mit
6d03abf62f89431fa708012419817d35b9385841
terryma/snoocore,empyrical/snoocore,martindale/snoocore
request/requestBrowser.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar fs = require('fs');\nvar _ = require('underscore');\n\n// read config\n// var config = fs.readFile('./legal-config.json', 'utf-8', function(err, data) {\n// if (err) console.log('Err readfile config.json:', err);\n// else consol...
javascript
edit
0
2
mit
8c4cacc2395c9ceb841a60878d4d9afa73c1beb6
Dianna/legal-kosher,Dianna/legal-kosher,legal-kosher/legal-kosher,legal-kosher/legal-kosher
moduleinfo.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports = {\n ODS_PORTAL_DOMAIN: 'public',\n ODS_THEME_APIKEY: '<THEME API KEY>',\n\n // Command-line defaults\n ODS_DEFAULT_LESS_FILE: 'src/less/main.less',\n ODS_DEFAULT_LESS_WATCH_DIR: 'src/less/**',\n\n // Y...
javascript
edit
0
0
mit
a76fc77039477cc3fda4be742ad9a8ef4236e388
opendatasoft/ods-portal-devkit
config.example.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst Firebase = require('firebase');\nexport const ref = new Firebase(\"https://interruptedlobster.firebaseio.com/tiff\");\nexport const userData = ref.child('user');\nexport const userRecent = ref.child('recent');\n\n```\n\nApply this...
javascript
edit
0
2
mit
d5abe6e410c694f9fd2e9e38ab51bc1977dc0fb4
InterruptedLobster/ARO
app/lib/db/db.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar mongo = require('mongojs');\nvar job = require('./job');\nvar Queue = require('./queue');\nvar Worker = require('./worker');\n\nmodule.exports = Connection;\n\n/**\n* @constructor\n* @param {string} uri - MongoDB connection string\n...
javascript
edit
0
4
mit
a3d1afecba0a18cf167791bbf005c48cb38945e9
scttnlsn/monq
lib/connection.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports = {\n 'development': {\n 'username': 'postgres_user',\n 'password': 'MsniCUO12*',\n 'database': 'document_db',\n 'host': 'localhost',\n 'port': '5432',\n 'dialect': 'postgres'\n },\n 'test': {\n 'u...
javascript
edit
0
0
mit
5c7544b1feb80f23cdf2257e90ce4b0a91b7170f
andela-oolutola/document-management-system-api
config/config.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport _ from 'lodash';\nconst {knex} = require('../util/database').connect();\n\nfunction createAction(action) {\n const dbRow = {\n 'team_id': knex.raw('(SELECT team_id from users WHERE uuid = ?)', [action.user]),\n 'action_typ...
javascript
edit
0
2
mit
fd75bae7a84d54752673ca362b3dc1195879fd09
kaupunki-apina/prahapp-backend,futurice/wappuapp-backend,futurice/wappuapp-backend,kaupunki-apina/prahapp-backend
src/core/action-core.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nconst InputEmail = require('../../lib/install/input-email');\nconst InputEmailElement = require('../../lib/elements/atom/input-email-element');\n\ndescribe('InputEmail', () => {\n let step, view, promise;\n\n beforeEa...
javascript
edit
0
1
bsd-3-clause
57a9028ea3f986c21a575038cf298283701f819b
kiteco/kite-installer
spec/install/input-email-spec.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nconst webpack = require('webpack');\n\nmodule.exports = {\n output: {\n library: 'bob',\n libraryTarget: 'umd'\n },\n plugins: [\n new webpack.optimize.UglifyJsPlugin({\n compres...
javascript
edit
0
0
mit
600469de53ee1e925921c69e8dd5eabb14a569fe
sudo-suhas/elastic-builder,sudo-suhas/elastic-builder,sudo-suhas/elastic-builder
webpack.config.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst path = require('path');\n\nconst ExtractTextPlugin = require(\"extract-text-webpack-plugin\");\nconst HtmlWebpackPlugin = require('html-webpack-plugin');\n\nmodule.exports = {\n entry: './src',\n module: {\n rules: [\n {...
javascript
edit
0
0
mit
4ebea0be09b689858bf91df6976a7b9d102e7426
skope/poilerblate,skope/poilerblate,poilerblate/poilerblate,poilerblate/poilerblate
webpack.config.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar getOptions = require(\"loader-utils\").getOptions;\nvar validateOptions = require(\"schema-utils\");\n\nvar schema = {\n type: \"object\",\n properties: {\n twigOptions: {\n type: \"object\",\n },\n ...
javascript
edit
0
2
mit
0202fa8882af0caea3547a8f9c5bd9baf74c1840
zimmo-be/twig-loader
lib/getOptions.js
accepted
null
true
[ { "role": "user", "content": "Write javascript code for the following: Add a cypress test for user manage tab [WAL-3055]" }, { "role": "assistant", "content": "describe('User manage', () => {\n beforeEach(() => {\n cy.server()\n .mockUser()\n .login()\n\n .log('visit /profile/...
javascript
new_file
0
1
mit
6be18f7eb267e61f3590cf222725619bc5046431
opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport
cypress/integration/user/manage.spec.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n * Created by Jared Rewerts on 3/7/2016.\n */\n\"use strict\";\n\n/**\n * Each player owns it's own paddle. The already created paddle is passed into\n * the constructor of Player in config.\n *\n * @param {{id: number,\n * ...
javascript
edit
0
1
mit
a0b0415cb069dde1ff57e657a5d2663f090e3363
polyball/polyball,polyball/polyball
polyball/shared/model/Player.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nfunction main() {\n // Define video & thumbnail HTML element classes\n var videoClasses = '.html5-video-container';\n var thumbnailClasses = '.yt-uix-simple-thumb-wrap, .yt-thumb img, .ytp-thumbnail-overlay, .pl-header-thumb';\...
javascript
edit
0
2
apache-2.0
f87d86ebbb77df7a4f463c1ec0cedf1da35472aa
eladnava/youtube-for-work
assets/js/run.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar newItemCountLabel = document.getElementById('reading-list-unread-count');\n\nif (newItemCountLabel) {\n function requestUpdate() {\n var itemCountMatcher = /(\\d+)(\\+?)/;\n var match = itemCountMatcher.exec(newItemCountLabel...
javascript
edit
0
4
mit
1a7e8ca289516225129f7552ebf15f8267913c14
Janpot/google-reader-notifier
app/js/liveUpdater.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n * znResize jQuery plugin\n *\n * @author Zion Ng <<EMAIL>>\n * @link https://github.com/zionsg/zn-jquery/tree/master/znResize\n * @version 1.0.0, 2013-06-25\n */\n(function($){$.fn.znResize=function(options){var config=$.exten...
javascript
edit
0
5
bsd-2-clause
271f0590946bd304c3eb953befb46eff649c3aa4
zionsg/zn-jquery
znResize/zn-jquery-znresize.min.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// : (Transform, [Step], [Step], [Step]) → number\n// Undo a given set of steps, apply a set of other steps, and then\n// redo them.\nfunction rebaseSteps(transform, steps, inverted, inside) {\n for (let i = inverted.length - 1; i >= 0...
javascript
edit
0
6
mit
201e22250f4b8d478187ee1c4fd212e294962bec
ProseMirror/prosemirror-collab
rebase.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nvar RSVP = require('rsvp');\n\nmodule.exports = function(context, options, payload) {\n payload.database = {rules: options.config.get('database.rules')};\n\n return RSVP.resolve();\n};\n\n```\n\nApply this change: Add...
javascript
edit
0
1
mit
6a1d968ef7f362f045da59d0a6bf8ce842c976c5
firebase/firebase-tools,lguzzon/firebase-tools,firebase/firebase-tools,lguzzon/firebase-tools,firebase/firebase-tools,firebase/firebase-tools,firebase/firebase-tools
lib/deploy/database/prepare.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n(function(self) {\n 'use strict';\n\n if (self.AbortController) {\n return;\n }\n\n class AbortController {\n constructor() {\n this.signal = {};\n }\n abort() {\n if (this.signal.__internalOnCancel) {\n ...
javascript
edit
0
3
mit
7a6339d28f2823e39e7a757bcbb5a82cc33b8062
mo/abortcontroller-polyfill,mo/abortcontroller-polyfill,mo/abortcontroller-polyfill
abortcontroller.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/* @flow strict-local */\nimport { createSelector } from 'reselect';\n\nimport type { Account, Identity, Selector } from '../types';\nimport { NULL_ACCOUNT } from '../nullObjects';\nimport { getAccounts } from '../directSelectors';\n\ne...
javascript
edit
null
null
apache-2.0
3706965d3169e31312201437e649e544a6a168d9
vishwesh3/zulip-mobile,vishwesh3/zulip-mobile,vishwesh3/zulip-mobile,vishwesh3/zulip-mobile
src/account/accountsSelectors.js
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n * Cache data.\n *\n * Site Kit by Google, Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain ...
javascript
edit
0
2
apache-2.0
8d8360623cb8b0874943e60d66d6c7cd4fa2cc99
google/site-kit-wp,google/site-kit-wp,google/site-kit-wp,google/site-kit-wp
assets/js/util/api.js
rejected_duplicate
Near-duplicate of sample 71280
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// ==UserScript==\n// @name Todays PPC script\n// @namespace http://www.github.com/gh4ck3r\n// @description Customize and remove Ad. from Todays PPC site\n// @include https://www.todaysppc.com/*\n// @version 9\n// @gran...
javascript
edit
0
2
mit
9881e13a7bf2f1e46007ce338ecf727ae443646e
gh4ck3r/gm_scripts
todaysppc.user.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n * User\n *\n * @module :: Model\n * @description :: A short summary of how this model works and what it represents.\n * @docs\t\t:: http://sailsjs.org/#!documentation/models\n */\n\nmodule.exports = {\n\n attributes: {\n ...
javascript
edit
0
0
mit
82d9df5b98039093b48d3adbcd456b23352a6a2e
thomaslangston/sailsnode
api/models/User.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/*\n\nKent Hack Enough\n\nLet's try to organize organizing.\n@author Paul Dilyard\n\nTo get the app instance, just call getAppInstance() from anywhere\nTo get a db connection, require('mongoose')\n\n*/\nvar express = require('express');...
javascript
edit
0
1
mit
9deab22d4c7b69994482a899db7e1be3eef3db3a
hacksu/kenthackenough,hacksu/kenthackenough
app.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar connect = require('connect');\nvar PORT = process.env.PORT || 5000;\nvar diffy = require('./diffy');\nvar http = require('http');\nvar postMessage = require('./lib/post_message');\n\nvar app = connect()\n.use(require('body-parser')....
javascript
edit
0
3
mit
c6947f240680330b4274443e54aff1829c191d9f
geckoboard/diffy
app.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React from 'react';\nimport style from 'HPCCloudStyle/ItemEditor.mcss';\n\nexport default React.createClass({\n\n displayName: 'Simulation/New/Visualizer',\n\n propTypes: {\n owner: React.PropTypes.func,\n },\n\n ...
javascript
edit
0
1
apache-2.0
f101e836a283b77b4618d8a1eb1893e7fa299721
Kitware/HPCCloud,Kitware/HPCCloud,Kitware/HPCCloud,Kitware/HPCCloud
lib/workflows/visualizer/components/root/NewSimulation.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nvar express = require('express'),\n favicon = require('serve-favicon'),\n routes = require('./app/routes/index.js'),\n mongo = require('mongodb').MongoClient;\n\nvar app = express();\n\nmongo.connect('mongodb:/...
javascript
edit
0
3
mit
7ef99989647ff7d98963318ef32c5cb873be9952
timolawl/fcc-url-shortener,timolawl/fcc-url-shortener
server.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n#!/usr/bin/env node\n'use strict';\n\nvar meow = require('meow');\nvar getBrowsers = require('./');\n\nmeow({\n\thelp: [\n\t\t'Usage',\n\t\t' $ get-browsers'\n\t].join('\\n')\n});\n\ngetBrowsers(function (err, res) {\n\tif (err) {\n\t\...
javascript
edit
0
2
mit
213603db6b84e84371fbc970b1416489718a2e76
kevva/get-browsers
cli.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconsole.log(\"Deploying Application...\");\nvar fs = require(\"fs\");\nvar path = require(\"path\");\nvar ShopifyAPI = require(\"shopify-node-api\");\n\nvar pageId = process.env.SHOPIFY_PAGE_ID;\nvar Shopify = new ShopifyAPI({\n shop...
javascript
edit
0
2
mit
3c90b93e775becff555236a52360b32f0a45be2e
Blendtec/recipes,Blendtec/recipes,Blendtec/recipes,Blendtec/recipes
.travis/shopify.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport { app, BrowserWindow } from 'electron'\n\nexport var devMenuTemplate = {\n label: 'Development',\n submenu: [{\n label: 'Reload',\n accelerator: 'CmdOrCtrl+R',\n click: function () {\n BrowserWindow.getFocusedWind...
javascript
edit
0
0
mit
e3fbae1ccfcf43e6f7fd30c38103a759dfd02b7f
tinytacoteam/zazu,tinytacoteam/zazu
app/helpers/dev_menu_template.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar keystone = require('../../../../');\n\nmodule.exports = function (req, res) {\n\tif (!keystone.security.csrf.validate(req)) {\n\t\treturn res.apiError(403, 'invalid csrf');\n\t}\n\tvar item = new req.list.model();\n\titem.getUpdateH...
javascript
edit
0
3
mit
7b914585657d33036f509a9d15648ea8fba6402f
michaelerobertsjr/keystone,dryna/keystone-twoje-urodziny,trentmillar/keystone,naustudio/keystone,webteckie/keystone,w01fgang/keystone,naustudio/keystone,xyzteam2016/keystone,sendyhalim/keystone,concoursbyappointment/keystoneRedux,andrewlinfoot/keystone,matthewstyers/keystone,Yaska/keystone,Yaska/keystone,naustudio/keys...
admin/server/api/list/legacyCreate.js
rejected_duplicate
Near-duplicate of sample 80692
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar webpack = require('webpack');\n\nmodule.exports = {\n entry: \"./src/app.js\",\n output: {\n path: \"./build\",\n filename: \"bundle.js\",\n publicPath: 'http://localhost:8090/assets'\n },\n module: {\n loaders: [\n ...
javascript
edit
0
0
mit
d0399178739de90059cf49c620246db49f24b358
slwen/lastfm-app,slwen/lastfm-app
webpack.config.js
rejected_duplicate
Near-duplicate of sample 71407
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst webpack = require('webpack');\n\nmodule.exports = {\n entry: {\n 'pusher-platform': './src/index.ts'\n },\n output: {\n filename: 'target/[name].js',\n libraryTarget: 'umd',\n library: 'PusherPlatform',\n },\n res...
javascript
edit
0
0
mit
511f87a8db3f1247a77954ed1addcbf623a82e7d
pusher/pusher-platform-js,pusher/pusher-platform-js,pusher/pusher-platform-js
webpack.config.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// Load libraries\nimport angular from 'angular';\n\nimport 'angular-animate';\nimport 'angular-aria';\nimport 'angular-material';\n\nimport 'tinycolor'\nimport 'md-color-picker'\n\nimport AppController from 'src/AppController';\nimport...
javascript
edit
0
1
mit
5560064a95f346ec9869d7d2aff046930a7bb1c1
thisiswhytheinternetexists/MaterialHue,thisiswhytheinternetexists/MaterialHue
app/src/app.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar ExtractTextPlugin = require('extract-text-webpack-plugin');\n\nmodule.exports = {\n context: __dirname + '/app',\n entry: ['./app.jsx'],\n output: {\n filename: 'molten.js',\n path: './dist',\n publicPa...
javascript
edit
0
0
mit
12bf55625c4b6aff88a5041e315bc9c6912bc1b0
martinhoefling/molten,martinhoefling/molten,martinhoefling/molten
webpack.config.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst fs = require(\"fs\");\nconst path = require(\"path\");\nconst pify = require(\"pify\");\nconst os = require(\"os\");\n\nconst { Archive } = require(\"buttercup\");\nconst csvparse = require(\"csv-parse/lib/sync\");\n\n/**\n * Impo...
javascript
edit
0
7
mit
e5686b0d2033a3e6a2ec64a927558b2794edbbea
perry-mitchell/buttercup-importer
source/importers/CSVImporter.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nerrors = new ReactiveArray([]);\n\nTemplate.register.helpers({\n errorList: function() {\n return errors.list();\n },\n\n formValid: function(user) {\n return !($.isEmptyObject(user.userName) &&\n $.isEmptyObject(user....
javascript
edit
0
5
mit
e12f2d5da0af72367800b777f703b487ee90f92e
PUMATeam/puma,PUMATeam/puma
client/views/register.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar webpack = require('webpack');\nvar path = require('path');\nvar node_modules_dir = path.join(__dirname, 'node_modules');\n\nmodule.exports = {\n devtool: 'inline-cheap-source-map',\n entry: path.resolve(__dirname, 'annotator/s...
javascript
edit
0
0
mit
b4cff5e4a8e5291c25203acbbb4d092ad4bf7bea
planbrothers/ml-annotate,planbrothers/ml-annotate,planbrothers/ml-annotate
webpack.config.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/*\n* @Author: KevinMidboe\n* @Date: 2017-06-01 19:09:16\n* @Last Modified by: KevinMidboe\n* @Last Modified time: 2017-10-24 21:55:41\n*/\n\nconst path = require('path');\nconst CleanWebpackPlugin = require('clean-webpack-plugin');...
javascript
edit
0
0
mit
9fcc82d7cf24fa02facc8b8dd9dab74eb6affee3
KevinMidboe/seasonedShows,KevinMidboe/seasonedShows,KevinMidboe/seasonedShows,KevinMidboe/seasonedShows
client/webpack.common.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// Map centered in NowSecure HQ by default\nvar map = L.map('map').setView([40.2001925,-89.0876265], 3);\n\nL.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', {\n attribution: '&copy; <a href=\"http://osm.org/copyright\">OpenStre...
javascript
edit
0
2
mit
ca504dd8b335fbee77f6a24671a8246d828780e3
jcollado/pic2map,jcollado/pic2map,jcollado/pic2map
pic2map/server/static/main.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport {Component} from 'react'\n\nexport default class MockTestComponentUniqueName extends Component {\n static defaultProps = {\n test: 'hi'\n }\n\n render () {\n <div />\n }\n}\n\n```\n\nApply this change: test(react): Fix ...
javascript
edit
0
1
mit
24fb97bc88f309f1ffed323ce159c3e15655a23b
conveyal/mastarm,conveyal/mastarm
__tests__/test-utils/mocks/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React, { Component, PropTypes } from 'react';\nimport Slide from '../slide';\nimport BulletPoint from '../bullet-point';\n\nrequire('./app.scss');\n\nclass App extends Component {\n constructor(props) {\n super(props);\...
javascript
edit
0
1
mit
da308751ad728da7981421d25370e1ec28284c46
leadiv/react-slides,leadiv/react-slides
src/components/app/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n$(document).ready(function() {\n\t// select input content when focused\n\t$('input[type=text],input[type=password],input[type=search]')\n\t\t.focus(function(e) {\n\t\t\tthis.select();\n\t\t});\n\t$('a.partial').click(function(){\n\t\t$....
javascript
edit
0
2
bsd-3-clause
3ab57a4d654a3cd92d8d577137b1a5b0a4bc70f9
pear2/pear2.php.net,pear2/pear2.php.net
www/js/pearweb.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React from 'react';\nimport { Link } from 'react-router';\nimport classNames from 'classnames';\nimport Title from 'react-title-component';\n\nimport main from '../../assets/css/main.scss';\n\nconst primaryBtnClassnames = classNa...
javascript
edit
0
1
mit
bc650b8bd670c5b5b84a77dbeef0962df89bdb71
communicode-source/communicode,communicode-source/communicode
app/components/pages/NotFound.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport { fromJS } from 'immutable';\nimport {\n CHANGE_USER,\n} from './constants';\n\nconst initialState = fromJS({\n currentUser: 1,\n users: [\n { userId: 1, name: 'Nico Greenarry' },\n { userId: 2, name: 'Elyse Greenarry' }...
javascript
edit
0
2
mit
040ae9b4794fc86406db0e9e94cd1377e846c77a
Get-In-Touch/get-in-touch,Get-In-Touch/get-in-touch
app/containers/SignIn/reducer.js
rejected_duplicate
Near-duplicate of sample 79114
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nKrang.deepExtend = function(destination, source) {\n for (var property in source) {\n var type = typeof source[property];\n if (type === 'object' && !Object.isElement(source[property])) {\n destination[property] = destinatio...
javascript
edit
0
8
mit
75acdfddfe8136c029740697c896f89cb623fa43
savetheclocktower/krang
src/mixins.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\ndefine([\n 'ember',\n],\n\nfunction (Em) {\n 'use strict';\n\n var Router = Em.Router.extend({\n location: 'history'\n });\n\n Router.map(function () {\n this.resource('groups', {path: '/groups'}, function () {\n this.re...
javascript
edit
0
1
mit
a9646b768c1583fbc50fe73d9b09d4fcf13e7db0
darvelo/wishlist,darvelo/wishlist
app/scripts/app/router.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React, {Component, Image, Text, TouchableHighlight, View, StyleSheet} from 'react-native';\n\nexport default class FriendListItem extends Component {\n\n constructor(props) {\n super(props);\n }\n\n render() {\n const { ...
javascript
edit
0
1
mit
782d1c73ab7d191941192851e5e9405c0539b928
InterruptedLobster/ARO
app/components/FriendListItem.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n * mSupply Mobile\n * Sustainable Solutions (NZ) Ltd. 2019\n */\n\nimport Realm from 'realm';\n\n/**\n * An abstract object which contains metadata describing an indicator row or column.\n *\n * @property {string} id\...
javascript
edit
0
3
mit
b4a399bed6e859ae061485b3bd9e79fc13ef26df
sussol/mobile,sussol/mobile,sussol/mobile,sussol/mobile
src/database/DataTypes/IndicatorValue.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n$(document).ready( function () {\n $('#signup').click(function(event){\n event.preventDefault();\n $('#screen_block').show();\n $('#signup_modal').show();\n });\n\n $('#screen_block').click(function(event){\n event.preven...
javascript
edit
0
1
mit
d0d15f3ee4ce07a034e29b190065f809bc7784ab
great-horned-owls-2014/dbc-what-is-this,great-horned-owls-2014/dbc-what-is-this
app/assets/javascripts/questions.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nvar Logging = require('./core/logging');\n\nvar configs = require('./configs');\nvar logging = new Logging();\n\nlogging.conf(configs);\n\nlogging.getLogger().setup(logging);\n\nmodule.exports = logging;\n\n```\n\nApply...
javascript
edit
0
0
mit
94b57de945a42cd3659df61faffe58b0b380aeac
fistlabs/loggin,golyshevd/loggin
loggin.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nmodule.exports = function(grunt) {\n grunt.config.set('requirejs', {\n prod: {\n options: {\n baseUrl: '.',\n mainConfigFile: 'src/requirejs-config.js',\n insertRequire: ['main'],\n ...
javascript
edit
0
1
mit
84e9986721cca4fadf172a089119cfc14dfc4702
bocoup-education/roost-chicago-2014-app
build/grunt-contrib-requirejs.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n * @class HTMLCollectionHelper\n * Class provides static methods to perform checks and operations on arrays\n */\n\nclass HTMLCollectionHelper {\n // Class Methods\n\n /**\n * Converts a given HTMLCollection to an Array.\...
javascript
edit
0
1
mit
8524d63fed0c725c6f604229aab6354e8d7d2ce8
keenanamigos/es6-js-helper-functions
src/htmlCollectionHelper.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/* global toastr:false, moment:false, _:false, $:false, session:false */\n(function() {\n 'use strict';\n\n angular.module('app.core')\n .constant('lodash', _)\n .constant('jQuery', $)\n .constant('toastr', toastr)\n .cons...
javascript
edit
0
2
apache-2.0
27566e0e741d8dcff9f4e6680fce9c4acbe778ac
mafernando/api,adderall/api,boozallen/projectjellyfish,projectjellyfish/api,boozallen/projectjellyfish,AllenBW/api,sonejah21/api,adderall/api,projectjellyfish/api,stackus/api,boozallen/projectjellyfish,stackus/api,sreekantch/JellyFish,adderall/api,mafernando/api,AllenBW/api,projectjellyfish/api,stackus/api,sonejah21/ap...
src/client/app/core/constants.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nfunction StretchCell(inner, width, height) {\n this.inner = inner;\n this.width = width;\n this.height = height;\n}\nStretchCell.prototype.minWidth = function() {\n return Math.max(this.inner.minWidth(), this.width);\n}\nStr...
javascript
edit
0
2
mit
49907fa4288f7d6f145baf6884aeaf3bc386b4b3
bewuethr/ctci
eloquent_js_exercises/chapter06/chapter06_ex02.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/* eslint-env node */\n\nconst { JEST_NOTIFY, ENABLE_JEST_NOTIFICATIONS } = process.env\n\nmodule.exports = {\n // Provides nice test output of what's being run\n verbose: true,\n\n // OS notifications of test results in watch mode o...
javascript
edit
0
0
mit
efc47b800fda5543361c0f4105b66e40142ebb88
crystal-ball/componentry,crystal-ball/componentry,crystal-ball/componentry
jest.config.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport Ember from 'ember';\n\nexport default Ember.Controller.extend({\n notifications: Ember.inject.service(),\n\n userPostCount: Ember.computed('model.id', function () {\n var promise,\n query = {\n ...
javascript
edit
0
2
mit
6ea49f3a035b9bc6d77b525a1e25a3589857fcc5
JohnONolan/Ghost-Admin,TryGhost/Ghost-Admin,dbalders/Ghost-Admin,kevinansfield/Ghost-Admin,dbalders/Ghost-Admin,kevinansfield/Ghost-Admin,acburdine/Ghost-Admin,acburdine/Ghost-Admin,TryGhost/Ghost-Admin,airycanon/Ghost-Admin,airycanon/Ghost-Admin,JohnONolan/Ghost-Admin
app/controllers/modals/delete-user.js
rejected_duplicate
Near-duplicate of sample 83080
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n\n$(document).ready(() => {\n // alert('Hello World');\n console.log('Check Console');\n});\n\n```\n\nApply this change: Add keyup() listening to preview input" }, { "role": "assistant", "content": "$(document).ready(() =>...
javascript
edit
0
1
mit
748d1e39e1d67ca64728495fa916361d4136d0e0
self-jw/hello-web-servers,self-jw/hello-web-servers
public/js/main.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// @ngInject\nexport default function invoicesService(baseServiceClass, $http, ENV, $state) {\n let ServiceClass = baseServiceClass.extend({\n init:function() {\n this._super();\n this.endpoint = '/invoices/';\n },\n ...
javascript
edit
0
1
mit
39f317673fed6bc4f4704b7b98616fb93f055517
opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport
src/billing/invoices-service.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport {MyClass} from \"./modules/demomodule\";\nimport {unique} from 'uniq';\nimport {Cookie} from \"ievv_jsbase/Cookie\";\n\nnew MyClass();\nconsole.log('unique test:', unique([1, 1, 2]));\n\n```\n\nApply this change: demoapp: Update ...
javascript
edit
0
0
bsd-3-clause
e5e765d5d608708ec44cdf3b2b9cafe376a54ed8
appressoas/ievv_opensource,appressoas/ievv_opensource,appressoas/ievv_opensource,appressoas/ievv_opensource,appressoas/ievv_opensource
ievv_opensource/demo/demoapp/staticsources/demoapp/scripts/javascript/browserify_babelbuild_import_path_demo/browserify_babelbuild_import_path_demo.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React from 'react';\nimport {\n Image,\n StyleSheet,\n Text,\n View,\n} from 'react-native';\n\nexport default class Welcome extends React.Component {\n\n\n render() {\n return (\n <View style={styles.welcomeContaine...
javascript
edit
0
1
mit
584d3a12f77f988dfd42e0fe11fc009bb6ffec47
FuzzyHatPublishing/isleep
components/Welcome.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n\"use strict\";\n\nconst env = require('../../env');\n\nif (env.lcd.enable) {\n\tlet Lcd;\n\tif (env.inDevMode) {\n\t\tLcd = require('gpio-peripherals-test').lcd;\n\t} else {\n\t\tLcd = require('lcd');\n\t}\n\n\tlet lcd = new Lcd({\n\t\...
javascript
edit
0
1
mit
18055341b1522e424d238ddfc5554899c5ab2ad5
roland-vachter/heating-control-rpi
app/modules/lcd.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n(function() {\n angular.module('notely.notes', [\n 'ui.router'\n ])\n .controller('NotesController', NotesController)\n .config(notesConfig);\n\n notesConfig['$inject'] = ['$stateProvider'];\n function notesConfig($stateProvide...
javascript
edit
0
1
mit
52a1a8ba5d35f1d007e6fcadca86877e90edea09
FretlessBecks/notely,FretlessBecks/notely,williamrulon/notely-1,williamrulon/notely-1
app/notes/notes.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports = {\n run(editor, sender, opts = {}) {\n const modal = editor.Modal;\n const am = editor.AssetManager;\n const config = am.getConfig();\n const amContainer = am.getContainer();\n const title = opts.modalTi...
javascript
edit
0
8
bsd-3-clause
007ad4327235f1dfc078e642a41a680ae968840c
artf/grapesjs,artf/grapesjs,artf/grapesjs,QuorumDMS/grapesjs,QuorumDMS/grapesjs
src/commands/view/OpenAssets.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n(function () {\n 'use strict';\n\n var React = require('react'),\n\n clearingItem = function () {\n return React.DOM.div(\n {className: 'star-rating-clear-container', key: 's0'},\n\n ...
javascript
edit
0
4
mit
f510baa40d912244de320f5f8afc904cb90d7aaa
ikr/react-star-rating-input,ikr/react-star-rating-input,ikr/react-star-rating-input,daviferreira/react-star-rating-input
src/StarRatingInput.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/*global require: false, module: false */\n'use strict';\nvar ga4gh = require('ga4gh-rxjs');\nvar clinvarMeta = require('./metadataStub');\nvar Rx = require('rx');\nrequire('rx.experimental');\nvar _ = require('./underscore_ext');\n\n//...
javascript
edit
0
2
apache-2.0
f98b078e0fea804557354349362b61bc0ac782c2
ucscXena/ucsc-xena-client,ucscXena/ucsc-xena-client,ucscXena/ucsc-xena-client,ucscXena/ucsc-xena-client,acthp/ucsc-xena-client,acthp/ucsc-xena-client,acthp/ucsc-xena-client,ucscXena/ucsc-xena-client
js/ga4ghQuery.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports = function ExcludePodcastAnnouncements(item) {\n if (item.title.indexOf('#') >= 0) {\n if (item.content.indexOf('This week on') >= 0 && item.content.indexOf('relay.fm') >= 0) {\n return true;\n ...
javascript
edit
0
7
mit
f52963f99cb4c32b2db2a06f8c1fd254b33ac3c2
shinypb/feedfilterer
rules/ExcludePodcastAnnouncements.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n(function () {\n 'use strict';\n\n var $app = angular.module('store', ['ui.router']);\n $app.config(function($stateProvider) {\n $stateProvider\n .state('store', {\n url: '/store',\n templateUrl: 'store/store.ht...
javascript
edit
0
1
mit
ef2059b5ac853f09ad22f19bd18fd899c0c2d55f
RyanPineo/wowtest-angular
app/store/store.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst prefix = '@@redux-simple-auth'\n\nexport const AUTHENTICATE = `${prefix}/AUTHENTICATE`\nexport const AUTHENTICATE_FAILED = `${prefix}/AUTHENTICATE_FAILED`\nexport const AUTHENTICATE_SUCCEEDED = `${prefix}/AUTHENTICATE_SUCCEEDED`\n...
javascript
edit
0
0
mit
e172dfbf34bd70ab17f9366a76a15390468c8cb7
jerelmiller/redux-simple-auth
packages/redux-simple-auth/src/actionTypes.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React from 'react';\n\nconst Item = ({ \n onDeleteClick,\n name,\n year,\n rated,\n runtime,\n genre,\n director,\n actors,\n description,\n country,\n awards,\n poster,\n scoreMetacritic,\n scoreImdb,\n scoreTomat...
javascript
edit
0
1
mit
cc23bc0a96ecd222046648f114023b98d9dd03c2
danlevine/rainchecks,danlevine/rainchecks
src/components/Item.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst path = require('path');\nconst port = process.env.PORT || 3000;\nconst screenshotPath = path.resolve(__dirname, '..', 'test', 'acceptance', 'report', 'screenshots');\nconst reportPath = path.resolve(__dirname, '..', 'test', 'accep...
javascript
edit
0
0
mit
d182de9c5af19a6f8b4f5144ef7c45ebb3e8d361
nhsalpha/betahealth,nhsuk/betahealth,nhsalpha/betahealth,nhsuk/betahealth,nhsuk/betahealth,nhsalpha/betahealth
config/config.js
accepted
null
true