conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Update from ClientSharded to ClientManager\n"
},
{
"from": "human",
"value": "// Only create the Sharding Manager\nconst config = require('./config.js')\nconst DiscordRSS = require('./index.js')\nconst Discord = require('discord.js')\nconst shardingManager = new Dis... | javascript | chosen |
[
{
"from": "system",
"value": "Handle after dropzone upload completes\n"
},
{
"from": "human",
"value": "$(function() {\n var mediaDropzone;\n mediaDropzone = new Dropzone(\"#media-dropzone\");\n return mediaDropzone.on(\"success\", function(file, responseText) {\n var imageUrl;\n imageU... | javascript | chosen |
[
{
"from": "system",
"value": "Use the stack filter correctly\n"
},
{
"from": "human",
"value": "require(\"referee-sinon\");\nrequire(\"buster-sinon\");\nvar referee = require(\"referee\");\nvar test = require(\"buster-test\");\nvar formatio = require(\"formatio\");\nvar stackFilter = require(\"s... | javascript | chosen |
[
{
"from": "system",
"value": "Update tracker example to save values\n"
},
{
"from": "human",
"value": "(function () {\n 'use strict';\n\n // Participants controller\n angular\n .module('participants')\n .controller('TrackerController', TrackerController);\n\n TrackerController.$inject ... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"debugging why we don't get cookies in aws\"\n\nThis reverts commit 3e84cd8ff25f961066799721cffa1e731090dca9.\n"
},
{
"from": "human",
"value": "/* jshint node: true */\n/* jshint esnext: true */\n'use strict';\n\n\nconst router = require('express').Router()... | javascript | chosen |
[
{
"from": "system",
"value": "Fix redirect for index when community in cookie\n"
},
{
"from": "human",
"value": "import AccountSelectors from '~client/account/redux/selectors'\nimport * as CommunitySelectors from '~client/community/selectors'\nimport * as Paths from '~client/paths'\n\nexport con... | javascript | chosen |
[
{
"from": "system",
"value": "Change endpoint for 2 other free services\n"
},
{
"from": "human",
"value": "import React from 'react';\n\nconst withCountry = component =>\n\tclass extends React.Component {\n\t\tstatic displayName = `withCountry(${component.displayName\n\t\t\t|| component.name})`;... | javascript | chosen |
[
{
"from": "system",
"value": "Add another missing method to StripeJS mock\n\nOur Angular code calls this method in some tests and expects a Promise object with a hash describing a payment method.\n"
},
{
"from": "human",
"value": "class Element {\n mount(el) {\n if (typeof el === \"string\")... | javascript | chosen |
[
{
"from": "system",
"value": "Disable animations on Android again\n\nSummary: We don't yet have native driver support for animations in bridgeless mode on Android, which leads to some weird bugs (like an overlay that never disappears). Let's just disable animations on Android again.\n\nReviewed By: mdvacca\... | javascript | chosen |
[
{
"from": "system",
"value": "Fix verion-check to look in right place for React.js\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar grunt = require('grunt');\n\n\n// Check that the version we're exporting is the same one we expect in the\n// package. This is not an ideal way to do this, b... | javascript | chosen |
[
{
"from": "system",
"value": "COM-214: Add quantity validation\n - added support of editable flag for string cell\n"
},
{
"from": "human",
"value": "define([\n 'backgrid',\n 'orodatagrid/js/datagrid/formatter/cell-formatter'\n], function(Backgrid, CellFormatter) {\n 'use strict';\n\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix typo shown in flash when repo activation fails\n"
},
{
"from": "human",
"value": "import Ember from 'ember';\nimport config from 'travis/config/environment';\n\nconst { service } = Ember.inject;\nconst { alias } = Ember.computed;\n\nimport { task } from 'ember-c... | javascript | chosen |
[
{
"from": "system",
"value": "Make sure participants can update their sessions\n"
},
{
"from": "human",
"value": "// TODO make user specific\nvar OSF = 'user-osf-*';\nvar PARTICIPANT = 'jam-experimenter:accounts-*';\nvar GLOBAL = '*';\n\nvar config = [\n [OSF, 'CRUD']\n];\n\nvar admin = [\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Support crash reporting from child process in Windows\n"
},
{
"from": "human",
"value": "const os = require('os')\nconst path = require('path')\n\nlet productName = 'Child Product'\nlet companyName = 'Child Company'\nlet tmpPath = path.join(os.tmpdir(), productName ... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"Makes command line API more verbose\"\n\nThis reverts commit 1bdedb488d8455290af54bbc762c0d852cbb9058.\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\n\"use strict\";\n\nvar pkg = require(\"../package.json\");\nvar fs = require(\"fs\");\nvar path = ... | javascript | chosen |
[
{
"from": "system",
"value": "Remove space between host and port in console\n\nCloses #101.\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst express = require('express');\nconst mongoose = require('mongoose');\nconst bodyParser = require('body-parser');\nconst passport = require('passpo... | javascript | chosen |
[
{
"from": "system",
"value": "Add error messages to Pipes\n"
},
{
"from": "human",
"value": "'use strict';\n\nimport {Pipe} from 'angular2/core';\nimport {JsonPointer} from './JsonPointer';\nimport marked from 'marked';\n\nmarked.setOptions({\n renderer: new marked.Renderer(),\n gfm: true,\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Hide the flash completely when the animation is completed. Closes GH-539\n"
},
{
"from": "human",
"value": "$(document).ready(function(){\n // focus first field in an admin form.\n $('form input[type=text]:first').focus();\n\n init_flash_messages();\n});\n\ninit_... | javascript | chosen |
[
{
"from": "system",
"value": "Add threejs library as one of the usable module for compatibility.\n"
},
{
"from": "human",
"value": "/**\n * Provides a global namespace for the Zinc javascript library and some default parameters for it.\n * \n * @namespace\n * @author Alan Wu\n */\n\nvar Zinc = f... | javascript | chosen |
[
{
"from": "system",
"value": "Send ping/pong to keep the connection open.\n"
},
{
"from": "human",
"value": "Threadable.realtime.connect = function(currentUser) {\n var userId = currentUser.get('userId');\n\n if (typeof io != 'undefined' && io !== null) {\n Threadable.realtime.socketIo = io... | javascript | chosen |
[
{
"from": "system",
"value": "Add return to definition function. The return value will be used to map the require calls.\nNot implemented yet.\n"
},
{
"from": "human",
"value": "/*\n * Copyright(c) 2014, Unional (https://github.com/unional)\n * @license Licensed under the MIT License (https://gi... | javascript | chosen |
[
{
"from": "system",
"value": "Remove unnecessary own property check\n"
},
{
"from": "human",
"value": "'use strict';\n\n// changeable contants\nvar C = 'constructor', // name of the constructor method\n\tX = 'extend'; // name of extend method\n\nfunction Class() {}\n\nClass[X] = function(subclas... | javascript | chosen |
[
{
"from": "system",
"value": "Use `== null` check instead of `in` because jQuery.Event defaults to undefined\n"
},
{
"from": "human",
"value": "/**\n * Detects if only the primary button has been clicked in mouse events.\n * @param {MouseEvent} e Event instance (or Event-like, i.e. `SyntheticEve... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"Make config loading even lazier\"\n\nThis reverts commit be7f9963eab041026853df68c4b9eeed46bf730d.\n"
},
{
"from": "human",
"value": "import fs from 'fs'\nimport _ from 'lodash'\nimport postcss from 'postcss'\nimport stylefmt from 'stylefmt'\n\nimport defau... | javascript | chosen |
[
{
"from": "system",
"value": "Remove touch delay iPhone fix\n\nDue to click event firing at touchend, the UX is kind of broken when scrolling\nand the finger ends up on top of something 'clickable'.\n\nAwaiting https://github.com/madrobby/zepto/pull/494\n"
},
{
"from": "human",
"value": "/*globa... | javascript | chosen |
[
{
"from": "system",
"value": "Include webpack module type declaration\n\n"
},
{
"from": "human",
"value": "//@flow\n\ndeclare type Theme = {\n type: {\n [\"title\" | \"heading\" | \"paragraph\" | \"label\"]: string\n },\n scale: {\n [\"s1\" | \"s2\" | \"s3\" | \"s4\"]: (n: number) => st... | javascript | chosen |
[
{
"from": "system",
"value": "Fix nodes side panel contents integration tests\n"
},
{
"from": "human",
"value": "describe('Nodes Side Panel', function () {\n\n beforeEach(function () {\n cy.configureCluster({\n mesos: '1-task-healthy',\n nodeHealth: true\n })\n });\n\n context... | javascript | chosen |
[
{
"from": "system",
"value": "Use catch instead of then and log message before exit\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\n\n'use strict';\n\n/**\n * @license\n * Copyright (c) 2014 The Polymer Project Authors. All rights reserved.\n * This code may only be used under the BSD st... | javascript | chosen |
[
{
"from": "system",
"value": "Add dutch translation for aggregation\n"
},
{
"from": "human",
"value": "(function () {\n angular.module('ui.grid').config(['$provide', function($provide) {\n $provide.decorator('i18nService', ['$delegate', function($delegate) {\n $delegate.add('nl', {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add search index for the taxonomy collection\n"
},
{
"from": "human",
"value": "'use strict';\n\n/**\n * @module providers\n */\n\nvar util = require('util');\nvar EntityProvider = process.requireAPI('lib/providers/EntityProvider.js');\n\n/**\n * Defines a TaxonomyP... | javascript | chosen |
[
{
"from": "system",
"value": "Add the Salmon Run calendar to the hourly update script\n\n"
},
{
"from": "human",
"value": "const CronJob = require('cron').CronJob;\nconst splatnet = require('./splatnet');\n\nconsole.info('Starting periodic tasks...');\n\n// Run every day at 0min 30sec after the ... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"Increase payload limit to 1.5MB\"\n\nThis reverts commit eb59950038a363baca64593379739fcb4eeea22f.\n"
},
{
"from": "human",
"value": "import express from 'express';\nimport path from 'path';\nimport bodyParser from 'body-parser';\nimport api from './api';\n... | javascript | chosen |
[
{
"from": "system",
"value": "Fix LINE login procedure:\n1. First fire App() so that assertions are not interrupted by LINE login\n2. LINE login redirect URI fix: location.href already includes location.search. Repeating that will result in incorrect url token\n"
},
{
"from": "human",
"value": "... | javascript | chosen |
[
{
"from": "system",
"value": "Refactor to follow style guidelines\n"
},
{
"from": "human",
"value": "import Ember from 'ember';\n\nexport default Ember.Mixin.create({\n get : function( key ){\n var translationsRegex = /translate\\.(.*)/,\n matches = key.match( translationsRe... | javascript | chosen |
[
{
"from": "system",
"value": "Add sign out button to user app\n"
},
{
"from": "human",
"value": "import React from 'react';\n\nconst UserApp = () => (\n <div>\n <h1>UserApp Page</h1>\n </div>\n);\n\nexport default UserApp;\n"
},
{
"from": "gpt",
"value": "import React from 'reac... | javascript | chosen |
[
{
"from": "system",
"value": "Modify ajax-reveal to open modal from a link on modal\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, ... | javascript | chosen |
[
{
"from": "system",
"value": "Load the bootstrap js plugins\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/javascripts, ... | javascript | chosen |
[
{
"from": "system",
"value": "Remove turbo links since it messes up my unskilled javascript.\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 di... | javascript | chosen |
[
{
"from": "system",
"value": "Add new constants for status and icons\n"
},
{
"from": "human",
"value": "'use babel';\n\nexport default {\n ENV: (process.env.NODE_ENV === 'development' ? 'DEV' : 'PROD'),\n ERROR_ICON:'✖',\n SUCCESS_ICON:'✔',\n CARD_SUCCESS_CLASS: 'success',\n CARD_ERROR_CLAS... | javascript | chosen |
[
{
"from": "system",
"value": "Add correct 'from' email address on SendEmail function.\n\nRelated #178\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst handelbars = require('handlebars');\nconst fs = require('fs');\nconst path = require('path');\n\nconst nodemailer = require('nodemailer'... | javascript | chosen |
[
{
"from": "system",
"value": "Test DictionaryObjectModel: correct usage of property\n\n'_' instead of '-' in property names, this fixes the build.\n"
},
{
"from": "human",
"value": "const Eknc = imports.gi.EosKnowledgeContent;\n\nconst InstanceOfMatcher = imports.tests.InstanceOfMatcher;\n\ndesc... | javascript | chosen |
[
{
"from": "system",
"value": "Remove Additional Info Box Fields for Audio Loop Page\n\nNot supported by this page type. Copied over from audio page.\n"
},
{
"from": "human",
"value": "pageflow.ConfigurationEditorView.register('audio_loop', {\n configure: function() {\n this.tab('general', fu... | javascript | chosen |
[
{
"from": "system",
"value": "Add in handling for a user being unmuted\n"
},
{
"from": "human",
"value": "module.exports = function (bot) {\n bot.on('modMute', function (data) {\n if (config.verboseLogging) {\n console.log('[EVENT] modMute ', JSON.stringify(data, null, 2));\... | javascript | chosen |
[
{
"from": "system",
"value": "Update to example with new optional arguments\n"
},
{
"from": "human",
"value": "var canvas,\r\n\tctx,\r\n\tinput,\r\n\tinfo;\r\n\r\nwindow.onload = function(){\r\n\tcanvas = document.getElementById(\"canvas\");\r\n\tctx = canvas.getContext('2d');\r\n\t\r\n\tinput =... | javascript | chosen |
[
{
"from": "system",
"value": "Change to lowercase name for eslint\n"
},
{
"from": "human",
"value": "const HTMLHint = require(\"htmlhint\").HTMLHint\n\nmodule.exports = function () {\n this.filter(\"htmlhint\", (source, options) => {\n try {\n const messages = HTMLHint(source, options)\... | javascript | chosen |
[
{
"from": "system",
"value": "Allow users to set the per_page option to 0\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar assign = require('object-assign');\n\nhexo.config.category_generator = assign({\n per_page: hexo.config.per_page || 10\n}, hexo.config.category_generator);\n\nhexo.e... | javascript | chosen |
[
{
"from": "system",
"value": "Append suffix \"-loader\" to each loaders for webpack2\n"
},
{
"from": "human",
"value": "require('style!css!sass!./materialize-styles!./materialize.config.js');\n"
},
{
"from": "gpt",
"value": "require('style-loader!css-loader!sass-loader!./materialize-... | javascript | chosen |
[
{
"from": "system",
"value": "Change server to redirect to new domain\n"
},
{
"from": "human",
"value": "fs = require('fs')\nreq = require('request')\nserver = require('node-router').getServer()\n\nserver.get(\"/\", function(request, response){\n fs.readFile(__dirname + '/index.html', func... | javascript | chosen |
[
{
"from": "system",
"value": "Fix bug in strict mode test bundles\n"
},
{
"from": "human",
"value": "\"use strict\";\n\nrequire(\"source-map-support/register\");\n\nif (typeof window === \"object\") {\n // eslint-disable-next-line no-native-reassign\n global = window;\n mocha.setup(\"bdd\");\... | javascript | chosen |
[
{
"from": "system",
"value": "Add testcase for file not found\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar CE = require('..');\n\n\ndescribe('Test getReferenceList', function () {\n it('Check the json', function () {\n this.timeout(20000);\n this.retries(5);\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add interceptor to cache requests (comment it as it's slower than normal)\n"
},
{
"from": "human",
"value": "/**\n * The function that will trigger the editor\n *\n * @param element : string|Object the dom element to trigger the editor\n * @param defaultTextarea : o... | javascript | chosen |
[
{
"from": "system",
"value": "Test for example in readme\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar assume = require('../../lib/assume.js');\n\n\ndescribe('Assume.js embodying chai.expect', function () {\n\n it('should not have altered expect() used in these tests - just to be su... | javascript | chosen |
[
{
"from": "system",
"value": "Add a quick url for voting for demo winners\n\nThis needs to be removed after May 4th, 2017"
},
{
"from": "human",
"value": "var express = require('express');\n\nmodule.exports = (keystone) => {\n\tlet router = express.Router();\n\n\t/* GET home page. */\n\trouter.g... | javascript | chosen |
[
{
"from": "system",
"value": "Set content type to application/atom+xml\n"
},
{
"from": "human",
"value": "\n/*\n * GET home page.\n */\n\nexports.index = function(req, res){\n res.render('index', { title: 'IndieWebCamp IRC Atom Feed' });\n};\n\nexports.atom = function(req, res){\n res.render('... | javascript | chosen |
[
{
"from": "system",
"value": "Add GitLab CI commit env variable"
},
{
"from": "human",
"value": "(function (logger, exec, Promise) {\n 'use strict';\n module.exports = {\n getCommitId: function (commitId) {\n return new Promise(function (resolve, reject) {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "fix(entity-browser): Fix URL for forms fetch mock\n"
},
{
"from": "human",
"value": "import {utilFetchMocks} from 'tocco-util/dev'\n\nimport {createUsers} from './recordFactory'\n\nconst allRecords = createUsers(1000)\n\nexport default function setupFetchMock(fetchM... | javascript | chosen |
[
{
"from": "system",
"value": "Add new default temperature attributes for extruder1, extruder2 and bed\n"
},
{
"from": "human",
"value": "/*\n * (c) Daniel Arroyo. 3DaGoGo, Inc. (daniel@astroprint.com)\n *\n * Distributed under the GNU Affero General Public License http://www.gnu.org/licenses/a... | javascript | chosen |
[
{
"from": "system",
"value": "Update Config for login user\n"
},
{
"from": "human",
"value": "/**\n * @ngdoc function\n * @name belajarOauth2ImplicitClientApp.controller:MainCtrl\n * @description\n * # MainCtrl\n * Controller of the belajarOauth2ImplicitClientApp\n */\n\n(function() {\n 'use st... | javascript | chosen |
[
{
"from": "system",
"value": "Implement login before selenium test.\n"
},
{
"from": "human",
"value": "var baseUrl = 'http://127.0.0.1:3000/';\n\n// An example configuration file.\nexports.config = {\n // Do not start a Selenium Standalone sever - only run this using chrome.\n // chromeOnly: ... | javascript | chosen |
[
{
"from": "system",
"value": "tests/helpers: Use time travel instead of time freezing\n"
},
{
"from": "human",
"value": "import setupMirage from 'ember-cli-mirage/test-support/setup-mirage';\nimport window from 'ember-window-mock';\nimport { setupWindowMock } from 'ember-window-mock/test-support... | javascript | chosen |
[
{
"from": "system",
"value": "Add a show-link link to smoothed posts.\n"
},
{
"from": "human",
"value": "$(document).ready(function(){\n reblogSmoother();\n $(window).scroll(function(){\n reblogSmoother();\n });\n});\n\nfunction reblogSmoother(){\n var posts = $('.post_full, .... | javascript | chosen |
[
{
"from": "system",
"value": "Add log of total counts\n"
},
{
"from": "human",
"value": "console.log('hello')\nconst css = require('../style/app.scss');\n\nimport _ from 'lodash';\nimport React from 'react';\nimport ReactDOM from 'react-dom';\n\n\nclass App extends React.Component {\n construct... | javascript | chosen |
[
{
"from": "system",
"value": "Add method for extracting params from the request."
},
{
"from": "human",
"value": "var sprintf = require('sprintf').sprintf;\n\nvar httpConstants = require('http/constants');\n\nfunction returnError(res, code, msg) {\n var headers;\n code = code || 900;\n msg = ... | javascript | chosen |
[
{
"from": "system",
"value": "fix(Routing): Monitor path to update active simulation and project via redux\n"
},
{
"from": "human",
"value": "import 'normalize.css';\nimport 'HPCCloudStyle/global.mcss';\n\nimport React from 'react';\nimport { render } from 'react-dom';\nimpo... | javascript | chosen |
[
{
"from": "system",
"value": "Set current time to 952 after pause\n"
},
{
"from": "human",
"value": "var audio = document.getElementById(\"chris\");\n\nfunction pauseChris() {\n\tif (audio.currentTime >= 1283) {\n\t\taudio.pause();\n\t\tclearInterval(interval);\n\t}\n}\n\nfunction playChris() {\... | javascript | chosen |
[
{
"from": "system",
"value": "Use promises for looping through pathes to check authentication\n"
},
{
"from": "human",
"value": "\n'use strict';\n\nvar test = require('selenium-webdriver/testing'),\n application_host = 'http://localhost:3000/',\n new_user_email,\n webdriver = ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix for bad db.json path?\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst jsonServer = require('json-server');\nconst server = jsonServer.create();\nconst router = jsonServer.router('db.json');\nconst middlewares = jsonServer.defaults();\n\nconst { updateJ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix error al pulsar creditos\n\nSe añade errors en la ruta de creditos...\n"
},
{
"from": "human",
"value": "var express = require('express');\nvar router = express.Router();\nvar quizController = require('../controllers/quiz_controller');\n\n/* GET home page. */\nr... | javascript | chosen |
[
{
"from": "system",
"value": "Make all HTTP verbs return the Goodbye message"
},
{
"from": "human",
"value": "var express = require('express');\nvar router = express.Router();\n\n/* GET home page. */\nrouter.get('*', function(req, res) {\n res.render('index', { title: 'Goodbye!' });\n});\n\nmod... | javascript | chosen |
[
{
"from": "system",
"value": "Use plain `expected` for self-testing samples\n"
},
{
"from": "human",
"value": "'use strict';\n\n\nvar assert = require('assert');\n\n\nfunction testHandler(actual) {\n var expected = testHandler.getExpectedData();\n\n assert.strictEqual(actual.length, expected.l... | javascript | chosen |
[
{
"from": "system",
"value": "Use 2 spaces for an indent\n"
},
{
"from": "human",
"value": "jQuery(function($, undefined) {\n var id = Math.random().toString();\n var sendCommandQueue = [];\n\n function enqueueCommand(command, onResponse) {\n var sendCommand = function() {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add second jasmine spec for bootstrap toggle spec\n"
},
{
"from": "human",
"value": "describe('bootstrap toggle', function() {\n var header;\n beforeEach(function() {\n setFixtures('<li class=\"dropdown\" id=\"menuOrgs\">'+\n '<a class=\"drop... | javascript | chosen |
[
{
"from": "system",
"value": "Allow to load a different test fixture.\n"
},
{
"from": "human",
"value": "import { getMountPoint } from './testHelpers'\nimport { createTestApp } from './integrationTestHelpers'\n\nexport default function setupTestApp (t, options = {}) {\n // TODO: this is a littl... | javascript | chosen |
[
{
"from": "system",
"value": "Add test for creating story\n"
},
{
"from": "human",
"value": "var should = require(\"should\")\nvar request = require('supertest')\n\nvar url = \"http://localhost:3000\"\nvar request = request(url);\n\n\ndescribe('Stories', function(){\n\n\n describe('POST /storie... | javascript | chosen |
[
{
"from": "system",
"value": "Fix test referring to old API\n"
},
{
"from": "human",
"value": "\nbuster.testCase('FruitMachine.define()', {\n\tsetUp: function() {},\n\n\t\"Should store the module in FruitMachine.store under module type\": function() {\n\t\tFruitMachine.define({ module: 'my-modul... | javascript | chosen |
[
{
"from": "system",
"value": "docs(site): Add dependabot task to site sidebar\n"
},
{
"from": "human",
"value": "module.exports = {\n\tsomeSidebar: {\n\t\tDocs: [\n\t\t\t'getting-started',\n\t\t\t'making-tasks',\n\t\t\t'sharing-tasks',\n\t\t\t'making-presets',\n\t\t\t'mrm-core',\n\t\t\t'faq',\n\... | javascript | chosen |
[
{
"from": "system",
"value": "Remove column from error output for now\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar configLoader = require('./config-loader');\nvar LessHint = require('./lesshint');\nvar meow = require('meow');\nvar Vow = require('vow');\n\nmodule.exports = function () ... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"Include Arguments in O.collection\"\n\nThis reverts commit 730f520fa12421e379baa49fa980b157bb003d9f.\n"
},
{
"from": "human",
"value": "var _ = require('_'),\n overload = require('overload');\n\n// Configure overload to throw type errors\noverload.protot... | javascript | chosen |
[
{
"from": "system",
"value": "Fix interval so it allows intervals down to 10 minutes\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar db = require('./db');\n\nexports.loadDueJobs = function (cb) {\n db.jobs.find({ $or: [{ due: { $exists: false } }, { due: { $lte: new Date() } }] }, cb);\... | javascript | chosen |
[
{
"from": "system",
"value": "Use `String` constructor instead of concatenation trick\n\nThe concatenation trick will call `valueOf` under the hood,\nwhich has funky implications if you're dealing with `seq`\nsince we're overriding `valueOf` there.\n"
},
{
"from": "human",
"value": "module.expor... | javascript | chosen |
[
{
"from": "system",
"value": "REFACTOR: Split controller fetcher into its own function\n"
},
{
"from": "human",
"value": "/**\n* Run a given function within a controller scope\n* This has the effect that Angular is aware of variable changes within scope\n* @param string controller The name of th... | javascript | chosen |
[
{
"from": "system",
"value": "Add feature flag to disable Fiber-specific features\n\nWe'll enable this in www in case we need to roll back to Stack.\n"
},
{
"from": "human",
"value": "/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed und... | javascript | chosen |
[
{
"from": "system",
"value": "chore: Disable custom configuration for `arrow-body-style`\n\n"
},
{
"from": "human",
"value": "\nmodule.exports = {\n extends: [\n 'eslint-config-airbnb-base/rules/es6'\n ],\n rules: {\n // Enforces no braces where they can be omitted\n // http://eslint... | javascript | chosen |
[
{
"from": "system",
"value": "Remove dynamic route component importing\n"
},
{
"from": "human",
"value": "import Vue from 'vue';\nimport VueRouter from 'vue-router';\nimport * as RouteNames from './constants/route';\nimport Loading from './vue/Loading.vue';\nimport NotFound from './vue/NotFound.... | javascript | chosen |
[
{
"from": "system",
"value": "Fix a case where AttrMorph was being extended\n"
},
{
"from": "human",
"value": "import Ember from \"ember-metal/core\";\nimport DOMHelper from \"dom-helper\";\nimport o_create from 'ember-metal/platform/create';\n\nvar HTMLBarsAttrMorph = DOMHelper.prototype.AttrMo... | javascript | chosen |
[
{
"from": "system",
"value": "Fix issue with backlog page\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport {Match} from 'react-router';\nimport { Grid } from 'react-bootstrap'\nimport OrgSelector from './OrgSelector'\nimport TeamSelector from './TeamSelector'\nimport TeamRep... | javascript | chosen |
[
{
"from": "system",
"value": "Use `playButtonSelector` property instead of `isPlaying` function\n"
},
{
"from": "human",
"value": "'use strict';\n\n/* global Connector */\n\nConnector.playerSelector = '#playerCt';\n\nConnector.artistSelector = '.track-meta .PLArtist';\n\nConnector.trackSelector ... | javascript | chosen |
[
{
"from": "system",
"value": "Enable placeholder for all inputs and text areas"
},
{
"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/ass... | javascript | chosen |
[
{
"from": "system",
"value": "Reduce the slugify rebounce to 250ms instead of 1000ms.\n"
},
{
"from": "human",
"value": "var seo = {\n init: function() {\n this.sluggable_input().on('keyup', $.debounce(1000, this.keyup_listener));\n },\n\n data: function(key) {\n return $('[data-seo]').... | javascript | chosen |
[
{
"from": "system",
"value": "Create CommentsWrapper component for data management\n"
},
{
"from": "human",
"value": "import React from 'react'\nimport ReactDOM from 'react-dom'\nimport Comment from './comment.js'\nimport LoadingContainer, {PresentState, EmptyState} from 'snax/lib/containers/loa... | javascript | chosen |
[
{
"from": "system",
"value": "Fix hiding sign-up form on success.\n"
},
{
"from": "human",
"value": "Teikei.module('User', function(User, App, Backbone, Marionette, $, _) {\n\n User.Model = Backbone.Model.extend({\n\n urlRoot: \"/api/v1/sessions/\",\n\n initialize: function() {\n if ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix issue refreshing list content.\n"
},
{
"from": "human",
"value": "import Ember from \"ember\";\nexport default Ember.Component.extend({ \n name: \"select-or-typeahead\",\n class: null,\n content: null,\n label: null,\n list: null,\n p... | javascript | chosen |
[
{
"from": "system",
"value": "Add possibility to linkable image\n"
},
{
"from": "human",
"value": "import React, { Component, PropTypes } from 'react'\nimport { Entity } from 'draft-js'\n\n\nclass Media extends Component {\n\n render() {\n const { block } = this.props\n\n const entity = E... | javascript | chosen |
[
{
"from": "system",
"value": "test(Display): Update tests for Display component\n"
},
{
"from": "human",
"value": "import React from 'react';\n\nimport { shallow, mount } from 'enzyme';\nimport Immutable from 'immutable';\nimport {expect} from 'chai';\n\nimport CodeCell from '../../../../src/not... | javascript | chosen |
[
{
"from": "system",
"value": "Add missing participate event handlers.\n"
},
{
"from": "human",
"value": "Teikei.module(\"Participate\", function(Participate, Teikei, Backbone, Marionette, $, _) {\n Participate.Controller = {\n _navigateToTab: function(tabNum) {\n var participateView = n... | javascript | chosen |
[
{
"from": "system",
"value": "Rename missing env variable REACT_APP_FLASK_API_HOST in to REACT_APP_HOST_NAME\n"
},
{
"from": "human",
"value": "\n\nconst BASE_URL = process.env.REACT_APP_FLASK_API_HOST;\n\nclass UrlBuilder {\n constructor(version) {\n const versionUrl = UrlBuilder._combineUr... | javascript | chosen |
[
{
"from": "system",
"value": "Fix syntax error - rewrite shortand condition\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst AWS = require('aws-sdk');\n\nconst dynamoDb = new AWS.DynamoDB.DocumentClient();\nconst params = {\n TableName: process.env.SURVEYS_TABLE,\n};\n\nmodule.exports.... | javascript | chosen |
[
{
"from": "system",
"value": "Return outer html tag too\n"
},
{
"from": "human",
"value": "// This script needs to be run using phantomjs\n//\n// Example usage:\n// ~/.phantomjs/2.1.1/darwin/bin/phantomjs phantomjs/get.js\n\nvar page = require('webpage').create();\nvar system = require('system')... | javascript | chosen |
[
{
"from": "system",
"value": "Add backward compatibility with old iOS plugin"
},
{
"from": "human",
"value": "\nvar sms = {\n send: function(phone, message, method, successCallback, failureCallback) {\n if (Object.prototype.toString.call(phone) !== '[object Array]') {\n phone ... | javascript | chosen |
[
{
"from": "system",
"value": "Use loose mode for proposal-object-rest-spread\n"
},
{
"from": "human",
"value": "const loose = true\n\nmodule.exports = {\n presets: [\n \t['@babel/env', {\n \t\tloose,\n \t\tmodules: false,\n \t}],\n \t'@babel/react',\n ],\n plugins: [\n \t['@babel/propos... | javascript | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.