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\nrequire('./lib/seed')()\nconst { compose } = require('ramda')\nconst http = require('http')\nconst util = require('util')\n\nconst { logger, methods, mount, parseJson,\n redirect, routes, static } = require('..')\n\nconst {\n cr...
javascript
edit
0
1
mit
a62988bb0fd8f72faac3ed409eac105e06bf565f
articulate/paperplane
demo/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport { isArray } from 'utils/is';\nimport { getKeypath, normalise } from 'shared/keypaths';\nimport runloop from 'global/runloop';\nimport getNewIndices from 'shared/getNewIndices';\n\nvar arrayProto = Array.prototype;\n\nexport defau...
javascript
edit
0
3
mit
d31eb501d5ffaad8900e1a91e7c28b97a4c75f78
thomsbg/ractive,thomsbg/ractive,Rich-Harris/ractive,ISNIT0/ractive,dyx/ractive,heavyk/ractive,marcalexiei/ractive,dyx/ractive,aliprogrammer69/ractive,aliprogrammer69/ractive,JonDum/ractive,pingjiang/ractive,heavyk/ractive,Rich-Harris/ractive,squaredup/ractive,cgvarela/ractive,JonDum/ractive,JonDum/ractive,ractivejs/rac...
src/Ractive/prototype/shared/makeArrayMethod.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport SelectStateItemsCollection from '../collections/SelectStateItemsCollection';\nimport meta from '../meta';\n\nexport default Backbone.Model.extend({\n initialize() {\n const items = this.get('items');\n const item...
javascript
edit
0
2
mit
e49c8ea16ed78ed1246905f4139aac9674122b83
comindware/core-ui,comindware/core-ui,comindware/core-ui,comindware/core-ui
src/components/toolbar/models/SelectStateModel.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport AdaptiveStore from 'ember-simple-auth/session-stores/adaptive';\n\nexport default AdaptiveStore.extend({\n localStorageKey: 'ghost:session',\n cookieName: 'ghost:session'\n});\n\n```\n\nApply this change: Set localStorage k...
javascript
edit
0
0
mit
d57f1892947d079cfa59d36032dd79d9d889f55c
Elektro1776/javaPress,JulienBrks/Ghost,rizkyario/Ghost,vainglori0us/urban-fortnight,JohnONolan/Ghost,Xibao-Lv/Ghost,letsjustfixit/Ghost,janvt/Ghost,jomahoney/Ghost,NovaDevelopGroup/Academy,ballPointPenguin/Ghost,bosung90/Ghost,leonli/ghost,letsjustfixit/Ghost,Trendy/Ghost,sunh3/Ghost,barbastan/Ghost,PeterCxy/Ghost,epic...
core/client/app/session-stores/application.js
rejected_duplicate
Near-duplicate of sample 70799
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nconst readConfig = require('restore-server-config');\n\n// singleton\nlet config;\n\n/**\n * Loads the configuration and stores it in the config singleton.\n * @param {string} baseDir Directory which contains the folder...
javascript
edit
0
2
mit
83c643c19035a44d74b8aeccfe279dc2c7ce3367
restorecommerce/chassis-srv,restorecommerce/chassis-srv
lib/config/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/*\n * Copyright (c) 2014 Giovanni Capuano <<EMAIL>>\n * Released under the MIT License\n * http://opensource.org/licenses/MIT\n */\n \nvar config = {};\n\n// Images configuration\nconfig.images = {\n path: '../images',\n url : '/imag...
javascript
edit
0
0
mit
8e8f489721dead1c9cecc9cc4934865633bea258
RoxasShadow/Vasilij
config.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/* @flow */\n\nimport matches from 'matches-selector-ng';\n\nconst proto = global.Element && global.Element.prototype;\nconst vendor = proto && proto.closest;\n\nexport default function closest(element: HTMLElement, selector: string): ?...
javascript
edit
null
null
mit
e4da867c2422df1279ed0e13dcc3143af473aa6a
AgentME/closest-ng
src/index.js
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React from 'react';\nimport shallowRender from '../utils/shallowRender';\n\nimport Thumbnail from '../../src/components/Thumbnail';\njest.unmock('../../src/components/Thumbnail');\n\ndescribe('Thumbnail Component', () => {\n it(...
javascript
edit
0
1
mit
6bbed196b8b30180936e38e17bfddd3617752d31
LittleFurryBastards/webpack-react-redux,LittleFurryBastards/webpack-babel-react,LittleFurryBastards/webpack-babel-react,LittleFurryBastards/webpack-react-redux
__tests__/components/Thumbnail-test.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nfunction resetPage() {\n // Prevent default behaviour of all form submits throught Florence\n $(document).on('submit', 'form', function(e) {\n e.preventDefault();\n console.log('Form submit stopped on: ', e);\n })...
javascript
edit
0
1
mit
a381530061bac21c7526c29c5a9b2df3ec60fb79
ONSdigital/florence,ONSdigital/florence,ONSdigital/florence,ONSdigital/florence
src/main/web/florence/js/functions/_reset.js
rejected_duplicate
Near-duplicate of sample 98533
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React, { PureComponent } from 'react';\nimport Link from '../../components/link';\n\nclass LinkTest extends PureComponent {\n handleClick = () => {\n console.log('Clicked on a link');\n };\n\n render () {\n return (\n ...
javascript
edit
0
1
mit
685e7f437e4155c80814ca81f246a3571f85289f
teamleadercrm/teamleader-ui
spec/components/link.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport {\n fromPairs,\n isEmpty,\n head,\n last,\n max,\n mapObjIndexed,\n sortBy,\n toPairs,\n} from 'ramda'\n\nexport function calculateReserves (cumulative, reserveData, mineral, column, series) {\n const r...
javascript
edit
0
2
mit
d84468b7631cf9c08d1f9d185f59f36c79d16d68
peterhil/ninhursag,peterhil/ninhursag,peterhil/ninhursag,peterhil/ninhursag
app/static/js/lib/reserves.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React from 'react';\n\nimport SideLink from '../common/SideLink';\nimport { Link } from 'react-router';\n\nconst Sidebar = (props) => { // eslint-disable-line no-unused-vars\n return (\n <aside className=\"main-sidebar\">\n ...
javascript
edit
null
null
bsd-3-clause
f74006ac42b9a1d75b2887130fd0046b7d05f268
zhakkarn/Mail-for-Good,zhakkarn/Mail-for-Good,karuppiah7890/Mail-for-Good,karuppiah7890/Mail-for-Good,karuppiah7890/Mail-for-Good,zhakkarn/Mail-for-Good
client/components/admin-lte/Sidebar.js
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport { app } from \"electron\";\n\nconst isDevelopment = process.env.NODE_ENV !== \"production\";\nimport os from \"os\";\nimport path from \"path\";\n\nlet walletPath = \"\";\n\nif (process.type !== \"renderer\") {\n if (os.platform...
javascript
edit
0
0
mit
d23a0c33a1db143c2b821dd307096d466db3c7af
nlgcoin/guldencoin-official,nlgcoin/guldencoin-official,nlgcoin/guldencoin-official,nlgcoin/guldencoin-official,nlgcoin/guldencoin-official,nlgcoin/guldencoin-official
src/frontend/lite/src/walletPath.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nexport default ({ borders, colors, radii, space }) => {\n const defaultStyles = {\n mx: 'auto',\n bg: colors.white,\n width: ['100%', '85%'],\n mb: `${space[6]}px`,\n };\n\n const large = {\n ...defaultStyles,\n max...
javascript
edit
0
1
bsd-2-clause
722184133a934315f1bd261bd4a16c54d5607be7
tidepool-org/blip,tidepool-org/blip,tidepool-org/blip
app/themes/base/containers.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nfunction ticketTypes (args, callback) {\n var ticketTypes = [\n {name: 'ninja', title: 'Ninja', tooltip: 'Select Ninja to create tickets for attendees under 13 or over 13.'},\n {name: 'parent-guardian', title: 'P...
javascript
edit
0
1
mit
940f3dce1f1aa7c885e66705c42df93810a308dd
CoderDojo/cp-events-service,CoderDojo/cp-events-service
lib/ticket-types.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/* global malarkey:false, moment:false */\n\nimport { config } from './index.config';\nimport { routerConfig } from './index.route';\nimport { themeConfig } from './index.theme';\nimport { runBlock } from './index.run';\nimport { MainCo...
javascript
edit
0
0
mit
2984f42931b1030093f4329b51fc202063001eda
lucasdesenna/generic-search-flow,lucasdesenna/generic-search-flow
src/app/index.module.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport AsyncStorage from '@react-native-community/async-storage';\nimport { persistStore, persistReducer } from 'redux-persist';\nimport { applyMiddleware, createStore } from 'redux';\nimport thunk from 'redux-thunk';\nimport { createRe...
javascript
edit
0
1
mit
ad0ab578bfaa2f16ec7235f6943928859f65f01b
sussol/mobile,sussol/mobile,sussol/mobile,sussol/mobile
src/Store.js
rejected_duplicate
Near-duplicate of sample 71217
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n/* globals window, angular */\n\nangular.module('vlui', [\n 'LocalStorageModule',\n 'ui.select',\n ])\n .constant('_', window._)\n // datalib, vegalite, vega\n .constant('dl', window.dl)\n .constant('vl', window.vl...
javascript
edit
0
1
bsd-3-clause
775cc483bbae71e5fd9793e9986e0348d2474d06
vega/vega-lite-ui,uwdata/vega-lite-ui,uwdata/vega-lite-ui,vega/vega-lite-ui,vega/vega-lite-ui,uwdata/vega-lite-ui
src/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/** @jsx dom */\nimport dom from 'magic-virtual-element';\nimport formSerialize from 'form-serialize';\n\nexport const propTypes = {\n\tonSubmit: {\n\t\ttype: 'function'\n\t},\n\ttransform: {\n\t\ttype: 'function'\n\t}\n};\n\nexport fun...
javascript
edit
null
null
mit
2d4f8b734a297942ba4ddc875359a165a68184b4
kevva/deku-form
lib/form/index.js
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\n/**\n * Make a web element pannable.\n */\n\nmodule.exports = {\n\tinit: (elem, containerElem) => {\n\t\tvar container = containerElem ?\n\t\t\tcontainerElem : elem.parentElement;\n\n\t\telem.addEventListener('mousemove...
javascript
edit
0
5
mit
4ba2b6b0e60bbd7d101f61e228ec4191c608e288
selcher/panner,selcher/panner
src/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\ndefine(['backbone', 'backbone.marionette', 'communicator', 'leaflet', 'leaflet.draw'],\n function(Backbone, Marionette, Communicator, L, LeafletDraw) {\n\n return Marionette.Object.extend({\n\n map: null,\n mapController: ...
javascript
edit
0
2
mit
7235b162e7080fe287f83edd84b13a91a4aa0ab2
TotalActiveMedia/erfgeoviewer,TotalActiveMedia/erfgeoviewer,TotalActiveMedia/erfgeoviewer
app/scripts/plugins/draw/draw.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar initialized = false;\n\nPebble.addEventListener(\"ready\", function() {\n console.log(\"ready called!\");\n initialized = true;\n});\n\nPebble.addEventListener(\"showConfiguration\", function() {\n console.log(\"showing configura...
javascript
edit
0
2
mit
57125a8c83882e44b2108e7ecac9240dfd90c8cf
chasecolburn/line-maze,chasecolburn/line-maze,chasecolburn/line-maze
src/js/pebble-js-app.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// @flow\nimport { observable, computed } from 'mobx';\nimport BigNumber from 'bignumber.js';\nimport Store from './lib/Store';\nimport CachedRequest from './lib/CachedRequest';\n\nexport default class SettingsStore extends Store {\n\n ...
javascript
edit
null
null
apache-2.0
ef5a0a25ba4cd62820838f2cdae2db8cf50bd3cc
input-output-hk/daedalus,input-output-hk/daedalus,input-output-hk/daedalus,input-output-hk/daedalus,input-output-hk/daedalus,input-output-hk/daedalus
app/stores/SettingsStore.js
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Write javascript code for the following: Refactor open and close function to be the same thing, exported to be called from the command files." }, { "role": "assistant", "content": "//TODO: Implement helper functions for:\n// open/close, lock/unlock, and other player...
javascript
new_file
0
7
mit
3bfd0e3be920ac3e9b35ef9e906aeee47f34abe6
seanohue/ranviermud,shawncplus/ranviermud,seanohue/ranviermud
src/doors.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst defaults = require('./defaults.js');\n\nconst parseBoolean = boolean => boolean === 'true';\n\nconst parseIntervals = (intervals) => {\n if (Array.isArray(intervals)) {\n return intervals\n .filter(i => !isNaN(i))\n ...
javascript
edit
0
3
mit
675065d9085e8c4dc7ee8214a7eade47d5041f51
urbica/galton,urbica/galton
src/utils.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar store = null;\n\n$(function() {\n $(document).on(\"dragstart\", \"img\", false);\n\n $(\"#page-back\").click(function() {\n utils.page(utils.page() - 1);\n });\n $(\"#page-next\").click(function() {\n utils.page(utils.page...
javascript
edit
0
4
mit
2ef6613becea4df29aaf9aeff58d308686743084
bloopletech/mangos,bloopletech/videos,bloopletech/videos
app/js/app.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar ForgePlugins = ForgePlugins || {};\n\nForgePlugins.MediaEvents = function()\n{\n this._video = null;\n};\n\nForgePlugins.MediaEvents.prototype =\n{\n boot: function()\n {\n this._setupVideo();\n },\n\n reset: f...
javascript
edit
0
2
apache-2.0
2b2aae763a3dc985a6bde7345a0798a7e0347423
gopro/forgejs-samples,gopro/forgejs-samples
projects/immersive-and-narrative/plugins/MediaEvents/src/MediaEvents.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n * Module dependencies.\n */\nconst Score = require('./score');\nconst mongoose = require('mongoose');\nconst Schema = mongoose.Schema;\n\n// create a schema\nconst gameSchema = new Schema({\n started_at: Date,\n ended_at...
javascript
edit
null
null
mit
e0976a86e8ea6145337ac4962a861638ca6d0488
lostatseajoshua/Challenger
models/Game.js
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// let messanger = require('./mailer/transport')();\n\nmodule.exports = function(_db, messanger){\n\n if(!SlickSources[_db]) return {start: () => false};\n\n let _req = {db:SlickSources[_db]},\n\n Mails = Models.Mails(_req)...
javascript
edit
0
2
mit
b81ff5ecc2ccb982c136305f9df3fb3c0d72827c
steveesamson/slicks-bee,steveesamson/slicks-bee
libs/Mailer.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n//\n// Error handling\n//\nexport var onError\n\nexport function catchFunctionErrors(delegate) {\n return onError ? function () {\n try {\n return delegate.apply(this, arguments);\n } catch (e) {\n ...
javascript
edit
0
2
mit
5c4c8f1b0b3557cde47b7ec4a2c553a3acca7a36
knockout/tko.utils
src/error.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nfunction initTabs() {\n $(\".sub-nav.with-tabs dl a\").on(\"click\", function(e) {\n e.preventDefault();\n var anchor = e.target\n var dl = anchor.closest(\"dl\");\n var dd = anchor.closest(\"dd\");\n var idToDeactivate ...
javascript
edit
0
1
mit
1dbec704daf75b7e48f6508fad00951ce1b562d4
airslie/renalware-core,airslie/renalware-core,airslie/renalware-core,airslie/renalware-core
app/assets/javascripts/renalware/components/tabs.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nAV.SourceCollectionView = Backbone.View.extend({\n el: '#list_container',\n initialize: function() {\n this.listenTo(this.collection, 'all', this.render);\n console.log(\"Initialize View\");\n },\n events: {\n\...
javascript
edit
0
1
bsd-3-clause
0287791b0c12f2f952d2289fd6b99a9ab5cb6203
Swarthmore/juxtaphor,Swarthmore/juxtaphor
dev/_/components/js/sourceCollectionView.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// @flow\nimport React from 'react';\nimport { Image, View } from 'react-native';\n\nimport theme from '../../theme';\n\ntype Props = {\n size?: number,\n source: string,\n style?: Object,\n};\n\nexport default function Avatar({ size...
javascript
edit
null
null
mit
2750c4c4c08dc452e7dedea70f15e28e25e0f334
Thinkmill/react-conf-app,Thinkmill/react-conf-app,brentvatne/react-conf-app,Thinkmill/react-conf-app
app/components/Avatar/index.js
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```javascript\n(function () {\n\n\n module.exports = function (onCreate, onAppend) {\n var baseApp;\n\n return {\n /**\n * Array of properties to be copied from main app to sub app\n */\n ...
javascript
edit
0
4
mit
a4dcb20a78bf8e72f943ae24247a4330c68c56c9
steveukx/express-subapp
src/index.js
rejected_duplicate
Near-duplicate of sample 97088
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nwindow.onload = initializeData()\n\nfunction initializeData() {\n var div = document.getElementById(\"right_now\");\n var date = new Date();\n div.textContent = date.getFullYear() + '-' + date.getMonth() + '-' + date.getDate();\n va...
javascript
edit
0
1
mit
184c92f89191ebcbe9135ec6f04bce0cb97f55cf
mercysmart/cepatsembuh-iqbal,mercysmart/cepatsembuh-iqbal
js/getData.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports = function (config) {\n config.set({\n frameworks: ['jasmine', 'browserify'],\n preprocessors: {\n 'dist/lion.js': ['browserify', 'coverage'],\n 'test/**/*.js': ['browserify']\n },\n reporters: ['pr...
javascript
edit
0
2
mit
0d8e1060b97b42c3937267de07a4a9587ebdba1b
asilluron/lionjs
karma.conf.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar Laminate = {};\n\nLaminate.Badge = require('./components/badge.js');\nLaminate.Button = require('./components/button.js');\nLaminate.Card = require('./components/card.js');\nLaminate.Content = require('./components/content.js');\nLa...
javascript
edit
0
0
bsd-3-clause
7533d0283f658aaf5e93b017be5f96d021c1581e
joestump/laminate
src/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\neburp.registerMap(\"caveCombat\",{\n name: \"Cave Combat\",\n width: 9,\n height: 9,\n map: \"\\\nC'''''''C\\\nC'''''''C\\\nC'''''''C\\\nC'''''''C\\\nC'''''''C\\\nC'''''''C\\\nC'''''''C\\\nC'''''''C\\\n\"\n});\n```\n\nApply this...
javascript
edit
0
0
apache-2.0
ac903898478d239b507afa29a4bf10614cdc8976
justindujardin/pow2,justindujardin/pow2,justindujardin/pow2
data/maps/caveCombat.js
rejected_duplicate
Near-duplicate of sample 81581
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nPackage.describe({\n summary: 'GitHub OAuth flow',\n version: '1.2.0'\n});\n\nPackage.onUse(function (api) {\n api.use('oauth2', ['client', 'server']);\n api.use('oauth', ['client', 'server']);\n api.use('http', ['server']);\n api...
javascript
edit
0
1
mit
c5fd2290ef4ab86998fcb2ee887043920aa52e31
Hansoft/meteor,Hansoft/meteor,Hansoft/meteor,Hansoft/meteor,Hansoft/meteor,Hansoft/meteor,Hansoft/meteor
packages/github-oauth/package.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nif (!Function.prototype.bind) {\n Function.prototype.bind = function(oThis) {\n if (typeof this !== 'function') {\n // closest thing possible to the ECMAScript 5\n // internal IsCallable function\n throw new TypeError...
javascript
edit
0
4
mit
cf285d9197c1e6c65d0d99583d588b09b264110f
OneJSToolkit/onejs,OneJSToolkit/onejs
test-main.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst base = require('skatejs-build/karma.conf');\nmodule.exports = function (config) {\n base(config);\n\n // Remove all explicit IE definitions.\n config.browsers = config.browsers.filter(name => !/^internet_explorer/.test(name));\...
javascript
edit
0
1
mit
6468e300b31dc2b1bf87e35f11a77952825a9e75
skatejs/skatejs,skatejs/skatejs,chrisdarroch/skatejs,skatejs/skatejs,chrisdarroch/skatejs
karma.conf.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports = function(sequelize, DataTypes) {\n var User = sequelize.define('User', {\n username: {type: DataTypes.STRING, unique: true},\n password: DataTypes.STRING,\n email: DataTypes.STRING\n });\n ...
javascript
edit
0
1
mit
b7dd1f5adf6eeb229805dece644ac90f0625f4d7
kevinwang/questkey
models/user.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nexport default {\n 'opacity-label': {\n 'tooltip': 'Видимость слоя'\n },\n 'attributes-button': {\n 'tooltip': 'Показать панель атрибутов слоя'\n },\n 'bounds-button': {\n 'tooltip': 'Приблизить к границам слоя'\n },\n '...
javascript
edit
0
0
mit
fba33f2eb3ad86f45d733cf349c6b13a7ebb6ee5
Flexberry/ember-flexberry-gis,Flexberry/ember-flexberry-gis,Flexberry/ember-flexberry-gis
addon/locales/ru/components/flexberry-maplayer.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n(function(){\n var app = angular.module('color', []);\n\n app.config(['$httpProvider', function($httpProvider) {\n $httpProvider.defaults.useXDomain = true;\n delete $httpProvider.defaults.headers.common['X-Requested-With'];\n ...
javascript
edit
0
6
mit
a9d782a0953b13a18487883ae727b821813a98ef
cbachich/color_divider-fe
assets/javascripts/color.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React from 'react';\nimport { Link } from 'react-router';\nimport Tooltip from 'app/components/Tooltip';\nimport { FlexRow, FlexColumn, FlexItem } from 'app/components/FlexBox';\n\nconst Reg = ({ user }) => (\n <Tooltip content=...
javascript
edit
0
1
mit
ca3bfdc68e01285f1118496906799f4a4cef0eb1
webkom/lego-webapp,webkom/lego-webapp,webkom/lego-webapp
app/routes/events/components/RegisteredSummary.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n * Admin Bar Clicks component.\n *\n * Site Kit by Google, Copyright 2020 Google LLC\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 *...
javascript
edit
0
2
apache-2.0
096e398fbc89bf0dd3751ad012e6f944e4093949
google/site-kit-wp,google/site-kit-wp,google/site-kit-wp,google/site-kit-wp
assets/js/components/adminbar/AdminBarZeroData.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar request = require('request');\nvar model = require('../models/index');\n\n/* Sets a like in the Like table for a given artist and user (by Facebook ID number) */\nexports.likeArtist = function(req, res) {\n if (isNaN(req.params.id)...
javascript
edit
0
1
mit
abb3d6440881e4aac491eae0bb90817f469637b2
kurtbradd/facebook-music-recommender,kurtbradd/facebook-music-recommender,kurtbradd/facebook-music-recommender,kurtbradd/facebook-music-recommender
controllers/artist-controller.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n(function() {\n\n var app;\n \n var getApplication = function() {\n return app;\n };\n \n var shutDown = function() {\n lowland.ObjectManager.dispose();\n };\n \n var startUp = function() {\n var Application = core.Cla...
javascript
edit
0
1
mit
970c1663a035f57133359a84d7cabf2d2ebc68ac
unify/unify,unify/unify,unify/unify,unify/unify,unify/unify,unify/unify
unify/framework/source/class/unify/core/Init.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n$(function () {\n $('.frilinks .fri').each(function (n, e) {\n e = $(e);\n var hr = e.find('a').attr('href');\n if (!hr)\n return;\n e.css({cursor: 'pointer'});\n e.click(function (e) {\n...
javascript
edit
0
2
mit
6be99d06a66f2e339e8f58453829bf2f4b2b6470
micromaomao/maowtm.org,micromaomao/maowtm.org
static/main_site/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nconst _ = require('lodash');\nconst Bluebird = require('bluebird');\nconst mongoose = require('mongoose');\nconst mongooseDelete = require('mongoose-delete');\nconst ShortId = require('mo...
javascript
edit
0
1
mit
cc1092a5c94b102448090429f0d7ee14ed26e19d
jedbangers/exclusive-content-web,jedbangers/exclusive-content-web
server/model/content_code/schema.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React from 'react';\nimport ReactDOM from 'react-dom';\nimport { Provider } from 'react-redux'\nimport { createStore } from 'redux'\nimport './index.css';\nimport App from './App';\nimport Immutable from 'immutable'\nimport rootR...
javascript
edit
0
0
mit
b79362a07eaa527f27f2e28b8e6f4f5ebf37af30
kheldysh/discursor,kheldysh/discursor
app/src/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports = {\n notice: {\n 'logFile': './logs/ark-desktop.log',\n 'level': 1,\n 'defaultHideDelay': 5000\n }\n};\n```\n\nApply this change: Disable logging to file by default" }, { "role": "assistant", "cont...
javascript
edit
0
0
mit
04ca961a6b19d7bfc2d2962a6f9c6e9f876b333d
krau612/ark-desktop,krau612/ark-desktop,krau612/ark-desktop
client/app/config/config.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/* global $ */\n\n$(() => {\n \"use strict\";\n\n var $qanda = $(\".js-q-and-a\");\n var url = \"http://localhost:8000/5614e8bded37eded3f16a9e6\";\n\n fetch(url).then((response) => {\n response.json().then((resp) => {\n if (...
javascript
edit
0
4
mit
dfcf1531726ad89afbec3054b666fc6b84a2093a
roelbaka/hyperquaid,eturan/hyperquaid,epallerols/hyperquaid,peej/hyperquaid
scripts/embedQA.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst bugsnag = require(\"./bugsnag\");\n\nfunction attemptLogin(username, password) {\n return new Promise((resolve, reject) => {\n if (username === \"crash\") {\n // Obviously you wouldn't expect to see this in your productio...
javascript
edit
0
3
mit
6ca919bb4d7d42ef8dd1aa284a07bf3500a2d2a5
bugsnag/bugsnag-node
examples/express/api.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n'format es6';\n\nexport class Config {\n /**\n *\n * @param {Boolean} isLocalhost\n * @param {String} ngRewrite\n * @param {Object} $locationProvider\n */\n constructor(isLocalhost, ngRewrite, $locationProvide...
javascript
edit
0
4
mit
e66ec1691a3ba9bf445a166ac3ebdb84efe37df9
MitocGroup/deep-microservices-root-angularjs,MitocGroup/deep-microservices-root-angularjs,MitocGroup/deep-microservices-root-angularjs
src/DeepNgRoot/Frontend/js/app/module/ng-config.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst assert = require('assert')\nconst {remote} = require('electron')\nconst {systemPreferences} = remote\n\ndescribe('systemPreferences module', function () {\n if (process.platform !== 'darwin') {\n return\n }\n\n describe('sys...
javascript
edit
0
2
mit
9f946527929d65607c0d42d33733d370fee27f83
shiftkey/electron,renaesop/electron,brenca/electron,wan-qy/electron,electron/electron,miniak/electron,seanchas116/electron,seanchas116/electron,aliib/electron,aliib/electron,the-ress/electron,gabriel/electron,the-ress/electron,electron/electron,dongjoon-hyun/electron,biblerule/UMCTelnetHub,tonyganch/electron,dongjoon-h...
spec/api-system-preferences-spec.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/* Can't use $.toggle() as we are using a custom `display` that is `none`\n when the page first loads */\nfunction toggle (name, mode) {\n var id = name + '-' + mode\n var e = document.getElementById(id)\n var ej = $(e)\n e.style....
javascript
edit
0
5
mit
0798ad99e384fb91233ff0ba9c7ab8f439d1cb85
TimothyGu/fateserver-node,TimothyGu/fateserver-node
public/js/report.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React from 'react';\nimport { bp } from 'lib/variables';\n\nconst LogViewer = ({ logs }) => (\n <React.Fragment>\n <div className=\"logs\">\n <div className=\"log-viewer\">{logs || 'Logs are not available.'}</div>\n <...
javascript
edit
0
2
apache-2.0
013aea55f73a9cdf4063be8efb6689ae6fd6f985
amazeeio/lagoon,amazeeio/lagoon,amazeeio/lagoon,amazeeio/lagoon,amazeeio/lagoon,amazeeio/lagoon,amazeeio/lagoon
services/ui/src/components/LogViewer/index.js
rejected_duplicate
Near-duplicate of sample 90235
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React, { PureComponent } from 'react';\nimport PropTypes from 'prop-types';\nimport cx from 'classnames';\nimport omit from 'lodash.omit';\nimport theme from './theme.css';\n\nclass Counter extends PureComponent {\n static propT...
javascript
edit
0
1
mit
3ea4eebf2ed5dc409460b86a148b8fb0cdb2f9d7
teamleadercrm/teamleader-ui
components/counter/Counter.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nvar fs = require('fs');\nvar path = require('path');\n\nmodule.exports = function() {\n var content = fs.readFileSync(path.resolve(__dirname, '../templates/help.txt'), 'utf8');\n console.log(content);\n};\n\n```\n\nAp...
javascript
edit
0
1
mit
d9e767bc15f62a28bba34b139e98876fb3ad9f03
stillesjo/buh
lib/commands/help.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nApp = Ember.Application.create({});\n\nApp.IndexRoute = Ember.Route.extend({\n setupController: function(controller) {\n controller.set('content', ['red', 'yellow', 'blue']);\n }\n});\n```\n\nApply this change: Add router stub and ...
javascript
edit
0
1
mit
913c4f65c986da00961221356cc74c17ac270553
miguelcoba/ember-intro-code,miguelcoba/ember-intro-code
js/app.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport Ember from \"ember\";\nimport Snippets from \"../snippets\";\n\n/* global require */\nvar Highlight = require('highlight.js');\n\nexport default Ember.Component.extend({\n tagName: 'pre',\n classNameBindings: ['language'],\n u...
javascript
edit
0
8
mit
65a6f25c4523a2844ef7c0bc8dc1dbb2b0edc347
greyhwndz/ember-code-snippet,mike-north/ember-code-snippet,ef4/ember-code-snippet,ef4/ember-code-snippet
app/components/code-snippet.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nvar Command = require('../models/command');\nvar lookupCommand = require('../cli/lookup-command');\nvar string = require('../utilities/string');\n\nmodule.exports = Command.extend({\n name: 'help',\n works: 'everywher...
javascript
edit
0
2
mit
4279d160bdd741ff40b6f1d0b87eccea9b16bf18
eliotsykes/ember-cli,szines/ember-cli,beatle/ember-cli,xiujunma/ember-cli,code0100fun/ember-cli,ServiceTo/ember-cli,typeoneerror/ember-cli,taras/ember-cli,mixonic/ember-cli,williamsbdev/ember-cli,romulomachado/ember-cli,ef4/ember-cli,quaertym/ember-cli,coderly/ember-cli,nruth/ember-cli,kriswill/ember-cli,seawatts/ember...
lib/commands/help.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n(function () {\n var User = require('../database/mongodb').Users,\n jwt = require('jwt-simple'),\n async = require('async'),\n crypto = require('crypto');\n\n function _getUserInfo(userId, callback) {\n ...
javascript
edit
0
3
mit
6c0ed962b38457d9b95e9318a711ffbf0cf838c3
thinhit/Buzz
backend/models/users.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport Vue from 'vue';\nimport VueRouter from 'vue-router';\nimport App from './App';\n\nVue.use(VueRouter);\n\nconst Main = Vue.extend({});\nconst router = new VueRouter();\n\nrouter.map({\n '/': { component: App },\n});\n\nrouter.sta...
javascript
edit
0
0
mit
c4158a6e6b11915fc09336bc58376089f4fcd7d1
noraesae/soramaru,noraesae/soramaru
src/main.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// Runtime\n\n////////////////////////////////////////////////////////////////////////////////\n// Thunks\n\n// A thunk object\nfunction $(value)\n{\n this.forced = false;\n this.value = value;\n}\n\n// Force the thunk object\n$.proto...
javascript
edit
0
2
bsd-3-clause
1ffc1f60cb159cf47152c5d778505bd04ec71f0e
chrisdone/fore
js/rts.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React from 'react';\nimport PropTypes from 'prop-types';\nimport Helmet from 'react-helmet';\nimport { ServerStyleSheet } from 'styled-components';\n\nconst HTML = props => {\n const head = Helmet.rewind();\n\n const sheet = ne...
javascript
edit
0
2
mit
d80b1ea4db12bc7f09f57b1ce9986a0eab9aa327
iiroj/iiro.fi,iiroj/iiro.fi,iiroj/iiro.fi
src/html.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst moment = require(\"moment\");\n\nlet ctx;\n\ntry {\n const chalk = require(\"chalk\");\n\n ctx = new chalk.constructor({enabled:true});\n} catch (err) {\n // silent\n}\n\nfunction getTime() {\n const curHour = new Date...
javascript
edit
0
2
mit
98889b08d5dc039c5a58c522e5b2c9def1081a2d
EPICZEUS/simple-discord.js
src/util.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar React = require('react');\nvar ReactDOM = require('react-dom');\n\nvar ProfilePic = React.createClass({\n render: function() {\n return (\n <img src={'https://photo.fb.com/' + this.props.username}></img>\n ...
javascript
edit
0
1
mit
c7812c809faab6ff14d7125edcce9b0bb2e58abc
kidchenko/playground,kidchenko/playground,kidchenko/playground,kidchenko/playground,kidchenko/playground,kidchenko/playground,kidchenko/playground,kidchenko/playground,kidchenko/playground,kidchenko/playground,kidchenko/playground,kidchenko/playground,kidchenko/playground,kidchenko/playground,kidchenko/playground,kidch...
react-pure-function/app/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar assert = require('assert')\nvar AWS = require('aws-sdk')\n\n/**\n * Create s3 client\n * @param {Object} config AWS configuration\n * @returns {Object} s3 client and helpers\n */\nmodule.exports = function s3Loader (config) {\n ass...
javascript
edit
0
2
apache-2.0
1cf5a0fe163a7769a83abc3cf5b14b91089a5f28
cesarandreu/bshed,cesarandreu/bshed
lib/s3.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nvar OutputManager = (function () {\n\n var outputs = [];\n var active = [];\n var display = undefined;\n\n var addOutput = function(o) {\n outputs.push(o);\n };\n\n var activateOutput = function(o) {\n activ...
javascript
edit
0
2
bsd-3-clause
94564b672b27eeb8229e03aa324f73d8f0339bc2
qdot/giftic,qdot/giftic,qdot/giftic
js/outputs.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\nimport React from 'react';\nimport { Link } from 'react-router';\n\nvar Home = React.createClass({\n displayName: 'Home',\n\n render: function () {\n return (\n <section>\n <header className='page__header...
javascript
edit
0
2
bsd-2-clause
458ab503f8d0f6a7cc05ec735efac7cf15f46e67
orma/openroads-vn-analytics,orma/openroads-vn-analytics,orma/openroads-vn-analytics
app/assets/scripts/views/home.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar webpack = require('webpack');\nvar WebpackDevServer = require('webpack-dev-server');\nvar config = require('./webpack-dev.config');\n\nnew WebpackDevServer(webpack(config), {\n publicPath: config.output.publicPath,\n hot: true,\n ...
javascript
edit
0
2
mit
7fbf23d3569563524f9defa413b9e59da123b04a
scott-riley/loggins,PactCoffee/loggins,iest/loggins,tomgatzgates/loggins,tomgatzgates/loggins,PactCoffee/loggins,chrisspang/loggins,chrisspang/loggins,rdjpalmer/loggins,rdjpalmer/loggins,iest/loggins,scott-riley/loggins
styleguide/devServer.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport EmberObject from '@ember/object';\nimport Evented from '@ember/object/evented';\nimport { computed } from '@ember/object';\nimport ObjHash from './obj-hash';\nimport { unwrapper } from 'ember-drag-drop/utils/proxy-unproxy-objects...
javascript
edit
0
8
mit
61212b63fb10e5a75ac5f87685823cd1f24dab2a
mharris717/ember-drag-drop,mharris717/ember-drag-drop
app/models/coordinator.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// Height of main input\nexport const INPUT_HEIGHT = 45;\n\n// Heigth of default result line\nexport const RESULT_HEIGHT = 45;\n\n// Heigth of default result line\nexport const RESULT_WIDTH = 250;\n\n// Width of main window\nexport cons...
javascript
edit
0
0
mit
9a0198e14d43498ff563db56fec0747cb5419489
KELiON/cerebro,KELiON/cerebro
main/constants/ui.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nvar cc = require('config-chain');\n\nvar autoconfig = function(overrides) {\n var config = cc(overrides).add({\n IP: process.env.OPENSHIFT_NODEJS_IP || '0.0.0.0',\n PORT: process.env.FH_PORT || process.env.OPENSH...
javascript
edit
0
4
mit
1039beba35e4eb474cb35ce300aa8f0b437a7ea0
feedhenry-raincatcher/raincatcher-demo-cloud
lib/config.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar gulp = require('gulp');\nvar tslint = require('gulp-tslint');\nvar exec = require('child_process').exec;\nvar jasmine = require('gulp-jasmine');\nvar gulp = require('gulp-help')(gulp);\n\ngulp.task('tslint', 'Lints all Typ...
javascript
edit
0
3
mit
51cf6e6bc5fab543b18c23a7698eccaf006a9ca9
ospatil/generator-node-typescript,ospatil/generator-node-typescript
generators/app/templates/_gulpfile.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconsole.log(\"Loading helpers.js\");\n\nwindow.snip$ = (function() {\n\n var path = require(\"path\");\n\n function currEd() { return lt.objs.editor.pool.last_active.call(null); }\n\n function currPath() { return lt.objs.tabs.__GT_pa...
javascript
edit
0
2
mit
23e751b09f927e2826a6a4083868f7f864fbc94c
rundis/lt-snippets,weaver-viii/lt-snippets
helpers.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar _ = require('lodash');\nvar RethinkDB = require(__dirname + '/../rethinkdb');\nvar connex = require(__dirname + '/../../lib');\n\nvar RethinkDBCo = module.exports = function(options) {\n\n if(!(this instanceof RethinkDBCo)) {\n ...
javascript
edit
0
2
mit
a1e304bb328a6b4ea8b136414e496929df2085a1
tedeh/connex
contrib/rethinkdb-co/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/* @flow */\n\nimport _ from 'lodash'\nimport type { OrderedMap } from 'immutable';\nimport type MediaFile from './media_file';\n\nexport default class FileSeacher {\n files: OrderedMap<number, MediaFile>;\n\n constructor(files: Order...
javascript
edit
null
null
mit
2f4d3ee03667fffb105fa2080abbcefe73a10e94
joker1007/blackalbum,joker1007/blackalbum
src/file_seacher.js
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// Math Library for ISAAC Physics.\n\n// addVector function.\n// Takes in two vectors, returns a new vector made by adding\n// the inputs together. If the two input vectors don't have the same\n// length, the first input vector will be ...
javascript
edit
0
3
mit
5a5565b39d96ce64767089bab8911ed891f44374
isaacjs/ISAAC
isaac_math.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst rollup = require('rollup').rollup;\nconst babel = require('rollup-plugin-babel');\n\nrollup({\n entry: './src/index.js',\n external: [\n 'babel-runtime/core-js/json/stringify',\n 'babel-runtime/core-js/object/a...
javascript
edit
0
1
mit
77e033f68bc06a8b522ab1d13c43473cc22e6911
differui/rollup-plugin-sass,differui/rollup-plugin-sass
build/build.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// Date object that always reflects current time (with one second resolution)\n\n'use strict';\n\nvar curry = require('es5-ext/lib/Function/prototype/curry')\n\n , update;\n\nupdate = function () {\n\tthis.setTime(Date.now());\n};\n\nm...
javascript
edit
0
1
mit
bc629f18472ae90a87e4966a73e0cce6f0b250bf
medikoo/clock
lib/current.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/* global APP */\n\n/**\n * A module for sending DTMF tones.\n */\nvar DTMFSender;\nvar initDtmfSender = function() {\n // TODO: This needs to reset this if the peerconnection changes\n // (e.g. the call is re-made)\n if (DTMFS...
javascript
edit
0
5
apache-2.0
134d89a3d6379df9cbdf2a2194a229cd2980a0f5
dyweb/jitsi-meet,gerges/jitsi-meet,JiYou/jitsi-meet,IpexCloud/jitsi-meet,gpolitis/jitsi-meet,jitsi/jitsi-meet,gpolitis/jitsi-meet,kosmosby/jitsi-meet,jitsi/jitsi-meet,NxTec/jitsi-meet,gpolitis/jitsi-meet,jitsi/jitsi-meet,bgrozev/jitsi-meet,jitsi/jitsi-meet,bgrozev/jitsi-meet,buzzyboy/jitsi-meet,procandi/jitsi-meet,proc...
modules/DTMF/DTMF.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n(function(){var g={};\n(function(window){%output%}.bind(g,this))();\nif (typeof(module)!=\"undefined\"&&module.exports)module.exports=g.shaka;\nelse if (typeof(define)!=\"undefined\")define(function(){return g.shaka});\nelse this.shaka=...
javascript
edit
null
null
apache-2.0
316855e8230f114bdf409b59809c86bed2dd27bc
brightcove/shaka-player,priyajeet/shaka-player,priyajeet/shaka-player,baconz/shaka-player,cmgrecu/shaka-player,sanbornhnewyyz/shaka-player,Afrostream/shaka-player,treejames/shaka-player,baconz/shaka-player,vimond/shaka-player,treejames/shaka-player,tvoli/shaka-player,ustudio/shaka-player,TheModMaker/shaka-player,samdut...
build/wrapper.template.js
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/*****************************************************************************\n * utils.js\n * Includes various utility functions\n */\n\nvar path = require('path');\nvar fs = require('fs');\n\nvar nconf = require('nconf');\n\nvar inte...
javascript
edit
0
3
mit
1d158c46020f6b9d42d5043a6f84c551032003fc
altenia/ecofyjs-config
lib/config.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar fs = require('fs');\nvar Settings = require('./Settings');\n\nvar DiskDataStore = {};\n\nDiskDataStore.init = function (){\n this._CACHE_PATH = Settings.get('cache_path');\n fs.mkdirSync(this._CACHE_PATH);\n};\n\nDiskDataStore.del...
javascript
edit
0
2
apache-2.0
9adb2f964716f4766765a566428ea101773fb878
weilonge/unidisk,weilonge/unidisk,weilonge/unidisk
helper/DiskDataStore.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports = {\n folder: {\n tasks: 'tasks',\n src: 'src',\n build: 'assets',\n prod: 'production'\n },\n task: {\n htmlHint: 'html-hint',\n jsHint: 'js-hint',\n buildCustomJs: 'build-custom-js',\n buildJs...
javascript
edit
0
1
mit
1135366b62530ffa4ecb8e2c9505f73d79e94d7a
KirillPd/web-starter-kit,KirillPd/web-starter-kit,justcoded/web-starter-kit,vodnycheck/justcoded,justcoded/web-starter-kit,vodnycheck/justcoded
gulp-config.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports = {\n\n mklibdir: {\n options: {\n mode: 0644,\n create: ['lib/fonts', 'lib/css', 'lib/font','lib/lang', 'dist', 'dist/font','dist/lang']\n }\n }\n};\n\n```\n\nApply this change: Change folder access rig...
javascript
edit
0
0
mit
2d815e46d2cde87c660f38af6ec39843470359ed
stevennick/videojs-ad-scheduler,stevennick/ott-ad-scheduler,stevennick/videojs-ad-scheduler,stevennick/ott-ad-scheduler
grunt/mkdir.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar subscriptions = new SubsManager();\n\nRouter.configure({\n\tlayoutTemplate: 'layout',\n\tloadingTemplate: 'loading',\n\tnotFoundTemplate: 'notFound'\n});\n\nRouter.route('/', {\n\tname: 'home',\n\twaitOn: function() {\n\t\treturn su...
javascript
edit
0
1
mit
32828677d21b5de37859289632f91485ec20a2a1
dexterneo/mangas,dexterneo/mangas,dexterneo/mangatek,dexterneo/mangatek
lib/router.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst compose = (...functions) => {\n return (...initial) => {\n let count = functions.length;\n\n return (function accum(arg) {\n return count ? (count--, accum(functions[count].call(functions[count], arg))) : arg;\n })....
javascript
edit
0
2
mit
3c77d4e89dc8f097810ce84608b74ba158a8deb7
restrung/restrung-js
src/util/compose.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// Note: this example requires babel-loader\n// npm install babel-loader\n\nvar path = require('path');\n\nmodule.exports = {\n\tcontext: __dirname, \n entry: './file-to-annotate',\n output: {\n path: __dirname + '/dist',\n...
javascript
edit
0
0
mit
3c85a294c6173604793faa68ed829a10122efc7d
huston007/ng-annotate-loader,huston007/ng-annotate-loader
examples/babel/webpack.config.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nRouter.configure({\n layoutTemplate: 'layout',\n waitOn: function() {\n return Meteor.subscribe('projects');\n }\n});\n\nRouter.route('/', {\n\n});\n\n```\n\nApply this change: Add routes for layout and projects list" }, { ...
javascript
edit
0
0
mit
92d2afce8ed638f0b8673c52ce14af955423a25c
PUMATeam/puma,PUMATeam/puma
lib/router.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React from 'react';\nimport Drawer from 'material-ui/Drawer';\nimport DrawerMenuItems from '../../containers/drawer-menu-items';\n\nimport * as ImagesHelper from '../../../util/images';\n\nexport default class DrawerNavigation ex...
javascript
edit
0
3
mit
3625063c9b71d3d45bede0bd83af2152d83cd5ee
irvinlim/free4all,irvinlim/free4all
imports/ui/components/header/drawer-navigation.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport UserPage from './UserPage';\nimport DiscussionList from './DiscussionList';\n\n/**\n * The `DiscussionsUserPage` component shows a discussion list inside of a user\n * page.\n */\nexport default class DiscussionsUserPage extends ...
javascript
edit
0
1
mit
184ffcd99116c9053e7956a3db5f5acc152fc971
datitisev/core,datitisev/core,flarum/core,malayladu/core,datitisev/core,flarum/core,datitisev/core,malayladu/core,malayladu/core,flarum/core,malayladu/core
js/src/forum/components/DiscussionsUserPage.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\ndocument.addEventListener(\"DOMContentLoaded\", function(){\n var select = document.querySelector('.locales select');\n select.addEventListener('change', function(event){\n origin = window.location.origin;\n languageCode = event...
javascript
edit
0
4
mit
dc6833e9115f7cb61de753b928781c30b2937958
olivierlacan/keep-a-changelog,olivierlacan/keep-a-changelog
source/assets/javascripts/all.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar chai = require(\"chai\");\nchai.Should();\nchai.use(require('chai-things'));\n\n\ndescribe('129026 COG & SOG, Rapid Update', function () {\n it('complete sentence converts', function () {\n var tree = require(\"../n2kMapper.js\"...
javascript
edit
0
1
apache-2.0
cea824e63e4db6953c05ac67a1c9923f1f48abfc
SignalK/n2k-signalk
test/129026_cog_sog_rapid_update.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nfunction testBlock() {\n // Test function expressions.\n {\n var x = function g() { return 'g'; } || function h() { return 'h'; };\n return x;\n }\n}\n\n// -----------------------------------------------------------------------...
javascript
edit
0
2
apache-2.0
7624bbab290982806204b03df05d23e8932a11a7
ide/traceur,ide/traceur,ide/traceur
test/feature/Scope/BlockBinding6.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst { generateRandom } = require('../../server/simulation/drone');\n\ndescribe('generateRandom()', () => {\n\n const sampleArguments = {coords: {lat: 1, long: 1}, distance: 1000 };\n\n test('returns an object', () => {\n expect(\...
javascript
edit
0
1
mit
84945daecb84911f27dbe4c6911f4cba4c994e78
DAVFoundation/missioncontrol,DAVFoundation/missioncontrol,DAVFoundation/missioncontrol
test/specs/simulation.drone.spec.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar _origAssert = console.assert;\n\n\nif (typeof window.console === 'undefined') {\n window.console = {};\n}\n\nif (typeof console.log === 'undefined') {\n console.log = function() {}\n}\n\n/*\n * console.assert may not behave as...
javascript
edit
0
4
mit
62e63833c58b5ac8068199bb34897569654448e2
custode/reviewboard,chipx86/reviewboard,sgallagher/reviewboard,davidt/reviewboard,custode/reviewboard,davidt/reviewboard,reviewboard/reviewboard,reviewboard/reviewboard,1tush/reviewboard,beol/reviewboard,1tush/reviewboard,brennie/reviewboard,beol/reviewboard,custode/reviewboard,beol/reviewboard,custode/reviewboard,chip...
reviewboard/static/rb/js/utils/consoleUtils.js
accepted
null
true