conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Fix propType to be correct \"oneOfType\"\n"
},
{
"from": "human",
"value": "React = require 'react'\nBS = require 'react-bootstrap'\nclassnames = require 'classnames'\n_ = require 'underscore'\n\nmodule.exports = React.createClass\n displayName: 'Icon'\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Set status to 1 when queuing\n"
},
{
"from": "human",
"value": "@lobbyQueue = new Meteor.Collection \"lobbyQueue\"\n\nMeteor.startup ->\n lobbyQueue.remove({})\n\n@cancelFindServer = (lobbyId)->\n console.log \"canceling server search: \"+lobbyId\n lobbyQueue.rem... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add test for getCurrentPath bug\n"
},
{
"from": "human",
"value": "ProjectManager = require '../lib/project-manager'\n{WorkspaceView} = require 'atom'\nfs = require 'fs'\n\ndescribe \"ProjectManager\", ->\n activationPromise: null\n\n describe \"Toggle Project Man... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix bug in new script\n"
},
{
"from": "human",
"value": "msgpack = require 'msgpack'\nr = require('redis').createClient detect_buffers: true\n\nr.keys '*', (err, all_keys) ->\n throw err if err\n keys = []\n for key in all_keys\n parts = key.split ':'\n con... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add integration test for new customer.\n"
},
{
"from": "human",
"value": "Config = require '../config'\nCustomerXmlImport = require '../lib/customerxmlimport'\n\n# Increase timeout\njasmine.getEnv().defaultTimeoutInterval = 10000\n\ndescribe 'process', ->\n beforeE... | coffeescript | chosen |
[
{
"from": "system",
"value": "Revert to non TOC markdown\n"
},
{
"from": "human",
"value": "counterpart = require 'counterpart'\nReact = require 'react'\n{Markdown} = (require 'markdownz').default\n\ncounterpart.registerTranslations 'en',\n glossary:\n content: '''\n ## Glossary\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Update title to be \"Class Dashboard\"\n"
},
{
"from": "human",
"value": "React = require 'react'\nBS = require 'react-bootstrap'\nRouter = require 'react-router'\n\n{CCDashboardStore, CCDashboardActions} = require '../../flux/cc-dashboard'\nLoadableItem = require '... | coffeescript | chosen |
[
{
"from": "system",
"value": "Move turbolinks up to make client_side_validations working after ajax request\n"
},
{
"from": "human",
"value": "#= require vendor/modernizr\n#= require jquery\n#= require jquery_ujs\n#= require foundation/foundation\n#= require foundation\n#= require rails.validati... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add `Change Top Folder` context menu action\n"
},
{
"from": "human",
"value": "class IDE.FinderContextMenuController extends NFinderContextMenuController\n\n getFolderMenu: (fileView) ->\n\n fileData = fileView.getData()\n\n items =\n Expand ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Make modals not hide when clicking on greyed out background\n"
},
{
"from": "human",
"value": "$ ->\n $(\".topbar-wrapper\").dropdown()\n$ ->\n $(\".alert-message\").alert()\n"
},
{
"from": "gpt",
"value": "$ ->\n $(\".topbar-wrapper\").dropdown()\n$ ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Send OAuth token as web socket query param"
},
{
"from": "human",
"value": "_ = require 'underscore'\nguid = require 'guid'\n\nmodule.exports =\nclass WsChannel\n _.extend @prototype, require('event-emitter')\n\n constructor: (@name) ->\n @clientId = guid.creat... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add a submitted/unsubmitted thing to editing links.\n"
},
{
"from": "human",
"value": "'use strict'\n\napp.directive 'volumeEditLinksForm', [\n 'pageService',\n (page) ->\n restrict: 'E',\n templateUrl: 'volume/editLinks.html',\n link: ($scope) ->\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Hide practice button if practice handler isn't provided\n\nEven though the PracticeButton doesn't use the onPractice callback, it's\na good way to determine if practicing sections is allowed. The prop is\nonly given for the Student component, not Teacher or TeacherStudent.\n"
... | coffeescript | chosen |
[
{
"from": "system",
"value": "Check the keychain for the token before falling back to ATOM_ACCESS_TOKEN.\n\nOtherwise auth failures get confusing: we’d keep updating the token\nstored in the keychain when the real problem was that ATOM_ACCESS_TOKEN\nwas out of date. See #505.\n"
},
{
"from": "human"... | coffeescript | chosen |
[
{
"from": "system",
"value": "Change site tile to Sherpa\n"
},
{
"from": "human",
"value": "\"use strict\"\n\nmodule.exports =\n title: 'Hytteadmin'\n version: '2.0.0-alpha'\n desc: 'Administrasjon av hytter i Nasjonal Turbase'\n author: 'Hans Kristian Flaatten, Den Norske Turistforening'\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add default content when created to avoid extra DOM manipulation when attached\n"
},
{
"from": "human",
"value": "{cloneFragment} = Trix\n\nTrix.registerElement \"trix-toolbar\",\n defaultCSS: \"\"\"\n %t {\n white-space: collapse;\n }\n\n %t .dialog ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add context menu items for staging and unstaging in changed files list\n"
},
{
"from": "human",
"value": "'menu': [\n {\n 'label': 'View'\n 'submenu': [\n {\n 'label': 'Toggle Git Panel'\n 'command': 'github:toggle-git-panel'\n }\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix condition clause of Tracker.track function\n"
},
{
"from": "human",
"value": "_ = require 'lodash'\nkd = require 'kd'\nremote = require('app/remote').getInstance()\nglobals = require 'globals'\n\ndefaults = require './tracking/defaults'\n\nmodule.exp... | coffeescript | chosen |
[
{
"from": "system",
"value": "Enable linting on the fly\n\nNote that this represents a slight loss of functionality. With the\nupdate to the new API the file was explicitly specified, which according\nto the documentation enables checking for \"fatal errors (like undefined\nfunctions)\".\n\nSince we are lin... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add documentation for the if"
},
{
"from": "human",
"value": "# Graph-stuff-code\n# Generalised way to send an ajax request to load a chart when a\n# link is clicked with data-load=\"graph\"\n\n$('body.coders.show, body.repositories.show').ready ->\n $('a[data-lo... | coffeescript | chosen |
[
{
"from": "system",
"value": "Create alleys in hall creation\n"
},
{
"from": "human",
"value": "$ ->\n # $('#rows').on \"change\", ->\n # $rows = $(this).val()\n # console.log $rows\n\n # $('#columns').on \"change\", ->\n # $columns = $(this).val()\n # console.log $columns\n\n $('... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use PolarMap on sensor page\n"
},
{
"from": "human",
"value": "class Workbench.Views.SensorMapView extends Backbone.Marionette.ItemView\n template: false\n\n initialize: ->\n @zoom = 13\n\n onDestroy: ->\n @map.remove() if @map\n\n onShow: ->\n if @el.i... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use reset for better performance\n"
},
{
"from": "human",
"value": "class window.SearchCollection extends Backbone.Collection\n constructor: (args...)->\n super(args...)\n @searchFor ''\n\n emptyState: -> []\n\n searchFor: (query) ->\n query = $.trim(que... | coffeescript | chosen |
[
{
"from": "system",
"value": "Call get instead of getDeserializer\n"
},
{
"from": "human",
"value": "{Document} = require 'telepath'\n\n# Public: Manages the deserializers used for serialized state\nmodule.exports =\nclass DeserializerManager\n constructor: ->\n @deserializers = {}\n @def... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add javascript to show section if an option with a matching value is selected\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": "10139: Fix bug with read-only view of questioning form\n"
},
{
"from": "human",
"value": "# Newer view to manage Question form.\nclass ELMO.Views.QuestionFormView extends ELMO.Views.FormView\n initialize: (options) ->\n @toggleFields()\n\n # We use $= because t... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix \"Git Plus: Add (all)\" without open editor\n\nIn the context, it would give a type error because\n`atom.workspace.getActiveEditor()` was `undefined`.\n"
},
{
"from": "human",
"value": "{BufferedProcess} = require 'atom'\nStatusView = require './status-view'\n\n... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add the to arg doc\n"
},
{
"from": "human",
"value": "path = require 'path'\nfs = require 'fs-plus'\noptimist = require 'optimist'\nHighlights = require './highlights'\n\nmodule.exports = ->\n cli = optimist.describe('help', 'Show this message').alias('h', 'help')\... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add route for knowing the IP where the bot is host\n"
},
{
"from": "human",
"value": "# Description:\n# A simple interaction with the built in HTTP Daemon\n#\n# Dependencies:\n# None\n#\n# Configuration:\n# None\n#\n# Commands:\n# None\n#\n# URLS:\n# /hubo... | coffeescript | chosen |
[
{
"from": "system",
"value": "Allow CompositeDisposable to be constructed with multiple disposables"
},
{
"from": "human",
"value": "# Public: An object that aggregates multiple {Disposable} instances together\n# into a single disposable, so they can all be disposed as a group.\nmodule.exports =... | coffeescript | chosen |
[
{
"from": "system",
"value": ":art: Compress block, and add TODO comment\n"
},
{
"from": "human",
"value": "Opener = require '../opener'\n\nmodule.exports =\nclass AtomPdfOpener extends Opener\n open: (filePath, texPath, lineNumber, callback) ->\n # Opens PDF in a new pane -- requires pdf-vi... | coffeescript | chosen |
[
{
"from": "system",
"value": ":fire: Remove all the subs from MessageRegistry\n"
},
{
"from": "human",
"value": "Helpers = require('./helpers')\n{CompositeDisposable, Emitter} = require 'atom'\n\nclass MessageRegistry\n constructor: (@linter)->\n @messages = new Map()\n @emitter = new Emi... | coffeescript | chosen |
[
{
"from": "system",
"value": "Create new model method insertOrUpsert based on _id\n"
},
{
"from": "human",
"value": "RocketChat.models._Base = class\n\t_baseName: ->\n\t\treturn 'rocketchat_'\n\n\t_initModel: (name) ->\n\t\tcheck name, String\n\n\t\t@model = new Mongo.Collection @_baseName() + n... | coffeescript | chosen |
[
{
"from": "system",
"value": "Remove requires to prep for consolidation into work-app\n"
},
{
"from": "human",
"value": "require 'appirio-tech-ng-ui-components'\nrequire 'appirio-tech-ng-api-services'\nrequire './scripts/ap-file-upload.module'\n\nrequire './scripts/file.controller'\nrequire './s... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add fittext to asset pipeline\n"
},
{
"from": "human",
"value": "#= require \"vendor/jquery-1.7.1.min\""
},
{
"from": "gpt",
"value": "#= require \"vendor/jquery-1.7.1.min\"\n\n#= require \"vendor/plugins/jquery.fittext.js\""
}
] | coffeescript | chosen |
[
{
"from": "system",
"value": "Allow loading iframe tools from labs.intermine.\n"
},
{
"from": "human",
"value": "deps = ['angular', './routes', 'angular-route', 'angular-ui', 'angular-ui-select2',\n './filters', './services', './directives', './controllers']\n\nmodules = [\n 'ngRoute',\n... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add formatNumber using current chapter number\n\n[Delivers #50579297]\n"
},
{
"from": "human",
"value": "wait = ->\n $.getJSON(window.location.pathname + '/wait', ->\n $.get window.location.pathname + '.js', (html)->\n $('#book').html html\n initMathJa... | coffeescript | chosen |
[
{
"from": "system",
"value": "Increase default font size a bit\n"
},
{
"from": "human",
"value": "\"*\":\n \"exception-reporting\":\n userId: \"30e6f2d0-42d3-ab77-4984-dde4c431f019\"\n welcome:\n showOnStartup: false\n core:\n projectHome: \"/Users/randy/src\"\n audioBeep: false\n... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix metadata assert for failing test case\n"
},
{
"from": "human",
"value": "assert = require 'assert'\nrequest = require 'supertest'\n\nresolve = require('path').resolve\n\nreq = request require '../../src/server'\nbase = ''\n\ndescribe '/', ->\n it 'should not r... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix reading time for flash messages.\n"
},
{
"from": "human",
"value": "Wheelmap.FlashMessageView = Ember.View.extend\n template: Ember.Handlebars.compile('{{ view.content.message }}')\n classNameBindings: [':flash', 'content.type', ':fade', 'fadeIn:in']\n fadeIn... | coffeescript | chosen |
[
{
"from": "system",
"value": "Update FlexibilityOrder to use new ETEngine API\n"
},
{
"from": "human",
"value": "class @FlexibilityOrder\n constructor: (@element) ->\n @lastGood = null\n\n url: (path) ->\n \"#{ App.scenario.url_path() }/flexibility_order/#{ path }\"\n\n update: (sortabl... | coffeescript | chosen |
[
{
"from": "system",
"value": "Remove PromiseRenderer from subject default button\n"
},
{
"from": "human",
"value": "React = require 'react'\ntalkClient = require 'panoptes-client/lib/talk-client'\nPromiseRenderer = require '../../components/promise-renderer'\nSingleSubmitButton = require '../../... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add open and close states by mouse over and leave\n"
},
{
"from": "human",
"value": "'use strict'\n\nclass Pocket\n constructor: ->\n element = document.createElement 'div'\n element.classList.add 'pocket'\n element.innerText = 'Pocket'\n document.body.... | coffeescript | chosen |
[
{
"from": "system",
"value": ":new: Implement expect, write and end\n"
},
{
"from": "human",
"value": "# @Compiler-Output \"../Dist/ExceptedWrite.js\"\n\nEventEmitter = require('events').EventEmitter\nPromise = require('a-promise')\nBuffer = require('buffer').Buffer\n\nclass ExpectedWrite extend... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix class name problem with divs\n"
},
{
"from": "human",
"value": "Spine = require('spine')\n\nclass Dashboard extends Spine.Controller\n constructor: ->\n super\n @render()\n\n tools: []\n\n channels: []\n\n count: 0\n\n render: =>\n @html require('v... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use cmd-p to toggle command-palette\n"
},
{
"from": "human",
"value": "# Your keymap\n#\n# Atom keymaps work similarly to stylesheets. Just as stylesheets use selectors\n# to apply styles to elements, Atom keymaps use selectors to associate\n# keystrokes with events... | coffeescript | chosen |
[
{
"from": "system",
"value": "Comment out, still not working\n"
},
{
"from": "human",
"value": "if Meteor.isClient\n if Package.ui\n Handlebars = Package.ui.Handlebars\n\n Handlebars.registerHelper 't9n', (x, prefix='') ->\n T9n.get(x, prefix)\n\nclass T9n\n\n @get: (x, prefix='') ->\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Remove need for buffer in `ensureSingleTrailingNewline`"
},
{
"from": "human",
"value": "{Subscriber} = require 'emissary'\n\nmodule.exports =\nclass Whitespace\n Subscriber.includeInto(this)\n\n constructor: ->\n atom.workspace.eachEditor (editor) =>\n @h... | coffeescript | chosen |
[
{
"from": "system",
"value": "Update node-webkit version to 0.9.2\n"
},
{
"from": "human",
"value": "module.exports = (grunt) ->\n grunt.initConfig\n nodewebkit:\n options:\n build_dir: './builds'\n version: '0.8.4'\n mac_icns: './src/assets/icon.icns'\n mac:... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add selected to checkbox labels\n"
},
{
"from": "human",
"value": "root = exports ? this\n\nShowHideCheckboxesModule =\n\n expandOnLoad: ->\n $('input.show-hide-checkbox:checkbox').each ->\n if $(this).is(':checked')\n $('#' + $(this).data('section')... | coffeescript | chosen |
[
{
"from": "system",
"value": "Revert \"Added template helpers for capitalized translation\"\n\nThis reverts commit 7837b49e1fc34efa2071cbd331cedc58b1bbfa32.\n"
},
{
"from": "human",
"value": "class TourStepBox extends Backbone.Marionette.ItemView\n className: 'white-well tour-block'\n\n events... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix ManagedAttachment method forwarding and set file property\n"
},
{
"from": "human",
"value": "#= require trix/models/attachment\n\nclass Trix.ManagedAttachment\n # Forward all Attachment methods\n for own name, value of Trix.Attachment.prototype when name isnt ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Set true to options.droppable for IDETabHandleView\n"
},
{
"from": "human",
"value": "kd = require 'kd'\nKDTabHandleView = kd.TabHandleView\n\n\nmodule.exports = class IDETabHandleView extends KDTabHandleView\n\n constructor: (options = {}, data) ->\n\... | coffeescript | chosen |
[
{
"from": "system",
"value": "Make \"spec\" reporter the default for mocha\n\nIt was in the Gruntfile this way, just in the wrong section -- I'm just\nputting it where it belongs (Per Simon M).\n"
},
{
"from": "human",
"value": "module.exports = (grunt) ->\n # Configuration\n grunt.initConfig\... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add flag for having special behavior when filtering nodes only once."
},
{
"from": "human",
"value": "Wheelmap.ToolbarController = Ember.Controller.extend\n statusFilters: ['yes', 'limited', 'no', 'unknown']\n\n actions:\n toggleFilter: (wheelchair)->\n st... | coffeescript | chosen |
[
{
"from": "system",
"value": "Clear promoCode when form submitted\n"
},
{
"from": "human",
"value": "Sprangular.directive 'promoForm', ->\n restrict: 'E'\n templateUrl: 'promos/form.html'\n scope:\n order: '='\n controller: ($scope, Cart, Checkout, Angularytics) ->\n $scope.showPromoEn... | coffeescript | chosen |
[
{
"from": "system",
"value": "FIX: Remove auth token from task alignment csv upload\n"
},
{
"from": "human",
"value": "angular.module(\"doubtfire.api.models.task-alignment\", [])\n\n.factory(\"TaskAlignment\", (resourcePlus, DoubtfireConstants, currentUser, $window) ->\n TaskAlignment = {}\n T... | coffeescript | chosen |
[
{
"from": "system",
"value": ":green_heart: Fix tests broken with last changes in Atom\n"
},
{
"from": "human",
"value": "Minimap = require '../lib/minimap'\n{WorkspaceView} = require 'atom'\n\ndescribe \"Minimap\", ->\n beforeEach ->\n\n runs ->\n atom.workspaceView = new WorkspaceView... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix to isFunction require statement\n"
},
{
"from": "human",
"value": "\nisFunction = require 'is-function'\nisObjectOrArray = require 'is-object'\nisArray = require 'is-array'\n\n###\nwhen passed an object, returns an array of its keys.\nwhen passed an ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix issue calling Base.prototype.emit without any payload (data).\n"
},
{
"from": "human",
"value": "class Base\n\n emitter: null\n\n configure: (@emitter) ->\n\n getEmitter: -> @emitter\n\n emit: (event, data) ->\n return unless @emitter\n data.event = ev... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add description for config setting\n"
},
{
"from": "human",
"value": "GitDiffView = require './git-diff-view'\nDiffListView = null\n\ndiffListView = null\ntoggleDiffList = ->\n DiffListView ?= require './diff-list-view'\n diffListView ?= new DiffListView()\n diff... | coffeescript | chosen |
[
{
"from": "system",
"value": "Call .dispose() on deactivate instead of .off()"
},
{
"from": "human",
"value": "SpellCheckView = null\n\nmodule.exports =\n config:\n grammars:\n type: 'array'\n default: [\n 'source.gfm'\n 'text.git-commit'\n 'text.plain'\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Update tooltip after loadFromOrigin finished\n"
},
{
"from": "human",
"value": "class AppLinkView extends LinkView\n\n constructor:(options = {}, data)->\n options.tooltip =\n title : data.body\n placement : \"above\"\n delayIn : 120\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add some warning notes about ajaxBeforeSend\n"
},
{
"from": "human",
"value": "# jQuery already provides a handful of global AJAX events. However,\n# there is no global version of `beforeSend`, so `ajaxBeforeSend` is\n# added to complement it.\n#\n# Reference: http:... | coffeescript | chosen |
[
{
"from": "system",
"value": "NavigationMachineItem: Replace inline pistachio string with a KDCustomHTMLView.\n"
},
{
"from": "human",
"value": "class NavigationMachineItem extends JView\n\n {Running, Stopped} = Machine.State\n\n stateClasses = ''\n stateClasses += \"#{state.toLowerCase()} \... | coffeescript | chosen |
[
{
"from": "system",
"value": "Kill the unnecessary explicit call to initialize since new already does that for us.\n"
},
{
"from": "human",
"value": "\nclass window.Cartilage.Application\n\n @Collections: {}\n @Models: {}\n @Routers: {}\n @Views: {}\n\n @sharedInstance: null\n\n @launch: -... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add environment variable for BASE_URL.\n"
},
{
"from": "human",
"value": "# Map of environment vars to config properties\nEnvVars =\n NODE_ENV: 'appMode'\n PORT: 'port'\n LOG_LEVEL: 'logLevel'\n STORAGE_TYPE: 'storageType'\n POSTGRES_URL: 'postgr... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use fs.extension instead of regex\n"
},
{
"from": "human",
"value": "fs = require 'fs'\nTheme = require 'theme'\n\nmodule.exports =\nclass AtomTheme extends Theme\n\n loadStylesheet: (stylesheetPath)->\n @stylesheets[stylesheetPath] = fs.read(stylesheetPath)\n\n... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix pass msg in nm"
},
{
"from": "human",
"value": "\nlifecycle = require './hdp/lifecycle'\nmodule.exports = []\n\nmodule.exports.push 'histi/actions/hdp_yarn'\n\nmodule.exports.push (ctx) ->\n require('./hdp_yarn').configure ctx\n\nmodule.exports.push (ctx, next)... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add base query to send to BaseX REST server\n\nThe query needs to be properly formatted to xquery, but currently\nserves as an example that can be built onto.\n"
},
{
"from": "human",
"value": "express = require 'express'\nrouter = express.Router()\n\n# Search\nrout... | coffeescript | chosen |
[
{
"from": "system",
"value": "Update help text subject mentioning syntax options\n"
},
{
"from": "human",
"value": "React = require 'react'\n\nmodule?.exports = React.createClass\n displayName: 'TalkCommentHelp'\n\n render: ->\n <div className=\"talk-comment-help\">\n <h1>Guide to comm... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix error on closed socket\n"
},
{
"from": "human",
"value": "net = require 'net'\n\nserver = (comp) ->\n net.createServer (socket) ->\n sendEvent = (event) ->\n socket.write JSON.stringify(event) + \"\\n\"\n\n stopListening = comp.events.onValue sendEve... | coffeescript | chosen |
[
{
"from": "system",
"value": "Watch by default, add \"gulp nowatch\" variant\n"
},
{
"from": "human",
"value": "gulp = require 'gulp'\r\n\r\n# Browserify\r\nbrowserify = require 'browserify'\r\nsource = require 'vinyl-source-stream'\r\n\r\ngulp.task 'build', ->\r\n browserify('./OperationalTran... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use single quotes to conform with style guide\n"
},
{
"from": "human",
"value": "describe \"Meducation Front-end Application Module\", () ->\n it \"should be available as a module\", () ->\n frontEndApplicationModule = angular.module \"meducationFrontEnd\"\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add PoC register API method\n"
},
{
"from": "human",
"value": "module.exports =\n activate: ->\n return\n\n # deactivate: ->\n\n provideBuildService: ->\n register: (name, details) ->\n console.log(name)\n"
},
{
"from": "gpt",
"value": "mod... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add null grammar to defaults\n"
},
{
"from": "human",
"value": "SpellCheckView = null\n\nmodule.exports =\n configDefaults:\n grammars: [\n 'source.gfm'\n 'text.git-commit'\n 'text.plain'\n ]\n\n activate: ->\n @editorSubscription = atom.wo... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix typo in local var names for setting the iframe source"
},
{
"from": "human",
"value": "Mercury.PageEditor::setFrameSource = (url)->\n newPath = \"#{path}?_=#{new Date().getTime()}\"\n @iframe.get(0).contentWindow.document.location.href = newPath\n\nclass CMSim... | coffeescript | chosen |
[
{
"from": "system",
"value": "Test for visualisation edit box save-on-close\n"
},
{
"from": "human",
"value": "assert = chai.assert\n\ncreateAndShowVisualisationViewForOptions = (options) ->\n view = new Backbone.Views.ReportEditVisualisationView(options)\n view.render()\n $('#test-container'... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add Windows & Linux key bindings\n"
},
{
"from": "human",
"value": "# Keybindings require three things to be fully defined: A selector that is\n# matched against the focused element, the keystroke and the command to\n# execute.\n#\n# Below is a basic keybinding whic... | coffeescript | chosen |
[
{
"from": "system",
"value": ":art: Disable deactivated packages\nUsing the code @AsaAyers suggested\n"
},
{
"from": "human",
"value": "module.exports =\n instance: null\n config:\n lintOnFly:\n title: 'Lint on fly'\n description: 'Lint files while typing, without the need to save... | coffeescript | chosen |
[
{
"from": "system",
"value": "Change regex that determines whether a link is to an image\n"
},
{
"from": "human",
"value": "module.exports = class Util\n\n # Return true if uri string is a URI to an image\n @isImageUri: (uri) ->\n uri.match(/^https?\\:\\/\\/.*\\.(jpeg|jpg|gif|png)$/i)?\n\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add test for modifying the global API after subclassing.\n"
},
{
"from": "human",
"value": "require './setup'\n\ndb = null\n\ndescribe 'api', ->\n afterEach ->\n Ento.object.api(undefined)\n\n describe 'mock', ->\n beforeEach ->\n db = { foo: 200 }\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Make client/facts/new support asynchronous user loading\n"
},
{
"from": "human",
"value": "class window.ClientController\n constructor: (@annotatedSiteEnvoy) ->\n showFact: (fact_id) ->\n @_renderDiscussion new Fact id: fact_id\n\n showNewFact: (params={}) =>\... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix display line breaks test\n"
},
{
"from": "human",
"value": "moduleFor 'helper:displayLineBreaks', 'Unit: Display line breaks',\n setup: -> setupApp()\n teardown: -> ETahi.reset()\n\ntest \"#displayLineBreaks\", ->\n fn = Em.Handlebars.helpers.displayLineBreak... | coffeescript | chosen |
[
{
"from": "system",
"value": "Build coffee files in source subdirs\n"
},
{
"from": "human",
"value": "module.exports = (grunt) ->\n grunt.initConfig\n pkg: grunt.file.readJSON('package.json')\n\n coffee:\n glob_to_multiple:\n expand: true\n cwd: 'src'\n src: ['*.... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add a common refresh function\n\nSigned-off-by: Steven Hoffman <f5bcacb8ce1651b7d1e56f2693431f20e085fdeb@valenciamgmt.com>\n"
},
{
"from": "human",
"value": "class Fustrate.GenericPage\n constructor: (@root) ->\n @_reloadUIElements()\n @addEventListeners()\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Remove rodapé da distribuição por unidade orçamentária\n"
},
{
"from": "human",
"value": "angular.module('InescApp').directive 'uoGraph', ['$filter', ($filter) ->\n columns = [\n { sTitle: 'Entidade Orçamentária', bSortable: false }\n { sTitle: 'Orçamento Aut... | coffeescript | chosen |
[
{
"from": "system",
"value": "Make the \"x\" button work by going back.\n"
},
{
"from": "human",
"value": "'use strict'\n\napp.controller 'asset/view', [\n '$scope', 'displayService', 'asset',\n ($scope, display, asset) ->\n $scope.asset = asset\n display.title = asset.displayName\n $... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add deprected warnings to old options\n"
},
{
"from": "human",
"value": "mozilla = require('source-map')\n\nmodule.exports = (old) ->\n opts = { }\n map = { }\n\n for name, value of old\n\n if name == 'map'\n if value == 'inline'\n map.inline = tr... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add comments to clientside code\n"
},
{
"from": "human",
"value": "class Water.TreeView extends Backbone.View\n initialize: () ->\n @model.on(\"change:data\", @render_tree)\n @model.on(\"start_fetch\", @render_loading)\n \n render_tree: () =>\n $(\"#in... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use more generic core.excludeVcsIgnoredPaths config key\n"
},
{
"from": "human",
"value": "_ = require 'underscore'\nBufferedProcess = require 'buffered-process'\n\nmodule.exports =\nclass LoadPathsTask\n constructor: (@callback) ->\n\n start: ->\n rootPath = p... | coffeescript | chosen |
[
{
"from": "system",
"value": "Read mongodb connection from config.\n"
},
{
"from": "human",
"value": "\nexpress = require 'express'\nstylus = require 'stylus'\nassets = require 'connect-assets'\nmongoose = require 'mongoose'\n\n#### Basic application initialization\n# Create app instance.\napp =... | coffeescript | chosen |
[
{
"from": "system",
"value": "Remove focus when calling 'show' twice\n"
},
{
"from": "human",
"value": "FactlinkApp.module \"Overlay\", (Overlay, FactlinkApp, Backbone, Marionette, $, _) ->\n $overlay_elements = $('<div class=\"overlay\"></div><div class=\"overlay-transparent\"></div>')\n .a... | coffeescript | chosen |
[
{
"from": "system",
"value": "Make conditions easier to read\n\nCombining both the inline and \"traditional\" `if` styles made the code\ndifficult to read, particularly when compiled to JavaScript.\n"
},
{
"from": "human",
"value": "App.BudgetEditAssociations =\n\n set_text: (response)->\n $... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add missing id to paper test data.\n\nThe associated tests were throwing an error when the paper id\nwas undefined.\n"
},
{
"from": "human",
"value": "moduleFor 'view:paperEdit', 'Unit: paperEditView',\n teardown: ->\n ETahi.VisualEditorService.create.restore()\... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add commentary to token-generator, and move token-alpha to top level\n"
},
{
"from": "human",
"value": "crypto = require 'crypto'\n\nmodule.exports = ProjectTokenGenerator =\n\n\treadOnlyToken: () ->\n\t\tlength = 12\n\t\ttokenAlpha = 'bcdfghjkmnpqrstvwxyz'\n\t\tres... | coffeescript | chosen |
[
{
"from": "system",
"value": "Exclude VCS ignored paths in Atom\n"
},
{
"from": "human",
"value": "\"*\":\n \"exception-reporting\":\n userId: \"1f6d8ded-d27b-39e5-b84e-95714f424379\"\n welcome:\n showOnStartup: false\n core:\n projectHome: \"/Users/Richard/Dropbox/Projects\"\n th... | coffeescript | chosen |
[
{
"from": "system",
"value": "Disable some Atom packages by default"
},
{
"from": "human",
"value": "\"*\":\n core:\n disabledPackages: [\n \"background-tips\"\n \"exception-reporting\"\n \"metrics\"\n \"welcome\"\n ]\n editor:\n invisibles: {}\n showIndentGuide... | coffeescript | chosen |
[
{
"from": "system",
"value": "Disable loading after no more results\n"
},
{
"from": "human",
"value": "Backbone = require 'backbone'\nmediator = require '../../../lib/mediator.coffee'\ntemplate = -> require('../templates/partials/_channel_groups.jade') arguments...\n\nclass ProfileView extends B... | coffeescript | chosen |
[
{
"from": "system",
"value": "Allow touch devices to dismiss flash bar\n"
},
{
"from": "human",
"value": "$(document)\n .on(\"click\", \".flash-bar-show\", ->\n $(this).removeClass(\"flash-bar-show\")\n )\n"
},
{
"from": "gpt",
"value": "$(document)\n .on(\"click touchstart\", ... | coffeescript | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.