conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Update expected output to match what is actually generated by coffeescript\n"
},
{
"from": "human",
"value": "var cubes, list, math, num, number, opposite, race, square,\n __slice = [].slice;\n\nnumber = 42;\n\nopposite = true;\n\nif (opposite) {\n number = -42;... | javascript | chosen |
[
{
"from": "system",
"value": "Add express to externals list in demand-express\n"
},
{
"from": "human",
"value": "const {join, resolve} = require('path');\n\nconst {CheckerPlugin} = require('awesome-typescript-loader');\n\nconst loaders = require('./webpack/loaders');\n\nmodule.exports = {\n tar... | javascript | chosen |
[
{
"from": "system",
"value": "Add timer and auto submit to the search form\n"
},
{
"from": "human",
"value": "import React, { Component, PropTypes } from 'react';\n\nimport '../../styles/search-form.css';\n\nclass SearchForm extends Component {\n constructor(props, context) {\n super(props, ... | javascript | chosen |
[
{
"from": "system",
"value": "Add target and rel attributes to a tags\n"
},
{
"from": "human",
"value": "import * as React from 'react';\nimport {getField} from \"./utils/getField\";\n\n/**\n * Main List Element to be displayed on the Navigation.\n *\n * @param {Object} props\n * @param {string}... | javascript | chosen |
[
{
"from": "system",
"value": "Implement the bulk of updateSaleInfoAll\n\nTODO: Create widgets next to the premium drop-down to call this.\n"
},
{
"from": "human",
"value": "/**\n * FCViz \n * Payload script for the individual loan iframe within the Sell page\n */"
},
{
"from": "gpt",
... | javascript | chosen |
[
{
"from": "system",
"value": "Remove extra wrapper for nav state\n"
},
{
"from": "human",
"value": "const {PUSH, POP, REPLACE} = require('../constants/navigation');\n\nmodule.exports = function navigate(state, {type, payload}) {\n if (!state) {\n return {};\n }\n\n const stack = state.__na... | javascript | chosen |
[
{
"from": "system",
"value": "Add popup intro for task\n"
},
{
"from": "human",
"value": "// Define the tour!\nvar tour = {\n id: \"hello-hopscotch\",\n steps: [\n {\n title: \"Pick Your Level\",\n content: \"These are the different lessons you can choose from. Every time you comp... | javascript | chosen |
[
{
"from": "system",
"value": "Fix test to make it look like old ie browser\n"
},
{
"from": "human",
"value": "define(['licensing/controllers/preprocessors/partial_experience_warning'],\nfunction (preprocessor) {\n describe(\"Browser message pre-processor\", function () {\n afterEach(function... | javascript | chosen |
[
{
"from": "system",
"value": "Make active tab rules stricter\n"
},
{
"from": "human",
"value": "(function(){ \n \"use strict\";\n xtag.register(\"sam-tabbar\", {\n lifecycle: {\n created: function() {\n if (!this.role) {\n this.role = \"tablist\";\n }\n },\... | javascript | chosen |
[
{
"from": "system",
"value": "Add “auth” functionality for a protected endpoint\n"
},
{
"from": "human",
"value": "var express = require('express');\nvar router = express.Router();\n\nvar items = [\n { name: 'item 1' },\n { name: 'item 2' },\n { name: 'item 3' }\n];\n\n/* GET home page. */\nr... | javascript | chosen |
[
{
"from": "system",
"value": "Add upvote event to socket handler\n"
},
{
"from": "human",
"value": "var io;\nvar connections = {};\n\nvar events = {\n init: function(data) {\n connections[data.userToken] = this;\n this.emit('init');\n },\n\n update: function() {\n console.log('user u... | javascript | chosen |
[
{
"from": "system",
"value": "Store page information, access token need to be transform to long term access token.\n"
},
{
"from": "human",
"value": "import { GraphQLString, GraphQLBoolean } from 'graphql';\n\nimport { Page } from '../models';\n\nconst setPage = {\n type: GraphQLBoolean,\n arg... | javascript | chosen |
[
{
"from": "system",
"value": "mongoose(deprecation): Add a new key/pair to mongoose connect options to fix deprecation warning\n"
},
{
"from": "human",
"value": "\"use strict\";\n/* eslint-disable import/no-unresolved */\n/* eslint-disable no-console */\nimport mongoose from 'mongoose';\nimport ... | javascript | chosen |
[
{
"from": "system",
"value": "Add get in progress content mehtod\n\n\nFormer-commit-id: 1f63a939185c91b73ba9bdc71ade5bdba59143fe\nFormer-commit-id: 1e66b188666eb2cfe2167caae5769551fe51cabd\nFormer-commit-id: 24fe274d42f336154cf8395c622f460da093deb9"
},
{
"from": "human",
"value": "import http fr... | javascript | chosen |
[
{
"from": "system",
"value": "Use extended shallow instead of mount from enzyme\n"
},
{
"from": "human",
"value": "import React from 'react'\nimport ReactDOM from 'react-dom'\nimport CircularProgressButton from './CircularProgressButton'\nimport Button from 'material-ui/Button'\n\nimport { mount... | javascript | chosen |
[
{
"from": "system",
"value": "Add comment to disable https if running locally (without ssl support)\n"
},
{
"from": "human",
"value": "const express = require('express');\nconst exphbs = require('express-handlebars');\nconst bodyParser = require('body-parser');\nconst enforce = require('express-... | javascript | chosen |
[
{
"from": "system",
"value": "Add api request to action creator\n"
},
{
"from": "human",
"value": "import axios from 'axios';\n\nexport const FETCH_POSTS = 'FETCH_POSTS';\n\nexport function fetchPosts() {\n return {\n type: FETCH_POSTS\n };\n}\n"
},
{
"from": "gpt",
"value": "im... | javascript | chosen |
[
{
"from": "system",
"value": "Allow the logout iframe to work\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://mozilla.org/MPL/2... | javascript | chosen |
[
{
"from": "system",
"value": "Add socket and message packing\n"
},
{
"from": "human",
"value": "class ThrusterClient {\n constructor() {\n // TODO: initialize our websocket connection\n }\n\n sendMessage(controller, type, index, value) {\n // build message binary payload p... | javascript | chosen |
[
{
"from": "system",
"value": "Divide and conquer\nupdate JSDoc\n"
},
{
"from": "human",
"value": "\"use strict\";\nlet fetch = require('node-fetch');\nlet Converter = require(\"csvtojson\");\nlet Promise = require('bluebird');\nlet _ = require(\"lodash\");\nlet writeFile = Promise.promisify(requ... | javascript | chosen |
[
{
"from": "system",
"value": "Move static methods to be after instance methods\n"
},
{
"from": "human",
"value": "/**\n * Controller Object to dispatch actions to view/Contact and model/Contacts.\n * @constructor\n */\nvar ContactsController = function() {\n};\n\nContactsController.remove = func... | javascript | chosen |
[
{
"from": "system",
"value": "Add scroll bar to the file view window\n"
},
{
"from": "human",
"value": "/**\n * @class Wasp.Portlet\n * @extends Ext.panel.Panel A {@link Ext.panel.Panel Panel} class that is\n * managed by {@link Wasp.PortalPanel}.\n */\nExt.define('Wasp.Portlet', {\n\t\... | javascript | chosen |
[
{
"from": "system",
"value": "Fix attempting to highlight a unloaded document\n"
},
{
"from": "human",
"value": "import { SlidehubPlugin } from '../core/SlidehubPlugin';\nimport { config } from '../config';\nimport { listener } from '../util/passive-event-listener';\n\nexport { Highlighter };\n\... | javascript | chosen |
[
{
"from": "system",
"value": "Update name on index page\n"
},
{
"from": "human",
"value": "\"use strict\";\n\nconst express = require(\"express\");\nconst bodyParser = require(\"body-parser\");\nconst barelyBot = require(\"./barelyBot\").bot;\nconst defineBot = require(\"./defineBot\");\n\nconst... | javascript | chosen |
[
{
"from": "system",
"value": "Rename argument window to exports\n"
},
{
"from": "human",
"value": "(function (window) {\n\t'use strict';\n\n\tvar hearingTest = HearingTest;\n\tvar hearing = hearingTest.init();\n\n\tvar app = new Vue({\n\t\tel: '#hearing-test-app',\n\t\tdata: {\n\t\t\tisPlaySound... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"catch port in use error\"\n\nThis reverts commit e42774bba30db5f1be94d1e24de1482febfebec2.\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar livereload = require('livereload');\nvar connectLr = require('connect-livereload-safe');\n\nmodule.exports = f... | javascript | chosen |
[
{
"from": "system",
"value": "Remove filter for pdf/epub/mobi files when outputting\n"
},
{
"from": "human",
"value": "var Promise = require('../utils/promise');\nvar IGNORE_FILES = require('../constants/ignoreFiles');\n\n/**\n Parse ignore files\n\n @param {Book}\n @return {Book}\n*/\n... | javascript | chosen |
[
{
"from": "system",
"value": "Remove any tooltip on pane change\n\n(there is no JS event triggered that would remove the tooltip when the action comes from Android)\n"
},
{
"from": "human",
"value": "// created to start cleaning up \"window\" interaction\n//\nwindow.show = function(id) {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Bugfix: Fix thrown error if no firstName\n"
},
{
"from": "human",
"value": "import { Meteor } from 'meteor/meteor';\n\nconst maybeGetUser = (userOrId) => {\n if (!userOrId)\n return null;\n if (userOrId._id)\n return userOrId;\n else\n return Meteor.user... | javascript | chosen |
[
{
"from": "system",
"value": "Add tiny mce script to build\n"
},
{
"from": "human",
"value": "// This is a manifest file that'll be compiled into application.js, which will include all the files\n// listed below.\n//\n// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, v... | javascript | chosen |
[
{
"from": "system",
"value": "Add dependecy to latest mocha release\n"
},
{
"from": "human",
"value": "Package.describe({\n name: 'practicalmeteor:mocha-console-runner',\n version: '0.2.0',\n summary: 'A mocha console reporter for running your package tests from the command line with spacejam... | javascript | chosen |
[
{
"from": "system",
"value": "Upgrade version number to 0.0.3"
},
{
"from": "human",
"value": "Package.describe({\n name: 'qulture:qr-ui-base',\n version: '0.0.2',\n summary: 'QR base react components and styles',\n git: 'https://github.com/qulture/qr-ui-base',\n documentation: 'README.md'\... | javascript | chosen |
[
{
"from": "system",
"value": "Add explicit dependency on mongo for tests\n"
},
{
"from": "human",
"value": "Package.describe({\n name: \"mizzao:autocomplete\",\n summary: \"Client/server autocompletion designed for Meteor's collections and reactivity\",\n version: \"0.4.10\",\n git: \"https:... | javascript | chosen |
[
{
"from": "system",
"value": "Remove not needed code fragments\n"
},
{
"from": "human",
"value": "/*\n\nMy Custom JS\n============\n\nAuthor: Jürgen Scholz\nUpdated: November 2014\nNotes: \n\n*/\n\n$(function() {\n\n //<!-- smooth scrolling --> \n $('a[href^=\"#\"]').on('click',function (e... | javascript | chosen |
[
{
"from": "system",
"value": "Add a missing license header\n"
},
{
"from": "human",
"value": "export { subscribe, createSourceEventStream } from './subscribe';\n"
},
{
"from": "gpt",
"value": "/**\n * Copyright (c) 2017, Facebook, Inc.\n * All rights reserved.\n *\n * This source cod... | javascript | chosen |
[
{
"from": "system",
"value": "Increase WebSocket limit in FF to be as in Chrome\n"
},
{
"from": "human",
"value": "/**\n * Copyright (c) 2002-2018 \"Neo4j,\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"L... | javascript | chosen |
[
{
"from": "system",
"value": "Update executable script to be executable\n"
},
{
"from": "human",
"value": "var BodyParser = require('body-parser');\nvar DataDog = require('connect-datadog');\nvar Express = require('express');\nvar HTTP = require('http');\n\nrequire('../lib/config');\n\nvar app =... | javascript | chosen |
[
{
"from": "system",
"value": "Support use `remotedev` npm package field\n"
},
{
"from": "human",
"value": "module.exports = function(argv) {\n var SocketCluster = require('socketcluster').SocketCluster;\n\n return new SocketCluster({\n host: argv.hostname || null,\n port: Number(argv.por... | javascript | chosen |
[
{
"from": "system",
"value": "Work around bug in node stream library\n"
},
{
"from": "human",
"value": "var util = require('util');\nvar mu = require('mu2');\nvar Convert = require('ansi-to-html');\n\nfunction htmlFromText(text) {\n var tagsToReplace = {\n '&': '&',\n '<': '... | javascript | chosen |
[
{
"from": "system",
"value": "Reset the EMFILE timeout value if no writes in 1s\n"
},
{
"from": "human",
"value": "\n// wrapper around the non-sync fs functions to gracefully handle\n// having too many file descriptors open. Note that this is\n// *only* possible because async patterns let one i... | javascript | chosen |
[
{
"from": "system",
"value": "Set last workable day boundary to later 10:30 am\n"
},
{
"from": "human",
"value": "const ONE_DAY = 86400 * 1000;\n\nexport const getLastWorkableDayTime = () => {\n const today = new Date();\n today.setHours(9, 0, 0, 0);\n const todayWeekNumber = today.getDay();\... | javascript | chosen |
[
{
"from": "system",
"value": "Fix markdown image and link rendering\n"
},
{
"from": "human",
"value": "import Marked from 'marked'\n\nexport const orderedNotes = state => {\n return state.notes.slice(0).sort((a, b) => {\n const aOrder = state.notesOrder[a['.key']]\n const bOrder = state.n... | javascript | chosen |
[
{
"from": "system",
"value": "nav: Make each user's avatar in group-PM app bar lead to profile.\n\nParallel to the similar change for 1:1 PMs in the parent commit.\nThis again is a natural thing to try, and this seems pretty solidly\nthe best thing for it to do if it does something.\n"
},
{
"from": ... | javascript | chosen |
[
{
"from": "system",
"value": "Call connectedCallback before upGrade component.\n"
},
{
"from": "human",
"value": "export default function mdlUpgrade(Constructor) {\n\n class NewConstructor extends Constructor {\n\n connectedCallback() {\n window.componentHandler.upgradeElement(this);\n ... | javascript | chosen |
[
{
"from": "system",
"value": "[TASK] Add index option to grunt-conncet server\n"
},
{
"from": "human",
"value": "module.exports = function (grunt) {\n grunt.config.merge({\n connect: {\n server: {\n options: {\n base: \"build/\", //TODO: once grunt-contrib-connect 0.9 is... | javascript | chosen |
[
{
"from": "system",
"value": "Fix error in delete button in dashboard page\n"
},
{
"from": "human",
"value": "angular.module('zoomableApp').factory('servicesAPI', function($http, $q, Upload, $timeout) {\n return {\n createVideo : function(video) {\n return $http.post('/api/video', video... | javascript | chosen |
[
{
"from": "system",
"value": "Add some code to handle reconnect after stale RTM\n"
},
{
"from": "human",
"value": "const Botkit = require('botkit')\r\nconst config = require('./config.json')\r\nconst version = require('./package.json').version\r\nconst logger = require('./src/logger')\r\nconst s... | javascript | chosen |
[
{
"from": "system",
"value": "Fix className warning (toString bem-cn)\n"
},
{
"from": "human",
"value": "import React from 'react'\nimport PropTypes from 'prop-types'\n\nimport block from '../../../helpers/bem-cn'\n\nimport './Row.css'\n\nconst row = block('j-row')\nconst column = block('j-col')... | javascript | chosen |
[
{
"from": "system",
"value": "Fix position in geolocate control\n"
},
{
"from": "human",
"value": "import controlMixin from './controlMixin'\n\nexport default {\n name: 'GeolocateControl',\n mixins: [controlMixin],\n\n props: {\n position: {\n type: String,\n default: 'top-right'... | javascript | chosen |
[
{
"from": "system",
"value": "Replace test usage of `willClearRender` for `willDestroyElement`.\n"
},
{
"from": "human",
"value": "import Ember from \"ember\";\nimport Wormhole from 'ember-wormhole/components/ember-wormhole';\n\nvar titles = Ember.A([]);\nexport default Wormhole.extend({\n init... | javascript | chosen |
[
{
"from": "system",
"value": "Set initial state of checkbox to false\n"
},
{
"from": "human",
"value": "Zepto(document).ready(function() {\n $('.toggle-input').change(function() {\n $('body').toggleClass('night');\n });\n});\n"
},
{
"from": "gpt",
"value": "jQuery(document).read... | javascript | chosen |
[
{
"from": "system",
"value": "Clean up tests with sinon ftw\n"
},
{
"from": "human",
"value": "var sinon = require('sinon');\nvar chai = require('chai');\nvar expect = chai.expect;\n\ndescribe('Util', function() {\n var jsonParser = require(\"../src/util.js\").jsonParser();\n\n it('returns par... | javascript | chosen |
[
{
"from": "system",
"value": "[DASH-2397] Fix display only valid domains in hosting URLs\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport { withRouter } from 'react-router';\nimport _ from 'lodash';\nimport { LinkWithIcon } from '../../common';\n\nconst HostingListItemLinks ... | javascript | chosen |
[
{
"from": "system",
"value": "Implement keyboard shortcut to open tab at default location\n"
},
{
"from": "human",
"value": "let currentTabId = undefined;\n\nfunction updateCurrentTab() {\n let query = {\n active: true,\n currentWindow: true,\n };\n browser.tabs.query(quer... | javascript | chosen |
[
{
"from": "system",
"value": "fix: Add meta content for preventing double tab\n"
},
{
"from": "human",
"value": "import React from 'react'\nimport PropTypes from 'prop-types'\n\nexport default class HTML extends React.Component {\n render() {\n return (\n <html {...this.props.htmlAttrib... | javascript | chosen |
[
{
"from": "system",
"value": "Update the labextension javascript test\n"
},
{
"from": "human",
"value": "// Copyright (c) Jupyter Development Team.\n// Distributed under the terms of the Modified BSD License.\n\nvar buildExtension = require('jupyterlab-extension-builder').buildExtension;\nvar pa... | javascript | chosen |
[
{
"from": "system",
"value": "Add missing radix parameter (Woohoo! First lint failure!)\n"
},
{
"from": "human",
"value": "/**\n * Returns a random integer between min and max\n * Using Math.round() will give you a non-uniform distribution!\n */\nfunction getRandomInt (min, max) {\n return Ma... | javascript | chosen |
[
{
"from": "system",
"value": "Fix room not recalculating sources\n"
},
{
"from": "human",
"value": "SetupPrototypes();\n\nSetupRooms();\n\nSpawnCreeps();\n\nHandleCreeps();\n\nEndTick();\n\nfunction SetupPrototypes() {\n Room.prototype.getLOIs = function() {\n var lois = [];\n t... | javascript | chosen |
[
{
"from": "system",
"value": "Add a guard when EditorSession.getEditor() returns undefined.\n"
},
{
"from": "human",
"value": "import InsertInlineNodeCommand from './InsertInlineNodeCommand'\nimport { hasAvailableXrefTargets } from '../util/xrefHelpers'\n\nexport default class InsertXrefCommand ... | javascript | chosen |
[
{
"from": "system",
"value": "Add action for setting valid capture\n"
},
{
"from": "human",
"value": "import * as constants from '../../constants'\n\nexport function documentCapture(payload) {\n return {\n type: constants.DOCUMENT_CAPTURE,\n payload\n }\n}\n\nexport function faceCapture(... | javascript | chosen |
[
{
"from": "system",
"value": "Return boolean value in `isPlaying` function\n"
},
{
"from": "human",
"value": "'use strict';\n\n/* global Connector */\n\nConnector.playerSelector = '.player';\n\nConnector.artistTrackSelector = '.player__progress__title';\n\nConnector.isPlaying = function () {\n\t... | javascript | chosen |
[
{
"from": "system",
"value": "Allow using Firefox Window Recorder on macOS.\n"
},
{
"from": "human",
"value": "'use strict';\nconst { isAndroidConfigured } = require('../../android');\nconst AndroidRecorder = require('./android/recorder');\nconst X11Recorder = require('./desktop/x11recorder');\n... | javascript | chosen |
[
{
"from": "system",
"value": "Test that ColorPicker returns an rgba string when required\n"
},
{
"from": "human",
"value": "/* globals describe, it */\nimport ColorPicker from '../src/app';\n\nimport assert from 'assert';\nimport { Observable } from 'rx';\nimport { mockDOMSource } from '@cycle/d... | javascript | chosen |
[
{
"from": "system",
"value": "Switch to name field for unique check and value\n"
},
{
"from": "human",
"value": "Template.addProject.created = function () {\n // Get reference to template instance\n let instance = this;\n\n // Subscribe to all tags, for tag auto-complete field\n instance.sub... | javascript | chosen |
[
{
"from": "system",
"value": "Use ES5 var instead of ES6 let\n"
},
{
"from": "human",
"value": "var createTimer = require('../create-timer')\n\nit('starts events from zero', function () {\n let timer = createTimer('test')\n let time = timer()\n expect(time[2]).toBe(0)\n})\n\nit('saves host na... | javascript | chosen |
[
{
"from": "system",
"value": "Use watchify instead of grunt-contrib-watch for faster watched builds.\n"
},
{
"from": "human",
"value": "module.exports = function (grunt) {\n\n 'use strict';\n\n grunt.loadNpmTasks('grunt-browserify');\n grunt.loadNpmTasks('grunt-contrib-watch');\n\n // Projec... | javascript | chosen |
[
{
"from": "system",
"value": "Add advanced svgo plugins option example\n\nExample : disable the straightCurve simplification for the convertPathData plugin."
},
{
"from": "human",
"value": "'use strict';\nmodule.exports = function (grunt) {\n\tgrunt.initConfig({\n\t\tsvgmin: {\n\t\t\tcompile: {\... | javascript | chosen |
[
{
"from": "system",
"value": "Make chai include stack traces\n"
},
{
"from": "human",
"value": "\n/**\n * External dependencies.\n */\n\nvar chai = require('chai');\n\n/**\n * Register `should`.\n */\n\nglobal.should = chai.should();\n"
},
{
"from": "gpt",
"value": "\n/**\n * Externa... | javascript | chosen |
[
{
"from": "system",
"value": "Add test for HtmlGenerator.text and HTML-escaping\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', fu... | javascript | chosen |
[
{
"from": "system",
"value": "Update recommended r5 version to v4.7.0\n"
},
{
"from": "human",
"value": "//\n\n// Bucket where R5 JARs are to be found\nexport const R5_BUCKET = 'https://r5-builds.s3.amazonaws.com'\n\n// Recommended r5 version\nexport const RECOMMENDED_R5_VERSION = 'v4.6.1'\n\n//... | javascript | chosen |
[
{
"from": "system",
"value": "Make the issue appear in the tests\n"
},
{
"from": "human",
"value": "const expect = require('expect');\nconst { run, createProject } = require('../cli');\n\ndescribe('Child Entries', () => {\n beforeEach(createProject);\n\n it('should be able to delete a chil... | javascript | chosen |
[
{
"from": "system",
"value": "Fix for CI failure due to PhantomJS incompatibility.\n"
},
{
"from": "human",
"value": "document.write('<div id=\"ember-testing-container\"><div id=\"ember-testing\"></div></div>');\n\nEmber.testing = true;\n\nwindow.startApp = require('appkit/tests/helpers... | javascript | chosen |
[
{
"from": "system",
"value": "Fix setPositionVisible on dropdown when in mobile.\n"
},
{
"from": "human",
"value": "var locastyle = locastyle || {};\n\nlocastyle.dropdown = (function() {\n 'use strict';\n\n function init() {\n unbind();\n bindClickOnTriggers();\n bindClickOutsideTrigg... | javascript | chosen |
[
{
"from": "system",
"value": "Make checkbox labels clickable again\n"
},
{
"from": "human",
"value": "import React, {Component, PropTypes} from 'react';\n\nclass FilterForm extends Component {\n\n constructor(props) {\n super(props);\n this.values = {\n certificate: [\n 'DGNP-... | javascript | chosen |
[
{
"from": "system",
"value": "Fix code bug in test\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar jf = require('../../'),\n expect = require('chai').expect;\n\nconst testFilePath = './' + Math.random() + '.json';\n\nvar testValue1 = { msg: \"test value 1\" };\nvar testValue2 = { m... | javascript | chosen |
[
{
"from": "system",
"value": "Add classname to table element\n"
},
{
"from": "human",
"value": "import * as React from 'react';\n\nconst HEADERS = ['no', 'text', 'log'];\n\nexport const BuilderDataTable = props => {\n return (\n <table>\n <thead>\n <BuilderRow \n heade... | javascript | chosen |
[
{
"from": "system",
"value": "CRM-5284: Paste HTML content into email templates\n\n- cleanup multiple empty lines and spaces during converting html2text\n in email compose and templates\n"
},
{
"from": "human",
"value": "define(function() {\n 'use strict';\n\n return {\n text2html:... | javascript | chosen |
[
{
"from": "system",
"value": "Move socket creation to method\n\nSigned-off-by: Bram Devries <ec215cb41b22f2559be283cc58dc7219738dc864@madewithlove.be>\n"
},
{
"from": "human",
"value": "\nimport merge from 'deepmerge';\nimport {SOCKET_DISPATCH, SOCKET_RECEIVE_ACTION, SOCKET_CONNECT, SOCKET_DISCO... | javascript | chosen |
[
{
"from": "system",
"value": "Maintain current protocol, hostname and port when navigating\n"
},
{
"from": "human",
"value": "/*global window, document, Faye */\n/*jslint vars: true, indent: 2 */\n\n(function () {\n 'use strict';\n\n var begin = function (beginControlling, beginMirroring) {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Update HFC Google Maps API Key (from website source code)\n"
},
{
"from": "human",
"value": "var fs = require('fs');\n\n// Replace with require('pikud-haoref-api') if the package resides in node_modules\nvar pikudHaoref = require('../index');\n\n// Pikud Haoref Goog... | javascript | chosen |
[
{
"from": "system",
"value": "Make sure that we are only processing messages that are of type request\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar _ = require('lodash');\nvar glimpse = require('glimpse');\n\nvar processMessages = function(messages) { \n return {\n messages: ... | javascript | chosen |
[
{
"from": "system",
"value": "Remove confirmation for manually unpinned tabs\n"
},
{
"from": "human",
"value": "chrome.tabs.onCreated.addListener(\n function(tab){\n if(tab.pinned) {\n chrome.tabs.executeScript(tab.id, {file: \"src/js/onbeforeunload.js\"});\n }\n }\n);\n\nchrome.tab... | javascript | chosen |
[
{
"from": "system",
"value": "Decrease the slerp increment for dramatic effect\n"
},
{
"from": "human",
"value": "var THREE = require('three'),\n raf = require('raf-component');\n\nmodule.exports = function camera (cam) {\n var cameraPosition = cam.position.clone(),\n cameraLookAt = new... | javascript | chosen |
[
{
"from": "system",
"value": "Remove old httprequest to state\n"
},
{
"from": "human",
"value": " var url = \"https://brew-fridge.herokuapp.com\";\n//var url = \"http://localhost:5000\";\nvar graph = require('./graph.js');\n\nfunction start() {\n $.post(url + \"/start\", function(data) {});\n}\... | javascript | chosen |
[
{
"from": "system",
"value": "Add globals to build output\n"
},
{
"from": "human",
"value": "var filterES6Modules = require('broccoli-es6-module-filter'),\n concat = require('broccoli-concat'),\n pkg = require('./package');\n\n\nmodule.exports = function(broccoli) {\n\n var global = 'Embe... | javascript | chosen |
[
{
"from": "system",
"value": "Add TODO comment about defineMessages()\n"
},
{
"from": "human",
"value": "/*\n * Copyright 2015, Yahoo Inc.\n * Copyrights licensed under the New BSD License.\n * See the accompanying LICENSE file for terms.\n */\n\nimport {__addLocaleData as addIMFLocaleData} from... | javascript | chosen |
[
{
"from": "system",
"value": "Add metadata passing to rethrowFx\n"
},
{
"from": "human",
"value": "export function actionIs(actionName) {\n return function () {\n return this.filter(({action}) => action === actionName);\n };\n}\n\nexport function parentIs(parentName) {\n return function ()... | javascript | chosen |
[
{
"from": "system",
"value": "Add redis as a session store.\n\nDon't forget turning on a redis-server.\n"
},
{
"from": "human",
"value": "\"use strict\";\n\nvar debug = require('debug')('server');\nvar express = require('express');\nvar io = require('socket.io')();\nvar path = require('path');\n... | javascript | chosen |
[
{
"from": "system",
"value": "Rewrite Lock to remove the need of EventEmitter\n"
},
{
"from": "human",
"value": "const EventEmitter = require('events')\nconst { KafkaJSLockTimeout } = require('../errors')\n\nmodule.exports = class Lock {\n constructor({ timeout = 1000 } = {}) {\n this.locked... | javascript | chosen |
[
{
"from": "system",
"value": "Test if resp isPlainObject and replace this.model with ridge/model if it is default value of Backbone.Model.\n"
},
{
"from": "human",
"value": "module.exports = Backbone.Collection.extend({\n\tconstructor: function(attributes, options) {\n\t\tBackbone.Collection.app... | javascript | chosen |
[
{
"from": "system",
"value": ":fire: Remove a commented out file\n"
},
{
"from": "human",
"value": "'use babel'\n\nimport {CompositeDisposable} from 'atom'\nimport Validate from './validate'\n\nexport default class UIRegistry {\n constructor() {\n this.subscriptions = new CompositeDisposable... | javascript | chosen |
[
{
"from": "system",
"value": "Add POST request to the SET_CHANNEL action\n"
},
{
"from": "human",
"value": "import axios from 'axios';\n\n// get top twitch channels\nexport const GET_CHANNELS = 'GET_CHANNELS';\nexport function getChannels() {\n const request = axios.get('https://api.twitch.tv/k... | javascript | chosen |
[
{
"from": "system",
"value": "Return Response instances for fakeFetch\n"
},
{
"from": "human",
"value": "import queryString from 'query-string';\nimport pathMatch from 'path-match';\nimport parseUrl from 'parse-url';\n\nconst nativeFetch = window.fetch;\n\nexport const fakeFetch = (serverRoutes)... | javascript | chosen |
[
{
"from": "system",
"value": "Add an ONA_ORG env var\n\nThis env var allows it to take the name of the user's Ona organization\n\nSigned-off-by: Njagi Mwaniki <b6a4ba60ad861b9c9afb6daea7294be4be68f44c@urbanslug.com>\n"
},
{
"from": "human",
"value": "const env = process.env;\n\nmodule.exports = ... | javascript | chosen |
[
{
"from": "system",
"value": "Use permission service in model.\n"
},
{
"from": "human",
"value": "var User = {\n // Enforce model schema in the case of schemaless databases\n schema: true,\n\n attributes: {\n username: { type: 'string', unique: true },\n email: { type: 'email'... | javascript | chosen |
[
{
"from": "system",
"value": "Use the new rouotes in the app\n"
},
{
"from": "human",
"value": "'use strict'\n\nmodule.exports.mount = app => {\n\tconst routes = require('../routes')\n\tconst authRoutes = require('../routes/auth')\n\n\tapp.use('/', routes)\n\tapp.use('/auth', authRoutes)\n}\n"
... | javascript | chosen |
[
{
"from": "system",
"value": "Fix timing issue in firefox where cycle wouldn't start before replay\n"
},
{
"from": "human",
"value": "import {run} from '@cycle/core';\nimport Rx from 'rx';\nimport restartable from './restartable';\n\nfunction restart (main, drivers, {sources, sinks}, isolate = {... | javascript | chosen |
[
{
"from": "system",
"value": "Update squidroot to the new devstep init path\n"
},
{
"from": "human",
"value": "squidRoot = _currentPluginPath;\nsquidShared = squidRoot + \"/shared\";\n\ndevstep.on('configLoaded', function(config) {\n config\n .addLink('squid3:squid3.dev')\n .setEnv('htt... | javascript | chosen |
[
{
"from": "system",
"value": "Clean up config, only build once\n\nNeed to swap to webpack though!\n"
},
{
"from": "human",
"value": "import fs from 'fs'\nimport * as babel from 'babel-core'\nimport _eval from 'eval'\nimport babelConfig from './babelConfig'\nimport log from './log'\n\nconst confi... | javascript | chosen |
[
{
"from": "system",
"value": "Use object.assign to extend none class map to avoid undefined template vars\n"
},
{
"from": "human",
"value": "/**\n * No CSS Framework\n */\nexport const noneClassMap = {\n defaultButton: 'button default'\n};\n\n/**\n * Bootstrap\n */\nexport const bootstrapClassM... | javascript | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.