conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Fix Message signature via API\n" }, { "from": "human", "value": "class @WalletMessageIndexDialogViewController extends ledger.common.DialogViewController\n\n view:\n derivationPath: '#derivation_path'\n message: '#message'\n confirmButton: '#confirm_button...
coffeescript
chosen
[ { "from": "system", "value": "Test that total is updated when lines change\n" }, { "from": "human", "value": "describe \"Skr.Models.SalesOrder\", ->\n\n xit \"must have a customer to save\", (done)->\n model = new Skr.Models.SalesOrder()\n Lanes.Test.ModelSaver.perform(model, do...
coffeescript
chosen
[ { "from": "system", "value": "Add guard clause on variant overrides filter in case hub id is not present in the hubPermissions\n" }, { "from": "human", "value": "angular.module(\"admin.variantOverrides\").filter \"hubPermissions\", ($filter) ->\n return (products, hubPermissions, hub_id) ->\n ...
coffeescript
chosen
[ { "from": "system", "value": ":fire: Remove redundant part of PanelView\n" }, { "from": "human", "value": "Message = require './message'\n\nclass PanelView extends HTMLElement\n initialize:(@linter) ->\n @id = 'linter-panel'\n @_decorations = []\n\n empty: ->\n return unless @_decorat...
coffeescript
chosen
[ { "from": "system", "value": "Add varying enemy spawn frequency depending on selected level\n" }, { "from": "human", "value": "enemies = null\nenemyList = []\n\nclass EnemyManager\n\n maxEnemies: 15\n spawnFrequency: 3 #seconds\n\n constructor: ->\n @enemiesOnScreen = 0\n enemies = game...
coffeescript
chosen
[ { "from": "system", "value": "Set input encoding to utf8\n" }, { "from": "human", "value": "crypto = nodeRequire 'crypto'\n\nmodule.exports =\nclass Pasteboard\n signatureForMetadata: null\n\n md5: (text) ->\n crypto.createHash('md5').update(text).digest('hex')\n\n write: (text, metadata) ...
coffeescript
chosen
[ { "from": "system", "value": "Remove split which isn't in the node package dependencies\n" }, { "from": "human", "value": "#!highlights/node_modules/coffee-script/bin/coffee\n\nHighlights = require 'highlights'\nfs = require 'fs'\npath = require 'path'\nsplit = require 'split'\nhighlighter = new...
coffeescript
chosen
[ { "from": "system", "value": "Call toScroll after any new panel is . Also added an actual delay as it still scrolled to the 'old' location.. 10 ms was too short to allow the location to update after the old panel closes (on Chrome), 50 ms seems ok.\n" }, { "from": "human", "value": "Darkswarm.co...
coffeescript
chosen
[ { "from": "system", "value": ":green_heart: Fix missing config in search specs\n" }, { "from": "human", "value": "require './spec-helper'\nColorSearch = require '../lib/color-search'\n\ndescribe 'ColorSearch', ->\n [search, pigments, project] = []\n\n beforeEach ->\n waitsForPromise -> atom...
coffeescript
chosen
[ { "from": "system", "value": "Add a class for tracking current location\n" }, { "from": "human", "value": "Q = require('q')\n\nclass GeoCoder\n constructor: () ->\n @geocoder = new google.maps.Geocoder()\n code: (request) ->\n deferred = Q.defer()\n @geocoder.geocode request, (results...
coffeescript
chosen
[ { "from": "system", "value": "Change Author filter criteria in PaperEditRoute.\n\nDon't filter using AuthorGroup.paper, the yet-to-be-hydrated paper model\nwill clobber the reference and screw things up.\n" }, { "from": "human", "value": "ETahi.PaperEditRoute = ETahi.AuthorizedRoute.extend\n be...
coffeescript
chosen
[ { "from": "system", "value": "Add popups to the index map\n" }, { "from": "human", "value": "Shothere.Views.Movies ||= {}\n\nclass Shothere.Views.Movies.IndexView extends Shothere.Views.MapView\n template: JST[\"templates/movies/index\"]\n\n initialize: () ->\n @options.movies.bind('reset',...
coffeescript
chosen
[ { "from": "system", "value": "Fix for issue with blank names\n" }, { "from": "human", "value": "if @Curri && @Curri.user\n userData =\n email: Curri.user.email\n classRole: Curri.user.classrole_type\n created: Curri.user.created_at\n firstName: Curri.user.first_name || ''\n lastN...
coffeescript
chosen
[ { "from": "system", "value": "Fix StudentLoginModal when email or password is not included\n" }, { "from": "human", "value": "ModalView = require 'views/core/ModalView'\ntemplate = require 'templates/courses/student-log-in-modal'\nauth = require 'core/auth'\nforms = require 'core/forms'\nUser = ...
coffeescript
chosen
[ { "from": "system", "value": "Fix error for parsing undefined\n" }, { "from": "human", "value": "# Place all the behaviors and hooks related to the matching controller here.\n# All this logic will automatically be available in application.js.\n# You can use CoffeeScript in this file: http://coff...
coffeescript
chosen
[ { "from": "system", "value": "Adjust table widths for table panels\n" }, { "from": "human", "value": "## Key-value table panel without a table header\n\n## Example\n# React.createElement TablePanel,\n# type: 'success'\n# title: \"Volume for each room\"\n# obj: { ocean: 23, air: 12, ...
coffeescript
chosen
[ { "from": "system", "value": "Save the hub_id from the HomePi\n" }, { "from": "human", "value": "mongo = require '../models/connection'\n\nexports.collect = (req, res) ->\n if req.get('content-type').indexOf('application/json') == -1\n throw new Error(\"Body request is not JSON.\")\n\n...
coffeescript
chosen
[ { "from": "system", "value": "Add `templates` to the `hasFeature` function\n" }, { "from": "human", "value": "Settings = require 'settings-sharelatex'\n\nmodule.exports = Features =\n\texternalAuthenticationSystemUsed: ->\n\t\tSettings.ldap? or Settings.saml? or Settings.overleaf?.oauth?\n\n\tha...
coffeescript
chosen
[ { "from": "system", "value": "Fix scroll save for chat\n" }, { "from": "human", "value": "# 3rd Party Libraries\nimmutable = require('immutable')\n\n# Internal Libraries\nmisc = require('smc-util/misc')\n{types} = misc\n\nexports.get_store_def = (name) ->\n name: name\n\n stateTypes:\n ...
coffeescript
chosen
[ { "from": "system", "value": "Make test helpers smart about checking for suffixed tests\n" }, { "from": "human", "value": "Walrus = require '../../bin/walrus'\n\nTestHelpers =\n\n pass : ( specs, suffix='' ) ->\n\n fs = require 'fs'\n path = require 'path'\n exec = require( 'child...
coffeescript
chosen
[ { "from": "system", "value": "Check if CC is valid when setting payment\n" }, { "from": "human", "value": "Sprangular.controller 'CheckoutDeliveryAndPaymentCtrl', ($scope, Account, Cart, Checkout) ->\n $scope.order = Cart.current\n $scope.processing = false\n $scope.user = Account.user\n\n $...
coffeescript
chosen
[ { "from": "system", "value": "Initialize UPnP in a different way\n" }, { "from": "human", "value": "uuid = require 'node-uuid'\nssdp = require './ssdp'\nextend = require('./helpers').extend\n\nconfigDefaults =\n device:\n schema:\n prefix: 'urn:schemas-upnp-org:device'\n ...
coffeescript
chosen
[ { "from": "system", "value": "Add additional shortcut for go-to-line in Atom\n" }, { "from": "human", "value": "# Your keymap\n#\n# Atom keymaps work similarly to stylesheets. Just as stylesheets use selectors\n# to apply styles to elements, Atom keymaps use selectors to associate\n# keystrokes ...
coffeescript
chosen
[ { "from": "system", "value": "Clear cached views on update" }, { "from": "human", "value": "$ = require 'jquery'\nSplitView = require '../utils/split-view'\nStatusListView = require './status-list-view'\nDiffView = require './diff-view'\n\nclass ChangesView extends SplitV...
coffeescript
chosen
[ { "from": "system", "value": "Add mobile operator codes for Iraq\n" }, { "from": "human", "value": "\nPhone = require('../Phone')\nPhoneNumber = require('../PhoneNumber')\n\nclass Iraq\n\tconstructor: ->\n\t\t@countryName = \"Iraq\"\n\t\t@countryNameAbbr = \"IRQ\"\n\t\t@countryCode = '964'\n\t\t...
coffeescript
chosen
[ { "from": "system", "value": "Use sequentially instead of fromArray\n\nper FAQ recommendation,\nhttps://github.com/baconjs/bacon.js/wiki/FAQ#why-isnt-my-subscriber-call\ned\n" }, { "from": "human", "value": "Bacon = require 'baconjs'\natomStreams = require './streams.coffee'\n\nfilteredPathsStre...
coffeescript
chosen
[ { "from": "system", "value": "Trim trailing whitespace when exiting insert mode\n" }, { "from": "human", "value": "# auto-indent when changing line or inserting at end of line\natom.commands.onDidDispatch (evt) ->\n validCommands = [\n 'vim-mode-plus:change',\n 'vim-mode-plus:insert-after...
coffeescript
chosen
[ { "from": "system", "value": "Remove tasks/gyp.js before running tests\n\nOtherwise Grunt would prefer tasks/gyp.js over tasks/gyp.coffee and changes in the CoffeeScript source would have no effect.\n" }, { "from": "human", "value": "module.exports = (grunt) ->\n\tgrunt.initConfig\n\t\tclean:\n\...
coffeescript
chosen
[ { "from": "system", "value": "Add parens to call with return value\n" }, { "from": "human", "value": "window.FactlinkAppMode ?= {}\nwindow.FactlinkAppMode.coreInClient = (app) ->\n app.onClientApp = true\n app.startClientRegions()\n\n annotatedSiteEnvoy = window.initClientCommunicator()\n\n ...
coffeescript
chosen
[ { "from": "system", "value": "Remove start of line from comment regex in syntax highlighting\n" }, { "from": "human", "value": "# If this is your first time writing a language grammar, check out:\n# - http://manual.macromates.com/en/language_grammars\n\n'scopeName': 'source.ait'\n'name': 'Ait'...
coffeescript
chosen
[ { "from": "system", "value": "Break up commands into two spawns\n" }, { "from": "human", "value": "path = require 'path'\n\nmodule.exports = (grunt) ->\n {spawn} = require('./task-helpers')(grunt)\n\n grunt.registerTask 'codesign', 'Codesign the app', ->\n done = @async()\n\n if process....
coffeescript
chosen
[ { "from": "system", "value": "Call openPanel instead of openPane\n" }, { "from": "human", "value": "{_, Document} = require 'atom'\n\nSettingsView = null\nsettingsView = null\n\nconfigUri = 'atom://config'\n\ncreateSettingsView = (state) ->\n SettingsView ?= require './settings-view'\n unless ...
coffeescript
chosen
[ { "from": "system", "value": "Update format for campfire plugin\n" }, { "from": "human", "value": "NotificationPlugin = require \"../../notification-plugin\"\n\nclass Campfire extends NotificationPlugin\n @receiveEvent: (config, event) ->\n # Build the message\n if event.error\n mess...
coffeescript
chosen
[ { "from": "system", "value": "Use select2 for data_type select\n" }, { "from": "human", "value": "Augury.Views.Parameters.Edit = Backbone.View.extend(\n initialize: (attrs) ->\n @options = attrs\n\n events:\n 'click button#save': 'save'\n 'click button#cancel': 'cancel'\n 'change :...
coffeescript
chosen
[ { "from": "system", "value": "Use cloned model for UserPopoverContentView to not run into trouble with urls for following/unfollowing\n" }, { "from": "human", "value": "class window.UserPopoverContentView extends StatisticsPopoverContentView\n\n templateHelpers: ->\n heading: @model.get('nam...
coffeescript
chosen
[ { "from": "system", "value": "Add a new spec for testing getCode()\n" }, { "from": "human", "value": "{WorkspaceView} = require 'atom'\nCodeContext = require '../lib/code-context'\n\ndescribe 'CodeContext', ->\n beforeEach ->\n atom.workspaceView = new WorkspaceView\n textSource = atom.wo...
coffeescript
chosen
[ { "from": "system", "value": "Implement support for the new minimap decoration API\n" }, { "from": "human", "value": "{View} = require 'atom'\nMarkerView = require './marker-view'\nmodule.exports =\nclass MinimapSelectionView extends View\n markers: []\n @content: ->\n @div class: 'minimap-...
coffeescript
chosen
[ { "from": "system", "value": "ENHANCE: Allow usage of task inbox task ID URL parameter\n" }, { "from": "human", "value": "angular.module('doubtfire.units.states.task-inbox', [\n # 'doubtfire.units.states.task-inbox.task-commenter'\n # 'doubtfire.units.states.task-inbox.task-submission'\n])\n\n...
coffeescript
chosen
[ { "from": "system", "value": "Improve width and height detection.\n" }, { "from": "human", "value": "angular.module('browser').\nfactory('Browser', ->\n return class Browser\n @prefixs: ['webkit', 'Moz', 'ms', 'o', 'khtml']\n\n @window: window\n @element: window.document.documentEl...
coffeescript
chosen
[ { "from": "system", "value": "Add forceexit argument to test command\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: ['...
coffeescript
chosen
[ { "from": "system", "value": "Use skinny arrows in instance methods for consistency\n" }, { "from": "human", "value": "{View} = require 'atom'\n\n# View to show the grammar name in the status bar.\nmodule.exports =\nclass GrammarStatusView extends View\n @content: ->\n @a href: '#', class: '...
coffeescript
chosen
[ { "from": "system", "value": "Add basic unit tests for the hear & respond handlers\n\nBasic tests to make sure that the listerners for the various\ncommands are registered.\n\nTrying to see about testing that the config env vars are loaded\nas expected, but that's not quite right? Left some commented\nline...
coffeescript
chosen
[ { "from": "system", "value": "Fix deprecation warning with bodyParser middleware\n" }, { "from": "human", "value": "express = require 'express'\nassets = require 'connect-assets'\nstylus = require 'stylus'\nsession = require 'express-session'\ncookieParser = require 'cookie-parser'\nbodyParser =...
coffeescript
chosen
[ { "from": "system", "value": "Change UI to only require weather if closed.\n\nWhich greens are in play doesn't apply if the course isn't open, so stop\nasking for it.\n" }, { "from": "human", "value": "# Place all the behaviors and hooks related to the matching controller here.\n# All this logic...
coffeescript
chosen
[ { "from": "system", "value": "Include apostrophe in word regex\n" }, { "from": "human", "value": "module.exports =\n findMisspellings: (text) ->\n wordRegex = /(?:^|\\s)([a-zA-Z]+)(?=\\s|\\.|$)/g\n row = 0\n misspellings = []\n for line in text.split('\\n')\n while matches = wo...
coffeescript
chosen
[ { "from": "system", "value": "Document toJSON unit tests added\n" }, { "from": "human", "value": "'use strict'\n\n{Document, utils} = Neft\n\nVIEWS_CACHE_FILE = 'tmp/views.json'\n\nloaded = false\n\nexports.uid = do (i = 0) -> -> \"index_#{i++}.html\"\n\nexports.createView = do ->\n getViewPa...
coffeescript
chosen
[ { "from": "system", "value": "Add some more basic tests on denorm and field bindings\n" }, { "from": "human", "value": "###\n Copyright 2015, Quixey Inc.\n All rights reserved.\n\n Licensed under the Modified BSD License found in the\n LICENSE file in the root directory of this sourc...
coffeescript
chosen
[ { "from": "system", "value": "Fix Holy 80 columns line\n" }, { "from": "human", "value": "Declaration = require('../declaration')\n\nclass Filter extends Declaration\n @names = ['filter']\n\n # Check is it Internet Explorer filter\n check: (decl) ->\n v = decl.value\n v.toLowerCase().in...
coffeescript
chosen
[ { "from": "system", "value": "Switch appveyor from apm to npm\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: ['*.coffe...
coffeescript
chosen
[ { "from": "system", "value": "Refactor session service, add isAdmin() to check for admin status of current authenticated user\n" }, { "from": "human", "value": "angular.module('kassa').service('SessionService',[\n '$http'\n '$q'\n '$window'\n 'UserService'\n ($http, $q, $window, User)->\n ...
coffeescript
chosen
[ { "from": "system", "value": "Add helper function execGruntTask(task, callback)\n" }, { "from": "human", "value": "should = require('chai').should()\n\ndescribe 'grunt-node-gyp', ->\n\tdescribe 'configure', ->\n\t\tit 'should configure a release build by default', ->\n\t\t\t;\n\n\t\tit 'should c...
coffeescript
chosen
[ { "from": "system", "value": "Add a default title for new books or content\n" }, { "from": "human", "value": "define [\n 'marionette'\n 'cs!collections/content'\n 'hbs!templates/workspace/menu/add'\n 'hbs!templates/workspace/menu/add-item'\n 'bootstrapDropdown'\n], (Marionette, allContent, ...
coffeescript
chosen
[ { "from": "system", "value": "FIX: Fix incorrect template for user admin\n" }, { "from": "human", "value": "angular.module('doubtfire.admin.states.users', [])\n\n#\n# Administration panel for all doubtfire users\n#\n.config((headerServiceProvider) ->\n usersAdminViewStateData =\n url: \"/adm...
coffeescript
chosen
[ { "from": "system", "value": "Remove alt-shift-s bindings that conflict with typing AltGraph chars\n\nSigned-off-by: Max Brunsfeld <78036c9b69b887700d5846f26a788d53b201ffbb@github.com>\n" }, { "from": "human", "value": "# it's critical that these bindings be loaded after those snippets-1 so they...
coffeescript
chosen
[ { "from": "system", "value": ":lipstick: Move `handleEvents` method definition under the `constructor`\n\nMethod grouping\n" }, { "from": "human", "value": "AppMenu = require \"./AppMenu\"\nAppWindow = require \"./AppWindow\"\n\nfs = require \"fs\"\nipc = ...
coffeescript
chosen
[ { "from": "system", "value": "Set href on favicon <link> tag second time in a timeout\n\nThis somehow fixes chrome inconsistencies when changing favicon\n" }, { "from": "human", "value": "`import Ember from 'ember'`\n\nmanager = (headTag) ->\n @headTag = headTag if headTag\n\n return this\n\nm...
coffeescript
chosen
[ { "from": "system", "value": "Revert \"Behaviors support for Yandex.Maps\"\n" }, { "from": "human", "value": "class @Gmaps4Rails.Yandex.Map extends Gmaps4Rails.Common\n\n @include Gmaps4Rails.Interfaces.Map\n\n @include Gmaps4Rails.Map\n @include Gmaps4Rails.Yandex.Shared\n @include Gmaps...
coffeescript
chosen
[ { "from": "system", "value": "Fix bug when switching node language to a published version (getBoundingClientRect bug)\n" }, { "from": "human", "value": "viewportChannel = Backbone.Wreqr.radio.channel('viewport')\n\nviewportChannel.commands.setHandler 'init', (blockpanel) ->\n $(this).data 'bloc...
coffeescript
chosen
[ { "from": "system", "value": "Use repoPath as parameter name to loadStatuses()\n" }, { "from": "human", "value": "Git = require 'git-utils'\nfsUtils = require 'fs-utils'\npath = require 'path'\n\nmodule.exports =\n loadStatuses: (path) ->\n repo = Git.open(path)\n if repo?\n workingD...
coffeescript
chosen
[ { "from": "system", "value": "Tidy (looks easier to unterstand)\n" }, { "from": "human", "value": "{spawn} = require 'child_process'\n\nmodule.exports = (gulp) ->\n gulp.task 'build:webserver', ->\n node.kill() if node\n node = spawn \"coffee\", [\"src/server\", '--port', '8000'],\n ...
coffeescript
chosen
[ { "from": "system", "value": "Update the 1.0 stable mark\n" }, { "from": "human", "value": "#\n# CoffeeScript jQuery Plugin Boilerplate\n# By: Matthieu Aussaguel, http://www.mynameismatthieu.com, @mattaussaguel\n# Version: 1.0 alpha 1.0\n# Updated: June 27th, 2011\n#\n\njQuery ->\n $.pluginNa...
coffeescript
chosen
[ { "from": "system", "value": "Remove the status bar view if it already exists.\n" }, { "from": "human", "value": "{CompositeDisposable} = require 'atom'\n\nAboutView = null\nStatusBarView = null\n\naboutURI = 'atom://about'\n\ncreateAboutView = (state) ->\n AboutView ?= require './about-view'\n...
coffeescript
chosen
[ { "from": "system", "value": "Fix naming problem with ErrorType constants\n" }, { "from": "human", "value": "class Game.State extends Game.TwoWay\n constructor: () ->\n @objects = {}\n @eventCounters = {}\n @eventHandlers = {}\n super\n onEvent: (e) ->\n # Add timestamped instan...
coffeescript
chosen
[ { "from": "system", "value": "Add whitespaces around mathematical operators\n" }, { "from": "human", "value": "# Number to time conversions\nNumber::second ?= ->\n @seconds()\n\nNumber::seconds ?= ->\n this * 1000\n\nNumber::minute ?= ->\n @minutes()\n\nNumber::minutes ?= ->\n @seconds() * 6...
coffeescript
chosen
[ { "from": "system", "value": "Return a 201 on login\n" }, { "from": "human", "value": "{DeviceAuthenticator} = require 'meshblu-authenticator-core'\nMeshbluDB = require 'meshblu-db'\ndebug = require('debug')('meshblu-email-password-authenticator:sessions-controller')\nurl = require 'url'\n\nclas...
coffeescript
chosen
[ { "from": "system", "value": "Use task helper for determining lateness\n\nThe earlier check was marking exercises as non-late as soon as any work\nwas performed\n" }, { "from": "human", "value": "React = require 'react'\nBS = require 'react-bootstrap'\nS = require '../../helpers/string'...
coffeescript
chosen
[ { "from": "system", "value": "Fix the position of the token info tooltip\n" }, { "from": "human", "value": "App.CwbResultTableView = Em.View.extend\n\n didInsertElement: ->\n @$('[data-ot]').each (index, token) ->\n new Opentip(token, $(token).data('ot'), {style: 'dark'})\n" }, { ...
coffeescript
chosen
[ { "from": "system", "value": "Make sure cache views are set before onShow\n" }, { "from": "human", "value": "class Backbone.Factlink.CachingController extends Backbone.Factlink.BaseController\n openController: ->\n super\n @cached_views = new Backbone.Factlink.DetachedViewCache\n\n close...
coffeescript
chosen
[ { "from": "system", "value": "Disable built-in atom spell-check package\n\nFor now. Waiting for it to support French.\n" }, { "from": "human", "value": "\"*\":\n core:\n audioBeep: false\n closeEmptyWindows: false\n disabledPackages: [\n \"language-clojure\"\n \"language-go\"...
coffeescript
chosen
[ { "from": "system", "value": "Remove spaces before computing hash\n" }, { "from": "human", "value": "ssdeep = require 'ssdeep'\nhtmlToText = require 'html-to-text'\nfs = require 'fs'\n\nextractText = (body) ->\n return htmlToText.fromString body\n\nmodule.exports = {\n computeHash: (body, cont...
coffeescript
chosen
[ { "from": "system", "value": "Move the sorting of files to createdOn\n" }, { "from": "human", "value": "`import Ember from 'ember'`\n`import PaginateMixin from 'irene/mixins/paginate'`\n\nFileListComponent = Ember.Component.extend PaginateMixin,\n\n project: null\n\n targetObject: \"file\"\n ...
coffeescript
chosen
[ { "from": "system", "value": "Add link to non-admin profile to registeredUsers page\n" }, { "from": "human", "value": "React = require('react')\n\nimport { Link } from 'react-router-dom'\nimport { Table } from 'react-bootstrap'\n\nexport default RegisteredUsers = (props) ->\n <Table striped c...
coffeescript
chosen
[ { "from": "system", "value": "Clear dataset elements for pooled objects\n" }, { "from": "human", "value": "module.exports =\nclass DOMElementPool\n constructor: ->\n @freeElementsByTagName = {}\n @freedElements = new Set\n\n clear: ->\n @freedElements.clear()\n for tagName, freeEle...
coffeescript
chosen
[ { "from": "system", "value": "Use multi property set in example" }, { "from": "human", "value": "Monkey.registerView 'post', '''\n div[id=\"monkey\"]\n h1 title\n p body\n h3 \"Comments (\" commentCount \")\"\n form[submit=postComment]\n p\n textarea[change=commentEdited...
coffeescript
chosen
[ { "from": "system", "value": "Add command for reloading all" }, { "from": "human", "value": "UIWatcher = require './ui-watcher'\n\nmodule.exports =\n activate: (state) ->\n new UIWatcher\n themeManager: atom.themes\n\n" }, { "from": "gpt", "value": "UIWatcher = require './ui...
coffeescript
chosen
[ { "from": "system", "value": ":new: Add observe event on EditorRegistry\n" }, { "from": "human", "value": "{Emitter, CompositeDisposable} = require('atom')\nEditorLinter = require('./editor-linter')\n\nclass EditorRegistry\n constructor: ->\n @emitter = new Emitter\n @subscriptions = new ...
coffeescript
chosen
[ { "from": "system", "value": "Remove text-error from title of error view" }, { "from": "human", "value": "{View} = require 'atom'\n{GitNotFoundError} = require './git-bridge'\n\nclass GitNotFoundErrorView extends View\n\n @content: (err) ->\n @div class: 'overlay from-top padded merge-confli...
coffeescript
chosen
[ { "from": "system", "value": "Add start fun = issue\n" }, { "from": "human", "value": "# Parse YAML to get config\nparse = require './libs/yaml.js'\nfs = require 'fs'\npath = require 'path'\nget = require './libs/get.js'\nchecks = require './libs/checks.js'\nparse = require './libs/parse.js'\n# ...
coffeescript
chosen
[ { "from": "system", "value": "Fix help link to be real\n" }, { "from": "human", "value": "require 'colors'\ninquirer = require 'inquirer'\nW = require 'when'\n\n###*\n * A light wrapper for the prompt interface, which uses inquirer to gather info\n * from the user via command line. The us...
coffeescript
chosen
[ { "from": "system", "value": "Use updated sort syntax for sortedPhases.\n" }, { "from": "human", "value": "ETahi.PaperManageController = Ember.ObjectController.extend\n sortedPhases: ( ->\n Ember.ArrayProxy.createWithMixins(Em.SortableMixin, {\n content: @get('model.phases')\n sort...
coffeescript
chosen
[ { "from": "system", "value": "Add a check for Chase's \"System Unavailable\" error." }, { "from": "human", "value": "wesabe.provide 'fi-scripts.com.chase.errors',\n dispatch: ->\n if page.present e.errors.unableToCompleteAction\n job.fail 503, 'fi.error'\n\n elements:\n errors:\n ...
coffeescript
chosen
[ { "from": "system", "value": "Support empty query parameters for Spree.url\n" }, { "from": "human", "value": "#= require jsuri\nclass window.Spree\n @ready: (callback) ->\n jQuery(document).ready(callback)\n\n # Helper function to take a URL and add query parameters to it\n # Uses the JSUr...
coffeescript
chosen
[ { "from": "system", "value": "Allow empty state in loading indicator\n" }, { "from": "human", "value": "window.ReactLoadingIndicator = React.createBackboneClass\n displayName: 'ReactLoadingIndicator'\n changeOptions: 'sync request'\n\n render: ->\n if !@model() || @model().loading()\n ...
coffeescript
chosen
[ { "from": "system", "value": "Add logging for Labels http actions\n" }, { "from": "human", "value": "EditorRealTimeController = require \"../Editor/EditorRealTimeController\"\nLabelsHandler = require './LabelsHandler'\nlogger = require 'logger-sharelatex'\n\n\nmodule.exports = LabelsController =...
coffeescript
chosen
[ { "from": "system", "value": "Make the main entry point depend on noPlugin, not replicate it\n" }, { "from": "human", "value": "###!\n* Storyboard\n* (c) Guillermo Grau Panea 2016\n* License: MIT\n###\n\n# Chalk is disabled by default in the browser. Override\n# this default (we'll handle ANSI c...
coffeescript
chosen
[ { "from": "system", "value": "Add modules arg, remove @get, pass generations functions as update property\n" }, { "from": "human", "value": "module.exports = (Impromptu) ->\n @register 'pwd', ->\n process.env.PWD\n\n @register 'prettyPwd', ->\n cwd = process.env.PWD\n if cwd.indexOf p...
coffeescript
chosen
[ { "from": "system", "value": "Clean backtraces from injected files\n" }, { "from": "human", "value": "currentTest = {}\nstartTime = null\n\nQUnit.testStart (context) ->\n currentTest = {}\n currentTest.name = context.name\n currentTest.assertions = 0\n currentTest.backtrace = []\n startTime...
coffeescript
chosen
[ { "from": "system", "value": "Change DS.attr type from integer to number\n" }, { "from": "human", "value": "App.User = DS.Model.extend\n firstName: DS.attr(\"string\")\n lastName: DS.attr(\"string\")\n email: DS.attr(\"string\")\n role: DS.attr(\"string\")\n password: DS.attr(\"string\"...
coffeescript
chosen
[ { "from": "system", "value": "Use dispatcher for route loading.\n" }, { "from": "human", "value": "goog.provide 'App'\n\nclass App\n\n ###*\n @param {Element} element\n @param {app.Error} error\n @param {app.Routes} routes\n @param {app.Storage} storage\n @param {app.react.App} r...
coffeescript
chosen
[ { "from": "system", "value": "Remove src from nof list of directories\n\nIt no longer contains any package specs.\n" }, { "from": "human", "value": "module.exports = (grunt) ->\n {spawn} = require('./task-helpers')(grunt)\n\n grunt.registerTask 'nof', 'Un-focus all specs', ->\n nof = requir...
coffeescript
chosen
[ { "from": "system", "value": "Add batch download tracking separately\n" }, { "from": "human", "value": "Species.BatchDownloadComponent = Ember.Component.extend\n tagName: 'a'\n template: Ember.Handlebars.compile('<i class=\"fa fa-download\"></i>')\n\n click: (event) ->\n checked = $(event....
coffeescript
chosen
[ { "from": "system", "value": "Fix regex gone wild overwritting.\n\nBelived this was a side-effect of the mass renaming\nfrom Stockor to Lanes\n" }, { "from": "human", "value": "Lanes.Models.Mixins.HasCodeField = {\n\n INVALID: /[^A-Z0-9a-z]/\n\n included: ->\n this.prototype.INVALID...
coffeescript
chosen
[ { "from": "system", "value": "Make it possible to copy JSONs\n\nWhen pressing escape the results shouldn't close anymore...\n" }, { "from": "human", "value": "module.exports = class JSONModal\n @Show: (json) ->\n unless typeof(json) == 'object'\n try\n json = ...
coffeescript
chosen
[ { "from": "system", "value": "Allow newlines in comment field. Meta/ctrl-enter submits" }, { "from": "human", "value": "class Views.DiscussionView extends View\n @content: ->\n @div class: 'discussion', =>\n @subview 'commentsList', new Views.RelationView(\n buildItem: (comment) ...
coffeescript
chosen
[ { "from": "system", "value": "Change \"This attempt has been logged\" to something more familiar\n\nTest Plan: None\n\nReviewers: ben\n\nReviewed By: ben\n\nDifferential Revision: http://phabricator.khanacademy.org/D3700\n" }, { "from": "human", "value": "# Description:\n# A cow's gonna be a c...
coffeescript
chosen
[ { "from": "system", "value": "Remove require tree to eliminate unneeded scripts\n" }, { "from": "human", "value": "# This is a manifest file that'll be compiled into application.js, which will include all the files\n# listed below.\n#\n# Any JavaScript/Coffee file within this directory, lib/asse...
coffeescript
chosen
[ { "from": "system", "value": "Make BeanBuilder more flexible, fix members' scopes.\n" }, { "from": "human", "value": "{Wrappers} = require \"#{__dirname}/wrappers\"\n\n\nclass BeanBuilder\n\n constructor: ({@basePath, @suffix}) ->\n if @suffix[0] is '_'\n @suffix = @suffix[1..]\n\n bui...
coffeescript
chosen
[ { "from": "system", "value": "Use a real editor in SideViewSpec.\n" }, { "from": "human", "value": "SideView = require '../lib/side-view'\n\ndescribe 'SideView', ->\n\n side = null\n view = null\n line = null\n\n beforeEach ->\n line = {}\n side = {\n klass: -> 'klass',\n sit...
coffeescript
chosen
[ { "from": "system", "value": "Add in /status end point\n" }, { "from": "human", "value": "Settings = require \"settings-sharelatex\"\nlogger = require \"logger-sharelatex\"\nlogger.initialize(\"track-changes\")\n\nHttpController = require \"./app/js/HttpController\"\nexpress = require \"express\...
coffeescript
chosen
[ { "from": "system", "value": "Return empty array when prefix is empty\n\nPrevents an error when the users types an invalid character (e.g. german\numlauts).\n" }, { "from": "human", "value": "fs = require 'fs'\npath = require 'path'\n\nmodule.exports =\n selector: '.source.lua'\n disableFo...
coffeescript
chosen