conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Fix to work with csarven's changes to util.js\n"
},
{
"from": "human",
"value": "jQuery(document).ready(function($){\n $('notices_primary').infinitescroll({\n debug: true,\n infiniteScroll : false,\n nextSelector : 'body#public li.nav_next a,'+\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add setTimeout to the Then step to ensure processing before assert.\n"
},
{
"from": "human",
"value": "'use strict';\n\nfunction Specs() {\n //console.log('After:', this.World);\n\n this.Given(/^I am a thingamabob client on port (\\d*)$/, function(port, callba... | javascript | chosen |
[
{
"from": "system",
"value": "Change users API auth rules\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar express = require('express');\nvar controller = require('./user.controller');\nvar config = require('../../config/environment');\nvar auth = require('../../auth/auth.service');\n\nva... | javascript | chosen |
[
{
"from": "system",
"value": "Update karma typescript es6 transform presets\n"
},
{
"from": "human",
"value": "module.exports = function(config) {\n config.set({\n frameworks: ['mocha', 'chai', 'karma-typescript', 'sinon'],\n browsers: ['ChromeHeadless', 'FirefoxHeadless'],\n files: [\... | javascript | chosen |
[
{
"from": "system",
"value": "Use native DOM commands for screenshot ready expression\n\nInstead of using jQuery, use document.querySelector. This avoids warning\nmessages in screenshot-as-a-service.\n"
},
{
"from": "human",
"value": "define([\n 'http',\n 'url'\n],\nfunction (http, url) {\n v... | javascript | chosen |
[
{
"from": "system",
"value": "Use `import` for ES6 modules\n"
},
{
"from": "human",
"value": "let AnnotationApi = require('./annotation');\nlet ScssCommentParser = require('scss-comment-parser');\n\nexport default class Parser {\n constructor (config) {\n this.annotations = new AnnotationApi... | javascript | chosen |
[
{
"from": "system",
"value": "Add Greenland to non hoverable countries\n"
},
{
"from": "human",
"value": "// We won't show Taiwan and Western Sahara as an independent country\nexport const IGNORED_COUNTRIES_ISOS = ['TWN', 'ESH'];\n"
},
{
"from": "gpt",
"value": "// We won't show Taiw... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"Revert \"Count filtered r/all as a fake subreddit\"\"\n\nThis reverts commit 2d8b5dc24fdc677d634edb9ae24f35cdcc8d9aa6.\n"
},
{
"from": "human",
"value": "const randomSubs = ['random', 'randnsfw', 'myrandom'];\nconst fakeSubs = ['all', 'mod', 'friends'].conc... | javascript | chosen |
[
{
"from": "system",
"value": "Add support for task-specific workers\n"
},
{
"from": "human",
"value": ";(function (name, definition) {\n var theModule = definition(),\n hasDefine = typeof define === 'function' && define.amd,\n hasExports = typeof module !== 'undefined' && module.exports... | javascript | chosen |
[
{
"from": "system",
"value": "Move populate/get into its own method\n\nSigned-off-by: Ian Macalinao <b1c1d8736f20db3fb6c1c66bb1455ed43909f0d8@ian.pw>\n"
},
{
"from": "human",
"value": "var async = require(\"async\");\nvar bay6 = require(\"../lib/\");\nvar expect = require(\"chai\").expect;\nvar ... | javascript | chosen |
[
{
"from": "system",
"value": "Set no. of cores test to available CPU cores\n"
},
{
"from": "human",
"value": "var chai = require(\"chai\");\nvar expect = chai.expect;\nvar inspect = require(\"util\").inspect;\n\nvar Cluster = require('../cluster');\nvar cluster;\n\ndescribe(\"Init Test Suite\", ... | javascript | chosen |
[
{
"from": "system",
"value": "Fixed: Use new name for XMLHTTPRequest module as we now use another module\n"
},
{
"from": "human",
"value": "var window = exports;\n\nwindow.window = window;\n\nwindow.DOMParser = require(\"xmldom\").DOMParser;\n\nwindow.XMLHttpRequest = require(... | javascript | chosen |
[
{
"from": "system",
"value": "Modify migration model to be correct\n"
},
{
"from": "human",
"value": "/* This Source Code Form is subject to the terms of the Mozilla Public\n * License, v. 2.0. If a copy of the MPL was not distributed with this\n * file, You can obtain one at http://mozilla.org/... | javascript | chosen |
[
{
"from": "system",
"value": "Put both output and console\n"
},
{
"from": "human",
"value": "const config = require(\"./../config.json\");\nconst MSS = require(\"./../functions/\");\nconst Sandbox = require(\"sandbox\");\n\nmodule.exports = function(message) {\n\tvar s = new Sandbox;\n\n\tif(mes... | javascript | chosen |
[
{
"from": "system",
"value": "Replace Minions on Board with only id's\n"
},
{
"from": "human",
"value": "import { List } from 'immutable';\nimport { PLAY_CARD } from './hand';\nimport { HIT_MINION } from './minion';\n\n// const MAX_CARDS_ON_BOARD = 7;\nconst initialState = new List;\n\nfunction ... | javascript | chosen |
[
{
"from": "system",
"value": "Add delete to Rule model\n"
},
{
"from": "human",
"value": "'use strict'\n\nconst ElectronConfig = require('electron-config')\nconst storage = new ElectronConfig()\nconst Rules = require('./rules')\n\nclass Rule {\n constructor(key) {\n this.key = key\n }\n\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Check if recipes are present in recipe list view"
},
{
"from": "human",
"value": "var RecipeListView = function (recipes) {\n\n this.initialize = function() {\n this.$el = $('#content');\n if(recipes[0] !== undefined)\n this.render();\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Clean up exception error message\n"
},
{
"from": "human",
"value": "export default function(tokens) {\n const items = tokens.body;\n\n function walk(token) {\n // If no type exists, continue\n if (!token || !token.valueType || token.valueType === \"let\") {\... | javascript | chosen |
[
{
"from": "system",
"value": "Add ability to specify an async test the same way you do in Mocha except for the fact that it's a deferred object not a function because we can't change that.\n"
},
{
"from": "human",
"value": "var TIMEOUT = 1000000;\n\nmodule.exports = function (name, options) {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Make an initial pass at allowing searching of areas on metadata\n"
},
{
"from": "human",
"value": "import major from './major'\nimport concentration from './concentration'\nimport emphasis from './emphasis'\nimport degree from './degree'\n\nexport {major, concentrat... | javascript | chosen |
[
{
"from": "system",
"value": "Fix Main Layout tests run issue.\n"
},
{
"from": "human",
"value": "(function() {\n 'use strict';\n\n var root = this;\n\n root.define([\n 'views/layout/main'\n ],\n function(Main) {\n\n describe('Main Layout', function () {\n\n it('should be... | javascript | chosen |
[
{
"from": "system",
"value": "Add properties datastore to the module datastore.\n"
},
{
"from": "human",
"value": "/**\n * `modules/analytics-4` data store\n *\n * Site Kit by Google, Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may ... | javascript | chosen |
[
{
"from": "system",
"value": ":ambulance: Remove ref to deleted file\n"
},
{
"from": "human",
"value": "/* @flow */\nimport React from 'react' \nimport classes from './Togglol.scss'\nimport TogglolCalendar from './TogglolCalendar'\nimport ApiKeyInput from './ApiKeyInput'\n\nimport type { TimeEn... | javascript | chosen |
[
{
"from": "system",
"value": "Set localStorage key based on subdir\n\ncloses #6326\n"
},
{
"from": "human",
"value": "import AdaptiveStore from 'ember-simple-auth/session-stores/adaptive';\n\nexport default AdaptiveStore.extend({\n localStorageKey: 'ghost:session',\n cookieName: 'ghost:ses... | javascript | chosen |
[
{
"from": "system",
"value": "Add partnerships to main nav"
},
{
"from": "human",
"value": "const items = [\n {\n menu: {\n header: 'Our Story',\n link: '/about',\n activeName: 'about',\n }\n },\n {\n menu: {\n header: 'Team',\n link: '/about/team',\n ac... | javascript | chosen |
[
{
"from": "system",
"value": "Add done to collectLanguages test\n"
},
{
"from": "human",
"value": "var should = require('should'),\n Matryoshka = require('../lib/').Matryoshka,\n langs;\n\ndescribe('Matryoshka Packer API', function () {\n it('should have static method languagePackers to colle... | javascript | chosen |
[
{
"from": "system",
"value": "Change global in btoa segment to refer to exports instead of this for consistency (and so it works on Titanium android)"
},
{
"from": "human",
"value": "(function (global) {\n var b64 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';\n\n /... | javascript | chosen |
[
{
"from": "system",
"value": "Allow users to define project assets\n"
},
{
"from": "human",
"value": "const path = require('path');\n\nconst android = require('./android');\nconst ios = require('./ios');\nconst findAssets = require('./findAssets');\n\nconst getRNPMConfig = (folder) =>\n require... | javascript | chosen |
[
{
"from": "system",
"value": "Change route for list titles\n"
},
{
"from": "human",
"value": "var express = require('express');\nvar router = express.Router();\nvar handlers = require('./handlers');\n\nrouter.get('/', handlers.index);\nrouter.get('/list-posts', handlers.getPostList);\nrouter.get... | javascript | chosen |
[
{
"from": "system",
"value": "Improve test by removing a hard coded value\n\nSmall things make life sweet.\n"
},
{
"from": "human",
"value": "var common = require('../../common');\nvar connection = common.createConnection();\nvar assert = require('assert');\n\ncommon.useTestDb(connection... | javascript | chosen |
[
{
"from": "system",
"value": "Fix bug with alloy deployed to dialog\n"
},
{
"from": "human",
"value": "import React, {Component, PropTypes} from 'react';\nimport AlloyEditor from 'alloyeditor';\n\nexport default class AlloyEditorComponent extends Component {\n componentDidMount() {\n t... | javascript | chosen |
[
{
"from": "system",
"value": "Fix button for activity tabular\n"
},
{
"from": "human",
"value": "/*****************************************************************************/\n/* ActivitiesButtons: Event Handlers */\n/****************************************************************************... | javascript | chosen |
[
{
"from": "system",
"value": "fix(logging): Set the log level to debug again.\nPlan is to make the Strophe logs more restrictive.\nRevert \"fix(logging) reduce overly vebose logging\"\n\nThis reverts commit 09af88088ded3ab5e8343f6ebedeffc8d752f95f.\n"
},
{
"from": "human",
"value": "/* eslint-di... | javascript | chosen |
[
{
"from": "system",
"value": "Add Donate section to admin section selector\n"
},
{
"from": "human",
"value": "// Available sections for content pages\nvar sections = [\n {slug: 'about', label: \"About\"}\n];\n\norion.addEntity('contentPages', {\n // sectionSlug and slug are used for very simpl... | javascript | chosen |
[
{
"from": "system",
"value": "Fix Sha1Stream return raw buffer\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar Stream = require('stream');\nvar Transform = Stream.Transform;\nvar crypto = require('crypto');\n\nvar ALGORITHM = 'sha1';\nvar ENCODING = 'hex';\n\nfunction Sha1Stream() {\n T... | javascript | chosen |
[
{
"from": "system",
"value": "Remove the tests that depends on chrome\n"
},
{
"from": "human",
"value": "/*global describe, it, expect, TourabuEx, beforeEach */\n\ndescribe('notifier', function () {\n 'use strict';\n var n = TourabuEx.Notifier;\n beforeEach(function (done) {\n va... | javascript | chosen |
[
{
"from": "system",
"value": "Make the const properties enumerable.\n"
},
{
"from": "human",
"value": "import _ from 'lodash';\n\nexport function defineConstProperties(obj, properties) {\n _.forEach(properties, (v, k) => defineConstProperty(obj, k, v));\n return obj;\n}\n\nexport function defi... | javascript | chosen |
[
{
"from": "system",
"value": "Set email target from process var\n"
},
{
"from": "human",
"value": "var _ = require('underscore')\n\t, nodemailer = require('nodemailer')\n\t, secrets = require('../config/secrets');\n\n\nvar smtpTransport = nodemailer.createTransport('SMTP', {\n service: 'Mailgun'... | javascript | chosen |
[
{
"from": "system",
"value": "Add new string extension to normalize value.\nBehavior will transform an input like ///path//to/uri// into /path/to/uri/.\n"
},
{
"from": "human",
"value": "String.prototype.trimBoth = function(s) {\n\treturn this.replace(new RegExp(\"^\" + s + \"+|\" + s + \"+$\", ... | javascript | chosen |
[
{
"from": "system",
"value": "Read port and log level from environment\n"
},
{
"from": "human",
"value": "import deviceMiddleware from 'express-device';\nimport express from 'express';\nimport bodyParser from 'body-parser';\nimport winston from 'winston';\n\nimport routerRender from './middlewar... | javascript | chosen |
[
{
"from": "system",
"value": "Fix the bug of the API key object\n"
},
{
"from": "human",
"value": "var request = require('superagent');\nvar Q = require('q');\n\n// Marvel public API key\nvar key = require('./api-key');\n\nvar charactersUrl = 'http://gateway.marvel.com/v1/public/characters'\n\ne... | javascript | chosen |
[
{
"from": "system",
"value": "Fix typo:\nsuit =>\nsuite\n"
},
{
"from": "human",
"value": "var assert = require('chai').assert;\nvar nodemock = require('nodemock');\n\nvar Connection = require('../lib/backend-adaptor').Connection;\n\nfunction createSender() {\n return nodemock;\n}\n\nfunction c... | javascript | chosen |
[
{
"from": "system",
"value": "Change sample DB host from mongohq to mongolab\n"
},
{
"from": "human",
"value": "// default app configuration\nmodule.exports = {\n port: process.env.PORT || 4000,\n db: process.env.MONGOLAB_URI || process.env.MONGODB_URI || \"mongodb://nodegoat:owasp@widmor... | javascript | chosen |
[
{
"from": "system",
"value": "Add test with invalid signal name\n"
},
{
"from": "human",
"value": "/*\n * signal__with_details.js\n */\n\nconst gi = require('../lib/')\nconst Gtk = gi.require('Gtk', '3.0')\nconst Gdk = gi.require('Gdk', '3.0')\nconst common = require('./__common__.js')\n\ngi.sta... | javascript | chosen |
[
{
"from": "system",
"value": "Support for django csrf token\n\n Now an $http call through horizon will automatically be provided\nwith the csrf token needed by django.\n\nChange-Id: I50bb7180e8f4e515365deaef24891c11cb1a84e0\nImplements: blueprint horizon-angular\nCo-Authored-By: miziel-r <7a5c8051f72588a... | javascript | chosen |
[
{
"from": "system",
"value": "Fix typos and grammar errors"
},
{
"from": "human",
"value": "{\n\t\"%d unread message\": {\n\t\t\"one\": \"%d непрочитане повідомлення\",\n\t\t\"other\": \"%d непрочитаних пвідомлень\"\n\t},\n\t\"Unread messages in %%s, %%s and one other\": {\n\t\t\"one\": \"Непроч... | javascript | chosen |
[
{
"from": "system",
"value": "Allow for : characters following body keywords\n"
},
{
"from": "human",
"value": "const { lineBreak } = require('./helpers')\n\nmodule.exports = (changes, changeIndex, config) => {\n const nextLine = changes[changeIndex + 1]\n if (!nextLine) return false\n\n cons... | javascript | chosen |
[
{
"from": "system",
"value": "Use Buffer to get the base64 string\n"
},
{
"from": "human",
"value": "/**\n * Convert an object to a base64 string\n */\nvar JSON3 = require('json3')\nvar Base64 = require('Base64')\n\nmodule.exports = function objectToBase64 (object) {\n return Base64.btoa(JSON3.... | javascript | chosen |
[
{
"from": "system",
"value": "Fix focus state when field has value\n"
},
{
"from": "human",
"value": "(function () {\n 'use strict';\n\n moj.Modules.LabelPlaceholder = {\n el: '.js-LabelPlaceholder',\n className: 'is-focused',\n\n init: function () {\n _.bindAll(this, 'render', '... | javascript | chosen |
[
{
"from": "system",
"value": "Fix CTDL-ASN export on dev/qa deployments\n\n"
},
{
"from": "human",
"value": "module.exports = {\n apps : [\n {\n name: \"CaSS\",\n script: \"./src/main/server.js\",\n watch: true,\n ignore_watch: [\"logs\"],\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Update new credentials file location\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst fs = require('fs-extra'),\n fromFile = fs.readJsonSync(require('path').join(__dirname, 'integration-test-resources.json'));\n\nmodule.exports = {\n credentials: {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add unique beginning of test description.\n"
},
{
"from": "human",
"value": "import {\n assertThat, equalTo,\n anything,\n Matcher,\n} from 'hamjest';\n\ndescribe('`anything()`, matches any value and never fails', () => {\n describe('for example', () => {\n i... | javascript | chosen |
[
{
"from": "system",
"value": "Fix \"Add your company\" button\n"
},
{
"from": "human",
"value": "/**\n * @jsx React.DOM\n */\n\nconst React = require('React');\nconst Site = require('Site');\nconst Container = require('Container');\nconst siteConfig = require('../../siteConfig.js');\n\nclass Use... | javascript | chosen |
[
{
"from": "system",
"value": "Replace process.stdin getter on IISNode\n"
},
{
"from": "human",
"value": "/*\n================================================\n\n███████╗██╗██████╗ ███████╗███████╗██╗ ██╗ ██╗ \n██╔════╝██║██╔══██╗██╔════╝██╔════╝██║ ╚██╗ ██╔╝ \n█████╗ ██║██████╔╝█████╗... | javascript | chosen |
[
{
"from": "system",
"value": "Update Express config environmental file name\n"
},
{
"from": "human",
"value": "/**\n * Copyright 2014 IBM Corp. All Rights Reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with t... | javascript | chosen |
[
{
"from": "system",
"value": "Fix but where 'h' was not set\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\n\nvar argv = require('optimist').argv;\nvar proxy = require('./index');\n\nif (argv.h) {\n var p = h.split(':');\n proxy.setProxyOn(p[0], p[1])\n .then(function() {\n con... | javascript | chosen |
[
{
"from": "system",
"value": "Trim input since stdin will have a trailing \\n\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\n\n'use strict'\n\nvar size = require('./')\nvar meow = require('meow')\nvar fail = require('cli-fail')\nvar prettyBytes = require('pretty-bytes')\nvar stdin = req... | javascript | chosen |
[
{
"from": "system",
"value": "Add a new build process for the development environment.\n"
},
{
"from": "human",
"value": "'use strict'\n\nconst webpack = require('webpack')\nconst path = require('path')\n\nconst configuration = {\n entry: [\n 'webpack-dev-server/client?http://0.0.0.0:8080',\... | javascript | chosen |
[
{
"from": "system",
"value": "Add userAgent information when tracking visits\n"
},
{
"from": "human",
"value": "function trackDetailsAction(action) {\n Parse.Analytics.track('detailsPageAction', { action: action });\n}\n\nfunction trackHomepageAction(searchTerm, category) {\n var dimensions = ... | javascript | chosen |
[
{
"from": "system",
"value": "Disable proxy / caching for localhost requests\n"
},
{
"from": "human",
"value": "squidRoot = _currentPluginPath;\nsquidShared = squidRoot + \"/shared\";\n\ndevstep.on('configLoaded', function(config) {\n config\n .addLink('squid3:squid3.dev')\n .setEnv('ht... | javascript | chosen |
[
{
"from": "system",
"value": "Fix bar chart tests following removal of the matrix\n"
},
{
"from": "human",
"value": "define([\n 'common/views/visualisations/bar-chart/bar-chart',\n 'extensions/views/graph/graph',\n 'common/collections/journey',\n 'extensions/collections/collection'\n],\nfunc... | javascript | chosen |
[
{
"from": "system",
"value": "Add top margin to prevent status bar overlap on app's navbar\n"
},
{
"from": "human",
"value": "import Expo from 'expo';\nimport React from 'react';\nimport PropTypes from 'prop-types';\nimport { View } from 'react-native';\nimport App from './App';\n\n// we don't w... | javascript | chosen |
[
{
"from": "system",
"value": "Enable the new Chrome fix in the demo\n"
},
{
"from": "human",
"value": "<player-demo>\n <player-splash show={!app.route.link}></player-splash>\n <player-video if={app.route.link}></player-video>\n\n <script>\n var self = this;\n\n function up... | javascript | chosen |
[
{
"from": "system",
"value": "Add missing data to the projects table.\n"
},
{
"from": "human",
"value": "'use strict';\nconst Sequelize = require('sequelize');\n\n// projects-model.js - A sequelize model\n//\n// See http://docs.sequelizejs.com/en/latest/docs/models-definition/\n// for more of wh... | javascript | chosen |
[
{
"from": "system",
"value": "Switch api service to prod\n"
},
{
"from": "human",
"value": "import axios from 'axios';\n\nclass WldApi {\n constructor() {\n if(!WldApi.instance) {\n // this.baseURL = 'http://wld-backend.herokuapp.com';\n this.baseURL = 'http://localhost:3001';\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Apply a once function to modal\n\nYou only want this to run one time. Subsequent 403 errors can be\nignored.\n"
},
{
"from": "human",
"value": "/*global define*/\ndefine(['lodash'], function() {\n 'use strict';\n var ErrorService = function($log, $modal) {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix CasperJS not finding utils\n"
},
{
"from": "human",
"value": "/* jshint phantom: true */\n/* global patchRequire */\n\"use strict\";\n\nvar require = patchRequire(require);\n\nvar config = exports;\n\nconfig.casperOptions = {\n\t\"clientScripts\": [\"./utils.js\... | javascript | chosen |
[
{
"from": "system",
"value": "Remove unused check for queue item before executing iterator\n"
},
{
"from": "human",
"value": "/**\n * Process queue with async capability\n *\n * @param {Array} queue - Items to be processed (usually functions)\n * @param {Function} iterator - Process each item in... | javascript | chosen |
[
{
"from": "system",
"value": "Hide tooltip on view's willDestroyElement in case mouseLeave event doesn't get triggered before teardown\n"
},
{
"from": "human",
"value": "App.TooltipView = Ember.View.extend({\n classNames: ['inline-block', 'tooltip-container'],\n attributeBindings: ['title', 'd... | javascript | chosen |
[
{
"from": "system",
"value": "Fix buildHtml import to be buildHTML\n"
},
{
"from": "human",
"value": "/* eslint-disable import/no-dynamic-require, react/no-danger */\n\nexport { default as extractTemplates } from './extractTemplates'\nexport { default as preparePlugins } from './preparePlugins'\... | javascript | chosen |
[
{
"from": "system",
"value": "Use process.env.MONGOLAB_URI instead of hard-coded URI\n"
},
{
"from": "human",
"value": "var path = require('path'),\n rootPath = path.normalize(__dirname + '/..'),\n env = process.env.NODE_ENV || 'development';\n\nvar config = {\n development: {\n root: ... | javascript | chosen |
[
{
"from": "system",
"value": "Add default description on user model\n"
},
{
"from": "human",
"value": "const Sequelize = require('sequelize');\nconst db = require('../db.js');\n\nconst Users = db.define('users',\n {\n id: {\n type: Sequelize.UUID,\n defaultValue: Sequelize.UUIDV1,\... | javascript | chosen |
[
{
"from": "system",
"value": "Set dev mode api gateway.\n"
},
{
"from": "human",
"value": "\nconst serverConfig = {\n 'development': {\n api: '/api',\n apiPort: 3001,\n devServerPort: 3000\n },\n 'production': {\n api: 'https://myLovelyApiServer/api'\n }\n};\n\nmodule.exports = s... | javascript | chosen |
[
{
"from": "system",
"value": "Fix the path of required module\n"
},
{
"from": "human",
"value": "var express = require('express');\nvar health = require('./health.js');\nvar message = require('./message.js');\n\nvar log4js = require('log4js');\nvar logger = log4js.getLogger('Routes');\n\nvar rou... | javascript | chosen |
[
{
"from": "system",
"value": "Update mongoose connection code per deprecations\n"
},
{
"from": "human",
"value": "const mongoose = require('mongoose')\nconst Promise = require('bluebird')\n\nmongoose.Promise = Promise\n\nconst uri = process.env.MONGOLAB_URI || 'mongodb://localhost/literasee'\n\n... | javascript | chosen |
[
{
"from": "system",
"value": "Fix capitalization on home page text\n"
},
{
"from": "human",
"value": "import React, { Component } from 'react';\nimport DocumentTitle from 'react-document-title';\n\nimport PurposeCategoryList from 'containers/PurposeCategoryList';\n\nclass HomePage extends Compon... | javascript | chosen |
[
{
"from": "system",
"value": "Add error catch to download component\n"
},
{
"from": "human",
"value": "import Ember from 'ember';\n\nexport default Ember.Controller.extend({\n queryParams: ['viewType', 'nodeId'],\n query: Ember.inject.service(),\n viewType: 'live',\n\n modelArrived: Ember.ob... | javascript | chosen |
[
{
"from": "system",
"value": "[native] Use threadLabel function in ThreadVisibility\n\nTest Plan: Tested all of thread types and checked if label is displayed correctly\n\nReviewers: ashoat, palys-swm\n\nReviewed By: ashoat, palys-swm\n\nSubscribers: zrebcu411, Adrian, atul, subnub\n\nDifferential Revision:... | javascript | chosen |
[
{
"from": "system",
"value": "Change default port to 8080\n\nChange-Id: I5994ca382f32f5117130eda78c317dfeb0a5beb5\n"
},
{
"from": "human",
"value": "var express = require('express');\r\nvar request = require('request');\r\nvar auth = require('./lib/auth.js');\r\n\r\nvar app = express();\r\nvar... | javascript | chosen |
[
{
"from": "system",
"value": "Change template extension from .tpl to .ng.html\n"
},
{
"from": "human",
"value": "/**\n * Created by netanel on 01/01/15.\n */\n\nvar minify = Npm.require('html-minifier').minify;\nPlugin.registerSourceHandler('tpl', {\n isTemplate: true,\n archMatching: \"web\"\... | javascript | chosen |
[
{
"from": "system",
"value": "Add notes to no emit error plugin\n"
},
{
"from": "human",
"value": "const webpack = require('webpack');\n\nmodule.exports = {\n plugins: [\n new webpack.NoEmitOnErrorsPlugin(),\n ],\n};\n"
},
{
"from": "gpt",
"value": "const webpack = require('webp... | javascript | chosen |
[
{
"from": "system",
"value": "Set readOnly: true on Radios in RadioGroups without onChanges to fix React warning\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\n\nexport class RadioGroup extends React.Compo... | javascript | chosen |
[
{
"from": "system",
"value": "fix: Allow refs on lazy components\n"
},
{
"from": "human",
"value": "import React from 'react'\n\nimport { enterHotUpdate } from '../global/generation'\nimport AppContainer from '../AppContainer.dev'\nimport { resolveType } from './resolver'\n\nconst lazyConstructo... | javascript | chosen |
[
{
"from": "system",
"value": "Replace dynamic strings with data from package.json\n"
},
{
"from": "human",
"value": "module.exports = (ctx) => ({\n plugins: {\n 'postcss-lh': {},\n autoprefixer: {},\n cssnano: ctx.env === 'prod' ? {} : false\n }\n});\n"
},
{
"f... | javascript | chosen |
[
{
"from": "system",
"value": "Add example time zones to option definition\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\n\nconst chalk = require('chalk');\nconst yargs = require('yargs');\n\n// ./modules\nconst rocketLaunch = require('./lib/modules/rocketLaunch');\n\nvar argv = yargs\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix issue with relative stylesheets across files.\n\nFixes #13.\n"
},
{
"from": "human",
"value": "'use strict';\nvar gutil = require('gulp-util');\nvar through = require('through2');\nvar juice = require('juice2');\n\nmodule.exports = function(opt){\n return thr... | javascript | chosen |
[
{
"from": "system",
"value": "Return the original function value for static methods, too\n"
},
{
"from": "human",
"value": "var is = require('core-util-is') // added in Node 0.12\n\n/**\n * Instrument an object or class so that anytime a method is invoked, it gets\n * logged to the console.\n *\... | javascript | chosen |
[
{
"from": "system",
"value": "Change default port to 80\n"
},
{
"from": "human",
"value": "var express = require('express'),\n history = require('./routes/history');\n\t\n\nvar app = express();\n\napp.configure(function(){\n app.use(express.bodyParser());\n});\napp.get('/history/count', hist... | javascript | chosen |
[
{
"from": "system",
"value": "Use alternative approach to start screensaver\n"
},
{
"from": "human",
"value": "'use strict';\nvar execFile = require('child_process').execFile;\nvar pify = require('pify');\nvar Promise = require('pinkie-promise');\n\nmodule.exports = function () {\n\tif (process.... | javascript | chosen |
[
{
"from": "system",
"value": "Introduce cwd & options support\n\nfixes #1\n"
},
{
"from": "human",
"value": "var fs = require('fs'),\n spawn = require('child_process').spawn;\n\nmodule.exports = {\n\n config: {\n binary: {\n type: \"string\",\n default: \"/usr/local/bin/perlt... | javascript | chosen |
[
{
"from": "system",
"value": "Add css to root element\n"
},
{
"from": "human",
"value": "var fs = require('fs');\nvar path = require('path');\nvar sass = require('node-sass');\n\nmodule.exports = function dmpSass ($, document, done) {\n sass.render({\n file: 'assets/css/style.scss... | javascript | chosen |
[
{
"from": "system",
"value": "Add copyright to source files\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar walk = require('rework-walk');\n\nexports.prefix = prefixSelector;\nexports.replace = replaceSelector;\n\nfunction prefixSelector(prefix) {\n return function (style) {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add options to allow script injection in head tag\n"
},
{
"from": "human",
"value": "/* jslint node: true */\n'use strict';\n\nvar injector = require('connect-injector');\n\nmodule.exports = function injectBrowserSync(browserSync) {\n var snippet = '';\n\n browser... | javascript | chosen |
[
{
"from": "system",
"value": "Add smelting recipes support, for voxel-furnace\n"
},
{
"from": "human",
"value": "\nvar craftingrecipes = require('craftingrecipes');\nvar ItemPile = require('itempile');\n\nmodule.exports = function(game, opts) {\n return new RecipesPlugin(game, opts);\n};\n\nfun... | javascript | chosen |
[
{
"from": "system",
"value": "Add support to author field can be object or string\n"
},
{
"from": "human",
"value": "'use strict'\nconst glob = require('glob')\nconst prependFile = require('prepend-file')\nconst pkg = require(`${process.cwd()}/package.json`)\n\nfunction banner (options = {}) {\n... | javascript | chosen |
[
{
"from": "system",
"value": "Refactor to more functional style\n"
},
{
"from": "human",
"value": "exports = module.exports = function (options) {\n return function clone(style) {\n return new Clone(style, options || {})\n }\n}\n\nfunction Clone (style, options) {\n var regexp = options.re... | javascript | chosen |
[
{
"from": "system",
"value": "Call broccoli-filter's constructor (and be more future proof)\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar Filter = require('broccoli-filter');\nvar transform = require('coffee-react-transform');\n\nmodule.exports = CjsxFilter;\n\nCjsxFilter.prototype = O... | javascript | chosen |
[
{
"from": "system",
"value": "Use for-loop rather than the filter method\n"
},
{
"from": "human",
"value": "\nvar NotificationsController = SingleModelController.createComponent(\"NotificationsController\");\n\nNotificationsController.defineAlias(\"model\", \"notifications\");\n\nNotificationsCo... | javascript | chosen |
[
{
"from": "system",
"value": "Remove disconnect binding from client\n\nI'm not even sure this would do anything\n"
},
{
"from": "human",
"value": "var socket = io('/push-it');\nvar fingerprint2str;\nvar vid = document.getElementById('bigvid');\nvar bg = document.getElementsByClassName('push-it')... | javascript | chosen |
[
{
"from": "system",
"value": "Add map for supported noteable types\n"
},
{
"from": "human",
"value": "export const DISCUSSION_NOTE = 'DiscussionNote';\nexport const DIFF_NOTE = 'DiffNote';\nexport const DISCUSSION = 'discussion';\nexport const NOTE = 'note';\nexport const SYSTEM_NOTE = 'systemNo... | javascript | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.