conversations listlengths 2 3 | source stringclasses 1 value | stack stringclasses 1 value |
|---|---|---|
[
{
"from": "system",
"value": ":new: Add test for multiple bufferModifying linters\n"
},
{
"from": "human",
"value": "describe 'buffer modifying linters', ->\n getModuleMain = -> atom.packages.getActivePackage('linter').mainModule.instance\n beforeEach ->\n waitsForPromise ->\n atom.pac... | coffeescript | chosen |
[
{
"from": "system",
"value": "Copy bill address to shipping address when the checkout address page loads\n"
},
{
"from": "human",
"value": "window.MultiShippingAddress ||= {}\n$.extend(MultiShippingAddress, { SameAsBilling: {} })\n\nclass MultiShippingAddress.SameAsBilling.CopyBillToShip\n cons... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add Column.update_quantities to \"published\" observer\n"
},
{
"from": "human",
"value": "class window.Event\n @CLASSES: ['Board', 'Swimlane', 'Column', 'Story']\n\n constructor: (object, type) ->\n for klass in Event.CLASSES\n if object instanceof window[... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add remaining time in game point\n"
},
{
"from": "human",
"value": "# modules\nSequelize = require 'sequelize'\ndb = require './db'\nPoint = require './point'\nGame = require './game'\n\n# def model\nGamePoint = db.orm.define 'GamePoint',\n energy: Sequelize.INTE... | coffeescript | chosen |
[
{
"from": "system",
"value": "Set input value to default rails date"
},
{
"from": "human",
"value": "window.DatePickerView = class DatePickerView extends Uniform\n @::counter = 0\n\n elements: (add) ->\n add('select', 'select')\n\n events: (add) ->\n add('.input-date', 'changeDate', (el... | coffeescript | chosen |
[
{
"from": "system",
"value": "Refactor NodeCanvasElement: use brackets for clarity.\n"
},
{
"from": "human",
"value": "define [\n 'viewmodels/drawings/canvas_element'\n 'viewmodels/drawings/stencils/stencil_factory'\n 'models/commands/delete_node'\n 'models/commands/composite_command'\n 'mo... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add a mixing to offer the same API for decorations as editors\n"
},
{
"from": "human",
"value": "Mixin = require 'mixto'\n\nmodule.exports =\nclass DecorationManagement extends Mixin\n\n decorateMarker: (marker, options={}) ->\n"
},
{
"from": "gpt",
"va... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add more logging since we don't seem to be getting issue events\n"
},
{
"from": "human",
"value": "# Notifies about Crashlytics crashes via a Crashlytics web hook\n#\n# Dependencies:\n# \"url\": \"\"\n# \"querystring\": \"\"\n#\n# Configuration:\n# Just put th... | coffeescript | chosen |
[
{
"from": "system",
"value": "Revert \"Add --atom-child_process-fork if running from Atom Helper\"\n\nThis reverts commit 5729b05df07d7c3de6d95ea65af4c25942c1a286.\n"
},
{
"from": "human",
"value": "child_process = require 'child_process'\n\nmodule.exports =\nclass Command\n spawn: (command, ar... | coffeescript | chosen |
[
{
"from": "system",
"value": "Drop dailycute.net, add reddit /r/aww\n\nDailycute was returning malformed urls, hacked in pulling from reddit instead. Tacking .png on the end to force all images to display inline. This does lead to some url weirdness, but it loads fine.\r\n\r\n ->\n\t\n\tstyleSheet = document.createElement \"style\"\n\tstyleSheet.innerHTML = css\n\t\n\tdocument.head.appendChild styleSheet\n... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix updating tags multiple times\n\nAfter replacing the HTML we need to re-add all the click handelers etc.\n"
},
{
"from": "human",
"value": "$ ->\n $(\"div.tag-form li.cancel a\").click ->\n $(\"div.tags\").show()\n $(\"div.tag-form\").hide()\n return\n\... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix deprecated selectors in keymap\n"
},
{
"from": "human",
"value": "'.editor':\n 'ctrl-space': 'autocomplete:toggle'\n\n'.autocomplete .mini.editor':\n 'enter': 'core:confirm'\n 'tab': 'core:confirm'\n"
},
{
"from": "gpt",
"value": "'atom-text-edito... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use config for directory paths\n"
},
{
"from": "human",
"value": "fs = require 'fs'\npath = require 'path'\ntemp = require 'temp'\n_ = require 'underscore'\n\ntemp.track()\n\nmodule.exports = (grunt) ->\n grunt.registerTask 'create-windows-installer', 'Create the W... | coffeescript | chosen |
[
{
"from": "system",
"value": "Refresh all ratings on successful event reaction update.\n\nCloses #7\n"
},
{
"from": "human",
"value": "$ ->\n # Refresh if a page is loaded directly\n pageLoad()\n \n # Refresh if a page is loaded via turbolinks\n $(document).on \"page:load\", pageLoad\n\npag... | coffeescript | chosen |
[
{
"from": "system",
"value": "Set loaded attr to true after fetching results\n"
},
{
"from": "human",
"value": "define (require) ->\n Backbone = require('backbone')\n\n SEARCH_URI = \"#{location.protocol}//#{location.hostname}:6543/search\"\n\n return class SearchResults extends Backbone.Mode... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix the Unwrap node exception\n"
},
{
"from": "human",
"value": "_ = require \"underscore\"\nerrors = require \"../helper/errors\"\nBinding = require \"../core/lib/Binding\"\nBasicAuthentication = require \"../core/lib/Authentication/BasicAuthentication\"\n\nclass F... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add native-key-bindings class to table\n"
},
{
"from": "human",
"value": "{$$, $$$, _, View} = require 'atom'\n\n# Displays the keybindings for a package namespace\nmodule.exports =\nclass PackageKeymapView extends View\n @content: ->\n @section class: 'package-... | coffeescript | chosen |
[
{
"from": "system",
"value": "Throw error if trying to beautify Perl without setting Perl Tidy path\n\nSee #138, #33.\n"
},
{
"from": "human",
"value": "###\n// Requires [perltidy](http://perltidy.sourceforge.net)\n###\n\n\"use strict\"\n\ngetCmd = (inputPath, outputPath, options) ->\n # consol... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add cookie storge for saving status filter over multiple sessions."
},
{
"from": "human",
"value": "Wheelmap.ToolbarController = Ember.Controller.extend\n needs: 'map'\n statusFilters: ['yes', 'limited', 'no', 'unknown']\n map: Ember.computed.alias('controllers.m... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix image sizing in FF\n"
},
{
"from": "human",
"value": "#= require trix/views/attachment_view\n\nclass Trix.ImageAttachmentView extends Trix.AttachmentView\n render: ->\n @image = document.createElement(\"img\")\n @loadFile() if @attachment.isPending()\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use @ reference for codeContext"
},
{
"from": "human",
"value": "CodeContext = require '../lib/code-context'\ngrammarMap = require '../lib/grammars'\n\ndescribe 'grammarMap', ->\n beforeEach ->\n @codeContext = new CodeContext('test.txt', '/tmp/test.txt', null)\... | coffeescript | chosen |
[
{
"from": "system",
"value": "Remove redudant routes to support the new \"overview\" section"
},
{
"from": "human",
"value": "class @Router extends Backbone.Router\n routes:\n \"demand/:sidebar(/:slide)\" : \"demand\"\n \"costs/:sidebar(/:slide)\" : \"costs\"\n \"overview/:sidebar(/:s... | coffeescript | chosen |
[
{
"from": "system",
"value": ":bug: Fix error raised when minimap is not toggled\n\nFixes #4\n"
},
{
"from": "human",
"value": "{View} = require 'atom'\n\nmodule.exports = ->\n highlightSelectedPackage = atom.packages.getLoadedPackage('highlight-selected')\n\n highlightSelected = require (high... | coffeescript | chosen |
[
{
"from": "system",
"value": "Move pieces to exact position at end of move, to stop rounding error drift.\n\nSolution from; http://stackoverflow.com/questions/24988041/making-an-object3d-snap-to-grid\n"
},
{
"from": "human",
"value": "#= require roofpig/changers/TimedChanger\n\nclass @MoveExecut... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add another spec to the reference counter\n"
},
{
"from": "human",
"value": "RefCountedTokenList = require '../lib/ref-counted-token-list'\n\ndescribe 'RefCountedTokenList', ->\n [list] = []\n beforeEach ->\n list = new RefCountedTokenList\n\n describe \"when ... | coffeescript | chosen |
[
{
"from": "system",
"value": "SidebarOwnMachinesList: Use `getMachines` to pass MoreVMsModal.\n"
},
{
"from": "human",
"value": "SidebarMachineList = require './sidebarmachinelist'\nMoreVMsModal = require 'app/activity/sidebar/morevmsmodal'\nComputeHelpers = require '../../providers/computehelpe... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix app initialization on old browsers\n"
},
{
"from": "human",
"value": "#= require_tree ./vendor\n\n#= require lib/license\n#= require_tree ./lib\n\n#= require app/app\n#= require app/config\n#= require_tree ./app\n\n#= require collections/collection\n#= require_t... | coffeescript | chosen |
[
{
"from": "system",
"value": "Replace jquery deprecated .live with .on\n"
},
{
"from": "human",
"value": "class CommitsList\n @data =\n ref: null\n limit: 0\n offset: 0\n @disable = false\n\n @showProgress: ->\n $('.loading').show()\n\n @hideProgress: ->\n $('.loading').hide()... | coffeescript | chosen |
[
{
"from": "system",
"value": "Allow selecting all columns in a column family\n\nAllow selecting all columns in a column family"
},
{
"from": "human",
"value": "\n\nmodule.exports = class Get\n\tconstructor: (@row) ->\n\t\t@tr =\n\t\t\tfrom: null\n\t\t\tto: null\n\t\t@familyMap = {}\n\t\t@maxVers... | coffeescript | chosen |
[
{
"from": "system",
"value": "Remove ajax loader bar when click on submit form\n"
},
{
"from": "human",
"value": "#= require vendor/modernizr\n#= require jquery\n#= require jquery_ujs\n#= require foundation/foundation\n#= require foundation\n#= require turbolinks\n#= require nprogress\n#= requir... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use setStrokeWidth to change stroke width from ReactGUI\n"
},
{
"from": "human",
"value": "createSetStateOnEventMixin = require '../reactGUI/createSetStateOnEventMixin'\n{classSet} = require '../core/util'\n\n\nmodule.exports = React.createClass\n displayName: 'Str... | coffeescript | chosen |
[
{
"from": "system",
"value": "Make data converter parse floats, not ints\n"
},
{
"from": "human",
"value": "CONVERTERS =\n percentage:\n decimal: (value) ->\n parseInt(value, 10) / 100\n date:\n epoch: (value) ->\n new Date(value).getTime()\n\nexports.convert = (fromType, toTyp... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix incorrect keyword for exclusion if => when\n\nFix #252"
},
{
"from": "human",
"value": "define [\n '../core'\n './base'\n], (c, base) ->\n\n\n class ExporterModel extends base.Model\n\n\n class ExporterCollection extends base.Collection\n mode... | coffeescript | chosen |
[
{
"from": "system",
"value": "Revert \"Handle both bzipped and non-bzipped data in DataUnpacker\"\n\nThis reverts commit 05d3970e399d676fbe856633ffc3ac78fccf6191.\n"
},
{
"from": "human",
"value": "class AsciiIo.DataUnpacker\n unpack: (base64BzippedData, callback) ->\n data = atob base64Bzip... | coffeescript | chosen |
[
{
"from": "system",
"value": "Handle empty string as content.\n"
},
{
"from": "human",
"value": "class EditorPane extends Pane\n\n constructor: (options = {}, data) ->\n\n options.cssClass = KD.utils.curry \"editor-pane\", options.cssClass\n\n super options, data\n\n @createEditor()\n\... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use fsUtils.readObject() to read theme metadata\n"
},
{
"from": "human",
"value": "fsUtils = require 'fs-utils'\nTheme = require 'theme'\nCSON = require 'cson'\n\n# Internal: Represents a theme that Atom can use.\nmodule.exports =\nclass AtomTheme extends Theme\n\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Remove puts statement in client code\n"
},
{
"from": "human",
"value": "import ember from 'ember'\nimport config from 'totem-config/config'\nimport m_unauth_route from 'ember-simple-auth/mixins/unauthenticated-route-mixin'\n\nexport default ember.Route.extend m_una... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix param name for debugging routes\n"
},
{
"from": "human",
"value": "express = require 'express'\nroutes = require './routes'\n\napp = module.exports = express()\napp.set 'views', __dirname + '/templates'\napp.set 'view engine', 'jade'\n\napp.get '/inquiry/develop... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add mouseout if solution has focus so it's easier to select issue and twitter\n"
},
{
"from": "human",
"value": "$ ->\n $(\".chzn-select\").chosen disable_search_threshold: 25\n $(\"#problem_body\").charCount\n allowed: 250\n warning: 20\n counterText: \"... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use linear interpolation on history graph\n"
},
{
"from": "human",
"value": "$('.tournament.plot').each (index, element) ->\n container = $(element)\n chart_element = container.children('.chart').get(0)\n y_axis_element = container.children('.y_axis').get(0)\n l... | coffeescript | chosen |
[
{
"from": "system",
"value": "Update jQuery selectors to be compatible with ember\n"
},
{
"from": "human",
"value": "$ ->\n $body = $('body')\n $('#container2')\n .on 'mouseenter', '.box', (e)->\n $(this).addClass 'hover'\n $body.addClass 'box_hover'\n .on 'mouseleave', '.box',... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix usage of deprecated size() method\n"
},
{
"from": "human",
"value": "jQuery ->\n if $('#pagination').size() > 0\n $('#pagination').hide()\n loading_posts = false\n\n $('#load-more-btn').show().click ->\n unless loading_posts\n loading_posts... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use directional light for sun instead of point light.\n"
},
{
"from": "human",
"value": "\nTHREE = require 'three'\nIsometricCamera = require './isometric_camera.coffee'\n\nclass Renderer\n\tconstructor: ->\n\t\twindow.THREE = THREE\n\t\trad = 0.0174532925\n\n\t\t@s... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix Open Latest RPT File command - Atom 1.7.0 compatibility\n"
},
{
"from": "human",
"value": "{CompositeDisposable} = require 'atom'\n\nbuildProject = require './lib/build-project'\nopenLatestRptFile = require './lib/open-latest-rpt-file'\n\nmodule.exports =\n sub... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add CLI Help, More Lazy Data Retrieval"
},
{
"from": "human",
"value": "yaml = require('js-yaml')\nargv = require('optimist').argv\n\nbooks = require './books.yml'\n\nretrieve = require('./src/retrieve')\n\ndo ->\n console.log \"Using books.yml with #{books.books.l... | coffeescript | chosen |
[
{
"from": "system",
"value": "Update view when title changes\n"
},
{
"from": "human",
"value": "define [\n 'jquery'\n 'underscore'\n 'backbone'\n 'marionette'\n 'cs!collections/content'\n 'cs!views/workspace/sidebar/toc-branch'\n 'hbs!templates/workspace/sidebar/toc'\n], ($, _, Backbone, ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use ENV.config instead of injected config\n"
},
{
"from": "human",
"value": "require 'routes/route'\n\nTravisRoute = Travis.Route\n\nRoute = TravisRoute.extend\n renderTemplate: ->\n $('body').attr('id', 'home')\n\n @_super.apply this, arguments\n\n @rende... | coffeescript | chosen |
[
{
"from": "system",
"value": "Convert authors in results.items to author objects\n"
},
{
"from": "human",
"value": "define (require) ->\n Backbone = require('backbone')\n settings = require('cs!settings')\n\n SEARCH_URI = \"#{location.protocol}//#{settings.cnxarchive.host}:#{settings.cnxarchi... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add .webp to image extensions\n"
},
{
"from": "human",
"value": "path = require 'path'\n_ = require 'underscore-plus'\nImageEditor = require './image-editor'\n\nmodule.exports =\n activate: ->\n atom.workspace.registerOpener(openUri)\n atom.packages.once('act... | coffeescript | chosen |
[
{
"from": "system",
"value": "Access status bar via element\n"
},
{
"from": "human",
"value": "IncompatiblePackagesView = null\n\nviewUri = 'atom://incompatible-packages'\ncreateView = (state) ->\n IncompatiblePackagesView ?= require './incompatible-packages-view'\n new IncompatiblePackagesVie... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix material with unknown type\n"
},
{
"from": "human",
"value": "React = require('react')\n\nimport Problem from './Problem'\nimport Level from './Level'\nimport Contest from './Contest'\n\nPage = (props) ->\n <div dangerouslySetInnerHTML={{__html: props.materia... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix screen-row vs buffer-row error in indent operators\n"
},
{
"from": "human",
"value": "{Operator} = require './general-operators'\n#\n# It indents everything selected by the following motion.\n#\nclass Indent extends Operator\n # Public: Indents the text selecte... | coffeescript | chosen |
[
{
"from": "system",
"value": ":bug: Fix selection handle position when start column is not 0\n"
},
{
"from": "human",
"value": "React = require 'react-atom-fork'\n{div} = require 'reactionary-atom-fork'\n\nmodule.exports = React.createClass\n render: ->\n {parentView} = @props\n\n {top, l... | coffeescript | chosen |
[
{
"from": "system",
"value": "Switch to using gutil for proper formatting\n"
},
{
"from": "human",
"value": "# default - message + brief help\n\ngulp = require \"gulp\"\nrunSequence = require \"run-sequence\"\n\ngulp.task \"default\", (cb) ->\n console.log('Building BokehJS for developer mode .... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix for deprecation of context menu"
},
{
"from": "human",
"value": "# See https://atom.io/docs/latest/creating-a-package#menus for more details\n'context-menu':\n '.overlayer':\n 'Git add file': 'git-plus:add'\n\n'menu': [\n {\n 'label': 'Packages'\n 'su... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add support for CS@2 when looking up local CS\n"
},
{
"from": "human",
"value": "configManager = require '../config-manager'\nresolve = require 'resolve'\npath = require 'path'\n\ngetCompiler = (editor) ->\n filepath = editor.getPath()\n\n coffee = ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use helper methods instead of reading asyncStatus\n"
},
{
"from": "human",
"value": "# coffeelint: disable=no_empty_functions\n_ = require 'underscore'\nflux = require 'flux-react'\n\n{CourseActions, CourseStore} = require './course'\n\nLOADING = 'loading'\nLOADED ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Revert \"Fix test according to changes in smtp mailer.\"\n\nThis reverts commit dbccc525c2b0302d4d111b6f45063d39a5f0c63e.\n"
},
{
"from": "human",
"value": "mailer = null\n\ndescribe \"Salad.Mailer\", ->\n before ->\n mailer = new App.WelcomeMailer\n\n describe... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use late binding to break circular dependency\n"
},
{
"from": "human",
"value": "AS = ORBEON.xforms.server.AjaxServer\nDocument = ORBEON.xforms.Document\nEvents = ORBEON.xforms.Events\n\n# Returns a deferred object that gets resolved when the next Ajax response arri... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix Crash in Storylet Resolution\n"
},
{
"from": "human",
"value": "class Storylet\n constructor: (@id, @title, @text, @choices) ->\n Object.freeze @\n\nangular.module 'qbn.storylet', ['qbn.state']\n .factory 'storylets', (makeGameState) ->\n library = {}\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Reset milliseconds as well when resetting seconds\n"
},
{
"from": "human",
"value": "# Miscellanious date support code.\nclass DateSupport\n\n @stripSeconds: (date) ->\n date.setSeconds 0\n date\n\nmodule.exports = DateSupport\n"
},
{
"from": "gpt",
... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix bug with missing fat arrow\n"
},
{
"from": "human",
"value": "define [\n 'settings'\n 'promise'\n 'helpers/browser_helper'\n 'helpers/url_helper'\n], (Settings, Promise, BrowserHelper, URLHelper)->\n unique_id = 1\n\n class Reporter\n constructor: (opti... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix incorrent enforcement of tabs to spaces conversion in typescript"
},
{
"from": "human",
"value": "\"use strict\"\nBeautifier = require('./beautifier')\n\nmodule.exports = class TypeScriptFormatter extends Beautifier\n name: \"TypeScript Formatter\"\n options: ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Rollback any data changes on cancel.\n"
},
{
"from": "human",
"value": "define ['lodash'], (L) -> Array '$scope', '$log', '$modal', (scope, log, modalFactory) ->\n\n InputEditCtrl = Array '$scope', '$modalInstance', 'history', 'step', (scope, modal, history, step, ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Remove assumption and reference of global data\n\nQueryWorkflow now takes the data as passed options on construction. These\ninclude:\n\n- `concepts`: a collection concepts that are deemed queryable\n- `context`: a context model which is commonly the currently \"active\"\none f... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix document ready with TurboLinks.\n"
},
{
"from": "human",
"value": "#= require jquery\n#= require jquery_ujs\n#= require turbolinks\n#= require bootstrap\n#= require_tree .\n\n$(->\n $('#job_date_type').change(->\n switch $(@).val()\n when 'agreement', '... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix worktime removing from page after destroying\n"
},
{
"from": "human",
"value": "'use strict'\n\nTimeTracker.WorkTimes =\n setDestroyCallback: ->\n $('.worktime-page #day-records').on 'ajax:success', '.day-row a.destroy', (event, data, status, xhr) ->\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Tweak behavior when running lines or selections.\n"
},
{
"from": "human",
"value": "{BufferedProcess} = require 'atom'\n\nmodule.exports =\n activate: ->\n atom.workspaceView.command \"execute-as-ruby:execute\", => @execute()\n\n execute: ->\n # This assumes... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add Object.assign from react if missing, transferPropsTo -> {...@props}"
},
{
"from": "human",
"value": "React = require 'react'\nButton = require 'react-bootstrap/Button'\nRouteToMixin = require './RouteToMixin'\n\nADDITIONAL_RESERVED_PROPS =\n key: true\n ref: t... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use closest instead of parent()\n\nSigned-off-by: Dmitriy Zaporozhets <be23d75b156792e5acab51b196a2deb155d35d6a@gmail.com>\n"
},
{
"from": "human",
"value": "class @Activities\n constructor: ->\n Pager.init 20, true\n $(\".event-filter a\").bind \"click\", (e... | coffeescript | chosen |
[
{
"from": "system",
"value": "Refactor dataTable init and add no pagination\n"
},
{
"from": "human",
"value": "$(document).on \"page:change\", ->\n $(\".data-table\").each ->\n table = $(@)\n return if $.fn.dataTable.isDataTable(table)\n if table.hasClass(\"sort-asc\")\n table.Dat... | coffeescript | chosen |
[
{
"from": "system",
"value": "Save text-search condition if location.search exists\n\nテキスト検索で、レポートタイプ(Genes, Organisms...) で検索後、リンクからスタンザ一覧に遷移した場合も、\nその時の画面を開けるようにするために、location.search を見て、検索条件を保持するようにした\n"
},
{
"from": "human",
"value": "$ ->\n saveTextSearchCondition = (selectTag) ->\n con... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add default grunt task for testing\n"
},
{
"from": "human",
"value": "module.exports = (grunt) ->\n\n grunt.loadNpmTasks 'grunt-release'\n grunt.loadNpmTasks 'grunt-exec'\n grunt.loadNpmTasks 'grunt-gh-pages'\n\n grunt.initConfig\n release:\n options:\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Simplify event handling using jquery\n"
},
{
"from": "human",
"value": "# Place all the behaviors and hooks related to the matching controller here.\n# All this logic will automatically be available in application.js.\n# You can use CoffeeScript in this file: http:/... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix adding new gists in firefox\n\nNo clue how Chrome was working, should have been broken.\n"
},
{
"from": "human",
"value": "\n#editor = ace.edit(\"editor\")\n#editor.getSession().setMode(\"ace/mode/markdown\")\n\njQuery ->\n jQuery('.editor').ace({ theme: 'githu... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add World/Screen coordinate conversion utilities to SceneView class.\n"
},
{
"from": "human",
"value": "\nclass SceneView\n constructor: (@canvas) ->\n @id = _.uniqueId 'view'\n throw new Error \"A Canvas is required\" if not @canvas\n @context = @canvas.g... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use uic:domchange instead of document.ready\n"
},
{
"from": "human",
"value": "$ ->\n margin_top = $('.navbar-fixed-top, .navbar-static-top').height()\n $('table[data-toggle=sticky-header]').floatThead\n useAbsolutePositioning: false\n scrollingTop: margin_t... | coffeescript | chosen |
[
{
"from": "system",
"value": "Revert \"Disable use_bl for /top request\"\n\nThis reverts commit 0751f501525a5afa424fbdd00f7780f8ade48fdf.\nFixed in the BnW API (added use_bl for today).\n"
},
{
"from": "human",
"value": "define [\n \"chaplin\"\n \"models/posts\"\n \"views/posts\"\n], (Chaplin... | coffeescript | chosen |
[
{
"from": "system",
"value": "Update specs for core API changes\n"
},
{
"from": "human",
"value": "{WorkspaceView} = require 'atom'\nLineJumper = require '../lib/line-jumper'\n\ndescribe \"LineJumper\", ->\n editor = null\n beforeEach ->\n atom.workspaceView = new WorkspaceView()\n pack ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix bug with returning wrong response in `findContent`\n"
},
{
"from": "human",
"value": "angular.module('Sprangular.StaticContent').service 'StaticContent', ($q, $http) ->\n\n service =\n findContent: (id) ->\n $http.get \"/api/pages/#{id}.json\"\n\n serv... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix issue with message to 'all'\n"
},
{
"from": "human",
"value": "Meteor.publish 'projects', ->\n Projects.find {members: this.userId}\n\nMeteor.publish 'projectMessages', (projectId) ->\n check projectId, String\n # Find all messages for the current proje... | coffeescript | chosen |
[
{
"from": "system",
"value": "Improve detecting @element in the DOM\n"
},
{
"from": "human",
"value": "class Trix.SelectionObserver\n events = [\"DOMFocusIn\", \"DOMFocusOut\", \"mousedown\", \"keydown\"]\n\n constructor: (@element) ->\n @element.addEventListener(event, @start) for event in... | coffeescript | chosen |
[
{
"from": "system",
"value": "Remove unused gulp-util dependencies from error.coffee\n"
},
{
"from": "human",
"value": "# Error handling setup\n# See: http://www.artandlogic.com/blog/2014/05/error-handling-in-gulp/\ngutil = require 'gulp-util'\n\nfatalLevel = require('yargs').argv.fatal\n\nE... | coffeescript | chosen |
[
{
"from": "system",
"value": "Replace student dashboard redirect with delay page\n"
},
{
"from": "human",
"value": "React = require 'react'\n{CourseStore} = require '../../flux/course'\n{StudentDashboardStore, StudentDashboardActions} = require '../../flux/student-dashboard'\nLoadableItem = requ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix cursor issues around images\n"
},
{
"from": "human",
"value": "#= require trix/views/attachment_view\n#= require trix/utilities/dom\n#= require trix/utilities/helpers\n\n{defer} = Trix.Helpers\n\nclass Trix.ImageAttachmentView extends Trix.AttachmentView\n rend... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use existential operator to check if row was found\n"
},
{
"from": "human",
"value": "#query = require(\"pg-query\")\n\n\n\n\n#oreList = query(\"select itemName from Ore order by itemName\", (err, rows, result) ->\n#\talert rows )\n\n\n#alert oreList\n#alert \"3333\... | coffeescript | chosen |
[
{
"from": "system",
"value": "Framework: Fix errors when files don’t exist.\n"
},
{
"from": "human",
"value": "# Installs/updates latest version of the Tâmia Stylus framework.\n# Also installs jQuery.\n# https://github.com/sapegin/tamia\n\n'use strict'\n\nfs = require 'fs'\nutil = require 'util'... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix bug when voting where local had been mis-named\n"
},
{
"from": "human",
"value": "$(\".polls\").fadeOut 500, ->\n $(\".polls[data-id='<%= @poll.id %>']\").replaceWith(\"<%= escape_javascript(render :partial => \"polls/poll\", :locals => {:previous_poll => @poll... | coffeescript | chosen |
[
{
"from": "system",
"value": "Replace composition of PulsarApiRest with inheritance from RestlerService.\n"
},
{
"from": "human",
"value": "restler = require('restler')\n\nclass PulsarApiRest\n\n constructor: (url, token) ->\n restService = restler.service((url, token) ->\n if token\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Enable / disable clear filter button.\n"
},
{
"from": "human",
"value": "FilterCtrl = ($scope) ->\n $scope.clear = ->\n @value = null\n\nangular.module('MongoBrowser', [])\n # Handles ESC key\n .directive 'onEsc', ->\n (scope, element, attrs) ->\n elem... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix actual auction/sale interface display\n"
},
{
"from": "human",
"value": "module.exports = \"\"\"\n fragment auction on Artwork {\n is_acquireable\n is_in_auction\n auction: sale {\n id\n name\n is_open\n is_preview\n is_closed\... | coffeescript | chosen |
[
{
"from": "system",
"value": "Remove direct dependency on EditSession class\n\nInstead duck type for the source.gfm grammar\n"
},
{
"from": "human",
"value": "EditSession = require 'edit-session'\nMarkdownPreviewView = require './markdown-preview-view'\n\nmodule.exports =\n activate: ->\n ro... | coffeescript | chosen |
[
{
"from": "system",
"value": "Make other tests more consistent.\n"
},
{
"from": "human",
"value": "{BattleQueue} = require '../server/queue'\n\ndescribe 'BattleQueue', ->\n it 'should be empty by default', ->\n new BattleQueue().queue.should.be.empty\n\n describe '#add', ->\n it 'queues ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Revert \"and another quick fix, my bad this time -.-\"\n\nThis reverts commit f7cb16b8def1ace0a24f49f0ee6945fc99b3999f.\n"
},
{
"from": "human",
"value": "# Place all the behaviors and hooks related to the matching controller here.\n# All this logic will automatical... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add context menu on the tree-view to toggle the Finder.\n"
},
{
"from": "human",
"value": "# See https://atom.io/docs/latest/hacking-atom-package-word-count#menus for more details\n'context-menu':\n 'atom-text-editor': [\n {\n 'label': 'Toggle tree-view-fin... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add snippet for inserting hashbangs\n"
},
{
"from": "human",
"value": "\".source.apl\":\n\t\n\tFunction:\n\t\tprefix: \"fn\"\n\t\tbody: \"∇${2:R ←} ${3:X} ${1:NAME} ${4:Y}\\n\\t$0\\n∇\"\n\t\n\tOperator:\n\t\tprefix: \"op\"\n\t\tbody: \"∇${2:R ←} ${3:X} (${4:LOP}... | coffeescript | chosen |
[
{
"from": "system",
"value": "Change text to refer to stations\n"
},
{
"from": "human",
"value": "#= require underscore\n\nstrings =\n loading: \"Loading…\"\n noData: \"No data\"\n\n logger:\n title: \"Workbench Logger\"\n \"api-endpoint\": \"API Endpoint\"\n\n metadata:\n title: \"... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add \"default\" task for grunt\n"
},
{
"from": "human",
"value": "module.exports = (grunt) ->\n PATHS =\n \"Windows_NT\" : \"bin\\\\nw.exe\\\\nw.exe\"\n \"Darwin\" : \"bin/node-webkit.app/Contents/MacOS/node-webkit\"\n\n os = requi... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix typo that used the wrong function to reset the buffer range\n"
},
{
"from": "human",
"value": "isCurrentLineEmpty = (editor) ->\n # save the current buffer range, so that we can\n # reset the state in the end\n bufferRange = editor.getSelectedBufferRange()\n\... | coffeescript | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.