conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Fix error if trying to do slr in current dir\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\n\nglobal.__base = __dirname + '/src/';\n\n// Commands\nvar cli = require('commander');\n\ncli\n .version('0.0.1')\n .option('-p, --port <port>' , 'Chang... | javascript | chosen |
[
{
"from": "system",
"value": "Fix screenName parameter in ScreenHit class\n\nChanged property dp to cd to match Google Analytics screen hit request reference\r\n\r\nSee https://developers.google.com/analytics/devguides/collection/protocol/v1/devguide\r\n\r\n*Request*\r\n\r\n``\r\nv=1 ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix to work with trail pipes"
},
{
"from": "human",
"value": "'use strict';\n\nvar p4 = require('node-perforce');\nvar through = require('through2');\nvar gutil = require('gulp-util');\nvar PluginError = gutil.PluginError;\n\nvar PLUGIN_NAME = 'gulp-p4';\n\nmodule.e... | javascript | chosen |
[
{
"from": "system",
"value": "Move fatal throw to separate function\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\n\n\"use strict\";\n\nconst moment = require(\"moment\");\nconst sugar = require(\"sugar\");\nconst chalk = require(\"chalk\");\nconst exec = require(\"child_process\").exec... | javascript | chosen |
[
{
"from": "system",
"value": "Update comment & expose transformDecl\n\nThat will allow direct usage un a plugin to avoid multiple loop to\napply transformation directly in a global plugin\n"
},
{
"from": "human",
"value": "/**\n * Module dependencies.\n */\nvar reduceCSSCalc = require(\"reduce-c... | javascript | chosen |
[
{
"from": "system",
"value": "Clean up existing OS handling a little\n\n* Avoid fall-through in switch statement.\n* Improve error message in the case of incompatibility.\n* Rename linux() function to posix().\n* Sort cases alphabetically for improved readability.\n"
},
{
"from": "human",
"value... | javascript | chosen |
[
{
"from": "system",
"value": "Add surly, churlish, hungry, and famished"
},
{
"from": "human",
"value": "var stati = [\n 'irritable',\n 'gassy',\n 'diuretic',\n 'constipated',\n 'twisted',\n 'cramped'\n // Have another idea? Submit a pull request or issue\n // https://git... | javascript | chosen |
[
{
"from": "system",
"value": "Call `cb` immediately if `pending` is zero\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar tape = require('tape');\nvar through = require('through2');\nvar PluginError = require('gulp-util').PluginError;\nvar requireUncached = require('require-uncached');\n\... | javascript | chosen |
[
{
"from": "system",
"value": "Reorder object to make more sense\n"
},
{
"from": "human",
"value": "'use strict';\nconst appPath = require('app-path');\nconst bundleId = require('bundle-id');\nconst osxAppVersion = require('osx-app-version');\nconst appSize = require('app-size');\n\nmodule.export... | javascript | chosen |
[
{
"from": "system",
"value": "Use callsite to get path of caller\n"
},
{
"from": "human",
"value": "'use strict';\n/**\n * Helper to avoid:\n * var DatasetEditController = require('../../../app/hello/dataset/edit/DatasetEditController');\n * Just use rrequire('DatasetEditController') instead!\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Update to include multi-language support\n\nAdding French and updating for English"
},
{
"from": "human",
"value": "/*!\n * days <https://github.com/jonschlinkert/days>\n *\n * Copyright (c) 2014 Jon Schlinkert, contributors.\n * Licensed under the MIT license.\n */... | javascript | chosen |
[
{
"from": "system",
"value": "Add text-shadow with used color rgb value\n"
},
{
"from": "human",
"value": "\nvar postcss = require('postcss'),\n color = require('color');\n\nmodule.exports = postcss.plugin('postcss-lowvision', function () {\n return function (css) {\n css.walkDecls(... | javascript | chosen |
[
{
"from": "system",
"value": "Set content-length in bytes instead of characters\n"
},
{
"from": "human",
"value": "\nmodule.exports = function (options) {\n options = options || {}\n options.property = options.property || 'body'\n options.stringify = options.stringify || JSON.stringify\n\n r... | javascript | chosen |
[
{
"from": "system",
"value": "Test that departure infos are rendered.\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport ReactDOM from 'react-dom';\nimport { shallow } from 'enzyme';\nimport TimeTable from './../TimeTable.js';\nimport ErrorMsg from './../ErrorMsg';\nimport Loa... | javascript | chosen |
[
{
"from": "system",
"value": "Make it work in browsers\n"
},
{
"from": "human",
"value": "'use strict';\nmodule.exports = function (scope) {\n\tvar rc = require('rc')('npm');\n\treturn rc[scope + ':registry'] ||\n\t\trc.registry || 'https://registry.npmjs.org/';\n};\n"
},
{
"from": "gpt"... | javascript | chosen |
[
{
"from": "system",
"value": "Improve mast and fin size facets\n"
},
{
"from": "human",
"value": "import React from 'react'\nimport Range from '../Range'\nimport RefinementList from '../RefinementList'\nimport SidebarSection from '../SidebarSection'\nimport './style.scss'\n\nfunction Facets () {... | javascript | chosen |
[
{
"from": "system",
"value": "Fix wrong options variable assignment\n\nThis caused the name options's function to ran only for the first file."
},
{
"from": "human",
"value": "'use strict';\nvar gutil = require('gulp-util');\nvar through = require('through2');\nvar assign = require('object-assig... | javascript | chosen |
[
{
"from": "system",
"value": "Use bundled gulp instead of global\n"
},
{
"from": "human",
"value": "const path = require('path');\nconst execa = require('execa');\nconst errorHandler = require('./errorHandler');\n\nmodule.exports = function runGulp() {\n execa('gulp',\n [\n '--cwd', pro... | javascript | chosen |
[
{
"from": "system",
"value": "Fix a bug in node 0.10 (and presumably other browsers) where the zero-width space is erroneously trimmed.\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar bind = require('function-bind');\nvar define = require('define-properties');\nvar replace = bind.call(Fu... | javascript | chosen |
[
{
"from": "system",
"value": "Fix error with operator precedence\n"
},
{
"from": "human",
"value": "'use babel';\nimport editorconfig from 'editorconfig';\nimport generateConfig from './commands/generate';\n\nfunction init(editor) {\n\tgenerateConfig();\n\n\tif (!editor) {\n\t\treturn;\n\t}\n\n\... | javascript | chosen |
[
{
"from": "system",
"value": "Fix tests for changes in `@types/unist`\n"
},
{
"from": "human",
"value": "/**\n * @typedef {import('unist').Node} Node\n * @typedef {import('unist').Parent} Parent\n */\n\nimport {modifyChildren} from 'unist-util-modify-children'\n\nexport const affixEmoticonModifi... | javascript | chosen |
[
{
"from": "system",
"value": "Add paper for neat effect on incidents\n"
},
{
"from": "human",
"value": "import React, { PropTypes } from 'react';\nimport ReactCSSTransitionGroup from 'react-addons-css-transition-group';\nimport styles from './Incident.css';\nimport Map from './Map';\nimport Grid... | javascript | chosen |
[
{
"from": "system",
"value": "Update confirm to be if"
},
{
"from": "human",
"value": "$(document).ready(function() {\n $('#ballot_response').submit(function(event) {\n confirm(\"Are you sure you want to submit your ballot?\");\n \n var sortableList = $(\"#candidates\");\... | javascript | chosen |
[
{
"from": "system",
"value": "Announcement: Support custom window title, main message, details\n"
},
{
"from": "human",
"value": "module.exports = {\n init\n}\n\nvar electron = require('electron')\nvar get = require('simple-get')\n\nvar config = require('../config')\nvar log = require('./log')\... | javascript | chosen |
[
{
"from": "system",
"value": "Check for active session before bootstrapping\n"
},
{
"from": "human",
"value": "//make sure all dependencies are loaded\nrequire([\n\t'es5shim',\n\t'angular',\n\t'json!data/config.json',\n 'angular-ui-router',\n 'angular-flash',\n 'angular-moment',\n 'a... | javascript | chosen |
[
{
"from": "system",
"value": "Add EnumMember as a valid expression\n"
},
{
"from": "human",
"value": "const ParserCommon = require('./ParserCommon');\r\n\r\nfunction PropertyValue(xml) {\r\n this.Annotations = {};\r\n\r\n this.validElements = {\r\n };\r\n this.validAttributes = {\r\n 'Boo... | javascript | chosen |
[
{
"from": "system",
"value": "Call final() on stream flush.\n"
},
{
"from": "human",
"value": "var crypto = require('crypto'),\n util = require('util'),\n Transform = require('stream').Transform;\n \nfunction DecryptStream(options) {\n if (!(this instanceof DecryptStream))\n return new Dec... | javascript | chosen |
[
{
"from": "system",
"value": "Change cache-control from 60s expired to 86.400 (1 day)"
},
{
"from": "human",
"value": "/* \n * To change this license header, choose License Headers in Project Properties.\n * To change this template file, choose Tools | Templates\n * and open the template in the ... | javascript | chosen |
[
{
"from": "system",
"value": "Add fx beta and mobile safari\n"
},
{
"from": "human",
"value": "/**\n * Helper module used to alias browser names parsed out of the 'useragent'\n * module to the equivalent names used in the config.json for each polyfill.\n * Should always be lowercase values as it... | javascript | chosen |
[
{
"from": "system",
"value": "Fix a small mistake in how opening the uProxy panel is done in Firefox\n"
},
{
"from": "human",
"value": "var { Cc, Ci, Cr } = require('chrome');\n\nexports.setup = function(panel) {\n var observer = {\n observe: function (subject, topic, data) {\n if ('htt... | javascript | chosen |
[
{
"from": "system",
"value": "Rename stripChars() to transformWord(), and add some transforms to it (drop period from \"Mr.\" and \"Mrs.\")\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar markovWordsetBuilder = (function() {\n\n\tvar max_words = 80000;\n\n\tfunction stripChars(word) {\n\... | javascript | chosen |
[
{
"from": "system",
"value": "Use shelljs instead of fs for consistency\n"
},
{
"from": "human",
"value": "\"use strict\";\n\nvar fs = require(\"fs\");\nvar yaml = require(\"js-yaml\");\n\nmodule.exports = function loadConfig () {\n var config = yaml.safeLoad(fs.readFileSync(\".titorrc\", \"utf... | javascript | chosen |
[
{
"from": "system",
"value": "Use next public path for polyfill loader"
},
{
"from": "human",
"value": "import { getOptions, stringifyRequest } from 'loader-utils'\n\nmodule.exports = function (content, sourceMap) {\n this.cacheable()\n\n const options = getOptions(this)\n const { buildId, mo... | javascript | chosen |
[
{
"from": "system",
"value": "Stop logging error notifications in tests\n\nAt least with Node.js v6 these unhandled rejections get reported to the console already.\n"
},
{
"from": "human",
"value": "if (typeof global.atom === 'undefined') {\n global.atom = {\n notifications: {\n addErro... | javascript | chosen |
[
{
"from": "system",
"value": "Add root path to configuration\n"
},
{
"from": "human",
"value": "/* eslint key-spacing:0 spaced-comment:0 */\nconst path = require('path');\nconst ip = require('ip');\n\nconst projectBase = path.resolve(__dirname, '..');\n\n/****************************************... | javascript | chosen |
[
{
"from": "system",
"value": "Add comment about unused get call\n"
},
{
"from": "human",
"value": "Session.old_set = Session.set;\nSession.set = function _psSet(key, value, persist) {\n if (persist === undefined) {\n persist = true;\n }\n Session.old_set(key, value);\n if (persist) {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix role restriction validation bug\n"
},
{
"from": "human",
"value": "const _ = require('underscore');\n\nconst logger = require('../log.js');\n\nclass CardService {\n constructor(db) {\n this.cards = db.get('cards');\n this.packs = db.get('packs')... | javascript | chosen |
[
{
"from": "system",
"value": "Fix JS error in invite dialog button\n"
},
{
"from": "human",
"value": "if (!document.createElement('dialog').showModal) {\n var link = document.createElement('link');\n link.rel = 'stylesheet';\n link.href = 'static/dialog-polyfill.css';\n var script = document... | javascript | chosen |
[
{
"from": "system",
"value": "Update JS to prepend html from CPT to body.\n\n"
},
{
"from": "human",
"value": "( function( $ ) {\n\n\t'use strict';\n\n\t$( function() {\n\n\t\tvar body = $( 'body' ),\n\t\t\twriteReview = $( '.write-a-review' );\n\n\t\t// If review link exists.\n\t\tif ( w... | javascript | chosen |
[
{
"from": "system",
"value": "Add missing extension in import\n"
},
{
"from": "human",
"value": "import Map from '../../../src/ol/Map.js';\nimport View from '../../../src/ol/View.js';\nimport {Group as LayerGroup, Tile as TileLayer} from '../../../src/ol/layer.js';\nimport XYZ from '../../../src... | javascript | chosen |
[
{
"from": "system",
"value": "Bump meteor-tool version (not totally sure why... is Blaze used in the tool?)\n"
},
{
"from": "human",
"value": "Package.describe({\n summary: \"The Meteor command-line tool\",\n version: '1.0.27-rc0'\n});\n\nPackage.includeTool();\n"
},
{
"from": "gpt",
... | javascript | chosen |
[
{
"from": "system",
"value": "Implement click handler for team card\n"
},
{
"from": "human",
"value": "$(document).ready(() => {\n\tconsole.log('event bla');\n\t$('.section-teamInvitations a').click(function handler(e) {\n\t\te.stopPropagation();\n\t\te.preventDefault();\n\n\t\tconst id = $(this... | javascript | chosen |
[
{
"from": "system",
"value": "feat: Include Redux action for managing Modal's data\n"
},
{
"from": "human",
"value": "'use strict';\n\nexport const TOGGLE_EVENT_MODAL = 'TOGGLE_EVENT_MODAL';\n\n\nexport const toggleEventModal = () => ({\n type: TOGGLE_EVENT_MODAL\n});\n"
},
{
"from": "g... | javascript | chosen |
[
{
"from": "system",
"value": "Add info in js task\n"
},
{
"from": "human",
"value": "'use strict';\n\n// Modules\n// ===============================================\nvar gulp = require('gulp'),\n\tpaths = require('../paths'),\n\tgutil = require('gulp-util'),\n\tbrowserSync = require(\"browser-sy... | javascript | chosen |
[
{
"from": "system",
"value": "Fix path to requirejs-text plugin\n"
},
{
"from": "human",
"value": "({\n baseUrl: 'src',\n name: '../node_modules/almond/almond',\n include: ['quick-switcher'],\n out: 'dist/quick-switcher.min.js',\n wrap: {\n startFile: '.almond/start.frag',\n endFile: ... | javascript | chosen |
[
{
"from": "system",
"value": "FIX failure to pass location\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport { Preview } from '@storybook/components';\nimport memoize from 'memoizerific';\n\nimport { Consumer } from '../core/context';\n\nconst createPreviewActions = memoize(1... | javascript | chosen |
[
{
"from": "system",
"value": "Make jshint happy with new bind polyfill\n"
},
{
"from": "human",
"value": "if ( ! Function.prototype.bind) {\n Function.prototype.bind = function bind(that) { // .length is 1\n var target = this;\n if (typeof target != \"function\") {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix absolute path requirement for output.path since webpack 2.3.0\n"
},
{
"from": "human",
"value": "const commonConfig = require(\"./webpack.common.config\");\nconst nodeExternals = require(\"webpack-node-externals\");\nconst merge = (...objs) => require(\"deepmerg... | javascript | chosen |
[
{
"from": "system",
"value": "Remove bin (it's fb-specific api)\n"
},
{
"from": "human",
"value": "var code = '';\n\nvar replaceOptIndex = process.argv.indexOf('--replace');\nif (replaceOptIndex !== -1) {\n var replacements = [];\n process.argv[replaceOptIndex + 1].split(',').forEach(function(... | javascript | chosen |
[
{
"from": "system",
"value": "Test against ember 2.0.x and 2.1.x in CI\n"
},
{
"from": "human",
"value": "module.exports = {\n scenarios: [\n {\n name: 'default',\n dependencies: { }\n },\n {\n name: 'ember-1.10',\n dependencies: {\n ember: '~1.10.0'\n }... | javascript | chosen |
[
{
"from": "system",
"value": "Use array index instead of Buffer.get\n\nBuffer.get was depracted in 2013 [1] and removed entirely in\nNode 6 [2].\n\nCloses #13.\n\n[1] https://github.com/nodejs/node/issues/4587\n[2] https://github.com/nodejs/node/wiki/Breaking-changes-between-v5-and-v6#buffer\n"
},
{
... | javascript | chosen |
[
{
"from": "system",
"value": "Remove obsolete promise trigger in test\n"
},
{
"from": "human",
"value": "module.exports = {\n\tbuild: function(promise, promiseTrigger) {\n\t\tsetTimeout(function() {\n\t\t\tpromise.reject(new Error('boom'));\n\t\t}, 0);\n\n\t\treturn promise.promise;\n\t}\n}\n"
... | javascript | chosen |
[
{
"from": "system",
"value": "Add current time/duration processing to Odnoklassniki connector\n"
},
{
"from": "human",
"value": "'use strict';\n\n/* global Connector */\n\nConnector.playerSelector = 'body';\n\nConnector.artistSelector = '.mus_player_artist';\n\nConnector.trackSelector = '.mus_pl... | javascript | chosen |
[
{
"from": "system",
"value": "Fix the dumb scrolling issue\n"
},
{
"from": "human",
"value": "'use strict';\n\nmodule.exports = Config;\n\nConfig.$inject = ['$stateProvider', '$urlRouterProvider', '$anchorScrollProvider'];\n\nfunction Config($stateProvider, $urlRouterProvider, $anchorScrollProvi... | javascript | chosen |
[
{
"from": "system",
"value": "Add property for default images.\n"
},
{
"from": "human",
"value": "import Ember from 'ember';\n\nexport default Ember.Component.extend({\n size: 250,\n email: '',\n alt: '',\n imgClass: '',\n\n gravatarUrl: function() {\n var email = this.get('email'),\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix shebang arguments for Ubuntu users.\n\nhttp://sambal.org/2014/02/passing-options-node-shebang-line/\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node --harmony-async-await\n\nconst kamerbotchi = require('../index.js')\n\nconsole.log('KamerBOTchi v'+require(... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"Missing import for AnalyticsWrapper\"\n\nWe stopped using AnalyticsWrapper and now send messages to the background instead\n\nThis reverts commit 0f6cd479b089319275d3f08e79c8e9ecbf96eb5e.\n"
},
{
"from": "human",
"value": "import $ from 'jquery'\nimport Ana... | javascript | chosen |
[
{
"from": "system",
"value": "Change name function generate on tick\n"
},
{
"from": "human",
"value": "// Cron.js - in api/services\n\n\"use strict\";\nconst CronJob = require('cron').CronJob;\nconst _ = require('lodash');\n\nconst crons = [];\n\nmodule.exports = {\n start: () => {\n s... | javascript | chosen |
[
{
"from": "system",
"value": "Allow injection of simple extensions\n\nAllows to inject single file extensions with basic task.\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst fs = require('fs');\n\nvar importCmd = () => {\n let files = fs.readdirSync(__dirname+'/../cmds/');\n let cmd... | javascript | chosen |
[
{
"from": "system",
"value": "Use GDRIVE prefix in env vars\n"
},
{
"from": "human",
"value": "/**\n * @file Defines the provider settings.\n *\n * Will set the path to Mongo, and applications id\n * Most of the configuration can be done using system environment variables.\n */\n\n// Load enviro... | javascript | chosen |
[
{
"from": "system",
"value": "assets/webapp: Add missing filterXSS function export\n"
},
{
"from": "human",
"value": "/**\n * Copyright (C) 2018 The Software Heritage developers\n * See the AUTHORS file at the top-level directory of this distribution\n * License: GNU Affero General Public Licen... | javascript | chosen |
[
{
"from": "system",
"value": "Fix Splash width to 800 px.\n"
},
{
"from": "human",
"value": "mol.modules.map.splash = function(mol) {\n\n mol.map.splash = {};\n\n mol.map.splash.SplashEngine = mol.mvp.Engine.extend(\n {\n init: function(proxy, bus) {\n this... | javascript | chosen |
[
{
"from": "system",
"value": "Add profile scope to google auth\n"
},
{
"from": "human",
"value": "import EmberObject from \"@ember/object\";\n\nimport config from \"fakturama/config/environment\";\n\nconst { APP: { FIREBASE, FIREBASE: { projectId } } } = config;\nconst { firebase } = window;\nco... | javascript | chosen |
[
{
"from": "system",
"value": "Change physics engine to P2\n"
},
{
"from": "human",
"value": "var bootState = {\n\n create: function () {\n\n //Initial GameSystem (Arcade, P2, Ninja)\n game.physics.startSystem(Phaser.Physics.ARCADE);\n\n //Initial Load State\n game.... | javascript | chosen |
[
{
"from": "system",
"value": "Fix indentation of the CSS grammar\n"
},
{
"from": "human",
"value": "define(function() {\n\n\t// Export\n\treturn function(Prism) {\n\n\t\tPrism.languages.css = {\n\t\t\t'comment': /\\/\\*[\\w\\W]*?\\*\\//g,\n\t\t\t'atrule': /@[\\w-]+?(\\s+[^;{]+)?(?=\\s*{|\\s*;)/g... | javascript | chosen |
[
{
"from": "system",
"value": "Remove osm export from API\n"
},
{
"from": "human",
"value": "module.exports = function createApi (osm) {\n return {\n getMap: require('./get_map.js')(osm),\n getElement: require('./get_element.js')(osm),\n createElement: require('./create_element.js')(osm... | javascript | chosen |
[
{
"from": "system",
"value": "Add basic drawing functionality to test canvas is functional and behaving correctly\n"
},
{
"from": "human",
"value": "const canvas = document.getElementById('pong');\n\nconsole.log('canvas', canvas);\n\n"
},
{
"from": "gpt",
"value": "const canvas = doc... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"New default Overpass server\"\n\nThis reverts commit a32767d2d697313c452f6a06aac16360b75e3619.\n"
},
{
"from": "human",
"value": "\n\ndefine([], function () {\n\n\t'use strict';\n\n\treturn {\n\n\t\t'oauthConsumerKey': 'wPfXjdZViPvrRWSlenSWBsAWhYKarmOkOKk5W... | javascript | chosen |
[
{
"from": "system",
"value": "Remove unnecessary source map support from entry point\n\nTranspiling the entry point was discontinued in e4c1ed8f.\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\n\n// Enable source map support\nrequire('source-map-support').install();\n\n// Polyfill Promis... | javascript | chosen |
[
{
"from": "system",
"value": "Fix define warning in \"temp\" variable"
},
{
"from": "human",
"value": "tracer._print('original array = [' + D.join(', ') + ']');\ntracer._sleep(1000);\ntracer._pace(500);\nfunction quicksort(low, high) {\n if (low < high) {\n var p = partition(low, high)... | javascript | chosen |
[
{
"from": "system",
"value": "Update nav background-color change from 50px to 110px trigger\n"
},
{
"from": "human",
"value": "// This is a manifest file that'll be compiled into application.js, which will include all the files\n// listed below.\n//\n// Any JavaScript/Coffee file within this dir... | javascript | chosen |
[
{
"from": "system",
"value": "Change default for chronological tab to line\n"
},
{
"from": "human",
"value": "export const TABS = [\n {\n name: 'latest',\n title: 'Nåtid',\n chartKind: 'bar',\n year: 'latest'\n },\n {\n name: 'chronological',\n title: 'Over tid',\n chartK... | javascript | chosen |
[
{
"from": "system",
"value": "JEK-8: Add separate eventCategory for broken links\n"
},
{
"from": "human",
"value": "/*\n * Copyright 2014-2016 CyberVision, Inc.\n * <p/>\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with ... | javascript | chosen |
[
{
"from": "system",
"value": "Add check for env vars\n"
},
{
"from": "human",
"value": "var aws = require('aws-sdk');\n\nmodule.exports = function() {\n\n\taws.config.update({\n\t\taccessKeyId: process.env.AWS_ACCESS_KEY_ID,\n\t\tsecretAccessKey: process.env.AWS_SECRET_ACCESS_KEY,\n\t\tregion: '... | javascript | chosen |
[
{
"from": "system",
"value": "Allow for error handler to be passed as parameter\n\nSo that errors can be properly handled in cases like Promises etc."
},
{
"from": "human",
"value": "(function(){\r\n module.exports = concat\r\n\r\n var fs = require('fs')\r\n function concat(files, target, don... | javascript | chosen |
[
{
"from": "system",
"value": "Remove lru-cache dependency from stylus"
},
{
"from": "human",
"value": "Package.describe({\n summary: 'Expressive, dynamic, robust CSS',\n version: \"2.0.0_511\"\n});\n\nPackage.registerBuildPlugin({\n name: 'compileStylusBatch',\n use: ['ecmascript', 'caching-... | javascript | chosen |
[
{
"from": "system",
"value": "Add missing final newline FOLIO-351\n"
},
{
"from": "human",
"value": "const new_user = require('./new_user.js');\nconst patron_group = require('./patron_group.js');\n\nmodule.exports.test = function(uitestctx) {\n\n patron_group.test(uitestctx);\n new_user.test(u... | javascript | chosen |
[
{
"from": "system",
"value": "Allow multiple args for jQuery extension"
},
{
"from": "human",
"value": "jQuery.fn.dropkick = function ( opts, args ) {\n return $( this ).each(function() {\n if ( !opts || typeof opts === 'object' ) {\n new Dropkick( this, opts || {} );\n } else if ( t... | javascript | chosen |
[
{
"from": "system",
"value": "Change the renderer of the game\n\nChange the renderer of the game from Phaser.AUTO to Phaser.CANVAS.\nFor some reason, using canvas improves the performance significantly,\nin comparison with WebGL (which is the one chosen by Phaser.AUTO).\n"
},
{
"from": "human",
... | javascript | chosen |
[
{
"from": "system",
"value": "Fix test for getAuthBlurb() result\n"
},
{
"from": "human",
"value": "import test from 'ava'\n\nimport authenticator from '../src/authenticator'\nimport testUsers from './util/testUsers'\n\nfunction localUsersRepository () {\n return {\n getUser(id) {\n con... | javascript | chosen |
[
{
"from": "system",
"value": "Add transition constant for navigation\n"
},
{
"from": "human",
"value": "import constantCreator from '../lib/constantCreator'\n\nconst NavigateConstants = constantCreator('NAVIGATE', {\n START: null,\n FAILURE: null,\n SUCCESS: null\n})\n\nexport default Navigat... | javascript | chosen |
[
{
"from": "system",
"value": "Convert goog.structs.PriorityQueue to goog.module and ES6 class\n\nRELNOTES: n/a\nPiperOrigin-RevId: 442836111\nChange-Id: I24f217f529862670ff383d92bd4095f17bf980ff\n"
},
{
"from": "human",
"value": "/**\n * @license\n * Copyright The Closure Library Authors.\n * SP... | javascript | chosen |
[
{
"from": "system",
"value": "Add some basic video element.\n"
},
{
"from": "human",
"value": "/**\n * External dependencies\n */\nimport PropTypes from 'prop-types';\nimport styled from 'styled-components';\n\n/**\n * Internal dependencies\n */\nimport { ElementWithPosition, ElementWithSize, El... | javascript | chosen |
[
{
"from": "system",
"value": "Increase timeout for the sake of iPhone tests.\n"
},
{
"from": "human",
"value": "var windowTest = require('./windowTest');\nvar elmTest = require('./elmTest');\nvar locationTest = require('./locationTest');\nvar storageTest = require('./storageTest');\n\nmodule.exp... | javascript | chosen |
[
{
"from": "system",
"value": "Fix Store: fix broken test whether store use app reducer or not\n"
},
{
"from": "human",
"value": "import store from \"src/stores/Store.js\";\nimport app from \"src/reducers/App.js\";\n\ndescribe(\"store\", () => {\n\n it(\"should exist\", () => {\n store.should... | javascript | chosen |
[
{
"from": "system",
"value": "Fix something in the the expected invocation example.\n"
},
{
"from": "human",
"value": "var Ajax = {\n get: function(uri) { }\n};\n\nvar Updater = Class.create({\n initialize: function(bookId) {\n this.bookId = bookId;\n setSample('<div id=\"title\"></div>'... | javascript | chosen |
[
{
"from": "system",
"value": "Update example to use https rather than http. (looks like manning.com\nswitched to https protocol.)\n"
},
{
"from": "human",
"value": "var CountStream = require('./countstream'); //<co id=\"callout-intro-countstream-index-1\" />\nvar countStream = new CountStream('b... | javascript | chosen |
[
{
"from": "system",
"value": "Remove unnecessary parsing of body -- it's already an object.\n"
},
{
"from": "human",
"value": "var http = require('http');\nvar r = require('request');\n\nvar config = require('./config.json');\n\n\nvar doneUrl;\nvar userUrl;\n\n\n\nhttp.createServer(function(requ... | javascript | chosen |
[
{
"from": "system",
"value": "Add enter keymap to Appeals editor\n\nNote that there’s some fuzzy UI logic that is linking the isEditing\nstate to the submit being clicked.\n"
},
{
"from": "human",
"value": "Space.flux.BlazeComponent.extend(Donations, 'AppealForm', {\n\n events() {\n return [... | javascript | chosen |
[
{
"from": "system",
"value": "Fix issue cannot create two files of the same type\n"
},
{
"from": "human",
"value": "import ApplicationAdapter from './application';\n\nexport default ApplicationAdapter.extend({\n\tgenerateIdForRecord: function(store, type, inputProperties) {\n\t return inputProp... | javascript | chosen |
[
{
"from": "system",
"value": "Add canBeAttacked condition to Chasing the Sun\n"
},
{
"from": "human",
"value": "const _ = require('underscore');\nconst DrawCard = require('../../drawcard.js');\nconst { Locations, CardTypes, EventNames } = require('../../Constants');\n\nclass ChasingTheSun extend... | javascript | chosen |
[
{
"from": "system",
"value": "Include debugging in seed database script\n"
},
{
"from": "human",
"value": "var system = require('system');\nvar url = encodeURI(system.args[1]);\n\nvar page = require('webpage').create();\n\npage.open(url, function(status) {\n console.log(\"Status: \" + status);\... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"updateRN 0.14.0 new native module Api\"\n"
},
{
"from": "human",
"value": "/**\n * @providesModule RNShare\n * @flow\n */\n'use strict';\n\nvar NativeRNShare = require('react-native').NativeModules.RNShare;\nvar invariant = require('invariant');\n\n/**\n * ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix wrong jspm config path\n"
},
{
"from": "human",
"value": "import gulp from 'gulp';\nimport browserSync from 'browser-sync';\n\nconst bs = browserSync.get('dev');\n\ngulp.task('connect:dev', ['styles'], (done) => {\n bs.init({\n notify: false,\n port: 9000... | javascript | chosen |
[
{
"from": "system",
"value": "Remove spacer rectangles and flatten groups in source SVG files\n\nSaves 30K on the iconsets!\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\n\nvar fs = require('fs');\nvar cheerio = require('cheerio');\nvar path = require('path');\n\nvar cheerioOptions = {x... | javascript | chosen |
[
{
"from": "system",
"value": "Fix integration test by removing bootstrap module"
},
{
"from": "human",
"value": "\"use strict\";\n\n// Declare app level module which depends on views, and components\nangular.module(\"myApp\", [\n \"ngRoute\",\n \"myApp.view1\",\n \"myApp.view2\",\n \"myApp.v... | javascript | chosen |
[
{
"from": "system",
"value": "Make emit able to return an array of values\n\n"
},
{
"from": "human",
"value": " function Events()\n {\n var listeners = {}\n\n $.extend(this, {\n on: function(type, cb)\n {\n if (!$.isArray(listeners[type]))\n listeners[type] = []... | javascript | chosen |
[
{
"from": "system",
"value": "Fix bug with storing locked buildings\n"
},
{
"from": "human",
"value": "/**\n * This function toggle the locked state of a building\n * @param\t{number}\tindex\tIndex of the row to change\n */\nexport default function toggleBuildingLock(index) {\n if (l(`productLo... | javascript | chosen |
[
{
"from": "system",
"value": "Copy the JS to the docs dir\n"
},
{
"from": "human",
"value": "module.exports = {\n\tdocs: {\n\t\tfiles: [\n\t\t\t{\n\t\t\t\tsrc: ['css/**/*'],\n\t\t\t\tdest: 'docs/public/'\n\t\t\t},\n\t\t\t{\n\t\t\t\tsrc: ['img/**/*'],\n\t\t\t\tdest: 'docs/public/'\n\t\t\t}\n\t\t]... | javascript | chosen |
[
{
"from": "system",
"value": "Add sessions and more robust Facebook auth.\n"
},
{
"from": "human",
"value": "/* \n * This file contains all of the Passport configuration that will\n * be used through the application for Facebook authentication.\n */\n\nvar FacebookStrategy = require('passport-fa... | javascript | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.