conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Remove channel reconnection as it causes problems\n" }, { "from": "human", "value": "'use strict'\n\nangular.module('uiApp')\n .factory 'Channel', ($q, $callback, $rootScope, Config) ->\n Channel = {}\n\n ChannelObject = (socket) ->\n @socket = socket\n ...
coffeescript
chosen
[ { "from": "system", "value": "Remove quotes from twitter oembeds\n" }, { "from": "human", "value": "Template.oembedUrlWidget.helpers\n\tdescription: ->\n\t\tif not this.meta?\n\t\t\treturn\n\n\t\treturn this.meta.ogDescription or this.meta.twitterDescription or this.meta.description\n\n\ttitle: ...
coffeescript
chosen
[ { "from": "system", "value": ":bug: Return undefined explicitly in Helpers::validateMessages\n" }, { "from": "human", "value": "{Range} = require('atom')\n\nHelpers = module.exports =\n validateMessages: (results) ->\n if (not results) or results.constructor.name isnt 'Array'\n throw ne...
coffeescript
chosen
[ { "from": "system", "value": "Fix copying of constructor, mount itself and the owner property\n\nCopying the owner property to the object it points to would be, well random..." }, { "from": "human", "value": "###\nA Result represents the...well...result of a Task.\n\nAny function given to {Scrip...
coffeescript
chosen
[ { "from": "system", "value": "Improve minimal tests for slider\n" }, { "from": "human", "value": "React = require('react/addons')\nexpect = require('expect')\nutils = require('./utils')\n\nTestUtils = React.addons.TestUtils\nSlider = require('../slider')\n\ndescribe 'Slid...
coffeescript
chosen
[ { "from": "system", "value": "Use valid CoffeeScript in example\n" }, { "from": "human", "value": "grade = (student, period=(if b? then 7 else 6), messages={\"A\": \"Excellent\"}) ->\n if student.excellentWork\n \"A+\"\n else if student.okayStuff\n if student.triedHard then \"B\" else \"...
coffeescript
chosen
[ { "from": "system", "value": "Use preview tab like sublime\n" }, { "from": "human", "value": "\"*\":\n \"exception-reporting\":\n userId: \"53c5f869-8a29-d7f5-ef48-bc598612bb8d\"\n welcome:\n showOnStartup: false\n core: {}\n editor:\n invisibles: {}\n" }, { "from": "gpt", ...
coffeescript
chosen
[ { "from": "system", "value": "Select just the first matched element\n\nThis a generic selector. It was also affecting spinner icon of the tabs\n" }, { "from": "human", "value": "@Pager =\n init: (@limit = 0, preload, @disable = false) ->\n @loading = $(\".loading\")\n if preload\n @o...
coffeescript
chosen
[ { "from": "system", "value": "Support corpora without a tagger config\n" }, { "from": "human", "value": "App.CwbSearchInputsController = Em.ArrayController.extend\n needs: ['corpus', 'searches']\n\n corpusBinding: 'controllers.corpus.content'\n\n currentInterface: null\n\n init: ->\n # Sh...
coffeescript
chosen
[ { "from": "system", "value": "Add JavaScript with JSX grammar to JSX language\n" }, { "from": "human", "value": "module.exports = {\n\n name: \"JSX\"\n namespace: \"jsx\"\n fallback: ['js']\n\n ###\n Supported Grammars\n ###\n grammars: [\n \"JSX\"\n \"JavaScript (JSX)\"\n \"Babe...
coffeescript
chosen
[ { "from": "system", "value": "Set default padding to 0, not null\n\nThis fixes https://github.com/Glavin001/atom-beautify/issues/1647 .\n" }, { "from": "human", "value": "module.exports = {\n\n name: \"YAML\"\n namespace: \"yaml\"\n fallback: []\n scope: ['source.yaml']\n\n ###\n Supported...
coffeescript
chosen
[ { "from": "system", "value": "Fix scan permissions error message\n" }, { "from": "human", "value": "`import Ember from 'ember';`\n`import Notify from 'ember-notify';`\n`import CONSTANTS from '../utils/constants';`\n`import SocketMixin from '../mixins/socket';`\n\nIndexController = Ember.ArrayCon...
coffeescript
chosen
[ { "from": "system", "value": "Fix path bug in menu generation\n" }, { "from": "human", "value": "# General purpose utitily functions\n# =================================\n\nfs = require 'fs'\npath = require 'path'\n\n\n# Trim newlines from beginning and end of multi line string.\nexports.trimN...
coffeescript
chosen
[ { "from": "system", "value": "Update deprecated call to remote\n" }, { "from": "human", "value": "_ = require 'underscore-plus'\nshell = require 'shell'\nremote = require 'remote'\nBrowserWindow = remote.require 'browser-window'\n\nmodule.exports =\nclass WebWindow\n constructor: (url, options ...
coffeescript
chosen
[ { "from": "system", "value": "Fix the wildcard in gulp test-mocha\n" }, { "from": "human", "value": "gulp = require('gulp')\n$ = require('gulp-load-plugins')\n$ = $ 'rename':\n 'gulp-task-listing': 'list'\npath = require('path')\npkg = require('./package.json')\n\ngulp.task 'default', ['list']\...
coffeescript
chosen
[ { "from": "system", "value": "Add instanceof for new keyword\n" }, { "from": "human", "value": "'use strict'\n\nDEFAULT = require './Default'\nCONST = require './Constants'\nexistsDefault = require 'existential-default'\n\nmodule.exports = (options = {}) ->\n acho = existsDefault(...
coffeescript
chosen
[ { "from": "system", "value": "Make preview tabs off by default for now\n" }, { "from": "human", "value": "module.exports =\n config:\n showIcons:\n type: 'boolean'\n default: true\n alwaysShowTabBar:\n type: 'boolean'\n default: true\n description: \"Shows the Tab...
coffeescript
chosen
[ { "from": "system", "value": "Fix initialization of user profile logic" }, { "from": "human", "value": "toggleTab = (targetClass) ->\n $footer = $('div.profile-footer')\n $nav = $footer.find('ul.nav')\n $nav.find('.active').removeClass 'active'\n $nav.find(\".tab-#{targetClass}\").ad...
coffeescript
chosen
[ { "from": "system", "value": "Fix meeting dropdown appearing when no meeting type selected\n" }, { "from": "human", "value": "Species.EventLookup = Ember.Mixin.create\n selectedEvent: null\n selectedEventId: null\n\n initEventSelector: ->\n @set('selectedEvent', @get('controllers.events.co...
coffeescript
chosen
[ { "from": "system", "value": "Remove unused JavaScript banners code\n\nThe banner `update_style` method isn't used since commit 82cb8d4c.\n" }, { "from": "human", "value": "App.Banners =\n\n update_banner: (selector, text) ->\n $(selector).html(text)\n\n update_style: (selector, style) ->\n...
coffeescript
chosen
[ { "from": "system", "value": "Use schema query from MySQL driver in tests.\n\nThe query that builds a schema object for the compiler tests is\nreturning no rows on Travis CI. In this commit we replace that query\nwith the query from the MySQL driver that appears to be working on\nTravis CI.\n" }, { ...
coffeescript
chosen
[ { "from": "system", "value": "Abort pending artworks requests to fix race condition\n" }, { "from": "human", "value": "_ = require 'underscore'\nBackbone = require 'backbone'\n{ API_URL } = require('sharify').data\nArtworks = require '../../../collections/artworks.coffee'\n\nclass Params extends...
coffeescript
chosen
[ { "from": "system", "value": "Remove unnecessary method - handled by FreeTrialModalController\n" }, { "from": "human", "value": "define [\n\t\"base\"\n], (App) ->\n\tApp.controller \"TrackChangesUpgradeModalController\", ($scope, $modalInstance) ->\n\t\t$scope.cancel = () ->\n\t\t\t$modalInstanc...
coffeescript
chosen
[ { "from": "system", "value": "Make sure the header appears on password pages\n" }, { "from": "human", "value": "# For more information see: http://emberjs.com/guides/routing/\nETahi.Router.map ()->\n @route('flow_manager')\n @resource 'paper', { path: '/papers/:paper_id' }, ->\n @route('edi...
coffeescript
chosen
[ { "from": "system", "value": "Rename variable for clarity (Refactor only)\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:...
coffeescript
chosen
[ { "from": "system", "value": "Fix group for Atom project\n" }, { "from": "human", "value": "[\n {\n title: \"Spyns\"\n group: \"Development\"\n paths: [\n \"~/Development/spyns\"\n ]\n }\n {\n title: \"CSI-702: Homework02 Instructor Attempt\"\n group: \"Mason Fall 2017\...
coffeescript
chosen
[ { "from": "system", "value": "Trim '(London, England)' from borough names\n" }, { "from": "human", "value": "React = require 'react'\n\nmodule.exports = React.createClass\n displayName: 'ChooseSubjectSet'\n \n getInitialState: ->\n subject_sets: []\n \n componentWillMount: ->\n @pro...
coffeescript
chosen
[ { "from": "system", "value": "Use scoped version of module\n" }, { "from": "human", "value": "throttle = require 'lodash.throttle'\nevents = require 'dom-events'\n\nlisteners = []\n\nexports.listen = (fn) ->\n listeners.push fn\n\nactive = ->\n for fn in listeners\n fn()\n\nexports.active =...
coffeescript
chosen
[ { "from": "system", "value": "Use single quote for className attribute\n" }, { "from": "human", "value": "Link = require 'app/components/common/link'\nReact = require 'kd-react'\n\n\nmodule.exports = class SidebarStackHeaderSection extends React.Component\n\n\n render: ->\n\n <div className...
coffeescript
chosen
[ { "from": "system", "value": "Add cmd-p to match sublime text's bindings" }, { "from": "human", "value": "'body':\n 'meta-t': 'fuzzy-finder:toggle-file-finder'\n 'meta-b': 'fuzzy-finder:toggle-buffer-finder'\n 'ctrl-.': 'fuzzy-finder:find-under-cursor'\n 'meta-B': 'fuzzy-finder:toggle-git-st...
coffeescript
chosen
[ { "from": "system", "value": "Update test to respond to '/me'\n" }, { "from": "human", "value": "define [\n 'jquery'\n 'mockjax'\n], ($) ->\n\n $.mockjax\n url: '/api/me'\n proxy: 'data/me.json'\n\n $.mockjax\n url: '/api/content'\n proxy: 'data/content.json'\n\n $.mockjax (sett...
coffeescript
chosen
[ { "from": "system", "value": "Add suffix to update count\n" }, { "from": "human", "value": "_ = require 'underscore-plus'\n{View} = require 'atom-space-pen-views'\n\nmodule.exports =\nclass PackageUpdatesStatusView extends View\n @content: ->\n @div class: 'package-updates-status-view inline...
coffeescript
chosen
[ { "from": "system", "value": "Fix for git pull in mac\n\nthis fix is for git pull in mac in yosemite and older OS" }, { "from": "human", "value": "git = require '../git'\nOutputView = require './output-view'\nBranchListView = require './branch-list-view'\n\nmodule.exports =\n # Extension of Bra...
coffeescript
chosen
[ { "from": "system", "value": "Call service by intercepting form submit, not button or key presses\n" }, { "from": "human", "value": "jQuery(document).ready ->\n writeanswer = (ans) ->\n jQuery(\"#answer\").html(ans)\n \n answer = () ->\n question = jQuery(\"#question\"...
coffeescript
chosen
[ { "from": "system", "value": "Handle missing stylus node in style compilation\n" }, { "from": "human", "value": "fs = require 'fs'\nstylus = require 'stylus'\n\nconverter = require './converter'\n\nmodule.exports =\n\n build: (options, callback) ->\n\n if config = options.stylus\n\n fs....
coffeescript
chosen
[ { "from": "system", "value": "Set router location to hash.\n" }, { "from": "human", "value": "VoluntaryOnEmberjs.Router.map ->\n @resource 'users'\n \nVoluntaryOnEmberjs.Router.reopen\n location: 'history'" }, { "from": "gpt", "value": "VoluntaryOnEmberjs.Router.map ->\n @r...
coffeescript
chosen
[ { "from": "system", "value": "Add support for adding devices." }, { "from": "human", "value": "angular.module(\"hubud\")\n .controller \"MemberCtrl\", ($scope, $state, Restangular) ->\n\n Restangular.one(\"members\", $state.params.id).get().then (response) ->\n $scope.member = response\...
coffeescript
chosen
[ { "from": "system", "value": "Use spawn instead of exec\n" }, { "from": "human", "value": "cp = require '../../script/utils/child-process-wrapper.js'\nworkDir = null\n\nmodule.exports = (grunt) ->\n grunt.registerTask 'bootstrap-atom', 'Bootstraps Atom', ->\n done = @async()\n\n process.c...
coffeescript
chosen
[ { "from": "system", "value": "Fix inevitable sending of lat lng in wrong order\n" }, { "from": "human", "value": "class window.Farm\n constructor: (@name) ->\n @points = []\n\n addPoint: (point) ->\n @points.push(point)\n\n removePoint: ->\n @points.pop()\n\n submitPoints: ->\n @...
coffeescript
chosen
[ { "from": "system", "value": "Switch to a get request as it should have been\n" }, { "from": "human", "value": "# Description\n# Notifies based on the results of xcode builds and controls xcode builds\n#\n# Dependencies\n# None\n#\n# Configuration\n# None\n#\n# Commands:\n# hubot build <...
coffeescript
chosen
[ { "from": "system", "value": "Use redirect setting instead of re-using setting that coincidentally would be flipped on the same day\n" }, { "from": "human", "value": "Settings = require 'settings-sharelatex'\n\nmodule.exports = Features =\n\texternalAuthenticationSystemUsed: ->\n\t\tSettings.lda...
coffeescript
chosen
[ { "from": "system", "value": "Fix writing messages to database\n" }, { "from": "human", "value": "Messages = new Meteor.Collection('messages')\nirc = Meteor.require 'irc'\nclients = {}\nMeteor.publish 'channel', (channel, nick) ->\n if channel && nick\n listen channel, nick\n Me...
coffeescript
chosen
[ { "from": "system", "value": "Fix word separation in Atom\n" }, { "from": "human", "value": "\"*\":\n editor:\n fontFamily: \"Fira Mono OT\"\n showIndentGuide: true\n tabLength: 2\n softWrap: true\n invisibles: {}\n zoomFontWhenCtrlScrolling: false\n nonWordCharacters: \"^*...
coffeescript
chosen
[ { "from": "system", "value": "Define the _rv object id as a non-enumerable, non-configurable, non-writable property on the object.\n" }, { "from": "human", "value": "# The default `.` adapter thats comes with Rivets.js. Allows subscribing to\n# properties on POJSOs, implemented in ES5 natives us...
coffeescript
chosen
[ { "from": "system", "value": "Fix for both vfilter syntax in OpenSSL\n" }, { "from": "human", "value": "vfilter = require '../vfilter'\n\nexports.t = 'Install OpenSSL utility'\n\nexports._ = \"#{vfilter.$6} [.]\"\n\nexports.h = \"\"\"\n Install openssl.exe precompiled for Node.js project\n \"\...
coffeescript
chosen
[ { "from": "system", "value": "Use temp directory for core download.\n" }, { "from": "human", "value": "fs = require('fs')\nrequest = require('request')\nunzip = require('unzip')\n\ngetURL = (filename) ->\n baseurl = 'http://buildbot.libretro.com/'\n if process.platform == 'win32'\n if proce...
coffeescript
chosen
[ { "from": "system", "value": "Use the API token instead of the plain password\n\nIt will also prevent issues with 2FA.\n" }, { "from": "human", "value": "# Description:\n# Domain availability via DNSimple.\n#\n# Dependencies:\n# None\n#\n# Configuration:\n# DNSIMPLE_USERNAME\n# DNSIMPLE_...
coffeescript
chosen
[ { "from": "system", "value": "Add support for MiKTeX 2.9\n" }, { "from": "human", "value": "_ = require 'underscore-plus'\npath = require 'path'\n\nmodule.exports =\nclass Builder\n constructor: ->\n @envPathKey = switch process.platform\n when 'win32' then 'Path'\n else 'PATH'\n\n...
coffeescript
chosen
[ { "from": "system", "value": "Check the existance of the child\n" }, { "from": "human", "value": "EmberCart.CartItem = DS.Model.extend\n cartable_id: DS.attr('number')\n cartable_type: DS.attr('string')\n name: DS.attr('string')\n price: DS.attr('money')\n quantity: DS.attr('number')\n car...
coffeescript
chosen
[ { "from": "system", "value": "Set beta tutorial subject ID\n" }, { "from": "human", "value": "define (require, exports, module) ->\n {dev} = require 'zooniverse/config'\n\n module.exports = if dev\n project: 'bat_detective'\n workflow: '4fa0321854558f2fbf000003'\n tutorialSubject: '4f...
coffeescript
chosen
[ { "from": "system", "value": "Correct destination path for build to reflect docker name\n" }, { "from": "human", "value": "\n\n# Core settings\nsettings = \n port: 9000\n\n# Source and Destination\nsource = {}\nsource.baseDir = 'frontend/src'\nsource.scriptDir = \"#{source.baseDir}/script\"\n...
coffeescript
chosen
[ { "from": "system", "value": "Remove instead of detach on deactivate\n" }, { "from": "human", "value": "BackgroundTipsView = require './background-tips-view'\n\nmodule.exports =\n activate: ->\n @backgroundTipsView = new BackgroundTipsView()\n\n deactivate: ->\n @backgroundTipsView.detac...
coffeescript
chosen
[ { "from": "system", "value": "Include error message in output\n" }, { "from": "human", "value": "path = require 'path'\n_ = require 'underscore'\nCSON = require './cson'\n\nmodule.exports = (argv=[]) ->\n [inputFile, outputFile] = argv\n\n if inputFile?.length > 0\n inputFile = path.resolve...
coffeescript
chosen
[ { "from": "system", "value": "Add constants of tracker statuses to class Frame\n" }, { "from": "human", "value": "_ = require 'underscore'\nPoint2D = require './point2d'\n\nclass Frame\n constructor: (data)->\n @data = data\n\n @timestampString = data.timestamp\n @timestamp = data.time...
coffeescript
chosen
[ { "from": "system", "value": "Set up selection vs. file args.\n" }, { "from": "human", "value": "# Maps Atom Grammar names to the interpreter used by that language\n# As well as any special setup for arguments.\nmodule.exports =\n CoffeeScript:\n interpreter: \"coffee\"\n makeargs: (code)...
coffeescript
chosen
[ { "from": "system", "value": "Print paths to template files for template show action\n" }, { "from": "human", "value": "fs = require 'fs'\njade = require 'jade'\npath = require './utils/path-from-home'\njsonFile = require './utils/json-file'\nerror = require './utils/error'\n\nm...
coffeescript
chosen
[ { "from": "system", "value": "Add spec for unrecognized command\n" }, { "from": "human", "value": "fs = require 'fs'\napm = require '../lib/apm-cli'\n\ndescribe 'apm command line interface', ->\n describe 'when no arguments are present', ->\n it 'prints a usage message', ->\n spyOn(cons...
coffeescript
chosen
[ { "from": "system", "value": "Fix Bug in Onwards Concatenation\n" }, { "from": "human", "value": "angular.module 'qbn.engine', ['qbn.quality', 'qbn.storylet', 'qbn.choice', 'qbn.resolve']\n .controller 'QbnEngine',\n ($scope, qualities, storylets, frontalChoices, choiceFactory, resolveFilter...
coffeescript
chosen
[ { "from": "system", "value": "Fix load more on polls\n" }, { "from": "human", "value": "angular.module('loomioApp').factory 'RecordLoader', (Records) ->\n class RecordLoader\n constructor: (opts = {}) ->\n @loadingFirst = true\n @collection = opts.collection\n @params = op...
coffeescript
chosen
[ { "from": "system", "value": "Remove hidden field and unneeded argument count\n" }, { "from": "human", "value": "window.addAddressRow = ->\n count = $(\"[id^='organization_addresses_attributes']:text\").length\n newRow = $ \"\"\"\n <div class=\"form-group\">\n <label for=\"organization_add...
coffeescript
chosen
[ { "from": "system", "value": "Make grunt watch .less files\n" }, { "from": "human", "value": "module.exports = (grunt) ->\n grunt.initConfig\n pkg: '<json:package.json>'\n coffee:\n client:\n expand: true\n cwd: 'src'\n src...
coffeescript
chosen
[ { "from": "system", "value": "Allow Hubot to suggest strategies to others, in multiple ways\n" }, { "from": "human", "value": "# Description:\n# Display an oblique strategy\n#\n# Dependencies:\n# None\n#\n# Configuration:\n# None\n#\n# Commands:\n# hubot strategy - Returns an oblique str...
coffeescript
chosen
[ { "from": "system", "value": "Create task shell that bootstraps worker\n" }, { "from": "human", "value": "eval(\"window = {};\")\neval(\"console = {};\")\nconsole.warn = ->\n self.postMessage\n type: 'warn'\n details: arguments\nconsole.log = ->\n self.postMessage\n type: 'warn'\n ...
coffeescript
chosen
[ { "from": "system", "value": "Add ecosystem comments to book object\n" }, { "from": "human", "value": "_ = require 'underscore'\nflux = require 'flux-react'\n\nLOADING = 'loading'\nFAILED = 'failed'\n\nEcosystemsActions = flux.createActions [\n 'load'\n 'loaded'\n 'FAILED'\n]\n\nEcosystemsSt...
coffeescript
chosen
[ { "from": "system", "value": "Fix bug - routes are now paths not route names\n" }, { "from": "human", "value": "Handlebars.registerHelper(\n \"accountButtons\", ->\n return new Handlebars.SafeString(Template.entryAccountButtons())\n )\n\nTemplate.entryAccountButtons.helpers\n profileUrl: -...
coffeescript
chosen
[ { "from": "system", "value": "Change GitWrite success message to show 'all files' or filepath\n" }, { "from": "human", "value": "{BufferedProcess} = require 'atom'\nStatusView = require './status-view'\n\n# if all param true, then 'git add .'\ngitWrite = (all=false)->\n dir = atom.project.getRe...
coffeescript
chosen
[ { "from": "system", "value": "Set displayName on App for prettier debugging.\n" }, { "from": "human", "value": "React = require 'react'\nRouter = require 'react-router'\nDocumentTitle = require 'react-document-title'\n\nRouteHandler = Router.RouteHandler\nLink = Router.Link\n\nmodule.exports = R...
coffeescript
chosen
[ { "from": "system", "value": "Fix missing reference to cilantro namespace\n" }, { "from": "human", "value": "define ['../core', './field'], (c, field) ->\n\n class ConceptModel extends Backbone.Model\n parse: (resp) ->\n @fields = []\n # Parse and attach field mod...
coffeescript
chosen
[ { "from": "system", "value": "Convert configDefaults into config schema\n\nDefault jade to removeWhitespace: false" }, { "from": "human", "value": "Whitespace = require './whitespace'\n\nmodule.exports =\n configDefaults:\n removeTrailingWhitespace: true\n ignoreWhitespaceOnCurrentLine: t...
coffeescript
chosen
[ { "from": "system", "value": "Fix \"total\", set \"status\" not \"pass\"\n" }, { "from": "human", "value": "#= require ./vendor/qunit\n\nQUnit.config.hidepassed = true\nQUnit.config.testTimeout = 5000\n\nQUnit.begin (suiteDetails) ->\n Blade.suiteDidBegin(suiteDetails)\n\nfailedAssertions = []\...
coffeescript
chosen
[ { "from": "system", "value": "Move ready function into view.\n" }, { "from": "human", "value": "\nwindow.bone = {}\n\neventSplitter = /^(\\S+)\\s*(.*)$/\n\nsetupEvent = (eventName, rootSelector, selector, action) ->\n\nbone.view = (selector, options) ->\n view = {} \n events = options.even...
coffeescript
chosen
[ { "from": "system", "value": "Call parent to get events going for journal activities\n" }, { "from": "human", "value": "noflo = require 'noflo'\n\nclass IDBJournalStore extends noflo.journal.JournalStore\n constructor: (graph, @db) ->\n super graph\n @transactions = []\n\n genKey: (revId...
coffeescript
chosen
[ { "from": "system", "value": "Update Client-Logic (recieve feeds fromt the server)\n" }, { "from": "human", "value": "entryModule = angular.module(\"entertain.io.app.entry\", [])\n\n.controller 'EntryCtrl', ['$scope', '$http'\n ($scope, $http) ->\n $scope.entries = []\n\n socket = io()\n\...
coffeescript
chosen
[ { "from": "system", "value": "Add some complexities to the conditional stubbing" }, { "from": "human", "value": "describe 'when', ->\n Given -> @when = requireSubject('lib/when')\n Given -> @create = requireSubject('lib/create')\n\n describe 'unconditional stubbing', ->\n Given -> @testDou...
coffeescript
chosen
[ { "from": "system", "value": "Finder: Handle route to mount VM specific filetree.\n" }, { "from": "human", "value": "do ->\n\n KD.registerRoutes 'IDE',\n\n '/:name?/IDE' : ({params:{name}, query})->\n router = KD.getSingleton 'router'\n router.openSection 'IDE', name, query\n\n ...
coffeescript
chosen
[ { "from": "system", "value": "Add default test when checking Expected parameters to ensure that tests are being aware of 'required' option params\n" }, { "from": "human", "value": "@expectRequiredParameters = (type, expectedParameterNames) ->\n originalType = type\n paramList = {}\n\n #check ...
coffeescript
chosen
[ { "from": "system", "value": "utils/spy: Make available as public interface\n" }, { "from": "human", "value": "\nruntime = require '../src/runtime'\n\n## Main\nprogram = require 'commander'\n\nmain = () ->\n program\n .option('--host <hostname>', 'Host', String, 'localhost')\n .option('--...
coffeescript
chosen
[ { "from": "system", "value": "Reset PubSub after each spec\n" }, { "from": "human", "value": "SYNC_RESPONSE = {}\n\nLanes.Test.syncSucceedWith = (data) ->\n SYNC_RESPONSE.success = true\n SYNC_RESPONSE.total = data.length if _.isArray(data)\n SYNC_RESPONSE.data = _.cloneDeep(data)\n\nLa...
coffeescript
chosen
[ { "from": "system", "value": "Call menu on menu button click, this should be a class.\n" }, { "from": "human", "value": "class App\n\n Routers: {}\n\n Models: {}\n\n Collections: {}\n\n Views: {}\n\n init: ->\n window.flight = new Flight()\n new @Routers.AppRouter\n Backbone.histor...
coffeescript
chosen
[ { "from": "system", "value": "Use id's to transition page instead of rendered page element.\n" }, { "from": "human", "value": "class AppRouter extends Backbone.Router\n\n routes:\n '': 'homePage'\n 'panel/:id': 'goToPanel'\n \n homePage: ->\n collection = new app.Collections.Acti...
coffeescript
chosen
[ { "from": "system", "value": "Add save as HTML menu\n" }, { "from": "human", "value": "'menu': [\n 'label': 'Packages'\n 'submenu': [\n 'label': 'Markdown'\n 'submenu': [\n 'label': 'Toggle Preview'\n 'command': 'markdown-preview:toggle'\n ]\n ]\n]\n" }, { "from": "...
coffeescript
chosen
[ { "from": "system", "value": "Add i18n when env.coffee isn't required\n" }, { "from": "human", "value": "__ = window.i18n.data.__.bind(i18n.data)\n__n = window.i18n.data.__n.bind(i18n.data)\n\ntypes =\n \"api_taik\": \"HP\"\n \"api_souk\": \"Armor\"\n \"api_houg\": \"Firepower\"\n \"api_raig...
coffeescript
chosen
[ { "from": "system", "value": "Make cosmetic improvements to the output\n" }, { "from": "human", "value": "sys = require \"sys\"\nfs = require \"fs\"\nassert_module = require \"assert\"\ncoffee = require \"coffee-script\"\nhelpers = require(\"coffee-script/helpers\").helpers\n\n# Parse our comman...
coffeescript
chosen
[ { "from": "system", "value": "Fix canonicalization of core modules\n" }, { "from": "human", "value": "fs = require 'fs'\npath = require 'path'\n\n{sync: resolve} = require 'resolve'\n\nCORE_MODULES = require './core-modules'\nisCore = require './is-core'\ncanonicalise = require './canonicalise'\...
coffeescript
chosen
[ { "from": "system", "value": "fix(workspace-mode): Add to config schema so it defaults to list properly\n" }, { "from": "human", "value": "path = require 'path'\nfs = require 'fs-plus'\n\n# This is loaded by atom.coffee. See https://atom.io/docs/api/latest/Config for\n# more information about co...
coffeescript
chosen
[ { "from": "system", "value": "Add source.litcoffee to default grammars\n\nCloses #38\n" }, { "from": "human", "value": "url = require 'url'\nfs = require 'fs-plus'\n\nMarkdownPreviewView = require './markdown-preview-view'\n\nmodule.exports =\n configDefaults:\n grammars: [\n 'source.gf...
coffeescript
chosen
[ { "from": "system", "value": "Fix method name in presenter spec\n" }, { "from": "human", "value": "Presenters = require \"../lib/presenters\"\nhelpers = require \"./helpers\"\n\ndescribe \"Presenters\", ->\n\n before ->\n @prediction1 = new helpers.PredictionStub stopName: \"Michigan & 29th ...
coffeescript
chosen
[ { "from": "system", "value": "Use interpolated string for setting left offset\n" }, { "from": "human", "value": "{View} = require 'space-pen'\n\nmodule.exports =\nclass WrapGuide extends View\n @activate: (rootView) ->\n requireStylesheet 'wrap-guide.css'\n\n for editor in rootView.getEdi...
coffeescript
chosen
[ { "from": "system", "value": "Allow images from any origin\n" }, { "from": "human", "value": "logger = new Logger(\"browserpolicy\")\n\nMeteor.startup(->\n BrowserPolicy.content.allowImageOrigin(\n \"https://s3-#{Meteor.settings.AWSRegion}.amazonaws.com\")\n BrowserPolicy.content.allowImage...
coffeescript
chosen
[ { "from": "system", "value": "Use isFileSync instead of existsSync for checking file existence\n" }, { "from": "human", "value": "SelectorLinter = require 'atom-selector-linter'\nCSON = require 'season'\nfs = require 'fs-plus'\n\nexports.getSelectorDeprecations = ->\n linter = new SelectorLinte...
coffeescript
chosen
[ { "from": "system", "value": "Remove ac node module, handle new data being sent\n" }, { "from": "human", "value": "# Description:\n# Listens for ac webhooks and post in chat\n#\n# Dependencies:\n# None\n#\n# Configuration:\n# None\n#\n# Commands:\n# None\n#\n# Notes:\n# None\n#\n# Autho...
coffeescript
chosen
[ { "from": "system", "value": "Remove trailing whitespace for jshint\n" }, { "from": "human", "value": "angular\n .module(\"angularTodoList\", [\"ui.router\"])\n .config(['$stateProvider', '$urlMatcherFactoryProvider', \n ($stateProvider, $urlMatcherFactoryProvider) ->\n\n $urlMa...
coffeescript
chosen
[ { "from": "system", "value": "Replace .attr(\"value\", val) with .val(val)\n\nLooks like this has changed behviour in the later version of jquery\nwe now use https://github.com/jquery/jquery-migrate/blob/master/warnings.md#jqmigrate-jqueryfnattrvalue-val-no-longer-sets-properties\n" }, { "from": "hu...
coffeescript
chosen
[ { "from": "system", "value": "Remove modernizr from app asset precompilation\n" }, { "from": "human", "value": "# This is a manifest file that'll be compiled into including all the files listed below.\n# Add new JavaScript/Coffee code in separate files in this directory and they'll automatically...
coffeescript
chosen
[ { "from": "system", "value": "Remove references to ember dependencies\n" }, { "from": "human", "value": "# This is a manifest file that'll be compiled into application.js, which will include all the files\n# listed below.\n\n# Any JavaScript/Coffee file within this directory, lib/assets/javascri...
coffeescript
chosen
[ { "from": "system", "value": "Add ability to close tabs\n" }, { "from": "human", "value": "React = require 'react'\n\nclass Header extends React.Component\n @displayName = 'Header'\n @propTypes:\n menuItems: React.PropTypes.array\n\n constructor: (@props) ->\n\n render: =>\n <div class...
coffeescript
chosen
[ { "from": "system", "value": "gulp: Fix exit code on error as in felixrabe/gulp-setup\n" }, { "from": "human", "value": "coffee = require 'gulp-coffee'\ngulp = require 'gulp'\ngutil = require 'gulp-util'\nmocha = require 'gulp-mocha'\nrimraf = require 'rimraf'\n\nhandleError = (err) ->\n gutil....
coffeescript
chosen
[ { "from": "system", "value": "Tidy up the PathNode compile method a bit\n" }, { "from": "human", "value": "AST = { }\n\nclass AST.Template\n constructor : ( @nodes ) ->\n\n compile : ( context ) -> ( node.compile context for node in @nodes ).join ''\n\nclass AST.ContentNode\n constructor : ( ...
coffeescript
chosen
[ { "from": "system", "value": "Fix typo in uuid generation\n" }, { "from": "human", "value": "fs = require 'fs'\nuuid = require 'node-uuid'\n\nconfig =\n schemaPrefix: do -> 'urn:schemas-upnp-org'\n versions: do ->\n schema: do -> '1.0'\n upnp: do -> '1.0'\n devices: do ->\...
coffeescript
chosen
[ { "from": "system", "value": "Make source maps work in Sentry.\n\nSentry can't seem to handle the unminified,\nconcatenated eval'd version of the bundle.\nMinification loses the js -> coffee mapping\nstep, but the js stack traces and sources\nare clear enough.\n" }, { "from": "human", "value": "...
coffeescript
chosen