conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Add key prop to column containers\n"
},
{
"from": "human",
"value": "import React from \"react/addons\";\nimport times from \"lodash.times\";\n\nconst BATCH_SIZE = 2;\n\nclass Columns extends React.Component {\n constructor(props) {\n super(props);\n }\n\n con... | javascript | chosen |
[
{
"from": "system",
"value": "Fix JS validation. No idea why it doesn't work the other way. Bleh.\n"
},
{
"from": "human",
"value": "(function($) {\n\n$(document).ready(function() {\n $('.player-link').click(function(e) {\n $.get($(this).attr('href'));\n e.preventDefault();\n });\n\n $(... | javascript | chosen |
[
{
"from": "system",
"value": "Add real checker to `can` method.\n"
},
{
"from": "human",
"value": "function Context( options ) {\n var self = this;\n \n self.extends = {\n resources: {\n 'Person': {\n plugin: function(schema, options) {\n schema.methods.can = self.can;... | javascript | chosen |
[
{
"from": "system",
"value": "Fix test (promise was not being resolved the other way)\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst chai = require('chai');\nconst expect = chai.expect;\nchai.use(require('chai-as-promised'));\n\nvar stats = require('../../models').Stats;\n\ndescribe('... | javascript | chosen |
[
{
"from": "system",
"value": "Set `contentTypeJson` default to true\n"
},
{
"from": "human",
"value": "module.exports = {\n // Prefix identifier that will be used inside storing and loading\n id: 'gjs-',\n\n // Enable/Disable autosaving\n autosave: 1,\n\n // Indicates if load data inside ed... | javascript | chosen |
[
{
"from": "system",
"value": "Fix url matching to id.\n\nSome Alza urls have a different shape. Change the Regex to take that into an\naccount.\n"
},
{
"from": "human",
"value": "import _request from 'request-promise'\n\nconst jar = _request.jar()\nconst request = _request.defaults({\n headers:... | javascript | chosen |
[
{
"from": "system",
"value": "Remove bottom margins for `Message.Content` [skip ci]\n"
},
{
"from": "human",
"value": "import baseStyles from '../../../styles/resets/baseStyles.css'\nimport { BEM } from '../../../utilities/classNames'\n\nconst bem = BEM('.c-MessageContent')\n\nconst css = `\n $... | javascript | chosen |
[
{
"from": "system",
"value": "Set option to produce 'div's instead of 'p's\n\nSummary:\nFixes issue with 78eb5ef0, I neglected change the setting.\n\nTest Plan:\nOpen a perseus exercise, see questions are formatted with 'div's instead\nof 'p's.\n\nAuditors: alpert, jack\n"
},
{
"from": "human",
... | javascript | chosen |
[
{
"from": "system",
"value": "Simplify choosing a letter (and also about twice as fast)\n"
},
{
"from": "human",
"value": "(function() {\n\t/*\n\t * Generate a random token.\n\t */\n\n\tfunction create(len, alphabet) {\n\t\tvar result = '';\n\n\t\tif (!alphabet) alphabet = 'abcdefghijklmnopqrstu... | javascript | chosen |
[
{
"from": "system",
"value": "Update documentation for cancelling portin\n"
},
{
"from": "human",
"value": "\"use strict\";\n\nvar Client = require(\"./client\");\nvar PORTIN_PATH = \"portIns\";\n\nmodule.exports = {\n\n\tcancel : function (client, portInsId, callback) {\n\t\tif (arguments.lengt... | javascript | chosen |
[
{
"from": "system",
"value": "refactor: Set options.agent = false by default\n"
},
{
"from": "human",
"value": "var http = require('http');\r\nvar https = require('https');\r\nvar extend = require('util')._extend;\r\nvar parseUrl = require('url').parse;\r\n\r\nvar TIMEOUT = 5000;\r\n\r\nfunction... | javascript | chosen |
[
{
"from": "system",
"value": "Change me endpoint from post to get\n"
},
{
"from": "human",
"value": "var express = require('express');\nvar database = require('../config/database');\nvar UserModel = database.import(\"../models/UserModel\");\nvar auth = require('../config/auth')();\n\nUserModel.s... | javascript | chosen |
[
{
"from": "system",
"value": "Delete initial state that was just for development purposes\n"
},
{
"from": "human",
"value": "import React from 'react'\nimport ReactDOM from 'react-dom'\nimport { createStore } from 'redux'\nimport { Provider } from 'react-redux'\n\nimport { MainReducer } from './... | javascript | chosen |
[
{
"from": "system",
"value": "Fix calling sendError on wrong object\n\nFixes the sentry plugin middleware calling the `sendError` function on the wrong object (sentry SDK instead of the sentry service)"
},
{
"from": "human",
"value": "'use strict';\n\n/**\n * Programmatic sentry middleware. We d... | javascript | chosen |
[
{
"from": "system",
"value": "Allow test database marking to work with any db name ending in \"test\".\n"
},
{
"from": "human",
"value": "function() {\n var pathname = window.location.pathname;\n if (pathname.indexOf(\"/test/_design\") != -1) {\n var header = $(\"#header\");\n header.css... | javascript | chosen |
[
{
"from": "system",
"value": "Update analysis definitions on update\n"
},
{
"from": "human",
"value": "var _ = require('underscore');\nvar Backbone = require('backbone');\nvar syncAbort = require('./backbone/sync-abort');\n\n/**\n * Analysis definition model.\n * Points to a node that is the hea... | javascript | chosen |
[
{
"from": "system",
"value": "Use a single space in xRegExp wrapper\n\nRemoving all whitespace here is dangerous and could cause bugs if it\nends up removing spaces between a numbered backreference (e.g. \\1) and a\nliteral number (e.g. 1). To make this safer, I am replacing it with a\nsingle space, which w... | javascript | chosen |
[
{
"from": "system",
"value": "Update description of throw annotation\n"
},
{
"from": "human",
"value": "'use strict';\n\n// MODULES //\n\nvar factory = require( './factory.js' );\n\n\n// MAIN //\n\n/**\n* Executes functions in series, passing the results of one function as arguments to the next ... | javascript | chosen |
[
{
"from": "system",
"value": "Update header comment format to keep it on minify\n\nSome minifier keep header comment over its format.\n\n1. YUI Compressor\nIt keeps the header comments beggining with `/*!`\n* http://yui.github.io/yuicompressor/css.html#special-comments\n\n2. Closure compiler\nIt keeps the h... | javascript | chosen |
[
{
"from": "system",
"value": "Remove debug output on default\n"
},
{
"from": "human",
"value": "//= require diaspora_jsxc\n\n// initialize jsxc xmpp client\n$(document).ready(function() {\n if (app.currentUser.authenticated()) {\n $.post('api/v1/tokens', null, function(data) {\n if (jsx... | javascript | chosen |
[
{
"from": "system",
"value": "Fix property declaration from constructor, to constructor:\n"
},
{
"from": "human",
"value": "/**\n * @license\n * Copyright (c) 2016 The Polymer Project Authors. All rights reserved.\n * This code may only be used under the BSD style license found at http://polymer... | javascript | chosen |
[
{
"from": "system",
"value": "Fix apiCall params not being set to object\n"
},
{
"from": "human",
"value": "// BASIC JSON RESPONSE EXAMPLE\n\n// FEATURES DEMONSTRATED:\n// \"magic\" adding :id route wildcard to API path ending in / (common REST paradigm)\n// adding API params at request time\n//... | javascript | chosen |
[
{
"from": "system",
"value": "Use namespace, create \"anchor\" circles on click.\n"
},
{
"from": "human",
"value": "var stage;\n\nfunction init()\n{\n\tvar width = window.innerWidth * 0.9;\n\tvar height = window.innerHeight * 0.9;\n\n\tstage = new Konva.Stage({\n\t\tcontainer: 'container',\n\t\t... | javascript | chosen |
[
{
"from": "system",
"value": "Fix an error spotted by jshint\n"
},
{
"from": "human",
"value": "define(['annotate.js', 'is-js'], function(annotate, is) {\n function gte(a, b) {\n return a <= b;\n }\n\n return annotate('gte', 'Greater or equals than')\n .on(is.number, is.nu... | javascript | chosen |
[
{
"from": "system",
"value": "Update the Roll notation functions implementation\n\nAdded `Roll.toSimpleNotation()` implementation.\nFixed range value in `Roll.toClassicNotation()`.\n"
},
{
"from": "human",
"value": "/*\n{count}d{dice}{modifier} ({bottom},{top})\n*/\nfunction Roll( dice = 20, cou... | javascript | chosen |
[
{
"from": "system",
"value": "Add help for the rm command\n"
},
{
"from": "human",
"value": "\nimport yargs from 'yargs'\nimport log from './commands/tick-log'\nimport list from './commands/tick-list'\nimport rm from './commands/tick-rm'\n\nlet master = yargs\n.usage('tick <command>')\n.co... | javascript | chosen |
[
{
"from": "system",
"value": "Attach the current timestamp to each RTI model\n"
},
{
"from": "human",
"value": "define(['MoxieModel', 'underscore', 'moxie.conf'], function(MoxieModel, _, conf) {\n var testDelayed = function(estTime) {\n return !((estTime.indexOf('On time') === 0) || (e... | javascript | chosen |
[
{
"from": "system",
"value": "Remove ES6 template strings for node 0.10+ compatibility\n"
},
{
"from": "human",
"value": "var assert = require('chai').assert;\nvar fun = require('../lib/utils').stripStackOverflow;\n\ndescribe('stripStackOverflow', function() {\n it('should not strip -f parame... | javascript | chosen |
[
{
"from": "system",
"value": "Add reference to gl-matrix js\n\nSeems that our ogs library is dependent on this for vec3\n"
},
{
"from": "human",
"value": "/**\n * @module ogs.srv\n */\n\n/** Define ogs.srv namespace */\nvar srvModule = ogs.namespace(\"srv\");\n"
},
{
"from": "gpt",
"... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"Replace browser history for detail page when movie is deleted\"\n\nThis reverts commit 3d1c57b5a9830682e8a3c12cc46db64f83848679.\n"
},
{
"from": "human",
"value": "angular.module('jamm')\n.controller('MovieDetailController', function ($scope, MovieService, ... | javascript | chosen |
[
{
"from": "system",
"value": "Add more logging as default in production\n"
},
{
"from": "human",
"value": "'use strict';\n\n// Exports\nexport default function defaultConfig(env = 'development') {\n return {\n env: env,\n loggers: [\n {\n name: 'stdout'... | javascript | chosen |
[
{
"from": "system",
"value": "Increase GPS query interval from 100ms to 300ms (web)\n"
},
{
"from": "human",
"value": "import { decorate, observable, action } from 'mobx';\n\nimport { opts as mapOpts } from 'views/Map/Map.jsx';\n\nclass StoreCoords {\n\t\n\tlat = mapOpts.startLat\n\tlng = mapOpt... | javascript | chosen |
[
{
"from": "system",
"value": "Add methods checkMap and writeNewWorldMap\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar r = require('rethinkdb');\n\n\nexport class LabyrinthDB {\n constructor (conn, dbName) {\n this.conn = conn;\n this.dbName = dbName;\n\n this.tableList = ['ch... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"Broken because of different hudson config -- I'll sort out tomorrow.\"\n\nThis reverts commit 55542d31ace1c4301be8bf596e3bee17e30e64f4.\n"
},
{
"from": "human",
"value": "/*\nvar tmp = openFile('/tmp');\nfor each (var file in tmp.listFiles()){\n if(file.... | javascript | chosen |
[
{
"from": "system",
"value": "Add capability to extend nodemon options\n"
},
{
"from": "human",
"value": "\"use strict\";\n\nconst Task = require('../Task'),\n gulp = require('gulp'),\n path = require('path'),\n nodemon = require('gulp-nodemon'),\n ProjectType = require('../../Projec... | javascript | chosen |
[
{
"from": "system",
"value": "Fix UMD build for webpack 2\n\nCloses #4\n"
},
{
"from": "human",
"value": "import path from 'path';\n\nconst projectRoot = path.join(__dirname, '..');\n\nexport default {\n cache: true,\n entry: [\n path.join(projectRoot, 'src', 'hibp.js'),\n ],\n output: {\... | javascript | chosen |
[
{
"from": "system",
"value": "Make the embed widgets command return the full widget state schema (with version number), instead of just the widget state."
},
{
"from": "human",
"value": "// Copyright (c) Jupyter Development Team.\n// Distributed under the terms of the Modified BSD License.\n\n\"... | javascript | chosen |
[
{
"from": "system",
"value": "fix(templates): Fix a wrong check of already existing plugin"
},
{
"from": "human",
"value": "#!/usr/bin/env node\n\n/**\n * Push plugins to cordovaPlugins array after_plugin_add\n */\nvar fs = require('fs');\nvar packageJSON = require('../../package.json');\n\npack... | javascript | chosen |
[
{
"from": "system",
"value": "Add onClose handler to ui-test\n"
},
{
"from": "human",
"value": "import React from 'react'\nimport { storiesOf } from '@kadira/storybook'\nimport Alert from 'fyndiq-component-alert'\n\nstoriesOf('Alert', module)\n .addWithInfo('default', () => (\n <Alert>Your m... | javascript | chosen |
[
{
"from": "system",
"value": "Add link to administration section\n"
},
{
"from": "human",
"value": "import Ember from 'ember';\n\nimport HasItemLists from 'flarum/mixins/has-item-lists';\nimport DropdownButton from 'flarum/components/ui/dropdown-button';\nimport NavItem from 'flarum/components/u... | javascript | chosen |
[
{
"from": "system",
"value": "Build and play a song when we get data from the server\n"
},
{
"from": "human",
"value": "// Example server call: http://172.81.178.14:8080/na/rndminternetman/\n\nfunction main() {\n // Get the standardized summoner name, which has spaces removed and is lowercase... | javascript | chosen |
[
{
"from": "system",
"value": "Fix for empty strings getting parsed as undefined for rawEnv\n"
},
{
"from": "human",
"value": "import R from 'ramda'\nimport {inheritedVal} from './inheritance'\n\nconst\n getMetaToValFn = (envsWithMeta)=> (meta, entryKey)=>{\n return meta.inherits ?\n inh... | javascript | chosen |
[
{
"from": "system",
"value": "Change to make facebookId BIGINT for compatibility\n"
},
{
"from": "human",
"value": "\"use strict\";\n\nmodule.exports = function(sequelize, DataTypes) {\n var User = sequelize.define('User', {\n id: { type: DataTypes.INTEGER, primaryKey: true, autoI... | javascript | chosen |
[
{
"from": "system",
"value": "Remove call to async callback.\n"
},
{
"from": "human",
"value": "import {\n goToUrl,\n getElementText,\n getPageHTML,\n getPageTitle,\n findPageElements\n} from \"../helper\";\n\ndescribe(\"eQ Author\", () => {\n describe(\"navigate to the Homepage\", () => {... | javascript | chosen |
[
{
"from": "system",
"value": ":art: Split test into setup and assertion\n"
},
{
"from": "human",
"value": "// Copyright (c) 2017 The Regents of the University of Michigan.\n// All Rights Reserved. Licensed according to the terms of the Revised\n// BSD License. See LICENSE.txt for details.\n\ncon... | javascript | chosen |
[
{
"from": "system",
"value": "Improve title design of foolproof dialog\n"
},
{
"from": "human",
"value": "import React, { PropTypes } from 'react'\nimport classnames from 'classnames'\nimport classes from './FoolproofDialog.scss'\nimport Button from 'components/Button'\n\nclass FoolproofDialog e... | javascript | chosen |
[
{
"from": "system",
"value": "Add unit test for checking the default behavior.\n\n- IE does not follow specs when clicking a checkbox that is in an indeterminate state\n"
},
{
"from": "human",
"value": "\n$(function () {\n \n 'use strict';\n \n QUnit.module('indeterminable.js', {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Build to dist folder again.\n"
},
{
"from": "human",
"value": "'use strict';\n\n/**\n * This file contains the variables used in other gulp files\n * which defines tasks\n * By design, we only put there very generic config values\n * which are used in several pl... | javascript | chosen |
[
{
"from": "system",
"value": "Add redirect from www.odoruinu.net to www.craftz.dog\n"
},
{
"from": "human",
"value": "/**\n * React Static Boilerplate\n * https://github.com/koistya/react-static-boilerplate\n * Copyright (c) Konstantin Tarkus (@koistya) | MIT license\n */\n\nimport './index.scss... | javascript | chosen |
[
{
"from": "system",
"value": "Add some air to the code\n"
},
{
"from": "human",
"value": "angular.module('ngJustGage', [])\n .directive('justGage', ['$timeout', function ($timeout) {\n return {\n restrict: 'EA',\n scope: {\n id: '@',\n class: '@',\n min: '=',\n... | javascript | chosen |
[
{
"from": "system",
"value": "[TASK] Copy the git hooks only if 'grunt init' is running in 'packageisDefault' mode\n"
},
{
"from": "human",
"value": "/**\n * Initialize task.\n * Replaces all t3b_template strings and other meta-data with the data\n * specified inside the 'package.json'. (Should ... | javascript | chosen |
[
{
"from": "system",
"value": "Add prefix to env variables\n"
},
{
"from": "human",
"value": "module.exports = {\n\n public_host_name: 'http://watchmen.letsnode.com/', // required for OAuth dance\n\n auth: {\n GOOGLE_CLIENT_ID: process.env.GOOGLE_CLIENT_ID || '<Create credentials from Google... | javascript | chosen |
[
{
"from": "system",
"value": "Fix for when matching index is 0.\n"
},
{
"from": "human",
"value": "\"use strict\";\nvar immutable = require(\"seamless-immutable\");\n\nfunction concatArrayMerger(current, other) {\n if (!(current instanceof Array) || !(other instanceof Array)) return;\n\n retur... | javascript | chosen |
[
{
"from": "system",
"value": "Select the chunk content on edit.\n"
},
{
"from": "human",
"value": "(function($) {\n $(document).ready(function(){\n $('.edit_chunk').on(\n 'click',\n 'a',\n function() {\n var key = $(this).parent().data('k... | javascript | chosen |
[
{
"from": "system",
"value": "Add `/dashboard` route and make it default\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport { Router, Route } from 'react-router';\n\nimport App from './components/App';\n\nimport Dashboard from './components/Dashboard';\n\nimport Product from '... | javascript | chosen |
[
{
"from": "system",
"value": "Fix path for scribing import\n\nCauses errors for Windows when running webpack because it is case sensitive"
},
{
"from": "human",
"value": "import AchievementsAPI from './Achievements';\nimport AssessmentAPI from './Assessment';\nimport CommentsAPI from './Comments... | javascript | chosen |
[
{
"from": "system",
"value": "Embed translations in client for production\n"
},
{
"from": "human",
"value": "var hackProviders = {}\n\nrequire('../app')\n .config(/* @ngInject */function (nyaBsConfigProvider) {\n // dummy hack to allow runtime update of the translation matrix\n hackProvid... | javascript | chosen |
[
{
"from": "system",
"value": "Fix unbounded long lines breaking log send for gui\n"
},
{
"from": "human",
"value": "// @flow\nimport {forwardLogs, enableActionLogging, immediateStateLogging} from '../local-debug'\nimport {noPayloadTransformer} from '../constants/types/flux'\nimport {stateLogTran... | javascript | chosen |
[
{
"from": "system",
"value": "Fix faulty writeFileSync logic for creating a new settings.json file\n\nJSON keys must be wrapped in double-quotes\n"
},
{
"from": "human",
"value": "const fs = require('fs-extra'),\n Path = require('path');\n\nvar _settings = { // Private storage of settings\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add Object.get for safely traversing keypaths\n"
},
{
"from": "human",
"value": "import * as changeCase from 'change-case'\nimport pluralize from 'pluralize'\n\nexport default {\n\t...changeCase,\n\tpluralize,\n\tresourceize: function(string) {\n\t\treturn pluralize... | javascript | chosen |
[
{
"from": "system",
"value": "Change location to reset directory we store output\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst bodyParser = require('body-parser').json({ limit: '50mb' });\nconst path = require('path');\nconst date = require('date-and-time');\nconst { ensureDirSync, w... | javascript | chosen |
[
{
"from": "system",
"value": "Fix the default size for emojis\n\nThis is a left over from the default props eslint update.\n\n[Finishes: #137727295](https://www.pivotaltracker.com/story/show/137727295)\n"
},
{
"from": "human",
"value": "import React, { PropTypes } from 'react'\nimport classNames... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"test: add rewrite to static file\"\n\nThis reverts commit 28800a47f4e954ef35e4e336fb2f682e19ef9899.\n"
},
{
"from": "human",
"value": "/* eslint-disable @typescript-eslint/no-unsafe-return */\n/* eslint-disable @typescript-eslint/no-var-requires */\n/* esli... | javascript | chosen |
[
{
"from": "system",
"value": "Replace WL.Server with MFP.Server in JavaScriptSQL adapter\n"
},
{
"from": "human",
"value": "/**\n* Copyright 2016 IBM Corp.\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.\... | javascript | chosen |
[
{
"from": "system",
"value": "Add missing number case for traverser\n"
},
{
"from": "human",
"value": "/**\n * Traverser for Intl AST.\n *\n * @param {object} ast Intl AST (from intl-messageformat-parser)\n * @param {object} visitor Visitor object for traversal\n */\nexport const traverser = (as... | javascript | chosen |
[
{
"from": "system",
"value": "Add timestamp to touch positions\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar Feature = require('./Feature');\n\n/**\n * @constructor\n * @extends Feature\n */\nvar TouchScrolling = Feature.extend('TouchScrolling', {\n handleTouchStart: function(grid, ... | javascript | chosen |
[
{
"from": "system",
"value": "Change android tests from selendroid → appium\n"
},
{
"from": "human",
"value": "// Test runner\nvar runTests = require('./affixing-header-specs'),\n browsers = [\n {browserName: 'chrome'},\n {browserName: 'firefox'}\n ];\n\n// var browserConfi... | javascript | chosen |
[
{
"from": "system",
"value": "Set spectrum color pickers to rgb values instead of hex\n"
},
{
"from": "human",
"value": "var preset1 = function(){\n infinite = false;\n clearInterval(infiniteLoop)\n\n noGravity = true;\n gravity = 0;\n $(\".disable-gravity\").prop(\"checked\", false)\n \n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add comments explaining entry file containing the routing\n"
},
{
"from": "human",
"value": "/* Routing Urls */\n\nimport React from 'react'\nimport { render } from 'react-dom'\nimport { HashRouter, Match } from 'react-router'\nimport Landing from './7B'\nimport '..... | javascript | chosen |
[
{
"from": "system",
"value": "Improve build performance in CI\n"
},
{
"from": "human",
"value": "const {\n override,\n useEslintRc,\n disableEsLint,\n} = require('customize-cra');\n\nmodule.exports = override(\n process.env.DISABLE_AUTOMATIC_ESLINT ? disableEsLint() : undefined,\n // addBab... | javascript | chosen |
[
{
"from": "system",
"value": "Implement Hadoop streaming mapper mode\n"
},
{
"from": "human",
"value": "// TODO\n\nvar GlueMapReduce = ( function () {\n\treturn function () {\n\t\tvar self = this;\n\n\t\tself.mapper = function () {};\n\n\t\tself.reducer = function () {};\n\n\t\tself.run = functi... | javascript | chosen |
[
{
"from": "system",
"value": "Make menu item parents expand based on their children's activeness\n"
},
{
"from": "human",
"value": "// This is a manifest file that'll be compiled into application.js, which will include all the files\r\n// listed below.\r\n//\r\n// Any JavaScript/Coffee file with... | javascript | chosen |
[
{
"from": "system",
"value": "Implement numbers divisible by 3\n"
},
{
"from": "human",
"value": "var pingPongOutput = function(inputNumber) {\n return inputNumber;\n};\n"
},
{
"from": "gpt",
"value": "var pingPongOutput = function(inputNumber) {\n if(inputNumber % 3 === 0) {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "feat(CLI): Add short parameters (-m and -e)\n"
},
{
"from": "human",
"value": "#! /usr/bin/env node\n\n'use strict'\n\nconst commander = require('commander')\nconst program = require('../lib/program')\nconst pkg = require('../package.json')\n\ncommander\n .version(... | javascript | chosen |
[
{
"from": "system",
"value": "Add a guard to better express the intention\n\nAlso added a name to the handler to avoid anonymous function in\nstack traces.\n"
},
{
"from": "human",
"value": "import Em from 'ember';\nimport HrefTo from 'ember-href-to/href-to';\n\nlet hrefToClickHandler;\nfunction... | javascript | chosen |
[
{
"from": "system",
"value": "Update tile culling to factor in the new scale\n"
},
{
"from": "human",
"value": "var CullTiles = function (layer, camera, outputArray)\n{\n if (outputArray === undefined) { outputArray = []; }\n\n outputArray.length = 0;\n\n var tilemapLayer = layer.tilema... | javascript | chosen |
[
{
"from": "system",
"value": "Add option to keep app on top\n"
},
{
"from": "human",
"value": "const app = require('app'),\n BrowserWindow = require('browser-window');\n\nconst start = function() {\n const winOptions = {\n width: 850,\n height: 600,\n center: true,\n icon: './asset... | javascript | chosen |
[
{
"from": "system",
"value": "Add plugin name and help intructions to warning message\n"
},
{
"from": "human",
"value": "/*\n\tMIT License http://www.opensource.org/licenses/mit-license.php\n\tAuthors Simen Brekken @simenbrekken, Einar Löve @einarlove\n*/\nvar DefinePlugin = require(\"./DefinePl... | javascript | chosen |
[
{
"from": "system",
"value": "Change the port to 80 for javascript\n"
},
{
"from": "human",
"value": "\n\nvar GlobalVar = {\n hostURL: \"d6xhjv1s.d1.comp.nus.edu.sg\",\n port : 1626\n}\n"
},
{
"from": "gpt",
"value": "\n\nvar GlobalVar = {\n hostURL: \"d6xhjv1s.d1.comp.nus.e... | javascript | chosen |
[
{
"from": "system",
"value": "Fix variable access for less-loader\n"
},
{
"from": "human",
"value": "const ExtractTextPlugin = require('extract-text-webpack-plugin')\nconst { buildDir } = require('../env')\n\nconst extractText = new ExtractTextPlugin({\n filename: '[contenthash].css'\n})\n\next... | javascript | chosen |
[
{
"from": "system",
"value": "Fix for the goto command actions\n"
},
{
"from": "human",
"value": "$(document).ready(function() {\n\n var publishCommand = function(notificationName) {\n return function(tokens) { $.publish(notificationName); };\n }\n\n window.TerminalCommands = {\n next :... | javascript | chosen |
[
{
"from": "system",
"value": "Add net image and interface options to Ubuntu task\n"
},
{
"from": "human",
"value": "// Copyright 2015, EMC, Inc.\n\n'use strict';\n\nmodule.exports = {\n friendlyName: 'Install Ubuntu',\n injectableName: 'Task.Os.Install.Ubuntu',\n implementsTask: 'Task.B... | javascript | chosen |
[
{
"from": "system",
"value": "Fix invalid end point projects/p/tiny-project/iterations/i/1/r/hello\n"
},
{
"from": "human",
"value": "var config = require('./js/configure-server')\n server = config.server,\n getJSON = require('./js/get-json')(__dirname + '/mocks');\n\n\nvar endpoints = [\n... | javascript | chosen |
[
{
"from": "system",
"value": "Fix the ContentType for JSON pushes\n"
},
{
"from": "human",
"value": "var Readable = require(\"stream\").Readable;\n\nmodule.exports = function(url, options, data, res){\n\tif(res.push) {\n\t\tvar opts = options || {\n\t\t\tstatus: 200,\n\t\t\tmethod: \"GET\",\n\t\... | javascript | chosen |
[
{
"from": "system",
"value": "IMCMS-290: Add a \"pin\" icon to imCMS's panel:\n- Extended panel state.\n"
},
{
"from": "human",
"value": "Imcms.define(\"imcms-admin-panel-state\", [\"jquery\"], function ($) {\n\n var PanelState = function () {\n this.isSpecialPanelHidingPrevented = fal... | javascript | chosen |
[
{
"from": "system",
"value": "Add error log on bundling error\n"
},
{
"from": "human",
"value": "module.exports = function(config) {\n 'use strict';\n\n config.set({\n\n browsers: ['Chrome'],\n reporters: ['progress', 'notify'],\n frameworks: ['browserify' ,'mocha', 'c... | javascript | chosen |
[
{
"from": "system",
"value": "chore: Use reporter that's better suited for CI\n"
},
{
"from": "human",
"value": "var path = require('path')\n\nprocess.env.BUILD_TEST = 'true'\nvar webpackConfig = require('./webpack.config')\ndelete webpackConfig.entry\ndelete webpackConfig.output\nwebpackConfig.... | javascript | chosen |
[
{
"from": "system",
"value": "Include worker in karma so coverage reveals that it's not tested\n"
},
{
"from": "human",
"value": "/*global module */\n\nmodule.exports = function(config) {\n 'use strict';\n\n config.set({\n // base path, that will be used to resolve files and exclude\n ba... | javascript | chosen |
[
{
"from": "system",
"value": "Add info about crop gravity options in config example\n"
},
{
"from": "human",
"value": "module.exports = {\n variants: {\n items: {\n // keepNames: true,\n resize: {\n mini : \"300x200\",\n preview: \"800x600\"\n },\n crop: {\n... | javascript | chosen |
[
{
"from": "system",
"value": "Improve the Radio superclass so it better serves as an example to implement new Radio modules\n"
},
{
"from": "human",
"value": "var Radio = function() {\n};\n\nRadio.prototype.radio_name = 'No radio selected';\nRadio.prototype.stream_url = 'No radio selected';\nRad... | javascript | chosen |
[
{
"from": "system",
"value": "Add logger to auth constructor\n"
},
{
"from": "human",
"value": "import path from 'path';\n\nexport default function (container) {\n container.set('remote-registry', function () {\n let Route = require('../routes/auth-user-add').default;\n return new Route()... | javascript | chosen |
[
{
"from": "system",
"value": "Use decl.source.input.from as asset from\n"
},
{
"from": "human",
"value": "import eachUrlDecl from './eachUrlDecl'\nimport Result from './result'\n\nexport default function (customTransforms) {\n return function (root, result) {\n let postcssOpts = result.opts\... | javascript | chosen |
[
{
"from": "system",
"value": "Drop gratuitous relevance from Tagger Script\n"
},
{
"from": "human",
"value": "/*\nLanguage: Tagger Script\nAuthor: Philipp Wolfer <ph.wolfer@gmail.com>\nDescription: Syntax Highlighting for the Tagger Script as used by MusicBrainz Picard.\n */\nfunction(hljs) {\n\... | javascript | chosen |
[
{
"from": "system",
"value": "Implement connect OscillatorNode to AudioContext.destination\n"
},
{
"from": "human",
"value": "(function (window) {\n\t'use strict';\n\n\tvar HearingTest = Object.create(null);\n\n\tHearingTest.init = function init() {\n\t\tthis.context = new window.AudioContext();... | javascript | chosen |
[
{
"from": "system",
"value": "Add execute method to make http requests to the API\n"
},
{
"from": "human",
"value": "var http = require('http'),\n unirest = require('unirest'),\n _ = require('lodash');\n\n/**\n * What3Words API wrapper for the API version 1.0.\n * \n * @param apiK... | javascript | chosen |
[
{
"from": "system",
"value": "Use dev settings for test.\n"
},
{
"from": "human",
"value": "var webpack = require(\"webpack\");\nvar WebpackDevServer = require(\"webpack-dev-server\");\nvar webpackConfig = require(\"./webpack.production.config\");\nvar testConfig = require(\"..... | javascript | chosen |
[
{
"from": "system",
"value": "Make obstacles fall as well as the car\n"
},
{
"from": "human",
"value": "import Phaser from 'phaser'\n\nexport default class extends Phaser.Sprite {\n constructor ({ game, x, y, asset }) {\n super(game, x, y, asset)\n this.anchor.setTo(0.5)\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Use `latest` tag for release\n"
},
{
"from": "human",
"value": "var gulp = require('gulp');\nvar gulpBabel = require('gulp-babel');\nvar eslint = require('gulp-eslint');\nvar mocha = require('gulp-mocha');\nvar ll = require('gulp-ll');\nvar publis... | javascript | chosen |
[
{
"from": "system",
"value": "Remove automatic flow-text tags in paragraphs and lists\n"
},
{
"from": "human",
"value": "/**\n * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or http://ckeditor.com/license\n */\n\nCKEDITOR.... | javascript | chosen |
[
{
"from": "system",
"value": "Fix for failing linux builds"
},
{
"from": "human",
"value": "#!/usr/bin/env node --max_old_space_size=4096\nrequire('../dist');\n"
},
{
"from": "gpt",
"value": "#!/bin/sh\n':' //; exec \"$(command -v nodejs || command -v node)\" --max_old_space_size=409... | javascript | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.