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\nconst childProcess = require(\"child_process\");\nconst electron = require(\"electron\");\nconst webpack = require(\"webpack\");\nconst config = require(\"./webpack.app.config\");\n\nconst compiler = webpack(config({ development: true }...
javascript
edit
0
4
mit
6951e92d15472187976538ed98cb9d572ce426bc
szwacz/electron-boilerplate,szwacz/electron-boilerplate
build/start.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React, { PropTypes } from 'react';\nimport { Link, IndexLink } from 'react-router';\n\n// This is a class-based component because the current\n// version of hot reloading won't hot reload a stateless\n// component at the top-leve...
javascript
edit
0
1
mit
c2e2b863bb2f18f3825a1c1ae19983c345a8db30
user01/PresidentialDebates,user01/PresidentialDebates,user01/PresidentialDebates
frontend/src/components/App.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React, {Component, PropTypes} from 'react'\nimport BoardContainer from './BoardContainer'\nimport {Provider} from 'react-redux'\nimport {createStore} from 'redux'\nimport boardReducer from '../reducers/BoardReducer'\n\nlet store ...
javascript
edit
0
1
mit
ae0031e09a40434d24bfa344bf099aa4c8cbaad5
rcdexta/react-trello,rcdexta/react-trello
src/components/Board.js
rejected_duplicate
Near-duplicate of sample 88476
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport { Component } from 'can';\nimport './list.less';\nimport view from './list.stache';\nimport Restaurant from '~/models/restaurant';\n\nconst RestaurantList = Component.extend({\n tag: 'pmo-restaurant-list',\n view,\n ViewModel:...
javascript
edit
0
1
mit
a57628e33816f3740ccb39dd295310f34583b85d
donejs/donejs,donejs/donejs
guides/place-my-order/steps/add-data/list.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n * Copyright 2015-present 650 Industries. All rights reserved.\n *\n * @providesModule FeaturedExperiences\n */\n'use strict';\n\nfunction setReferrer(newReferrer) {\n // NOOP. Shouldn't get here.\n}\n\nfunction getFeatured() {\n ...
javascript
edit
0
1
bsd-3-clause
ffbd3bf025e9f8f72f8b4cb42e9be653ecdb08b3
jolicloud/exponent,jolicloud/exponent,exponent/exponent,exponentjs/exponent,jolicloud/exponent,exponentjs/exponent,jolicloud/exponent,exponent/exponent,exponentjs/exponent,exponent/exponent,exponentjs/exponent,exponentjs/exponent,exponent/exponent,exponentjs/exponent,exponentjs/exponent,exponentjs/exponent,exponent/exp...
js/FeaturedExperiences.ios.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n#!/usr/bin/env node\n// daab run\n\nvar fs = require('fs');\nvar spawn = require('child_process').spawn;\nvar program = require('commander');\nvar auth = require('./auth');\n\nprogram\n .allowUnknownOption()\n .parse(process.argv);\n\...
javascript
edit
0
0
mit
01c5311c3027c893ddd76cfbec42d88baece1564
lisb/daab,lisb/daab,lisb/daab
lib/daab-run.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport * as React from 'react'\nimport { Link } from 'gatsby'\n\nimport { Container } from './Container'\nimport { CloseIcon } from './icons/Close'\n\nexport const Menu = ({ showMenu, onClick }) => {\n return (\n <div\n classNa...
javascript
edit
0
1
mit
b569d9e348d345f6c6b1135c5fbb49a189e21f42
dtjv/dtjv.github.io
src/components/Menu.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n//app-specific sentence\n\nmodule.exports = {\n serverPort : 8080,\n pingInteralInMilliseconds : 1000*5, // server main loop interval. 6 hours\n postBeforeTheMatch : true,\n postAfterTheMatch : true,\n preMatchWindowInMinutes: \"in...
javascript
edit
0
0
mit
cb7ab80f26922a025297d20fe791e8c0b0a01ca7
matijaabicic/Moubot,d48/Moubot,matijaabicic/Moubot,matijaabicic/Moubot,dougmolineux/Moubot
settings.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar check = {\n\tisNaN : function(value) {\n\t\t\"use strict\";\n\n\t\treturn isNaN(value);\n\t},\n\tisZero : function(value) {\n\t\t\"use strict\";\n\n\t\treturn value === 0;\n\t},\n\tisPositiveZero : function(value) {\n\t\t\"use stric...
javascript
edit
0
2
mit
210c0478bd061571f62bb0a841400bd24e325acb
kchapelier/node-mathp
lib/check.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/*\n Hide posts you don't like\n */\n\nlet main = require('./main');\n\n// Remember hidden posts for 7 days only, to perevent the cookie from\n// eclipsing the Sun\nlet hidden = new main.Memory('hide', 7, true);\n\nmain.reply('hide', fu...
javascript
edit
0
2
mit
b4b33ec346e1f6e6fb7f5eea1c9674d33a6d2831
theGaggle/sleepingpizza,KoinoAoi/meguca,KoinoAoi/meguca,theGaggle/sleepingpizza,reiclone/doushio,reiclone/doushio,reiclone/doushio,theGaggle/sleepingpizza,reiclone/doushio,theGaggle/sleepingpizza,KoinoAoi/meguca,KoinoAoi/meguca,KoinoAoi/meguca,theGaggle/sleepingpizza,theGaggle/sleepingpizza,reiclone/doushio
client/hide.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\n/**\n * Deduplicate one addon's children addons recursively from hostAddons.\n *\n * @private\n * @param {Object} hostAddons\n * @param {EmberAddon} dedupedAddon\n * @param {String} treeName\n */\nmodule.exports = funct...
javascript
edit
0
9
mit
38733fd891f6d3022a5c0bd7aef98c4ee7ad5b55
ember-engines/ember-engines,ember-engines/ember-engines
packages/ember-engines/lib/utils/deeply-non-duplicated-addon.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar pristineEnv = require('./pristine-env');\n\nfunction macgyver(thing) {\n if (Object.prototype.toString.call(thing) === '[object Array]') {\n return (new pristineEnv().Array(0)).concat(thing);\n } else {\n return ...
javascript
edit
0
2
mit
5ecc6a9de257eb6872946a01f5929a2bfa94bf79
customcommander/macgyver
lib/macgyver.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nvar bunyan = require('bunyan');\nvar config = require('coyno-config');\n\nfunction createLogger() {\n var log;\n\n if (!!config.log.pretty) {\n var PrettyStream = require('bunyan-prettystream');\n\n var prettySt...
javascript
edit
0
2
apache-2.0
30b859c827ed450fbf7a52a18aa92af79c11e5e4
blooks/log
lib/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nrequire('./db/connection');\n\nconst Koa = require('koa');\nconst bodyParser = require('koa-bodyparser');\nconst logger = require('koa-logger');\nconst json = require('koa-json');\nconst onerror = require('koa-onerror');\nconst router =...
javascript
edit
0
2
apache-2.0
8d62ce5afa50ccbe21b516f3cc39d0c7ca20b922
fkanout/NotifyDrive-API
lib/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// https://www.codewars.com/kata/death-by-coffee/javascript\n\nconst coffeeLimits = function(y,m,d) {\n let healthNumber = y * 10000 + m * 100 + d;\n let currentHex;\n let current;\n let i;\n let result = [0,0];\n for(...
javascript
edit
0
5
mit
f315636aec6965e0fe1394775bc4e97a67ad11aa
sunnysetia93/competitive-coding-problems,sunnysetia93/competitive-coding-problems,sunnysetia93/competitive-coding-problems,sunnysetia93/competitive-coding-problems,sunnysetia93/competitive-coding-problems,sunnysetia93/competitive-coding-problems
CodeWars/js/death-by-coffee.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// Utility for rendering html images to files\n'use strict';\nconst webshot = require('webshot');\nconst Jimp = require('jimp');\nconst fs = require(`fs`);\n\nconst webshotOptions = {\n windowSize: { width: 1024, height: 768 }\n, shot...
javascript
edit
0
3
mit
5c0a550bc9c68f0281bd1b61e93985cbaed962c0
GoodGamery/mtgnewsbot,GoodGamery/mtgnewsbot
src/lib/render-image.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst redis = require('redis')\nconst config = require('config')\nconst url = require('url')\nconst logger = require('./logger.js')()\n\nconst initRedisClient = function () {\n let client, redisInfo\n if (config.redis.url) {\n redi...
javascript
edit
0
2
bsd-3-clause
db31f1d00912d3720c8b2af5257d8727347e4d94
codeforamerica/streetmix,codeforamerica/streetmix,codeforamerica/streetmix
lib/redis.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/*global define*/\ndefine([\n '../Core/freezeObject'\n ], function(\n freezeObject) {\n \"use strict\";\n\n /**\n * The render pass for a command.\n *\n * @private\n */\n var Pass = {\n G...
javascript
edit
0
1
apache-2.0
fe4d6b89e779c357d6bdc00c46c6c28bc549ecc5
CesiumGS/cesium,AnimatedRNG/cesium,likangning93/cesium,denverpierce/cesium,jason-crow/cesium,ggetz/cesium,kiselev-dv/cesium,esraerik/cesium,esraerik/cesium,emackey/cesium,omh1280/cesium,soceur/cesium,jason-crow/cesium,emackey/cesium,YonatanKra/cesium,YonatanKra/cesium,omh1280/cesium,AnimatedRNG/cesium,kiselev-dv/cesium...
Source/Scene/Pass.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// Check JS assets for code quality\nmodule.exports = function(grunt) {\n grunt.config('jshint', {\n all: ['Gruntfile.js',\n 'scripts/main.js'],\n });\n\n grunt.loadNpmTasks('grunt-contrib-jshint');\n};\n\n`...
javascript
edit
0
1
mit
ffdfc42c910a9d09d4cddc9c5df46d44d1e10ca8
yellowled/yl-bp,yellowled/yl-bp
grunt/contrib-jshint.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport fs from 'fs';\nimport {\n pdf,\n View,\n Text,\n Link,\n Page,\n Font,\n Note,\n Image,\n version,\n Document,\n StyleSheet,\n PDFRenderer,\n createInstance,\n} from './index';\n\nexport const renderToStream = functi...
javascript
edit
null
null
mit
789eb9cc78ecaf8e7e04dc8ca1dc8ac7b48f86de
diegomura/react-pdf,diegomura/react-pdf
src/node.js
rejected_code_smell
Internal duplication: ~85% of the file is inside repeated 12+ line blocks
null
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst Handlebars = require('handlebars');\n\nHandlebars.registerHelper('removeBreak', (text) => {\n text = Handlebars.Utils.escapeExpression(text);\n text = text.replace(/(\\r\\n|\\n|\\r)/gm, ' ');\n return new Handlebars.SafeString(...
javascript
edit
0
3
mit
fcf4357086a308bf9a9164f496c167e02e01ba17
t32k/stylestats
lib/template.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/*\n * Copyright 2016 Hewlett-Packard Development Company, L.P.\n * Licensed under the MIT License (the \"License\"); you may not use this file except in compliance with the License.\n */\n\ndefine(['underscore'], function(_) {\n\n r...
javascript
edit
0
1
mit
030d0f7d611c4b99819564f984354a659b2fa35a
hpautonomy/find,hpautonomy/find,LinkPowerHK/find,hpe-idol/java-powerpoint-report,hpautonomy/find,hpe-idol/find,hpautonomy/find,LinkPowerHK/find,hpe-idol/find,hpe-idol/find,hpe-idol/find,hpe-idol/java-powerpoint-report,LinkPowerHK/find,hpe-idol/find,LinkPowerHK/find,LinkPowerHK/find,hpautonomy/find
core/src/main/public/static/js/find/app/page/search/results/state-token-strategy.js
accepted
null
true
[ { "role": "user", "content": "Write javascript code for the following: Add ES5 test by @stoeffel" }, { "role": "assistant", "content": "import test from 'tape-catch';\n\nvar Symbol = require('es6-symbol');\nvar { curry, _ } = require('../module/index')({ Symbol });\n\ntest('The API is in good sh...
javascript
new_file
null
null
mit
35ba2674051ab6201382af6dda76e1531e8ef612
thisables/curry,togusafish/stoeffel-_-curry-this,stoeffel/curry-this
test/es5.js
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```javascript\nfunction Metronome(tempo, beatsPerMeasure){\n this.tempo = Number(tempo);\n this.beatsPerMeasure = Number(beatsPerMeasure);\n this.interval = null;\n}\n\nMetronome.prototype.start = function(){\n var millisecondsToWait = this.tempoT...
javascript
edit
0
2
mit
54306bafd423daff49272d4605bf84ae7a7471c8
dmilburn/beatrice,dmilburn/beatrice
js/metronome.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nPhoto = function (doc) {\n _.extend(this, doc);\n};\n\n_.extend(Photo.prototype, {\n\tgetImgTag: function (dimension) {\n\t\treturn {\n\t\t\t'class': 'lazy',\n\t\t\t'data-src': _.str.sprintf(\n\t\t\t\t'%s/photos/%s/%s',\n\t\t\t\tMeteor...
javascript
edit
0
1
mit
8e279cc54dcc083bf49940a572b0574881bbeea8
nburka/black-white
www/lib/collections/photos.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n(function () {\n var root = this;\n var $file_input = document.querySelector(\"input#file\");\n var $holder = document.querySelector(\"#notebook-holder\");\n\n var render_notebook = function (ipynb) {\n var notebook =...
javascript
edit
0
2
mit
dba8dc2f41ffdf023bbfb8dbf92826c6c799a0b0
jsvine/nbpreview,jsvine/nbpreview
js/nbpreview.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/*\n * Author: Pierre-Henry Soria <<EMAIL>>\n * Copyright: (c) 2015-2017, Pierre-Henry Soria. All Rights Reserved.\n * License: GNU General Public License; See PH7.LICENSE.txt and PH7.COPYRIGHT.txt in the root directory...
javascript
edit
0
1
mit
c3f9e5eff4b8b7e7de0e4a6f7da1faad077b23ee
pH7Software/pH7-Social-Dating-CMS,pH7Software/pH7-Social-Dating-CMS,pH7Software/pH7-Social-Dating-CMS,pH7Software/pH7-Social-Dating-CMS
templates/system/modules/ph7cms-donation/themes/base/js/donationbox.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport { debuglog } from 'util';\nimport AbstractCache from './abstract';\n\nexport default class ListCache extends AbstractCache {\n constructor() {\n super();\n\n this._log = debuglog('cache');\n this._date = null;\n\n th...
javascript
edit
0
4
mit
7044032b4ace71eda06a99a5389edf0289179602
scola84/node-api-cache
src/list.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport Vue from 'vue';\nimport VueResource from 'vue-resource';\nimport VueRouter from 'vue-router';\n\nimport App from './App.vue';\nimport About from './components/About.vue';\n\nimport store from './store';\nimport routes from './rou...
javascript
edit
0
0
mit
d4660759d672c90a23fe0944082cff0083d691a0
dmurtari/mbu-frontend,dmurtari/mbu-frontend
src/main.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst chalk = require('chalk');\n\nLOG_TYPES = {\n NONE: 0,\n ERROR: 1,\n NORMAL: 2,\n DEBUG: 3\n};\n\nlet logType = LOG_TYPES.NORMAL;\n\nconst setLogType = (type) => {\n if (!(type in Object.values(LOG_TYPES))) return;\n...
javascript
edit
0
2
mit
30100c0d4d320abbe3004f795b7121d3dfebdaf5
illuspas/Node-Media-Server,illuspas/Node-Media-Server
logger.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\ndefine(['rules/rules.module'\n ],\nfunction() {\n angular.module('rules').factory('references',\n [\n function() {\n function generateReference(query) {\n var url = ('#/rules/explain?inference=' +\n ...
javascript
edit
0
2
apache-2.0
caf9ce480560406d0354cf20a93323e2e08ca7c1
Wikidata/SQID,Wikidata/WikidataClassBrowser,Wikidata/WikidataClassBrowser,Wikidata/SQID,Wikidata/SQID,Wikidata/WikidataClassBrowser,Wikidata/SQID,Wikidata/SQID,Wikidata/SQID,Wikidata/SQID
src/app/rules/references.service.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst Bluebird = require('bluebird');\nconst mongoose = require('mongoose');\nconst Alternative = require('../app/models/alternative');\nconst Election = require('../app/models/election');\nconst Vote = require('../app/models/vote');\nc...
javascript
edit
0
1
mit
af9403793eefb5b3ee0217b077cb41a480251667
webkom/vote,webkom/vote,webkom/vote,webkom/vote
test/helpers.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nvar resourcify = angular.module('resourcify', []);\n\nfunction resourcificator ($http, $q) {\n\n var $resourcifyError = angular.$$minErr('resourcify'),\n requestOptions = ['query', 'get', '$get', '$save', '$update...
javascript
edit
0
1
mit
a1694721011727b4570e21d444e6b23835d42a1c
erikdonohoo/resourcify,erikdonohoo/resourcify
src/main.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n//SatisfactionRatings.js: Client for the zendesk API.\n\n\nvar util = require('util'),\n Client = require('./client').Client,\n defaultgroups = require('./helpers').defaultgroups;\n\n\nvar SatisfactionRatings = exports...
javascript
edit
0
1
mit
b3827c12d2092ec93813470ec0b9a81d4d554d08
blakmatrix/node-zendesk,blakmatrix/node-zendesk
lib/client/satisfactionratings.js
rejected_duplicate
Near-duplicate of sample 96427
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar selftest = require('../selftest.js');\nvar Sandbox = selftest.Sandbox;\nvar files = require('../files.js');\n\n// Add plugins to an app. Change the contents of the plugins and their\n// dependencies, make sure that the app still ref...
javascript
edit
0
1
mit
9fd8b1cd47f6c9f03879427abf471f3d9be49738
benstoltz/meteor,dandv/meteor,allanalexandre/meteor,brdtrpp/meteor,neotim/meteor,tdamsma/meteor,newswim/meteor,PatrickMcGuinness/meteor,4commerce-technologies-AG/meteor,DCKT/meteor,fashionsun/meteor,DAB0mB/meteor,emmerge/meteor,dfischer/meteor,ljack/meteor,servel333/meteor,lpinto93/meteor,deanius/meteor,benjamn/meteor,...
tools/tests/cordova-platforms.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar semver = require('semver');\n\nvar versions = module.exports;\n\n/**\nReturns a number representation of the version number that can be compared with other such representations\ne.g. compareable('0.6.12') > compareable('0.6.10')\n*/...
javascript
edit
0
13
mit
204918caff2feeff82f10300364edd43b8e1f4ea
marcelklehr/nodist,marcelklehr/nodist,marcelklehr/nodist,nullivex/nodist,nullivex/nodist,nullivex/nodist
lib/versions.js
rejected_complexity
Cyclomatic complexity too high: 13
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nmodule.exports = (api) => {\n\n api.metasync.throttle = (\n // Function throttling\n timeout, // time interval\n fn, // function to be executed once per timeout\n args // arguments array for fn (optional)\n...
javascript
edit
0
3
mit
1657a56ec025e6670d72c20f1cf87f80ab9c7de6
metarhia/MetaSync,DzyubSpirit/MetaSync,DzyubSpirit/MetaSync
lib/throttle.js
rejected_duplicate
Near-duplicate of sample 68511
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n * Module dependencies.\n */\nvar TokenError = require('./tokenerror');\n\n/**\n * `TokenError` error.\n *\n * @api public\n */\nfunction MFARequiredError(message, uri, user) {\n TokenError.call(this, message, 'mfa_required', uri)...
javascript
edit
0
1
mit
b933f6e2ba5915d248a954c4c322b91d452d5182
jaredhanson/oauth2orize-2fa
lib/errors/mfarequirederror.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport * as privateMethods from './elements/private-methods.js';\n\nconst callbacks = ['createdCallback', 'attachedCallback', 'detachedCallback', 'attributeChangedCallback'];\n\nexport default function registerElement(tagName, Construct...
javascript
edit
0
3
apache-2.0
adaa54ca513706ad15f858d318dd02895b3a6445
domenic/html-as-custom-elements,domenic/html-as-custom-elements,zenorocha/html-as-custom-elements,valmzetvn/html-as-custom-elements,valmzetvn/html-as-custom-elements,valmzetvn/html-as-custom-elements,domenic/html-as-custom-elements,zenorocha/html-as-custom-elements
src/register-element.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nvar sandboxFactory = require('..'),\n MemoryFS = require('memory-fs'),\n memoryFS = new MemoryFS(),\n sandbox = sandboxFactory.create(memoryFS);\n\nmemoryFS.mkdirpSync('/my/dir');\nmemoryFS.writeFileSync(\n ...
javascript
edit
0
0
mit
6e08a454f936d58fc5fc1720e7a74d94b3bc9c9e
asmblah/playpit
demo/simple.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport HomeView from './HomeView';\nimport JoinView from './JoinView';\n\nexport default class ViewManager {\n\tconstructor(target) {\n\t\tthis.target = target;\n\n\t\tthis.home = new HomeView();\n\t\tthis.join = new JoinView();\n\n\t\t...
javascript
edit
0
4
mit
f9069b0f601cfa508da172be105f1d0be35acd4c
richterdennis/CastleCrush,richterdennis/CastleCrush
js/views/ViewManager.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport Ember from 'ember';\nimport AuthenticatedRouteMixin from 'ember-simple-auth/mixins/authenticated-route-mixin';\n\nconst { Route, RSVP } = Ember;\nconst { Promise, all, map } = RSVP;\n\nexport default Route.extend(AuthenticatedRou...
javascript
edit
0
1
mit
93f2591b913d31cf6521812f1fed6969efe0401e
gboushey/frontend,ilios/frontend,jrjohnson/frontend,stopfstedt/frontend,dartajax/frontend,jrjohnson/frontend,dartajax/frontend,stopfstedt/frontend,ilios/frontend,djvoa12/frontend,gabycampagna/frontend,thecoolestguy/frontend,thecoolestguy/frontend,gboushey/frontend,djvoa12/frontend,gabycampagna/frontend
app/routes/course-materials.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// Parse backticks\n\n'use strict';\n\nmodule.exports = function backtick(state, silent) {\n var start, max, marker, matchStart, matchEnd, token,\n pos = state.pos,\n ch = state.src.charCodeAt(pos);\n\n if (ch !== 0x60/* ` *...
javascript
edit
0
10
mit
87f7091e84b9cad0589160584f85d979b21df4e8
GerHobbelt/markdown-it,GerHobbelt/markdown-it
lib/rules_inline/backticks.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\ngRenderer = {\r\n frame: 0,\r\n render: function() {\r\n this.context.fillStyle = '#000';\r\n this.context.fillRect(0, 0, this.context.canvas.width, this.context.canvas.height);\r\n\r\n switch (gScene.scene) {\r\n case '...
javascript
edit
0
8
mit
9a5eede1ae59e712eb17aec182af1468fd409a15
peternatewood/shmup,peternatewood/shmup,peternatewood/shmup
render.js
rejected_duplicate
Near-duplicate of sample 96443
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nManageIQ.angular.app.directive('resetValidationStatus', ['$rootScope', function($rootScope) {\n return {\n require: 'ngModel',\n link: function (scope, elem, attrs, ctrl) {\n scope.$watch(attrs.ngModel, function() {\n ...
javascript
edit
0
7
apache-2.0
9b6c06ddb62f358a73e3d243c9533c068a5b0bda
fbladilo/manageiq,agrare/manageiq,durandom/manageiq,mkanoor/manageiq,borod108/manageiq,matobet/manageiq,NickLaMuro/manageiq,josejulio/manageiq,aufi/manageiq,maas-ufcg/manageiq,maas-ufcg/manageiq,d-m-u/manageiq,tinaafitz/manageiq,matobet/manageiq,mzazrivec/manageiq,kbrock/manageiq,ilackarms/manageiq,jvlcek/manageiq,roma...
app/assets/javascripts/directives/validation/reset_validation_status.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar Promise = require('es6-promise').Promise;\nvar lodash = require('lodash');\nvar validateWithHtmllint = require('./html/htmllint.js');\nvar validateWithSlowparse = require('./html/slowparse.js');\n\nfunction filterErrors(errors) {\n ...
javascript
edit
0
1
mit
e0fcee4687d0d97fefcef72bc828fcfb0a197da1
jwang1919/popcode,jwang1919/popcode,jwang1919/popcode,jwang1919/popcode,popcodeorg/popcode,outoftime/learnpad,outoftime/learnpad,popcodeorg/popcode,popcodeorg/popcode,popcodeorg/popcode
src/validations/html.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst LifeforcePlugin = require(\"../utils/LifeforcePlugin.js\");\n\nconst serverhostname = \"http://localhost:16001\";\n//const serverhostname = \"https://api.repkam09.com\";\n\nclass MetaEndpoints extends LifeforcePlugin {\n constr...
javascript
edit
0
1
mit
cdf0bab5f02a914e51be806680e5c7252b873d76
repkam09/repka-lifeforce,repkam09/repka-lifeforce,repkam09/repka-lifeforce
plugins/meta.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n#!/usr/bin/env node\n\"use strict\";\n\nprocess.title = \"oui\";\n\nvar arg = process.argv[2],\n oui = require(\"./\"),\n spin = require(\"char-spinner\");\n\nif (arg === \"--update\") {\n var interval = spin();\n oui.upda...
javascript
edit
0
3
bsd-2-clause
9dd0b0983b9ae8cf45d9505494e0e0afad9094f7
silverwind/oui
oui.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nvar should = require('should');\nvar config = require('../config/configuration.js');\nvar retrieve = require('../lib/provider-google-drive/helpers/retrieve.js');\n\ndescribe(\"Retrieve files\", function () {\n it(\"sho...
javascript
edit
0
2
mit
d9ff1a08d3c89cc88b7436ca97ffda589d322f82
AnyFetch/gdrive-provider.anyfetch.com
test/retrieve.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n * Date.prototype.toISOString()\n * version 0.0.0\n * Feature\t Chrome Firefox Internet Explorer Opera Safari Edge\n * Basic support 3 1 9 10.5 5 12\n * -------------------------------...
javascript
edit
0
2
mit
dd2ac1fb52cb9c154d0b9bf354fd22d250413d94
uxitten/polyfill
date.polyfill.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nlet UserRecipes = require(`${__dirname}/../schemas.js`).UserRecipes;\n\nmodule.exports = {\n signup: (req, res) => {\n\n },\n\n login: (req, res) => {\n\n },\n\n logout: (req, res) => {\n\n },\n\n //Gets all the recipes that belo...
javascript
edit
0
2
mit
b6bc9e62d615242ef0eaa438d961d08a3ea9c72a
JAC-Labs/SkilletHub,JAC-Labs/SkilletHub
server/controllers/usersController.js
rejected_duplicate
Near-duplicate of sample 100341
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n//Import events\nconst events = require('events');\n\n//Create EventHandler function\nclass EventHandler extends events.EventEmitter {\n constructor() {\n super()\n }\n \n registered() {\n this.emit('registered'...
javascript
edit
0
1
isc
8abac9363de638edb93bfd3e9744ccb78930aace
Kurimizumi/Honeybee-Hive
Honeybee/EventHandler.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/* \n * To Title Case 2.0 – http://individed.com/code/to-title-case/\n * Copyright © 2008–2012 David Gouch. Licensed under the MIT License. \n */\n\nString.prototype.toTitleCase = function() {\n var smallWords = /^(a|an|and|as|at|but|...
javascript
edit
0
7
mit
5fccae541140aa7d96be0566c97165cc84a6fd5f
rvagg/titlecase,fiatjaf/titulo,gouch/to-title-case,rvagg/titlecase,SaintPeter/titlecase,SaintPeter/titlecase,gouch/to-title-case
to-title-case.js
rejected_duplicate
Near-duplicate of sample 68296
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/*\n Makes API calls to fetch caretaker roles.\n\n However, until there is an API to call, it returns canned data.\n*/\n\nexport default class CaretakerRolesGateway {\n\n static allRoles = null;\n\n static getAll() {\n if...
javascript
edit
0
2
mit
76a4a74053b07d7fe6a1d98ee0271173dbc58cf8
araneforseti/caretaker-app,araneforseti/caretaker-app,araneforseti/caretaker-app,araneforseti/caretaker-app
App/data/CaretakerRolesGateway/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports = {\n extends: [\"matrix-org\"],\n plugins: [\n \"babel\",\n ],\n env: {\n browser: true,\n node: true,\n },\n\n rules: {\n \"no-var\": [\"warn\"],\n \"prefer-rest-para...
javascript
edit
0
0
apache-2.0
212b6c3a0ffb9eb7595b3987fa77040cadd92054
matrix-org/matrix-js-sdk,matrix-org/matrix-js-sdk,matrix-org/matrix-js-sdk,matrix-org/matrix-js-sdk
.eslintrc.js
rejected_duplicate
Near-duplicate of sample 98437
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports = [\n { action: '\\\\sqrt', label: '\\\\sqrt{X}' },\n { action: '^', label: 'x^{X}' },\n { action: '\\\\frac', label: '\\\\frac{X}{X}' },\n { action: '\\\\int', label: '\\\\int_{X}^{X}' },\n { action: '\\\\...
javascript
edit
0
0
mit
8f3ea6b47eb1f4d0265676527652c333c36a21ca
digabi/rich-text-editor,digabi/math-editor,digabi/math-editor,digabi/rich-text-editor,digabi/rich-text-editor
app/latexCommands.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst UserController = require('../src/Http/Controllers/User');\n\nconst { define, wrap, post, get } = require('spirit-router');\nconst { json } = require('body-parser');\nconst express = require('spirit-express');\n\nmodule.exports = ...
javascript
edit
0
0
mit
2030607c7012d78233deb3882f94bdac1fb6aff2
diogoazevedos/corpus,diogoazevedos/corpus
routes/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports = {\n \"extends\": \"airbnb\",\n \"parser\": \"babel-eslint\",\n \"plugins\": [\n \"react\"\n ],\n \"rules\": {\n \"react/prop-types\": 0,\n \"space-before-function-paren\": [2, { \"anonymo...
javascript
edit
0
0
mit
cec4c7a7fdd96499e83642a82c3a14bd4cb361b4
mersocarlin/pokedex-app,mersocarlin/pokedex-app,mersocarlin/pokedex-app
.eslintrc.js
rejected_duplicate
Near-duplicate of sample 71871
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports = {\n root: true,\n parser: 'babel-eslint',\n parserOptions: {\n sourceType: 'module'\n },\n // https://github.com/feross/standard/blob/master/RULES.md#javascript-standard-style\n extends: 'standard',\n plugins:...
javascript
edit
0
0
mit
8a22be70adca8bd7dd632f07451b878515dcfd58
cngu/vue-typer,cngu/vue-typer
.eslintrc.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n(function () {\n angular\n .module('GVA.Creation')\n .controller('CreateBasicPageController', ['$scope', 'AccountService', 'PollService',\n function ($scope, AccountService, PollService) {\n\n $scope....
javascript
edit
0
1
apache-2.0
d6b8f2f017d2f28854d51ff3210c734352b8ca6a
Generic-Voting-Application/voting-application,stevenhillcox/voting-application,JDawes-ScottLogic/voting-application,JDawes-ScottLogic/voting-application,tpkelly/voting-application,JDawes-ScottLogic/voting-application,tpkelly/voting-application,Generic-Voting-Application/voting-application,stevenhillcox/voting-applicati...
VotingApplication/VotingApplication.Web/Scripts/Controllers/CreateBasicPageController.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nangular.module('gitphaser') \n .controller('NearbyCtrl', NearbyCtrl); \n\n// @controller NearbyCtrl\n// @params: $scope, $reactive\n// @route: /tab/nearby\n//\n// Exposes Meteor mongo 'connections' to DOM, filtered against current use...
javascript
edit
0
2
mit
f3ab92fb8626916d7824409c9b514854d28ab51e
git-phaser/git-phaser,git-phaser/git-phaser,git-phaser/git-phaser,git-phaser/git-phaser
www/js/Controllers/nearby.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// toggle display of all code cells' inputs\n\ndefine([\n 'jquery',\n 'base/js/namespace',\n 'base/js/events'\n], function(\n $,\n Jupyter,\n events\n) {\n \"use strict\";\n\n function initialize () {\n co...
javascript
edit
0
3
bsd-3-clause
7dfbb87add262139525d9981f6024a46bbc52190
ipython-contrib/IPython-notebook-extensions,jcb91/IPython-notebook-extensions,juhasch/IPython-notebook-extensions,ipython-contrib/IPython-notebook-extensions,jcb91/IPython-notebook-extensions,jcb91/IPython-notebook-extensions,ipython-contrib/IPython-notebook-extensions,ipython-contrib/IPython-notebook-extensions,juhasc...
src/jupyter_contrib_nbextensions/nbextensions/export_embedded/main.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst $answer = $('.answer')\nconst {makeRichText} = require('./math-editor')\n\nconst save = ($elem, async = true) => $.post({\n url: '/save',\n data: {text: $elem.html(), answerId: $elem.attr('id')},\n async\n})\n\nfunction s...
javascript
edit
0
5
mit
1883460122f4690d84f673ef083d23b95f3abcd5
digabi/rich-text-editor,digabi/rich-text-editor,digabi/rich-text-editor,digabi/math-editor,digabi/math-editor
app/student.front.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst { getContact } = require('../../contacts/repos')\n\nfunction setInteractionsDetails (req, res, next) {\n res.locals.interactions = {\n returnLink: `/contacts/${req.params.contactId}/interactions/`,\n entityName: `${res.loca...
javascript
edit
0
2
mit
86de60799199c39949c6f862997752c688572c91
uktrade/data-hub-fe-beta2,uktrade/data-hub-frontend,uktrade/data-hub-fe-beta2,uktrade/data-hub-frontend,uktrade/data-hub-frontend
src/apps/contacts/middleware/interactions.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports = {\n options: {\n map: true, // inline sourcemaps\n\n processors: [\n require('pixrem')(), // add fallbacks for rem units\n require('autoprefixer-core')({\n // add vendor prefixes\n ...
javascript
edit
0
0
mit
8f5dda30829b7439f0fc49d8e1fe86623980dc3b
ideus-team/html-framework,ideus-team/html-framework
dev/grunt/postcss.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// Copyright 2012 Google 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//\n// http:/...
javascript
edit
0
4
apache-2.0
ca0425c4149e8a3dd736abef6a13967d8d656f20
japacible/accessibility-developer-tools-extension,modulexcite/accessibility-developer-tools,alice/accessibility-developer-tools,modulexcite/accessibility-developer-tools-extension,ckundo/accessibility-developer-tools,modulexcite/accessibility-developer-tools-extension,kublaj/accessibility-developer-tools,GoogleChrome/a...
src/audits/UnfocusableElementsWithOnClick.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n(function(global) {\n 'use strict';\n define([\n ], function() {\n// $HEADER$\n\n /**\n * This will be the <code>warmsea</code> namespace.\n * @namespace\n * @alias warmsea\n */\n var w = _.extend({}, _);\n\n ...
javascript
edit
0
2
mit
70fab2cf5426def9114bdd40727f4a72593df9e4
warmsea/WarmseaJS
src/core.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport { busy, scheduleRetry } from './actions';\nimport { JS_ERROR } from './constants';\nimport type { Config, OfflineAction, ResultAction } from './types';\n\nconst complete = (\n action: ResultAction,\n success: boolean,\n payloa...
javascript
edit
null
null
mit
0ae0be0b2a0124d19c73f3d1814d92470b1f4960
redux-offline/redux-offline,jevakallio/redux-offline
src/send.js
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```javascript\n#!/usr/bin/env node\n\nvar ncp = require('ncp').ncp;\nvar path = require('path');\n\nrequire('yargs')\n .usage('$0 <cmd> [args]')\n .option('directory', {\n alias: 'd',\n describe: 'Provide the directory to install V...
javascript
edit
0
2
mit
6cdb0bf0cb4872dae918175851b1fec4341bfb97
Lexteam/lexteam.github.io,Lexteam/lexteam.github.io,Lexteam/lexteam.github.io
violet/violet.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n#!/usr/bin/env node\n\nvar _ = require('lodash');\nvar docdown = require('docdown');\nvar fs = require('fs');\nvar path = require('path');\nvar srcPath = path.join(__dirname, '../src');\nvar outPath = path.join(__dirname, '../docs');\n\...
javascript
edit
0
2
mit
482508f2927d05f2be0c58b20d7f9acd35606bc4
helion3/inspire-tree,helion3/inspire-tree
scripts/docs.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/*\n * Module dependencies\n */\n\nvar app = module.parent.exports,\n\tJoiner = require('../libs/joiner').Joiner;\n\n/*\n * Middlewares\n */\n\nfunction isAnotherFile (req, res, next) {\n\tvar folder = req.params.version;\n\tif (folder ...
javascript
edit
0
5
mit
a0bd12dab161141e958e5d437694a7b22283fe8f
amireynoso/uxtest,vrleonel/ml-test,atma/chico,mercadolibre/chico,amireynoso/uxtest,vrleonel/chico,vrleonel/chico,vrleonel/ml-test,mercadolibre/chico,atma/chico
routes/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use babel';\n\nimport yarnExec from '../yarn/exec';\nimport reportError from '../report-error';\n\nconst cleanCache = async () => {\n const success = await yarnExec(null, 'cache', ['clean']);\n\n if (!success) {\n atom.notificatio...
javascript
edit
0
2
mit
70f456cc5409b296cfe481c16614c6444f88b69b
cbovis/atom-yarn
lib/actions/clean-cache.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n(function() {\n\n var defur = require('../../../src/defur');\n var assert = require('chai').assert;\n\n suite('defur:', function() {\n var services = null;\n\n setup(function() {\n services = {};\n ...
javascript
edit
0
1
mit
1c7c0d1635747f12b82c202155045958907ec0c6
adlawson/js-defur,adlawson/js-defur
tests/unit/src/defur.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n * Monkeypatches the EmberApp instance from Ember CLI to contain the hooks we\n * need to filter environment-specific initializers. Hopefully we can upstream\n * similar hooks to Ember CLI and eventually remove these patches.\n */\...
javascript
edit
0
2
mit
c4e58fda577b4f7f9165a788df9204d2646d26a3
tildeio/ember-cli-fastboot,rwjblue/ember-cli-fastboot,ember-fastboot/ember-cli-fastboot,kratiahuja/ember-cli-fastboot,ember-fastboot/ember-cli-fastboot,kratiahuja/ember-cli-fastboot,josemarluedke/ember-cli-fastboot,tildeio/ember-cli-fastboot,rwjblue/ember-cli-fastboot,josemarluedke/ember-cli-fastboot
lib/ext/patch-ember-app.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar historyApiFallback = require(\"connect-history-api-fallback\");\n\nvar dest = \"./build\";\nvar src = './src';\n\n\n\nmodule.exports = {\n browserSync: {\n server: {\n // Serve up our build folder\n b...
javascript
edit
0
0
apache-2.0
0155fca63f25bfbee99e202202f8aa14682d821f
coolcrowd/worker-ui,coolcrowd/worker-ui
gulp/config.js
rejected_duplicate
Near-duplicate of sample 80875
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport isFunction from 'lodash/isFunction';\nimport { createAction as CA, handleActions as handle } from 'redux-actions';\n\n// matches action names with reducers and returns an object to\n// be used with handleActions\n// passes all st...
javascript
edit
0
3
mit
304b03a879b0b427214b90e7ae9f0d576876e954
Vizzuality/climate-watch,Vizzuality/climate-watch,Vizzuality/climate-watch,Vizzuality/climate-watch
app/javascript/app/utils/redux.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React from 'react'\n\nexport default function TravelObject(props) {\n let content = null;\n switch(props.type) {\n case 'event':\n content = <div>Event!</div>;\n break;\n case 'flight':\n...
javascript
edit
0
4
apache-2.0
520b14ea01edc333dff77bf0822729be2ae14d1d
googleinterns/step98-2020,googleinterns/step98-2020
step-capstone/src/Components/TravelObject.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n\"use strict\";\n\n// Generators for Arethusa code for things such as\n// - useful directives\n\nfunction ArethusaGenerator() {\n this.panelTrigger = function panelTrigger(service, trsl, trslKey, template) {\n return {\n restri...
javascript
edit
0
1
mit
e3b80778bf188ac19ab4d698621864d52819085f
latin-language-toolkit/arethusa,fbaumgardt/arethusa,PonteIneptique/arethusa,alpheios-project/arethusa,Masoumeh/arethusa,PonteIneptique/arethusa,fbaumgardt/arethusa,latin-language-toolkit/arethusa,fbaumgardt/arethusa,alpheios-project/arethusa,alpheios-project/arethusa,Masoumeh/arethusa
app/js/util/arethusa_generator.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport _ from \"lodash\";\nimport jQuery from \"jquery\";\nimport moment from \"moment\";\n\nimport Config from \"./config.js\";\nimport DText from \"./dtext.js\";\nimport Tag from \"./tag.js\";\nimport UI from \"./ui.js\";\nimport...
javascript
edit
0
3
mit
d2f251b8a375ab011688d740113b8c09c79c5612
evazion/danbooru-ex,evazion/danbooru-ex
src/ex.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports = function(moduleName) {\n var majorVersion = parseInt(process.version.match(/^v(\\d+)/) || [])[1]\n if (majorVersion >= 8) {\n return require('./src/' + moduleName)\n } else {\n return require('./node6/' + modul...
javascript
edit
0
3
mit
41460b6e776e8d3b6cac28c63a4ce4b73541fb27
BaronaGroup/migsi,BaronaGroup/migsi
require-best.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport props from './props';\n\nfunction getValue (elem) {\n const type = elem.type;\n if (type === 'checkbox' || type === 'radio') {\n return elem.checked ? elem.value || true : false;\n }\n return elem.value;\n}\n\nexport defau...
javascript
edit
0
6
mit
7f68b7980f1af0e5e2ac8f19022bb3b2e71675cb
chrisdarroch/skatejs,skatejs/skatejs,chrisdarroch/skatejs,skatejs/skatejs,skatejs/skatejs
src/api/link.js
rejected_duplicate
Near-duplicate of sample 86237
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n\n/**\n * WordPress dependencies\n */\nimport { activatePlugin, visitAdminPage } from '@wordpress/e2e-test-utils';\n\n/**\n * The allow list of AMP modes.\n *\n */\nexport const allowedAmpModes = {\n\tstandard: 'standard',\n\ttransition...
javascript
edit
0
1
apache-2.0
7de0c1782ac690461693aa308364ac3aa996712a
google/site-kit-wp,google/site-kit-wp,google/site-kit-wp,google/site-kit-wp
tests/e2e/utils/activate-amp-and-set-mode.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nangular.module('services', [])\n\n.filter('file', function () {\n\n return function (input) {\n\n return input.split(' ').join('_').toLowerCase()\n }\n\n})\n\n.factory('responsive', function () {\n\n var resizeTimer\n\n return {\...
javascript
edit
0
2
mit
1d6be34ff63350aa3e3c0cdeb163d653bec307dc
Cwejman/martina,Cwejman/martina
js/services.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar possibleStates = [\n\t'P,Pipeline',\n\t'R,Request Evaluation',\n\t'Rm,Requirements',\n\t'C,Concept',\n\t'D,Development',\n\t'Dy,Deployment',\n\t'L,Live'\n];\n\nvar possible_colors = 4;\n```\n\nApply this change: Set up more common K...
javascript
edit
0
0
mit
6594bafa373173d987271d51833bcbb45ea4cda1
rapsli/simple-kanban,rapsli/simple-kanban
js/settings.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n * Parse profile.\n *\n * @param {Object|String} json\n * @return {Object}\n * @api private\n */\nexports.parse = function(json) {\n if ('string' == typeof json) {\n json = JSON.parse(json);\n }\n \n var profile = {};\n pro...
javascript
edit
0
2
mit
5de4f9dde7d1100e4db600c55748278c003df004
poliveira89/passport-identityua,poliveira89/passport-identityua
lib/profile.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst ALLOWED_CSV_FIELD_PATHS = [\n 'ids.GB-CHC',\n 'ids.charityId',\n 'name',\n 'contact.email',\n 'contact.person',\n 'contact.postcode',\n 'contact.address',\n 'contact.geo.longitude',\n 'contact.geo.latitude',\n 'people.vo...
javascript
edit
0
0
mit
a3aff6a41a08614ba68fb590aefbc6e2cb5067a4
tithebarn/charity-base,tithebarn/open-charities,tythe-org/charity-base-api
routers/download/constants.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n(function () {\n \"use strict\";\n var settings, display;\n\n if (window !== window.top) {\n return;\n }\n\n safari.self.tab.dispatchMessage('getSettings');\n\n safari.self.addEventListener('message', function (...
javascript
edit
0
3
mit
3cd2d32ca72775777962a912fe539cbb540274b0
tfausak/delay
delay.safariextension/start.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React from 'react';\nimport DayPicker from '../../../src';\n\nimport '../../../src/style.css';\nimport '../styles/year.css';\n\nexport default class YearCalendar extends React.Component {\n\n constructor(props) {\n super(prop...
javascript
edit
0
1
mit
1200f59759531802d41cf1674d0a22ccaec21ca8
saenglert/react-day-picker,gpbl/react-day-picker,gpbl/react-day-picker,gpbl/react-day-picker
examples/src/examples/YearCalendar.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar thumbsup = require('../src/index');\n\n\nthumbsup.build({\n\n // the input folder\n // with all photos/videos\n input: 'example/media',\n\n // the output folder\n // for the thumbnails and static pages\n output: 'example/websi...
javascript
edit
0
0
mit
cbd505bf2749c62d6baba3e9278a92143b1fc255
kremlinkev/thumbsup,thumbsup/node-thumbsup,dravenst/thumbsup,rprieto/thumbsup,dravenst/thumbsup,thumbsup/thumbsup,kremlinkev/thumbsup,thumbsup/thumbsup,thumbsup/node-thumbsup,rprieto/thumbsup,thumbsup/node-thumbsup
example/build.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n$(document).ready(function() {\n // Bind both change() and keyup() in the icon keyword dropdown because Firefox doesn't\n // respect up/down key selections in a dropdown as a valid change() trigger\n $(\"#icon_dropdown\").change(func...
javascript
edit
0
4
mit
4a92a6850aa2827cf3d7adf6be530c5329582018
Marri/glowfic,Marri/glowfic,Marri/glowfic,Marri/glowfic
app/assets/javascripts/icons.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nvar sass = require('gulp-sass');\nvar bourbon = require('node-bourbon');\nvar rev = require('gulp-rev');\nvar minify = require('gulp-minify-css');\n\n/*\ncompile sass with bourbon\n*/\n\nmodule.exports = functio...
javascript
edit
0
1
mit
c5b6ac00c1d05bc69f4dcbd9f999baf43421f0fe
bendrucker/gulp-tasks
tasks/styles.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport fs from 'fs';\nimport test from 'ava';\nimport pify from 'pify';\nimport index from '../';\n\ntest('Every rule is defined in index file', async t => {\n const files = await pify(fs.readdir, Promise)('../rules/');\n const rules ...
javascript
edit
0
1
mit
d70cfc735c3fdaf9c65c6bd6fa27f9ec6f9ea2de
eslint-plugin-cleanjs/eslint-plugin-cleanjs,jfmengels/eslint-plugin-fp
test/package.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/* global gon */\n$(document).ready(function() {\n // Bind both change() and keyup() in the icon keyword dropdown because Firefox doesn't\n // respect up/down key selections in a dropdown as a valid change() trigger\n $(\"#icon_dropd...
javascript
edit
0
4
mit
18264d202fb2a48c3f8952246708af1b5e941fbf
Marri/glowfic,Marri/glowfic,Marri/glowfic,Marri/glowfic
app/assets/javascripts/icons.js
rejected_duplicate
Near-duplicate of sample 110322
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React from 'react'\nimport { render } from 'react-dom'\nimport FlexTableExample from '../FlexTable/FlexTable.example'\nimport VirtualScrollExample from '../VirtualScroll/VirtualScroll.example'\n\nrequire('./demo.less')\n\nrender(...
javascript
edit
0
0
mit
4af27a810903abd4ec127f9b0799f9dc02674a91
bvaughn/react-virtualized,nicholasrq/react-virtualized,cesarandreu/react-virtualized,edulan/react-virtualized,cesarandreu/react-virtualized,nicholasrq/react-virtualized,edulan/react-virtualized,bvaughn/react-virtualized
source/demo/demo.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport { Model as <%= className %>Mixin<%if (projections) {%>, defineProjections<%}%> } from '../mixins/regenerated/models/<%= name %>';\nimport <%if(parentModelName) {%><%= parentClassName %>Model from './<%= parentModelName %>';<%}els...
javascript
edit
null
null
mit
2717beda255cb4f474ef141397cadf1592d2246a
Flexberry/ember-flexberry,Flexberry/ember-flexberry,Flexberry/ember-flexberry,Flexberry/ember-flexberry
blueprints/flexberry-model-init/files/__root__/models/__name__.js
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar assert = require('assert');\nvar Feature = require('../feature');\n\ndescribe('Feature', function () {\n describe('schema', function () {\n it('successfully creates a valid document');\n it('fails at creating an invalid docum...
javascript
edit
0
1
mit
bd223902c3d3f4bc07257ec4c49a540cfd654a95
nickmccurdy/rose,nicolasmccurdy/rose,nicolasmccurdy/rose,nickmccurdy/rose
test/feature.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar path = require(\"path\");\n\nmodule.exports = {\n id: \"parse\",\n name: \"Parse\",\n\n sample: path.resolve(__dirname, \"sample\"),\n detector: path.resolve(__dirname, \"detector.sh\"),\n runner: [\n {\n ...
javascript
edit
0
0
apache-2.0
1012fb705859f61eb097f34a258050b837a593df
kustomzone/codebox,CodeboxIDE/codebox,rodrigues-daniel/codebox,smallbal/codebox,ronoaldo/codebox,Ckai1991/codebox,lcamilo15/codebox,LogeshEswar/codebox,quietdog/codebox,Ckai1991/codebox,blubrackets/codebox,rajthilakmca/codebox,blubrackets/codebox,ronoaldo/codebox,nobutakaoshiro/codebox,smallbal/codebox,listepo/codebox,...
core/cb.project/parse/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/*\n * Copyright (c) 2014-2020 Bjoern Kimminich.\n * SPDX-License-Identifier: MIT\n */\n\nconst request = require('request')\nconst colors = require('colors/safe')\nconst logger = require('../lib/logger')\nconst utils = require('../lib/...
javascript
edit
0
2
mit
c8fa6d7743e990f9b943ec045cada74403944d72
bkimminich/juice-shop,bkimminich/juice-shop,bkimminich/juice-shop,bkimminich/juice-shop,bkimminich/juice-shop,bkimminich/juice-shop
lib/webhook.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports = {\n pageTitle: 'Tell us a bit about who is applying for health care coverage',\n addSpouseButton: 'Add Spouse/Common-Law Partner',\n addChildUnder19Button: 'Add Child (0-18)',\n addChild19To24Button: 'Add Child (19-...
javascript
edit
0
0
apache-2.0
f182bb037d49003a42cc8fefa10d849b1145b15a
bcgov/MyGovBC-MSP,bcgov/MyGovBC-MSP,bcgov/MyGovBC-MSP,bcgov/MyGovBC-MSP
src/app/components/msp/application/personal-info/i18n/data/en/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// Karma configuration file, see link for more information\n// https://karma-runner.github.io/1.0/config/configuration-file.html\n\nmodule.exports = function (config) {\n var configuration = {\n basePath: '',\n frameworks: ['jasm...
javascript
edit
0
2
mit
e01ceaf62d2ee3dbdb7cce9988a55742c348bd31
UMM-CSci-3601/3601-lab4_mongo,UMM-CSci-3601-F17/interation-1-drop-table-teams,UMM-CSci-3601/3601-lab4_mongo,UMM-CSci-3601-F17/interation-1-drop-table-teams,UMM-CSci-3601-F17/interation-1-drop-table-teams,UMM-CSci-3601/3601-lab4_mongo,UMM-CSci-3601-F17/interation-1-drop-table-teams,UMM-CSci-3601-F17/interation-1-drop-ta...
client/karma.conf.js
rejected_duplicate
Near-duplicate of sample 75968
true