conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Allow groups to be limited by a number of groups\n" }, { "from": "human", "value": "noflo = require 'noflo'\n\nclass Group extends noflo.Component\n constructor: ->\n @groups = []\n @newGroups = []\n\n @inPorts =\n in: new noflo.ArrayPort\n group...
coffeescript
chosen
[ { "from": "system", "value": "Use a selector in call to $().on to allow delegation of events\n\nThis means that we don't have to rebind to our new form on element replace\n" }, { "from": "human", "value": "$(document).ready ->\n $(\".vote-form\").on 'ajax:success', (event, xhr, status) ->\n ...
coffeescript
chosen
[ { "from": "system", "value": "Rename commands in package main\n" }, { "from": "human", "value": "GitHubFile = require './github-file'\n\nmodule.exports =\n activate: ->\n return unless atom.project.getRepo()?\n\n atom.workspaceView.eachPane (pane) ->\n pane.command 'github:file', ->...
coffeescript
chosen
[ { "from": "system", "value": "Improve merge strategy for one way sync\n" }, { "from": "human", "value": "import UserEvents from '/imports/collections/userEvents.coffee'\nimport Incidents from '/imports/collections/incidentReports.coffee'\nimport Articles from '/imports/collections/articles.coffe...
coffeescript
chosen
[ { "from": "system", "value": "Move click function to method\n" }, { "from": "human", "value": "kd = require 'kd'\nCustomLinkView = require '../customlinkview'\ntrackEvent = require 'app/util/trackEvent'\n\n\nmodule.exports = class ComputePlansModalFooterLink extends CustomLink...
coffeescript
chosen
[ { "from": "system", "value": "Support fenced yaml code blocks\n\nRefs atom/language-gfm#17\n" }, { "from": "human", "value": "extensionsByFenceName =\n 'bash': 'sh'\n 'coffee': 'coffee'\n 'coffeescript': 'coffee'\n 'coffee-script': 'coffee'\n 'css': 'css'\n 'go': 'go'\n 'html': 'html'\n ...
coffeescript
chosen
[ { "from": "system", "value": "Use correct name for the description.\n" }, { "from": "human", "value": "{expect} = require \"chai\"\nutils = require \"../../utils\"\n\n{Collections} = utils.require \"base\"\nJitter = utils.require(\"models/transforms/jitter\").Model\n\ndescribe \"step_interpolato...
coffeescript
chosen
[ { "from": "system", "value": "Add methods to find or retrieve all students\n" }, { "from": "human", "value": "{CrudConfig, makeSimpleStore, extendConfig} = require './helpers'\n_ = require 'underscore'\n\nPerformanceConfig = {\n exports:\n getStudentOfTask: (courseId, taskId) ->\n perfo...
coffeescript
chosen
[ { "from": "system", "value": "Set chatops width to 675\n" }, { "from": "human", "value": "Meteor.startup ->\n\n\tRocketChat.callbacks.add 'enter-room', ->\n\t\t#if Meteor.user()?.services?.github?.id or Meteor.user()?.services?.gitlab?.id\n\t\t# console.log 'Adding chatops to tabbar'\n\t\t# Rock...
coffeescript
chosen
[ { "from": "system", "value": "Add list-select to Selection menu\n" }, { "from": "human", "value": "# See https://atom.io/docs/latest/hacking-atom-package-word-count#menus for more details\n# TODO: Do we really want these in the context menu? Might be too much clutter.\n'context-menu':\n 'atom-t...
coffeescript
chosen
[ { "from": "system", "value": "Fix typo in description for Python\n" }, { "from": "human", "value": "module.exports = {\n\n name: \"Python\"\n namespace: \"python\"\n scope: ['source.python']\n\n ###\n Supported Grammars\n ###\n grammars: [\n \"Python\"\n ]\n\n ###\n Supported extens...
coffeescript
chosen
[ { "from": "system", "value": "Use updated wording for help\n" }, { "from": "human", "value": "_ = require 'underscore'\nReact = require 'react'\nBS = require 'react-bootstrap'\nTutorLink = require './link'\n\nCourseGroupingLabel = require './course-grouping-label'\n\nNoPeriods = React.createClas...
coffeescript
chosen
[ { "from": "system", "value": "Revert \"Try to put line back in\"\n\nThis reverts commit 4ebf336378519a5b7462cbafbb7391f9d6cfba46.\n" }, { "from": "human", "value": "if Meteor.isClient\n if Package.ui\n Handlebars = Package.ui.Handlebars\n\n Handlebars.registerHelper 't9n', (x, prefix='') ->...
coffeescript
chosen
[ { "from": "system", "value": "Remove rmdir from test helpers.\n" }, { "from": "human", "value": "util = require 'util'\npath = require 'path'\nexpress = require 'express'\n{spawn} = require 'child_process'\n\n\nexports.removeDirectory = (destination, callback) ->\n rm = spawn 'rm', ['-R', desti...
coffeescript
chosen
[ { "from": "system", "value": "Add additional entries to the Idris main menu\n\nIn particular: Apropos, Open REPL, Show Holes and Stop Compiler\nAll these are commands which are not specific to a particular location\nin the idris file being edited.\n" }, { "from": "human", "value": "'menu':\n [\...
coffeescript
chosen
[ { "from": "system", "value": "Improve checking for presence of saved filters\n" }, { "from": "human", "value": "angular.module(\"admin.indexUtils\").factory 'QueryPersistence', (localStorageService)->\n new class QueryPersistence\n storageKey: ''\n storableFilters: []\n\n constructor: ...
coffeescript
chosen
[ { "from": "system", "value": "Test to ensure compilation issues are caught.\n" }, { "from": "human", "value": "path = require 'path'\nvows = require 'vows'\nassert = require 'assert'\ncoffeelint = require path.join('..', 'lib', 'coffeelint')\n\n\nvows.describe('coffeelint').addBatch({\n\n \"C...
coffeescript
chosen
[ { "from": "system", "value": "Improve behaviour if there is a selenium error\n\nOld behaviour: tests would all try to run and fail because selenium\nwas broken.\n\nNew behaviour: beforeall hook fails correctly and we get just\none error telling us the problem.\n" }, { "from": "human", "value": "...
coffeescript
chosen
[ { "from": "system", "value": "Exit app if exitAppWhenFinished is set" }, { "from": "human", "value": "{$$} = require 'space-pen'\nnakedLoad 'jasmine'\nnakedLoad 'jasmine-html'\nnakedLoad 'jasmine-focused'\n\n$ = require 'jquery'\n\ndocument.title = \"Benchmark Suite\"\n\n$('head').append $$ ->\n...
coffeescript
chosen
[ { "from": "system", "value": "Disable button and change text while loading.\n" }, { "from": "human", "value": "class App.Views.Users.Edit extends App.View\n template: JST['application/templates/users/edit']\n\n events:\n 'submit form' : 'onFormSubmit'\n\n render: ->\n @$el.html(@templat...
coffeescript
chosen
[ { "from": "system", "value": "Reconnect dongle at the end of FUP\n" }, { "from": "human", "value": "class @UpdateDoneViewController extends @UpdateViewController\n\n localizablePageSubtitle: \"update.done.update_succeeded\"\n localizableNextButton: \"common.restore\"\n navigation:\n nextRo...
coffeescript
chosen
[ { "from": "system", "value": "Add Caman process event listeners\n" }, { "from": "human", "value": "do ->\n\n\tmapOptions =\n\t\tcenter: new (google.maps.LatLng)(43.8321591, 4.3428536)\n\t\tmapTypeId: google.maps.MapTypeId.ROADMAP\n\t\tstreetViewControl: false\n\t\tscrollwheel: false\n\t\tnavigat...
coffeescript
chosen
[ { "from": "system", "value": "Adjust user model to twitterbot\n" }, { "from": "human", "value": "orm = require('orm')\n\nmodule.exports = (db, callback) ->\n\tdb.define(\"user\", {\n\t\tid_str: String,\n\t\tscreen_name: String,\n\t\tname: String,\n\t\tprofile_image_url: String,\n\t\tlocation: St...
coffeescript
chosen
[ { "from": "system", "value": "Convert weird object notation to proper arrays\n" }, { "from": "human", "value": "process = () =>\n if @JasmineReporter.finished\n results = @JasmineReporter.results()\n json = JSON.stringify(results)\n\n # attach it to the DOM, so the it can be retrieved ...
coffeescript
chosen
[ { "from": "system", "value": "Rename flag value recalculating function\n" }, { "from": "human", "value": "---\n---\npow2 = (exp) ->\n\tbase = 1\n\tbase *= 2 while exp-- > 0\n\tbase\n\nupdate = ->\n\tval = 0\n\tfor el in document.querySelectorAll '.flag-list input'\n\t\tval += pow2 el.getAttribut...
coffeescript
chosen
[ { "from": "system", "value": "Fix text in demo workflow" }, { "from": "human", "value": "Store = require './store'\n\nEXAMPLE_WORKFLOW =\n id: 'GZ_MAIN_WORKFLOW'\n firstTask: 'interest'\n tasks:\n interest:\n type: 'drawing'\n question: 'Color some points'\n tools: [\n ...
coffeescript
chosen
[ { "from": "system", "value": "[Front] Fix controller name for the ws connection params\n" }, { "from": "human", "value": "define ['controllers/main_controller', 'jquery', 'websocket_rails', 'underscore', 'backbone', 'marionette'], (MainController, $) ->\n # Create the single page application\n ...
coffeescript
chosen
[ { "from": "system", "value": "Update repl prompt to work with async requests\n" }, { "from": "human", "value": "Readline = require 'readline'\n\nRobot = require '../robot'\nAdapter = require '../adapter'\n\nclass Shell extends Adapter\n constructor: (robot) ->\n super robot\n @repl = ...
coffeescript
chosen
[ { "from": "system", "value": "Add march=native flag to OFast\n" }, { "from": "human", "value": "module.exports = FLAGS =\n oF: '-Ofast'\n oS: '-Os'\n o3: ['-O3', '-march=native']\n o2: '-O2'\n o1: '-O1'\n o0: '-O0'\n\n g: '-g'\n pg: '-pg'\n s: '-static'\n ni: '-fno-...
coffeescript
chosen
[ { "from": "system", "value": "Fix question debounce bug that john already fixed.\n" }, { "from": "human", "value": "ETahi.QuestionComponent = Ember.Component.extend\n tagName: 'div'\n helpText: null\n displayContent: false\n\n model: (->\n ident = @get('ident')\n throw \"you must speci...
coffeescript
chosen
[ { "from": "system", "value": "atom: Hide error panel for linter\n" }, { "from": "human", "value": "\"*\":\n autoprefixer: {}\n core:\n themes: [\n \"one-dark-ui\"\n \"cobalt2-syntax\"\n ]\n editor:\n fontFamily: \"Menlo\"\n fontSize: 15\n invisibles:\n cr: \" \"\...
coffeescript
chosen
[ { "from": "system", "value": "Handle callbacks as well as promises\n" }, { "from": "human", "value": "fs = require \"fs\"\npath = require \"path\"\nCoffee = require \"coffee-script\"\nQ = require \"q\"\nJsdom = require \"jsdom\"\n\nMARKBACK_FILE = path.join(__dirname, '../build/markback.js')\n\n...
coffeescript
chosen
[ { "from": "system", "value": "Switch default browser to Chrome until Phantom 2.0\n\nCurrent version does not have function.bind\n" }, { "from": "human", "value": "_ = require('lodash')\nbrowsers = require('../browsers')\n\nremoteReporters = ['dots']\nremoteReporters.push('saucelabs') if process...
coffeescript
chosen
[ { "from": "system", "value": "Update brunch to also include normalize.css in build\n" }, { "from": "human", "value": "# noop.pw\nmoment = require 'moment'\n{renderVita} = require './demi'\nglobal.vita = renderVita './riptide/vita.yaml'\nglobal._now = moment()\nglobal.DEBUG = '-p' not in global.p...
coffeescript
chosen
[ { "from": "system", "value": "Implement meta-G (redo search in reverse)" }, { "from": "human", "value": "window.keymap.bindKeys '*'\n 'meta-:': 'command-panel:toggle'\n\nwindow.keymap.bindKeys '.command-panel .editor',\n escape: 'command-panel:toggle'\n enter: 'command-panel:execute'\n\nwindo...
coffeescript
chosen
[ { "from": "system", "value": "Add benchmark for inserting at the end of a file" }, { "from": "human", "value": "Buffer = require 'buffer'\nfs = require 'fs'\nrequire 'benchmark-helper'\n\ndescribe \"Editor\", ->\n editor = null\n\n beforeEach ->\n window.rootViewParentSelector = '#jasmine-c...
coffeescript
chosen
[ { "from": "system", "value": "Update score and deactivate rating properly.\n" }, { "from": "human", "value": "$('.rating').raty\n path: '/assets'\n score: ->\n $(this).attr('data-score')\n click: (score, _) ->\n $.ajax\n type: 'post',\n url: $(this).attr('data-uri'),\n da...
coffeescript
chosen
[ { "from": "system", "value": "Load snippets for cocoatouch after loading\n" }, { "from": "human", "value": "_ = require 'underscore-plus'\nRubyMotionAutocompleteView = require './rubymotion-autocomplete-view'\n\nmodule.exports =\n autocompleteViews: []\n editorSubscription: null\n snippetPref...
coffeescript
chosen
[ { "from": "system", "value": "Fix selector in tabs spec\n" }, { "from": "human", "value": "describe \"tabs\", ->\n beforeEach ->\n # run all Blacklight.onload functions\n Blacklight.activate()\n\n describe \"dashboard tabs\", ->\n beforeEach ->\n # setup the tabs like the homepag...
coffeescript
chosen
[ { "from": "system", "value": "Trim struct: prefix in display output\n" }, { "from": "human", "value": "Point = require 'point'\nChildProcess = require 'child-process'\n\nmodule.exports =\nclass TagGenerator\n\n constructor: (@path, @callback) ->\n\n parsePrefix: (section = \"\") ->\n if sec...
coffeescript
chosen
[ { "from": "system", "value": "Make commit calendar size depend on window size\n\nSigned-off-by: Dmitriy Zaporozhets <be23d75b156792e5acab51b196a2deb155d35d6a@gmail.com>\n" }, { "from": "human", "value": "class @Calendar\n options =\n month: \"short\"\n day: \"numeric\"\n year: \"numeri...
coffeescript
chosen
[ { "from": "system", "value": "Fix Update Book Without Author" }, { "from": "human", "value": "Q = require('q')\nmongoose = require('mongoose')\n\nlog = require(\"#{__dirname}/../../log\")\n\nretrieve = require(\"#{__dirname}/../../retrieve\")\n\nSchema = mongoose.Schema\nObjectId = Schema.Types....
coffeescript
chosen
[ { "from": "system", "value": "Convert to using newer property initializers in the JS for Jitter\n" }, { "from": "human", "value": "_ = require \"underscore\"\nTransform = require \"./transform\"\n\nclass Jitter extends Transform.Model\n initialize: (attrs, options) ->\n super(attrs, options)...
coffeescript
chosen
[ { "from": "system", "value": "Create JSON of creator in Comment templateHelper\n" }, { "from": "human", "value": "class window.Comment extends Backbone.Model\n\n templateHelpers: =>\n creator: @creator\n\n creator: -> new User(@get('created_by'))\n\n can_destroy: -> @creator().get('id') ==...
coffeescript
chosen
[ { "from": "system", "value": "Use ArrayPort to allow keying for 'in' and 'ready'\n" }, { "from": "human", "value": "noflo = require \"noflo\"\n_s = require \"underscore.string\"\n{ CacheStorage } = require \"../lib/cache_storage\"\n\nclass Cache extends noflo.Component\n\n description: _s.clean...
coffeescript
chosen
[ { "from": "system", "value": "Fix merging of participation and page views\n\nthe binning of page views and participation from the api into dates is\nfixed.\n\ncloses ADMIN-1299\n\nnote: there was a change in this file from binning by day -> hour to fix\na bug that looks like was a timezone issue. See CNVS-1...
coffeescript
chosen
[ { "from": "system", "value": "Add references to internal modules as member variables of class EyeTribe\n" }, { "from": "human", "value": "class EyeTribe\n @Tracker = require('./tracker')\n @version = require('./version')\n\n @loop = (config, callback)->\n if typeof config == 'function'\n ...
coffeescript
chosen
[ { "from": "system", "value": "Fix flatten function (bug introduce by coffee migration)" }, { "from": "human", "value": "\nmodule.exports.pad = (n, size) ->\n n = n.toString()\n pad = ''\n size = size - n.length\n for i in [0 .. size]\n pad += ' '\n n + pad\n\nmodule.exports...
coffeescript
chosen
[ { "from": "system", "value": "Deal with YAML parse errors\n" }, { "from": "human", "value": "noflo = require 'noflo'\nfbpSpec = require 'fbp-spec'\n\nexports.getComponent = ->\n c = new noflo.Component\n c.inPorts.add 'in',\n datatype: 'object'\n description: 'Project'\n c.inPorts.add '...
coffeescript
chosen
[ { "from": "system", "value": "Switch to Spree.ajax & success / error callbacks\n" }, { "from": "human", "value": "$(document).ready ->\n return unless $('#sc_memo_edit_form').length > 0\n\n $('.js-edit-memo').on('click', (ev) =>\n ev.preventDefault()\n originalValue = $('#memo-edit-row')...
coffeescript
chosen
[ { "from": "system", "value": "Fix home page when not logged in\n" }, { "from": "human", "value": "TentStatus.Routers.posts = new class PostsRouter extends TentStatus.Router\n routerKey: 'posts'\n\n routes:\n \"\" : \"root\"\n \"profile\" : \"myProfile\"\n \"po...
coffeescript
chosen
[ { "from": "system", "value": "Update packages for new naming scheme\n" }, { "from": "human", "value": "{RootView} = require 'atom'\nshell = require 'shell'\n\ndescribe \"link package\", ->\n [editor] = []\n\n beforeEach ->\n atom.activatePackage('javascript-tmbundle', sync: true)\n atom....
coffeescript
chosen
[ { "from": "system", "value": "Remove bullets when collide with env.\n" }, { "from": "human", "value": "game.ToastEntity = me.ObjectEntity.extend(\n\n init: (x, y, settings) ->\n\n settings.image = 'toast'\n settings.spritewidth = '12'\n settings.spriteheight = '12'\n\n @parent x, y,...
coffeescript
chosen
[ { "from": "system", "value": "Make sure each pair of radio buttons gets a unique name attribute in the toggle switch directive.\n" }, { "from": "human", "value": "define [\n \"base\"\n], (App) ->\n App.directive \"toggleSwitch\", () ->\n restrict: \"E\"\n scope:\n description: \"@\"...
coffeescript
chosen
[ { "from": "system", "value": "Make each username in InlineUsers link to the userpage\n" }, { "from": "human", "value": "React = require 'react'\nEnrollButton = require '../students/enroll_button'\n\nInlineUsers = React.createClass(\n displayName: 'InlineUsers'\n render: ->\n ...
coffeescript
chosen
[ { "from": "system", "value": "Add tests for new get/format data methods\n" }, { "from": "human", "value": "assert = require('chai').assert\n_ = require('underscore')\nsinon = require('sinon')\nIndicator = require('../../models/indicator')\nfs = require 'fs'\n\nsuite('Indicator')\n\ntest(\".find ...
coffeescript
chosen
[ { "from": "system", "value": "Fix id generation within the resource combiner" }, { "from": "human", "value": "resourceRequest = require './resource-request.coffee'\nvirtual = require './virtual-resource.coffee'\n\nresources = {}\n\n# TODO : Implement cache invalidation on a periodic basis here\n...
coffeescript
chosen
[ { "from": "system", "value": "Update product ownership to refer to Product Manager\n\nThe current state of affairs is that products are owned by product owners, and products follow them when they change team.\nThe team information still seems useful so we leave it in.\n" }, { "from": "human", "v...
coffeescript
chosen
[ { "from": "system", "value": "Make syntax more coffee like.\n" }, { "from": "human", "value": "exports.app = app = require('../config/app').app\n\nexports.vows = require 'vows'\nexports.assert = require 'assert'\nexports.should = require 'should'\n\nexports.zombie = require 'zombie'...
coffeescript
chosen
[ { "from": "system", "value": "Use atom.rootView as target value" }, { "from": "human", "value": "KeybindingResolverView = require '../lib/keybinding-resolver-view'\n{$, RootView} = require 'atom'\n\ndescribe \"KeybindingResolverView\", ->\n beforeEach ->\n atom.rootView = new RootView\n a...
coffeescript
chosen
[ { "from": "system", "value": "Remove unused methods from PaneAxis" }, { "from": "human", "value": "{View} = require './space-pen-extensions'\nPane = null\n\n### Internal ###\nmodule.exports =\nclass PaneAxis extends View\n initialize: (@model) ->\n @onChildAdded(child) for child in @model.ch...
coffeescript
chosen
[ { "from": "system", "value": "Fix a typo the file description" }, { "from": "human", "value": "# The global namespace, the `Batman` function will also create also create a new\n# instance of Batman.Object and mixin all arguments to it.\nBatman = (mixins...) ->\n new Batman.Object(mixins...)\n\n...
coffeescript
chosen
[ { "from": "system", "value": "Remove the report ID from the Reports page\n" }, { "from": "human", "value": "React = require 'react'\n\nmodule.exports = React.createClass\n displayName: 'ChooseSubjectSet'\n \n getInitialState: ->\n subject_sets: []\n \n componentWillMount: ->\n @prop...
coffeescript
chosen
[ { "from": "system", "value": "Set partial option as default value\n" }, { "from": "human", "value": "kd = require 'kd'\nKDCustomHTMLView = kd.CustomHTMLView\nKodingSwitch = require 'app/commonviews/kodingswitch'\nCustomLinkView = require 'app/customlinkview'\nmodule.exports = class IDEChatHeadWa...
coffeescript
chosen
[ { "from": "system", "value": "Set owner=only on form 4 requests\n" }, { "from": "human", "value": "{DOMParser} = require 'xmldom'\nxpath = require 'xpath'\nrequest = require 'request'\n\nmodule.exports =\n getTransactions: (cik, type, callback) ->\n baseUrl = process.env.SEC_EDGAR_URL ? 'htt...
coffeescript
chosen
[ { "from": "system", "value": "Add ability to set output display options.\n" }, { "from": "human", "value": "noflo = require \"noflo\"\n\nclass Output extends noflo.Component\n\n description: \"This component receives input on a single inport, and sends the data items directly to console.log\"...
coffeescript
chosen
[ { "from": "system", "value": "Rework the context menu entries.\n" }, { "from": "human", "value": "# See https://atom.io/docs/latest/creating-a-package#menus for more details\n'context-menu':\n '.conflicted':\n 'Resolve: Current': 'merge-conflicts:accept-current'\n 'Resolve: Ours': 'merge-...
coffeescript
chosen
[ { "from": "system", "value": "Add filter widget to frames list.\nPP-8\n" }, { "from": "human", "value": "Steam.FrameListView = (_) ->\n _items = do nodes$\n\n activate = (item) ->\n for other in _items()\n if other is item\n other.isActive yes\n else\n other.isActive...
coffeescript
chosen
[ { "from": "system", "value": "Use SPA_MONGO_URL env. variable for remote mongodb.\n" }, { "from": "human", "value": "if Meteor.isServer\n CuratorSources = require './curatorSources.coffee'\n\n PromedPosts = null\n try\n # spaDb = new MongoInternals.RemoteCollectionDriver(process.env.SPA_MO...
coffeescript
chosen
[ { "from": "system", "value": "Revert changes made in sticky_footer as it's not working\n" }, { "from": "human", "value": "position_footer = ->\n mFoo = $('#footer')\n if $(document.body).height() + mFoo.outerHeight() < $(window).height() and mFoo.css('position') == 'fixed' or $(document.body)....
coffeescript
chosen
[ { "from": "system", "value": "Handle function keys when clicking on a factrelation\n" }, { "from": "human", "value": "class window.FactBottomView extends Backbone.Marionette.ItemView\n className: 'fact-bottom'\n\n template: 'facts/fact_bottom'\n\n events:\n \"click .js-add-to-channel\": \"...
coffeescript
chosen
[ { "from": "system", "value": "Fix ad hoc template name\n" }, { "from": "human", "value": "ETahi.NewAdHocTaskOverlayView = ETahi.OverlayView.extend\n templateName: 'overlays/new_adhoc_task_overlay'\n layoutName: 'layouts/new_task_overlay_layout'\n" }, { "from": "gpt", "value": "ETah...
coffeescript
chosen
[ { "from": "system", "value": "Fix store reference and log which store is using\n" }, { "from": "human", "value": "if Meteor.isServer\n\tstoreType = 'GridFS'\n\n\tif Meteor.settings?.public?.avatarStore?.type?\n\t\tstoreType = Meteor.settings.public.avatarStore.type\n\n\tRocketStore = RocketFile[...
coffeescript
chosen
[ { "from": "system", "value": "Use OptimistParser to determine the command" }, { "from": "human", "value": "OptimistParser = require './optimist_parser'\n\n\ncommands =\n run: \"Runs all tests found in /test\"\n watch: \"Runs all tests in /test and watches for changes\"\n help: \"Shows this he...
coffeescript
chosen
[ { "from": "system", "value": "Revert \"terminal: fetch account's group associated VMs in \"VM selection\" modal\"\n\nThis reverts commit e0d8381d3efe193093c86cf6f23ee399c2e109f2.\n" }, { "from": "human", "value": "# FIXME - Move this in a seperate file ~ GG\n\nclass VmListItem extends KDListItem...
coffeescript
chosen
[ { "from": "system", "value": "Make error use the standard addError function.\n" }, { "from": "human", "value": "'use strict'\n\napp.factory('uploadService', [\n 'routerService',\n (router) ->\n removedAsset: undefined\n\n # callbacks for ng-flow:\n\n fileSuccess: (file) ->\n file...
coffeescript
chosen
[ { "from": "system", "value": "Use property vs state to determine toggled status\n" }, { "from": "human", "value": "React = require 'react'\nBS = require 'react-bootstrap'\n\nTeacherContentToggle = React.createClass\n\n getInitialState: ->\n isShowing: false\n\n propTypes:\n onChange: Rea...
coffeescript
chosen
[ { "from": "system", "value": "Check that index page is legitimate\n" }, { "from": "human", "value": "d = ->\n console.log arguments...\n\nbase = global.wolisconfig.test_url\n\ncasper.start base, ->\n this.test.assertHttpStatus 200\n\ncasper.run ->\n @test.done()\n" }, { "from": "gpt",...
coffeescript
chosen
[ { "from": "system", "value": "Sort out ES6 import confusion; add POST to /api/me to record user visit" }, { "from": "human", "value": "`import BaseRoute from './_base'`\n\nRoute = BaseRoute.extend\n model: ->\n # return the current user as the model if authenticated, otherwise a blank object...
coffeescript
chosen
[ { "from": "system", "value": "Fix xmlDate and add baseURL\n" }, { "from": "human", "value": "path = require 'path'\n\nROOT = process.env.APP_ROOT\n\nexpress = require 'express'\nhandlebars = require 'express-handlebars'\nbodyParser = require 'body-parser'\nmorgan = require 'morgan'\nfavicon = re...
coffeescript
chosen
[ { "from": "system", "value": "Check whether there are currently any scrollbars\n" }, { "from": "human", "value": "scrollbarWidth = 0\nFactlinkJailRoot.loaded_promise.then ->\n # Create the measurement nod; see http://davidwalsh.name/detect-scrollbar-width\n scrollDiv = document.createElement(\...
coffeescript
chosen
[ { "from": "system", "value": "Update the test descriptions to match the tests" }, { "from": "human", "value": "Transport = require \"../src/redis-transport\"\nRemoteChannel = require \"../src/remote-channel\"\nhelpers = require \"./helpers\"\n{testify,assert,events} = helpers\n\nmake = ->\n \n ...
coffeescript
chosen
[ { "from": "system", "value": "Create keymaps for other platforms.\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 w...
coffeescript
chosen
[ { "from": "system", "value": "Set default zoom level to 16\n" }, { "from": "human", "value": "# This file uses the Garber-Irish method for allowing \"per-page Javascript.\"\n# I'm using the `gistyle` gem to handle the actual implementation of the pattern.\n\nAPP.init = ->\n console.log \"applic...
coffeescript
chosen
[ { "from": "system", "value": "Allow system, attribute and heading as grammar start rules.\n" }, { "from": "human", "value": "shell = require 'shelljs'\n\n'use strict'\n\nmodule.exports = (grunt) ->\n\n grunt.initConfig\n\n pkg: grunt.file.readJSON 'package.json'\n\n cucumberjs:\n src...
coffeescript
chosen
[ { "from": "system", "value": "Add remove-brackets command to menu\n" }, { "from": "human", "value": "'menu': [\n {\n 'label': 'Packages'\n 'submenu': [\n 'label': 'Bracket Matcher'\n 'submenu': [\n { 'label': 'Go To Matching Bracket', 'command': 'bracket-matcher:go-to-mat...
coffeescript
chosen
[ { "from": "system", "value": "Update Google client secret to fix login - all values set for meta.socrench.us" }, { "from": "human", "value": "Meteor.accounts.google.setSecret \"LeeZILT05svXh5PvNi7PrkrJ\"\nMeteor.accounts.facebook.setSecret \"b367d5310e20d877be768f000d61d7b9\"\n" }, { "fr...
coffeescript
chosen
[ { "from": "system", "value": ":fire: Remove registerView from Panel Model\n" }, { "from": "human", "value": "class Panel\n constructor: (@Linter)->\n @Decorations = []\n @Type = 'file'\n registerView: (View)->\n @View = View\n @View.Model = this\n removeDecorations: ->\n @Decor...
coffeescript
chosen
[ { "from": "system", "value": "Fix spelling error & remove link function in address-selection\n" }, { "from": "human", "value": "Sprangular.directive 'addressSelection', ->\n restrict: 'E'\n templateUrl: 'addresses/selection.html'\n scope:\n address: '='\n addresses: '='\n countries: ...
coffeescript
chosen
[ { "from": "system", "value": "Fix CSS class for N/As on Accounts Page\n" }, { "from": "human", "value": "@CodequestManager.module 'Dashboard', (Dashboard, App, Backbone, Marionette, $, _) ->\n Dashboard.Account = Marionette.ItemView.extend\n template: 'dashboard/account'\n className: ->\n...
coffeescript
chosen
[ { "from": "system", "value": "Make sure `/repo/poll` endpoint sends a response\n" }, { "from": "human", "value": "# Trigger implementation for being told when to poll\n\nBacon = require 'baconjs'\nrouter = require '../../../router'\n\nmodule.exports = (config) ->\n\tbus = new Bacon.Bus\n\n\turl ...
coffeescript
chosen
[ { "from": "system", "value": "Disable sharing of the same cache for\n\nconfigurations with different values of the 'node' option\n" }, { "from": "human", "value": "fs = require 'fs'\npath = require 'path'\n\ninitialized = false\n\ninitSignalHandlers = ->\n if initialized then return\n initiali...
coffeescript
chosen
[ { "from": "system", "value": "Initialize the model with the default code in the source editor\n" }, { "from": "human", "value": "# Eventful code comes here\n# Program state should not be manipulated outside events files\n\n# Initialize the canvas element (size, aspect ratio etc)\ncanvasInit = ()...
coffeescript
chosen
[ { "from": "system", "value": "Revert \"Add jQuery notify back in\"\n\nThis reverts commit 89bdb2cd13608ec82846d0e7b10f12e2ed176c18.\n\nConflicts:\n\tapp/assets/javascripts/shipit.js.coffee\n\nNot sure why, but this was breaking a blank app.\nWe should add it back, once we fix/figure out the problem.\n" },...
coffeescript
chosen
[ { "from": "system", "value": "Remove use of colors for now" }, { "from": "human", "value": "\nfs = require 'fs-extra'\npath = require 'path-extra'\n\nstringify = (str) ->\n return str if typeof str == 'string'\n if str.toString() == '[object Object]'\n str = JSON.stringify str\n else\n ...
coffeescript
chosen
[ { "from": "system", "value": "Add command after first argument\n\nThis forces the object to be interpreted as the\nsecond argument to the callWorkerMethod function\ninstead of as the first argument to function returned\nfrom callWorkerMethod.\n\nCloses #338\n" }, { "from": "human", "value": "mod...
coffeescript
chosen
[ { "from": "system", "value": "Remove div around toilet list\n" }, { "from": "human", "value": "riot = require('riot')\nReact = require('react')\n\nLocationInput = React.createClass\n render: -> `(\n <form>\n <input type=\"text\"></input>\n <input type=\"submit\"></input>\n </for...
coffeescript
chosen
[ { "from": "system", "value": "Make backup task exit when finishd\n" }, { "from": "human", "value": "mongoose = require('mongoose')\nmongoose.connect(\"mongodb://localhost/nrt_development\")\nIndicatorData = require('../../models/indicator_data').model\nfs = require('fs')\n\nconsole.log \"Yo\"\nI...
coffeescript
chosen
[ { "from": "system", "value": "Allow more complex contentType fields" }, { "from": "human", "value": "module.exports =\n processResponse: (res) ->\n # Check to see if the contentype is \"something/json\" or\n # \"something/somethingelse+json\"\n if res.contentType and (/^.*\\/(?:.*\\+)?...
coffeescript
chosen
[ { "from": "system", "value": "Check result of dependent service\n" }, { "from": "human", "value": "should = require 'should'\n{join} = require 'path'\n\n# lib stuff\n{load, process, applyPolicy, print, create, print} = require '../lib/main'\n\n# sample stuff\njargon = require '../sample/app/doma...
coffeescript
chosen