messages
listlengths
2
2
language
stringclasses
8 values
prompt_type
stringclasses
2 values
lint_errors
int64
0
129
⌀
cyclomatic_complexity
int64
0
32
⌀
license
stringclasses
7 values
commit
stringlengths
40
40
repos
stringlengths
5
116k
new_file
stringlengths
4
220
status
stringclasses
6 values
error
stringlengths
26
74
⌀
is_valid_syntax
bool
2 classes
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar compression = require(\"compression\");\nvar express = require(\"express\");\n\n// Initialize Express\nvar app = express();\n\n// Treat \"/foo\" and \"/Foo\" as different URLs\napp.set(\"case sensitive routing\", true);\n\n// ...
javascript
edit
0
1
mit
a402876e519f1b83b662897dec2a24811634c6de
stevecochrane/express-web-app-example,stevecochrane/express-web-app-example
express-web-app-example.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React from 'react'\nimport PropTypes from 'prop-types'\nimport styled from 'styled-components'\nimport Search from './search'\nimport Results from './results'\n\nconst Container = styled.div`\n line-height: 120%;\n margin: 10px...
javascript
edit
0
1
mit
98729196c61cddeb0634ac30216665d54d3a5b03
iredchuk/wiki-langlinks-web,iredchuk/wiki-langlinks-web
src/components/app.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport initialState from './initialState';\nimport * as types from '../constants/actionTypes';\nimport { setDotsFromStartingDots } from '../utils/categoryStarter';\n\nexport default (state = initialState.character.backgrounds, action) =...
javascript
edit
0
5
mit
12a915699f2f9a85486b0b7bd1923b6ff2860503
TrueWill/embracer,TrueWill/embracer
src/reducers/backgroundsReducer.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst puppeteer = require(\"puppeteer-core\");\n\nasync function main () {\n const browser = await puppeteer.launch({\n headless: false,\n executablePath: \"/Applications/Google\\ Chrome.app/Contents/MacOS/Google\\ Chrome\",\n ...
javascript
edit
0
1
apache-2.0
7b939afa5e575fc3d190671179e9796c1666801a
feihong/chinese-music-processors,feihong/chinese-music-processors
streetvoice/src/start-puppeteer.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// / <reference types=\"Cypress\" />\n\ndescribe('The Locations Hub', () => {\n before(() => {\n cy.visit('/#/locations');\n });\n\n it('successfully loads', () => {\n cy.get('header');\n cy.get('main');\n cy.get('footer'...
javascript
edit
0
1
bsd-3-clause
afb6c033f6a12033e0ccc9aad15c10050319102f
openaq/openaq.org,openaq/openaq.org,openaq/openaq.org
cypress/integration/locations-hub.spec.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar fs = require('fs'),\n words = require('../data/spache.json');\n\nfs.writeFileSync('Supported-words.md',\n 'Supported Words\\n' +\n '=================\\n' +\n '\\n' +\n\n words.map(function (word) {\n return '* ...
javascript
edit
0
1
mit
3e7dd0d886b2ee2d44f3869b0d319dcb21ed9117
wooorm/spache
script/build-supported-words.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict'\n\nmodule.exports = {\n up: function (queryInterface, Sequelize) {\n return queryInterface.createTable('users', {\n // it will add the id column automatically\n name: Sequelize.STRING,\n createdAt: Sequel...
javascript
edit
0
1
mit
3d43defabfa6d2797a48c08409970d796ce71737
Olson3R/rest-hapi-bootstrap
db/migrations/20150509035633-create-users.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React from 'react';\nimport { connect } from 'react-redux';\nimport { Link } from 'react-router';\nimport Loader from '../Loader';\nimport './Header.scss';\n\nexport const Header = ({ isFetching }) => (\n <div>\n <nav classNa...
javascript
edit
0
3
mit
2c22a3b240680866b12249a015136502db32d782
City-of-Helsinki/helerm-ui,City-of-Helsinki/helerm-ui,City-of-Helsinki/helerm-ui
src/components/Header/Header.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n;(function(Agent){\n\n var waitForMarionetteLoad = function(object, callback) {\n Agent.onObjectAndPropertiesSetted(\n object,\n 'Marionette', ['Application', 'Module'],\n callback\n );\n }\n\n var waitForBackbon...
javascript
edit
0
3
mit
8b2f43e86f70ba2dd30660cd412eff2a512aa7c9
marionettejs/marionette.inspector,marionettejs/marionette.inspector,marionettejs/marionette.inspector
extension/js/agent/patches/patchWindow.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport { PolymerElement } from '@polymer/polymer/polymer-element';\n\nclass BnbAnalytics extends PolymerElement {\n static get is() { return 'bnb-analytics'; }\n\n static get properties() {\n return {\n key: {\n type: S...
javascript
edit
0
2
apache-2.0
6b72e6c5eb5839acc16ddf6159663c932b2c7f4b
frocher/bnb_app,frocher/bnb_app
src/components/bnb-analytics.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nclass Controller {\n constructor () {\n this.listeners = []\n this.key = null\n\n window.addEventListener('keydown', e => {\n if (e.keyCode === this.key)\n return\n this.key = e.keyCode\n this.listeners.f...
javascript
edit
0
3
mit
c88579932c761eec9af46cf30b71c4b11a7a420a
maxwellito/tetrispad,maxwellito/tetrispad
scripts/Controller.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst puppeteer = require('puppeteer')\nconst path = require('path')\n\nconst main = async () => {\n const browser = await puppeteer.launch()\n const page = await browser.newPage()\n await page.setViewport({ width: 1500, height: 500 ...
javascript
edit
0
2
mit
61258f1b05683dfbc6807b632018687bb626b1fc
jsonnull/jsonnull.com,jsonnull/jsonnull.com,jsonnull/jsonnull.com
src/server/twitter.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/*\n * Appcelerator Titanium Mobile\n * Copyright (c) 2011-2012 by Appcelerator, Inc. All Rights Reserved.\n * Licensed under the terms of the Apache Public License\n * Please see the LICENSE included with this distribution for details....
javascript
edit
0
3
apache-2.0
99e1dd76bb064e88bf3b86e67ab26d034849a1ee
appcelerator/titanium_mobile_tizen,appcelerator/titanium_mobile_tizen,appcelerator/titanium_mobile_tizen,appcelerator/titanium_mobile_tizen,appcelerator/titanium_mobile_tizen,appcelerator/titanium_mobile_tizen
tests/anvil/configSet/Resources/suites/jss.js
rejected_duplicate
Near-duplicate of sample 88525
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n\"use strict\";\n\nimport placeToEat from \"application/domain/placeToEat\";\n\nexport default function inMemoryPlacesRepo() {\n let places = [\n placeToEat({ id: 100, name: \"Thai House\", cuisine: \"Thai\" }),\n place...
javascript
edit
0
2
mit
6df284bdbc676b0eab0c0c7cb1cb8434d9bd8deb
pbouzakis/hexy-ex
lib/adapters/storage/memory/placesRepo.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n * Loads an array of urls using the loadFunction given by the user.\n * Returns a promise.all of all the urls.\n */\nfunction loadUrls(urls, loadFunction) {\n let promises = [];\n for (url of urls) {\n let promise = loadFuncti...
javascript
edit
0
2
apache-2.0
5f9d912e263851497970691bafb5441b32a5a859
googleinterns/step36-2020,googleinterns/step36-2020,googleinterns/step36-2020
src/main/webapp/scripts/load.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n\"use strict\";\n\nvar _ = require('lodash');\n\nvar defaultSettings = {\n title: 'Model My Watershed',\n itsi_embed: false,\n itsi_enabled: true,\n data_catalog_enabled: false,\n base_layers: {},\n stream_layers: {},\...
javascript
edit
0
2
apache-2.0
954ebb462b540f0888ed21bdd2d0a3e3cb4589ea
WikiWatershed/model-my-watershed,WikiWatershed/model-my-watershed,WikiWatershed/model-my-watershed,WikiWatershed/model-my-watershed,WikiWatershed/model-my-watershed
src/mmw/js/src/core/settings.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst TwitterPostBase = require('./TwitterPostBase');\nconst { readJson } = require('../utilities');\nconst path = require('path');\nconst fs = require('fs');\n\nconst stagesPath = path.resolve('storage/stages.json');\nconst splatnetAss...
javascript
edit
0
1
mit
3bd1e688f16dad63e75b274bc582aca16196047e
misenhower/splatoon2.ink,misenhower/splatoon2.ink,misenhower/splatoon2.ink
src/updater/twitter/NewStageTweet.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\ndescribe(\"ResourceCacheKey\", function () {\n it(\"getSchemaCacheKey works for external schemas\", function () {});\n\n it(\"getSchemaCacheKey works for external schemas\", function () {});\n\n it(\"getSchemaCacheKey works for inter...
javascript
edit
0
1
apache-2.0
a20bed35406a0c2232f7d68c5078beecc7255d97
likangning93/cesium,AnalyticalGraphicsInc/cesium,CesiumGS/cesium,likangning93/cesium,CesiumGS/cesium,AnalyticalGraphicsInc/cesium,CesiumGS/cesium,likangning93/cesium,likangning93/cesium,likangning93/cesium,CesiumGS/cesium,CesiumGS/cesium
Specs/Scene/ResourceCacheKeySpec.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\nvar $ = require('jquery');\n\n//https://pgp-logs-app.herokuapp.com/api\n//http://localhost:8085/api\nvar client = new $.RestClient('https://pgp-logs-app.herokuapp.com/api', {\n verbs: {\n 'post': 'POST',\n 'read': ...
javascript
edit
0
0
mit
8e7d4746040098b2bbb97a69bbf559a0f2fe50d6
pmajoras/pgp-logs,pmajoras/pgp-logs
www/js/services/JqueryRestClientService.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n * Modal Dialog Component Stories.\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....
javascript
edit
0
1
apache-2.0
0a9dcc82bb5ac82159d92f6ff6f7b512c16dc542
google/site-kit-wp,google/site-kit-wp,google/site-kit-wp,google/site-kit-wp
stories/modal-dialog.stories.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport * as EventMap from 'eventmap';\n\n// `Graphics` is an instance of an `EventMap`\nlet Graphics = new EventMap();\n\n// Special property `renderer` can be modified, but not deleted\nObject.defineProperty(Graphics, 'renderer', {\n ...
javascript
edit
0
0
mit
d135f4474ca3813ca61b13af65f9720e150abd56
freezedev/flockn,freezedev/flockn
src/graphics/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React from 'react';\nimport { Link } from 'react-router';\nimport './NotFound.scss';\n\nexport const NotFound = () => (\n <div className='not-found-container'>\n <img className='helsinki-logo' src={require('../../static/asset...
javascript
edit
0
1
mit
eeac7d70a7a8021f530a8203666598432b888293
City-of-Helsinki/helerm-ui,City-of-Helsinki/helerm-ui,City-of-Helsinki/helerm-ui
src/routes/NotFound/NotFound.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React from 'react';\nimport { connect } from 'react-redux';\n\nimport '../../scss/views/_main.scss';\nimport '../../scss/views/_help.scss';\n\n\nconst mapStateToProps = (state, ownProps) => {\n\treturn { members: state.userInfo.t...
javascript
edit
0
1
mit
31207136cc0d7628848c114eb5fdb458bc6061fe
bwyap/ptc-amazing-g-race,bwyap/ptc-amazing-g-race
src/client/react/user/views/Help/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nconst skill = require('../skill/MainStateMachine');\nconst expect = require('chai').expect;\n\ndescribe('Skill', () => {\n it('should reply with Intent.Launch', () => {\n const event = {\n session: {\n a...
javascript
edit
0
1
mit
f3889654ee91cac880e15583e3e885348a1c0e6d
mediarain/generator-voxa-skill
generators/app/templates/test/skill.spec.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport cssHook from 'css-modules-require-hook';\n\ncssHook({\n generateScopedName: '[local]__[path][name]__[hash:base64:5]',\n});\n\n```\n\nApply this change: Fix server side CSS classname scope" }, { "role": "assistant", "...
javascript
edit
0
0
mit
02c68d8763b1ada6abd3e2bb943f8f1f63f6f71a
just-paja/improtresk-web,just-paja/improtresk-web
src/server/mainCss.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nvar fs = require('fs');\n\nfunction read(filename) {\n return fs.readFileSync(filename, {'encoding': 'utf8'});\n}\n\nexports.contents = {\n 'filter': function(test) {\n var actual = read('tmp/helpers/filter.html');...
javascript
edit
0
1
mit
ab9de946dd312e18ff232e7def39890ba2be436e
xavierdutreilh/wintersmith-contents,xavierdutreilh/wintersmith-contents
test/contents_test.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/*global describe, it, before, beforeEach */\r\n/*jshint -W030 */\r\n\r\n'use strict';\r\n\r\nvar join = require('path').join\r\n , fs = require('fs')\r\n , expect = require('chai').expect\r\n , cheerio = require('cheerio')\r\n , bd...
javascript
edit
0
1
mit
3c414d17c0e74165d2bef3e43d389773caa3080c
lily-pytel/bedecked,lily-pytel/bedecked,jtrussell/bedecked,jtrussell/bedecked
test/bedecked-test.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport { combineReducers } from 'redux'\nimport { merge } from 'ramda'\n\nimport { routerStateReducer } from 'redux-router'\n\nimport { SETTINGS_CHANGE, DISPLAY_FILTERS_CHANGE } from '../constants/actionTypes'\n\nimport data from './dat...
javascript
edit
0
3
mit
80e9afad8a8cd621d42d4eb6399a015c0c7a4c9b
cvut/fittable,cvut/fittable-widget,cvut/fittable,cvut/fittable-widget,cvut/fittable-widget,cvut/fittable
src/reducers/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\n/* http://docs.angularjs.org/guide/dev_guide.e2e-testing */\n\ndescribe(\"PhoneCat App\", function(){\n describe(\"Phone list view\", function(){\n beforeEach(function(){\n browser.get(\"app/index.html\");\n\n ...
javascript
edit
0
1
mit
b418e6cbdf8200a5831baf4c6a1425766967a690
yoda-yoda/AngularJS-12,denisKaranja/AngularJS-12,denisKaranja/AngularJS-12,denisKaranja/AngularJS-12,yoda-yoda/AngularJS-12,yoda-yoda/AngularJS-12
test/e2e/scenarios.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\ndescribe('browser build', function() {\n require('./plain');\n require('./worker');\n});\n\n```\n\nApply this change: Move all repeat values into a before statement" }, { "role": "assistant", "content": "'...
javascript
edit
0
1
bsd-3-clause
fa4c6ce28d3ea9e2ff84d5ceff01848c2f93deb0
highlightjs/highlight.js,MakeNowJust/highlight.js,palmin/highlight.js,tenbits/highlight.js,palmin/highlight.js,Sannis/highlight.js,highlightjs/highlight.js,dbkaplun/highlight.js,tenbits/highlight.js,isagalaev/highlight.js,teambition/highlight.js,Sannis/highlight.js,bluepichu/highlight.js,MakeNowJust/highlight.js,Sannis...
test/browser/index.js
accepted
null
true
[ { "role": "user", "content": "Write javascript code for the following: Change Array reduce polyfill to TypedArray reduce polyfill" }, { "role": "assistant", "content": "Uint32Array.prototype.reduce||(Uint32Array.prototype.reduce=Array.prototype.reduce);\n" } ]
javascript
new_file
0
0
mit
8652ac887b0d97e402cec11f41c8421dd39fc229
multiparty/web-mpc,multiparty/web-mpc,multiparty/web-mpc
client/scripts/array.reduce-polyfill.min.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nvar memoize = require('memoizee/plain')\n , validDb = require('dbjs/valid-dbjs')\n , defineStringLine = require('dbjs-ext/string/string-line')\n , defineDocument = require('./document');\n\nmodule...
javascript
edit
0
1
mit
26d58ac57887253a5b00f00df640a332919589ba
egovernment/eregistrations,egovernment/eregistrations,egovernment/eregistrations
model/registration.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst Babili = require('babili-webpack-plugin')\n\nmodule.exports = {\n plugins: [\n new Babili({\n removeConsole: false,\n removeDebugger: true\n })\n ]\n}\n\n```\n\nApply this change: Fix broken source map in product...
javascript
edit
0
0
mit
4bb5c0dc0ee601277e375daa3477ae7906d5d415
jsse-2017-ph23/web-frontend,jsse-2017-ph23/web-frontend,jsse-2017-ph23/web-frontend
webpack-cfg/babili.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport IsomorphicRouter from 'isomorphic-relay-router';\nimport path from 'path';\nimport React from 'react';\nimport ReactDOMServer from 'react-dom/server';\nimport Relay from 'react-relay';\nimport RelayStoreData from 'react-relay/lib...
javascript
edit
0
4
bsd-2-clause
7a2cfa0c0cb640d9165d66113a5ca70c24ce5f58
denvned/isomorphic-relay-router
examples/todo/src/renderOnServer.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst BABEL_ENV = process.env.BABEL_ENV;\nconst building = BABEL_ENV != undefined && BABEL_ENV !== 'cjs';\n\nconst plugins = [];\n\nif (BABEL_ENV === 'umd') {\n plugins.push('external-helpers');\n}\n\nif (process.env.NODE_ENV === 'prod...
javascript
edit
0
2
mit
0e5e4a4e11b23fbdf57ae785107a435a55895e99
ryanhefner/react-video-players
tools/babel-preset.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// Separate Numbers with Commas in JavaScript **Pairing Challenge**\n\n\n// I worked on this challenge with: .\n\n// Pseudocode\n\n\n\n// Initial Solution\n\n\n\n\n// Refactored Solution\n\n\n\n\n// Your Own Tests (OPTIONAL)\n\n\n\n\n//...
javascript
edit
0
2
mit
3438448956dff59dc4176cab3909964779b468e3
RobinSoubry/phase-0,RobinSoubry/phase-0
week-7/nums_commas.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
66ecb5b2b8b2984b685071cee0b22450ca4ebc26
ericbooker12/fuzzy_hat_artist_site,ericbooker12/fuzzy_hat_artist_site,ericbooker12/fuzzy_hat_artist_site
app/assets/javascripts/application.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\n\nmodule.exports = function ($el, event) {\n var current = ~~$el.data('current-page'),\n max = ~~$el.data('max-page'),\n params = {};\n\n params.page = current + 1;\n params.id = $el.data('th...
javascript
edit
0
3
mit
e472e581369d10d51389f371de9033e5cb024b2d
nodeca/nodeca.forum
client/forum/thread/append_next_page.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar initialize = function() {\n var root = $('.item');\n\n if (root.length) {\n var photos = root.find('.item__photos');\n if (photos.length) {\n photos.magnificPopup({\n type: 'image',\n delegate: '.item__pho...
javascript
edit
0
4
mit
4faa9f04b943b59c71e5c19aab485c5998408f8a
dmitry/bazar,dmitry/bazar,dmitry/bazar
app/assets/javascripts/application/item.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nfunction ApplicationTabGroup(Window) {\n\t//create module instance\n\tvar self = Ti.UI.createTabGroup();\n\n\t//create app tabs\n\tvar win1 = Titanium.UI.createWindow({\n\t\ttitle : 'User Authentication Demo',\n\t\ttabBarHidden : true,\...
javascript
edit
0
1
apache-2.0
868ce70c6234c1fbd01928d6f0fa3d751a38884c
martilar/OddJobMapsCloud
Resources/ui/common/ApplicationTabGroup.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// from govuk_frontend_toolkit\n//= require vendor/polyfills/bind\n\n// from govuk_elements\n//= require details.polyfill\n\n//= require jquery\n//= require jquery.validate\n//= require govuk/selection-buttons\n//= require_tree .\n//= r...
javascript
edit
0
1
mit
fcb64e1cf3397e4470035763ee2a5304379a110f
alphagov/verify-frontend,alphagov/verify-frontend,alphagov/verify-frontend,alphagov/verify-frontend
app/assets/javascripts/application.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nfunction applicationStarted(pluginWorkspaceAccess) {\n Packages.java.lang.System.err.println(\"Application started \" + pluginWorkspaceAccess);\n referenceResolver = {\n /*Called when a reference is resolved*/\n makeRelative: function...
javascript
edit
0
3
apache-2.0
5a103e0a40c547cb3ba2139306218cfdda48a8a1
oxygenxml/wsaccess-javascript-sample-plugins
doNotEscapeNonAsciiURLChars/wsAccess.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport debug from 'debug';\n\nconst log = debug('service:tracking');\n\n// Track mixpanel events only if Scope is running inside of Weave Cloud.\nexport function trackAnalyticsEvent(name, props) {\n if (window.analytics && process.env....
javascript
edit
0
3
apache-2.0
cbfe63dc78bfcd229b225ee34553869f4e9ef2e3
kinvolk/scope,kinvolk/scope,weaveworks/scope,weaveworks/scope,weaveworks/scope,kinvolk/scope,alban/scope,kinvolk/scope,weaveworks/scope,alban/scope,alban/scope,weaveworks/scope,alban/scope,weaveworks/scope,kinvolk/scope,alban/scope,alban/scope,kinvolk/scope
client/app/scripts/utils/tracking-utils.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar mongoose = require('mongoose'),\n shortid = require('shortid');\n\nvar UserSchema = new mongoose.Schema({\n _id: {type: String, required: true, unique: true, 'default': shortid.generate},\n username: {type: String, unique: ...
javascript
edit
0
1
mit
e89d054f1df11ac3eb4ccb182ddf606637911408
strekmann/node-boilerplate,strekmann/samklang,strekmann/samklang,strekmann/node-boilerplate
src/server/models/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nangular.module('gisto.filter.markDown', []).filter('markDown', function () {\n return function (input) {\n if (typeof input === 'undefined') {\n return;\n } else {\n var converter ...
javascript
edit
0
2
mit
b6b2cd5cca1177fe804ef32d6d798b9bb992a845
Gisto/Gisto,shmool/Gisto,Gisto/Gisto,Gisto/Gisto,shmool/Gisto,shmool/Gisto,Gisto/Gisto
app/js/filters/markdownFilter.js
rejected_duplicate
Near-duplicate of sample 78287
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// Whether passed error is error thrown by require in case module\n// (at given path) is not found\n\n'use strict';\n\nvar k = require('es5-ext/function/k')\n\n , token, pattern;\n\ntry {\n\trequire(token = ':path:');\n} catch (e) {\n\...
javascript
edit
0
1
mit
634dffb61e24e3548f6634636acd33192f574552
medikoo/node-ext
lib/module/is-module-not-found-error.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict'\n\nmodule.exports = {\n\taritGeo: function(numlist) {\n\t\tif (numlist.length === 0) {\n\t\t\treturn 0;\n\t\t}\n\t}\n}\n```\n\nApply this change: Implement aritGeo case for non-arrays" }, { "role": "assistant", ...
javascript
edit
0
3
mit
697118ffe08b15e42e50e239807ce268755580d8
princess-essien/andela-bootcamp-slc
aritgeo/src/aritgeo.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nmodule.exports = {\n\n post: [\n '_id',\n 'to',\n 'tail',\n 'html',\n 'user',\n 'ts',\n 'st',\n 'ste',\n 'del_reason',\n 'del_by',\n 'votes'\n ],\n\n section: [\n 'hid'\n ],\n\n ...
javascript
edit
0
0
mit
ae39e7f98c4d92e609bbfe6f9740c51d33ff30f8
nodeca/nodeca.forum
internal/forum/_post_list_fields.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\ndescribe('react-native', function () {\n it('just re-exports the global functions', function () {\n const globalFetch = global.fetch = function globalFetch () {}\n const globalHeaders = global.Headers = function globalHeaders () ...
javascript
edit
0
1
mit
24afc74146676163c68bf1c422eeab4a387d0e37
lquixada/cross-fetch,lquixada/cross-fetch,lquixada/cross-fetch,lquixada/cross-fetch
test/react-native/index.js
accepted
null
true
[ { "role": "user", "content": "Write javascript code for the following: Remove console.log from datatable core" }, { "role": "assistant", "content": "A.DataTable.NAME = 'table';\nA.DataTable.CSS_PREFIX = 'aui-table';" } ]
javascript
new_file
0
0
bsd-3-clause
d906eb5a3f5b2e4adfe8338d011dd4290b735c0a
brianchandotcom/alloy-ui,ipeychev/alloy-ui,westonhancock/alloy-ui,drewbrokke/alloy-ui,fernandosouza/alloy-ui,eduardolundgren/alloy-ui,zenorocha/alloy-ui,drewbrokke/alloy-ui,modulexcite/alloy-ui,ipeychev/alloy-ui,mthadley/alloy-ui,zenorocha/alloy-ui,seedtigo/alloy-ui,antoniopol06/alloy-ui,inacionery/alloy-ui,ampratt/all...
src/aui-datatable/js/aui-datatable-core.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nExt.define('SlateAdmin.model.person.progress.NoteRecipient', {\n extend: 'Ext.data.Model',\n\n\n groupField: 'RelationshipGroup',\n\n fields: [\n {\n name: 'PersonID',\n type: 'integer'\n },\...
javascript
edit
0
0
mit
22022846df7759f72cb105cd5fbc2a6401348a8d
SlateFoundation/slate,SlateFoundation/slate,SlateFoundation/slate,SlateFoundation/slate-admin,SlateFoundation/slate-admin,SlateFoundation/slate,SlateFoundation/slate-admin,SlateFoundation/slate-admin,SlateFoundation/slate-admin,SlateFoundation/slate
sencha-workspace/SlateAdmin/app/model/person/progress/NoteRecipient.js
rejected_duplicate
Near-duplicate of sample 68624
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nasync function networkOrCache(event) {\n\ttry {\n\t\tconst response = await fetch(event.request);\n\n\t\tif (response.ok) {\n\t\t\tconst cache = await caches.open('steamstatus');\n\t\t\tawait cache.put(event.request, response.clone());\...
javascript
edit
0
1
mit
b183e990c560178bd1da9a1ca4210e6a8fbe102c
SteamDatabase/steamstat.us,SteamDatabase/steamstat.us
service-worker.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nrequire('node-define');\n\nfunction printSupportedConnectors() {\n\tlet connectors = require('../core/connectors').sort(function(a, b) {\n\t\treturn a.label.localeCompare(b.label);\n\t});\n\tfor (let connector of connec...
javascript
edit
0
2
mit
63d1c7e4909c6ed223e831411319bb5f082fa7f6
carpet-berlin/web-scrobbler,carpet-berlin/web-scrobbler,david-sabata/web-scrobbler,fakelbst/Chrome-Last.fm-Scrobbler,galeksandrp/web-scrobbler,alexesprit/web-scrobbler,inverse/web-scrobbler,usdivad/web-scrobbler,alexesprit/web-scrobbler,usdivad/web-scrobbler,david-sabata/web-scrobbler,galeksandrp/web-scrobbler,Paszt/we...
scripts/print-supported-connectors.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nmodule.exports = function () {\n\treturn RegExp.prototype.unicode === false;\n};\n\n```\n\nApply this change: Fix native Unicode regexp support detection\n\nhttps://github.com/tc39/ecma262/issues/262\r\nhttps://github.c...
javascript
edit
0
1
isc
f1edcd571fee5667c81ad84e38dbe5379aa77974
medikoo/es5-ext
reg-exp/#/unicode/is-implemented.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport classNames from 'classnames';\nimport React from 'react';\n\nimport FormGroupHeadingContent from './FormGroupHeadingContent';\n\nfunction getModifiedChildren(children) {\n const asteriskNode = (\n <FormGroupHeadingContent cla...
javascript
edit
0
2
apache-2.0
8601aefa4df016377711b609cbeac23c785e5378
dcos/dcos-ui,dcos/dcos-ui,dcos/dcos-ui,dcos/dcos-ui,dcos/dcos-ui
src/js/components/form/FormGroupHeading.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nexport default function (node/*, tooltipPlacement = 'right'*/) {\n\t/*let clip = */new ZeroClipboard(node);\n\t/*let $node = $(node);\n\n\t$node\n\t\t.on('mouseover', () => {\n\t\t\t$node\n\t\t\t\t.tooltip('destroy')\n\t\t\t\t.tooltip({...
javascript
edit
0
1
mit
714b400c1cea342927a3c7a0b8f77506f4710d8b
gmirr/www.jsdelivr.com,as-com/www.jsdelivr.com,MartinKolarik/www.jsdelivr.com,2947721120/jsdelivr.com,gmirr/www.jsdelivr.com,tomByrer/www.jsdelivr.com,2947721120/equanimous-octo-weasel,2947721120/cdn.c2cbc,tomByrer/www.jsdelivr.com,2947721120/equanimous-octo-weasel,2947721120/www.jsdelivr.com,jsdelivr/beta.jsdelivr.com...
src/public/js/decorators/zero-clipboard.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n;(function($){\n var email_obfuscated_class = 'obfuscated';\n var email_data_attr_prefix = 'data-email-';\n \n $(document)\n .on('mouseenter focus click touchstart keydown', 'a.obfuscated-email.' + email_obfuscated_class, functio...
javascript
edit
0
2
mit
4348446a0c6c39df4c0571c6d7284a6616d2ce1f
a-dg/codebox-snippets,a-dg/codebox-snippets,a-dg/codebox-snippets,a-dg/codebox-snippets
snippets/obfuscate-email-address.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n(function () {\n 'use strict';\n\n var isMac = /Mac/i.test(navigator.platform),\n isIOS = /iPhone|iPad|iPod/i.test(navigator.userAgent),\n isAndroid = /Android/i.test(navigator.userAgent),\n isWindowsPhone = ...
javascript
edit
0
3
apache-2.0
dc01d50974784f9a2ece241dc7ef7c743db10e65
massihx/binary-static,einhverfr/binary-static,borisyankov/binary-static,animeshsaxena/binary-static,massihx/binary-static,tfoertsch/binary-static,einhverfr/binary-static,junbon/binary-static-www2,tfoertsch/binary-static,borisyankov/binary-static,massihx/binary-static,animeshsaxena/binary-static,animeshsaxena/binary-sta...
src/javascript/binary/pages/chartapp.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nwindow.c.AdminNotificationHistory = ((m, h, _, models) => {\n return {\n controller: (args) => {\n const notifications = m.prop([]),\n getNotifications = (user) => {\n let notificat...
javascript
edit
0
1
mit
66ad8904de8c07933028fb07021e3cbc9cff1764
thiagocatarse/catarse.js,catarse/catarse_admin,vicnicius/catarse_admin,vicnicius/catarse.js,sushant12/catarse.js,catarse/catarse.js,mikesmayer/cs2.js,adrianob/catarse.js
src/c/admin-notification-history.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport geojs from 'geojs/geo.js';\nimport VisComponent from '../../VisComponent';\n\nexport default class Geo extends VisComponent {\n constructor (el, options) {\n super(el);\n\n this.plot = geojs.map({\n node: el,\n z...
javascript
edit
0
2
apache-2.0
22e62634ed072b590495cdf268e08185247fdbb5
Kitware/candela,Kitware/candela,Kitware/candela,Kitware/candela,Kitware/candela
src/candela/components/Geo/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n\"use strict\";\n\n\n/*global nodeca, _*/\n\n\nvar me_in_fields = [\n '_uname',\n 'locale'\n];\n\n\n// fetch current user info\n// fired before each controllers\nnodeca.filters.before('', { weight: -70 }, function load_current_user(pa...
javascript
edit
0
4
mit
4d1cd59b6678bda00f8c1a0f5c9ab074324f236d
nodeca/nodeca.users
lib/filters/load_current_user.js
rejected_duplicate
Near-duplicate of sample 99806
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React from 'react'\nimport Link from 'gatsby-link'\n\nexport default class InfiniteScrollLink extends React.Component {\n constructor (props) {\n super(props)\n\n const observerOptions = {\n root: null,\n rootMar...
javascript
edit
0
2
mit
4dbad38b98815c425d253a5fe7c4105c9850f6cb
LuisLoureiro/placard-wrapper
src/templates/infinite-scroll-link.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport { createElement } from 'react';\n\nimport GHGCountryEmissions from 'components/country/country-ghg';\nimport NDCSDGLinkages from 'components/country/country-ndc-sdg-linkages';\nimport ClimateVulnerability from 'components/country...
javascript
edit
0
1
mit
a665caa231294586f178b946b50f972ec2b3e01f
Vizzuality/climate-watch,Vizzuality/climate-watch,Vizzuality/climate-watch,Vizzuality/climate-watch
app/javascript/app/routes/app-routes/country-sections/country-sections.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// Module Route(s)\nDevAAC.config(['$routeProvider', function($routeProvider) {\n $routeProvider.when('/highscores', {\n \t// When a module contains multiple routes, use 'moduleName/viewName' in PageUrl function.\n template...
javascript
edit
0
1
mit
c8d82ce73371243a3d92b961b43deed718251c69
DevelopersPL/DevAAC,olszak94/DevAAC,olszak94/DevAAC,DevelopersPL/DevAAC,olszak94/DevAAC,olszak94/DevAAC,DevelopersPL/DevAAC
public_html/modules/highscores/highscores.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport test from 'ava';\nimport path from 'path';\n\nimport JsonFileConfigurationProvider from '../src/lib/jsonFileConfigurationProvider';\n\ntest('Constructor should throw for missing filePath', t => {\n t.throws(\n () => new JsonF...
javascript
edit
0
1
mit
304ab70218d01ca6f316ffaefb85ce8d3a67dff1
ritterim/markdown-proofing
test/jsonFileConfigurationProvider.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n\n/**\n * Module dependencies.\n */\n\nvar express = require('express');\nvar unminify = require('./lib/unminify');\nvar path = require('path');\nvar app = module.exports = express();\n\napp.set('port', process.env.PORT ||...
javascript
edit
0
1
mit
50981dff1c92c9f217bbf3b20ca175fe6462825e
ericclemmons/genesis-skeleton,ericclemmons/genesis-skeleton,genesis/angular,brettshollenberger/mrl001,ericclemmons/genesis-skeleton.com,genesis/angular,ericclemmons/ericclemmons.github.io,ericclemmons/ericclemmons.github.io,brettshollenberger/mrl001
src/server/app.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nimport React, { Component } from 'react';\nimport ReactCSS from 'reactcss';\n\nimport { User } from '../common/index';\n\nimport colors from '../../styles/variables/colors';\nimport { spacing, sizing } from '../../style...
javascript
edit
0
1
mit
515f92e5a612830ee46eab44e0a387df6025efa2
tobycyanide/felony,henryboldi/felony,henryboldi/felony,tobycyanide/felony
src/components/encrypt/EncryptKeyListItem.js
accepted
null
true
[ { "role": "user", "content": "Write javascript code for the following: Implement execution code with basic message tracking and GUI display" }, { "role": "assistant", "content": "DISCORD.setupMessageRequestHook((channel, messages) => {\n if (STATE.isTracking()){\n var info = DISCORD.getSelec...
javascript
new_file
0
3
mit
21f02b826a85f1f61afe4b90f1fe02885a2f5cb6
chylex/Discord-History-Tracker,chylex/Discord-History-Tracker,chylex/Discord-History-Tracker,chylex/Discord-History-Tracker,chylex/Discord-History-Tracker,chylex/Discord-History-Tracker
src/tracker/Σ.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport 'hyperagent/config' as c;\n\nfunction ajax(options) {\n var deferred = c.defer();\n c.ajax(c._.extend(options, {\n success: deferred.resolve,\n error: deferred.reject\n }));\n\n return deferred.promise;\n}\n\nexport = a...
javascript
edit
null
null
mit
1ca12907f56ea381d81eec98095a87a573f6cb50
docteurklein/hyperagent,docteurklein/hyperagent,weluse/hyperagent
lib/hyperagent/ajax.js
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React from 'react';\nimport ReactDOM from 'react-dom';\nimport { Simulate } from 'react-addons-test-utils';\nimport { render } from '../../../helpers/rendering.js';\nimport $ from 'jquery';\nimport App, { TodoList } from './setup...
javascript
edit
0
1
mit
f40788e699ee58a65d9d64559a0afbe4b2c6a003
NiGhTTraX/react-test-buffet,NiGhTTraX/react-test-buffet,NiGhTTraX/react-test-buffet
tests/unit/components/app/todos.spec.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport {\n moduleFor,\n test\n} from 'ember-qunit';\n\nmoduleFor('serializer:customer', {\n // Specify the other units that are required for this test.\n // needs: ['serializer:foo']\n});\n\ntest('it exists', function(assert) {\n v...
javascript
edit
0
1
mit
8484529a2299cbbf62e41a8cd0973f01738170e7
tchak/ember-offline-adapter,Flexberry/ember-localforage-adapter,sebweaver/ember-localforage-adapter,sebweaver/ember-localforage-adapter,igorrKurr/ember-localforage-adapter,tchak/ember-offline-adapter,Flexberry/ember-localforage-adapter,igorrKurr/ember-localforage-adapter
tests/unit/serializers/customer-test.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n\"use strict\";\n\nimport React, { Component } from 'react';\n// Bootstrap\n\nexport default class BenefitsList extends Component {\n componentDidMount(){\n $.get('/api/v1/programs', function(result){\n this.setState({\n ...
javascript
edit
0
1
mit
1fed2405d36df7d0b7fb74b2f9b7275427aaeb77
codeforamerica/nyc-january-project,codeforamerica/nyc-january-project
src/components/BenefitsProgramsList.react.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nimport jwt from 'jwt-simple';\n\nimport { userModel } from '../../../models/index';\nimport { secret } from '../../../config/config';\n\nimport { buildResponse } from '../../../utils/responseService';\n\nexport const sa...
javascript
edit
0
2
mit
2a7c3c06230bc9b998f6daa3dbf4ae64b9d1c6ec
Madmous/madClones,Madmous/Trello-Clone,Madmous/madClones,Madmous/madClones,Madmous/Trello-Clone,Madmous/Trello-Clone,Madmous/madClones
server/src/api/v1/signUp/signUpController.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar path = require('path');\nvar webpack = require('webpack');\n \nmodule.exports = {\n entry: './scripts/main.js',\n output: { path: __dirname, filename: 'bundle.js' },\n module: {\n loaders: [\n {\n test: /\\.jsx?$/,...
javascript
edit
0
0
mit
84854f6764b38b445476fb80bb7ae131ca0a8705
teamhacksmiths/food-drivr-frontend,teamhacksmiths/food-drivr-frontend
webpack.config.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nrequirejs.config({\n\t\"paths\": {\n\t\t// requireJS plugins\n\t\t\"text\": \"../external/requirejs/plugins/text\",\n\t\t\"json\": \"../external/requirejs/plugins/json\"\n\t},\n\t\"shim\": {\n\t\t\"jquery.hashchange\": {\n\t\t\tdeps: [ ...
javascript
edit
0
0
mit
e626fee9561d12c5c562c89470f5167e929f1c91
hinaloe/jqm-demo-ja,arschmitz/jquery-mobile,arschmitz/jquery-mobile,arschmitz/uglymongrel-jquery-mobile,hinaloe/jqm-demo-ja,arschmitz/uglymongrel-jquery-mobile,hinaloe/jqm-demo-ja,arschmitz/uglymongrel-jquery-mobile,arschmitz/jquery-mobile
js/requirejs.config.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar debug = process.env.NODE_ENV !== \"production\";\nvar webpack = require('webpack');\nvar path = require('path');\n\nmodule.exports = {\n context: path.join(__dirname, \"src\"),\n devtool: debug ? \"inline-sourcemap\" : null,\n en...
javascript
edit
0
0
mit
6b0d96ffe9ddd31fdb4ad8cd7923af0e2d2420e6
afonsopacifer/react-pomodoro,afonsopacifer/react-pomodoro
webpack.config.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst path = require('path');\n\nmodule.exports = {\n entry: {\n app: path.resolve(__dirname, 'app/Resources/assets/js/app.js')\n },\n output: {\n path: path.resolve(__dirname, 'web/builds'),\n filename: 'b...
javascript
edit
0
0
mit
0d4d867d771107644b6f826503a870c1389ab941
alOneh/sf-live-2017-symfony-webpack,alOneh/sf-live-2017-symfony-webpack,alOneh/sf-live-2017-symfony-webpack
webpack.config.js
rejected_duplicate
Near-duplicate of sample 93537
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\njQuery.fn.equalHeight = function() {\n\n\tvar $ = jQuery;\n\tvar that = this;\n\n\tvar setHeights = function() {\n\t\tvar elems = {};\n\t\tvar cont = $(that);\n\n\t\t// Reset the elements heights\n\t\tcont.each(function() {\n\t\t\t$(thi...
javascript
edit
0
3
mit
66ae258fe078e4667db8024ea285b6891e6c79b9
Nikker/jquery-equal-height,Nikker/jquery.equal-height
jquery.equal-height.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nangular.module('bolt.controller', [])\n\n.controller('BoltController', function($scope, Geo){\n $scope.currentCoords = {\n lat: null,\n lng: null\n };\n $scope.getCurrentCoords = function() {\n console.log('ran');\n Geo.g...
javascript
edit
0
1
mit
8b1a0f07592fbedad69a4f67ee3c286b8de4a9d7
thomasRhoffmann/Bolt,boisterousSplash/Bolt,elliotaplant/Bolt,thomasRhoffmann/Bolt,gm758/Bolt,gm758/Bolt,elliotaplant/Bolt,boisterousSplash/Bolt
client/app/controllers/boltController.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar configuration = require('../../config/configuration.json')\nvar utility = require('../../public/method/utility')\n\nmodule.exports = {\n checkCampaignModel: function (redisClient, accountHashID, payload, callback) {\n var begTim...
javascript
edit
0
5
mit
c1d182105693a4ce10ce0f2c4aa038456898eb61
Flieral/Announcer-Service,Flieral/Announcer-Service
logic/campaign/campaignModelCheckerLogic.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nexport default {\n title: {\n withLocation: 'Fires in {location}'\n },\n config: {\n size: 'small',\n categories: ['forest-change', 'summary'],\n admins: ['country', 'region', 'subRegion'],\n metaKey: 'widget_fire_aler...
javascript
edit
0
0
mit
91fc63ad843bd17993c3b94845d3fac1178666e8
Vizzuality/gfw,Vizzuality/gfw
app/javascript/components/widgets/widgets/forest-change/fires/initial-state.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/* eslint-disable no-restricted-syntax */\n'use strict';\n\n// MODULES //\n\nvar tape = require( 'tape' );\n\n\n// TESTS //\n\ntape( 'test test test', function test( t ) {\n\tt.strictEqual( true, true, 'is true' );\n\tt.strictEqual( fal...
javascript
edit
0
1
apache-2.0
96e6cf15c1385f696abb488c295332c4722c8bc4
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/_tools/tests/browser-build/examples/fixtures/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\ndefine(['$'], function ($) {\n\n return {\n 'breadcrumb': [\n {'label': 'Home', 'url': '#'},\n {'label': 'Homeware', 'url': '#'},\n {'label': 'Kitchen', 'url': '#'},\n {'label': 'Coo...
javascript
edit
0
1
mit
30afcd6147f98897c3d7fa4dd184c0931cf36f2d
mobify/stencil,mobify/stencil
dist/components/breadcrumb/breadcrumb.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports = UMDFormatter;\n\nvar AMDFormatter = require(\"./amd\");\nvar util = require(\"../../util\");\nvar t = require(\"../../types\");\nvar _ = require(\"lodash\");\n\nfunction UMDFormatter(file) ...
javascript
edit
0
2
mit
d2724554cc803cf151d5b9ad30010e58b862c882
sairion/babel,michaelficarra/babel,kaicataldo/babel,jeffmo/babel,guybedford/babel,jchip/babel,mcanthony/babel,gxr1020/babel,hulkish/babel,vhf/babel,kpdecker/babel,CrocoDillon/babel,lxe/babel,Skillupco/babel,victorenator/babel,loganfsmyth/babel,TheAlphaNerd/babel,tav/mu-babel,CrabDude/babel,SaltTeam/babel,amasad/babel,a...
lib/6to5/transformation/modules/umd.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nvar eslint = require('eslint');\nvar path = require('path');\n\nit('load config in eslint to validate rule syntax', function() {\n var data = new eslint.CLIEngine({\n configFile: path.join(__dirname, '../index.js'),...
javascript
edit
0
1
mit
85a174bcaab83cce88f6b39c1cb3ca6ba1b42dbe
jamieconnolly/eslint-config
__tests__/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport Reflux from 'reflux';\nimport _ from 'lodash';\n\nimport { CheckListStoreMixin, HostingMixin, WaitForStoreMixin, StoreLoadingMixin } from '../../mixins';\n\nimport SessionActions from '../Session/SessionActions';\nimport Actions ...
javascript
edit
0
1
mit
3029fb9c610407c2473d060839900b32b57302dc
Syncano/syncano-dashboard,Syncano/syncano-dashboard,Syncano/syncano-dashboard
src/apps/Hosting/HostingStore.js
rejected_duplicate
Near-duplicate of sample 87719
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React from 'react'\nimport { List } from 'semantic-ui-react'\nimport format from 'date-fns/format'\n\nconst HouseholdNotes = ({notes}) => {\n return (\n <List>\n {notes.map(n => <List.Item>{format(new Date(n....
javascript
edit
0
1
mit
e39bd586ffab1dd9e1844110ed67d3f257a6759d
cernanb/personal-chef-react-app,cernanb/personal-chef-react-app
src/components/HouseholdNotes.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/*\n * Copyright (C) 2013 salesforce.com, inc.\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 a copy of the License at\n ...
javascript
edit
0
4
apache-2.0
0b853759babf896e946e04e3ab5e2279f1c59933
badlogicmanpreet/aura,badlogicmanpreet/aura,SalesforceSFDC/aura,badlogicmanpreet/aura,DebalinaDey/AuraDevelopDeb,TribeMedia/aura,madmax983/aura,madmax983/aura,lcnbala/aura,madmax983/aura,badlogicmanpreet/aura,navyliu/aura,badlogicmanpreet/aura,SalesforceSFDC/aura,SalesforceSFDC/aura,igor-sfdc/aura,igor-sfdc/aura,TribeM...
aura-components/src/main/components/aura/unescapedHtml/unescapedHtmlRenderer.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nexport default () => {\n chrome.alarms.onAlarm.addListener(function (alarm) {\n if (alarm.name === \"reminder\") {\n runIfTrackerOpen(function () {\n alert(\"Hey y'all, it's time to send out your WWLT...
javascript
edit
0
2
isc
7219c94956f460e4070fb69ed715550a98faac87
oliverswitzer/wwltw-for-pivotal-tracker,oliverswitzer/wwltw-for-pivotal-tracker
src/background/alarm_listener.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n * getImplicitDefaults()\n *\n * Get a dictionary of implicit defaults this hook would like to merge\n * into `sails.config` when Sails is loaded.\n *\n * @param {Dictionary} existingConfig\n * Existing configuration which...
javascript
edit
0
1
mit
967bd00a8d5783cfbd1a11f2e7c64fcf8e89ebb7
balderdashy/sails,rlugojr/sails,rlugojr/sails
lib/hooks/views/get-implicit-defaults.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n\nvar description = d3.select(\"#text\")\n .html(\"<b>Title: </b><br/><b>Number: </b><br/><b>Body: </b><br/><b>ID: </b><br/><b>Assignee: </b><br/><b>Milestone: </b><br/><b>Repo: </b>\");\n\n\n$.getJSON(\"orgs.json\")\n .done(functio...
javascript
edit
0
2
mit
aeaba497661622e732c43b2e653e130a312b91fa
hjylewis/issue-graph,hjylewis/issue-graph
public/script/login.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\nmodule.exports = {\n up: function(queryInterface, Sequelize) {\n return queryInterface.createTable('Activities', {\n id: {\n type: Sequelize.INTEGER,\n allowNull: false,\n unique: true,\n ...
javascript
edit
0
1
mit
489c675d59828cfdd689da0d65f43c3cce61a2d0
HexanomeBeurreTwo/Goon-Server,HexanomeBeurreTwo/Goon-Server
migrations/1461835592.activity.create.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n(function($) {\n\t$().ready(function() {\n\t\tvar ANIMATION_SPEED = 250;\n\t\t\n\t\t$('body').addClass('js');\n\t\t\n\t\t// DMs on the Settings page\n\t\t$('#user_enable_dms').click(function(event) {\n\t\t\t$('#dm-priority-container').s...
javascript
edit
0
4
mit
44f781b7218643d7c15a8aba504d677881d809b5
tofumatt/Prey-Fetcher,tofumatt/Prey-Fetcher
public/javascripts/jquery.preyfetcher.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\nvar db = require('./database');\nvar Sequelize = require('sequelize');\n\nmodule.exports = function(){\n var User = db.define('Users', {\n userId: {type: Sequelize.STRING, \n unique: true, \n notEmpty: true,...
javascript
edit
0
1
mit
81caa8aa2d94fed2fd8564431e8b7d7421c648fd
hmfoster/beards-of-zeus,marqshort/beards-of-zeus,beards-of-zeus/beards-of-zeus,beards-of-zeus/beards-of-zeus,hmfoster/beards-of-zeus,marqshort/beards-of-zeus,beards-of-zeus/beards-of-zeus,marqshort/beards-of-zeus,hmfoster/beards-of-zeus
server/db/orm-model.js
rejected_duplicate
Near-duplicate of sample 69607
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/* eslint new-cap: 0 */\nconst mongoose = require('mongoose');\nconst bcrypt = require('bcrypt-nodejs');\nconst Q = require('q');\n\nconst SALT_WORK_FACTOR = 10;\n\nconst UserSchema = new mongoose.Schema({\n username: {\n type: Stri...
javascript
edit
0
2
mit
eb8d348aa7fb51bb87f347689c128a7de0c163f5
nonchalantkettle/SpeechDoctor,alexxisroxxanne/SpeechDoctor,nonchalantkettle/SpeechDoctor,alexxisroxxanne/SpeechDoctor
server/db/userModel.js
rejected_duplicate
Near-duplicate of sample 75470
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n\nvar fs = require('fs');\nvar read = fs.createReadStream('./memos/memo0.md');\n\nvar io = require('socket.io').listen(9001);\nio.sockets.on('connection', function (socket) {\n read.on('data', function (data) {\n var content = data....
javascript
edit
0
1
mit
2605920af7d5b2000b13fd64eb791d30d041faf6
eqot/memo
server/routes/memos.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\ndescribe('hyper-yield tag', function() {\n var $compile,\n $rootScope;\n\n beforeEach(module('hyperContentFor'));\n\n beforeEach(inject(function(_$compile_, _$rootScope_) {\n $compile = _$compile_;\n $rootScope = _$rootSco...
javascript
edit
0
1
mit
f2a175f1af5ae117a03e2761e44d1cf771e99a84
hyperoslo/hyper-content-for-angular,hyperoslo/hyper-content-for-angular
spec/hyperYieldSpec.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n(function (window, $, undefined) {\n 'use strict';\n var Example;\n Example = function Example(cockpit) {\n console.log('Loading example plugin in the browser.');\n // Instance variables\n this.cockpit = cockpit;\n // Add...
javascript
edit
0
1
mit
b7f97d7185efe2e2e1f1a5282e65000e68813932
BrianAdams/openrov-software,MysteriousChanger/burrito-cockpid,ChangerR/burrito-cockpid,ZonaElka/testOpenROV,codewithpassion/openrov-software,BrianAdams/openrov-software,ChangerR/burrito-cockpid,codewithpassion/openrov-software,MysteriousChanger/burrito-cockpid,ZonaElka/testOpenROV,LeeCheongAh/openrov-software,Mysteriou...
src/plugins/example/public/js/example.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport Clipboard from 'clipboard';\nimport React from 'react';\n\nimport { Colours } from '../../modules/colours';\nimport { Saved } from '../../modules/saved';\n\nexport class History extends React.Component {\n constructor (props) {\...
javascript
edit
0
2
mit
44fd1ebce7593b78580b790c44db32fc46a19c5e
arkon/ColourNTP,arkon/ColourNTP
src/scripts/components/colour/History.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n * Squid Desktop\n * Main window\n *\n */\n\n'use strict';\n\nvar Desktop = window.Squid\n\nvar MainWindow = function()\n{\n console.log('+++++++')\n console.log( Desktop._UID )\n console.log( screen.height )\n return this\n}\n...
javascript
edit
0
3
mit
5a873161f8604b144e309bb01e7e18d71e9f8cc3
squid-app/desktop,squid-app/desktop,squid-app/desktop,squid-app/desktop,squid-app/desktop
src/js/windows/main.js
accepted
null
true