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/* Source file for graphical functionality for Gear Bag project */\n\nfunction dragging() {\n\n $$('.device_block').addEvent('mousedown', function(event) {\n event.stop();\n\n console.log(\"boom\");\n\n // This refers t...
javascript
edit
0
6
mit
7b255312f62b5e6d5f9e729c59f83362a4211c0f
copperwall/iFixit_Project
ui/gearbag_ui.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n#!/usr/bin/env node\n\n/*\n * Module dependencies.\n */\n\nvar fs = require('fs');\nvar path = require('path');\nvar program = require('commander');\nvar web2splash = require('./../lib/web2splash');\n\n/*\n * Load package.json\n */\n\nv...
javascript
edit
0
1
apache-2.0
92089db8427d78a412528e6cc52a8d6f50dd79d9
mwbrooks/web2splash
bin/web2splash.js
rejected_duplicate
Near-duplicate of sample 75127
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport _ from 'lodash';\n\nexport function sanitizeTitle(title) {\n let result = title.toLowerCase();\n result = result.indexOf('2015') != -1 ? result.split('2015')[0] : result.split('2014')[0];\n\n return result.replace(/\\s+/g, ' '...
javascript
edit
0
16
mit
697e84107a3fffd3691733fcf8b2253fe1b25364
sabarasaba/moviez.city-worker
utils/helpers.js
rejected_complexity
Cyclomatic complexity too high: 16
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport { getIssue } from './issues';\n\nexport const getOwnVoteForIssue = (issue, userId) => {\n // No issue? User haven't voted.\n if (!issue || !Object.keys(issue).length) return null;\n\n // No votes on current issue? User haven't...
javascript
edit
0
5
mit
3a75eb5cd9e658416a93c1fd1109136c16ba4f8e
dotkom/super-duper-fiesta,dotkom/super-duper-fiesta,dotkom/super-duper-fiesta
client/src/selectors/voting.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar _ = require('underscore');\nvar Backbone = require('backbone');\n\nmodule.exports = Backbone.Collection.extend({\n toJSON: function () {\n var json = {};\n var activeFilters = this.getActiveFilters();\n if (activeFilters.l...
javascript
edit
0
2
bsd-3-clause
a5f92b6f52120c57e1421813a905eb06681950a4
splashblot/cartodb.js,splashblot/cartodb.js,splashblot/cartodb.js,splashblot/cartodb.js
src/windshaft/filters/collection.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar module = angular.module('JGivenApp',['ngSanitize']);\n\nvar elasticSearchHost = 'localhost'\n\nmodule.controller(\n 'ApplicationController',\n ['$scope', '$http',\n function( $scope, $http ) {\n $scope.getScenarios...
javascript
edit
0
1
apache-2.0
a34af58a736f8d6121c590329c61749afaee68ca
janschaefer/jgiven-search,janschaefer/jgiven-search,janschaefer/jgiven-search
app/jgiven-search.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/*jshint quotmark:double */\n\"use strict\";\n\nangular.module(\"constants\", [])\n\n.constant(\"API_URL\", \"https://secxbrl-test.beta.28.io/v1\")\n\n.constant(\"DEBUG\", true)\n\n.constant(\"HTML5\", true)\n\n;\n```\n\nApply this chan...
javascript
edit
0
0
apache-2.0
576415327408a274eb7331f914e31935a8804631
28msec/app-disclosures
www/constants.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\n// Load chai\nconst chai = require('chai');\nconst expect = chai.expect;\n\n// Load our module\nconst format = require('../../../../app/lib/queue/format');\n\n// Describe the module\ndescribe('Function \"add\"', () => {...
javascript
edit
0
1
apache-2.0
16e1afe930e80a55ef8572e53408f4cab3b49b9a
transmutejs/core
test/libs/queue/format/add.spec.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar $ = require('jquery');\nvar domready = require('domready');\nvar bootstrap = require('bootstrap');\n\nif (!window.console) {\n var noOp = function() {};\n console = {\n log: noOp,\n warn: noOp,\n error: noOp,\n };\n}\ndo...
javascript
edit
0
2
mit
1f12cd0284c6ea8908d7f75abfa6a7fe83fa254e
ebmdatalab/openprescribing,ebmdatalab/openprescribing,annapowellsmith/openpresc,annapowellsmith/openpresc,ebmdatalab/openprescribing,annapowellsmith/openpresc,annapowellsmith/openpresc,ebmdatalab/openprescribing
openprescribing/media/js/src/global.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports = function(access) {\n 'use strict';\n\n let _ = require('lodash');\n let projectAccessCache = {};\n return {\n find: find,\n clear: clear,\n validateAccess: validateAccess\n };\n\n ...
javascript
edit
0
4
mit
d69ea73c70bb57c4fc46f7ae517ab69213547d9e
materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org
backend/server/resources/project-access-cache.js
rejected_duplicate
Near-duplicate of sample 67396
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n(function(){\n'use strict';\n\nangular\n .module('secondLead', \n \t['ngDragDrop', \n \t'ui.bootstrap',\n \t'ui.router', \n \t'gridster',\n \t'restangular',\n 'angularUtils.directives.dirPagination',\n 'secondLead.common',\n...
javascript
edit
0
1
mit
cb9f69f40949c4f01fc5e081e244de8e2fe12442
ac-adekunle/secondlead,ac-adekunle/secondlead,ac-adekunle/secondlead
app/assets/javascripts/angular/app.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nvar Store = require('../core/Store');\nvar Dispatcher = require('../core/Dispatcher');\nvar ActionTypes = require('../constants/ActionTypes');\n\n/**\n * @typedef Credentials\n * @type {object}\n * @property {string} ke...
javascript
edit
0
4
mit
a375ec4273040c3f74e75d26f8af7159204ce59a
krallin/scalr-storefront
src/stores/CredentialsStore.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nAppVersionProxy = {\n getVersionNumber: function (successCallback, failCallback, args) {\n var version = Windows.ApplicationModel.Package.current.id.version;\n successCallback([version.major, version.minor, version.build, version...
javascript
edit
0
4
mit
16cbc9bf1b6c6a46009248adca10c1746d251f38
whiteoctober/cordova-plugin-app-version,whiteoctober/cordova-plugin-app-version,whiteoctober/cordova-plugin-app-version
src/windows/AppVersionProxy.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nvar primitiveSet = require('es5-ext/object/primitive-set');\n\nmodule.exports = primitiveSet('constructor', 'clear', 'database', 'delete',\n\t'entries', 'forEach', 'has', 'key', 'keys', 'master', 'object', 'set',\n\t'si...
javascript
edit
0
0
mit
b87e6a25cfebdb0801f1c6f3b3f8dcf420d8f199
medikoo/dbjs
_setup/utils/meta-property-names.js
rejected_duplicate
Near-duplicate of sample 88129
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport EmberObject from '@ember/object';\nimport moment from 'moment';\n\nexport default {\n name: 'setup-pikaday-i18n',\n initialize() {\n const i18n = EmberObject.extend({\n previousMonth: 'Vorheriger Monat',\n nextMont...
javascript
edit
0
2
mit
0e4fa123155bb14748764d3e014f4f4c0610235e
edgycircle/ember-pikaday,edgycircle/ember-pikaday
tests/dummy/app/initializers/setup-pikaday-i18n.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport Ember from 'ember';\nimport scale from '../../mixins/e3-scale';\nimport linear from '../../utils/shadow/scales/linear';\n\nexport default Ember.Component.extend(scale, {\n name: 'linear',\n\n /*\n These are optional parameter...
javascript
edit
0
1
mit
b4ef154b4662f6f9a8a10ee17f2b78164f1c6796
elwayman02/e3,sly7-7/e3,RavelLaw/e3,MattMSumner/e3,elwayman02/e3,RavelLaw/e3,taras/e3,asennikov/e3,sly7-7/e3,asennikov/e3,taras/e3,MattMSumner/e3
addon/components/e3-scale/linear.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar fs = require('fs');\n\n// The number of files that we need to generate goog.require's for.\nvar numFiles = process.argv.length - 1;\n\n/**\n * Object used a set of found goog.provide's.\n * @type {Object.<string, boolean>}\n */\nvar...
javascript
edit
0
3
bsd-2-clause
6a169203788f344006a690902754c4130123c6ce
geekdenz/openlayers,llambanna/ol3,tamarmot/ol3,aisaacs/ol3,das-peter/ol3,jacmendt/ol3,planetlabs/ol3,alvinlindstam/ol3,kjelderg/ol3,stweil/ol3,fblackburn/ol3,kjelderg/ol3,itayod/ol3,Distem/ol3,antonio83moura/ol3,xiaoqqchen/ol3,thhomas/ol3,klokantech/ol3,landonb/ol3,ahocevar/ol3,kkuunnddaannkk/ol3,antonio83moura/ol3,fbl...
tasks/generate-requires.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar should = require('should');\nvar exec = require('child_process').exec;\n\n// Expected Output\n// error: option `-e, --except <exception>' argument missing\n\nfunction shouldBeCommandFailed(error) {\n error.message.includes('Command...
javascript
edit
0
1
bsd-3-clause
cdf3ba1459a0dd0496d35d000875bfee79c88a8a
PeterTeng/googleit,PeterTeng/googleit
test/test.no-exception-provided.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/* global UTILS */\n\n'use strict';\n\nangular.module('alienUiApp').factory('appEnvMngrService', ['applicationEnvironmentServices',\nfunction(applicationEnvironmentServices) {\n return {\n init: function(applicationId) {\n if(t...
javascript
edit
0
4
apache-2.0
6adec96ee68f648f9dc01dcf5bcf2011010cc008
loicalbertin/alien4cloud,loicalbertin/alien4cloud,xdegenne/alien4cloud,PierreLemordant/alien4cloud,OresteVisari/alien4cloud,ahgittin/alien4cloud,san-tak/alien4cloud,ngouagna/alien4cloud,broly-git/alien4cloud,OresteVisari/alien4cloud,san-tak/alien4cloud,OresteVisari/alien4cloud,alien4cloud/alien4cloud,igorng/alien4cloud...
alien4cloud-ui/yo/app/scripts/applications/services/app_env_mngr_services.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nvar Filter = require('broccoli-filter'),\n objectAssign = require('object-assign'),\n postcss = require('postcss'),\n util = require('util');\n\nmodule.exports = PostCSSFilter;\n\n// --------...
javascript
edit
0
2
bsd-3-clause
5f15dc30fa1a385aa7e1a51e074102b0d89a17e6
ericf/formatjs-site,okuryu/formatjs-site,ericf/formatjs-site
broccoli/postcss.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nKylinApp.service('MessageService', function (GraphBuilder) {\n var options = {\n extraClasses: 'messenger-fixed messenger-on-top messenger-on-right',\n theme: 'air'\n };\n\n this.sendMsg = function (msg, type, act...
javascript
edit
0
4
apache-2.0
77ca2ee07b9f85b5a9a402da3d81ee88b74a01b0
haoch/kylin,LeeRisk/Kylin,murkrishn/incubator-kylin,LeeRisk/Kylin,nvoron23/incubator-kylin,cocosli/incubator-kylin,janzhongi/Kylin,272029252/Kylin,KylinOLAP/Kylin,272029252/Kylin,janzhongi/Kylin,nvoron23/Kylin,nvoron23/incubator-kylin,murkrishn/incubator-kylin,lemire/incubator-kylin,haoch/kylin,haoch/kylin,haoch/kylin,...
webapp/app/js/services/message.js
rejected_duplicate
Near-duplicate of sample 79699
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n\"use strict\";\n\nangular.module('arethusa.core').directive('arethusaGridHandle', [\n function() {\n return {\n restrict: 'E',\n scope: true,\n link: function(scope, element, attrs, ctrl, transclude) {\n funct...
javascript
edit
0
1
mit
ad354a5c6d94726604d16a0de9aede5d557c9cd4
PonteIneptique/arethusa,PonteIneptique/arethusa,alpheios-project/arethusa,latin-language-toolkit/arethusa,fbaumgardt/arethusa,Masoumeh/arethusa,fbaumgardt/arethusa,alpheios-project/arethusa,latin-language-toolkit/arethusa,alpheios-project/arethusa,Masoumeh/arethusa,fbaumgardt/arethusa
app/js/arethusa.core/directives/arethusa_grid_handle.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n\"use strict\";\n\n/* global Meteor */\n/* global Template */\n\nif (Meteor.isClient) {\n\tTemplate.body.helpers({\n\t\ttasks: [\n\t\t\t{text: 'task 1'},\n\t\t\t{text: 'task 2'},\n\t\t\t{text: 'task 3'}\n\t\t]\n\t});\n}\n\nif (Meteor.is...
javascript
edit
0
1
mit
bd68740d28d306e1e8003116d3bdf9df073c757e
fernandocanizo/meteor-todo,fernandocanizo/meteor-todo
simple-todo.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst {Command} = require('./index.js');\nconst maxXpOptions = {\n\tdescription: 'Get your top 10 *max-xp* values.',\n\tpassRecord: true,\n\tsignatures: ['@BOTNAME max-xp']\n};\nconst unknownTank = {\n\tname: 'Unknown vehicle',\n\ttier:...
javascript
edit
0
1
isc
4df87cdfc002d1438005ed3e9d071c0a0bc41d31
CodeMan99/blitzbot
lib/command/maxXp.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport moment from 'moment';\nimport React, { PropTypes } from 'react';\nimport { get, map } from 'lodash';\n\nimport './ProjectDetails.styl';\n\nconst ProjectDetails = ({ project }) => (\n <div className=\"ProjectDetails\">\n <h1>{...
javascript
edit
0
1
mit
c9a58bd1e11549a243fd1f3105035ececb29eb52
relekang/accio,relekang/accio,relekang/accio
frontend/components/ProjectDetails.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n(function() {\n 'use strict';\n\n var app = this.app\n , _ = require('lodash')\n , debug = require('debug')('signalk-server:interfaces:ws')\n , Primus = require('primus')\n , primus = new Primus(app.server, {...
javascript
edit
0
2
apache-2.0
5dd51673471eb8164460d32d87e88dd72202b100
mauroc/signalk-oauth-node,jaittola/signalk-server-node,sbender9/signalk-server-node,sbender9/signalk-server-node,webmasterkai/signalk-server-node,sbender9/signalk-server-node,mauroc/signalk-oauth-node,lsoltero/signalk-server-node,webmasterkai/signalk-server-node,lsoltero/signalk-server-node,jaittola/signalk-server-node...
lib/interfaces/ws.js
rejected_duplicate
Near-duplicate of sample 68039
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React, { Component } from 'react';\nimport GraphiQL from 'graphiql';\nimport fetch from 'isomorphic-fetch';\nimport Schema from './schema.js';\n\nGraphiQL.Logo = class Logo extends Component {\n render() {\n let style = {\n ...
javascript
edit
0
2
mit
f56f59d0fea96a51dbeb0a5ced000fba9d5ea7c3
jjbohn/graphql-blog-schema,jjbohn/graphql-blog-schema,kadirahq/graphql-blog-schema,jjbohn/graphql-blog-schema,kadirahq/graphql-blog-schema,abdulhannanali/graphql-sandbox,abdulhannanali/graphql-sandbox,abdulhannanali/graphql-sandbox,kadirahq/graphql-blog-schema,macilry/technozaure-graphql,macilry/technozaure-graphql,mac...
src/App.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// ==========================================================================\n// <%= controller_class_name %>\n// ==========================================================================\n\nrequire('core');\n\n/** @class\n\n (Docume...
javascript
edit
null
null
mit
be459f4bb0334c3f8f702c664696db7a9330d95b
sproutit/sproutcore-buildtools,sproutit/sproutcore-buildtools,sproutit/sproutcore-buildtools
sc_generators/controller/templates/controller.js
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// Description:\n// Check who's at the office\n//\n// Commands\n// @kontoret / @office - Reply with everyone at the office\n\nconst _ = require('lodash');\nconst presence = require('../lib/presence');\n\nconst createMention = userna...
javascript
edit
0
2
mit
692068b74058223cc16f0844f5f02930fd423cce
webkom/ababot,webkom/ababot
scripts/kontoret.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nmodule.exports.getValidUrl = (_urls) => {\n for (var i = 0, l = _urls.length; i < l; ++i) {\n if (_urls[i] && typeof _urls[i] === 'string' && (_urls[i].indexOf('amqp://') === 0 || _urls[i].indexOf('amqps://') === 0)...
javascript
edit
0
6
mit
7d1546d435a1867fe19e7b81db00c733e6570d65
dial-once/node-bunnymq
lib/helpers/utils.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport { runInContext, createContext } from 'vm';\nimport { stripIndent } from 'common-tags';\nimport importFrom from 'import-from';\nimport Promise from 'bluebird';\n\nfunction createScriptBlock(node) {\n return `;${node.value};`\n}\n...
javascript
edit
0
3
mit
d1ac5d47451fdbdf63880c62ae2723d0a45117e1
nickclaw/redoculous
src/execute.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst React = require(\"react\")\nconst {merge} = require(\"./util\")\n\nexport class Listener extends React.Component {\n constructor(props) {\n super(props)\n const {dispatcher, initialState} = this.props\n const ffux = disp...
javascript
edit
0
3
mit
6209979e3f6eede440cc2d5614b0bb7397e719a4
milankinen/ffux,Avaq/ffux,milankinen/ffux
lib/react-helpers.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n(function() {\n\n window.samples.spinning_wireframe_cube = {\n\n initialize: function(canvas) {\n var scene = new THREE.Scene();\n\n var camera = new THREE.PerspectiveCamera( 75, sample_defaults.width / sample_defaults.hei...
javascript
edit
0
3
mit
8d1d7c1a4fcfe25095a1854de34c0780cf790412
dimroc/reveal.js-threejs,dimroc/reveal.js-threejs
js/samples/spinning_wireframe_cube.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nexport { default as Controller } from './base/controller';\nexport { default as Exception } from './base/exception';\nexport { default as DbDriver } from './base/db-driver';\nexport { default as MongooseModel } from './models/mongoose';...
javascript
edit
0
0
mit
aef4a8857b8bdc9a0eb9a09479807bdca9004bdf
realThinhIT/nodeejs,realThinhIT/nodeejs
core/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nexport default {\n declarationKeyword: 'const',\n\n // As listed in https://github.com/nodejs/node/tree/master/lib\n //\n // Note that we do not include `process` in this list because that is\n // available globally in node environ...
javascript
edit
0
0
mit
253310a8914483412f75ae2e83f9655fefd688ad
trotzig/import-js,Galooshi/import-js,trotzig/import-js,trotzig/import-js
lib/environments/nodeEnvironment.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/*\n$(document).ready(function(){\n\n $(\".birthday\").hide();\n\n var $inputs = $('input[name=phone-p], input[name=phone-g], input[name=phone-m], input[name=email]');\n $inputs.on('input', function() {\n var val = $('#e...
javascript
edit
0
5
mit
60c80c54359aa32f1696bfabf664414849a486ff
PSEBergclubBern/BergclubBern,PSEBergclubBern/BergclubBern,PSEBergclubBern/BergclubBern,PSEBergclubBern/BergclubBern,PSEBergclubBern/BergclubBern
wordpress/wp-content/themes/bergclub-theme/js/contact-form-functions.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React, {PropTypes} from 'react';\n\nclass CmsApp extends React.Component {\n constructor(props) {\n super(props);\n this.props.actions.addEntity = this.props.actions.addEntity.bind(this);\n this.save = this.save.bind(th...
javascript
edit
0
1
mit
c92c7816e799c39b9844e09491f977351ee01477
vandosant/fawn,vandosant/fawn
src/components/CmsApp.js
accepted
null
true
[ { "role": "user", "content": "Write javascript code for the following: Correct work added in the right file" }, { "role": "assistant", "content": "//Question\n//Write a function once that accepts a callback as input and returns a function. When the returned function is called the first time, it ...
javascript
new_file
0
2
mit
3c83c4c3dec03c8af31043b5ed1bea9fe2ae0105
JupiterLikeThePlanet/code_challenges,JupiterLikeThePlanet/code_challenges
closure/run_once.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports = {\n sass: {\n files: [\"scss/**/*.{scss,sass}\"],\n tasks: [\"scsslint:all\", \"copy:source\", \"sass:compile\"]\n },\n js: {\n files: [\"js/**/*.js\", \"tests/**/*.js\"],\n tasks: [\"jshint:all\", \"copy...
javascript
edit
0
0
mit
a0fed449494a90a841d62a273e6b040bf687e972
DoSomething/neue,sbsmith86/neue,DoSomething/forge
tasks/watch.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\nvar util = require('util');\nvar yeoman = require('yeoman-generator');\nvar fs = require('fs');\n\nvar ComponentGenerator = module.exports = function ComponentGenerator(args, options, config) {\n // By calling `NamedBase...
javascript
edit
0
2
mit
386f39894e5ab625b8e90979b8c80ea99b50899b
kaldor/generator-pugpig,kaldor/generator-pugpig
component/index.js
rejected_duplicate
Near-duplicate of sample 86968
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n$(function() {\n populatePrefilled('interests');\n populatePrefilled('skills');\n});\n\n```\n\nApply this change: Add event query parameter when creating an opportunity." }, { "role": "assistant", "content": "$(function() ...
javascript
edit
0
1
apache-2.0
fbfff96a604565885b6655f8ea728fe36eebdeeb
googleinterns/step188-2020,googleinterns/step188-2020,googleinterns/step188-2020
project/src/main/webapp/create-volunteering-opportunity.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar lilswf = function(){\n var window,\n undefined,\n self = this;\n self.raw = \"\",\n self.version = [],\n self.installed = self.isCool = false;\n function activeXObjectGetVariable(activeXObj, ...
javascript
edit
null
null
mit
c5a5dca212756eda1b14bb3b031981f928f8f173
docyes/lilswf
lilswf.js
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nrequire('should');\n\nvar office = require('../lib/hydrater-office');\n\n\ndescribe('Test office results', function() {\n it('returns the correct informations for docx', function(done) {\n var document = {\n me...
javascript
edit
0
2
mit
967f09d43fcf05e3aa427c2cbdda01032d99e115
AnyFetch/office-hydrater.anyfetch.com
test/office.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/*jshint node:true*/\nmodule.exports = {\n scenarios: [\n {\n name: 'default',\n bower: {\n dependencies: { }\n }\n },\n {\n name: 'ember-1.13',\n bower: {\n dependencies: {\n 'e...
javascript
edit
0
0
mit
56a2cccdeb15c466e19685ca4ee66c4575835eb0
dgeb/ember-engines,dgeb/ember-engines,ember-engines/ember-engines,ember-engines/ember-engines
config/ember-try.js
rejected_duplicate
Near-duplicate of sample 75553
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar assert = require('assert'),\n textmail = require('../lib/mailer.js');\n\ndescribe('textmail', function() {\n describe('@transport', function() {\n it('should have a transport protocol configured', function() {\n ...
javascript
edit
0
1
mit
f9173c5b5e4b5c825ce3c3c85cf88e2d4648298c
ceslami/textgun,ceslami/textgun
test/mailer.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/*jshint node:true*/\nfunction scenario(emberVersion) {\n return {\n name: 'ember-' + emberVersion,\n bower: {\n dependencies: {\n 'ember': '~' + emberVersion + '.0'\n },\n resolutions: {\n 'ember': '...
javascript
edit
0
1
mit
15037e4e99f5e1a9cd518006f844a492d117e300
mike-north/ember-load,mike-north/ember-load,mike-north/ember-load
config/ember-try.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nexport default {\n period: 'week',\n weeks: 13,\n dataset: 'MODIS',\n layerStartDate: null,\n layerEndDate: null\n};\n\n```\n\nApply this change: Change default dataset for Fire Alerts widget to VIIRS instead of MODIS" }, { ...
javascript
edit
0
0
mit
af2a725b6e81e211403c0442d8c5fae740e18c91
Vizzuality/gfw,Vizzuality/gfw
app/javascript/components/widgets/widgets/forest-change/fires-alerts/settings.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/* eslint global-require: 0 */\nimport { createStore, applyMiddleware } from 'redux';\nimport thunk from 'redux-thunk';\nimport rootReducer from '../modules/reducer';\nimport Immutable from 'immutable';\n\nconst middlewares = [thunk];\n...
javascript
edit
0
3
mit
03989f34d4d99ab9c35e8eb1019b48c3f29eac27
TailorDev/franklin,TailorDev/franklin,TailorDev/franklin
app/store/configureStore.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n(function(){\n 'use strict'\n\n const New = {\n templateUrl: 'pages/new/new.html',\n controllerAs: 'model',\n controller: function(BookmarkFactory, TagFactory, $state){\n\n const model = this;\n model.saveBookmark =...
javascript
edit
0
3
mit
46e64f6fb29e5b921346472c9ea6c0f37abc951d
Dom-Mc/shareMark,Dom-Mc/shareMark,Dom-Mc/shareMark
app/assets/javascripts/pages/new/new.component.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// Dependencies\nvar net = require('net'),\n express = require('express'),\n exec = require('child_process').exec;\n\n// mochad client\nvar client;\n\nfunction setupConnection() {\n client = net.connect({port: 1099}, function()...
javascript
edit
0
2
mit
9758e01daee5ab3fc9c45dec1f3c8abc50c04ebc
kevinwang/dorm-automation,kevinwang/dorm-automation
server/app.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n * mSupply Mobile\n * Sustainable Solutions (NZ) Ltd. 2019\n */\n\nimport currency from 'currency.js';\n\nexport const selectPrescriptionSubTotal = ({ payment }) => {\n const { transaction } = payment;\n const { items = [] } = tr...
javascript
edit
0
2
mit
8207aeff515fac90553e10c79992c3a6810990ad
sussol/mobile,sussol/mobile,sussol/mobile,sussol/mobile
src/selectors/payment.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport gulp from 'gulp';\nimport loadPlugins from 'gulp-load-plugins';\nimport browserSync from 'browser-sync';\n\nconst $ = loadPlugins();\nconst bs = browserSync.create();\n\ngulp.task('serve:test', ['styles'], done => {\n bs.init({\...
javascript
edit
0
1
mit
a35b6a8d472e1ed10914baaadb101ed041031bd3
silvenon/generator-wbp,silvenon/generator-wbp
generators/app/templates/task/test.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst Factories = use('core/factories');\nconst Errors = use('core/errors');\n\nconst PermissionsFactory = Factories('Permissions');\n\n\nfunction checkPermissions(body) {\n\n if (!this.reque...
javascript
edit
0
3
mit
4e863f247d2ade3e30d3f07c01f539d228795e70
yura-chaikovsky/dominion
components/permissions/interceptors/checkPermissions.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport config from '-/config';\nimport configureStore from './configure';\nimport { loadState, saveState } from './localStorage';\nimport { invokeAfterUninterruptedDelay } from '~/utils/throttle';\n\nconst state = config.env.production ...
javascript
edit
0
1
mit
00ccf8c33c1c91c3f4dafd4a4b31d287627b34ac
AdamSalma/Lurka,AdamSalma/Lurka
src/redux/store/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport Vue from 'vue';\nimport VueRouter from 'vue-router';\nimport RestaurantList from '../components/RestaurantList.vue'\n\nVue.use(VueRouter);\n\nconst router = new VueRouter({\n mode: 'history',\n routes: [\n {\n path: '/s...
javascript
edit
0
0
bsd-3-clause
cb93f0712d0e6a2630c4f17fb8ae63bfbdd60a2b
talavis/kimenu
frontend/menupage/src/router/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n(function(win){\n 'use strict';\n\n var paramRe = /:([^\\/.\\\\]+)/g;\n\n function Router(){\n this.routes = [];\n }\n\n Router.prototype.route = function(path, fn){\n paramRe.lastIndex = 0;\n var reg...
javascript
edit
0
5
unlicense
75cc0f83d69c37bdcac96a9a4147356e774a14b5
ryanmorr/router
src/router.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use babel'\n\nexport class LinterUI {\n static name = 'Linter'\n\n constructor(editors) {\n this.editors = editors\n }\n\n dispose() {\n\n }\n}\n\n```\n\nApply this change: :new: Add a proper dispose to UI class" }, { "...
javascript
edit
0
1
mit
85a2407c5d2d2c9a390760f1209e55ffa2095f57
AtomLinter/linter-ui-default,steelbrain/linter-ui-default,steelbrain/linter-ui-default
lib/ui.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport startMirage from 'ember-cli-mirage/start-mirage';\n\n//\n// Used to set up mirage for a test. Must be called after one of the\n// `ember-qunit` `setup*Test()` methods. It starts the server and sets\n// `this.server` to point to i...
javascript
edit
0
2
mit
f7fb311137ca9fe7421b8fdfed071893187b77cd
jherdman/ember-cli-mirage,makepanic/ember-cli-mirage,unchartedcode/ember-cli-mirage,jherdman/ember-cli-mirage,samselikoff/ember-cli-mirage,unchartedcode/ember-cli-mirage,unchartedcode/ember-cli-mirage,samselikoff/ember-cli-mirage,samselikoff/ember-cli-mirage,samselikoff/ember-cli-mirage,unchartedcode/ember-cli-mirage,j...
addon-test-support/setup-mirage.js
rejected_duplicate
Near-duplicate of sample 89632
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport isArray from 'lodash/lang/isArray';\nimport intersection from 'lodash/array/intersection';\n\nexport default function matchesType(targetType, draggedItemType) {\n var draggedItemTypeArr = draggedItemType.split('#');\n if (isArr...
javascript
edit
0
3
mit
18ff3e760a6cdd495e320e94486e6cbdc7953543
randrianov/dnd-core
src/utils/matchesType.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport request from 'supertest';\nimport express from 'express';\nimport healthEndpoint from '../../../../server/routes/health';\n\ndescribe('GET /health', () => {\n let app;\n before(() => {\n app = express();\n app.use('/healt...
javascript
edit
0
1
mit
83d36f3f6b66bbd51dee105f42104cfcd7048395
noms-digital-studio/csra-app,noms-digital-studio/csra-app,noms-digital-studio/csra-app
test/unit/server/routes/health.spec.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React, { Component } from 'react';\n\nclass HashSelector extends Component {\n render() {\n return (\n <div className='flex flex-row justify-center mv4'>\n <input className='mh2' type='radio' name='hash-algo' valu...
javascript
edit
0
1
mit
1aade4eedda416de032db013678cd9697f3dafd7
joelgeorgev/file-hash-verifier,joelgeorgev/file-hash-verifier
src/components/hash-selector.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports = function(grunt) {\n 'use strict';\n\n grunt.initConfig({\n less: {\n dev: {\n options: {\n paths: ['velvet']\n },\n files: {\n 'build/style.css': 'velvet/velvet.less'\n ...
javascript
edit
0
1
bsd-3-clause
141e518b1a5dc0ce46fa18f564df52002f2a6d9d
sourrust/velvet
Gruntfile.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n$(document).ready( function () {\n $(\".upvote\").click( function() {\n var commentId = $(\".upvote\").data(\"id\");\n event.preventDefault();\n $.ajax({\n url: '/response/up_vote',\n method: 'POST',\n data: { i...
javascript
edit
0
2
mit
2a165c205bf988ce03d0872eb869509f7f9a638c
great-horned-owls-2014/dbc-what-is-this,great-horned-owls-2014/dbc-what-is-this
app/assets/javascripts/responses.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports = function (grunt) {\n grunt.initConfig({\n\n // watch changes to less files\n watch: {\n styles: {\n files: [\"less/*\"],\n tasks: [\"less\"]\n },\n ...
javascript
edit
0
1
apache-2.0
8fd7034973114742db6ca635e1f1a51595ff498a
agency/base,spacewindow/base,spacewindow/base,agency/base
Gruntfile.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports = function(grunt) {\n\n // Project configuration.\n grunt.initConfig({\n pkg: grunt.file.readJSON('package.json'),\n concat: {\n options: {\n stripBanners: false, // no commen...
javascript
edit
0
1
mit
7f842442026d1ee08b7be34747767e3d36054862
edloidas/dawn-of-aegis,edloidas/dawn-of-aegis
Gruntfile.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nmodule.exports = function(grunt) {\n var browsers = [\n 'Chrome',\n 'PhantomJS',\n 'Firefox'\n ];\n\n if (process.env.TRAVIS){\n browsers = ['PhantomJS'];\n }\n\n grunt.initCon...
javascript
edit
0
2
mit
cb2fc70c42235fa7f4a243fdb80b7555104998ac
prudvihemanth/ngStorage,egilkh/ngStorage,castle-it/ngStorage,lalithr95/ngStorage,selimg/ngStorage,JulienBier/ngStorage,williamboman/ngStorage,meghna1711/ngStorage,xxxkonyi/ngStorage,kknirala/ngStorage,robinboehm/ngStorage,wodka/ngStorage,gsklee/ngStorage,GerryFudd/ngStorage,grantadesign/ngStorage,BaggersIO/ngStorage,br...
Gruntfile.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports = function(grunt) {\n grunt.initConfig({\n pkg: grunt.file.readJSON('package.json'), // the package file to use\n\n qunit: { // internal task or name of a plugin (like \"qunit\")\n all: ['js/te...
javascript
edit
0
1
bsd-2-clause
0ab272e4b4554cecc9bdf2db07a4f2f8d9213fe7
rtfb/rtfblog,rtfb/rtfblog,rtfb/rtfblog,rtfb/rtfblog,rtfb/rtfblog
Gruntfile.js
rejected_duplicate
Near-duplicate of sample 71713
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// Collection of all business processes which where made online\n\n'use strict';\n\nmodule.exports = require('./resolve')(require('../db').BusinessProcess);\n\n```\n\nApply this change: Fix general business processes collection" }, ...
javascript
edit
0
2
mit
0e7e67747c19bf2e4da0f2569563243d7f28e7cd
egovernment/eregistrations,egovernment/eregistrations,egovernment/eregistrations
business-processes/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport {describe, it} from 'mocha';\n\ndescribe('module - docker', function () {\n it('TODO write tests');\n\n describe('dump', function () {\n it('TODO write tests');\n });\n\n describe('help', function () {\n it('TODO write ...
javascript
edit
0
1
mit
e6b3a08ec185b347b7d9c6b2a7fb2117fc1b951a
arunoda/meteor-up,zodern/meteor-up,zodern/meteor-up,arunoda/meteor-up
lib/modules/docker/__tests__/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar\toauthAuth = new GitHub(logged ? { token: logged } : {}),\n\trepo = oauthAuth.getRepo(OWNER_NAME, PROJECT_NAME),\n\tauth = logged ? oauthAuth.getUser() : false;\n\n// READ REPO\nrepo.getDetails(function(e,r){\n\t// CHECK ADMIN\n\tif...
javascript
edit
0
5
mit
6ef4b8c3fe331063f26570973667216a13b0f34f
petrosh/basic,fork-n-play/basic,fork-n-play/basic,fork-n-play/basic,petrosh/basic,petrosh/basic,fork-n-play/basic,petrosh/basic
assets/javascript/FnP/repository.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/* globals module */\nmodule.exports = {\n afterInstall: function() {\n var _this = this;\n return this.addBowerPackagesToProject([\n { name: 'semantic-ui-daterangepicker', target: '5d46ed2e6e5a0bf398bb6a5df82e06036dfc46be' ...
javascript
edit
0
1
mit
c0b9abe2750f555e72083b40e02f50bb758942a1
Flexberry/ember-flexberry,Flexberry/ember-flexberry,Flexberry/ember-flexberry,Flexberry/ember-flexberry
blueprints/ember-flexberry/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport { injectLocale } from 'common/i18n/helpers'\n\nexport default (store, i18n) => ({\n path: 'events',\n\n async getComponent(nextState, cb) {\n const EventsContainer = await import(/* webpackChunkName: 'events' */ './container...
javascript
edit
0
1
mit
5d19dfe060e7def8db23b9e9e46c896e84845143
sgmap/inspire,sgmap/inspire
src/routes/Events/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n\n$(function () {\n\tSC.initialize({client_id: '28b05a26f8f8bec9d27bea7c938337ff'});\n\tgetTracks();\n\tvar timer = setInterval(getTracks, 10000);\n})\n\nfunction getTracks() {\n\t$('ul').html('');\n\tSC.get('/tracks')\n\t.then(function...
javascript
edit
0
2
mit
1d235af2e226fd2f8ab8fd1f869eba217e4751df
Smona/vrtest,Smona/vrtest
SCAPI/js/soundcloud.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\ngoog.module('legacy.namespace.goog.define');\ngoog.module.declareLegacyNamespace();\n\n/** @define {string} */\ngoog.define('GOOG_DEFINE', 'goog.define');\n\n//!!TODO actually emit the legacy namespace alias for the export\nexports = GO...
javascript
edit
0
0
mit
50d27c7bdc618d25d6b89ed6606359111d13358b
angular/clutz,angular/clutz,angular/clutz
src/test/java/com/google/javascript/clutz/testdata/partial/declare_legacy_namespace_goog_define.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nimport test from 'blue-tape';\nimport hello from '../source/index';\n\n\ntest('Tests run', (assert) => {\n assert.pass('Tests run');\n assert.end();\n});\n\n\ntest('Greet World', (assert) => Promise.resolve(\n assert...
javascript
edit
0
1
mit
75e56c30ca6ea1a6114f1f7abf2c50d889d4d854
gavriguy/prod-module-boilerplate,cloverfield-tools/prod-module-boilerplate,MarcCloud/prod-module-boilerplate,ericelliott/prod-module-boilerplate
test/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport md5 from \"md5\";\nimport I18n from \"i18n-js\";\n\nfunction onMissingTranslation(md5, message) {\n return `translation missing: ${I18n.locale}.${message}`;\n}\n\nconst interpolate = (message, data) =>\n message.replace(/%{([^{...
javascript
edit
0
3
mit
1f4e86435a3f2cccffba50680954e97323fe7b71
agileapplications/i18n_screwdriver,agileapplications/i18n_screwdriver
package/src/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict'\n\nmodule.exports = {\n extends: './base.js',\n plugins: [\n 'node'\n ],\n rules: {\n 'node/no-unsupported-features': 'error',\n\n 'template-curly-spacing': ['error', 'always'],\n 'prefer-arrow-callback': 'e...
javascript
edit
0
0
mit
02ab0e3a31f52fd944e8ab9e3d81571c064cdbff
logux/eslint-config-logux
node.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport gulp from 'gulp';\nimport nugetRestore from 'gulp-nuget-restore';\n\nexport default {\n /**\n * Task name\n * @type {String}\n */\n name: 'sitecore:nuget-restore',\n\n /**\n * Task description\n * @type {String}\n ...
javascript
edit
0
2
mit
40ae74fef08a6463072951731a9173282d920aee
jscarmona/gulp-ignite-sitecore
src/tasks/nuget-restore.js
rejected_duplicate
Near-duplicate of sample 77037
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport {black} from './colors.js'\n\nexport function getIcon(\n unscaledSize,\n {monitored, metrics = []},\n {asImageData = false} = {},\n) {\n const scale = devicePixelRatio\n const size = unscaledSize * scale\n const canvas = do...
javascript
edit
0
3
apache-2.0
59ec8daa2110ae007542dfac2352c67417a8057b
LukeStebbing/Ergometer,LukeStebbing/Ergometer,LukeStebbing/Ergometer
icon.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of...
javascript
edit
null
null
bsd-3-clause
2b113c527ed1f308b247e50899afd70d2afa3106
krasimir/react,shergin/react,claudiopro/react,jquense/react,pyitphyoaung/react,AlmeroSteyn/react,niubaba63/react,jquense/react,jordanpapaleo/react,edvinerikson/react,mhhegazy/react,mhhegazy/react,brigand/react,glenjamin/react,acdlite/react,pyitphyoaung/react,terminatorheart/react,AlmeroSteyn/react,maxschmeling/react,fa...
src/renderers/shared/utils/forEachAccumulated.js
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// Handlebars Helper {{gh-path}}\n// Usage: Assume 'http://www.myghostblog.org/myblog/'\n// {{gh-path}} or {{gh-path ‘blog’}} for Ghost’s root (/myblog/)\n// {{gh-path ‘admin’}} for Ghost’s admin root (/myblog/ghost/)\n// {{gh-path ‘api...
javascript
edit
0
11
mit
74c6ad727fa967c17d9afbb4efbb50058fcac347
TryGhost/Ghost,TryGhost/Ghost,TryGhost/Ghost
ghost/admin/helpers/ghost-paths.js
rejected_complexity
Cyclomatic complexity too high: 11
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport debugModule from \"debug\";\nconst debug = debugModule(\"debugger:store:common\");\nconst reduxDebug = debugModule(\"debugger:redux\");\n\nimport { compose, createStore, applyMiddleware } from \"redux\";\nimport createSagaMiddlew...
javascript
edit
0
2
mit
9fb49da1505871d4c0705416b71d3e1ccd19bd56
ConsenSys/truffle
packages/debugger/lib/store/common.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// We have to remove node_modules/react to avoid having multiple copies loaded.\n// eslint-disable-next-line import/no-unresolved\nimport React, { PropTypes } from 'react';\nimport { modules } from 'stripes-loader'; // eslint-disable-li...
javascript
edit
0
6
apache-2.0
0dbbf93fb66f7d158622ed6dcd1957634f64e859
folio-org/stripes-core,folio-org/stripes-core,folio-org/stripes-core
Pluggable.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nexport default {\n \"prime-directive\": {\n alert: null,\n confirmationMessage: \"Are you sure want to proceed to the Idea Generation stage? This will commence the retro in earnest.\",\n nextStage: \"idea-generation\",\n pr...
javascript
edit
0
0
mit
028e7bb5c19e120ba3246d4f31e65157864b179a
stride-nyc/remote_retro,stride-nyc/remote_retro,stride-nyc/remote_retro,tnewell5/remote_retro,tnewell5/remote_retro,samdec11/remote_retro
web/static/js/configs/stage_configs.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n * Copyright (c) 2014-present, Facebook, Inc. All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of...
javascript
edit
null
null
mit
5caee086bcde1a718df31f5731b574c7a62f9c62
Daniel15/jest,ide/jest,ide/jest,blainekasten/jest,bookman25/jest,Daniel15/jest,skovhus/jest,aaron-goshine/jest,facebook/jest,blainekasten/jest,aaron-goshine/jest,Daniel15/jest,aaron-goshine/jest,mpontus/jest,cpojer/jest,skovhus/jest,cpojer/jest,blainekasten/jest,cpojer/jest,bookman25/jest,facebook/jest,mpontus/jest,fac...
packages/jest-util/src/clearLine.js
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React from 'react';\nimport { storiesOf } from '@kadira/storybook';\n\nimport SetStateExample from './SetStateExample';\nimport '../../styles/index.css';\n\nstoriesOf('<DropNCrop />', module).add('setState Example (default)', () ...
javascript
edit
0
1
mit
9f855061f473722eafe6ed74da4df7bb0a1975b3
synapsestudios/react-drop-n-crop
storybook/stories/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// All JSON schemas related to ballot objects\n\nexports.candidates = {\n \"title\": \"Ballot Candidates Schema\",\n \"type\": \"array\",\n \"minItems\": 5,\n \"items\": {\n \"type\": \"object\",\n \"properties...
javascript
edit
0
0
mit
b71081df713c9b329b290c2e6b7c09746e00fad8
coltonw/boardgamevote,coltonw/boardgamevote
schemas/ballotSchemas.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar WebSocketServer = require(\"ws\").Server,\n wss = new WebSocketServer({ port: 8080 });\n\nwss.broadcast = function broadcast (data) {\n\twss.clients.forEach(function sendTo (client) {\n\t\t// Send the data + silently drop all err...
javascript
edit
0
2
mit
4b723a0ead432a8de2c9591b958bbd09e4274149
BahuMan/Game-Of-Everything,Squarific/Game-Of-Everything,Squarific/Game-Of-Everything,BahuMan/Game-Of-Everything,Squarific/Game-Of-Everything,BahuMan/Game-Of-Everything
server.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n(function (cmds) {\n\t'use strict';\n\tif (typeof window.di === 'undefined') { window.di = {}; }; di.con = {}; var noop = function () { }; di.usecon = typeof console !== 'undefined';\n\tvar cl = cmds.length; for (var i = 0; i < cl; i++)...
javascript
edit
0
4
bsd-3-clause
e755c1cdf65256bc60bf720d2549283bff68f130
ueberbit/dibase
dibase.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst React = require('react');\nconst h = require('react-hyperscript');\n\n\nclass NetworkInfoMenu extends React.Component {\n render() {\n const { infoList } = this.props;\n\n const noInfoMessage = [\n h('p', 'No additiona...
javascript
edit
0
2
mit
3e7869341448dc1e9743198c815276c8fd2a896e
PathwayCommons/app-ui,PathwayCommons/app-ui,PathwayCommons/app-ui
src/client/features/pathways/menus/network-info-menu.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports = (db, Sequelize) => {\n const Message = db.define('message', {\n id: {\n type: Sequelize.INTEGER,\n autoIncrement: true,\n primaryKey: true,\n },\n title: Sequelize.STRING,\n body: Sequelize.T...
javascript
edit
0
1
mit
430085e73ce36b1ab14704a97c6ca9d935114227
Velocies/raptor-ads,bwuphan/raptor-ads,Darkrender/raptor-ads,Velocies/raptor-ads,Darkrender/raptor-ads,wolnewitz/raptor-ads,wolnewitz/raptor-ads,bwuphan/raptor-ads
database/schemas/message.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar express = require('express');\nvar app = express();\nvar bodyParser = require('body-parser');\n\n//Parse setup\nGLOBAL.Parse = require('parse').Parse;\nParse.initialize(\"W42PEkh5M824lpvx1FZsJxWBP6Eq7o9rvNHyJFP5\", \"5OA1f5vv9VbcCCT...
javascript
edit
0
1
mit
f8a35b398b27730abc97e9ce07995fb87e892b99
asthas/slingshop
app/app.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst Path = require('path')\n\nconst action = process.argv[2]\nvar args = process.argv.slice(3)\nvar env = process.env.NODE_ENV\nvar webpack\n\nswitch (action) {\n case 'build':\n webpack = 'webpack'\n env = env || 'production'\...
javascript
edit
0
0
mit
a186a352db7389ad786e532d20cc5bff611e47b7
neves/vwp,neves/vwp
bin/vwp.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nlevels = [\n {\n \"nuclei\": [\n {\n \"x\": 0.3,\n \"y\": 0.35,\n \"intensity\": 5\n },\n {\n \"x\": 0.3,\n \"y\": 0.6...
javascript
edit
0
0
mit
fa90cec313effecf16bd22d5b815961fd8a6eb59
eininsekt/eininsekt.github.io,eininsekt/eininsekt.github.io
Field/levels.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/* eslint-disable no-sync */\n'use strict';\n\n// MODULES //\n\nvar fs = require( 'fs' );\n\n\n// MAIN //\n\n/**\n* Synchronously reads the entire contents of a file.\n*\n* @param {(string|Buffer|integer)} file - file path or file descr...
javascript
edit
0
3
apache-2.0
dea8f2f6a060bc497bf4785e9995287cf5d8a080
stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib
lib/node_modules/@stdlib/fs/read-file/lib/sync.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/*\n * FFT plugin for dance.js\n * \n * Usage of frequencies being 2px with 1px spacing:\n *\n * var dance = new Dance('song.ogg'),\n * canvas = document.getElementById('fftcanvas');\n * dance.fft( canvas, 2, 1 );\n */\n\n(function(...
javascript
edit
0
3
mit
f173b8b6bfe0cfabf4a4302374c69d7784af0dad
jsantell/dancer.js,suryasingh/dancer.js,modulexcite/dancer.js,ngokevin/dancer.js,modulexcite/dancer.js,ngokevin/dancer.js,hoboman313/dancer.js,hoboman313/dancer.js,kyroskoh/dancer.js,suryasingh/dancer.js,kyroskoh/dancer.js
plugins/dance.fft.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\n// Declare app level module which depends on views, and components\nvar app = angular.module('Stocks', ['ngRoute', 'ngResource']);\n\napp.config(function($routeProvider) {\n $routeProvider.when('/', {\n \tcontroller: ...
javascript
edit
0
1
mit
022c2215675e27e4efe91683e0ea5e520d76ce0e
zachloubier/stocks,zachloubier/stocks
app/app.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n(function() {\n var Handler = function() {\n var options = {\n urlPatterns: [],\n shortcutKey: null,\n linkSelector: null\n };\n\n this.init = function() {\n var keys =...
javascript
edit
0
7
mit
2b443a6886d7a36052dcb077559eea25ecd6e960
dwc/tiny-tiny-rss-background-tab
handler.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/* global Thing */\n\n(function (document, window) {\n 'use strict';\n\n var Main = function () {\n // console.log('Main()');\n\n this.field = document.getElementById('field');\n\n this.things = [];\n\n ...
javascript
edit
0
3
mit
d2b01568c97d8a5fdfa13e5adc58a44c853c4370
wiz4u/seigi-no-mikata
app/scripts/main.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\nvar mongoose = require('mongoose'),\n User = mongoose.model('User'),\n _ = require('lodash');\n\n\nvar findUser = exports.findUser = function(id, cb) {\n User.findOne({\n _id: id\n }, function(err, user) {\n ...
javascript
edit
0
3
mit
d0ff42216d84afadb90b2751a2e65fccd67eeec1
fkiller/mean,fkiller/harvard,rpalacios/preach-lander,fkiller/harvard,idhere703/meanSample,Peretus/test-mean,jun-oka/bee-news-jp-client-1,yjkim1701/cmt-mgr,jun-oka/bee-news-jp-client-1,yjkim1701/cmt-mgr,GeminiLegend/myRelephant265,tmrotz/brad,VikramTiwari/mean,tmrotz/brad,fkiller/mean,rpalacios/preach-lander,Peretus/tes...
packages/core/users/authorization.js
accepted
null
true