conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Test the position of the indicator on the bar.\n" }, { "from": "human", "value": "describe \"The Status Icon Configuration Option\", ->\n\n configString = \"linter.statusIconPosition\"\n\n beforeEach ->\n waitsForPromise ->\n atom.packages.activatePackage(...
coffeescript
chosen
[ { "from": "system", "value": "Update to new fbp-spec multi-suite format\n" }, { "from": "human", "value": "noflo = require 'noflo'\nfbpSpec = require 'fbp-spec'\n\nexports.getComponent = ->\n c = new noflo.Component\n c.inPorts.add 'in',\n datatype: 'object'\n description: 'Project'\n c...
coffeescript
chosen
[ { "from": "system", "value": "Remove mini class to give id enough room\n" }, { "from": "human", "value": "{View} = require 'space-pen'\nEditor = require 'editor'\n$ = require 'jquery'\nPoint = require 'point'\n_ = require 'underscore'\n\nmodule.exports =\nclass Prompt extends View\n @activate: ...
coffeescript
chosen
[ { "from": "system", "value": "Remove unused ConceptSearch subclass for ConceptPanel\n" }, { "from": "human", "value": "define [\n '../core'\n './index'\n './search'\n 'tpl!templates/concept/panel.html'\n], (c, index, search, templates...) ->\n\n templates = c._.object ['panel'], t...
coffeescript
chosen
[ { "from": "system", "value": "Reset scroll position to top of window when navigating to new view\n" }, { "from": "human", "value": "TentAdmin.Routers.main = new class MainRouter extends Marbles.Router\n routes: {\n \"\" : \"root\"\n \"profile\" : \"profile\"\n \"apps\" : \"ap...
coffeescript
chosen
[ { "from": "system", "value": "Work on RequireJS Jasmine test.\n" }, { "from": "human", "value": "describe \"RequireJS namespacing\", ->\n beforeEach ->\n @addMatchers\n requirejsTobeUndefined: ->\n typeof requirejs is \"undefined\"\n\n requireTobeUndefined: ->\n typeo...
coffeescript
chosen
[ { "from": "system", "value": "Use subscribe instead of on\n" }, { "from": "human", "value": "{View} = require 'space-pen'\n$ = require 'jquery'\nGit = require 'git'\nfs = require 'fs'\n\nmodule.exports =\nclass FileView extends View\n\n @content: ({file} = {}) ->\n @li class: 'file entry', =...
coffeescript
chosen
[ { "from": "system", "value": "Add jquery_ui/mouse to jqrangeslider's dependencies\n" }, { "from": "human", "value": "require.config\n paths:\n jquery: \"vendor/jquery/jquery\"\n jquery_ui: \"vendor/jquery-ui-amd/jquery-ui-1.10.0/jqueryui\"\n jquery_mous...
coffeescript
chosen
[ { "from": "system", "value": "Modal: Set in-async to null instead of undefined,\nAs it didn't trigger property changes properly.\n" }, { "from": "human", "value": "`import {ArrayProxy, run} from 'ember';`\n`import Modal from './modal'`\n\n###*\n# A flavour of a {{#crossLink \"Modal}}Modal{{/cros...
coffeescript
chosen
[ { "from": "system", "value": "Add whitespace for test readability\n" }, { "from": "human", "value": "should = require 'should'\n\nbus = require '../lib/bus'\nlog = require '../lib/core/log'\n\ntests = [\n topic: 'debug'\n data: 'hello, debug'\n ,\n topic: 'error'\n data: 'hello, error'\n ,\n...
coffeescript
chosen
[ { "from": "system", "value": "Change fixtures paths from absolute to relative.\n\nFixes an issue where Jasmine is mounted in a non-standard place\n(i.e. /mything/jasmine) and the fixtures are still served from\n/jasmine/fixtures rather than /mything/jasmine/fixtures.\n" }, { "from": "human", "va...
coffeescript
chosen
[ { "from": "system", "value": "Delete overlay node from hash before removing\n" }, { "from": "human", "value": "module.exports =\nclass OverlayManager\n constructor: (@container) ->\n @overlayNodesById = {}\n\n render: (presenter) ->\n for decorationId, {pixelPosition, item} of presenter....
coffeescript
chosen
[ { "from": "system", "value": "Set Push.enabled and set push sendInterval to 1000ms and sendBatchSize to 10\n" }, { "from": "human", "value": "Meteor.methods\n\tlog: ->\n\t\tconsole.log.apply console, arguments\n\nMeteor.startup ->\n\n\tPush.debug = RocketChat.settings.get 'Push_debug'\n\n\tif Ro...
coffeescript
chosen
[ { "from": "system", "value": "Allow our alert id to be in milliseconds as it lowers the chance of duplicates\n" }, { "from": "human", "value": "class Flash\n\n add: (message, type) ->\n alertId = Math.floor(Date.now() / 1000);\n\n $('body').prepend(\n '<div class=\"alert alert-' + ty...
coffeescript
chosen
[ { "from": "system", "value": "Raise test timeout to 120 seconds\n" }, { "from": "human", "value": "module.exports = (grunt) ->\n\tgrunt.initConfig\n\t\tclean:\n\t\t\tpackage: ['tasks/gyp.js']\n\t\t\ttest: ['test/support/build']\n\t\tcoffee:\n\t\t\ttask:\n\t\t\t\toptions:\n\t\t\t\t\tbare: true\n\...
coffeescript
chosen
[ { "from": "system", "value": "Fix grunt test task to first compile files\n\nDuh.\n" }, { "from": "human", "value": "module.exports = (grunt) ->\n 'use strict'\n\n # Project configuration.\n grunt.initConfig\n watch:\n coffee:\n tasks: ['coffee:compile']\...
coffeescript
chosen
[ { "from": "system", "value": "Use empty string as server location so current host is used\n" }, { "from": "human", "value": "define [\n\t'models/server'\n\t'vendor/underscore'\n\t'vendor/jquery'\n\t], ( Server ) -> \n\t\n\t# Application base class\n\t#\n\n\tclass App\n\n\t\tid: null\n\t\tserverA...
coffeescript
chosen
[ { "from": "system", "value": "Add little trick to ParamHandler, so we can handle with on minus too\n" }, { "from": "human", "value": "class ParamHandler\n constructor: (@payload = {}) ->\n\n\n getArguments: (process, callback) ->\n match = process.argv.join(' ').match /--[a-zA-Z]* ([a-zA-Z0...
coffeescript
chosen
[ { "from": "system", "value": "Test all intersections against all spheres\n" }, { "from": "human", "value": "Sphere = require '../sim/sphere'\n\nVec = require('three').Vector3\n\nassert = require 'assert'\n{expect} = require 'chai'\n\ndescribe 'Sphere', ->\n it 'should trilaterate properly', ->\...
coffeescript
chosen
[ { "from": "system", "value": "Add methods on FieldModel corresponding to URL actions\n\nURLs are now parsed and stored locally from internal `attrs._links`" }, { "from": "human", "value": "define ['backbone', 'underscore'], (Backbone, _) ->\n\n class FieldModel extends Backbone.Model\n\n\n ...
coffeescript
chosen
[ { "from": "system", "value": "Fix issue with javascript error causing category choosing functionality to break for a product with variants.\n" }, { "from": "human", "value": "$ ->\n\n #\n # Refresh the order\n #\n calculateTax = (form, invokeField)->\n if $('select#product_tax_rate_id', f...
coffeescript
chosen
[ { "from": "system", "value": "AdminMembersView: Make blocked users only available to Koding group.\n" }, { "from": "human", "value": "kd = require 'kd'\nKDView = kd.View\nKDTabView = kd.TabView\nKDTabPaneView = kd.TabPaneView\nTeamMembersComm...
coffeescript
chosen
[ { "from": "system", "value": "Add guards to make Facebook renewal more robust\n" }, { "from": "human", "value": "FactlinkApp.module \"FacebookRenewal\", (FacebookRenewal, FactlinkApp, Backbone, Marionette, $, _) ->\n\n class IframeView extends Backbone.Marionette.ItemView\n template:\n ...
coffeescript
chosen
[ { "from": "system", "value": "Remove check of model state in DurationCalculation\n\nWe no longer need this check, because it was only relevant with Ember\nData. Additionally it was a cause of a travis-ci/travis-ci#1992, because\nof wrong syntax:\n\n unless someFunction false or true\n\nwill only check fo...
coffeescript
chosen
[ { "from": "system", "value": "Include the role '_creator' used by Cloudant to the allowed type of users\n" }, { "from": "human", "value": "utils = require('lib/utils')\n\nexports.validate_doc_update = (newDoc, oldDoc, userCtx) ->\n types = ['essay','scene','video','profile']\n\n access = if...
coffeescript
chosen
[ { "from": "system", "value": "Fix typo in repos/language view" }, { "from": "human", "value": "module.exports =\n _id: '_design/repos'\n languange: 'javascript'\n\n views:\n by_watchers:\n map: (doc) -> emit doc.watchers, doc.description if doc.watchers\n by_language:\n map: (...
coffeescript
chosen
[ { "from": "system", "value": "Replace is not with isnt - damn you CoffeeScript\n" }, { "from": "human", "value": "Darkswarm.factory \"AuthenticationService\", (Navigation, $modal, $location, Redirections)->\n\n new class AuthenticationService\n selectedPath: \"/login\"\n\n constructor: ->...
coffeescript
chosen
[ { "from": "system", "value": "Update atom to latest version\n" }, { "from": "human", "value": "\"*\":\n core:\n themes: [\n \"one-dark-ui\"\n \"solarized-dark-syntax\"\n ]\n editor:\n fontFamily: \"Monaco\"\n fontSize: 15\n \"exception-reporting\":\n userId: \"1dd85e3...
coffeescript
chosen
[ { "from": "system", "value": "Fix commits calendar vertical days.\n" }, { "from": "human", "value": "class @calendar\n options =\n month: \"short\"\n day: \"numeric\"\n year: \"numeric\"\n\n constructor: (timestamps, starting_year, starting_month) ->\n cal = new CalHeatMap()\n c...
coffeescript
chosen
[ { "from": "system", "value": "Disable new user party celebration\n" }, { "from": "human", "value": "# Description:\n# Create a party when a new user appear\n#\n# Dependencies:\n# None\n#\n# Configuration:\n# None\n#\n# Commands:\n# new user - Create a party when a new user appear\n#\n# Aut...
coffeescript
chosen
[ { "from": "system", "value": "Fix bug where coffeescript would only execute after page refresh.\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 Coff...
coffeescript
chosen
[ { "from": "system", "value": "Add commented out docker config\n" }, { "from": "human", "value": "Path = require \"path\"\n\nmodule.exports =\n\t# Options are passed to Sequelize.\n\t# See http://sequelizejs.com/documentation#usage-options for details\n\tmysql:\n\t\tclsi:\n\t\t\tdatabase: \"clsi\...
coffeescript
chosen
[ { "from": "system", "value": "Fix IE10 bug on guide\n" }, { "from": "human", "value": "Page = require 'controllers/page'\n\n\nclass GuidePage extends Page\n el: $('.guide')\n className: 'guide'\n \n events:\n 'click .menu li' : 'show'\n \n active: ->\n super\n @el.scroll() # tr...
coffeescript
chosen
[ { "from": "system", "value": "Use ~/.config/au.json to store settings.\n" }, { "from": "human", "value": "{existsSync} = require './utils'\n{join} = require 'path'\n\nsettingsPath = join process.env.HOME, '.config', '/au'\n\nif existsSync settingsPath\n settings = require settingsPath or {}\n\n...
coffeescript
chosen
[ { "from": "system", "value": "Rename context snippet to con\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 snipp...
coffeescript
chosen
[ { "from": "system", "value": "Add certain flag for remodel item\n" }, { "from": "human", "value": "mongoose = require 'mongoose'\nSchema = mongoose.Schema\n\nRemodelItemRecord = new Schema\n successful: Boolean\n itemId: Number\n itemLevel: Number\n flagshipId: Number\n flagshipLevel: Numbe...
coffeescript
chosen
[ { "from": "system", "value": "Fix hasSearch method, it wasn't working with sublevel of a object\n" }, { "from": "human", "value": "Dashboard.SearchTab = Ember.View.extend\n type: 'view'\n templateName: 'search-tab'\n routeName: ''\n tagName: ''\n\n routeParams: (->\n @get('controller.sea...
coffeescript
chosen
[ { "from": "system", "value": "Fix incorrect subclass for LoadView" }, { "from": "human", "value": "define [\n './core'\n], (c) ->\n\n\n class StateView extends c.Marionette.ItemView\n constructor: ->\n super\n\n if not @template?\n if @options.te...
coffeescript
chosen
[ { "from": "system", "value": "Add atom prefix to rootView and project\n" }, { "from": "human", "value": "{_, Document} = require 'atom'\n\nSettingsView = null\nsettingsView = null\n\nconfigUri = 'atom://config'\n\ncreateSettingsView = (state) ->\n SettingsView ?= require './settings-view'\n un...
coffeescript
chosen
[ { "from": "system", "value": "Simplify thin/fat arrow comparison example\n" }, { "from": "human", "value": "person =\n name: 'Alice'\n tryToSayHelloButFail: (delay) ->\n setTimeout (() -> console.log \"Hi... from #{@name}\"), delay\n sayHelloUsingAnExtraVariable: (delay) ->\n self = thi...
coffeescript
chosen
[ { "from": "system", "value": "Fix bug with active tab remembering (saving cookie with different path)\n" }, { "from": "human", "value": "class @ProjectShow\n constructor: ->\n $('.project-home-panel .star').on 'ajax:success', (e, data, status, xhr) ->\n $(@).toggleClass('on').find('.cou...
coffeescript
chosen
[ { "from": "system", "value": "Add Extension types for objc\n" }, { "from": "human", "value": "extensionsByFenceName =\n 'bash': 'sh'\n 'coffee': 'coffee'\n 'coffeescript': 'coffee'\n 'coffee-script': 'coffee'\n 'css': 'css'\n 'go': 'go'\n 'java': 'java'\n 'javascript': 'js'\n 'js': 'js'...
coffeescript
chosen
[ { "from": "system", "value": "Set the right admin API URL\n" }, { "from": "human", "value": "@App.factory 'MnoeApiSvc', ($log, Restangular, inflector) ->\n return Restangular.withConfig((RestangularProvider) ->\n RestangularProvider.setBaseUrl('/mnoe/jpi/v1')\n RestangularProvider.setDefa...
coffeescript
chosen
[ { "from": "system", "value": "Allow multiple pagers on a single page.\n" }, { "from": "human", "value": "Rahani.module 'Helpers', ->\n @pagination = (view, collection, selector = '.pager-region') ->\n @paginationView = new Rahani.Views.Application.Pagination\n collection: collection\n\n...
coffeescript
chosen
[ { "from": "system", "value": "Test que comprueba cuando estamos cargando.\n" }, { "from": "human", "value": "require 'jquery.history.js'\nrequire 'jquery.paginator.js'\n\ndescribe \"Paginator\", ->\n beforeEach ->\n loadFixtures('paginator.html')\n $('#list').ajaxPaginator()\n\n describe...
coffeescript
chosen
[ { "from": "system", "value": "Fix deprecated selectors in keymap\n" }, { "from": "human", "value": "'.platform-darwin, .platform-darwin .command-palette .editor':\n 'cmd-shift-p': 'command-palette:toggle'\n\n'.platform-win32, .platform-win32 .command-palette .editor':\n 'ctrl-shift-p': 'comman...
coffeescript
chosen
[ { "from": "system", "value": "Make Books Page Load Faster\n\nDisplay stuff after just one request and update the list of books with\nanother one." }, { "from": "human", "value": "App = require '../app'\n\nBook = require './model'\n\nApp.PriceChartView = require './price-chart'\n\n# App.BookRoute...
coffeescript
chosen
[ { "from": "system", "value": "Add TODO for database migrations\n" }, { "from": "human", "value": "# Module dependencies.\n\nmodels = require '../models'\napp = require('../app')(models.sequelize)\nhttp = require 'http'\nconfig = require '../config'\n\n# Event listener for HTTP server \"erro...
coffeescript
chosen
[ { "from": "system", "value": "Implement back button. Wasn't that hard.\n" }, { "from": "human", "value": "window.MandrillMerge or= {}\n\nclass MandrillMergeApp\n constructor: ->\n @bindEvents()\n\n bindEvents: ->\n $('#hello-coffeescript').on('click', @greet)\n\n submit_my_form: (caller...
coffeescript
chosen
[ { "from": "system", "value": "Refactor service to remove extra promise\n" }, { "from": "human", "value": "angular.module('Sprangular.StaticContent').service 'StaticContent', ($q, $http) ->\n\n service =\n current: {}\n findContent: (id) ->\n _service = @\n deferred = $q.defer()\...
coffeescript
chosen
[ { "from": "system", "value": "Simplify logic, use tutor-ui-banner class\n" }, { "from": "human", "value": "React = require 'react'\nBS = require 'react-bootstrap'\n\n{TaskActions} = require '../../flux/task'\n{TaskStepActions, TaskStepStore} = require '../../flux/task-step'\nLoadableItem = requi...
coffeescript
chosen
[ { "from": "system", "value": "Add explicit assertion count for model test case tests" }, { "from": "human", "value": "QUnit.module \"Batman.ModelTestCase\",\n setup: ->\n @testCase = new Batman.ModelTestCase\n\n class @Foo extends Batman.Model\n @resourceName: 'foo'\n @validate ...
coffeescript
chosen
[ { "from": "system", "value": "Rename and hide links working\n" }, { "from": "human", "value": "class Cu.View.ViewTile extends Backbone.View\n className: 'view tile'\n tagName: 'a'\n attributes: ->\n href: \"/dataset/#{@model.get('plugsInTo').get('box')}/view/#{@model.get 'box'}\"\n\n even...
coffeescript
chosen
[ { "from": "system", "value": "Make highlights even less talkative. aka not at all\n" }, { "from": "human", "value": "#!highlights/node_modules/coffee-script/bin/coffee\n\nHighlights = require 'highlights'\nfs = require 'fs'\npath = require 'path'\nhighlighter = new Highlights()\nhighlighter.requ...
coffeescript
chosen
[ { "from": "system", "value": "Remove workspace opener on deactivate\n" }, { "from": "human", "value": "styleguideUri = 'atom://styleguide'\n\ncreateStyleguideView = (state) ->\n StyleguideView = require './styleguide-view'\n new StyleguideView(state)\n\natom.deserializers.add\n name: 'Stylegu...
coffeescript
chosen
[ { "from": "system", "value": "Fix chapter page nav direction\n" }, { "from": "human", "value": "$ ->\n $owl = $(\".chapter-projects\")\n\n $owl.owlCarousel\n loop: false,\n nav: true,\n margin: 10,\n autoWidth: true,\n dotsContainer: \".owl-dot...
coffeescript
chosen
[ { "from": "system", "value": "Set up a one-way binding for the paginator input\n" }, { "from": "human", "value": "App.CurrentPaginatorPageView = Em.TextField.extend\n classNames: 'input-mini'\n\n # If we bind the value to the currentPageNo of the controller, it will\n # a page change for each...
coffeescript
chosen
[ { "from": "system", "value": "Fix wrong lon attribute name.\n" }, { "from": "human", "value": "Wheelmap = @Wheelmap\n\nWheelmap.MapController = Ember.ArrayController.extend\n boundsRatioBuffer: 0.3\n previousBounds: null\n center: null\n zoom: null\n startNode: null\n nodes: []\n isLoadin...
coffeescript
chosen
[ { "from": "system", "value": "Fix visualization/show tables tab selection\n" }, { "from": "human", "value": "VisualizationBase = require './visualization-base.js'\n\nclass Visualization extends VisualizationBase\n\n constructor: (_id) ->\n console.log 'Visualization'\n super _id\n\n resi...
coffeescript
chosen
[ { "from": "system", "value": "Put notice on the left, on the right didn't *feel* right (pun intended).\n\nIf someone who owns a site opens Factlink in the proxy and is all like, what the heck is this doing on my site, they should always see some kind of explanation. Hiding away the explanation under the sid...
coffeescript
chosen
[ { "from": "system", "value": "Configure jEditable to not add \"Click to edit\" on blank cells.\n" }, { "from": "human", "value": "$ ->\n enableEditables()\n\nenableEditables = ->\n $('span.editable').editable (value, settings) ->\n $span = $(this)\n data = {_method: 'PUT'}\n data[$spa...
coffeescript
chosen
[ { "from": "system", "value": "Fix reference to `@key` in log expression.\n" }, { "from": "human", "value": "logger = require(\"logger-sharelatex\")\nNotificationsHandler = require(\"./NotificationsHandler\")\n\nmodule.exports =\n\n\t# Note: notification keys should be url-safe\n\n\tgroupPlan: (u...
coffeescript
chosen
[ { "from": "system", "value": "Revert \"Don't depend on modalOpened events but on factlinkAdded events for hiding the loading button\"\n\nThis reverts commit 5ba5108e925cde7082a0e1e837b2d28ae2388c7f.\n" }, { "from": "human", "value": "getTextRange = ->\n doc = window.document\n if doc.getSelect...
coffeescript
chosen
[ { "from": "system", "value": "Add some more fallback for the Highlights runner\n\nIf the file we are passed doesn't exist, we check back to see if it is then created.\nWe give an error regardless if we don't find the file the first time, but this makes it\na little more fault tolerant.\n" }, { "from...
coffeescript
chosen
[ { "from": "system", "value": "Fix channel suggestion in add-to-channel on channel page\n" }, { "from": "human", "value": "#= require ./add_channel_to_channels_modal_view\n\nclass window.AddChannelToChannelsButtonView extends Backbone.Marionette.Layout\n template: 'channels/add_channel_to_channe...
coffeescript
chosen
[ { "from": "system", "value": "Add done() and set delay\n" }, { "from": "human", "value": "{Testing, expect, sinon, _} = require 'openstax-react-components/test/helpers'\n\n$ = require 'jquery'\n\n\ndescribe 'API loader', ->\n beforeEach ->\n @jquery =\n ajax: sinon.spy ->\n d = $...
coffeescript
chosen
[ { "from": "system", "value": "Allow template to be a function\n" }, { "from": "human", "value": "define [\n 'jquery'\n 'underscore'\n 'backbone'\n], ($, _, Backbone) ->\n\n class Region\n constructor: (el, parent) ->\n @parent = parent\n @el = el\n\n show: (view) ->\n @c...
coffeescript
chosen
[ { "from": "system", "value": "Use async API from latest version of marked\n" }, { "from": "human", "value": "marked = require 'marked'\nhighlight = require '../highlight'\n\n# Initialize markdown\nmarked.setOptions\n gfm: true\n\nmodule.exports =\n converters:\n markdown:\n priority: 2...
coffeescript
chosen
[ { "from": "system", "value": "Add angular declaration so it works\n" }, { "from": "human", "value": "#= jquery/jquery\n" }, { "from": "gpt", "value": "#= jquery/jquery\n\napp = angular.module 'barebones', []\n\napp.controller 'mainController', ($scope) ->\n $scope.appName = 'BareB...
coffeescript
chosen
[ { "from": "system", "value": "Allow to clear datetime inputs\n" }, { "from": "human", "value": "$(document).on 'ready page:change', ->\n $('input[type=datetime]').prop('type','text').datetimepicker\n useSeconds: false\n sideBySide: false\n\n $('input[type=date]').prop('type','text').date...
coffeescript
chosen
[ { "from": "system", "value": "Add version test for minimap v3\n" }, { "from": "human", "value": "MinimapSelectionView = require './minimap-selection-view'\n\nmodule.exports =\n\n active: false\n views: {}\n\n activate: (state) ->\n minimapPackage = atom.packages.getLoadedPackage('minimap')...
coffeescript
chosen
[ { "from": "system", "value": "Add include untested option to istanbul\n" }, { "from": "human", "value": "# Load all required libraries.\ngulp = require 'gulp'\ngutil = require 'gulp-util'\n\nclean = require('gulp-clean')\ncoffee = require 'gulp-coffee'\ncoffeelint = require('gulp-coffeelint')\ni...
coffeescript
chosen
[ { "from": "system", "value": "Add fix for arrows in collapsables showing the wrong collapse status." }, { "from": "human", "value": "$document = $(document)\n\n$document.on 'click.dropdown', '[data-toggle=\"collapse\"]', (e)->\n # Don't close dropdown when accordion togglers are clicked\n e.st...
coffeescript
chosen
[ { "from": "system", "value": "Add defaults for single axis grids\n" }, { "from": "human", "value": "Game = @Game\n\nclass Game.LocationGrid\n constructor: (settings) ->\n xs = @_coordList(settings.x)\n ys = @_coordList(settings.y)\n coords = []\n for y in ys\n for x in xs\n ...
coffeescript
chosen
[ { "from": "system", "value": "Replace all spaces with +\n" }, { "from": "human", "value": "# Description\n# A hubot script to query Board Game Geek\n#\n# Configuration:\n# LIST_OF_ENV_VARS_TO_SET\n#\n# Commands:\n# hubot hello - <what the respond trigger does>\n# orly - <what the hear tr...
coffeescript
chosen
[ { "from": "system", "value": "Fix navigating to pages from the ToC\n" }, { "from": "human", "value": "define (require) ->\n $ = require('jquery')\n router = require('cs!router')\n analytics = require('cs!helpers/handlers/analytics')\n BaseView = require('cs!helpers/backbone/views/base')\n t...
coffeescript
chosen
[ { "from": "system", "value": "Call ensureEl instead of checking if @$el exists, otherwise behaviour is unexpected, e.g. callback may not be called\n" }, { "from": "human", "value": "Backbone.Factlink ||= {}\n\nclass Backbone.Factlink.CrossFadeRegion extends Backbone.Marionette.Region\n\n fadeIn...
coffeescript
chosen
[ { "from": "system", "value": "Fix URL redirect when in sub-directory\n" }, { "from": "human", "value": "# *************************************\n#\n# Application\n# -> Manifest\n#\n# *************************************\n\n# -------------------------------------\n# Namespace\n# ----------...
coffeescript
chosen
[ { "from": "system", "value": "Fix DOM leak in scatterplot\n" }, { "from": "human", "value": "# Created by AshGillman, 05/08/12\n__ = require '../helpers'\nScatterChart = require('../NvWrapper').ScatterChart\nDrawerBase = require '../DrawerBase'\n\nScatterDrawer = class ScatterDrawer ...
coffeescript
chosen
[ { "from": "system", "value": "Use correct error message for course ended\n" }, { "from": "human", "value": "React = require 'react'\n\nNoExercises = React.createClass\n displayName: 'NoExercises'\n render: ->\n <div className='no-exercises'>\n Sorry, there are no exercises for this mod...
coffeescript
chosen
[ { "from": "system", "value": "Correct name of expireAfterSeconds index\n" }, { "from": "human", "value": "mongoose = require 'mongoose'\nSettings = require 'settings-sharelatex'\n\n\nSchema = mongoose.Schema\nObjectId = Schema.ObjectId\n\n\nTHIRTY_DAYS_IN_SECONDS = 60 * 60 * 24 * 30\n\n\nProject...
coffeescript
chosen
[ { "from": "system", "value": "Fix one require on new test\n" }, { "from": "human", "value": "TypeFactory = require '../../../../lib/type/factory'\nshould = require 'should'\n\ndescribe 'TypeFactory#jsType', ->\n\n factory = new TypeFactory\n\n describe 'when used with a JS class', ->\n ...
coffeescript
chosen
[ { "from": "system", "value": "Add index ddb record count.\n" }, { "from": "human", "value": "class @PodsStore\n records: []\n all: ->\n @records\n update: (new_records) ->\n @records = @records.concat(new_records)\n @writeObjects(new_records)\n writeObjects: (pods) ->\n r = index...
coffeescript
chosen
[ { "from": "system", "value": "Fix check of actual node.js (and not a polyfill of process).\n" }, { "from": "human", "value": "\n# This module allows fetch to load local files from file://\n# in node.js, electron and NW.js\n\nif window.process?.execPath\n\n req = eval 'require'\n fs = req '...
coffeescript
chosen
[ { "from": "system", "value": "Remove charset from even source. Spec says it is always utf-8.\n" }, { "from": "human", "value": "# ***** BEGIN LICENSE BLOCK *****\n# Copyright (c) 2011-2012 VMware, Inc.\n#\n# For the license see COPYING.\n# ***** END LICENSE BLOCK *****\n\nutils = require('./util...
coffeescript
chosen
[ { "from": "system", "value": "Remove Webpack devtool configuration (not allowed for Chrome extensions)\n" }, { "from": "human", "value": "webpack = require 'webpack'\n\nLANGS = ['en_gb']\n\nmodule.exports =\n resolve:\n # Add automatically the following extensions to required modules\n ex...
coffeescript
chosen
[ { "from": "system", "value": "Hide the action buttons instead of just disabling them\n" }, { "from": "human", "value": "Spine = require('spine')\n\nclass Actions extends Spine.Controller\n\n elements:\n '.deal': 'deal_button'\n '.continue': 'continue_button'\n '.surrender': 'surrender_...
coffeescript
chosen
[ { "from": "system", "value": "Remove dependency on simplifies segments, which is no longer needed in Paper 0.99" }, { "from": "human", "value": "define [\n 'spine'\n 'models/moves_path'\n 'models/simplifies_segments'\n 'models/link_shape'\n 'spine.relation'\n], (Spine, MovesPath, Simplifies...
coffeescript
chosen
[ { "from": "system", "value": "Fix destroy of status view bottom panel\n" }, { "from": "human", "value": "{Subscriber} = require 'emissary'\n{$, View} = require 'atom-space-pen-views'\n\nmodule.exports =\n class StatusView extends View\n Subscriber.includeInto(this)\n\n @content = (params)...
coffeescript
chosen
[ { "from": "system", "value": "Add unit tests for withStats filter\n\nSigned-off-by: Ian Macalinao <08370e385f4778cad8fe504ec5445edd3d45bd9a@gmail.com>\n" }, { "from": "human", "value": "items = require(\"../build/liblol.js\").items\n\ndescribe \"items\", ->\n\n describe \"find\", ->\n\n it \...
coffeescript
chosen
[ { "from": "system", "value": "Use new CSON format for menus\n" }, { "from": "human", "value": "# See https://atom.io/docs/latest/creating-a-package#menus for more details\n'context-menu':\n '.overlayer':\n 'Enable decoration-example': 'decoration-example:toggle'\n\n'menu': [\n {\n 'lab...
coffeescript
chosen
[ { "from": "system", "value": "Add Grunt task alias build\n" }, { "from": "human", "value": "module.exports = (grunt) ->\n\tgrunt.initConfig\n\t\tclean:\n\t\t\tpackage: ['lib']\n\t\tcoffee:\n\t\t\toptions:\n\t\t\t\tbare: true\n\t\t\tfiles:\n\t\t\t\texpand: true\n\t\t\t\tcwd: 'src'\n\t\t\t\tsrc: [...
coffeescript
chosen
[ { "from": "system", "value": "Use just \"deleteFactlink\" event, as we also fire another event for closing the modal already\n" }, { "from": "human", "value": "class window.ClientController\n constructor: (@annotatedSiteEnvoy) ->\n showFact: (fact_id) ->\n @_renderDiscussion new Fact id: fa...
coffeescript
chosen
[ { "from": "system", "value": "Fix cmd + enter submit\n" }, { "from": "human", "value": "angular.module('loomioApp').factory 'KeyEventService', ($rootScope) ->\n new class KeyEventService\n\n keyboardShortcuts:\n 73: 'pressedI'\n 71: 'pressedG'\n 84: 'pressedT'\n 27: '...
coffeescript
chosen
[ { "from": "system", "value": "Configure icon for SetLayerProperty component.\n" }, { "from": "human", "value": "noflo = require 'noflo'\nrequire 'framerjs'\n\ncreateLayer = (properties) ->\n return new Layer properties\n\nexports.getComponent = ->\n component = new noflo.Component\n component...
coffeescript
chosen
[ { "from": "system", "value": "Add geoconfig to config example\n\nAdd example of geo module config to config example file.\n" }, { "from": "human", "value": "# Facebook config\nexports.facebook =\n\tappId: null\n\tsecretKey: null\n\n# Meetup config\nexports.meetup = null # API key as string\n\n#E...
coffeescript
chosen
[ { "from": "system", "value": "Remove comment in branch test\n" }, { "from": "human", "value": "window.Cosmo =\n version: '0.1.0'\n\n# more\n# All apps should be an extended instance of this class\nclass Cosmo.Router\n # app regions, assumes main content goes in a div#container\n regions:\n ...
coffeescript
chosen
[ { "from": "system", "value": "Handle new addhoc Tasks to existing Phase" }, { "from": "human", "value": "ETahi.ApplicationController = Ember.Controller.extend\n currentUser:(->\n userId = Tahi.currentUser?.id.toString()\n @store.getById('user', userId)\n ).property().volatile()\n\n conn...
coffeescript
chosen
[ { "from": "system", "value": "Implement select all matches command (x) with Buffer.traverseRegexMatchesInRange" }, { "from": "human", "value": "Command = require 'command-interpreter/command'\nRange = require 'range'\n\nmodule.exports =\nclass SelectAllMatches extends Command\n @regex: null\n\n...
coffeescript
chosen
[ { "from": "system", "value": "Remove sprocket directive for extensions\n" }, { "from": "human", "value": "#= require_tree ./vendors\n#= require_tree ./written/core\n#= require_tree ./written/extensions\n#= require_tree ./written/parsers\n" }, { "from": "gpt", "value": "#= require_tre...
coffeescript
chosen