conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Use a span to hold the cursor position text\n\nThis fixes an issue where detaching and re-attaching the status bar\nwould cause the cursor position div not to be shown. The reason\nwhy it wasn't shown is that it would get an inline display: block style\nfor some reason (overrid... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add new \"error\" attribute in the StatusMessage\n\nIt is used by `admin/payments/services/stripe_elements.js.coffee`\n"
},
{
"from": "human",
"value": "angular.module(\"admin.utils\").factory \"StatusMessage\", ->\n new class StatusMessage\n types:\n progr... | coffeescript | chosen |
[
{
"from": "system",
"value": "Make the alias between checked and displayContent one way.\n\ndisplayContent shouldn't be set via handlebars for the checkbox\ncomponent. Setting it would cause the checked computed property to\nevaluate before the task value was correctly set, and the model computed\nproperty... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix parsing filter for API requests\n"
},
{
"from": "human",
"value": "window.Posts ?= {}\n\nwindow.Posts.PostsFactory = ($http, $q)->\n\n fetchPosts = (page) ->\n params = {}\n angular.extend(params, {category: @filter.join(\",\")}) unless filterPresent()\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add update device valid check\n"
},
{
"from": "human",
"value": "Authenticate:\n start: 'authenticate'\n tasks:\n 'authenticate':\n filter: 'Authenticate'\nSubscriptionList:\n start: 'authenticate'\n tasks:\n 'authenticate':\n filter: 'Authentica... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add change item to editor context menu\n"
},
{
"from": "human",
"value": "'menu': [\n 'label': 'Edit'\n 'submenu': [\n 'label': 'Select Grammar'\n 'command': 'grammar-selector:show'\n ]\n]\n"
},
{
"from": "gpt",
"value": "'menu': [\n 'label': '... | coffeescript | chosen |
[
{
"from": "system",
"value": "Allow urls that already have the ws:// scheme, add it if it's missing. This also allows for wss:// for websockets over ssl.\n"
},
{
"from": "human",
"value": "###\nWebSocket Interface for the WebSocketRails client.\n###\nclass WebSocketRails.WebSocketConnection\n\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Change keymap selector from `.workspace` to `.editor`\n"
},
{
"from": "human",
"value": "# Keybindings require three things to be fully defined: A selector that is\n# matched against the focused element, the keystroke and the command to\n# execute.\n#\n# Below is a ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Adjust the white space to make the linter happy\n"
},
{
"from": "human",
"value": "_ = require \"underscore\"\n\nMarkup = require \"./markup\"\np = require \"../../core/properties\"\n\nclass DivView extends Markup.View\n tagName: \"div\"\n\n render: () ->\n sup... | coffeescript | chosen |
[
{
"from": "system",
"value": "Kill player after current tick in SinglePlayerListener\n"
},
{
"from": "human",
"value": "define(['listener'], (Listener) ->\n class SinglePlayerListener extends Listener\n notify: (player1, player2, point) ->\n console.log \"Collision: #{player1} #{player2}... | coffeescript | chosen |
[
{
"from": "system",
"value": "Remove function accidentally committed with merge"
},
{
"from": "human",
"value": "path = require \"path\"\n\nmodule.exports =\n repoForPath: (goalPath) ->\n for projectPath, i in atom.project.getPaths()\n if goalPath is projectPath or goalPath.indexOf(proj... | coffeescript | chosen |
[
{
"from": "system",
"value": "Update app.Routes to new este.Routes. Simply!\n"
},
{
"from": "human",
"value": "goog.provide 'app.Routes'\n\ngoog.require 'este.Routes'\n\nclass app.Routes extends este.Routes\n\n ###*\n @constructor\n @extends {este.Routes}\n ###\n constructor: ->\n su... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use fs::readFileSync instead of deprecated fs::read\n"
},
{
"from": "human",
"value": "PEG = require 'pegjs'\n{fs} = require 'atom'\ngrammarSrc = fs.read(require.resolve('./snippet-body.pegjs'))\nmodule.exports = PEG.buildParser(grammarSrc, trackLineAndColumn: true)... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add tooltip to cursor position status\n"
},
{
"from": "human",
"value": "class CursorPositionView extends HTMLElement\n initialize: ->\n @classList.add('cursor-position', 'inline-block')\n\n @activeItemSubscription = atom.workspace.onDidChangeActivePaneItem (... | coffeescript | chosen |
[
{
"from": "system",
"value": "Call @stickit() at end of default View render if bindings available\n"
},
{
"from": "human",
"value": "Chaplin = require 'chaplin'\n\nmodule.exports = class BaseView extends Chaplin.View\n\n autoRender: true\n\n getTemplateFunction: -> @template\n\n delegateNewEv... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix bug in quick load url retry logic.\n"
},
{
"from": "human",
"value": "$(document).ready ->\n quick_add_url_button = $('#quick-add-url-button')\n input = $('#quick-add-url')\n status = quick_add_url_button\n\n quick_add_url_button.click ->\n status.text('S... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use bluebird only as polyfill\n"
},
{
"from": "human",
"value": "require './shim/phantomjs-bind'\n\nwindow.Promise = require 'bluebird'\nif process.env.NODE_ENV == 'development'\n Promise.longStackTraces()\n\nwindow.Rdb = require('rdb/index')\n"
},
{
"from"... | coffeescript | chosen |
[
{
"from": "system",
"value": "Update previews after a module is saved\n"
},
{
"from": "human",
"value": "class CMS.Views.ModuleEdit extends Backbone.View\n tagName: 'section'\n className: 'edit-pane'\n\n events:\n 'click .cancel': 'cancel'\n 'click .module-edit': 'editSubmodule'\n 'c... | coffeescript | chosen |
[
{
"from": "system",
"value": "Call atom.show() from a setTimeout()\n\nThe window was previously flashing white if atom.show() was called\ndirectly after window.startup()\n\nWrapping the call in a setTimeout with a zero delay seems to prevent\nthe white flash and the perceived amount of time to display the c... | coffeescript | chosen |
[
{
"from": "system",
"value": "Update for api changes yet again.\n"
},
{
"from": "human",
"value": "LINES_TO_JUMP = 10\n\ngetEditSession = ->\n atom.workspaceView.getActiveView()?.activeEditSession\n\nmodule.exports =\n activate: (state) ->\n atom.workspaceView.command 'line-jumper:move-up',... | coffeescript | chosen |
[
{
"from": "system",
"value": "Allow for single slash to be a delimiter\n"
},
{
"from": "human",
"value": "# The SplitStr component receives a string in the in port, splits it by\n# string specified in the delimiter port, and send each part as a separate\n# packet to the out port\n\nnoflo = requi... | coffeescript | chosen |
[
{
"from": "system",
"value": "Change the regex in such a way so that user's name is stripped automatically.\n\n- Thanks to @technicalpickles\n"
},
{
"from": "human",
"value": "# Description:\n# Rajinikanth is Chuck Norris of India, witness his awesomeness.\n#\n# Dependencies:\n# \"cheerio\":... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix pick into empty array.\n"
},
{
"from": "human",
"value": "{APLArray} = require '../array'\n\n@['⊃'] = (omega, alpha) ->\n if alpha\n\n # Pick (`⊃`)\n #\n # ⍬⊃3 <=> 3\n # 2⊃'PICK' <=> 'C'\n # 1 0⊃2 2⍴'ABCD' <=> 'C'\n # 1⊃'foo' ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Implement Kissmetrics' request signing and use context binding for static methods\n\nBased on https://github.com/kissmetrics/uri_signer but simplified to the actual use case\n"
},
{
"from": "human",
"value": "# # Kissmetrics Batch\n\nclass BatchKissmetricsClient\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add locale replace rule for \\!\n"
},
{
"from": "human",
"value": "\nthrough2 = require 'through2'\n\nparsePropertiesFile = (fileContent) ->\n out = {}\n lines = fileContent.split '\\n'\n for line in lines\n if match = line.match '([a-zA-Z0-9\\._-]+)[ ]?=[ ]?(... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix typo in fits viewer stub\n"
},
{
"from": "human",
"value": "BaseTool = window.Ubret.BaseTool or require('./base_tool')\n\nclass FitsViewer extends BaseTool\n constructor: \n"
},
{
"from": "gpt",
"value": "BaseTool = window.Ubret.BaseTool or require(... | coffeescript | chosen |
[
{
"from": "system",
"value": "Introduce javascript event to init form components\n\nThis is to allow these to be initialised both on a page load and also when forms are loaded inline using AJAX\n"
},
{
"from": "human",
"value": "# Enable any date choosers on page\njQuery ->\n $(\".date-chooser\... | coffeescript | chosen |
[
{
"from": "system",
"value": "Load the environment before express so our defaults are set correctly\n"
},
{
"from": "human",
"value": "#!node_modules/.bin/coffee\n\n###\n# server.coffee\n#\n# © 2014 Dan Nichols\n# See LICENSE for more details\n#\n# Our NodeJS server application. Nothing too spe... | coffeescript | chosen |
[
{
"from": "system",
"value": "Remove old prop _isInReplayMode left in by mistake\n"
},
{
"from": "human",
"value": "class Space.eventSourcing.Projection extends Space.Object\n\n @mixin Space.messaging.EventSubscribing\n\n collections: {}\n _isInReplayMode: false\n _state: null\n _queuedEven... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix bug in addition form\n"
},
{
"from": "human",
"value": "mid = new Date('02/25/14 00:00:00')\nTemplate.agenda.day1 = ->\n @items.filter((i) -> i.time < mid).sort((a, b) -> a.time >= b.time)\n\nTemplate.agenda.day2 = ->\n @items.filter((i) -> i.time > mid).sort(... | coffeescript | chosen |
[
{
"from": "system",
"value": "Support rendering children of test component\n"
},
{
"from": "human",
"value": "_ = require 'underscore'\nexpect = chai.expect\nReact = require 'react'\nReactAddons = require('react/addons')\nReactTestUtils = React.addons.TestUtils\n{Promise} = require 'es6-... | coffeescript | chosen |
[
{
"from": "system",
"value": "Remove tutorial and hide marks buttons\n"
},
{
"from": "human",
"value": "React = require 'react'\nFavourite = require './favourite'\n\nmodule.exports = React.createClass\n displayName: 'SubjectTools'\n \n render: ->\n <div className=\"drawing-controls\">\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Refactor browersync into its own function\n"
},
{
"from": "human",
"value": "gulp = require 'gulp'\nbrowserSync = require 'browser-sync'\nconfig = require './config.coffee'\nargv = require('yargs').argv\nnodemon = require 'gulp-nodemon'\n\ngulp.task 'api', ->\n nod... | coffeescript | chosen |
[
{
"from": "system",
"value": "Implement validating files from the CLI\n"
},
{
"from": "human",
"value": "parser = require 'nomnom'\n\nbraveMouse = require '../brave-mouse'\nbraveMousePackageJson = require '../../package.json'\n\nmodule.exports = (argv) ->\n\topts = parser\n\t.script 'brave-mouse... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix fake map on node edit page.\n"
},
{
"from": "human",
"value": "Wheelmap.FakeMapView = Ember.View.extend\n classNames: 'fake-map'\n attributeBindings: ['style']\n\n style: (()->\n location = @get('controller.location')\n\n unless location?\n return ... | coffeescript | chosen |
[
{
"from": "system",
"value": "UserViolationsPrefsCtrl: Refresh localstorage data on GET\n"
},
{
"from": "human",
"value": "'use strict'\n\nclass UserViolationsPrefsCtrl\n constructor: (@scope, @UserViolationsPrefsFcty, @growlNotifications, @localStorage) ->\n @getPrefs()\n @selectedFlag =... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add a comment about local storage\n"
},
{
"from": "human",
"value": "module.exports = {\n data: window.preload or {}\n tasks: {}\n\n init: (fn) ->\n fn.call(this)\n\n add: (obj) ->\n @tasks[key] = fn.bind(this) for key, fn of obj\n r... | coffeescript | chosen |
[
{
"from": "system",
"value": "Make Atom Linter less obtrusive\n"
},
{
"from": "human",
"value": "\"*\":\n core:\n disabledPackages: [\n \"archive-view\"\n \"background-tips\"\n \"deprecation-cop\"\n \"dev-live-reload\"\n \"welcome\"\n \"update-package-dependenci... | coffeescript | chosen |
[
{
"from": "system",
"value": "Remove cruft to show multiple voters\n"
},
{
"from": "human",
"value": "class OpinionatorsAvatarView extends Backbone.Marionette.Layout\n tagName: 'span'\n className: 'opinionators-avatar'\n template: 'opinionators/avatar'\n\n onRender: ->\n UserPopoverConten... | coffeescript | chosen |
[
{
"from": "system",
"value": ":new: Add a spec about lowercasing config values\n"
},
{
"from": "human",
"value": "describe 'Custom Element Base', ->\n registerCustomElement = require('../base.min.js')\n {getCustomElement} = require('./helper')\n\n it 'fires the events in order', ->\n lastR... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix category route to sync with new paging model"
},
{
"from": "human",
"value": "App.CategoriesShowRoute = Em.Route.extend\n model: (params) ->\n App.Category.find(params.id)\n setupController: (controller, model) ->\n @_super controller, model\n @contro... | coffeescript | chosen |
[
{
"from": "system",
"value": "Build tests from array of IDs\n"
},
{
"from": "human",
"value": "module \"localized\"\n\ntest \"local time\", ->\n assertLocalized \"one\"\n assertLocalized \"two\"\n\ntest \"local time in the past\", ->\n assertLocalized \"past\"\n\ntest \"local time in the futu... | coffeescript | chosen |
[
{
"from": "system",
"value": "Check that file exists before opening\n"
},
{
"from": "human",
"value": "path = require 'path'\nurl = require 'url'\n\n{allowUnsafeNewFunction} = require 'loophole'\narchive = allowUnsafeNewFunction -> require 'ls-archive'\n{File} = require 'pathwatcher'\nfs = requi... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use the recommended requestInterceptor, preFetch was deprecated.\n"
},
{
"from": "human",
"value": "//= require swagger-ui-dist\n\n$ ->\n\n options = $(\".swagger\").data(\"swagger-options\")\n\n ui = SwaggerUIBundle({\n url: options.api_docs_url,\n dom_id: ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Set priorities so it shows above other providers"
},
{
"from": "human",
"value": "{Range} = require('atom')\nfuzzaldrin = require('fuzzaldrin')\n\nmodule.exports =\nclass SnippetsProvider\n selector: '*'\n filterSuggestions: true\n\n constructor: ->\n @showIc... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix debounce on variant search dropdown\n\nThis wasn't applied correctly so there was zero debounce, leading to a big excess of pointless requests whilst typing in the variant search dropdown\n"
},
{
"from": "human",
"value": "angular.module(\"admin.utils\").directi... | coffeescript | chosen |
[
{
"from": "system",
"value": "Update text to match new wording\n"
},
{
"from": "human",
"value": "{Testing, expect, sinon, _, ReactTestUtils} = require 'shared/specs/helpers'\n\n{Coach} = require 'concept-coach/coach'\n{CCModal} = require 'concept-coach/modal'\n\ndescribe 'Coach wrapper compon... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix nested example path in test\n"
},
{
"from": "human",
"value": "assert = require 'assert'\nshould = require 'should'\npeg = require 'pegjs'\nfs = require 'fs'\nrequirejs = require('requirejs')\nrequirejs.config nodeRequire: require\nbrain = new (requirejs 'dist/l... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix legacy trial expired modal\n"
},
{
"from": "human",
"value": "shownToGroup = {}\nangular.module('loomioApp').factory 'LegacyTrialExpiredModal', (ModalService, AppConfig, AhoyService) ->\n\n appropriateToShow: (group, user) ->\n user.isAdminOf(group) and gro... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix country selection bug on address checkout step\n"
},
{
"from": "human",
"value": "window.MultiShippingAddress ||= {}\n$.extend(MultiShippingAddress, { SameAsBilling: {} })\n\nclass MultiShippingAddress.SameAsBilling.CopyBillToShip\n constructor: (@$form) ->\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "ENHANCE: Use task refresh on extension success\n"
},
{
"from": "human",
"value": "angular.module('doubtfire.projects.states.dashboard.directives.task-dashboard.directives.task-status-card', [])\n#\n# Status of the card\n#\n.directive('taskStatusCard', ->\n restrict... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix Bug With Reducing Qualities\n"
},
{
"from": "human",
"value": "class Quality\n constructor: (@id, @name, @description, @defaultValue,\n @defaultProgress, @maxProgress, @progressEscalation,\n @visible) ->\n Object.freeze @\n\n i... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add pdf-view to Atom package list\n"
},
{
"from": "human",
"value": "packages: [\n \"advanced-open-file\"\n \"atom-alignment\"\n \"atom-beautify\"\n \"atom-transpose\"\n \"change-case\"\n \"color-picker\"\n \"docblockr\"\n \"editorconfig\"\n \"emmet\"\n \"... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add toggle-quotes package to Atom\n"
},
{
"from": "human",
"value": "packages: [\n \"auto-indent\"\n \"git-blame\"\n \"git-diff-popup\"\n \"git-plus\"\n \"merge-conflicts\"\n \"package-sync\"\n \"ruby-test\"\n]\n"
},
{
"from": "gpt",
"value": "pac... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use jquery to send ajax request\n"
},
{
"from": "human",
"value": "Q = require 'q'\n\nclass NCN\n constructor: (@host = '') -> return\n request = (method, url, data) ->\n deferred = Q.defer()\n x = new XMLHttpRequest()\n x.responseType = 'json'\n x.add... | coffeescript | chosen |
[
{
"from": "system",
"value": "Allow error action to bubble if not a 403"
},
{
"from": "human",
"value": "`import BaseRoute from './_base'`\n`import ajax from 'ic-ajax'`\n\nRoute = BaseRoute.extend\n model: ->\n mePath = '/api/me'\n\n # return the current user as the model if authenticated... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add message for visitors from Flatterline.\n"
},
{
"from": "human",
"value": "resize = () ->\n screenWidth = $(window).width() + \"px\"\n screenHeight = $(window).height() + \"px\"\n\n $(\"#intro, #intro .item, #intro-video, #intro-video .item\").css\n width:... | coffeescript | chosen |
[
{
"from": "system",
"value": "Simplify by porting to Process API\n"
},
{
"from": "human",
"value": "noflo = require 'noflo'\n\nfindHandler = (actionParts, routes) ->\n normalized = routes.map (route) ->\n if route.indexOf('*') is -1\n # No wildcards here\n return route\n routePa... | coffeescript | chosen |
[
{
"from": "system",
"value": "Update campfire to work with the new request method\n"
},
{
"from": "human",
"value": "NotificationPlugin = require \"../../notification-plugin\"\n\nclass Campfire extends NotificationPlugin\n @receiveEvent: (config, event) ->\n # Build the message\n if event... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add Way to Enumerate Qualities\n\nThis is probably temporary.\n\nWhat I wouldn't give for an ES6 generator.\n"
},
{
"from": "human",
"value": "class Quality\n constructor: (@name, @description, @defaultValue, @defaultProgress, @maxProgress) ->\n\nangular.module 'qb... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add required activate method to avoid logging during specs"
},
{
"from": "human",
"value": "module.exports =\n configDefaults:\n numbers: { one: 1, two: 2 }\n"
},
{
"from": "gpt",
"value": "module.exports =\n configDefaults:\n numbers: { one: 1, ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix layout when extending RouteController\n\n- Not sure why this works\n"
},
{
"from": "human",
"value": "################################################################################\n# Client-side Config\n#\n\n\nVoltage =\n settings:\n defaultTemplate: 'vol... | coffeescript | chosen |
[
{
"from": "system",
"value": "Remove commented code from Gquery\n"
},
{
"from": "human",
"value": "class @Gquery extends Backbone.Model\n initialize : ->\n window.gqueries.add(this)\n @references = 1\n\n future_value: -> @get('future')\n present_value: -> @get 'present'\n\n safe_presen... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add test to pass through the message if min is not set\n"
},
{
"from": "human",
"value": "ReturnValue = require 'nanocyte-component-return-value'\nPassThroughIfLengthGreaterThanMin = require '../src/pass-through-if-length-greater-than-min'\n\ndescribe 'PassThroughIf... | coffeescript | chosen |
[
{
"from": "system",
"value": "Remove use of Function::bind in specs"
},
{
"from": "human",
"value": "describe \"Bacon.once\", ->\n describe \"should send single event and end\", ->\n expectStreamEvents(\n -> Bacon.once(\"pow\")\n [\"pow\"])\n describe \"accepts an Error event as p... | coffeescript | chosen |
[
{
"from": "system",
"value": "Put text in header links"
},
{
"from": "human",
"value": "Controller = require 'zooniverse/controllers/base-controller'\n\nclass SiteHeader extends Controller\n className: 'site-navigation'\n template: require './templates/site-header'\n elements:\n '.site-lin... | coffeescript | chosen |
[
{
"from": "system",
"value": "Move to native Javascript dates\n"
},
{
"from": "human",
"value": "Tasks = new Meteor.Collection(\"tasks\")\nLists = new Meteor.Collection(\"lists\")\nFolders = new Meteor.Collection(\"folders\")\n\nif Meteor.isClient\n Template.todos.tasks = ->\n Tasks.find()\n... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add notational-velocity and space-underscore to package list\n"
},
{
"from": "human",
"value": "'packages': [\n 'advanced-new-file'\n 'advanced-railscasts-syntax'\n 'atom-color-highlight'\n 'auto-copyright'\n 'autocomplete-paths'\n 'autocomplete-plus'\n 'auto... | coffeescript | chosen |
[
{
"from": "system",
"value": "Remove spine require in dashboard\n"
},
{
"from": "human",
"value": "Spine = require('spine')\n_ = require('underscore/underscore')\nToolWindow = require('controllers/ToolWindow')\n\nclass Dashboard extends Spine.Controller\n constructor: ->\n super\n\n el... | coffeescript | chosen |
[
{
"from": "system",
"value": "Allow display of up to 1000 pending invitations\n"
},
{
"from": "human",
"value": "angular.module('loomioApp').directive 'pendingInvitationsCard', ->\n scope: {group: '='}\n restrict: 'E'\n templateUrl: 'generated/components/memberships_page/pending_invitations_c... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use span instead of array for killing warning\n"
},
{
"from": "human",
"value": "remote = require 'remote'\nwindowManager = remote.require './lib/window'\n\nwindow.akashicRecordsWindow = null\ninitialAkashicRecordsWindow = ->\n window.akashicRecordsWindow = windowM... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix the isDev util function to work properly on prod\n"
},
{
"from": "human",
"value": "moment = require('lib/moment')\n\nexports.isDev = (req) ->\n # We are on DEV when Host has string like\n # '/dev.' or '/staging.' or '.local' or '.dev' or 'localhost'\n re ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Apply small fix to prevent error of \"sinceDate not found\""
},
{
"from": "human",
"value": "`import Ember from 'ember'`\n\nDateableMixin = Ember.Mixin.create\n # Method to check if something has happened in the last val*period\n inLast: (field, val, period) ->\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add Events for js methods\n"
},
{
"from": "human",
"value": "$ ->\n $(document).off 'click', 'form .remove_fields'\n $(document).off 'click', 'form .add_fields'\n \n $(document).on 'click', 'form .remove_fields', (event) ->\n $(this).prev('input[type=hidden]'... | coffeescript | chosen |
[
{
"from": "system",
"value": "Uninstall linter-jshint in favor of linter-eslint\n"
},
{
"from": "human",
"value": "packages: [\n \"advanced-open-file\"\n \"atom-alignment\"\n \"atom-handlebars\"\n \"auto-update-packages\"\n \"docblockr\"\n \"editorconfig\"\n \"emmet\"\n \"expand-region\"... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use fat arrow to access external context in CoffeeScript\n"
},
{
"from": "human",
"value": "Neighborly.Static ?= {}\n\nNeighborly.Static.Learn =\n init: Backbone.View.extend\n el: '.learn-page'\n\n initialize: ->\n $('.expand-section').click (event) ->\n... | coffeescript | chosen |
[
{
"from": "system",
"value": "Allow packages to provide multiple file-icon classes\n"
},
{
"from": "human",
"value": "{CompositeDisposable} = require 'event-kit'\nFileIcons = require './file-icons'\n\nmodule.exports =\nclass FileView extends HTMLElement\n initialize: (@file) ->\n @subscripti... | coffeescript | chosen |
[
{
"from": "system",
"value": "Test that tasks collection resets after logout\n"
},
{
"from": "human",
"value": "{Testing, expect, sinon, _} = require 'openstax-react-components/test/helpers'\n\n{TaskReview} = require 'task/review'\nCollection = require 'task/collection'\nTASK = require 'cc/tasks... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix name of okular viewer\n"
},
{
"from": "human",
"value": "BaseViewer = require './base-viewer'\n\nmodule.exports =\nclass SumatraViewer extends BaseViewer\n _getArgs = (opts = {}) ->\n args = [\"--unique\"]\n args.push \"--noraise\" if opts?.keepFocus\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Change schema registration so that ids will work\n"
},
{
"from": "human",
"value": "\ntv4 = require 'tv4'\nchai = require 'chai' if not chai\nyaml = require 'js-yaml'\n\npath = require 'path'\nfs = require 'fs'\n\ngetSchema = (name) ->\n filepath = path.join __dirn... | coffeescript | chosen |
[
{
"from": "system",
"value": "Teamwork: Send default size options and fix sharable terminal mode.\n"
},
{
"from": "human",
"value": "class SharableClientTerminalPane extends TerminalPane\n\n constructor: (options = {}, data) ->\n\n sessionOptions = options.sessionKey\n options.vmName ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Correct reference to carousel on experiments page\n"
},
{
"from": "human",
"value": "loggedOutNav = require '../../../components/logged_out_nav/client/index.coffee'\nslides = require './experiments.coffee'\n{ mountWithApolloProvider } = require '../../../react/apoll... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix static backend path route\n"
},
{
"from": "human",
"value": "CONFIG = require '../config'\nRequest = require 'superagent'\nmodule.exports = (app, done) ->\n\n\t# Swagger interface\n\tapp.get '/backend/:id*?', (req, res, next) ->\n\t\tRequest\n\t\t\t.get(\"#{CONF... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add run cell commands to menu\n"
},
{
"from": "human",
"value": "# See https://atom.io/docs/latest/hacking-atom-package-word-count#menus for more details\n# 'context-menu':\n# 'atom-text-editor': [\n# {\n# 'label': 'Toggle atom-repl'\n# 'command': ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add support for embedded coffeescript in vue\n\nCloses #50\n"
},
{
"from": "human",
"value": "configManager = require '../config-manager'\nresolve = require 'resolve'\npath = require 'path'\n\n# Check if there is a local coffee-script package, use ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Allow GH sync also for non-authenticated users\n"
},
{
"from": "human",
"value": "noflo = require 'noflo'\n\nexports.getComponent = ->\n c = new noflo.Component\n c.description = 'Get user token from action'\n c.icon = 'key'\n c.inPorts.add 'in',\n datatype: ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Change default theme to paperdark\n"
},
{
"from": "human",
"value": "poi:\n theme: \"papercyan\"\n layout: \"horizonal\"\n window:\n x: 60\n y: 60\n width: 1274\n height: 616\n webview:\n width: 800\n shortcut:\n bosskey: \"CmdOrCtrl+i\"\nprox... | coffeescript | chosen |
[
{
"from": "system",
"value": "Change order of params for easier access\n"
},
{
"from": "human",
"value": "class Locker\n constructor: () ->\n @is_locked = false\n\n try: (fun, args...) ->\n if @is_locked\n return\n\n @is_locked = true\n ret = fun args...\n @is_locked = fals... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use each instead of every for optionals\n\n_.every stops interation when one element fails to return something.\nThus, not all of the optionals would be put into the returned public\nobject. Same applies to the required object.\n"
},
{
"from": "human",
"value": "_ =... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use currentTarget and getAttribute for older browsers\n\n * #currentTarget gives the element that the event listener is attached to while #target could be something else.\n * Older browsers don't have #dataset implemented and #getAttribute should be used instead.\n"
},
{
... | coffeescript | chosen |
[
{
"from": "system",
"value": "Make hubot respond with bug info anytime anyone mentions a bug in irc, even if they don't mention hubot\n"
},
{
"from": "human",
"value": "# Description:\n# In which Hubot gives you bugzilla information\n#\n# Dependencies:\n# None\n#\n# Configuration:\n# None\... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix switch on wrong property\n"
},
{
"from": "human",
"value": "reloadStylesheets = ->\n queryString = '?reload=' + new Date().getTime();\n $('link[rel=\"stylesheet\"]').each ->\n @href = @href.replace(/\\?.*|$/, queryString);\n\nconnect = (opts={}) ->\n # if ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use the env for the room if available\n"
},
{
"from": "human",
"value": "Redis = require 'redis'\nUrl = require 'url'\n\nPOO_TRACKER_KEY = \"poops\"\nPOO_LATEST_KEY = \"poops:latest_message\"\n\ninfo = Url.parse process.env.POO_REDIS_URL or \"redis://localhost:6379/... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix missing key prop for redirect route handler\n"
},
{
"from": "human",
"value": "# Include CSS in page\nrequire('./catalog.scss')\n\n# Load App\n_ = require('lodash')\nReact = require('react')\n{Routes, Route, Redirect} = require('react-router')\nApp = require('./... | coffeescript | chosen |
[
{
"from": "system",
"value": "Clean up guards when no fibers are waiting."
},
{
"from": "human",
"value": "FiberUtils.synchronize = (guardObject, uniqueId, body, options={}) ->\n # Use the guard object to determine whether we have reentered.\n guards = guardObject._guards ?= {}\n guards[uniqu... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use key.full before key.name for bindings\n"
},
{
"from": "human",
"value": "_ = require 'lodash'\ndirection = require './direction'\n\nbindings = require '../key-bindings.json'\n\nmodule.exports = exports = (game) ->\n\tgame.on 'key.*', (ch, key) ->\n\t\taction = b... | coffeescript | chosen |
[
{
"from": "system",
"value": "Make CMD+Click or CTRL+Click work\n"
},
{
"from": "human",
"value": "@CodequestManager = do (Backbone, Marionette) ->\n Marionette.Renderer.oldRender = Marionette.Renderer.render\n Marionette.Renderer.render = (template, data) ->\n template = template() if type... | coffeescript | chosen |
[
{
"from": "system",
"value": "Clean up about page image loader\n"
},
{
"from": "human",
"value": "{Controller} = require 'spine'\ntemplate = require 'views/about_page'\n$ = require 'jqueryify'\n\nclass AboutPage extends Controller\n className: 'about-page content-page'\n\n events:\n 'click ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use isolated scope for directive\n"
},
{
"from": "human",
"value": "'use strict'\n\nIBAN = require 'iban'\n\nangular\n .module 'mm.iban', ['ng']\n .directive 'ngIban', ->\n restrict: 'A'\n require: 'ngModel'\n link: (scope, elem, attrs, ctrl) ->\n pa... | coffeescript | chosen |
[
{
"from": "system",
"value": "Update tests to test promise API as well.\n"
},
{
"from": "human",
"value": "should = require('chai').should()\nbundle = require '../lib/bundle'\n\ndescribe 'bundle', ->\n it 'should bundle all dependencies', (done) ->\n bundle\n entry: './fixtures/entry',\... | coffeescript | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.