conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Set item width to be fluid\n"
},
{
"from": "human",
"value": "/*\n * moon.ImageGrid extends enyo.ImageGrid to add moonraker specific confiuguration, styling, decorators and focus-state management\n * \n * @author: Surya Vakkalanka\n * @date: January 2013\n * \n*/\n\... | javascript | chosen |
[
{
"from": "system",
"value": "Change MBAR to new loader format"
},
{
"from": "human",
"value": "define(function() {\n\n 'use strict';\n \n return function(resource) {\n var dv = new DataView(resource.data.buffer, resource.data.byteOffset, resource.data.byteLength);\n var count = dv.getI... | javascript | chosen |
[
{
"from": "system",
"value": "blueprints/controller-test: Use dasherizedModuleName for test description\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst stringUtil = require('ember-cli-string-utils');\nconst testInfo = require('ember-cli-test-info');\n\nconst useTestFrameworkDetector = ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix bug with parsing data. Joke should now display orrectly on screen.\n"
},
{
"from": "human",
"value": "Module.register(\"jokes\", {\n\n defaults:{\n baseUrl: \"http://tambal.azurewebsites.net/joke/random\"\n },\n\n getHeader: function(){\n return this.d... | javascript | chosen |
[
{
"from": "system",
"value": "Print out the stack when an error occurs.\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\n//\n// Takes a text file and calls the AWS Polly API\n// to convert it to an audio file.\n//\n'use strict';\n\nconst fs = require('fs-extra');\nconst textchunk = requ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix global name s/cldr/Cldr of UMD wrapper\n"
},
{
"from": "human",
"value": "/**\n * CLDR JavaScript Library v@VERSION\n * http://jquery.com/\n *\n * Includes Sizzle.js\n * http://sizzlejs.com/\n *\n * Copyright 2005, 2013 jQuery Foundation, Inc. and other contribu... | javascript | chosen |
[
{
"from": "system",
"value": "Remove arrow function for compatibility\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\nvar spawn = require('child_process').spawn;\n\nvar args = process.argv.slice(2);\nvar bin = require('./');\n\nif (bin === null) {\n throw new Error('Platform not support... | javascript | chosen |
[
{
"from": "system",
"value": "Add EOL warning for old shell/server versions\n"
},
{
"from": "human",
"value": "if (_isWindows() && mongo_hacker_config['windows_warning']) {\n print(\"\\nMongoDB Shell Enhancements for Hackers does not support color highlighting in \");\n print(\"the default... | javascript | chosen |
[
{
"from": "system",
"value": "Upgrade splashscreen cordova dependency to 1.0.0\n"
},
{
"from": "human",
"value": "Package.describe({\n // XXX We currently hard-code the \"launch-screen\" package in the\n // build tool. If this package is in your app, we turn off the\n // default splash screen... | javascript | chosen |
[
{
"from": "system",
"value": "Add missing ACTIVITY_SERVER config switch\n"
},
{
"from": "human",
"value": "var request = require('request');\n\nvar config = require('../config.json');\nvar log = require('./log.js');\n\nfunction post() {\n var url = 'http://127.0.0.1:' + config.ACTIVITY_SERVER.P... | javascript | chosen |
[
{
"from": "system",
"value": "Include credentials in API call\n"
},
{
"from": "human",
"value": "import 'isomorphic-fetch'\n\n/**\n * Fetch a list of nodes and their relation types\n */\nexport function fetchNodeList() {\n return fetch('//localhost:8000/admin/chemtrails_permissions/accessrule/n... | javascript | chosen |
[
{
"from": "system",
"value": "Add esdoc documentation and change the github change job to run once an hour\n"
},
{
"from": "human",
"value": "/** @ignore */\nconst Job = require('./Job');\n/** @ignore */\nconst request = require('request');\n\nclass GithubChangeJob extends Job {\n\n /**\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Refactor to encapsulate property filter algorithm\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar assert = require('assert')\nvar isValidGeojson = require('geojson-is-valid')\nvar util = require('util')\n\nclass GeojsonFeatureFilterer {\n\n... | javascript | chosen |
[
{
"from": "system",
"value": "Fix collision detector to not modify object\n\nPreviously the collision detector was using an each loop to join the two\nobject arrays being analyzed for impact. This resulted in modification\nto the objects themselves.\n\nNow the concat method is used which prevents such modif... | javascript | chosen |
[
{
"from": "system",
"value": "Reduce included scope for services tests.\n"
},
{
"from": "human",
"value": "'use strict';\n\ndescribe('IMS service', function(){\n var $httpBackend;\n\n var IMS;\n\n beforeEach(module('Marvin'));\n\n beforeEach(inject(function(_IMS_, _$httpBackend_){\n $http... | javascript | chosen |
[
{
"from": "system",
"value": "Add tests for `settings` module.\n"
},
{
"from": "human",
"value": "(function () {\n 'use strict';\n\n define(\n [\n 'chai',\n 'sinon',\n 'knockout',\n 'config/settings'\n ],\n function (chai, si... | javascript | chosen |
[
{
"from": "system",
"value": "Revert part of commit that hides cancel payment\n\nRevert \"Unambiguously stop hiding the update payment info screen if it applies\"\n\nThis reverts commit 610e8ee374c7c1f328fb43467d23881cf8dbdd15.\n"
},
{
"from": "human",
"value": "module.exports = function() {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Improve visibility rule for revision approve button\n"
},
{
"from": "human",
"value": "// Official form view\n\n'use strict';\n\nvar revisionView = require('./business-process-revision');\n\nexports._parent = revisionView;\n\nexports['tab-business-process-processing... | javascript | chosen |
[
{
"from": "system",
"value": "Set default filter. Filters are not implemented yet.\n"
},
{
"from": "human",
"value": "class MCWorkflowFiltersComponentController {\n /*@ngInject*/\n constructor() {\n\n }\n}\n\nangular.module('materialscommons').component('mcWorkflowFilters', {\n templ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix tests now that we have added Redux\n"
},
{
"from": "human",
"value": "import React from 'react'\nimport { shallow } from 'enzyme'\nimport { shallowToJson } from 'enzyme-to-json'\nimport Search from './Search'\nimport ShowCard from './ShowCard'\nimport preload fr... | javascript | chosen |
[
{
"from": "system",
"value": "Fix for version fields missing equality operators\n"
},
{
"from": "human",
"value": "import R from 'ramda';\nimport React from 'react';\nimport style from './styles.css';\nimport ComboBox from '../../../../../../../../../components/common/ComboBox/ComboBox';\n\ncons... | javascript | chosen |
[
{
"from": "system",
"value": "Put in $F function to grab values instead of $('id').value\n"
},
{
"from": "human",
"value": "\nvar FormHelper = {\n \n // TODO: Make this more generic, because it \n // will be reused. \n hideShowConfigurationTitle: function() {\n if ($('configuration_title'... | javascript | chosen |
[
{
"from": "system",
"value": "Remove error handling and useless winston\n"
},
{
"from": "human",
"value": "var amqp = require('amqplib');\nvar winston = require('winston');\n\nvar amqpUrl, amqpConnection, intervalID;\n\nfunction connect(_amqpUrl) {\n amqpUrl = amqpUrl || _amqpUrl || process.env... | javascript | chosen |
[
{
"from": "system",
"value": "Make PaymentInfoScreen display content dynamically\n"
},
{
"from": "human",
"value": "import React, { Component } from 'react';\nimport { View, Alert } from 'react-native';\nimport { Text, ListItem, Thumbnail, Body, Left, Form, Content, Button } from 'native-base';\... | javascript | chosen |
[
{
"from": "system",
"value": "Attach base math utils to sub-namespace\n"
},
{
"from": "human",
"value": "'use strict';\n\n// MODULES //\n\nvar baseDist = require( './base.dist.js' );\nvar baseRandom = require( './base.random.js' );\nvar baseSpecial = require( './base.special.js' );\nvar baseTool... | javascript | chosen |
[
{
"from": "system",
"value": "Improve error logging during authentication\n"
},
{
"from": "human",
"value": "\"use strict\";\nconst github = require(\"simple-github\");\nconst auth = require(\"./auth\");\n\nclass GithubAPI {\n constructor(pr, options) {\n this.pr = pr;\n this.op... | javascript | chosen |
[
{
"from": "system",
"value": "Add parameter for event id in front end.\n"
},
{
"from": "human",
"value": "$(function() {\n getEventDetails();\n populatePrefilled('interests');\n populatePrefilled('skills');\n});\n\n/**\n * Gets event details from database to put in form and allow edits\n */\n... | javascript | chosen |
[
{
"from": "system",
"value": "Remove unneeded type property of PassEvent\n"
},
{
"from": "human",
"value": "class PassEvent {\n\tstatic type = 'PassEvent';\n\n\tconstructor({in: input, out: output}) {\n\t\tthis.in = input;\n\t\tthis.out = output;\n\t}\n}\n\nmodule.exports = PassEvent;\n"
},
... | javascript | chosen |
[
{
"from": "system",
"value": "Handle the edge case of a zero width element with a right bound of 0\n\nThis was causing some tests to fail\n"
},
{
"from": "human",
"value": "/*global dom */\n\ndom.isOffscreen = function (element) {\n\t'use strict';\n\n\tvar leftBoundary,\n\t\tdocElement = documen... | javascript | chosen |
[
{
"from": "system",
"value": "Correct remove element callback to onClick from onChange\n"
},
{
"from": "human",
"value": "import React, { Component, PropTypes } from 'react';\n\nclass CheckList extends Component {\n checkInputKeyPress(evt) {\n if (evt.key === 'Enter') {\n this.props.tas... | javascript | chosen |
[
{
"from": "system",
"value": "Remove a couple of leftover debug console.logs\n"
},
{
"from": "human",
"value": "window.registerMessageListener = null;\nwindow.sendMessage = null;\n(() => {\n\tlet queue = [];\n\tlet bridgeInstance = null;\n\tconsole.log(window.chrome.webview.hostObjects);\n\tcon... | javascript | chosen |
[
{
"from": "system",
"value": "Make sure logging is correct\n"
},
{
"from": "human",
"value": "import path from 'path'\nimport colors from 'colors/safe'\nimport server from '../server'\nimport logger from '../helpers/logger'\n\nconst { red, green, cyan, bold } = colors\n\nexport default async ({ ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix issue with Flatpickr re-initializing itself\n"
},
{
"from": "human",
"value": "(function (window, document) {\n\n let fields = Array.prototype.slice.call(\n document.querySelectorAll('input[data-provides=\"anomaly.field_type.datetime\"]')\n );\n\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add PING-PONG for WebSockets keepalive\n"
},
{
"from": "human",
"value": "var sys = require(\"sys\");\n\nfunction log(what) {\n sys.log(\"[ext:basic] \" + what);\n};\n\nexports.init_extension = function (options, context) {\n log(\"initializing.\");\n\n context.d... | javascript | chosen |
[
{
"from": "system",
"value": "Add delay to quit button\n"
},
{
"from": "human",
"value": "var player = {\n init: function () {\n this.hide();\n this.initPlayer();\n this.initPlayerToggle();\n },\n initPlayerToggle: function() {\n },\n initPlayer: function() {\n var that = this;\... | javascript | chosen |
[
{
"from": "system",
"value": "Add headings for code blocsk\n"
},
{
"from": "human",
"value": "let object1 = {};\nobject1.prop = 'exists';\nif (Object.hasOwn(object1, \"prop\")) {\n console.log(\"'prop' is own property\") // expected output: 'prop' is own property\n}\n\nobject1.prop_value_null =... | javascript | chosen |
[
{
"from": "system",
"value": "Update message for error 500\n"
},
{
"from": "human",
"value": "import apiConfig from '../../config/api'\nimport googleConfig from '../../config/google'\n\nfunction handleErrors (response) {\n if (response.status >= 200 && response.status < 300) {\n return respo... | javascript | chosen |
[
{
"from": "system",
"value": "fix: Make sure the card template returns the correct text for points\n\nreturn no text for undefined points and 0pts when it costs 0 points"
},
{
"from": "human",
"value": "const utilities = require('./utilities');\n\nconst limited = (card) => card.limited ? ' | l... | javascript | chosen |
[
{
"from": "system",
"value": "Refactor code using es6 syntax\n"
},
{
"from": "human",
"value": "import helpers from '../helpers';\nconst User = require('../models').User;\n\nmodule.exports = {\n create(req, res) {\n User.sync({ force: false }).then(() => {\n User\n .create({\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Remove unused import from UrlChecker (Debug adapter)\n"
},
{
"from": "human",
"value": "var rp = require('request'),\n http = require('http'),\n https = require('https'),\n fileType = require('file-type');\n\nvar UrlChecker = function() {\n return this;\... | javascript | chosen |
[
{
"from": "system",
"value": "Cut out a lot of unused script stuff.\n"
},
{
"from": "human",
"value": "/*!\n *\n * Web Starter Kit\n * Copyright 2014 Google Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file excep... | javascript | chosen |
[
{
"from": "system",
"value": "Clean up js code (multiple DOM traversals/event listeners, indentation)\n"
},
{
"from": "human",
"value": "\"use strict\";\n\n$(\".nav a\").on(\"click\", function(){\n $(\".nav\").find(\".active\").removeClass(\"active\");\n $(\".nav\").find(\".active-re\").remo... | javascript | chosen |
[
{
"from": "system",
"value": "[test] Make exit codes more specific\n\nWhen an uncaught exception is thrown, `node ` exits with `1`. Make it\nclear that exits are cause by listening errors.\n"
},
{
"from": "human",
"value": "/*\n * Test _doListen function in net.js of haibu.carapace when there ar... | javascript | chosen |
[
{
"from": "system",
"value": "Create extended handler for game_ready message\n"
},
{
"from": "human",
"value": "class LoadingController {\n constructor($scope, $state, $interval) {\n 'ngInject';\n\n this.animTime = 850;\n this.ellipsis = '.';\n\n $scope.$on('server_disconnect', func... | javascript | chosen |
[
{
"from": "system",
"value": "Update results on situation change in IE\n\nPartial fix of #106\nStill need to update the UI\n"
},
{
"from": "human",
"value": "'use strict';\n\nangular.module('ddsApp').service('ResultatService', function($http, droitsDescription) {\n\n // Si la valeur renvoyée ... | javascript | chosen |
[
{
"from": "system",
"value": "Change revokeRequest method from get to post.\n"
},
{
"from": "human",
"value": "import { RequestsControllerV2 } from '../../../controllers'\n\n\nexport default function addRoutes(app) {\n app.get('/v2/requests/:followedUserName/revoke', RequestsControllerV2.revoke... | javascript | chosen |
[
{
"from": "system",
"value": "Fix react native server port\n"
},
{
"from": "human",
"value": "import { AppRegistry } from 'react-native';\nimport { getStorybookUI, configure } from '@kadira/react-native-storybook';\nimport './addons';\n\n// import stories\nconfigure(() => {\n require('./stories... | javascript | chosen |
[
{
"from": "system",
"value": "Move back to using callbacks instead of promises\n"
},
{
"from": "human",
"value": "\nvar utils = {\n find: (url, config) => {\n for (var key in config) {\n var item = config[key]\n if (item.domains.some((domain) => (url.host === domain))) {\n i... | javascript | chosen |
[
{
"from": "system",
"value": "Add some demo decks as a list on the homepage.\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport ReactDOM from 'react-dom';\nimport './index.css';\nimport registerServiceWorker from './registerServiceWorker';\n\nclass App extends React.Component ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix test in flexberry-field component\n"
},
{
"from": "human",
"value": "import { moduleForComponent, test } from 'ember-qunit';\nimport hbs from 'htmlbars-inline-precompile';\n\nmoduleForComponent('flexberry-field', 'Integration | Component | flexberry field', {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Reduce anonymous function creation during iteration for edge cases\n"
},
{
"from": "human",
"value": "'use strict'\n\nvar values = require('../sources/values')\nvar once = require('../sources/once')\n\n//convert a stream of arrays or streams into just a stream.\nmod... | javascript | chosen |
[
{
"from": "system",
"value": "Add StyleSheet.resolve method for web target\n"
},
{
"from": "human",
"value": "const ReactPrimitives = require('../ReactPrimitives');\nconst {\n Animated,\n StyleSheet,\n View,\n Text,\n Image,\n Platform,\n Touchable,\n Dimensions,\n Easing,\n} = require(... | javascript | chosen |
[
{
"from": "system",
"value": "Allow putting mp3 sounds in the backpack.\n"
},
{
"from": "human",
"value": "// eslint-disable-next-line import/no-unresolved\nimport soundThumbnail from '!base64-loader!./sound-thumbnail.jpg';\n\nconst soundPayload = sound => {\n const assetDataUrl = sound.asset... | javascript | chosen |
[
{
"from": "system",
"value": "Comment out the require for util that was used for showing an example custom config file\n"
},
{
"from": "human",
"value": "const {Initializer, api} = require('actionhero');\nconst r = require('@lib/r');\nconst util = require('util');\n\nmodule.exports = class ApiIn... | javascript | chosen |
[
{
"from": "system",
"value": "Make preperations for including signaller-testrun in the tests\n"
},
{
"from": "human",
"value": "var signaller = require('..');\nvar messenger = require('rtc-switchboard-messenger');\n\nfunction createSignaller(opts) {\n return signaller(messenger(location.origin)... | javascript | chosen |
[
{
"from": "system",
"value": "Fix issue with 'EventEmitter' max listener limit being reached.\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar assign = require('object-assign');\nvar EventEmitter = require('events').EventEmitter;\n\nvar Dispatcher = require('../dispatcher');\n\nvar ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix - Accidental deletion of branch: 004-tdd-api_mpayroll-accept-post. Recovered from local.\n"
},
{
"from": "human",
"value": "var chakram = require('chakram'),\n expect = chakram.expect;\n\ndescribe(\"mPayroll API\", function() {\n\n it(\"should support POST... | javascript | chosen |
[
{
"from": "system",
"value": "Add documentation link for client side throttling in offsetcommit\n"
},
{
"from": "human",
"value": "const Decoder = require('../../../decoder')\nconst { parse } = require('../v3/response')\n\n/**\n * Starting in version 4, on quota violation, brokers send out respo... | javascript | chosen |
[
{
"from": "system",
"value": "Use state for random number.\n"
},
{
"from": "human",
"value": "import React, { Component } from 'react'\nimport RandomNumber from '../RandomNumber'\nimport RoundImage from '../RoundImage'\nimport WelcomeNote from '../WelcomeNote'\nimport style from './style.css'\ni... | javascript | chosen |
[
{
"from": "system",
"value": "Allow legend to represent numbers < 1\n"
},
{
"from": "human",
"value": "import { t } from './i18n'\n\nexport function capitalizeFirstLetter (string) {\n return string.charAt(0).toUpperCase() + string.slice(1)\n}\n\nexport function shortenNumber (number, decimals, ... | javascript | chosen |
[
{
"from": "system",
"value": "Add lifecycle methods for updating/rendering date state variable\n"
},
{
"from": "human",
"value": "import React, { Component } from 'react';\n\nimport UserInput from '../common/UserInput';\n\nexport default class App extends Component {\n constructor() {\n \tsupe... | javascript | chosen |
[
{
"from": "system",
"value": "Write what to do if the decimal number we want to return the binary string of is greater than or equal to 1\n"
},
{
"from": "human",
"value": "// Returns binary string of given decimal number\n\nfunction decimalToBinary(num) {\n\tif (num >= 1) {\n\t\tif (num % 2) { ... | javascript | chosen |
[
{
"from": "system",
"value": "Test of changes in private file\n"
},
{
"from": "human",
"value": "\n// Just an example - you need to change your device id and access token\n\nvar url2SparkCore = \"https://api.spark.io/v1/devices/<your_device_id>/\"\nvar access_token_param = \"access_token=<your_a... | javascript | chosen |
[
{
"from": "system",
"value": "Fix link to PDF Confirm Report\n\nSteps to reproduce:\r\n\r\n# Open a family in Family View.\r\n# Activate Verify Info button.\r\n# Activate PDF Report button.\r\n\r\nWhat happens: A new tab opens in the browser with a 404 error. The path contains \"churchcrmReports/ConfirmRepo... | javascript | chosen |
[
{
"from": "system",
"value": "Increase role removal timeout because bugs\n"
},
{
"from": "human",
"value": "module.exports = {\n handler: (msg, answer) => {\n if (msg.guild === undefined) return;\n\n const colorName = answer.rawArguments;\n\n if (colorName === '') {\n msg.reply('Y... | javascript | chosen |
[
{
"from": "system",
"value": "Clean up Node.js tadpoles example.\n"
},
{
"from": "human",
"value": "require('../../index.js');\nvar scope = require('./Tadpoles');\nscope.view.exportFrames({\n\tamount: 200,\n\tdirectory: __dirname,\n\tonComplete: function() {\n\t\tconsole.log('Done exporting.');\... | javascript | chosen |
[
{
"from": "system",
"value": "Add a check to see if a component should be added to the page\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport ReactDOM from 'react-dom';\n\n/**\n * Mount any container component to a server rendered page.\n * @param {object} components - React ... | javascript | chosen |
[
{
"from": "system",
"value": "emoji: Fix misleading variable name `list` for non-lists.\n\nThe `Array#reduce` method basically operates on a list... but\nthese variables are referring to essentially the opposite thing!\nThe array (or \"list\") acts as input, but this variable / this\nparameter to the inner ... | javascript | chosen |
[
{
"from": "system",
"value": "Test the insert block fn\n"
},
{
"from": "human",
"value": "'use strict';\n\ndescribe('Controller: FormDropAreaCtrl', function () {\n\n // load the controller's module\n beforeEach(module('confRegistrationWebApp'));\n\n var FormDropAreaCtrl,\n scope;\n\n // I... | javascript | chosen |
[
{
"from": "system",
"value": "Use requestAnimationFrame from utils instead of global one.\n"
},
{
"from": "human",
"value": "import updateComponent from './updateComponent';\n\nfunction applyState( component ) {\n\tconst blockRender = component._blockRender;\n\n\trequestAnimationFrame( () => {\n... | javascript | chosen |
[
{
"from": "system",
"value": "Update to where are you\n"
},
{
"from": "human",
"value": "const os = require('os');\nconst hostname = os.hostname();\n\nmodule.exports = robot =>\n robot.respond(/where are you/i, message => message.send(hostname))\n;\n"
},
{
"from": "gpt",
"value": "c... | javascript | chosen |
[
{
"from": "system",
"value": "Use new way of defining phonegap plugins.\n"
},
{
"from": "human",
"value": "var AppPreferences = function () {};\n\nvar AppPreferencesError = function(code, message) {\n this.code = code || null;\n this.message = message || '';\n};\n\nAppPreferencesError.NO_P... | javascript | chosen |
[
{
"from": "system",
"value": "Remove canary only feature flags.\n"
},
{
"from": "human",
"value": "/* jshint node: true */\n\nmodule.exports = function(environment) {\n var ENV = {\n modulePrefix: 'dummy',\n environment: environment,\n baseURL: '/',\n locationType: 'auto',\n Embe... | javascript | chosen |
[
{
"from": "system",
"value": "Set base url for production env\n"
},
{
"from": "human",
"value": "/* jshint node: true */\n\nmodule.exports = function(environment) {\n var ENV = {\n modulePrefix: 'dummy',\n environment: environment,\n baseURL: '/',\n locationType: 'auto',\n EmberE... | javascript | chosen |
[
{
"from": "system",
"value": "Add error prefix to error log method\n"
},
{
"from": "human",
"value": "const chalk = require('chalk');\n\nmodule.exports = {\n\tlog: {\n\t\theading(text, color = 'white') {\n\t\t\tconsole.log(chalk[color].underline(`\\n${text}\\n`));\n\t\t},\n\t\terror(text) {\n\t\... | javascript | chosen |
[
{
"from": "system",
"value": "Simplify how we determine if asset is already showing.\n"
},
{
"from": "human",
"value": "CMS.Views.Assets = Backbone.View.extend({\n // takes CMS.Models.AssetCollection as model\n\n initialize : function() {\n this.listenTo(this.collection, 'destroy', ... | javascript | chosen |
[
{
"from": "system",
"value": "Store tag as instance variable\n"
},
{
"from": "human",
"value": "Template.taggedCourses.helpers({\n 'courses': function () {\n return Courses.find().fetch();\n },\n 'tag': function () {\n return Session.get('tag');\n }\n});\n\nTemplate.tag... | javascript | chosen |
[
{
"from": "system",
"value": "Update from travis build of arcgis-dijit-drilldown\n"
},
{
"from": "human",
"value": "define([\"dojo/_base/declare\",\"./_LocatorBase\"],function(a,b){return a([b],{locatorType:\"OSG\",resultsPickList:null,streetGrouping:[\"STREET_DESCRIPTOR\",\"LOCALITY_NAME\",\"TO... | javascript | chosen |
[
{
"from": "system",
"value": "Fix Stateless functional components + HOC\n"
},
{
"from": "human",
"value": "// @flow\n\nimport React, { Component } from 'react'\nimport type { Alert as AlertType } from '../types/application'\nimport type { clearAlert } from '../types/actions'\n\ntype Props = {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Move button to top-left, need to adjust margins and padding\n"
},
{
"from": "human",
"value": "import React, { Component } from 'react';\n\nimport {\n StyleSheet,\n Text,\n View,\n TouchableHighlight,\n} from 'react-native';\n\nclass Story extends Component{\n\n... | javascript | chosen |
[
{
"from": "system",
"value": "Add NUS module information to display when searched\n"
},
{
"from": "human",
"value": "import { Meteor } from 'meteor/meteor';\nimport { Match, check } from 'meteor/check';\n\n\nMeteor.publish('modules', function(limit, PUField, regionField, search) {\n check(searc... | javascript | chosen |
[
{
"from": "system",
"value": "Revert back publication with option\n"
},
{
"from": "human",
"value": "Meteor.publish('posts', function(sort, limit) {\n return Posts.find({}, { sort: sort, limit: limit });\n});\n\nMeteor.publish('comments', function(postId) {\n check(postId, String);\n return C... | javascript | chosen |
[
{
"from": "system",
"value": "Complete Release 1 intro and Ch.1\n"
},
{
"from": "human",
"value": "// Eloquent JavaScript\n\n// Run this file in your terminal using `node my_solution.js`. Make sure it works before moving on!\n\n// Program Structure\n// Write your own variable and do something to... | javascript | chosen |
[
{
"from": "system",
"value": "[Biography] Fix case where artist blurb was null and RN couldn't render\n"
},
{
"from": "human",
"value": "/* @flow */\n'use strict';\n\nimport Relay from 'react-relay';\nimport React from 'react-native';\nconst { View, Text, Dimensions } = React;\n\nimport removeMa... | javascript | chosen |
[
{
"from": "system",
"value": "Update for plug-in : Zhihu\n"
},
{
"from": "human",
"value": "var hoverZoomPlugins = hoverZoomPlugins || [];\nhoverZoomPlugins.push( {\n name: 'Zhihu',\n prepareImgLinks: function(callback) {\n var res = [];\n hoverZoom.urlReplace(res,\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Enable Redux DevTools if installed\n"
},
{
"from": "human",
"value": "import { createStore, applyMiddleware } from 'redux';\nimport thunk from 'redux-thunk';\nimport rootReducer from '../reducers';\n\nconst configureStore = initialState =>\n createStore(rootReducer... | javascript | chosen |
[
{
"from": "system",
"value": "Fix Rotues by RESTify Rules\n"
},
{
"from": "human",
"value": "exports.default = {\n\troutes: function (api) {\n\t\treturn {\n\t\t\tget: [\n\t\t\t\t/* URIs */\n\t\t\t\t{\n\t\t\t\t\tpath: '/:apiVersion/account/:accountHashId/monitor',\n\t\t\t\t\taction: 'monitorList'... | javascript | chosen |
[
{
"from": "system",
"value": "Change URL for the localhost\n"
},
{
"from": "human",
"value": "/**\n * Created by vytautassugintas on 06/04/16.\n */\n(function() {\n\"use strict\";\nangular.module(\"myApp\").constant(\"SERVER\", {\n\t\"ip\": \"http://openkudos.com/api\"\n})\n})();\n"
},
{
... | javascript | chosen |
[
{
"from": "system",
"value": "Remove redundant timestamp in log messages\n"
},
{
"from": "human",
"value": "const repo = require('./persistence/storyRepo');\n\nexports.ping = (req, res) => {\n console.log(new Date(), 'ping');\n res.send({ salutation: 'pong' });\n};\n\nexports.searchStories = (... | javascript | chosen |
[
{
"from": "system",
"value": "Expand schedule to fill viewport\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport { gql, graphql } from 'react-apollo';\nimport FullSchedule from '../components/FullSchedule';\n\nfunction Schedule({ data }) {\n return (\n <div className=\"Co... | javascript | chosen |
[
{
"from": "system",
"value": "Remove SignUpForm component since App container contains component\n"
},
{
"from": "human",
"value": "import React, { Component } from 'react';\nimport { render } from 'react-dom';\nimport { Provider } from 'react-redux';\nimport {Router, Route, Switch } from 'react... | javascript | chosen |
[
{
"from": "system",
"value": "Use data map to handle comments\n"
},
{
"from": "human",
"value": "/*\n CommentBox\n */\n\nvar CommentBox = React.createClass({\n render: function() {\n return (\n <div className=\"commentBox\">\n <h1>Comments</h1>\n <CommentList />\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Create width and height tests\n"
},
{
"from": "human",
"value": "describe('D3Funnel', function() {\n\tdescribe('constructor', function() {\n\t\tit('should instantiate without error', function() {\n\t\t\tnew D3Funnel('#funnel');\n\t\t});\n\t});\n\n\tdescribe('methods... | javascript | chosen |
[
{
"from": "system",
"value": "Migrate to new format for mode specific arguments.\n\nTestem is deprecating the format currently in use:\n\n```js\nbrowser_args: {\n Chrome: {\n mode: 'ci',\n args: [\n // args go here....\n ]\n }\n}\n```\n\nIn favor of this format:\n\n```js\nbrowser_args: {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Handle the case where hash.Members is undefined\n"
},
{
"from": "human",
"value": "import ApplicationSerializer from './application';\nimport { AdapterError } from 'ember-data/adapters/errors';\n\nexport default ApplicationSerializer.extend({\n attrs: {\n datace... | javascript | chosen |
[
{
"from": "system",
"value": "Reset user status when logging out\n"
},
{
"from": "human",
"value": "import update from 'immutability-helper'\n\nimport ActionTypes from '../actionTypes'\n\nconst initialState = {\n isLoading: false,\n lastRequestAt: undefined,\n latestActivities: [],\n unreadM... | javascript | chosen |
[
{
"from": "system",
"value": "Make config schema path to be relative to installation directory.\n\nThis changed fixes wrong assumption that working directory of IRC bridge\nis always a directory where it's installed.\n\nSchema path has been changed to be relative to installation directory,\nnot working dire... | javascript | chosen |
[
{
"from": "system",
"value": "DevTools: Fix forwarding keyboard shortcuts from target page\n\nThis was regressed by crrev.com/c/devtools/devtools-frontend/+/1942290\nwhich removed an unused variable in response to a linting rule. That\nvariable referenced a call to construct a ForwardedInputEventHandler\nin... | javascript | chosen |
[
{
"from": "system",
"value": "Load vue locally, vuex needs to register\n\n"
},
{
"from": "human",
"value": "import 'es6-promise/auto';\nimport Vuex from 'vuex';\n\nimport authStore from 'src/stores/auth-store';\nimport connectionStore from 'src/stores/connection-store';\n\n// Vue.use(Vuex);\n\ne... | javascript | chosen |
[
{
"from": "system",
"value": "Enable target as instance experiment\n\nSummary:\nThis diff is just here to make it easier for me to work on the stack. It needs to be ripped out of the stack before landing\n\nChangelog:\n[Breaking][General] The `target` field of events is now a native component, not a react t... | javascript | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.