conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Fix redirect so it only applies when mode is missing\n"
},
{
"from": "human",
"value": "import React from 'react'\nimport { BrowserRouter as Router, Redirect, Route, Switch } from 'react-router-dom'\n\nimport Header from './components/header'\nimport Footer from './... | javascript | chosen |
[
{
"from": "system",
"value": "Add inputs for saving a course on course-page component\n"
},
{
"from": "human",
"value": "import React from 'react';\n\nclass CoursesPage extends React.Component {\n render() {\n return (\n <div>\n <h1>Courses</h1>\n <... | javascript | chosen |
[
{
"from": "system",
"value": "Modify not to create message unless joining the thread.\n"
},
{
"from": "human",
"value": "define([\n 'underscore', 'controllers/ApplicationController', 'models/Thread', 'models/Message', 'utils/Utils'\n], function(_, ApplicationController, Thread, Message, Utils) ... | javascript | chosen |
[
{
"from": "system",
"value": "Update worker immediately when there is an API update\n\nThe utility we were loading here doesn't seem to exist, but isn't\nnecessary we can just ask the worker if it has an update.\n"
},
{
"from": "human",
"value": "/* eslint ember/order-in-components: 0 */\nimport... | javascript | chosen |
[
{
"from": "system",
"value": "Add `figure` to default screenshot selector\n\nTo prevent including any server-rendered html output in the screenshot\n"
},
{
"from": "human",
"value": "var http = require('http');\nvar url = require('url');\n\nvar renderPng = function (req, res) {\n var options = ... | javascript | chosen |
[
{
"from": "system",
"value": "Add name property to camera object.\n"
},
{
"from": "human",
"value": "var config = {};\n\nconfig.plugs = [\n {\n \"name\": \"Family Room Lamp\",\n \"host\": \"192.168.0.198\",\n \"id\": \"ECO-780171A6\"\n },\n {\n \"name\": \"Bedroom Lamp\",\... | javascript | chosen |
[
{
"from": "system",
"value": "Implement a scrolling behavior that sets the page to top\n"
},
{
"from": "human",
"value": "import Vue from 'vue';\nimport Router from 'vue-router';\nimport Home from '@/pages/Home';\nimport Blog from '@/pages/Blog';\nimport Page from '@/pages/Page';\n\nVue.use(Rout... | javascript | chosen |
[
{
"from": "system",
"value": "Change russian language string to \"ru_RU\""
},
{
"from": "human",
"value": "'use strict';\n\nangular.module('yaru22.angular-timeago').config(function(timeAgoSettings) {\n timeAgoSettings.strings['ru'] = {\n prefixAgo: null,\n prefixFromNow: null,\n suffix... | javascript | chosen |
[
{
"from": "system",
"value": "Fix a typo in @Lunar-Skies' name\n"
},
{
"from": "human",
"value": "\"use strict\";\n\nclass Info {\n process(msg, args){\n msg.channel.createMessage('Hi! I am Hamster! I am a self-host bot made by Luanr-Skies and ArsenArsen!');\n }\n}\nmodule.exports =... | javascript | chosen |
[
{
"from": "system",
"value": "Create the user on form submission\n"
},
{
"from": "human",
"value": "$(document).ready(function () {\n $('form').on('submit', function () {\n return false;\n });\n\n $('#login-modal').modal({\n backdrop: 'static',\n keyboard: false,\n });\n});\n"
},
... | javascript | chosen |
[
{
"from": "system",
"value": "Update pages used for example"
},
{
"from": "human",
"value": "/*\n * Simple page snapshots example.\n * Copyright (c) 2013 - 2019, Alex Grant, LocalNerve, contributors\n *\n * Use array input to snapshot individual pages.\n */\nvar htmlSnapshots = require(\"html-sn... | javascript | chosen |
[
{
"from": "system",
"value": "Fix bug with Markdown Previewer where it wouldn't load up correct data initially\n"
},
{
"from": "human",
"value": "(function( $ ) {\n\n $.fn.markdownPreview = function( options ) {\n \n var settings = {\n 'insert-preview-div': true,\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Make /victim/notstarted GET request when wifiscan button is clicked\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport axios from 'axios';\nimport WifiIcon from '../img/wifiscan.png';\n\nexport default class WifiScan extends React.Component {\n\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Change default Freenode server URL to recommended one\n"
},
{
"from": "human",
"value": "module.exports = {\n\tpublic: false,\n\thost: \"0.0.0.0\",\n\tport: 9000,\n\tbind: undefined,\n\ttheme: \"themes/{{ shout_theme }}.css\",\n\tautoload: true,\n\tprefetch: false,\... | javascript | chosen |
[
{
"from": "system",
"value": "Connect to mongo when starting the worker\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst test = require('./test');\nconst opendata = require('./opendata');\n\ntest.start();\nopendata.start();\n"
},
{
"from": "gpt",
"value": "'use strict';\n\nc... | javascript | chosen |
[
{
"from": "system",
"value": "Enable waiting for Angular earlier and fix solved-check"
},
{
"from": "human",
"value": "/*\n * Copyright (c) 2014-2020 Bjoern Kimminich.\n * SPDX-License-Identifier: MIT\n */\n\nconst config = require('config')\n\ndescribe('/chatbot', () => {\n let username, submi... | javascript | chosen |
[
{
"from": "system",
"value": "Fix error when the expression has more than one division/multiplication sign\n"
},
{
"from": "human",
"value": "var Vue = require('vue');\n\nvar vm = new Vue({\n el: '#calc',\n\n data: {\n entries: []\n },\n\n computed: {\n expression: function() {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Allow custom web page config\n"
},
{
"from": "human",
"value": "var args = require('system').args,\n page = require('webpage').create();\n\nconsole.log(args);\n\npage.viewportSize = {\n width: args[3],\n height: args[4]\n}\n\npage.open(args[1], function() {... | javascript | chosen |
[
{
"from": "system",
"value": "Support blaze (need to test backwards compatibility)"
},
{
"from": "human",
"value": "if (typeof Handlebars !== 'undefined') {\n Handlebars.registerHelper(\"timeago\", function(date, options) {\n override = options.hash['default']\n var dateObj;\n if (date... | javascript | chosen |
[
{
"from": "system",
"value": "Use the tcp-server class correctly.\n"
},
{
"from": "human",
"value": "var tcpServer;\n\nfunction handleClientEvent(d) {\n\tchrome.socket.read(d.socketId, null, function(data) {\n\t\tconsole.log(data);\t\t\n\t});\n};\n\nfunction startup() {\n\ttcpServer = new TcpSer... | javascript | chosen |
[
{
"from": "system",
"value": "Rename markdown_div to jquery variable with $\n"
},
{
"from": "human",
"value": "$(function () {\n var before_value = '',\n markdown_div = $('#id_markdown'),\n $preview = $('.preview'),\n $html_div = $('#id_html'),\n $create_form = $('... | javascript | chosen |
[
{
"from": "system",
"value": "Increase timeout for eslint tests.\n"
},
{
"from": "human",
"value": "const lint = require('mocha-eslint');\n\nconst paths = [\n 'bin',\n 'ext',\n 'lib',\n 'test'\n];\n\nconst options = {};\nlint(paths, options);\n"
},
{
"from": "gpt",
"value": "cons... | javascript | chosen |
[
{
"from": "system",
"value": "Remove another use of transpiled source.\n"
},
{
"from": "human",
"value": "/*! resol-vbus | Copyright (c) 2013-2018, Daniel Wippermann | MIT license */\n\n\n\n// use development version\nmodule.exports = require('../src');\n\n// use release version\n// module.expor... | javascript | chosen |
[
{
"from": "system",
"value": "Fix eb deploy after prettier / eslint changes\n"
},
{
"from": "human",
"value": "const fs = require('fs')\nconst path = require('path')\n\nconst version = process.argv[2]\n\nif (!version) {\n throw new Error('Missing <version> argument')\n}\n\nconst dockerrun = {... | javascript | chosen |
[
{
"from": "system",
"value": "Use plain ASCII for License.\n"
},
{
"from": "human",
"value": "// ==========================================================================\n// Project: Ember - JavaScript Application Framework\n// Copyright: ©2011-2013 Tilde Inc. and contributors\n// ... | javascript | chosen |
[
{
"from": "system",
"value": "Make swagger use symetric with recess\n"
},
{
"from": "human",
"value": "'use strict';\n\nmodule.exports = function(grunt) {\n grunt.registerMultiTask('swagger', 'Generate Source from Swagger files', function(){\n var fs = require('fs');\n var reque... | javascript | chosen |
[
{
"from": "system",
"value": "Add Switch to React Router\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport ReactDOM from 'react-dom';\nimport { Provider } from 'react-redux';\nimport { createStore, applyMiddleware } from 'redux';\nimport { BrowserRouter, Route } from 'react-r... | javascript | chosen |
[
{
"from": "system",
"value": "Move plugins array out of returned function"
},
{
"from": "human",
"value": "import postcss from 'postcss';\nimport Core from 'css-modules-loader-core';\nimport Parser from 'css-modules-loader-core/lib/parser';\nimport FileSystem... | javascript | chosen |
[
{
"from": "system",
"value": "Update settings test to support new default locale\n"
},
{
"from": "human",
"value": "import chai from 'chai';\nimport settings from 'settings';\n\nconst { assert } = chai;\n\ndescribe('settings', () => {\n it('returns default lang', () => {\n const actual = set... | javascript | chosen |
[
{
"from": "system",
"value": "Allow use inside an ES6 module\n"
},
{
"from": "human",
"value": "import BlocklyEditor from './BlocklyEditor';\nimport BlocklyToolbox from './BlocklyToolbox';\nimport BlocklyToolboxBlock from './BlocklyToolboxBlock';\nimport BlocklyToolboxCategory from './BlocklyToo... | javascript | chosen |
[
{
"from": "system",
"value": "Replace the Popup class used with the correct API\n"
},
{
"from": "human",
"value": "import Kinvey, { CacheRack, NetworkRack, User } from 'kinvey-js-sdk/dist/export';\nimport { CacheMiddleware, HttpMiddleware } from './middleware';\nimport Popup from './popup';\n\n/... | javascript | chosen |
[
{
"from": "system",
"value": "Fix de-parametize in URL utility\n\njQuery replaces encoded spaces with plus signs. To prevent encoding of\nthe plus sign itself, they are replaced with a space prior to decoding.\n\nSigned-off-by: Byron Ruth <e9d71f5ee7c92d6dc9e92ffdad17b8bd49418f98@devel.io>\n"
},
{
"... | javascript | chosen |
[
{
"from": "system",
"value": "Fix the order of routes\n"
},
{
"from": "human",
"value": "var loopback = require('loopback');\nvar boot = require('loopback-boot');\n\nvar app = module.exports = loopback();\n\n// Set up the /favicon.ico\napp.use(loopback.favicon());\n\n// request pre-processing mi... | javascript | chosen |
[
{
"from": "system",
"value": "Add missing view reference for ConceptColumns test"
},
{
"from": "human",
"value": "define(['cilantro.ui'], function(c) {\n var view = new c.ui.ConceptColumns({\n collection: c.data.concepts.viewable\n });\n\n view.render();\n\n return function(do... | javascript | chosen |
[
{
"from": "system",
"value": "Fix Svelte build script for Node v10\n"
},
{
"from": "human",
"value": "const path = require(\"path\");\nconst glob = require(\"glob\");\nconst fs = require(\"fs\");\n\nconst BASE = path.resolve(__dirname, \"..\");\nconst SRC = path.resolve(BASE, \"src\");\nconst DI... | javascript | chosen |
[
{
"from": "system",
"value": "Send traces to multiple sessions if started.\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar sessions = require('../sessions');\n\nvar kafkaConsumer = function (kafkaConfig) {\n var kafka = require('../services/kafka')(kafkaConfig.uri);\n var players =... | javascript | chosen |
[
{
"from": "system",
"value": "ci: Change Apple ID env variables syntax\n\n For the sake of harmonizing environment variables syntax, we make the\n expected Apple ID variables all caps.\n This syntax is already the one used by our Github Actions workflow.\n"
},
{
"from": "human",
"value": "// ... | javascript | chosen |
[
{
"from": "system",
"value": "Remove `<%= jsfiles.main.checks %>` parts!\n\nModernizr checks are moved to the head part.\n"
},
{
"from": "human",
"value": "module.exports = function(grunt) {\n\n\tgrunt.config('concat', {\n\t\toptions: {\n\t\t\tnonull: true,\n\t\t\tseparator: '',\n\t\t\tstripBann... | javascript | chosen |
[
{
"from": "system",
"value": "Replace R.pickBy() with complemented predicate with R.reject()\n"
},
{
"from": "human",
"value": "/*jslint node, es6, maxlen: 80 */\n/*eslint indent: \"off\" */\n\n\"use strict\";\n\nconst R = require(\"ramda\");\n\nmodule.exports = function groupByFiles(config) {\n... | javascript | chosen |
[
{
"from": "system",
"value": "Update the database to handle local dev\n"
},
{
"from": "human",
"value": "var mongoose = require('mongoose');\nvar db = {};\n\nvar connection = process.env.CUSTOMCONNSTR_MONGOLAB_URI;\nmongoose.connect(connection);\nvar userModel = require('./users/user.server.mode... | javascript | chosen |
[
{
"from": "system",
"value": "Use throw instead of reject when possible\n"
},
{
"from": "human",
"value": "import fs from 'fs';\nimport crypto from 'crypto';\nimport multihash from 'multihashes';\nimport bs58 from 'bs58';\n\nexport const HASH_MAP = {\n sha1: 'sha1',\n sha256: 'sha2-256',\n sh... | javascript | chosen |
[
{
"from": "system",
"value": "Add child_process.exec succeeds test case\n"
},
{
"from": "human",
"value": "/* global describe it */\n'use strict'\n\nconst chai = require('chai')\nconst chaiAsPromised = require('chai-as-promised')\nconst requireInject = require('require-inject')\nconst sinon = re... | javascript | chosen |
[
{
"from": "system",
"value": "Stop processing when language is deselected.\n"
},
{
"from": "human",
"value": "import axios from 'axios';\nimport {\n CHANGE_LANGUAGE,\n FETCH_NODES,\n FILTER_CONTENT_KIND,\n FILTER_TOPIC,\n FILTER_VISIBIITY,\n} from './types';\n\nconst API_TRANSLATE... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"Revert \"Revert \"Try child process\"\"\"\n\nThis reverts commit 605e17e3f2a77906407a84e3f125e267a9543ffb.\n"
},
{
"from": "human",
"value": "const { spawn } = require('child_process')\n\nmodule.exports = {\n onPreBuild({ utils: { status: { show } } }) {\n... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"No bug - Add more debugging information\"\n\nThis reverts commit 0d149d368a52e4ca44a8b38ba4a80a9e40cf3ea7.\n"
},
{
"from": "human",
"value": "Error.stackTraceLimit = Infinity;\n\nfunction renderError( err, res ) {\n res.format({\n \"text/html\": functio... | javascript | chosen |
[
{
"from": "system",
"value": "Remove date index, add location\n"
},
{
"from": "human",
"value": "import mongoose from 'mongoose'\nvar Schema = mongoose.Schema\n\nvar athleticsSchema = new Schema({\n id: String,\n date: Date,\n campus: String,\n events: [{\n title: String,\n location: S... | javascript | chosen |
[
{
"from": "system",
"value": "Fix undefined window in worker.\n"
},
{
"from": "human",
"value": "var version = function () { return '(loading)'; };\nvar compileJSON = function () { return ''; };\nvar missingInputs = [];\n\nmodule.exports = function (self) {\n self.addEventListener('message', fu... | javascript | chosen |
[
{
"from": "system",
"value": "Use clientHeight and pass style params to wrapper so it has the same style/class as original one and height is detected correctly\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport {shouldComponentUpdate} from 'react-addons-pure-render-mixin';\n\n... | javascript | chosen |
[
{
"from": "system",
"value": "Allow nested routes, and even functions to be passed as routes\n"
},
{
"from": "human",
"value": "Andamio.Router = Backbone.Router.extend({\n _bindRoutes: function () {\n if (!this.routes) {\n return;\n }\n\n _.each(this.routes, function (route) {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Simplify configuration of Redux logging. Now log when and only when the main logger object has the 'redux' category. Old Stripes configurations that had 'reduxLog' set true or false should replace this with the corrsponding presence or absence of 'redux' among the categoties li... | javascript | chosen |
[
{
"from": "system",
"value": "Unify keyframes with same value\n"
},
{
"from": "human",
"value": "export default () => {\n return `\n.github-corner:hover .octo-arm {\n animation: octocat-wave 560ms ease-in-out;\n}\n\n@keyframes octocat-wave {\n 0% {\n transform: rotate(0deg);\n }\n\n 20% ... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"missing formatExport and ClearFilters formatters\"\n"
},
{
"from": "human",
"value": "/**\n * Bootstrap Table Portuguese Portugal Translation\n * Author: Burnspirit<burnspirit@gmail.com>\n */\n(function ($) {\n 'use strict';\n\n $.fn.bootstrapTable.lo... | javascript | chosen |
[
{
"from": "system",
"value": "Refactor for common use between apps\n\nConflicts:\n\tapp/js/app.js\n\tapp/js/controllers.js\n\nWTK: I removed everything except websocket.js (originally services.js)\nsince we're splitting out the websocket code.\n"
},
{
"from": "human",
"value": "'use strict';\n\n... | javascript | chosen |
[
{
"from": "system",
"value": "Handle falsey children in Commands component\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport PropTypes from 'prop-types';\n\nimport {DOMNodePropType} from '../prop-types';\n\nexport default class Commands extends React.Component {\n static pro... | javascript | chosen |
[
{
"from": "system",
"value": "Add mod+, as keyboard shortcut\n"
},
{
"from": "human",
"value": "define([\n \"src/tab\",\n \"src/manager\",\n \"less!src/stylesheets/main.less\"\n], function(Tab, Manager) {\n var commands = codebox.require(\"core/commands\");\n var dialogs = codebox... | javascript | chosen |
[
{
"from": "system",
"value": "Add user following on Twitter\n"
},
{
"from": "human",
"value": "var Request = require('request-promise')\n\nconst API_ENDPOINT = \"https://bolt-api.herokuapp.com\"\n\nvar Bolt = function(appId) {\n this.config = {\n postTweetUrl: API_ENDPOINT + \"/tweets?... | javascript | chosen |
[
{
"from": "system",
"value": "Correct admin lookup layers for Geonames\n\nThe API label code expects that any record has admin lookup fields up to\nand including the layer of the record itself. For example, regions\nshould have the region and region_a fields filled in by admin lookup.\n"
},
{
"from"... | javascript | chosen |
[
{
"from": "system",
"value": "Swap from jquery.read to eventlistener\n"
},
{
"from": "human",
"value": "'use strict';\n/*\n * Set up click handlers on fittings\n */\nfunction booby() {\n $(document).on(\"click\", \".booby-link\", function(){\n\t window.open(\"https://en.wikipedia.org/wiki/... | javascript | chosen |
[
{
"from": "system",
"value": "Use multer to handle file uploads.\n"
},
{
"from": "human",
"value": "// Create the application and define middleware.\n\n'use strict';\n\nvar express = require('express');\nvar bodyParser = require('body-parser');\n\nvar router = require('./../app/files/routes')();... | javascript | chosen |
[
{
"from": "system",
"value": "Add sub fetching on page changeé\n"
},
{
"from": "human",
"value": "import React, { Component } from 'react'\nimport PostListContainer from '../../containers/PostListContainer'\nimport Tabs, { Tab } from '../widgets/Tabs'\n\nclass Subreddit extends Component {\n co... | javascript | chosen |
[
{
"from": "system",
"value": "Add another test for the Dropdown component\n"
},
{
"from": "human",
"value": "var React = require('react/addons');\nvar TestUtils = React.addons.TestUtils;\n\njest.dontMock('../DOMUtil');\n\nvar DOMUtil = require('../DOMUtil');\n\ndescribe('DOMUtil', function() {\n... | javascript | chosen |
[
{
"from": "system",
"value": "Fix typo related to name change."
},
{
"from": "human",
"value": "if (global._babelPolyfill) {\n throw new Error(\"only one instance of babel/polyfill is allowed\");\n}\nglobal._babelPolyfill = true;\n\nimport \"core-js/shim\";\nimport \"regenerator/runtime\";\n"
... | javascript | chosen |
[
{
"from": "system",
"value": "Add asserts & refactor app storage filenames\n"
},
{
"from": "human",
"value": "var levelup = require('levelup');\nvar path = require('path');\n\n\nmodule.exports = exports = function storageAPIFactory(config) {\n\n config = config || {};\n var _stores = {};\n va... | javascript | chosen |
[
{
"from": "system",
"value": "Support multiple weights in font loading\n"
},
{
"from": "human",
"value": "(function(window,document) {\n _editor.loadFont = function(options) {\n var dummy = document.createElement('div');\n dummy.setAttribute('style','font: 400px fantasy;position:absolute;... | javascript | chosen |
[
{
"from": "system",
"value": "Fix errors in node 6 on Windows x64"
},
{
"from": "human",
"value": "module.exports = {\n root: true,\n {{#if_eq lintConfig \"standard\"}}\n // https://github.com/feross/standard/blob/master/RULES.md#javascript-standard-style\n extends: 'standard',\n {{/if_eq}}... | javascript | chosen |
[
{
"from": "system",
"value": "Fix appDir path, use app.getPath('userData')\n"
},
{
"from": "human",
"value": "/* @flow */\n\nlet path = global.require('path');\nlet fs = global.require('fs');\nlet fsExtra = global.require('fs-extra');\nlet process = global.require('process');\n\nexport function ... | javascript | chosen |
[
{
"from": "system",
"value": "Implement Crossover Function to Cut-Copy Transistors Between Phenotypes\n"
},
{
"from": "human",
"value": "module.exports =\n{\n crossoverFunction: function(phenotypeA, phenotypeB)\n {\n // move, copy, or append some values from a to b and from b to a\n retu... | javascript | chosen |
[
{
"from": "system",
"value": "Change add to support variable length arguments\n"
},
{
"from": "human",
"value": "let _ = require('lodash');\n\nclass Collection {\n constructor() {\n this.data = {};\n this.nextId = 0;\n }\n\n add(item) {\n item.id = this.nextId;\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Make sure tools available refer to the active step\n"
},
{
"from": "human",
"value": "export default {\n // Get an array specifying the tools included in the current step.\n getStepTools: state => {\n if (state.steps && state.steps.tools) {\n return state.... | javascript | chosen |
[
{
"from": "system",
"value": "Fix order of then to avoid issue if success/error callback make a then on same promise\n"
},
{
"from": "human",
"value": "export default class CancelablePromise {\n static all(iterable) {\n return Promise.all(iterable);\n }\n static race(iterable) {\n retur... | javascript | chosen |
[
{
"from": "system",
"value": "Allow to send conversationcontext and context with message.\n"
},
{
"from": "human",
"value": "const _ = require('lodash');\n\nexports.main = (params = {}) => { \n if (!_.isUndefined(_.get(params, 'request.body.message'))) {\n return {\n statusCode: 200,\n... | javascript | chosen |
[
{
"from": "system",
"value": "Add package json for bower only project\n"
},
{
"from": "human",
"value": "import mergeDirs from 'merge-dirs';\nimport path from 'path';\nimport { getVersion, getPackageJson, writePackageJson } from '../../lib/helpers';\n\nexport default async () => {\n const versi... | javascript | chosen |
[
{
"from": "system",
"value": "Refactor Space Before Bang further\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar helpers = require('../helpers.js');\n\nmodule.exports = {\n 'name': 'space-before-bang',\n 'defaults': {\n 'include': true\n },\n 'detect': function (ast, parser) {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Disable menu selection in member list\n"
},
{
"from": "human",
"value": "import { ListItem } from 'material-ui/List';\nimport React from 'react';\nimport { Link } from 'react-router';\n\nimport Phone from './Phone';\n\nexport default class MemberItem extends React.C... | javascript | chosen |
[
{
"from": "system",
"value": "Allow to give already initialized redis client instead of the port/host\n"
},
{
"from": "human",
"value": "const duration = require('@maxdome/duration');\nconst Throttle = require('redis-throttle');\n\nmodule.exports = config => {\n Throttle.configure(config);\n r... | javascript | chosen |
[
{
"from": "system",
"value": "Fix Mocha output colors for Solarized\n"
},
{
"from": "human",
"value": "global.assert = require('assert');\n"
},
{
"from": "gpt",
"value": "global.assert = require('assert');\n\n// Fix Mocha colors for Solarized\nconst colors = require('mocha/lib/report... | javascript | chosen |
[
{
"from": "system",
"value": "Remove port from sip parameter\n\nAgar.io website does not require the port to be specified\n"
},
{
"from": "human",
"value": "(function() {\n var __WS_send = WebSocket.prototype.send;\n window.__WS_send = WebSocket.prototype.send;\n WebSocket.prototype.sen... | javascript | chosen |
[
{
"from": "system",
"value": "Reduce the amount of console \"spam\", by ignoring `info`/`warn` calls, when running the unit-tests in Node.js/Travis\n\nCompared to running the unit-tests in \"regular\" browsers, where any console output won't get mixed up with test output, in Node.js/Travis the test output l... | javascript | chosen |
[
{
"from": "system",
"value": "Update NotFoundPage style, add Header\n"
},
{
"from": "human",
"value": "/**\n * NotFoundPage\n *\n * This is the page we show when the user visits a url that doesn't have a route\n *\n * NOTE: while this component should technically be a stateless functional\n * co... | javascript | chosen |
[
{
"from": "system",
"value": "Fix regression when fixing application module casing.\n"
},
{
"from": "human",
"value": "class GelatoApplication extends Backbone.Model {\n\n constructor() {\n Backbone.$('body').prepend('<gelato-application></gelato-application>');\n Backbone.$('gelato-appli... | javascript | chosen |
[
{
"from": "system",
"value": "Fix being able to add a scenario without a name.\n\nCloses #106\n"
},
{
"from": "human",
"value": "import { API } from 'api/index';\nimport React from 'react';\n\nimport { ScenarioName } from 'ui/components/scenario-name';\n\nexport class ScenarioList extends React.... | javascript | chosen |
[
{
"from": "system",
"value": "Set staging db name as the live one.\n"
},
{
"from": "human",
"value": "\"use strict\";\r\n\r\nvar os = require(\"os\"),\r\n path = require(\"path\"),\r\n express = require(\"express\"),\r\n routes = require(\"./routes\");\r\n\r\nvar app = express(),\r\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Switch express to use twig\n"
},
{
"from": "human",
"value": "\n/**\n * Module dependencies.\n */\n\nvar express = require('express');\nvar routes = require('./routes');\nvar http = require('http');\nvar path = require('path');\nvar gzippo = require('gzippo'... | javascript | chosen |
[
{
"from": "system",
"value": "Add TODO about refactoring panel toggle logic\n"
},
{
"from": "human",
"value": "var fileBrowser = require('../fileViewTreebeard.js');\nvar nodeApiUrl = window.contextVars.node.urls.api;\n\n$(document).ready(function() {\n // Treebeard Files view\n $.ajax({\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Use express's functionality for serving static files to create virtual\npaths that our application can understand. These virtual paths ae now\n'/public' and '/controllers', which will be routed to the correct\nphysical directory.\n"
},
{
"from": "human",
"value": "'... | javascript | chosen |
[
{
"from": "system",
"value": "Allow irregular whitespaces in string or comment\n"
},
{
"from": "human",
"value": "module.exports = {\n \"parserOptions\": {\n \"ecmaVersion\": 6,\n \"sourceType\": \"module\",\n \"ecmaFeatures\": {\n \"experimentalObjectRestSpread\": true,\n },\n... | javascript | chosen |
[
{
"from": "system",
"value": "Resolve path of private json key\n\nAddresses issue @TheGrandmother found in review.\n@TheGrandmother found in review.\n"
},
{
"from": "human",
"value": "const createAuthToken = require('../lib/create-auth-token')\n\nconst program = require('commander')\n\nprogram\n... | javascript | chosen |
[
{
"from": "system",
"value": "Fix issue with serve not responding\n"
},
{
"from": "human",
"value": "var express = require('express');\nvar app = express();\nvar request = require('request');\n/*var Smooch = require('smooch');\n\nSmooch.init({\n appToken: '2daitql57gg85z3jurs6g16xf'\n});*/\n\... | javascript | chosen |
[
{
"from": "system",
"value": "Clean up unused folders. Clean up css message\n"
},
{
"from": "human",
"value": "module.exports = {\n\n modules: {\n definition: 'commonjs',\n wrapper: 'commonjs'\n },\n\n paths: {\n 'public': 'www'\n },\n\n files: {\n javascripts: {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Make inFiber help pass arguments through. This fixes with_password in meteor deploy/logs/mongo.\n"
},
{
"from": "human",
"value": "// node (v8) defaults to only recording 10 lines of stack trace.\n// this becomes especially bad when using fibers, since you get deepe... | javascript | chosen |
[
{
"from": "system",
"value": "Test for tooltip rendering 1\n"
},
{
"from": "human",
"value": "module.exports = addSubnodes;\n\nfunction addSubnodes(root, node) {\n var subnodesGroup = root.append(\"g\").attr(\"class\", \"subnodes\");\n subnodesGroup.selectAll(\"g\")\n .data(node.subnodes)\n... | javascript | chosen |
[
{
"from": "system",
"value": "Add a few more default user permissions\n"
},
{
"from": "human",
"value": "orion.users.configure({\n // Allow users to create accounts, but don't give them any admin permissions\n // TODO Actually forbidden during development, change this when launching\n forbidC... | javascript | chosen |
[
{
"from": "system",
"value": "Update location of bridgedb index file.\n"
},
{
"from": "human",
"value": "var BridgeDb = require('../index.js');\n\nvar bridgeDb1 = BridgeDb({\n apiUrlStub: 'http://pointer.ucsf.edu/d3/r/data-sources/bridgedb.php',\n dataSourcesUrl:\n 'http://pointer.ucsf.edu/... | javascript | chosen |
[
{
"from": "system",
"value": "Add to api url so that all the needed data is present in returned object\n"
},
{
"from": "human",
"value": "import React, { Component } from 'react';\nimport Controls from './Controls';\n\nexport default class Main extends Component {\n render() {\n return (\n ... | javascript | chosen |
[
{
"from": "system",
"value": "NOJIRA: Clarify comments on how to configure the demo.\n"
},
{
"from": "human",
"value": "/*\nCopyright 2009 University of Toronto\n\nLicensed under the Educational Community License (ECL), Version 2.0. \nou may not use this file except in compliance with this Licen... | javascript | chosen |
[
{
"from": "system",
"value": "Use double quotes instead of single ones.\n"
},
{
"from": "human",
"value": "var gulp = require('gulp');\nvar tasks = [];\n\n// Browserify\nvar browserify = require('browserify');\nvar vinylSourceStream = require('vinyl-source-stream');\n\nvar makeBrowserify = funct... | javascript | chosen |
[
{
"from": "system",
"value": "Add MONGODB_URI env var acoording to the new mLab setting\n"
},
{
"from": "human",
"value": "\nimport express from 'express';\nimport routes from './app/routes';\nimport mongoose from 'mongoose';\nimport passport from 'passport';\nimport session from 'express-sessio... | javascript | chosen |
[
{
"from": "system",
"value": "Add reference to endpoints router; Add logger and cookie/body parsers and users router\n"
},
{
"from": "human",
"value": "var express = require('express');\nvar redis = require('ioredis');\n\nvar api = express();\n// var redis = new Redis('/tmp/redis.sock');\n\napi.... | javascript | chosen |
[
{
"from": "system",
"value": "Change pattern brush to work with fabric.Pattern"
},
{
"from": "human",
"value": "/**\n * PatternBrush class\n * @class fabric.PatternBrush\n * @extends fabric.BaseBrush\n */\nfabric.PatternBrush = fabric.util.createClass(fabric.PencilBrush, /** @scope fabric.Patter... | javascript | chosen |
[
{
"from": "system",
"value": "Fix gulp task. Bundle should start after Transform is done.\n"
},
{
"from": "human",
"value": "var plumber = require(\"gulp-plumber\");\nvar webpack = require(\"gulp-webpack\");\nvar cssmin = require(\"gulp-minify-css\");\nvar csscon = require(\"gulp-concat-css\")... | javascript | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.