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\nvar registerSystem = require('../core/system').registerSystem;\n\n/**\n * Tracked controls system.\n * Maintain list with available tracked controllers.\n */\nmodule.exports.System = registerSystem('tracked-controls-webxr', {\n init: f...
javascript
edit
0
3
mit
36c92e1e7c1ebeffec6f8f1d4597a4c3aceabbac
aframevr/aframe,chenzlabs/aframe,ngokevin/aframe,aframevr/aframe,chenzlabs/aframe,ngokevin/aframe
src/systems/tracked-controls-webxr.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport Cycle from '@cycle/core';\nimport {div, button, h1, h4, a, makeDOMDriver} from '@cycle/dom';\nimport {makeHTTPDriver} from '@cycle/http';\n\nfunction main(sources) {\n const getRandomUser$ = sources.DOM.select('.get-random').eve...
javascript
edit
0
2
mit
10693276f09beaf3cc46782a8b698fa8fb4f7a70
mikekidder/cycle-examples,cyclejs/cycle-examples,mikekidder/cycle-examples,cyclejs/cycle-examples,mikekidder/cycle-examples
http-random-user/src/main.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport DS from 'ember-data';\n\nvar SiteSerializer = DS.RESTSerializer.extend({\n serialize: function(site, options) {\n var fields = [ 'name', 'tagline', 'description', 'moreDesc', 'joinText' ];\n var result = { };\n\n fields...
javascript
edit
0
3
mit
9336e09b89b1aa31ed6f3d7984f209bc840f5e30
aymerick/kowa-client,aymerick/kowa-client
app/serializers/site.js
rejected_duplicate
Near-duplicate of sample 67621
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// Compile SCSS files into CSS (dev mode is not compressed)\nmodule.exports = {\n dev: {\n options: {\n style: 'expanded'\n },\n files: {\n 'preview/vizabi.css': 'src/assets/style/vizabi.scs...
javascript
edit
0
0
bsd-3-clause
48d7d841ffad787aca5652732e1a302ac5ab610e
acestudiooleg/vizabi,sergey-filipenko/vizabi,vizabi/vizabi,logicerpsolution/vizabi,maximhristenko/vizabi,logicerpsolution/vizabi,buchslava/vizabi,TBAPI-0KA/vizabi,jdk137/vizabi,alliance-timur/vizabi,sergey-filipenko/vizabi,alliance-timur/vizabi,dab2000/vizabi,logicerpsolution/vizabi,acestudiooleg/vizabi,maximhristenko/...
grunt/config/sass.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nTelescope.config.adminMenu.push({\n route: 'pages',\n label: 'Pages',\n description: 'manage_static_pages'\n});\n\nTelescope.config.preloadSubscriptions.push('pages');\n\nPageController = RouteController.extend({\n getTitle: functio...
javascript
edit
0
2
mit
4d9fdf55de26dc1a26b6a181b01e433d0b035ed2
TodoTemplates/Telescope,MeteorHudsonValley/Telescope,hoihei/Telescope,tupeloTS/telescopety,NodeJSBarenko/Telescope,HelloMeets/HelloMakers,Scalingo/Telescope,manriquef/Vulcan,aykutyaman/Telescope,tupeloTS/grittynashville,Scalingo/Telescope,TribeMedia/Screenings,sungwoncho/Telescope,JstnEdr/Telescope,StEight/Telescope,ev...
packages/telescope-pages/lib/client/routes.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nrequire('./extensions/es5');\nrequire('./extensions/json');\n\n// Based on Crockford's http://javascript.crockford.com/inheritance.html\nif (!Function.prototype.inherits) {\n Function.prototype.inherits = function (parent) {\n // Us...
javascript
edit
0
5
mit
44160a484f20585b95dd034f4a40c5138cac0c45
knuton/hobbes,knuton/hobbes,knuton/hobbes,knuton/hobbes
hobbes/extensions.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/* @flow */\nimport React from 'react'\nimport type { MessageResult } from 'types'\nimport styles from './style.css'\n\ntype RollsProps = {\n rolls: Array<number>\n}\nconst Rolls = (props: RollsProps) => {\n return <span>\n {props....
javascript
edit
null
null
mit
5b50833ca0595d0939d53e54dc289910431dbeb7
jsonnull/aleamancer,jsonnull/aleamancer
src/app/Chat/Message/MessageResult.js
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport packageJson from './package.json';\n\nmodule.exports = {\n backendRoot: 'https://obscure-woodland-71302.herokuapp.com/',\n flaskRoot: 'http://localhost:5000',\n /* flaskRoot: 'http://catapp-staging.herokuapp.com/',*/\n /* gra...
javascript
edit
0
0
mit
9a2f2f3110d6aaa67fe7ac63d3f96bdd83636f21
mhoffman/CatAppBrowser,mhoffman/CatAppBrowser
app/utils/constants.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar settings = require(process.cwd() + '/settings.js').settings;\nvar request = require('request');\n\nmodule.exports.currentLink = \"\";\nmodule.exports.currentName = \"\";\nmodule.exports.currentID = \"\";\nmodule.exports.currentType ...
javascript
edit
0
3
mit
15ee70dd5bfaa06eedfda8a75f6c7c796c6bbd2a
coryshaw1/SteveBot,the2hill/TonerBot
bot/utilities/media.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React, { Component } from 'react';\nimport s from './<%= componentName %>.scss';\nimport withStyles from '../withStyles';\n\nclass <%= componentName %> extends Component {\n\n render() {\n return <div></div>;\n }\n\n}\n\nexp...
javascript
edit
null
null
mit
2298e7cc99cd4d9c68c963046049969b0a076754
gfpacheco/generator-react-starter-kit-component
generators/app/templates/Component.js
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```javascript\nwindow.ContactManager = {\n Models: {},\n Collections: {},\n Views: {},\n\n start: function(data) {\n var contacts = new ContactManager.Collections.Contacts(data.contacts),\n router = new ContactManager.Router();\n\n ro...
javascript
edit
0
2
mit
7b7739a4df8788cb1f163e0ad8fedf01f0a55071
dmytroyarmak/backbone-contact-manager,SomilKumar/backbone-contact-manager,EaswarRaju/angular-contact-manager,vinnu-313/backbone-contact-manager,SomilKumar/backbone-contact-manager,giastfader/backbone-contact-manager,vinnu-313/backbone-contact-manager,hrundik/angular-contact-manager,giastfader/backbone-contact-manager,h...
app/js/app.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/** hapijs default hello world **/\n\n'use strict';\n\nconst Hapi = require('hapi');\n\n// Create a server with a host and port\nconst server = new Hapi.Server();\nserver.connection({\n host: 'localhost',\n port: 8000\n});\n\n// A...
javascript
edit
0
2
mit
cf2cde301e150254d023068d79d8bcc2e959fb4d
ResistanceCalendar/resistance-calendar-api,ResistanceCalendar/resistance-calendar-api
server.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// Program to sort an array using recursion\nfunction quickSort(arr) {\n\tif(arr.length == 0) {\n\t\treturn [];\n\t}\n\tvar left = [], right = [], pivot = arr[0];\n\tfor(var i = 1; i < arr.length; i++) {\n\t\tif(arr[i] < pivot) {\n\t\t\...
javascript
edit
0
4
mit
061d634b72d081d49532be98e2248f14bf7112d6
derekmpham/interview-prep,derekmpham/interview-prep
quick-sort.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React from 'react';\n\nconst styles = {\n footer: {\n padding: '10px',\n position: 'fixed',\n left: '0px',\n bottom: '0px',\n height: '45px',\n width: '100%',\n background: 'linear-gradient(rgba(255, 255, 25...
javascript
edit
0
1
mit
9a6ce516d1e96f5c9f5d54e07f94a9d68783ec4d
aaronlangford31/ruah-web,aaronlangford31/ruah-web
app/components/partials/Footer/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nfunction setStyle(style) {\n var range, sel;\n\n if (window.getSelection) {\n sel = window.getSelection();\n if (sel.getRangeAt) {\n range = sel.getRangeAt(0);\n }\n document.designMode = \"on\";\n if (range) {\n ...
javascript
edit
0
4
mit
3836a6ede8f391a1039dd1aed2b82674bc1f94b5
guilhermecomum/minimal-editor
assets/js/main.js
rejected_duplicate
Near-duplicate of sample 97500
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n<<<<<<< HEAD\nvar port = process.env.PORT || 8080;\nvar StaticServer = require('static-server');\nvar server = new StaticServer({\n rootPath: '.', // required, the root of the server file tree\n port: port, //...
javascript
edit
0
1
mit
dbefbfdc2dc8645899c4af16cf0cbcd765070554
orangedrink/head-game,orangedrink/head-game
server.js
accepted
null
true
[ { "role": "user", "content": "Write javascript code for the following: Deploy functionality related with testing." }, { "role": "assistant", "content": "describe(\"Checking correctly data in object projects\", function() {\n\n it(\"Length of object should to equal 4\", function() {\n expect(...
javascript
new_file
0
2
mit
0a3cf3af3f6be773a2bbd56e4f6f8e28e7b07e77
sfedyna/test-intellias,sfedyna/test-intellias,sfedyna/test-intellias
web/jasmine/spec/specIntelliasTest.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// @flow\nimport type {Snapshot, SnapshotItem} from 'redux-ship';\n\nexport type State = {\n logs: {action: mixed, snapshot: Snapshot<mixed, mixed>}[],\n selectedLog: ?number,\n selectedSnapshotItem: ?SnapshotItem<mixed, mixed>,\n};\...
javascript
edit
null
null
mit
575b107f092032f04d0169400d04e978449ac4af
clarus/redux-ship-devtools,clarus/redux-ship-devtools
src/devtools/model.js
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst path = require('path')\nconst express = require('express')\n\nconst app = express()\n\nconst port = process.env.PORT ? process.env.PORT : 8081\nconst dist = path.join(__dirname, 'public')\n\n\nfunction ensureSecure(req, res, next)...
javascript
edit
0
2
mit
8f62c8e39c747e88b28498e1bc44204340479dc5
developer239/workbox-webpack-react,developer239/workbox-webpack-react
server.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n'use strict';\n...
javascript
edit
null
null
bsd-3-clause
4cea628e0c215f2a13489022068f6e38cab5aaa4
pandiaraj44/react-native,myntra/react-native,pandiaraj44/react-native,hammerandchisel/react-native,exponent/react-native,javache/react-native,facebook/react-native,javache/react-native,hammerandchisel/react-native,janicduplessis/react-native,javache/react-native,exponentjs/react-native,arthuralee/react-native,janicdupl...
Libraries/Core/setUpReactRefresh.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 angular = require('angular');\n\nmodule.exports = angular.module('myApp.services.navigationService', [\n])\n.service('NavigationService', function (\n) {\n\treturn {\n\t\tgetMainNavItems: function () {\n\t\t\treturn...
javascript
edit
0
1
mit
d2337b21a2378d9ffb0243534338c8092ff78e63
SirKettle/myPortfolio,SirKettle/myPortfolio
src/app/services/navigationService.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n\nvar loadFileUrl = function (url) {\n var xhr = new XMLHttpRequest();\n xhr.open('GET', url, false); // synchronous\n // retrieve data unprocessed as a binary string\n xhr.overrideMimeType(\"text/plain; charset=x-user-defi...
javascript
edit
0
2
mit
1f6fb464187db286087d2ec5a4c954c28c31e624
daviddrysdale/jsebook,daviddrysdale/jsebook
spec/mobiread_test.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// Zepto.js\n// (c) 2010, 2011 Thomas Fuchs\n// Zepto.js may be freely distributed under the MIT license.\n\n(function($, undefined){\n var supportedTransforms = [\n 'scale scaleX scaleY',\n 'translate', 'translateX',...
javascript
edit
0
7
mit
ec559a4be4b2dc852cfa7ca82d792918896801bd
huaziHear/zepto,Genie77998/zepto,zhangwei001/zepto,fbiz/zepto,wubian0517/zepto,yuhualingfeng/zepto,alatvanas9/zepto,treejames/zepto,nerdgore/zepto,afgoulart/zepto,kolf/zepto,assgod/zepto,wanglam/zepto,dajbd/zepto,wanglam/zepto,leolin1229/zepto,zhangwei001/zepto,vincent1988/zepto,GerHobbelt/zepto,zhengdai/zepto,GerHobbe...
src/fx.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n(function(){\n var FLAGS = {\n {% for flag, value in flags %}'{{ flag }}': {% if value %}true{% else %}false{% endif %}{% if not forloop.last %},{% endif %}{% endfor %}\n },\n SWITCHES = {\n {% for switch, value in switches...
javascript
edit
null
null
bsd-3-clause
62b7d5f8a318de1ab1a9656e063127ae1377dae5
webus/django-waffle,groovecoder/django-waffle,mwaaas/django-waffle-session,engagespark/django-waffle,webus/django-waffle,ilanbm/django-waffle,rodgomes/django-waffle,rlr/django-waffle,rodgomes/django-waffle,rlr/django-waffle,JeLoueMonCampingCar/django-waffle,crccheck/django-waffle,groovecoder/django-waffle,isotoma/djang...
waffle/templates/waffle/waffle.js
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React, { Fragment } from 'react'\nimport Link from 'gatsby-link'\nimport styled from 'styled-components'\nimport { Container, Flex, Heading } from '@hackclub/design-system'\n\nimport storage from '../../storage'\nimport BG from '...
javascript
edit
0
2
mit
8d2e3aa557a754275062b829e74b71e98a162c6f
hackclub/website,hackclub/website,hackclub/website
src/pages/workshops/drafts.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n * In order to support reload-and-profile functionality, the renderer needs to be injected before any other scripts.\n * Since it is a complex file (with imports) we can't just toString() it like we do with the hook itself,\n * So ...
javascript
edit
null
null
mit
8e90194f7d38136be48bfebc8fc3c45d88dbc2d6
facebook/react,TheBlasfem/react,mosoft521/react,terminatorheart/react,acdlite/react,acdlite/react,jzmq/react,chenglou/react,Simek/react,facebook/react,jzmq/react,flarnie/react,yungsters/react,rricard/react,flarnie/react,flarnie/react,camsong/react,ericyang321/react,tomocchino/react,Simek/react,camsong/react,camsong/rea...
shells/browser/shared/src/renderer.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 Link from 'gatsby-link'\n\nexport default class InfiniteScrollLink extends React.Component {\n constructor (props) {\n super(props)\n\n const observerOptions = {\n root: null,\n rootMar...
javascript
edit
0
2
mit
11d1ad864ca23f9c5243ab85a015168e0a9faa34
LuisLoureiro/placard-wrapper
src/templates/infinite-scroll-link.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nfunction statusIdToText(id) {\n \tif(id==0) {\n \t\treturn 'Offline';\n \t}\n \telse if(id==1) {\n \t\treturn 'Available';\n \t}\n \telse if(id==2) {\n \t\treturn 'Away';\n \t}\n \telse if(id==3){\n \t\treturn 'Occ...
javascript
edit
0
5
mit
a85a6deefa094d1a79c9cdd7c7342605e6c27dda
perrr/svada,perrr/svada
js/functions.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// Copyright 2015 The Vanadium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style\n// license that can be found in the LICENSE file.\n\nmodule.exports = {\n shortName: shortName,\n firstShortName: fir...
javascript
edit
0
5
bsd-3-clause
1039880516112abc388e660ab8e6cb782deea42e
vanadium/chat,vanadium/chat,vanadium/chat,vanadium/chat,vanadium/chat
clients/web/js/util.js
rejected_duplicate
Near-duplicate of sample 75363
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nangular.module('MyApp')\n .factory('Account', ['$http', '$window', function($http, $window) {\n return {\n getUserInfo: function() {\n return $http.get('/api/me?token=' + $window.localStorage.token);\n }\n };\n ...
javascript
edit
0
1
mit
274137fa8f11c6b53071c625ace15cffad526e9c
peterkim-ijet/satellizer,xxryan1234/satellizer,celrenheit/satellizer,jayzeng/satellizer,shikhardb/satellizer,maciekrb/satellizer,NikolayGalkin/satellizer,hsr-ba-fs15-dat/satellizer,amitport/satellizer,ELAPAKAHARI/satellizer,ELAPAKAHARI/satellizer,celrenheit/satellizer,redwood-strategic/satellizer,david300/satellizer,EL...
examples/client/services/account.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// JavaScript Document\n\n// Scripts written by YOURNAME @ YOURCOMPANY\n\n// no service worker for previews\nself.addEventListener(\"fetch\", (event) => {\n if (event.request.url.match(/preview=true/)) {\n return;\n }\n});\...
javascript
edit
0
2
mit
d2f2523243a192a5d03dae1c1b33a6cdccc27c04
JacobDB/new-site,revxx14/new-site,JacobDB/new-site,revxx14/new-site,JacobDB/new-site
src/assets/scripts/service-worker/service-worker.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n(() => {\n\n 'use strict';\n\n angular\n .module('app')\n .controller('LoginController', LoginController);\n\n LoginController.$inject = ['growl', '$window', '$http', '$routeSegment', 'TokenService', 'Endpoints'];...
javascript
edit
0
3
mit
c109f3bb3d6eac0a3fd2a39717c5d34a27678567
royalrangers-ck/rr-web-app,royalrangers-ck/rr-web-app,royalrangers-ck/rr-web-app,royalrangers-ck/rr-web-app
landing/utils/auth/login/login.controller.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\nvar HtmlWebpackPlugin = require('html-webpack-plugin');\nvar fs = require('fs');\n\nclass TrlHtmlWebpackPlugin extends HtmlWebpackPlugin\n{\n htmlWebpackPluginAssets(compilation, chunks) {\n let language = this....
javascript
edit
0
2
bsd-2-clause
d8b9ff420d60510c8d74de728923a60af78677b4
koala-framework/koala-framework,koala-framework/koala-framework
node_modules_build/kwf-webpack/trl/trl-html-webpack-plugin.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports = {\n '/': {\n backLink: '/../priority_service_170301/filter/uncancelled',\n next: '/what-you-need'\n },\n '/before-you-continue-overseas': {\n backLink: '/../priority_service_170301/overseas...
javascript
edit
0
0
mit
9d12bf2ed95636b177dd3674a2e00f46b8efda2c
UKHomeOffice/passports-prototype,UKHomeOffice/passports-prototype
routes/priority_service_170315/intro/steps.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: 'section',\n classNames: ['gh-view', 'content-view-container'],\n\n previewIsHidden: false,\n\n resizeService: Ember.inject.service(),\n\n c...
javascript
edit
0
2
mit
fe16ec24f00a3b1741c49fe619c49dbfa640d49a
TryGhost/Ghost,TryGhost/Ghost,TryGhost/Ghost
ghost/admin/app/components/gh-content-view-container.js
rejected_duplicate
Near-duplicate of sample 68306
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nords.controller('mainController', function($rootScope,$location, User, Project) {\n\t\n\t\t//\n\t\t// If we're not logged in, redirect to login\n\t\t//\t\t\n\t\t$rootScope.user = User.get(\n\t\t\t function successCallback() { \n\t\t\t\t...
javascript
edit
0
1
apache-2.0
9ec283d23a5c7f85e47e0e6ea8f78dce74d756c4
ox-it/ords-ui,ox-it/ords-ui,ox-it/ords-ui,ox-it/ords-ui,ox-it/ords-ui
src/main/webapp/controllers/maincontroller.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\n$(document).ready(function() {\n function enableOrDisableAttributeField() {\n var rows = $(this)\n .parents('.attribute-row-wrapper')\n .find('.form-row');\n\n if ($(this).is(':che...
javascript
edit
0
3
apache-2.0
2d5eeac4f046d09d7f2bab77f7f65a89a84d5f46
SURFnet/sp-dashboard,SURFnet/sp-dashboard,SURFnet/sp-dashboard,SURFnet/sp-dashboard,SURFnet/sp-dashboard
app/js/components/service_edit_attribute.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nmodule.exports = {\n CATEGORY_NAME_MAXLENGTH: 20,\n NOTE_TITLE_MAXLENGTH: 20,\n NOTE_BODY_MAXLENGTH: 500,\n UNSPECIFIED_CATEGORY_NAME: 'Unspecified'\n};\n\n```\n\nApply this change: Increase note body max length" ...
javascript
edit
0
0
mit
df1e74ea954460dd0379a11017d52d31b3f7df6c
iuux/adrx-quicknotes,iuux/adrx-quicknotes
src/scripts/config.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// This is a manifest file that'll be compiled into application.js, which will include all the files\n// listed below.\n//\n// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,\n// or v...
javascript
edit
0
0
mit
142e8924e238a5eeae8a74a826ea3f66a21d969b
RomanovRoman/react-webpack-rails-tutorial,justin808/react-webpack-rails-tutorial,stevecj/term_palette_maker,stevecj/term_palette_maker,thiagoc7/react-webpack-rails-tutorial,RomanovRoman/react-webpack-rails-tutorial,StanBoyet/react-webpack-rails-tutorial,csterritt/react-webpack-rails-tutorial,csmalin/react-webpack-rails...
app/assets/javascripts/application.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/* eslint-env jasmine */\nvar editTypes = require('../helpers/edit-types')\nvar makeEditableElement = ('../helpers/make-editable-element')\nvar Edited = require('../../..')\n\ndescribe('`detach` method', function () {\n it('detaches th...
javascript
edit
0
1
bsd-3-clause
a353142806098899952ebaa5dfb799411422948a
PolicyStat/edited
test/unit/prototype/detach.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nangular.module('publicApp').service('UserService', ['$http','$location', function($http, $location) {\n var user = {\n isLogged: false,\n username: '',\n\n login: function(username, password) {\n user = this\n\t\t\t$http....
javascript
edit
0
3
isc
b9f5c1d83112dd6cd4ac4ccfb3d1d7e2d74c072e
zealord/gatewayd,Parkjeahwan/awegeeks,crazyquark/gatewayd,whotooktwarden/gatewayd,xdv/gatewayd,Parkjeahwan/awegeeks,xdv/gatewayd,whotooktwarden/gatewayd,crazyquark/gatewayd,zealord/gatewayd
public/app/scripts/services/user.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport errors from '../../src/reducers/errors';\nimport { GET_DATA_FAILED } from '../../src/actions/data';\n\ndescribe('errors reducer', () => {\n describe(`action type ${GET_DATA_FAILED}`, () => {\n it('returns the error passed in ...
javascript
edit
0
1
mit
22fa345844216bd692b62692b91d19e83b2565e1
bjacobel/react-redux-boilerplate,bjacobel/rak,bjacobel/react-redux-boilerplate,bjacobel/rak,bjacobel/rak
tests/reducers/errors-test.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/* eslint-env node */\n\nmodule.exports = {\n browsers: [\n 'ie 9',\n 'last 1 Chrome versions',\n 'last 1 Firefox versions',\n 'last 1 Safari versions'\n ]\n};\n\n```\n\nApply this change: Drop support for IE9 and IE10 in ...
javascript
edit
0
0
mit
1eda62d0824e7f903d031429f1a029b1ba091a28
jonathanKingston/ember-cli-eslint,ember-cli/ember-cli-eslint,jonathanKingston/ember-cli-eslint,ember-cli/ember-cli-eslint
tests/dummy/config/targets.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n\n(function () {\n Polymer({\n is: 'uql-apps-button',\n properties: {\n /** Whether to display title of the button */\n showTitle: {\n type: Boolean,\n value: true\n },\n /** Button title text */...
javascript
edit
0
1
mit
0244e6d127837776eff2605fdd4d067eee8930d2
uqlibrary/uqlibrary-reusable-components,uqlibrary/uqlibrary-reusable-components,uqlibrary/uqlibrary-reusable-components
elements/uql-apps-button/uql-apps-button.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n * Registers a new user. After signing up, the user gets an activation code per mail. With this \n * code, the user can activate his account.\n */\napp.controller('RegisterController', function($scope, $location, $http){\n // $sco...
javascript
edit
0
2
mit
47359eac53865925a8e97c5dffc7d064da7858ed
tuvokki/hunaJS,tuvokki/hunaJS
src/js/app/modules/user/RegisterController.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n(function($) {\n jQuery.fn.lineeditor = function (options, callback) {\n return this.each(function () {\n var el = this;\n var $el = $(this);\n \n if ( el.nodeName.toLowerCase() != 'textarea' ) { return; }\n ...
javascript
edit
0
2
apache-2.0
902d7e748e7f20ab64c60ff4b1c8b3bc55881ce7
pnomolos/greatbigcrane,pnomolos/greatbigcrane
greatbigcrane/media/js/jquery.lineeditor.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n(function () {\n 'use strict';\n\n angular\n .module('drinks', ['ngAnimate', 'toastr'])\n .controller('DrinksListController', DrinksListController);\n\n DrinksListController.$inject = ['DrinksService', '$state' , '$scope', 'toa...
javascript
edit
0
1
mit
ff3787db8e7fb58297ca064b75fb506f59c5e278
UF-SE-3B/SwampHead-Brewery,UF-SE-3B/SwampHead-Brewery,UF-SE-3B/SwampHead-Brewery
modules/drinks/client/controllers/list-drinks.client.controller.js
rejected_duplicate
Near-duplicate of sample 82560
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n//# sourceURL=heatmapValidator.js\n\n'use strict';\n\n/**\n * Heatmap Validator\n */\nwindow.HeatmapValidator = (function() {\n\n var validator = {\n NO_SUBSET_ERR : 'No subsets are selected',\n NO_HD_ERR : 'No high dim...
javascript
edit
0
1
apache-2.0
82d5c2644f226b3f6e3403fd8234573691ab7917
thehyve/heim-SmartR,thehyve/naa-SmartR,agapow/smartr,thehyve/heim-SmartR,agapow/smartr,agapow/smartr,thehyve/heim-SmartR,agapow/smartr,thehyve/naa-SmartR,thehyve/naa-SmartR,thehyve/heim-SmartR
web-app/js/smartR/Heatmap/heatmapValidator.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n\"use strict\";\n// DO NOT EDIT THIS FILE, EDIT THE GRUNT TASK NGCONSTANT SETTINGS INSTEAD WHICH GENERATES THIS FILE\nangular.module('publisherApp')\n\n.constant('ENV', 'dev')\n\n.constant('VERSION', '1.1.3-SNAPSHOT')\n\n;\n```\n\nApply...
javascript
edit
0
0
apache-2.0
88fb80bb09b7f73c27eff9e2bc5dc4551fdf8b71
EsupPortail/esup-publisher,EsupPortail/esup-publisher,GIP-RECIA/esup-publisher-ui,EsupPortail/esup-publisher,GIP-RECIA/esup-publisher-ui,EsupPortail/esup-publisher,GIP-RECIA/esup-publisher-ui
src/main/webapp/scripts/app/app.constants.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n * Poster v0.1.0\n * A React webapp to list upcoming movies and maintain a watchlist, powered by TMDb\n *\n * Author: Kushal Pandya <<EMAIL>> (https://doublslash.com)\n * Date: 13 June, 2016\n * License: MIT\n *\n * Section > Home ...
javascript
edit
null
null
mit
520dc27f969ef79e0b64b2151f07c7f5f9f68be1
kushalpandya/poster,kushalpandya/poster
app/components/Views/Section/Home/SearchBox.js
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```javascript\n;(function() {\n'use strict'; \n\nangular.module('gebo-client-performatives.conversationControl',\n ['gebo-client-performatives.request',\n 'templates/server-reply-request.html',\n 'templates/clie...
javascript
edit
0
3
mit
199aec30d6c5746f74f295f04c2509187ff0bcd5
RaphaelDeLaGhetto/gebo-client-performatives
src/directives/conversationControl.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n\nvar AV = {}\n\nAV.source = Backbone.Model.extend({\n\turl: 'redirect.php',\n\tdefaults: {\n\t\tname: '',\n\t\ttype: 'raw',\n\t\tcontentType: 'txt',\n\t\tdata: ''\n\t}\n});\n\n```\n\nApply this change: Add missing semicolon, because JS...
javascript
edit
0
0
bsd-3-clause
5ef82e3cf4ee4d567a2a670278b1f93fe2cfe5e6
Swarthmore/juxtaphor,Swarthmore/juxtaphor
dev/_/components/js/singleSourceModel.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst express = require('express');\nconst morgan = require('morgan');\nconst path = require('path');\n\nconst app = express();\n\n// Setup logger\napp.use(morgan(':remote-addr - :remote-user [:date[clf]] \":method :url HTTP/:http-versi...
javascript
edit
0
1
mit
0fb5c958d6b210bfb1a55b9fb197b4c59e612951
escudero89/my-npc-manager,escudero89/my-npc-manager
server/app.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React from 'react'\nimport PropTypes from 'prop-types'\n\nconst Box = ({ children }) => (\n <div>\n {children}\n\n <style jsx>{`\n @import 'colors';\n\n div {\n background-color: $white;\n box-shado...
javascript
edit
0
2
mit
9d4d798038a75531741a31e1b5d62be0924c970e
sgmap/inspire,sgmap/inspire
components/box.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport fs from 'fs';\n\nEmitter.on('FetchMainAppCustomStyles', () => {\n const mainAppPath = Settings.get('mainAppStyleFile');\n const css = mainAppPath && fs.existsSync(mainAppPath) ? fs.readFileSync(mainAppPath, 'utf8') : '';\n Emi...
javascript
edit
0
3
mit
f28561f4dcc6280c6f1b3bc3bbee3beb18209433
petuhovskiy/Google-Play-Music-Desktop-Player-UNOFFICIAL-,petuhovskiy/Google-Play-Music-Desktop-Player-UNOFFICIAL-,MarshallOfSound/Google-Play-Music-Desktop-Player-UNOFFICIAL-,MarshallOfSound/Google-Play-Music-Desktop-Player-UNOFFICIAL-,petuhovskiy/Google-Play-Music-Desktop-Player-UNOFFICIAL-,MarshallOfSound/Google-Play...
src/main/features/core/customStyle.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar instances = require('./../taillard');\nvar NEH = require('./../neh');\n\n// Iterate over filtered Taillard instances\nvar filteredInstances = instances.filter(50, 20);\nfor(var i = 0; i < filteredInstances.length; i++) {\n\n cons...
javascript
edit
0
0
mit
6eecd63cbe03ce0b0373b5a616621a1305071d25
manfredbork/flowshop
examples/instances.js
rejected_duplicate
Near-duplicate of sample 99352
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport events from 'events';\n\nclass Feeder extends events.EventEmitter {\n queue = [];\n pending = false;\n changed = false;\n\n constructor() {\n super();\n\n this.on('change', () => {\n this.chan...
javascript
edit
0
2
mit
261f74e6601be137fbd707884bd245e81215ae69
cncjs/cncjs,cncjs/cncjs,cheton/cnc.js,cheton/piduino-grbl,cheton/piduino-grbl,cheton/cnc,cheton/cnc.js,cheton/cnc.js,cncjs/cncjs,cheton/cnc,cheton/piduino-grbl,cheton/cnc
src/app/lib/feeder.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\r\n * Created by allen on 02/06/2015.\r\n */\r\nimport React from \"react\";\r\n\r\nimport _Store from \"../../../stores/_Store.js\";\r\n\r\nconst defaultProps = {\r\n title : \"New To Do | Mega awesome To Do List\"\r\n};\r\n\r\n...
javascript
edit
0
2
mit
2e20144758ec8de935f924f70de092816422e770
allenevans/react-isomorphic-demo
components/pages/Create/CreatePage.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nvar path = require('path');\nvar rootPath = path.normalize(__dirname + '/../../..');\n\nconst REVIEW_STATE_FIELD = ''; // TODO: Adjust this to a new field GUID.\n\nmodule.exports = {\n root: rootPath,\n ip: process....
javascript
edit
0
0
mit
fbb128ca7c499d4ed3514554b9eba955c2860868
CopenhagenCityArchives/kbh-billeder,CopenhagenCityArchives/kbh-billeder,CopenhagenCityArchives/kbh-billeder
config/env/all.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n(function() {\n loadOptions();\n submitHandler();\n})();\n\nfunction submitHandler() {\n var $submitButton = $('#submitButton');\n\n $submitButton.on('click', function() {\n console.log('Submit');\n\n var return_to = getQueryP...
javascript
edit
0
4
mit
70c1b3d7c216844748cc35bf1f71d23f568ce734
nevraw/Fitbit-images,nevraw/Phi-Ocular,nevraw/Phi-Ocular,nevraw/Web,nevraw/Flux,nevraw/Quadrant,nevraw/Quadrant,nevraw/Edge,nevraw/Doodle,nevraw/Dual,nevraw/Test_Rocky,nevraw/Web,nevraw/IdentityCrisis,nevraw/Testing,nevraw/Quasar,nevraw/Testing,nevraw/SotoX,nevraw/Quasar,nevraw/Flux,nevraw/Doodle,nevraw/Flux,nevraw/Ide...
config/js/main.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst {knex} = require('../util/database').connect();\nimport _ from 'lodash';\nimport {deepChangeKeyCase} from '../util';\n\nfunction getTeams() {\n return knex.raw(`SELECT teams.id, teams.name, SUM(COALESCE(action_types.value, 0)) AS...
javascript
edit
0
1
mit
448cee0d641ec8b3f75774a339d3044d6a86c037
futurice/wappuapp-backend,kaupunki-apina/prahapp-backend,futurice/wappuapp-backend,kaupunki-apina/prahapp-backend
src/core/team-core.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar async = require( 'async' );\nvar Validation = require( './validation' );\nvar Data = require( './data' );\nvar Output = require( './output' );\nvar utils = require( '../utils' );\n\n\nexports.authenticate = function ( req, res ) {\n...
javascript
edit
0
2
mit
c110d65481448e454117a70104148283b4d263a3
projectweekend/Node-Backend-Seed
api/authenticate/index.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 { ui, isConnectionEnabled } from '../index';\n\nexport function renderSSOScreens(m) {\n if (!u...
javascript
edit
0
6
mit
7a4ed741ffa0bfd8044f7854ecf456b61ef4ff17
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\ndescribe(\"About Objects\", function () {\n\n describe(\"Shorthand Syntax\", function () {\n\n it('should understand initailiser shorthand', function() {\n\n function passThrough(one, two) {\n return {\n one,\n ...
javascript
edit
0
1
mit
b36bf2a38c0000449670e9a26c38395c9877389a
tawashley/es6-javascript-koans,tawashley/es6-javascript-koans,tawashley/es6-javascript-koans
koans/AboutObjects.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/* global PageEvaluator */\ndescribe(\"PageEvaluator\", function () {\n describe(\"getSelfReferences\", function () {\n it(\"should be able to return all self references\", function () {\n\n var anchor = document.cr...
javascript
edit
0
1
apache-2.0
fcdb11b2e4300e8195906a013355ac1eca64981f
KaiHofstetter/link-stats
spec/pageevaluatorSpec.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nclass Stats extends Phaser.State {\n\n\tcreate() {\n\t\tthis.totalScore = this.game.state.states['Main'].totalScore\n this.game.stage.backgroundColor = '#DFF4FF';\n\n\t\tlet statsHeader = \"STATS\"\n let continuePhrase = \"Tap to ...
javascript
edit
0
2
mit
2c4f837529ddf930b0c92158f20bc2bf4cddaa6c
joshmun/cornman-the-game,joshmun/cornman-the-game
src/states/Stats.js
rejected_duplicate
Near-duplicate of sample 69348
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar map = L.map('map', {\n attributionControl: false\n}).setView([37.944, 24.115], 6);\n\nL.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png').addTo(map);\n\n```\n\nApply this change: Add node markers on the map after all nodes jso...
javascript
edit
0
2
apache-2.0
82655073c6e807281c50ae9d8ea0fe63951ff10e
ehosp/eHOSP-Services-CE,ehosp/eHOSP-Services-CE,ehosp/eHOSP-Services-CE
resources/assets/js/extra/maps.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n * Backbone.js plugin\n *\n * Patches Backbone.Events callbacks.\n */\n;(function(window, Raven, Backbone) {\n'use strict';\n\n// quit if Backbone isn't on the page\nif (!Backbone) {\n return;\n}\n\nfunction makeBackboneEventsOn...
javascript
edit
0
4
bsd-2-clause
697e848fbe0a2cab8a56ea8641f82f17d9b86c99
housinghq/main-raven-js,janmisek/raven-js,vladikoff/raven-js,danse/raven-js,benoitg/raven-js,janmisek/raven-js,clara-labs/raven-js,vladikoff/raven-js,hussfelt/raven-js,getsentry/raven-js,getsentry/raven-js,grelas/raven-js,Mappy/raven-js,getsentry/raven-js,housinghq/main-raven-js,eaglesjava/raven-js,danse/raven-js,PureB...
plugins/backbone.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n$(document).on('dp.change', '#ds-range-picker-from', function(e) {\n var from = $('#ds-range-picker-from').data(\"DateTimePicker\").getDate()\n console.log('set from time: ' + moment(from).fromNow())\n})\n\n$(document).on('dp.change',...
javascript
edit
0
3
apache-2.0
bc1bd2e89a8b3713668ac2c0341875b0f59ac5ea
section-io/tessera,urbanairship/tessera,jmptrader/tessera,tessera-metrics/tessera,Slach/tessera,section-io/tessera,tessera-metrics/tessera,aalpern/tessera,filippog/tessera,jmptrader/tessera,Slach/tessera,aalpern/tessera,filippog/tessera,urbanairship/tessera,aalpern/tessera,urbanairship/tessera,Slach/tessera,tessera-met...
js/app/handlers/range-picker.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar libA = require(\"./shared/lib-a\");\nvar libB = require(\"./shared/lib-b\");\n\nconsole.log(\"entry-a:libA\", libA);\nconsole.log(\"entra-a:libB\", libB);\n\n```\n\nApply this change: Add lodash to the build." }, { "role": "...
javascript
edit
0
0
mit
a3e1f0d088052a9fee85e56a4a68b5527b692844
interlockjs/interlock,interlockjs/interlock
example/app/entry-a.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\ndefine(function(require) {\n require('foundation.tooltip');\n //Replaces all class\"tip\" divs with an information icon that\n //displays the tip information on mouseover.\n var _setup = function(context, position) {\n //For each...
javascript
edit
0
2
apache-2.0
bfe90fd47754e44a02f0d9c364656ec20bf26f41
unistra/one,abelCoronado93/one,ggalancs/one,alvarosimon/one,juanmont/one,OpenNebula/one,juanmont/one,goberle/one,abelCoronado93/one,unistra/one,OpenNebula/one,hsanjuan/one,ggalancs/one,ohamada/one,ohamada/one,baby-gnu/one,ohamada/one,juanmont/one,unistra/one,juanmont/one,atodorov-storpool/one,fasrc/one,OpenNebula/one,g...
src/sunstone/public/app/utils/tips.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// component test\nimport React from \"react\";\nimport ReactTestUtils from \"react-addons-test-utils\";\n\nimport Button from \"src/components/Shared/Button.js\";\n\ndescribe(\"Button component\", () => {\n\n it(\"should exist\", () =...
javascript
edit
0
1
mit
4ed8a540fed8e419bcf9ad1dbcf3694dc12b27d7
Lingvokot/Tic-Tac-Toe-React,Lingvokot/Tic-Tac-Toe-React,Lingvokot/Tic-Tac-Toe-React
test/components/Shared/Button.spec.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst gulp = require('gulp');\nconst gutil = require('gulp-util');\n\nconst webpack = require('webpack');\nconst webpackConf = require('../conf/webpack.conf');\nconst webpackDistConf = require('../conf/webpack-dist.conf');\n<% if (frame...
javascript
edit
null
null
mit
d4fa0d6ee68cc5848c048426ad96b876c3ba919e
FountainJS/generator-fountain-webpack
generators/app/templates/gulp_tasks/webpack.js
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/* global wait */\nimport { MockUser } from '../utils/ember-cognito';\nimport { set } from '@ember/object';\n\nexport function mockCognitoUser(app, userAttributes) {\n const { __container__: container } = app;\n const cognito = contai...
javascript
edit
0
1
mit
26bf7d797840efe457fb08eb328e36dba2092d4f
paulcwatts/ember-cognito,paulcwatts/ember-cognito
test-support/helpers/ember-cognito.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconsole.log ('I am the weatherman')\n\nclass Weather {\n\n constructor (latitude, longitude) {\n }\n\n locate (latitude, longitude) {\n\n const api = 'https://crossorigin.me/http://api.openweathermap.org/data/2.5/weather?'\n\n ...
javascript
edit
0
1
mit
4118fe46abe8ebd048e4af13570e7b10ae3e886b
devpunks/snuggsi,devpunks/snuggsi,devpunks/snuggsi,snuggs/snuggsi,snuggs/snuggsi,snuggs/snuggsi,devpunks/snuggsi,snuggs/snuggsi,devpunks/snuggsi
examples/weather-viewer/weatherman.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport Vue from 'vue'\nimport Dashboard from 'src/components/Dashboard'\nimport axios from 'axios'\n\ndescribe('Dashboard.vue', () => {\n let sandbox\n beforeEach(function() {\n sandbox = sinon.sandbox.create()\n sandbox.stub(ax...
javascript
edit
0
1
mit
c7ecb64e84b2704d7bb10def5d2cb908a9a0002f
blakecontreras/play-me,blakecontreras/play-me
test/unit/specs/Dashboard.spec.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n * @depends ../core/AudioletNode.js\n */\n\nvar Gain = new Class({\n Extends: AudioletNode,\n initialize: function(audiolet, gain) {\n AudioletNode.prototype.initialize.apply(this, [audiolet, 2, 1]);\n this.outp...
javascript
edit
0
4
apache-2.0
e1351b93560897c8fd3516c5769f651a5c147c72
Kosar79/Audiolet,oampo/Audiolet,mcanthony/Audiolet,kn0ll/Audiolet,bobby-brennan/Audiolet,kn0ll/Audiolet,mcanthony/Audiolet,Kosar79/Audiolet,oampo/Audiolet,bobby-brennan/Audiolet,Kosar79/Audiolet
src/dsp/Gain.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/*global FormplayerFrontend */\n\n/**\n * hq.events.js\n *\n * This is framework for allowing messages from HQ\n */\nFormplayerFrontend.module(\"HQ.Events\", function(Events, FormplayerFrontend) {\n\n Events.Receiver = function(allow...
javascript
edit
0
6
bsd-3-clause
003572e5c7daceb12971aaef76d323902343e963
qedsoftware/commcare-hq,dimagi/commcare-hq,qedsoftware/commcare-hq,dimagi/commcare-hq,qedsoftware/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,qedsoftware/commcare-hq,qedsoftware/commcare-hq,dimagi/commcare-hq
corehq/apps/cloudcare/static/cloudcare/js/formplayer/hq.events.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar context = require('vm').createContext({\n\toptions: {\n\t\tserver: true,\n\t\tversion: 'dev'\n\t},\n\tCanvas: require('canvas'),\n console: console,\n\trequire: require,\n\tinclude: function(uri) {\n\t\tvar source = require('fs')...
javascript
edit
0
3
mit
25cb4a7dd16e4dd3235ade582e78dab5afa72883
superjudge/paper.js,iconexperience/paper.js,byte-foundry/paper.js,iconexperience/paper.js,byte-foundry/paper.js,proofme/paper.js,JunaidPaul/paper.js,Olegas/paper.js,luisbrito/paper.js,superjudge/paper.js,Olegas/paper.js,JunaidPaul/paper.js,lehni/paper.js,legendvijay/paper.js,fredoche/paper.js,proofme/paper.js,rgordeev/...
src/loadNode.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport { DEFAULT_CONFIG } from './core/config'\nimport { createCore } from './core/core'\nimport * as all from './factory'\nimport { ArgumentsError } from './error/ArgumentsError'\nimport { DimensionError } from './error/DimensionError'...
javascript
edit
0
1
apache-2.0
16e675f5b899341172cff4fd1ee144faf934f8d1
josdejong/mathjs,FSMaxB/mathjs,josdejong/mathjs,FSMaxB/mathjs,FSMaxB/mathjs,FSMaxB/mathjs,josdejong/mathjs,josdejong/mathjs,josdejong/mathjs,FSMaxB/mathjs
src/mainInstance.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n * Assign properties from `props` to `obj`\n * @template O, P The obj and props types\n * @param {O} obj The object to copy properties to\n * @param {P} props The object to copy properties from\n * @returns {O & P}\n */\nexport fun...
javascript
edit
0
2
mit
07b3370e26d4e6c3e2b4ddb7bb05747aa48f2b11
developit/preact,developit/preact
src/util.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar upnp = require(\"peer-upnp\");\nvar http = require(\"http\");\nvar server = http.createServer();\nvar PORT = 8080;\n\n// start server on port 8080.\nserver.listen(PORT);\n\n// Create a UPnP Peer. \nvar peer = upnp.createPeer({\n ...
javascript
edit
0
1
mit
59ee5513e39ae0e3f0c3435a6b7a012be9947da0
srware/iotrp-upnp-service,srware/iotrp-upnp-service
src/upnp-service.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React from 'react';\nimport { Route, IndexRoute } from 'react-router';\nimport CoreLayout from '../layouts/CoreLayout/CoreLayout';\nimport Home from './UI/containers/HomeContainer';\nimport ViewTOSContainer from './ViewTOS/contai...
javascript
edit
0
1
mit
e3fb80c7f7129dc0d735f8128e5ba4df226911fe
City-of-Helsinki/helerm-ui,City-of-Helsinki/helerm-ui,City-of-Helsinki/helerm-ui
src/routes/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar accessToken = '';\nvar accessManager = Twilio.AccessManager(accessToken);\nvar client = Twilio.Conversations.Client(accessManager);\n\nfunction handleConversationStats(conversation) {\n console.log('Finish this next');\n}\n\nfuncti...
javascript
edit
0
3
mit
ff1e5e08a86b7943b9cae4a472cbec3b73972917
sagnew/WebRTC-stats-with-Twilio-Video,sagnew/WebRTC-stats-with-Twilio-Video
conversationStats.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React from 'react'\nimport PropTypes from 'prop-types'\n\n/* Component with a state */\nexport default class AddChatMessage extends React.Component {\n\tconstructor(props) {\n\t\tsuper(props)\n\t\tthis.state = {message: ''}\n\t}\...
javascript
edit
0
2
mit
f9e14c05bd39985b3a0baad55fb30e51b86e5229
axax/lunuc,axax/lunuc,axax/lunuc
src/components/chat/AddChatMessage.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\nvar lpad = require('lpad');\n\nmodule.exports = function (grunt) {\n\tgrunt.registerMultiTask('concurrent', 'Run grunt tasks concurrently', function () {\n\t\tvar spawnOptions;\n\t\tvar cb = this.async();\n\t\tvar options...
javascript
edit
0
4
mit
a0ffe902f0b63ec6f18d4339f6f0ff767907b3ca
ekashida/grunt-concurrent,nqdy666/grunt-concurrent,jimf/grunt-concurrent,sindresorhus/grunt-concurrent
tasks/concurrent.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/*\n * grunt-contrib-internal\n * http://gruntjs.com/\n *\n * Copyright (c) 2016 Tyler Kellen, contributors\n * Licensed under the MIT license.\n */\n\n'use strict';\n\nmodule.exports = function(grunt) {\n var path = require('path');\n...
javascript
edit
0
5
mit
6b39b5481f6ff63353dd63749006423bb5aa8998
gruntjs/grunt-contrib-internal
tasks/contrib-ci.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar NRS = (function(NRS, $, undefined) {\n\tNRS.forms.setAccountInfoComplete = function(response, data) {\n\t\tvar name = $.trim(String(data.name));\n\t\tif (name) {\n\t\t\t$(\"#account_name\").html(name.escapeHTML());\n\t\t} else {\n\t...
javascript
edit
0
2
mit
bc5c67d28c74bc05d5d4578b230dacb97b7b638e
duckx/nxt,metrospark/czarcraft,duckx/nxt,Ziftr/nxt,Ziftr/nxt,fimkrypto/nxt,metrospark/czarcraft,fimkrypto/nxt,duckx/nxt,fimkrypto/nxt,fimkrypto/nxt,Ziftr/nxt,metrospark/czarcraft
html/tools/js/nrs.modals.accountinfo.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar helper = require('massah/helper')\n\nmodule.exports = (function() {\n var library = helper.getLibrary()\n .given('I enter \\'(.*)\\' in the \\'(.*)\\' field', function(value, field) {\n this.driver.input('*[name...
javascript
edit
0
2
apache-2.0
e0f464f518765d28b95ab32563c5af7b9bef936c
pinittome/pinitto.me,pinittome/pinitto.me,pinittome/pinitto.me
test/steps/forms.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar\n request = require('request'),\n config = require('../../config');\n\nexports.get = function () {\n var query = arguments.length === 2 ? arguments[0] : null;\n var callback = arguments[arguments.length - 1];\n var options = {\...
javascript
edit
0
3
mit
46f34b40c88f5ddb680ae57e9eae14c640224272
web-audio-components/web-audio-components-service
test/helpers/api.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nangular.module('proxtop', ['ngMaterial', 'ngSanitize', 'ui.router', 'angular-progress-arc', 'pascalprecht.translate', 'debounce'])\n .config(['$stateProvider', '$urlRouterProvider', '$translateProvider', '$mdIconProvider', '$logProvi...
javascript
edit
0
1
mit
d42ac5686758deb3d7f05f309b4bc37c612c9c52
kumpelblase2/proxtop,kumpelblase2/proxtop,kumpelblase2/proxtop,kumpelblase2/proxtop
src/ui/app.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nChecklist.MainView = Ember.View.extend({\n tagName: 'section',\n templateName: 'main_view',\n\n classNames: ['main'],\n\n landingColorboxConfig: {\n inline: true,\n transition: 'fade',\n close: 'x',\n opacity: 0.8,\n ...
javascript
edit
0
4
bsd-3-clause
ab6c02edaa802dea6d4ee01ba4f56172d7605802
unepwcmc/cites-checklist,unepwcmc/cites-checklist,unepwcmc/cites-checklist
app/javascripts/views/main_view.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React, { Component } from 'react';\nimport FormInput from '../formInput/formInput';\n\nclass FormEmail extends Component {\n render() {\n const validEmailRegex = /(^[^@\\s]+)@((?:[-a-z0-9]+\\.)+[a-z]{2,})/;\n return (\n ...
javascript
edit
0
2
mit
32eb10c7aa884fb03314be0cd5144064fc977a7d
tal87/operationcode_frontend,hollomancer/operationcode_frontend,tal87/operationcode_frontend,hollomancer/operationcode_frontend,NestorSegura/operationcode_frontend,NestorSegura/operationcode_frontend,OperationCode/operationcode_frontend,tskuse/operationcode_frontend,tal87/operationcode_frontend,tskuse/operationcode_fro...
src/shared/components/form/formEmail/formEmail.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/*!\n * Wef\n * Copyright (c) 2011 Pablo Escalada\n * MIT Licensed\n */\n\n/**\n * wef module\n */\n(function(global) {\n var wef = function() {\n return new wef.prototype.init();\n };\n wef.prototype = {\n constr...
javascript
edit
0
6
mit
6475b88b11ff49d3b880a0f16a7951dcfc06af27
diesire/wef,diesire/wef,diesire/wef
src/wef.core.js
rejected_duplicate
Near-duplicate of sample 72486
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/* LIB */\n\nconst radial = require('../../radial');\nconst authenticate = require('./authenticate');\n\n/* MODULES */\n\nconst xmlConvert = require('xml-js');\n\n/* CONSTRUCTOR */\n\n(function () {\n\n var RiskOrderStatus = {};\n\n /...
javascript
edit
0
6
mit
297921acf811fc8508b5581d4e761403a288f2b8
giftnix/node-radial
lib/webhooks/riskOrderStatus.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst db = require('../db.js');\nconst Sequelize = require('sequelize');\n\nconst getUserIdsGivenSelfIdAndRelationshipType = (selfId, relationshipType) => {\n const queryStr = `SELECT users.id FROM users \n INNER J...
javascript
edit
0
1
mit
1a0fd2be7ec810a6dcc7e88b6ea4e10d91111acf
VictoriousResistance/iDioma,VictoriousResistance/iDioma
server/db/controllers/getUserIdsGivenSelfIdAndRelationshipType.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst applicationConfig = {\n host: 'localhost',\n port: '3000',\n privateUploadDirectory: 'uploads/photos',\n\n getFullHostname() {\n if (this.port !== '443') {\n return `${this.host}:${this.port}`;\n }\n return this....
javascript
edit
0
2
mit
b492eece9208d4ef095984a5c2d989ce76b4a074
Stram/tomato-forum,Stram/tomato-forum
server/config/application.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport express from 'express';\n\nimport * as userController from '../../controllers/users';\nimport * as recipeController from '../../controllers/recipes';\nimport * as favoriteController from '../../controllers/favorites';\n\nimport *...
javascript
edit
0
0
apache-2.0
2327ea2e4d50c978977ae2056f6f878ebaf79666
larrystone/BC-26-More-Recipes,larrystone/BC-26-More-Recipes
server/routes/users/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar get = require('./get'),\n getIn = require('./getIn'),\n assoc = require('./assoc'),\n dissoc = require('./dissoc'),\n assocIn = require('./assocIn'),\n dissocIn = require('./dissocIn'),\n deepMerge = require('./dee...
javascript
edit
0
2
bsd-3-clause
f75ebaf1c11fed59f75180fd3e1b9eb94b93d6e2
pombredanne/sprout,herrstucki/sprout
src/sprout.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n\"use strict\";\n\nmodule.exports = React.createClass({displayName: 'CommentView',\n\n render: function() {\n var comment = this.props.comment;\n if (!comment) {\n return (\n <div>\n ...
javascript
edit
0
3
apache-2.0
3e2df99d90c42d6a877691f763eb4ef6d6cc51a5
Kegsay/github-pull-review,Kegsay/github-pull-review,Kegsay/github-pull-review
lib/components/comment-view.js
accepted
null
true