conversations listlengths 2 3 | source stringclasses 1 value | stack stringclasses 1 value |
|---|---|---|
[
{
"from": "system",
"value": "Environments: Refactor data update method to reuse.\n"
},
{
"from": "human",
"value": "class EnvironmentRuleItem extends EnvironmentItem\n\n constructor: (options = {}, data) ->\n\n options.cssClass = 'rule'\n options.joints = ['right']\... | coffeescript | chosen |
[
{
"from": "system",
"value": "Set newBody property when rendering errors\n\nIt's expected by the Turbolinks.Renderer super class\n"
},
{
"from": "human",
"value": "#= require ./renderer\n\nclass Turbolinks.ErrorRenderer extends Turbolinks.Renderer\n constructor: (@html) ->\n\n render: (callbac... | coffeescript | chosen |
[
{
"from": "system",
"value": "Adjust text so there's a space after \"Delete Assignment\"\n"
},
{
"from": "human",
"value": "React = require 'react'\nBS = require 'react-bootstrap'\n{TaskPlanStore} = require '../../../flux/task-plan'\n\nbuildTooltip = ({isPublished}) ->\n saveMessage = if isPubl... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use parse in EvidenceCollection to add the correct model\n"
},
{
"from": "human",
"value": "class window.EvidenceCollection extends Backbone.Collection\n comparator: (evidence) ->\n # TODO: breaks with relevance > 1000\n -parseFloat(evidence.get('opinions')?.... | coffeescript | chosen |
[
{
"from": "system",
"value": "Update door tablet weather information\n"
},
{
"from": "human",
"value": "RefreshWeather = (options) ->\n options = options or {}\n options.elem = options.elem or \"#weather-general\"\n options.update_interval = options.update_interval or FAST_UPDATE\n\n elem = ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Change decorateMarker to invalidate on changes\n"
},
{
"from": "human",
"value": "MixedIndentWarningView = require './mixed-indent-warning-view'\nIndentChecker = require '../lib/indent-checker'\n{CompositeDisposable} = require 'atom'\n\nmodule.exports = MixedIndentW... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix for reusing UserList (.model not guaranteed now)\n"
},
{
"from": "human",
"value": "Controller = require 'lib/controller'\nUser = require 'models/user'\nUsers = require 'models/users'\nBasicSettingsView = require 'views/settings/basic'\nUsersList = require 'view... | coffeescript | chosen |
[
{
"from": "system",
"value": "Rename .ctags file to ctags-config in unpack list\n\nNecessary since the file was renamed in symbols-view@0.103.0.\n"
},
{
"from": "human",
"value": "asar = require 'asar'\nfs = require 'fs'\npath = require 'path'\n\nmodule.exports = (grunt) ->\n {cp, rm} = require... | coffeescript | chosen |
[
{
"from": "system",
"value": "Allow all the homepage rail!\n"
},
{
"from": "human",
"value": "module.exports = \"\"\"\n query($showHeroUnits: Boolean!) {\n home_page {\n artwork_modules(\n max_rails: 7,\n order: [\n ACTIVE_BIDS,\n RECENTLY_VIEWED_WORKS\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Finder: Remove 'Workspace from here' menu item unless machine is mine.\n"
},
{
"from": "human",
"value": "class IDE.FinderContextMenuController extends NFinderContextMenuController\n\n getFolderMenu: (fileView) ->\n\n fileData = fileView.getData()\n\n items =... | coffeescript | chosen |
[
{
"from": "system",
"value": "Update lastDigits when card number changes\n"
},
{
"from": "human",
"value": "Sprangular.directive 'creditCardForm', ->\n restrict: 'E'\n templateUrl: 'credit_cards/form.html'\n scope:\n creditCard: '='\n controller: ($scope) ->\n $scope.months = [\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix alternate title not being updated on switching between anime pages.\n"
},
{
"from": "human",
"value": "Hummingbird.BootstrapTooltipComponent = Ember.Component.extend\n tagName: 'a'\n didInsertElement: ->\n @$().tooltip\n placement: @get('placement')\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Whitelist folders path from core\n\nThere are several folders bundled in the app that aren't needed in the\nrequire cache list so it is simpler to opt-in the folders that should\nbe part of the cache.\n"
},
{
"from": "human",
"value": "path = require 'path'\nModuleC... | coffeescript | chosen |
[
{
"from": "system",
"value": "Change status when clicking on show search options\n"
},
{
"from": "human",
"value": "Species.ElibrarySearchFormView = Ember.View.extend\n templateName: 'species/elibrary_search_form'\n classNames: ['search-block']\n\n actions:\n toggleSearchOptions: () ->\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Refactor PlayerController to use states"
},
{
"from": "human",
"value": "Yossarian.PlayerController = Ember.Controller.extend\n artists: null\n currentRecording: null\n lastRecording: null\n\n recordings: (->\n @get('artists').toArray().map((artist) -> art... | coffeescript | chosen |
[
{
"from": "system",
"value": "Check active element when store it\n"
},
{
"from": "human",
"value": "{CompositeDisposable} = require 'atom'\n{$, View} = require 'space-pen'\n\nmodule.exports = class ToolBarButtonView extends View\n @content: ->\n @button class: 'btn btn-default tool-bar-btn'\... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix bug in code that repopulated the input field\n"
},
{
"from": "human",
"value": "Chamber.Views.Rooms ||= {}\n\nclass Chamber.Views.Rooms.ShowView extends Backbone.View\n template: JST[\"backbone/templates/rooms/show\"]\n \n events: {\n \"click input[type=su... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add copy icon to keymaps in package view\n\nCloses #166\n"
},
{
"from": "human",
"value": "_ = require 'underscore-plus'\n{$$$, View} = require 'atom'\n\n# Displays the keybindings for a package namespace\nmodule.exports =\nclass PackageKeymapView extends View\n @c... | coffeescript | chosen |
[
{
"from": "system",
"value": "Implement the different modes of the StepInterpolator\n"
},
{
"from": "human",
"value": "_ = require \"underscore\"\nTransform = require \"./transform\"\nInterpolator = require \"./interpolator\"\np = require \"../../core/properties\"\n\n\nclass StepInterpolator ext... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add Rspec grammar for Rubocop\n"
},
{
"from": "human",
"value": "'source.ruby': 'rubocop'\n'source.ruby.rails': 'rubocop'\n'source.python': 'flake8'\n'source.js': 'jshint'\n'source.haskell': 'hlint'\n'text.tex.latex.haskell': 'hlint'\n'source.coffee': 'coffeelint'\n... | coffeescript | chosen |
[
{
"from": "system",
"value": "Make publishing and viewing templates separate features\n"
},
{
"from": "human",
"value": "Settings = require 'settings-sharelatex'\n\nmodule.exports = Features =\n\texternalAuthenticationSystemUsed: ->\n\t\tSettings.ldap? or Settings.saml? or Settings.overleaf?.oau... | coffeescript | chosen |
[
{
"from": "system",
"value": "Make sure count chart + preview always show the same thing\n"
},
{
"from": "human",
"value": "\nsvg = require 'svg.js'\n\nAppConfig = require 'shared/services/app_config.coffee'\n\nangular.module('loomioApp').directive 'progressChart', ->\n template: '<div cla... | coffeescript | chosen |
[
{
"from": "system",
"value": "Update Intercom / Segment integration\n\nUpdating settings based on new Ozaria source in Segment, pointing to a 2nd Intercom destination in Segment. 2nd Intercom Segement destination still points to our Coco Intercom workspace for now.\n"
},
{
"from": "human",
"val... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix non-working button after converted from link\n"
},
{
"from": "human",
"value": "# Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0.\n# See the LICENCE file in the repository root for full licence text.\n\nimpo... | coffeescript | chosen |
[
{
"from": "system",
"value": "Make it possible to pass S3 service to Uploader.\n\nIt is useful to change various S3 service parameters like maxRetries\netc.\n\nhttps://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/S3/ManagedUpload.html\n"
},
{
"from": "human",
"value": "{EventEmitter} = requir... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix broken syntax in multiple angular files\n\nI have no idea how this was not already throwing errors before...\n"
},
{
"from": "human",
"value": "window.Darkswarm = angular.module(\"Darkswarm\", [\n 'ngResource',\n 'mm.foundation',\n 'LocalStorageModule',\n 'i... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix image javascript in safari\n"
},
{
"from": "human",
"value": "class PhotoGallery\n constructor: (options) ->\n @$el = options.el\n @thumbnails = options.thumbnails\n @project = options.project\n\n setup: ->\n for thumbnail in @thumbnails\... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix chart object being destroyed\n"
},
{
"from": "human",
"value": "# Place all the behaviors and hooks related to the matching controller here.\n# All this logic will automatically be available in application.js.\n# You can use CoffeeScript in this file: http://cof... | coffeescript | chosen |
[
{
"from": "system",
"value": "Make notifyOnError handler try to parse response as JSON\n"
},
{
"from": "human",
"value": "AjaxPrefix.addAjaxPrefix(jQuery, -> CMS.prefix)\n\n@CMS =\n Models: {}\n Views: {}\n\n prefix: $(\"meta[name='path_prefix']\").attr('content')\n\n_.extend CMS, Backbone.Ev... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix unnecessary loading of categories in map route.\n"
},
{
"from": "human",
"value": "Wheelmap.MapRoute = Ember.Route.extend\n setupController: (controller, model)->\n @_super(controller, model)\n\n @controllerFor('toolbar').set('content', @store.findAll('ca... | coffeescript | chosen |
[
{
"from": "system",
"value": "Document reason for exception in the console.\n"
},
{
"from": "human",
"value": "gravatar_url = (email_address) ->\n hash = CryptoJS.MD5 email_address.trim().toLowerCase()\n \"http://www.gravatar.com/avatar/\" + hash + \"?d=404&s=50\"\n\nTemplate.profilePage.onRen... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add permissions prop to manage steps\n"
},
{
"from": "human",
"value": "'use strict'\n\nReact = require 'react'\nManageStepsView = require './ManageStepsView'\n{ connect } = require 'react-redux'\n{ loadStepsByProject } = require '... | coffeescript | chosen |
[
{
"from": "system",
"value": "Update `shipping-rate-selection` to use `Order.shippingAddress` directly\n"
},
{
"from": "human",
"value": "Sprangular.directive 'shippingRateSelection', ->\n restrict: 'E'\n templateUrl: 'shipping/rates.html'\n scope:\n order: '='\n\n controller: ($scope, Ch... | coffeescript | chosen |
[
{
"from": "system",
"value": "fix: Disable javascript for deactivated accordion extension\n"
},
{
"from": "human",
"value": "# Place all the behaviors and hooks related to the matching controller here.\n# All this logic will automatically be available in application.js.\n# You can use CoffeeScri... | coffeescript | chosen |
[
{
"from": "system",
"value": "fix: Clean textarea when add a translation\n"
},
{
"from": "human",
"value": "jQuery ->\n $('#form-translation textarea').autosize()\n\n $('.add-translation').click (event) ->\n event.preventDefault()\n $('#form-translation #locale').val('')\n $('#form-tr... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix translation in different pages context\n"
},
{
"from": "human",
"value": "$ ->\n selectors = [\n # newsletter modal\n '.subscribe-banner'\n '.modal-title'\n '.modal-body p'\n '.modal-body .button-add.wide'\n # default view\n '.read-more'\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Work around for lodash -> index\n"
},
{
"from": "human",
"value": "module.exports =\n karma: true,\n shims:\n underscore: {exports: '_'}\n backbone: {exports: 'Backbone', deps: ['underscore']}\n 'backbone-orm': {exports: 'BackboneORM', deps: ['backbone', ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Update output of 'pb last'\n"
},
{
"from": "human",
"value": "# Description:\n# <placeholder>\n#\n# Dependencies:\n# None\n#\n# Configuration:\n# None\n#\n# Commands:\n# <placeholder>\n#\n# Author:\n# dualmoon\n\nif not process.env.HUBOT_PUSHBULLET_API_KEY... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add title to date picker test component\n"
},
{
"from": "human",
"value": "DatePicker = require '../../components/date_picker'\nTimePicker = require '../../components/time_picker'\n\nmodule.exports = React.createClass\n displayName: 'PickersTest'\n\n render: ->\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add current_opinion getter to FactRelation\n"
},
{
"from": "human",
"value": "class window.FactRelation extends Backbone.Model\n\n defaults:\n evidence_type: 'FactRelation'\n\n setOpinion: (type) ->\n $.ajax\n url: @url() + \"/opinion/\" + type\n s... | coffeescript | chosen |
[
{
"from": "system",
"value": "Change default async action timeout to 10 seconds.\n"
},
{
"from": "human",
"value": "# reference \"Witness.coffee\"\r\n# reference \"Event.coffee\"\r\n# reference \"TimeoutError.coffee\"\r\n\r\n{ Event, TimeoutError } = @witness\r\n\r\n@witness.AsyncAction = class... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add a toggle to show / not show user list"
},
{
"from": "human",
"value": "# See https://atom.io/docs/latest/creating-a-package#menus for more details\n'context-menu':\n 'atom-workspace': [\n # { 'label': 'Enable Floobits', 'command': 'Floobits: Join Workspace' ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Set FETCH AT ONCE to 10000\n\nRAM usage is still reasonable, import is way faster\n"
},
{
"from": "human",
"value": "\nexports.MSGBYPAGE = 30\n# safeDestroy parameters (to be tweaked)\n# loads 200 ids in memory at once\nexports.LIMIT_DESTROY = 200\n# loads 30 messag... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add package \"language-rust\" for Rust support\n\nAdd support for Rust (1) via the community package \"language-rust\" (2).\n\nReferences:\n\n (1) https://www.rust-lang.org\n (2) https://atom.io/packages/language-rust\n\nCloses GH-121\n"
},
{
"from": "human",
"val... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use PulsarJob.output instead of PulsarJob.stdout for monitoring deploy.\n"
},
{
"from": "human",
"value": "class DeployMonitor\n\n deploy = null\n chat = null\n monitorInterval = null\n monitorPeriodMs = 10000\n deployHangTimeMs = 0\n lastDeployStdout = null\n... | coffeescript | chosen |
[
{
"from": "system",
"value": "Check if legacy url is defined before creating link\n"
},
{
"from": "human",
"value": "define (require) ->\n $ = require('jquery')\n settings = require('settings')\n BaseView = require('cs!helpers/backbone/views/base')\n template = require('hbs!./header-template... | coffeescript | chosen |
[
{
"from": "system",
"value": "Reset query on interface or output change\n"
},
{
"from": "human",
"value": "share.Queries.before.update (userId, query, fieldNames, modifier, options) ->\n if _.intersection(fieldNames, [\"interface\", \"output\", \"startRecNum\", \"sortField\", \"sortReverse\", \... | coffeescript | chosen |
[
{
"from": "system",
"value": "feat: Replace letters with diactritics (e.g., ä ö ü É é) during geoentity filtering, so geoentities can be filtered using only english alphabet\n"
},
{
"from": "human",
"value": "Species.GeoEntityAutoCompleteLookup = Ember.Mixin.create\n geoEntityQuery: null\n aut... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use pendingState as state is not updated instantly\n"
},
{
"from": "human",
"value": "window.ReactSigninPopover = React.createClass\n getInitialState: ->\n opened: false\n\n componentDidMount: ->\n window.currentUser.on 'change:username', @_onSignedInChange,... | coffeescript | chosen |
[
{
"from": "system",
"value": "Load certs from dir 'certs'\n"
},
{
"from": "human",
"value": "Meteor.methods\n\tlog: ->\n\t\tconsole.log.apply console, arguments\n\nMeteor.startup ->\n\tPush.debug = true\n\n\tPush.Configure\n\t\tapn:\n\t\t\tpassphrase: '***'\n\t\t\tkeyData: Assets.getText 'PushRo... | coffeescript | chosen |
[
{
"from": "system",
"value": "Allow setting `allowClear` and `closeOnSelect`\n"
},
{
"from": "human",
"value": "Menglifang.Widgets.Select2 = Ember.Select.extend\n classNames: ['mlf-select2']\n\n placeholder: '请选择...'\n allowClear: true\n minimumInputLength: 0\n maximumSelectionSize: 3\n\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Simplify adding rows to sortable tables\n\nThe `append` method can handle arrays, so there's no need to loop\nthrough each element.\n\nThere's more to improve on this method, like the `asc` variable being\nglobal to a table instead of depending on the current column, but for\nn... | coffeescript | chosen |
[
{
"from": "system",
"value": "Set dashboard to use toolsets\n"
},
{
"from": "human",
"value": "Manager = require 'modules/manager'\ntools = require 'config/toolset_config'\n\nToolLoader = (dashboard, cb) ->\n project = dashboard.get('project')\n unless project and tools.projects.hasOwnProperty... | coffeescript | chosen |
[
{
"from": "human",
"value": "Add initial outline view specs\n"
},
{
"from": "gpt",
"value": "RootView = require 'root-view'\nOutlineView = require 'outline-view'\n\ndescribe \"OutlineView\", ->\n [rootView, outlineView] = []\n\n beforeEach ->\n rootView = new RootView(require.resolve('fixtu... | coffeescript | chosen |
[
{
"from": "human",
"value": "Add unit test for adding collaborator"
},
{
"from": "gpt",
"value": "setupEventStream = ->\n store = ETahi.__container__.lookup \"store:main\"\n es = ETahi.EventStream.create\n store: store\n init: ->\n [es, store]\n\ncreateDashboardDataWithLiteP... | coffeescript | chosen |
[
{
"from": "human",
"value": "Add test for preflighted cors\n"
},
{
"from": "gpt",
"value": "class PreflightCorsTest extends Test\n constructor: ->\n super\n @display_name = \"Preflight CORS\"\n\n run: ->\n [a, b] = super\n\n @$http(\n method: \"POST\"\n url: \"http://cors... | coffeescript | chosen |
[
{
"from": "human",
"value": "Add tests for AWSRequest deferred object\n"
},
{
"from": "gpt",
"value": "AWS = require('../../lib/core')\n\ndescribe 'AWS.AWSRequest', ->\n request = null\n response = null\n beforeEach ->\n response = new AWS.AWSResponse(service: null, method: 'POST', params:... | coffeescript | chosen |
[
{
"from": "human",
"value": "Implement Collision Check Temporary Table.\n"
},
{
"from": "gpt",
"value": "_ = require \"underscore\"\nPromise = require \"bluebird\"\nTemporaryTable = require \"./TemporaryTable\"\n\nclass CollisionCheckTemporaryTable extends TemporaryTable\n\n insert: (externalOb... | coffeescript | chosen |
[
{
"from": "human",
"value": "Add script to change the admin account password\n"
},
{
"from": "gpt",
"value": "chalk = require 'chalk'\nusers = require './users'\nbcrypt = require 'bcrypt-nodejs'\nif process.argv.length <= 2\n console.log chalk.blue 'Use this script to change the admin password:... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add runtime.getManifest() stub to Chrome mock\n"
},
{
"from": "human",
"value": "#\n# Mock the Chrome extension API.\n#\n\nroot = exports ? window\n\nroot.chrome = {\n extension: {\n connect: -> {\n onMessage: {\n addListener: ->\n }\n post... | coffeescript | chosen |
[
{
"from": "human",
"value": "Add specs for normalizeKeystrokes helper\n"
},
{
"from": "gpt",
"value": "{normalizeKeystrokes} = require '../src/helpers'\n\ndescribe \".normalizeKeystrokes(keystrokes)\", ->\n it \"parses and normalizes the keystrokes\", ->\n expect(normalizeKeystrokes('ctrl--'... | coffeescript | chosen |
[
{
"from": "human",
"value": "Add auto select input component\n\n[#96883346]\n"
},
{
"from": "gpt",
"value": "`import Ember from 'ember'`\n\nAutoSelectInput = Ember.TextField.extend\n attributeBindings: ['readonly']\n readonly: true\n\n mouseUp: ->\n @$().select()\n\n`export default AutoSel... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use pageX instead of clientX\n"
},
{
"from": "human",
"value": "class app.views.Resizer extends app.View\n @className: '_resizer'\n\n @events:\n dragstart: 'onDragStart'\n dragend: 'onDragEnd'\n drag: 'onDrag'\n\n @isSupported: ->\n 'ondragstart' of d... | coffeescript | chosen |
[
{
"from": "human",
"value": "Add test for client request"
},
{
"from": "gpt",
"value": "client = require 'nack/client'\nprocess = require 'nack/process'\n\nconfig = __dirname + \"/fixtures/echo.ru\"\n\nexports.testClientRequest = (test) ->\n test.expect 5\n\n p = process.createProcess config\... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add trailing wildcard route for filter\n"
},
{
"from": "human",
"value": "express = require 'express'\napp = module.exports = express()\nto = require './to'\n\napp.get '/filter/artworks', to '/browse'\napp.get '/genes', to '/categories'\napp.get '/partner-applicatio... | coffeescript | chosen |
[
{
"from": "system",
"value": "Revert \"spec: ffi is crashing on OS X\"\n\nThis reverts commit 706deae1b0dc924fc8cb11f992f36c7cf56530ab.\n"
},
{
"from": "human",
"value": "assert = require 'assert'\nfs = require 'fs'\npath = require 'path'\ntemp = require 'temp'\n\ndescribe 'third-party m... | coffeescript | chosen |
[
{
"from": "human",
"value": "Add test for Mist Hunter title.\n"
},
{
"from": "gpt",
"value": "common = require './common'\n\ncommon.setup()\n\n\ncasper.test.begin \"Mist Hunter equips Tractor Beam\", (test) ->\n common.waitForStartup('#rebel-builder')\n\n common.openScumBuilder()\n comm... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use .subscribe and .observeConfig in WrapGuide"
},
{
"from": "human",
"value": "{View} = require 'space-pen'\n\nmodule.exports =\nclass WrapGuide extends View\n @activate: (rootView, state, config) ->\n requireStylesheet 'wrap-guide.css'\n\n for editor in roo... | coffeescript | chosen |
[
{
"from": "human",
"value": "Add NoFlo component to SCD detector\n"
},
{
"from": "gpt",
"value": "noflo = require 'noflo'\ntemporary = require 'temporary'\nfs = require 'fs'\npath = require 'path'\nexec = require('child_process').exec\n\n# @runtime noflo-nodejs\n# @name SCDDetect\n\ncompute = (c... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix following profile on fair and shows feed for logged out users\n"
},
{
"from": "human",
"value": "_ = require 'underscore'\nBackbone = require 'backbone'\nProfile = require '../../models/profile.coffee'\n{ Following, FollowButton } = require '../../components/fol... | coffeescript | chosen |
[
{
"from": "system",
"value": "Print error when mkdir failed\n"
},
{
"from": "human",
"value": "assert = require 'assert'\nfs = require 'fs'\npath = require 'path'\ntemp = require 'temp'\n\ndescribe 'third-party module', ->\n fixtures = path.join __dirname, 'fixtures'\n temp.track()\n\n... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix lint errors in MenuManager\n"
},
{
"from": "human",
"value": "ipc = require 'ipc'\n\n# Public: Provides a registry for menu items that you'd like to appear in the\n# application menu.\n#\n# Should be accessed via `atom.menu`.\nmodule.exports =\nclass MenuManager... | coffeescript | chosen |
[
{
"from": "system",
"value": "Make font-size larger than the default\n"
},
{
"from": "human",
"value": "# Your init script\n#\n# Atom will evaluate this file each time a new window is opened. It is run\n# after packages are loaded/activated and after the previous editor state\n# has been restore... | coffeescript | chosen |
[
{
"from": "system",
"value": "Set up split test for nav bar\n\nCo-authored-by: Christina Thompson <b198d96868676c881b6e8056776420d72dff081b@gmail.com>\n"
},
{
"from": "human",
"value": "# Centralizes configuration for currently running split tests\n#\n# eg.\n# header_design:\n# key: 'header_de... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add tests to validate command structures.\n"
},
{
"from": "human",
"value": "require \"./test_helper.js\"\n{Commands} = require \"../../background_scripts/commands.js\"\n\ncontext \"Key mappings\",\n should \"lowercase keys correctly\", ->\n assert.equal (Comman... | coffeescript | chosen |
[
{
"from": "human",
"value": "Add some basic test of Languages methods\n"
},
{
"from": "gpt",
"value": "{ getLanguage } = require '../src/languages'\n\nexports[\"CSS comment types\"] = (test) ->\n lang = getLanguage('foo.css')\n test.equal lang.checkType(' /* ** FOO bar -- **'), 'multistart'\n... | coffeescript | chosen |
[
{
"from": "human",
"value": "Add array merging code (to be used with offline sync and task sorting conflicts)\n"
},
{
"from": "gpt",
"value": "# Merge Array Order with Timestamps\n\nArrayDiff = (a, b) ->\n a.filter (i) ->\n not (b.indexOf(i) > -1)\n\nmerge = (client, server) ->\n # client a... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix off by one issue in pagination\n"
},
{
"from": "human",
"value": "Backbone = require 'backbone'\n\ntemplate = -> require('./index.jade') arguments...\n\nmodule.exports = class PaginatorView extends Backbone.View\n maxPage: 100\n pagesInterval: 2\n\n events:\n... | coffeescript | chosen |
[
{
"from": "human",
"value": "Create script to load the payments views from payment engines\n"
},
{
"from": "gpt",
"value": "Neighborly.Projects = {} if Neighborly.Projects is undefined\nNeighborly.Projects.Backers = {} if Neighborly.Projects.Backers is undefined\n\nNeighborly.Projects.Backers.Cr... | coffeescript | chosen |
[
{
"from": "human",
"value": "Create directive for scaling by a factor and then formatting as currency\n"
},
{
"from": "gpt",
"value": "angular.module(\"admin.lineItems\").directive \"scaleAsCurrency\", ($filter) ->\n restrict: \"A\"\n require: 'ngModel'\n scope:\n factor: \"&scaleAsCurrenc... | coffeescript | chosen |
[
{
"from": "human",
"value": "Create migration to update message urls\n"
},
{
"from": "gpt",
"value": "Meteor.startup ->\n\tMigrations.add\n\t\tversion: 7\n\t\tup: ->\n\n\t\t\tconsole.log 'Populate urls in messages'\n\t\t\tquery = ChatMessage.find({ 'urls.0': { $exists: true }, urls: { $type: 2 }... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix the incorrect default url for new instances.\n"
},
{
"from": "human",
"value": "if not RocketChat.models.OAuthApps.findOne('zapier')\n\tRocketChat.models.OAuthApps.insert\n\t\t_id: 'zapier'\n\t\tname: 'Zapier'\n\t\tactive: true\n\t\tclientId: 'zapier'\n\t\tclien... | coffeescript | chosen |
[
{
"from": "human",
"value": "Add status mixin for listening to user changes\n"
},
{
"from": "gpt",
"value": "User = require './model'\n\nUserStatusMixin = {\n\n componentDidMount: ->\n User.channel.on(\"change\", @onUserChange)\n componentWillUnmount: ->\n User.channel.off(\"change\", @o... | coffeescript | chosen |
[
{
"from": "human",
"value": "Add mozilla sink, in addition to sink.js\n\nWe're having minor problems with sink.js, adding moz-sink for experimentation.\n"
},
{
"from": "gpt",
"value": "class MozillaSink\n constructor: (@name) ->\n @buffers = []\n \n @inputs = {\n ... | coffeescript | chosen |
[
{
"from": "human",
"value": "Add helper to set sync info at order.\n"
},
{
"from": "gpt",
"value": "SphereClient = require 'sphere-node-client'\nQ = require 'q'\n\nclass OrderService\n\n constructor: (options = {}) ->\n unless options.sphere_client\n options.sphere_client = new SphereCl... | coffeescript | chosen |
[
{
"from": "human",
"value": "Add ember auth patch for testing\n"
},
{
"from": "gpt",
"value": "Em.onLoad 'Ember.Application', (application) ->\n application.initializer\n name: \"adapter-auth-injection\"\n before: \"ember-auth-load\"\n\n initialize: (container, app) ->\n app.injec... | coffeescript | chosen |
[
{
"from": "human",
"value": "Add a new custom script for Arnie quotes\n"
},
{
"from": "gpt",
"value": "# Description:\n# Listens for words and sometimes replies with an Arnie quote\n#\n# Dependencies:\n# None\n#\n# Commands:\n# None\n#\n# Author:\n# Casey Lawrence <cjlaw@users.noreply.gi... | coffeescript | chosen |
[
{
"from": "human",
"value": "Test to validate expansion list.\n"
},
{
"from": "gpt",
"value": "common = require './common'\n\ncommon.setup()\n\ncasper.test.begin \"Validate Expansions\", (test) ->\n valid_expansions = [\n \"A-Wing Expansion Pack\"\n \"B-Wing Expansion Pack\"\n ... | coffeescript | chosen |
[
{
"from": "human",
"value": "Extend new modal from ComputePlansModalFree\n"
},
{
"from": "gpt",
"value": "kd = require 'kd'\nKDView = kd.View\nCustomLinkView = require 'app/customlinkview'\nComputePlansModalFree = require 'app/providers/computeplansmodalf... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use the dialog API to implement alert().\n"
},
{
"from": "human",
"value": "# Redirect window.onerror to uncaughtException.\nwindow.onerror = (error) ->\n if global.process.listeners('uncaughtException').length > 0\n global.process.emit 'uncaughtException', erro... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix undefined method errors in overlay manager\n\nAccess properties directly now\n"
},
{
"from": "human",
"value": "module.exports =\nclass OverlayManager\n constructor: (@container) ->\n @overlayNodesById = {}\n\n render: (props) ->\n {presenter} = props\n\... | coffeescript | chosen |
[
{
"from": "human",
"value": "Add dummy data creation script\n"
},
{
"from": "gpt",
"value": "\"use strict\"\n\nObjectID = require('mongodb').ObjectID\nMoniker = require('moniker')\n\nrand = (min, max) -> Math.floor (Math.random() * (max - min + 1) + min)\n\nlisence = [\n \"CC BY-NC-ND 3.0 NO\"\... | coffeescript | chosen |
[
{
"from": "human",
"value": "Add multi tab/window support for sessionStorage\n"
},
{
"from": "gpt",
"value": "###\nMultiple tabs session storage sync\n\n@see http://blog.guya.net/2015/06/12/sharing-sessionstorage-between-tabs-for-secure-multi-tab-authentication/\n###\n\nmodule.exports = (Module,... | coffeescript | chosen |
[
{
"from": "human",
"value": "Add language settings to insert proper XQuery comments and default indents.\n"
},
{
"from": "gpt",
"value": "'.source.xq':\n 'editor':\n 'commentStart': '(: '\n 'commentEnd': ' :)'\n 'increaseIndentPattern': '[\\\\({]\\\\s*$|<[^>]+>\\\\s*$|(then|return)\\\\... | coffeescript | chosen |
[
{
"from": "human",
"value": "Add cam parser node work.\n"
},
{
"from": "gpt",
"value": "sys = require 'sys'\nfs = require 'fs'\nxml2js = require 'xml2js'\n_ = require 'underscore'\n\nparser = new xml2js.Parser()\n\nparser.addListener 'end', (result) ->\n cams = []\n _(result.Document.Folde... | coffeescript | chosen |
[
{
"from": "human",
"value": "specs: Add back accidentally removed spec-matcher\n"
},
{
"from": "gpt",
"value": "define\n\n toBeOneOf: ->\n if arguments.indexOf\n return arguments.indexOf @actual\n\n for arg in arguments when @actual is arguments[i]\n return true\n\n return fa... | coffeescript | chosen |
[
{
"from": "human",
"value": "Add generic process function in Q utils\n"
},
{
"from": "gpt",
"value": "Q = require 'q'\n_ = require 'underscore'\n\n###*\n * Collection of Q utils\n###\nmodule.exports =\n\n ###*\n * Process each element in the given list using the function fn (called on each it... | coffeescript | chosen |
[
{
"from": "human",
"value": "Add GTT download script template (Thx! @hanachin)\n"
},
{
"from": "gpt",
"value": "# 2014/12/15\n# Created by @hanachin_ (@hanachin on GitHub)\n# Copyright (C) MIT License 2014\n\n# disable web security to download files\ncasper = require('casper').create\n pageSett... | coffeescript | chosen |
[
{
"from": "human",
"value": "Add forgotten file: util for sorting by name.\n"
},
{
"from": "gpt",
"value": "define ->\n\n FINNISH_ALPHABET = 'abcdefghijklmnopqrstuvwxyzåäö'\n\n # Thank you\n # http://stackoverflow.com/questions/3630645/how-to-compare-utf-8-strings-in-javascript/3633725#... | coffeescript | chosen |
[
{
"from": "human",
"value": "Add script to expire existing DocOps lists\n"
},
{
"from": "gpt",
"value": "Settings = require \"settings-sharelatex\"\nrclient = require(\"redis-sharelatex\").createClient(Settings.redis.documentupdater)\nkeys = Settings.redis.documentupdater.key_schema\nasync = req... | coffeescript | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.