conversations listlengths 2 3 | source stringclasses 1 value | stack stringclasses 1 value |
|---|---|---|
[
{
"from": "system",
"value": "Make confirmation key binding work with shadow DOM\n\nFixes atom/atom#4251"
},
{
"from": "human",
"value": "'.editor':\n 'ctrl-space': 'autocomplete:toggle'\n\n'.autocomplete .mini.editor input':\n 'enter': 'core:confirm'\n 'tab': 'core:confirm'\n"
},
{
"... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use turbolinks for dom loading\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://coffe... | coffeescript | chosen |
[
{
"from": "system",
"value": "Make configuration hash more magical\n\nCoffeeScript rules!\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 stat... | coffeescript | chosen |
[
{
"from": "system",
"value": "Update test environment AWS access key\n"
},
{
"from": "human",
"value": "AWS = require 'aws-sdk'\nAWS.config.region = 'us-east-1'\nAWS.config.update\n accessKeyId : 'AKIAJDR2J6W5AT4KWS4A'\n secretAccessKey : '82aH++Y6osapvGF5L+Jpelqlwkc6td/ynj2U... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix image width resizer bug\n"
},
{
"from": "human",
"value": "document.body.addEventListener \"AutoPagerize_DOMNodeInserted\", (e) ->\n node = e.target\n requestURL = e.newValue\n parentNode = e.relatedNode\n init node\n, false\n\nfitImageWidthToScreenWid... | coffeescript | chosen |
[
{
"from": "system",
"value": "Change URL based on what tab you click on summary 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.js.\n\n$(document).ready ->\n ids... | coffeescript | chosen |
[
{
"from": "system",
"value": "Concatenate pending request message to remove excess whitespace"
},
{
"from": "human",
"value": "define [\n 'jquery'\n], ($) ->\n\n # Relies on the jquery-ajax-queue plugin to supply this method.\n # This ensures data is not silently lost\n $(window).on ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Remove unneeded description from query\n"
},
{
"from": "human",
"value": "module.exports = \"\"\"\n fragment blockThumb on Connectable {\n id\n title\n description\n klass\n created_at(relative: true)\n updated_at(relative: true)\n user {\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add debug to auth controller\n"
},
{
"from": "human",
"value": "redis = require 'redis'\nAuthenticator = require '../models/authenticator'\nMeshbluAuthParser = require '../helpers/meshblu-auth-parser'\n\nclass AuthenticateController\n constructor: (... | coffeescript | chosen |
[
{
"from": "system",
"value": "Update mininum Serrano version supporting notifications in response\n"
},
{
"from": "human",
"value": "define [\n '../core'\n './base'\n], (c, base) ->\n\n\n class ExporterModel extends base.Model\n\n\n class ExporterCollection extends base.Collection\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use `waitFor` when restoring a file in v2 history\n"
},
{
"from": "human",
"value": "define [\n\t\"base\"\n], (App) ->\n\tApp.controller \"HistoryV2DiffController\", ($scope, ide, event_tracking) ->\n\t\t$scope.restoreState =\n\t\t\tinflight: false\n\t\t\terror: fal... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use native JS iteration (instead of _.each)\n"
},
{
"from": "human",
"value": "{_} = require 'atom'\nRangeFinder = require './range-finder'\n\nmodule.exports =\n activate: (state) ->\n atom.workspaceView.command 'sort-lines:sort', '.editor', =>\n editor = a... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix incorrect comment about Apollos.person\n"
},
{
"from": "human",
"value": "###\n\n Apollos.name\n\n @example get a string with the name of this system\n\n console.log Apollos.name\n\n###\nApollos.name = \"Apollos\"\n\n###\n\n Apollos.user\n\n @example get ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Check if model is defined before cloning its attributes\n\nPreviously, if the context(@model) was empty then the `attrs = c._.clone(...)` line would fail with an error involving the attempt to access the attributes property of an undefined object. This code checks if the model ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Set add-row css class for targeting during testing\n"
},
{
"from": "human",
"value": "class Lanes.Components.Grid.Toolbar extends Lanes.React.Component\n\n propTypes:\n addRecord: React.PropTypes.func\n\n addButton: ->\n <BS.Button className=\"na... | coffeescript | chosen |
[
{
"from": "system",
"value": "Split breakpoint assertions into two separate tests\n\nAs noted in #11, using this style of chai-as-promised (without\nexplicitly synchronizing) can only perform one assertion per test, so\nthe first assertion was never being run.\n"
},
{
"from": "human",
"value": "... | coffeescript | chosen |
[
{
"from": "system",
"value": "MER-41: Update import for auth config.\n"
},
{
"from": "human",
"value": "{ProductImport} = require '../lib'\n\ndescribe 'ProductImport', ->\n\n beforeEach ->\n @import = new ProductImport\n\n it 'should initialize', ->\n expect(@import).toBeDefined()"
},
... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add decision and decision letter to ember paper model\n"
},
{
"from": "human",
"value": "a = DS.attr\nETahi.Paper = DS.Model.extend\n shortTitle: a('string')\n title: a('string')\n assignees: DS.hasMany('assignee')\n phases: DS.hasMany('phase')\n declarations: ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use regex to clean code strings\n"
},
{
"from": "human",
"value": "Lanes.Models.Mixins.HasCodeField = {\n\n INVALID: /[^A-Z0-9a-z]/\n\n included: (klass)->\n klass::INVALID_CODE_CHARS ||= Lanes.Models.mixins.Lanes.sCodeField.INVALID\n\n initialize: -... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use camelCase version of accept-charset\n\nSilences warning about React not supporting dasherized prop names.\n"
},
{
"from": "human",
"value": "React = require 'react'\n{CurrentUserStore} = require '../../flux/current-user'\n\nLOGOUT_URL = '/accounts/logout'\nCSRF_... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix formatR, do not pipe stdout to file, unnecessarily\n"
},
{
"from": "human",
"value": "###\nRequires [formatR](https://github.com/yihui/formatR)\n###\npath = require(\"path\")\n\n\"use strict\"\nBeautifier = require('../beautifier')\n\nmodule.exports = class R ex... | coffeescript | chosen |
[
{
"from": "system",
"value": "Improve DOM node children list\n"
},
{
"from": "human",
"value": "'use strict'\n\n\nList = require '../nodes/list'\n\n\nmodule.exports = class ChildrenList extends List\n\n constructor: (@element) ->\n\n\n set: (elementList) ->\n while (el = @element.lastChild)... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use ISO date string for setting date\n\nAnd compare it against toDateString\n"
},
{
"from": "human",
"value": "{expect} = require 'chai'\n\n{TimeActions, TimeStore} = require '../src/flux/time'\n\nSERVER_TIME = new Date('2000-02-02')\nLOCAL_TIME = new Date('2011-11-... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix wrong call to debounce method.\n"
},
{
"from": "human",
"value": "# Copyright 2013 Andrey Antukh <niwi@niwi.be>\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\")\n# you may not use this file except in compliance with the License.\n# You may ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add school sites to the loaded data.\n"
},
{
"from": "human",
"value": "L.mapbox.accessToken = 'pk.eyJ1Ijoia25vY2siLCJhIjoiRVdjRFVjRSJ9.nIZeVnR6dJZ0hwNnKAiAlQ'\n\nmap = L.mapbox.map('map', 'knock.l5dpakki').\n setView([47.61, -122.33], 13)\n\nfeatureLayer = L.mapbo... | coffeescript | chosen |
[
{
"from": "system",
"value": "Support newer xregexp where XRegExp is imported as default\n"
},
{
"from": "human",
"value": "reader = require('readline').createInterface process.stdin, null\n{XRegExp} = require 'xregexp'\ncounts = new Map()\n\nreader.on 'line', (line) ->\n wordPattern = XRegExp(... | coffeescript | chosen |
[
{
"from": "system",
"value": "Revert \"utils: bugfix: eventSpy constructor returns self\"\n\nThis reverts commit 43d63c85f63f15587125d00aaafd5c2a930b425a.\n\nConflicts:\n\n\tcoffee/src/util/test.coffee\n"
},
{
"from": "human",
"value": "goog.provide 'athena.lib.util.test'\n\ntest = athena.lib.ut... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use _.bind instead of Function.prototype.bind\n"
},
{
"from": "human",
"value": "routeClasses = ->\n ctrl = Router.current()\n _.chain([ctrl._layout._template, ctrl.lookupTemplate()])\n .compact()\n .invoke('toLowerCase')\n .value()\n\nBodyClass =\n\n se... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix resolution for single-segment path-relative URLs\n"
},
{
"from": "human",
"value": "urllite = require '../core'\nrequire './normalize'\n{URL} = urllite\n\n\noldParse = URL.parse\n\n\ncopyProps = (target, source, props...) ->\n target[prop] = source[prop] for pr... | coffeescript | chosen |
[
{
"from": "system",
"value": "Move menu location to Edit > Lines > Sort\n"
},
{
"from": "human",
"value": "'menu': [\n {\n 'label': 'Packages'\n 'submenu': [\n 'label': 'Sort Lines'\n 'submenu': [\n { 'label': 'Sort', 'command': 'sort-lines:sort' }\n ]\n ]\n }\n]... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add overwrite parameter to install command\n"
},
{
"from": "human",
"value": "parser = require 'nomnom'\n\njudge = require '../judge'\n\nmodule.exports = (argv) ->\n\tparser.command 'install'\n\t.callback (opts) ->\n\t\tjudge.install process.cwd(), opts[1], (err) ->... | coffeescript | chosen |
[
{
"from": "system",
"value": "Make tooltips work on ios\n"
},
{
"from": "human",
"value": "# Initialize all namespaces\nclass SwanKiosk\n @Interpreters: {}\n @Components: {}\n @Config: {}\n @Store: {}\n @Controllers:\n _find: (name) ->\n _.find this, (value, key) ->\n... | coffeescript | chosen |
[
{
"from": "system",
"value": "Handle errors on /try, rather than appearing to 'Load' forever.\n"
},
{
"from": "human",
"value": "$ ->\n $('textarea').keydown (event) =>\n if (event.keyCode == 10 or event.keyCode == 13) and event.ctrlKey\n $('#result').text(\"Loading...\")\n $.ajax ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Return to 'Everything' when none of languages are selected\n"
},
{
"from": "human",
"value": "$ ->\n projects = $('#projects').clone()\n\n languages = []\n $('#languages a').click (e) ->\n clicked_language = $(this).data().language\n\n unless clicked_langua... | coffeescript | chosen |
[
{
"from": "system",
"value": "Switch this to a straight up say\n"
},
{
"from": "human",
"value": "Redis = require 'redis'\nUrl = require 'url'\n\nPOO_TRACKER_KEY = \"poops\"\nPOO_LATEST_KEY = \"poops:latest_message\"\n\ninfo = Url.parse process.env.POO_REDIS_URL or \"redis://localhost:6379/0\"\n... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix indicator index test by adding them to themes\n\nIndicators are now displayed per theme, so we need indicators with\nthemes to list them\n"
},
{
"from": "human",
"value": "assert = require('chai').assert\nhelpers = require '../helpers'\nrequest = require('reques... | coffeescript | chosen |
[
{
"from": "system",
"value": "Update my local subject's ID"
},
{
"from": "human",
"value": "Spine = require 'Spine'\n\nClassification = require 'models/Classification'\n\nclass Subject extends Spine.Model\n\t@configure 'Subject', 'image', 'audio', 'latitude', 'longitude', 'location', 'habitat', ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use Redux Devtools Chrome extension.\n"
},
{
"from": "human",
"value": "Redux = require 'redux'\npromiseMiddleware = require 'redux-promise-middleware'\nthunkMiddleware = require 'redux-thunk'\nRouter = require 'react-router'\ncreateHistory = require 'history/lib/cr... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use radio buttons for export type selection as there is no bulk export resource yet.\n"
},
{
"from": "human",
"value": "define [\n './core'\n], (c) ->\n\n class ExportType extends c.Backbone.View\n tagName: 'label'\n \n className: 'checkbo... | coffeescript | chosen |
[
{
"from": "system",
"value": "Make an https get to github using env auth token\n"
},
{
"from": "human",
"value": "# Description\n# A hubot script that shows who has the longest github streak in your org\n#\n# Configuration:\n# LIST_OF_ENV_VARS_TO_SET\n# HUBOT_ORG_ACCESS_TOKEN\n#\n# Command... | coffeescript | chosen |
[
{
"from": "system",
"value": "Allow form to take an onSubmit argument\n"
},
{
"from": "human",
"value": "Promise = require 'bluebird-q'\nSerializer = require '../../../../components/form/serializer.coffee'\n\nmodule.exports = ($el) ->\n $submit = $el.find('button')\n $errors = $el.find('.js-fo... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use complete_exercise_count to determine status\n"
},
{
"from": "human",
"value": "React = require 'react'\nBS = require 'react-bootstrap'\nEventRow = require './event-row'\n_ = require 'underscore'\n\nisStepComplete = (step) -> step.is_completed\n\nmodule.... | coffeescript | chosen |
[
{
"from": "system",
"value": "Correct coffeescript in previous commit\n"
},
{
"from": "human",
"value": "$ ->\n\n $(\"#new-space-basic-info input#space_public\").on 'click', ->\n checked = $(this).attr('checked') == 'checked'\n $(\"#new-space-webconf-area\").toggle(!checked)\n"
},
{
... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix body class check to avoid initialize Visualization or Story classes in templates different to show or edit\n"
},
{
"from": "human",
"value": "window.App ||= {}\n\nApp.Visualization = require './visualization.js'\nApp.Story = require './story.js'\nApp.Tri... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add plugin origin on created markers\n"
},
{
"from": "human",
"value": "{CompositeDisposable} = require 'atom'\n\nmodule.exports =\nclass MinimapPigmentsBinding\n constructor: ({@editor, @minimap, @colorBuffer}) ->\n @displayedMarkers = []\n @decorationsByMar... | coffeescript | chosen |
[
{
"from": "system",
"value": "Rename command to compositCommand in command interpreter"
},
{
"from": "human",
"value": "fs = require 'fs'\nPEG = require 'pegjs'\n\nmodule.exports =\nclass CommandInterpreter\n constructor: ->\n @parser = PEG.buildParser(fs.read(require.resolve 'command-interp... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add .get() and .expire() methods to Biskoto\n"
},
{
"from": "human",
"value": "define ->\n class Biskoto\n @get: (name) ->\n if document.cookie\n cookies = decodeURIComponent(document.cookie).split(/;\\s/g)\n\n for cookie in cookies\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add random chance line to RoC chart HEXDEV-168\n"
},
{
"from": "human",
"value": "H2O.PredictOutput = (_, _go, prediction) ->\n { frame, model } = prediction\n _isBinomial = signal prediction.model_category is 'Binomial'\n _isMultinomial = signal prediction.model... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix the reduce function. Yet again...\n"
},
{
"from": "human",
"value": "class @VoteController extends RouteController\n\n waitOn: ->\n q = {}\n if filterType = @params.filterType\n q.type = filterType\n if filterTag = @params.filterTag\n q.tags ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Reduce overhead DIVs in layout\n"
},
{
"from": "human",
"value": "window.$ = window.jQuery = require('jquery')\nrequire('semantic-ui-css/semantic')\nReact = require('react/addons')\nReactDOM = require('react-dom')\nreactRouter = require('react-router')\n\nHeader = r... | coffeescript | chosen |
[
{
"from": "system",
"value": "Remove redundant text attribute condition\n"
},
{
"from": "human",
"value": "Trix.config.textAttributes =\n bold:\n tagName: \"strong\"\n inheritable: true\n parser: (element) ->\n return false if /H\\d$/.test(element.tagName) or element.tagName is \"... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix for user route (still no view)\n"
},
{
"from": "human",
"value": "SettingsController = require 'controllers/settings_controller'\nTemplatesController = require 'controllers/templates_controller'\nBucketsController = require 'controllers/buckets_controller'\nInst... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add test for compiler errors on require()d files\n"
},
{
"from": "human",
"value": "# Error Formating\n# ---------------\n\n# Ensure that errors of different kinds (lexer, parser and compiler) are shown\n# in a consistent way.\n\n{prettyErrorMessage} = CoffeeScript.... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add delete to matcher contorller"
},
{
"from": "human",
"value": "App.MatchersShowController = Em.ObjectController.extend\n needs: ['transactions']\n syncTransactions: (->\n categoryTransactions = @get('model.transactions') \n\n transactionsController = @get... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add category system type attribute"
},
{
"from": "human",
"value": "App.Category = App.Model.extend\n id: Ember.attr()\n name: Ember.attr()\n count: Ember.attr(Number)\n total: Ember.attr(Number)\n transactions: Ember.hasMany 'App.Transaction',\n key: 'trans... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use correct file name for s3\n\nSigned-off-by: Yuki Nishijima <a6aa6c594f3f904825833313c0bab3e292e95764@artsymail.com>\n"
},
{
"from": "human",
"value": "{ extend } = require 'underscore'\nJSONPage = require '../../components/json_page'\nresizer = require '../../com... | coffeescript | chosen |
[
{
"from": "system",
"value": "Make tests run with promise and non-promise package deactivate\n"
},
{
"from": "human",
"value": "DeprecationCopView = require '../lib/deprecation-cop-view'\n\ndescribe \"DeprecationCop\", ->\n [activationPromise, workspaceElement] = []\n\n beforeEach ->\n work... | coffeescript | chosen |
[
{
"from": "system",
"value": "Refactor inquiry test using spies to be slightly more readable.\n"
},
{
"from": "human",
"value": "sinon = require 'sinon'\nBackbone = require 'backbone'\nArtworkInquiry = require '../../models/artwork_inquiry'\n\ndescribe 'ArtworkInquiry', ->\n beforeEach ->\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Make it easy to disable caching.\n"
},
{
"from": "human",
"value": "observe = require './observe'\n\nprototype =\n autoRender: true\n\n initialize: (object) ->\n if object.constructor.name == 'Object' and @Model?\n @model = new @Model object\n else\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add compatibility for upcoming react support in minimap\n"
},
{
"from": "human",
"value": "{View, EditorView} = require 'atom'\n\nmodule.exports = ->\n highlightSelectedPackage = atom.packages.getLoadedPackage('highlight-selected')\n minimapPackage = atom.packages... | coffeescript | chosen |
[
{
"from": "system",
"value": "Make the fact wheel in recently viewed facts responding to the mouse for now.\n"
},
{
"from": "human",
"value": "class RecentlyViewedFactView extends Backbone.Marionette.ItemView\n tagName: 'li'\n template: 'facts/recently_viewed_fact'\n\n templateHelpers: =>\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Allow multiple IN sources for saving\n"
},
{
"from": "human",
"value": "noflo = require \"noflo\"\ncouch = require \"couch-client\"\n\nclass SaveObject extends noflo.Component\n constructor: ->\n @request = null\n @database = \"default\"\n @c... | coffeescript | chosen |
[
{
"from": "system",
"value": "Update event to use new SoundManager.stopAll(config)"
},
{
"from": "human",
"value": "Entity = require 'models/Entity'\nmediator = require 'mediator'\n\nmodule.exports = class Event extends Entity\n\n mediator.factory['Event'] = this\n\n\n constructor: (x, y, wi... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add logic that toggles the selection when the button is pressed\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 Coffee... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix inability to dismiss \"Results\" attention grabber\n"
},
{
"from": "human",
"value": "class @Scenario extends Backbone.Model\n apiSessionID: ->\n key = App.settings.get('api_session_id')\n return if key? then key else null\n\n api_session_id: ->\n @ap... | coffeescript | chosen |
[
{
"from": "system",
"value": "Handle loading classes in browser"
},
{
"from": "human",
"value": "\nexports.ObjectTemplate = require './ObjectTemplate'\nexports.TemplateConfig = require './TemplateConfig'\n"
},
{
"from": "gpt",
"value": "\n# load modules in CommonJS/Node.js environmen... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add arg props to app.react.Link\n"
},
{
"from": "human",
"value": "goog.provide 'app.react.Link'\n\nclass app.react.Link\n\n ###*\n @param {app.Routes} routes\n @param {app.react.Touch} touch\n @constructor\n ###\n constructor: (@routes, @touch) ->\n\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Make requests significantly rarer (more realistic)\n"
},
{
"from": "human",
"value": "class GameState\n customers: []\n agents: []\n\n requestQueues: {}\n chanceOfRequest: 0.02\n\n tickables: []\n tick: 0\n\n money: 1000000\n reputation: 0.5\n agentSpawner:... | coffeescript | chosen |
[
{
"from": "system",
"value": "Set gitlabs scope to 'api', the only support scope.\n\nFixes #3987\n"
},
{
"from": "human",
"value": "config =\n\tserverURL: 'https://gitlab.com'\n\tidentityPath: '/api/v3/user'\n\taddAutopublishFields:\n\t\tforLoggedInUser: ['services.gitlab']\n\t\tforOtherUsers: [... | coffeescript | chosen |
[
{
"from": "system",
"value": "Reduce the animation duration more\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://c... | coffeescript | chosen |
[
{
"from": "system",
"value": "Document the abstract Cacheable class.\n"
},
{
"from": "human",
"value": "Impromptu = require './impromptu'\n\nclass Cacheable\n constructor: (@impromptu, @name, @options) ->\n run: (fn) => throw Impromptu.AbstractError\n get: (fn) -> throw Impromptu.AbstractErro... | coffeescript | chosen |
[
{
"from": "system",
"value": "Handle empty scoring lists properly\nPP-8\n"
},
{
"from": "human",
"value": "Steam.ScoringListView = (_) ->\n _items = do nodes$\n\n #TODO ugly\n _isLive = node$ yes\n\n activateItem = (item) ->\n for other in _items()\n if other is item\n other.i... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix date with hours display\n"
},
{
"from": "human",
"value": "Template.date.helpers\n\nTemplate.date.rendered = ->\n template = @\n $editor = template.$(\"input\")\n $editor.datepicker(\n changeMonth: true\n changeYear: true\n dateFormat: \"yy/mm/dd\"\n... | coffeescript | chosen |
[
{
"from": "system",
"value": "Choose First h1 for File Title"
},
{
"from": "human",
"value": "###\n# # Write JSON File Tree\n###\n\nfs = require 'fs'\npath = require 'path'\nthrough = require 'through2'\n\nlog = require '../utils/log'\n\nmodule.exports = (fileName, opts={}) ->\n unless fileName... | coffeescript | chosen |
[
{
"from": "system",
"value": "Optimize minimap update by removing a wrapper instead of all lines\n"
},
{
"from": "human",
"value": "{EditorView, ScrollView} = require 'atom'\n\nmodule.exports =\nclass MinimapEditorView extends ScrollView\n\n @content: ->\n @div class: 'minimap-editor editor ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix permissions toggle label for new posts\n"
},
{
"from": "human",
"value": "Marbles.Views.PermissionsFieldsToggle = class PermissionsFieldsToggleView extends TentStatus.View\n @template_name: 'permissions_fields_toggle'\n @view_name: 'permissions_fields_toggle'\... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix title bar appearance at smaller screen widths"
},
{
"from": "human",
"value": "class Views.Application extends View\n @content: ->\n @div id: 'application', class: 'container', =>\n @div class: 'navbar navbar-fixed-top navbar-inverse', =>\n @div ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix stack trace processing to match refactored API PUBDEV-371\n"
},
{
"from": "human",
"value": "H2O.StackTraceOutput = (_, _stackTrace) ->\n _activeNode = signal null\n\n createThread = (thread) ->\n lines = split thread, '\\n'\n\n title: head lines\n st... | coffeescript | chosen |
[
{
"from": "system",
"value": "Make the first installed user an administrator by default\n"
},
{
"from": "human",
"value": "Controller = require 'lib/controller'\nUser = require 'models/user'\nFirstUserView = require 'views/install/firstuser'\n\nmediator = require('chaplin').mediator\n\nmodule.ex... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add comments to ConceptPanel for clarity of implementation\n"
},
{
"from": "human",
"value": "define [\n '../core'\n './index'\n './search'\n 'tpl!templates/concept/panel.html'\n], (c, index, search, templates...) ->\n\n templates = c._.object ['panel... | coffeescript | chosen |
[
{
"from": "system",
"value": "Allow integration test looking up by instance name to be bypassed (if SQL Server Browser not available).\n"
},
{
"from": "human",
"value": "fs = require('fs')\ninstanceLookup = require('../../lib/instance-lookup')\n\ngetConfig = ->\n server: JSON.parse(fs.readFileS... | coffeescript | chosen |
[
{
"from": "system",
"value": "Convert to using tabs so as to allow editor diversity.\n"
},
{
"from": "human",
"value": "Promise = require 'bluebird'\nfs = Promise.promisifyAll require 'fs'\n_ = require 'lodash'\n\nmodule.exports = () ->\n \n # For performance reasons, we'll do this... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix sizeToContainer - actually set width\n"
},
{
"from": "human",
"value": "window.LC = window.LC ? {}\n\n\nslice = Array.prototype.slice\n\nLC.util =\n last: (array, n = null) ->\n if n\n return slice.call(array, Math.max(array.length - n, 0))\n else\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Revert to multi-select version of subejct_viewer\n"
},
{
"from": "human",
"value": "BaseTool = window.Ubret.BaseTool or require('./base_tool')\n\nclass SubjectViewer extends BaseTool\n name: 'Subject Viewer'\n template:\n \"\"\"\n <ul>\n <% for(i = 0; i... | coffeescript | chosen |
[
{
"from": "system",
"value": "Remove console log message from decrease job priority button.\n"
},
{
"from": "human",
"value": "$(document).load ->\n readyMenuToggle()\n registerJobPriority()\n\n$(document).on 'ready page:change', ->\n readyMenuToggle()\n registerJobPriority()\n\nreadyMenuTog... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add test for multiple lines translation\n"
},
{
"from": "human",
"value": "googleTranslate = new practical.GoogleTranslate()\n\nTinytest.add 'Google Translate - should translate text' , (test)->\n translation = googleTranslate.translate(\"My name is Brandon\", \"es... | coffeescript | chosen |
[
{
"from": "system",
"value": "Update test with slightly cleaner and safer code\n"
},
{
"from": "human",
"value": "require 'should'\n\nBase58 = require '..'\n\nexamples = require './examples'\n\ndescribe 'Base58', ->\n describe '.encode', ->\n it 'encodes number to Base58 string', ->\n f... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use catch rather than fail, as bluebird only supports catch\n"
},
{
"from": "human",
"value": "Q = require('q')\nasync = require('async')\n\nTheme = require('../../models/theme').model\nHeadlineService = require('../services/headline')\n\nmodule.exports = class Them... | coffeescript | chosen |
[
{
"from": "system",
"value": "Initialize slider on top element of slider"
},
{
"from": "human",
"value": "#= require partystreusel/base\n#= require partystreusel/scroll_to\n#= require jquery.cycle2\n#= require jquery.cycle2.swipe\n\nclass Slider extends Partystreusel.Base\n @className = 'Slider... | coffeescript | chosen |
[
{
"from": "system",
"value": "Make votes format a bit prettier: Add number formatting and BTS unit\n"
},
{
"from": "human",
"value": "angular.module(\"app\").filter \"formatVotes\", () ->\n (number) -> # TODO use real precision, not available in web wallet yet\n return number / 10000... | coffeescript | chosen |
[
{
"from": "system",
"value": "Work around CS identity map bug"
},
{
"from": "human",
"value": "{Serenade} = require './serenade'\n{Cache} = require './cache'\n{Associations} = require './associations'\n{extend} = require './helpers'\n\nclass Serenade.Model\n extend(@prototype, Serenade.Properti... | coffeescript | chosen |
[
{
"from": "system",
"value": "Update data file location to use https\n"
},
{
"from": "human",
"value": "config =\n data_file_location: 'http://www.chimpandsee.org/identified-chimps/identified-species.json'\n is_scientist: 'no' # This doesn't do anything yet.\n speciesToTrack: ['chimpanzee', '... | coffeescript | chosen |
[
{
"from": "system",
"value": "Set Atom spell-check locales to en-US\n\nA workaround to fix the \"Cannot load the system dictionary...\" error\nmessage when opening Atom.\n"
},
{
"from": "human",
"value": "\"*\":\n core:\n disabledPackages: [\n \"background-tips\"\n \"exception-repo... | coffeescript | chosen |
[
{
"from": "system",
"value": "Update flatpickr input value if ng-model change\n\n\n"
},
{
"from": "human",
"value": "angular.module(\"admin.utils\").directive \"datepicker\", ($window, $timeout) ->\n require: \"ngModel\"\n link: (scope, element, attrs, ngModel) ->\n $timeout ->\n flatp... | coffeescript | chosen |
[
{
"from": "system",
"value": "Set to empty string instead of undefined\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 propTypes:\n unlabled:... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add static label in simple visualisation map.\n"
},
{
"from": "human",
"value": "class visualization.Simple\n\n constructor: (@layer, @data, @options = {}) ->\n\n # Build layer as wanted\n buildLayerGroup: (widget, globalStyle = {}) ->\n group = []\n for zo... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix issue with incorrect bug links when multiple bug numbers given\nThe \"bug\" variable was not closed over in the for loop. Fix is to\nmove it out into a separate function.\n"
},
{
"from": "human",
"value": "# Description:\n# In which Hubot gives you bugzilla in... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add .preview class for img attachments, since we display a preview\n"
},
{
"from": "human",
"value": "#= require trix/views/attachment_view\n#= require trix/models/image_attachment\n\n{defer, makeElement, measureElement} = Trix\n\nclass Trix.ImageAttachmentView exte... | coffeescript | chosen |
[
{
"from": "system",
"value": "Update dateCompleted and modified when completing task\n"
},
{
"from": "human",
"value": "Tasks = new Meteor.Collection(\"tasks\")\nLists = new Meteor.Collection(\"lists\")\nFolders = new Meteor.Collection(\"folders\")\n\nif Meteor.isClient\n Template.todos.tasks =... | coffeescript | chosen |
[
{
"from": "system",
"value": "Change timeout to 15 seconds\n"
},
{
"from": "human",
"value": "### Configuration file\n\nThis file contains all the necessary options for running an instance of the\nhog winrate calculator.\n###\n\n# Database and daemon settings\n\nmodule.exports.docker = \n socke... | coffeescript | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.