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 { Meteor } from 'meteor/meteor';\nimport React from 'react';\nimport { render } from 'react-dom';\nimport { Router, Route, browserHistory, IndexRoute } from 'react-router';\n\nimport AppContainer from '../containers/AppContainer'...
javascript
edit
0
1
apache-2.0
91e539f98821963bb0f6fd35ef188660e6ff01c6
evancorl/skate-scenes,evancorl/skate-scenes,evancorl/portfolio,evancorl/skate-scenes,evancorl/portfolio,evancorl/portfolio
imports/client/startup/routes.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n(function (module) {\n module.controller(\"FileEditController\", FileEditController);\n\n FileEditController.$inject = ['file', '$scope'];\n\n /* @ngInject */\n function FileEditController(file, $scope) {\n console.lo...
javascript
edit
0
1
mit
788cd10725c28ee6f0b25c371475e73ebe229fb3
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/files/file-edit-controller.js
rejected_duplicate
Near-duplicate of sample 70377
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports = [\n {\n mode: \"development\",\n entry: ['./src/main.js'],\n output: { filename: 'main.js' },\n target: 'electron-main',\n module: {\n rules: [\n {\n test: /.js$/,\n loader:...
javascript
edit
0
0
mit
e7f43a25af82d8d840ad7765c7f610f7a8e58a5b
megahertz/electron-log,megahertz/electron-log,megahertz/electron-log
test-projects/electron-log-test-webpack/webpack.config.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar ResponseParser = require('../lib/responseparser'),\n\twinston = require('winston'),\n\tfs = require('fs'),\n\tpath = require('path');\n\ndescribe('responseparser', function() {\n\tvar parser = new ResponseParser({\n\t\tformat: 'xml'...
javascript
edit
0
1
isc
91ea8bacfefc231cc18c472bdd11c50e14370cf8
raoulmillais/7digital-api,7digital/7digital-api,raoulmillais/node-7digital-api
spec/responseparser_spec.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React, { PropTypes } from 'react';\nimport EChart from './EChart';\nimport SizeProvider from '../_common/SizeProvider';\nimport createOptions from './options/MobileChartOptions';\n\nconst theme = {\n background: 'white',\n ...
javascript
edit
0
2
mit
19fb3ee91715ea8da3a5cb6e1d3dd5e7016ad493
nazaninreihani/binary-next-gen,qingweibinary/binary-next-gen,binary-com/binary-next-gen,qingweibinary/binary-next-gen,nazaninreihani/binary-next-gen,nuruddeensalihu/binary-next-gen,binary-com/binary-next-gen,nuruddeensalihu/binary-next-gen,nuruddeensalihu/binary-next-gen,nazaninreihani/binary-next-gen,qingweibinary/bin...
src/charting/MobileChart.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nmodule.exports = function(Chart) {\n\n\tvar defaultConfig = {\n\t\thover: {\n\t\t\tmode: 'single'\n\t\t},\n\n\t\tscales: {\n\t\t\txAxes: [{\n\t\t\t\ttype: 'linear', // scatter should not use a category axis\n\t\t\t\tpos...
javascript
edit
0
1
mit
7fa60523599a56255cde78a49e848166bd233c6e
chartjs/Chart.js,simonbrunel/Chart.js,panzarino/Chart.js,jtcorbett/Chart.js,ldwformat/Chart.js,nnnick/Chart.js,jtcorbett/Chart.js,touletan/Chart.js,supernovel/Chart.js,touletan/Chart.js,chartjs/Chart.js,panzarino/Chart.js,touletan/Chart.js,touletan/Chart.js,chartjs/Chart.js,chartjs/Chart.js,ldwformat/Chart.js,simonbrun...
src/charts/Chart.Scatter.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport * as React from \"react\";\nimport {Header} from \"./components/Header\";\nimport {Wrapper} from \"./components/Wrapper\";\nimport {BuildSnapshotContainer} from \"./components/BuildSnapshotContainer\";\n\n/**\n * Main App that is...
javascript
edit
0
1
apache-2.0
075d06ec62a91543e3d7caa86656e5ea9e50b17d
googleinterns/step240-2020,googleinterns/step240-2020,googleinterns/step240-2020,googleinterns/step240-2020
src/main/webapp/App.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React from 'react';\n\nclass SearchBar extends React.Component {\n\trender() {\n\t\treturn <input />;\n\t}\n}\n\nexport default SearchBar;\n```\n\nApply this change: Add some syntactic sugar to the import command to shorten the c...
javascript
edit
0
1
mit
9884facbb5ebdfefed43a37dcff54896ae99a182
JosephLeon/redux-simple-starter-tutorial,JosephLeon/redux-simple-starter-tutorial
src/components/search_bar.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nApplication.Controllers.controller('projectsProject',\n [\"$scope\", \"provStep\", \"ui\",\n \"project\", \"current\", \"pubsub\", projectsProject]);\n\nfunction proje...
javascript
edit
0
1
mit
0a078a7649a27614731b15a0f3867f7e025452e3
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/project-controller.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nBlacklight.onLoad(function() {\n $(window).on('load', function(){\n\n //remove default mast search to fix duplicate IDs\n $(\".blacklight-catalog-advanced_search #search-navbar\").remove();\n $(\".blacklight-trln-advanced_sear...
javascript
edit
0
2
mit
4c7752df347bdb366f00cfad742a5ab799c34b65
trln/trln_argon,trln/trln_argon,trln/trln_argon,trln/trln_argon
app/assets/javascripts/trln_argon/advanced_search_scope.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nfunction handle_lookup(data) {\n if (data.code == 0) {\n // Project lookup was successful\n // redirect to join-this-project.php?project_id=id\n // get project from value field, and project_id from that\n var project = data...
javascript
edit
0
3
mit
9ce2d3174b07945812805e44a51a0da43c8174a0
tcmitchell/geni-portal,tcmitchell/geni-portal,tcmitchell/geni-portal,tcmitchell/geni-portal,tcmitchell/geni-portal
portal/www/portal/join-project.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n * @package admiral\n * @author Andrew Munsell <<EMAIL>>\n * @copyright 2015 WizardApps\n */\n\nexports = module.exports = function(app, config, fleet) {\n /**\n * Get the machines in the cluster\n */\n app.get('/v1/m...
javascript
edit
0
2
mit
1c1dddffb39767e1a99bb371f2b9a39a089ce86c
andrewmunsell/admiral
src/routes/machines.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst REFRESH_PERIOD = 30 * 60 * 1000 // 30 minutes in microseconds\nconst focusSupported = typeof document !== 'undefined' &&\n typeof document.addEventListener !== 'undefined' &&\n typeof do...
javascript
edit
0
3
mit
f266cc41aeb9604393a2b9a2652de609d6d8212a
ello/webapp,ello/webapp,ello/webapp
src/components/viewport/RefreshOnFocus.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n\"use strict\";\n\nconst { Router } = require('express')\nconst router = Router()\nconst Item = require('../models/Item')\n\nrouter.get('/api/items', (req, res, err) =>\n Item\n .find()\n .then(item => res.json( item ))\n .cat...
javascript
edit
0
2
mit
775e2ff03c0be1446def3cb9d815e30e1bac4314
mmeadow3/nodEbay,mmeadow3/nodEbay
server/routes/itemRoute.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport { moduleForComponent, test } from 'ember-qunit';<% if (testType === 'integration') { %>\nimport hbs from 'htmlbars-inline-precompile';<% } %>\n\nmoduleForComponent('<%= componentPathName %>', '<%= friendlyTestDescription %>', {\n...
javascript
edit
null
null
mit
4dd415b482aeb4042a7f464f2b9b72f2fd0aa466
ember-cli/ember-cli-legacy-blueprints,ember-cli/ember-cli-legacy-blueprints
blueprints/component-test/qunit-files/tests/__testType__/__path__/__test__.js
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport postcss from 'postcss'\nimport { readFileSync as slurp } from 'fs'\nimport { resolve, isAbsolute } from 'path'\nimport { parse as parseUrl } from 'url'\nimport { default as rebaseUrl } from 'postcss-url'\n\nexport default functio...
javascript
edit
0
3
mit
97da0fe508b4664086d9391308ae9e0c87e6d16d
zambezi/ez-build,zambezi/ez-build
src/rebase-prod-css.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n\n\"use strict\";\n/*jslint browser: true, nomen: true*/\n/*global define*/\n\ndefine([], function () {\n return function (frame) {\n var player = frame.player(),\n layout = frame.layout();\n\n frame.after(1,...
javascript
edit
0
1
mit
ea0abf1f9a2000830c2810ccdbe9685ce9aa1f54
benbjohnson/thesecretlivesofdata
raft/scripts/frames/conclusion.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nexport default function dashesToCamelCase(str) {\n\n return str.charAt(0).toUpperCase() + str.slice(1);\n};\n```\n\nApply this change: Add helper for converting dashed words to lower camel case" }, { "role": "assistant", ...
javascript
edit
0
1
mit
30e6cf089f7e8aec41d7edd32d71c168c7db116a
complayjs/helpers
string/dashes-to-camel-case.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React, { Component } from 'react';\n\nimport {\n StyleSheet,\n Text,\n View,\n TouchableHighlight,\n} from 'react-native';\n\nimport I18n from 'react-native-i18n'\n\nclass Profile extends Component{\n\n\n async _onPressAddSt...
javascript
edit
0
2
mit
ece2da770d255a2e016a5aea561cee07f6ba89c9
sf-red-pandas-2016/simul-react-native,sf-red-pandas-2016/simul-react-native,sf-red-pandas-2016/simul-react-native
simul/app/components/profile.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst { KafkaJSNotImplemented } = require('../../../errors')\n\nconst Types = {\n None: 0,\n GZIP: 1,\n Snappy: 2,\n LZ4: 3,\n}\n\nconst Codecs = {\n [Types.GZIP]: () => require('./gzip'),\n [Types.Snappy]: () => {\n throw new ...
javascript
edit
0
2
mit
5b365981625964aa609f80fa622a0372d558a368
tulios/kafkajs,tulios/kafkajs,tulios/kafkajs,tulios/kafkajs
src/protocol/message/compression/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst path = require('path')\nconst ExtractTextPlugin = require(\"extract-text-webpack-plugin\")\nconst HtmlWebpackPlugin = require('html-webpack-plugin')\n\nfunction resolve (dir) {\n return path.join(__dirname, '..', dir)\n}\n\nmodul...
javascript
edit
0
1
mit
fb7cd0f61d5b4cca3c3ba30ad79772fc02418b5b
jocodev1/mithril-cli,jocodev1/mithril-cli
src/build/webpack.base.config.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\ndefine(\n ['data/data', 'collections/v3/interactions', 'collections/v3/datasuitcases', 'models/v3/DataSuitcase', 'collections/v3/forms', 'models/v3/form'],\n function (Backbone, InteractionCollection, DataSuitcaseCollection, DataSuitc...
javascript
edit
0
4
bsd-3-clause
3052dc420f956cdbbf1d2e479287231e40c38308
blinkmobile/bic-jqm,blinkmobile/bic-jqm
source/models/v3/application.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nPhoto = function (doc) {\n _.extend(this, doc);\n};\n\n_.extend(Photo.prototype, {\n\tgetImgTag: function (dimension) {\n\t\treturn {\n\t\t\t'class': 'lazy',\n\t\t\t'data-src': _.str.sprintf(\n\t\t\t\t'%s/photos/%s/%s',\n\t\t\t\tMeteor...
javascript
edit
0
1
mit
7b3f0423b7cf08b743a8244dd6b376bdedbf32f1
nburka/black-white
www/lib/collections/photos.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/* @flow */\nimport { FETCHED_MEMBER } from '../../../shared/redux/modules/member.js'\nimport { mergeAll, converge, unapply, compose, objOf, prop } from 'ramda'\n\nimport type { Action, Reducer } from 'redux'\n\ntype State = {}\n\nconst...
javascript
edit
null
null
mit
83f761e1bafa07f1998bb845caa69c95d80a0235
foundersandcoders/sail-back,foundersandcoders/sail-back
src/admin/redux/modules/letter.js
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports = {\n \"extends\": \"./index.js\",\n \"parser\": \"babel-eslint\",\n \"env\": {\n \"browser\": true\n },\n \"plugins\": [\n \"lit\", \"html\"\n ],\n \"globals\": {\n \"D2L\": false\n },\n \"rules\": {\n ...
javascript
edit
0
0
apache-2.0
12bb485ef15de677effa7218d5346d3008698dee
Brightspace/eslint-config-brightspace
lit-config.js
rejected_duplicate
Near-duplicate of sample 102304
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// Copyright (c) 2012 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\nvar WALLPAPER_PICKER_WIDTH = 550;\nvar WALLPAPER_PICKER_HEIGHT...
javascript
edit
0
3
bsd-3-clause
e0cde4d967ddd9e75d55fbf466f57b4f05e1e07b
dednal/chromium.src,hujiajie/pa-chromium,Jonekee/chromium.src,timopulkkinen/BubbleFish,mogoweb/chromium-crosswalk,jaruba/chromium.src,timopulkkinen/BubbleFish,jaruba/chromium.src,markYoungH/chromium.src,krieger-od/nwjs_chromium.src,markYoungH/chromium.src,Jonekee/chromium.src,zcbenz/cefode-chromium,Jonekee/chromium.src...
chrome/browser/resources/chromeos/wallpaper_manager/js/event_page.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport createTestHelpers from '../createTestHelpers';\nconst {expectTransform, expectNoChange} = createTestHelpers(['no-strict']);\n\ndescribe('Removal of \"use strict\"', () => {\n it('should remove statement with \"use strict\" strin...
javascript
edit
0
1
mit
0a811b387401255f9c8f5eda40d3e4e20ba6e9d7
lebab/lebab,mohebifar/lebab,mohebifar/xto6
test/transform/noStrictTest.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React, {PropTypes, Component} from 'react'\n\nimport { getModeIcon } from '../../util/itinerary'\n\nexport default class ModeButton extends Component {\n static propTypes = {\n active: PropTypes.bool,\n label: PropTypes.st...
javascript
edit
0
3
mit
8dd652690386b1dde43e154ab3fb0d48e9b0659a
opentripplanner/otp-react-redux,opentripplanner/otp-react-redux,opentripplanner/otp-react-redux,opentripplanner/otp-react-redux
lib/components/form/mode-button.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nimport React from 'react';\n\nimport ActivityIndicator from './pure/activityIndicator';\n\nimport ui from '../../ui';\n\nclass Loading extends React.Component {\n\n static propTypes = {\n dispatch: React.PropTypes.f...
javascript
edit
0
1
mit
d01136d921ec73f2c09d9bb3a748684670a82db4
netceteragroup/girders-elements
src/read/elements/loading.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar mode = 0; //primary\n\nfunction calc_mode() {\n\tvar modes = [\"primary\", \"secondary\", \"tertiary\"];\n\treturn modes[mode];\n}\n\n$(function() {\n\t$(\".add\").button();\n\t$(\".edit\").button();\n\t$(\".delete\").button().click...
javascript
edit
0
2
mit
6495cd006c6ab087f971981873ae7202d4fd73e6
claw68/alchemy,claw68/alchemy,claw68/alchemy,claw68/alchemy
includes/js/main.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports = {\n 'root': true,\n\n 'parser': 'babel-eslint',\n\n 'extends': [\n 'airbnb',\n 'plugin:import/errors'\n ],\n\n 'rules': {\n 'space-before-function-paren': 0,\n 'comma-dangle': [2, 'never'],\n 'one-va...
javascript
edit
0
0
mit
167aa0bf00f03eba76a432f548885636d8a0b28d
NiGhTTraX/react-test-buffet,NiGhTTraX/react-test-buffet,NiGhTTraX/react-test-buffet
.eslintrc.js
rejected_duplicate
Near-duplicate of sample 94512
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nexport default {\n run(editor, sender, opts = {}) {\n const modal = editor.Modal;\n const am = editor.AssetManager;\n const config = am.getConfig();\n const title = opts.modalTitle || editor.t('assetManager.modalTitle') || ...
javascript
edit
0
9
bsd-3-clause
77fa21457a7b503d9086b28b480baa8b96d0715f
artf/grapesjs,artf/grapesjs,artf/grapesjs
src/commands/view/OpenAssets.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports = {\n root: true,\n parserOptions: {\n ecmaVersion: 2017,\n sourceType: \"module\"\n },\n plugins: [\"ember\"],\n extends: [\n \"eslint:recommended\",\n \"plugin:ember/recommended\",\n \"plugin:prettie...
javascript
edit
0
0
mit
3fff4b7571affcbd95cee4bc8df03598019695a6
adfinis-sygroup/ember-validated-form,adfinis-sygroup/ember-validated-form,adfinis-sygroup/ember-validated-form
.eslintrc.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nfunction arrayToList(array) {\n let list = null;\n for (let i = array.length - 1; i >= 0; --i) {\n list = {value: array[i], rest: list};\n }\n return list;\n}\n\nfunction listToArray(list) {\n let array = [];\n ...
javascript
edit
0
3
mit
3c0c8915e6a5590a8d6d0db65a90632bce985c6f
bewuethr/ctci
eloquent_js/chapter04/ch04_ex03.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports = {\n \"Dagens bedrift\": \"PRESENTATIONS\",\n \"Fest og moro\": \"NIGHTLIFE\",\n \"Konsert\": \"MUSIC\",\n \"Kurs og events\": \"PRESENTATIONS\",\n \"Revy og teater\": \"PERFORMANCES\",\n \"Foredrag\": ...
javascript
edit
0
0
apache-2.0
847f32fb3980cb624e516d8f3052388de5a8ec49
Studentmediene/Barteguiden,Studentmediene/Barteguiden
server/import/import_scripts/category_mapping.js
rejected_duplicate
Near-duplicate of sample 76793
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport devcards from '../';\nimport React from 'react';\nimport Button from './Button';\n\nvar devcard = devcards.ns('buttons');\n\ndevcard(\n 'Buttons',\n `\n A simple display of bootstrap buttons.\n\n * default\n * primary\n * s...
javascript
edit
0
0
mit
851ff5f6511117c9122e7f8b97797171d2372502
glenjamin/devboard,glenjamin/devboard,glenjamin/devboard
example/Button.card.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nfunction render(viewName, layoutPath) {\n if (!layoutPath) {\n return function (req, res) {\n res.render(viewName);\n };\n }\n else {\n return function (req, res) {\n res.render(viewNa...
javascript
edit
0
2
bsd-3-clause
847fa26ac3e5b60e16d6c03c521ce29bdc709164
weigang992003/pure-css-chinese,jamesalley/pure-site,yahoo/pure-site,weigang992003/pure-css-chinese,jamesalley/pure-site,pandoraui/pure-site,yahoo/pure-site,chensy0203/pure-site
lib/routes/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport { unlinkUser } from '../lib/postgres';\n\nexport default (bot) => {\n return async (payload, reply) => {\n const page_scoped_id = payload.sender.id;\n\n await unlinkUser(page_scoped_id);\n await reply({ text: 'You have ...
javascript
edit
0
1
mit
10577cdf202b955fa855a31a6df961c37b016a73
nikolay-radkov/ebudgie-server,nikolay-radkov/ebudgie-server
src/bot/accountUnlinked.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// @flow\n\nimport * as React from \"react\";\nimport css from \"styled-jsx/css\";\n\nconst promptStyle = css`\n .prompt {\n font-family: monospace;\n font-size: 12px;\n line-height: 22px;\n\n width: var(--prompt-width, 50p...
javascript
edit
null
null
bsd-3-clause
3685283ef4bbff5121146798c16be605ea2a0e2d
nteract/nteract,rgbkrk/nteract,nteract/composition,jdfreder/nteract,jdfreder/nteract,nteract/composition,rgbkrk/nteract,rgbkrk/nteract,jdfreder/nteract,rgbkrk/nteract,rgbkrk/nteract,jdfreder/nteract,nteract/nteract,nteract/nteract,nteract/composition,nteract/nteract,nteract/nteract
packages/presentational-components/src/components/prompt.js
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// External\nimport * as d3 from 'd3';\n\nexport function mergeSelections (selections) {\n // Create a new empty selection\n const mergedSelection = d3.selectAll('.d3-list-graph-not-existent');\n\n function pushSelection (selection) ...
javascript
edit
0
2
mit
8065830ff2163bf1178b204a5873b7d56b40a228
flekschas/d3-list-graph,flekschas/d3-list-graph
src/scripts/commons/d3-utils.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar path = require('path');\nvar url = require('url');\n\nvar compression = require('compression');\nvar express = require('express');\n\nvar ssr = require('../index');\nvar xhr = require('./xhr');\nvar proxy = require('./proxy');\n\nmo...
javascript
edit
0
4
mit
ef93e13a9e22459c8151c36bae520ed80fdb1b5b
donejs/done-ssr,donejs/done-ssr
lib/server/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nlet scheduler = null\n\nexport function setScheduler (customScheduler) {\n if (customScheduler) {\n scheduler = customScheduler\n } else {\n scheduler = new DefaultScheduler()\n }\n}\n\nexport function getScheduler () {\n retu...
javascript
edit
0
2
mit
bb8eac7f6c3493a5fb0f644c92bc71229129101c
smashwilson/etch,atom/etch,lee-dohm/etch,nathansobo/etch
src/scheduler-assignment.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/*\n * Copyright 2015 Anton Tananaev (<EMAIL>)\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n ...
javascript
edit
0
0
apache-2.0
a3a1990d95b3162ecd404610d176e2cb0bccde3b
vipien/traccar,joseant/traccar-1,al3x1s/traccar,5of9/traccar,ninioe/traccar,tsmgeek/traccar,ninioe/traccar,jon-stumpf/traccar,renaudallard/traccar,5of9/traccar,tsmgeek/traccar,stalien/traccar_test,duke2906/traccar,jon-stumpf/traccar,orcoliver/traccar,stalien/traccar_test,AnshulJain1985/Roadcast-Tracker,ninioe/traccar,o...
web/app/store/MapTypes.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport {\n moduleForModel,\n test\n} from 'ember-qunit';\n\nmoduleForModel('employee', {\n // Specify the other units that are required for this test.\n needs: []\n});\n\ntest('it exists', function(assert) {\n var model = this.subj...
javascript
edit
0
1
mit
7065308e49623e1e54314d9f67fad82600aea00d
Flexberry/ember-flexberry,Flexberry/ember-flexberry,Flexberry/ember-flexberry,Flexberry/ember-flexberry
tests/unit/models/employee-test.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n\n/*\n * Exporst function that checks if given emails of users are shown\n * on the Teamview page. And if so how they are rendered: as text or link.\n *\n * It does not check exact emails, just count numbers.\n *\n * */\n\n'use strict';...
javascript
edit
0
5
mit
4284ec386be6b909362b28aaa2569f93b1a5e696
timeoff-management/application,YulioTech/timeoff,YulioTech/timeoff,timeoff-management/application
t/lib/teamview_check_user.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nconst assert = require('assert');\n\nconst mongoose = require('mongoose');\n\nmongoose.Promise = global.Promise;\n\nconst dataSchema = new mongoose.Schema({\n 'contents': String\n});\n\ndataSchema.plugin(require('../...
javascript
edit
0
2
mit
4ed0b226782d5b2c8c4ee79112a2735ddf6a8953
neogeek/mongoose-create-or-update
test/specs/createOrUpdate.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar vows = require('vows'),\n assert = require('assert'),\n namedColorSamples = require('./samples'),\n spaces = [\n 'rgb',\n 'hsl',\n 'hsv'\n ];\n\nfunction createTest(bundleFileName) {\n var Color =...
javascript
edit
0
1
bsd-3-clause
6038661b81a3ae849d854678707c7a0826f85d5b
liuhong1happy/one-color,liuhong1happy/one-color
test/conversion-test.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport resolve from 'rollup-plugin-node-resolve';\nimport commonjs from 'rollup-plugin-commonjs';\nimport angular from 'rollup-plugin-angular';\nimport typescript from 'rollup-plugin-typescript';\nvar sass = require('node-sass');\nimpor...
javascript
edit
0
2
mit
631e16f977c65dbd38a532323e10c48dc97b4f50
Elecweb/emptytext,Elecweb/emptytext
rollup.config.umd.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst mongoose = require('mongoose')\nconst middleware = require('./middleware/Feed.js')\nconst path = require('path')\nconst fs = require('fs')\nconst packageVersion = JSON.parse(fs.readFileSync(path.join(__dirname, '..', '..', 'packag...
javascript
edit
0
0
mit
8d4782fdefdaa16fc4ae1c24500d910817a8d3d1
synzen/Discord.RSS,synzen/Discord.RSS
src/models/Feed.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/*global after, before, describe, it*/\n'use strict';\nvar assert = require('assert');\nvar grunt = require('grunt');\nvar path = require('path');\nvar sinon = require('sinon');\n\nvar statici18n = require('../tasks/statici18n');\nstat...
javascript
edit
0
1
mit
ec27e6fed4b91d6075c702aed69976ec19061eab
beck/grunt-static-i18n
test/statici18n_test.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n#!/usr/bin/env node\n\nvar fs = require('fs')\nvar path = require('path')\nvar chalk = require('chalk')\n\nfunction show (result) {\n Object.keys(result).sort().reverse().forEach(file => {\n var test = file.replace(/\\.test\\.js\\.s...
javascript
edit
0
3
mit
1a721d6b1bd32da9f48fb5f3dc0b26eee8bfd095
logux/logux-server
test/__snapshots__/show.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport test from 'ava';\nimport 'babel-core/register';\n\nimport AnalyzerResult from '../src/lib/analyzer-result';\n\ntest('addMessage adds expected message', t => {\n const testMessageType = 'test';\n const testMessageText = 'test-me...
javascript
edit
0
1
mit
d76d4072f34e29310e724da392086932e08ed52b
ritterim/markdown-proofing
test/analyzer-result.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar bot = require( 'nodemw' ),\n\treadline = require( 'readline' ),\n\trl = readline.createInterface( {\n\t\tinput: process.stdin,\n\t\toutput: process.stdout\n\t} ),\n\tclient = new Bot( {\n\t\tprotocol: 'https',\n\t\tserver: 'dev.fand...
javascript
edit
0
3
bsd-2-clause
bdadb8db1c2ba6c0481fa7fc54d67f762731a3d6
macbre/nodemw
examples/scribuntoConsole.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst utils = require('../lib/utils')\nconst challenges = require('../data/datacache').challenges\nconst db = require('../data/mongodb')\n\nmodule.exports = function trackOrder () {\n return (req, res) => {\n const id = insecurity.s...
javascript
edit
0
4
mit
eb78a8ff55ffb43880fbba8ff92254c3ddf630c7
bkimminich/juice-shop,bkimminich/juice-shop,bkimminich/juice-shop,bkimminich/juice-shop,bkimminich/juice-shop,bkimminich/juice-shop
routes/trackOrder.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/* @flow */\n\nimport React, {Component, PropTypes} from 'react';\n\nimport Enhancer from '../enhancer';\nimport StyleKeeper from '../style-keeper';\nimport StyleSheet from './style-sheet';\n\nfunction _getStyleKeeper(instance): StyleKe...
javascript
edit
null
null
mit
d2dcc04cbcc2b6a19762c4f95e98476b935a29e4
FormidableLabs/radium
src/components/style-root.js
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports = {\n // Autoprefixer\n autoprefixer: {\n // https://github.com/postcss/autoprefixer#browsers\n browsers: [\n 'Explorer >= 10',\n 'ExplorerMobile >= 10',\n 'Firefox >= 30',\n 'Chrome >= 34',\n ...
javascript
edit
0
0
mit
a95a786d9c0d5b643f2e6b1c51e55853d1750c74
osr-megha/polymer-starter-kit,StartPolymer/polymer-starter-kit-old,StartPolymer/polymer-static-app,StartPolymer/polymer-starter-kit-old,osr-megha/polymer-starter-kit,StartPolymer/polymer-static-app
gulp/config.js
rejected_duplicate
Near-duplicate of sample 82740
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar keystone = require('keystone'),\n\t_ = require('underscore');\n\n// Load models to allow fetching of slideshow data\nvar Slideshow = keystone.list('Slideshow'),\n\tSlideshowItems = keystone.list('Slideshow Item');\n\nexports = modul...
javascript
edit
0
1
mit
d688400e75fd5282cc3a5a7ef738711a13617e1b
autoboxer/MARE,autoboxer/MARE
routes/views/main.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React from \"react\";\nimport { Chance }from \"chance\";\n\nimport WriteMessage from \"./components/WriteMessage\";\nimport Messages from \"./components/Messages\";\n\nexport default class App extends React.Component {\n constru...
javascript
edit
0
2
mit
b4cacf5ed3e4bd98a693cddb2ba48674add19cb6
Frky/moon,Frky/moon,Frky/moon,Frky/moon,Frky/moon
website/static/website/js/app.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React, { Component, PropTypes } from 'react';\nimport classnames from 'classnames';\nimport './Button.scss';\n\nexport default class Button extends Component {\n static propTypes = {\n onClick: PropTypes.func,\n type: Prop...
javascript
edit
0
2
mit
a305be411f880fa1fdf5c931f562e605c2a208d3
JasonEtco/flintcms,JasonEtco/flintcms
app/components/Button/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport { connect } from 'react-redux';\nimport Timeline from '../components/map/timeline';\nimport { updateFilters } from '../actions/filters';\n\nconst mapStateToProps = state => {\n return {\n filters: state.filters\n };\n};\n\nc...
javascript
edit
0
1
mit
f672c1cc4b3648303f6a770ccbc9f24be423d8bd
Vizzuality/GlobalFishingWatch,Vizzuality/GlobalFishingWatch,Vizzuality/GlobalFishingWatch
app/src/containers/timeline.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport _ from 'lodash';\n\n\nexport const unexistedUID = '00000000-0000-0000-C000-000000000046';\n\nexport function initObject(classDef, attrs, id, params) {\n return new classDef({ ...attrs, id, ...params });\n}\n\nexport function pre...
javascript
edit
0
3
mit
0200a9c8123896848792b7f3150fa7a56aa07470
FreeFeed/freefeed-server,FreeFeed/freefeed-server
app/support/DbAdapter/utils.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport Session from \"./Session.js\";\n\nlet session = new Session();\n\nloadPlugins()\n .then(() => session.connect());\n\nasync function loadPlugins()\n{\n let pluginEntryScripts = <%- JSON.stringify(entryScripts) %>;\n let importP...
javascript
edit
null
null
mit
cc38cd161bf98799a87039cfedea311e76b7ca3f
ArthurCose/JoshDevelop,ArthurCose/JoshDevelop
web/templates/javascript/Entry.js
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst initialState = {\n\tprofile: { data: null },\n\tname: { data: null },\n\timage: { data: null },\n\tbarcode: { data: null }\n}\n\nfunction studentProfileReducer(state = initialState, action) {\n\tconst newState = { ...state }\n\tsw...
javascript
edit
0
6
mit
e15b144af678fbbfabe6fac280d869d02bcfb2ce
UCSD/campus-mobile,UCSD/campus-mobile,UCSD/now-mobile,UCSD/campus-mobile,UCSD/campus-mobile,UCSD/now-mobile,UCSD/campus-mobile,UCSD/now-mobile,UCSD/campus-mobile
app/reducers/studentProfile.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React from 'react'\nimport {connect} from 'react-redux'\nimport {Link} from 'react-router-dom'\nimport {compose} from 'recompose'\n\nimport {updateUserVideos} from '../actions/userVideos'\nimport {withDatabaseSubscribe} from './h...
javascript
edit
0
2
mit
e762c50fba4e25c6cff3152ab499c6ff310c95ee
mg4tv/mg4tv-web,mg4tv/mg4tv-web
src/components/UserVideos.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nexport default function authRequired(req, res, next) {\n if (req.user.isAdmin) {\n next();\n } else {\n res.status(403);\n res.json({\n id: 'AUTH_FORBIDDEN',\n message: 'You need admin privilege to run this command....
javascript
edit
0
3
mit
e44c9d381503575c441d0de476690e9ba94a6cca
yoo2001818/shellscripts
src/api/lib/adminRequired.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React from 'react';\nimport {default as KataGroupsData} from '../katagroups.js';\n\nexport default class KataGroupsComponent extends React.Component {\n\n static propTypes = {\n kataGroups: React.PropTypes.instanceOf(KataGrou...
javascript
edit
0
1
mit
9af9fd4200ffe08681d42bb131b9559b52073f1b
wolframkriesing/es6-react-workshop,wolframkriesing/es6-react-workshop
src/components/katagroups.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nexports.listeners = {\n\n wield: function (l10n) {\n return function (location, player, players) {\n player.say('You ready the weighty cleaver.');\n player.combat.addToHitMod({\n name: 'cleaver ' + this.getUuid(),\n...
javascript
edit
0
1
mit
0b1eecf180c79d6196d796ba786a46b1158abbbc
seanohue/ranviermud,seanohue/ranviermud,shawncplus/ranviermud
scripts/objects/2-cleaver.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n(function(win){\n 'use strict';\n\n var paramRe = /:([^\\/.\\\\]+)/g;\n\n function Router(){\n if(!(this instanceof Router)){\n return new Router();\n }\n this.routes = [];\n }\n\n Router.p...
javascript
edit
0
5
unlicense
84a5ea535a61cd8d608694406c1bdf05a0adf599
ryanmorr/router
src/router.js
rejected_duplicate
Near-duplicate of sample 94791
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport Instance from './instance';\nimport instances from './instances';\n\nexport default (node, options = {}) => {\n\t// Stream was passed instead of `options` object\n\tif (typeof options.write === 'function') {\n\t\toptions = {\n\t\...
javascript
edit
0
3
mit
c257e7fd2162131559b0db4c2eb2b1e8d8a1edbc
vadimdemedes/ink,vadimdemedes/ink
src/render.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// This is a manifest file that'll be compiled into application.js, which will include all the files\n// listed below.\n//\n// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,\n// or a...
javascript
edit
0
0
mit
9f289e7ba64238d1c572eaf9c684304fb2a01c33
tonyedwardspz/westcornwallevents,tonyedwardspz/westcornwallevents,tonyedwardspz/westcornwallevents
app/assets/javascripts/application.js
rejected_duplicate
Near-duplicate of sample 71086
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// This is a manifest file that'll be compiled into application.js, which will include all the files\n// listed below.\n//\n// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,\n// or v...
javascript
edit
0
0
mit
b77f1e3bca3e2858ca0c0b85cc3d2d8083cdb199
dfurber/historyforge,timwaters/mapwarper,kartta-labs/mapwarper,dfurber/historyforge,kartta-labs/mapwarper,kartta-labs/mapwarper,dfurber/mapwarper,timwaters/mapwarper,dfurber/historyforge,timwaters/mapwarper,dfurber/mapwarper,dfurber/historyforge,dfurber/mapwarper,dfurber/mapwarper,timwaters/mapwarper,kartta-labs/mapwar...
app/assets/javascripts/application.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React from \"react\";\nimport classNames from \"classnames\";\n\nimport { selectPiece } from \"store/actions\";\n\nclass ChessBoardSquare extends React.Component {\n constructor(props) {\n super(props);\n\n this.selectSqua...
javascript
edit
0
3
mit
e7933b56614eda1941811bb95e533fceb1eaf907
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\n# Place all the behaviors and hooks related to the matching controller here.\n# All this logic will automatically be available in application.js.\n# You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/\n\n$(...
javascript
edit
0
1
mit
84a21f18b364bed6249002ff311900f240059b16
nomatteus/dinesafe,jbinto/dinesafe,jbinto/dinesafe-chrome-backend,nomatteus/dinesafe,nomatteus/dinesafe,jbinto/dinesafe-chrome-backend,nomatteus/dinesafe,jbinto/dinesafe,jbinto/dinesafe-chrome-backend,jbinto/dinesafe-chrome-backend,jbinto/dinesafe,jbinto/dinesafe
app/assets/javascripts/inspections.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nfunction createDoc(browser, docType) {\n const devServer = browser.globals.devServerURL;\n\n browser.url(`${devServer}/`);\n browser.expect.element('#app').to.be.visible.before(5000);\n\n browser.execute(() => {\n const className...
javascript
edit
0
2
mit
7499a6bfd2b91b04724f5c7bd0ad903de5a226ab
nus-mtp/sashimi-note,nus-mtp/sashimi-note,nus-mtp/sashimi-note
sashimi-webapp/test/e2e/specs/fileManager/create-file-folder.spec.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports = function (grunt) {\n var _ = require('lodash'),\n scsslint = require('./lib/scss-lint').init(grunt);\n\n grunt.registerMultiTask('scsslint', 'Validate `.scss` files with `scss-lint`.', function() {\n var done ...
javascript
edit
0
3
mit
e32bf7f935f9677847639ce10267830b63b3c2ec
nick11703/grunt-scss-lint,nick11703/grunt-scss-lint,chrisnicotera/grunt-scss-lint,asev/grunt-scss-lint,DBaker85/grunt-scss-lint-json,meinaart/grunt-scss-lint,asev/grunt-scss-lint,ahmednuaman/grunt-scss-lint,barzik/grunt-scss-lint,ahmednuaman/grunt-scss-lint,DBaker85/grunt-scss-lint-json,cornedor/grunt-scss-lint,cornedo...
tasks/scss-lint.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar async = require(\"async\");\nvar path = require(\"path\");\nvar url = require(\"url\");\n\nvar utils = require(\"./lib/utils\");\n\nmodule.exports = function(options, callback) {\n utils.list_files(options, function(err, objects) {...
javascript
edit
0
2
mit
ac86b98535232756835e0e2b1df0a1c87dfc3529
mozilla/webmaker-download-locales
webmaker-download-locales.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar _ = require('lodash');\n\nmodule.exports = {\n // Return non-parsed html\n // since blocks are by default non-parsable, a simple identity method works fine\n html: _.identity,\n\n // Highlight a code block\n // This b...
javascript
edit
0
1
apache-2.0
edda84fefd17426fcdf822fc3fb746f30047085c
ryanswanson/gitbook,gencer/gitbook,tshoper/gitbook,gencer/gitbook,GitbookIO/gitbook,strawluffy/gitbook,tshoper/gitbook
lib/template/blocks.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nrequire('./harness').run();\n\nvar recvCount = 0;\nvar body = \"hello world\";\n\nconnection.addListener('ready', function () {\n puts(\"connected to \" + connection.serverProperties.product);\n\n var e = connection.exchange('node-pur...
javascript
edit
0
2
mit
7e5bc4044748de2130564ded69d3bc3618274b8a
xebitstudios/node-amqp,albert-lacki/node-amqp,zkochan/node-amqp,postwait/node-amqp,zinic/node-amqp,postwait/node-amqp,xebitstudios/node-amqp,albert-lacki/node-amqp,zinic/node-amqp,zkochan/node-amqp,postwait/node-amqp,remind101/node-amqp,remind101/node-amqp,hinson0/node-amqp,seanahn/node-amqp,seanahn/node-amqp,segmentio...
test/test-purge.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport {Router} from 'express'\nimport models from '../models';\nimport tasks from './tasks'\n\nexport default () => {\n\tlet app = Router({mergeParams: true})\n\n\tapp.use('/:userId/tasks', tasks())\n\n\tapp.get('/', (req, res) => {\n\...
javascript
edit
0
1
mit
dec054ca7face3467e6beeafdac8772346e8f38c
taodav/MicroSerfs,taodav/MicroSerfs
api/routes/users.js
rejected_duplicate
Near-duplicate of sample 77756
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/* From w3schools */\n\n/* When the user clicks on the button,\ntoggle between hiding and showing the dropdown content */\n$(function () {\n $('.c-dropdown__btn').click(function (event) {\n event.preventDefault();\n $(t...
javascript
edit
0
2
mit
6831e4787d7fd5a19aef1733e3bb158cb82538dd
solleer/framework,solleer/framework,solleer/framework
resources/framework/dropdown-nav.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport path from 'path';\nimport webpack from 'webpack';\nimport CommonsChunkPlugin from 'webpack/lib/optimize/CommonsChunkPlugin';\n\nconst PROD = process.env.NODE_ENV || 0;\n\nmodule.exports = {\n devtool: PROD ? false : 'eval',\n\n ...
javascript
edit
0
0
mit
0ad0b316bb699abb9fd554e9bfce32135ca9f421
trendyminds/pura,trendyminds/pura
webpack.config.babel.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport { extend } from 'flarum/extend';\nimport DiscussionListItem from 'flarum/components/DiscussionListItem';\nimport DiscussionPage from 'flarum/components/DiscussionPage';\nimport DiscussionHero from 'flarum/components/DiscussionHer...
javascript
edit
0
4
mit
e9415e52681fab5b68cf3da1acc39b58fac4f7dd
flarum/tags,flarum/tags,flarum/tags
js/src/forum/addTagLabels.js
rejected_duplicate
Near-duplicate of sample 85587
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport req from 'superagent';\n\nimport {dispatch} from '../dispatcher';\n\nimport {Action} from '../actions';\n\nimport meta from '../meta';\n\nconst DIR_CONFIG='/resource/config/app/moe/somesim',\n\t DIR_DOC='/resource/markdown/app/m...
javascript
edit
0
1
mit
0c727e568bf61fa89c43f13ed0f413062442297f
pocka/moe-somesim,pocka/moe-somesim,pocka/moe-somesim
js/src/util/load-resource.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport Ember from 'ember'\nimport Authenticated from 'ember-simple-auth/mixins/authenticated-route-mixin'\n\nconst { get, set } = Ember\n\nexport default Ember.Route.extend(Authenticated, {\n pageTitle: 'Media',\n toggleDropzone () {\...
javascript
edit
0
2
mit
cedfb682fbcb4badfd314710c07ad423feac417e
small-cake/client,small-cake/client
app/routes/media.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nconst format = require('util').format;\nconst log = require('util').log;\n\nconst Promise = require('bluebird');\nconst db = require('../shared/db');\n\nmodule.exports = {\n insert: insertEntries,\n delete: delete...
javascript
edit
0
1
mit
6b7d6db52e3aca121e8ae0d12bc752c290bbad5f
ralt/dpsv,ralt/dpsv
updater/entries.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nexport const CC_LICENSES = [\n {\n value: 'Creative Commons Attribution 4.0 International',\n url: 'https://creativecommons.org/licenses/by/4.0/legalcode',\n },\n {\n value: 'Creative Commons Attribution-ShareAlike 4.0 Inter...
javascript
edit
0
0
mit
b74b69dc57fdf71e742b19ea22f6311199fe2752
lbryio/lbry-app,lbryio/lbry-electron,lbryio/lbry-electron,lbryio/lbry-electron,lbryio/lbry-app
src/ui/constants/licenses.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nexport default {\n black_pink: ['#36516e', '#f93b58', 0],\n pink_black: ['#f93b58', '#36516e', 1],\n white_blue: ['#45c0e9', '#efefef', 0],\n blue_white: ['#45c0e9', '#efefef', 1],\n beige_black: ['#eadaca', '#433947', 1],\n black...
javascript
edit
0
0
mit
56f1fce919464363aaf2beff7564de5552d3cf26
g8extended/Character-Generator,g8extended/Character-Generator
src/configs/extra_colors.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nfunction getMusic(element) {\n element = $(element);\n var info_send = {\n //method: 'info', // TODO possible method to get the song data: song 'info' or song 'id'\n artist: element.data('artist'),\n album: ...
javascript
edit
0
1
apache-2.0
c27a38c04828f3ad670b195982583d6f2f3efdec
edmundo096/MoodMusic,edmundo096/MoodMusic,edmundo096/MoodMusic
static/getMusic.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport { component } from \"d3-component\";\nimport { select, local } from \"d3-selection\";\n\nconst codeMirrorLocal = local();\n\n// User interface component for the code editor.\nexport default component(\"div\", \"shadow\")\n .crea...
javascript
edit
0
3
mit
b7a3179b2d56e320a922401ecd66f6fcc87296ec
curran/example-viewer,curran/example-viewer
src/client/editor.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n\"use strict\";\n\nconst hasDebug = process.argv.indexOf(\"--debug\") > -1;\n\nconst debug = (!hasDebug) ? \n function() {} : \n (message) => console.log(message);\n\ndebug.on = function() { return ...
javascript
edit
0
1
mit
a0168c294d72f11e28287434653adbd2970fdf7a
TeaSeaLancs/train-timeline,TeaSeaLancs/train-timeline
util/debug.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nvar pdf = require( './../lib' );\n\nvar x;\nvar mu;\nvar sigma;\nvar v;\nvar i;\n\nfor ( i = 0; i < 10; i++ ) {\n\tx = Math.random() * 10;\n\tmu = Math.random() * 10 - 5;\n\tsigma = Math.random() * 20;\n\tv = pdf( x, mu...
javascript
edit
0
0
apache-2.0
d4e5de834aeaee536df0ffd998be1f1660eee2d1
stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib
lib/node_modules/@stdlib/math/base/dist/normal/pdf/examples/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// Method that performs basic string compression using the counts of repeated characters\n\nfunction compressStr(str) {\n\tvar output = \"\", // will return this variable as final compressed string\n\t\tcurrChar = \"\", // represents ch...
javascript
edit
0
3
mit
fb7e4bc04e0a54e5a08f51e3f12c5982a6a1ca86
derekmpham/interview-prep,derekmpham/interview-prep
string/compress.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\napp.controller('HomeController', ['$http', 'AuthFactory', function($http, AuthFactory) {\n console.log('HomeController running');\n var self = this;\n self.userStatus = AuthFactory.userStatus;\n\n self.dataArray = [{\n src: '.....
javascript
edit
0
1
mit
7f292e1e1c3a7147331a462e2ded5e3a01cdfe7f
STEMentor/STEMentor,STEMentor/STEMentor
server/public/scripts/controllers/home.controller.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use babel'\n\nimport minimatch from 'minimatch'\n\nexport function showError(e) {\n atom.notifications.addError(`[Linter] ${e.message}`, {\n detail: e.stack,\n dismissable: true\n })\n}\n\nexport function shouldTriggerLinter(li...
javascript
edit
0
6
mit
f3c4fc88e6e2bb7cb28bd491812226805f321994
AtomLinter/Linter,atom-community/linter,steelbrain/linter
lib/helpers.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use babel'\n\nimport Html2JsView from './html2js-view'\nimport html2js from './html-2-js'\nimport { CompositeDisposable } from 'atom'\n\nexport default {\n\n html2JsView: null,\n modalPanel: null,\n subscriptions: null,\n\n activat...
javascript
edit
0
1
mit
1b37e313bc95d878a2774590bdad9e7682d4b829
jerone/atom-html2js,jerone/atom-html2js
lib/html2js.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports = {\n\toptions: {\n\t\tmap: true,\n\t\tprocessors: [\n\t\t\trequire(\"pixrem\")(), // add fallbacks for rem units for IE8+\n\t\t\trequire(\"autoprefixer\")({ browsers: \"> 1%, last 2 versions, ie >= 8\" }), // add vendor ...
javascript
edit
0
0
mit
bac10e88a8732cf5d4914635bb93ff91c8c68e81
nhsevidence/NICE-Experience,nhsevidence/NICE-Experience
.grunt-tasks/postcss.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n#!/usr/bin/env node\n\n'use strict';\n\nconst dependencyTree = require('../');\nconst program = require('commander');\n\nprogram\n .version(require('../package.json').version)\n .usage('[options] <filename>')\n .option('-d, --directo...
javascript
edit
0
1
mit
a8cddb0a5b2e026ce0733a66aa4aaa77de1ec506
dependents/node-dependency-tree,dependents/node-dependency-tree
bin/cli.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React from 'react';\nimport Map, {GoogleApiWrapper} from 'google-maps-react';\n\nimport { searchNearby } from 'utils/googleApiHelpers';\n\nexport class Container extends React.Component {\n\tonReady(mapProps, map) {\n\t\t// when ...
javascript
edit
0
2
mit
ee678fe9f72422507e138ffa9fb45485c7fb0449
Kgiberson/welp
src/views/Main/Container.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\nvar users = require('../../app/controllers/users');\n var fellows = require('../../app/controllers/fellows');\n\n\nmodule.exports = function(app) {\n\t// Setting up the bootcamp api\n\tapp.route('/camps')\n<<<<<<< HEAD\n\...
javascript
edit
0
1
mit
74b87cbca5fc7bd065ecd129463856dffc8b4b7e
andela-ogaruba/AndelaAPI
app/routes/fellows.server.routes.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React from 'react';\nimport InlineEdit from 'react-edit-inline';\nimport Ansible from '../../utils/Ansible';\n\nvar NameEdit = React.createClass({\n propTypes: {\n name: React.PropTypes.string,\n id: React.PropTypes.string...
javascript
edit
0
2
apache-2.0
408567081d82c28b1ff0041c10c57f879acf1187
pioneers/PieCentral,pioneers/PieCentral,pioneers/PieCentral,pioneers/PieCentral,pioneers/PieCentral,pioneers/PieCentral,pioneers/PieCentral
dawn/js/components/peripherals/NameEdit.js
accepted
null
true