conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Add better key map for Quippet\n"
},
{
"from": "human",
"value": "# Your keymap\n#\n# Atom keymaps work similarly to stylesheets. Just as stylesheets use selectors\n# to apply styles to elements, Atom keymaps use selectors to associate\n# keystrokes with events in s... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add description for include utility func\n"
},
{
"from": "human",
"value": "module.exports =\n # Public: Determines if a string should be considered linewise or character\n #\n # text - The string to consider\n #\n # Returns 'linewise' if the string ends with a... | coffeescript | chosen |
[
{
"from": "system",
"value": "Set session token as client identifier cookie\n"
},
{
"from": "human",
"value": "module.exports = ->\n { dash } = require 'bongo'\n\n bongo = this\n\n (req, res, next) ->\n\n {\n channelName\n queue: requestQueue\n sessionToken\n userArea\n... | coffeescript | chosen |
[
{
"from": "system",
"value": "Set hreflang and rel=\"alternate\" on Link.\n"
},
{
"from": "human",
"value": "Immutable = require 'immutable'\nReact = require 'react'\nRouter = require 'react-router'\n\nutils = require '../utils.coffee'\nURL = require '../url.coffee'\n\nmodule.exports = React.cre... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use format index as key\n\nIn some cases in the editor, formats may be duplicated before save\n"
},
{
"from": "human",
"value": "React = require 'react'\n_ = require 'underscore'\nclassnames = require 'classnames'\n\n{AnswersTable} = require './answers-table'\nArbit... | coffeescript | chosen |
[
{
"from": "system",
"value": "Disable bib import if there's no value\n"
},
{
"from": "human",
"value": "# Copyright 2011-2015, The Trustees of Indiana University and Northwestern\n# University. Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file ex... | coffeescript | chosen |
[
{
"from": "system",
"value": "Include session in AuthView constructor\n"
},
{
"from": "human",
"value": "define [\n 'jquery'\n 'underscore'\n 'backbone'\n 'marionette'\n 'cs!collections/media-types'\n 'cs!views/workspace/menu/auth'\n 'cs!views/workspace/menu/add'\n 'cs!views/workspace/me... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add feature flag for redirecting SL to v2\n"
},
{
"from": "human",
"value": "Settings = require 'settings-sharelatex'\n\nmodule.exports = Features =\n\texternalAuthenticationSystemUsed: ->\n\t\tSettings.ldap? or Settings.saml? or Settings.overleaf?.oauth?\n\n\thasFe... | coffeescript | chosen |
[
{
"from": "system",
"value": "Replace all dashes in help topic name.\n"
},
{
"from": "human",
"value": "###!\nCopyright (c) 2002-2015 \"Neo Technology,\"\nNetwork Engine for Objects in Lund AB [http://neotechnology.com]\n\nThis file is part of Neo4j.\n\nNeo4j is free software: you can redistribu... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add CORS headers to eventsource\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('./utils')\ntransport = require('./tra... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add new ObjectID parsing and error hanling\n"
},
{
"from": "human",
"value": "\"use strict\"\n\nObjectID = require('mongodb').ObjectID\n\nexports.param = (req, res, next, id) ->\n return res.send 400, 'invalid oid' if not /[a-f0-9]{24}/.test id\n req.id = new Obje... | coffeescript | chosen |
[
{
"from": "system",
"value": "Move instantiate() and Add Documentation\n"
},
{
"from": "human",
"value": "qbnApp = angular.module 'qbnApp', []\n\nclass Quality\n constructor: (@name, @defaultValue) ->\n\ninstantiate = (proto) ->\n instance = Object.create proto\n for key, value of proto when ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Make sure global is something defined\n"
},
{
"from": "human",
"value": "###\nTODO: describe\n\ncall: (String) -> Object\n @param 1\n @return\nresolveVendor: (String) -> Object\n @param 1\n @return\n###\n\n# Possible javascript vendor prefixes\nVENDOR_PR... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add operation GET to response interceptor unwrapper\n"
},
{
"from": "human",
"value": "@App.factory 'MnoeApiSvc', ($log, Restangular, inflector) ->\n return Restangular.withConfig((RestangularProvider) ->\n RestangularProvider.setBaseUrl('/mnoe/jpi/v1/admin')\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Send and fire should have consistent interfaces\n"
},
{
"from": "human",
"value": "setImmediate = process.nextTick unless setImmediate?\n\nclass Channel\n \n constructor: ->\n @handlers = []\n \n send: (args...) ->\n setImmediate => @fire args...\n \n fi... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix match count on result view\n"
},
{
"from": "human",
"value": "{_, $, fs, View} = require 'atom'\nMatchView = require './match-view'\npath = require 'path'\n\nmodule.exports =\nclass ResultView extends View\n @content: (model, filePath, matches) ->\n iconClas... | coffeescript | chosen |
[
{
"from": "system",
"value": "Update ExpandableRecordArray to work correctly with Ember Model\n"
},
{
"from": "human",
"value": "Travis.ExpandableRecordArray = DS.RecordArray.extend\n isLoaded: false\n isLoading: false\n\n load: (array) ->\n @set 'isLoading', true\n self = this\n\n o... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix viewingSelf attribute in user controller\n"
},
{
"from": "human",
"value": "Hummingbird.UserController = Ember.ObjectController.extend\n coverUpload: Ember.Object.create()\n coverUrl: Ember.computed.any('coverUpload.croppedImage', 'model.coverImageUrl')\n cov... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix to test new pages\n"
},
{
"from": "human",
"value": "{Testing, expect, _} = require '../helpers/component-testing'\n\nLearningGuide = require '../../../src/flux/learning-guide'\nButton = require '../../../src/components/learning-guide/practice-button'\n\nCOURSE_... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add failing test for bug\n"
},
{
"from": "human",
"value": "should = require('should')\nmissingSupport = require('../dist/lib/missing-support')\n\ndescribe 'missing-support', ->\n describe 'filtering caniuse-db data by browser selection', ->\n it 'for browser re... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix password reset rate limit to work on ip, not email which changes every request\n"
},
{
"from": "human",
"value": "PasswordResetHandler = require(\"./PasswordResetHandler\")\nRateLimiter = require(\"../../infrastructure/RateLimiter\")\n\n\nmodule.exports =\n\n\tr... | coffeescript | chosen |
[
{
"from": "system",
"value": "Simplify (if not shorten) code\n"
},
{
"from": "human",
"value": "determineBrowser = ->\n [ 'chrome', 'firefox', 'safari', 'phantom_js', 'unsupported-browser' ]\n .filter( (browser) -> $('html.'+browser).length\n )[0]\n\nextension_link_by_browser =\n firefox: 'h... | coffeescript | chosen |
[
{
"from": "system",
"value": "Hide \"Composed of:\" element completely if there are no containing channels.\n"
},
{
"from": "human",
"value": "class window.SubchannelsView extends Backbone.Factlink.CompositeView\n tagName: \"div\"\n id: \"contained-channels\"\n template: \"channels/subchannel... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add the call to removeListeners for the generator"
},
{
"from": "human",
"value": "#= require utensils/utensils\n#= require utensils/bindable\n\nclass utensils.<%= file_name.camelize %>\n constructor: (@el, data) ->\n @data = if data then data else @el.data()\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Manage an array of subscribers since there may be more than one subscription to a channel\n"
},
{
"from": "human",
"value": "class Cable.SubscriberManager\n constructor: (@cable) ->\n @subscribers = {}\n\n add: (subscriber) ->\n {identifier} = subscriber\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use the description and URL when present\n"
},
{
"from": "human",
"value": "{Range} = require('atom')\nfuzzaldrin = require('fuzzaldrin')\n\nmodule.exports =\nclass SnippetsProvider\n selector: '*'\n\n constructor: ->\n @showIcon = atom.config.get('autocomplet... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add footer callback in report data tables to recalculate & render table totals on\nfilering event\n"
},
{
"from": "human",
"value": "$(document).on \"page:change\", ->\n $(\".data-table\").each ->\n table = $(@)\n\n return if $.fn.dataTable.isDataTable(table)... | coffeescript | chosen |
[
{
"from": "system",
"value": "Make highlights async, use process.stdout.write not console.log\n\nconsole.log can do formatting of javascript data structures\nHopefully will be faster printing that way.\n\nNot sure if making it async will make it faster, the same,\nor slowing though.\n"
},
{
"from": ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Make the match for the braces non greedy to allow for regex grouping in validator rules.\n"
},
{
"from": "human",
"value": "define [\"jquery\", \"lib/forms/validators\", \"lib/forms/error_messages\"], ($, Validators, ErrorMessages) ->\n\n class InputValidator\n\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Change name of ElementWrap Specs\n"
},
{
"from": "human",
"value": "describe \"ElementWrapSpec\", ->\n describe \"Get Tree Structure\", ->\n it \"should get a tree Structure of all 'components' from the passed in element\", ->\n startElement = $j(\"\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add textarea to listen changes in neuron form\n"
},
{
"from": "human",
"value": "selector = \"form.neuron-form\"\nformHasChanged = false\n\n$(document).on \"page:load\", ->\n formHasChanged = false\n\n$(document).on \"change\", \"#{selector} input\", ->\n formHasC... | coffeescript | chosen |
[
{
"from": "system",
"value": "Replace load to init sticky\n"
},
{
"from": "human",
"value": "App.FoundationExtras =\n\n initialize: ->\n $(document).foundation()\n $(window).trigger \"load.zf.sticky\"\n $(window).trigger \"resize\"\n\n clearSticky = ->\n $(\"[data-sticky]\").fo... | coffeescript | chosen |
[
{
"from": "system",
"value": "Set default value of todayBtn to false.\n"
},
{
"from": "human",
"value": "Menglifang.Widgets.DatetimePicker = Ember.TextField.extend\n resetable: true\n\n format: 'yyyy-mm-dd hh:ii'\n autoclose: true\n todayBtn: true\n startDate: '1949-10-01'\n minuteStep: 10... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix property calculation in absence of buttons.\n"
},
{
"from": "human",
"value": "`import Em from \"vendor/ember\"`\n\nComponent = Em.Component.extend\n click: (evt) ->\n if evt.target.tagName is \"A\" and evt.target.target != '_blank'\n evt.st... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add test for proper validated linter.\n"
},
{
"from": "human",
"value": "Helpers = require '../lib/helpers'\n\ndescribe \"The Results Validation Helper\", ->\n it \"should throw an exception when nothing is passed.\", ->\n expect( -> Helpers.validateResults()).t... | coffeescript | chosen |
[
{
"from": "system",
"value": "Hide empty warning on past assignments\n"
},
{
"from": "human",
"value": "React = require 'react'\nBS = require 'react-bootstrap'\n\n{CloneAssignmentLink} = require './task-dnd'\n\nisEmpty = require 'lodash/isEmpty'\npartial = require 'lodash/partial'\n\n{PastTas... | coffeescript | chosen |
[
{
"from": "system",
"value": "Connect when getting upstream connection\n"
},
{
"from": "human",
"value": "noflo = require \"../../lib/NoFlo\"\n\nclass Split extends noflo.Component\n description: \"This component receives data on a single input port and sends the same data out to all connected ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Allow question marks in do you\n"
},
{
"from": "human",
"value": "# Description\n# @lefay do you ...?\n#\n# Author:\n# lcaro\n\nmodule.exports = (robot) ->\n robot.respond /do you (.+)$/i, (msg) ->\n msg.reply \"yes I do in fact \" + msg.match[1]\n"
},
{... | coffeescript | chosen |
[
{
"from": "system",
"value": "Remove config as it shoud be set outside.\n"
},
{
"from": "human",
"value": "Config = require '../config'\nargv = require('optimist')\n .usage('Usage: $0 --projectKey key --clientId id --clientSecret secret')\n .demand(['projectKey','clientId', 'clientSecret'])\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use _.string's `truncate` here instead"
},
{
"from": "human",
"value": "class Utils\n\n @getHTMLTitleFromHistoryFragment: (fragment) ->\n _.capitalize(fragment.split('\\/').join(' '))\n\n @getShortTaskID: (taskId) ->\n split = taskId.split(/\\-|\... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add the option to pass a path into the urlFor helper method\n"
},
{
"from": "human",
"value": "helpers = (app) ->\n\n # dynamic helpers are given request and response as parameters\n app.dynamicHelpers\n flash: (req, res) -> req.flash()\n logged_in: -> true\... | coffeescript | chosen |
[
{
"from": "system",
"value": "Disable Clear button when there's no crop\n"
},
{
"from": "human",
"value": "React = require 'react'\nCropInitializer = require './initializer'\nGenericTask = require '../generic'\n\nmodule.exports = React.createClass\n displayName: 'CropTask'\n\n statics:\n ge... | coffeescript | chosen |
[
{
"from": "system",
"value": ":art: Make simple functions more tidy\n"
},
{
"from": "human",
"value": "marked = require 'marked'\n\nrenderer = new marked.Renderer()\nrenderer.code = ->\n ''\nrenderer.blockquote = ->\n ''\nrenderer.heading = ->\n ''\nrenderer.html = ->\n ''\nrenderer.image = ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Deal with change sets that are not arrays\n"
},
{
"from": "human",
"value": "class Lanes.Models.ChangeSet extends Lanes.Models.Base\n\n constructor: ->\n super\n this.created_at = new Date\n\n session:\n update: 'object'\n by: 'obje... | coffeescript | chosen |
[
{
"from": "system",
"value": "Remove the Arnold emoji since it's not displaying\n"
},
{
"from": "human",
"value": "# Description:\n# Listens for words and sometimes replies with an Arnie quote\n#\n# Dependencies:\n# None\n#\n# Commands:\n# None\n#\n# Author:\n# Casey Lawrence <cjlaw@user... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix notification class, clear on hover\n"
},
{
"from": "human",
"value": "Backbone = require 'backbone'\nDropdownView = require '../../dropdown/client/dropdown_view.coffee'\nmediator = require '../../../lib/mediator.coffee'\n\ntemplate = -> require('../templates/_dr... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add new Jasmine test to ensure Segment.io is called when appropriate\n"
},
{
"from": "human",
"value": "describe 'Logger', ->\n it 'expose window.log_event', ->\n expect(window.log_event).toBe Logger.log\n\n describe 'log', ->\n it 'send a request to log eve... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add custom event handlers to Game.State\n"
},
{
"from": "human",
"value": "class Game.State extends Game.TwoWay\n constructor: () ->\n @objects = {}\n @eventCounters = {}\n super\n onEvent: (e) ->\n # Add timestamped instance to the event counters obje... | coffeescript | chosen |
[
{
"from": "system",
"value": "Remove extraneous variable from specs\n"
},
{
"from": "human",
"value": "{sortLines} = require '../lib/sort-lines'\n\ndescribe \"SortLines\", ->\n describe \"sortLines(editor)\", ->\n [editor, buffer] = []\n\n beforeEach ->\n editor = atom.project.openSy... | coffeescript | chosen |
[
{
"from": "system",
"value": "Update Atom RuboCop Linter command path\n"
},
{
"from": "human",
"value": "\"*\":\n editor:\n fontFamily: \"Menlo\"\n fontSize: 15\n showIndentGuide: true\n invisibles: {}\n core:\n ignoredNames: [\n \".DS_Store\"\n \".bundle\"\n \".g... | coffeescript | chosen |
[
{
"from": "system",
"value": "Remove output listener when connection is closed\n"
},
{
"from": "human",
"value": "Peer = require './peer'\nGuid = require 'guid'\n\nmodule.exports =\n createPeer: ->\n id = Guid.create().toString()\n new Peer(id, host: 'ec2-54-218-51-127.us-west-2.compute.a... | coffeescript | chosen |
[
{
"from": "system",
"value": "Include only what we need for syntax highlighting\n"
},
{
"from": "human",
"value": "Vue = require 'vue'\nhljs = require 'highlight.js'\npath = require 'path'\nvmdl = require '../../src/vue-mdl'\nrequire './style/mdl.scss'\nrequire 'highlight.js/styles/tomorrow.css'... | coffeescript | chosen |
[
{
"from": "system",
"value": "Refresh apps whenever Applications directory removed\n"
},
{
"from": "human",
"value": "class NFolderItemView extends NFileItemView\n\n constructor:(options = {},data)->\n\n options.cssClass or= \"folder\"\n super options, data\n\n data.on \"fs.chmod.fini... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use jquery function load() instead of get() when refreshing a feed. Instead of inserting new new entries, the whole list of entries for the feed is inserted, replacing the previous list.\n\nThis has several advantages:\n\n- cleaner code.\n- ensure that when refreshing always th... | coffeescript | chosen |
[
{
"from": "system",
"value": ":bug: Fix markers persisting after disabling the plugin\n"
},
{
"from": "human",
"value": "{CompositeDisposable} = require 'event-kit'\n\nmodule.exports = (findAndReplace, minimapPackage) ->\n\n class MinimapFindResultsView\n\n constructor: (@model) ->\n @s... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add config for taTranslations (no functional change)\n"
},
{
"from": "human",
"value": "angular.module(\"admin.enterprises\", [\r \"admin.paymentMethods\",\r \"admin.utils\",\r \"admin.shippingMethods\",\r \"admin.users\",\r \"textAngular\",\r \"admin.side_men... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use section element in package keymap view\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 @div class: 'package-... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use default attributes that make it clear that it is a new record.\n"
},
{
"from": "human",
"value": "# A model for a timelet\n#\nclass Essence.Models.Timelet extends Backbone.Model\n localStorage: new Backbone.LocalStorage 'Timelets'\n defaults:\n running: fal... | coffeescript | chosen |
[
{
"from": "system",
"value": "Send unset type as \"Other\"\n"
},
{
"from": "human",
"value": "module.exports =\n initial:\n value: 'initial'\n slug: ''\n copy: 'Select Organization Type'\n type: null\n gallery:\n value: 'gallery'\n slug: 'gallery'\n copy: 'Gallery'\n ty... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix a bug which prevent to see tenants because of the loader\n"
},
{
"from": "human",
"value": "Vosae.TenantsShowView = Vosae.PageTenantView.extend\n classNames: [\"outlet-tenants\", \"page-show-tenants\"]\n\n didInsertElement: ->\n @_super()\n\n # If user a... | coffeescript | chosen |
[
{
"from": "system",
"value": "Remove classification.update from survey task\n"
},
{
"from": "human",
"value": "React = require 'react'\n\nmodule.exports = React.createClass\n displayName: 'SurveyAnnotationView'\n\n getDefaultProperties: ->\n task: null\n classification: null\n annotat... | coffeescript | chosen |
[
{
"from": "system",
"value": "Revert \"add ab tests for home button\"\n\nThis reverts commit d9c43403f18cbcab5d508a2c493683fa285d51e2.\n"
},
{
"from": "human",
"value": "# 1. Don't define a test with null as one of the options\n# 2. If you change a test's options, you must also change the test's... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add on new song submit handler.\n"
},
{
"from": "human",
"value": "goog.provide 'app.songs.edit.react.Page'\n\ngoog.require 'goog.ui.Textarea'\n\nclass app.songs.edit.react.Page\n\n ###*\n @param {app.Routes} routes\n @constructor\n ###\n constructor: (rout... | coffeescript | chosen |
[
{
"from": "system",
"value": "Tweak textarea input control; trimming unnecessary events, better layout when animating.\n"
},
{
"from": "human",
"value": "#= require jquery.autosize\n\n#we're using jquery autosize rather than jquery elastic since this works\n#even if initialized before the elemen... | coffeescript | chosen |
[
{
"from": "system",
"value": "Rename metadata -> segmentation in Events table to play well with metabase\n"
},
{
"from": "human",
"value": "Settings = require \"settings-sharelatex\"\nlogger = require \"logger-sharelatex\"\n_ = require \"underscore\"\n\nif !Settings.analytics?.postgres?\n\tmodul... | coffeescript | chosen |
[
{
"from": "system",
"value": "Set default content to variables editor\n"
},
{
"from": "human",
"value": "BaseStackEditorView = require './basestackeditorview'\n\n\nmodule.exports = class VariablesEditorView extends BaseStackEditorView\n\n\n constructor: (options = {}, data) ->\n\n super opti... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add collection detail E2E test cases.\n"
},
{
"from": "human",
"value": "expect = require('./helpers/expect')()\n\nPage = require './helpers/page'\n\ndescribe 'E2E Testing Collection Detail', ->\n page = null\n\n beforeEach ->\n page = new Page '/quip/breast?pr... | coffeescript | chosen |
[
{
"from": "system",
"value": "Remove react explicit dependency in progressbar test\n"
},
{
"from": "human",
"value": "React = require('react/addons')\nexpect = require('expect')\nutils = require('./utils')\n\nTestUtils = React.addons.TestUtils\nProgressBar = require('../progre... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add JFUM options to example\n"
},
{
"from": "human",
"value": "exists = require('fs').exists\napp = module.exports = require('express')()\nJFUM = require '../../src/index.coffee'\njfum = new JFUM()\n\napp.options '/upload', jfum.optionsHandler.bind(jfum)\napp.post '... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix indentation issues question mark\n"
},
{
"from": "human",
"value": "{div, button} = React.DOM\nLeagueButton = React.createFactory @LeagueButton\nPlayerTable = React.createFactory @PlayerTable\nTeamTable = React.createFactory @TeamTable\n\n@League = React.createC... | coffeescript | chosen |
[
{
"from": "system",
"value": "Use CU_TEST_SERVER environment variable when creating URL to contact custard on. Allows for running Selenium on a different computer.\n"
},
{
"from": "human",
"value": "# Shared before/after functions for all integration tests\n\n{wd40, browser} = require 'wd40'\ncl... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add overleaf id to user schema\n"
},
{
"from": "human",
"value": "mongoose = require 'mongoose'\nSettings = require 'settings-sharelatex'\n\nSchema = mongoose.Schema\nObjectId = Schema.ObjectId\n\nSubscriptionSchema = new Schema\n\tadmin_id : {type:ObjectId, r... | coffeescript | chosen |
[
{
"from": "system",
"value": ":bug: Fix for scenarios where the localStorage item has old version's value\n"
},
{
"from": "human",
"value": "\n\nFS = require('fs')\nmodule.exports =\n Save:->\n try\n Files = []\n ActiveEditor = atom.workspace.getActiveEditor()\n atom.workspace... | coffeescript | chosen |
[
{
"from": "system",
"value": "Initialize $scope.address when switching to existing address mode\n"
},
{
"from": "human",
"value": "Sprangular.directive 'addressSelection', ->\n restrict: 'E'\n templateUrl: 'addresses/selection.html'\n scope:\n address: '='\n addresses: '='\n countrie... | coffeescript | chosen |
[
{
"from": "system",
"value": "Remove body from mac signature\n"
},
{
"from": "human",
"value": "class TentStatus.MacAuth\n constructor: (@options) ->\n @options = _.extend {\n time: parseInt((new Date * 1) / 1000)\n nonce: Math.random().toString(16).substring(3)\n }, @options\n\... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add asterisk to display_name to trigger search\n\nI made a small backend change. This fixes user search for it\n"
},
{
"from": "human",
"value": "React = require 'react'\nSelect = require 'react-select'\nPromiseRenderer = require './promise-renderer'\napiClient = re... | coffeescript | chosen |
[
{
"from": "system",
"value": "Replace resource URLs with https versions\n\nThis modifies the Subject resource to use an HTTPS url for the image location. Previously, it was doing a secure prefetch, but an insecure load on the classifier interface"
},
{
"from": "human",
"value": "Reflux = require... | coffeescript | chosen |
[
{
"from": "system",
"value": "Set up js for swapping video for image\n"
},
{
"from": "human",
"value": "{ DEMO_BLOCKS } = require('sharify').data\nimagesLoaded = require 'imagesloaded'\nslides = require './slides.coffee'\nloggedOutNav = require '../../../components/logged_out_nav/client/index.co... | coffeescript | chosen |
[
{
"from": "system",
"value": "Send analytics data when onboarding dismissed\n"
},
{
"from": "human",
"value": "define [\n\t\"base\"\n], (App) ->\n\tApp.controller \"AutoCompileOnboardingController\", ($scope) ->\n\t\trecompileBtn = angular.element('#recompile')\n\t\tpopover = angular.element('.o... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add user's name and background color to User JS model\n"
},
{
"from": "human",
"value": "window.ActiveService = class ActiveService\n constructor: ->\n @user = null\n\n\n setUser: (@user) ->\n getUser: -> @user\n\n isLoggedIn: -> !!(@user && @user... | coffeescript | chosen |
[
{
"from": "system",
"value": "Disable default link behaviour on project filter links\n"
},
{
"from": "human",
"value": "$ ->\n projects = $('#projects').clone()\n\n languages = []\n $('#languages a').click (e) ->\n clicked_language = $(this).data().language\n\n unless clicked_language?\... | coffeescript | chosen |
[
{
"from": "system",
"value": "Convert dates to actual JS dates for form\n"
},
{
"from": "human",
"value": "angular.module(\"hyperadmin\")\n .controller \"FormCtrl\", ($scope, $state, Restangular, Flash) ->\n @resource = { }\n mode = $state.current.data.mode\n\n if mode == \"new\"\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix about page mobile menu selector\n"
},
{
"from": "human",
"value": "loggedOutNav = require '../../../components/logged_out_nav/client/index.coffee'\n\nmodule.exports = ->\n $html = $('html, body')\n $el = $('.js-about')\n $links = $el.find('a[href*=#]')\n $se... | coffeescript | chosen |
[
{
"from": "system",
"value": "Change json payload to not have root element to align with what server expects. "
},
{
"from": "human",
"value": "App = window.App = Ember.Application.create()\n\nApp.ApplicationSerializer = DS.RESTSerializer.extend DS.EmbeddedRecordsMixin,\n\n keyForAttribute: (ke... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add Client-ID header for Twitch API\n"
},
{
"from": "human",
"value": "urlparse = require 'url'\n\nrequest = require '../request'\nMedia = require '../media'\n\nexports.lookup = (id) ->\n return request.getJSON(\"https://api.twitch.tv/kraken/videos/#{id}\").then(... | coffeescript | chosen |
[
{
"from": "system",
"value": "Make mine more visible in daylight\n"
},
{
"from": "human",
"value": "Crafty.c 'Mine',\n init: ->\n @requires 'Color, Enemy'\n\n drone: (attr = {}) ->\n @attr _.defaults(attr,\n w: 25, h: 25, health: 200)\n @origin 'center'\n @color '#999999'\n\n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Set up A/B test for Collection Hubs (for now admin-only)\n\nSigned-off-by: Myk Bilokonsky <75f49cdf1693dcb6c4be1fd9678ee266e958b7d5@gmail.com>\n"
},
{
"from": "human",
"value": "# Centralizes configuration for currently running split tests\n#\n# eg.\n# header_design... | coffeescript | chosen |
[
{
"from": "system",
"value": "Remove trailing spaces, trigger jenkins\n"
},
{
"from": "human",
"value": "### define \n../view/skeletontracing/abstract_tree_view : AbstractTreeView\n###\n\n\nclass AbstractTreeController\n\n\n model : null\n view : null\n\n\n constructor : (@model) ->\n \n ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Set up environment variable to hold Kato \"All\" room HTTP POST URL.\n"
},
{
"from": "human",
"value": "# Description:\n# Enable Hubot to post messages to Kato rooms using the HTTP API, allowing for messages with a coloured background and varying poster name.\n#\n... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix form button alignment issue\n"
},
{
"from": "human",
"value": "angular.module(\"hyperadmin\")\n .directive \"formActions\", ->\n template: \"\"\"\n<div class=\"form-group\">\n <div class=\"col-sm-offset-2 col-sm-10\">\n <md-button type=\"submit\" class=\... | coffeescript | chosen |
[
{
"from": "system",
"value": "Increment number by 1000s until almost at target\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 ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix bad parameter in sweepPrivateKey\n"
},
{
"from": "human",
"value": "@ledger.wallet ?= {}\r\n\r\n_.extend ledger.wallet,\r\n\r\n sweepPrivateKey: ({privateKey, account, txFee: 10000}, callback) ->\r\n completion = new CompletionClosure(callback)\r\n recipi... | coffeescript | chosen |
[
{
"from": "system",
"value": "Fix Admin PayPal Verified Tag Update\n\nFix the Admin page to ensure that when a User verifies their account,\nthe corresponding PayPal verified tag in the header is updated.\n"
},
{
"from": "human",
"value": "$(\".club-admin-status-text\").html \"<%= escape_javascr... | coffeescript | chosen |
[
{
"from": "system",
"value": "Allow views to be appended\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 @$el = ... | coffeescript | chosen |
[
{
"from": "system",
"value": "Remove conditional polyfilling again. es6-promise should always be included since native Promise in Chrome is buggy. object-assign is so small it makes no sense to conditionally load on its own. fetch is a bit unfinished, and doesn't support cookies, so giving up on that for no... | coffeescript | chosen |
[
{
"from": "system",
"value": "Return promise rejection to prevent Bluebird from complaining\n"
},
{
"from": "human",
"value": "Promise = require('bluebird')\ncanvas = require('./_canvas')\n\nexports.getAll = ->\n\treturn canvas.get\n\t\tresource: 'application'\n\t\toptions:\n\t\t\torderby: 'app_... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add blur method to SearchInputView.\n"
},
{
"from": "human",
"value": "define ['jquery', 'underscore', 'backbone', 'bootstrap', 'plugins/select_range'], ($, _, Backbone) ->\n class SearchInputView extends Backbone.View\n\n initialize: () ->\n @$el.typeahead... | coffeescript | chosen |
[
{
"from": "system",
"value": "Make sure that regular scripts are build too\n"
},
{
"from": "human",
"value": "gulp = require \"gulp\"\n\ndefaultTasks = [\n \"scripts:minify:watch\",\n \"styles:minify:watch\",\n \"develop:watch\",\n]\n\ngulp.task \"default\", defaultTasks, ->\n"
},
{
"... | coffeescript | chosen |
[
{
"from": "system",
"value": "Add computed property for expiration display\n\n[#98105252]\n"
},
{
"from": "human",
"value": "`import DS from 'ember-data'`\n\nCommit = DS.Model.extend\n remoteId: DS.attr('string')\n message: DS.attr('string')\n state: DS.attr('string')\n remoteUrl: DS.attr('s... | coffeescript | chosen |
[
{
"from": "system",
"value": ":white_check_mark: Add tests for buffer color properties\n"
},
{
"from": "human",
"value": "ColorScanner = require '../lib/color-scanner'\n{TextEditor} = require 'atom'\n\ndescribe 'ColorScanner', ->\n [scanner, editor, bufferColor] = []\n\n withTextEditor = (fixt... | coffeescript | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.