conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Check for two RecipeContainers on Profile\n"
},
{
"from": "human",
"value": "const expect = require('chai').expect;\nconst React = require('react');\nimport { Provider } from 'react-redux';\nimport { mount } from 'enzyme';\nimport fakeStore from './fakeStore';\n\nim... | javascript | chosen |
[
{
"from": "system",
"value": "Add guard for empty response\n"
},
{
"from": "human",
"value": "import Component from '@glimmer/component';\nimport { action } from '@ember/object';\nimport { tracked } from '@glimmer/tracking';\n\nexport default class FormButtonComponent extends Component {\n @tra... | javascript | chosen |
[
{
"from": "system",
"value": "Add createAction0 method for action without payload\n"
},
{
"from": "human",
"value": "/**\n * Return an array of function of the form x => { type, payload = x }\n */\nexport function createActions(...types) {\n return types.map(createAction)\n}\n\n/**\n * Create a... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"Fix module resolution for npm-link'd packages\"\n\nThis reverts commit 598cc27b2fe800e5b0a6599a905b546a4bfc4d42.\n"
},
{
"from": "human",
"value": "module.exports = {\n test: /\\.es6\\.js$|\\.js$|\\.jsx$/,\n exclude: /node_modules/,\n loader: 'babel',\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix flakey selenium specs for files\n\nThis change causes the files UI to wait\nfor all DOM content to be loaded before\ninitializing the router and listening\nfor LTI messages\n\nflag=none\n\nTest Plan:\nNavigate to /courses/:id/files and verify\nthe Files UI loads and functio... | javascript | chosen |
[
{
"from": "system",
"value": "Use deployConfig rather than $MONGO_URL in the mongo-livedata package.\n"
},
{
"from": "human",
"value": "// XXX namespacing\nMeteor._RemoteCollectionDriver = function (mongo_url) {\n var self = this;\n self.mongo = new Meteor._Mongo(mongo_url);\n};\n\n_.extend(Me... | javascript | chosen |
[
{
"from": "system",
"value": "Make some fixes in the Character component methods\n"
},
{
"from": "human",
"value": "var React = require('react');\n\nvar Character = React.createClass({\n getThumbnail: function() {\n var image = 'http://placehold.it/250x250';\n\n if(this.props.character.th... | javascript | chosen |
[
{
"from": "system",
"value": "Add ability to force reload the pulls\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport _ from 'lodash';\nimport Icon from './Icon';\n\nclass AccountBar extends React.Component {\n\thandleClick = (e) => {\n\t\tvar currentTarget = e.currentTarget;... | javascript | chosen |
[
{
"from": "system",
"value": "Fix that webpack task for good\n"
},
{
"from": "human",
"value": "module.exports = {\n entry: {\n app: ['./web-src/es6/app.js']<% if (useJQuery || useBootstrap) { %>,\n libs: ['./web-src/js/dist/libs.all.js']\n <% } %>\n },\n output: {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add message to non-cluster CLI to indicate how to exit.\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\n\nvar args = require('../lib/args');\nvar options = args.parse();\nvar instance;\n\nif (options.version) {\n console.log('v' + args.version);\n proc... | javascript | chosen |
[
{
"from": "system",
"value": "Reduce item count in Plex widget\n"
},
{
"from": "human",
"value": "var jarvis = jarvis || angular.module('jarvis', []);\n\njarvis.controller('PlexCtrl', ['$scope',\n function ($scope) {\n 'use strict';\n\n $scope.$on('plex', function (ev, body) {\n if (... | javascript | chosen |
[
{
"from": "system",
"value": "Use class, module and async\n"
},
{
"from": "human",
"value": "\nvar events = require('events')\nvar util = require('util')\nvar web3 = require('web3')\n\n\nfunction Contract (source) {\n this.source = source\n this.instance = null\n this.name = ''\n this.deploy... | javascript | chosen |
[
{
"from": "system",
"value": "Set value when it exists, or just leave it blank\n"
},
{
"from": "human",
"value": "import Ember from 'ember';\n\nexport default Ember.Component.extend({\n tagName: 'input',\n\n setupBootstrapDatepicker: function() {\n var self = this;\n\n this.$().\n d... | javascript | chosen |
[
{
"from": "system",
"value": "Create ngEnter directive to submit value on enter\n"
},
{
"from": "human",
"value": "angular.module('directives')\n.directive('formChange',['$parse',function($parse) {\n return {\n 'restrict' : 'A',\n 'require' : 'form',\n 'link' : function($scope, $elem, ... | javascript | chosen |
[
{
"from": "system",
"value": "Remove jquery-ui.sortable from design system JS\n\nThis JS is only used on the legacy layout\n"
},
{
"from": "human",
"value": "// This file is used as the root JS file for the govuk_publishing_components/design\n// system aspects of Collections Publisher\n//= requi... | javascript | chosen |
[
{
"from": "system",
"value": "Fix Twitter button Turbolinks issue.\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/javasc... | javascript | chosen |
[
{
"from": "system",
"value": "Add js files to manifest.\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, vend... | javascript | chosen |
[
{
"from": "system",
"value": "Add GET request for a multi-search and Results factory\n"
},
{
"from": "human",
"value": "angular.module('zeus.services', [])\n.factory('Details', function($http) {\n\n})\n.factory('Landing', function($http) {\n\n})\n.factory('Results', function($http) {\n\n})"
},... | javascript | chosen |
[
{
"from": "system",
"value": "Set minCloudCover to zero if it's absent from scene query\n"
},
{
"from": "human",
"value": "export default (app) => {\n class SceneService {\n constructor($resource) {\n 'ngInject';\n\n this.Scene = $resource(\n '/api/... | javascript | chosen |
[
{
"from": "system",
"value": "Fix sidepanel-folder class and title text\n"
},
{
"from": "human",
"value": "'use strict';\n\nangular.module('arethusa.core').directive('sidepanelFolder', [\n 'sidepanel',\n function(sidepanel) {\n return {\n scope: {},\n link: function (scope, elemen... | javascript | chosen |
[
{
"from": "system",
"value": "Fix bug when file is minified\nWe needed to inject scope with the full notation\n"
},
{
"from": "human",
"value": "(function() {\n 'use strict';\n\n // Create module\n var module = angular.module('filteredTable', []);\n\n \n function filteredTable() {... | javascript | chosen |
[
{
"from": "system",
"value": "Change blueprint from < 1 to <= 1 for core\n"
},
{
"from": "human",
"value": "module.exports = {\n description: '',\n normalizeEntityName: function () {},\n\n /**\n Installs specified packages at the root level of the application.\n Triggered by 'ember inst... | javascript | chosen |
[
{
"from": "system",
"value": "[TASK] Print a full stack trace if available.\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\n\nvar nconf = require('nconf');\nvar Codius = require('../lib/codius').Codius;\nvar Config = require('../lib/config').Config;\n\n// Use nconf to load command line ... | javascript | chosen |
[
{
"from": "system",
"value": "Resolve path to client for npm start\n"
},
{
"from": "human",
"value": "var http = require('http');\nvar url = require(\"url\");\nvar fs = require('fs');\nvar c = require('../../config.json');\n\nvar server = http.createServer(function(req, res) {\n var page = url.... | javascript | chosen |
[
{
"from": "system",
"value": "Fix incorrect axios get request arguments\n"
},
{
"from": "human",
"value": "import BaseCourseAPI from './Base';\n\nexport default class VirtualClassroomsAPI extends BaseCourseAPI {\n /**\n * Get Braincert Virtual Classroom Access Link\n *\n * @param {number}... | javascript | chosen |
[
{
"from": "system",
"value": "Add appsngen widget run command implementation\n"
},
{
"from": "human",
"value": "var program = require('commander');\n\nprogram\n .option('--target <targetDevice>', 'Deploy to specific target')\n .option('--list', 'Lists available targets')\n .option('--re... | javascript | chosen |
[
{
"from": "system",
"value": "Add correct props to mapStateToProps\n"
},
{
"from": "human",
"value": "import { connect } from 'react-redux';\nimport {\n fetchNavigation,\n setNavigationVisibility,\n fetchTOS,\n setPhaseVisibility,\n setPhasesVisibility,\n setDocumentState,\n fetchRecordTy... | javascript | chosen |
[
{
"from": "system",
"value": "Edit results url in router to include page number\n"
},
{
"from": "human",
"value": "angular.module('zeus', [\n 'zeus.landing',\n 'zeus.results',\n 'zeus.details',\n 'zeus.services',\n 'ngRoute'\n])\n.controller('zeusController', function($scope, $location) {\n... | javascript | chosen |
[
{
"from": "system",
"value": "Remove referee.isArrayLike from public API\n\nThis is not used by referee itself\n"
},
{
"from": "human",
"value": "\"use strict\";\n\nvar isArguments = require(\"lodash.isarguments\");\nvar actualMessageValues = require(\"../actual-message-values\");\n\nmodule.expo... | javascript | chosen |
[
{
"from": "system",
"value": "Move functions inside the HelpUsageTable object\n"
},
{
"from": "human",
"value": "define([\n 'extensions/views/table/table'\n],\n function (Table) {\n var capitalize = function(string) {\n return string.replace(/(?:^|\\s)\\S/, function(letter) { return le... | javascript | chosen |
[
{
"from": "system",
"value": "Handle real time unit switch in results view\n"
},
{
"from": "human",
"value": "App.module(\"Predictor\", function(Mod, App, Backbone, Marionette, $, _) {\n\n Mod.views.PredictionResultsView = Marionette.ItemView.extend({\n template: 'predictionResultsView',\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix router after point updated\n"
},
{
"from": "human",
"value": "Template.editPoint.events({\n 'submit form': function (event,template) {\n event.preventDefault();\n var updatedPoint = {\n services: $(template.find('#services')).val(),\n title: tem... | javascript | chosen |
[
{
"from": "system",
"value": "Increase max number of JSLint errors. This is necessary because we have several error messages that we choose to ignore.\n"
},
{
"from": "human",
"value": "load(\"build/jslint.js\");\n\nvar src = readFile(\"dist/jquery.js\");\n\nJSLINT(src, { evil: true, forin: true... | javascript | chosen |
[
{
"from": "system",
"value": ":bug: Fix undefined content type and type-slug\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst apis = require('./apis');\nconst utils = require('./utils');\n\n/*\n * Follow\n */\nconst follow = (query, rows, types, total, organize) => {\n const items = ro... | javascript | chosen |
[
{
"from": "system",
"value": "fix(StopViewerOverlay): Fix prop name for overlay.\n"
},
{
"from": "human",
"value": "import StopViewerOverlay from '@opentripplanner/stop-viewer-overlay'\nimport DefaultStopMarker from '@opentripplanner/stop-viewer-overlay/lib/default-stop-marker'\nimport { connect... | javascript | chosen |
[
{
"from": "system",
"value": "Edit permissions to pull email address\n"
},
{
"from": "human",
"value": "var userID;\n\nfunction checkUserInDatabase(authData){\n\tuserID = authData.google.id;\n\tvar usersDatabase = new Firebase(\"https://tinderpreneurship.firebaseio.com/users/\" + userID);\n\tuse... | javascript | chosen |
[
{
"from": "system",
"value": "Create loop and set first condition: if letter does not exist, create map and map it to value of second letter\n"
},
{
"from": "human",
"value": "// Check if two strings are isomorphic\n\nfunction isIsomorphic(stringOne, stringTwo) {\n\t\n\t// check if strings are o... | javascript | chosen |
[
{
"from": "system",
"value": "feat(r5): Update the recommended version to v4.6.1\n"
},
{
"from": "human",
"value": "//\n\n// Bucket where R5 JARs are to be found\nexport const R5_BUCKET = 'https://r5-builds.s3.amazonaws.com'\n\n// Recommended r5 version\nexport const RECOMMENDED_R5_VERSION = 'v4... | javascript | chosen |
[
{
"from": "system",
"value": "Fix URLs in footer for children pages\n"
},
{
"from": "human",
"value": "import React, {Component, PropTypes} from \"react\"\n\nimport SVGIcon from \"../SVGIcon\"\nimport requireRaw from \"../requireRaw\"\n\nexport default class Footer extends Component {\n\n stati... | javascript | chosen |
[
{
"from": "system",
"value": "Fix syntax error in OptionList"
},
{
"from": "human",
"value": "import PropTypes from \"prop-types\";\nimport React, { Component } from \"react\";\nimport {\n StyleSheet,\n ScrollView,\n View,\n TouchableWithoutFeedback,\n ViewPropTypes\n} from \"react-native\"... | javascript | chosen |
[
{
"from": "system",
"value": "Fix Ember 2.1 initializer arity deprecation warning"
},
{
"from": "human",
"value": "import config from '../config/environment';\n\nexport function initialize(_container, application ) {\n const { metricsAdapters = {} } = config;\n const { environment = 'developme... | javascript | chosen |
[
{
"from": "system",
"value": "Reset landing page upon successful authentication\n\nThis change ensures that, when the user later returns to the landing\npage, such as when they log out, it's in the default state and shows the\nSignup frame again.\n"
},
{
"from": "human",
"value": "'use strict';\... | javascript | chosen |
[
{
"from": "system",
"value": "Load the real staged changes patch in CommitPreviewContainer\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport PropTypes from 'prop-types';\nimport yubikiri from 'yubikiri';\n\nimport ObserveModel from '../views/observe-model';\nimport LoadingVie... | javascript | chosen |
[
{
"from": "system",
"value": "Add missing gettext into vmCLoudDetachFormController\n"
},
{
"from": "human",
"value": "ManageIQ.angular.app.controller('vmCloudDetachFormController', ['$scope', 'vmCloudDetachFormId', 'miqService', function($scope, vmCloudDetachFormId, miqService) {\n var vm = thi... | javascript | chosen |
[
{
"from": "system",
"value": "Save about 9 bytes when uncompressed\n"
},
{
"from": "human",
"value": "window['include'] = function() {\n\n\tvar toLoad = arguments.length;\n\tvar callback;\n\tvar hasCallback = arguments[toLoad - 1] instanceof Function;\n\tvar script;\n\n\tfunction onloaded() {\n\... | javascript | chosen |
[
{
"from": "system",
"value": "Put private methods on top.\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar google = global.google;\n\nfunction onAdd() {\n var panes = this.getPanes();\n\n panes.overlayLayer.appendChild(this.el);\n}\n\nfunction positionOverlayByDimensions(projectedLa... | javascript | chosen |
[
{
"from": "system",
"value": "Fix problem with freezing flow under debug plus many workers\n"
},
{
"from": "human",
"value": "\"use strict\";\nlet fetch = require('node-fetch');\nlet Converter = require(\"csvtojson\");\nlet Promise = require('bluebird');\n\n/**\n * Helps fetch Google Docs data\n... | javascript | chosen |
[
{
"from": "system",
"value": "Use Contrib.id until compound ids are ready\n"
},
{
"from": "human",
"value": "import OsfSerializer from './osf-serializer';\n\nexport default OsfSerializer.extend({\n serialize: function(snapshot, options) {\n // Restore relationships to serialized data\n... | javascript | chosen |
[
{
"from": "system",
"value": "feat: Set validation function for min, max, pattern and required \n\n"
},
{
"from": "human",
"value": "import Ember from 'ember';\nimport $ from 'jquery';\n\nexport default Ember.Component.extend({\n\n});\n"
},
{
"from": "gpt",
"value": "import Ember fro... | javascript | chosen |
[
{
"from": "system",
"value": "Make click-to-hide-notices feature more obvious"
},
{
"from": "human",
"value": "(function ($) {\n /*\n *\n * Fades flash notices out after they are shown\n *\n */\n $.fn.flashNotice = function () {\n $(this).fadeIn();\n\n if (!$(this).hasClass('alert'))... | javascript | chosen |
[
{
"from": "system",
"value": "Rename const to be more obvious\n"
},
{
"from": "human",
"value": "import glob from 'glob';\nimport path from 'path';\nimport immutable from 'immutable';\nimport merger from './merger';\n\nfunction loadLanguages() {\n const files = glob\n .sync('src/client/*/i18... | javascript | chosen |
[
{
"from": "system",
"value": "Add missing nqp.named, fix indentation.\n"
},
{
"from": "human",
"value": "var op = {};\nexports.op = op;\n\nop.print = function(arg) {\n process.stdout.write(arg);\n};\nop.say = function(arg) {\n process.stdout.write(arg);\n process.stdout.write('\\n');\n};\n\ne... | javascript | chosen |
[
{
"from": "system",
"value": "Options.js: Add function UserRailsOauth, include chrome's userInfo getter function\n"
},
{
"from": "human",
"value": "document.addEventListener('DOMContentLoaded', function() {\n restore_options();\n document.getElementById('myonoffswitch').addEventListener('click... | javascript | chosen |
[
{
"from": "system",
"value": "Add reminder to fix backend link\n"
},
{
"from": "human",
"value": "import { ApolloClient } from 'apollo-client';\nimport { createHttpLink } from 'apollo-link-http';\nimport { InMemoryCache } from 'apollo-cache-inmemory';\nimport { setContext } from 'apollo-link-con... | javascript | chosen |
[
{
"from": "system",
"value": "Fix pending test description for compose\n"
},
{
"from": "human",
"value": "// import expect from 'expect';\n// import { compose } from '../src';\n\ndescribe('Utils', () => {\n describe('compose', () => {\n\n it('should call map stores');\n });\n});\n"
},
{... | javascript | chosen |
[
{
"from": "system",
"value": "Update schema to work with password controller\n"
},
{
"from": "human",
"value": "const mongoose = require(\"mongoose\");\n\nconst Schema = mongoose.Schema;\nconst ObjectId = Schema.ObjectId;\n\nconst url = \"mongodb://localhost:27017/todo\";\n\nconst User = new Sch... | javascript | chosen |
[
{
"from": "system",
"value": "Add v1.4 to request model\n"
},
{
"from": "human",
"value": "const mongoose = require('mongoose');\n\nconst requestSchema = mongoose.Schema({\n date: {\n type: Date,\n unique: true\n },\n 'total': Number,\n 'extension': Number,\n 'api': Number,\n 'sketch... | javascript | chosen |
[
{
"from": "system",
"value": "Fix out of bounds error of time-series filter\n"
},
{
"from": "human",
"value": "var WidgetModel = require('../widget-model');\nvar _ = require('underscore');\n\n/**\n * Model for a time-series widget\n */\nmodule.exports = WidgetModel.extend({\n defaults: {\n n... | javascript | chosen |
[
{
"from": "system",
"value": "Remove not needed brackets parentheses\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport { connect } from 'react-redux';\n\nimport { fetchCourses } from 'actions/courses';\nimport CourseContainer from 'components/CourseContainer';\n\nconst Course... | javascript | chosen |
[
{
"from": "system",
"value": "Remove tacky console log message.\n"
},
{
"from": "human",
"value": "function changeProject(e) {\n var data = e.currentTarget.dataset.key;\n\n var selectedList = $(e.currentTarget);\n var selectedItem;\n items.each(function (idx, el) {\n if (el.dataset.key ==... | javascript | chosen |
[
{
"from": "system",
"value": "Remove fade added by viewAll in tenderfoot\n"
},
{
"from": "human",
"value": "$(document).ready(function(){\n $(\"#viewAllTab\").on(\"click\",function(){\n showViewAll();\n });\n\n if (location.hash) {\n $('li[href=\\'' + location.hash + '\\']... | javascript | chosen |
[
{
"from": "system",
"value": "Fix setup command options setting.\n"
},
{
"from": "human",
"value": "var cly = require('cly'),\n Couchpenter = require('./couchpenter').Couchpenter,\n p = require('path');\n\nfunction exec() {\n\n var couchpenterDir = __dirname,\n execDir = process.cwd(),\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Create new terminal instances for each socket.\n"
},
{
"from": "human",
"value": "var Pty = require(\"pty.js\");\n\nvar Tty = module.exports = {};\n\nvar _term = null;\nvar _data = [];\n\nTty.create = function (options, callback) {\n\n _term = _term || Pty.fork(p... | javascript | chosen |
[
{
"from": "system",
"value": "Fix plugin converting user links to videos\n\nAn issue in the regex intentionally placed for the simultaneous parsing of youtu\nbe.com/watch?v= and youtu.be/ links caused links in the format youtube.com/user/\nsomebody and youtube.com/somebody to wrongly show up as videos. This... | javascript | chosen |
[
{
"from": "system",
"value": "Fix spoilers with line breaks."
},
{
"from": "human",
"value": "'use strict';\r\n\r\nvar plugins = module.parent.require('./plugins'),\r\n\tfs = require('fs'),\r\n\tpath = require('path'),\r\n\tutil = require('util'),\r\n\tapp;\r\n\r\nvar plugin = {};\r\n\r\nplugin.... | javascript | chosen |
[
{
"from": "system",
"value": "Save in the same place inside 'state', 'selected' & 'dragging' element\n"
},
{
"from": "human",
"value": "export const updateElementInWorkspace = (workspace, payload) => {\n const { selectionState } = workspace\n\n if(!selectionState.dragStarted) {\n return wor... | javascript | chosen |
[
{
"from": "system",
"value": "Exit console output and process kill\n"
},
{
"from": "human",
"value": "var login = require('./login.json');\r\nvar discord = require('discord.js');\r\nvar dex = require('./modules/dex.js');\r\n\r\nvar bot = new discord.Client();\r\n\r\nbot.on('ready', function() {\... | javascript | chosen |
[
{
"from": "system",
"value": "Update sample code for the logger to show how to query the logs.\n"
},
{
"from": "human",
"value": "// The MIT License (MIT)\n// Copyright (c) 2014 Stefan Negrea\n//\n// Use of this source code is governed by a MIT license that can be
\n// found in the LICENSE file.... | javascript | chosen |
[
{
"from": "system",
"value": "Fix install ember-cli-moment-shim in addon blueprint\n\nThe unsupported signature of the `addAddonToProject` method is used, as a result of which the latest version of `ember-cli-moment-shim` installed.\r\nhttps://ember-cli.com/api/classes/Blueprint.html#method_addAddonToProjec... | javascript | chosen |
[
{
"from": "system",
"value": "Allow orpahn to work for multiple paragraphs.\n"
},
{
"from": "human",
"value": "/* global angular, $ */\nangular.module('suite')\n .directive('orphan', ['$timeout', function($timeout) {\n return {\n restrict: 'A',\n link: function($s... | javascript | chosen |
[
{
"from": "system",
"value": "[webapp] Update crossOriginWhitelist properly when using config.js\n"
},
{
"from": "human",
"value": "import ENV from 'webapp/config/environment';\nimport Ember from 'ember';\n\nexport default {\n name: 'api-server-setup',\n before: ['oauth2-w-auth'],\n\n i... | javascript | chosen |
[
{
"from": "system",
"value": "Update default location of server.\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar path = require('path');\nvar nconf = require('nconf');\n\nnconf.file({\n file: path.join(__dirname, '/../../settings.json')\n});\n\nvar apiHost = process.env.OS_VIEWER_API_HO... | javascript | chosen |
[
{
"from": "system",
"value": "Throw error if app isn't authenticated\n"
},
{
"from": "human",
"value": "//= require ./core\n//= require ./static_config\n//= require_self\n\n(function () {\n\n\tif (!Drop.config.JSON_CONFIG_URL) {\n\t\tthrow Error(\"json_config_url is required!\");\n\t}\n\n\tDrop.... | javascript | chosen |
[
{
"from": "system",
"value": "fix(transformers): Revert Enable async entity transforms\n\nThis reverts commit 6dcad860e5fc67fabcebeee762aad42d06e029e9."
},
{
"from": "human",
"value": "import Promise from 'bluebird'\nimport { omit, defaults } from 'lodash/object'\nimport { partialRight } from 'l... | javascript | chosen |
[
{
"from": "system",
"value": "Change index frame title to main page frame's title. Doesn't work in FF2\n"
},
{
"from": "human",
"value": "$(document).ready(function() {\n $(\".section.source a.source_link\").toggle(\n function() {\n $(this).text('Hide source');\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add ability to set server port\n"
},
{
"from": "human",
"value": "var http = require('http');\nvar path = require('path');\nvar fs = require('fs');\nvar shoe = require('shoe');\nvar Stweam = require('stweam');\nvar habitat = require('habitat');\nvar ecstatic = requi... | javascript | chosen |
[
{
"from": "system",
"value": "Remove computed property and replace with server returned attr\n"
},
{
"from": "human",
"value": "import Ember from 'ember';\nimport DS from 'ember-data';\n\nexport default DS.Model.extend({\n title: DS.attr('string'),\n poster_path: DS.attr('string'),\n backdrop... | javascript | chosen |
[
{
"from": "system",
"value": "CSRA-695: Fix appInsights track event method signature\n"
},
{
"from": "human",
"value": "let trackEvent;\n\n// App insights blows up in a non server environment\ntry {\n // eslint-disable-next-line\n const appInsights = require('../../utils/applicationinsights');... | javascript | chosen |
[
{
"from": "system",
"value": "Change CORS access origin to wildcard\n"
},
{
"from": "human",
"value": "var express = require('express');\nvar bodyParser = require('body-parser');\n\nfunction AppFactory () {\n\t// Nothing here yet...\n}\n\nAppFactory.prototype.NewApp = function(config) {\n\t// Cr... | javascript | chosen |
[
{
"from": "system",
"value": "Set NODE_ENV to production in release build (build react in prod mode)\n"
},
{
"from": "human",
"value": "const webpack = require(\"webpack\");\n\nconst CURRENT_STYLE = process.env.INFOTV_STYLE || \"desucon\";\nconst outputFsPath = process.env.OUTPUT_PATH || `${__di... | javascript | chosen |
[
{
"from": "system",
"value": "Move \"Upgrade complete.\" to the end of the output, not the beginning.\n"
},
{
"from": "human",
"value": "console.log(\"Upgrade complete.\");\n\ntry {\n // XXX can't get this from updater.js because in 0.3.7 and before the\n // updater didn't have the right NODE_... | javascript | chosen |
[
{
"from": "system",
"value": "Add ES^ modules support to self loader\n"
},
{
"from": "human",
"value": "/**\n * @author Matthew Dahl [@sandersky](https://github.com/sandersky)\n * @copyright 2015 Cyan, Inc. All rights reserved.\n * Allow code within a package to use it's own package name when us... | javascript | chosen |
[
{
"from": "system",
"value": "Remove parentheses from around post number\n\nThey draw too much attention, kinda making it look like an ID or an\nerror code or something.\n"
},
{
"from": "human",
"value": "import Notification from 'flarum/components/notification';\nimport username from 'flarum/he... | javascript | chosen |
[
{
"from": "system",
"value": "Use downloads metrics from metrics.bioboxes.org\n\nSigned-off-by: Michael Barton <1d6e1cf70ec6f9ab28d3ea4b27a49a77654d370e@michaelbarton.me.uk>\n"
},
{
"from": "human",
"value": "hljs.initHighlightingOnLoad();\n\nvar metrics_url = \"https://s3-us-west-1.amazonaws.co... | javascript | chosen |
[
{
"from": "system",
"value": "Change the name \"name\" to \"key\" to support the backend structure of holding annotation elements\n"
},
{
"from": "human",
"value": "/**\n * Copyright (c) 2018, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.\n *\n * WSO2 Inc. licenses this file to you under ... | javascript | chosen |
[
{
"from": "system",
"value": "Handle reinitialize case, clean up variable declarations\n"
},
{
"from": "human",
"value": "Package.describe({\n 'name': 'brucejo:bootstrap-multiselect',\n 'version': '0.0.3',\n 'summary': 'Bootstrap Multiselect wrapper for Meteor',\n 'git': 'https://github.com/... | javascript | chosen |
[
{
"from": "system",
"value": "Make hhvm-have-source-tarball take S3 info, and pass through input\n"
},
{
"from": "human",
"value": "'use strict'\n/**\n * Copyright (c) 2017-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in ... | javascript | chosen |
[
{
"from": "system",
"value": "Allow user to edit card id when card has fields"
},
{
"from": "human",
"value": "import { action } from '@ember/object';\nimport CardManipulator from './card-manipulator';\n\nexport default class CardCreator extends CardManipulator {\n constructor(...args) {\n s... | javascript | chosen |
[
{
"from": "system",
"value": "Use `core-js` `reduce` instead of `lodash/reduce` to reduce bundle size\n"
},
{
"from": "human",
"value": "import reduce from 'lodash/reduce';\n\n/**\n * Get the responsive image.\n *\n * Find the image that is equal to or slightly larger than imageSlotWidth.\n * @p... | javascript | chosen |
[
{
"from": "system",
"value": "Add in version for meteor packaging\n"
},
{
"from": "human",
"value": "Package.describe({\n summary: 'Style with attitude.'\n});\n\nPackage._transitional_registerBuildPlugin({\n name: 'meteor-scss',\n use: [],\n sources: [\n 'plugin/compile-scss.js'\n ],\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Store latest etag in db\n"
},
{
"from": "human",
"value": "const request = require('superagent');\nimport * as requests from './requestFactory';\nimport * as data from '../../persistence';\n\nmodule.exports = function (req, res) {\n const { type, project } = req.bo... | javascript | chosen |
[
{
"from": "system",
"value": "Fix demo users to name uppercase USERNAMEs\n"
},
{
"from": "human",
"value": "exports.users = [\n {username:'root', active: true, password:'root', role:'root', name:'root', emails:['root@fake-meku.fi'] },\n {username:'kavi', active: true, password:'kavi', role:'ka... | javascript | chosen |
[
{
"from": "system",
"value": "Add flowtype back in with valid structure for prod\n"
},
{
"from": "human",
"value": "import React, { PropTypes } from 'react'\nimport classNames from 'classnames'\n\n// type Props = {\n// isAuthenticationView: boolean,\n// isDiscoverView: boolean,\n// isNavba... | javascript | chosen |
[
{
"from": "system",
"value": "Fix off-by-one bug at length check\n\nIt sliced too much and the if didn't have to check for equality.\n"
},
{
"from": "human",
"value": "if (!(\"maxLength\" in document.createElement(\"textarea\"))) {\n $(\"textarea[maxlength]\").each(function () {\n var ... | javascript | chosen |
[
{
"from": "system",
"value": "Add link to Font Fabric website\n"
},
{
"from": "human",
"value": "/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */\n\nimport React from 'react/addons';\nimport styles from './Footer.less';\nimport withStyles from '../../decorators/withStyles... | javascript | chosen |
[
{
"from": "system",
"value": "Add 'large' size to the prop types\n"
},
{
"from": "human",
"value": "import React, { PureComponent } from 'react';\nimport PropTypes from 'prop-types';\nimport Box from '../box';\nimport cx from 'classnames';\nimport theme from './theme.css';\n\nclass Bullet extend... | javascript | chosen |
[
{
"from": "system",
"value": "Comment out block to make linter happy\n"
},
{
"from": "human",
"value": "import assert from 'assert'\nconst TYPE_TO_PREFIXES = {\n municipality: 'K',\n borough: 'B',\n county: 'F',\n commerceRegion: 'N'\n}\n\nconst PREFIX_TO_TYPE = Object.keys(TYPE_TO_PREFIXES)... | javascript | chosen |
[
{
"from": "system",
"value": "SFX: Fix Chrome issue where sound would only place once and never again\n"
},
{
"from": "human",
"value": "var Sfx = {\n sounds: { },\n\n preload: function() {\n Sfx.load('jump.wav');\n Sfx.load('shoot.wav');\n Sfx.load('hit.wav');\n },... | javascript | chosen |
[
{
"from": "system",
"value": "Remove internal isActive UI state from Highlight\n\nThis now needs to be directly or indirectly wrapped with the addActiveState HOC"
},
{
"from": "human",
"value": "//@flow\n\nimport React from \"react\";\nimport type { Children } from \"react\";\n\nimport { Link } ... | javascript | chosen |
[
{
"from": "system",
"value": "Remove extra set of module type for .jade files.\n"
},
{
"from": "human",
"value": "const path = require(\"path\");\nconst glob = require(\"glob\");\nconst jadePlugin = require(\"./jade-plugin\");\nconst interlockHtml = require(\"interlock-html\");\n\n\nconst srcRoo... | javascript | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.