conversations listlengths 2 3 | source stringclasses 1 value | stack stringclasses 1 value |
|---|---|---|
[
{
"from": "system",
"value": "Save serialized text to input element\n"
},
{
"from": "human",
"value": "#= require trix/controllers/text_controller\n#= require trix/controllers/toolbar_controller\n#= require trix/controllers/debug_controller\n\nclass Trix.EditorController\n constructor: (textEle... | coffeescript | chosen |
[
{
"from": "system",
"value": "Update the docs about the default version\n"
},
{
"from": "human",
"value": "CI.Versions =\n default_ruby: \"1.9.3-p194\"\n old_ruby: \"1.8.7-p358\"\n default_node: \"0.8.12\"\n default_php: \"5.3.10-1ubuntu3.5\"\n solr: \"4.3.1\"\n"
},
{
"from": "gpt",... | coffeescript | chosen |
[
{
"from": "system",
"value": "Improve resiliency of getSupportedLanguages() unit test\n"
},
{
"from": "human",
"value": "humanizeDuration = require \"..\"\ngetSupportedLanguages = humanizeDuration.getSupportedLanguages\n\nassert = require \"assert\"\nfs = require \"fs\"\npath = require \"path\"\... | coffeescript | chosen |
[
{
"from": "system",
"value": "Change folder to match new osKite default\n"
},
{
"from": "human",
"value": "class ViewerAppController extends KDViewController\n\n KD.registerAppClass this,\n name : \"Viewer\"\n route : \"/Develop\"\n multiple : yes\n openWith :... | coffeescript | chosen |
[
{
"from": "system",
"value": "Make sure we're not in the future\n"
},
{
"from": "human",
"value": "uploader = new Slingshot.Upload('files')\n\nTemplate.fileList.helpers\n 'files': -> FileList.find {}, sort: LastModified: -1\n 'date': -> moment(@LastModified).fromNow()\n\nhandleFiles = (event) ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix bug on presentations list"
},
{
"from": "human",
"value": "$ ->\n if $(\"#presentation-list\").length > 0\n updateCurrent = ->\n window.localStorage[\"left-screen\"] = $(\".current .left\").html()\n window.localStorage[\"right-screen\"] = $(\".curr... | coffeescript | chosen |
[
{
"from": "system",
"value": "Update spec for new status bar label\n"
},
{
"from": "human",
"value": "{$} = require 'atom-space-pen-views'\nPackageManager = require '../lib/package-manager'\nQ = require 'q'\n\ndescribe \"package updates status view\", ->\n beforeEach ->\n outdatedPackage =\n... | coffeescript | chosen |
[
{
"from": "system",
"value": "Remove keybinding cruft, make Ctrl-K work again\n"
},
{
"from": "human",
"value": "# Keybindings require three things to be fully defined: A selector that is\n# matched against the focused element, the keystroke and the command to\n# execute.\n#\n# Below is a basic ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Reduce number of AJAX calls in variant autocomplete.\n\nFixes #6338\nFixes #5667\n"
},
{
"from": "human",
"value": "# variant autocompletion\n$(document).ready ->\n if $(\"#variant_autocomplete_template\").length > 0\n window.variantTemplate = Handlebars.compile... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add title and template attrs on Ember side"
},
{
"from": "human",
"value": "a = DS.attr\nETahi.TaskTemplate = DS.Model.extend\n phaseTemplate: DS.belongsTo('phaseTemplate')\n journalTaskType: DS.belongsTo('journalTaskType')\n title: Em.computed.oneWay('journalTas... | coffeescript | chosen |
[
{
"from": "system",
"value": "Set time ago indicators like @markijbema proposed\n"
},
{
"from": "human",
"value": "window.TimeAgo = React.createClass\n mixins: [SetIntervalMixin]\n\n getInitialState: ->\n now: Date.now()\n\n componentDidMount: ->\n @setInterval(@update_time, 1000)\n\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix async failing test in sample app\n"
},
{
"from": "human",
"value": "Tinytest.add 'passing test', (test)->\r\n console.log 'passing test'\r\n test.isTrue true\r\n\r\nTinytest.add 'failing test', (test)->\r\n console.log 'failing test'\r\n test.isTrue false, '... | coffeescript | chosen |
[
{
"from": "system",
"value": "Allow repo to not exist :)\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# HUBOT_GITHUB_USER\n#... | coffeescript | chosen |
[
{
"from": "system",
"value": "Select randomly from all subject sets\n"
},
{
"from": "human",
"value": "class Subjects\n queue: []\n api: null\n current: null\n query:\n sort: 'queued'\n page_size: \"30\"\n \n constructor: (@api, @project, @subject_set_id)->\n @query.workflow_id = ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Revert to larger game board\n"
},
{
"from": "human",
"value": "INFOBAR_SIZE = 30\nTILE_SIZE = 40\nX_TILES = 16\nY_TILES = 12\nX_TILES = 6\nY_TILES = 6\nGAME_WIDTH = TILE_SIZE * X_TILES\nGAME_HEIGHT = TILE_SIZE * Y_TILES + INFOBAR_SIZE\n\nLOGGER = new Civilization.Ga... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add all created editors to a collection of editors so they can be controlled on the page\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.... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix linking to id with location hash\n"
},
{
"from": "human",
"value": "TentAdmin.Routers.main = new class MainRouter extends Marbles.Router\n routes: {\n \"\" : \"root\"\n \"profile\" : \"profile\"\n \"apps\" : \"apps\"\n }\n\n root: =>\n @... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add lineman build task to copy generated files\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 ... | coffeescript | chosen |
[
{
"from": "system",
"value": "[EVENTRIC-43] Fix eventric include for the watcher task\n"
},
{
"from": "human",
"value": "if typeof window isnt 'undefined'\n root = window\nelse\n root = global\n\nif !root._spec_setup\n root.sinon = require 'sinon'\n root.mockery = require 'mockery'\n ro... | coffeescript | chosen |
[
{
"from": "system",
"value": "Send action also as property\n"
},
{
"from": "human",
"value": "noflo = require 'noflo'\ndebug = require('debug') 'noflo-ui:state'\n\nexports.getComponent = ->\n c = new noflo.Component\n c.inPorts.add 'action',\n datatype: 'all'\n c.outPorts.add 'pass',\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Handle new-style and legacy actions separately\n"
},
{
"from": "human",
"value": "noflo = require 'noflo'\ndebug = require('debug') 'noflo-ui:state'\n\nexports.getComponent = ->\n c = new noflo.Component\n c.inPorts.add 'action',\n datatype: 'all'\n c.inPorts.... | coffeescript | chosen |
[
{
"from": "system",
"value": "Update config, add default python.\n"
},
{
"from": "human",
"value": "_ = require 'underscore-plus'\nAutocompleteView = require './autocomplete-view'\n\nmodule.exports =\n configDefaults:\n includeCompletionsFromAllBuffers: false\n\n autocompleteViews: []\n ed... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add descriptions to DSL spec\n"
},
{
"from": "human",
"value": "describe \"Dsl\",\r\n{\r\n\tgiven: ->\r\n\t\t@target = {}\r\n\t\t@dsl = new Witness.Dsl @target\r\n\r\n\twhen: ->\r\n\t\t@dsl.activate()\r\n\r\n\tthen: [ # Core DSL functions are added to target object... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use built-in array methods instead of underscore\n"
},
{
"from": "human",
"value": "{_, Range} = require 'atom'\n\nmodule.exports =\nclass RangeFinder\n\n # Public\n @rangesFor: (editor) ->\n new RangeFinder(editor).ranges()\n\n # Public\n constructor: (@edit... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add name class to span"
},
{
"from": "human",
"value": "{Subscriber} = require 'emissary'\n\nmodule.exports =\nclass FileView extends HTMLElement\n Subscriber.includeInto(this)\n\n initialize: (@file) ->\n @subscribe @file, 'destroyed', => @unsubscribe()\n\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use active editor from root view instead of ivar\n"
},
{
"from": "human",
"value": "{View} = require 'space-pen'\nEditor = require 'editor'\n$ = require 'jquery'\nPoint = require 'point'\n\nmodule.exports =\nclass JumpToLineView extends View\n\n @activate: (rootVie... | coffeescript | chosen |
[
{
"from": "system",
"value": ":new: Add specs for main module\n"
},
{
"from": "human",
"value": "describe 'Package-Deps', ->\n\n PackageDeps = require('../lib/main')\n\n describe '::packagesToInstall', ->\n it 'works', ->\n spyOn(atom.packages, 'getLoadedPackage').andReturn({\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Remove unnecessary comma in define\n"
},
{
"from": "human",
"value": "define [\n 'underscore',\n './workflows/results'\n], (_, mods...) ->\n\n _.extend {}, mods...\n"
},
{
"from": "gpt",
"value": "define [\n 'underscore'\n './workflows/res... | coffeescript | chosen |
[
{
"from": "system",
"value": "Improve expectation_helper in Mocha tests\n"
},
{
"from": "human",
"value": "Ext.apply window,\n expectToSee: (el) ->\n expect(Ext.isObject(el) || Ext.isElement(el)).to.be.ok()\n\n expectToNotSee: (el) ->\n expect(Ext.isString(el)).to.be.ok()\n\n expectDisa... | coffeescript | chosen |
[
{
"from": "system",
"value": "Remove credentials filtering when logging in after registering\n"
},
{
"from": "human",
"value": "_ = require('lodash-contrib')\nurl = require('url')\nasync = require('async')\nresin = require('resin-sdk')\nui = require('../ui')\nlog = require('../log/log')\nerrors ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Remove unnecessary require of should\n"
},
{
"from": "human",
"value": "neither = require('./../lib/neither')\nshould = require('should')\n\ndescribe 'neither', ->\n it 'should accept a boolean and return an object with nor', ->\n neither(true).should.be.an.inst... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix session user name data field\n"
},
{
"from": "human",
"value": "koding = require './../bongo'\n\nmodule.exports = (req, res) ->\n { JAccount, JSession } = koding.models\n {nickname} = req.params\n\n {clientId} = req.cookies\n\n JSession.fetchSession clientId... | coffeescript | chosen |
[
{
"from": "system",
"value": "Check for working status as well as queued\n"
},
{
"from": "human",
"value": "class ResquePoller\n @INTERVAL: 2000\n\n constructor: (opts) ->\n @$elem = opts.elem\n @url = opts.url\n @intervalID = setInterval(@_poll, opts.interval || ResquePol... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add onMessage() stub to Chrome extension API mock\n"
},
{
"from": "human",
"value": "#\n# Mock the Chrome extension API.\n#\n\nroot = exports ? window\n\nroot.chrome = {\n extension: {\n connect: -> {\n onMessage: {\n addListener: ->\n }\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Remove ivars set in constructor\n"
},
{
"from": "human",
"value": "_ = require 'underscore-plus'\n{Range} = require 'atom'\n\nmodule.exports =\nclass Snippet\n @wordRegex: /[^\\s'\"<>;]+/\n\n name: null\n prefix: null\n body: null\n lineCount: null\n tabStops:... | coffeescript | chosen |
[
{
"from": "system",
"value": "Make JCrop use window height as boxWidth\n"
},
{
"from": "human",
"value": "document.addEventListener 'turbolinks:load', ->\n new AvatarCropper()\n\nclass AvatarCropper\n constructor: ->\n $('#cropbox').Jcrop\n aspectRatio: 1\n setSelect: [0, 0, 600, ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Send entire config object into sidekiq\n"
},
{
"from": "human",
"value": "NotificationPlugin = require \"../../notification-plugin\"\n\nclass Email extends NotificationPlugin\n SIDEKIQ_WORKER = \"ErrorEmailWorker\"\n SIDEKIQ_QUEUE = \"error_emails\"\n\n @receiveE... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add keyboard shortcut for sort lines\n"
},
{
"from": "human",
"value": "# Your keymap\n#\n# Atom keymaps work similarly to style sheets. Just as style sheets use\n# selectors to apply styles to elements, Atom keymaps use selectors to associate\n# keystrokes with eve... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use shared arg config in emplate command "
},
{
"from": "human",
"value": "#! /usr/bin/env coffee\n\nyargs = require 'yargs'\ntemplates = require '../src/templates'\n\ntemplates.show()"
},
{
"from": "gpt",
"value": "#! /usr/bin/env coffee\n\nargs ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use jquery.ajax to perform state change on projects instead of auth.send\n"
},
{
"from": "human",
"value": "Dashboard.ProjectsTabController = Ember.ArrayController.extend Dashboard.SearchableBaseController, Dashboard.PaginableControllerMixin,\n baseRouteName: 'proj... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix HTML injections in deploy output\n"
},
{
"from": "human",
"value": "# This is a manifest file that'll be compiled into application.js, which will include all the files\n# listed below.\n#\n# Any JavaScript/Coffee file within this directory, lib/assets/javascript... | coffeescript | chosen |
[
{
"from": "system",
"value": "Simplify setting lastOpened serialized value\n\nIterate over the project's edit sessions instead of\nthe stored paths in the serialized state.\n"
},
{
"from": "human",
"value": "_ = require 'underscore'\n\nmodule.exports =\n projectPaths: null\n fuzzyFinderView: n... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix the hook for the source compile button\n"
},
{
"from": "human",
"value": "# Eventful code comes here\n# Program state should not be manipulated outside events files\n\n# Please note the following conventions: \n#\n# * Use jquery delegate in place of live\n# ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add workflow ID to tutorial subject\n"
},
{
"from": "human",
"value": "Subject = require 'models/subject'\n\nmodule.exports = ->\n Subject.create\n id: '5077375154558fabd7000003'\n zooniverseId: 'TUTORIAL_SUBJECT'\n\n location: standard: [\n 'images/t... | coffeescript | chosen |
[
{
"from": "system",
"value": "Make keydownEvent helper method more realistic and add some :lipstick:\n\nThe name of keyIdentifier should be captialized"
},
{
"from": "human",
"value": "require 'coffee-cache'\n\nbeforeEach ->\n document.querySelector('#jasmine-content').innerHTML = \"\"\n\nexpor... | coffeescript | chosen |
[
{
"from": "system",
"value": "Allow duration to be configured\n"
},
{
"from": "human",
"value": "# This mess is probably going to get replaced with something like:\n# http://ricostacruz.com/jquery.transit/\nmodule.exports =\n fade: ($el, options) ->\n $el.\n attr('data-state', 'fade-out... | coffeescript | chosen |
[
{
"from": "system",
"value": "Rename unit test to update confusing test\n"
},
{
"from": "human",
"value": "ROOT = {}\nsinon = require(\"sinon\")\nassert = require(\"assert\")\n\nrequire(\"../../src/environment\").call(ROOT)\nrequire(\"../../src/support/Widget\").call(ROOT)\n\ndescribe \"wi... | coffeescript | chosen |
[
{
"from": "system",
"value": "tests: Fix not passing broker address\n"
},
{
"from": "human",
"value": "msgflo = require 'msgflo'\npath = require 'path'\nchai = require 'chai' unless chai\nheterogenous = require '../node_modules/msgflo/spec/heterogenous.coffee'\n\npython = process.env.PYTHON or '... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use Script to load Sizzle.js\n"
},
{
"from": "human",
"value": "# Select document elements using Sizzle.js.\nfs = require(\"fs\")\nsizzle = fs.readFileSync(__dirname + \"/../../dep/sizzle.js\", \"utf8\")\ncore = require(\"jsdom\").dom.level3.core\n\nclose = core.HTM... | coffeescript | chosen |
[
{
"from": "system",
"value": "Workspace: Remove unused methods and signatures.\n"
},
{
"from": "human",
"value": "{ Model } = require 'bongo'\n{ Module } = require 'jraphical'\n\nmodule.exports = class JWorkspace extends Module\n\n {signature, secure} = require 'bongo'\n @share()\n\n @set\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Update C++ custom header file type\n\n"
},
{
"from": "human",
"value": "\"*\":\n Zen: {}\n \"atom-material-ui\":\n fonts: {}\n \"autocomplete-plus\": {}\n core:\n disabledPackages: [\n \"markdown-preview\"\n ]\n themes: [\n \"atom-material-... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add constructed instances to array\n"
},
{
"from": "human",
"value": "'use strict'\n\nclass Route\n\n ROUTES:\n root:\n title: 'Root'\n url: '/'\n partial: '#partial-home'\n init: [Account]\n notes:\n title: 'Notes'\n url: '/note... | coffeescript | chosen |
[
{
"from": "system",
"value": "Clean up dropdown binding click event code\n"
},
{
"from": "human",
"value": "define ['jquery', 'semantic', 'utils', 'charts'], ($, semantic, utils, charts) ->\n\n currentCity = utils.getCookie('city')\n availableCity = ['Guangzhou', 'Beijing', 'Shanghai', 'Chengd... | coffeescript | chosen |
[
{
"from": "system",
"value": "Call os kite from VM buttons.\n"
},
{
"from": "human",
"value": "class VirtualizationControls extends KDButtonGroupView\n\n constructor:->\n options =\n cssClass : \"virt-controls\"\n buttons :\n \"Start\" :\n callback :... | coffeescript | chosen |
[
{
"from": "system",
"value": "Switch Atom to light theme\n"
},
{
"from": "human",
"value": "\"*\":\n core:\n telemetryConsent: \"limited\"\n editor:\n fontFamily: \"Menlo\"\n invisibles: {}\n softWrap: true\n \"exception-reporting\":\n userId: \"0f9c4bca-c1e4-c885-1374-c2dd2629... | coffeescript | chosen |
[
{
"from": "system",
"value": "Implement content-setter for the control iframe\n"
},
{
"from": "human",
"value": "\nclass ControlIframe\n constructor: ->\n @el = document.createElement('iframe')\n #need to append to outer document before we can access frame document.\n FactlinkJailRoot.... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use the req.user.id when making time entries\n"
},
{
"from": "human",
"value": "TimeEntriesController = require \"#{__dirname}/../../controllers/time_entries\"\nTimeEntry = require \"#{__dirname}/../../models/time_entry\"\n\n_ = require 'underscore'\n\nhandler = (ap... | coffeescript | chosen |
[
{
"from": "system",
"value": "Change urls for task view in FlowManager"
},
{
"from": "human",
"value": "ETahi.FlowManagerRoute = Ember.Route.extend\n model: ->\n @store.find(\"flow\")\n\n actions:\n chooseNewFlowMangerColumn: ->\n @render('chooseNewFlowManagerColumnOverlay',\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Include a setup method that only runs once on initialization\n"
},
{
"from": "human",
"value": "_ = require 'underscore'\nBackbone = require 'backbone'\nform = require '../../form/utilities.coffee'\n\nmodule.exports = class StepView extends Backbone.View\n __events... | coffeescript | chosen |
[
{
"from": "system",
"value": "ENHANCE: Add success alert messages on changing tutorial\n"
},
{
"from": "human",
"value": "angular.module('doubtfire.projects.states.tutorials', [])\n\n#\n# Tasks state for projects\n#\n.config(($stateProvider) ->\n $stateProvider.state 'projects/tutorials', {\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Remove App.initialize from coffeescript template\n"
},
{
"from": "human",
"value": "#= require ./store\n#= require_tree ./models\n#= require_tree ./controllers\n#= require_tree ./views\n#= require_tree ./helpers\n#= require_tree ./templates\n#= require_tree ./routes... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix an initialization order goof.\n"
},
{
"from": "human",
"value": "#= require slickgrid\n#= require SlickGrid/slick.dataview\n#= require SlickGrid/slick.groupitemmetadataprovider\n\nPancakes.SearchResultsGrid = Ember.View.extend\n columns: []\n classNames: ['gri... | coffeescript | chosen |
[
{
"from": "system",
"value": "Set do not track to false if it doesn't exist\n"
},
{
"from": "human",
"value": "# Inject common project-wide [view locals](http://expressjs.com/api.html#app.locals).\n\n{ parse, format } = require 'url'\n_ = require 'underscore'\n{ NODE_ENV } = require '../../confi... | coffeescript | chosen |
[
{
"from": "system",
"value": "Update handlebar snippets file type group\n"
},
{
"from": "human",
"value": "\n# /////////////////////////////////////\n# handlebars\n# /////////////////////////////////////\n'.text.handlebars':\n 'Ember: get':\n 'prefix': 'get'\n 'body': \"{{get '${1}'}}\"... | coffeescript | chosen |
[
{
"from": "system",
"value": "Send room instead of roomId\n"
},
{
"from": "human",
"value": "App.IndexController = Ember.ArrayController.extend\n needs: [\"application\"]\n currentUser: Ember.computed.alias(\"controllers.application.currentUser\")\n itemController: \"RoomUserStateItem\"\n\n\n... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add backUpBeforeSaving for Atom editor\n"
},
{
"from": "human",
"value": "\"*\":\n core:\n disabledPackages: [\n \"preview-tabs\"\n \"script\"\n ]\n ignoredNames: [\n \".DS_Store\"\n \".bundle\"\n \".git\"\n ]\n projectHome: ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Return an empty list of datasets if the xhr receives an error\n\nSigned-off-by: Marko Locher <9efe9a5a1da5f41a4eb7599f2715dc24abf5bbc8@locher.at>\n"
},
{
"from": "human",
"value": "class TimeSlider.Plugin.EOWCS\n constructor: (@options = {})->\n\n @formatD... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix overlay next / prev button positiono\n\nOn tablet resolution devices, the arrows will be vertically\ncentered within the image.\n"
},
{
"from": "human",
"value": "$ ->\n overlay = new Overlay('.js-open-overlay')\n\nsetCommentPaneHeight = (el) ->\n overlay = $(... | coffeescript | chosen |
[
{
"from": "system",
"value": "Update default crash report submission URL.\n"
},
{
"from": "human",
"value": "binding = process.atomBinding 'crash_reporter'\n\nclass CrashReporter\n start: (options={}) ->\n {productName, companyName, submitUrl, autoSubmit, ignoreSystemCrashHandler, extra} = o... | coffeescript | chosen |
[
{
"from": "system",
"value": "Set canvas dimensions to the document dimensions\n"
},
{
"from": "human",
"value": "requirejs.config({\n paths: {\n fabric: [\n 'lib/fabric']\n }\n})\n\ndefine ['game', 'synchronizedtime', 'position', 'lib/fabric', 'lib/jquery'], (Game, SynchronizedTime, P... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use provided context payload to render tooltip\n"
},
{
"from": "human",
"value": "$(document).on 'peek:update', ->\n resqueContext = $('#peek-context-resque')\n if resqueContext.size()\n context = resqueContext.data('context')\n failures = context.jobs.failu... | coffeescript | chosen |
[
{
"from": "system",
"value": "Simplify finding rows for sortable tables\n\nIncluding the table body is more intuitive than excluding the first row\nand the table foot.\n"
},
{
"from": "human",
"value": "App.TableSortable =\n getCellValue: (row, index) ->\n $(row).children(\"td\").eq(index).t... | coffeescript | chosen |
[
{
"from": "system",
"value": "Reduce auto-complete to 3 results\n"
},
{
"from": "human",
"value": "Sprangular.controller \"HeaderCtrl\", (\n $scope,\n $location,\n Cart,\n Account,\n Catalog,\n Env,\n Flash,\n Status,\n Angularytics,\n $translate\n) ->\n\n $scope.cart = Cart\n Catalo... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix sorting for apps in \"manage your apps\" view\n\nApps in _manage your apps_ views is correctly sorted at first, but\naddded apps are push to the bottom of the list. This commit fix sorting\nwhen appending new sub-view to the list.\n"
},
{
"from": "human",
"value... | coffeescript | chosen |
[
{
"from": "system",
"value": "Remove git-history and git-time-machine from Atom\n"
},
{
"from": "human",
"value": "packages: [\n \"atom-beautify\"\n \"atom-elixir\"\n \"atom-wrap-in-tag\"\n \"atomic-chrome\"\n \"auto-update-packages\"\n \"busy-signal\"\n \"close-tags\"\n \"date\"\n \"el... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix scanner delay that prevented video from appearing\n"
},
{
"from": "human",
"value": "class @CommonDialogsQrcodeDialogViewController extends @DialogViewController\n\n view:\n videoCaptureContainer: '#video_capture_container'\n qrcodeCheckBlock: null\n\n onA... | coffeescript | chosen |
[
{
"from": "system",
"value": "Simplify recursive file search interface\n"
},
{
"from": "human",
"value": "fs = require 'fs'\npath = require 'path'\n\n\n# Finds all test files in the given directory.\nclass TestsFinder\n\n constructor: (@directory) ->\n\n\n # Returns the name of all files withi... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use session stored in scope\n"
},
{
"from": "human",
"value": "class Wowser.ui.screens.Authentication\n\n constructor: (@$scope, @$rootScope) ->\n @session = new Wowser(Wowser.expansions.wotlk)\n @host = 'localhost'\n @username = ''\n @password = ''\n\n... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add more dummy data to example\n"
},
{
"from": "human",
"value": "document.write 'i dunno why i have to write or something to get body working T____T'\n\nGrid = require './lib/javascripts/grid'\n\ncolumns = new Backbone.Collection [\n label: 'hello'\n,\n label: 'w... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add eventbrite to config example\n"
},
{
"from": "human",
"value": "# Facebook config\nexports.facebook =\n\tappId: null\n\tsecretKey: null\n\n# Meetup config\nexports.meetup = null # API key as string"
},
{
"from": "gpt",
"value": "# Facebook config\nex... | coffeescript | chosen |
[
{
"from": "system",
"value": "Enable fuzzy filter for suggestions\n"
},
{
"from": "human",
"value": "fs = require 'fs'\npath = require 'path'\n\nmodule.exports =\n selector: '.source.lua'\n disableForSelector: '.source.lua .comment, .source.lua .string'\n\n inclusionPriority: 10\n ex... | coffeescript | chosen |
[
{
"from": "system",
"value": "Load JS on country page correctly\n"
},
{
"from": "human",
"value": "require(['annular_sector'], (annularSector)->\n $vizContainer = $('#protected-coverage-viz')\n return false if $vizContainer.length == 0\n\n $vizContainer.find('.viz').each (idx, el) ->\n val... | coffeescript | chosen |
[
{
"from": "system",
"value": "tests: Prepare support for MQTT, uncomment to enable\n"
},
{
"from": "human",
"value": "msgflo = require 'msgflo'\npath = require 'path'\nchai = require 'chai' unless chai\nheterogenous = require '../node_modules/msgflo/spec/heterogenous.coffee'\n\nparticipants =\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix XSS vulnerability in room not found name.\n"
},
{
"from": "human",
"value": "Template.roomNotFound.helpers\n\tdata: ->\n\t\treturn Session.get 'roomNotFound'"
},
{
"from": "gpt",
"value": "Template.roomNotFound.helpers\n\tdata: ->\n\t\treturn Session... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix lmo href link function\n"
},
{
"from": "human",
"value": "angular.module('loomioApp').directive 'lmoHref', ($window, $router, LmoUrlService) ->\n restrict: 'A'\n scope:\n path: '@lmoHref'\n model: '=lmoHrefModel'\n link: (scope, elem, attrs) ->\n Lmo... | coffeescript | chosen |
[
{
"from": "system",
"value": "Set uuid for course and register using an invite\n"
},
{
"from": "human",
"value": "_ = require 'underscore'\nReact = require 'react'\nEventEmitter2 = require 'eventemitter2'\n\napi = require '../api'\n\nchannel = new EventEmitter2 wildcard: true\n\nclass Course\n\n... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add current tag value to search field value on blur\n"
},
{
"from": "human",
"value": "React = require 'react'\nSelect = require 'react-select'\napiClient = require '../api/client'\ndebounce = require 'debounce'\n\nmodule.exports = React.createClass\n displayName: ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add support for Heroku Redis-To-Go\n"
},
{
"from": "human",
"value": "Q = require 'kew'\nnodeRedis = require 'redis'\nmysql = require 'mysql'\nconfig = require '../config'\n\nconnect =\n\n ready: Q.defer()\n\n ###\n * - type (string) : 'production... | coffeescript | chosen |
[
{
"from": "system",
"value": "Refactor the magnum ci script\n"
},
{
"from": "human",
"value": "# Description:\n# Find the build status of an open-source project on Travis\n# Can also notify about builds, just enable the webhook notification on travis http://about.travis-ci.org/docs/user/buil... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix proxy for production api\n"
},
{
"from": "human",
"value": "gulp = require 'gulp'\nconnect = require 'connect'\nhttpProxy = require 'http-proxy'\nharp = require 'harp'\nhttp = require 'http'\nurl = require 'url'\nlivereload = require 'gulp-livereload'\nserver = ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Rollback checkbox labels on cancel"
},
{
"from": "human",
"value": "ETahi.InlineEditCheckboxComponent = Em.Component.extend\n editing: false\n isNew: false\n\n hasContent: Em.computed.notEmpty('bodyPart.value')\n\n hasNoContent: Em.computed.not('hasContent')\n\n... | coffeescript | chosen |
[
{
"from": "system",
"value": "Refactor not to use own error classes\n"
},
{
"from": "human",
"value": "errors = require './errors'\nbodyParser = require 'body-parser'\n\ndefaultHeaders = (request, response, next) ->\n response.header 'Content-Type', 'application/json; charset=utf-8'\n next()\n... | coffeescript | chosen |
[
{
"from": "system",
"value": "Set top and left to 0\n"
},
{
"from": "human",
"value": "# BeamWars - A multiplayer in-browser remake of the Mac game of the same name\n# Copyright (C) 2013 Aaron Hill\n#\n# This program is free software: you can redistribute it and/or modify\n# it unde... | coffeescript | chosen |
[
{
"from": "system",
"value": "Simplify code to check form changes\n"
},
{
"from": "human",
"value": "App.WatchFormChanges =\n forms: ->\n return $(\"form[data-watch-changes]\")\n\n msg: ->\n if($(\"[data-watch-form-message]\").length)\n return $(\"[data-watch-form-message]\").data(\... | coffeescript | chosen |
[
{
"from": "system",
"value": "Hide if slug is koding\n"
},
{
"from": "human",
"value": "class GroupAvatar extends JView\n\n constructor:(options = {}, data)->\n\n options.cssClass = 'group-avatar-drop'\n groupsController = KD.getSingleton 'groupsController'\n super options, groupsContr... | coffeescript | chosen |
[
{
"from": "system",
"value": "Set alignment class on wrapper\n"
},
{
"from": "human",
"value": "class Lanes.Components.FormGroup extends Lanes.React.Component\n\n mixins: [\n Lanes.React.Mixins.ReadEditingState\n Lanes.React.Mixins.FieldErrors\n ]\n\n propTypes:\n a... | coffeescript | chosen |
[
{
"from": "system",
"value": "Test relative time or date\n"
},
{
"from": "human",
"value": "module \"relative date\"\n\ntest \"this year\", ->\n now = moment()\n el = addTimeEl type: \"date\", datetime: now.toISOString()\n run()\n\n equal getText(el), now.format(\"MMM D\")\n\n\ntest \"last y... | coffeescript | chosen |
[
{
"from": "system",
"value": "Make some changes to atom packages\n"
},
{
"from": "human",
"value": "\"*\":\n \"exception-reporting\":\n userId: \"da976a4b-6a5d-3f34-7d9b-6bfdb74474ed\"\n welcome:\n showOnStartup: false\n \"one-dark-ui\": {}\n core:\n themes: [\n \"native-ui\"\n... | coffeescript | chosen |
[
{
"from": "system",
"value": "Update module heading to reflect package's purpose.\n"
},
{
"from": "human",
"value": "{View} = require 'atom'\n\nmodule.exports =\nclass PhpDebugPanel extends View\n @content: ->\n @div class: \"php-debug panel\", =>\n @div class: \"panel-heading\", \"Node... | coffeescript | chosen |
[
{
"from": "system",
"value": "Change code for configuration to use config schema\n"
},
{
"from": "human",
"value": "provider = require('./emojis-provider')\n\nmodule.exports =\n configDefaults:\n enableUnicodeEmojis: true\n enableMarkdownEmojis: true\n\n activate: ->\n provider.loadPr... | coffeescript | chosen |
End of preview. Expand
in Data Studio
README.md exists but content is empty.
- Downloads last month
- 7