conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Add error logging to process forking\n"
},
{
"from": "human",
"value": "cp = require('child_process')\n\ngetBranchFromRef = (ref) ->\n refParts = ref.split(\"/\")\n return refParts[refParts.length-1]\n\nexports.index = (req, res) ->\n parsedPayload = JSON.parse(r... | coffeescript | chosen |
[
{
"from": "system",
"value": "Make sure VBox and HBox still work\n\nNot adding tests because about to remove HBox and VBox\n"
},
{
"from": "human",
"value": "_ = require \"underscore\"\nLayoutDOM = require \"./layout_dom\"\np = require \"../../core/properties\"\n\nclass BaseBox extends LayoutDOM... | coffeescript | chosen |
[
{
"from": "system",
"value": "Make default gulp task compile and test\n"
},
{
"from": "human",
"value": "gulp = require 'gulp'\ncoffee = require 'gulp-coffee'\nmocha = require 'gulp-mocha'\n\nsrc = './src/*.coffee'\ntest = './test/*.coffee'\n\ngulp.task('compile', ->\n gulp.src(src)\n .pipe(... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use opener methods from workspace instead of project"
},
{
"from": "human",
"value": "path = require 'path'\n_ = require 'underscore-plus'\nImageEditor = require './image-editor'\n\nmodule.exports =\n activate: ->\n atom.project.registerOpener(openUri)\n\n deac... | coffeescript | chosen |
[
{
"from": "system",
"value": "Correct the descriptions of the options\n"
},
{
"from": "human",
"value": "RubocopAutoCorrect = require './rubocop-auto-correct'\n\nmodule.exports =\n config:\n rubocopCommandPath:\n description: 'If command doesnot work, please input rubocop full path. exa... | coffeescript | chosen |
[
{
"from": "system",
"value": "Change fallback for UX Markup from xml back to html\n"
},
{
"from": "human",
"value": "module.exports = {\n\n name: \"UX Markup\"\n namespace: \"ux\"\n fallback: ['xml']\n\n ###\n Supported Grammars\n ###\n grammars: [\n \"UX\"\n ]\n\n ###\n Supported e... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add more tests to custom html view\n"
},
{
"from": "human",
"value": "should = require 'should'\nKDCustomHTMLView = require '../../lib/core/customhtmlview'\n\n\ndescribe 'KDCustomHTMLView', ->\n it 'exists', ->\n KDCustomHTMLView.should.exist\n\n describe 'cons... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use screen_name instead of name\n"
},
{
"from": "human",
"value": "# detect tweet URL and send tweet content\nmodule.exports = (robot) ->\n\trobot.hear /https?:\\/\\/(mobile\\.)?twitter\\.com\\/.*?\\/status\\/([0-9]+)/i, (msg) ->\n\t\tmsg.http(\"https://api.twitter.... | coffeescript | chosen |
[
{
"from": "system",
"value": "fix(details): Make Homepage field clickable/a hyperlink\n"
},
{
"from": "human",
"value": "# Copyright (c) 2015 Markus Kohlhase <mail@markus-kohlhase.de>\n\nReact = require \"react\"\nPureMixin = require \"react-pure-render/mixin\"\n\n{ NAMES, CSS_CLASSES } = re... | coffeescript | chosen |
[
{
"from": "system",
"value": "Decrease number of attemts to make sure to fin in browser timeout\n"
},
{
"from": "human",
"value": "import logger from '../log'\nrequest = require('request-promise-native')\n\nsleep = (milliseconds) ->\n return new Promise((resolve) -> setTimeout(resolve, millis... | coffeescript | chosen |
[
{
"from": "system",
"value": "Update language to match default\n\n`en_US` != `en`\r\n\r\nIt may be better to reject this fix and change english.coffee, but I'm unsure if you want to use 2-char or 4-char codes. \r\n\r\nCheers"
},
{
"from": "human",
"value": "AccountsEntry =\n settings:\n wrap... | coffeescript | chosen |
[
{
"from": "system",
"value": "Synchronize the fancy toggle its related form on load\n\nBecause some browsers restore previous state on reload.\n"
},
{
"from": "human",
"value": "###\n# Copyright 2015-2017 ppy Pty. Ltd.\n#\n# This file is part of osu!web. osu!web is distributed with the hop... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add context menu items to open related files"
},
{
"from": "human",
"value": "# See https://atom.io/docs/latest/hacking-atom-package-word-count#menus for more details\n'context-menu':\n 'atom-text-editor': [\n {\n 'label': 'Toggle titanium'\n 'command'... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add default sort and sets cookie when sort changes\n"
},
{
"from": "human",
"value": "Backbone = require 'backbone'\ncookies = require 'cookies-js'\n{ keys, each } = require 'underscore'\n\nmodule.exports = class State extends Backbone.Model\n defaults:\n view_m... | coffeescript | chosen |
[
{
"from": "system",
"value": "AddWorkspaceView: Return no when clicked to prevent node changing on sidebar.\n"
},
{
"from": "human",
"value": "class AddWorkspaceView extends KDCustomHTMLView\n\n constructor: (options = {}, data) ->\n\n options.cssClass = 'add-workpace-view'\n\n super opti... | coffeescript | chosen |
[
{
"from": "system",
"value": "Send explicit parameters in channel subscription\n"
},
{
"from": "human",
"value": "App.todo = App.cable.subscriptions.create \"TodoChannel\",\n connected: ->\n # Called when the subscription is ready for use on the server\n\n disconnected: ->\n # Called whe... | coffeescript | chosen |
[
{
"from": "system",
"value": "Define views for Room management\n"
},
{
"from": "human",
"value": "App.UsersIndexView = Ember.View.extend\n layoutName: \"settings\"\n classNames: [\"settings\"]\n\nApp.UsersNewView = Ember.View.extend\n layoutName: \"settings\"\n classNames: [\"settings\"]\n\n... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add comments to ipkg grammar\n\nipgk Files support idris style comments. Enable those in the grammar.\n"
},
{
"from": "human",
"value": "name: 'Idris Ipkg'\nscopeName: 'source.ipkg'\nfileTypes: ['ipkg']\npatterns:\n [\n {\n name: 'keyword.control.ipkg'\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Support content with '/' in the id\n"
},
{
"from": "human",
"value": "define [\n 'jquery'\n 'underscore'\n 'backbone'\n 'marionette'\n 'cs!controllers/routing'\n], ($, _, Backbone, Marionette, routerController) ->\n\n return new (Marionette.AppRouter.extend\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use a real uuid in the test to silence DB warnings\n"
},
{
"from": "human",
"value": "{expect} = require 'chai'\nPromise = require 'bluebird'\nPromise.longStackTraces()\n\ndescribe 'access service', ->\n access = null\n\n before Promise.coroutine ->\n d... | coffeescript | chosen |
[
{
"from": "system",
"value": "Remove bower components from distro\n"
},
{
"from": "human",
"value": "\"use strict\"\n\npathUtils = require(\"path\")\nglob = require(\"glob\")\nfs = require(\"fs\")\n\nmodule.exports = (grunt) ->\n grunt = (require 'grunt-utilities') grunt\n\n grunt.initConfig\n... | coffeescript | chosen |
[
{
"from": "system",
"value": "Set editorPane as default activeTabView.\n"
},
{
"from": "human",
"value": "class IDEAppController extends AppController\n\n KD.registerAppClass this,\n name : \"IDE\"\n route : \"/:name?/IDE\"\n behavior : \"application\"\n preCondit... | coffeescript | chosen |
[
{
"from": "system",
"value": "Stop exporting Emitter and Subscriber\n"
},
{
"from": "human",
"value": "{View, $$, $$$} = require '../src/space-pen-extensions'\n{Document, Point, Range, Site} = require 'telepath'\n{Emitter, Subscriber} = require 'emissary'\n\nmodule.exports =\n _: require '../sr... | coffeescript | chosen |
[
{
"from": "system",
"value": "Move background argument closer to input arguments\n\nThat makes more sense to me.\n"
},
{
"from": "human",
"value": "path = require('path')\ngm = require('gm')\nimageMagick = gm.subClass({ imageMagick: true })\n\nclass Imager\n minSize: 40\n maxSi... | coffeescript | chosen |
[
{
"from": "system",
"value": "Deal with http requests using phantomjs\n"
},
{
"from": "human",
"value": "fs = require('fs')\nurl = require('url')\nhttp = require('http')\nhttps = require('https')\n\nmodule.exports = class Reader\n messages =\n noSourceError: 'a valid source must be pro... | coffeescript | chosen |
[
{
"from": "system",
"value": "Remove migration of old config setting\n"
},
{
"from": "human",
"value": "{$} = require 'atom'\n\nmodule.exports =\n configDefaults:\n enabled: false\n\n activate: (state) ->\n @migrateOldAutosaveConfig()\n\n atom.workspaceView.on 'focusout', \".editor:no... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use fat arrow instead of .bind(@)\n"
},
{
"from": "human",
"value": "{CompositeDisposable} = require 'atom'\n\nclass Commands\n constructor: (@linter) ->\n @_subscriptions = new CompositeDisposable\n @_subscriptions.add atom.commands.add 'atom-workspace',\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add Arnie emoji to the end of every quote. Update description.\n"
},
{
"from": "human",
"value": "# Description:\n# Listens for words and sometimes replies with an Arnie quote\n#\n# Dependencies:\n# None\n#\n# Commands:\n# None\n#\n# Author:\n# Casey Lawrenc... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add a slight animation for a nice effect\n"
},
{
"from": "human",
"value": "$(->\n $('[data-typeahead]').on 'keyup', (e)->\n $this = $(this)\n pattern = $this.val().toLowerCase()\n searchClass = $this.data(\"typeahead-search\")\n $($this.data(\"typeahea... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix test for invalid argument error\n"
},
{
"from": "human",
"value": "require('chai').should()\nfs = require 'fs'\nexec = require('child_process').exec\n\nopt = {cwd: __dirname}\nfixclosure = '../bin/fixclosure.js'\n\ndescribe 'Command line', ->\n it 'exec without... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add test for ignoring name anchors\n"
},
{
"from": "human",
"value": "describe 'LinkGrabber', ->\n\t\n\tdescribe 'with links', ->\n\t\t\n\t\tit 'should find all links', ->\n\t\t\tlinks = LinkGrabber.fromHTMLString('<p>Lorem <a href=\"http://foo/\">ipsum</a> dolor <a... | coffeescript | chosen |
[
{
"from": "system",
"value": "Sort arrivals by arrival time\n"
},
{
"from": "human",
"value": "Template.displayETA.arrivals = (direction)->\n stop = Session.get 'etaStop'\n if not stop\n return\n return Arrivals.find({ station: stop, direction: direction })\n\n"
},
{
"from": "gpt",... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add remove block XML snippet\n"
},
{
"from": "human",
"value": "# Your snippets\n#\n# Atom snippets allow you to enter a simple prefix in the editor and hit tab to\n# expand the prefix into a larger code block with templated values.\n#\n# You can create a new snippe... | coffeescript | chosen |
[
{
"from": "system",
"value": "Rename oreRow -> oreRowID to clarify it's an index\n\nAs opposed to a reference to the row.\n"
},
{
"from": "human",
"value": "#oreList = query(\"select itemName from Ore order by itemName\", (err, rows, result) ->\n#\talert rows )\n\n\n#alert oreList\n#alert \"3333... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add support for fetching one issue from project\n"
},
{
"from": "human",
"value": "BaseModel = require '../BaseModel'\nUtils = require '../Utils'\n\nclass ProjectIssues extends BaseModel\n list: (projectId, params = {}, fn = null) =>\n @debug \"ProjectIssues::is... | coffeescript | chosen |
[
{
"from": "system",
"value": "Update location hash when Foundation tabs change.\n"
},
{
"from": "human",
"value": "$(document).foundation()\nhash = window.location.hash\nif hash\n # Open the Foundation tab whose URL matches the requested hash.\n # http://foundation.zurb.com/sites/docs/tabs.htm... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use Buffer API instead of Editor API"
},
{
"from": "human",
"value": "{Subscriber} = require 'emissary'\n\nmodule.exports =\nclass Whitespace\n Subscriber.includeInto(this)\n\n constructor: ->\n atom.workspace.eachEditor (editor) =>\n @handleEditorEvents(e... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix submitting will a new page\n"
},
{
"from": "human",
"value": "window.Messages = new Meteor.Collection('messages')\n\nTemplate.chatTemplate.messages = ->\n Messages.find()\n\n$ ->\n $('#enter').submit( ->\n Meteor.subscribe('channel', $('#channel').v... | coffeescript | chosen |
[
{
"from": "system",
"value": "Destroy select2 before cache happens to avoid duplication\n"
},
{
"from": "human",
"value": "window.Binco.Select2 =\n load: (selector) ->\n selector = if typeof selector == 'string' then selector else '.select2-rails'\n $(selector).each((i,e) ->\n $(e).s... | coffeescript | chosen |
[
{
"from": "system",
"value": "Append HomeView subviews in 1 operation\n"
},
{
"from": "human",
"value": "ProjectMonitor.Views ||= {}\n\nclass ProjectMonitor.Views.HomeView extends Backbone.View\n tagName: \"ol\"\n className: \"projects\"\n template: JST[\"backbone/templates/home\"]\n\n initi... | coffeescript | chosen |
[
{
"from": "system",
"value": ":bug: Fix persisting reference to pigments after package deactivation\n\nFixes abe33/atom-pigments#66\n"
},
{
"from": "human",
"value": "{CompositeDisposable} = require 'event-kit'\nMinimapPigmentsBinding = require './minimap-pigments-binding'\n\nmodule.exports =\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Stop converting arrays into objects\n"
},
{
"from": "human",
"value": "# Lookup table for compressing data\ntableTo =\n\n # User\n email: \"@\"\n password: \"X\"\n has_pro: \"$\"\n created_at: \":\"\n updated_at: \"#\"\n\n data_Task: \"dT\"\n data_... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix ERB tag syntax in the source\n"
},
{
"from": "human",
"value": "jQuery ->\n $('.locales a:first').tab('show')\n $('.accordion-body').on('hidden', ->\n $(@).prev().find('i').first().removeClass().addClass('icon-chevron-right')\n )\n $('.acc... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix typo that prevented assets from being loaded\n"
},
{
"from": "human",
"value": "americano = require 'americano'\nfs = require 'fs'\npath = require 'path'\nrealtimer = require './utils/realtimer'\n\nlocalizationManager = require './utils/localization_... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use select to create hashes for list comprehensions\n"
},
{
"from": "human",
"value": "_ = require 'underscore'\n$ = jQuery\n\nassign = (node, attribute, value) ->\n if attribute\n node.attr attribute, value\n else\n children = node.children().detach()\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Allow opening client controller in tests\n"
},
{
"from": "human",
"value": "window.ClientController =\n showFact: (fact_id) ->\n fact = new Fact id: fact_id\n\n fact.on 'destroy', ->\n parent.remote.hide()\n parent.remote.stopHighlightingFactlink fa... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use status code 403 forbidden instead of 401 unauthorized\n\nAlso returns a pretty JSON"
},
{
"from": "human",
"value": "class API extends Restivus\n\tconstructor: ->\n\t\t@authMethods = []\n\t\tsuper\n\n\taddAuthMethod: (method) ->\n\t\t@authMethods.push method\n\n... | coffeescript | chosen |
[
{
"from": "system",
"value": "Pane: Make header.title as a separate object\n"
},
{
"from": "human",
"value": "class Pane extends JView\n\n constructor: (options = {}, data) ->\n\n options.cssClass = KD.utils.curry \"ws-pane\", options.cssClass\n\n super options, data\n\n @headerButton... | coffeescript | chosen |
[
{
"from": "system",
"value": "Set testnet BIP44 coin type to 1\n"
},
{
"from": "human",
"value": "ledger.bitcoin ||= {}\nledger.bitcoin.Networks =\n bitcoin:\n name: 'bitcoin'\n ticker: 'btc'\n bip44_coin_type: '0'\n version:\n regular: 0\n P2SH: 5\n bitcoinjs: bitcoin.... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix path encoding on server\n"
},
{
"from": "human",
"value": "\nfs = require 'fs'\ncrypto = require 'crypto'\n\ncreateHashID = ->\n crypto.createHash('sha1').update(\"#{Math.random()}\").digest('hex');\n\nmodule.exports = (file, callback) ->\n return callback(\"N... | coffeescript | chosen |
[
{
"from": "system",
"value": "Move custom level link to more conspicious place\n"
},
{
"from": "human",
"value": "#\n# layout.coffee\n#\n# Role: configure the interface for a level\n#\n# Responsibility:\n# * create dictionaries describing the interface elements\n# * associate them as children of... | coffeescript | chosen |
[
{
"from": "system",
"value": "Revert \"temorarily removed connect server gulp code\"\n\nThis reverts commit 8ef5cd25289cc215599ffa7c5e70dcbce78e03e5.\n"
},
{
"from": "human",
"value": "browserify = require \"browserify\"\nconnect = require \"gulp-connect\"\nerror = require \"./error.coff... | coffeescript | chosen |
[
{
"from": "system",
"value": "Change zoom level from 15 to 14\n"
},
{
"from": "human",
"value": "mapboxgl.accessToken = 'pk.eyJ1IjoibWg2MTUwMzg5MSIsImEiOiJjaWhxbTJjOGMwNGt4dHBtMjczbzhieXZkIn0.J8-B8U-8nCtqiZ2CfxbV0g'\nposition = new mapboxgl.LngLat(133.842941, 35.375086).wrap()\nmap = new mapboxg... | coffeescript | chosen |
[
{
"from": "system",
"value": "Remove deletion of node directory\n\nThis directory is no longer at the root of the repo\n"
},
{
"from": "human",
"value": "path = require 'path'\n\nmodule.exports = (grunt) ->\n {rm} = require('./task-helpers')(grunt)\n\n grunt.registerTask 'partial-clean', 'Dele... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add asciidoc grammar to defaults\n"
},
{
"from": "human",
"value": "SpellCheckView = null\n\nmodule.exports =\n config:\n grammars:\n type: 'array'\n default: [\n 'source.gfm'\n 'text.git-commit'\n 'text.plain'\n 'text.plain... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix config, log a completion type [WIP]\n"
},
{
"from": "human",
"value": "{BufferedProcess} = require 'atom'\n\nclass PscIde\n constructor: ->\n @pscIde = atom.config.get(\"linter-purescript.pscIdeExe\")\n @getModules()\n .then (output) ->\n cons... | coffeescript | chosen |
[
{
"from": "system",
"value": "Update deprecated selector in keymap\n"
},
{
"from": "human",
"value": "'.workspace, .workspace .editor':\n 'ctrl-M': 'markdown-preview:toggle'\n\n'.platform-darwin .markdown-preview':\n 'cmd-+': 'markdown-preview:zoom-in'\n 'cmd-=': 'markdown-preview:zoom-in'\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Make indicator page show the page correctly\n"
},
{
"from": "human",
"value": "Indicator = require('../models/indicator').model\nTheme = require('../models/theme').model\n_ = require('underscore')\nasync = require('async')\ncsv = require('express-csv')\n\nexports.in... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add in the optional propertys when present\n"
},
{
"from": "human",
"value": "_ = require 'underscore'\n\nclass Base\n constructor: (props) ->\n _.each props, (v, k) =>\n @[k] = v\n\n validate: ->\n\n validProperty = (property)=>\n valid = false\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix warning to use deprecated calls\n"
},
{
"from": "human",
"value": "BroadcastServer = require './broadcast-server.coffee'\n\nmodule.exports =\n configDefaults:\n hostname: 'localhost'\n port: 8000\n getEmojisFromCheatSheetSite: false\n automaticallyO... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix Configuration initialization in daemon tests\n"
},
{
"from": "human",
"value": "net = require \"net\"\n{testCase} = require \"nodeunit\"\n{Configuration, Daemon} = require \"..\"\n{prepareFixtures, fixturePath} = require \"./lib/test_helper\"\n\nmodule.exports =... | coffeescript | chosen |
[
{
"from": "system",
"value": "Support dynamic segment in links when model is provided in pills\nby providing a \"dynamicLink\" boolean property.\n"
},
{
"from": "human",
"value": "Bootstrap.BsPill = Bootstrap.ItemView.extend(Bootstrap.NavItem, Bootstrap.ItemSelection,\n template: Ember.Handle... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix returned promise wasn't deep enough.\n"
},
{
"from": "human",
"value": "Q = require 'q'\n\n{Base} = require \"#{__dirname}/base\"\n{Wrappers} = require \"#{__dirname}/helpers/wrappers\"\n{BeanBuilder} = require \"#{__dirname}/helpers/bean_builder\"\n\n\nclass Ba... | coffeescript | chosen |
[
{
"from": "system",
"value": "Sort requestHistory requestUpdates by createdAt (so new items are at the top)"
},
{
"from": "human",
"value": "Model = require './model'\n\nclass RequestHistory extends Model\n\n url: -> \"#{ env.SINGULARITY_BASE }/#{ constants.apiBase }/history/request/#{ @reque... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix syntax error in autosave coffeescript.\n"
},
{
"from": "human",
"value": "class @Autosave\n constructor: (field, key) ->\n @field = field\n\n key = key.join(\"/\") if key.join?\n @key = \"autosave/#{key}\"\n\n @field.data \"autosave\", this\n\n @... | coffeescript | chosen |
[
{
"from": "system",
"value": "Set manual error message for 500 responses"
},
{
"from": "human",
"value": "JSONAPIClient = {Resource} = require 'json-api-client'\nconfig = require './config'\n\napiClient = new JSONAPIClient config.host + '/api',\n 'Content-Type': 'application/json'\n 'Accept': ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Rename Treeview to Tree View in View menu\n\nSynchronizes it to the same label used in the Packages menu.\n"
},
{
"from": "human",
"value": "'menu': [\n {\n 'label': 'View'\n 'submenu': [\n 'label': 'Toggle Treeview'\n 'command': 'tree-view:toggle'\... | coffeescript | chosen |
[
{
"from": "system",
"value": "Send cookie info on role updates\n"
},
{
"from": "human",
"value": "define (require) ->\n Backbone = require('backbone')\n settings = require('settings')\n router = require('router')\n\n AUTHORING = \"#{location.protocol}//#{settings.cnxauthoring.host}:#{setting... | coffeescript | chosen |
[
{
"from": "system",
"value": ":bug: Fix use of deprecated minimap API\n"
},
{
"from": "human",
"value": "MinimapSelectionView = require './minimap-selection-view'\n\nmodule.exports =\n\n active: false\n views: {}\n\n activate: (state) ->\n try\n atom.packages.activatePackage('minimap'... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add methods to get posts\n"
},
{
"from": "human",
"value": "angular.module 'ngtuvok'\n .factory \"BlogService\", (DataFactory) ->\n # $resource '/api/posts'\n\n posts = DataFactory.query ->\n console.log posts\n return\n\n getLastPost: ->\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Make the javascript for new project work on channel new project\n"
},
{
"from": "human",
"value": "Neighborly.Projects = {} if Neighborly.Projects is undefined\n\nNeighborly.Projects.New =\n init: Backbone.View.extend\n el: '.new-project-page'\n\n initialize:... | coffeescript | chosen |
[
{
"from": "system",
"value": "QUALITY: Remove import of empty templates-common.js\n"
},
{
"from": "human",
"value": "#\n# Use this module to define all third-party dependencies\n# that are used in Doubtfire\n#\nangular.module('doubtfire.config.vendor-dependencies', [\n # ng*\n 'ngCookies'\n '... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix message keys in RevisionList\n\nResolves #471\n"
},
{
"from": "human",
"value": "React = require 'react/addons'\nEditable = require '../high_order/editable'\n\nList = require '../common/list'\nRevision = require './revi... | coffeescript | chosen |
[
{
"from": "system",
"value": "Update chrome hack to use position: fixed\n\nFor reasons unknown, we were experiencing UI bugginess with the drag image\nafter updating jQuery.\n\nChaging the position to fixed instead of absolute fixed the problem.\n"
},
{
"from": "human",
"value": "module.exports ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Enable the reading of the OS release number"
},
{
"from": "human",
"value": "# Public: GrammarUtils.OperatingSystem - a module which exposes different\n# platform related helper functions.\nmodule.exports =\n isDarwin: ->\n @platform() is 'darwin'\n\n isWindows... | coffeescript | chosen |
[
{
"from": "system",
"value": "Remove the unzip spec completely.\n"
},
{
"from": "human",
"value": "assert = require 'assert'\nfs = require 'fs'\npath = require 'path'\n\ndescribe 'third-party module', ->\n fixtures = path.join __dirname, 'fixtures'\n\n xdescribe 'unzip', ->\n unzip = ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add clue parameter to validation\n"
},
{
"from": "human",
"value": "React = require 'react'\n\nmodule.exports = React.PropTypes.shape(\n title: React.PropTypes.string\n children: React.PropTypes.array\n chapter_section: ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Insert subtitle to the content\n\nSigned-off-by: Lincoln Lee <46f1a0bd5592a2f9244ca321b129902a06b53e03@lincoln.hk>\n"
},
{
"from": "human",
"value": "class Article\n constructor: ->\n\n set_title: (@title) ->\n\n set_content: (@content) ->\n\n set_date: (@da... | coffeescript | chosen |
[
{
"from": "system",
"value": "Implement 'recent' link on messages section\n"
},
{
"from": "human",
"value": "$(document).ready ->\n\n $('#messages-kiitos li').on 'click', (event) ->\n event.preventDefault()\n id = $(@).data('id')\n $.get \"messages/#{id}\""
},
{
"from": "gpt",
... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix parameter asserting when the options passed through are undefined\n"
},
{
"from": "human",
"value": "#<< AppEngine/Helpers/Helpers\n\nclass StrictObject extends Backbone.Events\n @expectedParameters: []\n @applyParameters: []\n @isAbstract: -> @ == StrictObje... | coffeescript | chosen |
[
{
"from": "system",
"value": "Tweak menu label for case insensitive sort\n"
},
{
"from": "human",
"value": "'menu': [\n {\n 'label': 'Edit'\n 'submenu': [\n 'label': 'Lines'\n 'submenu': [\n { 'label': 'Sort', 'command': 'sort-lines:sort' }\n { 'label': 'Reverse So... | coffeescript | chosen |
[
{
"from": "system",
"value": "Decrease threads number in order to show threads working\n"
},
{
"from": "human",
"value": "$(document).ready ->\n\n assert = (condition) -> throw 'Assertion failed' unless condition\n\n contents = \"\"\"\n\n ######################################################... | coffeescript | chosen |
[
{
"from": "system",
"value": "Load fixture instead of relying on exitisting var\n"
},
{
"from": "human",
"value": "#= require trix/views/text_view\n#= require fixtures\n\nmodule \"Trix.TextView\"\n\n\ntest \"#createElementsForText\", ->\n text = fixture(\"plain\")\n elements = getElementsForTe... | coffeescript | chosen |
[
{
"from": "system",
"value": "Change tab size for Ruby, Coffee and Sass\n"
},
{
"from": "human",
"value": "'*':\n 'editor':\n 'fontFamily': 'Fira Mono OT'\n 'showIndentGuide': true\n 'tabLength': 4\n 'softWrap': true\n 'invisibles': {}\n 'zoomFontWhenCtrlScrolling': false\n '... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add jQuery notify back in\n"
},
{
"from": "human",
"value": "# This is a manifest file that'll be compiled into application.js, which will include all the files\n# listed below.\n#\n# Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/a... | coffeescript | chosen |
[
{
"from": "system",
"value": "Change method 'resetAvatar' to use RocketFile\n"
},
{
"from": "human",
"value": "Meteor.methods\n\tsetAvatarFromService: (dataURI, service) ->\n\t\tif not Meteor.userId()\n\t\t\tthrow new Meteor.Error 203, '[methods] typingStatus -> Usuário não logado'\n\n\t\tuser =... | coffeescript | chosen |
[
{
"from": "system",
"value": "Destroy confirm dialog when user has confirmed\n"
},
{
"from": "human",
"value": "$ ->\n $.rails.allowAction = (element) ->\n message = element.data('confirm')\n fire = $.rails.fire\n if message and fire(element, 'confirm')\n title = if $(document.bod... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use splat instead of apply\n"
},
{
"from": "human",
"value": "_ = require 'underscore'\nBufferedProcess = require 'buffered-process'\n$ = require 'jquery'\n\nmodule.exports =\nclass LoadPathsTask\n constructor: (@callback) ->\n\n start: ->\n rootPath = project.... | coffeescript | chosen |
[
{
"from": "system",
"value": "Remove location junk from panel creation"
},
{
"from": "human",
"value": "ViewRegistry = require '../src/view-registry'\nPanel = require '../src/panel'\nPanelContainer = require '../src/panel-container'\n\ndescribe \"PanelContainer\", ->\n [container] = []\n\n cla... | coffeescript | chosen |
[
{
"from": "system",
"value": "Check available when creates a new instance\n"
},
{
"from": "human",
"value": "###\nHTML Renderer\n\n@namespace Atoms.Core\n@class Attributes\n\n@author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi\n###\n\"use strict\"\n\nAtoms.Core.Attributes =\n\n ###\n S... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add spec for resolving compatible module paths\n"
},
{
"from": "human",
"value": "path = require 'path'\nModule = require 'module'\nModuleCache = require '../src/module-cache'\n\ndescribe 'ModuleCache', ->\n beforeEach ->\n spyOn(Module, '_findPath').andCallThro... | coffeescript | chosen |
[
{
"from": "system",
"value": "Change site title and add collection function.\n"
},
{
"from": "human",
"value": "# Define the Configuration\ndocpadConfig = {\n\ttemplateData:\n\t\tsite:\n\t\t\ttitle: \"Dorian Patterson\"\n\t\t\n\t\tgetPreparedTitle: -> if @document.title then \"#{@document.title}... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add apm to public API\n"
},
{
"from": "human",
"value": "{Document, Point, Range, Site} = require 'telepath'\n_ = require 'underscore-plus'\n\nmodule.exports =\n _: _\n BufferedNodeProcess: require '../src/buffered-node-process'\n BufferedProcess: require '../src... | coffeescript | chosen |
[
{
"from": "system",
"value": "Make an emojify global function"
},
{
"from": "human",
"value": "$ ->\n $(\".js-emoji\").each ->\n $(@).html(emojione.toImage($(@).text()))\n"
},
{
"from": "gpt",
"value": "window.emojify = ->\n $(\".js-emoji\").each ->\n $(@).html(emojione.toIma... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix issue where item.text is not defined as expected\n"
},
{
"from": "human",
"value": "class CallbackDataSource extends DataSource\n\n constructor: (form_field, source) ->\n super(form_field, source)\n @results = {}\n \n search: (chosen, response_cb) ->\... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix button interaction logic: disable hoverstate on click.\n"
},
{
"from": "human",
"value": "class TourUserView extends ActionButtonView\n template: 'tour/interesting_user'\n className: 'tour-interesting-user'\n templateHelpers: =>\n disabled_label: Factlink.... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix add room route work\n"
},
{
"from": "human",
"value": "define [\n \"backbone\"\n \"sp-utils-middleware\"\n \"common\"\n \"view/page\"\n \"view/modal\"\n],(\n Backbone\n Middleware\n common\n Page\n Modal\n)->\n\n showPage=(View,options={},callback)->\... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix flash message dismiss bug"
},
{
"from": "human",
"value": "$(document).ready ->\n\n $('#query').autocompleter {\n source: '/autocomplete/keywords',\n offset: 'results',\n highlightMatches: true\n }\n\n $('#location').autocompleter {\n source: '/au... | coffeescript | chosen |
[
{
"from": "system",
"value": "Upgrade cherry pick select branch\n"
},
{
"from": "human",
"value": "{$$, BufferedProcess, SelectListView} = require 'atom'\n\ngit = require '../git'\nStatusView = require './status-view'\nCherryPickSelectCommits = require './cherry-pick-select-commits-view'\n\nmodu... | coffeescript | chosen |
[
{
"from": "system",
"value": " Fix TerminalPane until we support for multiple vms\n"
},
{
"from": "human",
"value": "class TerminalPane extends Pane\n\n constructor: (options = {}, data) ->\n\n options.cssClass = \"terminal-pane terminal\"\n options.delay ?= 0\n\n super options, da... | coffeescript | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.