messages
listlengths
2
2
language
stringclasses
8 values
prompt_type
stringclasses
2 values
lint_errors
int64
0
129
⌀
cyclomatic_complexity
int64
0
32
⌀
license
stringclasses
7 values
commit
stringlengths
40
40
repos
stringlengths
5
116k
new_file
stringlengths
4
220
status
stringclasses
6 values
error
stringlengths
26
74
⌀
is_valid_syntax
bool
2 classes
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar Jailor;\n\n(function(GLOBAL) {\n\tvar conditions = [];\n\n\n\tJailor = {\n\t\tinit: function initJailor() {\n\t\t\tvar previousBeforeUnloadHandler = GLOBAL.onbeforeunload;\n\n\t\t\tGLOBAL.onbeforeunload = Jailor.check;\n\n\t\t\tJail...
javascript
edit
0
2
mit
72e7ec921e523e7088c9305aa323f586d4f995e5
MESHMD/Jailor
src/Jailor.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n(function(){\n 'use strict';\n\n angular.module('cla.controllers')\n .controller('CaseEditDetailCtrl',\n ['$scope', 'AlternativeHelpService', '$state',\n function($scope, AlternativeHelpService, $state){\n // w...
javascript
edit
0
3
mit
28d611136cb715dba5c9df021d026d611576153d
ministryofjustice/cla_frontend,ministryofjustice/cla_frontend,ministryofjustice/cla_frontend,ministryofjustice/cla_frontend
cla_frontend/assets-src/javascripts/app/js/controllers/case_edit_details.js
rejected_duplicate
Near-duplicate of sample 84370
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nvar load = require('../src/loader.js');\n\nfunction config(params) {\n var cfg = false;\n if ('object' == typeof params) cfg = params;\n if ('string' == typeof params && (params.endsWith('.yaml') || params.ends...
javascript
edit
0
8
mit
6284d330c64d3b8323032bc7a002349cc35f3a29
mrajo/metalsmith-grep
src/config.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar shipSystems = require('../shipSystems.js');\r\nvar thrusters = shipSystems.getSystemById('thrusters');\r\n\r\nexports.registerRoutes = function (app, config) {\r\n app.post('/api/systems/thrusters/attitude', function (request, resp...
javascript
edit
0
1
apache-2.0
1636d6643cfb5f77089886bac4d6921a3c3915e0
openstardrive/server,openstardrive/server,openstardrive/server
src/api/thrusterRoutes.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar tablePrefix = '__dear_';\n\nfunction createTable(tableName) {\n if (!localStorage[tableName]) {\n localStorage[tablePrefix + tableName] = '{}';\n }\n}\n\nfunction readTable(tableName) {\n // Read tableModel from local storage\...
javascript
edit
0
2
mit
eb2055576a4f10c31c020e00f520d4fc260df095
strburst/dear,strburst/dear
dear.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n\"use babel\";\n\nimport AtomExfmt from \"../lib/exfmt-atom\";\n\n// Use the command `window:run-package-specs` (cmd-alt-ctrl-p) to run specs.\n//\n// To run a specific `it` or `describe` block add an `f` to the front (e.g. `fit`\n// or...
javascript
edit
0
1
mit
0d9b89986950ce0e4089f8c98f15a33568c83ae5
rgreenjr/exfmt-atom
spec/exfmt-atom-spec.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n(function (angular) {\n 'use strict';\n\n function FlotDirective(eehFlot) {\n return {\n restrict: 'AE',\n scope: {\n dataset: '=',\n options: '@'\n },\n ...
javascript
edit
0
1
mit
0a46358c5f1cafe9ff8b2cd946e6ac19fd298b08
ethanhann/eeh-flot
src/eeh-flot-directive.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React from 'react';\n//import { createHistory } from 'history';\nimport createHistory from 'history/lib/createHashHistory';\n\n// Import components\nimport SearchBar from './SearchBar';\nimport Results from './Results';\n\nlet ...
javascript
edit
0
1
mit
41a256c6fc37c7754520eb7df4582f6ae3276838
ostera/tldr.jsx,ostera/tldr.jsx,ostera/tldr.jsx,ostera/tldr.jsx
src/components/TldrApp.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React from 'react';\nimport Drawer from 'material-ui/Drawer';\nimport DrawerMenuItems from '../../containers/drawer-menu-items.js';\n\nexport default class DrawerNavigation extends React.Component {\n render() {\n return (\n ...
javascript
edit
0
1
mit
20122bc58b6bce1441494c9f502801e95af07631
irvinlim/free4all,irvinlim/free4all
imports/ui/components/menu/drawer-navigation.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport fetch from '../default/fetch.js';\nimport checkMinifiedJs from './checkMinifiedJs.js';\n\nexport default function(urls) {\n return new Promise(function(resolve, reject) {\n let chain = Promise.resolve();\n\n urls.forEach((...
javascript
edit
0
2
mit
c6a20794a55c3ee982c42b92a845b7b9a2582794
juffalow/pentest-tool-lite,juffalow/pentest-tool-lite
src/resources/checkMinifiedJsFiles.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n * Entry point for Step Functions Tasks Handler\n */\n'use strict';\n\nconst\n constants = require('../common/constants'),\n error = require('../services/error'),\n bottle = constants.BOTTLE_CONTAINER;\n\nmodule.exports.handler ...
javascript
edit
0
2
mit
ac90b26cb0bba0ac5b27899686938533e08b0767
totem/totem-v3-orchestrator
src/tasks/tasks-router.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n\"use strict\"\n\nvar createVAONative = require(\"./lib/vao-native.js\")\nvar createVAOEmulated = require(\"./lib/vao-emulated.js\")\n\nfunction createVAO(gl, attributes, elements, elementsType) {\n var ext = gl.getExtension('OES_verte...
javascript
edit
0
3
mit
f2b71a43e13c7e43da55f3f856db842f1a17b258
stackgl/gl-vao
vao.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar extend = require('cog/extend');\nvar OPT_DEFAULTS = {\n target: 'rtc.io screenshare'\n};\n\nmodule.exports = function(opts) {\n var lastRequestId;\n var extension = require('chromex/client')(extend({}, OPT_DEFAULTS, opts, {\n ...
javascript
edit
0
3
apache-2.0
1cd7c41e29c98712c984676b1ad152bbfc8e88b5
rtc-io/rtc-screenshare
chrome.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nangular.module('rs.popover', []).run(function () {\n 'use strict';\n\n var styleContent, styleTag;\n\n styleContent = document.createTextNode('.rs-popover-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; opacity: 0 } ...
javascript
edit
0
1
mit
49d4e7791e0daa9de597e228cbc82c70e8e7c027
rackerlabs/rs-popover
src/javascripts/module.js
rejected_duplicate
Near-duplicate of sample 87908
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nexport default {\n authToken: process.env.AUTH_TOKEN || 'secret',\n env: process.env.NODE_ENV,\n host: process.env.HOST || 'localhost',\n github: {\n apiUrl: 'https://api.github.com',\n username: process.env.GITHUB_USERNAME ||...
javascript
edit
0
0
mit
afd7d74acfd98069832f52c5fb899d2c9325e53f
franvarney/franvarney-api
config.js
rejected_duplicate
Near-duplicate of sample 91464
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\ndescribe('rules.href_type', function () {\n var rule = require('../lib/rules/href_type'),\n\t\thtmllint = require('../'),\n Parser = require('../lib/parser'),\n\t\tparser = null;\n\n describe('process', function () {\n ...
javascript
edit
0
1
isc
ce2781b4057e950a2ab23a0244e347bce2d0ccae
htmllint/htmllint,htmllint/htmllint,KrekkieD/htmllint,KrekkieD/htmllint
test/rules.href_type.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar assert = require('chai').assert;\nvar nodemock = require('nodemock');\n\nvar utils = require('./test-utils');\n\nvar express = require('express');\nvar socketAdaptor = require('../lib/socket-adaptor');\nvar Connection = require('../...
javascript
edit
0
2
mit
bbcf963452878789fdef00e5449d4a08779a1a9d
droonga/express-droonga,KitaitiMakoto/express-droonga,KitaitiMakoto/express-droonga,droonga/express-droonga
test/socket-api.test.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst { resolve } = require('path');\n\nmodule.exports = {\n entry: resolve(__dirname, '../src/index.js'),\n output: {\n path: resolve(__dirname, '../dist'),\n filename: '<%= initialComponentName %>.bundle.js'\n },\n module: {...
javascript
edit
0
0
mit
045461cc12476c6c109e3acffe2583de4fc9e641
alexlafroscia/generator-skatejs
generators/app/templates/webpack/development.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar ffi = require('node-ffi')\n , core = require('./core')\n , types = require('./types')\n , Pointer = ffi.Pointer\n , SIZE_MAP = ffi.Bindings.TYPE_SIZE_MAP\n , FUNC_MAP = ffi.TYPE_TO_POINTER_METHOD_MAP\n\n/**\n * Returns a new Po...
javascript
edit
0
2
mit
682d959e8dc7c3548cc4c4dfb0f00d663b877bc2
TooTallNate/NodObjC,mralexgray/NodObjC,jerson/NodObjC,telerik/NodObjC,TooTallNate/NodObjC,telerik/NodObjC,mralexgray/NodObjC,jerson/NodObjC,jerson/NodObjC
ffi-extend.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst build = require('../../tasks/serialize-workers').build;\n\nfunction loader() {\n const callback = this.async();\n\n let minify = false;\n\n // TODO: remove when https://github.com/webpack/webpack/issues/6496 is addressed\n con...
javascript
edit
0
2
bsd-2-clause
c0339f167b8cf9f05f1077b9160a8a5bade72234
ahocevar/openlayers,oterral/ol3,ahocevar/openlayers,stweil/ol3,adube/ol3,stweil/openlayers,ahocevar/openlayers,bjornharrtell/ol3,stweil/ol3,tschaub/ol3,ahocevar/ol3,stweil/ol3,oterral/ol3,geekdenz/openlayers,tschaub/ol3,adube/ol3,stweil/ol3,openlayers/openlayers,stweil/openlayers,geekdenz/ol3,ahocevar/ol3,openlayers/op...
examples/webpack/worker-loader.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport cc from 'classcat'\nimport React from 'react'\nimport PropTypes from 'prop-types'\nimport './style.scss'\n\nfunction DataTable ({\n className,\n click,\n cols,\n records\n}) {\n if (!cols.length) {\n return null\n }\n\n ...
javascript
edit
0
2
mit
0b570f4a0ce68be3d961b0f71da5bc2305be59e7
dreikanter/feeder,dreikanter/feeder,dreikanter/feeder
client/lib/components/DataTable/component.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar passport = require('passport'),\n Account = require('./models/account');\n\nmodule.exports = function (app) {\n \n app.get('/', function (req, res) {\n res.render('index', { user : req.user });\n });\n\n app.ge...
javascript
edit
0
2
mit
4a00d4d65e22268361f17aa13eb0be4247531db1
traedamatic/passport-local-mongoose,theanimal666/passport-local-mongoose,saintedlama/passport-local-mongoose,heitortsergent/passport-local-mongoose-email,traedamatic/passport-local-mongoose,saintedlama/passport-local-mongoose,ashertrockman/passport-local-mongoose
examples/login/routes.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\ndispatcher = require('edispatcher');\n\nvar component_map = {\n 'example': require('./component/example/example.js')\n};\n\ndocument.addEventListener('DOMContentLoaded', function() {\n var components = document.querySelectorAll(\"[com...
javascript
edit
0
3
mit
25ff5ad35fc9487f7939c2e26b393cd522679a75
dmitrykuzmenkov/app-skel-flux,dmitrykuzmenkov/app-skel-flux,dmitrykuzmenkov/app-skel-flux
main.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport Ember from 'ember';\nimport ApplicationRouteMixin from 'ember-simple-auth/mixins/application-route-mixin'\n\nexport default Ember.Route.extend( ApplicationRouteMixin, {\n init() {\n this._super();\n },\n sessionAuthenticate...
javascript
edit
0
1
mit
d5db04c823652f20f21c36609778807640375bc3
mu-semtech/ember-mu-login,mu-semtech/ember-mu-login
tests/dummy/app/routes/application.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// file: example/approle.js\n\nprocess.env.DEBUG = 'node-vault'; // switch on debug mode\n\nconst vault = require('./../src/index')();\nconst mountPoint = 'approle';\nconst roleName = 'test-role';\n\nvault.auths()\n.then((result) => {\n...
javascript
edit
0
2
mit
4d40b5fa817f14826b4a3a81a087c4ac2d5e17ba
Aloomaio/node-vault,kr1sp1n/node-vault
example/auth_approle.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar MongoClient = require(\"mongodb\").MongoClient;\n\nvar config = require(\"./config.json\");\n\nvar dbConnection = null;\nfunction getDB() {\n return new Promise(function(resolve, reject) {\n if (!dbConnection) {\n ...
javascript
edit
0
2
mit
002de77134c1a2a2ee4e7e966c106a7fde9a66a9
nisargjhaveri/news-access,nisargjhaveri/news-access,nisargjhaveri/news-access,nisargjhaveri/news-access
articles/articleStore.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\ndescribe(\"About <SubjectName>\", function () {\n\n describe(\"<SubjectPart>\", function () {\n\n beforeEach(function () {});\n afterEach(function () {});\n before(function () {});\n after(function () {});\n\n it(\"shoul...
javascript
edit
0
0
mit
4ba9ce952cd31c51301a27cdcda61f63428414eb
tawashley/es6-javascript-koans,tawashley/es6-javascript-koans,tawashley/es6-javascript-koans
koans/AboutBase.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// Make async.\nif (window.__karma__) {\n window.__karma__.loaded = function() {};\n}\n\n// Set the application endpoint and load the configuration.\nrequire.config({\n paths: {\n // Testing libraries.\n \"mocha\": \"../vendor/b...
javascript
edit
0
2
mit
101ae484f401543217bf2760f4c58b3e756ee494
JrPribs/backbone-boilerplate,MandeepRangi/doStuffMediaTest,jSanchoDev/backbone-boilerplate,adrianha/backbone-boilerplate,Hless/backbone-phonegap-boilerplate,danielabalta/albaneagra,si-ro/backbone-boilerplate-ver1,element4git/wipro,si-ro/todo-app2,codeimpossible/backbone-boilerplate,backbone-boilerplate/backbone-boilerp...
test/mocha/test-runner.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar chai = require('chai'),\n expect = chai.expect,\n sinon = require('sinon'),\n sinonChai = require(\"sinon-chai\");\n\nchai.use(sinonChai);\n\nvar introject = require('../lib');\n\ndescribe('injectDeps', function() {\n it('should...
javascript
edit
0
1
mit
b8408aec2f1318b6b974ac53f06525424ecdfe0f
elvinyung/introject
test/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n * WordPress dependencies\n */\nimport { registerBlockType } from '@wordpress/blocks';\n\nconst context = require.context( './blocks', true, /index\\.js$/ );\n\ncontext.keys().forEach( ( modulePath ) => {\n\tconst { name, settings ...
javascript
edit
0
1
apache-2.0
23d51c822aedb56e0257455475dad58e4541bee2
ampproject/amp-toolbox-php,ampproject/amp-toolbox-php
assets/src/amp-blocks.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// Application found and translatable!\n$web_link = $(\".field-name-field-app-web-link\");\n\n$(\"<div class=\\\"field field-type-link-field field-label-inline clearfix\\\"><div class=\\\"field-label\\\">Available languages:&nbsp;</div>...
javascript
edit
0
0
bsd-2-clause
91621e205caa1a5d3ccaca59928dba76edd42f65
morelab/appcomposer,go-lab/appcomposer,morelab/appcomposer,go-lab/appcomposer,go-lab/appcomposer,porduna/appcomposer,morelab/appcomposer,porduna/appcomposer,morelab/appcomposer,porduna/appcomposer,go-lab/appcomposer,porduna/appcomposer
appcomposer/templates/translator/lib.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst test = require('tape')\nconst miniplug = require('./mocks/mp')\nconst nock = require('nock')('https://plug.dj')\n\ntest('Retrieving a user', async (t) => {\n t.plan(1)\n\n nock.get('/_/users/123456').reply(200, require('./mocks/...
javascript
edit
0
1
mit
8e2ef3532f1101ae7bcb26b8712ca7a9323ab831
goto-bus-stop/miniplug
test/users.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar sidebarOpen = false;\nvar menuText = [\"Menu\", \"Close\"];\nvar menuElement = document.querySelector(\".menu-link\");\nvar sidebarElement = document.querySelector(\".sidebar\");\nvar headerElement = document.querySelector(\"header\...
javascript
edit
0
3
mit
f9217630184ad848b0325b400d2813257d8463d7
sveltejs/svelte.technology,sveltejs/svelte.technology
src/files/navigation.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar EDSN_THRESHOLD = 30;\n\nvar EdsnSwitch = (function(){\n var editing;\n var validBaseLoads = /^(base_load|base_load_edsn)$/;\n\n EdsnSwitch.prototype = {\n enable: function(){\n if(editing){\n swapEdsnBaseLoadSelect...
javascript
edit
0
2
mit
f77d851b16f40eb6b3406b89d0ab8c12b2efbb51
quintel/etmoses,quintel/etmoses,quintel/etmoses,quintel/etmoses,quintel/etmoses
app/assets/javascripts/edsn.js
rejected_duplicate
Near-duplicate of sample 103951
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar requirejs = require('requirejs');\n\nvar View = requirejs('extensions/views/view');\n\nmodule.exports = View.extend({\n\n render: function () {\n View.prototype.render.apply(this, arguments);\n console.log(this.fallbackUrl);\...
javascript
edit
0
1
mit
3cb139d8b5a4e25a98044828cff759a8c9f83879
keithiopia/spotlight,tijmenb/spotlight,alphagov/spotlight,keithiopia/spotlight,tijmenb/spotlight,tijmenb/spotlight,alphagov/spotlight,alphagov/spotlight,keithiopia/spotlight
app/server/views/visualisation.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React, { Component } from 'react';\nimport {\n StyleSheet,\n FlatList,\n View\n} from 'react-native';\nimport Prediction from './Prediction';\n\nclass Predictions extends Component {\n constructor(props) {\n su...
javascript
edit
0
1
mit
e45f219a13b8d7c130fa64847026b81866e04535
chrislam/react-native-google-place-autocomplete
lib/Predictions.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n\"use strict\";\n\nvar utils = require(\"../utils\");\nvar log = require(\"npmlog\");\n\nmodule.exports = function(defaultFuncs, api, ctx) {\n return function createPoll(title, threadID, options, callback) {\n if(!callback) {\n ...
javascript
edit
0
8
mit
bd885efa7e38addd3d975bf388fe0bc9febd4cc8
ravkr/facebook-chat-api,Schmavery/facebook-chat-api,GAMELASTER/facebook-chat-api
src/createPoll.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React from 'react';\nimport styled from 'styled-components';\nimport theme from 'theme';\n\nconst StyledHamburger = styled.div`\n position: relative;\n width: 15px;\n height: 13px;\n`;\n\nexport const Bar = styled.div`\n...
javascript
edit
0
1
mit
8671ba83bd37b4e43a3288af2093d19fc611a759
nathanhood/mmdb,nathanhood/mmdb
app/components/Hamburger/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React from 'react';\n\nimport IntroBand from '../components/About/IntroBand';\nimport AboutBand from '../components/About/AboutBand';\nimport ProjectsBand from '../components/About/ProjectsBand';\n\nclass AboutPage extends React....
javascript
edit
0
1
apache-2.0
548d7c5c653608c189b7d5d3143492a42e69c6c9
evancorl/portfolio,evancorl/skate-scenes,evancorl/skate-scenes,evancorl/portfolio,evancorl/skate-scenes,evancorl/portfolio
imports/client/pages/AboutPage.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nconst BaseComponent = require(__dirname + '/../components/base.js');\n\nclass Tab extends BaseComponent {\n\tconstructor(props) {\n\t\tsuper();\n\n\t\tthis.props = props;\n\t\tthis.webview = this.props.webview;\n\n\t\tt...
javascript
edit
0
1
apache-2.0
390bf907e581c44804ac03becbf462fcee134ea7
zulip/zulip-desktop,zulip/zulip-desktop,zulip/zulip-desktop,zulip/zulip-desktop
app/renderer/js/components/tab.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React from 'react';\nimport PlayerAvatar from './PlayerAvatar.js'\nimport '../style/components/SimilarPlayersCard.css';\n\nexport default function SimilarPlayersCard(props) {\n\n const similarPlayersList = [\n {\n 'first...
javascript
edit
0
1
mit
22ab2b03693a5a188a7675c984303f5be34052a9
iNaesu/nba-player-dashboard,iNaesu/nba-player-dashboard
src/components/SimilarPlayersCard.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport fs from 'fs'\nimport _ from 'lodash'\nimport postcss from 'postcss'\n\nfunction updateSource(nodes, source) {\n return _.tap(Array.isArray(nodes) ? postcss.root({ nodes }) : nodes, tree => {\n tree.walk(node => (node.source =...
javascript
edit
0
5
mit
4a505be39079d972c6506467891e6e4958789ed7
tailwindlabs/tailwindcss,tailwindlabs/tailwindcss,tailwindlabs/tailwindcss,tailwindcss/tailwindcss
src/lib/substituteTailwindAtRules.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport {rule, group} from '../../typography-fixer'\nimport html from '../html'\n\nlet frFR_HTML\n\n/**\n * The ruleset for HTML improvement on french typography\n *\n * It includes rules for:\n *\n * - Wrapping ends of common abbreviati...
javascript
edit
0
1
mit
cdf1c5ba3d8ef36fb4fd9a3dba0b6555596ada28
abe33/typography-fixer
src/rules/fr-FR/html.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/1.0/config/configuration-file.html\n\nmodule.exports = function (config) {\n config.set({\n basePath: '',\n frameworks: ['jasmine', '@a...
javascript
edit
0
1
mit
87b8b34f84f13c547de50533efd81345eb73570f
dzonatan/angular2-linky,dzonatan/angular2-linky
src/karma.conf.js
rejected_duplicate
Near-duplicate of sample 69324
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar settings = require('../../settings');\n\nmodule.exports = function basic_auth(req, res, next){\n var username, password, auth_token, index_of_colon, auth_header, i, user_tuple;\n try{\n auth_header = req.header('Authorization')...
javascript
edit
0
11
apache-2.0
ffcf591b1c59f3441206ce1c308a95d63f005766
racker/gutsy,racker/gutsy
lib/web/middleware/basic_auth.js
rejected_complexity
Cyclomatic complexity too high: 11
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nexport const ADD: string = 'ADD'\nexport const SHOW: string = 'SHOW'\nexport const DISMISS: string = 'DISMISS'\n\nexport function add (item) {\n return {\n type: ADD,\n payload: item\n }\n}\n\nexport function show (item) {\n re...
javascript
edit
null
null
mit
fe824c8f8412806bccfcdbc94f8d0810ef3f1441
9gag-open-source/react-native-snackbar-dialog
src/actions.js
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport isPlainObject from 'lodash/isplainobject'\n\nfunction arrayify(fn) {\n return (...args) => {\n const ret = fn(...args)\n return Array.isArray(ret)\n ? ret\n : ret == null\n ? []\n : [ret]\n }\n}\n\nexp...
javascript
edit
0
9
mit
12151d148339b4ce81684720351b9bb85d217c4f
sanity-io/sanity,sanity-io/sanity,sanity-io/sanity,sanity-io/sanity
packages/@sanity/state-router/src/createRoute.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport xhr from 'proton-shared/lib/fetch/fetch';\nimport configureApi from 'proton-shared/lib/api';\n\nexport default ({ CLIENT_ID, APP_VERSION, API_VERSION, API_URL }) => (UID) => {\n return configureApi({\n xhr,\n UID...
javascript
edit
0
1
mit
c974512324fe20775db67626d15027a539ec27bb
ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient
packages/components/containers/app/createApi.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n\"use strict\";\n\nmodule.exports.charging = function() {\n if ( process.platform === \"darwin\") {\n var osxBattery = require(\"osx-battery\");\n\n return osxBattery().then(res => {\n return res.isCharging || res.fullyCharg...
javascript
edit
0
5
mit
d76e961f639a776c837f70f02fcb767de9f4287c
muffinista/before-dawn,muffinista/before-dawn,muffinista/before-dawn
src/main/power.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports = function modelLoader(isParent) {\n 'use strict';\n\n if (isParent || process.env.MCTEST) {\n console.log('using mocks/model');\n return require('./mocks/model');\n }\n\n let ropts = {\n ...
javascript
edit
0
5
mit
87ecca5fb61b6ff202c317771c6ce7e6ebdcb979
materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org
backend/server/model-loader.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmakeThumbNail = function (fileBuffer, extenstion, callback) {\n var gmImageRessource = gm(fileBuffer, 'image.' + extenstion)\n, newImage = {\n side: 400\n }\n, syncSize = function (gmRessource, callback) {\n gmRessource.size(cal...
javascript
edit
0
1
mit
8f375eaf4e3453fee3c41907ef0016de3c11d636
Kriegslustig/meteor-gallery
server/main.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar path = require('path');\nvar moduleEntryPoint = require.resolve('incuna-sass');\n\nvar moduleDir = path.dirname(moduleEntryPoint);\n\nfunction includePaths() {\n return [moduleDir];\n}\n\nmodule.exports = {\n\n includePaths: inclu...
javascript
edit
0
1
mit
c99b485a0ec66a1a0c262a9dc74bbdebeab86083
incuna/incuna-sass
node/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar $ = require('jquery');\nvar _ = require('underscore');\nvar View = require('cdb/core/view');\nvar Model = require('cdb/core/model');\nvar PaginatorView = require('./paginator_view');\nvar searchTemplate = require('./search_paginator...
javascript
edit
0
2
bsd-3-clause
d0ff2e82248998d018b07d7d018b9f9747afcbc6
splashblot/cartodb.js,splashblot/cartodb.js,splashblot/cartodb.js,splashblot/cartodb.js
src/geo/ui/widgets/category/search_paginator_view.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n(function() {\n \"use strict\";\n\n var app = angular.module(\"TendrlModule\");\n\n app.controller(\"clusterDetailController\", clusterDetailController);\n\n /*@ngInject*/\n function clusterDetailController($state, $state...
javascript
edit
0
3
apache-2.0
168008d7087d2505af4183e1bb8783259fa677b8
Tendrl/dashboard,cloudbehl/tendrl_frontend,Tendrl/dashboard,cloudbehl/tendrl_frontend
src/modules/cluster/cluster-detail/cluster-detail.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nvar Mixin = require('../../utils/mixin'),\n inherits = require('util').inherits;\n\nvar ErrorReportingMixinBase = module.exports = function (host, onParseError) {\n Mixin.call(this, host);\n\n this.posTracker =...
javascript
edit
0
1
mit
3bcf3b06bf13be57da0ef4c619da5e9c7beee4d1
HTMLParseErrorWG/parse5,HTMLParseErrorWG/parse5
lib/extensions/error_reporting/mixin_base.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar RowConstants = require('./constants/row_constants.js'),\n QueryConstants = require('./constants/query_constants.js'),\n client = require('./client.js'),\n Dispatcher = require('./dispatcher.js');\n\nvar actions = {\n listQ...
javascript
edit
0
3
isc
8a0dfb140f5e19044b7fd432552c38ee5d3b1ece
ernestrc/stickshift,ernestrc/stickshift,tmcw/stickshift,tmcw/stickshift
src/actions.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport liqen from 'liqen'\nexport const CALL_API = Symbol('call api')\n\nexport default store => next => action => {\n const callAPI = action[CALL_API]\n\n if (typeof callAPI === 'undefined') {\n return next(action)\n }\n\n const...
javascript
edit
0
4
mit
74480edd7007f19bc97deed0581d14b107bc2365
CommonActionForum/liqen-face,exacs/liqen-face,CommonActionForum/liqen-face,exacs/liqen-face
client/middlewares/call-api.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nlet passport = require('passport');\nlet LocalStrategy = require('passport-local').Strategy;\n\nconst AUTH_ERROR = {message: 'Invalid email or password.'};\n\nlet localPassport = {\n localAuthenticate,\n setup\n};\n\nfunction loca...
javascript
edit
0
3
apache-2.0
9c1882431b199501018c2be8cef6dd92ea7ad642
rrgarciach/gc-orders-server
server/auth/local/passport.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport Client from 'socket.io-client';\n\n/**\n * Registers the `connect` command.\n *\n * @param vorpal The Vorpal instance.\n */\nexport function connectFactory(vorpal) {\n vorpal\n .command('connect <host>')\n .description('Co...
javascript
edit
0
1
mit
b11a9a2c7297c1f56da69eccf2e52254f73f7489
merveilles/Rotonde,merveilles/Rotonde
packages/rotonde-cli/src/commands/connect.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React, { Component } from 'react';\nimport { Router, Route, Switch } from 'react-router-dom';\nimport { hot } from 'react-hot-loader';\nimport SignUpPage from './SignUp/SignUpPage';\nimport LoginPage from './Login/LoginPage';\nim...
javascript
edit
0
1
mit
3a9815f8c89af89d3ab92c96ec3a51acb4dd024d
amarachukwu-agbo/hello-books,amarachukwu-agbo/hello-books
client/components/App.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n//query\nimport './query/ends_with';\nimport './query/includes';\nimport './query/is_alpha';\nimport './query/is_alpha_digit';\nimport './query/is_blank';\nimport './query/is_digit';\nimport './query/is_empty';\nimport './query/is_lower...
javascript
edit
0
0
mit
ff52f6b8861b23e808b0853e88faf0532029eda4
hyeonil/awesome-string,hyeonil/awesome-string,panzerdp/voca
test/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport {\n define,\n props,\n withComponent,\n css,\n hasNativeShadowDomSupport,\n withPreact,\n withHyperHTML,\n sanitizeBoltClasses\n} from '@bolt/core';\n\nimport ClipboardJS from 'clipboard';\n\n@define\nexport class BoltCop...
javascript
edit
0
1
mit
884c59717350496cdc6a373cb5e4e8118277c708
bolt-design-system/bolt,bolt-design-system/bolt,bolt-design-system/bolt,bolt-design-system/bolt,bolt-design-system/bolt
packages/components/bolt-copy-to-clipboard/src/copy-to-clipboard.standalone.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nwindow.addEventListener('load', function load(event) {\n\twindow.removeEventListener('load', load, false);\n\tMarkdownViewer.init();\n}, false);\n\n\nif (!MarkdownViewer) {\n\n\tvar MarkdownViewer = {\n\n\t\tinit: function() {\n\t\t\tva...
javascript
edit
0
4
mit
25d124bc6ec471b964be401d6013ff803d8e2ddd
uvesten/markdown-viewer,Thiht/markdown-viewer,Thiht/markdown-viewer,K-atc/markdown-viewer,K-atc/markdown-viewer,uvesten/markdown-viewer
chrome/content/markdown-viewer.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n(function () {\n 'use strict';\n\n define(function () {\n return [\n {\n key: 'first',\n labelText: 'Field One'\n },\n {\n key: 'second',\n ...
javascript
edit
0
2
mit
9fc75f0a12404f8dbe7938e796d6c5ddfeaec1c9
rwahs/research-frontend,rwahs/research-frontend
test/fixtures/collections/searchResultFields.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React, { PropTypes } from 'react'\n\nclass Todo extends React.Component {\n static propTypes = {\n todo: PropTypes.any.isRequired,\n deleteButtonVisible: PropTypes.bool,\n onCompleted: PropTypes.func.isRequired,\n on...
javascript
edit
0
4
mit
aec799186b68bfbc5c4489750f2d26b6f0b83e51
stefanwille/react-todo,stefanwille/react-todo
src/components/Todo/Todo.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nvar util = require('util');\nvar common = require('../../modules/common-functions');\n\nmodule.exports = {\n 'Start page': common.startPage,\n\n 'Categories of law (Your problem)': function(client) {\n client\n ...
javascript
edit
0
1
mit
3949481100244425dfdc1d478ff94101812b3de6
ministryofjustice/cla_public,ministryofjustice/cla_public,ministryofjustice/cla_public,ministryofjustice/cla_public
tests/nightwatch/specs/current/face-to-face-page.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar mix = require('mix');\nvar path = require('path');\nvar vfs = require('vinyl-fs');\n\nmodule.exports = function (options) {\n var base = path.resolve(options.base);\n\n var globs;\n if (typeof options.globs === 'string') {\...
javascript
edit
0
2
mit
c95310d6ab447822e2ebdc1a7fe8bfe2d7c295e7
byggjs/bygg,byggjs/bygg-plugins
mix-files/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports = function(config) {\n config.set({\n frameworks: ['mocha', 'chai'],\n files: [\n 'bower_components/versal-component-runtime/dist/runtime.min.js',\n 'index.html',\n 'test/*_spec.js',\n {pattern:...
javascript
edit
0
1
mit
40e62cabfa801b44e8c43eacb0bc4510c619359c
Versal/versal-gadget-launchers,Versal/versal-gadget-launchers
karma.conf.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar _ = require('lodash')\nvar webpackConfig = require('./webpack.config')\n\nvar config = {\n\n frameworks: ['mocha', 'effroi'],\n\n preprocessors: {\n 'tests/index.js': ['webpack', 'sourcemap']\n },\n\n files: [\n 'tests/ind...
javascript
edit
0
1
mit
23cff7eb77661c30c6449adc9a04bda5cf300e3f
QubitProducts/cherrytree,nathanboktae/cherrytree,nathanboktae/cherrytree,QubitProducts/cherrytree
karma.conf.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n * Copy this file to `local/linked-packages.js` and uncomment any modules as desired to link them\n * for local development.\n *\n * These will be resolved as aliases in the webpack config. Note that you will need to ensure that\n ...
javascript
edit
0
1
bsd-2-clause
410f70101c4d7b21890835438e50f5e7c08d2962
tidepool-org/blip,tidepool-org/blip,tidepool-org/blip
config/linked-packages.example.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nconst express = require('express');\nconst BodyParser = require('body-parser');\nconst Handlers = require('../util').Handlers;\nconst Err = require('../util').Err;\n\nexports.attach = function (app, storage) {\n app.g...
javascript
edit
0
1
mit
1bb6e58b0e8a1e1f5ac48bdca2ab3ac0b3beaf0d
rapid7/tokend,rapid7/tokend,rapid7/tokend
lib/control/v1/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports = {\n /*\n ** Headers of the page\n */\n head: {\n title: 'CSS Frameworks',\n titleTemplate: '%s - CSS Frameworks',\n meta: [\n { charset: 'utf-8' },\n { name: 'viewport', content: 'width=device-wid...
javascript
edit
0
3
mit
7991b9480f2c975420f9786db509d32bc1e54110
sunya9/css-frameworks,sunya9/css-frameworks
nuxt.config.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/*global app, me, client*/\n\"use strict\";\n\nvar _ = require('underscore');\nvar HumanModel = require('human-model');\nvar logger = require('andlog');\n\n\nmodule.exports = HumanModel.define({\n type: 'call',\n initialize: funct...
javascript
edit
0
3
mit
cd3abcf0a72ab69da0c26a483cfddf35e35c0f03
digicoop/kaiwa,lasombra/kaiwa,warcode/kaiwa,syci/kaiwa,nsg/kaiwa,rogervaas/otalk-im-client,syci/kaiwa,weiss/kaiwa,ForNeVeR/kaiwa,unam3/kaiwa,heyLu/kaiwa,ForNeVeR/kaiwa,digicoop/kaiwa,warcode/kaiwa,otalk/otalk-im-client,nsg/kaiwa,heyLu/kaiwa,ForNeVeR/kaiwa,weiss/kaiwa,lasombra/kaiwa,heyLu/kaiwa,di-stars/kaiwa,rogervaas/...
clientapp/models/call.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports = function (context) {\n return {\n $: function (expression) {\n return expression\n },\n\n extend: {\n extendables: {},\n add: function (selector, cssString) {\n this.extendables[selector]...
javascript
edit
0
2
mit
c59942e85fd74b8794aca87ececfb8f15b368724
Kriegslustig/jsheets
helpers/helpers.js
rejected_duplicate
Near-duplicate of sample 100224
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// Download the Node helper library from twilio.com/docs/node/install\n// These vars are your accountSid and authToken from twilio.com/user/account\nvar accountSid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX';\nvar authToken = \"your_auth_tok...
javascript
edit
0
1
mit
3e2cf41793074bce2338a2e4f75d2940d1f0ea30
TwilioDevEd/api-snippets,teoreteetik/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,teoreteetik/api-snippets,teoreteetik/api-snippets,teoreteetik/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,teoreteetik/api-snippets,TwilioDevEd/api-snip...
rest/making-calls/example-4/example-4.2.x.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React, { Component } from 'react';\nimport { Link } from 'react-router';\nimport ChannelDropdown from '../../containers/ChannelDropdown/ChannelDropdown';\n\n/* component styles */\nimport { styles } from './styles.scss';\n\nexpor...
javascript
edit
0
1
mit
4251b1b921f5e566eb571a320b64c77ca8adcc2b
dramich/Chatson,dramich/twitchBot,badT/twitchBot,TerryCapan/twitchBot,dramich/Chatson,TerryCapan/twitchBot,badT/Chatson,badT/twitchBot,badT/Chatson,dramich/twitchBot
src/components/Header/index.js
rejected_duplicate
Near-duplicate of sample 68242
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport value from 'object-path';\n\nexport const purender = ({raw}, ...values) => ({\n [Symbol.toStringTag]: 'purender',\n\n shouldComponentUpdate(...args) {\n const watchlist = String.raw({raw}, ...values).split(' ');\n\n retur...
javascript
edit
0
2
mit
cee6b37beef9493d808f743b5af8ab64ce78809f
gsklee/trait-purender
trait-purender.babel.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst Discord = require('discord.js');\nlet embed = new Discord.RichEmbed();\nexports.run = (client, message) => {\n message.delete();\n let args = message.content.split(' ').splice(1).join(' ');\n const res = client.users.filter(u =...
javascript
edit
0
2
mit
8aa4df88c6df2ea5363b0ffc73f43ae0e336a5f2
JohnDoesCodes/Selfbot,JohnDoesCodes/MySelfbot
commands/discrim.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst promise = require(\"bluebird\");\nconst options = {\n // Initialization Options\n promiseLib: promise, // use bluebird as promise library\n capSQL: true, // when building SQL queries dynamically, capitalize SQL keywords\n};\nco...
javascript
edit
0
4
mit
a8a6b901289de0b918df9b9ee66f52fc534dd55b
participedia/api,participedia/api,participedia/api,participedia/api
scripts/generate-entry-i10n.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport data from '../util/data';\n\nexport default function (opts) {\n const { attribute } = opts;\n\n return function (name, oldValue, newValue) {\n const propertyName = data(this, 'attributeLinks')[name];\n\n if (propertyName)...
javascript
edit
0
8
mit
134cad0d006b00d073d029c7b4b9c687b3145c99
skatejs/skatejs,chrisdarroch/skatejs,skatejs/skatejs,chrisdarroch/skatejs,skatejs/skatejs
src/lifecycle/attribute.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nfunction viewLogIn() {\n\n var login_form = templates.login;\n $('.section').html(login_form);\n\n $('.form-login').submit(function (e) {\n e.preventDefault();\n var email = $('.fl-user-and-access__email').val();\n var passw...
javascript
edit
0
1
mit
90d450bf4183942e81865a20f91780d27f208994
ONSdigital/florence,ONSdigital/florence,ONSdigital/florence,ONSdigital/florence
src/main/web/florence/js/functions/_viewLogIn.js
rejected_duplicate
Near-duplicate of sample 105052
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport createElement from 'virtual-dom/create-element'\nimport diff from 'virtual-dom/diff'\nimport patch from 'virtual-dom/patch'\nimport VText from 'virtual-dom/vnode/vtext'\nimport { getScheduler } from './scheduler-assignment'\n\nex...
javascript
edit
0
2
mit
b96c549fcdaa39ab03704fa064bd4c6852fb2249
lee-dohm/etch,atom/etch,nathansobo/etch,smashwilson/etch
src/full-observation-widget.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nconst AWS = require('aws-sdk');\nconst Err = require('./error');\nconst upload = require('multer')();\nconst rp = require('request-promise');\n\n// Hit the Vault health check endpoint to see if we're actually working wi...
javascript
edit
null
null
mit
0014d16e589aecb8cbaeb5832fa73bc70cf86485
rapid7/acs,rapid7/acs,rapid7/acs
lib/control/v1/index.js
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport Registry from './registry';\n\nconst initInView = () => {\n\n const getElements = (selector) =>\n [].slice.call(document.querySelectorAll(selector));\n\n const inViewport = (element, offset = 0) => {\n let bou...
javascript
edit
0
4
mit
bfbf2dcdbd2e0a2eb56391a903204ec6b8b4e9c1
kudago/in-view,camwiegert/in-view
src/in-view.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/*global require,__dirname*/\nvar connect = require('connect');\nconnect.createServer(\n connect.static(__dirname)\n).listen(8080);\n```\n\nApply this change: Fix warning with new JSHint version." }, { "role": "assistant", "...
javascript
edit
0
0
apache-2.0
488e3f56b59859258a6e89c359ffa0a2ca5199c2
jason-crow/cesium,kiselev-dv/cesium,geoscan/cesium,denverpierce/cesium,denverpierce/cesium,hodbauer/cesium,CesiumGS/cesium,kiselev-dv/cesium,CesiumGS/cesium,kaktus40/cesium,likangning93/cesium,esraerik/cesium,AnalyticalGraphicsInc/cesium,NaderCHASER/cesium,progsung/cesium,ggetz/cesium,emackey/cesium,YonatanKra/cesium,o...
Apps/server.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n(function($) {\n $.fn.geoLocation = function(callback) {\n if (callback && typeof(callback) === 'function') {\n var options = {\n enableHighAccuracy: true,\n timeout: 5000,\n m...
javascript
edit
0
4
unlicense
f25e3d3b233d81a65604266722378be813affd29
Vegosvar/Vegosvar,Vegosvar/Vegosvar,Vegosvar/Vegosvar
src/app/includes/js/geolocation/geolocation.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use babel'\n\n/* @flow */\n\nimport type { Message } from '../types'\n\nexport function visitMessage(message: Message) {\n const messageFile = message.version === 1 ? message.filePath : message.location.file\n const messageRange = me...
javascript
edit
null
null
mit
96d5a31937f2cbcef7c62d5551a5c633743a677f
AtomLinter/linter-ui-default,steelbrain/linter-ui-default,steelbrain/linter-ui-default
lib/elements/helpers.js
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst DrawCard = require('../../drawcard.js');\n\nclass AdeptOfTheWaves extends DrawCard {\n setupCardAbilities() {\n this.action({\n title: 'Grant Covert to a character',\n target: {\n car...
javascript
edit
0
2
mit
6f88697b24891b6f97077de1806e40412f4da6a8
jeremylarner/ringteki,gryffon/ringteki,gryffon/ringteki,jeremylarner/ringteki,jeremylarner/ringteki,gryffon/ringteki
server/game/cards/01-Core/AdeptOfTheWaves.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n * Initialization code for the home page.\n */\n\n'use strict';\n\nvar $ = require('jquery');\nvar $osf = require('js/osfHelpers');\nvar quickSearchProject = require('js/quickProjectSearchPlugin');\nvar newAndNoteworthy = require('...
javascript
edit
0
1
apache-2.0
9dc3dc91ee48137f7f72cae93fd770ba2b12ac33
abought/osf.io,TomBaxter/osf.io,CenterForOpenScience/osf.io,brianjgeiger/osf.io,TomBaxter/osf.io,zamattiac/osf.io,caneruguz/osf.io,binoculars/osf.io,monikagrabowska/osf.io,HalcyonChimera/osf.io,monikagrabowska/osf.io,RomanZWang/osf.io,mfraezz/osf.io,HalcyonChimera/osf.io,TomHeatwole/osf.io,mattclark/osf.io,mfraezz/osf....
website/static/js/pages/home-page.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst appInsightsKey = process.env.FORTIS_SERVICES_APPINSIGHTS_KEY;\n\nlet client;\n\nfunction setup() {\n if (appInsightsKey) {\n const appInsights = require('applicationinsights');\n appInsights.setup(appInsightsKey);\n appI...
javascript
edit
0
2
mit
e0eec4f09fd0bf6eb73f8ba2803ef25c5f61e007
CatalystCode/project-fortis-services,CatalystCode/project-fortis-services
src/clients/appinsights/AppInsightsClient.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport { createSelector } from 'reselect';\nimport { enabledPluginNamesSelector } from '../selectors';\nimport { EXTENSION_TYPE_SETTINGS_TAB } from './constants';\nimport { uiExtensionMap } from './uiExtensionStorage';\n\nexport const c...
javascript
edit
0
1
apache-2.0
51f6d5ff9122f6752fae62f1d2a070b837920178
reportportal/service-ui,reportportal/service-ui,reportportal/service-ui
app/src/controllers/plugins/uiExtensions/selectors.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React, { PropTypes } from 'react';\nimport { connect } from 'react-redux';\nimport Snackbar from 'material-ui/Snackbar';\nimport { hideNotification as hideNotificationAction } from '../../actions/notificationActions' ;\n\nclass N...
javascript
edit
0
3
mit
717199f14ccbd4bedf15568e935c4d9c7da2e5df
marmelab/admin-on-rest,matteolc/admin-on-rest,marmelab/admin-on-rest,matteolc/admin-on-rest
src/mui/layout/Notification.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n#!/usr/bin/env node\n\n// Renders the bower.json template and prints it to stdout\n\nvar template = {\n name: \"graphlib\",\n version: require(\"../../package.json\").version,\n main: [ \"dist/graphlib.core.js\", \"dist/graphlib.core...
javascript
edit
0
0
mit
42cca2bd3411e45f38c0419faed5ccd9e5b01dcf
cpettitt/graphlib,dagrejs/graphlib,dagrejs/graphlib,kdawes/graphlib,cpettitt/graphlib,kdawes/graphlib,dagrejs/graphlib,gardner/graphlib,gardner/graphlib,leMaik/graphlib,leMaik/graphlib
src/release/make-bower.json.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n * Prepare request configuration, deeply merging some specific keys\n */\n\nvar assign = require('./assign')\nvar toArray = require('./toArray')\n\nvar DEFAULTS = {\n baseURL : '/',\n basePath : '',\n body : undefi...
javascript
edit
0
2
mit
05aa4e055ff496566b5ea8301851bfb312a5aea9
vigetlabs/gangway
src/prepare.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport { Server } from 'ws'\nimport debugLog from '../debugLog.js'\nimport LambdaFunctionPool from '../lambda/index.js'\nimport serverlessLog from '../serverlessLog.js'\nimport { createUniqueId } from '../utils/index.js'\n\nexport defau...
javascript
edit
0
1
mit
4a9ddc5c33572606b1ddc48bceabc5310069db84
dherault/serverless-offline,dherault/serverless-offline,dherault/serverless-offline,dherault/serverless-offline,dherault/serverless-offline,dherault/serverless-offline,dherault/serverless-offline
src/api-gateway-websocket/WebSocketServer.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/* eslint-env mocha */\nimport Chai from 'chai';\nimport ChaiString from 'chai-string';\nimport Sinon from 'sinon';\nimport SinonChai from 'sinon-chai';\n\nChai.use(ChaiString);\nChai.use(SinonChai);\n\nbeforeEach(function() {\n this.s...
javascript
edit
0
1
mit
b678b02650046b6fbd8a74485158bec0e43ca851
kpdecker/linoleum-node,kpdecker/linoleum-electron,kpdecker/linoleum,kpdecker/linoleum-webpack,kpdecker/linoleum-electron
src/sandbox.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n/**\n * @file Retrieve files for the account\n */\n\n/**\n * Download all files from the specified Google Account.\n *\n * @param {String} refreshToken Refresh_token to identify the account\n * @param {Date} since Retriev...
javascript
edit
0
4
mit
14c5bfeee4b331919ebf34379ebb52b834cc8f36
AnyFetch/gdrive-provider.anyfetch.com
lib/helpers/retrieve.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar fixtures = require('node-require-directory')(__dirname);\n\nexports.load = function *(specificFixtures) {\n if (typeof specificFixtures === 'string') {\n specificFixtures = [specificFixtures];\n }\n\n try {\n yield exports....
javascript
edit
0
4
mit
298f28913210e9478905dc07da75d08cb04f818e
luin/doclab,luin/doclab
test/helpers/fixtures/index.js
rejected_duplicate
Near-duplicate of sample 85940
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport { zeroArray } from './arrays';\n\n//=========================================================\n// System utilities\n//=========================================================\n\ndetectEndianness(); /* Extra call to disable inlin...
javascript
edit
0
2
mit
d73ee560d6acfb497ac6fbca433b574e86c0399a
jpikl/cfxnes,jpikl/cfxnes
core/src/utils/system.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport { Map } from 'immutable';\n\nimport {\n SIZE_3,\n BLACK\n} from './markerConstants';\n\nexport const initialMarker = Map({\n size: SIZE_3,\n color: BLACK\n});\n\nimport { CHANGE_COLOR, CHANGE_SIZE } from './../../src/client/a...
javascript
edit
0
4
bsd-3-clause
9a024fcf6cf762ae7a335daf642171a12f4e05f5
jackrzhang/boardsession,jackrzhang/boardsession
src/state/markerReducer.js
accepted
null
true