conversations listlengths 2 3 | source stringclasses 1 value | stack stringclasses 1 value |
|---|---|---|
[
{
"from": "system",
"value": "Use soft wrap instead of font size in example hack\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 ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use same code to print extension-installation message\n"
},
{
"from": "human",
"value": "determineBrowser = ->\n [ 'chrome', 'firefox', 'safari', 'phantom_js', 'unsupported-browser' ]\n .filter( (browser) -> $('html.'+browser).length\n )[0]\nwindow.ReactInstallEx... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix test according to changes in smtp mailer."
},
{
"from": "human",
"value": "mailer = null\n\ndescribe \"Salad.Mailer\", ->\n before ->\n mailer = new App.WelcomeMailer\n\n describe \"#render\", ->\n it \"should render templates\", ->\n\n content = ma... | coffeescript | chosen |
[
{
"from": "system",
"value": "Solve undefined for App.Common when is no App defined\n"
},
{
"from": "human",
"value": "window.Initjs =\n initialize: ->\n infos = $(\"#init-js\")\n controllerClass = infos.data(\"controller-class\")\n controllerName = infos.data(\"controller-name\")\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Change mocha reported to 'spec'\n"
},
{
"from": "human",
"value": "module.exports = (grunt) ->\n\n grunt.initConfig\n coffee:\n compile:\n files:\n 'test/test.js': 'test/*.coffee',\n 'dist/lib/geekywalletlib.js': 'lib/geekywalletlib... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add flattening for grunt copy\n"
},
{
"from": "human",
"value": "module.exports = (grunt) -> \n\t\n\t# Project configuration\n\tgrunt.initConfig {\n\t\tpkg: grunt.file.readJSON 'package.json'\n\n\t\tuglify: {\n\t\t\toptions: {\n\t\t\t\tbanner: '/*! <%= pkg.name %> <... | coffeescript | chosen |
[
{
"from": "system",
"value": "Allow double dollar before period\n"
},
{
"from": "human",
"value": "{ Disposable } = require 'atom'\n\nmodule.exports =\nclass Syntax extends Disposable\n constructor: (latex) ->\n @latex = latex\n\n dollarsign: ->\n editor = atom.workspace.getActiveTextEdi... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add github-hook-manager to list of scripts\n"
},
{
"from": "human",
"value": "fs = require 'fs'\npath = require 'path'\n\nscripts = ['github-event-announcer.coffee']\n\nmodule.exports = (robot) ->\n scriptsPath = path.resolve(__dirname, 'src')\n\n fs.exists script... | coffeescript | chosen |
[
{
"from": "system",
"value": "Update to use new upnp-device API\n"
},
{
"from": "human",
"value": "upnp = require 'upnp'\nconfig =\n app:\n name: 'Bragi'\n version: '0.0.1'\n url: 'http://'\n device:\n type: 'MediaServer'\n version: '1.0'\n\nupnp.start co... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add wiggle coordinates, show markers, polylines\n"
},
{
"from": "human",
"value": "$ ->\n\tmyOptions =\n\t\tcenter: new google.maps.LatLng(-34.397, 150.644)\n\t\tzoom: 8\n\t\tdisableDefaultUI: true\n\t\tmapTypeId: google.maps.MapTypeId.ROADMAP\n\tmap = new google.ma... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use firefox until chrome driver fixed on OSX 10.9\n"
},
{
"from": "human",
"value": "assert = require 'assert'\nwebdriver = require 'selenium-webdriver'\nprotractor = require 'protractor'\ndbhelper = require '../../lib/dbhelper'\n\nworldDefinition = () ->\n\n ptor ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Disable URL corruption by TinyMCE\n"
},
{
"from": "human",
"value": "#= override this file in your application to add custom behaviour\n\n$ ->\n $(\".tinymce-trigger\").click ->\n tinymce.init\n selector:'.tinymce-editable',\n plugins: \"image link tab... | coffeescript | chosen |
[
{
"from": "system",
"value": "Check for event object before stopping its propagation\n"
},
{
"from": "human",
"value": "Emberella = window.Emberella\nget = Ember.get\nset = Ember.set\n\nEmberella.FocusableMixin = Ember.Mixin.create\n\n ###\n @property isFocusable\n @type Boolean\n @def... | coffeescript | chosen |
[
{
"from": "system",
"value": "Remove console log on furatto demo"
},
{
"from": "human",
"value": "jQuery ->\n\n #Pagination Demo\n $(\".pagination a\").click (e) ->\n e.preventDefault()\n if (!$(this).parent().hasClass(\"previous\") && !$(this).parent().hasClass(\"next\"))\n $(this)... | coffeescript | chosen |
[
{
"from": "system",
"value": "Remove black-magic from set method\n"
},
{
"from": "human",
"value": "class @IntermediateModel\n _events: {}\n data: []\n\n constructor: ->\n @fetch()\n\n get: (key) ->\n @[key]\n\n set: (key, value, silent) ->\n @[key] = value\n if not @_events[key... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use skinny arrow for rootView.eachEditor callback\n"
},
{
"from": "human",
"value": "{View} = require 'space-pen'\n$ = require 'jquery'\n_ = require 'underscore'\n\nmodule.exports =\nclass WrapGuideView extends View\n @activate: ->\n rootView.eachEditor (editor)... | coffeescript | chosen |
[
{
"from": "system",
"value": "Set stylesheet path for old android fallback\n"
},
{
"from": "human",
"value": "class App\n\n Routers: {}\n\n Models: {}\n\n Collections: {}\n\n Views: {}\n\n init: ->\n window.flight = new Flight()\n new @Routers.AppRouter\n Backbone.history.start()\n... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use server React with addons by default.\n"
},
{
"from": "human",
"value": "config = require './config'\n\nif !config.env.development || require('piping')()\n\n # Server-side Google Closure for development.\n if config.env.development\n require '../../bower_com... | coffeescript | chosen |
[
{
"from": "system",
"value": "Allow reading API and secret keys from env vars\n"
},
{
"from": "human",
"value": "authentication = require 'passport'\n{Strategy} = require 'passport-linkedin'\n{VIE} = require \"#{__dirname}/../palsu/static/deps/vie-2.0.0.js\"\nvieRedis = require \"#{__dirname}/..... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use JSONB not JSON column type\n"
},
{
"from": "human",
"value": "Settings = require \"settings-sharelatex\"\nlogger = require \"logger-sharelatex\"\n_ = require \"underscore\"\n\nif !Settings.analytics?.postgres?\n\tmodule.exports =\n\t\trecordEvent: (user_id, even... | coffeescript | chosen |
[
{
"from": "system",
"value": "Revert \"Call the callback, really\"\n\nThis reverts commit fe3af22bf22254ce3c39112c347763451dbf2979.\n"
},
{
"from": "human",
"value": "class AsciiIo.DataUnpacker\n unpack: (base64BzippedData, callback) ->\n data = atob base64BzippedData\n\n if data[0] == 'B... | coffeescript | chosen |
[
{
"from": "system",
"value": "Update example to take advantage of improved setters"
},
{
"from": "human",
"value": "Monkey.registerView 'post', '''\n div[id=\"monkey\"]\n h1 title\n p body\n h3 \"Comments\"\n form[submit=postComment]\n p\n textarea[change=commentEdited]\... | coffeescript | chosen |
[
{
"from": "system",
"value": "Include an extra line `process.mixin require 'sys'` on the top to let the .js output run using node (v0.1.31)\n"
},
{
"from": "human",
"value": "# Contributed by Jason Huggins\n\nhttp: require 'http'\n\nserver: http.createServer (req, res) ->\n res.writeHeader 200,... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix path to use local files\n\nFixes #67"
},
{
"from": "human",
"value": "\nZXCVBN_SRC = '//dl.dropbox.com/u/209/zxcvbn/zxcvbn.js'\n\n# adapted from http://friendlybit.com/js/lazy-loading-asyncronous-javascript/\nasync_load = ->\n s = document.createElement 'script... | coffeescript | chosen |
[
{
"from": "system",
"value": "Undo some temporary settings for ngflow chunk size\n\nWe need the settings lower to get around an unresolved problem with large uploads on staging. Can reverse once debugging is done."
},
{
"from": "human",
"value": "'use strict'\n\napp.factory('uploadService', [\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add javascript for search button\n"
},
{
"from": "human",
"value": "#= require_self\n#= require_tree .\n\nwindow.Neighborly =\n Common:\n initPage: ->\n that = this\n unless window.Turbolinks is undefined\n $(document).bind \"page:fetch\", ->\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add classes to feed selection to allow styling\n"
},
{
"from": "human",
"value": "window.ReactFeedSelection = React.createClass\n displayName: 'ReactFeedSelection'\n\n getInitialState: ->\n feedChoice: 'global'\n feeds:\n global: new GlobalFeedActivitie... | coffeescript | chosen |
[
{
"from": "system",
"value": "Remove accidentally left unused function from CacheService\n"
},
{
"from": "human",
"value": "angular.module('kassa').factory('CacheService', [\n '$q'\n '$parse'\n ($q, $parse)->\n cache = {}\n [isUndefined, copy] = [angular.isUndefined, angular.copy]\n\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Handle encoded parameters in request URL to wiki\n"
},
{
"from": "human",
"value": "request = require(\"request\")\nsettings = require(\"settings-sharelatex\")\nlogger = require(\"logger-sharelatex\")\nErrorController = require \"../Errors/ErrorController\"\n\nmodul... | coffeescript | chosen |
[
{
"from": "system",
"value": "Change sorting to be done in ascending order first\n\nCurrently, we always toggle \"reverse\" when triggering a sort.\n\nIf \"reverse\" is initially set to false, triggering a sort for the first\ntime then toggles this to true. The effect is that, the first time that\nsorting i... | coffeescript | chosen |
[
{
"from": "system",
"value": "Stop jasmine tests at the first sign of problems\n\n#8 QueryHandlers should also handle query transmission\n"
},
{
"from": "human",
"value": "module.exports = {\n options:\n helperNameSuffix: '.js'\n specNameSuffix: 'spec.coffee'\n useHelpers: true\n unit... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix URL parsing for bitbucket\n"
},
{
"from": "human",
"value": "module.exports = [{\n # Bitbucket\n exps: [\n /^git@(bitbucket\\.org):(.+)\\/(.+)\\.git$/\n /^https:\\/\\/(bitbucket\\.org)\\/(.+)\\/(.+)\\.git$/\n /^https:\\/\\/.+@(bitbucket\\.org)\\/(.+)\... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use package name as config prefix\n"
},
{
"from": "human",
"value": "{_, $, View} = require 'atom'\n\nmodule.exports =\nclass WrapGuideView extends View\n @activate: ->\n atom.workspaceView.eachEditorView (editorView) ->\n if editorView.attached and editorV... | coffeescript | chosen |
[
{
"from": "system",
"value": "SidebarMachineBox: Make data a Machine instance.\n"
},
{
"from": "human",
"value": "class SidebarMachineBox extends KDView\n\n constructor: (options = {}, data) ->\n\n super options, data\n\n { machine } = data\n\n @addSubView @machineItem = new Navigation... | coffeescript | chosen |
[
{
"from": "system",
"value": "Change the data mount point to /resin-data\n"
},
{
"from": "human",
"value": "module.exports = config =\n\tapiEndpoint: process.env.API_ENDPOINT ? 'https://api.resin.io'\n\tregistryEndpoint: process.env.REGISTRY_ENDPOINT ? 'registry.resin.io'\n\tpubnub:\n\t\tsubscri... | coffeescript | chosen |
[
{
"from": "system",
"value": ":bug: Fix react warning when rendering collection without keys\n"
},
{
"from": "human",
"value": "React = require 'react-atom-fork'\n{div} = require 'reactionary-atom-fork'\n\nmodule.exports = React.createClass\n getInitialState: ->\n firstRow: 0\n lastRow: 0... | coffeescript | chosen |
[
{
"from": "system",
"value": "Set cross-domain allowed to default to '*'"
},
{
"from": "human",
"value": "class Postie\n listenCallback: null\n\n constructor: (options = {}) ->\n \n \n send: (frames, data, callback) ->\n console.log frames\n\n # Public: assign listener callback functi... | coffeescript | chosen |
[
{
"from": "system",
"value": "Revise hashbang snippet added in d181298\n\n* Prefix changed to \"apl\". Typing this is somewhat easier than \"#\".\n* Hashbang path changed to use /usr/bin/env, which is more portable.\n* Tab-stops removed; users won't likely need to change the hashbang path\n or arguments. H... | coffeescript | chosen |
[
{
"from": "system",
"value": "QUALITY: Remove debug message from TaskInboxStateCtrl\n"
},
{
"from": "human",
"value": "angular.module('doubtfire.units.states.tasks.inbox', [])\n\n#\n# Task inbox for tasks to deal with\n#\n.config(($stateProvider) ->\n $stateProvider.state 'units/tasks/inbox', {... | coffeescript | chosen |
[
{
"from": "system",
"value": "Include route and query in search params\n"
},
{
"from": "human",
"value": "define (require) ->\n Backbone = require('backbone')\n settings = require('settings')\n session = require('cs!session')\n analytics = require('cs!helpers/handlers/analytics')\n AppView ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Call Shortcut in DOM ready script\n"
},
{
"from": "human",
"value": "# *************************************\n#\n# Document Ready\n#\n# *************************************\n\njQuery ($) ->\n\n # ----- Functions ----- #\n\n Orientation.accordion()\n Orientatio... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add \"->\" as a search term separator\n"
},
{
"from": "human",
"value": "class app.models.Entry extends app.Model\n # Attributes: name, type, path\n\n SEPARATORS_REGEXP = /\\:?\\ |#|::/g\n PARANTHESES_REGEXP = /\\(.*?\\)$/\n\n constructor: ->\n super\n @te... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use RocketChat Logger as SyncedCron logger\n"
},
{
"from": "human",
"value": "# Config and Start SyncedCron\nSyncedCron.config\n\tcollectionName: 'rocketchat_cron_history'\n\ngenerateStatistics = ->\n\tstatistics = RocketChat.statistics.save()\n\tstatistics.host = M... | coffeescript | chosen |
[
{
"from": "system",
"value": "Change default value for paginated route\n"
},
{
"from": "human",
"value": "Dashboard.PaginatedRouteMixin = Ember.Mixin.create\n actions:\n refreshPageData: (controller, page)->\n query = $.extend(@controller.get('model')['query'], { page: page })\n\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Replace promise with callbacks for UnspentOutputsRestClient\n"
},
{
"from": "human",
"value": "\nclass ledger.api.UnspentOutputsRestClient extends ledger.api.RestClient\n\n getUnspentOutputsFromAddresses: (addresses, callback) ->\n addresses = (address for addre... | coffeescript | chosen |
[
{
"from": "system",
"value": "Refactor deprecated method call for setting response status\n"
},
{
"from": "human",
"value": "module.exports = ->\n { dash } = require 'bongo'\n\n bongo = this\n\n (req, res, next) ->\n\n { channelName, queue: requestQueue } = req.body\n\n unless requestQu... | coffeescript | chosen |
[
{
"from": "system",
"value": "Remove initial attempt to draw rectangle\n"
},
{
"from": "human",
"value": "#require(\"./webgl-example/blue-thing\")\n\nleaflet = require(\"leaflet\")\nrequire(\"./rectangle_editor\")\n$ = require(\"jquery\")\n\ntilesUrl = 'http://skogsmaskin.asuscomm.com:3001/kartv... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add options parameter to artifact server module\n\nSigned-off-by: Sonmez Kartal <d2d15c3d37396a5f2a09f8b42cf5f27d43a3fbde@koding.com>\n"
},
{
"from": "human",
"value": "module.exports = (name = '') ->\n { argv } = require 'optimist'\n express = require 'e... | coffeescript | chosen |
[
{
"from": "system",
"value": "Clean up stray elements created by MathJax\n\nOtherwise React will raise \"Invariant Violation\" exceptions when it notices them.\n\nAlso implement componentDidUpdate so the HTML will be reprocessed if it's content is updated\n"
},
{
"from": "human",
"value": "_ = r... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix opening a Inquire via Phone modal on FireFox and IEs\n"
},
{
"from": "human",
"value": "InquireViaPhoneModalView = require '../inquire_via_phone/index.coffee'\n\nmodule.exports = ($el) ->\n $el\n .find '.js-artwork-partner-stub-inquire-via-phone'\n .click... | coffeescript | chosen |
[
{
"from": "system",
"value": "Set metadata to empty hash when missing\n"
},
{
"from": "human",
"value": "Package = require 'package'\nfs = require 'fs'\n\nmodule.exports =\nclass AtomPackage extends Package\n metadata: null\n keymapsDirPath: null\n autoloadStylesheets: true\n\n constructor: ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Disable Hubot's HTTP server during the tests\n"
},
{
"from": "human",
"value": "Helper = require('hubot-test-helper')\nnock = require('nock')\nexpect = require('chai').expect\n\nhelper = new Helper('../src/codenames.coffee')\n\ndescribe 'codenames', ->\n beforeEach... | coffeescript | chosen |
[
{
"from": "system",
"value": "Allow function for startposition of grid\n"
},
{
"from": "human",
"value": "defaults = require('lodash/defaults')\nshuffle = require('lodash/shuffle')\n\nclass Game.LocationGrid\n constructor: (settings) ->\n settings = defaults settings,\n x: {}\n y: ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix error due to assignment in test."
},
{
"from": "human",
"value": "define ['lodash', './dialogue', 'text!./template-dialogue.html'], (L, Ctrl, View) ->\n\n controller = (console, scope, Modals, connectTo) ->\n \n console.log scope.data\n scope.listName ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Update KeypathObserver to have better state management, passing in the previous target to the callback for unbinding.\n"
},
{
"from": "human",
"value": "class KeypathObserver\n constructor: (@view, @model, @keypath, @callback) ->\n @interfaces = (k for k, v of @... | coffeescript | chosen |
[
{
"from": "system",
"value": "Index does not need $location\n"
},
{
"from": "human",
"value": "###*\nIndexController. Responsible for the index view.\n###\napp.controller \"IndexController\", ($scope, $location) ->\n $scope.whatsMyName = \"Welcome my friend\"\n return\n"
},
{
"from": "... | coffeescript | chosen |
[
{
"from": "system",
"value": "Sort Movies by opening weekend totals\n\nAnd with very little code, we can have our list of Movies sort itself by\ndescending opening weekend totals.\n"
},
{
"from": "human",
"value": "#= require app/models/movie\n\nclass App.Collections.Movies extends Backbone.Coll... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix overlay positioning when scrolled down\n"
},
{
"from": "human",
"value": "class @OverlayDimensions\n minMargin: 10\n\n constructor: (overlayContent) ->\n @overlayContent = overlayContent\n @totalMargin = @minMargin * 2\n\n @maxWidth = ->\n $(wind... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use @ in stead of this.\n"
},
{
"from": "human",
"value": "class window.RelatedChannelsView extends Backbone.Marionette.CompositeView\n className: \"related-channels-for-channel\"\n\n template: \"channels/related_channels\",\n\n itemViewContainer: \"ul\",\n\n it... | coffeescript | chosen |
[
{
"from": "system",
"value": "Update Shere to Sphere (typo)\n\nCorrects a typo in the editor interface"
},
{
"from": "human",
"value": "Models =\n\n 'models/cube.js':\n name: 'Cube'\n\n 'models/sphere.js':\n name: 'Shere'\n\n 'models/torus.js':\n name: 'Torus'\n\n 'models/dragon.js'... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix copy file url issue\n"
},
{
"from": "human",
"value": "class NCopyUrlView extends JView\n\n constructor: ->\n super\n\n @path = FSHelper.plainPath @getData().path\n @publicPath = @path.replace \\\n ///.*\\/(.*\\.#{KD.config.userSitesDomain})\\/(.*... | coffeescript | chosen |
[
{
"from": "system",
"value": "Set accept-cookies cookie to expire in the very far future (year 9.999).\n\nIt seems that Chrome ignores this date and instead sets the cookie to expire on 'Tue, 19 Jan 2038 03:14:07 GMT', which is the maximum date since Epoch expressed as an amount of seconds stored in a signe... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix shooting orientation when enemy turns around\n"
},
{
"from": "human",
"value": "Crafty.c 'ShootOnSight',\n remove: ->\n @unbind('GameLoop', @_checkForShot)\n\n shootOnSight: (options) ->\n @shootConfig = _.defaults(options,\n targetType: 'PlayerCon... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add analytics to home path\n"
},
{
"from": "human",
"value": "Backbone = require 'backbone'\ntemplate = -> require('./index.jade') arguments...\n\nmodule.exports = class HomePathFieldView extends Backbone.View\n className: 'Fieldset'\n\n events:\n 'change selec... | coffeescript | chosen |
[
{
"from": "system",
"value": "Modify EOL code from CRLF to LF\n"
},
{
"from": "human",
"value": "\r\nMath._random ?= Math.random\r\n\r\npesudoRandomValues = []\r\n\r\npesudoRandom = ->\r\n pesudoRandomValues.shift() ? Math._random()\r\n\r\npesudoRandom.MIN_VALUE = 0\r\npesudoRandom.MAX_VALUE = ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add Correct Display Name when Visiting Stats of Other User\n"
},
{
"from": "human",
"value": "React = require 'react'\nClassificationsRibbon = require '../../components/classifications-ribbon'\nPromiseRenderer = require '../../components/promise-renderer'\nProjectIc... | coffeescript | chosen |
[
{
"from": "system",
"value": "Handle both bzipped and non-bzipped data in DataUnpacker\n"
},
{
"from": "human",
"value": "class AsciiIo.DataUnpacker\n unpack: (base64BzippedData, callback) ->\n bzippedData = atob base64BzippedData\n\n if window.Worker\n worker = new Worker(window.unp... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use instanceof instead of nodeName for consistency's sake\n"
},
{
"from": "human",
"value": "class Written.Cursor\n constructor: (element, selection) ->\n @element = ->\n element\n @selection = selection\n children = Array.prototype.slice.call(@elemen... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix bug with including underscore.js.\n"
},
{
"from": "human",
"value": "# Include lib.\nfor file in ['buildable', 'arrayFilters', 'underscore']\n Ti.include('lib/' + file + '.js')\n\n# Include expansions.\nfor file in ['citiesAndKnights']\n Ti.include('models/exp... | coffeescript | chosen |
[
{
"from": "system",
"value": "Mark all episodes as viewed from anime pages.\n"
},
{
"from": "human",
"value": "Hummingbird.AnimeRoute = Ember.Route.extend\n model: (params) ->\n @store.find('fullAnime', params.id)\n\n saveLibraryEntry: (libraryEntry) ->\n anime = @currentModel\n Messe... | coffeescript | chosen |
[
{
"from": "system",
"value": "Support attaching behaviour to multiple collections\n"
},
{
"from": "human",
"value": "behaviours = {}\n\nshare.attach = attach = (behaviour, args...) ->\n if _.isString behaviour\n options = behaviours[behaviour].options\n behaviour = behaviours[behaviour].b... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix event bindings for variable-length keypaths for realsies.\n"
},
{
"from": "human",
"value": "#= require ./abstract_attribute_binding\n\nclass Batman.DOM.EventBinding extends Batman.DOM.AbstractAttributeBinding\n onlyObserve: Batman.BindingDefinitionOnlyObserve.... | coffeescript | chosen |
[
{
"from": "system",
"value": "Handle zeros properly during templating\n"
},
{
"from": "human",
"value": "compile = (template, type) ->\n if 0 <= index = template.indexOf ' '\n tmpl = template.substr 0, index\n attrs = template.substr index\n else\n tmpl = template\n\n [ name, classes... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use correct CTA Bar on New Artist Pages\n"
},
{
"from": "human",
"value": "{ MEDIUM, CURRENT_USER } = require('sharify').data\nAuthModalView = require '../../../components/auth_modal/view.coffee'\nCTABarView = require '../../../components/cta_bar/view.coffee'\n\nmod... | coffeescript | chosen |
[
{
"from": "system",
"value": "Set check cycles to 2\n"
},
{
"from": "human",
"value": "storage = require 'node-persist'\nstorage.initSync()\nconfig = storage.getItemSync 'config'\n\nmodule.exports =\n getConfig: ->\n defaultDelay: 3\n defaultDuration: 0.5\n defaultTransition: \"none\"\... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix rec popover behaviour when rec icon appears and page isn't reloaded.\n"
},
{
"from": "human",
"value": "Template.room_list.helpers\n rooms: ->\n searchQuery = Session.get 'search-query'\n query = {}\n query.displayName = new RegExp searchQuery, 'i'\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Refactor test case around to use a test method for each test\n"
},
{
"from": "human",
"value": "{expect} = require \"chai\"\nutils = require \"../utils\"\n\n{Collections} = utils.require \"common/base\"\n\ndescribe \"categorical mapper\", ->\n mapper = null\n befo... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix error where path was not required\n"
},
{
"from": "human",
"value": "remote = require \"remote\"\ndialog = remote.require \"dialog\"\n\nmodule.exports =\nclass FileUtil\n constructor: () ->\n @prepareFile: (buffer) ->\n if buffer.file? && buffer.file.exists... | coffeescript | chosen |
[
{
"from": "system",
"value": "Allow observing [] for all keys\n"
},
{
"from": "human",
"value": "module.exports = (observed, keys, callback) ->\n Object.observe observed, (changes) =>\n for change in changes\n if change.name in keys\n callback()\n break\n"
},
... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add missing debug pass through\n"
},
{
"from": "human",
"value": "_ = require('underscore')\nYAML = require('libyaml')\ncolors = require('colors')\nfs = require('fs')\ncommander = require('commander')\n\nproxy = require('./proxy')\n\ncommander\n .usage(\"Run it in ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add options to the AddModelToCollection addDefaultModel.\n"
},
{
"from": "human",
"value": "Backbone.Factlink ||= {}\n\nBackbone.Factlink.AddModelToCollectionMixin =\n addModel: (model) ->\n @options.addToCollection.add(model)\n model.save {},\n success:... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix a few cases that caused us to lose our lovely hacks\n"
},
{
"from": "human",
"value": "window.slackReadyFunction = (func) ->\n TS.groups.message_received_sig.add func\n TS.channels.message_received_sig.add func\n TS.ims.message_received_sig.add func\n TS.cha... | coffeescript | chosen |
[
{
"from": "system",
"value": "Mark notifications as read first and then set the unread count\n"
},
{
"from": "human",
"value": "Promise = require 'bluebird-q'\n{ delay } = require 'underscore'\nBackbone = require 'backbone'\ntemplate = -> require('./index.jade') arguments...\n\nmodule.exports = ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add reviewable status to submitted hits\n"
},
{
"from": "human",
"value": "mongoose = require 'mongoose'\ndb = mongoose.connection\n\nTaskSet = require './models/taskset'\n\n\nsaveCompletedTaskset = (tasksetData, callback) ->\n tasksetData.lock = false\n tasksetDa... | coffeescript | chosen |
[
{
"from": "system",
"value": "Implement destroying bindings on deactivation\n"
},
{
"from": "human",
"value": "{CompositeDisposable} = require 'atom'\n\nMinimapBookmarksBinding = null\n\n\nmodule.exports =\n active: false\n\n isActive: -> @active\n\n activate: (state) ->\n @subscriptions =... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add setImmediate function in renderer.\n"
},
{
"from": "human",
"value": "path = require 'path'\nModule = require 'module'\n\n# Expose information of current process.\nprocess.__atom_type = 'renderer'\nprocess.resourcesPath = path.resolve process.argv[1], '..', '..'... | coffeescript | chosen |
[
{
"from": "system",
"value": "activity: Switch to Scroller api in PublicChatPane\n\nConflicts:\n\tclient/activity/lib/components/publicchatpane/index.coffee\n"
},
{
"from": "human",
"value": "kd = require 'kd'\nReact = require 'kd-react'\nimmutable = require 'immutab... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix an edge case where the user types in some weird combination of keys.\n"
},
{
"from": "human",
"value": "$ ->\n $('.flash').delay(4000).fadeOut()\n $('#close_flash_early').click( -> closeFlashEarly())\n\ncloseFlashEarly = ->\n $('.flash').stop().fadeOut()"
}... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix carousel initial rendering issue.\n"
},
{
"from": "human",
"value": "_ = require 'underscore'\nQ = require 'bluebird-q'\nBackbone = require 'backbone'\nFilterArtworks = require '../../../../collections/filter_artworks.coffee'\ninitCarousel = require '../../../..... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add mask literate elements by default\n"
},
{
"from": "human",
"value": "((E, $) ->\n 'use strict'\n\n $(document).ready ->\n $('#lettersVisibility').on 'click', (e) ->\n E.accounts.changeUnmarkVisibility() \n\n $('#labelLettersVisibility').on 'click', ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Hide postcode - not necessary as passed from billing address and wrecks mobile UX\n"
},
{
"from": "human",
"value": "Darkswarm.directive \"stripeElements\", ($injector, StripeElements) ->\n restrict: 'E'\n template: \"<label for='card-element'>\\\n <di... | coffeescript | chosen |
[
{
"from": "system",
"value": "Check runtime status as part of the tests\n"
},
{
"from": "human",
"value": "describe 'Graph Editor', ->\n win = null\n doc = null\n before ->\n iframe = document.getElementById 'app'\n win = iframe.contentWindow\n doc = iframe.contentDocument\n\n descr... | coffeescript | chosen |
[
{
"from": "system",
"value": "Drop suffix from handler path\n"
},
{
"from": "human",
"value": "Task = require 'task'\n\ndescribe \"Task\", ->\n describe \"populating the window with fake properties\", ->\n describe \"when jQuery is loaded in a child process\", ->\n it \"doesn't log to t... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix Author View hover class toggle\n"
},
{
"from": "human",
"value": "ETahi.AuthorViewComponent = Ember.Component.extend DragNDrop.Dragable,\n classNames: ['authors-overlay-item']\n classNameBindings: ['hoverState:__hover', 'isEditable:__editable']\n\n editState:... | coffeescript | chosen |
[
{
"from": "system",
"value": "Load preview modules with actual preview elements\n"
},
{
"from": "human",
"value": "class CMS.Views.ModuleEdit extends Backbone.View\n tagName: 'section'\n className: 'edit-pane'\n\n events:\n 'click .cancel': 'cancel'\n 'click .module-edit': 'editSubmodul... | coffeescript | chosen |
[
{
"from": "system",
"value": "Remove unused param for sendEmailValidation\n"
},
{
"from": "human",
"value": "exports.loadUsers = (params, callback) ->\n if @isId params\n params = teamId: params\n else unless params and typeof params is 'object'\n throw new TSArgsError 'teamsnap.loadUser... | coffeescript | chosen |
[
{
"from": "system",
"value": "Disable artist representation links for everyone but admins for the time being\n"
},
{
"from": "human",
"value": "_ = require 'underscore'\n{ API_URL } = require('sharify').data\nBackbone = require 'backbone'\nRelatedLinksView = require '../view.coffee'\nPartners = ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Initialize select value taking prompt into account.\n"
},
{
"from": "human",
"value": "`import Em from \"vendor/ember\"`\n\nComponent = Em.Component.extend\n options: Em.computed \"content.{options,prompt,is_optional}\", ->\n prompt = @get \"content.prompt... | coffeescript | chosen |
[
{
"from": "system",
"value": "Clear cursor blink interval when editor component unmounts\n"
},
{
"from": "human",
"value": "React = require 'react'\n{div} = require 'reactionary'\n{debounce} = require 'underscore-plus'\nSubscriberMixin = require './subscriber-mixin'\nCursorComponent = require '.... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add icons and styling to access level, humanize access level\n"
},
{
"from": "human",
"value": "{ tr,td,button,i } = React.DOM\n \nshared_filesystem_storage.AccessItem = React.createClass \n getInitialState: ->\n deleting: false\n \n handleDelete: (e) ->\n ... | coffeescript | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.