conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Move top route data into Ember Route instead of as a computed property.\n"
},
{
"from": "human",
"value": "/**\n * Index Controller.\n *\n * @module controllers/index\n */\nimport Ember from 'ember';\n\nexport default Ember.Controller.extend({\n /** A CSS identifie... | javascript | chosen |
[
{
"from": "system",
"value": "Fix to many attached events\n"
},
{
"from": "human",
"value": "define(['./stream'], function(Stream) {\n 'use strict';\n\n /**\n * @param {Element} element\n * @param {String} eventName\n * @return {Stream}\n */\n return function fromEvent(el... | javascript | chosen |
[
{
"from": "system",
"value": "Change unit for moisture sensors\n"
},
{
"from": "human",
"value": "/*\n * Moisture simulator\n *\n */\nmodule.exports = function(sensor_id){\n \n var simulator = {};\n\n simulator.id = sensor_id;\n simulator.type = 'moisture';\n simulator.unit = 'pe... | javascript | chosen |
[
{
"from": "system",
"value": "Fix search (send CSRF token as header, not data field)\n\n[#59376656]\n"
},
{
"from": "human",
"value": "// Automatically adds CSRF token to all Ajax calls.\n// AUTH_TOKEN is provided by the page page (e.g. application.html.haml).\n\njQuery(function() {\n var authT... | javascript | chosen |
[
{
"from": "system",
"value": "Use offsetHeight instead of clientHeight as it's more technically correct\n"
},
{
"from": "human",
"value": "function jumpToToday() {\n var todayMatches = document.querySelectorAll(\".match.today-ish:not(.filter-no-match)\");\n var lastToday = todayMatches[todayMa... | javascript | chosen |
[
{
"from": "system",
"value": "Fix socket closed on connection reset bug\n"
},
{
"from": "human",
"value": "var net = require(\"net\");\nvar express = require(\"express\");\nvar bodyParser = require(\"body-parser\");\nvar config = require('./config');\n\nvar app = express();\napp.use(bodyParser.u... | javascript | chosen |
[
{
"from": "system",
"value": "Switch file serving to express static\n"
},
{
"from": "human",
"value": "// var http = require('http');\nvar express = require('express');\nvar app = express();\n\nvar PATH = '/../public/';\nvar PORT = 3000;\n\napp.get('/', function (res, req, next) {\n\n var opt... | javascript | chosen |
[
{
"from": "system",
"value": "Change URL of project image\n"
},
{
"from": "human",
"value": "/* eslint-disable no-unused-vars*/\nimport React, { Component } from 'react';\n/* eslint-enable no-unused-vars*/\n\nimport { Jumbotron } from 'react-bootstrap';\n\nconst Projects = () => (\n <div>\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix stmp server to receive a mail without auth\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar SMTPServer = require('smtp-server').SMTPServer\n , ehlo = {}\n;\n\n\nehlo.options = {\n port: 10025\n , api: ''\n};\n\nehlo.start = function() {\n console.log(... | javascript | chosen |
[
{
"from": "system",
"value": "Message.Note: Fix isNote prop for rendering\n\nThis resolve the React warning for `isNote` rendering for `Message.Action`.\n"
},
{
"from": "human",
"value": "// @flow\nimport React from 'react'\nimport Text from '../Text'\nimport ChatBlock from './ChatBlock'\nimport... | javascript | chosen |
[
{
"from": "system",
"value": "Update podcast list when Remove All is pressed\n"
},
{
"from": "human",
"value": "function updatePodcastList() {\n\tvar podcastListElement = $('#podcastList');\n\n\tvar bgPage = chrome.extension.getBackgroundPage();\n\n\tvar listHTML = '';\n\n\tbgPage.podcastManager... | javascript | chosen |
[
{
"from": "system",
"value": "Add search bar to static about/help pages\n"
},
{
"from": "human",
"value": "var imagespace = imagespace || {};\n\n_.extend(imagespace, {\n models: {},\n\n collections: {},\n\n views: {},\n\n router: new Backbone.Router(),\n\n events: _.clone(Backbone... | javascript | chosen |
[
{
"from": "system",
"value": "Fix join community not working from communities list\n"
},
{
"from": "human",
"value": "'use strict';\n\nangular.module('Teem')\n .directive('participate', function() {\n return {\n controller: [\n '$scope', '$element', '$attrs', 'SessionSvc', '$timeou... | javascript | chosen |
[
{
"from": "system",
"value": "Add php to extras task\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar url = 'http://www.samplesite.com';\n\nvar src = './src/';\nvar build = \"./build/\";\nvar dist = \"./dist/\";\n\nmodule.exports = {\n site: {\n url: url,\n host: 'hosting.com',\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Remove setting `global.Handlebars` which was left over from testing.\n"
},
{
"from": "human",
"value": "var Y = require('yui/handlebars'),\n\n templates = require('./templates').raw;\n\nglobal.Handlebars = Y.Handlebars;\n\n// Register all templates as partials.\n... | javascript | chosen |
[
{
"from": "system",
"value": "Update support for Meteor 1.2"
},
{
"from": "human",
"value": "// package metadata file for Meteor.js\n\n/* jshint strict:false */\n/* global Package:true */\n\nPackage.describe({\n name: 'twbs:bootstrap', // http://atmospherejs.com/twbs/bootstrap\n summary: 'The... | javascript | chosen |
[
{
"from": "system",
"value": "Fix Expired logic to catch Jobs never updated\n"
},
{
"from": "human",
"value": "UI.registerHelper(\"getPrettyDateAndTime\", function(timestamp) {\n\tif(timestamp)\n\t\treturn moment(timestamp).format('M/D/YY h:mm:ss A');\n});\n\nUI.registerHelper(\"getCurrentUserDi... | javascript | chosen |
[
{
"from": "system",
"value": "Add support for Meteor 1.2\n"
},
{
"from": "human",
"value": "// Meteor package definition.\nPackage.describe({\n name: 'aramk:quill',\n version: '0.1.0',\n summary: 'Quill Rich Text Editor',\n git: 'https://github.com/aramk/meteor-quill.git'\n});\n\nPackage.onU... | javascript | chosen |
[
{
"from": "system",
"value": "Add a new collection item button.\n"
},
{
"from": "human",
"value": "import { Component } from 'substance'\nimport EntityEditor from './EntityEditor'\n\nexport default class CollectionEditor extends Component {\n render($$) {\n let el = $$('div').addClass('sc-co... | javascript | chosen |
[
{
"from": "system",
"value": "Remove shebang line from speicalize.\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\n\nrequire('proof')(2, prove)\n\nfunction prove (assert) {\n var tz = require('timezone')\n var detroit = tz(require('timezone/America/Detroit'), 'America/Detroit')\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Validate type, and examples for heating\n"
},
{
"from": "human",
"value": "const mongoose = require('mongoose');\nconst Schema = mongoose.Schema;\n\nvar InfractionSchema = new Schema({\n moderatorID: {\n type: Number,\n required: true\n },\n t... | javascript | chosen |
[
{
"from": "system",
"value": "Add Default Main Routes for WebServer API\n"
},
{
"from": "human",
"value": "exports.default =\n{\n\troutes: function(api)\n\t{\n\t\treturn {\n\t\t\tget:\t\t\t[\n\t\t\t\t/* \tSTATUS \t*/\n\t\t\t\t{path: '/:apiVersion/Service/Status'\t\t\t\t, action: 'Status'}\n\t\t\... | javascript | chosen |
[
{
"from": "system",
"value": "Simplify config helpers, add overwriteConfig option\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar fs = require('fs'),\n path = require('path'),\n _ = require('lodash');\n //rsvp = require('rsvp');\n\nvar _save,\n saveConfig,\n loadConfig,\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix bug in dialect's allowJobType()\n"
},
{
"from": "human",
"value": "\nvar _ = require('underscore')\n\nmodule.exports = {\n allowJobType: function(jobType) {\n if (! _.isArray(jobType))\n jobType = [jobType];\n\n //console.log('allowing', jobType)\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Move 'toObject' and 'toJSON' config into schema config\n"
},
{
"from": "human",
"value": "var mongoose = require('mongoose'),\n\tuuid = require('uuid/v1'),\n\tCard = require('./CardModel'),\n\tSchema = mongoose.Schema,\n\tPlayerSchema = new Schema({\n\t\tsessionId: ... | javascript | chosen |
[
{
"from": "system",
"value": "Use card display store from Guild ball app\n"
},
{
"from": "human",
"value": "import { createReducer } from 'redux-immutablejs';\nimport { createSelector } from 'reselect';\nimport Immutable from 'immutable';\n\nimport constants from './constants';\n\n// Constants\n... | javascript | chosen |
[
{
"from": "system",
"value": "refactor: Move code out of try block\n"
},
{
"from": "human",
"value": "const fs = require('./fs');\nconst util = require('./util');\n\n/**\n * add subcommand\n */\nmodule.exports = function* (file, filePath, config, passFilePath, passphrases) {\n const isRunSSHAdd... | javascript | chosen |
[
{
"from": "system",
"value": "Complete templates for tape pass, fail assertions.\n"
},
{
"from": "human",
"value": "// UTILITY TEMPLATES\nvar tempRequire = \"var {{=it.varName}} = require('{{=it.module}}');\";\n\n// BASE TEMPLATE FOR TESTS (deliberately incomplete statement - closed in util fx)\... | javascript | chosen |
[
{
"from": "system",
"value": "Change letters.date to not default to a date, but just be required\n"
},
{
"from": "human",
"value": "const mongoose = require('mongoose');\r\nconst Schema = mongoose.Schema;\r\nconst limits = require('../config').limits;\r\n\r\nconst GameSchema = Schema({\r\n cr... | javascript | chosen |
[
{
"from": "system",
"value": "Disable protractor colour output on Jenkins\n"
},
{
"from": "human",
"value": "var extend = require('extend');\nvar defaults = require('./protractor-default-conf').config;\n\nexports.config = extend(defaults, {\n multiCapabilities: [\n {\n browserName: 'chr... | javascript | chosen |
[
{
"from": "system",
"value": "Throw a proper error object when feature test fails\n"
},
{
"from": "human",
"value": "\n// reuse-lang - a pure functional lisp-like language for writing\n// reusable algorithms in an extremely portable way.\n//\n// Written in 2015 by Jesper Oskarsson jesosk@gmail.c... | javascript | chosen |
[
{
"from": "system",
"value": "Read device pixel ratio inside init function\n"
},
{
"from": "human",
"value": "(function () {\n function initTwinklingStars(devicePixelRatio) {\n\n particlesJS('stars', {\n particles: {\n number: {\n value: 180... | javascript | chosen |
[
{
"from": "system",
"value": "Add PORT environmental variable support. Favor optimist argv.\r\n\r\nUseful for deployment and on PaaS services like Heroku.\r\n\r\nFor example, Heroku uses a different port for each deploy. Luckily, the port number is stored in an environmental variable called PORT.\r\n\r\nhtt... | javascript | chosen |
[
{
"from": "system",
"value": "Refactor & add `page` query parameter\n"
},
{
"from": "human",
"value": "import l from 'chalk-log'\n\nimport axe from './axe'\n\nexport default {\n getUserRepos ({ username, token, page }) {\n const params = (token) ? { auth: { username, password: token } } : {}... | javascript | chosen |
[
{
"from": "system",
"value": "Fix body size limiter middleware.\n"
},
{
"from": "human",
"value": "var log = require('util/log');\n\nfunction attachMiddleware(maxSize) {\n return function bodyDecoder(req, res, next) {\n var cl, bodyLen = 0;\n cl = req.headers['content-length'];\n\n if ... | javascript | chosen |
[
{
"from": "system",
"value": "Use PORT environment variable when it is available because Heroku\n"
},
{
"from": "human",
"value": "import 'babel-polyfill'\nimport bodyParser from 'body-parser'\nimport express from 'express'\nimport log from './log'\nimport appRenderer from './middleware/app-rend... | javascript | chosen |
[
{
"from": "system",
"value": "styles: Remove constants SPACING and HALF_SPACING.\n\nThis concludes a series of commits to replace all instances of\nSPACING and HALF_SPACING with their values.\n\nFixes #2641.\n"
},
{
"from": "human",
"value": "/* @flow */\nexport const CONTROL_SIZE = 44;\nexport ... | javascript | chosen |
[
{
"from": "system",
"value": "Add support for click and drag position adjustment\n"
},
{
"from": "human",
"value": "/**\n * @file Holds all RoboPaint manual/auto painting mode specific code\n */\n\n// Initialize the RoboPaint canvas Paper.js extensions & layer management.\nrpRequire('paper_utils... | javascript | chosen |
[
{
"from": "system",
"value": "Remove crufty global (fixes globals.html test)\n"
},
{
"from": "human",
"value": "/**\n@license\nCopyright (c) 2017 The Polymer Project Authors. All rights reserved.\nThis code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.tx... | javascript | chosen |
[
{
"from": "system",
"value": "Add enter keymap to login\n"
},
{
"from": "human",
"value": "Space.flux.BlazeComponent.extend(Donations, 'OrgLoginForm', {\n\n dependencies: {\n loginStore: 'Space.accountsUi.LoginStore'\n },\n\n state() {\n return this.loginStore;\n },\n\n events() {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add semicolon to prevent JS errors on CKAN module load\n"
},
{
"from": "human",
"value": "ckan.module('ioos_theme_hier_expand', function($) {\n return {\n initialize: function() {\n var toggler = document.getElementsByClassName(\"tree-caret\");\n ... | javascript | chosen |
[
{
"from": "human",
"value": "Add a template at the click on addTome\n"
},
{
"from": "gpt",
"value": "Template.addCompleteMangas.events({\n 'click .addTome': function(e, t) {\n return Blaze.render(Template.addTome, t.$('.tomes').get(0));\n }\n});\n"
}
] | javascript | chosen |
[
{
"from": "system",
"value": "Fix path for deleting order PDFs on startup\n"
},
{
"from": "human",
"value": "const glob = require('glob')\nconst path = require('path')\nconst fs = require('fs-extra')\n\nconst cleanupFtpFolder = () => {\n glob(path.join(__dirname, 'ftp/*.pdf'), (err, files) => {... | javascript | chosen |
[
{
"from": "system",
"value": "Fix the path to animation and fontello styles.\n"
},
{
"from": "human",
"value": "import 'normalize.css';\nimport '../assets/css/general.scss';\nimport '../assets/css/animation.scss';\nimport '../assets/css/fontello.scss';\nimport 'baguettebox.js/dist/baguettebox.mi... | javascript | chosen |
[
{
"from": "system",
"value": "Set the hook timeout back to 60 seconds.\n"
},
{
"from": "human",
"value": "/**\n * Production environment settings\n *\n * This file can include shared settings for a production environment,\n * such as API keys or remote database passwords. If you're using\n * a ... | javascript | chosen |
[
{
"from": "system",
"value": "Use Raven.noConflict() when exporting as AMD module"
},
{
"from": "human",
"value": "\n// Expose Raven to the world\nwindow.Raven = Raven;\n\n// AMD\nif (typeof define === 'function' && define.amd) {\n define('raven', [], function() { return Raven; });\n}\n\n})(w... | javascript | chosen |
[
{
"from": "system",
"value": "Check that the sample.json file can be loaded.\n"
},
{
"from": "human",
"value": "/* This Source Code Form is subject to the terms of the Mozilla Public\n * License, v. 2.0. If a copy of the MPL was not distributed with this\n * file, You can obtain one at http://mo... | javascript | chosen |
[
{
"from": "system",
"value": "CB-6465: Add license headers to Tizen code\n"
},
{
"from": "human",
"value": "var cordova = require('cordova');\n\nvar batteryListenerId = null;\n\nmodule.exports = {\n start: function(successCallback, errorCallback) {\n var batterySuccessCallback = functi... | javascript | chosen |
[
{
"from": "system",
"value": "Move the proxy route handlers to onAfterAction so that the template gets rendered properly (instead of showing a brown/white blank page)\n"
},
{
"from": "human",
"value": "Router.route('/',{\n template: 'nucleus'\n});\n\nRouter.route('/login-with-github', {\n temp... | javascript | chosen |
[
{
"from": "system",
"value": "Set IPHandlingPolicy to force proxy on update if legacy option was checked.\n\nOn update, this will check if the user had selected the legacy\nwebRTCNonProxiedUdpEnabled option.\n\nIf they had, webRTCIPHandlingPolicy will be set to the equivalent -\n'disable_non_proxied_udp'.\n... | javascript | chosen |
[
{
"from": "system",
"value": "Change starter to support new structure\n"
},
{
"from": "human",
"value": "/**\n * Bootstrap File, Will only call the core in the node_modules!\n *\n * For more information visit the github of ManiaJS:\n * @link https://github.com/ManiaJS/ManiaJS\n */\nprocess.env.C... | javascript | chosen |
[
{
"from": "system",
"value": "Remove loading mask after the model is loaded\n"
},
{
"from": "human",
"value": "import Route from 'ember-route'\nimport service from 'ember-service/inject'\nimport $ from 'jquery'\n\n/**\n * The default application route\n *\n * @class ApplicationRoute\n * ... | javascript | chosen |
[
{
"from": "system",
"value": "Implement display of a selected item, no matter what list it's from\n"
},
{
"from": "human",
"value": "/**\n * Main App Controller for the Angular Material Starter App\n * @param UsersDataService\n * @param LightsDataService\n * @param $mdSidenav\n * @constructor\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Use event.waitUntil in message-relay recipe\n"
},
{
"from": "human",
"value": "// Listen for messages from clients.\nself.addEventListener('message', function(event) {\n // Get all the connected clients and forward the message along.\n self.clients.matchAll().then... | javascript | chosen |
[
{
"from": "system",
"value": "Fix jquery snippet test require\n"
},
{
"from": "human",
"value": "require('es5-shim');\n\nrequire('./clientIdGenerator');\nrequire('./clipboard');\nrequire('./jQuerySnippet');\nrequire('./messageParser');\nrequire('./webSocketManager');\nrequire('./settingsStore');... | javascript | chosen |
[
{
"from": "system",
"value": "Rename 'del' to 'delete' due to express4 deprec"
},
{
"from": "human",
"value": "\nvar methods = require('methods').concat(['del'])\n\nmodule.exports = namespace\n\nfunction join(one, two) {\n if (one[one.length - 1] === '/') one = one.slice(0, -1)\n if (two[0] !=... | javascript | chosen |
[
{
"from": "system",
"value": "Include user background image on picker to ensure that info gets updated once the server respond.\n"
},
{
"from": "human",
"value": "import Relay from 'react-relay';\nimport BackgroundImagePicker from './BackgroundImagePickerComponent';\n\nexport default Relay.creat... | javascript | chosen |
[
{
"from": "system",
"value": "Update plyr.io version in AudioVideo player\n"
},
{
"from": "human",
"value": "define(function(require, exports, module) {\n 'use strict';\n var TSCORE = require(\"tscore\");\n console.log(\"Loading: ext.api.js\");\n \n window.addEventListener(\"message\", hand... | javascript | chosen |
[
{
"from": "system",
"value": "Update documentation for the escapeURI function.\n\nCo-authored-by: Evan Mattson <04b4a59aa52dbba0fe4139b6afe8885fd3fa41ec@10up.com>"
},
{
"from": "human",
"value": "/**\n * Escape URI components utility.\n *\n * Site Kit by Google, Copyright 2020 Google LLC\n *\n *... | javascript | chosen |
[
{
"from": "system",
"value": "Add latest python to fedora\n"
},
{
"from": "human",
"value": "var funcs = require('./funcs.js')\n\nmodule.exports = function (dist, release) {\n var contents = funcs.replace(header, {dist: dist, release: release}) + '\\n\\n'\n contents += funcs.replace(pkgs, {pkg... | javascript | chosen |
[
{
"from": "system",
"value": "Remove turning parameters into trailing data automatically\n"
},
{
"from": "human",
"value": "/**\n * Represents an IRC message.\n *\n * @param {string|Object|null} prefix Message prefix. (Optional.)\n * @param {string} command Command name.\n * @param {Array.<strin... | javascript | chosen |
[
{
"from": "system",
"value": "Correct typo of reference to version ref\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar StorageHelpers = require('./storage-helpers');\n\nfunction saveBundle(where, info, cb) {\n StorageHelpers.saveBundle.call(this, where, info.name, info.bundleString, f... | javascript | chosen |
[
{
"from": "system",
"value": "Fix styles path for stories.\n"
},
{
"from": "human",
"value": "// CSS\nimport 'src/style/enterprise_style/application.scss';\n\n// Kapacitor Stories\nimport './kapacitor'\n"
},
{
"from": "gpt",
"value": "// CSS\nimport 'src/style/chronograf.scss';\n\n//... | javascript | chosen |
[
{
"from": "system",
"value": "Change Publish from global variable to local variable\n"
},
{
"from": "human",
"value": "\n/*!\n * Analytics Machine - Models - Mongoose Plugins\n * Copyright(c) Thomas Blobaum\n * MIT Licensed\n */\n\nfunction mongoosePublishOnSave (schema, options) {\n options = ... | javascript | chosen |
[
{
"from": "system",
"value": "Add comments to function and loop for clarity\n"
},
{
"from": "human",
"value": "var pingPongType = function(i) {\n if ((i % 5 === 0) || (i % 3 === 0) || (i % 15 === 0)) {\n if (i % 15 === 0) {\n return \"pingpong\";\n } else if (i % 5 === 0) {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Prepend 'Advanced' instead of replacing the carat span\n"
},
{
"from": "human",
"value": "// Thanks to GVSU https://github.com/gvsulib/Summon-2.0-Scripts) and others for sharing your summon hacks\n\n$(document).ready(function() {\n\n //Dev\n// var cssPath = '//byp... | javascript | chosen |
[
{
"from": "system",
"value": "Update path fonts gulp task"
},
{
"from": "human",
"value": "// imports\nvar gulp = require('gulp');\nvar browserify = require('browserify');\nvar source = require('vinyl-source-stream');\nvar uglify = require('gulp-uglify');\nvar buffer = require('vinyl-... | javascript | chosen |
[
{
"from": "system",
"value": "Add missing build sequence to gulp package command.\n"
},
{
"from": "human",
"value": "// Modules.\nlet gulp = require('gulp'),\n requireDir = require('require-dir'),\n runSequence = require('gulp-run-sequence');\n\n// Require all tasks within tasks directory,... | javascript | chosen |
[
{
"from": "system",
"value": "Add helper functions smaller and largert\n"
},
{
"from": "human",
"value": "// @flow\n\ntype Point = {\n x: number,\n y: number\n}\n\nexport const convertSpaces = (element: string): string =>\n element.replace('%20', '_').replace(' ', '_')\n\nexport const angleRa... | javascript | chosen |
[
{
"from": "system",
"value": "Add encoding for Buffers (that pass through deserialize)\n"
},
{
"from": "human",
"value": "import _ from \"lodash\"\nimport Str from \"underscore.string\"\n\n// Transform from `addr__name_id` to `addr.nameId`\n// TODO: Memoize to improve performance\nexport functio... | javascript | chosen |
[
{
"from": "system",
"value": "Change test server location message\n"
},
{
"from": "human",
"value": "process.title = 'test-server';\n\nvar fs = require('fs');\nvar hapi = require('hapi');\nvar inert = require('inert');\n\nvar root = fs.readFileSync(__dirname + '/layout_partials/root.hbt').toSt... | javascript | chosen |
[
{
"from": "system",
"value": "Add documentation for each step in the insertionSort process\n"
},
{
"from": "human",
"value": "/**\n * An implementation of insertionSort\n *\n * @name insertionSort\n * @function\n * @param {Array} xs the list to sort\n */\nexport function insertionSort(xs) {\n f... | javascript | chosen |
[
{
"from": "system",
"value": "Fix spec that caused an error in React 15\n\nRefactored the `identity` function to return `el`, otherwise React 15 complains\nthat `WithDragAndDrop` does not return a valid React element.\n"
},
{
"from": "human",
"value": "// __spec__.js\nimport React from 'react';\... | javascript | chosen |
[
{
"from": "system",
"value": "Fix bug when no tools were installed\n"
},
{
"from": "human",
"value": "import React from 'react'\nimport ToolSwitcher from './ToolSwitcher'\nimport RenderTool from './RenderTool'\nimport {Router, Route, NotFound, Redirect} from 'router:@sanity/base/router'\nimport ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix route from app.jsx to workspace controller component\n"
},
{
"from": "human",
"value": "// inferno module\nimport React from 'react';\nimport ReactDOM from \"react-dom\";\nimport { Router, Route, browserHistory } from 'react-router';\n\n// scss module\nimport '.... | javascript | chosen |
[
{
"from": "system",
"value": "Fix karma tests not building\n"
},
{
"from": "human",
"value": "const webpackConfig = require('./webpack.config');\nwebpackConfig.devtool = 'inline-source-map';\nwebpackConfig.externals = {\n 'react/lib/ExecutionEnvironment': true,\n 'react/lib/ReactContext': 'win... | javascript | chosen |
[
{
"from": "system",
"value": "Add source maps to tests\n"
},
{
"from": "human",
"value": "module.exports = function(config) {\n config.set({\n basePath: '',\n frameworks: ['jasmine', 'browserify'],\n files: [\n 'test/*'\n ],\n reporters: ['progress', 'coverage'],\n port: ... | javascript | chosen |
[
{
"from": "system",
"value": "Add cellContents: nbsp for now\n"
},
{
"from": "human",
"value": "var rows = 0;\nvar cols = 10;\nvar table;\nvar edit_border = \"thin dotted grey\";\n\nfunction text(str)\n{\n return document.createTextNode(str);\n}\n\nfunction init()\n{\n table = document.get... | javascript | chosen |
[
{
"from": "system",
"value": "Remove the prepended 0x returned from RPC.\n"
},
{
"from": "human",
"value": "var web3 = require('web3')\nvar rm = require('web3/lib/web3/requestmanager')\n\nvar web3api = function(provider) {\n\n this.requestmanager = rm.getInstance();\n\n try {\n web3... | javascript | chosen |
[
{
"from": "system",
"value": "Implement request message builder from REST request\n"
},
{
"from": "human",
"value": "function searchRequestBuilder(request) {\n}\nexports.search = searchRequestBuilder;\n"
},
{
"from": "gpt",
"value": "function searchRequestBuilder(request) {\n var pa... | javascript | chosen |
[
{
"from": "system",
"value": "Fix filename of bundled file"
},
{
"from": "human",
"value": "import { uglify } from \"rollup-plugin-uglify\";\nimport typescript from \"rollup-plugin-typescript2\";\nimport resolve from \"rollup-plugin-node-resolve\";\nimport license from \"rollup-plugin-license\";... | javascript | chosen |
[
{
"from": "system",
"value": "Fix issue when style prop is not an expression\n"
},
{
"from": "human",
"value": "/**\n * @fileoverview Enforce no single element style arrays\n * @author Michael Gall\n */\n\n'use strict';\n\nmodule.exports = {\n meta: {\n docs: {\n description:\n '... | javascript | chosen |
[
{
"from": "system",
"value": "Stop ESLint complaining about localStorage\n"
},
{
"from": "human",
"value": "module.exports = {\n root: true,\n parser: 'babel-eslint',\n parserOptions: {\n sourceType: 'module'\n },\n extends: 'airbnb-base',\n // required to lint *.vue files\n plugins: [... | javascript | chosen |
[
{
"from": "system",
"value": "Add Breadcrumbs to graphiql page\n"
},
{
"from": "human",
"value": "import React from 'react'\n\nimport GraphiQL from 'graphiql'\nimport 'graphiql/graphiql.css'\n\nexport default class extends React.Component {\n\tstatic useNavigation = false\n\n\tfetch(params) {\n\... | javascript | chosen |
[
{
"from": "system",
"value": "Use theme for bkg color\n\nSigned-off-by: soupette <0a59f0508aa203bc732745954131d022d9f538a9@gmail.com>\n"
},
{
"from": "human",
"value": "import styled from 'styled-components';\nimport CardImgWrapper from '../CardImgWrapper';\n\nconst FileWrapper = styled(CardImgW... | javascript | chosen |
[
{
"from": "system",
"value": "Update the profile edit route handler with resoruce check function.\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar EditprofileModel = require('../models/editprofile');\nvar easySession = require('easy-session');\n\n//Middleware\nvar auth = require('../lib/a... | javascript | chosen |
[
{
"from": "system",
"value": "Use helper.setQueryParameter instead of manipulating the state directly\n"
},
{
"from": "human",
"value": "import React, {PropTypes, Component} from 'react';\nimport {connect} from 'react-algoliasearch-helper';\n\nexport default function createHitsPerPage(Composed) ... | javascript | chosen |
[
{
"from": "system",
"value": "Comment out narratives email menu item\n"
},
{
"from": "human",
"value": "Ext.define('SlateAdmin.view.progress.NavPanel', {\n extend: 'SlateAdmin.view.LinksNavPanel',\n xtype: 'progress-navpanel',\n\n\n title: 'Student Progress',\n data: true,\n\n app... | javascript | chosen |
[
{
"from": "system",
"value": "Add extra Counter component in spec to show the result with value '0'\n"
},
{
"from": "human",
"value": "import React, { PureComponent } from 'react';\nimport { Counter, Heading1, Section } from '../../components';\nimport style from './counter.css';\n\nclass Counte... | javascript | chosen |
[
{
"from": "system",
"value": "Update snippet to use .enqueue\n\nPer https://issues.corp.twilio.com/browse/DEVED-3483, enqueueTask() no longer works – the lib now expects .enqueue()"
},
{
"from": "human",
"value": "// Download the Node helper library from twilio.com/docs/node/install\n// These co... | javascript | chosen |
[
{
"from": "system",
"value": "Update chosen directive to work with newer AngularJS versions.\n"
},
{
"from": "human",
"value": "angular.module(\"bmComponents\").directive(\"bmChosen\", [\"$timeout\",\n function ($timeout) {\n\n return {\n restrict : \"A\",\n link ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix date picker NAN issue\n"
},
{
"from": "human",
"value": "// @flow\n\nimport React from 'react';\nimport { DatePicker } from 'antd';\nimport { func, string, any } from 'prop-types';\nimport moment from 'moment';\n\nimport CellStyled from './Cell.styles';\nimport ... | javascript | chosen |
[
{
"from": "system",
"value": "Remove sprites falling because collisions are too slow\n"
},
{
"from": "human",
"value": "import Phaser from 'phaser'\n\nexport default class extends Phaser.Sprite {\n constructor ({ game, x, y, asset }) {\n super(game, x, y, asset)\n this.anchor.se... | javascript | chosen |
[
{
"from": "system",
"value": "Add example to preprint provider (example guid)\n"
},
{
"from": "human",
"value": "import DS from 'ember-data';\nimport OsfModel from 'ember-osf/models/osf-model';\n\nexport default OsfModel.extend({\n name: DS.attr('string'),\n logoPath: DS.attr('string'),\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add open api generation template\n"
},
{
"from": "human",
"value": "const Server = require('dominion');\nconst Config = use('config');\n\n\nServer.addComponent(require('./components/sessions'));\nServer.addComponent(require('./c... | javascript | chosen |
[
{
"from": "system",
"value": "Fix Settings of Patients Summary.\n"
},
{
"from": "human",
"value": "import React, { PureComponent } from 'react';\nimport PropTypes from 'prop-types';\nimport classNames from 'classnames';\nimport { Col } from 'react-bootstrap';\n\nexport default class PTCustomChec... | javascript | chosen |
[
{
"from": "system",
"value": "Update ethereum tokens limit to 50\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar axios = require('axios');\nvar db = require('./db');\nvar limit = 100;\n\nfunction save(tokens) {\n var operations = tokens.map(function(token) {\n return {replaceOne: {fi... | javascript | chosen |
[
{
"from": "system",
"value": "Update default clear to true on multi-select"
},
{
"from": "human",
"value": "import Ember from 'ember';\nimport layout from '../templates/components/bootstrap-multi-select';\nimport InputableMixin from '../mixins/components/inputable';\n\nexport default Ember.Compo... | javascript | chosen |
[
{
"from": "system",
"value": "Add node to preprint object.\n"
},
{
"from": "human",
"value": "import { moduleForComponent, test } from 'ember-qunit';\nimport hbs from 'htmlbars-inline-precompile';\nimport Ember from 'ember';\n\nmoduleForComponent('supplementary-file-browser', 'Integration | Comp... | javascript | chosen |
[
{
"from": "system",
"value": "Add functionality to step number three\n"
},
{
"from": "human",
"value": "(function() {\n introJs()\n .start()\n .onchange(function(targetElement) {\n switch(this._currentStep) {\n case 1:\n break;\n case 2:\n break;\n default:\n ... | javascript | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.