conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Clone to new stage wording"
},
{
"from": "human",
"value": "function MainAssistant(unique) {\n this.unique = unique;\n this.pushSceneHandler = this.pushScene.bindAsEventListener(this);\n this.cloneSceneHandler = this.cloneScene.bindAsEventListener(this);\n}... | javascript | chosen |
[
{
"from": "system",
"value": "Update emojione to latest version 3.1.2\n"
},
{
"from": "human",
"value": "define([], function() {\n return function() {\n return window.emojioneVersion || '2.2.7';\n };\n});"
},
{
"from": "gpt",
"value": "define([], function() {\n return... | javascript | chosen |
[
{
"from": "system",
"value": "Add pending specs based on requirements in the readme\n"
},
{
"from": "human",
"value": "MochaWeb.testOnly(function () {\n function cleanup () {\n Meteor.call('clearPairs');\n Meteor.call('clearPeople');\n }\n beforeEach(function(){\n cleanup();\n });\n... | javascript | chosen |
[
{
"from": "system",
"value": "Fix performance regression by removing destructuring\n"
},
{
"from": "human",
"value": "'use strict' /* eslint curly: [2,\"multi\"] */\n\nmodule.exports = (x0, y0, iterations) => {\n let [x, y, i] = [x0, y0, 0]\n while (true) {\n if (x * x + y * y >= 4) return ... | javascript | chosen |
[
{
"from": "system",
"value": "Update Detail controller in order to use productUtils service\n"
},
{
"from": "human",
"value": "(function () {\n \"use strict\";\n\n /** Product detail view controller */\n angular.module('app')\n .controller('DetailController', ['$scope', '$locatio... | javascript | chosen |
[
{
"from": "system",
"value": "Add footnotes to the Reader.\n"
},
{
"from": "human",
"value": "/* eslint-disable no-template-curly-in-string */\nimport { BasePackage, ModelComponentPackage } from '../../kit'\n\nimport ArticleNavPackage from '../ArticleNavPackage'\nimport EntityLabelsPackage from ... | javascript | chosen |
[
{
"from": "system",
"value": "Add test for (unimplemented) /rpc route\n"
},
{
"from": "human",
"value": "import chai, {expect} from 'chai';\nimport createApp from '../../src/app';\nimport dbFixtures from '../utils/dbFixtures';\n\ndescribe('App', function() {\n before(async function() {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add fake local credentials for Local security token\n"
},
{
"from": "human",
"value": "/**\n * Created by mgoria on 09/01/15.\n */\n\n'use strict';\n\nimport {Token} from './Token';\n\n/**\n * Security token holds details about logged user\n */\nexport class LocalTo... | javascript | chosen |
[
{
"from": "system",
"value": "Add app version bad constant\n"
},
{
"from": "human",
"value": "export const HTTP_ERROR_CODES = {\n ABORTED: -1,\n TIMEOUT: 0,\n UNPROCESSABLE_ENTITY: 422,\n UNAUTHORIZED: 401,\n UNLOCK: 403,\n TOO_MANY_REQUESTS: 429\n};\n\nexport const API_CUSTOM_... | javascript | chosen |
[
{
"from": "system",
"value": "Add js for civic section\n"
},
{
"from": "human",
"value": "$().ready(() => {\n loadContentSection().then(() =>{ \n $(\"#loader\").addClass(\"hide\");\n $(\"#real-body\").removeClass(\"hide\");\n $(\"#real-body\").addClass(\"body\");\n });\n});\n\n$(\"bod... | javascript | chosen |
[
{
"from": "system",
"value": "Replace encodeURIParameters by sum of char codes in demo\n"
},
{
"from": "human",
"value": "$(function() {\n $('#run').on('click', function() {\n var input = $('#input').val();\n var output = encodeURIComponent(input);\n\n playbyplay.save({\n... | javascript | chosen |
[
{
"from": "system",
"value": "Tag name of examples is <chart>\n"
},
{
"from": "human",
"value": "import Ember from 'ember';\nimport layout from './template';\n\nexport default Ember.Component.extend({\n layout,\n\n tooltipPositionX: 0,\n tooltipPositionY: 0,\n tooltipValue: 0,\n\n actions: ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix missing negation / site detection"
},
{
"from": "human",
"value": "// ==UserScript==\n// @include *\n// @run-at document-start\n// ==/UserScript==\n\n/*\n * Gmail-Basic-HTML-Select-All\n *\n * Add a \"check all\" button in HTML-Gmail's spam and trash folders.\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Use route name instead of route path"
},
{
"from": "human",
"value": "import Ember from 'ember';\nvar inject = Ember.inject;\n\nexport default Ember.Route.extend({\n searchQuery: inject.service(),\n history: inject.service(),\n\n beforeModel: function(transition)... | javascript | chosen |
[
{
"from": "system",
"value": "Fix replay for events with the same timestamp\n"
},
{
"from": "human",
"value": "export function replayEvents(events, start, end) {\n const [head, ...tail] = events;\n\n // Exit condition, no events\n if (head === undefined) return;\n\n if (head.time > start && ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix (DateTime): minor syntax issue"
},
{
"from": "human",
"value": "export default [\n {\n type: 'checkbox',\n input: true,\n key: 'enableDate',\n label: 'Enable Date Input',\n weight: 0,\n tooltip: 'Enables date input for this field.'\n },\n {\... | javascript | chosen |
[
{
"from": "system",
"value": "Fix the cancelled key bug\n"
},
{
"from": "human",
"value": "domready(function() {\n\tvar UP = \"up\";\n\tvar DOWN = \"down\";\n\tvar current = 0;\n\tvar height = document.body.clientHeight;\n\tvar number = document.querySelectorAll('body > section').length;\n\tvar ... | javascript | chosen |
[
{
"from": "system",
"value": "Add test for authenticated message tampering\n"
},
{
"from": "human",
"value": "describe('Authentication', () => {\n\tit('generate MAC and verify it against original message', done => {\n\t\twindow.newMacKey().then(key => {\n\t\t\tconst message = 'The quick brown fo... | javascript | chosen |
[
{
"from": "system",
"value": "Fix navigation bar title display.\n"
},
{
"from": "human",
"value": "const product = require('../../utils/product.js')\n\nPage({\n data: {\n toastAddProduct: true,\n title: '',\n id: 0,\n quantity: 1,\n product: {}\n },\n\n onLoad (params) {\n v... | javascript | chosen |
[
{
"from": "system",
"value": "Enable source maps in tests\n"
},
{
"from": "human",
"value": "module.exports = function(config) {\n config.set({\n\n basePath: '',\n\n frameworks: ['mocha'],\n\n files: [\n 'specs/main.js'\n ],\n\n exclude: [],\n\n preprocessors: {\n 's... | javascript | chosen |
[
{
"from": "system",
"value": "Change default compileMode to while typing\n"
},
{
"from": "human",
"value": "'use babel'\n\nexport default {\n moieExec: {\n type: 'string',\n default: '/home/user/moie.jar',\n description: 'Full path to moie-server'\n },\n javaExec: {\n type: 'strin... | javascript | chosen |
[
{
"from": "system",
"value": "Fix formatting of sizes between 1000 and 1024\n"
},
{
"from": "human",
"value": "jQuery.fn.log = function (msg){\n console.log(\"%s: %o\", msg, this);\n return this;\n};\n\n$(document).ready(function(){\n $.ajaxSetup({cache: false});\n $.getJSON(\"/disco... | javascript | chosen |
[
{
"from": "system",
"value": "Enable titleCollapse for section notes form\n"
},
{
"from": "human",
"value": "/*jslint browser: true, undef: true, white: false, laxbreak: true *//*global Ext,Slate*/\nExt.define('SlateAdmin.view.progress.narratives.Manager',{\n extend: 'Ext.Container',\n xty... | javascript | chosen |
[
{
"from": "system",
"value": "Fix comment for bucket deletion"
},
{
"from": "human",
"value": "// Copyright 2010-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// Licensed under the Apache-2.0 License on an \"AS IS\" BASIS, WITHOUT WARRANTIES OF ANY KIND. \n\n// ABOUT THIS NODE... | javascript | chosen |
[
{
"from": "system",
"value": "Use non-minified files in tests debug\n"
},
{
"from": "human",
"value": "module.exports = function(config) {\n\tconfig.set({\n\t\tframeworks: ['jasmine'],\n\t\tfiles: [\n\t\t\t'node_modules/angular/angular.min.js',\n\t\t\t'node_modules/angular-mocks/angular-mocks.js... | javascript | chosen |
[
{
"from": "system",
"value": "Remove a deprecated and unneeded React check\n"
},
{
"from": "human",
"value": "module.exports = {\n \"extends\": \"justinlocsei/configurations/es6\",\n \"ecmaFeatures\": {\n \"jsx\": true\n },\n \"env\": {\n \"browser\": true\n },\n \"plugins\": [\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix load event handler for browser console speaker notes plugin\n"
},
{
"from": "human",
"value": "/**\r\n * Handles writting the notes to the browser console in synchronization with the reveal.js\r\n */\r\nvar ConsoleNotes = (function() {\r\n\r\n function log(ev... | javascript | chosen |
[
{
"from": "system",
"value": "Update argument to createContentItem in Content\n\nto object\n"
},
{
"from": "human",
"value": "\r\n// ----------------------------------------------------------------\r\n// Content Class\r\n\r\nclass Content {\r\n static get TYPE_NAME_KEY() {\r\n return 0;\r\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add the jQuery object to vui and reference that inside controls.\n Gives us a central point for maintaining a well-defined jQuery object\n"
},
{
"from": "human",
"value": "/*jslint browser: true*/\r\n\r\n( function( $, vui ) {\r\n\r\n\t$.widget( 'vui.vui_list', {\r... | javascript | chosen |
[
{
"from": "system",
"value": "Add empty array as initial value\n"
},
{
"from": "human",
"value": "let arrays = [[1, 2, 3], [4, 5], [6]];\n\nlet array = arrays.reduce((a, b) => a.concat(b));\nconsole.log(array);\n// → [1, 2, 3, 4, 5, 6]\n"
},
{
"from": "gpt",
"value": "let arrays = [[... | javascript | chosen |
[
{
"from": "system",
"value": "Update Feral Druid Changelog - Berserk SpellID Fix"
},
{
"from": "human",
"value": "import React from 'react';\n\nimport { Abelito75, Zeboot, LeoZhekov } from 'CONTRIBUTORS';\nimport { change, date } from 'common/changelog';\n\nexport default [\n change(date(2020, ... | javascript | chosen |
[
{
"from": "system",
"value": "Remove unnecessary trailing slash in filename\n"
},
{
"from": "human",
"value": "import test from 'ava';\nimport sha1 from '../';\nimport { stringToBuffer, nativeSha1, createRandomUint8Array } from './_helpers';\n\ntest('Invalid data should throw type error', t => {... | javascript | chosen |
[
{
"from": "system",
"value": "Send WARN alarms to ops-warn\n"
},
{
"from": "human",
"value": "/** @typedef {import('./index').EventBridgeCloudWatchAlarmsEvent} EventBridgeCloudWatchAlarmsEvent */\n\nmodule.exports = {\n /**\n * @param {EventBridgeCloudWatchAlarmsEvent} event\n * @returns {S... | javascript | chosen |
[
{
"from": "system",
"value": "Replace readRegexp() with next() in Holder\n"
},
{
"from": "human",
"value": "const AstNode = require('./ast-node');\n\nclass Holder extends AstNode {\n type() {\n return 'holder';\n }\n\n /**\n * @param {ParseContext} context\n * @return {boolean}\n */\... | javascript | chosen |
[
{
"from": "system",
"value": "Adjust styles for user info\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport styled from 'styled-components';\nimport moment from 'moment';\nimport {\n fetchUser\n} from '../actions/action-creators';\n\nconst UserWrapper = styled.div`\n displa... | javascript | chosen |
[
{
"from": "system",
"value": "Remove AnchorJS from JS build\n"
},
{
"from": "human",
"value": "// Grunt configuration\nmodule.exports = {\n autoprefixer: {\n browsers: ['> 1%', 'last 2 versions']\n },\n concat: {\n src: [\n 'node_modules/svg4everybody/... | javascript | chosen |
[
{
"from": "system",
"value": "Add multi-botlist integration (+ novo and mayo)\n"
},
{
"from": "human",
"value": "const snekfetch = require('snekfetch');\n\nexports.create = (Bot, guild) => {\n guild.owner.send(`Thanks for adding me to your server! To see a list of my commands, send \\`${Bot.c... | javascript | chosen |
[
{
"from": "system",
"value": "Make .name and .params getters\n"
},
{
"from": "human",
"value": "/**\n * A namespace for utilities related to current route\n * @namespace\n */\nCurrentRoute = {};\n\n/**\n * Returns the name of the current route\n * @returns {String}\n */\nCurrentRoute.getName = f... | javascript | chosen |
[
{
"from": "system",
"value": "Fix typo in require call.\n"
},
{
"from": "human",
"value": "module.exports = (function() {\n var def = require('./lib/def');\n var Handler = require('./handler');\n var HandlerAdaptor = def.type(Handler, function(handler) {\n this.def_prop('handler', handler)... | javascript | chosen |
[
{
"from": "system",
"value": "Add full stops at the end of doc sentences\n"
},
{
"from": "human",
"value": "/**\n * @author Richard Davey <rich@photonstorm.com>\n * @copyright 2018 Photon Storm Ltd.\n * @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|M... | javascript | chosen |
[
{
"from": "system",
"value": "Update cid of users when saving cid associations\n"
},
{
"from": "human",
"value": "/* global GeneralSettings */\n\nmodule.exports = {\n getByName: async function (req, res) {\n const name = req.params.name;\n const result = await GeneralSettings.ge... | javascript | chosen |
[
{
"from": "system",
"value": "Fix document path with urlEngine\n"
},
{
"from": "human",
"value": "(function () {\n var cogClass = function () {};\n cogClass.prototype.exec = function (params, request, response) {\n var oops = this.sys.apiError;\n var sys = this.sys;\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add request ID to every ajax in legacy Florence\n"
},
{
"from": "human",
"value": "var log = {\n add: function(eventType, payload) {\n var timestamp = new Date();\n var event = {\n type: eventType,\n instanceID: Florence.instan... | javascript | chosen |
[
{
"from": "system",
"value": "Drop runtime flag from karma webpack options"
},
{
"from": "human",
"value": "/* eslint-env node */\nmodule.exports = function(config) {\n config.set({\n basePath: '',\n\n frameworks: ['mocha'],\n\n files: [\n 'test/**/*.js'\n ],\n preprocessors... | javascript | chosen |
[
{
"from": "system",
"value": "Update reducer to create Item\n"
},
{
"from": "human",
"value": "import { actionTypes } from 'actions/wallet';\nimport { REHYDRATE } from 'redux-persist/constants';\nimport CryptoHelper from 'helper/crypto';\n\n\nconst handlers = {\n [actionTypes.CREATE_ITEM]: (sta... | javascript | chosen |
[
{
"from": "system",
"value": "Add 200ms to load page\n"
},
{
"from": "human",
"value": "var page = require('webpage').create(),\n system = require('system'),\n outname, fs = require(\"fs\");\n\nString.prototype.endsWith = function(suffix) {\n return this.indexOf(suffix, this.length - su... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"Increase karma capture time\"\n\nThis reverts commit 4c57d6c0672d0b6f35181fe1b819b6b39c4324f1.\n"
},
{
"from": "human",
"value": "// Karma configuration\n\n// base path, that will be used to resolve files and exclude\nbasePath = '';\n\n// list of files / pa... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"[tmp] replace 'scattergl' traces w/ 'scatter'\"\n\nThis reverts commit d63578b8f4498f5dc4953f1453c71e2a7a6f1ccc.\n"
},
{
"from": "human",
"value": "var path = require('path');\nvar constants = require('../../../tasks/util/constants');\n\nvar DEFAULT_FORMAT ... | javascript | chosen |
[
{
"from": "system",
"value": "Add support for touch events.\n"
},
{
"from": "human",
"value": "\"use strict\";\n\nvar LivePhotoImagePrototype = Object.create(HTMLImageElement.prototype);\n\nLivePhotoImagePrototype.createdCallback = function() {\n this.addEventListener(\"mouseenter\", function()... | javascript | chosen |
[
{
"from": "system",
"value": "Make possible to open youtube links as audio only\n\nThis add to youtube plugin the ability to open youtube links as audio only (without image, only the control panel)\n"
},
{
"from": "human",
"value": "// Namespace\nvar mejs = mejs || {};\n\n// version number\nmejs... | javascript | chosen |
[
{
"from": "system",
"value": "Set width on chosen to 100%. By default it takes the same width as the\noriginal input but this is not good when resizing or the original input\nis not visible on init.\n"
},
{
"from": "human",
"value": "// This is a manifest file that'll be compiled into applicatio... | javascript | chosen |
[
{
"from": "system",
"value": "Remove element from old path after moving it to new path\n"
},
{
"from": "human",
"value": "export default function reduceChangeElementPath(state, { elementPath, newElementPath }) {\n const element = state.getIn(elementPath);\n\n return state.setIn(newElementPath,... | javascript | chosen |
[
{
"from": "system",
"value": "Update tooltipster target version afterInstall\n"
},
{
"from": "human",
"value": "/*jshint node:true*/\nmodule.exports = {\n description: 'ember-cli-tooltipster',\n normalizeEntityName: function() {\n // this prevents an error when the entityName is not specifi... | javascript | chosen |
[
{
"from": "system",
"value": "Change expand to use typeof instead of instanceof\n"
},
{
"from": "human",
"value": "module.exports = {\n safe: function (thing, path, otherwise) {\n thing = (typeof thing === 'object') ? thing : {};\n var props = path.split('.');\n if (props.length === 1)... | javascript | chosen |
[
{
"from": "system",
"value": "Save the timestamp in the command\n"
},
{
"from": "human",
"value": "(function(){\n\n\t\"use strict\";\n\n\trequirejs.config({\n\t\tpaths: {\n\t\t\tjquery: '/js/jquery-2.1.0-custom/jquery.min'\n\t\t}\n\t});\n\n var dataRef = new Firebase(config.firebase_room_uri)... | javascript | chosen |
[
{
"from": "system",
"value": "Add time extraction for nginx access parser.\n"
},
{
"from": "human",
"value": "'use strict';\n\nexports.parse = function(log) {\n return require(__dirname + '/parsers').named_capture(\n log,\n ['host', 'user', 'time', 'method', 'path', 'code', 'size', 'refer... | javascript | chosen |
[
{
"from": "system",
"value": "Format the quotes of mode to single quotes\n"
},
{
"from": "human",
"value": "/* global __dirname */\n\nmodule.exports = {\n entry: {\n 'index': `${__dirname}/index.jsx`,\n 'query': `${__dirname}/query.jsx`,\n 'plan': `${__dirname}/plan.jsx`,... | javascript | chosen |
[
{
"from": "system",
"value": "Use new GitBook 3 API to get plugin configuration\n"
},
{
"from": "human",
"value": "\nimport { uuid } from './util';\nimport * as chartFns from './chart';\n\nconst FORMAT_YAML = 'yaml';\n\nlet chartScriptFn = () => {};\n\nmodule.exports = {\n book: {\n as... | javascript | chosen |
[
{
"from": "system",
"value": "Fix example es5 create class\n"
},
{
"from": "human",
"value": "/* eslint-disable no-console */\nconsole.log('hi');\n// Old ES5 way of creating a Class Component\n// var HelloWorld = React.createClass({\n// render: function() {\n// return (\n// <h1>Hello... | javascript | chosen |
[
{
"from": "system",
"value": "Set react-ga to debug mode\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport ReactDOM from 'react-dom';\nimport { Provider } from 'react-redux';\nimport { BrowserRouter } from 'react-router-dom'\nimport { createStore, applyMiddleware } from 'redu... | javascript | chosen |
[
{
"from": "system",
"value": "Change autoprefix browser specific key\n"
},
{
"from": "human",
"value": "module.exports = () => {\n return {\n use: [\n 'postcss-flexbugs-fixes',\n 'autoprefixer',\n ],\n map: {\n inline: false,\n annotation: true,\n sourcesConten... | javascript | chosen |
[
{
"from": "system",
"value": "Implement basic version of EasyLog\n"
},
{
"from": "human",
"value": "export default class Library {\n constructor() {\n this._name = 'Library';\n }\n get name() {\n return this._name;\n }\n}\n"
},
{
"from": "gpt",
"value": "export default clas... | javascript | chosen |
[
{
"from": "system",
"value": ":art: Use common js exports instead of es exports\n"
},
{
"from": "human",
"value": "'use babel'\n\n/* @flow */\n\nexport default function promisify(callback: Function): Function {\n return function promisified(){\n const parameters = arguments\n const parame... | javascript | chosen |
[
{
"from": "system",
"value": "Make hot reload line more succinct\n"
},
{
"from": "human",
"value": "// ./src/index.js\nimport React from 'react';\nimport ReactDOM from 'react-dom';\n\nimport { AppContainer } from 'react-hot-loader';\n// AppContainer is a necessary wrapper component for HMR\n\nim... | javascript | chosen |
[
{
"from": "system",
"value": "Change Karma port to 8081\n\nThis change makes Karma compatible with Cloud9,\nbecause the latter supports only ports 808x.\n"
},
{
"from": "human",
"value": "// Karma configuration file, see link for more information\n// https://karma-runner.github.io/0.13/config/co... | javascript | chosen |
[
{
"from": "system",
"value": "Fix issue with missing username\n"
},
{
"from": "human",
"value": "#! /usr/bin/env node\n'use strict';\n\nimport {processIM, processChannel, processGroup, saveData} from './commons.js';\nimport PleasantProgress from 'pleasant-progress';\n\nexport function slackHisto... | javascript | chosen |
[
{
"from": "system",
"value": "Set loading: true on app start\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport ReactDOM from 'react-dom';\nimport { Provider } from 'react-redux';\nimport { createStore, applyMiddleware } from 'redux';\nimport thunk from 'redux-thunk';\nimport ... | javascript | chosen |
[
{
"from": "system",
"value": "Add html_url into default keys\n"
},
{
"from": "human",
"value": "import { GitHub } from './GitHub';\nimport * as _ from 'lodash';\n\nconst fs = require('fs');\n\nlet hub = null;\nlet jsonFile = null;\n\nlet keys = [\n 'name', 'description', 'updated_at', 'language... | javascript | chosen |
[
{
"from": "system",
"value": "Exclude cordova files from karma\n"
},
{
"from": "human",
"value": "module.exports = function(config){\n config.set({\n\n basePath : './',\n\n files : [\n 'app/bower_components/angular/angular.js',\n 'app/bower_components/angular-route/angular-route... | javascript | chosen |
[
{
"from": "system",
"value": "Send the error message as JSON\n"
},
{
"from": "human",
"value": "const watch = require(`${__dirname}/watch.js`);\nconst datastore = require(`${__dirname}/datastore`);\nconst express = require('express');\nconst app = express();\n\napp.use('/', express.static(`${__d... | javascript | chosen |
[
{
"from": "system",
"value": "Change the way components are exported\n"
},
{
"from": "human",
"value": "// Layout\nimport Layout from './components/Layout'\n\n// Main Header\nimport MainHeaderComponents from './components/MainHeader'\n\n// Main Sidebar\nimport MainSidebarComponents from './compo... | javascript | chosen |
[
{
"from": "system",
"value": "Load location chooser separately from options and everything\n\nSo that we don’t have to wait for locations list to load to start\nloading events\n"
},
{
"from": "human",
"value": "import ru from 'moment/locale/ru';\nimport lazysizes from 'lazysizes';\n\nimport Loca... | javascript | chosen |
[
{
"from": "system",
"value": "Make sure we're exporting TypeaheadInput.\n"
},
{
"from": "human",
"value": "var Combobox = require('./Combobox');\nvar InputPopupWrapper = require('./InputPopupWrapper');\nvar ListPopup = require('./ListPopup');\nvar ListPopupOption = require('./ListPopupOption');\... | javascript | chosen |
[
{
"from": "system",
"value": "Make execution the first plugin in the queue\n"
},
{
"from": "human",
"value": "const comanche = require('./comanche')\nconst api = require('./plugins/api')\nconst cli = require('./plugins/cli')\nconst execution = require('./plugins/execution')\nconst validation = r... | javascript | chosen |
[
{
"from": "system",
"value": "Add dotted notation key support (ie. themes)\n"
},
{
"from": "human",
"value": "const appendUnit = (value, unit) => (\n value ? `${value}${unit}` : '0'\n);\n\nconst mapStringTemplateToGetter = (value) => {\n if (typeof value === 'string') {\n const [key, unit] ... | javascript | chosen |
[
{
"from": "system",
"value": "Allow window object to be passed in\n\nFor use with Node.js\n"
},
{
"from": "human",
"value": "// Return Promise\nconst imageMerge = (sources = [], options = {format: 'image/png'}) => new Promise(resolve => {\n\t// Load sources\n\tconst images = sources.map(source =... | javascript | chosen |
[
{
"from": "system",
"value": "Comment out Google Analytics init.\n"
},
{
"from": "human",
"value": "import React, { Component, PropTypes } from 'react';\nimport { Provider } from 'react-redux';\nimport { getRoutes } from '../routes';\nimport { Router, applyRouterMiddleware } from 'react-router';... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"Tweak log formating to append colon and space to stdout type.\"\n\nThis reverts commit 246fdaece68ae60c6f25fa59f27d9c4183371b9b.\n"
},
{
"from": "human",
"value": "var Logger = function (config) {\n this.config = config;\n this.backend = this.config.back... | javascript | chosen |
[
{
"from": "system",
"value": "Fix in/active state of check item\n"
},
{
"from": "human",
"value": "import Item from './item';\n\nexport default class CheckItem extends Item {\n constructor() {\n super();\n\n this._root\n .classed('check', true)\n .styles({\n 'cursor': 'po... | javascript | chosen |
[
{
"from": "system",
"value": ":green_heart: Send blank skinData to TouchPlugin ctor\n"
},
{
"from": "human",
"value": "import * as PIXI from 'pixi.js'\nimport TouchPlugin from './touch-plugin'\n\ndescribe('TouchPlugin', function () {\n it('should get value when touching', function () {\n let... | javascript | chosen |
[
{
"from": "system",
"value": "Add a NotAuthorized error object\n"
},
{
"from": "human",
"value": "// Create a not found error object. This should at some point inherit\n// from a HTTPError object with a nice .toJSON() method that can be\n// used directly by handlers.\nfunction HTTPError(status, ... | javascript | chosen |
[
{
"from": "system",
"value": "AT-1234: Make ftdomdelegate work regardless whether it is loaded via Bower or NPM\n"
},
{
"from": "human",
"value": "/**\n * A dom-delegate helper for Financial Times' FruitMachine\n *\n * @author Matt Andrews <matt@mattandre.ws>\n * @copyright The Financial Times L... | javascript | chosen |
[
{
"from": "system",
"value": "Fix error in catch source file path.\n"
},
{
"from": "human",
"value": "Plugin.registerCompiler(\n {\n extensions: [\"md\"],\n isTemplate: true\n },\n () => new MdCompiler\n);\n\nexport class MdCompiler extends CachingCompiler {\n constructor() {\n supe... | javascript | chosen |
[
{
"from": "system",
"value": "Fix missing fonts in backpack thumbnails\n"
},
{
"from": "human",
"value": "import jpegThumbnail from './jpeg-thumbnail';\n\nconst costumePayload = costume => {\n // TODO is it ok to base64 encode SVGs? What about unicode text inside them?\n const assetDataUrl... | javascript | chosen |
[
{
"from": "system",
"value": "Change tabs on browser back/forward to match hash\n\nFixes #677\n"
},
{
"from": "human",
"value": "\"use strict\";\n\nvar $ = require('jquery');\n\n// Tab functions on jquery\nrequire('bootstrap');\n\nmodule.exports = function (tabList) {\n // Use hash to determi... | javascript | chosen |
[
{
"from": "system",
"value": "Add user friendly success and error responses\n"
},
{
"from": "human",
"value": "import React, { Component } from 'react'\nimport { reduxForm, Field } from 'redux-form'\nimport { Button, TextField } from '../../components'\nimport redeemTechDomainValidation from './... | javascript | chosen |
[
{
"from": "system",
"value": "Test suites section 9 and 10\n"
},
{
"from": "human",
"value": "/*global require, QUnit */\n\n/*\n * PUMASCRIPT MAIN ENTRY FILE FOR TEST\n * @file: file that includes the dependencies and executions fof RequireJS.\n */\n\nrequire.config({\n paths: {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix innacurate test for whether or not a route was an IndexRoute\n\nThe issue was caused by the fact that we can't use reference equality to compare\nan object to its minified self. Since we obviously want to minify in production\nit is not viable to test `route === IndexRoute`... | javascript | chosen |
[
{
"from": "system",
"value": "Add 'headerSize' node to application store."
},
{
"from": "human",
"value": "/**\n* Build the cartridge store definition.\n* @return {object} - The cartridge component.\n*/\nmodule.exports = () => {\n return ['summaryComponent', 'barContentLeftComponent', 'barCon... | javascript | chosen |
[
{
"from": "system",
"value": "Fix for backwards trigger check on Art of Peace\n"
},
{
"from": "human",
"value": "const ProvinceCard = require('../../provincecard.js');\n\nclass TheArtOfPeace extends ProvinceCard {\n setupCardAbilities() {\n this.interrupt({\n title: 'Honor a... | javascript | chosen |
[
{
"from": "system",
"value": "Reset search on connection error\n"
},
{
"from": "human",
"value": "'use strict';\n\nangular\n .module('flyNg.server', ['services', 'ngCookies'])\n\n .controller('ServerController', ['$scope', '$rootScope', '$location', '$cookies', '$log', 'management', functi... | javascript | chosen |
[
{
"from": "system",
"value": "Integrate with ShadyCSS if in use\n"
},
{
"from": "human",
"value": "import { Mixin } from './ce';\n\nimport { ShadowDOM } from './shadow-dom';\n\nconst templates = new Map();\nfunction resolveTemplate(self) {\n\tconst name = self.localName;\n\tlet template = templa... | javascript | chosen |
[
{
"from": "system",
"value": "Refactor to simplify if else statements\n"
},
{
"from": "human",
"value": "//initialize settings\nHN.settings.initSettings();\n\nvar currentUrl = window.location.href;\n\nif(currentUrl.match(/\\/comments\\/?.*$/i)){\n\tif(currentUrl.match(/ask\\/comments\\/?.*$/i)){... | javascript | chosen |
[
{
"from": "system",
"value": "Add test expectations to error test\n"
},
{
"from": "human",
"value": "/*\n * grunt-external-daemon\n * https://github.com/jlindsey/grunt-external-daemon\n *\n * Copyright (c) 2013 Joshua Lindsey\n * Licensed under the MIT license.\n */\n\n'use strict';\n\nvar grunt... | javascript | chosen |
[
{
"from": "system",
"value": "Set port on express app explicitly\n"
},
{
"from": "human",
"value": "var express = require('express')\n , http = require('http')\n , passport = require('passport')\n , path = require('path')\n , User = require('./models/Use... | javascript | chosen |
[
{
"from": "system",
"value": "Change default port to 7001.\n"
},
{
"from": "human",
"value": "/**\n * @see http://expressjs.com/4x/api.html\n */\n\nvar express = require('express'),\n\tserveStatic = require('serve-static'),\n\terrorHandler = require('errorhandler'),\n\tpath = require('path');\n\... | javascript | chosen |
[
{
"from": "system",
"value": "Use eq() to select correct elements\n"
},
{
"from": "human",
"value": "var bar = $('.sr-list');\nvar subreddits = ['nba', 'madmen', 'gameofthrones', 'programming', 'python', 'starcraft', 'malefashionadvice', \n 'wow', 'arduino', 'videos'];\nbar.empt... | javascript | chosen |
[
{
"from": "system",
"value": "Fix typo in property name\n"
},
{
"from": "human",
"value": "'use strict';\n\nimport React from 'react';\nimport connect from '../../bicycle/connect';\n\n@connect(props => ({channels: {id: props.params.channel}}))\nexport default class ChannelSelector {\n render() ... | javascript | chosen |
[
{
"from": "system",
"value": "Create the snippet, then the draft.\n"
},
{
"from": "human",
"value": "import Ember from 'ember';\n\nexport default Ember.Route.extend({\n actions: {\n submit: function () {\n var content = this.controller.get('firstSnippet');\n\n var snippet = this.st... | javascript | chosen |
[
{
"from": "system",
"value": "Disable failure on empty glob result\n"
},
{
"from": "human",
"value": "var gs = require('glob-stream')\nvar miss = require('mississippi')\nmodule.exports = (pattern) => miss.pipeline.obj(gs(pattern, {\n nodir: true\n}), miss.through.obj((chunk, enc, cb) => cb(null... | javascript | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.