conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Add name as parameter when geting devices for a slideshow\n"
},
{
"from": "human",
"value": "/*global angular*/\n(function () {\n 'use strict';\n\n //Slideshows service used to communicate Slideshows REST endpoints\n angular.module('slideshows').factory('Sl... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"Move DocSearch styles before headComponents\"\n\nThis reverts commit 1232ccbc0ff6c5d9e80de65cefb352c404973e2f.\n"
},
{
"from": "human",
"value": "import React from 'react'\nimport PropTypes from 'prop-types'\n\nexport default function HTML(props) {\n ret... | javascript | chosen |
[
{
"from": "system",
"value": "Remove catch from createGame method. Errors are handled by service layer of app.\n"
},
{
"from": "human",
"value": "'use strict';\n\nmodule.exports = function(app) {\n app.controller('GamesController', ['$scope', 'UserService', 'FriendService', 'GameService', 'Sear... | javascript | chosen |
[
{
"from": "system",
"value": "Update UMD Named define to true\n"
},
{
"from": "human",
"value": "const webpack = require('webpack');\nconst helpers = require('./helpers');\n\nmodule.exports = {\n entry: {\n 'index': './src/index.js',\n // 'test': './src/test.js'\n },\n\n outpu... | javascript | chosen |
[
{
"from": "system",
"value": "TeikeiNext: Revert to using timestamps in database.\n"
},
{
"from": "human",
"value": "exports.up = function(knex, Promise) {\n return Promise.all([\n knex.schema.createTable('next_users', table => {\n table.bigIncrements()\n table.string('email')\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add 1.13 to the test matrix\n"
},
{
"from": "human",
"value": "module.exports = {\n scenarios: [\n {\n name: 'default',\n dependencies: { }\n },\n {\n name: 'ember-release',\n dependencies: {\n 'ember': 'components/ember#release'... | javascript | chosen |
[
{
"from": "system",
"value": "Load test 170 per process\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst config = {};\n/**\n * Heroku makes it available to help calculate correct concurrency\n * @see https://devcenter.heroku.com/articles/node-concurrency#tuning-the-concurrency-level\n *... | javascript | chosen |
[
{
"from": "system",
"value": "Add postgres connection and knex to global test variables.\n"
},
{
"from": "human",
"value": "require(\"babel/register\")({\n stage: 1,\n ignore: /node_modules/\n});\n\nglobal.Promise = require('bluebird')\nglobal.Promise.onPossiblyUnhandledRejection((e) => { thro... | javascript | chosen |
[
{
"from": "system",
"value": "Support older JavaScript engine shells.\n"
},
{
"from": "human",
"value": "// Copyright 2018 Google LLC\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": "Fix the import path error.\n"
},
{
"from": "human",
"value": "/*\n\tThis is just a proxy file requiring the component from the /addon folder and\n\tmaking it available to the dummy application!\n */\nimport SummerNoteComponent from 'ember-cli-bootstrap3-wysiwyg/comp... | javascript | chosen |
[
{
"from": "system",
"value": "Fix highlighting of menu points for sub-routes.\n"
},
{
"from": "human",
"value": "$(function() {\n\n $('#side-menu').metisMenu();\n\n});\n\n//Loads the correct sidebar on window load,\n//collapses the sidebar on window resize.\n// Sets the min-height of #page-wr... | javascript | chosen |
[
{
"from": "system",
"value": "Add span content as content attribute\n\nThis allows styles to use it in CSS `.foo[content*=bar]` selectors.\n"
},
{
"from": "human",
"value": "\"use strict\";\n\n/*\n NOT a general purpose escaper! Only valid when *content* of a tag, not within an attribute.\n */\... | javascript | chosen |
[
{
"from": "system",
"value": "[util] Remove useless check from default urlhandler\n"
},
{
"from": "human",
"value": "import { flashURLHandler } from './urlhandlers/flash_url_handler';\nimport { nodeURLHandler } from './urlhandlers/mock_node_url_handler';\nimport { XHRURLHandler } from './urlhand... | javascript | chosen |
[
{
"from": "system",
"value": "Create a start and stop method\n"
},
{
"from": "human",
"value": "(function(stopwatch){\n var Game = stopwatch.Game = function(seconds){\n this.target = 1000 * seconds; // in milliseconds\n };\n Game.prototype.current = function(){\n return 0;... | javascript | chosen |
[
{
"from": "system",
"value": "Add weird variable names to let and const example\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\n\nconst constMessage = \"Hello, World!\";\nconsole.log(constMessage);\n\nlet letMessage = \"Hello, World!\";\nconsole.log(letMessage);\nletMessage = \"Goodbye, ... | javascript | chosen |
[
{
"from": "system",
"value": "Use Mongoose functions for updating\n"
},
{
"from": "human",
"value": "const { model: trashbinModel } = require('./db/trashbin.schema');\n\nconst createUserTrashbin = (userId) => {\n\t// access trashbin model\n\tconst trashbin = trashbinModel({\n\t\tuserId,\n\t});\n... | javascript | chosen |
[
{
"from": "system",
"value": "Replace react-apollo with redux compose\n"
},
{
"from": "human",
"value": "import React from \"react\";\nimport { compose } from \"react-apollo\";\nimport hoistStatics from \"hoist-non-react-statics\";\nimport BaseProvider from \"../components/BaseProvider\";\nimpor... | javascript | chosen |
[
{
"from": "system",
"value": "Make room name lower case\n"
},
{
"from": "human",
"value": "'use strict';\n\nangular.module('houseBand')\n\n.controller('NameCtrl', function($state){\n this.roomCheck = function(room){\n if(room){\n return $state.go('home', {room: room})\n }\n alert(... | javascript | chosen |
[
{
"from": "system",
"value": "Remove destructuring and add arguments\n"
},
{
"from": "human",
"value": "'use strict';\n\nmodule.exports = (...trackers) => {\n\tconst tracker = {};\n\n\ttracker.createEvent = (eventName, eventData) => {\n\t\ttrackers.forEach((tk) => {\n\t\t\ttk.createEvent(eventNa... | javascript | chosen |
[
{
"from": "system",
"value": "Correct boost test field (support ES 0.9 and 1.0).\n\nIn my tests, the mapping format returned by the getMapping function is\nnot the same between 0.90.11 and 1.0\n"
},
{
"from": "human",
"value": "var mongoose = require('mongoose')\n , elastical = require('elasti... | javascript | chosen |
[
{
"from": "system",
"value": "Add Portland, OR to location list\n"
},
{
"from": "human",
"value": "export const Locations = {\n OTHER: \"Other\",\n PRESET_LOCATIONS: [\n \"Seattle, WA\",\n \"Redmond, WA\",\n \"Kirkland, WA\",\n \"Bellevue, WA\",\n \"Tacoma, WA\",\n \"Olympia,... | javascript | chosen |
[
{
"from": "system",
"value": "Add math & clean up.\n"
},
{
"from": "human",
"value": "module.exports = {\n 'Unit': require('./unit'),\n 'Lexer': require('./lexer'),\n};\n"
},
{
"from": "gpt",
"value": "module.exports = {\n // Objects\n 'Unit': require('./unit'),\n 'Lexer': requi... | javascript | chosen |
[
{
"from": "system",
"value": "Fix bug where the placeholder would flex out\n\nMight be related to shady DOM or <slot> hybrid mode.\n"
},
{
"from": "human",
"value": "/*global Polymer, Cosmoz*/\n\n(function () {\n\n\t'use strict';\n\n\tPolymer({\n\n\t\tis: 'cosmoz-bottom-bar-view',\n\n\t\tbehavio... | javascript | chosen |
[
{
"from": "system",
"value": "Use Phantom JS alone for speed and ease.\n"
},
{
"from": "human",
"value": "module.exports = function(config) {\n config.set({\n\n // base path that will be used to resolve all patterns (eg. files, exclude)\n basePath: './',\n\n\n // frameworks to use\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Implement the simplified testable module pattern.\n\nRead more about the pattern here: https://markus.oberlehner.net/blog/2017/02/the-testable-module-pattern/\n"
},
{
"from": "human",
"value": "export function getAbsoluteUrl({ path, getSassFileGlobPattern, glob }, u... | javascript | chosen |
[
{
"from": "system",
"value": "Use `ifError` assertion instead of `equal`.\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar grunt = require('grunt');\n\n/**\n * Constructs a test case.\n *\n * @param {string} file The `package.json` file to be tested.\n * @param {boolean} ... | javascript | chosen |
[
{
"from": "system",
"value": "Remove async handling to comply w/ dubdrop 0.0.3\n"
},
{
"from": "human",
"value": "/**\n * dubdrop compatible task for reading an image file and creating a thumbnail.\n *\n * @package thumbdrop\n * @author drk <drk@diy.org>\n */\n\n// readAsDataURL\n\n/**\n * Const... | javascript | chosen |
[
{
"from": "system",
"value": ":bug: Handle different names of PATH on windows\n"
},
{
"from": "human",
"value": "'use strict'\n\nlet consistentEnv\n\nmodule.exports = function() {\n if (!consistentEnv) {\n consistentEnv = require('consistent-env')\n }\n return consistentEnv().PATH || ''\n}... | javascript | chosen |
[
{
"from": "system",
"value": "Handle future event emit for gulp tasks\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar rump = module.exports = require('rump');\nvar configs = require('./configs');\nvar originalAddGulpTasks = rump.addGulpTasks;\n\nrump.addGulpTasks = function(options) {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Create a variable in scope to avoid being override"
},
{
"from": "human",
"value": "var mongoose = require('mongoose');\nvar ShortId = require('./shortid');\n\nvar defaultSave = mongoose.Model.prototype.save;\nmongoose.Model.prototype.save = function(cb) {\n for (f... | javascript | chosen |
[
{
"from": "system",
"value": "Replace schedule as a key with named job\n"
},
{
"from": "human",
"value": "var createJob = require('./createJob');\n\nmodule.exports = function (sails) {\n return {\n jobs: {},\n\n defaults: {cron: {}},\n\n initialize: function (cb) {\n var config = ... | javascript | chosen |
[
{
"from": "system",
"value": "Update karma, it will run once with npm test\n"
},
{
"from": "human",
"value": "module.exports = function(config) {\n config.set({\n frameworks: ['jasmine', 'browserify'],\n files: [\n 'test/**/*.js'\n ],\n preprocessors: {\... | javascript | chosen |
[
{
"from": "system",
"value": "Add code comment re: IEEE 754-2008\n"
},
{
"from": "human",
"value": "'use strict';\n\n// VARIABLES //\n\nvar FLOAT32_VIEW = new Float32Array( 1 );\nvar UINT32_VIEW = new Uint32Array( FLOAT32_VIEW.buffer );\n\n// 0 11111111 00000000000000000000000 => 2139095040 => 0... | javascript | chosen |
[
{
"from": "system",
"value": "Adjust bigInputCard to receive a cardStyle and cardClass args\n"
},
{
"from": "human",
"value": "import m from 'mithril';\n\nconst bigInputCard = {\n view(ctrl, args) {\n const cardClass = '.w-row.u-marginbottom-30.card.card-terciary.padding-redactor-descr... | javascript | chosen |
[
{
"from": "system",
"value": "[FEATURE] Change accountId to externalAccountId in external transactions migration\n"
},
{
"from": "human",
"value": "var dbm = require('db-migrate');\nvar type = dbm.dataType;\n\nexports.up = function(db, callback) {\n db.createTable('bank_transactions', { \n\t\ti... | javascript | chosen |
[
{
"from": "system",
"value": "Implement the User instance constructor.\n"
},
{
"from": "human",
"value": "/* WePay API for Node.js\n * (c)2012 Matt Farmer\n * Release without warranty under the terms of the\n * Apache License. For more details, see the LICENSE\n * file at the root of this projec... | javascript | chosen |
[
{
"from": "system",
"value": "Remove jspm scripts on build\n"
},
{
"from": "human",
"value": "const gulp = require('gulp');\nconst replace = require('gulp-replace');\n\nconst Builder = require('jspm').Builder;\n\nconst conf = require('../conf/gulp.conf');\n\ngulp.task('systemjs', systemjs);\ngul... | javascript | chosen |
[
{
"from": "system",
"value": "chore(test): Fix tests so that it only tries to run IE11 if running in Sauce Labs.\n\nFor some reason it just started happening that it would try to run IE11 outside of Sauce Labs.\n"
},
{
"from": "human",
"value": "const base = require('skatejs-build/karma.conf');\... | javascript | chosen |
[
{
"from": "system",
"value": "Split helpers into expectations and helpers\n"
},
{
"from": "human",
"value": "import $ from \"cheerio\";\n\nconst RECTANGULAR_SEQUENCE = [\"M\", \"L\", \"L\", \"L\", \"L\"];\nconst CIRCULAR_SEQUENCE = [\"M\", \"m\", \"a\", \"a\"];\n\nconst SvgTestHelper = {\n expe... | javascript | chosen |
[
{
"from": "system",
"value": "Improve component test when fails to take snapshot\n"
},
{
"from": "human",
"value": "import { describeComponent, it } from 'ember-mocha';\nimport { beforeEach, afterEach } from 'mocha';\nimport { expect } from 'chai';\nimport hbs from 'htmlbars-inline-precompile';\... | javascript | chosen |
[
{
"from": "system",
"value": "Add actual code from jellyscript project\n"
},
{
"from": "human",
"value": "'use strict';\n\nmodule.exports = {};\n"
},
{
"from": "gpt",
"value": "'use strict';\n\nvar assert = require('assert');\n\nmodule.exports = function() {\n var privacy = {};\n\n ... | javascript | chosen |
[
{
"from": "system",
"value": "[Fixed] Add Karma Firefox Runner for TravisCI\n"
},
{
"from": "human",
"value": "\"use strict\";\n\n/**\n * Karma configuration.\n */\n\nmodule.exports = function (config) {\n config.set({\n\n frameworks: [\"mocha\", \"sinon\"],\n\n files: [\n \"test/**_... | javascript | chosen |
[
{
"from": "system",
"value": "Fix custom method options +\nAllow callback to be passed to the submit method\n"
},
{
"from": "human",
"value": "\nvar api = require('@request/api')\n\n\nmodule.exports = (client, provider, methods, config, transform) => {\n return api(methods, {\n api: function... | javascript | chosen |
[
{
"from": "system",
"value": "Stop double-calling the callback function\n"
},
{
"from": "human",
"value": "var Person = require('./person');\n\nfunction incomingMessage(botId, message) {\n return message.type === 'message' // check it's a message\n && Boolean(message.text) // check mes... | javascript | chosen |
[
{
"from": "system",
"value": "Clear subscription tokens before updating\n"
},
{
"from": "human",
"value": "import Vue from 'vue'\nimport axios from '@/services/axios'\n\nexport default {\n namespaced: true,\n state: {\n token: null,\n tokens: {},\n },\n getters: {\n token: state => ... | javascript | chosen |
[
{
"from": "system",
"value": "Update regex to match underscore and be case insensitive;\n"
},
{
"from": "human",
"value": "\"use strict\";\n\n\n;(function ( root, name, definition ) {\n /*\n * Exports\n */\n if ( typeof define === 'function' && define.amd ) {\n define( [], d... | javascript | chosen |
[
{
"from": "system",
"value": "Add ignoreCache option and http option\n"
},
{
"from": "human",
"value": "// Includes\nvar http = require('./http.js').func;\nvar getVerification = require('./getVerification.js').func;\nvar promise = require('./promise.js');\n\n// Args\nexports.required = ['url', '... | javascript | chosen |
[
{
"from": "system",
"value": ":art: Create a dummy installPackages function\n"
},
{
"from": "human",
"value": "'use babel'\n\nimport {BufferedProcess} from 'atom'\n\nexport function exec(command, args = [], options = {}) {\n if (!arguments.length) throw new Error('Nothing to execute')\n\n retu... | javascript | chosen |
[
{
"from": "system",
"value": "[Polymer] Change browserSync to use port 4200\n"
},
{
"from": "human",
"value": "var gulp = require('gulp');\nvar browserSync = require('browser-sync');\nvar vulcanize = require('gulp-vulcanize');\nvar uglify = require('gulp-uglify');\nvar concat = require('gulp-con... | javascript | chosen |
[
{
"from": "system",
"value": "Add function to get profile. Refactor.\n"
},
{
"from": "human",
"value": "/*jshint strict: true, esnext: true, node: true*/\n\"use strict\";\nconst Wreck = require(\"wreck\");\nconst qs = require(\"querystring\");\n\nclass FBMessenger {\n constructor(token) {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add missing list shorthand init\n"
},
{
"from": "human",
"value": "(function ($) {\n var ms = $.mobiscroll,\n presets = ms.presets.scroller;\n\n presets.treelist = presets.list;\n ms.presetShort('treelist');\n\n})(jQuery);"
},
{
"from": "gpt... | javascript | chosen |
[
{
"from": "system",
"value": "Update with reference to global nav partial\n"
},
{
"from": "human",
"value": "var _ = require('lodash')\nvar fs = require('fs')\nvar gzip = require('gzip-size')\nvar filesize = require('filesize')\nvar cssstats = require('cssstats')\n\nvar module = require('tachyon... | javascript | chosen |
[
{
"from": "system",
"value": "Fix system defaults overriding all args\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst { mapValues, omitBy } = require('../../../utilities');\n\nconst { defaults } = require('./defaults');\n\n// Apply system-defined defaults to input, including input argu... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"Story-52 [Marcela, Felipe] Just testing if the new versions are being correctly deployed to Heroku from Snap - this commit will be reverted in the next push\"\n\nThis reverts commit 926c0f09dc56c1fa9ffb91c548d644c771b08046.\n"
},
{
"from": "human",
"value":... | javascript | chosen |
[
{
"from": "system",
"value": "Remove supportTouch, add new serializeObject util\n"
},
{
"from": "human",
"value": "// DOM Library Utilites\n$.parseUrlQuery = function (url) {\n var query = {}, i, params, param;\n if (url.indexOf('?') >= 0) url = url.split('?')[1];\n params = url.split('... | javascript | chosen |
[
{
"from": "system",
"value": "Add extra condition to show \"user joined\" notification\n\nIf you open the page and without clicking anything you go to other app, then you won't get the notification => I don't know how to solve this.\r\nIf you open the page and without clicking anything you go to other tab, ... | javascript | chosen |
[
{
"from": "system",
"value": "Add some changes in path settings for JsonFIleManager\n"
},
{
"from": "human",
"value": "import fileSystem from 'fs';\n\nconst JsonFileManager = {\n load(fileName) {\n console.log(`[INFO] Loading data from ${__dirname}/${fileName} file`);\n return J... | javascript | chosen |
[
{
"from": "system",
"value": "Disable type checking in Windows 😞\n"
},
{
"from": "human",
"value": "import { execFile } from 'child_process'\nimport flow from 'flow-bin'\nimport { logError, log } from '../util/log'\n\nconst errorCodes = {\n TYPECHECK_ERROR: 2\n}\n\nexport default (saguiOptions... | javascript | chosen |
[
{
"from": "system",
"value": "Use drop row by default\n"
},
{
"from": "human",
"value": "'use strict';\n\n/**\n * @ngdoc directive\n * @name grafterizerApp.directive:dropRowsFunction\n * @description\n * # dropRowsFunction\n */\nangular.module('grafterizerApp')\n .directive('dropRowsFunction', ... | javascript | chosen |
[
{
"from": "system",
"value": "[FEATURE] Add user data variables to scope\n"
},
{
"from": "human",
"value": "'use strict';\n\nangular.module('publicApp')\n .controller('UsersCtrl', ['$scope', '$http', '$location', '$routeParams', 'UserService', function ($scope, $http, $location, $user, $routePa... | javascript | chosen |
[
{
"from": "system",
"value": "Implement adding rows to the table\n"
},
{
"from": "human",
"value": "$(document).ready(function () {\n\n})\n"
},
{
"from": "gpt",
"value": "$(document).ready(function main() {\n $(\"#add\").click(function addRow() {\n var name = $(\"<td></td>\... | javascript | chosen |
[
{
"from": "system",
"value": "Remove Textarea Label, Use Frig Version Instead\n"
},
{
"from": "human",
"value": "let React = require(\"react\")\nlet {errorList, sizeClassNames, formGroupCx, label} = require(\"../util.js\")\nlet {div, textarea} = React.DOM\nlet cx = require(\"classnames\")\n\nexp... | javascript | chosen |
[
{
"from": "system",
"value": "Fix report query to actually query\n"
},
{
"from": "human",
"value": "import Ember from 'ember';\n\nconst { inject } = Ember;\nconst { service } = inject;\n\nexport default Ember.Service.extend({\n store: service(),\n getResults(subject, object, objectId){\n re... | javascript | chosen |
[
{
"from": "system",
"value": "Update dashboard at Fri Dec 18 02:17:47 NPT 2015\n"
},
{
"from": "human",
"value": "var ctx = document.getElementById(\"chart\").getContext(\"2d\");\nvar myLineChart = new Chart(ctx).Line(data, {\n tooltipTemplate = function(valuesObject){\n var label = valu... | javascript | chosen |
[
{
"from": "system",
"value": "Fix db connection in tests helper\n"
},
{
"from": "human",
"value": "import mongoose from \"mongoose\"\n\nasync function createConnection() {\n mongoose.Promise = Promise\n\n // Don't forget to add a user for this connection\n const connection = await mongoose.co... | javascript | chosen |
[
{
"from": "system",
"value": "Comment to explain the magic number\n\n"
},
{
"from": "human",
"value": "\nexports.up = function(knex, Promise) {\n return knex.schema.table('actions', function(table) {\n table.string('event_id').index();\n table.foreign('event_id')\n .references('id')\... | javascript | chosen |
[
{
"from": "system",
"value": "Refactor monkey-patch to include less duplication.\n"
},
{
"from": "human",
"value": "Ember.ComponentLookup.reopen({\n lookupFactory: function(name) {\n var Component = this._super.apply(this, arguments);\n\n if (!Component) { return; }\n\n name = name.rep... | javascript | chosen |
[
{
"from": "system",
"value": "Fix: Use headless Chrome for Angular tests again.\n"
},
{
"from": "human",
"value": "// Karma configuration file, see link for more information\n// https://karma-runner.github.io/1.0/config/configuration-file.html\n\nmodule.exports = function (config) {\n config.se... | javascript | chosen |
[
{
"from": "system",
"value": "Use localhost when running locally\n"
},
{
"from": "human",
"value": "var game = require('socket.io-client')('http://192.168.0.24:3000'),\n lobby = require('socket.io-client')('http://192.168.0.24:3030'),\n Chess = require('chess.js').Chess,\n\n name = 'Rnd... | javascript | chosen |
[
{
"from": "system",
"value": "Fix bug when calculating minimum time\n"
},
{
"from": "human",
"value": "'use strict';\n\n// MAIN //\n\n/**\n* Computes the minimum time.\n*\n* @private\n* @param {ArrayArray} times - times\n* @returns {NonNegativeIntegerArray} minimum time\n*/\nfunction min( times ... | javascript | chosen |
[
{
"from": "system",
"value": "Add leading slash to path if not provided"
},
{
"from": "human",
"value": "var st = require('st')\n , http = require('http')\n , js = require('atomify-js')\n , css = require('atomify-css')\n , open = require('open')\n\nmodule.exports = function (args) {\n\n var... | javascript | chosen |
[
{
"from": "system",
"value": "Fix user picker's select2 initial selection\n\n - was failing because of missing token: `Spree.api_key`\n\n - going through the Spree.ajax automatically adds the `api_key`\n"
},
{
"from": "human",
"value": "$.fn.userAutocomplete = function () {\n 'use strict';\n\... | javascript | chosen |
[
{
"from": "system",
"value": "Simplify date time pickers init JS.\n"
},
{
"from": "human",
"value": "$(document).ready(function () {\n var locale = 'en' !== LOCALE ? LOCALE : '';\n var options = $.extend({}, $.datepicker.regional[locale], $.timepicker.regional[locale], {\n dateForma... | javascript | chosen |
[
{
"from": "system",
"value": "Fix the call to addSfx broken by the signature change\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst audioUtil = require('../utils/audio');\n\nconst PhysicsSprite = require('./physics-sprite');\n\nclass Barrier extends PhysicsSprite {\n constructor(game,... | javascript | chosen |
[
{
"from": "system",
"value": "Update bootcode threshold to 4 MB\n"
},
{
"from": "human",
"value": "const fs = require('fs'),\n path = require('path'),\n CACHE_DIR = path.join(__dirname, '/../../.cache'),\n THRESHOLD = 3.4 * 1024 * 1024; // 3.4 MB\n\ndescribe('bootcode size', function ()... | javascript | chosen |
[
{
"from": "system",
"value": "Validate arguments passed from template to helper_config\n"
},
{
"from": "human",
"value": "var ConfigBuilder = require('../builders/ConfigBuilder');\n\nmodule.exports.register = function(Handlebars, options) {\n options = options || {};\n\n var helpers = {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add setting for vote radius\n"
},
{
"from": "human",
"value": "/****************************************************************************\n#\n# This file is part of the Vilfredo Client.\n#\n# Copyright © 2009-2014 Pietro Speroni di Fenizio / Derek Paterson.\n#\n#... | javascript | chosen |
[
{
"from": "system",
"value": "Implement eslint suggestion around equals comparison\n"
},
{
"from": "human",
"value": "/*!\n * Copyright 2015 Geoscience Australia (http://www.ga.gov.au/copyright.html)\n */\n\n(function(angular) {\n\n'use strict';\n\nangular.module(\"icsm.toolbar\", [])\n\n.direct... | javascript | chosen |
[
{
"from": "system",
"value": "Increase timeout to give time for loading transitions to complete\n\nTODO: Use JavaScript to try to predict when loading is done...\n"
},
{
"from": "human",
"value": "var page = require('webpage').create(),\n system = require('system'),\n fs = require('fs');\n... | javascript | chosen |
[
{
"from": "system",
"value": "Add active class in participation navigation menu using JS\n"
},
{
"from": "human",
"value": "function currentLocationMatches(action_path) {\n return $(\"body.gobierto_participation_\" + action_path).length > 0\n}\n\n$(document).on('turbolinks:load', function() {\n... | javascript | chosen |
[
{
"from": "system",
"value": "Add reducer cases for thread/board destroyed\n"
},
{
"from": "human",
"value": "import initialState from './initialState';\nimport { \n LOGO_SPIN_STARTED, \n LOGO_SPIN_ENDED, \n PAGE_SCROLL_STARTED, \n PAGE_SCROLL_ENDED,\n APP_INIT,\n STATUS_UPDATE... | javascript | chosen |
[
{
"from": "system",
"value": "Use PointerEvent to be check for loading PointerEvents polyfill\n"
},
{
"from": "human",
"value": "/*\n * Copyright 2013 The Polymer Authors. All rights reserved.\n * Use of this source code is governed by a BSD-style\n * license that can be found in the LICENSE fil... | javascript | chosen |
[
{
"from": "system",
"value": "Use hljs.listLanguages for auto-detection tests\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar fs = require('fs');\nvar hljs = require('../build');\nvar path = require('path');\nvar utility = require('./utility');\n\nfunction testAutoDetection(la... | javascript | chosen |
[
{
"from": "system",
"value": "Remove code from Application.js to remedy errors seen in browser console\n"
},
{
"from": "human",
"value": "// This is a manifest file that'll be compiled into application.js, which will include all the files\n// listed below.\n//\n// Any JavaScript/Coffee file with... | javascript | chosen |
[
{
"from": "system",
"value": "Put storage service on scope for abstract controller.\n"
},
{
"from": "human",
"value": "core.controller('AbstractController', function ($scope, StorageService) {\n\n\t$scope.isAssumed = function() {\n\t\treturn StorageService.get(\"assumed\");\n\t};\n\n\t$scope.isA... | javascript | chosen |
[
{
"from": "system",
"value": "Update for circles and new sample data\n"
},
{
"from": "human",
"value": "import React, { Component } from 'react'\nimport Affirmations from './analytics/Affirmations'\n\nexport default class Dashboard extends Component {\n constructor(props) {\n super(props);\n... | javascript | chosen |
[
{
"from": "system",
"value": "Add missing comma to type file\n"
},
{
"from": "human",
"value": "// @flow\n\nexport type Config = {\n disabledPages: string[],\n showUserDomainInput: boolean,\n defaultUserDomain: string,\n showOpenstackCurrentUserSwitch: boolean,\n useBarbicanSecrets: boolean... | javascript | chosen |
[
{
"from": "system",
"value": "Fix commit mistake with tooltip\n"
},
{
"from": "human",
"value": "$('body').scrollspy({ target: '#side-menu' , offset : 10});\nvar disableEvent = function(e) {\n e.preventDefault();\n};\n$('a[href=\"#\"]').click(disableEvent);\n$('button[type=\"submit\"]').click... | javascript | chosen |
[
{
"from": "system",
"value": "Use colors and quality attributes on manual image fetching\n"
},
{
"from": "human",
"value": "angular\n .module('ngVibrant')\n .directive('vibrant', vibrant);\n\nfunction vibrant($vibrant) {\n var directive = {\n restrict: 'AE',\n scope: {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Stop caching things and remove existing service worker registrations\n\nSigned-off-by: Harsh Shandilya <c6ff3190142d3f8560caed342b4d93721fe8dacf@gmail.com>\n"
},
{
"from": "human",
"value": "const cacheName = 'cache-v4'\nconst precacheResources = [\n '/',\n '/post... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"Conditionally set browser for karma\"\n\nThis reverts commit 9f43fe898e74a0541430a06532ba8b504796af6c.\n"
},
{
"from": "human",
"value": "module.exports = function (config) {\n config.set({\n\n port: 9876,\n\n logLevel: config.LOG_INFO,\n\n autoWa... | javascript | chosen |
[
{
"from": "system",
"value": "CLI: Fix 'qunit' require error on Node 10 if qunit.json exists\n\nIf the project using QUnit has a local qunit.json file in the\nrepository root, then the CLI was unable to find the 'qunit'\npackage. Instead, it first found a local 'qunit.json' file.\n\nThis affected an ESLint ... | javascript | chosen |
[
{
"from": "system",
"value": "Add dashes to route paths\n"
},
{
"from": "human",
"value": "Router.configure({\n layoutTemplate : 'layout',\n loadingTemplate : 'loading',\n notFoundTemplate : 'notFound'\n // waitOn : function () {\n // return Meteor.subscribe('posts');\n // ... | javascript | chosen |
[
{
"from": "system",
"value": "Make _publishCursor return a handle with a stop method\n"
},
{
"from": "human",
"value": "Counter = function (name, cursor, interval) {\n this.name = name;\n this.cursor = cursor;\n this.interval = interval || 1000 * 10;\n this._collectionName = 'counters-collec... | javascript | chosen |
[
{
"from": "system",
"value": "Fix incorrect api usage, not Time rather TIME"
},
{
"from": "human",
"value": "var nodegit = require(\"../\"),\n path = require(\"path\");\n\n// This code walks the history of the master branch and prints results\n// that look very similar to calling `git log` fr... | javascript | chosen |
[
{
"from": "system",
"value": "Fix the test of the new suite\n"
},
{
"from": "human",
"value": "describe(\"m.withAttr()\", function () {\n\t\"use strict\"\n\n\tit(\"calls the handler with the right value/context without callbackThis\", function () { // eslint-disable-line\n\t\tvar spy = sinon.spy... | javascript | chosen |
[
{
"from": "system",
"value": "Add new properties, to be sandboxed\n"
},
{
"from": "human",
"value": "let origBot, origGuild;\n// A dummy message object so ESLint doesn't complain\nclass Message {}\nclass Client {\n constructor(bot, guild) {\n origBot = bot;\n origGuild = guild;\... | javascript | chosen |
[
{
"from": "system",
"value": "Update MaterialIconToggle unit test with chai-jquery\n"
},
{
"from": "human",
"value": "\n describe('icon-toggle tests', function () {\n\n it('Should have MaterialIconToggle globally available', function () {\n expect(MaterialIconToggle).to.be.a('function')... | javascript | chosen |
[
{
"from": "system",
"value": "Make sure to keep the property 'name'\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst _ = require('underscore');\n\nfunction buildSlots(slots) {\n const res = {};\n _.each(slots, (value, key) => {\n if ( _.isString(value)) {\n res[key] = {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "app(env): Move npm dotenv to dependencies instead of dev-dependencies\n"
},
{
"from": "human",
"value": "\"use strict\";\n/* eslint-disable no-console */\n/* eslint-disable import/default */\nvar chalk = require('chalk');\nvar app = require('../app.js'); // This ini... | javascript | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.