conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Improve coffeescript using unless attribute\n"
},
{
"from": "human",
"value": "$ ->\n if $('#setting_show_map').length\n $this = $('#setting_show_map')\n\n if $this.is(':checked')\n else\n $('.map-settings').hide()\n\n $this.on 'click', (e) ->\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix bug showing tab when coming from another page\n"
},
{
"from": "human",
"value": "show_tab = () ->\n if location.hash.match(/^#tab-/)\n $(\".nav-tabs a[href=##{location.hash.replace('#tab-', '')}]\").tab('show')\n\nif $('.nav-tabs').length > 0\n default_hash... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix bad if statement sending doc open into infinite loop\n"
},
{
"from": "human",
"value": "define [\n\t\"base\"\n], (App) ->\n\tApp.controller \"HistoryV2DiffController\", ($scope, ide, event_tracking) ->\n\t\t$scope.restoreState =\n\t\t\tinflight: false\n\t\t\terr... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use regex to check for 'mailto:' link\n"
},
{
"from": "human",
"value": "define (require) ->\n $ = require('jquery')\n Backbone = require('backbone')\n router = require('cs!router')\n analytics = require('cs!helpers/handlers/analytics') # Setup Analytics Handler... | coffeescript | chosen |
[
{
"from": "system",
"value": "Recompile vendor css on bootstrap var changes\n"
},
{
"from": "human",
"value": "g = module.parent.exports\n\ng.task \"watch\", ->\n g.s.listen 35729, (err) ->\n return console.log(err) if err\n\n g.watch \"bower.json\", [\"vendor\"]\n g.watch [\"fonts/**/... | coffeescript | chosen |
[
{
"from": "system",
"value": "FIX: Remove log to task pdf url\n"
},
{
"from": "human",
"value": "angular.module('doubtfire.units.states.tasks.viewer.directives.task-sheet-view', [])\n\n.directive('taskSheetView', ->\n restrict: 'E'\n templateUrl: 'units/states/tasks/viewer/directives/task-shee... | coffeescript | chosen |
[
{
"from": "system",
"value": "Update the Account PayPal Response for New View\n\nUpdate the Account view PayPal verification response to update the new\nDOM elements.\n"
},
{
"from": "human",
"value": "$(\".paypal-status\").html \"<%= escape_javascript(render :partial => 'devise/registrations/ve... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix OPTIONS accumulation on OPTIONS requests\n"
},
{
"from": "human",
"value": "_ = require 'lodash'\n\nmodule.exports = (options) ->\n (req, res, next) ->\n if not _.isArray options\n options = [options]\n\n options.push 'OPTIONS'\n\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Allow empty pre- or postmatch\n"
},
{
"from": "human",
"value": "App.CwbResultTableController = Em.Controller.extend\n\n needs: ['resultTable']\n\n # We get the actual page of results from the resultTableController; this\n # controller is only responsible for doi... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use new API for gulp-iconfont\n"
},
{
"from": "human",
"value": "#--------------------------------------------------------\n# Requirements\n#--------------------------------------------------------\n\ngulp = require 'gulp'\nplugins = require('gulp-load-plugin... | coffeescript | chosen |
[
{
"from": "system",
"value": "Change optional require format to make webpack happier\n"
},
{
"from": "human",
"value": "\ntryRequire = (dep) ->\n try\n require dep\n catch\n undefined\n\n@window ||= {}\n\nQ = @window.Q\n_ = @window._\n\nQ ||= tryRequire 'q'\n_ ||= tryRequire 'lodash/dist... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix setting property checked for spinaSwitch"
},
{
"from": "human",
"value": "# jQuery plugin checkbox\n$.fn.spinaSwitch = ->\n return this.each ->\n unless $(this).attr('data-plugin-switch')\n input = $(this)\n input.attr('data-plugin-switch', true)\n... | coffeescript | chosen |
[
{
"from": "system",
"value": "ChatView: Remove yourself from chat list.\n"
},
{
"from": "human",
"value": "class IDE.ChatParticipantView extends JView\n\n constructor: (options = {}, data) ->\n\n options.cssClass = 'participant-view'\n\n super options, data\n\n participantData = @getDa... | coffeescript | chosen |
[
{
"from": "system",
"value": ":fire: Remove rendering logic from PanelView\n"
},
{
"from": "human",
"value": "Message = require './message'\n\nclass PanelView extends HTMLElement\n initialize:(@linter) ->\n @id = 'linter-panel'\n\n render: (messages) ->\n messages.forEach (message) =>\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use fallback also when element is undefined.\n"
},
{
"from": "human",
"value": "{parseString} = require 'xml2js'\n\nexports.xmlFix = (xml) ->\n if not xml.match /\\<root\\>/\n xml = \"<root>#{xml}</root>\"\n if not xml.match /\\?xml/\n xml = \"<?xml version=... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix bug where username incorrectly passed to findOneByUsername. Also\nadds arugment validation.\n"
},
{
"from": "human",
"value": "Meteor.methods\n\taddUserToRoom: (data) ->\n\t\tfromId = Meteor.userId()\n\t\t# console.log '[methods] addUserToRoom -> '.green, 'from... | coffeescript | chosen |
[
{
"from": "system",
"value": "Make it easier to test"
},
{
"from": "human",
"value": "siteEngine: \"jekyll\"\nsiteLocalDir: \"/Users/krainboltgreene/code/organization/blankjekyll.github.io\"\nsiteDraftsDir: \"_drafts/\"\nsitePostsDir: \"_posts/\"\nsiteImagesDir: \"/\"\nsiteUrl: \"http://blankjek... | coffeescript | chosen |
[
{
"from": "system",
"value": ":racehorse: Enumerate the smallest set when subtracting\n"
},
{
"from": "human",
"value": "setEqual = (a, b) ->\n return false unless a.size is b.size\n iterator = a.values()\n until (next = iterator.next()).done\n return false unless b.has(next.value)\n true... | coffeescript | chosen |
[
{
"from": "system",
"value": "Set location properties on the document element so the location can be determined when it's empty\n"
},
{
"from": "human",
"value": "#= require trix/views/block_view\n\nclass Trix.DocumentView\n constructor: (@element, @document) ->\n\n render: ->\n @element.re... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix recentlyUpdatedSongs route is not highlighted.\n"
},
{
"from": "human",
"value": "goog.provide 'app.react.Header'\n\nclass app.react.Header\n\n ###*\n @param {app.Routes} routes\n @param {app.react.Link} link\n @param {app.users.Store} usersStore\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Switch to simply using build\n"
},
{
"from": "human",
"value": "# default - message + brief help\n\ngulp = require \"gulp\"\nrunSequence = require \"run-sequence\"\n\ngulp.task \"default\", (cb) ->\n console.log('Building BokehJS for developer mode ...')\n runSequ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Remove ramda-repl - no longer used\n"
},
{
"from": "human",
"value": "packages: [\n \"advanced-open-file\"\n \"atom-beautify\"\n \"atom-elixir\"\n \"atom-elixir-formatter\"\n \"atom-react-native-autocomplete\"\n \"auto-indent\"\n \"auto-update-packages\"\n \... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix up new jasmine tests\n"
},
{
"from": "human",
"value": "xdescribe 'CombinedOpenEnded', ->\n beforeEach ->\n spyOn Logger, 'log'\n # load up some fixtures\n loadFixtures 'combined-open-ended.html'\n @element = $('.combined-open-ended')\n\n describ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add tooltip with title and description\n"
},
{
"from": "human",
"value": "$(document).on \"turbolinks:load\", ->\n $('div.calendar').calendar()\n $('.calendar_range_start').calendar\n endCalendar: $('.calendar_range_end')\n\n $('.calendar_range_end').calendar\... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix incorrect results if detect-indent detects no indentation\n"
},
{
"from": "human",
"value": "fs = require 'fs'\n\neditorconfig = require 'editorconfig'\ndetectIndent = require 'detect-indent'\n\nmodule.exports = (filePath, callback) ->\n\teditorconfig.parse(file... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add commands description to help\n"
},
{
"from": "human",
"value": "program = require 'commander'\nGitHubApi = require 'github'\n\npkg = require './../package'\nConfig = require './config'\nCommands = require './commands'\nInitializer = require './... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add loading section to payment screen\n"
},
{
"from": "human",
"value": "Neighborly.Projects = {} if Neighborly.Projects is undefined\nNeighborly.Projects.Backers = {} if Neighborly.Projects.Backers is undefined\n\nNeighborly.Projects.Backers.Edit =\n modules: -> [... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use done(error) instead using expect(..).\n"
},
{
"from": "human",
"value": "_ = require 'underscore'\nMapping = require '../lib/mapping'\nSphereClient = require 'sphere-node-client'\nConfig = require '../config'\nfs = require 'fs'\n\njasmine.getEnv().defaultTimeout... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add JS affix to order summary\n"
},
{
"from": "human",
"value": "Neighborly.Payment = Backbone.View.extend\n el: '.payment'\n\n initialize: ->\n _.bindAll this, 'showContent'\n this.$('.methods input').click (e) =>\n this.showContent(e)\n this.$('.me... | coffeescript | chosen |
[
{
"from": "system",
"value": ":bug: Fix potential infinite loop when an editor has no selection\n\nFixes #6\n"
},
{
"from": "human",
"value": "{CompositeDisposable} = require 'event-kit'\n\nmodule.exports =\nclass MinimapSelectionView\n decorations: []\n\n constructor: (@minimap) ->\n edito... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add default 0 for dequeueCount on _shouldRetry_"
},
{
"from": "human",
"value": "module.exports = \n class MaxRetriesProcessor\n\n constructor: ({ @processor, @maxRetries = 3 }) ->\n\n process: (notification, context) ->\n @processor notification, contex... | coffeescript | chosen |
[
{
"from": "system",
"value": "Remove console.logs from product detail controller\n"
},
{
"from": "human",
"value": "angular.module('kassa').controller('ProductDetailCtrl', [\n '$scope'\n 'ProductService'\n ($scope, Product)->\n STATE_FAILED = 0\n STATE_SAVED = 1\n STATE_SAVING = 2\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Validate email uniqueness and password\n"
},
{
"from": "human",
"value": "bcrypt = require 'bcrypt'\ncrypto = require 'crypto'\nmongoose = require 'mongoose'\ndb = require '../lib/database'\n\nSchema = mongoose.Schema\n\nuserSchema = new Schema\n name: \n type: ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Validate only known types are set as props\n"
},
{
"from": "human",
"value": "React = require 'react'\nBS = require 'react-bootstrap'\n\nMESSAGES = {\n student: [\n <p key='s1'>Tutor shows your weakest topics so you can practice to improve.</p>\n <p key='... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add support for recently viewed artwork rail on homepage\n"
},
{
"from": "human",
"value": "module.exports = \"\"\"\n query($showHeroUnits: Boolean!) {\n home_page {\n artwork_modules(\n max_rails: 6,\n order: [\n ACTIVE_BIDS,\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add default { template } delimiters.\n"
},
{
"from": "human",
"value": "# The Rivets namespace.\nRivets =\n # Binder definitions, publicly accessible on `module.binders`. Can be\n # overridden globally or local to a `Rivets.View` instance.\n binders: {}\n\n # Co... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add -H option to fix broken symbolic links error\n\n From man of ls -H provides: show information for the file the link references rather than for the link itself. So, when some broken links exists it adds the link to the tree with \"Link -> Non-Exist\" label.\n"
},
{
"... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use atom.workspace.open() for specs to make them less flaky\n"
},
{
"from": "human",
"value": "About = require '../lib/about'\n{$} = require 'atom-space-pen-views'\n\ndescribe \"About\", ->\n workspaceElement = null\n\n beforeEach ->\n workspaceElement = atom.v... | coffeescript | chosen |
[
{
"from": "system",
"value": ":bug: Fix decorations not destroyed on deactivation\n"
},
{
"from": "human",
"value": "{CompositeDisposable} = require 'atom'\n\nmodule.exports =\nclass MinimapPigmentsBinding\n constructor: ({@editor, @minimap, @colorBuffer}) ->\n @displayedMarkers = []\n @s... | coffeescript | chosen |
[
{
"from": "system",
"value": "Reformat the indent pattern regexes\n\n\"regexes\"?\n"
},
{
"from": "human",
"value": "# Much of the following is derived from: https://github.com/atom/language-csharp/blob/fba368a8397e298fa78679b4ee0a542b2474c150/scoped-properties/language-csharp.cson\n'.source.pow... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use a URL parameter as well as the referrer\n"
},
{
"from": "human",
"value": "resize = () ->\n screenWidth = $(window).width() + \"px\"\n screenHeight = $(window).height() + \"px\"\n\n $(\"#intro, #intro .item, #intro-video, #intro-video .item\").css\n width... | coffeescript | chosen |
[
{
"from": "system",
"value": "Change html margin when the sidebar opens to compensate for change in\n"
},
{
"from": "human",
"value": "scrollbarWidth = 0\nFactlinkJailRoot.loaded_promise.then ->\n # Create the measurement nod; see http://davidwalsh.name/detect-scrollbar-width\n scrollDiv = doc... | coffeescript | chosen |
[
{
"from": "system",
"value": "Switch to Atom default theme\n"
},
{
"from": "human",
"value": "\"*\":\n core:\n telemetryConsent: \"limited\"\n themes: [\n \"one-light-ui\"\n \"atom-light-syntax\"\n ]\n editor:\n fontFamily: \"Menlo\"\n invisibles: {}\n softWrap: tru... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add a bit of documentation\n"
},
{
"from": "human",
"value": "# Copyright 2012 The Apache Software Foundation\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtai... | coffeescript | chosen |
[
{
"from": "system",
"value": ":new: Use alt-shift-. to jump to next error\n"
},
{
"from": "human",
"value": "'atom-text-editor:not(.mini)':\n 'alt': 'linter:set-bubble-transparent'\n"
},
{
"from": "gpt",
"value": "'atom-text-editor:not(.mini)':\n 'alt': 'linter:set-bubble-transpare... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add config as alias for configure\n"
},
{
"from": "human",
"value": "behaviours = {}\n\nshare.attach = attach = (behaviour, args...) ->\n check behaviour, Match.OneOf Function, String\n\n if Match.test behaviour, String\n options = behaviours[behaviour].options... | coffeescript | chosen |
[
{
"from": "system",
"value": "Update meta tags instead of reimplementing ujs functionality\n"
},
{
"from": "human",
"value": "#This patches jquery_ujs, such that it grabs csrf token from localStorage\n#instead of from the meta tag.\n\n# Make sure that every Ajax request sends the CSRF token\n$.r... | coffeescript | chosen |
[
{
"from": "system",
"value": "Rearrange cs2/gd1/wd1 in outcomes report if progress seems out of order\n"
},
{
"from": "human",
"value": "utils = require 'core/utils'\nRootView = require 'views/core/RootView'\n\nmodule.exports = class OutcomesReportResultView extends RootView\n id: 'admin-outcom... | coffeescript | chosen |
[
{
"from": "system",
"value": "Extend list of supported file extensions\n\nSome manpages use a combination of their page numbers and group names in\ntheir file extensions (e.g., \"config.5ssl\"). We obviously can't cater to\nevery possible alphanumeric permutation, so we've settled for using only\nthe most c... | coffeescript | chosen |
[
{
"from": "system",
"value": "Make image fixing happen on image load rather than document ready\n"
},
{
"from": "human",
"value": "$(document).ready ->\n $('.person-headshot-actual').each ->\n # Centre headshots vertically in their containers\n container = $(this).parent()\n hAdjust = ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add extremely critical culture to the cow.\n\nAuditors: alpert\n"
},
{
"from": "human",
"value": "# Description:\n# A cow's gonna be a cow.\n#\n# Commands:\n# hubot moo* - Reply w/ moo\n\nmodule.exports = (robot) ->\n robot.hear /\\bmo{2,}\\b/i, (msg) ->\n i... | coffeescript | chosen |
[
{
"from": "system",
"value": "Improve how params and routes are looked up\n"
},
{
"from": "human",
"value": "express = require 'express'\nstylus = require 'stylus'\nassets = require 'connect-assets'\n\napp = express.createServer()\napp.use assets()\napp.set 'view engine', 'jade'\n\napp.get '/', ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Make sure that we set record and not a promise on controller\n"
},
{
"from": "human",
"value": "require 'routes/route'\nrequire 'models/job'\n\nTravisRoute = Travis.Route\n\nRoute = TravisRoute.extend\n serialize: (model, params) ->\n id = if model.get then mode... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use deleted/dirty status for panel class\n"
},
{
"from": "human",
"value": "# @cjsx React.DOM\n\n@Posts = React.createClass(\n getInitialState: ->\n { posts: [] }\n\n fetchPosts: ->\n $.get(\"/api/posts\").done(@handleSuccess).fail(@handleError)\n\n handleS... | coffeescript | chosen |
[
{
"from": "system",
"value": "Change absolute path of line 17\n"
},
{
"from": "human",
"value": "# Description:\n# Produces a random gangnam style gif\n#\n# Dependencies:\n# None\n# Configuration:\n# None\n#\n# Commands:\n# hubot oppa gangnam style - Return random gif from gifbin.com\n#\... | coffeescript | chosen |
[
{
"from": "system",
"value": "Update user setting values while the slider is changed, then redraw scene\n"
},
{
"from": "human",
"value": "### define\n./abstract_setting_view : AbstractSettingView\nunderscore : _\n###\n\nclass SliderSettingView extends AbstractSettingView\n\n\n className : \"sl... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add little aaron’s console debugging in test"
},
{
"from": "human",
"value": "window.Tahi ||= {}\nTahi.utils =\n toCamel: (string) ->\n string.replace /(\\-[a-z])/g, ($1) ->\n $1.toUpperCase().replace \"-\", \"\"\n\n windowHistory: ->\n window.history\n... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add tests for graph saving and loading\n"
},
{
"from": "human",
"value": "if typeof process isnt 'undefined' and process.execPath and process.execPath.match /node|iojs/\n chai = require 'chai' unless chai\n noflo = require '../src/lib/NoFlo.coffee'\n browser = fa... | coffeescript | chosen |
[
{
"from": "system",
"value": "Append (friendly) iframe to body if possible\n"
},
{
"from": "human",
"value": "###\nAnalytics Payload Loader\n\nThis is the `analytics.js` file that loads the actual Analytics payload. It\nutilizes the Friendly iFrames (FiF) technique in order to load the JavaScrip... | coffeescript | chosen |
[
{
"from": "system",
"value": "Make node path even smarter\n"
},
{
"from": "human",
"value": "module.exports = class Organization\n constructor: (org, @api) ->\n @orgName = if typeof org is \"object\" then org.name else org\n\n node: (path, cb) -> @api.get @apiPath(path), {}, cb\n apiPath: ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Define shared machine user kick method\n"
},
{
"from": "human",
"value": "bongo = require 'bongo'\n\n{secure} = bongo\n\nJMachine = require './computeproviders/machine'\n\n\nmodule.exports = class SharedMachine extends bongo.Base\n\n @share()\n\n\n @add = secure (... | coffeescript | chosen |
[
{
"from": "system",
"value": "Load event-palette extension in defaultConfig\n"
},
{
"from": "human",
"value": "requireExtension 'autocomplete'\nrequireExtension 'strip-trailing-whitespace'\nrequireExtension 'fuzzy-finder'\nrequireExtension 'tree-view'\nrequireExtension 'command-panel'\nrequireEx... | coffeescript | chosen |
[
{
"from": "system",
"value": ":art: Improve readability of config schema\n"
},
{
"from": "human",
"value": "module.exports =\n enableShellEscape:\n type: 'boolean'\n default: false\n moveResultToSourceDirectory:\n description: 'Ensures that the output file produced by a successful bui... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add password field to User model\n"
},
{
"from": "human",
"value": "App.User = DS.Model.extend\n firstName: DS.attr(\"string\")\n lastName: DS.attr(\"string\")\n email: DS.attr(\"string\")\n role: DS.attr(\"string\")\n\nApp.CurrentUser = App.User.extend({})\n... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add isAdmin to User model\n"
},
{
"from": "human",
"value": "App.User = DS.Model.extend\n firstName: DS.attr(\"string\")\n lastName: DS.attr(\"string\")\n email: DS.attr(\"string\")\n role: DS.attr(\"string\")\n password: DS.attr(\"string\")\n color: DS.at... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add a root attribute for the selected language"
},
{
"from": "human",
"value": "$ = require 'jqueryify'\ntranslate = require 't7e'\nenUs = require '../translations/en_us'\n\nDEFAULT = '$DEFAULT'\n\nclass LanguagePicker\n @DEFAULT = DEFAULT\n\n languages:\n 'Eng... | coffeescript | chosen |
[
{
"from": "system",
"value": "Change the jquery_ujs load path.\n"
},
{
"from": "human",
"value": "#= require turbolinks\n#= require jquery3\n#= require ./jquery_ujs\n#= require lodash\n#= require i18n\n\n#= require_self\n#= require_tree ./tao\n\nwindow.tao = {}\n"
},
{
"from": "gpt",
... | coffeescript | chosen |
[
{
"from": "system",
"value": "Disable annotation if there's a factlink button\n"
},
{
"from": "human",
"value": "rightClick = (event=window.event) ->\n if event.which\n event.which == 3\n else if event.button\n event.button == 2\n else\n false\n\nFactlink.textSelected = (e) ->\n Fac... | coffeescript | chosen |
[
{
"from": "system",
"value": "[MNOE-149] Use redirect_uri when impersonating uri\n\nAdmin will be redirected to the original page when exiting impersonation\n"
},
{
"from": "human",
"value": "@App.controller 'UserController', ($stateParams, $window, MnoeUsers) ->\n 'ngInject'\n vm = this\n\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Patch `window.it` to raise error on pending tests"
},
{
"from": "human",
"value": "# Stub jQuery.cookie\n@stubCookies =\n csrftoken: 'stubCSRFToken'\n\njQuery.cookie = (key, value) =>\n if value?\n @stubCookies[key] = value\n else\n @stubCookies[key]\n"
}... | coffeescript | chosen |
[
{
"from": "system",
"value": "Implement sample GET /user endpoint to prevent console error\n"
},
{
"from": "human",
"value": "express = require 'express'\ncourses = require './courses'\nlessons = require './lessons'\ngadgets = require './gadgets'\nassets = require './assets'\nsandbox = require '... | coffeescript | chosen |
[
{
"from": "system",
"value": "Read an env var and print it\n\nhttps://github.com/jollyra/hubot-streak-podium/issues/1\n"
},
{
"from": "human",
"value": "# Description\n# A hubot script that shows who has the longest github streak in your org\n#\n# Configuration:\n# LIST_OF_ENV_VARS_TO_SET\n#... | coffeescript | chosen |
[
{
"from": "system",
"value": "Send utcOffset to all users\n"
},
{
"from": "human",
"value": "Meteor.publish 'activeUsers', ->\n\tunless this.userId\n\t\treturn this.ready()\n\n\tconsole.log '[publish] activeUsers'.green\n\n\tMeteor.users.find\n\t\tusername:\n\t\t\t$exists: 1\n\t\tstatus:\n\t\t\t... | coffeescript | chosen |
[
{
"from": "system",
"value": "Remove load and activate methods from ThemePackage\n\nI assume these were added to speed theme loading, but now that promises\nare being used it complicates overriding methods. From my tests removing\nthese methods and relying on Atom Package's methods added ~2 ms per \ntheme."... | coffeescript | chosen |
[
{
"from": "system",
"value": "Support switching side of tabs\n"
},
{
"from": "human",
"value": "module.exports = NordAtomUiVerticalTabs =\n activate: (state) ->\n\n deactivate: ->\n"
},
{
"from": "gpt",
"value": "selfName = 'nord-atom-ui-vertical-tabs'\n\nsetDirection = (isLeft) ->... | coffeescript | chosen |
[
{
"from": "system",
"value": "Improve failCases report in ESM test\n"
},
{
"from": "human",
"value": "import printMsg from './print-msg.coffee'\n\nexport default (testResults) ->\n\ttotal = 0\n\tsuccess = 0\n\tfail = 0\n\tfailCases = []\n\n\tprintMsg('summary')\n\n\tfor result in testResults\n\t... | coffeescript | chosen |
[
{
"from": "system",
"value": "Make noideadog a little less aggressive\n"
},
{
"from": "human",
"value": "# Description:\n# Displays a \"I Have No Idea What I'm Doing\" image\n#\n# Dependencies:\n# None\n#\n# Configuration:\n# None\n#\n# Commands:\n# hubot no idea\n#\n# Notes:\n# No ide... | coffeescript | chosen |
[
{
"from": "system",
"value": "Clean module on formatter helpeR.\n"
},
{
"from": "human",
"value": "\"use strict\"\n((NS) ->\n # Filename: helpers/formatter_helper.coffee\n NS = NS or {}\n isInBrowser = typeof module is 'undefined' and typeof window isnt 'undefined'\n \n # Default confifurat... | coffeescript | chosen |
[
{
"from": "system",
"value": ":bug: Fix Instant timer signature not valid\n"
},
{
"from": "human",
"value": "# Public:\nmodule.exports = \nclass Instant\n\n ### Public ###\n\n prepare: ->\n\n finished: -> true\n\n nextTime: -> 0\n"
},
{
"from": "gpt",
"value": "# Public:\nmodule.... | coffeescript | chosen |
[
{
"from": "system",
"value": "Hide comments box when showing index\n"
},
{
"from": "human",
"value": "App.LegislationAllegations =\n\n toggle_comments: ->\n $('.draft-allegation').toggleClass('comments-on');\n\n show_comments: ->\n $('.draft-allegation').addClass('comments-on');\n\n ini... | coffeescript | chosen |
[
{
"from": "system",
"value": " Use mm fallback for gravatar when running on localhost\n"
},
{
"from": "human",
"value": "# FIXME : render runs on every data change in account object which leads to a flash on avatarview. Sinan 08/2012\n\nclass AvatarView extends LinkView\n\n constructor:(options... | coffeescript | chosen |
[
{
"from": "system",
"value": "Remove unnecessary modules from prompt tests.\n"
},
{
"from": "human",
"value": "should = require 'should'\nenvironment = require './shared/environment'\nImpromptu = require('../lib/impromptu').constructor\npromptTests = require './shared/prompt'\n\ndescribe 'Prompt... | coffeescript | chosen |
[
{
"from": "system",
"value": "Remove attributes from data-view bindings.\n"
},
{
"from": "human",
"value": "#= require ./abstract_binding\n\nclass Batman.DOM.ViewBinding extends Batman.DOM.AbstractBinding\n onlyObserve: Batman.BindingDefinitionOnlyObserve.Data\n skipChildren: true\n\n constru... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix username not being shown on reset password page\n"
},
{
"from": "human",
"value": "express = require 'express'\nrouter = express.Router()\n\n\nrouter.get '/resetPassword', (req, res) ->\n if !req.user or !req.user.data.needsReset\n return res.redirect \"/\"\... | coffeescript | chosen |
[
{
"from": "system",
"value": "Revert \"Small fix, change example to demonstrate Geometry::toJSON()\"\n\nThis reverts commit f975e01f4a79127fe55a0860ac4750edf2020d6f.\n"
},
{
"from": "human",
"value": "#!/usr/bin/env coffee\n\nWKTReader = (require \"../lib\").WKTReader\nQuadtree = (require \"../l... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add ESM test for 3 lang mods\n"
},
{
"from": "human",
"value": "###\nRun tests for each module: numbo, enUS, zhCN, zhTW.\nThis file is usable after compiling to mjs.\nDo not work in Rollup or Babel.\n###\n\n###* @type {Data} See data structure in all-data.coffee ###... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add commented example for express favicon.\n"
},
{
"from": "human",
"value": "goog.provide 'server.Middleware'\n\nclass server.Middleware\n\n ###*\n @param {Function} compression\n @param {Function} favicon\n @param {Function} bodyParser\n @param {Funct... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix slack API return error.\n"
},
{
"from": "human",
"value": "# Description:\n# A way to interact with the Stamp URI.\n#\n# Commands:\n# hubot stamp me <keyword> - The Original. Queries Stamp Images for <keyword> and returns a stamp image.\n# hubot stamp list... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add null check to pathname\n"
},
{
"from": "human",
"value": "url = require 'url'\n\nconfig = require './config'\nStreamServer = require './stream_server'\nBits = require './bits'\nlogger = require './logger'\n\nBits.set_warning_fatal true\nlogger.setLevel logger.LE... | coffeescript | chosen |
[
{
"from": "system",
"value": "Update prompt tests to use new error message.\n"
},
{
"from": "human",
"value": "should = require 'should'\nenvironment = require './shared/environment'\nImpromptu = require('../lib/impromptu').constructor\npromptTests = require './shared/prompt'\n\ndescribe 'Prompt... | coffeescript | chosen |
[
{
"from": "system",
"value": "Allow numbers in GitHub usernames."
},
{
"from": "human",
"value": "# Github Credentials allows you to map your user against your GitHub user.\n# This is specifically in order to work with apps that have GitHub Oauth users.\n#\n# who do you know - List all the users... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix up the message sent back with the status\n"
},
{
"from": "human",
"value": "# Description:\n# Get the CI status reported to GitHub for a repo and pull request\n#\n# Dependencies:\n# \"githubot\": \"0.4.x\"\n#\n# Configuration:\n# HUBOT_GITHUB_TOKEN\n# HU... | coffeescript | chosen |
[
{
"from": "system",
"value": "Remove `Flash` from todos when finished\n"
},
{
"from": "human",
"value": "class @Todos\n _this = null;\n constructor: (@name) ->\n _this = @\n @initBtnListeners()\n \n initBtnListeners: ->\n $('.done-todo').on('click', @doneClicked)\n \n doneClic... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use pjs directory for PaperScript\n"
},
{
"from": "human",
"value": "# Exports an object that defines\n# all of the configuration needed by the projects'\n# depended-on grunt tasks.\n#\n# You can familiarize yourself with all of Lineman's defaults by checking out ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Switch build status image URL to SVG.\n"
},
{
"from": "human",
"value": "@Travis.Urls =\n plainTextLog: (id) ->\n \"#{Travis.config.api_endpoint}/jobs/#{id}/log.txt?deansi=true\"\n\n githubPullRequest: (slug, pullRequestNumber) ->\n \"https://github.com/#{sl... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use node module bin for cljmt\n"
},
{
"from": "human",
"value": "\"use strict\"\npath = require('path')\nBeautifier = require('../beautifier')\n\nmodule.exports = class ClojureBeautifier extends Beautifier\n\n name: \"Clojure Beautifier\"\n link: \"https://github.... | coffeescript | chosen |
[
{
"from": "system",
"value": "Load badge counts async and only if needed\n\ncloses: CNVS-36300\n\ntest plan:\nthis chunk of js shouldn't be included in the common bundle and should\nonly be loaded if ENV.badge_counts is true and as a seperate chunk\n\n\n\nChange-Id: Ia83418cb7604c50ad91c2bf54a4fac79ca381b5... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add Caching of Ship Detail Models\n"
},
{
"from": "human",
"value": "SitsApp.Routers.Ships = Backbone.Router.extend(\r\n\troutes: \r\n\t\t\"(/)(#)\": \"index\"\r\n\t\t\"ships/detail/:id(/)\": \"detail\"\r\n\tindex: ->\r\n\t\tconsole.log('router.index')\r\n\t\tview =... | coffeescript | chosen |
[
{
"from": "system",
"value": "Create user task gets app config for mongo use\n"
},
{
"from": "human",
"value": "require('../../initializers/mongo')()\n\nUser = require('../../models/user').model\nreadline = require 'readline'\n\nrl = readline.createInterface(\n input: process.stdin\n output: p... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add precision test based on @roryokane's code\n"
},
{
"from": "human",
"value": "husl = require '../husl.coffee'\n\nsnapshot = ->\n samples = {}\n\n digits = '0123456789abcdef'\n\n # Take 16 ^ 3 = 4096 samples\n for r in digits\n for g in digits\n for b ... | coffeescript | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.