conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Include matches unit tests in main bundle\n"
},
{
"from": "human",
"value": "//query\nimport './query/ends_with';\nimport './query/includes';\nimport './query/is_alpha';\nimport './query/is_alpha_digit';\nimport './query/is_blank';\nimport './query/is_digit';\nimpor... | javascript | chosen |
[
{
"from": "system",
"value": "Copy to Clipboard -- Swap out withHyperHTML in favor of BoltComponent to fix console / render errors\n"
},
{
"from": "human",
"value": "import {\n define,\n props,\n withComponent,\n css,\n hasNativeShadowDomSupport,\n withPreact,\n withHyperHTML,\n sanitize... | javascript | chosen |
[
{
"from": "system",
"value": "Add sort settings to fixture config.\n"
},
{
"from": "human",
"value": "(function () {\n 'use strict';\n\n define(function () {\n return [\n {\n key: 'first',\n labelText: 'Field One'\n },\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Remove extra event handler methods from todo\n"
},
{
"from": "human",
"value": "import React, { PropTypes } from 'react'\n\nclass Todo extends React.Component {\n static propTypes = {\n todo: PropTypes.any.isRequired,\n deleteButtonVisible: PropTypes.bool,\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Migrate the files plugin to use Watcher\n"
},
{
"from": "human",
"value": "var mix = require('mix');\nvar path = require('path');\nvar vfs = require('vinyl-fs');\n\nmodule.exports = function (options) {\n var base = path.resolve(options.base);\n\n var globs;\n... | javascript | chosen |
[
{
"from": "system",
"value": "TEST: Add simple 'Find legal adviser' search test\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar util = require('util');\nvar common = require('../../modules/common-functions');\n\nmodule.exports = {\n 'Start page': common.startPage,\n\n 'Categories of la... | javascript | chosen |
[
{
"from": "system",
"value": "Change the way to load json\n"
},
{
"from": "human",
"value": "module.exports = {\n /*\n ** Headers of the page\n */\n head: {\n title: 'CSS Frameworks',\n titleTemplate: '%s - CSS Frameworks',\n meta: [\n { charset: 'utf-8' },\n { name: 'view... | javascript | chosen |
[
{
"from": "system",
"value": "Fix incorrect path in linked packages instructions\n"
},
{
"from": "human",
"value": "/**\n * Copy this file to `local/linked-packages.js` and uncomment any modules as desired to link them\n * for local development.\n *\n * These will be resolved as aliases in the w... | javascript | chosen |
[
{
"from": "system",
"value": "Bring back source maps in tests\n"
},
{
"from": "human",
"value": "var _ = require('lodash')\nvar webpackConfig = require('./webpack.config')\n\nvar config = {\n\n frameworks: ['mocha', 'effroi'],\n\n preprocessors: {\n 'tests/index.js': ['webpack', 'sourcemap'... | javascript | chosen |
[
{
"from": "system",
"value": "Use dots reporter instead of progress\n\nBecause of https://github.com/karma-runner/karma/issues/724"
},
{
"from": "human",
"value": "module.exports = function(config) {\n config.set({\n frameworks: ['mocha', 'chai'],\n files: [\n 'bower_components/versa... | javascript | chosen |
[
{
"from": "system",
"value": "Add a max width to 100vw component to avoid horizontal scroll.\n"
},
{
"from": "human",
"value": "\nimport React from 'react'\nimport PropTypes from 'prop-types'\nimport CircularProgress from 'material-ui/CircularProgress'\n\nclass FullScreenProgress extends React.C... | javascript | chosen |
[
{
"from": "system",
"value": "Clean up route handling so it's more readable.\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst express = require('express');\nconst BodyParser = require('body-parser');\nconst Handlers = require('../util').Handlers;\nconst Err = require('../util').Err;\n\... | javascript | chosen |
[
{
"from": "system",
"value": "Fix excess reason condition wrapping\n"
},
{
"from": "human",
"value": "/*global app, me, client*/\n\"use strict\";\n\nvar _ = require('underscore');\nvar HumanModel = require('human-model');\nvar logger = require('andlog');\n\n\nmodule.exports = HumanModel.define({... | javascript | chosen |
[
{
"from": "system",
"value": "Fix a bug in extend\n"
},
{
"from": "human",
"value": "module.exports = function (context) {\n return {\n $: function (expression) {\n return expression\n },\n\n extend: {\n extendables: {},\n add: function (selector, cssString) {\n t... | javascript | chosen |
[
{
"from": "system",
"value": "Update based on feedback from @nash-md"
},
{
"from": "human",
"value": "// Download the Node helper library from twilio.com/docs/node/install\n// These vars are your accountSid and authToken from twilio.com/user/account\nvar accountSid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXX... | javascript | chosen |
[
{
"from": "system",
"value": "Move logo link out of header component and into child, simplify markup\n"
},
{
"from": "human",
"value": "import React, { Component } from 'react';\nimport { Link } from 'react-router';\nimport ChannelDropdown from '../../containers/ChannelDropdown/ChannelDropdown';... | javascript | chosen |
[
{
"from": "system",
"value": "Remove all white space characters in `watchlist`\n"
},
{
"from": "human",
"value": "import value from 'object-path';\n\nexport const purender = ({raw}, ...values) => ({\n [Symbol.toStringTag]: 'purender',\n\n shouldComponentUpdate(...args) {\n const watchlist =... | javascript | chosen |
[
{
"from": "system",
"value": "Fix string - Must used double quote"
},
{
"from": "human",
"value": "const Discord = require('discord.js');\nlet embed = new Discord.RichEmbed();\nexports.run = (client, message) => {\n message.delete();\n let args = message.content.split(' ').splice(1).join(' ');... | javascript | chosen |
[
{
"from": "system",
"value": "Fix issue where value might be null in which case it's safe to just set directly on the property.\n"
},
{
"from": "human",
"value": "import data from '../util/data';\n\nexport default function (opts) {\n const { attribute } = opts;\n\n return function (name, oldVa... | javascript | chosen |
[
{
"from": "system",
"value": "Prepare fetching of localization data\n"
},
{
"from": "human",
"value": "const promise = require(\"bluebird\");\nconst options = {\n // Initialization Options\n promiseLib: promise, // use bluebird as promise library\n capSQL: true, // when building SQL queries d... | javascript | chosen |
[
{
"from": "system",
"value": "Fix warning with new JSHint version.\n"
},
{
"from": "human",
"value": "/*global require,__dirname*/\nvar connect = require('connect');\nconnect.createServer(\n connect.static(__dirname)\n).listen(8080);"
},
{
"from": "gpt",
"value": "/*global require,__... | javascript | chosen |
[
{
"from": "system",
"value": "Add loading icon to login screen\n\n\nFormer-commit-id: 90d450bf4183942e81865a20f91780d27f208994"
},
{
"from": "human",
"value": "function viewLogIn() {\n\n var login_form = templates.login;\n $('.section').html(login_form);\n\n $('.form-login').submit(function (... | javascript | chosen |
[
{
"from": "system",
"value": "Fix wrong name being used at temperature preset component\n\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport { forEach } from 'lodash'\n\nimport ControllButton from '../controllButton';\nimport { getUniqueId } from '../../lib/utils';\n\nconst Pr... | javascript | chosen |
[
{
"from": "system",
"value": "Convert strings to VText nodes"
},
{
"from": "human",
"value": "import createElement from 'virtual-dom/create-element'\nimport diff from 'virtual-dom/diff'\nimport patch from 'virtual-dom/patch'\nimport VText from 'virtual-dom/vnode/vtext'\nimport { getScheduler } f... | javascript | chosen |
[
{
"from": "system",
"value": "Rename returned interface to control and init to inView\n"
},
{
"from": "human",
"value": "import Registry from './registry';\n\nconst initInView = () => {\n\n const getElements = (selector) =>\n [].slice.call(document.querySelectorAll(selector));\n\n c... | javascript | chosen |
[
{
"from": "system",
"value": "Fix typo on Adept of the Waves\n"
},
{
"from": "human",
"value": "const DrawCard = require('../../drawcard.js');\n\nclass AdeptOfTheWaves extends DrawCard {\n setupCardAbilities() {\n this.action({\n title: 'Grant Covert to a character',\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add option to pass data back to callback\n"
},
{
"from": "human",
"value": "(function($) {\n $.fn.geoLocation = function(callback) {\n if (callback && typeof(callback) === 'function') {\n var options = {\n enableHighAccuracy: true,\... | javascript | chosen |
[
{
"from": "system",
"value": "Hide the active overlays on 'measurestart'.\n"
},
{
"from": "human",
"value": "(function () {\n 'use strict';\n\n angular\n .module('dpMap')\n .factory('measure', measureFactory);\n\n measureFactory.$inject = ['$document', 'L', 'MEASURE_CONFIG... | javascript | chosen |
[
{
"from": "system",
"value": "Reorder mounted elements. QuickSearch needs to load last.\n"
},
{
"from": "human",
"value": "/**\n * Initialization code for the home page.\n */\n\n'use strict';\n\nvar $ = require('jquery');\nvar $osf = require('js/osfHelpers');\nvar quickSearchProject = require('j... | javascript | chosen |
[
{
"from": "system",
"value": "Send all console calls to app insights as traces\n"
},
{
"from": "human",
"value": "const appInsightsKey = process.env.FORTIS_SERVICES_APPINSIGHTS_KEY;\n\nlet client;\n\nfunction setup() {\n if (appInsightsKey) {\n const appInsights = require('applicationinsight... | javascript | chosen |
[
{
"from": "system",
"value": "EPMRPP-47707: Allow plugins to add own tabs to project settings\n"
},
{
"from": "human",
"value": "import { createSelector } from 'reselect';\nimport { enabledPluginNamesSelector } from '../selectors';\nimport { EXTENSION_TYPE_SETTINGS_TAB } from './constants';\nimp... | javascript | chosen |
[
{
"from": "system",
"value": "Use theme colors in notifications\n\nCloses #177\n"
},
{
"from": "human",
"value": "import React, { PropTypes } from 'react';\nimport { connect } from 'react-redux';\nimport Snackbar from 'material-ui/Snackbar';\nimport { hideNotification as hideNotificationAction }... | javascript | chosen |
[
{
"from": "system",
"value": "Check in improved bower generation script\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\n\n// Renders the bower.json template and prints it to stdout\n\nvar template = {\n name: \"graphlib\",\n version: require(\"../../package.json\").version,\n main: [ ... | javascript | chosen |
[
{
"from": "system",
"value": "Remove body from configuration options\n\nMerging `body` with defaults was problematic since `body`\nis not always an object. For example, it might be `FormData`.\n"
},
{
"from": "human",
"value": "/**\n * Prepare request configuration, deeply merging some specific ... | javascript | chosen |
[
{
"from": "system",
"value": "Throw unhandled rejections in mocha tests\n\nOnly works under >= 3.x, but will still help us potentially catch issues in test."
},
{
"from": "human",
"value": "/* eslint-env mocha */\nimport Chai from 'chai';\nimport ChaiString from 'chai-string';\nimport Sinon from... | javascript | chosen |
[
{
"from": "system",
"value": "Move KMS key retrieval to its own function.\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst AWS = require('aws-sdk');\nconst Err = require('./error');\nconst upload = require('multer')();\nconst rp = require('request-promise');\n\n// Hit the Vault health c... | javascript | chosen |
[
{
"from": "system",
"value": "Remove unused lambda function pool from websocket server\n"
},
{
"from": "human",
"value": "import { Server } from 'ws'\nimport debugLog from '../debugLog.js'\nimport LambdaFunctionPool from '../lambda/index.js'\nimport serverlessLog from '../serverlessLog.js'\nimpo... | javascript | chosen |
[
{
"from": "system",
"value": "Add mode field to marker state, add reducer case for CHANGE_MODE\n"
},
{
"from": "human",
"value": "import { Map } from 'immutable';\n\nimport {\n SIZE_3,\n BLACK\n} from './markerConstants';\n\nexport const initialMarker = Map({\n size: SIZE_3,\n color: BLACK\n... | javascript | chosen |
[
{
"from": "system",
"value": ":art: Use a non-hacky way to replace nbsp\n"
},
{
"from": "human",
"value": "'use babel'\n\n/* @flow */\n\nimport type { Message } from '../types'\n\nexport function visitMessage(message: Message) {\n const messageFile = message.version === 1 ? message.filePath : m... | javascript | chosen |
[
{
"from": "system",
"value": "Fix a little bug with cursor\n"
},
{
"from": "human",
"value": "'use strict';\n/**\n * @file Retrieve files for the account\n */\n\n/**\n * Download all files from the specified Google Account.\n *\n * @param {String} refreshToken Refresh_token to identify the accou... | javascript | chosen |
[
{
"from": "system",
"value": "Use Uint8Array instead of Uint8ClampedArray.\n"
},
{
"from": "human",
"value": "import { zeroArray } from './arrays';\n\n//=========================================================\n// System utilities\n//=========================================================\n\n... | javascript | chosen |
[
{
"from": "system",
"value": "Add behavior to navigate to the new URL!\n"
},
{
"from": "human",
"value": "import { setTheInput } from './URLUtils-impl.js';\nimport { setAll as setPrivateMethods } from './private-methods.js';\n\nexport default class CustomHTMLAnchorElementImpl {\n createdCallbac... | javascript | chosen |
[
{
"from": "system",
"value": "Make watch task compile everything first\n"
},
{
"from": "human",
"value": "import gulp from 'gulp'\n\nimport { fonts } from './fonts'\nimport { images } from './images'\nimport { scripts } from './webpack'\nimport { styles } from './styles'\n\nexport function watch... | javascript | chosen |
[
{
"from": "system",
"value": "Add reflection to solo challenge\n"
},
{
"from": "human",
"value": "// Design Basic Game Solo Challenge\n\n// This is a solo challenge\n\n// Your mission description:\n// Overall mission: Create madlibs game!\n// Goals: Prompt user for input for various nouns, adjec... | javascript | chosen |
[
{
"from": "system",
"value": "Add a failing test case\n"
},
{
"from": "human",
"value": "const test = require('ava')\nconst { tmpdir } = require('os')\nconst { join } = require('path')\nconst rollup = require('rollup')\nconst config = require('../rollup.config')\n\ntest('build: creates a valid b... | javascript | chosen |
[
{
"from": "system",
"value": "Allow overriding previously set values\n"
},
{
"from": "human",
"value": "var set = require('./index.js');\nvar assert = require('assert');\n\ndescribe('mocha-let', function() {\n var object = {};\n set('object', () => object);\n\n it(\"allows accessing the retur... | javascript | chosen |
[
{
"from": "system",
"value": "Add indents in saved config\n\n"
},
{
"from": "human",
"value": "const fs = require(\"fs\");\n\nfunction evalTemplate(template, scope) {\n with(scope) {\n try {\n return eval(`\\`${template.replace(/`/g, '\\\\`')}\\``);\n } catch (error) ... | javascript | chosen |
[
{
"from": "system",
"value": "Allow loading of external urls specified in the swagger resource location\n\nresolves #843\n"
},
{
"from": "human",
"value": "$(function() {\n var springfox = {\n \"baseUrl\": function() {\n var urlMatches = /(.*)\\/swagger-ui.html.*/.exec(windo... | javascript | chosen |
[
{
"from": "system",
"value": "Set startConnect: false and tunnelIdentifier\n\nReference: https://github.com/karma-runner/karma-sauce-launcher/issues/73\n"
},
{
"from": "human",
"value": "module.exports = function(config) {\n require(\"./karma.conf\")(config);\n config.set({\n customLauncher... | javascript | chosen |
[
{
"from": "system",
"value": "refactor: Use resolveRule instead of resolveRules\n"
},
{
"from": "human",
"value": "var url = require('url');\nvar properties = require('../lib/properties');\nvar rules = require('../lib/proxy').rules;\nvar util = require('../lib/util');\n\nmodule.exports = functio... | javascript | chosen |
[
{
"from": "system",
"value": "Unify the library name and export the amd name\n"
},
{
"from": "human",
"value": "var version = require('./package.json').version;\n\nmodule.exports = {\n entry: './lib',\n output: {\n filename: './dist/index.js',\n library: ['jupyter', 'services... | javascript | chosen |
[
{
"from": "system",
"value": "Complete fake database service with missing stubs\n"
},
{
"from": "human",
"value": "'use strict';\n\nfunction FakeDatabaseService() {\n\n}\n\nmodule.exports = FakeDatabaseService;\n\nFakeDatabaseService.prototype = {\n run: function(query, callback) {\n r... | javascript | chosen |
[
{
"from": "system",
"value": "Refactor and improve test systems\n\n"
},
{
"from": "human",
"value": "let createdSystemIds = [];\n\nconst createTestSystem = app => ({ url, type = 'moodle' }) => app.service('systems').create({ url, type })\n\t.then((system) => {\n\t\tcreatedSystemIds.push(system._... | javascript | chosen |
[
{
"from": "system",
"value": "Fix: Improve native WeakMap check for newer node versions\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar assert = require('assert');\n\nvar WM = require('es6-weak-map');\nvar hasNativeWeakmap = require('es6-weak-map/is-native-implemented');\nvar defaultReso... | javascript | chosen |
[
{
"from": "system",
"value": "Update up to changes to site-tree\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar normalizeOptions = require('es5-ext/object/normalize-options')\n , setPrototypeOf = require('es5-ext/object/set-prototype-of')\n , ensureObject = require('es5-... | javascript | chosen |
[
{
"from": "system",
"value": "Remove period from test name\n"
},
{
"from": "human",
"value": "import test from 'ava';\nimport { create } from '../lib';\n\ntest('\"create\" function.', ({is, true: isTrue}) => {\n // Create object.\n let Test = create(function(a){\n this.a = a;\n }, {\n f... | javascript | chosen |
[
{
"from": "system",
"value": "Fix gallery images for dev-only Sandcastle demos.\n"
},
{
"from": "human",
"value": "/*global importClass,project,attributes,elements,java,Packages*/\nimportClass(Packages.org.mozilla.javascript.tools.shell.Main); /*global Main*/\nMain.exec(['-e', '{}']);\nvar load ... | javascript | chosen |
[
{
"from": "system",
"value": "chore(examples): Use Object.assign instead of object spread\n"
},
{
"from": "human",
"value": "import * as ActionTypes from '../ActionTypes';\n\nexport default function reposByUser(state = {}, action) {\n switch (action.type) {\n case ActionTypes.REQUESTED_USER_... | javascript | chosen |
[
{
"from": "system",
"value": "Use event delegation for reveal button\n"
},
{
"from": "human",
"value": "// This is a manifest file that'll be compiled into application.js, which will include all the files\n// listed below.\n//\n// Any JavaScript/Coffee file within this directory, lib/assets/java... | javascript | chosen |
[
{
"from": "system",
"value": "Fix replacement of balance items based on month\n"
},
{
"from": "human",
"value": "/**\n * Update cash flow data\n */\n\nconst { DateTime } = require('luxon');\nconst joi = require('joi');\nconst { balanceSchema } = require('../../../schema');\n\nfunction updateQuer... | javascript | chosen |
[
{
"from": "system",
"value": "Make sg label clicking act like a toggle\n"
},
{
"from": "human",
"value": "\"use strict\";\n\nangular.module('arethusa.sg').directive('sgAncestors', [\n 'sg',\n function(sg) {\n return {\n restrict: 'A',\n scope: {\n obj: '=sgAncestors'\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Update umd bundle to use css loader for css files\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar webpack = require('webpack');\n\nvar kitchensinkExternals = {\n root: 'Kitchensink',\n commonjs2: 'kitchensink',\n commonjs: 'kitchensink',\n amd: 'kitchens... | javascript | chosen |
[
{
"from": "system",
"value": "Make wrapAsync support wrapping async functions that return a promise\n"
},
{
"from": "human",
"value": "var Fiber = require('fibers');\nvar Future = require('fibers/future');\nvar _ = require('underscore');\nvar assert = require('assert');\n\n// Makes a function th... | javascript | chosen |
[
{
"from": "system",
"value": "CSRA-000: Fix broken tests to restore green build\n"
},
{
"from": "human",
"value": "describe('/health', () => {\n it('displays the health status of the app', () => {\n browser.url('/health');\n expect(browser.getText('body')).contain('\"staatus\":\"OK\"');\n... | javascript | chosen |
[
{
"from": "system",
"value": "Fix top description. Probably copied from another file."
},
{
"from": "human",
"value": "// ====================\n// DEMO: play a sound at a random speed/pitch when the ball hits the edge\n// ====================\n\n// create a variable for the sound file\nvar sound... | javascript | chosen |
[
{
"from": "system",
"value": "Add \"new\" constructor wrapper to Polynomial.\n"
},
{
"from": "human",
"value": "(function(define) {'use strict';\ndefine(function(require) {\n\n // creates a polynomial function from the array of coefficients\n // for example, if the function is ax^3 + bx^2 + ... | javascript | chosen |
[
{
"from": "system",
"value": "Add code for jquery test\n"
},
{
"from": "human",
"value": "// about.js\n\n\"use strict\";\n\nimport { welcome } from \"../welcome/welcome\";\n\nif (NODE_ENV == DEV_ENV) {\n welcome(\"about\");\n console.log(NODE_ENV);\n}\n\nexport { welcome };\n"
},
{
"fr... | javascript | chosen |
[
{
"from": "system",
"value": "Fix all string throw statements\n"
},
{
"from": "human",
"value": "/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See... | javascript | chosen |
[
{
"from": "system",
"value": "Remove object from local storage hook\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar AbstractStore = require('stores/AbstractStore');\nvar assign = require('object-assign');\nvar GeoAppDispatcher = require('../dispatcher/GeoAppDispatcher');\nvar GeoAppActio... | javascript | chosen |
[
{
"from": "system",
"value": "Add API endpoint for Yelp queries\n"
},
{
"from": "human",
"value": "var Backbone = require('backbone');\nvar $ = require('jquey');\nBackbone.$ = $;\n\n\nmodule.exports = function(app) {\n\t// app.get('/', function(req, res) {\n\t// \tres.send('Hello, world!');\n\t/... | javascript | chosen |
[
{
"from": "system",
"value": "Use sha1 module from core in generator package"
},
{
"from": "human",
"value": "(function () {\n 'use strict';\n\n var assert = require('assert');\n var _ = require('underscore');\n var summarizer = require('../src/summarizer');\n var sha1 = require('../src/sha... | javascript | chosen |
[
{
"from": "system",
"value": "Make sure that we normalize paths.\n"
},
{
"from": "human",
"value": "const path = require('path');\nconst mime = require('mime');\n\nfunction serveBuild(registry) {\n return async function(req, res, next) {\n const username = req.user && req.user.username;\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Undo changes to /discover page.\n"
},
{
"from": "human",
"value": "\"use strict\";\nvar PhotoStreamController = function($scope, $http, $log, $timeout, analytics, resourceCache) {\n\n\t$http({method: \"GET\", url: \"/api/v1/hikes?fields=distance,locality,name,photo_... | javascript | chosen |
[
{
"from": "system",
"value": "Allow to bind to any port\n"
},
{
"from": "human",
"value": "var webpack = require('webpack');\nvar WebpackDevServer = require('webpack-dev-server');\nvar config = require('./webpack.config');\n\nvar port = process.env.PORT || 3000;\nnew WebpackDevServer(webpack(con... | javascript | chosen |
[
{
"from": "system",
"value": "Fix calibration to not crash on undefined\n"
},
{
"from": "human",
"value": "const quantize = require('../quantizer');\nconst TARGETS = ['zero', 'full', 'empty'];\n\nfunction calibrate(weightsRef, sensorsRef, action) {\n const {id, target} = action;\n let valRef =... | javascript | chosen |
[
{
"from": "system",
"value": "Fix accidental typo that snuck in\n"
},
{
"from": "human",
"value": "(function (window){\n requirejs([\n 'underscore',\n 'backbone',\n 'BB'\n ], function(_, Backbone, BB) {\n BB.model_definitions.search = Backbone.Model.extend({\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Exclude config.js from tests as dotenv will cause it to fail\n"
},
{
"from": "human",
"value": "// needed for regenerator-runtime\n// (ES7 generator support is required by redux-saga)\nimport 'babel-polyfill';\n\nimport sinon from 'sinon';\nimport chai from 'chai';\... | javascript | chosen |
[
{
"from": "system",
"value": "Remove dependency on blacklisted gem, gulp-compass.\n"
},
{
"from": "human",
"value": "var gulp = require(\"gulp\");\nvar CFG = require(\"./utils/config.js\");\nvar $ = require(\"gulp-load-plugins\")();\nvar path = require(\"path\");\nvar pkg = requir... | javascript | chosen |
[
{
"from": "system",
"value": "[FIX] Fix total when the entered amount is blank\n"
},
{
"from": "human",
"value": "var util = require('util'),\n Tab = require('../client/tab').Tab;\n\nvar UsdTab = function ()\n{\n Tab.call(this);\n};\n\nutil.inherits(UsdTab, Tab);\n\nUsdTab.prototype.tabName ... | javascript | chosen |
[
{
"from": "system",
"value": "Update install / use to follow provide/inject key model.\n"
},
{
"from": "human",
"value": "import {reactive} from 'vue';\nimport Auth from './auth.js';\n\n// NOTE: Create pseudo Vue object for Vue 2 backwards compatibility.\n\nfunction Vue (obj) {\n var data... | javascript | chosen |
[
{
"from": "system",
"value": "Remove unused test in snapshot model\n"
},
{
"from": "human",
"value": "import {expect} from 'chai';\nimport {describe, it} from 'mocha';\nimport {setupModelTest} from 'ember-mocha';\n\ndescribe('Snapshot', function() {\n setupModelTest('snapshot', {\n // Specif... | javascript | chosen |
[
{
"from": "system",
"value": "Use let instead of var\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 with this\n * file, You can obtain one at http://mozilla.org/MPL/2.0/. */\n... | javascript | chosen |
[
{
"from": "system",
"value": "Fix typo in Mongoose backend"
},
{
"from": "human",
"value": "module.exports = function(Model, options) {\n options || (options = {})\n options.idAttribute || (options.idAttribute = '_id')\n\n var idQuery = function(model) {\n var query = {};\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add log to server console when a new room is created\n"
},
{
"from": "human",
"value": "const util = require('./utils.js');\n\nmodule.exports = {\n\n logger: (req, res, next) => {\n console.log(`Serving ${req.method} request @ ${req.path}`);\n next();\n },\n... | javascript | chosen |
[
{
"from": "system",
"value": "Make sure we're registering a hotkey for a command that exists\n"
},
{
"from": "human",
"value": "window.config = {\n // default: '/'\n routerBasename: '/',\n // default: ''\n relativeWebWorkerScriptsPath: '',\n servers: {\n dicomWeb: [\n {\n nam... | javascript | chosen |
[
{
"from": "system",
"value": "[TASK] Adjust the module example documentation\n"
},
{
"from": "human",
"value": "/**\n * Defines a dummy module\n *\n * @module Modules/Module\n */\n\nvar App;\n\n/**\n * App\n * @param el\n * @constructor\n */\nApp = function(el) {\n\t'use strict';\n\n\tthis.el = ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix day of week typo"
},
{
"from": "human",
"value": "export default function Example() {\n const modifiers = {\n thusdays: { daysOfWeek: [4] },\n birthday: new Date(2018, 9, 30),\n };\n const modifiersStyles = {\n birthday: {\n color: 'white',\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Use proptypes instead of comments\n"
},
{
"from": "human",
"value": "import React, { Component } from 'react'\nimport PropTypes from 'prop-types'\nimport { connect } from 'react-redux'\n\nimport PlayerLabel from '../components/player-label'\n\nclass Player extends C... | javascript | chosen |
[
{
"from": "system",
"value": "Document the test bundler 📕"
},
{
"from": "human",
"value": "const testsContext = require.context('../../../src', true, /\\.spec\\..+$/)\ntestsContext.keys().forEach(testsContext)\n"
},
{
"from": "gpt",
"value": "/**\n * Sagui test bundler that finds al... | javascript | chosen |
[
{
"from": "system",
"value": "Use context.getFilename() instead (eslint API change)\n"
},
{
"from": "human",
"value": "module.exports = function(context) {\n return {\n CallExpression: function(node) {\n if (!context.filename.match(/^lib\\/services\\//)) return;\n if (node.callee.n... | javascript | chosen |
[
{
"from": "system",
"value": "Set the util.inspect depth to unlimited for the REPL\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\n\nvar repl = require('repl');\nvar program = require('commander');\nvar defaults = require('../lib/defaults.js');\nvar protocol = require('../lib/protocol.js... | javascript | chosen |
[
{
"from": "system",
"value": "Test minified code by default\n"
},
{
"from": "human",
"value": "var assert = require('assert');\nvar whiskers = exports.whiskers = require('../lib/whiskers');\n// uncomment to test minified\n//var whiskers = exports.whiskers = require('../dist/whiskers.min');\n\n//... | javascript | chosen |
[
{
"from": "system",
"value": "Improve display of error in unit tests\n"
},
{
"from": "human",
"value": "var assert = require('assert');\nvar hash = require('object-hash');\nvar Filterable = require(\"../lib\").Filterable;\n\nglobal.assertObjects = function(o1, o2) {\n //console.log(o1, o2);\n... | javascript | chosen |
[
{
"from": "system",
"value": "Update heading on Remote Selector to use imperative tone\n\nPreviously the heading looked like an \"error\" message, however, this is really just a regular state that the user can appear in, and in future revisions this screen could be used for changing the remote directly from... | javascript | chosen |
[
{
"from": "system",
"value": "Use let instead of var. Fix indentation\n"
},
{
"from": "human",
"value": "'use strict'\nconst mongoose = require('mongoose');\nconst users = JSON.parse(require('fs').readFileSync(__dirname + '/users.json'));\nconst domains = JSON.parse(require('fs').readFileSync(__... | javascript | chosen |
[
{
"from": "system",
"value": "Make a POST request to create a user.\n"
},
{
"from": "human",
"value": "{\n angular.module('meganote.users')\n .service('UsersService', [\n '$hhtp',\n 'API_BASE',\n ($http, API_BASE) => {\n\n class UsersService {\n create (users) ... | javascript | chosen |
[
{
"from": "system",
"value": "Add warning when subscribe is not difined\n"
},
{
"from": "human",
"value": "import { Meteor } from 'meteor/meteor';\nimport { subscribe } from 'graphql';\nimport forAwaitEach from '../common/forAwaitEach';\nimport {\n DEFAULT_PUBLICATION,\n} from '../common/defaul... | javascript | chosen |
[
{
"from": "system",
"value": "Fix path in ecosystem file\n"
},
{
"from": "human",
"value": "module.exports = {\n apps : [\n {\n name : \"auction_app\",\n script : \"/usr/local/bin/npm\",\n cwd : \"/home/vagrant/apps/AuctionApp\",\n args : \"run start:pr... | javascript | chosen |
[
{
"from": "system",
"value": "Use brock argument for simple access\n"
},
{
"from": "human",
"value": "<%= application_name.camelize %>.<%= class_name %> = DS.Model.extend({\n<% attributes.each_index do |idx| -%>\n <%= attributes[idx][:name].camelize(:lower) %>: <%=\n if %w(references belongs_t... | javascript | chosen |
[
{
"from": "system",
"value": "Clean up code and add comments\n"
},
{
"from": "human",
"value": "define(['jquery', 'DoughBaseComponent'], function($, DoughBaseComponent) {\n\n 'use strict';\n\n var ClearInput,\n uiEvents = {\n 'keydown [data-dough-clear-input]' : 'updateResetButton',\... | javascript | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.