conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Call toggle each time command is dispatched\n" }, { "from": "human", "value": "grammarListView = null\ngrammarStatusView = null\n\nmodule.exports =\n config:\n showOnRightSideOfStatusBar:\n type: 'boolean'\n default: true\n\n activate: ->\n @comman...
coffeescript
chosen
[ { "from": "system", "value": "Refactor using lodash for ie11\n" }, { "from": "human", "value": "angular.module('impac.filters.moment-date', []).filter('momentDate', ($translate, ImpacTheming) ->\n (date, component) ->\n\n moment.locale($translate.use().toLowerCase())\n\n validPeriods = ['...
coffeescript
chosen
[ { "from": "system", "value": "Add default value for existingAddress attribute in compile stage\n" }, { "from": "human", "value": "Sprangular.directive 'addressSelection', ->\n restrict: 'E'\n templateUrl: 'addresses/selection.html'\n scope:\n address: '='\n addresses: '='\n countries...
coffeescript
chosen
[ { "from": "system", "value": "Make compatible with coffee 1.1.3 bug\n" }, { "from": "human", "value": "# Implements global `ajaxBeforeSend` event.\n#\n# jQuery already provides a handful of global AJAX events. However,\n# there is no global version of `beforeSend`, so `ajaxBeforeSend` is\n# adde...
coffeescript
chosen
[ { "from": "system", "value": "Add toggle menu item for panels\n\nRefs #164\n" }, { "from": "human", "value": "'menu': [\n 'label': 'Find'\n 'submenu': [\n { 'label': 'Find in Buffer', 'command': 'find-and-replace:show'}\n { 'label': 'Replace in Buffer', 'command': 'find-and-replace:show-...
coffeescript
chosen
[ { "from": "system", "value": "Indent msg.send so that we all can Clay. Sheeeeeeeeeit.\n" }, { "from": "human", "value": "# Description:\n# When you get some bad news sometimes you got to let it out.\n#\n# Dependencies:\n# None\n#\n# Configuration:\n# None\n#\n# Commands:\n# sheeeit - Dis...
coffeescript
chosen
[ { "from": "system", "value": ":bug: Fix markers persisting after tokenisation when they should have been hidden\n" }, { "from": "human", "value": "{CompositeDisposable} = require 'atom'\n\nmodule.exports =\nclass MinimapPigmentsBinding\n constructor: ({@editor, @minimap, @colorBuffer}) ->\n ...
coffeescript
chosen
[ { "from": "system", "value": "Simplify spec files regex since webpack should be doing all the heavy lifting\n" }, { "from": "human", "value": "webpackConfig = require('./webpack.config.coffee')\nwebpackConfig.entry = {}\n\nmodule.exports = (config) ->\n config.set\n frameworks: ['jasmine']\...
coffeescript
chosen
[ { "from": "system", "value": "Fix bugs with shared url\n" }, { "from": "human", "value": "Router.configure\n\tlayoutTemplate: 'Layout'\n\n\nRouter.route '/', ->\n\treturn @redirect '/course/si'\n\n\nRouter.route '/si', ->\n\treturn @redirect '/course/si'\n\n\nRouter.route '/tsi', ->\n\treturn @r...
coffeescript
chosen
[ { "from": "system", "value": "[master] Break tests down into one\n" }, { "from": "human", "value": "define (require) ->\n\n Piece = require 'Piece'\n ranks = require 'ranks'\n\n describe 'Piece', ->\n\n for rank of ranks\n do (rank) ->\n it \"should not throw if rank #{rank}\",...
coffeescript
chosen
[ { "from": "system", "value": "Use fs.readdirSync() for listing package directories\n\nPreviously fsUtils.listTreeSync() was used which returns every path\nin the tree, not just paths directly underneath the root path.\n\nThis speeds up the spec suite require time by not stat'ing the entire\nnode_modules dir...
coffeescript
chosen
[ { "from": "system", "value": "Add method to reset avatar\n" }, { "from": "human", "value": "Meteor.methods\n\tsetAvatarFromService: (image, service) ->\n\t\tif not Meteor.userId()\n\t\t\tthrow new Meteor.Error 203, '[methods] typingStatus -> Usuário não logado'\n\n\t\tuser = Meteor.user()\n\n\t\...
coffeescript
chosen
[ { "from": "system", "value": "Fix displaying error messages from forms\n" }, { "from": "human", "value": "angular.module(\"hyperadmin\")\n .controller \"FormCtrl\", ($scope, Restangular) ->\n @submit = =>\n target = @meta.target\n method = @meta.method\n\n onError = (response)...
coffeescript
chosen
[ { "from": "system", "value": "Allow autofocus to accept a container element\n" }, { "from": "human", "value": "_ = require 'underscore'\n{ isTouchDevice } = require '../util/device.coffee'\n\nmodule.exports =\n firstVisibleInput: ($el) ->\n $el.find('input:visible, textarea:visible').first()...
coffeescript
chosen
[ { "from": "system", "value": "Send UUID on 'data' rather than 'disconnect'\n" }, { "from": "human", "value": "noflo = require(\"noflo\")\nuuid = require(\"node-uuid\")\n\nclass RandomUuid extends noflo.Component\n\n description: \"Generate a random UUID token\"\n\n constructor: ->\n @inPort...
coffeescript
chosen
[ { "from": "system", "value": "Add jQuery and show move data.\n" }, { "from": "human", "value": "require 'js-yaml'\nsocket = require 'socket.io'\n\nsolid = require 'solid'\n\n{Engine} = require './engine'\nengine = new Engine\n moves: require './data/bw/moves.yml'\n\nio = socket.listen solid (ap...
coffeescript
chosen
[ { "from": "system", "value": "Add support for gitignores other than .gitignore\n" }, { "from": "human", "value": "'fileTypes': [\n 'gitattributes'\n 'gitignore'\n 'conf'\n 'ctags'\n 'hgignore'\n 'mailmap'\n 'stylelintignore'\n 'cfg'\n]\n'name': 'Generic Configuration'\n'patterns': [\n {...
coffeescript
chosen
[ { "from": "system", "value": "Test client request is a writable stream\n" }, { "from": "human", "value": "client = require 'nack/client'\nprocess = require 'nack/process'\n\nconfig = __dirname + \"/fixtures/echo.ru\"\n\nexports.testClientRequest = (test) ->\n test.expect 8\n\n p = process.cre...
coffeescript
chosen
[ { "from": "system", "value": "Add a spec for class-list enhancements\n" }, { "from": "human", "value": "DefaultFileIcons = require '../lib/default-file-icons'\nFileIcons = require '../lib/file-icons'\n\ndescribe 'FileIcons', ->\n afterEach ->\n FileIcons.setService(new DefaultFileIcons)\n\n ...
coffeescript
chosen
[ { "from": "system", "value": "Fix bug in transforming linked todo_list titles into plain text\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 Coffee...
coffeescript
chosen
[ { "from": "system", "value": "Set visitor attributes on stance construction\n" }, { "from": "human", "value": "angular.module('loomioApp').factory 'StanceModel', (DraftableModel, AppConfig, MentionLinkService) ->\n class StanceModel extends DraftableModel\n @singular: 'stance'\n @plural: ...
coffeescript
chosen
[ { "from": "system", "value": "Remove existence check in def and set defined properties as writable.\n" }, { "from": "human", "value": "# This file contains utilities to deal with prototype extensions.\n\n#### def\n\n# Defines a non-enumerable property on the specified constructor's `prototype`.\...
coffeescript
chosen
[ { "from": "system", "value": "Validate parameters, and:\n1. check that room creator is not removed\n2. relabel room if access permissions changed\n3. add new members that we're previously in the room\n4. remove existing members that should no longer be in the room\n" }, { "from": "human", "value...
coffeescript
chosen
[ { "from": "system", "value": "Set image dimensions after loading the File\n" }, { "from": "human", "value": "class Trix.ImageAttachmentView\n constructor: (@attachment) ->\n @attachment.delegate = this\n @image = document.createElement(\"img\")\n\n render: ->\n @loadPreview() if @atta...
coffeescript
chosen
[ { "from": "system", "value": "Add Select Inside Brackets to Selection menu\n" }, { "from": "human", "value": "'menu': [\n {\n 'label': 'Packages'\n 'submenu': [\n 'label': 'Bracket Matcher'\n 'submenu': [\n { 'label': 'Go To Matching Bracket', 'command': 'bracket-matcher:...
coffeescript
chosen
[ { "from": "system", "value": "Change to post in channel not reply.\n" }, { "from": "human", "value": "module.exports = (robot) ->\n robot.hear /the more you know/, (msg) ->\n msg.reply \"http://www.youtube.com/watch?v=v3rhQc666Sg\"\n\n" }, { "from": "gpt", "value": "module.export...
coffeescript
chosen
[ { "from": "system", "value": "Remove a test that fails in TeamCity.\n\nThere is no obvious reason why this test should fail, but since\nWebadmin has been replaced by the Browser, there doesn't seem to be any\npoint trying to work out what is going on.\n" }, { "from": "human", "value": "\ndefine ...
coffeescript
chosen
[ { "from": "system", "value": "Revert \"Some nice warnings away\"\n\nThis reverts commit 1e04dc556af840e0e4571e287135e510245524d7.\n" }, { "from": "human", "value": "reqr = if global.GENTLY then GENTLY.hijack(require) else require\nstream = reqr \"stream\"\n\nclass Paginat...
coffeescript
chosen
[ { "from": "system", "value": "Move initializing of observing into a method\n" }, { "from": "human", "value": "###\nUse intersection observer to lazy load. Not using vue-in-viewport-mixin since\nneeds are simpler and I want more control.\n###\nexport default\n\n\tprops:\n\t\tintersectionOptions:...
coffeescript
chosen
[ { "from": "system", "value": "Test logout signal is emitted after destroy\n" }, { "from": "human", "value": "{Testing, expect, sinon, _} = require 'openstax-react-components/test/helpers'\n\nUser = require 'user/model'\n\ndescribe 'User', ->\n\n it 'defaults to not logged in', ->\n expect(Us...
coffeescript
chosen
[ { "from": "system", "value": ":non-potable_water: Clear config subscriptions when unobserving\n" }, { "from": "human", "value": "module.exports =\n observeConfig: (keyPath, args...) ->\n @configSubscriptions ?= {}\n @configSubscriptions[keyPath] = config.observe(keyPath, args...)\n\n uno...
coffeescript
chosen
[ { "from": "system", "value": "Remove function to open collections when clicking on the database label in the tree\n" }, { "from": "human", "value": "class window.DatabaseItemView extends Backbone.View\n tagName: 'li'\n className: 'databaseItem'\n\n events:\n 'click .databaseItem span': 'go...
coffeescript
chosen
[ { "from": "system", "value": "Update Utils.FullHeightHeader. Put instance into @el so @el can access @compute()\n" }, { "from": "human", "value": "# USE\n# If the element is not a component, add full-height-header attribute to the tag.\n# With a component, add 'full_height_header: true' to the p...
coffeescript
chosen
[ { "from": "system", "value": "Add link to global header\n" }, { "from": "human", "value": "$ ->\n GlobalHeader = React.createClass\n propTypes:\n imagePath: React.PropTypes.string.isRequired\n imageTitle: React.PropTypes.string.isRequired\n render: ->\n <h1 className=\"Glob...
coffeescript
chosen
[ { "from": "system", "value": "Work on RequireJS Jasmine test.\n" }, { "from": "human", "value": "describe \"RequireJS\", ->\n beforeEach ->\n @addMatchers\n requirejsTobeUndefined: ->\n typeof requirejs is \"undefined\"\n\n requireTobeUndefined: ->\n typeof require is...
coffeescript
chosen
[ { "from": "system", "value": "Adjust `Builder` signature to match implementations\n" }, { "from": "human", "value": "_ = require \"underscore-plus\"\n\nmodule.exports =\nclass Builder\n constructor: ->\n @envPathKey = switch process.env.platform\n when \"win32\" then \"Path\"\n els...
coffeescript
chosen
[ { "from": "system", "value": "Fix bug due to accidental use of `path` module\n\nThe function `Builder::resolveLogFilePath` uses `path` module rather than\nthe `path` variable. Changes variable name to `childPath` and requires\nthe `path` module.\n\nCloses #28\n" }, { "from": "human", "value": "_...
coffeescript
chosen
[ { "from": "system", "value": "Allow /auth/status to use credentials (cookies)\n" }, { "from": "human", "value": "settings =\n # to customize, set environmental var BASE_URL when building or running webpack-dev-server\n # Currently is set on an endpoint by endpoint basis until all are implement...
coffeescript
chosen
[ { "from": "system", "value": "Update menu test to match new options\n" }, { "from": "human", "value": "{Testing, expect, sinon, _} = require 'openstax-react-components/test/helpers'\n\nMenu = require 'user/menu'\nUser = require 'user/model'\nCourse = require 'course/model'\nsandbox = null\n\ndes...
coffeescript
chosen
[ { "from": "system", "value": "Fix added shifts' datetimepickers not working\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 fil...
coffeescript
chosen
[ { "from": "system", "value": "Update Commands section of header\n" }, { "from": "human", "value": "# Description:\n# Get the CI status reported to GitHub for a repo and pull request\n#\n# Dependencies:\n# \"githubot\": \"0.4.x\"\n#\n# Configuration:\n# HUBOT_GITHUB_TOKEN\n# HUBOT_GITHUB_...
coffeescript
chosen
[ { "from": "system", "value": "Increase polling to 150 seconds maximum before showing error message.\n" }, { "from": "human", "value": "angular.module(\"admin.orders\").controller \"bulkInvoiceCtrl\", ($scope, $http, $timeout) ->\n $scope.createBulkInvoice = ->\n $scope.invoice_id = null\n ...
coffeescript
chosen
[ { "from": "system", "value": ":arrow_up: Upgrade helper specs to match latest module\n" }, { "from": "human", "value": "describe 'helpers', ->\n helpers = require('../lib/helpers')\n beforeEach ->\n atom.notifications.clear()\n\n describe '::error', ->\n it 'adds an error notification',...
coffeescript
chosen
[ { "from": "system", "value": "Update view and entity on value change.\n" }, { "from": "human", "value": "do (_=_, $ = jQuery || null, JEFRi = JEFRi) ->\n\tJEFRi.Template.rendered.entity :> ([entity, $render]) ->\n\t\tdefinition = entity._definition()\n\t\tfor field, property of definition.proper...
coffeescript
chosen
[ { "from": "system", "value": "Replace Leaflet tile with MapQuest tile\n\nI have replaced the Leaflet tile with the MaoQuest-OSM Tile.\n\nSigned-off-by: Konrad Reiche <4ff0213f56e2082fcd8c882d04c546881c579ce4@gmail.com>\n" }, { "from": "human", "value": "#= require leaflet\n$ ->\n map = L.map('m...
coffeescript
chosen
[ { "from": "system", "value": "Use meta-. to jump to declaration\n" }, { "from": "human", "value": "window.keymap.bindKeys '.editor'\n 'meta-j': 'outline-view:toggle'\n 'f3': 'outline-view:jump-to-declaration'\n" }, { "from": "gpt", "value": "window.keymap.bindKeys '.editor'\n 'met...
coffeescript
chosen
[ { "from": "system", "value": "Fix Bitbucket to use url" }, { "from": "human", "value": "NotificationPlugin = require \"../../notification-plugin\"\nurl = require \"url\"\nqs = require 'qs'\n\nclass BitbucketIssue extends NotificationPlugin \n @receiveEvent: (config, event, callback) ->\n\n ...
coffeescript
chosen
[ { "from": "system", "value": "Apply setAccessors to SetSort before we override them.\n" }, { "from": "human", "value": "#= require ../object\n#= require ./set\n\nclass Batman.SetProxy extends Batman.Object\n constructor: (@base) ->\n super()\n @length = @base.length\n @base.on 'itemsWe...
coffeescript
chosen
[ { "from": "system", "value": "Remove unused grammar property in runtime test" }, { "from": "human", "value": "assert = require(\"assert\")\nSpyReader = require \"./helpers/spy_reader\"\nts = require(\"..\")\n{ repeat, seq } = ts.rules\n\ngrammar = ts.grammar\n name: 'trivial_grammar'\n start: ...
coffeescript
chosen
[ { "from": "system", "value": "Add `.loading` class to body when `Status.isLoading`\n" }, { "from": "human", "value": "Sprangular.service \"Status\", ($rootScope, $translate) ->\n\n status =\n initialized: false\n pageTitle: \"Home\"\n bodyClasses: {default: true}\n requestedPath: nu...
coffeescript
chosen
[ { "from": "system", "value": "Update naming and remove admin restrictions\n" }, { "from": "human", "value": "express = require 'express'\nadminOnly = require '../../lib/middleware/admin_only'\nJSONPage = require '../../components/json_page'\n\napp = module.exports = express()\napp.set 'views', _...
coffeescript
chosen
[ { "from": "system", "value": "Clean requires in stack application module (server)\n" }, { "from": "human", "value": "request = require(\"request-json\")\nfs = require('fs')\nslugify = require 'cozy-slug'\n{AppManager} = require '../lib/paas'\nspawn...
coffeescript
chosen
[ { "from": "system", "value": "Fix home not logged in test\n" }, { "from": "human", "value": "should = require 'should'\n{wd40, browser} = require('../wd40')\n\nurl = 'http://localhost:3001'\n\ndescribe 'Home page (not logged in)', ->\n before (done) ->\n wd40.init ->\n browser.get url, ...
coffeescript
chosen
[ { "from": "system", "value": "Build correct endpoint in NodeHttpClient test\n" }, { "from": "human", "value": "# Copyright 2012-2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\"). You\n# may not use this file excep...
coffeescript
chosen
[ { "from": "system", "value": "Allow markdown preview view to be scrolled with core:move-up/move-down\n" }, { "from": "human", "value": "fs = require 'fs'\n$ = require 'jquery'\nScrollView = require 'scroll-view'\n{$$$} = require 'space-pen'\n\nmodule.exports =\nclass MarkdownPreviewView extends ...
coffeescript
chosen
[ { "from": "system", "value": "Revert \"CHECKPOINT re-implemented binarySearch using slices\"\n\nThis reverts commit 4454540a3858f512861e376414f8ab41e9da7662.\n" }, { "from": "human", "value": "\n{ isListAscending } = require './is-list-ascending.coffee'\n\n_binarySearch = (sortedList, needle)->\...
coffeescript
chosen
[ { "from": "system", "value": "Add command to clear the cache\n" }, { "from": "human", "value": "IncompatiblePackagesView = null\n\nviewUri = 'atom://incompatible-packages'\ncreateView = (state) ->\n IncompatiblePackagesView ?= require './incompatible-packages-view'\n new IncompatiblePackagesVi...
coffeescript
chosen
[ { "from": "system", "value": "[Routes] Create two routers, one for the site and another for API responses\n\nThis makes it easier to add middleware just for our API responses ex: CORS headers\n" }, { "from": "human", "value": "__doc__ = \"\"\"\nAn application that provides a service for confirmi...
coffeescript
chosen
[ { "from": "system", "value": "Remove console log and don't open view on load" }, { "from": "human", "value": "{CompositeDisposable} = require 'atom'\nHistoryView = null\nChangesView = null\n\nHISTORY_URI = 'atom://git-experiment/view-history'\nCHANGES_URI = 'atom://git-experiment/view-changes'\n...
coffeescript
chosen
[ { "from": "system", "value": "Remove all backdrops when modal is hidden\n\nAnd reset the padding as well.\n\nStill Not sure how to properly fix this.\nAt least this one will prevent black page when the avatar is clicked repeatedly.\n\nCloses #54.\n" }, { "from": "human", "value": "###\nCopyright...
coffeescript
chosen
[ { "from": "system", "value": "Add a method to check if the javascript is working.\n" }, { "from": "human", "value": "#= require jquery.js\n#= require bootstrap.js\n#= require jquery_ujs\n#= require jquery-ui.js\n#= require jquery.cookie\n#= require jquery.titlealert\n#= require jquery.mousewheel...
coffeescript
chosen
[ { "from": "system", "value": "Use CourseGroupingLabel when referring to sections\n" }, { "from": "human", "value": "_ = require 'underscore'\nReact = require 'react'\nBS = require 'react-bootstrap'\nDesktopImage = require './desktop-image'\n\nBlankCourse = React.createClass\n\n propTypes:\n ...
coffeescript
chosen
[ { "from": "system", "value": "Replace jQuery .live method by .on" }, { "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://jas...
coffeescript
chosen
[ { "from": "system", "value": "Add prefix to mongoose logs.\n" }, { "from": "human", "value": "util = require 'util'\nmodule.exports = (logger, depth = 2) ->\n (collection, method, query, doc, options) ->\n logger.info 'mongoose', '\"#{collection}.#{method}(#{util.inspect(query, depth: depth)...
coffeescript
chosen
[ { "from": "system", "value": "Fix starting mode when loading user profile page\n\nSplitting empty string results in single element array of empty string\n" }, { "from": "human", "value": "###\n# Copyright 2015-2017 ppy Pty. Ltd.\n#\n# This file is part of osu!web. osu!web is distributed wi...
coffeescript
chosen
[ { "from": "system", "value": "Remove named plugin from classroom\n\nSince we're sourcing from course instances which did not have such a limitation\n" }, { "from": "human", "value": "mongoose = require 'mongoose'\nlog = require 'winston'\nconfig = require '../../server_config'\nplugins = require...
coffeescript
chosen
[ { "from": "system", "value": "Clear the session if a 403 occurs" }, { "from": "human", "value": "Route = Ember.Route.extend\n model: ->\n # return the current user as the model if authenticated, otherwise a blank object\n new Promise (resolve, reject) =>\n promise = $.ajax\n u...
coffeescript
chosen
[ { "from": "system", "value": "Fix spelling misstake in test case\n" }, { "from": "human", "value": "assert = require 'assert'\nrequest = require 'supertest'\n\nreq = request require '../src/server'\n\ndescribe '/CloudHealthCheck', ->\n it 'should return 200 for OPTIONS request', (done) ->\n ...
coffeescript
chosen
[ { "from": "system", "value": "Use default configuration if no project config is available\n" }, { "from": "human", "value": "fs = require 'fs'\npath = require 'path'\n\nmodule.exports =\nclass ProjectConfig\n\n data: {}\n disposables: []\n\n constructor: ->\n @load(atom.project.g...
coffeescript
chosen
[ { "from": "system", "value": "Add Grunt task alias ‘build’\n" }, { "from": "human", "value": "module.exports = (grunt) ->\n\tgrunt.initConfig\n\t\tclean:\n\t\t\tpackage: ['lib']\n\t\tcoffee:\n\t\t\toptions:\n\t\t\t\tbare: true\n\t\t\tfiles:\n\t\t\t\texpand: true\n\t\t\t\tcwd: 'src'\n\t\t\t\tsrc:...
coffeescript
chosen
[ { "from": "system", "value": "Update timeout to 5 seconds\n" }, { "from": "human", "value": "chai = require('chai')\nsinon = require('sinon')\nsinonChai = require('sinon-chai')\nchai.use(sinonChai)\nisFunction = require('lodash/isFunction')\n\nglobal.enzyme = require 'enzyme'\nchaiEnzyme = requi...
coffeescript
chosen
[ { "from": "system", "value": "Set start day for lic87\n" }, { "from": "human", "value": "export startDayForWeeks =\n \"lic40\": \"2019-09-04\"\n \"lic87\": \"2019-09-02\"\n \"zaoch\": \"2019-09-01\"\n \"stud\": \"2019-09-02\"\n \"notnnov\": \"2019-09-02\"\n \"graduated\": \"201...
coffeescript
chosen
[ { "from": "system", "value": "Check if view is available\n" }, { "from": "human", "value": "{View} = require 'atom'\n\nmodule.exports =\nclass PdfStatusBarView extends View\n @content: ->\n @div class: 'status-image inline-block', =>\n @span class: 'pdf-status', outlet: 'pdfStatus'\n\n ...
coffeescript
chosen
[ { "from": "system", "value": "Refactor Grunt build into dev and dist\n" }, { "from": "human", "value": "module.exports = (grunt) ->\n\n path = require 'path'\n\n require('time-grunt')(grunt)\n\n require('jit-grunt')(grunt, {\n express: 'grunt-express-server'\n })\n\n require('load-grun...
coffeescript
chosen
[ { "from": "system", "value": "Grunt: Watch CoffeeScript files, not compiled JS files\n" }, { "from": "human", "value": "module.exports = (grunt) ->\n\n # Project configuration.\n grunt.initConfig\n coffee:\n default:\n files: [\n expand: true # Enable dynamic ex...
coffeescript
chosen
[ { "from": "system", "value": "Add { as alignable character (disabled by default)\n" }, { "from": "human", "value": "module.exports =\n selector: ['.source.css.scss', '.source.sass']\n id: 'aligner-scss' # package name\n config:\n ':-alignment':\n title: 'Padding for :'\n descript...
coffeescript
chosen
[ { "from": "system", "value": "Save the syntax validation setting in the onboarding view.\n" }, { "from": "human", "value": "define [\n\t\"base\"\n], (App) ->\n\tApp.controller \"FeatureOnboardingController\", ($scope, settings) ->\n\t\t$scope.isFeatureSettingDefined = window.userSettings.syntaxV...
coffeescript
chosen
[ { "from": "system", "value": "Add editor.nonWordCharacters to editor config panel\n" }, { "from": "human", "value": "ConfigPanel = require 'config-panel'\n\nmodule.exports =\nclass EditorConfigPanel extends ConfigPanel\n @content: ->\n @div class: 'config-panel', =>\n @div class: 'row',...
coffeescript
chosen
[ { "from": "system", "value": "Add support for firefox by getting rid of new implementation of ellipse method on canvas context\n" }, { "from": "human", "value": "session = require '../session'\nutils = require '../utils'\n\nrectangle = (width, height) ->\n utils.startShape()\n\n x = sessio...
coffeescript
chosen
[ { "from": "system", "value": "Fix bug related to paths containing spaces\n\nResolves #42\n" }, { "from": "human", "value": "fs = require 'fs-plus'\npath = require 'path'\n\noutputPattern = ///\n ^Output\\swritten\\son\\s # Leading text.\n (.*) # Output path.\n \\s\\(.*\\)\...
coffeescript
chosen
[ { "from": "system", "value": "Create choice and get-by-competitionId routes\n" }, { "from": "human", "value": "{models, Resource, filters} = require '../resource_helper'\n\nChoiceResource = new Resource\n resourceNameMany: 'choices'\n resourceNameOne: 'choice'\n model: models.choice\n\nmodule...
coffeescript
chosen
[ { "from": "system", "value": "Revert \"Take 1 ms off the fromTime operator\"\n\nThis reverts commit fe0ab48c9e442534edb7cb8ad7d058a07a39e68f.\n" }, { "from": "human", "value": "Rx = require 'rx/index.js'\nR = require 'ramda'\n\nRx.Observable.fromTime = (timesAndValues, scheduler) ->\n timers = ...
coffeescript
chosen
[ { "from": "system", "value": "Simplify Grunt CoffeeScript compile syntax\n" }, { "from": "human", "value": "module.exports = (grunt) ->\n grunt.loadNpmTasks 'grunt-contrib-coffee'\n\n grunt.initConfig\n coffee:\n compile:\n files:\n 'lib/shuss-cli.js': 'src/shuss-cli.c...
coffeescript
chosen
[ { "from": "system", "value": "Add correct function call on load\n" }, { "from": "human", "value": "window.Binco.Select2 =\n load: (selector) ->\n selector = if typeof selector == 'undefined' then '.select2-rails' else selector\n $(selector).select2()\n\n$(document).ready window.Binco.Sele...
coffeescript
chosen
[ { "from": "system", "value": "Improve querystring serializer to detect numbers, nulls, undefined and booleans\n" }, { "from": "human", "value": "Qs = require('qs');\n\nmodule.exports = \n encode : (data)->\n Qs.stringify(data)\n decode : (search)->\n return Qs.parse(window...
coffeescript
chosen
[ { "from": "system", "value": "Add file-icons package to Atom\n" }, { "from": "human", "value": "packages: [\n \"auto-indent\"\n \"emmet\"\n \"expand-region\"\n \"git-diff-popup\"\n \"git-plus\"\n \"git-time-machine\"\n \"language-javascript-jsx\"\n \"linter\"\n \"linter-eslint\"\n \"li...
coffeescript
chosen
[ { "from": "system", "value": "Use 'uncaught-error' event from atom" }, { "from": "human", "value": "{_} = require 'atom'\nGuid = require 'guid'\n\nReporter = require './reporter'\n\nmodule.exports =\n activate: ->\n atom.config.set('exception-reporting.userId', Guid.raw()) unless atom.config...
coffeescript
chosen
[ { "from": "system", "value": "Change sunset hours for atom\n" }, { "from": "human", "value": "\"*\":\n core:\n disabledPackages: [\n \"wrap-guide\"\n \"activate-power-mode\"\n ]\n themes: [\n \"one-light-ui\"\n \"one-light-syntax\"\n ]\n editor: {}\n \"exceptio...
coffeescript
chosen
[ { "from": "system", "value": "Change dictionary url to Daum\n" }, { "from": "human", "value": "$ ->\n $input = $('input')\n $button = $('button')\n $dicIframe = $('.dic')\n $imagesIframe = $('.images')\n search = ->\n query = $input.val()\n return if query is ''\n\n dicUrlPrefix = ...
coffeescript
chosen
[ { "from": "system", "value": "Refactor CardQuestionView to use new Command/Aggregate structure\n" }, { "from": "human", "value": "eventric = require 'eventric'\nReadAggregateEntity = eventric 'ReadAggregateEntity'\n\nclass ReadAggregateRoot extends ReadAggregateEntity\n\n\nmodule.expo...
coffeescript
chosen
[ { "from": "system", "value": "Modify the speakers page to include only accepted speakers\n" }, { "from": "human", "value": "class @SpeakersController extends RouteController\n\n waitOn: -> Meteor.subscribe('speakers')\n\n after: -> document.title = \"Speakers | Reversim Summit 2014\"\n\n temp...
coffeescript
chosen
[ { "from": "system", "value": "Add model time entry test for duration\n" }, { "from": "human", "value": "TimeEntry = require '../../models/time_entry'\nshould = require 'should'\n\nmakeT = (offset = 10) ->\n t = new TimeEntry\n start: new Date() - 5\n end: new Date() - offset\n message:...
coffeescript
chosen
[ { "from": "system", "value": "Use ISO format for calendar events to avoid problems with TZ\n" }, { "from": "human", "value": "$(document).on 'page:change', ->\n\n container = $('#events-calendar')\n\n eventUpdate = (event)->\n url = \"/events/#{event.id}\"\n\n data =\n start_time: e...
coffeescript
chosen
[ { "from": "system", "value": "Move some methods to a lower point. Handle history creation.\n" }, { "from": "human", "value": "define ['lodash'], (L) -> Array '$rootScope', '$scope', '$http', (root, scope, http) ->\n\n root.startingPoints = []\n\n http.get(\"/tools\", {params: {capabilities: \"...
coffeescript
chosen
[ { "from": "system", "value": "Add support for --- keyword (transition)\n" }, { "from": "human", "value": "'scopeName': 'source.vp'\n'name': 'Valkyrie Profile'\n'fileTypes': ['vp']\n'patterns': [\n\t{\n\t\t'match': '^[^\\t]*$',\n\t\t'name': 'entity name function vp'\n\t},\n\t{\n\t\t'match': '^\\t...
coffeescript
chosen
[ { "from": "system", "value": "Rename filePath local var to uri because that's more accurate" }, { "from": "human", "value": "{_, Document} = require 'atom'\n\nSettingsView = null\nsettingsView = null\n\nconfigUri = 'atom://config'\n\ncreateSettingsView = (state) ->\n SettingsView ?= require './...
coffeescript
chosen
[ { "from": "system", "value": ":new: Add render and removeDecorations to Panel Model\n" }, { "from": "human", "value": "class Panel\n constructor: (@Linter)->\n\n registerView: (View)->\n @View = View\n @View.Model = this\nmodule.exports = Panel" }, { "from": "gpt", "value": "...
coffeescript
chosen
[ { "from": "system", "value": "Remove duplicate nulling out of view\n" }, { "from": "human", "value": "_ = require 'underscore'\n\nmodule.exports =\n projectPaths: null\n fuzzyFinderView: null\n\n activate: (state) ->\n rootView.command 'fuzzy-finder:toggle-file-finder', =>\n @createVi...
coffeescript
chosen
[ { "from": "system", "value": "atom: Add snippet for Mocha test statement\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 creat...
coffeescript
chosen
[ { "from": "system", "value": "Initialize answers 'after-insert' callback to keep answers order\n\nAlso provide a function to initialize new set of answers 'affer-insert'\ncallback after adding new questions.\n" }, { "from": "human", "value": "App.Answers =\n\n nestedAnswers: ->\n $('.nested-...
coffeescript
chosen