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\nangular.module('materialscommons').directive('processSettings', processSettingsDirective);\nfunction processSettingsDirective() {\n return {\n restrict: 'E',\n scope: {\n settings: '=',\n taskId: '...
javascript
edit
0
3
mit
31fc439c5df65318caa60ee9a65e13a98fbe72fa
materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org
website/src/app/project/processes/process/create/components/processing-settings.directive.js
rejected_duplicate
Near-duplicate of sample 67675
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport fromPairs from 'lodash.frompairs';\n\nexport default class ArrayIndicesProxy {\n constructor(targetArray, handler) {\n const newHandler = fromPairs(Object.entries(handler).map(([name, trap]) => {\n const propertyAccessTr...
javascript
edit
0
4
mit
fbeb98d98710ea7317265d6d8d143e47ece18a45
Gothdo/range
src/array-indices-proxy.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst Promise = require('bluebird');\nconst requireAll = require('require-all');\nconst policies = requireAll(__dirname+'/../../config/policies/');\n\nfunction PolicyEngine() { \n this.policiesOrder = [\n 'invoice_policy',\n 'bri...
javascript
edit
0
2
isc
b84b8a35acdb554d60fc9b582ec72429a4b94e63
Parkjeahwan/awegeeks,whotooktwarden/gatewayd,whotooktwarden/gatewayd,xdv/gatewayd,xdv/gatewayd,crazyquark/gatewayd,zealord/gatewayd,crazyquark/gatewayd,zealord/gatewayd,Parkjeahwan/awegeeks
lib/core/policy_engine.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nvar credentials = exports;\ncredentials.isNewAPI = true;\n\nvar utils = require('common/utils');\n\ncredentials.get = function (client, query) {\n return client.get({\n url: '/credentials',\n qs: query || {}\n }...
javascript
edit
0
2
bsd-3-clause
fbbe0f46077faf0d0feb61eba337bff2d1c5712e
luizbranco/torus-cli,manifoldco/torus-cli,luizbranco/torus-cli,manifoldco/torus-cli,luizbranco/torus-cli,manifoldco/torus-cli
cli/lib/api/credentials.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst {readFileSync} = require('fs')\nconst {resolve} = require('path')\n\nfunction createRequestDecorator (stats) {\n return (req, res, next) => {\n res.locals = res.locals || Object.create(null)\n res.locals.webpackClientStats ...
javascript
edit
0
4
mit
7c9a6d67ee363d6f5944327d676b2d0047b74d8e
enten/udk,enten/udk
node/serveAssets.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar webpack = require('webpack');\nvar loaders = require('./webpack.loaders');\nvar autoprefixer = require('autoprefixer');\nvar path = require('path');\n\nvar outpath = path.join(__dirname, \"..\", \"app\")\nvar node_modules = path.joi...
javascript
edit
0
1
mit
cdc94dafc5faa58b35e08ac1e0ac1620502706f3
AdamSalma/Lurka,AdamSalma/Lurka
config/webpack.prod.client.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n * Created by root on 9/19/17.\n */\n'use strict';\n\n$(document).ready(function () {\n $(\"#shl-item, #shl-price\").addClass('text-center');\n $(\".shl-input\").addClass('text-center');\n $(\"#username, #password\").addCl...
javascript
edit
0
1
mit
10c607556393396b3318f0f13b65a450b27aab6f
gr1d99/shopping-list,gr1d99/shopping-list,gr1d99/shopping-list
shopping_app/static/assets/app/js/main.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst sinon = require('sinon')\nconst chai = require('chai')\nconst sinonChai = require('sinon-chai')\nconst expect = chai.expect\nchai.use(sinonChai)\n\ndescribe('countryMapping', () => {\n const countryMapping = require('../../routes...
javascript
edit
0
1
mit
0306b8fbd78f80c696219d9e644b8b623b8e9873
bkimminich/juice-shop,bkimminich/juice-shop,bkimminich/juice-shop,bkimminich/juice-shop,bkimminich/juice-shop,bkimminich/juice-shop
test/server/countryMappingSpec.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\napp.controller('HomeController', ['$scope', 'stocks', function($scope, stocks) {\n\tstocks.success(function(data) {\n\t\t// if (data.query.count > 0) {\n\t\t\t// $scope.stocks = data.query.results.quote;\n\t\t// }\n\n\t\t// Used for no ...
javascript
edit
0
1
mit
c169fc186c3cfb6bb903f021011c65bcf8634bb6
zachloubier/stocks,zachloubier/stocks
app/controllers/HomeController.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React, { PureComponent } from 'react';\nimport PropTypes from 'prop-types';\nimport Box from '../box';\nimport { ButtonGroup } from '../button';\nimport cx from 'classnames';\nimport theme from './theme.css';\n\nclass Message ext...
javascript
edit
0
4
mit
ee85a07c9667a741f4b9bd396859981a10ea9d4d
teamleadercrm/teamleader-ui
src/components/message/Message.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React, { PropTypes } from 'react';\n\nimport { tile as tileConstants } from './constants';\n\nconst styles = {\n wrapper: {\n width: tileConstants.width,\n height: tileConstants.height,\n border: '1px solid #FFD1AA',\n ...
javascript
edit
0
2
mit
14c99a2441eb58235edaaaf3ee5bfd6af0eaf355
react-puzzle-games/15-puzzle,react-puzzle-games/15-puzzle
src/Tile.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React from 'react';\nimport ReactDOM from 'react-dom';\nimport events from '../utils/events';\n\nconst isDescendant = (el, target) => {\n if (target !== null) {\n return el === target || isDescendant(el, target.parentNode);\n...
javascript
edit
0
4
mit
d9878fd35ca85ea0ff21584d270c7392cc891d65
ruifortes/material-ui,ArcanisCz/material-ui,AndriusBil/material-ui,manchesergit/material-ui,hwo411/material-ui,callemall/material-ui,matthewoates/material-ui,AndriusBil/material-ui,rscnt/material-ui,lawrence-yu/material-ui,cherniavskii/material-ui,pomerantsev/material-ui,allanalexandre/material-ui,hai-cea/material-ui,j...
src/internal/ClickAwayListener.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// ensure base DOM properties are already injected\nimport 'react-dom'\nimport DOMProperty from 'react-dom/lib/DOMProperty'\n\nexport { DOMProperty as _DOMProperty }\n\nexport const emailAttributes = {\n Properties: {\n 'xmlns': 0,\...
javascript
edit
0
2
mit
8f32e5fa618f6f8f3a5e10f16e3ae0caec9ee7de
chromakode/react-html-email
src/injectReactEmailAttributes.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport _request from 'request-promise'\n\nconst jar = _request.jar()\nconst request = _request.defaults({\n headers: {'Content-Type': 'application/json'},\n jar,\n})\n\nconst SCV='https://www.alza.sk/Services/EShopService.svc/'\n\nexp...
javascript
edit
0
1
unlicense
a09468d857652e884f68ff1d3cd2ac3f285a888b
vacuumlabs/eshop-api
src/alza.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nif (!process.env[\"CLOUDFRONT_DISTRIBUTION_ID\"]) {\n throw new Error(\"CLOUDFRONT_DISTRIBUTION_ID env var must be set\");\n}\n\nCLOUDFRONT_DISTRIBUTION_ID = process.env[\"CLOUDFRONT_DISTRIBUTION_ID\"]\n\nconst AWS = require(\"aws-sdk\...
javascript
edit
0
1
mit
9ca5be0f7190d634239c1f95764fafec04cfea1e
sanfrancesco/prerendercloud-lambda-edge
create-invalidation.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport Calendar from 'date-picker/calendar';\nimport injectTheme from '../fixtures/inject-theme';\nimport React from 'react';\nimport CalendarToolbar from 'date-picker/calendar-toolbar';\n\nconst TestUtils = React.addons.TestUtils;\n\nd...
javascript
edit
0
1
mit
bb732f577148b65fbd6ef2838412d09b091f41e4
mtsandeep/material-ui,ngbrown/material-ui,myfintech/material-ui,nathanmarks/material-ui,AndriusBil/material-ui,hwo411/material-ui,matthewoates/material-ui,mikedklein/material-ui,cherniavskii/material-ui,dsslimshaddy/material-ui,mui-org/material-ui,tomrosier/material-ui,manchesergit/material-ui,AndriusBil/material-ui,ja...
test/date-picker/calendar-spec.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/*!\n * Simple Layout Rendering for Pattern Lab\n *\n * Copyright (c) 2014 Dave Olsen, http://dmolsen.com\n * Licensed under the MIT license\n */\n\ntry {\n \n /* load pattern nav */\n var template = document.getElementById(\...
javascript
edit
0
0
mit
3d0e5dab6608fb576d7cdb686544cb22699e0bbd
pattern-lab/styleguidekit-assets-default,pattern-lab/styleguidekit-assets-default
src/js/layout.js
rejected_duplicate
Near-duplicate of sample 79135
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n$(document).ready(function () {\n let zone;\n let district;\n\n let getZone = $.get('/inputs/geojson/zone', function (data) {\n zone = data;\n });\n\n let getDistrict = $.get('/inputs/geojson/district', function (d...
javascript
edit
0
1
mit
e3f4faf1580eb6b5709d60839ec9532f7b4f84ef
architecture-building-systems/CityEnergyAnalyst,architecture-building-systems/CityEnergyAnalyst,architecture-building-systems/CityEnergyAnalyst
cea/interfaces/dashboard/plots/static/js/map_layout.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports = {\n presenceUrl: 'http://localhost:9870',\n backendUrl: 'http://backend.unichat.eu/api',\n};\n\n```\n\nApply this change: Use presence subdomain in frontend" }, { "role": "assistant", "content": "modul...
javascript
edit
0
0
mit
c3cb4c5a0691521e5d52c765e4a0a429a57bc7e7
dimkarakostas/unimeet,dimkarakostas/unimeet,dimkarakostas/unimeet,dimkarakostas/unimeet
frontend/src/components/config.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst util = require('../../lib/continuous-delivery/util');\n\ndescribe(\"Continuous delivery\", function() {\n describe(\"utils\", function() {\n describe(\"makeStringArray\", function() {\n it('works when list is ...
javascript
edit
0
1
mit
f54c1bcb311b9ebb5a15249cb459e6f0eae1990d
e2ebridge/e2e-bridge-cli
test/continuous-delivery/cd.utils.spec.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React from 'react'\nimport ReactDOM from 'react-dom'\n\nimport App from './App'\n\nReactDOM.render(<App />, document.getElementById('app'))\n```\n\nApply this change: Create a simple component without JSX" }, { "role": "a...
javascript
edit
0
1
mit
32f4f9bb11e4b65c3f01c66d37296e1d59b5386f
suranartnc/react-tutorial
src/client.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/*\n\nCopyright 2014 - 2016 Roland Bouman (<EMAIL>)\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n htt...
javascript
edit
0
2
apache-2.0
8174625542622f75e1c14ab2a13670970a5aa9fe
rpbouman/xavier,rpbouman/xavier
src/js/loadingindicator.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n\"use strict\";\n\nconst express = require(\"express\");\nconst bodyParser = require(\"body-parser\");\n\nconst gutibot = require(\"./gutiBot\");\n\nconst barelyBot = require(\"./barelyBot\").bot;\nconst defineBot = require(\"./defineBo...
javascript
edit
0
1
mit
1e1217a4a9503a467ae408d75dc4a3b852d395cc
awseward/gutibot,awseward/silly-slacker
src/app.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nlet timer = null\n\nfunction waitForRequests(mockedRequests) {\n return new Promise(resolve => {\n if (mockedRequests.length < 1) {\n resolve()\n return\n }\n\n timer = setInterval(() => {\n const notYetCalled =...
javascript
edit
0
2
mit
b9265172f4a875ed6b0edeadcf8f7e4e5953424b
cheshire137/spotty-features,cheshire137/spotty-features
test/helpers/wait-for-requests.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/*\n * Initializes the model/data layer.\n * @param app - The Scroll app instance\n */\nmodule.exports = function(app) {\n // load the model layer module\n var data = require(app.config.model.module),\n appModels = app.util.getJS...
javascript
edit
0
5
mit
ad227e4c4d82422d27ee011c743ee124ce74a3ce
ScrollEngine/core
controllers/data.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports = {\n server: server,\n client: client\n}\n\nvar escapeTextForBrowser = require('react/lib/escapeTextForBrowser')\n\nfunction server(html, data = {}, meta = {}) {\n var xState = escapeTextForBrowser(JSON.stringify(data...
javascript
edit
0
1
mit
69682704e80e094c01d16d5460c15730f517b8ab
michaelBenin/iso,scvnathan/iso,michaelBenin/iso,kwangkim/iso,redfieldstefan/iso,scvnathan/iso,goatslacker/iso,d-mon-/iso,kwangkim/iso
src/iso.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nangular.module('publicApp')\n .controller('LoginCtrl', ['$scope', '$http', '$location', 'UserService', function ($scope, $http, $location, $user) {\n $scope.user = {}\n $scope.userService = $user\n\n $scope.lo...
javascript
edit
0
2
isc
ad59b1428304debc54c536f1ca3c654070a946f7
zealord/gatewayd,zealord/gatewayd,xdv/gatewayd,whotooktwarden/gatewayd,Parkjeahwan/awegeeks,Parkjeahwan/awegeeks,crazyquark/gatewayd,xdv/gatewayd,crazyquark/gatewayd,whotooktwarden/gatewayd
public/app/scripts/controllers/login.js
rejected_duplicate
Near-duplicate of sample 73237
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport bootstrapper from 'public_site/bootstrapper.react';\nimport Raven from 'raven-js';\n\nlet sentryDSN = 'https://<EMAIL>/73366';\n\nRaven.config(sentryDSN, {release: '6a34f86c188811e698eb0242ac130001'}).install();\n\nbootstrapper.r...
javascript
edit
0
0
apache-2.0
3d0af3a74d5f5f2eb7c3dd9e479e6186455a49fe
CCI-MOC/GUI-Frontend,CCI-MOC/GUI-Frontend,CCI-MOC/GUI-Frontend,CCI-MOC/GUI-Frontend,CCI-MOC/GUI-Frontend
troposphere/static/js/public_site/main.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nvar http = require('http');\n\nvar assert = require('assertive');\n\nvar fetch = require('../lib/fetch');\n\ndescribe('fetch', function() {\n var server;\n\n before('start echo server', function(done) {\n server = ...
javascript
edit
0
1
bsd-3-clause
93d05fed43f694a18c50dd3a0cf9207c2bfda496
jkrems/srv-gofer
test/fetch.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst getMonth = function month(string) {\n let date = new Date(string);\n let index = date.getMonth();\n let months = [\"January\",\n \"February\",\n \"March\",\n \"April\",\n \"May\",\n \"June\",\n \"July\",\n \"August\",\n ...
javascript
edit
0
1
mit
4a51e673d1b288d5f648a3bad30434548ee83759
NoCodingGenius/phase-2-challenge,NoCodingGenius/phase-2-challenge
part-1/functions.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React from 'react';\nimport WeatherIcons from '../weather_icons/WeatherIcons'\n\nconst SevenHour = ({hourlyForecast}) => {\n if(!hourlyForecast){\n return(\n <div></div>\n )\n }\n\n const icons = new WeatherIcons();...
javascript
edit
0
2
mit
dbc5d7bf67c690eb095d15d21097350409f454df
thatPamIAm/weathrly,thatPamIAm/weathrly
lib/components/SevenHour.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar express = require('express');\nvar router = express.Router();\n\n/* GET home page. */\nrouter.post('/', function(req, res) {\n\t//var param = JSON.parse(req.body.payload);\n\tconsole.log(req.body);\n\n\tres.send('complete');\n});\n\...
javascript
edit
0
2
mit
b0a7212e337b7dfe94f05ca3cbbb89b66caac1ef
PontoServerSide/LiveUpdater
GitEventChecker/routes/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n\nimport winston from \"winston\";\nimport _ from \"underscore\";\n\nimport Broadcast from \"./classes/Broadcast\";\nimport ENV from \"./env\";\nimport SK from \"./sk\";\n\nconst broadcasts = {};\n\nwinston.cli();\nwinston.info(\"Pipela...
javascript
edit
0
1
apache-2.0
86e73f085294e05273f731c45a7a8fd0c635f771
streamplace/streamplace,streamplace/streamplace,streamkitchen/streamkitchen,streamkitchen/streamkitchen,streamplace/streamplace,streamkitchen/streamkitchen
pipeland/src/app.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport test from 'tape';\nimport computedStyles from '../src/';\n\ndocument.body.innerHTML += `\n <style>\n div {\n font-family: sans-serif;\n }\n </style>\n <div id=\"node\" style=\"color: rgb(255, 0, 0);\"></...
javascript
edit
0
1
mit
3ae8d288e323753a5db632c5c428c4e092c092a2
Hypercubed/computed-styles
test/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar arrayUnion = require('array-union');\n\nmodule.exports = function(el, targets, states) {\n var targetNames = [];\n var state;\n var nodes;\n var elTargetName;\n\n // first we want to find all targets and their names\n for(var ...
javascript
edit
0
7
mit
088dbc8f7ac9f350c346cd9fc476100922c2105b
Jam3/f1-dom
lib/getTargetsFromStates.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports = {\n extends: ['eslint:recommended', 'prettier'],\n parser: 'babel-eslint',\n plugins: ['import', 'prettier'],\n env: {\n node: true,\n es6: true,\n },\n root: true,\n rules: {\n ...
javascript
edit
0
0
mit
5c5367189c1a2e4be83f79bddc3756dfbe47e8b0
skovhus/jest-codemods,skovhus/jest-codemods,skovhus/jest-codemods
.eslintrc.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst os = require('os');\n\nmodule.exports = function getNetworkIp() {\n let interfaces = os.networkInterfaces();\n let addresses = [];\n\n for (let k in interfaces) {\n for (let k2 in interfaces[k]) {\n let ad...
javascript
edit
0
6
mit
2c5c01f86ca6c786cddff0b34f338672fa3a518c
isleofcode/corber,isleofcode/corber
lib/utils/get-network-ip.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar db = require('./db');\n\ndb.knex.schema.hasTable('sessions').then(function(exists) {\n if (!exists) {\n db.knex.schema.createTable('sessions', function(session) {\n session.increments('id').primary();\n session.timesta...
javascript
edit
0
2
mit
1cfb0546f7bf9cdeb7046091ac94952ecf7e42ac
chkakaja/sentimize,chkakaja/sentimize,formidable-coffee/masterfully,formidable-coffee/masterfully
server/models/SessionModel.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nPackage.describe({\n name: 'blazer:react',\n version: '0.2.1',\n summary: \"Blaze with React: Create stateful components with methods and mixins like in Facebook's React\",\n git: 'https://github.com/xamfoo/blazer-react',\n documen...
javascript
edit
0
1
mit
18a21dd261bdae95282e97ae9ee2abb3449bfe1d
xamfoo/blazer-react,xamfoo/blazer-react
package/package.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst {app, BrowserWindow, ipcMain} = require('electron')\nconst path = require('path')\nconst url = require('url')\n\nconst MEDIA_ERR_SRC_NOT_SUPPORTED = 4\n\nlet window\n\napp.once('ready', () => {\n window = new BrowserWindow({\n ...
javascript
edit
0
4
mit
787313001927ec8f3a0cff490c1fa861612ad100
bpasero/electron,brenca/electron,miniak/electron,shiftkey/electron,miniak/electron,Floato/electron,rreimann/electron,seanchas116/electron,seanchas116/electron,rajatsingla28/electron,bpasero/electron,renaesop/electron,gerhardberger/electron,renaesop/electron,rajatsingla28/electron,the-ress/electron,bpasero/electron,elec...
spec/fixtures/no-proprietary-codecs.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// website/static/js/growlBox.js\n'use strict';\nvar $ = require('jquery');\nrequire('bootstrap.growl');\n\n/**\n* Show a growl-style notification for messages. Defaults to an error type.\n* @param {String} title Shows in bold at the to...
javascript
edit
0
1
apache-2.0
c2ac4dd02a0265d8afe13689dcbe4e963324476e
caseyrollins/osf.io,pattisdr/osf.io,binoculars/osf.io,cldershem/osf.io,chennan47/osf.io,GageGaskins/osf.io,SSJohns/osf.io,wearpants/osf.io,KAsante95/osf.io,lyndsysimon/osf.io,TomHeatwole/osf.io,jmcarp/osf.io,samchrisinger/osf.io,pattisdr/osf.io,RomanZWang/osf.io,njantrania/osf.io,jmcarp/osf.io,jeffreyliu3230/osf.io,Zob...
website/static/js/growlBox.es6.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar path = require('path')\n\nmodule.exports = function(config) {\n config.set({\n singleRun: true,\n\n files: [\n './node_modules/babel-polyfill/browser.js',\n 'test/index.js',\n 'test/eventing.js'\n ],\n\n ...
javascript
edit
0
1
mit
7e356d8f7685cfe9d5d350d1755f638275d78832
brandonpayton/stream-dom,brandonpayton/stream-dom
packages/stream-dom/karma.conf.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n(function () {\r\n var updateUrl = window.IVOAZ_CONTENT_EDITABLE_UPDATE_URL;\r\n var current, timeout;\r\n var htmlTags = document.getElementsByTagName('html');\r\n\r\n if (0 === htmlTags.length) {\r\n return;\r\n ...
javascript
edit
0
6
mit
74fcb8b349e24823bda5f5a32ad8bc925e35811a
ivoaz/content-editable-bundle,ivoaz/content-editable-bundle,ivoaz/content-editable-bundle
Resources/public/js/default-editor.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n * Spinner component.\n *\n * Site Kit by Google, Copyright 2021 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 ...
javascript
edit
0
2
apache-2.0
693e13c9d9c115e6650a5d5e2314845824206f0b
google/site-kit-wp,google/site-kit-wp,google/site-kit-wp,google/site-kit-wp
assets/js/components/Spinner.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/* eslint-disable max-len */\nexports.extensions = {\n supported: [\n { icon: 'dist', extensions: ['dist', 'out'] },\n { icon: 'git', extensions: ['git', 'github'] },\n { icon: 'node', extensions: ['node_modules'] },\n { ic...
javascript
edit
0
0
mit
236efbb73ed384f3f753c4da8ec82b531f643e9e
JimiC/vscode-icons,robertohuertasm/vscode-icons,JimiC/vscode-icons,jens1o/vscode-icons,olzaragoza/vscode-icons,vscode-icons/vscode-icons,vscode-icons/vscode-icons
src/build/supportedFolders.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports = {\n 'root': true,\n\n 'parser': 'babel-eslint',\n\n 'extends': [\n 'airbnb',\n 'plugin:import/errors'\n ],\n\n 'rules': {\n 'space-before-function-paren': 0,\n 'comma-dangle': [2, 'never'],\n 'one-va...
javascript
edit
0
0
mit
f46597e1f504ad59fc899b219cf3844a4af84dc9
NiGhTTraX/react-test-buffet,NiGhTTraX/react-test-buffet,NiGhTTraX/react-test-buffet
.eslintrc.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nfunction initProgressMarkers() {\n var $formPage = $('.FormPage');\n var $progressMarkers = $('.Answer').map(function() {\n var $progressMarker = $(\"<div class='ProgressMarker'/>\");\n $progressMarker.addClass( $(this).hasClass...
javascript
edit
0
4
mit
9016956f583975a5fbcf32e423602191efce6921
Oblosys/webviews,Oblosys/webviews
scr/js/BlijVanIT.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict'\n\nconst { env, platform } = process\n\nmodule.exports = {\n extends: [\n 'eslint:recommended',\n 'eslint-config-airbnb-base',\n 'plugin:prettier/recommended',\n ],\n\n env: {\n jest: true,\n },\n\n parserO...
javascript
edit
0
0
mit
67d4d6e5b31b257ee38b05ed36b0d3af50c8e30b
dherault/serverless-offline,dherault/serverless-offline,dherault/serverless-offline,dherault/serverless-offline,dherault/serverless-offline,dherault/serverless-offline,dherault/serverless-offline
.eslintrc.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @providesModule ViewContext\n * @flow\n * @fo...
javascript
edit
null
null
bsd-3-clause
4a814d1370329ac75a6fb0924c73c48b3d3754fb
hoangpham95/react-native,javache/react-native,janicduplessis/react-native,arthuralee/react-native,hammerandchisel/react-native,hammerandchisel/react-native,pandiaraj44/react-native,janicduplessis/react-native,myntra/react-native,arthuralee/react-native,javache/react-native,javache/react-native,facebook/react-native,myn...
Libraries/Components/View/ViewContext.js
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar http = require('http');\nvar util = require('./util');\nvar counter = 0;\nvar port = 1337;\n\nvar greeting = function (req, res) {\n var answer = util.helloWorld();\n counter = counter + 1;\n res.writeHead(200, {'Content-Ty...
javascript
edit
0
3
mit
d8fab139b53f4ede98c3d8e17e5e4fb420e43efc
fhinkel/SimpleChatServer,fhinkel/SimpleChatServer
js/server.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// This is a manifest file that'll be compiled into application.js, which will include all the files\n// listed below.\n//\n// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,\n// or a...
javascript
edit
0
1
mit
99e7ca4193f39b40da667e2aa49e58063c781174
conf/fork-and-pork,conf/fork-and-pork,conf/fork-and-pork
app/assets/javascripts/application.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports = {\n normalizeEntityName: function() {},\n\n afterInstall: function(options) {\n // We assume that handlebars, ember, and jquery already exist\n return this.addBowerPackagesToProject([\n {\n // Antisc...
javascript
edit
0
1
bsd-3-clause
87a986ae375e5c44edb4b7c8a2653e21d5f60310
artych/ember-table,winweb/ember-table,morten-holm/ember-table,kaikoehn/ember-table,ilovezy/ember-table,winweb/ember-table,hedgeserv/ember-table,Gaurav0/ember-table,fuse-mars/ember-table,artych/ember-table,morten-holm/ember-table,hedgeserv/ember-table,kaikoehn/ember-table,remerge/ember-table,remerge/ember-table,fuse-mar...
blueprints/ember-table/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar config;\n\nconfig = require('../../lib/protractor.conf.js').config;\n\nconfig.capabilities = {\n browserName: 'chrome'\n};\n\nconfig.framework = 'mocha';\n\nconfig.specs = [\n '../generalStepDefs/support/initGlobals.js',\n '../**...
javascript
edit
0
0
mit
878c54c3a55d07e83a49b4cac5c6b29cbdc42f43
ReadyTalk/cukefarm,ReadyTalk/cukefarm,thompsnm/cukefarm,thompsnm/cukefarm
spec/conf/protractor.spec.conf.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar fs = require('fs'),\n\tpath = require('path'),\n\ttraceurPath = require.resolve('traceur'),\n\tmakeNode = require(\"../node/make_node\"),\n\tminify = require(\"../graph/minify\");\n\t\nmodule.exports = function(bundle){\n\tvar lastT...
javascript
edit
0
1
mit
e6d145b1fbb202bf289f47e6ddab676b35a34b0a
stealjs/steal-tools,stealjs/steal-tools,mcanthony/steal-tools,mcanthony/steal-tools
lib/bundle/add_traceur_runtime.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n(function ($) {\n\n var init = function ($element, options) {\n $element.select2(options);\n };\n\n var initHeavy = function ($element, options) {\n var settings = $.extend({\n ajax: {\n ...
javascript
edit
0
3
apache-2.0
a98a30a2bc39ce7776f139c61f78c96fc9b3cc39
DMOJ/django-select2,DMOJ/django-select2,DMOJ/django-select2
django_select2/static/django_select2/django_select2.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport ActiveModelAdapter from 'active-model-adapter';\nimport ActiveModelSerializer from 'active-model-adapter/active-model-serializer';\n\nexport default {\n name: 'active-model-adapter',\n initialize: function(applicationOrRegistry...
javascript
edit
0
2
mit
cde97458995f41f2c57e5e35d2343a968ca08812
bmac/active-model-adapter,bmac/active-model-adapter,bmac/active-model-adapter,ember-data/active-model-adapter,bmac/active-model-adapter,ember-data/active-model-adapter,ember-data/active-model-adapter
app/instance-initializers/active-model-adapter.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport JSZip from \"jszip\";\nimport musicMetadataBrowser from \"music-metadata-browser\";\nimport WebampLazy from \"./webampLazy\";\n\nclass Winamp extends WebampLazy {\n constructor(options) {\n super({\n ...options,\n r...
javascript
edit
0
1
mit
324fc29ca6c94fa54091608323842ba0604e0b4c
captbaritone/winamp2-js,captbaritone/winamp2-js,captbaritone/winamp2-js
js/webamp.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nconst apiEngine = require('../index');\n\n// eslint-disable-next-line fp/no-mutation\nError.stackTraceLimit = 100;\n\nconst startServer = async function () {\n try {\n const { options, servers, exit } = await apiEng...
javascript
edit
0
2
apache-2.0
6a9ebda04f8553c45b4a96870e6d560e021a70f9
autoserver-org/autoserver,autoserver-org/autoserver
examples/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// Load modules\n\nvar Fs = require('fs');\nvar Path = require('path');\nvar HeapDump = require('heapdump');\nvar Hoek = require('hoek');\n\n\n// Declare internals\n\nvar internals = {\n initialized: false,\n defaults: {\n ...
javascript
edit
0
3
bsd-3-clause
32925dea3c7a0f36fe6d1cea166cdef8e38fe09d
cjihrig/poop,lloydbenson/poop,andreftavares/poop
lib/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar targetPages = [\"https://www.youtube.com/watch*\"];\nvar settings = {};\n\nfunction openOriginal(info, tab) {\n browser.tabs.create({\n url: info.linkUrl\n });\n}\n\nfunction restoreSettings() {\n function setSettings(data) {\...
javascript
edit
0
3
mit
b213b52e138f2535cf986d2f54225d55760968a3
vayan/external-video,vayan/external-video,vayan/external-video,vayan/external-video
external-video.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n * CLDR JavaScript Library v@VERSION\n * http://jquery.com/\n *\n * Includes Sizzle.js\n * http://sizzlejs.com/\n *\n * Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors\n * Released under the MIT license\n * http...
javascript
edit
null
null
mit
815f73f4f92e1ba2a0dcb0f20d652b17182fcf24
wwwouter/cldrjs,wwwouter/cldrjs,wwwouter/cldrjs,rxaviers/cldrjs,rxaviers/cldrjs
src/build/intro.js
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar gulp = require('gulp');\nvar babel = require('gulp-babel');\nvar jsdoc = require(\"gulp-jsdoc\");\n\ngulp.task(\"babel\", function() {\n return gulp.src('src/**/*.js')\n .pipe(babel())\n .pipe(gulp.dest('lib'));\n});\n\ngulp....
javascript
edit
0
1
mit
695d88acd182a48a8c9c82e43673335e444f3db9
Raynes/udder
gulpfile.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n*\n* SearchInput\n*\n*/\n\nimport React from 'react';\nimport FontAwesome from 'react-fontawesome';\nimport { Button, Form, FormGroup, FormControl } from 'react-bootstrap';\nimport { withClientState } from '../../components/Apollo/...
javascript
edit
0
3
mit
dcce53c84e78a22403e88e5a0f2bb2868b474a9b
clinwiki-org/cw-app,clinwiki-org/cw-app,clinwiki-org/clinwiki,clinwiki-org/clinwiki,clinwiki-org/cw-app,clinwiki-org/cw-app,clinwiki-org/clinwiki,clinwiki-org/clinwiki,clinwiki-org/clinwiki
app/components/SearchInput/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n$(document).ready(function() {\n var editor = new Quill('#editor', {\n modules: {\n 'toolbar': { container: '#toolbar' },\n 'image-tooltip': true,\n 'link-tooltip': true\n },\n theme: 'snow'\n });\n\n $('.quil...
javascript
edit
0
2
bsd-3-clause
796833af9264b1538a3cb3e4bc947f98e4fc2d91
sferoze/quilljs,sferoze/quilljs,quilljs/quill,tim-mc/quill,willrowe/quill,sferoze/quilljs,quilljs/quill,tim-mc/quill,voxmedia/quill,sferoze/quilljs,willrowe/quill,voxmedia/quill,voxmedia/quill,quilljs/quill,willrowe/quill
js/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/*\n * moon.ImageGrid extends enyo.ImageGrid to add moonraker specific confiuguration, styling, decorators and focus-state management\n * \n * @author: Surya Vakkalanka\n * @date: January 2013\n * \n*/\n\nenyo.kind(\n {\n name...
javascript
edit
0
0
apache-2.0
970de164731bb329d24cf310af4f4b9dc7a7ed69
mcanthony/moonstone,enyojs/moonstone,mcanthony/moonstone,mcanthony/moonstone
source/GridList.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst wd = require('wd');\nconst Promise = require('bluebird');\nconst browser = require('./browser');\nconst normalise = require('./normalise-logs');\n\nfunction test (opts) {\n return function () {\n return Promise.using(browser(o...
javascript
edit
0
3
mit
95a1b5a48ac95f6838eeff89efc1490aa978ca74
lennym/timeliner,newsuk/timeliner
lib/page.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/*jslint onevar: false, eqeqeq: false*/\n/*global require*/\nif (typeof require != \"undefined\") {\n var sinon = require(\"sinon\");\n\n var buster = {\n assert: require(\"buster-assert\"),\n testRunner: require(\"b...
javascript
edit
0
1
bsd-3-clause
b982c0c05584434fb22f8db2d5bcb903a1aa8d03
busterjs/buster-sinon,busterjs/referee-sinon
lib/sinon-buster.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nconst stringUtil = require('ember-cli-string-utils');\nconst testInfo = require('ember-cli-test-info');\n\nconst useTestFrameworkDetector = require('../test-framework-detector');\n\nmodule.exports = useTestFrameworkDete...
javascript
edit
0
1
mit
06e86935339148ecc18d91fd76484d3b3a90100f
knownasilya/ember.js,elwayman02/ember.js,jaswilli/ember.js,csantero/ember.js,stefanpenner/ember.js,twokul/ember.js,kennethdavidbuck/ember.js,xiujunma/ember.js,Gaurav0/ember.js,tildeio/ember.js,kennethdavidbuck/ember.js,mfeckie/ember.js,Gaurav0/ember.js,qaiken/ember.js,asakusuma/ember.js,kanongil/ember.js,xiujunma/ember...
blueprints/controller-test/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict'\n\nconst paths = require('./config/paths.json')\nconst gulp = require('gulp')\nconst cssnano = require('gulp-cssnano')\nconst del = require('del')\nconst rename = require('gulp-rename')\nconst sass = require('gulp-sass')\n\...
javascript
edit
0
1
mit
6d0df03ae599e6bae9d9b914c35fdbba7267b86d
alphagov/govuk_elements,alphagov/govuk_elements,alphagov/govuk_elements,alphagov/govuk_elements
gulpfile.js
rejected_duplicate
Near-duplicate of sample 73778
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\ndefine(function() {\n\n 'use strict';\n \n return function(resource) {\n var dv = new DataView(resource.data.buffer, resource.data.byteOffset, resource.data.byteLength);\n var count = dv.getInt16(0, false);\n if (count < 0) ...
javascript
edit
0
3
mit
610943ed968a38093f3272e42c944e0c59770d9f
radishengine/drowsy,radishengine/drowsy
mac/resources/open_MBAR.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nModule.register(\"jokes\", {\n\n defaults:{\n baseUrl: \"http://tambal.azurewebsites.net/joke/random\"\n },\n\n getHeader: function(){\n return this.data.header\n },\n\n getTranslations: function(){\n return false\n },\n...
javascript
edit
0
2
mit
89ea1472cc9d351723980f9cb5c5ed879651e7a0
OniDotun123/MirrorMirror,OniDotun123/MirrorMirror,OniDotun123/MirrorMirror
modules/jokes/jokes.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n#!/usr/bin/env node\nvar spawn = require('child_process').spawn;\n\nvar args = process.argv.slice(2);\nvar bin = require('./');\n\nif (bin === null) {\n throw new Error('Platform not supported.');\n}\n\nvar nagome = spawn(bin, args, { ...
javascript
edit
0
1
mit
7c6f5a1446783236ed07d215bdd897f5d2d5abbf
y0za/nagome-bin
cli.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n#!/usr/bin/env node\n//\n// Takes a text file and calls the AWS Polly API\n// to convert it to an audio file.\n//\n'use strict';\n\nconst fs = require('fs-extra');\nconst textchunk = require('textchunk');\nconst { checkUsage, compress...
javascript
edit
0
1
apache-2.0
dcfdae11d9aea228f1f58cc40a1e2f4bd58247a2
eheikes/aws-tts
tts.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nif (_isWindows() && mongo_hacker_config['windows_warning']) {\n print(\"\\nMongoDB Shell Enhancements for Hackers does not support color highlighting in \");\n print(\"the default Windows Command Prompt. If you are using an altern...
javascript
edit
0
0
mit
23cc796785c0a448a25b7c2bdbc291fe54d048f2
TylerBrock/mongo-hacker,stennie/mongo-hacker
base.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nPackage.describe({\n // XXX We currently hard-code the \"launch-screen\" package in the\n // build tool. If this package is in your app, we turn off the\n // default splash screen loading behavior (this packages hides it\n // explic...
javascript
edit
0
1
mit
51a0263d4b247dadf3716b362d5cc52a9d171ab1
chasertech/meteor,iman-mafi/meteor,jenalgit/meteor,rozzzly/meteor,D1no/meteor,deanius/meteor,sdeveloper/meteor,framewr/meteor,judsonbsilva/meteor,sclausen/meteor,sitexa/meteor,yonas/meteor-freebsd,yinhe007/meteor,l0rd0fwar/meteor,Paulyoufu/meteor-1,mubassirhayat/meteor,ashwathgovind/meteor,luohuazju/meteor,D1no/meteor,...
packages/launch-screen/package.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport 'isomorphic-fetch'\n\n/**\n * Fetch a list of nodes and their relation types\n */\nexport function fetchNodeList() {\n return fetch('//localhost:8000/admin/chemtrails_permissions/accessrule/nodelist/').then((response) => {\n ...
javascript
edit
0
2
mit
cc79cbc7e09587596bec2bda5bb4ef954a2f6137
inonit/django-chemtrails,inonit/django-chemtrails,inonit/django-chemtrails
javascript/graph-widget/src/webapi.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nvar assert = require('assert')\nvar isValidGeojson = require('geojson-is-valid')\nvar util = require('util')\n\nclass GeojsonFeatureFilterer {\n\n constructor(config) {\n this.config = config\n }\...
javascript
edit
0
4
mit
e8f0ebed0d7463e76081f30c96577875ae839750
mediasuitenz/mappy,mediasuitenz/mappy
lib/geojsonFeatureFilterer.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar request = require('request');\n\nvar config = require('../config.json');\nvar log = require('./log.js');\n\nfunction post() {\n var url = 'http://127.0.0.1:' + config.ACTIVITY_SERVER.PORT + '/blink';\n request.post(url, function(e...
javascript
edit
0
2
mit
fca7bd60e2b5ffa0a2193788cf0967832756428e
C-D-Lewis/news-headlines,C-D-Lewis/news-headlines,C-D-Lewis/news-headlines,C-D-Lewis/news-headlines
backend/modules/activity_server_client.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nfunction CollisionDetector() {\n};\n\nCollisionDetector.prototype.check = function(object1, object2){\n let all = object2.border\n object1.border.forEach(function(element1){\n\tall.push(element1);\n })\n\n function arrHasDup...
javascript
edit
0
4
mit
7d6223ef51d6e4f5135b59cfd84237a1c941faba
theonlyrao/1942,theonlyrao/1942
lib/javascripts/collision_detector.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n(function () {\n 'use strict';\n\n define(\n [\n 'chai',\n 'sinon',\n 'knockout',\n 'config/settings'\n ],\n function (chai, sinon, ko, settings) {\n var ...
javascript
edit
0
1
mit
89e43cc5e5ae9cb13fda3ed5074c58bc574a5e3d
rwahs/research-frontend,rwahs/research-frontend
test/spec/config/settings.spec.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/** @ignore */\nconst Job = require('./Job');\n/** @ignore */\nconst request = require('request');\n\nclass GithubChangeJob extends Job {\n\n /**\n * This method determines when the job should be execcuted.\n * \n * @para...
javascript
edit
0
4
mit
9734f7fe2e6f28eeb0c32f9f8b4d38d8e1dec6f4
Senither/AvaIre
app/bot/jobs/GithubChangesJob.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\ndescribe('IMS service', function(){\n var $httpBackend;\n\n var IMS;\n\n beforeEach(module('Marvin'));\n\n beforeEach(inject(function(_IMS_, _$httpBackend_){\n $httpBackend = _$httpBackend_;\n IMS = _IMS_;\n ...
javascript
edit
0
1
mit
d28ba071c21d26b28a84258522d6dcc0e87a2084
blinkboxbooks/marvin-frontend.js
app/services/ims-service_test.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports = function() {\n $(function() {\n\n $(document).on(\"click\", '#update-subscription-toggler', function() {\n $(\"#cancel-subscription\").hide()\n $(\"#payment-form\").toggle()\n return false;\n })\n\...
javascript
edit
0
1
isc
25b0497ecb1b6c6085645a5998035efd3330ec30
nexdrew/newww,nexdrew/newww,kemitchell/newww,kemitchell/newww,watilde/newww,nexdrew/newww,watilde/newww,kemitchell/newww,watilde/newww
assets/scripts/billing-cancel.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// Official form view\n\n'use strict';\n\nvar revisionView = require('./business-process-revision');\n\nexports._parent = revisionView;\n\nexports['tab-business-process-processing'] = { class: { active: true } };\nexports['tab-content']...
javascript
edit
0
1
mit
efa871818f97af25642f35620cdcafe68e49fe5f
egovernment/eregistrations,egovernment/eregistrations,egovernment/eregistrations
view/business-process-revision-form.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nclass MCWorkflowFiltersComponentController {\n /*@ngInject*/\n constructor() {\n\n }\n}\n\nangular.module('materialscommons').component('mcWorkflowFilters', {\n templateUrl: 'app/project/experiments/experiment/components/wor...
javascript
edit
0
1
mit
d77edbee8740032d11854d5b7bf5e27ab011c745
materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org
website/mcapp.projects/src/app/project/experiments/experiment/components/workflow/mc-workflow-filters.component.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport R from 'ramda';\nimport React from 'react';\nimport style from './styles.css';\nimport ComboBox from '../../../../../../../../../components/common/ComboBox/ComboBox';\n\nconst equalityOps = { '$eq': '=', '$ne': '!=' };\nconst com...
javascript
edit
0
8
mit
f39bd667a1a5f9b9583ab57bf8f8d4a821733857
Soluto/tweek,Soluto/tweek,Soluto/tweek,Soluto/tweek,Soluto/tweek,Soluto/tweek
BackOffice/modules/pages/keys/components/KeyPage/KeyEditPage/KeyRulesEditor/JPadEditor/Matcher/Properties/Operator.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n\nvar FormHelper = {\n \n // TODO: Make this more generic, because it \n // will be reused. \n hideShowConfigurationTitle: function() {\n if ($('configuration_title').visible()) {\n $('configuration_title').hide();\n $(...
javascript
edit
0
3
mit
0428557950651d415d05246b39d865d1c2f1fbbd
mleung/feather,mleung/feather,ivey/merbivore-blog,mleung/feather,ivey/merbivore-blog,ivey/merbivore-blog
public/javascripts/admin.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React from 'react'\nimport { shallow } from 'enzyme'\nimport { shallowToJson } from 'enzyme-to-json'\nimport Search from './Search'\nimport ShowCard from './ShowCard'\nimport preload from '../public/data.json'\n\n\ntest('Search s...
javascript
edit
0
1
mit
b2df845261f189bbe7ab32422c8c0eb808eae4c9
galaxode/ubiquitous-eureka,galaxode/ubiquitous-eureka
js/Search.spec.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar amqp = require('amqplib');\nvar winston = require('winston');\n\nvar amqpUrl, amqpConnection, intervalID;\n\nfunction connect(_amqpUrl) {\n amqpUrl = amqpUrl || _amqpUrl || process.env.AMQP_URL || 'amqp://localhost';\n\n return am...
javascript
edit
0
4
mit
8b914265d95058146d19bf8bfdd0b6680ab0a0d7
dial-once/node-bunnymq
lib/amqp-layer.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React, { Component } from 'react';\nimport { View, Alert } from 'react-native';\nimport { Text, ListItem, Thumbnail, Body, Left, Form, Content, Button } from 'native-base';\nimport paymentInfoScreenStyle from './paymentInfoScreen...
javascript
edit
0
1
mit
91eb588486edfa15992b9ca90dbd00622fc7045d
justarrived/p2p-client,justarrived/p2p-client,justarrived/p2p-client,justarrived/p2p-client
js/components/developer/payment-info-screen/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n$(function() {\n getEventDetails();\n populatePrefilled('interests');\n populatePrefilled('skills');\n});\n\n/**\n * Gets event details from database to put in form and allow edits\n */\nasync function getEventDetails() {\n const qu...
javascript
edit
0
1
apache-2.0
8959f6ad3bc8267bc5d80b75ddff01b6a8aa3507
googleinterns/step188-2020,googleinterns/step188-2020,googleinterns/step188-2020
project/src/main/webapp/event-edit.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n\"use strict\";\nconst github = require(\"simple-github\");\nconst auth = require(\"./auth\");\n\nclass GithubAPI {\n constructor(pr, options) {\n this.pr = pr;\n this.options = options || {};\n }\n \n requestA...
javascript
edit
0
4
apache-2.0
d5a2883789fad4d9fdc203a50f7be5bdc790b229
tobie/pr-preview
lib/github-api.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nclass PassEvent {\n\tstatic type = 'PassEvent';\n\n\tconstructor({in: input, out: output}) {\n\t\tthis.in = input;\n\t\tthis.out = output;\n\t}\n}\n\nmodule.exports = PassEvent;\n\n```\n\nApply this change: Remove unneeded type property...
javascript
edit
0
1
mit
588bacc23e850640f47cfa9ee04e38e815951a01
tsg-ut/mnemo,tsg-ut/mnemo
lib/pass-event.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\n// MODULES //\n\nvar baseDist = require( './base.dist.js' );\nvar baseRandom = require( './base.random.js' );\nvar baseSpecial = require( './base.special.js' );\nvar baseTools = require( './base.tools.js' );\nvar baseUt...
javascript
edit
0
1
apache-2.0
3fd2366f1ed9fc2f7eec6092d56133cb9ca223f6
stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib
lib/node_modules/@stdlib/namespace/lib/math/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nApplication.Controllers.controller('login',\n [\"$scope\", \"$state\", \"User\", \"alertService\", \"mcapi\", \"Nav\", \"pubsub\", \"model.projects\", \"projectFiles\",\n function ($scope, $state, User, alertService, mcapi, Na...
javascript
edit
0
1
mit
dc9a6560ea97dd428bf2f0454da5091ae6de46fa
materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org
website/app/application/core/login/login-controller.js
rejected_duplicate
Near-duplicate of sample 75340
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React, { Component, PropTypes } from 'react';\n\nclass CheckList extends Component {\n checkInputKeyPress(evt) {\n if (evt.key === 'Enter') {\n this.props.taskCallbacks.add(this.props.cardId, evt.target.value);\n ev...
javascript
edit
0
2
mit
fc6047d320f626b36af564136547c1a8b7d453b8
adg29/react-kanban,adg29/react-kanban
app/Checklist.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nwindow.registerMessageListener = null;\nwindow.sendMessage = null;\n(() => {\n\tlet queue = [];\n\tlet bridgeInstance = null;\n\tconsole.log(window.chrome.webview.hostObjects);\n\tconsole.log(window.chrome.webview.hostObjects.u3bridge)...
javascript
edit
0
3
mit
43e1069a059330ca7acbfd2186aac1f9a952d9d4
blakeohare/crayon,blakeohare/crayon,blakeohare/crayon,blakeohare/crayon,blakeohare/crayon,blakeohare/crayon,blakeohare/crayon,blakeohare/crayon
Compiler/U3Windows/u3/u3windows.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport path from 'path'\nimport colors from 'colors/safe'\nimport server from '../server'\nimport logger from '../helpers/logger'\n\nconst { red, green, cyan, bold } = colors\n\nexport default async ({ entry, port, host, manual }) => {\...
javascript
edit
0
4
mit
8b1da170ee509d152def6815ebbe65e7bf11727c
neist/pleasant
lib/cli/setup.js
rejected_duplicate
Near-duplicate of sample 84623
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar player = {\n init: function () {\n this.hide();\n this.initPlayer();\n this.initPlayerToggle();\n },\n initPlayerToggle: function() {\n },\n initPlayer: function() {\n var that = this;\n $('.row a').on('tap', fun...
javascript
edit
0
2
mit
bbe3f922aca57cf8e719d5eace62ec22daa281c6
caedocha/danta,caedocha/danta,caedocha/danta
public/js/player.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar sys = require(\"sys\");\n\nfunction log(what) {\n sys.log(\"[ext:basic] \" + what);\n};\n\nexports.init_extension = function (options, context) {\n log(\"initializing.\");\n\n context.dispatch.add_handler({ \n on_QUIT: functio...
javascript
edit
0
1
mit
e5af701eee65a8c1927bdf0ad87160321de787a4
fictorial/nodered
lib/ext/basic.js
accepted
null
true