conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Fix missing request body in API client\n"
},
{
"from": "human",
"value": "import fetch from 'unfetch'\n\nconst apiBase = 'https://api.hackclub.com/'\nconst methods = ['get', 'put', 'post', 'patch']\n\nconst generateMethod = method => (path, options) => {\n // authT... | javascript | chosen |
[
{
"from": "system",
"value": "Stop the host on window unload\n"
},
{
"from": "human",
"value": "const {\n getQueryStringParam,\n substanceGlobals,\n platform\n} = window.substance\n\nconst {\n StencilaDesktopApp\n} = window.stencila\n\nconst ipc = require('electron').ipcRenderer\nconst darSe... | javascript | chosen |
[
{
"from": "system",
"value": "Add some interface tests for flora-cluster\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar expect = require('chai').expect;\n\nvar floraCluster = require('../');\n\ndescribe('flora-cluster', function () {\n it('should be an object', function () {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Increase faction name length back up to 40\n"
},
{
"from": "human",
"value": "export const ROWS = 10;\nexport const COLUMNS = 8;\nexport const SECTOR_LIMIT = 10;\nexport const MIN_DIMENSION = 5;\nexport const MAX_DIMENSION = 20;\nexport const LAYER_NAME_LENGTH = 30;... | javascript | chosen |
[
{
"from": "system",
"value": "Change _inputHtml Into Function Call In Select\n\nChange _inputHtml from just passing the function to calling it in the\nSelect Component when the select is rendered out. This allows the merge\nprops to be the default props of the select.\n"
},
{
"from": "human",
"v... | javascript | chosen |
[
{
"from": "system",
"value": "Update comments to be clearer\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar glimpse = require('glimpse');\nvar requestRepository = require('../repository/request-repository');\n\n// TODO: Not sure I need to store the requests\nvar _requests = {};\nvar _vie... | javascript | chosen |
[
{
"from": "system",
"value": "Replace hard coded refs by relative."
},
{
"from": "human",
"value": "export default class Logo {\n \n render() {\n return (\n <div id=\"branding\">\n <a href=\"index.php\" title=\"CosmoWiki.de\" rel=\"home\">\n <img src=\"http://cosmowiki.... | javascript | chosen |
[
{
"from": "system",
"value": "Increase timeout to 20 seconds (previously 10)\n"
},
{
"from": "human",
"value": "var js_files = require('../files/js_files');\n\nmodule.exports = {\n cartodbui: {\n src: js_files.all.concat([\n 'lib/build/user_data.js',\n '<%= assets_dir %>/javascript... | javascript | chosen |
[
{
"from": "system",
"value": "Create new object instead of modifying, to make sure they are optimized by V8\n"
},
{
"from": "human",
"value": "import Set from 'es6-set';\nimport blockElements from 'block-elements';\n\nconst BLOCK_ELEMENTS = new Set(blockElements);\nconst TEXT_ELEMENTS = {\n h1:... | javascript | chosen |
[
{
"from": "system",
"value": "Fix typo for default colspan"
},
{
"from": "human",
"value": "import Ember from 'ember';\nimport layout from 'ember-light-table/templates/components/lt-row';\n\nconst {\n Component,\n computed\n} = Ember;\n\nconst Row = Component.extend({\n layout,\n tagName: 't... | javascript | chosen |
[
{
"from": "system",
"value": "Increase round count for Pizza Productivity\n"
},
{
"from": "human",
"value": "define({\n RoundCount: 2,\n MinPlayers: 4,\n RoundDuration: 90000\n});\n"
},
{
"from": "gpt",
"value": "define({\n RoundCount: 4,\n MinPlayers: 4,\n RoundDuration: 90000... | javascript | chosen |
[
{
"from": "system",
"value": "Fix issue with multi dimensional arrays\n"
},
{
"from": "human",
"value": "import layout from '../../config/layout'\n\nconst fixLocalAsset = assets => (\n (Array.isArray(assets) ? assets : [assets]).map(asset => `/${asset}`)\n)\n\nexport const getAssets = (localAss... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"Log which host is being functionally tested\"\n\nThis reverts commit 824ec144553499911160779833d978d282e88be6.\n"
},
{
"from": "human",
"value": "'use strict';\n\n/*global describe, it*/\nvar path = require('path');\nvar request = require('supertest');\n... | javascript | chosen |
[
{
"from": "system",
"value": "Fix using preload-webpack-plugin, not resource-hints-plugin\n"
},
{
"from": "human",
"value": "const config = require('./config');\nconst pwaOptions = require('./pwaConfig');\n\nconst PUBLIC_PATH = config.PUBLIC_PATH;\n\n/**\n * optional plugins enabled by enabling ... | javascript | chosen |
[
{
"from": "system",
"value": "Add support of multiple molds per condition\n"
},
{
"from": "human",
"value": "var buildMoldsSelector = require('./build-molds-selector');\n\nmodule.exports = function normalizeCondition(condition, alias) {\n\n\tvar moldsSelector = buildMoldsSelector(alias);\n\tvar ... | javascript | chosen |
[
{
"from": "system",
"value": "Add slashes to buttons on homepage\n"
},
{
"from": "human",
"value": "import React, { Component } from 'react';\nimport Button from './Button';\n\nexport default class Header extends Component {\n render() {\n return (\n \t<div className=\"App-header\">\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix problem with navigating to static methods in the reference guide\n"
},
{
"from": "human",
"value": "var showing = null\n\nfunction hashChange() {\n var hash = document.location.hash.slice(1)\n var found = document.getElementById(hash), prefix, sect\n if (foun... | javascript | chosen |
[
{
"from": "system",
"value": "Remove line break between typedef and regexp to be consistent with the other\ncode places.\n"
},
{
"from": "human",
"value": "function testIssue74(){return/'/;}\n!function(s){return/^[£$€?.]/.test(s);}();typeof\n/ ' /;x=/ [/] /;1/foo;(2)/foo;function(){return/foo/};... | javascript | chosen |
[
{
"from": "system",
"value": "Allow hover to be canceled by a scroll\n"
},
{
"from": "human",
"value": "var doc = require('doc-js');\n\nmodule.exports = function(hoverClass, selector){\n var down = [],\n selector = selector || 'button, a',\n hoverClass = hoverClass || 'hover';\n... | javascript | chosen |
[
{
"from": "system",
"value": "BiGCZ: Clear results from map on datacatalog cleanup\n"
},
{
"from": "human",
"value": "\"use strict\";\n\nvar App = require('../app'),\n router = require('../router').router,\n coreUtils = require('../core/utils'),\n models = require('./models'),\n view... | javascript | chosen |
[
{
"from": "system",
"value": "Remove nudged.createFromArray in favor of transform.createFromArray\n"
},
{
"from": "human",
"value": "exports.transform = require('./lib/transform')\nexports.estimate = require('./lib/estimate')\nexports.version = require('./lib/version')\n\nexports.createFromArray... | javascript | chosen |
[
{
"from": "system",
"value": "Use a more specific event selector in SelectDatasetView\n"
},
{
"from": "human",
"value": "import View from '../view';\n\nimport SelectDatasetPageTemplate from './selectDatasetPage.pug';\n\n// View for a collection of datasets in a select tag. When user selects a\n/... | javascript | chosen |
[
{
"from": "system",
"value": "Hide warnings from the React core\n"
},
{
"from": "human",
"value": "// @flow\n\nimport { AppRegistry } from 'react-native';\n\nimport App from './app/App';\n// import App from './app/playground/src/Navigation';\n\nAppRegistry.registerComponent('reactNativeApp', () ... | javascript | chosen |
[
{
"from": "system",
"value": "Change image size limit down to 1mb per @ednapiranha\n"
},
{
"from": "human",
"value": "var bodyParser = require('body-parser')\nvar dataUriToBuffer = require('data-uri-to-buffer')\nvar express = require('express')\nvar app = express()\n\nvar transform = require(\".... | javascript | chosen |
[
{
"from": "system",
"value": "Return the tree after postprocess\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar rework = require('broccoli-rework');\n\nmodule.exports = {\n name: 'ember-cli-rework',\n\n included: function(app) {\n this.app = app;\n this.plugins = this.app.options... | javascript | chosen |
[
{
"from": "system",
"value": "Handle domain, secure and httpOnly flags\n"
},
{
"from": "human",
"value": "/*jslint node: true*/\nfunction getCookie(req, cookieName) {\n var cookies = {},\n output;\n if (req.headers.cookie) {\n req.headers.cookie.split(';').forEach(function (c... | javascript | chosen |
[
{
"from": "system",
"value": "Add CORS headers to GET response\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst crypto = require('crypto');\n\n// User ARN: arn:aws:iam::561178107736:user/prx-upload\n// Access Key ID: AKIAJZ5C7KQPL34SQ63Q\nconst key = process.env.ACCESS_KEY;\n\nexports.h... | javascript | chosen |
[
{
"from": "system",
"value": "Set indexKey once per row, not per column.\n\nThe performance improvement depends on the number of columns, but on a\nreal data set of 5000 rows and 11 resolved columns this improves\nperformance by 8.7%.\n\nThis does not change the result since the order of keys in the spread ... | javascript | chosen |
[
{
"from": "system",
"value": "Add temporary console logs to help track down an auth bug sometimes found in mobile iOS Safari\n"
},
{
"from": "human",
"value": "const\n nJwt = require('njwt'),\n config = require('config.js'),\n errors = require('feathers-errors');\n\n\n\nfunction process... | javascript | chosen |
[
{
"from": "system",
"value": "Update name validation to meet steam criteria: 2 <= length <= 32\n"
},
{
"from": "human",
"value": "import validator from 'validator'\nimport Player from '../models/player'\n\nconst isValidIdForPlatform = (input, platform) => {\n const platformId = Player.getPlatfo... | javascript | chosen |
[
{
"from": "system",
"value": "Fix for non-remark parsers or compilers\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar commentMarker = require('mdast-comment-marker');\n\nmodule.exports = commentconfig;\n\n/* Modify `processor` to read configuration from comments. */\nfunction commentconf... | javascript | chosen |
[
{
"from": "system",
"value": "Use a regular expression to parse regular expressions :smile:\n"
},
{
"from": "human",
"value": "// Constructor\nvar RegExpParser = module.exports = {};\n\n/**\n * parse\n * Parses a string input\n *\n * @name parse\n * @function\n * @param {String} input the string... | javascript | chosen |
[
{
"from": "system",
"value": "Disable focusing on after dragging a node"
},
{
"from": "human",
"value": "webvowl.modules.focuser = function () {\n\tvar focuser = {},\n\t\tfocusedElement;\n\n\tfocuser.handle = function (clickedElement) {\n\t\tif (focusedElement !== undefined) {\n\t\t\tfocusedElem... | javascript | chosen |
[
{
"from": "system",
"value": "Upgrade to new preprocess API\n"
},
{
"from": "human",
"value": "var _ = require('lodash');\nvar map = require('map-stream');\nvar pp = require('preprocess');\nvar path = require('path');\n\nmodule.exports = function (options) {\n var opts = _.merge({}... | javascript | chosen |
[
{
"from": "system",
"value": "Remove sparkline from spec (not needed anymore)\n"
},
{
"from": "human",
"value": "module.exports = function(config) {\n config.set({\n basePath: '',\n frameworks: ['mocha', 'chai-jquery', 'jquery-2.1.0', 'chai', 'sinon-chai', 'fixture'],\n files: [\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add some logging to https.request\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar env = require('./env.json');\n\nfunction httpPost(req, cb) {\n var https = req.deps.https;\n console.log('env:', env);\n\n var postData = JSON.stringify({\n metadata: req... | javascript | chosen |
[
{
"from": "system",
"value": "Add default API URL for client.\n"
},
{
"from": "human",
"value": "/**\n * index.js\n * Client entry point.\n *\n * @author Francis Brito <fr.br94@gmail.com>\n * @license MIT\n */\n'use strict';\n\n/**\n * Client\n * Provides methods to access PrintHouse's API.\n *\... | javascript | chosen |
[
{
"from": "system",
"value": "Fix trigger not returning itself, but undefined\n\n`Array.prototype.forEach` returns `undefined`\n"
},
{
"from": "human",
"value": "module.exports = function() {\n\n let subscribers = [], self\n\n return self = {\n\n // remove all subscribers\n clear: (event... | javascript | chosen |
[
{
"from": "system",
"value": "Move to more functional, expression-based conditionals\n"
},
{
"from": "human",
"value": "var VOWELS = /[aeiou]/gi;\nvar VOWELS_AND_SPACE = /[aeiou\\s]/g;\n\nexports.parse = function parse(string, join){\n if(typeof string !== 'string'){\n throw new TypeError(... | javascript | chosen |
[
{
"from": "system",
"value": "Test google api on server\n"
},
{
"from": "human",
"value": "var express = require('express');\nvar app = express();\nvar image_utils = require('./image_utils.js');\n\napp.set('port', (process.env.PORT || 5001));\n\n/* \nSearch latest images search\n*/\napp.get(\"/a... | javascript | chosen |
[
{
"from": "system",
"value": "Fix failed linting during npm test on a clean directory\n"
},
{
"from": "human",
"value": "'use strict';\n\n// Global init\nglobal.Promise = require('babel-runtime/core-js/promise').default = require('bluebird');\n\n// Exports\nmodule.exports = require('./dist/index... | javascript | chosen |
[
{
"from": "system",
"value": "Fix missing dot before extension.\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar fileType = require('file-type');\nvar through = require('through2');\nvar uuid = require('uuid');\nvar Vinyl = require('vinyl');\n\nmodule.exports.file = function (buf, name) {... | javascript | chosen |
[
{
"from": "system",
"value": "Refactor code to improve bundle size\n"
},
{
"from": "human",
"value": "'use strict'\n\nmodule.exports = trimTrailingLines\n\nvar line = '\\n'\n\n// Remove final newline characters from `value`.\nfunction trimTrailingLines(value) {\n var string = String(value)\n v... | javascript | chosen |
[
{
"from": "system",
"value": "Reset array after each use\n"
},
{
"from": "human",
"value": "'use strict'\nconst _ = require('lodash')\nconst Promise = require('bluebird')\nconst arr = []\n\nmodule.exports = function loadAllPages (callFx, opts) {\n opts['page'] = opts.page || 1\n\n return Promi... | javascript | chosen |
[
{
"from": "system",
"value": "Add option to print version\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar yargs = require('yargs');\n\nvar uploader = require('./lib/uploader');\nvar version = require('./package.json').version;\n\n\nvar argv = yargs\n .usage('$0 [options] <directory>')\n... | javascript | chosen |
[
{
"from": "system",
"value": "Add rule selector to console warning\n"
},
{
"from": "human",
"value": "var postcss = require('postcss');\n\nmodule.exports = postcss.plugin('postcss-property-lookup', propertyLookup);\n\nfunction propertyLookup() {\n return function(css, result) {\n css.eachRul... | javascript | chosen |
[
{
"from": "system",
"value": "Remove API to clear stored modules\n"
},
{
"from": "human",
"value": "\n/*jslint browser:true, node:true*/\n\n'use strict';\n\n/**\n * Module Dependencies\n */\n\n\nvar View = require('./view');\nvar store = require('./store');\n\n/**\n * Creates and registers a\n *... | javascript | chosen |
[
{
"from": "system",
"value": "Add firstDayOfWeek to Settings mapped props\n"
},
{
"from": "human",
"value": "import { connect } from 'react-redux';\nimport { bindActionCreators } from 'redux';\n\nimport * as actionCreators from './actionCreators';\nimport Settings from './Settings';\n\nconst map... | javascript | chosen |
[
{
"from": "system",
"value": ":bug: Fix issue in tests where old was not defined\n"
},
{
"from": "human",
"value": "'use strict';\n// logger.js tests\nconst chai = require('chai');\nconst expect = chai.expect;\nconst chalk = require('chalk');\nconst Logger = require('../lib/logger');\n// Init lo... | javascript | chosen |
[
{
"from": "system",
"value": "Format son in the debug print.\n"
},
{
"from": "human",
"value": "import _ from 'underscore'\nimport sendMessage from './sendMessage'\nimport sendResultBy from './sendResultBy'\nimport sendIgnore from './sendIgnore'\nimport debug from 'debug'\n\nexport default funct... | javascript | chosen |
[
{
"from": "system",
"value": "Set date when creating event, not when it's require'd\n"
},
{
"from": "human",
"value": "define(['backbone', 'marionette'], function(Backbone, Marionette) {\n return Backbone.View.extend({\n template: '#event-creation',\n\n events: {\n 'c... | javascript | chosen |
[
{
"from": "system",
"value": "Change word from Done to Next\n"
},
{
"from": "human",
"value": "import React from 'react';\n\nclass SimpleTourItem extends React.Component {\n\n render() {\n const containerStyle = {\n background: 'white',\n padding: '20px',\n color: 'black',\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add terminal . at end of sentence in looselyMatches documentation string\n"
},
{
"from": "human",
"value": "\"use strict\";\n\nconst flow = require(\"lodash.flow\");\nconst deburr = require(\"lodash.deburr\");\nconst toLower = require(\"lodash.tolower\");\n\ncon... | javascript | chosen |
[
{
"from": "system",
"value": "Make the middleware regen after pops.\n"
},
{
"from": "human",
"value": "export default class MiddlewareStack {\n constructor(handler, stack = []) {\n this._handler = handler;\n this._stack = stack.map(element => (typeof element === 'function' ? new element()... | javascript | chosen |
[
{
"from": "system",
"value": "Add test for REPLACE route\n"
},
{
"from": "human",
"value": "var makeSignatureFromRoutes = require('../../src/react/router').makeSignatureFromRoutes\n\ndescribe(\"react: makeSignatureFromRoutes\", function() {\n it(\"should correctly join paths\", function() {\n\n... | javascript | chosen |
[
{
"from": "system",
"value": "fix: Increase client-side network timeout from 20 seconds to 60\n\nWe're having problems in the staging environment where requests\nare taking longer than 20 seconds and are timing out so the user can't\nperform certain actions. Increasing the timeout to 60 seconds won't\nimpro... | javascript | chosen |
[
{
"from": "system",
"value": "Set the Authorization header if a token exists\n"
},
{
"from": "human",
"value": "var svcMod = angular.module( \"linksWeb.service-api\", [] );\n\n\nsvcMod.factory( 'API', [ \"$http\", \"$window\", function ( $http, $window ) {\n\n var apiRequest = function ( meth... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"Add fixture for getting an xform from an external server\"\n\nThis reverts commit 8ef11ed11f09b9f4ce7d53234fdb6100c7fe8451.\n"
},
{
"from": "human",
"value": "var sample_xform = require('./sample_xform');\n\nmodule.exports = function() {\n return [\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Complete rewrite in an effort to gain performance"
},
{
"from": "human",
"value": "/*! matchMedia() polyfill - Test a CSS media type/query in JS. Authors & copyright (c) 2012: Scott Jehl, Paul Irish, Nicholas Zakas. Dual MIT/BSD license */\n\nwindow.matchMedia = win... | javascript | chosen |
[
{
"from": "system",
"value": "Add .visuallyhidden class to Pa11y test excludes\n"
},
{
"from": "human",
"value": "// This is our options configuration for Pa11y\n// https://github.com/pa11y/pa11y#configuration\n\nconst options = {\n timeout: 60000,\n hideElements: '.skip-to, .is-visuallyhidden... | javascript | chosen |
[
{
"from": "system",
"value": "Add URL matching to Wikipedia module\n"
},
{
"from": "human",
"value": "const wiki = require('wikijs').default;\n\nmodule.exports.commands = ['wiki', 'wikipedia'];\n\nfunction prettyPage(page) {\n return page.summary()\n // Get the first \"sentence\" (hopefully)... | javascript | chosen |
[
{
"from": "system",
"value": "Change shortcut key for deploy to server\n"
},
{
"from": "human",
"value": "/**\n * Copyright (c) 2019, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.\n *\n * WSO2 Inc. licenses this file to you under the Apache License,\n * Version 2.0 (the \"License\"); you ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix React Native Keyboard warnings\n"
},
{
"from": "human",
"value": "import {DeviceEventEmitter} from 'react-native';\n\nclass KeyboardObserver {\n\n constructor() {\n this.keyboardHeight = 0;\n this.animationWillEndAt = 0;\n this.listeners = {};\n thi... | javascript | chosen |
[
{
"from": "system",
"value": "Update description to imperative mood\n"
},
{
"from": "human",
"value": "'use strict';\n\n/**\n* Computes the inverse of the lower incomplete gamma function.\n*\n* @module @stdlib/math/base/special/gammaincinv\n*\n* @example\n* var gammaincinv = require( '@stdlib/ma... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"Scaling crash testing twitFeed\"\n\nThis reverts commit 3216af3058e496f249781cf97e94359e01d7fa82.\n"
},
{
"from": "human",
"value": "Meteor.methods({\n fetchInstaApi: function(){\n var instaDebounce = _.debounce(Meteor.bindEnvironment(function(){\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add backslash tokens to the escape list.\n"
},
{
"from": "human",
"value": "(function (){\n\"use strict\";\n\nvar BBM = require(\"./BBM.js\");\nvar ENUM = BBM.ENUM;\nvar REGSTR =\n[\n \"\\\"{3,}\"\n, \"--\"\n, \"\\\\*{2}\"\n, \"\\\\^{2}\"\n, \",,\"\n, \"__\"\n, \"'... | javascript | chosen |
[
{
"from": "system",
"value": "Use 'ErrorName: message' format for name\n"
},
{
"from": "human",
"value": "var prevWindowOnError = window.onerror;\nwindow.onerror = function(message, url, line, stack) {\n var now = Date.now();\n stack = stack || 'window@'+url+':'+line+':0';\n Kadira.sendErrors... | javascript | chosen |
[
{
"from": "system",
"value": "Include TinyMCE icons after update\n"
},
{
"from": "human",
"value": "import tinymce from 'tinymce/tinymce';\nwindow.tinymce = tinymce;\nimport 'tinymce/themes/silver';\nimport 'tinymce/plugins/link';\nimport 'tinymce/plugins/lists';\nimport 'tinymce/plugins/image';... | javascript | chosen |
[
{
"from": "system",
"value": "Fix new docs ESLint rule violation.\n"
},
{
"from": "human",
"value": "/**\n * Modules datastore fixtures.\n *\n * Site Kit by Google, Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file e... | javascript | chosen |
[
{
"from": "system",
"value": "Return slim client instead of full client\n\nCo-authored-by: Owen Smith <9069d0e8b554bca3df1592c83c498c5cd0661c2e@omsmith.ca>"
},
{
"from": "human",
"value": "module.exports = import('ifrau').then(function(ifrau) {\n\treturn ifrau.Client;\n});\n"
},
{
"from"... | javascript | chosen |
[
{
"from": "system",
"value": "Sort flags by country code\n"
},
{
"from": "human",
"value": "import Ember from 'ember';\n\nimport countries from './countries';\n\n\nexport default Ember.Component.extend({\n i18n: Ember.inject.service(),\n countries: countries,\n languages: Ember.computed... | javascript | chosen |
[
{
"from": "system",
"value": "Use latest petitions on HP instead...\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport TeaserGrid from 'components/TeaserGrid';\nimport Container from 'components/Container';\nimport BlockContainer from 'components/BlockContainer';\nimport Secti... | javascript | chosen |
[
{
"from": "system",
"value": "Fix default blueprint add missing dependencies\n"
},
{
"from": "human",
"value": "/* globals module */\nmodule.exports = {\n afterInstall: function() {\n var _this = this;\n return _this.addAddonsToProject({\n packages: [\n { name: 'ember-flexberr... | javascript | chosen |
[
{
"from": "system",
"value": "Add banner comment to dis version\n"
},
{
"from": "human",
"value": "var config = require('./webpack.config.js');\nvar webpack = require('webpack');\n\nconfig.devtool = 'source-map';\n\nconfig.output.publicPath = './';\n\nconfig.plugins.push(\n new webpack.DefinePl... | javascript | chosen |
[
{
"from": "system",
"value": "Change Tile to store its own coordinates\n"
},
{
"from": "human",
"value": "function TileMap(w, h) {\n this.width = w;\n this.height = h;\n this.reset();\n}\n\nTileMap.prototype.reset = function() {\n this.map = [];\n for(var y = 0; y < this.height; y++) {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add sourcemaps option to Sass task"
},
{
"from": "human",
"value": "module.exports = {\n options: {\n require: ['sass-css-importer'],\n loadPath: ['<%%= bowerOpts.directory || \"bower_components\" %>'],\n bundleExec: true,\n },\n debug: {\n src: '<%%=... | javascript | chosen |
[
{
"from": "system",
"value": "LIBRA-235: Add html and htm to list of acceptable files\n"
},
{
"from": "human",
"value": "(function() {\n\t\"use strict\";\n\tfunction initPage() {\n\n\t\tvar fileTypes = [\n\t\t\t\"csv\",\n\t\t\t\"gif\",\n\t\t\t\"jpeg\",\n\t\t\t\"jpg\",\n\t\t\t\"mp3\",\n\t\t\t\"mp... | javascript | chosen |
[
{
"from": "system",
"value": "Remove unnecessary check for `n == 0`\n\nThe `while` loop below handles this case anyway. The only ‘overhead’ the check avoided was a single `n--` and a `ToBoolean(0)` — so this was definitely a micro-optimization.\n\nCloses #3.\n"
},
{
"from": "human",
"value": "/*... | javascript | chosen |
[
{
"from": "system",
"value": "Compress CSS into a single file\n"
},
{
"from": "human",
"value": "var requirejs = require('requirejs');\n\nvar applicationConfig = {\n baseUrl: './public/js',\n name: 'app',\n out: './public/app.js',\n mainConfigFile: './public/js/app.js',\n paths: {... | javascript | chosen |
[
{
"from": "system",
"value": "Fix notification-center not to close when button clicked.\n"
},
{
"from": "human",
"value": "import { constant, includes } from 'lodash';\nimport { element } from 'angular';\nimport uiModules from 'ui/modules';\nimport registry from 'ui/registry/chrome_nav_controls'... | javascript | chosen |
[
{
"from": "system",
"value": "Add support for level-3 headings\n"
},
{
"from": "human",
"value": "/*\n * A reusable component to display a styled heading.\n */\n\nimport PropTypes from 'prop-types';\nimport React, {Component} from 'react';\nimport {StyleSheet, css} from 'aphrodite/no-important';... | javascript | chosen |
[
{
"from": "system",
"value": "Add method getRouteFor() to create default route\n"
},
{
"from": "human",
"value": "var httpProxy = require('http-proxy');\nvar http = require('http');\n\nvar proxy = httpProxy.createProxy();\n\nvar routes = {\n // Router\n 'hook.labeli.org' : 'http://... | javascript | chosen |
[
{
"from": "system",
"value": "Fix local api server path because of Foreman\n"
},
{
"from": "human",
"value": "var merge = require('webpack-merge')\nvar prodEnv = require('./prod.env')\n\nmodule.exports = merge(prodEnv, {\n NODE_ENV: '\"development\"',\n API_HOST: '\"http://localhost:3000\"'\n}... | javascript | chosen |
[
{
"from": "system",
"value": "Add explicit include (early in order) for the leaflet.markercluster js file\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 w... | javascript | chosen |
[
{
"from": "system",
"value": "Add a function for initing boostrapSwitch outside of $()\n"
},
{
"from": "human",
"value": "$(function () {\n $(\"[class='switch-checkbox']\").bootstrapSwitch();\n\n $('input[class=\"switch-checkbox\"]').on('switchChange.bootstrapSwitch', function(event, state) {\... | javascript | chosen |
[
{
"from": "system",
"value": "Change 'not found' to 'method not allowed'\n"
},
{
"from": "human",
"value": "const fs = require('fs');\nconst path = require('path');\nconst { infer } = require('bayesjs');\nconst { json, send } = require('micro');\n\nconst htmlContent = fs\n .readFileSync(path.jo... | javascript | chosen |
[
{
"from": "system",
"value": "Add token in sharding manager\n"
},
{
"from": "human",
"value": "const Discord = require('discord.js');\nconst config = require('./config.json');\nconst manager = new Discord.ShardingManager('./bot.js');\n\n//Spawn with a relevant number of shards automatically\nman... | javascript | chosen |
[
{
"from": "system",
"value": "Change meta name for valid html output\n"
},
{
"from": "human",
"value": "/* Listen for messages and get modResource meta tag*/\nchrome.runtime.onMessage.addListener(function(msg, sender, sendResponse) {\n if (msg.command && (msg.command == \"getResource\")) {\n\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add simple test for TB.response\n"
},
{
"from": "human",
"value": "import TB from '../../src/tadaboard-node-sdk';\n\ndescribe('TB', () => {\n});\n"
},
{
"from": "gpt",
"value": "import TB from '../../src/tadaboard-node-sdk';\n\ndescribe('TB', () => {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "notification: Refactor code for bot mention in reply.\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst {\n remote: { app }\n} = require('electron');\n\nconst DefaultNotification = require('./default-notification');\nconst { appId, loadBots } = require('./h... | javascript | chosen |
[
{
"from": "system",
"value": "Fix flexberry-edit-form blueprint getCellComponent template\n"
},
{
"from": "human",
"value": "(attr, bindingPath, model) {\n let cellComponent = this._super(...arguments);\n if (attr.kind === 'belongsTo') {\n switch (<% '`${model.modelName}+${bindingPat... | javascript | chosen |
[
{
"from": "system",
"value": "Fix early redirect when uploading multiple files\n\nI had the case where I needed to upload 20+ files. Some files were uploaded others not. \r\nThe others failed due to the location.reload() function triggered on the first success emit from a first successful upload.\r\n\r\nIt ... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"sourceMappingURL instead of sourceContent for now\"\n\nThis reverts commit cd758092a64445d48c5e4ab61407a5c5b51ea8f1.\n"
},
{
"from": "human",
"value": "module.exports = {\n app: {\n src: ['tmp/transpiled/app/**/*.js'],\n dest: 'tmp/public/assets/app.... | javascript | chosen |
[
{
"from": "system",
"value": "Fix resolve for minified route controller\n"
},
{
"from": "human",
"value": "define(['app', 'controllers/Today', 'controllers/History', 'services/History'], function (app) {\n \"use strict\";\n\n return app.config(['$routeProvider', function (routes) {\n routes... | javascript | chosen |
[
{
"from": "system",
"value": "Remove fancybox afterLoad / afterClose event on destroy.\n"
},
{
"from": "human",
"value": "\"use strict\";\n\nangular.module(\"hikeio\").\n\tdirective(\"fancybox\", [\"$rootScope\", function($rootScope) {\n\t\treturn {\n\t\t\tlink: function (scope, element, attrs) ... | javascript | chosen |
[
{
"from": "system",
"value": "muwasm: Add logging to test server\n"
},
{
"from": "human",
"value": "\"use strict\";\n\nconst http = require(\"http\");\nconst express = require(\"express\");\n\nlet app = express();\n\n// Use Cross-Origin headers so browsers allow SharedArrayBuffer\napp.use(functi... | javascript | chosen |
[
{
"from": "system",
"value": "test: Update directoryStructure test to include all base folders. Refactor order to mirror folder order, minor refactor\n"
},
{
"from": "human",
"value": "var path = require('path');\nvar chai = require('chai');\n\nchai.use(require('chai-fs'));\nchai.should();\n\nco... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"Convert relative apiURL paths to absolute paths\"\n\nThis reverts commit d4649622aecd8d1cae56963fd4f214acf45b0cf3.\n"
},
{
"from": "human",
"value": "var url = require(\"url\");\nvar packageJSON = require(\"../../../package.json\");\n\nvar config = {\n // ... | javascript | chosen |
[
{
"from": "system",
"value": "Increase headers background color opacity\n"
},
{
"from": "human",
"value": "angular.module('soundmist').directive('player', function (Player) {\n return {\n restrict: 'E',\n scope: false,\n replace: false,\n templateUrl: 'directives/player/player.html'... | javascript | chosen |
[
{
"from": "system",
"value": "Implement invitation data service (WAL-32)\n"
},
{
"from": "human",
"value": "'use strict';\n\n(function() {\n angular.module('ncsaas')\n .service('invitationService', ['baseServiceClass', '$http', 'ENV', invitationService]);\n\n function invitationService(base... | javascript | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.