messages
listlengths
2
2
language
stringclasses
8 values
prompt_type
stringclasses
2 values
lint_errors
int64
0
129
⌀
cyclomatic_complexity
int64
0
32
⌀
license
stringclasses
7 values
commit
stringlengths
40
40
repos
stringlengths
5
116k
new_file
stringlengths
4
220
status
stringclasses
6 values
error
stringlengths
26
74
⌀
is_valid_syntax
bool
2 classes
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport { isFunction } from 'underscore';\nimport { createEl } from '../../utils/dom';\n\nexport default {\n open() {\n const { container, editor, bm, config } = this;\n const { custom } = config;\n\n if (isFunction(custom.open...
javascript
edit
0
7
bsd-3-clause
e79bb386c723f8af66ed3af3d0edf8e83f223131
artf/grapesjs,artf/grapesjs,artf/grapesjs
src/commands/view/OpenBlocks.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/* @flow */\nimport React, { PropTypes } from 'react';\n\nexport class BotWinPercent extends React.Component {\n // props: Props;\n static propTypes = {\n gamesPlayed: PropTypes.number.isRequired,\n gamesWon: PropTypes.number.is...
javascript
edit
0
3
mit
1a683d737155edf00d937eb3121732760263eef9
mleonard87/merknera-ui,mleonard87/merknera-ui
src/components/BotWinPercent.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n * In development we assume that the code generated is going to be consumed by\n * webpack dev server and we are bundling into a single js file.\n */\n\nimport webpack from 'webpack';\nimport webpackConfigBase from './webpack.base....
javascript
edit
0
0
mit
8166d56d7a8a554712c932ec6622e33ea516ba33
Altocloud/alto-react-ciscospark,ciscospark/react-ciscospark,ciscospark/react-ciscospark,bzang/react-ciscospark,bzang/react-ciscospark,adamweeks/react-ciscospark-1,Altocloud/alto-react-ciscospark,adamweeks/react-ciscospark-1,adamweeks/react-ciscospark-1,ciscospark/react-ciscospark,bzang/react-ciscospark,Altocloud/alto-r...
scripts/webpack/webpack.dev.babel.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n * Module dependencies.\n */\n\nvar _ = require('lodash');\nvar async = require('async');\n\n\n/**\n * exposeGlobals()\n *\n * Expose certain global variables\n * (if config says so)\n *\n * @api private\n */\n\nmodule.exports = fu...
javascript
edit
0
6
mit
c649a74660e8395c76b35ef5a6ca79925dee04c3
antodoms/sails,wsaccaco/sails,saniko/soundcloud_mithril,tempbottle/sails,jianpingw/sails,youprofit/sails,boarderdav/sails,saronwei/sails,tjwebb/sails,vip-git/sails,yinhe007/sails,erkstruwe/sails,hellowin/sails,ctartist621/sails,mnaughto/sails,alex-zhang/sails,hokkoo/sails,kevinburke/sails,dylannnn/sails,harrissoerja/sa...
lib/app/private/exposeGlobals.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport {\n LOAD_STORIES_SUCCESS,\n ADD_STORY\n} from '../constants'\n\nimport fetch from '../core/fetch'\n\nexport function loadStories () {\n return (dispatch) => {\n fetch('/graphql', {\n method: 'post',\n headers: {\n...
javascript
edit
0
1
mit
b71c7a6625a85a46bad809ceca59b9bb0cabd3ea
DominikePessoa/rateissuesfront,cassioscabral/rateissuesfront,DominikePessoa/rateissuesfront,cassioscabral/rateissuesfront
src/actions/stories.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React, { Component } from 'react';\nimport { Link } from 'react-router-dom';\nimport Logo from './Logo.js';\n\nclass Home extends Component {\n render(){\n return (\n <div>\n <div className=\"logo\">\n <Logo ...
javascript
edit
0
1
mit
b9596563d92aab0b6ebcde07de940ae471b44fdb
FilmonFeMe/coloreyes,FilmonFeMe/coloreyes
src/components/Home.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nPackage.describe({\n\tname: 'mizzao:autocomplete',\n\tsummary: 'Client/server autocompletion designed for Meteor\\'s collections and reactivity',\n\tversion: '0.5.1',\n\tgit: 'https://github.com/mizzao/meteor-autocomplete.git'\n});\n\nP...
javascript
edit
0
1
mit
18257f78e1c35198911530a8ee7bf2e8ece060e8
VoiSmart/Rocket.Chat,pitamar/Rocket.Chat,subesokun/Rocket.Chat,fatihwk/Rocket.Chat,subesokun/Rocket.Chat,galrotem1993/Rocket.Chat,nishimaki10/Rocket.Chat,danielbressan/Rocket.Chat,flaviogrossi/Rocket.Chat,Sing-Li/Rocket.Chat,flaviogrossi/Rocket.Chat,4thParty/Rocket.Chat,pitamar/Rocket.Chat,4thParty/Rocket.Chat,mrinaldh...
packages/meteor-autocomplete/package.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar Function = require('./Function')\nvar ident = require('./_utils').ident;\nvar indentEach = require('./_utils').indentEach;\nvar types = require('../types');\n\n\nexports.traverse = Function.traverse;\nexports.traverseStatements = Fu...
javascript
edit
0
10
mit
c791cd091a223c0a379b313b18c7e08e35e83aaa
mattbasta/btype
src/compiler/nodes/FunctionLambda.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nvar kss = require('kss');\n\nmodule.exports = function(grunt) {\n grunt.registerMultiTask('kss', 'Generate style guide with KSS.', function() {\n\n var done = this.async();\n\n var options = this.options({});\n\n...
javascript
edit
0
2
mit
a364c1cdbb86f69780091c565a3e07aafad245c8
kss-node/grunt-kss,kss-node/grunt-kss
tasks/kss.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nlet connecting = false;\nlet connection = null;\n\n\nexport async function connect(serverInfo, databaseName) {\n if (connecting) throw new Error('connecting to server');\n\n try {\n connecting = true;\n\n if (connection) connect...
javascript
edit
0
4
mit
871c94ed91fe519529776b674c3e41a754c306bf
falcon-client/falcon-core,sqlectron/sqlectron-core,falcon-client/falcon-core
src/db/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar nodeFetch = require(\"node-fetch\");\n\nvar fetch = nodeFetch;\nif (typeof window === \"object\" && typeof window.fetch === \"function\") {\n fetch = window.fetch;\n}\n\nmodule.exports = function request(url, options) {\n retu...
javascript
edit
0
1
mit
508724b95bb5ffcabc85d222e8c20ca9d1688c10
perry-mitchell/webdav-client,perry-mitchell/webdav-client
source/adapter/request.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React from 'react'\nimport { StackNavigator } from 'react-navigation'\nimport { Provider } from 'mobx-react'\n\nimport LoginScreen from './screens/LoginScreen'\nimport SignedInNavigator from './navigators/SignedInNavigator'\n\nim...
javascript
edit
0
1
mit
847b08d09d391fa8c3adbb58741b4be950ab8706
OpenHackFarm/tshansik-app
src/App.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n * @Description: GridGallery is a tiny package that will generate a grid depending on\n * the elements height. It is not required to have the same height\n *\n * @Author: Mohamed Hassan\n * @Author Url: http://m...
javascript
edit
0
5
mit
03e3e9d70a3528efc07be6d379d30de1ef6cd88e
pencilpix/grid-gallery,pencilpix/grid-gallery
src/js/grid-gallery.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// @flow\n\nimport 'babel-polyfill';\n\nimport program from 'commander';\nimport { blue, green, gray } from 'chalk';\nimport installer from '../installer';\nimport { androidClient, iosClient } from '../device-clients';\n\nprogram\n.comm...
javascript
edit
null
null
mit
eb8f989c9fec7dbcd4a9ae5c4517ca50dcb0df62
bamlab/devicelab-bot,bamlab/devicelab-bot,bamlab/devicelab-bot,bamlab/devicelab-bot
src/command-line/index.js
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport { Slide } from './Slide';\n\nexport class Presentation {\n constructor() {\n this._slides = [];\n this._currentSlideIndex = 0;\n }\n\n /**\n * Push slide instance\n * @param {Slide} slide\n * @returns {Presentation...
javascript
edit
0
2
mit
ee5cb49176ebcdf7bb816b58fdfe0181bd0b5fa3
kittikjs/kittik
src/Presentation.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React from 'react';\nimport { BrowserRouter, Match } from 'react-router'\nimport Header from './components/Header';\nimport CTA from './components/CTA';\nimport Footer from './components/Footer';\nimport routes from './config/rou...
javascript
edit
0
1
mit
a3742d0273e84ebb67cd01d4b29f4f5dc25b6fab
emyarod/afw,emyarod/afw
src/App.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar createTouchEditor = function createTouchEditor() {\n var noop = function () {},\n TouchEditor;\n\n TouchEditor = function (el, options) {\n /*jshint unused:false*/\n this.textarea = el;\n this.win =...
javascript
edit
0
2
mit
51b20d91eb64be964c6cd9f585553d41ddd297fa
TryGhost/Ghost,TryGhost/Ghost,TryGhost/Ghost
ghost/admin/assets/lib/touch-editor.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React from 'react';\n\nimport ZipCodeEntry from './ZipCodeEntry';\nimport WeatherDisplay from './WeatherDisplay';\n\nexport default class App extends React.Component {\n constructor(props) {\n super(props);\n this.handleNe...
javascript
edit
0
2
cc0-1.0
cc4239e6e4adadae97892410a4b0dbaf2f99d894
ksmithbaylor/simple-weather,ksmithbaylor/simple-weather
src/App.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar d3 = require(\"d3\");\n\nmodule.exports = function xAxis(my, g){\n var axisG = g.append(\"g\").attr(\"class\", \"x axis\");\n var axis = d3.svg.axis();\n\n my.addPublicProperty(\"xAxisTickDensity\", 70);\n\n my.when([\"xScale\",...
javascript
edit
0
2
mit
e5c0cbe0384063c79ac16e593232fd77c4daee18
chiasm-project/chiasm-charts,chiasm-project/chiasm-charts
src/mixins/xAxis.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport 'jsdom-global/register'\n\nimport Discord from 'discord.js'\nimport HearthstoneJSON from 'hearthstonejson'\n\nimport config from './config/config'\n\nconst client = new Discord.Client()\nconst hsjson = new HearthstoneJSON()\n\ncl...
javascript
edit
0
6
mit
6189af43f5067eca789ff709aa9e218488fca55b
tinnvec/stonebot,tinnvec/stonebot
src/app.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst Sequelize = require('sequelize');\n\nconst { db } = require('../struct/Database');\n\nconst Star = db.define('stars', {\n\tmessageID: {\n\t\ttype: Sequelize.STRING,\n\t\tprimaryKey: true,\n\t\tallowNull: false\n\t},\n\tchannelID: ...
javascript
edit
0
0
mit
8759052e41965d6538d5cb4026a53b8927403070
1Computer1/hoshi
src/models/stars.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar fs = require(\"fs\");\nvar http = require(\"http\");\nvar nopt = require(\"nopt\");\nvar main = require(\"./main\");\nvar yaml = require(\"js-yaml\");\n\nvar configs, options;\n\nfunction help() {\n var out = [\n \"Usage: node-p...
javascript
edit
0
4
mit
028ad004e280ea8747765080837e980f502d121d
rxaviers/push-to-deploy
src/cli.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport {Container} from './';\n\nexport default class Resource {\n\t/**\n\t * @param {Object} params\n\t */\n\tconstructor({service, name, identifierName, collectionRoot, itemRoot}) {\n\t\tthis.service = service;\n\t\tthis.name = name;\...
javascript
edit
0
1
mit
31f63019c61dcfa851687841e253b3c4e9aef4e5
jay-ess/restinga-node
src/resource.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nlet AWS = require(\"aws-sdk\");\n\nclass Strategy {\n constructor(set_all = false) {\n this.mapping = Object.create(null);\n if (set_all) {\n this.dynamo()\n this.sqs()\n this.s3()\n }\n }\n\n dynamo(port = tr...
javascript
edit
0
2
mit
0d87e09dd06dc5ecd921c4171f46fe1cbfcd4e34
spurious-io/js-aws-sdk-helper
src/strategy.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar twilio = require('twilio')\nvar winston = require('winston')\n\nif (process.env.TWILIO_SID && process.env.TWILIO_TOKEN) {\n var client = twilio(process.env.TWILIO_SID, process.env.TWILIO_TOKEN)\n} else {\n var client = null\n}\n\n...
javascript
edit
0
3
bsd-3-clause
019f2498f4a7c0db6614116f2a8a34ef3a3fa8f5
bradparks/filepizza_javascript_send_files_webrtc
src/ice.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\n/* eslint no-unused-vars: 0 */\n\n// TODO: handle proper validation of the path and resource\nfunction handleValidation( path, resource ) {\n let retval = true;\n\n if ( path === '' ) {\n retval = 'INVALID_...
javascript
edit
0
1
mit
31ac36b683af2c807f9f7eb6328289998292b367
BrianSilvia/http-fs-node,BrianSilvia/http-fs-node
src/get.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/*globals define*/\ndefine([\n 'entities/physics-entity'\n], function( PhysicsEntity ) {\n 'use strict';\n\n function Trash( options, lifeTime ) {\n PhysicsEntity.call( this, options );\n\n // In seconds.\n this.lifeTime = l...
javascript
edit
0
5
mit
86ad24ec08abc55e197e891ba594a56af3194fa1
razh/game-off-2013,razh/game-off-2013
js/entities/trash.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar HomeView = function(store) {\n\n this.initialize = function() {\n // Define a div wrapper for the view. The div wrapper is used to attach events.\n this.el = $('<div/>');\n this.el.on('keyup', '.search-key', ...
javascript
edit
0
1
mit
0b0e1d612abe42023127bd89578110a7a52c828c
marcinlawnik/phonegap-android-spritz-learn
js/views/HomeView.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n * Patterns checkedflag - Add checked flag to checkbox labels\n *\n * Copyright 2013 Simplon B.V. - Wichert Akkerman\n */\ndefine([\n \"jquery\",\n \"../registry\",\n \"../utils\"\n], function($, patterns, utils) {\n va...
javascript
edit
0
2
bsd-3-clause
c58712ddedfd98ac9ab8e370963e8aa6af2e0ed2
Patternslib/Patterns-archive,Patternslib/Patterns-archive,Patternslib/Patterns-archive
src/pat/select-option.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport mobx from 'mobx';\nimport spy from './spy';\n\nexport default function dev(store, config) {\n if (typeof window === 'undefined' || !window.devToolsExtension) return store;\n\n if (mobx.isObservable(store)) {\n spy(store, con...
javascript
edit
0
7
mit
bb6fd15bdf5aee29d160192bbc63a3de31c27fa4
zalmoxisus/mobx-remotedev
src/dev.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport { combineReducers, createStore } from 'redux'\nimport auth from '../modules/Auth/reducer'\nimport households from '../modules/Households/reducer'\nimport members from '../modules/Members/reducer'\nimport meals from '../modules/Me...
javascript
edit
0
0
mit
d4244bd86543a1fb327455bba51ad372be647bd7
cernanb/personal-chef-react-app,cernanb/personal-chef-react-app
src/redux/store/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nPackage.describe({\n name: 'angular-scss-compiler',\n version: '0.3.1_2',\n summary: 'Angular Scss Compiler Package',\n git: 'https://github.com/Urigo/angular-meteor/tree/master/atmosphere-packages/angular-scss-compiler',\n documen...
javascript
edit
0
1
mit
ffa83ed1a01241161c6faecb6239582977a1cce7
Urigo/angular-meteor
atmosphere-packages/angular-scss-compiler/package.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nexport default function run(simulation) {\n while (\n simulation.getState().currentEventIndex <\n simulation.getState().timeline.length\n ) {\n const currentEventIndex = simulation.getState().currentEventIndex;\n const tim...
javascript
edit
0
2
isc
299196bc16f8f21c9c4dea1ca4c9f65899b8bfd7
jvanbrug/simitate
src/run.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport Client from './client';\nimport {VERSIONS} from './utils';\n\nexport {default as Frame} from './frame';\n\n// The `webstomp` Object\nconst webstomp = {\n VERSIONS,\n // This method creates a WebSocket client that is connect...
javascript
edit
0
2
apache-2.0
d5bf5befb0a172367a472a8482c94851b9f6a68e
JSteunou/webstomp-client,JSteunou/webstomp-client
src/webstomp.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\ndefine([\n \"ace\"\n], function(ace) {\n var hr = codebox.require(\"hr/hr\");\n\n var Tab = hr.View.extend({\n className: \"component-editor\",\n\n initialize: function() {\n Tab.__super__.initialize.ap...
javascript
edit
0
4
apache-2.0
4fc3d3da3af249f562ce3a6685a0a16b268acce6
etopian/codebox-package-editor,CodeboxIDE/package-editor
src/tab.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nTemplate.postsList.helpers({\n\tposts: function () {\n\t\treturn Posts.find();\n\t}\n});\n```\n\nApply this change: Sort posts by submitted timestamp." }, { "role": "assistant", "content": "Template.postsList.helpers({\n\tpo...
javascript
edit
0
1
mit
2d2d7d5a9899f130e5041142914affc5ed48aa9b
lexnapoles/Microscope-React-Migration,lexnapoles/Microscope-React-Migration
client/templates/posts/posts_list.js
rejected_duplicate
Near-duplicate of sample 71801
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nimport uuid from '../utils/uuid.js';\n\nexport default {\n state: {\n tasks: [\n { id: uuid(), description: 'Task 1', completed: false },\n { id: uuid(), description: 'Task 2', completed: false },\n {...
javascript
edit
0
1
mit
57d9427d3e8a0347dc77d1237f5eb602f22565c9
tomeightyeight/vue-todo,tomeightyeight/vue-todo
src/stores/Store.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport { addLocaleData } from 'react-intl'\n\nimport en from 'react-intl/locale-data/en'\nimport es from 'react-intl/locale-data/es'\nimport fr from 'react-intl/locale-data/fr'\nimport it from 'react-intl/locale-data/it'\n\nexport const...
javascript
edit
0
5
bsd-2-clause
3154131337d2179c3e4976790e3c19f7ee55f6d8
TheTorProject/ooni-wui,TheTorProject/ooni-wui
src/store/locale.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nvar fs = require('fs');\nvar path = require('path');\nvar Filter = require('broccoli-filter');\n\nfunction ConfigLoader (inputTree, options) {\n if (!(this instanceof ConfigLoader)) {\n return new ConfigLoader...
javascript
edit
0
3
mit
be4ccfe3c9a85391b4290df5b6cb5b86e5105a9b
tobymarsden/ember-cli,lazybensch/ember-cli,oss-practice/ember-cli,martndemus/ember-cli,marcioj/ember-cli,bevacqua/ember-cli,ballPointPenguin/ember-cli,ember-cli/ember-cli,rot26/ember-cli,searls/ember-cli,jrjohnson/ember-cli,typeoneerror/ember-cli,HeroicEric/ember-cli,thoov/ember-cli,ianstarz/ember-cli,blimmer/ember-cli...
lib/broccoli/broccoli-config-loader.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n\nexport default function rawSelectors() {\n function addRuleHook(rule) {\n if (rule.type === 'style' && isRawSelector(rule.name)) {\n rule.name = rule.name.replace(/^@raw\\s?/, '');\n rule.selectorText = rule.name;\n }...
javascript
edit
0
3
mit
400a930fd7cfea5e521da9f75ea8fffb6d71deee
nathanmarks/stylishly
src/plugins/rawSelectors.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar getSupportedLanguages = require('..').getSupportedLanguages\nvar assert = require('assert')\nvar fs = require('fs')\nvar path = require('path')\n\ndescribe('getSupportedLanguages', function () {\n it('lists all supported languages'...
javascript
edit
0
2
unlicense
d8b3cbf9490ddd0022722708863b694b23dabc70
EvanHahn/HumanizeDuration.js
test/get-supported-languages.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport toArray from 'lodash/toArray';\nimport {Map} from 'immutable';\n\nexport function getProjectKeys(state) {\n return toArray(state.projects.keys());\n}\n\nexport function getCurrentProject(state) {\n const projectKey = state.curr...
javascript
edit
0
2
mit
f2b3b684546b7c3b94af144cc9ac4f1cece9f5a0
jwang1919/popcode,jwang1919/popcode,popcodeorg/popcode,outoftime/learnpad,popcodeorg/popcode,outoftime/learnpad,jwang1919/popcode,popcodeorg/popcode,jwang1919/popcode,popcodeorg/popcode
src/util/projectUtils.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport R from 'ramda';\nimport {Observable} from 'rx';\n\nconst trelloSinkDriver = R.curry( ( boardId, input$ ) => {\n return {\n actions$: Observable.create( ( observer ) => {\n input$.subscribe( () => {\n Trello.get(\n...
javascript
edit
0
1
mit
18a1712584d7d56f3d293620a654e294543a4837
nicoespeon/trello-kanban-analysis-tool,nicoespeon/trello-kanban-analysis-tool
app/drivers/Trello.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React from 'react';\nimport { withRouter } from 'react-router-dom';\nimport Paper from '@material-ui/core/Paper';\nimport MenuList from '@material-ui/core/MenuList';\nimport MenuItem from '@material-ui/core/MenuItem';\nimport './...
javascript
edit
0
1
apache-2.0
de858884115bc374dec4de538838a40cfd8cb5a5
GoogleCloudPlatform/woolaroo-language-learning-app,GoogleCloudPlatform/woolaroo-language-learning-app,GoogleCloudPlatform/woolaroo-language-learning-app,GoogleCloudPlatform/woolaroo-language-learning-app,GoogleCloudPlatform/woolaroo-language-learning-app
src/sidenav/SideNav.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nMeteor.startup( () => {\n (! NextKlub.find().count())\n && NextKlub.insert();\n\n Meteor.publish(\"next_klub\", () => NextKlub.find());\n});\n\n```\n\nApply this change: Remove insert next klub when no records found" }, { "...
javascript
edit
0
1
mit
15adb6b43e8b6399e8d18c2aa747ecd15687087f
claudeaubry/klub,claudeaubry/klub,claudeaubry/klub
packages/nextklub/lib/server/server.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/* eslint-disable import/no-commonjs */\n\nconst fs = require('fs');\nconst gulp = require('gulp');\nconst babel = require('gulp-babel');\n\nconst babelRc = JSON.parse(fs.readFileSync('./.babelrc.node'));\n\ngulp.task('build', () => {\n...
javascript
edit
0
1
mit
7c590b5e992cfb19002626418ea66698a5fdd179
reworkjs/reworkjs,reworkjs/reworkjs,foobarhq/reworkjs,foobarhq/reworkjs,reworkjs/reworkjs
gulpfile.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n(function(){\n 'use strict';\n\n angular.module('events')\n .service('eventService', ['$q', '$http', '$filter', 'ApiUrl', EventService]);\n\n /**\n * Events DataService\n * Events embedded, hard-coded data model; acts asy...
javascript
edit
0
3
mit
56d71b95eef959cf9f99454558831c9d5d7b6d2b
Indigitous/triangle-shared-calendar-ui,Indigitous/triangle-shared-calendar-ui
app/src/events/EventService.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar timeout = 4000;\nfunction getProgress(uid) {\n\t$.ajaxSetup({cache:false});\n\t$.ajax({\n\t\tdataType: \"json\",\n\t\turl:\"/get-chat-line/\"+uid,\n\t\tsuccess: function (msg, data) {\n\t\t\t$(\"#log\").append(\"<p>\"+msg['message']...
javascript
edit
0
1
mit
91514035a0ebec1f5fdedc0dcc1cdd0e2aec5e38
ajaska/FBStatusBot,ajaska/FBStatusBot
static/ajax_results.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n\"use strict\";\n\nvar vows = require(\"vows\"),\n assert = require(\"assert\"),\n quotes = require(\"../lib/quotes\");\n\nvows.describe(\"Quotes tests\").addBatch({\n \"get quotes with ref date in the past\": {\n topic:...
javascript
edit
0
3
mit
a47c3b2fb4cf6f823dca8e25f03de93268de6f7e
albertosantini/node-finance,9590/node-finance,9590/node-finance,albertosantini/node-finance
test/quotes-test.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar url_path = window.location.pathname;\n\nconsole.log(\"Is viewing content: \" + isViewingContent(url_path));\nconsole.log(\"File name: \" + getFileName());\nconsole.log(\"Is a PDF: \" + isPDF());\nconsole.log(\"Is a DOCX: \" + isDOCX...
javascript
edit
0
2
mit
ce43cad2d964332d3a151f139d487c5754d2639b
Speenah/rit-mycourses-file-downloader
js/main.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nfunction post(path, params, method) {\n method = method || \"post\"; // Set method to post by default if not specified.\n\n // The rest of this code assumes you are not using a library.\n // It can be made less wordy if you use...
javascript
edit
0
4
apache-2.0
2c3db0cc9ab38d33bde0ef159b8cb241e5cfb936
edmundo096/MoodMusic,edmundo096/MoodMusic,edmundo096/MoodMusic
static/lookCheckBox.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport Ember from 'ember';\n\nexport default Ember.Component.extend({\n\n tagName: 'form',\n classNames: [ 'uni-form' ],\n classNameBindings: [ 'invalid' ],\n\n invalid: Ember.computed.reads('form.payload.isInvalid'),\n\n submitFai...
javascript
edit
0
6
mit
0cb5f5107756adbbca7993e73ffa0d643c0507d5
dollarshaveclub/ember-uni-form,dollarshaveclub/ember-uni-form
addon/components/uni-form.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar mongoose = require( 'mongoose' ),\n Schema = mongoose.Schema;\n\nvar schemas = {\n\n user: {\n _id: String,\n password: String,\n },\n\n page: {\n _id: Number,\n title: String,\n author: String,\n dates: {\n ...
javascript
edit
0
2
mit
2f30071dea69368b6ec5c9f7bd80bb8035a79b74
muffin/server,kunni80/server
server/models.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// @flow\nimport {GameStage} from '../../game-stage'\nimport {computeScores} from './compute-scores'\nimport {toEndedState} from './converter'\nimport {bidWinGenerator} from './bid-win-generator'\nimport {toFront} from '../../utils'\n\n...
javascript
edit
null
null
mit
f4e3941e7f6777eb8afc0af4aea0eaca9b298787
Holi0317/bridge-calc,Holi0317/bridge-calc,Holi0317/bridge-calc
src/reducer/current-game/win-handler.js
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar express = require('express');\nvar mongoose = require('mongoose');\n\nvar app = express();\n\n// connect to mongo database named \"bolt\"\n// uncomment this line to use a local database\n// mongoose.connect('mongodb://localhost/bolt...
javascript
edit
0
1
mit
bc8e9038888d043f99c593e356eb6fab52b6855a
boisterousSplash/Bolt,thomasRhoffmann/Bolt,boisterousSplash/Bolt,elliotaplant/Bolt,thomasRhoffmann/Bolt,gm758/Bolt,elliotaplant/Bolt,gm758/Bolt
server/server.js
rejected_duplicate
Near-duplicate of sample 89443
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport Job from './handlers/job'\nimport Ping from './handlers/ping'\n\nexport default [\n { method: 'GET', path: '/ping', config: { auth: false, handler: Ping } },\n\n { method: 'POST', path: '/jobs', config: Job.create },\n { metho...
javascript
edit
0
0
mit
c22702b894e62c2fde60fa81feabfc57de4ae410
franvarney/franvarney-api
server/routes.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n* Use immediately Invoked Function Expression to\n* - Prevent conflicting with other libary on alias $\n* - Scode varaible to be private\n*/\n(function( $ ) {\n $.fn.expandable = function(options) {\n\n\t\t// Define default settin...
javascript
edit
0
3
mit
98d556102b78f125d87999c8de44674f32d17e8e
nnattawat/expandable-input
jquery.expandable.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports = function(gulp, config) {\n\n\treturn function(done) {\n\t\tvar c = require('better-console')\n\t\tc.info('watch reload')\n\n\t\tvar browsersync = require('browser-sync')\n\t\tvar fs = require('fs')\n\t\tvar watch = requ...
javascript
edit
0
3
mit
68d22687e4c9c248c49c1f906cf07ec6b4e373d1
Cactucs/mango-cli,manGoweb/mango-cli,Cactucs/mango-cli,manGoweb/mango-cli
lib/tasks/watch_reload.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst express = require('express');\nconst exphbs = require('express-handlebars');\nconst bodyParser = require('body-parser');\nconst enforce = require('express-sslify');\nconst controller = require('./controller');\nconst app = express...
javascript
edit
0
2
mit
9add9e31bbcb32f526348248f4fdcc0135871869
wildan3105/github-langs
lib/app.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n(function ($) {\r\n\t$.fn.examplePlugin = function (options) {\r\n\t\treturn this.each(function() {\r\n\t\t\tvar main = {\r\n\t\t\t\toptions : $.extend(\r\n\t\t\t\t\t{\r\n\t\t\t\t\t},\r\n\t\t\t\t\toptions\r\n\t\t\t\t),\r\n\t\t\t\telemen...
javascript
edit
0
1
mit
4de522602e7ac0c9bcae1e9a33acbd620c5b1db6
fboes/js-boilerplate,fboes/js-boilerplate
js/jquery-example.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/*\n * <%= appNameSlug %>\n * https://github.com/<%= userName %>/<%= appNameSlug %>\n *\n * Copyright (c) <%= year %>, <%= authorName %>\n * Licensed under the <%= license %> license.\n */\n\n'use strict';\n\nvar gulp = require('gulp'),...
javascript
edit
0
2
mit
c7de913b3888d5e9080ae9d27421f119cbc19c6f
chrisenytc/slush-generator,arkaitzgarro/slush-generator
templates/slushfile.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar express = require('express');\nvar fs = require('fs');\nvar app = express();\n\napp.use(express.static(__dirname + '/www'));\napp.use('/runs',express.static(__dirname + '/runs'));\n\napp.get('/run_list.json',function(req,res) {\n f...
javascript
edit
0
3
mit
7558e1c1277a0088d7688827541a55324056d966
mdinger/awcy,tdaede/awcy,tdaede/awcy,mdinger/awcy,mdinger/awcy,tdaede/awcy,mdinger/awcy,mdinger/awcy,tdaede/awcy,tdaede/awcy,tdaede/awcy
awcy_server.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nwindow.onload = function () {\n var formEl = document.getElementById(\"myForm\")\n , checkboxEl = document.getElementsByName(\"xhr\")[0]\n , nameEl = document.getElementsByTagName(\"name\")[0]\n ;\n\n formEl.addEven...
javascript
edit
0
2
mit
71ce6d7499a33a31db7d71a1e8045e826efd18bc
IonicaBizau/xhr-form-submitter,IonicaBizau/xhr-form-submitter,IonicaBizau/xhr-form-submitter
test/public/js/main.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// @flow\nimport type { Beacon, Room } from '../../apiTypes';\nimport {\n fetchRooms,\n fetchRoomsStarted,\n fetchRoomsSuccess,\n fetchRoomsError,\n fetchBeacons,\n fetchBeaconsStarted,\n fetchBeaconsSuccess,\n fetchBeaconsError...
javascript
edit
null
null
mit
361c8581f61b5b6ee17ca796858b8b9168329918
fhammerschmidt/beacon-bulletin,fhammerschmidt/beacon-bulletin,fhammerschmidt/beacon-bulletin,fhammerschmidt/beacon-bulletin
src/sagas/fetchAppData.js
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport Vue from \"vue\";\nimport VueRouter from \"vue-router\";\n\nimport {createProvider} from './apollo';\nimport {store} from \"./store\";\n\nimport App from \"./app.vue\";\nimport Login from \"./login.vue\";\nimport UserList from \"...
javascript
edit
0
1
apache-2.0
85fa07d4f9d39e0763a1777cf56068fa759eab58
gitpods/gitpods,gitpods/gitpods,gitpods/gitpods,gitpods/gitpods
ui/main.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n#!/usr/bin/env node\r\n\r\nvar argv = require('optimist').argv;\r\n\r\nvar debug = argv.debug;\r\ndelete argv.debug;\r\nvar outputFormat = argv.output;\r\ndelete argv.output;\r\n\r\nvar options = {};\r\nfor(var key in argv) {\r\n\tvar v...
javascript
edit
0
2
mit
3c0de4060c1f5e22a78732d3006787e0ad98383f
tltneon/node-gamedig,sonicsnes/node-gamedig,kyroskoh/node-gamedig,xCausxn/node-gamedig
bin/gamedig.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nvar Db = require('dbjs')\n\n , BooleanType = module.exports = Db.Boolean;\n\nBooleanType.set('DOMBox', Db.external(function () {\n\tvar Parent, Box, proto;\n\tParent = this.Base.DOMBox;\n\tBox = function (document, ns)...
javascript
edit
0
3
mit
3516069756488969657801c82de3d3f89925f2ce
medikoo/dbjs-dom
text/boolean.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React, { Component, PropTypes } from 'react';\nimport { connect } from 'react-redux';\nimport { browserHistory } from 'react-router';\nimport { Form, Button } from 'semantic-ui-react';\nimport Formsy from 'formsy-react';\n\nimpor...
javascript
edit
0
1
mit
7cdacc222cfbfc9d7bcbf90b0b9f99cfeac0a54a
ademuk/features,ademuk/features
src/containers/LoginPage.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport Ember from 'ember';\nimport DS from 'ember-data';\n\nconst { Component, computed, RSVP } = Ember;\nconst { PromiseArray } = DS;\n\nexport default Component.extend({\n cohorts: [],\n sortedCohorts: computed('cohorts.@each.{schoo...
javascript
edit
0
1
mit
fb8343582d43a64552f94a3a79d72f0d3ad4fd1f
thecoolestguy/frontend,dartajax/frontend,djvoa12/frontend,stopfstedt/frontend,gabycampagna/frontend,ilios/frontend,gboushey/frontend,gboushey/frontend,jrjohnson/frontend,ilios/frontend,stopfstedt/frontend,jrjohnson/frontend,thecoolestguy/frontend,gabycampagna/frontend,djvoa12/frontend,dartajax/frontend
app/components/detail-cohort-list.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// note that every package mentioned here has to be explicitly required (require/import, not a string name)\n// if not, this fails if babel runs in a plugin repo before it manages to load them\n\nmodule.exports = {\n presets: [\n [\...
javascript
edit
0
0
apache-2.0
25bf793ef8f46a9761d004d1d164ddbe7734cc3c
ManageIQ/manageiq-ui-classic,ManageIQ/manageiq-ui-classic,ManageIQ/manageiq-ui-classic,ManageIQ/manageiq-ui-classic
.babelrc.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React from \"react\";\nimport classNames from \"classnames\";\n\nimport { movePiece, selectPiece } from \"store/actions\";\n\nclass ChessBoardSquare extends React.Component {\n constructor(props) {\n super(props);\n\n this...
javascript
edit
0
3
mit
5ca7520012815c9b08843c02bacbec1e57e9c382
danbee/chess,danbee/chess,danbee/chess
app/components/chess-board-square.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst logger = require('logger');\nconst mailService = require('services/mailService');\n\nconst DEFAULT_TEMPLATE = 'forest-change-notification';\nconst TEMPLATE_MAP = {\n 'viirs-active-fires': 'forest-fires-notification-viirs',\n ...
javascript
edit
0
2
mit
ae535872b193df77458114798d8df92c1d9da48e
gfw-api/gfw-subscription-api,gfw-api/gfw-subscription-api,gfw-api/gfw-subscription-api
app/src/publishers/emailPublisher.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use(strict)'\n\nimport {read, write} from '.'\nimport * as argsParser from './util/args'\n\nexport default function () {\n var args = process.argv.slice(2)\n\n let opts = argsParser\n .option('--type', '-t', null)\n .option('--...
javascript
edit
0
7
mit
8a1b29d401c942a4f867656f5aed82fec054d149
niklasl/ldtr,niklasl/ldtr,niklasl/ldtr
lib/cli.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nvar fs = require('fs');\n\nexports.mkdocs = {\n\n basic: function (test) {\n test.expect(1);\n\n var expected = [\n '404.html',\n 'about',\n 'base.html',\n 'content.html',\n ...
javascript
edit
0
1
mit
4b44052fdb07b4df56d5f9b7fd5139aa4f0f34c8
prantlf/grunt-mkdocs
test/mkdocs_test.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport Player from 'props/player';\nimport Ball from 'props/ball';\nimport Net from 'props/net';\nimport canvas from 'canvas';\nimport mouse from 'lib/mouse';\nimport events from 'lib/events';\nimport collision from 'lib/collision';\n\n...
javascript
edit
0
3
mit
682db79a4ea0bbe122ae15996ddfcf2d4788d808
oliverbenns/pong,oliverbenns/pong
app/lib/game.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar both = ['client', 'server'];\n\nPackage.describe({\n name: 'lookback:emoji',\n summary: 'Easily render and manage emojis in Meteor.',\n version: '0.2.0',\n git: 'https://github.com/lookback/meteor-emoji'\n});\n\nPackage.onUse(fu...
javascript
edit
0
1
mit
3002d9b8259e25b129e2c765ddc81a8e2af93fb7
lookback/meteor-emoji
package.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport { configure, addDecorator } from '@storybook/react';\nimport { createStore } from 'redux';\nimport { Provider } from 'react-redux';\nimport * as React from 'react';\nimport handleAction from '../src/utils/reducer';\n\nfunction lo...
javascript
edit
0
1
apache-2.0
5b5121caf666189bd88a10e2134e719284742a1e
pinterest/bonsai,pinterest/bonsai,pinterest/bonsai
.storybook/config.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n * Copyright 2015 Cm_Star. All Rights Reserved.\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\...
javascript
edit
0
3
apache-2.0
e3f24c575db145856343319f8292698b462dcb49
CmStar283/wres,CmStar283/wres
lib/wres.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport m from 'mithril';\nimport AppComponent from '../../app/scripts/components/app.js';\nimport AIPlayer from '../../app/scripts/models/ai-player.js';\nimport { qs } from './utils.js';\n\nexport function _before() {\n // Minimize the...
javascript
edit
0
1
mit
6a3eee24abd1c395e964b7ec5c10ebe13ca00961
caleb531/connect-four
test/ui/fixtures.js
rejected_duplicate
Near-duplicate of sample 91161
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst types = {\n USERNAME: 'USERNAME',\n GET_EVENTS: 'GET_EVENTS',\n GET_PUSH_EVENTS: 'GET_PUSH_EVENTS',\n GET_OPENED_PULL_REQUESTS: 'GET_OPENED_PULL_REQUESTS',\n GET_ISSUES_CREATED: 'GET_ISSUES_CREATED',\n GET_ISSUES_CLOSED: 'GE...
javascript
edit
0
1
mit
9daabfd6976002791c0ee4cf679bb92508de74b4
bcgodfrey91/git-in-the-game,bcgodfrey91/git-in-the-game
src/actions/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nvar React = require('react'),\n\tGenericViewer = require('../../generic/viewer.js');\n\nvar NativeViewer = React.createClass({\n\tpropTypes: {\n\t\tresizeCallback: React.PropTypes.func,\n\t\tprogressCallback: React.Prop...
javascript
edit
0
2
apache-2.0
2b8ff863d75e831aa4f65d4569ef5ff0aa18dd38
Brightspace/react-valence-ui-fileviewer
src/plugins/pdf/native/nativeViewer.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport { moduleFor, test } from 'ember-qunit';\n\nmoduleFor('controller:submit', 'Unit | Controller | submit', {\n // Specify the other units that are required for this test.\n // needs: ['controller:foo']\n needs: [\n 'vali...
javascript
edit
0
1
apache-2.0
50838acb1c830989dd1417d08c11bd470ff62ec7
caneruguz/ember-preprints,CenterForOpenScience/ember-preprints,baylee-d/ember-preprints,laurenrevere/ember-preprints,caneruguz/ember-preprints,baylee-d/ember-preprints,laurenrevere/ember-preprints,CenterForOpenScience/ember-preprints
tests/unit/controllers/submit-test.js
accepted
null
true
[ { "role": "user", "content": "Write javascript code for the following: Add detection for util.warn in every test spec" }, { "role": "assistant", "content": "var util = require('src/util').default;\n\nbeforeEach(function() {\n\tspyOn(util, 'warn');\n});\n\nvar testsContext = require.context(\".\"...
javascript
new_file
0
1
mit
617790292689bd80e5708530b388496215382a1c
tangbc/sugar,tangbc/sugar,tangbc/sugar
test/units/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n\nconst DEFAULT_VIEWS = Object.freeze({\n NEW: 'new',\n EDIT: 'edit',\n VIEW: 'view'\n})\n\nfunction getCurrentUri () {\n const params = new URLSearchParams(window.location.search)\n const uri = params.get('uri')\n return uri\n}\n...
javascript
edit
0
2
apache-2.0
5de2bc87b2ed9fa83992dd5e5b386574114da4e4
tetherless-world/graphene,tetherless-world/satoru,tetherless-world/satoru,tetherless-world/satoru,tetherless-world/graphene,tetherless-world/graphene,tetherless-world/graphene,tetherless-world/satoru
static/js/whyis_vue/utilities/views.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// These are mostly a simplification of\n// augment.js (https://github.com/javascript/augment, MIT Licensed) and\n// Douglas Crockford's protoypical inheritance pattern.\n/**\n * Usage:\n *\n * var Animal = defclass({\n * construc...
javascript
edit
0
2
apache-2.0
1e9a3ebb431781478bf37e999cc74106438609c0
lamdnhan/osf.io,barbour-em/osf.io,Ghalko/osf.io,RomanZWang/osf.io,acshi/osf.io,RomanZWang/osf.io,icereval/osf.io,jmcarp/osf.io,samchrisinger/osf.io,crcresearch/osf.io,emetsger/osf.io,cwisecarver/osf.io,samanehsan/osf.io,laurenrevere/osf.io,danielneis/osf.io,CenterForOpenScience/osf.io,barbour-em/osf.io,binoculars/osf.i...
website/static/js/oop.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nangular.module(\"mirmindr\")\n.controller(\"subjectsCtrl\", function($rootScope, $scope){\n $scope.newSub = {};\n $scope.addSub = function(form) {\n if(form.$valid) {\n $scope.userRef.child(\"subjects\").push($scope.newSub);\n...
javascript
edit
0
2
mit
49bc83b4ffb8007dd98caf210b802192c489d599
mirman-school/mirmindr,mirman-school/mirmindr
build/app/js/subjectsCtrl.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React from 'react'\nimport { Box, Grid, Typography } from '@material-ui/core'\n\nexport default function Flight({ data }) {\n return(\n <Grid item>\n <Typography variant=\"h6\" gutterBottom>Flight from { data...
javascript
edit
0
1
apache-2.0
9b169c945e9074942728052bd1f311e2c4e2e9a4
googleinterns/step98-2020,googleinterns/step98-2020
step-capstone/src/components/Flight.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports = (config) => {\n config.set({\n frameworks: ['mocha', 'karma-typescript'],\n browsers: ['chromeHeadless'],\n singleRun: true,\n concurrency: Infinity,\n reporters: ['mocha'],\n port: 9876,\n colors:...
javascript
edit
0
1
mit
c864ef37299aac76b882421ef5a5a637f20db505
marcoms/make-element,marcoms/make-element,marcoms/make-element
karma.conf.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n$('#title').addClass('redtitle');\n\nvar json = {\n \"room\":{\n \"name\":\"FangDev\",\n \"members\":\"Salgat:1452401384430,Fangfang2:1452401457085\",\n \"messages\":[\n \"Salgat: I love you more xiaobei\",\n ...
javascript
edit
0
2
mit
0c35201eb27f29b40af016c6aeb7375b9e08a1b3
FangfangFu/ChatRoom,FangfangFu/ChatRoom
js/scripts.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict'\n\nvar browsers = ['Chrome', 'Firefox', 'PhantomJS']\n\nif (process.env.TRAVIS) {\n browsers = ['Firefox', 'PhantomJS']\n}\n\nmodule.exports = function(karma) {\n karma.set({\n browsers: browsers,\n phantomjsLaunche...
javascript
edit
0
2
mit
03eb67613876bcd4c4445a52fca401e5e1229f93
goblindegook/littlefoot,goblindegook/littlefoot,goblindegook/littlefoot
karma.conf.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nmodule.exports = function(grunt) {\n\n grunt.initConfig({\n pkg: grunt.file.readJSON('package.json'),\n jshint: {\n allFiles: ['Gruntfile.js', 'lib/**/*.js', 'test/**/*.js', 'index.js'],\n ...
javascript
edit
0
2
apache-2.0
64fba416055c1d990212e41565f8a5f16b7adf25
xmpp-ftw/xmpp-ftw-ping
Gruntfile.js
rejected_duplicate
Near-duplicate of sample 72000
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nmodule.exports = function(grunt) {\n\n grunt.initConfig({\n pkg: grunt.file.readJSON('package.json'),\n jshint: {\n allFiles: ['Gruntfile.js', 'lib/**/*.js', 'test/**/*.js', 'index.js'],\n ...
javascript
edit
0
2
apache-2.0
35ef70772ebd84ab07f97c98df957f37709a8527
xmpp-ftw/xmpp-ftw-http
Gruntfile.js
rejected_duplicate
Near-duplicate of sample 72000
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports = function(config) {\n config.set({\n\n client: {\n captureConsole: false\n },\n\n plugins: [\n 'karma-chai',\n 'karma-sinon',\n 'karma-mocha',\n ...
javascript
edit
0
2
mit
96067e60a023d69b19bfa17172af8d405f8e0be6
vitorabner/decoraki,vitorabner/decoraki
karma.conf.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport io from 'socket.io-client';\nimport React from 'react';\nimport { render } from 'react-dom';\nimport { Provider } from 'react-redux';\nimport { App } from './components/app';\nimport { GameContainer } from './components/game';\ni...
javascript
edit
0
0
mit
8e71a2ed32f7e437e1706e879c1a003508c57963
crisu83/ctf-game,crisu83/ctf-game
client/src/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar fs, path, mkdirp\n\nfunction toFileName(delimiter, name) {\n if (delimiter === \"\") {\n return name\n }\n\n return name\n .replace(/[a-z][A-Z]/g, function(str) {\n return str[0] + delimiter + str[1]\n })\n .toLo...
javascript
edit
0
7
mit
cf4bd36e9768be964d70a753b406effb38f44c1a
roman01la/html-to-react-components,roman01la/html-to-react-components
lib/writer.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nexport function _fetch(url, method, data) {\n const options = {\n headers: {\n 'Accept': 'application/json',\n },\n mode: 'cors',\n method: method || 'GET',\n }\n\n if (url.includes('https://inspire.data.gouv.fr/dgv/...
javascript
edit
0
6
mit
e66f7d0a1c776ccd86176917af4a396944136ae8
sgmap/inspire,sgmap/inspire
src/helpers/super.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport iframeBuilder from 'src/helpers/iframeBuilder';\n\ndescribe('iframe Builder', () => {\n describe('getDocument', () => {\n it('should get the document of an iframe', () => {\n // Initialise data\n const iframeTestObj...
javascript
edit
0
2
mit
2d23fcfd53210981d07bf792cc2623b1e7def91c
nus-mtp/sashimi-note,nus-mtp/sashimi-note,nus-mtp/sashimi-note
sashimi-webapp/test/unit/specs/helpers/iframeBuilder.spec.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nrequire('@babel/polyfill')\nrequire('@babel/register')\n\nconst chokidar = require('chokidar')\nconst fs = require('fs')\nconst http = require('http')\n\nconst config = require('../config').env[process.env.NODE_ENV]\nconst PORT = proces...
javascript
edit
0
2
mit
e7e640989cbc0602ecfdeb56bf98eda5dc72672d
keik/gh,keik/gh,keik/gh
app/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports = {\n render: require('./render'),\n builtInStore: require('./built-in-store'),\n actionBuilder: require('./action-builder'),\n clear: require('./clear'),\n mountedComponents: require('./mounted-components')\n};\n\n`...
javascript
edit
0
1
mit
7c5fb6e0ed9c1ef1448cbdb015ab78b97b98a1a9
Jerom138/focus,Jerom138/focus,Jerom138/focus,KleeGroup/focus-core
application/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports = bindArgs\n\nfunction bindArgs (func) {\n var boundArgs = [].slice.call(arguments, 1)\n return function () {\n func.apply(this, boundArgs.concat(arguments))\n }\n}\n\n```\n\nApply this change: Fix bug: `arguments` ...
javascript
edit
0
1
mit
dc723159534ad688489d46104cc921e5ff84393f
kerryChen95/bind-args
bind-args.js
accepted
null
true