messages
listlengths
2
2
language
stringclasses
8 values
prompt_type
stringclasses
2 values
lint_errors
int64
0
129
⌀
cyclomatic_complexity
int64
0
32
⌀
license
stringclasses
7 values
commit
stringlengths
40
40
repos
stringlengths
5
116k
new_file
stringlengths
4
220
status
stringclasses
6 values
error
stringlengths
26
74
⌀
is_valid_syntax
bool
2 classes
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst axios = require('axios')\n\nlet params = {\n type: 'movie',\n tomatoes: 'true',\n title: 'la la land',\n year: '2016'\n}\n// params = Object.assign({title: 'jackie', year: '2016'}, params)\n// If year is not specified, will pi...
javascript
edit
0
2
apache-2.0
92686e0f49af4d6bb8fcf87f8fba345080295e58
feihong/node-examples,feihong/node-examples
omdb-api.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport {\n FILTER_BY_TYPE_INJURY,\n FILTER_BY_TYPE_FATALITY,\n FILTER_BY_NO_INJURY_FATALITY,\n} from '../constants/action_types';\n\nconst defaultState = {\n injury: {\n cyclist: false,\n motorist: false,\n pedestrian: fals...
javascript
edit
0
5
mit
6e5e57232ce13c5d5b4403a0f44d0c25f219dd63
clhenrick/nyc-crash-mapper,clhenrick/nyc-crash-mapper,clhenrick/nyc-crash-mapper
src/reducers/filter_by_type_reducer.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar config = require('./config')\n\nmodule.exports = {\n site: {\n title: config.title,\n baseURL: config.baseURL\n }\n}\n\n```\n\nApply this change: Change the templateData object to just include all config data until a blackli...
javascript
edit
0
0
mit
b00816e95feda55da18df33b9572783201b84bfe
philipwalton/ingen
lib/template-data.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport DS from \"ember-data\";\n\nvar attr = DS.attr;\n\nvar Problem = DS.Model.extend({\n title: attr(),\n description: attr(),\n\n contest: DS.belongsTo('contest')\n});\n\nexport default Problem;\n\n```\n\nApply this change: Add so...
javascript
edit
null
null
mit
3012ef96daf7c4c250c8771b99948ce490c09120
fayimora/brutehack-frontend,fayimora/brutehack-frontend
app/models/problem.js
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```javascript\n(function () {\n\n if (typeof window.CustomEvent === 'function') {\n return false\n }\n\n function CustomEvent (event, params) {\n params = params || { bubbles: false, cancelable: false, detail: undefined }\n var evt = docum...
javascript
edit
0
2
bsd-3-clause
f5ffee4d5520612a14e50bd24d708fd4ba8dfce7
codeforamerica/streetmix,kodujdlapolski/streetmix,codeforamerica/streetmix,codeforamerica/streetmix,kodujdlapolski/streetmix,kodujdlapolski/streetmix,magul/streetmix,magul/streetmix,magul/streetmix
assets/scripts/polyfills/customevent.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar uri = require('url');\nvar decisions = require('decisions');\n\n\nfunction FileCredentialManager(file) {\n var settings = decisions.createSettings();\n settings.load(file);\n \n this._credentials = settings.toObject().credential...
javascript
edit
0
8
mit
75e962a56fc8fa91cd6502a9f305bbde6caa44e6
bixbyjs/bixby-security
lib/filecredentialmanager.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst PythonShell = require('python-shell');\n\nmodule.exports = stop => {\n return new Promise((resolve, reject) => {\n let options = {\n mode: 'json',\n scriptPath: './lib/scraper',\n args: [stop]\n };\n\n Pyt...
javascript
edit
0
3
mit
30c2e0219964e6b1e5c487ec6d7cd9bd0794dfab
kshvmdn/next-ride-api,kshvmdn/next-ride-api,kshvmdn/next-ride-api,kshvmdn/NextRideAPI,kshvmdn/brampton-transit-api,kshvmdn/NextRideAPI
lib/get-stop-data.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar namedTypes = {\n 'NumberTypeAnnotation': 'number',\n 'BooleanTypeAnnotation': 'boolean',\n 'ObjectTypeAnnotation': 'Object',\n 'StringTypeAnnotation': 'string'\n};\n\nvar oneToOne = {\n 'AnyTypeAnnotation': {\n type: 'AllLit...
javascript
edit
0
8
isc
f14fff41b93414962878738d31c6ea4d8958a526
researchgate/documentation,odub/documentation
lib/flow_doctrine.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar express = require('express');\nvar request = require('request');\nvar router = express.Router();\n\nrouter.get('/', function(req, res, next) {\n request('http://www.bikesharetoronto.com/stations/json', function(error, response, bod...
javascript
edit
0
2
mit
13aa66b8497276c153dbc3631f1527111d1854a6
kshvmdn/toronto-bike-stations,kshvmdn/toronto-bike-stations
routes/map.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n//const mongoose = require(\"mongoose\");\nconst Schema = mongoose.Schema;\n\nconst COLLECTION_NAME = \"User\";\n\nconst schemaUser = new Schema({\n name: { type: String, required: true },\n email: { type: String, required: true }...
javascript
edit
0
0
mit
5c377ce868ba3a3991295a238f13bb03e5fd7010
jaysonpf/simple-web-token-authentication
src/modules/authentication/model/user.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n\"use strict\";\n\nconst config = require('./config/database');\n\nconst DHT = require('bittorrent-dht');\n\nconst redis = require(\"redis\");\nconst client = redis.createClient(config.redis.port, config.redis.host, config.redis.options...
javascript
edit
0
1
unlicense
2b29f609cd242658f0d3dfb339a79f8b923ab5cd
FlyersWeb/dhtbay,FlyersWeb/dhtbay,FlyersWeb/dht-bay
crawlDHT.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n\"use strict\";\n\nconst TsReader = require(\"../reader\");\nconst TsDescriptorBase = require(\"./base\");\n\nclass TsDescriptorEmergencyInformation extends TsDescriptorBase {\n constructor(buffer) {\n super(buffer);\n }\n\...
javascript
edit
0
3
mit
e1969022967601aaa61a447c101245ed76ce33e7
rndomhack/node-aribts
lib/descriptor/emergency_information.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/* eslint-disable */\n/* DEPRECATED DO NOT USE */\nimport React from 'react';\nimport cx from 'classnames';\nimport styles from './index.css';\n\nexport const FlexRow = ({\n children,\n className,\n justifyContent,\n alignItems,\n ...
javascript
edit
null
null
mit
b9e98c1bdc1196e7d4a25632bbdf09735bcc129b
webkom/lego-webapp,webkom/lego-webapp,webkom/lego-webapp
app/components/FlexBox/index.js
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React, { Component, PropTypes } from 'react';\nimport { Link } from 'react-router';\nimport { get } from 'axios';\nimport FlintLogo from 'components/FlintLogo';\nimport './LoginContainer.scss';\nimport { siteName } from '../../.....
javascript
edit
0
4
mit
c3fa33193ee1a133e9e51006c056a0fda1231e18
JasonEtco/flintcms,JasonEtco/flintcms
app/containers/LoginContainer/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport Ember from 'ember';\n\nexport default Ember.Route.extend({\n model(params) {\n return this.store.findRecord('experiment', params.experiment_id).then((experiment) => {\n // When page loads, creates new session...
javascript
edit
0
3
apache-2.0
54766c39266848a99df5b0ab57ca99752270fdf8
abought/experimenter,abought/experimenter
app/routes/experiments/info/preview.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React from \"react\";\nimport { connect } from \"react-redux\";\n\nimport ChessBoardSquare from \"components/chess-board-square\";\n\nclass ChessBoard extends React.Component {\n getBoard() {\n const { store } = this.props;\n...
javascript
edit
0
1
mit
679b96286c742e39af4426dea4c757a33fa4b955
danbee/chess,danbee/chess,danbee/chess
app/components/chess-board.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nvar kanjiApp = angular.module('kanjiApp', []);\n\nkanjiApp.controller('KanjiCtrl', ['$scope', 'search', 'kanjiDictionary', function($scope, search, kanjiDictionary) {\n $scope.saved = [\"blah\"];\n $scope.findKanji = ...
javascript
edit
0
1
mit
3a6d13fdfda33ea48b48d9f11e24f0b8db05a5de
galerina/kanjiq,galerina/kanjiq,galerina/kanjiq
app/js/controllers.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nmyApp.factory('Message', ['$resource', function ($resource) {\n return $resource('http://localhost:8080/api/timeline');\n}]);\n\nmyApp.controller('TimeLineController', function ($scope, $timeout, Message, $cookies, $...
javascript
edit
0
1
mit
d4aed5013e62512e79e7258fe6784a735682178a
eneid/eneid.github.io
js/controllers.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n$(document).ready(function() {\n\n $(\"form.contact\").on(\"submit\", function(e) {\n var $fadeElement = $(\".fade-on-submit\");\n if (!$fadeElement) return;\n\n e.preventDefault();\n fadeOutAndRevealBeneath($fadeElement);\...
javascript
edit
0
2
mit
ef49b32b53772d72d86c90f2a7c330494465cdb6
kaspth/jepti-webshop,kaspth/jepti-webshop,kaspth/jepti-webshop
assets/application.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\ndefine(['underscore', 'jquery'], function(_, $) {\n return function(app) {\n app.components.before('initialize', function() {\n \"use strict\";\n if (this.require && this.require.paths) {\n var dfd = $.Deferred();\n...
javascript
edit
0
3
mit
aaa2f4205e74801670fb7b8ff678cd5b370051d2
hull/hull-js,hull/hull-js,hull/hull-js
aura-extensions/component-require.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nfunction failure() {\n\tconst root = document.documentElement\n\n\troot.classList.remove('sr')\n\n\treturn {\n\t\tclean() {},\n\t\tdestroy() {},\n\t\treveal() {},\n\t\tsync() {},\n\t\tget noop() {\n\t\t\treturn true\n\t\t}\n\t}\n}\n\nfu...
javascript
edit
0
2
mit
8a79c742fe286a6840840c02767f6bd3b97cbad1
julianlloyd/scrollReveal.js,jlmakes/scrollReveal.js
src/instance/mount.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\ndefine(function() {\n\n // Export\n return function(Prism) {\n\n Prism.languages.java = Prism.languages.extend('clike', {\n \t'keyword': /\\b(abstract|continue|for|new|switch|assert|default|goto|package|synchronized|boolean|do|i...
javascript
edit
0
15
mit
802916df7ff017d7ea2f7eb498a4f7241506e927
apiaryio/prism
src/languages/java.js
rejected_complexity
Cyclomatic complexity too high: 15
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports = {\n description: 'Add bower dependencies for bootstrap and bootswatch to the project',\n\n normalizeEntityName: function() {\n // allows us to run ember -g ember-cli-bootswatch and not blow up\n // because ember...
javascript
edit
0
1
mit
cf7cb56718ba78a9f901346282cc4b9d6e0dbd72
Panman8201/ember-cli-bootswatch
blueprints/ember-cli-bootswatch/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n$(function() {\n\tif(sessionStorage.getItem(\"openMenu\") === null){\n\t\tsessionStorage.setItem(\"openMenu\", \"yes\" );\n\t}\n\tif(sessionStorage.getItem(\"openMenu\") == \"yes\"){\n\t\t\t$(\".mainmenu\").show();\n\t}\n\t$(\"#menu-tog...
javascript
edit
0
3
bsd-3-clause
bcafe3c159f363729b731a31fef679c5f6eb321a
derUli/ulicms,derUli/ulicms,derUli/ulicms,derUli/ulicms,derUli/ulicms
ulicms/admin/scripts/global.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst {resolve} = require('path')\n\nfunction getEntryOutputPathFromStats (stats, assetName) {\n if (!assetName) {\n assetName = Object.keys(stats.compilation.assets)[0]\n }\n\n if (assetName) {\n return resolve(stats.compilati...
javascript
edit
0
26
mit
021e58bf8ed0ef17a2b03bfb9267350f70c4a121
enten/udk,enten/udk
lib/util/getEntryOutputPathFromStats.js
rejected_complexity
Cyclomatic complexity too high: 26
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar _ = require('underscore');\n\n/*\n * Approx timings for how often we should notify\n * 360 (~5mins) : every 58mins\n * 4500 (~hourly) : every 58mins\n * 90000 (~day) : every 58mins\n * 648000 (~week) : every day\n * ...
javascript
edit
0
2
mit
2bf110a6903957278da87e0bc2e18d89617f836e
alphagov/performanceplatform-notifier,gds-attic/performanceplatform-notifier,gds-attic/performanceplatform-notifier,alphagov/performanceplatform-notifier
lib/frequency.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport 'app/client/components/helpers/jsdom-support.js';\n\nimport { assert } from 'chai';\nimport sinon from 'sinon';\nimport React from 'react';\nimport ReactDOM from 'react-dom';\nimport TestUtils from 'react-addons-test-utils';\nimp...
javascript
edit
0
1
mit
171f59cb747ea82d8abde7fb90e8929fae15f053
hung-phan/koa-react-isomorphic,hung-phan/koa-react-isomorphic,hung-phan/all-hail-the-R,hung-phan/koa-react-isomorphic,hung-phan/all-hail-the-R
app/client/components/todos/todos-add/todos-add-test.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst fs = require('fs')\nconst path = require('path')\nconst cli = require('commander')\nconst apiCall = require('./apiCall')\nconst config = require('../apiConfig')\n\ncli.parse(process.argv)\n\n// Get current certifications from the ...
javascript
edit
0
1
mit
80cc5d8c8ccd5521e6bd2adf3665308a885d01ab
gabraganca/ur-cli,trolster/urcli,trolster/ur-cli
lib/cli-certs.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nvar evalInScope = require('./helpers/eval-in-scope');\n\n/*eslint-disable*/\n\nfunction evalBEST(source, builder, extras) {\n evalInScope(source, { component: builder }, extras);\n}\n\nfunction evalSources(sources, p...
javascript
edit
0
4
mit
fb3e873b8edcfbe1952a29fda8d9631337f0df24
KraigWalker/framework,SvitlanaShepitsena/remax-banner,SvitlanaShepitsena/shakou,jeremykenedy/framework,colllin/famous-framework,SvitlanaShepitsena/framework,woltemade/framework,jeremykenedy/framework,colllin/famous-framework,SvitlanaShepitsena/framework-1,infamous/framework,SvitlanaShepitsena/remax-banner,tbossert/fram...
lib/evaluator.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar remark = require('remark');\nvar visit = require('unist-util-visit');\nvar remove = require('unist-util-remove');\n\nvar processor = remark().use(function () {\n return function(ast, file) {\n visit(ast, 'code', function (node) ...
javascript
edit
0
1
mit
a4a869706cbab39b2da1e70ea5bdf9e43e598eed
sampsyo/spliterate
spliterate.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n * Puppy Play Date\n * https://github.com/Tooconfident/Puppy_PlayDate\n * @flow\n */\n\nimport React, { Component } from 'react';\nimport {\n AppRegistry,\n Navigator,\n AsyncStorage,\n} from 'react-native';\n\n\nimport MapScene fr...
javascript
edit
0
1
mit
d6fdbf39e3baad9696e2da46b5ea6b867a5c1b76
Tooconfident/Puppy_PlayDate,Tooconfident/Puppy_PlayDate,Tooconfident/Puppy_PlayDate
PuppyPlayDate/index.ios.js
accepted
null
true
[ { "role": "user", "content": "Write javascript code for the following: Fix incorrect usage of polyfill when bundled" }, { "role": "assistant", "content": "/* eslint-disable no-var */\nvar evs = require('eventsource-polyfill/dist/eventsource')\nmodule.exports = window.EventSource || evs.EventSour...
javascript
new_file
0
0
mit
def0a8974b55cdfcae9831ba2da2149d6b78e2da
sanity-io/sanity,sanity-io/sanity,sanity-io/sanity,sanity-io/sanity
packages/@sanity/eventsource/browser.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict'\n\nconst db = require('APP/db');\nconst Product = db.model('products');\nconst Review = db.model('review');\nconst router = require('express').Router();\n\n\nrouter.get('/', (req, res, next) => {\n Product.findAll({})\n ...
javascript
edit
0
2
mit
5f02d731c81cfc1d01f3e6ab342a75d8a32af904
cvglass/Lair-Depot,cvglass/Lair-Depot,cvglass/Lair-Depot
server/routes/products.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar gulp = require('gulp');\nvar less = require('gulp-less');\nvar bower = require('gulp-bower');\nvar minifyCSS = require('gulp-minify-css');\n\nvar paths = {\n css: 'src/styles/**/*.less',\n fonts: 'bower_components/font-awesome/fon...
javascript
edit
0
1
mit
678517bff1735ce10422b4a12d96cea4cf3fa195
nubs/overthemonkey.com,nubs/overthemonkey.com,nubs/overthemonkey.com
gulpfile.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst Connection = require('./connection');\n\nclass ConnectionPool {\n constructor() {\n this.hosts = [];\n this.nextHostID = 1; // not an index for array\n\n this.addHost = this.addHost.bind(this);\n this.getDisplayList =...
javascript
edit
0
2
mit
2e920eb2b63620f1afe911885b35648c643c8b63
JasonSteck/JS-Nexus,JasonSteck/JS-Nexus
server/connection-pool.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nwindow.onload = function main() {\n var timezones = document.querySelectorAll('.timezone');\n\n var getCalendarOffset = function getCalendarOffset(timezone) {\n var localTime = moment.tz(moment().format('YYYY-MM-DD, HH:mm:ss'), 'Am...
javascript
edit
0
2
mit
7bcab87e17336f58f6533a3616649783ded72873
tsangkenneth/world-clock,tsangkenneth/world-clock
main.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n * Entry point for defining Gulp tasks.\n */\n\n// Pull in the tasks from the gulp-tasks directory.\nrequire('require-dir')('./gulp-tasks');\n\n```\n\nApply this change: Move and modify list of required Gulp tasks." }, { "r...
javascript
edit
0
0
mit
48903293c97dbd23c99f74d00ff7e94889643aa3
oss-specs/specs,oss-specs/specs
gulpfile.js
accepted
null
true
[ { "role": "user", "content": "Write javascript code for the following: Add tasks to compile and minify *.scss files, compress images, and minify *.js files." }, { "role": "assistant", "content": "var gulp = require('gulp');\nvar sass = require('gulp-sass');\nvar autoprefixer = require('gulp-auto...
javascript
new_file
0
1
mit
189c2681d27f1119f97302e7cdb5bb2d2eba22aa
CATMultimedia/catweb,CATMultimedia/catweb
gulpfile.js
rejected_duplicate
Near-duplicate of sample 76866
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports = {\n\n stack: function (browser, selector, index) {\n index = index || '';\n return function () {\n var linePath;\n return browser\n .$(selector + ' svg .line' + index)\n .should.eventual...
javascript
edit
0
2
mit
2e82396429ae6c236cbdbc9bf45ff9db6ab7fefa
alphagov/cheapseats
lib/tests/modules/graph/components.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nvar gulp = require('gulp');\nvar browserify = require('browserify');\nvar source = require('vinyl-source-stream');\nvar streamify = require('gulp-streamify');\nvar size = require('gulp-size');\nvar uglify = require('gul...
javascript
edit
0
1
mit
4fcc2541ec1b634aedfa2fdb23ab5fb5ef6b30d1
braintree/card-validator,braintree/card-validator
gulpfile.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// run `npm install` to install deps first, then `node ./` to execute\n\nvar fs = require('fs')\n , colors = require('colors')\n , path = require('path')\n , cheerio = require('cheerio')\n\n , page = fs.readFileSync(path.join(__dirn...
javascript
edit
0
5
mit
be062c4266810a452068fb65add5fa3a76cbb146
gratex/compat-table,sylvain-/compat-table,levi0913/compat-table,mzgol/compat-table,gratex/compat-table,cletusw/compat-table,LuoPQ/compat-table,peterchealse/compat-table,BorisKozo/compat-table,mzgol/compat-table,KTamas/compat-table,sebmck/compat-table,cletusw/compat-table,lukewestby/compat-table,natorion/compat-table,gs...
node.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport Em from 'ember';\n\nvar KEY_LEFT = 37;\nvar KEY_UP = 38;\nvar KEY_RIGHT = 39;\nvar KEY_DOWN = 40;\n\n/**\n * Fires custom events on the implementor when arrow keys are pressed.\n * @module mixins\n * @constructor\n * @class Arrow...
javascript
edit
0
5
mit
05f9f625bbc900b7292c8bbeaade213609fda2b1
luxbet/ember-cli-llama-table,j-/ember-cli-llama-table,luxbet/ember-cli-llama-table,j-/ember-cli-llama-table
addon/mixins/arrow-keys.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nrequire('_animate');\nrequire('_copyright');\nrequire('_faq');\nrequire('_nav-scroll');\nrequire('_nav-transparent');\nrequire('_nav');\nrequire('_scroll');\nrequire('_top-home');\nrequire('_top');\n\n```\n\nApply this change: Correct p...
javascript
edit
0
0
mit
7a55291213ee0cebb849a704a07af0f1ba27a821
euroteamoutreach/getbiblefirst.com,euroteamoutreach/getbiblefirst.com,joshukraine/getbiblefirst.com,joshukraine/getbiblefirst.com,euroteamoutreach/getbiblefirst.com,joshukraine/getbiblefirst.com,joshukraine/getbiblefirst.com
source/javascripts/all.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar gulp = require('gulp');\nvar nodemon = require('gulp-nodemon');\nvar concat = require('gulp-concat');\nvar sass = require('gulp-sass');\n\nvar cssPath = [\n './vendor/webuploader_fex/dist/webuploader.css',\n './assets/css/**/*...
javascript
edit
0
1
mit
9d382a7e5fd6bc7bd1dee9ae479e6b609232f439
urlucky/ImageStorm,urlucky/ImageStorm
gulpfile.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar gulp = require('gulp'),\n coffee = require('gulp-coffee'),\n gutil = require('gulp-util');\n\ngulp.task('default', function(){\n gulp.src('src/*.coffee')\n .pipe(coffee({sourceMap: false}))\n .on('error', guti...
javascript
edit
0
1
mit
5781e33dec887dfad8595f41fa3e157457b40b59
Fetchnotes/Caret.js
gulpfile.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar finish_utc;\n$(document).ready(function(){\n var finish_utc_args = JSON.parse($('#countdown-finish-time').html());\n finish_utc = new Date(Date.UTC(finish_utc_args[0],\n finish_utc_args[1],\n ...
javascript
edit
0
2
mit
59c8065d03dbe91294ba78c6197bd558c4aeade5
nwalters512/the-blue-alliance,tsteward/the-blue-alliance,verycumbersome/the-blue-alliance,verycumbersome/the-blue-alliance,bdaroz/the-blue-alliance,jaredhasenklein/the-blue-alliance,phil-lopreiato/the-blue-alliance,nwalters512/the-blue-alliance,verycumbersome/the-blue-alliance,the-blue-alliance/the-blue-alliance,joseph...
static/javascript/tba_js/tba_countdown.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar gulp = require('gulp'),\n gutil = require('gulp-util'),\n concat = require('gulp-concat'),\n uglify = require('gulp-uglify'),\n rename = require('gulp-rename'),\n karma = require('gulp-karma'),\n notify = requi...
javascript
edit
0
1
mit
7676f9ed877bb754119da1c214fd624280983db4
orcasnet/momentjs-angular-module,orcasnet/momentjs-angular-module,alexborisov/momentjs-angular-module,alexborisov/momentjs-angular-module
gulpfile.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// @flow\n\nimport 'babel-polyfill';\n\nimport program from 'commander';\nimport { blue, green, gray } from 'chalk';\nimport installer from '../installer';\nimport { androidClient, iosClient } from '../device-clients';\n\nprogram\n.comm...
javascript
edit
null
null
mit
fe2f07add6eefa47bffbf5ea47ad334917824f1a
bamlab/devicelab-bot,bamlab/devicelab-bot,bamlab/devicelab-bot,bamlab/devicelab-bot
src/command-line/index.js
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React from \"react\";\nimport Dropzone from \"react-dropzone\";\nimport classNames from \"classnames\";\nimport \"./DropHandler.css\";\n\nexport default class DropHandler extends React.Component {\n handleDrop = (files) => {\n ...
javascript
edit
0
1
mit
6c77b87c002a4ca8c07212e9c12a105dda12d478
TeselaGen/openVectorEditor,TeselaGen/openVectorEditor
src/Editor/DropHandler.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport flattenStyle from './flattenStyle';\nimport StyleRegistry from './registry';\n\nconst absoluteFillObject = {\n position: 'absolute',\n left: 0,\n right: 0,\n top: 0,\n bottom: 0\n};\nconst absoluteFill = StyleRegistry.regist...
javascript
edit
0
2
mit
5a5eb5425f2d5ee1e7f15d923b580f7d0027530e
necolas/react-native-web,necolas/react-native-web,necolas/react-native-web
src/apis/StyleSheet/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/* exported configureTripKeyForPath, getTripKeyFromUrl, setProgressBar */\n/** \n* Sets Progress Bar to correct location based on the page number\n* @param {int} pageNumber\n*/\nfunction setProgressBar(pageNumber){\n let ul = document....
javascript
edit
0
2
apache-2.0
bf8534b26445c65a3638583a4a71653b6494ae79
googleinterns/step200-2020,googleinterns/step200-2020,googleinterns/step200-2020
byway/src/main/webapp/base.js
rejected_duplicate
Near-duplicate of sample 79706
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nfunction makeRequest(authToken, path, data) {\n const d = $.extend({}, { format: 'json', auth_token: authToken }, data);\n const u = `https://api.pinboard.in/v1/${path}`;\n\n console.log('%cmakeRequest url: %s $data: %o', 'background...
javascript
edit
0
2
mit
1448a466109187dece94f64bc4343d3a7800eaed
cppcho/pinboard-plusplus,cppcho/pinboard-plusplus
src/js/api.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/*\n * Copyright: 2012, V. Glenn Tarcea\n * MIT License Applies\n */\n\nangular.module('AngularStomp', []).\n factory('ngstomp', function($rootScope) {\n Stomp.WebSocketClass = SockJS;\n var stompClient = {};\n\n ...
javascript
edit
0
1
apache-2.0
93d628c4940071c6363d5364962381db0cb458d9
davinkevin/AngularStompDK
angular-stomp.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport { resolve as resolvePath } from 'path';\n\n/**\n * Require local file or node modules\n *\n * @param {String} path\n * @returns {*}\n */\nexport default function requireLocalFileOrNodeModule(path) {\n const localFile = resolve...
javascript
edit
0
3
mit
ed2f91a9edab52823ef9073bbb6646805bc25ff9
michalkvasnicak/babel-plugin-css-modules-transform,michalkvasnicak/babel-plugin-css-modules-transform
src/utils/requireLocalFileOrNodeModule.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// Bulk Operation\nexports.updateOperation = (id, actionType, contentType, connection) => {\n return connection(contentType)\n .where(`${contentType}.id`, '=', id)\n .update(`${contentType}.status`, actionType)\n .then((result) => {...
javascript
edit
0
1
mit
a58dbf81b802e72e6aec2229f041c9be2216d24d
smanongga/smanongga.github.io,smanongga/smanongga.github.io,smanongga/smanongga.github.io
db/admin.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports = {\n UNKNOWN: '',\n BROWSER: 'browser',\n BROWSER_TEXT: 'browser:text',\n APP: 'app',\n APP_EMAIL: 'app:email',\n APP_GAME: 'app:game',\n APP_MEDIAPLAYER: 'app:mediaplayer',\n APP_FEEDREADER: 'app:feedreader',\n ...
javascript
edit
0
0
mit
f8f1b007f79cb3112a6cd0c24a1cb6a6dcc6fd32
WhichBrowser/Parser-JavaScript
src/constants/browserType.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nangular.module(\"proBebe.services\")\n.factory('ChildAgePresenter', function() {\n\n function Presenter() {}\n\n Presenter.build = function(messages){\n messages.forEach(function(message){\n message.category = \"category-1\";\...
javascript
edit
0
5
mit
fa87b642cad031aa1156b8f5239c10eabbd58cbc
InstitutoZeroaSeis/probebe-app,InstitutoZeroaSeis/probebe-app
www/js/services/child_age_presenter.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport express from 'express'\nimport session from 'express-session'\nimport cookieParser from 'cookie-parser'\nimport bodyParser from 'body-parser'\nimport morgan from 'morgan'\nimport passport from 'passport'\nimport routes from './ap...
javascript
edit
0
1
mit
fcfba2c2a040bb0b619aa9980b2c5489082590da
shrunyan/mc-core,andyfleming/mc-core,shrunyan/mc-core,andyfleming/mc-core
src/server.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\njQuery( document ).ready(function( $ ) {\n\n\t// Variables\n\tvar open \t\t\t = false, // Set the state of the menu on load (false = closed)\n\t\tbody = $('body'),\n\t\tsiteContainer = $('.site-container'),\n\t\ttoggleBut...
javascript
edit
0
2
mit
bb5f45ed468ed668da8f61c0dd051a1203bb4f91
brianjking/Off-Canvas-Navigation-in-Genesis,brianjking/Off-Canvas-Navigation-in-Genesis
off-canvas-files/offcanvas-nav.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst nest = require('depnest')\nconst pull = require('pull-stream')\nconst Scroller = require('pull-scroll')\nconst next = require('../../../junk/next-stepper')\n\nexports.gives = nest('router.html.page')\nexports.needs = nest({\n 'ke...
javascript
edit
0
2
mit
15731b8b52401550786284a1bb52b82155248446
dominictarr/patchboard,dominictarr/patchbay
router/html/page/mentions.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport Button from './components/Button/Button.vue';\nimport FileSelect from './components/FileSelect/FileSelect.vue';\nimport Icon from './components/Icon/Icon.vue';\nimport Input from './components/Input/Input.vue';\nimport Range from...
javascript
edit
0
1
mit
29651093870aef594a0378f7a7da1162f2608f60
gribnoysup/vue-plum-ui,gribnoysup/vue-plum-ui
dev/plum.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport ContentAdd from 'material-ui/lib/svg-icons/content/add';\nimport IconButton from 'material-ui/lib/icon-button';\nimport TextField from 'material-ui/lib/text-field';\nimport React, { Component } from 'react';\nimport { connect } f...
javascript
edit
0
2
mit
9485218b695f94d997b8548e9c5ca2d055709737
addi90/redux-todo,addi90/redux-todo
src/components/AddTodo.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n\"use strict\";\n\nvar _ = require(\"lodash\");\n\nmodule.exports = _.merge({},\n require(\"./es5.js\"),\n require(\"../../rules/eslint/es6/walmart.js\"), {\n \"rules\": {\n \"strict\": [2, \"global\"]\n }\n }\n);\n\n```\n...
javascript
edit
0
0
mit
0aebd6dd75c42f5fdb5a8998e47c4e125ea43b6f
walmartlabs/eslint-config-defaults
configurations/walmart/es6.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst ALL_COMPILERS = ['clang-3.8', 'clang-3.9', 'clang-4.0', 'clang-5.0',\n 'clang-6.0', 'clang-7.0', 'clang-7.1', 'clang-8.0', 'clang-9.0',\n 'clang-10.0', 'clang-11.0', 'clang-11.1', 'clang-12.0', 'clang-13.0',\n 'gcc-5.5', ...
javascript
edit
0
0
bsd-2-clause
3c0282d0f81961f7182bc1d39f29bdaf10b910b3
FredTingaud/quick-bench-front-end,FredTingaud/quick-bench-front-end,FredTingaud/quick-bench-front-end
components/DefaultSettings.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n$(document).ready(function() {\n // Listen events\n $('.btn-add').click(function() {\n // POST Add friend\n $.post('/api/users/' + this.id + '/friends', function(data) {\n console.log(data);\n })\n });\n});\n\n```\n\nAp...
javascript
edit
0
1
mit
5c662b775ceb365a8bd1f40144140c099267761e
mirabalj/graphriend,mirabalj/graphriend
public/js/all.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst expect = require('chai').expect;\n\nconst myParseInt = require('../src/parse-int.js');\n\ndescribe('my parse int', function () {\n it('turns a string into a number', function () {\n let expected = myParseInt('10');\n\n expe...
javascript
edit
0
1
mit
c79fe6ee5c92526fdcfcab9e4836fc0dc837248c
scottaj/mocha.el
sample-project/test/parse-int-test.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport { strictEqual } from 'assert'\nimport { property } from '../src'\n\ndescribe('property', () => {\n\n it('should generate a named property accessor for the provided string key', () => {\n\n const o = { a: 1, b: 2 }\n\n stri...
javascript
edit
0
1
mit
a1275e5380f5fc75ad2265ed4db5cede39d5ed7e
zambezi/fun
test/property_test.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport Vue from 'vue';\nimport Router from 'vue-router';\n\nimport Home from '../components/Home';\nimport About from '../components/About';\nimport Help from '../components/Help';\nimport Machine from '../components/settings/Machine';\...
javascript
edit
0
0
mit
845dd8941cb3d8d3e786139c96d73fbaee5d19f6
jetpacker/jetpacker-ui,jetpacker/jetpacker-ui
src/router/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport Service from '@ember/service';\nimport Evented from '@ember/object/evented';\n\nexport default Service.extend(Evented, {\n\n shownComponents: null,\n data: null,\n showWindow: false,\n\n addComponent(path) {\n if(!this.get...
javascript
edit
0
4
apache-2.0
39672853786e9484cae5a8a9878cf003a973b76c
ExplorViz/explorviz-ui-frontend,ExplorViz/explorviz-ui-frontend,ExplorViz/explorviz-ui-frontend
app/services/additional-data.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar _ = require('lodash');\nvar np = require('named-parameters');\n\nmodule.exports = function(args) {\n var parsedArgs = np.parse(args).\n require('name', 'string').\n require('pieces', 'object').\n require('forwardDirection'...
javascript
edit
0
2
bsd-2-clause
4fb2dfca034ef64f64aae79341b878db91c4ee85
billbillington/js-chess
lib/army.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar istanbul = require('istanbul'),\n\n/**\n * Expose `Istanbul`.\n */\nexports = module.exports = Istanbul;\n\n/**\n * Initialize a new Istanbul reporter.\n *\n * @param {Runner} runner\n * @param {Object} options\n * @public\n */\nfun...
javascript
edit
0
6
mit
6fe34d71933a5bae7eaa958f6ac73cca6ac08337
emibia/Jadevine,ghk/sideka-electron,RocketChat/Rocket.Chat.Electron,szwacz/electron-boilerplate,jes5061/NSFProject,IsuraManchanayake/tagpress,IsuraManchanayake/tagpress,IsuraManchanayake/tagpress,Casepl/electron_timer,jes5061/NSFProject,wm-mrx/sideka-electron,ksree4u/migrateapp,RocketChat/Rocket.Chat.Electron,ghk/sidek...
scripts/istanbul-reporter.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nmodule.exports = function(grunt) {\n\n grunt.initConfig({\n pkg: grunt.file.readJSON('package.json'),\n jshint: {\n allFiles: ['Gruntfile.js', 'lib/**/*.js', 'test/**/*.js', 'index.js'],\n ...
javascript
edit
0
2
apache-2.0
ae43cafa539d243c54744a40640479c9e4bd02e5
xmpp-ftw/xmpp-ftw-wtf
Gruntfile.js
rejected_duplicate
Near-duplicate of sample 72000
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar request = require('request')\nvar Q = require('Q')\nvar xml2js = require('xml2js')\n\nvar requestQ = function(url) {\n\tvar defer = Q.defer()\n\n\trequest(url, function(err, res, body) {\n\t\tif (err) {\n\t\t\treturn defer.reject\n\...
javascript
edit
0
3
bsd-3-clause
68f02071588d16d06bd24511cb2f9222cbb30360
Zariel/hvost
src/server/feeds.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n * Poster v0.1.0\n * A React webapp to list upcoming movies and maintain a watchlist, powered by TMDb\n *\n * Author: Kushal Pandya <<EMAIL>> (https://doublslash.com)\n * Date: 13 June, 2016\n * License: MIT\n *\n * Section > Jumbo...
javascript
edit
null
null
mit
3736c2d3e1ce3e8dfc224c2fcd81fc32f2b79b66
kushalpandya/poster,kushalpandya/poster
app/components/Views/Section/Jumbotron.js
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports = function (grunt) {\n\n /**\n * Configuration.\n */\n\n grunt.initConfig({\n uglify: {\n default: {\n options: {\n preserveComments: 'some'\n },\n files: {\n 'angular-...
javascript
edit
0
1
mit
abef4133e82d6738698a26e775b40994d692c76b
EvanOxfeld/angular-draganddrop,lemonde/angular-draganddrop,ecurley-nextcentury/angular-draganddrop,neoziro/angular-draganddrop,kranthitech/angular-draganddrop
Gruntfile.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nEnsembl.LayoutManager.showCookieMessage = function() {\n var cookiesAccepted = Ensembl.cookie.get('cookies_ok');\n\n if (!cookiesAccepted) {\n $(['<div class=\"cookie-message hidden\">',\n '<div></div>',\n '<p>We use cook...
javascript
edit
0
2
apache-2.0
559e16362d0a35c892c7e97d3563cbd9476e9ded
EnsemblGenomes/eg-web-parasite,EnsemblGenomes/eg-web-parasite,EnsemblGenomes/eg-web-parasite,EnsemblGenomes/eg-web-parasite
htdocs/components/EG_02_LayoutManager.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar spawn = require('child_process').spawn,\n objectAssign = require('object-assign');\n\nmodule.exports = function exec(script, program) {\n var dotenvConfig = objectAssign({ silent: true }, {\n encoding: program.encoding,\n ...
javascript
edit
0
6
mit
b9d84e0f0a5fbc63a28d3937f77f41273bfe523c
mr47/run-on
lib/exec.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports = function(grunt) {\n grunt.loadNpmTasks(\"grunt-mocha-test\");\n grunt.loadNpmTasks(\"grunt-mocha-istanbul\");\n\n var testOutputLocation = process.env.CIRCLE_TEST_REPORTS || \"test_output\";\n var artifactsL...
javascript
edit
0
3
mit
5e70a05c26a54e7e6dd5c8bb88e92ea966e36430
MantasSutula/todo-grad-project,stevenjob/todo-grad-project,RMcNeillSL/todo-grad-project,thullSL/todo-grad-project,seanworkcode/todo-grad-impl,MantasSutula/todo-grad-project,JMVHill/todo-grad-project,jdhodges431/todo-grad-project,seanworkcode/todo-grad-project,WPFerg/todo-grad-project,seanworkcode/todo-grad-impl,jdhodge...
Gruntfile.js
rejected_duplicate
Near-duplicate of sample 76600
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport './styles/styles.scss'\n\nimport React from 'react'\nimport ReactDOM from 'react-dom'\nimport { useRouterHistory } from 'react-router'\nimport { syncHistoryWithStore } from 'react-router-redux'\nimport { createHistory } from 'his...
javascript
edit
0
0
mit
1cb9b0a8bc4a07feebf2fc5ad033423013652b41
cannoneyed/tmm-glare,cannoneyed/tmm-glare,cannoneyed/tmm-glare
src/main.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst test = require('tape-catch');\n\nimport doxie from './module/index';\n\ntest('Does what the demo says', (is) => {\n const myData = [\n {isPrivate: false},\n {isPrivate: true},\n {isPrivate: false},\n ];\n\n is.deepEqua...
javascript
edit
0
2
mit
3cfbbae1f58de27519831baca2b1d4eafeda0211
studio-b12/doxie-core
test.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar module = angular.module('ldsNavigation', ['ngRoute']);\n\nmodule.directive('ldsNavigation', [function () {\n return {\n restrict: \"E\",\n scope: true,\n controller: ['$attrs', '$route', '$scope', 'lidsysFoo...
javascript
edit
0
8
bsd-3-clause
d092bf06c511ed0b6e32c5ad994b1b4e5d5946f6
lightster/lidsys-web,lightster/lidsys-web,lightster/lidsys-web,lightster/lidsys-web
src/Lidsys/Application/Controller/assets/lidsys/nav.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports = function (grunt) {\n 'use strict';\n\n var config = require('./grunt_tasks/config');\n grunt.config.init(config);\n\n var packages = grunt.file.readJSON('./package.json');\n Object.keys(packages.devDepend...
javascript
edit
0
2
mit
3d9f31ac4f19c761fe554d4065acb598f590e00b
kubosho/simple-music-player
Gruntfile.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar hogan = require('hogan.js');\nvar fs = require('fs');\nvar path = require('path');\nvar _ = require('lodash');\nvar getServiceProperties = require('./serviceProperties');\n\nvar templateFile = fs.readFileSync(path.resolve(__dirname,...
javascript
edit
0
2
mit
9b1f8cd947774d67ac09b0fc6b980a8d19e56056
Limess/speculate,Limess/speculate
lib/spec.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports = function(grunt) {\n\t\"use strict\";\n\n\t// Display the execution time of grunt tasks\n\trequire(\"time-grunt\")(grunt);\n\n\t// Load all grunt-tasks in 'Build/Grunt-Options'.\n\tvar gruntOptionsObj = require(\"load-gr...
javascript
edit
0
1
mit
bf488212400fcf211cc82f29c3a9b47bcc46ec32
t3b/t3b_template,t3b/t3b_template,t3b/t3b_template,t3b/t3b_template,t3b/t3b_template
Gruntfile.js
rejected_duplicate
Near-duplicate of sample 87055
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/*\nCopyright 2014 Spotify AB\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/l...
javascript
edit
0
1
apache-2.0
6c61d28899a8731ce210dc991e52e385d9f6cc99
spotify/threaddump-analyzer,rprabhat/threaddump-analyzer,spotify/threaddump-analyzer,rprabhat/threaddump-analyzer
gulpfile.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports = function bindSassMiddleware (keystone, app) {\n\t// the sass option can be a single path, or array of paths\n\t// when set, we configure the node-sass middleware\n\n\tvar sassPaths = keystone.get('sass');\n\tvar sassOpt...
javascript
edit
0
6
mit
366eb10cef4312b94e8ee3aa437c408b486b1472
benkroeger/keystone,concoursbyappointment/keystoneRedux,trentmillar/keystone,tony2cssc/keystone,cermati/keystone,codevlabs/keystone,nickhsine/keystone,Adam14Four/keystone,naustudio/keystone,dryna/keystone-twoje-urodziny,frontyard/keystone,andrewlinfoot/keystone,wmertens/keystone,naustudio/keystone,trentmillar/keystone,...
server/bindSassMiddleware.js
rejected_duplicate
Near-duplicate of sample 79525
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// @flow\n\n/* eslint-disable no-console */\n\nimport os from 'os';\nimport path from 'path';\nimport { sshConnect, sshExec } from '../util/ssh';\nimport { readFile } from '../util/fs';\nimport { exitError } from '../exit';\n\nimport ty...
javascript
edit
null
null
apache-2.0
129729b480cbbb003d91b3d1d39b256f0a8613e5
amazeeio/lagoon,amazeeio/lagoon,amazeeio/lagoon,amazeeio/lagoon,amazeeio/lagoon,amazeeio/lagoon,amazeeio/lagoon
src/commands/login.js
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar Renderer = {\n create: function() {\n this.renderer = new THREE.WebGLRenderer();\n this.renderer.setSize(window.innerWidth, window.innerHeight);\n document.body.appendChild(this.renderer.domElement);\n\n ...
javascript
edit
0
2
mit
ddec0c23a7fa675a8f6de9717580aa5d97aabbe8
Thomeuxe/LUMA-VR-experiment,Thomeuxe/LUMA-VR-experiment
src/assets/js/Utils/Renderer/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n * Convert a string to a number\n * @param {string} str\n * @returns {number} the hashed string\n * @see https://stackoverflow.com/a/51276700\n */\nfunction hash(str) {\n let hash = 0x811c9dc5\n var prime = 0x000193\n\n for (let...
javascript
edit
0
2
mit
8d9612cc23a1e8decfe856a440932375384a15a3
projectwallace/css-analyzer
src/occurrence-counter.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar rules = [\n [/(\\d{4})/, function(match, date) {\n date.start = match[0];\n date.end = match[1];\n }]\n];\n\nmodule.exports = {\n parse: function(str) {\n var date = {};\n\n rules.forEach(functio...
javascript
edit
0
1
mit
f359463d20c30f14a4dc96f68094ed00f1e913af
jeresig/node-yearrange
yearrange.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nconst childProcess = require('child_process');\nconst fs = require('fs');\n\nmodule.exports = function(type) {\n process.argv.shift();\n process.argv.shift();\n var path = process.argv.length < 1 ? 'output_data...
javascript
edit
0
2
mit
f235ff893676453a9a8d4ad9c271947ecca4b698
PoDiGG/podigg-lc
bin/generate.js
rejected_duplicate
Near-duplicate of sample 69673
true
[ { "role": "user", "content": "Write javascript code for the following: Create a simple backbone view to test new ajax endpoint" }, { "role": "assistant", "content": "$(document).ready(function() {\n $('form input[name=\"subreddit\"]').focus();\n});\n\nvar CharmView = Backbone.View.extend({\n\n ...
javascript
new_file
0
1
mit
f3dd56160c6c8e1b1ed9298aa10e8a76774eb7b5
thedeeno/suitable,thedeeno/suitable,thedeeno/suitable,thedeeno/suitable
app/frontend/assets/scripts/application.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar gulp = require('gulp');\nvar rename = require('gulp-rename');\nvar uglify = require('gulp-uglify');\nvar sass = require('gulp-sass');\n\ngulp.task('scripts', function() {\n return gulp.src(['resources/public/js/lib/*.js'])\n .pi...
javascript
edit
0
1
mit
99e6f0470200ab1605bf5a81928f29f547624832
longpond/longpond.co.uk
gulpfile.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst { createHash } = require(\"crypto\");\nconst { spawn } = require(\"child_process\");\n\nfunction parseRTPPacket(buffer) {\n const hasExtensions = (buffer[0] << 3) >>> 7;\n\n const payload = buffer.slice(hasExtensions ? 16 : 12);...
javascript
edit
0
3
mit
ab0aeb78a1e74ff56c7f728aac7afed31c66f0db
mbullington/yellowstone,mbullington/yellowstone,RogerHardiman/yellowstone
lib/util.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// ($(this).val() && Number($(this).val()) > 0)\n\nfunction isValidAmount(input) {\n return input && Number(input) > 0\n}\n\nexports.isValidAmount = isValidAmount\n```\n\nApply this change: Add functionality for validating currency i...
javascript
edit
0
7
mit
ff1e1917461dafc7eeaaf06a24af0735cb84d4bf
ministryofjustice/cla_public,ministryofjustice/cla_public,ministryofjustice/cla_public,ministryofjustice/cla_public
cla_public/static-src/javascripts/modules/currencyInputValidation.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar core = require('../core');\n\nmodule.exports = function ()\n{\n return function (resource, next)\n {\n // create a new texture if the data is an Image object\n if (resource.data && resource.isImage)\n {\n ...
javascript
edit
0
3
mit
4047ab3786692bd0f5cbd1b1de888ae283552cb0
finscn/pixi.js,finscn/pixi.js,drkibitz/pixi.js,Cristy94/pixi.js,ivanpopelyshev/pixi.js,bma73/pixi.js,ceco-fmedia/pixi.js,jpweeks/pixi.js,staff0rd/pixi.js,staff0rd/pixi.js,curtiszimmerman/pixi.js,ceco-fmedia/pixi.js,SpringRoll/pixi.js,jojuntune/pixi.js,Makio64/pixi.js,sokeroner/pixi.js,TannerRogalsky/pixi.js,marekventur...
src/loaders/textureParser.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar Deffy = require(\"deffy\")\n , Typpy = require(\"typpy\")\n ;\n\nvar SEPARATOR = \"_\";\n\nfunction SubElmId(type, name, parent) {\n\n if (Typpy(type, SubElm)) {\n parent = name;\n name = type.name;\n type ...
javascript
edit
0
4
mit
1fc8c498bb42bb7bc7a830eb4df9b2149a4ec8ca
jillix/engine-builder
lib/composition/node/subelm/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport should from 'should'\nimport getJson from './getJson'\n\nlet endpoint = '/stats/homepagev2'\nlet query = {\n GameScope: 'Season',\n LeagueID: '00',\n PlayerOrTeam: 'Player',\n PlayerScope: 'All Players',\n Season: '2015-16',...
javascript
edit
0
2
mit
6fe44c3d644c4161afeca02d1be11353a0176065
kshvmdn/nba.js,kshvmdn/NBAScores,kshvmdn/nba-scores
src/utils/getJson.spec.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nvar fs = require('fs');\nvar mkdirp = require('mkdirp');\nvar Path = require('path');\n\nfunction path () {\n var segments = [].slice.call(arguments);\n segments.unshift('./test');\n return Path.join.apply(Path, segm...
javascript
edit
0
1
mit
6cd89e21f8886ae28c0ca0b35641b485e739edf4
cloudfour/core-gulp-tasks
test/utils.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport Promise from 'bluebird';\nimport Immutable from 'immutable';\n\nexport default function userState() {\n\n return (req, res, next) => {\n loadUserData(req).then(loadedData => {\n req.userState = Immutable.Map().merge(...l...
javascript
edit
0
1
mit
8282e8a25a1b1466739f24f932f8c1c6b66c9a4f
puzzfuzz/othello-redux,MartinPavlik/este,AlesJiranek/este,blueberryapps/este,steida/este,robinpokorny/este,christophediprima/este,laxplaer/este,neozhangthe1/framedrop-web,zanj2006/este,ViliamKopecky/este,Tzitzian/Oppex,abelaska/este,aindre/este-example,sikhote/davidsinclair,amrsekilly/updatedEste,sikhote/davidsinclair,...
src/server/frontend/userstate.js
accepted
null
true