conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Fix exception caused by calling validateLayoutProperty without passing a style\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar validate = require('./validate');\nvar ValidationError = require('../error/validation_error');\n\nmodule.exports = function validat... | javascript | chosen |
[
{
"from": "system",
"value": "Disable inline sourcemaps in postcss\n"
},
{
"from": "human",
"value": "/* eslint-env node */\n'use strict'\n\nconst EmberApp = require('ember-cli/lib/broccoli/ember-app')\nconst cssnext = require('postcss-cssnext')\n\nmodule.exports = function(defaults) {\n let ap... | javascript | chosen |
[
{
"from": "system",
"value": "Fix double ctr+c when exiting watch-build\n"
},
{
"from": "human",
"value": "\"use strict\";\n\nconst Task = require('../Task'),\n gulp = require('gulp'),\n path = require('path'),\n nodemon = require('gulp-nodemon'),\n ProjectType = require('../../Proje... | javascript | chosen |
[
{
"from": "system",
"value": "Comment out annoying debug code.\n"
},
{
"from": "human",
"value": "/*jslint devel: true, browser: true, indent: 2, nomen: true */\n/*global define */\n\ndefine([], function () {\n 'use strict';\n\n console.log('it works');\n});"
},
{
"from": "gpt",
"v... | javascript | chosen |
[
{
"from": "system",
"value": "Update user locale without fetching user's account.\n"
},
{
"from": "human",
"value": "// Store the preference locale in cookies and (if available) session to use\n// on next requests.\n\n\n'use strict';\n\n\nvar _ = require('lodash');\n\n\nvar LOCALE_COOKIE_MAX_AGE... | javascript | chosen |
[
{
"from": "system",
"value": "Include sub-folders when watching for changes\n"
},
{
"from": "human",
"value": "var\tname = require('./package.json').moduleName,\n fs = require('fs'),\n gulp = require('gulp'),\n plugins = require('gulp-load-plugins')()\n\nvar head = fs.readFil... | javascript | chosen |
[
{
"from": "system",
"value": "Set 'bundle' as a dependency to 'test'\n\nSet 'bundle' as a dependency to 'test'"
},
{
"from": "human",
"value": "var gulp = require('gulp');\nvar mocha = require('gulp-mocha');\nvar coffee = require('gulp-coffee');\nvar concat = require('gulp-concat');\nrequire('co... | javascript | chosen |
[
{
"from": "system",
"value": "Simplify passing read to merge call\n"
},
{
"from": "human",
"value": "const async = require('./async')\n\nmodule.exports = function(providers, cb) {\n\n function setup(values) {\n const currentValues = results.reduce(( pre, cur ) => Object.assign(pre, cur), {})... | javascript | chosen |
[
{
"from": "system",
"value": "Fix require to use new mauth package\n"
},
{
"from": "human",
"value": "var MacaroonAuthUtils = require(\"../utils/macaroon_auth.js\");\n\nmodule.exports = function(options) {\n return function getMacaroonUserSecret(req, res, next) {\n if(typeof opti... | javascript | chosen |
[
{
"from": "system",
"value": "Change project root variable in clean plugin\n\n"
},
{
"from": "human",
"value": "const CleanWebpackPlugin = require(\"clean-webpack-plugin\")\nconst path = require(\"path\")\nconst webpack = require(\"webpack\")\n\nconst dist = path.join(process.cwd(), \"public\")\... | javascript | chosen |
[
{
"from": "system",
"value": "Change files to be Pintfiles so as not to conflict with Grunt\n"
},
{
"from": "human",
"value": "\"use strict\"\n\nvar _ = require('underscore'),\n fs = require('fs'),\n sys = require('sys'),\n exec = require('child_process').exec,\n program = require('commander... | javascript | chosen |
[
{
"from": "system",
"value": "Fix code launching onReady() handlers"
},
{
"from": "human",
"value": "\n// SwellRT bootstrap script\n\n// A fake SwellRT object to register on ready handlers\n// before the GWT module is loaded\n\nwindow.swellrt = {\n\n onReady: function(handler) {\n if (!ha... | javascript | chosen |
[
{
"from": "system",
"value": "Update dasherized name to use this._\n"
},
{
"from": "human",
"value": "\nvar path = require('path');\nvar util = require('util');\nvar yeoman = require('yeoman-generator');\n\nmodule.exports = TestGenerator;\n\n// TestGenerator stubs out a very basic test suite... | javascript | chosen |
[
{
"from": "system",
"value": "Add DASH to Coinbase ticker"
},
{
"from": "human",
"value": "const _ = require('lodash/fp')\nconst axios = require('axios')\n\nconst BN = require('../../../bn')\n\nfunction getBuyPrice (obj) {\n const currencyPair = obj.currencyPair\n\n return axios({\n method:... | javascript | chosen |
[
{
"from": "system",
"value": "Add explicit call to deprecate.log\n"
},
{
"from": "human",
"value": "const assert = require('assert')\nconst deprecations = require('electron').deprecations\n\ndescribe('deprecations', function () {\n beforeEach(function () {\n deprecations.setHandler(null)\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add get API to user service\n"
},
{
"from": "human",
"value": "var cote = require('cote'),\n models = require('../models');\n\nvar userResponder = new cote.Responder({\n name: 'user responder',\n namespace: 'user',\n respondsTo: ['create']\n});\n\nvar us... | javascript | chosen |
[
{
"from": "system",
"value": "Add function to compose the story title based on group name\n"
},
{
"from": "human",
"value": "export const INTRODUCTION = '1. Introduction';\nexport const PRIMITIVES = '2. Primitives';\nexport const FOUNDATION = '3. Foundation';\nexport const LOW_LEVEL_BLOCKS = '4.... | javascript | chosen |
[
{
"from": "system",
"value": "Remove the unnecessary comment from the store.js file.\n"
},
{
"from": "human",
"value": "import React from 'react'\nimport { Router, Route, browserHistory } from 'react-router'\n\n// views.\nimport Layout from './views/Layout'\nimport Home from './views/Home'\nimpo... | javascript | chosen |
[
{
"from": "system",
"value": "Fix typo for js file."
},
{
"from": "human",
"value": "const {resolve} = require('path');\nconst webpack =require('webpack');\n\nmodule.exports = {\n entry: [\n './index.tsx'\n ],\n output:{\n filename: 'bundle.js',\n path: resolve(__di... | javascript | chosen |
[
{
"from": "system",
"value": "Fix selector after Google change"
},
{
"from": "human",
"value": "(function() {\n var element = null;\n var nav_elements = document.querySelectorAll('li.nav-item-container');\n\n for (var i = 0; i < nav_elements.length; i++) {\n var current = nav_ele... | javascript | chosen |
[
{
"from": "system",
"value": "Clean up CLI entry point script.\n"
},
{
"from": "human",
"value": "#! /usr/bin/env node\nvar yargs = require(\"yargs\");\n\nconsole.log(yargs.parse(process.argv.slice(2)));\n\n//var argv = require(\"yargs\").argv;\n//process.argv.slice(2).forEach(function (val, ind... | javascript | chosen |
[
{
"from": "system",
"value": "fix(boot): Define variables that are used but not defined\n"
},
{
"from": "human",
"value": "var URL = require('url')\n , redis = require('redis');\n\nmodule.exports = function (config) {\n var client, url, port, host, db, pass;\n\n if (config = config || {}) {... | javascript | chosen |
[
{
"from": "system",
"value": "Fix ItemEditController observer accessing model when model was destroyed\n"
},
{
"from": "human",
"value": "var ItemEditController = Em.ObjectController.extend({\n setComplete: function () {\n var complete = this.get('canonicalModel.complete');\n this.set('mo... | javascript | chosen |
[
{
"from": "system",
"value": "Fix saving item `complete` field\n"
},
{
"from": "human",
"value": "var ItemEditController = Em.ObjectController.extend({\n complete: function (key, value) {\n if (arguments.length > 1) {\n return value;\n }\n\n return this.get('canonicalModel.complet... | javascript | chosen |
[
{
"from": "system",
"value": "Make login dialog fullscreen on -xs and -sm breakpoints\n"
},
{
"from": "human",
"value": "(function() {\n 'use strict';\n\n angular\n .module('app')\n .controller('LoginDialogController', ['$mdDialog', function($mdDialog) {\n var vm =... | javascript | chosen |
[
{
"from": "system",
"value": "Fix handling of MSBuild errors\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst shell = require('shelljs');\nconst cmd = require('./cmd');\n\n// Execute msbuild.exe with passed arguments\nmodule.exports = function exec(args) {\n process.exit(shell.exec(c... | javascript | chosen |
[
{
"from": "system",
"value": "Add note that lazy-installed modules are once-off only.\n"
},
{
"from": "human",
"value": "var canihaz = require('canihaz'),\n fs = require('fs'),\n p = require('path');\n\n/**\n * Install dependency modules that are not yet installed, and needed for executing the... | javascript | chosen |
[
{
"from": "system",
"value": "Remove big export of components\n"
},
{
"from": "human",
"value": "var buffer = require(\"./buffer\");\n\n/**\n * @namespace Splat\n */\nmodule.exports = {\n makeBuffer: buffer.makeBuffer,\n flipBufferHorizontally: buffer.flipBufferHorizontally,\n flipBufferVerti... | javascript | chosen |
[
{
"from": "system",
"value": "Remove <div/> from Root and add Children.only\n"
},
{
"from": "human",
"value": "import React from 'react';\r\n\r\nconst Root = (props) => {\r\n return (\r\n <div>{props.children}</div>\r\n );\r\n};\r\n\r\nRoot.displayName = 'Root';\r\n\r\nexport default Root;"... | javascript | chosen |
[
{
"from": "system",
"value": "Remove includes to be compatible with currently released chrome\n"
},
{
"from": "human",
"value": "import Image from '../image';\n\nexport default function bitDepth(newBitDepth = 8) {\n\n this.checkProcessable('bitDepth', {\n bitDepth: [8, 16]\n });\n\n... | javascript | chosen |
[
{
"from": "system",
"value": "Set debuggee in HelloWorld example\n"
},
{
"from": "human",
"value": "/* See license.txt for terms of usage */\n\n\"use strict\";\n\nconst self = require(\"sdk/self\");\n\nconst { Cu, Ci } = require(\"chrome\");\nconst { Panel } = require(\"dev/panel.js\");\nconst {... | javascript | chosen |
[
{
"from": "system",
"value": "Add a 2nd describe() block to auto-start logic\n"
},
{
"from": "human",
"value": "(function() {\n 'use strict';\n\n var cli = require('casper').create().cli;\n var parapsych = require(cli.raw.get('rootdir') + '/dist/parapsych').create(require);\n\n parapsych.set... | javascript | chosen |
[
{
"from": "system",
"value": "Fix in test result renderer.\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar Component = require('../ui/Component');\n\nfunction ResultItem() {\n ResultItem.super.apply(this, arguments);\n}\n\nResultItem.Prototype = function() {\n\n this.shouldRerender = f... | javascript | chosen |
[
{
"from": "system",
"value": "Fix longstanding typo. SORRY GUISE"
},
{
"from": "human",
"value": "// Requires a Modernizr build with `canvastest` included\n// http://www.modernizr.com/download/#-canvas-canvastext\nModernizr.addTest('emoji', function() {\n if (!Modernizr.canvastext) return false... | javascript | chosen |
[
{
"from": "system",
"value": "Add user session to bolt $scope\n"
},
{
"from": "human",
"value": "angular.module('bolt.controller', [])\n\n.controller('BoltController', function($scope, Geo){\n \n})\n"
},
{
"from": "gpt",
"value": "angular.module('bolt.controller', [])\n\n.controller... | javascript | chosen |
[
{
"from": "system",
"value": "Update Voice tests with mappings"
},
{
"from": "human",
"value": "import Voice from '../lib/Voice';\n\nimport NexmoStub from './NexmoStub';\n\nvar voiceAPIs = [\n 'sendTTSMessage',\n 'sendTTSPromptWithCapture',\n 'sendTTSPromptWithConfirm',\n 'call' \n];\n\ndes... | javascript | chosen |
[
{
"from": "system",
"value": "Add info about CSS files to console\n"
},
{
"from": "human",
"value": "'use strict';\n\n// Modules\n// ===============================================\nvar gulp = require('gulp'),\n\tgutil = require('gulp-util'),\n\tbrowserSync = require(\"browser-sync\"),\n\tpaths ... | javascript | chosen |
[
{
"from": "system",
"value": "Add test for highlight.js rendering\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport { shallow, render } from 'enzyme';\nimport { expect } from 'chai';\n\n// see: https://github.com/mochajs/mocha/issues/1847\nconst { describe, it } = global;\n\n... | javascript | chosen |
[
{
"from": "system",
"value": "Add little error management in event route\n"
},
{
"from": "human",
"value": "const Boom = require('boom');\nconst hostService = require('../../domain/services/host-service');\nconst eventService = require('../../domain/services/event-service');\n\nmodule.exports = ... | javascript | chosen |
[
{
"from": "system",
"value": "Update chosen theme in ChangeThemeView on theme change\n"
},
{
"from": "human",
"value": "pageflow.ChangeThemeView = Backbone.Marionette.ItemView.extend({\n template: 'templates/change_theme',\n\n ui: {\n changeThemeButton: '.change_theme',\n labelText: 'lab... | javascript | chosen |
[
{
"from": "system",
"value": "Fix to get tests running again.\n"
},
{
"from": "human",
"value": "var path = require(\"path\");\n\nmodule.exports = function (config) {\n config.set({\n logLevel: config.LOG_DEBUG,\n port: 3334,\n browsers: [\"PhantomJS\"],\n singleRun: true,\n fram... | javascript | chosen |
[
{
"from": "system",
"value": "Add created todos to localStorage\n"
},
{
"from": "human",
"value": "(function() {\n var todolist = document.querySelector('#todolist');\n var todolistView = new ToMvc.View( 'todolist', '#todolist' );\n var todolistModel = new ToMvc.Model( 'todolist' ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix valid of twilio request\n"
},
{
"from": "human",
"value": "var twilio = require('twilio');\nvar _ = require('lodash');\nvar config = require('./config');\n\n\n// Middleware to valid the request is coming from twilio\nfunction validRequest(req, res, next) {\n\tif... | javascript | chosen |
[
{
"from": "system",
"value": "Add state object and improve memory usage\n"
},
{
"from": "human",
"value": "var Whenever = function(){\n\tvar callbacks = [];\n\tvar ready = false;\n\tvar args;\n\treturn {\n\t\tready: function(){\n\t\t\targs = arguments;\n\t\t\tcallbacks.forEach(function(callback)... | javascript | chosen |
[
{
"from": "system",
"value": "Update karma coverage file comments.\n"
},
{
"from": "human",
"value": "'use strict';\n\nmodule.exports = function(config) {\n\n config.set({\n frameworks: ['<%= testFramework %>', 'browserify'],\n files: [\n 'src/**/*.js',\n 'test/**/*.js',\n ... | javascript | chosen |
[
{
"from": "system",
"value": "chore(fork): Add \"Fork me on GitHub\" ribbon\n"
},
{
"from": "human",
"value": "import React, { Component, PropTypes } from 'react';\nimport { bindActionCreators } from 'redux';\nimport { connect } from 'react-redux';\nimport InvitationDialog from '../components/In... | javascript | chosen |
[
{
"from": "system",
"value": "Fix variable spelling error and ensure prop is writable before applying it.\n"
},
{
"from": "human",
"value": "export default function (obj, props) {\n Object.keys(props).forEach(function (name) {\n const prop = props[name];\n const descrptor = Object.getOwnP... | javascript | chosen |
[
{
"from": "system",
"value": "Create default gulp task, that depends on build\n"
},
{
"from": "human",
"value": "\nvar gulp = require('gulp'),\n sass = require('gulp-sass'),\n cssmin = require('gulp-minify-css'),\n prefix = require('gulp-autoprefixer'),\n rename = require('gulp-r... | javascript | chosen |
[
{
"from": "system",
"value": "Add lint to the default task\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar gulp = require('gulp');\nvar $ = require('gulp-load-plugins')();\nvar runSequence = require('run-sequence');\nvar bs = require('browser-sync').create();\nvar del = require('del');\n... | javascript | chosen |
[
{
"from": "system",
"value": "Add babel to the default task"
},
{
"from": "human",
"value": "var gulp = require(\"gulp\"),\n connect = require(\"gulp-connect\"),\n babel = require(\"gulp-babel\");\n\ngulp.task(\"webserver\", function () {\n connect.server();\n});\n\ngulp.task(\"babel\", funct... | javascript | chosen |
[
{
"from": "system",
"value": "Fix splice for removeCallback, and avoid using splice for triggerCallbacks\n"
},
{
"from": "human",
"value": "var async = require('async');\n\nvar DoWhen = function(obj, ev) {\n var args,\n triggerCallbacks,\n objCallback,\n callbacks = [];\n... | javascript | chosen |
[
{
"from": "system",
"value": "Change event listener to command"
},
{
"from": "human",
"value": "window.addEventListener('load', function() {\t\r\n\t// https://developer.mozilla.org/en/Code_snippets/Tabbed_browser\r\n\tvar browser = window.opener.getBrowser();\r\n\tvar doc = window.opener.content... | javascript | chosen |
[
{
"from": "system",
"value": ":arrow_up: Upgrade specs to latest API\n"
},
{
"from": "human",
"value": "'use babel'\n\nimport * as _ from 'lodash'\nimport * as path from 'path'\n\ndescribe('The Ispell provider for Atom Linter', () => {\n const lint = require('../lib/providers').provideLinter().... | javascript | chosen |
[
{
"from": "system",
"value": "Refactor gulp task to bundle front/backend\n"
},
{
"from": "human",
"value": "var gulp = require('gulp');\nvar webpack = require('webpack-stream');\n\nvar client = {\n config: require('./config/webpack.prod.client.js'),\n in: './src/client/index.jsx'\n}, serve... | javascript | chosen |
[
{
"from": "system",
"value": "Add watch of test files to gulp\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar gulp = require('gulp'),\n browserify = require('browserify'),\n transform = require('vinyl-transform'),\n uglify = require('gulp-uglify'),\n sourcemaps = require('gul... | javascript | chosen |
[
{
"from": "system",
"value": "Add rule name to issues for a better output\n"
},
{
"from": "human",
"value": "var lodash = require('lodash');\n\nmodule.exports = {\n applyRules: function(rules, element, opts) {\n if (!rules) {\n return [];\n }\n\n return lodash.... | javascript | chosen |
[
{
"from": "system",
"value": "Add doc for CORS component\n"
},
{
"from": "human",
"value": "const Config = use('config');\n\n\nconst CORSController = {\n\n path: 'cors',\n\n permissions: {},\n\n OPTIONS : [\n\n function () {\n // @path: .*\n\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Allow double quotes to avoid escaping single quotes\n"
},
{
"from": "human",
"value": "import path from 'path';\nimport {CLIEngine, linter} from 'eslint';\nimport PackageJson from '../lib/package_json';\n\nconst project = PackageJson.load();\nconst baseConfig = lint... | javascript | chosen |
[
{
"from": "system",
"value": "Update integration tests for localised dates\n"
},
{
"from": "human",
"value": "floatValue = /\\d+.\\d+/\nongoingDateRange = /partir du \\d{1,2}\\/\\d{1,2}\\/\\d{4}/\ndateRange = /Du \\d{1,2}\\/\\d{1,2}\\/\\d{4} au \\d{1,2}\\/\\d{1,2}\\/\\d{4}/\ninterruptionMessage ... | javascript | chosen |
[
{
"from": "system",
"value": "Remove hack is was breaking the tests\n"
},
{
"from": "human",
"value": "if (!(typeof MochaWeb === 'undefined')){\n MochaWeb.testOnly(function () {\n setTimeout(function (){\n describe('The Route \"/\"', function () {\n it('Should have the title \"Ma... | javascript | chosen |
[
{
"from": "system",
"value": "Modify namespace of message type\n"
},
{
"from": "human",
"value": "module.exports = {\n 'speedyfx:msg': require('./message'),\n 'speedyfx:prs': require('./presence'),\n 'speedyfx:rq': require('./request')\n};"
},
{
"from": "gpt",
"value": "modu... | javascript | chosen |
[
{
"from": "system",
"value": "Make CurrentUser service use class syntax with inherited dependencies.\n\nThis is one way to possibly alleviate concerns with having to tack\n`this` to the beginning of everything. Instead of using the class\ndirectly, DI an anonymous function, and declare/return the class insi... | javascript | chosen |
[
{
"from": "system",
"value": "Use one big array for all blobs instead of ranks.\n"
},
{
"from": "human",
"value": "const rankSize = 16\n\nfunction blobLength(b) {\n if (typeof b.byteLength !== 'undefined') return b.byteLength\n if (typeof b.size !== 'undefined') return b.size\n return b.lengt... | javascript | chosen |
[
{
"from": "system",
"value": "Configure store creation to incorporate ReduxRouter\n"
},
{
"from": "human",
"value": "import { createStore, applyMiddleware } from 'redux';\nimport { reduxReactRouter } from 'redux-router';\nimport createHistory from 'history/lib/createBrowserHistory';\nimport rout... | javascript | chosen |
[
{
"from": "system",
"value": "feat: Set actions for select fields\n\n"
},
{
"from": "human",
"value": "import Ember from 'ember';\nimport $ from 'jquery';\n\nexport default Ember.Controller.extend({\n transportApiSrv: Ember.inject.service('trasport-api'),\n searchLocation: null,\n destination... | javascript | chosen |
[
{
"from": "system",
"value": "Replace bind with fat arrow syntax\n"
},
{
"from": "human",
"value": "import request from 'superagent';\nimport { Promise } from 'bluebird';\nimport { isValidToken } from './jwt';\n\nexport default class TokenClient {\n constructor(config) {\n this.user = config... | javascript | chosen |
[
{
"from": "system",
"value": "Fix URI decode error breaking messages\n"
},
{
"from": "human",
"value": "\nmodule.exports = function (root, cb) {\n root.addEventListener('click', (ev) => {\n if (ev.altKey || ev.ctrlKey || ev.metaKey || ev.shiftKey || ev.defaultPrevented) {\n return true\... | javascript | chosen |
[
{
"from": "system",
"value": "Test for error handling when location is not found.\n"
},
{
"from": "human",
"value": "const CurrentData = {\n display_location: {\n full: 'Den'\n },\n temp_f: 70\n};\n\nconst ForecastData = {\n txt_forecast: {\n forecastday:[{\n title: 'Monday',\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix integration test path to module\n"
},
{
"from": "human",
"value": "var gpio = require('rpi-gpio');\nvar async = require('async');\nvar assert = require('assert');\nvar sinon = require('sinon');\n\nvar message =\n 'Please ensure that your Raspberry Pi is set u... | javascript | chosen |
[
{
"from": "system",
"value": "Make work with and without pre-existing attributeBindings.\n\nWhen a component has no attribute bindings, `this.attributeBindings` is undefined.\n\nThis updates the computed setter to handle that scenario.\n"
},
{
"from": "human",
"value": "/* globals Ember */\n(fun... | javascript | chosen |
[
{
"from": "system",
"value": "Add updated flags for default setter\n"
},
{
"from": "human",
"value": "\"use strict\";\n\nvar utils = require('./../../utils');\n\nfunction define(name, prop, priv) {\n var descriptor = {enumerable: true};\n\n var getter = prop.get;\n var setter = prop.set;\n\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix return value in example code\n"
},
{
"from": "human",
"value": "'use strict';\n\n/**\n* Remove the first character of a string.\n*\n* @module @stdlib/string/remove-first\n*\n* @example\n* var removeFirst = require( '@stdlib/string/remove-first' );\n*\n* var out ... | javascript | chosen |
[
{
"from": "system",
"value": "Remove context menu item accelerators, as they are not honoured.\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst remote = require('remote');\nconst Menu = remote.require('menu');\nconst MenuItem = remote.require('menu-item');\nconst slackWebview = appRequi... | javascript | chosen |
[
{
"from": "system",
"value": "Switch toMatch() to \"to match\" in the case of a regex on the RHS.\n"
},
{
"from": "human",
"value": "const unexpected = require('unexpected');\nconst baseExpect = unexpected.clone();\n\nbaseExpect.addAssertion(\n '<string> to jest match <string>',\n (expect,... | javascript | chosen |
[
{
"from": "system",
"value": "Update testing path to support new core /$root proxy route\n"
},
{
"from": "human",
"value": "// Documentation available at https://theintern.github.io\n\ndefine({\n\tproxyPort: 9010,\n\tproxyUrl: 'http://localhost:9010/',\n\texcludeInstrumentation: /^(?:bower_compo... | javascript | chosen |
[
{
"from": "system",
"value": "Update the comment with the URL to the source\n"
},
{
"from": "human",
"value": "import Ember from 'ember';\nimport DS from 'ember-data';\n\nconst VALIDATION_ERROR_STATUSES = [400, 422];\n\nexport default DS.RESTAdapter.extend({\n namespace: 'api',\n\n isInvalid: ... | javascript | chosen |
[
{
"from": "system",
"value": "REMOVE angular knobs from old-style import\n"
},
{
"from": "human",
"value": "import { window } from 'global';\nimport deprecate from 'util-deprecate';\nimport addons from '@storybook/addons';\n\nimport { vueHandler } from './vue';\nimport { reactHandler } from './r... | javascript | chosen |
[
{
"from": "system",
"value": "Fix scrollSpy bug preventing original scroll to happen if a hash is present\n"
},
{
"from": "human",
"value": "$(function() {\n\n var $documentNav = $('.document-nav');\n\n if($documentNav.length) {\n\n var targets = []\n , $window = $(window);... | javascript | chosen |
[
{
"from": "system",
"value": "Remove empty lines in representative graph.\n"
},
{
"from": "human",
"value": "// Place all the behaviors and hooks related to the matching controller here.\n// All this logic will automatically be available in application.js.\n\nfunction VoteStatsGraph(selector, op... | javascript | chosen |
[
{
"from": "system",
"value": "Test importing from graphql-compiler package\n\nReviewed By: leebyron\n\nDifferential Revision: D5828011\n\nfbshipit-source-id: 3c514c9b611f900234a22004bba1554436bf9df8\n"
},
{
"from": "human",
"value": "/**\n * Copyright (c) 2013-present, Facebook, Inc.\n * All rig... | javascript | chosen |
[
{
"from": "system",
"value": "Fix the issue with posting all notifications even when you are subscribed to one\n"
},
{
"from": "human",
"value": "import {\n createClient,\n} from 'redis';\nimport nconf from '../config';\n\nlet sub;\nlet client;\n\nfunction redisConns() {\n sub = createClient(n... | javascript | chosen |
[
{
"from": "system",
"value": "Refresh iframe on \"RENDERING\" change\n"
},
{
"from": "human",
"value": "AV.VisualizationView = Backbone.View.extend({\n el: '#visualization',\n // The rendering of the visualization will be slightly\n // different here, because there is no templating nece... | javascript | chosen |
[
{
"from": "system",
"value": "Fix regression when setting custom attributes on DOM elements\n"
},
{
"from": "human",
"value": "var $ = require('jquery');\nvar _ = require('./utils.js');\n\n\n// When passed to the template evaluator,\n// its render method will create actual DOM elements\nvar DOMI... | javascript | chosen |
[
{
"from": "system",
"value": "Use the same name on checkboxes to allow keyboard entry\n"
},
{
"from": "human",
"value": "import React from 'react'\n\nexport default function Checker({\n multiselect,\n checked,\n disabled,\n id,\n name,\n onChange\n}) {\n if (disabled) {\n return null\n... | javascript | chosen |
[
{
"from": "system",
"value": "Add new class to restart\n"
},
{
"from": "human",
"value": "import React, { Component } from 'react';\nimport { connect } from 'react-redux';\nimport store from '../store.js';\nimport { restart } from '../actions/name-actions';\nimport { selectGender } from '../acti... | javascript | chosen |
[
{
"from": "system",
"value": "Make group property in user visible.\n"
},
{
"from": "human",
"value": "/**\n * @license\n * Copyright 2017 The FOAM Authors. All Rights Reserved.\n * http://www.apache.org/licenses/LICENSE-2.0\n */\n\n/*\nfoam.RELATIONSHIP({\n cardinality: '*:*',\n sourceModel: '... | javascript | chosen |
[
{
"from": "system",
"value": "Add hash digest calcuation to NullWritable\n"
},
{
"from": "human",
"value": "/*\n * stompit.NullWritable\n * Copyright (c) 2014 Graham Daws <graham.daws@gmail.com>\n * MIT licensed\n */\n\nvar stream = require('stream');\nvar util = require('util');\n\nfunction Nul... | javascript | chosen |
[
{
"from": "system",
"value": "Use strict equals for function checking\n"
},
{
"from": "human",
"value": "var querystring = require('querystring');\n\nfunction isFunction(func) {\n return typeof func == 'function';\n}\n\nmodule.exports = {\n stringify: function(object) {\n var converted = {}... | javascript | chosen |
[
{
"from": "system",
"value": "Add map() and contains() functions to Array class.\n"
},
{
"from": "human",
"value": "/**\n * Extend +destination+ with +source+\n */\nfunction extend(destination, source) {\n for (var property in source) {\n destination[property] = source[property];\n }\n ret... | javascript | chosen |
[
{
"from": "system",
"value": "refactor(authentication): Move passport dependencies to hash map\n\nAdd PASSPORT_DEPENDENCIES object that contains all passport strategies\n"
},
{
"from": "human",
"value": "/**\n * Step 7\n * Where installation are run (npm, bower)\n */\n\nexport default function (... | javascript | chosen |
[
{
"from": "system",
"value": "Remove dim background, it's a bit stark.\n"
},
{
"from": "human",
"value": "var indicator = {}\n\nindicator.show = function() {\n var hud = MBProgressHUD.showHUDAddedToAnimated(this._getRootWindow(), true);\n hud.dimBackground = true;\n};\n\nindicator.hide = funct... | javascript | chosen |
[
{
"from": "system",
"value": "Remove mouseLeave functionality from top nav\n"
},
{
"from": "human",
"value": "angular.module('genome.directive', [])\n\n.directive('dstTopNav', function() {\n\n return {\n controller: function($scope, $cookies, $rootScope, $location, SelfFactory) {\n $sco... | javascript | chosen |
[
{
"from": "system",
"value": "Split out 'test' from 'jshint' subcommands in grunt\n"
},
{
"from": "human",
"value": "'use strict';\n\nmodule.exports = function(grunt) {\n\n grunt.initConfig({\n pkg: grunt.file.readJSON('package.json'),\n jshint: {\n all: [\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix rule to match the project standards\n"
},
{
"from": "human",
"value": "import {\n isString,\n isArray,\n isBoolean,\n} from \"lodash\"\nimport {\n isStandardSyntaxProperty,\n isCustomProperty,\n report,\n ruleMessages,\n validateOptions,\n} from \"../../... | javascript | chosen |
[
{
"from": "system",
"value": "fix: Change the label UID to ID.\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport PropTypes from 'prop-types';\nimport { connect } from 'react-redux';\n\nconst AssessmentEntryColHeaderView = ({ questions }) => {\n const values = Object.keys(que... | javascript | chosen |
[
{
"from": "system",
"value": "Fix warning invalid props for textarea\n"
},
{
"from": "human",
"value": "import React, { Component, PropTypes } from 'react'\nimport classnames from 'classnames'\n\nimport { ControlButtons } from './'\n\nclass FormControl extends Component {\n render () {\n con... | javascript | chosen |
[
{
"from": "system",
"value": "Tweak time to display, allow for explict labelling.\n"
},
{
"from": "human",
"value": "'use strict';\n\nfunction getDescProp(obj, prop) {\n var parts = prop.split('.');\n while(parts.length) obj = obj[parts.shift()];\n return obj;\n}\n\nangular.module('gomApp.... | javascript | chosen |
[
{
"from": "system",
"value": "Change title text and center it.\n"
},
{
"from": "human",
"value": "const React = require('react')\nconst { connect } = require('react-redux')\nconst RequestsContainer = require('./requests')\nconst SidebarContainer = require('./sidebar')\nconst AppBar = require('ma... | javascript | chosen |
[
{
"from": "system",
"value": "Add node env to script\n\n- helps with optimising production code like react\n"
},
{
"from": "human",
"value": "import gulp from 'gulp';\nimport gulpif from 'gulp-if';\nimport named from 'vinyl-named';\nimport webpack from 'webpack';\nimport gulpWebpack from 'webpac... | javascript | chosen |
[
{
"from": "system",
"value": "Include leaflet lib + assets\n"
},
{
"from": "human",
"value": "/* global require, module */\n\nvar EmberApp = require('ember-cli/lib/broccoli/ember-app');\nvar Funnel = require('broccoli-funnel');\n\nmodule.exports = function(defaults) {\n\n var app = new EmberApp... | javascript | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.