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\nimport React, {PureComponent} from 'react';\nimport classNames from 'classnames';\nimport {Link as RoutedLink} from 'react-router-dom';\n\nimport styles from './Link.scss';\n\nexport default class Link extends PureComponent {\n static ...
javascript
edit
0
5
mit
b9311ff37cea38d3c95d7d6f43a97ee598e3f186
tech-conferences/confs.tech,tech-conferences/confs.tech,tech-conferences/confs.tech
src/components/Link/Link.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar keystone = require('keystone');\nkeystone.init({\n \n 'name': 'Mottram Evangelical Church',\n \n 'favicon': 'public/favicon.ico',\n 'less': 'public',\n 'static': 'public',\n \n 'views': 'templates/views',\n 'view engine': '...
javascript
edit
0
0
mit
274079af4bfb6a434c1dbfb6deb9dde56bb68cce
jamlen/mottramec,jamlen/mottramec
web.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/** @jsx React.DOM */\n\nvar React = require('react');\n\nvar View = React.createClass({\n\n render: function() {\n return (\n <header className=\"navigation-bar\">\n <button className=\"logo\"></button>\n <button...
javascript
edit
0
1
mit
4383afc7734b785e381bc6c372db28ece4a2fdc1
tddbin/tddbin-frontend,tddbin/tddbin-frontend,tddbin/tddbin-frontend
src/navigation-bar/navigation-bar-view.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/*\n * grunt-istanbul-coverage\n * https://github.com/daniellmb/grunt-istanbul-coverage\n *\n * Copyright (c) 2013 Daniel Lamb\n * Licensed under the MIT license.\n */\n\n'use strict';\n\nmodule.exports = function (grunt) {\n\n var h...
javascript
edit
0
1
mit
d40c221293b87ab1da056f5eab6f07cc6db3b137
daniellmb/grunt-istanbul-coverage
tasks/coverage.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React, { Component } from 'react'\nimport styled from 'styled-components'\nimport TextInput from './TextInput'\nimport { Search } from '../icons'\n\nexport default class SearchBar extends Component {\n constructor (props) {\n ...
javascript
edit
0
2
apache-2.0
2921f6035d43a143f575144c540e9b9ca328370e
blenoski/movie-night,blenoski/movie-night
app/renderer/views/SearchBar.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar path = require('path');\n\nvar Paths = {\n APP: path.resolve(__dirname, 'src/js'),\n BUILD_OUTPUT: path.resolve(__dirname, 'out/webpack')\n};\n\nmodule.exports = {\n entry: {\n app: Paths.APP\n },\n resolve: {\n extension...
javascript
edit
0
0
apache-2.0
ec3f99bf3e4af37752e3207f746311db3034ea6c
KillrVideo/killrvideo-web,KillrVideo/killrvideo-web,KillrVideo/killrvideo-web
webpack.config.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/*\n* Bookmarklet.js\n*/\n\nimport { getGlobalName, getTitle, getVersion } from './utils/constants';\nimport { addNodes, removeNodes } from './utils/dom';\nimport { MessageDialog } from './utils/dialog';\nexport { Bookmarklet };\n\n/*...
javascript
edit
0
3
apache-2.0
34877f95ac93068b5dcc1d0746fbc505fe378b42
oaa-tools/bookmarklets-library,oaa-tools/bookmarklets-library
Bookmarklet.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar getConfig = require('hjs-webpack')\nvar webpack = require('webpack')\nvar path = require('path');\n\nmodule.exports = getConfig({\n in: 'src/app.js',\n out: 'public',\n clearBeforeBuild: true\n});\n\nmodule.exports.node = {\n ch...
javascript
edit
0
0
mit
1a616f91fcf697b1d073cfb2281e378927fb8f3d
getguesstimate/guesstimate-app
webpack.config.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst nodemon = require('nodemon');\n\nnodemon({\n ext: 'js json',\n // --silent squashes an ELIFECYCLE error when the server exits\n exec: 'DEBUG=fcc* npm run --silent babel-dev-server',\n watch: './server',\n spawn: true\n});\n\n...
javascript
edit
0
1
bsd-3-clause
147e61e4f7557bcc3154fdfee50b128366229fb0
FreeCodeCamp/FreeCodeCamp,BhaveshSGupta/FreeCodeCamp,jonathanihm/freeCodeCamp,pahosler/freecodecamp,HKuz/FreeCodeCamp,BhaveshSGupta/FreeCodeCamp,otavioarc/freeCodeCamp,BhaveshSGupta/FreeCodeCamp,raisedadead/FreeCodeCamp,raisedadead/FreeCodeCamp,FreeCodeCamp/FreeCodeCamp,otavioarc/freeCodeCamp,HKuz/FreeCodeCamp,pahosler...
api-server/development-entry.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar path = require('path');\nvar webpack = require('webpack');\nvar ExtractTextPlugin = require('extract-text-webpack-plugin');\nvar BundleTracker = require('webpack-bundle-tracker');\nvar CommonsChunkPlugin = require(\"webpack/lib/opti...
javascript
edit
0
0
mit
8934f90f07961a59b1a1b75dad018e217c34ee3d
dotKom/onlineweb4,dotKom/onlineweb4,dotKom/onlineweb4,dotKom/onlineweb4
webpack.config.js
rejected_duplicate
Near-duplicate of sample 82036
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar models = require('../models'),\n _validate = require('../../helpers/express-validators'),\n _h = require('../../helpers/helpers'),\n jwt = require('jsonwebtoken'),\n co = require('co'),\n userHelper = require('./controller-help...
javascript
edit
0
0
mit
b2ba9755f4ce484bcd02b1abf912cede7fa254fe
andela-blawrence/DMS-REST-API,andela-blawrence/DMS-REST-API
app/server/controllers/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n;(_ => {\n 'use strict';\n\n class Router2Content extends HTMLElement {\n createdCallback() {\n this.hidden = true; // by default\n }\n }\n\n window.addEventListener('hashchange', (e) => {\n var containers = document.q...
javascript
edit
0
4
isc
e937804e7ed3952d044cff127e3460e2be660c12
m3co/router3,m3co/router3
demo/case1/router2-content.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports = {\n entry: './docs/App.jsx',\n output: {\n filename: './docs/bundle.js'\n },\n devServer: {\n inline: true\n },\n module: {\n rules: [{\n test: /\\.jsx?$/,\n exclude: /node_modules/,\n load...
javascript
edit
0
0
mit
3a0bdaf3812b78ceb53e1040afcde6abf40498cb
mosch/react-avatar-editor,mosch/react-avatar-editor,mosch/react-avatar-editor
webpack.config.js
rejected_duplicate
Near-duplicate of sample 97847
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports = {\n\toptions : {\n\t\tlatedef : true,\n\t\tnoempty : true,\n\t\tundef : true,\n\t\tstrict : false,\n\t\tnode : true,\n\t\tbrowser : true,\n\t\teqnull : true,\n\t\tscripturl : true,\n\t\tpredef : [\n\t\t\t\"$\",\n\t\t\t\...
javascript
edit
0
0
mit
ad3892d7cd65d973c4277e17c0e0f6bbf60c9153
weikinhuang/closedinterval-git-hooks,weikinhuang/closedinterval-git-hooks
jshint/jshint.config.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n#!/usr/bin/env node\n\n// add additional build-extras.gradle file to instruct android's lint to ignore translation errors\n// v0.1.c\n// causing error in the build --release\n// Issue: https://github.com/phonegap/phonegap-plugin-barcode...
javascript
edit
0
2
mit
c9d6413c5480f4fb059904ed3f84821ad1513570
driftyco/ionic-package-hooks,driftyco/ionic-package-hooks
android_ignore_translation_errors.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/*jshint expr:true */\ndescribe('DeviceModel', function() {\n describe('instantiation', function() {\n beforeEach(function() {\n this.model = new spiderOakApp.DeviceModel({\n name: \"Test device\",\n url: \"Test%2...
javascript
edit
0
1
apache-2.0
d776024c9e45c7f95ccf3f6e0e8f16ad9515b458
SpiderOak/SpiderOakMobileClient,SpiderOak/SpiderOakMobileClient,antoniodesouza/SpiderOakMobileClient,antoniodesouza/SpiderOakMobileClient
tests/models/DeviceModel.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/*\n Copyright 2019 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 License.\n You may obtain a copy of the License at\n\n https://www.a...
javascript
edit
0
4
apache-2.0
1bc1a5cc39570cff0713f748505d3973fb9ec534
apigee/apigeelint,apigeecs/bundle-linter
lib/package/plugins/serviceCalloutResponseName.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports = {\n rules: {\n // disallow usage of expressions in statement position\n 'no-unused-expressions': 0\n }\n}\n\n```\n\nApply this change: Mark expect as a global when using Chai\n\nIn some test running configuratio...
javascript
edit
0
0
mit
c6e569a9089d701761b7d93a0a8d9231e825db63
CodingZeal/eslint-config-zeal
chai.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nclass BottomTab extends HTMLElement{\n\n initialize(Content, onClick) {\n this._active = false\n this._visibility = true\n this.innerHTML = Content\n this.classList.add('linter-tab')\n\n this.countSpan =...
javascript
edit
0
2
mit
4071285dce8afab8daff52cf46799719d5ed0a48
JohnMurga/linter,kaeluka/linter,Arcanemagus/linter,levity/linter,UltCombo/linter,shawninder/linter,iam4x/linter,AtomLinter/Linter,steelbrain/linter,DanPurdy/linter,blakeembrey/linter,e-jigsaw/Linter,mdgriffith/linter,elkeis/linter,atom-community/linter,AsaAyers/linter
lib/views/bottom-tab.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports = {\n scenarios: [\n {\n name: 'default',\n dependencies: { }\n },\n {\n name: 'ember-release',\n dependencies: {\n 'ember': 'components/ember#release'\n },\n resolutions: {\...
javascript
edit
0
0
mit
13ea6366af1ad73ae2c7e4e3e685dab2e8edee76
cibernox/ember-basic-dropdown,cibernox/ember-basic-dropdown,cibernox/ember-basic-dropdown,cibernox/ember-basic-dropdown
config/ember-try.js
rejected_duplicate
Near-duplicate of sample 76662
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst expect = require('unexpected');\nconst truncate = require('./truncate');\n\nit('should truncate trace output', () => {\n expect(\n truncate(\n [\n 'expected callback was called times 2',\n ...
javascript
edit
0
1
bsd-3-clause
0b4baf7c5fd6b33a6bc9ba0e410852cb99b48a42
alexjeffburke/jest-unexpected
test/utils/truncate.spec.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar assign = require('object-assign');\nvar actionMixin = {\n\n/**\n * Get the entity identifier for the form loading.\n * @returns {object} - The identifier of the entity.\n */\n _getId: function formGetId() {\n if(this.getId...
javascript
edit
0
5
mit
f6702eaf4dae76b1d678c1e3885b2b0ebdb4bc69
JRLK/focus-components,sebez/focus-components,Ephrame/focus-components,JRLK/focus-components,Ephrame/focus-components,JRLK/focus-components,Bernardstanislas/focus-components,anisgh/focus-components,JabX/focus-components,Jerom138/focus-components,anisgh/focus-components,asimsir/focus-components,Bernardstanislas/focus-com...
common/form/mixin/action-behaviour.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport {fetchChannels} from '../api/channelsApi'\n\nexport function getArticles(channel) {\n return function(dispatch) {\n return fetchChannels(channel)\n .then(response => {\n dispatch({\n type: 'GET_ARTICLES',...
javascript
edit
0
2
mit
f29f864c971c460d7ba121db0ad3017c63573bec
kevinladkins/newsfeed,kevinladkins/newsfeed,kevinladkins/newsfeed
client/src/actions/channelsActions.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n$(document).ready(function () {\n\n $(\".carousel-inner-download\").cycle({\n fx:'scrollVert',\n pager: '.pager',\n timeout: 4000,\n speed: 500,\n // pause: 1,\n });\n\n $(\".c1-right\").on(\"click\", function(e) {\n ...
javascript
edit
0
2
mit
02b3bb70674d192b864f1c15f542af125a1655ef
ZachKGordon/project_week_one,ZachKGordon/project_week_one
public/js/main.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n * Check if user is logged in\n */\nfunction authUser() {\n fetch('/login')\n .then(response => response.json())\n .then(userAuthInfo => {\n if(userAuthInfo.isLoggedIn) {\n console.log(\"User is logged ...
javascript
edit
0
2
apache-2.0
312023a21652ae5d6ddb8a8ce5c0dcd3e5c68e69
googleinterns/step27-2020,googleinterns/step27-2020,googleinterns/step27-2020
src/main/webapp/scripts/index.js
rejected_duplicate
Near-duplicate of sample 95787
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n * React Static Boilerplate\n * https://github.com/koistya/react-static-boilerplate\n * Copyright (c) Konstantin Tarkus (@koistya) | MIT license\n */\n\nimport React, { Component } from 'react';\n\nexport default class extends Comp...
javascript
edit
0
1
mit
740fe7c68a3dc0c66621ac83b04df579d7e0b180
Princeton-SSI/organization-website
pages/about.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n\"use strict\";\n\nvar restify = require('restify');\nvar async = require('async');\nvar Anyfetch = require('anyfetch');\n\n\nmodule.exports.get = function get(req, res, next) {\n if(!req.query.context) {\n return next(new restify.C...
javascript
edit
0
2
mit
031a0774e1995ca132120617131b5582bdf67b07
AnyFetch/companion-server
lib/handlers/documents/index.js
rejected_duplicate
Near-duplicate of sample 76954
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nif (document.location.hostname == \"localhost\") {\n var baseurl = \"\";\n} else {\n var baseurl = \"https://noconfidencevote.openup.org.za\";\n}\n\nvar initContactMPsPymParent = function() {\n var pymParent = new pym.Parent('con...
javascript
edit
0
1
mit
7001a99ac6e7341b900472cb72eb92385765bf6d
OpenUpSA/contact-mps,OpenUpSA/contact-mps,OpenUpSA/contact-mps,OpenUpSA/contact-mps
contactmps/static/javascript/embed.js
rejected_duplicate
Near-duplicate of sample 67715
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports = {\n auth : {\n github: {\n appId: 'edfc013fd01cf9d52a31',\n appSecret: 'a9ebb79267b7d968f10e9004724a9d9ac817a8ee',\n callbackURL : 'http://akrasia.ujo.guru:7173/auth/github/callback',\n username ...
javascript
edit
0
0
apache-2.0
94468916921501961db178a80f93439f686bf830
Zeukkari/node-telldusserver,Zeukkari/node-telldusserver
config.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar express = require('express'),\n router = express.Router(),\n carsData = require('../data/data-cars'),\n carsController = require('../controllers/cars-controller')(carsData),\n passport = require('passport');\n\n// TODO: ...
javascript
edit
0
1
mit
dd0fc15d814acf458ce1e2e53859552c8ebe19da
TA-2016-NodeJs-Team2/Telerik-Racer,TA-2016-NodeJs-Team2/Telerik-Racer
server/routers/cars-router.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar createBetNotification = function(bet){\n var bet = Bets.findOne({ _id: bet });\n\n BetNotifications.insert({\n toNotify: bet.bettors[1],\n betBy: bet.bettors[0],\n bet: bet._id\n });\n}\n\nTemplate.createBetForm.events({...
javascript
edit
0
1
mit
217dac82baeb840fc9f6c0e65962cd1b817b7f10
nmmascia/webet,nmmascia/webet
client/templates/bets/create.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports = [\n {\n id: 'Hairstyles',\n required: false,\n sortOrder: 1\n },\n {\n id: 'Beards',\n required: false,\n sortOrder: 4\n },\n {\n id: 'Body',\n required: true,\n sortOrder: 0\n },\n {\n...
javascript
edit
0
0
mit
4c2f94d399f37f39bd9cb4d4fad8b0cce35f2231
g8extended/Character-Generator,g8extended/Character-Generator
data/assets.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports = function (models) {\n const {\n Photo,\n User\n } = models;\n\n return {\n searchPhotos(pattern) {\n let regex = new RegExp(pattern, 'i');\n\n return new Promise((reso...
javascript
edit
0
2
mit
33f0d928fa52c7bab202017d31bbed5be43bb57f
Bird-Shamaness/MuchPixels,Bird-Shamaness/MuchPixels
data/search-data.js
rejected_duplicate
Near-duplicate of sample 94622
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar RtmClient = require('@slack/client').RtmClient;\nvar RTM_CLIENT_EVENTS = require('@slack/client').CLIENT_EVENTS.RTM;\nvar RTM_EVENTS = require('@slack/client').RTM_EVENTS;\nvar Conversation = require('watson-developer-cloud/conversa...
javascript
edit
0
2
mit
dfaea825bc63b9930a3ed2ae4e170771981f9c0a
SinisterBlade/slackbot
app.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nvar rest = require('restler-q');\nvar q = require('q');\n\nmodule.exports = function(options) {\n return q.fcall(function() {\n if (!options) {\n throw new Error(\"options required\");\n }\n\n var supplie...
javascript
edit
0
11
mit
1348dbf2b3dc6150ed1939da81a630943eafe99c
gitterHQ/vat-calculator
lib/octobat-moss-service.js
rejected_complexity
Cyclomatic complexity too high: 11
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nconst Promise = require('bluebird');\nconst readFile = Promise.promisify(require('fs').readFile);\nconst stat = Promise.promisify(require('fs').stat);\n\nconst cache = {};\nconst badgesDir = `${__dirname}/../../badges`;...
javascript
edit
0
3
mit
1ee9edda855c8570fe016fd4abb1cf6857a0396a
npms-io/npms-badges
lib/util/badgeVault.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n(function (enyo, scope) {\n\tenyo.kind({\n\t\tname: 'moon.ContainerInitializer',\n\t\tcomponents: [\n\t\t\t{kind: 'moon.Drawers', drawers: [{}], components: [\n\t\t\t\t{kind: 'moon.Panels', pattern: 'activity', components: [\n\t\t\t\t\t...
javascript
edit
0
1
apache-2.0
d27e66c219a2b0f175ea392ca41b074f25fdd4ef
mcanthony/moonstone,mcanthony/moonstone,mcanthony/moonstone,enyojs/moonstone
source/moon-container-init.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n(function () {\n 'use strict';\n \n angular.module('ui.nestedSortable')\n\n .controller('NestedSortableController', ['$scope', '$attrs', 'nestedSortableConfig',\n function ($scope, $attrs, nestedSortableConfig) {\n $sc...
javascript
edit
0
1
mit
d92515ee55752ab9054441ac2dc2ae7f2dd7fc07
joaocc/angular-ui-tree,TommyM/angular-ui-tree,akshath4u/akkutest,kotmatpockuh/angular-ui-tree,robertdamoc/angular-ui-tree,faceleg/angular-ui-tree,Movideo/angular-ui-tree,fmoliveira/angular-ui-tree,foglerek/angular-ui-tree,BlakeBrown/angular-ui-tree,albi34/angular-ui-tree,zachlysobey/angular-ui-tree,asciicode/angular-ui...
source/nestedSortableCtrl.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/*jslint node: true*/\n\n\"use strict\";\n\nvar site = require(\"./lib/scraper\").site;\n\nsite.\n getRecipeUrls().\n then(function (recipeUrls) {\n return site.getRecipe(recipeUrls[0]);\n }).\n then(function (recipe)...
javascript
edit
0
1
mit
07ceb4095f62f37ba36b401f8834706f9aeb712a
Koekelas/dagelijkse-kost,Koekelas/dagelijkse-kost
app.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst stockIndexRegex = /^([^/]+)\\/([^/]+)$/;\n\nexport const STOCK_INDICES = (process.env.STOCK_INDICES || '')\n .split(',')\n .map(code => code.match(stockIndexRegex))\n .filter(code => code)\n .reduce((last, [, code, nam...
javascript
edit
0
1
mit
3d95a7876e938cc9dc7ade149a3b7e4b460f854a
felamaslen/budget,felamaslen/budget,felamaslen/budget,felamaslen/budget,felamaslen/budget,felamaslen/budget
web/src/constants/stocks.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nfunction ddg_spice_youtube(api_result) {\n \"use strict\";\n DDG.require(\"/js/nryt.js\", {\n success: function() {\n window.iqyt = 2;\n ddgyt.nryt(api_result);\n }\n });\n}\n```\n\nApply thi...
javascript
edit
0
1
apache-2.0
3869efee28f86209ba9bb692d9f70c63f1b3bc8c
digit4lfa1l/zeroclickinfo-spice,shyamalschandra/zeroclickinfo-spice,digit4lfa1l/zeroclickinfo-spice,mohan08p/zeroclickinfo-spice,cylgom/zeroclickinfo-spice,alexandernext/zeroclickinfo-spice,iambibhas/zeroclickinfo-spice,stennie/zeroclickinfo-spice,AcriCAA/zeroclickinfo-spice,bdjnk/zeroclickinfo-spice,marianosimone/zero...
share/spice/youtube/spice.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n\"use babel\";\n\nimport github from './github';\nimport git from './git';\n\nexport default {\n github,\n git,\n\n make: function ({git, github}) {\n let dup = Object.create(this);\n\n if (git) {\n let g = Object.create(t...
javascript
edit
0
5
mit
f60c3ffc40204c6c92581b96584a176d88fc21ec
smashwilson/pull-request
lib/transport/demo/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar instructionsState = {\n\n create: function () {\n _setBackgroundImage('instructions');\n battleStateButton = new MenuButton(528, 175, \"mainMenuButtons\", \"mapSelectState\", \"battleGround\", \"map\", \"army1\", \"army2\", \...
javascript
edit
0
1
mit
184d6265997ef8fd114e0a605a1a2b279c150543
JohnP42/Fantasy-Wars,JohnP42/Fantasy-Wars
game/game-state-managers/instructionsState.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nrequire('../typedefs');\nconst router = require('express').Router();\nconst mustHaveConnectionAccess = require('../middleware/must-have-connection-access.js');\nconst ConnectionClient = require('../lib/connection-client');\nconst wrap =...
javascript
edit
0
6
mit
120371b68002767acad1310860cbfaecef5dfd7d
rickbergfalk/sqlpad,rickbergfalk/sqlpad,rickbergfalk/sqlpad
server/routes/schema-info.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst Server = require('./server.heroku.js')\nconst port = (process.env.PORT || 8080)\nconst app = Server.app()\n\n/*if (process.env.NODE_ENV !== 'production') {\n const webpack = require('webpack')\n const webpackDevMiddleware = requ...
javascript
edit
0
2
mit
d859978c912d6a49ca1d87f012647eccdd7378d9
kngroo/Kngr,kngroo/Kngr
app.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar config = require('./config');\nvar express = require('express');\nvar bodyParser = require('body-parser');\nvar winston = require('winston');\nwinston.add(winston.transports.File, { filename: 'info.log', level: 'info' });\nwinston.r...
javascript
edit
0
1
mit
2a6d614b453c545bce4c8a8b0ef9d7548554c74b
membersheep/4bot
app.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst discord = require('discord.js');\nconst fs = require('fs');\nconst yaml = require('js-yaml');\n\nconst client = new discord.Client({\n\tfetchAllMembers: true,\n\tmessageCacheMaxSize: 100000\n});\n\nif (fs.existsSync('./con...
javascript
edit
0
1
mit
d927134ca685dcdadfafbea6a732cb95120399ff
IanMurray/AnnuBot
app.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n#!/usr/bin/env node\n'use strict';\n\nvar meow = require('meow');\nvar w3counter = require('./');\n\nvar cli = meow({\n\thelp: [\n\t\t'Usage',\n\t\t' $ w3counter <type>',\n\t\t'',\n\t\t'Example',\n\t\t' $ w3counter browser',\n\t\t' $...
javascript
edit
0
2
mit
cc41abb3c8ea389bdf526c3fcafbc83b5b2a1785
kevva/w3counter
cli.js
rejected_duplicate
Near-duplicate of sample 96976
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar app = require('express')();\nvar server = require('http').Server(app);\nvar io = require('socket.io')(server);\nvar path = require('path');\nvar game = require('./game.js');\n\nserver.listen(3000, function() {\n console.log(\"liste...
javascript
edit
0
1
mit
75534b5dca41c6e5a36b34094ce50d72a23a3889
vakila/net-set,vakila/net-set
app.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n * @copyright 2016-2019, Miles Johnson\n * @license https://opensource.org/licenses/MIT\n */\n\n// Our index re-exports TypeScript types, which Babel is unable to detect and omit.\n// Because of this, Webpack and other bundle...
javascript
edit
0
0
mit
6d4640854d6842b3c283cea18efd4a5f008d5121
milesj/interweave,milesj/interweave,milesj/interweave
packages/core/module.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst config = require('../../../../config/ilmomasiina.config'); // eslint-disable-line\nconst md5 = require('md5');\n\nmodule.exports = () => (hook) => {\n const models = hook.app.get('models');\n const id = hook.id;\n const editTok...
javascript
edit
0
4
mit
0cb7904353a5b900e026d22df28a0357acad58b0
athenekilta/ilmomasiina,athenekilta/ilmomasiina
server/services/signup/hooks/getSignupAndEvent.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React from 'react';\nimport connect from 'react-redux';\nimport { fetchPost } from '../actions';\n\nclass PostsShow extends React.Component {\n componentDidMount() {\n const { id } = this.props.match.params;\n this.props.f...
javascript
edit
0
1
mit
b5351acc81211a1f57362ed02283e8215a7feca3
monsteronfire/redux-learning-blog,monsteronfire/redux-learning-blog
src/components/posts_show.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport protagonist from 'protagonist';\n\nexport default function parseMson(mson, cb) {\n protagonist.parse(mson.trim(), (err, parseResult) => {\n let dataStructureElements;\n\n if (err) {\n return cb(err);\n }\n\n dat...
javascript
edit
0
2
mit
d0768e1473108f14abeb9d2d29fdbceae87caf94
apiaryio/attributes-kit,apiaryio/attributes-kit,apiaryio/attributes-kit
playground/parseMson.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n * Add shim config for configuring the dependencies and exports for\n * older, traditional \"browser globals\" scripts that do not use define()\n * to declare the dependencies and set a module value.\n */\n(function(seajs, global) ...
javascript
edit
0
3
mit
58d6977d32d96b19bbf76d51f5612313b29fdc4a
LzhElite/seajs,Lyfme/seajs,seajs/seajs,miusuncle/seajs,imcys/seajs,tonny-zhang/seajs,miusuncle/seajs,lianggaolin/seajs,eleanors/SeaJS,evilemon/seajs,wenber/seajs,eleanors/SeaJS,treejames/seajs,coolyhx/seajs,MrZhengliang/seajs,JeffLi1993/seajs,uestcNaldo/seajs,Gatsbyy/seajs,liupeng110112/seajs,Lyfme/seajs,kuier/seajs,Mr...
src/plugins/plugin-shim.js
rejected_duplicate
Near-duplicate of sample 86520
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nvar grunt = require('grunt');\n\nexports.accessibilityTests = {\n matchReports: function(test) {\n\n var actual;\n var expected;\n\n test.expect(2);\n\n actual = grunt.file.read('reports/txt/test.txt');\n ...
javascript
edit
0
2
mit
c8aefb887e233ad064db33ba87fe6b83a7b67338
yargalot/grunt-accessibility,yargalot/grunt-accessibility
test/grunt-accessibility_test.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/*global Backbone*/\nvar URL = require('./URL');\nvar VirtualMachine = require('./virtualMachine');\n\n//define a collection of virtual machines\nmodule.exports = Backbone.Collection.extend({\n\tmodel: VirtualMachine,\n\turl: URL.virtua...
javascript
edit
0
0
mit
8341dad7f0ca21d296253c8668f99d9c27b9f175
KleeGroup/front-end-spa,pierr/front-end-spa,pierr/front-end-spa,KleeGroup/front-end-spa
app/models/virtualMachines.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React from 'react';\n\nexport default React.createClass({\n render: function() {\n let saveOptionsDisabled = this.props.saveOptionsDisabled ? \"disabled\" : \"\";\n return (\n <div className=\"modal-fo...
javascript
edit
0
2
apache-2.0
63743241a188b427c061bea2dc4572a208567daa
CCI-MOC/GUI-Frontend,CCI-MOC/GUI-Frontend,CCI-MOC/GUI-Frontend,CCI-MOC/GUI-Frontend,CCI-MOC/GUI-Frontend
troposphere/static/js/components/modals/instance/launch/components/AdvancedOptionsFooter.react.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport * as actions from '../constants/actionTypes';\n\nexport default function(state = {}, action) {\n switch(action.type) {\n case actions.ABOUT_FETCH:\n return Object.assign(...state, action.payload.data);\n default:\n ...
javascript
edit
0
2
mit
4d11031607c718fb0ede81562c36b0e6cf50af13
veryaustin/veryaustin-2017-frontend,veryaustin/veryaustin-2017-frontend
src/reducers/aboutReducer.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nvar all = false;\nvar cache = {};\n\nfunction getCache(room) {\n if (all === false) {\n all = [];\n for (var i in Game.creeps) {\n if (!Game.creeps.spawning) {\n if (cache[Game...
javascript
edit
0
8
mit
679ce7c3942f7b6d150653ba3a8e9cfda3af1b99
avdg/screeps
extensions/tools/targets/myCreeps.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n * CreateAccountField component.\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 License.\n...
javascript
edit
0
2
apache-2.0
01b7581484ef5ec3e020a4da099e6407b5744a76
google/site-kit-wp,google/site-kit-wp,google/site-kit-wp,google/site-kit-wp
assets/js/modules/analytics/common/account-create/create-account-field.js
rejected_duplicate
Near-duplicate of sample 91164
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nangular\n .module('events.preview.directive', ['ui.router'])\n .directive('eventPreview', function () {\n return {\n restrict: 'E',\n replace: true,\n template: '<div class=\"event-preview__item\">'+\n ...
javascript
edit
0
1
mit
4d491cc111a7084cae7069b26f597e7993acafa4
rslnk/reimagine-belonging,rslnk/reimagine-belonging,rslnk/reimagine-belonging
web/app/themes/theme/assets/ng/events/directives/preview.directive.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/* jshint unused: false */\r\nimport ajax from 'ghost/utils/ajax';\r\nimport ValidationEngine from 'ghost/mixins/validation-engine';\r\n\r\nvar ForgottenController = Ember.Controller.extend(ValidationEngine, {\r\n email: '',\r\n s...
javascript
edit
0
2
mit
ed5c811e13e1c1437fedbbe061118c659213eea2
JohnONolan/Ghost-Admin,TryGhost/Ghost-Admin,airycanon/Ghost-Admin,airycanon/Ghost-Admin,acburdine/Ghost-Admin,dbalders/Ghost-Admin,dbalders/Ghost-Admin,TryGhost/Ghost-Admin,kevinansfield/Ghost-Admin,kevinansfield/Ghost-Admin,acburdine/Ghost-Admin,JohnONolan/Ghost-Admin
controllers/forgotten.js
rejected_duplicate
Near-duplicate of sample 77165
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst io = require('socket.io'),\n winston = require('winston');\n\nwinston.remove(winston.transports.Console);\nwinston.add(winston.transports.Console, {'timestamp': true});\n\nconst PORT = 3031;\n\nwinston.info('Rupture real-time...
javascript
edit
0
1
mit
630f21ebededd3ab940137187925c47af789f2c6
esarafianou/rupture,dimriou/rupture,dionyziz/rupture,dimkarakostas/rupture,esarafianou/rupture,dimkarakostas/rupture,dimkarakostas/rupture,esarafianou/rupture,dionyziz/rupture,dimriou/rupture,dimriou/rupture,esarafianou/rupture,dionyziz/rupture,dimriou/rupture,dimkarakostas/rupture,dimriou/rupture,dionyziz/rupture,dion...
realtime/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nfunction submit_score(score) {\n auth_data = get_auth_data()\n submit_data = auth_data + \"&\" + score\n call_api(\"set_score\", submit_data)\n}\n\nfunction get_auth_data() {\n hash = window.location.hash\n return hash.su...
javascript
edit
0
2
apache-2.0
7b9419174ef72b0ff19dd60657272d894d5fd165
alvarogzp/telegram-games,alvarogzp/telegram-games,alvarogzp/telegram-games,alvarogzp/telegram-games
games/common/js/submit_score.js
rejected_duplicate
Near-duplicate of sample 76913
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n(function (window) {\n\t'use strict';\n\n\tvar hearingTest = HearingTest;\n\tvar hearing = hearingTest.init();\n\n\tvar app = new Vue({\n\t\tel: '#hearing-test-app',\n\t\tdata: {\n\t\t\tfrequency: 1000\n\t\t},\n\t\tmethods: {\n\t\t\tcha...
javascript
edit
0
1
mit
d9d6e8e84f038a08d4bdbf33256f7cf8f9d23cd0
kubosho/hearing-test-app
src/app.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n(function (instanceName) {\n var i,\n s,\n z,\n w = window,\n d = document,\n q = 'script',\n f = ['config', 'track', 'identify', 'push', 'call'],\n c = function () {\n var ...
javascript
edit
0
3
mit
e743fab34e49352d902d8b027252bf013e039b40
Woopra/js-client-tracker,Woopra/js-client-tracker
snippet.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar QuizzListView = Backbone.View.extend({\n el: '#app',\n\n templateHandlebars: Handlebars.compile(\n $('#play-template-handlebars').html()\n ),\n\n remove: function() {\n this.$el.empty();\n\n return this;\n },\n\n init...
javascript
edit
0
2
mit
aaa8f64c4ce06e67dc078cb417e085499fb4504d
KillianKemps/MovieQuizz,KillianKemps/MovieQuizz
scripts/views/quizz-view.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nrequire('./patches/gherkin')\nrequire('./keyboard/bindings')\n\nconst electron = require('electron')\nconst Cucumber = require('cucumber')\n\nconst Options = require('../cli/options')\nconst Output = require('./output')\n\nconst output ...
javascript
edit
0
2
mit
11f7957362867684b2e30c70944f3496fc6f99b6
cucumber/cucumber-electron,featurist/cucumber-electron,featurist/cucumber-electron,cucumber/cucumber-electron,cucumber/cucumber-electron,cucumber/cucumber-electron
renderer/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports = {\n settings: {\n domain: 'your-domain.auth0.com',\n clientID: 'your-client-id',\n clientSecret: 'your-client-secret'\n },\n allow: function(user) {\n return true;\n },\n};\n\n```...
javascript
edit
0
1
mit
77e82bf90581e98a95ba5c1f58cf1cbb67e8bdc6
spleenboy/pallium-cms,spleenboy/pallium-cms
app/config/auth.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nfunction ObjectMap(){\n this._obj = {};\n}\n\nlet p = ObjectMap.prototype;\n\np.set = function( key, val ){\n this._obj[ key ] = val;\n};\n\np.delete = function( key ){\n this._obj[ key ] = null;\n};\n\np.has = function( key ){\n re...
javascript
edit
0
1
mit
f8c11d94e363d8d3c8d571723a85b4087cfbe6fd
cytoscape/cytoscape.js,cytoscape/cytoscape.js
src/map.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\n/* Controllers */\nvar recordControllers = angular.module('myApp.recordControllers', []);\n\nrecordControllers.controller('recordCtrl', ['$scope', '$http', '_',\n function($scope, $http, _) {\n // Initialize\n $s...
javascript
edit
0
10
mit
e9b59975ca5b1f3584a3fa0f828e015205be28be
chopstickexe/swimtrack,chopstickexe/swimtrack
app/controllers.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nwindow.onload = function() {\n d3.json(\"../examples/data/gitstats.json\", function(data) {\n data.forEach(function(d) {\n d.date = new Date(d.date);\n d.name = d.name === \"ashwinraman9\" ? \"aramaswamy\" : d.name;\n }...
javascript
edit
0
2
mit
b3cb93f4b798e08841d9681cf06a783bab62de41
palantir/plottable,gdseller/plottable,jacqt/plottable,danmane/plottable,RobertoMalatesta/plottable,RobertoMalatesta/plottable,iobeam/plottable,gdseller/plottable,iobeam/plottable,NextTuesday/plottable,palantir/plottable,softwords/plottable,palantir/plottable,danmane/plottable,RobertoMalatesta/plottable,NextTuesday/plot...
examples/main-page/main.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// Using web3 for its sha function...\nvar Web3 = require(\"web3\");\n\nvar Deployed = {\n\n makeSolidityDeployedAddressesLibrary: function(mapping) {\n var self = this;\n\n var source = \"\";\n source += \"pragma solidity ^0....
javascript
edit
0
3
mit
18ebe527e06ffb04d22da5491d7dde5b40943a1c
ConsenSys/truffle
packages/truffle-core/lib/testing/deployed.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nconst release_type = process.config.target_defaults.default_configuration;\nconst ab_neuter = require(`./build/${release_type}/ab_neuter`);\n\nmodule.exports = neuter;\n\n\nfunction neuter(obj) {\n ab_neuter.neuter(Arr...
javascript
edit
0
2
mit
36e6a4eabfe79f7e0df25621e4380ad49697aba7
silklabs/silk,silklabs/silk,silklabs/silk,silklabs/silk,silklabs/silk,silklabs/silk
external-ab-neuter/main.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nconst EmberAddon = require('ember-cli/lib/broccoli/ember-addon');\n\nmodule.exports = function(defaults) {\n let app = new EmberAddon(defaults, {\n\n // Import _all_ Froala Editor files\n // for the \"dummy\" app...
javascript
edit
0
1
mit
14d9151ba1d0376b1ba9a86761c0aaf9e02d37f6
Panman8201/ember-froala-editor,Panman8201/ember-froala-editor,froala/ember-froala-editor,froala/ember-froala-editor
ember-cli-build.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst express = require('express')\nconst bodyParser = require('body-parser')\nconst cors = require('cors')\nconst morgan = require('morgan')\n\nconst app = express()\n// Seting up middleware\napp.use(morgan('combined'))\napp.use(bodyPa...
javascript
edit
0
1
mit
658ba7209b07bb763e6e93592bfefdde9c9ce78a
rahman541/tab-tracker,rahman541/tab-tracker
server/src/app.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nconst EmberAddon = require('ember-cli/lib/broccoli/ember-addon');\nconst Project = require('ember-cli/lib/models/project');\n\nmodule.exports = function(defaults) {\n let project = Project.closestSync(process.cwd());\n...
javascript
edit
0
1
mit
76c112da2263ea398e5da129e1f9663f727d031e
ember-learn/ember-cli-addon-docs,ember-learn/ember-cli-addon-docs,ember-learn/ember-cli-addon-docs
ember-cli-build.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/* eslint-env node */\nconst EmberAddon = require('ember-cli/lib/broccoli/ember-addon');\n\nmodule.exports = function(defaults) {\n var app = new EmberAddon(defaults, {\n // Add options here\n });\n\n /*\n This build file speci...
javascript
edit
0
1
mit
0f5d2e7a73abf567750489748058a75cb6a4989b
masonwan/ember-render-validate,masonwan/ember-render-validate
ember-cli-build.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar path = require('path');\nvar fs = require('fs-extra');\n\n\nfunction upgradeNeeded(config, callback) {\n var oldSyncDir = syncDirWrong(config);\n var needsUpgrade = oldSyncDir;\n\n callback(needsUpgrade);\n //return oldS...
javascript
edit
0
3
mit
e91126a3233e719eedba767dbcc656750ac0f523
dynamicdan/filesync,dynamicdan/sn-filesync,Echo3ToEcho7/filesync
app/src/upgrade.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React from 'react'\nimport { Link } from 'react-router-dom'\nimport Facebook from '../components/Facebook'\nimport SearchBox from '../components/SearchBox'\n\nconst SiteHeader = ({ user }) => (\n <header className=\"site-header\...
javascript
edit
0
1
mit
90ab18f216757cb67af21d2b28d1da3cf4e8b1b4
TroyAlford/axis-wiki,TroyAlford/axis-wiki
source/components/SiteHeader.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/** @jsx React.DOM */\n\ndefine(\n [\n 'react',\n 'backbone'\n ],\n function (React, Backbone) {\n\n return React.createClass({\n\n propTypes: {\n project: React.PropTypes.instanceOf(Backbone.Model).isRequired\n ...
javascript
edit
0
1
apache-2.0
5a26dfebaf9bf2a9604df92f6dd029c43ab9bddc
CCI-MOC/GUI-Frontend,CCI-MOC/GUI-Frontend,CCI-MOC/GUI-Frontend,CCI-MOC/GUI-Frontend,CCI-MOC/GUI-Frontend
troposphere/static/js/components/modals/instance_launch/ProjectOption.react.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst express = require('express');\nconst mongoose = require('mongoose');\n\nconst app = express();\n\nmongoose.connect('mongodb://localhost/speechdoctor');\n\nrequire('./config/middleware')(app, express);\nrequire('./config/routes.js'...
javascript
edit
0
0
mit
1ea825202a2b67d05e6be5f9fc1cf3009f263764
nonchalantkettle/SpeechDoctor,nonchalantkettle/SpeechDoctor,alexxisroxxanne/SpeechDoctor,alexxisroxxanne/SpeechDoctor
server/server.js
rejected_duplicate
Near-duplicate of sample 97629
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n(function() {\n window.shared || (window.shared = {});\n var dom = window.shared.ReactHelpers.dom;\n\n var ProvidedByEducatorDropdown = window.shared.ProvidedByEducatorDropdown = React.createClass({\n displayName: 'ProvidedByEduca...
javascript
edit
0
2
mit
30a571553b09a4e221445f9f0292fd9da449c3ce
studentinsights/studentinsights,jhilde/studentinsights,jhilde/studentinsights,jhilde/studentinsights,jhilde/studentinsights,studentinsights/studentinsights,erose/studentinsights,erose/studentinsights,studentinsights/studentinsights,studentinsights/studentinsights,erose/studentinsights,erose/studentinsights
app/assets/javascripts/student_profile/provided_by_educator_dropdown.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports = function gruntBabel(grunt) {\n grunt.config('babel', {\n options: {\n sourceMap: false,\n modules: 'amd',\n moduleIds: true,\n moduleRoot: 'crm',\n sourceRoot: 'src',\n blacklist: [\n ...
javascript
edit
0
1
apache-2.0
9b00021f5bf69a6d76e26543a527802319d6cdd3
Saleslogix/argos-saleslogix,Saleslogix/argos-saleslogix,Saleslogix/argos-saleslogix,Saleslogix/argos-saleslogix
grunt-tasks/grunt-babel.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport Reflux from 'reflux';\nimport Actions from './Actions';\nimport Handlers from './Handlers';\n\nexport default class Store extends Reflux.Store {\n constructor() {\n super();\n this.state = {\n retrievingLocation: fals...
javascript
edit
0
1
mit
623da4bb405c483555eb97857be9b675437230bb
mdcarter/lunchfinder.io,mdcarter/lunchfinder.io
src/Store.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nfunction ready(fn) {\n if (document.readyState != 'loading'){\n fn();\n } else {\n document.addEventListener('DOMContentLoaded', fn);\n }\n}\n\nfunction previousElementSibling( elem ) {\n do {\n elem = elem.previousSibling;...
javascript
edit
0
5
mit
8f220780ef56b5b3c010c3368e83a86452ef3042
curiositry/mnml-ghost-theme,omphalosskeptic/mnml-ghost-theme,omphalosskeptic/mnml-ghost-theme
assets/js/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nBookShelf.BookAdd = function(params) {\n\n return $.extend(BookShelf.BookForm(params), {\n\n resetBook: function() {\n this.book.title(\"\");\n this.book.author(\"\");\n },\n\n save: functi...
javascript
edit
0
1
mit
73e797b3b9765455d66cdc7ee9edb67d2e321689
tabalinas/BookShelf,tabalinas/BookShelf
BookShelf.Mobile/views/BookAdd.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React, { Component } from 'react';\nimport ReactDom from 'react-dom';\nimport YTSearch from 'youtube-api-search';\nimport SearchBar from './components/search_bar';\nimport VideoList from './components/video_list';\n// const API_K...
javascript
edit
0
1
mit
b114afe32fdcbedc20af613e940bf8196b069b47
JosephLeon/redux-simple-starter-tutorial,JosephLeon/redux-simple-starter-tutorial
src/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// TODO: should the baseScore be stored, and updated at vote time?\n\n// This interface should change and become more OO, this'll do for now\nvar Scoring = {\n // re-run the scoring algorithm on a single object\n updateObject: functio...
javascript
edit
0
2
mit
70fd5dd1b056544b6dd0177f31aa6c06537fa2da
vlipco/startupcol-telescope,vlipco/startupcol-telescope
server/scoring.js
rejected_duplicate
Near-duplicate of sample 101403
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// We load the Safari fix before document-register-element because DRE\n// overrides attachShadow() and calls back the one it finds on HTMLElement.\nimport './fix/safari';\nimport 'document-register-element';\nimport '@webcomponents/sha...
javascript
edit
0
0
mit
a0ccfaa717492ef56c3f9f0b4b816cfc4c6c63d4
skatejs/web-components
src/index.js
rejected_duplicate
Near-duplicate of sample 70500
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n\nimport { locale as appLocale } from '../../intl'\n\nfunction localeCompare (a, b, locale = appLocale) {\n return a.localeCompare(b, locale, { numeric: true })\n}\n\n/*\n * Sort an Immutable List of Maps (set of disks) for display on ...
javascript
edit
0
5
apache-2.0
7510b80e8b5aa5c34b91825a29eb9443bf6387fa
mareklibra/userportal,oVirt/ovirt-web-ui,mareklibra/userportal,oVirt/ovirt-web-ui,mareklibra/userportal,oVirt/ovirt-web-ui,mareklibra/userportal
src/components/VmDisks/utils.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport { setItemsActionCreator as setItems } from './setItems'\nimport { rangeToActionCreator as rangeTo } from './rangeTo'\nimport { removeActionCreator as remove } from './remove'\nimport { removeAllActionCreator as removeAll } from '...
javascript
edit
0
0
mit
911f44c4a6ffc730060687e589cbf63d0a7be4fc
actano/yourchoice-redux
src/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\ndefine(['lib/def', 'handler'], function(Def, Handler) {\n\n var Jokes = Def.type(Handler, function(source) {\n this.constructor.__super__.call(this);\n this.def_prop('source', source);\n });\n\n Jokes.def_method(function next()...
javascript
edit
0
2
mit
35f06cce46eef1d1dadd3c7b512dd2378d1ea9d5
bassettmb/slack-bot-dev
src/jokes.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\r\nconsole.log('Loading preload script');\r\n\r\nconst { ipcRenderer } = require('electron');\r\n\r\nconst OldNotification = Notification;\r\n\r\nNotification = function(title, options) {\r\n\tconst notificationSettings = ...
javascript
edit
0
2
mit
74a4b20404fc506fef118a6553e171c0967f5f40
Faithlife/FaithlifeMessages
src/preload.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/*\n Copyright 2015 Ops For Developers\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 h...
javascript
edit
0
1
apache-2.0
8bad7a944039d5b374bf963c97c3428c05eb7980
opsfordevelopers/jenkins-show-advanced
jenkins-show-advanced.user.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// Dependencies\nimport 'engine/scene/sprites/enable';\n\n// Loader middleware\nimport bitmap_font_parser from './bitmap_font_parser';\nimport { loader_use_procs } from 'engine/registry';\nloader_use_procs.push(bitmap_font_parser);\n\n/...
javascript
edit
0
0
mit
13ddf46c44933bcc21a37fa626e723729d7768c2
pixelpicosean/voltar,pixelpicosean/voltar
src/engine/scene/text/enable.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n * Truncate a string to the given length.\n *\n * @param string The string to truncate.\n * @param length The length to truncate by.\n *\n * @returns {string}\n */\nexport const truncateString = (string, length) => {\n return st...
javascript
edit
0
1
mit
f439ac809210f9dbfaf176bdff00569f7dcc4fa6
nblackburn/devrant-bot
source/helpers.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/* global DEBUG */\n/* eslint-disable no-console */\nimport { argv } from \"nwjs/argv\";\nimport Logger from \"utils/Logger\";\n\n\nconst { logDebug, logError } = new Logger( \"Application\" );\n\n\nconst onError = async ( type, err, de...
javascript
edit
0
4
mit
8a77f3189ac621c3530c006500f8b5e89a365585
streamlink/streamlink-twitch-gui,streamlink/streamlink-twitch-gui,chhe/livestreamer-twitch-gui,streamlink/streamlink-twitch-gui,chhe/livestreamer-twitch-gui,chhe/livestreamer-twitch-gui
src/app/logger.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n//autocomplete for organism search\n $(\"#search_organism\").autocomplete({\n position: {\n my: \"right top\", at: \"right bottom\"\n },\n source: function (request, response) {\n var $search = request.term;\n ...
javascript
edit
0
1
mit
fa3bc8b524f281d8bae728aa556cba6bc45c0566
molbiodiv/fennec,molbiodiv/fennec,molbiodiv/fennec,molbiodiv/fennec,molbiodiv/fennec
src/webroot/js/quickSearch.js
rejected_duplicate
Near-duplicate of sample 79727
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nfunction getProcessCount(total) {\n\tif (total < 2) {\n\t\treturn 1;\n\t}\n\tif (total > 80) {\n\t return parseInt(total / 30);\n\t}\n\treturn 2;\n}\n\nfunction getThreadCount(total) {\n\tif (total < 2) {\n\t\treturn 1;\n\t}\n ...
javascript
edit
0
4
apache-2.0
97aeed066aee1b166e7c635755f275bf58eb530c
bwahn/ngrinder,nanpa83/ngrinder,bwahn/ngrinder,SRCB-CloudPart/ngrinder,chengaomin/ngrinder,ropik/ngrinder,songeunwoo/ngrinder,chengaomin/ngrinder,SRCB-CloudPart/ngrinder,ropik/ngrinder,GwonGisoo/ngrinder,songeunwoo/ngrinder,bwahn/ngrinder,SRCB-CloudPart/ngrinder,ropik/ngrinder,SRCB-CloudPart/ngrinder,songeunwoo/ngrinde...
ngrinder-controller/src/main/resources/ngrinder_home_template/process_and_thread_policy.js
accepted
null
true