conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Remove debugging messages for Travis CI.\n\nRemoved the debugging messages used to debug the Travis CI build.\n"
},
{
"from": "human",
"value": "{Client} = require \"mysql\"\nfs = require \"fs\"\n\ncontext =\n compiler: require \"../../lib/compiler\"\n object: { i... | coffeescript | chosen |
[
{
"from": "system",
"value": "Remove unneeded option from test helper\n"
},
{
"from": "human",
"value": "assert = require 'assertive'\nDateline = require '../lib'\ntimekeeper = require 'timekeeper'\n\ntestNativeMethod = (methodName, dateObj=new Date()) ->\n it \"calls through to native #{method... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add a method that detects 'impossible/impossiburu'\n"
},
{
"from": "human",
"value": "# Description:\n# Example scripts for you to examine and try out.\n#\n# Notes:\n# They are commented out by default, because most of them are pretty silly and\n# wouldn't be ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add outdent for ) and }\n"
},
{
"from": "human",
"value": "'.source.xq':\n 'editor':\n 'commentStart': '(: '\n 'commentEnd': ' :)'\n 'increaseIndentPattern': '[\\\\({]\\\\s*$|<[^>]+>\\\\s*$|(then|return)\\\\s*$|let.*:=\\\\s*$'\n 'decreaseIndentPattern':... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add animationSteps option and set to 45\n"
},
{
"from": "human",
"value": "angular\n .module(\"Poll\")\n .controller \"ResultController\", [\"$scope\", \"$interval\", \"Pusher\", ($scope, $interval, Pusher) ->\n\n $scope.ctx = $('canvas')[0].getContext(\"2d\"... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix trace info origin fields\n\n* Change due to API changes\n"
},
{
"from": "human",
"value": "import {\n Component,\n createElement as $\n} from './core'\n\nimport PropTypes from 'prop-types'\n\n\nexport class TraceInfo extends Component\n @contextTypes =\n r... | coffeescript | chosen |
[
{
"from": "system",
"value": "Remove default tests that have no bearing\n"
},
{
"from": "human",
"value": "chai = require 'chai'\nsinon = require 'sinon'\nchai.use require 'sinon-chai'\n\nexpect = chai.expect\n\ndescribe 'forecast', ->\n beforeEach ->\n @robot =\n respond: sinon.spy()\n... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add tag support to data generator\n"
},
{
"from": "human",
"value": "\"use strict\"\n\nObjectID = require('mongodb').ObjectID\nMoniker = require('moniker')\n\nrand = (min, max) -> Math.floor (Math.random() * (max - min + 1) + min)\n\nlisence = [\n \"CC BY-NC-ND 3.0... | coffeescript | chosen |
[
{
"from": "system",
"value": "Remove unneeded dependency from Placeholder\n"
},
{
"from": "human",
"value": "define [ \"outer\", \"js/vendor/jquery.placeholder\" ], () ->\n $(\"input, textarea\").placeholder()\n"
},
{
"from": "gpt",
"value": "define [ \"js/vendor/jquery.placeholder\... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add bower config to gruntfile"
},
{
"from": "human",
"value": "module.exports = (grunt) ->\n grunt.initConfig\n pkg: grunt.file.readJSON('package.json')\n coffee:\n compile:\n files:\n 'drop.js': 'drop.coffee'\n 'docs/welcome/js/... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix TypeError: object is not a function\n\nNewer version of mathjs don't return a constructor function anymore, but a singleton."
},
{
"from": "human",
"value": "# Description:\n# Allows Hubot to do mathematics.\n#\n# Dependencies:\n# \"mathjs\": \">= 0.16.0\"\n... | coffeescript | chosen |
[
{
"from": "system",
"value": "Allow pagerduty to de-dupe events.\n\nIf the same exception fires many times before a pagerduty incident is resolved then it currently creates multiple pages. This change allows pagerduty to de-dupe and only have one open page based on the grouping in bugsnag.\r\n\r\nThe releva... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add Resolve: entries to the context menu.\n"
},
{
"from": "human",
"value": "# See https://atom.io/docs/latest/creating-a-package#menus for more details\n'context-menu':\n '.overlayer':\n 'Enable merge-conflicts': 'merge-conflicts:toggle'\n\n'menu': [\n {\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Enable test for plain argument\n"
},
{
"from": "human",
"value": "el = @elvis\n\ndescribe 'el.backbone.model', ->\n # it 'can handle basic bindings', ->\n # model = new Backbone.Model(foo: 'bar')\n # element = el('div', el.bind(model, 'foo'))\n # expect(el... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix bug where toolbars wheelchair status button tooltips were not displayed.\n"
},
{
"from": "human",
"value": "Wheelmap.StatusFilterButtonComponent = Wheelmap.WheelchairPopoverComponent.extend\n tagName: 'button'\n classNameBindings: [':btn', 'isActive:active', '... | coffeescript | chosen |
[
{
"from": "system",
"value": "Disable all Atom autocomplete packages\n"
},
{
"from": "human",
"value": "\"*\":\n core:\n disabledPackages: [\n \"archive-view\"\n \"background-tips\"\n \"dev-live-reload\"\n \"welcome\"\n \"update-package-dependencies\"\n \"timeco... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add key binding for chmod package\n"
},
{
"from": "human",
"value": "'atom-workspace':\n 'ctrl-cmd-r': 'tree-view:reveal-active-file'\n 'ctrl-cmd-t': 'window:run-package-specs'\n 'ctrl-shift-alt-t': 'custom:open-todo-list'\n'atom-text-editor':\n 'ctrl-shift-a': ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use real name instead of username in parens\n"
},
{
"from": "human",
"value": "React = require 'react'\nEnrollButton = require '../students/enroll_button'\n\nInlineUsers = React.createClass(\n displayName: 'InlineUsers'\n render: ->\n key = @pr... | coffeescript | chosen |
[
{
"from": "system",
"value": "Test update tracking of Mount\n"
},
{
"from": "human",
"value": "assert = (require 'chai').assert\nMount = require '../src/Mount'\n{Todo, TodoList, NewTodo, TodoApp} = require './fixtures/components'\n\ntodos = [\n { title: 'Go to town' }\n { title: 'Buy some food... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add tests for path inclusion\n"
},
{
"from": "human",
"value": "fs = require 'fs'\npath = require 'path'\nPathScanner = require '../lib/path-scanner'\n\ndescribe \"PathScanner\", ->\n describe \"a non-git directory with many files\", ->\n rootPath = fs.realpathS... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add pending as a status type\n"
},
{
"from": "human",
"value": "mongoose = require 'mongoose'\nchrono = require 'chrono-node'\n\ndb = require '../lib/database'\n\nSchema = mongoose.Schema\n\nentrySchema = new Schema\n title:\n type: String\n required: yes\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Update fetched data with yet to sync data\n"
},
{
"from": "human",
"value": "\nBackbone.backendSync = Backbone.sync\n\nBackbone.sync = (method, model, options) ->\n url = _.result(model, 'url')\n if method is 'read'\n if navigator.onLine\n # Store the fetc... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add current timestamp to filename\n"
},
{
"from": "human",
"value": "uploadChunk = (blob, url, filename, chunk, chunks) ->\n xhr = new XMLHttpRequest\n xhr.open 'POST', url, false\n xhr.onerror = -> throw new Error 'error while uploading'\n formData = ne... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix method bind problems in phantomjs\n"
},
{
"from": "human",
"value": "class ObjectLogger\n\n constructor:(@className, @defaultLevel = 'info')->\n\n @log = loglevel.createLogger(@className, @defaultLevel)\n\n @callStack = []\n\n @log.enter = @enter.bind(... | coffeescript | chosen |
[
{
"from": "system",
"value": "Update view helpers to work with my fixed brunch-handlebars plugin\n\nFixes handlebars when used with source maps.\n"
},
{
"from": "human",
"value": "Chaplin = require 'chaplin'\n\n# Application-specific view helpers\n# http://handlebarsjs.com/#helpers\n# ----------... | coffeescript | chosen |
[
{
"from": "system",
"value": "Set proper value to seconds if it passed 60\n"
},
{
"from": "human",
"value": "'use strict'\n\n@start = (limit) ->\n window.startDate = new Date().getTime()\n window.seconds = 0\n window.minutes = 0\n window.limit = limit\n window.timerID = setInterval(timeCoun... | coffeescript | chosen |
[
{
"from": "system",
"value": "Trim remove_delay down closer to transition duration\n"
},
{
"from": "human",
"value": "FactlinkJailRoot.showShouldSelectTextNotification = ->\n showNotification\n message: 'To create an annotation, select a statement and click the Factlink button.'\n type_cl... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix regression: Deleting items from the pallete doesn't replace them.\n\n[#105213716]\n\nhttps://www.pivotaltracker.com/story/show/105213716\n"
},
{
"from": "human",
"value": "PaletteStore = require './palette-store'\nGraphStore = require './graph-stor... | coffeescript | chosen |
[
{
"from": "system",
"value": "FSFolder: Use treeController's delegate as FinderController since there is no more FinderController singleton\n"
},
{
"from": "human",
"value": "class FSFolder extends FSFile\n\n fetchContents:(callback, dontWatch=yes)->\n { treeController } = @getOptions()\n\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Remove required Parse causing error on question delete\n"
},
{
"from": "human",
"value": "Parse = require 'parse'\nSort = require 'sortablejs'\n{updateSortOrder} = require '../../imports/helpers'\n{Question} = require '../../imports/models'\n\nTemplate.questions.onC... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use preferred way of testing computed properties\n"
},
{
"from": "human",
"value": "#= require test_helper\n\nemq.globalize()\nETahi.setupForTesting()\nETahi.injectTestHelpers()\nETahi.Resolver = Ember.DefaultResolver.extend namespace: ETahi\nsetResolver ETahi.Resol... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add default walk and watch options.\n"
},
{
"from": "human",
"value": "require 'postmortem/register'\n\npath = require 'path'\n\n# Ensure local node_modules bin is on the front of $PATH\nbinPath = path.join process.cwd(), 'node_modules/', '.bin'\n\nprocess.env.PATH ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Set line length to 79 (per PEP8)\n\nFeel the :heart: @jianbin-wei"
},
{
"from": "human",
"value": "\"*\":\n \"atom-beautify\":\n analytics: false\n \"autocomplete-plus\":\n autoActivationDelay: 150\n core:\n telemetryConsent: \"no\"\n themes: [\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Revert to the last working test\n"
},
{
"from": "human",
"value": "selenium = require 'selenium-webdriver'\nchai = require 'chai'\nchai.use require 'chai-as-promised'\nexpect = chai.expect\n\nbefore ->\n\t@driver = new selenium.Builder()\n\t\t.withCapabilities(selen... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add partial refactor of filters.\n"
},
{
"from": "human",
"value": "angular.module('greenmine.filters.common', []).\n filter('onlyVisible', ->\n return (input) ->\n return _.filter input, (item) ->\n return item.__hidden != true\n... | coffeescript | chosen |
[
{
"from": "system",
"value": "Change ci-env-detection from \"workstation\" to \"CI\"\n"
},
{
"from": "human",
"value": "gutil = require 'gulp-util'\nchild_process = require 'child_process'\n\nmodule.exports = (name, command, callback = ->) ->\n child_process.exec(\n command\n (err... | coffeescript | chosen |
[
{
"from": "system",
"value": "Remove plus sign (+) in URL query string while per_page switching\n"
},
{
"from": "human",
"value": "class ActiveAdmin.PerPage\n constructor: (@options, @element)->\n @$element = $(@element)\n @_init()\n @_bind()\n\n _init: ->\n @$params = @_queryParam... | coffeescript | chosen |
[
{
"from": "system",
"value": "Change default shortcut to 'alt-shift-a'\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 keybind... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add lock for preventing concurrent tasks loading\n"
},
{
"from": "human",
"value": "define ['angular', 'underscore', 'underscoreString'], (angular, _, _s) ->\n _.mixin _s.exports()\n\n module = angular.module 'coviolations.models', []\n\n getTaskModel = ($h... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add short hand for api.user collection\n"
},
{
"from": "human",
"value": "EventEmitter = require('events').EventEmitter\nMongoClient = require('mongodb').MongoClient\ninherits = require('util').inherits\n\nMongo = (uri) ->\n EventEmitter.call @\n\n new MongoClient... | coffeescript | chosen |
[
{
"from": "system",
"value": "Hide previous button in update index view controller\n"
},
{
"from": "human",
"value": "class @UpdateIndexViewController extends @UpdateViewController\n\n navigation:\n nextRoute: \"/update/seed\"\n previousRoute: \"/onboarding/device/plug\"\n previousPara... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use css class 'hide' instead of jQuery show/hide methods to prevent jQuery weirdness.\n"
},
{
"from": "human",
"value": "class window.EvidenceBottomView extends Backbone.Marionette.ItemView\n className: 'evidence-bottom bottom-base'\n\n template: 'facts/bottom_bas... | coffeescript | chosen |
[
{
"from": "system",
"value": "Send all unhandled to PASS port\n"
},
{
"from": "human",
"value": "noflo = require 'noflo'\n\nfindHandler = (actionParts, routes) ->\n normalized = routes.map (route) ->\n if route.indexOf('*') is -1\n # No wildcards here\n return route\n routeParts... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix redirect path after loggin out\n"
},
{
"from": "human",
"value": "module.exports =\n new: (req, res) ->\n res.render('sessions/new')\n\n create: (passport) ->\n ->\n passport.authenticate 'local',\n successRedirect: '/'\n failureRedire... | coffeescript | chosen |
[
{
"from": "system",
"value": ":art: Use raw strings instead of buffers\n"
},
{
"from": "human",
"value": "# @Compiler-Output \"../Dist/ExceptedWrite.js\"\n\nEventEmitter = require('events').EventEmitter\nPromise = require('a-promise')\nBuffer = require('buffer').Buffer\n\nclass ExpectedWrite ext... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add minimal-ui for iOS Safari.\n"
},
{
"from": "human",
"value": "goog.provide 'server.react.App'\n\nclass server.react.App\n\n ###*\n @constructor\n ###\n constructor: ->\n {html,head,meta,title,link,body} = React.DOM\n\n @create = React.createClass\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Replace property with method to improve intelligibility\n"
},
{
"from": "human",
"value": "module.exports =\n isLoggedIn: (req, res, next) ->\n if req.user\n next()\n else\n req.flash 'error', 'You must be logged in!'\n res.redirect '/login'\n\... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add itself as a global on rootView\n"
},
{
"from": "human",
"value": "{_, $, $$, View} = require 'atom'\n\nmodule.exports =\nclass StatusBarView extends View\n @content: ->\n @div class: 'status-bar tool-panel panel-bottom', =>\n @div outlet: 'rightPanel', ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Remove percentage values from chart output\n"
},
{
"from": "human",
"value": "Template.chart.helpers\n nonNumberDataColumnSpec: ->\n for spec in @header.slice(1)\n if spec.chartType isnt \"number\"\n return spec\n reactivityHack: ->\n _.defer =>\... | coffeescript | chosen |
[
{
"from": "system",
"value": "Make \"don't check github ip in development\" work\n"
},
{
"from": "human",
"value": "AppConfig = require('../initializers/config')\nDeploy = require('../lib/deploy')\nrange_check = require('range_check')\n\ntagRefersToServer = (tag, serverName) ->\n return new Reg... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use actual ellipsis unicode character for truncation.\n"
},
{
"from": "human",
"value": "Hummingbird.TruncateTextComponent = Ember.Component.extend\n expanded: false\n\n isTruncated: (->\n @get('text').length > @get('length') + 10\n ).property('text', 'length'... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix tiny bug in ignores\n"
},
{
"from": "human",
"value": "path = require 'path'\nfs = require 'fs-plus'\n_ = require 'underscore-plus'\n\nmodule.exports =\nclass PathFinder\n railsRootPathChildren: ['app', 'config', 'lib']\n ignores: /(?:\\/.git\\/|\\.keep$|\\.D... | coffeescript | chosen |
[
{
"from": "system",
"value": "Disable landing page on pro for now\n"
},
{
"from": "human",
"value": "`import Ember from 'ember'`\n\nLocation = Ember.HistoryLocation.extend\n init: ->\n @_super.apply this, arguments\n\n if auth = @get('auth')\n # location's getURL is first called befo... | coffeescript | chosen |
[
{
"from": "system",
"value": "Disable default Google Maps controls\n"
},
{
"from": "human",
"value": "jQuery ->\n\tmyOptions =\n\t\tcenter: new google.maps.LatLng(-34.397, 150.644)\n\t\tzoom: 8\n\t\tmapTypeId: google.maps.MapTypeId.ROADMAP\n\tmap = new google.maps.Map(document.getElementById(\"c... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use correct textmate package names\n"
},
{
"from": "human",
"value": "RootView = require 'root-view'\nEditor = require 'editor'\nChildProcess = require 'child_process'\n\ndescribe \"link package\", ->\n [editor] = []\n\n beforeEach ->\n atom.activatePackage('ja... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix issue where chosen wouldn't update if bound\nselected value changed elsewhere\n"
},
{
"from": "human",
"value": "ETahi.ChosenView = Ember.Select.extend\n multiple: false\n width: '200px'\n disableSearchThreshold: 0\n searchContains: true\n attributeBindings... | coffeescript | chosen |
[
{
"from": "system",
"value": "Hide atom python test panel on Atom opening.\n"
},
{
"from": "human",
"value": "{$, ScrollView} = require 'atom-space-pen-views'\n\nmodule.exports =\n class AtomPythonTestView extends ScrollView\n\n message: ''\n maximized: false\n\n @content: ->\n @d... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use `Account.reload` instead of `init`\n"
},
{
"from": "human",
"value": "Sprangular.controller 'AccountCtrl', ($scope, $location, $routeParams, Status, Account) ->\n Status.pageTitle = 'My Account'\n\n user = Account.user\n\n $scope.editing = false\n $scope.use... | coffeescript | chosen |
[
{
"from": "system",
"value": "Correct poorly named private method"
},
{
"from": "human",
"value": "ETahi.InlineEditBodyPartComponent = Em.Component.extend\n editing: false\n snapshot: []\n confirmDelete: false\n\n createSnapshot: (->\n @set('snapshot', Em.copy(@get('block'), true))\n ).o... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix user name in log\n"
},
{
"from": "human",
"value": "logger = require 'winston'\nVisualizer = require('../model/visualizer').Visualizer\nauthorisation = require './authorisation'\nutils = require '../utils'\n\nexports.getAllVisualizers = ->\n # Must be admin\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Update Datastream view to ItemView\n"
},
{
"from": "human",
"value": "class Workbench.Views.DatastreamShowView extends Backbone.View\n template: JST[\"workbench/templates/datastream\"]\n\n tagName: \"li\"\n className: \"datastream\"\n\n initialize: ->\n @rend... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix \"don't dismiss pairing progress dialog when displaying success\"\n"
},
{
"from": "human",
"value": "class @WalletPairingProgressDialogViewController extends DialogViewController\n\n view:\n contentContainer: \"#content_container\"\n\n onAfterRender: ->\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Configure $http service for Rails\n"
},
{
"from": "human",
"value": "angular.module(\"hyperadmin\", [ \"ui.router\" ])\n"
},
{
"from": "gpt",
"value": "angular.module(\"hyperadmin\", [ \"ui.router\" ])\n .config ($httpProvider) ->\n authToken = $(\"m... | coffeescript | chosen |
[
{
"from": "system",
"value": "ButtonViewWithProgressBar: Add \"startProgress\" parameter to start to show progress bar.\n"
},
{
"from": "human",
"value": "kd = require 'kd'\nKDButtonView = kd.ButtonView\nKDProgressBarView = kd.ProgressBarView\nKDCustomHTMLView = kd.CustomHTM... | coffeescript | chosen |
[
{
"from": "system",
"value": "Change keymap selector (fixes alt-enter override in OSX)\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... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix deleting of newly uploaded figures\n"
},
{
"from": "human",
"value": "ETahi.FigureOverlayView = ETahi.OverlayView.extend\n templateName: 'overlays/figure_overlay'\n layoutName: 'layouts/no_assignee_overlay_layout' #TODO: include assignee here?\n uploads: Embe... | coffeescript | chosen |
[
{
"from": "system",
"value": "Revert \"only start the idris compiler when there is an idris file opened\"\n\nThis reverts commit 89c0032aca1593cc851a65e7836ea8f539258a11.\n\nConflicts:\n\tlib/language-idris.coffee\n"
},
{
"from": "human",
"value": "IdrisController = require './idris-controller'\... | coffeescript | chosen |
[
{
"from": "system",
"value": "Update atom theme and change font-size\n"
},
{
"from": "human",
"value": "\"*\":\n editor:\n fontFamily: \"input\"\n fontSize: 13\n showInvisibles: true\n showIndentGuide: true\n invisibles: {}\n core:\n themes: [\n \"one-dark-ui\"\n \"... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add form 4 profit command\n"
},
{
"from": "human",
"value": "fs = require 'fs'\noptimist = require 'optimist'\n\nparseOptions = (args=[]) ->\n options = optimist(args)\n options.usage('Usage: filings <command>')\n options.alias('h', 'help').describe('h', 'Print t... | coffeescript | chosen |
[
{
"from": "system",
"value": "Refactor pseudo class selector script a bit\n"
},
{
"from": "human",
"value": "# Helper function needed to deal with array-like stylesheet objects.\ntoArray = (obj) -> Array::slice.call obj\n\n# Scans your stylesheet for pseudo classes and adds a class with the same... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add keyup event listener on hour/minute inputs\n\n - To set the date (and trigger the onChange event) when the user is typing through its keyboard\n"
},
{
"from": "human",
"value": "angular.module('admin.orderCycles', ['ngTagsInput', 'admin.indexUtils', 'admin.enter... | coffeescript | chosen |
[
{
"from": "system",
"value": "Create the UIWatcher after everything has been loaded"
},
{
"from": "human",
"value": "UIWatcher = require './ui-watcher'\n\nmodule.exports =\n activate: (state) ->\n uiWatcher = new UIWatcher\n themeManager: atom.themes\n\n rootView.command 'dev-live-re... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add \"insertText\" and \"deleteContentBackward\" inputType handlers\n"
},
{
"from": "human",
"value": "#= require trix/controllers/abstract_input_controller\n\nclass Trix.Level2InputController extends Trix.AbstractInputController\n events:\n beforeinput: (event)... | coffeescript | chosen |
[
{
"from": "system",
"value": "Simplify browser-specific extension install logic\n"
},
{
"from": "human",
"value": "determineBrowser = ->\n [ 'chrome', 'firefox', 'safari', 'phantom_js', 'unsupported-browser' ]\n .filter( (browser) -> $('html.'+browser).length\n )[0]\n\nextension_link_by_brows... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix CoffeeScript example. Use readline-sync. Old ffi thing does not work.\n"
},
{
"from": "human",
"value": "# IMPORTANT: choose one\nRL_LIB = \"libreadline\" # NOTE: libreadline is GPL\n#RL_LIB = \"libedit\"\n\nHISTORY_FILE = require('path').join(process.env.HOME,... | coffeescript | chosen |
[
{
"from": "system",
"value": "Make react happy with keys\n"
},
{
"from": "human",
"value": "React = require 'react'\ndeep = require 'deep-get-set'\n\nmodule.exports = React.createClass\n displayName: \"SimpleTable\"\n\n propTypes:\n columns: React.PropTypes.array\n data: React.PropTypes.... | coffeescript | chosen |
[
{
"from": "system",
"value": "Remove unnecessary quotes of eventListeners.\n"
},
{
"from": "human",
"value": "_ = require('underscore')\n\nclass DeploymentMonitor\n\n timeout = 10000\n\n constructor: ()->\n @_deployment = null\n @_chat = null\n @_currentTimeout = 0\n @_eventListene... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix creation of tooltips with grammatical token info\n"
},
{
"from": "human",
"value": "App.CwbResultTableView = Em.View.extend\n\n didInsertElement: ->\n @$('[data-ot]').each (index, token) ->\n new Opentip token, $(token).data('ot'),\n style: 'dark... | coffeescript | chosen |
[
{
"from": "system",
"value": "Make sure Turbolinks is defined before patching.\n"
},
{
"from": "human",
"value": "# Monkey patch Turbolinks to render 401\n# See https://github.com/turbolinks/turbolinks/issues/179\n# https://github.com/projecthydra-labs/hyrax/issues/617\nTurbolinks.HttpReques... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix new author form holding on to new author.\n"
},
{
"from": "human",
"value": "ETahi.AddAuthorFormComponent = Ember.Component.extend\n tagName: 'div'\n\n setNewAuthor: ( ->\n unless @get('newAuthor')\n @set('newAuthor', {})\n ).on('init')\n\n actions:\... | coffeescript | chosen |
[
{
"from": "system",
"value": "Call setModel after fetching model\n\nNeeded so the commands can notify observers\n"
},
{
"from": "human",
"value": "Lanes.React.Mixins.Screen = {\n childContextTypes:\n screen: React.PropTypes.object\n\n listenNetworkEvents: true\n\n loadOrCreateMod... | coffeescript | chosen |
[
{
"from": "system",
"value": "Remove Clang Plus Plus Command Variable.\n"
},
{
"from": "human",
"value": "module.exports =\n configDefaults:\n clangCommand: 'clang'\n clangPlusPlusCommand: 'clang++'\n clangExecutablePath: null\n clangIncludePaths: '.'\n clangSuppressWarnings: fal... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add dot atom directory ivar\n"
},
{
"from": "human",
"value": "app = require 'app'\nfs = require 'fs'\npath = require 'path'\nprotocol = require 'protocol'\n\n# Handles requests with 'atom' protocol.\n#\n# It's created by {AtomApplication} upon instantiation and is ... | coffeescript | chosen |
[
{
"from": "system",
"value": "7836: Set picker format based on times\n"
},
{
"from": "human",
"value": "Gather.Views.Work.JobFormView = Backbone.View.extend\n\n initialize: (options) ->\n\n events:\n 'cocoon:after-insert': 'shiftInserted'\n\n shiftInserted: (event, inserted) ->\n @initD... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use unfollow labels for 'Follow topic' button\n"
},
{
"from": "human",
"value": "class window.FavouriteTopicButtonView extends ActionButtonView\n mini: true\n\n onRender: -> @updateButton()\n\n initialize: ->\n @user = currentUser\n @bindTo @user.favourite_... | coffeescript | chosen |
[
{
"from": "system",
"value": "bug: Fix for bad game time output\n"
},
{
"from": "human",
"value": "#!/usr/bin/env coffee\n\nargv = require('yargs')\n .usage('Usage: $0 --teams [num] --time [num] --rest [num] --areas [num]')\n .demand(['teams'])\n .default('time', 33)\n .default('rest', 7)\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "DevTools: Fix the resizeHandler, dunno why it needs to be called two times ~ FIXME later\n"
},
{
"from": "human",
"value": "class DevToolsController extends AppController\n\n name = \"DevTools\"\n version = \"0.1\"\n route = \"/:name?/#{name}\"\n\n KD.regis... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix missing availability check for window.localStorage (e.g. it is disabled by default in android webviews)\n"
},
{
"from": "human",
"value": "unless Offline\n throw new Error(\"Offline simulate brought in without offline.js\")\n\nfor state in ['up', 'down']\n if ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Allow ReactDOM -> React fallback\n"
},
{
"from": "human",
"value": "try\n ReactDOM = require 'react-dom'\ncatch\n ReactDOM = window.ReactDOM\nunless ReactDOM?\n throw \"Can't find ReactDOM\"\nmodule.exports = ReactDOM"
},
{
"from": "gpt",
"value": "tr... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use relative path to atom require\n"
},
{
"from": "human",
"value": "require 'atom'\n{runSpecSuite} = require '../spec/jasmine-helper'\n\natom.openDevTools()\n\ndocument.title = \"Benchmark Suite\"\nbenchmarkSuite = require.resolve('./benchmark-suite')\nrunSpecSuite... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add tasks to 'Home' list by default\n"
},
{
"from": "human",
"value": "Template.newTaskForm.events\n 'submit #new-task, click #addTaskButton': (e) ->\n e.preventDefault()\n body = $('#new-task-text').val()\n $('#new-task-text').val(\"\")\n now = new Dat... | coffeescript | chosen |
[
{
"from": "system",
"value": "Rename `Anchor` and `Buffer` events to passive-voice scheme\n"
},
{
"from": "human",
"value": "{View} = require 'space-pen'\n\nmodule.exports =\nclass Tab extends View\n @content: (editSession) ->\n @div class: 'tab', =>\n @span class: 'file-name', outlet: ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Truncate to 4 images by default\n"
},
{
"from": "human",
"value": "class OpinionatorsAvatarView extends Backbone.Marionette.Layout\n tagName: 'span'\n className: 'opinionators-avatar'\n template: 'opinionators/avatar'\n\n onRender: ->\n UserPopoverContentView... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix up makeRequest, so it copes with `analytics.url` being un-configured.\n"
},
{
"from": "human",
"value": "settings = require \"settings-sharelatex\"\nlogger = require \"logger-sharelatex\"\n_ = require \"underscore\"\nrequest = require \"request\"\n\n\nmakeReques... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix the 401 page looking incorrect.\n\nCI.outer.Error inherited from outer.Page, but wasn't calling super, so variables that Page expected, @opts, wasn't created\n\nFixes #1740\n"
},
{
"from": "human",
"value": "CI.outer.Error = class Error extends CI.outer.Page\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Improve string cell spec coverage\n"
},
{
"from": "human",
"value": "describe 'HeaderCells StringCell', ->\n HeaderCell = require '../../lib/header-cells/string-cell'\n\n initView = ({ model } = {}) ->\n model ?= new Backbone.Model label: 'header cell label'\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "[BIFHI-38] Set up travis for Topic Map [rev: Alex Scown]\n"
},
{
"from": "human",
"value": "module.exports = (grunt) ->\n documentation = 'doc'\n grunt.initConfig\n pkg: grunt.file.readJSON 'package.json'\n clean: [\n 'bin'\n '.grunt'\n docume... | coffeescript | chosen |
[
{
"from": "system",
"value": "FIX: Test length of name array in initials\n"
},
{
"from": "human",
"value": "#\n# User icon via gravatar email address or user initials\n#\nangular.module('doubtfire.common.user-icon', [])\n.directive('userIcon', ->\n restrict: 'E'\n replace: true\n scope:\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add translation for pop up messages\n"
},
{
"from": "human",
"value": "\n# 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:... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix for another parse error\n"
},
{
"from": "human",
"value": "{BufferedProcess, CompositeDisposable} = require 'atom'\nlsc = require 'atom-livescript'\n\nmodule.exports =\n provideLinter: ->\n grammarScopes: ['source.livescript']\n scope: 'file'\n lintOnF... | coffeescript | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.