conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Fix Missing Default Param in choice EDSL\n"
},
{
"from": "human",
"value": "angular.module 'qbn.edsl', ['qbn.quality', 'qbn.storylet', 'qbn.choice']\n .factory 'qbnEdsl', (qualities, storylets, frontalChoices, choiceFactory) ->\n api =\n quality: (id, name,... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix point tool controls offset when scaling image.\n"
},
{
"from": "human",
"value": "BasePoint = require 'zooniverse-readymade/lib/drawing-tools/point'\nToolControls = require './tool-controls'\n\nclass Pinpoint extends BasePoint\n @Controls: ToolControls\n \n c... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix days of week formatting (1 -> 01)\n"
},
{
"from": "human",
"value": "# Description:\n# Make hubot list what tasty treats are available at Kerb Kings Cross (eat.st)\n#\n# Dependencies:\n#\n# Configuration:\n# None\n#\n# Commands:\n# hubot what's on kerb\n\n... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix for broken chat channel stuff.\n"
},
{
"from": "human",
"value": "builder = require('xmlbuilder')\n\nclass ChatChannel\n constructor: (@reflector) ->\n\n sendMessage: (player, message) ->\n xml = builder.create('root')\n .ele('chat', { from : player.na... | coffeescript | chosen |
[
{
"from": "system",
"value": "Set timer based on time, not setInterval calls\n\n- timer was drifting like crazy\n"
},
{
"from": "human",
"value": "class Timer\n constructor: (@id, @elapsed) ->\n @seconds = 0\n @minutes = 0\n @hours = 0\n @interval = undefined\n\n if @elapsed\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix adding of unread astericks\n"
},
{
"from": "human",
"value": "scrollHandler = ->\n url = $(\".actvty-pagination .next_page a\").attr(\"href\")\n if url and $(window).scrollTop() > $(document).height() - $(window).height() - 300\n $(\".actvty-pagination\").t... | coffeescript | chosen |
[
{
"from": "system",
"value": "Switch to interval rate limiting\n"
},
{
"from": "human",
"value": "debug = require('debug')('meshblu:getThrottles')\nLimitus = require 'limitus'\nlimiter = new Limitus()\n\nconfig = require '../config'\n\nconfig.rateLimits ?= {};\nwindowRate = 1000\n\ncreateThrottl... | coffeescript | chosen |
[
{
"from": "system",
"value": "Remove failing test since Travis works.\n"
},
{
"from": "human",
"value": "# spec/javascripts/foobar_spec.js.coffee\ndescribe \"foobar\", ->\n it 'works', -> expect(1 + 1).toEqual(2);\n\ndescribe \"wanted failure\", ->\n it 'fails', -> expect(1 + 1).toEqual(42);\n... | coffeescript | chosen |
[
{
"from": "system",
"value": "Check for can_index on the user, not the connection\n"
},
{
"from": "human",
"value": "Q = require 'bluebird-q'\nChannel = require \"../../models/channel\"\nBlock = require \"../../models/block\"\nComments = require \"../../collections/comments\"\nUser = require \".... | coffeescript | chosen |
[
{
"from": "system",
"value": "Print version on ‘brave-mouse -v’\n"
},
{
"from": "human",
"value": "parser = require 'nomnom'\n\nbraveMouse = require '../brave-mouse'\n\nmodule.exports = (argv) ->\n\tparser\n\t.script 'brave-mouse'\n\t.parse argv.slice 2\n"
},
{
"from": "gpt",
"value"... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix initSelection of variant autocomplete.\n\nFixes #6631\n"
},
{
"from": "human",
"value": "# variant autocompletion\n$(document).ready ->\n if $(\"#variant_autocomplete_template\").length > 0\n window.variantTemplate = Handlebars.compile($(\"#variant_autocompl... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add hide tree view plugin\n"
},
{
"from": "human",
"value": "\"*\":\n \"autocomplete-plus\": {}\n core:\n autoHideMenuBar: true\n editor:\n fontFamily: \"Hasklig\"\n invisibles:\n eol: \" \"\n space: \" \"\n scrollPastEnd: true\n showInde... | coffeescript | chosen |
[
{
"from": "system",
"value": "Revert \"Revert \"Add jQuery notify back in\"\"\n\nThis reverts commit b62a0177c8e3c89a0b1f86e600e20461796f7a81.\n\nSorry for the mess. This was working already on master. My mistake\n"
},
{
"from": "human",
"value": "# This is a manifest file that'll be compiled in... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add support for tracking multiple GA accounts\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 m... | coffeescript | chosen |
[
{
"from": "system",
"value": "Allow for turning off autofocusing; use defer option\n"
},
{
"from": "human",
"value": "_ = require 'underscore'\nBackbone = require 'backbone'\nform = require '../../form/utilities.coffee'\n\nmodule.exports = class StepView extends Backbone.View\n __events__: null... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use createSpinner on journal index.\n"
},
{
"from": "human",
"value": "ETahi.JournalIndexView = Ember.View.extend\n toggleSpinner: (->\n if @get('controller.epubCoverUploading')\n @spinnerDiv = @$('#epub-cover-spinner')[0]\n @spinner ||= new Spinner(co... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix replace self on load function\n\nIt will now trigger the replace:success event only after the new\nnew content is loaded.\n"
},
{
"from": "human",
"value": "RunLoop.register ->\n for el in $('[data-replace-self-on-load]')\n url = $(el).data('replace-self-on-... | coffeescript | chosen |
[
{
"from": "system",
"value": "Initialize browser and database in parallel\n"
},
{
"from": "human",
"value": "require './setup_teardown'\ncleaner = require '../cleaner'\n{wd40, browser} = require 'wd40'\n\nbase_url = process.env.CU_TEST_URL ? 'http://localhost:3001'\nlogin_url = \"#{base_url}/log... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add an error handler for testing\n"
},
{
"from": "human",
"value": "# Description\n# Trys to crash Hubot on purpose\n#\n# Commands:\n# hubot boom [other text]- try to crash Hubot\n# hubot boom emit with msg - try to crash Hubot by emitting an error with a msg\... | coffeescript | chosen |
[
{
"from": "system",
"value": "Read action from correct location\n"
},
{
"from": "human",
"value": "noflo = require 'noflo'\ndebugAction = require('debug') 'noflo-ui:action'\ndebugActionFull = require('debug') 'noflo-ui:action:full'\n\nsendEvent = (label, action = 'click', category = 'menu') ->\n... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add NotSupportedDongle in error case of pin view controller\n"
},
{
"from": "human",
"value": "class @OnboardingDevicePinViewController extends @OnboardingViewController\n\n onAfterRender: ->\n super\n do @_insertPinCode\n\n _insertPinCode: ->\n @view.pin... | coffeescript | chosen |
[
{
"from": "system",
"value": "Remove fade in of navbar control\n"
},
{
"from": "human",
"value": "class Langtrainer.LangtrainerApp.Views.NavbarControl extends Backbone.View\n template: JST['langtrainer_frontend_backbone/templates/navbar_control']\n className: 'navbar-user-controls'\n\n events... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use @some instead of @find\n"
},
{
"from": "human",
"value": "class window.Followers extends Backbone.Collection\n model: User\n\n initialize: (models, opts) ->\n @user = opts.user\n\n url: -> \"/#{@user.get('username')}/followers\"\n\n followed_by_me: ->\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Move map loading into app.\n"
},
{
"from": "human",
"value": "L.mapbox.accessToken = 'pk.eyJ1Ijoia25vY2siLCJhIjoiRVdjRFVjRSJ9.nIZeVnR6dJZ0hwNnKAiAlQ'\nmap = L.mapbox.map('map', 'examples.map-i86nkdio').\n setView([40, -74.50], 9)\n \nconsole.log('I did stuff')\n"
... | coffeescript | chosen |
[
{
"from": "system",
"value": "Update UI behavior on User's profile card to update color using selected role\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 ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix Claim.put to allow options\n"
},
{
"from": "human",
"value": "{log, p, pjson} = require 'lightsaber'\nPromise = require 'bluebird'\ntrustExchange = require './trustExchange'\n\nclass Claim\n @put: (trustAtom) ->\n results = for adaptor in trustExchange.adapt... | coffeescript | chosen |
[
{
"from": "system",
"value": "Remove old card pin verification\n"
},
{
"from": "human",
"value": "class @OnboardingDevicePinViewController extends @OnboardingViewController\n\n onAfterRender: ->\n super\n do @_insertPinCode\n\n _insertPinCode: ->\n @_pinCode = new ledger.pin_codes.Pin... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix repository hint on accounts pages.\n\nAccounts and the profile are currently separate controllers, so\nwhenever you switched the account, the message would be hidden.\n"
},
{
"from": "human",
"value": "Travis.AccountIndexController = Em.Controller.extend\n need... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix tests, and add test for brain event\n"
},
{
"from": "human",
"value": "chai = require \"chai\"\nsinon = require \"sinon\"\nchai.use require \"sinon-chai\"\n\nexpect = chai.expect\n\ndescribe \"remind\", ->\n beforeEach ->\n @robot =\n respon... | coffeescript | chosen |
[
{
"from": "system",
"value": "[REFACTOR] Clean up implementation of status view.\n\nThe previous status view was based on React and unnecessarily complex.\nI've replaced it with Spacepen.\n"
},
{
"from": "human",
"value": "{View} = require 'atom'\nReact = require 'react-atom-fork'\n{_} = require... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix bug where all users are returned when not authenticated\n"
},
{
"from": "human",
"value": "passport = require('passport')\nBasicStrategy = require('passport-http').BasicStrategy\n\npassport.serializeUser (user, done) ->\n done(null, user._id)\n\npassport.deseri... | coffeescript | chosen |
[
{
"from": "system",
"value": "LeaveGroupModal: Fix require and hide loader in err case.\n"
},
{
"from": "human",
"value": "kd = require 'kd'\nnick = require 'app/util/nick'\nkookies = require 'kookies'\nDeleteModalView = require '../deletemodalview'\n\n\nmodule.ex... | coffeescript | chosen |
[
{
"from": "system",
"value": "Set both viewport and uistate context\n"
},
{
"from": "human",
"value": "class Lanes.Components.RecordFinder extends Lanes.React.Component\n\n propTypes:\n query: Lanes.PropTypes.State.isRequired\n model: Lanes.PropTypes.State.isRequired\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Copy JS files to public dir when building assets\n\nBy default this copies to the /frontend/dist directory which meant the\nuglified JS was not being served.\n\nBy default lineman runs copy:dev as part of it's common tasks\n(confusingly really given it's *:dev name) which copie... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use anchor link form of button\n\nThis way it's a real link and can be opened in new tab\n"
},
{
"from": "human",
"value": "React = require 'react'\nBS = require 'react-bootstrap'\n_ = require 'underscore'\n\n{History, Link} = require 'react-router'\n{TransitionActi... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add missing reference to this.\n"
},
{
"from": "human",
"value": "Impromptu = require '../impromptu'\n\nclass Instance extends Impromptu.Cache\n run: (fn) ->\n return get fn if @_cached\n\n @set (err, results) =>\n if err then fn err else @get fn\n\n\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix an error that may lead to [ERROR] Error: getaddrinfo ENOTFOUND undefined undefined:80\n"
},
{
"from": "human",
"value": "Promise = require 'bluebird'\nasync = Promise.coroutine\nrequest = Promise.promisifyAll require 'request'\nrequestAsync = Promise.promisify r... | coffeescript | chosen |
[
{
"from": "system",
"value": "Append a test of the core.coffee\n"
},
{
"from": "human",
"value": "describe 'Test of core.coffee', ->\n"
},
{
"from": "gpt",
"value": "describe 'Test of core.coffee', ->\n elements = null\n\n\n beforeEach ->\n elements = [null, null, null]\n for... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add missing negation to data assertion in WorkspaceWorkflow"
},
{
"from": "human",
"value": "define [\n 'underscore'\n 'marionette'\n '../core'\n '../base'\n '../query'\n 'tpl!templates/workflows/workspace.html'\n], (_, Marionette, c, base, query, ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Make the dub commands play nice with Windows.\n\n* The dub build/run commands are now compatible with Windows as well as OS X.\r\n* Fix code to get project path.\r\n* Remove the path import since it's not needed."
},
{
"from": "human",
"value": "# Grab a few objects... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add context menu to atom-text-editor selector\n"
},
{
"from": "human",
"value": "'menu': [\n {\n 'label': 'Packages'\n 'submenu': [\n 'label': 'Symbols'\n 'submenu': [\n { 'label': 'File Symbols', 'command': 'symbols-view:toggle-file-symbols'... | coffeescript | chosen |
[
{
"from": "system",
"value": "Refactor sort environment stacks utility\n"
},
{
"from": "human",
"value": "MANAGED_VMS = 'Managed VMs'\n\nmodule.exports = (stacks = []) ->\n\n stacks.sort (a, b) ->\n\n return 1 if a.title is MANAGED_VMS\n return -1 if b.title is MANAGED_VMS\n\n retur... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use different visitor per event\n\nInstantiate a 'visitor' on every API request, since GA only tracks 500 events per visitor/session per day.\n"
},
{
"from": "human",
"value": "ua = require('universal-analytics')\n\nvisitor = ua('UA-49535937-3')\n\nmodule.exports = ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use path.basename() instead of fsUtils.base()\n"
},
{
"from": "human",
"value": "fsUtils = require 'fs-utils'\n\n### Internal ###\nmodule.exports =\nclass Package\n @build: (path) ->\n TextMatePackage = require 'text-mate-package'\n AtomPackage = require 'ato... | coffeescript | chosen |
[
{
"from": "system",
"value": "Disable use_bl for /top request\n"
},
{
"from": "human",
"value": "define [\n \"chaplin\"\n \"models/posts\"\n \"views/posts\"\n], (Chaplin, Posts, PostsView) ->\n \"use strict\"\n\n class PostsController extends Chaplin.Controller\n\n show: (params) ->\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Update compiled prompt path to use new variable name.\n"
},
{
"from": "human",
"value": "should = require 'should'\nenvironment = require './shared/environment'\nImpromptu = require '../lib/impromptu'\npath = require 'path'\nexec = require('child_process').exec\n\n\... | coffeescript | chosen |
[
{
"from": "system",
"value": "Revert \"Purposefully fail test - TravisCI integration test\"\n\nThis reverts commit c0d68c398d40c19d2dee9fb7aa50626ee2d79545.\n"
},
{
"from": "human",
"value": "should = chai.should()\n\ndescribe 'MyThing', ->\n it 'should do stuff', ->\n 'this thing'.should.no... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use options passed in constructor\n"
},
{
"from": "human",
"value": "_ = require 'underscore'\n\nmodule.exports = class BunyanMongo\n queue: []\n\n collection: null\n\n options:\n collection_name: 'logs'\n capped: true\n size: 32 * 1024 * 1024\n\n const... | coffeescript | chosen |
[
{
"from": "system",
"value": "Clean up atom keymaps file\n\nThis had a bunch of comments in it that are no longer needed.\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 co... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix typo in previous commit\n"
},
{
"from": "human",
"value": "jQuery ->\n $('.modal .validate').on 'click', ->\n $modal = $(this).closest('.modal')\n $form = $modal.find('form')\n if $form.length > 0\n $form.first().submit()\n else\n $modal.... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix bug with rate limiter not clearing keys properly."
},
{
"from": "human",
"value": "\n\nclass RateLimiter\n constructor: (@expiry=10*60)->\n @data = {}\n\n okay: (key)=> \n check_time = Math.round(new Date().getTime() / 1000)\n @clearExpiredKeys(check_... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use hardcoded number for shards.\n"
},
{
"from": "human",
"value": "redis = require 'redis'\n\n# Connect to redis\nif process.env.REDIS_DB_URL\n parts = require(\"url\").parse(process.env.REDIS_DB_URL)\n db = redis.createClient(parts.port, parts.hostname)\n db.au... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add Elm Doc Comment Snippet\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 a new snippet... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add source file watch task\n"
},
{
"from": "human",
"value": "gulp = require('gulp')\ngutil = require('gulp-util')\n\ncoffee = require('gulp-coffee')\ngulp.task 'coffee', ->\n gulp.src('src/*.coffee')\n .pipe(coffee({bare: true}).on('error', gutil.log))\n .pi... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use window's origin for connecting socket.io.\n"
},
{
"from": "human",
"value": "#= require templates/index\n#= require_tree templates\n#= require_tree models\n#= require_tree collections\n#= require_tree views\n\nsocket = io.connect('http://localhost')\nsocket.on '... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add seasons accounted for disclaimer above team table\n"
},
{
"from": "human",
"value": "{div, table, thead, tbody, tr, th, td} = React.DOM\n\ntable_headers = [\n\t\"Team\"\n\t\"Win %\"\n\t\"Wins\"\n\t\"Losses\"\n\t\"Ties\"\n]\n\n@TeamTable = React.createClass\n\tpr... | coffeescript | chosen |
[
{
"from": "system",
"value": "Set first graph as main if no other suitable is found\n"
},
{
"from": "human",
"value": "exports.findMainGraph = (project) ->\n return null unless project.graphs.length\n if project.main\n # Ensure currently set main graph exists\n for graph in project.graph... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix progress bar with push\n"
},
{
"from": "human",
"value": "window.coviolations ?=\n views: {}\n models: {}\n\n$ ->\n NProgress.start()\n NProgress.inc()\n\n app = window.coviolations\n waitRendering = 2\n\n renderFinished = =>\n NProgr... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix Pencil import on case sensitive filesystems\n"
},
{
"from": "human",
"value": "Pencil = require './pencil'\n{createShape} = require '../core/shapes'\n\n\nmodule.exports = class Eraser extends Pencil\n\n name: 'Eraser'\n iconName: 'eraser'\n\n constructor: () ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Disable footer links that don't work.\n"
},
{
"from": "human",
"value": "# use the first element that is \"scrollable\"\n# http://css-tricks.com/snippets/jquery/smooth-scrolling/\nscrollableElement = (els) ->\n for el in arguments\n $scrollElement = $(el)\n\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use session storage instead of local storage\n\nuntested\n"
},
{
"from": "human",
"value": "Backbone.Factlink ||= {}\n\nclass Backbone.Factlink.LocalStorageTextModel extends Backbone.Model\n constructor: (attributes, options) ->\n super\n\n @set 'text', local... | coffeescript | chosen |
[
{
"from": "system",
"value": "Send metric data once client is logged in\n"
},
{
"from": "human",
"value": "kd = require 'kd'\nKDObject = kd.Object\nremote = require('app/remote').getInstance()\n\nmodule.exports = class DatadogMetrics extends KDObject\n\n @buffer = kd.utils.dict()\n\n\n @collec... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add parens for model counts\n"
},
{
"from": "human",
"value": "Steam.FrameView = (_, _frame) ->\n createCompatibleModelItem = (model) ->\n key: model.key\n algorithm: model.model_algorithm\n category: model.model_category\n responseColumnName: model.res... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add ignore files to tree view\n"
},
{
"from": "human",
"value": "\"*\":\n \"exception-reporting\":\n userId: \"41cbedc9-3477-568d-cd05-8df535ad8564\"\n welcome:\n showOnStartup: false\n core:\n projectHome: \"/Users/joseangel/Workspace\"\n themes: [\n... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix a bug where the download menu wouldn't appear\n"
},
{
"from": "human",
"value": "show_download_menu = ->\n $(\"#download-menu\").slideDown duration: 200\n setTimeout hide_download_menu, 20000\n $(\"#download-link\").html \"cancel\"\n return\nhide_download_me... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use https for pivotal plugin\n"
},
{
"from": "human",
"value": "NotificationPlugin = require \"../../notification-plugin\"\n\nclass PivotalTracker extends NotificationPlugin\n stacktraceLines = (stacktrace) ->\n (\"#{line.file}:#{line.lineNumber} - #{line.method... | coffeescript | chosen |
[
{
"from": "system",
"value": "Make process() a static method on batch client\n\nAccept api key argument\n"
},
{
"from": "human",
"value": "# # Kissmetrics Batch\n\nclass BatchKissmetricsClient\n @HOST: 'api.kissmetrics.com'\n @HTTP_METHOD: 'POST'\n\n constructor: (@options) ->\n @queue = o... | coffeescript | chosen |
[
{
"from": "system",
"value": "Put in correct form for the CoffeeScript to make JS\n"
},
{
"from": "human",
"value": "{expect} = require \"chai\"\nutils = require \"../../utils\"\n\n{Collections} = utils.require \"base\"\n\ndescribe \"step_interpolator_transform module\", ->\n source = {start: 0... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix error if filename matches an existing branch\n"
},
{
"from": "human",
"value": "git = require '../git'\nStatusView = require '../views/status-view'\nPath = require 'path'\n\ngitCheckoutCurrentFile = ->\n currentFile = atom.project.getRepo().relativize atom.work... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix issue in class methods for Scaffold\n"
},
{
"from": "human",
"value": "scaffolt = require 'scaffolt'\n_s = require 'underscore.string'\n\nmodule.exports = class Scaffold\n\n @generate: ->\n scaffold = new Scaffold\n scaffold.generate arguments...\n\n @de... | coffeescript | chosen |
[
{
"from": "system",
"value": "FIX: Comment explaining teaching period state\n"
},
{
"from": "human",
"value": "angular.module('doubtfire.admin.states.teachingperiods', [])\n\n#\n# Convenors of a unit(s) can see a list of all the units they convene\n# in this view and make changes to those units.... | coffeescript | chosen |
[
{
"from": "system",
"value": "Remove unused classes and outlets\n"
},
{
"from": "human",
"value": "{$$$, View} = require 'atom'\n\n# Displays the keybindings for a package namespace\nmodule.exports =\nclass PackageKeymapView extends View\n @content: ->\n @section =>\n @div class: 'secti... | coffeescript | chosen |
[
{
"from": "system",
"value": "Remove `~/Labs/Utils` from Atom-FS's project entry\n"
},
{
"from": "human",
"value": "[\n\t{\n\t\ttitle: \".atom\"\n\t\tpaths: [\n\t\t\t\"~/.atom\"\n\t\t]\n\t\tdevMode: true\n\t}\n\t{\n\t\ttitle: \".files\"\n\t\tpaths: [\n\t\t\t\"~/.files\"\n\t\t]\n\t\tdevMode: true... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use View's native subscribeEvent method\n\nI will always read documentation\nI will always read documentation\nI will always read documentation\n"
},
{
"from": "human",
"value": "define [\n \"jquery\"\n \"chaplin\"\n \"views/base/view\"\n \"lib/utils\"\n \"temp... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix testing for different states\n"
},
{
"from": "human",
"value": "_ = require 'underscore'\nCollection = require 'exercise/collection'\nstep = require '../../api/steps/4571/GET'\n\ndescribe 'Exercise Collection', ->\n\n beforeEach ->\n @stepId = 4571\n @ste... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add 'Create Route' to menu\n"
},
{
"from": "human",
"value": "# See https://atom.io/docs/latest/hacking-atom-package-word-count#menus for more details\n'context-menu':\n '.tree-view .directory > .header': [\n {\n label: 'SysAngular',\n submenu: [\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix so tooltip property is actually displayed\n"
},
{
"from": "human",
"value": "React = require 'react'\nBS = require 'react-bootstrap'\n\nmodule.exports = React.createClass\n displayName: 'Icon'\n propTypes:\n type: React.PropTypes.string\n classN... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add some shortcuts to atom\n"
},
{
"from": "human",
"value": "'atom-text-editor':\n 'ctrl-y': 'editor:delete-line'\n"
},
{
"from": "gpt",
"value": "'atom-text-editor':\n 'ctrl-y': 'editor:delete-line'\n 'alt-j': 'find-and-replace:select-next'\n 'alt-... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use text note instead of alert\n"
},
{
"from": "human",
"value": "{View} = require 'atom-space-pen-views'\nSettingsPanel = require './settings-panel'\n\nmodule.exports =\nclass GeneralPanel extends View\n @content: ->\n @div =>\n @form class: 'general-panel... | coffeescript | chosen |
[
{
"from": "system",
"value": "Call the attach hooks after adding a view to a panel."
},
{
"from": "human",
"value": "{CompositeDisposable} = require 'event-kit'\n\nclass PanelElement extends HTMLElement\n createdCallback: ->\n @subscriptions = new CompositeDisposable\n\n getModel: -> @model... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add test case for multi bytes chars\n"
},
{
"from": "human",
"value": "expect = require('chai').expect\nparser = require '../dist/parser'\n\ndescribe 'TagDataParser', ->\n describe '#parse()', ->\n it 'returns a tag data object', ->\n expect(parser.parse('r... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add support for reading BUNDLE_PATH env var, for Meteor app bundles\n"
},
{
"from": "human",
"value": "fs = Npm.require 'fs'\npath = Npm.require 'path'\nsass = Npm.require 'node-sass'\n\nshare.MailerUtils =\n\n joinUrl: (base, path) ->\n # Remove any trailing sl... | coffeescript | chosen |
[
{
"from": "system",
"value": "Revert \"Add -H option to fix broken symbolic links error\"\n\nThis reverts commit 6b5b68deb6cebff22cbbcef16819ca8c71620bdd.\n"
},
{
"from": "human",
"value": "class FSFolder extends FSFile\n\n fetchContents:(callback)->\n\n # @emit \"fs.fetchContents.started\"\... | coffeescript | chosen |
[
{
"from": "system",
"value": "Improve error handling in FlexibilityOrder\n\nRestores the order to the last known good settings when an error is\nreturned by ETEngine. The user is most likely not able to correct the\nerror.\n"
},
{
"from": "human",
"value": "class @FlexibilityOrder\n constructor... | coffeescript | chosen |
[
{
"from": "system",
"value": "Increase font size in Atom\n"
},
{
"from": "human",
"value": "\"*\":\n \"atom-beautify\":\n css:\n indent_size: 2\n general:\n _analyticsUserId: \"8bfc3dc2-e55f-4b45-93b6-8b516d108dab\"\n html:\n indent_size: 2\n js:\n indent_size: 2... | coffeescript | chosen |
[
{
"from": "system",
"value": "Return true when aborting, since we are pretending that we loaded a route.\n\nSet the fragment, because earlier that was being set by a behaviour in checkUrl that wasn't intended\n"
},
{
"from": "human",
"value": "window.addBackboneHistoryCallbacksForDiscussionModal... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix the flash when logging in\n"
},
{
"from": "human",
"value": "Organization = require '../../models/organization'\ncrypto = require 'crypto'\nhexDigest = (string)->\n sha = crypto.createHash('sha256');\n sha.update('awesome')\n sha.digest('hex')\n\nroutes = (ap... | coffeescript | chosen |
[
{
"from": "system",
"value": "Set uglify option 'keep_fname' true\n"
},
{
"from": "human",
"value": "gulp = require 'gulp'\nbabel = require 'gulp-babel'\nuglify = require 'gulp-uglify'\n\ngulp.task 'build', (done)->\n gulp.src 'src/dfa.js'\n .pipe babel({presets:['env']})\n .pipe uglify()... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix problem with ddp connection from some urls\n"
},
{
"from": "human",
"value": "if Meteor.isServer\n\turl = Npm.require('url')\n\nRocketChat.settings.get 'Site_Url', (key, value) ->\n\tif value?.trim() isnt ''\n\t\t__meteor_runtime_config__.ROOT_URL = value\n\t\t_... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix a few adapter issues.\n"
},
{
"from": "human",
"value": "{Robot, Adapter, TextMessage, EnterMessage, LeaveMessage, Response} = require 'hubot'\n\nDotNetServer = require './dotnet'\n\n\nclass DotNet extends Adapter\n\n send: (envelope, strings...) ->\n @serve... | coffeescript | chosen |
[
{
"from": "system",
"value": "Reduce verbosity of programmer excuses\n"
},
{
"from": "human",
"value": "# Description:\n# Hubot will handle your bug reports now\n#\n# Dependencies:\n# \"scraper\": \"0.0.9\"\n#\n# Configuration:\n# None\n#\n# Commands:\n#\n# Author:\n# capoferro (shameles... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix dialogmanager only working in debug mode"
},
{
"from": "human",
"value": "mediator = require 'mediator'\n\nmodule.exports = class DialogManager\n constructor: ->\n @source = document.getElementById 'dialog-template'\n @template = Handlebars.compile(@sourc... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add comments on missing definitions.\n"
},
{
"from": "human",
"value": "\n# dom.d.ts: https://github.com/Microsoft/TypeScript/blob/master/src/lib/dom.generated.d.ts\n\n# this fix is needed because these definitions are absent from typescript's official lib.d.ts and ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Make replace keymap work in all contexts\n"
},
{
"from": "human",
"value": "'body':\n 'meta-F': 'project-find:show'\n 'meta-f': 'find-and-replace:show'\n\n'.editor':\n 'alt-meta-f': 'find-and-replace:show-replace'\n\n 'meta-g': 'find-and-replace:find-next'\n 'm... | coffeescript | chosen |
[
{
"from": "system",
"value": "Switch source urls on again\n\nFixed with:\nhttps://github.com/despairblue/brunch-with-chaplin/commit/a8bf36c7ac6736324b6821351f9d1a562c0f3c33\nand\nhttps://github.com/despairblue/handlebars-brunch/commit/5220e5e6a95fe1a9c6e3bd4d6a3d7dfad9cd4c3f\n"
},
{
"from": "human",... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add some temporary logging to debug intermittent spec failure."
},
{
"from": "human",
"value": "Keymap = require 'keymap'\n$ = require 'jquery'\n_ = require 'underscore'\nrequire 'underscore-extensions'\n\nmodule.exports =\nclass App\n keymap: null\n windows: null... | coffeescript | chosen |
[
{
"from": "system",
"value": "Allow PanelElements to be instantiated with markup\n"
},
{
"from": "human",
"value": "{CompositeDisposable} = require 'event-kit'\n{callAttachHooks} = require './space-pen-extensions'\n\nclass PanelElement extends HTMLElement\n createdCallback: ->\n @subscriptio... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix error when calling application executor from packaged app\n"
},
{
"from": "human",
"value": "Reflux = require 'reflux'\nActions = require '../actions/database'\nCommon = require '../common/application'\nExecutor = new (require('remote').require('../browser/appli... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use shorthand array creation for levels\n"
},
{
"from": "human",
"value": "mainModule = angular.module 'meducationFrontEnd'\n\nsyllabusItemsControllerFunction = ($scope, syllabusItemsService) ->\n\n levels = [0 ,1, 2, 3, 4]\n\n $scope.init = ->\n $scope.items =... | coffeescript | chosen |
[
{
"from": "system",
"value": "Include stack for uncaught exceptions\n"
},
{
"from": "human",
"value": "{userAgent, taskPath} = process.env\nhandler = null\n\nsetupGlobals = ->\n global.attachEvent = ->\n console =\n warn: -> emit 'task:warn', arguments...\n log: -> emit 'task:log', argum... | coffeescript | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.