conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Improve sample widget to avoid lint issues\n"
},
{
"from": "human",
"value": "///////////////////////////////////////////////////////////////////////\n//// Hello Translation Widget\n//// by Aurelio Jargas 2012-02-17\n//\n// A simple sample widget, using translated s... | javascript | chosen |
[
{
"from": "system",
"value": "Make the test really work. (Learning how to do promises right with hamcrest)\n"
},
{
"from": "human",
"value": "import assert from 'assert';\nimport {\n assertThat,\n everyItem,\n hasProperty,\n endsWith,\n hasSize,\n promiseThat, is, fulfilled, fulfilledWith,... | javascript | chosen |
[
{
"from": "system",
"value": "test: Use old-school looping since travis stuck on ancient Chromium:\n\n- See travis-ci/travis-ci#3475\n- TODO: switch to full Chrome on travis\n"
},
{
"from": "human",
"value": "describe('ZendeskWidgetProvider', function() {\n 'use strict';\n\n var subject, mockS... | javascript | chosen |
[
{
"from": "system",
"value": "Fix and ungodly number of linter errors\n"
},
{
"from": "human",
"value": "angular.module('bolt.createProfile', [])\n\n.controller('CreateProfileController', function($location, $scope, Profile, $window) {\n $scope.createProfile = function(first, last, email, phone... | javascript | chosen |
[
{
"from": "system",
"value": "Fix breaking changes after update ember-flexberry\n"
},
{
"from": "human",
"value": "import DS from 'ember-data';\nimport Proj from 'ember-flexberry-data';\n\nexport default DS.Store.reopen(Proj.Store);\n"
},
{
"from": "gpt",
"value": "import DS from 'em... | javascript | chosen |
[
{
"from": "system",
"value": "Fix bug in method helpers not calling userId function\n"
},
{
"from": "human",
"value": "import { Meteor } from 'meteor/meteor';\nimport { Match, check } from 'meteor/check';\n\nexport function requireAdmin() {\n const userId = Meteor.userId;\n if (!userId) {\n ... | javascript | chosen |
[
{
"from": "system",
"value": ":art: Add info dialog for more re: file reads\n"
},
{
"from": "human",
"value": "'use babel'\n\nimport {React} from 'react-for-atom'\n\nexport default React.createClass({\n\n propTypes: {\n readyCount: React.PropTypes.number,\n totalCount: React.PropTypes.num... | javascript | chosen |
[
{
"from": "system",
"value": "Support cases where the manual page load was triggered before the real page load\n"
},
{
"from": "human",
"value": "// @flow\n\nimport onLoadEvent from '../events/onLoad';\nimport {transitionTo} from '../fsm';\nimport type {State} from '../types';\nimport {on} from ... | javascript | chosen |
[
{
"from": "system",
"value": "Update snippet to reflect changes in prototype.spawn.js\n\n"
},
{
"from": "human",
"value": "Game.spawns.Spawn1.createCreep([WORK, CARRY, MOVE], undefined, {\n working: false,\n role: 'harvester'\n});\n"
},
{
"from": "gpt",
"value": "Game.spawns.Spawn1... | javascript | chosen |
[
{
"from": "system",
"value": "Add error message if config file parsing failed\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst fs = require('fs');\nconst path = require('path');\n\nconst debug = require('../util/debug')('config:home');\n\nconst mainConfigPath =\n process.env.REST_ON_... | javascript | chosen |
[
{
"from": "system",
"value": "Update team added to the composer.\nImage can be added on team creation.\n"
},
{
"from": "human",
"value": "const DataComposer = require('./BaseComposer');\n\nconst dataHandler = require('../DataHandler');\nconst eventCentral = require('../../EventCentral');\nconst ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix update not being detected correctly\n"
},
{
"from": "human",
"value": "// TODO: conditional defaults\n\nconst defaults = {\n thing: '',\n date: '2000-01-01',\n done: false,\n updated: false,\n options: {\n backgroundColor: '#c5cefa',\n doneButtonColor... | javascript | chosen |
[
{
"from": "system",
"value": "Return if PR doesn't exist\n"
},
{
"from": "human",
"value": "var request = require('request')\n\n// With username parsed from request, check that the user has submitted a\n// PR to jlord/Patchwork.\n// Because PRs are merged so fast by @RR, we loop through each of ... | javascript | chosen |
[
{
"from": "system",
"value": "Consolidate exit logic for initial value conversion.\n"
},
{
"from": "human",
"value": "import {plugin} from 'postcss';\nimport has from 'has';\nimport browserslist from 'browserslist';\nimport {isSupported} from 'caniuse-api';\nimport fromInitial from '../data/from... | javascript | chosen |
[
{
"from": "system",
"value": "[fix]: Change route param from id to username\n"
},
{
"from": "human",
"value": "import express from 'express';\nimport UserController from '../controllers/UserController';\n\nconst userRouter = express.Router();\nuserRouter.post('/api/user/signup', UserController.c... | javascript | chosen |
[
{
"from": "system",
"value": "Fix compilation of macro example\n"
},
{
"from": "human",
"value": "var nodes = require('./nodes').nodes,\n _ = require('underscore');\n\nvar macros = {};\nvar macroexpand = function(ast, env, opts) {\n var compileNodeWithEnv = require('./compile').compileNode... | javascript | chosen |
[
{
"from": "system",
"value": "Check if url is same an current environment and make url relative\n"
},
{
"from": "human",
"value": "/**\n * Created by crispin on 10/12/2015.\n */\nfunction loadEmbedIframe(onSave) {\n // add modal window\n $('.workspace-menu').append(templates.embedIframe())... | javascript | chosen |
[
{
"from": "system",
"value": "Make LMLayer.asBlobURI() test a bit more stringent.\n"
},
{
"from": "human",
"value": "var assert = chai.assert;\n\ndescribe('LMLayer', function () {\n describe('[[constructor]]', function () {\n it('should construct with zero arguments', function () {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Support updating rather than recreate and lifeCycleMethods for domains\n"
},
{
"from": "human",
"value": "import React from 'react'\nimport shallowEqual from 'shallowequal'\n\n\nexport const withDomain = ({\n domainClass,\n mapPropsToArg,\n mapPropsToArgsArray = ... | javascript | chosen |
[
{
"from": "system",
"value": "Refactor userlistremove for realtime removal\n\n"
},
{
"from": "human",
"value": "import React from \"react\";\n\nconst fs = window.require(\"fs\");\nconst global = require(\"../app/global\");\nimport IO from \"../app/IO\";\n\nconst UserListRemove = React.createClas... | javascript | chosen |
[
{
"from": "system",
"value": "Add policy rule for Ping controller\n"
},
{
"from": "human",
"value": "/**\n * Policy Mappings\n *\n * Policies are simple functions which run before your controllers.\n * You can apply one or more policies to a given controller, or protect\n * its actions individua... | javascript | chosen |
[
{
"from": "system",
"value": "Add flyin transition for plane\n"
},
{
"from": "human",
"value": "$(document).ready(function(){\n\n // when page loads plane flys in from the right of the page and then images will appear in the windows\n\n //top right corner of the image going to be x, y 0\n})"
... | javascript | chosen |
[
{
"from": "system",
"value": "Convert UploaderButton to functional component\n"
},
{
"from": "human",
"value": "\n/**\n * Copyright (c) 2016, Tidepool Project\n *\n * This program is free software; you can redistribute it and/or modify it under\n * the terms of the associated License, which is i... | javascript | chosen |
[
{
"from": "system",
"value": "Fix require statement for linspace\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar linspace = require( 'compute-linspace' );\nvar zeta = require( './../lib' );\n\nvar s;\nvar v;\nvar i;\n\ns = linspace( -50.0, 50.0, 200 );\nfor ( i = 0; i < s.length; i++ ) {... | javascript | chosen |
[
{
"from": "system",
"value": "Use a lowercase 'immutable' module name\n\nWebpack complains with 'Immutable':\n\nWARNING in ./~/immutable/dist/Immutable.js\nThere is another module with an equal name when case is ignored.\nThis can lead to unexpected behavior when compiling on a filesystem\nwith other case-s... | javascript | chosen |
[
{
"from": "system",
"value": "Add tests for `getFullString` in Selectors\n"
},
{
"from": "human",
"value": "const Selector = require('selector_manager/model/Selector');\nconst Selectors = require('selector_manager/model/Selectors');\n\nmodule.exports = {\n run() {\n describe('Selector', ()... | javascript | chosen |
[
{
"from": "system",
"value": "Use RDFa attributes to find to closest resource element to remove\n"
},
{
"from": "human",
"value": "// remove-resource.js\n/*\n Copyright (c) 2011 Talis Inc, Some Rights Reserved\n Licensed under the Apache License, Version 2.0, http://www.apache.org/licenses/L... | javascript | chosen |
[
{
"from": "system",
"value": "Fix media scaling on single column layout\n"
},
{
"from": "human",
"value": "import Immutable from 'immutable';\nimport { COLUMN_MEDIA_RESIZE } from '../actions/column_media';\n\nconst initialState = Immutable.Map({\n scale: null,\n single: null,\n wide: null,\n}... | javascript | chosen |
[
{
"from": "system",
"value": "Exclude 'Intl' from new-cap exception\n"
},
{
"from": "human",
"value": "module.exports = {\n root: true,\n parser: 'babel-eslint',\n parserOptions: {\n sourceType: 'module'\n },\n extends: 'airbnb-base',\n // required to lint *.vue files\n plugins: [\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Print latest-release info in /\n"
},
{
"from": "human",
"value": "import config from '../config';\n\nexport async function main(req, res) {\n res.json({\n status: 'online',\n user: config.user,\n repo: config.repo\n });\n}\n"
},
{
"from": "gpt",
... | javascript | chosen |
[
{
"from": "system",
"value": "Change confusing blob data string\n(from \"ten-bytes!\" into \"1234567890\")\n"
},
{
"from": "human",
"value": "'use strict'\n\ndescribe('/#/complain', function () {\n protractor.beforeEach.login({ email: 'admin@juice-sh.op', password: 'admin123' })\n\n describe('... | javascript | chosen |
[
{
"from": "system",
"value": "Add additional information in kafka payload\n"
},
{
"from": "human",
"value": "'use strict'\n\nconst config = require('config')\n\nconst logAPI = module.exports = {}\n\nlogAPI.get = function *() {\n var token\n\n // TODO: Add support for session cookie authenticat... | javascript | chosen |
[
{
"from": "system",
"value": "Use \"var\" keyword in FFI module\n\nThis accidentally broke node < 4 support\n"
},
{
"from": "human",
"value": "/* global exports */\n\"use strict\";\n\n// module Debug.Profile\n\nconst _timers = {};\n\nexports.timerStart = function () {\n return process.hrtime();... | javascript | chosen |
[
{
"from": "system",
"value": "Allow alchemyPageSelect to be chained\n\njQuery style function chaining.\n"
},
{
"from": "human",
"value": "$.fn.alchemyPageSelect = function(options) {\n var pageTemplate = HandlebarsTemplates.page\n\n this.select2({\n placeholder: options.placeholder,\n mi... | javascript | chosen |
[
{
"from": "system",
"value": "Update Task DueDate unit test\n"
},
{
"from": "human",
"value": "/* eslint-env mocha, jest */\n\nimport React from 'react';\nimport { shallow } from 'enzyme';\n\nimport DueDate from '../DueDate';\n\nit('should render', () => {\n shallow(<DueDate />);\n});\nit('shou... | javascript | chosen |
[
{
"from": "system",
"value": "Add bower install command && Update README.MD\n"
},
{
"from": "human",
"value": "var chalk = require('chalk');\n\nvar log = function log(value) {\n console.log(value);\n};\n\nlog.green = function(value) {\n console.log(chalk.green(value));\n};\n\nlog.blue = functi... | javascript | chosen |
[
{
"from": "system",
"value": "Correct but on Capital filter\n"
},
{
"from": "human",
"value": "/* Filters */\nangular.module('myApp.filters').filter('interpolate', function(version) {\n 'use strict';\n\n return function(text) {\n return String(text).replace(/\\%VERSION\\%/mg, versio... | javascript | chosen |
[
{
"from": "system",
"value": "eslint: Use regex literal instead of constructor\n"
},
{
"from": "human",
"value": "import { parse } from 'papaparse'\nimport {\n compose, filter, find, flatten, identity,\n join, map, match, not, skip, takeWhile\n} from 'ramda'\n\nconst clean = compose(filter... | javascript | chosen |
[
{
"from": "system",
"value": "Add dat logging to the main file :D\n"
},
{
"from": "human",
"value": "var func_r = require('./eyebleach_reddit');\nvar func_t = require('./eyebleach_twitter');\nvar conf = require('./config');\n\nfunction postEyeBleach() {\n func_t.postTweet(func_r.getUrl(conf.sub... | javascript | chosen |
[
{
"from": "system",
"value": "Reduce memory footprint by importing specific function from `semver` package\n"
},
{
"from": "human",
"value": "const SVGO = require('svgo');\nconst { getOptions } = require('loader-utils');\nconst { version } = require('vue');\nconst { major } = require('semver')\n... | javascript | chosen |
[
{
"from": "system",
"value": "Update version string to 2.6.0-pre.14.1\n"
},
{
"from": "human",
"value": "/**\n* Features a variety of commonly used widgets, including toolbars, text inputs, checkboxes, groups\n* and multiple types of buttons. \n*\n* @namespace onyx \n*/\nmodule.exports.version =... | javascript | chosen |
[
{
"from": "system",
"value": "Use local etcd server for development\n"
},
{
"from": "human",
"value": "var _ = require('lodash');\n\nvar defaultConfig = {\n database: {\n backend: 'leveldown',\n file: __dirname + '/data/baixs.db'\n },\n etcd: {\n host: 'racktables.hupu.com',\n por... | javascript | chosen |
[
{
"from": "system",
"value": "Add a more useful comment\n"
},
{
"from": "human",
"value": "var dredge = require('./lib/dredge');\n\n/**\n * @return promise\n * This module makes use of the node-promise API.\n * Operate on the singular data argument passed to a `then` callback, as follows:\n *\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Use util.inherits instead of simple prototype assignment.\n"
},
{
"from": "human",
"value": "var RedisStore = require('connect-redis');\nvar url = require('url');\nvar envVariables = ['REDIS_SESSION_URI', 'REDIS_URI', 'REDIS_SESSION_URL', 'REDIS_URL', 'REDISTOGO_URL... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"removing protocol relative url\"\n"
},
{
"from": "human",
"value": "/* jshint node: true */\n'use strict';\n\nmodule.exports = {\n name: 'ember-g-map',\n\n included: function(app, parentAddon) {\n var target = (parentAddon || app);\n target.import('... | javascript | chosen |
[
{
"from": "system",
"value": "Make sure we're looking for a local file\n"
},
{
"from": "human",
"value": "var Meatspace = require('./lib/meatspace');\nvar meatspackles = require('./lib/meatspackles')\nvar bots;\n\nfunction setupBots(){\n var meatspaces = [];\n var configs = require('config.jso... | javascript | chosen |
[
{
"from": "system",
"value": "refactor: Update package to use new features\n"
},
{
"from": "human",
"value": "const Assert = require('assert')\nconst FS = require('fs')\n\nconst Winston = require('winston')\n\nconst Factory = require('./lib/factory')\n\nvar exceptionLogger\n\nfunction isString (... | javascript | chosen |
[
{
"from": "system",
"value": "Allow ember-power-select to be invoked transitively from another addon\n\nAlso, the included hook is idempotent. The second time that is called is a noop\n"
},
{
"from": "human",
"value": "/* jshint node: true */\n'use strict';\n\n// var path = require('path');\n\nm... | javascript | chosen |
[
{
"from": "system",
"value": "Fix travis CI build error (missing trailing comma)"
},
{
"from": "human",
"value": "'use strict'; // eslint-disable-line\n\nconst { default: ImageminPlugin } = require('imagemin-webpack-plugin');\nconst imageminMozjpeg = require('imagemin-mozjpeg');\n\nconst config ... | javascript | chosen |
[
{
"from": "system",
"value": "Disable save button unless a quantity is entered\n"
},
{
"from": "human",
"value": "import React from 'react';\n\nclass HistoryModal extends React.Component {\n\trender() {\n const post = this.props.details['post'];\n const signup = this.props.details['post'][... | javascript | chosen |
[
{
"from": "system",
"value": "Fix readOnly attribute not taken in account\n"
},
{
"from": "human",
"value": "import { transformAttributes } from \"../../components/form/dynamic-attributes\";\n\n\nfunction serializeValue(fieldType, value) {\n if(fieldType === 'autocomplete') {\n return ... | javascript | chosen |
[
{
"from": "system",
"value": "Remove conditionals in publish methods\n"
},
{
"from": "human",
"value": "Meteor.publish(\"userInfo\", function() {\n\tif(!this.userId) {\n\t\treturn this.ready();\n\t}\n\n\treturn Meteor.users.find(this.userId, {\n\t\tfields: {\n\t\t\t\"admin\": 1,\n\t\t\t\"alive\"... | javascript | chosen |
[
{
"from": "system",
"value": "Add smarter default behaviour for validateOptions."
},
{
"from": "human",
"value": "var Generator = require('generate-js'),\n Joi = require('joi'),\n async = require('async');\n\nvar EndPoint = Generator.generate(function EndPoint(options) {\n var _ = this;... | javascript | chosen |
[
{
"from": "system",
"value": "Set config via module.exports not message\n"
},
{
"from": "human",
"value": "'use strict';\nvar Dropbox = require('dropbox');\nvar options;\n\nvar queue = {};\n\nfunction addToDropboxQueue (message) {\n var user = message.user;\n var fileContent = message.file;\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Make all errors live in the promise\n"
},
{
"from": "human",
"value": "var promise = require('promises-a');\nvar emitter = require('emitter');\n\nmodule.exports = imgur;\nfunction imgur(apiKey) {\n function upload(file) {\n var def = promise();\n emitter(def.... | javascript | chosen |
[
{
"from": "system",
"value": "Add support for debug mode\n"
},
{
"from": "human",
"value": "var AWS = require(\"aws-sdk\");\n\nvar s3 = new AWS.S3({\n accessKeyId: process.env.AWS_KEY,\n secretAccessKey: process.env.AWS_SECRET\n});\n\nvar importer = require(\"./importer\")(s3);\n\nif (!process... | javascript | chosen |
[
{
"from": "system",
"value": "Make a fresh drain wrapper every time\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar map = require('map-async'),\n isStream = require('is-stream'),\n concat = require('concat-stream');\n\n\nmodule.exports = function (tape) {\n var Test = tape.Test;\n... | javascript | chosen |
[
{
"from": "system",
"value": "Remove default functionality, for now\n"
},
{
"from": "human",
"value": "var Obstruct = require('obstruct');\nvar minivents = require('minivents');\nvar createGetter = require('./lib/createGet');\nvar createSetter = require('./lib/createSet');\nvar noop = function (... | javascript | chosen |
[
{
"from": "system",
"value": "Fix error where intlTelInput was not defined\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst path = require('path');\nconst fastbootTransform = require('fastboot-transform');\nconst Funnel = require('broccoli-funnel');\n\nmodule.exports = {\n name: 'ember... | javascript | chosen |
[
{
"from": "system",
"value": "Use \\x00 instead of \\u0000 for null character\t \t \t \t\t\t\t \t\t \t\t \t\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\n'use strict';\n\nfunction exec (command) {\n return require('child_process').execSync(command).toString();\n}\n\nfunction... | javascript | chosen |
[
{
"from": "system",
"value": "Fix last bad ref to ws.\n"
},
{
"from": "human",
"value": "var server = require('http').createServer()\nvar wr = require('./water_rower.js')({ debug: false} );\nvar ws = require('ws');\nvar url = require('url')\nvar WebSocketServer = ws.Server\nvar wsServer = new We... | javascript | chosen |
[
{
"from": "system",
"value": "Return the same exit code\n\nIf the script fails, we should fail with the same exit code.\n"
},
{
"from": "human",
"value": "var path = require('path')\nvar readPackage = require('read-closest-package')\nvar fork = require('child_process').fork\n\nmodule.exports = t... | javascript | chosen |
[
{
"from": "system",
"value": "Change recursive call to private function\n"
},
{
"from": "human",
"value": "/*\n * deep-clone\n * @author Garrett Reed <garrett@garrettreed.co> 2016\n * MIT Licensed\n *\n * Suports:\n * Primitives: null, string, number, function (inherits prototype)\n * Collec... | javascript | chosen |
[
{
"from": "system",
"value": "Add logic to handle vertical screens\n"
},
{
"from": "human",
"value": "$(function() {\n $('#carousel-example-generic').height($(window).height()-$('#panel-title').height());\n});\n\n$(window).resize(function(){\n $('#carousel-example-generic').height($(window... | javascript | chosen |
[
{
"from": "system",
"value": "Use waitFor that actually validates something instead of misplaced execute\n"
},
{
"from": "human",
"value": "module.exports = {\n 'GitHub example testing': function (test) {\n test\n .open('https://github.com')\n .waitForElement('input[name=q]')\n .asser... | javascript | chosen |
[
{
"from": "system",
"value": "Support name string in `getId` method\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar element = require('../valid-html-element')\n , randomUniq = require('time-uuid');\n\nmodule.exports = function () {\n\tif (element(this).id) return this.id;\n\treturn (... | javascript | chosen |
[
{
"from": "system",
"value": "Fix indentation in html test file.\n"
},
{
"from": "human",
"value": "var fs = require('fs');\n\nexports.compareOutput = function (test) {\n\ttest.expect(2);\n\n\tvar input = fs.readFileSync('tmp/index.html', { encoding: 'utf8' });\n\tvar expected = fs.readFileSync(... | javascript | chosen |
[
{
"from": "system",
"value": "Remove unused methods from spine item Backbone model.\n"
},
{
"from": "human",
"value": "define(['require', 'module', 'jquery', 'underscore', 'backbone', './manifest_item'],\n function (require, module, $, _, Backbone, ManifestItem) {\n\n var SpineItem = M... | javascript | chosen |
[
{
"from": "system",
"value": "Fix dates to show with leading zero\n"
},
{
"from": "human",
"value": "/**\n * 'timeFormat' formats time into more readable formats.\n */\nconst months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];\nconst timeFormat = module... | javascript | chosen |
[
{
"from": "system",
"value": "Use to store activeCategory for filtering\n"
},
{
"from": "human",
"value": "// js/controllers/nw-category-select.controller\n\n(function() {\n \"use strict\";\n\n angular.module(\"NoteWrangler\")\n .controller(\"nwCategorySelectController\", nwCategorySelectC... | javascript | chosen |
[
{
"from": "system",
"value": "Allow lv for everyone in not playing\n"
},
{
"from": "human",
"value": "\nconst { getGuildString } = require('../../locales.js');\nconst music = require('../../music.js');\n\nmodule.exports = {\n variants: ['leave', 'lv'],\n usage: 'lv',\n async action(message, a... | javascript | chosen |
[
{
"from": "system",
"value": "refactor: Split filter paths into separate vars and check for size in session payload\n"
},
{
"from": "human",
"value": "const jsonStringify = require('@bugsnag/safe-json-stringify')\nconst filterPaths = [\n // report\n 'events.[].app',\n 'events.[].metaData',\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add additional check for channel update\n"
},
{
"from": "human",
"value": "const Discord = require('discord.js')\nconst Feed = require('../structs/db/Feed.js')\nconst createLogger = require('../util/logger/create.js')\nconst maintenance = require('../maintenance/ind... | javascript | chosen |
[
{
"from": "system",
"value": "Fix CTRL-ALT-DEL button on Spice consoles\n\nAppears that the current Spice JS library requires polluting the global namespace for this feature to work.\nhttps://github.com/himdel/spice-html5-bower/blob/master/spiceHTML5/TODO#L28\n\nhttps://bugzilla.redhat.com/show_bug.cgi?id=1... | javascript | chosen |
[
{
"from": "system",
"value": "Remove voluntary ranking sttore setting.\n"
},
{
"from": "human",
"value": "//= require ./store\n//= require_tree ./mixins\n//= require_tree ./models\n//= require_tree ./controllers\n//= require_tree ./views\n//= require_tree ./helpers\n//= require_tree ./templates\... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"Revert \"Revert \"Revert \"Revert \"Try child process\"\"\"\"\"\n\nThis reverts commit bcb1b14a23d4c04fb80818f1fc63fba6147704cd.\n"
},
{
"from": "human",
"value": "const { spawn } = require('child_process')\n\nmodule.exports = {\n onPreBuild({ utils: { sta... | javascript | chosen |
[
{
"from": "system",
"value": "Add timestamps to Mongoose model.\n"
},
{
"from": "human",
"value": "// Module imports.\nconst mongoose = require('mongoose');\nconst Guid = require('guid');\n\nconst Schema = mongoose.Schema;\n\n// Mongoose schema for bills. Pretty self explanatory.\nconst BillSche... | javascript | chosen |
[
{
"from": "system",
"value": "Update assert type to handle both Function and async function\n"
},
{
"from": "human",
"value": "// >>> PUBLIC <<<\n\nmodule.exports = (moduleName) => (type, val) => {\n const tag = Object.prototype.toString.call(val);\n if (`[object ${type}]` !== tag) {\n thro... | javascript | chosen |
[
{
"from": "system",
"value": "Append newline to serialized JSON.\n"
},
{
"from": "human",
"value": "var Staccato = require('staccato')\nvar cadence = require('cadence')\n\nmodule.exports = cadence(function (async, syslog, input, output) {\n var loop = async(function () {\n async(functi... | javascript | chosen |
[
{
"from": "system",
"value": "Watch people tab source data for changes and update charts\n"
},
{
"from": "human",
"value": "(function () {\n 'use strict';\n\n /* ngInject */\n function PeopleTabController($log, ACSAggregate, ACSVariables) {\n var ctl = this;\n\n initialize... | javascript | chosen |
[
{
"from": "system",
"value": "Update the minified version of the dynamic options handling plugin.\n"
},
{
"from": "human",
"value": "(function(a){a.fn.dynamicoptions=function(e){var b=a.extend({},e);return this.each(function(){field='<label class=\"form-label\">'+b.label+\"</label>\";field+='<di... | javascript | chosen |
[
{
"from": "system",
"value": "Fix applying of the custom theme object.\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport lodash from 'lodash';\n\nimport refractToComponentsMap from 'refractToComponentMap';\n\nimport theme from 'theme';\n\nclass Attribute extends React.Compone... | javascript | chosen |
[
{
"from": "system",
"value": "Add timeout to instable test\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar TaskList = require('../POMs/TasksList.js');\n\ndescribe('Check that task name can be updated', function() {\n\n beforeAll(function() {\n TaskList.actionsBeforeAll();\n });\n\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix calls to constructor in dependent projects\n"
},
{
"from": "human",
"value": "goog.module('ngeo.olcs.Manager');\ngoog.module.declareLegacyNamespace();\n\ngoog.require('olcs.contrib.Manager');\n\nconst Manager = class extends olcs.contrib.Manager {\n /**\n * @... | javascript | chosen |
[
{
"from": "system",
"value": "Include service info in unit fetches\n"
},
{
"from": "human",
"value": "import {createAction} from 'redux-actions';\nimport values from 'lodash/values';\nimport {UnitActions, SearchActions} from './constants';\nimport {Action} from '../common/constants';\nimport {Ap... | javascript | chosen |
[
{
"from": "system",
"value": "Put eval in setTimeout as an attempt to ensure that the page is really rendered\n"
},
{
"from": "human",
"value": "/**\n * @fileoverview Run the bootstrap service\n */\n\nvar port = 3020,\n system = require('system'),\n page = require('webpage').create(),\n ... | javascript | chosen |
[
{
"from": "system",
"value": "[search-wrapper] Fix bug in the wrapper\n"
},
{
"from": "human",
"value": "var currentTimeout;\nfunction actionWrapper(searchAction){\n return function(){\n const DEFAULT_TIMEOUT = 5000;\n var context = this;\n var args = arguments;\n if(currentTimeout)... | javascript | chosen |
[
{
"from": "system",
"value": "Add inline preview of thumbnails\n"
},
{
"from": "human",
"value": "// Highlight source code\nhljs.initHighlightingOnLoad();\n\n// Enable all tooltips by default\n$('a[data-toggle=\"tooltip\"]').tooltip();\n\n"
},
{
"from": "gpt",
"value": "// Highlight ... | javascript | chosen |
[
{
"from": "system",
"value": "Add opbeat tokens to config\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 environm... | javascript | chosen |
[
{
"from": "system",
"value": "Change ropsten gas price to 20 gwei"
},
{
"from": "human",
"value": "const yargs = require('yargs');\n\nif (yargs.argv.network == 'ropsten' || yargs.argv.network == 'mainnet') {\n var providerURL = `https://${yargs.argv.network}.infura.io`\n var HDWalletProvider... | javascript | chosen |
[
{
"from": "system",
"value": "Add trackart for Deezer connector\n"
},
{
"from": "human",
"value": "'use strict';\n\n/* global Connector */\n\nConnector.playerSelector = '#page_sidebar';\n\nConnector.getArtist = function() {\n\tvar artists = $.map($('.player-track-artist').children(), function(ar... | javascript | chosen |
[
{
"from": "system",
"value": "Allow reading player options from config\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\n'use strict';\n\nconst co = require('co');\nconst { Game, ReadlineInterface } = require('../');\nconst path = require('path');\n\nconst args = process.argv.slice(2);\n\n... | javascript | chosen |
[
{
"from": "system",
"value": "Fix some code style idiosyncrasies\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst Fs = require('fs');\n\nconst Hoek = require('hoek');\nconst Thurston = require('thurston');\nconst Items = require('items');\nconst Some = require('lodash.some');\n\nconst i... | javascript | chosen |
[
{
"from": "system",
"value": "Add expiration date to banner\n"
},
{
"from": "human",
"value": "export const ALERT_BANNER_ACTIVE = true\n\n// https://github.com/hashicorp/web-components/tree/master/packages/alert-banner\nexport default {\n tag: 'New',\n url: 'https://cloud.hashicorp.com/product... | javascript | chosen |
[
{
"from": "system",
"value": "Add a comment for the title hack.\n"
},
{
"from": "human",
"value": "\"use strict\";\n\n// Blank the document so the 404 page doesn't show up visibly.\ndocument.documentElement.style.display = 'none';\n\n// Can't use DOMContentLoaded, calling document.write or docum... | javascript | chosen |
[
{
"from": "system",
"value": "Update String in Add-on to 'Enabled' from 'Now active' for Enabled experiments\n"
},
{
"from": "human",
"value": "/*\n * This Source Code is subject to the terms of the Mozilla Public License\n * version 2.0 (the 'License'). You can obtain a copy of the License at\n... | javascript | chosen |
[
{
"from": "system",
"value": "Update test specs according to code modification\n"
},
{
"from": "human",
"value": "define(function(require) {\n\n var test = require('../../test')\n var assert = test.assert\n\n\n assert(seajs.log('seajs.log test', 'group') === undefined, 'group')\n\n assert(se... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"Update throng to v3.0.0\"\n\nThis reverts commit adb203f6f019b096a3f84f51a9745806a74af578.\n"
},
{
"from": "human",
"value": "var throng = require('throng');\nvar donateServer = require('./server');\nvar workers = process.env.WEB_CONCURRENCY || 1;\n\nfuncti... | javascript | chosen |
[
{
"from": "system",
"value": "Update max log file size\n"
},
{
"from": "human",
"value": "// @flow\n\nimport path from 'path';\nimport express, { Router } from 'express';\nimport serveIndex from 'serve-index';\nimport winston from 'winston';\nimport expressWinston from 'express-winston';\nimport... | javascript | chosen |
[
{
"from": "system",
"value": "Include OSM search result type in details object\n"
},
{
"from": "human",
"value": "/**\n * L.Control.GeoSearch - search for an address and zoom to it's location\n * L.GeoSearch.Provider.OpenStreetMap uses openstreetmap geocoding service\n * https://github.com/smeij... | javascript | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.