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 fs = require('fs')\n\nvar pkg = JSON.parse(fs.readFileSync(__dirname + '/../package.json').toString())\n\nexports.VERSION = pkg.version\n\nexports.DEFAULT_PORT = process.env.PORT || 9876\nexports.DEFAULT_HOSTNAME = process.env.IP ||...
javascript
edit
0
0
mit
a4b5cdde1843dca8c08fc3d6ddf2b763ef4e873d
pmq20/karma,youprofit/karma,chrisirhc/karma,astorije/karma,aiboy/karma,jamestalmage/karma,hitesh97/karma,vtsvang/karma,patrickporto/karma,aiboy/karma,karma-runner/karma,shirish87/karma,kahwee/karma,buley/karma,IsaacChapman/karma,hitesh97/karma,harme199497/karma,astorije/karma,tomkuk/karma,pedrotcaraujo/karma,Klaudit/ka...
lib/constants.js
rejected_duplicate
Near-duplicate of sample 68051
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/* FILE string.js */\n\n(function () {\n \n this.sparks.string = {};\n \n var str = sparks.string;\n \n str.strip = function (s) {\n s = s.replace(/\\s*([^\\s]*)\\s*/, '$1');\n return s;\n };\n \n ...
javascript
edit
0
1
apache-2.0
368c10724ead9b725bbd75f31a7922fcbe6fc0aa
concord-consortium/sparks,concord-consortium/sparks,concord-consortium/sparks,concord-consortium/sparks,concord-consortium/sparks
app/javascript/helpers/string.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar express = require('express');\nvar request = require('request');\nvar http = require('http');\nvar router = express.Router();\nvar fixtures = require('./fixtures');\n\n/* GET home page. */\nrouter.get('/', function(req, res, next) {...
javascript
edit
0
1
mit
52213504d4c43fe43f572dc8bf84113a9af07797
ngomez22/FootScores,ngomez22/FootScores
routes/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nangular.module('core').controller('SoundTestController', ['$scope', 'TrialData',\n function($scope, TrialData) {\n\n /* global io */\n var socket = io();\n\n socket.on('oscMessageSent', function(data) {\n ...
javascript
edit
0
1
mit
6cce0db72acfc12bf7fae13346be29928976b641
brennon/eim,brennon/eim,brennon/eim,brennon/eim
public/modules/core/controllers/sound-test.client.controller.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport {\n SEEK,\n SET_DURATION,\n SET_CURRENT_SONG,\n CHANGE_VOLUME,\n CHANGE_CURRENT_SECONDS,\n PLAY,\n PAUSE\n} from './../actions/actionTypes'\n\nconst initialState = {\n isPlaying: false,\n playFromSeconds: 0,\n totalSeco...
javascript
edit
0
8
mit
4f93585a82adcc93b713cfd983d5343a23e262b3
AbsoluteZero273/Deezic
app/renderer/reducers/player.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport Ember from 'ember';\n\nexport default Ember.Mixin.create({\n hasPaginationSupport: true,\n total: 0,\n page: 0,\n pageSize: 10,\n didRequestPage: Ember.K,\n\n first: function () {\n return this.get('page'...
javascript
edit
0
2
apache-2.0
84854a6494b5c9f1a56be857ba2fc8762883f1c9
davidvmckay/Klondike,Stift/Klondike,davidvmckay/Klondike,jochenvangasse/Klondike,jochenvangasse/Klondike,themotleyfool/Klondike,Stift/Klondike,fhchina/Klondike,jochenvangasse/Klondike,fhchina/Klondike,themotleyfool/Klondike,fhchina/Klondike,themotleyfool/Klondike,Stift/Klondike,davidvmckay/Klondike
app/mixins/pagination-support.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React from 'react'\nimport PropTypes from 'prop-types'\nimport { Provider } from 'react-redux'\nimport { BrowserRouter } from 'react-router-dom'\nimport ApolloClient from 'apollo-boost';\nimport { ApolloProvider } from 'react-apo...
javascript
edit
0
2
apache-2.0
8e1cba95872a228b21a76b1fb2edec7bc86af86b
alexisrolland/data-quality,alexisrolland/data-quality,alexisrolland/data-quality,alexisrolland/data-quality
app/src/Components/Base/Root.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\n// Declare app level module which depends on filters, and services\n\nvar app = angular.module( 'myApp', [\n 'ngRoute',\n\n 'myApp.controllers',\n 'myApp.filters',\n 'myApp.services',\n 'myApp.directives'...
javascript
edit
0
1
mit
2402f07c8ce1114389bac47c49b318d931134cdb
projectweekend/Pi-Jukebox,projectweekend/Pi-Jukebox,projectweekend/Pi-Jukebox
web_app/public/js/app.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport Ember from 'ember';\nimport MultiStatsSocket from 'ui/utils/multi-stats';\n\nexport default Ember.Route.extend({\n statsSocket: null,\n\n model() {\n return this.modelFor('service').get('service');\n },\n\n activate() {\n ...
javascript
edit
0
2
apache-2.0
e844bc03546c0189ba47bf1ff7915079abf2ca31
vincent99/ui,westlywright/ui,lvuch/ui,rancherio/ui,pengjiang80/ui,vincent99/ui,rancherio/ui,nrvale0/ui,rancher/ui,nrvale0/ui,pengjiang80/ui,ubiquityhosting/rancher_ui,westlywright/ui,pengjiang80/ui,westlywright/ui,nrvale0/ui,rancher/ui,vincent99/ui,rancherio/ui,lvuch/ui,rancher/ui,ubiquityhosting/rancher_ui,lvuch/ui,ub...
app/service/containers/route.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React, { PropTypes } from 'react';\n\nconst App = ({ children }) => (\n <div className=\"page-container\">\n {children}\n </div>\n);\n\nApp.propTypes = {\n children: PropTypes.element.isRequired\n};\n\nexport default App;\n...
javascript
edit
0
1
mit
5de143e2e7268f50b55fedc392f7408e78355c28
dead-in-the-water/ditw,nicksp/redux-webpack-es6-boilerplate,cloady/battleship,cloady/battleship,nicksp/redux-webpack-es6-boilerplate,richbai90/CS2810,dead-in-the-water/ditw,richbai90/CS2810,richbai90/CS2810,richbai90/CS2810
src/client/assets/javascripts/app/App.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst fs = require('fs');\nconst path = require('path');\n\n/**\n * Finds package.json file from either the directory the script was called from or a supplied path.\n *\n * console.log(findPackageFileInPath());\n * console.log(f...
javascript
edit
0
5
mit
c14e89ab83e035103c58ed57c3681b64278c4a75
neogeek/doxdox
lib/utils/cmd.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/*!\n * Generator-Gnar Gruntfile\n * http://gnarmedia.com\n * @author Adam Murphy\n */\n\n// Generated on <%= (new Date).toISOString().split('T')[0] %> using <%= pkg.name %> <%= pkg.version %>\n\n'use strict';\n\n/**\n * Grunt module\n ...
javascript
edit
0
1
mit
2ee0ebe084b73502b15a4a2f885a37a42abe7586
gnarmedia/gnenerator-gnar
app/templates/Gruntfile.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst path = require('path');\n\nconst HtmlWebPackPlugin = require('html-webpack-plugin');\nconst MiniCssExtractPlugin = require(\"mini-css-extract-plugin\");\n\nmodule.exports = {\n entry: {\n index: ['./src/index.css', './src/inde...
javascript
edit
0
0
apache-2.0
f0d015f6b45f599518e247c24c152fa5f17ba017
Esri/jsapi-resources,Esri/jsapi-resources,Esri/jsapi-resources
esm-samples/jsapi-custom-workers/webpack.config.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport {Hooks} from 'PluginSDK';\n\nlet EnvironmentVariables = {\n description: 'Set environment variables for each task your service launches in addition to those set by Mesos.',\n type: 'object',\n title: 'Environment Variables',\n...
javascript
edit
0
2
apache-2.0
16e45622c0de9f26679cd0cdcbe6f301d3d6fd16
dcos/dcos-ui,dcos/dcos-ui,dcos/dcos-ui,dcos/dcos-ui,dcos/dcos-ui
src/js/schemas/service-schema/EnvironmentVariables.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n\"use strict\";\n\nconst Joi = require('joi');\n\nconst contactSchema = require('./contactSchema');\nconst licenseSchema = require('./licenseSchema');\nconst pathsSchema = require('./pathsSchema');\n\nmodule.exports = Joi.object({\n 't...
javascript
edit
0
0
mit
485e7c6a5c29f5e9f89048ef819ed2338cd54830
Teagan42/Deepthought-Routing
src/schema/infoSchema.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport Vue from 'vue'\nimport App from './App'\nimport I18n from 'vue-i18n'\nimport Cookie from 'vue-cookie'\nimport { sync } from 'vuex-router-sync'\nimport router from './router'\nimport store from './store'\nimport en from 'locales/e...
javascript
edit
0
1
mit
f1749939532bd2e7aa659e2261aac94ded794285
wopian/hibari,wopian/hibari
client/main.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// Main JavaScript Document\nvar cards = [];\nvar mainContent = document.getElementId('main-content');\nvar mainContentRegion = new ZingTouch.Region(mainContent);\n\n//Create the card object template\nfunction contentCard(title, img, de...
javascript
edit
0
2
mit
3f594741d55735c20ae1b7f083222e9d10e35fb5
AnthonyGordon1/sneaker-app,AnthonyGordon1/sneaker-app
js/Main.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nrequire('dotenv').config({\n silent: true,\n})\n\nlet makeHostConfig = (env, prefix) => {\n let host = env[prefix + '_HOST'] || '127.0.0.1'\n let port = parseInt(env[prefix + '_PORT'], 10) || 3030\n let https = env[prefix + ...
javascript
edit
0
6
mit
204de9d56b72ce5387af7bdd5dffab60d16e31e9
viblo-asia/api-proxy
nodejs/config.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport Noty from \"noty\";\nimport \"noty/src/noty.scss\";\nimport \"noty/src/themes/sunset.scss\";\n\nexport function showNotification({ text, type = \"success\" }) {\n return new Noty({\n theme: \"sunset\",\n timeout: 3500, // ...
javascript
edit
0
1
apache-2.0
b0a2e9415545bd7ee6d592c3a270b2d308b80a73
phac-nml/irida,phac-nml/irida,phac-nml/irida,phac-nml/irida,phac-nml/irida,phac-nml/irida,phac-nml/irida,phac-nml/irida
src/main/webapp/resources/js/modules/notifications.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar validateFloat = function(val) {\n if (typeof val != 'undefined') {\n val = parseFloat(val);\n if (! isNaN(val)) { \n if (val > -99999 ) {\n return val;\n }\n }\n }\n ...
javascript
edit
0
4
apache-2.0
0ba67c44d9151fe6286603180e48d1f217344d26
summerinthecity/uhitool,jspaaks/spot,NLeSC/spot,jspaaks/spot,jiskattema/uhitool,summerinthecity/uhitool,jiskattema/uhitool
client/util.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n * @provides javelin-behavior-differential-user-select\n * @requires javelin-behavior\n * javelin-dom\n * javelin-stratcom\n */\n\nJX.behavior('differential-user-select', function() {\n\n var unselectable;\n\n ...
javascript
edit
0
5
apache-2.0
65bbd24974974672c60eea3f250564be6a4bfead
vuamitom/phabricator,r4nt/phabricator,denisdeejay/phabricator,Automattic/phabricator,Automattic/phabricator,hshackathons/phabricator-deprecated,wangjun/phabricator,telerik/phabricator,zhihu/phabricator,devurandom/phabricator,christopher-johnson/phabricator,huaban/phabricator,matthewrez/phabricator,aswanderley/phabricat...
webroot/rsrc/js/application/differential/behavior-user-select.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n * @flow\n */\n\nimport React from 'react';\nimport { StyleSheet, TextInput } from 'react-native';\nimport PropTypes from 'prop-types';\nimport Box from './Box';\n\nclass EditableEntry extends React.Component {\n render() {\n r...
javascript
edit
0
1
mit
796488305ab4f2231a58bd18474268bd8c7b5952
nikhilsaraf/react-native-todo-app
components/EditableEntry.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar Game = function(boardString){\n var board = '';\n this.board = '';\n if (arguments.length === 1) {\n this.board = this.toArray(boardString);\n } else {\n function random() {\n return Math.floor(Math.random() * 10 + 6)...
javascript
edit
0
5
mit
9d7031b6dcf8c8ce6a36cdfc73c9d467a44517b5
suprfrye/galaxy-256,suprfrye/galaxy-256
js/game.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/*\r\njavascript in this file controls the html page demonstrating the autosubject functionality\r\n*/\r\n\r\n\r\n\r\n/**************************************************************************************/\r\n/* Set up and...
javascript
edit
0
1
mit
ce9abc43dbc217d800f833cff36ee3e51e85a2e9
dkudeki/metadata-maker,dkudeki/metadata-maker
assignFAST/assignFASTExample.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar mongoose = require('mongoose');\nvar Schema = mongoose.Schema;\n\nvar UserSchema = new Schema(\n{\n lastName : String,\n firstName : String,\n username : String,\n passwordHash : String,\n privateKey : Str...
javascript
edit
0
0
mit
81b1d18eff0f5734aa64b780897bd8f7bb1bdb31
asso-labeli/labeli-api,asso-labeli/labeli-api,asso-labeli/labeli-api
models/user.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar app = require('http').createServer(handler);\nvar io = require('socket.io').listen(app);\nvar fs = require('fs');\nvar util = require('util');\nvar Tail = require('tail').Tail;\nvar static = require('node-static');\n\nvar file = new...
javascript
edit
0
3
mit
81248f3d84a40336e9d9d0e9a4f5c43441d0e381
feuloren/logreader
main.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n Configures a registry for use with an Ember-Data\n store.\n\n @method initializeStore\n @param {Ember.ApplicationInstance} applicationOrRegistry\n */\nexport default function initializeStoreService(applicationOrRegistry) {\n var ...
javascript
edit
0
4
mit
b795f71c87be22da3892c6cc9eca607b229c66bf
andrejunges/data,Turbo87/ember-data,fpauser/data,Turbo87/ember-data,gniquil/data,flowjzh/data,Kuzirashi/data,tstirrat/ember-data,webPapaya/data,gkaran/data,eriktrom/data,minasmart/data,dustinfarris/data,danmcclain/data,workmanw/data,ryanpatrickcook/data,jgwhite/data,minasmart/data,HeroicEric/data,ryanpatrickcook/data,o...
packages/ember-data/lib/instance-initializers/initialize-store-service.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\ndefine(function () {\n // Hungarian\n return {\n errorLoading: function () {\n return 'Az eredmények betöltése nem sikerült.';\n },\n inputTooLong: function (args) {\n var overChars = args.input.length - args.maximu...
javascript
edit
0
1
mit
be01e76023213f35d99f69ffc440906022e218ee
select2/select2,select2/select2
src/js/select2/i18n/hu.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\n(function() {\n\n describe(\"voteeHome\", function() {\n\n beforeEach(function() {\n module('mean');\n module('mean.voteeHome');\n });\n\n var $controller;\n var $sco...
javascript
edit
0
1
mit
d23a9060c4174db9b99a2e54924223e79ac5a828
lewkoo/Votee,lewkoo/Votee,lewkoo/Votee
packages/custom/voteeHome/public/tests/voteeHome.spec.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports = {\n events: {\n udp: function (bot, msg, rinfo) {\n if (rinfo.address === bot.config.get('yakc.ip')) {\n bot.fireEvents('yakc', msg.toString(), rinfo)\n } else {\n bot.notice(bot.config.get('...
javascript
edit
0
3
isc
36a42af4fa6a02fa45c357020269ca52ca9e27d1
zuzakistan/civilservant,zuzakistan/civilservant
modules/udp.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n$(document).ready(function(){\n\n // Include common elements\n $(\"#footer\").load(\"common/footer.html\");\n $(\"#header\").load(\"common/header.html\", function()\n {\n // Add current navigation class based on url\n location...
javascript
edit
0
5
mit
d25293f6af7ce9d646d64c681b59983d442eab42
mbdimitrova/bmi-fmi,mbdimitrova/bmi-fmi
js/main.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar casper = require('casper').create();\n\n// casper.on('remote.message', function(message) {\n// console.log(message);\n// });\n\nvar out_dir = 'static/tmp/';\nvar key = casper.cli.get(0);\nvar url = casper.cli.get(1);\n\nvar file...
javascript
edit
0
1
mit
08229bff7728a349aa93eb0dc8db248106cbda97
AstunTechnology/NRW_FishMapMon,AstunTechnology/NRW_FishMapMon,AstunTechnology/NRW_FishMapMon,AstunTechnology/NRW_FishMapMon
scripts/export_map.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar updatePreviewTarget = function(data, status) {\n $('.spinner').hide();\n $('#preview-target').html(data);\n renderLatexExpressions();\n}\n\nvar renderLatexExpressions = function() {\n $('.latex-container').each(\n function(in...
javascript
edit
0
1
mit
b30d1d1e94b6c65babb2c9351cfe49153926d3b9
erettsegik/erettsegik.hu,erettsegik/erettsegik.hu,erettsegik/erettsegik.hu
js/main.js
rejected_duplicate
Near-duplicate of sample 104678
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nAccounts.ui.config({\n requestPermissions: {\n github: ['user', 'repo', 'gist']\n }\n})\n// \n// Accounts.onLogin(function () {\n// Router.go('/profile')\n// })\n\nTemplate.login.helpers({\n currentUser: function () {\n retur...
javascript
edit
0
1
isc
8b2d2153271eec59b4b2d43a75ba9a83ed432a5d
caalberts/code-hangout,caalberts/code-hangout
client/components/login.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\nvar app = require('app');\nvar dribbbleapi = require('./dribbbleapi');\n\nvar mainWindow = null;\nvar dribbbleData = null;\n\nvar menubar = require('menubar')\n\nvar mb = menubar({\n index: 'file://' + __dirname + '/app/...
javascript
edit
0
1
cc0-1.0
b13fd8658d216732d4e54e40e029a8246e73202d
andrewnaumann/hotshot,andrewnaumann/hotshot
main.js
rejected_duplicate
Near-duplicate of sample 97995
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/* eslint-env node */\n'use strict';\n\nmodule.exports = {\n allowedVersions: {\n 'ember-in-element-polyfill': '*',\n 'ember-get-config': '0.3.0 || 0.4.0 || 0.5.0',\n '@embroider/util': '*',\n },\n};\n\n```\n\nApply this chan...
javascript
edit
0
0
mit
21f7adb8f7e293f205c7b0813726c10a2a1224f1
ilios/common,ilios/common
tests/dummy/config/dependency-lint.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// ==UserScript==\n// @name Rightmove Enhancement Suite\n// @namespace https://github.com/chigley/\n// @description Keyboard shortcuts\n// @include http://www.rightmove.co.uk/*\n// @version 1\n// @grant GM_addStyl...
javascript
edit
0
1
mit
14fb941b6db1aa53e7906a46e8cf7f6d4abb6d94
chigley/rightmove-enhancement-suite
Rightmove_Enhancement_Suite.user.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// ***********************************************\n// This example commands.js shows you how to\n// create various custom commands and overwrite\n// existing commands.\n//\n// For more comprehensive examples of custom\n// commands plea...
javascript
edit
0
2
mit
764743d6b08899286262a50203b11410d90f9694
ministryofjustice/cla_public,ministryofjustice/cla_public,ministryofjustice/cla_public,ministryofjustice/cla_public
cypress/support/commands.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n(function(){\n\n'use strict';\n\nangular\n .module('secondLead')\n \n .controller('RegisterCtrl', [\n 'Restangular',\n '$state', \n 'store',\n 'UserModel',\n function (Restangular, $state, store, UserModel) {\n var r...
javascript
edit
0
2
mit
5641a9bc6a72b30572840e4067c9421ecd973f27
ac-adekunle/secondlead,ac-adekunle/secondlead,ac-adekunle/secondlead
app/assets/javascripts/angular/main/register-controller.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\ndocument.addEventListener('DOMContentLoaded', function() {\n var searchButton = document.getElementById('search');\n\n searchButton.addEventListener('click', (function() {\n var query = document.getElementById('form').query.value;\...
javascript
edit
0
1
mit
7388412cc4908793883e0de2348f8b44b72e2256
yu-i9/HoogleSwitcher,yu-i9/HoogleSwitcher
js/main.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n * Internal dependencies\n */\nimport { addAMPExtraProps } from '../';\n\ndescribe( 'addAMPExtraProps', () => {\n\tit( 'does not modify non-child blocks', () => {\n\t\tconst props = addAMPExtraProps( {}, { name: 'foo/bar' }, {} );\...
javascript
edit
0
1
apache-2.0
753c56b41f2d7564dd660995d24606f17b0ffbbd
ampproject/amp-toolbox-php,ampproject/amp-toolbox-php
assets/src/stories-editor/helpers/test/addAMPExtraProps.js
rejected_duplicate
Near-duplicate of sample 102924
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React from \"react\";\nimport {\n Text\n} from \"react-native\";\n\nexport default class MemoriesScreen extends React.Component {\n render() {\n return (\n <Text>My memories</Text>\n );\n }\n}\n\nMemoriesScreen.rout...
javascript
edit
0
1
mit
205535d3723b96163f74e4d18a3dd3a5fa84dcf9
ottobonn/roots
screens/MemoriesScreen.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// Ember!\nimport Ember from 'ember';\nimport SearchRoute from 'yebo-ember-storefront/mixins/search-route';\n\n/**\n * Taxons show page\n * This page shows products related to the current taxon\n */\nexport default Ember.Route.extend(Se...
javascript
edit
0
1
mit
c2b47f8a3c1d3f844152127c9218d90dfa66bbf2
yebo-ecommerce/ember,yebo-ecommerce/ember,yebo-ecommerce/ember
packages/storefront/app/routes/yebo/taxons/show.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar endGame = function(game){\n\n if (game.player.lives > 0) {\n missBall(game.ball, game.player)\n } else if (game.player.lives <= 0 ){\n gameOver()\n }\n}\n\nvar missBall = function(ball, player){\n if ( ball.bottomEdge().y ...
javascript
edit
0
4
mit
8caa309f6a807555825f277e5f277007544b9957
theomarkkuspaul/Brick-Breaker,theomarkkuspaul/Brick-Breaker
js/end_game.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n(function() {\n\n var global = this;\n var karma = global.__karma__;\n\n karma.start = function(runner) {\n var suites = global.__karma_benchmark_suites__;\n var hasTests = !!suites.length;\n var errors = [];\n\n if (!has...
javascript
edit
0
2
mit
e5c906b30e793d73972b133cc3099f48a0a1a919
JamieMason/karma-benchmark,JamieMason/karma-benchmark
adapter.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar cadence = require('cadence')\nvar util = require('util')\n\nfunction UserAgent (ua) {\n this._ua = ua\n}\n\nUserAgent.prototype.send = cadence(function (async, properties, body) {\n var url = util.format('http://%s/kibitz', pr...
javascript
edit
0
1
mit
917b47168540b27682825b50155aaf34ecef3b62
bigeasy/compassion
compassion.colleague/ua.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport middleware from './internal/middleware'\nexport default middleware\n\n\nexport { runSaga } from './internal/runSaga'\nexport { END, eventChannel, channel } from './internal/channel'\nexport { buffers } from './internal/buffers'\n...
javascript
edit
0
1
mit
474fbf5b088004ad676fe71b15f3031755b02b74
yelouafi/redux-saga,eiriklv/redux-saga,HansDP/redux-saga,baldwmic/redux-saga,redux-saga/redux-saga,yelouafi/redux-saga,redux-saga/redux-saga,HansDP/redux-saga,eiriklv/redux-saga,granmoe/redux-saga,baldwmic/redux-saga,ipluser/redux-saga,granmoe/redux-saga,ipluser/redux-saga
src/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n(function(app) {\n 'use strict';\n\n var dom = app.dom || require('../dom.js');\n\n var GeoNamesData = function(url) {\n this._url = url;\n this._loadPromise = null;\n this._data = [];\n };\n\n GeoNamesData.prototype.load ...
javascript
edit
0
5
mit
3a1caf79f987bfa48d53ae06e1a4156fd09a313a
ionstage/loclock,ionstage/loclock
js/models/geonames-data.js
rejected_duplicate
Near-duplicate of sample 90345
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// Copyright (c) 2011 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n/**\n * This view displays information on the HTTP cache.\n * ...
javascript
edit
0
3
bsd-3-clause
80d3bccc16c15681292e67edd69ec1631a4c63d1
PeterWangIntel/chromium-crosswalk,hujiajie/pa-chromium,bright-sparks/chromium-spacewalk,rogerwang/chromium,zcbenz/cefode-chromium,mohamed--abdel-maksoud/chromium.src,ondra-novak/chromium.src,M4sse/chromium.src,ondra-novak/chromium.src,Jonekee/chromium.src,jaruba/chromium.src,mohamed--abdel-maksoud/chromium.src,axinging...
chrome/browser/resources/net_internals/http_cache_view.js
rejected_duplicate
Near-duplicate of sample 108557
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React from 'react';\nimport { BaseViewComponent } from '../higher-order/index.js';\n\nclass RedditPosts extends BaseViewComponent {\n constructor(props) {\n super(props);\n }\n\n render() {\n return (\n <div classNa...
javascript
edit
0
1
mit
90ef58c5a31967bf1e172f792bdbff3fba9e7f4a
yanglinz/reddio,yanglinz/reddio
src/_assets/scripts/components/app/reddit.posts.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React from 'react';\nimport PropTypes from 'prop-types';\nimport { Link } from 'react-router-dom';\nimport { msgid, c } from 'ttag';\nimport { SimpleDropdown, DropdownMenu } from 'react-components';\n\nconst MemberAddresses = ({ ...
javascript
edit
0
1
mit
9b12e26b863386ae30b34d5756a45f598b1e0ba0
ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient
packages/components/containers/members/MemberAddresses.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n * Tslint webpack block.\n *\n * @see https://github.com/wbuchwalter/tslint-loader\n */\n\nmodule.exports = tslint\n\n/**\n * @param {object} [options] See https://github.com/wbuchwalter/tslint-loader#usage\n * @...
javascript
edit
0
2
mit
11ee849dab45f6f3d8f3a6fd23d179b561937ece
andywer/webpack-blocks,andywer/webpack-blocks,andywer/webpack-blocks
packages/tslint/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nscms.create('ProductVariationsViewBridge', function(){\n return {\n attachEvents:function () {\n var self = this;\n\n $(this.viewNode, '.product-variation-tab').click(function(event) {\n if...
javascript
edit
0
3
apache-2.0
908eb28bac7678ddfc89e9009caea52c47f602f7
rojr/SuperCMS,rojr/SuperCMS
src/Leaves/Admin/Products/ProductVariations/ProductVariationsViewBridge.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\ncontext('List View', () => {\n\tbefore(() => {\n\t\tcy.login('Administrator', 'qwe');\n\t\tcy.visit('/desk');\n\t\tcy.window().its('frappe').then(frappe => {\n\t\t\tfrappe.call(\"frappe.tests.test_utils.setup_workflow\");\n\t\t\tcy.relo...
javascript
edit
0
1
mit
4b120aabea20e0f8631b61cc1d9ea4a306b03aad
vjFaLk/frappe,almeidapaulopt/frappe,almeidapaulopt/frappe,yashodhank/frappe,mhbu50/frappe,saurabh6790/frappe,yashodhank/frappe,almeidapaulopt/frappe,adityahase/frappe,adityahase/frappe,frappe/frappe,vjFaLk/frappe,saurabh6790/frappe,mhbu50/frappe,frappe/frappe,mhbu50/frappe,StrellaGroup/frappe,StrellaGroup/frappe,aditya...
cypress/integration/list_view.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst numberOfPlannedTests = 6\ncasper.test.begin('test-simple-image-resize', numberOfPlannedTests, (test) => {\n casper.start(`http://${testhost}`, function () {\n })\n\n casper.then(function () {\n const curr = this.getCu...
javascript
edit
0
1
mit
5ea5cf60359a2105a49bf54b7b5c7a9a4ecd7855
transloadit/jquery-sdk,transloadit/jquery-sdk,transloadit/jquery-sdk
tests/system/test-simple-image-resize.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n * _____ __\n * / ___// /_ _____\n * \\__ \\/ / / / / _ \\\n * ___/ / / /_/ / __/\n * /____/_/\\__, /\\___/\n * /____/\n * Copyright 2017 Slye Development Team. All Rights Reserved.\n * Licence: MIT Lice...
javascript
edit
0
2
mit
b14dd5a3691cc906209194ba82becfad17a9abde
Slye-team/esy-language
src/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// Use this file to change prototype configuration.\n\n// Note: prototype config can be overridden using environment variables (eg on heroku)\n\nmodule.exports = {\n // Service name used in header. Eg: 'Renew your passport'\n serviceN...
javascript
edit
0
0
mit
aee10877af895edd2a8016ddf547ed3f89aed51c
soniaturcotte/make-adhoc-payment,soniaturcotte/make-adhoc-payment,soniaturcotte/make-adhoc-payment
app/config.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar ContextElement = require('./contextElement')\n\nmodule.exports = function (el, cb) {\n\tif ( ! (el instanceof ContextElement)) return cb('Given element is not a ContextElement.')\n\n\tvar attributes = el.getMapping().attributes\n\n\...
javascript
edit
0
4
mit
5796d850680779441489c60730d1655d8ee5444a
kukua/concava
js/validate.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// @flow\n\nimport { StyleSheet } from 'react-native'\nimport { ApplicationStyles, Metrics, Colors } from '../../Themes/'\n\nexport default StyleSheet.create({\n ...ApplicationStyles.screen,\n container: {\n flex: 1,\n marginTop...
javascript
edit
0
0
mit
df1b6c8807ea91bb0f8f5fa5131427699e1d05ca
ruddell/ignite,infinitered/ignite,infinitered/ignite,infinitered/ignite,infinitered/ignite,infinitered/ignite,infinitered/ignite,ruddell/ignite,infinitered/ignite,ruddell/ignite,infinitered/ignite
ignite-base/App/Containers/Styles/ListviewExampleStyle.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// Here be the site javascript!\n\n$(document).ready(function () {\n $(\".button-collapse\").sideNav();\n $('.scrollspy').scrollSpy();\n $(\"form\").submit(function (event) {\n event.preventDefault();\n $(\"#send-ms...
javascript
edit
0
1
mit
7dc9c68f59884e13e93dd9d79eff89da545b9315
melonmanchan/My-Website,melonmanchan/My-Website,melonmanchan/My-Website,melonmanchan/My-Website
js/site.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nfunction getCookie(name) {\n var cookieValue = null;\n if (document.cookie && document.cookie != '') {\n var cookies = document.cookie.split(';');\n for (var i = 0; i < cookies.length; i++) {\n var cookie ...
javascript
edit
0
2
mit
83bfffe5280fb58d27525f18495e0c3ddd8fa6a4
mjroson/django-favit,streema/django-favit,mjroson/django-favit,streema/django-favit,streema/django-favit,mjroson/django-favit
favit/static/js/favorite.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n\nvar SpeeddialContext = function() {\n \n this.properties = {};\n \n global.opr.speeddial.get(function(speeddialProperties) {\n this.properties.url = speeddialProperties.url;\n this.properties.title = speeddialProperties.titl...
javascript
edit
0
2
mit
7e37397d2d01d1158d85ae69c8eb6bb83d522e8a
operasoftware/operaextensions.js,operasoftware/operaextensions.js,operasoftware/operaextensions.js
src/background/contexts/speeddial/SpeeddialContext.js
rejected_duplicate
Near-duplicate of sample 86035
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// TODO consider using https://babeljs.io/docs/plugins/transform-runtime/ instead of babel-polyfill\nimport \"babel-polyfill\"\nimport React from \"react\"\nimport { render } from \"react-dom\"\nimport { createStore, applyMiddleware } f...
javascript
edit
0
2
isc
d9c4ad44e8646db294a1b46b6d10955125d2da9c
bostrom/harvest-balance,bostrom/harvest-balance
src/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nbeforeEach(function() {\n this.addMatchers({\n toBeLessThan: function(expected) {\n return this.actual < expected;\n },\n toHaveAllValuesInRange: function (low, high) {\n for (var idx = 0; idx < this.actual.length;...
javascript
edit
0
4
mit
b759f8c8cb9dee4797dd9dd1741d3dc274403eba
sbnb/capensis-steganography
tests/spec/SpecHelper.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst router = require('./router')\nconst express = require('express')\nconst cors = require('cors')\n\n/**\n * Creates a new server with the given options.\n * @param {Object} options configurable options.\n * @param {Function} ca...
javascript
edit
0
1
mit
56d3feba455c9776a17e311b2cfb294f321ade8e
exprexo/exprexo
lib/exprexo.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nvar normalize = require('../../Document/prototype/normalize');\n\nmodule.exports = function (child/*, …child*/) {\n\tvar oldNodes = this.childNodes, df, nu, i = 0, old;\n\tdf = normalize.apply(this.ownerDocument, argume...
javascript
edit
0
9
mit
48229ca6df978a16a071259083b0a3655d66cfd8
medikoo/dom-ext
lib/Node/prototype/_replace-content.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n* @fileoverview Translation for `requireSpaceAfterKeywords` (JSCS) to ESLint\n* @author Breno Lima de Freitas <https://breno.io>\n* @copyright 2016 Breno Lima de Freitas. All rights reserved.\n* See LICENSE file in root directory f...
javascript
edit
0
0
mit
d2a8b435cd8af2788f213163dad7d12bddb4bc11
brenolf/polyjuice
lib/dictionaries/jscs/requireSpaceAfterKeywords.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport createFormatters from './createFormatters';\n\n// Check for globally defined Immutable and add an install method to it.\nif (typeof Immutable !== \"undefined\") {\n Immutable.installDevTools = install.bind(null, Immutable);\n}\n...
javascript
edit
0
4
bsd-3-clause
79ff48d6a9ea971e23087791dba13c8faf4086a4
andrewdavey/immutable-devtools,andrewdavey/immutable-devtools
src/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar _ = require('lodash')\nvar globFirst = require('./glob-first')\nvar log = require('../run/log')\nvar path = require('path')\nvar async = require('async')\n\nvar isExecutable = require('./is-executable')\n\nmodule.exports = function ...
javascript
edit
0
2
mit
283d7b238b0a778971a9b77d929acf697b4bd501
testdouble/scripty,testdouble/scripty
lib/resolve-script/find-executables.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/* eslint-disable no-console */\nconsole.log('hi');\n// Old ES5 way of creating a Class Component\n// var HelloWorld = React.createClass({\n// render: function() {\n// return (\n// <h1>Hello world!</h1>\n// );\n// };\n...
javascript
edit
0
0
mit
78e4bb29dce00ed1a5edcd296790dcbb0959f40b
mtheoryx/react-redux-es6,mtheoryx/react-redux-es6
src/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React, { Component } from 'react';\nimport PropTypes from 'prop-types';\nimport ReactDOM from 'react-dom';\nimport Odometer from 'odometer';\n\nexport default class ReactOdometer extends Component {\n static propTypes = {\n v...
javascript
edit
0
1
mit
26a5db8b6f14d411fc9f05ff016e35558a6c18da
inferusvv/react-odometerjs
src/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n\"use strict\";\nlet db = require('./db');\n\nfunction generateStub(length) {\n let result = \"\"\n for(let i = 0; i < length; i++) {\n let value = Math.round(Math.random() * 35)\n if (value > 9)\n result += String.fromChar...
javascript
edit
0
3
mit
5162dba0bcf51d1d86c64deebe289000eb966ad5
glynnw/url-shortener,glynnw/url-shortener
lib/short-url-controller.js
rejected_duplicate
Near-duplicate of sample 75955
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nexport default {\n connect: '3.5.0',\n 'server-destroy': '1.0.1',\n 'connect-modrewrite': '0.9.0',\n winston: '2.3.0',\n 'find-port': '2.0.1',\n rimraf: '2.5.4',\n shelljs: '0.7.5',\n lodash: '4.17.2',\n reque...
javascript
edit
0
0
mit
1d1075a1eec288c1372ccd001c197fab29f71980
wojtkowiak/meteor-desktop,wojtkowiak/meteor-desktop
lib/skeletonDependencies.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar mongoose = require('mongoose');\nvar Schema = mongoose.Schema;\n\nvar VoteSchema = new Schema(\n{\n value : Number,\n created : {type : Date, default : Date.now},\n lastEdited : {type : Date, default : Date.now}...
javascript
edit
0
0
mit
1252f56a802deb2528cfabb2b7cdcedc4d17a1fe
asso-labeli/labeli-api,asso-labeli/labeli-api,asso-labeli/labeli-api
models/vote.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst needle = require('needle');\nconst config = require('../config');\nconst _ = require('lodash');\n\nconst weather = {\n getWeatherInfo: function(req, res){\n //TODO add country/city validation here\n const url = ge...
javascript
edit
0
5
mit
405b7f10323ba2780a2e2f2376430bf467d9582a
umasudhan/weather
lib/weather.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n\nvar themes = [\n \"faded\",\n \"grayscale\",\n \"sepia\",\n \"wide-blur\",\n \"overexposed\",\n \"flip-hue\",\n \"none\"\n];\n\nfunction defaultTheme() {\n return \"faded\";\n}\n\ndocument.body.classList.add(\"ugly-http-status...
javascript
edit
0
2
mit
d8384f73dd7b4e8b447634b3111fc58ae19e1435
lgarron/ugly-http-extension,lgarron/ugly-http-extension
content.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport buildProviderAssetPath from 'preprint-service/utils/build-provider-asset-path';\nimport { module, test } from 'qunit';\n\nmodule('Unit | Utility | build provider asset path');\n\n// Replace this with your real tests.\ntest('it wo...
javascript
edit
0
1
apache-2.0
4ca56946ccc518ce57188ef64e9327f97f6f30be
baylee-d/ember-preprints,CenterForOpenScience/ember-preprints,laurenrevere/ember-preprints,laurenrevere/ember-preprints,CenterForOpenScience/ember-preprints,baylee-d/ember-preprints
tests/unit/utils/build-provider-asset-path-test.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n(function(Reddit) {\n\t\"use strict\";\n\tvar anchor = '<a href=\"http://reddit.com$1\" target=\"_blank\">$1</a>';\n\n\tReddit.parse = function(postContent, callback) {\n\t\tvar\tregex = /(\\/r\\/\\w+)/g;\n\n\t\tif (postContent.match(re...
javascript
edit
0
3
bsd-2-clause
b8fb8cb98d070481c4ec88230c3f21325129ffde
Schamper/nodebb-plugin-reddit
library.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nexports.config = {\n specs: [\n \"./e2e-tests/**/*.tests.js\"\n ],\n exclude: [],\n maxInstances: 10,\n sync: true,\n logLevel: \"result\",\n coloredLogs: true,\n screenshotPath: \"./error-screenshots\",\n baseUrl: \"http://...
javascript
edit
0
0
mit
1b17a79157db5681fb31fd8d911ee2d47a645b9d
joekrie/the8,joekrie/the8,joekrie/the8
wdio.conf.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nbeforeEach(function () {\n\tthis.addMatchers({\n\t\t// Expects that property is synchronous\n\t\ttoHold: function () {\n\t\tvar actual = this.actual;\n\t\tvar notText = this.isNot ? \" not\" : \"\";\n\n\t\tvar r = jsc.check(actual, { qu...
javascript
edit
0
4
mit
72c21eee8ad0dfc11b10a70fc2da23ded965b4ec
vilppuvuorinen/jsverify,StoneCypher/jsverify,jsverify/jsverify,jsverify/jsverify,dmitriid/jsverify,izaakschroeder/jsverify,StoneCypher/jsverify
speclib/jasmineHelpers.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nlet videoImage = document.getElementById('video_image');\nvideoImage.src = `http://${document.domain}:8080/?action=stream`;\nlet cameraJoystick = {\n zone: videoImage,\n color: 'red'\n};\nlet cameraJoystickManager = nipplejs.crea...
javascript
edit
0
2
apache-2.0
ca9dfe7879ff24cf241e6edbc7c3507562193d77
dmweis/DynamixelServo,dmweis/DynamixelServo,dmweis/DynamixelServo,dmweis/DynamixelServo
DynamixelServo.Quadruped.WebInterface/wwwroot/js/VideoStreaming.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/* eslint no-console: 0 */\n'use strict';\n\nconst irc = require('irc');\n\nconst server = process.env.IRC_SERVER;\nconst user = process.env.IRC_USER;\nconst channel = process.env.IRC_CHANNEL;\n\nconst client = module.exports.client = n...
javascript
edit
0
2
mit
6625342ffa4c5746a19eef757e539f32290f2925
Starefossen/jenkins-monitor
lib/irc.js
rejected_duplicate
Near-duplicate of sample 76745
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst Promise = require('bluebird');\n\nconst PERIOD_TIME = 30000;\nconst REQUESTS_PER_PERIOD = 10;\n\nfunction currentTime() {\n return Date.now();\n}\n\nclass APILimiter {\n constructor() {\n this.lastPeriod = 0;\n ...
javascript
edit
0
3
mit
de57ef6dcbf79559c50bb6b9298578def2c98529
kumpelblase2/proxtop,kumpelblase2/proxtop,kumpelblase2/proxtop,kumpelblase2/proxtop
src/app/lib/api_limits.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nenyo.kind({\n name: \"moon.sample.photos.PhotoDetailNarrowSample\",\n kind : \"moon.Panel\",\n classes: \"photo-detail\",\n fit: true,\n title : \"PHOTO NAME\",\n titleAbove : \"03\",\n titleBelow : \"2013-04-08\",\...
javascript
edit
0
1
apache-2.0
6593af6c87d41248d9cefc0248b8992a68658d59
mcanthony/moonstone,mcanthony/moonstone,mcanthony/moonstone,enyojs/moonstone
patterns-samples/Photos.PhotoDetailNarrowSample.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports = function (RED) {\n var alasql = require('alasql');\n\n function AlasqlNodeIn(config) {\n RED.nodes.createNode(this, config);\n var node = this;\n node.query = config.query;\n node.on(\"...
javascript
edit
0
4
mit
ed91eac72f4af9dc76e52d85fee204a65d604249
AlaSQL/node-red-contrib-alasql,AlaSQL/node-red-contrib-alasql
node-red-contrib-alasql.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst CopyPlugin = require('copy-webpack-plugin');\nconst ExampleBuilder = require('./example-builder');\nconst fs = require('fs');\nconst path = require('path');\n\nconst src = path.join(__dirname, '..');\n\nconst examples = fs.readdir...
javascript
edit
0
2
bsd-2-clause
649b7be4c27fc54464e3d1a0560f76e8f3505eb8
fredj/ol3,ahocevar/ol3,stweil/ol3,mzur/ol3,stweil/ol3,ahocevar/ol3,stweil/ol3,fredj/ol3,mzur/ol3,adube/ol3,ahocevar/openlayers,geekdenz/ol3,ahocevar/openlayers,bjornharrtell/ol3,adube/ol3,stweil/openlayers,tschaub/ol3,bjornharrtell/ol3,adube/ol3,tschaub/ol3,tschaub/ol3,tschaub/ol3,geekdenz/openlayers,geekdenz/ol3,bjorn...
examples/webpack/config.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n\"use strict\";\n\nimport React from 'react';\nlet { PropTypes } = React;\n\nlet Video = React.createClass({\n\n propTypes: {\n src: PropTypes.string.isRequired,\n width: PropTypes.number.isRequired,\n height: PropTypes.number...
javascript
edit
0
4
mit
96f0fe140e5cbe77d5c31feb60f40c4c562be059
Andreyco/react-video,Andreyco/react-video
src/ui/Video.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nexport const SOCKET_URL = 'wss://ws.onfido.com:9876'\nexport const XHR_URL = 'https://api.onfido.com'\n\nexport const DOCUMENT_CAPTURE = 'DOCUMENT_CAPTURE'\nexport const FACE_CAPTURE = 'FACE_CAPTURE'\n\nexport const SET_TOKEN = 'SET_TOK...
javascript
edit
0
0
mit
cd32c55741feb1bdbf5695b11ed2b0e4bdb11cf1
onfido/onfido-sdk-core
src/constants/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar MaapError = require(\"./utils/MaapError.js\");\nconst EventEmitter = require('events');\nconst util = require('util');\n\n/**\n * Set dsl's store and point to access at the any engine defined in MaaS.\n * Token inherits from EventEm...
javascript
edit
0
1
mit
37786b6ca041b387ff9be400a1f13412f0f21db8
BugBusterSWE/DSLEngine
src/token.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar requirejs = require('requirejs');\nvar test = require('tape');\n\nrequirejs.config({\n baseUrl: 'src',\n});\n\ntest('simple substring can be found', function(t) {\n t.plan(1);\n\n var filters = requirejs('filters');\n\n t.assert...
javascript
edit
0
1
mit
5866282cc1d94776dc92ab8eeccf447384860715
lightster/quick-switcher,lightster/quick-switcher,lightster/quick-switcher
test/filters.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/* @flow */\n'use babel';\n\nexport type Post = {\n title: string,\n content: string,\n postCreated : any,\n postPublished: string,\n lastUpdated: string,\n status: string,\n author: string,\n tags: Array<string>...
javascript
edit
null
null
mit
d0be0c668a41dcd07c888a146d09ab57819fe432
junwatu/blogel,junwatu/blogel,junwatu/blogel
server/core/types.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 var browserExtension = new h.HypothesisChromeExtension({\n chromeTabs: chrome.tabs,\n chromeBrowserAction: chrome.browserAction,\n extensionURL: function (path) {\n return chrome.extens...
javascript
edit
0
2
bsd-2-clause
04fd62bb2301d95fce136b3776e65c7fa9a7189b
hypothesis/browser-extension,hypothesis/browser-extension,hypothesis/browser-extension,project-star/browser-extension,hypothesis/browser-extension,project-star/browser-extension,project-star/browser-extension
src/chrome/lib/install.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nvar expect = require('chaijs/chai').expect;\nvar entries = require('..');\n\ndescribe('entries', function() {\n it('produce a nested array of key-value pairs', function() {\n var input = { a: 1, b: 2, '3': 'c', '4':...
javascript
edit
0
2
mit
d519b8e5022bc7ba0266182bcb3b6d225461d7e4
ndhoule/entries
test/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar config = require('./config');\nvar should = require('should');\nvar nock = require('nock');\nvar up = require('../index')(config);\n\nvar baseApi = nock('https://jawbone.com:443');\n\ndescribe('up', function(){\n describe('.moves',...
javascript
edit
0
1
mit
0c75269a50e1d140c8b2be6c8ef243ac692ba811
ryanseys/node-jawbone-up,banaee/node-jawbone-up
test/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nvar docs = require('../docs/docs');\nvar expect = require('chai').expect;\nvar sinon = require('sinon');\nvar stub = sinon.stub;\nvar utils = require('./helpers/utils');\nvar each = utils.each;\nvar any = utils.any;\nva...
javascript
edit
0
2
mit
85d8dbb12ac354540cd8a1f6d48db57e158c09d2
JakeSidSmith/canvasimo,JakeSidSmith/canvasimo,JakeSidSmith/sensible-canvas-interface
tests/docs.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nvar pathwayApp = angular.module('pathwayApp', ['ui.router', 'templates', 'Devise', 'ngCookies']);\n\npathwayApp.config(function($stateProvider, $urlRouterProvider, $locationProvider) {\n //Default route\n $urlRouterPr...
javascript
edit
0
1
mit
52d61f5483950edb225adbab7b2cadc47a7c84cf
aattsai/Pathway,aattsai/Pathway,aattsai/Pathway
pipeline/app/assets/javascripts/app.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n(function (module) {\n module.controller(\"AccountSettingsController\", AccountSettingsController);\n\n AccountSettingsController.$inject = [\"mcapi\", \"User\", \"toastr\"];\n\n /* @ngInject */\n function AccountSettingsCon...
javascript
edit
0
1
mit
61ad1b4ae14fa79062c05fd7f27b3b9a4ec9ee73
materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org
website/app/application/core/account/settings/settings.js
rejected_duplicate
Near-duplicate of sample 101636
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\ndocument.getElementById(\"ayuda\").setAttribute(\"aria-current\", \"page\");\n\nfunction prueba() {\n\talert(\"prueba\");\n}\n\nvar aside = document.getElementById(\"complementario\");\nvar button = document.createElement(\"BUTTON\");\n...
javascript
edit
0
1
mit
e01550117cb3911806f9eea8465b5fe709fc26ed
nvdaes/nvdaes.github.io,nvdaes/nvdaes.github.io
scripts/ayuda.js
rejected_duplicate
Near-duplicate of sample 101788
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nangular.module(\"Prometheus.controllers\").controller('PieCtrl',\n [\"$scope\", \"$http\",\n \"SharedWidgetSetup\",\n ...
javascript
edit
0
3
apache-2.0
9dc1d156c37c0d7ce8d30451371f1a42a9edd87c
lborguetti/promdash,alonpeer/promdash,juliusv/promdash,jmptrader/promdash,juliusv/promdash,juliusv/promdash,jmptrader/promdash,lborguetti/promdash,jonnenauha/promdash,prometheus/promdash,alonpeer/promdash,prometheus/promdash,thooams/promdash,juliusv/promdash,jmptrader/promdash,jmptrader/promdash,jonnenauha/promdash,jon...
app/assets/javascripts/angular/controllers/pie_ctrl.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n\n/**\n * Management of a device. Supports quering it for information and changing\n * the WiFi settings.\n */\nclass DeviceManagement {\n\tconstructor(device) {\n\t\tthis.device = device;\n\t}\n\n\t/**\n\t * Get information about this ...
javascript
edit
0
3
mit
27fa2729c44fd95129e81894bc52e8e937df5070
aholstenson/miio
management.js
accepted
null
true