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 express = require('express')\nvar app = express()\nvar fs=require('fs');\n\napp.set('port', (process.env.PORT || 8080))\n//app.use(express.static(__dirname + '/public'))\n\n//__dirname returns the directory that the currently execut...
javascript
edit
0
2
mit
91a6c5fdfac439bfee619ce22accfbdb6f7352d6
brandon025/fundstarter,brandon025/fundstarter
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar gulp = require('gulp');\nvar bless = require('gulp-bless');\nvar notify = require('gulp-notify');\nvar elixir = require('laravel-elixir');\nvar path = require('path');\n\nelixir.extend('bless', function(src, outputDir, options) {\n ...
javascript
edit
0
5
mit
36735fde11b132fb9774be070abf8498069c4f80
BlueBayTravel/laravel-elixir-bless
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/* eslint-env node */\n'use strict';\n\nconst DEFAULT_ASSET_VERSION = 'latest';\nconst getJSSource = ver => `https://cdn.reflect.io/${ver}/reflect.js`;\nconst getCSSSource = ver => `https://cdn.reflect.io/${ver}/reflect.css`;\n\nconst g...
javascript
edit
0
11
mit
c9d294b1feba6ab20886e200a10c951e62b69180
reflect/ember-cli-reflect,reflect/ember-cli-reflect
index.js
rejected_complexity
Cyclomatic complexity too high: 11
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar bindings = require(\"bindings\")(\"argon2_lib\");\n\nexports.encrypt = function (plain, salt, callback) {\n \"use strict\";\n\n if (salt.length < 16) {\n callback(new Error(\"Salt too long, maximum 16 characters.\"), null);\n ...
javascript
edit
0
2
mit
67cbefca1d48a40455c354405265944932231791
markfejes/node-argon2,ranisalt/node-argon2,markfejes/node-argon2,ranisalt/node-argon2,ranisalt/node-argon2,markfejes/node-argon2
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n#!/usr/bin/env node\n'use strict';\n\nvar program = require('commander');\nvar core = require('./lib/core');\n\nvar words = [];\nprogram\n .version(core.VERSION)\n .option(\n '-c, --config-file <config-file>',\n 'Path to config ...
javascript
edit
0
1
mit
5e78d70275d5e14090b9ec07340fcf052cb3853b
srsudar/tanager
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n$(document).ready(function(){\n\n /**\n * This makes a webpage accessible to screen readers if one follows \n * proper HTML and WebBlocks conventions.\n */\n\n $('body').ariaWebBlocksMapper();\n\n /**\n * This t...
javascript
edit
0
1
bsd-3-clause
73c1f53920999b8970114343923475467198ab63
ucla/WebBlocks-kit-core,ucla/WebBlocks-kit-core
extension/ucla/_initialize.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\ndescribe('person', function() {\n\n var Person = require('../lib/Person').Person;\n\n before(function(done) {\n var databank = require('databank'),\n DatabankObject = databank.DatabankObject,\n Databank = databa...
javascript
edit
0
2
apache-2.0
1dc3cb759f9ee3873c7f162f1409389c4ddced4a
evanp/openfollow
test/person_test.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nvar PhonegapBoilerplate = function() {\n this.loadConfig();\n};\n\nPhonegapBoilerplate.prototype = {\n constructor: PhonegapBoilerplate,\n\n options: {\n repository: 'https://github.com/dorian-marchal/phonegap-boi...
javascript
edit
0
1
mit
ce823e759ea3736fe14168374068155360c285d2
dorian-marchal/phonegap-boilerplate-cli
index.js
rejected_duplicate
Near-duplicate of sample 94650
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React from 'react';\nimport Button from './Button';\nimport FormGroup from './FormGroup';\nimport InputBase from './InputBase';\nimport childrenValueValidation from './utils/childrenValueInputValidation';\n\nclass ButtonInput ext...
javascript
edit
0
2
mit
48f312f782af0895e3ff627ad455a362b2345d6c
Lucifier129/react-bootstrap,react-bootstrap/react-bootstrap,herojobs/react-bootstrap,lo1tuma/react-bootstrap,bvasko/react-bootstrap,brentertz/react-bootstrap,jontewks/react-bootstrap,glenjamin/react-bootstrap,dozoisch/react-bootstrap,Lucifier129/react-bootstrap,asiniy/react-bootstrap,dongtong/react-bootstrap,collinwu/r...
src/ButtonInput.js
rejected_duplicate
Near-duplicate of sample 84511
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nvar infector = require('infector'),\n Server = require('./server'),\n argv = require('optimist').argv;\n\nvar server = new Server({\n hostname: argv.HOSTNAME,\n port: argv.PORT,\n env: argv.ENV\n});\n\nserver.on('l...
javascript
edit
0
1
mit
20e3cb309a58f10c6f339869b5ed6b677ed1cef0
tanem/express-backbone-boilerplate,tanem/express-backbone-boilerplate
server/src/app.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar point = require('turf-point');\n\n/**\n * Takes a bounding box and a cell depth and outputs points in a grid.\n *\n * @module turf/grid\n * @param {Array<number>} extent extent in [xmin, ymin, xmax, ymax] order\n * @param {Number} d...
javascript
edit
0
3
mit
c38e113f8e626e47a8b34e23f8fffc3e5ad7e0c3
Turfjs/turf-point-grid
index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst argv = require('yargs').argv\nconst command = require('node-cmd')\nconst mix = require('laravel-mix')\nconst OnBuild = require('on-build-webpack')\nconst Watch = require('webpack-watch')\nconst tailwind = require('./../lib/index.j...
javascript
edit
0
2
mit
69fc891ff42101b632d852620b319df90dc1e254
tailwindlabs/tailwindcss,tailwindcss/tailwindcss,tailwindlabs/tailwindcss,tailwindlabs/tailwindcss
docs/webpack.mix.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// @flow\n\nimport deviceInfo from 'react-native-device-info'\nimport networkInfo from 'react-native-network-info'\nimport pkg from '../../../package.json'\n\nexport const getIpAddress = (): Promise<?string> =>\n\tnew Promise(resolve =>...
javascript
edit
null
null
mit
6f1705c768e4f3c0520207915e020a4dcd2bc1b9
carls-app/carls,StoDevX/AAO-React-Native,carls-app/carls,StoDevX/AAO-React-Native,carls-app/carls,StoDevX/AAO-React-Native,carls-app/carls,StoDevX/AAO-React-Native,StoDevX/AAO-React-Native,StoDevX/AAO-React-Native,StoDevX/AAO-React-Native,carls-app/carls,carls-app/carls,StoDevX/AAO-React-Native,StoDevX/AAO-React-Native...
source/views/help/wifi-tools.js
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```javascript\n(function () {\n 'use strict';\n\n function WordCtrl(Term, Session, $location, $route, $scope) {\n var time;\n\n $scope.word = 'tralala';\n $scope.started = false;\n $scope.term = Term.get({\n ...
javascript
edit
0
1
mit
ee4e9f8cbb0a4b05e0b1a10c8aa9901a334b7bfc
mzgajner/vampi,mzgajner/vampi
web/js/controllers/word-ctrl.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nimport ENTITY from '../entities';\nimport insertAtomicBlock from './insert-atomic-block';\nimport { replaceAtomicBlock } from './replace-block';\nimport { Entity } from 'draft-js';\nimport removeBlock from './remove-blo...
javascript
edit
0
13
mit
afba58da527eddda49261a888d18b17891b554a1
nickhsine/keystone,nickhsine/keystone
fields/types/html/editor/modifiers/index.js
rejected_complexity
Cyclomatic complexity too high: 13
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport { getSignInData, isSignedIn } from '../users/authentication'\n\n/**\n * Updates page title.\n * This is called whenever the name of the street changes and it affects\n * the document title.\n */\nexport function updatePageTitle (...
javascript
edit
0
4
bsd-3-clause
df388792d695aa03d1cc0e4123f365624734cca4
codeforamerica/streetmix,codeforamerica/streetmix,codeforamerica/streetmix
assets/scripts/app/page_title.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 React, { Component } from 'react';\nimport Tiles from 'grommet/components/Tiles';\nimport Box from 'grommet/components/Box';\nimport Button from 'grommet/com...
javascript
edit
0
2
apache-2.0
6571503d50c7bb39b2259661d8344f0c87d77125
grommet/grommet-docs,karatechops/grommet-docs,karatechops/grommet-docs,grommet/grommet-docs
src/develop/components/samples/BoxesAnimation.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React, { Component } from 'react';\nimport './BookDetails.scss';\n\nexport default class BookDetails extends Component {\n render() {\n const { title, coverUrl } = this.props.book;\n return (\n <div className=\"book-d...
javascript
edit
0
1
mit
c157e903303b211523e0be02234533658e7215d2
InfiniteLibrary/infinite-electron,InfiniteLibrary/infinite-electron
app/components/BookDetails/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n#!/usr/bin/env node\n\nimport path from 'path';\nimport workshopper from 'workshopper';\nimport updateNotifier from 'update-notifier';\nimport Server from './lib/Server';\nimport pkg from '../package.json';\n\nupdateNotifier({pkg: pkg})...
javascript
edit
0
0
isc
897b7fe5addbef5c9b42de205599379cf5d7d187
ThibWeb/testdrived3,ThibWeb/testdrived3,ThibWeb/testdrived3
src/testdrived3.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n * Dependencies\n */\n\nvar Waterline = require('waterline');\n\nmodule.exports = Waterline.Collection.extend({\n tableName: 'userTable2',\n identity: 'user',\n datastore: 'queryable',\n primaryKey: 'id',\n fetchRecordsOnUpdat...
javascript
edit
0
0
mit
86f2bbdae5d110760bdcd24d3a7a27603fd61181
balderdashy/waterline-adapter-tests
interfaces/queryable/support/fixtures/crud.fixture.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport primerStyles from '!!raw-loader!postcss-loader!../../../../../src/docs.scss'\nimport {Flex} from '@primer/components'\nimport {Frame} from '@primer/gatsby-theme-doctocat'\nimport {MoonIcon, SunIcon} from '@primer/octicons-react'\...
javascript
edit
0
3
mit
eca4322c6d7148217dd6a0d21afccbf6fef1ef3c
primer/primer-css,primer/primer,primer/primer-css,primer/primer-css,primer/primer,primer/primer
docs/src/@primer/gatsby-theme-doctocat/components/live-preview-wrapper.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\ndeclare var foo\ndeclare var foo;\ndeclare function foo(): void\ndeclare function foo(): void;\ndeclare function foo<T>(): void;\ndeclare function foo(x: number, y: string): void;\ndeclare class A {}\ndeclare class A<T> extends B<T> { x...
javascript
edit
null
null
mit
b4f130fd144922951a8fe7fbd656627dea983ab5
ameyms/babel,ccschneidr/babel,rmacklin/babel,claudiopro/babel,kellyselden/babel,existentialism/babel,zenparsing/babel,DmitrySoshnikov/babel,kellyselden/babel,guybedford/babel,chicoxyzzy/babel,PolymerLabs/babel,kassens/babel,guybedford/babel,zertosh/babel,kaicataldo/babel,kedromelon/babel,hzoo/babel,lxe/babel,rmacklin/b...
packages/babel-plugin-transform-flow-strip-types/test/fixtures/strip-types/strip-declare-statements/actual.js
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport _ from 'lodash';\nimport errorer from '../../../errorer/errorer';\n\nexport default class {\n constructor(instance, receiver, receiverConfigs, params) {\n let {events = {}} = instance;\n let method = events[receiver]...
javascript
edit
0
4
mit
26d5311c5d749dfae5326d99b26468da698ffe74
aptivator/aptivator
src/activation/connector/lib/receiver-class.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/*\n * Copyright (C) 2015 The Gravitee team (http://gravitee.io)\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of...
javascript
edit
0
2
apache-2.0
a13c2de2ffcaf9372a23102151c801910e78d990
gravitee-io/gravitee-management-webui,M3lkior/gravitee-management-webui,gravitee-io/gravitee-management-webui,lauthieb/gravitee-management-webui,M3lkior/gravitee-management-webui,lauthieb/gravitee-management-webui,lauthieb/gravitee-management-webui,gravitee-io/gravitee-management-webui
src/app/index.run.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport ReactiveBase from \"./components/basic/ReactiveBase\";\nimport TextField from \"./components/basic/TextField\";\nimport SelectedFilters from \"./components/basic/SelectedFilters\";\nimport ToggleButton from \"./components/basic/T...
javascript
edit
0
0
apache-2.0
f7fc75b4e3f12042a3f2c7c4a76d378857872333
appbaseio/reactivesearch,appbaseio/reactivesearch,appbaseio/reactivesearch,appbaseio/reactivesearch
packages/web/src/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n * Renders a formulate Field.\n * @param fieldData The data for the form field to render.\n * @param fieldRenderers The associative array of field rendering functions.\n * @param fieldValidators The associative array of the field v...
javascript
edit
0
2
mit
40a7391cafee42afad5e3b1e7fe71178a0c4f442
rhythmagency/formulate,rhythmagency/formulate,rhythmagency/formulate
src/formulate.frontend/responsive.plain-javascript/steps/render-field.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React from \"react\";\n\nimport CircularProgress from \"material-ui/CircularProgress\";\n\nimport \"./style.css\";\n\n/*\n This is a very basic graph that displays a text message\n*/\nexport default class SimpleTextGraph exten...
javascript
edit
0
3
bsd-3-clause
7cb6cf240a8846135d30609e33d7d93c4459d2f7
nuagenetworks/visualization-framework,nuagenetworks/visualization-framework,nuagenetworks/visualization-framework,nuagenetworks/visualization-framework,nuagenetworks/visualization-framework
src/components/Graphs/SimpleTextGraph/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nexport class Searchbar {\n\n constructor() {\n $('a.toggle-searchbar').on('click', $.proxy(this.toggleSearchbar, this));\n }\n\n toggleSearchbar() {\n $('.search-box').toggleClass('open');\n $('input[name=term]'.focus());\n ...
javascript
edit
0
1
mit
93cc1b925919519260ece83a3c30de3a9c05651e
jonasdekeukelaere/Framework,jonasdekeukelaere/Framework,jonasdekeukelaere/Framework,sumocoders/Framework,sumocoders/Framework,sumocoders/Framework,sumocoders/Framework,jonasdekeukelaere/Framework
src/SumoCoders/FrameworkCoreBundle/Resources/assets/js/Framework/Searchbar.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React, { Component } from 'react'\nimport { connect } from 'react-redux'\nimport Meal from '../views/Meal'\nimport NewMeal from '../components/NewMeal'\nimport { Container } from 'semantic-ui-react'\nimport { Link, Route, Switch ...
javascript
edit
0
1
mit
b912bd2a91093c9c5837f2183080fcd9cf676b58
cernanb/personal-chef-react-app,cernanb/personal-chef-react-app
src/containers/MealsContainer.js
rejected_duplicate
Near-duplicate of sample 95783
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst paths = require('./paths');\n\n// TODO - Verfiy that we don't need eslint-import-resolver-webpack anymore\n// const webpackConfig = process.env.NODE_ENV === \"development\"\n// ? path.join(paths.kickstarterConfig, \"webpack.dev....
javascript
edit
0
0
mit
c6d38b916812dda278d0ae09b4aa074286a3adb5
ProAI/react-kickstarter
src/config/eslint.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nangular.module('members').filter('getMemberIdByFullName', [\n function() {\n /**\n * @param members A member object arrays.\n * @param fullName A member full name that want to find, format is 'firstname-last...
javascript
edit
0
4
mit
73eb3e5e74d59e1ffa1de29dc89036efef243029
amowu/hkt48-taiwantour,amowu/hkt48-taiwantour
public/modules/members/filters/members.client.filter.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport { Menu, MenuItem } from \"electron\";\n\nexport class MainMenu {\n constructor(app, tray) {\n this.app = app;\n this.tray = tray;\n }\n initialize() {\n this.setTrayHandler();\n }\n setTrayHandler(menu) {\n menu ...
javascript
edit
0
1
mit
d4119426069fddf507f791c56af9546c5c8a4f76
alexcpendleton/sleep-tight,alexcpendleton/sleep-tight
src/core/mainMenu.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport fileReader from './fileReader.js';\nimport fs from 'fs';\nimport path from 'path';\n\nvar reader = function(folder){\n\tvar result = getFile(folder, '');\n\treturn result;\n};\n\nvar getFile = function(folder, prefix){\n\tvar fil...
javascript
edit
0
7
mit
eda2b2d463ffe4f01fc12dd7ee69644af8239ea8
fendy3002/QzQueryTools,fendy3002/QzQueryTools
server/src/QueryReader/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nangular.module('copayApp.controllers').controller('CopayersController',\n function($scope, $rootScope, $location, backupService, walletFactory, controllerUtils) {\n\n $scope.backup = function() {\n var w = $roo...
javascript
edit
0
1
mit
eb59a7dce9859f24760feb45ccd8b090d375191f
habibmasuro/copay,Groestlcoin/GroestlPay,MonetaryUnit/copay,payloadtech/wallet,startcoin-project/startwallet,wallclockbuilder/copay,philosodad/copay,DigiByte-Team/copay,bechi/copay,mzpolini/copay,wyrdmantis/copay,DigiByte-Team/copay,msalcala11/copay,Groestlcoin/GroestlPay,julianromera/copay,ObsidianCryptoVault/copay,ro...
js/controllers/copayers.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n(function(global) {\n\n if(typeof process != 'object') {\n console.log('Running in browser, disabling NodeJS functionality.');\n config.map['fs'] = '@empty';\n config.map['electron'] = '@empty';\n config.m...
javascript
edit
0
1
apache-2.0
41eb75c4afea6d4079b622a1af6d5b5c316019ae
codarchlab/idai-field-client,codarchlab/idai-field-client,codarchlab/idai-field-client,codarchlab/idai-field-client
systemjs.config.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nif ( typeof exports === 'object' && typeof exports.nodeName !== 'string' && typeof define !== 'function' ) {\n var define = function( factory ) {\n factory( require, exports, module );\n };\n}\n/**\n * Detects features. Rep...
javascript
edit
0
4
apache-2.0
2e5cf857d55fa161ef4fe422c84d11abe13b58e6
enketo/enketo-core,enketo/enketo-core,kevinmwangi/enketo-core,enketo/enketo-core,nap2000/enketo-core,nap2000/enketo-core,kobotoolbox/enketo-core,kevinmwangi/enketo-core,medic/enketo-core,kobotoolbox/enketo-core,medic/enketo-core,nap2000/enketo-core
src/js/support.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n\"use strict\";\n\nconst fs = require('fs');\nconst fsx = require('../helpers/fs-additions');\nconst path = require('path');\nconst _ = require('lodash');\n\n/**\n * Helper function for populating the context with API spec path and\n *...
javascript
edit
0
2
isc
88e45fdfa43509ff23d0ee97e715aac346bd8324
Testlio/lambda-tools
lib/deploy/derive-api-step.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nvar request = require('request');\nvar Promise = require('bluebird');\n\nvar ResourceBase = function(endpoint, config) {\n this.uri = config.options.baseURI + endpoint;\n this.config = config.options;\n};\n\n(funct...
javascript
edit
0
5
mit
91e905bb2384140563c0bc6c1c2eb4e5333e9f52
lob/lob-node
lib/resources/resourceBase.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nrequire.config({\n baseUrl: '.',\n paths: {\n jquery: 'js/vendor/jquery',\n underscore: 'js/vendor/underscore',\n backbone: 'js/vendor/backbone',\n localstorage: 'js/vendor/backbone.localStorage',\n ...
javascript
edit
0
4
mit
30dcc2445fb74d8ac916e51b0fc640b613afae7d
thibault/pomodoro
src/js/main.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/*\n ___ usage ___ en_US ___\n usage: prolific stdio\n\n -o, --stdout use stdout (default)\n -e, --stderr use stderr\n --help display this message...
javascript
edit
0
2
mit
5e13c2f00be003bc7a92d221f9ae448681d5e0c0
bigeasy/prolific,bigeasy/prolific
prolific.stdio/stdio.argv.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n(function (Andamio) {\n\n var methodSplitter = /\\s+/;\n\n function _bind(target, obj, name, callback, methodName) {\n if (!callback) {\n throw new Error('Method \"' + methodName + '\" was configured as an event handler, but d...
javascript
edit
0
3
mit
adea14d708e41cf83b0017cb0a9f3dc39e79afdb
dciccale/Andamio.js
src/andamio.bindevents.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport Worker from '../../universal/models/Worker.js';\n\nexport default function () {\n Meteor.methods({\n 'launchAllWorkers'() {\n Worker.update({status: 'waiting'}, {$set: {status: 'confirm'}});\n\n // TODO: Very bad, r...
javascript
edit
0
2
mit
932de203c244d3ac9dd9e116eba9b5097053d313
vchock/LegionTeams,vchock/LegionTeams,josephnle/LegionTeams,josephnle/LegionTeams,vchock/LegionTeams,josephnle/LegionTeams
server/methods/workerMethods.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport mediumZoom from 'src/config/medium-zoom';\nimport lqip from 'src/modules/lqip';\n\nwindow.addEventListener('DOMContentLoaded', () => {\n // Run medium zoom\n // mediumZoom();\n lqip({\n afterReplace: (lqipImage, originalIma...
javascript
edit
0
2
mit
7de957f78b0b0becd659bfae63a847a7e9cb803d
tuelsch/bolg,tuelsch/bolg
src/gallery.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport * as reducers from './reducers';\nimport * as sagas from './sagas';\nimport * as selectorCreators from './selectorCreators';\n\nexport {\n reducers,\n sagas,\n selectorCreators,\n};\n\n```\n\nApply this change: Fix actions and...
javascript
edit
0
0
mit
345fd1317f92a17869486669e0e03b25a220231e
worona/worona-app,worona/worona-app
client/packages/core-app-worona/src/app/settings-app-extension-worona/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport { default as React, Component } from 'react';\nimport { render } from 'react-dom';\nimport {queryObject} from './ImmutableQuery.js';\nimport InputRange from 'react-input-range';\nvar Style = require('./Style.js');\n\nexport class...
javascript
edit
0
1
apache-2.0
7ccc2a28d67aa2ed3cd4482db811d633f5bda051
appbaseio/reactive-maps,appbaseio/reactive-maps
app/AppbaseSlider.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nfunction overlay(name) {\n var path = 'story/' + name + '.html';\n var $overlay = $('#overlay').load(path, function() {\n $overlay.show()\n .append($('<span>Close</span>').attr({\n 'class': 'button...
javascript
edit
0
3
unlicense
f73fb6f807f4301f5d723b35c7f2d67aa8fe618f
skeeto/disc-rl
src/disc.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/*\n\nAs a user, I want to be able to find the sum, median, or mean of any list of numbers, whether it has an even or odd number of items. Each of these should be able to be called on their own, not just with each other.\n*/\n\n```\n\nA...
javascript
edit
0
0
mit
462f8abcbd6443f2f0ed9419775227f6ba4649ab
DeannaWarren/phase-0,DeannaWarren/phase-0,DeannaWarren/phase-0
week-7/group-project/group_project_solution.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport {RequestUtil} from 'mesosphere-shared-reactjs';\n\nimport ActionTypes from '../constants/ActionTypes';\nimport Config from '../config/Config';\n\nvar AppDispatcher = require('./AppDispatcher');\n\nmodule.exports = {\n\n open: fu...
javascript
edit
0
1
apache-2.0
b7500a83ee23d3da0579635cca40a4ead9524a94
dcos/dcos-ui,dcos/dcos-ui,dcos/dcos-ui,dcos/dcos-ui,dcos/dcos-ui
src/js/events/SidebarActions.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// Ref: https://github.com/yangshun/nusmods-v3/tree/master/src/js\n\nexport const FIRST_HOUR = 8;\nexport const LAST_HOUR = 22;\nexport const CELLS_COUNT = ((LAST_HOUR - FIRST_HOUR) + 1) * 2;\nexport const LESSON_TYPE_ABBREV = {\n 'Des...
javascript
edit
0
0
mit
2d2becf89be9df2407700b50131ac89338c08448
momomods/momomods,momomods/momomods
src/utils/timetable.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\n/**\n* Calculate logical lines of code (LLOC) for list of JavaScript files.\n*\n* @module @stdlib/_tools/js/lloc-file-list\n*\n* @example\n* var analyze = require( '@stdlib/_tools/js/lloc-file-list' );\n*\n* var files =...
javascript
edit
0
0
apache-2.0
e3504d4454e1c21482ace0191c0577085ac82319
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/_tools/static-analysis/js/lloc-file-list/lib/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict'\n\nconst sass = require('sass')\n\n/**\n * Transform SASS to CSS.\n * @public\n * @param {String} folderPath - Path to the folder containing the SASS file.\n * @param {String} str - SASS.\n * @param {Object} opts - Optional...
javascript
edit
0
3
mit
78082721a4cb80637f531c2cc0248eabf9e4bbf7
electerious/rosid-handler-scss,electerious/rosid-handler-sass
src/sass.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport {createRunner} from 'atom-mocha-test-runner';\nimport chai from 'chai';\nimport chaiAsPromised from 'chai-as-promised';\n\nchai.use(chaiAsPromised);\nglobal.assert = chai.assert;\n\nmodule.exports = createRunner({\n reporter: 's...
javascript
edit
0
0
mit
aa3fd22e98271f76f90e75364c733c671ac8df23
atom/github,atom/github,atom/github
test/runner.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n * Tag Manager module initialization.\n *\n * Site Kit by Google, Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the Licen...
javascript
edit
0
1
apache-2.0
4addacf191ff88feacdc3954bd897c2a60896bce
google/site-kit-wp,google/site-kit-wp,google/site-kit-wp,google/site-kit-wp
assets/js/modules/tagmanager/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n * Get the version of Internet Explorer in use, or undefined\n *\n * @return {?number} ieVersion - IE version as an integer, or undefined if not IE\n */\nexport function getIEVersion() {\n const match = navigator.userAgent.match...
javascript
edit
0
4
mit
f153aa7041df6f79c65eecd648c8b0118af2d1c5
fritz-c/react-image-lightbox
src/util.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst RtmpServer = require('rtmp-server');\nconst rtmpToHLS = require('./rtmpToHLS');\nconst { streamKey } = require('../config.json');\nconst { deleteVideos, log } = require('./utils');\n\nfunction server(socket) {\n const rtmpServer ...
javascript
edit
0
2
mit
e898c46d9492888b28184c8b3a80f52074f4fef3
brunnolou/streaming-room,brunnolou/streaming-room
src/rtmpServer.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React from 'react'\n\nconst Date = (props) => {\n const styles = {\n section: {\n padding: '20px 0',\n },\n }\n\n return (\n <section style={styles.section}>\n <div className=\"container content is-large\">\...
javascript
edit
0
2
mit
a8d03a7d1d7e59525ba5f6194d1084d4c0f80037
tanaka0325/manday_web,tanaka0325/manday_web
src/js/components/Date.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 classNames: ['spin-spinner'],\n\n attributeBindings: ['style'],\n\n lines: 13,\n\n length: 20,\n\n width: 10,\n\n radius: 30,\n\n corners: 1,\n\n rotate: 0,...
javascript
edit
0
1
mit
30b64c98e5833e324ac436f628d4af641d6760fb
RSSchermer/ember-spin-spinner,RSSchermer/ember-spin-spinner
addon/components/spin-spinner.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport Controller from '@ember/controller';\nimport { tracked } from '@glimmer/tracking';\nimport { use } from 'ember-could-get-used-to-this';\nimport PermissionChecker from 'ilios/classes/permission-checker';\nimport ResolveAsyncValue ...
javascript
edit
0
1
mit
9a6f4e3503e036cf7adf8704e38c188ea479d32e
jrjohnson/frontend,ilios/frontend,dartajax/frontend,ilios/frontend,dartajax/frontend,jrjohnson/frontend
app/controllers/learner-group.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n\n'use strict';\n\nangular.module('restmod').factory('AMSApi', ['restmod', 'inflector', 'DefaultPacker', function(restmod, inflector, DefaultPacker) {\n\n\t// special snakecase to camelcase renamer\n\tvar amsRenamer = {\n\t\tdecode: inf...
javascript
edit
0
1
mit
ef6c464beee7178ed9d8b3211ce8932eba2508f0
mathroc/angular-restmod,leonuh/angular-restmod,dirkgroenen/angular-restmod,platanus/angular-restmod,duxet/angular-restmod,jimmybaker/angular-restmod
src/styles/ams.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n#! /usr/bin/env node\nvar path = require('path')\nvar program = require('commander')\nvar bozon = require('../bozon')\nvar json = require('../../package.json')\n\nprogram\n .version(json.version)\n\nprogram\n .command('new <name>')\n ...
javascript
edit
0
4
mit
9843f9d532401150382056a9f14e4a124c83720b
railsware/bozon,railsware/bozon
lib/cli/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n;(function (f) {\n // module name and requires\n var name = '';\n var requires = [];\n\n // CommonJS\n if (typeof exports === \"object\" && typeof module !== \"undefined\") {\n module.exports = f.apply(null, requires.map(functio...
javascript
edit
0
8
mit
ea338c9b4640172ef2a1062fbac5fa456d70b16b
chilts/umd-template,chilts/umd-template
template.js
rejected_duplicate
Near-duplicate of sample 92065
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar template = require('lodash.template');\nvar reEscape = require('lodash._reescape');\nvar reEvaluate = require('lodash._reevaluate');\nvar reInterpolate = require('lodash._reinterpolate');\n\nvar forcedSettings = {\n escape: reEscap...
javascript
edit
0
3
mit
2f9f1ee662808b20282aa7c1e7c1f138154026be
tracker1/gulp-footer
template.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// DecentCMS (c) 2014 Bertrand Le Roy, under MIT. See LICENSE.txt for licensing details.\n'use strict';\n\n/**\n * @description\n * The title part handler looks for a title property on the content\n * item. It renders a title shape, and...
javascript
edit
0
8
mit
b9121f7b082ce46e6076d3f0ebc65669b0f7c408
DecentCMS/DecentCMS
modules/core/parts/services/title-part.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React from 'react';\nimport classnames from 'classnames';\n\nfunction ListItem({ children, onClick, active }) {\n const className = classnames('ui-list-item', {\n 'ui-list-item-with-onclick': !!onClick,\n 'ui-list-item-act...
javascript
edit
0
2
mit
73b2a6860c7b42210a6a38f5481c475639817e46
wundery/wundery-ui-react,wundery/wundery-ui-react
src/components/List/ListItem.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar chai = require('chai');\nvar expect = chai.expect;\n\nvar promptModuleOptionsModule = require('../bin/promptModuleOptions');\n\nchai.should();\n\ndescribe('As a user of the prompt module options module', function() {\n\n\tvar module...
javascript
edit
0
1
mit
61ad185c28861ae35b6c41726584779f0b4cd86c
code-computerlove/slate-cli,code-computerlove/quarry,cartridge/cartridge-cli
test/promptModuleOptionsSpec.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\ndescribe('Navigation', function () {\n\n var baseMenuCount = 5;\n\n it('should cope with a list with menu options', function () {\n browser().navigateTo('/#!/b_using_options');\n expect(repeater('.dropdown-optio...
javascript
edit
0
1
mit
a952b5e177d29f4586ccfaf76073369211d8f80b
forms-angular/forms-angular,forms-angular/forms-angular,forms-angular/forms-angular
test/e2e/navigation.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar fs = require('fs'),\n glob = require('glob'),\n path = require('path'),\n wrench = require('wrench');\n\nvar counter = 0;\ntry { fs.mkdirSync('/tmp/lumbar-test', 0755); } catch (err) {}\n\nexports.testDir = function(testNam...
javascript
edit
0
1
mit
ec1af2b3a15230880f356e702970d9fa1e11fbd7
walmartlabs/lumbar
test/lib/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport test from 'tape';\nimport Dropdown from '../components/Dropdown.jsx';\nimport React from 'react/addons';\nconst { TestUtils } = React.addons;\n\nconst setup = () => {\n const renderer = TestUtils.createRenderer();\n\n renderer....
javascript
edit
0
1
mit
8a22ee3866c6cfc0d15e73ffe269126ce83344b5
resmio/elzar,resmio/elzar
src/javascripts/components/__tests__/Dropdown-test.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React from 'react'\nimport graphqlApi from '../graphql-api'\n\nexport default class GroupSelectionForm extends React.Component {\n state = {\n groups: []\n }\n\n componentWillMount = async () => {\n const query = `{ grou...
javascript
edit
0
2
mit
dce91b575d619d7b81fc914b46dc5006e91a9f5a
devmynd/cloud-access-manager,devmynd/cloud-access-manager
src/web/client/src/components/group-selection-form.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport config from 'dummy/config/environment';\nimport test from 'ember-sinon-qunit/test-support/test';\n\nconst currentBootstrapVersion = parseInt(config.bootstrapVersion);\n\nfunction testForBootstrap(bsVersion, name, fn) {\n if (bsV...
javascript
edit
0
2
mit
069a0410db8cc8d7d7596f2446586c7302bfc041
kaliber5/ember-bootstrap,jelhan/ember-bootstrap,kaliber5/ember-bootstrap,jelhan/ember-bootstrap
tests/helpers/bootstrap-test.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/* eslint-disable global-require */\nimport test from 'ava';\n\nimport Validator from '../validator';\nimport extend from '../extend';\nimport rules from '../rules';\n\ntest('should export Validator', t => {\n t.is(require('../index')....
javascript
edit
0
1
mit
5f9826dc9dd36b64eed339b429a77f00512d3035
relekang/validator,cicerono/validator
src/__tests__/index_tests.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n * Module dependencies\n */\nvar util = require( 'util' ),\n actionUtil = require( './_util/actionUtil' ),\n pluralize = require('pluralize');\n\n/**\n * Create Record\n *\n * post /:modelIdentity\n *\n * An API call to create an...
javascript
edit
0
2
mit
6c660b6d606041cd35f6dd5b6e23aad53896711c
dynamiccast/sails-json-api-blueprints
lib/api/blueprints/create.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/*jslint sloppy: true */\nmodule.exports = function (config) {\n config.set({\n basePath: '../',\n frameworks: ['jasmine'],\n browsers: ['Chrome', 'PhantomJS'],\n autoWatch: true,\n\n files: [\n {pattern: 'bower_com...
javascript
edit
0
1
mit
246bd8aa966a17a9dc2c070adc2254e9913991a4
yetu/pocketry
test/config.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n#!/usr/bin/env node\n\nif (!process.argv[2]) return console.error(\n 'Usage: npm-me <username>'\n)\n\nvar columnify = require('columnify')\n\nrequire('./')(process.argv[2], function(err, downloads) {\n if (err) throw err\n downloads ...
javascript
edit
0
2
mit
f1de74728a17bb7cb46730db732c642c948b6e2d
hughsk/npm-me,KenanY/npm-me
cli.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n * Copyright 2014 IBM Corp.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://w...
javascript
edit
0
0
apache-2.0
8582b60121596d62945846b23e76e8f779a8ef12
drwoods/node-red-web-nodes,mblackstock/node-red-web-nodes,node-red/node-red-web-nodes,node-red/node-red-web-nodes,SenseTecnic/node-red-web-nodes,SenseTecnic/node-red-web-nodes,mblackstock/node-red-web-nodes,drwoods/node-red-web-nodes
test/helper.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport assert from 'assert';\nimport fs from 'fs';\nimport rimraf from 'rimraf';\n\nconst tmpProjectName = 'testRjankoProject';\n\ndescribe('Rjanko', function() {\n describe('action', function() {\n\n before(function(){\n if (f...
javascript
edit
0
2
mit
8b9c3a8fa572154bce67b544ca0d7ebba69bc96a
kompot/rjanko
test/rjanko.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nDatepicker.language['pt-br'] = {\n days: ['Domingo', 'Segunda', 'Terça', 'Quarta', 'Quinta', 'Sexta', 'Sábado'],\n daysShort: ['Dom', 'Seg', 'Ter', 'Qua', 'Qui', 'Sex', 'Sab'],\n daysMin: ['Do', 'Se', 'Te', 'Qu', 'Qu', 'Se', 'S...
javascript
edit
0
0
mit
4794accaf1580f7a368dc495c0a583f88806ccc7
t1m0n/air-datepicker,t1m0n/air-datepicker,ipsosante/air-datepicker,ipsosante/air-datepicker
src/js/i18n/datepicker.pt-br.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nexport default {\n type: 'heading',\n\n matchElement (el) {\n return /^h\\d$/.exec(el.tagName)\n },\n\n import (el, node, converter) {\n node.content = converter.annotatedText(el, [node.id, 'content'], { preserveWhitespace: tr...
javascript
edit
0
1
mit
b6bef3f4664540bf99fed28f0fa2dc42e40421b9
substance/texture,substance/texture
src/article/converter/html/HeadingConverter.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst webpack = require('@cypress/webpack-preprocessor')\n\nmodule.exports = (on) => {\n on('file:preprocessor', webpack({\n webpackOptions: {\n resolve: {\n extensions: ['.ts', '.js']\n },\n node: { fs: 'empty...
javascript
edit
0
1
mit
23536c9d05be3e0c58d1eacc2bcb8f23b00bac54
jp7677/hellocoreclr,jp7677/hellocoreclr,jp7677/hellocoreclr,jp7677/hellocoreclr
ui/test-e2e/plugins.js
rejected_duplicate
Near-duplicate of sample 80658
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports = function (req, res) {\n return function (error, data) {\n if (error) {\n res.status(500);\n } else {\n res.status(200);\n }\n\n res.set('Content-Type', 'application/json');\n res.send(JSON.stri...
javascript
edit
0
2
mit
c90db09cc26fcf4463577216c90742e4f1710397
acleta/acleta-proxy
app/handlers/json_response.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n(function() {\n\nwindow.TitleView = Backbone.View.extend({\n\n initialize: function(opts) {\n this.model.on('change', this.render, this);\n this.collection.on('reset', this.setChannelUnread, this);\n },\n\n render: function() {...
javascript
edit
0
2
mit
81a170fe33f8bbf80d676853137f93fe335689b9
daukantas/factlink-core,Factlink/factlink-core,daukantas/factlink-core,daukantas/factlink-core,Factlink/factlink-core,Factlink/factlink-core,daukantas/factlink-core,Factlink/factlink-core
core/app/backbone/views/title_view.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports = {\n port: 3000,\n public_url: 'http://127.0.0.1:3000/',\n expire_minutes: 15,\n db: {\n host: 'localhost',\n user: 'root',\n password: '',\n database: 'nappikauppa2'\n },\n email: {\n mailgun: {\n ...
javascript
edit
0
0
mit
31ca556eb7dee8b09fb00e2ccf1d6e868c649b9d
teekkarispeksi/nappikauppa2,teekkarispeksi/nappikauppa2,teekkarispeksi/nappikauppa2,teekkarispeksi/nappikauppa2
config/config-sample.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport {connect} from 'react-redux'\nimport {setOriginalText} from './synonymizationActions';\nimport InputBox from \"./InputBox\";\nimport apiConstants from \"../api/apiConstants\";\n\nconst mapStateToProps = state => ({\n content: ...
javascript
edit
0
1
apache-2.0
dcfc021c7e40ca57976ba93736ac2d8e3e09616d
kamirov/song-synonymizer,kamirov/song-synonymizer,kamirov/song-synonymizer
frontend/src/synonymization/InputBoxContainer.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar gaTracker = (function(dLayer) {\n\n // Push the object to the dataLayer\n // Parameters:\n // eventName, category, action, label, Type String\n // value Type Number (int)\n var pushEventToDataLayer = function(eventNam...
javascript
edit
0
5
mit
8e60f3cea89f0ba82d9500ec00ec1e63a0445192
andymj/ga-tracking
ga-tracking.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar config = {\n output: {\n libraryTarget: 'umd',\n library: 'ReactTabs'\n },\n\n resolve: {\n extensions: ['', '.js'],\n alias: {\n src: __dirname + '/src'\n }\n },\n\n exte...
javascript
edit
0
0
mit
d01914e5bdc81f5c8884ff8eeb8f770370fe8028
patrik-piskay/react-tabs-redux
webpack.config.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar path = require('path');\nvar webpack = require('webpack');\n\nmodule.exports = {\n devtool: 'eval',\n entry: [\n 'webpack-dev-server/client?http://localhost:3000',\n 'webpack/hot/only-dev-server',\n './src/client'\n ],\n...
javascript
edit
0
0
mit
e255b7c34a7b4863030aa83f1bebafcf8f9b8c73
cable729/better-streams,cable729/better-streams
webpack.config.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nvar path = require('path');\nvar webpack = require('webpack');\n\nmodule.exports = {\n devtool: 'sourcemap',\n entry: {\n app: ['./src/index.ts']\n },\n output: {\n path: path.join(__dirname, 'dist'),\n pub...
javascript
edit
0
0
mit
4c1f803bcd51d06fdf14cd6264b3f187d61bad04
mohsen1/json-formatter-js,mohsen1/json-formatter-js,mohsen1/json-formatter-js
webpack.config.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nprocess.traceDeprecation = true;\nconst package_json = require(\"./package.json\");\nconst path = require(\"path\");\nconst patternslib_config = require(\"@patternslib/patternslib/webpack/webpack.config\");\nconst mf_config = require(\"...
javascript
edit
0
4
bsd-3-clause
77bb86aa88dbb8c4189e8cf50e3650838b031cd8
plone/mockup,plone/mockup,plone/mockup
webpack.config.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst path = require('path');\nconst webpack = require('webpack');\n\nmodule.exports = {\n entry: {\n app: path.resolve(__dirname, 'app/Resources/assets/js/app.js')\n },\n output: {\n path: path.resolve(__dirname,...
javascript
edit
0
0
mit
c0fbee6ca9c21b71eac487fc1b565d303550e9a8
alOneh/sf-live-2017-symfony-webpack,alOneh/sf-live-2017-symfony-webpack,alOneh/sf-live-2017-symfony-webpack
webpack.config.js
rejected_duplicate
Near-duplicate of sample 93537
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst path = require('path');\n\nmodule.exports = {\n entry: './src',\n output: {\n filename: 'react-animation-components.js',\n path: path.resolve(__dirname, 'lib'),\n library: 'react-animations',\n li...
javascript
edit
0
0
mit
bd6cafed1f4bece9aa5454464663af5bcb4a8d2b
unruffledBeaver/react-animation-components
webpack.config.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
2
mit
cf2930e27ae3f524392cfd2b9dfbfa488ed6ddd1
UMM-CSci-3601/3601-lab4_mongo,UMM-CSci-3601-F17/interation-1-drop-table-teams,UMM-CSci-3601/3601-lab4_mongo,UMM-CSci-3601-F17/interation-1-drop-table-teams,UMM-CSci-3601/3601-lab4_mongo,UMM-CSci-3601-F17/interation-1-drop-table-teams,UMM-CSci-3601-F17/interation-1-drop-table-teams,UMM-CSci-3601-F17/interation-1-drop-ta...
client/karma.conf.js
rejected_duplicate
Near-duplicate of sample 75968
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nvar path = require('path');\nvar BrowserWindow = require('browser-window');\n\nmodule.exports.createMainWindow = function() {\n\tconst WINDOW_WIDTH = 300;\n\tconst WINDOW_HEIGHT = 120;\n\n\tvar screen = require('screen'...
javascript
edit
0
1
mit
a0459b689f385f3ec07236e9793a7710dbca01e8
cotrpepe/LCC,cotrpepe/LCC
src/main/main-window-init.js
accepted
null
true
[ { "role": "user", "content": "Write javascript code for the following: Add 414 Third Maximum Number" }, { "role": "assistant", "content": "// Given a non-empty array of integers, return the third maximum number in this array. If it does not exist, return the maximum number. The time complexity m...
javascript
new_file
0
6
apache-2.0
ae902b91c54ad8b7ea891e393aab9fb50c101b9b
lunabox/leetcode,lunabox/leetcode,lunabox/leetcode,lunabox/leetcode
javascript/problems/s414_Third_Maximum_Number.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React from 'react';\nimport { Provider } from 'react-redux';\nimport {\n BrowserRouter as Router,\n Route\n} from 'react-router-dom';\n\nimport HomePage from './components/pages/Home';\nimport SignupPage from './components/...
javascript
edit
0
1
mit
e6be48d7e416874837c09a7c48b9d7e0fdbfbc69
mbchoa/presence,mbchoa/presence
client/src/routes.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React from 'react';\nimport { render } from 'react-dom';\nimport { Provider } from 'react-redux';\nimport { Router, hashHistory } from 'react-router';\nimport { syncHistoryWithStore } from 'react-router-redux';\nimport routes fro...
javascript
edit
0
2
mit
01bdd9f4a184c5391c584ebbaa2bfbd320aef5df
ivtpz/brancher,ivtpz/brancher
app/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport User from '../models/users'\nimport config from '../../config'\nimport { getToken } from '../utils/auth'\nimport { verify } from 'jsonwebtoken'\n\nexport async function ensureUser (ctx, next) {\n const token = getToken(ctx)\n\n ...
javascript
edit
0
4
mit
e95c2cedd398c4dac447f5964103b166ce206421
adrianObel/koa2-api-boilerplate
src/middleware/validators.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React from 'react';\n\nimport styles from './videosection.css'\n\nexport default class VideoSection extends React.Component {\n\n render() {\n return (\n <div className=\"wrapper style3 video-section\">\n <div...
javascript
edit
0
1
mit
b9cf860482c644436c523e10a72a9b5278a9be32
imrenagi/rojak-web-frontend,imrenagi/rojak-web-frontend
src/components/videosection/VideoSection.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n\nmodule.exports = {\n entry: './index.js',\n\n output: {\n path: 'public',\n filename: 'bundle.js',\n publicPath: '/'\n },\n module: {\n loaders: [\n { test: /\\.js$/, exclude: /node_modules/, loader: 'babel-loader...
javascript
edit
0
0
mit
3f3ec5ffdece334f5f43061176cb7149b9b3f987
georgeF105/handball-scoring,georgeF105/handball-scoring
webpack.config.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n\n// Allows to get the video of the url through the api_url (optional)\nfunction BaseVideoInfo(url, api_url) {\n\tthis.url = url || 'null';\n\tthis.api_url = api_url || \"http://youtube-dl.appspot.com/api/\";\n}\n\nBaseVideoInfo.prototy...
javascript
edit
0
3
bsd-2-clause
c79634eb45a3271bc775ca32e78396d57b52c33f
kpgx/youtube-dl-web,jaimeMF/youtube-dl-web,jaimeMF/youtube-dl-web,kpgx/youtube-dl-web
VideoInfo.js
rejected_duplicate
Near-duplicate of sample 95475
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nimport { log, LOG_TYPES } from './log';\n\n/*\n * Socket.io related things go !\n */\n\nlet io;\n\nlet connections = [];\n\nfunction createSocketIO(server, app) {\n io = require('socket.io')(server);\n \n io.on('c...
javascript
edit
0
2
mit
00db7f89851e87faca724b4c4082db4566c0a415
learning-layers/sardroid-server,learning-layers/sardroid-server
utils/socketIO.js
accepted
null
true