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//= require ./core\n//= require ./static_config\n//= require_self\n\n(function () {\n\n\tif (!Drop.config.JSON_CONFIG_URL) {\n\t\tthrow Error(\"json_config_url is required!\");\n\t}\n\n\tDrop.fetchConfig = function () {\n\t\tnew Marbles...
javascript
edit
0
5
bsd-3-clause
e938e1b4c4b69b2c82bb94a5799e0b9e1f7c111e
cupcake/files-web,cupcake/files-web
lib/assets/javascripts/config.js
rejected_duplicate
Near-duplicate of sample 79334
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar getDefaultClientConfig = require('./getDefaultClientConfig');\nvar getDefaultProductionClientConfig = require('./getDefaultProductionClientConfig');\nvar getDefaultServerConfig = require('./getDefaultServerConfig');\nvar getDefaultP...
javascript
edit
0
3
mit
46aa363fc65f53ce53a131365ba77aab9b60fc1b
reddit/node-build
lib/configs/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports = function (grunt) {\n\tgrunt.registerTask('compileAssetsProd', [\n 'compileAssets'\n // 'requirejs:prod'\n\t]);\n}\n\n```\n\nApply this change: Revert \"Stopped minification because something isn't working.\"\n\nTh...
javascript
edit
0
1
mit
63a46ff988682b99b8839a7a214b776b8a53756a
wallaceicy06/Betrayal,wallaceicy06/Betrayal,wallaceicy06/Betrayal
tasks/register/compileAssetsProd.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports = function(config) {\n var configuration = {\n\n client: {\n captureConsole: false\n },\n\n plugins: [\n 'karma-chai',\n 'karma-sinon',\n 'karma-mocha',\...
javascript
edit
0
2
mit
93cfb36fe3b4d1f85180976eb0ffeb76005bb4b5
vitorabner/decoraki,vitorabner/decoraki
karma.conf.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport yargs from 'yargs';\n\nexport default {\n /**\n * Task name\n * @type {String}\n */\n name: 'sitecore:copy-sitecore-libraries',\n\n /**\n * Task description\n * @type {String}\n */\n description: 'Copy the sitecor...
javascript
edit
0
7
mit
0c16aa7292869084d74505303433a3b7de4a89c4
jscarmona/gulp-ignite-sitecore
src/tasks/copy-sitecore-libraries.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst worker = new Worker('worker.js');\nworker.addEventListener('message', function (event) {\n document.getElementById('output').textContent = event.data;\n});\n\nconst sharedBuffer = new SharedArrayBuffer(Int32Array.BYTES_PER_ELEM...
javascript
edit
0
1
mit
5e109a226cd3d7cfc1f1214c6eff19c9097dbd54
rauschma/shared-array-buffer-demo,rauschma/shared-array-buffer-demo
main.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar _ = require('lodash');\n\nvar Promise = require('../utils/promise');\nvar BookPlugin = require('./plugin');\n\n\n/*\nPluginsManager is an interface to work with multiple plugins at once:\n- Extract assets from plugins\n- Call hooks ...
javascript
edit
0
4
apache-2.0
2375296e67cf813db2076877ba64c0d3dfae2b3f
GitbookIO/gitbook,tshoper/gitbook,gencer/gitbook,gencer/gitbook,ryanswanson/gitbook,tshoper/gitbook,strawluffy/gitbook
lib/plugins/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports = function(config) {\n\n var karma = {\n frameworks: ['jasmine'],\n files: [\n 'test/*.spec.js',\n 'src/js/model.js',\n 'src/js/view.js',\n 'src/js/presenter.js'\n ],\n port: 9876,\n co...
javascript
edit
0
2
mit
1094b73841156659a810911cd97bcef1f2f1e81d
kefir500/onay,kefir500/onay
karma.conf.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar document = {\n\tcreateElement: function(tag) {\n\t\treturn {\n\t\t\tappendChild: function() {},\n\t\t\tgetElementsByTagName: function() { return []; },\n\t\t\tgetAttribute: function() {}\n\t\t}\n\t},\n\tcreateComment: function(s) { ...
javascript
edit
0
1
mit
d865bfc1b17f58cfe0c6a57feb78d53c5dc9484f
pzavolinsky/react-unit,pzavolinsky/react-unit
lib/sizzle-bundle.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar get_system_locale_name = require('../build/Release/get_system_locale_name')\n\nmodule.exports.__defineGetter__('name', function getSystemLocaleName() {\n var systemLocaleName = get_system_locale_name()\n return parseLocaleName(sys...
javascript
edit
0
8
isc
12a68c52bd111f9422ea287277fb4e6ceb0bdb8e
execjosh/node-system-locale,execjosh/node-system-locale,execjosh/node-system-locale
lib/system-locale.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst { ipcRenderer } = require('electron');\nconst uuidV1 = require('uuid/v1');\n\nclass Notification {\n static permission = 'granted';\n\n constructor(title = '', options = {}) {\n this.title = title;\n this.options = options...
javascript
edit
0
3
apache-2.0
a991a961f624219b393fbae116cc0343bdb5e799
meetfranz/franz,meetfranz/franz,GustavoKatel/franz,GustavoKatel/franz,meetfranz/franz
src/webview/notifications.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\n// FUNCTIONS //\n\nvar ln = Math.log;\n\n\n// WEIGHT TF-IDF //\n\n/**\n* Weights a document-term matrix by\n* term frequency - inverse document frequency.\n*\n* @param {Object} dtm - input document-term matrix\n* @retur...
javascript
edit
0
8
mit
af3f8e3693427246cd234e3db6eeca2d85bd3ad0
Planeshifter/text-miner
lib/weight_tf_idf.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst path = require('path');\nconst fs = require('fs');\n// eslint-disable-next-line camelcase\nconst child_process = require('child_process');\n\nasync function doPostInstall() {\n try {\n fs.statSync(path.join(__dirname, '../lib/...
javascript
edit
0
2
apache-2.0
95bfe08ce8be2cdb78a31afd6590028da890ffb2
matrix-org/matrix-appservice-bridge,matrix-org/matrix-appservice-bridge,matrix-org/matrix-appservice-bridge
hooks/postinstall.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// Checks if inheritance list of the given group is not circular.\n// Returns (via a callback) ObjectID of the group whree the circularity appears.\n//\n\n\n'use strict';\n\n\nvar _ = require('lodash');\n\n\nmodule.exports = function de...
javascript
edit
0
3
mit
2f0311a77c51efa68bc6f6ec4624ed69b533a152
nodeca/nodeca.users
server/admin/users/usergroups/_lib/detect_circular.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst path = require('path');\nconst execa = require('execa');\nconst errorHandler = require('./errorHandler');\n\nmodule.exports = function runGulp() {\n execa(\n 'node',\n [\n path.join(__dirname, '../../node_modules/.bin/...
javascript
edit
0
2
mit
de74044a40d70c097f146f3c726aa4f16984752d
strt/bricks
lib/utils/runGulp.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nTemplate.register.events({\n 'submit #register-form': function(e, t) {\n e.preventDefault();\n\n var isValidPassword = function(val, field) {\n if (val.length >= 6) {\n return true;\n } else {\n return fal...
javascript
edit
0
2
mit
3b976ed4f4b0965cbfb21678243b33ffd4c0ce04
blumug/georges,blumug/georges,blumug/georges
client/views/application/register.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nfunction getAuth() {\n $.ajax({\n url: \"/users/sign_in\",\n type: \"get\",\n }).done(function(signin_response) {\n $(\".modal-1-inner\").append(signin_response);\n });\n\n $.ajax({\n url: \"/users/sign_up\",\n type: ...
javascript
edit
0
1
mit
2ee7bbf60f970ac616eabc321af5616ab781c322
costolo/chain,costolo/chain,costolo/chain
app/assets/javascripts/getAuth.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React from \"react\";\nimport { ClipLoader } from \"halogenium\";\nimport { Icon } from \"../../base\";\nimport { getTaskDisplayName } from \"../../utils\";\n\nconst JobStep = ({ step, isDone }) => {\n\n let hasBar;\n let s...
javascript
edit
0
10
mit
a0262424ad9cd39d84e7b3bf5c8af46a98a9e40a
virtool/virtool,igboyes/virtool,igboyes/virtool,virtool/virtool
client/src/js/jobs/components/Step.js
rejected_duplicate
Near-duplicate of sample 80537
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar bind_sortable = function() {\n $('.sortable').sortable({\n dropOnEmpty: true,\n stop: function(evt, ui) {\n var data = $(this).sortable('seria...
javascript
edit
0
1
mit
ad3c53abfdf813de01eeaf7021e001194cb3cbe8
drakontia/publify,babaa/foodblog,SF-WDI-LABS/publify_debugging_lab,burakicel/Burakicel.com,burakicel/Burakicel.com,totzYuta/coding-diary-of-totz,mozzan/publify,leminhtuan2015/nginx_capuchino_rails,SF-WDI-LABS/publify_debugging_lab,solanolabs/publify,nguyenduyta/deploy-test,leminhtuan2015/nginx_capuchino_rails,hmallett/...
app/assets/javascripts/sidebar.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n * Copyright JS Foundation and other contributors, http://js.foundation\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 obta...
javascript
edit
0
1
apache-2.0
f7d2314d64eb0af5fa0db9f9af942da462531fb5
mw75/node-red,mw75/node-red,btsimonh/node-red,node-red/node-red,btsimonh/node-red,namgk/node-red,node-red/node-red,mw75/node-red,node-red/node-red,btsimonh/node-red,namgk/node-red,mw75/node-red
test/editor/pageobjects/nodes/core/sequence/17-split_page.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/* Hover Image Replacement Plug-in for jQuery\n * \n * Authors: \n * Sam Moore - <EMAIL>\n *\n * Adds a query function to swap the 'src' attribute\n * of the given img tag to a desired URL on hover.\n *\n */\n\n(function ( $ ) {\n\n ...
javascript
edit
0
1
mit
5ff7401a2989043252958160d6808cbded556f27
sammoore/hover-img-jquery
js/jquery.hoverImg.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nvar gulp = require('gulp');\nvar browserSync = require('browser-sync');\nvar browserSyncSpa = require('browser-sync-spa');\n\nvar util = require('util');\n\nvar middleware = require('./proxy');\n\nmodule.exports = funct...
javascript
edit
0
6
mit
2d7464f60dfee0a4edf015302c678c050be3179b
aitnasser/jangouts,ChrisBr/jangouts,jangouts/jangouts,ChrisBr/jangouts,jangouts/jangouts,ChrisBr/jangouts,ChrisBr/jangouts,jangouts/jangouts,jangouts/jangouts,aitnasser/jangouts,aitnasser/jangouts,aitnasser/jangouts
gulp/server.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nif (Handlebars) {\n Handlebars.registerHelper('pathFor', function (routeName, context, options) {\n\n if (arguments.length == 2) {\n options = context;\n context = this;\n }\n\n var params = this;\n var hash = opt...
javascript
edit
0
2
mit
be145a639ee4050521482f5c416844a0fc32715b
appoets/iron-router,leoetlino/iron-router,assets1975/iron-router,Aaron1992/iron-router,iron-meteor/iron-router,tianzhihen/iron-router,TechplexEngineer/iron-router,sean-stanley/iron-router,ecuanaso/iron-router,DanielDornhardt/iron-router-2,DanielDornhardt/iron-router-2,firdausramlan/iron-router,appoets/iron-router,sean-...
lib/client/helpers.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/** @babel */\n\ndescribe('About', () => {\n let workspaceElement\n\n beforeEach(() => {\n workspaceElement = atom.views.getView(atom.workspace)\n\n waitsForPromise(() => {\n return atom.packages.activatePackage('about')\n ...
javascript
edit
0
1
mit
7157187c07cc3b7771929c77fc10ef4915501e2f
mnquintana/atom-about,atom/about
spec/about-spec.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nvar debug = require('debug')('modules:search-torrents');\nvar async = require('async');\nvar pad = require('pad');\n\nmodule.exports = function (synologyOptions, destPath, downloadEpisodes, options, done) {\n var synol...
javascript
edit
0
4
mit
06ed4389b4f39b963b6a2ad02aa2961f78e29505
Gobie/tor
modules/download-torrents.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nangular.module('bolt.profile', ['bolt.auth'])\n\n.controller('ProfileController', function ($scope, Auth, Profile) {\n $scope.user = {};\n $scope.newInfo = {};\n\n var getUserInfo = function () {\n Profile.getUser()\n .then(fun...
javascript
edit
0
2
mit
b59bbe7b040337f0ac18f99eb4dcd57422a2b163
thomasRhoffmann/Bolt,boisterousSplash/Bolt,gm758/Bolt,elliotaplant/Bolt,thomasRhoffmann/Bolt,gm758/Bolt,elliotaplant/Bolt,boisterousSplash/Bolt
client/app/controllers/profile.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React from 'react'\nimport Page from 'components/Page'\n\nimport Breadcrumbs from 'components/Breadcrumbs'\nimport ReportTable from 'components/ReportTable'\n\nimport API from 'api'\nimport {Report} from 'models'\n\nexport defaul...
javascript
edit
0
1
mit
48d934bbdec146deb7c56ad7c5b85551a648679f
NCI-Agency/anet,NCI-Agency/anet,NCI-Agency/anet,NCI-Agency/anet,NCI-Agency/anet
client/src/pages/reports/Index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nclass MCShowSampleComponentController {\n /*@ngInject*/\n constructor($stateParams, samplesService, toast, $mdDialog) {\n this.projectId = $stateParams.project_id;\n this.samplesService = samplesService;\n thi...
javascript
edit
0
2
mit
04a105ad84d36f040234b5d1d53d93566a17bb9b
materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org
website/src/app/global.components/mc-show-sample.component.js
rejected_duplicate
Near-duplicate of sample 86821
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\ndefine(function(require) {\n 'use strict';\n\n var $ = require('jquery');\n var BaseComponent = require('oroui/js/app/components/base/component');\n var CheckConnectionView = require('../views/check-connection-view');\n v...
javascript
edit
0
6
mit
6876eeb1105025becb9394d1359ce70f946830d7
ramunasd/platform,Djamy/platform,trustify/oroplatform,trustify/oroplatform,geoffroycochard/platform,ramunasd/platform,orocrm/platform,trustify/oroplatform,Djamy/platform,geoffroycochard/platform,orocrm/platform,orocrm/platform,ramunasd/platform,geoffroycochard/platform,Djamy/platform
src/Oro/Bundle/ImapBundle/Resources/public/js/app/components/check-connection-component.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports = (function uris() {\n\n\treturn {\n\t\tlogin : 'https://%s/cgi/login.cgi'\n\t\t, webstart : 'http://%s/cgi/url_redirect.cgi?url_name=sess_%s&url_type=jwsk'\n\t}\n\t\n})()\n\n```\n\nApply this change: Update webstart URL ...
javascript
edit
0
1
mit
4fb5660202c3c03e60821990c5f16619bb9a6c56
emilyrose/ikvmlol
lib/uri.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nangular.module('app.serviceInstance').controller('ServiceInstanceDeleteCtrl', ['$scope', '$modalInstance', '$log', 'serviceInstance', 'serviceInstanceService', 'messageService', function($scope, $modalInstance, $log, serviceInstance, se...
javascript
edit
0
1
apache-2.0
1b3adfd987f45312f9a0d10a458c037baedb0b9f
icclab/cf-webui,icclab/cf-webui
src/app/components/serviceInstance/serviceInstanceDeleteCtrl.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nif (history && history.pushState) {\n $(document).ready(function(){\n\n $('#photo_gallery').on(\"click\", \".pagination a[href]\", function() {\n $.getScript(this.href);\n history.pushState(null,\"\",this...
javascript
edit
0
1
mit
23b510a9c0a7252b5cf2989ca8d273e34b348468
Matho/refinerycms-photo-gallery,Matho/refinerycms-photo-gallery,Matho/refinerycms-photo-gallery
app/assets/javascripts/refinery/photo_gallery/photo_gallery.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar uuid = require('node-uuid')\n\nmodule.exports = {\n\tgenerateQueryString: function(data) {\n\t\tvar ret = [];\n\t\tfor (var d in data)\n\t\tif (data[d])\n\t\tret.push(encodeURIComponent(d) + \"=\" + encodeURIComponent(data[d]));\n\t...
javascript
edit
0
12
mit
9426cc60ec374e7ffb3e70bac1900857b4e8a265
Flieral/Logger-Service
public/utility.js
rejected_complexity
Cyclomatic complexity too high: 12
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst ALL_COMPILERS = ['clang-3.8', 'clang-3.9', 'clang-4.0', 'clang-5.0',\n 'clang-6.0', 'clang-7.0', 'clang-7.1', 'clang-8.0', 'clang-9.0',\n 'clang-10.0', 'clang-11.0', 'clang-12.0', 'gcc-5.5', 'gcc-6.4', 'gcc-6.5', 'gcc-7.2', ...
javascript
edit
0
0
bsd-2-clause
ea7f952fe90fe05965348cbd57bf4109b2e0afb7
FredTingaud/quick-bench-front-end,FredTingaud/quick-bench-front-end,FredTingaud/quick-bench-front-end
components/DefaultSettings.js
rejected_duplicate
Near-duplicate of sample 95415
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict'\n\nconst cleanStack = require('clean-stack')\n\nfunction createProcessExit (log) {\n function processExit (err) {\n if (!err) return process.exit()\n\n const {stack, message, code = 1} = err\n\n log.error(message ...
javascript
edit
0
4
mit
76927f91a4b53862c2d90822cf7607dc0b2e4038
windtoday/windtoday-core,windtoday/windtoday-core
core/util/create-process-exit.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport { moduleForModel, test } from 'ember-qunit';\n\nmoduleForModel('<%= name %>', 'Unit | Serializer | <%= name %>', {\n // Specify the other units that are required for this test.\n needs: [\n 'serializer:<%= name %>',\n 'tr...
javascript
edit
null
null
mit
d8964ba7d2e1af3442dddf1d44568967e94cbb3e
Flexberry/ember-flexberry,Flexberry/ember-flexberry,Flexberry/ember-flexberry,Flexberry/ember-flexberry
blueprints/flexberry-model/files/tests/unit/serializers/__test__.js
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "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 * @format\n * @flow strict-local\n */\n\n...
javascript
edit
null
null
mit
e81c1e3c7a5300652c7d32f0e5ed1ee6324171a5
arthuralee/react-native,pandiaraj44/react-native,myntra/react-native,janicduplessis/react-native,exponent/react-native,pandiaraj44/react-native,facebook/react-native,facebook/react-native,hammerandchisel/react-native,hammerandchisel/react-native,exponent/react-native,exponent/react-native,hoangpham95/react-native,expon...
Libraries/Utilities/HMRLoadingView.ios.js
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```javascript\n$(document).ready(function() {\n\n $('#login-link').on('click', function(event) {\n event.preventDefault();\n var $target = $(event.target);\n\n $.ajax({\n type: 'GET',\n url: $target.attr('href'),\n dataType: '...
javascript
edit
null
null
mit
92e9c53b715b8ba5e004bbceec73c3181726acae
SputterPuttRedux/phase_3_audition,SputterPuttRedux/phase_3_audition
public/js/application.js
rejected_code_smell
Internal duplication: ~32% of the file is inside repeated 12+ line blocks
null
[ { "role": "user", "content": "Here is the current file:\n```javascript\nexport class ExperimentStep {\n constructor(title, _type) {\n this.id = '';\n this.title = title;\n this._type = _type;\n this.steps = [];\n this.description = '';\n this.flags = {\n ...
javascript
edit
0
1
mit
81746ec53efc0627821c0556e74a1cb46fe5dc52
materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org
website/src/app/project/experiments/experiment/experiment.model.js
rejected_duplicate
Near-duplicate of sample 87399
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nfunction NotificationDirective() {\n var directive = {\n restrict: 'EA',\n templateUrl: 'notifications/notificationsDirective.tpl.html',\n controller: NotificationDirectiveCtrl,\n controllerAs: 'vm',\n bindToController: ...
javascript
edit
0
1
mit
f47581717f1d0a26a1cc52093b0de49f2214522d
pathwar/portal.pathwar.net
app/notifications/NotificationsDirective.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/*\n * Copyright 2015 Samsung Electronics Co., Ltd.\n * \n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License...
javascript
edit
0
4
apache-2.0
a9b1ff7233f4d9625ef637ce2c46ee8cae889965
Samsung/grunt-cordova-sectv
tasks/sectv-build.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n * Using esprima JS parser to parse AST\n * @lastmodifiedBy ChengFuLin(<EMAIL>)\n * @lastmodifiedDate 2015-07-27\n */\n/** Import esprima module */\nvar esprima = require('esprima');\n\n/**\n * JS parser\n * @constructor\n */\nfun...
javascript
edit
0
4
mit
499fb717ca568ba87ac48b282bc8dd7e37082281
chengfulin/dujs,chengfulin/dujs
lib/dujs/jsparser.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar messages = {\n warningReset: {\n 'en': 'Are you sure you want to reset the game?\\n\\nYour saved progress will be lost and you\\'ll be sent to the start of the game.',\n 'de': 'Bist su sicher, dass du das Spiel zur&uuml;ckset...
javascript
edit
0
0
mit
abb8bcf23fbbc3a0cd2f880ab6a817197a160114
start/flexboxfroggy,sunsheeppoplar/flexboxfroggy,start/flexboxfroggy,thomaspark/flexboxfroggy,thomaspark/flexboxfroggy,sunsheeppoplar/flexboxfroggy
js/messages.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\ndefine(['constants', 'storage','tabs'], function(C, storage, tabs){\n 'use strict';\n\n function init() {\n\n $(window).keydown(function(e){\n switch(e.which){\n case C.KEYCODES.T:\n if(e.ctrlKey)\n ...
javascript
edit
0
9
mit
e07c357ed2167832ce1ede4e2e3566a5f7d9a25f
samlanning/leaf-browser,samlanning/leaf-browser
js/keybindings.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst { expect } = require('chai');\nconst request = require('supertest');\nconst app = require('../app');\n\n\ndescribe('Pages', function() {\n let req;\n\n describe('/', function() {\n beforeEach(function() {\n req = request...
javascript
edit
0
1
mit
435c2d7ebf42e1fbb8539ccb250730aac3b57b3e
slavapavlutin/pavlutin-node,slavapavlutin/pavlutin-node
test/pages-test.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport request from 'supertest';\nimport test from 'tape';\n\nimport app from '../server';\n\ntest('Should leftpad correctly', t => {\n request(app)\n .get('?str=paddin%27%20oswalt&len=68&ch=@')\n .expect(200)\n ...
javascript
edit
0
2
mit
f9dd11a3157120914d1fa7595a1a7854ac493dbc
melonmanchan/left-pad-services,melonmanchan/left-pad-services,melonmanchan/left-pad-services,melonmanchan/left-pad-services,melonmanchan/left-pad-services,melonmanchan/left-pad-services,melonmanchan/left-pad-services,melonmanchan/left-pad-services
node/test/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n\nmodule.exports = exports;\n\nvar url = require('url')\n\nmodule.exports.detect = function(to,config) {\n var uri = url.parse(to);\n var url_paths = uri.hostname.split('.');\n config.prefix = (!uri.pathname || uri.pathname == ...
javascript
edit
0
8
bsd-3-clause
c2f765c25abc17e9a27cce9ff27b7886ecb9e6e9
mojodna/node-pre-gyp,fengmk2/node-pre-gyp,hybridgroup/node-pre-gyp,hybridgroup/node-pre-gyp,etiktin/node-pre-gyp,mojodna/node-pre-gyp,fengmk2/node-pre-gyp,etiktin/node-pre-gyp,fengmk2/node-pre-gyp,synthetos/node-pre-gyp,hybridgroup/node-pre-gyp,mapbox/node-pre-gyp,fengmk2/node-pre-gyp,mojodna/node-pre-gyp,mojodna/node-...
lib/util/s3_setup.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n//upload to s3 task\nmodule.exports = {\n options: {\n accessKeyId: '<%= AWS_ACCESS_KEY_ID %>',\n secretAccessKey: '<%= AWS_SECRET_KEY %>',\n region: '<%= AWS_REGION %>'\n },\n staging: {\n options: ...
javascript
edit
0
0
bsd-3-clause
ed9c1dd93ceb55cf40d0c04bdeca14a1aac94389
TBAPI-0KA/vizabi,sergey-filipenko/vizabi,buchslava/vizabi,Rathunter/vizabi,Gapminder/vizabi,jdk137/vizabi,Rathunter/vizabi,acestudiooleg/vizabi,homosepian/vizabi,logicerpsolution/vizabi,jdk137/vizabi,TBAPI-0KA/vizabi,homosepian/vizabi,logicerpsolution/vizabi,maximhristenko/vizabi,Gapminder/vizabi,alliance-timur/vizabi,...
grunt/config/aws_s3.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React, { Component } from 'react';\nimport {Topbar} from '../common';\nimport Chatbody from './body/Chatbody';\nimport './styles.css';\n\nclass Chat extends Component {\n render() {\n return (\n <div classNam...
javascript
edit
0
2
mit
344b530c05a306501f251b06bf4d6adcbb395f62
dimkarakostas/unimeet,dimkarakostas/unimeet,dimkarakostas/unimeet,dimkarakostas/unimeet
frontend/src/components/chat/Chat.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nFamousFramework.scene('famous-tests:physics:basic:particle', {\n behaviors: {\n '.particle': {\n 'size': [200, 200],\n 'align': [0.5, 0.5],\n 'mount-point': [0.5, 0.5],\n 'style': {\...
javascript
edit
0
1
mit
9e6a0dfb84c46e82a36824176aa0aa9577ff5bab
infamous/framework,SvitlanaShepitsena/shakou,KraigWalker/framework,tbossert/framework,SvitlanaShepitsena/shakou,infamous/famous-framework,KraigWalker/framework,jeremykenedy/framework,SvitlanaShepitsena/remax-banner,jeremykenedy/framework,Famous/framework,SvitlanaShepitsena/framework-1,SvitlanaShepitsena/remax-banner,co...
lib/core-components/famous-tests/physics/basic/particle/particle.js
rejected_duplicate
Near-duplicate of sample 70312
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nexport default /* glsl */`\n#ifdef USE_SKINNING\n\n\tuniform mat4 bindMatrix;\n\tuniform mat4 bindMatrixInverse;\n\n\t#ifdef BONE_TEXTURE\n\n\t\tuniform sampler2D boneTexture;\n\t\tuniform int boneTextureSize;\n\n\t\tmat4 getBoneMatrix(...
javascript
edit
0
0
mit
e1827b1e37037627a8f2f136e72dad62c6a23f1e
donmccurdy/three.js,fyoudine/three.js,06wj/three.js,gero3/three.js,mrdoob/three.js,TristanVALCKE/three.js,fraguada/three.js,fraguada/three.js,Samsy/three.js,WestLangley/three.js,fraguada/three.js,Itee/three.js,Samsy/three.js,zhoushijie163/three.js,aardgoose/three.js,sherousee/three.js,greggman/three.js,Samsy/three.js,f...
src/renderers/shaders/ShaderChunk/skinning_pars_vertex.glsl.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// ==UserScript==\n// @name Garmin Connect Course export\n// @namespace http://schlueters.de/garmin-connect-course-export\n// @description Export courses from the Garmin Connect web site \n// @include https://connec...
javascript
edit
0
2
mit
3c24e308650fb30adfaf16fb7fafed6e59d4fddb
johannes/garmin-connect-gmscripts
garmin-connect-course-export.user.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nrequire({\n baseUrl: '/src'\n}, [ 'html-janitor' ], function (HTMLJanitor) {\n var janitor = new HTMLJanitor({\n tags: {\n p: []\n }\n });\n\n var p = document.createElement('p');\n p.setAttribute('style', 'font-size: 16...
javascript
edit
0
1
apache-2.0
0f59fd4d01b16b1556fcd3cc6b741d9b9243a563
guardian/html-janitor,mixmaxhq/html-janitor,mixmaxhq/html-janitor
example.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nclass React3Module {\n constructor() {\n this.userData = {};\n }\n\n setup(react3RendererInstance) { // eslint-disable-line no-unused-vars\n\n }\n\n update() {\n\n }\n\n dispose() {\n\n }\n}\n\nexport default React3Module;\n\...
javascript
edit
0
1
mit
a5ef5507a74a4b9f337303f2028d368d63948188
toxicFork/react-three-renderer
src/Module.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\n(function (window, document) {\n\n //import(\"pathformer.js\");\n //import(\"vivus.js\");\n\n if (typeof define === 'function' && define.amd) {\n // AMD. Register as an anonymous module.\n define([], function()...
javascript
edit
0
4
mit
5ddb3487b9c8228971ffec9a1ff9b7f9198db053
maxwellito/vivus,maxwellito/vivus
src/_build.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/** @jsx React.DOM */\n\nvar React = require('react');\n\nvar View = React.createClass({\n\n render: function() {\n return (\n <header className=\"navigation-bar\">\n <button className=\"logo\"></button>\n <button...
javascript
edit
0
1
mit
cbeeb2dd02507d2ef3f0f06c5fc1f4aa93d18f4f
tddbin/tddbin-frontend,tddbin/tddbin-frontend,tddbin/tddbin-frontend
src/navigation-bar/navigation-bar-view.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React from \"react\";\nimport { map, sortBy } from \"lodash-es\";\nimport { Row, Col, ListGroup, ListGroupItem, Panel } from \"react-bootstrap\";\n\nimport { LoadingPlaceholder } from \"../../base\";\n\nexport default function Re...
javascript
edit
0
5
mit
1bd6cda17ff9a5e962e22e7304f6224c275bb8b9
igboyes/virtool,virtool/virtool,virtool/virtool,igboyes/virtool
client/src/js/indexes/components/History.js
rejected_duplicate
Near-duplicate of sample 75762
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\n// flatten arbitrarily nested array\n// data NestedList a = Elem a | List [NestedList a]\n// flatten :: NestedList a -> [a]\nmodule.exports = function flatten(arr) {\n const _flatten = function(p, c) {\n if (Array.i...
javascript
edit
0
2
isc
91372671b5420677d26d2b22573601841c0554ff
zeusdeux/random
flatten.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n * Copyright (c) 2015-present, Alibaba Group Holding Limited.\n * All rights reserved.\n *\n * @providesModule ReactStatusBar\n */\n\n'use strict';\n\nvar emptyFunction = function() {};\n\nvar StatusBar = {\n setHidden: emptyFunct...
javascript
edit
0
1
bsd-3-clause
4d082b36391dd1a63e9f1e5766fb8f8f8d1cce4a
taobaofed/react-web
Libraries/StatusBar/StatusBar.web.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nVIRTUAL_DEP_IDS = ['\\0helper'];\n\nmodule.exports = {\n name: 'virtual-dep-injector',\n resolveId: (importee, importer) => {\n if (VIRTUAL_DEP_IDS.indexOf(importee) !== -1) return importee;\n },\n load: (id) => ...
javascript
edit
0
3
mit
15e77023c63e137b39671fe49cecc36d48505565
suluke/express-middleware-rollup
test/integration/virtual-bundle-dependencies/rollup-plugin.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nvar helpers = require('../helpers'),\n yaml = require('js-yaml'),\n fs = require('fs'),\n path = require('path');\n\nvar properties = yaml.safeLoad(fs.readFileSync(path.join(__dirname, '../../data', 'properties...
javascript
edit
0
6
mit
cfc02d17336c4b4b175da03961fb557fd27e4054
sasstools/sass-lint,srowhani/sass-lint,DanPurdy/sass-lint,flacerdk/sass-lint,bgriffith/sass-lint,sktt/sass-lint,sasstools/sass-lint,srowhani/sass-lint
lib/rules/no-misspelled-properties.js
rejected_duplicate
Near-duplicate of sample 67600
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst Base = require('yeoman-generator').Base;\nconst yarnInstall = require('yarn-install');\n\nclass ESLintGenerator extends Base {\n install() {\n yarnInstall([\n 'babel-core',\n 'babel-eslint',\n 'babel-preset-reac...
javascript
edit
0
1
mit
a923154f318749499b960b0445fbd7ea2939e7d0
bamlab/generator-rn-toolbox,bamlab/generator-rn-toolbox,bamlab/generator-rn-toolbox
generators/eslint/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/* global angular */\nimport {web3, Chess} from '../../contract/Chess.sol';\nangular.module('dappChess').controller('InitializeGameCtrl',\n function ($rootScope, $scope, accounts) {\n $scope.availableAccounts = accounts.availableAcc...
javascript
edit
0
2
mit
5a49022aec416c40a125c3bf0afaee037e266372
ise-ethereum/on-chain-chess,ise-ethereum/on-chain-chess
app/javascript/initializeGame.js
rejected_duplicate
Near-duplicate of sample 67523
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\n// Load our modules\nconst logger = __require('libs/log'),\n task = __require('libs/task'),\n queue = __require('libs/queue');\n\n// General task file handling\nmodule.exports = function(options) {\n\n // Doe...
javascript
edit
0
3
apache-2.0
fb155a672f34b12c5dd1bac323b8110b9d74f21e
transmutejs/core
app/libs/action/sources/tasks.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nangular.module('sparrow')\n.controller('TimedCtrl', function() {\n //data is the information send when a template is added.\n this.data= {};\n this.userId = 'xyz';\n //workout contain template created by user.\n this.workout = [];\...
javascript
edit
0
3
mit
e3ab4b78608aa380fead9b7d01c5e36fec789835
TeamSparrows/sparrow,Ankit09osr/sparrow,Ankit09osr/sparrow,TeamSparrows/sparrow
client/components/timed.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React from 'react';\n\nclass UserSelect extends React.Component {\n constructor(props) {\n super(props);\n\n this.defaultValue = 'unassigned';\n\n this.state = {\n selectedUserId: this.defaultValue\n };\n\n t...
javascript
edit
0
2
mit
bca55b6f5b4461fb9b61461bcab5351f32413e4d
paulgrock/image-scanner
pages/user-select.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n#!/usr/bin/env node\nrequire('ts-node').register()\n\nconst latexCommands = require('../src/latexCommands')\nconst mathSvg = require('../server/mathSvg')\nconst fs = require('fs')\nconst util = require('util')\n\nPromise.all(\n latex...
javascript
edit
0
2
mit
7b874cf8403bb4a8be476637ff4e922dc9519291
digabi/rich-text-editor,digabi/rich-text-editor,digabi/math-editor,digabi/math-editor,digabi/rich-text-editor
scripts/createMathSvg.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst path = require('path');\n\nmodule.exports = {\n rootDir: path.resolve(__dirname, '../..'),\n moduleFileExtensions: ['js', 'jsx', 'ts', 'tsx'],\n moduleDirectories: ['node_modules', '<rootDir>/src', '<rootDir>'],\n testRegex: S...
javascript
edit
0
0
mit
7c79e5959ef7b2daa9d66264104c27152ee5381b
thegazelle-ad/gazelle-front-end,thegazelle-ad/gazelle-server,thegazelle-ad/gazelle-server,thegazelle-ad/gazelle-server,thegazelle-ad/gazelle-front-end,thegazelle-ad/gazelle-server,thegazelle-ad/gazelle-server
__tests__/config/jest.base.config.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n////////////////////////////////////////////////////////////////////\n// SourceCollectionView displays all of the sources available //\n// on the Juxta server and displays them in a compelling way. //\n// ...
javascript
edit
0
1
bsd-3-clause
842452593b66d8cc427b2030e5c1ac1d0511f3eb
Swarthmore/juxtaphor,Swarthmore/juxtaphor
dev/_/components/js/sourceCollectionView.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/*\n * Copyright 2016 Resin.io\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://...
javascript
edit
0
1
apache-2.0
1faa631f890af1f19c7f8a0cdedcc04294091a44
resin-io/etcher,cedricve/etcher,resin-io/etcher,fedealconada/resin-etcher,resin-io/resin-etcher,fedealconada/resin-etcher,resin-io/resin-etcher,resin-io/etcher,resin-io/etcher,cedricve/etcher,resin-io/herostratus,cedricve/etcher,resin-io/herostratus,resin-io/etcher
lib/src/drives.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n\n(function() {\n 'use strict';\n\n /**\n * Controller for the gw app root view -- handles header bar and search bar logic\n */\n /* ngInject */\n function RootController($log, $state, Geocoder) {\n\n var ctl ...
javascript
edit
0
3
mit
5deb16993192b5461e1f54b50b03b1850f09294b
azavea/mos-greenworks,azavea/mos-greenworks
app/scripts/views/root/root-controller.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/*************************************************\n * Copyright (c) 2015 Ansible, Inc.\n *\n * All Rights Reserved\n *************************************************/\n\nexport default\n angular.module('rbacUiControl', [])\n ...
javascript
edit
0
2
apache-2.0
fcd899d7bc1d18513b1d9a9ee05d83b28218d19d
snahelou/awx,wwitzel3/awx,snahelou/awx,snahelou/awx,wwitzel3/awx,wwitzel3/awx,wwitzel3/awx,snahelou/awx
awx/ui/client/src/shared/rbacUiControl.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// Copyright (c) 2011 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n/**\n * TestFixture for search engine manager WebUI testing.\n...
javascript
edit
0
1
bsd-3-clause
f396701c65877b3c4a6f262f6623ddf042d4436f
adobe/chromium,adobe/chromium,gavinp/chromium,adobe/chromium,yitian134/chromium,adobe/chromium,ropik/chromium,gavinp/chromium,ropik/chromium,gavinp/chromium,yitian134/chromium,adobe/chromium,adobe/chromium,yitian134/chromium,gavinp/chromium,yitian134/chromium,adobe/chromium,yitian134/chromium,ropik/chromium,adobe/chrom...
chrome/browser/ui/webui/options/search_engine_manager_browsertest.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/* eslint-disable global-require */\n/* global window */\nimport { createStore, applyMiddleware, combineReducers } from 'redux';\nimport createSagaMiddleware from 'redux-saga';\nimport { isTest } from 'worona-deps';\nimport { reduxReact...
javascript
edit
0
2
mit
f24920c0f7055412ed535283472d1e77fb76c082
worona/worona,worona/worona-dashboard,worona/worona,worona/worona-core,worona/worona-dashboard,worona/worona-core,worona/worona
client/packages/core-dashboard-worona/src/dashboard/build-dashboard-extension-worona/store/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nfunction(doc) {\n if (doc.doc_type == \"CommCareUser\" && doc.location_id) {\n emit([doc.location_id, doc._id], null);\n }\n}\n\n```\n\nApply this change: Add web users to users_by_location_id view" }, { "role": "as...
javascript
edit
0
7
bsd-3-clause
6901c87e790f23db5ba27f388590d35aa6fdd68f
qedsoftware/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,qedsoftware/commcare-hq,dimagi/commcare-hq,qedsoftware/commcare-hq,dimagi/commcare-hq,qedsoftware/commcare-hq,dimagi/commcare-hq,qedsoftware/commcare-hq
corehq/apps/locations/_design/views/users_by_location_id/map.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar socket = io('http://localhost:13374');\nvar elems = document.getElementsByClassName(\"status\");\n\nsocket.on('status', function (data) {\n console.log(data);\n \n for (var i = 0; i < elems.length; i++) {\n var elem = elems[i...
javascript
edit
0
4
mit
7721832f3df4eac30679026957c466e0b0c6be20
EddyShure/wazzup,EddyShure/wazzup
frontend/assets/scripts/wazzup.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nconst D3 = require('D3');\n\nexports.parser = function(rows) {\n\n var overviewResponse = D3.values(rows[0]);\n var overview = D3.nest()\n .key(function(d) {\n return d.region_code;\n })\n...
javascript
edit
0
1
mit
356dca7c2655cc90d048720981ba8d8b1797c30d
hks-epod/paydash
app/helpers/overview_parser.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar Flickity = require('flickity');\n\n(function(Flickity) {\n \"use strict\";\n\n if(document.querySelector('.rotate') !== null) {\n new Flickity('.rotate', {\n on: {\n ready: function() {\n ...
javascript
edit
0
3
mit
db7ce45cc67fb742aa9d38f96401a7c03ba50a9c
waynestate/base-site,waynestate/base-site
resources/js/modules/carousel.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React from 'react';\nimport {Decorator as Cerebral} from 'cerebral-view-react';\nimport styles from './styles.css';\n\nconst boilerplates = {\n 'react': 'React',\n 'cerebral': 'Cerebral with React',\n 'redux': 'Redux Counter',...
javascript
edit
0
1
mit
fce14f0d5fe5faa7b2809395a9dac1d9dd80a4b1
christianalfoni/webpack-bin,christianalfoni/webpack-bin
app/components/Boilerplates/index.js
rejected_duplicate
Near-duplicate of sample 96378
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// Copyright (c) 2010 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\nvar localStrings = new LocalStrings();\n\n/**\n * Window onloa...
javascript
edit
0
3
bsd-3-clause
5472489991a1b85cc75ec0f8d95ed35b1213cf48
Chilledheart/chromium,hujiajie/pa-chromium,hujiajie/pa-chromium,ChromiumWebApps/chromium,Chilledheart/chromium,mogoweb/chromium-crosswalk,bright-sparks/chromium-spacewalk,mohamed--abdel-maksoud/chromium.src,krieger-od/nwjs_chromium.src,bright-sparks/chromium-spacewalk,hgl888/chromium-crosswalk-efl,timopulkkinen/BubbleF...
chrome/browser/resources/print_preview.js
rejected_duplicate
Near-duplicate of sample 68061
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport path from 'path';\nimport os from 'os';\nimport { Tray } from 'electron';\n\nexport default function buildTray(win) {\n const PLATFORM = os.platform();\n\n let icon;\n if (process.env.NODE_ENV === 'development') {\n icon = ...
javascript
edit
0
6
mit
a6b81a7b91e1f5878de51ee822b8ba0eb10f55eb
builtwithluv/ZenFocus,builtwithluv/ZenFocus
app/electron/tray/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nangular.module('vleApp')\n .directive('lyraExport', function () {\n return {\n template: '<a href=\"#\" ng-click=\"export()\">export to lyra...</a>',\n restrict: 'E',\n controller: function ($scope, $...
javascript
edit
0
2
bsd-3-clause
66d690980e430d081faba8608e08d8a68cb9db71
vega/polestar,dennari/hack-n-hackers-polestar,uwdata/polestar,sandbox/polestar,hortonworks/polestar,sandbox/polestar,zegang/polestar,zegang/polestar,hortonworks/polestar,pallavkul/polestar,smartpcr/polestar,vivekratnavel/polestar,dennari/hack-n-hackers-polestar,jsanch/polestar,jsanch/polestar,uwdata/polestar,jsanch/pol...
app/scripts/directives/lyraexport.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport extend from 'extend';\nimport webpack from 'webpack';\nimport webpackConfig from './webpack.config.js';\n\nvar config = extend(true, {}, webpackConfig, {\n entry: './src/entry/main.js',\n\n plugins: webpackConfig.plugins.co...
javascript
edit
0
0
mit
20ff539e61830b2d9b71d1d8abf096c7ca68ca8b
KarolAltamirano/generator-angular-app,KarolAltamirano/generator-angular-app
app/templates/webpack.prod.config.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React from 'react'\nimport {connect} from 'react-redux';\n\n\nconst Article = ({article, channelName}) => {\n return (\n <div>\n <h1>{article.title}</h1>\n <img src={article.urlToImage} className=\"image\"/>\n ...
javascript
edit
0
3
mit
59a3bdf354fa9ed4d2def439ee13d4d2a7415b70
kevinladkins/newsfeed,kevinladkins/newsfeed,kevinladkins/newsfeed
client/src/containers/Article.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar api = require('./api');\n\nmodule.exports = {\n\n login(username, password, callback) {\n api.login(username, password)\n .then((response) => {\n if(response.status === 400){\n if(callback) {\n callback(f...
javascript
edit
0
4
mit
c0db8fafddde95cdcccbdad0540c7c54efc14712
absurdSquid/thumbroll,Jakeyrob/thumbroll,Jakeyrob/thumbroll,shanemcgraw/thumbroll,Jakeyrob/thumbroll,absurdSquid/thumbroll,shanemcgraw/thumbroll,shanemcgraw/thumbroll
client/desktop/app/utils/auth.js
rejected_duplicate
Near-duplicate of sample 92028
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n * Copyright (c) 2019, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.\n *\n * WSO2 Inc. licenses this file to you under the Apache License,\n * Version 2.0 (the \"License\"); you may not use this file except\n * in compliance...
javascript
edit
0
1
apache-2.0
5aca8f7742e6a50cc0e4a322e6bbae4bbd5ac02a
wso2/carbon-analytics,wso2/carbon-analytics,erangatl/carbon-analytics,erangatl/carbon-analytics,Niveathika92/carbon-analytics,minudika/carbon-analytics,minudika/carbon-analytics,erangatl/carbon-analytics,erangatl/carbon-analytics,Niveathika92/carbon-analytics,minudika/carbon-analytics,minudika/carbon-analytics,Niveathi...
components/org.wso2.carbon.siddhi.editor.core/src/main/resources/web/commons/js/menu-bar/deploy-menu.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\nconst langKeys = Object.keys(require('../locales/languages')());\nconst jsonfile = require('jsonfile');\n\nlet enMessageKeys = Object.keys(jsonfile.readFileSync('../locales/en.json'));\n\nfor (let langKey of langKeys) {\n...
javascript
edit
0
2
cc0-1.0
c8de557ce71c6de9a85051fa676f0000ed52c5bd
eloquence/lib.reviews,eloquence/lib.reviews,eloquence/lib.reviews
maintenance/missing-translations.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React, { Component } from \"react\";\nimport { connect } from \"react-redux\";\n\nimport { timelineSelectors } from \"../../redux/selectors\";\nimport { timelineActions } from \"../../redux/actions\";\n\nimport { Container } from...
javascript
edit
0
1
mit
848d5d4273756a3c8509449e763f9803958b1b5a
charlesj/Apollo,charlesj/Apollo,charlesj/Apollo,charlesj/Apollo,charlesj/Apollo
client/src/react/timeline/Timeline.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nfunction loadDashboard(page, dashboard) {\n\tvar url = \"/dashboards/page/\"+dashboard+\"/\"+page+\"/\";\n\tconsole.log(\"Getting\", url);\n\taxios.get(url).then(function (response) {\n\t\t$('#content').html(response.data);\n\t}).catch(...
javascript
edit
0
2
mit
7359fae682afb6da9a9e9751828823682ef9d651
synw/django-chartflo,synw/django-chartflo,synw/django-chartflo
chartflo/templates/dashboards/app.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/* eslint-env mocha */\nconst prepareLearnApp = require('../../src/state/prepareLearnApp');\nconst sinon = require('sinon');\nconst kolibri = require('kolibri');\n\nconst { MembershipResource } = kolibri.resources;\n\ndescribe.only('pre...
javascript
edit
0
1
mit
64c31c409125584fe979d88af821e35eb6a2ef31
DXCanas/kolibri,learningequality/kolibri,DXCanas/kolibri,mrpau/kolibri,DXCanas/kolibri,learningequality/kolibri,jonboiser/kolibri,DXCanas/kolibri,rtibbles/kolibri,indirectlylit/kolibri,indirectlylit/kolibri,rtibbles/kolibri,benjaoming/kolibri,christianmemije/kolibri,MingDai/kolibri,benjaoming/kolibri,indirectlylit/koli...
kolibri/plugins/learn/assets/test/state/prepareLearnApp.spec.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nchrome.app.runtime.onLaunched.addListener(function() {\n\tchrome.app.window.create('index.html', {\n\t\t'bounds': {\n\t\t\t'width': 1280,\n\t\t\t'height': 800\n\t\t}\n\t});\n});\n```\n\nApply this change: Change default window resolutio...
javascript
edit
0
1
mit
7a470343cb08baf99d72cbf40c176640e685d5de
kincaidoneil/postplus,kincaidoneil/postplus
src/background.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nexport default {\n API_URL: 'https://api.hel.fi/respa/v1',\n DATE_FORMAT: 'YYYY-MM-DD',\n NOTIFICATION_DEFAULTS: {\n message: '',\n type: 'info',\n timeOut: 5000,\n hidden: false,\n },\n REQUIRED_API_HEADERS: {\n 'Ac...
javascript
edit
0
0
mit
b176c6b6b4840847b627a610b3e3f20686cd5e74
fastmonkeys/respa-ui
app/constants/AppConstants.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport { isEqual } from 'lodash';\n\nconst TAG_COMPARISON = {\n TOTAL: Symbol(),\n PARTIAL: Symbol(),\n MISMATCH: Symbol()\n};\n\nfunction compareTags (a, b) {\n /* Returns a TAG_COMPARISON value */\n if (isEqual(a, b)) return TAG_...
javascript
edit
0
5
mit
f16aac1229801578fa04c1d2b77d646398a7ca14
sequitur/improv
lib/filters.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n * Copyright 2014, Yahoo! Inc.\n * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.\n */\n'use strict';\n\nvar React = require('react/addons'),\n NavLink,\n navigateAction = require(...
javascript
edit
0
5
bsd-3-clause
231899db61d73344c32939c14b161649a14ed313
yahoo/flux-router-component
lib/NavLink.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/*\n * grunt-html\n * https://github.com/jzaefferer/grunnt-html\n *\n * Copyright (c) 2012 Jörn Zaefferer\n * Licensed under the MIT license.\n */\n\nvar htmllint = require('../lib/htmllint');\n\nmodule.exports = function(grunt) {\n \"...
javascript
edit
0
6
mit
d0e1b69204c3046864846d444b59a04af60adf42
jzaefferer/grunt-html,wesjones/grunt-html,jzaefferer/grunt-html,jzaefferer/grunt-html,wesjones/grunt-html,wesjones/grunt-html
tasks/html.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport candela from './../../src/candela';\nimport mainContent from './index.jade';\nimport visContent from './vis.jade';\nimport 'javascript-detect-element-resize/detect-element-resize';\nimport './index.styl';\nimport iris from '../.....
javascript
edit
0
4
apache-2.0
f019d609caccd7e50aa71b09d5976c489228439b
Kitware/candela,Kitware/candela,Kitware/candela,Kitware/candela,Kitware/candela
app/examples/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// Copyright (c) 2017 The Regents of the University of Michigan.\n// All Rights Reserved. Licensed according to the terms of the Revised\n// BSD License. See LICENSE.txt for details.\n\nmodule.exports = function() {\n Ticker = {};\n i...
javascript
edit
0
5
bsd-3-clause
aaaad959201e17b86caf897f7587d3ebeeb62d85
daaang/awful-mess
spec/mock/ticker.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// Download the Node helper library from twilio.com/docs/node/install\n// These consts are your accountSid and authToken from https://www.twilio.com/console\nconst accountSid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX';\nconst authToken = 'y...
javascript
edit
0
1
mit
48011893ae226d0371131c1e2af2e0cf50d68ba4
TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets
rest/queue/instance-get-example-1/instance-get-example-1.3.x.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// Delete users/groups via ajax\n$('.listFilterContainer').find(\".deleteIcon\").bind(\"click\", function(){\n var me = $(this);\n var url = me.attr(\"href\");\n var title = me.attr(\"data-name\");\n\n if(!$('body').dat...
javascript
edit
0
2
mit
6e66b1d6d3becca06f9d10e89e52b3e5773fc900
mapbender/mapbender-printclient,mapbender/mapbender-printclient,mapbender/mapbender-printclient
src/Mapbender/ManagerBundle/Resources/public/js/user-control.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n$(function () {\n\t$(document).ready(function() {\n\t\tnew SimpleMDE({\n\t\t\telement: document.getElementById(\"simplemde\"),\n\t\t\tspellChecker: false,\n\t\t\thideIcons: [\"side-by-side\", \"fullscreen\", \"image\"],\n\t\t\tforceSync...
javascript
edit
0
1
mit
fa067d5a6ba821ac7bb4e0d293270ff42edbe3b2
bleutzinn/grav-plugin-add-page-by-form,bleutzinn/grav-plugin-add-page-by-form
assets/js/simplemde_config.js
accepted
null
true