conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Use lodash-node instead of grunt.util._\n\nBecause grunt.util._ is deprecated. (cf.\nhttp://gruntjs.com/api/grunt.util#grunt.util._)\n"
},
{
"from": "human",
"value": "var path = require('path');\nrequire('js-yaml');\nmodule.exports = function(grunt, options) {\n v... | javascript | chosen |
[
{
"from": "system",
"value": "Disable iframe error story in Chromatic :/\n"
},
{
"from": "human",
"value": "import React from 'react';\n\nimport { IFrame } from './iframe';\n\nexport default {\n Component: IFrame,\n title: 'Components|Preview/Iframe',\n};\n\nconst style = { width: '100%', heig... | javascript | chosen |
[
{
"from": "system",
"value": "Fix a bug for spec\n"
},
{
"from": "human",
"value": "define(function(require) {\n\n var test = require('../../../test')\n\n test.assert(require('./missing/missing').bogus === null, 'return null when module file is 404')\n test.assert(require('./nested/b/c/d').fo... | javascript | chosen |
[
{
"from": "system",
"value": "Fix dev advertise script for mdns name change (b271a68)\n"
},
{
"from": "human",
"value": "// simple script to advertise a MDNS service for local API\n// TODO(mc, 2017-10-31): remove this file once API can advertise for itself\nconst bonjour = require('bonjour')()\n... | javascript | chosen |
[
{
"from": "system",
"value": "Make JobTypeCard use imageProp from propTypes\n"
},
{
"from": "human",
"value": "import React, { Component } from 'react';\nimport { Card } from 'native-base';\nimport CardImageHeader from '../../common/card-image-header/cardImageHeader';\nimport SimpleCardBody from... | javascript | chosen |
[
{
"from": "system",
"value": "fix: Create locale dir if doesn\\' exist\n"
},
{
"from": "human",
"value": "const fs = require('fs')\nconst path = require('path')\nconst chalk = require('chalk')\nconst emojify = require('node-emoji').emojify\nconst program = require('commander')\nconst getConfig =... | javascript | chosen |
[
{
"from": "system",
"value": "Set the date on the input box for new lotto to the next Saturday\n"
},
{
"from": "human",
"value": "Template.lottoAdd.created = function() {\n Session.set('lottoAddErrors', {});\n};\nTemplate.lottoAdd.rendered = function() {\n this.find('input[name=date]').valueAs... | javascript | chosen |
[
{
"from": "system",
"value": "Fix class names for icons in trees for Bootstrap 3\n"
},
{
"from": "human",
"value": "$(function () {\n $('.tree li:has(ul)').addClass('parent_li').find(' > span').attr('title', 'Collapse this branch');\n $('.tree li.parent_li > span').on('click', function (e)... | javascript | chosen |
[
{
"from": "system",
"value": "Remove \"should have routes\" common spec\n\nEach module should test its own routes, not just if they have some.\n"
},
{
"from": "human",
"value": "/* jshint es3: false, esnext: true */\n/* global jasmine, beforeEach, describe, it, expect, module, inject */\n\n(func... | javascript | chosen |
[
{
"from": "system",
"value": "Add more polyfills from core-js\n"
},
{
"from": "human",
"value": "/* @flow */\n/* eslint-disable import/no-commonjs */\n\nimport 'core-js/es6/symbol';\nimport 'core-js/es6/array';\n\nglobal.navigator.userAgent = 'react-native';\n\nrequire('./client-base');\n"
},
... | javascript | chosen |
[
{
"from": "system",
"value": "Fix cityInfo tab not loading data after user completes form\n"
},
{
"from": "human",
"value": "'use strict';\nconst express = require('express');\nconst router = express.Router();\nconst bodyParser = require('body-parser');\nconst request = require('request');\ncons... | javascript | chosen |
[
{
"from": "system",
"value": "Fix height of product title to avoid weird tile positioning\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport PureComponent from '../components/purecomponent.react';\n\nimport ProductImage from './product-image.react';\n\nexport default class Pro... | javascript | chosen |
[
{
"from": "system",
"value": "Fix strategizer choice view choice selection in update view\n"
},
{
"from": "human",
"value": "/**\n * @license\n * Copyright 2019 The FOAM Authors. All Rights Reserved.\n * http://www.apache.org/licenses/LICENSE-2.0\n */\n\nfoam.CLASS({\n package: 'foam.u2.view',\... | javascript | chosen |
[
{
"from": "system",
"value": "Add delay to the dialog story to make sure the open animation has finished\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport { IconWarningBadgedMediumOutline } from '@teamleader/ui-icons';\n\nimport { Dialog, Box, TextBody } from '../..';\n\nexpo... | javascript | chosen |
[
{
"from": "system",
"value": "Set 12-hour-clock format in the en-AU locale\n"
},
{
"from": "human",
"value": "import buildFormatLongFn from '../../../_lib/buildFormatLongFn/index.js'\n\nvar dateFormats = {\n full: 'EEEE, d MMMM yyyy',\n long: 'd MMMM yyyy',\n medium: 'd MMM yyyy',\n short: '... | javascript | chosen |
[
{
"from": "system",
"value": "Fix broken unit test caused by presence service .onDisconnect() bug\n"
},
{
"from": "human",
"value": "(function (angular) {\r\n \r\n 'use strict';\r\n \r\n angular.module('birdyard.users')\r\n \r\n .factory('presenceService', ['$q', 'firebaseService', \r\n\r\... | javascript | chosen |
[
{
"from": "system",
"value": "Adjust indentation spacing to pass linting\n"
},
{
"from": "human",
"value": "import Resolver from 'ember/resolver';\nimport config from '../../config/environment';\n\nconst resolver = Resolver.create();\n\nresolver.namespace = {\n modulePrefix: config.modulePrefix... | javascript | chosen |
[
{
"from": "system",
"value": "Maintain the previous behavior where if there was no result set we'd attempt to pass it to res.json and have express handle the exception and bubble it up.\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst KMSProvider = require('../../providers/kms');\n\n/**... | javascript | chosen |
[
{
"from": "system",
"value": "Fix template URL generation (WAL-141)\n"
},
{
"from": "human",
"value": "'use strict';\n\n(function() {\n angular.module('ncsaas')\n .service('invoicesService', ['baseServiceClass', '$http', 'ENV', '$state', invoicesService]);\n\n function invoicesServi... | javascript | chosen |
[
{
"from": "system",
"value": "Fix PayPal payments API path (SAAS-1070)\n"
},
{
"from": "human",
"value": "'use strict';\n\n(function() {\n angular.module('ncsaas')\n .service('paymentsService', ['baseServiceClass', paymentsService]);\n\n function paymentsService(baseServiceClass) {\n /*j... | javascript | chosen |
[
{
"from": "system",
"value": "Update the schema to match what we're passing in from the DOM\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar mongoose = require('mongoose');\n\n/**\n * Define a visit model:\n *\t-\n */\n\nvar VisitSchema = mongoose.Schema({\n visitor_id: String,\n se... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"use require to read package.json\"\n\nThis reverts commit 284623a4f42e6a23ee96a7505951191f80545d7d.\n"
},
{
"from": "human",
"value": "/* eslint-env node */\n'use strict';\n\nmodule.exports = {\n normalizeEntityName() {},\n\n afterInstall() {\n let pkg... | javascript | chosen |
[
{
"from": "system",
"value": "Fix delete statement: remove duplicated word.\n"
},
{
"from": "human",
"value": "import { Meteor } from 'meteor/meteor'\nimport { render } from 'react-dom'\nimport { createStore } from 'redux'\n\nimport { renderRoutes } from './routes.jsx'\nimport withProvider from ... | javascript | chosen |
[
{
"from": "system",
"value": "Make it possible to display no error message by setting attr errorMsg to false\n"
},
{
"from": "human",
"value": "angular.module('mwUI.Form')\n .config(function(mwValidationMessagesProvider){\n mwValidationMessagesProvider.registerValidator(\n 'customValida... | javascript | chosen |
[
{
"from": "system",
"value": "Add explicit function for changing in haiku functionality\n"
},
{
"from": "human",
"value": "const { isHaiku } = require('./validateHaiku');\n\nclass ChannelProcessor {\n constructor(channelID) {\n this.channelID = channelID;\n this.messages = [];\n this.o... | javascript | chosen |
[
{
"from": "system",
"value": "Make Attribute Map a white-list\n"
},
{
"from": "human",
"value": "export default {\n 'circle': {\n 'radius': 'r',\n 'x': 'cx',\n 'y': 'cy'\n }\n};"
},
{
"from": "gpt",
"value": "/*\n This acts as both a way to normalize attribute names, but a... | javascript | chosen |
[
{
"from": "system",
"value": "Add confirm to dialogs mixin\n"
},
{
"from": "human",
"value": "module.exports = {\n\n\tshowAlertDialog: function(options, callback) {\n\t\tsetTimeout(function() {\n\t\t\tif (navigator.notification && navigator.notification.alert) {\n\t\t\t\tnavigator.notification.a... | javascript | chosen |
[
{
"from": "system",
"value": "Set classes on ef-list based on context\n"
},
{
"from": "human",
"value": "import Component from 'ember-forge-ui/components/ef-nav';\n\n/**\n * @module\n * @augments ember-forge-ui/components/ef-nav\n */\nexport default Component.extend({\n\n // -------------------... | javascript | chosen |
[
{
"from": "system",
"value": "Make sure whitelist choice is taken in account in state asap\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst BaseStep = require('./base-step');\n\nmodule.exports = class WhitelistChoice extends BaseStep {\n start(state, install) {\n return new Promise(... | javascript | chosen |
[
{
"from": "system",
"value": "Make env variable compatible with create-react-app.\n"
},
{
"from": "human",
"value": "Places.MapConfig = {\n APIKEY: process.env.MAP_API_KEY\n}\n"
},
{
"from": "gpt",
"value": "Places.MapConfig = {\n APIKEY: process.env.REACT_APP_MAP_API_KEY\n}\n"
}... | javascript | chosen |
[
{
"from": "system",
"value": "Update the Mailing List model with relationship fields to select users that have signed up.\n"
},
{
"from": "human",
"value": "var keystone = require('keystone'),\n\tTypes = keystone.Field.Types;\n\n// Create model. Additional options allow menu name to be used what... | javascript | chosen |
[
{
"from": "system",
"value": "Change get fonction to retreive criteria\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar util = require('util');\nvar openVeoAPI = require('@openveo/api');\nvar Database = openVeoAPI.Database;\n\nfunction FakeSuccessDatabase() {\n}\n\nmodule.exports = FakeS... | javascript | chosen |
[
{
"from": "system",
"value": "Refactor <Checkbox> tests to reduce duplication\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport ReactDOM from 'react-dom';\nimport { Simulate } from 'react-addons-test-utils';\nimport Checkbox from '../../../../src/components/checkbox.jsx';\nim... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"[fix] create new array by referencing sidebar styling\"\n\nThis reverts commit 0b88a57e8613c76f7f2976b6966cbbe2a175bbc5.\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar sidebar = require('npm-documentation-pagelet').sidebar;\n\n//\n// Add some diffe... | javascript | chosen |
[
{
"from": "system",
"value": "Use headless phantomjs for grunt started e2e tests"
},
{
"from": "human",
"value": "// Karma configuration\n// http://karma-runner.github.io/0.10/config/configuration-file.html\n\nmodule.exports = function(config) {\n config.set({\n // base path, that will be us... | javascript | chosen |
[
{
"from": "system",
"value": "Switch mobile navigation menu to slide down.\n"
},
{
"from": "human",
"value": "$(function() {\n initHeartAnimation();\n initSubscribeForm();\n});\n\nfunction scrollToAnchor(element) {\n $('html,body').animate({scrollTop: $(element).offset().top}, 'slow');\n}\n\n... | javascript | chosen |
[
{
"from": "system",
"value": "Set classNames and props on card component and add classNames to\nproptypes.\n"
},
{
"from": "human",
"value": "import React, { PropTypes } from \"react\";\nimport cx from 'classNames';\n\n/**\n * Simple Card component that wraps a div around content with card styli... | javascript | chosen |
[
{
"from": "system",
"value": "Fix alias in query template of georeference-city analysis\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar Node = require('../node');\nvar debug = require('../../util/debug')('analysis:georeference-country');\n\nvar TYPE = 'georeference-country';\nvar PARAMS ... | javascript | chosen |
[
{
"from": "system",
"value": "patron-client: Fix typo in variable name\n"
},
{
"from": "human",
"value": "import '../../public/dist/styles/main.css'\nimport React from 'react'\nimport ReactDOM from 'react-dom'\nimport { Provider } from 'react-redux'\nimport store from './store'\nimport Root from... | javascript | chosen |
[
{
"from": "system",
"value": "Use base in perf tests.\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\nvar N3 = require('../N3');\nvar fs = require('fs'),\n assert = require('assert');\n\nif (process.argv.length !== 3)\n return console.error('Usage: N3Parser-perf.js filename');\n\nvar... | javascript | chosen |
[
{
"from": "system",
"value": "Add appId asap, however we should figure out a better flow\n"
},
{
"from": "human",
"value": "/*jshint esversion:6, node:true*/\n'use strict';\n\nconst extend = require('gextend');\n\nvar DEFAULTS = {\n middleware: require('./middleware')\n};\n\nmodule.exports = ... | javascript | chosen |
[
{
"from": "system",
"value": "Use the new child_process.spawn API\n"
},
{
"from": "human",
"value": "\nvar log = require(\"../utils/log\")\n\nmodule.exports = function exec (cmd, args, env, pipe, cb) {\n if (!cb) cb = pipe, pipe = false\n if (!cb) cb = env, env = process.env\n log(cmd+\" \"+a... | javascript | chosen |
[
{
"from": "system",
"value": "Add entry point for any build mode\n"
},
{
"from": "human",
"value": "\ngoog.provide('urlbuilder');\n\ngoog.require('urlbuilder.Controller');\n\nurlbuilder.init = function()\n{\n var controller = new urlbuilder.Controller();\n controller.init();\n};\n"
},
{
... | javascript | chosen |
[
{
"from": "system",
"value": "Update css and markup styles to suit new animation\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport PropTypes from 'prop-types';\nimport shortid from 'shortid';\nimport styled, { keyframes } from 'styled-components';\n\nconst stagger = keyframes... | javascript | chosen |
[
{
"from": "system",
"value": "Use currently responding TPB domain\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar bytes = require('bytes');\nvar tpb = require('thepiratebay');\ntpb.setUrl('http://thepiratebay.la');\n\nmodule.exports = function (program, query, done) {\n program.log.debu... | javascript | chosen |
[
{
"from": "system",
"value": "Support 4X releases of libicu\n"
},
{
"from": "human",
"value": "var funcs = require('./funcs.js')\n\nmodule.exports = function (dist, release) {\n var contents = funcs.replace(header, {dist: dist, release: release}) + '\\n\\n' +\n funcs.replace(pkgs, {pkgs: fun... | javascript | chosen |
[
{
"from": "system",
"value": "Add eval sourcemap for increased recompile speed\n"
},
{
"from": "human",
"value": "import webpack from 'webpack';\nimport path from 'path';\nimport CopyWebpackPlugin from 'copy-webpack-plugin';\nimport autoprefixer from 'autoprefixer';\n\nimport loaders from './web... | javascript | chosen |
[
{
"from": "system",
"value": "Disable BrowserOptionsWebUITest.testOpenBrowserOptions on Mac debug bots.\n\nIt times out, since it's at the 45 second completion threshold.\n\nBUG=121030\nTBR=estade@chromium.org\n\nReview URL: https://chromiumcodereview.appspot.com/9933007\n\ngit-svn-id: de016e52bd170d2d4f234... | javascript | chosen |
[
{
"from": "system",
"value": "Fix field var declarations & onload functionality\n"
},
{
"from": "human",
"value": "$('#can_embed_form').load(function(){\n console.log('Form loaded.');\n var phoneField = $('#phone');\n var zipField = $('#form-zip_code');\n});"
},
{
"from": "gpt",
"... | javascript | chosen |
[
{
"from": "system",
"value": "Make stopwatch the default route\n"
},
{
"from": "human",
"value": "export default function(appModule) {\n appModule.config(function($stateProvider, $locationProvider) {\n 'ngInject';\n\n $stateProvider\n .state({\n name: 'stopwatch',\n url... | javascript | chosen |
[
{
"from": "system",
"value": "Remove unneeded nav checks for forward/back buttons.\n"
},
{
"from": "human",
"value": "browser.on(\"init\", function () {\r\n \"use strict\";\r\n\r\n // Show the refresh button\r\n this.showRefresh = () => {\r\n this.stopButton.classList.remove(\"s... | javascript | chosen |
[
{
"from": "system",
"value": "Update base line-height to 150%\n"
},
{
"from": "human",
"value": "import React from 'react'\nimport PropTypes from 'prop-types'\nimport styled from 'styled-components'\nimport Search from './search'\nimport Results from './results'\n\nconst Container = styled.div`\... | javascript | chosen |
[
{
"from": "system",
"value": "Update backgrounds reducer to purchase dots\n\n"
},
{
"from": "human",
"value": "import initialState from './initialState';\nimport * as types from '../constants/actionTypes';\nimport { setDotsFromStartingDots } from '../utils/categoryStarter';\n\nexport default (st... | javascript | chosen |
[
{
"from": "system",
"value": "Set Handlebars as the default template language in the main app file.\n"
},
{
"from": "human",
"value": "var compression = require(\"compression\");\nvar express = require(\"express\");\n\n// Initialize Express\nvar app = express();\n\n// Treat \"/foo\" and \"... | javascript | chosen |
[
{
"from": "system",
"value": "Add a small delay to startup of puppeteer\n"
},
{
"from": "human",
"value": "const puppeteer = require(\"puppeteer-core\");\n\nasync function main () {\n const browser = await puppeteer.launch({\n headless: false,\n executablePath: \"/Applications/Google\\ Ch... | javascript | chosen |
[
{
"from": "system",
"value": "Add test for filter removal\n"
},
{
"from": "human",
"value": "// / <reference types=\"Cypress\" />\n\ndescribe('The Locations Hub', () => {\n before(() => {\n cy.visit('/#/locations');\n });\n\n it('successfully loads', () => {\n cy.get('header');\n cy.... | javascript | chosen |
[
{
"from": "system",
"value": "Add strict mode to support generation\n"
},
{
"from": "human",
"value": "var fs = require('fs'),\n words = require('../data/spache.json');\n\nfs.writeFileSync('Supported-words.md',\n 'Supported Words\\n' +\n '=================\\n' +\n '\\n' +\n\n word... | javascript | chosen |
[
{
"from": "system",
"value": "Add id column with auto increment\n"
},
{
"from": "human",
"value": "'use strict'\n\nmodule.exports = {\n up: function (queryInterface, Sequelize) {\n return queryInterface.createTable('users', {\n // it will add the id column automatically\n name: Seq... | javascript | chosen |
[
{
"from": "system",
"value": "Rework how Marionette is detected when using script tag\n"
},
{
"from": "human",
"value": ";(function(Agent){\n\n var waitForMarionetteLoad = function(object, callback) {\n Agent.onObjectAndPropertiesSetted(\n object,\n 'Marionette', ['Application', 'M... | javascript | chosen |
[
{
"from": "system",
"value": "Update server script to work on CI and production environments.\n"
},
{
"from": "human",
"value": "const puppeteer = require('puppeteer')\nconst path = require('path')\n\nconst main = async () => {\n const browser = await puppeteer.launch()\n const page = await br... | javascript | chosen |
[
{
"from": "system",
"value": "Fix controller on invalid key press\n"
},
{
"from": "human",
"value": "class Controller {\n constructor () {\n this.listeners = []\n this.key = null\n\n window.addEventListener('keydown', e => {\n if (e.keyCode === this.key)\n return\n thi... | javascript | chosen |
[
{
"from": "system",
"value": "Remove isRequired from header propTypes\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport { connect } from 'react-redux';\nimport { Link } from 'react-router';\nimport Loader from '../Loader';\nimport './Header.scss';\n\nexport const Header = ({ ... | javascript | chosen |
[
{
"from": "system",
"value": "Refactor : remove get is function\n"
},
{
"from": "human",
"value": "import { PolymerElement } from '@polymer/polymer/polymer-element';\n\nclass BnbAnalytics extends PolymerElement {\n static get is() { return 'bnb-analytics'; }\n\n static get properties() {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add an `add` method to places repo.\n"
},
{
"from": "human",
"value": "\"use strict\";\n\nimport placeToEat from \"application/domain/placeToEat\";\n\nexport default function inMemoryPlacesRepo() {\n let places = [\n placeToEat({ id: 100, name: \"Thai Hous... | javascript | chosen |
[
{
"from": "system",
"value": "Clean up the chart definitions\n\n* Remove duplicate ColumnChart definition\n* Add line breaks to make reading easier (and detecting things like\n duplicate entries)\n"
},
{
"from": "human",
"value": "module.exports = [{name:\"LineChart\",groupBy:true,chooseAxis:fa... | javascript | chosen |
[
{
"from": "system",
"value": "Add catch to fetch statements"
},
{
"from": "human",
"value": "/**\n * Loads an array of urls using the loadFunction given by the user.\n * Returns a promise.all of all the urls.\n */\nfunction loadUrls(urls, loadFunction) {\n let promises = [];\n for (url of urls... | javascript | chosen |
[
{
"from": "system",
"value": "Add comment explaining where runtime value comes from\n"
},
{
"from": "human",
"value": "\"use strict\";\n\nvar _ = require('lodash');\n\nvar defaultSettings = {\n title: 'Model My Watershed',\n itsi_embed: false,\n itsi_enabled: true,\n data_catalog_ena... | javascript | chosen |
[
{
"from": "system",
"value": "Add unit tests for getSchemaCacheKey\n"
},
{
"from": "human",
"value": "describe(\"ResourceCacheKey\", function () {\n it(\"getSchemaCacheKey works for external schemas\", function () {});\n\n it(\"getSchemaCacheKey works for external schemas\", function () {});\n... | javascript | chosen |
[
{
"from": "system",
"value": "Tweak wording on the \"new stage\" tweet\n\n"
},
{
"from": "human",
"value": "const TwitterPostBase = require('./TwitterPostBase');\nconst { readJson } = require('../utilities');\nconst path = require('path');\nconst fs = require('fs');\n\nconst stagesPath = path.re... | javascript | chosen |
[
{
"from": "system",
"value": "Add extra bar in url"
},
{
"from": "human",
"value": "'use strict';\nvar $ = require('jquery');\n\n//https://pgp-logs-app.herokuapp.com/api\n//http://localhost:8085/api\nvar client = new $.RestClient('https://pgp-logs-app.herokuapp.com/api', {\n verbs: {\n 'post... | javascript | chosen |
[
{
"from": "system",
"value": "Change text, import svg the \"right\" way\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport { Link } from 'react-router';\nimport './NotFound.scss';\n\nexport const NotFound = () => (\n <div className='not-found-container'>\n <img className='... | javascript | chosen |
[
{
"from": "system",
"value": "Update Dialog story to provide required prop.\n"
},
{
"from": "human",
"value": "/**\n * Modal Dialog Component Stories.\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 u... | javascript | chosen |
[
{
"from": "system",
"value": "Update import statement in graphics\n"
},
{
"from": "human",
"value": "import * as EventMap from 'eventmap';\n\n// `Graphics` is an instance of an `EventMap`\nlet Graphics = new EventMap();\n\n// Special property `renderer` can be modified, but not deleted\nObject.d... | javascript | chosen |
[
{
"from": "system",
"value": "Add userId to event in default test\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst skill = require('../skill/MainStateMachine');\nconst expect = require('chai').expect;\n\ndescribe('Skill', () => {\n it('should reply with Intent.Launch', () => {\n con... | javascript | chosen |
[
{
"from": "system",
"value": "[ADD] Clear help page (contacts moved to contact page)\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport { connect } from 'react-redux';\n\nimport '../../scss/views/_main.scss';\nimport '../../scss/views/_help.scss';\n\n\nconst mapStateToProps = ... | javascript | chosen |
[
{
"from": "system",
"value": "Change default layout to vertical\n\nResolves #54\n"
},
{
"from": "human",
"value": "import { combineReducers } from 'redux'\nimport { merge } from 'ramda'\n\nimport { routerStateReducer } from 'redux-router'\n\nimport { SETTINGS_CHANGE, DISPLAY_FILTERS_CHANGE } fro... | javascript | chosen |
[
{
"from": "system",
"value": "Fix server side CSS classname scope\n"
},
{
"from": "human",
"value": "import cssHook from 'css-modules-require-hook';\n\ncssHook({\n generateScopedName: '[local]__[path][name]__[hash:base64:5]',\n});\n"
},
{
"from": "gpt",
"value": "import cssHook from... | javascript | chosen |
[
{
"from": "system",
"value": "test: Check for styles and scripts\n"
},
{
"from": "human",
"value": "/*global describe, it, before, beforeEach */\r\n/*jshint -W030 */\r\n\r\n'use strict';\r\n\r\nvar join = require('path').join\r\n , fs = require('fs')\r\n , expect = require('chai').expect\r\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Use ES6 features in test\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar fs = require('fs');\n\nfunction read(filename) {\n return fs.readFileSync(filename, {'encoding': 'utf8'});\n}\n\nexports.contents = {\n 'filter': function(test) {\n var actual = re... | javascript | chosen |
[
{
"from": "system",
"value": "Add end-2-end test for default ordering\n\nVerify that the ordering mechanism of the select box is working perfectly\n"
},
{
"from": "human",
"value": "'use strict';\n\n/* http://docs.angularjs.org/guide/dev_guide.e2e-testing */\n\ndescribe(\"PhoneCat App\", functio... | javascript | chosen |
[
{
"from": "system",
"value": "Move all repeat values into a before statement\n"
},
{
"from": "human",
"value": "'use strict';\n\ndescribe('browser build', function() {\n require('./plain');\n require('./worker');\n});\n"
},
{
"from": "gpt",
"value": "'use strict';\n\ndescribe('brow... | javascript | chosen |
[
{
"from": "system",
"value": "Change Array reduce polyfill to TypedArray reduce polyfill\n"
},
{
"from": "human",
"value": "Array.prototype.reduce||(Array.prototype.reduce=function(r){\"use strict\";if(null==this)throw new TypeError(\"Array.prototype.reduce called on null or undefined\");if(\"fu... | javascript | chosen |
[
{
"from": "system",
"value": "Allow certificites to be conditional\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar memoize = require('memoizee/plain')\n , validDb = require('dbjs/valid-dbjs')\n , defineStringLine = require('dbjs-ext/string/string-line')\n , defineDoc... | javascript | chosen |
[
{
"from": "system",
"value": "Remove import which does not seem to be used any more\n\nIt seems like since we don't need ti inject batching strategy, we would not need this import?"
},
{
"from": "human",
"value": "import IsomorphicRouter from 'isomorphic-relay-router';\nimport path from 'path';\... | javascript | chosen |
[
{
"from": "system",
"value": "Fix broken source map in production\n"
},
{
"from": "human",
"value": "const Babili = require('babili-webpack-plugin')\n\nmodule.exports = {\n plugins: [\n new Babili({\n removeConsole: false,\n removeDebugger: true\n })\n ]\n}\n"
},
{
"fro... | javascript | chosen |
[
{
"from": "system",
"value": "Update Babel presets to align with new Babel version\n"
},
{
"from": "human",
"value": "const BABEL_ENV = process.env.BABEL_ENV;\nconst building = BABEL_ENV != undefined && BABEL_ENV !== 'cjs';\n\nconst plugins = [];\n\nif (BABEL_ENV === 'umd') {\n plugins.push('ex... | javascript | chosen |
[
{
"from": "system",
"value": "Add initial and refactored solution\n"
},
{
"from": "human",
"value": "// Separate Numbers with Commas in JavaScript **Pairing Challenge**\n\n\n// I worked on this challenge with: .\n\n// Pseudocode\n\n\n\n// Initial Solution\n\n\n\n\n// Refactored Solution\n\n\n\n\... | javascript | chosen |
[
{
"from": "system",
"value": "Update email address and message sent with email\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/a... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"BAU: remove unused jQuery UJS library\"\n\nThis reverts commit b965059cefcca710e2fe232629f06cd9b87e7e07.\n\nWe didn't realise UJS automatically adds the CSRF token into the request\nheaders - so we started seeing Rails \"missing CSRF token\" errors in\nresponse to AJAX... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"Set back to login code\"\n\nThis reverts commit c5f5d8cd6240db7ca4d887af57b85441547bb80f.\n"
},
{
"from": "human",
"value": "function ApplicationTabGroup(Window) {\n\t//create module instance\n\tvar self = Ti.UI.createTabGroup();\n\n\t//create app tabs\n\tv... | javascript | chosen |
[
{
"from": "system",
"value": "Fix append last page of posts issue\n"
},
{
"from": "human",
"value": "'use strict';\n\n\nmodule.exports = function ($el, event) {\n var current = ~~$el.data('current-page'),\n max = ~~$el.data('max-page'),\n params = {};\n\n params.page = curre... | javascript | chosen |
[
{
"from": "system",
"value": "Fix JS showing just one photo\n"
},
{
"from": "human",
"value": "var initialize = function() {\n var root = $('.item');\n\n if (root.length) {\n var photos = root.find('.item__photos');\n if (photos.length) {\n photos.magnificPopup({\n type: 'ima... | javascript | chosen |
[
{
"from": "system",
"value": "Use Oxygen code to make URLs relative\n"
},
{
"from": "human",
"value": "function applicationStarted(pluginWorkspaceAccess) {\n Packages.java.lang.System.err.println(\"Application started \" + pluginWorkspaceAccess);\n referenceResolver = {\n /*Called when a refere... | javascript | chosen |
[
{
"from": "system",
"value": "tracking: Fix now out of date comment\n"
},
{
"from": "human",
"value": "import debug from 'debug';\n\nconst log = debug('service:tracking');\n\n// Track mixpanel events only if Scope is running inside of Weave Cloud.\nexport function trackAnalyticsEvent(name, props... | javascript | chosen |
[
{
"from": "system",
"value": "Return id, not _id or __v.\n"
},
{
"from": "human",
"value": "var mongoose = require('mongoose'),\n shortid = require('shortid');\n\nvar UserSchema = new mongoose.Schema({\n _id: {type: String, required: true, unique: true, 'default': shortid.generate},\n u... | javascript | chosen |
[
{
"from": "system",
"value": "FIX (markdown links): All markdown links now open in a new browser window instead of inside the application.\n\nFixes #88\n"
},
{
"from": "human",
"value": "'use strict';\n\nangular.module('gisto.filter.markDown', []).filter('markDown', function () {\n return fun... | javascript | chosen |
[
{
"from": "system",
"value": "Add \"title\" to forum.topic.list.by_page request\n\nThis fixes \"[missing variable: title]\" error when you visit\n/forum/fX/topicY page and click on \"More posts\".\n"
},
{
"from": "human",
"value": "'use strict';\n\nmodule.exports = {\n\n post: [\n '_id',\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Implement aritGeo case for non-arrays\n"
},
{
"from": "human",
"value": "'use strict'\n\nmodule.exports = {\n\taritGeo: function(numlist) {\n\t\tif (numlist.length === 0) {\n\t\t\treturn 0;\n\t\t}\n\t}\n}"
},
{
"from": "gpt",
"value": "'use strict'\n\nmo... | javascript | chosen |
[
{
"from": "system",
"value": "Update up to changes in es5-ext\n"
},
{
"from": "human",
"value": "// Whether passed error is error thrown by require in case module\n// (at given path) is not found\n\n'use strict';\n\nvar k = require('es5-ext/function/k')\n\n , token, pattern;\n\ntry {\n\trequire... | javascript | chosen |
[
{
"from": "system",
"value": "[test] Add a test case for the no-op react-native polyfill\n"
},
{
"from": "human",
"value": "describe('react-native', function () {\n it('just re-exports the global functions', function () {\n const globalFetch = global.fetch = function globalFetch () {}\n c... | javascript | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.