conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Fix sidebar scrollbar not being displayed on slideshow edit on Chrome 53.\n"
},
{
"from": "human",
"value": "/*global angular, removeLocationFromFilter*/\n/*jslint nomen: true, es5: true */\nangular.module('slideshows').directive('slideshowSlidesHeightSetter', ['$wi... | javascript | chosen |
[
{
"from": "system",
"value": "Update NinjaBlocks user endpoint to v1"
},
{
"from": "human",
"value": "var OAuth2 = require(\"./oauth2\")\n\nfunction NinjaBlocks(options) {\n [\"code\", \"token\", \"user\"].forEach(function(name) {\n this[name] = Object.create(this[name])\n }, this)\n\n thi... | javascript | chosen |
[
{
"from": "system",
"value": "Fix captureStackTrace and message for ie\n"
},
{
"from": "human",
"value": "var util = require('util');\n\n\nvar ValidaInvalidError = module.exports = function ValidaInvalidError (validationErrors) {\n Error.call(this);\n\n this.name = this.constructor.name;\n Er... | javascript | chosen |
[
{
"from": "system",
"value": "Fix loading a channels's old messages\n\nOrder them by oldest on top\n"
},
{
"from": "human",
"value": ".import \"../applicationShared.js\" as Globals\n\nfunction workerOnMessage(messageObject) {\n if(messageObject.apiMethod === 'channels.history') {\n add... | javascript | chosen |
[
{
"from": "system",
"value": "Fix search for IE 11\n\nAdd polyfill for `String.startsWith()`, not supported by IE 11.\n\nNote: I verified that search now works on IE 11.\n\nConnects OpenTreeMap/otm-clients#328\n"
},
{
"from": "human",
"value": "\"use strict\";\n\n// This entry module is loaded i... | javascript | chosen |
[
{
"from": "system",
"value": "Disable on comments and answers\n\nFixes #2\n"
},
{
"from": "human",
"value": "function addQueueButton() {\r\n let saveButtons = document.querySelectorAll('[value=\"Save Edits\"]');\r\n saveButtons.forEach(button => {\r\n if (!button.parentNode.querySel... | javascript | chosen |
[
{
"from": "system",
"value": "Handle Vimeo with Flash vars.\n\nFor some reason seems like Vimeo is not providing\naccess to the files anymore. I will keep the code,\nbut probably we will have to disable it."
},
{
"from": "human",
"value": "(function() {\nVimeoVideo = function(domObject, url) {\n... | javascript | chosen |
[
{
"from": "system",
"value": "Fix snackbar in production, where the error name was being minimized\nSquashed commit of the following:\n\ncommit e0b1b02001d138441bb40a432b412043ab83bc62\nAuthor: Jesse Smith <sosaucily@gmail.com>\nDate: Tue Apr 25 11:46:24 2017 +0200\n\n add some logging\n"
},
{
... | javascript | chosen |
[
{
"from": "system",
"value": "Add option to sort by term in descending order"
},
{
"from": "human",
"value": "// ==UserScript==\n// @name All Courses Sort\n// @namespace https://github.com/jamesjonesmath/canvancement\n// @description Allows sorting on any column of the All Courses list\... | javascript | chosen |
[
{
"from": "system",
"value": "Use first cli input es project name without specifying it explicitly\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\nconst args = require(`args`);\nconst ncp = require(`ncp`);\nconst path = require(`path`);\n\nconst replaceRecursive = require(`../lib/replace... | javascript | chosen |
[
{
"from": "system",
"value": "feat(expo): Allow apiKey to be set in app.json rather than in code\n"
},
{
"from": "human",
"value": "const name = 'Bugsnag Expo'\nconst { version } = require('../package.json')\nconst url = 'https://github.com/bugsnag/bugsnag-js'\n\nconst Client = require('@bugsnag... | javascript | chosen |
[
{
"from": "system",
"value": "Expand elements inside of which we don't wrap stuff in <p>s\n"
},
{
"from": "human",
"value": "const visit = require('unist-util-visit')\n\nconst inline = ['p', 'kbd', 'del', 'sup']\n\nfunction plugin () {\n return transformer\n}\n\nfunction transformer (tree) {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "EF: Update origin relationship to be many to many.\n"
},
{
"from": "human",
"value": "/**\n * @license\n * Copyright 2015 Google Inc. All Rights Reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except ... | javascript | chosen |
[
{
"from": "system",
"value": "Use cleaner method for checking if template ends with .gshkl\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst _ = require('lodash');\nconst fs = require('fs');\nconst path = require('path');\n\nclass Greshunkel {\n\n constructor(options) {\n this.... | javascript | chosen |
[
{
"from": "system",
"value": "Use a contructor for feature objects to allow ease of expanding functionality.\n"
},
{
"from": "human",
"value": "'use strict';\n/* eslint camelcase: 0 */\n\nmodule.exports = function(keyword, name, description, line) {\n return {\n token: 'feature',\n keywor... | javascript | chosen |
[
{
"from": "system",
"value": "Copy codemirror mode configuration instead of changing it\n\nIf we change it, the modified (wrong) mode is saved in the notebook, which\nwrecks havoc on highlighting once the notebook is saved and reopened.\n"
},
{
"from": "human",
"value": "// IPython mode is just ... | javascript | chosen |
[
{
"from": "system",
"value": "Swap timestamp format to ISO and 24h clock.\n"
},
{
"from": "human",
"value": "jQuery(function ($) {\n var localise_timestamp = function(timestamp){\n if (timestamp === \"None\"){\n return '';\n };\n d = moment.utc(timestamp);\n d.local();\n ret... | javascript | chosen |
[
{
"from": "system",
"value": "Remove commented code, and simplify class"
},
{
"from": "human",
"value": "define([\n 'underscore',\n 'backbone'\n], function(_, Backbone) {\n\n var UserModel = Backbone.Model.extend({\n\n \tdefaults: {\n \t\tid: 0,\n \t\tname: '',\n email: '',\n pas... | javascript | chosen |
[
{
"from": "system",
"value": "Remove adding track-id class in loadSound\n"
},
{
"from": "human",
"value": "function startMixer(){\n return new Mixer\n}\n\n\n\n// function loadSound(mix, trackId, divId) {\n// //var tracktoAdd = eventually this will look up track from server based on id\n\n// ... | javascript | chosen |
[
{
"from": "system",
"value": "Handle non-JSON responses in Fetcher\n"
},
{
"from": "human",
"value": "const Config = require('../config.json');\nconst fetch = require('node-fetch');\n\nmodule.exports = class Fetcher {\n get(url) {\n const options = { method: 'GET' };\n return this.fetchJS... | javascript | chosen |
[
{
"from": "system",
"value": "Reduce size of smaps with array notation\n"
},
{
"from": "human",
"value": "/* Copyright (c) Royal Holloway, University of London | Contact Blake Loring (blake@parsed.uk), Duncan Mitchell (Duncan.Mitchell.2015@rhul.ac.uk), or Johannes Kinder (johannes.kinder@rhul.ac... | javascript | chosen |
[
{
"from": "system",
"value": "Update tests to use Translate\n"
},
{
"from": "human",
"value": "import { shallow } from 'enzyme';\nimport assert from 'assert';\nimport React from 'react';\nimport Summary from './summary';\nimport { workflow } from '../../../pages/dev-classifier/mock-data';\n\ncon... | javascript | chosen |
[
{
"from": "system",
"value": "Remove the dot once the images load\n"
},
{
"from": "human",
"value": "import React, { Component } from 'react';\nimport PropTypes from 'prop-types';\nimport styled from 'styled-components';\n\nimport Box from 'react/components/UI/Box';\nimport LoadableImage from 'r... | javascript | chosen |
[
{
"from": "system",
"value": "Update - Add simple variable colour pattern\n"
},
{
"from": "human",
"value": "/**\n * Home controller definition\n * @scope Controllers\n */\ndefine(['./module', 'jquery'], function (controllers, $) {\n 'use strict';\n\n controllers.controller('HomeController', [... | javascript | chosen |
[
{
"from": "system",
"value": "Add correct localhost port to test\n"
},
{
"from": "human",
"value": "//test-name.spec.js\n/*\nAcceptance Criteria:\nI can:\n-Navigate to this page according to the site map url\n-See that the page looks like the mockup\n-View the page at different resolutions and t... | javascript | chosen |
[
{
"from": "system",
"value": "Make sure small images look good in carousel\n\nCloses #448.\n"
},
{
"from": "human",
"value": "import React, { PropTypes } from 'react';\nimport Carousel from 'react-bootstrap/lib/Carousel';\n\nimport { getCaption } from 'utils/imageUtils';\n\nconst IMAGE_WIDTH = 7... | javascript | chosen |
[
{
"from": "system",
"value": "Correct column height header calculation\n"
},
{
"from": "human",
"value": "'use strict';\n(function(){\n angular.module('cla.directives')\n .directive('fullHeight', ['$window', function($window) {\n return {\n restrict: 'A',\n link: function(... | javascript | chosen |
[
{
"from": "system",
"value": "Make sure state is different\n"
},
{
"from": "human",
"value": "'use strict'\n\nlet Gpio = require('onoff').Gpio\nlet EventEmitter = require('events').EventEmitter\n\nclass Door extends EventEmitter {\n constructor(options) {\n super()\n EventEmitter.call(thi... | javascript | chosen |
[
{
"from": "system",
"value": "Add Chapter 08, exercise 2\n"
},
{
"from": "human",
"value": "function withBoxUnlocked(body) {\n var relock = false;\n if (box.locked) {\n box.unlock();\n relock = true;\n }\n\n try {\n return body();\n }\n finally {\n i... | javascript | chosen |
[
{
"from": "system",
"value": "Add some documentation to the scripted logic template. First help++\n"
},
{
"from": "human",
"value": "function initialize()\n{\n}\n\nfunction start()\n{\n}\n\nfunction update(time)\n{\n}\n\nfunction draw(timeLapse)\n{\n}\n\nfunction stop()\n{\n}\n\nfunction cleanup... | javascript | chosen |
[
{
"from": "system",
"value": "Save projectAccess into data space\n"
},
{
"from": "human",
"value": "const {Initializer, api} = require('actionhero');\nconst r = require('../../shared/r');\nconst access = require('../lib/dal/access');\nconst projectAccessCache = require('../lib/project-access-cac... | javascript | chosen |
[
{
"from": "system",
"value": "Move variable declaration and add section headers\n"
},
{
"from": "human",
"value": "'use strict';\n\n// TODO: clean-up\n\nvar abs = require( '@stdlib/math/base/special/abs' );\nvar divide = require( 'compute-divide' );\nvar mean = require( 'compute-mean' );\nvar su... | javascript | chosen |
[
{
"from": "system",
"value": "Change attribute values from object type to string type\n"
},
{
"from": "human",
"value": "export class Attribute {\n\n constructor(data) {\n this.name = (data && data.name) || \"default\"\n this.globalUnique = (data && data.globalUnique) || false\n... | javascript | chosen |
[
{
"from": "system",
"value": "refactor: Add select when finding closest focusable element, when in edit mode\n\nUser-settings-wrapper component"
},
{
"from": "human",
"value": "import Ember from 'ember';\nimport trapTabKey from '../mixins/trap-tab-key';\nimport $ from 'jquery';\n\nexport default... | javascript | chosen |
[
{
"from": "system",
"value": "Remove 'Increment in background' action as all the actions should be dispatched in background\n"
},
{
"from": "human",
"value": "import React, { Component, PropTypes } from 'react';\n\nclass Counter extends Component {\n render() {\n const { increment, increment... | javascript | chosen |
[
{
"from": "system",
"value": "feat(app): Improve electron template on devtools usage\n"
},
{
"from": "human",
"value": "import { app, BrowserWindow, nativeTheme } from 'electron'\nimport path from 'path'\n\ntry {\n if (process.platform === 'win32' && nativeTheme.shouldUseDarkColors === true) {\... | javascript | chosen |
[
{
"from": "system",
"value": "Change success message of builds\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\n\nvar fs = require('fs'),\n compressor = require('node-minify');\n\nnew compressor.minify({\n type: 'gcc',\n fileIn: '../intro.js',\n fileOut: '../minified/intro.min.js',\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add a link for a new post"
},
{
"from": "human",
"value": "import _ from 'lodash';\nimport React, { Component } from 'react';\nimport { connect } from 'react-redux';\nimport { fetchPosts } from '../actions';\n\nclass PostsIndex extends Component {\n componentDidMo... | javascript | chosen |
[
{
"from": "system",
"value": "Update reservation script for lessees reservation\n"
},
{
"from": "human",
"value": "$(document).ready(function() {\n\t$('#reservation-table').DataTable({});\n}); \n\n$('.btn-cancel').on('click', function() {\n\tvar button = $(this);\n\tvar id = button.data('rev-id'... | javascript | chosen |
[
{
"from": "system",
"value": "Allow insert liks in the wysiwyg editor\n"
},
{
"from": "human",
"value": "'use strict';\n\nCKEDITOR.editorConfig = function(config) {\n config.toolbar =\n [\n {\n name: 'styles',\n items : [ 'Format' ]\n },\n {\n name: 'basicstyles',\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add _isMounted check for setState\n"
},
{
"from": "human",
"value": "// @flow\n\nimport React, { Component } from 'react';\nimport { connect } from 'react-redux';\nimport { autocomplete } from 'app/actions/SearchActions';\nimport { debounce } from 'lodash';\n\ntype ... | javascript | chosen |
[
{
"from": "system",
"value": "Remove loading indicator when emaillists empty\n"
},
{
"from": "human",
"value": "// @flow\n\nimport { compose } from 'redux';\nimport { connect } from 'react-redux';\nimport EmailLists from './components/EmailLists';\nimport { fetch } from 'app/actions/EmailListAct... | javascript | chosen |
[
{
"from": "system",
"value": "Fix bug where output wouldn't refresh when running script through GUI\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.... | javascript | chosen |
[
{
"from": "system",
"value": "Reset DSA campaign list with each selection.\n"
},
{
"from": "human",
"value": "// Copyright 2019 Google LLC\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may ob... | javascript | chosen |
[
{
"from": "system",
"value": "Use a more meaningful test\n"
},
{
"from": "human",
"value": "'use strict'\n\nvar CachedUserItems = require('../../src/GooglePlus/CachedUserItems')\nvar assert = require('assert')\n\ndescribe(\"CachedUserItems\", function () {\n describe(\"_getCacheAgePerUser\", ... | javascript | chosen |
[
{
"from": "system",
"value": "Sort on order to keep items in Lines\n\nThis was causing a bug where the post items would end up in various\norderes based on the last visit. This sorts them explicitly.\n"
},
{
"from": "human",
"value": "/**\n * Show and hide the map layers\n */\nTemplate.component... | javascript | chosen |
[
{
"from": "system",
"value": "Change guard and use lodash\n"
},
{
"from": "human",
"value": "const { pick } = require('lodash')\nconst { authorisedRequest } = require('../../lib/authorised-request')\nconst config = require('../../config')\n\nfunction fetchRawCompanyListItems(token, id) {\n retu... | javascript | chosen |
[
{
"from": "system",
"value": "Fix layer selector bug not working properly\n"
},
{
"from": "human",
"value": "niclabs.insight.filter.LayerSelector = (function($) {\n\n\n /**\n * Construct a layer for the dashboard\n *\n * The layer selector provides an option to switch between laye... | javascript | chosen |
[
{
"from": "system",
"value": "Add a test for the sector generator in builder mode\n"
},
{
"from": "human",
"value": "import sectorGenerator from '../sector-generator';\nimport { testSystems } from '../generator-data';\n\ndescribe('SectorGenerator', () => {\n let config;\n beforeEach(() => {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Set petitions page title to \"Petitionen\"\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport Helmet from 'react-helmet';\nimport { connect } from 'react-redux';\nimport { fetchPetitions } from 'actions/PetitionActions';\nimport Petitions from 'co... | javascript | chosen |
[
{
"from": "system",
"value": "Add spec for new People Invite API.\n"
},
{
"from": "human",
"value": "/**\n * @author Hamza Waqas <hamzawaqas@live.com>\n * @since 2/9/14\n */\n\nvar linkedin = require('../../')('77pmiwaj7b1ofn', 'EKKZCDTL7IiNUqra')\ntoken = process.env.IN_TOKEN;\n\njasmine.get... | javascript | chosen |
[
{
"from": "system",
"value": "Add prop for list item class name\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport PropTypes from 'prop-types';\nimport { Link, withRouter } from 'react-router-dom';\n\nimport Result from './Result';\n\nimport styles from './ResultList.css';\n\n... | javascript | chosen |
[
{
"from": "system",
"value": "Use underscore in model name for consistency\n"
},
{
"from": "human",
"value": "const mongoose = require('mongoose')\nconst Format = require('./Format.js')\nconst FilterBase = require('./common/FilterBase.js')\nconst middleware = require('./middleware/Format.js')\n\... | javascript | chosen |
[
{
"from": "system",
"value": "Reset baseUrl/apiBaseUrl before each request\n\nIf we don't do this then mongoose will preserve the previous setting.\nThis caused tests to fail when run in a certain order as earlier tests\nset baseUrl/apiBaseUrl but later tests weren't expecting it.\n"
},
{
"from": "h... | javascript | chosen |
[
{
"from": "system",
"value": "Fix front-end dash removal method for signup ufid\n"
},
{
"from": "human",
"value": "'use strict';\n\nangular.module('users').controller('AuthenticationController', ['$scope', '$http', '$location', 'Authentication',\n\tfunction($scope, $http, $location, Authenticati... | javascript | chosen |
[
{
"from": "system",
"value": "Remove commas. Add name to each army\n"
},
{
"from": "human",
"value": "import actions from '../actions/ArmyActionCreators'\nimport gameActions from '../actions/GameActionCreators'\n\nconst initialState = {\n armies: {\n '0': {\n 'id': '0',\n 'owner': ... | javascript | chosen |
[
{
"from": "system",
"value": "Add an unsubscribe to EventEmitter module\n"
},
{
"from": "human",
"value": "export const EventEmitter = {\n _events: {},\n dispatch: function (event, data) {\n if (!this._events[event]) {\n return; // no one is listening to this event\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Update bubble to accept style props\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport { View, StyleSheet } from 'react-native';\n\nconst styles = StyleSheet.create({\n containter: {\n borderRadius: 30,\n position: 'absolute',\n bottom: ... | javascript | chosen |
[
{
"from": "system",
"value": "Add column to terms of use for padding\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport { Message } from 'retranslate';\n\nimport { logo } from '../common';\n\nexport const TermsOfUse = () => (\n <div className=\"container pt-5\">\n <div cla... | javascript | chosen |
[
{
"from": "system",
"value": "Use built-in `typeof` operator and add warning\n"
},
{
"from": "human",
"value": "'use strict';\n\n// MODULES //\n\nvar isObjectLike = require( '@stdlib/utils/is-object-like' );\nvar isFunction = require( '@stdlib/utils/is-function' );\n\n\n// IS BUFFER //\n\n/**\n*... | javascript | chosen |
[
{
"from": "system",
"value": "Fix `no-duplicate-imports` when using Flowtype\n"
},
{
"from": "human",
"value": "module.exports = {\n extends: [\n 'plugin:flowtype/recommended',\n 'wyze/rules/flow',\n ],\n parser: 'babel-eslint',\n plugins: [\n 'flowtype',\n ],\n}\n"
},
{
"f... | javascript | chosen |
[
{
"from": "human",
"value": "Add instruction about how to deply to heroku.\n"
},
{
"from": "gpt",
"value": "// 1. heroku login\n// 2. git clone https://git.heroku.com/rekit-portal.git heroku-rekit-portal\n// 3. Delete all files except .git folder\n// 4. copy files from rekit/packages/rekit-porta... | javascript | chosen |
[
{
"from": "system",
"value": "Fix error from removed api after upgrading jquery\n"
},
{
"from": "human",
"value": "\ndefine([], function() {\n 'use strict';\n\n return withAsyncQueue;\n\n function withAsyncQueue() {\n\n this.before('initialize', function() {\n var self... | javascript | chosen |
[
{
"from": "system",
"value": "REturn integration data for MockPal payment\n"
},
{
"from": "human",
"value": "App.MockIdealController = App.StandardPaymentMethodController.extend(App.ControllerValidationMixin, {\n requiredFields: ['issuerId'],\n\n init: function() {\n this._super();\... | javascript | chosen |
[
{
"from": "system",
"value": "Fix renderer problems in case of non-transit layer ids\n"
},
{
"from": "human",
"value": "/*\n * Copyright (C) 2017 con terra GmbH (info@conterra.de)\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in co... | javascript | chosen |
[
{
"from": "system",
"value": "Add news link to launcher search results\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport * as fdc3 from 'openfin-fdc3';\nimport { FaChartLine, FaRegListAlt } from 'react-icons/fa'\nimport * as PropTypes from 'prop-types';\nimport { Utils, Inte... | javascript | chosen |
[
{
"from": "system",
"value": "Remove code for editing table entries related to status_notes (status_notes no longer exist. We don't allow editing of reminders here.\n"
},
{
"from": "human",
"value": "class MCProjectsListComponentController {\n /*@ngInject*/\n constructor($mdEditDialog, mcs... | javascript | chosen |
[
{
"from": "system",
"value": "Check query.id before fetching data from youtube-api\n"
},
{
"from": "human",
"value": "var _ = require('underscore');\nvar moment = require('moment');\nvar Promise = require('promise');\nvar fetch = require('./../fetch');\nvar cache = requ... | javascript | chosen |
[
{
"from": "system",
"value": "Remove the icon from the title bar on macOS\n"
},
{
"from": "human",
"value": "const {remote} = require('electron');\n\nconst Titlebar = React.createClass({\n\n render: function () {\n\n const w = {\n min: () => {\n const win = remote.getCurren... | javascript | chosen |
[
{
"from": "system",
"value": "Convert steal plugin to use CommonJS\n\nPreviously was using ES6 which won't work in Phantom due to Traceur\nusing ES5 features that Phantom 1.x doesn't support. This switches the\nplugin to use CommonJS, matching what css.js uses.\n"
},
{
"from": "human",
"value": ... | javascript | chosen |
[
{
"from": "system",
"value": "Update composeReducers to go right-to-left\n"
},
{
"from": "human",
"value": "export default function composeReducers(reducers) {\n return (state, action) => reducers.reduce(\n (prevState, reducer) => reducer(prevState, action),\n state\n );\n}\n"
},
{
... | javascript | chosen |
[
{
"from": "system",
"value": "Add some stricter checks in singleLinePerSelector\n"
},
{
"from": "human",
"value": "'use strict';\n\nmodule.exports = {\n name: 'singleLinePerSelector',\n nodeTypes: ['ruleset'],\n message: 'Each selector should be on its own line.',\n\n lint: function ... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"Update kernel version of ubuntu microkernel to 3.16.0-25-generic.\"\n"
},
{
"from": "human",
"value": "// Copyright 2015, EMC, Inc.\n\n'use strict';\n\nmodule.exports = {\n friendlyName: 'Bootstrap Ubuntu',\n injectableName: 'Task.Linux.Bootstrap.Ubun... | javascript | chosen |
[
{
"from": "system",
"value": "Use Norwegian 'og', not 'and'\n"
},
{
"from": "human",
"value": "const Job = ({ locations, deadline, companyImage, companyName, jobTitle, ingress, jobName }) => {\n if (locations.length >= 2) {\n locations = `${locations.slice(0, -1).join(', ')} and ${locations[... | javascript | chosen |
[
{
"from": "system",
"value": "Fix unknown textDecoration style prop being passed to React Native\n"
},
{
"from": "human",
"value": "// @flow\nimport React, {Component} from 'react'\nimport {Box, Text} from './'\nimport {globalStyles, globalColors} from '../styles/style-guide'\n\nimport type {Pro... | javascript | chosen |
[
{
"from": "system",
"value": "Add logic for the application to correctly parse the query.\n"
},
{
"from": "human",
"value": "'use strict';\n\nmodule.exports = function(app) {\n app.route(\"/\").get(function(res, req) {\n req.sendFile(process.cwd() + '/public/index.html');\n });\n};\n"
},
... | javascript | chosen |
[
{
"from": "system",
"value": "fix(test-config): Change browser-name case, add browser list\n"
},
{
"from": "human",
"value": "/** \n * From where to look for files, starting with the location of this file.\n */\nbasePath = '../';\n\n/**\n * This is the list of file patterns to load into the brow... | javascript | chosen |
[
{
"from": "system",
"value": "Use run method to remove duplicate codes\n"
},
{
"from": "human",
"value": "const spawn = require('cross-spawn');\nconst script = process.argv[2];\nconst args = process.argv.slice(3);\n\nswitch (script) {\n case 'build':\n case 'start':\n case 'test': {\n cons... | javascript | chosen |
[
{
"from": "system",
"value": "Check for existence of attributes in couch view\n"
},
{
"from": "human",
"value": "function (doc) {\n if(doc.doc_type === \"DataSourceConfiguration\") {\n // TODO: Do I need to check for existence of these properties?\n // TODO: Can I get rid of dat... | javascript | chosen |
[
{
"from": "system",
"value": "Add test for leapHelperService .timeout\n"
},
{
"from": "human",
"value": "describe(\"A leapHelperService\", function() {\n beforeEach(module('angular-leap'));\n});"
},
{
"from": "gpt",
"value": "describe(\"A leapHelperService\", function() {\n bef... | javascript | chosen |
[
{
"from": "system",
"value": "Change default playlist name scheme\n"
},
{
"from": "human",
"value": "import m from 'mithril';\nimport R from 'ramda';\nimport Velocity from 'velocity-animate';\nimport Promise from 'bluebird';\nimport io from 'socket.io-client';\n\nimport { Head, Spotify } from '.... | javascript | chosen |
[
{
"from": "system",
"value": "Add job label description equal to service label description\n"
},
{
"from": "human",
"value": "const Labels = {\n type: 'object',\n title: 'Labels',\n properties: {\n items: {\n type: 'array',\n duplicable: true,\n addLabel: 'Add Label',\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix issue with node 6 where it cannot handle trailing comma\n"
},
{
"from": "human",
"value": "// Copied from https://github.com/facebook/jest/blob/master/packages/jest-config/src/utils.js\n// in order to reduce incompatible jest dependencies\n\nconst path = require... | javascript | chosen |
[
{
"from": "system",
"value": "Improve JS detection of fully populated reports\n"
},
{
"from": "human",
"value": "(function (window, $) {\n 'use strict';\n\n var $resultFields, resultFieldsLength, resultFieldsUrl, updateIntervalId;\n\n $resultFields = $(\".result-field\");\n resultFieldsLengt... | javascript | chosen |
[
{
"from": "system",
"value": "Remove unnecessary $location parameter in qr-device-interaction.\n"
},
{
"from": "human",
"value": "/*global angular*/\n(function () {\n 'use strict';\n\n angular.module('core').directive('qrDeviceInteraction', [\"$location\", function ($location) {\n v... | javascript | chosen |
[
{
"from": "system",
"value": "Add description to group mutation\n"
},
{
"from": "human",
"value": "import gql from 'graphql-tag';\n\nexport default gql`\n mutation createGroupMutation($name: String!) {\n create_group(input: { name: $name }) {\n group {\n id\n href\n }... | javascript | chosen |
[
{
"from": "system",
"value": "Refresh project on deleting a member\n"
},
{
"from": "human",
"value": "'use strict';\n\nords.controller('projectController', function ($scope, $routeParams, AuthService, Project, User, Member, growl) {\n\t\n\t//\n\t// This page doesm't make sense to view\n\t// with... | javascript | chosen |
[
{
"from": "system",
"value": "Set window hash to the input node's value for easy sharing.\n"
},
{
"from": "human",
"value": "import functionalText from \"functional-text\";\n\nwindow.addEventListener(\"DOMContentLoaded\", function () {\n let inputNode = document.querySelector(\"#input\");\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Replace URL instead of pushing the new one.\n"
},
{
"from": "human",
"value": "define([\n 'underscore',\n 'views/proto/paged-collection',\n 'views/event/box',\n 'text!templates/event-collection.html'\n], function (_, PagedCollection, EventBox, html) {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Resolve styles from the scss directory\n"
},
{
"from": "human",
"value": "var path = require('path')\n\nmodule.exports = {\n entry: {\n app: './src/main.js',\n vendors: [\n 'vue',\n 'vue-resource',\n 'vue-router',\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix changelog versioning to include date only after final release\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\n\n// Sets the release date of the current release in the changelog.\n// This is run automatically when npm version is run.\n\nconst fs = require... | javascript | chosen |
[
{
"from": "system",
"value": "Fix Wholeness of the World to be max 1 per round\n"
},
{
"from": "human",
"value": "const DrawCard = require('../../drawcard.js');\n\nclass WholenessOfTheWorld extends DrawCard {\n setupCardAbilities() {\n this.wouldInterrupt({\n title: 'Keep a ... | javascript | chosen |
[
{
"from": "system",
"value": "Remove ternary to fix linting\n"
},
{
"from": "human",
"value": "import React from 'react'\n\nimport Placeholder from '../Placeholder'\n\nimport {decrypt} from '../../utils/crypto'\n\n\nexport default class EncryptedImage extends React.PureComponent {\n state = {\n... | javascript | chosen |
[
{
"from": "system",
"value": "Convert postag to long form in morph selector\n"
},
{
"from": "human",
"value": "'use strict';\nangular.module('arethusa.table').directive('morphSelector',[\n 'state',\n 'morph',\n function (state, morph) {\n return {\n restrict: 'A',\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Use Underscore function for hasLabel\n\nEliminates the double negative, which is hopefully clearer.\n"
},
{
"from": "human",
"value": "define(['underscore'], function(_) {\n var constructor = function(data) {\n _.extend(this, data);\n };\n\n _.extend(cons... | javascript | chosen |
[
{
"from": "system",
"value": "Allow setting the templateCache exported filename\n"
},
{
"from": "human",
"value": "// CI: Angular - Template Cache.js\n// ---\n// Create a template cache for AngularJS Projects\n\nvar gulp = require(\"gulp\");\nvar gUtil = require(\"gulp-util\");\nvar templateCach... | javascript | chosen |
[
{
"from": "system",
"value": "Add logout API function in client\n\n"
},
{
"from": "human",
"value": "/**\n *\n *\n * @copyright 2017 Government of Canada\n * @license MIT\n * @author igboyes\n *\n */\n\nimport Request from \"superagent\";\n\nexport const accountAPI = {\n\n get: () => {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add comment to explain (0, eval)('this')\n"
},
{
"from": "human",
"value": "(function(undefined){\n var window = this || (0,eval)('this'), // Use global 'this'\n document = window['document'],\n navigator = window['navigator'],\n jQuery ... | javascript | chosen |
[
{
"from": "system",
"value": "Switch .attr() to .prop() for disabling form els\n\nFixes #54\nFixes #56\n"
},
{
"from": "human",
"value": "//= require admin/spree_backend\n\nSpreePaypalExpress = {\n hideSettings: function(paymentMethod) {\n if (SpreePaypalExpress.paymentMethodID && paymentMet... | javascript | chosen |
[
{
"from": "system",
"value": "Fix clicking on a category not working"
},
{
"from": "human",
"value": "angular.module('eappApp').controller('CategoryController', [\"$scope\", \"$rootScope\", \"eapp\", function ($scope, $rootScope, eapp) \n{\n $rootScope.isMainMenu = true;\n \n $scope.loa... | javascript | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.