conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "NEW: Add create and update method\n" }, { "from": "human", "value": "angular.module(\"doubtfire.api.models.teaching-period\", [])\n\n.factory(\"TeachingPeriod\", (resourcePlus, api, currentUser, alertService) ->\n resource = resourcePlus \"/teaching_periods/:id\", ...
coffeescript
chosen
[ { "from": "system", "value": "Implement resizer that sets outer size of frame to inner control size\n" }, { "from": "human", "value": "\nclass ControlIframe\n constructor: ->\n @el = document.createElement('iframe')\n #need to append to outer document before we can access frame document.\...
coffeescript
chosen
[ { "from": "system", "value": "Add prophet get use item (2)\n" }, { "from": "human", "value": "{Panel} = ReactBootstrap\nmodule.exports = React.createClass\n render: ->\n <div>\n {\n if @props.getShip? or @props.getItem?\n <Panel>\n {\"#{@props.getShip.api_ship...
coffeescript
chosen
[ { "from": "system", "value": "Add more expectations for multiple roles\n" }, { "from": "human", "value": "describe 'jQuery Role', ->\n\n beforeEach ->\n loadFixtures('base.html')\n\n it 'should find elemenets by role using @ alias', ->\n expect(\n $('@some_role').get(0)\n ).toBe(...
coffeescript
chosen
[ { "from": "system", "value": "Remove relativeTime helper and change format of display time\n" }, { "from": "human", "value": "Em.Handlebars.helper 'relativeTime', (value, options)->\n time = moment(value)\n difference = moment().unix() - time.unix()\n if difference > 31536000\n time.format...
coffeescript
chosen
[ { "from": "system", "value": "Increase the height of the job list.\n" }, { "from": "human", "value": "window.JobsListView = class JobsListView extends Backbone.View\n\n events:\n 'click p.clear-all a': 'clearAll'\n\n initialize: ->\n @model.bind 'add', => this.render()\n @model.bind '...
coffeescript
chosen
[ { "from": "system", "value": "Change map to TERRAIN. Don't save datatables state.\n" }, { "from": "human", "value": "# This file uses the Garber-Irish method for allowing \"per-page Javascript.\"\n# I'm using the `gistyle` gem to handle the actual implementation of the pattern.\n\nAPP.init = ->\...
coffeescript
chosen
[ { "from": "system", "value": "Update navigation controller stack history management\n" }, { "from": "human", "value": "class @NavigationController extends @ViewController\n\n viewControllers: []\n childViewControllerContentId: 'navigation_controller_content'\n\n push: (viewController) ->\n ...
coffeescript
chosen
[ { "from": "system", "value": "Fix remove callback for Chrome 43\n" }, { "from": "human", "value": "getChromeVersion = -> getChromeVersion.version ||= +navigator.userAgent.match(/Chrom(e|ium)\\/([0-9]+)\\./)[2]\n\n# A store able to keep persistently data with the chrome storage API\nclass @ledger...
coffeescript
chosen
[ { "from": "system", "value": "Add Roxy Lead to Enums\n" }, { "from": "human", "value": "angular.module 'gameDefinition.enums', []\n .factory 'enums', () ->\n origins:\n illusionist: 'an illusionist'\n hallucinist: 'a hallucinist'\n hypnotist: 'a hypnotist'\n leads:\n n...
coffeescript
chosen
[ { "from": "system", "value": "Call next autofill iteration before it starts loading again\n" }, { "from": "human", "value": "getResponse = -> Screensmart.store.getState().response\ndelay = (ms, func) -> setTimeout func, ms\n\nwindow.autofill = ->\n delay 20, ->\n unless getResponse().loading...
coffeescript
chosen
[ { "from": "system", "value": "Use binary icon for .woff and .DS_Store extensions\n" }, { "from": "human", "value": "{View} = require 'space-pen'\n$ = require 'jquery'\nGit = require 'git'\nfs = require 'fs'\n\nmodule.exports =\nclass FileView extends View\n\n @content: ({file} = {}) ->\n @li...
coffeescript
chosen
[ { "from": "system", "value": "Add help for adapter command.\n" }, { "from": "human", "value": "# Description:\n# Utility commands surrounding Hubot uptime.\n#\n# Commands:\n# hubot ping - Reply with pong\n# hubot echo <text> - Reply back with <text>\n# hubot time - Reply with current tim...
coffeescript
chosen
[ { "from": "system", "value": "Allow commands to be any object\n" }, { "from": "human", "value": "class Lanes.Screens.CommonComponents extends Lanes.React.Component\n\n propTypes:\n commands: React.PropTypes.instanceOf(Lanes.Screens.Commands).isRequired\n errors: ...
coffeescript
chosen
[ { "from": "system", "value": "Fix wrong arrow in send mobile view controller\n" }, { "from": "human", "value": "class @WalletSendMobileDialogViewController extends @DialogViewController\n\n view:\n mobileName: \"#mobile_name\"\n\n cancel: ->\n Api.callback_cancel 'send_payment', t('walle...
coffeescript
chosen
[ { "from": "system", "value": "Use title and not full path for slugify\n" }, { "from": "human", "value": "fs = require('fs-extra-promise')\nfm = require('fastmatter')\nmoment = require('moment')\nmarkdown = require('marked')\nglob = require('glob-promise')\nPromise = require('bluebird')\nS = requ...
coffeescript
chosen
[ { "from": "system", "value": "Split functionality for printing questions\n" }, { "from": "human", "value": "Plugin = require 'plugin'\n{tr} = require 'i18n'\n\nexports.questions = questions = -> [\n [\"stolen alcohol from my parents\", true],\n [\"cheated in a competition\", false],\n [...
coffeescript
chosen
[ { "from": "system", "value": "Add Ruby snippet for context blocks\n" }, { "from": "human", "value": "\".source.ruby\":\n \"Hashrocket\":\n prefix: \"=\"\n body: \" => \"\n\n \"Test block\":\n prefix: \"test\"\n body: \"\"\"\n test \"$1\" do\n $2\n end\n \"\"\"\n...
coffeescript
chosen
[ { "from": "system", "value": "Embed associated data in EventSearch.\n\nThis has a couple benefits:\n\n1. The search becomes self-contained. Combined with persistence on the\n server, this means that the search parameters remain the same\n forever. (Or at least as long as Pancakes' database stays intac...
coffeescript
chosen
[ { "from": "system", "value": "Fix incoming messages not being shown\n" }, { "from": "human", "value": "Messages = new Meteor.Collection('messages')\nirc = Meteor.require 'irc'\nclients = {}\nMeteor.publish 'channel', (channel, nick) ->\n if channel && nick\n listen channel, nick\n ...
coffeescript
chosen
[ { "from": "system", "value": "Fix SVG image sizing in Safari" }, { "from": "human", "value": "# @cjsx React.DOM\n\nReact = require 'react'\n\n# React.DOM doesn't include an SVG <image> tag\n# (because of its namespaced `xlink:href` attribute, I think),\n# so this fakes one by wrapping it in a <g...
coffeescript
chosen
[ { "from": "system", "value": "Add keyboard support for navigating custom select box\n" }, { "from": "human", "value": "define ['jquery'], ($) ->\n\n class SelectGroup\n\n constructor: (@parent = null, @callback = false) ->\n @selectParent = (if @parent != null then $(@parent) else $('.j...
coffeescript
chosen
[ { "from": "system", "value": "Fix WebTerm to work correctly with multiple VMs\n" }, { "from": "human", "value": "class WebTermController extends AppController\n\n KD.registerAppClass this,\n name : \"WebTerm\"\n route : \"/Develop\"\n multiple : yes\n hiddenHandle...
coffeescript
chosen
[ { "from": "system", "value": "Disable atom auto-close with last tab\n" }, { "from": "human", "value": "\"*\":\n core:\n audioBeep: false\n disabledPackages: [\n \"language-clojure\"\n \"language-go\"\n \"language-java\"\n \"language-perl\"\n \"language-objective-c...
coffeescript
chosen
[ { "from": "system", "value": "Add httpd to list of log file types.\n" }, { "from": "human", "value": "H2O.LogFileOutput = (_, _cloud, _nodeIndex, _fileType, _logFile) ->\n _exception = signal null #TODO Display in .jade\n\n _contents = signal ''\n _nodes = signal []\n _activeNode = signal nu...
coffeescript
chosen
[ { "from": "system", "value": "Add route for waterpoint creation form\n" }, { "from": "human", "value": "'use strict'\n\nangular\n .module('taarifaWaterpointsApp', [\n 'ngResource',\n 'ngRoute',\n 'leaflet-directive',\n 'dynform'\n ])\n .config ($routeProvider) ->\n $routeProvid...
coffeescript
chosen
[ { "from": "system", "value": "Use path and context to retrieve the directory\n" }, { "from": "human", "value": "\"use strict\"\n\nBeautifier = require('./beautifier')\nprettier = require(\"prettier\")\n\nmodule.exports = class Prettier extends Beautifier\n name: \"Prettier\"\n link: \"https://...
coffeescript
chosen
[ { "from": "system", "value": "Use recursion to substitute text" }, { "from": "human", "value": "module.exports =\nclass Substitution\n global: false\n\n constructor: (@findText, @replaceText, @options) ->\n @findRegex = new RegExp(@findText, \"g\")\n @global = 'g' in @options\n\n perfor...
coffeescript
chosen
[ { "from": "system", "value": "Use the CollectionUtils difference for suggested channels\n" }, { "from": "human", "value": "class SuggestedTopicsEmptyView extends Backbone.Marionette.ItemView\n template:\n text: \"No suggestions available.\"\n\nclass SuggestedSiteTopicView extends Backbone.Ma...
coffeescript
chosen
[ { "from": "system", "value": "Add example of use Directions\n\nSigned-off-by: Gustavo Toshi Komura <4cad6e13d165ce6dbdcf3458fc5cbc27ddef2a34@gmail.com>\n" }, { "from": "human", "value": "# Place all the behaviors and hooks related to the matching controller here.\n# All this logic will automatic...
coffeescript
chosen
[ { "from": "system", "value": "Use schema query from MySQL driver in tests.\n\nThe query that builds a schema object for the compiler tests is\nreturning no rows on Travis CI. In this commit we replace that query\nwith the query from the MySQL driver that appears to be working on\nTravis CI.\n" }, { ...
coffeescript
chosen
[ { "from": "system", "value": "Rename e variables to error\n" }, { "from": "human", "value": "path = require 'path'\nCSON = require 'season'\n\nmodule.exports =\nclass Package\n @build: (packagePath) ->\n AtomPackage = require './atom-package'\n ThemePackage = require './theme-package'\n\n...
coffeescript
chosen
[ { "from": "system", "value": "Test HTML and CSS with PhantomJS\n\n- Adds a helper function that'll be extracted later\n" }, { "from": "human", "value": "expect = require('chai').expect\nphantom = require('phantom')\n\nurl = 'http://localhost:4567'\n\ndescribe 'Load page: http://localhost:4567 an...
coffeescript
chosen
[ { "from": "system", "value": "Throw error if there is no MAC address\n" }, { "from": "human", "value": "crypto = require 'crypto'\nReporter = require './reporter'\n\nmodule.exports =\n activate: ({sessionLength}) ->\n if atom.config.get('metrics.userId')\n @begin(sessionLength)\n els...
coffeescript
chosen
[ { "from": "system", "value": "Drop custom classes from Link\n" }, { "from": "human", "value": "#\nReact = require 'react'\n$ = React.createElement\n\nComponent = require './component'\n\nclass Link extends Component\n @defaultProps =\n href: '#'\n role: 'link'\n tabIndex: 0\n\n focus:...
coffeescript
chosen
[ { "from": "system", "value": "Fix invalid copy in config\n" }, { "from": "human", "value": "module.exports =\n selector: ['.source.python']\n id: 'aligner-python' # package name\n config:\n ':-alignment':\n title: 'Padding for =>'\n description: 'Pad left or right of the characte...
coffeescript
chosen
[ { "from": "system", "value": "Use robot.respond instead of robot.hear.\n\nUntested. Hopefully this'll work." }, { "from": "human", "value": "# Description:\n# \"Your very own Dimmerworld simulator.\"\n#\n# Dependencies:\n# \"cleverbot-node\": \"0.1.1\"\n#\n# Configuration:\n# None\n#\n# Comm...
coffeescript
chosen
[ { "from": "system", "value": "Load and merge defaults if available\n\nLoad and merge defaults if available\n" }, { "from": "human", "value": "fs = require \"fs\"\npath = require \"path\"\nenv = (process.env.NODE_ENV or \"development\").toLowerCase()\n\nif process.env.SHARELATEX_CONFIG?\n\tpossib...
coffeescript
chosen
[ { "from": "system", "value": "Remove odd saving and restoring of cursor positions behaviour, code is now cleaner\n" }, { "from": "human", "value": "toggleQuotes = (editor) ->\n cursors = editor.getCursors()\n\n positions = []\n\n for cursor in cursors\n do (cursor) ->\n positions.push...
coffeescript
chosen
[ { "from": "system", "value": "Fix for edited mult choice poll no options selected\n" }, { "from": "human", "value": "angular.module('loomioApp').directive 'pollPollVoteForm', ->\n scope: {stance: '='}\n templateUrl: 'generated/components/poll/poll/vote_form/poll_poll_vote_form.html'\n control...
coffeescript
chosen
[ { "from": "system", "value": "Call add instead of registerDeserializer\n" }, { "from": "human", "value": "DeserializerManager = require '../src/deserializer-manager'\n\ndescribe \".deserialize(state)\", ->\n deserializer = null\n\n class Foo\n @deserialize: ({name}) -> new Foo(name)\n co...
coffeescript
chosen
[ { "from": "system", "value": "Make integration test work in any environment\n" }, { "from": "human", "value": "AWS = require('../../lib/aws')\nconfig = new AWS.FileSystemConfig('configuration')\n\nintegration = (test, callback) ->\n req = test.suite.parentSuite.service[test.suite.description]()...
coffeescript
chosen
[ { "from": "system", "value": "Expand charset for stress test words again\n\nturns out snaps were plenty common!\n" }, { "from": "human", "value": "# vim: ts=2:sw=2:sta\nio = require('socket.io-client')\n\nurl = process.env.TEST_TARGET || 'https://snap-backend-dev.herokuapp.com' #'http://localhos...
coffeescript
chosen
[ { "from": "system", "value": "Add global commit request object\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 Collections: {}\n Routers: {}\n Views:...
coffeescript
chosen
[ { "from": "system", "value": "Switch to density for initialization. It's all relative anyway.\n" }, { "from": "human", "value": "window.go = ->\n\n window.world = new World \"display\"\n\n window.rect = new Rectangle 5, 0.5,\n position: [0, 0]\n inverseMass: 1/10\n color: \"#F00\"\n\n...
coffeescript
chosen
[ { "from": "system", "value": "Add linter-eslint for projects that use ESLint\n" }, { "from": "human", "value": "packages: [\n \"advanced-open-file\"\n \"atom-alignment\"\n \"auto-update-packages\"\n \"docblockr\"\n \"editorconfig\"\n \"emmet\"\n \"expand-region\"\n \"language-apache\"\n ...
coffeescript
chosen
[ { "from": "system", "value": "Store current line in Player class\n" }, { "from": "human", "value": "class Player\n\n constructor: (pos) ->\n @positions = []\n @positions.push(pos)\n\n lastPos: ->\n @positions[@positions.length - 1]\n\nwindow.Player = Player\n" }, { "from": "gp...
coffeescript
chosen
[ { "from": "system", "value": "Split coffee spec and build tasks\n" }, { "from": "human", "value": "module.exports = ->\n @initConfig\n pkg: @file.readJSON \"package.json\"\n\n meta:\n file: \"request\"\n package: \".\"\n temp: \"temp\"\n\n resources:\n src: [\n ...
coffeescript
chosen
[ { "from": "system", "value": "Fix build script adding content files to the build result\n" }, { "from": "human", "value": "module.exports = (grunt) ->\n grunt.initConfig\n pkg: grunt.file.readJSON \"package.json\"\n clean:\n main:\n [\"dist/**/*\"]\n fast:\n [\"dis...
coffeescript
chosen
[ { "from": "system", "value": "Fix bug when shipping address fields are not getting not required when they are hidden\n" }, { "from": "human", "value": "hideShippingAddressFields = (shipping_address) ->\n shipping_address.hide().find('input,select').removeProp('required')\n\nshowShippingAddressF...
coffeescript
chosen
[ { "from": "system", "value": "Create role when adding a user to a non-existing role\n" }, { "from": "human", "value": "RocketChat.authz.addUsersToRoles = (userIds, roleNames, scope ) ->\n\tconsole.log '[methods] addUserToRoles -> '.green, 'arguments:', arguments\n\tif not userIds or not roleName...
coffeescript
chosen
[ { "from": "system", "value": "Remove File and Directory exports\n" }, { "from": "human", "value": "{Point, Range} = require 'text-buffer'\n{File, Directory} = require 'pathwatcher'\n\nmodule.exports =\n _: require 'underscore-plus'\n BufferedNodeProcess: require '../src/buffered-node-process'\...
coffeescript
chosen
[ { "from": "system", "value": "Fix alert dialog to use raw html like confirm dialog\n" }, { "from": "human", "value": "{div, button} = React.DOM\n\nModalDialog = React.createFactory require './modal-dialog-view'\n\ntr = require '../utils/translate'\n\nmodule.exports = React.createClass\n\n displ...
coffeescript
chosen
[ { "from": "system", "value": "Fix the width of the performance graph on the dashboard.\n" }, { "from": "human", "value": "$(document).ready ->\n chart = new Highcharts.Chart\n chart:\n renderTo: 'weeks-performance-graph',\n defaultSeriesType: 'spline',\n backgroundColor: '#f7f...
coffeescript
chosen
[ { "from": "system", "value": "Revert \"fix for show/hide pagination\"\n\nThis reverts commit 787a47f5112fadc12c85f525d3fcd9d455f02935.\n" }, { "from": "human", "value": "`import Ember from 'ember'`\n\nProjectCommitsController = Ember.ArrayController.extend\n\n hideAccepted: true\n\n searchResu...
coffeescript
chosen
[ { "from": "system", "value": "Make list sortable on page load/turbolinks event\n" }, { "from": "human", "value": "$ ->\n $(\".js-bucket-list\").sortable({\n connectWith: \".js-bucket-list\"\n update: (event, ui) ->\n if this == ui.item.parent()[0]\n window.target = $(event....
coffeescript
chosen
[ { "from": "system", "value": "Implement not sending updates when gamepad hasn't changed.\n" }, { "from": "human", "value": "angular.module('ansible')\n\n# reports the gamepad states\n.service 'gamepadReporter', [\n '$interval'\n 'ansible'\n 'AMessage'\n ($interval, ansible, AMessage) ->\n ...
coffeescript
chosen
[ { "from": "system", "value": "Revert \"fix typing info getting stuck\"\n\nThis reverts commit 3788f0960aa3d1dfd86642e5a49bfe8bcbfe2780.\n" }, { "from": "human", "value": "{scrollToBottom} = require './messages'\n{nameof} = require '../util'\n\nmodule.exports = view (models) ->\n {viewstate, ...
coffeescript
chosen
[ { "from": "system", "value": "Fix posts count on profile\n" }, { "from": "human", "value": "class TentStatus.Views.ProfileStats extends TentStatus.View\n templateName: '_profile_stats'\n\n initialize: (options) ->\n super\n\n @resources = ['posts', 'followers', 'followings']\n\n for r...
coffeescript
chosen
[ { "from": "system", "value": "Allow payment_sources and completed_orders to be empty\n" }, { "from": "human", "value": "class Sprangular.User\n init: ->\n @addresses = Sprangular.extend(@addresses || [], Sprangular.Address)\n @billingAddress = @findAddress(@bill_address_id) if @bil...
coffeescript
chosen
[ { "from": "system", "value": "[skip] Return a boolean in `_loadMore` for if there are more items to load (5m)\n\nIn Members we use the `_loadMore` method as an action and a check, so this change allows the action to happen and returns the check.\n" }, { "from": "human", "value": "class window.Ne...
coffeescript
chosen
[ { "from": "system", "value": "Add option for automatic pub get.\n\nCloses #3.\n" }, { "from": "human", "value": "AnalysisComponent = require './analysis_component'\nAnalysisView = require './views/analysis_view'\nUtils = require './utils'\nFormatter = require './formatter'\nPubComponent = requir...
coffeescript
chosen
[ { "from": "system", "value": "Refactor Reporter to be thenable and to use promises\n" }, { "from": "human", "value": "define [\n 'settings'\n 'promise'\n 'helpers/browser_helper'\n 'helpers/url_helper'\n], (Settings, Promise, BrowserHelper, URLHelper)->\n unique_id = 1\n\n class Reporter\n...
coffeescript
chosen
[ { "from": "system", "value": "Document drag and drop behaviors\n" }, { "from": "human", "value": "# Handles HTML5 File API jQuery Drag and Drop interface transmorgifier plugin\n# stereotypical aphormational gimme the loot putting all the holes in the\n# sweata biggie smalls.\n\n$(document).ready...
coffeescript
chosen
[ { "from": "system", "value": "Add Google public API key to urlshorthener request\n" }, { "from": "human", "value": "$ = require 'jquery'\nkd = require 'kd'\n\nmodule.exports = shortenUrl = (longUrl, callback) ->\n\n apiUrl = 'https://www.googleapis.com/urlshortener/v1/url'\n\n request = $.ajax...
coffeescript
chosen
[ { "from": "system", "value": "Fix bug with the warning visibility condition\n" }, { "from": "human", "value": "(($) ->\n 'use strict'\n\n $(document).ready ->\n $('input[data-warn-if-checked]').behave 'load', ->\n $('input[data-warn-if-checked]').each ->\n input = $(this)\n ...
coffeescript
chosen
[ { "from": "system", "value": ":art: Move consumerLinter's logic to _consumeLinter\nit'll help us work with disposables while still working.\n" }, { "from": "human", "value": "module.exports =\n instance: null\n config:\n lintOnFly:\n title: 'Lint on fly'\n description: 'Lint files...
coffeescript
chosen
[ { "from": "system", "value": "Check accounts length since its the data\n" }, { "from": "human", "value": "class ChatConversationListItemTitle extends JView\n\n constructor:(options = {}, data)->\n options.cssClass = 'chat-item'\n # data = [nick for nick in data when nick isnt KD.nick()].f...
coffeescript
chosen
[ { "from": "system", "value": "Change adjustFontSizeTo function to fontSizeToPX and add fontSizeToMS\n\nThe later function is a convenience function used\n to set fontSize to particular modular scale.\n" }, { "from": "human", "value": "React = require 'react'\nobjectAssign = require('react/lib/Ob...
coffeescript
chosen
[ { "from": "system", "value": "Fix bug of using mixpanel module as the mixpanel client\n" }, { "from": "human", "value": "Promise = require 'bluebird'\n_ = require 'lodash'\nfs = Promise.promisifyAll require 'fs'\nconfig = require './config'\nmixpanel = require 'mixpanel'\n\n# Parses package.json...
coffeescript
chosen
[ { "from": "system", "value": "Make ctrl-k work first time\n" }, { "from": "human", "value": "# Your keymap\n#\n# Atom keymaps work similarly to stylesheets. Just as stylesheets use selectors\n# to apply styles to elements, Atom keymaps use selectors to associate\n# keystrokes with events in spec...
coffeescript
chosen
[ { "from": "system", "value": "Make active only if 'os-teacher' class is present\n" }, { "from": "human", "value": "React = require 'react'\nBS = require 'react-bootstrap'\n\nTeacherContentToggle = React.createClass\n\n propTypes:\n onChange: React.PropTypes.func.isRequired\n isShowing: Re...
coffeescript
chosen
[ { "from": "system", "value": "Add Grunt Fatal Error on Fail\n" }, { "from": "human", "value": "fs = require 'fs'\n\n# global module: false\nmodule.exports = (grunt) ->\n\n # Modules\n grunt.loadNpmTasks 'grunt-init'\n grunt.loadNpmTasks 'grunt-contrib-sass'\n grunt.loadNpmTasks 'grunt-contri...
coffeescript
chosen
[ { "from": "system", "value": ":bug: Fix scope for custom keybinding\n" }, { "from": "human", "value": "# Keybindings require three things to be fully defined: A selector that is\n# matched against the focused element, the keystroke and the command to\n# execute.\n#\n# Below is a basic keybinding...
coffeescript
chosen
[ { "from": "system", "value": "Change linter settings to be less distractive\n" }, { "from": "human", "value": "'global':\n 'core':\n 'ignoredNames': [\n '.git'\n '.svn'\n '.DS_Store'\n ]\n 'disabledPackages': [\n 'open-on-github'\n 'linter-scss-lint'\n ]\n ...
coffeescript
chosen
[ { "from": "system", "value": "Move constant variable outside of class definition\n" }, { "from": "human", "value": "# Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0.\n# See the LICENCE file in the repository root for full licence text.\n\nim...
coffeescript
chosen
[ { "from": "system", "value": "Add package option to enable linting on document changes. This option is disabled by default.\n" }, { "from": "human", "value": "module.exports = LinterLanguagetool =\n config:\n languagetoolServerPath:\n title: 'Path to local languagetool-server.jar'\n ...
coffeescript
chosen
[ { "from": "system", "value": "Refactor - set port variable before configuration\n\nfetching the port from the config involves a get method call, which can be confused with a GET route to the untrained eye.\n" }, { "from": "human", "value": "express = require 'express'\nio = require 'socket.io'\n...
coffeescript
chosen
[ { "from": "system", "value": "Add a few languages for the language drop-down\n" }, { "from": "human", "value": "window.translations ||= {}\n\nwindow.translations['en'] =\n languages:\n \"\":\n lang: \"en\"\n \"en\": [null, \"English\"]\n \"no\": [null, \"Norwegian\"]\n \"nb\": ...
coffeescript
chosen
[ { "from": "system", "value": "Extend from `Ember.Service` instead of `Ember.Object` in service blueprint\n" }, { "from": "human", "value": "`import Ember from 'ember'`\n\n<%= classifiedModuleName %>Service = Ember.Object.extend()\n\n`export default <%= classifiedModuleName %>Service`\n" }, {...
coffeescript
chosen
[ { "from": "system", "value": "Remove redundant `filePath` in Config.constructor.\n" }, { "from": "human", "value": "_ = require('underscore')\nfs = require('fs')\n\nclass Config\n constructor: (filePath) ->\n filePath = @findConfig()\n data = @parse(filePath)\n @validate(data)\n ret...
coffeescript
chosen
[ { "from": "system", "value": "Fix onDidChangeKernel in plugin API\n" }, { "from": "human", "value": "module.exports =\nclass HydrogenProvider\n constructor: (@_hydrogen) ->\n @_happy = true\n\n onDidChangeKernel: (callback) ->\n @_hydrogen.emitter.on 'did-change-kernel', (ker...
coffeescript
chosen
[ { "from": "system", "value": ":art: Move validation part to a separate function\n" }, { "from": "human", "value": "module.exports =\n instance: null\n config:\n lintOnFly:\n title: 'Lint on fly'\n description: 'Lint files while typing, without the need to save them'\n type: '...
coffeescript
chosen
[ { "from": "system", "value": "Fix issue of invalid order of task's actions.\n\nBecause of the nature of promises, the callback context is not the same as the (wrapping) for loop. To fix this inconsistency, a new internally used `scope`-property `__idx` was introduced.\n" }, { "from": "human", "v...
coffeescript
chosen
[ { "from": "system", "value": "Add Switch Component To Example\n" }, { "from": "human", "value": "require \"babel-core/polyfill\"\nrequire(\"frig\").defaultTheme require(\"frigging_bootstrap\")\n\nReact = require \"react/addons\"\n{frig} = require \"frig/dsl\"\n{div, h2, h3} = Reac...
coffeescript
chosen
[ { "from": "system", "value": "Remove some left-over view code\n" }, { "from": "human", "value": "{CompositeDisposable} = require 'atom'\n\nmodule.exports = ListEdit =\n listEditView: null\n modalPanel: null\n subscriptions: null\n\n activate: (state) ->\n # Events subscribed to in atom's ...
coffeescript
chosen
[ { "from": "system", "value": "Add coupon check for Taiwan\n" }, { "from": "human", "value": "CocoCollection = require './CocoCollection'\nProduct = require 'models/Product'\nutils = require 'core/utils'\n\nmodule.exports = class Products extends CocoCollection\n model: Product\n url: '/db/prod...
coffeescript
chosen
[ { "from": "system", "value": "Revert \"github pages `/weather` for base url\"\n\nThis reverts commit cb8c4e52c7f02016cc9b4ab417bb5404c8d0f95d.\n" }, { "from": "human", "value": "# Setup router\nimport Vue from 'vue'\nimport VueRouter from 'vue-router'\nVue.use VueRouter\n\n###\nRouting paths\n`/...
coffeescript
chosen
[ { "from": "system", "value": "[BIFHI-38] Set up travis for Topic Map [rev: Alex Scown]\n" }, { "from": "human", "value": "module.exports = (grunt) ->\n documentation = 'doc'\n grunt.initConfig\n pkg: grunt.file.readJSON 'package.json'\n clean: [\n 'bin'\n '.grunt'\n docume...
coffeescript
chosen
[ { "from": "system", "value": "Add server route for serving up images.\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/:id',\n name: 'ima...
coffeescript
chosen
[ { "from": "system", "value": "Remove unused vars from Directory" }, { "from": "human", "value": "_ = require 'underscore'\nfs = require 'fs'\nFile = require 'file'\nEventEmitter = require 'event-emitter'\n\nmodule.exports =\nclass Directory\n @idCounter = 0\n\n path: null\n\n constructor: (@p...
coffeescript
chosen
[ { "from": "system", "value": "Update tooltip when title changes\n\nCloses #12\n" }, { "from": "human", "value": "{$, fs, View} = require 'atom'\npath = require 'path'\n\nmodule.exports =\nclass TabView extends View\n @content: ->\n @li class: 'tab sortable', =>\n @div class: 'title', ou...
coffeescript
chosen
[ { "from": "system", "value": "Add current directory to the classpath when running from console.\n\nThis allows us to obtain nested classes / classes from multi-class Java\nfiles.\n" }, { "from": "human", "value": "#!/usr/bin/env coffee\nfs = require 'fs'\njvm = require '../src/jvm'\nutil = requi...
coffeescript
chosen
[ { "from": "system", "value": "Trim `(edited)` from the ends of lines.\n" }, { "from": "human", "value": "# Strict quote parser for the format entered into the clipboard by the Slack thick client.\n\nmoment = require 'moment'\n_ = require 'underscore'\n\n# RegExp snippets for reuse\nTS = '\\\\[(\...
coffeescript
chosen
[ { "from": "system", "value": "chore: Add headless Chrome parameters to work on ResinCi\n\nChange-type: patch\nSee: https://github.com/resin-io/resin-concourse/pull/248/\nSee: https://github.com/GoogleChrome/puppeteer/blob/master/docs/troubleshooting.md#running-on-alpine\nSigned-off-by: Thodoris Greasidis <5...
coffeescript
chosen
[ { "from": "system", "value": "Use four spaces for shell script files\n" }, { "from": "human", "value": "# Your init script\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 state\n# has been restore...
coffeescript
chosen
[ { "from": "system", "value": "Revert \"add support for new homepage rails and update rails order\"\n" }, { "from": "human", "value": "module.exports = \"\"\"\n query($showHeroUnits: Boolean!) {\n home_page {\n artwork_modules(\n max_rails: -1,\n max_followed_gene_rails: -1...
coffeescript
chosen
[ { "from": "system", "value": "Add Google Analytics tracking code" }, { "from": "human", "value": "\n# Positionning funny elements\n$RndmElmts = $('span.funnythings')\nPositionElmts = ->\n $RndmElmts.each ->\n left = Math.floor((Math.random() * 90))\n top = Math.floor((Math.random() * 90))...
coffeescript
chosen
[ { "from": "system", "value": "Include the user name for `me`\n" }, { "from": "human", "value": "# Description:\n# Hubot gives the ultimate compliment.\n#\n# Dependencies:\n# None\n#\n# Configuration:\n# None\n#\n# Commands:\n# hubot lieber me - \"@User, you are the smell of clean laundry...
coffeescript
chosen
[ { "from": "system", "value": "fix: Make sure 'info' and 'debug' logging levels have different colors\n" }, { "from": "human", "value": "\nwinston = require('winston')\n\n\nmodule.exports = new (winston.Logger)({\n transports: [\n new (winston.transports.Console)({colorize: true})\n ]\n lev...
coffeescript
chosen