messages
listlengths
2
2
language
stringclasses
8 values
prompt_type
stringclasses
2 values
lint_errors
int64
0
129
⌀
cyclomatic_complexity
int64
0
32
⌀
license
stringclasses
7 values
commit
stringlengths
40
40
repos
stringlengths
5
116k
new_file
stringlengths
4
220
status
stringclasses
6 values
error
stringlengths
26
74
⌀
is_valid_syntax
bool
2 classes
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React, {PropTypes} from 'react'\n\nconst UsersTable = ({users}) => (\n <div className=\"panel panel-minimal\">\n <div className=\"panel-body\">\n <table className=\"table v-center\">\n <thead>\n <tr>\n ...
javascript
edit
0
2
mit
ea95e486f37ad049ca2431ca10b3550c19ca222c
nooproblem/influxdb,nooproblem/influxdb,nooproblem/influxdb,influxdb/influxdb,influxdb/influxdb,mark-rushakoff/influxdb,influxdata/influxdb,li-ang/influxdb,mark-rushakoff/influxdb,mark-rushakoff/influxdb,nooproblem/influxdb,influxdb/influxdb,mark-rushakoff/influxdb,influxdb/influxdb,nooproblem/influxdb,mark-rushakoff/i...
ui/src/admin/components/UsersTable.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\ndefine([\n 'underscore',\n 'backgrid',\n 'orodatagrid/js/datagrid/formatter/number-formatter'\n], function(_, Backgrid, NumberFormatter) {\n 'use strict';\n\n var NumberCell;\n\n /**\n * Number column cell.\n *...
javascript
edit
0
2
mit
1ddb89ef8b4d2304a991e3a09e08693b8b84c5e8
orocrm/platform,ramunasd/platform,ramunasd/platform,trustify/oroplatform,orocrm/platform,ramunasd/platform,Djamy/platform,trustify/oroplatform,geoffroycochard/platform,orocrm/platform,Djamy/platform,geoffroycochard/platform,geoffroycochard/platform,trustify/oroplatform,Djamy/platform
src/Oro/Bundle/DataGridBundle/Resources/public/js/datagrid/cell/number-cell.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst webpack = require(\"webpack\");\nconst CopyWebpackPlugin = require(\"copy-webpack-plugin\");\nconst { CleanWebpackPlugin } = require(\"clean-webpack-plugin\");\nconst ZipPlugin = require(\"zip-webpack-plugin\");\nconst path = requ...
javascript
edit
0
0
apache-2.0
a33395797ecfc8dfbdad9cc6de5a41c2fd2783fc
mendix/HTMLSnippet,mendix/HTMLSnippet,mendix/HTMLSnippet
webpack.config.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\ndefine(function (require) {\n 'use strict';\n\n var store = require('store');\n\n var items = new Vue({\n el: 'body',\n\n data: {\n items: [],\n domains: store.fetch(),\n domain: '...
javascript
edit
0
6
mit
0dadb60ecd51ab01d4c804d5c741c795a6ca7b47
Witcher42/PacManagerVue
app/js/app.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar jadeStream = require('jade-stream')\nvar http = require('http')\nvar st = require('st')\n\nvar mount = st({\n path: 'app/assets',\n index: 'index.jade'\n})\n\nvar app = http.createServer(function server(req, res) {\n if (req.url ...
javascript
edit
0
2
mit
1154dffa3aa8a714d183d9048fe9381dfdb0a28d
joshgillies/bc-webplayer
app/server.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/* @flow */\n/** @jsx etch.dom */\n\nimport etch from 'etch'\n// $FlowBug: Yes, we know this isn't a React component :\\\nimport DiffComponent from './diff-component'\n\nimport type DiffViewModel from './diff-view-model'\n\ntype DiffPan...
javascript
edit
null
null
mit
a58013389178b6254eed66983b3d6bac5a2c4ae0
atom/github,atom/github,atom/github
lib/diff-pane-item-component.js
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst webpack = require('webpack');\n\nmodule.exports = {\n entry: './src/index.js',\n output: {\n filename: './dist/html2canvas.js',\n library: 'html2canvas'\n },\n module: {\n loaders: [{\n ...
javascript
edit
0
0
mit
4f48bc9b0c2f475639be917d08cd2583e670ed25
niklasvh/html2canvas,niklasvh/html2canvas,niklasvh/html2canvas
webpack.config.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar express = require('express');\nvar router = express.Router();\nvar GameModel = require('../models/game');\nvar model = require('../models');\nconst _ = require('underscore');\n\n/* GET home page. */\nrouter.get('/', function(req, re...
javascript
edit
0
2
mit
dcd07488f11a0ce089b396b95d880d704f43a985
JixunMoe/GameGuide.Node,JixunMoe/GameGuide.Node,JixunMoe/GameGuide.Node,JixunMoe/GameGuide.Node
routes/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar path = require(\"path\")\nvar webpack = require('webpack')\nvar BundleTracker = require('webpack-bundle-tracker')\n\nmodule.exports = {\n context: __dirname,\n\n entry: './webapp/assets/js/index', // entry point of our app. assets...
javascript
edit
0
0
mit
2a58db089a6cf0edc394fe8a036bb51f1a246f94
Semillas/semillas_platform,Semillas/semillas_backend,Semillas/semillas_platform,Semillas/semillas_backend,Semillas/semillas_platform,Semillas/semillas_backend,Semillas/semillas_backend,Semillas/semillas_platform
webpack.config.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst config = {\n entry: './src/index.js'\n};\n\nmodule.exports = config;\n\n```\n\nApply this change: Set name and path of the output file" }, { "role": "assistant", "content": "const path = require('path'); // We can use...
javascript
edit
0
0
mit
f73e07d291144ccc167491c8fbebb466f172e71c
debiasej/webpack2-learning,debiasej/webpack2-learning
webpack.config.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React, { PropTypes, Component } from 'react';\nimport { connect } from 'react-redux';\nimport actions from '../actions/index.js';\nimport '../scss/app.scss';\n\nimport Nav from './Nav.js';\nimport Profile from './Profile.js';\nim...
javascript
edit
0
1
mit
8a370e11dc746ee9d354c21c80ab5fb70722326f
forkful/forkful,rompingstalactite/rompingstalactite,rompingstalactite/rompingstalactite,forkful/forkful,rompingstalactite/rompingstalactite,forkful/forkful
client/components/App.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar express = require('express');\nvar router = express.Router();\nvar moment = require('moment');\nvar languageColors = require('../language_colors');\n\n// GET home page\nlanguageColors.get(function (languages, updated) {\n // HTML\n...
javascript
edit
0
1
mit
e95c90357117c63142d591190b1a74f323e5f108
nicolasmccurdy/language-colors,nicolasmccurdy/language-colors
routes/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nngGridDirectives.directive('ngViewport', [function() {\n return function($scope, elm) {\n var isMouseWheelActive;\n var prevScollLeft;\n var prevScollTop = 0;\n elm.bind('scroll', function(evt) {\n ...
javascript
edit
0
2
mit
77452232e9080665355f86082b28fae1a31ee8e4
FernCreek/ng-grid,ppossanzini/ui-grid,PeopleNet/ng-grid-fork,FugleMonkey/ng-grid,rightscale/ng-grid,rightscale/ng-grid,FernCreek/ng-grid,angular-ui/ng-grid-legacy,FernCreek/ng-grid,FugleMonkey/ng-grid,PeopleNet/ng-grid-fork,ppossanzini/ui-grid,FugleMonkey/ng-grid,angular-ui/ng-grid-legacy,angular-ui/ng-grid-legacy,ppos...
src/directives/ng-viewport.js
rejected_duplicate
Near-duplicate of sample 89802
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React from 'react';\nimport { View } from 'react-native';\n\nconst MenuOptions = ({ style, children, onSelect, customStyles }) => (\n <View style={[customStyles.optionsWrapper, style]}>\n {\n React.Children.map(children,...
javascript
edit
0
5
isc
f2539fed876794f065fe096c3816f49103cb1766
instea/react-native-popup-menu
src/MenuOptions.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst express = require('express'),\n router = express.Router(),\n db = require('../models');\n\nrouter.get('/', function(req, res, next) {\n res.render('index');\n});\n\nrouter.get('/new', function(req, res, next) {\n res.r...
javascript
edit
0
1
mit
29195eaefde2949134c608771ddfed3fa22677a5
tymeart/mojibox,tymeart/mojibox
routes/users.js
rejected_duplicate
Near-duplicate of sample 75601
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport { Component } from 'substance'\nimport TextInput from './TextInput'\n\nexport default class StringComponent extends Component {\n render ($$) {\n let placeholder = this.props.placeholder\n let model = this.props.model\n ...
javascript
edit
0
2
mit
fece5a97acbf07c6d405c5a8bd9f40de60fa5c29
substance/texture,substance/texture
src/kit/ui/StringComponent.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n * https://github.com/GoogleChrome/sw-precache#command-line-interface\n */\nmodule.exports = {\n root: 'build',\n staticFileGlobs: [\n 'build/javascripts/main.js',\n 'build/stylesheets/**.css',\n 'build/images/**/*.*',\n...
javascript
edit
0
0
mit
4bd2a3ccb73d9a2b8579a2fed42943548be51199
Leko/WEB-EGG,Leko/WEB-EGG,Leko/WEB-EGG
sw-precache-config.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n\nimport moment from 'moment';\n\nimport { Paginator } from '../../../utils';\nimport template from './outdated-queries.html';\n\nfunction OutdatedQueriesCtrl($scope, Events, $http, $timeout) {\n Events.record('view', 'page', 'admin/ou...
javascript
edit
0
2
bsd-2-clause
f74253045897f209768c7490d3b68c8b4488a623
moritz9/redash,moritz9/redash,moritz9/redash,moritz9/redash
client/app/pages/admin/outdated-queries/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar Immutable = require('immutable');\nvar Draft = require('draft-js');\n\nvar TYPES = require('./TYPES');\nvar createRow = require('./createRow');\n\n/**\n * Create a new table header\n *\n * @param {String} tableKey\n * @param {Number...
javascript
edit
0
1
apache-2.0
1c19dbe6c8b8b462f86f3d901203e77ef5486cbd
SamyPesse/draft-js-table,SamyPesse/draft-js-table
lib/createHeader.js
rejected_duplicate
Near-duplicate of sample 100436
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/* eslint-env node */\n'use strict';\n\nvar defaultAllowedBaseStrings = ['(', ')', ',', '.', '&', '+', '-', '=', '*', '/', '#', '%', '!', '?', ':', '[', ']', '{', '}', '<', '>', '•', '—', ' ', '|'];\n\nmodule.exports = {\n extends: 're...
javascript
edit
0
0
mit
4340850c7b2803002c747f425ef7c3da8bca8fdd
jrjohnson/frontend,ilios/frontend,thecoolestguy/frontend,dartajax/frontend,djvoa12/frontend,dartajax/frontend,djvoa12/frontend,gabycampagna/frontend,jrjohnson/frontend,ilios/frontend,gabycampagna/frontend,thecoolestguy/frontend,gboushey/frontend,gboushey/frontend
.template-lintrc.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst declarationBlockPropertiesOrder = require('./.csscomb.json')['sort-order'][0];\n\nmodule.exports = {\n extends: `stylelint-config-modularis`,\n rules: {\n 'declaration-block-properties-order': declarationBlockPropertiesOrder,...
javascript
edit
0
0
mit
d6dac26b729b9a2f0adade9d870dfd7edbd2c3b9
avalanchesass/avalanche-website,avalanchesass/avalanche-website
.stylelintrc.js
rejected_duplicate
Near-duplicate of sample 103776
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar fs = require('fs');\nvar url = require('url');\nvar request = require('request');\n\n/**\n * @class\n */\nvar Procure = function() {};\n\n/**\n* \"Procure\" a resource, whether local or remote.\n* @function procure \n* @param {strin...
javascript
edit
0
2
mit
dd538b5472f01f45822f026624d98da78408e492
martindale/procure
lib/Procure.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport { requestAnimFrame } from '../../utils/utils';\nimport { scrollHelper } from './scrollHelper';\n\nexport function ScrollerDirective($timeout){\n return {\n restrict: 'E',\n require:'^dtBody',\n transclude: true,\n te...
javascript
edit
0
2
mit
5b7b02e254769ec79a9525c23b9eb85353e9b38e
kuzman/angular-data-table,gabigeo/angular-data-table,kuzman/angular-data-table
src/components/body/ScrollerDirective.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nvar fluxApp = require('fluxapp');\nvar router = fluxApp.getRouter();\n\nfunction isEnabled() {\n return !! (typeof window !== 'undefined' && window.history);\n}\n\nmodule.exports = {\n router: {\n init: function in...
javascript
edit
0
4
mit
2538a506cc1dec5557a22ef51b11ce068a350440
colonyamerican/fluxapp-router
lib/actions.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n\"use strict\";\n\nconst FigText = require('../lib/FigText');\nconst cursor = require('kittik-cursor').create().resetTTY();\n\nFigText.create({\n text: 'KittikJS\\n Rules\\n !!!',\n x: 'center',\n y: 'middle',\n font: '...
javascript
edit
0
0
mit
c43bd67537d933ed345e79997ed315263f48c27c
kittikjs/shape-fig-text
examples/simple.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nconst { mapValues } = require('../../utilities');\n\nconst isObject = function (value) {\n return value.constructor === Object;\n};\n\nconst isObjectArray = function (value) {\n return Array.isArray(value) && value.ev...
javascript
edit
0
2
apache-2.0
523263d6b469f6b65a119b42c5c889f1b445d08e
autoserver-org/autoserver,autoserver-org/autoserver
src/fast_validation/helpers/types.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar minimatch = require('minimatch');\nvar is = require('annois');\nvar fp = require('annofp');\nvar zip = require('annozip');\n\n\nmodule.exports = function(model, query, cb) {\n if(!is.object(query) || fp.count(query) === 0) {\n ...
javascript
edit
0
9
mit
762ea681fb722e0c08761e5daec6ea4979de6d11
jsdelivr/api,MartinKolarik/api-sync,jsdelivr/api-sync,MartinKolarik/api,jsdelivr/api-sync,2947721120/jsdelivr-api,MartinKolarik/api-sync
lib/get_all.js
rejected_duplicate
Near-duplicate of sample 88727
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nconst mkdirp = require('mkdirp');\nconst path = require('path');\nconst pify = require('pify');\nconst touch = require('touch');\nconst winston = require('winston');\n\n/**\n * @module service/logger\n *\n * {@link http...
javascript
edit
0
1
mit
821c22c7318e4405058f56d5c2aacfd7cd23bf52
MRN-Code/coinstac,MRN-Code/coinstac,MRN-Code/coinstac
packages/coinstac-server-core/src/services/logger.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// @flow\nimport type Series from '../series/Series';\n\ntype Config = {\n key: string\n};\nexport default function normalizeToPercentage(config: Config) {\n const {key} = config;\n return (series: Series) => {\n series....
javascript
edit
null
null
mit
57a4b691eb7dcc09c6f4f970b6880b6e5c1c2538
bigdatr/pnut,bigdatr/pnut
src/process/normalizeToPercentage.js
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar attr = Ember.attr;\n\nmodule(\"Ember.Model sideloading\");\n\ntest(\"data can be sideloaded without materializing records\", function() {\n expect(1);\n\n var Model = Ember.Model.extend({\n id: attr(),\n name: attr()\n });\...
javascript
edit
0
1
mit
15cf2fd1ca05cf8be0491f10672a36f4352a9d8e
zenefits/ember-model,greyhwndz/ember-model,sohara/ember-model,asquet/ember-model,juggy/ember-model,GavinJoyce/ember-model,igorgoroshit/ember-model,ipavelpetrov/ember-model,CondeNast/ember-model,ebryn/ember-model,asquet/ember-model,ckung/ember-model,Swrve/ember-model,julkiewicz/ember-model,c0achmcguirk/ember-model,inter...
packages/ember-model/tests/model_sideloading_test.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/* eslint-env node */\n/* global require, module */\nconst EmberAddon = require('ember-cli/lib/broccoli/ember-addon')\n\nmodule.exports = function (defaults) {\n var app = new EmberAddon(defaults, {\n babel: {\n optional: ['es7...
javascript
edit
0
2
mit
18e5fe55934899ba1e4454e1383ef49c5068dafb
EWhite613/ember-frost-core,dafortin/ember-frost-core,ciena-frost/ember-frost-core,dafortin/ember-frost-core,ciena-frost/ember-frost-core,dafortin/ember-frost-core,ciena-frost/ember-frost-core,EWhite613/ember-frost-core,EWhite613/ember-frost-core
ember-cli-build.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n\n(function() {\n 'use strict';\n\n /**\n * Generate a human-readable address string from a single museum object\n *\n * Can get fancy here and prioritize one of the three address types provided:\n * source address...
javascript
edit
0
1
apache-2.0
9079ca9a5a9565b02a0bfae9b073f8a8edc789dc
MuseumStat/imls-museum-data,azavea/imls-museum-data,azavea/imls-museum-data,azavea/imls-museum-data,MuseumStat/imls-museum-data,MuseumStat/imls-museum-data
app/scripts/museum/address-filter.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar adt;\ntry {\n adt = require(\"adt\");\n} catch (e) {\n adt = null;\n}\n\n// Given an object and a class name, tries to determin if the object is an\n// instance of said class.\nfunction matchesTypeName (obj, name) {\n if (adt && ...
javascript
edit
0
10
mit
d17596670403e4f20efa4d1957aad1d1f52b4038
ermouth/matches.js,natefaubion/matches.js
lib/runtime.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n$(function () {\n $.fn.equalHeights = function() {\n var maxHeight = 0,\n $this = $(this);\n\n $this.each( function() {\n var height = $(this).innerHeight();\n\n if (height > maxHeight) {\n maxHeight = height;...
javascript
edit
0
2
mit
759e7a66ca850755d7dad05974bf4a559d51f984
damianhakert/damianhakert.github.io
source/javascripts/pricing.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nexport const getSelectedTime = (\n server_time,\n selected_time,\n market_open_time,\n) => {\n const boundaries = selected_time.isBefore(market_open_time)\n ? market_open_time.isBefore(server_time)\n ? serv...
javascript
edit
0
3
apache-2.0
493a5038a3afe675213e2f8e1802a088b2cfc38c
ashkanx/binary-static,binary-com/binary-static,binary-static-deployed/binary-static,binary-com/binary-static,binary-com/binary-static,ashkanx/binary-static,binary-static-deployed/binary-static,ashkanx/binary-static,binary-static-deployed/binary-static,4p00rv/binary-static,kellybinary/binary-static,4p00rv/binary-static,...
src/javascript/app_2/Stores/Modules/Trading/Helpers/end-time.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nrequire(\"./stylesheets/main.less\");\nvar marked = require(\"marked\");\n\nvar commands = codebox.require(\"core/commands\");\nvar dialogs = codebox.require(\"utils/dialogs\");\n\ncommands.register({\n id: \"markdown.preview\",\n ...
javascript
edit
0
1
apache-2.0
4f503b03227cf7eebc552672ae469443016c0d6d
CodeboxIDE/package-markdown
src/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/*global describe, beforeEach, it*/\n'use strict';\n\nvar path = require('path');\nvar helpers = require('yeoman-generator').test;\n\n\ndescribe('bespoke generator', function () {\n beforeEach(function (done) {\n helpers.testDire...
javascript
edit
0
2
mit
f71e561347293bdf7adb688739cc0b9e45e08a48
pimterry/generator-bespoke,mikemaccana/generator-bespoke,bguiz/generator-bespoke,markdalgleish/generator-bespoke,bespokejs/generator-bespoke,markdalgleish/generator-bespoke,markdalgleish/generator-bespoke,bespokejs/generator-bespoke,bespokejs/generator-bespoke
test/test-creation.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport {EntityManager} from './entity-manager';\n\nexport {DefaultRepository} from './default-repository';\nexport {Repository} from './repository';\nexport {Entity} from './entity';\nexport {EntityManager} from './entity-manager';\nexp...
javascript
edit
0
1
mit
30fb1dd1918d561c8ac2a99708af962224824c9e
SpoonX/aurelia-orm,kellyethridge/aurelia-orm,freska-fi/aurelia-orm,freska-fi/aurelia-orm,doktordirk/aurelia-orm,kellyethridge/aurelia-orm,SpoonX/aurelia-orm,bas080/aurelia-orm,doktordirk/aurelia-orm,bas080/aurelia-orm
src/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/** @babel */\n\nimport { applyMiddleware, createStore } from 'redux'\nimport createLogger from 'redux-logger'\nimport createSagaMiddleware from 'redux-saga'\nimport reducers from './reducers'\nimport rootSaga from './sagas'\n\nconst lo...
javascript
edit
0
0
mit
a24c7ca0ddbef44abeda4e12cd5382b7748a1204
sanack/atom-jq
src/store.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar template = require('./default-layer-analysis-view.tpl');\n\n/**\n * View for an analysis node with a single input\n *\n * this.model is expected to be a analysis-definition-node-nodel\n */\nmodule.exports = cdb.core.View.extend({\n\...
javascript
edit
0
3
bsd-3-clause
c12f5f84fd3201298b84362cc0f5c0c6de4bc86c
bloomberg/cartodb,codeandtheory/cartodb,CartoDB/cartodb,splashblot/dronedb,bloomberg/cartodb,codeandtheory/cartodb,bloomberg/cartodb,CartoDB/cartodb,CartoDB/cartodb,splashblot/dronedb,bloomberg/cartodb,codeandtheory/cartodb,CartoDB/cartodb,codeandtheory/cartodb,codeandtheory/cartodb,splashblot/dronedb,CartoDB/cartodb,b...
lib/assets/javascripts/cartodb3/editor/layers/analysis-views/default-layer-analysis-view.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport debug from '../../debug'\nimport promptForDatasetName from './datasetNamePrompt'\n\nmodule.exports = async (context, options = {}) => {\n const {apiClient, prompt} = context\n const {message, allowCreation} = options\n const c...
javascript
edit
0
5
mit
0dd95707d02673649f113b3553c68b466f3dfdc4
sanity-io/sanity,sanity-io/sanity,sanity-io/sanity,sanity-io/sanity
packages/@sanity/core/src/actions/dataset/chooseDatasetPrompt.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\ndefine([\n 'underscore',\n 'backgrid',\n 'orodatagrid/js/datagrid/editor/select-cell-radio-editor'\n], function(_, Backgrid, SelectCellRadioEditor) {\n 'use strict';\n\n var SelectCell;\n\n /**\n * Select column ce...
javascript
edit
0
4
mit
77aa85536f93aea8caeb48b7008665ab1477d1c3
ramunasd/platform,geoffroycochard/platform,trustify/oroplatform,Djamy/platform,trustify/oroplatform,orocrm/platform,orocrm/platform,trustify/oroplatform,ramunasd/platform,orocrm/platform,Djamy/platform,geoffroycochard/platform,Djamy/platform,geoffroycochard/platform,ramunasd/platform
src/Oro/Bundle/DataGridBundle/Resources/public/js/datagrid/cell/select-cell.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport * as yup from 'yup';\nimport { translatedErrors } from '@strapi/helper-plugin';\n\nconst URL_REGEX = new RegExp('(^$)|((https?://.*)(d*)/?(.*))');\n\nconst schema = yup.object().shape({\n email_confirmation_redirection: yup.mixe...
javascript
edit
0
0
mit
3aee21ae0a0b376e101861e97431f09cc431a11a
wistityhq/strapi,wistityhq/strapi
packages/plugins/users-permissions/admin/src/pages/AdvancedSettings/utils/schema.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport {noop, pick} from 'lodash';\nimport createReactContext from 'create-react-context';\nimport React from 'react';\n\nconst TypeaheadContext = createReactContext({\n activeIndex: -1,\n hintText: '',\n initialItem: null,\n isOnly...
javascript
edit
0
1
mit
5298747365e5ecc6c15a2e5582da48e76ed34a4c
ericgio/react-bootstrap-typeahead,ericgio/react-bootstrap-typeahead,ericgio/react-bootstrap-typeahead,ericgio/react-bootstrap-typeahead
src/TypeaheadContext.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n\nKwf.ViewportWithoutMenu = Ext2.extend(Ext2.Viewport, {\n layout: 'fit',\n mabySubmit: function(cb, options) {\n var ret = true;\n this.items.each(function(i) {\n if (i.mabySubmit && !i.mabySubmit(cb, opt...
javascript
edit
0
3
bsd-2-clause
5f9a7836146062c94ce08b98db2705c2bab10e34
nsams/koala-framework,koala-framework/koala-framework,kaufmo/koala-framework,kaufmo/koala-framework,koala-framework/koala-framework,kaufmo/koala-framework,nsams/koala-framework,nsams/koala-framework
Kwf_js/Viewport.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n\nvar ProtoBuf = dcodeIO.ProtoBuf;\nvar Builder = ProtoBuf.loadProtoFile(\"proto/ClientMessage.proto\");\nProtoBuf.loadProtoFile(\"proto/Login.proto\", Builder);\n\n\n\nvar Message = Builder.build(\"msg\");\nvar ClientMessage = Message....
javascript
edit
0
3
mit
3ce6ed46cb1da34e631abc6bda5fd9f15ae4f53a
mjgerdes/cg,mjgerdes/cg,mjgerdes/cg,mjgerdes/cg
html/main.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst mongoose = require('mongoose');\nconst Grid = require('gridfs-stream');\n\nconst mongoURI = process.env.MONGODB_URI || process.env.MONGOHQ_URL;\nmongoose.Promise = Promise;\nmongoose.connect(mongoURI, { useMongoClient: true });\n\...
javascript
edit
0
1
mit
d7505d1c5497192c8768bf5da3a0f8d585717241
r3dDoX/geekplanet,r3dDoX/geekplanet,r3dDoX/geekplanet
src/server/db/mongoHelper.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nprocess.env.TZ = \"America/Los_Angeles\";\n\nvar smash = require(\"smash\"),\n jsdom = require(\"jsdom\");\n\nrequire(\"./XMLHttpRequest\");\n\nmodule.exports = function() {\n var files = [].slice.call(arguments).map(function(d) { r...
javascript
edit
0
1
bsd-3-clause
f69040c9d2b21491e33a9676a68ce20d97787ab4
josealbertohm/d3,nishant8BITS/d3,Limky/d3,Jonathan-S-Phillips/d3,welloncn/d3,azilnoor/d3,mujiatong/d3,lijanele/d3,xiaojie123/d3,Sigfried/d3,madlen99/d3,jordancheah/d3,pradeeptas/d3,ornelaxh/d3,zhoux10/d3,Vardhan17/d3,zzzzw/d3,makenti/d3,Ali925/d3,aihua/d3,ishang27/d3,li0t/d3,nicgallardo/d3,mountwe/d34kpor,w124384389/d3...
test/load.js
rejected_duplicate
Near-duplicate of sample 93687
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport styleBody from 'ghost/mixins/style-body';\nimport AuthenticatedRoute from 'ghost/routes/authenticated';\n\nvar EditorRoute = AuthenticatedRoute.extend(styleBody, {\n classNames: ['editor'],\n controllerName: 'posts.post',\n...
javascript
edit
0
2
mit
ec3c232eccf82d221015a67a96060d798b24ac29
acburdine/Ghost-Admin,kevinansfield/Ghost-Admin,JohnONolan/Ghost-Admin,acburdine/Ghost-Admin,JohnONolan/Ghost-Admin,dbalders/Ghost-Admin,airycanon/Ghost-Admin,TryGhost/Ghost-Admin,airycanon/Ghost-Admin,kevinansfield/Ghost-Admin,TryGhost/Ghost-Admin,dbalders/Ghost-Admin
routes/editor.js
rejected_duplicate
Near-duplicate of sample 101175
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport Ember from 'ember';\n\nexport default Ember.Mixin.create({\n componentFor(name, owner) {\n let component = this._super(name, owner);\n\n // Ensure components are always managed my the container and thus have a connection t...
javascript
edit
0
3
mit
116808327ac226934af7cd48ac8336d16e602af7
salsify/ember-css-modules,salsify/ember-css-modules
addon/mixins/component-lookup-mixin.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport NormalDoor from 'entities/Door';\nimport state from 'state';\nimport finish from 'finish';\nimport action from 'action';\nimport { changeScene } from 'currentScene';\nimport entrance from 'scenes/circleBurger/entrance';\n\nexport...
javascript
edit
0
5
mit
49d0f365e0a2da4ab9ba2c571806229052a8cc83
TEAMBUTT/LD35
app/webpack/entities/circleBurger/Door.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nwindow.FactRelationView = Backbone.View.extend({\n tagName: \"li\",\n className: \"fact-relation\",\n\n events: {\n \"click .relation-actions>.weakening\": \"disbelieveFactRelation\",\n \"click .relation-actions>.supporting\": ...
javascript
edit
0
1
mit
a5d2080045c34b23e53b3da5798b806293cd4d9b
daukantas/factlink-core,Factlink/factlink-core,daukantas/factlink-core,Factlink/factlink-core,Factlink/factlink-core,Factlink/factlink-core,daukantas/factlink-core,daukantas/factlink-core
core/app/assets/javascripts/backbone/views/fact_relation_view.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/*jshint browser: true */\n(function () {\n \"use strict\";\n\n var root = this,\n $ = root.jQuery,\n body = $('body');\n\n if (typeof GOVUK === 'undefined') { root.GOVUK = {}; }\n\n var StickyHeader = function...
javascript
edit
0
4
mit
c1c138acb4026af9173008dbf037f97fe4f19b9e
ministryofjustice/opg-digi-deps-client,ministryofjustice/opg-digi-deps-client,ministryofjustice/opg-digi-deps-client,ministryofjustice/opg-digi-deps-client
src/AppBundle/Resources/assets/javascripts/sticky.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n#!/bin/env node\n\n'use strict';\n\nvar agent = require('superagent');\nvar program = require('commander');\nvar semver = require('semver');\n\nvar name, version;\n\nprogram\n .version(require('./package.json').version)\n .argumen...
javascript
edit
0
3
mit
2c5953f6f7cb1c20ccada40ad3f41915b0e29c98
targos/npm-depends
npm-depends.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\n/**\n * Open and close button for aside-menu\n */\n$('show-aside-button').addEvent('click', function (event) {\n // Get the aside current margin-left as integer\n var asideMargin = parseInt($('aside-menu').getStyl...
javascript
edit
0
5
isc
222bf732b58e1f12b78c0c3aa2671d8993be8908
etu/0bRSS,etu/0bRSS,etu/0bRSS
http/assets/js/aside-menu.js
rejected_duplicate
Near-duplicate of sample 81788
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/* @flow */\n\nimport { isPayPalDomain } from '@paypal/sdk-client/src';\nimport { PopupOpenError as _PopupOpenError, destroy as zoidDestroy, destroyComponents } from 'zoid/src';\n\nimport { setupLogger, allowIframe as _allowIframe } fro...
javascript
edit
null
null
apache-2.0
081312e0ab495e4e8d2e93ce8ff3a8d7305644ea
paypal/paypal-checkout,paypal/paypal-checkout,paypal/paypal-checkout
src/interface/button.js
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```javascript\nangular.module(\"hypContentFor\", [])\n .constant(\"HYP_CONTENT_FOR_IDS\", [ ])\n\n .directive(\"content\", function (HYP_CONTENT_FOR_IDS) {\n return {\n scope: { \"for\": \"@\" },\n\n transclude: true,\n\n controlle...
javascript
edit
0
1
mit
fa59afebde57aff27c919e65222815b6497db8da
hyperoslo/hyper-content-for-angular,hyperoslo/hyper-content-for-angular
hyp-content-for.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport getWeatherInfo from './get-weather-info';\nimport fetchRandomPhoto from './fetch-random-photo';\nimport { lessThanOneHourAgo, lessThan24HoursAgo } from './helpers';\n\n/*\n * Load the next image and update the weather\n */\n\ncon...
javascript
edit
0
6
mit
0e6ba9a3d53ec694c565273c9560ecf77485c010
ayoisaiah/stellar-photos,ayoisaiah/stellar-photos,ayoisaiah/stellar-photos,ayoisaiah/stellar-photos,ayoisaiah/stellar-photos
src/js/libs/load-new-data.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React from 'react';\nimport withStyles from 'isomorphic-style-loader/lib/withStyles';\n\nimport Link from '../Link';\nimport s from './Brand.css';\n\nfunction Brand(){\n return (\n <Link className={s.brand} to=\"//skoli.fr\" ...
javascript
edit
0
1
mit
0b3b4a73a06288627d6bb9e2c3f9d06bfad4fa18
Skoli-Code/DerangeonsLaChambre
src/components/Brand/Brand.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nvar remark = require('remark');\nvar engine = require('unified-engine');\n\nmodule.exports = function(grunt) {\n grunt.registerMultiTask('remark', 'Process markdown with remark', function() {\n var done = this.async...
javascript
edit
0
4
mit
6cbcdd143c822b6edefc28d8d70f123b0c53ea6d
ChristianMurphy/grunt-remark
tasks/remark.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nangular.module('gc.ngHttpGetParamInterceptor', [\n 'gc.utils'\n]).factory('httpGetParamInterceptor', [\n 'utils',\n function httpGetParamInterceptor(utils) {\n\n function deleteUndefinedValues(obj) {\n _.keys...
javascript
edit
0
2
mit
f2875d45257f892607df8a460b253cd35fb0900a
gocardless-ng/ng-gc-base-app-service
config/http-get-param-interceptor.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/*!\n * AllOrigins\n * written by Gabriel Nunes <<EMAIL>>\n * http://github.com/gnuns\n */\n\nconst express = require('express')\n\nconst {version} = require('./package.json')\nconst processRequest = require('./app/process-request')\n\...
javascript
edit
0
2
mit
7dbf771b1ce636ab3991458c955f7e34e6e2207f
gnuns/AllOrigins
app.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nRTC({\n // use the public google stun servers :)\n ice: [\n { url: 'stun1.l.google.com:19302' },\n { url: 'stun2.l.google.com:19302' },\n { url: 'stun3.l.google.com:19302' },\n { url: 'stun4.l.google.com:19302' }\n ],\n\n...
javascript
edit
0
0
mit
48c8c0d3ef20cfef5aeb946f89c09155804be4ed
rtc-io/demo-helloworld,rtc-io/demo-helloworld,rtc-io/demo-helloworld
app.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\n/* jasmine specs for controllers go here */\n\ndescribe('RootCtrl', function(){\n beforeEach(module('swiftBrowser.controllers'));\n\n it('should list containers', inject(function($controller, $httpBackend) {\n ...
javascript
edit
0
1
apache-2.0
76c051f0874c76671a33e8974a8e0e2c0cba3ec8
mgeisler/swift-browser,mindware/swift-browser,mgeisler/swift-browser,zerovm/swift-browser,mindware/swift-browser,zerovm/swift-browser
test/unit/controllersSpec.js
rejected_duplicate
Near-duplicate of sample 80751
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar ALIVE = \"alive\", DEAD = \"dead\";\n\nfunction Cell(initialState) {\n var state = initialState || DEAD;\n return {\n setNeighbours: function (neighbours) {\n var nbAliveCells = 0;\n neighbours.for...
javascript
edit
0
2
mit
db0bcc505eaf95cae39d4dd0b2f7b39fc4e404c1
velcrin/GameOfLife
test/unit/GameOfLife.spec.js
rejected_duplicate
Near-duplicate of sample 78534
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n\"use strict\";\n\n/*\n default options\n*/\nvar defaultOptions = {\n // force additionalProperties and additionalItems to be defined on \"object\" and \"array\" types\n forceAdditional: false,\n // force items to be defined...
javascript
edit
0
1
mit
85bee713801bb259fdcbf6c06358372c692b508b
whitlockjc/z-schema,crypti/z-schema,whitlockjc/z-schema,crypti/z-schema
src/ZSchema.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n$(document).ready(function(){\n\n $(\"#new-timeslot-form\").submit(function(event){\n event.preventDefault();\n var data = createDate();\n $(\"#modal_new_timeslot\").modal('toggle');\n $.ajax({\n type: \"POST\",\n ...
javascript
edit
0
1
mit
897f72d6c7d52abcdc8274756644fb7c217c3572
theresaboard/theres-a-board,theresaboard/theres-a-board,theresaboard/theres-a-board
app/assets/javascripts/new_timeslot.js
rejected_duplicate
Near-duplicate of sample 105400
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React from 'react';\nimport { connect } from 'react-redux';\nimport { Redirect } from 'react-router-dom';\nimport { Toolbar, ToolbarTitle } from 'material-ui/Toolbar';\nimport Paper from 'material-ui/Paper';\n\nimport styles from...
javascript
edit
0
3
mit
21eeb265e755b09ebd06249c5e0c7e6beadeb7d7
mbchoa/presence,mbchoa/presence
client/src/components/pages/Login/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport User from 'src/models/User';\nimport { auth } from 'src/config/firebase-admin';\n\nUser.prototype.login = function login(email, password) {\n return auth\n .signInWithEmailAndPassword(email, password)\n .then((firebaseUser...
javascript
edit
0
1
mit
15659df3b6b540995f09892ba88fd29986e024e8
tuelsch/bolg,tuelsch/bolg
src/models/UserAdmin.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports = function sendJSON(res, next) {\n return _sendJSON(error, data) {\n if (error) {\n return next(error);\n }\n return res.json(data);\n }\n};\n```\n\nApply this change: Fix syntax error - missing function d...
javascript
edit
0
2
mit
95a72a64eb23dfd693e2df8be14e07ede94a9d5b
ganemone/bookshelf-restful
lib/util/sendJSON.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar __path__ = '../../src/components/ArtworkImage.js';\n\njest.dontMock(__path__);\n\ndescribe('ArtworkImage', function() {\n var React, TestUtils, ArtworkImage;\n var artworkImage;\n\n beforeEach(function() {\n React = require('r...
javascript
edit
0
1
bsd-2-clause
02cc9cfbd1e23bfedff71a256ed60c32936afb1e
solarnz/tchaik,solarnz/tchaik,GrahamGoudeau21/tchaik,solarnz/tchaik,GrahamGoudeau21/tchaik,tchaik/tchaik,tchaik/tchaik,GrahamGoudeau21/tchaik,solarnz/tchaik,tchaik/tchaik,GrahamGoudeau21/tchaik,tchaik/tchaik
cmd/tchaik/ui/static/js/__tests__/components/ArtworkImage-test.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar util = require('util'),\n OxideClient = require('./oxide_client.js'),\n Metric = require('../metrics/metric.js');\n\nfunction CarbonClient (opts) {\n OxideClient.call(this);\n}\nutil.inherits(CarbonClient, OxideClient);\n\nCa...
javascript
edit
0
2
mit
ff1dd026c76dcf7592ddf3072a33a0a87d220ccc
MCProHosting/oxide
lib/clients/carbon_client.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n\"use strict\";\n\nlet errors = require('../errors.js');\nlet Type = require('./type.js');\nlet Value = require('./value.js');\n\nclass NumberValue extends Value {\n constructor(type) {\n super(type);\n this.value = 0;\n }\n\n ...
javascript
edit
0
4
mit
18e9cf3851ddaae9f865b326f4152d53ce5eb882
salesforce/runway-browser,SalesforceEng/runway-browser,SalesforceEng/runway-browser
types/number.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React from 'react';\n\nexport default class Todo extends React.Component {\n static propTypes = {\n text: React.PropTypes.string.isRequired\n }\n\n render() {\n return (\n <li>{this.props.text}</li>\n );\n }\n}\...
javascript
edit
0
2
cc0-1.0
d5baa6a9f98ddf3c6c46bb8eb8f6a98f62e4d8b7
ksmithbaylor/react-todo-list,ksmithbaylor/react-todo-list
src/TodoApp/TodoList/Todo.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/*!\n * numbro.js language configuration\n * language : spanish Spain\n * author : Hernan Garcia : https://github.com/hgarcia\n */\n(function () {\n var language = {\n delimiters: {\n thousands: '.',\n de...
javascript
edit
0
8
mit
e9fa8ee78fc8630d67fcd9384e8731c2a13d4ff9
Stillat/numeral.php,foretagsplatsen/numbro,stewart42/numbro,rafde/numbro,clayzermk1/numbro,prantlf/numbro,atuttle/numbro,Kistler-Group/numbro,danghongthanh/numbro,BenjaminVanRyseghem/numbro,matthieuprat/numbro
languages/es-ES.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nCommitMessages = new Mongo.Collection(\"CommitMessages\");\nRepositoryList = new Mongo.Collection(\"RepositoryList\");\nAnnouncements = new Mongo.Collection(\"Announcements\");\nMentorQueue = new Mongo.Collection(\"MentorQueue\");\n...
javascript
edit
0
0
mit
cc56d5cce91d4031b4a12d71739bdabd86b8481d
mpoegel/HackRPI-Status-Board,hack-rpi/Status-Board,hack-rpi/Status-Board,mpoegel/HackRPI-Status-Board,hack-rpi/Status-Board,mpoegel/HackRPI-Status-Board,mpoegel/HackRPI-Status-Board
lib/collections.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// Common ajax-handling functions for dashboard-like pages. Looks for <reload/>\n// elements to reload the page, and reports errors or failures via alerts.\n\ng_action_url = \"action.php\";\n\n// Note that this doesn't run if the $.aja...
javascript
edit
0
3
mit
81c22ea31edcadd73f459470923cf8ee62b09a8a
jeffpiazza/derbynet,jeffpiazza/derbynet,jeffpiazza/derbynet,jeffpiazza/derbynet,jeffpiazza/derbynet,jeffpiazza/derbynet,jeffpiazza/derbynet
website/js/dashboard-ajax.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nfunction booleanEditorController($scope, $rootScope, assetsService) {\r\n\r\n function setupViewModel() {\r\n $scope.renderModel = {\r\n value: false\r\n };\r\n\r\n if ($scope.model.config && $scope.mo...
javascript
edit
0
10
mit
35e3a39cc31db94a08672c85d6e44415ff686c33
PeteDuncanson/Umbraco-CMS,tcmorris/Umbraco-CMS,hfloyd/Umbraco-CMS,marcemarc/Umbraco-CMS,aaronpowell/Umbraco-CMS,umbraco/Umbraco-CMS,JeffreyPerplex/Umbraco-CMS,leekelleher/Umbraco-CMS,abjerner/Umbraco-CMS,hfloyd/Umbraco-CMS,bjarnef/Umbraco-CMS,aaronpowell/Umbraco-CMS,leekelleher/Umbraco-CMS,WebCentrum/Umbraco-CMS,lars-e...
src/Umbraco.Web.UI.Client/src/views/propertyeditors/boolean/boolean.controller.js
rejected_duplicate
Near-duplicate of sample 76419
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n\n( function( global, chrome, d )\n{\n // I know, UGLY, but it's just a prototype.\n function View( $element, manager )\n {\n this.manager = manager;\n this.$left = $element.find( '.left' );\n this.$rig...
javascript
edit
0
2
mit
9bddc584038883014c928fd46120090b37827b4c
romac/mdash,romac/mdash,romac/mdash
js/view.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar gulp = require( 'gulp' ),\n\tbower = require( 'gulp-bower' ),\n\tdel = require( 'del' ),\n\tvui = require( 'vui-helpers' );\n\ngulp.task( 'clean', function( cb ) {\n\tdel([ 'accordion.css' ], cb);\n} );\n\ngulp.task( 'lib', function...
javascript
edit
0
1
apache-2.0
4ccd42acf0f930562280640d176c5e5d80f6a18b
Brightspace/jquery-valence-ui-accordion
gulpfile.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar gulp = require('gulp');\nvar browserSync = require('browser-sync');\n\ngulp.task('default', ['serve']);\n\ngulp.task('serve', function() {\n browserSync.init(null, {\n server: {\n baseDir: './'\n },\n notify: false\n ...
javascript
edit
0
1
mit
d85c88ca5e9e069d889fc6a54e26bfe90cefcf3b
tvararu/tvararu.github.io,tvararu/tvararu.github.io
gulpfile.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nvar Db = require('dbjs')\n , relation = module.exports = require('dbjs/lib/_relation');\n\nrequire('./base');\n\nrelation.set('toDOMInputBox', function (document/*, options*/) {\n\tvar box, options = arguments[1]...
javascript
edit
0
4
mit
3af90105114d7e3c54d9c8113ac87f89b6aa839a
medikoo/dbjs-dom
input/_relation.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar gulp = require('gulp');\nvar webpack = require('webpack');\n\nvar clientConfig = require('./config/webpack.prod.client.js')\nvar serverConfig = require('./config/webpack.prod.server.js')\n\n\ngulp.task('bundle-client', function(done...
javascript
edit
0
2
mit
f783cd58b4794d2c79430adb09533d60e3ad01af
AdamSalma/Lurka,AdamSalma/Lurka
gulpfile.js
rejected_duplicate
Near-duplicate of sample 73730
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\n/* global TbplJob, Notification */\n\nsetTimeout(checkResult, 5000);\n\nfunction checkResult() {\n var tbpl = new TbplJob();\n var result = 'Fail!';\n if (tbpl.isDone()) {\n if (tbpl.isSuccessful()) {\n resul...
javascript
edit
0
3
mit
e50e843f0fa2faa7f2d7b591f3273cffef538820
evanxd/tbpl-hou,evanxd/tbpl-hou
js/check_result.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n(function(){\n var cleanNumber = function(i) {\n return i.replace(/[^\\-?0-9.]/g, '');\n },\n\n compareNumberReverse = function(a, b) {\n a = parseFloat(a);\n b = parseFloat(b);\n\n a = isNaN(a) ? 0 : a;\n b = isNaN(b)...
javascript
edit
0
3
mit
ce50cd526f259ac44c593dc2a1914e4106f427a0
jhilde/studentinsights,studentinsights/studentinsights,erose/studentinsights,studentinsights/studentinsights,jhilde/studentinsights,jhilde/studentinsights,erose/studentinsights,studentinsights/studentinsights,jhilde/studentinsights,erose/studentinsights,erose/studentinsights,studentinsights/studentinsights
app/assets/javascripts/roster/sorts/reverse_number.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n(function registerStackProcessor() {\n\n widget.parser.register( 'stack', {\n prefix: '$',\n doc: {\n name: \"${<i>variable</i>}\"\n },\n recursive: true,\n processor: decode\n });\n \n function decode( token, ...
javascript
edit
0
5
mit
d3c0d76c26119347957d55dbf6631aeaea36cab0
tony-jacobs/widget.js,tony-jacobs/widget.js
js/parser/stack.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nL.RotatedMarker = L.Marker.extend({\n options: {\n angle: 0\n },\n\tstatics: {\n\t\t// determine the best and only CSS transform rule to use for this browser\n\t\tbestTransform: L.DomUtil.testProp([\n\t\t\t'transform',\n\t\...
javascript
edit
0
3
mit
af2249bfb9a85a5517b7d4c0321173f5d862ee59
Stonelinks/Leaflet.PolylineDecorator,bbecquet/Leaflet.PolylineDecorator,bbecquet/Leaflet.PolylineDecorator,Stonelinks/Leaflet.PolylineDecorator
src/L.RotatedMarker.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar test = require('tap').test;\nvar browserify = require('browserify');\nvar vm = require('vm');\n\nfunction bundle (file) {\n test('bundle transform', function (t) {\n t.plan(1);\n\n var b = browserify();\n b.a...
javascript
edit
0
2
mit
3bbb038cd182d7f3694874acbabe9fce4b77b040
sidorares/pugify,sidorares/pugify,sidorares/browserify-jade,deedw/pugify,tellnes/browserify-jade,sidorares/browserify-jade,deedw/pugify,tellnes/browserify-jade
test/bundle.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar tests = Object.keys(window.__karma__.files).filter(function (file) {\n return (/Spec\\.js$/).test(file);\n});\n\nrequirejs.config({\n // Karma serves files from '/base'\n baseUrl: \"/base\",\n\n paths: {\n \"sugar...
javascript
edit
0
1
apache-2.0
6323a5ef929ac6322c5eb4cf3730e8a0df21cbca
sugarlabs/sugar-web,godiard/sugar-web
test/loader.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport fs from 'fs';\nimport path from 'path';\n\nimport { logFatal } from '../log';\n\nconst configPath = path.resolve(__dirname, 'config.js');\n\nif (!fs.existsSync(configPath)) {\n logFatal(`No config file called config.js found a...
javascript
edit
0
1
mit
7b74cba2f228f7a4bbab0fe6856b4842c47aaae1
melonmanchan/telegram-bot-iot-home
app/lib/config/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar React = require('react'),\n {Link} = require('react-router');\n\nmodule.exports = React.createClass({\n render: function() {\n let channel = '';\n if (this.props.params && this.props.params.name) {\n channel = `@${this....
javascript
edit
0
10
mit
32e492a065a57a14337f3043ab4509257e4755aa
Sekhmet/busy,busyorg/busy,Sekhmet/busy,busyorg/busy,ryanbaer/busy,ryanbaer/busy
src/app/PageActions.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports = {\n facebook: {\n appID: 'FACEBOOK_APP_ID',\n appSecret: 'FACEBOOK_APP_SECRET',\n callbackUrl: 'http://localhost:3000/auth/facebook/callback',\n profileFields: ['id', 'displayName', 'name', 'email', 'gender...
javascript
edit
0
0
mit
1ba988f827a3be2ad4d33301d5ae170cffcd27ad
scrumptiousAmpersand/journey,scrumptiousAmpersand/journey
auth.example.js
rejected_duplicate
Near-duplicate of sample 71102
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nfunction formatMoney(value) {\n var rem = value - ~~value;\n var arr = String(~~value).split('');\n var result = [];\n\n while (arr.length) {\n var from = Math.max(0, arr.length - 3);\n result.unshift(arr.spli...
javascript
edit
0
3
mit
779b5dfc590226388052062c98b329362de8ada7
akaragkiozidis/code-problems,AndrewKishino/code-problems,blakeembrey/code-problems,ankur-anand/code-problems,patrickford/code-problems,BastinRobin/code-problems,patrickford/code-problems,lgulliver/code-problems,blakeembrey/code-problems,cjjavellana/code-problems,nickell-andrew/code-problems,tahoeRobbo/code-problems,ran...
money-format/money-format.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst autoUpdater = require('electron').autoUpdater\nconst Menu = require('electron').Menu\n\nvar state = 'checking'\n\nexports.initialize = function () {\n autoUpdater.on('checking-for-update', function () {\n state = 'checking'\n ...
javascript
edit
0
4
mit
98596d7e98dfdf253d95511ccad880ce07c6c898
blep/electron-api-demos,PanCheng111/XDF_Personal_Analysis,PanCheng111/XDF_Personal_Analysis,blep/electron-api-demos,electron/electron-api-demos,blep/electron-api-demos,electron/electron-api-demos,PanCheng111/XDF_Personal_Analysis,blep/electron-api-demos,electron/electron-api-demos
auto-updater.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React from 'react'\nimport { getSiteProps } from 'react-static'\n//\nimport logoImg from '../logo.png'\n\nexport default getSiteProps(() => (\n<div>\n <div id=\"social-media-links\">\n <a target=\"_blank\" href=\"https://www....
javascript
edit
0
1
mit
4cf97eb49b15261f9aeb197a6c6c488f7082bea8
tanayseven/personal_website,tanayseven/personal_website,tanayseven/personal_website,tanayseven/personal_website
src/containers/Home.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nif (!global) {\n global = self;\n}\n\nlet { fetch, Request, Response, Headers, URL, URLSearchParams } = global;\nfetch = fetch.bind(global);\nexport { fetch, Request, Response, Headers, URL, URLSearchParams };\n\nif (!global.process) {...
javascript
edit
0
3
mit
3f595eb3dee06021ca5fe5994bc8500844230286
apollostack/apollo-server
packages/apollo-server-env/src/index.browser.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nimport JobClient from '../client';\n\nlet apiClient;\n\nclass DrushIORun {\n\n constructor(client, project, job, identifier, data = {}) {\n apiClient = client;\n this.project = project;\n this.job = job || new...
javascript
edit
0
2
mit
e97f2b91fbb50a63a5d831424d871f91499dba54
drush-io/api-client-js,drush-io/api-client-js
src/project/job/run/client.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport loggerSpec from 'react-server-module-tagger';\nimport path from 'path';\n\nmodule.exports = function() {\n\treturn {\n\t\tvisitor: {\n\t\t\tIdentifier(p, state) {\n\t\t\t\tconst {node} = p;\n\t\t\t\tconst {name} = node;\n\n\t\t\t...
javascript
edit
0
3
apache-2.0
8b357cc16eefad716cd1b22ceee75ee6423ac36c
redfin/react-server,lidawang/react-server,emecell/react-server,emecell/react-server,doug-wade/react-server,davidalber/react-server,szhou8813/react-server,redfin/react-server,lidawang/react-server,doug-wade/react-server,davidalber/react-server,szhou8813/react-server
packages/babel-plugin-react-server/src/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n#!/usr/bin/env node\n\nvar parseArgs = require('minimist');\nvar gonzales = require('..');\nvar fs = require('fs');\nvar path = require('path');\n\nvar options = getOptions();\nprocess.stdin.isTTY ? processFile(options._[0]) : processST...
javascript
edit
0
3
mit
f4cf0a97431feccd5e34f8c12ba1b304a827afee
brendanlacroix/gonzales-pe,brendanlacroix/gonzales-pe,tonyganch/gonzales-pe,tonyganch/gonzales-pe
bin/gonzales.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// An example configuration file.\nexports.config = {\n sauceUser: process.env.SAUCE_USERNAME,\n sauceKey: process.env.SAUCE_ACCESS_KEY,\n allScriptsTimeout: 11000,\n\n specs: [\n 'e2e/specs/*.js'\n ],\n\n capabilities: {\n ...
javascript
edit
0
0
mit
3003685020f4a81aeb363297e64aba430282fd2d
davidfurlong/ng-inspector,kennyx46/ng-inspector,rev087/ng-inspector,davidfurlong/ng-inspector,hafeez-syed/ng-inspector,hitesh97/ng-inspector,haithemaraissia/ng-inspector,rev087/ng-inspector,DrewML/ng-inspector,vitvad/ng-inspector,hitesh97/ng-inspector,vitvad/ng-inspector,hafeez-syed/ng-inspector,haithemaraissia/ng-insp...
test/protractor.conf.js
accepted
null
true