messages
listlengths
2
2
language
stringclasses
8 values
prompt_type
stringclasses
2 values
lint_errors
int64
0
129
⌀
cyclomatic_complexity
int64
0
32
⌀
license
stringclasses
7 values
commit
stringlengths
40
40
repos
stringlengths
5
116k
new_file
stringlengths
4
220
status
stringclasses
6 values
error
stringlengths
26
74
⌀
is_valid_syntax
bool
2 classes
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nconst http = require('http');\nconst path = require('path');\nconst url = require('url');\nconst auth = require('http-auth');\nconst HttpStatusCodes = require('http-status-codes');\nconst stream_file_to_bd = require('....
javascript
edit
0
4
mit
ea7a6da5a5a6f67df4705040720847204097d733
vidya-org/vidya-journaler,vidya-org/vidya-journaler
app.js
rejected_duplicate
Near-duplicate of sample 73079
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n#!/usr/bin/env node\n\nvar path = require('path');\n\n/*\n * NPM modules\n */\nvar program = require('commander');\nvar yaml = require(\"js-yaml\");\nvar fs = require('fs-extra');\nvar _ = require('lodash');\n\n\n/*\n * App modules\n */...
javascript
edit
0
3
isc
90dead849ade30b39090ea6cc92c8ae61c4693fb
Koded/HTMLValidator
cli.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n(function(){\n'use strict';\n\nangular\n .module('secondLead')\n \n .factory('DramaModel',['Restangular', function(Restangular) {\n var baseDramas = Restangular.all('dramas');\n\n return {\n getAll: baseDramas.getList()....
javascript
edit
0
1
mit
2bba044cd41a122c80a704c4bb57e358ee7a7f7c
ac-adekunle/secondlead,ac-adekunle/secondlead,ac-adekunle/secondlead
app/assets/javascripts/angular/common/models/drama-model.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n$(document).ready(function() {\n\t$('#FontSize a').click(function() {\n\t\t$('.content').css(\"font-size\", this.dataset.size);\n\t});\n\n\t$('#FontFamily a').click(function(){\n\t\t$('.content').css(\"font-family\", this.innerHTML);\n\...
javascript
edit
0
1
mit
c6133c1e62f9218453095ca965914f070d343c97
mk12/great-reads,mk12/great-reads,mk12/great-reads
app/assets/javascripts/books.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict'\n\nconst _ = require('lodash')\n\nconst extendConfig = require('../lib/extendConfig')\nconst mainRules = require('./main')\n\nconst eslintConfigAirbnb = extendConfig({\n extends: 'airbnb'\n})\n\nconst migratedRules = {}\nc...
javascript
edit
0
0
mit
0373a7750a8a35521ad7afb854379434c9da7ad1
foray1010/eslint-config-foray1010,foray1010/eslint-config-foray1010
rules/babel.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst nunjucks = require('nunjucks')\nconst jsdom = require('jsdom')\nconst { JSDOM } = jsdom\n\nconst tradeElementsFilters = require('~/config/nunjucks/trade-elements-filters')\nconst dataHubFilters = require('~/config/nunjucks/filters...
javascript
edit
0
2
mit
cd596cd599032b1828eb1b30ee5a9e05dcc9fc6b
uktrade/data-hub-fe-beta2,uktrade/data-hub-frontend,uktrade/data-hub-fe-beta2,uktrade/data-hub-frontend,uktrade/data-hub-frontend
test/unit/nunjucks.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport angular from 'angular';\n// components used by this module\n\n// imports for this component\nimport template from './feed.html';\nimport './feed.css';\n\nclass FeedController {\n constructor(PlanService) {\n this.plan = {\n ...
javascript
edit
0
1
mit
23e14e871f7d8120881a6fd0e46579eaf2047d73
awaywego/awaywego,awaywego/awaywego
client/src/modules/plan/feed/feed.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React, { PropTypes } from 'react';\nimport css from './VoteCounter.css';\n\nconst VoteCounter = ({ count, total, label }) => (\n <div className={css.counter}>\n <div className={css.label}>\n { label } <span className={cs...
javascript
edit
0
2
mit
d4b07339cc7dd9b29faae084e2f4a6f64d96c394
dotkom/super-duper-fiesta,dotkom/super-duper-fiesta,dotkom/super-duper-fiesta
client/src/components/VoteCounter.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst {firstItem} = require('./functionalHelpers');\n\nmodule.exports = {romanise, romaniseLower};\n\nconst numerals = {\n 1: 'I',\n 4: 'IV',\n 5: 'V',\n 9: 'IX',\n 10: 'X',\n 40: 'XL',\n 50: 'L'\n};\n\nfunction rom...
javascript
edit
0
2
mit
74b0ef45ca75f17b1eaad784e7f426508eb43a02
noms-digital-studio/licences,noms-digital-studio/licences,noms-digital-studio/licences
server/utils/romanise.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar GifEncoder = require(\"gif-encoder\")\nvar concat = require(\"terminus\").concat\n\nmodule.exports = writegif\n\n// something with GifEncoder isn't correctly resetting the\n// state of backpressure it seems like?\nvar hwm = 128 * 10...
javascript
edit
0
4
mit
37fc5de8b46b8e51bb6fb535f77576051b53b953
revisitors/writegif
writegif.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/*global describe, beforeEach, it*/\n'use strict';\n\nvar path = require('path');\nvar helpers = require('yeoman-generator').test;\n\ndescribe('Ionic Framework Generator', function () {\n beforeEach(function (done) {\n help...
javascript
edit
0
2
mit
681ef474bf0db9276cf06b85ca2b2ffef2b26c4e
bja1011/generator-ionic,anhuisunfei/generator-ionic,AlexSwensen/generator-ionic,stonegithubs/generator-ionic,471685249/generator-ionic,yangcwGIT/generator-ionic,SidneyS/generator-ionic,diegonetto/generator-ionic,Ribeiro/generator-ionic,yshyee/generator-ionic,felquis/generator-ionic,JaKXz/generator-ionic,DiZyStudio/gene...
test/test-creation.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nangular.module('dataGoMain')\n .controller('WelcomeController', ['$scope', '$http', 'dataGoAPI', '$rootScope',function($scope, $http, dataGoAPI, $rootScope){\n console.log('in HomeCtrl');\n $scope.registerUser = registe...
javascript
edit
0
3
mit
49d65be4a55557878c3f31ea6d0d0d7c322d890e
kylanhurt/larang-rebuild,kylanhurt/larang-rebuild,kylanhurt/larang-rebuild,kylanhurt/larang-rebuild,kylanhurt/larang-rebuild,kylanhurt/larang-rebuild
controllers/welcomeController.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n\"use strict\";\n\nvar utils = require(\"../utils\");\nvar log = require(\"npmlog\");\n\nmodule.exports = function(defaultFuncs, api, ctx) {\n return function changeThreadColor(color, threadID, callback) {\n var form = {\n 'col...
javascript
edit
0
3
mit
c0729982b57d5ac90ab09c8f39d4b46851fa477d
GAMELASTER/facebook-chat-api,Schmavery/facebook-chat-api,ravkr/facebook-chat-api
src/changeThreadColor.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n(function($) {\n var coins = ['btc', 'ltc', 'nmc', 'ppc'];\n\n coins.forEach(function(coin) {\n updateCoin(coin);\n });\n})(jQuery);\n\nfunction updateCoin(coin) {\n var baseUrl = 'https://btc-e.com/api/3/ticker/';\n\n $.ajax({\...
javascript
edit
0
2
mit
406884153f0e0cbf89ecfef9bb80716993144c2e
chorks/cryptotracker.co,johnotander/cryptotracker.co,chorks/cryptotracker.co
js/coins.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst resources_template = require(\"./templates/resources-simple.hbs\");\n\n/* parallax on blog posts with cover image */\nvar parallaxImage = document.getElementById('ParallaxImage');\nvar windowScrolled;\n\nwindow.addEventListener('s...
javascript
edit
0
3
mit
26c735ad18cbf5ea0d759efb7af336efffb460d7
jdillard/personal-site,jdillard/personal-site,jdillard/personal-site,jdillard/personal-site
source/assets/js/trip.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar DropboxBase = require('./dropbox-base');\nvar routes = require('./routes');\nvar Dropbox;\n\n/**\n * @class Dropbox\n * @extends DropboxBase\n * @classdesc The Dropbox SDK class that provides methods to read, write and\n * create fi...
javascript
edit
0
1
mit
02aebdfcfa37af18eb70fcf4cd7dd799c3cb8f30
smarx/dropbox-sdk-js,smarx/dropbox-sdk-js,smarx/dropbox-sdk-js
src/dropbox.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// See http://eslint.org/docs/\nmodule.exports = {\n env: {es6: true, commonjs: true},\n parserOptions: {\n ecmaVersion: 6,\n ecmaFeatures: {jsx: true}\n },\n extends: ['eslint:recommended', 'google'],\n plu...
javascript
edit
0
0
mit
36da606092c93c31e6c6bc64eeacdfaa4198be44
frosas/lag,frosas/lag,frosas/lag
.eslintrc.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// /*jshint node:true*/\n// module.exports = {\n// description: 'add leaflet-draw assets, using bower',\n//\n// normalizeEntityName: function() {}, // no-op since we're just adding dependencies\n//\n// afterInstall: function() {\n...
javascript
edit
0
1
mit
a8140cbfe42ef3b7952fd4d3a4a22dc77f4ae9a3
StevenHeinrich/ember-leaflet-draw,StevenHeinrich/ember-leaflet-draw,StevenHeinrich/ember-leaflet-draw
blueprints/ember-leaflet-draw/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nvar opts = {\n prefix: '',\n suffix: '',\n suffixLastItem: true,\n};\n\nfunction objToValue(obj, opts) {\n var keys = Object.keys(obj);\n var fields = keys.map(function(key) {\n var value = formatValue(obj[key])...
javascript
edit
0
4
mit
57e1963cd12f14ad7ab76792ed280b829fe6e461
epegzz/sass-vars-loader,epegzz/sass-vars-loader,epegzz/sass-vars-loader
src/convert.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport * as THREE from 'three';\n\nexport function randomPointOnSphere( vector = new THREE.Vector3() ) {\n const theta = 2 * Math.PI * Math.random();\n const u = 2 * Math.random() - 1;\n const v = Math.sqrt( 1 - u * u );\n\n return ...
javascript
edit
0
1
mit
846949d03b2567c591fe284f7ef201de60324578
razh/flying-machines,razh/flying-machines
src/js/math.js
rejected_duplicate
Near-duplicate of sample 92261
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n\"use strict\";\n\nconst slack = require('./utils/slackUtils');\nconst axios = require('axios');\n\nfunction _ok(response) {\n return response.status(200);\n}\n\nfunction respondOk(response) {\n return _ok(response).end();\n}\n\nfunct...
javascript
edit
0
1
mit
bc0211568aa9ce77b4156346cf70dc76348e923e
awseward/silly-slacker,awseward/gutibot
src/gutiBot.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\ndefine([\n \"backbone\",\n \"jquery\",\n \"view/HomeView\",\n \"collection/Presentation\",\n \"view/PresentationView\",\n \"model/Slide\",\n \"view/SlideView\"\n], function (Backbone, $, HomeView, Presentation, Pres...
javascript
edit
0
1
mit
b78fe2c8157e90cea5535189b63120f4608b75b9
pads/yap,pads/yap
src/js/AppRouter.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nlet dictionary = new Dictionary();\nlet httpRequest = new HttpRequest();\n\nhttpRequest.get(dictionary.randomUrl, function(o) {\n console.log(o)\n});\n```\n\nApply this change: Set random 5-10 second interval" }, { "role": "a...
javascript
edit
0
1
mit
415e6315f263345c3f06bcc3d33c6403fd1cfed3
brat-corp/applesauce,brat-corp/applesauce
src/js/main.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport rms from './extractors/rms';\nimport energy from './extractors/energy';\nimport spectralSlope from './extractors/spectralSlope';\nimport spectralCentroid from './extractors/spectralCentroid';\nimport spectralRolloff from './extra...
javascript
edit
0
1
mit
82a6130b3ca36cf474959ea882e3910d4135d283
meyda/meyda,hughrawlinson/meyda,meyda/meyda,meyda/meyda
src/featureExtractors.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar\n fs = require('fs'),\n _ = require('underscore'),\n createTemplates = require('./poet/templates'),\n createHelpers = require('./poet/helpers'),\n routes = require('./poet/routes'),\n methods = require('./poet/methods'),\n ut...
javascript
edit
0
1
mit
4dbb60abd9df648f4a963f6584f4090b39b8caa3
Nayar/poet,r14r/fork_nodejs_poet,jhuang314/poet,jhuang314/poet,r14r/fork_nodejs_poet,jsantell/poet,Nayar/poet,jsantell/poet
lib/poet.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport { reducer as formReducer } from 'redux-form';\nimport { combineReducers } from 'redux';\nimport { routerReducer } from 'react-router-redux';\n\nimport { \n\torganization,\n\tstarredBoard,\n\tnotification,\n\tmodals,\n\tboard,\n\t...
javascript
edit
0
2
mit
9ff5270aa8c75a56df883a7b734156d2f8eded99
Madmous/madClones,Madmous/madClones,Madmous/Trello-Clone,Madmous/madClones,Madmous/Trello-Clone,Madmous/Trello-Clone,Madmous/madClones
client/src/store/rootReducer.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar Pinger = {\n};\n\n// http://stackoverflow.com/a/573784\nPinger.getPing = function(target, callback) {\n var start;\n var client = Pinger.getClient(); // xmlhttprequest object\n client.onreadystatechange = function() {\n if (cl...
javascript
edit
0
3
mit
d90307b810d5a6952f969935b0b6275776c1e17a
zunda/ping,zunda/ping,zunda/ping
app/assets/javascripts/ping.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst Promise = require('bluebird')\nconst { exec } = require('child_process')\n\nPromise.config({\n cancellation: true,\n})\n\nclass Process {\n static execute (script, options = {}) {\n return new Promise((resolve, reject, onCanc...
javascript
edit
0
2
mit
415d3ab16903f58293aaa09cc1b465686cdd5332
tinytacoteam/zazu,tinytacoteam/zazu
app/lib/process.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport { GOOGLE_ANALYTICS_ID } from '../AppSettings';\nimport { GoogleAnalyticsTracker } from 'react-native-google-analytics-bridge';\n\nlet tracker = new GoogleAnalyticsTracker(GOOGLE_ANALYTICS_ID);\n\n/**\n * A module containing loggi...
javascript
edit
0
1
mit
b2d5054e5810ab94b0f42eb582af05efd366e8cd
UCSD/campus-mobile,UCSD/now-mobile,UCSD/campus-mobile,UCSD/now-mobile,UCSD/now-mobile,UCSD/campus-mobile,UCSD/campus-mobile,UCSD/campus-mobile,UCSD/campus-mobile
app/util/logger.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar global = (typeof window !== 'undefined') ? window : {},\n Ember = global.Ember;\n\nvar Bindings = Ember.Mixin.create({\n\n needs: 'pusher',\n\n init: function() {\n var pusherController, target;\n this._super();\n if(!...
javascript
edit
0
2
mit
2f1f3e808af300a633a1435c425d2f23550e5211
jamiebikies/ember-pusher,mmun/ember-pusher,mmun/ember-pusher,jamiebikies/ember-pusher
lib/ember-pusher/bindings.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nmodule.exports.BulkLoad = require('./bulk-load');\nmodule.exports.Connection = require('./connection');\nmodule.exports.Request = require('./request');\nmodule.exports.library = require('./library');\n\nmodule.exports.T...
javascript
edit
0
0
mit
81cea94ac6192477a0750be60be5d225ab644ff2
tediousjs/tedious,tediousjs/tedious,pekim/tedious
src/tedious.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n * ENVIRONMENT VARIABLES\n * TOKEN_LIFE: Number of seconds before a token expires\n * APP_TOKEN: Facebook app token\n * APP_ID: Facebook app ID\n * ADMIN_ID: Client ID for admin program\n * ADMIN_SECRET: Client secret for admin pro...
javascript
edit
0
1
mit
af3fa380334d52add8e937753ef4d14fab219fb4
justinsacbibit/omi,justinsacbibit/omi,justinsacbibit/omi
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar gulp = require('gulp');\nvar elixir = require('laravel-elixir');\nvar karma = require('karma').server;\nvar _ = require('underscore');\nvar gutils = require('gulp-util');\n\nvar task = elixir.Task;\n\nfunction isTddOrWatchTask() {\n...
javascript
edit
0
2
mit
0c0e961f1d9ff4f44f2c593971a5235418c09390
olyckne/laravel-elixir-karma
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar config = module.exports;\n\nconfig[\"Node tests\"] = {\n environment: \"node\",\n tests: [\"test/*.js\"]\n};\n\n```\n\nApply this change: Update configuration file for new implicit root path" }, { "role": "assistant", ...
javascript
edit
0
0
bsd-3-clause
260424ef0d594941d700368ed40a9f749699b7c4
busterjs/buster-cli
test/buster.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nwindow.onload = action\nvar action = document.pesan.action = login();\n\nfunction login() {\n\tvar nama = document.pesan.nama.value;\n\tvar no-bpjs = document.pesan.no-bpjs.value;\n\tvar name = \"Andre Christoga\";\n\tvar bpjs-no = \"\"...
javascript
edit
null
null
mit
32c5de2ad9c490aa9ae9eb05745947f060fb1ea9
cepatsembuh/cordova,christoga/cepatsembuh,cepatsembuh/cordova,mercysmart/cepatsembuh,mercysmart/cepatsembuh,mercysmart/cepatsembuh,mercysmart/cepatsembuh,mercysmart/cepatsembuh,cepatsembuh/cordova,christoga/cepatsembuh,cepatsembuh/cordova,christoga/cepatsembuh,christoga/cepatsembuh,cepatsembuh/cordova,christoga/cepatse...
www/js/main.js
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nmodule.exports = function (deck/*, options*/) {\n\tvar options = Object(arguments[1]), root = options.root || '/'\n\t , update, activateSlide;\n\n\tactivateSlide = function (index) {\n\t\tif (index === deck.slide()) re...
javascript
edit
0
3
mit
16d5a32553342cdff499ca0bb96b767d9bbbcedf
medikoo/bespoke-history
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\nvar HOSTS = process.platform === 'win32'\n ? 'C:/Windows/System32/drivers/etc/hosts'\n : '/etc/hosts'\nvar readFileSync = require('fs').readFileSync;\nmodule.exports = function () {\n\treturn readFileSync(HOSTS, { encod...
javascript
edit
0
2
mit
5a24e17fc6f172526d68428c4a40b0e59bc0fea9
hemanth/get-hosts
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React, { Component } from 'react'\nimport { Link, IndexLink } from 'react-router'\n\nexport class Nav extends Component {\n constructor(props) {\n super(props)\n }\n\n render() {\n return (\n <nav className=\"transp...
javascript
edit
0
1
mit
6e7940cee3cfb45526a12b24901bfef982b81eb8
scrumptiousAmpersand/journey,scrumptiousAmpersand/journey
client/components/Nav.js
rejected_duplicate
Near-duplicate of sample 77579
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nconst express = require('express');\nconst moment = require('moment');\n\nconst app = express();\nconst port = process.argv[2] || 3000;\n\napp.get('/:timestamp', (request, response) => {\n const timestamp = request.par...
javascript
edit
0
3
mit
48011046ae3904c2818b311e8cd0e474505a206c
NicholasAsimov/timestamp-microservice
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nvar _ = require('underscore');\nvar config = require('./config');\nvar express = require('express');\nvar knox = require('knox');\n\nvar app = express();\n\n// Configure knox.\napp.s3 = knox.createClient({\n key: confi...
javascript
edit
0
0
mit
d26945e785f8b98776ff8e0c0e0bc6ecdf5fc81d
orgsync/servo
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nconst runner = require('toisu-middleware-runner');\nconst stacks = new WeakMap();\n\nclass Toisu {\n constructor() {\n stacks.set(this, []);\n this.handleError = Toisu.defaultHandleError;\n }\n\n use(middleware...
javascript
edit
0
2
mit
4c92ec1ab4ee06effe7fab8a7ae59ba4a80e9dd4
qubyte/toisu
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n\"use strict\";\n\nmodule.exports = {\n rules: {\n \"jquery-var-name\": require(\"./lib/rules/jquery-var-name\"),\n \"check-closure-globals\": require(\"./lib/rules/check-closure-globals\")\n },\n rulesConfig: {\n...
javascript
edit
0
0
mit
40a0ffde6c20f5201adac18671230c08c08b39d1
theodoreb/eslint-plugin-drupal
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar VOWELS = /[aeiou]+/gi;\nvar WHITE_SPACE = /\\s+/g;\nvar NOTHING = '';\n\nfunction tokenize(str){\n return str.split(WHITE_SPACE);\n}\n\nfunction replace(tokens){\n return tokens.map(function(t){\n return t.replace(VOWELS,NOT...
javascript
edit
0
4
mit
9b562aed4d0d8490f9f2a36d8cf3eac64d80eb61
lestoni/unvowel
index.js
rejected_duplicate
Near-duplicate of sample 89291
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// let referee = require('referee')\n// let {assert} = referee\n// let {beforeEach, afterEach} = window\n//\n// // assertions counting\n// let expected = 0\n// referee.add('expect', {\n// assert: (exp) => {\n// expected = exp\n// ...
javascript
edit
0
0
mit
3c4a2e9a777e1d18f7886df57d616f5a9d69925c
QubitProducts/cherrytree,QubitProducts/cherrytree,nathanboktae/cherrytree,nathanboktae/cherrytree
tests/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar fs = require('fs');\nvar _ = require('lodash');\n\nvar Datastore = require('nedb'),\n\tdb = new Datastore({ filename: './data/xkcd', autoload: true });\n\n\nmodule.exports = function (words, callback) {\n\n\tdb.find({ word: { $in: w...
javascript
edit
0
5
mit
2b330e110da8849d5edd4258f6e65e266fd48073
necccc/xkcd-cli
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport { flatten, groupBy, map, omit } from 'lodash';\nimport { plural } from 'pluralize';\n\nexport function populateByService(app, documents, idField, typeField, options) {\n let types = groupBy(documents, typeField);\n return Promi...
javascript
edit
0
1
mit
360f33015fb0c4f7c33099b9b24cf6216f1adcc6
PlayingIO/playing-content-services
src/helpers.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nmodule.exports = {\n db: 'mongodb://localhost/mean-prod',\n app: {\n name: 'MEAN - A Modern Stack - Production'\n },\n facebook: {\n clientID: 'APP_ID',\n clientSecret: 'APP_SECRET',\n ...
javascript
edit
0
0
mit
27704f4330fd2307ce5013b34fdb8a0e7bde6b2a
wombleton/hardholdr,wombleton/hardholdr
config/env/production.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nlet Moralis;\nexport function useMoralis() {\n if (Moralis) return { Moralis };\n // Moralis Initialization\n if (typeof window !== `undefined`) {\n Moralis = require('moralis');\n Moralis.initialize('knjJS1n0Hf0vkWjluePnByHQKV...
javascript
edit
0
3
mit
9ac734d489af8e44a64c535e688d4e7c8663f62b
iammatthias/.com,iammatthias/.com,iammatthias/.com
src/hooks/use-moralis.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport Vue from 'vue'\nimport Router from 'vue-router'\nimport Hello from '@/components/Hello'\n\nVue.use(Router)\n\nexport default new Router({\n routes: [\n {\n path: '/',\n name: 'Hello',\n ...
javascript
edit
0
0
apache-2.0
50d1f0fd46066aa370aa7753d9102b2514a62caa
Serubin/PulseClient,Serubin/PulseClient
src/router/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nmodule.exports = {\n name: 'ember-cli-stripe'\n};\n\n```\n\nApply this change: Add content-for hook to add Stripe's checkout.js" }, { "role": "assistant", "content": "'use strict';\n\nmodule.exports = {\n ...
javascript
edit
0
2
mit
fd6144bacd22dbf4d8b9e74ebb56835726d631d8
vladucu/ember-cli-stripe,vladucu/ember-cli-stripe
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/* Compiled 2015-12-15 09:12:28 */\n\n\"use strict\";angular.module(\"metricsgraphics\",[]).directive(\"chart\",function(){return{link:function(a,b){function c(a){for(var b=\"ABCDEFGHIJKLMNOPQRSTUVWXYZ\",c=\"\",d=0;a>d;d++){var e=Math.f...
javascript
edit
0
5
mit
598bce8e87b46e4a65e70034fad397cfdb38907f
elmarquez/angular-metrics-graphics,elmarquez/angular-metrics-graphics
dist/angular-metrics-graphics.min.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar InfiniteComputer = require('./infinite_computer.js');\n\nclass ConstantInfiniteComputer extends InfiniteComputer {\n getTotalScrollableHeight(): number {\n return this.heightData * this.numberOfChildren;\n }\n\n getDisplayInde...
javascript
edit
0
2
bsd-3-clause
384d069210bfecc66dcff065847e3b2d1af7779a
NordicSemiconductor/react-infinite,ahutchings/react-infinite,cesarandreu/react-infinite,pierregoutheraud/react-infinite,herojobs/react-infinite,beni55/react-infinite,NordicSemiconductor/react-infinite,amplii/react-infinite,noitakomentaja/react-infinite
src/computers/constant_infinite_computer.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n\nexport class Date{\n constructor(day, hour, min){\n this.day = day;\n this.hour = hour;\n this.min = min;\n }\n\n toString(){\n return (\"date: \" + this.day + \"-- \" + this.hour + \":\" + this.mi...
javascript
edit
0
11
mit
0ef21e977f51aeffa279442326785704a16347fe
bnan/dhroraryus,bnan/dhroraryus
src/supp_classes.js
rejected_complexity
Cyclomatic complexity too high: 11
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n\"use strict\";\n\nvar system = require(\"system\");\n\nif (system.args.length < 2) {\n\tconsole.log(\"Missing arguments.\");\n\tphantom.exit();\n}\n\nvar server = require(\"webserver\").create();\nvar url = system.args[1];\n\nvar rende...
javascript
edit
0
2
mit
3620be72778c761dbd61e8549ccbbf15496ebc8f
zaknelson/hike.io,zaknelson/hike.io,zaknelson/hike.io,zaknelson/hike.io
server/static-seo-server.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React, { Component } from 'react'\nimport { connect } from 'react-redux'\nimport LoginButton from './LoginButton'\nimport LogoutButton from './LogoutButton'\nimport { getIsAuthenticated } from '../selectors/user'\n\nclass Navbar ...
javascript
edit
0
2
apache-2.0
34f89e654a07a99216d666ea78e34916fa28df57
CovenantCollege/ChoirMasterClient,CovenantCollege/ChoirMasterClient
src/components/Navbar.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n//open command bar\nMousetrap.bindGlobal(['shift+up', 'ctrl+shift+.'], function(e) {\n document.getElementById('light').style.display='block';\n return false;\n});\n\n//close command bar\nMousetrap.bindGlobal(['shift+down', 'esc'], fu...
javascript
edit
0
1
bsd-3-clause
9b35d559517447e9ffb9f32468eb14f0b6c6b4da
blackboard/hayabusa,blackboard/hayabusa,blackboard/hayabusa
src/main/webapp/js/hayabusa-shortcutkeys.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// config.js\n\nvar http2 = require('http2');\nvar path = require('./path');\n\nmodule.exports = {\n\ttask: {\n\t\twatch: {\n\t\t\texclude: /\\.map$/\n\t\t}\n\t},\n\n\tplugin: {\n\t\tpug: {\n\t\t\tpretty: '\\t',\n\t\t\tbasedir: path.sou...
javascript
edit
0
0
cc0-1.0
e7b58e5c5438ff630c00638714db087a691b002f
thasmo/website
task/config.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/*jslint sloppy: true */\nmodule.exports = function (config) {\n config.set({\n basePath: '../',\n frameworks: ['jasmine'],\n browsers: ['Chrome', 'PhantomJS'],\n autoWatch: true,\n\n files: [\n {pattern: 'bower_com...
javascript
edit
0
1
mit
b6198eacf719c91614f635b189a980afb97ffed2
yetu/pocketry
test/config.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar checkForDevFile = function (callback) {\n\tvar cwd = process.cwd();\n\tvar fs = require(\"fs\");\n\tvar path = require(\"path\");\n\n\tvar testFile = path.join(cwd, \"lib\", \"modernizr-dev.js\");\n\tvar remoteTestFile = \"http://mo...
javascript
edit
0
2
mit
739ba2e9ebfb12617d5ef1926702248274ced74b
dailymotion/grunt-modernizr,mrawdon/grunt-modernizr,Irmiz/grunt-modernizr,Modernizr/grunt-modernizr,GrimaceOfDespair/grunt-modernizr,shadowmint/grunt-modernizr,grumpydev22/grunt-modernizr,bdaenen/grunt-modernizr,optimizely/grunt-modernizr,CastroIgnacio/grunt-modernizr,tobania/grunt-modernizr,virtualidentityag/grunt-mod...
test/runner.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React from \"react\";\nimport styled from \"styled-components\";\nimport { connect } from \"react-redux\";\nimport { Alert, Icon } from \"../../../base\";\n\nconst StyledCreateAPIKeyInfo = styled(Alert)`\n display: flex;\n ...
javascript
edit
0
2
mit
e4d5ed7973c7c597f55ffa86a97cc1a072a4a92a
igboyes/virtool,virtool/virtool,virtool/virtool,igboyes/virtool
client/src/js/account/components/API/CreateInfo.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport PropertyIntegerView from './PropertyIntegerView';\nimport InputColor from 'domain_abstract/ui/InputColor';\n\nexport default PropertyIntegerView.extend({\n setValue(value, opts = {}) {\n opts = { ...opts, silent: 1 };\n th...
javascript
edit
0
2
bsd-3-clause
1f3c9a469a96b8b80134a16f3843cda1a368f097
artf/grapesjs,artf/grapesjs,artf/grapesjs
src/style_manager/view/PropertyColorView.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport type { RenderFunction, Story } from '@storybook/react';\n\ndeclare module '@storybook/addon-info' {\n declare type Options = {\n inline?: boolean,\n header?: boolean,\n source?: boolean,\n propTables?: ?Array<React$E...
javascript
edit
null
null
unlicense
077ab3f2110c6c2e5984484596209383c2df3c01
pascalduez/react-module-boilerplate
flow-typed/npm/@storybook/addon-info_v3.x.x.js
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar browserify = require('browserify')\nvar cp = require('child_process')\nvar envify = require('envify/custom')\nvar fs = require('fs')\nvar once = require('once')\nvar path = require('path')\n\nvar CHROME = process.env.CHROME || '/App...
javascript
edit
0
3
mit
3fbe8a01d93b77b496a28229ffdf3792ebab22c1
feross/chrome-net,feross/chrome-net
test/helper.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst cp = require('child_process')\n\ndescribe('eslint-test', function() {\n it('eslint should pass', function() {\n cp.execSync('npm run eslint')\n })\n})\n```\n\nApply this change: Allow skipping eslint test with an environment ...
javascript
edit
0
2
mit
a4c0dc926c6986cee7dd9f9b3156559fcad0be8d
BaronaGroup/migsi,BaronaGroup/migsi
test/eslint-test.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
8
apache-2.0
1b433b5b0e73838ecaa365f3fa5d4cb2f5edbff8
madmax983/aura,SalesforceSFDC/aura,madmax983/aura,DebalinaDey/AuraDevelopDeb,navyliu/aura,DebalinaDey/AuraDevelopDeb,TribeMedia/aura,SalesforceSFDC/aura,badlogicmanpreet/aura,navyliu/aura,badlogicmanpreet/aura,madmax983/aura,DebalinaDey/AuraDevelopDeb,lcnbala/aura,SalesforceSFDC/aura,TribeMedia/aura,DebalinaDey/AuraDev...
aura-components/src/main/components/ui/image/imageController.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/*\n * grunt-xcode\n * https://github.com/matiassingers/grunt-xcode\n *\n * Copyright (c) 2014 Matias Singers\n * Licensed under the MIT license.\n */\n'use strict';\n\nvar Promise = require('bluebird');\nvar exec = Promise.promisify(re...
javascript
edit
0
2
mit
f888316ee7907e94b30f32040a98c56ef2334649
matiassingers/grunt-xcode
tasks/xcode.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar request = require('request');\nvar Scholarcheck = function(apiKey) {\n this.apiUrl = \"https://api.scholarcheck.io/api/v1/\";\n this.apiKey = apiKey || '';\n};\n\nScholarcheck.prototype._apiCall = function(endpoint, callback) {\n ...
javascript
edit
0
2
mit
80ed34fea18a6311b4490b5998df69636a4e34a9
caffeinewriter/node-scholarcheck,caffeinewriter/node-scholarcheck
lib/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nvar hash = require('./hash');\n\nexports.escapeDiacritic = require('./escape_diacritic');\nexports.escapeHTML = require('./escape_html');\nexports.escapeRegExp = require('./escape_regexp');\nexports.highlight = require(...
javascript
edit
0
0
mit
4f4e6454f6a498fbb1a13320c4bb66c6c9ba83ec
hexojs/hexo-util,hexojs/hexo-util
lib/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nvar configViewer = require('./configViewer');\n\nvar jQueryName = 'D2L.LP.Web.UI.Html.jQuery';\nvar vuiName = 'D2L.LP.Web.UI.Html.Vui';\n\nmodule.exports.jquery = function( opts ) {\n\treturn configViewer.readConfig( jQ...
javascript
edit
0
1
apache-2.0
11ceffc8dc5578dc089c52f3a0a80a35d31bae8c
Brightspace/web-library-loader
lib/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nprocess.env.NODE_ENV = 'test';\n\nrequire('sugar');\nrequire('colors');\n\nmodule.exports.chai = require('chai');\nmodule.exports.chai.Assertion.includeStack = true;\nmodule.exports.chai.use(require('chai-http'));\n\nmodule.exports.asyn...
javascript
edit
0
3
mit
241548146e98b69e90809451b0b17942da296a58
grimen/node-document-api
test/helper.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport Route from '@ember/routing/route';\nimport { inject as service } from '@ember/service';\nimport { hash } from 'rsvp';\n\nexport default Route.extend({\n globalStore: service(),\n access: service(),\n clusterTemp...
javascript
edit
0
3
apache-2.0
9e1de3f52aaecc9532b3b3b0988a14aaf4ab713f
rancher/ui,westlywright/ui,vincent99/ui,westlywright/ui,rancher/ui,vincent99/ui,rancherio/ui,rancherio/ui,rancher/ui,westlywright/ui,vincent99/ui,rancherio/ui
lib/global-admin/addon/cluster-templates/new/route.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React from 'react';\n\nconst ReactUil = {\n /**\n * Wrap React elements\n *\n * @param {Array.<ReactElement>|ReactElement} elements\n * @param {function|String} wrapper component\n * @param {boolean} [alwaysWrap]\n ...
javascript
edit
0
8
apache-2.0
25d859b3a2597ba00c988ed4a814452558e2c1b4
dcos/dcos-ui,dcos/dcos-ui,dcos/dcos-ui,dcos/dcos-ui,dcos/dcos-ui
foundation-ui/utils/ReactUtil.js
rejected_duplicate
Near-duplicate of sample 99489
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport partial from 'lodash-es/partial'\nimport makeProto from '../wrap'\nimport { parseDate } from '../util'\nimport wrapMedia from './media'\nimport wrapRoom from './room'\nimport wrapUser from './user'\n\nexport default function wrap...
javascript
edit
0
1
mit
d9549a5a002c25e054e1b4bd1a377ff444fcb403
goto-bus-stop/miniplug
src/data/historyEntry.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports = [\n {\n \"model\": \"User\",\n \"data\": {\n \"email\": \"<EMAIL>\",\n \"name\": \"Test Bruker\",\n // Password: test\n hash: '$2a$10$Gm09SZEHzdqx4eBV06nNheenfKpw3R1rXrMzmYfjX/.9UFPHnaAn6'\n ...
javascript
edit
0
0
mit
4878fc74206e4cb01cd8874570f50f5fc2db903a
abakusbackup/abacash-api,abakusbackup/abacash-api
fixtures/users.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\ndocument.write('<script type=\"text/javascript\" src=\"/janitor/admin/js/manipulator/v0_9_3-janitor/merged/seg_desktop.js\"></script>');\ndocument.write('<script type=\"text/javascript\" src=\"/janitor/admin/js/manipulator/v0_9_3-janito...
javascript
edit
0
0
mit
53e7dd095e1ae09b64b3cdadd6f961db22403098
parentnode/janitor,parentnode/janitor,parentnode/janitor
src/www/js/setup/seg_desktop_include.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport './app.styl';\nimport * as state from '../state';\nimport Component from '../components/component.react';\nimport Footer from './footer.react';\nimport Menu from './menu.react';\nimport React from 'react';\nimport persistState fr...
javascript
edit
0
2
mit
b621b1fadebcaec9a7c200aebad8c965cad328fc
aindre/este-example,AugustinLF/este,XeeD/test,amrsekilly/updatedEste,skallet/este,robinpokorny/este,AlesJiranek/este,syroegkin/mikora.eu,shawn-dsz/este,XeeD/este,AlesJiranek/este,youprofit/este,AugustinLF/este,laxplaer/este,christophediprima/este,este/este,zanj2006/este,puzzfuzz/othello-redux,Brainfock/este,skaldo/este...
src/client/app/app.react.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n * Modal: With ModalFooter component\n */\n\n/* eslint-disable */\nimport React from 'react';\nimport ModalFooter from '@folio/stripes-components/lib/ModalFooter';\nimport Button from '@folio/stripes-components/lib/Button';\nimport...
javascript
edit
0
1
apache-2.0
76df4116aaec99c285f9ab7bee45f253ce652b8d
folio-org/stripes-components,folio-org/stripes-components
lib/ModalFooter/examples/ModalFooterExample.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n(function () {\n\nfunction adjust_all_times() {\n\t$('time').each(function () {\n\t\tvar t = $(this);\n\t\tvar d = t.attr('datetime').replace(/-/g, '/'\n\t\t\t).replace('T', ' ').replace('Z', ' GMT');\n\t\tt.html(readable_time(new Date(...
javascript
edit
0
1
mit
b29eb395840f11f8a981040b2e75a9116f9def34
vampiricwulf/ex-tanoshiine,reiclone/doushio,lalcmellkmal/doushio,reiclone/doushio,theGaggle/sleepingpizza,vampiricwulf/ex-tanoshiine,lalcmellkmal/doushio,alokal/meguca,alokal/meguca,lalcmellkmal/doushio,vampiricwulf/tanoshiine,theGaggle/sleepingpizza,vampiricwulf/tanoshiine,lalcmellkmal/doushio,alokal/meguca,reiclone/d...
time/client.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nexport default {\n FETCH_DATA_BATCH_SIZE: 75,\n FETCH_DATA_EXPIRE_SEC: 30,\n DEFAULT_SORT_ORDER: 'trending',\n JULY_14_HACK: new Date('2016-07-14T00:00:00Z').getTime(),\n};\n\n```\n\nApply this change: Revert \"Temp increase...
javascript
edit
0
0
mit
b52d81de1ccf370e813e7f35dee48d0340e542a6
steemit-intl/steemit.com,TimCliff/steemit.com,GolosChain/tolstoy,TimCliff/steemit.com,enisey14/platform,steemit/steemit.com,steemit/steemit.com,steemit-intl/steemit.com,enisey14/platform,GolosChain/tolstoy,TimCliff/steemit.com,GolosChain/tolstoy,steemit/steemit.com
app/redux/constants.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// DecentCMS (c) 2014 Bertrand Le Roy, under MIT. See LICENSE.txt for licensing details.\n'use strict';\nvar expect = require('chai').expect;\n\ndescribe('Shape Item Promise Handler', function() {\n it('changes the promise shape into a...
javascript
edit
0
4
mit
3ad8c63ebeb63d0739287888a717a14833b04b92
DecentCMS/DecentCMS
modules/core/ui/test/shape-item-promise-handler.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n\"use strict\";\n\nimport h from \"yasmf-h\";\nimport el from \"$LIB/templates/el\";\nimport L from \"$APP/localization/localization\";\n\nimport glyph from \"$WIDGETS/glyph\";\nimport list from \"$WIDGETS/list\";\nimport listItem from ...
javascript
edit
0
1
mit
b9270fe41a91bf51f775f8fea818b4bdce222cb7
kerrishotts/Mastering-PhoneGap-Code-Package,kerrishotts/Mastering-PhoneGap-Code-Package,kerrishotts/Mastering-PhoneGap-Code-Package,kerrishotts/Mastering-PhoneGap-Code-Package
logology-v12/src/www/js/app/views/lemmaList.js
rejected_duplicate
Near-duplicate of sample 88549
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar mongodb = require('mongodb');\n\nvar host = \"alex.mongohq.com\";\nvar port = 10016;\nvar options = {};\n\nvar server = new mongodb.Server(host, port, options, {native_parser: true});\nvar Database = new mongodb.Db(\"TexasEstimateEm...
javascript
edit
0
2
mit
16e2716fddd2d217b53ab0141f74fadf628d589c
tangosource/pokerestimate,tangosource/pokerestimate
config/database.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nfunction viewLogIn() {\n\n var login_form = templates.login;\n $('.section').html(login_form);\n\n $('.form-login').submit(function (e) {\n e.preventDefault();\n var email = $('.fl-user-and-access__email').val();\n var passw...
javascript
edit
0
1
mit
90d450bf4183942e81865a20f91780d27f208994
ONSdigital/florence,ONSdigital/florence,ONSdigital/florence,ONSdigital/florence
src/main/web/florence/js/functions/_viewLogIn.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst fs = require('fs');\nconst glob = require('glob');\nconst path = require('path');\nconst rimraf = require('rimraf');\n\nconst workspaceRoot = path.join(__dirname, '..');\nconst desktopUpdatesPath = path.join(workspaceRoot, '..', '...
javascript
edit
0
0
mit
4ed024451e1bcfd5657c0814f16cd1ce56ed620e
toolkit-for-ynab/toolkit-for-ynab,dbaldon/toolkit-for-ynab,dbaldon/toolkit-for-ynab,dbaldon/toolkit-for-ynab,toolkit-for-ynab/toolkit-for-ynab,dbaldon/toolkit-for-ynab,blargity/toolkit-for-ynab,blargity/toolkit-for-ynab,toolkit-for-ynab/toolkit-for-ynab,ahatzz11/toolkit-for-ynab,falkencreative/toolkit-for-ynab,ahatzz11...
scripts/publishForDesktop.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nrequire([\n 'oroui/js/app/controllers/base/controller'\n], function(BaseController) {\n 'use strict';\n\n BaseController.loadBeforeAction([\n 'jquery',\n 'oroemail/js/app/components/email-notification-component',\...
javascript
edit
0
2
mit
a01fac7c6dc5979b98d1206b91d8798cdfbcf33e
orocrm/platform,orocrm/platform,geoffroycochard/platform,ramunasd/platform,trustify/oroplatform,geoffroycochard/platform,geoffroycochard/platform,ramunasd/platform,Djamy/platform,orocrm/platform,trustify/oroplatform,ramunasd/platform,Djamy/platform,trustify/oroplatform,Djamy/platform
src/Oro/Bundle/EmailBundle/Resources/public/js/app/modules/views-module.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport Vue from 'vue';\nimport app from './App';<% if (extraConfig.isUseVueRouter) { %>\nimport VueRouter from 'vue-router';\nimport { configRouter } from './route';<% } %>\n<% if (extraConfig.isUseVueRouter) { %>\nVue.use(VueRouter);\n...
javascript
edit
null
null
mit
a773fb3910892ce18e9566f849a8ab3069367c0d
PeachScript/generator-abstack-vuejs,PeachScript/generator-abstack-vuejs
app/templates/_main.js
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n * External dependencies\n */\nimport data, { TYPE_CORE } from 'GoogleComponents/data';\nimport { trackEvent } from 'assets/js/util/tracking';\n\nconst ACCEPTED = 'accepted';\nconst DISMISSED = 'dismissed';\n\n/**\n * Marks the giv...
javascript
edit
0
1
apache-2.0
7ba9860efaf5e6eee85d3343cd257e8f46c78a06
google/site-kit-wp,google/site-kit-wp,google/site-kit-wp,google/site-kit-wp
assets/js/components/notifications/site/mark-notification.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n * Retrieves the first wikipedia article for a provided\n * name and passes it to the provided callback. If it fails,\n * \"null\" will be provided to the callback, or if provided,\n * the failCallback will be called.\n */\nfunctio...
javascript
edit
0
5
mit
4e335d931c15995c29989cc2e5e6b2ac77fbd4eb
thenaterhood/todayinmy.city,thenaterhood/todayinmy.city,thenaterhood/todayinmy.city
assets/js/wikipedia.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst numberOfPlannedTests = 6\ncasper.test.begin('test-trigger-upload-on-file-selection', numberOfPlannedTests, (test) => {\n casper.start(`http://${testhost}/trigger-on-file-select`, function () {\n })\n\n casper.then(function () {...
javascript
edit
0
1
mit
0a480399709fb4b22b1e6be4edc32ceb261520f8
transloadit/jquery-sdk,transloadit/jquery-sdk,transloadit/jquery-sdk
tests/system/test-trigger-upload-on-file-selection.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nrequire([ 'gitbook' ], function (gitbook) {\n gitbook.events.bind('start', function (e, config) {\n var githubURL = config.github.url;\n\n if (githubURL) {\n jQuery('.book-header > h1').before(\n '<a href=\"' + github...
javascript
edit
0
3
apache-2.0
de4f102e9e02ecdf6778ee3a2e5cd60a65cea2c4
GitbookIO/plugin-github
assets/github.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar updatable = function() {\n var self = this;\n\n // Update all children\n this.on('update', dt => {\n self.children.forEach(child => {\n if (child.update) {\n child.trigger('update', dt);\n }\n });\n });\n}...
javascript
edit
0
2
mit
abc6c2d42c1f5d7063974ac0bd196bbf05b3205a
freezedev/flockn,freezedev/flockn
src/mixins/updateable.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport DS from 'ember-data';\nimport ProjectedModel from './projected-model';\nimport Proj from '../utils/projection-attributes';\n\nvar Model = ProjectedModel.extend({\n firstName: DS.attr('string'),\n lastName: DS.attr('string'),\n ...
javascript
edit
0
0
mit
3f7e152cbcbca8429658b45a6805d0ff5d721d05
Flexberry/ember-flexberry,Flexberry/ember-flexberry,Flexberry/ember-flexberry,Flexberry/ember-flexberry
app/models/employee.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React from 'react';\nimport SocialLinks from './SocialLinks';\nimport { withClassName } from './HOC';\nimport { currentYear } from '../utils';\n\n\nfunction Footer({ className }) {\n return (\n <footer className={className}>\...
javascript
edit
0
1
mit
101d2d24a28145bd1352c96d4e361223dd0a464d
slavapavlutin/pavlutin-node,slavapavlutin/pavlutin-node
src/js/components/Footer.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n(function (env) {\n \"use strict\";\n env.ddg_spice_<: $lia_name :> = function(api_result){\n\n // Validate the response (customize for your Spice)\n if (api_result.error) {\n return Spice.failed('<: $lia_...
javascript
edit
null
null
apache-2.0
01d5c7a264f47306646e04cabab5d5e08ec76d20
shyamalschandra/zeroclickinfo-spice,P71/zeroclickinfo-spice,soleo/zeroclickinfo-spice,Retrobottega/zeroclickinfo-spice,toenu23/zeroclickinfo-spice,kevintab95/zeroclickinfo-spice,whalenrp/zeroclickinfo-spice,GrandpaCardigan/zeroclickinfo-spice,imwally/zeroclickinfo-spice,lw7360/zeroclickinfo-spice,TomBebbington/zeroclic...
template/share/spice/example/example.js
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```javascript\nclass MCWorkflowProcessTemplatesComponentController {\n /*@ngInit*/\n constructor(templates) {\n this.templates = templates.get();\n this.templateTypes = [\n {\n title: 'CREATE SAMPLES',\n ...
javascript
edit
0
2
mit
0ce9fc2c69582df5b749d028a6c18d53c3bd7df3
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/processes/mc-workflow-process-templates.component.js
rejected_duplicate
Near-duplicate of sample 82391
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar numericString = function (number) {\n var string = ('' + number).split('.'),\n length = string[0].length,\n places = 0;\n\n while (--length) {\n places += 1;\n // At every third position we want to insert a comma\n...
javascript
edit
0
3
mit
e53e51c0adf5a027148067ccbf06535e49bea469
saurabhjn76/code-problems,angelkar/code-problems,sethdame/code-problems,jefimenko/code-problems,lgulliver/code-problems,caoglish/code-problems,lgulliver/code-problems,SterlingVix/code-problems,aloisdg/code-problems,diversedition/code-problems,patrickford/code-problems,caoglish/code-problems,caoglish/code-problems,patri...
numeric-string/numeric-string.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n//----------------------------------------------------------------------------\n// Copyright (C) 2013 The IPython Development Team\n//\n// Distributed under the terms of the BSD License. The full license is in\n// the file COPYING, ...
javascript
edit
0
2
bsd-3-clause
b8a79dd951253822bcfe1f48f6eb7f351d457f02
ipython/ipython,ipython/ipython
IPython/html/static/notebook/js/widgets/button.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport { GET_TONE } from '../actions/index';\n\nexport default function (state = [], action) {\n switch (action.type) {\n case GET_TONE:\n return action.payload.data;\n\n default:\n return state;\n }\n}\n\n```\n\nApply...
javascript
edit
0
3
mit
1b95d90af76ebeea88e3c12b34c3360b09486ea8
badT/Chatson,badT/twitchBot,dramich/twitchBot,dramich/Chatson,dramich/Chatson,TerryCapan/twitchBot,TerryCapan/twitchBot,dramich/twitchBot,badT/Chatson,badT/twitchBot
src/reducers/reducerTone.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n\n'use strict';\n\nvar path = require('path');\n\nvar expect = require('thehelp-test').expect;\n\nvar util = require('./util');\n\n\ndescribe('bunyan', function() {\n var child;\n\n before(function(done) {\n this.timeout(10000);\n\...
javascript
edit
0
2
mit
b15abeabe4b0b395485cb8754e05732c9de4953d
thehelp/log-shim
test/integration/server/test_bunyan.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nvar should = require('should');\nvar utils = require('./utilsCtrl.js');\n\ndescribe('utilsCtrl tests', function() {\n\n\n it('should find list with some id', function(done) {\n var lists = {\n listContainer1: [...
javascript
edit
0
1
mit
b5750d7cb92e99e8eb2fb6e419336d2e5a96c521
safv12/trello-metrics,safv12/trello-metrics
server/api/controllers/utils/utilsCtrl.spec.js
accepted
null
true