conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Add playlist.json to grunt linting\n"
},
{
"from": "human",
"value": "module.exports = function( grunt ) {\n // Add the library tasks\n grunt.loadNpmTasks( \"grunt-contrib-jshint\" );\n\n grunt.initConfig({\n pkg: grunt.file.readJSON( \"package.json\" ),\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix custom `med` grid media query to be: 48em === 768px\n"
},
{
"from": "human",
"value": "'use strict';\n\nmodule.exports = function (grunt) {\n grunt.initConfig({\n grid_units: {\n dest : 'build/css/responsive-grid.css',\n options: ... | javascript | chosen |
[
{
"from": "system",
"value": "Convert human player model to ES6 class\n"
},
{
"from": "human",
"value": "import Player from './player';\n\n// A human player that requires user interaction; every human player inherits\n// from the base Player model\nfunction HumanPlayer(args) {\n Player.call(thi... | javascript | chosen |
[
{
"from": "system",
"value": "Validate reverse resolution before displaying the name\n"
},
{
"from": "human",
"value": "import { ens } from '/imports/lib/ethereum';\n\nTemplate['components_address'].onCreated(function() {\n const template = Template.instance();\n template.autorun(() => {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Remove helper and change var to const\n"
},
{
"from": "human",
"value": "Template.newEkloreQuestion.helpers({});\n\nTemplate.newEkloreQuestion.events({\n\t'click #addEkloreQuestion': function(event) {\n\t\tevent.preventDefault();\n\t\tvar ekloreQuestion = {\n\t\t\tt... | javascript | chosen |
[
{
"from": "system",
"value": "Fix re-refetching on re-render due to url as objects not being equal (check within react-fetch-component)\n"
},
{
"from": "human",
"value": "import React, { Component } from 'react';\nimport Fetch from 'react-fetch-component';\nimport buildQuery from 'odata-query';\... | javascript | chosen |
[
{
"from": "system",
"value": "Set base path before capturing context\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar ap = require('ap');\nvar d = require('../decorators');\nvar fs = require('fs');\nvar merge = require('merge');\nvar q = require('q');\nvar cons = require('consolidate');\n... | javascript | chosen |
[
{
"from": "system",
"value": "Add function to NLP namespace\n"
},
{
"from": "human",
"value": "'use strict';\n\n/*\n* When adding modules to the namespace, ensure that they are added in alphabetical order according to module name.\n*/\n\n// MODULES //\n\nvar setReadOnly = require( '@stdlib/utils... | javascript | chosen |
[
{
"from": "system",
"value": "Use for...of loops where appropriate\n"
},
{
"from": "human",
"value": "'use strict';\n\n//\n// --- Aggregator\n//\n\nfunction Aggregator(defaultTags) {\n this.buffer = {};\n this.defaultTags = defaultTags || [];\n}\n\nAggregator.prototype.makeBufferKey = func... | javascript | chosen |
[
{
"from": "system",
"value": "Revert back to putting cursor at the end of selection after insertion\n"
},
{
"from": "human",
"value": "var vscode = require('vscode');\nvar loremIpsum = require('lorem-ipsum');\n\nfunction activate(context) {\n var commands = [\n vscode.commands.registerComman... | javascript | chosen |
[
{
"from": "system",
"value": "Tweak the way namespaces are defined to fix strange instanceof error\n"
},
{
"from": "human",
"value": "/**\n * Event subscription for Microcosm\n */\n\nvar Diode = function (app) {\n var callbacks = []\n\n if (this instanceof Diode) {\n app = this\n } else if... | javascript | chosen |
[
{
"from": "system",
"value": "Add citation and document block extensions to parser\n"
},
{
"from": "human",
"value": "\"use strict\"\n\nmodule.exports = function (opts) {\n var inlinePlugin = require('./md_items_inline')\n , hrefPlugin = require('./md_items_href')\n\n opts = opts || {};\n\n... | javascript | chosen |
[
{
"from": "system",
"value": "Include incursions module in main exports\n"
},
{
"from": "human",
"value": "\n/**\n * Hand-written Promisified wrapper around generated ESI code.\n * This module returns a factory function that takes an optional datasource\n * string and base URL. If any parameter ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix JavaScript to use correct property\n"
},
{
"from": "human",
"value": "var postRequest = new XMLHttpRequest();\npostRequest.onreadystatechange = function () {\n if (postRequest.readyState == 4) {\n if (postRequest.status == 200) {\n document.... | javascript | chosen |
[
{
"from": "system",
"value": "Add activities and tableSettings helpers\n"
},
{
"from": "human",
"value": "Template.allActivities.created = function () {\n // Get reference to template instance\n var instance = this;\n\n // Subscribe to all activities and related collections\n instance.subscr... | javascript | chosen |
[
{
"from": "system",
"value": "Fix erroneous import of gremlin-groovy chain\n"
},
{
"from": "human",
"value": "export { createChainCreator } from './factories';\n\nimport { createChainCreator } from './factories';\nimport { createChain } from './chain';\n\nimport { toGroovy, toBoundGroovy } from ... | javascript | chosen |
[
{
"from": "system",
"value": "Update app factory to return a Koa application.\n"
},
{
"from": "human",
"value": "/**\n * External imports\n */\nimport libdebug from 'debug';\n\n// create debug logger\nconst debug = libdebug('lgho:root');\n\nexport default function create(options = {}) {\n debug... | javascript | chosen |
[
{
"from": "system",
"value": "Disable all timing output in production for now\n"
},
{
"from": "human",
"value": "// These are the primary log levels.\n// Your logger object has a method for each of these.\nvar LOG_LEVELS = {\n\temergency : 7,\n\talert : 6,\n\tcritical : 5,\n\terror : 4,... | javascript | chosen |
[
{
"from": "system",
"value": "Use res.locals.namespace instead of config.app.namespace\n\nconfig.app.namespace may not be defined, but res.locals.namespace will.\n"
},
{
"from": "human",
"value": "var passport = require('passport');\n\nexports.setRoutes = function(app, config) {\n app.get('/l... | javascript | chosen |
[
{
"from": "system",
"value": "Add action to create folder in root\n"
},
{
"from": "human",
"value": "define([\n \"src/tree\"\n], function(Tree) {\n var hr = codebox.require(\"hr/hr\");\n var menu = codebox.require(\"utils/menu\");\n var dialogs = codebox.require(\"utils/dialogs\");\n... | javascript | chosen |
[
{
"from": "system",
"value": "Use a factory instead of a service\n"
},
{
"from": "human",
"value": "app.service('Domains', ['$rootScope', '$q', '$resource', '$log',\n function($rootScope, $q, $resource, $log) {\n var service = {};\n\n return service;\n }\n]);\n\napp.factory('... | javascript | chosen |
[
{
"from": "system",
"value": "Add useCache option to loadModels\n"
},
{
"from": "human",
"value": "import { STATUS } from './cache';\n\n/**\n * Given a list of models, preload them and set them in the cache.\n * TODO: Add support for dependencies. E.g. to know if we can fetch\n * subscription mo... | javascript | chosen |
[
{
"from": "system",
"value": "Fix one more bug with asset picker\n"
},
{
"from": "human",
"value": "import React, { PropTypes, Component } from 'react';\nimport MarketPickerContainer from '../_common/MarketPickerContainer';\nimport InputGroup from '../_common/InputGroup';\n\nexport default class... | javascript | chosen |
[
{
"from": "system",
"value": "Add `children` to the prop types\n"
},
{
"from": "human",
"value": "import React, { PureComponent } from 'react';\nimport PropTypes from 'prop-types';\nimport Box from '../box';\nimport cx from 'classnames';\nimport theme from './theme.css';\n\nclass Container exten... | javascript | chosen |
[
{
"from": "system",
"value": "Allow function to be provided args\n"
},
{
"from": "human",
"value": "import { nextCoord } from './utils';\n\nexport function tile() {\n return pixelToTile({\n x: this.x,\n y: this.y,\n });\n}\n\nexport function nextTile(tile, faceDirection) {\n tile = tile... | javascript | chosen |
[
{
"from": "system",
"value": "Save textarea to local archive\n"
},
{
"from": "human",
"value": "requirejs([\"vendor/mithril\"], function(mIgnore) {\n const root = document.body\n\n const Hello = {\n count: 0,\n increment: function() { Hello.count++ },\n view: function(... | javascript | chosen |
[
{
"from": "system",
"value": "Add 200 response for jira\n"
},
{
"from": "human",
"value": "var http = require('http');\nvar urlparse = require('url').parse;\n\n// simple page that acts as the OAuth endpoint\nhttp.createServer(function(request, response) {\n var url = urlparse(request.url, tru... | javascript | chosen |
[
{
"from": "system",
"value": "Fix \"Back to Menu\" link for Gutenberg drills\n\nFixes #27.\n"
},
{
"from": "human",
"value": "function parseQueryString(query) {\n\tvar vars = {};\n\tquery = query.substring(1); // remove leading '?'\n\tvar pairs = query.replace(/\\+/g,'%20').split('&');\n\tfor(v... | javascript | chosen |
[
{
"from": "system",
"value": "Add test for the alternative --choice options\n"
},
{
"from": "human",
"value": "// Module dependencies\nvar debug = require('debug')('ruche:test:cli:atlernatives');\nvar expect = require('chai').expect;\nvar cli = require('../../lib/cli');\nvar fake = require('./ut... | javascript | chosen |
[
{
"from": "system",
"value": "Use debuglog for test client\n"
},
{
"from": "human",
"value": "'use strict';\n\n// This is a client that produces load on hodor-net-server.\n\nprocess.title = 'nodejs hodor client';\n\nvar net = require('net');\n\nvar BACKOFF = 1000;\n\nfunction next() {\n var c... | javascript | chosen |
[
{
"from": "system",
"value": "Add default values for google strategy\n"
},
{
"from": "human",
"value": "'use strict';\n\nmodule.exports = {\n app: {\n name: \"OpenIt - Control your Raspberry Pi\"\n },\n facebook: {\n clientID: \"APP_ID\",\n clientSecret: \"APP_SECRE... | javascript | chosen |
[
{
"from": "system",
"value": "Set default value of movies\n"
},
{
"from": "human",
"value": "import compression from 'compression';\nimport express from 'express';\nimport proxy from 'http-proxy-middleware';\n\nimport serverRenderer from './renderer';\n\nconst app = express();\napp.use(compressi... | javascript | chosen |
[
{
"from": "system",
"value": "Fix that damn proptype error\n"
},
{
"from": "human",
"value": "import GithubPackage from './github-package';\n\nlet pack;\nconst entry = {\n initialize() {\n pack = new GithubPackage({\n workspace: atom.workspace,\n project: atom.project,\n comma... | javascript | chosen |
[
{
"from": "system",
"value": "Add emailSupport back to the preprint provider model\n"
},
{
"from": "human",
"value": "import DS from 'ember-data';\nimport OsfModel from 'ember-osf/models/osf-model';\n\nexport default OsfModel.extend({\n name: DS.attr('fixstring'),\n description: DS.attr('f... | javascript | chosen |
[
{
"from": "system",
"value": "Simplify and remove unused imports\n"
},
{
"from": "human",
"value": "import { mix, Mixin } from 'mixwith';\n\nimport PixiTrack from './PixiTrack.js';\nimport { colorToHex } from './utils';\n\nimport { RuleMixin } from './RuleMixin';\nimport { HorizontalRuleMixin } ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix name of default querystring option\n"
},
{
"from": "human",
"value": "module.exports = {\n query: {\n convertCase: null,\n repeatArrays: true\n }\n};\n\n"
},
{
"from": "gpt",
"value": "module.exports = {\n query: {\n convertCase: null,\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Switch to .catch since there is no success handler\n\n"
},
{
"from": "human",
"value": "import Templates from \"../Templates.js\";\n\nimport AuthController from \"../controllers/Auth.js\";\n\nimport translations from \"../nls/views/login.js\";\n\nvar LoginView = {\n... | javascript | chosen |
[
{
"from": "system",
"value": "Set observer rootMargin to a percentage since viewport units are invalid.\n"
},
{
"from": "human",
"value": "var observer = lozad(\".lazy\", {\n\trootMargin: \"50vh 50vw\",\n\tthreshold: 0\n});\nobserver.observe();\n"
},
{
"from": "gpt",
"value": "var ob... | javascript | chosen |
[
{
"from": "system",
"value": "Use bobpay.xyz instead of emerald-eon."
},
{
"from": "human",
"value": "self.addEventListener('canmnakepayment', (evt) => {\n evt.respondWith(true);\n});\n\nself.addEventListener('paymentrequest', (evt) => {\n evt.respondWith({\n methodName: 'https://emer... | javascript | chosen |
[
{
"from": "system",
"value": "Fix href macro called without path parameter.\n"
},
{
"from": "human",
"value": "include('ringo/markdown');\nrequire('core/string');\n\nexports.href_macro = function(tag) {\n var req = require('ringo/webapp/env').getRequest();\n return req.rootPath + tag.param... | javascript | chosen |
[
{
"from": "system",
"value": "Use user's entry as `system`.\n"
},
{
"from": "human",
"value": "var cadence = require('cadence')\n\nfunction Prolific (properties) {\n}\n\nProlific.prototype.connect = cadence(function (async, destructible, inbox, outbox) {\n var sink = require('prolific.resolve... | javascript | chosen |
[
{
"from": "system",
"value": "Set test to fs-me and frutiger\n"
},
{
"from": "human",
"value": "container = document.getElementById(\"container\");\nmaskElement = document.getElementById(\"mask\");\nwordElement = document.getElementById(\"word\");\n\nfonts = [\"system\", \"frutiger\"];\npolarity... | javascript | chosen |
[
{
"from": "system",
"value": "Fix problem in help plugin\n"
},
{
"from": "human",
"value": "const Promise = require('bluebird');\n\nconst Plugin = require('../plugin');\n\n\nmodule.exports = Plugin.define('help', ['commands'], {\n defaultConfig: {\n 'commands': ['help'],\n 'pars... | javascript | chosen |
[
{
"from": "system",
"value": "Resolve promises with one argument\n"
},
{
"from": "human",
"value": "import url from \"url\";\nimport mixin from \"merge-descriptors\";\nimport wildcard from \"wildcard-named\";\n\nexport default {\n callbacks : {},\n\n when( uri ) {\n return n... | javascript | chosen |
[
{
"from": "system",
"value": "Return the module setup/teardown promises.\n"
},
{
"from": "human",
"value": "import { module as qunitModule } from 'qunit';\n\nfunction beforeEachCallback(callbacks) {\n if (typeof callbacks !== 'object') { return; }\n if (!callbacks) { return; }\n\n var beforeE... | javascript | chosen |
[
{
"from": "system",
"value": "Reset `module` variable after all tests in module are completed.\n"
},
{
"from": "human",
"value": "import Ember from 'ember';\nimport { module as qunitModule } from 'qunit';\n\nfunction beforeEachCallback(callbacks) {\n if (typeof callbacks !== 'object') { return;... | javascript | chosen |
[
{
"from": "system",
"value": "Enable CDN service in OpenStack.\n"
},
{
"from": "human",
"value": "/*\n * index.js: Top-level include for the OpenStack module.\n *\n * (C) 2013 Nodejitsu Inc.\n *\n */\n\nexports.blockstorage = require('./blockstorage');\nexports.compute = require('./compute');\ne... | javascript | chosen |
[
{
"from": "system",
"value": "Fix socket location with Docker 1.11.1\n"
},
{
"from": "human",
"value": "'use strict';\nvar fs = require('fs');\nvar userHome = require('user-home');\nvar read = require('read-yaml');\nvar Docker = require('dockerode');\nvar fileExists = require('file-e... | javascript | chosen |
[
{
"from": "system",
"value": "Add one more event button\n"
},
{
"from": "human",
"value": "$(document).ready(function(){\n var div = d3.select(\"body\").append(\"div\")\n .attr(\"class\", \"tooltip\")\n .style(\"opacity\", 0);\n\n var interactiveBrowse_humanAndEcosyst... | javascript | chosen |
[
{
"from": "system",
"value": "Replace windows backslashes in template definition when precompiling\n"
},
{
"from": "human",
"value": "'use strict';\n\nfunction precompileGlobal(templates, opts) {\n var out = '', name, template;\n opts = opts || {};\n\n for ( var i = 0; i < templates.len... | javascript | chosen |
[
{
"from": "system",
"value": "Convert SVG attachment into a function\n"
},
{
"from": "human",
"value": "import sprite from '../../dist/svg-sprite.json';\n\nconst document = window.document || null,\n\tglyph_re = new RegExp('-', 'g');\n\nvar GLYPHS = {};\n\nif (document) {\n\t// add svg sprite da... | javascript | chosen |
[
{
"from": "system",
"value": "Add bounding box operator function.\n"
},
{
"from": "human",
"value": "import THREE from 'three';\n\nexport function randomPointOnSphere( vector = new THREE.Vector3() ) {\n const theta = 2 * Math.PI * Math.random();\n const u = 2 * Math.random() - 1;\n const v = ... | javascript | chosen |
[
{
"from": "system",
"value": "Remove prefix \"::ffff:\" for ipv4 addresses\n\n(fixes #909)\n"
},
{
"from": "human",
"value": "const utils = require('../lib/utils')\nconst insecurity = require('../lib/insecurity')\nconst models = require('../models/index')\nconst cache = require('../data/datacach... | javascript | chosen |
[
{
"from": "system",
"value": "Replace hardcoded indicator key with keySize dependent\n"
},
{
"from": "human",
"value": "import CSVReader from 'readers/csv/csv';\nimport { isNumber } from 'base/utils';\n\nconst CSVTimeInColumnsReader = CSVReader.extend({\n\n _name: 'csv-time_in_columns',\n \n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add grunt task for travis CI.\n"
},
{
"from": "human",
"value": "module.exports = function(grunt) {\n grunt.initConfig({\n jshint: {\n options: {\n reporter: require('jshint-stylish')\n },\n all: ['ng-openweathermap.js','gruntfile.js']\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix bug in CardController when cardId is null and add 'isDisabled'\n"
},
{
"from": "human",
"value": "export default class CardController {\n\tconstructor($rootScope, $scope, $log, _, playerModel, cardsApi) {\n\t\t'ngInject';\n\n\t\tthis.$rootScope = $rootScope;\n\t... | javascript | chosen |
[
{
"from": "system",
"value": "Rename vars to be more reflective of their origin\n"
},
{
"from": "human",
"value": "import MssqlSnapshot from './MssqlSnapshot';\n\nexport default (config) => cb => {\n\tconst connection = new MssqlSnapshot(config);\n\treturn connection.connect()\n\t\t.then(() => c... | javascript | chosen |
[
{
"from": "system",
"value": "fix: Call recreate in Array constructor\n"
},
{
"from": "human",
"value": "import Class from '../class';\nimport Matreshka from '../matreshka';\nimport instanceMembers from './_prototype';\nimport matreshkaError from '../_helpers/matreshkaerror';\nimport initMK from... | javascript | chosen |
[
{
"from": "system",
"value": "Add content-type for json responses"
},
{
"from": "human",
"value": "var http = require('http')\n, path = require('path')\n, fs = require('fs')\n, url = require('url')\n, requireAgain = function(event,filename){\n var ext = path.extname(filename)\n , name = path.b... | javascript | chosen |
[
{
"from": "system",
"value": "Switch to SmartIcon in preview\n"
},
{
"from": "human",
"value": "import React, { PropTypes } from 'react'\nimport FileDetails from 'main/components/FileDetails'\nimport styles from './styles.css'\n\nconst Preview = ({ path, name, icon }) => (\n <div>\n {icon &&... | javascript | chosen |
[
{
"from": "system",
"value": "IndexIOS: Apply consistent Code Styles, remove unnecessary Imports\n"
},
{
"from": "human",
"value": "'use strict';\n\nimport React, { Component } from 'react';\nimport {\n AppRegistry,\n} from 'react-native';\n\nimport NavigatorHome from './app/scenes/Home';\nimpo... | javascript | chosen |
[
{
"from": "system",
"value": "Move database to its own folder.\n"
},
{
"from": "human",
"value": "const Datastore = require('nedb')\nconst path = require('path')\n\nconst databasePath = path.join(require('os').homedir(), '.zazu/track.nedb')\nconst database = new Datastore({\n filename: database... | javascript | chosen |
[
{
"from": "system",
"value": "Fix comments, set time format to French standard."
},
{
"from": "human",
"value": "/* Czech translation for the jQuery Timepicker Addon */\n/* Written by Thomas Lété */\n(function($) {\n\t$.timepicker.regional['fr'] = {\n\t\ttimeOnlyTitle: 'Choisir une heure',\n\t\t... | javascript | chosen |
[
{
"from": "system",
"value": "Allow multiple origins, keyed by hash.\n"
},
{
"from": "human",
"value": "define([], function () {\n return {\n // This drive client only works on a specific host address. It is thus\n // useless to you! Ask Alex for the host name if you need to test.\n dr... | javascript | chosen |
[
{
"from": "system",
"value": "Fix an occurence of 'chromium' that didn't get changed to 'chrome'\n\nReview URL: http://codereview.chromium.org/115049\n\ngit-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@15486 0039d316-1c4b-4281-b951-d872f2087c98\n"
},
{
"from": "human",
"value": "find();\r\n... | javascript | chosen |
[
{
"from": "system",
"value": "Make production environment possible via NODE_ENV\n"
},
{
"from": "human",
"value": "let force = require('nforce');\n\nconst username = process.env.SALESFORCE_USERNAME;\nconst password = process.env.SALESFORCE_PASSWORD;\nconst clientId = process.env.SALESFORCE_CLIEN... | javascript | chosen |
[
{
"from": "system",
"value": "Fix import in tests build\n"
},
{
"from": "human",
"value": "import * as dateCompare from \"../../date/compare\";\nimport * as dateFormat from \"../../date/format\";\nimport * as domClasses from \"../../dom/classes\";\nimport * as domCSS from \"../../dom/css\";\nimp... | javascript | chosen |
[
{
"from": "system",
"value": "Add error handling to node server\n"
},
{
"from": "human",
"value": "/*var express = require('express');\nvar app = express();\nvar path = require('path');\n\napp.use(express.static(__dirname)); // Current directory is root\napp.use(express.static(__dirname)); // \... | javascript | chosen |
[
{
"from": "system",
"value": "Enlarge the waiting before start count down\n"
},
{
"from": "human",
"value": "'use strict';\n\n(function () {\n angular\n .module('dailyMummApp')\n .controller('NavbarDirectiveCtrl', NavbarDirectiveController);\n\n NavbarDirectiveController.$inj... | javascript | chosen |
[
{
"from": "system",
"value": "Hide error message in Query Editor Chart\n\nIt is already shown in the results pane, so this information is redundant\n"
},
{
"from": "human",
"value": "import { connect } from 'unistore/react';\nimport SqlpadTauChart from '../common/SqlpadTauChart';\n\nfunction map... | javascript | chosen |
[
{
"from": "system",
"value": "Bump tool due to new example\n"
},
{
"from": "human",
"value": "Package.describe({\n summary: \"The Meteor command-line tool\",\n version: '1.0.34-pre.8'\n});\n\nPackage.includeTool();\n"
},
{
"from": "gpt",
"value": "Package.describe({\n summary: \"T... | javascript | chosen |
[
{
"from": "system",
"value": "Fix marked compatibility on API Doc\n"
},
{
"from": "human",
"value": "/**\n * Display a SwaggerUI documentation\n */\nimport '../less/udata/swagger.less';\n\nimport $ from 'expose?$!expose?jQuery!jquery';\nimport hljs from 'highlight.js';\nimport log from 'logger';... | javascript | chosen |
[
{
"from": "system",
"value": "Fix outdated comment - the timeout is actually 5 secs.\n"
},
{
"from": "human",
"value": "var mdns = require('../');\r\n\r\nvar TIMEOUT = 5000; //5 seconds\r\n\r\n\r\nvar browser = new mdns.createBrowser(); //defaults to mdns.ServiceType.wildcard\r\n//var browser =... | javascript | chosen |
[
{
"from": "system",
"value": "Fix not returning value from deprecated functions in methods module\n"
},
{
"from": "human",
"value": "// Class static helpers.\nimport getHelper from '../class_static_methods/getHelper.js';\nimport getHelpers from '../class_static_methods/getHelpers.js';\nimport ha... | javascript | chosen |
[
{
"from": "system",
"value": "Add shorter description for onTransitionEnd shim\n\nThe bulky preamble preceding the function isn't meant to be copy+pasted,\nbut a description of some sort is still warranted.\n"
},
{
"from": "human",
"value": "/**\n * Mediate those wretched vendor prefixes for onT... | javascript | chosen |
[
{
"from": "system",
"value": "Make filtered search boards more consistent with EE\n"
},
{
"from": "human",
"value": "/* eslint-disable class-methods-use-this */\nimport FilteredSearchContainer from '../filtered_search/container';\n\nexport default class FilteredSearchBoards extends gl.FilteredSe... | javascript | chosen |
[
{
"from": "system",
"value": "Remove unused properties from popover component.\n"
},
{
"from": "human",
"value": "FileDrop.ConfirmPopoverComponent = Ember.Component.extend({\n classNames: ['popover-confirm'],\n\n // TODO: move 'label' and 'filename' somewhere else (separate view)?\n lab... | javascript | chosen |
[
{
"from": "system",
"value": "Fix date issue and remove lower rule from output.\n"
},
{
"from": "human",
"value": "var content = jQuery('#content');\nvar grafs = content.text().split('\\n\\n');\n\nvar cx_date = new Date();\nvar monthNames = [\"Jan. \",\"Feb. \",\"March \",\"April \",\"May \",\"J... | javascript | chosen |
[
{
"from": "system",
"value": "Add sender config file to fix bug\n"
},
{
"from": "human",
"value": "var express = require('express');\nvar bodyParser = require('body-parser');\nvar log4js = require('log4js');\nvar fs = require('fs');\nvar nconf = require('nconf');\nnconf.file('bots', __dirname + ... | javascript | chosen |
[
{
"from": "system",
"value": "Remove some annoying stylelint rules for our recommended config\n"
},
{
"from": "human",
"value": "// @flow\n\nmodule.exports = {\n \"extends\": \"stylelint-config-standard\",\n \"rules\": {\n \"property-no-unknown\": [\n true,\n {\n \"ignorePr... | javascript | chosen |
[
{
"from": "system",
"value": "Remove describe only test switch\n"
},
{
"from": "human",
"value": "/* jshint mocha: true */\n'use strict';\n\nconst assert = require('assert');\nconst gitter = require('../lib/gitter');\nconst jsonist = require('jsonist');\n\nlet nodes;\nlet post = jsonist.post;\n\... | javascript | chosen |
[
{
"from": "system",
"value": "Add var for title element; add check for null el in cleanMQstr; add check for title not null when setting allBP;\n"
},
{
"from": "human",
"value": "Unison = (function() {\n\n \"use strict\";\n\n // get breakpoint object\n var getBreakpoints = function(allBreakpoi... | javascript | chosen |
[
{
"from": "system",
"value": "Fix test for package versions of generated project\n"
},
{
"from": "human",
"value": "if(!process.env['TEST_VERSIONS'] || process.env['TEST_VERSIONS'] != 'generated_project') {\n return;\n}\n\nvar fs = require('fs');\nvar ejs = require('ejs');\n\nvar options = {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add blocks the *correct* way\n"
},
{
"from": "human",
"value": "(function(ext) {\n // Cleanup function when the extension is unloaded\n ext._shutdown = function() {};\n\n // Status reporting code\n // Use this to report missing hardware, plugin or unsupp... | javascript | chosen |
[
{
"from": "system",
"value": "Fix getting user claims in lambda.\n"
},
{
"from": "human",
"value": "'use strict'\n\nimport { graphql } from 'graphql'\nimport { Schema } from './data/schema'\n\nconst createResponse = function (statusCode, body) {\n return {\n statusCode: statusCode,\n head... | javascript | chosen |
[
{
"from": "system",
"value": "Set tunnelTimeout for Saucelabs to a value that would allow to build PR\n"
},
{
"from": "human",
"value": "var browsers = [{\n browserName: 'chrome',\n version: '27',\n platform: 'Windows 8'\n },{\n browserName: 'firefox',\n version: '21',\n platf... | javascript | chosen |
[
{
"from": "system",
"value": "Add new Flat UI Pro jquery.ui.button dependency and default bootstrap-on-rails requires\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/C... | javascript | chosen |
[
{
"from": "system",
"value": "Make it harder t (longwinded) to crack for the smart kids\n"
},
{
"from": "human",
"value": "const prompt = require('prompt')\n\nconst sha1 = require('sha1')\n\nprompt.start()\n\nprompt.get(['username', 'level'], function(err, result) {\n\tif(err) throw new Error(er... | javascript | chosen |
[
{
"from": "system",
"value": "Add test for creating a master task in gulp to run subtasks in sequence\n"
},
{
"from": "human",
"value": "var _ = require( 'lodash' );\nvar should = require( 'should' );\nvar sinon = require( 'sinon' );\nvar pequire = require( 'proxyquire' ).noCallThru();\... | javascript | chosen |
[
{
"from": "system",
"value": "Add example for 'styles' prop\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport Notification from 'notification';\n\nvar View = React.createClass({\n\n handleShow() {\n console.log('Notification hidden:', false);\n this.refs.notification.s... | javascript | chosen |
[
{
"from": "system",
"value": "Resolve test modules as local modules.\n"
},
{
"from": "human",
"value": "define(['test.events',\n 'test.events.emitter'],\nfunction() {\n return {}\n});\n"
},
{
"from": "gpt",
"value": "define(['./test.events',\n './test.events.emitter'],... | javascript | chosen |
[
{
"from": "system",
"value": "Declare netvis instance globally to access from console\n"
},
{
"from": "human",
"value": "$(function() {\n\n var Settings = {},\n demo = new NetVis(Settings),\n SrcURL=\"lotr.netvis\";\n\n $('#history').rangeslider();\n\n\n $(\"#reset-positions\").click(de... | javascript | chosen |
[
{
"from": "system",
"value": "Add test for check MM_PORT enviroment variable\n"
},
{
"from": "human",
"value": "const globalSetup = require(\"./global-setup\");\nconst app = globalSetup.app;\nconst request = require(\"request\");\nconst chai = require(\"chai\");\nconst expect = chai.expect;\n\n\... | javascript | chosen |
[
{
"from": "system",
"value": "Clear document body between tests"
},
{
"from": "human",
"value": "/* global beforeEach, afterEach */\n\nimport chai from 'chai'\nimport sinon from 'sinon'\nimport sinonChai from 'sinon-chai'\n\nimport {setScheduler} from '../../src/scheduler-assignment'\nimport Tes... | javascript | chosen |
[
{
"from": "system",
"value": "Update variable name and timestamp format\n"
},
{
"from": "human",
"value": "var uuid = require(\"uuid\");\nvar Dialog = require(\"../dialog\");\n\nmodule.exports = function(apiToken, botId) {\n this.apiToken = apiToken;\n this.botId = botId;\n\n this.incoming = ... | javascript | chosen |
[
{
"from": "system",
"value": "Remove most routes and get app to build\n"
},
{
"from": "human",
"value": "import React from 'react'\nimport {connect} from 'react-redux'\nimport {compose, lifecycle} from 'recompose'\nimport {Route, Switch} from \"react-router\"\nimport {ConnectedRouter} from \"rea... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"set only forEach globally for Array.prototyp if not exists (ie8 fallback)\"\n\nThis reverts commit 6c9d18931103e20f5be97250352fc14fd678d990.\n\nReason is that admin is broken with this commit (no menu is shown).\n"
},
{
"from": "human",
"value": "var _ = re... | javascript | chosen |
[
{
"from": "system",
"value": "Add basic js file for dev-section\n"
},
{
"from": "human",
"value": "import Vue from 'vue'\n\nVue.directive('fixed', {\n bind: function () {\n this.el.className += \" fixedsticky\";\n this.el.css()\n }\n});\n\nvar vm = new Vue({\n el: 'body'\n... | javascript | chosen |
[
{
"from": "system",
"value": "Replace let with var to fix travis build\n"
},
{
"from": "human",
"value": "const spawn = require('cross-spawn');\n\nlet args = process.argv.slice(2);\n\nconst server = args.indexOf('--dev') > -1\n ? null\n : require('../../examples/server');\n\nif (args.indexOf('... | javascript | chosen |
[
{
"from": "system",
"value": "Relocate code related to closing browser\n"
},
{
"from": "human",
"value": "import puppeteer from 'puppeteer';\nimport { toMatchImageSnapshot } from 'jest-image-snapshot';\n\nimport IMAGE_SNAPSHOT_CONFIG from 'constants/image-diff';\n\nexpect.extend({ toMatchImageSn... | javascript | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.