conversations listlengths 2 3 | source stringclasses 1 value | stack stringclasses 1 value |
|---|---|---|
[
{
"from": "system",
"value": "Clone options to not pollute other .data properties\n"
},
{
"from": "human",
"value": "class OpinionatersCollection extends Backbone.Factlink.Collection\n model: OpinionatersEvidence\n\n default_fetch_data:\n take: 7\n\n initialize: (models, options) ->\n @... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use SVG as the label\n"
},
{
"from": "human",
"value": "# Preamble\n\n_.mixin(_.str.exports())\nrx = require('../../reactive-coffee/src/reactive')\nbind = rx.bind\nT = rx.rxt.tags\nS = rx.rxt.svg_tags\n\n# Dependencies\n\n# {items} = require('./model')\n# {editor} ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Change method name to be more accurate\n"
},
{
"from": "human",
"value": "# Placeholder Polyfill\n# https://github.com/mathiasbynens/jquery-placeholder\n$(window).load ->\n $(\"input, textarea\").placeholder()\n\n# Sammy\n(($) ->\n circle = $.sammy(\"body\", ->\n\... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add atom-jinja2 to package list\n"
},
{
"from": "human",
"value": "packages: [\n \"package-sync\",\n \"term2\",\n \"merge-conflicts\",\n \"git-log\",\n \"git-history\",\n \"browser-plus\"\n]\n"
},
{
"from": "gpt",
"value": "packages: [\n \"package... | coffeescript | chosen |
[
{
"from": "system",
"value": "Increase the blink duration to 15s\n"
},
{
"from": "human",
"value": "Promise = require 'bluebird'\nfs = Promise.promisifyAll require 'fs'\nutils = require './utils'\nexpress = require 'express'\napplication = require './application'\n\napi = express()\n\nLED_FILE =... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add admin field to user.\n"
},
{
"from": "human",
"value": "a = DS.attr\nETahi.User = DS.Model.extend\n imageUrl: a('string')\n fullName: a('string')\n username: a('string')\n name: Ember.computed.alias 'fullName'\n\nETahi.Assignee = ETahi.User.extend()\nETahi.R... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add a label to the Move toolbox dropdown\n"
},
{
"from": "human",
"value": "{div, ul, li, span, i, p, a, button} = React.DOM\n\n\nmodule.exports = ToolboxMove = React.createClass\n displayName: 'ToolboxMove'\n\n\n shouldComponentUpdate: (nextProps, nextState) ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix empty mini pie charts\n"
},
{
"from": "human",
"value": "angular.module('loomioApp').controller 'MiniProposalPieChartController', ($scope) ->\n\n $scope.pieChartData = [\n { value : 0, color : \"#90D490\" },\n { value : 0, color : \"#F0BB67\" },\n { va... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use more descriptive variable name\n"
},
{
"from": "human",
"value": "setTimeout ->\n ok =\n loaded: true\n interactive: !(document.documentMode < 11)\n complete: true\n\n\n if ok[document.readyState]\n FactlinkJailRoot.host_ready_promise.resolve()\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Allow removal of all tags\n\nWe previously disabled removal of tags that have a key, since those were syste-added tags. But there's no reason for that restriction, and we need to be able to modify the newly-introduced instructor new/returning tags.\n"
},
{
"from": "huma... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix HTML syntax in reporter\n"
},
{
"from": "human",
"value": "h = buster.reporters.html\nh._lists = []\n\n# original private function defined in Buster.js. Re-writing it here in CS\nel = (doc, tagName, properties) ->\n e = doc.createElement(tagName)\n for prop, v... | coffeescript | chosen |
[
{
"from": "system",
"value": "Move assignment up and comment reasoning\n\nSince the @onPractice was removed by mistake earlier\n"
},
{
"from": "human",
"value": "React = require 'react'\nBS = require 'react-bootstrap'\nRouter = require 'react-router'\n_ = require 'underscore'\n\nLearningGuide =... | coffeescript | chosen |
[
{
"from": "system",
"value": "Disable atom rdio equalizer (make my macbook so slow)\n"
},
{
"from": "human",
"value": "'exception-reporting':\n 'userId': '3ba70428-f782-5321-e73a-7b678f36511c'\n'release-notes':\n 'viewedVersion': '0.94.0'\n'welcome':\n 'showOnStartup': false\n'metrics':\n 'u... | coffeescript | chosen |
[
{
"from": "system",
"value": "Throw an exception if you try to pass in a model that is not in the storage manager if one exists\n"
},
{
"from": "human",
"value": "window.Brainstem ?= {}\n\nclass Brainstem.ModelLoader extends Brainstem.AbstractLoader\n _getCollectionName: ->\n @loadOptions.na... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix multiple phone or address when creating new user.\n"
},
{
"from": "human",
"value": "angular.module('calendarApp')\n\n.controller 'UserController', ['$scope', '$modalInstance', 'user', 'showEmailPassword', '$timeout', ($scope, $modalInstance, user, showEmailPass... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix bug in hard copy workaround for IE\n"
},
{
"from": "human",
"value": "mutate = (instance, klass, args = []) ->\n throw 'Instance must be an object' if typeof instance isnt 'object'\n throw 'Klass must be a class' if typeof klass isnt 'function'\n\n instance._... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix invoking jasmine-focused on Windows.\n"
},
{
"from": "human",
"value": "module.exports = (grunt) ->\n grunt.initConfig\n pkg: grunt.file.readJSON('package.json')\n\n coffee:\n glob_to_multiple:\n expand: true\n cwd: 'src'\n src: ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix paths for fetched from GitHub Tamia source files.\n"
},
{
"from": "human",
"value": "# Installs/updates latest version of the Tâmia Stylus framework.\n# Also installs jQuery.\n# https://github.com/sapegin/tamia\n\n'use strict'\n\nfs = require 'fs'\nutil = requir... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add preventDefault when menu is closing\n"
},
{
"from": "human",
"value": "Template.layout.events\n\t'click .applicationContent.menu-open': (event, template) ->\n\t\tif not $(event.target).hasClass 'menu-toggler'\n\t\t\t$('.applicationContent').removeClass('menu-ope... | coffeescript | chosen |
[
{
"from": "system",
"value": "Quit minigraph mode if in diagram only mode\n\n[#115792153]"
},
{
"from": "human",
"value": "HashParams = require '../utils/hash-parameters'\nImportActions = require '../actions/import-actions'\n\nAppSettingsActions = Reflux.createActions(\n [\n \"diagram... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use parseFloat to avoid string subtraction\n"
},
{
"from": "human",
"value": "@ScrollToOnMountMixin =\n componentDidMount: ->\n $('body').animate scrollTop: @positionInPage() - @marginTop(), 700\n\n positionInPage: ->\n @jQueryElement().offset().top\n\n mar... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add test for resolved refs\n"
},
{
"from": "human",
"value": "require('./helpers')\n\nfs = require('fs')\npath = require('path')\nglob = require('glob')\nrefaker = require('../lib')\n\ndescribe 'other specs', ->\n it 'should fail on invalid input', (done) ->\n r... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix the problem that cannot remove the added new item\n"
},
{
"from": "human",
"value": "class @Navigation\n constructor: ->\n $(document).ready(@ready)\n @add_event()\n\n ready: =>\n @navigation_items = $('#navigation-items')\n @add_fields = $('.add_f... | coffeescript | chosen |
[
{
"from": "system",
"value": "Send notification if PS submits are pending\n"
},
{
"from": "human",
"value": "import {GROUPS} from '../../client/lib/informaticsGroups'\nimport {START_SUBMITS_DATE} from '../api/dashboard'\nimport send from '../metrics/graphite'\nimport Result from \"../models/resu... | coffeescript | chosen |
[
{
"from": "system",
"value": "Return blank features, not default features if no bonuses\n"
},
{
"from": "human",
"value": "_ = require(\"underscore\")\nlogger = require('logger-sharelatex')\nUser = require('../../models/User').User\nSettings = require \"settings-sharelatex\"\n\nmodule.exports = ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix \"undefined\" issue in sorting rule list items.\n"
},
{
"from": "human",
"value": "DotLedger.module 'Views.SortingRules', ->\n class @ListItem extends Backbone.Marionette.ItemView\n tagName: 'tr'\n template: 'sorting_rules/list_item'\n\n templateHelper... | coffeescript | chosen |
[
{
"from": "system",
"value": ":lipstick: Use the CoffeeScript this syntax vs. the JS syntax\n"
},
{
"from": "human",
"value": "#Utilities for particular grammars\n_ = require 'underscore'\n\nmodule.exports =\n splitStatements: (code) ->\n reducer = (statements, char, i, code) ->\n if ch... | coffeescript | chosen |
[
{
"from": "system",
"value": "Change tick rate from 1 tps to 60 tps\n"
},
{
"from": "human",
"value": "requirejs.config({\n paths: {\n fabric: [\n 'lib/fabric']\n }\n})\n\ndefine ['game', 'synchronizedtime', 'position', 'lib/fabric'], (Game, SynchronizedTime, Position) -> # Fabric is d... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use register as an argument and exec as a static method\n"
},
{
"from": "human",
"value": "module.exports = (Impromptu, system) ->\n @register 'pwd',\n update: ->\n process.env.PWD\n\n @register 'prettyPwd',\n update: ->\n cwd = process.env.PWD\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Load / run scripts synchronously\n"
},
{
"from": "human",
"value": "fs = require 'fs'\npath = require 'path'\n\nmodule.exports = (robot, scripts) ->\n scriptsPath = path.resolve(__dirname, 'src')\n fs.exists scriptsPath, (exists) ->\n if exists\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Remove boilerplate code from JS-Data code\n"
},
{
"from": "human",
"value": "# RESTful data adapter for hooking angular JS into the backend API.\n# Checkout \"js-data-angular\" docs for more info.\ndata = (DS) ->\n deviceMethods = {}\n DS.defineResource\n name:... | coffeescript | chosen |
[
{
"from": "system",
"value": "Simplify product naming in cart\n"
},
{
"from": "human",
"value": "Darkswarm.factory 'Variants', ->\n new class Variants\n variants: {}\n\n clear: ->\n @variants = {}\n\n register: (variant)->\n @variants[variant.id] ||= @extend variant\n\n ex... | coffeescript | chosen |
[
{
"from": "system",
"value": "Tweak to popular news phrase.\n"
},
{
"from": "human",
"value": "# Description:\n# Get most popular story from MEN\n# See also https://github.com/github/hubot-scripts/blob/master/src/scripts/chartbeat.coffee\n#\n# Dependencies:\n# None\n#\n# Configuration:\n# ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add a few more standard ports\n"
},
{
"from": "human",
"value": "net = require 'net'\nhttpProxy = require 'http-proxy'\n\nmodule.exports = class LocalhostProxy\n constructor: (port) ->\n @port = port\n @remoteHost = 'http://ile.learn.co'\n @desiredPorts = ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add uglify task to grunt\n"
},
{
"from": "human",
"value": "module.exports = (grunt) ->\n\n grunt.initConfig\n pkg: grunt.file.readJSON(\"package.json\")\n coffee:\n compile:\n files:\n 'chrome-app/lib/pomodoro.js': ['src/*.coffee']\n\n\n... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix an issue that non-markdown preview is not updated\n"
},
{
"from": "human",
"value": "module.exports =\nclass BroadcastTarget\n editor: null\n listener: null\n isMarkdownPreview: false\n\n constructor: ->\n @editor = atom.workspace.activePaneItem\n\n @i... | coffeescript | chosen |
[
{
"from": "system",
"value": "Make API work with citysdk data\n"
},
{
"from": "human",
"value": "RESTstop.configure()\n\nRESTstop.add 'trips/:tiploc?', ->\n tiploc = @params.tiploc\n unless tiploc?\n return [403,\n success: false\n message:'You need to provide a tiploc as a parame... | coffeescript | chosen |
[
{
"from": "system",
"value": "Modify enabled state when activated.\n"
},
{
"from": "human",
"value": "LineFocusStatsView = require './line-focus-stats-view'\n\nmodule.exports = LineFocusStats =\n lineFocusStatsViews: null\n\n activate: (state) ->\n console.log 'activate LineFocusStats'\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Reduce achor navigation animation time\n"
},
{
"from": "human",
"value": "$ ->\n $('a[href*=#]:not([href=#])').click ->\n if location.pathname.replace(/^\\//, '') == @pathname.replace(/^\\//, '') and location.hostname == @hostname\n target = $(@hash)\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Remove colors which corresponded to status if its quantity is zero (Take.3)\n"
},
{
"from": "human",
"value": "_ = require \"lodash\"\nd3Selection = require \"d3-selection\"\nDonutChart = require \"britecharts/dist/umd/donut.min\"\n\nmodule.exports =\n template: '<... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix videoLoader. Run `load` for HTMLElement instead jQuery el.\n"
},
{
"from": "human",
"value": "{\n jQuery: $\n} = uploadcare\n\nuploadcare.namespace 'utils', (ns) ->\n\n trackLoading = (image, src) ->\n def = $.Deferred()\n\n if src\n image.src = src... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use package name in menu\n"
},
{
"from": "human",
"value": "'menu': [\n 'label': 'Packages'\n 'submenu': [\n 'label': 'Markdown'\n 'submenu': [\n 'label': 'Toggle Preview'\n 'command': 'markdown-preview:toggle'\n ]\n ]\n]\n\n'context-menu':\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Disable autocomplete in comment and string\n"
},
{
"from": "human",
"value": "module.exports =\nclass AbstractProvider\n regex: ''\n selector: '.source.php'\n\n inclusionPriority: 1\n excludeLowerPriority: true\n\n # Build the snippet from the suggestion\n get... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add correct virtualenv dir to PATH\n"
},
{
"from": "human",
"value": "# Your init script\n\nfs = require 'fs'\npath = require 'path'\nDEFAULT_WORKON_HOME = path.join(process.env.HOME, '.virtualenvs')\n\n\n# Get path to directory containing all Python virtualenvs\nge... | coffeescript | chosen |
[
{
"from": "system",
"value": "Stop deletes overlapping comments (but leads to occasional flickering)\n"
},
{
"from": "human",
"value": "define [\n\t\"base\"\n], (App) ->\n\tApp.directive \"reviewPanelSorted\", ($timeout) ->\n\t\treturn {\n\t\t\tlink: (scope, element, attrs) ->\n\t\t\t\tlayout =... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add oninput to contributions new\n"
},
{
"from": "human",
"value": "Neighborly.Projects.Contributions = {} if Neighborly.Projects.Contributions is undefined\n\nNeighborly.Projects.Contributions.New =\n modules: -> []\n\n init: ->(\n initialize: ->\n $('.ma... | coffeescript | chosen |
[
{
"from": "system",
"value": "Implement item filtering in Model class\n"
},
{
"from": "human",
"value": "{ flatten } = require('sdk/util/array');\n\nclass Model\n constructor : (@sources, @filters) ->\n @feeds = flatten(source.getFeeds() for source in @sources)\n feed.on(\"updated\", @onF... | coffeescript | chosen |
[
{
"from": "system",
"value": "Access active pane item from atom.workspace\n"
},
{
"from": "human",
"value": "class FocusAction\n constructor: ->\n isComplete: -> true\n isRecordable: -> false\n\n focusCursor: ->\n editor = atom.workspaceView.getActivePaneItem()\n editorView = atom.work... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add atom and xip.io stuff.\n"
},
{
"from": "human",
"value": "'editor':\n 'showIndentGuide': true\n 'fontFamily': 'Menlo'\n 'fontSize': 15\n'core':\n 'excludeVcsIgnoredPaths': true\n 'ignoredNames': [\n '.bundle'\n '.git'\n 'log'\n 'repositories'\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Make the selector argument only work on strings\n"
},
{
"from": "human",
"value": "window.Binco.Select2 =\n load: (selector) ->\n selector = if typeof selector == 'undefined' then '.select2-rails' else selector\n $(selector).select2()\n\n$(document).on 'ready... | coffeescript | chosen |
[
{
"from": "system",
"value": "fix(drafts): Refresh view when draft becomes message\n"
},
{
"from": "human",
"value": "NylasStore = require 'nylas-store'\nReflux = require 'reflux'\n_ = require 'underscore'\n{Message,\n Actions,\n DatabaseStore,\n AccountStore,\n FocusedContentStore,\n DestroyDra... | coffeescript | chosen |
[
{
"from": "system",
"value": "fix(acct-menu): Add option to add account from context menu\n"
},
{
"from": "human",
"value": "React = require 'react'\n{Actions} = require 'nylas-exports'\n{RetinaImg} = require 'nylas-component-kit'\nAccountCommands = require '../account-commands'\n\n\nclass Accou... | coffeescript | chosen |
[
{
"from": "system",
"value": "Remove crufty mark as read method\n"
},
{
"from": "human",
"value": "angular.module('loomioApp').directive 'threadPreviewCollection', ->\n scope: {query: '=', limit: '=?'}\n restrict: 'E'\n templateUrl: 'generated/components/thread_preview_collection/thread_previ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Refactor and remove empty lines\n"
},
{
"from": "human",
"value": "angular.module(\"admin.products\").directive \"setOnDemand\", ->\n link: (scope, element, attr) ->\n onHand = element.context.querySelector(\"#variant_on_hand\")\n onDemand = element.context.q... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add specs for enhanced class-list handling\n"
},
{
"from": "human",
"value": "DefaultFileIcons = require '../lib/default-file-icons'\nFileIcons = require '../lib/file-icons'\n\ndescribe 'FileIcons', ->\n afterEach ->\n FileIcons.setService(new DefaultFileIcons)\... | coffeescript | chosen |
[
{
"from": "system",
"value": "Send search query to server\n"
},
{
"from": "human",
"value": "App.CwbSearchesController = Em.ArrayController.extend\n\n needs: 'corpus'\n\n # This will be bound to properties on views for for simple search, multiword\n # search and regex search.\n query: ''\n\n... | coffeescript | chosen |
[
{
"from": "system",
"value": "Extend node.js' Bokeh with plotting APIs\n"
},
{
"from": "human",
"value": "path = require \"path\"\nassert = require \"assert\"\nrootRequire = require(\"root-require\")\n\nroot = rootRequire.packpath.parent()\npkg = rootRequire(\"./package.json\")\n\nmodule.constru... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use beforeEach block in validation message spec\n"
},
{
"from": "human",
"value": "#= require magic_word\n\ndescribe 'ValidationMessage', ->\n messageBox = $('<div>Stuff</div>')\n m = new MagicWord.ValidationMessage messageBox\n\n describe '#constructor', ->\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Extend Yandex Map bounds with markers\n"
},
{
"from": "human",
"value": "class @Gmaps4Rails.Yandex.Map extends Gmaps4Rails.Common\n\n @include Gmaps4Rails.Interfaces.Map\n\n @include Gmaps4Rails.Map\n @include Gmaps4Rails.Yandex.Shared\n @include Gmaps4Rails.... | coffeescript | chosen |
[
{
"from": "system",
"value": "Move formatQuestionType helper to correct template\n"
},
{
"from": "human",
"value": "{ formatQuestionType } = require 'meteor/gq:helpers'\n\nTemplate.basic_results_info.helpers\n hasRange: ->\n @type in ['number', 'scale']\n\n formatQuestionType: -> formatQues... | coffeescript | chosen |
[
{
"from": "system",
"value": "Make the iframe with the player higher, to avoid scrolling even when the selection stats are displayed\n"
},
{
"from": "human",
"value": "###* @jsx React.DOM ###\n\nwindow.WFplayer = React.createClass\n componentDidMount: ->\n $node = $(@getDOMNode())\n media... | coffeescript | chosen |
[
{
"from": "system",
"value": "Make options argument optional in define function\n"
},
{
"from": "human",
"value": "behaviours = {}\n\nshare.attach = attach = (behaviour, args...) ->\n check behaviour, Match.OneOf Function, String\n\n if Match.test behaviour, String\n options = behaviours[be... | coffeescript | chosen |
[
{
"from": "system",
"value": "Update fixture package to use a tree-sitter grammar\n"
},
{
"from": "human",
"value": "'name': 'Test Ruby'\n'scopeName': 'test.rb'\n'firstLineMatch': '^\\\\#!.*(?:\\\\s|\\\\/)(?:testruby)(?:$|\\\\s)'\n'fileTypes': [\n 'rb'\n]\n'patterns': [\n {\n 'match': 'ruby... | coffeescript | chosen |
[
{
"from": "system",
"value": "Rename a local variable in \"translate\" function\n\nref #2\n"
},
{
"from": "human",
"value": "CompositeDisposable = null\nRange = null\n\nmodule.exports = TranslatorPlusDictionary =\n subscriptions: null\n\n activate: (state) ->\n # Initialize modules and clas... | coffeescript | chosen |
[
{
"from": "system",
"value": "Revert \"tabs dont handle cmd-w\"\n\nThis reverts commit d06e9a1bd0ff6d649cf3a2b14b5c528137f261f7.\n"
},
{
"from": "human",
"value": "tabs:\n 'cmd-shift-{': (tabs) -> tabs.pane.prevTab()\n 'cmd-shift-}': (tabs) -> tabs.pane.nextTab()\n 'cmd-1': (tabs) -> tabs.pan... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add compress as default task\n"
},
{
"from": "human",
"value": "gulp = require 'gulp'\nuglify = require 'gulp-uglify'\nrename = require 'gulp-rename'\n\ngulp.task 'compress', ->\n gulp.src 'dist/position-sticky.js'\n .pipe uglify()\n .pipe rename('position-st... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix parseXFBML on update index\n"
},
{
"from": "human",
"value": "Neighborly.Projects = {} if Neighborly.Projects is undefined\nNeighborly.Projects.Updates = {} if Neighborly.Projects.Updates is undefined\n\nNeighborly.Projects.Updates.Index =\n init: Backbone.View... | coffeescript | chosen |
[
{
"from": "system",
"value": "Replace validation to node built-in functions\n"
},
{
"from": "human",
"value": "fun = (f) -> typeof f is 'function'\nstr = (s) -> typeof s is 'string'\narr = (a) -> a instanceof Array\nobj = (o) -> o instanceof Object and not fun(o) and not arr(o)\n\nexports.is =\n... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use proper path for upload.\n"
},
{
"from": "human",
"value": "{statusCreated, statusNoContent, statusOk} = require '../utils'\n\nendpoint = (x) ->\n \"/site/#{x.siteId}/deploy\"\n\nbyId = (x) ->\n \"#{endpoint x}/#{x.id ? x.deployId}\"\n\nupload = (x) ->\n \"#{b... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add ignoreWhitespaceOnlyLines as disabled by default\n"
},
{
"from": "human",
"value": "Whitespace = require './whitespace'\n\nmodule.exports =\n configDefaults:\n removeTrailingWhitespace: true\n ignoreWhitespaceOnCurrentLine: true\n ensureSingleTrailingN... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add date to ember comment serializers\n"
},
{
"from": "human",
"value": "ETahi.Comment = DS.Model.extend\n commenter: DS.belongsTo('user')\n body: DS.attr('string')\n messageTask: DS.belongsTo('messageTask')\n"
},
{
"from": "gpt",
"value": "ETahi.Comm... | coffeescript | chosen |
[
{
"from": "system",
"value": "CHeck favourited topic on 'slug_title'\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_topics,... | coffeescript | chosen |
[
{
"from": "system",
"value": "Move journal detail saving to a common function\n"
},
{
"from": "human",
"value": "ETahi.JournalThumbnailController = Ember.ObjectController.extend\n needs: ['application']\n currentUser: Ember.computed.alias 'controllers.application.currentUser'\n isEditing: (->... | coffeescript | chosen |
[
{
"from": "system",
"value": "Make the git path a configuration setting.\n"
},
{
"from": "human",
"value": "MergeConflictsView = require './merge-conflicts-view'\nSideView = require './side-view'\nNavigationView = require './navigation-view'\nConflict = require './conflict'\n\nmodule.exports =\n... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use the escaped regex as a stopgap solution\n"
},
{
"from": "human",
"value": "class Kandan.Plugins.MeAnnounce\n\n @regex: /^\\/me /\n\n @init: ()->\n Kandan.Modifiers.register @regex, (message, state)=>\n message.content = message.content.replace @regex, ... | coffeescript | chosen |
[
{
"from": "system",
"value": "[bugfix] Set a default timeout of 5 seconds (instead of infinite).\n"
},
{
"from": "human",
"value": "module.exports = ->\n @logger = require './logger'\n\n @visit = (path) =>\n @driver.get \"#{@host}#{path}\"\n\n _Before = @Before\n _After = @After\n\n @_i... | coffeescript | chosen |
[
{
"from": "system",
"value": "Replace dummy text with Mark workflow help text"
},
{
"from": "human",
"value": "module.exports = {\n header: 'Help Mark Fields',\n pages: [\n {\n pageNumber: 0,\n text: \"One Lorem ipsum dolor sit amet, posuere a mauris, nostra quam nonummy, facilisi... | coffeescript | chosen |
[
{
"from": "system",
"value": "Change error state check on model.\n"
},
{
"from": "human",
"value": "`import Ember from \"ember\";`\n`import { EMPLOYEE_ROLES } from \"t2-people/utils/constants\";`\nPersonEditController = Ember.ObjectController.extend\n needs: ['application']\n\n employeeRoles: ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Revert \"update pdfjs to v1.8.188\"\n\nThis reverts commit 189e48dcc00f530eff674cc4a2b87c06814d45ff.\n"
},
{
"from": "human",
"value": "version = {\n\t\"pdfjs\": \"1.8.188\"\n\t\"moment\": \"2.9.0\"\n\t\"ace\": \"1.2.5\"\n}\n\nmodule.exports = {\n\tversion: version\... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add two more pending tests.\n"
},
{
"from": "human",
"value": "describe 'Pending', ->\n it 'Should test skipHeader option'\n it 'Should test initWith option'\n it 'Should embed plain JS files'\n"
},
{
"from": "gpt",
"value": "describe 'Pending',... | coffeescript | chosen |
[
{
"from": "system",
"value": "Call Editor.insertText directly instead of creating a TextInput event"
},
{
"from": "human",
"value": "fs = require 'fs'\nrequire 'benchmark-helper'\n\ndescribe \"Editor\", ->\n editor = null\n\n beforeEach ->\n window.rootViewParentSelector = '#jasmine-content... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use busyboy package instead of body-parser\n"
},
{
"from": "human",
"value": "express = require 'express'\nbodyParser = require('body-parser')\n\napp = express()\nport = process.env.PORT || 5000\n\napp.use express.static __dirname\n .use bodyParser.urlencoded {ext... | coffeescript | chosen |
[
{
"from": "system",
"value": "Check for offset being set.\n"
},
{
"from": "human",
"value": "jQuery ->\n if User.current().data_object.staff == true\n scroll(0,$(\".row.osu-purple\").offset().top)"
},
{
"from": "gpt",
"value": "jQuery ->\n if User.current().data_object.staff == ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Handle FB share link when thumbnail URL is relative\n"
},
{
"from": "human",
"value": "Template.blogShowBody.rendered = ->\n\n # Hide draft posts from crawlers\n if not @data.published\n $('<meta>', { name: 'robots', content: 'noindex,nofollow' }).appendTo 'hea... | coffeescript | chosen |
[
{
"from": "system",
"value": "Set default cursor pointer for TextButton\n"
},
{
"from": "human",
"value": "class CB.TextButton extends CB.Control\n constructor: (frame) ->\n super(frame)\n @_labelView = new CB.LabelView()\n @_labelView.frame = new CB.Rect(0, 0, 0, 0)\n this.addSubvi... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use mapping instead of switch\n"
},
{
"from": "human",
"value": "###\n# Copyright 2015 ppy Pty. Ltd.\n#\n# This file is part of osu!web. osu!web is distributed with the hope of\n# attracting more community contributions to the core ecosystem of osu!.\n#\n# osu!web i... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix proposal outcome dropdown not showing up when citescop is selected\n"
},
{
"from": "human",
"value": "Species.DocumentTagLookup = Ember.Mixin.create\n selectedProposalOutcome: null\n selectedProposalOutcomeId: null\n selectedReviewPhase: null\n selectedRevie... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix usage of parent.remote outside of client in client-pages.\n"
},
{
"from": "human",
"value": "class FactlinkAppClass extends Backbone.Marionette.Application\n startAsSite: ->\n @startSiteRegions()\n @addInitializer @automaticLogoutInitializer\n @addInit... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix javascript error on profile page\n"
},
{
"from": "human",
"value": "angular.module('loomioApp').controller 'ProfilePageController', ($rootScope, Records, FormService, $location, AbilityService, ModalService, ChangePictureForm, ChangePasswordForm, DeactivateUserF... | coffeescript | chosen |
[
{
"from": "system",
"value": "Establish a Convention for Using Reflection to Automate Instantiation\n"
},
{
"from": "human",
"value": "qbnApp = angular.module 'qbnApp', []\n\nclass Quality\n constructor: (@name, @defaultValue) ->\n\n initInstance: () ->\n @value = @defaultValue\n\ninstantia... | coffeescript | chosen |
[
{
"from": "system",
"value": "Remove unnecessary function naming on comment form submit\n"
},
{
"from": "human",
"value": "angular.module('loomioApp').directive 'commentForm', ->\n scope: {comment: '='}\n restrict: 'E'\n templateUrl: 'generated/components/thread_page/comment_form/comment_form... | coffeescript | chosen |
[
{
"from": "system",
"value": "Put bower grunt task first\n"
},
{
"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/w... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix breaking tests due to new argument signature\n"
},
{
"from": "human",
"value": "Presenters = require \"../lib/presenters\"\nhelpers = require \"./helpers\"\n\ndescribe \"Presenters\", ->\n\n before ->\n @prediction1 = new helpers.PredictionStub stopName: \"M... | coffeescript | chosen |
[
{
"from": "system",
"value": "Include link to default image.\n"
},
{
"from": "human",
"value": "module.exports = [\n {\n \"id\": \"1\",\n \"title\": \"\"\n \"image\": \"\"\n },\n {\n \"id\": \"2\",\n \"title\": \"Egg\",\n \"image\": \"img/nodes/egg.png\",\n \"metadata\": ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Hide spinner when data is loaded\n"
},
{
"from": "human",
"value": "{div, h1, h2, p, i, a} = React.DOM\nwindow.AnnualReportUploads = class AnnualReportUploads extends React.Component\n constructor: (props, context) ->\n super(props, context)\n @state = {\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Update URL to the CoffeeScript site\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://... | coffeescript | chosen |
[
{
"from": "system",
"value": "QUALITY: Use unit function for returning alignments\n"
},
{
"from": "human",
"value": "angular.module('doubtfire.projects.states.dashboard.directives.task-dashboard.directives.task-outcomes-card', [])\n#\n# Describes more about ILO linkages between a task\n#\n.direc... | coffeescript | chosen |
[
{
"from": "system",
"value": "Check status instead of error message\n"
},
{
"from": "human",
"value": "$(document).on 'ajax:error', (event, xhr, status, error) ->\n if error == 'Unauthorized'\n $.fancybox.open\n href: '#js-login-prompt'\n scrolling: 'visible' # for button outlines ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Select all works on simple order cycles edit interface\n"
},
{
"from": "human",
"value": "angular.module('admin.order_cycles').controller \"AdminSimpleEditOrderCycleCtrl\", ($scope, $location, OrderCycle, Enterprise, EnterpriseFee) ->\n $scope.orderCycleId = ->\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add more info in the gem whois response"
},
{
"from": "human",
"value": "# Whois for gems, because gem names are like domains in the 90's\n#\n# gem whois <gemname> - returns gem details if it exists\n#\n\nmodule.exports = (robot) ->\n robot.respond /gem whois (.*)/... | coffeescript | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.