conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "[FIX] web: Load SystrayMenu even if a systray's deferred is rejected\n"
},
{
"from": "human",
"value": "odoo.define('web.SystrayMenu', function (require) {\n\"use strict\";\n\nvar Widget = require('web.Widget');\n\nvar SystrayMenu = Widget.extend({\n /**\n * ... | javascript | chosen |
[
{
"from": "system",
"value": "Add more elaborate regex test\n"
},
{
"from": "human",
"value": "const chordRegex = require('../chord-regex')\nconst tape = require('tape')\n\ntape('regex test', function (test) {\n test.plan(1)\n\n const myChord = \"[C]\"\n var match = chordRegex.exec(myChord)[1... | javascript | chosen |
[
{
"from": "system",
"value": "Change ruleName in at-mixin-argumentless-call-parentheses to match name of the rule\n\nat-mixin-argumentless-call-parentheses had an extra no- in its ruleName that caused the rule to fail\nwith an ignore message rather than an error.\n\nFixes #106\n"
},
{
"from": "human... | javascript | chosen |
[
{
"from": "system",
"value": "Fix bug where client didn't use proper host name\n"
},
{
"from": "human",
"value": "import React, { Component } from 'react';\nimport SocketIOClient from 'socket.io-client';\nimport logo from '../assets/logo.svg';\nimport './App.css';\n\nclass App extends Component ... | javascript | chosen |
[
{
"from": "system",
"value": "feat: Add abit of visual jazz to the gulp output\n"
},
{
"from": "human",
"value": "var fs = require('fs');\nvar path = require('path');\nvar chalk = require('chalk');\n\nvar viewsPath = path.join(process.cwd(), 'views')\nvar partialsPath = path.join(viewsPath, '_pa... | javascript | chosen |
[
{
"from": "system",
"value": "Remove hard coded experiment description. Remove done field and add status field since that is what we get from the backend.\n"
},
{
"from": "human",
"value": "export class ExperimentStep {\n constructor(title, _type) {\n this.id = '';\n this.title ... | javascript | chosen |
[
{
"from": "system",
"value": "Rewrite Changelog tests to ES2015\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar assert = require('assert');\nvar sinon = require('sinon');\n\nvar Changelog = require('../../lib/endpoints/changelog');\nvar Request = require('../../lib/request');\n\ndescribe... | javascript | chosen |
[
{
"from": "system",
"value": "Copy to examples now displays an error if it cannot find the examples repo locally.\n"
},
{
"from": "human",
"value": "var fs = require('fs-extra');\n\nvar source = './dist/phaser.js';\nvar dest = '../../phaser3-examples/public/build/dev.js';\n\nfs.copy(source, dest... | javascript | chosen |
[
{
"from": "system",
"value": "Make bot listen and respond in specified channel\n"
},
{
"from": "human",
"value": "var SlackBot = require('slackbots');\nvar config = require('./config');\n\nconsole.log(\"Read config: \" + config)\nconsole.log(config)\n\n// Initialize the bot\nvar bot = new Slack... | javascript | chosen |
[
{
"from": "system",
"value": "Make sure the demo is restarted when the user clicks on start seller/buyer demo\n"
},
{
"from": "human",
"value": "$(function() {\n\t$(\"[data-end-demo]\").click(function() {\n\t\t$.cookie('demo_state', \"disabled\");\n\t});\n\t\n\t$(\"[data-start-demo]\").click(fun... | javascript | chosen |
[
{
"from": "system",
"value": "Use ternary operator in image loader method\n"
},
{
"from": "human",
"value": "'use strict';\n\nimport $ from 'jquery';\n\nexport default class ImageLoader {\n\n constructor(dataSrcAttr) {\n this.dataSrcAttr = dataSrcAttr || 'data-preload-src';\n }\n\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Handle case where user.role is null when determining the public view status for a user\n"
},
{
"from": "human",
"value": "app.controller(\"DashboardController\", function ($controller, $scope, UserService, NoteRepo, OverallStatusFull, OverallStatusPublic, ServiceRep... | javascript | chosen |
[
{
"from": "system",
"value": "Views: Fix book status change issue\n"
},
{
"from": "human",
"value": "BookShelf.BookEdit = function(params) {\n\n return $.extend(BookShelf.BookForm(params), {\n \n save: function() {\n BookShelf.db.books.update(this.getBook());... | javascript | chosen |
[
{
"from": "system",
"value": "Copy and check version of react.\n"
},
{
"from": "human",
"value": "import fs from \"fs-extra\";\nimport fsPath from \"path\";\n\nconst packageJs = (dir) => fs.readJsonSync(fsPath.join(dir, \"package.json\"));\nconst packageVersion = (dir) => packageJs(dir).version;... | javascript | chosen |
[
{
"from": "system",
"value": "Use triple equals for argument sniffing in proxy function; this lets \"null\" clear a style on when using 2 arguments\n"
},
{
"from": "human",
"value": "// From jQuery (src/css.js)\nvar cssNumber = {\n boxFlex: true, columnCount: true, fillOpacity: true,\n fon... | javascript | chosen |
[
{
"from": "system",
"value": "Make a read-only property of the Vue proto\n"
},
{
"from": "human",
"value": "import localforage from 'localforage';\nimport Vue from 'vue'\nimport SpotifyWebApi from 'spotify-web-api-js'\n\nimport App from './App.vue'\n\nvar spotify = new SpotifyWebApi();\nVue.pro... | javascript | chosen |
[
{
"from": "system",
"value": "Remove obsolete minimize option from css-loader\n"
},
{
"from": "human",
"value": "/**\n * @file Webpack basic configuration file.\n */\n\nconst path = require('path');\nconst MiniCssExtractPlugin = require('mini-css-extract-plugin');\n\nmodule.exports = {\n entry:... | javascript | chosen |
[
{
"from": "system",
"value": "Change iwhd path for RHEV setup from NFS mount to /var/lib/iwhd.\n"
},
{
"from": "human",
"value": "[\n {\n \"name\": \"rhevm\",\n \"type\": \"fs-rhev-m\",\n \"path\": \"<%= rhevm_nfs_mount_point %>\"\n }\n]\n"
},
{
"from": "gpt",
"value": "[\... | javascript | chosen |
[
{
"from": "system",
"value": "Fix translation of French months\n\nOfficial translation of French months (followed by glibc, GNOME and\nso on). See http://fr.wikipedia.org/wiki/Mois.\n"
},
{
"from": "human",
"value": "/**\n * French translation for bootstrap-datepicker\n * Nico Mollet <nico.molle... | javascript | chosen |
[
{
"from": "system",
"value": "Fix filter for rev mode.\n"
},
{
"from": "human",
"value": "'use strict'\n\nconst flatten = require('gulp-flatten')\nconst filter = require('gulp-filter')\nconst replace = require('gulp-replace')\n\nexports.dep = ['bundle:app']\nexports.fn = function (gulp, paths, m... | javascript | chosen |
[
{
"from": "system",
"value": "Fix stage page form with select2 are duplicated when clicking back button on browser in rails 5\n"
},
{
"from": "human",
"value": "this.GobiertoAdmin.ProcessStagePagesController = (function() {\n\n function ProcessStagePagesController() {}\n\n ProcessStagePagesCon... | javascript | chosen |
[
{
"from": "system",
"value": "Add a mock page component\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport { mount, shallow } from 'enzyme';\nimport { expect } from 'chai';\nimport { project, workflow } from '../dev-classifier/mock-data';\nimport ProjectPage from './project-pa... | javascript | chosen |
[
{
"from": "system",
"value": "Add matter/clone,remove generate and status commands\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\n\n'use strict';\n\nvar pkg = require('../package.json')\nvar yargs = require('yargs');\nvar updateNotifier = require('update-notifier');\... | javascript | chosen |
[
{
"from": "system",
"value": "Remove pointless converting of arguments object to an array since alert.js doesn't seem to care that it's not really an array.\n"
},
{
"from": "human",
"value": "var EXPORTED_SYMBOLS = [\"GM_notification\"];\n\nvar Cc = Components.classes;\nvar Ci = Components.inter... | javascript | chosen |
[
{
"from": "system",
"value": "Allow all heading to be added to the nav\n"
},
{
"from": "human",
"value": "// This is a manifest file that'll be compiled into application.js, which will include all the files\n// listed below.\n//\n// Any JavaScript/Coffee file within this directory, lib/assets/ja... | javascript | chosen |
[
{
"from": "system",
"value": "Use enum both in titles and datas.\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport CSSModules from 'react-css-modules';\nimport styles from './styles.css';\nimport BidForm from '../BidForm';\n\nclass BidTable extends React.Component {\n constr... | javascript | chosen |
[
{
"from": "system",
"value": "Convert firmware version to a readable format\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar utils = require('../../lifx').utils;\n\nvar Packet = {\n size: 20\n};\n\n/**\n * Converts packet specific data from a buffer to an object\n * @param {Buffer} buf ... | javascript | chosen |
[
{
"from": "system",
"value": "Increase the timeout on the prod server to 3000ms\n"
},
{
"from": "human",
"value": "var express = require('express');\n\nvar oneYear = 86400000 * 364;\n\n// Production server with compression and caching enabled.\nvar app = express()\n .use(express.logger('dev')... | javascript | chosen |
[
{
"from": "system",
"value": "Add more file to check in test\n"
},
{
"from": "human",
"value": "var path = require('path');\nvar assert = require('yeoman-generator').assert;\nvar helpers = require('yeoman-generator').test;\n\ndescribe('app', function () {\n before(function (done) {\n helpers... | javascript | chosen |
[
{
"from": "system",
"value": "msys2-installer: Fix a comparison so only 32-bit executables are rebased\n\nSigned-off-by: Sebastian Schuberth <77397652b38ec60b50e56236b813774ce842bcdf@gmail.com>\n"
},
{
"from": "human",
"value": "function Component()\n{\n // constructor\n}\n\nComponent.prototy... | javascript | chosen |
[
{
"from": "system",
"value": "Fix error summary not getting focus\n"
},
{
"from": "human",
"value": "/* global $ */\n/* global GOVUK */\n\n// Warn about using the kit in production\nif (\n window.sessionStorage && window.sessionStorage.getItem('prototypeWarning') !== 'false' &&\n window.consol... | javascript | chosen |
[
{
"from": "system",
"value": "Remove unnecessary code from setValueForStyles\n\nClose #1734\n"
},
{
"from": "human",
"value": "/* eslint-disable */\n\n/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file... | javascript | chosen |
[
{
"from": "system",
"value": "Add assets js file for scrivito\n"
},
{
"from": "human",
"value": "// This is a manifest file that'll be compiled into application.js, which will include all the files\n// listed below.\n//\n// Any JavaScript/Coffee file within this directory, lib/assets/javascripts... | javascript | chosen |
[
{
"from": "system",
"value": "Fix broken syntax highlighting regexes\n"
},
{
"from": "human",
"value": "// This is a manifest file that'll be compiled into application.js, which will include all the files\n// listed below.\n//\n// Any JavaScript/Coffee file within this directory, lib/assets/java... | javascript | chosen |
[
{
"from": "system",
"value": "Add env files for bundle\n"
},
{
"from": "human",
"value": "module.exports = {\n\tentry: \"./app/App.jsx\",\n\toutput: {\n\t\tfilename: \"public/bundle.js\"\n\t},\n\tmodule: {\n\t\tloaders: [\n\t\t\t{\n\t\t\t\ttest: /\\.jsx?$/,\n\t\t\t\texclude: /node_modules|bower_... | javascript | chosen |
[
{
"from": "system",
"value": "Maintain a single whitespace between elements in templates\n\nRemoving all whitespace in templates can have side effects for how\nthe content is presented when it comes to inline elements, eg.\n```html\n<p>My name is <em>Fredrik</em></p>\n```\nis compiled into\n```html\n<p>My n... | javascript | chosen |
[
{
"from": "system",
"value": "Fix issue where file could not be parsed\n\n1 failing\r\n 1) eslint should have no errors in src/getCurrentYear.js:\r\n Error: Code did not pass lint rules/home/travis/build/Rabrennie/anything.js/src/getCurrentYear.js: line 5, col 14, Error - Parsing error: Unexpected toke... | javascript | chosen |
[
{
"from": "system",
"value": "Improve tests to run either the native and the emscripten endpoints\n"
},
{
"from": "human",
"value": "var fs = require('fs');\nvar ttf2woff2 = require('../src/index');\nvar assert = require('assert');\n\ndescribe('ttf2woff2', function() {\n\n it('should work', fun... | javascript | chosen |
[
{
"from": "system",
"value": "Add program modal PROGRAM_REQUISITION modal key\n"
},
{
"from": "human",
"value": "/**\n * mSupply Mobile\n * Sustainable Solutions (NZ) Ltd. 2019\n */\n\nimport { modalStrings } from '../localization';\n\nexport const MODAL_KEYS = {\n SELECT_CUSTOMER: 'selectCusto... | javascript | chosen |
[
{
"from": "system",
"value": "Remove window reference from UMD module\n"
},
{
"from": "human",
"value": "const webpack = require('webpack');\nconst path = require('path');\n\nmodule.exports = {\n\tcontext: path.resolve(__dirname, '..'),\n\tentry: {\n\t\t'easy-bits.min': './src/index.js'\n\t},\n\... | javascript | chosen |
[
{
"from": "system",
"value": "FIX - updated node URL\n"
},
{
"from": "human",
"value": "import defaults from 'defaults'\n\nconst API_GLOBAL = '_IMDIKATOR'\n\nconst env = process.env.NODE_ENV || 'development'\n\nconst DEFAULTS = {\n port: 3000,\n reduxDevTools: false\n}\n\nconst globalConfig = ... | javascript | chosen |
[
{
"from": "system",
"value": "Update ldu and region display names\n"
},
{
"from": "human",
"value": "module.exports = {\n OFFENDER_MANAGER: { name: 'offender-manager', ref: 'I', displayText: 'Offender Manager', capacityView: 'workload_owner', caseProgressView: 'individual_case_progress_view' },... | javascript | chosen |
[
{
"from": "system",
"value": "Set isFetching to true on request\n\n"
},
{
"from": "human",
"value": "import { REQUEST_TODOS, RECEIVE_TODOS } from '../actions/todos'\n\nconst todos = (state = {\n isFetching: false,\n items: []\n}, action) => {\n switch (action.type) {\n case REQUEST_TODOS:\... | javascript | chosen |
[
{
"from": "system",
"value": "Fix tooltip message for titles\n"
},
{
"from": "human",
"value": "const React = require('react');\nconst classNames = require('classnames');\nconst { BLOCKS } = require('markup-it');\n\nconst TAGS = {\n [BLOCKS.HEADING_1]: 'h1',\n [BLOCKS.HEADING_2]: 'h2',\n... | javascript | chosen |
[
{
"from": "system",
"value": "Enable line numbers on result view\n"
},
{
"from": "human",
"value": "var LanguageMap = {\n \"crystal\": \"ruby\",\n \"gcc\": \"c++\"\n};\n\nexport default Ember.Component.extend({\n highlightLanguage: function() {\n return LanguageMap[this.get('language')] ||... | javascript | chosen |
[
{
"from": "system",
"value": "Fix cards not getting shuffled\n"
},
{
"from": "human",
"value": "var _ = require('underscore');\n\nvar cards = require('./cards.js');\n\nfunction CardPool(collection) {\n\tthis.answerCards = cards.getAnswerCards(collection);\n\tthis.answerCardIndex = 0;\n\tthis.que... | javascript | chosen |
[
{
"from": "system",
"value": "Remove example route. Clean up noise\n"
},
{
"from": "human",
"value": "/*****************************************************************************/\n/* Client and Server Routes */\n/*****************************************************************************/\n... | javascript | chosen |
[
{
"from": "system",
"value": "Set stroke width to 0\n"
},
{
"from": "human",
"value": "function WorldView(world, paper) {\n this.world = world;\n this.paper = paper;\n this.cellSize = 16;\n\n this.world.observe(this);\n}\n\nWorldView.prototype.paintLiveCell = function(cell) {\n this.paintCel... | javascript | chosen |
[
{
"from": "system",
"value": "Use fieldName while building query\n"
},
{
"from": "human",
"value": "var Appbase = require('appbase-js');\n\nmodule.exports = {\n\tgetRequestObject: function (type, venue) {\n\t\treturn ({\n\t\t\ttype: type,\n\t\t\tbody: {\n\t\t\t\t\"size\": 1000,\n\t\t\t\t\"query\... | javascript | chosen |
[
{
"from": "system",
"value": "Add template for google cloud api keys\n"
},
{
"from": "human",
"value": "module.exports = {\n facebook: {\n appID: 'FACEBOOK_APP_ID',\n appSecret: 'FACEBOOK_APP_SECRET',\n callbackUrl: 'http://localhost:3000/auth/facebook/callback',\n profileFields: ['... | javascript | chosen |
[
{
"from": "system",
"value": "ADD missing callback trigger in syncWithServer()\n"
},
{
"from": "human",
"value": "define([], function() {\n /**\n * @description Methods related to SocketIO.\n */\n var Module = {\n /**\n * @description Invoke this helper on the server once it's ready... | javascript | chosen |
[
{
"from": "system",
"value": "Handle the case where JSLint complains about arguments in try/catch already being defined (we use the name 'e' consistently for catch(e) - will work to standardize on that now).\n"
},
{
"from": "human",
"value": "load(\"build/jslint.js\");\n\nvar src = readFile(\"di... | javascript | chosen |
[
{
"from": "system",
"value": "Add instructions column to call assignments.\n"
},
{
"from": "human",
"value": "\nexports.up = function(knex, Promise) {\n return knex.schema.table('bsd_calls', function(table) {\n table.boolean('completed')\n })\n};\n\nexports.down = function(knex, Promise) {\... | javascript | chosen |
[
{
"from": "system",
"value": "Put a semicolon before the function.\n"
},
{
"from": "human",
"value": "(function(google) {\n 'use strict';\n\n google.load('search', '1', {\n language: 'en',\n nocss: true\n });\n\n google.setOnLoadCallback(function() {\n var cx = '00085082433566051894... | javascript | chosen |
[
{
"from": "system",
"value": "Use once binding to avoid endless 2-way disconnects\n"
},
{
"from": "human",
"value": "var io = require('socket.io').listen(parseInt(process.env.PORT)),\n twitter = require('ntwitter')\n\nio.set(\"origins\", process.env.ALLOWED_ORIGINS)\nio.set(\"log level\", 2)\... | javascript | chosen |
[
{
"from": "system",
"value": "Fix the bootstrap js path\n"
},
{
"from": "human",
"value": "const minimist = require(\"minimist\");\nconst options = minimist(process.argv.slice(2));\nconst isProduction = options.env === 'production';\n\nconfig = {\n console_options: options,\n isProduction:... | javascript | chosen |
[
{
"from": "system",
"value": "Fix hound code style issues\n"
},
{
"from": "human",
"value": "'use strict';\n\nimport chai from 'chai';\nimport {ObjectVector} from '../../lib.compiled/Generic/ObjectVector';\n\nsuite('Generic/ObjectVector', function() {\n var testProto = () => {\n return 'test... | javascript | chosen |
[
{
"from": "system",
"value": "Add missing href to mailto Javascript function\n"
},
{
"from": "human",
"value": "//= require jquery\n//= require jquery_ujs\n//= require turbolinks\n//= require_tree .\n//= require bootstrap-sprockets\n\n$(document).ready(function(){\n\n\t$('.contact-artist').click... | javascript | chosen |
[
{
"from": "system",
"value": "Remove duplicated js include for select2\n"
},
{
"from": "human",
"value": "//= require jquery\n//= require jquery_ujs\n//= require twitter/bootstrap\n//= require lodash\n//= require handlebars.runtime\n\n// Use to search for models (e.g. users) dynamically.\n//= re... | javascript | chosen |
[
{
"from": "system",
"value": "Adjust User Model by removing unused fields createdSpots and savedSpots\n"
},
{
"from": "human",
"value": "const mongoose = require('mongoose');\nconst Schema = mongoose.Schema\n\n\nvar userSchema = new Schema({\n name: {type: String, required: true},\n photo:... | javascript | chosen |
[
{
"from": "system",
"value": "Add test to launch an overlay\n\ngit-svn-id: 3a56fcae908c7e16d23cb53443ea4795ac387cf2@894 0e6d7f2b-9903-5b78-7403-59d27f066143\n"
},
{
"from": "human",
"value": "// Copyright (c) 2013 The Chromium Authors. All rights reserved.\n// Use of this source code is governed... | javascript | chosen |
[
{
"from": "system",
"value": "Handle case where CoreAndroid.show is called without success callback\n"
},
{
"from": "human",
"value": "// Copyright (c) Microsoft Corporation. All rights reserved.\n\nmodule.exports = {\n 'CoreAndroid': {\n 'show': function (success, fail, service, actio... | javascript | chosen |
[
{
"from": "system",
"value": "Use this rather than parameter in isOneOfFieldSet()\n"
},
{
"from": "human",
"value": "'use strict';\n\n/**\n * Helpers services. A collection of services to be used throughout the application.\n */\nmodule.exports = {\n\n isOneOfFieldSet(submission) {\n return ... | javascript | chosen |
[
{
"from": "system",
"value": "Allow spaces in path for project create\n"
},
{
"from": "human",
"value": "var ProjectList,\n Project = require(\"../models/project\"),\n server = require(\"../server\"),\n storage = require(\"../storage\");\n\nProjectList = Backbone.Collection.extend({\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Exclude examples code from unit test coverage metrics for now\n"
},
{
"from": "human",
"value": "module.exports = {\n moduleNameMapper: {\n \"\\\\.scss$\": \"<rootDir>/tests/styleMock.js\",\n },\n testPathIgnorePatterns: [\"/node_modules/\", \"/dist/\", \"/es/... | javascript | chosen |
[
{
"from": "system",
"value": "Fix race condition with Select2\n"
},
{
"from": "human",
"value": "/**\n * Register TagField functions with fields.\n */\n(function ($) {\n\n\t/*\n\t * The multiple-select plugin (Chosen) applies itself to everything!\n\t * We have to remove it before selectively ap... | javascript | chosen |
[
{
"from": "system",
"value": "Add ; - line 13"
},
{
"from": "human",
"value": " \nvar queryBlockChain = function(e) {\n\nvar blockChainUrl = \" https://blockchain.info/address/\";\n\nif (e.selectionText) {\n\tblockChainUrl += e.selectionText;\t\n\t}\n\n chrome.tabs.create(\n {\"url\" ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix file path in coverage reports\n"
},
{
"from": "human",
"value": "/* globals blanket, module */\r\n\r\nvar options = {\r\n modulePrefix: 'ember-g-map',\r\n filter: '//.*ember-g-map/.*/',\r\n antifilter: '//.*(tests|template).*/',\r\n loaderExclusions: [],\r\n... | javascript | chosen |
[
{
"from": "system",
"value": "Add missing font awesome icons for the datetime picker\n"
},
{
"from": "human",
"value": "var coupon = function () {\n var durationSelector = '#duration';\n\n var $body = $('body');\n var $duration = $(durationSelector);\n var $durationInMonths = $('#dur... | javascript | chosen |
[
{
"from": "system",
"value": "Move signup form before login for responsive screens\n"
},
{
"from": "human",
"value": "import React, { Component } from 'react';\nimport SignupForm from './SignupForm';\nimport LoginForm from '../common/LoginForm';\n\nclass Intro extends Component {\n render() {... | javascript | chosen |
[
{
"from": "system",
"value": "Rename internal variable to avoid compiler conflict\n"
},
{
"from": "human",
"value": "function function_exists (function_name) {\n // http://kevin.vanzonneveld.net\n // + original by: Kevin van Zonneveld (http://kevin.vanzonneveld.net)\n // + improved ... | javascript | chosen |
[
{
"from": "system",
"value": "Add a hack to ensure mocha waits for page to load\n"
},
{
"from": "human",
"value": "if (!(typeof MochaWeb === 'undefined')){\n MochaWeb.testOnly(function () {\n describe('The Route \"/\"', function () {\n it('Should have the title \"map\"', function () {\n... | javascript | chosen |
[
{
"from": "system",
"value": "Add comment for HTML string\n"
},
{
"from": "human",
"value": "import { createButton } from './Button';\n\nexport default {\n title: 'Example/Button',\n argTypes: {\n label: { control: 'text' },\n primary: { control: 'boolean' },\n backgroundColor: { cont... | javascript | chosen |
[
{
"from": "system",
"value": "Rename the configuration task to services.\n"
},
{
"from": "human",
"value": "import del from 'del';\nimport path from 'path';\nimport gulp from 'gulp';\nimport eslint from 'gulp-eslint';\nimport babel from 'gulp-babel';\nimport writeFile from './build/write-file';\... | javascript | chosen |
[
{
"from": "system",
"value": "Move jshint and jscs into default build pipeline\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar gulp = require('gulp'),\n batch = require('gulp-batch'),\n concat = require('gulp-concat'),\n ignore = require('gulp-ignore'),\n jshint = require('gulp-jshi... | javascript | chosen |
[
{
"from": "system",
"value": "Add bidirectional toggle to storybook\n\ncloses OUT-4253\n\nflag=none\n\nTest-plan: - Find bidirectional toggle, ensure rtl / ltr function as\n expected\nChange-Id: I15d61906f7ff2f8202b5bac51418ec9fa56b3c20\nReviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/258581\nT... | javascript | chosen |
[
{
"from": "system",
"value": "Fix an issue with children missing\n"
},
{
"from": "human",
"value": "var isFunction = require('lodash.isfunction');\nvar joi = require('joi');\nvar pc = require('pascal-case');\n\n/* Public */\n\nfunction attach(schema) {\n var attachments = {};\n\n schema && sch... | javascript | chosen |
[
{
"from": "system",
"value": "Clean up old panelShowing code\n"
},
{
"from": "human",
"value": "import React, {Component} from 'react'\nimport {Provider} from 'react-redux'\nimport Nav from '../shared/nav.desktop'\nimport RemoteManager from './remote-manager'\nimport {MuiThemeProvider} from 'mat... | javascript | chosen |
[
{
"from": "system",
"value": "Make table prop columns an array of column objects\n"
},
{
"from": "human",
"value": "import React, { Component } from 'react'\nimport PropTypes from 'prop-types'\nimport TableRow from './TableRow/index.js'\nimport Button from '../../Components/Button/index.js'\n\ne... | javascript | chosen |
[
{
"from": "system",
"value": "Use icons directory for including icons with ss\n"
},
{
"from": "human",
"value": "module.exports = function(gulp, speck) {\n return gulp.task('assets:iconify', ['assets:optimise_images'], function() {\n var iconify = require('gulp-iconify');\n\n iconify({\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Support for stories without owners.\n"
},
{
"from": "human",
"value": "var _ = require('lodash');\n\nexports.printSeparator = function (s) {\n console.log((new Array(51)).join(s || \"-\"));\n};\n\nexports.printObject = function (object, indent) {\n function pa... | javascript | chosen |
[
{
"from": "system",
"value": "fix(MapProperty): Add MapProperty into the generated file\n"
},
{
"from": "human",
"value": "import CellProperty from './CellProperty';\nimport CheckboxProperty from './CheckboxProperty';\nimport EnumProperty from './EnumProperty';\nimport PropertyFactory from './Pr... | javascript | chosen |
[
{
"from": "system",
"value": "Set \"{ecmaVersion: 6}\" for falafel's acorn\n"
},
{
"from": "human",
"value": "var falafel = require('falafel');\nmodule.exports = replace;\n\nfunction replace (src, deps) {\n return falafel(src, function (node) {\n if (isRequire(node)) {\n var... | javascript | chosen |
[
{
"from": "system",
"value": "Fix the deletion of sector objects\n"
},
{
"from": "human",
"value": "const functions = require('firebase-functions');\nconst admin = require('firebase-admin');\n\nconst BATCH_SIZE = 500;\nconst deleteBatch = (query, resolve, reject) =>\n query\n .limit(BATCH_SI... | javascript | chosen |
[
{
"from": "system",
"value": "Update `addon-jest` to new propType\n\nFixes #4251."
},
{
"from": "human",
"value": "import React from 'react';\nimport addons from '@storybook/addons';\n\nimport PanelTitle from './components/PanelTitle';\nimport Panel from './components/Panel';\n\naddons.register(... | javascript | chosen |
[
{
"from": "system",
"value": "Check if directory already exists sending request\n"
},
{
"from": "human",
"value": "import {\n GET_DEFAULT_DIRECTORIES_REQUEST, GET_DEFAULT_DIRECTORIES_FAILURE, GET_DEFAULT_DIRECTORIES_SUCCESS,\n LOAD_DIRECTORY_REQUEST, LOAD_DIRECTORY_SUCCESS, LOAD_DIRECTORY_FAIL... | javascript | chosen |
[
{
"from": "system",
"value": "Add some kind of nav\n"
},
{
"from": "human",
"value": "\"use strict\";\n\nvar m = require(\"mithril\"),\n db = require(\"../lib/firebase\");\n\nmodule.exports = {\n controller : function() {\n\n },\n\n view : function() {\n return m(\"h1\", \"HO... | javascript | chosen |
[
{
"from": "system",
"value": "Add tests for relative path\n"
},
{
"from": "human",
"value": "describe('Filter: path', function () {\n\n beforeEach(module('ngNephila.filters.path'));\n\n var pathFilter;\n beforeEach(inject(function($filter) {\n pathFilter = $filter('path');\n }));\n\n it(... | javascript | chosen |
[
{
"from": "system",
"value": ":bug: Remove parameter left over from version of common terms search\n"
},
{
"from": "human",
"value": "function build(searchTerm) {\n return {\n index: 'profiles',\n type: 'gps',\n body: {\n size: 30,\n query: {\n bool: {\n shoul... | javascript | chosen |
[
{
"from": "system",
"value": "Remove editProvenance and replace with ui-sref.\n"
},
{
"from": "human",
"value": "(function (module) {\n module.controller('projectViewProcess', projectViewProcess);\n projectViewProcess.$inject = [\"$state\", \"process\"];\n\n function projectViewProcess(... | javascript | chosen |
[
{
"from": "system",
"value": "Fix get route object with user for permission\n"
},
{
"from": "human",
"value": "import fp from 'mostly-func';\n\nconst defaultOptions = {\n field: 'primary',\n select: '*'\n};\n\n/**\n * Add route service object to hook.params\n */\nexport default function addRou... | javascript | chosen |
[
{
"from": "system",
"value": "Add CSRF token to JS POST header\n"
},
{
"from": "human",
"value": "$(function () {\n $('#single').submit(function (event) {\n event.preventDefault();\n $(':submit').button('loading')\n $.post('/thread', {\n submission: $('input[na... | javascript | chosen |
[
{
"from": "system",
"value": "Change Person.name to firstname and lastname\n"
},
{
"from": "human",
"value": "/**\n * Sample project code\n */\n\n\nclass Person {\n constructor () {\n this.name = \"annonymous\"\n this.age = 20\n }\n\n hello () {\n return `Hello! I'm ${ this.name }! I... | javascript | chosen |
[
{
"from": "system",
"value": "Change mentor to mentorBio to fix bug\n"
},
{
"from": "human",
"value": "app.factory('BioFactory', ['$http', function($http){\n console.log('BioFactory running');\n\n var mentorInfo = {};\n var mentors = {};\n var mentor = {};\n\n\n function getMentors(newSearc... | javascript | chosen |
[
{
"from": "system",
"value": "Fix error in define call\n"
},
{
"from": "human",
"value": "define([\n '../jquery/autosubmit'\n], function(require) {\n var autosubmit = {\n initContent: function(root) {\n $(\"[data-autosubmit]\", root)\n .find(\"input[type-se... | javascript | chosen |
[
{
"from": "system",
"value": "Support all arguments of OAuth._redirectUri\n"
},
{
"from": "human",
"value": "Package.describe({\n summary: \"Facebook OAuth flow\",\n version: \"1.7.1\"\n});\n\nPackage.onUse(api => {\n api.versionsFrom('1.11.1');\n\n api.use('ecmascript', ['client', 'server']... | javascript | chosen |
[
{
"from": "system",
"value": "Change order of test declarations\n"
},
{
"from": "human",
"value": "module.exports = function( grunt ) {\n \"use strict\";\n\n grunt.initConfig({\n bump: {\n options: {\n files: [ \"package.json\" ],\n\n // Comm... | javascript | chosen |
[
{
"from": "system",
"value": "Remove check from test task.\n"
},
{
"from": "human",
"value": "module.exports = function(grunt) {\n grunt.initConfig({\n pkg: grunt.file.readJSON('package.json'),\n products: {\n 'argos-saleslogix': {\n basePath: '.'\n ... | javascript | chosen |
[
{
"from": "system",
"value": "(config): Fix error from importing css from node_modules\n"
},
{
"from": "human",
"value": "module.exports = [\n\t{\n\t\ttest: /\\.jsx?$/,\n\t\texclude: /node_modules/,\n\t\tloader: 'babel',\n\t},\n {\n test: /\\.scss$/,\n exclude: /node_modules/,\n... | javascript | chosen |
[
{
"from": "system",
"value": "Fix race condition that prevented session from being marked as complete\n\nEmber actions are fire and forget (unless using closure actions + return values).\n\n So when the frame next/save action happened, it had the effect of saving the frame payload before the flag got set. T... | javascript | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.