conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Include 1.10 in jQuery version check\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 or 2.0\", jQuery && (jQuery().jquery.match(/^((1\\.(8|9))... | javascript | chosen |
[
{
"from": "system",
"value": "Remove resolver intercept cache basename logic\n\nAnd replace with basic stripping of leading ./ and trailing .sol\n"
},
{
"from": "human",
"value": "const path = require(\"path\");\n\nfunction ResolverIntercept(resolver) {\n this.resolver = resolver;\n this.cache... | javascript | chosen |
[
{
"from": "system",
"value": "Add more dynamic styling to forms\n"
},
{
"from": "human",
"value": "/**\n * Created by root on 9/19/17.\n */\n'use strict';\n\n$(\"#signinModal, #signupModal\").modal({\n show: true\n});\n\n$(\"#shl-item, #shl-price\").addClass('text-center');\n$(\".shl-input\")... | javascript | chosen |
[
{
"from": "system",
"value": "Support negative and positive timezones.\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst moment = require('moment');\n\n/**\n * Given a date return a date ISO string.\n * @param {String} dateString The date string to format.\n * @param {String} dateFormat ... | javascript | chosen |
[
{
"from": "system",
"value": "Remove remnants of the old fixed pipeline.\n\nVertexSets had a _uniformSet property instead of a leaf property, which\nin the new taxonomy didn't make sense.\n"
},
{
"from": "human",
"value": "!function(exports) {\n 'use strict';\n\n exports._extendable(VertexSet)... | javascript | chosen |
[
{
"from": "system",
"value": "Upgrade Meteor to 1.2.0.1 for ddp-proxy-endpoint\n"
},
{
"from": "human",
"value": "Package.describe({\n name: 'xamfoo:ddp-proxy-endpoint',\n version: '0.1.0',\n // Brief, one-line summary of the package.\n summary: 'Server package to support xamfoo:ddp-proxy',\... | javascript | chosen |
[
{
"from": "system",
"value": "Test on structured patch method updated\n"
},
{
"from": "human",
"value": "const VERBOSE = false;\n\nvar diff = require('../diff');\n\nfunction log() {\n VERBOSE && console.log.apply(console, arguments);\n}\n\ndescribe('#structuredPatch', function() {\n it('should... | javascript | chosen |
[
{
"from": "system",
"value": "Clean up asset minification script\n"
},
{
"from": "human",
"value": "function minifyAssets() {\n\tconst compressor = require('node-minify');\n\tconst { readdirSync } = require('fs');\n\tconst { join } = require('path');\n\tconst Logger = require(join(__dirname, './... | javascript | chosen |
[
{
"from": "system",
"value": "Add examples of returned data\n"
},
{
"from": "human",
"value": "'use strict'\nvar request = require('request');\nvar cheerio = require('cheerio');\nvar $;\n\nrequest('http://www.billboard.com/charts/hot-100', function(err, resp, body) {\n\t$ = cheerio.load(body);\n... | javascript | chosen |
[
{
"from": "system",
"value": "Set about page as homepage"
},
{
"from": "human",
"value": "var myApp = angular.module('myApp', ['ngRoute', 'guestControllers','analytics']);\n\nmyApp.config(['$routeProvider',\nfunction($routeProvider) {\n\t$routeProvider.when('/eventstone', {\n\t\ttemplateUrl : 'v... | javascript | chosen |
[
{
"from": "system",
"value": "Fix private discussions page breaking when user is loaded async\n"
},
{
"from": "human",
"value": "import UserPage from 'flarum/components/UserPage';\nimport PrivateDiscussionList from './PrivateDiscussionList';\n\nexport default class PrivateDiscussionsUserPage ext... | javascript | chosen |
[
{
"from": "system",
"value": "Fix for 'from' stop on keyframes\n"
},
{
"from": "human",
"value": "/**\n * @constructor\n * @param {string} stop\n */\nfunction KeyframeSelector(stop) {\n this.stop = stop;\n}\n\n/**\n * @return {string}\n */\nKeyframeSelector.prototype.toString = function toStr... | javascript | chosen |
[
{
"from": "system",
"value": "Fix \"Expected '===' and instead saw '=='\"\n"
},
{
"from": "human",
"value": "var fs = require('fs');\nvar path = require('path');\nvar CssFile = require('./cssfile');\nvar HtmlFile = require('./htmlfile');\n\nfunction walk(dir, result) {\n var stat = fs.statSync(... | javascript | chosen |
[
{
"from": "system",
"value": "Increase number of stories to show\n"
},
{
"from": "human",
"value": "import { createReducer } from 'store';\n\nconst SET_CARD_OFFSET = 'stories/SET_CARD_LIMIT';\n\nconst initialState = {\n cardStart: 0,\n cardOffset: 20\n};\n\nconst storiesGridReducer = {\n [SET... | javascript | chosen |
[
{
"from": "system",
"value": "Allow for decimal places in the distance field\n"
},
{
"from": "human",
"value": "import React, { PropTypes } from 'react'\nimport callWithValue from 'util/callWithValue'\n\nfunction SetDistance ({ distance, onDistanceValueChange }) {\n return (\n <div>\n <... | javascript | chosen |
[
{
"from": "system",
"value": "Add option to specify a different .git alias\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\n\n/**\n * Jit Init\n */\nvar program = require('commander'),\n Repo = require('./common/repo');\n\nprogram\n // TODO\n .option('-q, --quiet', 'be quiet')\n // ... | javascript | chosen |
[
{
"from": "system",
"value": "Change default url copy to Ctrl+C\n"
},
{
"from": "human",
"value": "import * as c from './constants';\nimport { kbdCommand } from './constructor';\n\nexport const defaultCommands = {\n [c.TAB_DELETE]: kbdCommand('Ctrl+Backspace'),\n [c.TAB_OPEN]: kbdCommand('Ente... | javascript | chosen |
[
{
"from": "system",
"value": "Add example of using the getCurrentUser method in JS API\n\nPop up a warning when the current user tries to submit another\nuser's change.\n\nBug: issue 461\nChange-Id: I4a4c39093d07000ba1c9bc7d6da05e48815f603f\n"
},
{
"from": "human",
"value": "// Copyright (C) 201... | javascript | chosen |
[
{
"from": "system",
"value": "style(sagas): Fix action literal in saga.\n"
},
{
"from": "human",
"value": "// @flow\nimport firebase from '@firebase/app'\nimport '@firebase/database'\nimport '@firebase/auth'\nimport { call, put, takeEvery } from 'redux-saga/effects'\nimport { hydrateUserData } f... | javascript | chosen |
[
{
"from": "system",
"value": "Make 'Jump to Today' jump to the first visible match\n"
},
{
"from": "human",
"value": "function applyLink(event) {\n event.preventDefault();\n\n var todayMatches = document.querySelectorAll(\".match.today-ish\");\n var lastToday = todayMatches[todayMatches.lengt... | javascript | chosen |
[
{
"from": "system",
"value": "Add fix the switcheroo of to/from dats\n"
},
{
"from": "human",
"value": "/**\n * mSupply Mobile\n * Sustainable Solutions (NZ) Ltd. 2020\n */\nimport moment from 'moment';\n\nimport { UIDatabase } from '../database';\nimport { FRIDGE_ACTIONS } from '../actions/Frid... | javascript | chosen |
[
{
"from": "system",
"value": "Simplify things at the end of stabilization\n"
},
{
"from": "human",
"value": "// Load a saved graph if an ID is provided in the query string\n\nfunction loadSaved() {\n if (window.location.search) {\n progressbar = new Progress();\n modalWindow = new Modal(p... | javascript | chosen |
[
{
"from": "system",
"value": "Add route to list all clicks on a page\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar express = require('express')\n , bodyParser = require('body-parser')\n , mongoose = require('mongoose')\n , cors = require('./cors')\n , app = express();\n\nrequire('.... | javascript | chosen |
[
{
"from": "system",
"value": "[master] Fix issue with express listen method\n"
},
{
"from": "human",
"value": "'use strict'\n\nvar express = require('express')\nvar app = express()\nvar bodyParser = require('body-parser')\nvar path = require('path')\nvar listen\n\napp\n\t.use(bodyParser.urlencod... | javascript | chosen |
[
{
"from": "system",
"value": "Sort letters by series, volume, number\n\nResolves: ADWD-2212\n"
},
{
"from": "human",
"value": "import Ember from 'ember';\nimport Solr from '../mixins/solr';\n\nexport default Ember.Route.extend(Solr, {\n intl: Ember.inject.service(),\n model() {\n return thi... | javascript | chosen |
[
{
"from": "system",
"value": "Format code; prefer single quotes\n"
},
{
"from": "human",
"value": "window.onload=function(){\nvar theNumber = _.random(1, 100);\nvar theList = $(\"#list\");\nvar theBanner = $(\"#triumph\");\n\n$(\"#submit\").click(function() {\n var theGuess = $(\"#guess\").val(... | javascript | chosen |
[
{
"from": "system",
"value": "Allow TestAgent pass a CA to request\n"
},
{
"from": "human",
"value": "\n/**\n * Module dependencies.\n */\n\nvar Agent = require('superagent').agent\n , methods = require('methods')\n , http = require('http')\n , Test = require('./test');\n\n/**\n * Expose `Age... | javascript | chosen |
[
{
"from": "system",
"value": "Set java_home correctly for each OS\n"
},
{
"from": "human",
"value": "module.exports = (function() {\n\tvar path = require('path');\n\t// var java_home = path.resolve(__dirname + '/../jre/Contents/Home');\n\t// var java_home = path.resolve(__dirname + '/../jre');\n... | javascript | chosen |
[
{
"from": "system",
"value": "Fix typo and file path\n"
},
{
"from": "human",
"value": "var chp = require('child_process');\n\nvar Git = {\n\tstageFile: function(modulePath, file, callback) {\n\t\tif (file.status === 'deleted') {\n\t\t\tthis._exec(modulePath, 'rm', [file.name], callback);\n\t\t}... | javascript | chosen |
[
{
"from": "system",
"value": "Remove review* as resources from ubivar-node binding\n"
},
{
"from": "human",
"value": "/* Ubivar API client factory\n * @token [String] required bearer-token from admin interface\n * @version [String] optional, default to 'latest'\n */\nmodule.exports = function(t... | javascript | chosen |
[
{
"from": "system",
"value": "Resolve urls embedded in stylus sheets"
},
{
"from": "human",
"value": "var _ = require('lodash'),\n StylusIncludesPlugin = require('./plugins/stylus-includes');\n\nmodule.exports.config = function(additions) {\n var options = additions.stylus || {},\n defi... | javascript | chosen |
[
{
"from": "system",
"value": "Add newline at end of file.\n"
},
{
"from": "human",
"value": "import dom from 'virtual-element'\nimport {render, tree} from 'deku'\nimport settings from './settings'\nimport socket from './socket'\nimport routes from './routes'\nimport actions from './actions'\nimp... | javascript | chosen |
[
{
"from": "system",
"value": "Remove global reference to customers.\n"
},
{
"from": "human",
"value": "$(function() {\n var CustomersView, CustomerRowView, CustomerModel, CustomerCollection;\n\n CustomerModel = Backbone.Model.extend({});\n\n CustomerCollection = Backbone.Collection.extend({\n... | javascript | chosen |
[
{
"from": "system",
"value": "Replace references to '/' with `path.sep`\n"
},
{
"from": "human",
"value": "var path = require('path'),\n glob = require('glob');\n\nmodule.exports = function (url, file, done) {\n\n // if url starts with . or / then assume it's a local/relative path\n if ... | javascript | chosen |
[
{
"from": "system",
"value": "Update Controller to accept args\n"
},
{
"from": "human",
"value": "var Controller = function() {\n this.pac = new Actor({\n context: actorCanvas.context,\n startX: 113,\n startY: 212,\n name: \"m\",\n direction: \"right\"\n });\n this.blinky = new... | javascript | chosen |
[
{
"from": "system",
"value": "Make `ringo/subprocess` test actually work & pass \nas expected on Windows."
},
{
"from": "human",
"value": "var assert = require('assert');\nvar subprocess = require('ringo/subprocess');\nvar fs = require('fs');\n\nconst RINGO_HOME = system.prefix;\n\nfunction isWi... | javascript | chosen |
[
{
"from": "system",
"value": "Make processing option in SVG builder\n"
},
{
"from": "human",
"value": "var _ = require('lodash'),\n combine = require('stream-combiner'),\n loadGulpPlugins = require('gulp-load-plugins');\n\nmodule.exports = function buildSVG(options) {\n var gulpPlugins = ... | javascript | chosen |
[
{
"from": "system",
"value": "Clean up temporary package.json files.\n"
},
{
"from": "human",
"value": "import buildmessage from \"../utils/buildmessage.js\";\nimport {\n pathJoin,\n statOrNull,\n writeFile,\n} from \"../fs/files.js\";\n\nconst INSTALL_JOB_MESSAGE = \"installing dependencies ... | javascript | chosen |
[
{
"from": "system",
"value": "Modify CSS Exclusions to CSS Shapes, since we split up the specification. Update references.\n"
},
{
"from": "human",
"value": "/*!\n{\n \"name\": \"CSS Shapes\",\n \"property\": \"shapes\",\n \"tags\": [\"css\"],\n \"notes\": [{\n \"name\": \"CSS Shapes W3C ... | javascript | chosen |
[
{
"from": "system",
"value": "Simplify adding the template markup to the document\n"
},
{
"from": "human",
"value": "Wee.fn.make('todo', {\n\tinit: function() {\n\t\t$($('ref:template').text()).insertAfter('ref:nav');\n\n\t\tWee.app.make('items', {\n\t\t\tview: 'ref:todo',\n\t\t\tmodel: {\n\t\t\... | javascript | chosen |
[
{
"from": "system",
"value": "Fix ExtensionManagementApiBrowserTest.LaunchApp to no longer be order-dependent.\n\nWith the break, it fails if the app happens to come before the extension in items.\n\nBUG=104091\nTEST=none\nTBR=asargent@chromium.org\n\nReview URL: http://codereview.chromium.org/8801037\n\ngi... | javascript | chosen |
[
{
"from": "system",
"value": "Fix undefined errors when constructing Undo() with no arguments\n"
},
{
"from": "human",
"value": "(function(Fontclod) {\n\t\"use strict\";\n\n\tfunction Undo(options) {\n\t\tthis.index = options.index || 0;\n\t\tthis.stack = options.stack || [];\n\t\tthis._data = o... | javascript | chosen |
[
{
"from": "system",
"value": "Test for window.jQuery, not just jQuery\n\nTesting for a global variable throws an exception. Testing window\nreturns undefined.\n"
},
{
"from": "human",
"value": "// Returns a jQuery deferred object, or pass a success and fail callbacks if you don't want to use jQu... | javascript | chosen |
[
{
"from": "system",
"value": "Call eval(), if server returns javascript\n"
},
{
"from": "human",
"value": "var LiteAjax = (function () {\n var LiteAjax = {};\n\n LiteAjax.options = {\n method: 'GET',\n url: window.location.href,\n async: true,\n };\n\n LiteAjax.ajax = function (url,... | javascript | chosen |
[
{
"from": "system",
"value": "Remove import of non-existent JS\n\nThe intervention banner Javascript was removed in the publishing components gem as that was no longer needed.\n"
},
{
"from": "human",
"value": "//= require govuk-frontend/govuk/vendor/polyfills/Function/prototype/bind\n\n//= requ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix lexer instantiation in JavaScript\n"
},
{
"from": "human",
"value": "/**\n * Creates a new Lexer for a specific language.\n */\nexports.Lexer = function(lang) {\n return require('./gherkin/lexer/' + lang).Lexer;\n};\n\n/**\n * Creates a connect middleware for l... | javascript | chosen |
[
{
"from": "system",
"value": "Update function name in CLI\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\nvar generateInvoice = require('./')\nvar JSONStream = require('JSONStream')\n\nif (process.argv.length < 4) {\n console.error('Usage: <from> <to>');\n process.exit(1) }\n\nvar from... | javascript | chosen |
[
{
"from": "system",
"value": "Implement 'inverse' prop and remove obsolete styling\n"
},
{
"from": "human",
"value": "import React, { PureComponent } from 'react';\nimport PropTypes from 'prop-types';\nimport { TextBody, TextDisplay } from '../typography';\nimport theme from './theme.css';\n\nex... | javascript | chosen |
[
{
"from": "system",
"value": "ADD auto submit after select search\n\n"
},
{
"from": "human",
"value": "/**\n * Created by sylva on 30/05/2017.\n */\n\n$(document).ready(function () {\n $('#lastFMSearch').autocomplete({\n source: function( request, response ) {\n $.ajax({\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add 'period' query param to news page\n"
},
{
"from": "human",
"value": "const express = require('express');\nconst router = express.Router();\n\nconst Media = require('../lib/models/media');\nconst decorate = require('../lib/decorate/index');\nconst render = requir... | javascript | chosen |
[
{
"from": "system",
"value": "Change proxy init priority (avoid conflict with assets rebuild)\n"
},
{
"from": "human",
"value": "// Launch search daemon if needed, send config to it\n//\n\n'use strict';\n\nconst _ = require('lodash');\nconst cluster = require('cluster');\nconst path = r... | javascript | chosen |
[
{
"from": "system",
"value": "Use empty expression for cron by default\n\nThis way it won't fail (nor execute).\n"
},
{
"from": "human",
"value": "module.exports = {\n port: 8000,\n ga: 'UA-XXXXX-X',\n bugira: 'replacethis',\n cron: 'some expression',\n pingdom: {\n user: '... | javascript | chosen |
[
{
"from": "system",
"value": "Remove Alert since this section is used in ProtonVPN also\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport { c } from 'ttag';\nimport { SubTitle, Label, Row, Field, Alert, useUser } from 'react-components';\nimport { Link } from 'react-router-do... | javascript | chosen |
[
{
"from": "system",
"value": "Allow user to activate his ProtonMail address\n\nFix https://github.com/ProtonMail/proton-vpn-settings/issues/86\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport { c } from 'ttag';\nimport { SubTitle, Label, Row, Field, useUser } from 'react-com... | javascript | chosen |
[
{
"from": "system",
"value": "Fix a bug in renderer.\n"
},
{
"from": "human",
"value": "'use strict';\n\n/**\n * Provides a custom marked renderer.\n * @param {Marked} marked - The marked application.\n * @returns {Marked.Renderer} The customized marked renderer.\n */\nfunction markedRenderer( m... | javascript | chosen |
[
{
"from": "system",
"value": "fix(Loaders): Make css loader rule work on *all* css files.\n"
},
{
"from": "human",
"value": "module.exports = [\n {\n test: /\\.svg$/,\n loader: 'svg-sprite',\n exclude: /fonts/,\n },{\n test: /\\.woff(2)?(\\?v=[0-9]\\.[0-9]\\.[0-... | javascript | chosen |
[
{
"from": "system",
"value": "Add support for passing flags to Mocha\n\nUpdate argv parsing to ignore flags passed to mocha. Without\nthis, enabling the Node.js debugger breaks Nodal's testing\nframework.\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst fs = require('fs');\nconst path =... | javascript | chosen |
[
{
"from": "system",
"value": "Stop drawing wave at inverse of opacityStep\n\nSo if opacity decreases by 0.001 each frame, then stop drawing after\n1000 frames.\n"
},
{
"from": "human",
"value": "function Land()\n{\n this.width = 100;\n this.height = 100;\n this.fillSt... | javascript | chosen |
[
{
"from": "system",
"value": "Add helper function to format numbers.\n"
},
{
"from": "human",
"value": "\"use strict\";\n/**\n * Get count of database-wide values.\n **/\ndefine([\n \"underscore\",\n \"underscore.string\",\n \"backbone\"\n], function(_, _s, Backbone) {\n\n var Global... | javascript | chosen |
[
{
"from": "system",
"value": "Add test to verify it inserts <br> tag on new lines.\n"
},
{
"from": "human",
"value": "import {\n moduleForComponent,\n test\n} from 'ember-qunit';\n\nimport Ember from 'ember';\n\nmoduleForComponent('markdown-to-html', 'MarkdownToHtmlComponent', {\n // specify ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix socket.io disconnect handler TypeError.\n\nHandler assumed redis wrapper was always init'd before disconnection.\n\n* TypeError: Cannot read property 'client' of null\n"
},
{
"from": "human",
"value": "/**\n * Serve automatic timeline updates.\n */\ndefine([], f... | javascript | chosen |
[
{
"from": "system",
"value": "Fix radio load order problems\n\n"
},
{
"from": "human",
"value": "define([\n \"jquery\",\n \"underscore\",\n \"parse\",\n \"backbone\"\n], function( $, _, Parse, Backbone ) {\n\n var userChannel = Backbone.Wreqr.radio.channel('user');\n\n Backbone... | javascript | chosen |
[
{
"from": "system",
"value": "Add i18n string to success message\n"
},
{
"from": "human",
"value": "AutoForm.addHooks(['newActivityForm'], {\n 'onSuccess': function () {\n // Hide the modal dialogue\n Modal.hide('newActivity');\n\n // Alert user that activity was added\n FlashMessag... | javascript | chosen |
[
{
"from": "system",
"value": "Make the `wrapped` sagas utility function properly handle a more varied set of patterns\n\nSigned-off-by: Victor Porof <7d8eebacd0931807085fa6b9af29638ed74e0886@mozilla.com>\n"
},
{
"from": "human",
"value": "/*\nCopyright 2016 Mozilla\n\nLicensed under the Apache L... | javascript | chosen |
[
{
"from": "system",
"value": "Make sure the auth middleware returns\n\nThus not breaking the chain of middleware return values\n"
},
{
"from": "human",
"value": "import { REHYDRATE } from 'redux-persist/constants'\nimport {\n refreshAuthenticationToken,\n scheduleAuthRefresh,\n} from '../actio... | javascript | chosen |
[
{
"from": "system",
"value": "Use full paths to webpack entries\n"
},
{
"from": "human",
"value": "import webpack from 'webpack'\nimport getBaseConfig from './webpack.config'\n\nexport default config => {\n const baseConfig = getBaseConfig(config)\n\n return Object.assign({}, baseConfig, {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Move the list class to the div\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar Component = require('../../ui/Component');\nvar $$ = Component.$$;\nvar ListHtmlConverter = require('./ListHTMLConverter');\nvar ListItemComponent = require('./ListItemComponent')... | javascript | chosen |
[
{
"from": "system",
"value": "Fix typo in store schema\n"
},
{
"from": "human",
"value": "const mongoose = require('mongoose');\nmongoose.Promise = global.Promise;\nconst slug = require('slugs');\n\nconst storeSchema = new mongoose.Schema({\n name: {\n type: String,\n trim: true,\n req... | javascript | chosen |
[
{
"from": "system",
"value": "Update validation handling to work with missing data\n"
},
{
"from": "human",
"value": "/* @flow */\nimport {\n Either,\n} from './utils/'\n\nimport {\n curry,\n compose,\n map,\n prop,\n mergeWithKey,\n sequence,\n} from 'ramda'\n\nconst { Right, Left } = Ei... | javascript | chosen |
[
{
"from": "system",
"value": "Use TM_BUNDLE_SUPPORT over the deprecated TM_BUNDLE_PATH variable.\n"
},
{
"from": "human",
"value": "/* Git JS gateway */\n/* Tim Harper (tim.harper at leadmediapartners.org) */\nfunction e_sh(str) { \n return '\"' + (str.toString().gsub('\"', '\\\\\"')) + '\"';\n... | javascript | chosen |
[
{
"from": "system",
"value": "Update regex of image source\n"
},
{
"from": "human",
"value": "import EventEmitter from 'eventemitter3'\nimport Mousetrap from 'mousetrap'\nimport dragDrop from 'drag-drop'\n\nclass Commands extends EventEmitter {\n\n\tconstructor() {\n\t\tsuper()\n\n\t\tthis._init... | javascript | chosen |
[
{
"from": "system",
"value": "Install Babel before trying to generate `dist-modules`\n\nOtherwise it will rely on global Babel...\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\n// adapted based on rackt/history (MIT)\nvar execSync = require('child_process').execSync;\nvar stat = require... | javascript | chosen |
[
{
"from": "system",
"value": "Fix function call error on feeback page\n"
},
{
"from": "human",
"value": "var config = require('config');\nvar fmt = require('fmt');\nvar otp = require('otp');\nvar Plan = require('plan');\nvar view = require('view');\n\nvar Feedback = module.exports = view(require... | javascript | chosen |
[
{
"from": "system",
"value": "Fix eleventy-img fetch 404 issue\n"
},
{
"from": "human",
"value": "const Image = require('@11ty/eleventy-img');\n\nmodule.exports = async (src, alt, className, outputFormat = 'jpeg') => {\n const stats = await Image(src, {\n cacheDuration: '12w',\n formats: ... | javascript | chosen |
[
{
"from": "system",
"value": "Handle updating water count elsewhere\n"
},
{
"from": "human",
"value": "export default function interact() {\n const game = this.game.state.states.Game;\n\n const player = game.player;\n\n player.inventory.water++;\n\n // this should be its own function somewhe... | javascript | chosen |
[
{
"from": "system",
"value": "Fix missing auto-resizing behavior on image learning items\n"
},
{
"from": "human",
"value": "export default (props) => (\n <img src={`https://chalees-min.imgix.net${props.imagePath}?w=726&fit=clip&auto=format,compress`} />\n)"
},
{
"from": "gpt",
"valu... | javascript | chosen |
[
{
"from": "system",
"value": "Send bowerHash error via done"
},
{
"from": "human",
"value": "'use strict';\n\nvar path = require('path');\nvar async = require('async');\nvar bowerHash = require('./bower-hash');\n\nfunction updateCache(context, bowerDirectory, done) {\n var cachier = context.cac... | javascript | chosen |
[
{
"from": "system",
"value": "Increase weight of Tax Disc Beta AB to 100%\n\nThis shows the beta option as the most prominent option to the majority\nof users."
},
{
"from": "human",
"value": "//= require govuk/multivariate-test\n\n/*jslint browser: true,\n * indent: 2,\n * white: true\n */\n/... | javascript | chosen |
[
{
"from": "system",
"value": "Return empty array, if no posts\n"
},
{
"from": "human",
"value": "import Component from '@ember/component';\nimport { computed } from '@ember-decorators/object';\n\nexport default class BlogPostMenu extends Component {\n @computed('page', 'posts.[]')\n get pagina... | javascript | chosen |
[
{
"from": "system",
"value": "Check window object exists before polyfilling\n"
},
{
"from": "human",
"value": "window.EventSourcePolyfill = require('./eventsource')\nwindow.EventSource = window.EventSource || window.EventSourcePolyfill\n"
},
{
"from": "gpt",
"value": "var EventSource... | javascript | chosen |
[
{
"from": "system",
"value": "Add validate User id middleware to protected routes\n"
},
{
"from": "human",
"value": "import express from 'express';\nimport * as validate from '../../middleware/validate';\nimport * as recipeController from '../../controllers/recipes';\nimport * as reviewControlle... | javascript | chosen |
[
{
"from": "system",
"value": "Fix error handling on promised requests\n"
},
{
"from": "human",
"value": "var Q = require('q');\n\nmodule.exports = function(url) {\n var deferred = Q.defer();\n require('request')(url, function(err, response, body) {\n if(!err) {\n return d... | javascript | chosen |
[
{
"from": "system",
"value": "Add test to get an object out back as an object\n"
},
{
"from": "human",
"value": "var Assert = require('assert');\nvar CacheAllTheThings = require('../');\n\ndescribe('CacheAllTheThings', function() {\n\n it('When asked to boot a Redis instance, it shou... | javascript | chosen |
[
{
"from": "system",
"value": "Fix jslint warning in null checks\n"
},
{
"from": "human",
"value": "/*!\n * Wef\n * Copyright (c) 2011 Pablo Escalada\n * MIT Licensed\n */\n\n/**\n * wef module\n */\n(function(global) {\n var wef = function() {\n return new wef.prototype.init();\n };... | javascript | chosen |
[
{
"from": "system",
"value": "Insert now handles sending back a list of items created. Optionally if\nthere is one item created you have have it returned as an array.\n"
},
{
"from": "human",
"value": "module.exports = function(r) {\n 'use strict';\n\n return {\n insert: insert,\n ... | javascript | chosen |
[
{
"from": "system",
"value": "[fix]: Set NODE_ENV to development if not defined\n"
},
{
"from": "human",
"value": "import dotenv from 'dotenv';\nimport './CreateRSAKeyFile';\nimport models from './models';\nimport app from './server';\n\ndotenv.config();\ndotenv.config({ path: `${__dirname}/key/... | javascript | chosen |
[
{
"from": "system",
"value": "Remove TODO as it has been dealt with.\n"
},
{
"from": "human",
"value": "/* jshint node: true */\nvar mongoose = require('mongoose');\nvar dbUrl = process.env.MONGO_URL;\n\nif (!dbUrl) {\n console.error(\"Unable to start application - no MONGO_URL defined - halt... | javascript | chosen |
[
{
"from": "system",
"value": "Support for error and end events\n"
},
{
"from": "human",
"value": "const iterateObject = require(\"iterate-object\")\n , typpy = require(\"typpy\")\n , mapObject = require(\"map-o\")\n ;\n\nfunction prepareData(input) {\n iterateObject(input, value => {... | javascript | chosen |
[
{
"from": "system",
"value": "Fix fieldName could be path\n"
},
{
"from": "human",
"value": "var Textfield = require('./../index');\n\nTextfield.prototype._toggleFocus = function () {\n this._removeInvalid();\n this.model.set('isFocused', !this.model.get('isFocused'));\n};\n\nTextfield.prototy... | javascript | chosen |
[
{
"from": "system",
"value": "Add route for table rows\n"
},
{
"from": "human",
"value": "var express = require('express');\nvar router = express.Router();\n\nrouter.get('/', function (req, res, next) {\n res.render('index', { title: 'Express' });\n});\n\nmodule.exports = router;\n"
},
{
... | javascript | chosen |
[
{
"from": "system",
"value": "Remove support for environment variable override.\n\nWe can add support back if needed, but it makes the config parsing a bit\nmore annoying for now...\n"
},
{
"from": "human",
"value": "'use strict';\n\n/*eslint no-console: [0] */\n\nvar path = require('path');\nva... | javascript | chosen |
[
{
"from": "system",
"value": "Add checks to change redirect URLs on deploy\n"
},
{
"from": "human",
"value": "// require('dotenv').config();\r\n\r\nmodule.exports = {\r\n host: process.env.HOST,\r\n port: process.env.PORT,\r\n fitbit: {\r\n client: {\r\n id: process.en... | javascript | chosen |
[
{
"from": "system",
"value": "[test] Add `deviceName` field for Android\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst sauceBrowsers = require('sauce-browsers');\nconst run = require('sauce-test');\nconst path = require('path');\n\nconst pkg = require('../package');\n\nconst platforms... | javascript | chosen |
[
{
"from": "system",
"value": "Add isFinite check to retry time\n"
},
{
"from": "human",
"value": "var _currentRetryTime = 0\nvar currentRetryTimeDep = new Deps.Dependency\n\ncurrentRetryTime = function() {\n currentRetryTimeDep.depend()\n\n return _currentRetryTime\n}\n\nMeteor.setInterval(fun... | javascript | chosen |
[
{
"from": "system",
"value": "CHANGE the size at which we go to mobile layout to 600\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport styled from '@emotion/styled';\nimport ResizeDetector from 'react-resize-detector';\nimport { inject, observer } from 'mobx-react';\n\nimport... | javascript | chosen |
[
{
"from": "system",
"value": "Clear welcome message after login\n\nNote that this can't really be reversed, so once you login, you're stuck. Will fix, but something of note :/\n"
},
{
"from": "human",
"value": "define([\n\t'jquery',\n\t'backbone',\n\t'marionette',\n\t'appbar/appbar.model',\n\t'a... | javascript | chosen |
[
{
"from": "system",
"value": "Update up to changes in es5-ext\n"
},
{
"from": "human",
"value": "'use strict';\n\nmodule.exports = require('./_and-or')(require('es5-ext/function/i'));\n"
},
{
"from": "gpt",
"value": "'use strict';\n\nmodule.exports = require('./_and-or')(require('es5... | javascript | chosen |
[
{
"from": "system",
"value": "Fix typo - flag type should be in quotes"
},
{
"from": "human",
"value": "#!/usr/bin/env node\n\n'use strict';\n\nconst meow = require('meow');\nconst autoDistTag = require('./src/auto-dist-tag');\n\nconst cli = meow(`\n\tUsage\n\t $ auto-dist-tag [path]\n\n\tOptio... | javascript | chosen |
[
{
"from": "system",
"value": "Change view back to index"
},
{
"from": "human",
"value": "class Index {\n static showIndex(req,res){\n res.render(\"underConstruction\");\n }\n}\n\nmodule.exports = Index;"
},
{
"from": "gpt",
"value": "class Index {\n static showIndex(r... | javascript | chosen |
[
{
"from": "system",
"value": "Use \"style\" property in package.json\n\nThis seems to be a prevailing standard already (http://stackoverflow.com/questions/32037150/style-field-in-package-json) so use that instead of https://xkcd.com/927/\n"
},
{
"from": "human",
"value": "var findup = require('f... | javascript | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.