conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Remove IntercomService from application card status\n" }, { "from": "human", "value": ";(function() {\n 'use strict';\nangular\n .module('cpZenPlatform')\n .component('cdApplicationCardStatus', {\n bindings: {\n id: '<leadId',\n date: '<',\...
javascript
chosen
[ { "from": "system", "value": "Correct font format terminology; PostScript (a.k.a. Type 1) is a different thing.\n" }, { "from": "human", "value": "'use strict';\n\nvar assert = require('assert');\nvar mocha = require('mocha');\nvar describe = mocha.describe;\nvar it = mocha.it;\nvar opentype = r...
javascript
chosen
[ { "from": "system", "value": "presence: Drop any presence events with invalid data.\n" }, { "from": "human", "value": "/* @flow strict-local */\nimport type { PresenceState, Action } from '../types';\nimport {\n LOGOUT,\n LOGIN_SUCCESS,\n ACCOUNT_SWITCH,\n EVENT_PRESENCE,\n PRESENCE_RESPONS...
javascript
chosen
[ { "from": "system", "value": "Add _setPreventDefaultKeyCodes() and input element\n" }, { "from": "human", "value": "enchant.TextField = enchant.Class.create(enchant.Group, {\n initialize: function(width, height) {\n enchant.Group.call(this);\n\n this.width = width;\n this.height = heig...
javascript
chosen
[ { "from": "system", "value": "Reduce array length for easier inspection\n" }, { "from": "human", "value": "'use strict';\n\nvar round = require( '@stdlib/math/base/special/round' );\nvar randu = require( '@stdlib/math/base/random/randu' );\nvar daxpy = require( './../lib' ).wasm();\n\nvar xbytes...
javascript
chosen
[ { "from": "system", "value": "Fix `defaultMessage` in translations example\n" }, { "from": "human", "value": "import React, {Component, PropTypes} from 'react';\nimport {FormattedMessage, FormattedNumber, FormattedRelative} from 'react-intl';\n\nclass Greeting extends Component {\n render() {...
javascript
chosen
[ { "from": "system", "value": "Update edited paragraph into the database\n" }, { "from": "human", "value": "/*****************************************************************************/\n/* ParagraphsEdit: Event Handlers and Helpersss .js*/\n/****************************************************...
javascript
chosen
[ { "from": "system", "value": "Rename Message Container.message to Container.messageRegistryMap\n" }, { "from": "human", "value": "\"use strict\";\n\nconst TagPair = require('../../theme/renderable/tagPair');\nconst Registry = require('../../../util/registry');\nconst merge = require('../../../ut...
javascript
chosen
[ { "from": "system", "value": "Fix discussion in modal from tabular\n" }, { "from": "human", "value": "import { Projects } from '../../../../lib/collections/projects.js';\n\n/*****************************************************************************/\n/* DiscussionButtons: Event Handlers */\n/...
javascript
chosen
[ { "from": "system", "value": "[Glitch] Fix style of legacy column headers\n\nBackports daefbd66a653b11a17be73b7b0a4ca200b466cec\n" }, { "from": "human", "value": "import React from 'react';\nimport PropTypes from 'prop-types';\n\nexport default class ColumnHeader extends React.PureComponent {\n\...
javascript
chosen
[ { "from": "system", "value": "Refactor code using ES6 syntax\n" }, { "from": "human", "value": "import gulp from 'gulp';\nimport babel from 'gulp-babel';\nimport nodemon from 'gulp-nodemon';\nimport mocha from 'gulp-mocha';\nimport istanbul from 'gulp-babel-istanbul';\nimport injectModules from ...
javascript
chosen
[ { "from": "system", "value": "Fix output path for bundle.js\n" }, { "from": "human", "value": "const config = require('./config');\nconst path = require('path');\n// transpile mapbox-gl utils imported by react-map-gl@2\n// these files are ES6 and break UglifyJS\nconfig.module.rules.push({\n tes...
javascript
chosen
[ { "from": "system", "value": "Add note on TODO for handling quotes via API\n" }, { "from": "human", "value": "import React, { Component } from 'react';\nimport Promise from 'bluebird';\nimport FontAwesome from 'react-fontawesome';\nimport quotes from './quotes.json';\nimport styles from './jumbo...
javascript
chosen
[ { "from": "system", "value": "frontend/tests: Clean up AWS Credentials page tests and add assertions\n" }, { "from": "human", "value": "const awsCredentialsPageCommands = {\n enterAwsCredentials(region) {\n const regionOption = `select#awsRegion option[value=${region}]`;\n return this\n ...
javascript
chosen
[ { "from": "system", "value": "Fix return type and add decimal points\n" }, { "from": "human", "value": "'use strict';\n\n// MODULES //\n\nvar isnan = require( '@stdlib/math/base/utils/is-nan' );\nvar NINF = require( '@stdlib/math/constants/float64-ninf' );\n\n\n// MAIN //\n\n/**\n* Evaluates the...
javascript
chosen
[ { "from": "system", "value": "Fix log not saving on pause\n" }, { "from": "human", "value": "import Liker from './content/liker';\nimport OptionManager from './utils/option-manager';\nimport Debug from './content/debug';\n\nconst debug = new Debug();\n\n(async function () {\n try {\n debug.l...
javascript
chosen
[ { "from": "system", "value": "Fix codename of Echidna-flavoured WG Note profile\n" }, { "from": "human", "value": "\nexports.name = \"WG Note-Echidna\";\nexports.config = require(\"./WG-NOTE\").config;\n\nvar base = require(\"./base\");\nexports.rules = base.insertAfter(\n require(\"./WD\...
javascript
chosen
[ { "from": "system", "value": "Disable parallelism, caching for terser\n" }, { "from": "human", "value": "// @ts-check\n\nconst path = require(\"path\")\nconst WebpackManifestPlugin = require(\"webpack-manifest-plugin\")\nconst { HashedModuleIdsPlugin } = require(\"webpack\")\nconst { getCSSManif...
javascript
chosen
[ { "from": "system", "value": "Replace useState by useReducer in DataFetcher\n" }, { "from": "human", "value": "import * as React from 'react';\nimport PropTypes from 'prop-types';\n\nconst DataFetcher = ({children, getData, parameters}) => {\n const [isLoading, setIsLoading] = React.useState(...
javascript
chosen
[ { "from": "system", "value": "Fix test for dateTime inequality over time\n" }, { "from": "human", "value": "import * as slimdom from 'slimdom';\n\nimport {\n\tevaluateXPathToBoolean,\n\tevaluateXPathToString\n} from 'fontoxpath';\n\nlet documentNode;\nbeforeEach(() => {\n\tdocumentNode = new sli...
javascript
chosen
[ { "from": "system", "value": "Use \"Custom\" as default recipient label\n" }, { "from": "human", "value": "Ext.define('SlateAdmin.model.person.progress.NoteRecipient', {\n extend: 'Ext.data.Model',\n\n\n groupField: 'RelationshipGroup',\n\n fields: [\n {\n name: 'Perso...
javascript
chosen
[ { "from": "system", "value": "Change alert() -> console.log() for metrics load errors.\n" }, { "from": "human", "value": "angular.module(\"Prometheus.services\").factory('MetricNamesQuerier', [\"$http\", function($http) {\n var metricNamesCache = {};\n\n return function(server_id, url, scope) ...
javascript
chosen
[ { "from": "system", "value": "Add proper, tested support for Overcast.fm.\n" }, { "from": "human", "value": "// not tested (account is needed)\n\nkeySocket.init(\n \"overcast.fm\",\n {\n \"play-pause\": function () {\n if (!player.paused) {\n player.pause()...
javascript
chosen
[ { "from": "system", "value": "Fix test to pass build\n" }, { "from": "human", "value": "import React from 'react';\nimport * as Datetime from 'react-datetime';\n\nexport const TimePicker = ({ onChange }) => (\n <Datetime timeFormat={'HH:mm'} dateFormat={false} defaultValue={new Date()} onChan...
javascript
chosen
[ { "from": "system", "value": "Fix open in new window URL\n" }, { "from": "human", "value": "import React from 'react'\nimport { NavLink } from 'react-router-dom'\nimport EditTools from './EditTools'\nimport PreviewTools from './PreviewTools'\n\nimport styles from './Toolbar.styl'\n\nexport defau...
javascript
chosen
[ { "from": "system", "value": "Add confirm before ending queue\n" }, { "from": "human", "value": "import { Template } from 'meteor/templating';\n\nimport { openQueue, cutoffQueue, endQueue } from '/imports/api/queues/methods.js';\n\nimport './queue-status-dropdown.html';\n\nTemplate.QueueStatusDr...
javascript
chosen
[ { "from": "system", "value": "Fix bug when UITour-lib.js loads after homepage-bundle.js\n\nThe UITour-lib.js library is loaded async, and the homepage-bundle can potentially load and run before it (we saw this in Sentry). This puts in a 1 second retry when that happens.\n" }, { "from": "human", ...
javascript
chosen
[ { "from": "system", "value": "Add fallback to api-usage example\n" }, { "from": "human", "value": "import React from 'react'\nimport ReactDOM from 'react-dom'\nimport ReactSVG from 'react-svg'\n\nReactDOM.render(\n <ReactSVG\n // Required props.\n src=\"svg.svg\"\n // Optional props.\n...
javascript
chosen
[ { "from": "system", "value": "Fix scenario rendering when no param matched.\n" }, { "from": "human", "value": "(function($){\n var SEL = {\n list : \"neo-rails-scenarios-list\",\n open : \"neo-rails-scenarios-list-open\"\n };\n\n var url_param = function(name){\n var results = new Re...
javascript
chosen
[ { "from": "system", "value": "Create should return conference instead of $http response\n" }, { "from": "human", "value": "'use strict';\n\nangular.module('confRegistrationWebApp')\n .service('ConfCache', function ConfCache($cacheFactory, $rootScope, $http, $q) {\n var cache = $cacheFactory(...
javascript
chosen
[ { "from": "system", "value": "Append scripts to the load page\n" }, { "from": "human", "value": "var webdriver = require('selenium-webdriver');\n\nfunction loadAssets (driver) {\n var s = '';\n s += 'var s = document.createElement(\"script\");';\n s += 's.type = \"text/javascript\";'\n s += ...
javascript
chosen
[ { "from": "system", "value": ":new: Add a unique property that's same on class and jsx elements\n" }, { "from": "human", "value": "/* @flow */\n\nexport default function() {\n return {\n visitor: {\n ClassExpression(path: Object, state: Object) {\n if (!path.node.decorators || !p...
javascript
chosen
[ { "from": "system", "value": "Fix typo in fetchRender example\n" }, { "from": "human", "value": "\"use strict\";\n\napp.Router = Backbone.Router.extend({\n routes: {\n \"\": \"default\"\n },\n\n // default route\n default: function() {\n var view = new app.AppView({ model: new app.AppM...
javascript
chosen
[ { "from": "system", "value": "Allow skipping notarization when building package\n\nChange-type: patch\nChangelog-entry: Allow skipping notarization when building package (dev)\nSigned-off-by: Lorenzo Alberto Maria Ambrosi <85d02d3d73c7f11f17a7802a45c32c7e0695e46d@gmail.com>\n" }, { "from": "human", ...
javascript
chosen
[ { "from": "system", "value": "Test that typo in sources break the CI build\n" }, { "from": "human", "value": "(function() {\n 'use strict';\n\n angular\n .module('afterHeap')\n .config(routerConfig);\n\n /** @ngInject */\n function routerConfig($stateProvider, $urlRouterProvider) {\n ...
javascript
chosen
[ { "from": "system", "value": "Update copy and formatting for referral info\n" }, { "from": "human", "value": "import React, { Component } from 'react';\n\nexport default class ReferralInfo extends Component {\n render() {\n return (\n <div className=\"row text-center\">\n <div cl...
javascript
chosen
[ { "from": "system", "value": "Set card to 'disabled' if player isn't 'active'\n" }, { "from": "human", "value": "export default class CardController {\n\tconstructor($rootScope, $scope, $log, _, playerModel, cardsApi) {\n\t\t'ngInject';\n\n\t\tthis.$rootScope = $rootScope;\n\t\tthis.$scope = $sc...
javascript
chosen
[ { "from": "system", "value": "Add integration test via docker\n" }, { "from": "human", "value": "'use strict';\n\n/*jslint nomen: true, stupid: true*/\n\nmodule.exports = function (grunt) {\n grunt.registerTask('integration-test', 'Run integration tests', [\n 'docker-integration-test'\...
javascript
chosen
[ { "from": "system", "value": "Add route towards testing page\n" }, { "from": "human", "value": "import Page from './../components/templates/page.jsx';\nimport React from 'react';\nimport atomicDesign from './atomic-design';\n\nexport default (injectDeps, context) => {\n const {mount, page} = co...
javascript
chosen
[ { "from": "system", "value": "Remove underlines that indicate privacy\n" }, { "from": "human", "value": "const buildRequest = function (url, method, responseType, headers) {\n const internalHeaders = headers || {};\n\n return new Promise((resolve, reject) => {\n const req = new XMLHttpReque...
javascript
chosen
[ { "from": "system", "value": "Fix for checkboxes and descriptions\n" }, { "from": "human", "value": "(function($){\n\t$.entwine('ss', function($){\n\t\t$('.field label.right').entwine({\n\t\t\tonadd:function() {\n\t\t\t\tthis.hide();\n\t\t\t\tthis.closest('.field').addClass('help-text');\n\t\t\t...
javascript
chosen
[ { "from": "system", "value": "Change es6 shorthand notation to es5 notation" }, { "from": "human", "value": "// Firefox 1.0+\nmodule.exports = {\n isFirefox: function () {\n return typeof InstallTrigger !== 'undefined'\n },\n\n // Internet Explorer 6-11\n isIE: function () {\n return !...
javascript
chosen
[ { "from": "system", "value": "Test for jekyll env - 1\n" }, { "from": "human", "value": "import 'bootstrap/dist/css/bootstrap.min.css';\nimport 'nvd3/build/nv.d3.min.css';\nimport 'react-select/dist/react-select.min.css';\nimport 'fixed-data-table/dist/fixed-data-table.min.css';\nimport ReactDOM...
javascript
chosen
[ { "from": "human", "value": "Add javascript for spoiler tags.\n" }, { "from": "gpt", "value": "$(\".spoiler\").each(function(index) {\n\tvar t = $(this);\n\tt.hide();\n\tvar l = $('<div><input type=\"button\" value=\"Show spoiler\"></div>');\n\tl.insertBefore($(this));\n\tl.click(function() {\n\...
javascript
chosen
[ { "from": "system", "value": "Update deployment task for AWS deployment\n" }, { "from": "human", "value": "'use strict';\n\nvar gulp = require('gulp');\nvar replace = require('gulp-replace-task');\n\ngulp.task('deploy-site', ['build'], function(done) {\n gulp.src('./dist/**/*.*')\n .pipe(gul...
javascript
chosen
[ { "from": "system", "value": "Remove a redundant blank line\n" }, { "from": "human", "value": "//= require ace-builds/src/ace\n//= require ace-builds/src/theme-tomorrow\n//= require ace-builds/src/mode-markdown\n//= require ace-builds/src/ext-language_tools\n//= require bootstrap-markdown-editor...
javascript
chosen
[ { "from": "system", "value": "Append to End of File While Writing in File\n" }, { "from": "human", "value": "var fileIO = require('rw')\nvar path = require('path')\n\nmodule.exports =\n{\n readFromFile: function(filename, callback)\n {\n fileIO.readFile(path.resolve(__dirname, filename)...
javascript
chosen
[ { "from": "system", "value": "Apply markups from the outside in\n" }, { "from": "human", "value": "'use strict';\n\nmodule.exports = convert\n\nvar serializeInline = require('./inline').serializeInline\n\n/**\n * convert(elem, s) performs the actual work of converting an element\n * into its abs...
javascript
chosen
[ { "from": "system", "value": "Rewrite as sparse array class" }, { "from": "human", "value": "// See Purple/license.txt for Google BSD license\n// Copyright 2011 Google, Inc. johnjbarton@johnjbarton.com\n\ndefine(['lib/Base'], \n function (Base) {\n \n var EventIndex = {};\n \n EventIndex.re...
javascript
chosen
[ { "from": "system", "value": "Remove detritus which is causing errors.\n" }, { "from": "human", "value": "exports.TAG_TYPE_MASK = function (tagtype) {\n return (tagtype == 0) ? 0 : 1 << (tagtype - 1);\n};\n\nexports.NAVDATA_OPTION_MASK = function (option) {\n return 1 << option;\n};\n\nexports...
javascript
chosen
[ { "from": "system", "value": "Clean up ASCII word breaker unit test.\n" }, { "from": "human", "value": "var assert = require('chai').assert;\nvar sinon = require('sinon');\n\nlet LMLayer = require('../../build');\nvar breakASCIIWords = require('../../build/intermediate').wordBreakers['ascii'];\n...
javascript
chosen
[ { "from": "system", "value": "Initialize store when loading the page\n" }, { "from": "human", "value": "var React = require('react');\nvar QBer = require('./components/QBer.react');\nvar MessagePanel = require('./components/MessagePanel.react');\n\n\nReact.render(\n <QBer />,\n document.getEle...
javascript
chosen
[ { "from": "system", "value": "Add detail row style adjustments\n" }, { "from": "human", "value": "/* eslint-disable react/forbid-prop-types */\n/**\n * mSupply Mobile\n * Sustainable Solutions (NZ) Ltd. 2016\n */\n\nimport React from 'react';\nimport { View } from 'react-native';\nimport PropTyp...
javascript
chosen
[ { "from": "system", "value": "Add default avatar to model defaults\n" }, { "from": "human", "value": "//setup backbone message model\nvar Message = Backbone.Model.extend({\n defaults:{\n username:'',\n text: '',\n room:'',\n lang: 'en',\n translations: {}\n }\n});\n" }, { ...
javascript
chosen
[ { "from": "system", "value": "Remove constants that were used in 'old' weblogng module configuration approach.\n" }, { "from": "human", "value": "'use strict';\n\nvar testKey = 'test-key';\nvar testOptions = {\n publishNavigationTimingMetrics: true,\n publishUserActive: true,\n application: '...
javascript
chosen
[ { "from": "system", "value": "Use jquery to send parcels tab and trips tab html back into profile in DOM\n" }, { "from": "human", "value": "$(document).ready(function() {\n $('#history_tab').on('click', function(event) {\n event.preventDefault();\n event.stopPropagation();\n var $detail...
javascript
chosen
[ { "from": "system", "value": "Include final item, upper bound is exclusive\n" }, { "from": "human", "value": "'use strict';\n\n(function() {\n\tvar WHEREABOUTS = [\n\t\t'working on his personal brand',\n\t\t'at home writing medium posts',\n\t\t'fuck knows!',\n\t\t'project managing',\n\t\t'having...
javascript
chosen
[ { "from": "system", "value": "Add test for parse;print of church terms\n" }, { "from": "human", "value": "'use strict';\n\nvar compiler = require('../lib/compiler');\nvar mocha = require('mocha');\nvar assert = require('../lib/assert');\nvar datasets = require('./lib/datasets');\n\nmocha.suite('...
javascript
chosen
[ { "from": "system", "value": "Add support for dataset Object\n" }, { "from": "human", "value": "/* global SVGElement */\n\nimport { setStyle } from './setstyle';\nimport { isFunction, getEl } from './util';\n\nconst xlinkns = 'http://www.w3.org/1999/xlink';\n\nexport const setAttr = (view, arg1,...
javascript
chosen
[ { "from": "system", "value": "Add prefix to header-logo selector\n" }, { "from": "human", "value": "const About = () => {\n return (\n <header id=\"about\" className=\"component\">\n <a href=\"/\" id=\"about-mainPageButton\">Gå til hovedsiden</a>\n <img className=\"header-logo\" sr...
javascript
chosen
[ { "from": "system", "value": "Fix for touch vs mouse events\n\nStrategy pattern for handling mouse vs touch.\n" }, { "from": "human", "value": "(function(){\n\t\"use strict\";\n\t\n\tvar defaults = {\n\t\tSelector : null,\n\t\tThreshold: 30\n\t}\n\t\n\tvar SwipeDetector = function(options) {\n\t...
javascript
chosen
[ { "from": "system", "value": "Include German abbreviations for later work\n" }, { "from": "human", "value": "const quotes = {\n\tleftDoubleQuote : \t\t\t\t\"„\",\n\trightDoubleQuote : \t\t\t\t\"“\",\n\tleftSingleQuote : \t\t\t\t\"‚\",\n\trightSingleQuote : \t\t\t\t\"‘\",\n};\n\nconst numbers = {...
javascript
chosen
[ { "from": "system", "value": "Fix resource paths for user file attachments.\n\nWhen I fixed the names in the user file attachments resource to make it\navailable within the API templates, I neglected to actually test the javascript\nin the Review Board UI, which was still using the old paths and names. This...
javascript
chosen
[ { "from": "system", "value": "Fix bug: need complete list of validation fields\n" }, { "from": "human", "value": "export default {\n givenName: {\n required: true,\n validateOnBlur: true,\n },\n familyName: {\n required: true,\n validateOnBlur: true,\n },\n nickname: {\n requ...
javascript
chosen
[ { "from": "system", "value": "Fix redundant declaration of the same variable.\n" }, { "from": "human", "value": "'use strict';\n\nvar expect = require('chai').expect;\nvar angular = require('angular');\n\nvar calculatorModule = require('./calculator.service');\n\ndescribe('calculator', function(...
javascript
chosen
[ { "from": "system", "value": "Correct task target name and file names\n" }, { "from": "human", "value": "'use strict';\n\nmodule.exports = function(grunt){\n grunt.initConfig({\n uglify: {\n cobra: {\n files: {\n 'build/js/cobra.min.js': 'public/js/cobra.js'\n }\n...
javascript
chosen
[ { "from": "system", "value": "Remove InstrumentManagerView's unnecessary 'instrumentRemoved' model event listener.\n" }, { "from": "human", "value": "define([\n\t\"use!underscore\",\n\t\"use!backbone\",\n\t\"baseView\",\n\t\"settings\",\n\t\"./instrumentView\",\n], function(_, Backbone, BaseView...
javascript
chosen
[ { "from": "system", "value": "Use authentication from helpers in isGuestCheckout tests\n" }, { "from": "human", "value": "'use strict';\n\nvar fake = require('../../../helpers/fake');\nvar isGuestCheckout = require('../../../../src/lib/is-guest-checkout');\n\ndescribe('isGuestCheckout', function...
javascript
chosen
[ { "from": "system", "value": "Add `babel-polyfill` to test environment\n" }, { "from": "human", "value": "var testsContext = require.context('./unit/', true, /.js$/);\ntestsContext.keys().forEach(testsContext);\n" }, { "from": "gpt", "value": "import BabelPolyFill from 'babel-polyfil...
javascript
chosen
[ { "from": "system", "value": ":new: Support ternary in dead code removal plugin\n" }, { "from": "human", "value": "// @flow\n\n// Empty out bodies of falsy parts of if/else statements\n// to avoid requiring modules that aren't needed aka\n// if (process.env.NODE_ENV === 'production') module.expo...
javascript
chosen
[ { "from": "system", "value": "Add list of readonly columns\n" }, { "from": "human", "value": "/**\n * File: model.tpl\n * User: Martin Martimeo\n * Date: 30.04.13\n * Time: 13:12\n */\n\n\nvar {{ model_name }} = Backbone.Model.extend({\n\n defaults: { {% for column in columns %}{% if column.d...
javascript
chosen
[ { "from": "system", "value": "Add editorial improvements to CSS ontology generation\n\nImplements suggestions in https://github.com/w3c/webref/pull/327\n" }, { "from": "human", "value": "\n// Convert JSON on CVSS to Turtle for Css property namespace\nconst cssData = require( '../ed/css/CSS.json'...
javascript
chosen
[ { "from": "system", "value": "Add devtool: 'eval' for Chrome DevTools" }, { "from": "human", "value": "var webpack = require('webpack');\n\nmodule.exports = {\n entry: [\n 'webpack-dev-server/client?http://localhost:3000',\n 'webpack/hot/dev-server',\n './scripts/index'\n ],\n output...
javascript
chosen
[ { "from": "system", "value": "Fix lint, and add node_modules in the resolver" }, { "from": "human", "value": "/* global __dirname, require, module*/\n\nconst webpack = require('webpack');\nconst UglifyJsPlugin = webpack.optimize.UglifyJsPlugin;\nconst path = require('path');\nconst env = requir...
javascript
chosen
[ { "from": "system", "value": "Increase job graph poll interval.\n" }, { "from": "human", "value": "define([\n 'underscore'\n],\nfunction(_) {\n var namespace = \"_pollable\",\n defaultInterval = 60000;\n\n function get(t, k) {\n if (!(t[namespace] && t[namespace][k])) { return null; }...
javascript
chosen
[ { "from": "system", "value": "[FEATURE] Add option to specify postgres config with url in ENV.\n" }, { "from": "human", "value": "Sequelize = require('sequelize')\ndbConfig = require('../database.json')['staging']\npg = require('pg').native;\n\nsequelize = new Sequelize(dbConfig.database, dbConf...
javascript
chosen
[ { "from": "system", "value": "Change `show_n_lines_before_more` default value to 2 lines\n" }, { "from": "human", "value": "pref(\"extensions.rspamd-spamness.header\", \"x-spamd-result\");\npref(\"extensions.rspamd-spamness.display.column\", 0);\npref(\"extensions.rspamd-spamness.display.message...
javascript
chosen
[ { "from": "system", "value": "Change discarded badge class to danger\n" }, { "from": "human", "value": "(function () {\n 'use strict';\n\n angular.module('documents')\n .component('scientillaDocumentLabel', {\n templateUrl: 'partials/scientilla-document-label.html...
javascript
chosen
[ { "from": "system", "value": "Disable ReactDev tools warning that appears in React 16\n\n - this was crufting up the output of our end-to-end tests locally, as these are compiled using development configs\n" }, { "from": "human", "value": "const path = require(\"path\")\nconst webpack = require...
javascript
chosen
[ { "from": "system", "value": "Update to the about dialog text\n" }, { "from": "human", "value": "import React from 'react';\n\nconst AboutDialog = ({ closeDialog }) => (\n <div>\n <button className=\"dialog-close\" onClick={closeDialog}>\n <i className=\"icon-close\" />\n </button>\n...
javascript
chosen
[ { "from": "system", "value": "Update proxy host, move namespace to the adapter\n" }, { "from": "human", "value": "var proxyPath = '/orchestrate';\n\nmodule.exports = function(app) {\n // For options, see:\n // https://github.com/nodejitsu/node-http-proxy\n var proxy = require('http-proxy').cr...
javascript
chosen
[ { "from": "system", "value": "Update primary forest widget sentence\n" }, { "from": "human", "value": "export default {\n widget: 'primaryForest',\n title: 'Primary forest in {location}',\n categories: ['land-cover'],\n types: ['country'],\n admins: ['adm0', 'adm1', 'adm2'],\n options: {\n...
javascript
chosen
[ { "from": "system", "value": "Add ChildComponent.tagName in the error" }, { "from": "human", "value": "import { elements } from 'mjml-core'\nimport filter from 'lodash/filter'\nimport includes from 'lodash/includes'\nimport ruleError from './ruleError'\n\nexport const validChildren = (element) =...
javascript
chosen
[ { "from": "system", "value": "Add click handler (hard-code) for the first tile on board\n" }, { "from": "human", "value": "\n\nvar startGame = function(){\t\n\treturn false;\n\n}\n\n\n\nvar Ships = function(){\n\n\treturn false;\n}\n\n\nvar Players = function(){\n\treturn false;\n}\n\n\nvar Scor...
javascript
chosen
[ { "from": "system", "value": "Add collection and db id injection\n" }, { "from": "human", "value": "'use strict';\n\nmodule.exports = {\n mongodb: {\n class: 'vendor.mongodb'\n },\n db: {\n collections: ['db'],\n class: 'db',\n declinations: '$connections$',\...
javascript
chosen
[ { "from": "system", "value": "Change method name and document for clarity\n" }, { "from": "human", "value": "$(function() {\n var $tabs = $('#search-results-tabs'),\n $searchForm = $('.js-search-hash');\n\n if($tabs.length > 0){\n $tabs.tabs({ 'defaultTab' : getSelectedSearchTabIndex()...
javascript
chosen
[ { "from": "system", "value": "Add islogged to user model\n" }, { "from": "human", "value": "(function(){\n'use strict';\n\nangular\n .module('secondLead')\n \n .factory('UserModel',['Auth', 'Restangular', function(Auth, Restangular) {\n var baseUsers = Restangular.all('users');\n var cu...
javascript
chosen
[ { "from": "system", "value": "Use the draw function in the test\n" }, { "from": "human", "value": "/* eslint-env mocha */\nlet expect = require('chai').expect\nlet CardGame = require('./index')\nlet Deck = CardGame.Deck\n\ndescribe('Deck', function () {\n specify('An empty deck with no cards', ...
javascript
chosen
[ { "from": "system", "value": "Make shifter look like other YUI cli tools\n" }, { "from": "human", "value": "/*\nCopyright (c) 2012, Yahoo! Inc. All rights reserved.\nCode licensed under the BSD License:\nhttp://yuilibrary.com/license/\n*/\nrequire('colors');\n\n\nvar prefix = 'shifter'.magenta;\...
javascript
chosen
[ { "from": "system", "value": "Make Awesome Creations Carousel 4\n" }, { "from": "human", "value": "$(document).ready(function(){\n\t $(\"#owl-demo\").owlCarousel({\n\t\t \n\t\tautoPlay: 3000, //Set AutoPlay to 3 seconds\n\t\t \n\t\titems : 3,\n\t\titemsDesktop : [1199,3],\n\t\titemsDesktopSmall ...
javascript
chosen
[ { "from": "system", "value": "Change demo file naming from sample to example\n\nSeems to be missed when changing sample to example for demo files\n" }, { "from": "human", "value": "#!/usr/bin/env node\n\n// Build demo data for embedding into html\n\n/*eslint no-console:0*/\n\nvar fs = require(...
javascript
chosen
[ { "from": "system", "value": "Fix unit test to sign action creators\n" }, { "from": "human", "value": "import * as signUpActions from './signUp';\nimport reducer from './signUp';\n\ndescribe('signUp reducer', () => {\n it('should return the initial state', () => {\n expect(\n reducer(un...
javascript
chosen
[ { "from": "system", "value": "CB-388: REMOVE plugins and PhoneGap global objects from JavaScript implementation\n" }, { "from": "human", "value": "describe('Platform (cordova)', function () {\n it(\"should exist\", function() {\n expect(cordova).toBeDefined();\n });\n describe('P...
javascript
chosen
[ { "from": "system", "value": "Store last-update-time in the widget\n" }, { "from": "human", "value": "command: [\n\t'curl --silent ',\n\t\t'\"https://help.stolaf.edu/helpdesk',\n\t\t'/WebObjects/Helpdesk.woa/ra/Tickets?',\n\t\t'style=details&',\n\t\t'qualifier=(statustype.statusTypeName%3D%27Clo...
javascript
chosen
[ { "from": "system", "value": "Fix process.nextTick, try to save context\n" }, { "from": "human", "value": "/**\n * @file env\n * @author treelite(c.xinle@gmail.com)\n */\n\n/**\n * 修复全局的异步函数\n * 使之能在异步回调中恢复请求请求上下文\n *\n * @inner\n * @param {Object} app server\n */\nfunction fixGlobalMethods(app)...
javascript
chosen
[ { "from": "system", "value": "Remove 'only' from Story tests\n" }, { "from": "human", "value": "import { expect } from 'chai'\nimport { clean, run } from '../helper'\n\ndescribe('Stories', () => {\n beforeEach(clean)\n\n it.only('should add stories to test cases', () => {\n return r...
javascript
chosen
[ { "from": "system", "value": "Add method to temporarily enable a widget\n" }, { "from": "human", "value": "pageflow.widgets = {\n isPresent: function(name) {\n return !!$('div.widget_' + name + '_present').length;\n },\n\n areLoaded: function() {\n return !!$('div.widgets_present').leng...
javascript
chosen
[ { "from": "system", "value": "Use zodern:melte to compile svelte files\n" }, { "from": "human", "value": "Package.describe({\n name: 'zodern:pure-admin',\n version: '0.8.2',\n summary: 'Isolated, customizable admin panel for Meteor',\n git: 'https://github.com/zodern/meteor-pure-admin.git',\...
javascript
chosen
[ { "from": "system", "value": "Make sure folders exist before reading them\n" }, { "from": "human", "value": "// JavaScript Document\n\n// Scripts written by __gulp_init_author_name__ @ __gulp_init_author_company__\n\nconst GLOB = require(\"glob\");\n\nmodule.exports = {\n config(plugins, sour...
javascript
chosen
[ { "from": "system", "value": "[clean-up] Remove unnecessary contentBase setting of webpack dev server.\n" }, { "from": "human", "value": "\"use strict\";\nconst HtmlWebpackPlugin = require('html-webpack-plugin');\nconst HOST = process.env.HOST || \"127.0.0.1\";\nconst PORT = process.env.PORT || ...
javascript
chosen