conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Add keybinding for row and columns insertion commands\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": "Rename sitemap in content tree\n" }, { "from": "human", "value": "xml = require 'xml'\n\nmodule.exports = (env, callback) ->\n\n class Sitemap extends env.plugins.Page\n\n getFilename: ->\n 'sitemap.xml'\n\n getPages: (contents) ->\n pages = []\n ...
coffeescript
chosen
[ { "from": "system", "value": "Add deserializer property to serialized state\n" }, { "from": "human", "value": "path = require 'path'\nfs = require 'fs-plus'\n\n# Editor model for an image file\nmodule.exports =\nclass ImageEditor\n atom.deserializers.add(this)\n\n @deserialize: ({filePath}) ->...
coffeescript
chosen
[ { "from": "system", "value": "Fix undefined error on destroy\n" }, { "from": "human", "value": "HighlightedAreaView = require './highlighted-area-view'\n\nmodule.exports =\n config:\n onlyHighlightWholeWords:\n type: 'boolean'\n default: false\n hideHighlightOnSelectedWord:\n ...
coffeescript
chosen
[ { "from": "system", "value": "Add initial cache lookup method\n" }, { "from": "human", "value": "Module = require 'module'\nfs = require 'fs-plus'\n\noriginalResolveFilename = Module._resolveFilename\n\n# Precompute versions of all modules in node_modules\n# Precompute the version each file is c...
coffeescript
chosen
[ { "from": "system", "value": "Hide \"advancedMode\" option and assume it as always true\n" }, { "from": "human", "value": "FormView = require './form-view'\nConfiguration = require './configuration.coffee'\n\nclass ConfigurationFormView extends FormView\n\n initialize: ->\n super\n\n @add...
coffeescript
chosen
[ { "from": "system", "value": "Add double click fix to last commit\n" }, { "from": "human", "value": "initMobileMenu = ->\n\n $body = $('body')\n $inputQuery = $(\"#search_form_query\")\n $homeTemplate = $(\"body.template--pages-home\").length\n $inputLocationContainer = $(\".search_form_sear...
coffeescript
chosen
[ { "from": "system", "value": "Load / run scripts synchronously\n" }, { "from": "human", "value": "fs = require \"fs\"\npath = require \"path\"\n\nmodule.exports = (robot, scripts) ->\n scriptsPath = path.resolve(__dirname, \"src\")\n fs.exists scriptsPath, (exists) ->\n if exists\n ...
coffeescript
chosen
[ { "from": "system", "value": "Stop doing hard stuff on every request\n" }, { "from": "human", "value": "_ = require('underscore')\n\nhttpVerbWhitelist = ['GET']\n\nmodule.exports = (req, res, next) ->\n if process.env.NODE_ENV is 'production'\n httpVerbWhitelist = []\n\n return next() if /^...
coffeescript
chosen
[ { "from": "system", "value": "Update deprecated selectors in keymap\n" }, { "from": "human", "value": "'.platform-darwin, .platform-win32, .platform-linux':\n 'ctrl-g': 'go-to-line:toggle'\n\n'.go-to-line .mini.editor input':\n 'enter': 'core:confirm',\n 'escape': 'core:cancel'\n\n'.platform-...
coffeescript
chosen
[ { "from": "system", "value": "Fix routing of recent activity links\n" }, { "from": "human", "value": "React = require 'react'\nReactRouter = require 'react-router'\nRouter = ReactRouter.Router\nLink = ReactRouter.Link\n\nDidYouKnowHandler = require './did_you_know_handler'\...
coffeescript
chosen
[ { "from": "system", "value": "Test history api with coffee\n" }, { "from": "human", "value": "# $(document).ready ->\n\n# \tbody = $('html, body')\n# \tanchorClick = (link) ->\n# \t\tlinkSplit = link.split('/').pop()\n# \t\t$.get 'pages/' + linkSplit, (data) ->\n# \t\t\t$('#content').html data\n...
coffeescript
chosen
[ { "from": "system", "value": "Disable github package bundled with atom since 1.18.0\n\nNo, thank you @atom.\n" }, { "from": "human", "value": "\"*\":\n core:\n audioBeep: false\n closeEmptyWindows: false\n disabledPackages: [\n \"language-clojure\"\n \"language-go\"\n \"...
coffeescript
chosen
[ { "from": "system", "value": "Fix error message upon page load failure.\n" }, { "from": "human", "value": "async = require \"async\"\n{assign} = require \"lodash\"\n\nclass PhantomTask\n\t\n\tconstructor: (options) ->\n\t\t@jobs = []\n\t\t@scripts = []\n\t\t@options = assign {}, options\n\t\t@pa...
coffeescript
chosen
[ { "from": "system", "value": "Optimize performance by reducing amount of DB requests\n" }, { "from": "human", "value": "if Meteor.isServer\n @Sessions = new Meteor.Collection(\"session_timeouts\")\n Meteor.methods( {\n session_heartbeat: ->\n user_id = Meteor.userId()\n ...
coffeescript
chosen
[ { "from": "system", "value": "Fix initialization of empty selects.\n" }, { "from": "human", "value": "`import Em from \"vendor/ember\"`\n\nComponent = Em.Component.extend\n initializeValue: Em.on \"init\", ->\n prompt = @get \"content.prompt\"\n if prompt\n options = ...
coffeescript
chosen
[ { "from": "system", "value": "ProxifyUrl: Use {prod, dev}tunnel for tunnelled kites\n" }, { "from": "human", "value": "globals = require 'globals'\n\nmodule.exports = (url) ->\n\n return url if globals.config.environment is 'dev'\n return url if /p.koding.com/.test url\n\n # let's use DOM f...
coffeescript
chosen
[ { "from": "system", "value": "Allow user to specify port\n" }, { "from": "human", "value": "#!/usr/bin/env coffee\n\nexpress = require 'express'\npath = require 'path'\nfavicon = require 'serve-favicon'\nlogger = require 'morgan'\nmethodOverride = require 'method-...
coffeescript
chosen
[ { "from": "system", "value": "Use destructuring assignment as ReactBoostrap doesn't expose modules directly anymore\n" }, { "from": "human", "value": "###* @jsx React.DOM ###\n\nReact = require('react/addons')\nParserMixin = require './mixins/Parser'\nDisableOnSubmitMixin = require('../controls/...
coffeescript
chosen
[ { "from": "system", "value": "Move loginDialog into own creation function\n" }, { "from": "human", "value": "class Lanes.Access.Extension extends Lanes.Extensions.Base\n\n identifier: \"lanes-access\"\n\n setBootstrapData: (data)->\n Lanes.current_user = new Lanes.Models.User\n\n ...
coffeescript
chosen
[ { "from": "system", "value": "Rename the homepage param to simple for clarity" }, { "from": "human", "value": "counterpart = require 'counterpart'\nReact = require 'react'\nTitleMixin = require '../lib/title-mixin'\napiClient = require '../api/client'\nOwnedCardList = require '../components/owne...
coffeescript
chosen
[ { "from": "system", "value": "Call getPath on Editor instead of EditorView\n" }, { "from": "human", "value": "{_, $, View} = require 'atom'\n\nmodule.exports =\nclass WrapGuideView extends View\n @activate: ->\n atom.workspaceView.eachEditorView (editorView) ->\n if editorView.attached ...
coffeescript
chosen
[ { "from": "system", "value": "Add bowercopy task for pages\n" }, { "from": "human", "value": "module.exports = (grunt) ->\n\n require('time-grunt')(grunt)\n\n require('load-grunt-config')(grunt)\n\n grunt.registerTask 'default', ['clean', 'amd_tamer', 'uglify']\n \n grunt.registerTask 'test...
coffeescript
chosen
[ { "from": "system", "value": "Add method on ActionCreator to generate a request id\n" }, { "from": "human", "value": "dispatcher = require './dispatcher'\ninvariant = require './invariant'\nAction = require './action'\n\n_id = 0\n\nclass ActionInstance\n\n\tconstructor: (@type, @payload) ->\n\t\...
coffeescript
chosen
[ { "from": "system", "value": "Enable only in dev mode\n" }, { "from": "human", "value": "{$} = require 'atom'\nUIWatcher = require './ui-watcher'\n\nmodule.exports =\n activate: (state) ->\n uiWatcher = null\n\n # HACK: I need an actvation event when the ui or packages are all loaded.\n ...
coffeescript
chosen
[ { "from": "system", "value": "Add snippet for Magento getChildHtml method\n" }, { "from": "human", "value": "# Your snippets\n#\n# Atom snippets allow you to enter a simple prefix in the editor and hit tab to\n# expand the prefix into a larger code block with templated values.\n#\n# You can crea...
coffeescript
chosen
[ { "from": "system", "value": "Implement a queuing system to avoid quadratic pipe reading time in node IPC.\n" }, { "from": "human", "value": "idCounter = 0\n\nmodule.exports =\nclass SpellCheckTask\n @handler: null\n @callbacksById: {}\n\n constructor: (@task) ->\n @id = idCounter++\n\n t...
coffeescript
chosen
[ { "from": "system", "value": "Fix 'undefined is not a function' error\n" }, { "from": "human", "value": "passport = require 'passport'\n\nexports.logInFirst = (req, res, next) ->\n if req.isAuthenticated()\n next()\n else\n res.redirect \"/auth/login?next=#{req.path}\"\n\nexports.storeNe...
coffeescript
chosen
[ { "from": "system", "value": "Change websocket trigger to turbolinks:load; debugging\n" }, { "from": "human", "value": "is_page_visible = true\nnum_unseen_posts = 0\n\n$(document).on 'page:change', ->\n if location.pathname == '/posts'\n App.posts = App.cable.subscriptions.create \"PostsChan...
coffeescript
chosen
[ { "from": "system", "value": "Set ArticleList as default route.\n" }, { "from": "human", "value": "React = require 'react'\nRouter = require 'react-router'\n\nArticleList = require './views/article-list.cjsx'\n\nDefaultRoute = Router.DefaultRoute\nRoute = Router.Route\nRouteHandler = Router.Rout...
coffeescript
chosen
[ { "from": "system", "value": "Add error handling for stat server request" }, { "from": "human", "value": "# Config and Start SyncedCron\nlogger = new Logger 'SyncedCron'\n\nSyncedCron.config\n\tlogger: (opts) ->\n\t\tlogger[opts.level].call(logger, opts.message)\n\tcollectionName: 'rocketchat_cr...
coffeescript
chosen
[ { "from": "system", "value": "Use fat arrow for callbacks\n" }, { "from": "human", "value": "url = require 'url'\n{$$} = require 'space-pen'\nScrollView = require 'scroll-view'\nBuddyView = require './buddy-view'\n\nmodule.exports =\nclass BuddyList extends ScrollView\n @content: ->\n @div c...
coffeescript
chosen
[ { "from": "system", "value": "Convert segments and their text to words in the PPT slides\n" }, { "from": "human", "value": "window.StrutBuilder ||= {}\n\n# [\n# { #slide 1\n# start: 0,\n# end: 2.5,\n# texts: [\n# {text: 'Hum', position: 1.2},\n# {text: 'be...
coffeescript
chosen
[ { "from": "system", "value": "Set cache headers for statics\n" }, { "from": "human", "value": "express = require 'express'\ncompress = require 'compression'\nhbs = require 'hbs'\n\nconfig = require '../config'\npassport = require '../lib/auth'\nUser = require '../models/user'\n\nmodule.exports =...
coffeescript
chosen
[ { "from": "system", "value": "Remove time from problem alert message\n" }, { "from": "human", "value": "CocoView = require 'views/kinds/CocoView'\ntemplate = require 'templates/play/level/tome/problem_alert'\n{me} = require 'lib/auth'\n\nmodule.exports = class ProblemAlertView extends CocoView\n...
coffeescript
chosen
[ { "from": "system", "value": "Fix JS translations not be object but string\n" }, { "from": "human", "value": "@RailsAdmin ||= {}\n@RailsAdmin.I18n = class Locale\n @init: (@locale, @translations)->\n moment.locale(@locale)\n\n @t:(key) ->\n humanize = key.charAt(0).toUpperCase() + key.re...
coffeescript
chosen
[ { "from": "system", "value": "Add initial createdAt date when saving comment.\n\nNull dates sort differently than real ones.\n" }, { "from": "human", "value": "ETahi.MessageOverlayController = ETahi.TaskController.extend ETahi.ControllerParticipants,\n newCommentBody: \"\"\n\n message: true\n\...
coffeescript
chosen
[ { "from": "system", "value": "Reorganize specs by public method.\n" }, { "from": "human", "value": "describe 'HashParams', ->\n describe 'given foreground and background', ->\n params = null\n beforeEach ->\n params = new HashParams(\n new HashParams.sc...
coffeescript
chosen
[ { "from": "system", "value": "Fix require in binary test for coffeescript" }, { "from": "human", "value": "Binary = require('./example');\n\ndescribe 'binary', ->\n\n it '1 is decimal 1', ->\n expect(1).toEqual new Binary('1').toDecimal()\n\n xit '10 is decimal 2', ->\n expect(2).toEqual...
coffeescript
chosen
[ { "from": "system", "value": "Add wait time for scrolling to annotations on hover\n" }, { "from": "human", "value": "Template.incidentTable.events\n 'mouseover .incident-table tbody tr': (event, instance) ->\n if not instance.data.scrollToAnnotations\n return\n $annotation = $(\"span...
coffeescript
chosen
[ { "from": "system", "value": "Throw error if format option is not string\n\nThrows InvalidResponseFormatSuppliedError if the supplied format option\nis not a string of either 'json' or 'xml'\n" }, { "from": "human", "value": "\n_ = require 'lodash'\ntypeOf = require 'type-of'\n\nerr = require '....
coffeescript
chosen
[ { "from": "system", "value": "Remove invariant check for callbacks on controlled components\n\nI don’t remember why I added this. React’s form components don’t do\nthis /:\n" }, { "from": "human", "value": "# react-controllables\n# ===================\n\ninvariant = require 'react/lib/invariant'...
coffeescript
chosen
[ { "from": "system", "value": "Modify dialogs when waiting for secure screen validation\n" }, { "from": "human", "value": "class @WalletSendPreparingDialogViewController extends @DialogViewController\n\n view:\n spinnerContainer: '#spinner_container'\n\n onAfterRender: ->\n super\n @vi...
coffeescript
chosen
[ { "from": "system", "value": "Add the same test for Linter validation.\n" }, { "from": "human", "value": "Helpers = require '../lib/helpers'\n\ndescribe \"The Results Validation Helper\", ->\n it \"should throw an exception when nothing is passed.\", ->\n expect( -> Helpers.validateResults()...
coffeescript
chosen
[ { "from": "system", "value": "Add alive ivar to light Model\n" }, { "from": "human", "value": "Grim = require 'grim'\nif Grim.includeDeprecations\n module.exports = require('theorist').Model\n return\n\nPropertyAccessors = require 'property-accessors'\n\nnextInstanceId = 1\n\nmodule.exports =\...
coffeescript
chosen
[ { "from": "system", "value": "Use new bulk spell-checking method in task handler\n" }, { "from": "human", "value": "SpellChecker = require 'spellchecker'\n\nwordRegex = /(?:^|[\\s\\[\\]\"'])([a-zA-Z]+([a-zA-Z']+[a-zA-Z])?)(?=[\\s\\.\\[\\]:,\"']|$)/g\n\nmodule.exports = ({id, text}) ->\n row = 0...
coffeescript
chosen
[ { "from": "system", "value": "Refactor of most of the math library pulling components out\n" }, { "from": "human", "value": "# a number of jasmine-jquery helpers / extensions\n# it totally used to do this natively, but now doesn't...\n\njasmine.getFixtures().findContainer = ->\n $(document.body...
coffeescript
chosen
[ { "from": "system", "value": "Clear undo stack of the demo after creation\n" }, { "from": "human", "value": "\nmodule.exports =\n\n config:\n undefinedDisplay:\n type: 'string'\n default: ''\n\n activate: (state) ->\n atom.workspaceView.command 'table-edit:demo', => @openDemo()...
coffeescript
chosen
[ { "from": "system", "value": "Update language select class name\n" }, { "from": "human", "value": "define (require) ->\n settings = require('settings')\n FooterTabView = require('cs!../inherits/tab/tab')\n template = require('hbs!./metadata-template')\n require('less!./metadata')\n\n return...
coffeescript
chosen
[ { "from": "system", "value": "Handle the error when the coverage report is not generated\n" }, { "from": "human", "value": "{Range} = require 'atom'\n_ = require 'underscore-plus'\nfs = require 'fs-plus'\n\nmodule.exports =\nclass GocovParser\n constructor: (dispatch) ->\n @dispatch = dispat...
coffeescript
chosen
[ { "from": "system", "value": "Disable hawk auth for now\n" }, { "from": "human", "value": "express = require 'express'\npassport = require 'passport'\n_ = require 'underscore'\nauthentication = require './authentication'\ninfo = require './package'\nhttp = require 'http'\n\nrequire 'express-name...
coffeescript
chosen
[ { "from": "system", "value": "Use color 0 as default fg color\n" }, { "from": "human", "value": "class AsciiIo.Brush\n @cache: {}\n\n @clearCache: ->\n @cache = {}\n\n @hash: (brush) ->\n \"#{brush.fg}_#{brush.bg}_#{brush.bright}_#{brush.underline}_#{brush.italic}_#{brush.blink}\"\n\n ...
coffeescript
chosen
[ { "from": "system", "value": "Use $http for file upload\n" }, { "from": "human", "value": "@app.factory 'fileUpload', [\n '$q', '$rootScope', '$http', 'formData',\n ($q, $rootScope, $http, formData) ->\n\n fileUpload = (options) ->\n xhr = null\n deferred = $q.defer()\n\n ...
coffeescript
chosen
[ { "from": "system", "value": "Change default value for validateOnSave\n" }, { "from": "human", "value": "validator = require \"./validator\"\n\nmodule.exports = HtmlValidation =\n config:\n validateOnSave:\n type: \"boolean\"\n default: no\n title: \"Va...
coffeescript
chosen
[ { "from": "system", "value": "Adjust row counter to also work with bigger chunks.\n" }, { "from": "human", "value": "_ = require 'underscore'\n__ = require 'highland'\nfs = require 'fs'\ncsv = require 'csv'\ntransform = require 'stream-transform'\nImportMapping = require './importmapping'\nStrea...
coffeescript
chosen
[ { "from": "system", "value": ":new: Use new helper method for generating range\n" }, { "from": "human", "value": "{CompositeDisposable} = require 'atom'\n\nmodule.exports =\n config:\n executablePath:\n type: 'string'\n title: 'PHP Executable Path'\n default: 'php' # Let OS's ...
coffeescript
chosen
[ { "from": "system", "value": "Add selector generation to Product Component\n" }, { "from": "human", "value": "class ProductComponent\n\tbindProductEvent: (name, handler, productIdIndex = 0) =>\n\t\t$(window).on name, (evt, args...) =>\n\t\t\treturn unless @productId is args[productIdIndex]\n\t\t...
coffeescript
chosen
[ { "from": "system", "value": "Comment imports for broken backend libs on Travis\n\nAddress #709\n\nLibraries commented out are broken on Travis CI so can't use them\n" }, { "from": "human", "value": "---\n---\n\ndl = require('datalib')\nevalexpr = require('expr-eval')\n\n{% include coffee/essent...
coffeescript
chosen
[ { "from": "system", "value": "Add three more pending tests.\n" }, { "from": "human", "value": "describe 'Pending', ->\n it 'Should test skipHeader option'\n it 'Should test initWith option'\n it 'Should embed plain JS files'\n it 'Should allow setting the source path'\n" }, { ...
coffeescript
chosen
[ { "from": "system", "value": "Remove expected block comment from test\n" }, { "from": "human", "value": "editorModule \"Installation process\", template: \"editor_html\"\n\neditorTest \"element.editorController\", ->\n ok getEditorController() instanceof Trix.EditorController\n\neditorTest \"cr...
coffeescript
chosen
[ { "from": "system", "value": "Add tables to CKEditor toolbar\n\nWe want the editor to support tables.\n" }, { "from": "human", "value": "window.Tahi = {}\nTahi.papers =\n init: ->\n $('#add_author').on 'click', (e) ->\n e.preventDefault()\n $('<li class=\"author\">').appendTo $('ul...
coffeescript
chosen
[ { "from": "system", "value": "Send e-mail on first username set\n" }, { "from": "human", "value": "RocketChat.setUsername = (user, username) ->\n\tusername = s.trim username\n\tif not user or not username\n\t\treturn false\n\n\tif not /^[0-9a-zA-Z-_.]+$/.test username\n\t\treturn false\n\n\t# Us...
coffeescript
chosen
[ { "from": "system", "value": "Change to process.exit(1) to restart server\n" }, { "from": "human", "value": "Meteor.methods\n\trestart_server: ->\n\t\tif not Meteor.userId()\n\t\t\tthrow new Meteor.Error 'invalid-user', \"[methods] restart_server -> Invalid user\"\n\n\t\tunless RocketChat.authz....
coffeescript
chosen
[ { "from": "system", "value": "Add WAI/ARIA states for filter accordeon\n" }, { "from": "human", "value": "# @todo: build main switch/accordeon for filter-form\n\ninitFilterForm = ->\n\n filterExpand = ->\n\n $filterForm = $('.filter-form')\n startHeight = $('.col-form-inner:first').find('...
coffeescript
chosen
[ { "from": "system", "value": "Put versions in to generated attribute names, indent generated code\n" }, { "from": "human", "value": "#!/usr/bin/env coffee\nhttp = require 'http'\nutil = require 'util'\ncrypto = require 'crypto'\n\nname = process.argv[2]\n\nversion = process.argv[3] ? \"latest\"\...
coffeescript
chosen
[ { "from": "system", "value": "Update status finder keybinding to meta-B\n" }, { "from": "human", "value": "'body':\n 'meta-t': 'fuzzy-finder:toggle-file-finder'\n 'meta-b': 'fuzzy-finder:toggle-buffer-finder'\n 'ctrl-.': 'fuzzy-finder:find-under-cursor'\n 'meta-T': 'fuzzy-finder:toggle-git-s...
coffeescript
chosen
[ { "from": "system", "value": "Add some more hashing functions\n" }, { "from": "human", "value": "module.exports = class\n @_addition: (a, b) -> (a + b)\n @_multiplication: (a, b) -> (a * b)\n\n @sum: (array) =>\n array.reduce(@_addition, 0)\n\n @product: (array) =>\n array.reduce(@_mul...
coffeescript
chosen
[ { "from": "system", "value": "Use newBody for attaching portals\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\nimport * as React f...
coffeescript
chosen
[ { "from": "system", "value": "Create divs for each section\"\n" }, { "from": "human", "value": "# Preamble\n_.mixin(_.str.exports())\n#rx = require('../../reactive-coffee/src/reactive')\nrx = require 'reactive-coffee'\n\n# Dependencies\n\n{my} = require('./my')\n{god} = require('./god')\n{confi...
coffeescript
chosen
[ { "from": "system", "value": "Fix forgotten renaming in spec\n" }, { "from": "human", "value": "Lint = require '../lib/lint'\n\n# Use the command `window:run-package-specs` (cmd-alt-ctrl-p) to run specs.\n#\n# To run a specific `it` or `describe` block add an `f` to the front (e.g. `fit`\n# or `...
coffeescript
chosen
[ { "from": "system", "value": "Update when impact changes and hide ones without impact\n" }, { "from": "human", "value": "class TopFactEvidenceLayoutView extends Backbone.Marionette.Layout\n template: 'evidence/top_fact_evidence_layout'\n\n regions:\n contentRegion: '.js-content-region'\n\n ...
coffeescript
chosen
[ { "from": "system", "value": "Remove unused service dependency from assetDisplay\n" }, { "from": "human", "value": "'use strict'\n\napp.directive 'assetDisplay', [\n 'constantService', '$timeout',\n (constants, $timeout) ->\n restrict: 'E'\n templateUrl: 'asset/display.html'\n scope:\...
coffeescript
chosen
[ { "from": "system", "value": "Add defaults to File client model\n" }, { "from": "human", "value": "Model = require 'lib/model'\n\nmodule.exports = class Template extends Model\n urlRoot: '/api/templates'\n idAttribute: 'filename'\n" }, { "from": "gpt", "value": "Model = require 'li...
coffeescript
chosen
[ { "from": "system", "value": "Use _.remove to remove windows from atom.windows array" }, { "from": "human", "value": "Keymap = require 'keymap'\n$ = require 'jquery'\n_ = require 'underscore'\n\nmodule.exports =\nclass App\n keymap: null\n windows: null\n tabText: null\n\n constructor: (@loa...
coffeescript
chosen
[ { "from": "system", "value": "Store a global reference to File-Icons package\n" }, { "from": "human", "value": "# I love this program.\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 ...
coffeescript
chosen
[ { "from": "system", "value": "Revert \"adding in footer tests\"\n\nThis reverts commit 1fb940d58d5d73703317828d3ec70b2fb5af6813.\n" }, { "from": "human", "value": "{expect} = require 'chai'\n\n# For some reason, this navbar component test will have warnings about setting\n# state when component ...
coffeescript
chosen
[ { "from": "system", "value": " ActionCable: Fix missing time formatting on receiving update\n" }, { "from": "human", "value": "$(document).on 'turbolinks:load', ->\n page_id = $('.content').data('page-id')\n\n if page_id\n App.updates = App.cable.subscriptions.create { channel: \"PageUpdate...
coffeescript
chosen
[ { "from": "system", "value": "Format Validator: Throw exception if regexp is invalid.\n" }, { "from": "human", "value": "Q = require 'q'\nv = require 'validator'\nm = require '../messages'\nu = require '../utils'\n\nexports.format = (model, property, options) ->\n d = Q.defer()\n if option...
coffeescript
chosen
[ { "from": "system", "value": "Remove Change Encoding from mini editors\n" }, { "from": "human", "value": "'menu': [\n 'label': 'Edit'\n 'submenu': [\n 'label': 'Select Encoding'\n 'command': 'encoding-selector:show'\n ]\n]\n\n'context-menu':\n 'atom-text-editor': [\n 'label': 'Chang...
coffeescript
chosen
[ { "from": "system", "value": "Fix bug to use correct constructor\n" }, { "from": "human", "value": "# Tub class\nYAML = require 'yamljs'\nclass TubConfig\n constructor: (tub, appdir, yml) ->\n # body...\n @dir = appdir\n @tub = tub\n @file = \"#{@dir}/.jakhu/#{@tub}tub_config.yml\"\...
coffeescript
chosen
[ { "from": "system", "value": "Use simpler method for retrieving the requested query ID\n" }, { "from": "human", "value": "define [\n 'underscore'\n 'marionette'\n '../core'\n 'tpl!templates/query/loader.html'\n], (_, Marionette, c, templates...) ->\n\n templates = _.object ['loade...
coffeescript
chosen
[ { "from": "system", "value": "Make watch monitor for svg changes too\n" }, { "from": "human", "value": "module.exports = (grunt) ->\n \n # Task definitions\n grunt.initConfig({\n \n less:\n dist:\n files:\n \"playing-cards.css\": \"playing-cards.l...
coffeescript
chosen
[ { "from": "system", "value": "Monitor event loop by looking for skew\n\nIf we monitor with setImmediate, we miss big blocking loops. For example,\nsuppose we have 1000 1ms loops then a single bad 1000ms loop. setImmediate\nwill only be called at the right time 1/1000 of the time (it has to be the\nloop just...
coffeescript
chosen
[ { "from": "system", "value": "Read JSON environment file into KONFIG_JSON environment variable\n\nSigned-off-by: Sonmez Kartal <d2d15c3d37396a5f2a09f8b42cf5f27d43a3fbde@koding.com>\n" }, { "from": "human", "value": "traverse = require 'traverse'\n\nmodule.exports.create = (KONFIG, options = {})...
coffeescript
chosen
[ { "from": "system", "value": "Add back directory class to directory view\n" }, { "from": "human", "value": "{View} = require 'space-pen'\nFileView = require './file-view'\n\nmodule.exports =\nclass DirectoryView extends View\n @content: (archivePath, entry) ->\n @li class: 'list-nested-item ...
coffeescript
chosen
[ { "from": "system", "value": "Remove unnecessary method check for token auth\n\nSince we're not using express-resource for uses anymore, we can just\napply the token auth middleware directly to the routes we want\n" }, { "from": "human", "value": "authenticateToken = (token) ->\n env_token = pr...
coffeescript
chosen
[ { "from": "system", "value": "Change gist user to JumpeiArashi-blog\n" }, { "from": "human", "value": "'use strict'\n\n###*\n # @ngdoc overview\n # @name blogarashikecomApp\n # @description\n # # blogarashikecomApp\n #\n # Main module of the application.\n###\nangular\n .module 'arashike-blog',...
coffeescript
chosen
[ { "from": "system", "value": "Define shared machine user add method\n" }, { "from": "human", "value": "bongo = require 'bongo'\n\n{secure} = bongo\n\nJMachine = require './computeproviders/machine'\n\n\nmodule.exports = class SharedMachine extends bongo.Base\n\n @share()\n\n setUsers = (client...
coffeescript
chosen
[ { "from": "system", "value": "VariablesEditorView: Update yaml content with information.\n" }, { "from": "human", "value": "BaseStackEditorView = require './basestackeditorview'\n\nmodule.exports = class VariablesEditorView extends BaseStackEditorView\n\n constructor: (options = {}, data) ->\n\...
coffeescript
chosen
[ { "from": "system", "value": "Make namespace optional in log factory\n" }, { "from": "human", "value": "class LoggerFactory\r\n\r\n instance = null\r\n @get: ->\r\n instance ?= new LoggerFactory\r\n\r\n createLogger: (namespace, defaultLevel = 'info')->\r\n log.debug 'LoggerFactory.crea...
coffeescript
chosen
[ { "from": "system", "value": "Resolve keybinding conflict with joining lines\n" }, { "from": "human", "value": "'.editor':\n 'meta-j': 'symbols-view:toggle-file-symbols'\n 'meta-.': 'symbols-view:go-to-declaration'\n\n'body':\n 'meta-J': 'symbols-view:toggle-project-symbols'\n" }, { "...
coffeescript
chosen
[ { "from": "system", "value": "Convert urls from /content to /contents\n" }, { "from": "human", "value": "define (require) ->\n settings = require('cs!settings')\n BaseView = require('cs!helpers/backbone/views/base')\n template = require('hbs!./latest-template')\n require('less!./latest')\n\n...
coffeescript
chosen
[ { "from": "system", "value": "Include version numbers in ToC links\n" }, { "from": "human", "value": "define (require) ->\n $ = require('jquery')\n router = require('cs!router')\n analytics = require('cs!helpers/handlers/analytics')\n BaseView = require('cs!helpers/backbone/views/base')\n t...
coffeescript
chosen
[ { "from": "system", "value": "Add turn off air filter\n" }, { "from": "human", "value": "CronJob = require('cron').CronJob\n\nmodule.exports = (robot) ->\n jobList = [\n { time: '30 10 * * 1-5', msg: '@channel Tea Time!' }\n { time: '00 17 * * 5', msg: '@channel Beer & Pokdeng Time!' }\n ...
coffeescript
chosen
[ { "from": "system", "value": "Increase timeouts to decrease server resources consumption\n" }, { "from": "human", "value": "if Meteor.isServer\n @Sessions = new Meteor.Collection(\"session_timeouts\")\n Meteor.methods( {\n session_heartbeat: ->\n user_id = Meteor.userId()\n ...
coffeescript
chosen
[ { "from": "system", "value": "Add in null check for user when getting hue in chat\n" }, { "from": "human", "value": "define [\n\t\"base\"\n\t\"ide/colors/ColorManager\"\n], (App, ColorManager) ->\n\tApp.controller \"ChatMessageController\", [\"$scope\", \"ide\", ($scope, ide) ->\n\t\t$scope.hue ...
coffeescript
chosen
[ { "from": "system", "value": "Upgrade stage hunk file view\n" }, { "from": "human", "value": "{$$, BufferedProcess, SelectListView} = require 'atom'\nSelectStageHunks = require './select-stage-hunks-view'\ngit = require '../git'\n\nmodule.exports =\nclass SelectStageHunkFile extends SelectListVi...
coffeescript
chosen
[ { "from": "system", "value": "Add change log entry for 2.0.1\n" }, { "from": "human", "value": "# The changelog not only lists the significant changes in the interface,\n# but provides a mechanism to hook into the tour or display a help menu.\n# The changelog is an array of _version_ objects. Ea...
coffeescript
chosen
[ { "from": "system", "value": "Add font face, bold/italic randomization\n" }, { "from": "human", "value": "window.StrutBuilder ||= {}\n\nStrutBuilder.Textbox = {}\n\nStrutBuilder.Textbox.build = (data, i) ->\n {\n TextBox: {}, \n x: 341,\n y: 65 * (i+1),\n scale: {\"x\":1, \"y\":1},\...
coffeescript
chosen
[ { "from": "system", "value": "Move Bower Dependencies Out of scripts/\n\nSince they're not all scripts.\n" }, { "from": "human", "value": "gulp = require 'gulp'\ndel = require 'del'\nhaml = require 'gulp-haml'\nsourcemaps = require 'gulp-sourcemaps'\ncoffee = require 'gulp...
coffeescript
chosen