conversations listlengths 2 3 | source stringclasses 1 value | stack stringclasses 1 value |
|---|---|---|
[
{
"from": "system",
"value": "Fix organization profile by changing computed property\n"
},
{
"from": "human",
"value": "import Ember from 'ember';\n\nexport default Ember.Component.extend({\n classNames: ['organization-profile'],\n\n credentials: Ember.inject.service(),\n\n organizationMember... | javascript | chosen |
[
{
"from": "system",
"value": "Add backBtn styling, fix indentation\n"
},
{
"from": "human",
"value": "/**\n *\n * @flow\n */\n\n'use strict';\n\nimport {StyleSheet} from 'react-native';\n\n const GlobalStyles = {\n contentWrapper: {\n paddingLeft: 5,\n paddingRight: 5,\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Allow almost all puppeteer pdf configurations\n"
},
{
"from": "human",
"value": "const puppeteer = require(\"puppeteer\")\nconst defaults = require(\"../configurations/defaults\")\n\nconst puppeteerArgs = [\n \"--no-sandbox\",\n \"--disable-setuid-sandbox\",\n \"... | javascript | chosen |
[
{
"from": "system",
"value": "Handle null and undefined log levels properly\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst Winston = require('winston');\n\nfunction Logger(level) {\n const logLevel = level.toLowerCase() || 'info';\n\n const logger = new Winston.Logger({\n level: ... | javascript | chosen |
[
{
"from": "system",
"value": "Load file if params are not present\n"
},
{
"from": "human",
"value": "'use strict'\n\nvar fs = require('fs')\nvar path = require('path')\nvar existFile = require('exists-file')\n\nvar minimistPath = path.join(__dirname, '..', 'node_modules', 'meow', 'node_modules',... | javascript | chosen |
[
{
"from": "system",
"value": "Fix down button to dp the same tag search\n"
},
{
"from": "human",
"value": "import { remote } from 'electron';\nimport { call, select, put, takeLatest } from 'redux-saga/effects';\nimport GIF from './constants';\nimport { result, error, clear } from './actions';\ni... | javascript | chosen |
[
{
"from": "system",
"value": "Fix issue when logging out on contact page\n"
},
{
"from": "human",
"value": "import { connect } from 'react-redux';\nimport ContactUs from '../components/ContactUs';\nimport { submitForm } from '../actions/contact';\n\nconst mapStateToProps = (state) => ({\n conta... | javascript | chosen |
[
{
"from": "system",
"value": "Mark forms as not submitted after AJAX complete.\n"
},
{
"from": "human",
"value": "var AJAX_LOADER = '<span class=\"ajax_loader\"></span>';\n\n$(document).bind('ajaxComplete', function () {\n $('.ajax_loader').remove();\n});\n"
},
{
"from": "gpt",
"v... | javascript | chosen |
[
{
"from": "system",
"value": "Fix read hidden directory error.\n"
},
{
"from": "human",
"value": "var fs = require('fs'),\n\tpath = require('path'),\n\tutil = require('../lib/util');\n\nvar Source = util.inherit(Object, {\n\t\t_initialize: function (root) {\n\t\t\tthis._root = root;\n\t\t},\n\n\... | javascript | chosen |
[
{
"from": "system",
"value": "Use expiresIn instead of expiresInMinutes.\n\nexpiresInMinutes and expiresInSeconds is deprecated."
},
{
"from": "human",
"value": "var router = require('express').Router();\nvar jwt = require('jsonwebtoken');\nvar jwtSecret = require('../config/jwt_secret');\nvar U... | javascript | chosen |
[
{
"from": "system",
"value": "Fix dependency inclusion for require statement\n"
},
{
"from": "human",
"value": "const redis = require('./redis');\nconst config = require('./config');\n\nconst getRequest = async (requestId) => {\n // Set TTL for request\n redis.expire(`requests:${requestId}`, c... | javascript | chosen |
[
{
"from": "system",
"value": "Fix adjective and number count to match the updated lists.\n"
},
{
"from": "human",
"value": "var fs = require(\"fs\");\nvar path = require(\"path\");\nvar _ = require(\"lodash\");\n\nvar animals;\nvar adjectives;\n\nmodule.exports = function () {\n\tif (animal... | javascript | chosen |
[
{
"from": "system",
"value": "Comment out fixtures until needed\n"
},
{
"from": "human",
"value": "'use strict';\n\nmodule.exports = function (config) {\n config.set({\n autowatch: false,\n basePath: __dirname,\n browsers: ['PhantomJS'],\n files: [\n 'app/assets/bower_component... | javascript | chosen |
[
{
"from": "system",
"value": "Remove Redux devtools from production build\n"
},
{
"from": "human",
"value": "import { createStore } from 'redux';\n\nimport reducer from 'reducers';\nimport initialState from 'initialState';\n\nconst store = createStore(reducer, initialState,\n window.devToolsExt... | javascript | chosen |
[
{
"from": "system",
"value": "Remove `--jedify-lang` command line option\n"
},
{
"from": "human",
"value": "var through = require('through')\n , falafel = require('falafel')\n , unparse = require('escodegen').generate\n , util = require('util')\n , minimist = require('minimist')\n\nvar argv ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix getShortDate to return leading zeros\n"
},
{
"from": "human",
"value": "export function checkStatus(response) {\n if (response.status >= 200 && response.status < 300) {\n return response.json();\n }\n throw new Error(response.statusText);\n}\n\nexport func... | javascript | chosen |
[
{
"from": "system",
"value": "Improve error handling by returning the `statusCode` and including the failed URL in the rejected Error\n"
},
{
"from": "human",
"value": "import { defaults } from 'lodash';\nimport request from 'request';\nimport config from '../../config';\n\nexport default (url, ... | javascript | chosen |
[
{
"from": "system",
"value": "Exit with status 0 when not running in watch mode\n"
},
{
"from": "human",
"value": "import UpstreamDredd from 'dredd';\n\nimport Reporter from './reporter';\n\nexport default class Dredd extends UpstreamDredd {\n constructor(config, logger) {\n super(conf... | javascript | chosen |
[
{
"from": "system",
"value": "Update Filtered to Selected object key\n"
},
{
"from": "human",
"value": "export function load(files) {\n\treturn {\n\t\ttype: 'FILES_DATA_LOAD',\n\t\tpayload: files.map(file => {\n\t\t\treturn {\n\t\t\t\tid: file.Id,\n\t\t\t\tnewName: file.NewName,\n\t\t\t\torigina... | javascript | chosen |
[
{
"from": "system",
"value": "Fix google visualization undefined error \n\nsimilar to https://github.com/sir-dunxalot/ember-google-charts/pull/56 (with failing tests), see also the comment in https://github.com/sir-dunxalot/ember-google-charts/issues/57"
},
{
"from": "human",
"value": "import RS... | javascript | chosen |
[
{
"from": "system",
"value": "Remove unused foundation JS components.\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 directory, lib/assets/jav... | javascript | chosen |
[
{
"from": "system",
"value": "Fix mixture of quotes and deprecated unescape method usage\n"
},
{
"from": "human",
"value": "var getUrlVar = function(key) {\n var result = new RegExp(key + \"=([^&]*)\", \"i\").exec(window.location.search);\n return result && unescape(result[1]) || \"\";\n};... | javascript | chosen |
[
{
"from": "system",
"value": "Switch around fixtures.js and dummy.js in path config\n"
},
{
"from": "human",
"value": "var src = exports.src = {};\n\nsrc.app = [\n 'src/index.js',\n 'src/api.js',\n 'src/app.js'\n];\n\nsrc.dummy = [\n 'src/dummy.js',\n 'src/fixtures.js'\n];\n\nsrc.... | javascript | chosen |
[
{
"from": "system",
"value": "Use tresdb-key in attachment generation\n"
},
{
"from": "human",
"value": "var db = require('tresdb-db');\n\nexports.count = function (callback) {\n // Count non-deleted attachments\n //\n // Parameters:\n // callback\n // function (err, number)\n //\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix bug where Signup form is incorrectyl disabled\n\nThe signup form is being disabled in all cases because of an operator\nprecedence problem.\n"
},
{
"from": "human",
"value": "$(() => {\n if (location.pathname === '/users/sign_up' || location.pathname === '/user... | javascript | chosen |
[
{
"from": "system",
"value": "Save favorite comments to account\n"
},
{
"from": "human",
"value": "import Ember from 'ember';\n\nexport default Ember.Component.extend({\n classNameBindings: ['offset:col-md-offset-1'],\n offset: false,\n timestamp: function() {\n return moment.unix(this.get... | javascript | chosen |
[
{
"from": "system",
"value": "Make OptionList return gracefully when iterating over falsy values"
},
{
"from": "human",
"value": "import PropTypes from \"prop-types\";\nimport React, { Component } from \"react\";\nimport {\n StyleSheet,\n ScrollView,\n View,\n TouchableWithoutFeedback,\n Vi... | javascript | chosen |
[
{
"from": "system",
"value": "feat: Handle all requests, not only GET\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\nconst express = require('express');\nconst fileExists = require('file-exists');\nconst bodyParser = require('body-parser');\nconst fs = require('fs');\nconst { port = 812... | javascript | chosen |
[
{
"from": "system",
"value": "Add capability to retrieve properties of functions\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar deepFind = function(obj, path) {\n\n if ((typeof obj !== \"object\") | obj === null) {\n\t return undefined;\n }\n if (typeof path === 'string') {\n pat... | javascript | chosen |
[
{
"from": "system",
"value": "Fix TypeError for endsWith() with `null` suffix\n"
},
{
"from": "human",
"value": "/*jshint node: true */\n\"use strict\";\n\nmodule.exports = {\n\n /**\n * Returns true if and only if the string value of the first argument\n * ends with the given suffix.... | javascript | chosen |
[
{
"from": "system",
"value": "Set up controllers for home and forecast\n"
},
{
"from": "human",
"value": "/*jshint esversion: 6 */\n\nconst primed = angular.module('primed', ['ngRoute', 'ngResource']);\n"
},
{
"from": "gpt",
"value": "/*jshint esversion: 6 */\n\nconst primed = angula... | javascript | chosen |
[
{
"from": "system",
"value": "Add tests for section merging\n"
},
{
"from": "human",
"value": "var fs = require('fs');\nvar path = require('path');\nvar assert = require('assert');\n\nvar page = require('../').parse.page;\n\n\nvar CONTENT = fs.readFileSync(path.join(__dirname, './fixtures/PAGE.m... | javascript | chosen |
[
{
"from": "system",
"value": "Set default prefetech to unlimited value\n"
},
{
"from": "human",
"value": "require('./lib/boot/logger');\n\nvar defaultConfig = {\n amqpUrl: process.env.AMQP_URL || 'amqp://localhost',\n amqpPrefetch: process.env.AMQP_PREFETCH || 10,\n amqpRequeue: true\n};\n\nm... | javascript | chosen |
[
{
"from": "system",
"value": "Fix path on .scss file detected"
},
{
"from": "human",
"value": "var path = require('path');\nvar findParentDir = require('find-parent-dir');\nvar fs = require('fs');\n\nfunction resolve(targetUrl, source) {\n var packageRoot = findParentDir.sync(source, 'node_modu... | javascript | chosen |
[
{
"from": "system",
"value": "Reset size also on 'request'.\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar throttle = require('throttleit');\n\nfunction requestProgress(request, options) {\n var reporter;\n var delayTimer;\n var delayCompleted;\n var totalSize;\n var prev... | javascript | chosen |
[
{
"from": "system",
"value": "js: Implement startScan(), stopScan() and didDiscoverDevice()\n"
},
{
"from": "human",
"value": "'use strict';\n\nimport { NativeAppEventEmitter, NativeModules } from 'react-native';\nconst ReactNativeBluetooth = NativeModules.ReactNativeBluetooth;\n\nconst didChang... | javascript | chosen |
[
{
"from": "system",
"value": "Allow dots in callback names.\n"
},
{
"from": "human",
"value": "module.exports = function(options) {\n\tvar cb = (options && options.variable) || 'cb';\n\tvar regexp = new RegExp('(?:\\\\b|&)' + cb + '=([a-zA-Z$_][a-zA-Z0-9$_]*)(?:&|$)');\n\treturn {\n\t\treshook: ... | javascript | chosen |
[
{
"from": "system",
"value": "Add explicit config.js to ghost constructor\n"
},
{
"from": "human",
"value": "const ghost = require('ghost');\n\nghost().then(function (ghostServer) {\n ghostServer.start();\n});\n"
},
{
"from": "gpt",
"value": "const ghost = require('ghost');\n\ngho... | javascript | chosen |
[
{
"from": "system",
"value": "Add handler to return faked book results\n"
},
{
"from": "human",
"value": "\"use strict\";\n\nvar express = require(\"express\");\n\nmodule.exports = function () {\n \n var app = express();\n\n // 404 everything\n app.all(\"*\", function (req, res) {\n res.s... | javascript | chosen |
[
{
"from": "system",
"value": "Fix for tooltip on parent element being removed\n"
},
{
"from": "human",
"value": "import Ember from 'ember';\nimport { moduleForComponent, test } from 'ember-qunit';\n\nlet component;\n\nmoduleForComponent('tooltip-on-parent', 'Unit | Component | tooltip on parent'... | javascript | chosen |
[
{
"from": "system",
"value": "Fix code style of assign\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\n'use strict';\nvar meow = require('meow');\nvar zipGot = require('./');\nvar objectAssign = require('object-assign');\n\nvar cli = meow({\n\thelp: [\n\t\t'Usage',\n\t ' zip-got <url> ... | javascript | chosen |
[
{
"from": "system",
"value": "Modify to wait until angular is loaded on protractor\n"
},
{
"from": "human",
"value": "require('ts-node/register');\nexports.config = {\n baseUrl: 'http://127.0.0.1:8100/',\n seleniumAddress: 'http://127.0.0.1:4723/wd/hub',\n\n specs: [\n '../src/**/*.e2e.ts'... | javascript | chosen |
[
{
"from": "system",
"value": "Fix serving of user uploaded files\n"
},
{
"from": "human",
"value": "//\n// Copyright 2014 Ilkka Oksanen <iao@iki.fi>\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 null check for containerRef\n"
},
{
"from": "human",
"value": "import GeminiScrollbar from 'react-gemini-scrollbar';\n\nlet scrollbarWidth = null;\n\nconst ScrollbarUtil = {\n /**\n * Taken from Gemini's source code with some edits\n * https://github.com/no... | javascript | chosen |
[
{
"from": "system",
"value": "Disable the lint error about using hasOwnProperty. That call should be fine in this context.\n"
},
{
"from": "human",
"value": "// Adapted from https://github.com/jonschlinkert/is-plain-object\nfunction isObject(val) {\n return val != null && typeof val === 'object... | javascript | chosen |
[
{
"from": "system",
"value": "Refactor Optimize with registered components.\n"
},
{
"from": "human",
"value": "/**\n * Optimize module initialization.\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 u... | javascript | chosen |
[
{
"from": "system",
"value": "Use submit button type in search posts well.\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport PropTypes from 'prop-types';\nimport {\n Well, InputGroup, FormControl, Button, Glyphicon\n} from 'react-bootstrap';\n\n\nclass SearchPostsWell exte... | javascript | chosen |
[
{
"from": "system",
"value": "Use useCallback so that `increment` is memoized\n"
},
{
"from": "human",
"value": "import React, {useState} from 'react';\nimport PropTypes from 'prop-types';\n\nconst Counter = ({initialCount}) => {\n const [count, setCount] = useState(initialCount);\n const ... | javascript | chosen |
[
{
"from": "system",
"value": "Make un-versioned client script return the latest\n"
},
{
"from": "human",
"value": "\"use strict\";\n\nvar messages = require(\"./messages\");\nvar config = require(\"./config\");\nvar snippetUtils = require(\"./snippet\").utils;\n\nvar connect = req... | javascript | chosen |
[
{
"from": "system",
"value": "Add exit(1) if any promises fail during exit\n"
},
{
"from": "human",
"value": "var utils = require(\"radiodan-client\").utils,\n logger = utils.logger(__filename);\n\nmodule.exports = function(radiodan){\n return function() {\n clearPlayers(radiodan.cache.pl... | javascript | chosen |
[
{
"from": "system",
"value": "Change API keys to uppercase\n"
},
{
"from": "human",
"value": "var Twit = require('twit');\nvar twitInfo = [consumer_key, consumer_secret, access_token, access_token_secret];\n\n//use when testing locally\n// var twitInfo = require('./config.js')\n\nvar twitter = n... | javascript | chosen |
[
{
"from": "system",
"value": "Add -h option to CLI\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\n\nvar browserslist = require('./');\nvar pkg = require('./package.json');\nvar args = process.argv.slice(2);\n\nif ( args.length <= 0 || args.indexOf('--help') >= 0 ) {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix IE 8 by using compatible date methods\n\n`Date.now()` is not supported in IE8"
},
{
"from": "human",
"value": "/*\n * raf.js\n * https://github.com/ngryman/raf.js\n *\n * original requestAnimationFrame polyfill by Erik Möller\n * inspired from paul_irish gist an... | javascript | chosen |
[
{
"from": "system",
"value": "Add duration to notifications API\n"
},
{
"from": "human",
"value": "import AppDispatcher from '../dispatcher/AppDispatcher';\nimport AppConstants from '../constants/AppConstants';\n\n\n\nexport default {\n\n add: function(type, content) {\n var id = Date... | javascript | chosen |
[
{
"from": "system",
"value": "Create makeMap function (helps for testing later)\n"
},
{
"from": "human",
"value": "$(document).ready(function(){\nvar latlng = new google.maps.LatLng(45.5374054, -122.65028);\nvar myOptions = {\n zoom: 8,\n center: latlng,\n mapTypeId: google.maps.MapTyp... | javascript | chosen |
[
{
"from": "system",
"value": "Use transpiled modules for legacy build\n"
},
{
"from": "human",
"value": "const path = require('path');\nmodule.exports = {\n entry: './build/index.js',\n devtool: 'source-map',\n mode: 'production',\n resolve: {\n alias: {\n ol: path.resolve('./src/ol'... | javascript | chosen |
[
{
"from": "system",
"value": "Fix bug in no issue validation logic\n"
},
{
"from": "human",
"value": "import issueStrats from '../issue-strategies/index.js';\nimport * as promiseUtils from '../promise-utils.js';\n\nfunction validateStrategies(issueKey, jiraClientAPI) {\n return jiraClientAPI.fi... | javascript | chosen |
[
{
"from": "system",
"value": "Add player upgrade packet code\n"
},
{
"from": "human",
"value": "module.exports = {\n // Packet constants\n PLAYER_START: \"1\",\n PLAYER_ADD: \"2\",\n PLAYER_ANGLE: \"2\",\n PLAYER_UPDATE: \"3\",\n PLAYER_ATTACK :\"4\",\n LEADERBOAD: \"5\",\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add confirmation dialog when enabling/disabling an organization\n"
},
{
"from": "human",
"value": "'use strict';\n\nimport _ from 'lodash/core';\n\nexport default class OrganizationsPageController {\n constructor($log, OrganizationService) {\n 'ngInject';\n\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Install `ember-auto-import` to Ember App during `ember install`\n"
},
{
"from": "human",
"value": "/*jshint node:true*/\n\nvar pkg = require('../../package.json');\n\nfunction getPeerDependencyVersion(packageJson, name) {\n var peerDependencies = packageJson.peerDe... | javascript | chosen |
[
{
"from": "system",
"value": "Add querystring flag to disable sourcemaps\n"
},
{
"from": "human",
"value": "/**\n * See https://github.com/evanw/node-source-map-support#browser-support\n * This is expected to be included in a browserify-module to give proper stack traces, based on browserify's s... | javascript | chosen |
[
{
"from": "system",
"value": "Add coverage reporter to browserstack build\n"
},
{
"from": "human",
"value": "const base = require('./karma.base.conf');\n\nmodule.exports = function(config) {\n\tconfig.set(Object.assign(base, {\n\t\tbrowserStack: {\n\t\t\tusername: process.env.BROWSERSTACK_USERNA... | javascript | chosen |
[
{
"from": "system",
"value": "Move mongoose.Promise reassignment out of function\n"
},
{
"from": "human",
"value": "import mongoose from 'mongoose';\n\nconst host = process.env.MONGO_HOST;\nconst database = encodeURIComponent(process.env.MONGO_DATABASE);\nconst user = encodeURIComponent(process.... | javascript | chosen |
[
{
"from": "system",
"value": "Allow ommiting callback argument for serialize method\n"
},
{
"from": "human",
"value": "'use strict';\nQt.include('call.js');\n\nvar createMessageType = (function() {\n var MessageBase = (function() {\n var constructor = function(descriptor) {\n this._desc... | javascript | chosen |
[
{
"from": "system",
"value": "Remove unneeded component import extension\n"
},
{
"from": "human",
"value": "import React, { Component } from 'react';\nimport Button from './components/Button.jsx';\n\nexport default class App extends Component {\nconstructor() {\n super();\n this.state = {\... | javascript | chosen |
[
{
"from": "system",
"value": "Change external Links to a tags\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport { Link } from 'react-router';\n\nimport './Navbar.scss';\n\nexport default class Navbar extends React.Component {\n render () {\n return (\n <div className... | javascript | chosen |
[
{
"from": "system",
"value": "Add success/failure redirects to Passport config\n"
},
{
"from": "human",
"value": "var config = {\n /*\n metrics: {\n port: 4001\n }\n */\n/* // For Passport auth via geddy-passport\n, passport: {\n twitter: {\n consumerKey: 'XXXXX'\n , consumerSe... | javascript | chosen |
[
{
"from": "system",
"value": "Remove unnecessary ball speed checks\n"
},
{
"from": "human",
"value": "var AI;\n\nAI = function(baseSpeed) {\n this.baseSpeed = baseSpeed;\n};\n\n// Simply follows the ball at all times\nAI.prototype.easy = function(player, ball) {\n 'use strict';\n var newY;\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Remove html5mode since it was causing an error and looking for a base tag\n"
},
{
"from": "human",
"value": "angular.module('myApp', [\n 'ngAnimate',\n 'ui.router',\n 'templates'\n ])\n .config(function($stateProvider, $urlRouterProvider, $locationProvider) {\n... | javascript | chosen |
[
{
"from": "system",
"value": "Update user schema for application merge\n"
},
{
"from": "human",
"value": "const mongoose = require('mongoose');\nconst Schema = mongoose.Schema;\n\nconst userSchema = new Schema({\n _id: { type: Number },\n profileImageName: { type: String, default: 'default... | javascript | chosen |
[
{
"from": "system",
"value": "Use vanilla includes function. Correct capitalisation.\n"
},
{
"from": "human",
"value": "/**\n * Utility function to check whether or not a view-context is a site kit view.\n *\n * Site Kit by Google, Copyright 2022 Google LLC\n *\n * Licensed under the Apache Lice... | javascript | chosen |
[
{
"from": "system",
"value": "Fix jest env template value\n"
},
{
"from": "human",
"value": "module.exports = {\n env: {\n amd: <%= (moduleFormat === 'amd') %>,\n commonjs: <%= (moduleFormat === 'commonjs') %>,\n es6: true,\n browser: true,\n jquery: true,\n... | javascript | chosen |
[
{
"from": "system",
"value": "Trim down defaults out of TimeoutDetector.\n"
},
{
"from": "human",
"value": "'use strict'; /*jslint node: true, es5: true, indent: 2 */\nvar util = require('util');\nvar stream = require('stream');\n\nvar TimeoutDetector = module.exports = function(opts) {\n if (o... | javascript | chosen |
[
{
"from": "system",
"value": "Add ‘limit’ parameter to the fetchRecentTracks action to set the number\nof recent tracks to be retrieved\n"
},
{
"from": "human",
"value": "import dispatcher from '../dispatcher/dispatcher';\nimport actionTypes from '../constants/action-types';\n\nimport axios from... | javascript | chosen |
[
{
"from": "system",
"value": "BB-701: Create editor for input=radio, apply it in select-cell\n- fix radio buttons\n"
},
{
"from": "human",
"value": "/*global define*/\ndefine([\n 'underscore',\n 'backgrid'\n], function (_, Backgrid) {\n 'use strict';\n\n var SelectCellRadioEditor;\n\... | javascript | chosen |
[
{
"from": "system",
"value": "Add pushstate flags to booleans\n"
},
{
"from": "human",
"value": "var minimist = require('minimist')\nvar xtend = require('xtend')\n\nmodule.exports = parseArgs\nfunction parseArgs (args, opt) {\n var argv = minimist(args, {\n boolean: [\n 'stream',\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Move to reports on Session verification\n"
},
{
"from": "human",
"value": "import Component from '@ember/component';\nimport { inject as service } from '@ember/service';\nimport { task } from 'ember-concurrency';\n\nexport default Component.extend({\n router: servi... | javascript | chosen |
[
{
"from": "system",
"value": "Send cookies with AJAX requests\n"
},
{
"from": "human",
"value": "var App = Ember.Application.create({\n LOG_TRANSITIONS: true,\n LOG_TRANSITIONS_INTERNAL: true\n});\n\nApp.ApplicationAdapter = DS.RESTAdapter.extend({\n host: 'https://website-api.withregard.io',... | javascript | chosen |
[
{
"from": "system",
"value": "Test the frame contents directly\n"
},
{
"from": "human",
"value": "gemini.suite('CSS component', (suite) => {\n suite.setUrl('/?selectedKind=CSS%20component&selectedStory=default')\n .setCaptureElements('#storybook-preview-iframe')\n .capture('plain');\n});\... | javascript | chosen |
[
{
"from": "system",
"value": "Remove unwanted only from tests\n"
},
{
"from": "human",
"value": "import test from 'ava'\nimport { assert } from '../../utils/chai'\nimport { normalizeHandler } from '../../utils/normalizer'\nimport * as queue from '../../../src/resources/queue/handler'\n\nconst cr... | javascript | chosen |
[
{
"from": "system",
"value": "Add Dockstore CLI Release URL config.\n"
},
{
"from": "human",
"value": "'use strict';\n\n/**\n * @ngdoc service\n * @name dockstore.ui.WebService\n * @description\n * # WebService\n * Constant in the dockstore.ui.\n */\nangular.module('dockstore.ui')\n .constant('... | javascript | chosen |
[
{
"from": "system",
"value": "Update locators for redesigned Yandex Music"
},
{
"from": "human",
"value": "var playTarget = '.b-jambox__play';\nvar nextTarget = '.b-jambox__next';\nvar prevTarget = '.b-jambox__prev';\n\nfunction onKeyPress(key) {\n if (key === PREV) {\n simulateClick(d... | javascript | chosen |
[
{
"from": "system",
"value": "Allow an extra argument to be passed, identifying the storage version in use.\n"
},
{
"from": "human",
"value": "class Storage extends Phaser.Plugin {\n\n constructor (game, parent) {\n super(game, parent);\n }\n\n init (name) {\n localforage.config({ name ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix missing import in merge conflict resolution\n"
},
{
"from": "human",
"value": "var AuthLoader = require('../authorizer/index').AuthLoader,\n createAuthInterface = require('../authorizer/auth-interface'),\n\n util = require('../authorizer/util');\n\nmodule.... | javascript | chosen |
[
{
"from": "system",
"value": "Make the implementation much more elegant\n"
},
{
"from": "human",
"value": "'use strict';\nvar child_process = require('child_process');\nvar fs = require('fs');\nvar Module = require('module');\nvar path = require('path');\nvar _ = require('lodash');\n\nvar origin... | javascript | chosen |
[
{
"from": "system",
"value": "Create a global when running in browser\n"
},
{
"from": "human",
"value": "// Dependencies\nvar Typpy = require(\"typpy\")\n , NodeElm = require(\"./composition/node\")\n , Composition = require(\"./composition\")\n , Enny = require(\"enny\")\n ;\n\nfunction Par... | javascript | chosen |
[
{
"from": "system",
"value": "Add support for alternative Jenkins node name\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst async = require('async');\nconst redis = require('redis').createClient(6379, 'redis');\n\nmodule.exports = redis;\n\nmodule.exports.jenkinsChanged = function(node... | javascript | chosen |
[
{
"from": "system",
"value": ":crescent_moon: Enable 'dark mode' by default\n"
},
{
"from": "human",
"value": "import React, { createContext, useState } from 'react';\nimport PropTypes from 'prop-types';\n\nconst UiContext = createContext({\n uiDarkMode: false,\n uiIsLoading: false,\n uiIsAni... | javascript | chosen |
[
{
"from": "system",
"value": "Remove dupe info in channel log serializer\n"
},
{
"from": "human",
"value": "/**\n * @param {import('discord.js').Guild} guild\n */\nfunction guild (guild) {\n return `${guild.id}, ${guild.name}`\n}\n\n/**\n* @param {import('discord.js').TextChannel} channel\n*/\n... | javascript | chosen |
[
{
"from": "system",
"value": "Allow direct linking to cities\n"
},
{
"from": "human",
"value": "// 404 page using mapbox to show cities around the world.\n\n// Helper to generate the kind of coordinate pairs I'm using to store cities\nfunction bounds() {\n var center = map.getCenter();\n retur... | javascript | chosen |
[
{
"from": "system",
"value": "Allow m4a audio files to be uploaded.\n\nAgain, the resumable.js bug, where the capital file extensions are an issue, and require explicit declaration of file types.\n"
},
{
"from": "human",
"value": "'use strict';\n\n// APEP capital cases are also provided. Apple ... | javascript | chosen |
[
{
"from": "system",
"value": "Add property screen.height, so that the ufo, once it is shot and falls, returns to start position and flies the same horizontal line like in the beginning\n"
},
{
"from": "human",
"value": "var virus = document.querySelector(\"div\");\nvar x = 1;\nvar y = 0;\nvar vy... | javascript | chosen |
[
{
"from": "system",
"value": "Change tabBroker test to test ordering\n"
},
{
"from": "human",
"value": "var Q = require('q');\nvar tabBroker = require('../../src/js/client/tab_broker');\n\nexports.query = {\n setUp: function(cb) {\n var chrome = {\n runtime: {\n sendMessage: func... | javascript | chosen |
[
{
"from": "system",
"value": "Add compress: false for proper results.\n"
},
{
"from": "human",
"value": "var gulp = require(\"gulp\"),\n util = require(\"gulp-util\"),\n minifyHtml = require(\"gulp-minify-html\"),\n less = require(\"gulp-less\"),\n minifyCss = require(\"gulp-minify-c... | javascript | chosen |
[
{
"from": "system",
"value": "Add missing comma in apimanagement mapper\n"
},
{
"from": "human",
"value": "/*\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for\n * license information.\n *\n * Code generated ... | javascript | chosen |
[
{
"from": "system",
"value": "Use new services for retreiving the Project and Entry\n"
},
{
"from": "human",
"value": "var trexControllers = angular.module('trexControllers', []);\n\ntrexControllers.controller('ProjectListCtrl', ['$scope', '$http',\n function($scope, $http) {\n $http.g... | javascript | chosen |
[
{
"from": "system",
"value": "Update intensely to be much better.\n"
},
{
"from": "human",
"value": "var gulp = require('gulp'),\n $ = require('gulp-load-plugins')();\n\n\ngulp.task('styles', function() {\n gulp.src('app/**/*.scss')\n .pipe($.watch(function(files) {\n fil... | javascript | chosen |
[
{
"from": "system",
"value": "Make the starting text more sane\n"
},
{
"from": "human",
"value": "// ==UserScript==\n// @name SmartyFace\n// @description Text Prediction on facepunch\n// @author benjojo\n// @namespace http://facepunch.com\n// @include ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix for stripping properties before adding to swagger.\n"
},
{
"from": "human",
"value": "'use strict';\nvar _ = require('lodash');\nvar swagger = require('swagger-spec-express');\nvar schemaKeys = Object.keys(require('swagger-spec-express/lib/schemas/schema.json').... | javascript | chosen |
[
{
"from": "system",
"value": "Add suport for node borders using hasBorder property\n"
},
{
"from": "human",
"value": ";(function() {\n 'use strict';\n\n sigma.utils.pkg('sigma.canvas.nodes');\n\n /**\n * The default node renderer. It renders the node as a simple disc.\n *\n * @param {o... | javascript | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.