conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Add store and statechart to the App component\n" }, { "from": "human", "value": "#= require ./top/navbar\n#= require ./centre/main_area\n\n###* @jsx React.DOM ###\n\nwindow.App = React.createClass\n render: ->\n `<span>\n <Navbar/>\n <MainArea/>\n <...
coffeescript
chosen
[ { "from": "system", "value": "Add description for config setting\n" }, { "from": "human", "value": "SpellCheckView = null\n\nmodule.exports =\n config:\n grammars:\n type: 'array'\n default: [\n 'source.asciidoc'\n 'source.gfm'\n 'text.git-commit'\n 'tex...
coffeescript
chosen
[ { "from": "system", "value": "Add askToTurnOn helper method to turn VM on globally\n" }, { "from": "human", "value": "class VirtualizationController extends KDController\n\n constructor:->\n super\n\n @kc = KD.singletons.kiteController\n\n @lastState =\n state : 'STOPPED'\n\n ...
coffeescript
chosen
[ { "from": "system", "value": "Add confirm to user delete\n" }, { "from": "human", "value": "_ = require 'underscore'\n\nView = require 'lib/view'\ntpl = require 'templates/users/edit'\n\nmediator = require('chaplin').mediator\n\nmodule.exports = class EditUserView extends View\n template: tpl\n...
coffeescript
chosen
[ { "from": "system", "value": "Improve SQL Beautifier to support missing config options.\n\nFixes #67.\n" }, { "from": "human", "value": "###\nRequires https://github.com/andialbrecht/sqlparse\n###\ngetCmd = (inputPath, outputPath, options) ->\n path = options.sqlformat_path\n optionsStr = \" -...
coffeescript
chosen
[ { "from": "system", "value": "Change description on tests of training.\n" }, { "from": "human", "value": "Helper = require('hubot-test-helper')\nchai = require 'chai'\n\nexpect = chai.expect\n\nhelper = new Helper('../scripts/hello.coffee')\n\ndescribe 'Training 1', ->\n beforeEach ->\n @roo...
coffeescript
chosen
[ { "from": "system", "value": "Check that req.route.path is set\n" }, { "from": "human", "value": "os = require(\"os\")\n\nmodule.exports.monitor = (logger) ->\n\treturn (req, res, next) ->\n\t\tMetrics = require(\"./metrics\")\n\t\tstartTime = new Date()\n\t\tend = res.end\n\t\tres.end = () ->\n...
coffeescript
chosen
[ { "from": "system", "value": "Add user_identifier to UserCredential Model\n" }, { "from": "human", "value": "BaseModel = require './base'\ncrypto = require 'crypto'\nuuid = require 'uuid'\n_ = require 'underscore'\n\nclass UserCredential extends BaseModel\n constructor: (options) ->\n super ...
coffeescript
chosen
[ { "from": "system", "value": "Switch to using new subject selection URL\n" }, { "from": "human", "value": "Reflux = require 'reflux'\n{api} = require '../api/client'\nclassifierActions = require '../actions/classifier-actions'\nworkflowStore = require './workflow-store'\n\nmodule.exports = Reflu...
coffeescript
chosen
[ { "from": "system", "value": "Remove selection when added a discussion\n" }, { "from": "human", "value": "FactlinkJailRoot.createFactFromSelection = (current_user_opinion) ->\n success = ->\n FactlinkJailRoot.createButton.hide()\n FactlinkJailRoot.off 'modalOpened', success\n\n selInfo =...
coffeescript
chosen
[ { "from": "system", "value": "Use actual bootstrap javascript, not some weird homebrew version? :3\n" }, { "from": "human", "value": "#= require jquery\n#= require bootstrap-fix\n#= require jquery_ujs\n#= require jquery-ui.js\n#= require jquery.cookie\n#= require jquery.titlealert\n#= require jq...
coffeescript
chosen
[ { "from": "system", "value": "Fix bug list display issue\n" }, { "from": "human", "value": "# Copyright 2013 Square Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy o...
coffeescript
chosen
[ { "from": "system", "value": "Move the poller into the lib and mix it with the other classmixer stuffs.\nUpdate the test.\n" }, { "from": "human", "value": "#= require dashboard\n#= require mock-ajax\n\ndescribe \"Dashboard - getData()\", ->\n beforeEach ->\n jasmine.Ajax.useMock()\n @das...
coffeescript
chosen
[ { "from": "system", "value": "Remove duplicate user path from logout link.\n" }, { "from": "human", "value": "React = require 'react'\nReactRedux = require 'react-redux'\nmoment = require 'moment'\n\ncreateFactory = require '../create-factory.coffee'\nElements = require '../elements.coffee'\nsel...
coffeescript
chosen
[ { "from": "system", "value": "Make a difference between minutes and months. They both used to have an \"m\" as indicator\n" }, { "from": "human", "value": "window.TimeAgo = React.createClass\n mixins: [SetIntervalMixin]\n\n getInitialState: ->\n now: Date.now()\n\n componentDidMount: ->\n ...
coffeescript
chosen
[ { "from": "system", "value": "Test fix: corrected use of should to assert typeof\n" }, { "from": "human", "value": "should = require 'should'\nfixtures = require './fixtures'\ngit = require '../src'\nBlob = require '../src/blob'\n\ndescribe \"Blob\", ->\n describe \"constructor\", ->...
coffeescript
chosen
[ { "from": "system", "value": "Refactor ui watcher to use packageWatcher" }, { "from": "human", "value": "ThemeWatcher = require './theme-watcher'\nBaseThemeWatcher = require './base-theme-watcher'\n\nmodule.exports =\nclass UIWatcher\n constructor: ({@themeManager}) ->\n @baseTheme = new Bas...
coffeescript
chosen
[ { "from": "system", "value": "Update to Atom 1.15.0 default" }, { "from": "human", "value": "# Your keymap\n#\n# Atom keymaps work similarly to style sheets. Just as style sheets use\n# selectors to apply styles to elements, Atom keymaps use selectors to associate\n# keystrokes with events in sp...
coffeescript
chosen
[ { "from": "system", "value": "Add confirmation to player delete\n" }, { "from": "human", "value": "Polymer\n is: 'league-controller'\n properties:\n league: Object\n leagueId:\n type: String,\n observer: '_leagueIdChanged'\n leagueAttrs: Object\n players:\n type: Obj...
coffeescript
chosen
[ { "from": "system", "value": "[Dev] Replace notify view to NotifyView\n" }, { "from": "human", "value": "Marionette = require \"marionette\"\n\nCommentCollectionView = require \"./comment/collectionView\"\nPlayingNotifierView = require \"./nowPlaying/nowPlayingView\"\n\nmodule.exports =\n...
coffeescript
chosen
[ { "from": "system", "value": "Switch out view to login and back on completion\n" }, { "from": "human", "value": "React = require 'react'\nBS = require 'react-bootstrap'\n\nUserStatus = require '../user/status'\n{ExerciseStep} = require '../exercise'\n\nSTEP_ID = '4571'\n\nDemo = React.createClas...
coffeescript
chosen
[ { "from": "system", "value": "Update menus to use custom tag selectors" }, { "from": "human", "value": "'context-menu':\n '.tab': [\n {label: 'Close Tab', command: 'tabs:close-tab'}\n {label: 'Close Other Tabs', command: 'tabs:close-other-tabs'}\n {label: 'Close Tabs to the Right', com...
coffeescript
chosen
[ { "from": "system", "value": "Change thing by ID to thing by name route and close new argument modal right.\n" }, { "from": "human", "value": "Volontariat.ArgumentsIndexRoute = Ember.Route.extend\n model: (params) ->\n @controllerFor('arguments.index').set 'page', parseInt(params.page)\n ...
coffeescript
chosen
[ { "from": "system", "value": "Enable to set timeout as command line option.\n" }, { "from": "human", "value": "StockXmlImport = require('../main').StockXmlImport\nfs = require 'fs'\nargv = require('optimist')\n .usage('Usage: $0 --projectKey key --clientId id --clientSecret secret --xmlfile fil...
coffeescript
chosen
[ { "from": "system", "value": "Add some layaut to command line usage." }, { "from": "human", "value": "fs = require 'fs'\npackage_json = require '../package.json'\nStockXmlImport = require('../main').StockXmlImport\nargv = require('optimist')\n .usage('Usage: $0 --projectKey key --clientId id --...
coffeescript
chosen
[ { "from": "system", "value": "Correct bad property name mapping in inspector-panel\n" }, { "from": "human", "value": "NodeEditView= React.createFactory require '../node-edit-view'\nLinkEditView= React.createFactory require '../link-edit-view'\n\n{div, i} = React.DOM\n\nmodule.exports = React.cre...
coffeescript
chosen
[ { "from": "system", "value": "Add serialization version to image and archive edit sessions\n" }, { "from": "human", "value": "fsUtils = require 'fs-utils'\npath = require 'path'\n_ = require 'underscore'\narchive = require 'ls-archive'\nFile = require 'file'\n\nmodule.exports=\nclass ArchiveEdit...
coffeescript
chosen
[ { "from": "system", "value": "Set phase positions on client side to prevent awkward position\ncorrection in callback\n" }, { "from": "human", "value": "ETahi.PaperManageController = Ember.ObjectController.extend\n sortedPhases: ( ->\n Ember.ArrayProxy.createWithMixins(Em.SortableMixin, {\n ...
coffeescript
chosen
[ { "from": "system", "value": "Set pin-message permissions only on insert\n" }, { "from": "human", "value": "Meteor.startup ->\n\tRocketChat.settings.add 'Message_AllowPinning', true, { type: 'boolean', group: 'Message', public: true }\n\n\tRocketChat.models.Permissions.upsert('pin-message', {$ad...
coffeescript
chosen
[ { "from": "system", "value": "Fix wrong require for javascript.\n" }, { "from": "human", "value": "#= require jquery\n#= require jquery_ujs\n#= require common\n#= require front/cufon-yui\n#= require front/Aller.font\n#= require front/slides.min.jquery\n#= require front/front\n\n#= require_self" ...
coffeescript
chosen
[ { "from": "system", "value": "Revert \"force usage of jQuery 2 from jquery-rails\"\n" }, { "from": "human", "value": "#= require jquery2\n#= require ./jquery_ui\n#= require jquery_ujs\n#= require_self\n#= require_tree ./lib\n#= require_tree ./ext\n#= require_tree ./initializers\n\nwindow.ActiveA...
coffeescript
chosen
[ { "from": "system", "value": "Make authentication take at least one second, to prevent revealing whether a username exists based on timing\n" }, { "from": "human", "value": "\nerrors = require 'errors'\n\n{threshold} = require 'limits'\n\nexports.$endpoint = ->\n\n\tlimiter:\n\t\tmessage: \"You ...
coffeescript
chosen
[ { "from": "system", "value": "Update user notes on text change\n" }, { "from": "human", "value": "{ formatMoney } = require 'accounting'\nStepView = require './step.coffee'\ncreateSlider = require '../../../../../components/slider/index.coffee'\ntemplate = -> require('../../templates/price_range...
coffeescript
chosen
[ { "from": "system", "value": "Add default keybinding for go-to-page command\n" }, { "from": "human", "value": "'.platform-darwin .pdf-view':\n 'cmd-+': 'pdf-view:zoom-in'\n 'cmd-=': 'pdf-view:zoom-in'\n 'cmd--': 'pdf-view:zoom-out'\n 'cmd-_': 'pdf-view:zoom-out'\n 'cmd-0': 'pdf-view:reset-z...
coffeescript
chosen
[ { "from": "system", "value": "Handle back path for login page\n" }, { "from": "human", "value": "\n@registryadmin.controller 'RegistryLoginCtrl', [\n \"$scope\"\n \"registrydataService\"\n \"registryloginService\"\n \"$q\"\n \"$location\"\n \"$rootScope\"\n ($scope,registrydataService,reg...
coffeescript
chosen
[ { "from": "system", "value": "Update amd-tamer task to use variables and new naming scheme\n" }, { "from": "human", "value": "module.exports =\n dist:\n options:\n namespace: '<%= package.name %>',\n base: 'src/'\n src: ['src/**/*.js'],\n dest: 'build/debug/js/<%= package.nam...
coffeescript
chosen
[ { "from": "system", "value": "Fix for rendering Field Settings for default fields\n" }, { "from": "human", "value": "_ = require 'underscore'\n\nView = require 'lib/view'\nFormMixin = require 'views/base/mixins/form'\nFieldTypeSettingsView = require 'views/fields/settings'\n\nmediator = require ...
coffeescript
chosen
[ { "from": "system", "value": "FIX: Switch from using incorrect lodash function in analytics service\n" }, { "from": "human", "value": "angular.module(\"doubtfire.services.analytics\", [])\n#\n# Services for analytics\n#\n.factory(\"analyticsService\", ($analytics, currentUser) ->\n analyticsSer...
coffeescript
chosen
[ { "from": "system", "value": "Add error handling for dynamically loaded API routes\n" }, { "from": "human", "value": "express = require 'express'\ncookieParser = require 'cookie-parser'\nbodyParser = require 'body-parser'\nexpressSession = require 'express-session'\ncolors = require 'colors'\n\n...
coffeescript
chosen
[ { "from": "system", "value": "Use skinny arrow for WrapGuide.initialize()\n" }, { "from": "human", "value": "{View} = require 'space-pen'\n$ = require 'jquery'\n_ = require 'underscore'\n\nmodule.exports =\nclass WrapGuideView extends View\n @activate: ->\n rootView.eachEditor (editor) =>\n ...
coffeescript
chosen
[ { "from": "system", "value": "Add embed-terms info to supported routes\n" }, { "from": "human", "value": "#\n# Pages like Terms of Use, Privacy, etc. that display relatively static content.\n#\n\nexpress = require 'express'\nroutes = require './routes'\n\napp = module.exports = express()\na...
coffeescript
chosen
[ { "from": "system", "value": "Clear vendor search with empty input.\n" }, { "from": "human", "value": "class @VendorFindMode extends CheckoutMode\n ModeSwitcher.registerEntryPoint(\"vendor_find\", @)\n\n constructor: (args..., query) ->\n super\n @vendorList = new VendorList()\n @quer...
coffeescript
chosen
[ { "from": "system", "value": "Fix a bug which linked URL is invalid\n" }, { "from": "human", "value": "Vue = require \"vue/dist/vue\"\n\nescape = require \"../filters/escape\"\nlinkify = require \"../filters/linkify\"\nnewLine = require \"../filters/newLine\"\n\nmodule.exports = Vue.extend\n me...
coffeescript
chosen
[ { "from": "system", "value": "Use the collections' url for the paginator\n" }, { "from": "human", "value": "class window.Followers extends Backbone.Paginator.requestPager\n model: User,\n server_api:\n take: -> @perPage\n skip: -> (@currentPage-1) * @perPage\n\n paginator_core:\n ...
coffeescript
chosen
[ { "from": "system", "value": "Add util methods for creating a high res canvas element\n" }, { "from": "human", "value": "App.Utils =\n\thexToRgb: (hex) ->\n\t\tresult = /^#?([a-f\\d]{2})([a-f\\d]{2})([a-f\\d]{2})$/i.exec hex;\n\t\tif result\n\t\t\tr: parseInt(result[1], 16),\n\t\t\tg: parseInt(r...
coffeescript
chosen
[ { "from": "system", "value": "Disable stream when output to clipboard.\n" }, { "from": "human", "value": "module.exports =\nclass ProcessConfig\n\n constructor: (object={}) ->\n @namespace = 'Process Palette';\n @action = null;\n @command = null;\n @arguments = [];\n @cwd = null;...
coffeescript
chosen
[ { "from": "system", "value": "Add ability to remove terms from list\n" }, { "from": "human", "value": "# Description:\n# Business cat is summoned when business jargon is used\n#\n# Dependencies:\n# None\n#\n# Configuration:\n# HUBOT_BUSINESS_CAT_JARGON comma-separated list of additional \"...
coffeescript
chosen
[ { "from": "system", "value": "Add try/catch to check localStorage support\n" }, { "from": "human", "value": "window.lesson = {}\n\nwindow.lesson.applyScrollEffect = (classList, options) ->\n @prevST = 0\n @scrollTimer = null\n\n if localStorage.getItem('scrollAlertShown')\n $('.s...
coffeescript
chosen
[ { "from": "system", "value": "Fix broken css on some input text\n" }, { "from": "human", "value": "###*\n * @namespace OpenOrchestra:FormBehavior\n###\nwindow.OpenOrchestra or= {}\nwindow.OpenOrchestra.FormBehavior or= {}\n\n###*\n * @class ValidateHidden\n###\nclass OpenOrchestra.FormBehavior.V...
coffeescript
chosen
[ { "from": "system", "value": "Switch min and max in Math.clamp if max > min\n" }, { "from": "human", "value": "((window, Elyssa) ->\n \n # Elyssa.Math\n # Static class\n # @mixin\n Elyssa.Math =\n # Clamps a value between a minimum and maximum\n #\n # @param {Number} The value that...
coffeescript
chosen
[ { "from": "system", "value": "Remove caching on auction lots until we can get headers working\n" }, { "from": "human", "value": "_ = require 'underscore'\n\nArtist = require '../../models/artist'\nAuctionLots = require '../../collections/auction_lots'\n\n@artist = (req, res) ->\n artis...
coffeescript
chosen
[ { "from": "system", "value": "Fix issue with ctrl-k keybinding in Atom\n\nAtom's built-in keybinding for ctrl-k (shown below) was taking\nprecedence over my custom keybinding.\n\n \".editor\": {\n \"ctrl-k\": \"editor:cut-to-end-of-line\",\n\nBy making the CSS selector more specific in my custom keybind...
coffeescript
chosen
[ { "from": "system", "value": "Use 2 space indentation on return\n" }, { "from": "human", "value": "gulp = require 'gulp'\njasmine = require 'gulp-jasmine'\n\nmodule.exports = () ->\n\treturn gulp.src this.opts.config.jasmine.src\n .pipe jasmine() # gulp-jasmine works on filepaths so you can't...
coffeescript
chosen
[ { "from": "system", "value": "Update V2 API endpoint path.\n\nThe final version of the API has a slightly different endpoint than the\nbeta endpoint.\n" }, { "from": "human", "value": "request = require('request')\n\nmodule.exports = class API\n constructor: (apiKey) ->\n @apiKey = apiKey\n\...
coffeescript
chosen
[ { "from": "system", "value": "Add 401 error test cases\n" }, { "from": "human", "value": "\"use strict\"\n\nassert = require 'assert'\nserver = require '../coffee/server.coffee'\n\ncookie = null\n\nbefore (done) ->\n opts =\n method: 'POST'\n url: '/login'\n payload: 'username=turbo%40...
coffeescript
chosen
[ { "from": "system", "value": "Remove reference to spec-launcher, which no longer exists\n" }, { "from": "human", "value": "SpecLauncher = require './spec-launcher'\nSpecRunnerView = require './spec-runner-view'\n\nconfigUri = \"atom://spec-runner\"\n\nmodule.exports =\n\n activate: (state) ->\n...
coffeescript
chosen
[ { "from": "system", "value": "Make sure fancybox updates after things ajax in\n" }, { "from": "human", "value": "RunLoop.register ->\n for el in $('[data-replace-self-on-load]')\n url = $(el).data('replace-self-on-load')\n $(el).removeAttr('data-replace-self-on-load')\n $.get url, (htm...
coffeescript
chosen
[ { "from": "system", "value": "Improve how params and routes are looked up\n" }, { "from": "human", "value": "express = require 'express'\nstylus = require 'stylus'\nassets = require 'connect-assets'\n\napp = express.createServer()\napp.use assets()\napp.set 'view engine', 'jade'\n\napp.get '/', ...
coffeescript
chosen
[ { "from": "system", "value": "Add jQuery on click event handler for search\n\nJust added the click event handler to process metadata record search\nrequests. Currently, it just parses the data parameter to set if a\nrecord is selected.\n\nSigned-off-by: Konrad Reiche <4ff0213f56e2082fcd8c882d04c546881c579ce...
coffeescript
chosen
[ { "from": "system", "value": "Add source.coffee.jsx to list of selectors.\n\nThis matches orktes/atom-react selector for cjsx.\n" }, { "from": "human", "value": "coffee = require 'coffee-script'\nconfigManager = require '../config-manager'\ncjsx_transform = null\n\nmodule.exports =\n i...
coffeescript
chosen
[ { "from": "system", "value": "Update to use sentence case 'Log out'\n" }, { "from": "human", "value": "React = require 'react'\n{CurrentUserStore} = require '../../flux/current-user'\nclassnames = require 'classnames'\nLOGOUT_URL = '/accounts/logout'\nLOGOUT_URL_CC = '/accounts/logout?cc=true'\n...
coffeescript
chosen
[ { "from": "system", "value": "Call Hubot.loadBot with the correct params.\n\nAn argument was missing, fix that.\n" }, { "from": "human", "value": "# This is the Hubot Loading Bay. NPM uses it as an entry point.\n#\n# Hubot = require 'hubot'\n# YourBot = Hubot.robot 'campfire', 'yourbot'...
coffeescript
chosen
[ { "from": "system", "value": "Trim white spaces during email validation\n" }, { "from": "human", "value": "koding = require './../bongo'\n{ getClientId } = require './../helpers'\n\nmodule.exports = (req, res) ->\n\n { JUser } = koding.models\n { password, email, tfcode } = ...
coffeescript
chosen
[ { "from": "system", "value": "Improve protected branches page UX\n" }, { "from": "human", "value": "$ ->\n $(\".protected-branches-list :checkbox\").change ->\n name = $(this).attr(\"name\")\n if name == \"developers_can_push\"\n id = $(this).val()\n checked = $(this).is(\":chec...
coffeescript
chosen
[ { "from": "system", "value": "Use refs, combine API calls\n" }, { "from": "human", "value": "React = require 'react'\napiClient = require '../../api/client'\n{Navigation} = require 'react-router'\nLoading = require '../../components/loading-indicator'\n\nmodule?.exports = React.createClass\n di...
coffeescript
chosen
[ { "from": "system", "value": "Use hubot convention of env var\n" }, { "from": "human", "value": "# Description\n# A hubot script that shows who has the longest github streak in your org\n#\n# Configuration:\n# LIST_OF_ENV_VARS_TO_SET\n# ORG_ACCESS_TOKEN\n#\n# Commands:\n# streak ladder -...
coffeescript
chosen
[ { "from": "system", "value": "Use process.env.PORT to find the proroduction port\n\nSigned-off-by: Ian Macalinao <08370e385f4778cad8fe504ec5445edd3d45bd9a@gmail.com>\n" }, { "from": "human", "value": "module.exports =\n development:\n port: 3000\n\n production:\n port: 80\n" }, { ...
coffeescript
chosen
[ { "from": "system", "value": "Fix the import progress not having the correct translations\n" }, { "from": "human", "value": "Template.adminImportProgress.helpers\n\tstep: ->\n\t\treturn Template.instance().step.get()\n\tcompleted: ->\n\t\treturn Template.instance().completed.get()\n\ttotal: ->\n...
coffeescript
chosen
[ { "from": "system", "value": "Fix multiple addclass for when multiple classes are specified\n" }, { "from": "human", "value": "#= require ./abstract_attribute_binding\n\nclass Batman.DOM.AddClassBinding extends Batman.DOM.AbstractAttributeBinding\n onlyObserve: Batman.BindingDefinitionOnlyObser...
coffeescript
chosen
[ { "from": "system", "value": "[fix] Hide Octospinner when opening in new tab/new window.\n" }, { "from": "human", "value": "ready = ->\n $('.js-navigation').on('click', -> $('.loading-indicator').show())\n\n$(document).ready(ready)\n$(document).on('page:load', ready)\n" }, { "from": "gp...
coffeescript
chosen
[ { "from": "system", "value": "Fix for when the array is empty\n\n`$$.fn.hasClass` and `$$.fn.style` will both throw exceptions if the current selection of elements is empty." }, { "from": "human", "value": "do ($$ = Quo) ->\n\n VENDORS = [ \"-webkit-\", \"-moz-\", \"-ms-\", \"-o-\", \"\" ]\n\...
coffeescript
chosen
[ { "from": "system", "value": "Add century to year field format.\n" }, { "from": "human", "value": "filters = angular.module 'qiprofile.filters', []\n\nfilters.filter 'capitalize', ->\n (s) -> _.str.capitalize(s)\n\nfilters.filter 'moment', ->\n (s) -> moment(s).format('MM/DD/YY')\n\nfilters.fi...
coffeescript
chosen
[ { "from": "system", "value": "Resolve atom.sh and apm relative to app dir\n" }, { "from": "human", "value": "fs = require 'fs'\npath = require 'path'\n\nasync = require 'async'\n\nmodule.exports = (grunt) ->\n {spawn} = require('./task-helpers')(grunt)\n\n grunt.registerTask 'run-specs', 'Run ...
coffeescript
chosen
[ { "from": "system", "value": "Include image files in cache busting for Rails.\n\n On branch master\n\tmodified: examples/rails.coffee\n" }, { "from": "human", "value": "exports.config = (config) ->\n # File path glob patterns.\n # All file paths matching these glob patterns will be watched f...
coffeescript
chosen
[ { "from": "system", "value": "Change test environment AWS region to us-west-1\n" }, { "from": "human", "value": "AWS = require 'aws-sdk'\nAWS.config.region = 'us-east-1'\nAWS.config.update\n accessKeyId : 'AKIAJTAPKSDXI4FIXGJA'\n secretAccessKey : 'ZGAxHptSlnbpQcNMRyVHsoGoB3x...
coffeescript
chosen
[ { "from": "system", "value": ":lipstick: Refactor variable parsing test helpers\n" }, { "from": "human", "value": "VariableParser = require '../lib/variable-parser'\n\ndescribe 'VariableParser', ->\n [parser] = []\n\n itParses = (expression) ->\n description: ''\n asColor: (variable) ->\...
coffeescript
chosen
[ { "from": "system", "value": "Update file icons on service change\n" }, { "from": "human", "value": "FileIcons = require './file-icons'\n\nmodule.exports =\n activate: (state) ->\n @tabBarViews = []\n\n TabBarView = require './tab-bar-view'\n _ = require 'underscore-plus'\n\n @paneS...
coffeescript
chosen
[ { "from": "system", "value": "Use SecureValue field for password input\n" }, { "from": "human", "value": "require \"forge.bundle.js\"\n\nWsseDynamicValue = ->\n this.username = \"\"\n\n this.password = \"\"\n\n this.evaluate = ->\n time = (new Date()).toISOString()\n\n nonce = forge.uti...
coffeescript
chosen
[ { "from": "system", "value": "Add back coffee-script require but don't assign it\n" }, { "from": "human", "value": "fs = require 'fs'\npath = require 'path'\ndelegate = require 'atom_delegate'\noptimist = require 'optimist'\n\natomApplication = null\n\ndelegate.browserMainParts.preMainMessageLoo...
coffeescript
chosen
[ { "from": "system", "value": "Remove random errorIds from retrievalError, reference valid var name\n" }, { "from": "human", "value": "# galegis-api -- Structured Importing and RESTful providing of GA General Assembly Activity.\n# Copyright (C) 2013 Matthew Farmer - Distributed Under the GNU AGPL...
coffeescript
chosen
[ { "from": "system", "value": "Remove a stray console.log call.\n" }, { "from": "human", "value": "{BaseClass} = require \"./BaseClass\"\n{Events} = require \"./Events\"\n\nEvents.MIDICommand = \"midiCommand\"\n\nclass MIDIInput extends BaseClass\n\n\t@define \"enabled\",\n\t\tget: -> @_inputs?.l...
coffeescript
chosen
[ { "from": "system", "value": "Add maxAge for static files\n" }, { "from": "human", "value": "stylus = require 'stylus'\nexpress = require 'express'\n{ basename, join } = require 'path'\nbrowserify = do (browserify = require 'browserify-middleware') ->\n (path) -> browserify path, transform: [ '...
coffeescript
chosen
[ { "from": "system", "value": "Fix flash error method using wrong attributes\n" }, { "from": "human", "value": "Trade.Flash = Ember.Mixin.create\n needs: 'application'\n application: Ember.computed.alias('controllers.application')\n notification: Ember.computed.alias('controllers.application.n...
coffeescript
chosen
[ { "from": "system", "value": "Change linux keymap to match others\n" }, { "from": "human", "value": "'.platform-darwin atom-text-editor':\n 'ctrl-shift-u': 'encoding-selector:show'\n\n'.platform-win32 atom-text-editor':\n 'ctrl-shift-u': 'encoding-selector:show'\n\n'.platform-linux atom-text-e...
coffeescript
chosen
[ { "from": "system", "value": "Add competitor name to autocomplete suggestion.\n" }, { "from": "human", "value": "$(document).ready ->\n autocompleteURL = $(\"#competitor_wca\").attr(\"data-url\")\n\n auto = $(\"#competitor_wca\").typeahead {\n minLength: 6\n },{\n source: (q, callback) ...
coffeescript
chosen
[ { "from": "system", "value": "Mark path option as string\n" }, { "from": "human", "value": "path = require 'path'\n\noptimist = require 'optimist'\n\nCommand = require './command'\n\nmodule.exports =\nclass Test extends Command\n @commandNames: ['test']\n\n parseOptions: (argv) ->\n options...
coffeescript
chosen
[ { "from": "system", "value": "Increase minimum_chrome_version to 32 in order to support Promise and onWheel\n" }, { "from": "human", "value": "name: 'Popup my Bookmarks'\nversion: ''\nmanifest_version: 2\nminimum_chrome_version: '26'\n\ndefault_locale: 'en'\ndescription: '__MSG_extDesc__'\n\nico...
coffeescript
chosen
[ { "from": "system", "value": "Fix bug with Foundation undefined\n" }, { "from": "human", "value": "#= require jquery\n#= require jquery_ujs\n#= require foundation\n#= require rails.validations\n#= require rails.validations.simple_form\n#= require rails.validations.simple_form.fix\n#= require tur...
coffeescript
chosen
[ { "from": "system", "value": "Add infrastructure to have syntax-specific settings\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...
coffeescript
chosen
[ { "from": "system", "value": "Fix Atom reopen closed tab\n" }, { "from": "human", "value": "# all\n# ----------------------------------------\n'atom-text-editor.vim-mode-plus':\n\n # mode switch\n 'ctrl-space': 'vim-mode-plus:reset-normal-mode'\n\n # undo/redo\n 'ctrl-u': 'vim-mode-p...
coffeescript
chosen
[ { "from": "system", "value": "Use image, pdf, and compressed file icons\n" }, { "from": "human", "value": "{View, $$} = require 'space-pen'\n$ = require 'jquery'\nGit = require 'git'\n\nmodule.exports =\nclass FileView extends View\n @content: (file) ->\n @li class: 'file entry', =>\n @...
coffeescript
chosen
[ { "from": "system", "value": "Fix the about page, where moderators don't always show up\n" }, { "from": "human", "value": "class @AboutController extends RouteController\n\n onBeforeRun: ->\n if not subscriptionHandles.moderators\n subscriptionHandles.moderators = Meteor.subscribe('mode...
coffeescript
chosen
[ { "from": "system", "value": "Fix target in node popup links.\n" }, { "from": "human", "value": "Wheelmap.NodePopupView = Ember.View.extend\n templateName: 'node-popup'\n classNames: ['node-popup-view']\n\n aboutFaqLink: (()->\n if I18n.locale == 'de' then 'http://wheelmap.org/about/faqs/'...
coffeescript
chosen
[ { "from": "system", "value": "Increase the number of samples to take such that the mean value is close enough to zero for the test.\n" }, { "from": "human", "value": "{expect} = require \"chai\"\nutils = require \"../../utils\"\n\n{Collections} = utils.require \"base\"\nJitter = utils.require(\"...
coffeescript
chosen
[ { "from": "system", "value": "Use favicon middleware during development by default.\n" }, { "from": "human", "value": "express = require 'express'\nextend = require './extend'\n{existsSync} = require './utils'\n{join, dirname} = require 'path'\n\nexports.extend = (app, func) ->\n extend app, f...
coffeescript
chosen
[ { "from": "system", "value": "Store a 'fields' attribute on form" }, { "from": "human", "value": "FieldList = require './field_list'\n\nmodule.exports = class Form extends Backbone.Model\n\n defaults:\n saveable: false\n updateOnly: false\n sections: [\n { key: 'default', group: t...
coffeescript
chosen
[ { "from": "system", "value": "Move trace from app \"start\" to app \"before:start\"\n" }, { "from": "human", "value": "module.exports = do (Marionette, $) ->\n { UIRouterMarionette } = require('../router')\n App = new Marionette.Application\n Marionette.Behaviors.behaviorsLookup = ->\n # I...
coffeescript
chosen
[ { "from": "system", "value": "Fix existing add subgroup link\n" }, { "from": "human", "value": "angular.module('loomioApp').directive 'subgroupsCard', ->\n scope: {group: '='}\n restrict: 'E'\n templateUrl: 'generated/components/group_page/subgroups_card/subgroups_card.html'\n replace: true\...
coffeescript
chosen
[ { "from": "system", "value": "Disable auto-saves until the data has been loaded\n" }, { "from": "human", "value": "# Description:\n# None\n#\n# Dependencies:\n# \"redis\": \"0.7.2\"\n#\n# Configuration:\n# REDISTOGO_URL\n#\n# Commands:\n# None\n#\n# Author:\n# atmos\n\nUrl = require ...
coffeescript
chosen
[ { "from": "system", "value": "Refactor darker-background directive, extract method\n" }, { "from": "human", "value": "Darkswarm.directive \"darkerBackground\", ->\n restrict: \"A\"\n link: (scope, elm, attr)->\n elm.closest('.page-view').toggleClass(\"with-darker-background\", true)\n" },...
coffeescript
chosen