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\nJAR.register({\n MID: 'jar.lang.Object.Object-info',\n deps: ['..', '.!reduce|derive', '..Array!reduce']\n}, function(lang, Obj, Arr) {\n 'use strict';\n\n var reduce = Obj.reduce;\n\n lang.extendNativeType('Object', {\n ...
javascript
edit
0
3
mit
62dee18342aa659ad1f124be9de70b11d3a0c0d1
HROH/JAR
src/jar/lang/Object/Object-info.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nfunction receiveMessage(event) {\n\tvar commentPath,\n\t\tframeURL;\n\n\t// get url of comment\n\tcommentPath = event.data.commentURL;\n\tframeURL \t= \"https://news.ycombinator.com/\" + commentPath;\n\n\tshowComments( frameURL )\n}\n\n...
javascript
edit
0
2
mit
8ccc4d34fe92889c75a06d01bcdbd9df226aa965
tonyonodi/reddit-comments,tonyonodi/reddit-comments,tonyonodi/back-to-the-comments,tonyonodi/back-to-the-comments
inject.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\ndescribe(\"About Expects\", function() {\n\n /We shall contemplate truth by testing reality, via spec expectations. \n it(\"should expect true\", function() {\n expect(true).toBeTruthy(); //This should be true\n });\n\n //To und...
javascript
edit
null
null
mit
da1cd5e7b6cfe09fb21599dd590b49aada010e3d
Imti/javascript-koans,Imti/javascript-koans
koans/AboutExpects.js
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport theme from '../../theme'\n\nexport default {\n mdContent: {},\n content: {\n position: 'relative',\n },\n markdown: {\n display: 'block',\n },\n actions: {\n float: 'right',\n display: 'flex',\n alignItems: '...
javascript
edit
0
0
mit
8e75817344c4743a95f93efbb6a7124220183f60
cssinjs/cssinjs
src/components/MdContent/styles.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar args = _.extend({\n\tduration: 2000,\n\tanimationDuration: 250,\n\tmessage: '',\n\ttitle: Ti.App.name,\n\telasticity: 0.5,\n\tpushForce: 30,\n\tusePhysicsEngine: true\n}, arguments[0] || {});\n\nvar That = null;\n\nexports.show = fu...
javascript
edit
0
5
mit
9cd54ca34eee54d3cbe357147f2f81c6021bc606
titanium-forks/CaffeinaLab.com.caffeinalab.titanium.notifications,CaffeinaLab/Ti.Notifications,DouglasHennrich/Ti.Notifications
controllers/widget.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nrequire('dotenv').config({path: __dirname + '/../.env'})\n\nconst NEXMO_API_KEY = process.env.NEXMO_API_KEY\nconst NEXMO_API_SECRET = process.env.NEXMO_API_SECRET\n\n// By default use the command line argument. Otherwise use the environ...
javascript
edit
0
2
mit
2e048f088512f37e0fcc6feec79930b64a615c1d
nexmo-community/nexmo-node-quickstart,nexmo-community/nexmo-node-quickstart
number_insight/ni-advanced.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport readline from 'readline';\n\nimport Importer from './Importer';\n\nconst commandsToFunctionNames = {\n fix: 'fixImports',\n word: 'import',\n goto: 'goto',\n rewrite: 'rewriteImports',\n add: 'addImports',\n};\n\nexport defa...
javascript
edit
null
null
mit
5c104409305efe16dbffd04c5041c2d88e55846a
trotzig/import-js,trotzig/import-js,trotzig/import-js,Galooshi/import-js
lib/daemon.js
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```javascript\n\"use strict\";\n\n(function() {\n var filters = {\n age: function() {\n this\n .saturation(20)\n .gamma(1.4)\n .vintage()\n .contrast(5)\n .exposure(15)\n .vignette(300, 60)\n ....
javascript
edit
0
1
bsd-2-clause
c69e67b560fd1fa97674f254e88e5637d177d1d9
fwenzel/hipstergram
js/app.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// ----------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporation. All rights reserved.\n// ----------------------------------------------------------------------------\nvar data = r...
javascript
edit
0
2
mit
460569d2ccd067dea0fcebca62a266e4f43c4ac8
mamaso/azure-mobile-apps-node,shrishrirang/azure-mobile-apps-node,mamaso/azure-mobile-apps-node,mamaso/azure-mobile-apps-node,shrishrirang/azure-mobile-apps-node,shrishrirang/azure-mobile-apps-node
src/express/middleware/createContext.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport locations from '../core/locations';\n\nimport View from '../base/view';\n\nimport {trigger} from '../utils/browser';\n\nimport template from '../../templates/location-chooser.ejs';\n\n\nexport default class LocationChooser extend...
javascript
edit
0
2
mit
7512a4e4e4588c16883ebc5499804a05286d1b64
despawnerer/theatrics,despawnerer/theatrics,despawnerer/theatrics
web/src/js/views/location-chooser.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nimport { createStore, applyMiddleware, compose } from 'redux';\nimport thunk from 'redux-thunk';\nimport reducer from './reducers';\n\nconst createStoreWithMiddleware = compose(\n applyMiddleware(thunk),\n window.devT...
javascript
edit
0
0
mit
b304daf4802a5fa1a870ac65ab9f3674eb83b4c1
rit-sse/officers,rit-sse/officers
app/js/store.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar subscriptions = new SubsManager();\n\nRouter.configure({\n\tlayoutTemplate: 'layout',\n\tloadingTemplate: 'loading',\n\tnotFoundTemplate: 'notFound'\n});\n\nRouter.route('/', {\n\tname: 'home',\n\twaitOn: function() {\n\t\treturn su...
javascript
edit
0
1
mit
ed2d17a60d5d560f3c22722221603d846457ae9c
dexterneo/mangas,dexterneo/mangas,dexterneo/mangatek,dexterneo/mangatek
lib/router.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\n// Make our own plugin main interface an event emitter.\n// This can be used to communicate and subscribe to others plugins events.\nimport { EventEmitter } from 'events';\n\n/**\n * Plugin Interface\n * @class Plugin\n...
javascript
edit
0
1
isc
3eba8d104dea9a21650e0dcb52ec8d00d42fe4b0
ManiaJS/plugins,ManiaJS/plugins,ManiaJS/plugins
plugin.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n$JSRTS.os = require('os');\n$JSRTS.fs = require('fs');\n$JSRTS.prim_systemInfo = function (index) {\n switch (index) {\n case 0:\n return \"node\";\n case 1:\n return $JSRTS.os.platform();\n }\n...
javascript
edit
0
4
bsd-3-clause
00efb338ffc61def70a3deb5aebc47d1f76203de
uuhan/Idris-dev,uuhan/Idris-dev,uuhan/Idris-dev,kojiromike/Idris-dev,uuhan/Idris-dev,markuspf/Idris-dev,markuspf/Idris-dev,kojiromike/Idris-dev,markuspf/Idris-dev,uuhan/Idris-dev,uuhan/Idris-dev,markuspf/Idris-dev,uuhan/Idris-dev,markuspf/Idris-dev,markuspf/Idris-dev,kojiromike/Idris-dev,markuspf/Idris-dev,kojiromike/I...
jsrts/Runtime-node.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// @flow\n\nimport { elementNames } from './config'\nimport create from './helper'\n\nexport { apply } from './helper'\n\nexport function tag(head: string, ...tail: any[]): Function {\n return create(head)(...tail)\n}\n\nexport functio...
javascript
edit
null
null
mit
a6bb5eedb0f26bcdb5b837a5cffd86122db42cf8
ktsn/vue-vnode-helper,ktsn/vue-vnode-helper
src/index.js
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar proxyquire = require(\"proxyquire\");\n\n// Returns an ajax instance that has the underlying XMLHttpRequest stubbed.\nfunction getStubbedAjax(stub) {\n\tproxyquire(\"../index.js\", {\n\t\txmlhttprequest: {\n\t\t\t\"XMLHttpRequest\":...
javascript
edit
0
3
mit
3692239249bb4d9efd4e84a2c1ea81d31b28f736
levibotelho/dead-simple-ajax
spec/global-spec.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar Reporter = require('ember-test-utils/reporter')\n\nmodule.exports = {\n disable_watching: true,\n framework: 'mocha',\n launch_in_ci: [\n 'Chrome',\n 'Firefox'\n ],\n launch_in_dev: [\n 'Chrome'\n ],\n reporter: new ...
javascript
edit
0
0
mit
260c02133464f51f80d117fdb67893247f55551a
dafortin/ember-frost-core,EWhite613/ember-frost-core,helrac/ember-frost-core,rox163/ember-frost-core,EWhite613/ember-frost-core,dafortin/ember-frost-core,rox163/ember-frost-core,ciena-frost/ember-frost-core,rox163/ember-frost-core,ciena-frost/ember-frost-core,helrac/ember-frost-core,dafortin/ember-frost-core,EWhite613/...
testem.js
rejected_duplicate
Near-duplicate of sample 99833
true
[ { "role": "user", "content": "Write javascript code for the following: Modify JavaScript file, first working version with keyDown" }, { "role": "assistant", "content": "function playAudioOnKeyDown(elt) {\n let soundToPlay = document.querySelector(`audio[data-key=\"${elt.keyCode}\"]`);\n le...
javascript
new_file
0
2
mit
6384ec4372c63b3d5dc5bd540a2dca39552c910c
shahzaibkhalid/electronic-drum-kit,shahzaibkhalid/electronic-drum-kit
script.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n\r\nvar http = require('http');\r\nvar mongoClient = require('mongodb').MongoClient;\r\n\r\nvar mongoUri = process.env.MONGO_URI || '';\r\nvar port = process.env.PORT || 80;\r\n\r\nmongoClient.connect(mongoUri, function (err, client) {\...
javascript
edit
0
3
mit
069aa383a0b5dc3cb3fca05bce98d8f3106ab1ce
TylerLu/hello-world,TylerLu/hello-world,TylerLu/hello-world
server.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nvar gonzales = require('gonzales-pe');\nvar linters = [\n require('./linters/space_before_brace')\n];\n\nexports.lint = function (data, path, config) {\n var ast = this.parseAST(data);\n var errors = [];\n\n ...
javascript
edit
0
2
mit
5594dd12afca6f57965eeac6fd1e5609c89d78b9
JoshuaKGoldberg/lesshint,lesshint/lesshint,runarberg/lesshint,gilt/lesshint
lib/linter.js
rejected_duplicate
Near-duplicate of sample 94378
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nimport { runCommand } from '../../../utils/helper-tests';\nimport { join } from 'path';\n\ndescribe('Check file names task', () => {\n pit('should pass with valid file & folder names', () =>\n runCommand(['gulp chec...
javascript
edit
0
1
mit
e62497abb96c1a8753a786e55be75b5e3bb3f90b
urbanjs/tools,urbanjs/tools,urbanjs/urbanjs-tools,urbanjs/tools,urbanjs/urbanjs-tools,urbanjs/urbanjs-tools
src/tasks/check-file-names/__tests__/index-test.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst mongoose = require(\"mongoose\");\nconst shortid = require(\"shortid\");\nconst ProcessorItem = require(\"./ProcessorItem\");\nconst originals = require(\"mongoose-originals\");\n\nconst Address = new mongoose.Schema({\n _id: {...
javascript
edit
0
0
mit
67336759eedbcbd662d500336364ba5745ca306a
enhancv/mongoose-subscriptions
src/Schema/Address.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst fs = require('fs')\n , path = require('path')\n , os = require('os')\n , onlyAsync = require('workshopper/verify-calls').verifyOnlyAsync\n\n , files = [\n 'learnyounode.dat'\n , 'lear...
javascript
edit
0
1
mit
3988262c70babec9b3d877077d1327f995247568
amandasilveira/learnyounode,soujiro27/learnyounode,sergiorgiraldo/learnyounode,AydinHassan/learnyounode,thenaughtychild/learnyounode,jqk6/learnyounode,Yas3r/learnyounode,kmckee/learnyounode,zpxiaomi/learnyounode,keshwans/learnyounode,jojo1311/learnyounode,5harf/learnyounode,hsidar/learnyounode,piccoloaiutante/learnyoun...
problems/filtered_ls/setup.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar util = require('util'),\n connect = require('connect'),\n serveStatic = require('serve-static'),\n port = 80,\n app = connect();\n\napp.use(serveStatic(__dirname)).listen(port);\nutil.puts('Listening on ' + port + '...')...
javascript
edit
0
0
mit
969aa542268675b9edfeae9a8139d229712f1000
maael/design-patterns-presentation
server.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nMeteor = {\n isClient: false,\n isServer: true\n};\n\ntry {\n if (process.env.METEOR_SETTINGS)\n Meteor.settings = JSON.parse(process.env.METEOR_SETTINGS);\n} catch (e) {\n throw new Error(\"Settings are not valid JSON\");\n}\n\n...
javascript
edit
0
0
mit
f78e46607cf15a7273ac780086a071f4cea092df
TribeMedia/meteor,henrypan/meteor,l0rd0fwar/meteor,esteedqueen/meteor,jg3526/meteor,D1no/meteor,colinligertwood/meteor,Profab/meteor,skarekrow/meteor,dfischer/meteor,shadedprofit/meteor,servel333/meteor,shadedprofit/meteor,baiyunping333/meteor,skarekrow/meteor,GrimDerp/meteor,michielvanoeffelen/meteor,jeblister/meteor,...
packages/meteor/server_environment.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar Alexa = require('alexa-sdk');\n\nvar APP_ID = 'amzn1.ask.skill.933585d3-ba4a-49f9-baed-86e109c589ed';\n\nvar SKILL_NAME = 'Snack Overflow';\nvar POSSIBLE_RECIPIES = [ 'Chicken Parmesan', 'Spaghetti', 'Turkey Sandwich' ];\n\nexports....
javascript
edit
0
1
mit
373fdd2d21739f38464fb502a75c063f07c8d1cf
cwboden/amazon-hackathon-alexa
src/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport isFunction from 'lodash/isFunction';\nimport isObject from 'lodash/isObject';\nimport assign from 'lodash/assign';\nimport pick from 'lodash/pick';\nimport flatten from 'lodash/flatten';\nimport pickBy from 'lodash/pickBy';\nimpo...
javascript
edit
0
3
mit
0825b7031e33edfd6d684118046bced28b0a2fd2
stampit-org/stamp-utils
src/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar restify = require('restify');\n\nvar mainController = require('./controllers/mainController');\n\nvar server = restify.createServer({\n\tname: 'self-signed'\n});\n\nserver.use(restify.bodyParser());\n\nserver.put('/:client/key', mai...
javascript
edit
0
1
mit
bc30514628a5bf9ccd4f92999115ee75c499e2ad
shtpavel/node-signing-server
server.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React from 'react';\n\nimport Logo from './components/logo'\nimport SocialButtons from './components/social-buttons'\nimport Navigation from './components/navigation'\nimport Home from './components/home'\nimport Footer from './c...
javascript
edit
0
5
mit
c0f10b0f04d691ad7ad2e2bcc5a28effc0f20414
cosmowiki/cosmowiki,cosmowiki/cosmowiki,cosmowiki/cosmowiki,cosmowiki/cosmowiki
src/index.js
rejected_duplicate
Near-duplicate of sample 111844
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nvar express = require('express');\nvar routes = require('./app/routes/index.js');\nvar mongoose = require('mongoose');\nvar passport = require('passport');\nvar session = require('express-session');\nvar bodyParser = re...
javascript
edit
0
1
mit
61c5d54b86f61528a0d5a319320227ac38a73af3
jcsgithub/jcsgithub-mangatradingapp,jcsgithub/jcsgithub-votingapp,jcsgithub/jcsgithub-mangatradingapp,jcsgithub/jcsgithub-votingapp
server.js
rejected_duplicate
Near-duplicate of sample 80290
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n$(document).ready(function() {\n var divs = \"#flash_success, #flash_notice, #flash_error\";\n $(divs).each(function() {\n humanMsg.displayMsg($(this).text());\n return false;\n });\n\n if (window.location.href.search(/query=/...
javascript
edit
0
3
mit
af992a97360ff496aaf30702a55005f61b0c88b6
fotanus/rubygems.org,knappe/rubygems.org,Elffers/rubygems.org,farukaydin/rubygems.org,farukaydin/rubygems.org,hrs113355/rubygems.org,andrew/rubygems.org,rubygems/rubygems.org,maclover7/rubygems.org,fotanus/rubygems.org,andrew/rubygems.org,Ch4s3/rubygems.org,algolia/rubygems.org,jamelablack/rubygems.org,maclover7/rubyge...
public/javascripts/application.js
rejected_duplicate
Near-duplicate of sample 79461
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// @flow\nimport React from 'react'\nimport {globalColors} from '../../../styles'\nimport {Box, Text} from '../../../common-adapters'\n\nconst Retry = ({onRetry}: {onRetry: () => void}) => (\n <Box>\n <Text type='BodySmall' style={{...
javascript
edit
null
null
bsd-3-clause
a91c6b4ca951b8cf5d1076d4f7b35746ddbf034f
keybase/client,keybase/client,keybase/client,keybase/client,keybase/client,keybase/client,keybase/client,keybase/client,keybase/client,keybase/client,keybase/client,keybase/client
shared/chat/conversation/messages/retry.js
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar app = require('express')();\nvar parser = require('./src/scrip').parse;\n\napp.get('/', function (req, res) {\n var scrip = req.query.scrip;\n var result = parser(scrip);\n\n res.send(result);\n});\n\napp.listen('8000');\n\n\n```...
javascript
edit
0
2
mit
0e3042f89fb16fe3c130d1044b8e9c7f599f8e72
pranavrc/scrip
server.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/* eslint-env jquery */\n\nstart();\nfunction start () {\n 'use strict';\n\n $(document).ready(() => {\n $('form').submit(event => {\n event.preventDefault();\n const username = $('#username').val();\n const password...
javascript
edit
0
1
apache-2.0
0b942a6b920c3562468b21ff865c729eda5fe453
ailijic/era-floor-time,ailijic/era-floor-time
public/js/login.js
rejected_duplicate
Near-duplicate of sample 99239
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst axios = require('axios');\nconst BovadaParser = require('../services/BovadaParser');\n\naxios.defaults.baseURL = 'https://www.bovada.lv/services/sports/event/v2/events/A/description/football';\naxios.defaults.headers.common['User-...
javascript
edit
0
1
mit
56a95bd9065a4299a0195b6408ade51b47640ee2
lentz/buddyduel,lentz/buddyduel,lentz/buddyduel
services/bovada.js
rejected_duplicate
Near-duplicate of sample 86729
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\ndefine([], function() {\n\n 'use strict';\n\n return Backbone.View.extend({\n jqplotId: null,\n\n initialize: function(options) {\n this.render();\n\n var view = this;\n diana.helpers.Event.on('DashboardTimeInterv...
javascript
edit
0
3
mit
47b5d6c7a2e90dec04f1b7e751abed54347488a2
codeactual/mainevent
public/js/views/DashboardMainGraph.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n#!/usr/bin/env node\n'use strict';\n\nlet [,, onLineSrc, onCloseSrc ] = process.argv;\nlet onLine = eval(onLineSrc) || (line => line);\nlet onClose = eval(onCloseSrc) || (() => undefined);\nlet env = new Set();\n\nrequire('readline')\n ...
javascript
edit
0
2
mit
9b5395ab11d8b28bc996f42e266a11a591057551
bsdelf/scripts
online.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar gulp = require(\"gulp\");\nvar typescript = require(\"gulp-typescript\");\n\nconst tsconfig = typescript.createProject(\"tsconfig.json\");\n\ngulp.task(\"compile\", () => {\n return gulp.src([\"./src/**/*.ts\", \"!./src/**/*.d.ts...
javascript
edit
0
2
mit
44d6583901f0eaabfb12594110397cdbfb8f21ad
nickp10/shuffler,nickp10/shuffler
gulpfile.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar gulp = require('gulp')\nvar connect = require('gulp-connect')\nvar inlinesource = require('gulp-inline-source')\n\ngulp.task('connect', () => {\n connect.server({\n root: 'dist',\n livereload: true\n })\n})\n\ngulp.task('htm...
javascript
edit
0
1
mit
e558d635be3c497a4766900400ad8b2acb26282f
jeerbl/beat.pm,jeerbl/beat.pm
gulpfile.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nconst gulp = require('gulp'),\n fs = require('fs'),\n plumber = require('gulp-plumber');\n\nconst options = {\n source: 'templates',\n dist: 'dist',\n workingDir: 'tmp',\n src: function plumbedSrc() {\n return ...
javascript
edit
0
1
mit
ead960958b97975c73851633e4c530ada3f374b8
fadeit/responsive-html-email-signature,fadeit/responsive-html-email-signature
gulpfile.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst express = require('express')\n\nconst router = express.Router()\n\n\nmodule.exports = router\n\n```\n\nApply this change: Add some service to dashboard" }, { "role": "assistant", "content": "const express = require('ex...
javascript
edit
0
1
mit
d5d5e4f18a4a3fb467bac398a0a28d5c9a1701f4
JThanat/student-management-system,JThanat/student-management-system
server/routes/dashboard/dashboard.route.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar bower = require('bower'),\n eventStream = require('event-stream'),\n gulp = require('gulp'),\n chmod = require('gulp-chmod'),\n zip = require('gulp-zip'),\n tar = require('gulp-tar'),\n gzip = require('gulp-gzip');...
javascript
edit
0
1
apache-2.0
4ab099864a19bc91b50122853b6dc1808466d443
Mibew/emoji-plugin,Mibew/emoji-plugin
gulpfile.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n(function (module) {\n module.controller('projectHome', projectHome);\n projectHome.$inject = [\"project\"];\n\n function projectHome(project, ui) {\n var ctrl = this;\n ctrl.project = project;\n }\n\n}(angular...
javascript
edit
0
1
mit
ecb7c7dbc3b327aa2e0436c42f5485ad096bc5f8
materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org
website/app/application/core/projects/project/home/home.js
rejected_duplicate
Near-duplicate of sample 70342
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar gulp = require('gulp'),\n // this is an arbitrary object that loads all gulp plugins in package.json.\n coffee = require('coffee-script/register'),\n $ = require(\"gulp-load-plugins\")(),\n express = re...
javascript
edit
0
1
mit
2ce08f2ca4392a0a5753106e2f582a3310914596
GeoSensorWebLab/Arctic-Scholar-Portal,GeoSensorWebLab/asw-workbench,GeoSensorWebLab/asw-workbench,GeoSensorWebLab/asw-workbench,GeoSensorWebLab/Arctic-Scholar-Portal
gulpfile.js
accepted
null
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\nexport default {\n title: 'Flashcards',\n description: 'For studying stuff. ...
javascript
edit
0
0
mit
389851c4db207fbd92b424fe1bbccf773745f99b
ahw/flash-cards-static-app,ahw/superflash.cards
config.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/* eslint-env node */\nmodule.exports = {\n test_page: 'tests/index.html?hidepassed',\n disable_watching: true,\n launch_in_ci: [\n 'PhantomJS',\n 'Chrome'\n ],\n launch_in_dev: [\n 'PhantomJS',\n 'Chrome'\n ],\n brow...
javascript
edit
0
0
mit
91942007195c4eaa1f800be8854e6223b402a0ce
dunnkers/ember-polymer-paper,dunnkers/ember-polymer-paper
testem.js
rejected_duplicate
Near-duplicate of sample 91563
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar argv = require('optimist')\n .usage(\"Usage: $0 --config [config] --port [port]\")\n .demand(['config'])\n .default('port', 5000)\n .argv;\n\nvar mock = require('./src/mock.js').mock;\n\nmock(argv.port, process.cwd + \"/\" + arg...
javascript
edit
0
0
mit
7b3bdf9c919d38bf18b8825d75deb0f6018c0e37
tildedave/httpmock.js
httpmock.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/* eslint-env node */\nmodule.exports = {\n test_page: 'tests/index.html?hidepassed',\n disable_watching: true,\n launch_in_ci: [\n 'Chrome'\n ],\n launch_in_dev: [\n 'Chrome'\n ],\n browser_args: {\n Chrome: {\n mo...
javascript
edit
0
0
mit
28b36a018f16bb471d7a896aefc23fba40353fc4
rwjblue/ember-debug-handlers-polyfill,rwjblue/ember-debug-handlers-polyfill
testem.js
rejected_duplicate
Near-duplicate of sample 84098
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst visibilityFilter = (state = 'SHOW_ALL', action) => {\n switch(action.type) {\n case 'SET_VISIBILITY_FILTER':\n return action.filter;\n default:\n return state;\n }\n};\n\nexport default visibilityFilter;\n\n```\n...
javascript
edit
0
3
mit
ecd6064267b8bbdd126dbda09e74f85cdabc729f
blaqbern/lists,blaqbern/lists
src/reducers/visibilityFilter.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports = {\n refreshMin: 10,\n github: {\n per_page: 100,\n timeout: 5000,\n version: '3.0.0'\n },\n local: {\n save: 'NEVER', // NEVER, ON_REFRESH, ALWAYS \n location: undefined\n }\n}\n\n```\n\nApply this c...
javascript
edit
0
0
mit
13ce5d9b14847599a894e2098ba10a2382a78bf8
mcwhittemore/gist-db,pinn3/gist-db
config.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nconst program = require('commander');\nconst path = require('path');\nconst FlaCompiler = require('./FlaCompiler');\n\n\nprogram\n .version(require('../../package.json').version)\n .option('--interactive-compiler ...
javascript
edit
0
1
mit
286aaa28ea38b4b3022b35fac03b8948d8ff2807
alexeiskachykhin/flc
src/cli/Host.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nconst express = require('express');\nconst app = express();\nconst path = require('path');\nconst twilio = require('twilio');\nconst bodyparser = require('body-parser');\n\nconst onConnect = require('./lib/socket').onCo...
javascript
edit
0
0
apache-2.0
3c4b2a07c509c7031e7e914729982fc3431872d9
peterjuras/askeighty,peterjuras/askeighty
server.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport {\n HEADER_NAV_MOUSE_ENTER,\n HEADER_NAV_MOUSE_LEAVE,\n SET_HEADER_NAV\n} from '../constants/headerNav';\nimport { setCurrentAsset } from '../actions/assets';\nimport keyBy from 'lodash/keyBy';\n\nexport const setCurrentHeader...
javascript
edit
0
2
mit
b2f2591150c2bcc640fd706eef8cd2ae1cc740ad
g8extended/Character-Generator,g8extended/Character-Generator
src/actions/headerNav.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst defaults = {\n\t/**\n\t * Label\n\t */\n\tlabel: 'Dialog',\n\n\t/**\n\t * Description - ID of HTMLElement to use as aria-describedby\n\t */\n\tdescription: '',\n\n\t/**\n\t * Focus - HTMLElement to focus on open\n\t */\n\tfocus: '...
javascript
edit
0
0
mit
8f05bb23c68bf3ded65cbf9b145f1f299b44205c
rynpsc/dialog,rynpsc/dialog
src/defaults.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n#! /usr/bin/env node\n\nvar program = require(\"commander\");\n\nprogram\n .version(\"0.0.1\")\n\n .command(\"devices [options]\", \"Lists devices, or adds/removes devices from project\")\n .command(\"deploy [options]\", \"Deploys th...
javascript
edit
0
0
mit
b487ddf16e2a8c396b927fb580919716a951f0a3
deldrid1/imp-cli,matt-haines/imp-cli,cat-haines/imp-cli
bin/imp.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// ==UserScript==\n// @name bleep.com dance all night\n// @namespace <EMAIL>\n// @include https://bleep.com/*\n// @version 1\n// @description Disable the 60 second pause on bleep.com\n// @license MIT\n// @oujs:autho...
javascript
edit
0
1
mit
9e1f44dd5609ae683e9bb147f7c84955b3b7bdaa
Rob-ot/bleep.com-dance-all-night
bleep.com-dance-all-night.user.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React, { Component } from 'react'\nimport Facet from './Facet'\nimport { isActive } from '../../helpers/manageFilters'\n\nconst styles = {\n type: {\n textTransform: 'capitalize',\n fontSize: '1em',\n fontWeight: 400,\n...
javascript
edit
0
2
mit
3561e1abd475ac6b1d3a48076b9f5d8a5ebaf3f1
sgmap/inspire,sgmap/inspire
src/components/Facets/FacetsGroup.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport convertSourceCode from './convertSourceCode'\n\nexport default class ConvertCodeCell {\n\n /*\n Collect <code specific-use=\"cell\"> and turn it into cell elements in\n TextureJATS\n\n TODO:\n - Properly handle CDA...
javascript
edit
0
1
mit
7ebb7b380645c5dc496d2b4376979bd7a9bbaa87
substance/texture,substance/texture
src/converter/r2t/ConvertCodeCell.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nfunction sortCss(settings, cssObject) {\n function sortDeep(array) {\n sortCss.scope(settings, array, {\n displace : [\n 'sass function',\n 'sass import',\n 'sass include',\n 'sass include arguments'...
javascript
edit
0
5
mit
bf33de8661a8d2ff1dfa415929c86679eb7c8cc0
SeanJM/atom-css-clean
src/css-clean-src/sortCss/sortCss.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport settings from 'settings';\nimport { bind } from 'util/dom';\n\nvar worker;\nvar messageCount;\nvar callbacks;\n\nfunction post (command, data, callback) {\n callbacks[messageCount] = callback;\n\n worker.postMessage({\n ...
javascript
edit
0
2
mit
3eb178c27d595833fe1ea7ebeb846c37ffd094e4
darvelo/match-three
js/board.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst express = require('express')\nconst path = require('path')\nconst fs = require('fs')\nconst formidable = require('formidable')\nconst app = express()\nconst PORT = process.env.PORT || 9000\nconst UPLOAD_DIR = path.join(__dirname, ...
javascript
edit
0
1
mit
f4035de99216e3c4d587a53e5f728316acab1f22
planigan/resource-center,planigan/resource-center,fus-marcom/resource-center,fus-marcom/resource-center
server.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport Ember from 'ember';\n\nexport default Ember.Controller.extend({\n flashError: null,\n nextFlashError: null,\n showUserOptions: false,\n\n stepFlash: function() {\n this.set('flashError', this.get('nextFlashErro...
javascript
edit
0
2
apache-2.0
b2416e04739afc0ee2c52ed64dabdd069c2ccaa2
chenxizhang/crates.io,withoutboats/crates.io,sfackler/crates.io,mbrubeck/crates.io,chenxizhang/crates.io,chenxizhang/crates.io,sfackler/crates.io,BlakeWilliams/crates.io,sfackler/crates.io,withoutboats/crates.io,Susurrus/crates.io,mbrubeck/crates.io,steveklabnik/crates.io,Gankro/crates.io,BlakeWilliams/crates.io,achand...
app/controllers/application.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar Deck = function(cards = []) {\n this.cards = cards;\n};\n\nDeck.prototype.addCard = function(card) {\n this.cards.push(card);\n};\n\nDeck.prototype.nextCard = function(card) {\n return this.cards.pop();\n};\n\nDeck.prototype.fetc...
javascript
edit
0
1
mit
5df0f46b25b9d97e5a20a9488de3ee01fc9baa71
zjuanz/tendr,zjuanz/tendr,zjuanz/tendr
app/assets/javascripts/deck.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n * This file is automatically loaded when knex runs migrations\n */\n\nrequire('babel-register')();\n\nconst config = require('./server/config').default;\n\nmodule.exports = {\n client: 'mssql',\n connection: {\n server: confi...
javascript
edit
0
0
mit
647e62ffa45e6cd91bf2232c7dfbe78055705599
noms-digital-studio/csra-app,noms-digital-studio/csra-app,noms-digital-studio/csra-app
knexfile.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\ndocument.addEventListener(\"DOMContentLoaded\", function (event) {\n // redirect to 7777 port\n // ping golang counter\n httpGetAsync(\"http://www.aracki.me:7777/count\", function (res) {\n alert(res);\n })\n});\n\nfu...
javascript
edit
0
2
mit
4d84f4549135fce864890b00deedfb81eed3ad23
Aracki/aracki.me,Aracki/aracki.me
js/count.js
rejected_duplicate
Near-duplicate of sample 80919
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\n// Load requirements\nconst clk = require('chalk'),\n chalk = new clk.constructor({level: 1, enabled: true});\n\n// Formats a string with ANSI styling\nmodule.exports = function(str) {\n\n // Variables\n const re...
javascript
edit
0
7
apache-2.0
f04da7379d9c870cc065460d5a20fd90d21dbf78
transmutejs/core
app/libs/utils/color-string.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport * as _ from 'lodash'\nimport UUID from 'node-uuid';\n\nconst KEY = 'GIFS';\n\nexport const loadData = () => {\n let data = JSON.parse(localStorage.getItem(KEY));\n\n if (_.isEmpty(data)) {\n return {};\n } else {\...
javascript
edit
0
2
mit
0ee588e3e67535829d31b06b5da91ffb3d1910a8
macpie/Gif-Chrome-Extension,macpie/Gif-Chrome-Extension
src/apis/GifAPI.js
rejected_duplicate
Near-duplicate of sample 99183
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n * Download tool for Unicode CLDR JSON data\n *\n * Copyright 2013 Rafael Xavier de Souza\n * Released under the MIT license\n * https://github.com/rxaviers/cldr-data-downloader/blob/master/LICENSE-MIT\n */\n\n\"use strict\";\n\nva...
javascript
edit
0
3
mit
f60385580b7db9ef8a0a8a137d95e08abccb854e
rxaviers/cldr-data-downloader
lib/util.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst path = require(\"path\");\nconst merge = require(\"webpack-merge\");\nconst webpack = require(\"webpack\");\nconst common = require(\"./webpack.common.js\");\n\nconst postCSSPlugins = [\n require(\"postcss-easy-import\")({ prefix...
javascript
edit
0
0
mit
4c36269339935f0ccb44dc600d4c1dcd5d2725ec
trendyminds/pura,trendyminds/pura
config/webpack.dev.js
rejected_duplicate
Near-duplicate of sample 69034
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n * Bootstrap\n * (sails.config.bootstrap)\n *\n * An asynchronous bootstrap function that runs before your Sails app gets lifted.\n * This gives you an opportunity to set up your data model, run jobs, or perform some special logic....
javascript
edit
0
2
mit
666bc930fece85dc2b45221bd7ffcecb73a057a3
TheConnMan/jukebot,TheConnMan/jukebot,TheConnMan/jukebot
config/bootstrap.js
rejected_duplicate
Near-duplicate of sample 100302
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nannotationApp.controller('MainController', function($scope) {\n $scope.tokens = [\n { 'string' : 'Marcus', 'id' : '1' },\n { 'string' : 'rosam', 'id' : '2' },\n { 'string' : 'videt', 'id' : '3' },\n { 'string' : '.', 'id' :...
javascript
edit
0
1
mit
5712884c7ddbe7edafdf2c3e03f456d031d96e84
fbaumgardt/arethusa,alpheios-project/arethusa,latin-language-toolkit/arethusa,latin-language-toolkit/arethusa,alpheios-project/arethusa,fbaumgardt/arethusa,alpheios-project/arethusa,PonteIneptique/arethusa,PonteIneptique/arethusa,Masoumeh/arethusa,fbaumgardt/arethusa,Masoumeh/arethusa
app/js/controllers/main_controller.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar http = require('http');\nvar fs = require('fs');\nvar path = require('path');\nvar mime = require('mime');\nvar cache = {};\n\nfunction send404(response) {\n response.writeHead(404, {'Content-Type': 'text/plain'});\n response.writ...
javascript
edit
0
2
mit
188f10af537bfdfb3e0c24c676b129efca9117f5
sebsonic2o/chatrooms,sebsonic2o/chatrooms
server.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst Client = require('../lib/client');\n\nconst options = {\n baseUrl: 'some value',\n username: 'some value',\n password: 'some value'\n};\n\ndescribe('Client', () => {\n it('should be constructor and factory function', () => {\n...
javascript
edit
0
1
mit
091842d279f0456ca9f8f2f062a7d207c4e1466e
bponomarenko/stash-web-api
spec/client.spec.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar koa = require('koa');\nvar http = require('http');\nvar route = require('koa-route');\nvar serve = require('koa-static');\nvar bodyParser = require('koa-bodyparser');\n\n// Koa middleware\nvar error = require('./api/lib/middleware/e...
javascript
edit
0
0
apache-2.0
4b14769af554c0a28817f049e75b783dc2c18f36
eladnava/applicationize,eladnava/applicationize
server.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport {GateBuilder} from \"src/circuit/Gate.js\"\nimport {Matrix} from \"src/math/Matrix.js\"\nimport {GatePainting} from \"src/draw/GatePainting.js\"\n\nconst NeGate = new GateBuilder().\n setSerializedId(\"NeGate\").\n setSymbo...
javascript
edit
0
1
apache-2.0
826d3b49a409fc658991a25f2226f67a0a00722e
Strilanc/Quantum-Circuit-Inspector,Strilanc/Quirk,Strilanc/Quirk,Strilanc/Quantum-Circuit-Inspector
src/gates/Joke_NeGate.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n(() => {\n module.exports = (gulp, plugins, config) => {\n return () => {\n return plugins.vinylFs.src([config.patternsPath + '/**/*.js',\n config.patternsPath + '/**/*.json',\n ...
javascript
edit
0
1
mit
4ec78b2489dbb115523266c2442db59a5e3486bf
chanceaclark/rocketbelt,chanceaclark/rocketbelt,chanceaclark/rocketbelt,Pier1/rocketbelt,Pier1/rocketbelt
gulp-tasks/link-js.js
rejected_duplicate
Near-duplicate of sample 82373
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React from 'react';\nimport {Provider} from 'react-redux';\nimport {Router, Route, IndexRoute} from 'react-router';\nimport HomeContainer from '../../home/components/HomeContainer';\nimport TranslationProvider from './translation...
javascript
edit
0
1
mit
8de650bcecb75087610aed4352e0a426290f690c
nordsoftware/outdoors-sports-map,nordsoftware/outdoors-sports-map,nordsoftware/outdoors-sports-map
src/modules/common/components/App.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar Anagram = require('./anagram');\n\ndescribe('Anagram', function() {\n\n it(\"no matches\",function() {\n var detector = new Anagram(\"diaper\");\n var matches = detector.match([ \"hello\", \"world\", \"zombies\", \"pants\"]);...
javascript
edit
0
1
mit
4d49374a63ede67e58ead2fd34dc484c67efa606
wobh/xjavascript,marcCanipel/xjavascript,marcCanipel/xjavascript,nicgallardo/xjavascript,a25patel/xjavascript,cloudleo/xjavascript,schorsch3000/xjavascript,wobh/xjavascript,JenanMannette/xjavascript,Vontei/Xjavascript-Solutions,eloquence/xjavascript,exercism/xjavascript,nicgallardo/xjavascript,exercism/xjavascript,a25p...
assignments/javascript/anagram/anagram_test.spec.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst command = {\n command: \"console\",\n description:\n \"Run a console with contract abstractions and commands available\",\n builder: {},\n help: {\n usage: \"truffle console [--network <name>] [--verbose-rpc]\",\n opt...
javascript
edit
0
2
mit
214861a2176e4beb47802ef192927a286301fefe
ConsenSys/truffle
packages/core/lib/commands/console.js
rejected_duplicate
Near-duplicate of sample 94056
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nangular.module('ladda-lw', ['ngAnimate']).directive('ladda', function laddaDirective() {\n return {\n restrict: 'A',\n scope: {\n ladda: '=',\n },\n compile: (element, attrs) => {\n const lLoading = attrs.ladda;\n...
javascript
edit
0
2
mit
159689207deab42fbc4626d8f8b38d3e94c880ea
aeharding/angular-ladda-lw,aeharding/angular-ladda-lw
src/angular-ladda-lw.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/*jshint -W106*/\n/*global define*/\n\ndefine(['underscore', 'backbone', 'models/user-request-model'], function(_, Backbone, UserRequestModel) {\n 'use strict';\n\n var UserRequestCollection = Backbone.Collection.extend({\n ...
javascript
edit
0
3
mit
23e1f61e01d8f6d8fb3760bcd01bc50b17cdeaf7
SUSE/calamari-clients,ceph/calamari-clients,ceph/calamari-clients,ceph/romana,SUSE/romana,GregMeno/test,SUSE/calamari-clients,SUSE/romana,ceph/romana,SUSE/calamari-clients,SUSE/romana,GregMeno/test,ceph/romana,ceph/calamari-clients,SUSE/calamari-clients,SUSE/romana,SUSE/calamari-clients,ceph/romana,ceph/romana,ceph/cal...
dashboard/app/scripts/collections/user-request-collection.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/* We have to setup the global variables which will be used for web application. \n As now everything comes from webframework globally so I put it here temprarily.\n When we completely moved back ferite webframework then we setup it t...
javascript
edit
0
0
bsd-3-clause
1600a066ccdb6cbb1b55ecfc0eb526f1854350e0
cention/ferite-module-webframework,cention/ferite-module-webframework,cention/ferite-module-webframework
Public/Resources/Javascript/global-config.js
rejected_duplicate
Near-duplicate of sample 84236
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n * @requires javelin-install\n * @provides javelin-typeahead-normalizer\n * @javelin\n */\n\n\n/**\n * @group control\n */\nJX.install('TypeaheadNormalizer', {\n statics : {\n normalize : function(str) {\n return ('' + str...
javascript
edit
0
1
bsd-3-clause
5bdbc0cf0211864b15ca74f07846a6168528760e
phacility/javelin,phacility/javelin,phacility/javelin,phacility/javelin,phacility/javelin
src/lib/control/typeahead/normalizer/TypeaheadNormalizer.js
rejected_duplicate
Near-duplicate of sample 79652
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Component } from '@angular/core';\n\n@Component({\n selector: '<%= prefix %>-root',<% if (inlineTemplate) { %>\n template: `\n <h1>\n {{title}}\n </h1><% if (routing) { %>\n <router-outlet></router-outlet><% } %...
typescript
edit
null
null
mit
b8acc48fd3764fad74b9a53a9eb5ab91522a4eb0
geofffilippi/angular-cli,pedroapy/angular-cli,beeman/angular-cli,catull/angular-cli,garoyeri/angular-cli,catull/angular-cli,beeman/angular-cli,maxime1992/angular-cli,beeman/angular-cli,hansl/angular-cli,manekinekko/angular-cli,garoyeri/angular-cli,nwronski/angular-cli,DevIntent/angular-cli,angular/angular-cli,angular/a...
packages/@angular/cli/blueprints/ng/files/__path__/app/app.component.ts
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```javascript\n\nvar moment = require('moment');\n\n// NOTE: month indices are zero-based\n\nmodule.exports.DATA_START_YEAR = 2012;\nmodule.exports.DATA_START_MONTH = 0;\nmodule.exports.DATA_START_MOMENT = moment([\n module.exports.DATA_START_YEAR,\n...
javascript
edit
0
0
mit
9c448e669a966c307bc1218d58300c3a46bcec43
lucified/lucify-asylum-countries,lucified/lucify-asylum-countries,lucified/lucify-asylum-countries,lucified/lucify-asylum-countries
src/js/model/refugee-constants.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport { inject as service } from '@ember/service';\nimport Controller from '@ember/controller';\nimport { task, timeout } from 'ember-concurrency';\n\nexport default Controller.extend({\n flashMessages: service(),\n searchGroup: task...
javascript
edit
0
1
bsd-2-clause
1a9d382e09906e5b6e05ded1b391f337e9a8f69d
barberscore/barberscore-web,barberscore/barberscore-web,barberscore/barberscore-web
app/controllers/dashboard/session-manager/session/entries/new.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\n/**\n * Module dependencies.\n */\nvar mongoose = require('mongoose'),\n\tSchema = mongoose.Schema,\n MediaSchema = require('./media.server.model').schema,\n _ = require('lodash');\n\n/**\n * ExperimentSchema Schema\n...
javascript
edit
0
2
mit
9067165f7c34b397f227f76c042bbac248b55b52
brennon/eim,brennon/eim,brennon/eim,brennon/eim
app/models/experiment-schema.server.model.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\njQuery(document).ready(function($) {\n $(\".flash.notice, .flash.alert\").flashNotice();\n\n // This is useful for toggling CSS helpers\n // whilst developing.. cmd+G\n var cmdDown = false;\n $('body').keydown(function(event) {\n ...
javascript
edit
0
4
mit
79e420facbf85e450abe75e73ab50966d3a0d8fd
ggoral/whitehall,YOTOV-LIMITED/whitehall,askl56/whitehall,YOTOV-LIMITED/whitehall,robinwhittleton/whitehall,alphagov/whitehall,alphagov/whitehall,askl56/whitehall,ggoral/whitehall,ggoral/whitehall,askl56/whitehall,hotvulcan/whitehall,robinwhittleton/whitehall,robinwhittleton/whitehall,alphagov/whitehall,alphagov/whiteh...
app/assets/javascripts/whitehall.js
rejected_duplicate
Near-duplicate of sample 74717
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport MainHeader from './MainHeader'\nimport Logo from './Logo'\nimport LogoText from './LogoText'\nimport Navbar from './Navbar'\nimport NavbarMenu from './NavbarMenu'\nimport SidebarToggle from './SidebarToggle'\nimport ControlSideba...
javascript
edit
0
0
mit
976953f7392ac8d42105fc43a98be05dbd29d37d
falmar/react-adm-lte
src/components/MainHeader/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport Ember from 'ember';\n\nexport default Ember.Route.extend({\n createFeedFromGtfsService: Ember.inject.service('create-feed-from-gtfs'),\n beforeModel: function(transition) {\n var controller = this;\n var feedModel = this....
javascript
edit
0
2
mit
1de53839f2cd6677b4851328727c79268ebaa278
transitland/feed-registry,transitland/feed-registry
app/feeds/new/add-operator/route.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nlet gpu = null;\n\nmodule.exports = class Texture {\n\t\n\t/**\n \t * @desc WebGl Texture implementation in JS\n\t * @constructor Texture\n\t * @param {Object} texture \n\t * @param {Array} size \n\t * @param {Array} dimensions \n\t * @...
javascript
edit
0
2
mit
88a1f0ad4fe017951e6ee12d2ffd06b9faa63852
abhisheksoni27/gpu.js,gpujs/gpu.js,gpujs/gpu.js
src/core/texture.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nmodule.exports = {\n normalizeEntityName: function() {},\n\n afterInstall: function() {\n return this.addPackagesToProject([\n { name: 'liquid-fire', target: '0.15.0' }\n ]).then(function() {\n return ...
javascript
edit
0
1
mit
f243ee0236cc8899c1286e853603777a3940c2c3
alphasights/ember-cli-paint,alphasights/ember-cli-paint
blueprints/ember-cli-paint/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React from 'react';\nimport ReactDOM from 'react-dom';\nimport App from './App';\n// import {createStore} from 'redux';\n\n// ReactDOM.render(<App />, document.getElementById('app'));\n\nconst counter = (state = 0, action) => {\n...
javascript
edit
0
3
mit
1007897ded24181fe74d7ee6e11c101afbd68bca
gongmingqm10/EggHead,gongmingqm10/EggHead,gongmingqm10/EggHead,gongmingqm10/EggHead
redux/main.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar VML = require('./vml');\nvar Canvas = require('./canvas');\n//var Flash = require('./flash');\n\nvar hasCanvas = function(){\n\n\tvar canvas = document.createElement('canvas');\n\treturn canvas && !!canvas.getContext;\n\n};\n\n/*\nv...
javascript
edit
0
0
mit
553838d49c22388ce2d7bffcfe5647c7ffb8c702
sebmarkbage/art,sebmarkbage/art
modes/fast.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports = function(config){\n config.set({\n\n basePath : '../',\n\n files : [\n 'app/bower_components/angular/angular.js',\n 'app/bower_components/angular-route/angular-route.js',\n 'app/bower_components/an...
javascript
edit
0
3
mit
3b12a910505e9d7464bec031af6ecb8cfb31e56f
double16/switchmin-ng,double16/switchmin-ng
test/karma.conf.js
rejected_duplicate
Near-duplicate of sample 94238
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/**\n * Code is from https://medium.com/google-developer-experts/\n * angular-supercharge-your-router-transitions-using-new-animation-features-v4-3-3eb341ede6c8\n */\nimport {\n sequence,\n trigger,\n stagger,\n animate,\n style,\n...
typescript
edit
0
0
mit
bd0b09e0c24d7ec00f4181661c1644ebc5891d82
sebastienbarbier/sebastienbarbier.com,sebastienbarbier/sebastienbarbier.com,sebastienbarbier/sebastienbarbier.com,sebastienbarbier/sebastienbarbier.com
src/app/router.animations.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { ValidationSeverity } from './dockerValidator';\n\nexport interface ValidatorSettings {\n\n\tdeprecatedMaintainer?: ValidationSeverity;\n\n\tdirectiveCasing?: ValidationSeverity;\n\n\tinstructionCasing?: ValidationSeverity;\n}\n...
typescript
edit
0
0
mit
95fc6bf1d3e0713db8cde9ea82028e87a4cc73a2
rcjsuen/dockerfile-language-server-nodejs,rcjsuen/dockerfile-language-server-nodejs
src/dockerValidatorSettings.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Component, EventEmitter, Output, ViewEncapsulation } from '@angular/core';\n\n@Component({\n selector: 'app-header',\n templateUrl: './header.component.html',\n styleUrls: ['./header.component.scss'],\n encapsulation: ViewE...
typescript
edit
0
1
mit
a75469eeb366388ed114e796992686685e9d67e3
auth0-blog/ng2-dinos,auth0-blog/ng2-dinos,kmaida/ng2-dinos,kmaida/ng2-dinos,kmaida/ng2-dinos,auth0-blog/ng2-dinos
src/app/header/header.component.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/// <reference path=\"./typings/index.d.ts\"/>\n\nrequirejs.config({\n \"baseUrl\": \"/js/\",\n \"paths\": {\n \"bootstrap\": \"https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.6/js/bootstrap.min\",\n \"c...
typescript
edit
0
0
mit
9fcd52394dd4478df3506c49587aedf646403fbd
crossroads-education/eta-front,crossroads-education/eta-front
static/js/common.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n\nimport os from \"../util/os\";\nimport {app} from \"../electron\";\nimport {handleActions} from \"redux-actions\";\n\nimport {\n IAction,\n ILanguageSniffedPayload,\n IFreeSpaceUpdatedPayload,\n} from \"../constants/action-types\";...
typescript
edit
0
1
mit
3c0c8e9afbe0a8c3e4615a1540d3365ffb554ea5
itchio/itch,itchio/itchio-app,itchio/itch,leafo/itchio-app,itchio/itch,leafo/itchio-app,itchio/itch,itchio/itchio-app,itchio/itch,itchio/itchio-app,leafo/itchio-app,itchio/itch
appsrc/reducers/system.ts
accepted
null
true