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\nvar childProcess = require('child_process')\n\nchildProcess.exec('./index.js', function onBoot (err) {\n if (err) {\n throw err\n }\n})\n\n```\n\nApply this change: Add assertions to integration tests" }, { ...
javascript
edit
0
1
isc
9ee8605af644bd9b6489d8b648247730c9569750
wraithan/tread
test/integration/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar DS = require('dslink');\n\nvar Increment = DS.createNode({\n onInvoke: function(columns) {\n // TODO: Support for columns.amount, requires bugfix.\n var previous = link.getNode('/counter').lastValueUpdate.value;\n link.get...
javascript
edit
0
1
apache-2.0
79a9b0b41691d545526d75a70636ad24c927400d
IOT-DSA/dslink-javascript-template
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar expect = require('chai').expect;\nvar count = require('count-substring');\nvar htmlToText = require('html-to-text');\n\nmodule.exports = function (browser) {\n describe(\"The tests written in Elm\", function () {\n it('sho...
javascript
edit
0
2
mit
74b82a74f7aa4625ab3b240398a93f164df1cfa4
rgrempel/elm-web-api,rgrempel/elm-web-api
test/src/mocha/elmTest.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar uuid = require('uuid')\n\nvar blessThisCode = function(){\n var blessingId = uuid.v4()\n var blessing = `Blessing ID #${blessingId}: Our blessings are with you.`\n return blessing\n}\n\nexports.blessThisCode = blessThisCode...
javascript
edit
0
1
mit
cf0b212970d20fc9765f3098e98bf03e485965f6
rudimk/dua.js
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport raven from \"raven\"\nimport { assign } from \"lodash\"\n\nconst blacklistHttpStatuses = [401, 403, 404]\n\nexport const shouldLogError = originalError => {\n if (originalError && originalError.statusCode) {\n return (\n ...
javascript
edit
0
6
mit
511814ce75f471f5a68350312060f5506b2c3dd0
artsy/metaphysics,mzikherman/metaphysics-1,artsy/metaphysics,mzikherman/metaphysics-1,mzikherman/metaphysics-1,mzikherman/metaphysics-1,artsy/metaphysics
src/lib/graphqlErrorHandler.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport koaRouter from 'koa-router';\nimport fs from 'fs';\nimport path from 'path'\nimport readline from 'readline';\n\nconst router = koaRouter();\n\nfunction lineReaderThunk(lineReader) {\n return function(done) {\n lineRead...
javascript
edit
0
2
mit
5884798a3f122edf001a271a13d8b3ec62aa61d2
alexchiri/minimalistic-blog,alexchiri/minimalistic-blog,alexchiri/minimalistic-blog
src/server/api/posts.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst ZoomdataSDK = require('zoomdata-client/distribute/sdk/zoomdata-client.node');\n\nasync function run() {\n const application = {\n secure: true,\n host: 'developer.zoomdata.com',\n port: 443,\n path: ...
javascript
edit
0
1
mit
6e9572f9dc1ffc5820d3db766a7e54bb8172f72e
artembykov/zoomdata-sdk-node
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports = {\n parser: 'babel-eslint',\n extends: [\n 'airbnb',\n 'plugin:ava/recommended',\n ],\n plugins: [\n 'import',\n 'ava',\n ],\n rules: {\n indent: ['error', 4, {\n ...
javascript
edit
0
0
mit
991a35065ce79541b4ee311f9d7b5cfd40f031c5
brummelte/eslint-config
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React from 'react';\nimport { requireNativeComponent } from 'react-native';\nimport PropTypes from 'prop-types';\n\nconst RNPdfScanner = requireNativeComponent('RNPdfScanner', PdfScanner);\n\nclass PdfScanner extends React.Compon...
javascript
edit
null
null
mit
90732897e7b64a65de03a28860ef2db1e3820d6b
Michaelvilleneuve/react-native-document-scanner,Michaelvilleneuve/react-native-document-scanner,Michaelvilleneuve/react-native-document-scanner,Michaelvilleneuve/react-native-document-scanner
index.js
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar gulp = require('gulp'),\n react = require('gulp-react'),\n gulpIf = require('gulp-if'),\n uglify = require('gulp-uglify'),\n _ = require('underscore'),\n elixir = require('laravel-elixir'),\n utilities = require('l...
javascript
edit
0
1
mit
5c54eabf0fe90b35f60adaf9a661ce85616e56e6
joecohens/laravel-elixir-react
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst express = require('express');\nconst path = require('path');\nconst app = express();\n\napp.use(express.static('./build'));\n\napp.get('/', function (req, res) {\n res.sendFile(path.join(__dirname, './build', 'index.html'));\n}...
javascript
edit
0
1
mit
a6f5ee1610f0c4a83d6ef3ddea3bf7896c52412f
bombbomb/Hydra,bombbomb/Hydra
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/* globals module */\n\n'use strict'\n\nmodule.exports = {\n name: 'ember-frost-bunsen',\n\n included: function (app) {\n this._super.included(app)\n app.import('bower_components/z-schema/dist/ZSchema-browser.js')\n },\n\n ini...
javascript
edit
0
6
mit
1f8d043822583710de9fae9d655a56f36c66dec3
sophypal/ember-frost-bunsen,sandersky/ember-frost-bunsen,sophypal/ember-frost-bunsen,sandersky/ember-frost-bunsen,ciena-frost/ember-frost-bunsen,ciena-frost/ember-frost-bunsen,sandersky/ember-frost-bunsen,ciena-frost/ember-frost-bunsen,sophypal/ember-frost-bunsen
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar nunjucks = require(\"nunjucks\");\n\nmodule.exports = function(env, callback) {\n var NunjucksTemplate = function(template) {\n this.template = template;\n };\n\n NunjucksTemplate.prototype.render = function render(locals, cal...
javascript
edit
0
2
bsd-2-clause
26d6b0e3da91d1d77a6b085adfd71bc93fb45c75
devoptix/wintersmith-nunjucka,jnordberg/wintersmith-nunjucks,jbuck/wintersmith-nunjucks
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n#!/usr/bin/env node\n\nvar path = require('path');\nvar fs = require('fs');\nvar colors = require('colors');\nvar shell = require('./lib/shell');\nvar subtree = require('./lib/subtree');\n\nvar cwd = process.cwd();\nvar gitroot = path.j...
javascript
edit
0
2
mit
c2148930b2a73d74754917485f0e0318117f3019
plitex/git-subtree
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\nvar execFile = require('child_process').execFile;\nvar toDecimal = require('to-decimal');\n\nmodule.exports = function (cb) {\n\tif (process.platform !== 'win32') {\n\t\tthrow new TypeError('Only Windows systems are suppo...
javascript
edit
0
4
mit
0582f24801837916e3cb2c674cf3704487929272
kevva/win-battery-level
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nmodule.exports = function(config) {\n\n config.set({\n\n autoWatch: true,\n\n browsers: [\n 'PhantomJS'\n ],\n\n colors: true,\n\n coverageReporter: {\n dir: '...
javascript
edit
0
1
mit
8af039a94e7dc2fe5c8689f2ee14891a8e922f97
JamieMason/Jasmine-Matchers,JamieMason/Jasmine-Matchers
karma.conf.js
accepted
null
true
[ { "role": "user", "content": "Write javascript code for the following: Use `moment.tz.load` instead of `moment.tz.add` to import initial data in Node.\n\n#94" }, { "role": "assistant", "content": "var moment = module.exports = require(\"./moment-timezone\");\nmoment.tz.load(require('./data/packe...
javascript
new_file
0
0
mit
df4e0ae386c67dc9635ecb64e8cc6b10fe53e8ec
blixt/moment-timezone,moment/moment-timezone,samjoch/moment-timezone,kidaa/moment-timezone,lookfirst/moment-timezone,HubSpot/moment-timezone,eddywashere/moment-timezone,andrewchae/moment-timezone,mj1856/moment-timezone,orocrm/moment-timezone,mkhuramj/moment-timezone,6ft-invsbl-rbbt/moment-timezone,rollbar/moment-timezo...
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nvar util = require('util');\nvar wrapi = require('wrapi');\n\nvar endpoints = require('./api/slack.json');\n\nfunction slackWrapi(token) {\n\n var opts = {\n qs: {\n token: token\n },\n headers: {\n ...
javascript
edit
0
1
mit
3372bfedefcc5c057fbdc5ed43457493e1aee71a
wrapi/slack
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar pegjs = require('pegjs');\nvar loaderUtils = require('loader-utils');\n\nmodule.exports = function(source) {\n this.cacheable && this.cacheable();\n var query = loaderUtils.parseQuery(this.query);\n var pegOptions = { output: 'so...
javascript
edit
0
2
mit
c7d0a3cb82beb53df3231e32ae8ac84f804082d2
eploko/pegjs-loader
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// Requires\nvar Q = require('q');\nvar _ = require('underscore');\n\nvar qClass = require('qpatch').qClass;\n\n// Etcd client\nvar Etcd = qClass(require('node-etcd'), ['watcher']);\n\n\n// Since etcd create the dir keys automatically\n...
javascript
edit
0
2
apache-2.0
a4f675a9fd5a7da1d79a0bdc1d974789d965ff24
AaronO/etcd-dump
index.js
rejected_duplicate
Near-duplicate of sample 100003
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nmodule.exports = function(){\n\n};\n\n```\n\nApply this change: Add decoding of first byte and mask." }, { "role": "assistant", "content": "'use strict';\n\nmodule.exports = function(bin){\n let data = {};\...
javascript
edit
0
3
mit
7433ea7bdfa35b1ae53bce646b9646257a23e3e2
jamen/rela
lib/decode.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports = function (expect) {\n expect.output.addStyle('error', function (content) {\n this.text(content, 'red, bold');\n });\n expect.output.addStyle('strings', function (content) {\n this.text(content, '#...
javascript
edit
0
1
mit
491b72a59df3d5c4d67e55d4198b65eace1b971e
alexjeffburke/unexpected,bruderstein/unexpected,bruderstein/unexpected,Munter/unexpected,unexpectedjs/unexpected,alexjeffburke/unexpected
lib/colors.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n#!/usr/bin/env node\n\nconst fs = require( 'fs' );\nconst path = require( 'path' );\nconst readline = require( 'readline' );\nconst eol = require( 'os' ).EOL;\nconst moment = require( 'moment' );\nconst now = moment();\n\nif ( process.a...
javascript
edit
0
2
mit
6211a95f0d9326b16895706bf9e322839a2eff35
jake-shasteen/timestamp-notes
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst OS = require(\"os\");\nconst serveCommand = require(\"./commands/serve\");\n\nconst usage =\n \"truffle db <sub-command> [options]\" +\n OS.EOL +\n OS.EOL +\n \" Available sub-commands: \" +\n OS.EOL +\n OS.EOL +\n \" ser...
javascript
edit
0
1
mit
e20c6b47080c1778fdd37599486e8fb56b00e9fe
ConsenSys/truffle
packages/core/lib/commands/db/index.js
rejected_duplicate
Near-duplicate of sample 80794
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst name = 'safe';\nexport default function SafeHelper(config, logger) {\n const _logger = logger.child({helper: name});\n return {\n name,\n cb: (string) => {\n _logger.debug('Executing template safe helper.', {string});...
javascript
edit
0
2
mit
244a3b852e7cee8392b1d6962b49f832ed47fb87
ssube/eveningdriver,ssube/eveningdriver
src/main/helpers/SafeHelper.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n * Main CLI parser class\n */\nclass Config\n{\n /**\n * @param {Command} argv\n */\n constructor (argv)\n {\n /**\n * @private\n * @type {boolean}\n */\n this.dev = argv.d || ...
javascript
edit
0
2
bsd-3-clause
37ad5a1744674b364044bc964808970e1b4cff86
Becklyn/kaba,Becklyn/kaba
lib/config.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use babel'\n\nimport Opener from '../opener'\n\nexport default class AtomPdfOpener extends Opener {\n open (filePath, texPath, lineNumber, callback) {\n // Opens PDF in a new pane -- requires pdf-view module\n const openPanes = ...
javascript
edit
0
4
mit
ad5c38087abcaa54ac544313b693c1aa7e8c392b
thomasjo/atom-latex,thomasjo/atom-latex,thomasjo/atom-latex
lib/openers/atompdf-opener.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport domainSale from '@/assets/images/icons/domain-sale.svg';\nimport domainSaleHov from '@/assets/images/icons/domain-sale-hov.svg';\nimport registerDomain from '@/assets/images/icons/domain.svg';\nimport registerDomainHov from '@/as...
javascript
edit
0
0
mit
c2643d208c692b94964cfaef6991c8d143ffc51f
MyEtherWallet/MyEtherWallet,MyEtherWallet/MyEtherWallet,MyEtherWallet/MyEtherWallet
src/dapps/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport html from \"innerself\";\nimport Scene from \"./Scene\";\nimport { SCENES } from \"./actions\"\nimport { connect } from \"./store\";\n\nfunction LevelScore(score, idx) {\n return html`\n <div class=\"box action\"\n onc...
javascript
edit
0
2
isc
71b6d8e2c3fcdc8d156cf2ba4009590a6e48a4b6
piesku/moment-lost,piesku/moment-lost
src/LevelSelect.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar path = require('path');\nvar webpack = require('webpack');\nvar babelConfig = require('./babel.json');\n\nmodule.exports = {\n devtool: 'eval',\n entry: [\n 'webpack-dev-server/client?http://localhost:3000',\n 'webpack/hot/o...
javascript
edit
0
0
mit
59b97920a7a0fc39379d3883881bbe776dc53bf4
msikma/react-hot-boilerplate,msikma/react-hot-boilerplate
tasks/config/webpack.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports = {\n stylePrefix: 'nv-',\n\n // Enable/Disable globally the possibility to sort layers\n sortable: 1,\n\n // Enable/Disable globally the possibility to hide layers\n hidable: 1,\n\n // Hide textnodes\n hideTextnod...
javascript
edit
0
0
bsd-3-clause
c9a9b1c06818c8f371a7ae53ead224f063a39086
artf/grapesjs,artf/grapesjs,artf/grapesjs,QuorumDMS/grapesjs,QuorumDMS/grapesjs
src/navigator/config/config.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/*\ntests validator.js implementation.\n\nsteps to run this test:\n 1. install mocha\n $ npm install -g mocha\n\n 2. run RedPen in server mode\n $ cd $REDPEN_HOME/bin\n $ ./redpen-server\n\n 3. rename validator.js.example to enable the ...
javascript
edit
0
1
apache-2.0
c41d965ec87e746962c2ed8469cd2c55dad17231
redpen-cc/redpen,tatamiya3/redpen,tatamiya3/redpen,recruit-tech/redpen,gerryhocks/redpen,redpen-cc/redpen,kenhys/redpen,gerryhocks/redpen,redpen-cc/redpen,kenhys/redpen,recruit-tech/redpen,recruit-tech/redpen,kenhys/redpen,gerryhocks/redpen,redpen-cc/redpen,redpen-cc/redpen,kenhys/redpen,tatamiya3/redpen,tatamiya3/redp...
redpen-cli/sample/js/test/validator-js-test.js
rejected_duplicate
Near-duplicate of sample 78413
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// @flow\n// @jsx glam\nimport React from 'react';\nimport glam from 'glam';\n\nimport { Div, Img } from '../primitives';\nimport { type PropsWithStyles } from '../types';\nimport { className } from '../utils';\nimport { getSource } fro...
javascript
edit
null
null
mit
fa7eb2766beab22ba22ac38caaee4d592eddd99d
jossmac/react-images
src/components/View.js
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React from 'react';\n\nconst { string, bool } = React.PropTypes;\n\nconst Console = (props) => {\n if (props.log) {\n console.log(props.log);\n }\n\n if (props.info) {\n console.info(props.info);\n }\n\n if (props.erro...
javascript
edit
0
15
mit
6b93ddc8d3cb5f12490d58047e77deceec9aab7b
sgnh/react-console-wrapper
src/Console.js
rejected_complexity
Cyclomatic complexity too high: 15
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst buffer = Buffer.from('This is a test string');\nconst base64 = buffer.toString('base64');\nconst hexString = buffer.toString('hex');\n\nmodule.exports = {\n buffer,\n base64,\n hexString\n};\n\n```\n\nApply this change: Use non...
javascript
edit
0
0
mit
6584a037f09b832c8f12b1b1dccf6d90b8a84fd7
lukechilds/base64-async
test/fixtures/values.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// These URL paths will be transformed to CN mirrors.\nvar mirrors = {\n \"//developers.google.com\" : \"//developers.google.cn\",\n \"//firebase.google.com\" : \"//firebase.google.cn\",\n \"//developer.android.com\" : \"//develope...
javascript
edit
0
5
apache-2.0
157f799da26ef488802e98393f0f3cc1062a9436
chenzhuo914/google-cn-devsites-extension
config.js
rejected_duplicate
Near-duplicate of sample 82127
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nexports.config = {\n allScriptsTimeout: 11000,\n\n specs: [\n 'e2e/*.js'\n ],\n\n capabilities: {\n 'browserName': 'chrome',\n\t'phantomjs.binary.path': './node_modules/karma-phantomjs-launcher/node_modules/phantomjs/bin/phant...
javascript
edit
0
1
mit
42a9ef188422e5d9289b62c13129bcb8a3eeb741
double16/switchmin-ng,double16/switchmin-ng
test/protractor-conf.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar data = require(\"sdk/self\").data;\nvar tabs = require(\"sdk/tabs\");\nvar { ToggleButton } = require(\"sdk/ui/button/toggle\");\nvar btn_config = {};\nvar btn;\n\nfunction tabToggle(tab) {\n if (btn.state('window').checked) {\n ...
javascript
edit
0
2
bsd-2-clause
58712600d1f6c1800ec8a036e27d9d4b4ac97829
project-star/browser-extension,hypothesis/browser-extension,hypothesis/browser-extension,project-star/browser-extension,project-star/browser-extension,hypothesis/browser-extension,hypothesis/browser-extension
src/firefox/lib/main.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/* eslint-env jasmine */\nimport { assertions } from 'redux-actions-assertions-js';\n\nconst toDispatchActions = () => {\n return {\n compare(action, expectedActions, done) {\n assertions.toDispatchActions(action, expectedActio...
javascript
edit
0
1
mit
8b908f8adfb54e60e2886751bd67be645e1807c9
redux-things/redux-actions-assertions,dmitry-zaets/redux-actions-assertions
src/jasmine.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nlet Preprocessor = require('./Preprocessor');\n\nclass Sass extends Preprocessor {\n /**\n * Required dependencies for the component.\n */\n dependencies() {\n this.requiresReload = true;\n\n let dependencies...
javascript
edit
0
3
mit
aa8f76eb6ce96023a96aa847b8e724cd6d18cd81
JeffreyWay/laravel-mix
src/components/Sass.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// This is a karma config file. For more details see\n// http://karma-runner.github.io/0.13/config/configuration-file.html\n// we are also using it with karma-webpack\n// https://github.com/webpack/karma-webpack\n\nvar webpackConfig...
javascript
edit
0
1
mit
466f69074c3bfb76b05b9d487d0fb0b06cf0f17a
sc0Vu/vuethwallet,sc0Vu/vue-ethwallet,sc0Vu/vuethwallet,sc0Vu/vue-ethwallet
test/unit/karma.conf.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport Vue from 'vue';\nimport Content from 'src/components/editor-viewer/Content';\n\ndescribe('Content.vue', () => {\n it('should render Editor component', () => {\n const Constructor = Vue.extend(Content);\n const vm = new Con...
javascript
edit
0
2
mit
8854c7b43b617fe43694dcb015a016cfe6fa869d
nus-mtp/sashimi-note,nus-mtp/sashimi-note,nus-mtp/sashimi-note
sashimi-webapp/test/unit/specs/Content.spec.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport { PropTypes } from 'react'\nimport {connect} from 'react-redux'\n\nimport {updateTodo, deleteTodo, showDeleteButtonOnTodo} from 'actions/actionCreators'\nimport TodoPresentation from 'components/TodoPresentation/TodoPresentation'...
javascript
edit
0
1
mit
d22383b18b375f1b579ed0a6f0c1aad12cd7d2bd
stefanwille/react-todo,stefanwille/react-todo
src/containers/Todo.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n(function (ng) {\n 'use strict';\n\n var $inject = function (cls, self, args) {\n var i;\n var key;\n var str;\n var func;\n var depNames = [];\n var deps = [];\n var l = cls.$inject.length;\n\n for (i = 0; i <...
javascript
edit
0
5
mit
c458350df358e796e9d7848f068d42c15d709729
ngonzalvez/cg-inject
src/cg-inject.js
rejected_duplicate
Near-duplicate of sample 74336
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst Formatter = require('knex/lib/formatter');\n\nclass FormatterSOQL extends Formatter {\n wrap(value) {\n if (typeof value === 'function') {\n return this.outputQuery(this.compileCallback(value), true);\n }\n\n const ...
javascript
edit
0
5
mit
0fe4bb704f77c8c966b3adacfdad472b37181259
jsarafajr/knex-soql
src/query/formatter.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport { ADD_RECIPE, EDIT_RECIPE, REMOVE_RECIPE } from '../actions';\nimport { v4 } from 'uuid';\n\nexport const defaultRecipes = [\n {\n titleDetails: {\n title: 'Pumpkin Pie',\n servings: '4',\n allergens: 'Eggs, Mi...
javascript
edit
0
5
mit
ddd97429877bf574098d86b63f60933b7e9fe66b
phuchle/recipeas,phuchle/recipeas
src/reducers/Recipes.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React from 'react';\nimport PropTypes from 'prop-types';\n\nimport FaStar from 'react-icons/fa/star';\nimport FaStarO from 'react-icons/fa/star-o';\n\nconst Star = ({ colored, ...props }) => (\n <div {...props}>\n { colored ?...
javascript
edit
0
4
mit
3fbb2a32da8aacec98b52033736a3a38d18a6006
danielzy95/mechanic-finder,danielzy95/mechanic-finder
src/components/Star.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\ndefine([\n\t'goo/fsmpack/statemachine/actions/Action',\n\t'goo/entities/components/ProximityComponent'\n],\n/** @lends */\nfunction(\n\tAction,\n\tProximityComponent\n) {\n\t'use strict';\n\n\tfunction TagAction(/*id, settings*/) {\n\t\...
javascript
edit
0
3
mit
20a1a979313ba7a3840d208c921d527176aadc83
GooTechnologies/goojs,GooTechnologies/goojs,GooTechnologies/goojs
src/goo/fsmpack/statemachine/actions/TagAction.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar Logger = function (config) {\n this.config = config;\n this.backend = this.config.backend || 'stdout'\n this.level = this.config.level || \"LOG_INFO\"\n if (this.backend == 'stdout') {\n this.util = require('util');\n } e...
javascript
edit
0
6
mit
34c43896fa91a3b4d90632d380a0d985ba7f8744
cit-lab/statsd,Mindera/statsd,aronatkins/statsd,Yelp/statsd,Yelp/statsd,roflmao/statsd,joshughes/statsd,blurredbits/statsd,sax/statsd,pagerinc/statsd,jmptrader/statsd,ShalomCohen/statsd,DataDog/statsd,cit-lab/statsd,AdamMagaluk/statsd-cloudwatch,jxqlovejava/statsd,Charlesdong/statsd,omniti-labs/statsd,cit-lab/statsd,bl...
lib/logger.js
rejected_duplicate
Near-duplicate of sample 92709
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n//placing both controllers her b/c short program, otherwise would make partial\n\nTodos.TodosController = Ember.ArrayController.extend ({\n\tactions: {\n\t\tcreateNewTodo: function() {\n\t\t\tvar newVal = this.get('newTodo'); // gets ne...
javascript
edit
0
1
mit
62d5b3a311971c3cab5e7c903387ef572739a86a
mema82/TheAftermath,mema82/TheAftermath
js/Controllers.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar build = require(\"../index\").build;\n\nmodule.exports = function(grunt){\n\n\tgrunt.registerMultiTask(\"steal-build\", \"Build a steal project into bundles.\", function(){\n\t\tvar done = this.async();\n\t\tvar options = this.optio...
javascript
edit
0
2
mit
78d2786d95c6bfb4252c84185dcf0ad6fd62bc11
stealjs/steal-tools,stealjs/steal-tools,mcanthony/steal-tools,mcanthony/steal-tools
tasks/build.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport { browserHistory } from 'react-router';\nimport { createStore, applyMiddleware } from 'redux';\nimport { routerMiddleware } from 'react-router-redux';\nimport thunkMiddleware from 'redux...
javascript
edit
0
1
mit
3348944c657664642cfd2e2e6625e71f8c262d94
pokedextracker/pokedextracker.com,pokedextracker/pokedextracker.com,pokedextracker/pokedextracker.com
app/stores/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nRouter.configure({\n layoutTemplate: '_layout'\n});\n\n//From what I can tell this has been depreciated\n//https://github.com/iron-meteor/iron-router/blob/739bcc1445db3ad6bf90bda4e0cab3203a0ae526/lib/router.js#L88\nRouter.map(function(...
javascript
edit
0
1
mit
0d4b6860d5756ee1c481abbbdce0be6ed663b315
mtr-cherish/cherish,mtr-cherish/cherish
lib/routes.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n\nimport { ObjectId } from 'mongodb';\n\nimport Type from '../core/type';\n\n\nexport const MongoIdType = new Type({\n name: 'mongoid',\n generatePrimaryKeyVal() {\n return new ObjectId();\n },\n fromString(str) {\n return Obj...
javascript
edit
0
4
apache-2.0
19eb30243b27572597b84420a255b3eb74800265
tyranid-org/tyranid,tyranid-org/tyranid,tyranid-org/tyranid,tyranid-org/tyranid
src/type/mongoId.js
accepted
null
true
[ { "role": "user", "content": "Write javascript code for the following: Add minimal keyboard handling for control" }, { "role": "assistant", "content": "$( function() {\n\tvar socket = io.connect('http://localhost:8080');\n\n\tvar timeouts = { 37:null, 38:null, 39:null, 40:null } ;\n\n\tvar LEFT ...
javascript
new_file
0
4
mit
c355dd7b32ad2cd22e761a2b254e55ad79cf1032
jbouny/tobthebot
front/js/tobthebot.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar PreferencesManager = function() {\n};\n\nPreferencesManager.exec = function() {\n\n var logRestoredValue = function(value) {\n console.log(value)\n }\n var successfully = function () {\n console.log(\"Success\")...
javascript
edit
0
1
mit
44ad848316649b5d7e507928cd45a7640842d4ad
carloseduardosx/PreferencesManager,carloseduardosx/PreferencesManager
www/PreferencesManager.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst userModel = require('../../models/users')\nconst validator = require('./registerValidation')\nconst { buildResponse } = require('../../utils/responseService') \n\nmodule.exports = (req, res) => {\n const {error, value} = validato...
javascript
edit
0
3
mit
7cedcd5af9a6a12e7edb6a3bf91b55f6cf95d90d
byteBridge/transcriptus-api
api/register/registerController.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports = {\n main: {\n files: [\n {\n expand: true,\n cwd: 'assets/',\n src: ['**'],\n dest: 'out/'\n }\n ]\n },\n require: {\n src: 'vendor/requirejs/require.js',\n dest: 'ou...
javascript
edit
0
0
mit
f810aa8689b1149aef7fa70cb36bcf8b0d17089d
vitch/nakeditchyfeet,vitch/nakeditchyfeet
grunt/options/copy.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports = function(RED) {\n\t\"use strict\";\n \n\tfunction Fifo(config) {\n\t\tRED.nodes.createNode(this,config);\n\t\t\n\t\tvar me = this;\n\n\t\tthis.queue = [];\n\t\tthis.depth = config.depth;\n\t\tthis.status({fill:\"red\...
javascript
edit
0
4
mit
5bb346232d400257f186c2af83c0e4ef8825c502
cheesestraws/redstuff,cheesestraws/redstuff
hold-and-fifo/fifo.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React, { PropTypes } from 'react';\nimport PureRenderMixin from 'react-addons-pure-render-mixin';\n\nexport default class Inputs extends React.Component {\n static propTypes = {\n executionCount: PropTypes.any,\n running: ...
javascript
edit
null
null
bsd-3-clause
0e20ff615134f2b6719e9ba46b3ebfce101651fc
temogen/nteract,jdetle/nteract,captainsafia/nteract,rgbkrk/nteract,captainsafia/nteract,nteract/composition,captainsafia/nteract,captainsafia/nteract,nteract/nteract,0u812/nteract,nteract/nteract,rgbkrk/nteract,rgbkrk/nteract,nteract/nteract,temogen/nteract,rgbkrk/nteract,jdfreder/nteract,jdfreder/nteract,rgbkrk/nterac...
src/notebook/components/cell/inputs.js
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React, { Component } from 'react';\nimport hoistStatics from 'hoist-non-react-statics';\n\n/*\n When this decorator is used, it MUST be the first (outermost) decorator.\n Otherwise, we cannot find and call the fetch...
javascript
edit
0
1
mit
15e44f2281f1265fd29dc6894f2264f372e95513
tco/r3ign
app/decorators/Data/connectData.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport { combineReducers } from 'redux'\nimport { WS_MSG } from './actions'\n\nfunction auth(state = {isAuthenticated: false}, action) {\n switch (action.type) {\n case WS_MSG:\n let msg = action.msg\n switch (msg.type) {\...
javascript
edit
0
3
mit
5ec305c02a4202789ceb371924894d68be90fb02
KenMacD/tarabish,KenMacD/tarabish,KenMacD/tarabish,KenMacD/tarabish
client/react/src/reducers.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar net = require('net');\nvar server, port;\nserver = net.createServer(function (conn) {\n console.log(\"Server: connected\");\n conn.on(\"data\", function (data) {\n\n if (data.length == 1 && data[0] == 0xef) {\n ...
javascript
edit
0
3
mit
c5d99943bbc4d2067c12fcbe103e7f3a26502e72
enricostara/telegram-mt-node,cgvarela/telegram-mt-node,piranna/telegram-mt-node
test/net/tcp-server.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React from 'react';\nimport { action } from '@storybook/addon-actions';\n\nimport Button from '@ichef/gypcrete/src/Button';\nimport List from '@ichef/gypcrete/src/List';\nimport ListRow from '@ichef/gypcrete/src/ListRow';\n\nfunc...
javascript
edit
0
1
apache-2.0
9c6684c06d070ab77fbd4f48fd5c10ca24de806c
iCHEF/gypcrete,iCHEF/gypcrete
packages/storybook/examples/Popover/DemoList.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar HTMLCS_WCAG2AAA_Sniffs_Principle2_Guideline2_4_2_4_4 = {\n register: function()\n {\n return ['a'];\n\n },\n\n process: function(element)\n {\n HTMLCS.addMessage(HTMLCS.NOTICE, element, 'Check that the l...
javascript
edit
0
2
bsd-3-clause
3b8650f1ecac51b9a9f78944b0843e3af0dca252
telesma/HTML_CodeSniffer,telesma/HTML_CodeSniffer,daam/HTML_CodeSniffer,lwright-sq/HTML_CodeSniffer,daam/HTML_CodeSniffer,adelevie/HTML_CodeSniffer,daam/HTML_CodeSniffer,adelevie/HTML_CodeSniffer,telesma/HTML_CodeSniffer,squizlabs/HTML_CodeSniffer,ironikart/HTML_CodeSniffer,squizlabs/HTML_CodeSniffer,squizlabs/HTML_Cod...
Standards/WCAG2AAA/Sniffs/Principle2/Guideline2_4/2_4_4.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// This is a temporary fix for supporting es6 scripts\n// We will add support for es6->es5 transforms in Lively and this can go away\n\nvar babel = require(\"babel-core\");\nvar child_process = require(\"child_process\");\nvar fs = requ...
javascript
edit
0
2
mit
abdb70dedb04fa2f97cdc08664e591e45e9591d9
NikolaySuslov/LivelyKernel,NikolaySuslov/LivelyKernel,LivelyKernel/LivelyKernel,NikolaySuslov/LivelyKernel,LivelyKernel/LivelyKernel,LivelyKernel/LivelyKernel
bin/temp-es6-fix.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/*\n * Looking for the full, uncompressed source? Try here:\n *\n * https://github.com/js/{{ REPOSITORY_NAME }}\n *\n * The following files are included in this compressed version:\n *{% for path in paths %}\n * {{ path }}{% endfor %}\n...
javascript
edit
0
0
mit
575e2d482b52bcea36f6a7a6cc357e3ee6d0efbd
INN/app-template,INN/app-template,INN/app-template,INN/app-template
templates/_js_header.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport {\n Email,\n Box,\n Item,\n Span,\n A,\n renderEmail\n} from 'react-html-email'\nimport React from 'react'\nimport ReactMarkdown from 'react-markdown'\nimport feeFactory from '../.....
javascript
edit
0
3
mit
1653dda921b8eb321b573230bc267091468a62aa
RalphSleigh/bookings,RalphSleigh/bookings,RalphSleigh/bookings
server/emails/managerBookingUpdated.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst { it } = require('mocha');\n\nconst initSocket = require('../../src/ws');\nconst { IO } = require('./util');\n\nmodule.exports = ({ server }) => {\n let connect;\n initSocket({\n on(connection, f) {\n connect = f;\n }...
javascript
edit
0
2
mit
9e542db20917f9d5855d4e420f874690bb91f33f
ArtOfCode-/nails,ArtOfCode-/nails
test/ws/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// Placeholder manifest file.\n// the installer will append this file to the app vendored assets here: vendor/assets/javascripts/spree/frontend/all.js'\n\nvar index = 1;\n\n$(document).ready(function() {\n startSlider();\n});\n\n\nfunc...
javascript
edit
0
2
bsd-3-clause
9e96485498225a552aa8ce95ffa337d5d8b42944
clomax/spree_cwilt_theme,clomax/spree_cwilt_theme,clomax/spree_cwilt_theme
app/assets/javascripts/spree/frontend/spree_cwilt_theme.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar fs = require('fs'),\n path = require('path'),\n browserify = require('browserify'),\n cardGenerator = require('./card-generator.js');\n\nvar script;\nvar cards;\n\nexports.init = function(options) {\n // Write new cards fi...
javascript
edit
0
1
mit
218389b20da780e987bb12352964ec713e447f55
odsod/lightcards,odsod/lightcards
bundle.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nangular.module('fleetonrails.services.login-service', [])\n\n .service('LoginService', ['$http', 'GlobalSettings', function ($http, GlobalSettings) {\n var loginWithPassword = function (email, password) {\n var para...
javascript
edit
0
1
mit
ddb89805a2e7c9a7b7a0b514a043a690a9704367
FleetOnRails/fleet-web-app,FleetOnRails/fleet-web-app,FleetOnRails/fleet-web-app,FleetOnRails/fleet-web-app
app/js/services/login-service.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/*global module: true*/\nmodule.exports = function( grunt ) {\n\n\t// Project configuration.\n\tgrunt.initConfig({\n\t\tlint: {\n\t\t\tfiles: [ \"grunt.js\", \"sizzle.js\", \"test/unit/*.js\" ]\n\t\t},\n\t\tqunit: {\n\t\t\tfiles: [ \"te...
javascript
edit
0
1
mit
2277378d2a3d9b211dd06fabe692f67d1577bff1
npmcomponent/cristiandouce-sizzle,mzgol/sizzle
grunt.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nfunction loadData(view) {\n\t$.get(\"http://127.0.0.1:1338/data/\" + view, function (views) {\n\t\tviews.forEach(function (view) {\n\t\t\tvar table = `<div class=\"table-responsive\"><table class=\"table table-striped\"><thead><tr>`;\n\...
javascript
edit
0
3
bsd-2-clause
421c6cf22118c3b9cf28c8683199c34bd37fe931
FRCteam4909/FRC-Scouting,FRCteam4909/FRC-Scouting,FRCteam4909/FRC-Scouting
web/www/js/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// Performs an application/sparql-update patch on a graph\n\nmodule.exports = patch\n\nconst $rdf = require('rdflib')\nconst debug = require('../../debug').handlers\nconst error = require('../../http-error')\n\n// Patches the given grap...
javascript
edit
0
3
mit
a3f8a7715347ee6c94940e2ac4f3d3fc6ee21cec
dmitrizagidulin/solid-server-unstable,linkeddata/ldnode,linkeddata/ldnode,dmitrizagidulin/solid-server-unstable,dmitrizagidulin/solid-server-unstable
lib/handlers/patch/sparql-update-patcher.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\nconst binBuild = require('bin-build');\nconst log = require('logalot');\nconst path = require('path');\nconst bin = require('.');\n\nbin.run(['-version']).then(() => {\n\tlog.success('cwebp pre-build test passed successfu...
javascript
edit
0
2
mit
e7aa24eb6b83f9c95663afe20e250b25f344fdf3
imagemin/cwebp-bin
lib/install.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/* jshint node: true */\n'use strict';\n\nmodule.exports.host = 'api.logentries.com';\n\nmodule.exports.levels = [\n\t'debug', 'info', 'notice', 'warning', 'err', 'crit', 'alert', 'emerg'\n];\n\nmodule.exports.bunyanLevels = [\n\t'trace...
javascript
edit
0
0
bsd-3-clause
cbe814a0b4c6aa0d73b422cf2410702898639f4e
bathos/logentries-client
lib/defaults.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nrequire('coffee-script/register');\nvar path = require('path');\nvar Jasmine = require('jasmine');\nvar SpecReporter = require('../src/jasmine-spec-reporter.js');\nvar noop = function () {};\n\nvar jrunner = new Jasmine();\njrunner.conf...
javascript
edit
0
1
apache-2.0
c158dc6d285f28eae9197a942c79e9537071fc39
bcaudan/jasmine-spec-reporter,nbuso/protractor-html-spec-reporter,nbuso/protractor-html-spec-reporter,bcaudan/jasmine-spec-reporter
example/run-example.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports = {\n attributes: {\n child_group: {\n model: 'Group'\n },\n parent_group: {\n model: 'Group'\n },\n lastsynch: 'datetime',\n active: 'boolean',\n ...
javascript
edit
0
1
mit
beb0616bb555211e6a2b4b49f1532fb0d74b2da7
scientilla/scientilla,scientilla/scientilla,scientilla/scientilla
api/models/MembershipGroup.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar net = require('net');\n\nvar Server = net.Server.prototype;\nvar Pipe = process.binding('pipe_wrap').Pipe;\n\nvar oldListen = Server.listen;\nServer.listen = function () {\n var self = this;\n\n if (arguments.length === 1 && a...
javascript
edit
0
5
mit
3a848855fcc4395d03be9d2fc5c5d7cef85b4459
stephank/node-systemd,rubenv/node-systemd,kapouer/node-systemd
lib/systemd.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nrequire('newrelic')\nvar DateTime = require('dateutils').DateTime\nvar dao = require('./src/dao')\nvar daysAhead = 0\nvar maxDaysAhead = 60\n\ndoRefresh()\nsetInterval(() => {\n doRefresh()\n}, 1000 * 60 * 10)\n\nfunction doRefresh()...
javascript
edit
0
2
apache-2.0
e2502f2436d9ed0c2d534fddacf31d6a3d82df90
eeroan/tennishelsinki,eeroan/tennisvuorot,eeroan/tennisvuorot,eeroan/tennisvuorot,eeroan/tennishelsinki
worker.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst dotenv = require('dotenv-safe');\nconst fs = require('fs');\nconst DefinePlugin = require('webpack').DefinePlugin;\n\nmodule.exports = DotenvPlugin;\n\nfunction DotenvPlugin(options) {\n options = options || {};\n if (!options.s...
javascript
edit
0
4
mit
2032587b60965620a6f0bd9d8a040e6f3e098413
nwinch/webpack-dotenv-plugin
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar http = require('http');\nvar yaml = require('js-yaml');\nvar fs = require('fs');\nvar spawn = require('child_process').spawn;\nvar chimneypot = require('chimneypot');\n\n(function() {\n function readConfig(callback) {\n try {\n ...
javascript
edit
0
5
unlicense
adddbc8b13d7495c97681071246a813bb4fb2059
WDOTS/deploy,WDOTS/deploy
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst marked = require(\"marked\")\nmodule.exports = function () {\n this.filter(\"transformerName\", (source, options) => {\n try {\n return source\n } catch (e) { throw e }\n })\n}\n\n```\n\nApply this change: Add marked...
javascript
edit
0
2
mit
0ce21c74ac2e121547a742f5fd2bf15231c1ad65
MadcapJake/fly-marked
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport * as components from './components';\n\nconst VuePlugin = {\n install(Vue){\n if (VuePlugin.installed) return;\n VuePlugin.installed = true;\n for (let key in components) {\n Vue.component(key, ...
javascript
edit
0
3
mit
4096ba80cf5b96b95713e3a8ba6d2ec0a0fb6817
wheldring/bootstrap-vue-compiled,sschadwick/bootstrap-vue,mosinve/bootstrap-vue,mosinve/bootstrap-vue,SirLamer/bootstrap-vue,sschadwick/bootstrap-vue,bootstrap-vue/bootstrap-vue,sschadwick/bootstrap-vue,SirLamer/bootstrap-vue,bootstrap-vue/bootstrap-vue,wheldring/bootstrap-vue-compiled,wheldring/bootstrap-vue-compiled,...
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar Filter = require('broccoli-filter')\nvar coffeeScript = require('coffee-script')\n\nmodule.exports = CoffeeScriptFilter\nCoffeeScriptFilter.prototype = Object.create(Filter.prototype)\nCoffeeScriptFilter.prototype.constructor = Coff...
javascript
edit
0
4
mit
6a4c9a4d035dc2725821530ca9ad670947e9682f
tsing80/broccoli-coffee,joliss/broccoli-coffee,timmfin/broccoli-coffee
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar Rx = require('rx'),\n _ = require('lodash');\n\nfunction readMessage(sqs, params, callback) {\n sqs.receiveMessage(params, function (err, data) {\n callback(err, data);\n readMessage(sqs, params, callback);\n ...
javascript
edit
0
4
mit
e3e433a08c6c99f7a2b6b58a6cd425aef58081fb
lebek/RxSQS
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nvar ExecBuffer = require('exec-buffer');\nvar imageType = require('image-type');\nvar through = require('through2');\nvar webp = require('cwebp-bin').path;\n\n/**\n * webp imagemin plugin\n *\n * @param {Object} opts\n ...
javascript
edit
0
4
mit
90b96de8a1bda1218591787e709de7d6450618fc
imagemin/imagemin-webp
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst Octokat = require('octokat')\nconst open = require('open')\nconst Promise = require('bluebird')\nvar octo, organization, repository\n\nmodule.exports = function openNotifications (input, opts, token) {\n octo = new Octokat({\n ...
javascript
edit
0
6
mit
854f861c6e85c9e024885aa634623f38fa345254
RichardLitt/open-github-notifications
index.js
rejected_duplicate
Near-duplicate of sample 99641
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar extractHearingType = function(hearingRow) {\n return hearingRow.querySelectorAll('td')[4].textContent.trim();\n};\nvar isPrelim = function(hearingRow) {\n return extractHearingType(hearingRow) == \"PRELIMINARY HEARING\";\n};\nvar ...
javascript
edit
0
2
mit
2b37b4b4f5131333b3101eb9bafb4e8715cd71bf
jluckyiv/ja_prep
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nrequire('font-awesome-webpack');\nwindow.$ = require('jquery');\n\nrequire('./css/html_styles.scss');\nrequire('./css/set_view.scss');\nrequire('./css/element_view.scss');\n\nrequire('script!./event-manager');\nrequire('script!./venn');...
javascript
edit
0
0
mit
24b07ca09f8f85520b1f5303f96f1431f7077785
VCG/upset,VCG/upset,VCG/upset,VCG/upset
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar loaderUtils = require(\"loader-utils\");\n\nmodule.exports = function(source, map) {\n this.callback(null, source, map);\n};\n\nmodule.exports.pitch = function(remainingRequest) {\n this.cacheable();\n return `\n // ...
javascript
edit
0
1
mit
52f0112d546f750fd6dc01a9c0517015d7cd3a34
itsmepetrov/classnames-loader
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar readPackageTree = require(\"read-package-tree\");\n\nmodule.exports = function(dir, cb) {\n readPackageTree(dir, function(err, root) {\n if (err) {\n cb(err);\n return;\n }\n\n var isUpToDate = root.children.ever...
javascript
edit
0
2
mit
91938eea868e9e21cb025bc4ea2f693465094838
lukehorvat/get-wanted-dependencies
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n * Listens for the app launching then creates the window\n *\n */\nchrome.app.runtime.onLaunched.addListener(function() {\n var screenWidth = screen.availWidth;\n var screenHeight = screen.availHeight;\n var width = 800;\n...
javascript
edit
0
1
mit
1d0dae5f963a62adf624cf166cba2478edb1be07
Powpow-Shen/Monocle,powpowshen/Monocle,powpowshen/Monocle
start.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst simplePreferences = require(\"sdk/simple-prefs\");\nconst ui = require(\"./lib/ui\");\n\nconst preferences = simplePreferences.prefs;\n\nexports.main = function(options) {\n console.log(\"Starting up with reason \", options.loa...
javascript
edit
0
1
mit
3eca2dd5f2f4e03d7c2a728b0f9ab2cabfdb0d84
sblask/firefox-simple-form-fill,sblask/firefox-simple-form-fill
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict'\n\nimport React from 'react'\nimport SvgIcon from '../../components/svg-icon'\n\nconst HeaderFilter = () => (\n <nav className='filter'>\n <div className='form-select'>\n <SvgIcon id='date' label='Data' />\n ...
javascript
edit
0
1
mit
c4bc757b094bdc0a313e7d3e59464965e7261ee4
campinas-front-end-meetup/institucional,campinas-front-end-meetup/institucional,frontendbr/eventos,campinas-front-end/institucional,campinas-front-end/institucional
src/js/containers/main-content/header-filter.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nexports.fixed = function(x, y, ratio) {\n var orient = ratio.split('!')[1];\n var ratio = ratio.split('!')[0].split(':').sort();\n\n var vertical = y > x;\n var rotate = y > x && orient === 'h' || x > y && orient === 'v';\n\n if (...
javascript
edit
0
16
mit
301bb85927c6a8829766ec2d3deeac70443aab4e
Turistforeningen/node-aspectratio
index.js
rejected_complexity
Cyclomatic complexity too high: 16
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar fs = require('fs')\n\nmodule.exports = {\n getPageStrategyElement: function(pageStrategy, element) {\n if (!fs.existsSync(__dirname + '/' + pageStrategy + '/' + element)) {\n return {\n noSuchStra...
javascript
edit
null
null
apache-2.0
bc4c0b029def9462ac31f3e579dffa20e2750cec
fmtvp/tal-page-strategies
index.js
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```javascript\nChannelInfo = BlazeComponent.extendComponent({\n onCreated: function () {\n\n },\n onRendered: function () {\n\n },\n creatorUsername : function() {\n return currentChannel().createdBy ? Meteor.users.findOne(currentChannel().cre...
javascript
edit
0
2
mit
8008f4591970052967678266935316541d49f6d4
mauricionr/SpaceTalk,foysalit/SpaceTalk,lhaig/SpaceTalk,TribeMedia/SpaceTalk,mGhassen/SpaceTalk,MarkBandilla/SpaceTalk,yanisIk/SpaceTalk,thesobek/SpaceTalk,dannypaton/SpaceTalk,bright-sparks/SpaceTalk,redanium/SpaceTalk,thesobek/SpaceTalk,anjneymidha/SpaceTalk,dannypaton/SpaceTalk,lhaig/SpaceTalk,tamzi/SpaceTalk,TribeM...
client/views/channel-info/channel-info.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict'\n\nvar isPresent = require('is-present')\nvar githubRepos = require('github-repositories')\nvar Promise = require('pinkie-promise')\n\nvar reposToIgnore = [\n 'tachyons',\n 'tachyons-cli',\n 'tachyons-docs',\n 'tachyons...
javascript
edit
0
2
mit
4cfc3fde1df540f3f2369b7b6f360364515dfb05
tachyons-css/tachyons-modules
index.js
accepted
null
true