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/*\n * config.js: Configuration information for your Loggly account.\n * This information is only used for require('loggly')./\\.+/ methods\n *\n * (C) 2010 Nodejitsu Inc.\n * MIT LICENSE\n *\n */\n\n//\n// function createCon... | javascript | edit | 0 | 5 | mit | 317c217910049983a56ea8c03c216356fb747040 | mavrick/node-loggly,nodejitsu/node-loggly,dtudury/node-loggly,mafintosh/node-loggly,rosskukulinski/node-loggly,freeall/node-loggly | lib/loggly/config.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\n\nErrorModel = function (appId) {\n var self = this;\n this.appId = appId;\n this.errors = {};\n this.startTime = Date.now();\n}\n\n_.extend(ErrorModel.prototype, KadiraModel.prototype);\n\nErrorModel.prototype.buildPayload = functi... | javascript | edit | 0 | 2 | mit | 68e60dc5b22ab3aa668ea1a841037eac10ea5987 | chatr/kadira,meteorhacks/kadira | lib/models/errors.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\n'use strict';\nconst addLineNumbers = require('add-line-numbers');\nconst spawnSync = require('child_process').spawnSync;\nconst fs = require('fs');\nconst path = '/tmp/te';\n\nmodule.exports = function listAndRun() {\n var text = []... | javascript | edit | 0 | 2 | mit | 902e3846be5c6c87cfec171a9ae513b7a72d72a0 | gudnm/te | list-and-run.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\n'use strict';\n\n// Load chai\nconst chai = require('chai');\nconst expect = chai.expect;\n\n// Load our module\nconst utils = require('../../../app/libs/utils');\n\ndescribe('Function \"metadata\"', () => {\n\n it('should export a fun... | javascript | edit | 0 | 2 | apache-2.0 | 5a2a56e4b6a678ae96fe4b377c0d7922e0963118 | transmutejs/core | test/libs/utils/metadata.spec.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\n/**\n* LICENSE MIT\n* (C) Daniel Zelisko\n* http://github.com/danielzzz/node-ping\n*\n* a simple wrapper for ping\n* Now with support of not only english Windows.\n*\n*/\n\n//system library\nvar sys = require('util'),\n cp = require(... | javascript | edit | 0 | 3 | mit | 906cd1da17461c8a71ecefb68462db7628224fd2 | danielzzz/node-ping | lib/ping-sys.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\nconst { isProd, isDev } = require('../env');\n\nmodule.exports = (config) => {\n const options = {\n babelrc: false,\n compact: true,\n cacheDirectory: `${__dirname}/.babelCache`,\n\n presets: [\n ['env', {\n lo... | javascript | edit | 0 | 1 | mit | bcd5517032a7e46a98f90f496967a2ce22bd3b89 | AlexMasterov/webpack-kit,AlexMasterov/webpack-kit | webpack/modules/babelPreset.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\n\nvar SimpleStore = require('fh-wfm-simple-store'),\n config = require('./config.js');\n\n/**\n * Creates and initializes a store to be used by the app modules.\n * @param {String} dataSetId String used as an identifier for the store\... | javascript | edit | 0 | 5 | mit | aa4808300be58b9508178b2b7ede4212eb86ac13 | feedhenry-raincatcher/raincatcher-demo-cloud | lib/store-init.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\nmodule.exports = {\n 'env': {\n 'browser': true,\n 'es6': true,\n 'node': true,\n },\n 'extends': [\n 'eslint:recommended',\n 'plugin:react/recommended',\n 'plugin:import/errors',\n 'plugin:import/warnings',\n ]... | javascript | edit | 0 | 0 | mit | fb815f7573e040d032b894069e10fb4e0a61dd42 | poooi/plugin-battle-detail | .eslintrc.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\nvar counter;\n\nfunction setup() {\n var canvas = createCanvas(400, 400);\n canvas.parent('play');\n counter = new Counter();\n counter.new();\n}\n\nfunction draw() {\n background(233, 0, 0);\n counter.draw();\n}\n\nfu... | javascript | edit | 0 | 6 | mit | 6e2386f38b8296f00a36de7f2041a6c3c43abe9f | nemesv/playfive,nemesv/playfive | app/main.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\n/* eslint-env node */\n'use strict';\n\nmodule.exports = {\n extends: 'recommended',\n rules: {\n 'html-comments': false\n }\n};\n\n```\n\nApply this change: Fix deprecated template lint runle"
},
{
"role": "assistant",
... | javascript | edit | 0 | 0 | mit | e58037f834b0b34c01456d9e01fa493955e3665b | jelhan/ember-bootstrap,kaliber5/ember-bootstrap,jelhan/ember-bootstrap,kaliber5/ember-bootstrap | .template-lintrc.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\nvar urls = [\n 'http://s.npr.org/templates/css/fonts/GothamSSm.css',\n 'http://s.npr.org/templates/css/fonts/Gotham.css'\n];\n\nif (window.location.protocol == \"https:\") {\n urls = [\n 'https://secure.npr.org/templates... | javascript | edit | 0 | 0 | mit | 3ccbabddc220088addfe6b059a4468ba96c2a09c | nprapps/austin,nprapps/austin,nprapps/austin,nprapps/austin | www/js/fonts.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\n/*\n * Copyright 2014-2015 Fabian Tollenaar <<EMAIL>>\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 Licens... | javascript | edit | 0 | 2 | apache-2.0 | 3497efd63d2c0af9ffa99c67a4b33cf60988da1b | lsoltero/signalk-server-node,SignalK/signalk-server-node,SignalK/signalk-server-node,sbender9/signalk-server-node,jaittola/signalk-server-node,webmasterkai/signalk-server-node,sbender9/signalk-server-node,jaittola/signalk-server-node,SignalK/signalk-server-node,mauroc/signalk-oauth-node,sbender9/signalk-server-node,mau... | providers/nmea0183-signalk.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\nMeteor.startup(function () {\n Meteor.call(\"lightstreamerConnect\")\n Restivus.configure({\n useAuth: true,\n prettyJson: true\n });\n Restivus.addCollection(isslocation, {\n excludedEndpoints: ['put', 'post', 'delete', 'd... | javascript | edit | 0 | 4 | mit | 370f817c0f879093557c98091c3bdc7207ebad25 | slashrocket/stationstream,slashrocket/stationstream | server/startup.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\n//get index\nrequire('./../config');\nasync=require('async');\nvar bitcoin=require('bitcoin').bitcoin;\nvar knex=require('knex').knex;\n\n//var bookshelf=require('bookshelf').bookshelf;\n\nexports.index = function(req, res){\n testnet:... | javascript | edit | 0 | 2 | bsd-2-clause | d9ece655ddd7df695ef2a2087971f691e77ec84a | Earlz/d4btc | routes/index.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\nvar isFunction = require('lodash.isfunction');\nvar joi = require('joi');\nvar pc = require('pascal-case');\n\n/* Public */\n\nfunction attach(schema) {\n var attachments = {};\n\n schema &&\n schema._inner &&\n schema._inner.childr... | javascript | edit | 0 | 5 | mit | 9ecea827bb974b789e7a171b1682059de2cf572b | zackehh/joiless | lib/joiless.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\nimport React, { Component } from \"react\";\nimport styled from \"styled-components\";\n\nimport { Row, RowContent, ColumnContainer } from \"../SharedComponents.js\";\n\nimport Loading from \"../loading.js\";\n\nimport List from \"./Lis... | javascript | edit | 0 | 3 | mit | a1c28dd59d5f156a58629be110bb823d978e3db4 | Tejpbit/talarlista,Tejpbit/talarlista,Tejpbit/talarlista | frontend/src/Lists/ListsView.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\nvar express = require('express');\nvar router = express.Router();\n\n/* GET users listing. */\nrouter.get('/', function(req, res, next) {\n res.send('respond with a resource');\n});\n\nmodule.exports = router;\n\n```\n\nApply this chan... | javascript | edit | 0 | 1 | mit | c22cd7328d458b2d307095bf44b5557bbccf881f | getfretless/tracker-serverjs,getfretless/tracker-serverjs | routes/users.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\nconst express = require('express');\n\nconst router = express.Router();\n\nconst authController = require('./authController');\nconst locationsController = require('./locationsController');\nconst locationTypeController = require('./loc... | javascript | edit | 0 | 0 | mit | a581d98fce6f891d0f78e1ab3dcff70b851d9d55 | the-oem/happy-hour-power,the-oem/happy-hour-power | server/router.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\n'use strict';\n\nconst Hoek = require('hoek');\nconst Joi = require('joi');\nconst recordBase = require('./record_base');\n\nmodule.exports = Hoek.clone(recordBase).keys({\n record_type: Joi.string().valid('TXT').required(),\n text_co... | javascript | edit | 0 | 0 | isc | d33efd6901b5a54c10da2630bb5fda11ae3391bf | mikl/edzif-validator | src/validators/record_type_txt.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\n/*\n * Author: CM\n */\n(function($) {\n\t$.event.special.clickConfirmed = {\n\t\tbindType: \"click\",\n\t\tdelegateType: \"click\",\n\n\t\tsettings: {\n\t\t\tmessage: 'Please Confirm'\n\t\t},\n\n\t\thandle: function(event) {\n\t\t\tvar... | javascript | edit | 0 | 4 | mit | c7d9c51fc1728c01eadf48be2ed559da0b133076 | alexispeter/CM,christopheschwyzer/CM,cargomedia/CM,cargomedia/CM,christopheschwyzer/CM,fvovan/CM,cargomedia/CM,njam/CM,fvovan/CM,fauvel/CM,christopheschwyzer/CM,njam/CM,fvovan/CM,vogdb/cm,fauvel/CM,mariansollmann/CM,vogdb/cm,alexispeter/CM,njam/CM,zazabe/cm,cargomedia/CM,christopheschwyzer/CM,vogdb/cm,vogdb/cm,njam/CM,... | client-vendor/after-body/jquery.event.clickConfirmed/jquery.event.clickConfirmed.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\n/*\n * Copyright (C) DreamLab Onet.pl Sp. z o. o.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Softwa... | javascript | edit | 0 | 0 | mit | 5408e47e50289815efbd9ea491e83f9452136f4b | DreamLab/node-uriparser,DreamLab/node-uriparser,DreamLab/node-uriparser,DreamLab/node-uriparser | examples/benchmark1-NGX.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\nlet path = require('path');\nlet Manifest = require('./Manifest');\nlet objectValues = require('lodash').values;\n\nclass Versioning {\n /**\n * Create a new Versioning instance.\n *\n * @param {object} manifest\n */\... | javascript | edit | 0 | 2 | mit | cb927bcf825de717db3a331ab5357c1e95cdbbec | JeffreyWay/laravel-mix | src/Versioning.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\nimport BaseAPI from './base.es6.js';\nimport Report from '../models/report.es6.js';\n\nexport default class Reports extends BaseAPI {\n model = Report;\n\n move = this.notImplemented('move');\n copy = this.notImplemented('copy');\n ... | javascript | edit | null | null | mit | 20390640e1ba92f6bd52ce14b9e06f0dd241badc | reddit/node-api-client,reddit/snoode | apis/reports.es6.js | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\ndocument.getElementById(\"ayuda\").setAttribute(\"aria-current\", \"page\");\n\nvar aside = document.getElementById(\"complementario\");\n\nvar form = document.createElement(\"FORM\");\nvar p = document.createElement(\"P\");\nvar label ... | javascript | edit | 0 | 1 | mit | c2562990cb077bdf7f2dbb9f5fedb9fd446a05e5 | nvdaes/nvdaes.github.io,nvdaes/nvdaes.github.io | scripts/ayuda.js | rejected_duplicate | Near-duplicate of sample 83200 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\nimport { moduleForComponent, test } from 'ember-qunit';\nimport Component from '@ember/component';\nimport hbs from 'htmlbars-inline-precompile';\n\nmoduleForComponent('attributes', 'Integration | Component | attributes', {\n integrati... | javascript | edit | 0 | 1 | mit | b8d08b990108cf42f22e2a196007d99ea34282e4 | mmun/ember-component-attributes,mmun/ember-component-attributes | tests/integration/components/attributes-test.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\n/**\n * @module ol/source/VectorEventType\n */\n\n/**\n * @enum {string}\n */\nexport default {\n /**\n * Triggered when a feature is added to the source.\n * @event module:ol/source/Vector.VectorSourceEvent#addfeature\n * @api\n... | javascript | edit | 0 | 0 | bsd-2-clause | efdd8855715caf469a9423c2dddc90523e6104c6 | ahocevar/ol3,oterral/ol3,ahocevar/openlayers,stweil/openlayers,adube/ol3,adube/ol3,stweil/openlayers,ahocevar/openlayers,bjornharrtell/ol3,ahocevar/openlayers,stweil/ol3,ahocevar/ol3,oterral/ol3,adube/ol3,stweil/ol3,openlayers/openlayers,ahocevar/ol3,openlayers/openlayers,stweil/ol3,oterral/ol3,openlayers/openlayers,bj... | src/ol/source/VectorEventType.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\nconst { Staccato } = require('staccato')\n\nmodule.exports = async function (input) {\n const staccato = new Staccato(input)\n let accumulator = Buffer.alloc(0)\n for (;;) {\n const buffer = await staccato.readable.read(... | javascript | edit | 0 | 4 | mit | 64b61935b843fd6245495699bfee732ab228a50c | bigeasy/prolific,bigeasy/prolific | prolific.executable/header.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\n// @flow\n\nimport babel from \"rollup-plugin-babel\";\nimport commonjs from \"rollup-plugin-commonjs\";\nimport fs from \"fs\";\nimport pascalCase from \"pascal-case\";\nimport resolve from \"rollup-plugin-node-resolve\";\n\nimport pkg... | javascript | edit | 0 | 1 | mit | c80e93c106619ce86eae908e32f1382f666f5c48 | jumpn/utils-composite,jumpn/utils-composite | rollup.config.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\nimport styled from 'styled-components'\n\n// None of the below should throw indentation errors\nconst Comp = () => {\n const Button = styled.button`\n color: blue;\n `\n\n return Button\n}\n\nconst Comp2 = () => {\n const InnerCo... | javascript | edit | 0 | 1 | mit | 7480df0fd6a00c11045cf0c1523610e611606cfa | styled-components/stylelint-processor-styled-components | test/fixtures/hard/indentation.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\n'use strict';\n\nmodule.exports = {\n up: function (queryInterface, Sequelize) {\n /*\n Add altering commands here.\n Return a promise to correctly handle asynchronicity.\n\n Example:\n return queryInterface.bulk... | javascript | edit | 0 | 1 | mit | 657eb96720524a1ee4656f7bf3889cba05ef2f62 | xpepermint/cli,martinLE/cli,Americas/cli,Americas/cli,Americas/cli,martinLE/cli,cogpie/cli,sequelize/cli,sequelize/cli,martinLE/cli,brad-decker/cli,sequelize/cli,brad-decker/cli,brad-decker/cli,timrourke/cli | lib/assets/seeders/skeleton.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\n'use strict';\nvar generators = require('yeoman-generator');\nvar extend = require('deep-extend');\n\nmodule.exports = generators.Base.extend({\n constructor: function () {\n generators.Base.apply(this, arguments);\n\n this.optio... | javascript | edit | 0 | 3 | mit | 867f920794bbfff30901a187ad39296893df5b59 | dmarchena/generator-node-test | generators/travis/index.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\n'use strict';\n\nimport { importEntities, validateEntities } from './base';\nimport { schema } from '../schema/post';\n\nexport function importData (entries, space, contentType, data) {\n validateEntities(data.posts || [], 'post', sche... | javascript | edit | 0 | 2 | mit | 406d0c78c8112f464f05951c2182833c6ae566c9 | sdepold/contentful-blog-importer | src/data/post.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\n---\n---\n\n$(document).foundation();\n\n{% for javascript in site.noita.javascripts %}\n {% include javascript %}\n{% endfor %}\n\n```\n\nApply this change: Move foundation start to the end"
},
{
"role": "assistant",
"cont... | javascript | edit | null | null | mit | 7b2b8101d99f60c6b60bd04c1a290e40b6357254 | remy-actual/remy-actual.github.io,rootandflow/old.rootandflow.com,thehammar/thehammar.github.io,remy-actual/remy-actual.github.io,rootandflow/old.rootandflow.com,inlandsplash/inlandsplash.github.io,rootandflow/rootandflow.github.io,inlandsplash/inlandsplash.github.io,mariagwyn/jekyll-noita,inlandsplash/inlandsplash.git... | noita/javascript.js | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\nimport Ember from 'ember';\n\nexport default Ember.Component.extend({\n classNames: ['rl-dropdown-toggle'],\n\n tagName: 'button',\n\n attributeBindings: ['type'],\n\n type: 'button',\n\n targetObject: function () {\n return thi... | javascript | edit | 0 | 2 | mit | 09e4dca1919431a57d7c767cdc35826c9b58f59a | RSSchermer/ember-rl-dropdown,RSSchermer/ember-rl-dropdown | addon/components/rl-dropdown-toggle.js | rejected_duplicate | Near-duplicate of sample 93482 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\nvar disqus_shortname = 'jtwebman';\n\n(function () {\n 'use strict';\n var dsq = document.createElement('script');\n dsq.type = 'text/javascript';\n dsq.async = true;\n dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';\n ... | javascript | edit | 0 | 2 | mit | 2c54da703ecbab8c03498b08230ac803bf099249 | jtwebman/jtwebman | src/files/scripts/disqus.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\n// adapted based on rackt/history (MIT)\n// Node 0.12+\nvar execSync = require('child_process').execSync;\nvar stat = require('fs').stat;\n\nfunction exec(command) {\n execSync(command, {\n stdio: [0, 1, 2]\n });\n}\n\nstat('dist-m... | javascript | edit | 0 | 3 | mit | 2978298f66478d615099ba6b4c10482bf7bb28da | mateim24/react-input-calendar,survivejs/react-component-boilerplate,hexsprite/focuster-react-typeahead,austinsc/react-gooey,ClarityMovement/clarity-components,Stupidism/stupid-rc-starter,hexsprite/focuster-react-typeahead,efegurkan/interval-picker,efegurkan/interval-picker,yeyus/react-vertical-timeline,austinsc/react-g... | lib/post_install.js | rejected_duplicate | Near-duplicate of sample 82859 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\nimport Ember from 'ember';\n\nexport default Ember.Controller.extend({\n session: Ember.inject.service(),\n actions: {\n login () {\n var lockOptions = {\n allowedConnections: [\n 'Username-Password-Authenticat... | javascript | edit | 0 | 1 | bsd-2-clause | ec77870dcd8bc0286dded116a04b44ee0f910f39 | barberscore/barberscore-web,barberscore/barberscore-web,barberscore/barberscore-web | app/controllers/application.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\nimport Q from \"q\";\n\nconst JSONPUtil = {\n /**\n * Request JSONP data\n *\n * @todo: write test to verify this util is working properly\n *\n * @param {string} url\n * @returns {Q.promise} promise\n */\n request(url) ... | javascript | edit | 0 | 2 | apache-2.0 | 18913df91f33250f01da3a178f8816cca7d13db4 | cribalik/marathon-ui,cribalik/marathon-ui,mesosphere/marathon-ui,mesosphere/marathon-ui | src/js/helpers/JSONPUtil.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\n/**\n * React Static Boilerplate\n * https://github.com/koistya/react-static-boilerplate\n * Copyright (c) Konstantin Tarkus (@koistya) | MIT license\n */\n\nimport GitRepo from 'git-repository';\nimport task from './lib/task';\n\n// TO... | javascript | edit | 0 | 2 | mit | 89fdc37d358e0a2c15d6b75d7a40d9dd8f19e977 | nelseric/fhack-yo | tools/deploy.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\n(function (angular) {\r\n \r\n 'use strict';\r\n \r\n angular.module('birdyard.rooms')\r\n \r\n .config(['$routeProvider', function ($routeProvider) {\r\n \r\n $routeProvider.when('/rooms/c/everything', {\r\n controller... | javascript | edit | 0 | 1 | mit | 83cdb77f02cc4c98d7882468580abb001441d6e6 | birdyard/birdyard,birdyard/birdyard,bebopchat/bebop,robotnoises/bebop,bebopchat/bebop,robotnoises/bebop | src/modules/rooms/routes.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\nangular.module('atlasApp').service('MapsService', function(\n\t$scope, \n\t$http,\n\tLocationProvider,\n\tBusInfoProvider\n) {\n return {\n /**\n\t * Initializes the Google Maps canvas\n\t */\n\t this.initMap = functi... | javascript | edit | null | null | mit | 452636534735fb807f00d73c1608f97bf40b7025 | rice-apps/atlas,rice-apps/atlas,rice-apps/atlas | parse/public/js/MapsService.js | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\nconst assert = require('assert')\nconst deprecations = require('electron').deprecations\n\ndescribe('deprecations', function () {\n beforeEach(function () {\n deprecations.setHandler(null)\n process.throwDeprecation = true\n })\... | javascript | edit | 0 | 1 | mit | 0eefb282ca8a8eddacca6c55c77d1abd51cdb2b2 | kcrt/electron,the-ress/electron,brave/electron,thomsonreuters/electron,miniak/electron,renaesop/electron,tonyganch/electron,brave/muon,brave/electron,gerhardberger/electron,voidbridge/electron,MaxWhere/electron,rajatsingla28/electron,noikiy/electron,jhen0409/electron,gabriel/electron,thompsonemerson/electron,rreimann/e... | spec/api-deprecations-spec.js | rejected_duplicate | Near-duplicate of sample 102175 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\nvar sys = require('sys'),\n fs = require('fs'),\n path = require('path'),\n \n optparse = require('optparse');\n\nfunction Options(argv){\n var switches = [\n [ '--encoding', 'Specify encoding (default: utf8)'],\n ... | javascript | edit | 0 | 1 | mit | 99d6b09e651738e29e1f373093f3653043b65573 | biwascheme/biwascheme.github.io,yhara/biwascheme,biwascheme/biwascheme.github.io,biwascheme/biwascheme,biwascheme/biwascheme,biwascheme/biwascheme,yhara/biwascheme | src/node_main.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\nconst u = up.util\nconst $ = jQuery\n\ndescribe('up.framework', function() {\n\n describe('JavaScript functions', function() {\n\n describe('up.framework.isSupported', function() {\n\n it('returns true on a supported browser', ... | javascript | edit | 0 | 1 | mit | f6465abae47d69e2941e9640930a9e6d13035679 | unpoly/unpoly,unpoly/unpoly,unpoly/unpoly | spec/unpoly/framework_spec.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\n#!/usr/bin/env node --harmony\n\n'use strict';\n\nconst path = require('path');\nconst configUtil = require('./config');\nconst cwd = process.cwd();\nconst quailCore = require(path.join(cwd, 'node_modules', '@quailjs/quail-core'));\n\nm... | javascript | edit | 0 | 1 | mit | 6dee47bf20ddcbcee0e757725f300ae3ca8f91db | quailjs/quail-cli | src/quailBuild.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\n// This file bootstraps the app with the boilerplate necessary\n// to support hot reloading in Redux\nimport React, {PropTypes} from 'react';\nimport { bindActionCreators } from 'redux';\nimport { connect } from 'react-redux';\nimport F... | javascript | edit | 0 | 1 | mit | 5ed795207a690f729c4fa04c5894adc17f2f7bc7 | barrystaes/react-trebuchet,barrystaes/react-trebuchet | src/containers/App.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\n/**\n * Basic engine support.\n */\n\nrequire('../lib/setModuleDefaults');\n\nvar config = require('config');\nvar engineConfig = config.engines ? config.engines : undefined;\n\n/**\n * Return a function that creates a plugin:\n */\n\nm... | javascript | edit | 0 | 5 | mit | db407b1d236f05921ada01645f025921e9ec7614 | markbirbeck/adapter-template | adapters/generic.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': 'sagui test',\n 'test-watch': 'sagui test --watch',\n 'develop': 'sagui develop',\n 'build': 'sagui buil... | javascript | edit | 0 | 2 | mit | fc41731cd9c82b44d7cb9c6dce0bd33596bba2c7 | saguijs/sagui,saguijs/sagui | src/bootstrap/package-json.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\nvar copy = require(\"./copy\");\nvar path = require(\"path\");\nvar temp = require(\"temp\").track();\nvar Config = require(\"./config\");\n\nvar Init = function(destination, callback) {\n var example_directory = path.resolve(path.join... | javascript | edit | 0 | 2 | mit | d9bbd11b08973865e288102114de7523d5f78768 | ConsenSys/truffle | packages/truffle/lib/init.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\nvar EventEmitter = require('events').EventEmitter;\nvar nodeunit = require('nodeunit');\n\nvar assert = require('nodeunit/lib/assert');\n\nassert.equal = function equal(actual, expected, message) {\n if (actual != expected) {\n if (... | javascript | edit | 0 | 1 | mit | d13199ba65acdbf7f6e2bca4f37c71958cbf349c | nicolashenry/jsdom,Sebmaster/jsdom,zaucy/jsdom,danieljoppi/jsdom,kesla/jsdom,tmpvar/jsdom,evdevgit/jsdom,kesla/jsdom,mbostock/jsdom,medikoo/jsdom,aduyng/jsdom,szarouski/jsdom,susaing/jsdom,beni55/jsdom,Ye-Yong-Chi/jsdom,sirbrillig/jsdom,Zirro/jsdom,Sebmaster/jsdom,evdevgit/jsdom,AVGP/jsdom,lcstore/jsdom,zaucy/jsdom,mzg... | test/runner-core.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\nwindow.VaadinDatePickerSuites = [\n 'basic.html',\n 'dropdown.html',\n 'overlay.html',\n 'month-calendar.html',\n 'scroller.html',\n 'form-input.html',\n 'custom-input.html',\n 'keyboard-navigation.html',\n 'keyboard-input.html... | javascript | edit | 0 | 0 | apache-2.0 | f1007ef66ef5ffcacbc5a2b0fbbb4725bc99099b | vaadin/vaadin-date-picker,vaadin/vaadin-date-picker | test/test-suites.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\nvar assert = require('assert');\nvar fs = require('fs');\nvar path = require('path');\nvar temp = require('temp').track();\nvar offline = require('../lib/offline');\n\ndescribe('Offline', function() {\n it('should create offline-worker... | javascript | edit | 0 | 1 | apache-2.0 | 4c9e3a410418c864ea94b509d494893bd18393bb | mykmelez/oghliner,mozilla/oghliner,mykmelez/oghliner,mozilla/oghliner,marco-c/oghliner,marco-c/oghliner | test/testOffline.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\n/* global Raven */\n\nimport config from '../config/environment';\nimport Ember from 'ember';\n\nexport function initialize() {\n // Disable for development\n if (Ember.get('config.sentry.development') === true) {\n return;\n }\n\... | javascript | edit | 0 | 3 | mit | b53cc39e264405e073e842e72cb06a7d0e5726c9 | pifantastic/ember-cli-sentry,dschmidt/ember-cli-sentry,damiencaselli/ember-cli-sentry,damiencaselli/ember-cli-sentry,pifantastic/ember-cli-sentry,dschmidt/ember-cli-sentry | app/initializers/raven-setup.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\n/**\n * Created by vinichenkosa on 05.03.15.\n */\nvar mongoose = require('mongoose');\nvar Schema = mongoose.Schema;\n\nvar UserSchema = new Schema({\n firstName: String,\n lastName: String,\n email: String,\n username: Str... | javascript | edit | 0 | 4 | mit | 3c0b367aab0d2574a42897f908a57f66a41398be | winechess/MEAN | app/models/user.server.model.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\nimport fs from 'fs-extra';\nimport path from 'path';\nimport { mainStory, chalk } from 'storyboard';\nimport Promise from 'bluebird';\nimport * as gqlServer from './gqlServer';\n\ncon... | javascript | edit | 0 | 1 | mit | 49370f227a106c43129c23a6a30a91b5a82e9ad6 | guigrpa/mady,guigrpa/mady,guigrpa/mady | src/server/gqlUpdateSchema.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\n'use strict'\n\nconst path = require('path')\nconst sass = require('rosid-handler-sass')\nconst js = require('rosid-handler-js')\n\nconst preload = require('../preload')\nconst html = require('../ui/index')\n\nconst index = async () => ... | javascript | edit | 0 | 1 | mit | 95d0ef56ecf2aa03d11b957a75bf7fadbb60bc21 | electerious/Ackee | src/routes/ui.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\nexport default function systemPlugin () {\n return (mp) => {\n function onMessage (text) {\n mp.emit('systemMessage', text)\n }\n\n mp.on('connected', () => {\n mp.ws.on('plugMessage', onMessage)\n })\n }\n}\n\n`... | javascript | edit | 0 | 1 | mit | 1fbf7513c94fa3f7466ecba2256a276455b7ab0b | goto-bus-stop/miniplug | src/plugins/system.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\n/*\n * Copyright (c) 2014 mono\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restrict... | javascript | edit | 0 | 2 | mit | b3e6b257a2e19d1e10cae8307a9bd673d707a104 | mono0x/ldr-open-in-background-tab,mono0x/ldr-open-in-background-tab | src/lib/background.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\n'use strict';\n\nangular.module('confRegistrationWebApp')\n .directive('block', function () {\n return {\n templateUrl: 'views/blockDirective.html',\n restrict: 'E',\n controller: function ($scope, AnswerCache, Regist... | javascript | edit | 0 | 3 | mit | d86ced6ac75cb6e71b6018d3761177cdf5bd892e | CruGlobal/conf-registration-web,CruGlobal/conf-registration-web,CruGlobal/conf-registration-web,CruGlobal/conf-registration-web | app/scripts/directives/block.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\nvar fetch = require('node-fetch')\nvar execSync = require('child_process').execSync\n\nvar zapierHookURL = 'https://zapier.com/hooks/catch/3petdc/'\nvar tag = process.env.TRAVIS_TAG\n || execSync('git describe --abbrev=0 --tags').toStr... | javascript | edit | 0 | 1 | mit | 3c46ee20228420ded9a6752e8b5fbf482d1ab9b4 | js-fns/date-fns,date-fns/date-fns,js-fns/date-fns,date-fns/date-fns,date-fns/date-fns | scripts/tweet_release.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\nimport { MemoryRouter } from 'react-router';\n\n\nif (typeof MemoryRouter !== 'undefined') {\n require('./V4/index');\n}\nelse {\n require('./V3/index');\n}\n\n```\n\nApply this change: Remove any kind of logic that tries to load the ... | javascript | edit | 0 | 0 | mit | 75e10d72e55daf37d47e269b6b1cc5b774b69e22 | gvaldambrini/storybook-router | stories/index.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\n/**\n * Exports `parseUrl` for, well, parsing URLs!\n */\n\nimport urlParse from 'url-parse';\n\nconst schemeMatcher = /^([a-zA-Z]*\\:)?\\/\\//;\n\nconst hasScheme = url => {\n if (typeof url !== 'string') {\n return false;\n }\n ... | javascript | edit | 0 | 6 | mit | f1a86242849a9e75fd555dfdc95322d563b26646 | zapier/redux-router-kit | src/utils/parseUrl.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\n/*jshint node:true */\n\"use strict\";\n\nvar data = {\n\tcreated: { code: 201, body: \"Created\" },\n\tnoContent: { code: 204, body: \"\" },\n\tnotFound: { code: 404, body: \"Not found\" },\n\tmethodNotAllowed: { code: 405, body: \"Met... | javascript | edit | 0 | 1 | mit | 05b9f0d821d0fda89b49cddd3823a74ccd8a17d8 | njoyard/yarm | lib/httpStatus.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\nvar test = require('tap').test;\nvar fs = require('fs');\nvar path = require('path');\nvar through = require('through');\nvar convert = require('convert-source-map');\nvar transform = require('..');\n\ntest('t... | javascript | edit | 0 | 1 | mit | 8012441a16ecb34c7933a7edf7d3fd88470bdd19 | jsdf/coffee-reactify,jsdf/coffee-reactify,jnordberg/coffeeify,hafeez-syed/coffeeify | test/transform.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\n'use strict';\n\nangular.module('ahoyApp.factories', [])\n .factory(\"smartBanner\", function() {\n\tvar argument = \"\";\n\tif (document.location.hash.indexOf(\"#/link/\") != -1) {\n\t argument = document.location.hash.substring(... | javascript | edit | 0 | 2 | mit | 75eee88ec94c6174761ddb6f121b1becb7b1b395 | ahoyconference/ahoy-ui,ahoyconference/ahoy-ui | app/js/factories.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\nmodule.exports = () =>\n ({\n browser: process.env.BROWSER || 'chromium',\n launch: {\n dumpio: true,\n headless: process.env.HEADLESS !== 'false',\n },\n server: {\n command: 'yarn dev:serve',\n port: 5... | javascript | edit | 0 | 0 | mit | 6055151b88734de9f3dec4bf0c2f6487caf602b1 | FezVrasta/popper.js,FezVrasta/popper.js,FezVrasta/popper.js,floating-ui/floating-ui,floating-ui/floating-ui,floating-ui/floating-ui,FezVrasta/popper.js | jest-puppeteer.config.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\n'use strict';\n\n// Load requirements\nconst clk = require('chalk'),\n chalk = new clk.constructor({level: 1, enabled: true});\n\n// Formats a string with ANSI styling\nmodule.exports = function(str) {\n\n // Variables\n const re... | javascript | edit | 0 | 7 | apache-2.0 | 4b79570b45e609bf224347add37c5be95a432a62 | transmutejs/core | app/libs/utils/color-string.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\nvar config = require('config');\nvar debug = require('debug')(config.application() + ':otp');\nvar Profiler = require('otp-profiler');\nvar spin = require('spinner');\n\n/**\n * Create profiler\n */\n\nvar profiler = new Profiler({\n h... | javascript | edit | 0 | 3 | bsd-3-clause | 400fdea7e619c24ed21257b340cd27de5876801e | miraculixx/modeify,tismart/modeify,arunnair80/modeify-1,miraculixx/modeify,arunnair80/modeify,miraculixx/modeify,miraculixx/modeify,arunnair80/modeify,amigocloud/modeify,amigocloud/modified-tripplanner,arunnair80/modeify,tismart/modeify,amigocloud/modified-tripplanner,arunnair80/modeify-1,amigocloud/modeify,amigocloud/... | client/otp/index.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\n'use strict';\n\nvar calnav = (function() {\n\n var nav = $('.nav-cals');\n\n var renderCal = function(cal, level) {\n var input = document.createElement('input');\n input.type = 'checkbox';\n input.checked = 'checked';\n ... | javascript | edit | 0 | 2 | mit | c8d8b9c215426ebef3d42c94498e1ddaa5718a64 | oSoc15/educal,tthoeye/educal,oSoc14/code9000,oSoc14/code9000,tthoeye/educal,oSoc15/educal | public/js/calnav.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\n/**\n * This is a generic Interface for Mammalian Animals\n *\n * Those class of Animals have different things in\n * common - compared to other animal classes like\n * {api.test.Fish}.\n */\ncore.Interface('api.test.Mammalian', {\n\n\t... | javascript | edit | 0 | 0 | mit | a3d4149b667f00bc44401292b7ed95f705e1b2e2 | zynga/apibrowser,zynga/apibrowser | source/class/test/Mammalian.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\nimport Ember from 'ember';\n\nexport default Ember.Component.extend({\n tagName: 'li',\n classNames: ['b-portion'],\n\n click(e) {\n const target = Ember.$(e.target);\n if (target.hasClass('checkbox__text') || target.hasClass('... | javascript | edit | 0 | 3 | mit | 819016b9a70329ff1340ebcbdf149244fe60cd4c | yandex-shri-minsk-2016/yummy-time,yandex-shri-minsk-2016/yummy-time,yandex-shri-minsk-2016/yummy-time | client/app/components/b-portion.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\nimport React, { Component } from 'react'\nimport { Icon } from 'antd'\n\nimport Images from './Images'\n\nimport styles from './Docker.scss'\n\nclass Docker extends Component {\n\n render()\n {\n return (\n <div>... | javascript | edit | 0 | 1 | mit | 16a03f73f99f7e6b0fc9c4ab60dc76579092d3ce | baublet/lagniappe,baublet/lagniappe | app/components/Docker/index.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\nvar gpio = require('onoff').Gpio;\nvar red = new gpio(16, 'out');\nvar green = new gpio(12, 'out');\nvar blue = new gpio(21, 'out');\nvar button = new gpio(25, 'in', 'both');\nvar express = require('express');\nvar app = express();\n\na... | javascript | edit | 0 | 2 | mit | f7a29ef2c87f4f56ddb17dafa154c8775b1ba1c1 | davesroka/rpi-node-led,davesroka/rpi-node-led | app.js | rejected_duplicate | Near-duplicate of sample 94960 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\nexport function runBlock($log, $state, $trace) {\n\t'ngInject';\n\n\t// Enable logging of state transition\n\t$trace.enable('TRANSITION');\n\n\t// Add any logic for handling errors from state transitions\n\t$state.defaultErrorHandler(fu... | javascript | edit | 0 | 3 | unlicense | 7bfe479fbee18bc557cafc26986e01ad947abbda | ejwaibel/squarrels,ejwaibel/squarrels | src/app/index.run.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\n(function() {\n 'use strict';\n var canvas = document.getElementById('game');\n var WIDTH = window.innerWidth;\n var HEIGHT = window.innerHeight;\n canvas.width = WIDTH;\n canvas.height = HEIGHT;\n var ctx = canvas.getContext('2d... | javascript | edit | 0 | 1 | mit | 6555da3374369edb9bcd03d006c1504010688268 | msanatan/pong,msanatan/pong,msanatan/pong | javascripts/pong.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\n// Requires\nvar socketio = require('socket.io');\n\n\nfunction setup(options, imports, register) {\n var server = imports.server.http;\n\n\n var io = socketio.listen(server, {\n // Do not run a flash policy server\n ... | javascript | edit | 0 | 1 | apache-2.0 | c35fd81e9ec426c683317ce0687de91b6dda4e38 | CodeboxIDE/codebox,code-box/codebox,lcamilo15/codebox,CodeboxIDE/codebox,smallbal/codebox,blubrackets/codebox,ronoaldo/codebox,fly19890211/codebox,LogeshEswar/codebox,ahmadassaf/Codebox,etopian/codebox,blubrackets/codebox,quietdog/codebox,quietdog/codebox,kustomzone/codebox,nobutakaoshiro/codebox,Ckai1991/codebox,liste... | lib/cb.socket.io/main.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\nimport { createThunkAction } from 'utils/redux';\nimport { FORM_ERROR } from 'final-form';\n\nimport { login, register, resetPassword } from 'services/user';\nimport { getUserProfile } from 'providers/mygfw-provider/actions';\n\nexport ... | javascript | edit | 0 | 3 | mit | c79f0fa931512d00a0c76b7d067e3e80088aeb69 | Vizzuality/gfw,Vizzuality/gfw | app/javascript/components/forms/login/actions.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\nangular.module('marvelousnote.notes', [\n 'ui.router'\n])\n\n.config(function($stateProvider) {\n $stateProvider\n\n .state('notes', {\n url: '/notes',\n templateUrl: 'notes/notes.html',\n controller: 'NotesControlle... | javascript | edit | 0 | 1 | mit | 5b861da127b26493fa721cb65152edb8f06ab8bf | patriciachunk/MarvelousNote,patriciachunk/MarvelousNote | app/notes/notes.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\nklimaChallenge.controller('newsCtrl', function($scope, $http, $sce) {\n\n $scope.facebookImages = Array();\n\n $http.get('https://graph.facebook.com/v2.4/klimachallenge/photos/uploaded?fields=link,width,name,images&limit=10&access_t... | javascript | edit | 0 | 5 | mit | 95b5b40653b50eea009f6f240e0cd60d8110e94f | stromhalm/klimachallenge,stromhalm/klimachallenge,stromhalm/klimachallenge | controllers/news.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\nwindow.DEVELOPMENT_MODE = 'local-debug';\n\nswitch(window.DEVELOPMENT_MODE) {\n\tcase 'local-debug':\n\t\twindow.SOCKET_URI = '0.0.0.0';\n\t\tbreak;\n\n\tcase 'competition':\n\tdefault:\n\t\twindow.SOCKET_URI = \"roboRIO-2503-frc.local\... | javascript | edit | 0 | 1 | mit | f1062cf3977db91ec257b63fd11e825f40df52aa | frc2503/r2016 | web/js/socket.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\n// Container to render a list of cities and their data\n// Saturday, February 25, 2017\n\nimport React, { Component } from 'react';\nimport { connect } from 'react-redux';\n\nclass WeatherList extends Component {\n\n\trender() {\n\t\tre... | javascript | edit | 0 | 1 | mit | 03c84159702761c70ebc9a3e2abd56048f04ac56 | jstowers/ReduxWeatherApp,jstowers/ReduxWeatherApp | src/containers/weather_list.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\nvar gulp = require('gulp');\nvar gReact = require('gulp-react');\nvar del = require('del');\nvar shell = require('gulp-shell');\n\ngulp.task('clean', function(cb) {\n del(['lib/', 'Flux.js'], cb);\n});\n\ngulp.task('default', ['clean']... | javascript | edit | 0 | 1 | bsd-3-clause | f0015af6ec09fcadea4a0ac4daaf8a5635725952 | benchling/react-art,toddw/react-art,Sirlon/react-art,scgilardi/react-art,micahlmartin/react-art,kidaa/react-art,kidaa/react-art,reactjs/react-art | gulpfile.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\n/**\n * Assigns handlers/listeners for `[data-action]` links.\n *\n * Actions associated with a link will be invoked via Wire with the jQuery\n * event object as an argument.\n **/\n\n\n'use strict';\n\n\n/*global NodecaLoader, N, wi... | javascript | edit | 0 | 2 | mit | f0131fe468efcca8fafdc020269e1eda52374f4c | nodeca/nodeca.core,nodeca/nodeca.core | client/common/event_actions.js | rejected_duplicate | Near-duplicate of sample 83805 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\n'use strict';\nvar gulp = require('gulp');\nvar moment = require('moment');\nvar fs = require('fs');\nvar simpleGit = require('simple-git')();\nvar semver = require('semver');\n\ngulp.task('build', function () {\n // VERSION\n var ver... | javascript | edit | 0 | 4 | mit | 8fcdcd00b8a9c97a31c605ec4286984849be0378 | SeyZ/forest-express-mongoose | gulpfile.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\n/**\n * Parses a string of gcode instructions, and invokes handlers for\n * each type of command.\n *\n * Special handler:\n * 'default': Called if no other handler matches.\n */\nfunction GCodeParser(handlers) {\n this.handlers = ha... | javascript | edit | 0 | 5 | mit | 5d912e756862ff62f160e7ada15531a8162811ac | jherrm/gcode-viewer,cheton/gcode-viewer,cheton/gcode-viewer | web/gcode-parser.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\n/**\n * Created by Omnius on 6/25/16.\n */\n'use strict';\n\nconst security = {\n xframe: {\n rule: 'sameorigin'\n },\n hsts: {\n maxAge: '31536000',\n includeSubdomains: true\n },\n xss: true\n};\n\n... | javascript | edit | 0 | 0 | mit | abe4633a8484bce38e188871d24facf909099b2f | identityclash/hapi-login-test,identityclash/hapi-login-test | server/routes/rootRoute.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\n'use strict';\n\nvar gulp = require('gulp');\nvar casperjs = require('gulp-casperjs');\nvar spawn = require('child_process').spawn;\nvar gutil = require('gulp-util');\n\ngulp.task('integrate', function(){\n gulp.src('./spec/integration... | javascript | edit | 0 | 1 | mit | d1f84e072d74c50dd67be17bd448cbaf672e6d19 | startersacademy/fullstack-project-01,startersacademy/fullstack-project-01 | gulpfile.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\nvar gulp = require('gulp');\nvar sourcemaps = require('gulp-sourcemaps');\nvar stylus = require('gulp-stylus');\nvar rename = require('gulp-rename');\n\nvar mainStyl = './styl/main.styl';\n\ngulp.task('build:dev', function() {\n gulp... | javascript | edit | 0 | 1 | mit | 9ec4e70f81966dd0590b03f418fe5b973a5a838b | RyenNelsen/baremetal | gulpfile.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\nmodule.exports = {\n entry: \"./index.jsx\",\n\n output: {\n path: __dirname,\n filename: \"./build/bundle.js\"\n },\n\n module: {\n loaders: [\n {test: /\\.(jsx|js)$/, loader: \"babel-loader\... | javascript | edit | 0 | 0 | mit | ce0da6d74e4103431422f120134ef8a43f700cc4 | ikr/estimates-template,ikr/estimates-template | webpack.config.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\n'use strict';\n\nconst fs = require('fs');\nconst path = require('path');\n\nmodule.exports = function generate(overrides) {\n const branchPath = path.join(__dirname, 'branch');\n const branchContent = fs.readFileSync(branchPath, 'utf... | javascript | edit | 0 | 3 | mit | 0b2c154372847a072b3bffe68b8c575145d623f0 | silklabs/silk,silklabs/silk,silklabs/silk,silklabs/silk,silklabs/silk,silklabs/silk | version/gen.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\n'use strict';\n\nvar async = require('grunt').util.async;\nvar grunt = require('grunt');\nvar ArgUtil = require('flopmang');\n\nmodule.exports = function (task, exec, done) {\n var argUtil = new ArgUtil(task, [\n {\n ... | javascript | edit | 0 | 1 | mit | 62069a4d22832d7b53e24b1fb2b920898428b6b3 | rubenv/grunt-git | lib/command_push.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\nimport React from 'react';\nimport {connect} from 'react-redux';\nimport * as actions from './actions';\n\nexport default class NewPaula extends React.Component {\n\tupdate(e) {\n\t\te.preventDefault();\n\t\tthis.props.dispatch(actions.... | javascript | edit | 0 | 1 | mit | d497926e4a55d4b71c997cab7ebe6a00ee4e7ad9 | Rosuav/monopoly-open-bid,oshirodk/dogMatch,alexpoe22/fuzzyFinder,oshirodk/dogMatch,jbenjaminy/fullstack-app-template,jbenjaminy/fullstack-app-template,alexpoe22/fuzzyFinder,Rosuav/monopoly-open-bid,Rosuav/monopoly-open-bid | client/new-paula.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\n'use strict';\n\n$('#message').keyup(function(e) {\n if ((e.keyCode || e.which) == 13) {\n if (!e.srcElement.value) return;\n // enter was pressed\n $state.at('chat').push({\n from: $('#username').val(... | javascript | edit | 0 | 4 | mit | a15560670541d1837e3d94b28749c10d9193aba4 | kustomzone/ShareJS,Nzaga/ShareJS,share/ShareJS,modulexcite/ShareJS,gdseller/ShareJS,dialoghq/ShareJS,dialoghq/ShareJS,dialoghq/ShareJS,rasata/ShareJS,rchrd2/ShareJS,playcanvas/ShareJS,igmcdowell/ShareJS,gdseller/ShareJS,mcanthony/ShareJS,igmcdowell/ShareJS,luto/ShareJS,kantele/k-share,matthewbauer/ShareJS,freewind/Shar... | examples/peep-peep/js/peep-peep.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\n\n\n\nfunction sendRequest(action, data, callback) {\n\n $.ajax({\n type: 'post',\n url: 'foler.php?action='+action,\n data: data,\n error: function()\t{\n alert('Connection ... | javascript | edit | 0 | 2 | mit | 2d1227344a8452a64277290330e838220b5a2995 | serkin/foler,serkin/foler,serkin/foler | js/basic.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\n(function() {\n // wait for polyfill to be loaded\n if (document.readyState == \"complete\") {\n init();\n } else {\n window.addEventListener('load', init);\n }\n\n var loggedIn = false;\n\n function init() {\n if (!navig... | javascript | edit | 0 | 3 | mit | 818c6e9613f39b12452936a5879c08cbe4889bf1 | sickill/chrome-browserid | js/agent.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\nconst {Range} = require('atom')\n\nmodule.exports =\nclass RangeFinder {\n // Public\n static rangesFor (editor) {\n return new RangeFinder(editor).ranges()\n }\n\n // Public\n constructor (editor) {\n this.editor = editor\n ... | javascript | edit | 0 | 2 | mit | c7b9dad1e635a60ce0d866c7de295a55df050001 | atom/sort-lines,garethbjohnson/sort-css | lib/range-finder.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\nimport assert from 'assert';\nimport { parse } from 'graphql';\nimport { validate } from 'graphql/validation';\nimport { buildASTSchema } from 'graphql/utilities/buildASTSchema';\n\nimport { EnumValuesSortedAlphabetically } from '../../... | javascript | edit | 0 | 1 | mit | a3f2cc9bcfe2bb04d60c7b94a1f1e9799d8f3d05 | cjoudrey/graphql-schema-linter | test/rules/enum_values_sorted_alphabetically.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\nvar Request = require('./request')\n , Browser = require('./browser');\n\nvar Theme = function (session, blog, html) {\n this.session = session;\n this.blog = blog;\n this.html = html;\n}\n\nTheme.prototype = {\n\n save: function (... | javascript | edit | 0 | 2 | mit | 35ff337b8c6d97f8386ab020a28ae906688f2c40 | nporteschaikin/peak | lib/tumblr/theme.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\nconst { exec } = require('child_process');\n\nfunction run(fullCmd) {\nreturn new Promise((resolve, reject) => {\n console.log(`Executing command: ${ fullCmd }`);\n exec(fullCmd, (error, stdout, stderr) => { // eslint-disable-line... | javascript | edit | 0 | 4 | mit | 939753530b37807f8106c66da9b958c8db65b648 | stetsmando/pi-camera | lib/exec.js | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```javascript\n/*\nLanguage: AppleScript\n*/\n\nfunction(hljs) {\n return {\n defaultMode: {\n keywords: {\n keyword:\n 'about above after against and around as at back before beginning ' +\n 'behind below beneath bes... | javascript | edit | 0 | 1 | bsd-3-clause | 7d0d2bda421730ed3512f839c5bb8dae6c7893b5 | iominh/highlight.js,yxxme/highlight.js,adjohnson916/highlight.js,1st1/highlight.js,christoffer/highlight.js,Sannis/highlight.js,axter/highlight.js,iOctocat/highlight.js,J2TeaM/highlight.js,CausalityLtd/highlight.js,daimor/highlight.js,alex-zhang/highlight.js,STRML/highlight.js,axter/highlight.js,bogachev-pa/highlight.j... | src/languages/applescript.js | accepted | null | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.