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\n// Create a Paper.js Path to draw a line into it:\nvar path = new Path();\n// Give the stroke a color\npath.strokeColor = 'black';\nvar start = new Point(100, 100);\n// Move to start and draw a line from there\npath.moveTo(start);\n// N...
javascript
edit
0
0
mit
91795ee6ec5ac7e4996e831fa1f13c04e8ba63ef
beepscore/paper_play
js/draw.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\napp.controller('indexController', ['$scope', '$http', function($scope, $http){\n\n $scope.currency = 'USD';\n $scope.codes = currencyCodes;\n\n $scope.handleCodeChange = function ($index) {\n $scope.currency = $scope.cod...
javascript
edit
0
3
apache-2.0
ee6cd3502702c45783545f9f0ac732238ce61ddf
nfeiglin/sailr-api
sailr-web/public/js/controllers/items/indexController.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar Configurations = {\n /* Blue themed palette */\n palette: {\n primary: {\n main: '#3F51B5'\n },\n secondary: {\n main: '#1565C0'\n },\n text: {\n primary: '#3...
javascript
edit
0
0
apache-2.0
dea1a7debcd51c3782f0bbfc9dce0c2d38583e4d
Minoli/carbon-apimgt,Minoli/carbon-apimgt,Minoli/carbon-apimgt
features/apimgt/org.wso2.carbon.apimgt.store.feature/src/main/resources/store/public/theme/defaultTheme.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports.serverCredentials = {\n host: 'host',\n port: 1234,\n username: 'username',\n password: 'password'\n};\nmodule.exports.localDirectory = './dist/';\nmodule.exports.remoteDirectory = 'remoteDirectory/';\n\n```\n\nApply ...
javascript
edit
0
0
mit
b38d409a04590d31ceeb5d0b83c55d0892d9e1c8
carlkuesters/anselm-kuesters,carlkuesters/anselm-kuesters,carlkuesters/anselm-kuesters
projects/frontend/deployment/config.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nclass SpawnStrategy {\n constructor(spawn) {\n this.spawn = spawn;\n this.memory = {};\n Memory.strategy = this.memory;\n }\n\n isSpawnReady(thresholdEnergy) {\n if (!this.spawn) {\n...
javascript
edit
0
5
mit
e40937082071501d7582edfc3dc95747c1cbed31
boushley/screeps
src/spawn-strategy.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport Vue from 'vue'\n\nconst transitionsKeys = [\n 'name',\n 'mode',\n 'css',\n 'type',\n 'enterClass',\n 'leaveClass',\n 'enterActiveClass',\n 'enterActiveClass',\n 'leaveActiveClass',\n 'enterToClass',\n 'leaveToClass'\n]...
javascript
edit
0
5
mit
4ba398230741f86580196dd1498c1821ba8e1057
jfroffice/nuxt.js,mgesmundo/nuxt.js,mgesmundo/nuxt.js,jfroffice/nuxt.js
lib/app/components/nuxt-child.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports = function getSubjectReplies(reddit,subject){\n var opts = {};\n if (subject.comment) {\n opts.comment = subject.comment;\n opts.depth = 2;\n opts.context = 0;\n } else {\n opts.depth = 1;\n }\n return re...
javascript
edit
0
4
mit
d8a0e1b9668a177e4e1fd515ff598c81a9254144
stuartpb/QIKlaxonBot,stuartpb/QIKlaxonBot
lib/reddit/getSubjectReplies.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\n/* global cordova */\n\ndefine(function(require, exports) {\n var Bacon = require('./ext/Bacon');\n var location = require('./location');\n var positionStream = location.streamMultiplePositions();\n\n var Po...
javascript
edit
0
1
bsd-3-clause
4c1099da320fed9aececf66268787d8725bec4d7
edina/fieldtrip-position-tracking,edina/fieldtrip-position-tracking
src/www/js/position-recorder.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict'\nconst path = require('path')\n\n/* Fractal theme\n----------------------------------------------------------------------------- */\n\n// Require the mandelbrot theme module\nconst mandelbrot = require('@frctl/mandelbrot')\...
javascript
edit
0
0
mit
e135f96c71ace048e9120d68a4b802154009ddce
alphagov/govuk_frontend_alpha,alphagov/govuk_frontend_alpha,alphagov/govuk_frontend_alpha
lib/fractal/govuk-theme/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport Ember from 'ember';\nconst { getOwner } = Ember;\n\nexport default Ember.Service.extend({\n i18n: Ember.inject.service(),\n\n convert: function(values) {\n var offerId = values.offer.id;\n var msg = values.body;\n var ...
javascript
edit
0
3
mit
fe60922b5ebb38a5845a0a2a2778f685155579ab
crossroads/shared.goodcity,crossroads/shared.goodcity
app/services/message-link-convertor.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport Ember from 'ember';\n\nexport default Ember.Route.extend({\n model: function () {\n return { \"menus\": \n {\n \"services\": \n [\n ...
javascript
edit
0
1
mit
edc212bb7698099a21e16d540886bbd1f695ce44
rodrigo-morais/ember-json-pretty,zipscene/ember-json-pretty,rodrigo-morais/ember-json-pretty,zipscene/ember-json-pretty
tests/dummy/app/routes/application.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar Transform = require('../../common/transform.js'),\n style = require('./util.js').style;\n\nfunction FormatNpm() {}\n\nTransform.mixin(FormatNpm);\n\nFormatNpm.prototype.write = function(name, level, args) {\n var colors = { debu...
javascript
edit
0
2
mit
b7044cfae77441bb1c2574709e805f9a88a15f80
mixu/minilog,sachintaware/minilog,mixu/minilog,sachintaware/minilog
lib/node/formatters/withstack.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/* eslint-env node */\n'use strict';\n\nmodule.exports = {\n allowedVersions: {\n 'ember-in-element-polyfill': '*',\n 'ember-get-config': '0.3.0 || 0.4.0 || 0.5.0',\n 'ember-modifier': '2.1.2 || 3.0.0',\n '@embroider/util':...
javascript
edit
0
0
mit
d7630bb06c97f40f461ce7f04a22a20237f9f4b7
ilios/common,ilios/common
tests/dummy/config/dependency-lint.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst parse = require('../lib/parse');\nconst cases = require('postcss-parser-tests');\nconst expect = require('chai').expect;\n\ndescribe('parse', () => {\n\tcases.each((name, css, json) => {\n\t\tit('should parse ' + name, () => {\n\t...
javascript
edit
0
1
mit
5487664f1f8f47355e406b60ad1a6cb89c85e55c
weepower/postcss-wee-syntax
tests/parse.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport Long from 'long';\nimport includeIoMixin from './io-mixin';\n\nexport class UnsignedHyper extends Long {\n static read(io) {\n let high = io.readInt32BE();\n let low = io.readInt32BE();\n return this.fromBits(low, hig...
javascript
edit
0
2
apache-2.0
59f343d1aa3e74fd70fc5b6add9bd248d7676deb
Jonavin/js-xdr,stellar/js-xdr,Jonavin/js-xdr,stellar/js-xdr
src/unsigned-hyper.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict'\n\nvar Instrumentation = require('../../lib/instrumentation')\n\nvar noop = function () {}\n\nmodule.exports = function mockClient (cb) {\n var client = {\n active: true,\n _httpClient: {\n request: cb || noop\n...
javascript
edit
0
2
bsd-2-clause
0c4bb09e55382144816bb36515f03a8c7b1816d6
opbeat/opbeat-node,opbeat/opbeat-node
test/instrumentation/_client.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports = {\n // get zero () { return browser.element('button*=0)'); },\n get zero() { return browser.element('button*=0'); },\n get one() { return browser.element('button*=1'); },\n get two() { return browser.element('button...
javascript
edit
0
1
mit
28f66518bc3789a51ad6d9321a6ba8866ea39780
JasonMFry/calculator,JasonMFry/calculator
test/specs/calculator/config.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports = {\n staticFileGlobs: [\n '/index.html',\n '/manifest.json',\n '/bower_components/webcomponentsjs/webcomponents-lite.min.js'\n ],\n navigateFallback: '/index.html'\n};\n\n```\n\nApply this change: Include vie...
javascript
edit
0
0
apache-2.0
63575d11f46086d80794c09ac08ca6fec627670c
vaadin-kim/stockwatcher-polymer,vaadin-kim/stockwatcher-polymer
sw-precache-config.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar dataSheetConfig = require('../data/dataSheetConfig');\nvar parseDataSheet = require('../lib/parseDataSheet');\n\nvar options = {\n host: dataSheetConfig.host,\n port: 443,\n path: '/feeds/list/' + dataSheetConfig.sheetID + ...
javascript
edit
0
2
mit
c8277cfe90035777aeea3e1c089ce9aaab4111e5
g0v/SunflowerDocumentaryAPI
lib/transferJSON.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n(function() {\n\n 'use strict';\n\n var yeoman = require('yeoman-generator'),\n scaffold = {};\n\n module.exports = yeoman.generators.Base.extend({\n\n constructor: function() {\n yeoman.generators.Base...
javascript
edit
0
3
mit
a141af2343e366e7aee48e5adebc10c0d4f7fdab
marcosmoura/generator-scaffold,marcosmoura/generator-scaffold
generators/run/index.js
accepted
null
true
[ { "role": "user", "content": "Write javascript code for the following: Add express functionality, listen to a port" }, { "role": "assistant", "content": "var express = require('express');\n\nvar app = express();\n\napp.set('port',3000);\n\n\n\nvar server = app.listen(app.get('port'), function() ...
javascript
new_file
0
1
mit
ce2b085adeaaa8b07b6e94935acf5a4c6cf0fe6d
dotanitis/mean-stack-app,dotanitis/mean-stack-app
app.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar fs = require('fs'),\n log = require('./log'),\n express = require('express'),\n app = express(),\n config = require('./config');\n pluginRoot = './plugins';\n\nlog.info('[app]', 'Scanning for plugins.');\n\nfs.readdirSync(plugi...
javascript
edit
0
3
mit
e5a4fa8e41bae6727e8b2d20abbfbc1fdb417692
nilzen/onmote
app.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n\n// ----------------------------------------------------------------\n// CardDetail Class\n\n// ----------------------------------------------------------------\n// Model\n\nclass CardDetailModel extends CommonModel {\n constructor({\...
javascript
edit
0
1
mit
162b34a5a1125bf90949da47ecfb897253628c86
AyaNakazawa/business_card_bank,AyaNakazawa/business_card_bank,AyaNakazawa/business_card_bank
js/myapp/card-detail.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/*\n * regex-pill\n * https://github.com/lgoldstien/regex-pill\n *\n * Copyright (c) 2014 Lawrence Goldstien\n * Licensed under the MIT license.\n */\n\n'use strict';\n\nvar RegexLibraryContents = {\n \"hostnames\":{\n \"datab...
javascript
edit
0
3
mit
2f7046d95cd1ede8fba9b490dba25cee1c90facf
lgoldstien/regexpill
lib/RegexLibrary.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n * https://github.com/Taranys/simplerating\n */\nangular.module('SimpleRating', [])\n .directive('simpleRating', function () {\n return {\n restrict: 'A',\n template: '<ul style=\"padding: 0\">' +\n ...
javascript
edit
0
2
mit
2a791b1eec3911176211d45c0a87fb7235e3da53
Taranys/simplerating
src/simplerating.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
ca83db3200e1990345297fe9bc35c57f7b1fdebc
SamyPesse/draft-js-table,SamyPesse/draft-js-table
lib/createHeader.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nif (!chai) {\n var chai = require('..');\n}\n\nvar assert = chai.assert;\n\nfunction fooThrows () {\n assert.equal('foo', 'bar');\n}\n\nsuite('configuration', function () {\n test('Assertion.includeStack is true', function () {\n ...
javascript
edit
0
4
mit
61db4e05c6ff0d9bbce43cd48d1e187f0dc0e0c6
meeber/chai,lucasfcosta/chai,meeber/chai,chaijs/chai,chaijs/chai,lucasfcosta/chai
test/configuration.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n#!/usr/bin/env node\nvar commander = require('commander');\nvar proxy = require('./proxy.js');\n\ncommander\n// .version(meta.version)\n .usage('[options] <endpoint>')\n .option('-p, --port <n>', 'Local proxy port, default 9200', par...
javascript
edit
0
0
mit
c7f6963fea105a18b1a7845401b1c9a6ef71250e
mikael-lindstrom/amazon-elasticsearch-proxy
cli.js
rejected_duplicate
Near-duplicate of sample 84271
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n\n// allow to require('riot')\nvar riot = module.exports = require(process.env.RIOT || require('path').resolve(__dirname, '../../riot'))\n\nvar compiler = require('riot-compiler')\n\n// allow to require('riot').compile\nriot.compile = c...
javascript
edit
0
1
mit
bb7f9fdc38e3feb681e536e29feb1bae038edf43
muut/riotjs,muut/riotjs,crisward/riot,crisward/riot
lib/server/index.js
rejected_duplicate
Near-duplicate of sample 84429
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n#!/usr/bin/env node\nvar colors = require('colors');\nvar ghlint = require('./index');\nvar util = require('util');\n\nfunction printResults(repo, results) {\n console.log(repo + ':');\n results.forEach(function (result) {\n var ma...
javascript
edit
0
4
mit
d05bb6bca50945ad4cda1b5dc8aa2c47fe0bd9fa
nicolasmccurdy/ghlint
cli.js
rejected_duplicate
Near-duplicate of sample 72679
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport { Meteor } from 'meteor/meteor';\nimport { createGraphQLMethod } from './createGraphQLMethod';\nimport { createGraphQLPublication } from './createGraphQLPublication';\nimport {\n DEFAULT_METHOD,\n DEFAULT_CREATE_CONTEXT,\n} fro...
javascript
edit
0
3
mit
3182ff11b3f720a4fd6a1370c822ae4f8e93717b
Swydo/ddp-apollo
lib/server/setup.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\nvar _ = require('lodash');\nvar path = require('path');\n\nfunction System() {\n var self = this;\n self.clearCache = clearCache;\n\n function clearCache(files) {\n if (files) {\n clearCacheForFiles(files);\n...
javascript
edit
0
2
mit
53f182418e4db346f058d22b2f427efe25fc992a
arpinum-oss/cluck
lib/tools/System.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n(function() {\n function showLoading(ionicLoading, text) {\n ionicLoading.show({\n template: text,\n noBackdrop: true,\n duration: 2000\n });\n }\n\n angular.module(\"proBebe.controllers\")\n .controller(\"AuthC...
javascript
edit
0
2
mit
6f96baf5660267704857e38c6ca8b48b9f634ae8
InstitutoZeroaSeis/probebe-app,InstitutoZeroaSeis/probebe-app
www/js/controllers/auth_ctrl.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport fs from 'fs';\nimport path from 'path';\nimport Sequelize from 'sequelize';\nimport dotenv from 'dotenv';\nimport dbConfig from '../config/config';\n\nconst basename = path.basename(module.filename);\nconst env = process.env.NODE...
javascript
edit
0
3
mit
2dfe5a17e5c9b7eab12eef1cbc90da7b85a2ea87
nosisky/Hello-Books,nosisky/Hello-Books
server/models/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar context = {\n name : 'Eric',\n numPhotos: 1000,\n takenDate: Date.now()\n};\n\n```\n\nApply this change: Update photos Handlebars example to use \"Annie\"" }, { "role": "assistant", "content": "var context =...
javascript
edit
0
0
bsd-3-clause
899fae869b2137511bd2435dedd9950db861a553
okuryu/formatjs-site,ericf/formatjs-site,ericf/formatjs-site
examples/handlebars/message/context.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport db, { normaliseFindResult } from 'src/pouchdb'\nimport { deleteDocs } from 'src/page-storage/deletion'\nimport { addToBlacklist } from '..'\n\n/**\n * Handles confirmation and running of a quick blacklist request from the popup s...
javascript
edit
0
3
mit
a6c6d36515ebbd797a6e85d20a54a6c9262641b9
WorldBrain/WebMemex,WorldBrain/WebMemex
src/blacklist/background/quick-blacklist-confirm.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar fs = require('fs')\nvar path = require('path')\nvar config = require('../lib/config')\nvar features = require('../lib/features')\n\nmodule.exports = function(req, res) {\n fs.readFile(path.join(__dirname+'/../package.json'), func...
javascript
edit
0
3
isc
7795df0b0347afe59de6af3b81cf92d97a74728d
codius/codius-host,codius/codius-host
routes/host_meta.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n\nvar fs = require('fs');\nvar path = require('path');\n\nmodule.exports = function(jobid, conf){\n\n var executionmethods = require('./executionserver.methods')(conf);\n\n var cwd = path.join(conf.storagedir, jobid);\n \n e...
javascript
edit
0
4
apache-2.0
a3df753dac911d14c4765db198bc889b7bb6727d
juanprietob/clusterpost,juanprietob/clusterpost,juanprietob/clusterpost
src/clusterpost-execution/jobdelete.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst contractHelper = require('../contracts/contractHelpers.js');\nconst web3Connection = require('../web3.js');\nconst loggers = require('../loggers/events.js');\n\nconst web3 = web3Connection.web3;\n\nconst buySvc = {\n buyTicket: (...
javascript
edit
0
2
mit
4a00a244030d1684972ee7b366a1ecb18fc07cbc
kevinbrosamle/ticket-sherpa,chrispicato/ticket-sherpa,andrewk17/ticket-sherpa,digitalsherpas/ticket-sherpa,chrispicato/ticket-sherpa,digitalsherpas/ticket-sherpa,kevinbrosamle/ticket-sherpa,andrewk17/ticket-sherpa
server/ethereum/services/buySvc.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React from 'react';\nimport PropTypes from 'prop-types';\nimport cn from 'classnames';\n\nimport styles from './Base.module.css';\n\nconst renderLabel = label => {\n if (typeof label === 'undefined') {\n return null;\n }\n ...
javascript
edit
0
2
mit
404231a6b17227bdce7babccf523b8eed379c828
goodjoblife/GoodJobShare
src/components/common/reaction/Base.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport classNames from 'classnames/dedupe';\nimport {Link} from 'react-router';\nimport React from 'react';\n\nclass PageHeaderTabs extends React.Component {\n render() {\n let {props: {tabs}} = this;\n\n let tabElements = tabs.m...
javascript
edit
0
2
apache-2.0
3582cfe60a9aec519cfe329c5872af80247212e3
dcos/dcos-ui,dcos/dcos-ui,dcos/dcos-ui,dcos/dcos-ui,dcos/dcos-ui
src/js/components/NewPageHeaderTabs.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n(function(global) {\n \"use strict\";\n\n // ulta-simple Object.create polyfill (only does half the job)\n var create = Object.create || (function() {\n var Maker = function(){};\n return function(prototype) {\n Maker.prot...
javascript
edit
0
3
bsd-3-clause
d56b4b9ead00cd2b33113d4d155eef10653b7d30
Mr0grog/newless,Mr0grog/newless
newless.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport { roundBalance } from '../../common/tools';\nimport { info } from '../broadcast';\nimport { observer as globalObserver } from '../../../common/utils/observer';\n\nexport default Engine =>\n class Balance extends Engine {\n ...
javascript
edit
0
2
mit
f2fe1a4a457fb0fb3021f862783efa68f299d967
binary-com/binary-bot,binary-com/binary-bot,aminmarashi/binary-bot,aminmarashi/binary-bot
src/botPage/bot/TradeEngine/Balance.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nangular.module('Mccy.routes', [\n\t'ngRoute'\n])\n\n.config(function ($routeProvider) {\n\t$routeProvider\n\t.when('/view', {\n\t\ttemplateUrl: 'views/view-containers.html',\n\t\tcontroller: 'ViewContainersCtrl'\n\t})\n\t.when('/new-ser...
javascript
edit
0
1
apache-2.0
d1378799a32cafd23f04221286c0198203d39618
itzg/minecraft-container-yard,itzg/minecraft-container-yard,moorkop/mccy-engine,itzg/minecraft-container-yard,itzg/minecraft-container-yard,moorkop/mccy-engine,moorkop/mccy-engine,moorkop/mccy-engine
src/main/resources/static/js/routes.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n(function() {\n 'use strict';\n\n angular\n .module('dowser')\n .factory('AmChartGraph', AmChartGraphService);\n\n /** @ngInject */\n function AmChartGraphService() {\n function AmChartGraph(data, index) {\n return {\n ...
javascript
edit
0
5
mit
e8f0219d73e05cbc53c8b9f9820df1f8be207eb6
mitsuishihidemi/dowser,mitsuishihidemi/dowser,mitsuishihidemi/dowser
client/src/app/components/chart/amcharts/graph.service.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport { connect } from './wsActions'\nimport {\n setDashboards,\n play,\n} from './dashboardsActions'\nimport {\n notifySuccess,\n notifyError,\n} from './notificationsActions'\n\nexport const FETCH_CONFIGURATION = ...
javascript
edit
0
2
mit
463b5e5936079c580aa72700f9e872b816b5409c
plouc/mozaik,plouc/mozaik
src/ui/actions/configurationActions.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst Vec3 = require('vec3').Vec3\nconst rand = require('random-seed')\n\nfunction generation ({ version, seed, level = 50 } = {}) {\n const Chunk = require('prismarine-chunk')(version)\n const mcData = require('minecraft-data')(versi...
javascript
edit
0
10
mit
3e2af6645d21512dc2d63e6002757c5dd6439091
PrismarineJS/flying-squid,mhsjlw/flying-squid,demipixel/flying-squid
src/lib/worldGenerations/nether.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports = function(page, dataType, navigationData) {\n var re = /(.*)(-\\d+)?$/\n var array = re.exec(page)\n if(array && array[1] && navigationData && navigationData[array[1]]) {\n return navigationData[array[1]][dataType]...
javascript
edit
0
7
mit
eb66a08f8974d7ec907f22780599507b6cc16de0
zurb/building-blocks,zurb/building-blocks
src/panini-helpers/get-nav-data.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// If you try printing the below you would see \"[object Object]\"\" which is not that useful.\n\n// Instead, you can click \"Inspect it\" to see the result in the JavaScript console where you can look inside the object.\n// That result...
javascript
edit
0
0
mit
bc5ed20ed2f6c26d3e2053a89a7fdf2dfcb88029
pdfernhout/Twirlip7,pdfernhout/Twirlip7,pdfernhout/Twirlip7
src/ui/examples/inspecting-an-object.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict';\n\n/* global Connector */\n\nConnector.playerSelector = '.page-station__bar';\nConnector.trackArtImageSelector = '.slider__items > div:nth-child(3) .track__cover';\nConnector.trackSelector = '.slider__items > div:nth-child...
javascript
edit
0
4
mit
5e2882a1ce4c44d7f6c76168006e9b9c6cb8c034
ex47/web-scrobbler,david-sabata/web-scrobbler,inverse/web-scrobbler,carpet-berlin/web-scrobbler,ex47/web-scrobbler,usdivad/web-scrobbler,alexesprit/web-scrobbler,david-sabata/web-scrobbler,alexsh/web-scrobbler,Paszt/web-scrobbler,galeksandrp/web-scrobbler,fakelbst/Chrome-Last.fm-Scrobbler,Paszt/web-scrobbler,alexesprit...
connectors/v2/yandexradio.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nRegExp.escape = function(text) {\n if (!arguments.callee.sRE) {\n var specials = [\n '/', '.', '*', '+', '?', '|',\n '(', ')', '[', ']', '{', '}', '\\\\'\n ];\n arguments.callee.sRE = new RegExp(\n '(\\\\' + spe...
javascript
edit
0
2
mit
c689166c48296bcb65a468eff4c30cd56dce60eb
jacksonfish/webrat,irfanah/webrat,johnbintz/webrat,johnbintz/webrat,brynary/webrat,brynary/webrat,irfanah/webrat,irfanah/webrat,jacksonfish/webrat
lib/webrat/selenium/location_strategy_javascript/label.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// Copyright (C) 2014 Domenic Denicola. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n\n/*---\ndescription: Array.prototype.contains skips holes, and does not treat them as undefined\nauth...
javascript
edit
0
0
bsd-2-clause
b2bc760cf5877dfc75d0b7989fc7964ba8f1b8eb
tc39/Array.prototype.includes,tc39/Array.prototype.includes,tc39/Array.prototype.includes
test/Array.prototype.contains_holes.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar asteroid = require('asteroid');\n\nmodule.exports = asteroid.createDataSource({\n connector: require('asteroid-connector-rest'),\n debug: false,\n operations: [\n {\n name: 'geocode',\n paramete...
javascript
edit
0
0
mit
6b2ee84cc67ab88bbee18e7b4f947a60b027badd
sam-github/sls-sample-app,svennam92/loopback-example-app,hacksparrow/loopback-example-app,Joddsson/loopback-example-app,svennam92/loopback-example-app,jewelsjacobs/loopback-example-app,strongloop-bluemix/loopback-example-app,craigcabrey/loopback-example-app,strongloop-bluemix/loopback-example-app,rvennam/loopback-examp...
data-sources/rest-geocode.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/*\n * Copyright 2014-2015 Hewlett-Packard Development Company, L.P.\n * Licensed under the MIT License (the \"License\"); you may not use this file except in compliance with the License.\n */\n\nrequire.config({\n baseUrl: 'src/main...
javascript
edit
0
0
mit
444b6f71ef1f90e184383e5d89f336874dbf24c0
hpe-idol/java-powerpoint-report,hpautonomy/find,LinkPowerHK/find,hpe-idol/find,hpautonomy/find,hpautonomy/find,LinkPowerHK/find,hpe-idol/find,hpe-idol/find,hpe-idol/find,LinkPowerHK/find,hpautonomy/find,hpautonomy/find,hpe-idol/find,LinkPowerHK/find,hpe-idol/java-powerpoint-report,LinkPowerHK/find
src/test/js/test-require-config.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nQUnit.config.urlConfig.push({\n id: \"jquery\",\n label: \"jQuery version\",\n value: [\"3.1.1\", \"3.0.0\", \"2.2.4\", \"2.1.4\", \"2.0.3\", \"1.12.4\", \"1.11.3\"],\n tooltip: \"What jQuery Core version to test against\"\n});\n\n/...
javascript
edit
0
4
mit
48ed3b296cd7efa5542f93abbc6226ea8d06e320
DavyJonesLocker/client_side_validations-simple_form,DavyJonesLocker/client_side_validations-simple_form,DavyJonesLocker/client_side_validations-simple_form
test/javascript/public/test/settings.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React from 'react';\n\nimport PipelinesBanner from './pipelines';\n\nclass Banners extends React.Component {\n render() {\n return (\n <div className=\"container mb4\">\n <PipelinesBanner id=\"pipelines\" onHideCl...
javascript
edit
0
5
mit
2c759dd22048b855bee5617ec7fc11edb99e94d9
fotinakis/buildkite-frontend,buildkite/frontend,fotinakis/buildkite-frontend,buildkite/frontend
app/components/layout/Banners/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar ds18b20 = require('../services/ds18b20.js');\nvar logger = require('../services/logger.js');\nvar _ = require('lodash');\n\nvar sensors;\nvar config;\n\nvar init = function (cfg) {\n config = cfg || {};\n\n sensors = _.filter(...
javascript
edit
0
4
mit
6032a34d584f6d8d43ec56112a1b128d10bda6d0
Teagan42/MagratheaGrow.in
src/jobs/monitor.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport angular from 'angular';\nimport uiRouter from 'angular-ui-router';\nimport ngMaterial from 'angular-material';\nimport Common from './common/common';\nimport Components from './components/components';\nimport AppComponent from '....
javascript
edit
0
1
mit
ffa453412ebe8e6c0ca588d6478138a89c6073dd
yunity/karrot-frontend,yunity/foodsaving-frontend,yunity/karrot-frontend,yunity/karrot-frontend,yunity/foodsaving-frontend,yunity/foodsaving-frontend,yunity/karrot-frontend,yunity/foodsaving-frontend
client/app/app.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport Ember from 'ember';\n\nexport default Ember.Controller.extend({\n needs: ['application'],\n selectedPerson: Ember.computed.alias('controllers.application.attrs.person'),\n errorMessage: null,\n titleIsValid: function() {\n ...
javascript
edit
0
2
mit
5181e1f5bc4efb1c1dd6682137b3af7079c262a6
opengovernment/person-widget,opengovernment/person-widget
app/controllers/questions/new.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst ScheduleTweet = require('./ScheduleTweet');\nconst GearTweet = require('./GearTweet');\nconst SalmonRunTweet = require('./SalmonRunTweet');\nconst SalmonRunGearTweet = require('./SalmonRunGearTweet');\nconst NewWeaponTweet = requi...
javascript
edit
0
0
mit
ec52eae6fc73d3b38a1d8b06dabd817849306474
misenhower/splatoon2.ink,misenhower/splatoon2.ink,misenhower/splatoon2.ink
src/app/twitter/tweets/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n$(function () {\n $('#search_movie').submit(function(){\n var $form = $(this);\n var movieName = $form.children('#movie_name_input').val();\n var movieYear = $form.children('#movie_year_input').val();\n\n var apiUrl ...
javascript
edit
0
1
mit
d3e2df79ecf33d7284fbb0d868d866b776dabce1
mrnugget/anygood,mrnugget/anygood,mrnugget/anygood
public/js/script.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n * Error Screen\n *\n <Error text={'Server is down'} />\n *\n * React Native Starter App\n * https://github.com/mcnamee/react-native-starter-app\n */\nimport React, { PropTypes } from 'react';\nimport { View } from 'react-native...
javascript
edit
0
2
mit
160a3b046fd10c898acc8c8761dcf670d96bb4c8
arayi/SLions,b1alpha/Smoothie-Du-Jour,arayi/SLions,arayi/SLions,b1alpha/Smoothie-Du-Jour,b1alpha/Smoothie-Du-Jour
src/components/general/Error.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n(function () {\n 'use strict';\n\n var isMac = /Mac/i.test(navigator.platform),\n isIOS = /iPhone|iPad|iPod/i.test(navigator.userAgent),\n isAndroid = /Android/i.test(navigator.userAgent),\n isWindowsPhone = ...
javascript
edit
0
3
apache-2.0
2f9a83ad860a2c3dcbe97715f73cd958ddd5afcb
einhverfr/binary-static,junbon/binary-static-www2,massihx/binary-static,animeshsaxena/binary-static,einhverfr/binary-static,borisyankov/binary-static,einhverfr/binary-static,animeshsaxena/binary-static,borisyankov/binary-static,brodiecapel16/binary-static,brodiecapel16/binary-static,borisyankov/binary-static,animeshsax...
src/javascript/pages/chartapp.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports = {\n // output config\n dist: {\n min: '~/square.{type}.{ext}'\n , dev: '~/square.{type}.{ext}'\n }\n\n // plugin configuration\n , plugin: {}\n\n // hinting and linting\n , jshint: require('...
javascript
edit
0
0
mit
02c641a353b694c4554ca68a239827fde3e044dc
observing/square
defaults/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React, { PropTypes } from 'react'\n\nexport default class Html extends React.Component {\n render () {\n return (\n <html>\n <head>\n <title>\n {this.props.title}\n </title>\n <link type='text/css'...
javascript
edit
0
1
mit
bef2ac16c67434bed013fdcd069b2b7973b3fd5f
svagi/httptest
www/src/pages/Html.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n(function () {\n var loadingElement = document.getElementsByClassName(\"loading\")[0];\n loadingElement.textContent = \"Loading...\";\n\n\n function start() {\n var scriptElement = document.createElement(\"script\");\n ...
javascript
edit
0
2
mit
d8ff30d3d76302e3730d44d5ed8ce500214a4ef8
djcsdy/words-that-rhyme-with-purple
resources/loader.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar nconf = require('nconf');\n\nvar scheConf = new nconf.Provider();\nvar mainConf = new nconf.Provider();\nvar optConf = new nconf.Provider();\nvar name2Conf = {\"sche\" : scheConf, \"main\": mainConf, \"opt\": optConf};\n\nscheConf.f...
javascript
edit
0
1
mit
c56eb8e8c3ea46bd777cf2cd7675c5eb675df161
jdkato/scheduler,jdkato/scheduler
configuration.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport { combineReducers } from 'redux';\nimport { fetchReducer } from 'controllers/fetch';\nimport { paginationReducer } from 'controllers/pagination';\nimport { loadingReducer } from 'controllers/loading';\nimport {\n NAMESPACE,\n F...
javascript
edit
0
6
apache-2.0
4142a09bbaf3fe3ec38e26421f5417eed512ac47
reportportal/service-ui,reportportal/service-ui,reportportal/service-ui
app/src/controllers/filter/reducer.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst mongoose = require('mongoose')\nconst shortId = require('shortid')\nconst Schema = mongoose.Schema\n\nconst assetSchema = Schema({\n _shortId: {type: String, unique: true, default: shortId.generate},\n tagId: { type: String, tex...
javascript
edit
0
0
mit
ada5c08ebdccb0fedbd5cee4758c8c4ea20c0c79
timramsier/asset-manager,timramsier/asset-manager,timramsier/asset-manager
api/js/schema.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport { connect } from \"react-redux\";\nimport EntriesPage from \"../components/EntriesPage.js\";\nimport { clearSearchResults } from \"../library/messaging.js\";\nimport { searchEntriesForTerm } from \"../../shared/library/messaging....
javascript
edit
0
2
mit
c7c1c94635bc499b8c33fc4c9b65033ef2c24c89
buttercup-pw/buttercup-browser-extension,perry-mitchell/buttercup-chrome,buttercup-pw/buttercup-browser-extension,perry-mitchell/buttercup-chrome
source/popup/containers/EntriesPage.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nexports = module.exports = function(parse, csrfProtection, loadState, authenticate, proceed) {\n \n // TODO: Move this file to \"password/handlers/authenticate\"\n \n return [\n parse('application/x-www-form-urlencoded'),\n cs...
javascript
edit
0
1
mit
9fb13ddc4ee61d1776ca311cdc94311e0e8ecaef
authnomicon/nodex-aaa-login
app/password/handlers/authenticate.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n\"use strict\";\n\nangular.module(\"angular-mobile-docs\")\n .factory(\"MockFetchService\", function ($http, $q) {\n\n var config = {\n url: \"http://localhost:8080/assets/code.angularjs.org/\"\n };\n\n ...
javascript
edit
0
1
apache-2.0
3cd5a7649adbb7a227f849c4cf73ec2ef553ae6d
robinboehm/angular-mobile-docs,robinboehm/angular-mobile-docs,robinboehm/angular-mobile-docs,robinboehm/angular-mobile-docs
app/scripts/services/MockFetchService.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar importcss = require('rework-npm')\n , rework = require('rework')\n , vars = require('rework-vars')\n , path = require('path')\n , read = require('fs').readFileSync\n\nmodule.exports = function (opts, cb) {\n opts = opts || {}\n...
javascript
edit
0
3
mit
2e2348be48f999682bfc420852121adfc6a627e9
atomify/atomify-css
css.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport buffer from '../buffer';\n\nfunction websocket({ url, bufferTime = 0 }, { feed }) {\n const buf = buffer(feed, bufferTime);\n let socket;\n\n return {\n start: () => {\n socket = new WebSocket(url);\n socket.binar...
javascript
edit
0
2
apache-2.0
b056642ff76757bcb3b9481670c2f5e3b34397f7
asciinema/asciinema-player,asciinema/asciinema-player
src/driver/websocket.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/* eslint-disable import/no-extraneous-dependencies */\nrequire('dotenv').config();\nconst test = require('ava').test;\nconst pickpocket = require('../pickpocket');\n\nconst p = pickpocket({\n consumerKey: process.env.CONSUMER_KEY\n});...
javascript
edit
0
1
mit
ff4795dc9788e4d580d75741c235b48d0e4a43f9
janis-kra/Pickpocket
__test__/pickpocket.integration.test.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar compute = require('./hamming').compute;\n\ndescribe('Hamming', function () {\n\n it('no difference between identical strands', function () {\n expect(compute('A', 'A')).toEqual(0);\n });\n\n xit('complete hamming distance for ...
javascript
edit
0
1
mit
74520011c07a05c357e0679ae7832d456008c5df
nicgallardo/xjavascript,a25patel/xjavascript,JenanMannette/xjavascript,ZacharyRSmith/xjavascript,JenanMannette/xjavascript,cloudleo/xjavascript,cloudleo/xjavascript,a25patel/excercismExcercises,a25patel/xjavascript,a25patel/excercismExcercises,exercism/xjavascript,schorsch3000/xjavascript,Vontei/xjavascript,wobh/xjavas...
hamming/hamming_test.spec.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nredmineApp.controller('IssueShowController', function($scope, $rootScope, $window, $routeParams, $location, ProjectService, IssueService, Restangular) {\n\t$scope.issue = {};\n\n\tProjectService.get($routeParams.project_id).then(functio...
javascript
edit
0
2
mit
23766ec217eb39a9318bb51271a8021db136de29
tomzx/redmine.js,tomzx/redmine.js
assets/js/app/controllers/Issues/Show.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport deviceMiddleware from 'express-device';\nimport express from 'express';\nimport bodyParser from 'body-parser';\nimport winston from 'winston';\n\nimport routerRender from './middleware/routerRender';\nimport errorRender from './m...
javascript
edit
0
4
mit
8e085d9184c4883be92f74e18417cdebd972cc7f
just-paja/improtresk-web,just-paja/improtresk-web
src/server/index.js
rejected_duplicate
Near-duplicate of sample 70815
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// This is a manifest file that'll be compiled into application.js, which will include all the files\n// listed below.\n//\n// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,\n// or v...
javascript
edit
0
0
mit
cedab8e26fd8342b6e9903f09bf5ba08f88138db
williambarry007/caboose-cms,williambarry007/caboose-cms,williambarry007/caboose-cms
app/assets/javascripts/caboose/admin.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport Collapse from 'ember-bootstrap/components/base/bs-collapse';\n\nexport default Collapse.extend({\n classNameBindings: ['collapse', 'showContent:show', 'collapsing']\n});\n\n```\n\nApply this change: Remove redundant class name b...
javascript
edit
0
0
mit
9c1fbeeb7037b1f0e04ea09d021380b2623516d3
jelhan/ember-bootstrap,kaliber5/ember-bootstrap,kaliber5/ember-bootstrap,jelhan/ember-bootstrap
addon/components/bs4/bs-collapse.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n(function (root, factory) {\n if (typeof exports === 'object') {\n // CommonJS\n module.exports = factory();\n } else if (typeof define === 'function' && define.amd) {\n // AMD\n define([], function () {\n return (roo...
javascript
edit
null
null
mit
ac7c650445d9188823deda1be39dd16c74d3a9c9
wangyue-ramy/snabbt.js,CreaturePhil/snabbt.js,elwebdeveloper/snabbt.js,lowyjoe/snabbt.js,output/snabbt.js,RubyLouvre/snabbt.js,daniel-lundin/snabbt.js,mubassirhayat/snabbt.js
src/module_pre.js
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar lines = document.querySelectorAll('.diff-line-code');\n\nfor (var i = 0; i < lines.length; i++) {\n var line = lines[i],\n lineContent = line.innerText,\n firstChar = lineContent[0],\n restContent = lineContent.slice...
javascript
edit
0
0
mit
fc711737c81d53b06b40740afc4b3c0005ca7e80
rot-13/github-cleandiff,rot-13/github-cleandiff,iic-ninjas/github-cleandiff,iic-ninjas/github-cleandiff
github-cleandiff.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n // Copyright: 2013 PMSI-AlignAlytics\n // License: \"https://github.com/PMSI-AlignAlytics/dimple/blob/master/MIT-LICENSE.txt\"\n // Source: /src/objects/axis/methods/_parseDate.js\n this._parseDate = functio...
javascript
edit
0
4
mit
ab7cef683322c39bf42e78f5387236ae8d6476e9
mlzummo/dimple,rebaselabs/dimple,timothymartin76/dimple,danucalovj/dimple,ganeshchand/dimple,rpaskowitz/dimple,PMSI-AlignAlytics/dimple,dbirchak/dimple,upsight/dimple,bbirand/dimple,sajith/dimple,boneyao/dimple,gdseller/dimple,zhangweiabc/dimple,rebaselabs/dimple,mlzummo/dimple,sajith/dimple,PMSI-AlignAlytics/dimple,up...
src/objects/axis/methods/_parseDate.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n(function() {\n function selector(v) {\n return '[touch-action=\"' + v + '\"]';\n }\n function rule(v) {\n return '{ -ms-touch-action: ' + v + '; touch-action: ' + v + '; }';\n }\n var attrib2css = [\n 'none',\n 'auto',...
javascript
edit
0
2
bsd-3-clause
6c1318e8ec6e7a59e01263a5922521d848fde233
roblarsen/pointer-events.js
src/touch-action.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n$(function() {\n\t$(\".add\").button();\n\t$(\".edit\").button();\n\t$(\".delete\").button().click(function() {\n\t\tvar res = confirm(\"Are you sure you want to delete this item?\");\n\t\tif (res)\n\t\t\twindow.location.href=$(this).at...
javascript
edit
0
2
mit
ef48a4d4ff9a880d3d2be436ece22f5b86e0afaf
claw68/alchemy,claw68/alchemy,claw68/alchemy,claw68/alchemy
includes/js/main.js
rejected_duplicate
Near-duplicate of sample 99512
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n;(function(){\n var app = angular.module('Communicant', []);\n\n app.controller('ListOfMessagesController', ['$scope', '$http', function($scope, $http){\n $http.get(\"/messages.json\")\n .then(function(response){\n $scope.m...
javascript
edit
0
1
mit
2569ca89d308a23be218ba6e7a890e11de201b1b
Communicant/app,Communicant/app,Communicant/app
app/assets/javascripts/messaging.js
rejected_duplicate
Near-duplicate of sample 81972
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nconst WebpackDevServer = require('webpack-dev-server');\nconst webpack = require('webpack');\nconst config = require('../webpack/webpack.config.dev');\n\nnew WebpackDevServer(webpack(config), {\n publicPath: config.output.publicPath,\n...
javascript
edit
0
2
mit
63a2622f531d99fa0056709f90c996290dcab047
hannupekka/react-pack,hannupekka/react-pack
server/devServer.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports = function( config ) {\n config.set({\n // base path, that will be used to resolve files and exclude\n basePath: '',\n\n frameworks: ['mocha','requirejs'],\n\n // list of files / patterns to load in the brows...
javascript
edit
0
1
mit
280c691c77f3644e79030ea9d06c12d66963c85a
kaldor/generator-pugpig,kaldor/generator-pugpig
testing/templates/karma.conf.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport React, { Component } from 'react';\nimport { connect } from 'react-redux';\n\n\nclass Home extends Component {\n render () {\n return (\n <div>\n Wellcome to auction-app! ;)\n </div>\n );\n }\n}\n\nexport...
javascript
edit
null
null
mit
076cf40cdb69f838dc8468bdbacce7df605c3892
mersocarlin/auction-app,mersocarlin/auction-app
app/containers/home.js
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```javascript\nmodule.exports = {\n CONFIG_FILE_NAME: 'ssh-seed.yml',\n PASS_FILE_NAME: 'ssh-seed.pass.yml',\n DEFAULT_CONFIG: {\n passphrase: {\n length: 12,\n options: '',\n },\n ssh_add: {\n 'default': false,\n optio...
javascript
edit
0
0
mit
0e84fae622294e398c6d91207a59c34373c20c80
suzuki-shunsuke/ssh-seed,suzuki-shunsuke/ssh-seed
lib/constants.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict'\n\nconst path = require('path')\n\nconst projectRoot = path.join(__dirname, '..')\nconst appPackage = require(path.join(projectRoot, 'package.json'))\n\nfunction getDistPath () {\n return path.join(projectRoot, 'dist', `${...
javascript
edit
0
1
mit
8d077e561dd8ac38c6fab90cabb2c7d5df15992e
artivilla/desktop,shiftkey/desktop,j-f1/forked-desktop,desktop/desktop,artivilla/desktop,j-f1/forked-desktop,kactus-io/kactus,hjobrien/desktop,hjobrien/desktop,artivilla/desktop,kactus-io/kactus,gengjiawen/desktop,j-f1/forked-desktop,shiftkey/desktop,desktop/desktop,desktop/desktop,BugTesterTest/desktops,desktop/deskto...
script/dist-info.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\ndescribe('logge', function() {\n var $console, log;\n\n beforeEach(module('logge'));\n beforeEach(function() {\n var logMethod = function(msg) { log += (msg + ';'); };\n\n log = '';\n $console = {\n 'debug': logMethod,\...
javascript
edit
0
1
mit
d63082734a20580eb29a8b2419ed36a386d46234
nysa/logge
spec/loggeSpec.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nvar controller;\n$(function(){\n var appName = \"[ENTER YOUR APP NAME HERE]\",\n app = $.ku4webApp.app();\n controller = $.ku4webApp.controllers[appName](app)\n $.ku4webApp.views[appName](app);\n\n/*=====================...
javascript
edit
0
1
mit
8f498053041a216f04373380822016c90efc309b
kodmunki/ku4js-webApp,kodmunki/ku4js-webApp,kodmunki/ku4js-webApp,kodmunki/ku4js-webApp,kodmunki/ku4js-webApp
_TEMPLATE/applications/-Application-.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n// js/services/note.js\n\n(function() {\n \"use strict\";\n\n angular.module(\"NoteWrangler\")\n .factory(\"Note\", NoteFactory);\n\n NoteFactory.$inject = [\"$http\"];\n\n function NoteFactory($http) {\n function getAllNotes(...
javascript
edit
0
1
mit
1c74bbc69ba577f32a8411b1075796869dd4c549
var-bin/angularjs-training,var-bin/angularjs-training,var-bin/angularjs-training,var-bin/angularjs-training
NoteWrangler/public/js/services/note.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport path from 'path';\nimport { logger } from '@storybook/node-logger';\n\nimport { getInterpretedFile } from './interpret-files';\n\nfunction loadCustomAddons({ configDir }) {\n const storybookCustomAddonsPath = getInterpretedFile(...
javascript
edit
0
5
mit
a8e06d5f2050f7e059d6c32079cbc8b5f127a0da
storybooks/storybook,kadirahq/react-storybook,storybooks/storybook,storybooks/react-storybook,kadirahq/react-storybook,storybooks/storybook,storybooks/storybook,storybooks/react-storybook,storybooks/storybook,storybooks/storybook,storybooks/react-storybook,storybooks/storybook,storybooks/react-storybook
lib/core/src/server/utils/load-custom-addons-file.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/*global defineSuite*/\ndefineSuite(['DynamicScene/KmlDataSource',\n 'DynamicScene/DynamicObjectCollection',\n 'Core/Event'\n ], function(\n KmlDataSource,\n Dynam...
javascript
edit
0
1
apache-2.0
ad464785cb18d845ef4a7bacc261b9226dc02551
AnimatedRNG/cesium,jason-crow/cesium,progsung/cesium,CesiumGS/cesium,geoscan/cesium,NaderCHASER/cesium,YonatanKra/cesium,kiselev-dv/cesium,CesiumGS/cesium,josh-bernstein/cesium,jason-crow/cesium,esraerik/cesium,wallw-bits/cesium,oterral/cesium,soceur/cesium,wallw-bits/cesium,AnalyticalGraphicsInc/cesium,esraerik/cesium...
Specs/DynamicScene/KmlDataSourceSpec.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n/**\n* Equation.js\n*\n* @description :: An equation with input type, equation in source format,\n* \t\t\t\t and generated components.\n* @docs :: http://sailsjs.org/#!documentation/models\n*/\n\nmodule.exports = {\n\n attribu...
javascript
edit
0
0
bsd-3-clause
f8ce69f9a48eecf7ebc838ac830807ffeab43609
jbrugge/mmlc-api,meghanlarson/mmlc-api,jbrugge/mmlc-api,meghanlarson/mmlc-api,meghanlarson/mmlc-api
api/models/Equation.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\ndescribe(\"Dom Tests\", function() {\n\n var substrata = {};\n\n beforeEach(function(){\n substrata = new Substrata();\n });\n\n it(\"has a function called testRun which returns true\", function() {\n expect(tr...
javascript
edit
0
1
apache-2.0
2758368bf5ddf0d29806ea2331daa7f1210089f6
shaunchurch/Substrata
test/browserSpec.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\n'use strict'\n\n/* global browser */\n\nconst cmds = require('wdio-screen-commands')\n\nmodule.exports = {\n before: () => {\n global.should = require('chai').should()\n browser.addCommand('saveScreenshotByName', cmds.saveScreens...
javascript
edit
0
2
mit
bbca13237edb02a32d38cd8166fb1ee097b27416
blueimp/jQuery-File-Upload,blueimp/jQuery-File-Upload,blueimp/jQuery-File-Upload,blueimp/jQuery-File-Upload,blueimp/jQuery-File-Upload,blueimp/jQuery-File-Upload
wdio/hooks/index.js
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```javascript\nimport { split } from './int-util.js'\nimport { name, clear, singularize, addConjunction, addComma, write } from './parts-util.js'\n\n/**\n * Escrever números maiores que mil.\n *\n * @param {string} int Um número inteiro maior que mil....
javascript
edit
0
1
mit
0701cb31e3a580327b19ae5c5bf9ee97e578242d
theuves/extenso
src/gt1000/index.js
accepted
null
true