messages
listlengths
2
2
language
stringclasses
8 values
prompt_type
stringclasses
2 values
lint_errors
int64
0
129
⌀
cyclomatic_complexity
int64
0
32
⌀
license
stringclasses
7 values
commit
stringlengths
40
40
repos
stringlengths
5
116k
new_file
stringlengths
4
220
status
stringclasses
6 values
error
stringlengths
26
74
⌀
is_valid_syntax
bool
2 classes
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar route = function(name, params = {}, absolute = true) {\n var domain = (namedRoutes[name].domain || baseUrl).replace(/\\/+$/,'') + '/',\n url = (absolute ? domain : '') + namedRoutes[name].uri,\n paramsArrayKey = 0;\...
javascript
edit
0
3
mit
30c2850e9593738f2059c4c401ac75fd7b2c87fe
tightenco/ziggy,tightenco/ziggy
src/js/route.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport 'babel-core/polyfill';\n\nimport React from 'react';\nimport { render } from 'react-dom';\nimport { Provider } from 'react-redux';\nimport { createStore } from 'redux';\nimport { ReduxRouter } from 'redux-router';\nimport Immutab...
javascript
edit
0
0
mit
dc79c6bdd3bae0ed3aa5a5663a55d574ab18379d
fastmonkeys/respa-ui
app/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nHNSpecial.settings.registerModule(\"mark_as_read\", function () {\n function editLinks() {\n var subtexts = _.toArray(document.getElementsByClassName(\"subtext\"));\n\n subtexts.forEach(function (subtext) {\n if (!subtext.ge...
javascript
edit
0
2
mit
3a09cec10086b36ad297b31efdb3575bbc1163ee
lieuwex/hn-special,gabrielecirulli/hn-special,gabrielecirulli/hn-special,benoror/hn-special,lieuwex/hn-special,lieuwex/hn-special,benoror/hn-special,gabrielecirulli/hn-special,benoror/hn-special,kislakiruben/hn-special,kislakiruben/hn-special,kislakiruben/hn-special
mark_as_read.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nexport class ExperimentStep {\n constructor(title, _type) {\n this.id = '';\n this.title = title;\n this._type = _type;\n this.steps = [];\n this.description = '';\n this.flags = {\n ...
javascript
edit
0
1
mit
81746ec53efc0627821c0556e74a1cb46fe5dc52
materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org
website/src/app/project/experiments/experiment/experiment.model.js
rejected_duplicate
Near-duplicate of sample 87399
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar peer = require('./peer');\n\nvar textOT = require('ottypes').text\nvar gulf = require('gulf');\nvar bindEditor = require('gulf-textarea');\nvar textarea = document.querySelector('textarea#doc');\nvar textareaDoc = bindEditor(textare...
javascript
edit
0
3
cc0-1.0
c86593d654f2852caad6620510069c63191c3f04
nybblr/p2p-experiments,nybblr/p2p-experiments
app/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nexport const counterIndicator = {\n name: 'counter',\n order: 5,\n onInit: (counterElement, pswp) => {\n pswp.on('change', () => {\n counterElement.innerHTML = (pswp.currIndex + 1)\n + pswp.op...
javascript
edit
0
1
mit
ec7fa504176d692b3425a9954114189e6428c03e
dimsemenov/PhotoSwipe,dimsemenov/PhotoSwipe
src/js/ui/counter-indicator.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport { DateUtils } from 'react-day-picker/lib/src/index';\n\nexport const convertModifiersToClassnames = (modifiers, theme) => {\n if (!modifiers) {\n return {};\n }\n\n return Object.keys(modifiers).reduce((convertedModifiers, ...
javascript
edit
0
5
mit
6dc0dabebb1ce6bf419cbb53d83c42b017c467a6
teamleadercrm/teamleader-ui
src/components/datepicker/utils.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n\nexports.sort = function (Handlebars) {\n\treturn function (array, field, options) {\n\t\tif (arguments.length === 1) {\n\t\t\tthrow new Error('Handlebars Helper \"sort\" needs 1 parameter');\n\t\t}\n\n\t\toptions = arguments[arguments...
javascript
edit
0
6
mit
ba39cf7dbc7ec530d0e9556bd819f01ae97f73f3
ChiperSoft/HandlebarsHelperHoard,ChiperSoft/HandlebarsHelperHoard
src/helpers/collection/sort.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/*\n * Copyright 2014 the original author or authors.\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 ...
javascript
edit
0
3
apache-2.0
90405067d41afe85eaaa7d9822f40f5ec74b7881
codecentric/spring-boot-admin,librucha/spring-boot-admin,joshiste/spring-boot-admin,joshiste/spring-boot-admin,codecentric/spring-boot-admin,codecentric/spring-boot-admin,librucha/spring-boot-admin,joshiste/spring-boot-admin,librucha/spring-boot-admin,joshiste/spring-boot-admin,librucha/spring-boot-admin
spring-boot-admin-server-ui/modules/applications/services/applicationViews.js
accepted
null
true
[ { "role": "user", "content": "Write javascript code for the following: Configure using an ENV variable" }, { "role": "assistant", "content": "const { RESIZING_SERVICE } = process.env;\n\nmodule.exports = function() {\n if (RESIZING_SERVICE === 'gemini') {\n return require('./gemini').apply(n...
javascript
new_file
0
2
mit
c3b3b55bcd208f66a2a6e85f1b97d822d815e803
craigspaeth/metaphysics,mzikherman/metaphysics-1,craigspaeth/metaphysics,mzikherman/metaphysics-1,1aurabrown/metaphysics,artsy/metaphysics,broskoski/metaphysics,mzikherman/metaphysics-1,mzikherman/metaphysics-1,artsy/metaphysics,artsy/metaphysics
schema/image/proxies/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n$('.sidebar a').on('click', function(){\n $('.sidebar a').attr('class','');\n $(this).toggleClass('active');\n});\n```\n\nApply this change: Add js funtion that maps tab-content to sidebar-menu." }, { "role": "assistant", ...
javascript
edit
0
1
mit
fd1b91a2cc219d27318d7b72a213a41c55fd1859
DataViva/dataviva-site,DataViva/dataviva-site,DataViva/dataviva-site,DataViva/dataviva-site
dataviva/static/js/modules/help.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n(function () {\n /*global jsbin, $, $body*/\n 'use strict';\n\n if (jsbin.settings.gui === undefined) {\n jsbin.settings.gui = {};\n }\n if (jsbin.settings.gui.toppanel === undefined) {\n jsbin.settings.gui.toppanel = true;\n...
javascript
edit
0
3
mit
6055bc4109f4ccc582095f912bf68fb796e6d63e
IvanSanchez/jsbin,eggheadio/jsbin,yohanboniface/jsbin,jsbin/jsbin,vipulnsward/jsbin,KenPowers/jsbin,yize/jsbin,thsunmy/jsbin,jamez14/jsbin,martinvd/jsbin,ilyes14/jsbin,svacha/jsbin,remotty/jsbin,yize/jsbin,roman01la/jsbin,kirjs/jsbin,IvanSanchez/jsbin,yohanboniface/jsbin,mlucool/jsbin,kirjs/jsbin,filamentgroup/jsbin,mi...
public/js/chrome/toppanel.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */\n\nimport React, { PropTypes } from 'react';\n\n\n\nclass DigitalLines {\n\n static propTypes = {\n };\n\n canvasRender() {\n\n };\n\n componentDidMount() {\n...
javascript
edit
0
3
mit
5a98f2a4874d47da9e05a56eae3018e911fc30f1
jung-digital/jd-demos,jung-digital/jd-demos
src/components/demos/DigitalLines/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\ndefine([\n \"Underscore\",\n \"yapp/yapp\",\n \"vendors/socket.io\"\n], function(_, yapp, io) {\n var logging = yapp.Logger.addNamespace(\"updates\");\n var Updates = new (yapp.Class.extend({\n /* Constructor */\n ...
javascript
edit
0
1
apache-2.0
0a4fba655f4030f0b4b5d244416510086c0ae419
mafintosh/tv.js,thefkboss/tv.js,SamyPesse/tv.js,thefkboss/tv.js,mafintosh/tv.js,SamyPesse/tv.js,thefkboss/tv.js
public/main/utils/updates.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\ndefine(function (require) {\n\n var positiveBorderColorQuery = ['itemStyle', 'normal', 'borderColor'];\n var negativeBorderColorQuery = ['itemStyle', 'normal', 'borderColor0'];\n var positiveColorQuery = ['itemStyle', 'normal',...
javascript
edit
0
4
apache-2.0
15607d784bd426fa22789beaf42b6625e0c606c0
hexj/echarts,ecomfe/echarts,ecomfe/echarts,apache/incubator-echarts,chenfwind/echarts,hexj/echarts,100star/echarts,chenfwind/echarts,hexj/echarts,starlkj/echarts,starlkj/echarts,starlkj/echarts,apache/incubator-echarts,100star/echarts
src/chart/candlestick/candlestickVisual.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst assert = require('assert');\nconst parse = require('../app/shared/database/parse');\n\ndescribe('database', () => {\n describe('parse.js', () => {\n const testQuery = 'Learn something! @3+2w !';\n it('should return correct ...
javascript
edit
0
1
mit
c951d161be8d2faf6e497d80e69998aa49a445bd
mkermani144/wanna,mkermani144/wanna
desktop/tests/database.spec.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar hoverZoomPlugins = hoverZoomPlugins || [];\nhoverZoomPlugins.push({\n name:'Know Your Meme',\n version:'0.1',\n prepareImgLinks:function (callback) {\n var res = [];\n hoverZoom.urlReplace(res,\n '...
javascript
edit
0
1
mit
b1f3c2110910665038b5d4738d225009b21530f1
extesy/hoverzoom,extesy/hoverzoom
plugins/knowyourmeme.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict'\nconst fg = require('d3-fg')\nconst render = require('nanohtml')\nconst morphdom = require('morphdom')\nconst debounce = require('debounce')\nconst createActions = require('./actions')\nconst createState = require('./state'...
javascript
edit
0
3
mit
4177d6050ef41c70dc25a34ee32e43984e77f461
davidmarkclements/0x
visualizer/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport Ember from 'ember';\n\nEmber.deprecate(\"ember-getowner-polyfill is now a true polyfill. Use Ember.getOwner directly instead of importing from ember-getowner-polyfill\", false, {\n id: \"ember-getowner-polyfill.import\"\n});\n\n...
javascript
edit
0
0
mit
e9bd0c16bda4221a420a9206c239e06b44a5911f
rwjblue/ember-getowner-polyfill,rwjblue/ember-getowner-polyfill
addon/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar document = require('global/document');\nvar value = require('observ');\nvar struct = require('observ-struct');\nvar Delegator = require('dom-delegator');\nvar mainLoop = require('main-loop');\nvar h = require('virtual-hyperscript');...
javascript
edit
0
2
mit
7b52bf19eda8d52be5ae8db7fb1d1544912e1794
KenanY/course-search,KenanY/course-search
client/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React from 'react';\nimport classnames from 'classnames';\n\nconst Media = (props) => {\n const children = props.children;\n\n return (\n <div className={classnames('ui-media')}>\n {children}\n </div>\n );\n};\n\nMe...
javascript
edit
0
1
mit
5ddc15870172cabe4a362fa338dd804f6b1264e2
wundery/wundery-ui-react,wundery/wundery-ui-react
src/components/Media/Media.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar path = require('path');\nvar _ = require('underscore')._;\n\nmodule.exports = function(app, settings) {\n var providers = {};\n for (var p in settings.providers) {\n // TODO :express better\n providers[p] = requi...
javascript
edit
0
2
bsd-3-clause
2f6ec5250b8fde51a4ff6e58b2c23f39d07c2d6c
nyimbi/tilemill,Zhao-Qi/tilemill,fxtentacle/tilemill,tizzybec/tilemill,MappingKat/tilemill,tilemill-project/tilemill,florianf/tileoven,Zhao-Qi/tilemill,paulovieira/tilemill-clima,tizzybec/tilemill,paulovieira/tilemill-clima,tilemill-project/tilemill,makinacorpus/tilemill,Zhao-Qi/tilemill,isaacs/tilemill,MappingKat/tile...
providers/providers.js
rejected_duplicate
Near-duplicate of sample 81377
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nconst config = require('config');\nconst logger = require('../modules').logger;\nconst rollbarHelper = require('../modules').rollbarHelper;\n\nconst invalidator = require('./invalidator');\nconst opendata = require('./o...
javascript
edit
0
1
mit
85367a62999ef6be0e34556cd71d54871c98dc19
carparker/carparker-server
worker/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport { Component } from './component';\nimport { createElement } from './create-element';\n\n// having a \"custom class\" here saves 50bytes gzipped\nexport function s(props) {}\ns.prototype = new Component();\ns.prototype._childDidSu...
javascript
edit
0
4
mit
a37853c97ad9850e6bae0adf254399b3d6d29424
developit/preact,developit/preact
src/suspense.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nfunction Promise_all(promises) {\n return new Promise((resolve, reject) => {\n let ctr = promises.length;\n let resArray = [];\n if (ctr === 0) resolve(resArray);\n for (let idx = 0; idx < promises.length;...
javascript
edit
0
4
mit
ed3c72146dad8baa293755c8732f3ad0ef9581f2
bewuethr/ctci
eloquent_js/chapter11/ch11_ex02.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport { createSelector } from 'reselect';\n// import omit from 'lodash/omit';\n// import qs from 'query-string';\n\nconst getSections = routeData => routeData.route.sections || null;\n// const getSearch = routeData => routeData.locatio...
javascript
edit
0
2
mit
bf79820c7a37188c9e66c912eb9a66ad45ecc7ad
Vizzuality/climate-watch,Vizzuality/climate-watch,Vizzuality/climate-watch,Vizzuality/climate-watch
app/javascript/app/pages/sectors-agriculture/sectors-agricuture-selectors.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar fs = require('fs');\nvar path = require('path');\nvar md = require('cli-md');\n\nmodule.exports = function (filepath) {\n return md(fs.readFileSync(filepath, 'utf8'))\n .replace(/&#39;/g, \"'\")\n .replace(/&quot;/g, '\"')\n ...
javascript
edit
0
1
mit
ea768085c12ef4ea8551510bd3ab606a61115967
soujiro27/javascripting,ubergrafik/javascripting,SomeoneWeird/javascripting,jaredhensley/javascripting,d9magai/javascripting,montogeek/javascripting,liyuqi/javascripting,nodeschool-no/javascripting,braday/javascripting,michaelgrilo/javascripting,RichardLitt/javascripting,barberboy/javascripting,agrimm/javascripting,ymo...
get-file.js
rejected_duplicate
Near-duplicate of sample 71516
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n$(function() {\n\t\n\t$(\"form :button\").each(function(){\n\t\t\n\t\tvar button = $(this);\n\t\t\n\t\tif ($(button).attr('id') == 'cancel') {\n\t\t\t$(button).click(function(e){\n\t\t\t\te.preventDefault();\n\t\t\t\thistory.back();\n\t...
javascript
edit
0
8
mit
334795d1f6a881f9377bb9c436641a422431153f
chrisipa/cloud-portal,chrisipa/cloud-portal,chrisipa/cloud-portal
modules/cloud-portal-server/src/main/resources/public/static/dist/js/portal.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar socket = io.connect('/'); \nvar waitMilliSec = 1000;\nvar oldJavaCode = '';\nvar oldClassName = '';\n\n\nsocket.on('byte_code', function(data) {\n\t$('#output_bc').val(data.code);\n});\n\nsocket.on('wrong', function(data) {\n\t$('#o...
javascript
edit
0
3
mit
c4bb41471441da921da9c2dc9515e662619fef5b
Java2ByteCode/InstantBytecode,Java2ByteCode/InstantBytecode
public/javascripts/checker.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar Log = require(\"log4js\");\nvar Utils = require(\"./Utils\");\n\nLog.configure({\n \"replaceConsole\": true,\n \"appenders\": process.env.DEBUG ? [{\"type\": \"console\"}] :\n [\n {\n \"type\":...
javascript
edit
0
0
mit
d6da2ba83bb7dbcdaa73f4df45927a50fe8f8e15
y-a-r-g/color-themes,y-a-r-g/color-themes
backend/Log.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nexport function SET_CLASS_LESSONS(state, lessons) {\n state.pageState.lessons = lessons;\n}\n\nexport function SET_CURRENT_LESSON(state, lesson) {\n state.pageState.currentLesson = lesson;\n}\n\nexport function SET_LEARNER_GROUPS(stat...
javascript
edit
0
1
mit
4690efb9543e0fffc11c5330dc93c75482c3e9b5
DXCanas/kolibri,christianmemije/kolibri,benjaoming/kolibri,christianmemije/kolibri,DXCanas/kolibri,lyw07/kolibri,mrpau/kolibri,mrpau/kolibri,jonboiser/kolibri,indirectlylit/kolibri,jonboiser/kolibri,indirectlylit/kolibri,benjaoming/kolibri,lyw07/kolibri,DXCanas/kolibri,benjaoming/kolibri,christianmemije/kolibri,indirec...
kolibri/plugins/coach/assets/src/state/mutations/lessonsMutations.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports = function($scope, $state, $location, $http, GlobalService,\n DocumentService, DocumentApiService, MathJaxService, QueryParser) {\n $scope.doSearch = function(){\n \n ...
javascript
edit
null
null
mit
19b9def70f2bb1e827ba428527ebab8910ac46e2
jxxcarlson/ns_angular,jxxcarlson/ns_angular
app/documents/controllers/SearchController.js
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar gulp = require('gulp');\nvar nodemon = require('gulp-nodemon');\n\ngulp.task('mock-server', function() {\n nodemon({\n script: 'server.js'\n , ext: 'js json'\n , env: { 'NODE_ENV': 'development' }\n })\n})...
javascript
edit
0
1
mit
d3d7932eb1c067b2a403e0260c87192940565964
isuru88/lazymine-mock-server
gulpfile.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar elixir = require('laravel-elixir');\n\n/*\n |--------------------------------------------------------------------------\n | Elixir Asset Management\n |--------------------------------------------------------------------------\n |\n ...
javascript
edit
0
1
mit
9765f97a3c71483ef3793b7990ec73b6909edc9c
nestor-qa/nestor,kinow/nestor,kinow/nestor,nestor-qa/nestor,nestor-qa/nestor,nestor-qa/nestor,kinow/nestor,kinow/nestor
gulpfile.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nvar gulp = require('gulp')\n , jshint = require('gulp-jshint')\n , nodemon = require('gulp-nodemon')\n , paths\n ;\n\npaths = {\n projectScripts: ['./bin/www', '**/*.js', '!node_modules/**', '!public/**']\n};\n\ngu...
javascript
edit
0
1
mit
2e8ab65088ba8acd7ddda01e4cfc5ba0f0fcdc1a
Hilzu/SecureChat
gulpfile.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar gulp = require('gulp');\nvar uglify = require('gulp-uglify');\n\ngulp.task('default', function() {\n gulp.src('lib/fs.js')\n \t.pipe(uglify())\n \t.pipe(gulp.dest('build'));\n});\n```\n\nApply this change: 1.2.2: Update default t...
javascript
edit
0
1
mit
e1fb651837436053b24b9198a5d62ba869090297
wangpin34/fs-h5,wangpin34/fs-h5
gulpfile.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport addons from '@storybook/addons';\nimport { withNotes } from '..';\n\njest.mock('@storybook/addons');\n\ndescribe('Storybook Addon Notes', () => {\n it('should inject info', () => {\n const channel = { emit: jest.fn() };\n ...
javascript
edit
0
1
mit
83cc95b851a39cd3952fa105272a750e0a147dee
rhalff/storybook,storybooks/react-storybook,storybooks/storybook,rhalff/storybook,storybooks/react-storybook,storybooks/storybook,storybooks/storybook,rhalff/storybook,kadirahq/react-storybook,storybooks/storybook,storybooks/storybook,kadirahq/react-storybook,rhalff/storybook,storybooks/storybook,storybooks/react-story...
addons/notes/src/__tests__/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport { treeGrow as growChance } from '../../../game-data/chances';\nimport { tryChance } from '../../../utils';\nimport { fastMap } from '../../../world';\nimport objectPool from '../../../object-pool';\n\nimport Phaser from 'phaser';...
javascript
edit
0
6
mit
721faf4dd71bef6ee170e3b029dc52ac8f9055a1
ThomasMays/incremental-forest,ThomasMays/incremental-forest
src/sprites/object/PineCone/place.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\ndescribe('Filter: ISODateToMiddleEndian', function () {\n\n // load the filter's module\n beforeEach(module('ocwUiApp'));\n\n // initialize a new instance of the filter before each test\n var ISODateToMiddleEndian;\...
javascript
edit
0
1
apache-2.0
ff58f96f6579d583f8f44db8e9c91260cf2ae5a7
kwhitehall/climate,pwcberry/climate,MJJoyce/climate,jarifibrahim/climate,riverma/climate,lewismc/climate,apache/climate,apache/climate,huikyole/climate,MJJoyce/climate,agoodm/climate,agoodm/climate,jarifibrahim/climate,MBoustani/climate,lewismc/climate,Omkar20895/climate,MJJoyce/climate,agoodm/climate,lewismc/climate,j...
ocw-ui/frontend-new/test/spec/filters/isodatetomiddleendian.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar SecretsUtil = {\n /**\n * This function checks if the environment value is a reference to a secret\n * and if yes, it cross-references the secret with the `secrets` property\n * in `allFields` and it returns the secret refere...
javascript
edit
0
7
apache-2.0
1d42cae605889f5bab9f7b773561f9a493c32a6a
mesosphere/marathon-ui,mesosphere/marathon-ui
src/js/helpers/SecretsUtil.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nfunction TouchInput(inputController) {\n this.inputController = inputController;\n}\n\nTouchInput.prototype.listen = function() {\n document.addEventListener('touchstart', this.startTouch.bind(this));\n document.addEventListene...
javascript
edit
0
6
mit
7b8c50c247a6ea4b382fb59f83c0c2a7473b9fbc
mnito/factors-game,mnito/factors-game
src/Input/TouchInput.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports = {\n \"extends\": \"justinlocsei/configurations/es6\",\n \"ecmaFeatures\": {\n \"jsx\": true\n },\n \"env\": {\n \"browser\": true\n },\n \"plugins\": [\n \"react\"\n ],\n \"rules\": {\n \"jsx-quotes\...
javascript
edit
0
0
mit
1aa3c6485e5c6d04480332e64ee848930fcbba70
justinlocsei/eslint-config-chiton
configurations/react.js
rejected_duplicate
Near-duplicate of sample 92046
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React, {PropTypes} from 'react'\nimport ToggleButton from 'part:@sanity/components/toggles/button'\n\nimport LinkIcon from 'part:@sanity/base/sanity-logo-icon'\nimport styles from './styles/LinkButton.css'\n\nexport default class...
javascript
edit
0
1
mit
9bec9dd156f97a1d00bf57a5badedebece295844
sanity-io/sanity,sanity-io/sanity,sanity-io/sanity,sanity-io/sanity
packages/@sanity/form-builder/src/inputs/BlockEditor-slate/toolbar/LinkButton.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar config = module.exports = exports = {}\n\nconfig.items =\n\t{ tmpDir:\n\t\t{ def: 'tmp' }\n\t, outDir:\n\t\t{ def: 'out' }\n\t, originalsPath:\n\t\t{ def: 'originals' }\n\t, maxCols:\n\t\t{ def: 10 }\n\t, maxTries:\n\t\t{ def: 6 }\n...
javascript
edit
0
0
isc
1941cfca63e0874c8bd71a24f27a80a66532a9f1
vigour-io/shutter,vigour-io/vigour-img
config.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nvar glob = require('glob'),\n _ = require('lodash'),\n async = require('async'),\n fs = require('fs'),\n lex = require('./lex');\n\nfunction isFile(path) {\n var stat = fs.statSync(path);\n return stat...
javascript
edit
0
3
mit
4211ee0bc2e124f5807fc6ad538896e60d6cef7d
onepercentclub/extract-gettext
lib/scan.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n * General functions\n */\nvar general = {};\n\n//General 404 error\ngeneral.send404 = function(res){\n\tres.status(404);\n\tres.jsonp({error: 'Not found'});\n\tres.end();\n};\n\n//General 500 error\ngeneral.send500 = function(res,...
javascript
edit
0
1
mit
be15a5d1d5f7b694728017494d217972d6481fd5
NextCenturyCorporation/healthcare-demo,NextCenturyCorporation/healthcare-demo,NextCenturyCorporation/healthcare-demo
services/general_response.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\ndefine([\n 'app'\n], function(app) {\n 'use strict';\n\n return {\n parent: 'admin_layout',\n url: '',\n templateUrl: 'partials/admin/home.html',\n controller: function($scope, $http, flash) {\n $scope.loading = true...
javascript
edit
0
2
apache-2.0
26742b0534c27cb9c615c182a867afa191d06bc2
dropbox/changes,bowlofstew/changes,wfxiang08/changes,wfxiang08/changes,bowlofstew/changes,wfxiang08/changes,wfxiang08/changes,dropbox/changes,bowlofstew/changes,bowlofstew/changes,dropbox/changes,dropbox/changes
static/js/states/adminHome.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\nconst app = require('./app');\nconst db = require('../db');\nconst PORT = process.env.PORT || 3000;\nconst path = require('path');\n\napp.listen(PORT, () => {\n console.log('Example app listening on port 3000!');\n});\n\...
javascript
edit
0
1
mit
30728328443fd659a605850d27cb0925a941ac78
FuriousFridges/FuriousFridges,FuriousFridges/FuriousFridges
server/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n#!/usr/bin/env node\n\nvar colors = require('colors'),\n\texec = require('child_process').exec,\n\tpkg = require('../package.json'),\n\tpreamble = '/*!\\n' +\n\t\t' * RadioRadio ' + pkg.version + '\\n' +\n\t\t' *\\n' +\n\t\t' * ' + pk...
javascript
edit
0
0
mit
ddb7437159ac6f01d84f59864b6e7708f0371df5
jgarber623/RadioRadio,jgarber623/RadioRadio
scripts/build.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// Todo Implement and export schema using mongoose\n// Reference angular sprint\nvar mongoose = require('mongoose');\n//var User = require('../users/UserModel.js');\n\nvar Schema = mongoose.Schema;\n\nvar PastTripSchema = new Schema({\n...
javascript
edit
0
0
mit
23a9512ffcad024bd7e51db5f7677b2688dcc2cd
OrgulousArtichoke/vacaypay,OrgulousArtichoke/vacaypay
server/trips/pastTripModel.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n\"use strict\";\n\nvar TravisFilter = function(name) {\n console.dir(process.env)\n name = name || \"ON_TRAVIS\";\n // Get environmental variables that are known\n this.filter = function(test) {\n if(test.metadata == null) return...
javascript
edit
0
6
apache-2.0
1a09bb1a60eaace841526c22b3d08d295082227a
mongodb/node-mongodb-native,mongodb/node-mongodb-native,capaj/node-mongodb-native,zhangyaoxing/node-mongodb-native,tuyndv/node-mongodb-native,thenaughtychild/node-mongodb-native,jqk6/node-mongodb-native,sarathms/node-mongodb-native,agclever/node-mongodb-native,amit777/node-mongodb-native,flyingfisher/node-mongodb-nativ...
test/filters/travis_filter.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/* @flow */\nimport type { State } from '../../common/types';\nimport React from 'react';\nimport AddrListByRoom from './AddressListByRoom';\nimport AddrList from './AddressList';\nimport { connect } from 'react-redux';\nimport linksMes...
javascript
edit
null
null
mit
39ea495532f1d113a0ca6e98cd81848943e1695a
cjk/smart-home-app
src/browser/home/HomePage.js
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst Signal = require('signals')\n\nlet MaterialID = 0\n\nfunction Material (opts) {\n this.type = 'Material'\n this.id = 'Material_' + MaterialID++\n this.changed = new Signal()\n\n this._uniforms = {}\n\n const ctx = opts.ctx\n\...
javascript
edit
0
1
mit
55de12e099a43807e473cb5901439796804a3186
pex-gl/pex-renderer,pex-gl/pex-renderer
material.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\ndescribe('Operations', function () {\n var isNode = typeof module !== 'undefined' && module.exports;\n var Parallel = isNode ? require('../../lib/parallel.js') : self.Parallel;\n\n it('should require(), map() and reduce correc...
javascript
edit
0
3
mit
b57a4d2ed50d373248041ec278e20e7bab8d0643
1aurabrown/parallel.js,parallel-js/parallel.js,adambom/parallel.js,SRobertZ/parallel.js,kidaa/parallel.js,1aurabrown/parallel.js,blackrabbit99/doubleW,blackrabbit99/parallel.js,colemakdvorak/parallel.js,blackrabbit99/parallel.js,kidaa/parallel.js,SRobertZ/parallel.js,parallel-js/parallel.js,colemakdvorak/parallel.js,bl...
test/specs/operations.spec.js
rejected_duplicate
Near-duplicate of sample 73387
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar express = require('express');\n\nmodule.exports = function setup(options, imports, register) {\n var backend = imports.backend.app,\n frontend = imports.frontend.app;\n\n var plugin = { \n app: {},\n do...
javascript
edit
0
1
mit
a5675bcb304623bcc28307751fd538f253c02fae
bauhausjs/bauhausjs,bauhausjs/bauhausjs,bauhausjs/bauhausjs,bauhausjs/bauhausjs
document/app.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n(function() {\n var clientid;\n\n jive.tile.onOpen(function(config, options, other, container ) {\n osapi.jive.corev3.systemExtProps.get({}).execute(function (resp) {\n if( resp && resp.content ) {\n ...
javascript
edit
0
6
apache-2.0
ddfc71983fb71ccb81f5196f97f5bb040637cdf0
jivesoftware/jive-sdk,jivesoftware/jive-sdk,jivesoftware/jive-sdk
jive-sdk-service/generator/examples/todo/tiles/todo/public/javascripts/main.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst express = require('express');\n\nconst app = express();\n\napp.use(express.static('dist'));\n\napp.listen(8080, function() {\n console.log('App started on port 8080!');\n});\n```\n\nApply this change: Use port 3000 for testing"...
javascript
edit
0
1
mit
e1e7cf8bdbaf961b665f45254a190914801d6bac
codergvbrownsville/code-rgv-pwa,codergvbrownsville/code-rgv-pwa,codergvbrownsville/code-rgv-pwa,codergvbrownsville/code-rgv-pwa
server/server.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n(function() {\n 'use strict';\n var canvas = document.getElementById('game');\n var width = window.innerWidth;\n var height = window.innerHeight;\n canvas.width = width;\n canvas.height = height;\n var ctx = canvas.getContext('2d...
javascript
edit
0
1
mit
f63b1cd62f823d89e62d559ef5e86a70f504126c
msanatan/pong,msanatan/pong,msanatan/pong
javascripts/pong.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n * Copyright (c) ActiveState 2013 - ALL RIGHTS RESERVED.\n */\n\ndefine([\n './collection'],\n function (Collection) {\n\n var apps = function (api) {\n this.api = api;\n this.collection = 'apps';...
javascript
edit
0
2
mit
a8376d565326e347fcd6ef955d8de19483e7261d
ActiveState/cloud-foundry-client-js,18F/cloud-foundry-client-js,18F/cloud-foundry-client-js,hpcloud/cloud-foundry-client-js,hpcloud/cloud-foundry-client-js,ActiveState/cloud-foundry-client-js,morikat/cloud-foundry-client-js,morikat/cloud-foundry-client-js
lib/apps.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React, { Component } from 'react';\nimport Item from './Item';\nimport sortByScore from './sorter';\n\nvar TopItems = React.createClass({\n sortByScore: function() {\n this.setState({items: sortByScore(this.props.items)});\n ...
javascript
edit
0
1
mit
3f84b85e5524743a35237116b3e8ba9fdf3d1e2d
danbartlett/hn_minimal,danbartlett/hn_minimal
src/TopItems.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n\"use babel\";\n\"use strict\";\n\nimport fs from \"fs\";\nimport path from \"path\";\nimport {CompositeDisposable} from \"atom\";\nimport {name as packageName} from \"../package.json\";\n\nexport default {\n\t\n\tsubscriptions: null,\n...
javascript
edit
0
2
mit
e37507356b99586b31f888ba8405b1fc320f8400
gt-rios/firefox-syntax
lib/main.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use babel';\n\nlet lineEndingTile = null;\n\nexport function activate() {\n atom.workspace.observeActivePaneItem((item) => {\n let ending = getLineEnding(item);\n if (lineEndingTile) lineEndingTile.firstChild.textContent = endin...
javascript
edit
0
9
mit
5c8bfc9df05fe7d13a4435085df1ba52f27bb376
clintwood/line-ending-selector,download13/line-ending-selector,atom/line-ending-selector,bolinfest/line-ending-selector
lib/main.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport PlayerController from './PlayerController'\nimport { connect } from 'react-redux'\nimport { ensureState } from 'redux-optimistic-ui'\nimport getOrderedQueue from 'routes/Queue/selectors/getOrderedQueue'\nimport {\n playerLeave,\...
javascript
edit
0
1
isc
7ced1f20afd2b52ac687bfae21ca33537b635ae6
bhj/karaoke-forever,bhj/karaoke-forever
src/routes/Player/components/PlayerController/PlayerControllerContainer.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport UserStore from 'new-dashboard/store/user';\nimport { testAction } from '../helpers';\n\njest.mock('carto-node');\n\nconst mutations = UserStore.mutations;\nconst actions = UserStore.actions;\n\ndescribe('UserStore', () => {\n de...
javascript
edit
0
1
bsd-3-clause
b6339fe3e288d639efb0236bf029b6a94602f706
CartoDB/cartodb,CartoDB/cartodb,CartoDB/cartodb,CartoDB/cartodb,CartoDB/cartodb
lib/assets/test/spec/new-dashboard/unit/specs/store/user/user.spec.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nexports = module.exports = require('util');\n\nexports.formatDate = function(date){\n if (typeof date === 'string') return date;\n date = new Date(date);\n\n var month = date.getMonth() + 1,\n day = date.getDate(),\n str = date...
javascript
edit
0
4
mit
373dfb4090d23fceb878278a244b64ecde31efb0
tommy351/node-flurry-api
lib/util.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React from 'react';\nimport {FormattedMessage} from \"react-intl\";\nimport queryString from \"query-string\";\n\nconst OAuthLogin = ({providers, onLogin}) => {\n const location = window.location;\n const targetUrl = `${locatio...
javascript
edit
0
2
mit
b3e10b4bc710a4892d430efeb2f41ef6900fb72c
alephdata/aleph,pudo/aleph,pudo/aleph,alephdata/aleph,alephdata/aleph,alephdata/aleph,alephdata/aleph,pudo/aleph
src/components/OAuthLogin.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nExt.define('Jarvus.aggregrid.Aggregrid', {\n extend: 'Ext.Component',\n\n html: 'Hello World'\n});\n```\n\nApply this change: Add columnsStore and rowsStore configs" }, { "role": "assistant", "content": "Ext.define('Ja...
javascript
edit
0
1
mit
84bad5d57dff7d5591d24bcc5caf6698e17e40b6
JarvusInnovations/jarvus-aggregrid,JarvusInnovations/jarvus-aggregrid,JarvusInnovations/jarvus-aggregrid
src/Aggregrid.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nexport const BLOCK_TYPE = {\n // This is used to represent a normal text block (paragraph).\n UNSTYLED: 'unstyled',\n HEADER_ONE: 'header-one',\n HEADER_TWO: 'header-two',\n HEADER_THREE: 'header-three',\n HEADER_FOUR: 'header-fou...
javascript
edit
0
0
isc
b8fdcaf0033348f8ec7203bc1150f66d188c6259
draft-js-utils/draft-js-utils
src/Constants.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport { takeLatest, call, put } from 'redux-saga/effects';\nimport axios from 'axios';\nimport {\n MODIFY_PAYMENTTYPE_REQUEST,\n MODIFY_PAYMENTTYPE_RECEIVE,\n MODIFY_PAYMENTTYPE_FAILURE,\n} from '../actiontypes';\n\nfunction d...
javascript
edit
0
2
apache-2.0
969fc9567cc94d0a7a7d79528f989f8179cb3053
steinarb/ukelonn,steinarb/ukelonn,steinarb/ukelonn
ukelonn.web.frontend/src/main/frontend/sagas/modifyPaymenttypeSaga.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport { StyleSheet } from 'react-native';\n\nconst paymentInfoStyle = StyleSheet.create({\n addCardButton: {\n padding: 20,\n },\n});\n\nmodule.exports = paymentInfoStyle;\n\n```\n\nApply this change: Reduce button padding in Paym...
javascript
edit
0
0
mit
c66a58685ab7fd556634f123c5d0389c52ac2a71
justarrived/p2p-client,justarrived/p2p-client,justarrived/p2p-client,justarrived/p2p-client
js/components/developer/payment-info-screen/paymentInfoScreenStyle.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/*\n * Copyright (c) 2014-2020 Bjoern Kimminich.\n * SPDX-License-Identifier: MIT\n */\n\nconst glob = require('glob')\nconst path = require('path')\nconst fs = require('fs')\nconst logger = require('../logger')\n\nconst restoreOverwrit...
javascript
edit
0
2
mit
e40b9eb6927bfeb12a1f2e477c009076bbb7bcab
bkimminich/juice-shop,bkimminich/juice-shop,bkimminich/juice-shop,bkimminich/juice-shop,bkimminich/juice-shop,bkimminich/juice-shop
lib/startup/restoreOverwrittenFilesWithOriginals.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport Event from './event';\n\nconst Day = ({ events }) => {\n\n let id = 0;\n let eventList = [];\n\n for (let e of events) {\n eventList.push(<Event title={e.title} start_time={e.start_time} content={e.content} key={id}/>);\n ...
javascript
edit
0
1
mit
22bcd6224d7424504b4cc7f24c04ff62443d0d46
dotKom/glowing-fortnight,dotKom/glowing-fortnight
components/calendar/day.js
rejected_duplicate
Near-duplicate of sample 76858
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n(function(){\n'use strict';\n\nangular\n .module('secondLead')\n \n .factory('UserModel',['Auth', 'Restangular', 'store', function(Auth, Restangular, store) {\n var baseUsers = Restangular.all('users');\n\n return {\n getA...
javascript
edit
0
1
mit
c37dcfb3438de31be8ad7fc7dd5847d840bd05d6
ac-adekunle/secondlead,ac-adekunle/secondlead,ac-adekunle/secondlead
app/assets/javascripts/angular/common/models/user-model.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst LDAP = require('ldap-client'),\n config = require('./config');\n\nlet protocol = config.get('ssl') ? 'ldaps://' : 'ldap://';\nlet host = config.get('ldap').hostname;\nlet port = config.get('ldap').port;\n\nmodule.exports = new LD...
javascript
edit
0
0
apache-2.0
822874ab19a96ebdab6f7232fdfdc3cfe411ab6d
mfinelli/cautious-ldap,mfinelli/cautious-ldap
config/ldap.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport {applyMiddleware, createStore} from 'redux';\nimport rootReducer from '../reducers';\nimport thunkMiddleware from 'redux-thunk';\n\nexport default function configureStore (initialState) {\n const create = typeof window !== 'unde...
javascript
edit
0
3
mit
d4444f33c32a56db9dc5b59d1174c79b5f04aafa
richardkall/react-starter,Thomas0c/react-starter,adamjking3/react-redux-apollo-starter
client/store/configureStore.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport Route from '@ember/routing/route';\nimport {inject as service} from '@ember/service';\n\nRoute.reopen({\n config: service(),\n billing: service(),\n router: service(),\n\n actions: {\n willTransition(transition...
javascript
edit
0
4
mit
d2a5d59cbb252c070599b25ee7329b52643ac7a3
TryGhost/Ghost-Admin,TryGhost/Ghost-Admin
app/utils/route.js
rejected_duplicate
Near-duplicate of sample 98132
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport express from 'express';\nimport {addAction} from '../lib/database';\nimport ModelStore from '../store/model-store';\n\nlet app = express();\n\napp.get('/', (req, res) => {\n let model = ModelStore.getModelById(req.query.id);\n...
javascript
edit
0
2
unlicense
4813e914f56cd9e5ad82f04c449c509fc8e04034
TheFourFifths/consus,TheFourFifths/consus
src/api/model.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/* eslint class-methods-use-this: [\"error\", { \"exceptMethods\": [\"scraper\"] }] */\n\nimport cheerio from 'cheerio';\n\nimport Bank from './Bank';\n\nconst banksNames = require('./banks_names.json');\n\nexport default class CBE exte...
javascript
edit
0
1
mit
d7c846fd0e3289c25f40046c36e5f3046e4b74ea
MMayla/egypt-banks-scraper
src/banks/CBE.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/*\n * Backpack - Skyscanner's Design System\n *\n * Copyright 2018 Skyscanner Ltd\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 ma...
javascript
edit
0
0
apache-2.0
b980b03d21e5941ffdf22491fd4fe786bf914094
Skyscanner/backpack,Skyscanner/backpack,Skyscanner/backpack
native/packages/react-native-bpk-component-button-link/src/styles.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport cuid from 'cuid';\r\nimport tinify from 'tinify';\r\nimport awsConfig from '@/config/tinify-aws';\r\nimport firebase from '@/config/firebase-admin';\r\n\r\ntinify.key = process.env.TINYPNG_API_KEY;\r\n\r\nexport default function ...
javascript
edit
0
2
mit
b453399b7913fec129a54b16f7e4e8e9f27f839d
tuelsch/bolg,tuelsch/bolg
src/server/api/put-drawing.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nvar stringToNum = require( '../utils/handle-string-input' );\n\nvar getSchoolValues = {\n\n var values = {};\n\n init: function( ) {\n values.programLength = this.getProgramLength();\n values.gradRate = this.get...
javascript
edit
null
null
cc0-1.0
6bb1a3ca881b6c7e0a20e5e049c211a79183ff6e
mistergone/college-costs,mistergone/college-costs,mistergone/college-costs,mistergone/college-costs
src/disclosures/js/dispatchers/get-school-values.js
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar fs = require('fs');\n\nmodule.exports = (function() {\n\n const PATH_COOKIES = '/tmp/cookies.txt';\n\n function setUp() {\n casper.options.viewportSize = {width: 1280, height: 768};\n casper.options.waitTimeout =...
javascript
edit
0
2
bsd-2-clause
e8bf6e4214d906771ae27f2ba843825cc61eb62b
GeotrekCE/Geotrek-admin,johan--/Geotrek,Anaethelion/Geotrek,makinacorpus/Geotrek,GeotrekCE/Geotrek-admin,johan--/Geotrek,mabhub/Geotrek,Anaethelion/Geotrek,makinacorpus/Geotrek,GeotrekCE/Geotrek-admin,makinacorpus/Geotrek,camillemonchicourt/Geotrek,GeotrekCE/Geotrek-admin,mabhub/Geotrek,johan--/Geotrek,Anaethelion/Geot...
geotrek/jstests/_nav-utils.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar _ = require('lodash'),\n moment = require('moment');\n\nfunction RelativeTimeExtension() {\n moment.locale('en', {\n relativeTime : {\n future: \"in %s\",\n past: \"%s ago\",\n s: fun...
javascript
edit
0
5
mit
16ebd7082ce2dff40de666cfeb06c939e7e92159
jadu/pulsar,jadu/pulsar,jadu/pulsar
src/Jadu/Pulsar/Twig.js/Extension/RelativeTimeExtension.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nElm.Native.D3 = {};\n\nimport \"JavaScript\"\n\nimport \"Render\"\n\nimport \"Color\"\nimport \"Selection\"\nimport \"Event\"\nimport \"Transition\"\nimport \"Voronoi\"\n\n```\n\nApply this change: Index will include scales during compi...
javascript
edit
0
0
bsd-3-clause
7fa1ebf356afb1c8b7e1f0bc013428f1d4377fb1
NigelThorne/elm-d3,seliopou/elm-d3,NigelThorne/elm-d3
src/Native/D3/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar elixir = require('laravel-elixir');\n\nelixir(function(mix) {\n\n mix.copy(\n 'node_modules/bootstrap/dist/fonts',\n 'public/fonts'\n );\n\n mix.copy(\n 'node_modules/font-awesome/fonts',\n 'publ...
javascript
edit
0
1
mit
74b8de8809ce6b2343657a996768b96320d7c242
syahzul/admin-theme
src/gulpfile.js
rejected_duplicate
Near-duplicate of sample 106068
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport MarkdownIt from 'markdown-it';\nimport gh from 'github-url-to-object';\n\nfunction toAbsolute(baseUrl, src) {\n try {\n return new URL(src, baseUrl).toString();\n } catch (e) {\n return src;\n }\n}\n\nconst GH_CDN = 'htt...
javascript
edit
0
4
mit
93b31e51d8a7e1017f7cd2d3603023ca4ecf1bc1
ExtPlug/ExtPlug
src/views/plugins/Markdown.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n\nimport 'babel-polyfill';\n\nimport { existsSync } from 'fs';\nimport { resolve } from 'path';\nimport merge from 'lodash.merge';\nimport TipsBot from './Tipsbot';\n\nconst tokenPath = resolve(__dirname, '..', '..', 'token.js');\nconst...
javascript
edit
0
8
mit
327a3e9edc2d44fc6e5dc6dfbab2f783efac471e
simon-johansson/tipsbot
src/bot/index.js
rejected_duplicate
Near-duplicate of sample 108608
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport Ember from 'ember';\n\nvar getMutValue = Ember.__loader.require('ember-htmlbars/hooks/get-value')['default'];\n\nexport default function getMutableAttributes(attrs) {\n return Object.keys(attrs).reduce((acc, attr) => {\n acc[...
javascript
edit
0
3
mit
301d8c45b157cd4b673f40a70965a19af2c4275d
pswai/ember-cli-react,pswai/ember-cli-react
addon/utils/get-mutable-attributes.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nhorizon.metering = {\n init_create_usage_report_form: function() {\n horizon.datepickers.add('input[data-date-picker=\"True\"]');\n horizon.metering.add_change_event_to_period_dropdown();\n horizon.metering.show_or_hide_date_f...
javascript
edit
0
2
apache-2.0
f4581dd48a7ffdcdf1b0061951e837c69caf9420
bigswitch/horizon,idjaw/horizon,noironetworks/horizon,NeCTAR-RC/horizon,watonyweng/horizon,django-leonardo/horizon,bac/horizon,endorphinl/horizon,maestro-hybrid-cloud/horizon,django-leonardo/horizon,anthonydillon/horizon,luhanhan/horizon,sandvine/horizon,newrocknj/horizon,coreycb/horizon,openstack/horizon,davidcusatis/...
horizon/static/horizon/js/horizon.metering.js
rejected_duplicate
Near-duplicate of sample 83643
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar route = function(name, params = {}, absolute = true) {\n var domain = (namedRoutes[name].domain || baseUrl).replace(/\\/+$/,'') + '/',\n url = (absolute ? domain : '') + namedRoutes[name].uri\n\n return url.replace(\n ...
javascript
edit
0
3
mit
cab68ae620e449e49385a6125d233129d7d325cf
tightenco/ziggy,tightenco/ziggy
src/js/route.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n\n'use strict';\n\nvar glob = require('glob'),\n _ = require('underscore'),\n ParallelExec = require('./lib/ParallelExec'),\n BehatTask = require('./lib/BehatTask'),\n defaults = {\n src: './**/*.feature',\n bi...
javascript
edit
0
1
mit
9474e5cb8a16fd2beb8aa5c73f8189c0d78cfd25
linusnorton/grunt-parallel-behat
tasks/parallel-behat.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport test from \"ava\";\nimport {newUnibeautify, Beautifier} from \"unibeautify\";\nimport beautifier from \"../dist\";\ntest.beforeEach((t) => {\n t.context.unibeautify = newUnibeautify();\n});\ntest(\"should successfully install be...
javascript
edit
0
1
mit
c76fda7d6ed6ca449330a9d2b084732a9ffd295e
Unibeautify/beautifier-prettydiff,Unibeautify/beautifier-prettydiff
test/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar app\n\nvar project\nvar checkout\nvar host\nvar session\n\nwindow.addEventListener('load', () => {\n project = substance.getQueryStringParam('project');\n checkout = substance.getQueryStringParam('checkout');\n host = substance.g...
javascript
edit
0
4
apache-2.0
dff0317c05d48588f6e86b80ebc3b1bdc3b0b8f7
stencila/hub,stencila/hub,stencila/hub,stencila/hub,stencila/hub
editor/static/editor.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n(function () {\n\n 'use strict';\n\n describe('Unit: angular-reverse-url', function () {\n\n beforeEach(module('angular-reverse-url'));\n\n describe('reverseUrl filter', function () {\n \n });\n\n ...
javascript
edit
0
1
mit
00f048fe44190a4df276a6c9ddf2a80359ecd1a8
incuna/angular-reverse-url
test/reverse_urlSpec.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport DashboardWidgetComponent from 'appkit/components/dashboard-widget';\n\nvar GithubTeamNotices = DashboardWidgetComponent.extend({\n\n init: function() {\n this._super();\n this.set(\"contents\", []);\n },\n\n actions: {\n...
javascript
edit
0
2
mit
f7215986927ab3136b878bda5654d6fffc2d0fc1
substantial/substantial-dash-client
app/components/github-team-notices.js
rejected_duplicate
Near-duplicate of sample 106559
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport 'babel-polyfill';\n\nimport React from 'react';\nimport ReactDOM from 'react-dom';\n\nimport MainScreen from './react/MainScreen';\n\nimport config from './config';\nimport SculptureApp from './app';\n\nwindow.onload = () => {\n ...
javascript
edit
0
3
mit
3f5acc776fed90572762275e82bab94224c52bcf
anyWareSculpture/sculpture-client,anyWareSculpture/sculpture-client,anyWareSculpture/sculpture-client
app/src/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar extend = require('extend');\nvar path = require('path');\nvar cleanDist = require('./tasks/clean_dist');\nvar copy = require('./tasks/copy');\nvar sass = require('./tasks/sass');\nvar javascript = require('./tasks/javascript');\nvar...
javascript
edit
0
2
mit
217b9501b2b3e371e8c4c7fdbd534f9c1f6ca440
LandRegistry/land-registry-elements,LandRegistry/land-registry-elements,LandRegistry/land-registry-elements,LandRegistry/land-registry-elements,LandRegistry/land-registry-elements
build/build.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar should = require('chai').should(),\n expect = require('chai').expect,\n supertest = require('supertest'),\n config = require('config'),\n port = config.get('port'),\n testingUrl = 'http://localhost:' + port,\n api ...
javascript
edit
0
4
mit
b5c332043213eaf57bc56c00b24c51728a6f3041
tylergreen/react-redux-express-app,tylergreen/react-redux-express-app
test/server/app_test.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar express = require('express'),\n path = require('path'),\n cookieParser = require('cookie-parser'),\n bodyParser = require('body-parser');\n\nvar routes = require('./routes');\n\nvar app = express();\n\n// view engine setup\napp.s...
javascript
edit
0
1
mit
9393b0303d6b991ef27758ebadaed670a290d7fc
christiannwamba/generator-wean,christiannwamba/generator-wean
generators/app/templates/_app/_app.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nfunction convertJsToSass(obj, syntax) {\n const suffix = syntax === 'sass' ? '' : ';'\n const keys = Object.keys(obj)\n const lines = keys.map(key => `$${key}: ${formatValue(obj[key], syntax)}${suffix}`)\n return lines.join('\\n')\n...
javascript
edit
0
4
mit
72aa328e3dcd2118c03a45781d9674976fc447dc
epegzz/sass-vars-loader,epegzz/sass-vars-loader,epegzz/sass-vars-loader
src/utils/convertJsToSass.js
accepted
null
true