conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Add debouncing for hardware switches, fix bug where both buttons were mapped to\nreset.\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar events = require('events'),\n process = require('process'),\n util = require('util');\n\n// This only works on the r... | javascript | chosen |
[
{
"from": "system",
"value": "Fix buildURL to match ember-data signature.\n\nThis was missing the snapshot argument, which could screw up anyone\noverriding buildUrl.\n"
},
{
"from": "human",
"value": "import Ember from 'ember';\n\nconst { assert } = Ember;\n\nexport default function buildOperat... | javascript | chosen |
[
{
"from": "system",
"value": "Fix isSymbol for native and polyfill\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar toString = Object.prototype.toString\n , toStringTag = require('./').toStringTag\n\n , id = '[object Symbol]'\n , Global = (typeof Symbol === 'undefined') ? null : Sym... | javascript | chosen |
[
{
"from": "system",
"value": "Update kind -> category for assignment lists\n"
},
{
"from": "human",
"value": "import Ember from 'ember';\nimport AuthenticatedRouteMixin from 'ember-simple-auth/mixins/authenticated-route-mixin';\n\nexport default Ember.Route.extend(AuthenticatedRouteMixin, {\n c... | javascript | chosen |
[
{
"from": "system",
"value": "FE: Send GA event when print page button is clicked\n"
},
{
"from": "human",
"value": "(function () {\n 'use strict';\n\n moj.Modules.PrintPageButton = {\n init: function() {\n this.initTemplates();\n this.renderButton();\n },\n\n renderButton: ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix the issue that error message still shows up after swithed to another cloud provider\n\nhttps://github.com/rancher/rancher/issues/10855\n"
},
{
"from": "human",
"value": "import Controller from '@ember/controller';\nimport { inject as service } from '@ember/servi... | javascript | chosen |
[
{
"from": "system",
"value": "Use base_url to form metrics url\n\nOtherwise this ends up not working in cases where\nthe notebook is hosted (like JupyterHub) with a\ndifferent base_url\n"
},
{
"from": "human",
"value": "define(['jquery'], function ($) {\n var displayDiv = null;\n\n functio... | javascript | chosen |
[
{
"from": "system",
"value": "[CHORE] Update User.createEncrypted call to use new argument object syntax.\n"
},
{
"from": "human",
"value": "var User = require('../models/user'),\n GatewayAccount = require(\"../models/gateway_account\"),\n utils = require('../../lib/utils'),\n\t\tutil = re... | javascript | chosen |
[
{
"from": "system",
"value": ":arrow_up: Upgrade cli to latest version\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\n'use strict'\nprocess.title = 'ucompiler'\n\nrequire('debug').enable('UCompiler:*')\nvar UCompiler = require('..')\nvar knownCommands = ['go', 'watch']\nvar parameters =... | javascript | chosen |
[
{
"from": "system",
"value": "Update SVG when component is updated\n"
},
{
"from": "human",
"value": "import React, { Component, PropTypes } from 'react';\nimport SVGInjector from 'svg-injector';\n\nexport default class ReactSVG extends Component {\n\n static defaultProps = {\n evalScripts: ... | javascript | chosen |
[
{
"from": "system",
"value": "Add some documentation for the utils library\n"
},
{
"from": "human",
"value": "Blackjack.Utils = {\n score: function(cards) {\n var sum = 0, ace;\n\n for (var i = 0, value; i < cards.length; i+=1) {\n if (cards[i].rank === 'J' || cards[i... | javascript | chosen |
[
{
"from": "system",
"value": ":sparkles: Add controlled version of 'DropzoneDialog'- exported as 'DropzoneDialogBase'\n"
},
{
"from": "human",
"value": "export {default as DropzoneArea} from './components/DropzoneArea';\nexport {default as DropzoneAreaBase} from './components/DropzoneAreaBase';\... | javascript | chosen |
[
{
"from": "system",
"value": "Change to only register New Relic in production\n"
},
{
"from": "human",
"value": "// This is the entry file for the whole project.\n// When executed it boots up the game server.\n\nrequire('newrelic');\nrequire('./server/bootstrap');\n"
},
{
"from": "gpt",
... | javascript | chosen |
[
{
"from": "system",
"value": "Fix caret jumping to end of line on truncation.\n"
},
{
"from": "human",
"value": "$( document ).ready(function() {\n\n truncAll();\n\n $('.i2').on('keyup', _.debounce(function (e) {\n trunc($(this));\n }, 200));\n\n $('.i1, .i2').on('mouseover', function(e){... | javascript | chosen |
[
{
"from": "system",
"value": "Make using enter valid for submitting searches\n"
},
{
"from": "human",
"value": "function registerHeader(doc){\n class WuZhuHeader extends HTMLElement {\n createdCallback(){\n this._root = this.createShadowRoot();\n this._template = doc.querySelecto... | javascript | chosen |
[
{
"from": "system",
"value": "Add legacy support for i18n and backbone\n"
},
{
"from": "human",
"value": "//Generator http://patorjk.com/software/taag/#p=display&h=1&f=Banner4&t=Focus-COMPONENTS\nimport './style';\nconst infos = require(`${__PACKAGE_JSON_PATH__}/package.json`);\n\nimport compone... | javascript | chosen |
[
{
"from": "system",
"value": "Add new plugins to bundle\n"
},
{
"from": "human",
"value": "const Core = require('./core')\n\n// Parent\nconst Plugin = require('./core/Plugin')\n\n// Orchestrators\nconst Dashboard = require('./plugins/Dashboard')\n\n// Acquirers\nconst Dummy = require('./plugins/... | javascript | chosen |
[
{
"from": "system",
"value": "Refactor reference to audio as a variable\n"
},
{
"from": "human",
"value": "// makes cat appear from the left\nfunction appear() {\n $('.cat').velocity({translateX: '-1000px'}, {duration: 1, display: 'hidden'});\n $('.cat').velocity({translateX: '100px'}, {durati... | javascript | chosen |
[
{
"from": "system",
"value": "Check response status codes in quickFetch.\n"
},
{
"from": "human",
"value": "// We use this function throughout all the things to send and recieve form our\n// django-rest-framework API\nfunction quickFetch(url, method, body) {\n let csrftoken = Cookies.get('csr... | javascript | chosen |
[
{
"from": "system",
"value": "Fix for non-default exports not being exported\n"
},
{
"from": "human",
"value": "import Emitter from './Emitter';\nimport {getCellID, getCellPos} from './utils/cellID';\nimport parseExpression from './exprCompiler';\nimport WebSheet from './WebSheet';\nimport WebSh... | javascript | chosen |
[
{
"from": "system",
"value": "[cli] Add chess board input as plugin template\n"
},
{
"from": "human",
"value": "module.exports = [\n {\n value: 'logo',\n name: 'Studio logo',\n url: 'https://github.com/sanity-io/plugin-template-logo/archive/master.zip'\n },\n {\n value: 'tool',\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Switch back from \"thanks for voting\" message to real gadget\n"
},
{
"from": "human",
"value": "// Copyright 2010 Michael Geary\n// http://mg.to/\n// Free Beer and Free Speech License (any OSI license)\n// http://freebeerfreespeech.org/\n\ndocument.write(\n\t'<scri... | javascript | chosen |
[
{
"from": "system",
"value": "Fix missing data for markdown\n"
},
{
"from": "human",
"value": "'use strict'\n\nconst { css } = require('glamor')\nconst propTypes = require('prop-types')\n\nconst h = require('../utils/h')\nconst shadowBox = require('../styles/shadowBox')\n\nconst Tabs = require('... | javascript | chosen |
[
{
"from": "system",
"value": "Add checkbox to API permissions\n\n"
},
{
"from": "human",
"value": "import React from \"react\";\nimport PropTypes from \"prop-types\";\nimport { map, sortBy } from \"lodash-es\";\nimport { ListGroup, Panel } from \"react-bootstrap\";\n\nimport { Icon, ListGroupIte... | javascript | chosen |
[
{
"from": "system",
"value": "Change error message in Property.\n"
},
{
"from": "human",
"value": "const Errors = use(\"core/errors\");\n\n\nclass PropertyPrototype {\n\n constructor() {\n this._validators = new Set();\n this._outputModifications = new Set();\n }\n\n _addV... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"increase timeout for server notices room\"\n"
},
{
"from": "human",
"value": "/*\nCopyright 2018 New Vector Ltd\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may o... | javascript | chosen |
[
{
"from": "system",
"value": "fix: Fix path to react-select css file\n"
},
{
"from": "human",
"value": "import React from 'react'\nimport { render } from 'react-dom'\nimport App from './app'\nimport { navigate } from './api'\nimport 'babel-polyfill'\nimport 'react-datepicker/dist/react-datepicke... | javascript | chosen |
[
{
"from": "system",
"value": ":new: Use the new installer API in main\n"
},
{
"from": "human",
"value": "'use strict'\n\nimport {Installer} from './main'\nimport {getDependencies} from './helpers'\n\nif (typeof window.__steelbrain_package_deps === 'undefined') {\n window.__steelbrain_package_de... | javascript | chosen |
[
{
"from": "system",
"value": "Add (duplicate) capitalized namespace for views constants\n"
},
{
"from": "human",
"value": "import Calendar from './Calendar';\nimport EventWrapper from './EventWrapper';\nimport BackgroundWrapper from './BackgroundWrapper';\nimport { set as setLocalizer } from './... | javascript | chosen |
[
{
"from": "system",
"value": "Refactor using node-fetch instead of request-promise\n"
},
{
"from": "human",
"value": "import request from 'request-promise';\nimport uts46 from 'idna-uts46';\n\nconst returnValues = {\n free: 'FREE',\n not_valid: 'NOT_VALID',\n occupied: 'OCCUPIED',\n};\n\nexpo... | javascript | chosen |
[
{
"from": "system",
"value": "Remove autoscroll to see it works on Google.\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport ReactDOM from 'react-dom';\nimport Homepage from './components/Homepage';\nimport Docs from './containers/Docs';\nimport { Router, Route, browserHistor... | javascript | chosen |
[
{
"from": "system",
"value": "Change Functor to Apply in documentation of R.flip\n\nit uses `ap` method of object instead of just `map`"
},
{
"from": "human",
"value": "var _curry2 = require('./internal/_curry2');\nvar _reduce = require('./internal/_reduce');\nvar _slice = require('./internal/_... | javascript | chosen |
[
{
"from": "system",
"value": "Move to multiple lines to makes things more clear\n"
},
{
"from": "human",
"value": "export function getInterfaceLanguage() {\n if (!!navigator && !!navigator.language) {\n return navigator.language;\n } else if (!!navigator && !!navigator.languages && !!naviga... | javascript | chosen |
[
{
"from": "system",
"value": "Allow specifying channels to connect to\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\nvar IRCb = require('ircb')\nvar args = require('yargs')\n .alias('host', 'h')\n .demand('host')\n .describe('host', 'IRC server (e.g. chat.freenode.net)')\n\n .alias(... | javascript | chosen |
[
{
"from": "system",
"value": "Implement the event listeners for keyUp and keyDown.\n"
},
{
"from": "human",
"value": "if (typeof define !== 'function') { var define = require('amdefine')(module) }\n\ndefine(function() {\n\n var keyboardUtil = {\n addKeyDownListener: function() {},\n addKe... | javascript | chosen |
[
{
"from": "system",
"value": "emoji: Clarify what these \"key\"s are.\n\nThese are keys, yes -- in particular, they're IDs of these realm\nemoji. The latter is more informative.\n"
},
{
"from": "human",
"value": "/* @flow */\nimport { createSelector } from 'reselect';\nimport { getRawRealmEmoji... | javascript | chosen |
[
{
"from": "system",
"value": "Add logout function in `onComplete`\n"
},
{
"from": "human",
"value": "import { useMoralis } from 'react-moralis';\nimport { navigate } from 'gatsby-link';\n\nexport function GuestbookAuth() {\n const { authenticate, logout, Moralis } = useMoralis();\n\n return {\... | javascript | chosen |
[
{
"from": "system",
"value": "Tweak the findOneP function slightly\n"
},
{
"from": "human",
"value": "\n/**\n * Dependencies\n * --------------------------------------------------------------------------*/\n\nvar Promise = require('bluebird'),\n _ = require('underscore');\n\n/**\n * Ret... | javascript | chosen |
[
{
"from": "system",
"value": "Allow deletion outside working dir\n\nAdded an 'options' argument that expects an object. If a 'force' property is set, it will be passed through to del.sync to allow deletion of files outside of the current working directory."
},
{
"from": "human",
"value": "// Gen... | javascript | chosen |
[
{
"from": "system",
"value": "Add base structure for xml feed\n"
},
{
"from": "human",
"value": "var _ = require(\"lodash\");\nvar builder = require('xmlbuilder');\nvar subjects = require(\"subjects-utils\");\n\n\nfunction create(definition, books) {\n definition =_.defaults(definition || {},... | javascript | chosen |
[
{
"from": "system",
"value": "Check if deletedDocument are same than the original document\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar async = require('async');\nvar crypto = require('crypto');\nvar Anyfetch = require('anyfetch');\n\n/**\n * HYDRATING FUNCTION\n *\n * @param {string}... | javascript | chosen |
[
{
"from": "system",
"value": "Fix input key possible to evaluate to false\n"
},
{
"from": "human",
"value": "module.exports = MaintainEl;\n\nfunction MaintainEl() {\n this.list = [];\n this.map = {};\n\n this.create = function create($el, key) {\n this.list.push($el);\n if(key) this.map... | javascript | chosen |
[
{
"from": "system",
"value": "Add newline at end of file.\n"
},
{
"from": "human",
"value": "/**\n * Global adapter config\n * \n * The `adapters` configuration object lets you create different global \"saved settings\"\n * that you can mix and match in your models. The `default` option indicat... | javascript | chosen |
[
{
"from": "system",
"value": "Fix function drakov.stop dosen’t work\n\nWhen I call the function `.stop()`, it only stops accepting new connections, it doesn't terminate existing connections. \r\nBecause if `Connection: keep-alive` was requested by the client. It's an HTTP/1.1 feature to reduce the overhead ... | javascript | chosen |
[
{
"from": "system",
"value": "Move success/error callbacks into app utils.\n"
},
{
"from": "human",
"value": "ReactListView.actions = {\n updateItem: function(itemData, newItemData) {\n var payload = { itemData: itemData, newItemData: newItemData };\n console.log('updateItem action: ', pa... | javascript | chosen |
[
{
"from": "system",
"value": "Format spacing option check - bug fix\n"
},
{
"from": "human",
"value": "// Woodlot utility library\n\nvar DEFAULT_JSON_SPACING = '\\t';\n\n// Function to get log format based on Woodlot config setup\nfunction getLogFormat(options) {\n\tif(options.format && options.... | javascript | chosen |
[
{
"from": "system",
"value": "Add carrousel to home page\n"
},
{
"from": "human",
"value": "'use strict';\n\n\nangular.module('core').controller('HomeController', ['$scope', 'Authentication',\n\tfunction($scope, Authentication) {\n\t\t// This provides Authentication context.\n\t\t$scope.authenti... | javascript | chosen |
[
{
"from": "system",
"value": "[TPL_HUBBASICADMIN] Fix for script that can cause infinite loops under certain circumstances\n"
},
{
"from": "human",
"value": "if (typeof(Joomla) == 'undefined')\n{\n\tJoomla = {};\n}\nJoomla.submitbutton = function(pressbutton)\n{\n\treturn submitbutton(pressbutto... | javascript | chosen |
[
{
"from": "system",
"value": "Allow runtime configurable test environment\n"
},
{
"from": "human",
"value": "module.exports = require('should');\n\nvar DataSource = require('loopback-datasource-juggler').DataSource;\n\nvar config = require('rc')('loopback', {test: {mongodb: {}}}).test.mongodb;\n... | javascript | chosen |
[
{
"from": "system",
"value": "Fix duplicated classnames being applied to list items\n"
},
{
"from": "human",
"value": "import classNames from 'classnames';\nimport React, {PropTypes} from 'react';\n\nimport Util from '../Util/Util';\n\nconst CSSTransitionGroup = React.addons.CSSTransitionGroup;\... | javascript | chosen |
[
{
"from": "system",
"value": "Add build script to gulp script\n"
},
{
"from": "human",
"value": "import gulp from 'gulp'\nimport git from 'gulp-git'\nimport bump from 'gulp-bump'\nimport tagVersion from 'gulp-tag-version'\n\n;['major', 'minor', 'patch'].forEach((type) => {\n gulp.task(`bump:${t... | javascript | chosen |
[
{
"from": "system",
"value": "Raise error when plugin is not configured\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst path = require('path');\n\nconst jade = require('jade');\nconst _ = require('lodash');\n\nmodule.exports = function(env, callback) {\n class Sitemap extends env.plug... | javascript | chosen |
[
{
"from": "system",
"value": "Replace string.trimEnd with string.trimRight for Node 8.\n"
},
{
"from": "human",
"value": "// @ts-check\n\n\"use strict\";\n\nconst { addErrorContext, isBlankLine } = require(\"../helpers\");\nconst { flattenedLists } = require(\"./cache\");\n\nconst quotePrefixRe ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix nock HTTP mock return\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar test = require('ava');\nvar nock = require('nock');\nvar avail = require('./');\n\nvar fixtures = [\n {\n domain: 'avail.io',\n availability: 'available'\n },\n {\n domain:... | javascript | chosen |
[
{
"from": "system",
"value": "Increase test timeout for Travis.\n"
},
{
"from": "human",
"value": "var timeLimit = Date.now() + 1000;\r\n\r\nassert.equal((function f(n) {\r\n assert.operator(Date.now(), '<', timeLimit, \"Timeout\");\r\n if (n <= 0) {\r\n return \"foo\";\r\n }\r\n return f... | javascript | chosen |
[
{
"from": "system",
"value": "Update selector to test SVG icon name\n"
},
{
"from": "human",
"value": "import Vue from 'vue';\n\nimport itemCaretComponent from '~/groups/components/item_caret.vue';\n\nimport mountComponent from '../../helpers/vue_mount_component_helper';\n\nconst createComponent... | javascript | chosen |
[
{
"from": "system",
"value": "Store Magic objects created for certain magic files\n"
},
{
"from": "human",
"value": "var mmm = require('mmmagic');\nvar peek = require('buffer-peek-stream');\n\nvar magicMime = new mmm.Magic(mmm.MAGIC_MIME);\n\nfunction streamMmmagic(stream, options, callback) {\n... | javascript | chosen |
[
{
"from": "system",
"value": "Clean task available only to frontend\n"
},
{
"from": "human",
"value": "\"use strict\";\n\nconst Task = require('../Task'),\n del = require('del'),\n path = require('path');\n\nclass CleanTask extends Task {\n\n constructor(buildManager) {\n super(b... | javascript | chosen |
[
{
"from": "system",
"value": "Add register user properties to Hubspot plugin\n\nHubspot has the ability to track users, adding a identify push call when we set the user properties"
},
{
"from": "human",
"value": "(function (angular) {\n 'use strict';\n\n /**\n * @ngdoc overview\n * @name a... | javascript | chosen |
[
{
"from": "system",
"value": "Fix detection of native sinh\n"
},
{
"from": "human",
"value": "'use strict';\n\nmodule.exports = function () {\n\tvar sinh = Math.sinh;\n\tif (typeof sinh !== 'function') return false;\n\treturn sinh(1) === 1.1752011936438014;\n};\n"
},
{
"from": "gpt",
... | javascript | chosen |
[
{
"from": "system",
"value": "Order STHs by timestamp, descendingly\n"
},
{
"from": "human",
"value": "'use strict';\n\n/* Controllers */\n\nangular.module('myApp.controllers', []).\n controller('LogServerCtrl', ['$scope', '$routeParams', 'logservers', function($scope, $routeParams, logservers)... | javascript | chosen |
[
{
"from": "system",
"value": "Change to promise for Wit runactions\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst config = require('../../config');\nconst Facebook = require('../../app/services/facebook');\nconst sessions = require('../../app/services/sessions');\n\nmodule.exports = {... | javascript | chosen |
[
{
"from": "system",
"value": "Update to the guessing game"
},
{
"from": "human",
"value": "/* Get Programming with JavaScript\n * Listing 13.06\n * Using the spacer namespace\n */\n\nconsole.log(spacer.box(\"It's like magic!\", 20, \"*\"));\n\n\n/* Further Adventures\n *\n * 1) Run the program.\... | javascript | chosen |
[
{
"from": "system",
"value": "Remove unneeded Mocha require statement\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst gulpopen = require('../');\nconst os = require('os');\nrequire('mocha');\n\ndescribe('gulp-open', function() {\n\n const browser = os.platform() === 'linux' ? 'google-... | javascript | chosen |
[
{
"from": "system",
"value": "Add tests for the async methods\n"
},
{
"from": "human",
"value": "// Copyright 2015 Fabian Dietenberger\n\nvar should = require('chai').should(),\n hypemResolver = require('../hypem-resolver');\n\ndescribe('Use the hypem link to get the songs url', function () {... | javascript | chosen |
[
{
"from": "system",
"value": "Fix XHR login on Firebase hosting\n"
},
{
"from": "human",
"value": "import { ValidationError } from '../lib/validation';\n\nexport const LOGIN_ERROR = 'LOGIN_ERROR';\nexport const LOGIN_START = 'LOGIN_START';\nexport const LOGIN_SUCCESS = 'LOGIN_SUCCESS';\nexport c... | javascript | chosen |
[
{
"from": "system",
"value": "Remove message id not being used for logic\n"
},
{
"from": "human",
"value": "'use strict'\n\nlet logger = require('tracer').colorConsole()\nlet PipelineExecutor = require('../../core/pipelines/pipeline-executor')\n\nmodule.exports = (msg, next, msgid) => {\n\n // ... | javascript | chosen |
[
{
"from": "system",
"value": "Add Evil Martians link to footer\n"
},
{
"from": "human",
"value": "import React, { Component } from \"react\"\n\nimport styles from \"./index.css\"\nimport logo from \"./evilmartians.svg\"\n\nexport default class Footer extends Component {\n\n render() {\n retu... | javascript | chosen |
[
{
"from": "system",
"value": "Fix private route flashing login\n"
},
{
"from": "human",
"value": "/* eslint-disable */\n\nimport React from 'react'\nimport PropTypes from 'prop-types'\nimport { connect } from 'react-redux'\nimport { Route, Redirect, withRouter } from 'react-router-dom'\n\nconst ... | javascript | chosen |
[
{
"from": "system",
"value": "Simplify checkbox to functional component and to use connect\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport PropTypes from 'prop-types';\n\nimport Control from './Control';\n\nclass Checkbox extends Control {\n static propTypes = {\n class... | javascript | chosen |
[
{
"from": "system",
"value": "Remove \"Pilotissa mukana\" section from footer\n\nCloses #159.\n"
},
{
"from": "human",
"value": "import Radium from 'radium';\nimport React, { Component } from 'react';\nimport { Grid, Row, Col } from 'react-bootstrap';\nimport { Link } from 'react-router';\n\nimp... | javascript | chosen |
[
{
"from": "system",
"value": "Allow for switching to default context\n"
},
{
"from": "human",
"value": "if (browser.contextualIdentities !== undefined) {\n browser.contextualIdentities.query({})\n .then((contexts) => {\n const parentId = chrome.contextMenus.create({\n id: \"moveC... | javascript | chosen |
[
{
"from": "system",
"value": "Add some simple error handling...\n"
},
{
"from": "human",
"value": "import Ember from 'ember';\n\nexport default Ember.ObjectController.extend({\n actions: {\n updatePackage: function() {\n this.get('model').save();\n this.transitionTo('package', this... | javascript | chosen |
[
{
"from": "system",
"value": "Fix arguments being passed to markdown-to-jsx \n\nThe argument syntax changed a bit in 4.x. GFM is always enabled, so no need to pass that explicitly."
},
{
"from": "human",
"value": "// (C) Copyright 2016 Hewlett Packard Enterprise Development LP\n\nimport { PropTy... | javascript | chosen |
[
{
"from": "system",
"value": "Use a relative path to fetch the data.json file\n"
},
{
"from": "human",
"value": "import { h, render, Component } from 'preact';\nimport lunr from 'lunr';\n\nimport SearchForm from 'js/components/search-form';\nimport SearchResults from 'js/components/search-result... | javascript | chosen |
[
{
"from": "system",
"value": "Fix bad URL & ATTRS\n"
},
{
"from": "human",
"value": "YUI.add(\"model-timeline-list\", function(Y) {\n \"use strict\";\n \n var models = Y.namespace(\"Tristis.Models\"),\n \n List;\n \n List = Y.Base.create(\"list\", models.Timelin... | javascript | chosen |
[
{
"from": "system",
"value": "Allow queries of names without visibility\n\n* Fixes #224\n"
},
{
"from": "human",
"value": "export class UIDatabase {\n\n constructor(database) {\n this.database = database;\n }\n\n objects(type) {\n let results = this.database.objects(translateToCoreDatab... | javascript | chosen |
[
{
"from": "system",
"value": "Add check for castling in valid moves\n"
},
{
"from": "human",
"value": "import Reflux from 'reflux';\nimport GameActions from '../actions/GameActions';\n\nvar GameStore = Reflux.createStore({\n\n init() {\n\n getGameFEN() {\n return this.fen;\n },\n getActiv... | javascript | chosen |
[
{
"from": "system",
"value": "Remove remnants of category from Service class.\n"
},
{
"from": "human",
"value": "var bb = bb || {};\r\n\r\nbb.Service = function(bucketName, dataStore) {\r\n this.dataStore = dataStore;\r\n this.bucketName = bucketName;\r\n this.dataStore.ensureBucketExists(buc... | javascript | chosen |
[
{
"from": "system",
"value": "Add more ignores to coverage, as well as explaining exceptions\n"
},
{
"from": "human",
"value": "/* Copyright 2015, Yahoo Inc.\n Copyrights licensed under the MIT License.\n See the accompanying LICENSE file for terms. */\n// Karma configuration\n\nmodule.expor... | javascript | chosen |
[
{
"from": "system",
"value": "Add backticks into require call parse\n"
},
{
"from": "human",
"value": "/**\n * Copyright (c) 2015-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory ... | javascript | chosen |
[
{
"from": "system",
"value": "Change help link to help.are.na\n"
},
{
"from": "human",
"value": "import React, { Component } from 'react';\nimport PropTypes from 'prop-types';\nimport styled from 'styled-components';\n\nimport Link from 'react/components/UserDropdown/components/Link';\n\nconst S... | javascript | chosen |
[
{
"from": "system",
"value": "Use phantomJs and headless chrome as browsers\n\nEspecially useful for CI\n"
},
{
"from": "human",
"value": "module.exports = function(config) {\n config.set({\n frameworks: [\"jasmine\", \"karma-typescript\"],\n files: [\n { pattern: \"s... | javascript | chosen |
[
{
"from": "system",
"value": "Delete the object if there are no more listeners\n\nThis will prevent a memory leak in some cases."
},
{
"from": "human",
"value": "(function(window, angular, undefined) {\n 'use strict';\n angular.module('ngEventAggregator', [])\n .factory('eventAggregator', [ f... | javascript | chosen |
[
{
"from": "system",
"value": "Add .ts exts to the getPossibleStoriesFiles\n"
},
{
"from": "human",
"value": "import path from 'path';\n\nfunction getStoryshotFile(fileName) {\n const { dir, name } = path.parse(fileName);\n return path.format({ dir: path.join(dir, '__snapshots__'), name, ext: '... | javascript | chosen |
[
{
"from": "system",
"value": "[zipkin-ui] Add hash to filename of app[.min].{js,css}[.map]\n"
},
{
"from": "human",
"value": "var webpack = require('webpack');\nvar ExtractTextPlugin = require('extract-text-webpack-plugin');\nvar HtmlWebpackPlugin = require('html-webpack-plugin');\n\nmodule.expo... | javascript | chosen |
[
{
"from": "system",
"value": "Stop bear island triggering on plots and crashing. We need to rethink whether or not we should be raising cardEntersPlay for plots\n"
},
{
"from": "human",
"value": "const DrawCard = require('../../../drawcard.js');\n\nclass BearIsland extends DrawCard {\n setup... | javascript | chosen |
[
{
"from": "system",
"value": "Allow actions to use `publish.when`.\n\nSince publish was being defined and not alias, actions could not use ``publish.when`.\nIn addition, publish and publish.when must be defined on the instance as publish.when calls\nwill not have the right `this` context.\n"
},
{
"f... | javascript | chosen |
[
{
"from": "system",
"value": "Use process.env.PWD to resolve server hook path\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\n\n// Modules\nvar connect = require('connect'),\n fs = require('fs'),\n http = require('http'),\n path = require('path'),\n serveStatic = require('ser... | javascript | chosen |
[
{
"from": "system",
"value": "Fix request property and response properties\n"
},
{
"from": "human",
"value": "var Request = require('./request');\nvar Helpers = require('../../helpers');\nvar _ = require('lodash');\nvar Media = require('./media');\nvar Account = require('./account');\n\nmodule.e... | javascript | chosen |
[
{
"from": "system",
"value": "Use lowercase backbone in requires\n"
},
{
"from": "human",
"value": "var Backbone = require('Backbone');\nvar Router = require('../../../javascripts/cartodb3/routes/router');\nBackbone.history.start({ pushState: false, hashChange: false, root: 'builder/id' });\nRou... | javascript | chosen |
[
{
"from": "system",
"value": "Select all is applied one time only (as opposed to on all subsequent updates too)\n"
},
{
"from": "human",
"value": "/* eslint no-unused-vars: 0 */\n\n/****************/\n/** Select All **/\n/****************/\ngridState.processors['select-all'] = {\n watches: ['... | javascript | chosen |
[
{
"from": "system",
"value": "Fix GitHub strategy missing email\n\nFixes an issue with an empty/missing/null Email coming from GitHub's\nOAuth call response.\n"
},
{
"from": "human",
"value": "'use strict';\n\n/**\n * Module dependencies.\n */\nvar passport = require('passport'),\n GithubStra... | javascript | chosen |
[
{
"from": "system",
"value": "Add NUMBER_UPDATE action in settings actons\n"
},
{
"from": "human",
"value": "import {\n CHECKBOX_UPDATE,\n RANGE_UPDATE,\n FUZZY,\n SEARCH_KEY_UPDATE,\n SETTINGS_RESET,\n} from '../../actions/types';\n\nexport function updateCheckbox(key, value) {\n return {... | javascript | chosen |
[
{
"from": "system",
"value": "Fix the example in docs\n"
},
{
"from": "human",
"value": "import React, { Component } from 'react';\nimport { PowerSelectMultiple } from 'src';\nimport { countries } from '../constants';\n\nconst CustomOptionComponnet = ({ option }) => (\n <div>\n <img classNam... | javascript | chosen |
[
{
"from": "system",
"value": "Set controller property after promise has resolved.\n"
},
{
"from": "human",
"value": "import Ember from 'ember';\n\nexport default Ember.Route.extend({\n model() {\n let node = this.modelFor('nodes.detail');\n let drafts = node.get('draftRegistrati... | javascript | chosen |
[
{
"from": "system",
"value": "Fix complex case to use syntax\n\n\"domain.com/test/*\": {\n path: './directory',\n target: '[1]'\n}\n"
},
{
"from": "human",
"value": "var nodeStatic = require('node-static');\nvar DispatchTable = require('../DispatchTable');\n\n\nvar regexpHelper = require('../r... | javascript | chosen |
[
{
"from": "system",
"value": "Refactor hellopgm sample to use compileProgramFile\n"
},
{
"from": "human",
"value": "\rvar cobs = require('../..'),\r fs = require('fs');\r\rvar runtime = {\r display: function(msg) {\r console.log(msg);\r }\r}\r\rfunction runFile(filename) {\r v... | javascript | chosen |
[
{
"from": "system",
"value": "ui: Sort the album list after loading it\n"
},
{
"from": "human",
"value": "define(['jquery'], function($) {\n\nfunction Sidebar() {\n\tvar sidebar = this;\n\n\t$('#sidebar-toggle-button').click(function() {\n\t\tsidebar.toggle();\n\t});\n\n\tsidebar.loadAlbums();\n... | javascript | chosen |
[
{
"from": "system",
"value": "Add Rotate with view option\n\nUse a checkbox to demonstrate the rotateWithView option"
},
{
"from": "human",
"value": "import Map from '../src/ol/Map.js';\nimport View from '../src/ol/View.js';\nimport {defaults as defaultControls, OverviewMap} from '../src/ol/cont... | javascript | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.