conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Add otherwise route, change routes to tweets & repos\n"
},
{
"from": "human",
"value": "angular.module('Gistter')\n\n.config(['$routeProvider', function($routeProvider) {\n $routeProvider\n\n .when('/', {\n controller: 'TwitterController',\n templateUr... | javascript | chosen |
[
{
"from": "system",
"value": "Make replaceText() count the sub-groups.\n\nInstead of requiring the number of capturing groups as an argument,\nmatch the provided expression with the empty string to see how many\ngroups are captured.\n\n(cburschka/cadence#235)\n"
},
{
"from": "human",
"value": "(... | javascript | chosen |
[
{
"from": "system",
"value": "Enable closing error messages with ESC\n\nHad to use bootbox.alert instead of bootbox.dialog\n"
},
{
"from": "human",
"value": "// Copyright (c) 2014-2015, NVIDIA CORPORATION. All rights reserved.\n\nfunction errorAlert(data) {\n var title, msg;\n if (data.st... | javascript | chosen |
[
{
"from": "system",
"value": "Add service name on start log\n"
},
{
"from": "human",
"value": "import express from 'express';\nimport bodyParser from 'body-parser';\n\n\nimport { startDB } from '../db/config';\nimport api from './api';\n\n\nasync function application (config) {\n const app = ex... | javascript | chosen |
[
{
"from": "system",
"value": "Update gulp export support pretty\n"
},
{
"from": "human",
"value": "const gulp = require('gulp'),\n rename = require('gulp-rename'),\n less = require('gulp-less'),\n pug = require('gulp-pug')\n argv = require('yargs').argv\n\n\n/**\n * Compile less to c... | javascript | chosen |
[
{
"from": "system",
"value": "Remove unnecessary IE check for placeholder"
},
{
"from": "human",
"value": "var app = {\n Profiles: null\n}; // Let's namespace our app's functions in here.\n\n(function($) {\n $().ready(function() {\n $('html').removeClass('no-js').addClass('js');\n\n... | javascript | chosen |
[
{
"from": "system",
"value": "Change route for options menu\n"
},
{
"from": "human",
"value": "import React, { Component } from 'react';\nimport { Link } from 'react-router';\nimport * as styles from './Menu.scss';\n\nexport default class Menu extends Component {\n render() {\n return (\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add watch as default gulp task\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar gulp = require('gulp');\nvar watch = require('gulp-watch');\nvar batch = require('gulp-batch');\nvar jshint = require('gulp-jshint');\nvar lab = require('gulp-lab');\n\nvar jsfile... | javascript | chosen |
[
{
"from": "system",
"value": "Update for no defer function in babel-runtime\n"
},
{
"from": "human",
"value": "let promise = Promise.defer();\nlet recaptcha = null;\n\nwindow.vueRecaptchaApiLoaded = () => {\n recaptcha = window.grecaptcha;\n promise.resolve(recaptcha);\n};\n\nexport function g... | javascript | chosen |
[
{
"from": "system",
"value": "Fix test task and run in parallel.\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst gulp = require('gulp');\nconst validator = require('.');\n\nconst ok = () => {\n let status = true;\n return gulp.src('./test/ok.html')\n .pipe(validator())\n .on('e... | javascript | chosen |
[
{
"from": "system",
"value": "Fix varriable name of json\n"
},
{
"from": "human",
"value": "(function ($) {\n $(window).load(function(){\n window.hologram(document.getElementsByClassName('hologram-area')[0], {\n uploadUrl: Drupal.settings.Hologram.uploadUrl,\n onComplete:... | javascript | chosen |
[
{
"from": "system",
"value": "Add constant for auth field header (updateAction -> PEP)\n"
},
{
"from": "human",
"value": "/*\n * Copyright 2015 Telefonica Investigación y Desarrollo, S.A.U\n *\n * This file is part of perseo-fe\n *\n * perseo-fe is free software: you can redistribute it and/or\n... | javascript | chosen |
[
{
"from": "system",
"value": "Implement starting job by manual\n"
},
{
"from": "human",
"value": "var CronJob = require('cron').CronJob;\n\n/**\n * Create cron job based on config\n * @param {Object} config Configuration object\n * @returns {*}\n */\nmodule.exports = function (config) {\n retur... | javascript | chosen |
[
{
"from": "system",
"value": "Fix lint to work with absolute paths (tslint VS Code plugin)\n"
},
{
"from": "human",
"value": "\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", { value: true });\n\nconst Lint = require(\"tslint\");\n// These files aren't part of the debug adapters... | javascript | chosen |
[
{
"from": "system",
"value": "Fix bug where auth would pass on after failure\n"
},
{
"from": "human",
"value": "/* This Source Code Form is subject to the terms of the Mozilla Public\n * License, v. 2.0. If a copy of the MPL was not distributed with this\n * file, You can obtain one at http://mo... | javascript | chosen |
[
{
"from": "system",
"value": "Fix notification counter when there's more than 100 notifications\n\nTurns out Movim 0.14 can call this function with a string \"+100\".\n"
},
{
"from": "human",
"value": "const {ipcRenderer} = require('electron');\n\nwindow.electron = {\n openExternal: function(... | javascript | chosen |
[
{
"from": "system",
"value": "build(Gulpfile): Include enterprise icons in build.\n"
},
{
"from": "human",
"value": "(function () {\n 'use strict';\n\n module.exports = function (gulp, plugins, config) {\n return function () {\n return plugins.vinylFs.src(config.patternsPath + '/**/*.i... | javascript | chosen |
[
{
"from": "system",
"value": "Disable liborc at runtime when using sharp\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\n\n\n'use strict';\n\nError.stackTraceLimit = 30;\n\nexports.root = __dirname;\n\n// Executed once all application were loaded.\n// Used to \"attach\" hooks for models ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix package.json parsing when project is not initialized\n\n"
},
{
"from": "human",
"value": "\"use strict\";\n\nconst DefaultOptions = require('./DefaultOptions'),\n path = require('path'),\n _ = require('lodash'),\n fs = require('fs');\n\nclass OptionsPar... | javascript | chosen |
[
{
"from": "system",
"value": "Use relative path to typestring for tests\n"
},
{
"from": "human",
"value": "/**\n * typestring - In-memory TypeScript compiler\n * https://github.com/gavinhungry/typestring\n */\n\n(function() {\n 'use strict';\n\n var fs = require('fs');\n var tap = require('t... | javascript | chosen |
[
{
"from": "system",
"value": "Use Ember.set instead of model.set\n"
},
{
"from": "human",
"value": "import Ember from 'ember';\n\nexport default function loadAll(model, relationship, dest, options = {}) {\n var page = options.page || 1;\n var query = {\n 'page[size]': 10,\n p... | javascript | chosen |
[
{
"from": "system",
"value": "Use the env API key as suggested by Apollo Engine documentation\n"
},
{
"from": "human",
"value": "export default {\n apiKey: '', // Set your Engine API key here\n logging: {\n level: 'DEBUG' // Engine Proxy logging level. DEBUG, INFO, WARN or ERROR\n }\n};\n"... | javascript | chosen |
[
{
"from": "system",
"value": "Remove the relevant list item from the AppView after deleting a resource\n"
},
{
"from": "human",
"value": "$(function() {\n window.resources = new ResourceList;\n\n window.AppView = Backbone.View.extend({\n el: $('#app'),\n\n resourceTemplate: _.template($(... | javascript | chosen |
[
{
"from": "system",
"value": "Fix parsing empty content values\n"
},
{
"from": "human",
"value": "var textPattern = /^text\\/*/;\n\nmodule.exports = function parseResponse(response) {\n var key, contentType;\n\n for (key in response) {\n if (Buffer.isBuffer(response[key])) {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Allow message field to be deselected\n"
},
{
"from": "human",
"value": "CRM.$(function($) {\n var $messageField = $('#customData .custom-group-Letter_To input[data-crm-custom=\"Letter_To:Message_Field\"]')\n createEntityRef($messageField, $('#profile_id').val());\... | javascript | chosen |
[
{
"from": "system",
"value": "Add som comments to sync version.\n"
},
{
"from": "human",
"value": "(function (window){\n // SYNC\n var sync = $('#zip_sync').required().and().custom('sync', function (value) {\n var ok;\n\n //ZIP CODE: 90040060\n $.ajax({\n 'u... | javascript | chosen |
[
{
"from": "system",
"value": "Add a Discord message request hook and a function to retrieve selected channel info\n"
},
{
"from": "human",
"value": "/* discord.js */\n"
},
{
"from": "gpt",
"value": "var DISCORD = (function(){\n var regexMessageRequest = /\\/channels\\/(\\d+)\\/messa... | javascript | chosen |
[
{
"from": "system",
"value": "Print dots, switch PDF to mm\n"
},
{
"from": "human",
"value": "import jsPDF from 'jspdf';\nimport * as simple from '../selectors/simple';\n\nconst exportPdf = state => {\n const doc = new jsPDF({\n unit: 'in',\n format: [11, 8.5] // US Letter; eventually sho... | javascript | chosen |
[
{
"from": "system",
"value": "Update spacing when importing components.\n"
},
{
"from": "human",
"value": "import {\n Forms,\n Select,\n Dropdown,\n Modal,\n Datepicker,\n Timepicker\n} from 'materialize-css';\n\ndocument.addEventListener('DOMContentLoaded', function() {\n // ... | javascript | chosen |
[
{
"from": "system",
"value": "Add another game of life test\n"
},
{
"from": "human",
"value": "// Test the game of life script\n\nconst test = require('ava');\nconst gol = require('../../app/js/home/gol.js');\n\ntest('properly initializes game of life', (t) => {\n const g = new gol.Game();\n t... | javascript | chosen |
[
{
"from": "system",
"value": "Delete duplicate keyEventHandlers initialize statement.\n"
},
{
"from": "human",
"value": "'use strict';\n\nangular.module('Keyboard', [])\n\n.service('KeyboardManager', ['$document', function($document) {\n\n var keyboardMap = {\n 37: 'left',\n 38:... | javascript | chosen |
[
{
"from": "system",
"value": "Add example for aside-only <Text>\n"
},
{
"from": "human",
"value": "import React from 'react';\n\nimport Text from 'src/Text';\nimport DebugBox from '../DebugBox';\n\nfunction BasicTextExample() {\n return (\n <div>\n <DebugBox>\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add offline support for swagger generation\n"
},
{
"from": "human",
"value": "'use strict';\n\nmodule.exports = function(grunt) {\n grunt.registerMultiTask('swagger', 'Generate Source from Swagger files', function(){\n var fs = require('fs');\n var ... | javascript | chosen |
[
{
"from": "system",
"value": "Make this a post because it deletes data\n"
},
{
"from": "human",
"value": "var express = require('express');\r\nvar DataStore = require('./regard-data-store.js');\r\n\r\nvar router = express.Router();\r\nvar dataStore = new DataStore('regard', 'website');\r\n\r\nro... | javascript | chosen |
[
{
"from": "system",
"value": "Add an array into Board.initial to store the initial state of the boar when the game is started\n"
},
{
"from": "human",
"value": "// Model\nvar Board = {\n // initialize generates the pieces to display on the board to start the game\n initial: function initial(){... | javascript | chosen |
[
{
"from": "system",
"value": "Add OMDb API call with axios and lifecycle hooks.\n"
},
{
"from": "human",
"value": "import React from 'react'\nimport Header from './Header'\nconst { shape, string } = React.PropTypes\n\nconst Details = React.createClass({\n propTypes: {\n show: shape({\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Move logging for bookmarks close from voyager to vlui\n"
},
{
"from": "human",
"value": "'use strict';\n\n/**\n * @ngdoc directive\n * @name vlui.directive:bookmarkList\n * @description\n * # bookmarkList\n */\nangular.module('vlui')\n .directive('bookmarkList', fu... | javascript | chosen |
[
{
"from": "system",
"value": "Fix issue when source and destination has the same path\n\nIt should override the source rather than creating an empty file.\n\nRef. #17.\n"
},
{
"from": "human",
"value": "var Compressor = require('node-minify').minify;\n\nexports.init = function(grunt) {\n\n\t// R... | javascript | chosen |
[
{
"from": "system",
"value": "Update text format to UNIX\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\n\nvar adventure = require('adventure');\nvar shop = adventure('javascript-adventure');\nvar path = require('path');\n\nvar problems = [ '01_Hello_World', '02_Functions' ];\nproblems.f... | javascript | chosen |
[
{
"from": "system",
"value": "Increase max users you can dood\n"
},
{
"from": "human",
"value": "const toSay = 'whats up dood';\nmodule.exports = function(bot){\n\tbot.addCommand('dood', 'dood', '[<user>]', USER_LEVEL_NORMAL, false, function(event){\n\t\tif(!event.params[0]){\n\t\t\tbot.message(... | javascript | chosen |
[
{
"from": "system",
"value": "Use normal xo config for eslint even with es2015\n\nThis is a personnal opinion, but the es2015 version is a bit\noverzealous to my taste and I wish to keep the config minimal.\n"
},
{
"from": "human",
"value": "'use strict';\nvar generators = require('yeoman-genera... | javascript | chosen |
[
{
"from": "system",
"value": "Remove semicolons. URL-encode stuff in request.\n"
},
{
"from": "human",
"value": "\n\nvar KWHC = {\n init: function() {\n // Bind device buttons\n $('.device__button').on('click', this.controlDevice);\n },\n controlDevice: function(e) {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Remove design-system from finder.hackclub.com redirect"
},
{
"from": "human",
"value": "import React, { Component } from 'react'\nimport { Text } from '@hackclub/design-system'\n\nconst URL = 'https://finder.hackclub.com'\n\nexport default class extends Component {\... | javascript | chosen |
[
{
"from": "system",
"value": "Decrease the number of bars in lesson 1\n"
},
{
"from": "human",
"value": "var d3 = require('d3');\n\nvar dataSet = [];\nfor (var i = 0; i < 50; i++) {\n dataSet[i] = Math.random()*300;\n}\n\nd3.select('.l1')\n .selectAll('div')\n .data(dataSet)\n .enter()\n .a... | javascript | chosen |
[
{
"from": "system",
"value": "Add variables and code for emptying output list at the beginning of a new number submission\n"
},
{
"from": "human",
"value": "var pingPong = function(userNumber) {\n if ((userNumber % 3 === 0) || (userNumber % 5 === 0)) {\n return true;\n } else {\n return ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix error on the object returned\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst _ = require('underscore');\n\nfunction buildSlots(slots) {\n const res = {};\n _.each(slots, function(value, key) {\n res[key] = {\n name: key,\n value: value\n... | javascript | chosen |
[
{
"from": "system",
"value": "Use Beta as main entry point\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport {\n Route,\n Switch,\n Redirect,\n} from 'react-router-dom';\n\nimport ComingSoon from 'features/ComingSoon';\nimport NotFoundView from 'components/NotFound';\nimpo... | javascript | chosen |
[
{
"from": "system",
"value": "Update unit test for App container\n"
},
{
"from": "human",
"value": "import React from 'react';\r\nimport { createStore } from 'redux';\r\nimport { browserHistory } from 'react-router';\r\nimport { expect } from 'chai';\r\nimport { shallow } from 'enzyme';\r\nimpor... | javascript | chosen |
[
{
"from": "system",
"value": "Fix unit tests failing due to incorrect mime type of the served test file\n"
},
{
"from": "human",
"value": "// Karma configuration file, see link for more information\n// https://karma-runner.github.io/0.13/config/configuration-file.html\n\nmodule.exports = functio... | javascript | chosen |
[
{
"from": "system",
"value": "Check for document.currentScript before assigning it\n\nIE>10 supports HTMLScriptElement.async but not document.currentScript.\n"
},
{
"from": "human",
"value": "}\n\n// auto-load Promise polyfill if needed in the browser\nvar doPolyfill = typeof Promise === 'undefi... | javascript | chosen |
[
{
"from": "system",
"value": "Change /build to /public to match current directory structure\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar express = require('express');\nvar mongoose = require('mongoose');\nvar port = process.env.PORT || 3000;\n\nvar app = express();\napp.use(express.st... | javascript | chosen |
[
{
"from": "system",
"value": "Clean up some dead code\n"
},
{
"from": "human",
"value": "var R = require('ramda');\nvar util = require('util');\nvar jomini = require('jomini');\n\nfunction flattenHistory(history) {\n var result = [];\n\n var isDate = R.pipe(R.split('.'), R.length, R.gt(2));\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Convert Gravity's loader to use the generic loader\n"
},
{
"from": "human",
"value": "import DataLoader from 'dataloader';\nimport qs from 'qs';\nimport gravity from '../apis/gravity';\nimport cache from '../cache';\nimport timer from './timer';\nimport debug from '... | javascript | chosen |
[
{
"from": "system",
"value": "Create logger on Deck creation\n"
},
{
"from": "human",
"value": "var utils = require('./utils');\n\nmodule.exports.create = function (id, client) {\n var instance = {};\n\n /*\n\n */\n instance.id = 'radio.' + id;\n\n instance.volume = function (params) {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Use const keyword for object var\n"
},
{
"from": "human",
"value": "/*!\n * Author: Pierre-Henry Soria <hello@ph7cms.com>\n * Copyright: (c) 2020, Pierre-Henry Soria. All Rights Reserved.\n * License: GNU General Public License; See PH7.LICENSE.txt ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix typo fetching config for node broker connection\n"
},
{
"from": "human",
"value": "var mqtt = require('mqtt'),\n fs = require('fs'),\n url = require('url'),\n config = require('config');\n\nmodule.exports.connect = function () {\n var caCert,\n mq... | javascript | chosen |
[
{
"from": "system",
"value": "Handle simple BinaryExpressions in Path.prototype.needsParens.\n\nDealing with precedence will come later.\n"
},
{
"from": "human",
"value": "var assert = require(\"assert\");\nvar n = require(\"./types\").namedTypes;\n\nfunction Path(node, parent) {\n assert.ok(... | javascript | chosen |
[
{
"from": "system",
"value": "Fix confition to check sender\n\nso sender.tab is optional.\n\nhttp://developer.chrome.com/extensions/runtime.html#type-MessageSender\n"
},
{
"from": "human",
"value": "chrome.runtime.onMessage.addListener(\n function(request, sender, sendResponse) {\n // 'use s... | javascript | chosen |
[
{
"from": "system",
"value": "Fix TMN specific site param\n"
},
{
"from": "human",
"value": "/*\nCopyright (c) 2013, Yahoo! Inc. All rights reserved.\nCopyrights licensed under the New BSD License.\nSee the accompanying LICENSE file for terms.\n*/\n\n'use strict';\n\n// The `pathTo()` function i... | javascript | chosen |
[
{
"from": "system",
"value": "Add max age to static requests in production.\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar express = require('express');\nvar passport = require('passport');\nvar path = require('path');\n\nvar routes = require('./routes');\n\nvar rootDir = path.dirname(r... | javascript | chosen |
[
{
"from": "system",
"value": "Reduce log messages in production\n"
},
{
"from": "human",
"value": "var db = require('./db');\n\nmodule.exports = function (server, cookieParser, sessionStore) {\n var io = require('socket.io').listen(server);\n var SessionSockets = require('session.socket.io... | javascript | chosen |
[
{
"from": "system",
"value": "Lib: Move things, clean up stuff...\n"
},
{
"from": "human",
"value": "/*\n * tuxedo\n * https://github.com/goliatone/tuxedo\n * Created with gbase.\n * Copyright (c) 2014 goliatone\n * Licensed under the MIT license.\n */\n/* jshint strict: false, plusplus: true */... | javascript | chosen |
[
{
"from": "human",
"value": "Add test runner for Node.js\n"
},
{
"from": "gpt",
"value": "/**\n * Run test specs in node environment\n * Usage:\n * $ cd seajs\n * $ node tests/runner-node.js\n */\n\nrequire(\"../lib/sea-node\")\nvar test = require(\"./test\")\n\nvar specs = [\n \"module/ano... | javascript | chosen |
[
{
"from": "system",
"value": "Update json file location for Kiosk.\n"
},
{
"from": "human",
"value": "// Define BuoyRequest\nvar BuoyRequest = (function () {\n var getData = function(buoy_id, callback) {\n Zepto.ajax(\n {\n url: dataFeedUrl(buoy_id),\n type: 'GET',\n... | javascript | chosen |
[
{
"from": "system",
"value": "892: Use select2 for Response.user_id field\n"
},
{
"from": "human",
"value": "(function (ns, klass) {\n\n ns.Response = klass = {}\n\n // conditions array\n klass.conditions = [];\n\n klass.init = function() {\n // hookup edit location links\n $(\"a.edit_... | javascript | chosen |
[
{
"from": "system",
"value": "Add support for mouse buttons"
},
{
"from": "human",
"value": "function patchMouseEvent (e) {\n return {\n deltaX: e.dx || 0,\n deltaY: e.dy || 0,\n deltaZ: 0,\n deltaMode: 0,\n x: e.x,\n y: e.y,\n offsetX: e.x,\n offsetY: e.y,\n altKey: ... | javascript | chosen |
[
{
"from": "system",
"value": "Add support for old task names\n"
},
{
"from": "human",
"value": "var gulp = require('gulp');\n\nrequire('require-dir')('./tasks', { recurse: true });\n\ngulp.task('default', gulp.parallel(require('./config').tasks.default.tasks));\n"
},
{
"from": "gpt",
... | javascript | chosen |
[
{
"from": "system",
"value": "Make routedViewListMixin smarter, use pop routes rather than goBack\n"
},
{
"from": "human",
"value": "var { State, Navigation } = require('react-router');\nvar RouteHandler = require('react-router/modules/mixins/RouteHandler');\n\n// mixin for viewlists\n// works w... | javascript | chosen |
[
{
"from": "system",
"value": "Use the correct path for mocks\n"
},
{
"from": "human",
"value": "\"use strict\";\n\nconst Client = require(\"./client\")();\n\nconst Provider = require(\"../lib/provider\")({\n Client,\n});\n\nconst Notification = require(\"../lib/notification\");\nconst token = r... | javascript | chosen |
[
{
"from": "system",
"value": "Add styles for buttons and author\n"
},
{
"from": "human",
"value": "var getGradient = function () {\n var red1 = Math.floor(Math.random() * 256);\n var green1 = Math.floor(Math.random() * 256);\n var blue1 = Math.floor(Math.random() * 256);\n\n var red2... | javascript | chosen |
[
{
"from": "system",
"value": "Correct spelling of panel option\n"
},
{
"from": "human",
"value": "import DS from 'ember-data';\n\nexport default DS.Transform.extend({\n deserialize: function(serialized) {\n let map = {\n 1: 'Single',\n 2: 'Double',\n 3: 'Triple',\n 4: 'Qu... | javascript | chosen |
[
{
"from": "system",
"value": "Add columns controller and funcions for column manager.\n"
},
{
"from": "human",
"value": "(function(){\n\n angular\n .module('app')\n .controller('TableController', [\n 'tableService',\n TableController\n ]);\n\n function TableController(tableS... | javascript | chosen |
[
{
"from": "system",
"value": "Remove require tests that should be passing. wtf\n"
},
{
"from": "human",
"value": "var helper = require('specHelper');\n\ndescribe(\"Nodyn globals\", function() {\n it('should pass testGlobal', function() {\n expect(typeof global).toBe('object');\n });\n\n it... | javascript | chosen |
[
{
"from": "system",
"value": "Add Collapse Button ToggleClass Function!\n"
},
{
"from": "human",
"value": "(function (window) {\n\t\"use strict\";\n\n\tvar document = window.document,\n\t\tconsole = window.console,\n\t\t$ = window.jQuery,\n\t\tgrace = window.grace;\n\n\t$.fn.graceCollapse = func... | javascript | chosen |
[
{
"from": "system",
"value": "Set bracestyle to recommended psr-2\n"
},
{
"from": "human",
"value": "module.exports = {\n trailingComma: 'es5',\n tabWidth: 4,\n semi: true,\n singleQuote: true,\n useTabs: false,\n printWidth: 120,\n bracketSpacing: false,\n arrowParens: '... | javascript | chosen |
[
{
"from": "system",
"value": "Add story kind include helper\n"
},
{
"from": "human",
"value": "/*\n * STORY-BASED SNAPSHOT HELPER FUNCTIONS\n *\n * For more information, please visit:\n * https://github.com/storybooks/storybook/tree/master/addons/storyshots\n */\n\nconst getExcludeKindRegex = ({... | javascript | chosen |
[
{
"from": "system",
"value": "Add back css for JLab plugin."
},
{
"from": "human",
"value": "/* Copyright 2015 Bloomberg Finance L.P.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain ... | javascript | chosen |
[
{
"from": "system",
"value": "Change privacy question status behaviour\n\nThe privacy question service status field now is hidden when it is not\nrequired (when the privacy questions are disabled). And they are\ndisplayed in their disabled state when the toggle is enabled.\n"
},
{
"from": "human",
... | javascript | chosen |
[
{
"from": "system",
"value": "Fix the test case for npm 1.0\n"
},
{
"from": "human",
"value": "var fs = require('fs');\nvar http = require('http-stack');\nvar assert = require('assert');\nvar icecast = require('icecast-stack');\n\nexports['test 4EverFloyd-1.dump'] = function() {\n var stream = ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix json to decomposed endpoint transformation.\n"
},
{
"from": "human",
"value": "var semver = require('semver');\nvar createError = require('./createError');\n\nfunction decompose(endpoint) {\n var regExp = /^(?:([\\w\\-]|(?:[\\w\\.\\-]+[\\w\\-])?)=)?([^\\|#]+)... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"remove an unnecessary JSON.stringfiy\"\n\nThis reverts commit cdfec782572df047a3bd13496aeca0f5025003af.\n"
},
{
"from": "human",
"value": "var path = require('path')\nvar webpack = require('webpack')\nvar HtmlWebpackPlugin = require('html-webpack-plugin')\n... | javascript | chosen |
[
{
"from": "system",
"value": "Remove usage of prototype extensions\n\nAddons should not assume existence of prototype extensions and are now disabled by default.\n"
},
{
"from": "human",
"value": "import Ember from 'ember';\n\nexport default Ember.Component.extend({\n tagName: 'div',\n attribu... | javascript | chosen |
[
{
"from": "system",
"value": "Add Default scaling to pods\n"
},
{
"from": "human",
"value": "const DEFAULT_POD_RESOURCES = {cpus: 0.001, mem: 32};\nconst DEFAULT_POD_CONTAINER =\n {name: 'container-1', resources: DEFAULT_POD_RESOURCES};\nconst DEFAULT_POD_SPEC = {containers: [DEFAULT_POD_CONT... | javascript | chosen |
[
{
"from": "system",
"value": "Replace host with explicit component name\n\nOn browsers where the ShadowRoot class is polyfilled, the :host selector\nfails to function and needs to be replaced with the current\nwebcomponent's name.\n\nFix #1224\n"
},
{
"from": "human",
"value": "/**\n * BaseCompo... | javascript | chosen |
[
{
"from": "system",
"value": "Add loading of new relic license from secrets\n"
},
{
"from": "human",
"value": "/* eslint-env node */\n/* eslint-disable no-var */\nvar path = require('path');\n/**\n * New Relic agent configuration.\n *\n * See lib/config.defaults.js in the agent distribution for ... | javascript | chosen |
[
{
"from": "system",
"value": "Make sure icon keeps its gray border\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport styled from 'styled-components';\n\nimport { translucentGray } from 'react/styles/functions';\n// import constants from 'react/styles/constants';\n\nimport Ico... | javascript | chosen |
[
{
"from": "system",
"value": "Remove the custom `isFloat` function and use `Number.isInteger`\n"
},
{
"from": "human",
"value": "'use strict';\n\nfunction isFloat(n) {\n return n === Number(n) && n !== (Math.trunc(n));\n}\n\nconst metrics = ['label', 'time', 'size', 'gzip', 'originalsize', 'ori... | javascript | chosen |
[
{
"from": "system",
"value": "Fix Chrome vote scroll issue\n"
},
{
"from": "human",
"value": "import React, { PropTypes } from 'react';\nimport FlipMove from 'react-flip-move';\nimport { Element as ScrollElement } from 'react-scroll';\nimport withStyles from 'isomorphic-style-loader/lib/withStyl... | javascript | chosen |
[
{
"from": "system",
"value": "Add OFX info to Chase.\n"
},
{
"from": "human",
"value": "wesabe.download.Player.register({\n fid: 'us-003396',\n org: 'Chase',\n\n dispatchFrames: false,\n afterDownload: 'nextAccount',\n\n includes: [\n 'fi-scripts.us-003396.promos',\n 'fi-scripts.us-00... | javascript | chosen |
[
{
"from": "system",
"value": "Check undefined with _.isUndefined in DropdownOverlayView\n"
},
{
"from": "human",
"value": "var $ = require('jquery');\nvar Backbone = require('backbone');\nvar CoreView = require('backbone/core-view');\n\n/*\n * Dropdown overlay to disable all interactions betwee... | javascript | chosen |
[
{
"from": "system",
"value": "Update naming convention to fix sorting bug\n"
},
{
"from": "human",
"value": "(function(){\n \"use strict\"\n $(document).ready(init);\n\n function init(){\n $(\".sort\").on('click', sortActivities);\n $(\".user-activities\").on('click', \".card\", showDes... | javascript | chosen |
[
{
"from": "system",
"value": "Fix bug with image-enlarge hover-icon.\n\nWasn't set because img-tag not existing onElementReady.\nWe don't need img-tag in this context anymore because though padding-bottom-hack a\nhas the same size and therefore can be used to check width and height.\n"
},
{
"from": ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix old AC2 Rollup bundling example app.\n"
},
{
"from": "human",
"value": "import React from \"react\";\nimport { render } from \"react-dom\";\nimport { ApolloClient } from \"apollo-client\";\nimport { InMemoryCache } from \"apollo-cache-inmemory\";\nimport { Apoll... | javascript | chosen |
[
{
"from": "system",
"value": "Update old url with url from README"
},
{
"from": "human",
"value": "prompt('Your bookmarklet is outdated. Please replace it with the value below.', \"javascript:(function(){var d=document,s=d.createElement('script');s.src='https://rawgit.com/cameroncondry/cbc-kitte... | javascript | chosen |
[
{
"from": "system",
"value": "Handle async behaviour outside of tests\n\n"
},
{
"from": "human",
"value": "import Ember from 'ember';\nimport QUnit from 'qunit';\n\nexport default Ember.Test.Adapter.extend({\n init() {\n this.doneCallbacks = [];\n },\n\n asyncStart() {\n this.doneCallba... | javascript | chosen |
[
{
"from": "system",
"value": "Sort pods in the right order.\n"
},
{
"from": "human",
"value": "/**\n * Copyright 2015 Ian Davies\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n *\n * You may obtain a... | javascript | chosen |
[
{
"from": "system",
"value": "Update typos in test descriptions\n"
},
{
"from": "human",
"value": "var chai = require('chai'),\n expect = chai.expect,\n ast = require('../../../lib/ast_constructors/ast_constructors');\n\n\ndescribe('RelSentNode AST Constructor', function() {\n\n it('shoul... | javascript | chosen |
[
{
"from": "system",
"value": "Test fix for db.blob.dir changes"
},
{
"from": "human",
"value": "_test = {\r\n\tsetup: function() {\r\n\t\tapp.log(\"Application Config Setup\");\r\n\t},\r\n\tteardown: function() {\r\n\t\tapp.log(\"Application Config Teardown\");\r\n\t},\r\n\tapp_settings_suite: {... | javascript | chosen |
[
{
"from": "system",
"value": "Remove comments from mongolab setup process\n"
},
{
"from": "human",
"value": "var express = require('express');\nvar mongoose = require('mongoose');\n\nvar app = express();\n\n// connect to mongo database named \"bolt\"\n// mongoose.connect('mongodb://localhost/bol... | javascript | chosen |
[
{
"from": "system",
"value": "Remove unused archives from bower mains\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\n\n// Renders the bower.json template and prints it to stdout\n\nvar template = {\n name: 'graphlib',\n version: require('../../package.json').version,\n main: ['js/gra... | javascript | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.