messages
listlengths
2
2
language
stringclasses
8 values
prompt_type
stringclasses
2 values
lint_errors
int64
0
129
⌀
cyclomatic_complexity
int64
0
32
⌀
license
stringclasses
7 values
commit
stringlengths
40
40
repos
stringlengths
5
116k
new_file
stringlengths
4
220
status
stringclasses
6 values
error
stringlengths
26
74
⌀
is_valid_syntax
bool
2 classes
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict'\n\nconst { Fact, Rule, Operator, Engine } = require('json-rules-engine')\n\nclass ActiveRules {\n constructor () {\n this.Fact = Fact\n this.Rule = Rule\n this.Operator = Operator\n this.Engine = Engine\n }\n}...
javascript
edit
0
1
mit
ac4c46cf46c6f27bdc26cbbd4a2d37989cc2d0ed
bwinkers/ActiveRules-Server
src/ActiveRules.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nfunction Zombie(map, location) {\n this._map = map;\n this._location = location;\n \n var markerimage = new google.maps.MarkerImage(\n \"res/zombie_meandering.png\",\n new google.maps.Size(14, 30));\n this._marker = new...
javascript
edit
0
1
mit
f9025b6288b23cad196aec602d97b8536ccb45ee
waynecorbett/z,Arifsetiadi/zombie-run,yucemahmut/zombie-run,waynecorbett/z,malizadehq/zombie-run,malizadehq/zombie-run,mroshow/zombie-run,yucemahmut/zombie-run,tropikhajma/zombie-run,tropikhajma/zombie-run,Arifsetiadi/zombie-run,yucemahmut/zombie-run,mroshow/zombie-run,malizadehq/zombie-run,yucemahmut/zombie-run,Arifse...
ZombieRun4HTML5/js/zombie.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n#!/usr/bin/env node\n\n/**\n * Like GNU ncurses \"clear\" command.\n * https://github.com/mscdex/node-ncurses/blob/master/deps/ncurses/progs/clear.c\n */\n\nrequire('../../')(process.stdout)\n .eraseData(2)\n .goto(1, 1)\n\n```\n\nApp...
javascript
edit
0
1
mit
3095917c0871ce437b74329f314ba5d65e8ff489
TooTallNate/ansi.js,kasicka/ansi.js
examples/clear/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React, { PropTypes } from 'react';\n\nexport default function ProjectInfo({ projectData }) {\n // console.log('projectData: ', projectData);\n const {\n urls,\n photo,\n name\n } = projectData;\n const url = urls.web...
javascript
edit
0
3
mit
da8de07075912bdfa163efdfeac6b5b4237f8928
peteruithoven/KickstarterStatus,peteruithoven/KickstarterStatus,peteruithoven/KickstarterStatus
src/ProjectInfo.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar HtmlReporter = require('protractor-html-screenshot-reporter');\n\nexports.config = {\n allScriptsTimeout: 11000,\n\n specs: [\n '*.js'\n ],\n\n multiCapabilities: [{\n 'browserName': 'chrome'\n // }, {\n // 'browse...
javascript
edit
0
1
apache-2.0
a53181a444acf6b91db6ccbc41f5c4dc55c4b2a4
NLeSC/PattyVis,NLeSC/PattyVis
e2e/e2e.conf.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nSettings = {\n chart: {\n padding: { right: 40, bottom: 80 },\n margins: { top: 30, bottom: 0, right: 35 },\n dots: {\n size: 5,\n color: '#378E00',\n opacity: 0.7\n }\n },\n defaultData: {\n title: 'Sca...
javascript
edit
0
1
mit
d2d174a6953c247abad372f804cb5db356244779
berkmancenter/internet_dashboard,berkmancenter/internet_dashboard,blaringsilence/internet_dashboard,blaringsilence/internet_dashboard,berkmancenter/internet_dashboard
packages/imon-scatter/imon_scatter.js
rejected_duplicate
Near-duplicate of sample 94025
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n{\n angular\n .module('meganote.users')\n .directive('userLinks', [\n\n 'CurrentUser',\n\n (CurrentUser) => {\n\n class UserLinksController {\n user() {\n return CurrentUser.get();\n ...
javascript
edit
0
1
mit
3a20e160d532d82895251ca568378bf903ba67c1
sbaughman/meganote,sbaughman/meganote
app/users/user-links.directive.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n(function () {\n 'use strict';\n\n function ObjectPoolMaker(Constructor, size) {\n var objectPool = [],\n marker = 0,\n poolSize = size || 0;\n\n if (poolSize) {\n expandPool(poolSize);\n }\n\n function ...
javascript
edit
0
3
mit
4fa12570580a6c81a1cf3eb64e68aef0966b7b67
handrus/zombies-game,brunops/zombies-game,brunops/zombies-game
ObjectPoolMaker.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n//@ts-check\nconst fs = require(\"fs\");\nconst https = require('https');\nconst tls = require(\"tls\");\n\n\nmodule.exports = function (iface) {\n\t/** @type { import(\"tls\").TlsOptions } Server options object */\n\tconst serveroption...
javascript
edit
0
1
mit
3cdee6c75924c3cd2c0a0a503d2f927ee6e348a0
Arlen22/TiddlyServer,Arlen22/TiddlyServer,Arlen22/TiddlyServer,Arlen22/TiddlyServer
https.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict'\n\nvar zip = require('zippo')\nvar State = require('dover')\nvar Observ = require('observ')\nvar pipe = require('value-pipe')\nvar changeEvent = require('value-event/change')\nvar h = require('virtual-dom/h')\n\nmodule.expo...
javascript
edit
0
4
mit
5617c3fd5e2d98b68408ffc5332c6e657613e2cc
bendrucker/zip-input
index.js
accepted
null
true
[ { "role": "user", "content": "Write javascript code for the following: Add request constants from spec" }, { "role": "assistant", "content": "/* Source Server Query (SSQ) library\r\n * Author : George Pittarelli\r\n *\r\n * SSQ protocol is specified here:\r\n * https://developer.valvesoftware.co...
javascript
new_file
0
0
bsd-3-clause
799893651200debc93951818b09526217e4472b8
gpittarelli/node-ssq
lib/ssq.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nvar normalizeOptions = require('es5-ext/object/normalize-options')\n , setPrototypeOf = require('es5-ext/object/set-prototype-of')\n , ensureObject = require('es5-ext/object/valid-object')\n , ensureSt...
javascript
edit
0
2
mit
ce3f97ffbb05d83401356bd64b4870559adaaf18
medikoo/html-site-tree
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport EmberObject from '@ember/object';\nimport Evented from '@ember/object/evented';\nimport { computed } from '@ember/object';\nimport ObjHash from './obj-hash';\nimport { unwrapper } from 'ember-drag-drop/utils/proxy-unproxy-objects...
javascript
edit
0
10
mit
55d2ef6add68fde5914af4a43117000fc31f65a3
mharris717/ember-drag-drop,mharris717/ember-drag-drop
app/models/coordinator.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nclass ExperimentsService {\n /*@ngInject*/\n constructor(projectsAPI) {\n this.projectsAPI = projectsAPI;\n }\n\n getAllForProject(projectID) {\n return this.projectsAPI(projectID).one('experiments').getList();...
javascript
edit
0
1
mit
cd2ec9c103568207e0561a06772ec81553662181
materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org
website/src/app/project/experiments/services/experiments-service.service.js
rejected_duplicate
Near-duplicate of sample 98526
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports = {\n parser: 'babel-eslint',\n extends: 'airbnb',\n globals: {\n before: true,\n beforeEach: true,\n after: true,\n afterEach: true,\n describe: true,\n it: true,\n },\n rules: {\n 'arrow-body-s...
javascript
edit
0
0
mit
4e1a2db67b76238ca22fd5d398f4751b10a25bed
crewmeister/eslint-config-crewmeister
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n(function(){\n\t\"use strict\";\n\tvar gutil = require('gulp-util'),\n\t through = require('through2'),\n\t multimarkdown = require('multimarkdown');\n\n\tmodule.exports = function (options) {\n\t\treturn through.obj(function (fil...
javascript
edit
0
3
mit
6285af0cc0cac013c5f3501f4251ee091f2e4ef9
jjlharrison/gulp-multimarkdown
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport { Tracker } from 'meteor/tracker';\nimport { checkNpmVersions } from 'meteor/tmeasday:check-npm-versions';\n\ncheckNpmVersions({\n 'mobx': '2.3.x'\n}, 'space:tracker-mobx-autorun');\n\nconst { autorun } = require('mobx');\n\nexp...
javascript
edit
0
2
mit
abf1a63a609375f02957ded2d2d6e2014f44fc7e
meteor-space/tracker-mobx-autorun
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\nvar Reflux = require('reflux');\n\n\nmodule.exports = function(api, resource) {\n var asyncChildren = {\n children: ['completed', 'failed'],\n };\n var Actions = Reflux.createActions({\n load: async...
javascript
edit
0
2
mit
abaa6231fbb1d0e25eb188acd186a8236e901372
koodilehto/koodilehto-crm-frontend,bebraw/react-crm-frontend,bebraw/react-crm-frontend,koodilehto/koodilehto-crm-frontend
app/lib/Actions.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport { GraphQLBoolean, GraphQLString, GraphQLInt } from \"graphql\"\n\nexport const SuggestedArtistsArgs = {\n artist_id: {\n type: GraphQLString,\n description: \"The slug or ID of an artist\",\n },\n exclude_artists_without...
javascript
edit
0
0
mit
cd972400073e154c2e7b6aa483447763ad87947f
artsy/metaphysics,artsy/metaphysics,artsy/metaphysics,mzikherman/metaphysics-1,mzikherman/metaphysics-1,mzikherman/metaphysics-1,mzikherman/metaphysics-1
schema/me/suggested_artists_args.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport { SET_SETTINGS, EDITOR_DECREASE_FONT_SIZE, EDITOR_INCREASE_FONT_SIZE } from '../actions';\n\nconst initialState = {};\nconst MINIMUM_FONT_SIZE = 8;\n\nconst settings = (state = initialState, action) => {\n // The settings is a...
javascript
edit
0
4
mit
49fec8ec59fa692f7cb9b04670f6e5a221dc8087
tangrams/tangram-play,tangrams/tangram-play
src/js/store/reducers/settings.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst express = require('express');\nconst bodyParser = require('body-parser');\nconst cors = require('cors');\n\nconst app = express();\n\napp.set('view engine', 'ejs');\napp.set('views', './')\n\napp.get('/serve-seed.html', (req, res)...
javascript
edit
0
2
mit
e6a41ab15506da80c954185de2a4cea3e18393fa
apiaryio/apiary-console-seed,apiaryio/console-proxy,apiaryio/apiary-console-seed,apiaryio/console-proxy
index.js
rejected_duplicate
Near-duplicate of sample 100640
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nwindow.$claudia = {\n imgAddLoadedEvent: function () {\n var images = document.querySelectorAll('.js-progressive-loading')\n\n // TODO: type is image ?\n // TODO: read data-backdrop\n function loaded(event...
javascript
edit
0
3
mit
216f320ddf0feaa33ca478559ae087a687d8541c
Haojen/Lucy,Haojen/Lucy
source/js/main.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar loaderUtils = require('loader-utils');\nvar MessageFormat = require('messageformat');\n\nmodule.exports = function(content) {\n var query = loaderUtils.parseQuery(this.query);\n var locale = query.locale || 'en';\n var messages =...
javascript
edit
0
4
mit
b258bc865de4107053b31825d490cb0923cc8fb4
SlexAxton/messageformat.js,SlexAxton/messageformat.js,cletusw/messageformat-loader,messageformat/messageformat.js,messageformat/messageformat.js
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n\"use strict\";\nconst express = require('express');\nconst twilio = require('twilio');\nconst bodyParser = require('body-parser');\n\nconst app = express();\n\n// Run server to listen on port 5000.\nconst server = app.listen(5000, () =...
javascript
edit
0
2
mit
3985a313a544580a829e3ae708b13d578510c2cf
sagnew/SentimentRocket,sagnew/SentimentRocket
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict'\n\nvar window = require('global/window')\n\nmodule.exports = function screenOrientation () {\n var screen = window.screen\n if (!screen) return null\n var orientation = screen.orientation || screen.mozOrientation || scre...
javascript
edit
0
5
mit
b35bb87151096260f4d33f4df82fe4afcbfbbcf4
bendrucker/screen-orientation
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict'\n\nrequire('eslint-plugin-html')\n\nmodule.exports = {\n settings: [\n 'html/html-extensions': ['.vue'],\n 'html/xml-extensions': []\n ],\n rules: {\n 'jsx-uses-vars': require('eslint-plugin-react/lib/rules/jsx-...
javascript
edit
0
0
mit
2cf82552b663002ca7a558ac0cf9ed3daeae3d0d
armano2/eslint-plugin-vue,armano2/eslint-plugin-vue
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport { Localization } from './base';\nimport { overlayElement } from './overlay';\n\nexport { contexts } from './base';\n\nconst ns = 'http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul';\n\nconst allowed = {\n attributes:...
javascript
edit
0
5
apache-2.0
ef6459b1d599305276116f31adaa0af461ccdeaa
zbraniecki/fluent.js,zbraniecki/l20n.js,projectfluent/fluent.js,projectfluent/fluent.js,projectfluent/fluent.js,l20n/l20n.js,stasm/l20n.js,zbraniecki/fluent.js
src/lib/dom/xul.js
rejected_duplicate
Near-duplicate of sample 83346
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React from 'react'\nimport { Text, View } from 'react-native'\nimport styled from 'styled-components/native'\nimport defaultTheme from './theme'\n\nconst LabelWrapper = styled.View`\n flex:.5;\n marginTop: ${props => props.inli...
javascript
edit
0
1
mit
0ac83f91ddbf2407d1a5ac38c9d0aa2bd52cba32
esbenp/react-native-clean-form,esbenp/react-native-clean-form,esbenp/react-native-clean-form
src/Label.js
rejected_duplicate
Near-duplicate of sample 82159
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst { getRulesMatcher, getReset, createResetRule } = require(\"./lib\");\n\nfunction contains(array, item) {\n return array.indexOf(item) !== -1;\n}\n\nmodule.exports = (opts = {}) => {\n opts.rulesMatcher = opts.rulesMatcher || \"b...
javascript
edit
0
4
mit
a3abc7b61824c08e3274dcdf7912f67749edb4b7
maximkoretskiy/postcss-autoreset
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport Reflux from 'reflux';\nimport GameActions from '../actions/GameActions';\n\nvar GameStore = Reflux.createStore({\n\n init() {\n\n getGameFEN() {\n return this.fen;\n },\n getActivePlayer() {\n return this.fen.split(' ')...
javascript
edit
null
null
mit
c1acfada01fb655a36ed8b8990babd72f4dff302
gnidan/foodtastechess-client,gnidan/foodtastechess-client
app/scripts/stores/GameStore.js
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// custom mods\ndocument.addEventListener(\"DOMContentLoaded\", function(event) {\n\n // hide email right/sharing menu entries (as they do not work with some imap servers)\n var hideElements = [\n 'body > main > md-sidenav > md-con...
javascript
edit
0
3
mit
efb58791720fd70f578581b4e555c42f0397db04
skylime/mi-core-sogo,skylime/mi-core-sogo
copy/opt/local/lib/GNUstep/SOGo/WebServerResources/js/CustomModification.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport {Observable} from 'rx';\nimport keycode from 'keycode';\n\nexport function makeKeysDriver () {\n return function keysDriver() {\n return {\n presses (key) {\n let keypress$ = Observable.fromEvent(document.body, 'k...
javascript
edit
0
2
mit
8a5976339815d802005096f194a5811365e595ce
raquelxmoss/cycle-keys,raquelxmoss/cycle-keys
src/keys-driver.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar options = {\n container: document.getElementById('myChart'),\n data: [\n { label: 'Android', value: 56.9 },\n { label: 'iOS', value: 22.5 },\n { label: 'BlackBerry', value: 6.8 },\n { label: 'Symbia...
javascript
edit
0
1
mit
6a4c471f73cf52bc323fe93ad3e4f87d136cccc6
ceolter/angular-grid,ceolter/angular-grid,ceolter/ag-grid,ceolter/ag-grid
grid-packages/ag-grid-docs/src/javascript-charts-legend/legend-position/main.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar Mystique = require('mystique');\nvar Mystique = require('mystique');\n\nvar getIdForModel = function(model, propertyName) {\n var prop = model.get(propertyName);\n if (typeof prop === 'string') {\n return prop;\n }\n\n return...
javascript
edit
0
2
mit
36d98c93af18c4524986252fdf035909666ec457
TIY-LR-FEE-2015-Fall/library-api,TIY-LR-FEE-2015-Fall/library-api,TIY-LR-FEE-2015-Fall/library-api
app/transformers/check-in.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nvar babel = require('babel-core');\n\nexports.name = 'babel';\nexports.inputFormats = ['es6', 'babel', 'js'];\nexports.outputFormat = 'js';\n\n/**\n * Babel's available options.\n */\nvar availableOptions = Object.keys(...
javascript
edit
0
4
mit
3c0d0248ac6f45bcd2ee552f6c34af285003ad64
jstransformers/jstransformer-babel
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar $$ = React.createElement;\n\n// TextProperty\n// ----------------\n//\n\nvar TextProperty = React.createClass({\n displayName: \"TextProperty\",\n render: function() {\n var text = this.props.doc.get(this.props.path);\n // T...
javascript
edit
0
3
mit
e76a9cca48b2c8f005743c4a5d171052d6548430
substance/archivist-composer,substance/archivist-composer
src/extensions/core/components/text_property.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// @flow\nimport React from 'react'\nimport PrintIcon from '@material-ui/icons/Print'\nimport { defineMessages, FormattedMessage } from 'react-intl'\n\nimport ToolbarButton from '../internal/ToolbarButton'\n\nconst messages = defineMess...
javascript
edit
null
null
mit
836e03f54fcb7b3b8661c05d130a42a737db0599
digidem/ecuador-map-editor,digidem/ecuador-map-editor
src/renderer/components/MapFilter/ReportView/PrintButton.js
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/* remote ajax v 0.1.1 author by XericZephyr */\nvar rs = \"http://ajaxproxy.sohuapps.com/ajax\";\n\n(function($) {\n $.rajax = (function (url, obj) {\n \t(typeof(url)==\"object\")?(obj=url):((obj==undefined)?obj={url:url}:obj.url...
javascript
edit
0
5
mit
df6225d98d8ff406a54be343353e3c6550ed0e4a
XericZephyr/helminth,XericZephyr/helminth
js/ra.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.api = def(\n [\n module.runtime\n ],\n \n function (runtime) {\n var delegate = function (method) {\n return function () {\n runtime[method].apply(null, arguments);\n };\n };\n\n return {\n c...
javascript
edit
0
1
bsd-3-clause
50f102aab1ad52b33711f74f970ef079d0803d91
boltjs/bolt,boltjs/bolt,boltjs/bolt,boltjs/bolt
src/api/api.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\ndefine(['backbone'], function(B) {\n var M = {};\n\n M.Entry = B.Models.extend({});\n M.Entries = B.Models.extend({url: 'entries/data.json'});\n\n return M;\n});\n\n```\n\nApply this change: Fix definition of collection and model." ...
javascript
edit
0
1
mit
97f836a21db729eb5b97f4e8ca9e11e0cdd26495
astex/living-with-django,astex/living-with-django,astex/living-with-django
living-with-django/models.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\nimport backbone from 'backbone';\n\nclass Hello extends backbone.View {\n render() {\n this.$el.html('Hello, world.');\n }\n}\n\nvar myView = new Hello({el: document.getElementById('root')});\nmyView.render()...
javascript
edit
0
1
mit
89f52683ac13863e6f37055642988897e9868712
andrewrota/backbone-with-es6-classes,andrewrota/backbone-with-es6-classes
src/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports = {\n proxies: null,\n\n paths: {\n html : {\n src: ['app/**/*.html'],\n dest: \"www/build\"\n },\n sass: {\n src: ['app/theme/app.+(ios|md).scss'],\n ...
javascript
edit
0
1
mit
4743ac4791130dac36240d150eb5831b945e0bf2
zarautz/munoa,zarautz/munoa,zarautz/munoa
ionic.config.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n(function(mod) {\n // CommonJS, Node.js, browserify.\n if (typeof exports === \"object\" && typeof module === \"object\") {\n module.exports = mod(require('d3'),\n require('d3.chart'),\n ...
javascript
edit
null
null
mit
f12cd07dabf68b29e6ad05e3609b5f4e2920213a
benbria/d3.chart.bubble-matrix,leebecker-hapara/d3.chart.heatmap-matrix,benbria/d3.chart.bubble-matrix,leebecker-hapara/d3.chart.heatmap-matrix,leebecker-hapara/d3.chart.heatmap-matrix
src/meta/intro.js
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport { render } from 'solid-js/web';\nimport AsciinemaPlayer from './components/AsciinemaPlayer';\n\nif (window) {\n window.createAsciinemaPlayer = (props, elem) => {\n render(() => (<AsciinemaPlayer {...props} />), elem);\n }\n}...
javascript
edit
0
1
apache-2.0
fe104144615abec271cbae8313b63ee093053220
asciinema/asciinema-player,asciinema/asciinema-player
src/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\n/**\n * Module dependencies.\n */\n\nvar express = require('express');\nvar routes = require('./routes');\nvar memos = require('./routes/memos');\nvar http = require('http');\nvar path = require('path');\n\nvar app = ex...
javascript
edit
0
1
mit
e101502348aff6edfce78ee2537bf718be8f1493
eqot/memo
server/app.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nvar bind = require('lodash.bind');\nvar ResponseHandler = require('./response-handler');\n\nbind.placeholder = '_';\n\nfunction ResultList(retriever, options) {\n if (!retriever) {\n throw new Error('Expected Retrie...
javascript
edit
0
4
mit
d6adea99b450602bc48aaeed2094f347331b1354
yola/pixabayjs
src/result-list.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport BaseWindow from './base-window'\n\nconst key = 'MainWindow';\n\nclass MainWindow extends BaseWindow {\n static KEY = key;\n\n constructor(url) {\n //TODO: implement dummy window buttons\n super(url, { width: 500, height: ...
javascript
edit
0
1
mit
20f505663951000bfaca5416fa7b541802462a09
wozaki/twitter-js-apps,wozaki/twitter-js-apps
redux/src/main/browser/main-window.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar dest = \"./build\";\nvar src = './src';\n\nmodule.exports = {\n browserSync: {\n open: false,\n https: true,\n server: {\n // We're serving the src folder as well\n // for sass sourcemap linking\n baseDir: [...
javascript
edit
0
0
mit
80dbefed34c99f9fbf521f500ad1db9675d9a6c3
lmorchard/tootr
gulp/config.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nwindow.c.AdminNotificationHistory = ((m, h, _, models) => {\n return {\n controller: (args) => {\n const notifications = m.prop([]),\n getNotifications = (user) => {\n let notificat...
javascript
edit
0
1
mit
5a4a954662a987058f59dd60a60731152bd47059
sushant12/catarse.js,vicnicius/catarse.js,vicnicius/catarse_admin,catarse/catarse.js,thiagocatarse/catarse.js,mikesmayer/cs2.js,catarse/catarse_admin,adrianob/catarse.js
src/c/admin-notification-history.js
rejected_duplicate
Near-duplicate of sample 100832
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/*global angular */\n(function() {\n 'use strict';\n var QUERY_URL = \"https://address.digitalservices.surreyi.gov.uk/addresses?postcode=\";\n var AUTH_TOKEN = \"vJiSsulQe-zOobDsAWoUxr9cYfw\";\n\n var addressesApp;\n\n addressesApp...
javascript
edit
0
2
mit
7655a4481b262f31f8288d533d9746865224fae9
surreydigitalservices/sds-addresses,folklabs/sds-addresses,surreydigitalservices/sds-addresses,surreydigitalservices/sds-addresses,folklabs/sds-addresses,folklabs/sds-addresses
js/addresses.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n(function($, document, window) {\n \"use strict\"\n\n window.animationHeartBeat = function (steps)\n {\n var max = steps;\n var delay = 70;\n var current = 0;\n var interval;\n var beat;\n\n ...
javascript
edit
0
2
mit
585d4c685596764e9f25a5dc988453f8d5197aaf
marekkalnik/jquery-mdm-animatics
js/heartbeat.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport * as columnUtils from './columnUtils';\nimport * as compositionUtils from './compositionUtils';\nimport * as dataUtils from './dataUtils';\nimport * as rowUtils from './rowUtils';\nimport * as sortUtils from './sortUtils';\n\nexp...
javascript
edit
0
0
mit
21d6320759b1a78049f52c7052ac36f17a6ee1cc
ttrentham/Griddle,GriddleGriddle/Griddle,GriddleGriddle/Griddle,joellanciaux/Griddle,joellanciaux/Griddle
src/utils/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nMeteor.publish('channelPinnedMessages', function (search) {\n if (this.userId) {\n // TODO: checking if the user has access to these messages\n const channel = Channels.findOne({ $or: [{ _id: search }, { slug: search }] });\n ...
javascript
edit
0
3
mit
6eb45ba6e1a3db0036e829769d059813b16b5df8
tamzi/SpaceTalk,foysalit/SpaceTalk,MarkBandilla/SpaceTalk,MarkBandilla/SpaceTalk,foysalit/SpaceTalk,lhaig/SpaceTalk,mauricionr/SpaceTalk,bright-sparks/SpaceTalk,mGhassen/SpaceTalk,mGhassen/SpaceTalk,yanisIk/SpaceTalk,anjneymidha/SpaceTalk,SpaceTalk/SpaceTalk,anjneymidha/SpaceTalk,dannypaton/SpaceTalk,dannypaton/SpaceTa...
server/publications/pinnedMessages.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport { Component } from 'substance'\nimport CardComponent from '../shared/CardComponent'\n\nexport default class CollectionEditor extends Component {\n getActionHandlers () {\n return {\n 'remove-item': this._removeCollection...
javascript
edit
0
4
mit
1c76ad5e14992f493a02accb6c753fbd422114ec
substance/texture,substance/texture
src/article/metadata/CollectionEditor.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\nvar chai = require('chai');\nvar supertest = require('supertest');\nvar api = supertest('https://apis-bank-dev.apigee.net'); // supertest init;\n\nchai.should();\n\ndescribe('/atms', function() {\n describe('get', functi...
javascript
edit
0
2
apache-2.0
6795474af2596cb3628d500d93f1bd8e596e656d
siriscac/apigee-ci-demo
tests/atms-test.js
rejected_duplicate
Near-duplicate of sample 83342
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict'\n\nmodule.exports = {\n\t// This function finds the minimum and maximum values in an array of numbers.\n\tfindMinMax: function(numlist) {\n\t\tnumlist.sort( function (a,b) {return a - b} );\n\n\t\treturn [ numlist[0], numli...
javascript
edit
0
2
mit
532c17d07761f89158b4be8ea4e3b9c29ff35941
princess-essien/andela-bootcamp-slc
findminmax/src/findminmax.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React, { Component } from 'react';\n\nclass MembersPreview extends Component {\n\n render() {\n const {displayName, image, intro, slug} = this.props;\n\n // TODO: remove inline styles and implement a system\n return (\n...
javascript
edit
0
1
cc0-1.0
6938bbeac68d0764fd0b95baf69481a64fc8aab7
cape-io/acf-client,cape-io/acf-client
src/components/Members/MembersPreview.js
rejected_duplicate
Near-duplicate of sample 95347
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n * View for the room users list\n * @module views/pro/PlayHistoryView\n */\nvar panes = require('./panes');\n\nvar PlayHistoryView = Backbone.View.extend({\n\n\tid: \"plugpro-play-history\",\n\tclassName: \"media-list history\",\n\...
javascript
edit
0
1
mit
90518f85616a9ae5c67e3e6fc71a9406c3787724
traviswimer/PlugPro,traviswimer/PlugPro,SkyGameRus/PlugPro,SkyGameRus/PlugPro
src/js/views/pro/PlayHistoryView.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport {join} from \"path\"\n\nimport favicon from \"koa-favicon\"\n\n// TODO: Rewrite this middleware from scratch because of synchronous favicon\n// reading.\nconst FAVICON_PATH = join(\n process.cwd(), \"static/assets/img/icns/fav...
javascript
edit
0
6
mit
1507d27109ad65abcb115a498ae8bc4b9701286b
twi-project/twi-server,octet-stream/ponyfiction-js,octet-stream/ponyfiction-js,octet-stream/twi
src/core/middleware/005-favicon/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\ndescribe('Test stuff', function () {\n it('should just work', function () {\n angular.mock.module('hdpuzzles');\n\n expect(true).toBe(true);\n });\n});\n```\n\nApply this change: Test if Travis CI reports a failure for f...
javascript
edit
0
1
mit
4af6210c0aae1b09d754f73b9a5755e5af81dff1
ErikNijland/hdpuzzles,ErikNijland/hdpuzzles
test/unit/dummySpec.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport Leaflet from \"leaflet\";\n\nimport latlngType from \"./types/latlng\";\nimport PopupContainer from \"./PopupContainer\";\n\nexport default class Marker extends PopupContainer {\n componentWillMount() {\n super.componentWillM...
javascript
edit
0
3
mit
0193fceb10b4d266945e00967726ab5549cd77a0
dantman/react-leaflet,TerranetMD/react-leaflet,marcello3d/react-leaflet,ericsoco/react-leaflet,snario/react-mapbox-gl,yavuzmester/react-leaflet,uniphil/react-leaflet,itoldya/react-leaflet,marcello3d/react-leaflet,snario/react-mapbox-gl,KABA-CCEAC/react-leaflet,yavuzmester/react-leaflet,yavuzmester/react-leaflet,itoldya...
src/Marker.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/*\n * CPU statistics\n */\n\nvar exec = require('child_process').exec;\n\n/*\n * Unfortunately the majority of systems are en_US based, so we go with\n * the wrong spelling of 'utilisation' for the least hassle ;)\n */\nfunction get_cp...
javascript
edit
0
3
isc
e86977f2bed532a344b2df4c09ed84a9b04fee17
jperkin/node-statusmon
probes/cpu.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/*global __WEBPACK_DEV_SERVER_DEBUG__*/\n/*global __WEBPACK_DEV_SERVER_NO_FF__*/\n\nlet SAVE;\n\nif (__WEBPACK_DEV_SERVER_DEBUG__) { // for webpack-dev-server auto simulate\n SAVE = require('./webpack-dev-server-util');\n \n if (!__W...
javascript
edit
0
3
apache-2.0
87396bd2a640d12026ade031340b292ee2ec1c08
SRI-SAVE/react-components
src/sandbox.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// Stack grow safe implementation\n\n'use strict';\n\nvar ensureValue = require('../../object/valid-value')\n , isArray = Array.isArray;\n\nmodule.exports = function () {\n\tvar input = ensureValue(this), remaining, l, i, result = ...
javascript
edit
0
7
isc
7b44cd38ea5741ebaba29da17aa091c7c8dddf6a
medikoo/es5-ext
array/#/flatten.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nexport default {\n gameWidth: 1080,\n gameHeight: 1613,\n images: {\n 'background-game': './assets/images/background-game.png',\n 'background-landing': './assets/images/background-landing.png',\n 'backgroun...
javascript
edit
0
0
mit
f217d11b36613ab49314e8ba9f83ab8a76118ed0
MarcL/see-it-off,MarcL/see-it-off
src/config.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst request = require('supertest');\nconst app = require('../app');\ndescribe('name to point', function () {\n it('should return JSON object with geolocation',\n function (done) {\n request(app)\n .get('/point?name=Old...
javascript
edit
0
2
mit
d517724e6875365ff2e49440b13d01837e748fd6
pub-t/name-to-point
test/test.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React, { PropTypes, PureComponent } from 'react';\nimport { findDOMNode } from 'react-dom';\nimport { InputGroup } from 'binary-components';\nimport { isMobile } from 'binary-utils';\nimport { actions } from '../_store';\nimport ...
javascript
edit
0
4
mit
3d4d507c75826fd957939fc7c999fd3460aa8cd2
nazaninreihani/binary-next-gen,nazaninreihani/binary-next-gen,binary-com/binary-next-gen,nuruddeensalihu/binary-next-gen,nazaninreihani/binary-next-gen,binary-com/binary-next-gen,nuruddeensalihu/binary-next-gen,nuruddeensalihu/binary-next-gen,binary-com/binary-next-gen
src/asset-picker/AssetPickerFilter.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst { downloadGalleryPhoto } = require(\"../../gallery-helpers\");\nconst html = require(\"../../render-string\");\nconst quality = 40;\nconst size = 300;\n\nmodule.exports = class Gallery {\n data() {\n return {\n layout: \"...
javascript
edit
0
1
mit
93b9428ad5232974ad73e02941f7b647f2a4a804
surma/surma.github.io,surma/surma.github.io
content/photography/index.11ty.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n * [schema defines validation schemas for Mongo documents being inserted into db:ibu collection:ibuerrors]\n *\n *\n */\n\nvar ibuErrorSchema = new Schema({\n filename: {\n type: String,\n validate: {\n validator: funct...
javascript
edit
0
0
mit
0ea7667da177e969fe9dc0e04db977db50c9d4fa
utkdigitalinitiatives/ibu,utkdigitalinitiatives/ibu
src/tap/schema.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports = function(syno) {\n return {\n };\n};\n\n```\n\nApply this change: Add Synology.downloadStation.info, Synology.downloadStation.getConfig and Synology.downloadStation.setConfig" }, { "role": "assistant", "co...
javascript
edit
null
null
mit
7ae46169e9383f9bc71bf1715b19441df8e5be30
yannickcr/node-synology
lib/download-station.js
rejected_code_smell
Internal duplication: ~36% of the file is inside repeated 12+ line blocks
null
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n * @requires Map.js\n * @requires ArrayList.js\n */\n\n/**\n * @see http://download.oracle.com/javase/6/docs/api/java/util/HashMap.html\n * \n * @implements {javascript.util.Map}\n * @constructor\n * @export\n */\njavascript.util.H...
javascript
edit
0
3
mit
f327771057d2ad38c8a7fa8d893c37197c7fde8b
sshiting/javascript.util,sshiting/javascript.util,bjornharrtell/javascript.util,bjornharrtell/javascript.util
src/HashMap.js
accepted
null
true
[ { "role": "user", "content": "Write javascript code for the following: Hide close animation for non mobile." }, { "role": "assistant", "content": "$('.nav a').on('click', function(){\n if ($(window).width() <= 767) {\n $(\".navbar-toggle\").click();\n }\n});" } ]
javascript
new_file
0
2
mit
d55d600d9e3b8fadeabe51445ebac4c04860f808
Clastic/clastic-marketing,Clastic/clastic-marketing,Clastic/clastic-marketing,Clastic/clastic-marketing
src/AppBundle/Resources/public/scripts/menu.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use babel'\n\nimport {getPath} from 'consistent-path'\nexport {tempFile} from 'atom-linter'\n\nconst assign = Object.assign || function(target, source) {\n for (const key in source) {\n target[key] = source[key]\n }\n ret...
javascript
edit
0
2
mit
17c826741636990088061d32d2e1ed76beeb3d59
steelbrain/autocomplete-swift
lib/helpers.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\ndefine(['app'], function (app) {\n \"use strict\";\n\n return app.service('storageService', ['$window', function (win) {\n this.available = 'localStorage' in win;\n\n this.get = function (key) {\n return win.localStor...
javascript
edit
0
1
mit
844806fb7bbad77a5b507e0e26519575bbf3124e
BrettBukowski/tomatar
js/services/Storage.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport { Dimensions } from 'react-native'\n\nmodule.exports = {\n get visibleHeight() {\n return Dimensions.get('window').height\n },\n}\n\n```\n\nApply this change: Use screen dimension as visible height" }, { "role": "ass...
javascript
edit
0
1
mit
692437cd611c8cfc9222ec4cc17b0d852aa26e72
octopitus/rn-sliding-up-panel
libs/layout.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nconst { protocolHandlers } = require('../../protocols');\nconst { rpcHandlers } = require('../../rpc');\n\n// Build message of events of type `request` as:\n// STATUS [ERROR] - PROTOCOL METHOD RPC /PATH COMMAND...\ncon...
javascript
edit
0
4
apache-2.0
91beb6edb16bfe61a85c407caaa8bbf56881f366
autoserver-org/autoserver,autoserver-org/autoserver
src/events/console/request_message.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar fs = require('fs');\n\nfunction getInitialCharge() {\n var initialCharge = 100,\n body = fs.readFileSync('tesla.out').toString().split('\\n');\n\n for (var i = body.length - 1; i >= 0; i--) { // Pick out valid part of file.\n...
javascript
edit
0
3
mit
8bc9e027d6ed0a94ee995893d2cc8dd955550c33
PrajitR/ChargePlan
tesla.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport test from 'ava';\nimport Canvas from 'canvas';\nimport mergeImages from '../';\nimport fixtures from './fixtures';\n\ntest('mergeImages rejects Promise if image load errors', async t => {\n\tt.plan(1);\n\tt.throws(mergeImages([1]...
javascript
edit
0
1
mit
4a0fa2527ad0a5765a8f846f7723158037e0520a
lukechilds/merge-images
test/errors.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar cp = require('child_process');\nvar walk = require('walk');\n\nvar walker = walk.walk(__dirname + '/spec', {followLinks: false});\nwalker.on('file', function(root, stat, next) {\n\n var filepath = root + '/' + stat.name;\n cp.fork...
javascript
edit
0
1
mit
048eb86cd16a0bcff04bf4fe9129131c367ce95e
vogdb/pulsar-rest-api,cargomedia/pulsar-rest-api,cargomedia/pulsar-rest-api,njam/pulsar-rest-api,njam/pulsar-rest-api,cargomedia/pulsar-rest-api,vogdb/pulsar-rest-api,cargomedia/pulsar-rest-api,vogdb/pulsar-rest-api,njam/pulsar-rest-api,njam/pulsar-rest-api
test/runner.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n/*global describe */\n\n\ndescribe('Issues.', function () {\n require('./issues/issue-8.js');\n require('./issues/issue-17.js');\n require('./issues/issue-19.js');\n require('./issues/issue-26.js');\n require('./issu...
javascript
edit
0
2
mit
cfdc5729e8b71c88baad96d1b06cafe643600636
crissdev/js-yaml,minj/js-yaml,doowb/js-yaml,djchie/js-yaml,joshball/js-yaml,cesarmarinhorj/js-yaml,nodeca/js-yaml,joshball/js-yaml,vogelsgesang/js-yaml,pombredanne/js-yaml,rjmunro/js-yaml,rjmunro/js-yaml,SmartBear/js-yaml,jonnor/js-yaml,SmartBear/js-yaml,bjlxj2008/js-yaml,denji/js-yaml,denji/js-yaml,isaacs/js-yaml,cris...
test/issues.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict'\n\nconst fs = require('fs')\nconst gulp = require('gulp')\nconst lessModule = require('less')\nconst less = require('gulp-less')\nconst sourcemaps = require('gulp-sourcemaps')\nconst rename = require('gulp-rename')\nconst m...
javascript
edit
0
3
mit
b4b4997ff9b0d9c7ec17021f08d1da74e06225c7
thebitmill/gulp
tasks/less.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/*\r\n * Find scopes from AST\r\n * @lastmodifiedBy ChengFuLin(<EMAIL>)\r\n * @lastmodifiedDate 2015-07-27\r\n */\r\nvar walkes = require('walkes');\r\n\r\n/**\r\n * ScopeFinder\r\n * @constructor\r\n */\r\nfunction ScopeFinder() {\r\n}...
javascript
edit
0
1
mit
aa6565b0e3c788e3edd278058092b4ae80063685
chengfulin/dujs,chengfulin/dujs
lib/dujs/scopefinder.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar objectTypes = {\n \"boolean\": false,\n \"function\": true,\n \"object\": true,\n \"number\": false,\n \"string\": false,\n \"undefined\": false\n};\n\n/*eslint-disable */\nvar _root = (objectTypes[typeof self] && ...
javascript
edit
0
5
apache-2.0
d08660202911ad0739d90de24c16614a510df4c0
Netflix/falcor,sdesai/falcor,Netflix/falcor,sdesai/falcor
lib/SymbolShim.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nglobal.XMLHttpRequest = require('xhr2');\nglobal.dataLayer = [];\nvar test = require('blue-tape');\nvar GeordiClient = require('../index');\n\ntest('Instantiate a client with default settings', function(t) {\n var geordi = new GeordiCl...
javascript
edit
0
2
apache-2.0
68740b554194b5318eaedc507a285d66ccf1ecd3
zooniverse/geordi-client
test/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar should = require('should'),\n stylus = require('stylus'),\n fs = require('fs');\n\nvar stylusMatchTest = function() {\n var files = fs.readdirSync(__dirname + '/fixtures/stylus/styl/');\n\n files.forEach(function(file) {\n ...
javascript
edit
0
1
mit
97b03822bb8d700a326417decfb5744a71998d9c
lucasoneves/jeet,jakecleary/jeet,durvalrafael/jeet,ccurtin/jeet,nagyistoce/jeet,pramodrhegde/jeet,mojotech/jeet,rafaelstz/jeet,mojotech/jeet,greyhwndz/jeet,macressler/jeet,travisc5/jeet
tests/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n\nmodule.exports = LessError;\nfunction LessError(parser, e, env) {\n var input = parser.getInput(e, env),\n loc = parser.getLocation(e.index, input),\n line = loc.line,\n col = loc.column,\n callLine = e...
javascript
edit
0
5
apache-2.0
78a92e702daedff605c76be0eeebaeb10241fcd1
bhavyaNaveen/project1,evocateur/less.js,jjj117/less.js,paladox/less.js,Nastarani1368/less.js,waiter/less.js,yuhualingfeng/less.js,SkReD/less.js,SomMeri/less-rhino.js,yuhualingfeng/less.js,mcanthony/less.js,christer155/less.js,royriojas/less.js,cgvarela/less.js,royriojas/less.js,idreamingreen/less.js,ridixcr/less.js,dec...
lib/less/less-error.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar app = require('../load'),\n useCases = app.useCases,\n h = require('../configHelpers');\n\nexports.index = function(req, res){\n res.json(app.useCases);\n};\n\nexports.create = function(req, res){\n h.overwriteConfigWithPath...
javascript
edit
0
2
mit
ddb79a63bd6bfd489758db9cb940b4cb9656a754
Webkite-Themes/iago
routes/useCases.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n\n/**\n *\tChat Component\n * $(\"#chat\").chat({\n * ruleGroupName: \"\",\n * style: [\"block\"],\n * template: [1],\n * environment: \"1\"|\"2\"|\"3\"\n * });\n */\n\nui.chat = function(conf) {\n \n \tvar th...
javascript
edit
0
4
mit
ea0293471dcee31b21b9b3ae5b91276ba95e6aed
mercadolibre/chico,atma/chico,vrleonel/chico,atma/chico,vrleonel/ml-test,amireynoso/uxtest,amireynoso/uxtest,vrleonel/chico,vrleonel/ml-test,mercadolibre/chico
src/js/chat.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React, { Component } from 'react';\nimport \"./css/App.css\";\nimport logo from \"../public/logo.svg\";\nimport Markdown from \"./Markdown\";\nimport TocHeader from \"./TocHeader\";\n\nclass App extends Component {\n render() ...
javascript
edit
0
1
mit
1ef81c6657121d4aeabfbf6b27b9df63b739e6db
FredBoat/docs.fredboat.com,FredBoat/fredboat.com,FredBoat/docs.fredboat.com,FredBoat/fredboat.com
src/App.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar Handlebars = require(\"handlebars/base\");\nmodule.exports = Handlebars;\n\nrequire(\"handlebars/utils\");\n\nrequire(\"handlebars/ast\");\nrequire(\"handlebars/printer\");\nrequire(\"handlebars/visitor\");\n\nrequire(\"handlebars/c...
javascript
edit
0
0
mit
6aa9a30b0238a58980897ee83972514400ea2a5c
xiaobai93yue/handlebars.js,shakyShane/hb-fork,xiaobai93yue/handlebars.js,gautamkrishnar/handlebars.js,shakyShane/hb-fork,denniskuczynski/handlebars.js,cgvarela/handlebars.js,code0100fun/handlebars.js,mosoft521/handlebars.js,samokspv/handlebars.js,liudianpeng/handlebars.js,mubassirhayat/handlebars.js,halhenke/handlebars...
lib/handlebars.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports = function($http, $state, $location, $q, DocumentApiService, \n DocumentRouteService, DocumentService, GlobalService, UserService, MathJaxService) {\n \n console.log('SEARCH SERVICE')\n ...
javascript
edit
0
3
mit
8ca011e17298196dba123b83b02a72e010020291
jxxcarlson/ns_angular,jxxcarlson/ns_angular
app/documents/services/SearchService.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nvar Heroku = require('heroku-client');\nvar co = require('co');\nvar heroku;\n\nmodule.exports = {\n topic: 'access',\n needsAuth: true,\n needsApp: true,\n command: 'remove',\n description: 'Remove u...
javascript
edit
0
2
isc
e1d9d0e9f784df298df41967cfba947fa65c2698
heroku/heroku-access,heroku/heroku-orgs
commands/access/remove.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar p;\nvar drawings = [];\n\nvar DrawingManager = function (p5Sketch) {\n p = p5Sketch;\n};\n\nDrawingManager.prototype.add = function (drawing) {\n console.log('Added ' + drawing);\n drawings.unshift(drawing);\n}\n\nDrawingManager....
javascript
edit
0
5
mit
3158eb1bbd06d8a7fb8bc9c60e9fed423f3971a4
Dermah/pulsar,Dermah/pulsar
src/DrawingManager.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// This initializer exists only to make sure that the following\n// imports happen before the app boots.\nimport { registerKeywords } from 'ember-a11y/ember-internals';\nregisterKeywords();\n\nimport Ember from 'ember';\n\nexport functi...
javascript
edit
0
1
mit
8ffc8c6ca7b831278db6e0891409c58ea1fd3daa
ember-a11y/ember-a11y,nathanhammond/ember-a11y,ember-a11y/ember-a11y,nathanhammond/ember-a11y
app/instance-initializers/ember-a11y.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n\"use strict\";\n\nconst Registry = require('../util/registry');\n\n/**\n * TODO: Could this be replaced with an InitRegistry?\n * @class\n * @memberOf Defiant.Plugin\n * @extends Defiant.util.Registry\n */\nclass PluginRegistry extends...
javascript
edit
0
0
mit
ba54cae1371b15fda7037d930c9353ace6e3c342
coreyp1/defiant,coreyp1/defiant
lib/plugin/pluginRegistry.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar Graphite = require('graphite');\nvar Measured = require('measured');\n\nvar reportInterval = 5000;\nvar graphiteHost = process.env.GRAPHITE_HOST || null;\nvar graphitePort = process.env.GRAPHITE_PORT || 2003;\nvar envName = process....
javascript
edit
0
3
mit
099f3ab0f5271e6369eb1b45deade038427922dc
jonathan-fielding/polyfill-service,mcshaz/polyfill-service,jonathan-fielding/polyfill-service,kdzwinel/polyfill-service,mcshaz/polyfill-service,kdzwinel/polyfill-service,JakeChampion/polyfill-service,JakeChampion/polyfill-service,jonathan-fielding/polyfill-service,mcshaz/polyfill-service,kdzwinel/polyfill-service
service/metrics.js
rejected_duplicate
Near-duplicate of sample 94298
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst fs = require('fs-extra');\nconst path = require('path');\nconst chalk = require('chalk');\n\nfunction copyTemplate(appDir, templatePath) {\n fs.copySync(templatePath, appDir);\n fs.moveSync(\n path.join(appDir, 'gitignore'),\...
javascript
edit
0
2
mit
1ab4424effd5f5ca1362e042d26d06911993511f
kevindantas/create-landing-page,kevindantas/create-landing-page,kevindantas/create-landing-page
packages/landing-scripts/scripts/init.js
rejected_duplicate
Near-duplicate of sample 76272
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nmodule.exports = function (mongoose) {\n var recallSchema = mongoose.Schema({\n Year: Number,\n Make: String,\n Model: String,\n Manufacturer: String,\n Component: String,\n Summary: String,\n Cons...
javascript
edit
0
1
mit
d4c964e13fa20ff609d3b9c0b7d16d5d884cd8cc
justinsa/maine-coone,justinsa/maine-coone
database/recall.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n * @class CM_FormField_Text\n * @extends CM_FormField_Abstract\n */\nvar CM_FormField_Text = CM_FormField_Abstract.extend({\n _class: 'CM_FormField_Text',\n\n /** @type Boolean */\n _skipTriggerChange: false,\n\n events: {\n ...
javascript
edit
0
2
mit
8ab0eab5c760dc26536e561e7f589709ef2160d1
njam/CM,fauvel/CM,zazabe/cm,fvovan/CM,tomaszdurka/CM,fauvel/CM,cargomedia/CM,vogdb/cm,tomaszdurka/CM,tomaszdurka/CM,vogdb/cm,mariansollmann/CM,cargomedia/CM,alexispeter/CM,alexispeter/CM,tomaszdurka/CM,mariansollmann/CM,vogdb/cm,cargomedia/CM,vogdb/cm,fauvel/CM,njam/CM,cargomedia/CM,alexispeter/CM,mariansollmann/CM,tom...
library/CM/FormField/Text.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport template from './builder.js';\nimport kms from './kms.js';\nimport cw from './post.js';\nimport auth from './auth.js';\n\nexports.handler = (event, context, callback) => {\n console.log('Received event:', JSON.stringify(event, n...
javascript
edit
0
8
mit
7fb65123e15dbbcfd236d6a5bc4a5b51da19bb29
Nate-River56/hub2chat,Nate-River56/hub2chat,Nate-River56/hub2chat
functions/chatwork/src/index.js
rejected_duplicate
Near-duplicate of sample 69373
true