messages
listlengths
2
2
language
stringclasses
8 values
prompt_type
stringclasses
2 values
lint_errors
int64
0
129
⌀
cyclomatic_complexity
int64
0
32
⌀
license
stringclasses
7 values
commit
stringlengths
40
40
repos
stringlengths
5
116k
new_file
stringlengths
4
220
status
stringclasses
6 values
error
stringlengths
26
74
⌀
is_valid_syntax
bool
2 classes
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nangular.\n module('buildMonitor.controllers', [ 'buildMonitor.services', 'uiSlider']).\n\n controller('JobViews', function($scope, $dialog, $timeout, fetch, storage) {\n $scope.fontSize = storage.ret...
javascript
edit
0
1
mit
bf8150f88649e28ae675be22f5a5e11425e496d0
erikhakansson/jenkins-build-monitor-plugin,drekbour/jenkins-build-monitor-plugin,jan-molak/jenkins-build-monitor-plugin,guoliang/jenkins-build-monitor-plugin,Le0Michine/jenkins-build-monitor-plugin,seanly/jenkins-build-monitor-plugin,Witos/jenkins-build-monitor-plugin,seanly/jenkins-build-monitor-plugin,erikhakansson/j...
src/main/webapp/scripts/controllers.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)})(...
javascript
edit
0
2
mit
1d5eaf75e434e6ddf91221313804802c67e1145e
coryflucas/CoryLucasDotCom.old
js/analytics.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// Time input\n\nimport { Template } from 'meteor/templating';\nimport { ReactiveForms } from 'meteor/templates:forms';\nimport { checkNpmVersions } from 'meteor/tmeasday:check-npm-versions';\n\ncheckNpmVersions({\n jquery: '2.2.4',\n}...
javascript
edit
0
1
mit
2f7850ce7aee73acec48d53946db02a82ed02665
talos-code/mdl-blaze,talos-code/mdl-blaze
packages/talos.forms/inputs/time.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nPackage.describe({\n summary: \"Run tests interactively in the browser\",\n version: '1.0.8-plugins.0',\n documentation: null\n});\n\nPackage.onUse(function (api) {\n // XXX this should go away, and there should be a clean interface...
javascript
edit
0
1
mit
a25983402657c0394c2314daafd89afd8c301779
devgrok/meteor,yalexx/meteor,lpinto93/meteor,youprofit/meteor,emmerge/meteor,sdeveloper/meteor,Theviajerock/meteor,shmiko/meteor,benstoltz/meteor,Ken-Liu/meteor,steedos/meteor,aramk/meteor,udhayam/meteor,yyx990803/meteor,baiyunping333/meteor,Jeremy017/meteor,ericterpstra/meteor,paul-barry-kenzan/meteor,juansgaitan/mete...
packages/test-in-browser/package.js
rejected_duplicate
Near-duplicate of sample 92609
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar NwBuilder = require('node-webkit-builder');\nvar gulp = require('gulp');\nvar gutil = require('gulp-util');\n\ngulp.task('nw', function (callback) {\n\n var nw = new NwBuilder({\n version: '0.9.2',\n files: [ './nwa...
javascript
edit
0
2
mit
99a9a6e891408164e2ee26ad49ff3dcbd082281c
Crunch/nw-builder,imperiumzigna/nw-builder,modulexcite/nw-builder,marianoguerra/nw-builder,GrabCAD/node-webkit-builder,nwjs/nw-builder,modulexcite/nw-builder,cypress-io/nw-builder,marianoguerra/nw-builder,GrabCAD/node-webkit-builder,nwjs/nw-builder,donkeycode/nw-builder,cypress-io/nw-builder,donkeycode/nw-builder,imper...
example/Gulpfile.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n * Module dependencies.\n */\nvar pkginfo = require('pkginfo')\n , path = require('path');\n\n\n/**\n * Creates an entity object.\n *\n * An entity is an object with properties used to identify the application.\n * These propertie...
javascript
edit
0
2
mit
e68df8834a5e01b596e65aa91e1f5fe59bb9ad82
bixbyjs/bixby-common
lib/entity.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// Karma configuration file, see link for more information\n// https://karma-runner.github.io/0.13/config/configuration-file.html\n\nmodule.exports = function (config) {\n config.set({\n basePath: '',\n frameworks: ['mo...
javascript
edit
0
1
mit
8ad2eb577c58dd20e07baf009a9bcb69ec696ee2
mattbdean/Helium,mattbdean/Helium,mattbdean/Helium,mattbdean/Helium
karma.conf.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport shortcut from './shortcut';\nimport setUserRequire from './require';\nimport log from './log';\n\nmodule.exports = {\n setUserRequire,\n shortcut,\n log\n}\n```\n\nApply this change: Remove old log utility function" }, { ...
javascript
edit
0
0
mit
23a014af24dec52f479603f2bd6df0f3cbbae479
simonlovesyou/AutoRobot
src/js/client/util/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n#!/usr/bin/env node\n\n/**\n * Now use CoffeeScript.\n */\nrequire('coffee-script/register');\n\n/**\n * Importing local modules.\n */\nvar program = require('./program');\nvar processor = require('./processor');\nvar utils = require('....
javascript
edit
0
0
mit
73d2239f5edb926e8b8db9f9957f2cf6eaa28186
http-auth/htpasswd,gevorg/htpasswd,CapacitorSet/htpasswd
lib/htpasswd.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n#!/usr/bin/env node\n'use strict'\n\nrequire('debug').enable('UCompiler:*')\nconst UCompiler = require('..')\nconst knownCommands = ['go', 'watch']\nconst parameters = process.argv.slice(2)\n\nif (!parameters.length || knownCommands.ind...
javascript
edit
0
1
mit
e6da6955f5632ff3e2766cd54b815f779767ad3d
steelbrain/UCompiler
cli/main.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// Copyright 2015, EMC, Inc.\n\nmodule.exports = {\n friendlyName: 'Install CoreOS',\n injectableName: 'Task.Os.Install.CoreOS',\n implementsTask: 'Task.Base.Os.Install',\n options: {\n // NOTE: user/pass aren't used ...
javascript
edit
0
0
apache-2.0
9b2efafb62f738f437b8c056ea4bcee26cdd9226
AlaricChan/on-tasks,AlaricChan/on-tasks,bbcyyb/on-tasks,nortonluo/on-tasks,nortonluo/on-tasks,bbcyyb/on-tasks
lib/task-data/tasks/install-coreos.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React from \"react\";\nimport classes from \"./LandingPage.module.css\";\nimport LoginButtonSet from \"../../components/UI/LoginButtonSet/LoginButtonSet\";\n\nconst LandingPage = (props) => {\n return (\n <div className={clas...
javascript
edit
0
1
apache-2.0
28956f188fce9f5e2618f84d6d4af7fbbf629383
googleinterns/sgonks,googleinterns/sgonks,googleinterns/sgonks,googleinterns/sgonks
project/frontend/src/containers/LandingPage/LandingPage.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\n/**\n* Typed array constructor which returns a typed array representing an array of 32-bit unsigned integers in the platform byte order.\n*\n* @module @stdlib/array/uint32\n*\n* @example\n* var ctor = require( '@stdlib/...
javascript
edit
0
0
apache-2.0
0ce66fe7c73d99e33f4cb7726a9b2d135b95045a
stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib
lib/node_modules/@stdlib/array/uint32/lib/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/*\n * Author: Alexandre Havrileck (Oxyno-zeta)\n * Date: 03/07/16\n * Licence: See Readme\n */\n\n/* ************************************* */\n/* ******** REQUIRE ******** */\n/* ************************************* */\nco...
javascript
edit
0
1
mit
dfd213c775a43a4b1f933afb36aaaebb908e0eb5
oxyno-zeta/crash-reporter-electron,oxyno-zeta/crash-reporter-electron
src/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst get = require('lodash.get');\nconst forEach = require('lodash.foreach');\nconst defaultsDeep = require('lodash.defaultsdeep');\nconst loaderUtils = require('loader-utils');\nconst parse = require('./parse').default;\nconst default...
javascript
edit
0
2
mit
e6cfaae4d02a4cc3420fcc615ecd641635146e54
digitalie/one-loader
src/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports = function ({Transformer}) {\n return new Transformer('minification.removeReactPropTypes', {\n Property: {\n exit(node) {\n if (node.computed || node.key.name !== 'propTypes') {\n return;\n ...
javascript
edit
0
5
mit
426d476b75c1645f67a01e23fa4ef164d3875a38
nkt/babel-plugin-react-remove-prop-types,NogsMPLS/babel-plugin-transform-react-remove-statics,oliviertassinari/babel-plugin-transform-react-remove-prop-types
src/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nvar gulp = require('gulp');\nvar watch = require('gulp-watch');\nvar gulpSequence = require('gulp-sequence');\n\n// var config = require('../config/index');\nvar templates = require('../config/templates');\nvar styles =...
javascript
edit
0
1
mit
ceaec31d5c34505d13418042551aec70aa1a864c
3runoDesign/setRobot,3runoDesign/setRobot,3runoDesign/setRobot
gulpTasks/tasks/watch.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar _ = require('underscore');\n\nmodule.exports.toBoolean = function(value) {\n var bValue = value;\n if (_.isString(bValue)) {\n switch (bValue.toLowerCase().trim()) {\n case \"true\":\n case \"1\":\n bValue = tr...
javascript
edit
0
7
mit
7b58ced279eafaecd624d3063644377ab7a49bd2
mweagle/Sparta,mweagle/Sparta,mweagle/Sparta,mweagle/Sparta
resources/provision/sparta_utils.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React from 'react';\nimport { compose } from 'recompose';\n\nimport PasswordChangeForm from '../PasswordChange';\nimport {\n AuthUserContext,\n withAuthorization,\n withEmailVerification,\n} from '../Session';\n\nconst Account...
javascript
edit
0
1
apache-2.0
8e9bfe76508615dd1dfeaddae374e67659b55e5a
googleinterns/Pictophone,googleinterns/Pictophone,googleinterns/Pictophone,googleinterns/Pictophone
client/src/Account/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nif (!document.pictureInPictureEnabled) {\n chrome.browserAction.setTitle({ title: 'Picture-in-Picture NOT supported' });\n} else {\n chrome.browserAction.onClicked.addListener(tab => {\n const code = `\n (async () => {\n ...
javascript
edit
0
1
apache-2.0
55f9218e86b01db897416799fda4a936ccc37fc8
GoogleChromeLabs/picture-in-picture-chrome-extension,GoogleChromeLabs/picture-in-picture-chrome-extension
src/background.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/*\n * This file is part of the Sylius package.\n *\n * (c) Paweł Jędrzejewski\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n(function ( $ ) {\...
javascript
edit
0
1
mit
a8f18a9552ffbbb9aee84067943d24ca4e595a96
gruberro/Sylius,Lowlo/Sylius,Arminek/Sylius,xrowkristina/sylius,pentarim/Sylius,Brille24/Sylius,Ma27/Sylius,okwinza/Sylius,bigfoot90/Sylius,peteward/Sylius,xantrix/Sylius,psyray/Sylius,torinaki/Sylius,TristanPerchec/Sylius,kayue/Sylius,jverdeyen-forks/Sylius,PyRowMan/Sylius,xrowgmbh/Sylius,aRn0D/Sylius,nicolasricci/Syl...
src/Sylius/Bundle/WebBundle/Resources/public/js/backend.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport Component from '../components/component.react';\nimport React from 'react-native';\nimport {logout} from '../auth/actions';\nimport {\n ScrollView,\n Text\n} from 'react-native';\n\nimport styles from './menu.style';\n\nclass M...
javascript
edit
0
2
mit
add5d33a8b997ec0caad5d131c183e21857f17c1
blueberryapps/este,skallet/este,TheoMer/este,robinpokorny/este,GarrettSmith/schizophrenia,syroegkin/mikora.eu,zanj2006/este,langpavel/este,steida/este,TheoMer/este,AugustinLF/este,estaub/my-este,GarrettSmith/schizophrenia,shawn-dsz/este,estaub/my-este,skyuplam/debt_mgmt,SidhNor/este-cordova-starter-kit,sikhote/davidsin...
src/app/menu.react.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar local = 'http://localhost:55881'\nvar dev = 'https://dev-api-streetsupport.azurewebsites.net'\nvar staging = 'https://staging-api-streetsupport.azurewebsites.net'\nvar live = 'https://live-api-streetsupport.azurewebsites.net'\n\nvar...
javascript
edit
0
1
mit
9ad598eaeafb5d5d590889c19653ba33bf76eaf0
StreetSupport/streetsupport-web,StreetSupport/streetsupport-web,StreetSupport/streetsupport-web
src/js/api.js
rejected_duplicate
Near-duplicate of sample 87451
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n * @module lib/container-logs\n * @exports {Class} ContainerLogs\n */\n'use strict'\n\nvar socket = require('./socket')\n\nclass ContainerLogs {\n /**\n * @param {String} dockerHost\n * @param {String} dockerContainer\n */\n...
javascript
edit
0
3
mit
8fbbdd6b47b708d2cbb2fbdec5a3e33cf84a418d
cflynn07/runnable-cli
src/container-logs.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\ndocument.addEventListener(\"DOMContentLoaded\", function (event) {\n // redirect to 7777 port\n // ping golang counter\n httpGetAsync(\"http://www.aracki.me:7777\", function (res) {\n alert(res);\n })\n});\n\nfunction...
javascript
edit
0
3
mit
1beaf7bdbd10681f158e06e5db11293b7b40a06d
Aracki/aracki.me,Aracki/aracki.me
js/count.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n * React Starter Kit (https://www.reactstarterkit.com/)\n *\n * Copyright © 2014-2016 Kriasoft, LLC. All rights reserved.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE.txt file in the root dire...
javascript
edit
0
3
mit
a549a58f8d2473b6449cec119d3395bfeeb2fddf
kevinchau321/TReactr,geoffreyfloyd/op,monotonique/react-starter-kit,rameshrr/dicomviewer,Jose4gg/GSW-P2,SOCLE15/carpoule,AntonyKwok/react-starter-kit,nicolascine/site,mortenryum/loanCalculator,aos2006/tesDeploy,ACPK/react-starter-kit,samkguerrero/samkguerrero_react,maximhoffman/beginnertuts,samdenicola/react-starter-ki...
src/core/fetch/fetch.server.js
rejected_duplicate
Near-duplicate of sample 88978
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n(function($, Fleeting){\n $(function(){\n var view = new Fleeting.CharactersView({ \n el : $(\"body\"), \n strategy : function(){\n this.hidden(true);\n },\n evaporate...
javascript
edit
0
4
mit
09261ac3445e0cb803e406fd1187e3c0cbf50118
dvberkel/fleeting-thoughts,dvberkel/fleeting-thoughts
js/setup.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React, { PropTypes } from 'react'\nimport classNames from 'classnames'\n\nconst Emoji = (props) => {\n const { alt, className, name = 'ello', size, src, title, width, height } = props\n const tip = name.replace(/_|-/, ' ')\n r...
javascript
edit
0
6
mit
f95cb9f1330b75b118aa65ef57612be4fb7326f5
ello/webapp,ello/webapp,ello/webapp
src/components/assets/Emoji.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n * console.(log|info|error|warn) wrapper\n * @param {string} type - Console log type (\"log\"|\"info\"|\"error\"|\"warn\")\n * @param {any} data - Prints to stdout (if specify \"error\" or \"warn\" at type param, output stderr)\n *...
javascript
edit
0
2
mit
32c11e091fcb0e59afc082e504db4bbc078cdb2f
kubosho/kotori,kubosho/kotori
src/helper/log.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n * nanoAudioPlayer plugin for jQuery\n * by Lasse Nielsen\n * @version 0.1 \n * 03.02.2013\n * http://github.com/nano-entertainment/NanoAudioPlayer\n */\n(function($){\n $.fn.nanoAudioPlayer = function(){\n\n }\n})(jQuery);\n```\...
javascript
edit
0
2
mit
c920c01438207ed825436bb96cf26c21badf055d
nano-entertainment/NanoAudioPlayer
jquery.nanoAudioPlayer.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst REMOVE_FROM_ITINERARY = 'REMOVE_FROM_ITINERARY';\n\nconst removeFromItinerary = payload => (\n {\n type: REMOVE_FROM_ITINERARY,\n payload,\n }\n);\n\nexport default removeFromItinerary;\n\n```\n\nApply this change: Refacto...
javascript
edit
0
1
mit
08047e6e67efa896a0fbab3bd865d8b613b90c30
theredspoon/trip-raptor,Tropical-Raptor/trip-raptor
src/client/scripts/actions/remove_from_itinerary_action.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n * Patterns checkedflag - Add checked flag to checkbox labels\n *\n * Copyright 2013 Simplon B.V. - Wichert Akkerman\n */\ndefine([\n \"jquery\",\n \"../registry\",\n \"../utils\"\n], function($, patterns, utils) {\n va...
javascript
edit
0
2
bsd-3-clause
c58712ddedfd98ac9ab8e370963e8aa6af2e0ed2
Patternslib/Patterns-archive,Patternslib/Patterns-archive,Patternslib/Patterns-archive
src/pat/select-option.js
rejected_duplicate
Near-duplicate of sample 95124
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n * Return a default logger which writes to stdout and stderr.\n *\n * @return {Function} [enhanced log fn]\n * @api private\n */\nmodule.exports = function LowLevelLogger ( ) {\n\n\tvar _stdout = console.log.bind(console);\n\tvar _...
javascript
edit
0
1
mit
2686098a723a042626aea50b3cce274d7413e438
JibstaMan/captains-log
lib/captains.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports = {\n transform: {\n \".ts\": \"ts-jest\"\n },\n testEnvironment: \"node\",\n testPathIgnorePatterns: [\n \"/dist/\", \n \"/node_modules/\"\n ],\n moduleFileExtensions: [\n \"...
javascript
edit
0
0
mit
352a0d8dcd265bf5d0e9e38fd05cc13f62c5544e
tschettler/breeze-odata4,tschettler/breeze-odata4
jest.config.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n\"use strict\";\n\nvar readFile = require(\"fs-readfile-promise\");\nvar components = require(\"server-components\");\nvar domino = require(\"domino\");\nvar moment = require(\"moment\");\nvar _ = require(\"lodash\");\n\nvar getOembed =...
javascript
edit
0
2
mit
c7f06b72be5362c0731c3461fbfa92880a454e19
pimterry/tim.fyi,pimterry/tim.fyi
components/manual-source.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nvar wavelengthToColor = require('./wavelengthToColor');\n\n\nfunction getAnnotation(pixel, color, height) {\n return {\n \"pos2\": {\n \"y\": height+\"px\",\n \"x\": pixel-1\n },\n...
javascript
edit
0
3
mit
1972ee1039946e98df169b4b228fef96c080b42c
open-spectro/javascript-helper
src/getAnnotations.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport chai, { expect } from 'chai';\nimport sinon from 'sinon';\nimport sinonChai from 'sinon-chai';\nimport System from 'systemjs';\nimport '../config.js';\n\nchai.use(sinonChai);\n\ndescribe('myModule', () => {\n let _, myModule;\n\...
javascript
edit
0
1
mit
d1a35583b746867e974d86c5d103c44ce21b307b
curran/jspm-mocha-example
test/tests.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/* global chrome */\n\n(function () {\n document.addEventListener('window.remoteDebug.getDebugSocket', function (e) {\n chrome.runtime.sendMessage({\n cmd: 'getDebugSocket'\n })\n })\n\n var s = document.createElement('scr...
javascript
edit
0
2
mit
dd189385bd3245a71875475851a1194528914b98
auchenberg/browser-remote,auchenberg/devtools-remote,auchenberg/devtools-remote,auchenberg/browser-remote
chrome-extension/content.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// jest.config.js\nmodule.exports = {\n verbose: true,\n globals: {\n __testing__: true\n },\n roots: ['app/javascript'],\n setupFiles: ['./config/jest.setup.js'],\n testRegex: '(/__tests__/.*|(\\\\.|_|/)(test|spec))\\\\.(jsx?|...
javascript
edit
0
0
apache-2.0
ca53eda46eeab0825babf9e26cf2d955dba9e612
ManageIQ/manageiq-ui-classic,ManageIQ/manageiq-ui-classic,ManageIQ/manageiq-ui-classic,ManageIQ/manageiq-ui-classic
jest.config.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport _ from 'lodash';\nimport { remote } from 'electron';\n\nimport '../generic';\n\n// Initialize the global Logger to forward to the main process.\nwindow.Logger = remote.getGlobal('Logger');\nLogger.debug('Renderer process logger i...
javascript
edit
0
2
mit
98f7db87e2dc773fe1ee74fb65b18b9baced9072
n4k1/Google-Play-Music-Desktop-Player-UNOFFICIAL-,n4k1/Google-Play-Music-Desktop-Player-UNOFFICIAL-,petuhovskiy/Google-Play-Music-Desktop-Player-UNOFFICIAL-,petuhovskiy/Google-Play-Music-Desktop-Player-UNOFFICIAL-,MCManuelLP/Google-Play-Music-Desktop-Player-UNOFFICIAL-,MarshallOfSound/Google-Play-Music-Desktop-Player-U...
src/inject/GPMWebView/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n(function() {\n\n // Feature detection results\n const supports = {};\n\n // Detect localStorage support\n try {\n localStorage.setItem('test', 'test');\n localStorage.removeItem('test');\n supports.localStorage = true;\n ...
javascript
edit
0
4
mit
3c17c822904f05eba4f5a5f522ca1e25f7855571
lukechilds/tor-explorer,lukechilds/tor-explorer
public/assets/enhancements.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n * PDF.js Worker entry file.\n *\n * This file is identical to Mozilla's pdf.worker.entry.js, with one exception being placed inside\n * this bundle, not theirs. This file can be safely removed and replaced with Mozilla's after the...
javascript
edit
0
0
mit
b108555735d8213f682e79a7bd1e1254b40c5ec4
wojtekmaj/react-pdf,wojtekmaj/react-pdf,wojtekmaj/react-pdf
src/pdf.worker.entry.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar dest = \"./build/\";\nvar src = './app/';\n\nmodule.exports = {\n\tbrowserSync: {\n\t\tserver: {\n\t\t\tbaseDir: dest\n\t\t},\n\t\tfiles: [\n\t\t\tdest + \"**\",\n\t\t\t// Exclude Map files\n\t\t\t\"!\" + dest + \"**.map\"\n\t\t]\n\...
javascript
edit
0
0
mit
34e32376c245b243e533f71383a1fec6b4f82dc5
hawkrives/svg-diplomacy,hawkrives/svg-diplomacy,hawkrives/svg-diplomacy,hawkrives/svg-diplomacy
gulp/config.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar assert = require('chai').assert;\nvar deepEqual = require('deep-equal');\nvar makeMockFunction = require('./makeMockFunction');\n\nmodule.exports = function makeMock(object, type) {\n\n var args = [];\n var mockObj = function mock...
javascript
edit
0
4
mit
dc444b6d7eb2dbb34b5d6c653bc1d3cec0f2d3cd
ganemone/mock-object
lib/makeMock.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nvar pathFn = require('path');\nvar chalk = require('chalk');\nvar fs = require('hexo-fs');\nvar tildify = require('tildify');\nvar spawn = require('hexo-util').spawn;\nvar assetDir = pathFn.join(__dirname, '../../assets...
javascript
edit
0
3
mit
e0648edededd572d5ee9f6366805b3d0536e13ab
hexojs/hexo-cli,hexojs/hexo-cli,hexojs/hexo-cli
lib/console/init.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar EventSource = require(\"eventsource\"),\n EventEmitter = require(\"events\").EventEmitter,\n utils = require(\"radiodan-client\").utils,\n http = require(\"./http-promise\"),\n bbcServicesURL = pr...
javascript
edit
0
3
apache-2.0
0331354dc986cfb6b52a65b3eb5b2945d1a8db7a
radiodan/magic-button,radiodan/magic-button
lib/bbc-services.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React from \"react\";\n\n\nexport default React.createClass({\n displayName: \"Glyphicon\",\n\n render: function() {\n return (\n <i className={\"glyphicon glyphicon-\" + this.props.name} />\n );\n }...
javascript
edit
0
1
apache-2.0
5770ffde329552577a5adab5cd689ded91b58711
CCI-MOC/GUI-Frontend,CCI-MOC/GUI-Frontend,CCI-MOC/GUI-Frontend,CCI-MOC/GUI-Frontend,CCI-MOC/GUI-Frontend
troposphere/static/js/components/common/Glyphicon.react.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar express = require('express');\nvar less = require('less-middleware');\nvar path = require('path');\n\nexports.register = function(application, params) {\n params = params || {};\n\n var prefix = params.prefix || '';\n prefix = pr...
javascript
edit
0
3
mit
ab81311d68c8dc17c9033a1d2161f1b24f07ff4e
droonga/express-droonga,KitaitiMakoto/express-droonga,KitaitiMakoto/express-droonga,droonga/express-droonga
lib/ui/dashboard.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nSequelize = require('sequelize')\npg = require('pg').native;\n\nvar databaseUrl = process.env.DATABASE_URL;\n\nif (databaseUrl) {\n var match = databaseUrl.match(/postgres:\\/\\/([^:]+):([^@]+)@([^:]+):(\\d+)\\/(.+)/);\n var db = new ...
javascript
edit
0
0
isc
a7ef4b15ba922d887409ef27eeb7ad61dd0372a6
xdv/gatewayd,zealord/gatewayd,Parkjeahwan/awegeeks,whotooktwarden/gatewayd,crazyquark/gatewayd,crazyquark/gatewayd,zealord/gatewayd,Parkjeahwan/awegeeks,xdv/gatewayd,whotooktwarden/gatewayd
lib/data/sequelize.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst fetch = require('node-fetch')\n\nconst endpoint = 'https://www.pivotaltracker.com/services/v5/my/notifications?envelope=true'\nconst api = {\n getNotifications({ token }){\n return fetch(endpoint, {\n headers: {\n ...
javascript
edit
null
null
mit
99c51fe4d4dbae59ea7edd1e1d5d548c749006be
grsabreu/alexa-pivotal-tracker,grsabreu/alexa-pivotal-tracker
pivotal.js
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport Ember from 'ember';\n\nexport default Ember.Component.extend({\n \n tagName: '',\n\n fixWidthHelper: function(e, ui) {\n ui.children().each(function() {\n $(this).width($(this).width());\n });\n return ui;\n },\...
javascript
edit
0
2
mit
b2000b73bbbf9089e51b6124f32ed6c94296d4be
ThreeDRadio/playlists,ThreeDRadio/playlists,ThreeDRadio/playlists
frontend/app/components/playlist-edit-table-body.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar createEditor;\r\nvar author;\r\n\r\nfunction injectCreate(id) {\r\n $(\"#\" + id).load(\"create/html/createHTML\", function() {\r\n injectCreateEditor();\r\n\t\t\r\n\t\t// Generate a random number from 1 to 10000\r\n ...
javascript
edit
0
1
bsd-3-clause
e63ed6a7e92e3c93183d7ba3863992dab557bbc8
ClemsonRSRG/beginToReason,ClemsonRSRG/beginToReason,ClemsonRSRG/bydesign,ClemsonRSRG/beginToReason,ClemsonRSRG/bydesign
create/javascript/inject.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use babel';\n\nimport {component} from './polymer-es6';\n\n@component('at-video')\nexport class AtomTwitchVideo {\n static properties() {\n return { };\n }\n \n static listeners() {\n return { 'click': 'toggleVideo' };\n }\n...
javascript
edit
0
3
mit
cddd76f8e270df8a9ade32a2f30166d0b5612e2b
paulcbetts/atom-twitch,paulcbetts/atom-twitch
lib/at-video.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar travisUtils = require('./travis-utils');\n\nvar socials = {\n 'facebook-square': 'https://www.facebook.com/romajs.org',\n 'twitter-square': 'https://twitter.com/roma_js',\n 'youtube-square': 'https://www.youtube.com/channel/UCFm8...
javascript
edit
0
3
mit
cc3e14b194bf3b219ca570acd3f9c76b7da76dc1
Roma-JS/romajs-on-metalsmith,Roma-JS/romajs-on-metalsmith,Roma-JS/romajs-on-metalsmith
lib/metalsmith-plugins.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/* Copyright 2015, Yahoo Inc.\n Copyrights licensed under the MIT License.\n See the accompanying LICENSE file for terms. */\n\nmodule.exports = variationMatches;\nfunction variationMatches(variations, path) {\n var result;\n ...
javascript
edit
0
2
mit
7c0d07ab91790957f6a2345bef422e3724dcde28
yahoo/mendel,stephanwlee/mendel,yahoo/mendel,stephanwlee/mendel
packages/mendel-development/variation-matches.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nexport const TABS = [\n {\n name: 'latest',\n urlName: 'siste',\n title: 'Enkeltår',\n chartKind: 'bar',\n year: 'latest'\n },\n {\n name: 'chronological',\n urlName: 'historikk',\n title: 'Over tid',\n cha...
javascript
edit
0
0
mit
3b861a22846fc9608297a94ec57f16e036cf07ed
bengler/imdikator,bengler/imdikator
config/tabs.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/*!\n Copyright (C) 2017 Google Inc.\n Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file>\n*/\n\n(function(can) {\n can.extend(can.Control.prototype, {\n // Returns a function which will be halted unl...
javascript
edit
0
4
apache-2.0
f82560529346af876ea1b80352320d45a838eb55
AleksNeStu/ggrc-core,AleksNeStu/ggrc-core,VinnieJohns/ggrc-core,VinnieJohns/ggrc-core,plamut/ggrc-core,plamut/ggrc-core,VinnieJohns/ggrc-core,VinnieJohns/ggrc-core,AleksNeStu/ggrc-core,AleksNeStu/ggrc-core,plamut/ggrc-core,plamut/ggrc-core
src/ggrc/assets/javascripts/plugins/can_control.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nlet Gpio = require('pigpio').Gpio;\nlet express = require('express');\nlet path = require('path');\n\nlet gpioService = require('../lib/gpioservice')(Gpio);\nlet ledHandler = require('../lib/ledhandler')(gpioService);\n...
javascript
edit
0
1
mit
3494cee63ca14d3e3cb6af0808815c17bf32e6a4
dennisdunn/botlab,dennisdunn/botlab,dennisdunn/botlab,dennisdunn/botlab,dennisdunn/botlab
qbot/api/app.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict'\n\nconst fs = require('fs')\nconst path = require('path')\n\n/**\n * Returns the relative path of the template file.\n *\n * @param {String} name\n * @return {String}\n */\nfunction relative (name) {\n const relative = pa...
javascript
edit
0
1
mit
b5259dd902ee12f36748d2d6059680f0e885f744
rhberro/the-react-commander
lib/utilities/template.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport express from 'express';\nimport bodyParser from 'body-parser';\nimport favicon from 'serve-favicon';\nimport path from 'path';\nimport helmet from 'helmet';\nimport fs from 'fs';\nimport webpackCommonConfig from '../../webpack/co...
javascript
edit
0
2
mit
a503dedb91bd74ff75817f4637bf8ac3a5a70f2d
hrasoa/react-pwa,hrasoa/react-pwa,hrasoa/react-pwa
server/app/prod.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar mongoose = require('mongoose');\n\nvar Message = new mongoose.Schema({\n\tmessage: String,\n\tsender: {type: mongoose.Schema.Types.ObjectId, ref: 'User'},\n\tmime: {type: String, default: \"text/plain\"},\n});\n\n\nvar Member = new ...
javascript
edit
0
3
apache-2.0
eac10b9db3f8b6c2353d6ed3764e52fec48138e5
gradymcd/MessageAPI,gradymcd/MessageAPI
models/Room.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n\n/*\n * GET home page.\n */\n\nvar helpers = require('../helpers');\n\nexports.index = function(req, res){\n res.render('index', {\n title: 'JS Box',\n libraryUrls: helpers.getLibraryUrls(),\n scriptUrl: req.param('scriptUrl'...
javascript
edit
0
1
mit
2493d0770b7d59d5666422eef1c0c0634e896a0e
nicolasmccurdy/jsbox
routes/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nclass MockEntryPlugin {\n /**\n * Apply the plugin.\n *\n * @param {Object} compiler\n */\n apply(compiler) {\n compiler.plugin('done', stats => {\n // If no mix.js() call was requested, we'll als...
javascript
edit
0
2
mit
99c1091525d8377d701da7aa1bd784403ad75ccb
JeffreyWay/laravel-mix
src/plugins/MockEntryPlugin.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n(function(Modules) {\n \"use strict\";\n\n Modules.TrackError = function() {\n\n this.start = function(component) {\n\n if (!ga) return;\n\n ga(\n 'send',\n 'event',\n 'Error',\n $(component).d...
javascript
edit
0
2
mit
a2220f6929bcbc94ac1e0bc5643bfc9c736b89eb
alphagov/notifications-admin,alphagov/notifications-admin,alphagov/notifications-admin,alphagov/notifications-admin
app/assets/javascripts/errorTracking.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n\nmodule.exports = function(gulp, config) {\n\n\treturn function(done) {\n\t\tvar c = require('better-console')\n\t\tc.info('watch sources')\n\n\t\tvar path = require('path')\n\n\t\tvar glob = [\n\t\t\t'**/*.{css,styl,js,jsx,coffee,jade...
javascript
edit
0
8
mit
37f7798cb6878a9566280cedd3b1f009c7cb87ad
Cactucs/mango-cli,manGoweb/mango-cli,Cactucs/mango-cli,manGoweb/mango-cli
lib/tasks/watch_sources.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar elixir = require('laravel-elixir');\n\nelixir(function(mix) {\n mix.sass('app/assets/sass/main.scss')\n .styles([\n 'app/assets/Bower_components/fontawesome/css/font-awesome.min.css',\n 'public/css/main.css',\n ...
javascript
edit
0
1
bsd-3-clause
52fac8dbe55be892eab3c2415ea8d6911e50413d
Mebus/Cachet,ephillipe/Cachet,coupej/Cachet,cachethq/Cachet,displayn/Cachet,katzien/Cachet,karaktaka/Cachet,wakermahmud/Cachet,billmn/Cachet,NossaJureg/Cachet,robglas/Cachet,katzien/Cachet,NossaJureg/Cachet,ematthews/Cachet,ematthews/Cachet,Surventrix/Cachet,g-forks/Cachet,murendie/Cachet,eduardocruz/Cachet,everpay/Cac...
gulpfile.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport * as tt from 'typescript-definition-tester'\n\ndescribe('TypeScript definitions', function () {\n it('should compile against index.d.ts', (done) => {\n tt.compileDirectory(\n __dirname + '/typescript',\n fileName =>...
javascript
edit
0
1
mit
5f8ee1462ca4620b67cae41f34813bade158f8d4
raisemarketplace/redux-loop
test/typescript.spec.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar ImagePreloader = require('./ImagePreloader/');\nvar Overlay = require('./Overlay/');\n\nfunction QueryLoader(element, options) {\n 'use strict';\n this.element = element;\n this.options = options;\n\n //The default optio...
javascript
edit
0
4
mit
75bbf61f7acdda66c72ebe4401302b9c03682cf5
dwandw/queryloader2,dwandw/queryloader2,Gaya/queryloader2,Gaya/queryloader2
src/QueryLoader.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n* Colors for all reports\n*/\nconst ReportColors = [\n '#FFB067', // Orange\n '#104210', // Forest green\n '#FF7077', // Coral\n '#ACEEF3', // Cyan\n '#FF4500', // Red orange\n '#FF8300', // Darker orange\n '#D...
javascript
edit
0
0
mit
273abbeaa96a2ce27522eb1e9c84e9ec85f3d052
sbine/bdgt,sbine/bdgt,sbine/bdgt
resources/js/components/reports/ReportColors.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n * Sustainable Solutions (NZ) Ltd. 2020\n * mSupply Mobile\n */\n\nimport Realm from 'realm';\n\nexport class VaccineVialMonitorStatus extends Realm.Object {}\n\nVaccineVialMonitorStatus.schema = {\n name: 'VaccineVialMonitorStatu...
javascript
edit
0
0
mit
e65ef4ae2e6c4808aae0fcc99b92b5c990081823
sussol/mobile,sussol/mobile,sussol/mobile,sussol/mobile
src/database/DataTypes/VaccineVialMonitorStatus.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n * `Message` constructor.\n *\n * @api protected\n */\nfunction Message(queue, message, headers, deliveryInfo) {\n // Crane uses slash ('/') separators rather than period ('.')\n this.topic = deliveryInfo.routingKey.replace(/\\./...
javascript
edit
0
2
mit
52d58524d5246ed4615b436753bfe8662362ee4a
jaredhanson/crane-amqp
lib/message.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport {json} from \"body-parser\";\nimport {Router} from \"express\";\n\nimport * as validate from \"./validate-middleware\";\nimport * as convert from \"./convert\";\n\nexport default function convexpress (options) {\n const router...
javascript
edit
0
2
mit
17e2175536b87622f2e167a9874ee0fd42362e3f
staticdeploy/convexpress
src/convexpress.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport {get} from 'utils/ajax'\n\nimport {fixtureJSONFeed} from 'src/status/fixtures'\n// TODO: remove async/await & object return, uncomment get(url) when proxy route implemented\nexport const fetchJSONFeed = async url => {\n return a...
javascript
edit
0
1
mit
35fa6da2923128d818d56ccf74050f2617d72fbb
nooproblem/influxdb,mark-rushakoff/influxdb,influxdb/influxdb,influxdb/influxdb,nooproblem/influxdb,nooproblem/influxdb,influxdb/influxdb,influxdb/influxdb,influxdb/influxdb,nooproblem/influxdb,influxdb/influxdb,mark-rushakoff/influxdb,influxdata/influxdb,mark-rushakoff/influxdb,li-ang/influxdb,mark-rushakoff/influxdb,...
ui/src/status/apis/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// karaoke-forever string to artist/title parser defaults\nmodule.exports = {\n // regex or string; artist/song get split around this match (default='-')\n delimiter: '-',\n // bool; whether artist is on left side of delimiter (defau...
javascript
edit
0
0
isc
f5b2334d392c748c4a74bd66c9e14489d428c90d
bhj/karaoke-forever,bhj/karaoke-forever
server/lib/parseArtistTitle/kfconfig-default.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nvar assert = require('assert');\nvar data = require('../src/data'),\n vlfield = require('../src/field');\n\ndescribe('getUrl', function() {\n //TODO write tests for getUrl\n});\n\ndescribe('getStats', function() {\n ...
javascript
edit
0
0
bsd-3-clause
cff11fbe74280c66c00323d28fdb9041ded48fcc
osnr/vega-lite,smartpcr/vega-lite,sandbox/vega-lite,sandbox/vega-lite,jsanch/vega-lite,ellisonbg/vega-lite,Ye-Yong-Chi/vega-lite,vega/vega-lite,mathisonian/vega-lite,vivekratnavel/vega-lite,ioriwellings/vega-lite,uwdata/vega-lite,uwdata/vega-lite,guiquanz/vega-lite,jsanch/vega-lite,mendax-grip/vega-lite,Ye-Yong-Chi/veg...
test/data.spec.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n(function(angular) {\n 'use strict';\n var SignalRService = function ($window, url) {\n this.jQuery = $window.jQuery;\n this._url = url;\n };\n\n SignalRService.prototype.getHub = function (hubName) {\n ...
javascript
edit
0
2
mit
29996cdafbf6bb90b28905d0d509a3d05ae8c415
ethanhann/eeh-signalr
src/eeh-signalr.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar xmlHttp = new XMLHttpRequest();\n\nxmlHttp.onreadystatechange = function() {\n if (xmlHttp.readyState === 4) {\n var releasesData = JSON.parse(xmlHttp.responseText);\n var totalDownloads = releasesData.reduce(\n function...
javascript
edit
0
3
mit
7f57375c6a1b5534f3721529ca14889707bb8301
LiveSplit/LiveSplit.github.io,LiveSplit/LiveSplit.github.io,LiveSplit/LiveSplit.github.io
_includes/download-count.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport openDevToolsWindow from './openWindow';\n\nexport default function createMenu() {\n const menus = [\n { id: 'devtools-left', title: 'To left' },\n { id: 'devtools-right', title: 'To right' },\n { id: 'devtools-bottom', ...
javascript
edit
0
2
mit
8b5ef7b10fbf7e46c24d5ad601f8b37407f2e9e6
zalmoxisus/redux-devtools-extension,zalmoxisus/redux-devtools-extension
src/browser/extension/background/contextMenus.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nangular.module('proxtop').controller('MainController', ['$scope', 'ipcManager', '$state', 'notification', '$mdToast', '$translate', 'settings', '$mdDialog', 'open', '$window', 'debounce',\n function($scope, ipcManager, $state, notifi...
javascript
edit
0
2
mit
b345af1d7f6380bb944d74b3b6c558bde913a1c6
kumpelblase2/proxtop,kumpelblase2/proxtop,kumpelblase2/proxtop,kumpelblase2/proxtop
src/ui/main/main.controller.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport { moduleForComponent, test } from 'ember-qunit';\nimport hbs from 'htmlbars-inline-precompile';\nimport { find, fillIn } from 'ember-native-dom-helpers';\nimport { skip } from 'qunit';\n\nmoduleForComponent('medium-editor', 'Inte...
javascript
edit
0
1
mit
2143c25bcf5b2a2fc485db3969bca44e1670f972
kolybasov/ember-medium-editor,kolybasov/ember-medium-editor
tests/integration/components/medium-editor-test.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst sheet = document.createElement('style');\n\nsheet.innerHTML = `\n@media screen {\n #viewSourceHeader.📖-view-source-header {\n display: block !important;\n }\n}\n.📖-view-source-header {\n display: none;\n top: 0;\n left: ...
javascript
edit
0
0
mit
f3eab0dc2b6a123bb555e58c2fa06f6c8034f997
evnbr/bindery,evnbr/bindery
docs/js/viewSourceButton.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n//\n// Reusable, domain-specific prop types\n//\nimport PropTypes from \"prop-types\"\n\n// could be an enum if this is a fixed set of strings?\nexport const category = PropTypes.string\n\nexport const user = PropTypes.shape({\n given_...
javascript
edit
0
0
mit
2ddd41a50432c8b4949420f55432dc2688073404
stride-nyc/remote_retro,stride-nyc/remote_retro,stride-nyc/remote_retro,samdec11/remote_retro
web/static/js/prop_types.js
accepted
null
true
[ { "role": "user", "content": "Write javascript code for the following: Use another jquery for chrome font bug" }, { "role": "assistant", "content": "jQuery(function($) {\n if (/chrom(e|ium)/.test(navigator.userAgent.toLowerCase())) {\n $('body').css('opacity', '1.0')\n }\n})" } ]
javascript
new_file
0
2
mit
5750a5fc7e1857135652dfead218eaba58acebb1
philipyoo/philipyoo.github.io,philipyoo/philipyoo.github.io
js/chrome-font-bug.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nclass GelatoRouter extends Backbone.Router {\n\n execute(callback, args, name) {\n if (this.page) {\n this.page.remove();\n }\n\n this.trigger('navigate:before', args, name);\n callback && callback.apply(this, args);\n...
javascript
edit
0
4
mit
a0de5c005117b4de07c7e18f4d640407567cadb9
mcfarljw/backbone-gelato,jernung/gelato,mcfarljw/gelato-framework,jernung/gelato,mcfarljw/backbone-gelato,mcfarljw/gelato-framework
src/modules/Router.js
rejected_duplicate
Near-duplicate of sample 69414
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/* global requirejs */\n\nfunction _hasEmberData() {\n let matchRegex = /^ember-data/i;\n return !!(Object.keys(requirejs.entries).find(e => !!e.match(matchRegex)));\n}\n\n/**\n @hide\n*/\nexport const hasEmberData = _hasEmberData();...
javascript
edit
0
2
mit
2f53902981e06ce3fc2eb70b9f8c2ff54d34d1a8
samselikoff/ember-cli-mirage,samselikoff/ember-cli-mirage,samselikoff/ember-cli-mirage,samselikoff/ember-cli-mirage
addon/utils/ember-data.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar get = Ember.get;\n\nFP.PromiseModel = Ember.ObjectProxy.extend(Ember.PromiseProxyMixin, {\n\n // forward on all content's functions where it makes sense to do so\n _setupContentForwarding: function() {\n var obj = get(this, \"c...
javascript
edit
0
5
mit
3975ffed38b419a7ee6e88846a20de9c06c52c08
rlivsey/fireplace,rlivsey/fireplace,pk4media/fireplace,pk4media/fireplace
packages/fireplace/lib/model/promise_model.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst configuration = require('../config')\nconst fetch = require('node-fetch')\nconst { URL } = require('url')\n\nasync function checkDeliveryService () {\n const config = configuration.get()\n const { deliveryServiceURL, bot } = con...
javascript
edit
0
3
mit
34bbeb674a0920ff905a756c86189de6d68ef87d
synzen/Discord.RSS,synzen/Discord.RSS
src/initialization/checkDeliveryService.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nfunction renderThumbNail( data, type, row, meta ) {\r\n\t\r\n\tif(! window.dogList) {\t\t\r\n\t\twindow.dogList = {};\r\n\t\twindow.dogList.snapshotUrl = '${SNAPSHOTURL}';\r\n\t\twindow.dogList.previewfileKey = '${PREVIEWKEY}';\r\n\t\tw...
javascript
edit
0
2
apache-2.0
036d25053c76af592d67604788a594d5dfc3564c
djays123/KTrack,djays123/KTrack,djays123/KTrack
src/main/resources/ktrack/ui/js/doglist.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar mongoose = require('mongoose');\nvar Schema = mongoose.Schema;\n\nvar LocationSchema = new Schema({\n\tname: String,\n\tcity: String,\n\taddress: String,\n\timg: String,\n\tdescription: String,\n\temail: String,\n\tsage_...
javascript
edit
0
0
mit
a2d4b2c426fdb294f17f9ad7b357cbb63c1beb27
10layer/jexpress,10layer/jexpress
models/location_model.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nconst _path = require('path');\n\nclass Listing {\n\n /**\n * Create path listing\n * @param path {string} Filepath\n */\n constructor({path}){\n let stat = _path.parse(path);\n\n /**\n * @type {string...
javascript
edit
0
1
mit
bf9c652ca37b77d5e3bc8db252b5d37cded3d4cb
Sieabah/namespacer-js
lib/Listing.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/*\n * stompit.connect\n * Copyright (c) 2013 Graham Daws <<EMAIL>>\n * MIT licensed\n */\n\nvar net = require('net');\nvar util = require('./util');\nvar Client = require('./client');\n\nfunction connect(){\n \n var args ...
javascript
edit
0
4
mit
9982f93e29be38e58414fd3e4885e94b686d8b39
gdaws/node-stomp
lib/connect.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports = {\n /**\n * @param {string} testFilePath - file path of a test\n * @param {array} tags - tags to match\n * @returns {boolean} true if specified test matches given tag\n */\n tags: function (testFilePath, tags)...
javascript
edit
0
3
mit
aa15181c91499d063194767f4d9d097e34951c7d
lukaszw82/nightwatch,mbixby/nightwatch,campbellwmorgan/nightwatch,LucioFranco/nightwatch,ervinb/nightwatch,sethmcl/nightwatch,CoderK/nightwatch,JonDum/nightwatch,obulisaravanan/nightwatch,Crunch-io/nightwatch,sknopf/nightwatch,vuthelinh/nightwatch,campbellwmorgan/nightwatch,awatson1978/nightwatch,beatfactor/nightwatch,...
lib/runner/matcher.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar async = require('async');\n\nvar AndThen = function(obj, ev) {\n var args,\n triggerCallbacks,\n callbacks = [];\n\n triggerCallbacks = function() {\n for(var i = 0; i < callbacks.length; ++i) {\n ...
javascript
edit
0
2
bsd-2-clause
3d8d4d29b63b1dd8866e4434ab98351259fb119b
1stvamp/dowhen.js
lib/andthen.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n;(function() {\n \"use strict\";\n\n require(\"BaseController\").init({\n siteName: \"Amazon Music\",\n playPause: \"[playeraction=togglePlay]\",\n playNext: \"[playeraction=next]\",\n playPrev: \"[playeraction=previous]\"...
javascript
edit
0
2
mit
596378aaaf7b49ee70f3b2adccc7c493cf181bb6
berrberr/streamkeys,alexesprit/streamkeys,nemchik/streamkeys,ovcharik/streamkeys,alexesprit/streamkeys,ovcharik/streamkeys,berrberr/streamkeys,nemchik/streamkeys,berrberr/streamkeys,nemchik/streamkeys
code/js/controllers/AmazonController.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar util = require('../src/util/seeds');\n\n\nexports.seed = function(knex, Promise) {\n const cities = {};\n\n return knex('cities').select('*')\n .then(rows => {\n rows.forEach(city => {\n cities[city.name] = city.id;\n ...
javascript
edit
0
1
mit
56facbb756f2a0c5d3a3346d252f5b46a0a82087
futurice/wappuapp-backend,futurice/wappuapp-backend,kaupunki-apina/prahapp-backend,kaupunki-apina/prahapp-backend
seeds/radios.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nisic.views.TermsAcceptanceView = isic.View.extend({\n events: {\n 'click #isic-terms-accept': function (event) {\n if (girder.currentUser) {\n girder.currentUser.setAcceptTerms(function () {\n ...
javascript
edit
0
2
apache-2.0
1aeb2fd9aa51e2c81b766ae0b616bc302c30f8f7
ImageMarkup/isic-archive,ImageMarkup/isic-archive,ImageMarkup/isic-archive,ImageMarkup/isic-archive
web_external/Legal/TermsAcceptanceView.js
rejected_duplicate
Near-duplicate of sample 87698
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: 01 June, 2016\n * License: MIT\n *\n * React App Main ...
javascript
edit
null
null
mit
26e95b1a4f42056ab7abfec2db00bb43b43d0dff
kushalpandya/poster,kushalpandya/poster
app/components/Views/Home.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\n function NodeNameController($scope) {\n \n var vm = this;\n var element = angular.element($scope.model.currentStep.element);\n\n vm.error = false;\n \n ...
javascript
edit
0
2
mit
52c3ea24d58172457f8a529ee8ef666fa1957b4a
nul800sebastiaan/Umbraco-CMS,robertjf/Umbraco-CMS,arknu/Umbraco-CMS,leekelleher/Umbraco-CMS,JimBobSquarePants/Umbraco-CMS,dawoe/Umbraco-CMS,KevinJump/Umbraco-CMS,PeteDuncanson/Umbraco-CMS,rasmuseeg/Umbraco-CMS,robertjf/Umbraco-CMS,abjerner/Umbraco-CMS,tompipe/Umbraco-CMS,madsoulswe/Umbraco-CMS,abjerner/Umbraco-CMS,WebC...
src/Umbraco.Web.UI.Client/src/views/common/tours/umbintrocreatecontent/nodename/nodename.controller.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React from 'react';\nimport * as styles from './PopOver.scss';\n\nconst PopOver = ({ next, active, first, last, previous, xPos, yPos, children }) => {\n if (!active) {\n return null;\n }\n const text = last ? 'End' : 'Next'...
javascript
edit
0
6
mit
2e091bb930f8c1ecc686b97396e40187cabe154f
ivtpz/brancher,ivtpz/brancher
app/components/PopOver.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/*\n * Copyright (C) 2015 Glyptodon LLC\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without...
javascript
edit
0
0
mit
0335bb8d41342818e2b4020e3231b5aa500ce17d
mike-jumper/guacamole-legacy-urls
src/main/resources/legacyUrlModule.js
accepted
null
true