conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Use NewWatchingPlugin for better watching performance\n" }, { "from": "human", "value": "var webpack = require('webpack');\n\nmodule.exports = {\n devtool: 'eval',\n entry: [\n 'webpack-dev-server/client?http://0.0.0.0:3000',\n 'webpack/hot/only-dev-server',...
javascript
chosen
[ { "from": "system", "value": "Fix JS string formatting incompatibility\n" }, { "from": "human", "value": "var pages = { };\n\nfunction define_on_page(name, action, init_fn) {\n pages = _.set(pages, `${name}_${action}`, init_fn);\n}\n\nfunction init_on_page(name, action) {\n var init_fn = _.get...
javascript
chosen
[ { "from": "system", "value": "Fix for submit for approval button not always showing. Ensure event lookup uses consistent uri format.\n\n\nFormer-commit-id: 4c388aa2dc9c2b167231283ce4be3f3cfb4b6d92" }, { "from": "human", "value": "function getLastEditedEvent(collection, page) {\n var pageEvents...
javascript
chosen
[ { "from": "system", "value": "Use jquery instead of ext in Directory-ViewMap component\n" }, { "from": "human", "value": "var onReady = require('kwf/on-ready-ext2');\nvar formRegistry = require('kwf/frontend-form/form-registry');\nvar gmapLoader = require('kwf/google-map/loader');\nvar gmapMap =...
javascript
chosen
[ { "from": "system", "value": "Add coversion of id column\n" }, { "from": "human", "value": "var nconf = require('nconf');\nvar conf_file = './config/config.json';\nvar dbtype = nconf.get('database:type')\n\nexports.up = function(db, Promise) {\n if (dbtype == 'mysql'){\n return Promise.al...
javascript
chosen
[ { "from": "system", "value": "Remove cap letter from generator command option" }, { "from": "human", "value": "'use strict';\n\nvar CreateTask = require('../../lib/tasks/create-cordova-project');\nvar camelize = require('../../lib/utils/string.js').camelize;\n\nmodule.exports = {\n...
javascript
chosen
[ { "from": "system", "value": "Watch also files in grunt/" }, { "from": "human", "value": "/*\n * WATCH: Run predefined tasks whenever watched file patterns are added, changed or deleted\n */\nmodule.exports = {\n options: {\n spawn: false,\n livereload: true\n },\n\n /*\n ...
javascript
chosen
[ { "from": "system", "value": "Fix typo in pipe docstring\n\nSigned-off-by: Zac Delventhal <593147d2808cd66b7e2ad59ca4b0c07d6c52cddd@gmail.com>\n" }, { "from": "human", "value": "/**\n * @callback Into\n * @param {any} operand - value to pipe into a function\n * @param {...any} [args] - additiona...
javascript
chosen
[ { "from": "system", "value": "Fix the bug of check password mismatch failed\n" }, { "from": "human", "value": "var logger = require('log4js').getLogger('vaildMessage');\n\nvar nconf = require('nconf');\nnconf.file('bots', __dirname + '/../config/bots.json')\n .file('receviers', __dirname + '...
javascript
chosen
[ { "from": "system", "value": "Fix sidebar start position considering navbar margin-bottom\n" }, { "from": "human", "value": "window.onload = function() {\n var headHeight = $(\"nav\").height();\n var mainHeight = $(\"main\").height();\n var sideHeight = $(\"#sidebar\").height();\n var footH...
javascript
chosen
[ { "from": "system", "value": "Update finder test to instantiate finder\n" }, { "from": "human", "value": "'use strict';\nvar test = require('tape');\nvar Finder = require('../lib/finder');\nvar finder = new Finder();\n\ntest('Finder', function(t) {\n t.plan(6);\n t.ok(finder, 'exports');\n...
javascript
chosen
[ { "from": "system", "value": "Fix vw and vh units\n" }, { "from": "human", "value": "export const template = `\n<style>\n :host {\n width: .5vw;\n height: .5vh;\n margin: 0;\n padding: 0;\n display: inline-block;\n\n font-family: 'Helvetiva Neue', Ari...
javascript
chosen
[ { "from": "system", "value": "Fix since camelCase... again :-p\n" }, { "from": "human", "value": "function Conversation(config, id) {\n\tthis.config = config;\n\t//this.cache = new Cache(config.defaults);\n\tthis.api = new Api(config);\n\tthis.id = id;\n}\n\nConversation.prototype = {\n\tpartici...
javascript
chosen
[ { "from": "system", "value": "Use environment variable PGDATABASE if available\n" }, { "from": "human", "value": "'use strict'\n\nmodule.exports = {\n pg: {\n database: 'opbeans'\n }\n}\n" }, { "from": "gpt", "value": "'use strict'\n\nmodule.exports = {\n pg: {\n database: p...
javascript
chosen
[ { "from": "system", "value": "Update domain commands to new API\n" }, { "from": "human", "value": "Space.messaging.define(Space.messaging.Command, 'Todos', {\n\n CreateTodoList: {\n name: String\n },\n\n CreateTodo: {\n title: String\n },\n\n CompleteTodo: {\n todoId: Guid\n },\n\...
javascript
chosen
[ { "from": "system", "value": "Set form as dirty when removing a tag\n" }, { "from": "human", "value": "angular.module(\"umbraco\")\n.controller(\"Umbraco.PropertyEditors.TagsController\",\n function ($scope) {\n\n $scope.valueChanged = function(value) {\n $scope.model.value ...
javascript
chosen
[ { "from": "system", "value": "Add className to Title component\n" }, { "from": "human", "value": "import cn from 'classnames'\nimport React from 'react'\nimport styles from './Text.css'\n\nexport function Caption ({ children }) {\n return (\n <div className={styles.caption}>\n {children...
javascript
chosen
[ { "from": "system", "value": "Implement \"write GitHub status\" stream\n" }, { "from": "human", "value": "import Bacon from 'baconjs'\nimport colors from 'colors'\n\nlet debug = require('debug')('tutum-tagger')\n\nexport default function writeGitHubStatus(event) {\n return Bacon.once(event)\n}\...
javascript
chosen
[ { "from": "system", "value": "Introduce a variable for readability\n\nhttps://trello.com/c/caDndyIX\n" }, { "from": "human", "value": "(function(Modules) {\n \"use strict\";\n\n Modules.CheckboxToggle = function() {\n\n var that = this;\n\n that.start = function(element) {\n element...
javascript
chosen
[ { "from": "system", "value": "Make config class a little more robust.\n" }, { "from": "human", "value": "export default class Config {\n\n\tstatic options = {};\n\n\tstatic init(options) {\n\t\tConfig.options = options;\n\t}\n\n\tstatic get(key, fallback = null) {\n\t\treturn Config.options[key]...
javascript
chosen
[ { "from": "system", "value": "Add watchdog for Server commands\n" }, { "from": "human", "value": "window.AudioContext = window.AudioContext || window.webkitAudioContext;\n\nvar DEBUG = true;\n\nif (!DEBUG) {\n console.log = function() {\n\n }\n console.info = function() {\n\n }\n ...
javascript
chosen
[ { "from": "system", "value": "Update tests to test for prototype mocking\n" }, { "from": "human", "value": "var assert = require('chai').assert;\nvar makeMock = require('../lib/makeMock');\n\nvar api = {\n someFunction: function() {\n },\n prototype: {\n anotherFunction: function() {\n ...
javascript
chosen
[ { "from": "system", "value": "Fix text file overflowing message below it\n" }, { "from": "human", "value": "'use strict'\n\nimport React, { useEffect, useState } from 'react'\nimport PropTypes from 'prop-types'\n\nimport Highlight from '../Highlight'\n\nimport { getFileExtension } from '../../ut...
javascript
chosen
[ { "from": "system", "value": "DIsable dimmer for question files modal\n" }, { "from": "human", "value": "import React from 'react'\nimport PropTypes from 'prop-types'\nimport { Card, Image, Modal } from 'semantic-ui-react'\n\nconst propTypes = {\n files: PropTypes.arrayOf(\n PropTypes.shape(...
javascript
chosen
[ { "from": "system", "value": "Remove unneeded .then function from reductions export data service\n" }, { "from": "human", "value": "const knex = require('../../../knex').web\nconst orgUnitFinder = require('../helpers/org-unit-finder')\n\nmodule.exports = function (id, type) {\n var orgUnit = or...
javascript
chosen
[ { "from": "system", "value": "Add fix for context data refs issue in nested components\n" }, { "from": "human", "value": "'use strict';\n\nconst _ = require('lodash');\n\nmodule.exports = function(fractal){\n\n function RenderExtension() {\n\n this.tags = ['render'];\n\n this.pa...
javascript
chosen
[ { "from": "system", "value": "Use template data context; es2015 const\n" }, { "from": "human", "value": "Template.activityTable.helpers({\n 'activities': function () {\n // Get Resident ID from router\n var residentId = Router.current().params.residentId;\n\n // Get resident activities...
javascript
chosen
[ { "from": "system", "value": "Fix for Failed propType warning\n" }, { "from": "human", "value": "import * as types from './types'\n\nconst initialState = {}\n\nexport default (state = initialState, action) => {\n switch (action.type) {\n case types.SUBMIT_GREET:\n return { ...state, loa...
javascript
chosen
[ { "from": "system", "value": "Throw an error if model factory is not found\n" }, { "from": "human", "value": "import artist from './artist'\nimport album from './album'\nimport song from './song'\nimport video from './video'\n\nconst models = { artist, album, song, video }\n\nconst factory = (mo...
javascript
chosen
[ { "from": "system", "value": "Add basic implementation for canHandle in BotStrategyBase\n" }, { "from": "human", "value": "'use strict';\n\nclass BotStrategyBase {\n\n constructor(name) {\n this.name = name;\n }\n\n getKeys() {\n this._raise('getKey');\n }\n\n getUsage() {\n this._...
javascript
chosen
[ { "from": "system", "value": "Use target instead of srcElement\n\nFixes bug in Firefox that prevents panels from being opened.\n" }, { "from": "human", "value": "define([\n 'dojo/_base/declare',\n 'dojo/on'\n], function (\n declare,\n on\n) {\n return declare([], {\n\n // p...
javascript
chosen
[ { "from": "system", "value": "Fix reloading homepage when signed in not showing dashboard\n" }, { "from": "human", "value": "/// <reference path=\"../Services/AccountService.js\" />\n/// <reference path=\"../Services/PollService.js\" />\n(function () {\n angular\n .module('GVA.Creatio...
javascript
chosen
[ { "from": "system", "value": "Use of commonjs import/export syntaxe\n" }, { "from": "human", "value": "import mongo from '../db'\nimport utils from '../utils'\nimport crypto from 'crypto'\n\n/**\n * User :: {\n * id: String,\n * username: String,\n * password: String,\n * createdAt: ...
javascript
chosen
[ { "from": "system", "value": "Set paths to be checked by jscs linter\n" }, { "from": "human", "value": "\ndescribe('Linters', function() {\n // JSCS\n require('mocha-jscs')();\n\n // ESlint\n require('mocha-eslint')([\n 'controllers',\n 'middlewares',\n 'models',\n 'tests',\n ...
javascript
chosen
[ { "from": "system", "value": "Remove promise where not needed\n" }, { "from": "human", "value": "(function(){\nvar mod = angular.module('caspy.api', ['ngResource', 'caspy.server']);\n\nmod.config(['$resourceProvider', \n function($resourceProvider) {\n $resourceProvider.defaults.stripT...
javascript
chosen
[ { "from": "system", "value": "Test de modification de squareSize non concluent\n" }, { "from": "human", "value": "(function() { \n tinymce.create('tinymce.plugins.chessPlug', { \n init : function(ed, url) { \n ed.addButton('chessBtn', { \n title : 'Chess e...
javascript
chosen
[ { "from": "system", "value": "Set service path to compiled code on local invoke\n" }, { "from": "human", "value": "'use strict';\n\nconst BbPromise = require('bluebird');\nconst path = require('path');\n\nmodule.exports = {\n makePathOptionAbsolute() {\n const originalPath = this.serverless....
javascript
chosen
[ { "from": "system", "value": "Fix test in dev environment.\n" }, { "from": "human", "value": "var EC = protractor.ExpectedConditions;\n\ndescribe('con10t page', function() {\n\n it('should display a heatmap on the grako_map page', function(done) {\n\n browser.driver.manage().window().s...
javascript
chosen
[ { "from": "system", "value": "Reset global var correctly in test teardown\n" }, { "from": "human", "value": "import Ember from 'ember';\nimport config from '../../../config/environment';\nimport { initialize } from '../../../initializers/export-application-global';\n\nvar container, application,...
javascript
chosen
[ { "from": "system", "value": "Make local functions easier to find\n" }, { "from": "human", "value": "import Ember from 'ember';\n\nexport default Ember.Component.extend({\n\n elementId: 'channel',\n newMessage: '',\n channel: null,\n\n scrollToBottom: function() {\n Ember.run.scheduleOnce...
javascript
chosen
[ { "from": "system", "value": "Fix containerFileViewer regression, did not reload on container selection.\n" }, { "from": "human", "value": "'use strict';\n\n/**\n * @ngdoc directive\n * @name dockstore.ui.directive:containerFileViewer\n * @description\n * # containerFileViewer\n */\nangular.modu...
javascript
chosen
[ { "from": "system", "value": "Update docs after building Travis build 2443 of\nregro/regolith\n\nThe docs were built from the branch 'master' against the commit\nea0dfdeab052be6e2daedb37608c2553b660b94f.\n\nThe Travis build that generated this commit is at\nhttps://app.travis-ci.com/regro/regolith/jobs/5465...
javascript
chosen
[ { "from": "system", "value": "Add debug logging to stats transform.\n" }, { "from": "human", "value": "import Transform from './Transform';\nimport Stats from '../server/Stats';\n\nexport default class StatsTransform extends Transform {\n constructor(opts, config, logger) {\n super(opts, con...
javascript
chosen
[ { "from": "system", "value": "Add test for heroku config vars\n" }, { "from": "human", "value": "var express = require('express');\nvar router = express.Router();\n\n/* GET home page. */\nrouter.get('/', function(req, res, next) {\n res.render('index', { title: 'Express' });\n});\n\nmodule.expo...
javascript
chosen
[ { "from": "system", "value": "Fix (eslint): Enable curry plugin\n" }, { "from": "human", "value": "module.exports = {\n plugins: [\n 'flowtype',\n 'import',\n 'jsx-a11y',\n 'node',\n 'prefer-object-spread',\n 'promise',\n 'react',\n ],\n extends: [\n './rules/es6',\n ...
javascript
chosen
[ { "from": "system", "value": "Add tabIndex and alt for Aria.\n" }, { "from": "human", "value": "import React from 'react';\nimport WeatherIcons from '../weather_icons/WeatherIcons'\n\nconst SevenHour = ({hourlyForecast}) => {\n if(!hourlyForecast){\n return(\n <div></div>\n )\n }\n\...
javascript
chosen
[ { "from": "system", "value": "Change to invalid keys policy.\n" }, { "from": "human", "value": "\"use strict\"\n\nvar NCMBInstallationEx = module.exports = (function() {\n\n var validKeys = [\n\t'applicationName'\n\t, 'appVersion'\n\t, 'badge'\n\t, 'channels'\n\t, 'deviceToken'\n\t, 'deviceTy...
javascript
chosen
[ { "from": "system", "value": "Check for change value before rendering\n" }, { "from": "human", "value": "var _ = require('underscore'),\n supportedModuleTypes = ['kpi', 'single_timeseries'];\n\nfunction processTimeSeries(timeSeriesData) {\n var latestDatum = timeSeriesData[0],\n secondLates...
javascript
chosen
[ { "from": "system", "value": "Whitelist works, trying status code\n" }, { "from": "human", "value": "/**\n * Created by Andrew on 11/6/2014.\n */\n\nvar bodyParser = require('body-parser');\n\n\n/**\n * POST /webhook\n * Update the repo\n */\n\n\nexports.webhook = function(req, res) {\n var j...
javascript
chosen
[ { "from": "system", "value": "Make sure we work if no vars are set in webInterface\n" }, { "from": "human", "value": "var fs = require(\"fs\");\nvar mu = require(\"mu2\");\nvar webInterface = fs.readFileSync(\"./lib/webInterface.html\");\n\nfunction webInterfaceEndpoint(req, res) {\n var stre...
javascript
chosen
[ { "from": "system", "value": "Update React-tools to support transform as object\n\nThis change adds an additional function to the exported object to support getting access to the transformed result as an object rather than just a string result - the separate function designed to maintain backwards compatibi...
javascript
chosen
[ { "from": "system", "value": "Add license and remove comment in output files\n" }, { "from": "human", "value": "var fs = require(\"fs\");\nvar path = require(\"path\");\nvar babel = require(\"babel\");\nvar uglify = require(\"uglify-js\");\n\nvar sourceDir = \"src/\";\nvar outputDir = \"js/\";\n...
javascript
chosen
[ { "from": "system", "value": "Fix Highmaps exports from Highcharts base package\n" }, { "from": "human", "value": "import { withSeriesType } from 'react-jsx-highcharts';\nexport {\n Chart,\n Credits,\n Debug,\n Loading,\n Legend,\n Series,\n Subtitle,\n Title,\n Tooltip,\n HighchartsCo...
javascript
chosen
[ { "from": "system", "value": "feat: Switch table settings button style based on user click\n\n" }, { "from": "human", "value": "import Ember from 'ember';\n\nexport default Ember.Component.extend({\n userSettings: Ember.inject.service('user-settings'),\n sortAscending: false,\n\n init () {\n ...
javascript
chosen
[ { "from": "system", "value": "IMPROVE (markdown links): Remove unused injected services.\n" }, { "from": "human", "value": "'use strict';\n\nangular.module('gisto.filter.markDown', []).filter('markDown', function ($compile, $rootScope) {\n return function (input) {\n if (typeof input =...
javascript
chosen
[ { "from": "system", "value": "Fix domain issue in management interface.\n" }, { "from": "human", "value": "(function(angular){\n \"use strict\";\n\n angular.module('app', ['ui.bootstrap', 'app-templates', 'main', 'login', 'apatsche-api'])\n .config(['apConnectionProvider', function (apConne...
javascript
chosen
[ { "from": "system", "value": "Add onExit disconnect of websockets\n" }, { "from": "human", "value": "angular.module('urlShortener', ['ui.router', 'base64', 'ngStomp'])\n\n .config(function ($stateProvider, $urlRouterProvider) {\n $stateProvider\n\n\n //starter screen\n ...
javascript
chosen
[ { "from": "system", "value": "Update npmjs.org pagination test for site changes\n" }, { "from": "human", "value": "\nvar webdriver = require('selenium-webdriver'),\n test = require('selenium-webdriver/testing'),\n helper = require('./../helper');\n\ntest.describe(\"pagination on remote ser...
javascript
chosen
[ { "from": "system", "value": "Fix `Highcharts.extend is not a function` error in the demo\n\nThis was caused because the Webpack UMD definition was overriding `window.Highchart` in the demo.\n" }, { "from": "human", "value": "module.exports = {\n entry: {\n index: './src/index.jsx',\n mor...
javascript
chosen
[ { "from": "system", "value": "Disable error log when going test environment\n" }, { "from": "human", "value": "import Express from 'express'\nimport Posts from './posts'\n\nconst router = Express.Router()\n\n// -- PLACE YOUR ROUTES HERE --\n\nrouter.get('/posts', Posts.getIndex)\n\n// --\n\nrout...
javascript
chosen
[ { "from": "system", "value": "Customize return values: format numbers by thousands\n" }, { "from": "human", "value": "\"use strict\";\n/**\n * Get count of database-wide values.\n **/\ndefine([\n \"underscore\",\n \"backbone\",\n \"app\"\n], function(_, Backbone, app) {\n\n var Globa...
javascript
chosen
[ { "from": "system", "value": "Change min supported Android Browser from v4 to v4.4\n" }, { "from": "human", "value": "module.exports = {\n browsers: [\n 'Chrome >= 49', // Exact version number here is kinda arbitrary ~ equivalent release to first version of specified Firefox ESR.\n ...
javascript
chosen
[ { "from": "system", "value": "Remove previewDocumentButton validation from form validation, because it's removed from the view\n" }, { "from": "human", "value": "'use strict'\n\nfunction init () {\n var noteContentField = document.getElementById('noteContent')\n\n validateDocumentForm()\n\n n...
javascript
chosen
[ { "from": "system", "value": "Test work of API communication\n" }, { "from": "human", "value": "(function () {\n 'use strict';\n\n angular\n .module('scrum_retroboard')\n .controller('UserController', ['$scope', '$http', 'sessionService', 'userService', UserController]);\n\n ...
javascript
chosen
[ { "from": "system", "value": "Remove unneeded reference to my-component.js from main.js.\n" }, { "from": "human", "value": "/* 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 in complia...
javascript
chosen
[ { "from": "system", "value": "Handle server side errors on broadcast\n" }, { "from": "human", "value": "var ctlMod = angular.module( \"linksWeb.controller-site\", [] );\n\n\nctlMod.controller( \"Site\", [ \"$rootScope\", function ( $rootScope ) {\n\n} ] );\n" }, { "from": "gpt", "val...
javascript
chosen
[ { "from": "system", "value": "Add the collection pagination view\n" }, { "from": "human", "value": "/*global Backbone, window*/\n//var template = require(\"../template/collection-pagination\");\n(function(NS) {\n //Filename: views/collection-pagination-view.js\n \"use strict\";\n NS = NS || {...
javascript
chosen
[ { "from": "system", "value": "Check if access-token more recent than last one\n" }, { "from": "human", "value": "module.exports = {\n tokens: ['Token-Type', 'Access-Token', 'Client', 'Uid', 'Expiry',\n 'token-type', 'access-token', 'client', 'uid', 'expiry'],\n\n request: function (...
javascript
chosen
[ { "from": "system", "value": "Make Contact details change when selecting different ones\n" }, { "from": "human", "value": "angular.module(\"yds\").controller(\"TrafficCountsController\", [\"$scope\", \"$timeout\", \"DashboardService\",\n function ($scope, $timeout, DashboardService) {\n ...
javascript
chosen
[ { "from": "system", "value": "Remove issues tab for subnets [WAL-2101]\n" }, { "from": "human", "value": "import actionConfig from './actions';\nimport breadcrumbsConfig from './breadcrumbs';\nimport openstackSubnetsService from './openstack-subnets-service';\nimport openstackSubnet from './open...
javascript
chosen
[ { "from": "system", "value": "Comment for *=1 in controller\n" }, { "from": "human", "value": "var Promise = require('bluebird');\nvar User = require('../models').User;\n\nmodule.exports = Promise.method(function getAllUsersPublic(offset, limit, desc) {\n offset*=1;\n limit*=1;\n var idOrder ...
javascript
chosen
[ { "from": "system", "value": "mirage: Add translation passthrough and locale endpoint\n" }, { "from": "human", "value": "export default function() {\n\n // These comments are here to help you get started. Feel free to delete them.\n\n /*\n Config (with defaults).\n\n Note: these only aff...
javascript
chosen
[ { "from": "system", "value": "feat: Use req.ip instead of mac\n" }, { "from": "human", "value": "var os = require('os');\nvar config = require('../lib/config');\nvar properties = require('../lib/properties');\n\nexports.getServerInfo = function getServerInfo(req) {\n\t\n\treturn {\n\t\tversion: ...
javascript
chosen
[ { "from": "system", "value": "Remove file extension from default file\n\nThis will allow it to import scss or css files.\n" }, { "from": "human", "value": "var findup = require('findup'),\n path = require('path');\n\nfunction find(dir, file, callback) {\n var name = file.split('/')[0],\n ...
javascript
chosen
[ { "from": "system", "value": "Increase timeout for docker based tests\n" }, { "from": "human", "value": "const createChromeDockerTarget = require('./docker');\n\nconst fetchStorybookFixture = async fixture => {\n const baseUrl = `file:${__dirname}/fixtures/storybook-${fixture}`;\n const target...
javascript
chosen
[ { "from": "system", "value": "Use param for provider endpoint\n" }, { "from": "human", "value": "function main (msg) {\n console.dir(msg);\n if (msg.lifecycleEvent === 'CREATE') {\n create(msg);\n } else if (msg.lifecycleEvent === 'DELETE') {\n remove(msg)\n }\n\n // return whisk.async...
javascript
chosen
[ { "from": "system", "value": "Test form submission in NewHoushold\n" }, { "from": "human", "value": "import React from 'react';\nimport { render, cleanup, fireEvent } from '@testing-library/react';\nimport { Provider } from 'react-redux';\nimport store from '../../../redux/store';\nimport NewHou...
javascript
chosen
[ { "from": "system", "value": "Add the dup bootstrap-select removal to onLoad() after others.\n" }, { "from": "human", "value": "import { onLoad } from './util';\n\nonLoad(() => {\n // This is a patch to remove duplicated dropdown selections.\n // It would be better to prevent these from being ...
javascript
chosen
[ { "from": "system", "value": "Remove sprockets reference to self since file is empty, was causing asset compilation to break\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 JavaS...
javascript
chosen
[ { "from": "system", "value": "Include path in plugin info regardless of source.\n" }, { "from": "human", "value": "var _ = require('lodash');\nvar fs = require('fs');\nvar path = require('path');\n\nmodule.exports = {\n filter: function(plugins) {\n var toLoad = [];\n _.forOwn(p...
javascript
chosen
[ { "from": "system", "value": "Change deferred object function to always()\n" }, { "from": "human", "value": "require([\n 'backbone',\n 'collections/category_collection',\n 'collections/catalog_collection',\n 'collections/enterprise_customer_collection',\n 'ecommerce',\n 'router...
javascript
chosen
[ { "from": "system", "value": "Change getToken to include basic_auth_token if no other auth token is present\n" }, { "from": "human", "value": "function getToken() {\n return window.gobiertoAPI.token\n}\n\nfunction getUserId() {\n return window.gobiertoAPI.current_user_id\n}\n\nfunction convert...
javascript
chosen
[ { "from": "system", "value": "Verify that `template` works with repeated substitutions\n" }, { "from": "human", "value": "var expect = require('chai').expect;\nvar utility = require('../utility');\n\ndescribe('template', function() {\n it('works as expected', function() {\n expect(uti...
javascript
chosen
[ { "from": "system", "value": "Fix adjacent page lookup for page preloading\n\n`AdjacentPage#nextPage` already returns a page widget\ninstance. `AdjacentPage#of` treated it like a jQuery object.\n" }, { "from": "human", "value": "pageflow.AdjacentPages = pageflow.Object.extend({\n initialize: fu...
javascript
chosen
[ { "from": "system", "value": "Allow as much writing as needed after sync switch.\n" }, { "from": "human", "value": "var Queue = require('prolific.queue')\nvar createUncaughtExceptionHandler = require('./uncaught')\nvar abend = require('abend')\n\nfunction Shuttle (input, output, sync, uncaught, ...
javascript
chosen
[ { "from": "system", "value": "Add controller for deleting stage\n" }, { "from": "human", "value": "'use strict'\n\n// let logger = require('tracer').colorConsole()\nlet registry = require('../../extensions/registry')\nlet basic = require('./basic-response-helper')\n\nmodule.exports = {\n\n setS...
javascript
chosen
[ { "from": "system", "value": "Fix collection URL. Used the wrong one testing\n" }, { "from": "human", "value": "/*jshint -W106*/\n/*global define*/\n\ndefine(['underscore', 'backbone', 'models/application-model'], function(_, Backbone, models) {\n 'use strict';\n\n var OSDCollection = Back...
javascript
chosen
[ { "from": "system", "value": "Fix - remove Saturday from Week Start dropdown\n" }, { "from": "human", "value": "import React from 'react';\nimport PropTypes from 'prop-types';\nimport { Select } from 'react-components';\nimport { c } from 'ttag';\n\nimport { SETTINGS_WEEK_START } from '../../con...
javascript
chosen
[ { "from": "system", "value": "Make test server for swift demo run on a particular port.\n" }, { "from": "human", "value": "/**\n * @license\n * Copyright 2017 The FOAM Authors. All Rights Reserved.\n * http://www.apache.org/licenses/LICENSE-2.0\n */\n\n// Enable FOAM swift support.\nglobal.FOAM_...
javascript
chosen
[ { "from": "system", "value": "Add `News` and `User` schema.\n" }, { "from": "human", "value": "const mongoose = require('mongoose')\nconst mongooseUV = require('mongoose-unique-validator')\n\nconst config = require('../config.json')\n\nconst Schema ...
javascript
chosen
[ { "from": "system", "value": "Add with credentials to downvote\n" }, { "from": "human", "value": "import request from 'superagent'\n\nmodule.exports = (dispatch, flopId) => {\n request\n .post('https://topoftheflops.herokuapp.com/api/v1/flops/vote')\n .send({\n action: \"downvote\",\...
javascript
chosen
[ { "from": "system", "value": "Clone the attribution link, which is alreaady an <a> in order to get the correct link.\n" }, { "from": "human", "value": "\"use strict\";\n\nangular.module(\"hikeio\").\n\tdirective(\"fancybox\", [\"$rootScope\", function($rootScope) {\n\t\treturn {\n\t\t\tlink: fun...
javascript
chosen
[ { "from": "system", "value": "Use the update function's time argument in the spinning example and cleanup code.\n" }, { "from": "human", "value": "var Gesso = require('gesso');\nvar fillRotatedRect = require('./helpers').fillRotatedRect;\n\n// Create the game object\nvar game = new Gesso();\n\n/...
javascript
chosen
[ { "from": "system", "value": "Fix for including assignments happening today\n" }, { "from": "human", "value": "\"use strict\";\n\nvar moment = require(\"moment\");\n\nvar activity = {};\n\nactivity.get = function(person, assignments) {\n // assuming assignments with person_id null is for everyo...
javascript
chosen
[ { "from": "system", "value": "CHANGE the refs of dev-kit example to the next branch\n" }, { "from": "human", "value": "module.exports = {\n stories: ['./stories/*.*'],\n refs: {\n ember: {\n id: 'ember',\n title: 'Ember',\n url: 'https://deploy-preview-9210--storybookjs.netli...
javascript
chosen
[ { "from": "system", "value": "Use underscore notation rather than camel case for item properties\n" }, { "from": "human", "value": "jsio('from shared.javascript import Class, bind')\n\nexports = Class(function() {\n\t\n\tthis.init = function() {\n\t\tvar allProjects = fin.getItemSet({ type: 'pro...
javascript
chosen
[ { "from": "system", "value": "Sort the regions based on scans\n\n" }, { "from": "human", "value": "import * as types from '../constants/actionTypes'\nimport initialState from './initialState'\nconst objectAssign = require('object-assign')\n\n// IMPORTANT: Note that with Redux, state should NEVER...
javascript
chosen
[ { "from": "system", "value": "Include features are now processed asynchronously\n\nTemplateFeatureInclude\n* moved from fs.readFileSync to fs.readFile\n+ added proper error calling when no file argument was found\n" }, { "from": "human", "value": "var TemplateFeature = require('./index.js'),\n\t...
javascript
chosen
[ { "from": "system", "value": "Enable source maps on the dev server\n" }, { "from": "human", "value": "const VERSION = require('./package.json').version;\nconst IS_NPM = process.env.IS_NPM;\nconst path = IS_NPM ? __dirname : __dirname + '/build/sdk';\nconst filename = IS_NPM ? 'sdk.js' : '...
javascript
chosen
[ { "from": "system", "value": "Add missing switch closing brace" }, { "from": "human", "value": "const BotModule = require('../BotModule');\n\nmodule.exports = BotModule.extend({\n initialize: function (dependencyGraph) {\n this._super(dependencyGraph);\n this.discordClient.on('m...
javascript
chosen