conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Add methods to serialize and parameterize query strings\n" }, { "from": "human", "value": "define (require) ->\n _ = require('underscore')\n settings = require('settings')\n\n shortcodes = settings.shortcodes\n inverseShortcodes = _.invert(shortcodes)\n\n retur...
coffeescript
chosen
[ { "from": "system", "value": "Make event positions relative to node offset\n" }, { "from": "human", "value": "utils = window.Curve\n\nmodule.exports =\nclass PointerTool\n constructor: (svg, {@selectionModel, @selectionView}={}) ->\n @_evrect = svg.node.createSVGRect();\n @_evrect.width =...
coffeescript
chosen
[ { "from": "system", "value": "Add compile-css to grunt compile task.\n" }, { "from": "human", "value": "module.exports = (grunt) ->\n \n # Project configuration.\n grunt.initConfig\n\n shell:\n 'compile-client-side':\n options: stdout: true\n command: 'coffee -o ./ -c sr...
coffeescript
chosen
[ { "from": "system", "value": "Clear error when buffer changes\n" }, { "from": "human", "value": "{$, EditorView, View} = require 'atom'\npath = require 'path'\n\nmodule.exports =\nclass Dialog extends View\n @content: ({prompt} = {}) ->\n @div class: 'tree-view-dialog overlay from-top', =>\n...
coffeescript
chosen
[ { "from": "system", "value": "Fix x-origin exception when loading from sage.concord.org" }, { "from": "human", "value": "PARAM_TOKEN = /[?|&]/g\nVALUE_TOKEN = \"=\"\n\nclass HashParameters\n constructor: ->\n @parameters = {}\n\n decode: (string) ->\n decodeURIComponent(string)\n\n enco...
coffeescript
chosen
[ { "from": "system", "value": "Use title case in menu\n" }, { "from": "human", "value": "'context-menu':\n '.overlayer':\n 'Correct spelling': 'spell-check:correct-misspelling'\n" }, { "from": "gpt", "value": "'context-menu':\n '.overlayer':\n 'Correct Spelling': 'spell-check:...
coffeescript
chosen
[ { "from": "system", "value": "Rename function to match standard\n" }, { "from": "human", "value": "# Your init script\n#\n# Atom will evaluate this file each time a new window is opened. It is run\n# after packages are loaded/activated and after the previous editor state\n# has been restored.\n#...
coffeescript
chosen
[ { "from": "system", "value": "Add binding for enter key in table view editor\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": "Add configuration option to change which app to load\n" }, { "from": "human", "value": "exec = require(\"child_process\").exec\npath = require('path')\n\nmodule.exports =\n activate: ->\n atom.workspaceView.command \"open-terminal-here:open\", (event) =>\n ...
coffeescript
chosen
[ { "from": "system", "value": "Allow for feedback open to be triggered through the mediator\n" }, { "from": "human", "value": "_ = require 'underscore'\nBackbone = require 'backbone'\nFeedbackView = require '../../feedback/view.coffee'\n\nmodule.exports = class FooterView extend...
coffeescript
chosen
[ { "from": "system", "value": "Make tz selection test non-system-specific\n" }, { "from": "human", "value": "# depends:\n# python.install\n# prosilver?\n#\n# after:\n# casper.registration_agreement\n#\n# phpbb_version:\n# >=3.1.0\n\nd = ->\n console.log arguments...\n\nbase = global.wolis.config...
coffeescript
chosen
[ { "from": "system", "value": "Check if the loading indicator is visible on didInsertElement.\n" }, { "from": "human", "value": "Hummingbird.LoadMoreComponent = Ember.Component.extend\n checkInView: ->\n elementBottom = @$().offset().top + @$().height()\n windowBottom = window.scrollY + $(...
coffeescript
chosen
[ { "from": "system", "value": "Add separate function for building each suggestion\n" }, { "from": "human", "value": "fs = require 'fs'\npath = require 'path'\n\nmodule.exports =\n selector: '.source.lua'\n disableForSelector: '.source.lua .comment, .source.lua .string'\n\n inclusionPrior...
coffeescript
chosen
[ { "from": "system", "value": "Fix a typo in a comment\n" }, { "from": "human", "value": "define ['mediator', 'lib/route'], (mediator, Route) ->\n 'use strict'\n\n class Router # This class does not inherit from Backbone’s router\n\n constructor: ->\n # Create a Backbone.History instanc...
coffeescript
chosen
[ { "from": "system", "value": "Update the breadcrumb directive to use the new router and use the actual design.\n" }, { "from": "human", "value": "angular.module('fileManager')\n.directive('breadcrumb', ($location)->\n return {\n restrict: 'E'\n scope: true\n template: '<ol class=\"brea...
coffeescript
chosen
[ { "from": "system", "value": "Remove the closure function from generated JS files. Add support for generating source maps\n" }, { "from": "human", "value": "\nmodule.exports = (grunt) ->\n\n grunt.initConfig\n \n pkg: grunt.file.readJSON 'package.json'\n\n clean:\n main: 'target/src...
coffeescript
chosen
[ { "from": "system", "value": "Revert \"Frontend now explicitly connects to port 443 - localhost now works\"\n\nThis reverts commit 8ea34a06f2c3942354f66499a7e73d2f578e6b22.\n" }, { "from": "human", "value": "Player = require './Player'\nTextInput = require './TextInput'\n\nclass Game\n const...
coffeescript
chosen
[ { "from": "system", "value": "Remove hubot boom throw documentation line, since it's not a special case\n" }, { "from": "human", "value": "# Description\n# Trys to crash Hubot on purpose\n#\n# Commands:\n# hubot boom - try to crash Hubot\n# hubot boom emit with msg - try to crash Hubot by ...
coffeescript
chosen
[ { "from": "system", "value": "Send all bug info in one irc line\n" }, { "from": "human", "value": "# Description:\n# In which Hubot gives you bugzilla information\n#\n# Dependencies:\n# None\n#\n# Configuration:\n# None\n#\n# Commands:\n# hubot bug <number> - Shows bug summary\n#\n# Auth...
coffeescript
chosen
[ { "from": "system", "value": "Allow you to say \"hubot bug xxx\" anywhere\n" }, { "from": "human", "value": "# Description:\n# In which Hubot gives you bugzilla information\n#\n# Dependencies:\n# None\n#\n# Configuration:\n# None\n#\n# Commands:\n# hubot bug <number> - Shows bug summary\...
coffeescript
chosen
[ { "from": "system", "value": "Add auto gravity for activerecord tooltip\n" }, { "from": "human", "value": "$(document).on 'peek:render', (event, request_id, data) ->\n object_count = data.context['active-record'].object_count\n object_types = data.context['active-record'].object_types\n\n tit...
coffeescript
chosen
[ { "from": "system", "value": "Handle underscores in capitalize function\n" }, { "from": "human", "value": "window.rglossaUtils =\n capitalize: (str) ->\n if str.length then str[0].toUpperCase() + str.slice(1) else ''\n\n\n # From http://davidwalsh.name/javascript-debounce-function\n\n # Re...
coffeescript
chosen
[ { "from": "system", "value": "app: Use fetchAccount util for getting message owner\n" }, { "from": "human", "value": "remote = require('../remote').getInstance()\n\nmodule.exports = (message, callback) ->\n {constructorName, _id} = message.account\n remote.cacheable constructorName, _id, (err,...
coffeescript
chosen
[ { "from": "system", "value": "Use new Express 4 format for bodyParser\n" }, { "from": "human", "value": "express = require 'express'\ncookieParser = require 'cookie-parser'\nbodyParser = require 'body-parser'\nsession = require 'cookie-session'\ncolors = require 'colors'\n\npassport = require '....
coffeescript
chosen
[ { "from": "system", "value": "Update the shell command to make travis happy.\n" }, { "from": "human", "value": "module.exports = (grunt) ->\n require('load-grunt-tasks')(grunt)\n\n grunt.initConfig\n pkg: grunt.file.readJSON 'package.json'\n shell:\n clean:\n command: '[ -e g...
coffeescript
chosen
[ { "from": "system", "value": "Move beautify config above compress config\n" }, { "from": "human", "value": "module.exports = (grunt) ->\n grunt.initConfig\n pkg: grunt.file.readJSON('package.json')\n clean:\n lib: './lib/'\n coffee:\n src:\n options:\n bare: t...
coffeescript
chosen
[ { "from": "system", "value": "Check for linkd to exist\n" }, { "from": "human", "value": "###\nWorking with Junction Point(s)\n###\n\nmodule.exports = exports = (id = 'none')->\n run 0, true, (bin = file install2, 'linkd.exe'), link, '/D'\n if false == id\n return\n bat id\n run 0, true, ...
coffeescript
chosen
[ { "from": "system", "value": "Implement ConceptInfo.ui property for element access post-render\n" }, { "from": "human", "value": "define [\n '../core'\n 'tpl!templates/concept/info.html'\n], (c, templates...) ->\n\n templates = c._.object ['info'], templates\n\n\n class ConceptInfo e...
coffeescript
chosen
[ { "from": "system", "value": "Use alt rather than ctrl\n\nctrl+shift+up and down clashes with multiple cursor creation\n" }, { "from": "human", "value": "# DOCUMENT: link to keymap documentation\n'.editor':\n 'ctrl-up': 'line-jumper:move-up'\n 'ctrl-down': 'line-jumper:move-down'\n\n 'ctrl-sh...
coffeescript
chosen
[ { "from": "system", "value": "Exclude ignored files from search etc.\n" }, { "from": "human", "value": "\"*\":\n Zen:\n width: 100\n \"atom-ternjs\":\n useSnippets: false\n documentation: false\n urls: false\n lint: false\n guess: false\n inlineFnCompletion: false\n \"aut...
coffeescript
chosen
[ { "from": "system", "value": "Handle keyboard navigation with hidden selections better\n" }, { "from": "human", "value": "$ ->\n $(document).on 'keydown', (event) ->\n active = $(document.activeElement)\n if active.is('.group-dropdown-search, .selector-link')\n switch event.which\n ...
coffeescript
chosen
[ { "from": "system", "value": "Add test to ensure cert bundle only gets loaded once\n" }, { "from": "human", "value": "# Copyright 2012-2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\"). You\n# may not use this fil...
coffeescript
chosen
[ { "from": "system", "value": "Add some options to advanced new file\n" }, { "from": "human", "value": "\"*\":\n \"exception-reporting\":\n userId: \"53c5f869-8a29-d7f5-ef48-bc598612bb8d\"\n welcome:\n showOnStartup: false\n editor:\n invisibles: {}\n tabs:\n usePreviewTabs: true\...
coffeescript
chosen
[ { "from": "system", "value": "Remove old unused function (refactor only)\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: ...
coffeescript
chosen
[ { "from": "system", "value": "Add Atom package custom settings\n" }, { "from": "human", "value": "\"*\":\n core:\n disabledPackages: [\n \"background-tips\"\n \"exception-reporting\"\n \"metrics\"\n \"styleguide\"\n \"timecop\"\n \"welcome\"\n ]\n editor:\n ...
coffeescript
chosen
[ { "from": "system", "value": "Disable Atom linter by default\n" }, { "from": "human", "value": "\"*\":\n \"atom-ctags\": {}\n \"autocomplete-plus\":\n enableAutoActivation: false\n core:\n audioBeep: false\n disabledPackages: [\n \"exception-reporting\"\n ]\n ignoredNames:...
coffeescript
chosen
[ { "from": "system", "value": "Use ? to test for existence\n" }, { "from": "human", "value": "React = require 'react'\n\n{ReferenceBookExerciseActions, ReferenceBookExerciseStore} = require '../../flux/reference-book-exercise'\n\nQuestion = require '../question'\nLoadableItem = require '../loadab...
coffeescript
chosen
[ { "from": "system", "value": "Move to regular class based views\n" }, { "from": "human", "value": "`import Ember from 'ember'`\n`import ENV from 'irene/config/environment';`\n\n\nupdateState = ->\n return true\n\nxvpInit = ->\n return true\n\nConnectorRFB = Ember.Object.extend\n\n rfb: null\n...
coffeescript
chosen
[ { "from": "system", "value": "Select a tool when we check a box.\n" }, { "from": "human", "value": "RadioTask = require './radio'\n\nclass DrawingTask extends RadioTask\n @type: 'drawing'\n \n value = []\n\n tools:\n point: require '../drawing-tools/point'\n ellipse: require 'marking-s...
coffeescript
chosen
[ { "from": "system", "value": "Replace single space with double for readability.\n\nReplacing all single spaces with double spaces. The words were too close together and hard to read." }, { "from": "human", "value": "# Description:\n# ASCII art\n#\n# Dependencies:\n# None\n#\n# Configuration...
coffeescript
chosen
[ { "from": "system", "value": "Use Map instead of object\n" }, { "from": "human", "value": "'use strict'\n\n\ndirTable =\n\t'^': { x: 0, y: -1 }\n\t'<': { x: -1, y: 0 }\n\t'v': { x: 0, y: 1 }\n\t'>': { x: 1, y: 0 }\n\n\nPointer = (@x, @y, dir, @space) ->\n\t@_updateDir dir\n\treturn\n\n\nPo...
coffeescript
chosen
[ { "from": "system", "value": "Remove editor class, fixes autosave error\n" }, { "from": "human", "value": "{$$, ScrollView, View} = require 'atom'\n\nmodule.exports =\n\nclass GitLogView extends ScrollView\n @content: ->\n @div class: 'git-log editor editor-colors native-key-bindings'...
coffeescript
chosen
[ { "from": "system", "value": "Fix spec: Handle multiple scopes." }, { "from": "human", "value": "slick = require 'atom-slick'\n\nEscapeCharacterRegex = /[-!\"#$%&'*+,/:;=?@|^~()<>{}[\\]]/g\n\nparseScopeChain = (scopeChain) ->\n scopeChain = scopeChain.replace EscapeCharacterRegex, (match) -> \"...
coffeescript
chosen
[ { "from": "system", "value": "Allow silenceOutput to spy without silencing output\n\nSigned-off-by: Michelle Tilley <19f7a7eb6786def4c39d6d86c40af5dbc6589663@github.com>\n" }, { "from": "human", "value": "auth = require '../lib/auth'\n\nglobal.silenceOutput = ->\n spyOn(console, 'log')\n spyOn...
coffeescript
chosen
[ { "from": "system", "value": "Add a Single Blank Line\n" }, { "from": "human", "value": "class Quality\n constructor: (@id, @name, @description, @defaultValue,\n @defaultProgress, @maxProgress, @progressEscalation,\n @visible) ->\n Object.freeze @\n\n increase:...
coffeescript
chosen
[ { "from": "system", "value": "Fix survey deletion - add reference to Survey class\n" }, { "from": "human", "value": "Template.delete_survey_modal.onCreated ->\n @deleting = new ReactiveVar false\n\nTemplate.delete_survey_modal.onRendered ->\n $('#delete-survey-modal').on 'show.bs.modal', (even...
coffeescript
chosen
[ { "from": "system", "value": "Update the SVG image on frame change\n" }, { "from": "human", "value": "React = require 'react'\n\n# React.DOM doesn't include an SVG <image> tag\n# (because of its namespaced `xlink:href` attribute, I think),\n# so this fakes one by wrapping it in a <g>.\n\nmodule....
coffeescript
chosen
[ { "from": "system", "value": "Use body parser middleware to make content accessible in POST requests\n" }, { "from": "human", "value": "express = require 'express'\nstylus = require 'stylus'\nassets = require 'connect-assets'\n\napp = express.createServer()\napp.use assets()\napp.set 'view engin...
coffeescript
chosen
[ { "from": "system", "value": "Add regression test for Navigator push and replace with nested dispatch\n" }, { "from": "human", "value": "QUnit.module 'Batman.Navigator'\n setup: ->\n\n\ntest \"normalizePath(segments...) joins the segments with slashes, prepends a slash if necessary, and removes...
coffeescript
chosen
[ { "from": "system", "value": "Use `isBrowser` check for tests\n" }, { "from": "human", "value": "noflo = require 'noflo'\nif typeof process is 'object' and process.title is 'node'\n chai = require 'chai' unless chai\n Parse = require '../components/Parse.coffee'\nelse\n Parse = require 'noflo...
coffeescript
chosen
[ { "from": "system", "value": "Add a new error for the outcomes service\n" }, { "from": "human", "value": "class ConsumerError extends Error\n constructor: ->\n super\nclass StoreError extends Error\n constructor: ->\n super\nclass ParameterError extends Error\n constructor: ->\n supe...
coffeescript
chosen
[ { "from": "system", "value": "Fix issue where loading screen would stay stuck." }, { "from": "human", "value": "#= require libraries\n#= require_tree .\n\n$ ->\n $('.alert').delay(4000).fadeOut('slow')\n $('.chosen').chosen()\n $('.timeago').timeago()\n\n# Have a loading screen when turbolink...
coffeescript
chosen
[ { "from": "system", "value": "Use native keybindings in Readme preview\n" }, { "from": "human", "value": "{$, $$$, View} = require 'atom-space-pen-views'\nroaster = require 'roaster'\nfs = require 'fs'\ncheerio = require 'cheerio'\n\n# Displays the readme for a package, if it has one\n# TODO Dec...
coffeescript
chosen
[ { "from": "system", "value": "Verify call count increasing in spec\n" }, { "from": "human", "value": "{WorkspaceView} = require 'atom'\nReporter = require '../lib/reporter'\n\ndescribe \"Metrics\", ->\n beforeEach ->\n atom.workspaceView = new WorkspaceView\n spyOn(Reporter, 'request')\n\...
coffeescript
chosen
[ { "from": "system", "value": "Change angular interpolate provider to not conflict with Blade\n" }, { "from": "human", "value": "$ ->\n window.chartColors = ['#3498DB', '#2ECC71', '#9B59B6', '#E74C3C', '#1ABC9C', '#F39C12', '#95A5A6']\n $('#tabs a').click(\n (e) ->\n e.preventDefault()\...
coffeescript
chosen
[ { "from": "system", "value": "Add no-cache headers on Ajax GET calls.\n\n- Fixes IE 9 getting 304:s form the server when requesting labels etc.\n" }, { "from": "human", "value": "###!\nCopyright (c) 2002-2014 \"Neo Technology,\"\nNetwork Engine for Objects in Lund AB [http://neotechnology.com]\n...
coffeescript
chosen
[ { "from": "system", "value": "Use setting instead of hard-coding port\n" }, { "from": "human", "value": "module.exports =\n\tinternal:\n\t\tchat:\n\t\t\thost: process.env['LISTEN_ADDRESS'] or \"localhost\"\n\t\t\tport: 3010\n\t\n\tapis:\n\t\tweb:\n\t\t\turl: \"http://#{process.env['WEB_HOST'] ||...
coffeescript
chosen
[ { "from": "system", "value": "Fix blurry partner profile cover image.\n" }, { "from": "human", "value": "module.exports =\n\n '''\n fragment partner on Partner {\n id\n name\n initials\n locations(size:15) {\n city\n }\n profile {\n id\n href\n image {\n ...
coffeescript
chosen
[ { "from": "system", "value": "Allow Clearing the Save from the Console in a Pinch\n" }, { "from": "human", "value": "angular.module 'qbn.save', ['qbn.quality']\n .factory 'savedGame', (qualities) ->\n storageName = 'qbnSave'\n api =\n load: () ->\n save = JSON.parse localStora...
coffeescript
chosen
[ { "from": "system", "value": "Support a commit_analyzer_ignore.txt file in project root\n" }, { "from": "human", "value": "#\n# Modules\n#\n\nreaddirp = require('readdirp')\npath = require('path')\nes = require('event-stream')\ncoffeescript = require('coffee-script')\n_ ...
coffeescript
chosen
[ { "from": "system", "value": "Split store checks to separate tests to get better output from CI\n" }, { "from": "human", "value": "describe 'NoFlo UI initialization', ->\n win = null\n doc = null\n db = null\n before (done) ->\n @timeout 20000\n iframe = document.getElementById 'app'\n...
coffeescript
chosen
[ { "from": "system", "value": ":bug: Update indicator when first attached to status bar\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...
coffeescript
chosen
[ { "from": "system", "value": ":new: Add a Basic API Structure\n" }, { "from": "human", "value": "Path = require 'path'\n{CompositeDisposable, Emitter} = require 'atom'\n\n{LinterTrace, LinterMessage, LinterError, LinterWarning} = require './messages'\n\nclass Linter\n constructor: ->\n @Emit...
coffeescript
chosen
[ { "from": "system", "value": "Simplify getting command dispatch target\n" }, { "from": "human", "value": "{CompositeDisposable} = require 'atom'\n{View, $} = require 'atom-space-pen-views'\n\nmodule.exports =\nclass ToolbarButtonView extends View\n @content: ->\n @div class: 'icon'\n\n init...
coffeescript
chosen
[ { "from": "system", "value": "Include verbose details about error/warning.\n" }, { "from": "human", "value": "{exec, child} = require('child_process')\nfs = require('fs')\nLinter = require(atom.packages.getLoadedPackage('linter').path + '/lib/linter')\n\nclass LinterScalac extends Linter\n\t@syn...
coffeescript
chosen
[ { "from": "system", "value": "Fix FF bug: parsing the mid date was wrong. cc: @urielster @ofri\n" }, { "from": "human", "value": "mid = new Date('02/25/14 00:00:00')\nTemplate.agenda.day1 = ->\n _.sortBy(@items.filter((i) -> i.time < mid), (i) -> i.time)\n\nTemplate.agenda.day2 = ->\n _.sortB...
coffeescript
chosen
[ { "from": "system", "value": "Work on RequireJS Jasmine test.\n" }, { "from": "human", "value": "describe \"RequireJS\", ->\n beforeEach ->\n @addMatchers\n requirejsTobeUndefined: ->\n typeof requirejs is \"undefined\"\n\n requireTobeUndefined: ->\n typeof require is...
coffeescript
chosen
[ { "from": "system", "value": "Make home page trackable by sidebar\n" }, { "from": "human", "value": "template = require 'views/templates/home'\nPageView = require 'views/base/page_view'\n\nmodule.exports = class HomePageView extends PageView\n template: template\n className: 'home-page'\n" }...
coffeescript
chosen
[ { "from": "system", "value": "Adjust pop-up window as a variable [issue]\n\nIssue:\n\nFailed to hide window\n" }, { "from": "human", "value": "{React, ReactBootstrap} = window\n{Button} = ReactBootstrap\nremote = require 'remote'\nBrowserWindow = remote.require 'browser-window'\n\nmodule.exports...
coffeescript
chosen
[ { "from": "system", "value": "Reposition *after* you add to the DOM.\n\nIt doesn't seem to flicker, and you need the parent for positioning to work\nproperly.\n" }, { "from": "human", "value": "{View, $} = require 'atom'\n\nmodule.exports =\nclass SideView extends View\n @content: (side) ->\n ...
coffeescript
chosen
[ { "from": "system", "value": "Add finder to terms chooser\n" }, { "from": "human", "value": "SHARED_COLLECTION = new Skr.Models.PaymentTerm.Collection\n\nclass Skr.Components.TermsChooser extends Lanes.React.Component\n\n propTypes:\n model: Lanes.PropTypes.Model.isRequired\n la...
coffeescript
chosen
[ { "from": "system", "value": "Fix deprecated selector in keymap\n" }, { "from": "human", "value": "'.workspace':\n 'alt-g o': 'open-on-github:file'\n 'alt-g b': 'open-on-github:blame'\n 'alt-g h': 'open-on-github:history'\n 'alt-g c': 'open-on-github:copy-url'\n 'alt-g r': 'open-on-github:b...
coffeescript
chosen
[ { "from": "system", "value": "Document hidden feature to switch between javascript and coffeescript.\n" }, { "from": "human", "value": "Command = require('../command')\nRange = require('../range')\nCompiler = require('../compiler')\n\nclass Xecute extends Command\n\n name: ''\n\n last_error: n...
coffeescript
chosen
[ { "from": "system", "value": "Update SearchSubscription to support basic multiaccount search... seems to work?\n" }, { "from": "human", "value": "_ = require 'underscore'\nRx = require 'rx-lite'\n\nNylasAPI = require './flux/nylas-api'\nDatabaseStore = require './flux/stores/database-store'\nThr...
coffeescript
chosen
[ { "from": "system", "value": "Remove ng-resource include (keep the bower component for now)\n" }, { "from": "human", "value": "#= require es5-shim/es5-shim.js\n#= require spin.js/dist/spin\n#= require jquery/jquery\n#= require angular/angular\n#= require angular-bootstrap/ui-bootstrap-tpls\n#= r...
coffeescript
chosen
[ { "from": "system", "value": "Add version test for minimap v3\n" }, { "from": "human", "value": "MinimapFindAndReplaceBinding = require './minimap-find-and-replace-binding'\n\nmodule.exports =\n binding: null\n activate: (state) ->\n findPackage = atom.packages.getLoadedPackage('find-and-re...
coffeescript
chosen
[ { "from": "system", "value": "Use Name comp for teacher viewing student tasks\n" }, { "from": "human", "value": "React = require 'react'\nLoadableItem = require '../loadable-item'\n\n{PerformanceStore, PerformanceActions} = require '../../flux/performance'\n\nViewingAsStudentName = React.createC...
coffeescript
chosen
[ { "from": "system", "value": "Fix FastClick for webpack compatibility\n\nhttps://github.com/ftlabs/fastclick/issues/398\n" }, { "from": "human", "value": "$ = require('jquery')\nattachFastClick = require('fastclick')\napp = require('./app')\n\n$ ->\n app.start()\n att...
coffeescript
chosen
[ { "from": "system", "value": "Drop the minimum Serrano version to >= 2.0.18\n" }, { "from": "human", "value": "define [\n './cilantro/core'\n './cilantro/changelog'\n './cilantro/models'\n './cilantro/structs'\n './cilantro/ui'\n], (c, changelog, models, structs, ui) ->\n\n c.c...
coffeescript
chosen
[ { "from": "system", "value": "Return book instead of ecosystem\n" }, { "from": "human", "value": "_ = require 'underscore'\nflux = require 'flux-react'\n\nLOADING = 'loading'\nFAILED = 'failed'\n\nEcosystemsActions = flux.createActions [\n 'load'\n 'loaded'\n 'FAILED'\n]\n\nEcosystemsStore =...
coffeescript
chosen
[ { "from": "system", "value": "Use property instead of non-existent method in OverlayManager" }, { "from": "human", "value": "module.exports =\nclass OverlayManager\n constructor: (@container) ->\n @overlayNodesById = {}\n\n render: (props) ->\n {presenter} = props\n\n for decorationId...
coffeescript
chosen
[ { "from": "system", "value": "Move all the JS under one .ready() call. Not sure if correct.\n" }, { "from": "human", "value": "# Toggle the administration system.\n($ document).keypress (e) ->\n ($ '.administration').toggleClass 'visible' if (e.keyCode || e.which) == 96\n\n# \"Hero\" image fade...
coffeescript
chosen
[ { "from": "system", "value": "Remove evidence when it is removed from an underlying collection\n" }, { "from": "human", "value": "class window.EvidenceCollection extends Backbone.Factlink.Collection\n\n initialize: (models, options) ->\n @fact = options.fact\n\n @_supportingCollection = n...
coffeescript
chosen
[ { "from": "system", "value": "Fix line numbering of source files\n" }, { "from": "human", "value": "#= require data/ViewData.coffee\n#= require gui/GuiBase.coffee\n\nclass SourceFileMarkup extends GuiBase\n constructor: (@filename, @id, @uri, @sourceFile) ->\n @formatted_code = null\n @el...
coffeescript
chosen
[ { "from": "system", "value": "Use ISO8601 format for timestamps\n" }, { "from": "human", "value": "Handlebars.registerHelper \"selected\", (selected) ->\n return if selected then \"checked\" else \"\"\n\nHandlebars.registerHelper \"truncate\", (text, length) ->\n truncated = text.substring(0, ...
coffeescript
chosen
[ { "from": "system", "value": "Add a standard authorization response\n" }, { "from": "human", "value": "@mockEventStreamResponse = ->\n @server.respondWith 'GET', '/event_stream', [\n 400\n 'Content-Type': 'application/json'\n JSON.stringify {}\n ]\n\n@mockAuthorizedRouteReponse = ->\n...
coffeescript
chosen
[ { "from": "system", "value": "Document fetch-mock issue workarounds so we can remove them later\n\nThis also removes global.Promise - that workaround was independently\nsolved by setting fetchMock.fetchMock.Promise\n" }, { "from": "human", "value": "_ = require('lodash')\nPromise = require('blue...
coffeescript
chosen
[ { "from": "system", "value": "Use fadeTo instead of css\n\nSigned-off-by: Dmitriy Zaporozhets <be23d75b156792e5acab51b196a2deb155d35d6a@gmail.com>\n" }, { "from": "human", "value": "class @CommitsList\n @timer = null\n\n @init: (ref, limit) ->\n $(\"body\").on \"click\", \".day-commits-tabl...
coffeescript
chosen
[ { "from": "system", "value": "Allow for a plurality of ass." }, { "from": "human", "value": "# Description:\n# Taunt dat ass\n#\n# Dependencies:\n# None\n#\n# Configuration:\n# None\n#\n# Commands:\n# butt name\n#\n# Author:\n# sshirokov\n\ninsult = [\n (opt) -> \"#{opt.name} has a big...
coffeescript
chosen
[ { "from": "system", "value": "Make FakeWindow spy on itself when instantiated\n" }, { "from": "human", "value": "class FakeWindow\n clearInterval: sinon.spy()\n setInterval: sinon.spy -> Math.random()\n localStorage:\n getItem: sinon.stub().returns('[]')\n setItem: sinon.stub()\n docum...
coffeescript
chosen
[ { "from": "system", "value": "Add Emmet plugin to Atom.\n" }, { "from": "human", "value": "packages: [\n \"atom-beautify\"\n \"atom-ide-ui\"\n \"atom-python-virtualenv\"\n \"autocomplete-python\"\n \"autocomplete-robot-framework\"\n \"build-gradle\"\n \"busy-signal\"\n \"editorconfig\"\n...
coffeescript
chosen
[ { "from": "system", "value": "Fix tests that'd give false positives\n" }, { "from": "human", "value": "humanizeDuration = require \"..\"\n\nassert = require \"assert\"\nfs = require \"fs\"\npath = require \"path\"\nparseCSV = require \"csv-parse\"\n\noptions = (language) ->\n return {\n lang...
coffeescript
chosen
[ { "from": "system", "value": "Add code to enable native menu and fix copy-n-paste\n\nThis fix was from https://github.com/nwjs/nw.js/issues/1955.\n" }, { "from": "human", "value": "_ = require \"underscore\"\n$ = require \"jquery\"\nnet = require \"net\"\n{AppDispatcher} = require \"./dispatcher...
coffeescript
chosen
[ { "from": "system", "value": "Use angular locale for credit card months\n" }, { "from": "human", "value": "Sprangular.directive 'creditCardForm', ->\n restrict: 'E'\n templateUrl: 'credit_cards/form.html'\n scope:\n creditCard: '='\n controller: ($scope) ->\n $scope.months = [\n {...
coffeescript
chosen
[ { "from": "system", "value": "Update context menu after deselection click\n" }, { "from": "human", "value": "# Copyright (c) 2012 Mattes Groeger\n#\n# Permission is hereby granted, free of charge, to any person obtaining a copy\n# of this software and associated documentation files (the \"Softwa...
coffeescript
chosen
[ { "from": "system", "value": "Add human readable file size in progress\n" }, { "from": "human", "value": "{registerOrUpdateElement, SpacePenDSL} = require 'atom-utils'\n\nmodule.exports =\nclass CSVProgressElement extends HTMLElement\n SpacePenDSL.includeInto(this)\n\n @content: ->\n @div c...
coffeescript
chosen
[ { "from": "system", "value": "Format on save test passing\n" }, { "from": "human", "value": "{WorkspaceView} = require 'atom'\nrequire 'fs'\n\nformat = require '../lib/format'\n\ndescribe \"JSFormat package tests\", ->\n beforeEach ->\n atom.workspaceView = new WorkspaceView()\n atom.work...
coffeescript
chosen
[ { "from": "system", "value": "Add collectionUUID to context & props\n" }, { "from": "human", "value": "React = require 'react'\n{Testing, expect, sinon, _} = require 'openstax-react-components/test/helpers'\n\nCollection = require 'task/collection'\n{Progress} = require 'progress'\nTASK = requir...
coffeescript
chosen
[ { "from": "system", "value": "Change header sooner on homepage\n" }, { "from": "human", "value": "nav = document.querySelectorAll('header.page-header')[0]\nwindow.onscroll = ->\n if window.pageYOffset > 400\n nav.classList.add 'start'\n else\n nav.classList.remove 'start'\n return\n" ...
coffeescript
chosen
[ { "from": "system", "value": "Use spec test reporter, so we can debug with output\n" }, { "from": "human", "value": "path = require('path')\ngulp = require('gulp')\ncoffee = require('gulp-coffee')\ninlinesource = require('gulp-inline-source')\nmocha = require('gulp-mocha')\nshell = require('gulp...
coffeescript
chosen