conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "[FEATURE] Clear session on delete method\n" }, { "from": "human", "value": "var User = require('../models/user.js'),\n utils = require('../../lib/utils.js');\n\nmodule.exports = (function(){\n\tfunction destroy(req, res) {\n\t\tres.send({\n success: true,\...
javascript
chosen
[ { "from": "system", "value": "Add event handler on reset button\n\nIt removes all existing <li> elements." }, { "from": "human", "value": "var myArray = [];\ndocument.write(\"<ul style='list-style-type: none'>\");\ndocument.write(\"</ul>\");\n$(\"#submit\").on('click', function(value) {\n\tmyArr...
javascript
chosen
[ { "from": "system", "value": "Fix typo in new post notification translation key\n" }, { "from": "human", "value": "import Notification from 'flarum/components/Notification';\nimport username from 'flarum/helpers/username';\n\nexport default class NewPostNotification extends Notification {\n ico...
javascript
chosen
[ { "from": "system", "value": "Use document instance to invert change.\n" }, { "from": "human", "value": "import last from '../util/last'\n\nexport default class SimpleChangeHistory {\n constructor (editorSession) {\n this._editorSession = editorSession\n this._done = []\n this._undone ...
javascript
chosen
[ { "from": "system", "value": "Make sure it doesn't crash on empty files\n" }, { "from": "human", "value": "/* eslint-disable prefer-arrow-callback, func-names */\nimport loader from 'graphql-tag/loader';\n\nfunction GraphQLCompiler() {}\nGraphQLCompiler.prototype.processFilesForTarget = function...
javascript
chosen
[ { "from": "system", "value": "Make `lmieulet:meteor-coverage` a weak dependency\n" }, { "from": "human", "value": "Package.describe({\n name: 'meteortesting:mocha',\n summary: 'Run Meteor package or app tests with Mocha',\n git: 'https://github.com/meteortesting/meteor-mocha.git',\n document...
javascript
chosen
[ { "from": "system", "value": "Fix the build path for hosting on Github pages\n" }, { "from": "human", "value": "// see http://vuejs-templates.github.io/webpack for documentation.\nvar path = require('path')\n\nmodule.exports = {\n build: {\n env: require('./prod.env'),\n index: path.resol...
javascript
chosen
[ { "from": "system", "value": "Adjust editor UI to ignore harvest information. This may serve as a precedent for dealing exclusively with other pieces of content.\n" }, { "from": "human", "value": "idClock = 0;\nfunction getId() {\n\tidClock++;\n\treturn \"attribute-list-\" + idClock;\n}\n\nfunct...
javascript
chosen
[ { "from": "system", "value": "Make sure adapters have access to session.\n" }, { "from": "human", "value": "export default {\n name: 'authentication',\n \n initialize: function(container, application) {\n application.inject('model', 'session', 'simple-auth-session:main');\n } ...
javascript
chosen
[ { "from": "system", "value": "Fix typo in modernizr require path\n" }, { "from": "human", "value": "require.config({\n\tbaseUrl: 'app',\n\n\tpaths : {\n\t\tjquery: '../components/jquery/jquery.min',\n\t\tmodernizr: '../components/modernizer/modernizr'\n\t}\n});\n\nrequire(['jquery', 'modernizr']...
javascript
chosen
[ { "from": "system", "value": "Work around Chrome's over-eager validation of integration config form.\n\nChrome loves to test the validation of forms, even going so far as to\nrun validation on inputs which are not visible to the user. It then\nerrors out on the console that it can't focus the input. This ch...
javascript
chosen
[ { "from": "system", "value": "Handle options errors in server-manager\n\nAnd consider that an exception thrown in \"server\" is a port issue\n" }, { "from": "human", "value": "'use strict';\n\nconst Server = require('./server');\n\nclass ServersManager {\n constructor() {\n this.servers = []...
javascript
chosen
[ { "from": "system", "value": "Change args change to be optimizable\n" }, { "from": "human", "value": "'use strict';\nvar assert = require('assert');\n\nexports = module.exports = promissory;\n\nfunction promissory(fn) {\n\tassert(typeof fn == 'function', 'function required');\n\n\treturn functio...
javascript
chosen
[ { "from": "system", "value": "Remove no-op event handlers in playground.\n" }, { "from": "human", "value": "/*global Playground*/\n\n(function() {\n \"use strict\";\n\n Playground.VideoService = Conductor.Oasis.Service.extend({\n initialize: function (port) {\n this.sandbox.videoPort =...
javascript
chosen
[ { "from": "system", "value": "Sort alphabetically to avoid duplicates\n" }, { "from": "human", "value": "'use strict';\n\nmodule.exports = [\n 'webmap.cgi',\n 'helpdesk.cgi',\n 'info.cgi',\n 'administrator.cgi',\n 'index.cgi',\n 'admin.cgi',\n 'whois.cgi',\n 'report.cgi',...
javascript
chosen
[ { "from": "system", "value": "[BG-7750] Remove TBTG fee info test\n\nSummary: TBTG doesn't exist, but there's a test to get fee info from the platform, which is breaking all SDK builds\n\nReviewers: kevin, tyler, leo, bigly, zacleids\n\nReviewed By: zacleids\n\nSubscribers: tyler, mark\n\nDifferential Revis...
javascript
chosen
[ { "from": "system", "value": "Add note about model/transform modules not depending on the browser\n" }, { "from": "human", "value": "// !!\n// This module defines ProseMirror's document model, the data\n// structure used to define and inspect content documents. It\n// includes:\n//\n// * The [no...
javascript
chosen
[ { "from": "system", "value": "Improve status and toasts in header.\n" }, { "from": "human", "value": "import { HeaderService } from \"./header.service.js\";\n\nexport class HeaderTemplate {\n static update(render) {\n const start = Date.now();\n\n /* eslint-disable indent */\n ...
javascript
chosen
[ { "from": "system", "value": "Send postMessage to opener before autoclose\n" }, { "from": "human", "value": "$(document).ready(function() {\n\tcurrent_url = window.location.href\n\tif (current_url.match(\"&closewin=true\")) {\n\t\twindow.close();\n\t}\n});\n" }, { "from": "gpt", "val...
javascript
chosen
[ { "from": "system", "value": "CHANGED: Add tailwind specific extractor to purgeCSS\n" }, { "from": "human", "value": "module.exports = {\n content: ['frontend/javascript/*.js','./output/**/*.html'],\n output: \"./output/_bridgetown/static\"\n}" }, { "from": "gpt", "value": "module....
javascript
chosen
[ { "from": "system", "value": "Remove the file field from the formExplode().\n" }, { "from": "human", "value": "jA.fn.formExplode = function()\n{\n var formData = {};\n\n this.find('[name]').each(function()\n {\n formData[this.name] = this.value == '' ? undefined : this.value;\n ...
javascript
chosen
[ { "from": "system", "value": "Update message/response test to use new API\n" }, { "from": "human", "value": "const assert = require('assert');\nconst expect = require('chai').expect;\n\nconst Doorman = require('../lib/doorman');\nconst Service = require('../lib/service');\n\nconst EventEmitter =...
javascript
chosen
[ { "from": "system", "value": "[INTERNAL] sap.m: Disable picker aggregation in sap.m.Select\n\nChange-Id: I336612c8d97887562350282e5c013dc5746b994f\nBCP: 1970554908\n" }, { "from": "human", "value": "/*!\n * ${copyright}\n */\n\n// Provides the Design Time Metadata for the sap.m.Select control\ns...
javascript
chosen
[ { "from": "system", "value": "Add card to number converter\n" }, { "from": "human", "value": "l = console.log();\n\nmodule.exports = {\n\n VERSION: \"Jofogas's Zsozsobot v3\",\n\n compute_avg_stack: function(players) {\n var sum = 0;\n for (var i in players) {\n sum += pla...
javascript
chosen
[ { "from": "system", "value": "Use util.inspect with depth: null for traceAny on node.js\n\nBecause currently recursive types without a `Show` instance are pretty much non-printable.\n" }, { "from": "human", "value": "/* global exports, console */\n\"use strict\";\n\n// module Debug.Trace\n\nexpo...
javascript
chosen
[ { "from": "system", "value": "Add testcase for canceling edit mode by clicking elsewhere in the document\n" }, { "from": "human", "value": "import { moduleForComponent, test } from 'ember-qunit';\nimport hbs from 'htmlbars-inline-precompile';\n\n\nmoduleForComponent('editable-field', 'Integratio...
javascript
chosen
[ { "from": "system", "value": "Test properties from originalObj, not newObj\n" }, { "from": "human", "value": "jest.dontMock('../Util');\n\nvar Util = require('../Util');\n\ndescribe('Util', function() {\n\n describe('#extend', function () {\n beforeEach(function () {\n this.originalObj ...
javascript
chosen
[ { "from": "system", "value": "Update Specs for New Fieldset\n" }, { "from": "human", "value": "import React from 'react';\nimport TestUtils from 'react-dom/test-utils';\nimport Fieldset from './fieldset';\nimport Textbox from './../textbox';\nimport { shallow } from 'enzyme';\nimport { elementsT...
javascript
chosen
[ { "from": "system", "value": "Allow specifying entry to run\n\nWhen making an entries object, it's not predictable which entry will be first. This patch allows specifying the entry by name." }, { "from": "human", "value": "import cluster from \"cluster\";\n\nexport default class StartServerPlugi...
javascript
chosen
[ { "from": "system", "value": "Include user credentials (cookie) when requesting user’s profile" }, { "from": "human", "value": "var Reflux = require('reflux');\nvar userDataActions = require('actions/user-data');\n\nfunction extractJson (response) {\n var result = response;\n if (response.json...
javascript
chosen
[ { "from": "system", "value": "Use function declaration not fat arrow\n" }, { "from": "human", "value": "import React from 'react'\nimport './style.css'\n\nconst Button = (props) => {\n \n const buttonStyle = {\n backgroundColor: props.backgroundColor\n }\n\n return(\n <butt...
javascript
chosen
[ { "from": "system", "value": "Add the How To Play state\n\nAdd the state that shows the player how to play the game.\n\nThe background is not added in this state now. It will be added in a\nfuture patch.\n" }, { "from": "human", "value": "/*global State, Config, Phaser*/\n\nState.HowToPlay = fun...
javascript
chosen
[ { "from": "system", "value": "Change tabbable types from Node to HTMLElement\n\nThe tabbable initial query uses querySelectorAll, which returns HTMLElements.\r\nElement is different than Node because it includes methods like .focus().\r\n\r\n- https://github.com/davidtheclark/tabbable/blob/master/index.js#L...
javascript
chosen
[ { "from": "system", "value": "Reword the \"listen on port 8080\" step\n" }, { "from": "human", "value": "// Require the Express module (https://npmjs.com/package/express)\n\n\n// Create a new express application instance by calling `express()`\n\n\n// Serve files in the 'public' directory with E...
javascript
chosen
[ { "from": "system", "value": "Set port correctly from process.env.PORT\n" }, { "from": "human", "value": "var http = require('http');\nvar socketio = require('socket.io');\nvar express = require('express');\nvar path = require('path');\nvar fs = require('fs');\nvar _ = require('underscore');\nva...
javascript
chosen
[ { "from": "system", "value": "Fix dev environment not working when redux devtools not found\n" }, { "from": "human", "value": "import { createStore, applyMiddleware, compose } from 'redux';\nimport thunk from 'redux-thunk';\nimport { default as fseReducer } from './mainReducer';\n\nconst generat...
javascript
chosen
[ { "from": "system", "value": "Update method creation syntax to ES6 LookAction.js iamtienng\n" }, { "from": "human", "value": "L.LockAction = L.EditAction.extend({\n initialize: function(map, overlay, options) {\n var edit = overlay.editing;\n var use;\n var tooltip;\n\n if (edit ins...
javascript
chosen
[ { "from": "system", "value": "Increase sent-data timetou to 600ms (reduces network traffic)\n" }, { "from": "human", "value": "/* See license.txt for terms of usage */\n\ndefine([\n],\nfunction() {\n\n// ********************************************************************************************...
javascript
chosen
[ { "from": "system", "value": "Add empty style for end game button\n" }, { "from": "human", "value": "import { StyleSheet, Dimensions } from 'react-native';\n\nexport default StyleSheet.create({\n\tgeneralButton: {\n\t\theight: 60,\n\t\tborderRadius: 5,\n\t\tmarginHorizontal: 20,\n\t\tbackgroundC...
javascript
chosen
[ { "from": "system", "value": "Disable gzip compression for libraries\n\nDisable gzip compression to let services like wget get libraries uncompressed" }, { "from": "human", "value": "var gulp = require('gulp');\nvar awspublish = require('gulp-awspublish');\nvar rename = require('gulp-rename');\n...
javascript
chosen
[ { "from": "system", "value": "Add provision to allow user options\n" }, { "from": "human", "value": "/**\n * ServeStaticMiddleware.js\n *\n * @author: Harish Anchu <harishanchu@gmail.com>\n * @copyright 2015, QuorraJS. All rights reserved.\n * @license Licensed under MIT\n */\n\nvar serveStatic ...
javascript
chosen
[ { "from": "system", "value": "Fix Error: `cannot use `attributeBindings` on a tag-less component`\n\nModify touch-action mixin to smartly add `attributeBindings` to prevent\nassertion error from being thrown in ember beta/canary.\n\nError is thrown when using 2.8.0-beta.3+cf714821 and 2.9.0-master+3f4ba8d4\...
javascript
chosen
[ { "from": "system", "value": "Revert \"Improved Todoist description text fetching\"\n\nThis reverts commit c923a871b60ed04771052910ede9513a9f6e5afe.\n" }, { "from": "human", "value": "/*jslint indent: 2 plusplus: true*/\n/*global $: false, togglbutton: false*/\n\n'use strict';\n\ntogglbutton.ren...
javascript
chosen
[ { "from": "system", "value": "Use absolute directory path for static file serving\n" }, { "from": "human", "value": "let express = require('express');\nlet app = express();\nlet http = require('http').Server(app);\n\n// app.get('/', (request, response) => {\n// response.send('<h1>CarPI UI</h...
javascript
chosen
[ { "from": "system", "value": "Use prettier default width = 80\n" }, { "from": "human", "value": "module.exports = {\n semi: true,\n trailingComma: 'all',\n singleQuote: true,\n printWidth: 120,\n tabWidth: 2,\n };\n " }, { "from": "gpt", "value": "module.export...
javascript
chosen
[ { "from": "system", "value": "Add missing spaces before braces" }, { "from": "human", "value": "const models = require('../models/index')\nconst insecurity = require('../lib/insecurity')\n\nmodule.exports = function updateUserProfile () {\n return (req, res, next) => {\n const loggedInUser =...
javascript
chosen
[ { "from": "system", "value": "Add ability to lookup a single option\n\nIn order to build a list of selection options to attach to a form\nthe getOptions function needs to be able to handle a request to\nfetch a single option or pass an array of option id's to get." }, { "from": "human", "value":...
javascript
chosen
[ { "from": "system", "value": "Disable menu image popup (temporarily hopefully)\n" }, { "from": "human", "value": "// ASPC namespace\nvar ASPC = ASPC || {};\n\n/**\n * @module\n * @description Methods for the menu\n */\nASPC.menu = function () {\n\t/**\n\t * @private\n\t */\n\tvar my = {\n\t\tsel...
javascript
chosen
[ { "from": "system", "value": "[reference] Add a reference name in the list.\n" }, { "from": "human", "value": "var loadManyReferenceList = require('./builder').loadMany;\nvar dispatcher = require('../dispatcher');\n\n/**\n * Focus reference action.\n * @param {array} referenceNames - An array wh...
javascript
chosen
[ { "from": "system", "value": "Add tmdb_id to show model" }, { "from": "human", "value": "// Import the neccesary modules.\nimport mongoose from \"mongoose\";\n\n// The show schema used by mongoose.\nconst ShowSchema = new mongoose.Schema({\n _id: {\n type: String,\n required: true\n },\n...
javascript
chosen
[ { "from": "system", "value": "Fix Error: $rootScope:inprog Action Already In Progress\n" }, { "from": "human", "value": "define([], function() {\n\n 'use strict';\n\n\treturn ['$scope', '$location', 'Rest', function($scope, $location, Rest) {\n\t\t\n\t\t\n\t\t$scope.calendar = Rest.admin.cale...
javascript
chosen
[ { "from": "system", "value": "Set UsingVirtualCardFromCollectiveId for existing transactions in migrations\n\n" }, { "from": "human", "value": "'use strict';\n\nmodule.exports = {\n up: (queryInterface, Sequelize) => {\n return queryInterface.addColumn(\n 'Transactions',\n 'UsingVi...
javascript
chosen
[ { "from": "system", "value": "Add a way for the SearchBar to send the list to the InfoBody\n" }, { "from": "human", "value": "import React, { Component } from 'react';\nimport '../App.css';\nimport SearchBar from './SearchBar.js';\nimport InfoBody from './InfoBody.js';\n\nclass AppBody extends C...
javascript
chosen
[ { "from": "system", "value": "Fix to make promises synchronous, and not break git\n" }, { "from": "human", "value": "function configure(memory, network) {\n\n function write() {\n console.log('Write neural network to file system');\n return mapNetwork(network).then(writeFiles);\n }\n\n ...
javascript
chosen
[ { "from": "system", "value": "Fix home page logic error\n" }, { "from": "human", "value": "( function ( mw, $ ) {\n\n $( function () {\n\n // For some odd reason, these had fixed min-style:600px\n // That sucks. Removing it (they're handled at HitchwikiVector/resources/styles/forms.less i...
javascript
chosen
[ { "from": "system", "value": "serveronly: Replace the console.log of none for a \\n new line\n" }, { "from": "human", "value": "var app = require(\"../js/app.js\");\napp.start(function(config) {\n\tconsole.log(\"\");\n\tvar bindAddress = config.address ? config.address : \"localhost\";\n\tconsol...
javascript
chosen
[ { "from": "system", "value": "Remove window bounds specification (API is in transition right now)\n" }, { "from": "human", "value": "/**\n * Listens for the app launching then creates the window\n *\n * @see http://developer.chrome.com/apps/app.runtime.html\n * @see http://developer.chrome.com/a...
javascript
chosen
[ { "from": "system", "value": "Add gulp task for development without LiveReload.\n" }, { "from": "human", "value": "var gulp = require('gulp'),\n nodemon = require('gulp-nodemon'),\n plumber = require('gulp-plumber'),\n livereload = require('gulp-livereload'),\n stylus = require('gulp-stylus'...
javascript
chosen
[ { "from": "system", "value": "Load tsconfig.json in gulp file\n" }, { "from": "human", "value": "const gulp = require(\"gulp\");\nconst fs = require(\"fs\");\nconst rename = require(\"gulp-rename\");\nconst sass = require(\"gulp-sass\");\nconst ts = require(\"gulp-typescript\");\n\ngulp.task(\"l...
javascript
chosen
[ { "from": "system", "value": "Fix gulp not minifying the css\n\nSince Gulp doesn't wait for one task to be completed in order to execute\nthe second one, we hade some troubles with our default gulp task: the\ncss wasn't minified because there was no css to minify in the dist\nfolder yet.\nThis commit fixes ...
javascript
chosen
[ { "from": "system", "value": "Stop passing babelOptions.sourceMap when compiling `meteor shell` commands.\n" }, { "from": "human", "value": "ECMAScript = {\n compileForShell(command) {\n const babelOptions = Babel.getDefaultOptions();\n babelOptions.sourceMap = false;\n babelOptions.as...
javascript
chosen
[ { "from": "system", "value": "Make min height = 300px\n" }, { "from": "human", "value": "import React from 'react'\nimport { inject, observer } from 'mobx-react'\nimport Window from './Window'\nimport DragPreview from './DragPreview'\n\n@inject('windowStore')\n@observer\nexport default class App...
javascript
chosen
[ { "from": "system", "value": "Use 24-hour format for German translations" }, { "from": "human", "value": "// German\n\njQuery.extend( jQuery.fn.pickadate.defaults, {\n monthsFull: [ 'Januar', 'Februar', 'März', 'April', 'Mai', 'Juni', 'Juli', 'August', 'September', 'Oktober', 'November', 'Dez...
javascript
chosen
[ { "from": "system", "value": "Add mode 'doi' which only returns the doi to a URL\n\nSigned-off-by: Konstantin Baierer <ebcdd03f5ebfa762aaeff163f40731e007d80e80@bib.uni-mannheim.de>\n" }, { "from": "human", "value": "var express = require('express');\nvar request = require('superagent');\nvar app...
javascript
chosen
[ { "from": "system", "value": "Remove stream endpoints from client side envs.\n" }, { "from": "human", "value": "\"use strict\";\n\n(function () {\n angular\n .module(\"argo\")\n .factory(\"environmentService\", environmentService);\n\n function environmentService() {\n ...
javascript
chosen
[ { "from": "system", "value": "Set argv and execPath, gets past web-fs getFile stat undefined\n" }, { "from": "human", "value": "\nwindow.staticReadFileSync = function(path) {\n console.log('readFileSync', path);\n\n if (path.match(/^\\/file:.*template.js$/)) {\n // Workaround getting '/file...
javascript
chosen
[ { "from": "system", "value": "Clean up unit test key when unit tests complete\n" }, { "from": "human", "value": "// Set the baseUrl to brackets/src\nrequire.config({\n baseUrl: \"../src\"\n});\n\ndefine(function(require, exports, module) {\n // Utility dependency\n var SpecRunnerUtils =...
javascript
chosen
[ { "from": "system", "value": "Add storybook decorator for alert component\n" }, { "from": "human", "value": "import React from 'react'\nimport { storiesOf, action } from '@kadira/storybook'\nimport Alert from 'fyndiq-component-alert'\n\nstoriesOf('Alert', module)\n .addWithInfo('default', () =>...
javascript
chosen
[ { "from": "system", "value": "Animate: Improve rendering for Safari (iOS)\n\nThis update removes the `visibility` CSS prop from the `Animate` lifecycle\nstyles. After some investigating/testing, I've noticed that this is somehow\ncausing render issues in iOS Safari (for certain render cases).\n\nElements wo...
javascript
chosen
[ { "from": "system", "value": "Add some basic auth to reporting server\n" }, { "from": "human", "value": "var http = require('http'),\n express = require('express'),\n db = require('../db');\n\nfunction configureExpressApp() {\n var app = express();\n app.use(genericErrorHandler);\n cons...
javascript
chosen
[ { "from": "system", "value": "Add homeRoutePath to User Accounts config\n" }, { "from": "human", "value": "AccountsTemplates.configure({\n\n defaultLayout: 'defaultLayout',\n defaultContentRegion: 'main',\n\n // Behaviour\n confirmPassword: true,\n enablePasswordChange: true,\n forbidClien...
javascript
chosen
[ { "from": "system", "value": "Use todo component in loop\n\n" }, { "from": "human", "value": "import React, { PropTypes } from 'react'\n\nimport Spinner from '../Spinner'\n\nconst TodoList = ({ todos, isFetching }) => {\n if (isFetching) {\n return (\n <Spinner text='Loading' />\n )\...
javascript
chosen
[ { "from": "system", "value": "Use a functional react component instead of renderEvent\n" }, { "from": "human", "value": "import React, { Component, PropTypes } from 'react';\nimport RequireLogin from './RequireLogin';\nimport LoadingIndicator from './LoadingIndicator';\n\nexport default class Ev...
javascript
chosen
[ { "from": "system", "value": "Use identity as counter id\n" }, { "from": "human", "value": "'use strict'\n\nconst Store = require('orbit-db-store')\nconst CounterIndex = require('./CounterIndex')\nconst Counter = require('crdts/src/G-Counter')\n\nclass CounterStore extends Store {\n constructor...
javascript
chosen
[ { "from": "system", "value": "[FEATURE] Use UserService in gateway accounts controller to authenticate\n" }, { "from": "human", "value": "'use strict';\n\nangular.module('publicApp')\n .controller('GatewayAccountsCtrl', ['$scope', '$http','$location', function ($scope, $http, $location) {\n ...
javascript
chosen
[ { "from": "system", "value": "INFORCRM-15838: Change chart type to column to match 3.6\n" }, { "from": "human", "value": "import declare from 'dojo/_base/declare';\nimport lang from 'dojo/_base/lang';\nimport View from 'argos/View';\nimport _ChartMixin from './_ChartMixin';\n\n/**\n * @class crm...
javascript
chosen
[ { "from": "system", "value": "example: Add note about the problem + temporary workaround for dom-element content events\n" }, { "from": "human", "value": "FamousFramework.scene('famous-tests:html-element-events', {\n behaviors: {\n '.container': {\n 'size': [200, 200],\n ...
javascript
chosen
[ { "from": "system", "value": "Change header and footer colors\n" }, { "from": "human", "value": "window.addEventListener(\"load\", function () {\n var pk = new Piklor(\".color-picker\", [\n \"#f44336\"\n , \"#e91e63\"\n , \"#3f51b5\"\n , \"#4caf50\"\n ...
javascript
chosen
[ { "from": "system", "value": "Update to use addUpdater instead of onUpdate on db\n" }, { "from": "human", "value": "'use babel';\n\nimport {Emitter} from 'atom';\nimport Project from './project';\n\nexport default class Projects {\n constructor(db=null) {\n this.emitter = new Emitter();\n ...
javascript
chosen
[ { "from": "system", "value": "Convert the Player to a Prototype class." }, { "from": "human", "value": "function Player(map, location) {\n this._map = map;\n this._location = location;\n\n var markerimage = new google.maps.MarkerImage(\n \"res/icon.png\",\n new google.maps.Size(48, ...
javascript
chosen
[ { "from": "system", "value": "Remove rename since gulp.dest will copy files on its own\n" }, { "from": "human", "value": "'use-strict';\n\n//////////////////////////////\n// Requires\n//////////////////////////////\n\nvar gulp = require('gulp');\nvar svgSprite = require('gulp-svg-sprite');\nvar ...
javascript
chosen
[ { "from": "system", "value": "Make sure the redux state is immutable\n" }, { "from": "human", "value": "import Types from '../Actions/Types'\nimport Immutable from 'seamless-immutable'\nimport createReducer from './CreateReducer'\n\nexport const INITIAL_STATE = Immutable({\n taxEnabled: true,\n...
javascript
chosen
[ { "from": "system", "value": "Return Result of Filter Intersection\n" }, { "from": "human", "value": "var configuration = require('../config/configuration.json')\nvar utility = require('../public/utility')\n\nmodule.exports = function(redisClient, accountHashID, filter, callback) {\n var ...
javascript
chosen
[ { "from": "system", "value": "[Stitching] Add MP’s Artist type to Convection’s Submission type.\n" }, { "from": "human", "value": "import { mergeSchemas, introspectSchema, makeRemoteExecutableSchema } from \"graphql-tools\"\nimport { createHttpLink } from \"apollo-link-http\"\nimport fetch from ...
javascript
chosen
[ { "from": "system", "value": "Revert \"Deactivate watchman on CI\"\n\nThis reverts commit 140770d43013dd8ca54c2031f93c344ee5c59f89.\nThis did not fix CI problems\n" }, { "from": "human", "value": "// @flow\n\n/* eslint-disable require-await */\n/**\n * Metro configuration for React Native\n * ht...
javascript
chosen
[ { "from": "system", "value": "Make it work with local text files\n" }, { "from": "human", "value": "const startsWithDot = /^\\./;\nconst moduleIdParts = /^((?:[a-z\\-]+!)*)(.*)$/;\n // ^ From the beginning of the string match:\n // ((?: 1.\n // [a-z\\-]+ A loader name, ...
javascript
chosen
[ { "from": "system", "value": "Remove the option for the logger as it's too expensive. Also reduce the duration's decimal digits\n" }, { "from": "human", "value": "/* This Source Code Form is subject to the terms of the Mozilla Public\n * License, v. 2.0. If a copy of the MPL was not distributed...
javascript
chosen
[ { "from": "system", "value": "Add call to associate a template with a task.\n" }, { "from": "human", "value": "class ExperimentsService {\n /*@ngInject*/\n constructor(projectsAPI) {\n this.projectsAPI = projectsAPI;\n }\n\n getAllForProject(projectID) {\n return this.p...
javascript
chosen
[ { "from": "system", "value": "Check NODE_ENv varibale for setting environment configuration\n" }, { "from": "human", "value": "'use strict';\n\n/**\n * Module dependencies.\n */\nvar mongoose = require('mongoose'),\n\tSchema = mongoose.Schema;\n\n/**\n * Wish Schema\n */\nvar WishSchema = new Sc...
javascript
chosen
[ { "from": "system", "value": "Update url of tomcat server the search is being sent to\n" }, { "from": "human", "value": "'use strict';\n\n/**\n * @ngdoc function\n * @name textSummaryApp.controller:MainCtrl\n * @description\n * # MainCtrl\n * Controller of the textSummaryApp\n */\nangular.module...
javascript
chosen
[ { "from": "system", "value": "Fix exporting pass & shaders\n\n\n\nFormer-commit-id: 681dc926bcc021550d8b4fc13fc0136652a43c2c" }, { "from": "human", "value": "export * from './controls/FirstPersonControls';\nexport * from './controls/OrbitControlsModule';\nexport * from './VirtualMouse';\n" }, ...
javascript
chosen
[ { "from": "system", "value": "Add top level view in web client for job details\n" }, { "from": "human", "value": "girder.views.jobs_JobDetailsWidget = girder.View.extend({\n initialize: function (settings) {\n this.job = settings.job;\n },\n\n render: function () {\n this....
javascript
chosen
[ { "from": "system", "value": "Check for preset locale data in hasLocaleData()\n" }, { "from": "human", "value": "/*\n * Copyright 2015, Yahoo Inc.\n * Copyrights licensed under the New BSD License.\n * See the accompanying LICENSE file for terms.\n */\n\nimport IntlMessageFormat from 'intl-messa...
javascript
chosen
[ { "from": "system", "value": "Use new dev server instead of staging, because we don't know the staging version number any more.\n" }, { "from": "human", "value": "'use strict';\n\ndefine([\"angular\", \"app/services/LoginChecker\", \"app/services/FileLoader\", \"app/services/FigureUploader\", \"...
javascript
chosen
[ { "from": "system", "value": "Remove comment that is no longer relevant.\n" }, { "from": "human", "value": "var ConversationV1 = require('watson-developer-cloud/conversation/v1');\n\nvar method = ConversationBot.prototype;\n\nfunction ConversationBot(room) {\n this.room = room;\n this.conv...
javascript
chosen
[ { "from": "system", "value": "Make assertion tester more robust\n" }, { "from": "human", "value": "module.exports = function (data) {\n var assertions = [\n 'ok', 'equal', 'notEqual',\n 'propEqual', 'notPropEqual',\n 'deepEqual', 'notDeepEqual',\n 'strictEqual', 'notStrictEqual',\n ...
javascript
chosen
[ { "from": "system", "value": "Recompile dev JS build if config files change.\n" }, { "from": "human", "value": "module.exports = {\n sass: {\n files: [\"scss/**/*.{scss,sass}\"],\n tasks: [\"lint:css\", \"sass:compile\", \"test:css\"]\n },\n js: {\n files: [\"js/**/*.js\", \"tests/**...
javascript
chosen
[ { "from": "system", "value": "Allow to specify a node name to look for as navmesh\n\nThis is useful for models that already embed a navmesh, as we can just use them as they are and not e.g. extract the navmesh in a separate model.\n" }, { "from": "human", "value": "/**\n * nav-mesh\n *\n * Waits...
javascript
chosen
[ { "from": "system", "value": "Remove form submit prevention logging\n\n\nFormer-commit-id: 2014d17c9c301508b0747327fc6a2a7b8dd538a3" }, { "from": "human", "value": "function resetPage() {\n // Prevent default behaviour of all form submits throught Florence\n $(document).on('submit', 'form'...
javascript
chosen
[ { "from": "system", "value": "Make rules and resolvedRules for new category\n\nThis adds in the appropriate data structure to the\ncategory model.\n" }, { "from": "human", "value": "function panel() {\n return {\n restrict: 'E',\n scope: {\n category: '='\n },\n templateUrl: 'c...
javascript
chosen