conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Change time for atom dark theme\n" }, { "from": "human", "value": "\"*\":\n core:\n disabledPackages: [\n \"wrap-guide\"\n \"activate-power-mode\"\n ]\n editor: {}\n \"exception-reporting\":\n userId: \"79967b20-c933-87c9-85b8-ea6b20c3a648\"\n ...
coffeescript
chosen
[ { "from": "system", "value": "Fix can't insert text to TextWell\n" }, { "from": "human", "value": "class ResultViewModel\n constructor: (@htmlArray) ->\n @html = ko.computed () =>\n @htmlArray().join(\"\")\n\n afterListviewRender: (element, data) ->\n # サムネイル表示時のレンダリングがうまくいかないので\n ...
coffeescript
chosen
[ { "from": "system", "value": "Refactor admin enterpriseCtrl - variable naming, if x then true else false antipattern\n" }, { "from": "human", "value": "angular.module(\"admin.enterprises\")\n .controller \"enterpriseCtrl\", ($scope, Enterprise, PaymentMethods, ShippingMethods) ->\n $scope.En...
coffeescript
chosen
[ { "from": "system", "value": "Support bumping version from apm publish\n\nNow you can just do `apm publish minor` to bump and tag a minor\nrelease and then publish it.\n" }, { "from": "human", "value": "path = require 'path'\ncolors = require 'colors'\nCSON = require 'season'\nconfig = require '...
coffeescript
chosen
[ { "from": "system", "value": "Add Jasmine tests to cover AJAX error notifications\n" }, { "from": "human", "value": "describe \"CMS\", ->\n beforeEach ->\n CMS.unbind()\n\n it \"should initialize Models\", ->\n expect(CMS.Models).toBeDefined()\n\n it \"should initialize Views\", ->\n ...
coffeescript
chosen
[ { "from": "system", "value": "Fix list of routes on startup\n" }, { "from": "human", "value": "routes = require './routes.js'\nbodyParser = require 'body-parser'\npath = require 'path'\nexpress = require 'express'\napp = express()\nmodels = require('mongoose').models\noutline = require '../outl...
coffeescript
chosen
[ { "from": "system", "value": "Make the details link for info working dynamically\n" }, { "from": "human", "value": "window.UsersComponent = class UsersComponent\n @initialize: ->\n @addEventListeners()\n\n @addEventListeners: ->\n @userDetailsTooltip()\n\n @userDetailsTooltip: ->\n t...
coffeescript
chosen
[ { "from": "system", "value": "Add specs for Results Validation.\n" }, { "from": "human", "value": "Helpers = require '../lib/helpers'\n\ndescribe \"The Results Validation Helper\", ->\n it \"should throw an exception when nothing is passed.\", ->\n expect( -> Helpers.validateResults()).toThr...
coffeescript
chosen
[ { "from": "system", "value": "Sim: Support JSON datatype a bit better.\n" }, { "from": "human", "value": "Bookshelf = require('bookshelf')\nconfig = require('../knex_config').database\n\nBookshelf.PG = PG = Bookshelf.initialize(config)\n\nTeam = PG.Model.extend\n tableName: 'teams'\n hasTimest...
coffeescript
chosen
[ { "from": "system", "value": "Use defaultClickHandler to navigate to subChannel\n" }, { "from": "human", "value": "class window.SubchannelItemView extends Backbone.Marionette.ItemView\n tagName: \"li\"\n events:\n click: \"clickHandler\"\n \"click .close\": \"destroySubchannel\"\n\n tem...
coffeescript
chosen
[ { "from": "system", "value": "Remove 90 degree limit from fan tool" }, { "from": "human", "value": "Mark = require './mark'\n\nclass FanMark extends Mark\n type: 'fan'\n source: null\n distance: 0\n angle: 0\n spread: 0\n\n constructor: ->\n super\n\n @set\n source: @source || {...
coffeescript
chosen
[ { "from": "system", "value": "Handle 404's better for queues\n" }, { "from": "human", "value": "# For some odd reason, this isn't working. There's no reason why it shouldn't. I\n# think either Heroku is messing up my config, or I need to flip a setting in\n# Heroku somewhere.\n#\n# Instead, I'm ...
coffeescript
chosen
[ { "from": "system", "value": "Fix broken tests for resources show\n" }, { "from": "human", "value": "App.Votes =\n\n hoverize: (selector, delegateTo) ->\n $(selector).on \"mouseenter\", delegateTo, ->\n $(this).find(\"div.anonymous-votes\").show()\n $(this).find(\"div.organizations...
coffeescript
chosen
[ { "from": "system", "value": "Remove angular service not used\n" }, { "from": "human", "value": "#= require ../../node_modules/share/node_modules/browserchannel/dist/bcsocket-uncompressed\n\n#= require ../../node_modules/share/webclient/share.uncompressed\n#= require ../../node_modules/share/web...
coffeescript
chosen
[ { "from": "system", "value": "Set defaults for maxLineLength, ignoreErrorCodes\n\nSpecified a default max line length of 79 chars (PEP8 default) and report all error codes by default" }, { "from": "human", "value": "module.exports =\n configDefaults:\n executableDir: null\n\n activate: ->\n...
coffeescript
chosen
[ { "from": "system", "value": ":art: Use || instead of or\n" }, { "from": "human", "value": "\nmodule.exports =\n config:\n jshintExecutablePath:\n default: ''\n type: 'string'\n description: 'Leave empty to use bundled'\n provideLinter: ->\n jshintPath = require('path').jo...
coffeescript
chosen
[ { "from": "system", "value": "Improve handling of TextEditor subscriptions and only save on ActiveTextEditors.\n" }, { "from": "human", "value": "{CompositeDisposable} = require 'atom'\n\nmodule.exports =\n config: require './config'\n\n activate: (state) ->\n @transpiler ?= new (require '....
coffeescript
chosen
[ { "from": "system", "value": "Test for allowed extensions by converting list to regexp and testing.\n" }, { "from": "human", "value": "connect = require('connect')\nutils = connect.utils\nforbiddenURLChars= /\\/([._][^/]*)|_$/\n\n###\ntodo: // detect if URL is of a directory and, if so, bring up...
coffeescript
chosen
[ { "from": "system", "value": "Add ~/.atom/dev/packages to load paths\n" }, { "from": "human", "value": "app = require 'app'\nfs = require 'fs'\npath = require 'path'\nprotocol = require 'protocol'\n\n# Private: Handles requests with 'atom' protocol.\n#\n# It's created by {AtomApplication} upon i...
coffeescript
chosen
[ { "from": "system", "value": "Add multi-language object ({en: \"hoge\"}) support\n" }, { "from": "human", "value": "I18n = (id, args...) ->\n m = chrome.i18n.getMessage(id, [args...])\n return escapeHtml(m) if m != \"\"\n m = id.replace(/(.)([A-Z][a-z])/g, (m, p1, p2) -> \"#{p1} #{p2.toLowerC...
coffeescript
chosen
[ { "from": "system", "value": "Remove hardcoded home directory path\n" }, { "from": "human", "value": "httpProxy = require 'http-proxy'\nhttp = require 'http'\nservice = require './service'\n\nDEFAULT_CONFIG =\n dir: \"/Users/adam/.wow\"\n timeout: 20000\n\nclass ServiceManager\n constru...
coffeescript
chosen
[ { "from": "system", "value": "Set bootstrapScript and resourcePath params in URL.\n" }, { "from": "human", "value": "app = require 'app'\ndelegate = require 'atom_delegate'\npath = require 'path'\nWindow = require 'window'\n\n# All opened windows.\nwindows = []\n\n# Quit when all windows are clo...
coffeescript
chosen
[ { "from": "system", "value": "Remove unused type -> source map\n" }, { "from": "human", "value": "Q = require 'q'\nmoment = require('moment')\n\nHeadlineService = require('../services/headline')\n\nTYPE_SOURCE_MAP =\n esri:\n name: 'Environment Agency - Abu Dhabi'\n url: 'http://www.ead.a...
coffeescript
chosen
[ { "from": "system", "value": "Hide rnv delay if undefined\n" }, { "from": "human", "value": "Batman.mixin Batman.Filters,\n\n timeText: (str_time)->\n str_time = str_time.split('+')\n moment.locale('de')\n now = moment.utc()\n start = moment(str_time[0], \"HH-mm\").add(str_time[1], ...
coffeescript
chosen
[ { "from": "system", "value": "Fix variable names since changing parameter names.\n" }, { "from": "human", "value": "mkdirp = Meteor.npmRequire 'mkdirp'\nBusboy = Meteor.npmRequire \"busboy\"\nfs = Npm.require 'fs'\nos = Npm.require 'os'\npath = Npm.require 'path'\n\nRouter.route '/image/:roomId'...
coffeescript
chosen
[ { "from": "system", "value": "Use slug for favorites naming\n\n- Keeps collection name unique, but is more descriptive\n- Closes #1357\n" }, { "from": "human", "value": "# Get the name of the favorites collection for a project\nmodule?.exports = (project) ->\n #--> Naming Convention: \"Favorite...
coffeescript
chosen
[ { "from": "system", "value": "Rename saveToFile operator as create:file\n" }, { "from": "human", "value": "op = require '../../../tasks/package/operators'\n\nmodule.exports = (config) ->\n config.tasks.package.merge\n operatorsMap:\n 'annotate:class': op.annotateClass\n 'annotate:f...
coffeescript
chosen
[ { "from": "system", "value": "Use random number as id in CallbacksRegistry.\n\nIt's very possible that the callbacks got GCed before the render view is\nclosed (like page getting refreshed), so we should not let browser call\nthe wrong callback, instead we should throw error whenever a callback is\nnot foun...
coffeescript
chosen
[ { "from": "system", "value": "Use String.camelize instead of $.camelize\n" }, { "from": "human", "value": "Controller = Ember.Controller.extend\n name: 'profile'\n\n needs: ['currentUser', 'accounts', 'account']\n userBinding: 'controllers.currentUser'\n accountBinding: 'controllers.account'...
coffeescript
chosen
[ { "from": "system", "value": "Fix the header and success path\n" }, { "from": "human", "value": "Twitter = require 'twitter'\n\nclient = new Twitter\n consumer_key: process.env.HUBOT_TWITTER_CONSUMER_KEY,\n consumer_secret: process.env.HUBOT_TWITTER_CONSUMER_SECRET,\n access_token_key: proces...
coffeescript
chosen
[ { "from": "system", "value": "Fix copy-to-clipboard links in highlighted code blocks\n" }, { "from": "human", "value": "class app.views.BasePage extends app.View\n constructor: (@el, @entry) -> super\n\n deactivate: ->\n if super\n @highlightNodes = []\n\n render: (content, fromCache ...
coffeescript
chosen
[ { "from": "system", "value": "Use calculated outerHeight for equalHeight plugin" }, { "from": "human", "value": "$.fn.equalHeights = () ->\n max = -1\n $(this).each ->\n h = $(this).height()\n max = (if h > max then h else max)\n $(this).css \"min-height\": max" }, ...
coffeescript
chosen
[ { "from": "system", "value": "Grunt: Bump line length limit to 100\n" }, { "from": "human", "value": "module.exports = ->\n # Project configuration\n @initConfig\n pkg: @file.readJSON 'package.json'\n\n # BDD tests on Node.js\n mochaTest:\n nodejs:\n src: ['spec/*.coffee']...
coffeescript
chosen
[ { "from": "system", "value": "Add a crude debugging method for Atom package development\n" }, { "from": "human", "value": "# I love this program.\n#\n# Atom will evaluate this file each time a new window is opened. It is run\n# after packages are loaded/activated and after the previous editor st...
coffeescript
chosen
[ { "from": "system", "value": "Make the final count the original number\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: ht...
coffeescript
chosen
[ { "from": "system", "value": "Add smooth down arrow navigation to /schools\n" }, { "from": "human", "value": "app = require 'core/application'\nAuthModal = require 'views/core/AuthModal'\nRootView = require 'views/core/RootView'\ntemplate = require 'templates/sales-view'\n\nmodule.exports = clas...
coffeescript
chosen
[ { "from": "system", "value": "Make upcoming lectures into a scrolly fadey inny outy carousel\n" }, { "from": "human", "value": "class Dashing.Lecturelist extends Dashing.Widget\n \n ready: ->\n\n onData: (data) ->\n i = 0\n node = $(@get('node'))\n if data.items.length == 0\n @s...
coffeescript
chosen
[ { "from": "system", "value": "Allow user package specs to override bundled package specs" }, { "from": "human", "value": "fs = require 'fs'\n\nrequire 'window'\n\nmeasure 'spec suite require time', ->\n fsUtils = require 'fs-utils'\n path = require 'path'\n require 'spec-helper'\n\n requireS...
coffeescript
chosen
[ { "from": "system", "value": "Fix for spakers array that's not ready yet\n" }, { "from": "human", "value": "class @VoteController extends RouteController\n\n waitOn: ->\n q = {}\n if filterType = @params.filterType\n q.type = filterType\n if filterTag = @params.filterTag\n q....
coffeescript
chosen
[ { "from": "system", "value": "VendorView: Add VendorGoogle to vendor list\n" }, { "from": "human", "value": "class VendorView extends KDView\n\n constructor:->\n\n super cssClass: 'vendor'\n\n @vendorController = new KDListViewController\n selection : yes\n viewOptions :\n ...
coffeescript
chosen
[ { "from": "system", "value": "Fix nav selected when path prefix\n" }, { "from": "human", "value": "Marbles.Views.NavigationActive = class NavigationActiveView extends Marbles.View\n @view_name: 'navigation_active'\n\n @buildMappingRegexp: (mapping) ->\n new RegExp(\"^#{mapping.replace(\"*\"...
coffeescript
chosen
[ { "from": "system", "value": "Fix PDFs with embedded images via BrowserPolicy\n\npdf.js embeds blob: objects into <img> tags (when the PDF has embedded\nimages), and we need to explicitly allow this.\n" }, { "from": "human", "value": "## Browser policy to allow many external sources, but *not* f...
coffeescript
chosen
[ { "from": "system", "value": "Add a generic idType to each built instance. Perhaps removed later.\n" }, { "from": "human", "value": "{Wrappers} = require \"#{__dirname}/wrappers\"\n\n\nclass BeanBuilder\n\n basePath: null\n suffix: null\n createObjectCallback: null\n useSingletons: false\n\n...
coffeescript
chosen
[ { "from": "system", "value": "Add more inteligent image preloading\n" }, { "from": "human", "value": "Yossarian.EventArtistView = Ember.View.extend\n tagName: 'img'\n attributeBindings: ['src', 'title']\n\n preload: ->\n @set('src', @get('content.image.image.large.url'))\n @set('title',...
coffeescript
chosen
[ { "from": "system", "value": "Disable continue button when saving\n\nA task step should not be continued while it's state is saving or\nloading. The earlier code was checking the isSaving state, but wasn't\npassing it onto the AsyncButton.\n" }, { "from": "human", "value": "React = require 'reac...
coffeescript
chosen
[ { "from": "system", "value": "Determine when to scroll content back to top dynamically\n" }, { "from": "human", "value": "define (require) ->\n router = require('cs!router')\n analytics = require('cs!helpers/handlers/analytics')\n BaseView = require('cs!helpers/backbone/views/base')\n templa...
coffeescript
chosen
[ { "from": "system", "value": "Fix getting word under cursor for various Ruby scopes\n\nIn Ruby blocks within ERB, go-to-declaration wouldn't work when cursor\nwas positioned on identifiers such as `foo?` or `foo!` because the\n`?!` characters wouldn't be considered part of the current \"word\". This\nis due...
coffeescript
chosen
[ { "from": "system", "value": ":bug: Fix error raised with display layer version\n\nBut the markers are no longer displayed\n" }, { "from": "human", "value": "{CompositeDisposable} = require 'atom'\n\nmodule.exports =\nclass MinimapBookmarksBinding\n constructor: (@minimap) ->\n @subscription...
coffeescript
chosen
[ { "from": "system", "value": "Store latest to address into local storage.\n" }, { "from": "human", "value": "define ['jquery', 'underscore', 'backbone', 'views/search_input_view'], ($, _, Backbone, SearchInputView) ->\n class SearchView extends Backbone.View\n\n el: $('#search')\n\n event...
coffeescript
chosen
[ { "from": "system", "value": "Append a cache buster to atom.css url in stylesheet link tag." }, { "from": "human", "value": "$ = require 'jquery'\nTemplate = require 'template'\n\nmodule.exports =\nclass Layout extends Template\n @attach: ->\n view = @build()\n $('body').append view\n ...
coffeescript
chosen
[ { "from": "system", "value": ":new: Add specs for new async behavior\n" }, { "from": "human", "value": "{Emitter} = require('../src/emitter')\n\ndescribe \"Emitter\", ->\n it \"invokes the observer when the named event is emitted until disposed\", ->\n emitter = new Emitter\n\n fooEvents ...
coffeescript
chosen
[ { "from": "system", "value": "Use naturalOrder for legend label ordering\n" }, { "from": "human", "value": "class PG.Legend\n\n defaults:\n className: \"legend\"\n\n constructor: (container, @graphs, options) ->\n @container = $(container)\n @options = $.extend @defaults, options\n ...
coffeescript
chosen
[ { "from": "system", "value": "Switch back to 100ms delay til process.exit on error\n" }, { "from": "human", "value": "Q = require 'q'\nargv = (require 'yargs').argv\n\nlog = require './log'\n\nQ.longStackSupport = yes\n\nprocess.on 'uncaughtException', (err) ->\n\tlog.error 'Uncaught exception:'...
coffeescript
chosen
[ { "from": "system", "value": "Replace Angular router with ui-router.\n" }, { "from": "human", "value": "app = angular.module 'qiprofile', [\n 'ngRoute', 'ui.bootstrap', 'nvd3ChartDirectives',\n 'qiprofile.services', 'qiprofile.controllers', 'qiprofile.filters',\n 'qiprofile.directives', 'qipr...
coffeescript
chosen
[ { "from": "system", "value": "Add image location to subject data\n" }, { "from": "human", "value": "define (require) ->\n Backbone = require('backbone')\n settings = require('cs!settings')\n\n SERVER = \"#{location.protocol}//#{settings.cnxarchive.host}:#{settings.cnxarchive.port}\"\n\n retu...
coffeescript
chosen
[ { "from": "system", "value": "Check heading in visit / test.\n" }, { "from": "human", "value": "define ['app', 'tests/testUtils'], (App, TestUtils) ->\n\trun = ->\n\t\tmodule 'Integration: showActivity',\n\t\t\tteardown: -> App.reset()\n\n\t\ttest 'hello', -> ok true, 'true is tautological'\n\n\...
coffeescript
chosen
[ { "from": "system", "value": "Add a new menu item\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-matching-bracket' }...
coffeescript
chosen
[ { "from": "system", "value": ":penguin: Install apm in deb package.\n" }, { "from": "human", "value": "path = require 'path'\nrunas = null\n\nmodule.exports = (grunt) ->\n {cp, mkdir, rm} = require('./task-helpers')(grunt)\n\n grunt.registerTask 'install', 'Install the built application', ->\n...
coffeescript
chosen
[ { "from": "system", "value": "Remove log statement for dropdowns\n" }, { "from": "human", "value": "$ ->\n $(\"div.tabs\").tab()\n$ ->\n $(\"a[rel=twipsy]\").tooltip live: true\n$ ->\n $(\"a[rel=popover]\").popover offset: 10\n$ ->\n # TODO: find a better way to set this event handler\n # i...
coffeescript
chosen
[ { "from": "system", "value": "Make sure there actually is a user when we list files\n" }, { "from": "human", "value": "Template.login.events\n 'submit form': (e) ->\n e.preventDefault()\n user = e.target.username.value\n pass = e.target.password.value\n Meteor.loginWithPg user, pass...
coffeescript
chosen
[ { "from": "system", "value": "Clean up versionCheck disconnect hack\n" }, { "from": "human", "value": "versionCheck = (scope)->\n scope.alert ||= false\n scope.requiredProtocolVerion ||= 6\n scope.disconnect ||= true\n\n if (typeof Leap != 'undefined') && Leap.Controller\n if Leap.version...
coffeescript
chosen
[ { "from": "system", "value": "Remove ember-auth sign out route\n" }, { "from": "human", "value": "Dashboard.SessionsNewRoute = Ember.Route.extend\n authRedirectable: false\n renderTemplate: ->\n\nDashboard.SessionsDestroyRoute = Ember.Route.extend\n activate: ->\n @auth.signOut().then -> w...
coffeescript
chosen
[ { "from": "system", "value": ":memo: Mark Pasteboard class as public\n" }, { "from": "human", "value": "clipboard = require 'clipboard'\ncrypto = require 'crypto'\n\n# Internal: Represents the clipboard used for copying and pasting in Atom.\nmodule.exports =\nclass Pasteboard\n signatureForMeta...
coffeescript
chosen
[ { "from": "system", "value": "Add --atom-child_process-fork if running from Atom Helper\n\nTemporary workaround to allow packages to be installed/uninstalled\nfrom the Atom settings view.\n" }, { "from": "human", "value": "child_process = require 'child_process'\n\nmodule.exports =\nclass Comman...
coffeescript
chosen
[ { "from": "system", "value": "Fix bad jquery selector for signup animation\n" }, { "from": "human", "value": "$ ->\n $('.devise-registrations-new .user_email input').blur ->\n $input = $(@)\n $sublogo = $input.parents('.login').find('.sub-logo')\n email = $input.val()\n if email.len...
coffeescript
chosen
[ { "from": "system", "value": "Fix bug in setting session variables\n" }, { "from": "human", "value": "Router.map ->\n\n @route \"entrySignIn\",\n path: \"/sign-in\"\n onBeforeRun: ->\n Session.set('entryError', undefined)\n Session.set('buttonText', 'in')\n\n @route \"entrySign...
coffeescript
chosen
[ { "from": "system", "value": "Fix findMistake for logged out user\n" }, { "from": "human", "value": "React = require('react')\nmoment = require('moment')\n\nimport { ListGroup, ListGroupItem } from 'react-bootstrap'\nimport {Link} from 'react-router-dom'\n\nimport ConnectedComponent from '../lib...
coffeescript
chosen
[ { "from": "system", "value": "Use root option to find config when using compiled JS\n" }, { "from": "human", "value": "americano = require 'americano'\n\nport = process.env.PORT || 9250\namericano.start name: 'template', port: port" }, { "from": "gpt", "value": "americano = require '...
coffeescript
chosen
[ { "from": "system", "value": "Define verbs outside of method so that they're not initiliased for every\nrequest\n" }, { "from": "human", "value": "_ = require('underscore')\n\nmodule.exports = (req, res, next) ->\n httpVerbWhitelist = ['GET']\n\n return next() if process.env.NODE_ENV == 'test'...
coffeescript
chosen
[ { "from": "system", "value": "Remove .only from test suite\n" }, { "from": "human", "value": "codio = require '../src/codio'\npath = require 'path'\nassert = require 'assert'\ntmp = require 'tmp'\nfs = require 'fs-extra'\n\ndescribe.only 'versal codio', ->\n cwd = null\n\n before (done) ->\n ...
coffeescript
chosen
[ { "from": "system", "value": "Initialize cache before activating first controller\n" }, { "from": "human", "value": "###\n Top module for Rubic (for Chrome App)\n###\n\n# Compatibility modules\nrequire(\"compat/es7compat\")\nrequire(\"compat/bbjscompat\")\n\n# UI helpers\nrequire(\"ui/bootbox-p...
coffeescript
chosen
[ { "from": "system", "value": "Update useragent to Chrome-Dev 29\n" }, { "from": "human", "value": "### Common variables and functions for bots ###\n\n#require = patchRequire(global.require)\n#utils = require('utils')\n\nexports.userAgent = 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHT...
coffeescript
chosen
[ { "from": "system", "value": "Call fs.list() without prior call to fs.exists()\n\nfs.list() returns an empty array if calle for a\nnon-existent or non-directory path.\n" }, { "from": "human", "value": "Package = require 'package'\nfs = require 'fs'\n\nmodule.exports =\nclass AtomPackage extends ...
coffeescript
chosen
[ { "from": "system", "value": ":lipstick: Move config defaults to top of exports\n" }, { "from": "human", "value": "module.exports =\n activate: ->\n rootView.eachEditSession (editSession) => @whitespaceBeforeSave(editSession)\n\n configDefaults:\n ensureSingleTrailingNewline: true\n\n w...
coffeescript
chosen
[ { "from": "system", "value": "Test de actualización de la barra del navegador.\n\nObsérvese que no pasa en rekonq, por un fallo de rekonq.\n" }, { "from": "human", "value": "require 'jquery.history.js'\nrequire 'jquery.paginator.js'\n\ndescribe \"Paginator\", ->\n beforeEach ->\n loadFixture...
coffeescript
chosen
[ { "from": "system", "value": "Clear listeners on process object when unloading.\n\nThe process object is created under node context, and it will live\nthrough the reloading, so we are responsible for clearing the listeners\nto make sure resources are not leaked.\n" }, { "from": "human", "value":...
coffeescript
chosen
[ { "from": "system", "value": "Modify initializers to enable constructor parameters and add breadcrumbs\n" }, { "from": "human", "value": "#= require_self\n#= require_tree ./templates\n#= require_tree ./models\n#= require_tree ./views\n#= require_tree ./routers\n\nwindow.Water =\n Models: {}\n ...
coffeescript
chosen
[ { "from": "system", "value": "Append to local html variable before scraping.\n" }, { "from": "human", "value": "noflo = require \"noflo\"\njsdom = require \"jsdom\"\n\nclass ScrapeHtml extends noflo.Component\n constructor: ->\n @html = \"\"\n @textSelector = \"\"\n @crap...
coffeescript
chosen
[ { "from": "system", "value": "Add python syntax highlighting to inline code chunks\n" }, { "from": "human", "value": "'name': 'Pweave markdown'\nscopeName: 'source.pweave.md'\n'fileTypes': [\n 'pmd'\n 'pmdw'\n]\npatterns: [\n {\n 'include' : 'source.pweave.noweb'\n }\n {\n 'be...
coffeescript
chosen
[ { "from": "system", "value": "Fix Order-Of-Declaration Problems with Resolve Filter\n" }, { "from": "human", "value": "angular.module 'qbn.engine', ['qbn.quality', 'qbn.storylet', 'qbn.choice']\n\n .controller 'QbnEngine',\n ($scope, qualities, storylets, frontalChoices, choiceFactory, resol...
coffeescript
chosen
[ { "from": "system", "value": "Fix enabling the input for the msg when inviting people to a space\n\nrefs #1769\n" }, { "from": "human", "value": "$ ->\n if isOnPage 'join_requests', 'invite'\n\n # invite is selected by default\n enableDisableMessage()\n\n # enable/disable the message d...
coffeescript
chosen
[ { "from": "system", "value": "Add group to start thread modal launched from group page\n" }, { "from": "human", "value": "angular.module('loomioApp').factory 'DiscussionForm', ->\n templateUrl: 'generated/components/discussion_form/discussion_form.html'\n controller: ($scope, $controller, $loc...
coffeescript
chosen
[ { "from": "system", "value": "Use skinny arrows for command handlers\n\nThis ensures this refers to the event element\n\nCloses #64\n" }, { "from": "human", "value": "{CompositeDisposable, Disposable} = require 'atom'\n_ = require 'underscore-plus'\nAutocompleteView = require './autocomplete-vie...
coffeescript
chosen
[ { "from": "system", "value": "Add dropup class in responsive toolbar.\n" }, { "from": "human", "value": "Wheelmap.ToolbarView = Ember.View.extend\n elementId: 'toolbar'\n templateName: 'toolbar'\n\n addToggleSearchbar: (()->\n $searchbar = @$('.searchbar-form')\n\n @$('.btn-toggle-searc...
coffeescript
chosen
[ { "from": "system", "value": "Add missing key and refactor\n" }, { "from": "human", "value": "###\n# Copyright 2015-2017 ppy Pty. Ltd.\n#\n# This file is part of osu!web. osu!web is distributed with the hope of\n# attracting more community contributions to the core ecosystem of osu!.\n#...
coffeescript
chosen
[ { "from": "system", "value": "Expand args passed to 'trigger' in mock TitaniumView\n" }, { "from": "human", "value": "class TitaniumView\n\n constructor: (attributes) ->\n for name, value of attributes\n @[name] = value\n @children = []\n\n addEventListener: (name, event) ->\n @o...
coffeescript
chosen
[ { "from": "system", "value": "Add custom console.log snippet to atom\n" }, { "from": "human", "value": "# Your snippets\n#\n# Atom snippets allow you to enter a simple prefix in the editor and hit tab to\n# expand the prefix into a larger code block with templated values.\n#\n# You can create a ...
coffeescript
chosen
[ { "from": "system", "value": "Use page up/down to navigate\n" }, { "from": "human", "value": "api = require './slide-pack-api'\nmousetrap = require 'mousetrap'\n$ = require 'zeptojs'\n\n\n# keyboard navigation\nmousetrap.bind ['left', 'up', 'k', 'h'], api.prev\nmousetrap.bind ['right', 'down', '...
coffeescript
chosen
[ { "from": "system", "value": "Add required User-Agent header to GitHub requests\n" }, { "from": "human", "value": "request = require \"request\"\ngithubAuth = require \"../../auth/github\"\n\nclass GitHub\n fetchGist: (gistID, callback) ->\n request.get(\n url: \"https://api.github.com/...
coffeescript
chosen
[ { "from": "system", "value": "tests: Prepare for supporting MQTT, uncomment to enable\n\nReferences #6\n" }, { "from": "human", "value": "msgflo = require 'msgflo'\npath = require 'path'\nchai = require 'chai' unless chai\nheterogenous = require '../node_modules/msgflo/spec/heterogenous.coffee'\...
coffeescript
chosen
[ { "from": "system", "value": "Allow options on start, and add quit\n\n--Tim Shadel <github@timshadel.com>\n" }, { "from": "human", "value": "{readFile} = require 'fs'\n{dirname} = require 'path'\n\n{parseProcfile} = require './procfile'\n{createFormation} = require './formation'\n\nclass Serv...
coffeescript
chosen
[ { "from": "system", "value": "Drop parent teams on team delete\n" }, { "from": "human", "value": "express = require 'express'\nrouter = express.Router()\ndatabase = require '../routes/database'\nitem = require '../routes/item'\ndb = null\n\nrouter.post '/new', (req, res, next) ->\n req.body._id...
coffeescript
chosen
[ { "from": "system", "value": "Use commmon Fira Mono while Atom has ligatures issue\n" }, { "from": "human", "value": "'*':\n 'editor':\n 'fontFamily': 'Fira Code'\n 'showIndentGuide': true\n 'tabLength': 4\n 'softWrap': true\n 'invisibles': {}\n 'zoomFontWhenCtrlScrolling': fa...
coffeescript
chosen
[ { "from": "system", "value": "Fix tab toggle on activity\n\nSigned-off-by: Dmitriy Zaporozhets <be23d75b156792e5acab51b196a2deb155d35d6a@gmail.com>\n" }, { "from": "human", "value": "class @Activities\n constructor: ->\n Pager.init 20, true\n $(\".event-filter .btn\").bind \"click\", (eve...
coffeescript
chosen
[ { "from": "system", "value": "Upgrade donna tello and atomdoc on prepublish\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 ...
coffeescript
chosen
[ { "from": "system", "value": "Use the new workspace API.\n" }, { "from": "human", "value": "{View} = require 'space-pen'\n{GitNotFoundError} = require '../git-bridge'\n\nclass GitNotFoundErrorView extends View\n\n @content: (err) ->\n @div class: 'overlay from-top padded merge-conflict-error...
coffeescript
chosen
[ { "from": "system", "value": "Make the JustifiedGallery script work with Turbolinks 5." }, { "from": "human", "value": "$ ->\n $(\".photos\").justifiedGallery rowHeight: 200, margins: 8\n" }, { "from": "gpt", "value": "$(document).on 'turbolinks:load', ->\n $(\".photos\").justified...
coffeescript
chosen
[ { "from": "system", "value": "Add display name to default admin user\n" }, { "from": "human", "value": "storage = require 'node-persist'\nstorage.initSync()\nUser = require './user'\nusers = (storage.getItem('users') or []).map (u) -> new User u\nchalk = require 'chalk'\nbcrypt = require 'bcrypt...
coffeescript
chosen
[ { "from": "system", "value": "Fix typo in confirm dialog title\n" }, { "from": "human", "value": "Flow.ConfirmDialog = (_, _message, _opts={}, _go) ->\n defaults _opts,\n title: 'Alert'\n acceptCaption: 'Yes'\n declineCaption: 'No'\n\n accept = -> _go yes\n\n decline = -> _go no\n\n ...
coffeescript
chosen
[ { "from": "system", "value": "Make it possible to require files in src directly\n\nThe compiled PEG parser is the only thing that needs to be explicitly\nloaded from the lib folder.\n" }, { "from": "human", "value": "ScopeSelectorParser = require './scope-selector-parser'\n\nmodule.exports =\ncl...
coffeescript
chosen