conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Add change item to editor context menu\n" }, { "from": "human", "value": "'menu': [\n 'label': 'Edit'\n 'submenu': [\n 'label': 'Select Encoding'\n 'command': 'encoding-selector:show'\n ]\n]\n" }, { "from": "gpt", "value": "'menu': [\n 'label':...
coffeescript
chosen
[ { "from": "system", "value": "Set notification events in backbone event hash\n" }, { "from": "human", "value": "Promise = require 'bluebird-q'\n{ delay } = require 'underscore'\nBackbone = require 'backbone'\ntemplate = -> require('./index.jade') arguments...\n\nmodule.exports = class Notificati...
coffeescript
chosen
[ { "from": "system", "value": "Use a relative require path\n" }, { "from": "human", "value": "StatsTracker = require './stats-tracker'\n\nmodule.exports =\n stats: null\n editorStatsView: null\n\n activate: ->\n @stats = new StatsTracker()\n rootView.command 'editor-stats:toggle', => @cr...
coffeescript
chosen
[ { "from": "system", "value": "Add createdAt to admin_journal model\n" }, { "from": "human", "value": "a = DS.attr\nETahi.AdminJournal = DS.Model.extend\n logoUrl: a('string')\n name: a('string')\n paperTypes: a()\n taskTypes: a()\n manuscriptManagerTemplates: a('manuscriptManagerTemplate')\...
coffeescript
chosen
[ { "from": "system", "value": "Use underlayer property on editor\n\nRemoves unneeded call to find\n" }, { "from": "human", "value": "{View} = require 'space-pen'\n$ = require 'jquery'\n_ = require 'underscore'\n\nmodule.exports =\nclass WrapGuideView extends View\n @activate: ->\n rootView.ea...
coffeescript
chosen
[ { "from": "system", "value": "Fix the target progress bar\n" }, { "from": "human", "value": "define [\n 'jquery'\n 'underscore'\n 'jade.templates'\n 'mixen'\n 'mixens/BaseViewMixen'\n 'mixens/ModelViewMixen'\n 'views/DonationFormView'\n 'vex'\n], ($, _, jade, Mixen, BaseView, ModelView, ...
coffeescript
chosen
[ { "from": "system", "value": "Update feed list load check\n" }, { "from": "human", "value": "VoteButton = require './VoteButton.coffee'\n\ninit = (el)->\n $feeds = $(el)\n $btnReload = $('#btn-reload-feeds')\n $tipLoading = $('#feeds-loading-tip')\n $tipLoaded = $('#feeds-loaded-tip')\n pag...
coffeescript
chosen
[ { "from": "system", "value": "Replace linter-jshint with linter-eslint in Atom\n" }, { "from": "human", "value": "packages: [\n \"autocomplete-emojis\"\n \"editorconfig\"\n \"file-icons\"\n \"highlight-selected\"\n \"linter\"\n \"linter-coffeelint\"\n \"linter-csslint\"\n \"linter-flake8...
coffeescript
chosen
[ { "from": "system", "value": "Rename VCS ignore config setting to fuzzyFinder.hideVcsIgnoredPaths\n" }, { "from": "human", "value": "_ = require 'underscore'\nBufferedProcess = require 'buffered-process'\n\nmodule.exports =\nclass LoadPathsTask\n constructor: (@callback) ->\n\n start: ->\n ...
coffeescript
chosen
[ { "from": "system", "value": "Disable emoji support for now as it’s unescaping escaped html!\n\n#919" }, { "from": "human", "value": "window.emojify = ->\n $(\".js-emoji\").each ->\n $(@).html(emojione.toImage($(@).text()))\n\n$ -> emojify()\n" }, { "from": "gpt", "value": "windo...
coffeescript
chosen
[ { "from": "system", "value": "Change spinner to stop if another is started for a new ajax request\n\n* During testing I was rapidly saving a payment to make sure there\n were no timing related issues in the javascript. One thing I\n noticed is that the spinners would queue up, and keep fading in\n and ou...
coffeescript
chosen
[ { "from": "system", "value": "Add property `author` to sharedDataService\n" }, { "from": "human", "value": "'use strict'\n\n###*\n # @ngdoc service\n # @name arashike-blog.githubshareddata\n # @description\n # # githubshareddata\n # Service in the arashike-blog.\n###\nangular.module 'arashike-bl...
coffeescript
chosen
[ { "from": "system", "value": "Implement a scrollbar width detector\n" }, { "from": "human", "value": "FactlinkJailRoot.on 'modalOpened', ->\n document.documentElement.setAttribute('data-factlink-suppress-scrolling', '')\nFactlinkJailRoot.on 'modalClosed', -> document.documentElement.removeAttri...
coffeescript
chosen
[ { "from": "system", "value": "Add a new keymap `ctrl-backspace`\n" }, { "from": "human", "value": "'.editor':\n 'ctrl-m': 'bracket-matcher:go-to-matching-bracket'\n 'ctrl-]': 'bracket-matcher:remove-brackets-from-selection'\n\n'.platform-darwin .editor':\n 'ctrl-cmd-m': 'bracket-matcher:selec...
coffeescript
chosen
[ { "from": "system", "value": "Make console.log working in IE8.\n" }, { "from": "human", "value": "class App.Log\n _instance = undefined\n\n @log: ( module, level, args... ) ->\n if _instance == undefined\n _instance ?= new _Singleton\n _instance.log( module, level, args )\n\n @debu...
coffeescript
chosen
[ { "from": "system", "value": "Update width/height in the snippet block if changed\n" }, { "from": "human", "value": "jQuery.initializer '.edit_widget.map_search', ->\n oz = new OZ('oz_map_search')\n $form = $('form.widget_map_search')\n oz.api 'on_params_changed', (params) ->\n $('#widget_...
coffeescript
chosen
[ { "from": "system", "value": "Add deserializers.add call for backwards compatibility\n" }, { "from": "human", "value": "{Disposable, CompositeDisposable} = require 'atom'\n\nViewURI = 'atom://deprecation-cop'\nDeprecationCopView = null\n\nmodule.exports =\n disposables: null\n\n activate: ->\n...
coffeescript
chosen
[ { "from": "system", "value": "Add config fallback for development\n" }, { "from": "human", "value": "nconf = require(\"nconf\")\nnconf.env().argv()\n\n# Add config file\nnconf.file(file: nconf.get(\"config\"))\n\nBase = require('./src/base')\nnewsroom = new Base nconf.get(\"newsroom\")\n" }, ...
coffeescript
chosen
[ { "from": "system", "value": "Use underscore instead of lodash\n" }, { "from": "human", "value": "_ = require 'lodash'\nexpect = chai.expect\nReact = require 'react/addons'\nReactTestUtils = React.addons.TestUtils\n{Promise} = require 'es6-promise'\n{commonActions} = require './utilities'\n...
coffeescript
chosen
[ { "from": "system", "value": "Remove periodic polling of document for labels\n" }, { "from": "human", "value": "define [\n], () ->\n\n\tAUTOMATIC_REFRESH_PERIOD = 1000 * 60 * 10\n\n\tclass LabelsManager\n\t\tconstructor: (@ide, @$scope) ->\n\t\t\t@$scope.$root._labels = this\n\n\t\t\t@state =\n\...
coffeescript
chosen
[ { "from": "system", "value": "Use document.body.scrollHeight, it's more correct\n" }, { "from": "human", "value": "CI.Browser or= {}\n\nCI.Browser.scroll_to = (position) =>\n element = if jQuery.browser.webkit then \"body\" else \"html\"\n offset = if position == \"top\" then 0 else document.b...
coffeescript
chosen
[ { "from": "system", "value": "Fix responsive styles (vendor stylesheet order was busted)" }, { "from": "human", "value": "exports.config =\n\n paths:\n public: '../SingularityService/src/main/resources/static'\n\n files:\n\n javascripts:\n\n defaultExtension: 'coff...
coffeescript
chosen
[ { "from": "system", "value": "Use port 80 by default\n" }, { "from": "human", "value": "colors = require('colors')\nurl = require('url')\nhttp = require('http')\nProxy = require('http-proxy')\n\nstart = (config) ->\n match = (url, route) ->\n new RegExp(route).test(url)\n\n debug = (args......
coffeescript
chosen
[ { "from": "system", "value": "Watch all coffee files for running test\n" }, { "from": "human", "value": "path = require('path')\ngulp = require('gulp')\nmocha = require('gulp-mocha')\ncoffeelint = require('gulp-coffeelint')\nmochaNotifierReporter = require('mocha-notifier-reporter')\n\nOPTIONS =...
coffeescript
chosen
[ { "from": "system", "value": "Update cartodb layer for july\n" }, { "from": "human", "value": "class @ProtectedAreaMap\n constructor: ($container) ->\n @map = L.map($container.attr('id'), {zoomControl: false, scrollWheelZoom: false})\n\n L.tileLayer('http://api.tiles.mapbox.com/v3/unepwcm...
coffeescript
chosen
[ { "from": "system", "value": "Use the MathJax `Safe.js` extension to prevent XSS\n" }, { "from": "human", "value": "define [\n\t\"base\"\n], (App) ->\n\tmathjaxConfig =\n\t\tmessageStyle: \"none\"\n\t\timageFont:null\n\t\t\"HTML-CSS\": { availableFonts: [\"TeX\"] },\n\t\tTeX:\n\t\t\tequationNumb...
coffeescript
chosen
[ { "from": "system", "value": "Remove CSON reference from coffee file" }, { "from": "human", "value": "fs = require 'fs'\npath = require 'path'\nCSON = require 'cson'\npostcss = require 'postcss'\n\nnamespace = postcss.plugin 'postcss-namespace', (opts) ->\n if...
coffeescript
chosen
[ { "from": "system", "value": "Use interval instead of recreating timers in live\n" }, { "from": "human", "value": "uploadcare.whenReady ->\n {\n jQuery: $\n } = uploadcare\n\n dataAttr = 'uploadcareWidget'\n\n uploadcare.initialize = (targets) ->\n for target in $(targets || '@uploadca...
coffeescript
chosen
[ { "from": "system", "value": "Fix permissions toggle for limited posts\n" }, { "from": "human", "value": "Marbles.Views.PermissionsFieldsToggle = class PermissionsFieldsToggleView extends TentStatus.View\n @template_name: 'permissions_fields_toggle'\n @view_name: 'permissions_fields_toggle'\n\...
coffeescript
chosen
[ { "from": "system", "value": "Fix error due to mediatype being undefined\n" }, { "from": "human", "value": "cozydb = require 'cozydb'\n\nmodule.exports = Contact = cozydb.getModel 'Contact',\n fn : String\n n : String\n datapoints : [Object]\n revision ...
coffeescript
chosen
[ { "from": "system", "value": "Use heroku app as backend\n" }, { "from": "human", "value": "Player = require './Player'\nTextInput = require './TextInput'\n\nclass Game\n constructor: (game) ->\n @textBox = new TextInput(game)\n @player = new Player(game)\n\n window.Game = @\n\n ...
coffeescript
chosen
[ { "from": "system", "value": "Fix broken project paths from old macOS installation\n" }, { "from": "human", "value": "[\n\t{\n\t\ttitle: \"@Atom Theme\"\n\t\tpaths: [\n\t\t\t\"/Users/johngardner/Labs/Atom-PhoenixTheme\"\n\t\t]\n\t\tdevMode: true\n\t}\n\t{\n\t\ttitle: \".files\"\n\t\tpaths: [\n\t...
coffeescript
chosen
[ { "from": "system", "value": "Allow selecting \"Discussions\" as a feed\n" }, { "from": "human", "value": "window.ReactFeedSelection = React.createClass\n displayName: 'ReactFeedSelection'\n mixins: [UpdateOnSignInOrOutMixin]\n\n getInitialState: ->\n feedChoice: 'global'\n feeds:\n ...
coffeescript
chosen
[ { "from": "system", "value": "Set window object to variable\n" }, { "from": "human", "value": "React = require 'react'\nReactDOM = {render} = require 'react-dom'\n{Router, Route, Link} = require 'react-router'\n{useBasename} = require 'history'\ncreateBrowserHistory = require 'history/lib/create...
coffeescript
chosen
[ { "from": "system", "value": "Fix blank page if node by id was not found.\n" }, { "from": "human", "value": "#= require routes/map.route\n\nWheelmap.PopupRoute = Wheelmap.MapRoute.extend\n model: (params)->\n @get('store').find('node', params.node_id)\n\n setupController: (controller, model...
coffeescript
chosen
[ { "from": "system", "value": "Make root div inline-block as well\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 @div class: 'grammar-status', =>\n @...
coffeescript
chosen
[ { "from": "system", "value": "Fix incorrect watch path in grunt task\n" }, { "from": "human", "value": "module.exports = (grunt) ->\n\n grunt.initConfig\n\n pkg: grunt.file.readJSON('package.json')\n\n meta:\n banner: '/*! <%= pkg.name %> <%= pkg.version %> | (c) <%= ...
coffeescript
chosen
[ { "from": "system", "value": "Set attribute before doing anything with it\n" }, { "from": "human", "value": "Backbone = require 'backbone'\nPromise = require 'bluebird-q'\n{ API_URL } = require('sharify').data\nChannel = require '../../../../models/channel.coffee'\nmediator = require '../../../....
coffeescript
chosen
[ { "from": "system", "value": "Change Atom editor font size\n" }, { "from": "human", "value": "\"*\":\n core:\n themes: [\n \"one-light-ui\"\n \"solarized-dark-syntax\"\n ]\n editor:\n fontSize: 15\n \"exception-reporting\":\n userId: \"76d6bd0a-16fd-42b8-0163-bce5c8c7e37...
coffeescript
chosen
[ { "from": "system", "value": "Make flash messages auto dismissible\n" }, { "from": "human", "value": "#= require_self\n#= require_tree .\n\nwindow.Neighborly =\n configs:\n turbolinks: true\n pjax: false\n respond_with:\n 'Create': 'New'\n 'Update': 'Edit'\n\n modules: -> []...
coffeescript
chosen
[ { "from": "system", "value": "Comment some code in app.Facebook.\n" }, { "from": "human", "value": "goog.provide 'app.Facebook'\n\nclass app.Facebook\n\n ###*\n @param {app.user.Store} userStore\n @constructor\n ###\n constructor: (@userStore) ->\n\n ###*\n @type {Object}\n @priv...
coffeescript
chosen
[ { "from": "system", "value": "Fix mdlint VS NodeJS >= 5 for Travis\n" }, { "from": "human", "value": "module.exports = (grunt) ->\n\n# =============================== Load plugins =============================== #\n grunt.loadNpmTasks 'grunt-eslint'\n grunt.loadNpmTasks 'grunt-travis-lint'\n ...
coffeescript
chosen
[ { "from": "system", "value": "Fix datetimepicker call after plugin update\n" }, { "from": "human", "value": "#= require jquery\n#= require jquery_ujs\n\n#= require jquery-fileupload/basic\n#= require jquery-fileupload/vendor/tmpl\n#= require attachments\n#= require dropzone_effects\n\n#= require...
coffeescript
chosen
[ { "from": "system", "value": "Modify the DOM instead of setting the 'data' prop via jQuery to mark a section as 'progressive-loaded'\n\nDefect:\nThis was exposed as an issue by another bug which was loading the entire page on partial load and re-loading the javascript.\nThe result was an infinite loop of re...
coffeescript
chosen
[ { "from": "system", "value": "Use singular type in InteractorsView\n" }, { "from": "human", "value": "class InteractorEmptyView extends Backbone.Marionette.ItemView\n tagName: 'span'\n template: \"fact_relations/interactor_empty\"\n\nclass InteractorView extends Backbone.Marionette.Layout\n t...
coffeescript
chosen
[ { "from": "system", "value": "Revert removal of closeModal function, _events get cleared before onClose\n" }, { "from": "human", "value": "window.Backbone ||= {}\nwindow.Backbone.Views ||= {}\n\nclass Backbone.Views.ReportEditVisualisationView extends Backbone.Diorama.NestingView\n className: '...
coffeescript
chosen
[ { "from": "system", "value": "Remove unnecesary space on coffeescript file\n" }, { "from": "human", "value": "App.AdvancedSearch =\n\n advanced_search_terms: ->\n $('#js-advanced-search').data('advanced-search-terms')\n\n toggle_form: (event) ->\n event.preventDefault()\n $('#js-advan...
coffeescript
chosen
[ { "from": "system", "value": "Add scrollToFix for content bar in paper show page\n\n[Fixes #69382112]\n" }, { "from": "human", "value": "ETahi.PaperIndexView = Ember.View.extend\n setBackgroundColor:(->\n $('html').addClass('matte')\n ).on('didInsertElement')\n\n resetBackgroundColor:(->\n...
coffeescript
chosen
[ { "from": "system", "value": "Fix the down motion to stop on last line\n" }, { "from": "human", "value": "class Motion\n constructor: (@editor) ->\n isComplete: -> true\n\nclass MoveLeft extends Motion\n execute: ->\n {column, row} = @editor.getCursorScreenPosition()\n @editor.moveCurso...
coffeescript
chosen
[ { "from": "system", "value": "Adjust logo property on change\n\nSince the onchange does slightly wrong thing\n" }, { "from": "human", "value": "SHARED_DATA = null\nSHARED_COLLECTION = null\n\nclass Skr.Models.Location extends Skr.Models.Base\n\n cacheDuration: [1, 'day']\n\n mixins: [ 'Fil...
coffeescript
chosen
[ { "from": "system", "value": "Speed up geyser by caching known element types.\n[PP-10]\n" }, { "from": "human", "value": "geyser = do ->\n parse = (spec) ->\n dotIndex = spec.indexOf '.'\n switch dotIndex\n when -1\n tag: spec\n when 0\n tag: 'div'\n classes...
coffeescript
chosen
[ { "from": "system", "value": "fix(drafts): Fix missing import, resolves Sentry 4041\n" }, { "from": "human", "value": "React = require \"react/addons\"\nclassNames = require 'classnames'\n{RetinaImg} = require 'nylas-component-kit'\n{Actions, FocusedContentStore} = require \"nylas-exports\"\n\nc...
coffeescript
chosen
[ { "from": "system", "value": "Add authentication controller to routes\n" }, { "from": "human", "value": "express = require 'express'\nbodyParser = require 'body-parser'\nerrorHandler = require 'errorhandler'\nmeshbluHealthcheck = require 'express-meshblu-healthcheck'\nmo...
coffeescript
chosen
[ { "from": "system", "value": "Convert to the newer unit test methodology.\n" }, { "from": "human", "value": "{expect} = require \"chai\"\nutils = require \"../../utils\"\n\n{Collections} = utils.require \"base\"\n\ndescribe \"step_interpolator_transform module\", ->\n source = {start: 0, end: 1...
coffeescript
chosen
[ { "from": "system", "value": "Change font size in atom\n" }, { "from": "human", "value": "\"*\":\n \"atom-beautify\":\n general:\n _analyticsUserId: \"016f8b6e-eda5-4d72-acc8-57bcde20fdff\"\n core:\n autoHideMenuBar: true\n disabledPackages: [\n \"exception-reporting\"\n ...
coffeescript
chosen
[ { "from": "system", "value": "Use ide.$http, rather than jquery\n" }, { "from": "human", "value": "define [\n], () ->\n\tclass LabelsMaster\n\t\tconstructor: (@ide, @$scope) ->\n\n\t\t\t@_state = {\n\t\t\t\tdocuments: {}\n\t\t\t}\n\n\t\t\t@$scope.$on 'doc:labels:updated', (e, data) =>\n\t\t\t\ti...
coffeescript
chosen
[ { "from": "system", "value": "Use Backbone.Wreqr.EventAggregator instead of Marionette's version\n" }, { "from": "human", "value": "window.collectionDifference = (args...) ->\n utils = new CollectionUtils()\n utils.difference args...\n\nwindow.collectionMap = (args...) ->\n utils = new Collec...
coffeescript
chosen
[ { "from": "system", "value": "Add indentation settings for Pic\n" }, { "from": "human", "value": "\".text.roff\":\n\teditor:\n\t\tcommentStart: \".\\\\\\\" \"\n\n\".source.pic\":\n\teditor:\n\t\tcommentStart: \"# \"\n\n\".text.runoff\":\n\teditor:\n\t\tcommentStart: \".! \"\n" }, { "from...
coffeescript
chosen
[ { "from": "system", "value": "Change to an 'enableGithubSync' setting\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\thasFeat...
coffeescript
chosen
[ { "from": "system", "value": "Use our correct template syntax\n" }, { "from": "human", "value": "class window.ExtendedFactTitleView extends Backbone.Marionette.Layout\n tagName: \"header\"\n id: \"single-factlink-header\"\n\n template: \"facts/_extended_fact_title\"\n\n events:\n \"click ...
coffeescript
chosen
[ { "from": "system", "value": "Disable auction reminders on the Miami Fair Week page\n" }, { "from": "human", "value": "blacklist = require '../../lib/blacklist.coffee'\n{ TEAM_BLOGS } = require('sharify').data\n\nmodule.exports =\n patterns: [\n '^/personalize'\n '^/artsy-primer'\n '^/...
coffeescript
chosen
[ { "from": "system", "value": "Add post author to prepopulated reply mentions\n" }, { "from": "human", "value": "TentStatus.Views.PostReplyForm = class PostReplyFormView extends TentStatus.Views.NewPostForm\n @template_name: '_post_reply_form'\n @view_name: 'post_reply_form'\n\n is_reply_form:...
coffeescript
chosen
[ { "from": "system", "value": "Add italic to html container editor\n" }, { "from": "human", "value": "init = ->\n $(\"[data-provider='summernote']\").summernote\n height: 300\n maximumImageFileSize: 262144 # 256KB\n\n$(document).ready(init)\n" }, { "from": "gpt", "value": "init...
coffeescript
chosen
[ { "from": "system", "value": "Tweak askParams of TentacleWhip skill\n" }, { "from": "human", "value": "_ = require 'lodash'\n\ngame = require '../game'\nlog = require '../log'\nprompts = game.prompts\n\ndirection = require '../direction'\nvectorMath = require '../vector-math'\ncalc = require '.....
coffeescript
chosen
[ { "from": "system", "value": "Use hack for valid hash attr\n" }, { "from": "human", "value": "StepView = require './step.coffee'\nForm = require '../../form/index.coffee'\nLocationSearch = require '../../location_search/index.coffee'\ntemplate = -> require('../templates/basic_info.jade') argumen...
coffeescript
chosen
[ { "from": "system", "value": "Allow arrays as param lists in\n" }, { "from": "human", "value": "vm = require 'vm'\n\nexports.allowUnsafeEval = (fn) ->\n previousEval = global.eval\n try\n global.eval = (source) -> vm.runInThisContext(source)\n fn()\n finally\n global.eval = previousE...
coffeescript
chosen
[ { "from": "system", "value": "Revert \"re-run tests on changes in site.js\"\n\nThis reverts commit 89e3a3d26be72fc3d49a89fc8cbc75abf73999ce.\n" }, { "from": "human", "value": "module.exports = (config) ->\n config.set\n basePath: ''\n frameworks: [ 'jasmine' ]\n files: [\n 'public...
coffeescript
chosen
[ { "from": "system", "value": "Simplify the code that initializes process.env.PATH\n" }, { "from": "human", "value": "path = require \"path\"\nlatexmk = require \"./latexmk\"\n\nmodule.exports =\n configDefaults:\n texPath: \"$PATH:/usr/texbin\"\n outputDirectory: \"\"\n enableShellEsca...
coffeescript
chosen
[ { "from": "system", "value": "Use a common beforeEach in TransactionManager tests\n" }, { "from": "human", "value": "r = require('require-root')('generic-dht')\nTransactionManager = r 'src/transactions/TransactionManager'\n\ndescribe 'TransactionManager', ()->\n\n beforeEach ()->\n @response...
coffeescript
chosen
[ { "from": "system", "value": "Remove h1 from CKEDITOR format_tags\n\n[Finishes #61519586]\n" }, { "from": "human", "value": "window.Tahi ||= {}\n\nclass Tahi.RichEditableElement\n constructor: (@element) ->\n @instance = CKEDITOR.inline @element,\n extraPlugins: 'sharedspace'\n rem...
coffeescript
chosen
[ { "from": "system", "value": "Fix infinite scroll for pages w/ query string params already on them\n" }, { "from": "human", "value": "$ ->\n # Don't run on non-video pages\n return if not $('.videos').length\n\n # $(window).sausage({page: '.video'\n # , content: (i, page) ->\n # '<span cla...
coffeescript
chosen
[ { "from": "system", "value": "Use the official parentData method to access parents data\n" }, { "from": "human", "value": "Template.instancesOfProcurementForm.events\n \"click .add-instance-of-procurement\": -> @instancesOfProcurementCollection.insert {}\n\nTemplate.instancesOfProcurementForm...
coffeescript
chosen
[ { "from": "system", "value": "Fix api function name regression.\n\nFrom 7ec2e329da4f16da80d682bc37d9ec8e2f7ce6c7\n" }, { "from": "human", "value": "class @ReceiptFindMode extends CheckoutMode\n ModeSwitcher.registerEntryPoint(\"receipt_list\", @)\n\n constructor: ->\n super\n @receiptLis...
coffeescript
chosen
[ { "from": "system", "value": "Disable language-sql atom built-in package\n\nI don't think I need it.\n" }, { "from": "human", "value": "\"*\":\n core:\n audioBeep: false\n closeEmptyWindows: false\n disabledPackages: [\n \"language-clojure\"\n \"language-go\"\n \"languag...
coffeescript
chosen
[ { "from": "system", "value": "Disable representatives job for now.\n" }, { "from": "human", "value": "# Copyright 2013 Matt Farmer\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain...
coffeescript
chosen
[ { "from": "system", "value": "Refactor loading of order responses\n" }, { "from": "human", "value": "Sprangular.service \"Orders\", ($http) ->\n\n service =\n find: (number) ->\n $http.get(\"/api/orders/#{number}\")\n .then (response) ->\n Sprangular.extend(response.data...
coffeescript
chosen
[ { "from": "system", "value": "Allow input also in degrees\n" }, { "from": "human", "value": "noflo = require 'noflo'\n\nclass RotateElement extends noflo.Component\n description: 'Change the coordinates of a DOM element'\n constructor: ->\n @element = null\n @inPorts =\n element: ne...
coffeescript
chosen
[ { "from": "system", "value": "Store the version available for update.\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 new Abo...
coffeescript
chosen
[ { "from": "system", "value": "Fix UpdateOnSignInOrOutMixin so it doesn't trigger forceUpdate when impossible\n" }, { "from": "human", "value": "window.UpdateOnSignInOrOutMixin =\n componentDidMount: ->\n window.currentSession.user().on 'change:username', (-> @forceUpdate()), @\n\n component...
coffeescript
chosen
[ { "from": "system", "value": "Make it possible to prefix routes.\n" }, { "from": "human", "value": "ModelEmitter = require './model-emitter'\nRoute = require './route'\n\nclass App extends ModelEmitter\n constructor: (state = {}) ->\n super\n @_routes = {}\n @views = []\n\n a...
coffeescript
chosen
[ { "from": "system", "value": "Improve look of issues display\n" }, { "from": "human", "value": "{$$, EditorView, View} = require 'atom'\nmarked = require 'marked'\n\nmodule.exports =\n\nclass GitIssueView extends View\n @content: ->\n @div =>\n @h1 'GitHub Issues'\n @ul()\n constr...
coffeescript
chosen
[ { "from": "system", "value": "Refactor sidebar own machine list class definition\n" }, { "from": "human", "value": "kd = require 'kd'\nglobals = require 'globals'\nKDCustomHTMLView = kd.CustomHTMLView\n\nEnvironmentsModal = require 'app/environment/environmentsmodal...
coffeescript
chosen
[ { "from": "system", "value": "Return files sorted by name\n\nThis makes tests less flaky." }, { "from": "human", "value": "fs = require 'fs'\npath = require 'path'\n\n\n# Finds all test files in the given directory.\nclass TestsFinder\n\n constructor: (@directory) ->\n\n\n # Returns the name o...
coffeescript
chosen
[ { "from": "system", "value": ":new: Enforce more validations on linter and messages\n" }, { "from": "human", "value": "{Range} = require('atom')\nhelpers = require('./helpers')\n\nmodule.exports = Validate =\n\n linter: (linter) ->\n # set undefined to false for backward compatibility\n l...
coffeescript
chosen
[ { "from": "system", "value": "Make left dive into diff view\n" }, { "from": "human", "value": "'.workspace':\n 'ctrl-9': 'github:toggle-git-panel'\n 'ctrl-(': 'github:toggle-git-panel-focus' # ctrl-shift-9\n\n'.github-Panel':\n 'cmd-enter': 'github:commit'\n 'ctrl-enter': 'github:commit'\n\n...
coffeescript
chosen
[ { "from": "system", "value": "Switch Crystal beautifier to using Executables\n" }, { "from": "human", "value": "###\nRequires https://github.com/jaspervdj/stylish-haskell\n###\n\n\"use strict\"\nBeautifier = require('./beautifier')\n\nmodule.exports = class Crystal extends Beautifier\n name: \"...
coffeescript
chosen
[ { "from": "system", "value": "Make the markdown a bit more customizable with h1, h2, and div\n" }, { "from": "human", "value": "Backbone = require 'backbone'\nsd = require('sharify').data\n{ Markdown } = require 'artsy-backbone-mixins'\ninsane = require('insane')\n_ = require 'underscore'\n\nmod...
coffeescript
chosen
[ { "from": "system", "value": "Fix slider breakage after navigation\n" }, { "from": "human", "value": "###\n# Copyright 2015 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#\n# os...
coffeescript
chosen
[ { "from": "system", "value": "Enhance pattern-type test with more assertions on cases of invalid patterns\n" }, { "from": "human", "value": "describe 'error of incorrect pattern type when', ->\n\n it 'is not an Object or Array', ->\n a.throws (-> ss 'foobar'), 'Error: Given argument type Str...
coffeescript
chosen
[ { "from": "system", "value": "Use node by default; don't depend on coffee.\n" }, { "from": "human", "value": "{exec} = require 'child_process'\npath = require 'path'\nfs = require 'fs'\n\nREFRESH_RATE = 500 # in msecs\nRUN_PATH = path.join __dirname, \"run_test.coffee\"\nseen ...
coffeescript
chosen
[ { "from": "system", "value": "Add other page fields to preview functionality\n" }, { "from": "human", "value": "#= require jquery\n#= require jquery_ujs\n#= require foundation\n#= require ace/ace\n#= require ace/theme-monokai\n#= require ace/mode-coffee\n#= require ace/mode-handlebars\n#= requir...
coffeescript
chosen
[ { "from": "system", "value": "Fix settings javascript for Firefox compatibility\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...
coffeescript
chosen
[ { "from": "system", "value": "Add message poller and users poller to state data\n" }, { "from": "human", "value": "App.IndexRoute = App.AuthenticatedRoute.extend\n setupController: (controller, model)->\n stateData = {}\n stateIds = []\n activeState = null\n\n # Loop thru all room...
coffeescript
chosen
[ { "from": "system", "value": "Move class loading after window.onload to show splash quickly\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...
coffeescript
chosen
[ { "from": "system", "value": "Use the date object instead of a param\n" }, { "from": "human", "value": "# Description:\n# Hubot enforces the correct time to talk about lunch.\n#\n# Dependencies:\n# None\n#\n# Configuration:\n# None\n#\n# Commands:\n# lunch -> Isn't it a little early to b...
coffeescript
chosen
[ { "from": "system", "value": "Update default config by specifying its type\n" }, { "from": "human", "value": "{CompositeDisposable} = require 'atom'\n\nmodule.exports =\n configDefaults:\n directory: 'testdata'\n\n notationalVelocityView: null\n\n activate: (state) ->\n # Events subscri...
coffeescript
chosen
[ { "from": "system", "value": "Use subarrays as browsers (chrome at least) don't support slice.\n\nWorks correctly in node, also.\n" }, { "from": "human", "value": "# Gets added by gulp build.\n# base64 = require 'base64binary'\n\nuint8ArrayToInt = (arr) ->\n\tlen = arr.length\n\treturn 0 if len ...
coffeescript
chosen
[ { "from": "system", "value": "Apply email sanitization procedure to emails from all domains except koding.com\n" }, { "from": "human", "value": "sanitize = (email, options = {}) ->\n\n email = email.trim().toLowerCase()\n\n return switch\n when checkGmail email then sanitizeGmail email, opt...
coffeescript
chosen
[ { "from": "system", "value": "Fix using Javascript reserved keyword\n" }, { "from": "human", "value": "# Initializers\n$ ->\n # jQuery datepickers (also evaluates dynamically added HTML)\n $(document).on 'focus', '.datepicker:not(.hasDatepicker)', ->\n defaults = dateFormat: 'yy-mm-dd'\n ...
coffeescript
chosen
[ { "from": "system", "value": "Use __dirname to make sure the relative path is relative to where we expect.\n" }, { "from": "human", "value": "Promise = require 'bluebird'\nfs = Promise.promisifyAll require 'fs'\nos = require 'os'\ncrypto = require 'crypto'\n\n# Parses the output of /proc/cpuinfo...
coffeescript
chosen