conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Use find instead of children to support more advanced selectors\n" }, { "from": "human", "value": "define (require) ->\n BaseView = require('cs!helpers/backbone/views/base')\n\n observerConfig =\n subtree: true\n childList: true\n characterData: true\n\n ...
coffeescript
chosen
[ { "from": "system", "value": "Fix custom then on record loader\n" }, { "from": "human", "value": "angular.module('loomioApp').factory 'RecordLoader', (Records) ->\n class RecordLoader\n constructor: (opts = {}) ->\n @loadingFirst = true\n @collection = opts.collection\n @param...
coffeescript
chosen
[ { "from": "system", "value": "ApplicationTabHandleHolder: Make sure there is handle (since its optional this check is necessary)\n" }, { "from": "human", "value": "class ApplicationTabHandleHolder extends KDView\n\n constructor: (options = {}, data) ->\n\n options.cssClass = KD.utils....
coffeescript
chosen
[ { "from": "system", "value": "Remove unsupported items from toolbar\n" }, { "from": "human", "value": "$(document).ready ->\n if $('[contenteditable!=false]').length > 0\n for elementId in ['body_editable', 'abstract_editable']\n CKEDITOR.inline elementId,\n extraPlugins: 'shared...
coffeescript
chosen
[ { "from": "system", "value": "Update DataTables `aoColumnDefs` class names.\n\nThey were not updated to match the new class name conventions, so the\nmark and recall columns were ending up searchable.\n" }, { "from": "human", "value": "jQuery ->\n $('.results_round').dataTable\n bPaginate: f...
coffeescript
chosen
[ { "from": "system", "value": "Support stores, add setStore method.\n" }, { "from": "human", "value": "xhr = require 'xhr'\n\nclass Crowdstart\n endpoint: \"https://api.crowdstart.com\"\n constructor: (@key) ->\n\n setKey: (key) ->\n @key = key\n\n req: (uri, data, cb) ->\n xhr\n u...
coffeescript
chosen
[ { "from": "system", "value": "Add TomDoc for Heroku status script usage\n" }, { "from": "human", "value": "# Show current Heroku status\n\nmodule.exports = (robot) ->\n robot.respond /heroku status/, (msg) ->\n msg.http(\"https://status.heroku.com/status.json\")\n .get() (err, res, body...
coffeescript
chosen
[ { "from": "system", "value": "Fix documentation examples for fsUtils.isDirectory\n" }, { "from": "human", "value": "fs = require('fs')\n_ = require('lodash')\n\n# Check if valid path\n#\n# @private\n#\n# @param {String} path path\n# @return {Boolean} is valid path\n#\n# @todo There should be mor...
coffeescript
chosen
[ { "from": "system", "value": ":art: Add description and title to showErrorInline config\n" }, { "from": "human", "value": "module.exports =\n instance: null\n config:\n lintOnFly:\n title: 'Lint on fly'\n description: 'Lint files while typing, without the need to save them'\n ...
coffeescript
chosen
[ { "from": "system", "value": "Fix broken scroll on firefox\n" }, { "from": "human", "value": "class ImageListWidget\n constructor: (images) ->\n @imgs = images\n @binder = new Binder()\n\n onCreate: () ->\n @binder.bindAction(\n Rx.Observable\n ...
coffeescript
chosen
[ { "from": "system", "value": "Move (temporarily) to ctrl-cmd-o since cmd-O seems unaccessible" }, { "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# Bel...
coffeescript
chosen
[ { "from": "system", "value": "feat(jshintrc): Use `.jshintrc` if present in directory\n" }, { "from": "human", "value": "linterPath = atom.packages.getLoadedPackage(\"linter\").path\nLinter = require \"#{linterPath}/lib/linter\"\n\nclass LinterJshint extends Linter\n # The syntax that the linte...
coffeescript
chosen
[ { "from": "system", "value": "Remove a \"console.log\" from FlexibilityOrder\n" }, { "from": "human", "value": "class @FlexibilityOrder\n constructor: (@element) ->\n # pass\n\n url: (path) ->\n \"#{ App.scenario.url_path() }/flexibility_order/#{ path }\"\n\n update: (order) =>\n $.a...
coffeescript
chosen
[ { "from": "system", "value": "Load unassigned category on main categories index page" }, { "from": "human", "value": "App.CategoriesRoute = Em.Route.extend\n model: ->\n App.Category.findAll()\n setupController: (controller, model) ->\n @_super controller, model\n @set 'unassigned', m...
coffeescript
chosen
[ { "from": "system", "value": "Fix bug to get always notified when all tests are completed\n" }, { "from": "human", "value": "class TestRunner\n running: false\n\n results: {}\n\n instance = null\n @get: ->\n instance ?= new TestRunner();\n\n constructor: ()->\n Meteor.startup =>\n ...
coffeescript
chosen
[ { "from": "system", "value": "Use bluebird long stacktraces in development" }, { "from": "human", "value": "require './shim/phantomjs-bind'\n\nwindow.Promise = require 'bluebird'\nwindow.Rdb = require('rdb/index')\n" }, { "from": "gpt", "value": "require './shim/phantomjs-bind'\n\nwi...
coffeescript
chosen
[ { "from": "system", "value": "Replace 'live' with 'on' syntax.\n" }, { "from": "human", "value": "# Copyright (c) 2008-2013 Michael Dvorkin and contributors.\n#\n# Fat Free CRM is freely distributable under the terms of MIT license.\n# See MIT-LICENSE file or http://www.opensource.org/licenses/m...
coffeescript
chosen
[ { "from": "system", "value": "Remove percentages and combine robot.hear calls\n" }, { "from": "human", "value": "# Description:\n# Listens for words and sometimes replies with an Arnie quote\n#\n# Dependencies:\n# None\n#\n# Commands:\n# None\n#\n# Author:\n# Casey Lawrence <casey.j.lawr...
coffeescript
chosen
[ { "from": "system", "value": "Stop redirecting to movies index when adding a movie\n" }, { "from": "human", "value": "class Shothere.Routers.MoviesRouter extends Backbone.Router\n initialize: (options) ->\n @movies = new Shothere.Collections.MoviesCollection()\n @movies.reset options.movi...
coffeescript
chosen
[ { "from": "system", "value": "ComputeProviders: Remove User from shared machines when username changed.\n" }, { "from": "human", "value": "module.exports = usernameChanged = ({ oldUsername, username, isRegistration }) ->\n\n return unless oldUsername and username\n return if isRegistration\n...
coffeescript
chosen
[ { "from": "system", "value": "Add \"home\" to start of breadcrumbs to allow easy browse nav\n" }, { "from": "human", "value": "mod = angular.module(\"player\")\n\nmod.controller(\"BrowseCtrl\", ($scope, $stateParams, $state, library, playlist) ->\n \"use strict\"\n that = this\n\n $scope.libr...
coffeescript
chosen
[ { "from": "system", "value": "Use event provided by status bar\n" }, { "from": "human", "value": "{View} = require 'atom'\n\nmodule.exports =\nclass SelectionCountView extends View\n @content: ->\n @div class: \"selection-count inline-block\"\n\n initialize: (@statusBar) ->\n @subscribe ...
coffeescript
chosen
[ { "from": "system", "value": "Fix redirect in clone project modal\n" }, { "from": "human", "value": "define [\n\t\"base\"\n], (App) ->\n\tApp.controller 'CloneProjectModalController', ($scope, $modalInstance, $timeout, $http, ide) ->\n\t\t$scope.inputs = \n\t\t\tprojectName: ide.$scope.project.n...
coffeescript
chosen
[ { "from": "system", "value": "Clear other input values too." }, { "from": "human", "value": "$(document).on 'click', 'a[data-clear-form]', (event) ->\n event.preventDefault()\n $(event.currentTarget).closest('form').trigger('clear')\n\n$(document).on 'clear', '.effective-datatable-scopes form'...
coffeescript
chosen
[ { "from": "system", "value": "Use environmental variables to store database credentials\n" }, { "from": "human", "value": "keychain = require './utils/keychain'\n\nconfig =\n\n use: (platform) ->\n for key, value of config[platform]\n config[key] = value\n\n production:\n\n url: 'ht...
coffeescript
chosen
[ { "from": "system", "value": "Load script synchronously (updated to match generator template)\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)...
coffeescript
chosen
[ { "from": "system", "value": "Add comment explaining why the odd double-json is necessary in trigger_Event\n" }, { "from": "human", "value": "showPopup = (url) ->\n width = 640\n height = 480\n left = (screen.width/2)-(width/2)\n top = (screen.height/2)-(height/2)\n popup_window = win...
coffeescript
chosen
[ { "from": "system", "value": "Change 'OpenStax College' to 'OpenStax CNX'\n" }, { "from": "human", "value": "define (require) ->\n BaseView = require('cs!helpers/backbone/views/base')\n HeaderView = require('cs!modules/header/header')\n FooterView = require('cs!modules/footer/footer')\n Find...
coffeescript
chosen
[ { "from": "system", "value": "Add core:confirm and core:cancel keybindings\n" }, { "from": "human", "value": "'.platform-darwin .editor':\n 'cmd-:': 'spell-check:correct-misspelling'\n\n'.platform-win32 .editor':\n 'ctrl-:': 'spell-check:correct-misspelling'\n" }, { "from": "gpt", ...
coffeescript
chosen
[ { "from": "system", "value": "Use internal ip to setup redis\n" }, { "from": "human", "value": "### Examples\n\nTUTUM_REDIS_HOST=127.0.0.1\nTUTUM_REDIS_PORT=6379\nTUTUM_CLIENT_NAME=mywebsite\nTUTUM_CLIENT_HOST=www.dotcloud.com\nTUTUM_CLIENT_ADDRESS=http://192.168.0.42:80\n###\n\nif process.env.T...
coffeescript
chosen
[ { "from": "system", "value": "Fix the tag panel update, it was targetting the wrong div for replacement.\n" }, { "from": "human", "value": "$ ->\n $(\"div.tag-form\").hide()\n\n $(\"div.tag-form li.cancel a\").live \"click\", ->\n $(\"div.tags\").show()\n $(\"div.tag-form\").hide()\n ...
coffeescript
chosen
[ { "from": "system", "value": "Set up the form to place the order" }, { "from": "human", "value": "$(document).on \"page:change\", ->\n if $(\"body[data-controller=ships][data-action=index]\").get 0\n $(\".ship-thumb\").click ->\n $(\"#ship-selection\").val $(this).data \"ship-id\"\n ...
coffeescript
chosen
[ { "from": "system", "value": ":bug: Fix a critical typo in Panel\n" }, { "from": "human", "value": "class PanelView extends HTMLElement\n initialize(@linter)->\n @id = 'linter-panel'\n @decorations = []\n removeDecorations: ->\n return unless @decorations.length\n @decorations.forE...
coffeescript
chosen
[ { "from": "system", "value": "Fix issue with undefined dispather page\n" }, { "from": "human", "value": "$ ->\n new Dispatcher()\n \nclass Dispatcher\n constructor: () ->\n @initSearch()\n @initPageScripts()\n\n initPageScripts: ->\n page = $('body').attr('data-page')\n project_i...
coffeescript
chosen
[ { "from": "system", "value": "Fix multiple line translation test\n" }, { "from": "human", "value": "\nTinytest.add 'Google Translate - should translate text' , (test)->\n translation = GoogleTranslate.translate(\"my name is Brandon\", \"es\")\n\n expect(translation).to.be.a(\"string\")\n expe...
coffeescript
chosen
[ { "from": "system", "value": "Put app into dev mode\n" }, { "from": "human", "value": "\nservers = {\n official: 'sync.nitrotasks.com:443'\n localhost: 'localhost:8080'\n}\n\n# Set active server\nactive = servers.official\n\nmodule.exports =\n sync: active\n server: active + '/api'\n ema...
coffeescript
chosen
[ { "from": "system", "value": "NEW: Add teaching period state to doubtfire.admin\n" }, { "from": "human", "value": "angular.module('doubtfire.admin.states', [\n 'doubtfire.admin.states.units'\n 'doubtfire.admin.states.users'\n])\n" }, { "from": "gpt", "value": "angular.module('doubt...
coffeescript
chosen
[ { "from": "system", "value": "Set active: true on registration\n" }, { "from": "human", "value": "Meteor.methods\n\tregisterUser: (formData) ->\n\t\tuserData =\n\t\t\temail: formData.email\n\t\t\tpassword: formData.pass\n\n\t\tuserId = Accounts.createUser userData\n\n\t\tMeteor.users.update user...
coffeescript
chosen
[ { "from": "system", "value": "Fix requiring code to join room" }, { "from": "human", "value": "Meteor.methods\n\tjoinRoom: (rid, code) ->\n\n\t\tcheck rid, String\n\t\tcheck code, String\n\n\t\tif not Meteor.userId()\n\t\t\tthrow new Meteor.Error 'error-invalid-user', 'Invalid user', { method: '...
coffeescript
chosen
[ { "from": "system", "value": "Create backbone model that represents discussion activities\n" }, { "from": "human", "value": "class window.GlobalFeedActivities extends Backbone.Factlink.Collection\n _.extend @prototype, AutoloadCollectionOnTimestamp\n model: Activity\n\n initialize: (models, o...
coffeescript
chosen
[ { "from": "system", "value": "Add a small useless fix\n\nJust put a 'return' statement to avoid returning something.\n" }, { "from": "human", "value": "'use strict'\n\n{toggleGem} = require './actions'\nstore = require './store'\n\nGem = React.createClass\n mixins: [Reflux.connect store, 'statu...
coffeescript
chosen
[ { "from": "system", "value": "Add wrap guide and markdown preview to default config\n" }, { "from": "human", "value": "requireExtension 'autocomplete'\nrequireExtension 'strip-trailing-whitespace'\nrequireExtension 'fuzzy-finder'\nrequireExtension 'tree-view'\nrequireExtension 'command-panel'\nr...
coffeescript
chosen
[ { "from": "system", "value": "Add comment explaining code purpose\n" }, { "from": "human", "value": "\"use strict\"\ntry\n # raises exception if security prevents us from using localStorage\n # this happens when the user blocks third party cookies, and tries\n # to load the client\n localSto...
coffeescript
chosen
[ { "from": "system", "value": "Increase discussion page size to 20\n" }, { "from": "human", "value": "module?.exports =\n\n discussionPageSize: 10\n\n inboxPageSize: 10\n\n boardPageSize: 10\n\n moderationsPageSize: 20\n" }, { "from": "gpt", "value": "module?.exports =\n\n discus...
coffeescript
chosen
[ { "from": "system", "value": "Maintain new window opening in Styleguide\n" }, { "from": "human", "value": "define [\n 'jquery'\n 'backbone'\n 'hbs/styleguide/index'\n], ($, Bb, t) ->\n\n class StyleguideView extends Bb.View\n\n el: $ 'body'\n\n events:\n 'cli...
coffeescript
chosen
[ { "from": "system", "value": "LikeView: Add count as cssClass Option for ActivityLikeCount\n" }, { "from": "human", "value": "class ActivityLikeView extends JView\n\n constructor: (options = {}, data) ->\n\n options.tagName or= 'span'\n options.cssClass or= 'like-view...
coffeescript
chosen
[ { "from": "system", "value": "Sidebar: Use NavigationWorkspaceItem class for sidebar workspace list controller.\n" }, { "from": "human", "value": "class SidebarMachineBox extends KDView\n\n constructor: (options = {}, data) ->\n\n super options, data\n\n {machine, workspaces} = data\n\n ...
coffeescript
chosen
[ { "from": "system", "value": "Fix word selection in Atom\n" }, { "from": "human", "value": "\"*\":\n editor:\n fontFamily: \"Fira Mono OT\"\n showIndentGuide: true\n tabLength: 2\n softWrap: true\n invisibles: {}\n zoomFontWhenCtrlScrolling: false\n core:\n disabledPackage...
coffeescript
chosen
[ { "from": "system", "value": "Add tip for symbols view\n" }, { "from": "human", "value": "module.exports = [\n 'Everything Atom can do is in the Command Palette. See it by using {command-palette:toggle}'\n 'You can quickly open files with the Fuzzy Finder. Try it by using {fuzzy-finder:toggle-...
coffeescript
chosen
[ { "from": "system", "value": "Strengthen selectors for chosen boxes.\n" }, { "from": "human", "value": "# Initialize chosen for multiselect tag list\ncrm.chosen_taglist = (asset, controller, id)->\n new Chosen $(asset + '_tag_list'), {\n allow_option_creation: true\n on_option_add: (tag) ...
coffeescript
chosen
[ { "from": "system", "value": "Stop the controls at min/max temp\n" }, { "from": "human", "value": "$ () ->\n $(\".increase-temp\").on \"click touchend\", (e) ->\n e.preventDefault()\n\n $(\"#set_temp_temp\").val(parseInt($(\"#set_temp_temp\").val()) + 1)\n\n $(\".decrease-temp\").on \"cl...
coffeescript
chosen
[ { "from": "system", "value": "Add (back in) showing of progress bar at 100% when connecting.\n" }, { "from": "human", "value": "Template.connectionStatus.helpers\n meteorStatus: ->\n Meteor.status()\n retryPc: ->\n Session.get 'offlinePc'\n retrySeconds: ->\n Session.get 'connectRetr...
coffeescript
chosen
[ { "from": "system", "value": "Make broken symlink text red\n" }, { "from": "human", "value": "path = require 'path'\n\nrequire 'colors'\n\nconfig = require './config'\nfs = require './fs'\ntree = require './tree'\n\nmodule.exports =\nclass LinkLister\n constructor: ->\n @devPackagesPath = pa...
coffeescript
chosen
[ { "from": "system", "value": "Rename modal \"factory()\" to \"create()\"\n" }, { "from": "human", "value": "###*\n# @overview Registers the custom modal tag provides the modal factory.\n#\n# @module stout-ui/modal\n###\ndefaults = require 'lodash/defaults'\nModal = require './Modal'\nModalV...
coffeescript
chosen
[ { "from": "system", "value": "Use consistent escape codes in sample prompt test.\n" }, { "from": "human", "value": "should = require 'should'\nenvironment = require './shared/environment'\nImpromptu = require '../lib/impromptu'\npath = require 'path'\nexec = require('child_process').exec\n\n\nde...
coffeescript
chosen
[ { "from": "system", "value": "Clean up the unit tests to be more natural languagey\n" }, { "from": "human", "value": "Helper = require('hubot-test-helper')\n\nhelper = new Helper('../scripts/loud.coffee')\nexpect = require('chai').expect\n\ndescribe 'being loud', ->\n room = null\n\n beforeEac...
coffeescript
chosen
[ { "from": "system", "value": "Fix for PATH update under new FS\n" }, { "from": "human", "value": "###\nUpdating user PATH variable\n###\nkey = 'Path'\nenv = sh.Environment 'User'\n\n###\nMS specific syntax to assign OLE properties\nRejected by:\n - CoffeeScript\n - Webpack\n # UglifyJS (Allow...
coffeescript
chosen
[ { "from": "system", "value": "Convert to using the JS props system\n" }, { "from": "human", "value": "_ = require \"underscore\"\nTransform = require \"./transform\"\nInterpolator = require \"./interpolator\"\n\nclass StepInterpolator extends Interpolator.Model\n\n initialize: (attrs, options) ...
coffeescript
chosen
[ { "from": "system", "value": "Revert timeout factor change for travis\n" }, { "from": "human", "value": "require('source-map-support').install handleUncaughtExceptions: false\nmongoose = require 'mongoose'\nconfig = require \"../config/test.json\"\n\nglobal.testTimeoutFactor = 1\n\nif process.en...
coffeescript
chosen
[ { "from": "system", "value": "Add in setting to control whether the site has a homepage\n" }, { "from": "human", "value": "logger = require('logger-sharelatex')\n_ = require('underscore')\n\nPath = require \"path\"\nfs = require \"fs\"\n\nErrorController = require \"../Errors/ErrorController\"\n...
coffeescript
chosen
[ { "from": "system", "value": "Add basic C, C++, Objective-C, and Objective-C++ specs\n" }, { "from": "human", "value": "CodeContext = require '../lib/code-context'\ngrammarMap = require '../lib/grammars'\n\ndescribe 'grammarMap', ->\n beforeEach ->\n @codeContext = new CodeContext('test.txt'...
coffeescript
chosen
[ { "from": "system", "value": "Add deprecated shim for TextEditor export\n" }, { "from": "human", "value": "TextBuffer = require 'text-buffer'\n{Point, Range} = TextBuffer\n{File, Directory} = require 'pathwatcher'\n{Emitter, Disposable, CompositeDisposable} = require 'event-kit'\n\nmodule.export...
coffeescript
chosen
[ { "from": "system", "value": "Remove token header from angular `$http`\n" }, { "from": "human", "value": "define [\n\t\"libs\"\n\t\"modules/recursionHelper\"\n\t\"modules/errorCatcher\"\n\t\"modules/localStorage\"\n\t\"utils/underscore\"\n], () ->\n\tApp = angular.module(\"SharelatexApp\", [\n\t...
coffeescript
chosen
[ { "from": "system", "value": "Trim zero-width spaces from input.\n" }, { "from": "human", "value": "# Import all known parsers in a convenient map.\n\nasDriver = (parser) ->\n (raw) -> \"\\n\" + parser(raw.split(/\\n/)).join(\"\\n\") + \"\\n\"\n\nexports.identity = asDriver require './identity'...
coffeescript
chosen
[ { "from": "system", "value": "Check if opElement exists before setting in manage users search\n" }, { "from": "human", "value": "#= require \"../users/new\"\n\n$ ->\n if isOnPage 'manage', 'users'\n mconf.Resources.addToBind ->\n mconf.Users.New.bind()\n\n window.onpopstate = (event)...
coffeescript
chosen
[ { "from": "system", "value": "Reset window title after each spec\n" }, { "from": "human", "value": "beforeEach ->\n @previousHref = location.href\n @previousTitle = document.title\n \nafterEach ->\n if up.browser.canPushState()\n history.replaceState?({}, @previousTitle, @previousHref)\n\...
coffeescript
chosen
[ { "from": "system", "value": "Fix error where one too many dummy items were created\n" }, { "from": "human", "value": "\"use strict\"\n\nObjectID = require('mongodb').ObjectID\nMoniker = require('moniker')\n\nrand = (min, max) -> Math.floor (Math.random() * (max - min + 1) + min)\n\nlisence = [\...
coffeescript
chosen
[ { "from": "system", "value": "Concatenate and minifiy js files\n" }, { "from": "human", "value": "module.exports = (grunt) ->\n grunt.initConfig\n pkg: grunt.file.readJSON 'package.json'\n cssmin:\n compileMain:\n src: 'public/stylesheets/style.css'\n dest: 'public/styl...
coffeescript
chosen
[ { "from": "system", "value": "Change shortid length back to 6\n" }, { "from": "human", "value": "@SHORTID_DIGITS = 1\n\n@SAMPLE_NAMES = [\n \"ಠ_ಠ\"\n \"(╯°□°)╯︵ ┻━┻\"\n \"‎( ͡° ͜ʖ ͡°)\"\n \"ヽ༼ຈل͜ຈ༽ノ\"\n \"(ᵔᴥᵔ)\"\n]\n" }, { "from": "gpt", "value": "@SHORTID_DIGITS = 6\...
coffeescript
chosen
[ { "from": "system", "value": "Add missing \"not found\" string" }, { "from": "human", "value": "counterpart = require 'counterpart'\nReact = require 'react'\nTitleMixin = require '../lib/title-mixin'\napiClient = require '../api/client'\nOwnedCardList = require '../components/owned-card-list'\n\...
coffeescript
chosen
[ { "from": "system", "value": "Read and store city district in cookie\n" }, { "from": "human", "value": "jQuery ($) ->\n $(\"aside.feedback .trigger\").click ->\n $(@).hide()\n $(\"aside.feedback form\").slideDown(100)\n $('html, body').animate\n scrollTop: $(\"aside.feedback\").of...
coffeescript
chosen
[ { "from": "system", "value": "Move menu item to 'Haskell IDE' 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 ide-haskell-repl'\n 'comman...
coffeescript
chosen
[ { "from": "system", "value": "Add support for == and ===\n\nCloses #3\n" }, { "from": "human", "value": "module.exports =\n selector: ['.text.html.php']\n id: 'aligner-php' # package name\n config:\n '=>-alignment':\n title: 'Padding for =>'\n description: 'Pad left or right of t...
coffeescript
chosen
[ { "from": "system", "value": "Remove producers without lat + long from map\n" }, { "from": "human", "value": "Darkswarm.factory \"OfnMap\", (Enterprises, EnterpriseModal, visibleFilter) ->\n new class OfnMap\n constructor: ->\n @enterprises = @enterprise_markers(Enterprises.enterprises)...
coffeescript
chosen
[ { "from": "system", "value": "Add value and width props to Range class\n" }, { "from": "human", "value": "class App.Range\n\tconstructor: (@min, @max) ->\n\t\t@values = [@min, @max]" }, { "from": "gpt", "value": "class App.Range\n\tconstructor: (@min, @max) ->\n\t\t@values = [@min, @...
coffeescript
chosen
[ { "from": "system", "value": "Clean up database master require.\n" }, { "from": "human", "value": "# class KeyValue\n# get: (key, callback) ->\n# get_all: (keys, callback) ->\n# keys: (pattern, callback) ->\n# set: (key, value, callback) ->\n# atomic_set: (key, value, callback) ->\n# ...
coffeescript
chosen
[ { "from": "system", "value": "Fix incorrect audio source being set on stop\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\nclass @O...
coffeescript
chosen
[ { "from": "system", "value": "Remove view when package is deactivated\n" }, { "from": "human", "value": "_ = require 'underscore'\n\nmodule.exports =\n projectPaths: null\n fuzzyFinderView: null\n loadPathsTask: null\n\n activate: (state) ->\n rootView.command 'fuzzy-finder:toggle-file-fi...
coffeescript
chosen
[ { "from": "system", "value": "AddWorkspaceView: Refactor for new sidebar list controller.\n" }, { "from": "human", "value": "class AddWorkspaceView extends KDCustomHTMLView\n\n constructor: (options = {}, data) ->\n\n options.cssClass = 'add-workspace-view'\n\n super options, data\n\n ...
coffeescript
chosen
[ { "from": "system", "value": "Remove old comments and add new donation name type ahead\n" }, { "from": "human", "value": "# Once we can edit donations, this should behave like addOrderRow from orders.coffee\naddDonationRow = ->\n row = $ tmpl(\"donation-row-template\", {})\n $(\"#donation-tabl...
coffeescript
chosen
[ { "from": "system", "value": "Load scenefrom from command line.\n" }, { "from": "human", "value": "\nReflector = require './lib/reflector'\nWebsocketServer = require './lib/websocket_server'\nScene = require './scene'\n\nclass Server\n constructor: (@filename, @port) ->\n Scene.load(@filenam...
coffeescript
chosen
[ { "from": "system", "value": "Remove Go to Declaration from mini editor context menu\n" }, { "from": "human", "value": "'menu': [\n {\n 'label': 'Packages'\n 'submenu': [\n 'label': 'Symbols'\n 'submenu': [\n { 'label': 'File Symbols', 'command': 'symbols-view:toggle-file...
coffeescript
chosen
[ { "from": "system", "value": "FIX: Switch task completion csv download\n" }, { "from": "human", "value": "angular.module(\"doubtfire.api.models.task-completion-csv\", [])\n\n.service(\"TaskCompletionCsv\", (DoubtfireConstants, $window, currentUser) ->\n this.downloadFile = (unit) ->\n $windo...
coffeescript
chosen
[ { "from": "system", "value": "Update PaymentConstants for failed attempts\n" }, { "from": "human", "value": "globals = require 'globals'\n\nmodule.exports =\n\n getOperation : (current, selected) ->\n\n arr = [\n @planTitle.FREE\n @planTitle.HOBBYIST\n @planTitle.DEVELOPER\n ...
coffeescript
chosen
[ { "from": "system", "value": "Add ctrl-space binding for autocomplete" }, { "from": "human", "value": "window.keymap.bindKeys '.editor',\n 'escape': 'autocomplete:attach'\n\nwindow.keymap.bindKeys '.autocomplete .editor',\n 'enter': 'autocomplete:confirm'\n 'escape': 'autocomplete:cancel'\n" ...
coffeescript
chosen
[ { "from": "system", "value": "Add test project creation setup\n" }, { "from": "human", "value": "request = require 'request'\nasync = require 'async'\nshould = require 'should'\n_ = require 'underscore'\nuuid = require 'uuid'\n\nstartApp = require './../start_app'\nbase = require './../base'\nop...
coffeescript
chosen
[ { "from": "system", "value": "Set the right linter args from cur editor grammar\n" }, { "from": "human", "value": "linterPath = atom.packages.getLoadedPackage(\"linter\").path\nLinter = require \"#{linterPath}/lib/linter\"\npath = require 'path'\n\nclass LinterClang extends Linter\n # The synta...
coffeescript
chosen
[ { "from": "system", "value": "Refactor TerminalPane to work with multiple VMs.\n" }, { "from": "human", "value": "class TerminalPane extends Pane\n\n constructor: (options = {}, data) ->\n\n options.cssClass = 'terminal-pane terminal'\n\n super options, data\n\n createWebTermView: ->\n ...
coffeescript
chosen
[ { "from": "system", "value": "Add some actual tests for toolbar\n" }, { "from": "human", "value": "require './spec-helper'\nToolbarView = require '../app/coffee/toolbar.coffee'\n\ndescribe 'ToolbarView', ->\n it 'can be create', ->\n expect(new ToolbarView('test', [])).not.toBeNull()\n" },...
coffeescript
chosen
[ { "from": "system", "value": "Set state to OK once we have projects\n" }, { "from": "human", "value": "noflo = require 'noflo'\n\nexports.getComponent = ->\n c = new noflo.Component\n c.inPorts.add 'token',\n datatype: 'string'\n c.outPorts.add 'projects',\n datatype: 'object'\n c.outP...
coffeescript
chosen
[ { "from": "system", "value": "Fix sporadic test failure in IE\n" }, { "from": "human", "value": "editorModule \"Attachments\", template: \"editor_with_image\"\n\neditorTest \"moving an image by drag and drop\", (expectDocument) ->\n typeCharacters \"!\", ->\n moveCursor direction: \"right\",...
coffeescript
chosen
[ { "from": "system", "value": "Revert \"Better import for multiple Elm components.\"\n\nThis reverts commit aa1ac6b6e42c62efe1df8f7addd8ea83ffe34f16.\n" }, { "from": "human", "value": "$ = require('jquery')\nbootstrap = require('bootstrap')\nElm = require('./Main.elm')\n\nElm.embed(Elm.JdClock, d...
coffeescript
chosen
[ { "from": "system", "value": "Add wage theft report info endpoint\n" }, { "from": "human", "value": "# External Dependencies\ndebug = require('debug')('minimum-wage-service')\nexpress = require 'express'\n\n# Express Components\nrouter = express.Router()\n\n\n#Internal Dependencies\nemployer_siz...
coffeescript
chosen
[ { "from": "system", "value": "Add naked requires for circle and draggable\n" }, { "from": "human", "value": "{SVG} = require '../test/vendor/svg'\n\nrequire './_module'\nrequire './import'\nPointerTool = require './pointer-tool'\nSelectionModel = require './selection-model'\nSelectionView = requ...
coffeescript
chosen
[ { "from": "system", "value": "Insert new file input on focus instead of after change.\n\nUser will know about multi-upload earlier.\nThis also fix the issue that in the past,\nsudden insertion would push submit button,\nmaking the user submit click to miss.\n" }, { "from": "human", "value": "# I...
coffeescript
chosen
[ { "from": "system", "value": "Add specs for none selected and some selected callbacks.\n" }, { "from": "human", "value": "describe 'thumb_selector', ->\n beforeEach ->\n loadFixtures 'thumb_selector.html'\n window.thumb_selector_init()\n\n describe 'inidividual selection', ->\n it 'gi...
coffeescript
chosen
[ { "from": "system", "value": "Add test to ensure an event is emitted.\n" }, { "from": "human", "value": "{BattleServer} = require('../').server\n\ndescribe 'BattleServer', ->\n it 'can create a new battle', ->\n server = new BattleServer\n battleId = server.createBattle()\n server.batt...
coffeescript
chosen
[ { "from": "system", "value": "Use only one reactiveVar to manage tableExporting state\n" }, { "from": "human", "value": "Template.downloadCSVModal.onCreated ->\n @prepared = new ReactiveVar(null)\n @preparing = new ReactiveVar(false)\n\n @autorun =>\n if @prepared.get()\n @preparing.s...
coffeescript
chosen
[ { "from": "system", "value": "Update site redirected to if user doesn't agree on the vex confirm popup\n" }, { "from": "human", "value": "$(document).on 'ready page:load page:restore', ->\n if gon.adult_validation is true and Cookies.get('adult') is undefined\n vex.dialog.confirm\n mess...
coffeescript
chosen
[ { "from": "system", "value": "Remove outdated options from datetimepicker call\n" }, { "from": "human", "value": "#= require jquery\n#= require jquery_ujs\n\n#= require jquery-fileupload/basic\n#= require jquery-fileupload/vendor/tmpl\n#= require attachments\n#= require dropzone_effects\n\n#= re...
coffeescript
chosen