conversations listlengths 2 3 | source stringclasses 1 value | stack stringclasses 1 value |
|---|---|---|
[
{
"from": "system",
"value": "Adjust dimensions of grid to be squarer\n"
},
{
"from": "human",
"value": "module.exports = {\n Env: process.env.NODE_ENV || 'development',\n Permissions: {\n viewPage: 'viewPage'\n },\n boxWidth: 55,\n boxHeight: 30,\n Difficulties: {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Check for DVD device for ripping queue processing\n"
},
{
"from": "human",
"value": "(function() {\n 'use strict';\n\n var ripper = require('./Rip'),\n encoder = require('./Encode'),\n ui = require('bull-ui/app')({\n redis: {\n host: 'localhost',... | javascript | chosen |
[
{
"from": "system",
"value": "Remove the 'X-Powered-By: Express' HTTP response header\n\nFixes #2\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst path = require('path');\nconst express = require('express');\nconst bodyParser = require('body-parser');\nconst routes = require('./controll... | javascript | chosen |
[
{
"from": "system",
"value": "Fix last minute name chang bug.\n"
},
{
"from": "human",
"value": "var test = require('tape')\nvar names = require('../lib/imageref.js')\n\ntest('litmus', function (t) {\n t.plan(2)\n t.looseEqual(\n names(['1', '']),\n ['atom-h']\n )\n t.looseEqual(\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Support prefix if multiple font families are used\n"
},
{
"from": "human",
"value": "var postcss = require('postcss');\n\nmodule.exports = postcss.plugin('postcss-prefixer-font-face', function (opts) {\n opts = opts || {};\n\n var prefix = opts.prefix || '';\n... | javascript | chosen |
[
{
"from": "system",
"value": "Add managing of _id field\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar async = require(\"async\");\n\nfunction capitalize(string) {\n return string.charAt(0).toUpperCase() + string.slice(1);\n}\n\nmodule.exports = function seeder(seedObject, mongoose, lo... | javascript | chosen |
[
{
"from": "system",
"value": "Fix events() call to match renamed function eventFunctions()\n"
},
{
"from": "human",
"value": "const { expect } = require('chai');\nconst Plexacious = require('../lib/Plexacious');\nconst config = {\n \"hostname\": process.env.PLEX_SERVER_HOST,\n \"port\": proces... | javascript | chosen |
[
{
"from": "system",
"value": "Replace mini covers with 8tracks icon\n"
},
{
"from": "human",
"value": "function hide_covers() {\n // Remove covers\n $(\".mix_element div.cover\").remove()\n // Add class so cards can be restyled\n $(\".mix_card.half_card\").addClass(\"ext-coverless_ca... | javascript | chosen |
[
{
"from": "system",
"value": "Fix cookie not being parsed on load.\n\nIf you have to stringify your object before saving, and you add that,\nto the `_cookies` cache, then you'll return that on `load` after setting\nit with `save`.\n\nWhile if the value is already set, the script correctly parses the cookie\... | javascript | chosen |
[
{
"from": "system",
"value": "Use double quotes on \"use strict\"\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\n\n'use strict';\n\nconst moment = require(\"moment\");\nconst sugar = require(\"sugar\");\nconst chalk = require(\"chalk\");\nconst exec = require(\"child_process\").exec;\n\... | javascript | chosen |
[
{
"from": "system",
"value": "Remove unused dependency from JS wrapper\n"
},
{
"from": "human",
"value": "var child_process = require('child_process');\nvar byline = require('./byline');\n\nexports.handler = function(event, context) {\n var proc = child_process.spawn('./main', [JSON.stringify(e... | javascript | chosen |
[
{
"from": "system",
"value": "Make timeout disabled by default\n"
},
{
"from": "human",
"value": "'use strict';\n\nclass Mutex {\n constructor() {\n // Item at index 0 is the caller with the lock:\n // [ <has the lock>, <waiting>, <waiting>, <waiting> ... ]\n this.queue = [];\n }\n\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Connect to RTM right away\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar express = require('express');\nvar path = require('path');\nvar bodyParser = require('body-parser');\n\nvar api = require('./nestor/api');\n\nvar app = express();\n\napp.use(bodyParser... | javascript | chosen |
[
{
"from": "system",
"value": "Restructure things to handle all-ok cases\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar fs = require('fs');\n\nfunction reset() {\n exports.out = [];\n exports.xmlEmitter = null;\n exports.opts = {};\n} reset();\n\n/**\n * Load a formatter\n * @pa... | javascript | chosen |
[
{
"from": "system",
"value": "Allow passing extra args to function matchers\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar minimatch = require('minimatch');\n\nvar anymatch = function(criteria, string, returnIndex, startIndex, endIndex) {\n if (!Array.isArray(criteria)) { criteria = [c... | javascript | chosen |
[
{
"from": "system",
"value": "Remove last reference to array returns\n"
},
{
"from": "human",
"value": "/**\n * Dispatcher prototype\n */\n\nvar dispatcher = Dispatcher.prototype;\n\n/**\n * Exports\n */\n\nmodule.exports = Dispatcher;\n\n/**\n * Dispatcher\n *\n * @return {Object}\n * @api publ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix in defining keys for x,y\n"
},
{
"from": "human",
"value": "var util = require('util');\n\nGeometryBounds = function(bounds) {\n this.xKey = \"x\";\n this.yKey = \"y\";\n\n this.bounds = [];\n if(!bounds || !bounds[0]) return;\n\n this.xKey = Object.keys(bo... | javascript | chosen |
[
{
"from": "system",
"value": "Add hasFocus() for text formField\n"
},
{
"from": "human",
"value": "/**\n * @class CM_FormField_Text\n * @extends CM_FormField_Abstract\n */\nvar CM_FormField_Text = CM_FormField_Abstract.extend({\n\t_class: 'CM_FormField_Text',\n\n\t/** @type Boolean */\n\t_skipTr... | javascript | chosen |
[
{
"from": "system",
"value": "Stop passing middlewares array to stack\n"
},
{
"from": "human",
"value": "/**\n * Builder.js\n *\n * @author: Harish Anchu <harishanchu@gmail.com>\n * @copyright Copyright (c) 2015-2016, QuorraJS.\n * @license See LICENSE.txt\n */\n\nvar StackedHttpKernel = require... | javascript | chosen |
[
{
"from": "system",
"value": "Debug and quiet have short keys.\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\n'use strict';\n\n/**\n * Binary to run a pg server.\n * (C) 2015 Alex Fernández.\n */\n\n// requires\nvar stdio = require('stdio');\nvar server = require('../lib/server.js');\nv... | javascript | chosen |
[
{
"from": "system",
"value": "Remove useless sinon require shim\n"
},
{
"from": "human",
"value": "'use strict';\n\nrequire.config({\n baseUrl: '../lib',\n paths: {\n 'test': '..',\n 'forge': 'forge.min'\n },\n shim: {\n sinon: {\n exports: 'sinon',\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add test cases for the utils\n"
},
{
"from": "human",
"value": "describe('getFolders()', function() {\n it('should return the correct list of folders', function() {\n var objects = [\n { Key: '/' },\n { Key: 'test/' },\n { Key: 'test/test/' },\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add version constraing to bootstrap use\n"
},
{
"from": "human",
"value": "Package.describe({\n summary: \"Run tests interactively in the browser\",\n version: '1.0.5-pre.2'\n});\n\nPackage.on_use(function (api) {\n // XXX this should go away, and there should be... | javascript | chosen |
[
{
"from": "system",
"value": "Add navbar link to /bookmarks\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport { NavLink } from 'react-router-dom';\n\nimport './style.css';\n\nconst Header = props => {\n const { isAdmin, loggedIn } = props;\n return (\n <div>\n <div ... | javascript | chosen |
[
{
"from": "system",
"value": "Create logs dir if necessary\n"
},
{
"from": "human",
"value": "var log4js = require('log4js');\n\nlog4js.configure({\n appenders: [\n { \n 'type': 'file',\n 'filename': 'logs/mymap.log',\n 'category': ['mymap', 'console'],\n 'maxLogS... | javascript | chosen |
[
{
"from": "system",
"value": "FIX broken markdown and entities\n"
},
{
"from": "human",
"value": "const MySql = require(\"./MySql.js\");\n\nclass Meet{\n constructor(obj){\n Object.keys(obj).forEach(k=>this[k]=obj[k]);\n }\n\n asMarkdown(){\n return `*${this.post_title}* ${this.meet_sta... | javascript | chosen |
[
{
"from": "system",
"value": "Put the model results right on the MC object\n"
},
{
"from": "human",
"value": "module.exports = exports = MC\n\nfunction MC () {\n this._loading = 0\n this.models = {}\n}\n\nvar modelLoaders = {}\nMC.model = function (name, loader) {\n modelLoaders[name] = loade... | javascript | chosen |
[
{
"from": "system",
"value": "Fix: Use process.execPath to find node executable on Windows\n"
},
{
"from": "human",
"value": "const fs = require('fs');\nconst path = require('path');\n\nconst exec = require('child_process').exec;\n// this is from the env of npm, not node\nconst nodePath = proces... | javascript | chosen |
[
{
"from": "system",
"value": "Add comment about level 1 Unicode properties\n"
},
{
"from": "human",
"value": "const {\n assemble,\n writeFile,\n unicodeVersion\n} = require('./utils.js');\n\nconst properties = [\n 'ASCII',\n 'Alphabetic',\n 'Any',\n 'Default_Ignorable_Code_P... | javascript | chosen |
[
{
"from": "system",
"value": "Add logging to all requests (needed to be at start of configure, perhaps a template rendering issue?)\n"
},
{
"from": "human",
"value": "\n/**\n * Module dependencies.\n */\n\nvar express = require('express'),\n expressHogan = require('express-hogan.js'),\... | javascript | chosen |
[
{
"from": "system",
"value": "Add alternate language categories in generator\n\nThis will populate the `alternates` variable that will be available to\nuse in the layout files. The current language is not included for\nobvious reasons.\n\nBuilt from a10e346a1e29ca8ed1cb71666f8bf7b7d2fd8239.\n"
},
{
... | javascript | chosen |
[
{
"from": "system",
"value": "Use an explicit check for auto update override.\n"
},
{
"from": "human",
"value": "/**\n * DefaultKeystoneConfiguration contains the default settings for keystone.\n * @class DefaultKeystoneConfiguration\n * @param {Theme} theme\n * @constructor\n *\n */\nmodule.exp... | javascript | chosen |
[
{
"from": "system",
"value": "Use bluebird for debuggable promises in tests\n"
},
{
"from": "human",
"value": "// First require your DOM emulation file (see below)\nrequire('./emulateDom.js');\n\nimport db_config from '../knexfile';\n\nlet exec_env = process.env.DB_ENV || 'test';\nglobal.$dbConf... | javascript | chosen |
[
{
"from": "system",
"value": "Add explanatory and TODO notes\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar request = require('request');\n\nvar opts = {\n uri: 'https://api.github.com' + '/users/' + parseParams(process.argv[2]) + '/events',\n json: true,\n method: 'GET',\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Change synchronous readdir to a promise\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar _ = require('lodash');\nvar bluebird = require('bluebird');\nvar fs = bluebird.promisifyAll(require('fs'));\nvar glob = require('glob');\nvar hljs = ... | javascript | chosen |
[
{
"from": "system",
"value": "Make the tests work for remote test clients.\n"
},
{
"from": "human",
"value": "var assert = buster.referee.assert;\n\nbuster.testCase(\"Call onerror\", {\n\n setUp: function () {\n $ = {};\n $.post = this.spy();\n\n initErrorHandler(\"/error\", \"localhos... | javascript | chosen |
[
{
"from": "system",
"value": "Use getter to call completeName as a property\n"
},
{
"from": "human",
"value": "\nconsole.log(this) //contexto global\nconsole.log(this === window) //true\n\nvar developer = {\n name : 'Erik',\n lastName : 'Ochoa',\n isAdult : true,\n completeName: function(){\... | javascript | chosen |
[
{
"from": "system",
"value": "Refresh the page between a test and another\n"
},
{
"from": "human",
"value": "describe('Prerequisites', () => {\n describe('Call the same resource with both http client and iframe', () => {\n it('http headers should be less or equal than iframe ones', () => {... | javascript | chosen |
[
{
"from": "system",
"value": "Add new line at the end of test files\n"
},
{
"from": "human",
"value": "const Alfred = require('../index');\nconst Builder = Alfred.Builder;\n\nconst bot = new Alfred();\n\nbot.login('username', 'password')\n .then(() => bot.send('servernotifyregister', { 'event... | javascript | chosen |
[
{
"from": "system",
"value": "Send error 425 if the recipient of an event is not found\n"
},
{
"from": "human",
"value": "/*\n * Command to handle APS events\n */\nApe.registerCmd(\"event\", true, function(params, info) {\n\t\n\tif(params.multi){\n\t\tvar recipient = Ape.getChannelByPubid(params... | javascript | chosen |
[
{
"from": "system",
"value": "Make OIDC be default auth mechanism\n"
},
{
"from": "human",
"value": "const logger = require('../logging');\nconst passport = require('passport');\nconst { setupOIDC } = require('./oidc');\n\nconst getUserById = require('../models/user.accessors').getUserById;\n\nr... | javascript | chosen |
[
{
"from": "system",
"value": "Add FullWidth row template to exports\n"
},
{
"from": "human",
"value": "\nexports.AgGridAurelia = require('./lib/agGridAurelia').AgGridAurelia;\nexports.AgGridColumn = require('./lib/agGridColumn').AgGridColumn;\nexports.AgCellTemplate = require('./lib/agTemplate')... | javascript | chosen |
[
{
"from": "system",
"value": "Remove css transition from progress bar\n"
},
{
"from": "human",
"value": "import React, {Component} from 'react';\nimport Style from 'styled-components';\n\nclass Progress extends Component {\n state = {progress: 0};\n\n componentDidMount() {\n this.props.emit... | javascript | chosen |
[
{
"from": "system",
"value": "Build the copyright header slightly less dumb\n"
},
{
"from": "human",
"value": "/*\n * Raven.js @VERSION\n * https://github.com/getsentry/raven-js\n *\n * Includes TraceKit\n * https://github.com/getsentry/TraceKit\n *\n * Copyright 2013 Matt Robenolt and other con... | javascript | chosen |
[
{
"from": "system",
"value": "Fix escaping servers which replace the ` ` with a space\n\nWe have seen some servers which replace the non-breaking space character with an actual space.\r\nThis should ensure that even when there is a space the div actually renders"
},
{
"from": "human",
"valu... | javascript | chosen |
[
{
"from": "system",
"value": "Add an API call for file contents\n"
},
{
"from": "human",
"value": "\"use strict\";\n\nvar GitHubAPI = function(accessToken, org, repo) {\n\n var API_URL = 'https://api.github.com/repos/' + org + '/' + repo;\n\n return {\n getBranch: function(branchName) {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Set ready var to false before each test so it doesn't run prematurely.\n"
},
{
"from": "human",
"value": "var ready;\n\nbeforeEach(function() {\n\tstorage = TEST_STORAGE;\n\n\tstorage.clear(function() {\n\t\tready = true;\n\t});\n\n\twaitsFor(function() {\n\t\tretur... | javascript | chosen |
[
{
"from": "system",
"value": "Update fn call for unset to work.\n"
},
{
"from": "human",
"value": "/**\n * WidgetNull component.\n *\n * Site Kit by Google, Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in... | javascript | chosen |
[
{
"from": "system",
"value": "Add disco feature for forms layout\n"
},
{
"from": "human",
"value": "'use strict';\n\nrequire('../stanza/dataforms');\n\n\nmodule.exports = function (client) {\n client.disco.addFeature('jabber:x:data');\n client.disco.addFeature('urn:xmpp:media-element');\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix objects options with component label.\n"
},
{
"from": "human",
"value": "import {type} from 'ramda';\n\nexport const sanitizeOptions = options => {\n if (type(options) === 'Object') {\n return Object.entries(options).map(([value, label]) => ({\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Use ES6 in the tests."
},
{
"from": "human",
"value": "/* global require, describe, it */\n\nimport assert from 'assert';\nvar urlPrefix = 'http://katas.tddbin.com/katas/es6/language/';\nvar katasUrl = urlPrefix + '__grouped__.json';\n\nvar GroupedKata = require('..... | javascript | chosen |
[
{
"from": "system",
"value": "Fix up route for single list\n"
},
{
"from": "human",
"value": "import Ember from 'ember';\nimport config from './config/environment';\n\nvar Router = Ember.Router.extend({\n location: config.locationType\n});\n\nRouter.map(function() {\n this.route('lists', funct... | javascript | chosen |
[
{
"from": "system",
"value": "Add support for lodash 4.x (Found in Grunt 1.x)\n * Changed lodash `rest` usage to tail.\n * Note this still supports lodash 3.x as tail was an alias for the original rest. Both 3.x and 4.x tail do the same thing.\n"
},
{
"from": "human",
"value": "/*\n * grunt-ut... | javascript | chosen |
[
{
"from": "system",
"value": "Introduce read-only but extensible mount points file\n"
},
{
"from": "human",
"value": "import ExamplePluginComponent from \"./components/ExamplePluginComponent\";\n\nvar PluginHelper = global.MarathonUIPluginAPI.PluginHelper;\n\nPluginHelper.registerMe(\"examplePlu... | javascript | chosen |
[
{
"from": "system",
"value": "Change name to match new service instance object\n"
},
{
"from": "human",
"value": "document.addEventListener('DOMContentLoaded', function () {\n display('Searching...');\n});\n\nfunction display(msg) {\n var el = document.body;\n el.innerHTML = msg;\n}\n\nchrome... | javascript | chosen |
[
{
"from": "system",
"value": "Remove ability to get last memoize result by passing falsy argument\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst _ = require('lodash');\n\nconst tests = {\n db: (value) => {\n const keys = ['query', 'connect', 'begin'];\n\n return keys.every((key... | javascript | chosen |
[
{
"from": "system",
"value": "Rename CMS label to Pages\n"
},
{
"from": "human",
"value": "(function() {\n 'use strict';\n\n angular.module('app.states')\n .run(appRun);\n\n /** @ngInject */\n function appRun(routerHelper, navigationHelper) {\n routerHelper.configureStates(getStates())... | javascript | chosen |
[
{
"from": "system",
"value": "Remove redux-logger and setup redux devtools\n"
},
{
"from": "human",
"value": "import { createStore, applyMiddleware } from 'redux'\nimport logger from 'redux-logger'\nimport thunk from 'redux-thunk'\nimport oaaChat from './reducers'\n\nconst configureStore = () =>... | javascript | chosen |
[
{
"from": "system",
"value": "Tweak Content name to be not nullable\n"
},
{
"from": "human",
"value": "export async function up(knex) {\n await knex.schema.createTable('Resource', (table) => {\n table.uuid('id').notNullable().primary()\n table.string('name', 32).notNullable()\n table.s... | javascript | chosen |
[
{
"from": "system",
"value": "Update available locales to prioritise english\n"
},
{
"from": "human",
"value": "'use strict';\n\n// Load our requirements\nconst glob = require('glob'),\n path = require('path'),\n logger = require('../log');\n\n// Build a list of the available locale fi... | javascript | chosen |
[
{
"from": "system",
"value": "Configure tests to fail fast\n"
},
{
"from": "human",
"value": "module.exports = {\n verbose: !!process.env.VERBOSE,\n moduleNameMapper: {\n testHelpers: '<rootDir>/testHelpers/index.js',\n },\n setupTestFrameworkScriptFile: '<rootDir>/testHelpers/setup.js',\... | javascript | chosen |
[
{
"from": "system",
"value": "Add event tracking to google analytics\n"
},
{
"from": "human",
"value": "/*!\n * Start Bootstrap - Agnecy Bootstrap Theme (http://startbootstrap.com)\n * Code licensed under the Apache License v2.0.\n * For details, see http://www.apache.org/licenses/LICENSE-2.0.\n... | javascript | chosen |
[
{
"from": "system",
"value": "Use __dirname instead of process.cwd\n\nprocess.cwd refers to the directory in which file was executed, not the directory in which it lives"
},
{
"from": "human",
"value": "var pkg = require(process.cwd() + '/package.json');\nvar intrepidjsVersion = pkg.version;\n\n... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"Revert \"resolve ala node_module resolution algorithim (NPM v3 support);\"\"\n\nThis reverts commit 2aeb7307e81c8052b2fb6021bf4ab10ca433abce.\n"
},
{
"from": "human",
"value": "'use strict';\n\nmodule.exports = {\n name: 'Ember CLI ic-ajax',\n\n init: fun... | javascript | chosen |
[
{
"from": "system",
"value": "Change check to use endsWith for supporting loud comments"
},
{
"from": "human",
"value": "import postcss from 'postcss';\n\nconst postcssFlexibility = postcss.plugin('postcss-flexibility', () => css => {\n\tcss.walkRules(rule => {\n\t\tconst isDisabled = rule.some(... | javascript | chosen |
[
{
"from": "system",
"value": "Undo console log (was a demo of git)\n"
},
{
"from": "human",
"value": "$(document).ready(function() {\n $(\"#trcAge\").slider({\n id: \"trcAge\"\n });\n $(\"#trcAge\").on(\"slide\", function(slideEvt) {\n console.log(\"Age range selected\", s... | javascript | chosen |
[
{
"from": "system",
"value": "fix: Use 404 instead of 500 when a file is not found\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\nconst express = require('express');\nconst fileExists = require('file-exists');\nconst bodyParser = require('body-parser');\nconst fs = require('fs');\nconst... | javascript | chosen |
[
{
"from": "system",
"value": "Make the test a bit more strict\n"
},
{
"from": "human",
"value": "module.exports = isPromise;\n\nfunction isPromise(obj) {\n return obj && typeof obj.then === 'function';\n}"
},
{
"from": "gpt",
"value": "module.exports = isPromise;\n\nfunction isPromi... | javascript | chosen |
[
{
"from": "system",
"value": "Add some comments and refine echo command\n"
},
{
"from": "human",
"value": "\nconst Discord = require('discord.js');\nconst client = new Discord.Client();\nconst config = require(\"./config.json\");\n\nclient.on('ready', () => {\n console.log(\"I am ready!\");\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Replace q with native Promises\n"
},
{
"from": "human",
"value": "var Q = require('q');\n\n/**\n * Chai-Mugshot Plugin\n *\n * @param mugshot - Mugshot instance\n * @param testRunnerCtx - Context of the test runner where the assertions are\n * done\n */\nmodule.e... | javascript | chosen |
[
{
"from": "system",
"value": "Change way in which storeRegistry expects stores to be returned, it's now a hash\n"
},
{
"from": "human",
"value": "\"use strict\";\n\n/*!\n * Module dependencies.\n */\n\nvar dummy\n , hotplate = require('hotplate')\n;\n\n\nexports.getAllStores = hotplate.cachable... | javascript | chosen |
[
{
"from": "system",
"value": "Move close functionality on location change into mwMenuTopBar\n"
},
{
"from": "human",
"value": "angular.module('mwUI.Menu')\n\n .directive('mwMenuTopEntries', function ($rootScope, $timeout) {\n return {\n scope: {\n menu: '=mwMenuTopEntries',\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add caveat about symbols to string error message\n"
},
{
"from": "human",
"value": "/**\n * Copyright 2015-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root dir... | javascript | chosen |
[
{
"from": "system",
"value": "Add relevant Customer section changes to main.router.js\n"
},
{
"from": "human",
"value": "'use strict';\n\nangular.module('StudentApp').config(['$routeProvider', '$locationProvider',\n function ($routeProvider, $locationProvider) {\n $routeProvider.when('... | javascript | chosen |
[
{
"from": "system",
"value": "Add support for an index mode\n"
},
{
"from": "human",
"value": "'use strict';\n\n// MODULES //\n\nvar isInteger = require( '@stdlib/assert/is-integer' ).isPrimitive;\n\n\n// FUNCTIONS //\n\n/**\n* Returns an array element.\n*\n* @private\n* @param {...integer} idx ... | javascript | chosen |
[
{
"from": "system",
"value": "Handle case where dotenv is not included in production.\n"
},
{
"from": "human",
"value": "require('babel/register');\nrequire('dotenv').load();\n\nvar startServer = require('./app');\n\nvar port = process.env['PORT'] || 3000;\nstartServer(port);\n"
},
{
"fr... | javascript | chosen |
[
{
"from": "system",
"value": "Add identity gard before firing layout change\n"
},
{
"from": "human",
"value": "import Vue from \"vue\"\n\nexport default {\n name: 'AppPage',\n props: {\n layout: {\n type: String,\n required: true,\n validator: [].inc... | javascript | chosen |
[
{
"from": "system",
"value": "Refactor method definitions on prototype to be more DRY\n"
},
{
"from": "human",
"value": "\"use strict\";\n\nvar _ = require(\"lodash\");\nvar HTTP_STATUS_CODES = require(\"http\").STATUS_CODES;\nvar request = require(\"request\");\nvar url = require(\"url\");\n\nf... | javascript | chosen |
[
{
"from": "system",
"value": "Change exposed function name to espowerSource\n"
},
{
"from": "human",
"value": "/**\n * espower-source - Power Assert instrumentor from source to source.\n * \n * https://github.com/twada/espower-source\n *\n * Copyright (c) 2014 Takuto Wada\n * Licensed under the ... | javascript | chosen |
[
{
"from": "system",
"value": "Update mobile width to 840 px\n"
},
{
"from": "human",
"value": "'use strict'\n\nvar window = require('global/window')\nvar Struct = require('observ-struct')\nvar Observ = require('observ')\nvar minimumViewport = require('minimum-viewport')\nvar orientation = requir... | javascript | chosen |
[
{
"from": "system",
"value": "Mark output format as XML\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar MarkdownIt = require('markdown-it');\n\nexports.name = 'markdown-it';\nexports.outputFormat = 'html';\nexports.render = function (str, options) {\n var md = MarkdownIt(options);\n re... | javascript | chosen |
[
{
"from": "system",
"value": "Use multiple var statements and `Object.create`\n"
},
{
"from": "human",
"value": "function Fs() {}\nFs.prototype = require('fs')\nvar fs = new Fs()\n , Promise = require('promise')\n\nmodule.exports = exports = fs\nfor (var key in fs)\n if (!(typeof fs[key] != 'f... | javascript | chosen |
[
{
"from": "system",
"value": "Add `treeForVendor` and `included` hook implementations.\n"
},
{
"from": "human",
"value": "/* eslint-env node */\n\"use strict\";\n\nmodule.exports = {\n name: \"ember-component-attributes\",\n\n setupPreprocessorRegistry(type, registry) {\n registry.add(\"htm... | javascript | chosen |
[
{
"from": "system",
"value": "Add default prop for page\n"
},
{
"from": "human",
"value": "/**\n * @jsx React.DOM\n */\n\nvar React = require('react');\n\n\nvar Pdf = React.createClass({\n getInitialState: function() {\n return {};\n },\n componentDidMount: function() {\n var self = thi... | javascript | chosen |
[
{
"from": "system",
"value": "Fix ordering on user list page\n"
},
{
"from": "human",
"value": "angular.module('app').controller('mvUserListController', function ($scope, mvUser) {\n $scope.users = mvUser.query();\n\n $scope.sortOptions = [{\n value: \"username\",\n text: \"Sort by usern... | javascript | chosen |
[
{
"from": "system",
"value": "Map: Move starting location a little so Wick Sports Ground is visible\n"
},
{
"from": "human",
"value": "(function(){\n\n angular\n .module('app')\n .config(function(uiGmapGoogleMapApiProvider) {\n uiGmapGoogleMapApiProvider.configure({\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add R language key for matrix column\n"
},
{
"from": "human",
"value": "import Ember from 'ember';\n\nvar configKeys, configKeysMap, languageConfigKeys;\n\nlanguageConfigKeys = {\n go: 'Go',\n php: 'PHP',\n node_js: 'Node.js',\n perl: 'Perl',\n perl6: 'Perl6',\... | javascript | chosen |
[
{
"from": "system",
"value": "Fix a bug for unique\n"
},
{
"from": "human",
"value": "/**\n * util-lang.js - The minimal language enhancement\n */\n\nvar hasOwnProperty = {}.hasOwnProperty\n\nfunction hasOwn(obj, prop) {\n return hasOwnProperty.call(obj, prop)\n}\n\nfunction isFunction(obj) {\n... | javascript | chosen |
[
{
"from": "system",
"value": "Use people API instead of plus API\n\nUse people API instead of plus API\n\nThe plus API is being deprecated. This updates the sample code to use the people API instead.\r\n\r\nFixes #1600.\r\n\r\n- [x] Tests and linter pass\r\n- [x] Code coverage does not decrease (if any sour... | javascript | chosen |
[
{
"from": "system",
"value": "Change error message per readme.\n"
},
{
"from": "human",
"value": "var Office365ConnectorHook = require(\"./index.js\"),\n winston = require('winston'),\n Logger = winston.Logger,\n Console = winston.transports.Console,\n hookUrl = process.env.HOOK_URL;... | javascript | chosen |
[
{
"from": "system",
"value": "Test program now emits JSON strings of messages, not just message bodies\n"
},
{
"from": "human",
"value": "var sys = require(\"sys\"),\n stomp = require(\"./stomp\");\n\nvar client = new stomp.Client(\"localhost\", 61613);\nclient.subscribe(\"/queue/news\", functi... | javascript | chosen |
[
{
"from": "system",
"value": "Add props for the action trigger\n"
},
{
"from": "human",
"value": "'use strict';\n\nimport React from 'react';\n\nrequire('styles//Controls.scss');\n\nclass ControlsComponent extends React.Component {\n\n renderStopButton() {\n if (this.props.isPlaying) {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix ReferenceError in saveAs polyfill\n"
},
{
"from": "human",
"value": "var save = (function() {\n \"use strict\";\n\n // saveAs from https://gist.github.com/MrSwitch/3552985\n var saveAs = window.saveAs || (window.navigator.msSaveBlob ? function (b, n) {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Increase indention by 2 spaces\n"
},
{
"from": "human",
"value": "var questions = [\n Q1 = {\n question: \"What does HTML means?\",\n answer: \"HyperText Markup Language\"\n },\n Q2 = {\n question: \"What does CSS means?\",\n answer: \"Cascading Style... | javascript | chosen |
[
{
"from": "system",
"value": "Use `Error.toString` for a displayed message whenever possible\n"
},
{
"from": "human",
"value": "/*\n * Copyright 2015 Vivliostyle Inc.\n *\n * This file is part of Vivliostyle UI.\n *\n * Vivliostyle UI is free software: you can redistribute it and/or modify\n * i... | javascript | chosen |
[
{
"from": "system",
"value": "Use a better structure for components\n"
},
{
"from": "human",
"value": "/**\n * Transfer component data from .mxt to json\n */\n\nvar fs = require('fs');\nvar path = require('path');\n\nvar componentDataPath = './componentdata.tmp';\n\nfs.readFile(componentDataPath... | javascript | chosen |
[
{
"from": "system",
"value": "Remove `cacheMode` top-level property - this will be accomplished through plugin.\n"
},
{
"from": "human",
"value": "var path = require(\"path\");\n\nvar Interlock = require(\"..\");\n\nvar ilk = new Interlock({\n srcRoot: __dirname,\n destRoot: path.join(__dirnam... | javascript | chosen |
[
{
"from": "system",
"value": "Fix thesis invite on staging.\n"
},
{
"from": "human",
"value": "import { callController } from '../../../util/apiConnection'\n\nexport const acceptThesis = token => callController(`/invite/thesis/${token}`, 'INVITE_ACCEPT_THESIS_')\nexport const acceptRole = token ... | javascript | chosen |
[
{
"from": "system",
"value": "[TASK] Append a date on each requested requireJS module to prevent caching issues\n"
},
{
"from": "human",
"value": "/**\n * RequireJS configuration\n * @description Pass in options for RequireJS like paths, shims or the baseUrl\n */\nrequire.config({\n\tpaths: { }\... | javascript | chosen |
[
{
"from": "system",
"value": "Fix runtime inclusion after API changes.\n"
},
{
"from": "human",
"value": "import most from \"most\";\n\nimport * as Pluggable from \"../../pluggable\";\nimport resolveAsset from \"../modules/resolve\";\nimport loadAst from \"../modules/load-ast\";\n\nimport { entr... | javascript | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.