conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Apply XSS encoding in format quotes utility function\n"
},
{
"from": "human",
"value": "Encoder = require 'htmlencode'\n\nmodule.exports = (text = '') ->\n\n input = Encoder.htmlDecode text\n\n return text unless (/^>/gm).test input\n\n val = ''\n\n for line in... | coffeescript | chosen |
[
{
"from": "system",
"value": "Set checked property on togglefield\n"
},
{
"from": "human",
"value": "class Lanes.Components.ToggleField extends Lanes.React.Component\n mixins: [ Lanes.Components.Form.FieldMixin ]\n\n formGroupClass: 'toggle'\n\n renderDisplayValue: ->\n <Lanes.Ve... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix undefined error in sign-out route\n"
},
{
"from": "human",
"value": "Router.map ->\n\n @route \"entrySignIn\",\n path: \"/sign-in\"\n onBeforeRun: ->\n Session.set('entryError', undefined)\n Session.set('buttonText', 'in')\n\n @route \"entrySig... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix bug where every blog author was 'Mystery author' on blog index page\n"
},
{
"from": "human",
"value": "Router.map ->\n\n @route 'blogIndex',\n path: '/blog'\n before: ->\n if Blog.settings.blogIndexTemplate\n @template = Blog.settings.blogInde... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use current stable version of Sinon.JS, require browser packaged version when using webpack, fix usage of sinon-chai\n"
},
{
"from": "human",
"value": "class WebpackConfig\n\n getDefaultConfiguration: ->\n module:\n loaders: [\n {test: /\\.coffee$/i,... | coffeescript | chosen |
[
{
"from": "system",
"value": "Implement deactivate that offs subscription\n"
},
{
"from": "human",
"value": "SpellCheckView = null\n\nmodule.exports =\n configDefaults:\n grammars: [\n 'text.plain'\n 'source.gfm'\n 'text.git-commit'\n ]\n\n createView: (editorView) ->\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Sort party list in descending order\n"
},
{
"from": "human",
"value": "class PartyListView extends Backbone.View\n el: $('div.party-list')\n el_gov: $('ul.party-list-government')\n el_oppo: $('ul.party-list-opposition')\n\n render: ->\n @collectio... | coffeescript | chosen |
[
{
"from": "system",
"value": "Create url for avatar download\n"
},
{
"from": "human",
"value": "store = new FS.Store.FileSystem \"images\",\n\tpath: \"~/uploads\"\n\tfileKeyMaker: (fileObj) ->\n\t\tfilename = fileObj.name()\n\t\tfilenameInStore = fileObj.name({store: 'images'})\n\n\t\treturn fil... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use atom.commands to register commands\n"
},
{
"from": "human",
"value": "GitHubFile = require './github-file'\n\nmodule.exports =\n configDefaults:\n includeLineNumbersInUrls: true\n\n activate: ->\n return unless atom.project.getRepo()?\n\n atom.worksp... | coffeescript | chosen |
[
{
"from": "system",
"value": "Remove setting count to zero, it makes it cluncky\n"
},
{
"from": "human",
"value": "# Place all the behaviors and hooks related to the matching controller here.\n# All this logic will automatically be available in application.js.\n# You can use CoffeeScript in this... | coffeescript | chosen |
[
{
"from": "system",
"value": "Load method for future preloading\n"
},
{
"from": "human",
"value": "# Placeholder Polyfill\n# https://github.com/mathiasbynens/jquery-placeholder\n$(window).load ->\n $(\"input, textarea\").placeholder()\n\n# Sammy\n(($) ->\n circle = $.sammy(\"body\", ->\n\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use correct path in error message\n"
},
{
"from": "human",
"value": "path = require 'path'\noptimist = require 'optimist'\nasync = require 'async'\narchive = require './ls-archive'\n\nmodule.exports = ->\n files = optimist.usage('Usage: lsa [file ...]') .demand(1).... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use correct labels for 'Favourite' button\n"
},
{
"from": "human",
"value": "class window.FavouriteTopicButtonView extends ActionButtonView\n mini: true\n\n onRender: -> @updateButton()\n\n initialize: ->\n @bindTo @model, 'change', @updateButton, @\n @user... | coffeescript | chosen |
[
{
"from": "system",
"value": "Change url for ip route\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# /hubot/version\n# /hubot/ping\... | coffeescript | chosen |
[
{
"from": "system",
"value": "Make multi-line regex test more strict\n\nRegex patterns can only match across line boundaries if they contain a\ncarriage return, a newline, or a negated character class.\n"
},
{
"from": "human",
"value": "Point = require './point'\n\nSpliceArrayChunkSize = 100000\... | coffeescript | chosen |
[
{
"from": "system",
"value": "Remove rouge console.log file from the issues list view\n"
},
{
"from": "human",
"value": "define [\n 'jquery'\n 'underscore'\n 'backbone'\n 'jade.templates'\n 'mixen'\n 'mixens/BaseViewMixen'\n 'mixens/CollectionViewMixen'\n], ($, _, Backbone, jade, Mixen, B... | coffeescript | chosen |
[
{
"from": "system",
"value": "Stop trying to make Map a polyfill.\n\nES6's map does provide items(), but it returns an iterator. It only really makes\nsense to use it if we have `for-of` loops, so there's little point in trying to\nfill in that behavior at the moment.\n"
},
{
"from": "human",
"v... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add Promise.all/race/resolve/reject & improve then/catch\n"
},
{
"from": "human",
"value": "\".source.js\":\n \"Promise\":\n prefix: \"promise\",\n body: \"\"\"\n new Promise((resolve, reject) => {\n \\t${0}\n });\n \"\"\"\n \"Promise.then\":\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Switch cson keys to be single quoted\n"
},
{
"from": "human",
"value": "menu: [\n {\n label: 'View'\n submenu: [\n {\n label: 'Toggle Treeview'\n command: 'tree-view:toggle'\n }\n ]\n }\n]\n\n'context-menu':\n '.tree-view':\n '... | coffeescript | chosen |
[
{
"from": "system",
"value": "Remove some parens per @markijbema's suggestion.\n"
},
{
"from": "human",
"value": "$( ->\n $modal = $('.js-feedback-modal')\n $iframe = $('.js-feedback-modal iframe')\n iframeIsLoaded = false\n\n openFeedbackFrame = ->\n iframeIsLoaded = true\n $modal.fad... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix multiple tooltips in stream; don't clean up positionedRegion if it wasn't created.\n"
},
{
"from": "human",
"value": "Backbone.Factlink ||= {}\n\nclass TooltipCreator\n constructor: (@_$offsetParent, @_positioning, @_tooltipViewFactory)->\n\n createTooltip: ($... | coffeescript | chosen |
[
{
"from": "system",
"value": "Comment out my local tasks"
},
{
"from": "human",
"value": "module.exports = (grunt) ->\n grunt.initConfig\n pkgFile: 'package.json'\n\n files:\n adapter: ['src/adapter.js']\n\n build:\n adapter: '<%= files.adapter %>'\n\n # JSHint options\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Save collapsibles state so that changing countries for a new location keeps the collapsible expanded\n"
},
{
"from": "human",
"value": "# These includes mimic the includes in the phonegap app. Everything\n# else is loaded in application_extra.js.coffee\n\n#= require... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix question wont remove bug\n"
},
{
"from": "human",
"value": "jQuery ->\n $('form').on 'click', '.remove_fields', (event) ->\n $(this).prev('input[type=hidden]').val('1')\n $(this).closest('div.question').hide()\n $(this).closest('fieldset').hide()\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add add method to Size"
},
{
"from": "human",
"value": "\n#\nmodule.exports =\nclass Size\n @create: (width, height) ->\n return width if width instanceof Size\n if Array.isArray(width)\n new Size(width[0], width[1])\n else\n new Size(width, heig... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add key bindings for block travel\n"
},
{
"from": "human",
"value": "'atom-workspace':\n 'ctrl-cmd-r': 'tree-view:reveal-active-file'\n 'ctrl-cmd-t': 'window:run-package-specs'\n 'ctrl-shift-alt-t': 'custom:open-todo-list'\n'atom-text-editor':\n 'ctrl-shift-a': ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Move persistency area to the bottom\n"
},
{
"from": "human",
"value": "React = require 'react'\nR = require 'ramda'\n\nserialize = require '../../builder/serializer'\n\nSimulationHeader = require './simulation_header'\nObservable = require './observable'\nPersistenc... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add option to pass data into render fn\n"
},
{
"from": "human",
"value": "ns2path = (ns)->\n ns.replace(\".\",\"/\").toLowerCase()\n\nLanes.Templates.find = (name, namespace) ->\n return Lanes.Templates[name] if Lanes.Templates[name]\n if namespace?\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "FIX: Remove console log from privacy policy page\n"
},
{
"from": "human",
"value": "angular.module(\"doubtfire.config.privacy-policy\", [])\n\n.factory('PrivacyPolicy', ($http, api) ->\n privacyPolicy = {\n privacy: '',\n plagiarism: '',\n loaded: false,\n... | coffeescript | chosen |
[
{
"from": "system",
"value": "Make sure isSuperTypeOf works as expected.\n"
},
{
"from": "human",
"value": "ProxyType = require '../../../../src/finitio/type/proxy_type'\nshould = require 'should'\n{intType,\n byteType} = require '../../../spec_helpers'\n\ndescribe \"ProxyType#isSuperTypeOf... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix int parsing for port\n"
},
{
"from": "human",
"value": "mongoAdapter = require 'sails-mongo'\n\nmodule.exports =\n db:\n adapters:\n mongo: mongoAdapter\n connections:\n default:\n adapter: 'mongo'\n url: process.env.MONGOLAB_URI\n... | coffeescript | chosen |
[
{
"from": "system",
"value": ":fire: Remove use of workspaceView in tests\n"
},
{
"from": "human",
"value": "{WorkspaceView} = require 'atom'\nTableEdit = require '../lib/table-edit'\n\n# Use the command `window:run-package-specs` (cmd-alt-ctrl-p) to run specs.\n#\n# To run a specific `it` or `d... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add GA call upon click on Sign Up button\n"
},
{
"from": "human",
"value": "SublimeVideo.UI.Utils =\n makeSticky: (element, cssSelector) ->\n $(\"#{cssSelector} .active\").each -> jQuery(this).removeClass 'active'\n\n element.addClass 'active'\n if li = el... | coffeescript | chosen |
[
{
"from": "system",
"value": "Switch to the log in page on log out.\n"
},
{
"from": "human",
"value": "'use strict'\n\nangular.module('xoWebApp')\n .controller 'NavBarCtrl', ($scope, $location, xoApi) ->\n # TODO: It would make sense to inject xoApi in the scope.\n $scope.$watch(\n -... | coffeescript | chosen |
[
{
"from": "system",
"value": "Remove leading whitespace from prefix\n"
},
{
"from": "human",
"value": "{View, Range} = require 'atom'\n\nmodule.exports =\nclass SearchResultView extends View\n @content: ({filePath, match}) ->\n range = Range.fromObject(match.range)\n matchStart = range.st... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add 6to5 step to default task\n"
},
{
"from": "human",
"value": "module.exports = (grunt) ->\n\n require('time-grunt')(grunt)\n\n require('load-grunt-config') grunt,\n jitGrunt: true\n\n grunt.registerTask 'default', ['clean', 'amd_tamer', 'uglify']\n \n gru... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix binding on share event\n"
},
{
"from": "human",
"value": "_ = require '../../utils/lodash'\nEventBus = require '../../utils/eventbus'\nassign = require '../../polyfills/assign'\n\n\nclass Tracker\n constructor : (api, remoteConfig, config)->\n @api ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Revert \"Add dummy select method for collections\"\n\nThis reverts commit 970df639ef8f65cb4ac24a9391db2b896bd0b814.\n"
},
{
"from": "human",
"value": "Augury.Routers.Connections = Backbone.Router.extend(\n routes:\n \"connections/new\": \"new\"\n \"connection... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix key dependencies for unread comments count\n"
},
{
"from": "human",
"value": "ETahi.DashboardLinkView = Em.View.extend\n templateName: 'dashboard_link'\n\n paperId: Ember.computed.alias('content.id')\n\n unreadCommentsList: Ember.computed.filter 'unreadCommen... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use fresh scope for each quantity field\n"
},
{
"from": "human",
"value": "Darkswarm.directive \"validateStockQuantity\", (StockQuantity) ->\n restrict: 'A'\n require: \"ngModel\"\n\n link: (scope, element, attr, ngModel) ->\n ngModel.$parsers.push (selectedQu... | coffeescript | chosen |
[
{
"from": "system",
"value": "Switch default font to powerline enabled\n"
},
{
"from": "human",
"value": "\"*\":\n \"atom-beautify\":\n python:\n beautify_on_save: true\n sort_imports: true\n \"autocomplete-python\":\n extraPaths: \".venv/lib/python3.5/site-packages;.venv/lib/p... | coffeescript | chosen |
[
{
"from": "system",
"value": "Make the smoke-writing test actually using various blueprint slices\n"
},
{
"from": "human",
"value": "{assert} = require 'chai'\n\nfs = require 'fs'\n\nDrafter = require '../../src/drafter'\n\ndescribe 'Typing test', ->\n blueprint = fs.readFileSync './test/fixtur... | coffeescript | chosen |
[
{
"from": "system",
"value": "Change import path of Polymer library\n\nIt seems that most custom elements in the wild live in the `/elements`\ndirectory, while the Polymer platform lives in\n`/bower_components/polymer/polymer.html`.\n"
},
{
"from": "human",
"value": "\".text.html\":\n \"polymer... | coffeescript | chosen |
[
{
"from": "system",
"value": "Increase delay for showing loading overlay\n"
},
{
"from": "human",
"value": "###\n# Copyright 2015 ppy Pty. Ltd.\n#\n# This file is part of osu!web. osu!web is distributed with the hope of\n# attracting more community contributions to the core ecosystem of osu!.\n#... | coffeescript | chosen |
[
{
"from": "system",
"value": "Update menu when right clicking\n\n"
},
{
"from": "human",
"value": "# See https://atom.io/docs/latest/hacking-atom-package-word-count#menus for more details\n'context-menu':\n 'atom-text-editor': [\n {\n 'label': 'Test Navigator'\n 'command': 'test-na... | coffeescript | chosen |
[
{
"from": "system",
"value": "Call info and update the latestState after each operation\n"
},
{
"from": "human",
"value": "class VirtualizationController extends KDController\n\n constructor:->\n super\n @kc = KD.singletons.kiteController\n\n _cbWrapper:(callback, emitStateChanged)->\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Remove task reload in route\n\n- Server side events/polling will keep the tasks updated in the future\n"
},
{
"from": "human",
"value": "ETahi.PaperTaskRoute = Ember.Route.extend\n model: (params) ->\n paperTasks = _.flatten @modelFor('paper').get('phases').mapP... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add unfollow button to profile if already following\n"
},
{
"from": "human",
"value": "class TentStatus.Views.ProfileFollowButton extends Backbone.View\n initialize: (options = {}) ->\n @parentView = options.parentView\n\n @buttons = {}\n @buttons.submit =... | coffeescript | chosen |
[
{
"from": "system",
"value": "Disable Dogeparty testnet since there is no installation currently\n"
},
{
"from": "human",
"value": "shared = require(\"./_shared\")\n\ndogeparty = (addr) -> shared.party(addr, [[\"XDP\", \"https://wallet.dogeparty.io/_api\"], [\"XDPTEST\", \"http://testnet.wallet.... | coffeescript | chosen |
[
{
"from": "system",
"value": "Enable keymap for Python grammar only.\n\nFixes #10.\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 b... | coffeescript | chosen |
[
{
"from": "system",
"value": "chore: Add headless Chrome parameters to work on ResinCi\n\nChange-type: patch\nDepends-on: https://github.com/resin-io/resin-concourse/pull/248/\nSigned-off-by: Thodoris Greasidis <5791bdc4541e79bd43d586e3c3eff1e39c16665f@resin.io>"
},
{
"from": "human",
"value": "... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix radio checked class and changes to support the new html\n"
},
{
"from": "human",
"value": "Neighborly.Neighborly.Balanced ?= {}\nNeighborly.Neighborly.Balanced.Creditcard ?= {}\nNeighborly.Neighborly.Balanced.Creditcard.Payments ?= {... | coffeescript | chosen |
[
{
"from": "system",
"value": "Remove timeout after gender selection\n"
},
{
"from": "human",
"value": "angular.module 'jquest'\n .controller 'MainSeasonPgLevelRoundGenderCtrl', (seasons, seasonRestangular, $timeout, $state)->\n 'ngInject'\n new class MainSeasonPgLevelRoundGenderCtrl\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Update layout on new block\n"
},
{
"from": "human",
"value": "class ledger.tasks.TransactionObserverTask extends ledger.tasks.Task\n\n constructor: () -> super 'global_transaction_observer'\n\n onStart: () ->\n @_listenNewTransactions()\n\n onStop: () ->\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Set special \"if\" bindings in Output module\n"
},
{
"from": "human",
"value": "###\n@TODO\n\n@namespace Atoms.COre\n@class Output\n\n@author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi\n###\n\"use strict\"\n\nAtoms.Core.Output =\n\n method: \"append\"\n\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use mocha's dot reporter on travis\n"
},
{
"from": "human",
"value": "module.exports = (grunt) ->\n\n grunt.loadNpmTasks('grunt-contrib-coffee')\n grunt.loadNpmTasks('grunt-contrib-jshint')\n grunt.loadNpmTasks('grunt-contrib-watch')\n grunt.loadNpmTasks('grunt-... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add a project entry for the new Homebrew-Troff tap\n"
},
{
"from": "human",
"value": "[\n\t{\n\t\ttitle: \".atom\"\n\t\tpaths: [\n\t\t\t\"~/.atom\"\n\t\t]\n\t\ticon: \"atom-icon\"\n\t\tdevMode: true\n\t}\n\t{\n\t\ttitle: \".files\"\n\t\tpaths: [\n\t\t\t\"~/.files\"\... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use full path to signtool.bat\n"
},
{
"from": "human",
"value": "path = require 'path'\n\nmodule.exports = (grunt) ->\n {spawn} = require('./task-helpers')(grunt)\n\n grunt.registerTask 'codesign', 'Codesign the app', ->\n done = @async()\n\n if process.plat... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix keymap not binding problem\n"
},
{
"from": "human",
"value": "'atom-text-editor[data-grammar~=\"latex\"]':\n 'ctrl-alt-b': 'Atom-LaTeX:build'\n 'ctrl-alt-h': 'atom-latex:build-here'\n 'ctrl-alt-p': 'Atom-LaTeX:preview'\n 'ctrl-alt-t': 'Atom-LaTeX:preview-tab... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add grunt watch for test resources\n"
},
{
"from": "human",
"value": "module.exports = (grunt) ->\n require('jit-grunt')(grunt)\n\n require('time-grunt')(grunt) if grunt.option 'time'\n\n grunt.initConfig\n jasmine_nodejs:\n options:\n specNameSuff... | coffeescript | chosen |
[
{
"from": "system",
"value": "Change function call in users router from displayLineActivity to displayGithubActivity.\n"
},
{
"from": "human",
"value": "class App.Routers.Users extends App.Router\n\n routes:\n \"dashboard\" : \"edit\"\n \":username\" : \"show\"\n\n show: (username)->\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix listening port for production\n"
},
{
"from": "human",
"value": "app = require('express')()\n\napp.get '/', (req, res) ->\n res.send 'Hello World!'\n console.log 'GET /'\n\napp.listen(3000)\n"
},
{
"from": "gpt",
"value": "app = require('express')(... | coffeescript | chosen |
[
{
"from": "system",
"value": "Enable collection to be a getter\n"
},
{
"from": "human",
"value": "module.exports = (tasks, choice, data, onResult) ->\n state =\n finished: false\n fulfilled: []\n rejected: []\n choices: []\n countFulfilled: ->\n full = state.fulfilled.filter... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix broken alert div not closing\n"
},
{
"from": "human",
"value": "$(document).on 'ready page:load page:restore', ->\n $(document).foundation\n\n $a = $('.awesome-share-buttons').find('a')\n $a.each (index, element) ->\n $this = $(this)\n title = $this.att... | coffeescript | chosen |
[
{
"from": "system",
"value": "Return null instead of throwing an exception\n"
},
{
"from": "human",
"value": "native_methods.sun.net.spi.DefaultProxySelector = [\n o 'init()Z', (rs) -> true\n o 'getSystemProxy(Ljava/lang/String;Ljava/lang/String;)Ljava/net/Proxy;', (rs) ->\n rs.java_throw r... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix the verbiage if no path is specified at all.\n"
},
{
"from": "human",
"value": "{View} = require 'space-pen'\n{GitNotFoundError} = require '../git-bridge'\n\nclass GitNotFoundErrorView extends View\n\n @content: (err) ->\n @div class: 'overlay from-top padde... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add tab meta methods on palette element\n"
},
{
"from": "human",
"value": "class PaletteElement extends HTMLElement\n getModel: -> @palette\n\n setModel: (@palette) ->\n\nmodule.exports = PaletteElement =\ndocument.registerElement 'pigments-palette', {\n prototyp... | coffeescript | chosen |
[
{
"from": "system",
"value": "Improve the syntax of the runtime helper function\n"
},
{
"from": "human",
"value": "# Define a Sumatra plugin as a jQuery plugin.\n#\n# Example:\n# sumatra 'myPlugin', ->\n# class MyPlugin extends SumatraPlugin\n# action: null\n# initializ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add 'click' handler to a.btn.cancel in .modal to close modal\n"
},
{
"from": "human",
"value": "$ ->\n $(\".tabs\").tab()\n$ ->\n $(\"a[rel=twipsy]\").tooltip live: true\n$ ->\n $(\"a[rel=popover]\").popover offset: 10\n$ ->\n $('.dropdown-toggle').dropdown()\n$... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add isCurrentUser property to UserItemController\n"
},
{
"from": "human",
"value": "App.UserItemController = Em.ObjectController.extend\n actions:\n remove: ->\n user = @get(\"model\").deleteRecord()\n successCallback = =>\n console.log(\"delet... | coffeescript | chosen |
[
{
"from": "system",
"value": "Remove refresh. Already called in parent controller\n"
},
{
"from": "human",
"value": "angular.module(\"app\").controller \"AccountBalancesController\", ($scope, $location, $stateParams, $state, Wallet, Utils) ->\n \n\n $scope.accounts = Wallet.accounts\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Change string encoding function from escape to encodeURIComponent\nEncode function could not multibyte string for url.\n"
},
{
"from": "human",
"value": "# Description:\n# Interacts with the Google Maps API.\n#\n# Commands:\n# hubot map me <query> - Returns a ma... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add tooltip to course timezone change\n"
},
{
"from": "human",
"value": "React = require 'react'\nRouter = require 'react-router'\n\n{CourseStore} = require '../../../flux/course'\n\nTimeZoneSettingsLink = React.createClass\n\n propTypes:\n courseId: React.PropT... | coffeescript | chosen |
[
{
"from": "system",
"value": "Move pythonTools assignment to beforeEach\n"
},
{
"from": "human",
"value": "PythonTools = require '../lib/python-tools'\n\ndescribe \"PythonTools\", ->\n beforeEach ->\n waitsForPromise ->\n atom.packages.activatePackage('python-tools')\n\n describe \"whe... | coffeescript | chosen |
[
{
"from": "system",
"value": "Utils: Use native array.join to concat strings.\n\ncihangir <3\n"
},
{
"from": "human",
"value": "goog.provide 'spark.utils'\n\n\ncounter = Math.floor Math.random() * 2147483648\n\n\n###*\n Returns a unique id. Ported from TartJS.\n https://github.com/tart/tartJS/... | coffeescript | chosen |
[
{
"from": "system",
"value": "Change get full name and add get rut\n"
},
{
"from": "human",
"value": "# Description\n# Obtiene el nombre de la persona o empresa del RUT consultado\n#\n# Commands:\n# hubot info rut <rut> -> RUT: <rut>, Nombre: <nombre>\n#\n# Author:\n# lgaticaq\n\ninfoRut =... | coffeescript | chosen |
[
{
"from": "system",
"value": "Test env doesn't need rails.js\n"
},
{
"from": "human",
"value": "#= require qunit\n#= require rails\n#= require_directory ./unit\n\nwindow.setupFrame = (env, url) ->\n stop()\n\n env.iframe = document.createElement 'iframe'\n env.iframe.src = \"/frame\"\n env.i... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add redirect from dashboard to user page\n"
},
{
"from": "human",
"value": "define ['angular', 'angularRoute', 'controllers'], (angular) ->\n getFirstPage = ->\n if window.isAuthenticated\n '/user/' + window.user + '/'\n else\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Revert \"Reduce spec timeout duration\"\n\nThis reverts commit e03df6e1a48fea12782b25df0b81790e4f4a056c.\n"
},
{
"from": "human",
"value": "exports.beforeEach = (fn) ->\n global.beforeEach ->\n result = fn()\n if result instanceof Promise\n waitsForPromi... | coffeescript | chosen |
[
{
"from": "system",
"value": "Update to a better CoffeeScript syntax\n\nFixes #4\nFixes #6\n"
},
{
"from": "human",
"value": "argv = require('yargs')\n .options('d', {\n alias: 'dir',\n default: '.',\n describe: 'Served files directory'\n })\n .options('p', {\... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add closing tag to turbolinks loading message.\n"
},
{
"from": "human",
"value": "#= require libraries\n#= require_tree .\n\n$ ->\n $('.alert').delay(4000).fadeOut('slow')\n $('.chosen').chosen()\n $('.timeago').timeago()\n\n# Have a loading screen when turbolink... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix search result lmo href\n"
},
{
"from": "human",
"value": "angular.module('loomioApp').directive 'previousProposalsCard', ($routeParams) ->\n scope: {discussion: '='}\n restrict: 'E'\n templateUrl: 'generated/components/thread_page/previous_proposals_card/prev... | coffeescript | chosen |
[
{
"from": "system",
"value": "Allow save mentions to 'all'\n"
},
{
"from": "human",
"value": "###\n# Mentions is a named function that will process Mentions\n# @param {Object} message - The message object\n###\n\nclass MentionsServer\n\tconstructor: (message) ->\n\t\t# If message starts with /me... | coffeescript | chosen |
[
{
"from": "system",
"value": "Activity: Fix wrong comment ordering on pageLoad bug\n"
},
{
"from": "human",
"value": "class CommentListViewController extends KDListViewController\n\n constructor: (options = {}, data) ->\n\n options.viewOptions or=\n type : 'comments'\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use => for clearer code\n"
},
{
"from": "human",
"value": "currentTest = {}\nstartTime = null\n\nQUnit.testStart (context) ->\n currentTest = {}\n currentTest.name = context.name\n currentTest.assertions = 0\n currentTest.backtrace = []\n startTime = (new Date(... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix unknown props on croppedImage svg\n"
},
{
"from": "human",
"value": "React = require 'react'\nReactDOM = require 'react-dom'\n\nmodule.exports = React.createClass\n XLINK_NS: 'http://www.w3.org/1999/xlink'\n\n getDefaultProps: ->\n src: ''\n aspectRatio:... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use the configured default extension\n\nRight now the code does not take defaultExtension into account.\n"
},
{
"from": "human",
"value": "sysPath = require 'path'\ncompileHBS = require './ember-handlebars-compiler'\n\nmodule.exports = class EmberHandlebarsComp... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add white list to Rails example config\n\n\tmodified: examples/rails.coffee\n"
},
{
"from": "human",
"value": "exports.config = (config) ->\n # File path glob patterns.\n # All file paths matching these glob patterns will be watched for changes,\n # and when th... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use node's require instead of internal require\n"
},
{
"from": "human",
"value": "{View} = require 'space-pen'\n$ = require 'jquery'\n_ = nodeRequire 'underscore'\n\nmodule.exports =\nclass WrapGuideView extends View\n @activate: ->\n rootView.eachEditor (editor... | coffeescript | chosen |
[
{
"from": "system",
"value": "Set default BibTeX library in Atom\n"
},
{
"from": "human",
"value": "\"*\":\n editor:\n showIndentGuide: true\n fontFamily: \"Inconsolata\"\n invisibles: {}\n scrollPastEnd: true\n softWrap: true\n softWrapAtPreferredLineLength: true\n preferr... | coffeescript | chosen |
[
{
"from": "system",
"value": "Remove commented out line and ;\n"
},
{
"from": "human",
"value": "linterPath = atom.packages.getLoadedPackage(\"linter\").path\nLinter = require \"#{linterPath}/lib/linter\"\n{CompositeDisposable} = require 'atom'\n\nclass LinterPhp extends Linter\n # The syntax t... | coffeescript | chosen |
[
{
"from": "system",
"value": "AdminMembersView: Put current blocked users view into modal.\n"
},
{
"from": "human",
"value": "kd = require 'kd'\nKDView = kd.View\nKDTabView = kd.TabView\nKDTabPaneView = kd.TabPaneView\nTeamMembersCommonView =... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix for boolean example validation.\n\nOnly fail when boolean example isn't true or false - previous version always failed (example can't be both true and false at the same time)."
},
{
"from": "human",
"value": "validateParameters = (params) ->\n result = {\n w... | coffeescript | chosen |
[
{
"from": "system",
"value": "Clean up, don't allocate an extra date\n"
},
{
"from": "human",
"value": "\nmodule.exports = (obj, methodName, key, logger) ->\n\tmetrics = require('./metrics')\n\n\tif typeof obj[methodName] != 'function'\n\t\tthrow new Error(\"[Metrics] expected object property '#... | coffeescript | chosen |
[
{
"from": "system",
"value": "Write out actual JSON duh\n"
},
{
"from": "human",
"value": "moment = require('moment')\nconfig = require('./config')\nutil = require('util')\n\nmodule.exports = (program) ->\n posts = []\n config.postsDb.createReadStream()\n .on('data', (data) ->\n write ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add tests for transactions table labels.\n"
},
{
"from": "human",
"value": "describe \"DotLedger.Views.Transactions.Table\", ->\n createView = ->\n collection = new DotLedger.Collections.Transactions\n\n view = new DotLedger.Views.Transactions.Table\n c... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add a few more comments in example.\n"
},
{
"from": "human",
"value": "connect = require 'connect'\nexpress = require 'express'\nrequisite = require 'requisite'\nroot = require('./utils').root\nstylus = require 'stylus'\n\napp = express()\n\napp.set 'vie... | coffeescript | chosen |
[
{
"from": "system",
"value": "Revert removal of js extension\n"
},
{
"from": "human",
"value": "path = require 'path'\nfs = require 'fs'\nmkdirp = require 'mkdirp'\nMetaCoffee = (require './prettyfier') require './index'\n\ntargetDirectory = process.argv[2]\nfileName = proc... | coffeescript | chosen |
[
{
"from": "system",
"value": "Remove tuple creation service in tab ctrl\n"
},
{
"from": "human",
"value": "angular.module('clurtch.components.tabs.find.controllers', [])\n\n\n.controller 'FindCtrl', [\n '$scope'\n 'Yelp'\n 'SortTwoColumns'\n ($scope, Yelp, SortTwoColumns)->\n Yelp.get().s... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add test helper to render into document\n"
},
{
"from": "human",
"value": "React = require('react/addons')\nTestUtils = React.addons.TestUtils\n\nmodule.exports =\n # Generates a shallow render for a given component with properties and children\n shallowRender... | coffeescript | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.