conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Set the queue object to a top level property of the batch instance\n" }, { "from": "human", "value": "# # Kissmetrics Batch\n\nclass BatchKissmetricsClient\n @HOST: 'api.kissmetrics.com'\n @HTTP_METHOD: 'POST'\n\n constructor: (@options) ->\n @_validate_queue ...
coffeescript
chosen
[ { "from": "system", "value": "Update SockJS-client to 0.3.4 stable\n" }, { "from": "human", "value": "module.exports = [\n\n # the bongo api (or an empty file, depending on the config)\n \"../../.build/api.js\",\n\n \"../../.build/logging-api.js\",\n\n # --- Bongo Client ---\n \"sockjs-0.3-...
coffeescript
chosen
[ { "from": "system", "value": "Add the toolbar to the menu\n" }, { "from": "human", "value": "# See https://atom.io/docs/latest/creating-a-package#menus for more details\n'menu': [\n {\n 'label': 'Packages'\n 'submenu': [\n 'label': 'Jekyll'\n 'submenu': [\n { 'label': 'Ma...
coffeescript
chosen
[ { "from": "system", "value": "Switch data over to use new variation class\n" }, { "from": "human", "value": "$ ->\n\tvariations = [\n\t\t\tparticipants: 100\n\t\t\tconversions: 45\n\t\t,\n\t\t\tparticipants: 100\n\t\t\tconversions: 50\n\t]\n\n\tcalculator = new App.Calculator variations\n\tcalcu...
coffeescript
chosen
[ { "from": "system", "value": "Refactor using Reflux sugar functions\n\nReflux has quite a few sugar functions that prevent coderz from writing down\nuseless boilerplate.\n\n- On the actions side, one can simply specify an array of action names\n- On the store side, one can listen to an array of actions and ...
coffeescript
chosen
[ { "from": "system", "value": "Restructure logo JS to use `setInterval`\n" }, { "from": "human", "value": "NProgress.configure(showSpinner: false)\n\ndelay = 150\ndefaultClass = 'tanuki-shape'\npieces = [\n 'path#tanuki-right-cheek',\n 'path#tanuki-right-eye, path#tanuki-right-ear',\n 'path#ta...
coffeescript
chosen
[ { "from": "system", "value": "Decrease the logo sweep delay\n" }, { "from": "human", "value": "NProgress.configure(showSpinner: false)\n\ndefaultClass = 'tanuki-shape'\npieces = [\n 'path#tanuki-right-cheek',\n 'path#tanuki-right-eye, path#tanuki-right-ear',\n 'path#tanuki-nose',\n 'path#tan...
coffeescript
chosen
[ { "from": "system", "value": "Revert \"Export ReactEditorView as EditorView\"\n\nThis reverts commit be201485188cb8583bbfe0a2dd239a20efa8cbd9.\n" }, { "from": "human", "value": "{Point, Range} = require 'text-buffer'\n\nmodule.exports =\n BufferedNodeProcess: require '../src/buffered-node-proce...
coffeescript
chosen
[ { "from": "system", "value": "Choose a random workflow and subject" }, { "from": "human", "value": "React = require 'react'\napiClient = require '../api/client'\nPromiseRenderer = require '../components/promise-renderer'\nClassifier = require '../classifier/classifier'\n\nmodule.exports = React....
coffeescript
chosen
[ { "from": "system", "value": "Remove ctor handled in superclass" }, { "from": "human", "value": "SymbolsView = require './symbols-view'\nTagGenerator = require './tag-generator'\n\nmodule.exports =\nclass FileView extends SymbolsView\n constructor: (@stack) ->\n super\n initialize: ->\n ...
coffeescript
chosen
[ { "from": "system", "value": "Fix on preventDefault method call\n" }, { "from": "human", "value": "Meteor.subscribe 'authors';\nMeteor.subscribe 'Posts';\nMeteor.subscribe 'Comments';\n\nTemplate['posts'].helpers\n 'posts': -> Posts.find({}, sort: {createdAt: -1})\n\nTemplate.post.helpers\n 'c...
coffeescript
chosen
[ { "from": "system", "value": "Use method to check root path\n" }, { "from": "human", "value": "Dialog = require './dialog'\nProject = require './project'\nprojects = require './projects'\npath = require 'path'\nchangeCase = require 'change-case'\n\nmodule.exports =\nclass SaveDialog extends Dial...
coffeescript
chosen
[ { "from": "system", "value": "Include metadata for repos on homepage\n" }, { "from": "human", "value": "\n# Argumenta instance\nargumenta = require '../app/argumenta'\n\n# Site index\nexports.index = (req, res) ->\n argumenta.users.latest {limit: 10}, (err, users) ->\n argumenta.repos.latest...
coffeescript
chosen
[ { "from": "system", "value": "Fix quitAndInstall when there is no window.\n" }, { "from": "human", "value": "AutoUpdater = process.atomBinding('auto_updater').AutoUpdater\nEventEmitter = require('events').EventEmitter\n\nAutoUpdater::__proto__ = EventEmitter.prototype\n\nautoUpdater = new AutoUp...
coffeescript
chosen
[ { "from": "system", "value": "Write a test for expand-abbreviation\n" }, { "from": "human", "value": "Emmet = require '../lib/emmet'\n\ndescribe \"Emmet\", ->\n it \"has one valid test\", ->\n true\n" }, { "from": "gpt", "value": "Emmet = require 'emmet/lib/emmet'\nRootView = req...
coffeescript
chosen
[ { "from": "system", "value": "Add more control on return\n" }, { "from": "human", "value": "params = (options) ->\n url: \"https://stream.twitter.com/1.1/statuses/filter.json\"\n oauth: options.oauth\n form:\n include_entities: true\n track: options.words.join ','\n\nrequest = require '...
coffeescript
chosen
[ { "from": "system", "value": "Add method to generate UUID from javascript\n" }, { "from": "human", "value": "# Tool to query and render GUID conversions via REST API\n\ndelay = (ms, func) -> setTimeout func, ms\n\nclass window.GuidTool\n # Initialize on page load\n @init: =>\n $('#g...
coffeescript
chosen
[ { "from": "system", "value": "Add indirection so that correct next is called.\n" }, { "from": "human", "value": "_ = require 'underscore'\n \nexports.throttle = (getIdentifier, timeout = 1000) ->\n cache = {}\n throttleInner = (req, resp, next) ->\n identifier = getIdentifier(arguments...
coffeescript
chosen
[ { "from": "system", "value": "Remove common chunks plugin when testing\n" }, { "from": "human", "value": "webpackConfig = require('./webpack.config.coffee')\nwebpackConfig.entry = {}\n\nmodule.exports = (config) ->\n config.set\n frameworks: ['jasmine']\n browsers: ['Chrome']\n\n file...
coffeescript
chosen
[ { "from": "system", "value": "Watch & Serve by Default\n\nThe old default task is now \"build\".\n" }, { "from": "human", "value": "gulp = require 'gulp'\ndel = require 'del'\nhaml = require 'gulp-haml'\nsourcemaps = require 'gulp-sourcemaps'\ncoffee = require 'gulp-coffee...
coffeescript
chosen
[ { "from": "system", "value": "Remove opinion about element display style\n\nThis one is give or take.\n" }, { "from": "human", "value": "\".text.html\":\n \"polymer element\":\n \"prefix\": \"pe\"\n \"body\": \"\"\"\n <link rel=\"import\" href=\"${1:../bower_components}/polymer/polymer...
coffeescript
chosen
[ { "from": "system", "value": "Store data in context instead of dimensions" }, { "from": "human", "value": "request = require 'request'\n\nmodule.exports =\n class Reporter\n constructor: ->\n @request = request\n\n send: (eventType, data) ->\n params =\n timestamp: new Da...
coffeescript
chosen
[ { "from": "system", "value": "Aggregate: Rename plain object member variable from \"root\" to \"instance\" in order to not conflict with DDD terminology\n" }, { "from": "human", "value": "class Aggregate\n\n constructor: (@_context, @_eventric, @_name, Root) ->\n @_domainEvents = []\n\n i...
coffeescript
chosen
[ { "from": "system", "value": "Fix I18n error when ID not defined in messages.json\n" }, { "from": "human", "value": "I18n = (args...) ->\n m = chrome.i18n.getMessage(args...)\n return escapeHtml(m) if m != \"\"\n m = id.replace(/(.)([A-Z][a-z])/g, (m, p1, p2) -> \"#{p1} #{p2.toLowerCase()}\")...
coffeescript
chosen
[ { "from": "system", "value": "Remove local Component class. Refactor.\n" }, { "from": "human", "value": "\nclass Component\n\n constructor: ->\n\n update: ->\n \n stringify: ->\n JSON.stringify(@spec)\n\nclass $blab.Table extends Component\n \n constructor: (@spec, s...
coffeescript
chosen
[ { "from": "system", "value": "Put a 2-second delay before websocket connecting\n" }, { "from": "human", "value": "angular.module 'ws.helper', []\n\n .factory 'WebSocketOptions', ->\n options = {}\n return options\n\n .factory 'UserWebSocket', [\n '$timeout'\n 'WebSocketOptions'\n ...
coffeescript
chosen
[ { "from": "system", "value": "Add some documentatio and blank QueryDefaults object in Adapter\n" }, { "from": "human", "value": "# Your Adapter should define:\n# * QueryDefaults - an object of defaults to send as query parameters\n\nclass Embeditor.Adapter\n className: \"Adapter\"\n\n cons...
coffeescript
chosen
[ { "from": "system", "value": "Fix being able to uninstall package\n" }, { "from": "human", "value": "HighlightedAreaView = require './highlighted-area-view'\n\nmodule.exports =\n activate: (state) ->\n @areas = []\n atom.workspaceView.eachEditorView (editorView) =>\n area = new Highl...
coffeescript
chosen
[ { "from": "system", "value": "Use pane:item-added instead of editor:attached\n\nNow there is info about what pane item is added. Also we don't get\nevents for mini-editors being attached." }, { "from": "human", "value": "Guid = require 'guid'\nReporter = require './reporter'\n\nmodule.exports =\...
coffeescript
chosen
[ { "from": "system", "value": "Fix log of language validation\n" }, { "from": "human", "value": "flat = (obj, newObj = {}, path = '') ->\n\tfor key, value of obj\n\t\tif _.isObject value\n\t\t\tflat value, newObj, key + '.'\n\t\telse\n\t\t\tnewObj[path + key] = value\n\n\treturn newObj\n\n\nMeteo...
coffeescript
chosen
[ { "from": "system", "value": "Add urlRoot parameter to Visualization model in order to update model parameters via api\n" }, { "from": "human", "value": "class Visualization extends Backbone.Model\n paramRoot: 'visualization'\n defaults:\n parameters: null\n\nmodule.exports = Visualization"...
coffeescript
chosen
[ { "from": "system", "value": "Fix error when deactivating package\n" }, { "from": "human", "value": "{Disposable, CompositeDisposable} = require 'event-kit'\n\nContentsByMode =\n insert: [\"status-bar-vim-mode-insert\", \"Insert\"]\n command: [\"status-bar-vim-mode-command\", \"Command\"]\n ...
coffeescript
chosen
[ { "from": "system", "value": "Disable bet buttons when you don't have that much to bet\n" }, { "from": "human", "value": "Spine = require('spine')\n\nclass Actions extends Spine.Controller\n\n elements:\n '.deal': 'deal_button'\n '.continue': 'continue_button'\n '.surrender': 'surrende...
coffeescript
chosen
[ { "from": "system", "value": "Replace .editor -> atom-text-editor in keymap\n" }, { "from": "human", "value": "'.platform-darwin .editor':\n 'cmd-r': 'symbols-view:toggle-file-symbols'\n 'cmd-alt-down': 'symbols-view:go-to-declaration'\n 'cmd-alt-up': 'symbols-view:return-from-declaration'\n\...
coffeescript
chosen
[ { "from": "system", "value": "Revert \"use script elem instead of eval\"\n\nThis reverts commit c6e6adf9eb37da77fa01b0c856ead2e426463530.\n" }, { "from": "human", "value": "$ = window.$ = require(\"jquery\")\nBacon = window.Bacon = require(\"baconjs\")\n_ = require(\"lodash\")\n$.fn.asEventStrea...
coffeescript
chosen
[ { "from": "system", "value": "Delete object to avoid leakage\n" }, { "from": "human", "value": "class Creator\n\n update: (el) =>\n model = el.getAttribute(ObserveJS.attributeName)\n if model?\n @create(el, model)\n else\n @destroy(el)\n\n create: (el) =>\n model = el.get...
coffeescript
chosen
[ { "from": "system", "value": "Fix logic bug with fetchDone state" }, { "from": "human", "value": "View = require './view'\n\nRequestTasks = require '../collections/RequestTasks'\n\nclass RequestView extends View\n\n template: require './templates/request'\n\n initialize: =>\n @reque...
coffeescript
chosen
[ { "from": "system", "value": "Fix reference to backbone history\n" }, { "from": "human", "value": "window.app = _.extend {}, Backbone.Events,\n Models: {}\n Collections: {}\n Views: {}\n Routers: {}\n\n init: ->\n @auth()\n\n auth: ->\n new this.Views.Authenticate()\n\n ready: ->\n ...
coffeescript
chosen
[ { "from": "system", "value": "Add compile task as prereq of tintan:build\n" }, { "from": "human", "value": "files = '\n\n fastdev\n compile\n\n'.trim().split(/[^a-zA-Z\\/\\.]+/).map (s)-> './'+s\n\nmodule.exports = (tintan)->\n\n require(file) tintan for file in files\n\n namespace 'tintan',...
coffeescript
chosen
[ { "from": "system", "value": "Fix silly 'this' context error.\n" }, { "from": "human", "value": "{exec} = require 'child_process'\npath = require 'path'\nfs = require 'fs'\n\nREFRESH_RATE = 500 # in msecs\nRUN_PATH = path.join __dirname, \"run_test.coffee\"\nseen = {} ...
coffeescript
chosen
[ { "from": "system", "value": "Clean all the data of deploy job when `removeDeploy`.\n" }, { "from": "human", "value": "_ = require('underscore')\n\nclass DeployMonitor\n\n timeout = 10000\n\n constructor: ()->\n @_deploy = null\n @_chat = null\n @_currentTimeout = 0\n\n setDeploy: (d...
coffeescript
chosen
[ { "from": "system", "value": "Convert to using editable view\n" }, { "from": "human", "value": "define (require) ->\n _ = require('underscore')\n BaseView = require('cs!helpers/backbone/views/base')\n BookPopoverView = require('cs!./popovers/book/book')\n template = require('hbs!./header-tem...
coffeescript
chosen
[ { "from": "system", "value": "Add keybindings for deletion 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 basic keybinding...
coffeescript
chosen
[ { "from": "system", "value": "Replace guid package call with node-uuid call\n" }, { "from": "human", "value": "crypto = require 'crypto'\nReporter = require './reporter'\n\nmodule.exports =\n activate: ({sessionLength}) ->\n if atom.config.get('metrics.userId')\n @begin(sessionLength)\n...
coffeescript
chosen
[ { "from": "system", "value": "Make search better by ignoring word order\n" }, { "from": "human", "value": "Spine = require('spine')\n\nclass window.Task extends Spine.Model\n\n # Set model properties\n @configure 'Task',\n 'name',\n 'date',\n 'notes',\n 'completed',\n 'priority'...
coffeescript
chosen
[ { "from": "system", "value": "Make whitelisted grammars a config setting\n" }, { "from": "human", "value": "url = require 'url'\nfs = require 'fs-plus'\n\nMarkdownPreviewView = require './markdown-preview-view'\n\nmodule.exports =\n activate: ->\n atom.workspaceView.command 'markdown-preview...
coffeescript
chosen
[ { "from": "system", "value": "Fix deprecation of editor class in keymap.\n" }, { "from": "human", "value": "'.platform-darwin, .platform-darwin .simple-flake8 .editor':\n 'cmd-shift-8': 'simple-flake8:toggle'\n\n'.platform-win32, .platform-win32 .simple-flake8 .editor':\n 'ctrl-shift-8': 'simp...
coffeescript
chosen
[ { "from": "system", "value": "Send metrics only for problems, not for tables" }, { "from": "human", "value": "import {GROUPS} from '../../client/lib/informaticsGroups'\nimport {START_SUBMITS_DATE} from '../api/dashboard'\nimport send from '../metrics/graphite'\nimport Result from \"../models/res...
coffeescript
chosen
[ { "from": "system", "value": "Remove ugly yellow color from verbose log messages " }, { "from": "human", "value": "### logger.coffee ###\n\ncolors = require 'colors'\nwinston = require 'winston'\nutil = require 'util'\n\nclass cli extends winston.Transport\n\n name: 'cli'\n\n constructor: (opt...
coffeescript
chosen
[ { "from": "system", "value": "Add error class first for toasts\n" }, { "from": "human", "value": "window.Toast = {}\ntoastQueue = []\nshowing = false\n\nToast.processToast = () ->\n if toastQueue.length > 0\n toast = toastQueue.shift()\n $(\"#toasts\").find(':first-child').remove()\n i...
coffeescript
chosen
[ { "from": "system", "value": "Allow multiple using validate and beautify\n" }, { "from": "human", "value": "\"use strict\"\n\nfilter = require './filter'\nsearch = require './search'\nbeautify = require './beautify'\nvalidate = require './validate'\n\n\ndefaults =\n version: 1.1\n retweets: tr...
coffeescript
chosen
[ { "from": "system", "value": "guv-update-workerstats: Fix wrong key being used [major]\n\nThe tool was using the 'process' config key instead of 'processing'\nThis would have caused the default (or old value in file) being\nused instead, leading to wrong scaling parameters.\n" }, { "from": "human", ...
coffeescript
chosen
[ { "from": "system", "value": ":lipstick: Use long opts for clarity\n" }, { "from": "human", "value": "fs = require 'fs'\npath = require 'path'\n\nasync = require 'async'\n\nmodule.exports = (grunt) ->\n {spawn} = require('./task-helpers')(grunt)\n\n grunt.registerTask 'run-specs', 'Run the spe...
coffeescript
chosen
[ { "from": "system", "value": "Add catch all error handling in case of AJAX fail response\n\n- Add `fail` block to form submission request promise chain.\n- Add timeout tracking so that old requests dont clear timeouts set by subsequent requests.\n" }, { "from": "human", "value": "Promise = requi...
coffeescript
chosen
[ { "from": "system", "value": "Add GridFS as default avatar storage\n" }, { "from": "human", "value": "uploadPath = \"/var/www/rocket.chat/uploads\"\n\nstore = new FS.Store.FileSystem \"avatars\",\n\tpath: uploadPath\n\tfileKeyMaker: (fileObj) ->\n\t\tfilename = fileObj.name()\n\t\tfilenameInStor...
coffeescript
chosen
[ { "from": "system", "value": "Fix missing label reference to input field\n" }, { "from": "human", "value": "core = require './core'\nInput = require './Input'\n{p, span, label} = require './DOM'\n\nActivityIndicator = require './ActivityIndicator'\n\nForm =\n Input: core.createComponent 'rui.Fo...
coffeescript
chosen
[ { "from": "system", "value": "Extend clinical for breast tumors.\n" }, { "from": "human", "value": "`import Pathology from \"./pathology.data.coffee\"`\n\n###*\n * The clinical Encounter REST data object extension utility.\n *\n * @module clinical\n * @class ClinicalEncounter\n * @static\n###\nC...
coffeescript
chosen
[ { "from": "system", "value": "Fix scheduled task property changes" }, { "from": "human", "value": "Tasks = require './Tasks'\nTaskScheduled = require '../models/TaskScheduled'\n\nclass TasksScheduled extends Tasks\n\n model: TaskScheduled\n\n url: \"#{ env.SINGULARITY_BASE }/#{ constants.a...
coffeescript
chosen
[ { "from": "system", "value": "Make report page fetch page association\n" }, { "from": "human", "value": "Report = require('../models/report.coffee').model\n\nexports.index = (req, res) ->\n Report.find (err, reports) ->\n if !err?\n res.render \"reports/index\",\n reportsJSON: JS...
coffeescript
chosen
[ { "from": "system", "value": "Update test suite, now it works properly\n" }, { "from": "human", "value": "require('../src/jquery.turbolinks.coffee')\n\nchai = require('chai')\nsinon = require('sinon')\nsinonChai = require('sinon-chai')\njQuery = require('jquery')\n\nchai.should()\nch...
coffeescript
chosen
[ { "from": "system", "value": "Delete gen/ during clean task\n" }, { "from": "human", "value": "module.exports = (grunt) ->\n grunt.initConfig\n pkg: grunt.file.readJSON('package.json')\n\n coffee:\n glob_to_multiple:\n expand: true\n cwd: 'src'\n src: ['*.coffee'...
coffeescript
chosen
[ { "from": "system", "value": "Call queue.done() in the request callback\n" }, { "from": "human", "value": "# # Kissmetrics Batch\n\nclass BatchKissmetricsClient\n @HOST: 'api.kissmetrics.com'\n @HTTP_METHOD: 'POST'\n @API_VERSION: 'v1'\n\n @process: (queue, apiKey, apiSecret, productGUID) =>...
coffeescript
chosen
[ { "from": "system", "value": "Fix deprecations in git init command\n" }, { "from": "human", "value": "git = require '../git'\nProjectsListView = require '../views/projects-list-view'\nStatusView = require '../views/status-view'\n\ngitInit = ->\n currentFile = atom.workspace.getActiveTextEditor(...
coffeescript
chosen
[ { "from": "system", "value": "Use convention for 'private' functions\n\nMove them below public functions, also.\n" }, { "from": "human", "value": "class Algorhythmic\n max: 10\n\n compute: (array) ->\n array\n .map(@getCharInt)\n .reduce((previousInt, currentInt) =>\n (previousIn...
coffeescript
chosen
[ { "from": "system", "value": "Change sample Github user to 'trabian' from 'trabianmatt'\n" }, { "from": "human", "value": "class Repo extends Backbone.Model\n\nclass RepoCollection extends Backbone.Collection\n\n model: Repo\n\n url: 'https://api.github.com/users/trabianmatt/repos'\n\nmodule.e...
coffeescript
chosen
[ { "from": "system", "value": ":bug: Fix a critical bug in self service\n" }, { "from": "human", "value": "{Disposable} = require('atom')\nmodule.exports =\n instance: null\n config:\n lintOnFly:\n title: 'Lint on fly'\n description: 'Lint files while typing, without the need to sa...
coffeescript
chosen
[ { "from": "system", "value": "Set the alt attribute on the image as well." }, { "from": "human", "value": "class CMSimple.Panels.ImageLibrary.Selection extends Spine.Controller\n constructor: ->\n super\n @bindEvents()\n\n\n set: (img)->\n if @selectedImage\n @selectedImage.attr(...
coffeescript
chosen
[ { "from": "system", "value": "Add 'Close All Tabs' to File menu\n" }, { "from": "human", "value": "'context-menu':\n '.tab': [\n {label: 'Close Tab', command: 'tabs:close-tab'}\n {label: 'Close Other Tabs', command: 'tabs:close-other-tabs'}\n {label: 'Close Tabs to the Right', command:...
coffeescript
chosen
[ { "from": "system", "value": "Change default project path for atom\n" }, { "from": "human", "value": "'*':\n 'editor':\n 'fontFamily': 'PragmataPro'\n 'showInvisibles': true\n 'showIndentGuide': true\n 'invisibles': {}\n 'core':\n 'disabledPackages': [\n 'autocomplete'\n ...
coffeescript
chosen
[ { "from": "system", "value": "Add support for time data types\n\nAnd remove a tiny bit of duplication.\n" }, { "from": "human", "value": "class PgHoffTypes\n @Type:\n 'timestamp with time zone':\n format: (value) -> return new Date(value).toLocaleString(atom.config.g...
coffeescript
chosen
[ { "from": "system", "value": "Improve logging out errors when performing task's actions.\n" }, { "from": "human", "value": "Q = require 'q'\n\n{Base} = require \"#{__dirname}/base\"\n{Wrappers} = require \"#{__dirname}/helpers/wrappers\"\n{BeanBuilder} = require \"#{__dirname}/helpers/bean_build...
coffeescript
chosen
[ { "from": "system", "value": "Add to unique unit tests\n" }, { "from": "human", "value": "QUnit.test \"test unique\", (assert) ->\n input = [5, 6, 7, 5, 5, 6, 7]\n output = unique(input)\n expected = [5, 6, 7]\n\n assert.deepEqual( output , expected)\n" }, { "from": "gpt", ...
coffeescript
chosen
[ { "from": "system", "value": "Remove unneeded subscription at the wish page (if the data already exists)\n" }, { "from": "human", "value": "class @WishController extends RouteController\n\n waitOn: ->\n [Meteor.subscribe('wish', @params.id), subscriptionHandles['users']]\n\n tempalte: 'wish...
coffeescript
chosen
[ { "from": "system", "value": "Raise error on failed action in flow.\n" }, { "from": "human", "value": "module.exports = ->\n @logger = require './logger'\n\n @visit = (path) =>\n @driver.get \"#{@host}#{path}\"\n\n _Before = @Before\n _After = @After\n\n @_inFlow = (code, callback) ->\n...
coffeescript
chosen
[ { "from": "system", "value": "Use alt instead of ctrl\n" }, { "from": "human", "value": "'.workspace':\n 'ctrl-g o': 'github:open'\n 'ctrl-g b': 'github:blame'\n 'ctrl-g h': 'github:history'\n 'ctrl-g c': 'github:copy-url'\n" }, { "from": "gpt", "value": "'.workspace':\n 'alt-g ...
coffeescript
chosen
[ { "from": "system", "value": "Add proxy settings for nightmare.\n" }, { "from": "human", "value": "chai = require 'chai'\nchai.should()\nchai.use require 'chai-as-promised'\n\nrequire 'postmortem/register'\n\nNightmare = require 'joseph/nightmare'\n\nbefore ->\n browser = Nightmare show: proces...
coffeescript
chosen
[ { "from": "system", "value": "Enable to lint no-extension file\n" }, { "from": "human", "value": "'use strict'\n\ngulp = require 'gulp'\n$ = (require 'gulp-load-plugins') lazy: false\n\npaths =\n jshint: [\n './bin/*.js'\n ]\n coffeelint: [\n './gulpfile.coffee'\n './test/*.coffee'\n...
coffeescript
chosen
[ { "from": "system", "value": "Use path.join instead of path.resolve\n\nApplies commit 41ab48b to spec-bootstrap.coffee\n" }, { "from": "human", "value": "# Start the crash reporter before anything else.\nrequire('crash-reporter').start(productName: 'Atom', companyName: 'GitHub')\n\npath = requir...
coffeescript
chosen
[ { "from": "system", "value": "Fix tests in IE 11\n" }, { "from": "human", "value": "{pressKey, test, testGroup, typeCharacters} = Trix.TestHelpers\n\ntestOptions =\n template: \"editor_empty\"\n setup: ->\n addEventListener(\"keydown\", cancel, true)\n addEventListener \"trix-before-init...
coffeescript
chosen
[ { "from": "system", "value": "Select by user.id, not the whole user object\n" }, { "from": "human", "value": "keysSchema = mongoose.Schema\n\tuser:\n\t\ttype: mongoose.Schema.ObjectId\n\t\tref: \"User\"\n\tidentifier: String\n\tkey: String\n\tcreated_at:\n\t\ttype: Date\n\t\tdefault: Date.now\n\...
coffeescript
chosen
[ { "from": "system", "value": "Switch over to hosted API\n" }, { "from": "human", "value": "require.config\n deps: [\"main\"]\n\n shim: {\n handlebars: exports: \"Handlebars\"\n }\n\n paths:\n # RequireJS plugins\n text: \"../vendor/text/text\"\n\n # Third party libraries\n jqu...
coffeescript
chosen
[ { "from": "system", "value": "Fix default path to powershell.\n" }, { "from": "human", "value": "# from atom/terminal to reduce cpu usage\n\npty = require 'ptyw.js'\n\nmodule.exports = (ptyCwd, sh, cols, rows, args) ->\n callback = @async()\n if sh\n shell = sh\n else\n shell = proc...
coffeescript
chosen
[ { "from": "system", "value": "Add a minimap class to the decoration scope\n\nIt’ll allow to have a specific style for the minimap selection\n" }, { "from": "human", "value": "{View} = require 'atom'\nmodule.exports =\nclass MinimapSelectionView extends View\n decorations: []\n @content: ->\n ...
coffeescript
chosen
[ { "from": "system", "value": "Update grammar to take Windows into account\n" }, { "from": "human", "value": "'scopeName': 'source.vp'\n'name': 'Valkyrie Profile'\n'fileTypes': ['vp']\n'patterns': [\n\t{\n\t\t'match': '^[^\\t]*$',\n\t\t'name': 'entity name function vp'\n\t}\n]\n" }, { "f...
coffeescript
chosen
[ { "from": "system", "value": "Set a default for Connection's config.options.default .\n" }, { "from": "human", "value": "EventEmitter = require('events').EventEmitter\n\nclass Debug extends EventEmitter\n ###\n @options Which debug details should be sent.\n data - dump...
coffeescript
chosen
[ { "from": "system", "value": "Exclude deprecated APIs when running specs\n" }, { "from": "human", "value": "require 'coffee-cache'\njasmine.getEnv().addEqualityTester(require('underscore-plus').isEqual)\n" }, { "from": "gpt", "value": "require 'coffee-cache'\njasmine.getEnv().addEqua...
coffeescript
chosen
[ { "from": "system", "value": "Remove a FIXME that got fixed with data beta3.\n" }, { "from": "human", "value": "AllAboard.SlidesRoute = Em.Route.extend\n model: ->\n # FIXME: So this is great, except that it doesn't work on a Board that was\n # created by the app while that same instance ...
coffeescript
chosen
[ { "from": "system", "value": "Use .jshintrc file instead of brunch jshint plugin configurations.\n" }, { "from": "human", "value": "exports.config =\n files:\n javascripts:\n joinTo:\n 'js/app.js': /^(vendor|bower_components|app)/\n\n stylesheets:\n joinTo: 'css/app.css'\...
coffeescript
chosen
[ { "from": "system", "value": "Fix bug (with my understanding of CoffeeScript)\n" }, { "from": "human", "value": "# Utility functions ---------------------------------------\n\nextend = (dest, src) ->\n dest[name] = src[name] for name in src when src[name] and !dest[name]\n dest\n" }, { ...
coffeescript
chosen
[ { "from": "system", "value": "Send entire payload to Sidekiq\n" }, { "from": "human", "value": "NotificationPlugin = require \"../../notification-plugin\"\n\nclass Email extends NotificationPlugin\n SIDEKIQ_WORKER = \"ErrorEmailWorker\"\n SIDEKIQ_QUEUE = \"error_emails\"\n\n @receiveEvent: (c...
coffeescript
chosen
[ { "from": "system", "value": "Update science page help text\n" }, { "from": "human", "value": "React = require 'react'\nAutoSave = require '../../components/auto-save'\nhandleInputChange = require '../../lib/handle-input-change'\n\nmodule.exports = React.createClass\n displayName: 'EditProjectS...
coffeescript
chosen
[ { "from": "system", "value": "Refactor checkout button to remove one-click-logic (checkout ctrl already doest it)\n" }, { "from": "human", "value": "'use strict'\n\nSprangular.directive 'checkoutButton', ->\n restrict: 'E'\n scope:\n user: '='\n templateUrl: 'directives/checkout_button.htm...
coffeescript
chosen
[ { "from": "system", "value": "Remove quick-test-or-trial, it's not used.\n" }, { "from": "human", "value": "# 1. Don't define a test with null as one of the options\n# 2. If you change a test's options, you must also change the test's name\n#\n# You can add overrides, which will set the option i...
coffeescript
chosen
[ { "from": "system", "value": "Add Grunt task alias test\n" }, { "from": "human", "value": "module.exports = (grunt) ->\n\tgrunt.initConfig\n\t\tclean:\n\t\t\tpackage: ['lib']\n\t\tcoffee:\n\t\t\toptions:\n\t\t\t\tbare: true\n\t\t\tfiles:\n\t\t\t\texpand: true\n\t\t\t\tcwd: 'src'\n\t\t\t\tsrc: ['...
coffeescript
chosen
[ { "from": "system", "value": "Filterable: Make sure there are suggestions\n" }, { "from": "human", "value": "module.exports = class Filterable\n {secure, ObjectId} = require 'bongo'\n {permit} = require '../models/group/permissionset'\n\n @findSuggestions = ()->\n throw new Error \"Filtera...
coffeescript
chosen
[ { "from": "system", "value": "Add (unimplemented) options to template command\n" }, { "from": "human", "value": "#! /usr/bin/env coffee\n\nargs = require('../src/args').camelized 'template'\ntemplates = require '../src/templates'\n\ntemplates.show args.template" }, { "from": "gpt", ...
coffeescript
chosen
[ { "from": "system", "value": "Improve guard against opening multiple web sockets\n" }, { "from": "human", "value": "# Encapsulate the cable connection held by the consumer. This is an internal class not intended for direct user manipulation.\nclass Cable.Connection\n constructor: (@consumer) ->...
coffeescript
chosen
[ { "from": "system", "value": "Remove event junk from the obj selection" }, { "from": "human", "value": "{Emitter, CompositeDisposable} = require 'event-kit'\n\n# The display for a selected object. i.e. the red or blue outline around the\n# selected object.\n#\n# It basically cops the underlying ...
coffeescript
chosen
[ { "from": "system", "value": "Handle <enter> for creating channels\n" }, { "from": "human", "value": "Promise = require 'bluebird-q'\nBackbone = require 'backbone'\ntemplate = -> require('./index.jade') arguments...\n\nmodule.exports = class ChannelCreateView extends Backbone.View\n events:\n ...
coffeescript
chosen
[ { "from": "system", "value": "Apply workaround for clearing of focus upon loading of window\n\nAfter the first window focus event, the focus is getting cleared back\nto document.body regardless of the prior active element. Refocusing\nworkspace on a delay after the first window focus event works around\nthe...
coffeescript
chosen