conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Providers: Send list of objects for backbone compatibility.\n"
},
{
"from": "human",
"value": "var path = require('path');\nvar _ = require('underscore')._;\n\nmodule.exports = function(app, settings) {\n var providers = {};\n for (var p in settings.providers) {\n... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"Revert \"Revert \"Revert \"Revert \"Revert \"Revert \"Revert \"kein editor\"\"\"\"\"\"\"\"\n\nThis reverts commit 467cab061de0819402d424d2c340c91a445c4f9d.\n"
},
{
"from": "human",
"value": "import React, { PropTypes } from 'react';\nimport ReactDOM from 'r... | javascript | chosen |
[
{
"from": "system",
"value": "Fix JS issue to let users post questions and answers\n"
},
{
"from": "human",
"value": "$(document).ready(function () {\n\n $(\".new-question\").click(function() {\n $(this).addClass(\"hidden\");\n $(\"#new-question\").removeClass(\"hidden\");\n });\n\n $(\... | javascript | chosen |
[
{
"from": "system",
"value": "Rearrange code a bit for clarity\n"
},
{
"from": "human",
"value": "/**\n * FCViz \n * Payload script for loan requests page\n */\n \n$(\"#watch_form\").find(\"a.mediumText\").each(function(){$(this).before(\n $(document.createElement(\"a\")).html(\"+\").attr(\"cla... | javascript | chosen |
[
{
"from": "system",
"value": "Add link to tmx-parser type definitions\n"
},
{
"from": "human",
"value": "// @flow\nimport type { LayerType } from './layer';\nimport type { TilesetType } from './tileset';\n\nexport type MapType = {\n layers: Array<LayerType>;\n tileSets: Array<TilesetType>;\n}\... | javascript | chosen |
[
{
"from": "system",
"value": "Add some Google Analytics Events for testing\n"
},
{
"from": "human",
"value": "(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){\n (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),\n m=s.getElementsB... | javascript | chosen |
[
{
"from": "system",
"value": "Fix absolute path in output\n"
},
{
"from": "human",
"value": "'use strict';\nconst getConfig = require('./utils').getConfig;\nconst getTestRoot = require('./utils').getTestRoot;\nconst deepMerge = require('./utils').deepMerge;\nconst fileExists = require('../utils'... | javascript | chosen |
[
{
"from": "system",
"value": "Update `out` to include comments in js file\n"
},
{
"from": "human",
"value": "const argParser = require('minimist')\nconst escodegen = require('escodegen')\nconst fs = require('fs')\nconst parser = require('./parser')\nconst childProcess = require('child_process')\... | javascript | chosen |
[
{
"from": "system",
"value": "Fix defaults-only middleware case, i.e. no args"
},
{
"from": "human",
"value": "var fs = require('fs');\nvar middleware = [];\n\nfs.readdirSync(__dirname + '/middleware').forEach(function (filename) {\n if (/\\.js$/.test(filename)) {\n var name = filename... | javascript | chosen |
[
{
"from": "system",
"value": "Use spawno instead of exec\n"
},
{
"from": "human",
"value": "// Dependencies\nvar Exec = require(\"child_process\").exec\n , OArgv = require(\"oargv\")\n , ElectronPath = require(\"electron-prebuilt\")\n ;\n\n/**\n * Electroner\n *\n * @name Electroner\n * @func... | javascript | chosen |
[
{
"from": "system",
"value": "Extend params in correct order\n"
},
{
"from": "human",
"value": "var _ = require('lodash'),\n request = require('request'),\n savePage = require('./save').page;\n\n\nfunction getPageFromServer(params, pageResult) {\n request.get(params, function (error, resp... | javascript | chosen |
[
{
"from": "system",
"value": "Use Buffer.from() instead of new Buffer()\n\nnew Buffer() is now deprecated\n"
},
{
"from": "human",
"value": "/*\n * Whitespace-JS / utils.js\n * copyright (c) 2016 Susisu\n */\n\n\"use strict\";\n\nfunction end() {\n module.exports = Object.freeze({\n SP... | javascript | chosen |
[
{
"from": "system",
"value": "Make sure that oathbroken promises trigger the 'Uncaught rejection' error.\n"
},
{
"from": "human",
"value": "var workQueue = require('./workQueue');\nmodule.exports = function oathbreaker(value) {\n if (!value || typeof value.then !== 'function') {\n retu... | javascript | chosen |
[
{
"from": "system",
"value": "Rework the way the event object is attached and removed from the view object\n"
},
{
"from": "human",
"value": "\n/**\n * Module Dependencies\n */\n\nvar events = require('event');\n\n/**\n * Exports\n */\n\nexports.on = function(name, module, cb) {\n\n // cb can b... | javascript | chosen |
[
{
"from": "system",
"value": "Remove EventEmitter to see if that's what caused the messaging error\n"
},
{
"from": "human",
"value": "const { exec } = require('child_process');\nconst EventEmitter = require('events');\n\nclass Execute extends EventEmitter {\n constructor(options) {\n super()... | javascript | chosen |
[
{
"from": "system",
"value": "Disable matomo since it's misconfigured anyway\n"
},
{
"from": "human",
"value": "function init() {\n window._paq = window._paq || [];\n}\nfunction paq() {\n return window._paq;\n}\nfunction installed() {\n return !!paq();\n}\nfunction push(...args) {\n return p... | javascript | chosen |
[
{
"from": "system",
"value": "Change type date to string\n"
},
{
"from": "human",
"value": "var mongoose = require('mongoose');\nvar ProductSchema = require('./product');\nvar ConfirmationSchema = require('./confirmation');\nvar DonationSchema = require('./donation');\n\nvar EventSchema = new mo... | javascript | chosen |
[
{
"from": "system",
"value": "Add amount to paypal callback\n"
},
{
"from": "human",
"value": "'use strict';\n\nangular.module('app.donate', [\n 'ui.router',\n 'ui.bootstrap'\n])\n\n.controller('DonateModalCtrl', function($rootScope, $scope, $modalInstance, $timeout, twitter) {\n $scope.ok = ... | javascript | chosen |
[
{
"from": "system",
"value": "Use chrome.app.runtime instead of experimental\n"
},
{
"from": "human",
"value": "chrome.experimental.app.onLaunched.addListener(function (launchData) {\n var options = {\n frame: 'none',\n minWidth: 400,\n minHeight: 400,\n width: 700,\n height: 750... | javascript | chosen |
[
{
"from": "system",
"value": "Trim venue name and address in schema\n"
},
{
"from": "human",
"value": "var mongoose = require('mongoose');\n\n\nvar VenueSchema = new mongoose.Schema({\n name: String,\n address: String,\n latitude: Number,\n longitude: Number\n})\n\nmodule.exports = m... | javascript | chosen |
[
{
"from": "system",
"value": "Change event listener on input\n"
},
{
"from": "human",
"value": "$(document).ready(function(){\n $('.popup__toggle').on('click', popup);\n $('.filter-drawer__toggle').on('click', openFilterDrawer);\n $('.create-drawer__toggle').on('click', openCreateDrawer... | javascript | chosen |
[
{
"from": "system",
"value": "Make addData dynamically recognize how data is being added\n"
},
{
"from": "human",
"value": "/*!\n * node-gcm\n * Copyright(c) 2013 Marcus Farkas <toothlessgear@finitebox.com>\n * MIT Licensed\n */\n\n\nfunction Message(obj) {\n if (!(this instanceof Message)) {... | javascript | chosen |
[
{
"from": "system",
"value": "Store can pass file json to input field\n"
},
{
"from": "human",
"value": "(function ($) {\n $(window).load(function(){\n var fields = document.getElementsByClassName('field-widget-hologram-image');\n Array.prototype.forEach.call(fields, function(field){... | javascript | chosen |
[
{
"from": "system",
"value": "Create GithubPackage instance in `initialize` package hook\n\nThis ensures that the instance is available before any consume* or\ndeserialize* hooks are called\n"
},
{
"from": "human",
"value": "import GithubPackage from './github-package';\n\nlet pack;\nconst entry... | javascript | chosen |
[
{
"from": "system",
"value": "Add length fixtures to br-width.\n"
},
{
"from": "human",
"value": "import toWord from '../util/toWord';\nimport {brWidths} from '../validators/isBrWidth';\n\nexport const fixtures = {\n valid: brWidths,\n invalid: ['huuuuge'],\n};\n\nexport const nodes = {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix indentation and spacing errors\n"
},
{
"from": "human",
"value": "import Ember from 'ember';\nimport config from '../config/environment';\n\n\n\nexport default Ember.Route.extend({\n model: function(params) {\n var CLIENT_ID = config.myCLIENT_ID;\n va... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"Use screen dimension as visible height\"\n\nThis reverts commit 692437cd611c8cfc9222ec4cc17b0d852aa26e72.\n"
},
{
"from": "human",
"value": "import { Dimensions } from 'react-native'\n\nmodule.exports = {\n get visibleHeight() {\n return Dimensions.get(... | javascript | chosen |
[
{
"from": "system",
"value": "Add string to base64 util\n"
},
{
"from": "human",
"value": "exports.base64ToBuffer = function ( data ) {\n return new Buffer( data, 'base64' );\n};\n\nexports.base64ToString = function ( data ) {\n return new Buffer( data, 'base64' ).toString();\n};\n"
},
{
... | javascript | chosen |
[
{
"from": "system",
"value": "Fix linting errors for schema tests.\n"
},
{
"from": "human",
"value": "var assert = require('assert');\nvar schema = require('../../libs/schema');\nvar configSchema = require('../../schemas/config');\nvar goodConfig = require('../data/goodConfig');\n\ndescribe('lib... | javascript | chosen |
[
{
"from": "system",
"value": "Reset the lastIndex and export the regex\n"
},
{
"from": "human",
"value": "const regexEmoji = require(\"regex-emoji\")\n , regexParser = require(\"regex-parser\")\n ;\n\nconst REGEX_EMOJI = regexParser(\"/^\" + regexEmoji().toString().substring(1));\n\n/**\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Improve behavior when require module\n"
},
{
"from": "human",
"value": "var exeq = require('exeq');\n\nmodule.exports = kill;\n\nfunction kill(port) {\n var p = port || 3000;\n var killInMacOSX = \"lsof -i tcp:\" + p + \" | grep LISTEN | awk '{print $2}' | xargs k... | javascript | chosen |
[
{
"from": "system",
"value": "Add images and flavors commands\n"
},
{
"from": "human",
"value": "var path = require('path');\nvar fs = require('fs');\nvar flatiron = require('flatiron');\nvar pkgcloud = require('pkgcloud');\nvar santa = module.exports = flatiron.app;\n\nsanta.use(flatiron.plugin... | javascript | chosen |
[
{
"from": "system",
"value": "Add log to check contentType\n\n"
},
{
"from": "human",
"value": "/* eslint-disable no-undef */\nimport { select, fork } from 'redux-saga/effects';\nimport { isIos } from 'worona-deps';\nimport { blackOrWhite } from '../libs';\nimport * as deps from '../deps';\n\nfu... | javascript | chosen |
[
{
"from": "system",
"value": ":bug: Fix invalid Linter$Message flow type\n"
},
{
"from": "human",
"value": "'use babel'\n\n/* @flow */\n\nimport type {TextBuffer, TextEditorMarker} from 'atom'\n\nexport type Atom$Point = [number, number]\nexport type Atom$Range = [Atom$Point, Atom$Point]\nexport... | javascript | chosen |
[
{
"from": "human",
"value": "Add modules and NfieldClient constructor function\n"
},
{
"from": "gpt",
"value": "\"use strict\";\n\nvar Promise = require('bluebird');\nvar extend = require('extend');\nvar request = Promise.promisify(require('request'));\nvar tokenUpdateTime = 12 * 60 * 1000;\n\n/... | javascript | chosen |
[
{
"from": "system",
"value": "Remove debug console.log - Rain IA\n\nRemove debug console.log - Rain IA"
},
{
"from": "human",
"value": "(function(env) {\n \"use strict\";\n env.ddg_spice_rain = function(api_result) {\n console.log(api_result);\n\n // Check for errors.\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Change url to openshift backend\n"
},
{
"from": "human",
"value": "\"use strict\";\n\nangular.module(\"myApp.services.urlHandler\", [])\n.service(\"urlHandler\", function() {\n this.serviceURL = function () {//eslint-disable-line no-unused-vars\n return \"... | javascript | chosen |
[
{
"from": "system",
"value": "Fix typo \"reduntant\" to \"redundant\"."
},
{
"from": "human",
"value": "/*global Todos, Ember */\n(function () {\n\t'use strict';\n\n\tTodos.TodoInputComponent = Ember.TextField.extend({\n\t\tfocusOnInsert: function () {\n\t\t\t// Re-set input value to get rid of ... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"only including tracking if it was not already included before\"\n\nThis reverts commit bfc2b27e3e2386687a8bbf24f36bef46874d939e.\n"
},
{
"from": "human",
"value": "window.$ = window.Zepto = require('zepto-browserify').$;\nrequire('./components/polyfills.js'... | javascript | chosen |
[
{
"from": "system",
"value": "Tweak how Run handles checking if timeout occurred.\n"
},
{
"from": "human",
"value": "var Run = function(parent, op, befores, afters, timeout) {\n\tthis.parent = parent;\n\tthis.op = op;\n\tthis.expects = [];\n\tthis.ran = false;\n\n\tif (timeout) {\n\t\tthis.timeo... | javascript | chosen |
[
{
"from": "system",
"value": "Fix outputMsiPath to be absolute\n"
},
{
"from": "human",
"value": "const electronInstaller = require('electron-winstaller')\nconst config = require('../package.json')\nconst format = require('string-template')\nconst fs = require('fs')\nconst path = require('path')... | javascript | chosen |
[
{
"from": "system",
"value": "Load intl packages from correct location\n\nThis path changed in the last major version to remove `dist`.\n"
},
{
"from": "human",
"value": "export async function loadPolyfills() {\n await Promise.all([\n intlPluralRules(),\n intlRelativeTimeFormat(),\n ]);\... | javascript | chosen |
[
{
"from": "system",
"value": "Refactor of jquery ajax call to fetch call\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport $ from 'jquery'\nimport './App.css';\nimport Inventory from './Inventory'\n\n\nvar App = React.createClass({\n getInitialState: function() {\n return... | javascript | chosen |
[
{
"from": "system",
"value": "Change to use Array.from to workaround babel loose\n"
},
{
"from": "human",
"value": "import fs from 'fs';\nimport tokenize from './tokenize';\n\ndescribe('tokenize', () => {\n it('should support line comments', () => {\n expect([...tokenize(`\n // What do ... | javascript | chosen |
[
{
"from": "system",
"value": "Make sure html templates are loaded by karma and preprocess them into js with html2js\n"
},
{
"from": "human",
"value": "// Karma configuration\n// http://karma-runner.github.io/0.10/config/configuration-file.html\n\nmodule.exports = function(config) {\n config.set... | javascript | chosen |
[
{
"from": "system",
"value": "Update config with Boston IDs\n"
},
{
"from": "human",
"value": "angular.module('gdgXBoomerang')\n.factory('Config', function () {\n return {\n // TODO Modify these to configure your app\n 'name' : 'GDG Space Coast',\n 'id' ... | javascript | chosen |
[
{
"from": "system",
"value": "Use wss instead of ws\n"
},
{
"from": "human",
"value": "\nvar AppInfo = {\n AppId: \"600fdef8-5ee5-4047-ac73-6c51616532e0\",\n AppVersion: \"1.1.PROD_1.58\",\n}\n\n"
},
{
"from": "gpt",
"value": "\nvar AppInfo = {\n\tWss: true,\n AppId: \"600... | javascript | chosen |
[
{
"from": "system",
"value": "Make thread scroller account for fixed nav\n\nFixes #693\n"
},
{
"from": "human",
"value": "$(document).ready(function() {\n var offset = $(\".thread-view-from-here\").offset();\n if(!window.location.hash && offset) {\n $('html, body').animate({\n scroll... | javascript | chosen |
[
{
"from": "system",
"value": "Fix \"Also delete reaction subsamples\" checkbox\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport {Button, ButtonToolbar, Checkbox} from 'react-bootstrap';\n\nexport default class ManagingModalDelete extends React.Component {\n constructor(prop... | javascript | chosen |
[
{
"from": "system",
"value": "Add user if not exist\n"
},
{
"from": "human",
"value": "//js for first creation of event.\nvar sql = require('./sql');\n\nexports.createNewEvent = function(req, res){\n console.log(req.user);\n if(!req.user){\n res.render('facebook.html');\n }\n //should hav... | javascript | chosen |
[
{
"from": "system",
"value": "Fix big text after insertion (not pure function)\n"
},
{
"from": "human",
"value": "/*\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * Yo... | javascript | chosen |
[
{
"from": "system",
"value": "Fix a delete item related bug\n\nFixes #32\n"
},
{
"from": "human",
"value": "var db = require('../lib/db');\nvar path = require('path');\n\n/*\n * Fetch a single clip\n */\nexports.fetch = function(req, res, next) {\n var hash = req.params.hash;\n\n db.fetchItemB... | javascript | chosen |
[
{
"from": "system",
"value": "Set votedState upon ISSUE OPEN\n"
},
{
"from": "human",
"value": "import { VOTING_STATE } from '../../../common/actionTypes/voting';\n\nconst votedState = (state = false, action) => {\n switch (action.type) {\n case VOTING_STATE:\n return {\n voted: ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix the Waypoint Details for nodes without links.\n"
},
{
"from": "human",
"value": "\nimport React from 'react';\n\n\nclass WaypointLinks extends React.Component {\n\n constructor(props) {\n super(props);\n \n this.state = {\n link: null\n };\n\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Handle user accounts and simple styling to the appearance of the webpage.\n"
},
{
"from": "human",
"value": "(function () {\n\n})();"
},
{
"from": "gpt",
"value": "(function () {\n // Mock repository\n let users = [\n {\n _kmd: {\... | javascript | chosen |
[
{
"from": "system",
"value": "Test that lib/action is an invoker\n"
},
{
"from": "human",
"value": "describe('action', function() {\n beforeEach(function() {\n this.subject = require(libDir + 'action');\n });\n\n it('has a list of available methods', function() {\n var methodNames = Obj... | javascript | chosen |
[
{
"from": "system",
"value": "Update to most recent fermenter-state used upstream.\n"
},
{
"from": "human",
"value": "/* NOTE / IMPORTANT: This is *almost* a 1:1 verbatim copy of the file\n 'initialState.js' from our fermenter-project. Both files should be kept in\n sync most of the time. */... | javascript | chosen |
[
{
"from": "system",
"value": "Tests: Call correct port when API testing\n"
},
{
"from": "human",
"value": "var http = require('http');\nvar _ = require('underscore');\n\nfunction request(rest, method, data, done)\n{\n done = done || data;\n\n var ctype = 'text/plain';\n if (typeof data ===... | javascript | chosen |
[
{
"from": "system",
"value": "bug: Fix bad GitHub action base URL pointing to root instead of repo name\n"
},
{
"from": "human",
"value": "/* eslint-disable @typescript-eslint/camelcase */\n// @ts-check\n\n/**\n * @type {import('./index.d').Configuration}\n */\nconst appConfig = {\n url_basePat... | javascript | chosen |
[
{
"from": "system",
"value": "Add in some missing parenthesis and small changes."
},
{
"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://... | javascript | chosen |
[
{
"from": "system",
"value": "[FIX] Add super to constructor of magic point\n"
},
{
"from": "human",
"value": "const EventEmitter = require('eventemitter2').EventEmitter2;\n\nfunction filter(v, min, max) {\n v = Math.min(v, max);\n v = Math.max(v, min);\n return v;\n}\n\nclass MagicPoin... | javascript | chosen |
[
{
"from": "system",
"value": "Make permalink button work in IE8.\n\nIE8 doesn't have addEventListener, so use attachEvent if that doesn't exist.\n\nAuditors: alpert\n"
},
{
"from": "human",
"value": "function init() {\n var input = document.getElementById(\"input\");\n var math = document.... | javascript | chosen |
[
{
"from": "system",
"value": "Add repository address to user agent\n\nThe Googlebot user agent string uses a plus +\nbefore the information URL in the comment:\n>Googlebot/2.1 (+http://www.google.com/bot.html)\n\nSource: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/User-Agent\n\nThe reason for ... | javascript | chosen |
[
{
"from": "system",
"value": "Use <main> for main content\n"
},
{
"from": "human",
"value": "// Copyright © 2015-2019 Esko Luontola\n// This software is released under the Apache License 2.0.\n// The license text is at http://www.apache.org/licenses/LICENSE-2.0\n\n/* @flow */\n\nimport \"./defau... | javascript | chosen |
[
{
"from": "system",
"value": "Clean task ignores .gitkeep files\n"
},
{
"from": "human",
"value": "module.exports = function(gulp, config, plugins, callback) {\n 'use strict';\n\n var del = require('del');\n\n return function() {\n del([config.dist.base]).then(callback());\n }... | javascript | chosen |
[
{
"from": "system",
"value": "fix(ZNTA-2146): Remove Helmet from ProjectVersion page\n"
},
{
"from": "human",
"value": "import React, {Component} from 'react'\nimport PropTypes from 'prop-types'\nimport {connect} from 'react-redux'\nimport Helmet from 'react-helmet'\nimport TMMergeModal from './... | javascript | chosen |
[
{
"from": "system",
"value": "Update contact activity query to remove Incomplete registrations\n"
},
{
"from": "human",
"value": "const contactActivityQuery = (\n from,\n size,\n email,\n contactId,\n objectTypes,\n sortOrder\n) => {\n return {\n from,\n size,\n query: {\n b... | javascript | chosen |
[
{
"from": "system",
"value": "refactor: Use duck typing in selectAll() helper\n"
},
{
"from": "human",
"value": "const ALLOW_SET_SELECTION_RANGE = ['text', 'search', 'URL', 'tel', 'password']\n\nexport const selectAll = (control) => {\n if (ALLOW_SET_SELECTION_RANGE.includes(control.type)) {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Allow push to origin again.\n"
},
{
"from": "human",
"value": "module.exports = function(grunt) {\n\n // Project configuration.\n grunt.initConfig({\n dest: '2013/',\n exclusions: ['build','node_modules','2013','2014'],\n copy: {\n main: {\n s... | javascript | chosen |
[
{
"from": "system",
"value": "Remove handlebars precompile from normal Grunt run.\n"
},
{
"from": "human",
"value": "'use strict'; /*jslint es5: true, node: true, indent: 2 */\n\nmodule.exports = function(grunt) {\n grunt.initConfig({\n pkg: grunt.file.readJSON('package.json'),\n handleba... | javascript | chosen |
[
{
"from": "system",
"value": "Remove banner comment from minified bundled file.\n\nFixes #55\n"
},
{
"from": "human",
"value": "'use strict';\n\nmodule.exports = function (grunt) {\n grunt.initConfig({\n pkg: grunt.file.readJSON('package.json'),\n browserify: {\n dist... | javascript | chosen |
[
{
"from": "system",
"value": "Add data to api fixture\n"
},
{
"from": "human",
"value": "import APIConstants from '../constants/APIConstants'\nimport randomInt from '../../app/helpers/random-int'\nconst fixture = require('../fixture-data')\n\nfunction getLatest(){\n var p = new Promise((resolve... | javascript | chosen |
[
{
"from": "system",
"value": "Refactor label spec to use react test utils\n"
},
{
"from": "human",
"value": "require('../spec_helper');\ndescribe('Label', function() {\n var Label;\n beforeEach(function() {\n Label = require('../../../src/pivotal-ui-react/labels/labels').Label;\n ReactDO... | javascript | chosen |
[
{
"from": "system",
"value": "Add test case to verify no commits found\n"
},
{
"from": "human",
"value": "/* global describe it */\n'use strict'\n\nconst chai = require('chai')\nconst requireInject = require('require-inject')\nconst sinon = require('sinon')\n\nconst expect = chai.expect\n\ndescr... | javascript | chosen |
[
{
"from": "system",
"value": "Add test case for publish\n"
},
{
"from": "human",
"value": "import thread from 'child_process';\nimport { promisify } from 'bluebird';\n\nconst promisifyStream = fn => promisify((param, callback) => {\n fn(param, result => { callback(null, result); });\n});\n\ne... | javascript | chosen |
[
{
"from": "system",
"value": "Switch Remote test back to Maki domain\n"
},
{
"from": "human",
"value": "var assert = require('assert');\nvar expect = require('chai').expect;\n\nvar fs = require('fs');\n\nvar Remote = require('../lib/remote');\n\nvar key = '';\n\ndescribe('Remote', function () {\... | javascript | chosen |
[
{
"from": "system",
"value": "Remove the test for deleted endpoint\n"
},
{
"from": "human",
"value": "\"use strict\";\n\nrequire('should');\nvar wordpressLib = require(__dirname + '/../lib/wordpress.js');\n\ndescribe('Wordpressorg', function () {\n describe('getYoastAnalysis', function () {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Order module exports and comment for order\n"
},
{
"from": "human",
"value": "// @flow\nimport * as Project from './project/index'\nimport Renderer from './renderer/renderer'\nimport * as Services from './services'\nimport LayerPluginBase from './plugin/layer-plugin... | javascript | chosen |
[
{
"from": "system",
"value": "Set `replaced` also for children array\n\nSigned-off-by: Stefan Marr <46f1a0bd5592a2f9244ca321b129902a06b53e03@stefan-marr.de>\n"
},
{
"from": "human",
"value": "'use strict';\n\nfunction Node(source) {\n var _this = this;\n\n this._parent = null;\n\n this.... | javascript | chosen |
[
{
"from": "system",
"value": "Change element allowed type account if not exists.\n"
},
{
"from": "human",
"value": "var PermissionConstructor = require('./PermissionConstructor').PermissionConstructor;\n\nfunction WebService(currentUser) {\n\tthis._currentUser = currentUser;\n\tthis._dependencie... | javascript | chosen |
[
{
"from": "system",
"value": "Remove unused scsslint grunt task config\n"
},
{
"from": "human",
"value": "module.exports = function(grunt) {\n grunt.initConfig({\n paths: {\n js: ['gruntfile.js']\n },\n scsslint: {\n all: ['<%= paths.scss %>']\n },\n jshint: {\n al... | javascript | chosen |
[
{
"from": "system",
"value": "Add Hasklig font to HyperTerm\n"
},
{
"from": "human",
"value": "module.exports = {\n config: {\n // default font size in pixels for all tabs\n fontSize: 12,\n\n // font family with optional fallbacks\n fontFamily: 'Menlo, \"DejaVu Sans Mono\", \"Lucida... | javascript | chosen |
[
{
"from": "system",
"value": "Fix public path when hmr is enabled\n"
},
{
"from": "human",
"value": "const path = require('path')\nconst mix = require('laravel-mix')\n// const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer')\n\nmix\n .js('resources/assets/js/app.js', 'public/js')\n... | javascript | chosen |
[
{
"from": "system",
"value": "Make exports.define refer to define"
},
{
"from": "human",
"value": "/* global requirejs, require, define */\ndefine('giftwrap-internal/container-injector', ['exports'], function (exports) {\n if (window.Ember) {\n define('ember', ['exports'], function(exports) ... | javascript | chosen |
[
{
"from": "system",
"value": "Remove reference to map services-AMD style bitches"
},
{
"from": "human",
"value": "var mapServiceURL = \"http://gis.wirapids.org/arcgis/rest/services/DynamicBasemap/MapServer\";\n//var featureServiceURL = \"http://gis.wirapids.org/arcgis/rest/services/DynamicBasema... | javascript | chosen |
[
{
"from": "system",
"value": "Fix crash when no data\n"
},
{
"from": "human",
"value": "import {\n DEFAULT_EMISSIONS_SELECTIONS,\n DATA_SCALE,\n CALCULATION_OPTIONS\n} from 'data/constants';\n\nexport const getGhgEmissionDefaults = (source, meta) => {\n const defaults = DEFAULT_EMISSIONS_SEL... | javascript | chosen |
[
{
"from": "system",
"value": "Change port and do make clean build\n"
},
{
"from": "human",
"value": "const path = require('path');\nconst merge = require('webpack-merge');\nconst exec = require('child_process').exec;\nconst FilewatcherPlugin = require('filewatcher-webpack-plugin');\nconst WatchP... | javascript | chosen |
[
{
"from": "system",
"value": "Use a table for the basket.\n"
},
{
"from": "human",
"value": "export class BasketTemplate {\n static update(render, state, events) {\n /* eslint-disable indent */\n render`\n <h2>Basket</h2>\n\n <input id=\"assetsSearch\" size... | javascript | chosen |
[
{
"from": "system",
"value": "fix(CellArray): Add missing CellArray to main vtk.js\n"
},
{
"from": "human",
"value": "import vtkDataArray from './DataArray';\nimport vtkEndian from './Endian';\nimport vtkLookupTable from './LookupTable';\nimport vtkMath from './Math... | javascript | chosen |
[
{
"from": "system",
"value": "Tidy up array equal function.\n"
},
{
"from": "human",
"value": "export default function arrayEqual (a, b) {\n if (a.length === b.length) {\n return a.every((value, index) => {\n return value === b[index];\n });\n }\n \n return f... | javascript | chosen |
[
{
"from": "system",
"value": "Print and download buttons show up on mobile\n"
},
{
"from": "human",
"value": "import React, { Component } from 'react'\nimport Radium from 'radium'\nimport { Button } from 'components'\nimport mediaQueries from 'styles/common'\n\nconst styles = {\n spacer: {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Work on actually creating record and queueing\n"
},
{
"from": "human",
"value": "'use strict'\n\nlet pipelineRsmq = require('../../queueing/pipeline-queue')\n\nmodule.exports = (pipelineId, input) => {\n\n input = input || []\n\n // TODO: snapshot pipeline configu... | javascript | chosen |
[
{
"from": "system",
"value": "Add tests for node runner\n"
},
{
"from": "human",
"value": "var helper = require(\"../../../test-helper\");\nvar buster = require(\"buster\");\nassert = buster.assert;\nvar run = helper.runTest;\nvar nodeRunner = helper.require(\"cli/runners/node-runner\");\n\nbust... | javascript | chosen |
[
{
"from": "system",
"value": "Exclude optimized folder from optimization :D\n"
},
{
"from": "human",
"value": "({\n appDir: \"../../\",\n dir : \"../../optimized\",\n mainConfigFile : \"config.js\",\n baseUrl: \"static\",\n generateSourceMaps: true,\n removeCombined : true,\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add 'Z' character for Firefox date parsing.\n"
},
{
"from": "human",
"value": "'use strict';\n\nUheerApp\n .controller('ListenController',\n ['$scope', '$stateParams', 'ChannelResource', 'MusicPlayer', 'config',\n function ($scope, $stateParams, ch... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"add all feature flag env variables during deployment\"\n\nThis reverts commit 30054de694abf26b8871ff06421a930012019390.\n\nThis is unnecessary because we’re not setting feature flag env\nvariables on the client side using envify (see previous commit).\n"
},
{
"... | javascript | chosen |
[
{
"from": "system",
"value": "Tweak welcome page to be more helpful\n\nThis adds some instructions and a link to the issue tracker to the front\npage. This is just a stop-gap until things are more fleshed out.\n"
},
{
"from": "human",
"value": "import React from 'react';\n\n/**\n * Wrapper for t... | javascript | chosen |
[
{
"from": "system",
"value": "Fix display name of Suspense\n"
},
{
"from": "human",
"value": "import { Component } from './component';\nimport { createElement } from './create-element';\n\n// having a \"custom class\" here saves 50bytes gzipped\nexport function s(props) {}\ns.prototype = new Com... | javascript | chosen |
[
{
"from": "system",
"value": "Change signed in to true (just for testing)\n\n"
},
{
"from": "human",
"value": "import React from \"react\";\nimport {render} from \"react-dom\";\n//import my components\nimport CalendarContainer from \"../containers/CalendarContainer\";\nimport SourceViewButton fr... | javascript | chosen |
[
{
"from": "system",
"value": "feat: Add a more button to excerpt in blog list\n"
},
{
"from": "human",
"value": "import React from \"react\";\nimport { rhythm } from \"../utils/typography\";\nimport Link from \"gatsby-link\";\n\nexport default ({ data }) => {\n console.log(data);\n return (\n ... | javascript | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.