messages listlengths 2 2 | language stringclasses 8
values | prompt_type stringclasses 2
values | lint_errors int64 0 129 ⌀ | cyclomatic_complexity int64 0 32 ⌀ | license stringclasses 7
values | commit stringlengths 40 40 | repos stringlengths 5 116k | new_file stringlengths 4 220 | status stringclasses 6
values | error stringlengths 26 74 ⌀ | is_valid_syntax bool 2
classes |
|---|---|---|---|---|---|---|---|---|---|---|---|
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\n'use strict'\n\nconst Stream = require('stream')\nconst Base = require('./base')\nlet Browserify\nlet Babelify\n\nclass PluginBrowserify extends Base {\n constructor() {\n super()\n this.registerTag(['Compiler-Browserify'], funct... | javascript | edit | 0 | 5 | mit | 5e6d76b5a7bf1c811071024ec5789f625c412b6d | steelbrain/UCompiler | plugins/browserify.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\nApplication.Services.factory('Events', ['$filter', EventsService]);\n\nfunction EventsService($filter) {\n var service = {\n date: '',\n\n addConvertedTime: function (project) {\n project.reviews = service.u... | javascript | edit | 0 | 2 | mit | e7e0a16067db0986e4b4090a568b7c717c3e452a | materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org | website/app/application/services/events.js | rejected_duplicate | Near-duplicate of sample 89023 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\nHummingbird.PostCommentComponent = Ember.Component.extend({\n classNames: [\"status-update-panel\"],\n\n didInsertElement: function() {\n this.$(\".status-form\").focus(function() {\n self.$(\".status-form\").autosize({append:... | javascript | edit | 0 | 2 | apache-2.0 | 74a1f655b6eb6b754a9e9f465f4abe26f7c324b9 | paladique/hummingbird,xhocquet/hummingbird,hummingbird-me/hummingbird,sidaga/hummingbird,jcoady9/hummingbird,xhocquet/hummingbird,xhocquet/hummingbird,jcoady9/hummingbird,Snitzle/hummingbird,NuckChorris/hummingbird,NuckChorris/hummingbird,xhocquet/hummingbird,jcoady9/hummingbird,astraldragon/hummingbird,saintsantos/hum... | app/assets/javascripts/components/post-comment.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\nmodule.exports = Pagination;\n\nfunction Pagination() {}\n\nPagination.prototype.view = __dirname + '/views';\nPagination.prototype.style = __dirname + '/styles';\nPagination.prototype.name = 'pagination';\nPagination.prototype.componen... | javascript | edit | 0 | 2 | mit | e87629683bbb798611f28e5db45857a7dde5fa7d | BBWeb/d-md-components,BBWeb/d-md-components | pagination/index.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\nimport { join } from 'path'\nimport json from '../util/json'\n\nconst saguiScripts = {\n 'start': 'npm run develop',\n 'test': 'NODE_ENV=test sagui test',\n 'test-watch': 'NODE_ENV=test sagui test --watch',\n 'develop': 'sagui devel... | javascript | edit | 0 | 2 | mit | 9ddc3dacd9452d3ddffa6b75f58932cebd2a9e1c | saguijs/sagui,saguijs/sagui | src/bootstrap/package-json.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\nangular\n .module('crosswatch')\n .directive('user', user);\n\nfunction user() {\n var directive = {\n link: link,\n scope: true,\n template: '<a stop-event dir=\"auto\" href=\"{{::event.projecturl}}/wiki/User:{{::user | url... | javascript | edit | 0 | 2 | isc | 0f0cb0d374ac28fa35a15f165065f25d5f5ea5ce | wikimedia/labs-tools-crosswatch,wikimedia/labs-tools-crosswatch,wikimedia/labs-tools-crosswatch,wikimedia/labs-tools-crosswatch | frontend/src/components/watchlist/user.directive.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\nmodule.exports = {\n build: \"npm start\",\n networks: {\n development: {\n host: \"localhost\",\n port: 8545,\n network_id: \"*\"\n },\n testnet: {\n host: \"localhost\",\n port: 8545,\n network... | javascript | edit | 0 | 0 | mit | a4542201252d4f90f0bc992737e91a1a1c4c87b7 | makoto/blockparty,makoto/blockparty | truffle.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\nvar sms = {\n send: function(phone, message, method, successCallback, failureCallback) {\n phone = sms.convertPhoneToArray(phone);\n\n cordova.exec(\n successCallback,\n failureCallback,\n 'Sms',\n 'send',\n ... | javascript | edit | 0 | 4 | mit | 003f43568e574504466df1a869945da5a645ae02 | Telerik-Verified-Plugins/SMS,aharris88/phonegap-sms-plugin,DynamoMTL/cordova-sms-plugin,DispatchMe/cordova-sms-plugin,DynamoMTL/cordova-sms-plugin,blocktrail/cordova-sms-plugin,cordova-sms/cordova-sms-plugin,vkeepe/cordova-sms-plugin,cordova-sms/cordova-sms-plugin,kentmw/cordova-sms-plugin,pyxweb/cordova-plugin-mms,Dis... | www/sms.js | rejected_duplicate | Near-duplicate of sample 77940 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\nimport React from 'react'\nimport ReactDOM from 'react-dom'\nimport ReactTestUtils from 'react-dom/test-utils'\nimport renderer from 'react-test-renderer'\n\nimport { App } from './App'\n\nit('smoke test', () => {\n const div = documen... | javascript | edit | 0 | 1 | mit | ae25cd63f650edd6c6c3aca12172253b1be17b11 | joelgeorgev/react-checkbox-tree,joelgeorgev/react-checkbox-tree | src/App.test.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\n---\nlayout: null\n---\n\nvar store = [\n {% for c in site.collections %}\n {% if forloop.last %}\n {% assign l = true %}\n {% endif %}\n {% assign docs = c.docs | where_exp:'doc','doc.search != false' %}\n {% for doc ... | javascript | edit | null | null | mit | 267d2c96a0a565ea543dcd380401ee8f4a19b122 | Xoke/xoke.github.io,adokter/adokter.github.io,anhluong/anhluong.github.io,GersonDias/gersondias.github.io,mohamed-barakat/mohamed-barakat.github.io,sorrel/minimal-mistakes,agakshat/agakshat.github.io,tjmahr/tjmahr.github.io,vatervonacht/vatervonacht.github.io,dispersing/dispersing.github.io,keelezibel/keelezibel.github... | assets/js/lunr/lunr-store.js | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\n(function() {\n\tfunction startup() {\n\t\tvar navigatorToolbox = document.getElementById(\"navigator-toolbox\");\n\t\tnavigatorToolbox.iconsize = \"small\";\n\t\tnavigatorToolbox.setAttribute(\"iconsize\", \"small\");\n\t\tvar reloadBu... | javascript | edit | 0 | 3 | mit | 24177bf265b61dc63f0a878735cd0bda352ea59c | Webconverger/webconverger-addon,techlib/kiosek,Webconverger/webconverger-addon | src/webcfullscreen.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\nconst mongoose = require('mongoose')\nmongoose.Promise = global.Promise\nconst slug = require('slugs')\n\nconst gameSchema = new mongoose.Schema({\n title: {\n type: String,\n trim: true,\n required: 'Please specify a title'\n... | javascript | edit | 0 | 2 | mit | 33e61d6ef87571e9a3c4964568f677269f3937f8 | vgdates/backend,vgdates/backend | models/Game.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\nconst webpack = require('webpack')\nconst PACKAGE = require('./package.json')\nconst TerserPlugin = require('terser-webpack-plugin')\n\nmodule.exports = {\n entry: {\n list: './src/index.js',\n 'list.min': './src/index.js',\n },... | javascript | edit | 0 | 0 | mit | be9ba9442824222e01c30134507c17090cb1e364 | javve/list.js,javve/list.js | webpack.config.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\n/*!\n * Copyright 2016 Joji Doi\n * Licensed under the MIT license\n */\n\nfunction getMediaFilePath(mediaItem) {\n return \"ext-content/\" + mediaItem.dir + '/' + mediaItem.title +\n mediaItem.file_ext;\n}\n\nfunction getMediaThumb... | javascript | edit | 0 | 1 | mit | f7e8c7a747c133a794c7288820b4f00df326e237 | do-i/bubble3,do-i/bubble3,do-i/bubble3 | web/js/bubble-images.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\n/*\n * grunt-contrib-requirejs\n * http://gruntjs.com/\n *\n * Copyright (c) 2014 Tyler Kellen, contributors\n * Licensed under the MIT license.\n */\n\nmodule.exports = function(grunt) {\n 'use strict';\n\n var requirejs = require('r... | javascript | edit | 0 | 2 | mit | 6b9ad1711a43b62f6da8cf37acac7564d9c38ab3 | gruntjs/grunt-contrib-requirejs | tasks/requirejs.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\ndefine(function(require) {\n var module = require(\"ui/modules\").get(\"kibana-chord\");\n\n module.controller(\"ChordController\", function($scope, Private) {\n $scope.$watch(\"esResponse\", function(response) {\n $scope.data... | javascript | edit | 0 | 1 | mit | e4e67a2c75eb6c640d7b109732435039de41b014 | datavis-tech/kibana-chord,datavis-tech/kibana-chord,datavis-tech/kibana-chord | public/chord.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\nconst esprima = require('esprima');\nvar source = 'answer = 42; hola = 5; isCold = \"Si\"; answer = 50;';\nconst tokens = esprima.tokenize(source);\n//console.log(tokens);\n\nvar identificadores = tokens.filter(function (el) {\n retu... | javascript | edit | 0 | 3 | mit | 53256afa94654f204529c5f470c4bcf9388fba32 | ManuChalela/code-art.js,ManuChalela/code-art.js | code.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\nvar childProcess = require(\"child_process\")\nvar path = require(\"path\")\n\nvar env = process.env\nenv.NODE_ENV = \"test\"\n\nvar options = {\n\tenv: env,\n\tstdio: \"inherit\",\n}\n\nvar command = path.join(\".\", \"node_modules\"... | javascript | edit | 0 | 1 | mit | 722c536a135c631608cb48afbd56fc656ae9fa37 | strugee/node-sql,bgag/node-sql,BeeDi/node-sql,niklabh/node-sql,braddunbar/node-sql,brianc/node-sql,danrzeppa/node-sql | runtests.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\n\"use strict\";\n\nvar assert = require(\"assert\");\nvar comfy = require(\"../src/comfy\");\n\nvar env = {\n \"REQUIRED_PROP\": \"required_value\",\n \"OPTIONAL_PROP\": \"optional_value\"\n};\n\nvar config = comfy.build(function(c) {... | javascript | edit | 0 | 1 | mit | 4bd6167022300ecb0a2a7624249db7dfaf14967c | filp/comfy | test/test_comfy.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\nimport _ from 'lodash';\nimport { FETCH_POSTS } from '../actions';\n\nexport default function(state = {}, action) {\n switch (action.type) {\n case FETCH_POSTS:\n return _.mapKeys(action.payload.data, 'id');\n default:\n ... | javascript | edit | 0 | 3 | mit | c4e91bdee36197f18a4ba35dfe514c90ef2ce650 | unhommequidort/redux_blog,unhommequidort/redux_blog | src/reducers/reducer_posts.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\n/*jslint node: true, indent: 2, white: true, vars: true */\n/*globals suite, test, setup, suiteSetup, suiteTeardown, done, teardown */\n'use strict';\n\nvar server = require('../lib/server');\nvar assert = require('assert');\nvar util =... | javascript | edit | 0 | 1 | bsd-3-clause | e60328dc760d12c64ca7200b0fadb49842859456 | LocalData/localdata-api,LocalData/localdata-api,LocalData/localdata-api | test/test.compress.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\nfunction() {\n\n $(\"#form-Flight\").validator();\n\n $(this).show();\n $.tablesorter.addParser({\n id: 'surname',\n is: function(s) { return false; },\n format: function(s) {\n var names = s.trim().replace(/ +... | javascript | edit | 0 | 2 | apache-2.0 | eda06ce46b46d012db89d804bba5bb0a475b3ec8 | shmakes/hf-basic,shmakes/hf-basic | evently/flight_other/loggedIn/after.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\nPolymer\n({\n is: \"editor-viewport\",\n\n // member variables\n properties:\n {\n width: { type: Number, value: 0 },\n height: { type: Number, value: 0 },\n renderer: { type: Object, value: new THREE.WebGLRenderer() },\n ... | javascript | edit | 0 | 1 | mit | 9a281fbd1f8e4db126099a56c964813226fd96d8 | metropolislights/webgl-editor,metropolislights/webgl-editor | elements/editor-viewport.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\nconst _ = require('lodash');\nconst gtfs = require('gtfs');\nconst router = require('express').Router();\n\nconst config = require('../config');\nconst utils = require('../lib/utils');\n\n\n/*\n * Show all agencies\n */\nrouter.get('/',... | javascript | edit | 0 | 2 | mit | c9801bd107187c4630b953ba6ee32a93bad4d180 | brendannee/gtfs-to-html,brendannee/gtfs-to-html,BlinkTagInc/gtfs-to-html,BlinkTagInc/gtfs-to-html | routes/index.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\nimport React from 'react'\nimport { storiesOf } from '@storybook/react'\nimport Loader, { ProgressBar } from 'fyndiq-component-loader'\n\nstoriesOf('Loader/default', module)\n .addWithInfo('default', () => <Loader />)\n .addWithInfo('... | javascript | edit | 0 | 1 | mit | 90c9e573b7b84362b755a6a40c92ed018219c9b6 | fyndiq/fyndiq-ui,fyndiq/fyndiq-ui | packages/fyndiq-ui-test/stories/component-loader.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\nvar express = require('express');\nvar MetaInspector = require('node-metainspector');\nvar app = express();\n\n// TODO: Improve CSP\n// http://enable-cors.org/server_expressjs.html\napp.use(function(req, res, next) {\n res.header('Acce... | javascript | edit | 0 | 1 | mit | 394450034d4b98aab06d0f73527779a231ea8c26 | peterjmag/reading-list,peterjmag/reading-list | api-server.js | rejected_duplicate | Near-duplicate of sample 83974 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\nlet express = require('express')\nlet router = express.Router()\nlet acl = require('express-acl')\nlet models = require('../models')\nlet AuthController = require('../controllers/AuthController')(models.User)\nlet StatsController = requ... | javascript | edit | 0 | 0 | mit | 5fbc59ed7e311a7825e4f4bb0520ebe386227d4e | dennerevaldt/bikedeboa-api,dennerevaldt/bikedeboa-api | routes/stats.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\nep.ui.createTagsInput = function(source) {\n // partly from http://jqueryui.com/autocomplete/#multiple-remote\n function split(val) {\n return val.split(/,\\s*/);\n }\n function extractLast(term) {\n return spl... | javascript | edit | 0 | 3 | bsd-3-clause | 4d609070bdb6c6aa928f67564a4b1bdcd28da069 | pysv/djep,pysv/djep,pysv/djep,EuroPython/djep,pysv/djep,EuroPython/djep,EuroPython/djep,pysv/djep,EuroPython/djep | pyconde/skins/ep14/static/assets/js/ui.tagsinput.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\n'use strict';\n\n/*jslint nomen: true, stupid: true*/\n\nmodule.exports = function (grunt) {\n grunt.registerTask('integration-test', 'Run integration tests', [\n 'docker-integration-test'\n ]);\n\n grunt.registerMultiTa... | javascript | edit | 0 | 2 | apache-2.0 | 7718f0c27dd80258877eee4da4e40d17000d9acc | sagiegurari/node-go-require,sagiegurari/node-go-require | project/build/project.js | rejected_duplicate | Near-duplicate of sample 101600 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\n'use strict';\n\n/**\n * Run package tests.\n * (C) 2013 Alex Fernández.\n */\n\n// requires\nvar testing = require('testing');\n\n\n/**\n * Test that a new object is clean: has no functions.\n * Same for string and array.\n */\nfunctio... | javascript | edit | 0 | 2 | mit | 028c8a22b05412ff8a98e0dd5d13b48c296ab3a0 | alexfernandez/prototypes | runTests.js | rejected_duplicate | Near-duplicate of sample 82679 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\nimport express from 'express';\nimport validate from 'express-validation';\nimport paramValidation from './validation/user';\nimport userCtrl from '../controllers/user';\nimport userMiddleware from '../middlewares/user';\n\nconst router... | javascript | edit | 0 | 0 | mit | afeebc39824bef001bb06451b2e4ccf63957a7be | PagerNation/Escalator-API,PagerNation/Escalator-API | server/routes/user.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\n// Perform binary search using recursion\n\nfunction binarySearch(arr, val, leftPosition, rightPosition) {\n\n\t// value does not exist\n\tif (leftPosition > rightPosition) {\n\t\treturn -1;\n\t}\n\n\tvar middlePivot = Math.floor((leftP... | javascript | edit | 0 | 4 | mit | 33ae83b6abe0fd805b08a1e2e681db54db0594b2 | derekmpham/interview-prep,derekmpham/interview-prep | recursion-binary-search.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\nhorizon.job_launching_warning = {\n\n show_warning: function(cl_name_status_map, status_message_map) {\n var cl_choice_elem = $('.cluster_choice').parent();\n var current_cl_name = $('.cluster_choice option:selected').t... | javascript | edit | 0 | 3 | apache-2.0 | 052ff09bffdc6f98db17d8a4f5fb93246fceab7f | openstack/sahara-dashboard,openstack/sahara-dashboard,openstack/sahara-dashboard,openstack/sahara-dashboard | sahara_dashboard/content/data_processing/static/dashboard/project/data_processing/js/data_processing.job_launching.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\n'use strict';\n\nvar SimplexNoise = require( 'simplex-noise' );\nvar WebSocketServer = require( 'ws' ).Server;\nvar wss = new WebSocketServer({ port: 8080 });\n\nvar simplex = new SimplexNoise();\n\nwss.on( 'connection', function( socke... | javascript | edit | 0 | 2 | mit | f4fc67dc2a90cd618b1cc6ea2d13753265449434 | razh/axial-tribune,razh/axial-tribune | server/index.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\ndefine(function() {\n var ProjectsUserController = function($routeParams, ProjectResource) {\n this.projects = ProjectResource.get({\n user: $routeParams.user\n })\n }\n\n ProjectsUserController.$inject... | javascript | edit | 0 | 1 | mit | 73bfba94f437f2d271fcfc48f208d47d2e090ad0 | tenevdev/idiot,tenevdev/idiot | public/app/project-list/projects-user-controller.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\nvar pagination = require('hexo-pagination');\nvar _ = require('lodash');\n\nhexo.extend.generator.register('category', function(locals){\n var config = this.config;\n var categories = locals.data.categories;\n if (config.category_gen... | javascript | edit | 0 | 3 | mit | 0512d72d2b63e37983f78ac61dd673593e826e6e | ahaasler/hexo-theme-colos,ahaasler/hexo-theme-colos | scripts/generators.js | rejected_duplicate | Near-duplicate of sample 83508 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\n/*\n * app.js: Entry point for the content-service\n *\n * (C) 2015 Rackspace, Inc.\n *\n */\n\nvar config = require('./src/config');\n\nconfig.configure(process.env);\n\nvar\n async = require('async'),\n restify = require('restify'),... | javascript | edit | 0 | 2 | mit | fab355ea434c3b02d0acadae53456b955432b0cd | deconst/content-service,deconst/content-service | app.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\nvar express = require('express');\nvar config = require('./config');\nvar playsApp = require('../plays');\nvar app = express();\nvar plays = playsApp({\n\tsource: 'Spinitron',\n\tspinitron: config.spinitron\n});\n\napp.get('/nowplaying'... | javascript | edit | 0 | 1 | mit | 02f1a5f2cb286ca1a33359aa6ed848f88e6025a9 | WHRB/radio-api,WHRB/radio-api | app.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\nconst gulp = require('gulp');\nconst ghPages = require('gulp-gh-pages');\nconst rename = require('gulp-rename');\n\ngulp.task('deploy', () =>\n gulp.src([\n './dist/**/*',\n './docs/**/*',\n ], { base: '.' })\n .p... | javascript | edit | 0 | 3 | mit | 15c958c3b1d61eced5c9e9c33187b215aba2dafc | tommikaikkonen/redux-orm | gulpfile.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\nvar http = require('http');\nvar fs = require('fs');\nvar page = './index.tml';\n\nfs.readFile(page, function (err, data) {\n if (err) return console.error(err.message);\n\n http.createServer(function (req, res) {\n res.writeHead(2... | javascript | edit | 0 | 2 | mit | 0ccd133c49802d0917b614d2a1e4808fa559a5e2 | nyamadori/webrtc-video-chat,nyamadori/webrtc-video-chat | app.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\nfunction getQueryVariable(variable){\n var query = window.location.search.substring(1);\n var vars = query.split(\"&\");\n for (var i=0;i<vars.length;i++) {\n var pair = vars[i].split(\"=\");\n if(pair[0] == va... | javascript | edit | 0 | 2 | mit | 8d6ff212659559f31e9e615d4a454cef08bb384c | andrew/first-pr,iamarmanjon/first-pr,andrew/first-pr,iamarmanjon/first-pr,M-Zuber/first-pr,M-Zuber/first-pr | app.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\nvar gulp = require('gulp');\nvar phpunit = require('gulp-phpunit');\nvar watch = require('gulp-watch');\n\ngulp.task('phpunit', function(cb) {\n var options = {\n debug: true,\n statusLine: true,\n ... | javascript | edit | 0 | 1 | mit | 79e7c1f0d0267a36c4ad97e531990d7386063735 | benrowe/laravel-config,benrowe/laravel-config | gulpfile.js | rejected_duplicate | Near-duplicate of sample 69305 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\nvar express = require('express');\nvar http = require('http');\nvar socketIO = require('socket.io');\nvar path = require('path');\nvar game = require('./game.js');\n\nvar app = express();\nvar server = http.Server(app);\nvar io = socket... | javascript | edit | 0 | 1 | mit | a5c0d63c5a77654b9aa045a4abd636814ae01a84 | vakila/net-set,vakila/net-set | app.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\n#!/usr/bin/env node\n'use strict';\n\nvar path = require('path');\n\nvar chalk = require('chalk');\n\nvar checkLocales = require('./');\n\nif (process.argv.length < 3) {\n\tconsole.error('Usage: ' + process.argv[0] + ' ' + path.basename... | javascript | edit | 0 | 3 | mit | 3df2fa9957b5a297e50f01163a0aafc81129b428 | unitag/check-locales | cli.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\n(function (){\n \"use strict\";\n console.log('Extension only works in trello.com/*');\n})();\n\n```\n\nApply this change: Add function to extract Trello board ID from path"
},
{
"role": "assistant",
"content": "(function ... | javascript | edit | 0 | 2 | mit | af82e887b27f2a76f3ac0a6b2192fafe632afbfb | zachch/csv-trello | csv.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\n(function($){\n\n\t$(function(){\n \t\t$('.block_area').each(function(){\n \t\t\tvar self = $(this);\n \t\t\tvar label = '<span>' + self.data('areaid') + ' Block Area</span>';\n \t\t\tself.append('<div class=\"block_preview_overlay\"></... | javascript | edit | 0 | 1 | bsd-3-clause | 8185abbb492110ef8c2ace037dd09a75892542ad | sheadawson/silverstripe-blocks,designcity/silverstripe-blocks,sheadawson/silverstripe-blocks,designcity/silverstripe-blocks | javascript/block-preview.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\n// ==UserScript==\n// @name OTR for Facebook\n// @include http://*.facebook.com\n// @include https://*.facebook.com\n// @require lib/jquery.js\n// @require lib/dep/bigint.js\n// @require lib/dep/crypto.js\n// @require lib/dep/eventemitt... | javascript | edit | 0 | 1 | mit | 02c1cdb2943af03e334cc6595a1ea4807727afd7 | liamja/otr-for-facebook | src/common/content.js | rejected_duplicate | Near-duplicate of sample 71620 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\n\n/**\n * First we will load all of this project's JavaScript dependencies which\n * include Vue and Vue Resource. This gives a great starting point for\n * building robust, powerful web applications using Vue and Laravel.\n */\n\nrequi... | javascript | edit | 0 | 0 | mit | 623af34326def83f29142ec20bd11030078c792f | imabug/raddb,imabug/raddb,imabug/raddb | resources/js/app.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\n'use strict'\n\nvar cards = {}\n\nTrelloPowerUp.initialize({\n 'card-badges': function(t) {\n var cardId = ''\n return t.card('id', 'url')\n .then(function(card) {\n cardId = card.id\n if (!cards[cardId]) {\n ... | javascript | edit | 0 | 5 | isc | 5f9f20eae020257efaececc5255019935300fc0b | piemonkey/trello-dependency,piemonkey/trello-dependency | js/index.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\nimport React from \"react\";\nimport { Link } from \"react-router\";\nimport { Header, Footer } from \"formidable-landers\";\n\n// Variables and Stylesheet\nimport LOGO from \"../../static/logo.svg\";\nimport \"../styles/styles.css\";\n... | javascript | edit | 0 | 1 | mit | 9186059099545557b39d5eb291103d959a2e7015 | etsfactory/spectacle-docs-ets,etsfactory/spectacle-docs-ets,etsfactory/spectacle-docs-ets | src/components/app.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\ndefine(function(require) {\n\tvar registerSuite = require('intern!object'),\n\t\tassert = require('intern/chai!assert'),\n\t\tel;\n\n\trequire('js/tests/support/exports.js');\n\n\tregisterSuite({\n\t\tname: 'Screen',\n\n\t\tsetup: funct... | javascript | edit | 0 | 1 | apache-2.0 | d0aad6b62993f6447947285b44099184d01a3def | weepower/wee-core | js/tests/unit/wee.screen.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\nvar Hapi = require('hapi');\n\nvar server = Hapi.createServer('localhost', 8000);\n\nserver.route({\n method: 'GET',\n path: '/hang',\n handler: function(request, reply) {\n console.log(new Date(), 'hang');\n\n if (request.quer... | javascript | edit | 0 | 1 | mit | d890de588cabcb6b0770098f07ae2e0e48a48e28 | kpdecker/connect-zero-test | server/index.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\n/* eslint-disable no-underscore-dangle */\n\nimport { SheetsRegistry } from 'jss'\nimport { createMuiTheme, createGenerateClassName } from '@material-ui/core/styles'\nimport orange from '@material-ui/core/colors/orange';\n\n// A theme w... | javascript | edit | 0 | 3 | mit | cd5009fd10bc1821e252d00926530b78d3e3a219 | RobinClowers/photo-album,RobinClowers/photo-album,RobinClowers/photo-album,RobinClowers/photo-album | client/src/getPageContext.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\nconst express = require('express');\nconst router = express.Router();\n\nconst mongoose = require('mongoose');\nconst User = require('../models/user.js');\n\nconst jwt = require('jsonwebtoken');\nconst jwtConfig = require('../jwt_config... | javascript | edit | 0 | 2 | mit | 1af6b60960bb9a6f9b486550af0cd0880a1d879d | SimonKinds/couples-diary,SimonKinds/couples-diary,SimonKinds/couples-diary | server/src/routes/login.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\nimport { Map } from 'immutable';\nimport LastLoginScreen from './last_login_screen';\nimport LoadingScreen from '../loading_screen';\nimport { findConnection } from '../index';\n\nexport function renderSSOScreens(m) {\n // TODO: client... | javascript | edit | 0 | 6 | mit | 939d9648fb9ba148825afc5ad53409a7ac41154e | mike-casas/lock,mike-casas/lock,mike-casas/lock | src/lock/sso/index.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\nimport { expect } from \"chai\"\nimport Home from \"../pages/home.page\"\n\ndescribe(\"Anet home page\", function() {\n it(\"should have the right title\", function() {\n Home.open()\n const title = browser.getTitle()\n expect... | javascript | edit | 0 | 1 | mit | 2d05450baffd8e6f3aa57ccc0b82825cdbaa8d98 | NCI-Agency/anet,NCI-Agency/anet,NCI-Agency/anet,NCI-Agency/anet,NCI-Agency/anet | client/tests/webdriver/baseSpecs/userLogin.spec.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\n'use strict';\n\nvar Fieldset = require('dbjs-dom/input/utils/fieldset').Fieldset\n\n , isArray = Array.isArray;\n\nmodule.exports = function (domjs) {\n\tvar fieldset = domjs.ns.fieldset, normalize = domjs.ns.normalize;\n\n\treturn (d... | javascript | edit | 0 | 5 | mit | 0e3c3993dc37732400f265213ca7d43147d55252 | medikoo/dbjs-domjs | fieldset.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\nimport React, { Component } from 'react';\nimport { StyleSheet } from 'react-native';\nimport {\n Right,\n Icon,\n Card,\n CardItem,\n Thumbnail,\n Text,\n Body,\n} from 'native-base';\n\nimport ChooseJobTypeStyles from './choose... | javascript | edit | 0 | 1 | mit | bc0762778fe1910f277754fda27135582de18137 | justarrived/p2p-client,justarrived/p2p-client,justarrived/p2p-client,justarrived/p2p-client | js/components/developer/choose-job-type-screen/jobTypeCard.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\n/**\n * Created by moran on 12/06/14.\n */\n\n(function (module) {\n module.directive('emEmbed', ['embedlyService', function(embedlyService) {\n return {\n restrict: 'E',\n scope:{\n urlsea... | javascript | edit | 0 | 4 | mit | b481818c47ef61b3d881c2c8f89483e85652aed0 | Tomtomgo/angular-embedly,Urigo/angular-embedly | src/directives/emEmbed.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\nconst crypto = require('crypto');\n\nconst Accounts = function() {\n this.accounts = [];\n};\n\nconst Account = function() {\n\n this.username = '';\n this.characters = [];\n this.password = null;\n this.karma = 0;\n this... | javascript | edit | 0 | 2 | mit | bfbb6af4300359656b28277dd913c6004eb05376 | shawncplus/ranviermud,seanohue/ranviermud,seanohue/ranviermud | src/accounts.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\n\"use strict\";\n\nconst\n _ = require('lodash'),\n xss = require('xss'),\n router = require('koa-router')(),\n auth = require('../auth/auth.service'),\n params = require('../lib/params'),\n Term = require('../model/te... | javascript | edit | 0 | 3 | mit | e5187c84d976b6ec66dcaac5242808ef95436332 | cungen/cms-webservice | src/api/term.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\nvar util = require('util');\n\nvar five = require('johnny-five');\n\nvar Controllers = require('./controllers');\n\nfunction InternalTemperature(opts) {\n opts = opts || {};\n\n opts.controller = Controllers.InternalTemperature;\n\n ... | javascript | edit | 0 | 2 | mit | efd262673e6fbf212783ecb00b2b635f57616f09 | sandeepmistry/node-chip-io | lib/internal-temperature.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\n/* See license.txt for terms of usage */\n\n// ************************************************************************************************\n// Constants\n\nconst Cc = Components.classes;\nconst Ci = Components.interfaces;\nconst Cr... | javascript | edit | 0 | 2 | bsd-3-clause | f62d1735ce5270327c7fad5e4c007ab1c5a0ad4f | firebug/tracing-console,firebug/tracing-console | extension/modules/firebug-trace-service.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\nvar fs = require(\"fs\");\nvar mu = require(\"mu2\");\nvar webInterface = fs.readFileSync(\"./lib/webInterface.html\");\n\nfunction webInterfaceEndpoint(req, res) {\n var vars = {\n senderId: req.vars && req.vars.senderId\n ... | javascript | edit | 0 | 3 | mit | f3345d995d14bbf69d66e2eab692b786481327f1 | hypesystem/node-gcm-server,hypesystem/node-gcm-server | lib/webInterfaceEndpoint.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\nimport { L10nError } from '../../lib/errors';\n\nconst HTTP_STATUS_CODE_OK = 200;\n\nfunction load(url) {\n return new Promise((resolve, reject) => {\n const xhr = new XMLHttpRequest();\n\n if (xhr.overrideMimeType) {\n xhr.... | javascript | edit | 0 | 3 | apache-2.0 | 473940ffb180596d97142c507d4856e355833e43 | projectfluent/fluent.js,zbraniecki/fluent.js,projectfluent/fluent.js,zbraniecki/l20n.js,zbraniecki/fluent.js,l20n/l20n.js,stasm/l20n.js,projectfluent/fluent.js | src/runtime/web/io.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\n'use strict';\nvar path = require('path');\nvar assert = require('yeoman-assert');\nvar helpers = require('yeoman-test');\n\ndescribe('generator-hionic:app', function() {\n before(function(done) {\n helpers.run(path.join(__dirname, ... | javascript | edit | 0 | 1 | mit | 455a7a8f33cf4266125f79f0bb19ff4d270c6089 | DotHide/generator-hionic,DotHide/generator-hionic | test/app.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\nimport {map} from \"d3-collection\";\nimport {slice} from \"./array\";\n\nexport var implicit = {};\n\nexport default function ordinal() {\n var index = map(),\n domain = [],\n range = [],\n unknown = implicit;\n\n func... | javascript | edit | 0 | 4 | bsd-3-clause | 1fa8f037244b7e70b63491aa2ad63cb2828155c3 | d3/d3-scale | src/ordinal.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\nimport { combineEpics, createEpicMiddleware } from 'redux-observable';\nimport { BehaviorSubject } from 'rxjs/BehaviorSubject';\nimport 'rxjs/add/operator/mergeMap';\nimport 'rxjs/add/operator/map';\nimport 'rxjs/add/operator/debounceTi... | javascript | edit | 0 | 1 | apache-2.0 | da62097da373aea379df5a728bc9629d082fd23f | folio-org/stripes-core,folio-org/stripes-core,folio-org/stripes-core | src/configureEpics.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\nimport pluck from './pluck';\nimport {\n ref,\n refs,\n noop,\n mixin,\n insertCss,\n emptyTemplate,\n computedAll,\n pureComputedAll\n} from '../util/';\n\nconst modulePolyfill = {\n constructor: noop,\n d... | javascript | edit | 0 | 4 | mit | 13f3a702c54b5e4e2b5c3728920f9743c16c0c80 | baza-fe/knockout.register | src/core/transform.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\nexports.up = knex => (\n knex.schema\n /**\n * Users table\n *\n * Contains info on all users in the system\n */\n .createTableIfNotExists('users', (table) => {\n table.increments('id').primary();\n tabl... | javascript | edit | 0 | 1 | mit | b866c76785ca9c93f732a33f0d10d0940d97ec94 | FruitieX/backend-hipster-kit | db/migrations/000_initial.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\nimport collectionHandlers from './collections'\n\n// eslint-disable-next-line\nconst globalObj = Function(\"return this\")();\n\n// built-in object can not be wrapped by Proxies\n// their methods expect the object instance as the 'this'... | javascript | edit | 0 | 4 | mit | abd2fc3e615c476a990fb079c36f9667225e9ef0 | nx-js/observer-util,nx-js/observer-util | src/builtIns/index.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\n// Copyright 2019 Google LLC\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// https://... | javascript | edit | 0 | 1 | apache-2.0 | cda647389e01f4827f2b0b916430abf29a1e9c97 | googleinterns/step132-2020,googleinterns/step132-2020,googleinterns/step132-2020 | src/main/webapp/search.js | rejected_duplicate | Near-duplicate of sample 103711 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\nvar ShortcutPlugin = {\n CreateShortcut: function(shortcut_text, successCallback, errorCallback) {\n cordova.exec(\n successCallback,\n errorCallback,\n 'ShortcutPlugin',\n 'addShort... | javascript | edit | null | null | mit | 994464a9ac4057afb6b0af5686cea68d23d00eb6 | paul-em/ShortcutPlugin,jorgecis/ShortcutPlugin,jorgecis/ShortcutPlugin,paul-em/ShortcutPlugin | www/ShortcutPlugin.js | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\n'use strict';\n\nvar Object3D = require( '../object3d' );\n\nfunction Entity( geometry, material ) {\n Object3D.call( this );\n\n this.geometry = geometry;\n this.material = material;\n}\n\nEntity.prototype = Object.create( Object3D.... | javascript | edit | 0 | 1 | mit | ac00c9f15a2e933d1b1d2f1c6d3be43ca3997590 | razh/neptune-blue-js13k-2014 | src/js/entities/entity.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\n/*\n * Alloy JavaScript Library v0.1\n * http://alloyui.com/\n *\n * Copyright (c) 2009 Liferay Inc.\n * Licensed under the MIT license.\n * http://alloyui.com/License\n *\n * Date: @DATE\n * Revision: @REVISION\n */\n\n;(function() {\n... | javascript | edit | 0 | 1 | bsd-3-clause | 1100a0afa38adcc7460387ed212570471b0aa827 | henvic/alloy-ui,4talesa/alloy-ui,zsagia/alloy-ui,modulexcite/alloy-ui,crimago/alloy-ui,bryceosterhaus/alloy-ui,zenorocha/alloy-ui,zsigmondrab/alloy-ui,inacionery/alloy-ui,bryceosterhaus/alloy-ui,crimago/alloy-ui,ericyanLr/alloy-ui,fernandosouza/alloy-ui,zxdgoal/alloy-ui,ampratt/alloy-ui,zsagia/alloy-ui,Preston-Crary/al... | src/defaults.js | rejected_duplicate | Near-duplicate of sample 87806 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\nangular.module('MainApp')\n .controller('TaskControl', ($scope, db) => {\n db.find('open', (tasks) => {\n $scope.tasks = tasks;\n $scope.array = Array.apply(\n null, { length: tasks.length }\n ).map(Number.call... | javascript | edit | 0 | 1 | mit | c5087ca77bd0209b6680fe92275eea3cc7b23a58 | mkermani144/wanna,mkermani144/wanna | desktop/app/components/tasks/tasks_controller.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\n'use strict';\n\nexports.BattleScripts = {\n\tinit: function() {\n\t\tObject.values(this.data.Movedex).forEach(move => {\n\t\t\tlet bannedMoves = {'Baton Pass':1, 'Detect':1, 'Mat Block':1, 'Parting Shot':1, 'Protect':1, 'Roar':1, 'Skil... | javascript | edit | 0 | 3 | mit | d50c7645d9b8fbd797eb5ef7446fd3d2599aa35d | Elveman/RPCShowdownServer,Elveman/RPCShowdownServer | mods/trademarked/scripts.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\n'use strict';\n\nvar dot = require('dot');\ndot.templateSettings.strip = false;\n\nvar Node = require('../node');\n\nvar TYPE = 'data-observatory-measure';\nvar PARAMS = {\n source: Node.PARAM.NODE(Node.GEOMETRY.POLYGON),\n final_... | javascript | edit | 0 | 2 | bsd-3-clause | d45e4fce63577c8d55872d314f7f5e286d97ab23 | CartoDB/camshaft | lib/node/nodes/data-observatory-measure.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\n(function () {\n var ctrl = new ScrollMagic.Controller();\n\n $(document).ready(function () {\n $('.lazyload-wrapper').each(function () {\n var wrapper = this,\n small = wrapper.querySelector('.lazyload-small');\n\n... | javascript | edit | 0 | 1 | mit | 5e15b1edd654498c4a288c9581aa9382a5c2d9ab | Pier1/rocketbelt,Pier1/rocketbelt | rocketbelt/components/images/rocketbelt.images-lazyload.js | rejected_duplicate | Near-duplicate of sample 86431 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\nimport Ember from 'ember';\nimport RegisterTableComponentMixin from 'ember-table/mixins/register-table-component';\n\nexport default Ember.View.extend(RegisterTableComponentMixin, {\n templateName: 'column-sort-indicator',\n\n classNa... | javascript | edit | 0 | 4 | bsd-3-clause | a8c49f611271a49ab770b40381b2e2d70d330b83 | phoebusliang/ember-table,hedgeserv/ember-table,Gaurav0/ember-table,Gaurav0/ember-table,phoebusliang/ember-table,hedgeserv/ember-table | addon/views/column-sort-indicator.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\nrequire('dotenv').config();\n\nmodule.exports = {\n serverDomain: 'https://43697aef.ngrok.io',\n serverPort: process.env.PORT || 4321,\n googleKey: process.env.google_key,\n weatherKey: process.env.openWeatherMap_key \n}\n``... | javascript | edit | 0 | 0 | mit | 42fbe3f7a5419ae84f84ff31633e4828f1abf9a7 | wm4n/line-bot-weather | src/ServerSettings.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\n/**\n * Copy Wordpress Plugins\n * @description Copy all Wordpress Plugins\n */\n\nimport kc from '../../config.json'\nimport gulp from 'gulp'\n\nconst copyWPPlugins = () => {\n gulp\n .src(kc.src.plugins + '**/*')\n .pipe(gulp.d... | javascript | edit | 0 | 2 | mit | 830478d8c3ad7128524e28ca2a47b0a12e882641 | kittn/generator-kittn,kittn/generator-kittn,kittn/generator-kittn,kittn/generator-kittn | app/templates/_copy-wpplugins.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\n// @flow\n/* eslint-env mocha */\n\nvar assert = require('power-assert')\nvar enLocale = require('./')\n\ndescribe('sv locale', function () {\n it('exports distanceInWords object', function () {\n assert(typeof enLocale.distanceInWo... | javascript | edit | 0 | 1 | mit | e60b7eb8d29fe8ed41b9f1f7e50229c2203b3cd7 | date-fns/date-fns,date-fns/date-fns,js-fns/date-fns,date-fns/date-fns,js-fns/date-fns | src/locale/sv/test.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\n/*\n * @flow\n */\n\nexport default function debounce(\n fn: () => void,\n delay: number = 250,\n): () => void {\n let timer = null;\n return function() {\n clearTimeout(timer);\n timer = setTimeout(fn, delay);\n };\n}\n\n```... | javascript | edit | null | null | apache-2.0 | e488eb0093412aa3decb509c1d10bed3aff34249 | pinterest/bonsai,pinterest/bonsai,pinterest/bonsai | src/utils/debounce.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 { connect } from 'react-redux'\nimport { checkout } from '../actions/index'\nimport { getTotal, getCartProducts } from '../reducers/index'\nimport Cart from '../components/Cart... | javascript | edit | 0 | 1 | mit | f8840c309ff8d997ccc55c87b019b81eaca89bac | tatsuhino/reactPractice,mjw56/redux,ellbee/redux,CompuIves/redux,tatsuhino/reactPractice,keyanzhang/redux,tappleby/redux,chentsulin/redux,camsong/redux,gaearon/redux,ptkach/redux,JoeStanton/redux,lifeiscontent/redux,jas-chen/redux,chentsulin/redux,lifeiscontent/redux,joaomilho/redux,Aweary/redux,mikekidder/redux,leoasi... | examples/shopping-cart/containers/CartContainer.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\n'use strict';\n\nvar gulp = require('gulp');\nvar sass = require('gulp-sass');\nvar sassLint = require('gulp-sass-lint');\nvar concat = require('gulp-concat');\nvar sourcemaps = require('gulp-sourcemaps');\n// testing\nvar mocha = requi... | javascript | edit | 0 | 1 | mit | 95d4b088ae1b4da5cb4a42d26c118a76e27f8d8e | molbiodiv/fennec,molbiodiv/fennec,molbiodiv/fennec,molbiodiv/fennec,molbiodiv/fennec | gulpfile.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\nvar hostile = require('hostile');\n\nvar hosts = [\n\t'databox.registry',\n\t'databox-arbiter',\n\t'databox.store'\n];\n\nvar p = Promise.resolve();\nhosts.forEach((host, i) => {\n\tp = p.then(() => new Promise((resolve, reject) => {\n\... | javascript | edit | 0 | 2 | mit | 84dce14cda92818454025defee82ff234687c2ea | yousefamar/databox-container-manager,me-box/databox,me-box/databox,me-box/databox-container-manager,pooyadav/databox,pooyadav/databox,me-box/databox-container-manager,me-box/databox-container-manager,yousefamar/databox-container-manager,yousefamar/databox-container-manager | src/sethosts.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\nvar cordova = require(\"cordova\");\nwindow.onload = action\nvar action = document.pesan.action = login();\t\nvar rs = [\"Royal Progress\", \"RSUP Dr Cipto Mangunkusumo\", \"RSUP Fatmawati\", \"RSUP Persahabatan\"]\n\nfunction login() {... | javascript | edit | null | null | mit | 77a7809961c0488713b2d7537e1d29ffe084e256 | mercysmart/cepatsembuh,mercysmart/cepatsembuh,christoga/cepatsembuh,christoga/cepatsembuh,cepatsembuh/cordova,christoga/cepatsembuh,cepatsembuh/cordova,cepatsembuh/cordova,christoga/cepatsembuh,mercysmart/cepatsembuh,cepatsembuh/cordova,mercysmart/cepatsembuh,christoga/cepatsembuh,cepatsembuh/cordova,mercysmart/cepatse... | www/js/main.js | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\nimport React from 'react';\nimport { storiesOf } from '@storybook/react';\nimport { boolean, select } from '@storybook/addon-knobs/react';\nimport { Link, TextDisplay } from '../components';\n\nconst colors = ['white', 'neutral', 'mint'... | javascript | edit | 0 | 1 | mit | 155154ea2c55127551c3f82a9e396540b14e2632 | teamleadercrm/teamleader-ui | stories/link.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\n// @flow\n\nimport NetInfo from '@react-native-community/netinfo';\nimport PropTypes from 'prop-types';\nimport * as React from 'react';\n\nimport type { DispatchActionPayload } from 'lib/utils/action-utils';\nimport { connect } from 'l... | javascript | edit | 0 | 4 | bsd-3-clause | 5583343b80e067e5b9b97c60b7ad415de5a905a6 | Ashoat/squadcal,Ashoat/squadcal,Ashoat/squadcal,Ashoat/squadcal,Ashoat/squadcal,Ashoat/squadcal,Ashoat/squadcal | native/redux/connectivity-updater.react.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\nvar tsproject = require('tsproject');\nvar gulp = require('gulp');\nvar rjs = require('requirejs');\n\ngulp.task('compile', function () {\n tsproject.src('./')\n .pipe(gulp.dest('./'));\n});\n\ngulp.task('bundle', function () ... | javascript | edit | 0 | 1 | mit | 354dd7972ef3a88975c5a986a0d08f7ff0360b4b | Microsoft/vso-team-calendar,Microsoft/vso-team-calendar,Microsoft/vsts-team-calendar,Microsoft/vso-team-calendar,Microsoft/vsts-team-calendar,Microsoft/vsts-team-calendar | gulpfile.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\nconst TelegramBot = require('node-telegram-bot-api');\nmodule.exports = class TelegramBot_ extends TelegramBot {\n constructor(config) {\n super(config.telegramBotToken, { polling: true });\n }\n}\n\n```\n\nApply this chang... | javascript | edit | 0 | 1 | mit | 78d0342589091c7cd135ac368df6748051167f9a | dimotsai/pokemongo-notification | telegram_bot.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\n'use strict';\n\nvar gulp = require('gulp');\nvar eslint = require('gulp-eslint');\nvar htmlExtract = require('gulp-html-extract');\nvar stylelint = require('gulp-stylelint');\n\ngulp.task('lint', ['lint:js', 'lint:html', 'lint:css']);\... | javascript | edit | 0 | 1 | apache-2.0 | 29620067d654999f778616f2821b63ca82023ea9 | vaadin/vaadin-combo-box,vaadin/vaadin-combo-box | gulpfile.js | rejected_duplicate | Near-duplicate of sample 78028 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\nconst expect = require('chai').expect;\nconst validPassword = require('../lib/validPassword');\n\nit('should return new password', function() {\n let result = validPassword('old', 'new', 'new');\n\n return result.then(function(pw) {\n... | javascript | edit | 0 | 2 | apache-2.0 | d882ef87f4062946c1fea6528d0edd5169d5292a | mfinelli/cautious-ldap,mfinelli/cautious-ldap | test/validPassword.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\n'use strict';\n\nvar renderComponent = require('../lib/component').render;\n\nmodule.exports = function (route) {\n route.name = 'home';\n\n route.get(function (req, res) {\n var splashExample = {\n name : 'A... | javascript | edit | 0 | 1 | bsd-3-clause | b9f1e2e128574eff2c8d399c34e1a1ea919e3d4a | okuryu/formatjs-site,ericf/formatjs-site,ericf/formatjs-site | routes/home.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\nimport Ember from 'ember';\n\n/**\n * @module components\n * @class sl-pagination-info\n */\nexport default Ember.Component.extend({\n\n /**\n * Class names for the root element\n *\n * @property {array} classNames\n ... | javascript | edit | 0 | 0 | mit | 4ae90598bff399d96449d7c22aaed9676937268d | juwara0/sl-ember-components,azizpunjani/sl-ember-components,theoshu/sl-ember-components,alxyuu/sl-ember-components,Suven/sl-ember-components,azizpunjani/sl-ember-components,juwara0/sl-ember-components,SpikedKira/sl-ember-components,notmessenger/sl-ember-components,theoshu/sl-ember-components,Suven/sl-ember-components,s... | addon/components/sl-pagination-info.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\n// import React, { Component } from 'react';\n// import {\n// StyleSheet,\n// Text,\n// View,\n// Image,\n// TouchableHighlight,\n// Alert,\n// TextInput,\n// ScrollView,\n// Switch,\n// Animated\n// } from 'react-na... | javascript | edit | 0 | 0 | mit | 51955d22d1483cd5c4d2bc7e08857b0a13b613d3 | Casey1449/React-Native,Casey1449/React-Native,Casey1449/React-Native,Casey1449/React-Native,Casey1449/React-Native | app/components/Search.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\nmodule.exports = {\n setupFilesAfterEnv: ['./rtl.setup.js'],\n verbose: true,\n moduleDirectories: ['<rootDir>/node_modules'],\n transform: {\n '^.+\\\\.(js|tsx?)$': '<rootDir>/jest.transform.js',\n },\n collect... | javascript | edit | 0 | 0 | mit | eb074fe8e4ed4489d2a5e07f3ea2f8ed655a9977 | ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient | applications/calendar/jest.config.js | rejected_duplicate | Near-duplicate of sample 83158 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\nimport Ember from \"ember\";\n\n// We create an anchor since that is, afaik, the easiest way to parse a url in javascript\nfunction parseUrl(url) {\n let a = document.createElement('a');\n a.href = url;\n return a;\n}\n\nexport defau... | javascript | edit | 0 | 3 | mit | 776f656d223b42d971f1053441b315f80da94ae2 | aptible/dashboard.aptible.com,chasballew/dashboard.aptible.com,chasballew/dashboard.aptible.com,blakepettersson/dashboard.aptible.com,blakepettersson/dashboard.aptible.com,aptible/dashboard.aptible.com,chasballew/dashboard.aptible.com,aptible/dashboard.aptible.com,blakepettersson/dashboard.aptible.com | app/stack/log-drains/new/controller.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\nmodule.exports = {\n afterEnd: function(runner) {\n var fs = require('fs');\n var coverage = runner.page.evaluate(function() {\n return window.__coverage__;\n });\n\n if (coverage) {\n console.log('Writing coverag... | javascript | edit | 0 | 2 | bsd-2-clause | 154b8babc4f2593111c716374702b1cf0c422911 | geekdenz/ol3,thomasmoelhave/ol3,fredj/ol3,oterral/ol3,stweil/openlayers,thomasmoelhave/ol3,openlayers/openlayers,mzur/ol3,fredj/ol3,tamarmot/ol3,kjelderg/ol3,fblackburn/ol3,NOAA-ORR-ERD/ol3,mzur/ol3,fblackburn/ol3,klokantech/ol3,planetlabs/ol3,geekdenz/openlayers,planetlabs/ol3,itayod/ol3,tschaub/ol3,alexbrault/ol3,gin... | test/phantom_hooks.js | accepted | null | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.