conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Improve assertion messages in test utility\n"
},
{
"from": "human",
"value": "const { expect } = require('chai')\n\nconst OError = require('../..')\n\nexports.expectError = function OErrorExpectError(e, expected) {\n // should set the name to the error's name\n ex... | javascript | chosen |
[
{
"from": "system",
"value": "Add basename based on <base href>\n"
},
{
"from": "human",
"value": "import React from 'react'\n\n// We have to import this one using a relative path because we\n// shim <BrowserRouter> in our webpack config to use <ExampleRouter>\nimport BrowserRouter from '../../.... | javascript | chosen |
[
{
"from": "system",
"value": "Rename constant for enabling app\n"
},
{
"from": "human",
"value": "/**\n * App constants\n */\n\nexport default {\n\tCHANGE_EVENT: \t\t\t\t'CHANGE_EVENT',\n\tSWITCH_VIEW:\t\t\t\t'SWITCH_VIEW',\n\tGET_CONFIGURATION: \t\t\t'GET_CONFIGURATION',\n\tSAVE_CONFIGURATION:\... | javascript | chosen |
[
{
"from": "system",
"value": "Change behavior of the default extractor\n\n- Default extractor return words (digits + letters)\n"
},
{
"from": "human",
"value": "class DefaultExtractor {\n static extract(content) {\n return content.split(/[^a-z]/g)\n }\n}\n\nexport default DefaultExt... | javascript | chosen |
[
{
"from": "system",
"value": "Add basic attack and release to demo instrument\n"
},
{
"from": "human",
"value": "import {\n EVENT_MIDI_NOTE_ON,\n EVENT_MIDI_NOTE_OFF,\n} from 'midievents'\n\nexport function create({ transport, res, ctx, out }) {\n const notes = {}\n const gain = ctx.createGa... | javascript | chosen |
[
{
"from": "system",
"value": "Handle onMessages when db is null.\n"
},
{
"from": "human",
"value": "// Open DB.\nvar db;\nindexedDB.open(\"dict\", 1).onsuccess = function(e) {\n db = e.target.result;\n};\n\nfunction onMessage(request, sender, callback) {\n if (request.action != 'translateWord'... | javascript | chosen |
[
{
"from": "system",
"value": "Add creditCards reducer in combineReducers\n"
},
{
"from": "human",
"value": "import account from './account';\nimport person from './person';\nimport languages from './languages';\nimport jobTypes from './jobTypes';\n\nconst { combineReducers } = require('redux');\... | javascript | chosen |
[
{
"from": "system",
"value": "Index as it's own route. Steps has nested progress. "
},
{
"from": "human",
"value": "import Ember from 'ember';\nimport config from './config/environment';\n\nvar Router = Ember.Router.extend({\n location: config.locationType\n});\n\nexport default Router.map(func... | javascript | chosen |
[
{
"from": "system",
"value": "Fix bug with GameModel 'model' object not updating in scope properly\n"
},
{
"from": "human",
"value": "export default class GameModelService {\n\tconstructor($log, $localStorage, _, gamesApi) {\n\t\t'ngInject';\n\n\t\tthis.$log = $log.getInstance(this.constructor.n... | javascript | chosen |
[
{
"from": "system",
"value": "Format reporter output with Chalk\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst chalk = require('chalk');\n\n/* eslint max-statements: 'off' */\n\nclass Reporter {\n\n /**\n * Writes to console\n *\n * @static\n * @param {Array} statsObjArray An... | javascript | chosen |
[
{
"from": "system",
"value": "Use browser history API for URLs\n"
},
{
"from": "human",
"value": "var Router = Ember.Router.extend(); // ensure we don't share routes between all Router instances\n\nRouter.map(function() {\n this.route(\"faqs\");\n});\n\nexport default Router;\n"
},
{
"f... | javascript | chosen |
[
{
"from": "system",
"value": "Remove unused variable from display_dashboard_chart\n"
},
{
"from": "human",
"value": "function display_dashboard_chart(canvas){\n var labels = canvas.data(\"labels\")\n var values = canvas.data(\"values\")\n var colors = canvas.data(\"colors\")\n var ctx = canv... | javascript | chosen |
[
{
"from": "system",
"value": "Use correct check for serving elements route\n"
},
{
"from": "human",
"value": "// eslint-disable-next-line new-cap\nconst router = require('express').Router();\nconst config = require('../config/config');\n\nconst indexController = require('../app/controllers/index... | javascript | chosen |
[
{
"from": "system",
"value": "Remove value from options + fix active/not active bugs\n"
},
{
"from": "human",
"value": "import Component from '@ember/component';\nimport { computed } from '@ember/object';\nimport { notEmpty, or } from '@ember/object/computed';\n\nexport default Component.extend(... | javascript | chosen |
[
{
"from": "system",
"value": "Test if promise is returned\n"
},
{
"from": "human",
"value": "var storageDriver = require('../dist/storage_driver.js');\n\ndescribe('StorageDriver', function () {\n it('should have redis driver', function () {\n expect(storageDriver.redis).toBeDefined();\n });... | javascript | chosen |
[
{
"from": "system",
"value": "Print out issues without matching issuetype\n"
},
{
"from": "human",
"value": "import issueStrats from '../issue-strategies/index.js';\nimport * as promiseUtils from '../promise-utils.js';\n\nfunction validateStrategies(issueKey, jiraClientAPI) {\n return jiraClien... | javascript | chosen |
[
{
"from": "system",
"value": "Add JS console log line\n"
},
{
"from": "human",
"value": "\"use strict\";\n\n$(document).on(\"turbolinks:load\", function() { //equivalent of $(document).ready()\n addSpace();\n var $grid = initMasonry();\n\n // layout Masonry after each image loads\n $grid.ima... | javascript | chosen |
[
{
"from": "system",
"value": "Add ability to stopPropagation of external links\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport shell from 'shell';\n\nexport default class ExternalLink extends React.Component {\n\thandleOnClick(event) {\n\t\tevent.preventDefault();\n\n\t\tsh... | javascript | chosen |
[
{
"from": "system",
"value": "Test that asString closes all elements\n"
},
{
"from": "human",
"value": "var assert = require(\"assert\");\nvar test = require(\"./testing\").test;\n\nvar HtmlGenerator = require(\"../lib/html-generator\").HtmlGenerator;\n\n\ndescribe('HtmlGenerator', function() {\... | javascript | chosen |
[
{
"from": "system",
"value": "Add a missing right paren.\n"
},
{
"from": "human",
"value": "define([], function() {\n 'use strict';\n var bruteForce = function(n) {\n var sum = 0;\n for (var i = 0; i < n; i++) {\n if (i % 3 === 0 || i % 5 === 0) {\n sum += i;\n }\n }\... | javascript | chosen |
[
{
"from": "system",
"value": "Update test to use commutable.\n"
},
{
"from": "human",
"value": "import Immutable from 'immutable';\n\n// This is only here as a stop gap until we test innards directly.\n\nrequire.extensions['.ipynb'] = require.extensions['.json'];\nconst notebook = require('../te... | javascript | chosen |
[
{
"from": "system",
"value": "Add incomplete cases for body, html, file"
},
{
"from": "human",
"value": "/**\n * Created by pkleim on 5/14/2015.\n */\nvar chai = require(\"chai\"),\n should = chai.should(),\n expect = chai.expect();\n style = require(\"../index\"),\n jscs = require(\... | javascript | chosen |
[
{
"from": "system",
"value": "Remove Volumes reducer from root level\n"
},
{
"from": "human",
"value": "import {JSONReducer as constraints} from './serviceForm/Constraints';\nimport {JSONReducer as container} from './serviceForm/Container';\nimport {JSONReducer as env} from './serviceForm/Enviro... | javascript | chosen |
[
{
"from": "system",
"value": "Increase asynch script timeout for travis\n\n- Travis is currently failing saying timeout\nfor an asynch script, which has to be the\ntest helper to reset the DB. I am increasing it\nto 30 seconds from 2 seconds to see if this is\nreally the issue on travis.\n\n[#29]\n"
},
... | javascript | chosen |
[
{
"from": "system",
"value": "Adjust device & sensor finding\n"
},
{
"from": "human",
"value": "const TemperatureSensor = require('./cozytouch/temperature_sensor');\nconst ElectricEnergyConsumptionSensor = require('./cozytouch/electric_energy_consumption_sensor');\n\nlet initialized = false;\n\n... | javascript | chosen |
[
{
"from": "system",
"value": "Make test more reliable by calling insert in Meteor.startup.\n"
},
{
"from": "human",
"value": "process.stdout.write(\"once test\\n\");\n\nif (process.env.RUN_ONCE_OUTCOME === \"exit\")\n process.exit(123);\n\nif (process.env.RUN_ONCE_OUTCOME === \"kill\") {\n pro... | javascript | chosen |
[
{
"from": "system",
"value": "Update auto inject url for gsap, use unpkg as it always returns the latest version\n"
},
{
"from": "human",
"value": "class Config {\n\n gsap = {\n tween: null,\n timeline: null,\n autoInject: true,\n autoInjectUrl: 'https://cdnjs.cloudflare.com/ajax/li... | javascript | chosen |
[
{
"from": "system",
"value": ":art: Use Disposable instead of constructing one manually\n"
},
{
"from": "human",
"value": "'use babel'\n\nimport Communication from 'sb-communication'\nimport {CompositeDisposable} from 'sb-event-kit'\n\nclass ProcessCommunication {\n constructor(process, debug) ... | javascript | chosen |
[
{
"from": "system",
"value": "Read config from .env file\n"
},
{
"from": "human",
"value": "export const URL = 'https://api.themoviedb.org/3';\nexport const IMG_URL = 'https://image.tmdb.org/t/p';\nexport const KEY = 'e50ddc772dd96f9aeb74b5236200b9d1';\n\nexport const YOUTUBE_URL = 'https://www.... | javascript | chosen |
[
{
"from": "system",
"value": "Fix end to end testing by increasing mocha timeout\n\nSigned-off-by: Joe Walker <7a17872fbb32c7d760c9a16ee3076daead11efcf@mozilla.com>\n"
},
{
"from": "human",
"value": "/* eslint prefer-arrow-callback: 0 */\n\nimport expect from 'expect';\nimport { Application } fr... | javascript | chosen |
[
{
"from": "system",
"value": "Edit inline nodes which goes one after another.\n"
},
{
"from": "human",
"value": "import Command from './Command'\n\nclass EditInlineNodeCommand extends Command {\n constructor(...args) {\n super(...args)\n if (!this.config.nodeType) {\n throw new Error... | javascript | chosen |
[
{
"from": "system",
"value": "Add stub for i18n service.\n"
},
{
"from": "human",
"value": "import { moduleForComponent, test } from 'ember-qunit';\nimport hbs from 'htmlbars-inline-precompile';\n\nmoduleForComponent('total-share-results', 'Integration | Component | total share results', {\n in... | javascript | chosen |
[
{
"from": "system",
"value": "Add Aspect of the Turtle to Beast Mastery buffs\n"
},
{
"from": "human",
"value": "import SPELLS from 'common/SPELLS';\nimport BLOODLUST_BUFFS from 'game/BLOODLUST_BUFFS';\nimport CoreBuffs, { BuffDuration } from 'parser/core/modules/Buffs';\n\nclass Buffs extends C... | javascript | chosen |
[
{
"from": "system",
"value": "Make use of nodes url parser\n\nMakes url handling and decisions not-hacky on the client.\n\nCloses #9.\n"
},
{
"from": "human",
"value": "var content = require(\"./content\");\nvar dataBootstrap = require(\"./databootstrap\");\n\n// Nav form if initial content is e... | javascript | chosen |
[
{
"from": "system",
"value": "Add all specs for NavigatorCtrl\n"
},
{
"from": "human",
"value": "\"use strict\";\n\ndescribe(\"NavigatorCtrl\", function() {\n var ctrl;\n var scope;\n var results;\n var mockNavigator = {\n nextSentence: function() {\n results.nextSentence = true;\n ... | javascript | chosen |
[
{
"from": "system",
"value": "frontend: Remove unused \"vcpus\" attribute from instance types list\n"
},
{
"from": "human",
"value": "export const AWS_INSTANCE_TYPES = [\n {\n label: 't2.medium (vCPU 2 / Memory 4 GiB)',\n value: 't2.medium',\n vcpus: 2,\n },\n {\n label: 't2.large... | javascript | chosen |
[
{
"from": "system",
"value": "Put the icon parameter at the end"
},
{
"from": "human",
"value": "/**\n * == OhSnap!.js ==\n * A simple jQuery/Zepto notification library designed to be used in mobile apps\n *\n * author: Justin Domingue\n * date: september 5, 2013\n * version: 0.1.2\n * copyright... | javascript | chosen |
[
{
"from": "system",
"value": "Enable client-side dnt detection for piwik\n"
},
{
"from": "human",
"value": "var _paq = _paq || [];\n_paq.push([\"setDomains\", [\"*.twitchbots.info\"]]);\n_paq.push(['trackPageView']);\n_paq.push(['enableLinkTracking']);\n_paq.push(['setTrackerUrl', 'https://human... | javascript | chosen |
[
{
"from": "system",
"value": "Add react-native-chart code from thumbs check\n"
},
{
"from": "human",
"value": "var React = require('react-native');\n// var api = require('../Utils/api');\n\nvar {\n View,\n Text,\n Navigator,\n} = React;\n\nclass HistogramChart extends React.Component {\n con... | javascript | chosen |
[
{
"from": "system",
"value": "Rename ReporterScope.SPRITE to TARGET & add JSDoc\n"
},
{
"from": "human",
"value": "const ReporterScope = {\n GLOBAL: 'global',\n SPRITE: 'sprite'\n};\n\nmodule.exports = ReporterScope;\n"
},
{
"from": "gpt",
"value": "/**\n * Indicate the scope f... | javascript | chosen |
[
{
"from": "system",
"value": "Check for \"do not merge\" and required pr-log labels\n"
},
{
"from": "human",
"value": "import { message, danger } from 'danger';\n\nmessage(`:tada:, this worked @${danger.github.pr.user.login}`);\n"
},
{
"from": "gpt",
"value": "import { fail, danger }... | javascript | chosen |
[
{
"from": "system",
"value": "Add desired symbols to route\n"
},
{
"from": "human",
"value": "var express = require('express');\nvar router = express.Router();\nvar YFquotes = require('../queries/quotes.js');\nvar saveToMongo = require('../queries/save.js')\n\nrouter.get('/', function(req, res, ... | javascript | chosen |
[
{
"from": "system",
"value": "Send json wifi credentials via json request"
},
{
"from": "human",
"value": "import React, { Component } from 'react';\nimport './SetupWifiPassword.css'\n\nclass SetupWifiPassword extends Component {\n constructor(props) {\n super(props);\n this.state = { pas... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"add a bit of code to remove the disclaimer when running on /people\"\n\nThis reverts commit cc0da93979953845506e045ffbc83bd4a4eb4980.\n"
},
{
"from": "human",
"value": "// Just for use in the browser console, I swear.\nimport _ from 'lodash'\nwindow.lodash ... | javascript | chosen |
[
{
"from": "system",
"value": "Remove console statement. Cleanup whitelist since socket.io paths will never been seen in route mount point.\n"
},
{
"from": "human",
"value": "// apikey module validates the apikey argument used in the call. It\n// caches the list of users to make lookups faster.\n... | javascript | chosen |
[
{
"from": "system",
"value": "Add `parseModule` and `updateRequires` to multiprocess optimization.\n"
},
{
"from": "human",
"value": "export { default as transformModule } from \"../../compile/modules/transform\";\n"
},
{
"from": "gpt",
"value": "export { default as transformModule }... | javascript | chosen |
[
{
"from": "system",
"value": "Add SupportBanner class to support view\n"
},
{
"from": "human",
"value": "const CoreView = require('backbone/core-view');\nconst template = require('./support-view/support-banner.tpl');\nconst checkAndBuildOpts = require('../../builder/helpers/required-opts');\n\nc... | javascript | chosen |
[
{
"from": "system",
"value": "Improve MD unit test diffs\n\nBreak MD expected and actual output into lines so that diffs are more helpful and precise for failing tests.\n"
},
{
"from": "human",
"value": "const {expect} = require('chai');\nconst fs = require('fs');\nconst th = require('../test_he... | javascript | chosen |
[
{
"from": "system",
"value": "Allow '=' delimited query values, so one can use internal mongodb operators like .\n"
},
{
"from": "human",
"value": "module.exports = function(req, res, next) {\n\treq.query = _.mapValues(req.query, function(value, key) {\n\t\tvalue = decodeURIComponent(value);\n\n... | javascript | chosen |
[
{
"from": "system",
"value": "Fix dependency reference to autoprefixer."
},
{
"from": "human",
"value": "var autoprefixer = require('autoprefixer-core');\nvar postcss = require('postcss');\n\nmodule.exports = function(less) {\n function AutoprefixProcessor(options) {\n this.options = o... | javascript | chosen |
[
{
"from": "system",
"value": "Change sourceIndicator to receive a string instead of an object\n"
},
{
"from": "human",
"value": "import React, {PropTypes} from 'react';\n\nconst SourceIndicator = React.createClass({\n propTypes: {\n source: PropTypes.shape({}).isRequired,\n },\n\n render()... | javascript | chosen |
[
{
"from": "system",
"value": "Fix broken ajax url on spree/admin r.o import button\n"
},
{
"from": "human",
"value": "$(document).ready(function () {\n 'use strict';\n\n $('a.retailops-set-importable').click(function () {\n var link = $(this);\n var order_number = link.data('order-number... | javascript | chosen |
[
{
"from": "system",
"value": "Add funciton that takes place id and returns location data\n"
},
{
"from": "human",
"value": "const APIKEY = process.env.REACT_APP_IP_RESTRICTED\n\nconst getTimezoneFromCoordinates = (lat, lng) => {\n return new Promise(resolve => {\n fetch(\"https://maps.... | javascript | chosen |
[
{
"from": "system",
"value": "Reset original content before inserting the mention\n"
},
{
"from": "human",
"value": "import { extend } from 'flarum/extension-utils';\nimport ActionButton from 'flarum/components/action-button';\nimport CommentPost from 'flarum/components/comment-post';\n\nexport ... | javascript | chosen |
[
{
"from": "system",
"value": "Remove formvalidation test as it is not being used\n"
},
{
"from": "human",
"value": "/*\n* ADR Reporting\n* Copyright (C) 2017 Divay Prakash\n* GNU Affero General Public License 3.0 (https://github.com/divayprakash/adr/blob/master/LICENSE)\n*/\nvar dataUriTest;\nMo... | javascript | chosen |
[
{
"from": "system",
"value": "[core] GraphQL: Fix a problem where the no endpoints error message was shown regardless of results\n"
},
{
"from": "human",
"value": "module.exports = async function listApisAction(args, context) {\n const {apiClient, output, chalk} = context\n\n const client = ap... | javascript | chosen |
[
{
"from": "system",
"value": ":arrow_up: Upgrade spec to gain parity with php\n"
},
{
"from": "human",
"value": "'use babel'\n\nimport { serialize } from '../'\n\nmodule.exports = function() {\n const items = []\n function debug(item: string, scope: Object = {}) {\n items.push(serialize(ite... | javascript | chosen |
[
{
"from": "system",
"value": "Fix old migration that broke on upgrade\n"
},
{
"from": "human",
"value": "/* eslint-disable no-invalid-this, no-console */\n'use strict';\n\nvar Report = require('../models/report');\nvar THROTTLE = 20;\n\nfunction streamingUpdate(Model, throttle, which, editFn, ne... | javascript | chosen |
[
{
"from": "system",
"value": "Print a stacktrace when a failure is caused by an exception \n\nWhen a spec fails due to an exception, the exception's stacktrace is printed when running the spec in Rhino. This helps to locate the code that caused the exception."
},
{
"from": "human",
"value": "(fu... | javascript | chosen |
[
{
"from": "system",
"value": "Remove no longer needed Ember import\n"
},
{
"from": "human",
"value": "import Ember from 'ember';\nimport DS from 'ember-data';\n\nexport default DS.Model.extend({\n name: DS.attr('string'),\n annotation: DS.attr('string'),\n createdAt: DS.attr('date'),\n updat... | javascript | chosen |
[
{
"from": "system",
"value": "Return one Rep from the list, randomly\n"
},
{
"from": "human",
"value": "$(document).ready(\n\n$.getJSON('https://reps.mozilla.org/api/v1/rep/?offset=0&limit=0&group=council&callback=?', \n function(data) {\n console.log('got it!');\n $('body').app... | javascript | chosen |
[
{
"from": "system",
"value": "Fix UI when there is not chart maintainer defined\n"
},
{
"from": "human",
"value": "/*\nCopyright 2016 ElasticBox All rights reserved.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the Lice... | javascript | chosen |
[
{
"from": "system",
"value": "Add entity getWidth and getHeight.\n"
},
{
"from": "human",
"value": "module.exports = Entity = function(entity) {\n\n\tvar name = entity.name,\n\t\tcoordinate = entity.coordinate,\n\t\twidth = entity.width,\n\t\theight = entity.height,\n\t\ttype = entity.type,\n\t\... | javascript | chosen |
[
{
"from": "system",
"value": "Break on any amount of whitespace instead of on one space only\n"
},
{
"from": "human",
"value": "var lodash = require('lodash'),\n knife = require('../knife'),\n Issue = require('../issue');\n\nmodule.exports = {\n name: 'id-class-style',\n on: ['attr']... | javascript | chosen |
[
{
"from": "system",
"value": "ADD delete method on DAO .\n"
},
{
"from": "human",
"value": "const path = require('path');\nconst model = require(path.resolve('src/model/pokemon'));\n\nconst dao = {\n\n\tcreate: function(pokemon) {\n\t\treturn model.create(pokemon);\n\t},\n\n\tfindOne: function(q... | javascript | chosen |
[
{
"from": "system",
"value": "Add `hexWithAlpha`, which outputs CSS colors\n"
},
{
"from": "human",
"value": "/*\n * A color scheme for the application. All non-trivial colors should\n * reference this module (e.g., using 'black' or '#000' is okay, but\n * something like '#ccc' should instead be... | javascript | chosen |
[
{
"from": "system",
"value": "Change name of assignVolume to assignTargetVolume\n"
},
{
"from": "human",
"value": "Mixer = function () {\n\tthis.mix = []\n\tthis.target\n}\n\n//Sets target for later manipulation(ie. volume, filter)\nMixer.prototype.assignTarget = function (position) {\n\tthis.ta... | javascript | chosen |
[
{
"from": "system",
"value": "Reduce polling access by exponential backoff like strategy\n"
},
{
"from": "human",
"value": "(function(){\n \"use strict\";\n var POLLING_INTERVAL = 3 * 1000;\n var POLLING_URL = \"/polling/alerts\";\n\n $(function(){\n if($('#vue-notification').length === 0... | javascript | chosen |
[
{
"from": "system",
"value": "Add react-intl mock for tests\n"
},
{
"from": "human",
"value": "import { configure } from 'enzyme'; // eslint-disable-line import/no-extraneous-dependencies\nimport Adapter from '@wojtekmaj/enzyme-adapter-react-17'; // eslint-disable-line import/no-extraneous-depen... | javascript | chosen |
[
{
"from": "system",
"value": "Read only 4100 first bytes from response stream\n"
},
{
"from": "human",
"value": "const path = require('path')\n\nconst fileType = require('file-type')\nconst contentType = require('content-type')\nconst mime = require('mime-types')\n\nasync function parseType(toke... | javascript | chosen |
[
{
"from": "system",
"value": "Fix transitioning to results page\n"
},
{
"from": "human",
"value": "import Ember from 'ember';\n\nexport default Ember.Route.extend({\n setupController(controller, session) {\n this._super(controller, session);\n controller.set('experiment', this.controllerF... | javascript | chosen |
[
{
"from": "system",
"value": "Resolve some issues bringing the new candidates chart into master\n"
},
{
"from": "human",
"value": "var TopicChartsView = Backbone.View.extend({\n\n initialize: function() {\n this.$el = $(\"#charts-container\");\n this.template = JST[\"templates/topic-chart... | javascript | chosen |
[
{
"from": "system",
"value": "[test-studio] Add example of using custom icon for list item\n"
},
{
"from": "human",
"value": "import S from '@sanity/desk-tool/structure-builder'\nimport RefreshIcon from 'part:@sanity/base/sync-icon'\nimport JsonDocumentDump from './components/JsonDocumentDump'\n... | javascript | chosen |
[
{
"from": "system",
"value": "FIx Document provider not refetching\n"
},
{
"from": "human",
"value": "import { createAction } from 'redux-actions';\nimport { createThunkAction } from 'utils/redux';\nimport isEmpty from 'lodash/isEmpty';\n\nexport const fetchCountriesDocumentsInit = createAction(... | javascript | chosen |
[
{
"from": "system",
"value": "[FIX] Load content templates when \"templates\" ckeditor toolbar button is pressed.\n\n\n\ngit-svn-id: a7fabbc6a7c54ea5c67cbd16bd322330fd10cc35@46046 b456876b-0849-0410-b77d-98878d47e9d5\n"
},
{
"from": "human",
"value": "/* \n * $Id$\n * (c) Copyright 2002-2013 by ... | javascript | chosen |
[
{
"from": "system",
"value": "Structure angular to both get and give messages\n"
},
{
"from": "human",
"value": ";(function(){\n var app = angular.module('Communicant', []);\n // app.controller('ListOfMessages', ['$scope', '$http', function($scope, $http){\n // $http.get(\"\")\n console.lo... | javascript | chosen |
[
{
"from": "system",
"value": "Add missing cdata tags to index scene.\n"
},
{
"from": "human",
"value": "var _ = require('underscore'),\n Vector = require(\"./vector\"),\n path = require(\"path\");\n\n'use strict';\n\nvar IndexScene = function(file){\n var self = this;\n\n self.xml = \"<scene... | javascript | chosen |
[
{
"from": "system",
"value": "Allow binding AGI server to specified host\n"
},
{
"from": "human",
"value": "var Context = require('./context');\n\nvar agi = function (handler, optionsIn) {\n \n var server;\n var options = optionsIn || {};\n\n var settings = {\n port: options.port || 3000,... | javascript | chosen |
[
{
"from": "system",
"value": "Allow the session expiration length to be configurable\n"
},
{
"from": "human",
"value": "var MongoClient = require('mongodb').MongoClient;\nmodule.exports = {\n init: function(expressConfig, session, cb) {\n var self = this;\n var MongoStore = require('conne... | javascript | chosen |
[
{
"from": "system",
"value": ":muscle: Add code for Map() instead of Array()\n"
},
{
"from": "human",
"value": "// Copyright (c) 2017 The Regents of the University of Michigan.\n// All Rights Reserved. Licensed according to the terms of the Revised\n// BSD License. See LICENSE.txt for details.\n... | javascript | chosen |
[
{
"from": "system",
"value": "Convert memory usage to megabytes\n"
},
{
"from": "human",
"value": "var os = Npm.require('os');\nvar uvmon = Npm.require('nodefly-uvmon');\n\nSystemModel = function () {\n var self = this;\n this.lastGetData = (new Date).getTime();\n // need to call this here an... | javascript | chosen |
[
{
"from": "system",
"value": "Add a bunch of FED images\n"
},
{
"from": "human",
"value": "'use strict';\n\nmodule.exports = {\n\n // Thingme config\n // see: https://github.com/rowanmanning/thingme#configuration\n singular: 'fed',\n plural: 'feds',\n\n // FED image URLs\n thin... | javascript | chosen |
[
{
"from": "system",
"value": "Add branch to allow opt-out of automatic motor control\n"
},
{
"from": "human",
"value": "var diffSteer = require('./diff_steer');\n\nfunction explicate(motorSpeed) {\n var motorDirection = motorSpeed < 0 ? motorControl.revMethod : motorControl.fwdMethod;\n return... | javascript | chosen |
[
{
"from": "system",
"value": "Change config filename to avoid conflict.\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst process = require('process');\nconst JsonDB = require('node-json-db');\n\nlet instance = null;\nlet app = null;\n\n/* To make the util runnable in both main and rende... | javascript | chosen |
[
{
"from": "system",
"value": "Fix resolving of packup index.html template\n"
},
{
"from": "human",
"value": "var path = require('path');\nvar fs = require('fs');\nvar webpack = require('webpack');\nvar HtmlWebpackPlugin = require('html-webpack-plugin');\n\nmodule.exports = function(options) {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add match references {1}, {2} in messages\n"
},
{
"from": "human",
"value": "/**\n * Terminal Module for the Cloud9\n *\n * @copyright 2013, Ajax.org B.V.\n */\n\ndefine(function(require, exports, module) {\n \"use strict\";\n \n var MessageHandler = functi... | javascript | chosen |
[
{
"from": "system",
"value": "Use React Component for the main container\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport styles from './styles';\nimport DevTools from './containers/DevTools';\nimport createRemoteStore from './store/createRemoteStore';\nimport ButtonBar from... | javascript | chosen |
[
{
"from": "system",
"value": "Remove Terser specifics from the shared configuration\n\nIt must only applies to TEST\n"
},
{
"from": "human",
"value": "const { environment } = require('@rails/webpacker')\n\n// config\nconst alias = require('./config/alias')\nconst terser = require(\"./config/ters... | javascript | chosen |
[
{
"from": "system",
"value": "Fix tests under Nightly 50.0a1\n"
},
{
"from": "human",
"value": "'use strict'\n\nconst tabs = require('sdk/tabs')\nconst parent = require('sdk/remote/parent')\nconst self = require('sdk/self')\nconst testpage = self.data.url('linkify-demo.html')\nconst prefs = requ... | javascript | chosen |
[
{
"from": "system",
"value": "Add increment and restart methods\n"
},
{
"from": "human",
"value": "import { ADD_ACCEPT_NAME, ADD_REJECT_NAME } from '../actions/name-actions';\n\nconst initialState = {\n accepted: [],\n rejected: []\n}\n\nexport default function (state = initialState, act... | javascript | chosen |
[
{
"from": "system",
"value": "Move searchPortal ref function to constructor"
},
{
"from": "human",
"value": "import React, { Component } from 'react';\n\nexport default class EmojiSuggestionsPortal extends Component {\n\n componentWillMount() {\n this.props.store.register(this.props.offsetKe... | javascript | chosen |
[
{
"from": "system",
"value": "Use false instead of null to avoid using a layout\n"
},
{
"from": "human",
"value": "var Handlebars = require('handlebars');\n\nfunction Exbars(options) {\n this.defaultLayout = options.defaultLayout ? options.defaultLayout : null;\n this.handlebars = Handlebars;\... | javascript | chosen |
[
{
"from": "system",
"value": "Clean up the command output\n"
},
{
"from": "human",
"value": "var fs = require('fs');\nvar path = require('path');\nvar semver = require('semver');\nvar execSync = require('child_process').execSync;\nvar packageJSONPath = path.join(process.cwd(), 'package.json');\n... | javascript | chosen |
[
{
"from": "system",
"value": "Add indented syntax for .sass files\n"
},
{
"from": "human",
"value": "let AutomaticComponent = require('./AutomaticComponent');\n\nclass Css extends AutomaticComponent {\n /**\n * webpack rules to be appended to the master config.\n */\n webpackRules(... | javascript | chosen |
[
{
"from": "system",
"value": "Update list of basic shortcuts to follow standard\n\nShortcuts are defined using blessed full key name however the default shortcuts were using a different algorithm."
},
{
"from": "human",
"value": "import React, { Component, PropTypes } from 'react';\nimport { con... | javascript | chosen |
[
{
"from": "system",
"value": "Send button component when clicked\n\nThis allows a parent component to set properties on the button that it can then access in the click event. E.g.: `{{mdl-button action=toggleProperty propertyToToggle=myProp}}`\r\n\r\nThen in the parent component:\r\n\r\n```\r\nactions: {\r\... | javascript | chosen |
[
{
"from": "system",
"value": "Convert to 32 float in float input\n"
},
{
"from": "human",
"value": "import { evalFloatStr } from '../float'\nimport { onChange } from '../state'\nimport { numberCharWidth, somePxls } from './inputCharWidth'\n\nconst $float = document.getElementById('float')\n\ncon... | javascript | chosen |
[
{
"from": "system",
"value": "Use non-minified Quinn in establishment shot\n"
},
{
"from": "human",
"value": "//= require d3.v2\n//= require lib/models/metric\n//= require lib/models/quantity\n//= require jquery.quinn.min\n//= require establishment_shot/main\n//= require establishment_shot/error... | javascript | chosen |
[
{
"from": "system",
"value": "Add update and render methods\n"
},
{
"from": "human",
"value": "'use strict';\n\nexport default class Game {\n constructor() {\n console.log('Game - construct');\n }\n\n start() {\n console.log('Game - start');\n }\n}\n"
},
{
"from": "gpt",
"v... | javascript | chosen |
[
{
"from": "system",
"value": "Change from dev.api.formvent to api.eventhub.org\n\n@adammeyer, we'll need to figure out a way to make the value parameterized so that when deploying to stage it is `https://stage.api.eventhub.org` and to production is `https://api.eventhub.org`"
},
{
"from": "human",
... | javascript | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.