conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Fix to support jQuery 1.7\n"
},
{
"from": "human",
"value": "/**\n@module ember\n@submodule ember-views\n*/\n\nvar jQuery = Ember.imports.jQuery;\nEmber.assert(\"Ember Views require jQuery 1.8, 1.9, 1.10, or 2.0\", jQuery && (jQuery().jquery.match(/^((1\\.(8|9|10))|... | javascript | chosen |
[
{
"from": "system",
"value": "Add missing return statement to model user\n"
},
{
"from": "human",
"value": "const mongo = require('../db')\nconst utils = require('../utils')\nconst crypto = require('crypto')\n\n/**\n * User :: {\n * id: String,\n * username: String,\n * password: String... | javascript | chosen |
[
{
"from": "system",
"value": "Check for checked boxes on load.\n"
},
{
"from": "human",
"value": "$(document).ready(function() {\n\t$('#delete_btn').attr('disabled', 'disabled');\n\n\t$('#toggle_all').change(function() {\n\t\t$('tbody :checkbox').prop('checked', $(this).is(':checked'));\n\t});\n... | javascript | chosen |
[
{
"from": "system",
"value": "Add code to video list item component to display videos properly\n"
},
{
"from": "human",
"value": "import React from 'react';\n\nconst VideoListItem = (props) => {\n return <li>Video</li>\n};\n\nexport default VideoListItem;\n"
},
{
"from": "gpt",
"val... | javascript | chosen |
[
{
"from": "system",
"value": "Add to allowed fields for download\n"
},
{
"from": "human",
"value": "const ALLOWED_CSV_FIELD_PATHS = [\n 'ids.GB-CHC',\n 'ids.charityId',\n 'name',\n 'contact.email',\n 'contact.person',\n 'contact.postcode',\n 'contact.address',\n 'contact.geo.longitude',\... | javascript | chosen |
[
{
"from": "system",
"value": "Send router to projects view\n"
},
{
"from": "human",
"value": "define([\n\n 'Backbone',\n\n //Collection\n 'app/collections/projects',\n\n //Views\n 'app/views/projectsController',\n\n //Templates\n 'text!templates/home/loginTemplate.html',\n], function(\n\n... | javascript | chosen |
[
{
"from": "system",
"value": "Send state + props to the client\n"
},
{
"from": "human",
"value": "// Dependencies\nimport express from 'express';\nimport React from 'react';\nimport ReactDOMServer from 'react-dom/server';\n\n// Components\nimport Home from '../src/pages/home';\n\n// Stores\nimpo... | javascript | chosen |
[
{
"from": "system",
"value": "Remove line numbers from error messages.\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\n'use strict'\n\nconst Repl = require('./index.js')\n\nconst printPrompt = () => process.stdout.write('> ')\n\nconsole.log('Welcome to the Solidity REPL!')\nprintPrompt()... | javascript | chosen |
[
{
"from": "system",
"value": "Fix location of song info metadata\n"
},
{
"from": "human",
"value": "import { setMetadata } from './actions/metadata'\n\nfunction _loadMetadata(store) {\n const songRequire = require.context('../songs/', true, /(info|song|package)\\.json$/)\n const metaData = son... | javascript | chosen |
[
{
"from": "system",
"value": "Fix typo for Jasmine TeamCityReporter\n"
},
{
"from": "human",
"value": "/**\n * Add custom settings to Jasmine.\n */\n\n/*globals jasmine*/\n\njasmine.VERBOSE = true;\n\nrequire('jasmine-expect');\nrequire('jasmine-expect-moment');\nrequire('jasmine-expect-react');... | javascript | chosen |
[
{
"from": "system",
"value": "Make sure not to find the same error twice when comparing errors\n"
},
{
"from": "human",
"value": "const _ = require('lodash');\nconst chai = require('chai');\n\nchai.use(function(_chai, utils) {\n utils.addChainableMethod(chai.Assertion.prototype, 'haveErrors', f... | javascript | chosen |
[
{
"from": "system",
"value": "Change images REST get route\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst express = require('express');\nconst MsgQueueClient = require('msgqueue-client');\n\nconst mqServerConfig = require('../common/config/mqserver.js');\nconst config = require('./con... | javascript | chosen |
[
{
"from": "system",
"value": "Clean up console log message\n"
},
{
"from": "human",
"value": "// API.AI REQUST\n// =============================================================================\nvar request = require('request')\n\nfunction aiRequest(postURL, accessToken, sessionId, message) {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix div id. Google makes it dinamic\n"
},
{
"from": "human",
"value": "function getParams() {\n var raw_params = document.URL.replace(document.baseURI + '?', ''),\n params = {};\n\n $.each(raw_params.split(/&/g), function() {\n var slice = this.split(/=/);... | javascript | chosen |
[
{
"from": "system",
"value": "Remove paragraph for less space\n"
},
{
"from": "human",
"value": "var ws = new WebSocket(\"ws://localhost:8081/\"),\n\t\tmessageList = document.getElementById(\"messageList\");\n\nws.onopen = function(ev) {\n\tconsole.log('Connection opened.');\n}\nws.onclose = fun... | javascript | chosen |
[
{
"from": "system",
"value": "Set base interval to 40 (to simulate a 25 fps video)\n"
},
{
"from": "human",
"value": "/*!\n * @license MIT\n * @author Marek Kalnik\n * @copyright (c) Maisons du Monde\n */\n;(function ($, document)\n{\n \"use strict\";\n\n $.MDMAnimationHeartbeat = function... | javascript | chosen |
[
{
"from": "system",
"value": "FIX - 1 not true\n"
},
{
"from": "human",
"value": "/*\n\tA JavaScript file to fetch and display the new articles, upon loading the page or clicking of the 'play again' button.\n*/\n\nvar correct_answer;\n\nvar getArticle = function() {\n\tvar xhttp;\n\txhttp = new ... | javascript | chosen |
[
{
"from": "system",
"value": "Use correct params in jsdoc\n"
},
{
"from": "human",
"value": "import {\n report,\n ruleMessages,\n styleSearch\n} from \"../../utils\"\n\nexport const ruleName = \"color-hex-notation\"\n\nexport const messages = ruleMessages(ruleName, {\n expected: (c, h) => `E... | javascript | chosen |
[
{
"from": "system",
"value": "Change column email with username\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar mongoose = require('mongoose');\nvar Schema = mongoose.Schema;\n\nvar User = new Schema({\n\tname: String,\n\temail: String,\n\tpassword: String,\n\tdate: Date\n});\n\nmodule.e... | javascript | chosen |
[
{
"from": "system",
"value": "Move hasPerm and hasInterfce out of constructor into own methods\n"
},
{
"from": "human",
"value": "import { isVersionCompatible } from './discoverServices';\n\nclass Stripes {\n constructor(properties) {\n const logger = properties.logger;\n\n Object.assign(... | javascript | chosen |
[
{
"from": "system",
"value": "Add gulp status on script build\n"
},
{
"from": "human",
"value": "const browserify = require('browserify');\nconst watchify = require('watchify');\nconst gulp = require('gulp');\nconst $ = require('gulp-load-plugins')();\nconst config = require('../config');\nconst... | javascript | chosen |
[
{
"from": "system",
"value": "Remove borough from locality lookup\n\nWe may have gotten overeager adding borough everywhere, it's definitely\nbelow locality in the heirarchy.\n"
},
{
"from": "human",
"value": "/* Look up which admin fields should be populated for a record in a given layer.\n *\n... | javascript | chosen |
[
{
"from": "system",
"value": "Enable email verification and password reset\n"
},
{
"from": "human",
"value": "orion.users.configure({\n // Allow users to create accounts, but don't give them any admin permissions\n forbidClientAccountCreation: false,\n defaultPermissions: ['files.upload', 'en... | javascript | chosen |
[
{
"from": "system",
"value": "FIX - MongoDB warning msgs\n"
},
{
"from": "human",
"value": "/**\n * Created by javascript on 24/09/2016.\n */\n\nconst mongoose = require('mongoose');\n\n// Create the database connection\nmongoose.connect(process.env.MONGO_DB_URL);\n\n// CONNECTION EVENTS\n// Whe... | javascript | chosen |
[
{
"from": "system",
"value": "Remove repetition in helper function"
},
{
"from": "human",
"value": "(function() {\n var textWaveElements = document.getElementsByClassName('txtwav');\n\n for (var i = 0, length = textWaveElements.length; i < length; i++) {\n var el = textWaveElements[i];\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add redirect to login page for when cookie is not found on logout\n"
},
{
"from": "human",
"value": "/**\n * Created by Omnius on 6/26/16.\n */\n'use strict';\n\nconst retrieveFromToken = require(process.cwd() + '/server/helpers/hkdfTokenGenerator').retrieveFromToke... | javascript | chosen |
[
{
"from": "system",
"value": "Add controls for moving player and make camera follow\n"
},
{
"from": "human",
"value": "(function() {\n 'use strict';\n\n function Game() {\n this.player = null;\n }\n\n Game.prototype = {\n\n create: function () {\n var x = this.game.width / 2\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add helper to change array of cookie objects into a header string\n"
},
{
"from": "human",
"value": "/**\n * Created by JiaHao on 5/10/15.\n */\n\nvar os = require('os');\nvar sift = require('sift-string');\n\nfunction platformIsWindows() {\n var platform = os.pl... | javascript | chosen |
[
{
"from": "system",
"value": "Remove unnecessary functions in SockJSConnection\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst debug = require('debug')('sockjs:connection');\nconst stream = require('stream');\nconst uuid = require('uuid');\n\nclass SockJSConnection extends stream.Duple... | javascript | chosen |
[
{
"from": "system",
"value": "Add a universal option for bindingProviderInstance\n"
},
{
"from": "human",
"value": "//\n// This becomes ko.options\n// --\n//\n// This is the root 'options', which must be extended by others.\n\nvar options = {\n deferUpdates: false,\n\n useOnlyNativeEvents:... | javascript | chosen |
[
{
"from": "system",
"value": "Send URL to the new URl field directly.\n"
},
{
"from": "human",
"value": "function onLoad() {\n chrome.tabs.getSelected(null, function(tab) {\n chrome.tabs.create({\"url\": 'https://www.bueda.com/posts/new/?reply=' +\n encodeURIComponen... | javascript | chosen |
[
{
"from": "system",
"value": "fix: Update to latest Page specs\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar\n gulp = require('gulp'),\n fs = require('fs'),\n yaml = require('js-yaml'),\n path = require('path'),\n glob = require('glob'),\n _ = require('lodash')\n ;\n\nvar len = ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix bad English message for pagination\n"
},
{
"from": "human",
"value": "export default {\n aor: {\n action: {\n delete: 'Delete',\n show: 'Show',\n list: 'List',\n save: 'Save',\n create: 'Create',\n... | javascript | chosen |
[
{
"from": "system",
"value": "Add comment to header copying\n"
},
{
"from": "human",
"value": "var http = require('http');\n\nvar forwardUrl = process.env.ForwardUrl;\nvar listenPort = process.env.PORT;\n\nhttp.createServer(function(req, res) {\n\tvar headers = {};\n\tfor (var header in req.head... | javascript | chosen |
[
{
"from": "system",
"value": "Set default values for Account\n"
},
{
"from": "human",
"value": "import DS from 'ember-data';\n\nexport default DS.Model.extend({\n email: DS.attr(),\n following: DS.attr(),\n favorites: DS.attr(),\n pins: DS.attr()\n});\n"
},
{
"from": "gpt",
"valu... | javascript | chosen |
[
{
"from": "system",
"value": "Remove the opposite event when image loading completes or fails .\n"
},
{
"from": "human",
"value": "define('summernote/core/async', function () {\n /**\n * Async functions which returns `Promise`\n */\n var async = (function () {\n /**\n * read content... | javascript | chosen |
[
{
"from": "system",
"value": "Test exampleReducer when action type is EXAMPLE_ACTION\n"
},
{
"from": "human",
"value": "import exampleReducer from \"../../src/reducers/example-reducer\";\n\ndescribe(\"exampleReducer\", () => {\n test(\"initial state\", () => {\n expect(exampleReducer(undefin... | javascript | chosen |
[
{
"from": "system",
"value": "Test - apps without a name are allowed too!\n"
},
{
"from": "human",
"value": "/*jshint expr: true*/\n\"use strict\";\nvar fs = require(\"fs\");\nvar chai = require(\"chai\");\nvar chaiAsPromised = require(\"chai-as-promised\");\nchai.use(chaiAsPromised);\nvar expec... | javascript | chosen |
[
{
"from": "system",
"value": "Add short/long designation to expiration page subtitle.\n"
},
{
"from": "human",
"value": "window.onload = () => setTimeout(async () => await load());\n\nasync function load() {\n chrome.windows.getCurrent({}, thisWindow => {\n chrome.windows.update(thisWindow.i... | javascript | chosen |
[
{
"from": "system",
"value": "Add preloader queries for navigation\n"
},
{
"from": "human",
"value": "import Relay from 'react-relay';\nimport fromGraphQL from 'react-relay/lib/fromGraphQL';\n\nconst QUERIES = {\n \"organization/show\": Relay.QL`\n query PipelinesList($organization: ID!, $te... | javascript | chosen |
[
{
"from": "system",
"value": "Add FormReducer to redux reducers\n"
},
{
"from": "human",
"value": "import { combineReducers } from 'redux';\nimport NavigationReducer from './NavigationReducer';\nimport SyncReducer from './SyncReducer';\nimport { PagesReducer } from './PagesReducer';\nimport { Mo... | javascript | chosen |
[
{
"from": "system",
"value": "Disable networks (not working for testnet)"
},
{
"from": "human",
"value": "module.exports = {\n build: \"webpack\",\n deploy: [\n \"Conference\"\n ],\n rpc: {\n host: \"localhost\",\n port: 8545\n }\n};\n"
},
{
"from": "gpt",
"value": "mod... | javascript | chosen |
[
{
"from": "system",
"value": "Remove redundant IIFE, clean up comments\n"
},
{
"from": "human",
"value": "(function(bespoke) {\n\n bespoke.plugins.<%= pluginNameCamelized %> = function(deck) {\n\n /*\n Interact with the deck\n https://github.com/markdalgleish/bespoke.js#deck-instan... | javascript | chosen |
[
{
"from": "system",
"value": "Fix length of arguments in promise extensions\n"
},
{
"from": "human",
"value": "// Used by promise extensions that are based on array extensions.\n\n'use strict';\n\nvar callable = require('es5-ext/lib/Object/valid-callable')\n , deferred = require('../../deferred... | javascript | chosen |
[
{
"from": "system",
"value": "Trim quotes around the CLI argument.\n"
},
{
"from": "human",
"value": "const jsonic = require('jsonic');\nconst qs = require('qs');\n\n/**\n * Start a timer.\n *\n * @return {Array}\n */\nexports.startTimer = function() {\n return process.hrtime();\n};\n\n/**\n * ... | javascript | chosen |
[
{
"from": "system",
"value": "Remove misspelled field in Client Schema\n\nThe client Domain field was intended to be unique, due to the misspelled\n`unique` field this was not the case. The Client Domain field also does\nnot make sense to be unique as it's not required and multiple clients\ncould stem from ... | javascript | chosen |
[
{
"from": "system",
"value": "Use async/await instead of Promise chains\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst fs = require('fs-extra');\nconst pkgUp = require('pkg-up');\nconst getDistTags = require('./fetch-dist-tags');\nconst calcDistTag = require('./calc-dist-tag');\n\nmod... | javascript | chosen |
[
{
"from": "system",
"value": "Use full path for emojione to be supported on non-web apps\n"
},
{
"from": "human",
"value": "import { emojify } from 'react-emojione';\n\nconst options = {\n styles: {\n backgroundImage: 'url(//cdnjs.cloudflare.com/ajax/libs/emojione/' +\n '1.5.2/assets/spri... | javascript | chosen |
[
{
"from": "system",
"value": "Add EventEmitter to SS object\n"
},
{
"from": "human",
"value": "/* global window */\n'use strict';\n\nvar SceneScroller =\n { Entity : require(\"./entity\")\n }\n\nmodule.exports = SceneScroller\n\nif(window) {\n window.SceneScroller = SceneScroller\n}\n"
},
... | javascript | chosen |
[
{
"from": "system",
"value": "fix(transformation): Fix the problem where the file field is empty after asset transformation\n\nthe sync tool was not able to process assets correctly due to a wrong transformation done the asset\n\ncloses #68\n"
},
{
"from": "human",
"value": "import { omit, pick ... | javascript | chosen |
[
{
"from": "system",
"value": "Allow some listener changes after init.\n\nYou’re not allowed to modify start event listeners after the transition is\nscheduled, so as to avoid changes during a start event (due to changes being\ncopy-on-write). However, you should still be allowed to change the OTHER event\nl... | javascript | chosen |
[
{
"from": "system",
"value": "Fix bug in string interpolation\n"
},
{
"from": "human",
"value": "/**\n * Created by tc on 4/Mar/2014.\n */\n\nvar currentId = 1;\n\nexport class Slide {\n constructor (title = `Slide $currentId`, text = `Default text $currentId`,\n thumbnail = `[t... | javascript | chosen |
[
{
"from": "system",
"value": "Use equal heights in feature segment rows\n"
},
{
"from": "human",
"value": "import Ui from \"./Ui\";\n\nexport default class FeatureContainer {\n static displayFeatures(features) {\n let categoryMap = FeatureContainer._createCategoryMap(features);\n\n ... | javascript | chosen |
[
{
"from": "system",
"value": "[example] Update example to use provider.\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport ReactDOM from 'react-dom';\nimport NotificationCenter from '../component/notification-center';\n\n\nconsole.log('Exemple Notification center');\n\nconst m... | javascript | chosen |
[
{
"from": "system",
"value": "Refactor the transformHead function to use the custom concat function\n"
},
{
"from": "human",
"value": "import R from 'ramda';\nimport curry from './curry.js';\nimport compose from './compose.js';\nimport head from './head.js';\nimport tail from './tail.js';\n\n// ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix regression caused by lodash API change\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst _ = require('lodash');\nconst log = require('./log');\n\nlet mapper = module.exports;\nlet lightMap = {};\n\n/**\n * Add light name to identifier mapping.\n *\n * @p... | javascript | chosen |
[
{
"from": "system",
"value": "Use aside rather than div for element\n"
},
{
"from": "human",
"value": "WebBlocks.Blocks.addBlock({\n \n 'name': 'Message',\n \n 'test': function(element){\n return $(element).hasClass('message');\n },\n \n 'definition': function(){\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Throw a nice error if no match is found\n"
},
{
"from": "human",
"value": "exports = module.exports = class Connection {\n constructor(socket, handler) {\n this.sock = socket;\n socket.on('join', room => {\n socket.join(room);\n const { route: { met... | javascript | chosen |
[
{
"from": "system",
"value": ":truck: Move official music server out of gh-pages\n"
},
{
"from": "human",
"value": "export const OFFICIAL_SERVER_URL = '/music'\n\nexport function load (url) {\n return fetch(url + '/index.json').then(response => response.json())\n}\n"
},
{
"from": "gpt",... | javascript | chosen |
[
{
"from": "system",
"value": "Update for tilelive.js exports change.\n"
},
{
"from": "human",
"value": "var _ = require('underscore')._,\n Tile = require('tilelive.js');\n\nvar mapnik = require('mapnik');\nmapnik.register_datasources('/usr/local/lib/mapnik2/input');\nmapnik.register_fonts('/u... | javascript | chosen |
[
{
"from": "system",
"value": "Add \"add-module-exports' babel plugin to plugins array\n\nPreviously it was not actually being used.\nFixes \"TypeError: Super expression must either be null or a function,\nnot object\" error when building master on windows.\n"
},
{
"from": "human",
"value": "var ... | javascript | chosen |
[
{
"from": "system",
"value": "Add leanModal to JS file\n"
},
{
"from": "human",
"value": "$(document).ready(function() {\n // This is called after the document has loaded in its entirety\n // This guarantees that any elements we bind to will exist on the page\n // when we try to bind to them\... | javascript | chosen |
[
{
"from": "system",
"value": "Change key usage to a shallow copy\n"
},
{
"from": "human",
"value": "// This is of course a bit silly. And should be refactored.\nimport {parse, stringify, normalize} from 'objectpath';\n\nlet name = function(key, separator, formName, omitNumbers) {\n if(key) {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add name and title text\n"
},
{
"from": "human",
"value": "import React from 'react'\nimport injectSheet from 'react-jss'\n\nimport { Phone, Desktop } from '../components/breakpoints'\n\nconst Team = ({ classes }) => <div>THE TEAM</div>\n\nconst styles = {}\n\nexpor... | javascript | chosen |
[
{
"from": "system",
"value": "Put console output into one pre block. Align console output to bottom of block\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport { Panel, Accordion, Button, ButtonGroup, ButtonToolbar } from 'react-bootstrap';\nimport RemoteRobotStore from '../st... | javascript | chosen |
[
{
"from": "system",
"value": "Set a default icon style\n"
},
{
"from": "human",
"value": "import NotificationMessage from 'ember-cli-notifications/components/notification-message';\nimport ENV from '../config/environment';\n\nvar config = ENV['ember-cli-notifications'] || {};\n\nexport default N... | javascript | chosen |
[
{
"from": "system",
"value": "FIX (sharing gists): Fix shared gist not being loaded properly and now displays gist files.\n"
},
{
"from": "human",
"value": "'use strict';\n\nfunction sharedCtrl($scope, ghAPI, gistData, $routeParams, $location, notificationService, $window) {\n\n $scope.author... | javascript | chosen |
[
{
"from": "system",
"value": "Gitlab: Include issue number in description, remove \" · Issues\" from projectName"
},
{
"from": "human",
"value": "/*jslint indent: 2, unparam: true*/\n/*global $: false, document: false, togglbutton: false*/\n\n'use strict';\n\ntogglbutton.render('.issue .detail-p... | javascript | chosen |
[
{
"from": "system",
"value": "Update firebase config with dev db\n"
},
{
"from": "human",
"value": "// Change it to your own database\nexport default {\n apiKey: \"AIzaSyDes5f-3Rskw0dbPBbw1IhY68GoP-8dLpY\",\n authDomain: \"quictionary-c7eff.firebaseapp.com\",\n databaseURL: \"https://quiction... | javascript | chosen |
[
{
"from": "system",
"value": "Allow transition to exit route\n\nFixes issue where clicking the \"Exit\"\nbutton on the exp-thank-you frame would\nredirect to the 'participate.survey.index'\nroute, where the beforeModel hook would\nthen redirect to the consent form.\n"
},
{
"from": "human",
"valu... | javascript | chosen |
[
{
"from": "system",
"value": "Fix Connections loading when no entity eids found\n"
},
{
"from": "human",
"value": "// @flow\nimport React from 'react'\nimport {compose} from 'redux'\nimport {connect} from 'react-redux'\nimport {withDataProviders} from 'data-provider'\nimport {isNil} from 'lodash... | javascript | chosen |
[
{
"from": "system",
"value": "Rectify problem with the page-loading signal disappearing much too soon on\nstorage login by removing the automatic clearing of the signal on ajax\ncompletion. We already had sufficient explicit provisions for hiding the\nsignal.\n"
},
{
"from": "human",
"value": "/... | javascript | chosen |
[
{
"from": "system",
"value": "Add `replace` flag to directive"
},
{
"from": "human",
"value": "/**\n * AngularJS throbber directive\n *\n * @author Hein Bekker <hein@netbek.co.za>\n * @copyright (c) 2015 Hein Bekker\n * @license http://www.gnu.org/licenses/agpl-3.0.txt AGPLv3\n */\n\n(function (... | javascript | chosen |
[
{
"from": "system",
"value": "Check if duration is null or undefined\n"
},
{
"from": "human",
"value": "/*\n|--------------------------------------------------------------------------\n| Utils\n|--------------------------------------------------------------------------\n*/\n\nexport default {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Make sure only supported hooks are given status 200\n"
},
{
"from": "human",
"value": "/**\n * GitLab CE Webhook Server v0.1.0\n * GitLab CE local Webhook Server based on NodeJS to\n * trigger some tasks when repo is updated.\n * start this server by running `node G... | javascript | chosen |
[
{
"from": "system",
"value": "Add a wrapping div around control as a placeholder.\n"
},
{
"from": "human",
"value": "var Controls = Datagrid.Controls = Backbone.View.extend({\n initialize: function() {\n this.pager = this.options.pager;\n\n this.left = this._resolveView(this.options.lef... | javascript | chosen |
[
{
"from": "system",
"value": "Remove unnessacary semicolon (thanks CC!)\n"
},
{
"from": "human",
"value": "var _ = require('underscore');\n\nmodule.exports = RangeValidator;\nfunction RangeValidator(options) {\n this.defaults = {\n min: 0,\n max: 0\n };\n this.options = _.extend(this.de... | javascript | chosen |
[
{
"from": "system",
"value": "Add up and down myo code\n"
},
{
"from": "human",
"value": "$(document).ready(function() {\n \"use strict\";\n console.log(\"main.js loaded\");\n myoTest();\n});\n\nfunction myoTest() {\n\tMyo.connect('com.myojs.main');\n\n\t//Start talking with Myo Connect... | javascript | chosen |
[
{
"from": "system",
"value": "Make code work on Node 4\n"
},
{
"from": "human",
"value": "const { buildPreset } = require('babel-preset-es2015')\n\nconst { BABEL_ENV } = process.env\n\nmodule.exports = {\n presets: [\n [ buildPreset, {\n loose: true,\n modules: BABEL_ENV === 'es' ?... | javascript | chosen |
[
{
"from": "system",
"value": "Sort the list of meeting series by last change descending\n"
},
{
"from": "human",
"value": "import { MeetingSeries } from '/imports/meetingseries'\nimport { Minutes } from '/imports/minutes'\n\nTemplate.meetingSeriesList.onRendered(function () {\n});\n\n\nTemplate.... | javascript | chosen |
[
{
"from": "system",
"value": "fix(terminal): Print output directly on console with no formatting\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar util = require('util');\n\nfunction Terminal() {\n this.subLevel = 1;\n}\n\n/**\n * Display received data in format on terminal\n * @param {... | javascript | chosen |
[
{
"from": "system",
"value": "Add support for Redis cloud\n"
},
{
"from": "human",
"value": "import kue from 'kue';\nimport { isNil } from 'ramda';\n\nconst queue = kue.createQueue();\n\nexport const publishTaker = (payload) => {\n console.info(`Publishing:`);\n console.info(payload);\n\n ret... | javascript | chosen |
[
{
"from": "system",
"value": "chore: Use buildUrl helpers in serializer-and-push\n"
},
{
"from": "human",
"value": "import { isArray } from '@ember/array';\n\nexport default function(options, response) {\n let modelName = this.constructor.modelName || this.constructor.typeKey;\n let modelClass... | javascript | chosen |
[
{
"from": "system",
"value": "Enable symlinked apps in dist\n"
},
{
"from": "human",
"value": "var task = function(gulp, config) {\n 'use strict';\n gulp.task('browserSync', function() {\n\n var path = require('path');\n var fs = require('fs');\n var browserSync = require('browser-syn... | javascript | chosen |
[
{
"from": "system",
"value": "Change name of test in reducer\n"
},
{
"from": "human",
"value": "import { reducer } from '../src'\nimport { INVALIDATE_SESSION } from '../src/actionTypes'\n\ndescribe('session reducer', () => {\n it('returns default state when initialized', () => {\n const expe... | javascript | chosen |
[
{
"from": "system",
"value": "Change tooltip delay to 3secs\n"
},
{
"from": "human",
"value": "(function () {\n\n// event triggers\n$('a.person-link').live('click.linkPerson', function (e) {\n var $this = $(this);\n\n // Preserve hashtag if the current page is of a person\n if (window.c... | javascript | chosen |
[
{
"from": "system",
"value": "Set scraping interval vased on NODE_ENV\n"
},
{
"from": "human",
"value": "// @flow\nconst Rx = require('rxjs/Rx')\nconst axios = require('axios')\nconst _ = require('lodash')\n\nconst event = require('../event')\n\n// const INTERVAL: number = 1000 * 60 * 60 * 1// ... | javascript | chosen |
[
{
"from": "system",
"value": "Add failing test for digit removal bug\n\nDigits are unintentionally removed from strings.\n"
},
{
"from": "human",
"value": "var tape = require('tape'),\n emojiStrip = require('..'),\n emoji\n;\n\ntape('strip emoji', function (t) {\n emoji = 'thumbs-up👍 f... | javascript | chosen |
[
{
"from": "system",
"value": "Update blueprint to match addon guides\n"
},
{
"from": "human",
"value": "module.exports = {\n normalizeEntityName: function() {\n // this prevents an error when the entityName is\n // not specified (since that doesn't actually matter\n // to us\n },\n\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Comment about where notifier comes from"
},
{
"from": "human",
"value": "var Notifier = require(\"../notifier\");\n\nwindow.onerror = function (message, file, line) {\n setTimeout(function () {\n new Notifier().notify({\n message: message,\n stack: '()... | javascript | chosen |
[
{
"from": "system",
"value": "Use app modulePrefix instead of regexp\n"
},
{
"from": "human",
"value": "export default {\n name: 'load-fixtures',\n\n initialize: function() {\n Object.keys(require._eak_seen).forEach(function(module) {\n if (!module.match(/^\\w[\\w\\d\\-]+\\/models/)) {... | javascript | chosen |
[
{
"from": "system",
"value": "Add optimizelyHook to call tool\n"
},
{
"from": "human",
"value": "// @flow\nimport React from 'react';\nimport { render } from 'react-dom';\nimport { camelizeKeys } from '../util/util';\nimport ComponentWrapper from '../components/ComponentWrapper';\nimport CallToo... | javascript | chosen |
[
{
"from": "system",
"value": "Fix false positive user helper test\n"
},
{
"from": "human",
"value": "const expect = require('chai').expect;\nconst config = require('getconfig');\n\nconst UserHelper = require('../../app/util/user-helper');\n\ndescribe('User Helper', () => {\n const userHelper = ... | javascript | chosen |
[
{
"from": "system",
"value": "Use slate-core-data for people model/proxy\n"
},
{
"from": "human",
"value": "Ext.define('SlateAdmin.store.progress.interims.Students', {\n extend: 'Ext.data.Store',\n requires: [\n 'SlateAdmin.proxy.Records'\n ],\n\n\n model: 'SlateAdmin.model.pe... | javascript | chosen |
[
{
"from": "system",
"value": "Exclude poets from typeahead that have already been added to the poem.\n\nUse the typeahead filter function to exclude items that are already in the list. This approach has the limitation of potentially returning fewer than 10 results. In a worst-case scenario, the top 10 poets... | javascript | chosen |
[
{
"from": "system",
"value": "Add `console.log` shim to avoid errors while deving.\n"
},
{
"from": "human",
"value": "addEventListener('message', function(e) {\n if (e.data) {\n try {\n importScripts('../' + e.data);\n } catch(e) {\n self._ = {};\n }\n postMessage(_.VERSIO... | javascript | chosen |
[
{
"from": "system",
"value": "Change tests to wait until the id check is complete to test assertions\n"
},
{
"from": "human",
"value": "/* bender-tags: editor,unit */\n/* bender-ckeditor-plugins: autoid */\n\n'use strict';\n\n(function() {\n bender.editor = {\n config: {\n enterMode: CK... | javascript | chosen |
[
{
"from": "system",
"value": "Use same limit for on API requests\n"
},
{
"from": "human",
"value": "const fetch = require('node-fetch');\n\nconst baseURL = 'https://api.deutschebahn.com/bahnpark/v1';\n\nclass ParkingspaceLoader {\n constructor(APIToken) {\n this.APIToken = APIToken;\n }\n\n... | javascript | chosen |
[
{
"from": "system",
"value": "Add verbose mode to turn off logging\n\nThis will be done using callbacks\n\nBug: https://github.com/miroRucka/bh1750/pull/6\nChange-Id: Iedac11d08a4ee0081732922fdedf1fb8a1204c2a\nSigned-off-by: Philippe Coval <ff46fec9739d31cce915aabcc3a7a2c00eee4d6c@osg.samsung.com>\n"
},
... | javascript | chosen |
[
{
"from": "system",
"value": "Call Request Body Read 버그 수정\n"
},
{
"from": "human",
"value": "var RequestBody = require('../context/requestbody.js');\n\nfunction CallRequestBody(ctx, data) {\n RequestBody.apply(this, [ctx]);\n\n this._ctx = ctx;\n this._data = data;\n}\n\nCallRequestBod... | javascript | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.