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// import { RedisPubSub } from 'graphql-redis-subscriptions';\nimport { PubSub } from 'graphql-subscriptions';\n\nconst pubsub = new PubSub();\n/*\nconst pubsub = new RedisPubSub({\n connection: {\n host: 'redis.ralexanderson.com',\...
javascript
edit
0
0
apache-2.0
92d8cf6dbaa7145f225366a874f1b69a6382b1c3
Thorium-Sim/thorium,Thorium-Sim/thorium,Thorium-Sim/thorium,Thorium-Sim/thorium
server/helpers/subscriptionManager.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport { createStore, applyMiddleware, compose } from 'redux'\nimport { browserHistory} from 'react-router'\nimport { syncHistoryWithStore, routerMiddleware } from 'react-router-redux'\n\nimport createReducer from './reducers'\nimport c...
javascript
edit
0
4
mit
a20e046f7b866fe23a6cb6547653ab97107deac9
luxons/seven-wonders,luxons/seven-wonders,luxons/seven-wonders
frontend/src/store.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React from 'react';\nimport ClipboardJS from 'clipboard';\nimport 'balloon-css/balloon.css';\nimport levelNames from \"../constants/levelNames\";\n\nexport default class CopyButton extends React.PureComponent {\n constructor(pro...
javascript
edit
0
1
mit
98df85a394c3d3b64f017cfcf8481dead53bd858
cofacts/rumors-site,cofacts/rumors-site
components/CopyButton.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst massToRadius = mass => Math.log2(mass)/10;\n\nconst translate = (object3D, velocity) => {\n object3D.translateX(velocity.x);\n object3D.translateY(velocity.y);\n object3D.translateZ(velocity.z);\n}\n\nconst rand = (min, max) =>...
javascript
edit
0
2
mit
5ce70bfc71c927a7abce4de2a1ac5840003ceebd
elliotaplant/celestial-dance,elliotaplant/celestial-dance
src/js/Helpers/VectorHelpers.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/* global $ */\n'use strict'\n\n/**\n * Email repeat\n */\nfunction EmailRepeat (element, config) {\n var options = {}\n\n $.extend(options, config)\n\n // Private variables\n var hintWrapper\n var hint\n\n /**\n * Set everythin...
javascript
edit
0
2
mit
f163eac1c635e9573cc2c11083312acd0cce9c21
LandRegistry/land-registry-elements,LandRegistry/land-registry-elements,LandRegistry/land-registry-elements,LandRegistry/land-registry-elements,LandRegistry/land-registry-elements
src/land_registry_elements/email-repeat/EmailRepeat.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP\n\nimport CSSClassnames from './CSSClassnames';\n\nconst CLASS_ROOT = CSSClassnames.APP;\n\nfunction clearAnnouncer() {\n const announcer = document.querySelector(`.$...
javascript
edit
0
2
apache-2.0
4f6299f4e88e89c0cd0971f318eef6823ae0cfc2
nickjvm/grommet,nickjvm/grommet,HewlettPackard/grommet,linde12/grommet,HewlettPackard/grommet,kylebyerly-hp/grommet,HewlettPackard/grommet,grommet/grommet,grommet/grommet,grommet/grommet
src/js/utils/Announcer.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nfunction every(array, test) {\n for (var i = 0; i < array.length; ++i) {\n if (!test(array[i]))\n return false;\n }\n return true;\n}\n\nfunction some(array, test) {\n for (var i = 0; i < array.length; ++i)...
javascript
edit
0
2
mit
67a3aee413c05e895ed200b6cb1912bcebd538dd
bewuethr/ctci
eloquent_js_exercises/chapter05/chapter05_ex04.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n$(function() {\n $( \"#topic-2\" ).tabs();\n $( \"#topic-3\" ).tabs();\n $( \"#topic-5\" ).tabs();\n $( \"#topic-6\" ).tabs();\n $( \"#topic-7\" ).tabs();\n $( \"#topic-8\" ).tabs();\n\n // Hover states on the static widgets\n $...
javascript
edit
0
2
mit
2afc346f0fa3492cdbadff72dd47abec9b53fe76
lostapathy/sass-site,Mr21/sass-site,mikaspell/sass-site-rus,lostapathy/sass-site,sass/sass-site,mikaspell/sass-site-rus,Mr21/sass-site,mikaspell/sass-site-rus,arhoads/sass-site,una/sass-site,lostapathy/sass-site,sass/sass-site,una/sass-site,arhoads/sass-site,Mr21/sass-site,sass/sass-site,una/sass-site,arhoads/sass-site
source/assets/js/components/sass-syntax-switcher.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React from 'react';\n\nexport default (components, className, onClick) => (\n <div className={className + ' horizontal'} onClick={onClick}>\n {components[0]}\n </div>\n);\n\n```\n\nApply this change: Make the 1-1 lay...
javascript
edit
0
1
mit
572baf69c38359e6f86df7a0ce53ae4a3d440ae7
nuruddeensalihu/binary-next-gen,binary-com/binary-next-gen,binary-com/binary-next-gen,binary-com/binary-next-gen,nazaninreihani/binary-next-gen,nazaninreihani/binary-next-gen,nuruddeensalihu/binary-next-gen,nazaninreihani/binary-next-gen,nuruddeensalihu/binary-next-gen
src/layouts/layout-1-1.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/*!\n * TemplateLayout Wef plugin\n * Copyright (c) 2011 Pablo Escalada\n * MIT Licensed\n */\n\n//requires: cssParser\n//exports: templateLayout\n(function () {\n var templateLayout = {\n name:\"templateLayout\",\n ver...
javascript
edit
0
1
mit
61a3ac70939314548f8e3d31a2de6124cc72cce1
diesire/wef,diesire/wef,diesire/wef
plugins/templateLayout/src/templateLayout.wef.js
rejected_duplicate
Near-duplicate of sample 109088
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n#!/usr/bin/env node\n\nvar express = require('express'),\n kotoumi = require('./index'),\n http = require('http');\n\nvar application = express();\nvar server = http.startServer(application);\napplication.kotoumi({\n prefix: '',\...
javascript
edit
0
0
mit
39a9f5fd3f0c2c5ab00f51c36c21b281e0476928
KitaitiMakoto/express-droonga,droonga/express-droonga,KitaitiMakoto/express-droonga,droonga/express-droonga
application.js
rejected_duplicate
Near-duplicate of sample 82342
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nvar mongoose = require('mongoose'),\n\tutils = require('../utils'),\n\tUser = mongoose.model('User'),\n\tApplication = mongoose.model('Application'),\n\tSimpleApiKey = mongoose.model('SimpleApiKey'),\n\tOauthConsumer = ...
javascript
edit
0
3
apache-2.0
8e5dfec02570e58741c6a92b694d854efbcc23f2
Splaktar/hub,fchuks/hub,gdg-x/hub,Splaktar/hub,nassor/hub,gdg-x/hub,nassor/hub,fchuks/hub
lib/controllers/api/v1/users.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport {text} from 'incremental-dom'\n\nexport function item(value) {\n if(typeof value == 'function') {\n value()\n } else {\n text(value)\n }\n}\n\n```\n\nApply this change: Fix incorrect key propagation to chil...
javascript
edit
0
2
apache-2.0
19b3f18accbbe1dccceae3e3471fc20ade51c914
tailhook/khufu
khufu-runtime/src/dom.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n * @class CM_FormField_Integer\n * @extends CM_FormField_Abstract\n */\nvar CM_FormField_Integer = CM_FormField_Abstract.extend({\n\t_class: 'CM_FormField_Integer',\n\n\tready: function() {\n\t\tvar field = this;\n\t\tvar $slider =...
javascript
edit
0
1
mit
22aadec7318bbf4c79bb14d2615cef9480c7469f
njam/CM,fauvel/CM,cargomedia/CM,tomaszdurka/CM,alexispeter/CM,tomaszdurka/CM,fvovan/CM,alexispeter/CM,fauvel/CM,vogdb/cm,alexispeter/CM,fvovan/CM,zazabe/cm,zazabe/cm,vogdb/cm,njam/CM,alexispeter/CM,mariansollmann/CM,vogdb/cm,cargomedia/CM,vogdb/cm,tomaszdurka/CM,zazabe/cm,cargomedia/CM,mariansollmann/CM,vogdb/cm,fauvel...
library/CM/FormField/Integer.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n\nexport default function stringManipulation() {\n this.stringConcat = function stringConcat(...stringToConcat) {\n return stringToConcat.join('');\n };\n\n this.stringDateTime00Format = function stringDateTime00Format(dateTimeNum...
javascript
edit
0
3
mit
385fa00d3219f84eec099ebf2551e8941f5e7262
nus-mtp/sashimi-note,nus-mtp/sashimi-note,nus-mtp/sashimi-note
sashimi-webapp/src/database/stringManipulation.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\njest.unmock('./../Footer');\n\nimport React from 'react';\nimport ReactDOM from 'react-dom';\nimport TestUtils from 'react-addons-test-utils';\nimport Footer from './../Footer';\n\ndescribe('Footer', () => {\n\n it('ve...
javascript
edit
0
1
mit
fa62c68db63dd7e8ca0543947191d2586aed76e4
afonsopacifer/react-pomodoro,afonsopacifer/react-pomodoro
app/components/Footer/__tests__/Footer-test.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar encodeSummaryArticle = require('../json/encodeSummaryArticle');\n\n/**\n Encode summary to provide an API to plugin\n\n @param {Output} output\n @param {Config} config\n @return {Object}\n*/\nfunction encodeSummary(outpu...
javascript
edit
0
1
apache-2.0
bb910f984edd8080e5fe1d1b34a7dfec7ac9d785
gencer/gitbook,ryanswanson/gitbook,tshoper/gitbook,tshoper/gitbook,strawluffy/gitbook,GitbookIO/gitbook,gencer/gitbook
lib/api/encodeSummary.js
rejected_duplicate
Near-duplicate of sample 71637
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/*eslint-env node */\n\nvar m = require(\"mithril\");\n\nvar tabs = require(\"./polythene_tabs\");\ntabs.onClick(function(newIndex, oldIndex) {\n var h = require(\"./headers\")[newIndex];\n grid.setRef(require(\"./firebase_ref\")....
javascript
edit
0
1
mit
ed9a606f20b97646d23bd23f693f2fe630394422
1stop-st/frame
src/scripts/data_table.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React from 'react';\nimport {Icon} from '../iconography';\nimport classnames from 'classnames';\nimport PropTypes from 'prop-types';\n\nexport class Input extends React.Component {\n static propTypes = {\n size: PropTypes.str...
javascript
edit
0
1
mit
3d0c696f418fa672231c32737d706a62e5c5d9af
pivotal-cf/pivotal-ui,pivotal-cf/pivotal-ui,pivotal-cf/pivotal-ui
src/react/inputs/input.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n * Show confirm popup, when user close tab with non-synchronized actions.\n *\n * @param {Syncable|Client} client Observed Client instance\n * or object with `sync` property.\n * @param {String} [war...
javascript
edit
0
3
mit
411c9404e0dedc5cd79a5b09d3afb6bfb7d69e0a
logux/logux-client,logux/logux-client
confirm.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nangular.module('proxtop', ['ngMaterial', 'ui.router', 'angular-progress-arc', 'pascalprecht.translate'])\n .config(['$stateProvider', '$urlRouterProvider', '$translateProvider', function($stateProvider, $urlRouterProvider, $translate...
javascript
edit
0
1
mit
4aa75606353bd190240cbfd559eb291a891a7432
kumpelblase2/proxtop,kumpelblase2/proxtop,kumpelblase2/proxtop,kumpelblase2/proxtop
src/ui/app.js
rejected_duplicate
Near-duplicate of sample 109303
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar path = require('path');\nvar fs = require('fs-extra');\nvar pug = require('pug');\n\nvar buildUtils = require('../examples/build-utils');\n\n// generate the tutorials\nfs.ensureDirSync('website/source/tutorials');\nvar tutorials = b...
javascript
edit
0
1
apache-2.0
0ec9d4ed2037fb68143bb9d816cf679ee099b2bd
Kitware/geojs,OpenGeoscience/geojs,OpenGeoscience/geojs,Kitware/geojs,Kitware/geojs,OpenGeoscience/geojs
tutorials/build-website.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n(function () {\n var _console = window.console;\n var _methods = {\n log: window.console.log,\n error: window.console.error,\n info: window.console.info,\n debug: window.console.debug,\n clear: w...
javascript
edit
0
2
mit
94d8fd7c76248223fad33e9b5c964b3824db722f
eu81273/jsfiddle-console
console.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/*\nWonder how this works?\nStorage is the Prototype of both localStorage and sessionStorage.\nGot it?\n*/\n\n(function() {\n 'use strict';\n\n Storage.prototype.set = function(key, obj) {\n var t = typeof obj;\n if (t==='undefi...
javascript
edit
null
null
mit
e7fae9c368829013857e03316af06ed511bbfbe8
zevero/simpleWebstorage
extendStorage.js
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar path = require('path');\nvar url = require('url');\n\nvar closure = require('closure-util');\nvar nomnom = require('nomnom');\n\nvar log = closure.log;\n\nvar options = nomnom.options({\n port: {\n abbr: 'p',\n 'default': 300...
javascript
edit
0
1
bsd-2-clause
3c34ff5ce1b1dc7d609a458b7483762a88c87179
openlayers/ol3-cesium,gejgalis/ol3-cesium,phuree/ol-cesium,fredj/ol3-cesium,openlayers/ol-cesium,fredj/ol3-cesium,phuree/ol-cesium,ahocevar/ol3-cesium,gberaudo/ol3-cesium,oterral/ol3-cesium,thhomas/ol3-cesium,gberaudo/ol3-cesium,bartvde/ol3-cesium,camptocamp/ol3-cesium,openlayers/ol-cesium,thhomas/ol3-cesium,fredj/ol3-...
build/serve.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nangular.module('Shazam2Spotify')\n\t.config(function() {\n\t\t// Load SVG icons (dirty, should not use jQuery...)\n\t\t$.ajax({\n\t\t\turl: 'img/icons.svg',\n\t\t\tmethod: 'GET',\n\t\t\tdataType: 'html',\n\t\t\tsuccess: function(data) {...
javascript
edit
0
1
mit
54181a9a43eddee7a19e8fd7ffb29a37ee8fd4d9
leeroybrun/chrome-shazify,leeroybrun/chrome-shazify
src/popup/js/config/svgIcons.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// Load css\nrequire('leaflet/dist/leaflet.css');\nrequire('leaflet-draw/dist/leaflet.draw.css');\nrequire('leaflet.markercluster/dist/MarkerCluster.css');\nrequire('leaflet.markercluster/dist/MarkerCluster.Default.css');\nrequire('leaf...
javascript
edit
0
0
mit
1077451e514b05a4bf12d8032f55e403fa96c877
ellisonbg/leafletwidget,ellisonbg/leafletwidget
js/src/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\ndefine([], function() {\n\n /**\n * List of the key languages of the platform\n */\n\n var languageList = {\n en: 'English',\n zh: '中文',\n fr: 'Français',\n id: 'Bahasa Indonesia',\n pt_BR: 'Português (Brasil)',\n ...
javascript
edit
0
3
mit
e4748c49a296ceae8a2ecf2b91d8dd9bcb81abbd
Vizzuality/gfw,Vizzuality/gfw
app/assets/javascripts/helpers/languagesHelper.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n * homepage.js - Homepage tests.\n */\n\nvar x = require('casper').selectXPath;\ncasper.options.viewportSize = {width: 1920, height: 961};\ncasper.on('page.error', function(msg, trace) {\n this.echo('Error: ' + msg, 'ERROR');\n ...
javascript
edit
0
2
mit
1ae13b69aba04aefcdfc6ac5022db03945e96f96
emmetog/demo-docker-microservice-app,emmetog/demo-docker-microservice-app,emmetog/demo-docker-microservice-app,emmetog/demo-docker-microservice-app,emmetog/demo-docker-microservice-app,emmetog/demo-docker-microservice-app
tests/web/casperjs/homepage.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/*jslint indent: 2 */\n/*global $: false, document: false, togglbutton: false*/\n'use strict';\n\n/* the first selector is required for youtrack-5 and the second for youtrack-6 */\ntogglbutton.render('.fsi-toolbar-content:not(.toggl), ....
javascript
edit
0
2
bsd-3-clause
3a8a1f0d1f9fc7d5a38aba6e5bd042086c488adb
glensc/toggl-button,andreimoldo/toggl-button,eatskolnikov/toggl-button,eatskolnikov/toggl-button,andreimoldo/toggl-button,glensc/toggl-button,bitbull-team/toggl-button,glensc/toggl-button,bitbull-team/toggl-button
src/scripts/content/youtrack.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar _ = require('lodash');\nvar async = require('async');\n\nvar joy = require('./joy/joy.js');\n\nvar schemas = {\n 'basal-rate-segment': require('./basal'),\n bolus: require('./bolus'),\n cbg: require('./bg'),\n common: require('....
javascript
edit
0
3
bsd-2-clause
d2d8ef7e882dcf28ae306780bb463e800b0ad15c
tidepool-org/tideline,tidepool-org/tideline
js/validation/validate.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar util = require('util'),\n webdriver = require('selenium-webdriver');\n\nvar driver = new webdriver.Builder().\n usingServer('http://localhost:4444/wd/hub').\n withCapabilities({'browserName': 'chrome'}).\n build();\n\n//...
javascript
edit
0
0
mit
08d124de7b69cc5ff47f02230145c0a7b667cad6
juliemr/webdriver-bugs
chrome-keys.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport { findChild, findAllChildren } from '../util/domHelpers'\n\n/**\n * A converter for JATS `<disp-quote>`.\n * Our internal model deviates from the original one in that the the attribution is separated from\n * the quote content by...
javascript
edit
0
3
mit
5e0f5b68b4e085968544f9ff52eb3f7bc7558b81
substance/texture,substance/texture
src/article/converter/r2t/DispQuoteConverter.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar expect = require('chai').expect;\nvar permuterFactory = require('../index').permuterFactory;\n\ndescribe('permuter', function () {\n it('should work stand-alone', function () {\n var permuter = permuterFactory(['a','b']);\n e...
javascript
edit
0
1
mit
f3ceda6f44b63bbef13e11345722805054b537e5
tylerpeterson/node-swiss-army-knife
test/TestPermuteReduce.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// Dpeendencies\nvar EngineParserGen = require(\"../lib\");\n\n// \"test-app\" should be a valid Engine app in $ENGINE_APPS dir\nvar epg = new EngineParserGen(\"test-app\");\n//epg.parse(function (err, parsed) {\n// debugger\n//});\n...
javascript
edit
0
2
mit
3a06fc67796abb9c93a7c607e2d766dc065f1fd6
jillix/engine-parser
example/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport compileClient from \"../compileClient\"\nimport handleCompilationErrors from \"../handleCompilationErrors\";\nimport setupLogging from \"../setupLogging\";\nimport logProductionWarnings from \"../logProductionWarnings\";\n\nconst...
javascript
edit
0
2
apache-2.0
4e1b941dac03bca3acb0143ad91daa1f9a3e2936
emecell/react-server,davidalber/react-server,redfin/react-server,lidawang/react-server,doug-wade/react-server,szhou8813/react-server,doug-wade/react-server,redfin/react-server,szhou8813/react-server,lidawang/react-server,davidalber/react-server,emecell/react-server
packages/react-server-cli/src/commands/compile.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar chai = require('chai');\nvar chaiAsPromised = require('chai-as-promised');\n\nchai.use(chaiAsPromised);\n\nvar expect = chai.expect;\nvar rollupBabelLibBundler = require('../lib');\n\ndescribe('rollup-babel-lib-bundler', function() ...
javascript
edit
0
2
mit
4d0ee58f3adb7f9862c0000664989c40335f7abd
frostney/rollup-babel-lib-bundler
test/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// --------------------------------------------------------------------\n// Imports\n// --------------------------------------------------------------------\n\nvar common = require('./common.js');\nvar pexprs = require('./pexprs.js');\n...
javascript
edit
0
3
mit
6695b1260a4e325e1a9ace924f9d81d108178d37
DanielTomlinson/ohm,cdglabs/ohm,DanielTomlinson/ohm,anfedorov/ohm,coopsource/ohm,anfedorov/ohm,coopsource/ohm,coopsource/ohm,cdglabs/ohm,anfedorov/ohm,harc/ohm,cdglabs/ohm,harc/ohm,harc/ohm,DanielTomlinson/ohm
src/pexprs-toExpected.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';...
javascript
edit
null
null
mit
63bfd706d40c35b14fd852ff1efa8e0eb6237f08
facebook/react-native,facebook/react-native,hammerandchisel/react-native,arthuralee/react-native,janicduplessis/react-native,facebook/react-native,javache/react-native,exponent/react-native,myntra/react-native,javache/react-native,exponentjs/react-native,facebook/react-native,janicduplessis/react-native,janicduplessis/...
RNTester/js/examples/XHR/XHRExampleAbortController.js
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar _ = require('underscore');\n\nmodule.exports = function(name) {\n \n var nameConversions = [\n firstInitialAndLastName = /^(\\w).*\\s(\\w+)$/,\n firstAndLastName = /^(\\w+)\\s(\\w+)$/,\n firstNameAndLastInitial = /^(\\w+)...
javascript
edit
null
null
mit
d38e1808a476d6783bf9ea0989e8dfb61ad6b731
stevekinney/node-fake-email
lib/name-formatter.js
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport store from \"src/stores/Store.js\";\n\ndescribe(\"store\", () => {\n\n it(\"should exist\", () => {\n store.should.exist;\n });\n\n it(\"should have all API methods\", () => {\n store.dispatch.should.be.a.function;\n ...
javascript
edit
0
1
mit
1c6cfedaca2be22f1720b4f6cd64764199be173e
Lingvokot/Tic-Tac-Toe-React,Lingvokot/Tic-Tac-Toe-React,Lingvokot/Tic-Tac-Toe-React
test/stores/Store.spec.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport Ember from 'ember';\n\nexport default Ember.Component.extend({\n isShowingHover: false,\n\n commitTitle: function() {\n if (this.get('vm.commit.title').match(/^Merge/)) {\n return this.get('vm.commit.title').replace(/ o...
javascript
edit
0
6
mit
18a90886ef4ea64a75ff0182af60dff5a308052e
ricofehr/nextdeploy-webui,ricofehr/nextdeploy-webui
app/components/vm-hover.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport DefaultConfig from 'anyware/lib/game-logic/config/default-config';\nimport GAMES from 'anyware/lib/game-logic/constants/games';\n\nclass Config extends DefaultConfig {\n constructor() {\n super();\n\n this.CLIENT_CONNECTIO...
javascript
edit
0
1
mit
5abc414fc9e8249a1a89f4c7d5aa9e9c4f821e7d
anyWareSculpture/sculpture-emulator-client,anyWareSculpture/sculpture-emulator-client
src/config.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\ndefine(function (require) {\n\n var a = require('./a.js?v=1.0');\n var a2 = require('./a.js?v=2.0');\n\n var test = require('../../test');\n test.assert(a.foo === 1, 'module version.');\n test.assert(a.foo === a2.foo, 'module versi...
javascript
edit
0
1
mit
399a94ec926e48935a9a2d7139c1ef477125bd25
zaoli/seajs,angelLYK/seajs,zwh6611/seajs,yuhualingfeng/seajs,zwh6611/seajs,imcys/seajs,tonny-zhang/seajs,lee-my/seajs,ysxlinux/seajs,lianggaolin/seajs,mosoft521/seajs,FrankElean/SeaJS,judastree/seajs,angelLYK/seajs,tonny-zhang/seajs,chinakids/seajs,lee-my/seajs,yuhualingfeng/seajs,tonny-zhang/seajs,jishichang/seajs,lon...
test/modules/version/program.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nmodule.exports = {\n getClassesFromSelector: function (selector) {\n if (!selector) {\n return [];\n }\n var classRegEx = /[_a-zA-Z][_a-zA-Z0-9-]*/g;\n return selector.match(cla...
javascript
edit
0
3
mit
5697e7eab5f1402a2e4ab7922e2f044429c8ac64
timeinfeldt/grunt-csschecker,timeinfeldt/grunt-csschecker
lib/helpers/helpers.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar webpack = require('webpack');\n\nmodule.exports = function (config) {\n config.set({\n\n browsers: [ process.env.CONTINUOUS_INTEGRATION ? 'Firefox' : 'Chrome' ],\n\n singleRun: process.env.CONTINUOUS_INTEGRATION === 'true',\n...
javascript
edit
0
2
mit
36829b9b66474d38de527f2d1457c32b86500402
careerlounge/react-router,yanivefraim/react-router,kelsadita/react-router,rkit/react-router,qimingweng/react-router,Nedomas/react-router,calebmichaelsanchez/react-router,Gazler/react-router,vic/react-router,amplii/react-router,Semora/react-router,mozillo/react-router,FredKSchott/react-router,dozoisch/react-router,tmbte...
karma.conf.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports = grammar({\n name: 'ruby',\n\n rules: {\n program: $ => $._compound_statement,\n\n\t_compound_statement: $ => seq($._statement, rep(seq($._terminator, $._expression)), optional($._terminator)),\n\n\t_statement: $ =>...
javascript
edit
0
1
mit
abfe24acc0c7d37bd59f91b66c8479730b8dad27
tree-sitter/tree-sitter-ruby,tree-sitter/tree-sitter-ruby,tree-sitter/tree-sitter-ruby,tree-sitter/tree-sitter-ruby,tree-sitter/tree-sitter-ruby,tree-sitter/tree-sitter-ruby,tree-sitter/tree-sitter-ruby,tree-sitter/tree-sitter-ruby
grammar.js
rejected_duplicate
Near-duplicate of sample 94995
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nvar config = require('./server/config');\nvar express = require('express');\nvar handlebars = require('express-handlebars');\nvar app = express();\n\n// Middlewares configuration\nvar oneWeek = 604800000;\napp.use(expre...
javascript
edit
0
1
apache-2.0
c2179a52ea6c1a422061a25a83ee27428a5494fb
Softcadbury/FootballDashboard,Softcadbury/football-peek,Softcadbury/FootballDashboard,Softcadbury/DashboardFootball,Softcadbury/DashboardFootball
server.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// @flow\nimport * as React from 'react'\nimport { Redirect } from 'react-router-dom'\nimport performLogout from 'frontend/firebase/logout'\n\nclass Logout extends React.Component<*> {\n componentDidMount() {\n performLogout()\n }\...
javascript
edit
null
null
mit
c9ee70bdc817e010bd00468bac99daf236035e2e
jsonnull/aleamancer,jsonnull/aleamancer
src/frontend/pages/Logout/index.js
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport _ from 'lodash'\nimport https from 'https'\nimport axios from 'axios'\nimport * as task from './task'\nimport pipe from './pipe'\nimport pipes from './pipes'\nimport connections from './connections'\n\n\nvar base_url = 'https://w...
javascript
edit
0
2
mit
3c153d1b1ccdcbb4ce20d8c4f55af73adceccfbc
flexiodata/flexio-sdk-js,flexiodata/flexio-sdk-js
src/flexio.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nindexApp.controller('ProtocolListController',\n function ProtocolListController($scope, indexData, $location){\n $scope.protocolList = indexData.getProtocolList();\n\n $scope.deleteProtocol = function(p...
javascript
edit
0
1
mit
a6a74ccf7f7b42844bf8f50dc5db18c914b7f61e
GreyTeardrop/typeground,GreyTeardrop/typeground,GreyTeardrop/typeground
src/main/webapp/js/controller/ProtocolListController.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/* globals Player: false, Song: false */\n\ndescribe('Player', function() {\n var player;\n var song;\n\n beforeEach(function() {\n player = new Player();\n song = new Song();\n });\n\n it('should be able to play a Song', fun...
javascript
edit
0
1
mit
d24fe086319e786c18e9378178cbbfaca15978e6
Zywave/Retrospectre,Zywave/Retrospectre,Zywave/Retrospectre
src/tests/jasmine/client/unit/sample/spec/PlayerSpec.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React from 'react'\nimport { connect } from 'react-redux'\nimport { compose } from 'recompose'\n\nimport { updateVideo } from '../../actions/videos'\n\nimport { withDatabaseSubscribe } from '../hocs'\nimport CommentList from '../...
javascript
edit
0
1
mit
cd4c98d937e07c4d7c7d0750509cac40e1f1ffc3
mg4tv/mg4tv-web,mg4tv/mg4tv-web
src/components/videos/VideoView.js
rejected_duplicate
Near-duplicate of sample 72971
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst mongoose = require('mongoose');\nconst Schema = mongoose.Schema\n\n\nvar userSchema = new Schema({\n name: {type: String, required: true},\n photo: {type: String, required: true},\n email: {type: String, required: true, u...
javascript
edit
0
0
mit
2d9fe3d781899e9d2a4fbe4d49c71fdcfeba3808
JabroniZambonis/pLot
Server/Models/usersModel.js
rejected_duplicate
Near-duplicate of sample 71110
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// simple-todos.js\n\n// TODO: Add tasks from console to populate collection\n// On Server:\n// db.tasks.insert({ text: \"Hello world!\", createdAt: new Date() });\n// On Client:\n// Tasks.insert({ text: \"Hello world!\", createdAt: new...
javascript
edit
0
1
apache-2.0
e850a2ce6a17813c537f71807a26d42c4e0165db
MeteorHudsonValley/talks,MeteorHudsonValley/talks
2015-03-MHVLUG/webapp/webapp.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nvar mongoose = require('mongoose');\n\nmongoose.model('User', require('./User'));\n\nmongoose.connect(\"mongodb://localhost/passport-lesson\");\n\nmodule.exports = mongoose;\n\n```\n\nApply this change: Set mongoose to ...
javascript
edit
0
0
mit
a4443b203db029fe5ee7df682ca372259b3e4f1c
dhuddell/teachers-lounge-back-end
models/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nself.$config = {\n landing: false,\n debug: false,\n repo: 'soruly/whatanime.ga',\n twitter: 'soruly',\n url: 'https://whatanime.ga',\n sidebar: false,\n disableSidebarToggle: true,\n nav: {\n default: []\n },\n icons: [],\...
javascript
edit
0
0
mit
687fcbb285430d6d4df0758ef2eab4a048ab7f07
soruly/whatanime.ga,soruly/whatanime.ga,soruly/whatanime.ga
docs/config.js
rejected_duplicate
Near-duplicate of sample 108797
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar loaders = [\n { test: /\\.json$/, loader: \"json-loader\" },\n];\n\nmodule.exports = [\n {// Notebook extension\n entry: './src/extension.js',\n output: {\n filename: 'extension.js',\n path:...
javascript
edit
0
0
bsd-3-clause
07ec1f9de2c8a5233bdafbc0a16b606520ee1be8
jasongrout/pythreejs,jasongrout/pythreejs
js/webpack.config.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// SignupController\n// ================\n// Handles routing for signing up for the pp\n\n'use strict';\n\nlet express = require('express'),\n SignupController = express.Router(),\n bcrypt = require('bcrypt')...
javascript
edit
0
3
mit
1887b3c7024779ebb8873277b2472dbe9141d0f5
billpatrianakos/coverage-web,billpatrianakos/coverage-web,billpatrianakos/coverage-web
server/controllers/signup.js
rejected_duplicate
Near-duplicate of sample 72348
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport { autorun, observable } from 'mobx';\n\nimport { DEFAULT_FEATURES_CONFIG } from '../../config';\n\nconst debug = require('debug')('Franz:feature:spellchecker');\n\nexport const config = observable({\n isIncludedInCurrentPlan: DE...
javascript
edit
0
5
apache-2.0
40350431927e12b74874ebf17b761535cccc76c5
meetfranz/franz,meetfranz/franz,meetfranz/franz
src/features/spellchecker/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/*global Uint8Array*/\nvar exifParser = require('exif-parser'),\n fs = require('fs');\n\nmodule.exports = {\n name: 'unexpected-exif',\n version: require('../package.json').version,\n installInto: function (expect) {\n ...
javascript
edit
0
6
bsd-3-clause
682c1bc6ec836f3a16543845444aafabafa788f9
unexpectedjs/unexpected-exif
lib/unexpectedExif.js
rejected_duplicate
Near-duplicate of sample 81254
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/** @babel */\n\nimport childProcess from 'child_process'\nimport kill from 'tree-kill'\nimport { Disposable } from 'atom'\n\nexport default class ProcessManager extends Disposable {\n processes = new Set()\n\n constructor () {\n s...
javascript
edit
0
7
mit
5fc74d690fcf059940d7449bce11ec6b56b73eb2
thomasjo/atom-latex,thomasjo/atom-latex,thomasjo/atom-latex
lib/process-manager.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/* Copyright 2011 the Melange authors.\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 * ...
javascript
edit
0
1
apache-2.0
754eafc1736174f00d9d7b1ceb8df1b20af66417
rhyolight/nupic.son,rhyolight/nupic.son,rhyolight/nupic.son
app/soc/content/js/templates/modules/gsoc/_survey.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport fs from 'fs'\nimport postcss from 'postcss'\nimport tailwind from '..'\nimport CleanCSS from 'clean-css'\n\nfunction buildDistFile(filename) {\n return new Promise((resolve, reject) => {\n console.log(`Processing ./${filename...
javascript
edit
0
3
mit
f6e40afb28c93c3b537d73d2313fc2bf17e7548f
tailwindlabs/tailwindcss,tailwindlabs/tailwindcss,tailwindcss/tailwindcss,tailwindlabs/tailwindcss
src/build.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nvar net = require('net'),\n utils = require('radiodan-client').utils,\n logger = utils.logger(__filename);\n\nfunction create(port, socket) {\n var deferred = utils.promise.defer(),\n retries = 0,\n ...
javascript
edit
0
2
apache-2.0
6d0946dd4d0746486bc0290e65df86ead40337dd
radiodan/radiodan.js,radiodan/radiodan.js
lib/wait-for-socket.js
rejected_duplicate
Near-duplicate of sample 69477
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nexports.up = function(knex, Promise) {\n return knex.schema.\n createTable('paths', function (t) {\n t.increments('id');\n t.text('curator').notNullable();\n t.text('curator_org');\n t.specificTy...
javascript
edit
0
1
mit
1e7ce40caa9255e40bfabfc8c9238cae159d562a
coding-the-humanities/unacademic_backend,coding-the-humanities/unacademic_backend
migrations/1_add_paths.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\ndefine([\n \"less!src/stylesheets/main.less\"\n], function() {\n var manager = new codebox.tabs.Manager();\n\n // Add tabs to grid\n codebox.app.grid.addView(manager, {\n width: 20\n });\n\n // Render the tabs m...
javascript
edit
0
1
apache-2.0
2be619f254bf2794346c2482f16666b3670182ca
CodeboxIDE/package-panels,etopian/codebox-package-panels
src/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n#!/usr/bin/env node\nvar argv = process.argv.splice(2)\nvar log = require('./helpers/log.js')\nvar whitelist = ['build', 'run', 'test', 'lint', 'setup']\n\nif (argv.length === 0 || argv[0] === 'help') {\n console.log('abc [command]\\n\...
javascript
edit
0
0
mit
2af8c1d2919d0cbe9dd92c28058d0bd199d08836
queicherius/abc-environment,queicherius/abc-environment
src/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar keystone = require('keystone'),\n Types = keystone.Field.Types;\n\n// Create model. Additional options allow menu name to be used what auto-generating URLs\nvar InternalNotes = new keystone.List('Internal Note', {\n track: tru...
javascript
edit
0
1
mit
3a7bad8761e57ec39100f780360908de036be3f2
autoboxer/MARE,autoboxer/MARE
models/InternalNote.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nfunction setInterest(targeturl, state, csrftoken)\n{\n $.post(targeturl,\n {\n csrfmiddlewaretoken:csrftoken,\n state:state\n });\n}\n\nfunction toggleInterest(o, targeturl, csrftoken)\n{\n if (o.value == \"1\")\n {\n o.va...
javascript
edit
0
3
apache-2.0
f215aeb4e0ff59d2028088349e965e6207f08228
raccoongang/socraticqs2,raccoongang/socraticqs2,cjlee112/socraticqs2,raccoongang/socraticqs2,raccoongang/socraticqs2,cjlee112/socraticqs2,cjlee112/socraticqs2,cjlee112/socraticqs2
mysite/ct/static/js/ct.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports = function mutableProxyFactory(defaultTarget) {\n let mutableHandler;\n let mutableTarget;\n\n function setTarget(target) {\n if (!(target instanceof Object)) {\n throw new Error(`Target \"${target}\" is not an...
javascript
edit
0
3
mit
b390a49f0ff94cb6944623e467383af4d0f436b7
Griffingj/mutable-proxy
src/index.js
rejected_duplicate
Near-duplicate of sample 102003
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nds.models.tag = function(data) {\n \"use strict\";\n\n var storage = {}\n , self = {}\n\n limivorous.observable(self, storage)\n .property(self, 'id', storage)\n .property(self, 'href', storage)\n ...
javascript
edit
0
7
apache-2.0
9002c6ea6bf1137afb67d2449e67d63c9cf83c3e
urbanairship/tessera,section-io/tessera,jmptrader/tessera,tessera-metrics/tessera,jmptrader/tessera,jmptrader/tessera,filippog/tessera,urbanairship/tessera,urbanairship/tessera,urbanairship/tessera,aalpern/tessera,filippog/tessera,tessera-metrics/tessera,filippog/tessera,section-io/tessera,jmptrader/tessera,section-io/...
js/models/tag.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict'\n\nmodule.exports = function (dep) {\n let cmd = {}\n cmd.command = 'lint'\n cmd.desc = 'Run linters and fix possible code'\n cmd.handler = function (argv) {\n let { join, log, process, __rootdirname, gherkinLinter }...
javascript
edit
0
2
mit
2567834bb6ae44d6b2834a7d36709d97e166b790
eridem/patata,appersonlabs/patata
lib/commands/lint.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar OwerRequestModel = require('../models/requests/owerRequest.js')\n , error = require('../utils/error.js');\n\nvar allOwerRequests = function(req, res) {\n var facebookId = req.user.facebookId\n , type = req.quer...
javascript
edit
0
8
mit
70785353a9526b56a11f71df0f6f8d40591aeaa4
justinsacbibit/omi,justinsacbibit/omi,justinsacbibit/omi
api/controllers/requests.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\ndocument.addEventListener(\"wheel\", function(e) {\n if (e.shiftKey && e.deltaX != 0) {\n window.history.go(-Math.sign(e.deltaX));\n return e.preventDefault();\n }\n});\n\n```\n\nApply this change: Fix a problem of deltaX and de...
javascript
edit
0
5
mit
6578d26b06121f1e1e87fea267d1e6696b1ddb34
jezcope/chrome-scroll-back
js/scrollback.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React, { Component } from 'react';\nimport Fetch, { renderChildren } from 'react-fetch-component';\nimport buildQuery from 'odata-query';\n\nfunction buildUrl(baseUrl, query) {\n return query !== false && baseUrl + buildQuery(qu...
javascript
edit
0
2
mit
86c36fd831a8cacd988ce1b56288200960dd84c1
techniq/react-odata
src/OData.js
accepted
null
true
[ { "role": "user", "content": "Write javascript code for the following: test: Add test that ensures all V1 APIs exist when the library is imported." }, { "role": "assistant", "content": "import '../src/index';\n\ndescribe('skatejs-web-components', () => {\n it('should create a custom element wit...
javascript
new_file
0
1
mit
347ec3d58a8d30303575d8ac7e5d6bf2ba47dfc6
skatejs/web-components
test/unit.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport LFAdapter from 'ember-localforage-adapter/adapters/localforage';\n\nexport default LFAdapter.extend({\n namespace: 'expenses',\n caching: 'model'\n});\n\n```\n\nApply this change: refactor: Change adapter namespace to api" },...
javascript
edit
0
0
mit
421f01a63ce4446abf5ce8927122fca20e7c6505
pe1te3son/spendings-tracker,pe1te3son/spendings-tracker
app/adapters/application.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n//\n// Tests for BitGo Object\n//\n// Copyright 2014, BitGo, Inc. All Rights Reserved.\n//\n\nvar assert = require('assert');\nvar should = require('should');\n\nvar BitGoJS = require('../src/index');\n\ndescribe('BitGo', function() {\...
javascript
edit
0
1
apache-2.0
29c1630e2c6597bd5ab9e923ffb0e091f0934bb8
BitGo/BitGoJS,BitGo/BitGoJS,BitGo/BitGoJS,BitGo/BitGoJS
test/bitgo.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\n/* global describe it */\n\nvar assert = require('assert');\n\nvar flattenObjectStrict = require('../lib');\n\ndescribe('flatten-object-strict', function() {\n it('an empty object produces an empty object', function() ...
javascript
edit
0
1
mit
1eaf541f9c88d135ddb5bf6828937a4e6505f688
voltrevo/flatten-object-strict
test/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/*\n * Copyright (C) 2012 salesforce.com, inc.\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 ...
javascript
edit
0
1
apache-2.0
df8210287256f88244996a4a905c3be2197829bf
lhong375/aura,badlogicmanpreet/aura,DebalinaDey/AuraDevelopDeb,navyliu/aura,madmax983/aura,forcedotcom/aura,lhong375/aura,forcedotcom/aura,TribeMedia/aura,DebalinaDey/AuraDevelopDeb,badlogicmanpreet/aura,TribeMedia/aura,igor-sfdc/aura,DebalinaDey/AuraDevelopDeb,TribeMedia/aura,lcnbala/aura,SalesforceSFDC/aura,madmax983...
aura-impl/src/main/resources/aura/model/Model.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar Router = require('new_dashboard/router');\nvar $ = require('jquery');\nvar cdb = require('cartodb.js');\nvar MainView = require('new_dashboard/main_view');\n\n\n/**\n* The Holy Dashboard\n*/\n$(function() {\n\n cdb.init(function()...
javascript
edit
0
3
bsd-3-clause
5fe20444cef17cd889803ecbcb3a7c96b47c47e3
splashblot/dronedb,codeandtheory/cartodb,splashblot/dronedb,dbirchak/cartodb,nuxcode/cartodb,UCL-ShippingGroup/cartodb-1,raquel-ucl/cartodb,CartoDB/cartodb,thorncp/cartodb,nuxcode/cartodb,splashblot/dronedb,dbirchak/cartodb,bloomberg/cartodb,splashblot/dronedb,nuxcode/cartodb,UCL-ShippingGroup/cartodb-1,nyimbi/cartodb,...
lib/assets/javascripts/cartodb/new_dashboard/entry.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports = function(config) {\n config.set({\n basePath: process.env['INIT_CWD'],\n frameworks: ['mocha', 'chai', 'karma-typescript', 'sinon'],\n browsers: ['ChromeHeadless', 'FirefoxHeadless'],\n files: [\n './n...
javascript
edit
0
1
mit
a864bc226ec204bc2083e2abd98a4493afa2da04
abraham/nutmeg-cli,abraham/nutmeg-cli,abraham/nutmeg-cli
karma.component.config.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nrequire(\"es6-shim\");\n\nvar exec = require(\"child_process\").exec;\nvar os = require(\"os\");\nvar useMraa = (function() {\n var release = os.release();\n return release.includes(\"yocto\") ||\n release.includes(\"edison\");\n})...
javascript
edit
0
2
mit
5ea58b636d98ef0bb9294c241ee588d2a065c551
ashishdatta/galileo-io,kimathijs/galileo-io,julianduque/galileo-io,vj-ug/galileo-io,rwaldron/galileo-io
scripts/postinstall.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// Config object to be passed to Msal on creation\nconst msalConfig = {\n auth: {\n clientId: \"e3b9ad76-9763-4827-b088-80c7a7888f79\",\n authority: \"https://login.microsoftonline.com/tfp/msidlabb2c.onmicrosoft.com/B2C...
javascript
edit
0
0
mit
d48b188b3ebe03ccbe9dfd57bb267261de962178
AzureAD/microsoft-authentication-library-for-js,AzureAD/microsoft-authentication-library-for-js,AzureAD/microsoft-authentication-library-for-js,AzureAD/microsoft-authentication-library-for-js,AzureAD/microsoft-authentication-library-for-js,AzureAD/microsoft-authentication-library-for-js,AzureAD/microsoft-authentication...
samples/VanillaJSTestApp2.0/app/b2c/authConfig.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar async = require('async');\nvar request = require('request');\nvar sugar = require('object-sugar');\n\nvar rest = require('../lib/rest-sugar');\nvar serve = require('./serve');\nvar conf = require('./conf');\nvar models = require('./...
javascript
edit
0
2
mit
c6a12035debea100fcce7e2078a5ecd7be95a974
sugarjs/rest-sugar
tests/test_middleware.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n * @author mrdoob / http://mrdoob.com/\n */\n\nMenubar.Status = function ( editor ) {\n\n\tvar container = new UI.Panel();\n\tcontainer.setClass( 'menu right' );\n\n\tvar checkbox = new UI.Checkbox( editor.config.getKey( 'autosave'...
javascript
edit
0
2
mit
2042a3e49ee1e3ab461f79acd488d34b2d5ec219
srifqi/three.js,NicolasRannou/three.js,colombod/three.js,dhritzkiv/three.js,Zerschmetterling91/three.js,matgr1/three.js,njam/three.js,aardgoose/three.js,tamarintech/three.js,dushmis/three.js,stevenliujw/three.js,WoodMath/three.js,hacksalot/three.js,davidvmckay/three.js,ZhenxingWu/three.js,fta2012/three.js,AntTech/three...
editor/js/Menubar.Status.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// ==========================================================================\n// Project: SproutCore - JavaScript Application Framework\n// Copyright: ©2006-2009 Apple, Inc. and contributors.\n// License: Licened under MIT license ...
javascript
edit
0
1
mit
678a5f6f558c833bc05de1f68120efed8cbcdb18
Eloqua/sproutcore,Eloqua/sproutcore,Eloqua/sproutcore
frameworks/datastore/tests/models/record/core_methods.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\n/**\n* Allocate a buffer containing a provided string.\n*\n* @module @stdlib/buffer/from-string\n*\n* @example\n* var string2buffer = require( '@stdlib/buffer/from-string' );\n*\n* var buf = string2buffer( 'beep boop' )...
javascript
edit
0
0
apache-2.0
9686768f335f876d674183fd899125a5fb09e101
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/buffer/from-string/lib/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n//\n// https://github.com/kogakure/gulp-tutorial/blob/master/gulp/config.js\n//\nvar banner = [\n '/**',\n ' * <%= pkg.name %> - <%= pkg.description %>',\n ' * <%= pkg.author %>',\n ' * Version <%= pkg.version %>',\n ' * ...
javascript
edit
0
0
mit
ce627bb604bbb4ce42a14af38f5f7aceef11df4d
cheton/i18next-text
gulp/config.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar Transmitter = function (config) {\n\n var router = require('./router.js');\n router(config);\n\n var io = require('socket.io')(router.server);\n // Socket.io connection handling\n io.on('connection', function(socket){\n cons...
javascript
edit
0
1
mit
12ee708accce42f2bdeb557888590851df1ff12c
Dermah/pulsar-transmitter
src/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React from 'react'\nimport ReactDOM from 'react-dom'\nimport { createGlobalStyle } from 'styled-components'\n\nimport { App } from './App'\nimport woff2 from './fonts/source-sans-pro-v11-latin-regular.woff2'\nimport woff from './...
javascript
edit
0
0
mit
8e222afdb288e0f0419e7455fea7def1fc3cf136
joelgeorgev/react-checkbox-tree,joelgeorgev/react-checkbox-tree
src/index.js
rejected_duplicate
Near-duplicate of sample 79789
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n *\n * ___| | | | |\n * | | | | |\n * | ___ |___ __|\n * \\____|_| _| _|\n *\n * @author Shinichirow KAMITO\n * @license MIT\n */\nimport {\n createStore,\n destroyStore,\n getAllStores,\n destroyAllStores,...
javascript
edit
0
0
mit
78d557fc3c8bda380271c29f02b9a2b3cceb6b9a
kamito/ch4
src/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nexport function createSelectorCreator(valueEquals) {\n return (selectors, resultFunc) => {\n if (!Array.isArray(selectors)) {\n selectors = [selectors];\n }\n const memoizedResultFunc = memoize(resultF...
javascript
edit
0
3
mit
1f7a9bd17e7611c0afb13b4c9f546cb8c7ef06af
sericaia/reselect,chentsulin/reselect,faassen/reselect,SpainTrain/reselect,reactjs/reselect,chromakode/reselect,reactjs/reselect,tgriesser/reselect,scottcorgan/reselect,zalmoxisus/reselect,babsonmatt/reselect,rackt/reselect,ellbee/reselect
src/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport Ember from 'ember';\nimport _ from 'lodash/lodash';\nimport steps from '../ressources/ocre-quest';\n\nexport default Ember.Component.extend({\n progress: '',\n stepIndex: 0,\n target: 0,\n onChange: () => {},\n\n a...
javascript
edit
0
1
mit
79e51f7510a554c5fa900759f9ad55f9201c7715
pboutin/dofus-workbench,pboutin/dofus-workbench
app/components/ocre-step.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// If we're in Node.js then require VTTRegion so we can extend it, otherwise assume\n// VTTRegion is on the global.\nif (typeof module !== \"undefined\" && module.exports) {\n this.VTTRegion = require(\"./vttregion\").VTTRegion;\n}\n\n...
javascript
edit
0
3
apache-2.0
bd812f12f00375232dd413e17a4356d8320f9c80
gkatsev/vtt.js,mozilla/vtt.js,gkatsev/vtt.js,mozilla/vtt.js
lib/vttregion-extended.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport Ember from 'ember';\n\nexport default Ember.Component.extend({\n showSelect: false,\n noFileFound: true,\n didRender() {\n if(!this.get('layer.settings.values.downloadLink')){\n this.get('node.files').t...
javascript
edit
0
3
apache-2.0
cd93d090958b3b4c058cabe384668725d23622b1
caneruguz/osfpages,caneruguz/osfpages,Rytiggy/osfpages,Rytiggy/osfpages
app/components/layer-file/component.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar FileLoader = require(\"file_loader\");\n\nvar args = arguments[0] || {};\nvar url = \"http://photos.tritarget.org/photos/washington2012/\" + args.photo;\n\nFileLoader.download(url)\n .then(function(file) {\n // Ti.API.info(\"Dis...
javascript
edit
0
3
mit
c1bf4d635ecfb5f471f4d4230401ae3c0ded3468
sukima/TiCachedImages,0x00evil/TiCachedImages,0x00evil/TiCachedImages,sukima/TiCachedImages
app/controllers/PhotoRow.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n$(document)\n .ready(function() {\n\n // fix menu when passed\n $('.masthead')\n .visibility({\n once: false,\n onBottomPassed: function() {\n $('.fixed.menu').transition('fade in');\n },\n ...
javascript
edit
0
1
bsd-3-clause
3601d7ce7c5e2863c27e0a0c5a08746cbaddfcba
payloadtech/payload,payloadtech/payload,amingilani/starter-web-app,amingilani/starter-web-app,payloadtech/payload,amingilani/starter-web-app
app/assets/javascripts/global.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use babel'\n\n/* @flow */\n\nimport Path from 'path'\nimport {findCached} from './common'\nimport {CONFIG_FILE_NAME} from '../defaults'\n\nexport function findRoot(directory: string): string {\n const configFile = findCached(directory...
javascript
edit
null
null
mit
f1ab62de1b6c7bbe13e67361311f8cb14a38813e
steelbrain/UCompiler
src/helpers/find-root.js
rejected_syntax
Syntax error detected by tree-sitter
false