conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Use System.import instead of require\n\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport {render} from 'react-dom';\nimport {AppContainer} from 'react-hot-loader';\n\nimport store from './store';\nimport Root from './Root';\n\nrender(\n <AppCo... | javascript | chosen |
[
{
"from": "system",
"value": "Stop rendering undefined css class\n"
},
{
"from": "human",
"value": "import React from 'react'\n\nexport const Container = ({ children, className, ...props }) => (\n <div className={`py-8 sm:py-10 ${className}`} {...props}>\n {children}\n </div>\n)\n"
},
{... | javascript | chosen |
[
{
"from": "system",
"value": "Implement yen mark and comma.\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport Paper from 'material-ui/Paper';\nimport Table, {\n TableBody,\n TableCell,\n TableHead,\n TableRow\n} from 'material-ui/Table';\n\nimport TaxCalculator from '../l... | javascript | chosen |
[
{
"from": "system",
"value": "Fix ISE if the UA header is missing\n"
},
{
"from": "human",
"value": "/**\n * Module dependencies.\n */\n\nvar config = require('lib/config');\nvar jade = require('jade');\nvar path = require('path');\nvar resolve = path.resolve;\nvar t = require('t-component');\nv... | javascript | chosen |
[
{
"from": "system",
"value": "Use SwitchTextType package in ProseEditor.\n"
},
{
"from": "human",
"value": "import BasePackage from '../base/BasePackage'\nimport ParagraphPackage from '../paragraph/ParagraphPackage'\nimport HeadingPackage from '../heading/HeadingPackage'\nimport CodeblockPackage... | javascript | chosen |
[
{
"from": "system",
"value": "Stop seeding DB by default\n"
},
{
"from": "human",
"value": "var Config = {};\nConfig.db = {};\nConfig.app = {};\nConfig.auth = {};\n\nConfig.db.host = 'localhost:27017';\nConfig.db.name = 'lcf-dev-db';\n\n// Use environment defined port or 3000\nConfig.app.port = ... | javascript | chosen |
[
{
"from": "system",
"value": "Add cp as default parameter in constructor\n"
},
{
"from": "human",
"value": "'use strict'\n\nclass Monster {\n\n constructor(name) {\n this.name = name;\n this.cp = 100;\n }\n\n attack() {\n console.log(`Attack ${this.cp} points!`);\n }\n\... | javascript | chosen |
[
{
"from": "system",
"value": "Use app name from app.json for registering application\n\nSummary:\nCurrently when we change the app name in `app.json`, run `react-native eject` and then run the application, we get the following error `Application HelloWorld2 has not been registered`\n\n<img src=\"https://use... | javascript | chosen |
[
{
"from": "system",
"value": "Fix event from iframe not evaluated\n"
},
{
"from": "human",
"value": "/**\n * Does the origin sending the message match the current host?\n * if not dev/null the request\n *\n * @param {MessageEvent} e A message received by a target object.\n */\nexport function if... | javascript | chosen |
[
{
"from": "system",
"value": "Load the options page on install\n"
},
{
"from": "human",
"value": "chrome.extension.onRequest.addListener(function(request, sender, sendResponse) {\n if (request.method == \"getSettings\") {\n sendResponse({\n urls_to_jirafy: localStorage['urls_to_ji... | javascript | chosen |
[
{
"from": "system",
"value": "Remove excessive newlines at the end of file\n"
},
{
"from": "human",
"value": " 'use strict';\n require('./cookie-functions.js');\n require('govuk_publishing_components/components/cookie-banner.js');\n\n window.GOVUK.DEFAULT_COOKIE_CONSENT = {\n 'essential': ... | javascript | chosen |
[
{
"from": "system",
"value": "Add fully functional timer for objects\n"
},
{
"from": "human",
"value": "if(document.getElementById(\"countdown-holder\")){\n var end_time = document.getElementById(\"countdown-holder\");\n var start_time = new Date(Date.now())\n var start_time_plus_four_hours =... | javascript | chosen |
[
{
"from": "system",
"value": ":+1: Check using inexactly object type.\n"
},
{
"from": "human",
"value": "const package = require('./package.json')\n\nmodule.exports = {\n parser: 'babel-eslint',\n env: {\n browser: true,\n commonjs: true,\n es6: true,\n jest: true,\n node: true\... | javascript | chosen |
[
{
"from": "system",
"value": "Upgrade nodejs config to latest release\n"
},
{
"from": "human",
"value": "'use strict'\n\nmodule.exports = {\n parser: 'babel-eslint',\n\n extends: [\n '@strv/javascript/environments/nodejs/v7',\n '@strv/javascript/environments/nodejs/optional',\n '@strv... | javascript | chosen |
[
{
"from": "system",
"value": "Fix reducers for node envirement\n"
},
{
"from": "human",
"value": "import { INCREMENT_COUNTER, DECREMENT_COUNTER, NOTIFY_SEND, NOTIFY_RECEIVE } from '../constants/ActionTypes';\n\nexport default function counter(state = { count: 0 }, action) {\n if (window.bgBadge... | javascript | chosen |
[
{
"from": "system",
"value": "Remove extra call to recalculateVisibility\n"
},
{
"from": "human",
"value": "var viewModel = null;\nvar LogError = null;\n\n// This function is run when the app is ready to start interacting with the host application.\n// It ensures the DOM is ready before updatin... | javascript | chosen |
[
{
"from": "system",
"value": "Use the correct class name in the jobs widget\n"
},
{
"from": "human",
"value": "import _ from 'underscore';\n\nimport { getCurrentUser } from 'girder/auth';\nimport JobListWidget from 'girder_plugins/jobs/views/JobListWidget';\n\nimport events from '../events';\nim... | javascript | chosen |
[
{
"from": "system",
"value": "Fix JS require for hotwired/turbo\n"
},
{
"from": "human",
"value": "/* eslint no-console:0 */\n// This file is automatically compiled by Webpack, along with any other files\n// present in this directory. You're encouraged to place your actual application logic in\n... | javascript | chosen |
[
{
"from": "system",
"value": "FIX (revisions): Fix revision history link\n"
},
{
"from": "human",
"value": "'use strict';\n\nangular.module('gisto.service.githubUrlBuilder', [], function ($provide) {\n $provide.factory('githubUrlBuilderService', function (ghAPI, $filter, $rootScope) {\n\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Allow piping in the response event\n"
},
{
"from": "human",
"value": "\nmodule.exports = HTTPDuplex\n\nvar util = require('util')\n , http = require('http')\n , https = require('https')\n , stream = require('stream')\n\nutil.inherits(HTTPDuplex, stream.Duplex)\n\... | javascript | chosen |
[
{
"from": "system",
"value": "Send 200 for cross-domain OPTIONS preflight requests."
},
{
"from": "human",
"value": "// Allow serving from another domain or protocol\nmodule.exports = function(req, res, next) {\n res.header(\"Access-Control-Allow-Origin\", \"*\");\n res.header(\"Access-Control... | javascript | chosen |
[
{
"from": "system",
"value": "Change the listenign port number\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar app = require('./index');\nvar http = require('http');\n\nvar server;\n\n/*\n * Create and start HTTP server.\n */\n\nserver = http.createServer(app);\nserver.listen(process.env... | javascript | chosen |
[
{
"from": "system",
"value": "Change name of generated webpack bundle\n\nEnduire was the work-in-progress name I used.\n"
},
{
"from": "human",
"value": "import os from 'os';\nimport path from 'path';\n\nimport requireRelative from 'require-relative';\nimport webpack from 'webpack';\n\nconst OUT... | javascript | chosen |
[
{
"from": "system",
"value": "Add version dynamically from package.json\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\n\nvar program = require('commander');\nvar gitLabel = require('git-label');\n\n\nprogram\n .version('2.0.0')\n .option('-a, --api <api>', 'API endpoint url')\n .opti... | javascript | chosen |
[
{
"from": "system",
"value": "Fix webpack critical dependency warning\n\n(Closes #20)"
},
{
"from": "human",
"value": "(function () {\n var moment, replacements;\n\n if (typeof require !== \"undefined\" && require !== null) {\n moment = require('moment');\n } else {\n moment = this.mome... | javascript | chosen |
[
{
"from": "system",
"value": "Bring Marcin back to the copyright info ;)\n"
},
{
"from": "human",
"value": "/*!\n * Handsontable @@version\n * Handsontable is a JavaScript library for editable tables with basic copy-paste compatibility with Excel and Google Docs\n *\n * Copyright @@year Handsonc... | javascript | chosen |
[
{
"from": "system",
"value": "Rename the default shader chunk to \"default_*\"\n"
},
{
"from": "human",
"value": "/**\n * @author jbouny / https://github.com/fft-ocean\n */\n \nTHREE.ShaderChunk[\"lod_pars_vertex\"] = [\n\t\t\n\t\t'vec4 computePosition( vec4 position )',\n\t\t'{',\n\t\t' return ... | javascript | chosen |
[
{
"from": "system",
"value": "Use os.homedir in shell.showItemInFolder example\n"
},
{
"from": "human",
"value": "var fileMangerBtn = document.getElementById('open-file-manager');\nvar shell = require('electron').shell;\n\nfileMangerBtn.addEventListener('click', function (event) {\n shell.showI... | javascript | chosen |
[
{
"from": "system",
"value": "Move licenses into better scope\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar fs = require('fs');\nvar path = require('path');\nvar dir = require('node-dir');\nvar q = require('q');\n\nvar findLicenses = function () {\n var licenses = [];\n\n var def... | javascript | chosen |
[
{
"from": "system",
"value": "Fix direct exporting of imports\n"
},
{
"from": "human",
"value": "import _Store from './store';\nexport const Store = _Store;\n\n//Export types\nimport _union from './types/union';\nimport _Any from './types/any';\nimport _Nil from './types/nil';\nimport _reference... | javascript | chosen |
[
{
"from": "system",
"value": "Create link for different platforms\n"
},
{
"from": "human",
"value": "var Request = require('request-promise')\nvar Querystring = require('querystring')\n\nvar HuntMe = function(apiKey) {\n this.config = {\n createLink: \"http://api.hnt.me/links?accessTok... | javascript | chosen |
[
{
"from": "system",
"value": "Fix loading using local gateway\n\nFix #142"
},
{
"from": "human",
"value": "'use strict'\n\nimport React from 'react'\nimport { render } from 'react-dom'\n\nimport { version } from '../package.json'\n\nimport redirectToHttps from './utils/https'\n\nimport { BigSpin... | javascript | chosen |
[
{
"from": "system",
"value": "Fix failing jasmine tests due to 'controllerAs' syntax refactoring.\n\n(cherry picked from commit 6e7371a89573caa23446df53a78879532433d2d0)\n"
},
{
"from": "human",
"value": "'use strict';\n\ndescribe('middlewareAddDatasourceController', function() {\n var rootScop... | javascript | chosen |
[
{
"from": "system",
"value": "Fix broken PR tab when loading page directly\n\nThis appears to have stopped working recently, but it does not appear\nto be related to any changes within the component itself.\n\nI'm adding a guard here as a stop-gap, though we'll need to track down\nlater what the data change... | javascript | chosen |
[
{
"from": "system",
"value": "Use global auth check per Integration API handler\n"
},
{
"from": "human",
"value": "\n'use strict';\n\nconst\n express = require('express'),\n router = express.Router();\n\nmodule.exports = passport => {\n\n router.get(\n '/',\n passport.authenticate('bea... | javascript | chosen |
[
{
"from": "system",
"value": "Use a hamburger icon instead of back icon\n"
},
{
"from": "human",
"value": "/* @flow */\n\"use strict\";\n\nimport ViewController from \"$LIB/ViewController\";\nimport {createMenuView} from \"$VIEWS/MenuView\";\n\nimport navigationBar from \"$WIDGETS/bars/navigatio... | javascript | chosen |
[
{
"from": "system",
"value": "Write documentation for Main Helio Object\n"
},
{
"from": "human",
"value": "(function (A, M, D) {\n\n // Asynchronous Module Definition, if available\n\n /*globals YUI: false, module: false, define: false*/\n\n if (typeof module !== \"undefined\" && module.expor... | javascript | chosen |
[
{
"from": "system",
"value": "Make `value` a const in scope\n\nWe do not mutate it here, and i just dont like `var`....\n"
},
{
"from": "human",
"value": "module.exports = function (proto, properties) {\n for (const property in properties) {\n var value = properties[property];\n if (proto... | javascript | chosen |
[
{
"from": "system",
"value": "Add options for connecting with Fleet\n"
},
{
"from": "human",
"value": "/**\n * @package admiral\n * @author Andrew Munsell <andrew@wizardapps.net>\n * @copyright 2015 WizardApps\n */\n\nvar nconf = require('nconf')\n .argv({\n 'h': {\n describ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix for links not working if there was only one type of link for a blog entry\n"
},
{
"from": "human",
"value": "import moment from 'moment';\nimport formatDescription from './format-description';\nimport { extractATOMPostImage } from './extract-post-image';\n\nfunc... | javascript | chosen |
[
{
"from": "system",
"value": "Debug logging on twitter stream disconnect\n"
},
{
"from": "human",
"value": "YUI.add(\"stream-base\", function(Y) {\n \"use strict\";\n \n var StreamBase;\n \n StreamBase = function() {\n this.publish(\"tweet\", {\n preventable : fa... | javascript | chosen |
[
{
"from": "system",
"value": "Fix regexp pattern of GIF signature\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar gifRegexp = /^GIF8[7,9]a/;\nfunction isGIF (buffer) {\n var signature = buffer.toString('ascii', 0, 6);\n return (gifRegexp.test(signature));\n}\n\nfunction calculate(buffe... | javascript | chosen |
[
{
"from": "system",
"value": "Fix showing Cluster Template info on Cluster details\n\nCluster details view doesn't show Cluster Template\ninformation. This patch fixes it.\n\nChange-Id: I4eccda8cdd125f12bd536a3e7af670f1930ca884\nCloses-Bug: #1624275\n"
},
{
"from": "human",
"value": "/*\n * Lice... | javascript | chosen |
[
{
"from": "system",
"value": "BB-1049: Address form om frontend does not work\n"
},
{
"from": "human",
"value": "define([\n 'backbone',\n 'routing',\n 'oroaddress/js/region/model'\n], function(Backbone, routing, RegionModel) {\n 'use strict';\n\n /**\n * @export oroaddress/js... | javascript | chosen |
[
{
"from": "system",
"value": "Add test for behaviour when FPS is not set\n"
},
{
"from": "human",
"value": "describe(\"AnimationFrameRequest\", function() {\n beforeAll(function() {\n timeVirtualizer.virtualize();\n });\n\n it(\"triggers required number of times when FPS is set\"... | javascript | chosen |
[
{
"from": "system",
"value": "Add example usage of HoC\n"
},
{
"from": "human",
"value": "import React, { PureComponent } from 'react';\nimport cx from 'classnames';\nimport PropTypes from 'prop-types';\n\nimport Box from '../box';\nimport theme from './theme.css';\n\nclass LoadingBar extends Pu... | javascript | chosen |
[
{
"from": "system",
"value": "TM-19: Merge remote-tracking branch 'origin/TM-18' into TM-19\n"
},
{
"from": "human",
"value": "define(\n 'ephox.alloy.behaviour.sandboxing.SandboxSchema',\n\n [\n 'ephox.alloy.data.Fields',\n 'ephox.boulder.api.FieldSchema',\n 'ephox.katamari.api.Cell',... | javascript | chosen |
[
{
"from": "system",
"value": "Store default value in root.\n"
},
{
"from": "human",
"value": "function Supersede (value) {\n this._root = {}\n this._value = value\n}\n\nSupersede.prototype.set = function (path, value) {\n var node = this._root\n\n for (var i = 0, I = path.length; i <... | javascript | chosen |
[
{
"from": "system",
"value": "Fix test error on node v0.10.x\n"
},
{
"from": "human",
"value": "'use strict'\n\nvar url = require('url');\n\nfunction ChinachuClient(options) {\n var urlObj = url.parse(options.url);\n urlObj.auth = options.user + ':' + options.password;\n if (!urlObj.path.ends... | javascript | chosen |
[
{
"from": "system",
"value": "Integrate socket and http routes\n"
},
{
"from": "human",
"value": "var express = require('express');\nvar app = express();\nvar server = require('http').Server(app);\nvar io = require('socket.io')(server);\nvar path = require('path');\nvar morgan = require('morgan'... | javascript | chosen |
[
{
"from": "system",
"value": "TEST: Increase pause before clicking diagnosis node\n\nThis fixes an issue when page is rendered with no scope diagnosis\nnodes when a node clicked too fast.\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar log = require('../modules/log');\n\nexports.command ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix reference to undefined 'Promise' in tests (node v0.10.48)\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar expect = require('expect');\nvar ioc = require('../');\n\ndescribe('.stop()', function () {\n it('should call stop on all active instances', functi... | javascript | chosen |
[
{
"from": "system",
"value": "Edit spaces for Post.findAll(). Add User.findRecent()\n"
},
{
"from": "human",
"value": "\"use strict\";\n\n// src/app.js\n\nimport { Post } from \"./post\";\nimport { ui } from \"./ui\";\n\nPost.findAll()\n.then(ui.renderPosts)\n.catch( (error) => console.error(\"E... | javascript | chosen |
[
{
"from": "system",
"value": "Update config to use environment variables and change Eventbrite token\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar env = process.env,\n path = require('path');\n\nmodule.exports = {\n env : env.NODE_ENV,\n isDevelopment: env.NODE_ENV !... | javascript | chosen |
[
{
"from": "system",
"value": "Add cors header to example\n"
},
{
"from": "human",
"value": "const http = require(\"http\")\nconst url = require(\"url\")\nconst namor = require(\"namor\")\n\nconst server = http.createServer((req, res) => {\n\tconst { query } = url.parse(req.url, true)\n\n\tconst ... | javascript | chosen |
[
{
"from": "system",
"value": "Test that OuiBounce cookies get dropped\n"
},
{
"from": "human",
"value": "var should = require('should'),\n Zombie = require('zombie'),\n path = require('path');\n\nvar browser = new Zombie(),\n test_page_path = 'file://' + path.join(__dirname, 'i... | javascript | chosen |
[
{
"from": "system",
"value": "Add a note per @dyakovlev's comment\n"
},
{
"from": "human",
"value": "const clean = require('./clean.js');\nconst setup = require('./setup.js');\nconst test = require('./test.js');\nconst distribute = require('./distribute.js');\n\nconst { trap } = require('../lib.... | javascript | chosen |
[
{
"from": "system",
"value": "Change string singlequotes to doublequotes\n\n"
},
{
"from": "human",
"value": "var hexcolor = document.getElementById('hexcolor');\nvar clock = document.getElementById('clock');\nvar hexColor = document.getElementById('hex-color');\n\nfunction colorClock() {\n var... | javascript | chosen |
[
{
"from": "system",
"value": "Fix bug where it skips starting point\n"
},
{
"from": "human",
"value": "var dom = require('./src/dom.js');\nvar notify = require('./src/notify.js');\nvar end = 0;\nvar state = 0;\nvar message = '';\nvar timeoutID = null;\nvar output = dom('title, h1');\nvar icon = ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix test race condition with DOMContentLoaded\n\nTest tap could somtimes fire before the event handlers were added\n"
},
{
"from": "human",
"value": "suite('Tap', function() {\n test('Up and Down', function(done) {\n prepare(target, 'tap', done);\n target.dis... | javascript | chosen |
[
{
"from": "system",
"value": "Use new player API that describes complete object and is in good namespace\n"
},
{
"from": "human",
"value": "App = Ember.Application.create();\n\nApp.Router.map(function() {\n this.resource('games');\n this.resource('players', function() {\n this.resource('pla... | javascript | chosen |
[
{
"from": "system",
"value": "Remove unused methods from `Status` object\n"
},
{
"from": "human",
"value": "var util = require('util'),\n events = require('events'),\n _ = require('underscore');\n\nfunction Status(data) {\n this.data = {\n sha: data.sha,\n target_url: data.targ... | javascript | chosen |
[
{
"from": "system",
"value": "Add 'declared lost' to overridable conditions list (UIU-1208)\n"
},
{
"from": "human",
"value": "export default [\n {\n message: 'loan is not renewable',\n showDueDatePicker: true,\n },\n {\n message: 'item is not loanable',\n showDueDatePicker: true,... | javascript | chosen |
[
{
"from": "system",
"value": "Add hooks to the right place\n"
},
{
"from": "human",
"value": "module.exports = {\n parser: \"@typescript-eslint/parser\",\n extends: [\n \"plugin:react/recommended\",\n \"plugin:react-hooks\",\n \"plugin:@typescript-eslint/recommended\",\n \"prettier... | javascript | chosen |
[
{
"from": "system",
"value": "Add a comment about smooth scroll\n"
},
{
"from": "human",
"value": "$('a[href^=\"#\"]').on('click', function(event) {\n\tvar target = $(this.getAttribute('href'));\n\tif (target.length) {\n\t\tevent.preventDefault();\n\t\t$('html, body').stop().animate( {\n\t\t\tsc... | javascript | chosen |
[
{
"from": "system",
"value": "Fix to javascript file. Did not pass callback\n"
},
{
"from": "human",
"value": "function IntentPlugin() {\n 'use strict';\n}\n\nIntentPlugin.prototype.getCordovaIntent = function(successCallback, failureCallback) {\n 'use strict';\n\n return cordova.exec (... | javascript | chosen |
[
{
"from": "system",
"value": "Update modules() to allow existing tests to pass.\n"
},
{
"from": "human",
"value": "var load = require('./load')\nvar filter = require('./filter')\nvar compact = require('./compact')\n\nmodule.exports = function (criteria, cwd) {\n return compact(\n filter(\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix bad URL schema for list that would could direct URL with no ID not to always match\n"
},
{
"from": "human",
"value": "\nangular.module('app')\n.config(function ($stateProvider, $urlRouterProvider, $locationProvider) {\n\t// TODO: Enable this when server is prope... | javascript | chosen |
[
{
"from": "system",
"value": "Add is and id functions for cache\n"
},
{
"from": "human",
"value": "/* @flow */\n\nimport Ebus from 'ebus';\nimport SbCache from 'sbcache';\nimport * as Constants from './lib/Constants';\n\nexport type Bus = {\n\ton(event: string, callback: Function, priority?: num... | javascript | chosen |
[
{
"from": "system",
"value": "Verify that the parser is exported\n\nDid this step backwards, first I refactored to export then I wrote the\ntest to verify.\nVerify that the scraper module exports a parser interface.\n"
},
{
"from": "human",
"value": "var scraper = require('../devUtils/nephi-scra... | javascript | chosen |
[
{
"from": "system",
"value": "Apply brand theme to navigation tab bar\n"
},
{
"from": "human",
"value": "import { StyleSheet } from 'react-native';\nimport { MAIN_CERISE, WHITE, SECONDARY_GRAY } from './components/common/colors';\n\nconst TabBarStyles = StyleSheet.create({\n label: {\n color... | javascript | chosen |
[
{
"from": "system",
"value": "Convert explain to yield function\n"
},
{
"from": "human",
"value": "const _ = require('lodash');\n\nconst {gen: tcg} = require('testcheck');\n\nconst {invalidString} = require('./conform');\nconst explainData = require('./explainData');\nconst {gen} = require('./ge... | javascript | chosen |
[
{
"from": "system",
"value": "feat: Add mutable koan for Maps\n"
},
{
"from": "human",
"value": "describe(\"About Maps\", function () {\n\n describe(\"Basic Usage\", function () {\n\n it(\"should understand they are key, value stores\", function () {\n var trooper = new Map();\n\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Remove showing cursor at end of prompt. cli-cursor handles it\n"
},
{
"from": "human",
"value": "'use strict';\nvar _ = require('lodash');\nvar readlineFacade = require('readline2');\n\n\n/**\n * Base interface class other can inherits from\n */\n\nvar UI = module.e... | javascript | chosen |
[
{
"from": "system",
"value": "Add random GOV.UK organisation lookup\n\nI needed to practice GOV.UK registers anyway\n"
},
{
"from": "human",
"value": "const request = require('request-promise')\nmodule.exports = {\n commands: {\n govuk: {\n help: 'Returns a random GOV.UK page',\n f... | javascript | chosen |
[
{
"from": "system",
"value": "Fix ceph rbd storage class issue\n\nhttps://github.com/rancher/rancher/issues/13198\n"
},
{
"from": "human",
"value": "import Component from '@ember/component';\nimport layout from './template';\nimport StorageClassProvisioner from 'shared/mixins/storage-class-provi... | javascript | chosen |
[
{
"from": "system",
"value": "Include Inflect port to app\n"
},
{
"from": "human",
"value": "/**\n * Created by aldo on 5/5/14.\n */\n'use strict';\n\nvar services = angular.module('fortuneAdmin.Services', []);"
},
{
"from": "gpt",
"value": "/**\n * Created by aldo on 5/5/14.\n */\n'... | javascript | chosen |
[
{
"from": "system",
"value": "Adjust static file location for index.html\n"
},
{
"from": "human",
"value": "var morgan = require('morgan');\nvar bodyParser = require('body-parser');\n\nmodule.exports = (app, express) => {\n app.use(morgan('dev'));\n app.use(bodyParser.urlencoded({extended: tru... | javascript | chosen |
[
{
"from": "system",
"value": "Fix broken search for blame- class\n"
},
{
"from": "human",
"value": "$(function(){\n $(\".blame\").hover(function() {\n if (!$(this).hasClass(\"load\"))\n return;\n var classList = $(this).prop('classList');\n var blameSha1 = null;\n var sha1 = nu... | javascript | chosen |
[
{
"from": "system",
"value": "Add rpc method to search for code search\n"
},
{
"from": "human",
"value": "// Requires\nvar Q = require('q');\nvar _ = require('lodash');\n\nfunction SearchRPCService(search) {\n this.search = search;\n\n _.bindAll(this);\n}\n\nSearchRPCService.prototype.file... | javascript | chosen |
[
{
"from": "system",
"value": "Add UserInput story for both boolen states for enabled.\n"
},
{
"from": "human",
"value": "/**\n * External dependencies\n */\nimport { storiesOf } from '@storybook/react';\n\n/**\n * Internal dependencies\n */\nimport UserInputApp from '../assets/js/components/user... | javascript | chosen |
[
{
"from": "system",
"value": "Use staticCache if option is set\n"
},
{
"from": "human",
"value": "require('./dotenv')();\n\nexports.config = null;\nexports.run = null;\n\nexports.start = function start(options){\n options = options || {};\n options.port = options.port || process.env.PORT |... | javascript | chosen |
[
{
"from": "system",
"value": "Read current version from `package.json`\n"
},
{
"from": "human",
"value": "var VERSION = '1.0.0';\n\nvar _ = require('lodash');\n\nvar DEFAULT_API_URL = 'https://api.podio.com:443';\n\nvar utils = require('./utils');\nvar GeneralLib = require('./general');\nvar Aut... | javascript | chosen |
[
{
"from": "system",
"value": "Allow passing multiple outputs for a single universe\n"
},
{
"from": "human",
"value": "import {Fixture} from './fixture'\n\nlet universeData\n\nexport default function (universeRenderers) {\n return {\n before () {\n universeData = {}\n Object.keys(un... | javascript | chosen |
[
{
"from": "system",
"value": "Use geocoder reject message in non-profile address search\n"
},
{
"from": "human",
"value": "(function () {\n 'use strict';\n\n /* ngInject */\n function LocationsController($scope, $state, Geocoder, NavbarConfig, Notifications, ProfileService) {\n v... | javascript | chosen |
[
{
"from": "system",
"value": "Add the test case for thClick\n"
},
{
"from": "human",
"value": "var expect = require('chai').expect;\nvar sinon = require('sinon');\nvar ColumnShifter = require('component/grid/projection/column-shifter');\nvar Base = require('component/grid/projection/base');\nvar... | javascript | chosen |
[
{
"from": "system",
"value": "Fix for intel routing changes"
},
{
"from": "human",
"value": "// ==UserScript==\n// @id iitc-plugin-chat-tools@hansolo669\n// @name IITC plugin: chat tools\n// @category Tweaks\n// @version 0.1.0\n// @namespace https://github... | javascript | chosen |
[
{
"from": "system",
"value": "Fix deprecated disableClick prop on Dropzone\n\nRef: https://github.com/react-dropzone/react-dropzone/commit/1402362dd16a349761187a29cca356628b23b798"
},
{
"from": "human",
"value": "import React from \"react\";\nimport Dropzone from \"react-dropzone\";\nimport \"./... | javascript | chosen |
[
{
"from": "system",
"value": "Fix statics not being copied to the root directory\n"
},
{
"from": "human",
"value": "process.env.NODE_ENV = 'production'\n\nrequire('colors')\n\nvar\n shell = require('shelljs'),\n path = require('path'),\n env = require('./env-utils'),\n css = require('./css-u... | javascript | chosen |
[
{
"from": "system",
"value": "Use the right property name to detect real credentials\n\nI assume this was an error on my part in trying to make the tests\npending when there are no credentials.\n"
},
{
"from": "human",
"value": "suite('bin/schedule-hooks.js', function() {\n var assert ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix prettier config to remove unecessary diff\n"
},
{
"from": "human",
"value": "const webpack = require('webpack')\nconst path = require('path')\nconst fs = require('fs')\n\nconst output = path.join(__dirname, 'output', 'webpack')\nconst loader = path.join(__dirnam... | javascript | chosen |
[
{
"from": "system",
"value": ":shirt: Fix lint issue for spec\n"
},
{
"from": "human",
"value": "'use babel'\n\nimport { React, TestUtils } from 'react-for-atom'\nimport TagsComponent from '../../../lib/react/cells/tags-component'\n\ndescribe('react/cells/tags-component', function () {\n let re... | javascript | chosen |
[
{
"from": "system",
"value": "Fix loading js after turbolinks load\n"
},
{
"from": "human",
"value": "var init = function() {\n countChars(500, $('#submission_description'));\n countChars(500, $('#submission_goals'));\n countChars(255, $('#submission_problems'));\n menuCollapse($('#btn-menu'... | javascript | chosen |
[
{
"from": "system",
"value": "Fix TabStore to ensure that an object is always loaded\n"
},
{
"from": "human",
"value": "(function (h) {\n 'use strict';\n\n /* The tab store ensures that the current state of the browser action\n * is persisted between browser sessions. To do this it uses an e... | javascript | chosen |
[
{
"from": "system",
"value": "Add global userFullName to0 capture logged in user's name\n"
},
{
"from": "human",
"value": "// The Vue build version to load with the `import` command\n// (runtime-only or standalone) has been set in webpack.base.conf with an alias.\n/* eslint-disable */\nimport Vu... | javascript | chosen |
[
{
"from": "system",
"value": "Add status sort for experiments\n"
},
{
"from": "human",
"value": "import React, { Component, PropTypes } from 'react';\nimport { bindActionCreators } from 'redux';\nimport { connect } from 'react-redux';\nimport * as experimentsActions from '../actions/experimentsA... | javascript | chosen |
[
{
"from": "system",
"value": "Clear the screen between frames in asteroids\n"
},
{
"from": "human",
"value": "function StaticAsteroids(num, ctx) {\n var x;\n var y;\n var nextPt = function(pt) {\n var sign = Math.random() < 0.5 ? -1 : 1;\n return pt + (sign * Math.random()... | javascript | chosen |
[
{
"from": "system",
"value": "Fix acceptance timeouts on newer Ember versions\n"
},
{
"from": "human",
"value": "import { module, test, skip } from 'qunit';\nimport { setupApplicationTest } from 'ember-qunit';\nimport { visit } from '@ember/test-helpers';\nimport { run } from '@ember/runloop';\n... | javascript | chosen |
[
{
"from": "system",
"value": "Add session-based tracking for return visits.\n"
},
{
"from": "human",
"value": "var ua = require('universal-analytics');\n\nfunction Analytics( config ) {\n var self = this;\n self._id = config.id;\n \n self.extends = {\n services: {\n http: {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Allow fxpay scripts to be re-entrant\n\nWhen running require JS tests the scripts\nseem to get reloaded. I guess that's OK.\n"
},
{
"from": "human",
"value": "// This is a minimal bootstrapping script that defines the fxpay\n// namespace and allows all other modules... | javascript | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.