conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": " Change use br to asynchronous testing\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar _ = require('lodash');\nvar fs = require('fs');\nvar utility = require('../utility');\n\ndescribe('use br', function() {\n before(function() {\n var filenam... | javascript | chosen |
[
{
"from": "system",
"value": "Replace `var` with `const` or `let`\n"
},
{
"from": "human",
"value": "var binding = require('bindings')('contextify');\nvar ContextifyContext = binding.ContextifyContext;\nvar ContextifyScript = binding.ContextifyScript;\n\nfunction Contextify (sandbox) {\n if (... | javascript | chosen |
[
{
"from": "system",
"value": "Use error observable instead of function\n"
},
{
"from": "human",
"value": "// All uncought errors will be collected here. Newer errors have higher indices.\nlet _errors = [];\n\n// Register global handler to collect uncought errors.\nwindow.onerror = (msg, url, lin... | javascript | chosen |
[
{
"from": "system",
"value": "Move public compilation folder back to frontend/\n\nThis is done because Express throws a bunch of errors if the destination\npath contains '../'.\n"
},
{
"from": "human",
"value": "exports.config = {\n // See http://brunch.io/#documentation for docs.\n conventi... | javascript | chosen |
[
{
"from": "system",
"value": "Fix window check to work on CI server\n"
},
{
"from": "human",
"value": "export default function getBaseUrl() {\n const inDevelopment = window.location.hostname === 'localhost';\n return inDevelopment ? 'http://localhost:3001/' : '/';\n}\n"
},
{
"from": "g... | javascript | chosen |
[
{
"from": "system",
"value": "Add default render function in config\n\nSo that you can use happo right away without a render function. This is\nuseful if you for instance have a plain js project where the example\nfunctions render things straight to the dom.\n"
},
{
"from": "human",
"value": "im... | javascript | chosen |
[
{
"from": "system",
"value": "Remove clean from hot-dev gulp sequence so tests can still run locally using build js\n"
},
{
"from": "human",
"value": "import gulp from 'gulp';\nimport requireDir from 'require-dir';\nimport runSequence from 'run-sequence';\n\n// Require individual tasks\nrequireD... | javascript | chosen |
[
{
"from": "system",
"value": "Illo: Add '72' prop for size\n\nThis was missing from the previous Illo update.\n"
},
{
"from": "human",
"value": "import PropTypes from 'prop-types'\n\nexport const sizeTypes = PropTypes.oneOf([\n '40',\n '60',\n '80'\n])\n"
},
{
"from": "gpt",
"valu... | javascript | chosen |
[
{
"from": "system",
"value": "[refactor] Move move methods into EX class.\n"
},
{
"from": "human",
"value": "import _ from \"lodash\";\nimport jQuery from \"jquery\";\nimport moment from \"moment\";\nimport Dexie from \"dexie\";\n\nimport DText from \"./dtext.js\";\nimport Tag from \"./tag.js\... | javascript | chosen |
[
{
"from": "system",
"value": "Change detection of checked checkbox\n\n* If the checked attribute hasn’t been set, then later versions of\njQuery return “undefined” for .attr(\"checked\")\n* Switch to a more explicit check, .is(“:checked”)\n"
},
{
"from": "human",
"value": "$(document).ready(func... | javascript | chosen |
[
{
"from": "system",
"value": "Implement unit test for custodian (admin) password change\n"
},
{
"from": "human",
"value": "var utils = require('./utils.js');\n\ndescribe('receiver first login', function() {\n it('should redirect to /firstlogin upon successful authentication', function() {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Disable ckeditor resizing to get rid of bottom bar\n"
},
{
"from": "human",
"value": "/* globals CKEDITOR */\nimport Ember from 'ember';\nimport layout from '../templates/components/ck-editor';\n\nexport default Ember.Component.extend({\n layout: layout,\n\n _edit... | javascript | chosen |
[
{
"from": "system",
"value": "Convert 'submitted' attribute on Permits to a date\n"
},
{
"from": "human",
"value": "define([\"backbone\"], function(B) {\n console.log(\"Creating Permit model.\");\n\n return B.Model.extend({\n idAttribute: \"case\",\n\n defaults: function() {\... | javascript | chosen |
[
{
"from": "system",
"value": "Convert Nullable string into flat one, also add Fucnction as acceptable argument\n"
},
{
"from": "human",
"value": "/* @flow */\n\nconst hasFunctionNature = (maybe: any) => typeof maybe === 'function'\nconst hasStringNature = (maybe: any) => typeof maybe === 'string... | javascript | chosen |
[
{
"from": "system",
"value": "Fix an error in application template causing the cluster to hang on exit\n"
},
{
"from": "human",
"value": "const cluster = require('cluster'),\n stopSignals = [\n 'SIGHUP', 'SIGINT', 'SIGQUIT', 'SIGILL', 'SIGTRAP', 'SIGABRT',\n 'SIGBUS', 'SIGFPE'... | javascript | chosen |
[
{
"from": "system",
"value": "Add test for /search in getCommands\n"
},
{
"from": "human",
"value": "\"use strict\";\n\nconst expect = require(\"chai\").expect;\nconst inputs = require(\"../../../src/plugins/inputs\");\n\ndescribe(\"inputs\", function () {\n\tdescribe(\".getCommands\", function ... | javascript | chosen |
[
{
"from": "system",
"value": "Remove dependency on apply() since it gets injected anyways.\n"
},
{
"from": "human",
"value": "import apply from './apply';\n\n/**\n * Provides a bridge to provide configuration data for plugins. Consumes an\n * optional config object containing the configuration... | javascript | chosen |
[
{
"from": "system",
"value": "Set a higher maxListeners value\n\nfixes #5373\n\n- Set Max Listeners on our Event Emitter to 100\n- Stops the '11 listeners added' error on node 0.12 during tests\n"
},
{
"from": "human",
"value": "var events = require('events'),\n util = require('util'),\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Remove commented out localhost code\n"
},
{
"from": "human",
"value": "import axios from 'axios';\n\nexport const FETCH_SEARCH_RESULTS = 'fetch_search_results';\n\nconst ROOT_URL = 'https://earlybirdsearch.herokuapp.com/?';\n// const LOCAL_HOST = 'http://localhost:3... | javascript | chosen |
[
{
"from": "system",
"value": "Rename Util.prep Util.escape. Deprecate former.\n"
},
{
"from": "human",
"value": "define([\n 'underscore'\n], function (_) {\n\n var Util = {};\n\n // TODO: Also rename\n /** preps data for output */\n Util.prep = function (s) {\n if (s==null)... | javascript | chosen |
[
{
"from": "system",
"value": "Update layer model with jsdoc tags and proper class name & alias\n"
},
{
"from": "human",
"value": "Ext.define('gx_layer', {\n extend: 'Ext.data.Model',\n fields: [\n 'name',\n 'id'\n ],\n getLayer: function() {\n return this.raw;\n ... | javascript | chosen |
[
{
"from": "system",
"value": ":white_check_mark: Test AES encryption & decryption functions\n"
},
{
"from": "human",
"value": "import { capitalize } from '../utilities';\n\ndescribe('capitalize()', () => {\n test('It should capitalize the first character in a string', () => {\n expect(capita... | javascript | chosen |
[
{
"from": "system",
"value": "Make header rotation JS use variable\n"
},
{
"from": "human",
"value": "var header_images = $('.intro-header').data('images');\nvar header_list = header_images.split(',');\nvar header_pos = 0;\nvar header_path = '/img/headers/';\nvar header_rotate_interval = ... | javascript | chosen |
[
{
"from": "system",
"value": "Add new constants to keep track of factions\n"
},
{
"from": "human",
"value": "// Action type constants\nexport const SWITCH_FACTION = 'SWITCH_FACTION';\nexport const TOGGLE_FILTER = 'TOGGLE_FILTER';\nexport const TOGGLE_GROUP = 'TOGGLE_GROUP';\n\n// Component type ... | javascript | chosen |
[
{
"from": "system",
"value": "FIX initialization of minimal mmir-main\n"
},
{
"from": "human",
"value": "\nvar path = require('path');\nvar mmirLib = require('mmir-lib');\n\nmmirLib.mmir.startModule = 'mmirf/main-minimal';\nmmirLib.config.paths['mmirf/main-minimal'] = path.join(__dirname, 'main-... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"For tests: exit 0 on success, exit 1 on failure.\"\n\nThis reverts commit 29f90785ff83bfb9174023606af9fbd32b315ae5.\n"
},
{
"from": "human",
"value": "/**\n * Run this file to execute tests\n */\nvar args = process.argv;\nfor (var i = 0; i < args.length; i+... | javascript | chosen |
[
{
"from": "system",
"value": "Change languagesList for the new file structure\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar fs = require('fs');\nvar path = require('path');\n\n// Build a path relative to `test/`\nfunction buildPath() {\n var args = [].slice.call(arguments, 0),\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Support legacy google-fonts italic font url syntax\n"
},
{
"from": "human",
"value": "function getFontPropsFromGoogleId(googleId) {\n var pair = googleId.split(':');\n\n return {\n 'font-family': pair[0].replace(/\\+/g, ' '),\n 'font-weight': par... | javascript | chosen |
[
{
"from": "system",
"value": "Support all Ember versions in initializer"
},
{
"from": "human",
"value": "import Resolver from 'ember/resolver';\n\nResolver.reopen({\n pluralizedTypes: {\n ability: 'abilities'\n }\n});\n\nexport default {\n name: 'setup-ember-can',\n initialize: function(c... | javascript | chosen |
[
{
"from": "system",
"value": "Fix placeholder text in mithril example\n"
},
{
"from": "human",
"value": "var app = app || {};\n\n(function () {\n 'use strict';\n\n app.watchInput = function (ontype, onenter, onescape) {\n return function (e) {\n ontype(e)\n if (e.keyCode == app.EN... | javascript | chosen |
[
{
"from": "system",
"value": "Remove XDomainRequest special status handling\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar createError = require('./createError');\n\n/**\n * Resolve or reject a Promise based on response status.\n *\n * @param {Function} resolve A function that resolves ... | javascript | chosen |
[
{
"from": "system",
"value": "Use path module for getting static file serve path\n"
},
{
"from": "human",
"value": "var express = require('express');\nvar app = express();\nvar server = require('http').createServer(app);\nvar sockets = require('socket.io')(server);\nvar hash = require('crypto').... | javascript | chosen |
[
{
"from": "system",
"value": "Make the detection of Node.js environments on Electron strict.\nThe main process and its child processes should be detected as Node.js environments.\n"
},
{
"from": "human",
"value": "/* Copyright 2018 Mozilla Foundation\n *\n * Licensed under the Apache License, Ve... | javascript | chosen |
[
{
"from": "system",
"value": "Check weather data validity on refresh\n\nRelated to #76\n"
},
{
"from": "human",
"value": "var RefreshWeather = function (options) {\n options = options || {};\n options.elem = options.elem || \"#weather-general\";\n options.update_interval = options.update_inte... | javascript | chosen |
[
{
"from": "system",
"value": "Add tests to check random drone generator. Test random drone generator creates an object with an id attribute\n"
},
{
"from": "human",
"value": "const { generateRandom } = require('../../server/simulation/drone');\n\ndescribe('generateRandom()', () => {\n\n const s... | javascript | chosen |
[
{
"from": "system",
"value": "Add chart of rebel percentage\n"
},
{
"from": "human",
"value": "!!(function() {\n\n function chart(opts) {\n c3.generate({\n bindto: opts.node,\n data: {\n x: 'x',\n columns: [\n ['x']... | javascript | chosen |
[
{
"from": "system",
"value": "Fix import error in <Popup> example\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport { storiesOf } from '@storybook/react';\nimport { withInfo } from '@storybook/addon-info';\n\n// For props table\nimport Popup, { EscapablePopup, PurePopup } fro... | javascript | chosen |
[
{
"from": "system",
"value": "Handle properly the orderbook list\n"
},
{
"from": "human",
"value": "angular.module(\"omniControllers\")\n\t.controller(\"DExOverviewController\", [\"$scope\",\"userService\",\"Orderbook\",\"TransactionManager\",\n\t\tfunction DExOverviewController($scope,userServi... | javascript | chosen |
[
{
"from": "system",
"value": "Fix hiding problems in ./build/Debug/tree_sitter_*_binding\n\nIn debug building modules also may happen errors and a current implementation\ncompletely hides them, so errors like 'undefined symbol' can't be\neasily identified due to wrong traceback and error message.\n"
},
... | javascript | chosen |
[
{
"from": "system",
"value": ":art: Change SCSS output style for prod\n"
},
{
"from": "human",
"value": "const sass = require('node-sass');\nconst path = require('path');\nconst fs = require('fs');\nconst { scssEntryPoint } = require('../../config');\n\n/**\n * Compiles SASS using the scssEntryP... | javascript | chosen |
[
{
"from": "system",
"value": "Add missing import for navigation\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport Router from 'react-router';\nimport stores from 'stores';\nimport ResourceMaster from './ResourceMaster.react';\nimport ImageMaster from './ImageMaster.react';\n\... | javascript | chosen |
[
{
"from": "system",
"value": "Use raw knex for db seeding\n"
},
{
"from": "human",
"value": "require( '../../start/db' )();\n\nvar Setting = require( '../../models/setting' );\n\nexports.seed = function( knex, Promise ) {\n return new Setting().save({\n name: 'defaultInterval',\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Set default connectTimeout and readTimeout as 60s"
},
{
"from": "human",
"value": "var globalConfigs = {\n headers: {},\n serializer: 'urlencoded',\n followRedirect: true,\n timeout: 60.0,\n connectTimeout: 30.0,\n readTimeout: 30.0\n};\n\nmodule.exports = glo... | javascript | chosen |
[
{
"from": "system",
"value": "Add initial state for authReducer\n"
},
{
"from": "human",
"value": "const channels = [\n {\n source_id: \"abc-news-au\",\n name: \"ABC News (AU)\",\n },\n {\n source_id: \"al-jazeera-english\",\n name: \"Al Jazeera English\",\n },\n]\n\nexport default ... | javascript | chosen |
[
{
"from": "system",
"value": "Add text prewrap to description\n"
},
{
"from": "human",
"value": "import React from 'react'\nimport PropTypes from 'prop-types'\n\nconst DescriptionText = (props) => {\n if (props.text.length > 0) {\n return (<div className='description-text content has-text-ju... | javascript | chosen |
[
{
"from": "system",
"value": "Remove debug flag on the GitHub module.\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar GitHubApi = require('github');\n\nvar github = new GitHubApi({\n version: '3.0.0',\n debug: true\n});\n\ngithub.authenticate({\n type: 'oauth',\n key: process.env.GIT... | javascript | chosen |
[
{
"from": "system",
"value": "Add $in operator if object is an array\n"
},
{
"from": "human",
"value": "var methods = {};\n\nmethods.setRelated = function(relationName, value) {};\n\nmethods.getRelated = function(relationName) {\n var doc = this;\n var Class = doc.constructor;\n\n // If there... | javascript | chosen |
[
{
"from": "system",
"value": "Fix afterscript used in sdk automation pipeline\n"
},
{
"from": "human",
"value": "const basePath = process.argv[2];\nrequire(\"child_process\").execSync(`npm install --prefix generator`, {stdio: 'inherit'});\nrequire(\"child_process\").execSync(`npm run postprocess... | javascript | chosen |
[
{
"from": "system",
"value": ":crystal_ball: Fix DB race condition failure\n"
},
{
"from": "human",
"value": "/**\n * @fileoverview Database table utilities\n *\n * @author Scott Nath\n * @author Sam Richard\n *\n */\n'use strict';\n\n/*\n Create a table in the database\n\n ## TODO\n * i... | javascript | chosen |
[
{
"from": "system",
"value": "fix(test): Use of StageComponent to ensure aurelia’s framework is loaded as expected.\n"
},
{
"from": "human",
"value": "import { Config } from '../../src/config';\nimport { Collection } from '../../src/collection';\nimport { UseCollection } from '../../src/use-coll... | javascript | chosen |
[
{
"from": "system",
"value": "Make sure prosemirror always has a default\n"
},
{
"from": "human",
"value": "var ProseMirror = require(\"prosemirror/dist/edit\").ProseMirror\nrequire(\"prosemirror/dist/menu/menubar\") // Load menubar module\n\nmodule.exports = {\n data: function() {\n return ... | javascript | chosen |
[
{
"from": "system",
"value": "Attach the parent web socket to the child iframe.\n"
},
{
"from": "human",
"value": "(function () {\n \"use strict\";\n\n var iframe = document.getElementById(\"iframe\");\n var iframeWindow = iframe.contentWindow;\n\n function runScriptInIframe(string)... | javascript | chosen |
[
{
"from": "system",
"value": "[Glitch] Fix crash if a notification contains an unprocessed media attachment\n\nPort 0c24c865b785a557f43125c976090e271247a2b1 to glitch-soc\n\nSigned-off-by: Claire <82b964c50e9d1d222e48cf5046e6484a966a7b07@sitedethib.com>\n"
},
{
"from": "human",
"value": "import ... | javascript | chosen |
[
{
"from": "system",
"value": "Update express and mongoose and remove dependencies and devDependencies from prompt\n"
},
{
"from": "human",
"value": "\"use strict\";\n\nmodule.exports = {\n \"name\" : prompt('name', name),\n \"version\" : prompt('version', \"0.0.0\"),\n \"description\" :... | javascript | chosen |
[
{
"from": "system",
"value": "Add brief description and usage info\n"
},
{
"from": "human",
"value": "var util = require('util')\n , FeedParser = require('./')\n , parser = new FeedParser()\n , file = process.argv[2];\n\nif (!file) {\n process.exit(2);\n}\nparser.on('error', console.error);\... | javascript | chosen |
[
{
"from": "system",
"value": "Throw exception with help when no file is found\n"
},
{
"from": "human",
"value": "/**\n * Iterate over raw response from `byField` endpoint and call a callbacke\n * for each package\n */\nmodule.exports = forEachPackage;\n\nvar JSONStream = require('JSONStream');\n... | javascript | chosen |
[
{
"from": "system",
"value": "Update output of simple reporter\n"
},
{
"from": "human",
"value": "var through = require('through');\nvar readline = require('readline');\nvar util = require('util');\nvar path = require('path');\n\nvar state = {\n pass: 0,\n fail: 0,\n}\n\nmodule.exports = t... | javascript | chosen |
[
{
"from": "system",
"value": "Use expect.subjectOutput instead of this.subjectOutput (support removed in Unexpected 11.0.0)\n"
},
{
"from": "human",
"value": "/*global Uint8Array*/\nvar exifParser = require('exif-parser');\n\nvar fs = require('fs');\n\nmodule.exports = {\n name: 'unexpected-exi... | javascript | chosen |
[
{
"from": "system",
"value": "Clean up category index page.\n"
},
{
"from": "human",
"value": "import React from 'react/addons';\nimport Gallery from './Gallery';\n\nclass CategoryIndex extends React.Component {\n\n constructor(props) {\n super(props);\n\n this.state = {\n selectedIt... | javascript | chosen |
[
{
"from": "system",
"value": "Use null instead of false to remove JSX attribute\n"
},
{
"from": "human",
"value": "const React = require('react');\nconst {PropTypes} = React;\nconst uniqueId = require('lodash/uniqueId');\n\nclass Pagination extends React.Component {\n static propTypes = {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Improve phone regex validation feedback\n"
},
{
"from": "human",
"value": "document.addEventListener('DOMContentLoaded', function () {\n var phoneFormGroup = document.getElementById('phone-form-group')\n var phone = document.getElementById('phone')\n var message ... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"remove unnecessary ./ from relative url\"\n\nThis reverts commit dbd8e6a59f41cc761446f2580fa82c055b17033e.\n"
},
{
"from": "human",
"value": "/**\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you... | javascript | chosen |
[
{
"from": "system",
"value": "Add tag template literal for chalk\n"
},
{
"from": "human",
"value": "const moment = require('moment-timezone');\nconst chalk = require('chalk');\n\nexports.printMessage = function (message) {\n console.log(message);\n};\n\nexports.printError = function (message) {... | javascript | chosen |
[
{
"from": "system",
"value": "Switch tracked domain from beta to live\n"
},
{
"from": "human",
"value": "(function (root) {\n \"use strict\";\n\n root.GOVUK.GDM = root.GOVUK.GDM || {};\n root.GOVUK.GDM.analytics = {\n 'register': function () {\n GOVUK.Analytics.load();\n var cook... | javascript | chosen |
[
{
"from": "system",
"value": "Change test helper to use truffle-config.js as well\n"
},
{
"from": "human",
"value": "const tmp = require(\"tmp\");\nconst fs = require(\"fs-extra\");\nconst config = require(\"truffle-config\");\nconst path = require(\"path\");\n\nmodule.exports = {\n copyDirecto... | javascript | chosen |
[
{
"from": "system",
"value": "Add role property to mark item.\n"
},
{
"from": "human",
"value": "import Bounds from './Bounds';\nimport GroupItem from './GroupItem';\n\nexport default function Scenegraph() {\n this.root = createMark({\n marktype: 'group',\n interactive: false\n });\n th... | javascript | chosen |
[
{
"from": "system",
"value": "Fix the template files, they were still using the old structure\n"
},
{
"from": "human",
"value": "import { AbstractTransitionComponent }from 'vue-transition-component';\nimport {{name_pc}}TransitionController from './{{name_pc}}TransitionController';\n\nexport defa... | javascript | chosen |
[
{
"from": "system",
"value": "Reduce duplicated code when initializing streams\n"
},
{
"from": "human",
"value": "Elm.Native.Keyboard = {};\nElm.Native.Keyboard.make = function(localRuntime) {\n\n\tlocalRuntime.Native = localRuntime.Native || {};\n\tlocalRuntime.Native.Keyboard = localRuntime.Na... | javascript | chosen |
[
{
"from": "system",
"value": "Change env variable for PORT.\n"
},
{
"from": "human",
"value": "const express = require('express');\nconst bodyParser = require('body-parser');\nconst sqlite3 = require('sqlite3').verbose();\nconst yamlConfig = require('node-yaml-config');\n\n/*\n * Create the app,... | javascript | chosen |
[
{
"from": "system",
"value": "Fix bug where rants could not be read\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst url = require('url');\nconst co = require('co');\nconst fetch = require('node-fetch');\nconst debug = require('debug');\n\nconst API = 'https://www.devrant.io/api/devrant... | javascript | chosen |
[
{
"from": "system",
"value": "Change test circle to Castle Rock\n"
},
{
"from": "human",
"value": "// Initalizes map\nvar mymap = L.map('mapid').setView([51.505, -0.09], 13);\n\n// Sets the default view of the map\nmymap.setView(new L.LatLng(38.1711269, -97.5383369), 5);\n\n// Sets the tile laye... | javascript | chosen |
[
{
"from": "system",
"value": "Fix indentation of the JavaScript grammar\n"
},
{
"from": "human",
"value": "define(function() {\n\n\t// Export\n\treturn function(Prism) {\n\n\t\tPrism.languages.javascript = Prism.languages.extend('clike', {\n\t\t\t'keyword': /\\b(var|let|if|else|while|do|for|retu... | javascript | chosen |
[
{
"from": "system",
"value": "Add fix for period syncing\n"
},
{
"from": "human",
"value": "/**\n * mSupply Mobile\n * Sustainable Solutions (NZ) Ltd. 2019\n */\n\n/**\n * Methods to create internal records from a requested\n * sync/external record. Used primarily by\n * createOrUpdateRecord in ... | javascript | chosen |
[
{
"from": "system",
"value": "Use a map to calculate the question counts for concepts all in once go and store them on the concept object\n\nThis allows us to sort the table by question count and saves us calculating the question count when trying to render each row of the table.\n"
},
{
"from": "hu... | javascript | chosen |
[
{
"from": "system",
"value": "Fix typo in variable names"
},
{
"from": "human",
"value": "import React from 'react';\nimport PropTypes from 'prop-types';\nimport styles from './teamCard.css';\n\nconst TeamCard = ({ name, role, slackUsername, email, isBoard, description, imageSrc }) => (\n <div ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix test to expect correct string\n"
},
{
"from": "human",
"value": "import $ from 'jquery';\nimport Backbone from 'backbone';\nimport chai from 'chai';\n\nlet expect = chai.expect;\n\nimport Router from '../src/app/router';\n\n\ndescribe('Integration tests', functi... | javascript | chosen |
[
{
"from": "system",
"value": "Use widget id as argument for registry.remove as it takes an id and not a widget instance.\nAdd destroyRecursive method becuase containers check for and call destroyRecursive in their destroyDecendants cleanup.\n"
},
{
"from": "human",
"value": "define([\"dojo/_base... | javascript | chosen |
[
{
"from": "system",
"value": "Disable the max-statements eslint warning for the umd loader\n"
},
{
"from": "human",
"value": "/**\n * Jroff 0.0.1 <http://roperzh.github.io/jroff.js>\n * Copyright (c)2015 Roberto Dip <http://roperzh.com>\n * @license Distributed under MIT license\n * @module Jrof... | javascript | chosen |
[
{
"from": "system",
"value": "Rename in map reduce sync test\n"
},
{
"from": "human",
"value": "\r\nvar simplemapreduce = require('../'),\r\n assert = require('assert');\r\n\r\n// mapReduceSync defined\r\n\r\nassert.ok(simplemapreduce.mapReduceSync);\r\nassert.equal(typeof simplemapreduce.map... | javascript | chosen |
[
{
"from": "system",
"value": "Call npm command line instead of using module.\n"
},
{
"from": "human",
"value": "module.exports = function(grunt) {\n var path = require(\"path\");\n\n grunt.registerMultiTask(\"npm-install\", \"Runs npm install.\", function() {\n var done = this.async();\n... | javascript | chosen |
[
{
"from": "system",
"value": "Remove unused name from strip-version tests\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst expect = require('chai').expect;\n\ndescribe('utils : stripVersion', () => {\n const stripVersion = require('../../src/utils/strip-version');\n\n describe('when a... | javascript | chosen |
[
{
"from": "system",
"value": "Adjust Users table DeleteConfirmButtons column width to avoid jitter\n"
},
{
"from": "human",
"value": "export const USERS_TABLE = {\n colRole: 120,\n colSuperAdmin: 90,\n colProvider: 170,\n colScheme: 90,\n colActions: 70,\n}\n"
},
{
"from": "gpt",
... | javascript | chosen |
[
{
"from": "system",
"value": ":bug: Fix error on iOS when script loaded in head\n"
},
{
"from": "human",
"value": "import iOS from './iOS';\nimport dummy from './dummy';\n\nexport default function touchLock(context, callback) {\n const locked = iOS;\n\n function unlock() {\n if (con... | javascript | chosen |
[
{
"from": "system",
"value": "Add untagged ways to road count\n"
},
{
"from": "human",
"value": "var fs = require('fs');\nvar tap = require('tap');\nvar roadCount = require('../../src/metrics/road_count');\nvar empty = JSON.parse(fs.readFileSync('test/fixtures/null.json', 'utf8'));\nvar oneCreat... | javascript | chosen |
[
{
"from": "system",
"value": "Add test for squashed score\n"
},
{
"from": "human",
"value": "const assert = require('assert');\nconst { getAverageScore } = require('../lib/calculations');\n\ndescribe('Calculations work', () => {\n describe('the average is calculated correctly', () => {\n it(... | javascript | chosen |
[
{
"from": "system",
"value": "Remove failing test on Windows\n"
},
{
"from": "human",
"value": "import path from 'path';\nimport test from 'ava';\nimport clintonRuleTester from './fixtures/rule-tester';\n\nconst opts = {\n\tcwd: 'test/fixtures/editorconfig',\n\trules: {\n\t\teditorconfig: 'error... | javascript | chosen |
[
{
"from": "system",
"value": "Add basic tests for Keen.Dataset\n"
},
{
"from": "human",
"value": "describe(\"Keen.Dataset\", function(){\n it(\"should pass\", function(){\n expect(0).to.eql(0);\n });\n});\n"
},
{
"from": "gpt",
"value": "describe(\"Keen.Dataset\", function(){\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Make sure we do not reuse the same reference\n"
},
{
"from": "human",
"value": "'use strict';\n\n\nconst { normalizeFilter } = require('./filter');\nconst { normalizeOrderBy } = require('./order_by');\n\n\n/**\n * Normalize input, i.e. when input can take several sh... | javascript | chosen |
[
{
"from": "system",
"value": "Switch of weak pointers for now as it does not yet play nice with stdout\n"
},
{
"from": "human",
"value": "/**\n * @define {boolean} HS_DEBUG is like goog.DEBUG, but for ghcjs internals\n */\nvar HS_DEBUG = true;\n\n/**\n * @define {boolean} enable weak pointers an... | javascript | chosen |
[
{
"from": "system",
"value": "Set sass base as root of project\n"
},
{
"from": "human",
"value": "const browser = require('browser-sync');\nconst config = require('../../config');\nconst gulp = require('gulp');\nconst handleError = require('../../utilities/handleError');\nconst i... | javascript | chosen |
[
{
"from": "system",
"value": "Add values reordering to survey component.\n"
},
{
"from": "human",
"value": "export default [\n {\n key: 'multiple',\n ignore: true\n },\n {\n type: 'datagrid',\n input: true,\n label: 'Questions',\n key: 'questions',\n tooltip: 'The questio... | javascript | chosen |
[
{
"from": "system",
"value": "Add test for empty alt tag\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar generateRuleTests = require('../../helpers/rule-test-harness');\n\ngenerateRuleTests({\n name: 'img-alt-attributes',\n\n config: true,\n\n good: [\n '<img alt=\"hullo\">'\n ],\... | javascript | chosen |
[
{
"from": "system",
"value": "Add a comment explaining why we delete Mocha globals\n"
},
{
"from": "human",
"value": "// Mocha globals.\nconst { describe, it, beforeEach, afterEach, before, after } = global;\n\n/**\n * @param {String} name\n * @param (testName: String) => Promise) definition Cal... | javascript | chosen |
[
{
"from": "system",
"value": "Correct shuffle not to be in place.\n"
},
{
"from": "human",
"value": "/* exported catane */\n/* Manual define exports since JS Hint does not handle well generators */\n\nconst DICE_DISTRIBUTION = [ 11, 3, 6, 5, 4, 9, 10, 8, 4, 11, 12, 9, 10, 8, 3, 6, 2, 5 ];\n\nfun... | javascript | chosen |
[
{
"from": "system",
"value": "Add FactoryGuy and FactoryGuyTestMixin to the tests jsHint\n"
},
{
"from": "human",
"value": "'use strict';\n\nmodule.exports = {\n normalizeEntityName: function() {},\n\n afterInstall: function() {\n return this.addBowerPackageToProject('ember-data-factory-guy... | javascript | chosen |
[
{
"from": "system",
"value": "CHORE: Update badge to security icon\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport { storiesOf } from '@storybook/react';\nimport { Badge } from '@appearhere/bloom';\n\nstoriesOf('Badge', module)\n .add('Default badge', () => <Badge>Soon</Ba... | javascript | chosen |
[
{
"from": "system",
"value": "Fix contributor URL using id instead of username [SWIK-1953]\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport {creatorAttribute} from './util/ContributorsUtil';\nimport {contains} from './util/ContributorsUtil';\nimport UserPicture from '../../.... | javascript | chosen |
[
{
"from": "system",
"value": "Clear log tab timeout on unmount\n"
},
{
"from": "human",
"value": "import React from 'react'\nimport LogTabMutation from 'js/mutations/LogTabMutation'\nimport PropTypes from 'prop-types'\nimport { incrementTabsOpenedToday } from 'js/utils/local-user-data-mgr'\nimpo... | javascript | chosen |
[
{
"from": "system",
"value": "Update the task according to Autoprefixer API changes\n"
},
{
"from": "human",
"value": "/*\n * grunt-autoprefixer\n * \n *\n * Copyright (c) 2013 Dmitry Nikitenko\n * Licensed under the MIT license.\n */\n\n'use strict';\n\nmodule.exports = function (grunt) {\n\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Change the comments about jQuery and require.js\n"
},
{
"from": "human",
"value": "document.addEventListener(\"DOMContentLoaded\", function() {\n var acosAplusResizeIframe = function($, window, document, undefined) {\n var exerciseWrapper = $('#exercise-page-con... | javascript | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.