conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Disable inputs in \"My bank account\" configuration form under settings\n" }, { "from": "human", "value": "Neighborly.Users ?= {}\n\nNeighborly.Users.Payments =\n modules: -> []\n init: Backbone.View.extend\n el: '.user-payments-content'\n\n initialize: ->\n...
coffeescript
chosen
[ { "from": "system", "value": "Split webadmin string recognizer into multiple tests.\n" }, { "from": "human", "value": "\ndefine ['lib/amd/Backbone','neo4j/webadmin/modules/databrowser/views/PropertyContainerView'], (Backbone, PropertyContainerView) ->\n\n describe \"PropertyContainerView\", ->\...
coffeescript
chosen
[ { "from": "system", "value": ":penguin: Use ctrl-g for linux. Join selectors with the same keybinding.\n" }, { "from": "human", "value": "'.platform-darwin':\n 'ctrl-g': 'go-to-line:toggle'\n\n'.platform-win32':\n 'ctrl-g': 'go-to-line:toggle'\n\n'.platform-linux':\n 'ctrl-i': 'go-to-line:tog...
coffeescript
chosen
[ { "from": "system", "value": "Add binding for moving left and right with tab\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 k...
coffeescript
chosen
[ { "from": "system", "value": "Use ComponentLoader to get instance\n" }, { "from": "human", "value": "noflo = require 'noflo'\nunless noflo.isBrowser()\n chai = require 'chai' unless chai\n ReadFile = require '../components/ReadFile.coffee'\nelse\n ReadFile = require 'noflo-browserfile/compone...
coffeescript
chosen
[ { "from": "system", "value": "Fix workaround for new Preact 10 release\n\nThere is VNode class anymore.\n" }, { "from": "human", "value": "import * as Preact from 'preact'\n\nVNode = Preact.h('a', null).constructor\n\nexport createElement = (element, props, children...) ->\n if props? && (Array...
coffeescript
chosen
[ { "from": "system", "value": "Add api getter for current game\n" }, { "from": "human", "value": "# modules\nGame = require '../models/game'\n\n\n# CONTROLLER\n# ----------\nmodule.exports = (app) ->\n\n # GET /api/games\n app.get '/api/games/', 'games.list', (req, res) ->\n list = [...
coffeescript
chosen
[ { "from": "system", "value": "FIX: Add correct template URL to PDF viewer\n" }, { "from": "human", "value": "angular.module(\"doubtfire.common.pdf-viewer\", [])\n.directive('pdfViewer', ->\n restrict: 'E'\n templateUrl: 'common/pdf-panel/pdf-panel.tpl.html'\n scope:\n pdfUrl: '='\n contro...
coffeescript
chosen
[ { "from": "system", "value": ":new: Add more specs for indie\n" }, { "from": "human", "value": "describe 'Indie', ->\n Validate = require('../lib/validate')\n Indie = require('../lib/indie')\n indie = null\n\n beforeEach ->\n indie?.dispose()\n indie = new Indie({})\n\n describe 'Vali...
coffeescript
chosen
[ { "from": "system", "value": "Add a guard to pushState for friendly browsers only\n" }, { "from": "human", "value": "# For more information see: http://emberjs.com/guides/routing/\nETahi.Router.map ()->\n @route('flow_manager')\n @resource 'paper', { path: '/papers/:paper_id' }, ->\n @route...
coffeescript
chosen
[ { "from": "system", "value": "Make the each metric animation finish at different times\n\nThe animation of a number finishes 1 second after the one before it.\n" }, { "from": "human", "value": "# Place all the behaviors and hooks related to the matching controller here.\n# All this logic will au...
coffeescript
chosen
[ { "from": "system", "value": "Fix bug to use fs\n" }, { "from": "human", "value": "# Tub class\nYAML = require 'yamljs'\nclass TubConfig\n constructor: (tub, appdir, yml) ->\n # body...\n @dir = appdir\n @tub = tub\n @file = \"#{@dir}/.jakhu/#{@tub}tub_config.yml\"\n @yml = yml\n...
coffeescript
chosen
[ { "from": "system", "value": "Move function body to same line as .on() call\n" }, { "from": "human", "value": "fs = require 'fs'\npath = require 'path'\n\nmodule.exports =\n list: (archivePath, callback) ->\n switch path.extname(archivePath)\n when '.tar' then @listTar(archivePath, call...
coffeescript
chosen
[ { "from": "system", "value": "Fix atom freezes when moving cursor fast with key\n" }, { "from": "human", "value": "RenameModel = require './atom-ternjs-rename'\nRenameView = require './atom-ternjs-rename-view'\n\nmodule.exports =\nclass ViewManager\n\n renamePanel: null\n renameModel: null...
coffeescript
chosen
[ { "from": "system", "value": "Fix bug detaching on pane close\n" }, { "from": "human", "value": "{View} = require 'atom'\nImageEditor = require './image-editor'\n\nmodule.exports =\nclass ImageEditorStatusView extends View\n @content: ->\n @div class: 'status-image inline-block', =>\n @...
coffeescript
chosen
[ { "from": "system", "value": ":memo: Update documentation to current standards\n" }, { "from": "human", "value": "{View} = require 'atom'\n\n# Status bar view for the soft wrap indicator.\nmodule.exports =\nclass SoftWrapIndicatorView extends View\n @content: ->\n @div class: 'inline-block',...
coffeescript
chosen
[ { "from": "system", "value": "Remove default value for tags\n" }, { "from": "human", "value": "path = require 'path'\nrek = require 'rekuire'\n\nmodule.exports.config =\n framework: 'custom'\n frameworkPath: require.resolve 'protractor-cucumber-framework'\n\n # Capabilities to be passed to th...
coffeescript
chosen
[ { "from": "system", "value": "Reset scroll to 0 after changing pages\n" }, { "from": "human", "value": "'use strict'\n\napp = angular.module('holmesApp', [\n 'ngCookies',\n 'ngSanitize',\n 'ngRoute',\n 'angularMoment',\n 'restangular'\n])\n .config ($routeProvider, RestangularProvider, Con...
coffeescript
chosen
[ { "from": "system", "value": "Use console.error instead of /dev/stderr\n" }, { "from": "human", "value": "fs = require 'fs'\nprint = (s) -> fs.write \"/dev/stderr\", s, 'w'\n\npage = new WebPage()\npage.onConsoleMessage = (msg) -> console.error msg\n\ntimeoutId = null\ndeferTimeout = ->\n clear...
coffeescript
chosen
[ { "from": "system", "value": "Add simple test that constructs a chosen entirely in memory\n" }, { "from": "human", "value": "describe \"Basic setup\", ->\n it \"should add chosen to jQuery object\", ->\n expect(jQuery.fn.chosen).toBeDefined()\n\n" }, { "from": "gpt", "value": "de...
coffeescript
chosen
[ { "from": "system", "value": "Swap ctrl-9 and ctrl-shift-9 <_< >_>\n" }, { "from": "human", "value": "'.workspace':\n 'ctrl-shift-9': 'github:toggle-git-panel'\n 'ctrl-9': 'github:toggle-git-panel-focus'\n\n'.github-StagingView':\n 'left': 'github:focus-diff-view'\n\n'.github-CommitView-edito...
coffeescript
chosen
[ { "from": "system", "value": "Fix name of helper in error message\n" }, { "from": "human", "value": "isActive = (type, inverse = false) ->\n name = 'is'\n name = name + 'Not' if inverse\n name = name + _.capitalize type\n\n (view) ->\n unless view instanceof Spacebars.kw\n throw new ...
coffeescript
chosen
[ { "from": "system", "value": "ComputeEventListener: Use start, emit over ComputeController, start polling when\nrequested, stop when not needed\n" }, { "from": "human", "value": "class ComputeEventListener extends KDObject\n\n constructor:(options = {})->\n\n super\n interval : options....
coffeescript
chosen
[ { "from": "system", "value": "Fix buildURL wrt running the app on a prefix\n" }, { "from": "human", "value": "DS.RESTAdapter.configure 'plurals',\n corpus: 'corpora'\n search: 'searches'\n cwb_search: 'cwb_searches'\n metadata_category: 'metadata_categories'\n\nApp.Adapter = DS.RESTA...
coffeescript
chosen
[ { "from": "system", "value": "Add non-code reesources to build\n\nWas missing things like images and stuff.\n" }, { "from": "human", "value": "gulp = require \"gulp\"\ngutil = require \"gulp-util\"\ncoffee = require \"gulp-coffee\"\ndel = require \"del\"\npath = require \"path\"\n{s...
coffeescript
chosen
[ { "from": "system", "value": "Use twilight syntax theme for atom\n" }, { "from": "human", "value": "\"*\":\n \"exception-reporting\":\n userId: \"1e725750-c66d-33e4-9fce-f627ac32bde5\"\n \"release-notes\":\n viewedVersion: \"0.94.0\"\n welcome:\n showOnStartup: false\n metrics:\n ...
coffeescript
chosen
[ { "from": "system", "value": "Add version to client exceptions\n" }, { "from": "human", "value": "angular.module('loomioApp').factory '$exceptionHandler', ($log, AppConfig) ->\n if !AppConfig.errbit.key?\n return ->\n\n client = new airbrakeJs.Client\n projectId: AppConfig.errbit.key\n ...
coffeescript
chosen
[ { "from": "system", "value": "Declare ui.router dependency in astrifex.maker module\n" }, { "from": "human", "value": "'use strict'\n\nmodule.exports = angular.module('astrifex.maker', [])\n .config(($stateProvider) ->\n $stateProvider.state 'maker',\n url: ''\n templateUrl: 'a...
coffeescript
chosen
[ { "from": "system", "value": "Add a test for correct initial value of timezone selector in registration form\n" }, { "from": "human", "value": "casper = require('casper').create()\n\nd = ->\n console.log arguments...\n\ncasper.start 'http://func/ucp.php?mode=register', ->\n @test.assertHttpSta...
coffeescript
chosen
[ { "from": "system", "value": "Send disconnect on gate close\n" }, { "from": "human", "value": "noflo = require 'noflo'\n\nclass Gate extends noflo.Component\n description: 'This component forwards received packets when the gate is open'\n\n constructor: ->\n @open = false\n\n @inPorts =\...
coffeescript
chosen
[ { "from": "system", "value": "Switch Back to Default HAML Compiler\n\nThe output of the other one was getting wonky.\n" }, { "from": "human", "value": "gulp = require 'gulp'\ndel = require 'del'\nhaml = require 'gulp-haml'\nsourcemaps = require 'gulp-sourcemaps'\ncoffee = ...
coffeescript
chosen
[ { "from": "system", "value": "Add compatibility check for html5 routing mode\n" }, { "from": "human", "value": "app = angular.module 'draw', [ 'ngRoute' ]\n\napp.config ($locationProvider) ->\n\n # if window.history && window.history.pushState\n $locationProvider.html5Mode true\n\nmodule.e...
coffeescript
chosen
[ { "from": "system", "value": "Add reload and toggle dev tools key bindings to test window\n\nSigned-off-by: Max Brunsfeld <78036c9b69b887700d5846f26a788d53b201ffbb@github.com>\n" }, { "from": "human", "value": "# Start the crash reporter before anything else.\nrequire('crash-reporter').start(pro...
coffeescript
chosen
[ { "from": "system", "value": "Use KDSplitView in layout builder.\n\nIt was using SplitViewWithOlderSiblings before but it has issues with resizing.\n" }, { "from": "human", "value": "class WorkspaceLayoutBuilder extends KDSplitComboView\n\n init: ->\n @splitViews = {}\n {direction, sizes,...
coffeescript
chosen
[ { "from": "system", "value": "Allow cancelling the filter chain and action.\n" }, { "from": "human", "value": "Batman.LifecycleEvents =\n initialize: ->\n @::fireLifecycleEvent = fire\n\n lifecycleEvent: (eventName, normalizeFunction) ->\n beforeName = \"before#{Batman.helpers.camelize(e...
coffeescript
chosen
[ { "from": "system", "value": "Allow activated callback to use dependency injection\n" }, { "from": "human", "value": "angular.module 'angular.tourist'\n\n .directive 'tourStep', ['$tourist', '$window', ($tourist, $window) ->\n restrict: 'EAC'\n controller: ['$scope', ($scope) ->\n @e...
coffeescript
chosen
[ { "from": "system", "value": "Fix JSX indent newline to allow for hard tabs when autoIndentJSX is off.\n" }, { "from": "human", "value": "module.exports =\nclass InsertNlJsx\n constructor: (@editor) ->\n @adviseBefore(@editor, 'insertText', @insertText)\n\n # patched TextEditor::insertText\...
coffeescript
chosen
[ { "from": "system", "value": "Simplify ChangeListener, can now take a child function" }, { "from": "human", "value": "React = require 'react'\n\n# TODO: Maybe infer the on/off methods from a list if none is specified:\n# ON_OFF_METHODS =\n# addEventListener: 'removeEventListener' # DOM element...
coffeescript
chosen
[ { "from": "system", "value": "Make sure editor is set before trying to get code.\n" }, { "from": "human", "value": "ScriptView = require './script-view'\n\nconfigUri = \"atom://script\"\n\ngrammarMap =\n CoffeeScript:\n interpreter: \"coffee\"\n makeargs: (code) -> ['-e', code]\n Python:...
coffeescript
chosen
[ { "from": "system", "value": "Use promise for notify on completion\n" }, { "from": "human", "value": "\nclass ModelSaver\n\n constructor: ( @element, @options )->\n @mask = new Lanes.Views.TimedMask( @element, @options.message )\n @mask.prefixActions( \"Save\" )\n _.bindA...
coffeescript
chosen
[ { "from": "system", "value": "Destroy all decorations when Highlight Selected has cleared too.\n" }, { "from": "human", "value": "{CompositeDisposable} = require 'event-kit'\n{requirePackages} = require 'atom-utils'\n\nclass MinimapHighlightSelected\n constructor: ->\n @subscriptions = new C...
coffeescript
chosen
[ { "from": "system", "value": "Add stub config for grunt-release\n" }, { "from": "human", "value": "module.exports = (grunt)->\n require('grunt-recurse')(grunt, __dirname)\n\n grunt.expandFileArg = (\n prefix = '.',\n base = '**',\n postfix = '*test.coffee'\n )->\n ...
coffeescript
chosen
[ { "from": "system", "value": "Fix LESS file finding on Windows\n" }, { "from": "human", "value": "remote = require 'remote'\nwindow.$ = window.jQuery = require \"../assets/js/jquery-2.1.1.min.js\"\nrequire \"../assets/js/jquery.hotkeys.js\"\n\n#LESS\nless = remote.require 'less'\nparser = new(le...
coffeescript
chosen
[ { "from": "system", "value": "Add Ruby on Rails support\n\nFixes #1\n" }, { "from": "human", "value": "module.exports =\n selector: ['.source.ruby']\n id: 'aligner-ruby' # package name\n config:\n '=>-alignment':\n title: 'Padding for =>'\n description: 'Pad left or right of the ...
coffeescript
chosen
[ { "from": "system", "value": "Remove outdated --harmony_collections parameter from build script\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 ...
coffeescript
chosen
[ { "from": "system", "value": "Fix javascript error on tooltip hide (can't destroy elem that doesn't exist anymore)\n" }, { "from": "human", "value": "#= require clipboard.min\n\n$.fn.initSnippetCopyToClipboard = () ->\n this.each () ->\n $element = $(this)\n $element.prepend('<button clas...
coffeescript
chosen
[ { "from": "system", "value": "Create parent directories to symlink\n" }, { "from": "human", "value": "path = require 'path'\nfs = require './fs'\nCSON = require 'season'\nconfig = require './config'\n\nmodule.exports =\nclass Linker\n run: (options) ->\n linkPath = path.resolve(process.cwd()...
coffeescript
chosen
[ { "from": "system", "value": "Update plugin registration function name.\n" }, { "from": "human", "value": "\n# dom.d.ts: https://github.com/Microsoft/TypeScript/blob/master/src/lib/dom.generated.d.ts\n\n# This fix is needed because these definitions are absent from typescript's official lib.d.ts...
coffeescript
chosen
[ { "from": "system", "value": "Add command line flags to output available packages as json\n" }, { "from": "human", "value": "request = require 'request'\nnpmconf = require 'npmconf'\nconfig = require './config'\ntree = require './tree'\nsemver = require 'semver'\n_ = require 'underscore'\n\nmodu...
coffeescript
chosen
[ { "from": "system", "value": "Watch only bower.json for vendor\n" }, { "from": "human", "value": "#--------------------------------------------------------\n# Requirements\n#--------------------------------------------------------\n\ngulp = require 'gulp'\nplugins = require('gulp-load-plu...
coffeescript
chosen
[ { "from": "system", "value": "Make mongo-migrate config script self executable\n\nSigned-off-by: Sonmez Kartal <d2d15c3d37396a5f2a09f8b42cf5f27d43a3fbde@koding.com>\n" }, { "from": "human", "value": "fs = require 'fs'\nmodule.exports.create = (KONFIG)->\n\n connectionString = \"mongodb://#{KONF...
coffeescript
chosen
[ { "from": "system", "value": "Fix bug with undefined title_id in redirect following event creation\n" }, { "from": "human", "value": "window.events_at_penn ?= {}\n\nTemplate.new_event.helpers\n 'empty_object': {}\n\nTemplate.new_event.events\n 'submit .create-event': (e) ->\n e.preventDefau...
coffeescript
chosen
[ { "from": "system", "value": "Add a bunch of text builders.\n" }, { "from": "human", "value": "{BaseTaskAction} = require \"#{__dirname}/../../base_task_action\"\n{TempFileHolder} = require \"#{__dirname}/../../helpers/temp_file_holder\"\n{GoogleTranslatorTtsStrategy} = require \"#{__dirname}/.....
coffeescript
chosen
[ { "from": "system", "value": "Add trigger and accept string for url\n" }, { "from": "human", "value": "noflo = require 'noflo'\ncoap = require 'coap'\n\n# @runtime noflo-nodejs\n\nexports.getComponent = ->\n c = new noflo.Component\n c.icon = 'cog'\n c.description = 'Send request'\n\n # Add ...
coffeescript
chosen
[ { "from": "system", "value": "Rename require from atom-api to atom\n" }, { "from": "human", "value": "{RootView} = require 'atom-api'\nshell = require 'shell'\n\ndescribe \"link package\", ->\n [editor] = []\n\n beforeEach ->\n atom.activatePackage('javascript-tmbundle', sync: true)\n at...
coffeescript
chosen
[ { "from": "system", "value": "Move Engine-y Bits to Their Own Module\n" }, { "from": "human", "value": "qbnApp = angular.module 'qbnApp', []\n\n# The immutable objects that make up the game itself serve as prototypes for the objects that make\n# up the mutable game state. This function takes a g...
coffeescript
chosen
[ { "from": "system", "value": "Use Finder app to create a filetree.\n" }, { "from": "human", "value": "class FinderPane extends Pane\n\n constructor: (options = {}, data) ->\n\n super options, data\n\n vmController = KD.getSingleton 'vmController'\n vmController.fetchDefaultVmName (vmNa...
coffeescript
chosen
[ { "from": "system", "value": "Update for express 3.4.4, use the json and urlencoded middleware directly\n" }, { "from": "human", "value": "express = require 'express'\nmongoose = require 'mongoose'\next_type = require 'connect-ext-type'\n{ createServer } = require 'http'\n{ join } = require 'pat...
coffeescript
chosen
[ { "from": "system", "value": "Remove restriction for data picker start date\n" }, { "from": "human", "value": "jQuery ->\n $(\"input.datepicker\").datepicker\n format: \"yyyy-mm-dd\"\n startDate: new Date()\n autoclose: true\n" }, { "from": "gpt", "value": "jQuery ->\n $(\...
coffeescript
chosen
[ { "from": "system", "value": "Update selected tab when set from props\n" }, { "from": "human", "value": "React = require 'react'\nclassnames = require 'classnames'\n\n\n# Renders ONLY the list of tabs (not tab body), with @props.chilren inline with the tabs\n# Usefull for rendering controls besi...
coffeescript
chosen
[ { "from": "system", "value": "Make sure objectMode is enabled.\n" }, { "from": "human", "value": "###\n irc-message\n Copyright (c) 2013 Fionn Kelleher. All rights reserved.\n Licensed under the BSD 2-Clause License (FreeBSD) - see LICENSE.md.\n###\n\nTransform = require(\"stream\").Transform...
coffeescript
chosen
[ { "from": "system", "value": "Determine license name, version and url on load\n" }, { "from": "human", "value": "define (require) ->\n $ = require('jquery')\n toc = require('cs!collections/toc')\n Node = require('cs!models/content/node')\n require('backbone-associations')\n\n return class P...
coffeescript
chosen
[ { "from": "system", "value": "Remove overridden console, FF doesn't like it (also we are broken in FF)\n" }, { "from": "human", "value": "$(document).ready ->\n $('.literally').literallycanvas()\n\n $(document).bind 'touchmove', (e) ->\n if e.target == document.documentElement\n e.pr...
coffeescript
chosen
[ { "from": "system", "value": "Fix mock url for content\n" }, { "from": "human", "value": "define [\n 'jquery'\n 'mockjax'\n], ($) ->\n\n $.mockjax\n url: '/api/me'\n proxy: 'data/me.json'\n\n $.mockjax\n url: '/api/content'\n proxy: 'data/content.json'\n\n $.mockjax (settings) -...
coffeescript
chosen
[ { "from": "system", "value": "Revert \"temporary fix for dependecies\"\n\nThis reverts commit e9858c4385a011e183e2d1e64cd72e7729618866.\n" }, { "from": "human", "value": "`import DS from 'ember-data'`\n\nCommit = DS.Model.extend\n remoteId: DS.attr('string')\n message: DS.attr('string')\n sta...
coffeescript
chosen
[ { "from": "system", "value": "Define shared machine user setter function\n" }, { "from": "human", "value": "bongo = require 'bongo'\n\n\nmodule.exports = class SharedMachine extends bongo.Base\n\n @share()\n" }, { "from": "gpt", "value": "bongo = require 'bongo'\n\nJMachine = requir...
coffeescript
chosen
[ { "from": "system", "value": "Add AdBreak module and URL handler\n" }, { "from": "human", "value": "class VMAPParser\n\nmodule.exports = VMAPParser" }, { "from": "gpt", "value": "URLHandler = require './urlhandler.coffee'\nADBreak = require './adbreak.coffee'\nADData = require './add...
coffeescript
chosen
[ { "from": "system", "value": "Add warning logging when unusual things happen\n" }, { "from": "human", "value": "# Object which holds the methods that can be called from the factlink core iframe\n\nmodalOpen = false\n\nFactlinkJailRoot.annotatedSiteReceiver =\n modalFrameReady: (featureToggles) ...
coffeescript
chosen
[ { "from": "system", "value": "Disable rendering when element is added or removed from canvas\n" }, { "from": "human", "value": "requirejs.config({\n paths: {\n fabric: [\n 'lib/fabric']\n }\n})\n\ndefine ['game', 'synchronizedtime', 'position', 'lib/fabric'], (Game, SynchronizedTime, P...
coffeescript
chosen
[ { "from": "system", "value": "Add CSS optimization to Grunt build (dist only)\n" }, { "from": "human", "value": "module.exports = (grunt, options) ->\n return {\n client:\n options:\n paths: ['styles']\n files:\n '<%= build %>/css/servicemap.css': 'styles/servicemap.l...
coffeescript
chosen
[ { "from": "system", "value": "Use name ivar instead of metadata.name\n" }, { "from": "human", "value": "Q = require 'q'\nAtomPackage = require './atom-package'\n\nmodule.exports =\nclass ThemePackage extends AtomPackage\n getType: -> 'theme'\n\n getStylesheetType: -> 'theme'\n\n enable: ->\n ...
coffeescript
chosen
[ { "from": "system", "value": "Add ~/.atom/packages to the resource load path.\n" }, { "from": "human", "value": "path = require 'path'\nprotocol = require 'protocol'\n\n# Private: Handles requests with 'atom' protocol.\n#\n# It's created by {AtomApplication} upon instantiation, and is used to cr...
coffeescript
chosen
[ { "from": "system", "value": "Send text from each scraped element separately.\n" }, { "from": "human", "value": "noflo = require \"noflo\"\njsdom = require \"jsdom\"\n\nclass ScrapeHtml extends noflo.Component\n constructor: ->\n @html = \"\"\n @textSelector = \"\"\n @cra...
coffeescript
chosen
[ { "from": "system", "value": "Correct viewport attribute casing (runtime error)\n" }, { "from": "human", "value": "DOM = require '../reactGUI/ReactDOMFactories-shim'\ncreateReactClass = require '../reactGUI/createReactClass-shim'\ncreateSetStateOnEventMixin = require '../reactGUI/createSetStateO...
coffeescript
chosen
[ { "from": "system", "value": "Change to more appropriate names\n" }, { "from": "human", "value": "fs = require 'fs'\npath = require 'path'\n\nclass Cli\n constructor: ->\n @error = null\n\n buildOptions: (name) ->\n options = {}\n options.name = name\n options\n\n getValidators: -...
coffeescript
chosen
[ { "from": "system", "value": "Use __dirname for script directory\n" }, { "from": "human", "value": "express = require 'express'\nsession = require 'express-session'\nbody_parser = require 'body-parser'\n\napp = express()\n\napp.use express.static 'app/public'\napp.use session secret: 'se...
coffeescript
chosen
[ { "from": "system", "value": "Add keybindings for \"zoom to fit\"\n" }, { "from": "human", "value": "'.platform-darwin .image-view':\n 'cmd-+': 'image-view:zoom-in'\n 'cmd-=': 'image-view:zoom-in'\n 'cmd--': 'image-view:zoom-out'\n 'cmd-_': 'image-view:zoom-out'\n 'cmd-0': 'image-view:reset...
coffeescript
chosen
[ { "from": "system", "value": "Rename sub task : typescript-build -> ts-build\n" }, { "from": "human", "value": "gulp = require 'gulp'\ntsc = require 'gulp-typescript'\n\n# Main task\ngulp.task 'default', ['build']\n\ngulp.task 'build', ['copy', 'typescript-build']\n\ngulp.task 'copy', ()->\n ...
coffeescript
chosen
[ { "from": "system", "value": "Fix mysterious teaspoon bug through try/catch.\n" }, { "from": "human", "value": "window.Tahi ||= {}\nTahi.utils =\n toCamel: (string) ->\n string.replace /(\\-[a-z])/g, ($1) ->\n $1.toUpperCase().replace \"-\", \"\"\n\n windowHistory: ->\n window.histo...
coffeescript
chosen
[ { "from": "system", "value": "Fix broken results of users in search results\n" }, { "from": "human", "value": "window.ReactUserSearch = React.createBackboneClass\n displayName: 'ReactUserSearch'\n\n render: ->\n _div [],\n _a [rel:\"backbone\", href:@model().link()],\n _img [\"f...
coffeescript
chosen
[ { "from": "system", "value": "Set telementry consent to \"no\" for atom\n" }, { "from": "human", "value": "\"*\":\n core:\n themes: [\n \"one-light-ui\"\n \"solarized-dark-syntax\"\n ]\n editor:\n fontFamily: \"mononoki\"\n fontSize: 18\n invisibles: {}\n showIndent...
coffeescript
chosen
[ { "from": "system", "value": "Rework Requirements to Use Resolve\n" }, { "from": "human", "value": "class Choice\n constructor: (@id, @title, @text, @visibleReqs, @activeReqs, @next) ->\n Object.freeze @\n\n reqsAreMet = (reqs, qualities) ->\n for qualityName, predicate of reqs\n qu...
coffeescript
chosen
[ { "from": "system", "value": "Use ScopeSelector class from first-mate\n\nBegin migrating TextMate helpers out of src/ and into the first-mate\npackage.\n" }, { "from": "human", "value": "module.exports =\n activate: ->\n rootView.command 'link:open', ->\n editSession = rootView.getActiv...
coffeescript
chosen
[ { "from": "system", "value": "Make the iframe large enough to show everything without scrolling\n" }, { "from": "human", "value": "###* @jsx React.DOM ###\n\nwindow.WFplayer = React.createClass\n componentDidMount: ->\n $node = $(@getDOMNode())\n mediaObj = @props.mediaObj\n\n $(docume...
coffeescript
chosen
[ { "from": "system", "value": "Remove trailing whitespace from tracks coffee file\n" }, { "from": "human", "value": "App.Tracks =\n \n tracking_enabled: -> \n _paq?\n\n set_custom_var: (id, name, value, scope) -> \n _paq.push(['setCustomVariable', id, name, value, scope])\n _paq.push(...
coffeescript
chosen
[ { "from": "system", "value": "Use \"native-dot\" marker type in Atom Pigments\n" }, { "from": "human", "value": "\"*\":\n core:\n disabledPackages: [\n \"background-tips\"\n \"exception-reporting\"\n \"metrics\"\n \"styleguide\"\n \"timecop\"\n \"welcome\"\n ...
coffeescript
chosen
[ { "from": "system", "value": "Remove application legacy imports from vendor\n" }, { "from": "human", "value": "#= require ./prototype/prototype\n#= require ./prototype/scriptaculous\n#= require ./prototype/effects\n#= require_tree ./prototype\n#= require ./cropper\n#= require_tree ./moe-legacy\n...
coffeescript
chosen
[ { "from": "system", "value": "Use PropType.node instead of PropType.renderable for 0.13 compatibility\n" }, { "from": "human", "value": "###* @jsx React.DOM ###\n\nReact = require('react/addons')\n\nMatch = React.createClass(\n propTypes:\n item: React.PropTypes.renderable.isRequired\n ac...
coffeescript
chosen
[ { "from": "system", "value": "Add basic canvas render method\n" }, { "from": "human", "value": "_ = require \"underscore\"\n\nAnnotation = require \"./annotation\"\nRenderer = require \"../renderers/renderer\"\np = require \"../../core/properties\"\n\nclass LabelView extends Renderer.View\n ini...
coffeescript
chosen
[ { "from": "system", "value": "Fix duration being incremented after a build/job is finished\n" }, { "from": "human", "value": "Travis.DurationCalculations = Ember.Mixin.create\n duration: (->\n if duration = @get('_duration')\n duration\n else\n Travis.Helpers.durationFrom(@get('...
coffeescript
chosen
[ { "from": "system", "value": "Use more relaxed closure defaults\n" }, { "from": "human", "value": "_ = require 'underscore'\n\nmodule.exports = class ClosureCompiler extends (require './engine')\n defaults:\n compilation_level: 'advanced_optimizations'\n language: 'ecmascript5'\n\n compr...
coffeescript
chosen
[ { "from": "system", "value": "Fix bug with ajax contact form not showing error validation after first submit\n" }, { "from": "human", "value": "$.fn.formBackup = ->\n return false if !localStorage\n\n forms = this\n datas = {}\n ls = false\n datas.href = window.location.href\n\n # Get loca...
coffeescript
chosen
[ { "from": "system", "value": "Clear test datbase before and after tests are run.\n" }, { "from": "human", "value": "require('source-map-support').install handleUncaughtExceptions: false\n" }, { "from": "gpt", "value": "require('source-map-support').install handleUncaughtExceptions: f...
coffeescript
chosen
[ { "from": "system", "value": "Add all tools in toolbar for froala editor\n" }, { "from": "human", "value": "#= require froala_editor.min.js\n#= require plugins/lists.min.js\n#= require plugins/char_counter.min.js\n#= require langs/fr.js\n\n$ ->\n if $('.froala').length\n froala_init()\n\n $...
coffeescript
chosen
[ { "from": "system", "value": "Refactor MoenyCounter. Shorten variable names and remove 'jQuery'.\n" }, { "from": "human", "value": "# 残高編集時に金額を計算する\r\nclass MoneyCounter\r\n money_counting_fields: ['man', 'gosen', 'nisen', 'sen', 'gohyaku', 'hyaku', 'gojyu', 'jyu', 'go', 'ichi']\r\n money_coun...
coffeescript
chosen
[ { "from": "system", "value": "Configure basic Grunt test task.\n" }, { "from": "human", "value": "module.exports = (grunt) ->\n\n path = require 'path'\n\n require('time-grunt')(grunt)\n\n require('jit-grunt')(grunt, {\n express: 'grunt-express-server'\n })\n\n require('load-grunt-task...
coffeescript
chosen
[ { "from": "system", "value": "Include original LICENSE.md in generated file\n" }, { "from": "human", "value": "fs = require 'fs'\npath = require 'path'\n\nmodule.exports = (grunt) ->\n grunt.registerTask 'generate-license', 'Generate the license, including the licenses of all dependencies', (mo...
coffeescript
chosen
[ { "from": "system", "value": "Remove obsolete argument in stroke function\n" }, { "from": "human", "value": "session = require '../session'\nutils = require '../utils'\n\nbackground = (color) ->\n session.settings.bg = color\n\nstrokeColor = (color) ->\n session.settings.stroke.color = col...
coffeescript
chosen
[ { "from": "system", "value": "Use skinny arrow for toggle\n" }, { "from": "human", "value": "eslint = require('eslint').linter\n{$, $$, SelectListView} = require 'atom'\n\nmodule.exports =\nclass ESLintView extends SelectListView\n\n initialize: (@editorView, @config) ->\n super\n @addCla...
coffeescript
chosen
[ { "from": "system", "value": "Change URL hash when a tab is clicked" }, { "from": "human", "value": "class Fustrate.Components.Tabs extends Fustrate.Components.Base\n constructor: (@tabs) ->\n @tabs.on 'click', 'li > a', (e) =>\n @activateTab $(e.currentTarget)\n\n false\n\n if ...
coffeescript
chosen