conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Add placeholder test for ng-class.\n"
},
{
"from": "human",
"value": "assert = require 'assert'\n\nhtmlParse = require '../lib/html-parse'\n\ndescribe 'HTML Parser', ->\n it 'Extracts HTML classes', ->\n html = \"\"\"\n <!DOCTYPE html>\n <htm... | coffeescript | chosen |
[
{
"from": "system",
"value": "Set the url on the QueryModel\n"
},
{
"from": "human",
"value": "define [\n '../core'\n './base'\n], (c, base) ->\n\n class QueryModel extends base.Model\n\n\n class QueryCollection extends base.Collection\n model: QueryModel\n\n url: ->\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use the `USER` env var instead of `whoami`\n\nCalling `whoami` will always return the user with which the server was\nstarted, which might or might not be the current user.\n\nFor example if we change the user in the middle of a session the prompt\nwill continue showing the ori... | coffeescript | chosen |
[
{
"from": "system",
"value": "Change org coffee to string interpolation\n"
},
{
"from": "human",
"value": "window.addAddressRow = (count) ->\n newRow = $ \"\"\"\n <div class=\"form-group\">\n <label for=\"organization_addresses_attributes_\"\"\" + count + \"\"\"_address\">Mailing Address</l... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add headers to settings app\n"
},
{
"from": "human",
"value": "@index = (req, res, next) ->\n user = req.user\n { customer, policy } = user.related()\n policy.authenticate(user.get('access_token'))\n customer.authenticate(user.get('access_token'))\n\n Promise.a... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix transitions when editable isn’t actually changing"
},
{
"from": "human",
"value": "ETahi.RedirectsIfEditable = Em.Mixin.create\n toggleEditable: ->\n @get('controller').send('editableDidChange')\n\n setupEditableToggle: (->\n @addObserver('controller.mod... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix refreshing the spec window.\n"
},
{
"from": "human",
"value": "assert = require 'assert'\napp = require('remote').require 'app'\n\ndescribe 'app module', ->\n describe 'app.getVersion()', ->\n it 'returns the version field of package.json', ->\n assert.... | coffeescript | chosen |
[
{
"from": "system",
"value": "Convert http to Q instead of old promise library."
},
{
"from": "human",
"value": "Promise = require 'promise'\nLog = require 'log'\nlogger = new Log(process.env.HUBOT_LOG_LEVEL or 'info')\n\ngetHttpJson = (robot, url) ->\n logger.debug \"Loading\", url\n new... | coffeescript | chosen |
[
{
"from": "system",
"value": "Destroy the demo view on core:cancel\n"
},
{
"from": "human",
"value": "\nmodule.exports =\n\n activate: (state) ->\n atom.workspaceView.command 'table-edit:demo', ->\n Table = require './table'\n TableView = require './table-view'\n\n table = new... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix typo in log message\n"
},
{
"from": "human",
"value": "RedisWrapper = require('../../infrastructure/RedisWrapper')\nrclient = RedisWrapper.client('sudomode')\nlogger = require('logger-sharelatex')\n\n\nTIMEOUT_IN_SECONDS = 60 * 60\n\n\nmodule.exports = SudoModeH... | coffeescript | chosen |
[
{
"from": "system",
"value": "Support copy, cut, and plain text pastes\n"
},
{
"from": "human",
"value": "class Trix.Input\n @events: \"keydown keypress drop cut copy paste input\".split(\" \")\n @keys:\n 0x08: \"backspace\"\n 0x0D: \"return\"\n\n constructor: (@element, @responder) ->\... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add message when user created\n"
},
{
"from": "human",
"value": "angular.module 'keranbeandco.user'\n.controller 'login', ($scope, $state, ImprovedUser) ->\n\n $scope.login = ->\n ImprovedUser.login\n email: $scope.loginEmail\n password: $scope.loginPa... | coffeescript | chosen |
[
{
"from": "system",
"value": "Allow fragment to track to be specified\n"
},
{
"from": "human",
"value": "define (require) ->\n Backbone = require('backbone')\n settings = require('settings')\n\n # Class to handle loading analytics scripts and wrapping\n # handlers around them so that modules... | coffeescript | chosen |
[
{
"from": "system",
"value": "Set up a `creditCards` relation on the User\n"
},
{
"from": "human",
"value": "_ = require 'underscore'\nBackbone = require 'backbone'\n{ API_URL } = require('sharify').data\n\nmodule.exports =\n related: ->\n return @__related__ if @__related__?\n\n Collecto... | coffeescript | chosen |
[
{
"from": "system",
"value": "Remove clutter from bounties page\n"
},
{
"from": "human",
"value": "# Place all the behaviors and hooks related to the matching controller here.\n# All this logic will automatically be available in application.js.\n# You can use CoffeeScript in this file: http://co... | coffeescript | chosen |
[
{
"from": "system",
"value": "Clean up JS for editable.\n"
},
{
"from": "human",
"value": "$ ->\n $('span.editable').editable (value, settings) ->\n $span = $(this)\n url = $span.data('url')\n data = {_method: 'PUT'}\n data[$span.data('attribute')] = value\n $.post(url, data)\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Split language out of domain by - or .\n"
},
{
"from": "human",
"value": "i18n = require(\"i18next\")\n_ = require(\"underscore\")\npath = require(\"path\")\n\nmodule.exports = \n\n\tsetup: (options) ->\n\t\tsubdomainLang = options?.subdomainLang || {}\n\t\tavailabl... | coffeescript | chosen |
[
{
"from": "system",
"value": "Patch IE's missing logging methods\n"
},
{
"from": "human",
"value": "{forwardMethods} = Trix.Helpers\n\nclass Trix.Logger\n loggers = {}\n\n @get: (name) ->\n loggers[name] ?= new Trix.Logger(console)\n\n forwardMethods ofObject: console, onConstructor: this,... | coffeescript | chosen |
[
{
"from": "system",
"value": "Remove rootView as parameter to activate\n"
},
{
"from": "human",
"value": "module.exports =\n treeView: null\n\n activate: (rootView, @state) ->\n if state\n @createView().attach() if state.attached\n else if rootView.project.getPath() and not rootView... | coffeescript | chosen |
[
{
"from": "system",
"value": "Update fact whenever from_fact changes -- this prevents a timing issue in Backbone, as such specific event handlers are executed before \"change\" itself.\n"
},
{
"from": "human",
"value": "class window.FactRelation extends Evidence\n\n defaults:\n evidence_type... | coffeescript | chosen |
[
{
"from": "system",
"value": "Change syntax to follow ES6 conventions"
},
{
"from": "human",
"value": "# https://atom.io/docs/latest/using-atom-snippets\n\n'.source.js':\n 'Mocha Describe':\n 'prefix': 'describe'\n 'body': \"\"\"\n describe('$1', function() {\n $2\n })\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use @presenter from NavGroup instead of @options.viewClass\n\nMore consistent with TabGroup"
},
{
"from": "human",
"value": "styles = require('styles').ui\n\nController = require 'views/controller'\n\nView = require 'views/base'\n\nmodule.exports = class NavGroup ex... | coffeescript | chosen |
[
{
"from": "system",
"value": "Apply effect in tag version as well.\n"
},
{
"from": "human",
"value": "'use strict'\n\n$ ->\n\n if Uno.is 'device', 'desktop'\n $('a').not('[href*=\"mailto:\"]').click ->\n if this.href.indexOf(location.hostname) is -1\n window.open $(this).attr 'hr... | coffeescript | chosen |
[
{
"from": "system",
"value": "Create a new credit card on Balanced when submitting CreditCard form\n"
},
{
"from": "human",
"value": "Neighborly.Neighborly ?= {}\nNeighborly.Neighborly.Balanced ?= {}\nNeighborly.Neighborly.Balanced.Creditcard ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Clean up run loop call"
},
{
"from": "human",
"value": "View = Em.View.extend\n classNames: ['application-wrapper']\n didInsertElement: ->\n Em.run.scheduleOnce 'afterRender', =>\n @doResize()\n\n $(window).on 'resize', =>\n Em.run.debounce @, ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add loose mode for classes\n"
},
{
"from": "human",
"value": "module.exports =\n options:\n sourceMap: true\n dist:\n options:\n modules: 'amd'\n files: [{\n expand: true,\n cwd: 'src',\n src: ['**/*.js'],\n dest: 'tmp/'\n }]\n... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add [] as word boundaries\n\nThis is a common boundary used in markdown link text\n"
},
{
"from": "human",
"value": "module.exports =\n findMisspellings: (text) ->\n wordRegex = /(?:^|\\s)([a-zA-Z']+)(?=\\s|\\.|$)/g\n row = 0\n misspellings = []\n for l... | coffeescript | chosen |
[
{
"from": "system",
"value": "Remove blocking on synchronous volume creationg\n"
},
{
"from": "human",
"value": "fs = require \"fs-extra\"\npath = require \"path\"\nsanitize \t= require \"sanitize-filename\"\nuuid = require \"node-uuid\"\n\nmodule.exports = (files, cb) ->\... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix bug in add commit.\n"
},
{
"from": "human",
"value": "fs = require 'fs'\npath = require 'path'\nRepository = require('git-cli').Repository\n\nprepareBranch = (repo, branch, callback) ->\n repo.checkout 'heroku', (err) ->\n repo.merge 'master', ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Switch from autocomplete-elixir to atom-elixir\n\nThe former has been deprecated in favor of the latter (and causes a\nstartup issue if elixir is not in the path).\n"
},
{
"from": "human",
"value": "packages: [\n \"advanced-open-file\"\n \"atom-beautify\"\n \"ato... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix for zindex values being changed by gulp-cssnano by default\n"
},
{
"from": "human",
"value": "gulp = require('gulp-help') require 'gulp'\n$ = do require 'gulp-load-plugins'\nconfig = require '../config'\npaths = require '../paths'\nutil = require '../util'\n\n\n... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add a `url` setting, in addition to the local\n"
},
{
"from": "human",
"value": "express = require 'express'\nmongoose = require 'mongoose'\next_type = require 'connect-ext-type'\n{ createServer } = require 'http'\n{ join } = require 'path'\n\nmodule.exports = expre... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix select form not binding when injected via ajax\n"
},
{
"from": "human",
"value": "$ ->\n if $('[data-action=favourite]').length > 0\n $('body').on 'ajax:success', '[data-action=favourite] [data-remote]', (event, data, status, xhr) ->\n $(this).closest('... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix anyone can participate bug\n"
},
{
"from": "human",
"value": "angular.module('loomioApp').directive 'pollCommonStartPoll', ($window, PollService, LmoUrlService) ->\n scope: {poll: '='}\n templateUrl: 'generated/components/poll/common/start_poll/poll_common_sta... | coffeescript | chosen |
[
{
"from": "system",
"value": "Remove awfully pale color form random slide colors.\n\nCan't read it.\n"
},
{
"from": "human",
"value": "AllAboard.PerspectiveAssignmentComponent = Em.Component.extend\n tagName: \"li\"\n classNames: [ \"perspective-assignment\" ]\n attributeBindings: [\n \"as... | coffeescript | chosen |
[
{
"from": "system",
"value": ":lipstick: Remove unnecessary second git path definition.\n"
},
{
"from": "human",
"value": "RepoView = require './views/repo-view'\nRepo = require './models/repo'\n\nmodule.exports =\n configDefaults:\n pre_commit_hook: \"\",\n\n atomatigitView: null\n\n acti... | coffeescript | chosen |
[
{
"from": "system",
"value": "Include settings in AJAX error message\n"
},
{
"from": "human",
"value": "email = 'support@roqua.nl'\nmessage = \"Onbekende fout. Mail naar <a href='mailto:#{email}'>#{email}</a> voor hulp\"\n\napplicationInitialized = ->\n Screensmart? && typeof Screensmart.store?... | coffeescript | chosen |
[
{
"from": "system",
"value": "Remove unused method leftover from earlier image transfer attempts.\n"
},
{
"from": "human",
"value": "Connection = Meteor.npmRequire 'ssh2'\n\nsshExec = (id, command, action, callback) ->\n room = Rooms.findOne id\n if room\n conn = new Connection()\n conn.... | coffeescript | chosen |
[
{
"from": "system",
"value": "Change the way changes to underlying model are watched and updated for select2 elements\n"
},
{
"from": "human",
"value": "angular.module(\"admin.indexUtils\").directive \"select2MinSearch\", ($timeout) ->\n require: 'ngModel'\n link: (scope, element, attrs, ngMod... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix allCampaigns and create userCampaigns\n"
},
{
"from": "human",
"value": "Meteor.methods\n\tallCampaigns: ->\n\t\tif not @userId?\n\t\t\treturn 401\n\n\t\tdata = Campaigns.find({}, {sort: {createdAt: 1}}).fetch()\n\t\tfor item in data\n\t\t\titem.canonicalUrl = e... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix send message each emoji on emoji action\n"
},
{
"from": "human",
"value": "# Description:\n# github の API をたたく\n#\n# Commands:\n# hubot github emoji yum #-> https://assets-cdn.github.com/images/icons/emoji/yum.png?v5\n\nfs = require \"fs\"\n\ncachefile = \"c... | coffeescript | chosen |
[
{
"from": "system",
"value": "Clarify PulsarApi construction. Remove the default config extending redundancy.\n"
},
{
"from": "human",
"value": "_ = require('underscore')\nconfig = require('./config')\nasync = require('async')\nPulsarApiClient = require('./pulsar-api-client')\n\nclass PulsarApi\... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add command queue functionality using `&&`\n"
},
{
"from": "human",
"value": "angular.module(\"grumbles\")\n .controller \"FormCtrl\", ($http, Output) ->\n @submit = ->\n return unless @command\n\n words = @command.split ' '\n words.length = 3\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use proper CoffeeScript in scaffold"
},
{
"from": "human",
"value": "<%= view_namespace %> ||= {}\n\nclass <%= view_namespace %>.IndexView extends Backbone.View\n template: JST[\"<%= jst 'index' %>\"]\n \n initialize: () ->\n _.bindAll(this, 'addOne', 'addAl... | coffeescript | chosen |
[
{
"from": "system",
"value": "Refresh changes page every 2 minutes.\n"
},
{
"from": "human",
"value": "$ ->\n if $('h1').html() == 'Changes'\n setTimeout(->\n location.reload()\n , 10 * 1000)\n"
},
{
"from": "gpt",
"value": "$ ->\n if $('h1').html() == 'Changes'\n set... | coffeescript | chosen |
[
{
"from": "system",
"value": "Remove Point and Range classes now provided by telepath\n"
},
{
"from": "human",
"value": "_ = require 'underscore'\nRange = require 'range'\n\nmodule.exports =\nclass Snippet\n name: null\n prefix: null\n body: null\n lineCount: null\n tabStops: null\n\n cons... | coffeescript | chosen |
[
{
"from": "system",
"value": "Change image copy method to work accross different partitions\n"
},
{
"from": "human",
"value": "\nfs = require 'fs'\ncrypto = require 'crypto'\npath = require 'path'\n\ncreateHashID = ->\n crypto.createHash('sha1').update(\"#{Math.random()}\").digest('hex');\n\nmo... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix to remove BaseTool from Toolbox\n"
},
{
"from": "human",
"value": "class Toolbox extends Backbone.View\n _.extend @prototype, Backbone.Events\n\n tagName: 'div'\n className: 'toolbox'\n template: require './templates/toolbox'\n\n events: \n 'click .tool-... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add keybinding for toggle command\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 whi... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix blank <trix-toolbar> in Firefox\n"
},
{
"from": "human",
"value": "Trix.registerElement \"trix-toolbar\",\n defaultCSS: \"\"\"\n %t {\n white-space: nowrap;\n }\n\n %t [data-trix-dialog] {\n display: none;\n }\n\n %t [data-trix-dialog][... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use new syntax for finding records\n"
},
{
"from": "human",
"value": "Review.Commit = DS.Model.extend\n remoteId: DS.attr('string')\n message: DS.attr('string')\n state: DS.attr('string')\n remoteUrl: DS.attr('string')\n project: DS.belongsTo('project')\n expi... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add CORS support for in place edit\n"
},
{
"from": "human",
"value": "EditableForm = $.fn.editableform.Constructor\nEditableForm.prototype.saveWithUrlHook = (value) ->\n url = @options.url\n @options.url = (params) =>\n params[@options.model] ||= {}\n params... | coffeescript | chosen |
[
{
"from": "system",
"value": "Test: Bring back schema meta validation\n"
},
{
"from": "human",
"value": "tv4 = require 'tv4'\nchai = require 'chai' if not chai\npath = require 'path'\nfs = require 'fs'\n\nschemaPath = '../schema'\ngetSchema = (name) ->\n filepath = path.join __dirname, schemaPa... | coffeescript | chosen |
[
{
"from": "system",
"value": "Enable the spell checker for Atom\n"
},
{
"from": "human",
"value": "\"*\":\n core:\n disabledPackages: [\n \"spell-check\"\n ]\n telemetryConsent: \"limited\"\n themes: [\n \"one-light-ui\"\n \"atom-light-syntax\"\n ]\n editor:\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "ENHANCE: Add AAF signout redirect URL to config\n"
},
{
"from": "human",
"value": "angular.module(\"doubtfire.sessions.states.sign-out\", [])\n\n#\n# State for sign out\n#\n.config(($stateProvider) ->\n signOutStateData =\n url: \"/sign_out\"\n views:\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Move Newrelic to the top\n"
},
{
"from": "human",
"value": "#\n# Main API Server\n#\n\nrestify = require 'restify'\nchalk = require 'chalk'\n\nnewrelic = require './helpers/newrelic'\nexceptionHandler = require './helpers/exceptionhandler'\nlogger = require './helpe... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use unshift instead of push for creating connections\n"
},
{
"from": "human",
"value": "Reflux = require 'reflux'\nActions = require '../actions/database'\nCommon = require '../common/application'\nGot = require 'got'\n\ncache =\n loading: false\n connections: []\... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix a lint warning reported by `./script/grunt lint`.\n\nNow it runs without reporting any issues.\n"
},
{
"from": "human",
"value": "module.exports =\nclass InputComponent\n constructor: (@presenter) ->\n @domNode = document.createElement('input')\n @domNode... | coffeescript | chosen |
[
{
"from": "system",
"value": "Change index to display latest recipes\n"
},
{
"from": "human",
"value": "RouteHandler = require '../../core/RouteHandler'\n\n###\nIndex/frontpage/home\n\n@author Torstein Thune\n@copyright 2015 Microbrew.it\n###\nclass Handler extends RouteHandler\n\n\tgetRoute: ()... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add author info to profile feeds\n"
},
{
"from": "human",
"value": "TentStatus.Routers.profile = new class ProfileRouter extends Marbles.Router\n routes: {\n \"profile\" : \"currentProfile\"\n \":entity/profile\" : \"profile\"\n }\n\n actions_titles: {\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Switch to blockchain.info over SSL\n"
},
{
"from": "human",
"value": "{ Util: { parseValue, bytesToNum }, convert: { bytesToHex, hexToBytes } } = require 'bitcoinjs-lib'\n\n# Send transaction to Bitcoin network using blockchain.info's pushtx\ntx_broadcast = (tx, cb)... | coffeescript | chosen |
[
{
"from": "system",
"value": "Throw warning on missing task\n"
},
{
"from": "human",
"value": "import isFunction from 'es-is/function'\nimport isGeneratorFunction from 'es-is/generator-function'\n\nimport log from '../log'\nimport tasks from '../tasks'\n\nimport invokeAsync from '... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix typo in the query string.\n"
},
{
"from": "human",
"value": "Repository = require('../models/repository').Repository\nBuild = require('../models/build').Build\nResque = require('../config/resque').Connection\n\nexports.findOrCreateRepository = (desir... | coffeescript | chosen |
[
{
"from": "system",
"value": "Switch back to regular cylon\n"
},
{
"from": "human",
"value": "gpio = require('gpio')\nEvents = require('events').EventEmitter\nCylon = require('cylon-raspi')\n\nmodule.exports = class Buzzer extends Events\n interval: 200\n buzzes: 0\n lastOpened: new Date()\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Set env var before loading script\n"
},
{
"from": "human",
"value": "assert = require 'assert'\n\nHelper = require('hubot-test-helper')\nhelper = new Helper('../scripts/poo-tracker.coffee')\n\ndescribe 'poo-tracker', ->\n room = null\n\n beforeEach ->\n room = ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Stop reversing levels in CampaignEditor\n\nCampaign saves started being reversed, and removing this\ncode brings it back to \"normal\".\n"
},
{
"from": "human",
"value": "ModalView = require 'views/core/ModalView'\ntemplate = require 'templates/editor/campaign/save-... | coffeescript | chosen |
[
{
"from": "system",
"value": "Remove a log no longer relevant to modern browsers\n"
},
{
"from": "human",
"value": "ThangType = require 'models/ThangType'\nCocoCollection = require 'collections/CocoCollection'\n\nmodule.exports = class ThangNamesCollection extends CocoCollection\n url: '/db/tha... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix incorrect version in CoffeeScript portion.\n"
},
{
"from": "human",
"value": "leveldb = exports = module.exports = require './leveldb/handle'\nbinding = require '../build/Release/leveldb.node'\n\nleveldb.version = '0.7.0'\nleveldb.bindingVersion = \"#{binding.ma... | coffeescript | chosen |
[
{
"from": "system",
"value": "Update expample to use my\n"
},
{
"from": "human",
"value": "# TODO: Normalize to 100 or 1.00\nSCALE = 30\n\nme = {\n name: 'me'\n shape: 'turtle'\n position: [0,0]\n color: 'blue'\n programs: {first: [], repeat: ['forward']}\n editable: true\n}\n\nexit = {\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add spec for missing search query\n"
},
{
"from": "human",
"value": "path = require 'path'\nexpress = require 'express'\nhttp = require 'http'\napm = require '../lib/apm-cli'\n\ndescribe 'apm search', ->\n server = null\n\n beforeEach ->\n silenceOutput()\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Make providing a value with wesabe.provide actually work."
},
{
"from": "human",
"value": "# run with:\n# $ rake spec\n# OR\n# $ npm install jasmine-node\n# $ jasmine-node --coffee spec\n\nexports.wesabe =\n log: [],\n\n provide: (module, value) ->\n @walk modu... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add operator scope to `:`\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 description: 'Pad left or right o... | coffeescript | chosen |
[
{
"from": "system",
"value": "Modify wage theft report info endpoint\n"
},
{
"from": "human",
"value": "# External Dependencies\ndebug = require('debug')('minimum-wage-service')\nexpress = require 'express'\n\n# Express Components\nrouter = express.Router()\n\n\n#Internal Dependencies\nemployer_... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add CoffeeScript describe and reorganize\n"
},
{
"from": "human",
"value": "# Your snippets\n#\n# Atom snippets allow you to enter a simple prefix in the editor and hit tab to\n# expand the prefix into a larger code block with templated values.\n#\n# You can create ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Allow future dates in timeago\n\nAlthough not something that can happen in normal application usage\n(without something going a bit wrong) this is a bit of an issue if you\nhave seeded the database with future PRs. This change of setting\nresolves this issue.\n"
},
{
"f... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use the deis specified port if it exists.\n"
},
{
"from": "human",
"value": "'use strict'\nHapi = require 'hapi'\nBoom = require 'boom'\nBadRequest = Boom.badRequest\njoin = require('path').join\n\nclass Server\n\n constructor: ->\n @server = new Hapi.Server()\n... | coffeescript | chosen |
[
{
"from": "system",
"value": "Rename variables for readability and to avoid confusion\n"
},
{
"from": "human",
"value": "#= require ./validators\n\nclass Batman.ExclusionValidator extends Batman.Validator\n @triggers 'exlusionIn'\n\n constructor: (options) ->\n @acceptableValues = options.e... | coffeescript | chosen |
[
{
"from": "system",
"value": "Work around Atom not displaying keybindings\n"
},
{
"from": "human",
"value": "'.platform-linux atom-text-editor.ide-haskell-repl, .platform-win32 atom-text-editor.ide-haskell-repl':\n 'shift-enter': 'ide-haskell-repl:exec-command'\n 'shift-up': 'ide-haskell-repl:... | coffeescript | chosen |
[
{
"from": "system",
"value": "Remove GitHubFactory (replaced with GitHubFetcher)\n"
},
{
"from": "human",
"value": "do ->\n global.Libs or= {}\n\n global.Libs.JsZip = require(\"jszip\")\n\n global.Libs.CoffeeScript = require(\"coffee-script\")\n\n # global.Libs.Canarium = require(\"canarium\... | coffeescript | chosen |
[
{
"from": "system",
"value": "Remove atom-shell during partial-clean task instead of clean task\n"
},
{
"from": "human",
"value": "path = require 'path'\n\nmodule.exports = (grunt) ->\n {rm} = require('./task-helpers')(grunt)\n\n grunt.registerTask 'partial-clean', 'Delete some of the build fi... | coffeescript | chosen |
[
{
"from": "system",
"value": ":bug: Fix prevent ui router from encoding path names in the URL\n"
},
{
"from": "human",
"value": "mod = angular.module 'mothership', [\n 'ui.router'\n 'ui.bootstrap'\n]\n\nmod.config ($stateProvider, $urlRouterProvider) ->\n\n $urlRouterProvider.otherwise('/play... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add `height` to prevent scaling issue in IE"
},
{
"from": "human",
"value": "React = require 'react'\nobjectAssign = require 'object-assign'\n\nmodule.exports = (icons) ->\n React.createClass\n propTypes:\n icon: React.PropTypes.string.isRequired\n siz... | coffeescript | chosen |
[
{
"from": "system",
"value": "Change indentation to follow coffeelint\n"
},
{
"from": "human",
"value": "dependencies = [\n 'ngRoute',\n 'ui.bootstrap',\n 'myApp.filters',\n 'myApp.services',\n 'myApp.controllers',\n 'myApp.directives',\n 'myApp.common',\n 'myApp.routeCon... | coffeescript | chosen |
[
{
"from": "system",
"value": "fix(spec): Fix memory leak in NamespaceStoreSpec\n"
},
{
"from": "human",
"value": "_ = require 'underscore'\nNamespaceStore = require '../../src/flux/stores/namespace-store'\n\ndescribe \"NamespaceStore\", ->\n beforeEach ->\n @constructor = NamespaceStore.cons... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix radio input to work with new BS forms\n"
},
{
"from": "human",
"value": "class Lanes.Components.RadioField extends Lanes.React.Component\n\n mixins: [\n Lanes.Components.Form.FieldMixin\n ]\n\n renderEdit: ->\n <BS.Col {...@props}>\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Include RNH and RUN file extensions\n\nRUN appears to be one of the file extensions used by the original RUNOFF\nprogram. RNH appears to signify a help file (supposedly \"RUNOFF HELP\"?).\n\nSources:\n\n* http://web.mit.edu/Saltzer/www/publications/starring/starring.run\n* http... | coffeescript | chosen |
[
{
"from": "system",
"value": "Replace callbacks with an API\n"
},
{
"from": "human",
"value": "showFrame = document.getElementById(\"frame\")\nlast_created_text = null\n\nwindow.remote = Factlink.createFrameProxyObject window.parent,\n ['hide', 'show', 'highlightNewFactlink', 'stopHighlightingF... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add Poller class to poll rooms\n"
},
{
"from": "human",
"value": "App.IndexRoute = App.AuthenticatedRoute.extend\n setupController: (controller, model)->\n states = []\n stateIds = []\n activeState = null\n\n model.forEach (item)->\n stateId = it... | coffeescript | chosen |
[
{
"from": "system",
"value": "Refactor finder pane to work with multiple vms.\n"
},
{
"from": "human",
"value": "class FinderPane extends Pane\n\n constructor: (options = {}, data) ->\n\n super options, data\n\n vmController = KD.getSingleton 'vmController'\n vmController.fetchDefaultV... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix kdblockingmodal, take care hidden objects\n"
},
{
"from": "human",
"value": "class KDBlockingModalView extends KDModalView\n constructor:->\n super\n $(window).off \"keydown.modal\"\n \n putOverlay:()->\n @$overlay = $ \"<div/>\",\n class : \"... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use modal-form dialog for collections manager icon"
},
{
"from": "human",
"value": "React = require 'react'\nCollectionsManager = require './manager'\nalert = require '../lib/alert'\n\n# Shows an icon to logged-in users that pops up a collections manager\nmodule?.ex... | coffeescript | chosen |
[
{
"from": "system",
"value": "Clean files in project sub directories as well\n"
},
{
"from": "human",
"value": "{ Disposable } = require 'atom'\npath = require 'path'\nfs = require 'fs'\nglob = require 'glob'\n\nmodule.exports =\nclass Cleaner extends Disposable\n constructor: (latex) ->\n @... | coffeescript | chosen |
[
{
"from": "system",
"value": "Ace: Add `quiet` parameter to `removePane` method\n"
},
{
"from": "human",
"value": "class AceApplicationTabView extends ApplicationTabView\n\n removePane_: KDTabView::removePane\n\n removePane: (pane, shouldDetach) ->\n {aceView} = pane.getOptions()\n\n ret... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use fabric.js in Player class\n"
},
{
"from": "human",
"value": "# BeamWars - A multiplayer in-browser remake of the Mac game of the same name\n# Copyright (C) 2013 Aaron Hill\n#\n# This program is free software: you can redistribute it and/or modify\n# ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Implement retrieving existing markers and destroying decorations along binding\n"
},
{
"from": "human",
"value": "{CompositeDisposable} = require 'atom'\n\nmodule.exports =\nclass MinimapBookmarksBinding\n constructor: (@minimap) ->\n @subscriptions = new Compos... | coffeescript | chosen |
[
{
"from": "system",
"value": "Test should account for possible charset\n"
},
{
"from": "human",
"value": "request = require 'request'\nshould = require 'should'\n\nstartApp = require './start_app'\nbase = require './base'\noptions = require './options'\n\ndescribe 'Basic Things', ->\n before (d... | coffeescript | chosen |
[
{
"from": "system",
"value": "Make CartoDB formatter available for Indicator formatting\n"
},
{
"from": "human",
"value": "fs = require('fs')\nQ = require('q')\n_ = require('underscore')\n\nStandardIndicatorator = require('../indicatorators/standard_indicatorator')\n\nGETTERS =\n gdoc: require(... | coffeescript | chosen |
[
{
"from": "system",
"value": "Make sure that we properly unsubscribe from any outdated portions of a keypath.\n"
},
{
"from": "human",
"value": "class KeypathObserver\n constructor: (@view, @model, @keypath, @callback) ->\n @interfaces = (k for k, v of @view.adapters)\n @objectPath = []\n... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add mising relation in Track"
},
{
"from": "human",
"value": "Yossarian.Track = DS.Model.extend\n name: DS.attr 'string'\n"
},
{
"from": "gpt",
"value": "Yossarian.Track = DS.Model.extend\n name: DS.attr 'string'\n\n recordings: DS.hasMany 'recording'... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix jQuery promise failure handler API reference\n\nSigned-off-by: Sonmez Kartal <d2d15c3d37396a5f2a09f8b42cf5f27d43a3fbde@koding.com>\n"
},
{
"from": "human",
"value": "$ = require 'jquery'\nglobals = require 'globals'\n\nmodule.exports = shortenUrl = (longUr... | coffeescript | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.