conversations listlengths 2 3 | source stringclasses 1 value | stack stringclasses 1 value |
|---|---|---|
[
{
"from": "system",
"value": "Remove old View test, which can't possibly work as Views don't have their own persistent model on server side\n"
},
{
"from": "human",
"value": "sinon = require 'sinon'\nshould = require 'should'\n\ndescribe 'Client model: View', ->\n helper = require '../helper'\n... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add config for badge, sound, alert and vibrate for Push Notifications\n"
},
{
"from": "human",
"value": "if Meteor.isCordova\n\tTracker.autorun ->\n\t\tif RocketChat.settings.get('Push_enable') is true\n\t\t\tPush.Configure {}\n\n\t\t\tPush.addListener 'token', (tok... | coffeescript | chosen |
[
{
"from": "system",
"value": "Change set markdown type shortcuts to start with 'm'\n"
},
{
"from": "human",
"value": "'ft-outline-editor':\n 'ctrl-cmd-c': 'foldingtext-markdown:copy-markdown'\n 'ctrl-cmd-v': 'foldingtext-markdown:paste-markdown'\n\n'ft-outline-editor.outlineMode':\n 't p': 'f... | coffeescript | chosen |
[
{
"from": "system",
"value": "Change mocha options: tap -> spec, colors = false\n"
},
{
"from": "human",
"value": "module.exports = (grunt)->\n _ = grunt.util._\n init_config = grunt.config()\n\n # mocha\n mocha_requires = [\n \"coffee-script\"\n \"should\"\n \"requirejs\"\n \"un... | coffeescript | chosen |
[
{
"from": "system",
"value": "Make sure all variables are string before joining\n"
},
{
"from": "human",
"value": "path = require 'path'\n{File} = require 'atom'\n\nmodule.exports =\n toExt: (srcPath, ext) ->\n srcExt = path.extname srcPath\n return path.join(\n path.dirname(srcPath)... | coffeescript | chosen |
[
{
"from": "system",
"value": "Update server example to work with latest Express\n"
},
{
"from": "human",
"value": "express = require \"express\"\njsdom = require(\"jsdom\").jsdom\n$ = require \"jquery\"\ntransparency = require \"transparency\"\n\n# Register transparency as... | coffeescript | chosen |
[
{
"from": "system",
"value": "Update -> method to use _.find.\n"
},
{
"from": "human",
"value": "debug = require('debug')('sphere-product-import-common-utils')\n_ = require 'underscore'\n_.mixin require 'underscore-mixins'\n\nclass CommonUtils\n\n constructor: (@logger) ->\n debug \"Enum Val... | coffeescript | chosen |
[
{
"from": "system",
"value": "Convert job init from \"scrape people\" to \"scrape rep..\"\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 Licen... | coffeescript | chosen |
[
{
"from": "system",
"value": "Save pickup time and instructions\n"
},
{
"from": "human",
"value": "angular.module('admin.order_cycles').controller \"AdminSimpleCreateOrderCycleCtrl\", ($scope, OrderCycle, Enterprise, EnterpriseFee) ->\n $scope.enterprises = Enterprise.index (enterprises) =>\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix changing args to ''\n"
},
{
"from": "human",
"value": "V = Visualizer\n\nidentifyObservable = R.curryN 2, (baseId, observable) ->\n rootId = baseId + 'r'\n recursionLevel = (rootId.match(/r/g) || []).length - 1\n\n observable.root.args ?= V.Roots[observable.r... | coffeescript | chosen |
[
{
"from": "system",
"value": "Clean up methods order in Selector prefixer\n"
},
{
"from": "human",
"value": "Prefixer = require('./prefixer')\nutils = require('./utils')\n\nclass Selector extends Prefixer\n\n # Is rule selectors need to be prefixed\n check: (rule) ->\n rule.selector.inde... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add null checking for option argument\n"
},
{
"from": "human",
"value": "TodoStore = require('./stores/todo_store')\nTodoActions = require('./actions/todo_actions')\nTodoApp = require('./components/TodoApp')\n\n# Invoked in a Rails template with JSON data pass... | coffeescript | chosen |
[
{
"from": "system",
"value": "Correct UTM paremeters for branding element."
},
{
"from": "human",
"value": "React = require 'react'\n\nmodule.exports = React.createClass\n displayName: 'MarqueeBranding'\n getDefaultProps: -> {\n source : global.config?.PUBLICATION_SHORT_NAM... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add tokenizeLines to null grammar\n"
},
{
"from": "human",
"value": "Token = require 'token'\nEventEmitter = require 'event-emitter'\n_ = require 'underscore'\n\n### Internal ###\nmodule.exports =\nclass NullGrammar\n name: 'Null Grammar'\n scopeName: 'text.plain.... | coffeescript | chosen |
[
{
"from": "system",
"value": "Change win/linux key to ctrl-alt-c\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 wh... | coffeescript | chosen |
[
{
"from": "system",
"value": "Change keymaps and add confirm"
},
{
"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 which re... | coffeescript | chosen |
[
{
"from": "system",
"value": "Test spec handles mock API requests, very general regex used (/.*/).\n"
},
{
"from": "human",
"value": "'use strict'\n\ndescribe 'Controller: MainCtrl', () ->\n\n # load the controller's module\n beforeEach module 'appApp'\n\n MainCtrl = {}\n scope = {}\n\n # I... | coffeescript | chosen |
[
{
"from": "system",
"value": "Clean up error output for cli tool a bit\n"
},
{
"from": "human",
"value": "numeral = require(\"numeral\")\nbalance = require(\"./crypto-balance\")\n\n\nmodule.exports.run = ->\n addr = process.argv[2]\n\n unless addr\n console.log \"Usage: balance <address>\"\... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add to_euler compatibility with turntable camera. Specify rotation order by Blender's nomenclature.\n"
},
{
"from": "human",
"value": "glm = require 'gl-matrix'\nglm.quat.to_euler = (out=[0,0,0], quat, order='YZX') ->\n if order != 'YZX'\n throw new Error ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Set class on new card overlays"
},
{
"from": "human",
"value": "ETahi.ApplicationRoute = Ember.Route.extend\n actions:\n chooseNewCardTypeOverlay: (phase) ->\n @controllerFor('chooseNewCardTypeOverlay').set('phase', phase)\n @render('chooseNewCardTypeO... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use both \\ and / in regexes so anymatch OKs Win/POSIX paths\n"
},
{
"from": "human",
"value": "module.exports = config:\n files:\n javascripts: joinTo:\n 'libraries.js': /^app\\/jquery\\.js/\n 'app.js': /^(?!app\\/jquery\\.js)/\n stylesheets: joinT... | coffeescript | chosen |
[
{
"from": "system",
"value": "Revert \"Removed unused template helper\"\n\nThis reverts commit 5292657dac5edf95436665e081ee41760a1a77f2.\n"
},
{
"from": "human",
"value": "class window.UserStatisticsView extends Backbone.Marionette.ItemView\n className: 'statistics'\n template: 'users/statisti... | coffeescript | chosen |
[
{
"from": "system",
"value": "Throw if process stays locked for too long\n"
},
{
"from": "human",
"value": "surveyor = require './lib/surveyor.coffee'\nwebsocket = require './lib/websocket.coffee'\nwebserver = require './lib/webserver.coffee'\nwebserver.listen 4001\nutil = require './lib/util.co... | coffeescript | chosen |
[
{
"from": "system",
"value": "Throw division by zero and wrap in try/catch\n"
},
{
"from": "human",
"value": "_ = require 'underscore'\nmodule.exports =\n dimensions: (metric = @get('metric')) ->\n @get('dimensions')[metric] if metric\n\n # Wrap only X Y/Z; leave X/Y alone\n superscriptFra... | coffeescript | chosen |
[
{
"from": "system",
"value": "Send verbose output to stderr\n"
},
{
"from": "human",
"value": "fs = require 'fs'\n\n{ diff } = require './index'\n\n\nmodule.exports = (argv) ->\n options = require('dreamopt') [\n \"Usage: json-diff [-v] first.json second.json\"\n\n \"Arguments:\"\n \" ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add \"open .atom\" button to general config view\n"
},
{
"from": "human",
"value": "ConfigPanel = require 'config-panel'\n{$$} = require 'space-pen'\n$ = require 'jquery'\n_ = require 'underscore'\n\nmodule.exports =\nclass GeneralConfigPanel extends ConfigPanel\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Update test instance to AMI v6\n"
},
{
"from": "human",
"value": "module.exports =\n current: 'ami-cc7842a4'\n\n # Ordered by creation date\n list: [\n 'ami-f464e69c'\n 'ami-66bbca0e'\n 'ami-e06c2488'\n 'ami-c4c397ac'\n 'ami-cc7842a4'\n ]\n"
},... | coffeescript | chosen |
[
{
"from": "system",
"value": "Allow login from custom oAuth in accounts meld\n"
},
{
"from": "human",
"value": "orig_updateOrCreateUserFromExternalService = Accounts.updateOrCreateUserFromExternalService\nAccounts.updateOrCreateUserFromExternalService = (serviceName, serviceData, options) ->\n\t... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix double-submission prevention not working.\n"
},
{
"from": "human",
"value": "App.PreventDoubleSubmission =\n disable_buttons: (buttons) ->\n setTimeout ->\n buttons.each ->\n button = $(this)\n unless button.hasClass('disabled')\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add comments in memory on click.\n"
},
{
"from": "human",
"value": "ETahi.MessageTaskController = ETahi.TaskController.extend\n newCommentBody: \"\"\n\n actions:\n clearMessageContent: -> null\n postComment: ->\n commentFields =\n body: @get('new... | coffeescript | chosen |
[
{
"from": "system",
"value": "Clarify where this is available\n"
},
{
"from": "human",
"value": "Grammar = require './grammar'\n\n# A grammar with no patterns that is always available\nmodule.exports =\nclass NullGrammar extends Grammar\n constructor: (registry) ->\n name = 'Null Grammar'\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Disable autosubmit of crash reporter\n"
},
{
"from": "human",
"value": "module.exports = (extra) ->\n {crashReporter} = require 'electron'\n\n crashReporter.start({\n productName: 'Atom',\n companyName: 'GitHub',\n submitURL: 'http://54.249.141.255:1127/p... | coffeescript | chosen |
[
{
"from": "system",
"value": "Make Front-Facing Storylets Retreatable By Default\n"
},
{
"from": "human",
"value": "class Storylet\n constructor: (@id, @title, @text, @choices, @frontFacingChoice) ->\n Object.freeze @\n\n isVisibleWith: (qualityLibrary) -> frontFacingChoice?.isVisibleWith q... | coffeescript | chosen |
[
{
"from": "system",
"value": ":art: Make file's paths more subtle in listing\n"
},
{
"from": "human",
"value": "Bacon = require('baconjs')\nmoment = require('moment')\n\nmodule.exports = [\n {\n title: 'Name'\n width: 60\n cellContent: (item) -> item.relPath\n },{\n title: 'Date cr... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix hawk middleware to only add payload hash when there is a request body\n"
},
{
"from": "human",
"value": "#= require hawk\n\nMarbles.HTTP.Middleware.Hawk = class HawkMiddleware\n constructor: (options = {}) ->\n options = _.clone(options)\n unless options.... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add feed link to menu\n"
},
{
"from": "human",
"value": "require 'semantic-ui-css/components/icon.css'\nrequire 'semantic-ui-css/components/menu.css'\nrequire 'semantic-ui-css/components/sidebar.css'\nrequire '../../css/menu.css'\n\nReact = require 'react'\n\nmodule... | coffeescript | chosen |
[
{
"from": "system",
"value": "Test for pile of poo\n"
},
{
"from": "human",
"value": "fs = require 'fs'\npath = require 'path'\nassert = require 'assert'\nvalid8 = require '..'\nrandom = require './random'\n\nbuffers = []\n\ntest = (buffer)->\n buffer = new Buffer buffer unless buffer instanceo... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add budget and change to left menu\n"
},
{
"from": "human",
"value": "class GameState\n customers: []\n agents: []\n\n requestQueues: {}\n chanceOfRequest: 0.005\n\n tickables: []\n tick: 0\n\n money: 1000000\n reputation: 0.5\n agentSpawner: new AgentSpawn... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix relative path broken by module move\n"
},
{
"from": "human",
"value": "fs = require('fs')\n_ = require('underscore')\n\nclass EdeIndicatorator\n constructor: (indicatorType, indicatorCode) ->\n indicatorType = indicatorType.toLowerCase()\n\n @indicatorDe... | coffeescript | chosen |
[
{
"from": "system",
"value": "Reduce wait time for scroll to bottom\n"
},
{
"from": "human",
"value": "templateName = 'commentList'\nTemplateClass = Template[templateName]\n\nTemplateClass.created = ->\n series = @data?.series\n unless series then throw new Error('No series ID provided for com... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix background mismatch between MenuState, PlayState."
},
{
"from": "human",
"value": "# Defines\n# =======\n\ndefine [], () ->\n\n 'use strict'\n\n defines = \n\n # Turn off here to disable entirely (@release).\n # Off by default for performance.\n debug... | coffeescript | chosen |
[
{
"from": "system",
"value": "Throw error when option value is not valid\n"
},
{
"from": "human",
"value": "class OptionParser\n\n ###\n * Parse command-line options\n\n * @param {Array} @args\n * @param {Object} opts\n ###\n\n constructor: (@args, opts) ->\n options = {}\n\n for op... | coffeescript | chosen |
[
{
"from": "system",
"value": "Handle focus when opening go to line modal\n"
},
{
"from": "human",
"value": "{CompositeDisposable} = require 'event-kit'\n{SpacePenDSL} = require 'atom-utils'\n\nmodule.exports =\nclass GoToLineElement extends HTMLElement\n SpacePenDSL.includeInto(this)\n\n @cont... | coffeescript | chosen |
[
{
"from": "system",
"value": "Move withinTolerance() into Kona.Trigger to be overriden in derived classes for checking activation conditions\n"
},
{
"from": "human",
"value": "# A generic class representing a node that activates a callback\n# when intersecting with a designated `collector entity... | coffeescript | chosen |
[
{
"from": "system",
"value": "Change should.js require to chai.js in spec\n"
},
{
"from": "human",
"value": "\n<%= safeSlugname %> = require '../lib/<%= slugname %>'\n<% if (testFramework === 'mocha') { %>\nassert = require 'should' <% } %>\n\ndescribe '<%= safeSlugname %>', ->\n\n it 'should b... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add neccessary route for debugging"
},
{
"from": "human",
"value": "module.exports = (match) ->\n match '', 'home#index'\n match 'u/6045251/shiny-wight/index.html', 'home#index'\n match 'shiny-wight/index.html', 'home#index'\n"
},
{
"from": "gpt",
"va... | coffeescript | chosen |
[
{
"from": "system",
"value": "Set properties to null before they are used to create new user\n"
},
{
"from": "human",
"value": "App.UsersNewRoute = App.AuthenticatedRoute.extend\n setupController: (controller, model)->\n controller.set \"domains\", @store.find(\"domain\")\n"
},
{
"fr... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use array to avoid beginning of subsequent IPs be merged with the end of preceding IPs\n"
},
{
"from": "human",
"value": "# The SplitStr component receives a string in the in port, splits it by\n# string specified in the delimiter port, and send each part as a separ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add current env to child env, if child env is specified\n"
},
{
"from": "human",
"value": "childProcess = require 'child_process'\npath = require 'path'\ncommand = \"node #{path.resolve __dirname, '../../bin/iced.js'}\"\n\nmodule.exports = (args...) ->\n args[0] = ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix keyboard resize for android devices\n"
},
{
"from": "human",
"value": "if Meteor.isCordova\n\tdocument.addEventListener 'deviceready', ->\n\t\tcordova.plugins.Keyboard.hideKeyboardAccessoryBar(true);\n\t\tcordova.plugins.Keyboard.disableScroll(true);\n\n\twindow... | coffeescript | chosen |
[
{
"from": "system",
"value": "Implement Collision Check Temporary Table.\n"
},
{
"from": "human",
"value": "_ = require \"underscore\"\nPromise = require \"bluebird\"\nTemporaryTable = require \"./TemporaryTable\"\n\nclass CollisionCheckTemporaryTable extends TemporaryTable\n\n insert: (externa... | coffeescript | chosen |
[
{
"from": "system",
"value": "Change tab length in GFM.\n\nSigned-off-by: Jason Lynch <68c46a606457643eab92053c1c05574abb26f861@calindora.com>\n"
},
{
"from": "human",
"value": "\"*\":\n \"autocomplete-plus\":\n confirmCompletion: \"enter\"\n fileBlacklist: [\n \"*.md\"\n \"*.tx... | coffeescript | chosen |
[
{
"from": "system",
"value": "Improve how we inject test data for e2e testing purposes\n"
},
{
"from": "human",
"value": "util = require 'util'\nmodule.exports = (app, mongoose, options) ->\n \n models = require('./models')(mongoose)\n controllers = require('./controllers')(models)\n auth = ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Make the markdown editor behave more like a normal input"
},
{
"from": "human",
"value": "# @cjsx React.DOM\n\nReact = require 'react'\nMarkdown = require './markdown'\n\nmodule.exports = React.createClass\n displayName: 'MarkdownEditor'\n\n getInitialState: ->\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add description for config setting\n"
},
{
"from": "human",
"value": "PackageGeneratorView = require './package-generator-view'\n\nmodule.exports =\n config:\n createInDevMode:\n default: false\n type: 'boolean'\n\n activate: ->\n @view = new Packa... | coffeescript | chosen |
[
{
"from": "system",
"value": "Update to use getPaths() instead of getPath()\n"
},
{
"from": "human",
"value": "{View} = require 'atom-space-pen-views'\npath = require 'path'\n\nmodule.exports =\nclass ProjectManagerAddView extends View\n projectManager: null\n\n @content: ->\n @div class: '... | coffeescript | chosen |
[
{
"from": "system",
"value": "Change api urls in client side\n"
},
{
"from": "human",
"value": "window.coviolations ?=\n views: {}\n models: {}\n plotting: {}\n push: {}\n\n$ ->\n app = window.coviolations\n\n class app.models.UserProject extends Backbone.Model\n ### Use... | coffeescript | chosen |
[
{
"from": "system",
"value": "Return proper Ember.RSVP.Promise to avoid troubles on browsers\n"
},
{
"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 ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add support for Ruby bang and question methods\n\n* The ::find method of tag-reader.coffee uses getCurrentWordBufferRange()\n to pull in the current word to pull in the current tag. Passing in a\n custom regexp to getCurrentWordBufferRange() determines what constitutes\n a w... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add 'X-Ledger-Environment' in HTTP requests header\n"
},
{
"from": "human",
"value": "ledger.api ?= {}\n\nclass ledger.api.HttpClient extends @HttpClient\n constructor: () -> super\n\n authenticated: -> ledger.api.authenticated(@_baseUrl)\n\nclass ledger.api.RestC... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix wrong way to force currency symbol after the amount\n"
},
{
"from": "human",
"value": "Darkswarm.filter \"localizeCurrency\", (currencyConfig)->\n # Convert number to string currency using injected currency configuration.\n (amount) ->\n # Set country code ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Allow overriding of elasticsearch config via environment\n"
},
{
"from": "human",
"value": "'use strict';\nutil = require 'util'\n{EventEmitter} = require 'events'\nelasticsearch = require 'elasticsearch'\n_ = require 'lodash'\ndebug ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix logic/syntax error checking for child paths of home directory\n\nFixes #5\n"
},
{
"from": "human",
"value": "module.exports = (Impromptu, register, system) ->\n register 'pwd',\n update: ->\n process.env.PWD\n\n register 'prettyPwd',\n update: ->\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Make focusout handling compatible with React editor\n\nBecause the input element isn't handled by jQuery, it's not possible\nto retrieve the containing view with Event::targetView. This approach is\nwordier but can retrieve the view correctly."
},
{
"from": "human",
... | coffeescript | chosen |
[
{
"from": "system",
"value": "Detach custom list window even if downloading fails\n"
},
{
"from": "human",
"value": "{$, EditorView, View} = require 'atom'\nutils = require './Utils'\n\nmodule.exports=\nclass PackageListCustomListView extends View\n\n @content: ->\n @div class: 'overlay from... | coffeescript | chosen |
[
{
"from": "system",
"value": "Enable search in users table\n"
},
{
"from": "human",
"value": "window.UsersComponent = class UsersComponent\n @initialize: ->\n @addEventListeners()\n\n @addEventListeners: ->\n @userDetailsTooltip()\n\n @userDetailsTooltip: ->\n tooltipClass = '.inform... | coffeescript | chosen |
[
{
"from": "system",
"value": "Refactor parser specs to gain one expectation per spec\n"
},
{
"from": "human",
"value": "Walrus = require '../lib/walrus'\n\ndescribe 'Walrus.Parser', ->\n\n it 'should be defined', -> expect( Walrus.Parser ).toBeDefined( )\n\n describe '#parse', ->\n\n it 'sh... | coffeescript | chosen |
[
{
"from": "system",
"value": "Update smoke test with latest API\n"
},
{
"from": "human",
"value": "require('./spec_helper')\nspy = require('through2-spy')\n\ndescribe 'smoke test', ->\n createFS = require('../index')\n coffee = require('gulp-coffee')\n \n it 'should mock gulp', (done) -> \n... | coffeescript | chosen |
[
{
"from": "system",
"value": "Speed up test suite more\n"
},
{
"from": "human",
"value": "describe \"Welcome\", ->\n editor = null\n\n beforeEach ->\n waitsForPromise ->\n atom.packages.activatePackage(\"welcome\")\n waitsFor ->\n editor = atom.workspace.getActiveTextEditor()\n... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add prefix to error messages\n\n\"An error occurred: #{ERROR}\"\n"
},
{
"from": "human",
"value": "twilio = require(\"twilio\")\nbot = require(\"../bot\")\nconfig = require(\"../config\")\nTWILIO_PHONE = config.twilio.phone\nTWILIO_ACCOUNT_SID = config.twilio.accoun... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix issue of initial placement of items\n"
},
{
"from": "human",
"value": "Crafty.c 'ViewportRelativeMotion',\n init: ->\n\n remove: ->\n\n viewportRelativeMotion: ({ x, y, speed }) ->\n @_startLocation = { x, y }\n @_speed = speed\n @_initialViewport =\... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add node version to version command output\n"
},
{
"from": "human",
"value": "packageJSON = require('../../package.json')\n\nexports.version =\n\tsignature: 'version'\n\tdescription: 'output the version number'\n\taction: ->\n\t\tconsole.log(packageJSON.version)\n"
... | coffeescript | chosen |
[
{
"from": "system",
"value": "Configure sass to use libsass\n"
},
{
"from": "human",
"value": "exports.config =\n # See http://brunch.readthedocs.org/en/latest/config.html for documentation.\n paths:\n public: 'public'\n files:\n javascripts:\n joinTo:\n 'js/app.js': /^app/\... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add wsClient listener by default in browser. More robust way to enable chalk in browser\n"
},
{
"from": "human",
"value": "###\n| Storyboard\n| (c) Guillermo Grau Panea 2016\n| License: MIT\n###\nk = require './constants'\n\n# Enable chalk colors in the browser (we'... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add info to compiled summon file about editing/commiting it.\n"
},
{
"from": "human",
"value": "module.exports = (grunt) ->\n grunt.loadNpmTasks 'grunt-contrib-coffee'\n grunt.loadNpmTasks 'grunt-contrib-concat'\n grunt.loadNpmTasks 'grunt-chmod'\n\n grunt.initC... | coffeescript | chosen |
[
{
"from": "system",
"value": "Create \"dev\" grunt task and set \"default\" as alias\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.versi... | coffeescript | chosen |
[
{
"from": "system",
"value": "Change to changeColor to avoid property conflict\n"
},
{
"from": "human",
"value": "Node = require '../node'\n\nmodule.exports = class Folder extends Node\n get: (cb) -> @api.get(@nodePath, {}, cb.bind(@))\n create: (cb) -> @api.post(@nodePath, {}, cb.bind(@))\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Set also placeholder when adding a fact relation\n"
},
{
"from": "human",
"value": "class window.FactRelation extends Backbone.Model\n\n defaults:\n evidence_type: 'FactRelation'\n\n setOpinion: (type) ->\n $.ajax\n url: @url() + \"/opinion/\" + type\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Return silently if no WebSockets support\n"
},
{
"from": "human",
"value": "reloadStylesheets = ->\n queryString = '?reload=' + new Date().getTime()\n el.href = el.href.replace(/\\?.*|$/, queryString) for el in document.querySelectorAll('link[rel=\"stylesheet\"]')... | coffeescript | chosen |
[
{
"from": "system",
"value": "Revert \"Revert \"Add root node to POST contributions/\"\"\n\nThis reverts commit cffb43d652f57fa64f7bfc630d214f33206ddae0.\n"
},
{
"from": "human",
"value": "`// @ngInject`\nangular.module('cobudget').config (RestangularProvider, config) ->\n RestangularProvider.s... | coffeescript | chosen |
[
{
"from": "system",
"value": "Remove unused local var in event stream actions\n"
},
{
"from": "human",
"value": "ETahi.EventStreamActions = {\n created: (esData) ->\n Ember.run =>\n if esData.task\n phaseId = esData.task.phase_id\n taskId = esData.task.id\n @store.p... | coffeescript | chosen |
[
{
"from": "system",
"value": "Include only nodes being part of ways\n"
},
{
"from": "human",
"value": "require('./styles/index.scss')\n\nrequire('leaflet/dist/leaflet.css')\nrequire('leaflet')\n\nfindClosestTo = (origin, parsed) ->\n minDistance = 1000\n found = null\n for element in parsed.e... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix broken media view when not logged in\n"
},
{
"from": "human",
"value": "angular.module 'module.media', [\n 'restangular'\n 'ui.router'\n 'service.auth'\n 'service.overlay'\n 'module.common'\n]\n.config [\n '$stateProvider',\n ($stateProvider... | coffeescript | chosen |
[
{
"from": "system",
"value": "Remove obsolete module require statement\n"
},
{
"from": "human",
"value": "kd = require 'kd'\nglobals = require 'globals'\nisLoggedIn = require './isLoggedIn'\n\ntrackEligible = ->\n\n return analytics? and globals.config.logToExternal\n\n# Access control wrapper ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Document baseURL and set it for tasks\n"
},
{
"from": "human",
"value": "settings =\n # # set/comment in to use actual BE\n # baseUrl: 'http://localhost:3001'\n\n endpoints:\n 'exercise.*.send.save':\n url: 'api/steps/{id}'\n method: 'PATCH'\n c... | coffeescript | chosen |
[
{
"from": "system",
"value": "Support for optional number of arguments.\n"
},
{
"from": "human",
"value": "\nasync = require 'async'\n\n{Boutique} = require './lib/boutique'\n{serializers} = require './lib/serializers'\n{selectFormat} = require './lib/formatselection'\n\n\nformats =\n 'applicat... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use regex lookahead to sort out the issue with breaking words.\n"
},
{
"from": "human",
"value": "Cloudsdale.MessageController = Ember.Controller.extend\n\n content: null\n\n text: ( () ->\n text = @content.get('content') || \"\"\n text = text.replace(/\\s/g... | coffeescript | chosen |
[
{
"from": "system",
"value": "Remove call to setACL method when survey is activated\n"
},
{
"from": "human",
"value": "###\n Toggles the activation state of a survey based on the 'active' ReactiveVar\n on the instance\n @param [Object] instance, Blaze instance\n###\nactivate = (instance) ->\n... | coffeescript | chosen |
[
{
"from": "system",
"value": "Improve Table of Contents nested list handling\n"
},
{
"from": "human",
"value": "# *************************************\n#\n# Application\n# -> Compendium\n#\n# *************************************\n\n# -------------------------------------\n# Vendor\n# ---... | coffeescript | chosen |
[
{
"from": "system",
"value": "Delete data.type once it's used to transform batch data\n"
},
{
"from": "human",
"value": "# # Kissmetrics Batch\n\nclass BatchKissmetricsClient\n @HOST: 'api.kissmetrics.com'\n\n constructor: (@queue) ->\n @_validate_queue @queue\n\n add: (timestamp, data) ->... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add back Atom `pane-layout-plus` package\n\nTo get keyboard navigation among panes with CTRL + <number>\n"
},
{
"from": "human",
"value": "packages: [\n \"atom-beautify\"\n \"atomic-chrome\"\n \"close-tags\"\n \"date\"\n \"file-icons\"\n \"git-history\"\n \"g... | coffeescript | chosen |
[
{
"from": "system",
"value": "Update statistics when model changes\n"
},
{
"from": "human",
"value": "class window.UserStatisticsView extends Backbone.Marionette.ItemView\n className: 'statistics'\n template: 'users/statistics'\n"
},
{
"from": "gpt",
"value": "class window.UserStat... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add tabindex attr to table rows after table is loaded\n"
},
{
"from": "human",
"value": "Template.reactiveTable.onRendered ->\n if @data.settings.keyboardFocus\n attrs = tabindex: '0'\n @$('tbody > tr').attr(attrs)\n\nTemplate.reactiveTable.events\n 'click t... | coffeescript | chosen |
[
{
"from": "system",
"value": "Change /invite to use addUserToRoom instead joinRoom\n"
},
{
"from": "human",
"value": "###\n# Invite is a named function that will replace /invite commands\n# @param {Object} message - The message object\n###\n\nclass Invite\n\tconstructor: (command, params, item) ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Replace deep-pluck with keyfinder module\n"
},
{
"from": "human",
"value": "\n_ = require 'lodash'\nrequest = require 'request'\ndeepPluck = require 'deep-pluck'\n\nisError = (errorCode) ->\n if errorCode? and errorCode.toString() isnt '0' then true else fals... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add spine require to toolbox to make it pass tests on linux\n"
},
{
"from": "human",
"value": "\nclass Toolbox extends Spine.Controller\n \n events: \n 'click .tool' : 'selection'\n 'click .remove-tools': 'clearDashboard'\n \n constructor: ->\n super\n\... | coffeescript | chosen |
[
{
"from": "system",
"value": "Reset command input on successful commands\n"
},
{
"from": "human",
"value": "angular.module(\"grumbles\")\n .controller \"FormCtrl\", ($http, Output) ->\n @submit = ->\n return unless @command\n\n split_command = @command.split \" \"\n\n verb ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Set datepicker start weekday to Monday\n"
},
{
"from": "human",
"value": "$ ->\n window.initPickers = ->\n base_options =\n format: \"yyyy-mm-dd hh:ii\"\n autoclose: true\n todayBtn: true\n viewSelect: 'month'\n minView: 'day'\n lan... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add dev reset storage button.\n"
},
{
"from": "human",
"value": "goog.provide 'app.react.pages.Home'\n\nclass app.react.pages.Home\n\n ###*\n @param {app.Routes} routes\n @param {app.songs.Store} songsStore\n @param {app.react.Touch} touch\n @constructo... | coffeescript | chosen |
[
{
"from": "system",
"value": "Update project paths for File-Icons\n"
},
{
"from": "human",
"value": "[\n\t{\n\t\ttitle: \".atom\"\n\t\ticon: \"atom-icon\"\n\t\tpaths: [\n\t\t\t\"~/.atom\"\n\t\t]\n\t\tdevMode: true\n\t}\n\t{\n\t\ttitle: \".files\"\n\t\ticon: \"terminal-icon\"\n\t\tpaths: [\n\t\t\... | coffeescript | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.