conversations listlengths 2 3 | source stringclasses 1 value | stack stringclasses 1 value |
|---|---|---|
[
{
"from": "system",
"value": "TeamMembersCommonView: Implement base fetch and listing flow.\n"
},
{
"from": "human",
"value": "kd = require 'kd'\nKDView = kd.View\nKDListItemView = kd.ListItemView\nKDCustomHTMLView = kd.CustomHTMLView\nKDListViewControll... | coffeescript | chosen |
[
{
"from": "system",
"value": ":bug: Fix range of color from variable expression\n"
},
{
"from": "human",
"value": "ColorScanner = require '../color-scanner'\nColorContext = require '../color-context'\nregistry = require '../color-expressions'\n{namePrefixes} = require '../regexes'\nColorsChunkSi... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use git-utils from status handler\n"
},
{
"from": "human",
"value": "Git = require 'git'\nfs = require 'fs'\n\nmodule.exports =\n loadStatuses: (path) ->\n repo = Git.open(path)\n if repo?\n workingDirectoryPath = repo.getWorkingDirectory()\n status... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix 'Invalid property value' for trix toolbar default CSS\n\nChrome tells me that 'collapse' is not a valid property for 'white-space'. Based on trix.css, I think it should be 'nowrap'?"
},
{
"from": "human",
"value": "{cloneFragment} = Trix\n\nTrix.registerElement ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix spec for ignoring numbers over 1000\n"
},
{
"from": "human",
"value": "exports.Calculator = class Calculator\n add: (input) ->\n result = 0\n [delimiter, trimmedInput] = this.getDelimiter input\n numberStrings = trimmedInput.split delimiter\n negati... | coffeescript | chosen |
[
{
"from": "system",
"value": "Configure the BASE_PATH for WYMEditor globally\n"
},
{
"from": "human",
"value": "#= require wymeditor/jquery.wymeditor.js\n#= require_self\n\n$ ->\n $(':input.wymeditor').wymeditor\n basePath: '/assets/wymeditor/'\n updateSelector: 'form:has(:input.wymeditor... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add some comments for app.Storage.\n"
},
{
"from": "human",
"value": "goog.provide 'app.Storage'\n\ngoog.require 'este.labs.storage.Base'\n\nclass app.Storage extends este.labs.storage.Base\n\n ###*\n @param {app.songs.Store} songsStore\n @constructor\n @e... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix star loading with turbolinks\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 file: http://cof... | coffeescript | chosen |
[
{
"from": "system",
"value": "Attach an identifier to requests\n"
},
{
"from": "human",
"value": "noflo = require \"noflo\"\nhttp = require \"connect\"\n\nclass Server extends noflo.Component\n description: \"This component receives a port and host, and initializes a HTTP server for that comb... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix \"Accept\" header test for Zepto 1.1.6\n\nThe \"Accept\" header values differ slightly between Zepto 1.0 and 1.1,\nbut they start with the same string.\n"
},
{
"from": "human",
"value": "each frameworks, (framework) ->\n module \"#{framework} - Accept\",\n s... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix a test failure caused by non-existing default directory in test environment\n"
},
{
"from": "human",
"value": "{WorkspaceView} = require 'atom'\nNotationalVelocity = require '../lib/notational-velocity'\n\n# Use the command `window:run-package-specs` (cmd-alt-ct... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add autocomplete-emojis package to Atom\n"
},
{
"from": "human",
"value": "packages: [\n \"editorconfig\"\n \"file-icons\"\n \"highlight-selected\"\n \"language-docker\"\n \"language-typescript-grammars-only\"\n \"linter\"\n \"linter-coffeelint\"\n \"linter-... | coffeescript | chosen |
[
{
"from": "system",
"value": "Adjust limit to take max.\n"
},
{
"from": "human",
"value": "_ = require('underscore')._\nCONS = require '../lib/constants'\nQ = require 'q'\n\n\nclass Categories\n constructor: ->\n @id2index = {}\n @name2id = {}\n @fqName2id = {}\n @duplicateNames = [... | coffeescript | chosen |
[
{
"from": "system",
"value": "Update Csound message callback functions\n"
},
{
"from": "human",
"value": "{Emitter} = require 'atom'\n\nmodule.exports =\nclass MessageManager\n constructor: (csound, Csound) ->\n @emitter = new Emitter\n\n messageCallback = (Csound, attributes, string) =>\... | coffeescript | chosen |
[
{
"from": "system",
"value": ":green_heart: Fix variable markers id still as numbers\n"
},
{
"from": "human",
"value": "{CompositeDisposable} = require 'atom'\n\nmodule.exports =\nclass VariableMarker\n constructor: ({@marker, @variable}) ->\n @subscriptions = new CompositeDisposable\n @s... | coffeescript | chosen |
[
{
"from": "system",
"value": "Implement Categories, clean up old code\n"
},
{
"from": "human",
"value": "Transformations[\"Checkmark\"] = (object) -> Transformations.static(Checkmarks.Checkmark, object)\nCheckmarks = Collections[\"Checkmark\"] = new Mongo.Collection(\"Checkmarks\", {transform: i... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use default label value if present\n"
},
{
"from": "human",
"value": "class Lanes.Components.Input extends Lanes.React.Component\n\n mixins: [\n Lanes.Components.Form.FieldMixin\n ]\n formGroupClass: 'input'\n\n getDefaultProps: ->\n type: ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add project for OPCA docs and code\n"
},
{
"from": "human",
"value": "[]\n"
},
{
"from": "gpt",
"value": "[\n {\n title: \"OPCUA-All\"\n paths: [\n \"/Users/randy/src/github/node-opcua\"\n \"/Users/randy/Documents/Projects/OPCUA/WSDL-1.0... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add index for phone numbers and byCount aggregation\n"
},
{
"from": "human",
"value": "mongoose = require '../connection'\n\nSchema = mongoose.Schema\nObjectId = Schema.ObjectId\n\nMessageSchema = new Schema(\n Name: String\n Subject: String\n Message: String\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Reset submit button after 3000 ms\n"
},
{
"from": "human",
"value": "window.LOG = () ->\n console?.log?(arguments...)\n\n\nwindow.init_loading_button = () ->\n $('body').on 'click', '.btn-loading', ->\n $(this).button('loading')\n\n\nwindow.init_time = () ->\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Switch to explicit call instead of inside the loop\n"
},
{
"from": "human",
"value": "module.exports = (grunt) ->\n grunt.initConfig\n pkg: grunt.file.readJSON \"package.json\"\n sass:\n dist:\n files:\n \"{{ app_name }}/static/{{ app_nam... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix Grunt Jade task configuration\n"
},
{
"from": "human",
"value": "module.exports = (grunt, options) ->\n return {\n options:\n client: true\n files:\n '<%= build %>/js/templates.js': ['views/templates/**/*.jade']\n dev:\n options:\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Increase timeout for thumbnail test\n"
},
{
"from": "human",
"value": "fs = require 'fs'\nexpect = require 'expect.js'\nconfig = require '../../../test/test_config'\nmodels = require('../lib/schema').load(config)\ncommon = require '../../../t... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix IE 9/10 host_ready event\n"
},
{
"from": "human",
"value": "setTimeout ->\n\n if /^(interactive|complete)$/.test(document.readyState)\n FactlinkJailRoot.host_ready_promise.resolve()\n else\n document.addEventListener('DOMContentLoaded', -> FactlinkJailRo... | coffeescript | chosen |
[
{
"from": "system",
"value": "refactor(*): Remove disabledPackages that no longer exist\n"
},
{
"from": "human",
"value": "'global':\n 'core':\n 'themes': [\n 'inbox-light-ui'\n ]\n 'disabledPackages': [\n \"atom-dark-syntax\",\n \"atom-dark-ui\",\n \"atom-light-syn... | coffeescript | chosen |
[
{
"from": "system",
"value": "Remove advertize if data only enabled\n"
},
{
"from": "human",
"value": "init = ->\n primary_lang = $(\"#catalog_primary_language\")\n other_lang_boxes = \\\n $(\"input[type=checkbox][name='catalog[other_languages][]']\")\n\n update_boxes = (evt)->\n primar... | coffeescript | chosen |
[
{
"from": "system",
"value": "Enable keyboard interaction with 'More...' toggle\n"
},
{
"from": "human",
"value": "define (require) ->\n $ = require('jquery')\n linksHelper = require('cs!helpers/links')\n BaseView = require('cs!helpers/backbone/views/base')\n template = require('hbs!./filter... | coffeescript | chosen |
[
{
"from": "system",
"value": "Hide header and footer when song page is shown.\n\nApp needs maximum space to shown lyrics as big as possible.\n"
},
{
"from": "human",
"value": "goog.provide 'app.react.Layout'\n\nclass app.react.Layout\n\n ###*\n PATTERN(steida): Here we can choose mobile/tabl... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use buttons data-actions in NumberFieldUpdater component\n\nIt will survive if we change icons framework, also it is more\nsamantically correct.\n"
},
{
"from": "human",
"value": "class NumberFieldUpdater\n @hideReadOnly: (id) ->\n toggleReadOnly(id, false)\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Allow routes to load without trailing slash\n"
},
{
"from": "human",
"value": "class Workbench.Routers.WorkbenchRouter extends Backbone.Router\n initialize: (options) ->\n @sensor = options.sensor\n @navigate(@sensor.id)\n\n routes:\n '': 'index'\n ':i... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use region manager for sensors views\n"
},
{
"from": "human",
"value": "class Workbench.Controllers.SensorsController extends Backbone.Marionette.Controller\n initialize: (options) ->\n @$el = options.el\n @getApiKey()\n Workbench.source = new Geocens.Data... | coffeescript | chosen |
[
{
"from": "system",
"value": "Validate compatible frames for all selected models prior to displaying frame selection dialog.\nPP-71 PP-82\n"
},
{
"from": "human",
"value": "Steam.ModelSelectionView = (_) ->\n _selections = nodes$ []\n _hasSelection = lift$ _selections, (selections) -> selectio... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix for_value and for_ordinal in JS"
},
{
"from": "human",
"value": "#= require jiffy_enum\n#= require_self\n\nclass window.JiffyEnums\n constructor: (@hash) ->\n\n # equavalent to [] in ruby\n get: (key) =>\n @hash[key]\n\n each: (func) =>\n _.each(@hash,... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add licence and usage guide\n"
},
{
"from": "human",
"value": "class @StickyHeader\n stickMarker: document.getElementsByClassName('js-sticky-header')\n\n constructor: ->\n $(window).on 'scroll', @stickOrUnstick\n $(document).on 'ready page:load osu:page:chan... | coffeescript | chosen |
[
{
"from": "system",
"value": "Define error reponses for unimplemented endpoints\n"
},
{
"from": "human",
"value": "_ = require 'underscore'\npkg = require '../package.json'\n\nmodule.exports = (app) ->\n\n # homepage\n app.get '/', (req, res, next) ->\n res.json _.omit pkg, 'devDependencies... | coffeescript | chosen |
[
{
"from": "system",
"value": "Change from Yahoo to DuckDuckGo\n"
},
{
"from": "human",
"value": "$ ->\n DIC_URL_PREFIX = 'http://alldic.daum.net/search.do?dic=eng&q='\n IMAGES_URL_PREFIX = 'http://images.search.yahoo.com/search/images?p='\n $input = $('input')\n $button = $('button')\n $dic... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix InStateMenu not positioning correctly.\n\nDon't add to world, add to stage. Note that Group#fixedToCamera doesn't\nseem to work by itself."
},
{
"from": "human",
"value": "define [\n 'phaser'\n 'underscore'\n 'app/helpers'\n], (Phaser, _, Helpers) ->\n\n 'us... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use single quotes to avoid coffeescript parsing string as variable\n"
},
{
"from": "human",
"value": "Slack = require('slack-client')\nrequire('events').EventEmitter\nconfig = require('../../../config.json').slack;\n\nclass SlackIntegration\n DEFAULT_MESSAGE = \"#{... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add default message if none defined in config\n"
},
{
"from": "human",
"value": "Slack = require('slack-client')\nrequire('events').EventEmitter\nconfig = require('../../../config.json').slack;\n\nclass SlackIntegration\n\n constructor: (opts)->\n {\n @toke... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add `tiles` array and `newTile` function\n"
},
{
"from": "human",
"value": "# tael.js\n# Copyright (c) 2015 Carter Hinsley\n# MIT License\n\nmodule.exports = ->\n ($ document).ready ->\n ($ '.tael-container')\n .append(\n ($ '<div>')\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Make test projects diff more\n"
},
{
"from": "human",
"value": "helper =\n settingsPath: \"#{__dirname}/projects.test.cson\"\n savedProjects: null\n\n\n readFile: (callback) ->\n callback(helper.projects)\n\n writeFile: (projects, callback) ->\n helper.pro... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add \"build:once\" task without webserver and watcher\n"
},
{
"from": "human",
"value": "gulp = require 'gulp'\nsequence = require 'gulp-run-sequence'\n\nrequire('./clean') gulp\nrequire('./coffee') gulp\nrequire('./jade') gulp\nrequire('./scss') gulp\nrequire... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add getQuestions method to Form class\n"
},
{
"from": "human",
"value": "if Meteor.isServer\n Parse = require 'parse/node'\nelse\n Parse = require 'parse'\n\nexports.Survey = Parse.Object.extend 'Survey',\n getForms: (returnMeteorCollection, collection) ->\n q... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use the slack way of sending message\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/us... | coffeescript | chosen |
[
{
"from": "system",
"value": "Test that updateWindowSheetOffset can be called\n\nTesting the wiring to themes isn't worth it, but this at least makes sure we don't break if Electron APIs change."
},
{
"from": "human",
"value": "TitleBar = require '../src/title-bar'\n\ndescribe \"TitleBar\", ->\n... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use a string to specify adapter\n"
},
{
"from": "human",
"value": "App.Store = DS.Store.extend\n revision: 11\n adapter: App.Adapter.create()\n"
},
{
"from": "gpt",
"value": "App.Store = DS.Store.extend\n revision: 11\n adapter: 'App.Adapter'\n"
}
... | coffeescript | chosen |
[
{
"from": "system",
"value": "SidebarSharedMachinesList: Hide if there is no machine.\n"
},
{
"from": "human",
"value": "SidebarMachineList = require './sidebarmachinelist'\n\n\nmodule.exports = class SidebarSharedMachinesList extends SidebarMachineList\n\n constructor: (options = {}, data) ->\... | coffeescript | chosen |
[
{
"from": "system",
"value": ":bug: Fix plugin broken by latest highlight-selected update\n\nFixes #8, Closes #7\n"
},
{
"from": "human",
"value": "module.exports = ->\n highlightSelectedPackage = atom.packages.getLoadedPackage('highlight-selected')\n\n highlightSelected = require (highlightSe... | coffeescript | chosen |
[
{
"from": "system",
"value": "Remove chai-as-promised; it isn’t working properly."
},
{
"from": "human",
"value": "module.exports = ->\n chai = require 'chai'\n chai.use require 'chai-as-promised'\n @World.prototype.expect = chai.expect\n"
},
{
"from": "gpt",
"value": "module.expo... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix for slow loading images\n"
},
{
"from": "human",
"value": "$(document).ready ->\n # Photo grid\n photoGrid = $(\".photo-grid\")\n photoGrid.imagesLoaded ->\n photoGrid.trigger \"reload:grid\"\n\n $(window).resize ->\n photoGrid.trigger \"reload:grid\"\... | coffeescript | chosen |
[
{
"from": "system",
"value": "Convert to and from underlying query in CwbSimpleInput\n"
},
{
"from": "human",
"value": "###* @jsx React.DOM ###\n\nwindow.CwbSimpleInput = React.createClass\n getInitialState: ->\n searchText: ''\n\n displayedQuery: ->\n ''\n\n handleTextChange: (e) ->\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use BufferedProcess instead of BufferedNodeProcess\n"
},
{
"from": "human",
"value": "{$$, BufferedNodeProcess} = require 'atom'\n\nmodule.exports =\n activate: ->\n atom.workspaceView.command 'update-package-dependencies:update', => @update()\n\n update: ->\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": ":new: Add minimatch to ignore files matching glob\n"
},
{
"from": "human",
"value": "{Range} = require('atom')\npath = require 'path'\nchild_process = require('child_process')\n\nHelpers = module.exports =\n error: (e) ->\n atom.notifications.addError(e.toString... | coffeescript | chosen |
[
{
"from": "system",
"value": "Connect to broker before registering\n"
},
{
"from": "human",
"value": "program = require 'commander'\nmsgflo_nodejs = require 'msgflo-nodejs'\nfs = require 'fs'\npath = require 'path'\nforeigner = require '../foreign-participant'\nyaml = require 'js-yaml'\n\nonErro... | coffeescript | chosen |
[
{
"from": "system",
"value": "Make constructors for all HTML5 elements.\n"
},
{
"from": "human",
"value": "make_element = (name, v) ->\n e = $ \"<#{name}>\"\n e.append v\n\nfor n in [\"label\", \"div\", \"span\", \"button\", \"img\", \"figure\", \"figcaption\",\n \"h1\", \"h2\", \"h3\... | coffeescript | chosen |
[
{
"from": "system",
"value": "Update Google Analytics script to reflect location of the user\n"
},
{
"from": "human",
"value": "$(document).on 'page:change', ->\r\n if window._gaq?\r\n _gaq.push ['_trackPageview']\r\n else if window.pageTracker?\r\n pageTracker._trackPageview()"
},
{... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add javascript Ising Model as project\n"
},
{
"from": "human",
"value": "[\n {\n title: \"CDS-411 Instructors\"\n group: \"CDS-411\"\n paths: [\n \"~/Courses/CDS-411/instructors\"\n ]\n }\n {\n title: \"Spyns\"\n group: \"Development\"\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Break logic out into a CheckBox component\n"
},
{
"from": "human",
"value": "class Lanes.Components.Grid.Selections\n id: 'selected'\n query: false\n textAlign: 'center'\n fixedWidth: 90\n defaultClicked: true\n constructor: (options) ->\n @... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add update method using PUT to resource factory\n"
},
{
"from": "human",
"value": "'use strict'\n\napiResource = ($resource, resource, args) ->\n $resource \"/api/#{resource}/:id\"\n , # Default arguments\n args\n , # Override methods\n query:\n method... | coffeescript | chosen |
[
{
"from": "system",
"value": "Update fields that are shown\n"
},
{
"from": "human",
"value": "class Skr.Components.CustomerProjectFinder extends Lanes.React.Component\n\n propTypes:\n onModelSet: React.PropTypes.func\n commands: React.PropTypes.object\n autoFocus: Reac... | coffeescript | chosen |
[
{
"from": "system",
"value": "StackTemplateEditorView: Put introduction text into editor when ready.\n"
},
{
"from": "human",
"value": "BaseStackEditorView = require './basestackeditorview'\n\n\nmodule.exports = class StackTemplateEditorView extends BaseStackEditorView\n\n\n constructor: (optio... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix issue where not all arguments would be pushed to GA\n"
},
{
"from": "human",
"value": "define (require) ->\n Backbone = require('backbone')\n settings = require('settings')\n\n # Class to handle loading analytics scripts and wrapping\n # handlers around them... | coffeescript | chosen |
[
{
"from": "system",
"value": "Update base controller to use new beforeLoad api\n"
},
{
"from": "human",
"value": "class Controller\n\t_redirecting: false\n\n\tconstructor: (@request, @response, view, layout) ->\n\t\tView = Import 'class.View$cs'\n\t\t@view = new View view, @response\n\t\t@view.s... | coffeescript | chosen |
[
{
"from": "system",
"value": "Handle toggling quoted invalid regions\n"
},
{
"from": "human",
"value": "toggleQuotes = (editor) ->\n editor.transact ->\n for cursor in editor.getCursors()\n position = cursor.getBufferPosition()\n toggleQuoteAtPosition(editor, position)\n curso... | coffeescript | chosen |
[
{
"from": "system",
"value": "Delete only files which are generated at least 60 seconds ago.\n"
},
{
"from": "human",
"value": "{File} = require 'file-utils'\nfs = require 'fs'\n\nclass LocaleTempFileRepository\n\n items : null\n\n constructor : (@items = {}) ->\n setInterval (=> @gc()), 60... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use default empty message when items exist\n"
},
{
"from": "human",
"value": "{$$, SelectListView} = require 'atom'\n\nmodule.exports =\nclass DiffListView extends SelectListView\n initialize: ->\n super\n @addClass('diff-list-view overlay from-top')\n\n get... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix render error of contest voting page\n"
},
{
"from": "human",
"value": "# Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0.\n# See the LICENCE file in the repository root for full licence text.\n\nimport core f... | coffeescript | chosen |
[
{
"from": "system",
"value": "Remove dangling references to conv IDs and bot name env options\n"
},
{
"from": "human",
"value": "module.exports = class Util\n\n @log: console.log.bind console\n @logError: console.error.bind console\n \n @debug: (object) -> \n \tif @isDebug()\n \t @log obj... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add 0 load time for no-op ThemePackage::load\n"
},
{
"from": "human",
"value": "Q = require 'q'\nPackage = require './package'\n\nmodule.exports =\nclass ThemePackage extends Package\n getType: -> 'theme'\n\n getStyleSheetPriority: -> 1\n\n enable: ->\n atom.c... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix open links for Android\n"
},
{
"from": "human",
"value": "Meteor.startup ->\n\treturn unless Meteor.isCordova\n\n\t# Handle click events for all external URLs\n\t$(document).on 'deviceready', ->\n\t\tplatform = device.platform.toLowerCase()\n\t\t$(document).on '... | coffeescript | chosen |
[
{
"from": "system",
"value": "Revert \"Prevent tour wizard button from disappearing\"\n\nThis reverts commit 685e422eb1c9897cf1f9a4143a8845a1d186c3ae.\n"
},
{
"from": "human",
"value": "define [\n 'app/views/base',\n 'app/tour'\n],\n(\n base,\n tour,\n) ->\n\n class TourStartButto... | coffeescript | chosen |
[
{
"from": "system",
"value": "Remove the marker views when hideResults"
},
{
"from": "human",
"value": "_ = require 'underscore'\n{View} = require 'space-pen'\nSelection = require 'selection'\nMarkerView = require './marker-view'\nSearchResultsModel = require './search-results-model'\n\n# Will b... | coffeescript | chosen |
[
{
"from": "system",
"value": "Update flag selection on value input\n"
},
{
"from": "human",
"value": "---\n---\npow2 = (exp) ->\n\tbase = 1\n\tbase *= 2 while exp-- > 0\n\tbase\n\nrecalculate = ->\n\tval = 0\n\tfor el in document.querySelectorAll '.flag-list input'\n\t\tval += pow2 el.getAttribu... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add Increasing Logic to Quality\n"
},
{
"from": "human",
"value": "edsl = (id, name, description, args = {}) ->\n {defaultValue, defaultProgress, maxProgress, hasProgress, visible} = args\n defaultValue ?= 0\n defaultProgress ?= 0\n maxProgress ?= if hasProgress... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix replacement paths that are absolute paths on Windows\n\nThere is a bug where absolute paths have their backslashes replaced as forward slashes. For relative paths, this is not a problem. However, especially with joeybaker/remapify, it is possible to have absolute paths pa... | coffeescript | chosen |
[
{
"from": "system",
"value": "Change how we construct ClickEvents to satisfy PhantomJS."
},
{
"from": "human",
"value": "prettyPrint = require('html').prettyPrint\nReact = require 'react'\n\nassertRendersHtml = (reactComponent, done, expectedHtml) ->\n if typeof(document) == 'undefined'\n... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add defensive check for options.plan\n"
},
{
"from": "human",
"value": "kd = require 'kd'\nKDView = kd.View\nKDModalView = kd.ModalView\nCustomLinkView = require 'app/customlinkview'\nCompute... | coffeescript | chosen |
[
{
"from": "system",
"value": "Remove model attribute binding from TextArea view"
},
{
"from": "human",
"value": "ETahi.TextArea = Ember.TextArea.extend\n attributeBindings: [ \"name\", \"type\", \"value\", \"model\"]\n focusOut: ->\n @get('model').save()\n"
},
{
"from": "gpt",
"... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add space to help text\n\n- Closes #1376\n"
},
{
"from": "human",
"value": "React = require 'react'\n\nmodule?.exports = React.createClass\n displayName: 'TalkCommentHelp'\n\n render: ->\n <div className=\"talk-comment-help\">\n <h1>Guide to commenting on ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Comment out unittest prototype for ts-task-edit because affected coverage.\n"
},
{
"from": "human",
"value": "# Disabled because unittests for directives is extra efforts at the point\nxdescribe 'tsTaskEdit', () ->\n beforeEach(module('trackSeatsApp'))\n\n beforeE... | coffeescript | chosen |
[
{
"from": "system",
"value": ":bug: Fix a spec that was saving a test file to disk\nit no longer saves to cwd now, it saves to tmp\n"
},
{
"from": "human",
"value": "describe 'editor-linter', ->\n EditorLinter = require('../lib/editor-linter')\n editorLinter = null\n textEditor = null\n befo... | coffeescript | chosen |
[
{
"from": "system",
"value": "Make reordering sections save them\n"
},
{
"from": "human",
"value": "window.Backbone ||= {}\nwindow.Backbone.Views ||= {}\n\nclass Backbone.Views.SectionNavigationView extends Backbone.View\n template: Handlebars.templates['section_navigation.hbs']\n className: '... | coffeescript | chosen |
[
{
"from": "system",
"value": "Reset sticky component before clicking back button on browser\n"
},
{
"from": "human",
"value": "App.FoundationExtras =\n\n initialize: ->\n $(document).foundation()\n $(window).trigger \"load.zf.sticky\"\n $(window).trigger \"resize\"\n\n clearSticky =... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add auras, passives, and actives\n\nSigned-off-by: Ian Macalinao <08370e385f4778cad8fe504ec5445edd3d45bd9a@gmail.com>\n"
},
{
"from": "human",
"value": "#<< main\nlol.stats =\n names:\n armor: \"Armor\"\n ap: \"Ability Power\"\n ad: \"Attack Damage\"\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix object arrow method snippet\n"
},
{
"from": "human",
"value": "\".source.js\":\n \"Object.assign\":\n prefix: \"assign\"\n body: \"Object.assign(${1:dest}, ${2:source})\"\n \"Object.assign +\":\n prefix: \"Object.assign\"\n body: \"Object.assign(${... | coffeescript | chosen |
[
{
"from": "system",
"value": "Refactor gun generation, shotguns range change\n"
},
{
"from": "human",
"value": "game = require '../game'\nitems = require '../definitions/items'\n\n{MapItem} = require '../entities'\n\nexports.asMapItem = (x, y, item) ->\n\tnew MapItem null, x, y, item\n\nexports.... | coffeescript | chosen |
[
{
"from": "system",
"value": "Work on RequireJS Jasmine test.\n"
},
{
"from": "human",
"value": "describe \"RequireJS namespacing\", ->\n beforeEach ->\n @addMatchers\n requirejsTobeUndefined: ->\n typeof requirejs is \"undefined\"\n\n requireTobeUndefined: ->\n typeo... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use KeyboardEvent.which instead of .key\n"
},
{
"from": "human",
"value": "log = require '../log'\n\nevents = []\n\nhandleEvent = (game, event) ->\n\tevents.push event\n\n\tif events.length is 1\n\t\tprocess.nextTick ->\n\t\t\tprocessEvents game, events\n\t\t\tevent... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use correct ENV variable for node popup link targets.\n"
},
{
"from": "human",
"value": "Wheelmap.NodePopupView = Ember.View.extend\n templateName: 'node-popup'\n classNames: ['node-popup-view']\n\n aboutFaqLink: (()->\n if I18n.locale == 'de' then 'http://whe... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use proper convention for jQuery\n"
},
{
"from": "human",
"value": "# Placeholder Polyfill\n# https://github.com/mathiasbynens/jquery-placeholder\n($ window).load ->\n ($ 'input, textarea').placeholder();\n"
},
{
"from": "gpt",
"value": "# Placeholder P... | coffeescript | chosen |
[
{
"from": "system",
"value": "Update impersonation session cookie using helper\n"
},
{
"from": "human",
"value": "koding = require './../bongo'\n\nmodule.exports = (req, res) ->\n { JAccount, JSession } = koding.models\n { nickname } = req.params\n { clientId } = req.cooki... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add recursive loop to escape from formatting cells.\nChange to use jQuery based objects (accessed through Annotator reference).\n"
},
{
"from": "human",
"value": "Annotator = require('annotator')\n$ = Annotator.$\nxpathRange = Annotator.Range\nUtil = Annotator.Util\... | coffeescript | chosen |
[
{
"from": "system",
"value": "Implement fadeout/in in control iframe; return deferred for completion handlers\n"
},
{
"from": "human",
"value": "class FactlinkJailRoot.ControlIframe\n constructor: ->\n @el = document.createElement('iframe')\n @el.className = 'factlink-control-frame'\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Initialize window.VoluntaryMusicMetadataEnrichment.Library.YearInReviewTracks.IndexView on music library index page ready.\n"
},
{
"from": "human",
"value": "$(document).ready ->\n $(document.body).on \"change\", \"select[name^=\\\"year\\\"]\", ->\n $.ajax(\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Change list to listId for clarification\n"
},
{
"from": "human",
"value": "Spine = require('spine')\n\nclass window.Task extends Spine.Model\n @configure 'Task', 'name', 'completed', 'priority', 'list'\n @extend @Local\n\n @active: (list) =>\n @select (task) -... | coffeescript | chosen |
[
{
"from": "system",
"value": "Change regex formatting to improve readability on GitHub"
},
{
"from": "human",
"value": "# Constant strings to print on certain error\nSYNTAX_ERROR = 'unrecognised syntax: '\n\n# Lexical matchers\nisString = (str) -> str[0] == '\\'' and str[str.length - 1] == '\\''... | coffeescript | chosen |
[
{
"from": "system",
"value": "Revert \"Fix command name =>\"\n\nThis reverts commit 998f44f98862d96fae2f91e33e19ed2a6e064db4.\n"
},
{
"from": "human",
"value": "# Description:\n# hubotに亀の写真を拾ってきてもらう\n#\n# Commands:\n# hubot turtle me - Queries Google Images for turtle and returns a random t... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use fieldmixin, support rendering as read-only\n"
},
{
"from": "human",
"value": "class Lanes.Components.RecordFinder extends Lanes.React.Component\n\n propTypes:\n query: Lanes.PropTypes.State.isRequired\n model: Lanes.PropTypes.State.isRequi... | coffeescript | chosen |
[
{
"from": "system",
"value": "Update map center when selecting bus\n"
},
{
"from": "human",
"value": "Wmsb.Views.MapView = Backbone.View.extend\n events:\n 'click a.student-name': 'updateCurrentStudent'\n\n initialize: (options) ->\n @mapEl = document.getElementById 'map-canv... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add explanatory comment for model, view-models, and views\n"
},
{
"from": "human",
"value": "GitChanges = require './git-changes'\n\nmodule.exports = class Changes\n # The view-model for the root ChangesView\n constructor: ->\n @git = new GitChanges\n"
},
{... | coffeescript | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.