conversations listlengths 2 3 | source stringclasses 1 value | stack stringclasses 1 value |
|---|---|---|
[
{
"from": "system",
"value": "Load jQuery from global namespace first.\n\nThis fixes the cases wherein you may be using an AMD system, but load jQuery outside AMD."
},
{
"from": "human",
"value": "###\n jquery.turbolinks.js ~ v1.0.0-rc1 ~ https://github.com/kossnocorp/jquery.turbolinks\n\n jQu... | coffeescript | chosen |
[
{
"from": "system",
"value": "Decrease threads number in order to show threads working\n\nConflicts:\n\ttext-fade-in-demo.js.coffee\n"
},
{
"from": "human",
"value": "$(document).ready ->\n\n assert = (condition) -> throw 'Assertion failed' unless condition\n\n contents = \"\"\"\n\n #########... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add rudimentary error handling for tree ftecher\n"
},
{
"from": "human",
"value": "class Water.TreeFetcher extends Backbone.Model\n fetch: (node_type, path) =>\n @trigger \"start_fetch\"\n url = [@attributes.repository_path, node_type, @attributes.ref , path]... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix for depreciated class warning"
},
{
"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 which... | coffeescript | chosen |
[
{
"from": "system",
"value": "Make sure the jQuery event handler is called."
},
{
"from": "human",
"value": "window.App ||= {}\nclass App.Base\n\n constructor: ->\n if (window.jQuery) then @setClearEventHandlers() # clearing application event handlers only possible with jQuery\n return th... | coffeescript | chosen |
[
{
"from": "system",
"value": "Update analytics.log.event indexes to match prod\n\nThese were applied as single indexes directly in production.\n"
},
{
"from": "human",
"value": "mongoose = require 'mongoose'\nplugins = require '../plugins/plugins'\n\nAnalyticsLogEventSchema = new mongoose.Schema... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add tests for templateJSON property.\n"
},
{
"from": "human",
"value": "#= require test_helper\n\ntestPhases = undefined\ntestTemplate = undefined\n\nmodule 'Unit: ManuscriptManagerTemplate',\n setup: ->\n phase = name: 'First Phase', task_types: ['ATask', 'Anot... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use terrain map type on JS map module\n"
},
{
"from": "human",
"value": "Neighborly.Map = (mapCanvasSelector) ->\n window.mapCanvasSelector = mapCanvasSelector\n\n $.getScript('https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false&callback=Neighborly.MapIni... | coffeescript | chosen |
[
{
"from": "system",
"value": "Revert \"Don't send search query when query field is empty\"\n\nThis reverts commit 6173b9b468889a31d84460eb95eac5ec9ec767bc.\n\nNecessary because else when someone erases his search query in the input\nfield, the index page does not show again all the gems.\n"
},
{
"fr... | coffeescript | chosen |
[
{
"from": "system",
"value": "Put toggle button on new line\n\nThe moving toggle button is too annoying, let's put it under the updating text.\n"
},
{
"from": "human",
"value": "'use strict'\n\n{toggleGem} = require './actions'\nstore = require './store'\n\nGem = React.createClass\n mixins: [Re... | coffeescript | chosen |
[
{
"from": "system",
"value": "Extend a chart to contain several distinct datasets.\n"
},
{
"from": "human",
"value": "mongoose = require 'mongoose'\nSchema = mongoose.Schema\nObjectId = Schema.ObjectId\n\nmongoose.model \"User\", new Schema\n user:\n type: String\n required: true\n uni... | coffeescript | chosen |
[
{
"from": "system",
"value": "Watch for JSON files when linting\n"
},
{
"from": "human",
"value": "path = require('path')\ngulp = require('gulp')\nmocha = require('gulp-mocha')\ncoffeelint = require('gulp-coffeelint')\nmochaNotifierReporter = require('mocha-notifier-reporter')\n\nOPTIONS =\n\tco... | coffeescript | chosen |
[
{
"from": "system",
"value": "Resolve issue with incorrect url for remote CSS when using addCssUrl, and bundle option is false. This results from the file.url property being a boolean value instead of a string, and the result is the link tag is output as <link href='true' /> rather than with the correct ur... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use meta-P to toggle command palette\n"
},
{
"from": "human",
"value": "'body, .command-palette .editor':\n 'meta-p': 'command-palette:toggle'\n\n'.command-palette .editor':\n 'meta-p': 'command-palette:toggle'\n"
},
{
"from": "gpt",
"value": "'body, .... | coffeescript | chosen |
[
{
"from": "system",
"value": "Change `window.atob` methods to Node.js natvie methods.\n"
},
{
"from": "human",
"value": "# base64\n# \n# @description\n# @Copyright 2014 Fantasy <fantasyshao@icloud.com>\n# @create 2014-12-11\n# @update 2014-12-21\n\nexports.encode = (str) ->\n try\n str = str... | coffeescript | chosen |
[
{
"from": "system",
"value": "Change single quotes to double\n"
},
{
"from": "human",
"value": "child_process = require \"child_process\"\n\nmodule.exports =\n run: (path, args) ->\n # TODO: Add support killing the process.\n proc = child_process.exec(path + \" \" + args.join \" \")\n\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add a blank value to an empty array to make sure the param is submitted\n\nThis is what Rails does -- submit a blank value to indicate that no\nvalues were submitted to the controller.\n"
},
{
"from": "human",
"value": "jQuery ($) ->\n EditableForm = $.fn.editablef... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add convenient accessors for Window API.\n"
},
{
"from": "human",
"value": "Window = process.atom_binding('window').Window\n\nmodule.exports = Window\n"
},
{
"from": "gpt",
"value": "Window = process.atom_binding('window').Window\n\n# Convient accessors.... | coffeescript | chosen |
[
{
"from": "system",
"value": "Change to CustomEvent for IE 11\n"
},
{
"from": "human",
"value": "React = require 'react'\nwindow.React = React\nReact.initializeTouchEvents true\n\nrouter = require './router'\nmainContainer = document.createElement 'div'\nmainContainer.id = 'panoptes-main-contain... | coffeescript | chosen |
[
{
"from": "system",
"value": "Clear all the jobs link.\n"
},
{
"from": "human",
"value": "window.JobsListView = class JobsListView extends Backbone.View\n\n initialize: ->\n @model.bind 'add', => this.render()\n\n $(@el).append('<h2>Jobs List</h2>')\n\n @list = $('<ul class=\"jobs-list... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add tests for fetch stocks.\n"
},
{
"from": "human",
"value": "_ = require 'underscore'\nPromise = require 'bluebird'\nFetchStocks = require '../lib/fetchstocks'\n{ExtendedLogger} = require 'sphere-node-utils'\nConfig = require '../config'\n\ndescribe 'FetchStocks',... | coffeescript | chosen |
[
{
"from": "system",
"value": "Make sure all palette instances use their own set of used colors\n"
},
{
"from": "human",
"value": "class PG.Palette\n\n colors:\n red:\n stroke: \"#b64639\"\n fill: \"#dc6355\"\n orange:\n stroke: \"#b27a01\"\n fill: \"#e3b514\"\n yell... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix user validation in campaign\n"
},
{
"from": "human",
"value": "@Campaigns = new Meteor.Collection 'campaigns'\n@Campaigns.attachSchema new SimpleSchema\n\tname:\n\t\ttype: String\n\t\tlabel: \"Nome\"\n\t\tmax: 100\n\tdescription:\n\t\ttype: String\n\t\tlabel: \"... | coffeescript | chosen |
[
{
"from": "system",
"value": "Implement NestedAttributesStrategy for autocompleteTokenField widget\n"
},
{
"from": "human",
"value": "namespace 'Exo.Widgets.AutocompleteTokenField', (exports) ->\n\n exports.ReplaceIdStrategy = (tokens) ->\n if id = tokens[0]?.id\n @originalInput.value =... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix for bad asset compilation on production, this MUST BE REMOVED in the future\n"
},
{
"from": "human",
"value": "class Cfp.Views.RankingView extends Backbone.View\n el: '#ranking'\n\n events:\n 'change #rank' : 'changeRank'\n\n changeRank: ->\n rank = new... | coffeescript | chosen |
[
{
"from": "system",
"value": "Remove -r flag from hg merge command\n"
},
{
"from": "human",
"value": "Base = require(\"./Base\")\n\nmodule.exports = class Mercurial extends Base\n\n type: 'mercurial'\n\n _doCommit: (message) -> @_exec(['hg', 'commit', '-m', message])\n\n\n _doPull: -> @_exec(... | coffeescript | chosen |
[
{
"from": "system",
"value": "Support a default value when undefined in the review panel toggles.\n"
},
{
"from": "human",
"value": "define [\n\t\"base\"\n], (App) ->\n\tApp.directive \"reviewPanelToggle\", () ->\n\t\trestrict: \"E\"\n\t\tscope: \n\t\t\tonToggle: '&'\n\t\t\tngModel: '='\n\t\t\td... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add some tests around the bucketing\n"
},
{
"from": "human",
"value": "expect = require('chai').expect\nalgorhythm = require('../../lib/algorhythmic')\n\ndescribe 'Algorhythmic', ->\n it 'works', ->\n expect(algorhythm).to.be.ok\n"
},
{
"from": "gpt",
... | coffeescript | chosen |
[
{
"from": "system",
"value": "Update the conf to work.\n"
},
{
"from": "human",
"value": "exports.config =\n paths:\n watched:['client']\n files:\n javascripts:\n joinTo: 'app.js'\n stylesheets:\n joinTo: 'app.css'\n templates:\n joinTo: 'app.js'"
},
{
"from"... | coffeescript | chosen |
[
{
"from": "system",
"value": "Send events when traversing result pages\n"
},
{
"from": "human",
"value": "App.ResultToolbarController = Em.ArrayController.extend\n content: []\n searchBinding: 'currentSearchController.content'\n\n pageSize: 15\n\n _currentPageNo: 0\n currentPageNo: ((key, v... | coffeescript | chosen |
[
{
"from": "system",
"value": "Disable saving when items are all empty"
},
{
"from": "human",
"value": "ETahi.InlineEditBodyPartComponent = Em.Component.extend\n editing: false\n snapshot: []\n confirmDelete: false\n\n createSnapshot: (->\n @set('snapshot', Em.copy(@get('block'), true))\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Refactor shipping-rate-selection directive to remove annoying refresh issue\n"
},
{
"from": "human",
"value": "Sprangular.directive 'shippingRateSelection', ->\n restrict: 'E'\n templateUrl: 'shipping/rates.html'\n scope:\n order: '='\n\n controller: ($scope,... | coffeescript | chosen |
[
{
"from": "system",
"value": ":lipstick: Move comment to next line\n"
},
{
"from": "human",
"value": "{View} = require 'atom'\nImageEditor = require './image-editor'\n\nmodule.exports =\nclass ImageEditorStatusView extends View\n @content: ->\n @div class: 'status-image inline-block', =>\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix QuickSearch for quick searches that are drawn after DOMReady\n"
},
{
"from": "human",
"value": "class Tenon.features.QuickSearch\n constructor: ->\n @$content = $('.toolbox #quick-search-container')\n @$toggle = $('#quick-search-toggle')\n @openClass =... | coffeescript | chosen |
[
{
"from": "system",
"value": "Make path an optional parameter\n"
},
{
"from": "human",
"value": "Bacon = require 'bacon'\n$ = require 'jquery'\n\nclass NCN\n constructor: (@host = '') ->\n request = (method) -> (path, data) ->\n Bacon.fromPromise(\n $.ajax @host + path,\n data: ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Remove uneeded initialization after ajax refresh.\n"
},
{
"from": "human",
"value": "App.Followable =\n\n update: (followable_id, button) ->\n $(\"#\" + followable_id + \" .js-follow\").html(button)\n # Temporary line. Waiting for issue resolution: https://gi... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add includePaths to sass options.\n"
},
{
"from": "human",
"value": "module.exports = (grunt) ->\n require('load-grunt-tasks') grunt\n\n grunt.initConfig\n clean:\n folder: 'build'\n\n sass:\n options:\n sourceMap: true\n dist:\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add watcher for landing page coffeescript\n"
},
{
"from": "human",
"value": "Path = require('path')\nfs = require('fs')\n\nmodule.exports = (grunt) ->\n grunt.initConfig\n pkg: grunt.file.readJSON(\"package.json\")\n\n coffee:\n compile:\n files:\... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add context menu to atom-text-editor selector\n"
},
{
"from": "human",
"value": "'menu': [\n 'label': 'Edit'\n 'submenu': [\n 'label': 'Select Encoding'\n 'command': 'encoding-selector:show'\n ]\n]\n\n'context-menu':\n '.overlayer': [\n 'label': 'Change... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use log helpers in Rebuild command\n"
},
{
"from": "human",
"value": "path = require 'path'\n\n_ = require 'underscore-plus'\noptimist = require 'optimist'\n\nconfig = require './config'\nCommand = require './command'\nInstall = require './install'\n\nmodule.exports... | coffeescript | chosen |
[
{
"from": "system",
"value": "Check for, and deny anonymous api_keys\n"
},
{
"from": "human",
"value": "Meteor.startup ->\n if Meteor.isServer\n\n lib = require './lib.coffee'\n keys = require '/server/utils/deploykeys.coffee'\n\n authenticationHandler = ->\n if (key = @params.que... | coffeescript | chosen |
[
{
"from": "system",
"value": "Change webkit buils target to Electron(atom-shell)\n"
},
{
"from": "human",
"value": "webpack = require \"webpack\"\noption = require \"./gulp.coffee\"\n\nmodule.exports =\n watchDelay : 500\n\n output :\n filename : \"[name].js\"\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix the logic in SidebarController which triggers the FinderController\nreset to auto-mount vms\n"
},
{
"from": "human",
"value": "class SidebarController extends KDViewController\n\n constructor:->\n super\n\n mainController = KD.getSingleton 'mainController... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add scroll at new message\n"
},
{
"from": "human",
"value": "Chamber.Views.Messages ||= {}\n\nclass Chamber.Views.Messages.IndexView extends Backbone.View\n template: JST[\"backbone/templates/messages/index\"]\n\n initialize: () ->\n #@options.messages.bind('re... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add value, text, and html\n"
},
{
"from": "human",
"value": "addBinding = ViewModel.addBinding\n\naddBinding\n name: 'text'\n autorun: (c, bindArg) ->\n bindArg.element.text bindArg.getVmValue()\n return\n\naddBinding\n name: 'default'\n bind: (bindArg) ->... | coffeescript | chosen |
[
{
"from": "system",
"value": "Refresh the whole page after logging in on the Inquire via Phone modal\n"
},
{
"from": "human",
"value": "AuthModalView = require '../../../../components/auth_modal/view.coffee'\n{ templateMap } = require '../../../../components/auth_modal/maps.coffee'\nmediator = r... | coffeescript | chosen |
[
{
"from": "system",
"value": "Update user only on successful signin\n"
},
{
"from": "human",
"value": "`import BaseRoute from './_base'`\n`import ajax from 'ic-ajax'`\n\nRoute = BaseRoute.extend\n model: ->\n mePath = '/api/me'\n\n # return the current user as the model if authenticated, ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Read book_id from course and use that for link\n"
},
{
"from": "human",
"value": "React = require 'react'\nBS = require 'react-bootstrap'\n{CourseStore} = require '../../flux/course'\n\nmodule.exports = React.createClass\n displayName: 'BrowseTheBook'\n\n contextT... | coffeescript | chosen |
[
{
"from": "system",
"value": "Modify needs to know current course\n"
},
{
"from": "human",
"value": "React = require 'react'\n\nNewCourseRegistration = require './new-registration'\nModifyCourseRegistration = require './modify-registration'\n\nUserStatus = require '../user/status-mixin'\nCourse ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Remove glitterbomb as default template in atom\n"
},
{
"from": "human",
"value": "'global':\n 'editor':\n 'showInvisibles': true\n 'preferredLineLength': 120\n 'softWrapped': true\n 'showIndentGuide': true\n 'fontSize': 12\n 'invisibles': {}\n 'c... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix AMD and Phaser integration."
},
{
"from": "human",
"value": "# App\n# ===\n# Highest-level application script.\n\n# Dependencies\n# ------------\n# Configure RequireJS. Dependency references default to the `lib` directory.\n# We're using CoffeeScript, so our `ap... | coffeescript | chosen |
[
{
"from": "system",
"value": "Allow regexp in hot topics"
},
{
"from": "human",
"value": "# Let people know of emergent / constant questions\n#\n# hot topic anything = whatever you want to rememeber\n# forget hot topic anything\n# hot topics\n\nmodule.exports = (robot) ->\n robot.brain.data.hot... | coffeescript | chosen |
[
{
"from": "system",
"value": "Comment out listening event for now"
},
{
"from": "human",
"value": "dgram = require \"dgram\"\n\nclass ListenServer\n passphrase: ''\n handleMessage: (msg, rinfo) ->\n try\n data = JSON.parse(msg)\n if data and @checkPassphrase(data)\n @incomi... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add fillingOptions as its own method\n"
},
{
"from": "human",
"value": "# fillOptions = () ->\n# $('#selectLocation').\n\nTemplate.locationEdit.created = () ->\n Meteor.call 'getOptions', (error, result) ->\n locationsData = JSON.parse result\n locations = ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add additional controls to the index page Map\n"
},
{
"from": "human",
"value": "# medellin coords 6.29, -75.54\nmap_center = new google.maps.LatLng(19.311143,-39.199219)\nmarker = null\nmap = null\n\ninitialize_map = ->\n mapOptions =\n zoom: 2,\n scrollwhee... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add strut session initial data, for fixing first-load bug\n"
},
{
"from": "human",
"value": "loadPpt = ->\n pptData = StrutBuilder.build(JSON.parse(localStorage.regions))\n #[\n #{ #slide 1\n #start: 0,\n #end: 2.5,\n #texts: [\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Change default sort to character_sum for Articles\n"
},
{
"from": "human",
"value": "StockStore = require './stock_store.coffee'\n\nArticleStore = new StockStore(\n sortKey: 'title'\n sortAsc: true\n descKeys:\n character_sum: true\n view_count: true\n mod... | coffeescript | chosen |
[
{
"from": "system",
"value": "Disable finish game on click\n"
},
{
"from": "human",
"value": "$ = require 'jquery'\nFinishGame =\n submitResults: (state) ->\n window.onbeforeunload = ->\n gameParams = {rounds: state.round.get('rounds').toJS()}\n gameId = state.game.get('id')\n $.aja... | coffeescript | chosen |
[
{
"from": "system",
"value": "Call super so we get an id\n"
},
{
"from": "human",
"value": "#= require trix/utilities/object\n\nclass Trix.Attachment extends Trix.Object\n constructor: (@file) ->\n"
},
{
"from": "gpt",
"value": "#= require trix/utilities/object\n\nclass Trix.Attachm... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add watch on questions, so that scores are updated in real time\n"
},
{
"from": "human",
"value": "'use strict'\n\nangular.module('ccApp.controllers')\n.controller 'MainCtrl', ($scope, _, questions, scores) ->\n\n questionsByCategory = _.groupBy questions, (questio... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use pre-compiled parser when available\n"
},
{
"from": "human",
"value": "PEG = require 'pegjs'\n{fs} = require 'atom'\ngrammarSrc = fs.readFileSync(require.resolve('./snippet-body.pegjs'), 'utf8')\nmodule.exports = PEG.buildParser(grammarSrc, trackLineAndColumn: tr... | coffeescript | chosen |
[
{
"from": "system",
"value": ":art: Use ?= to assign deferred requires\n"
},
{
"from": "human",
"value": "module.exports =\n config:\n autocompleteBrackets:\n type: 'boolean'\n default: true\n autocompleteSmartQuotes:\n type: 'boolean'\n default: true\n wrapSelectio... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add breadcrumb methods in router\n"
},
{
"from": "human",
"value": "class Water.TreesController extends Backbone.Router\n routes:\n \"/tree/*path\": \"fetch_tree\"\n \"/blob/*path\": \"fetch_blob\"\n \"*anything\": \"root\"\n \n fetch_tree: (path) ->\n... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add copiright and license terms\n"
},
{
"from": "human",
"value": "module = angular.module(\"taigaProject\", [])\n"
},
{
"from": "gpt",
"value": "###\n# Copyright (C) 2014 Andrey Antukh <niwi@niwi.be>\n# Copyright (C) 2014 Jesús Espino Garcia <jespinog@g... | coffeescript | chosen |
[
{
"from": "system",
"value": "Remove JSONString property when displaying JSON"
},
{
"from": "human",
"value": "class Utils\n\n getHTMLTitleFromHistoryFragment: (fragment) ->\n _.capitalize(fragment.split('\\/').join(' '))\n\n stringJSON: (object) ->\n JSON.stringify object, n... | coffeescript | chosen |
[
{
"from": "system",
"value": "Change holding request JS to select scans regardless of holding status div id\n"
},
{
"from": "human",
"value": "$ ->\n scan_request_option_id = '#entire_no'\n scan_request_container_class = '#holding-request-option-offsite-scan'\n # Select scan request if any of... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add description for config setting\n"
},
{
"from": "human",
"value": "commandDisposable = null\ngrammarListView = null\ngrammarStatusView = null\n\nmodule.exports =\n config:\n showOnRightSideOfStatusBar:\n type: 'boolean'\n default: true\n\n activate... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix syntax error in export\n"
},
{
"from": "human",
"value": "module.exports = s =\n\n # Convenience method: wrap services in complete middleware stack\n # accepts {serviceName: serviceDef}\n # returns {serviceName: serviceDef} (wrapped)\n create: (defs, jargon=... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix calling callback after writing of every file.\n"
},
{
"from": "human",
"value": "'use strict'\n\nasync = require 'async'\nsysPath = require 'path'\ninflection = require 'inflection'\nGeneratedFile = require './generated_file'\n\ngetGeneratedFilesPaths = (sourceF... | coffeescript | chosen |
[
{
"from": "system",
"value": "Implement docker based latex compilation.\n\nImplement a docker based command runner that runs compilation in a docker container, for added isolation and security.\n\nThis implementation also supports timeouts.\n"
},
{
"from": "human",
"value": "spawn = require(\"ch... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix debug mode toggle not persisting between turbonav bug\n\n"
},
{
"from": "human",
"value": "bindArrows = ->\n Mousetrap.bind 'left', ->\n if jekyll_page_previous? and not window.disable_keyboard_nav\n Turbolinks.visit(jekyll_page_previous)\n\n Mousetrap... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix tests:, rm non-existant migration.\n"
},
{
"from": "human",
"value": "# Add new migrations here.\n# I wasn't able to get automatic path globed `require` to work with gulp.\nmigrations = [\n require \"./01_base\"\n require \"./02_add_initial_values\"\n]\n\nmodu... | coffeescript | chosen |
[
{
"from": "system",
"value": "Login: Handle all type of calling for the app, you can either use router or applicationManager"
},
{
"from": "human",
"value": "class LoginAppsController extends AppController\n\n KD.registerAppClass this,\n name : \"Login\"\n route : [\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use stitchRequire stitch identifier in test helper\n"
},
{
"from": "human",
"value": "app = require '../../test.js'\n_ = require 'underscore'\n\nmodule.exports =\n\n Backbone: app.Backbone\n\n chai: require 'chai'\n\n require: (path) ->\n app.require path\n"
... | coffeescript | chosen |
[
{
"from": "system",
"value": "Hide the panel when it looses focues\n"
},
{
"from": "human",
"value": "class MainChatPanel extends JView\n\n constructor:->\n super\n cssClass : 'main-chat-panel visible'\n\n @registerSingleton \"chatPanel\", @, yes\n\n @header = new MainChatHeader\n... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add authorization check on admin route.\n\nSince we're loading the model asynchronously a 403\nfrom the server won't trigger the error state and the\nsubsequent transition back to the dashboard.\n"
},
{
"from": "human",
"value": "ETahi.AdminRoute = ETahi.AuthorizedR... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use jQuery \"on\" for event hook.\n"
},
{
"from": "human",
"value": "$ ->\n $('#currency').change ->\n $.ajax(\n type: 'POST'\n url: $(this).data('href')\n data:\n currency: $(this).val()\n ).done ->\n window.location.reload()\n"
... | coffeescript | chosen |
[
{
"from": "system",
"value": ":new: Add a spec about attribute change firing\n"
},
{
"from": "human",
"value": "describe 'Custom Element Base', ->\n registerCustomElement = require('../base.min.js')\n {getCustomElement} = require('./helper')\n\n it 'fires the events in order', ->\n lastRan... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add a validation checker for time entry\n"
},
{
"from": "human",
"value": "TimeEntry = require '../../models/time_entry'\nshould = require 'should'\n\nmakeT = (offset = 10) ->\n t = new TimeEntry\n start: new Date() - 5\n end: new Date() - offset\n duratio... | coffeescript | chosen |
[
{
"from": "system",
"value": "Update node-webkit version for builder\n"
},
{
"from": "human",
"value": "module.exports = (grunt) ->\n grunt.initConfig\n nodewebkit:\n options:\n build_dir: './builds'\n version: '0.8.3'\n mac: true\n win: true\n linux32... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add keybindings for win32 and linux\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 w... | coffeescript | chosen |
[
{
"from": "system",
"value": "Set datepicker when there is a datepicker on the page\n"
},
{
"from": "human",
"value": "window.GiftCards =\n _bindLookupGiftCard: ->\n $(document).on('submit', '#lookup-redemption-code', (event) ->\n event.preventDefault()\n window.location.href = $(t... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix undefined username in Windows\n"
},
{
"from": "human",
"value": "vorpal = require 'vorpal'\nchalk = vorpal().chalk\n_ = require 'underscore'\n\nawkward = vorpal()\n .delimiter process.env.USER+'@awk'\n .localStorage 'awkward@iostreamer'\n .hist... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add post hook endpoint and console logging\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# Author:\n# ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Simplify loading indicator for now"
},
{
"from": "human",
"value": "React = require 'react'\n\nmodule.exports = React.createClass\n displayName: 'LoadingIndicator'\n\n render: ->\n <span {...@props} className=\"loading-indicator\">\n <span>•</span>\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Convert command creation to new syntax\n"
},
{
"from": "human",
"value": "# Your init script\n#\n# Atom will evaluate this file each time a new window is opened. It is run\n# after packages are loaded/activated and after the previous editor state\n# has been restore... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use small pills for the income and expenses report.\n"
},
{
"from": "human",
"value": "DotLedger.module 'Views.Reports.IncomeAndExpenses', ->\n class @Filter extends Backbone.Marionette.ItemView\n template: 'reports/income_and_expenses/filter'\n\n className: ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix paths for interactive subject requests\n"
},
{
"from": "human",
"value": "Spine = require 'spine'\nApi = require 'zooniverse/lib/api'\nUser = require 'zooniverse/lib/models/user'\n\nclass InteractiveSubject extends Spine.Model\n @configure 'InteractiveSubject',... | coffeescript | chosen |
[
{
"from": "system",
"value": "Test for calls on index\n"
},
{
"from": "human",
"value": "sinos = require('../index')\n\ndescribe 'sinos-river-level-twitter', ->\n describe '#search', ->\n it 'is a function', ->\n expect(sinos.search).to.be.instanceof Function\n"
},
{
"from": "gp... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix the double callback call on docker timeout.\n\n When the timeout handler is called, disable the callback in the close handler so that the success of the stop command doesnt produce two calls to the callback, the first one meaning success.\n"
},
{
"from": "human",
... | coffeescript | chosen |
[
{
"from": "system",
"value": "Remove event properties now setup by default\n"
},
{
"from": "human",
"value": "Space.messaging.define Space.messaging.Event, 'Space.accounts',\n\n UserCreated: {\n sourceId: Guid\n timestamp: Date\n username: Username\n email: EmailAddress\n passwor... | coffeescript | chosen |
[
{
"from": "system",
"value": "Make sure there is a conversations variable\n"
},
{
"from": "human",
"value": "class ChatConversationListController extends CommonChatController\n\n constructor:->\n super\n @getListView().on 'moveToIndexRequested', @bound 'moveItemToIndex'\n\n addItem:(data... | coffeescript | chosen |
[
{
"from": "system",
"value": "Rewrite labels in context-menu and menu\n"
},
{
"from": "human",
"value": "# See https://atom.io/docs/latest/creating-a-package#menus for more details\n'context-menu':\n '.overlayer':\n 'Rename coffee-refactor': 'coffee-refactor:rename'\n\n'menu': [\n {\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add optimist to parse arguments and build a media data structure\n"
},
{
"from": "human",
"value": "fs = require 'fs'\nupnp = require 'upnp-server'\nTag = require('taglib').Tag\n\nmediaServer = upnp.createDevice 'MediaServer', 'Bragi', (err, device, msg) ->\n thr... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add parent type as argument of callback\n\nWhen passed a callback, the callback will now be called with a third\nargument: The type of the parent. This can be relevant as the parent can\nbe both an object or an array.\n"
},
{
"from": "human",
"value": "\nisFunction ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Allow Items collection to be pageable\n"
},
{
"from": "human",
"value": "_ = require 'underscore'\nsd = require('sharify').data\nBackbone = require 'backbone'\nItem = require '../models/item.coffee'\n\nmodule.exports = class Items extends Backbo... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add context menu to staging view with \"Open File\"\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 ]\n }\n {\n 'l... | coffeescript | chosen |
[
{
"from": "system",
"value": "Make sure we start from the actual @model passed in to the KeypathObserver.\n"
},
{
"from": "human",
"value": "class KeypathObserver\n constructor: (@view, @model, @keypath, @callback) ->\n @interfaces = (k for k, v of @view.adapters)\n @objectPath = []\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Remove unnecessary debug messages, and add TODO messages\n"
},
{
"from": "human",
"value": "path = require \"path\"\nrunas = require \"runas\"\n\nmodule.exports =\n activate: ->\n atom.workspaceView.command \"latex:build\", => @build()\n\n build: ->\n editor... | coffeescript | chosen |
[
{
"from": "system",
"value": "Change to dark atom theme\n"
},
{
"from": "human",
"value": "\"*\":\n core:\n disabledPackages: [\n \"background-tips\"\n \"exception-reporting\"\n \"metrics\"\n ]\n followSymlinks: false\n hideGitIgnoredFiles: true\n ignoredNames: [\n... | coffeescript | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.