conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Throw error, don't return it\n"
},
{
"from": "human",
"value": "var Bluebird = require('bluebird');\n\n\nmodule.exports = issueRequest;\n\n\nfunction issueRequest (request) {\n return Bluebird.resolve(request)\n .catch(normalizeResponseError)\n .the... | javascript | chosen |
[
{
"from": "system",
"value": "Handle request for report on user, by sending JSON data generated by reportMusic().\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst router = require('express').Router();\n\nmodule.exports = router;\n\n\nrouter.get('/', (req, res) => {\n res.sendFile('in... | javascript | chosen |
[
{
"from": "system",
"value": "Use _.wrap instead of manually wrapping\n"
},
{
"from": "human",
"value": "var TabBarView = require(\"/Applications/Atom.app/Contents/Resources/app/node_modules/tabs/lib/tab-bar-view\");\nvar original = TabBarView.prototype.addTabForItem;\nTabBarView.prototype.addTa... | javascript | chosen |
[
{
"from": "system",
"value": "Change placeholder words for now\n"
},
{
"from": "human",
"value": "function replace() {\n var watch_words = {\n 'Bill': 'a thing',\n 'Activity': 'an action',\n };\n function span_wrap(text) {\n return ' <span class=\"glossary\" title=\"' + watch_words[t... | javascript | chosen |
[
{
"from": "system",
"value": "Add support for new data structure\n\n"
},
{
"from": "human",
"value": "import _ from 'underscore';\nimport Levenshtein from 'levenshtein'\n\nexport function getStatusForResponse(response = {}) {\n if (!response.feedback) {\n return 4;\n } else if (response.par... | javascript | chosen |
[
{
"from": "system",
"value": "[input:doi] Make check when parsing API data safe\n\nMake a check when polishing API data not fail\nwhen a date field is an empty object.\n\nClose #147\n"
},
{
"from": "human",
"value": "/**\n * @module input/doi\n */\n\nimport fetchDoiType from './type'\n\n/**\n * ... | javascript | chosen |
[
{
"from": "system",
"value": "Change comment style as block comments don't work\n"
},
{
"from": "human",
"value": "/*\nUse with \"mongo < reset-mongo.js\"\nHard codes the DB name for now\n*/\nconn = new Mongo();\ndb = conn.getDB('popitdev_candidates');\ndb.organizations.remove({})\ndb.posts.remo... | javascript | chosen |
[
{
"from": "system",
"value": "Use new fh-webapp error handler\n"
},
{
"from": "human",
"value": "var webapp = require('fh-webapp');\nvar express = require('express');\n$fh = require('fh-api');\nvar mainjs = require('./lib/main.js');\n\nvar app = express();\napp.use('/sys', webapp.sys(mainjs));\n... | javascript | chosen |
[
{
"from": "system",
"value": "[BUGFIX] Fix the path pointing to the main config file inside the r.js task\n"
},
{
"from": "human",
"value": "/**\n * Grunt-Contrib-RequireJS\n * @description Optimize RequireJS projects using r.js.\n * @docs https://github.com/gruntjs/grunt-contrib-requirejs\n*/\n... | javascript | chosen |
[
{
"from": "system",
"value": "Add basic drawer layout to Android\n"
},
{
"from": "human",
"value": "/*\n * Copyright 2017-present, Hippothesis, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of th... | javascript | chosen |
[
{
"from": "system",
"value": "Remove intermediate component for Downtime Description\n\nCo-Authored-By: mtblanton <ff3767a2946a035986dc93c3e03f4c6c2fed5075@gmail.com>"
},
{
"from": "human",
"value": "import React from 'react';\nimport PropTypes from 'prop-types';\nimport Checklist from 'parser/s... | javascript | chosen |
[
{
"from": "system",
"value": "Make watch kicker load up using configured source path\n"
},
{
"from": "human",
"value": "// Runs the webpack dev server and respawns \n// the server when pages,components, and tags\n// are created or destroyed.\n//\n// This is required because the webpack \n// stat... | javascript | chosen |
[
{
"from": "system",
"value": "Use grunt newline logger functions\n"
},
{
"from": "human",
"value": "module.exports = function(grunt) {\n\n return {\n\n LOG_SUCCESS: 0,\n LOG_DEBUG: -1,\n LOG_INFO: -2,\n LOG_NOTICE: -3,\n LOG_ERROR: -4,\n LOG_CRITICAL: -5,\n\n log: function(... | javascript | chosen |
[
{
"from": "system",
"value": "Add a minify function to webpack\n"
},
{
"from": "human",
"value": "var path = require('path');\nvar replacements = require('./replacements.config');\nmodule.exports = {\n entry: {\n app: './src/app.ts'\n },\n output: {\n filename: './www/js/[name].dist.js'... | javascript | chosen |
[
{
"from": "system",
"value": "Remove webpack bundle analyzer for netlify deploy\n"
},
{
"from": "human",
"value": "const path = require('path');\nconst BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;\n\nmodule.exports = env => ({\n context: __dirname,\n entry: '... | javascript | chosen |
[
{
"from": "system",
"value": "Add Referer to proxy server.\n"
},
{
"from": "human",
"value": "\"use strict\";\n\nconst webpack = require(\"webpack\");\nconst path = require(\"path\");\nconst ExtractTextPlugin = require(\"extract-text-webpack-plugin\");\n\nmodule.exports = {\n context: path.re... | javascript | chosen |
[
{
"from": "system",
"value": "Add babel sourcemaps in dev\n"
},
{
"from": "human",
"value": "var ExtractTextPlugin = require(\"extract-text-webpack-plugin\");\nvar CopyWebpackPlugin = require(\"copy-webpack-plugin\");\nvar webpack = require('webpack')\nvar WebpackNotifierPlugin = require('webpac... | javascript | chosen |
[
{
"from": "system",
"value": "Clear storage before each test\n"
},
{
"from": "human",
"value": "import { API } from 'api';\nimport superagent from 'superagent';\n\ndescribe('api interface', () => {\n\n it('should export api version', () => {\n expect(API.version).toBe('0.0.1');\n });\n\n i... | javascript | chosen |
[
{
"from": "system",
"value": "Enforce linux-style end of line characters in prettier.\n"
},
{
"from": "human",
"value": "/*\n * Configuration object for prettier options, should be used wherever prettier is invoked.\n */\n\nmodule.exports = {\n printWidth: 100,\n singleQuote: true,\n trailing... | javascript | chosen |
[
{
"from": "system",
"value": "Add $httpProviders service and call useApplyAsync to speed up http requests\n"
},
{
"from": "human",
"value": "(function(){\n 'use strict';\n\n angular\n .module('shareMark', ['ngMessages', 'ui.router', 'templates', 'ngclipboard', 'ngTagsInput'])\n\n .config... | javascript | chosen |
[
{
"from": "system",
"value": "Remove unneccessary declaration from controller\n"
},
{
"from": "human",
"value": "import Ember from 'ember';\n\nconst { computed } = Ember;\n\nexport default Ember.Controller.extend({\n queryParams: ['channel'],\n channel: null\n});\n"
},
{
"from": "gpt",... | javascript | chosen |
[
{
"from": "system",
"value": "Update concept title to name\n"
},
{
"from": "human",
"value": "'use strict';\n\nmodule.exports = {\n type: 'select',\n autoOptions: 'concept.title for concept in concepts.concept_level_0 track by concept.concept_level_0.uid',\n model: 'concept_level_0',\n label... | javascript | chosen |
[
{
"from": "system",
"value": "Fix UTF8 test to run successfully in old versions of nodejs.\n"
},
{
"from": "human",
"value": "/**\n * @license\n * Copyright 2015 Google Inc. All Rights Reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this fi... | javascript | chosen |
[
{
"from": "system",
"value": "Check for name conflicts in API generator.\n"
},
{
"from": "human",
"value": "/**\n * Created by jay on 6/21/2015.\n */\n'use strict';\n\nvar chai = require('chai'),\n assert = chai.assert;\nvar fs = require('fs');\n\n// Hey, that's us!\nvar parse = require('../api... | javascript | chosen |
[
{
"from": "system",
"value": "Change rate limiting to 0.5 req/ms\n"
},
{
"from": "human",
"value": "\"use strict\";\n\nvar defaultView = {\n center: L.latLng(48.84, 10.10),\n zoom: 5,\n waypoints: [],\n language: 'en'\n};\n\nvar defaultControl = {\n geocoder: L.Control.Geocoder.nominatim(),... | javascript | chosen |
[
{
"from": "system",
"value": "Make use of path.join for cross-platform\n"
},
{
"from": "human",
"value": "// Note: You must restart bin/webpack-watcher for changes to take effect\n\nvar path = require('path')\nvar glob = require('glob')\nvar _ = require('lodash')\n\nmodule.exports = {\n entr... | javascript | chosen |
[
{
"from": "system",
"value": "Use design doc name instead of db name\n"
},
{
"from": "human",
"value": "function () {\n var widget = $(this);\n var db = $$(widget).app.db;\n var questionId = $$(widget).app.req.path.pop();\n\n db.view(db.name + '/answers', {\n 'startkey' : [questionId],\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add EventSubscribing mixin to LayoutController\n"
},
{
"from": "human",
"value": "\nSpace.Object.extend(TodoMVC, 'LayoutController', {\n\n dependencies: {\n layout: 'BlazeLayout'\n },\n\n eventSubscriptions() {\n return [{\n 'TodoMVC.FilterRouteTrigger... | javascript | chosen |
[
{
"from": "system",
"value": "Add ProjectUser levels to model\n"
},
{
"from": "human",
"value": "var mongoose = require('mongoose');\nvar Schema = mongoose.Schema;\n\n/**\n* Level\n* 0 : Membre\n* 1 : Administrateur\n* 2 : Créateur\n**/\n\nvar ProjectUserSchema = new Schema(\n{\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Switch builder URL back to dev\n"
},
{
"from": "human",
"value": "var builderConfig = {\n distURL: \"https://games.buzzfeed.com/_uk/annotator/dist/annotator.min.js\"\n //distURL: \"../dist/annotator.min.js\"\n}"
},
{
"from": "gpt",
"value": "var builde... | javascript | chosen |
[
{
"from": "system",
"value": "Fix broken embeds in incognito\n\n## Issue\nCloses 6490\nEmbeds in https://lbry.com/news/2002dtf was crashing in incognito\n\n## Change\nEnsure localStorage is available before using it. Jessop warned me before...\n"
},
{
"from": "human",
"value": "import React from... | javascript | chosen |
[
{
"from": "system",
"value": "Add speech on minute change.\n"
},
{
"from": "human",
"value": "var Clock = (function() {\n var display = document.getElementById('timedisplay'),\n hourdisplay = document.getElementById('hour'),\n minutedisplay = document.getElementById('minute'),\n... | javascript | chosen |
[
{
"from": "system",
"value": "Add resolving for item queries\n\n"
},
{
"from": "human",
"value": "import Item from \"./graphql/types/item\"\nimport Update from \"./graphql/types/update\"\nimport { makeExecutableSchema } from \"graphql-tools\"\n\nconst RuneScapeQuery = `\n type RuneScapeQuery {\... | javascript | chosen |
[
{
"from": "system",
"value": "Fix chessground size on start\n"
},
{
"from": "human",
"value": "/* application entry point */\n\n'use strict';\n\nvar ctrl = require('./ctrl');\nvar view = require('./view');\nvar m = require('mithril');\n\nfunction main() {\n\n var controller = new ctrl();\n m.m... | javascript | chosen |
[
{
"from": "system",
"value": "Update karma test file for unit tests\n"
},
{
"from": "human",
"value": "Error.stackTraceLimit = Infinity;\n\nrequire('core-js/es6');\nrequire('reflect-metadata');\n\nrequire('zone.js/dist/zone');\nrequire('zone.js/dist/long-stack-trace-zone');\nrequire('zone.js/dis... | javascript | chosen |
[
{
"from": "system",
"value": "Implement the Google Music connector.\n"
},
{
"from": "human",
"value": "// Copyright (c) 2013 Matt Runkle. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\nconsole.log(\"I AM GOOGLE MU... | javascript | chosen |
[
{
"from": "system",
"value": "Remove unnecessary nesting when adding comment\n"
},
{
"from": "human",
"value": "import { createActionTypeConstants } from 'actions/promises';\nimport { createAction } from 'redux-actions';\nimport { model } from 'stores/falcor-model';\nimport { throwAsReduxFormErr... | javascript | chosen |
[
{
"from": "system",
"value": "Rewrite test cases using async.\n"
},
{
"from": "human",
"value": "import chai from 'chai'\n\nimport { \n streamabconstoText, buffersToStreamable, reuseStream, streamToBuffers\n} from '../lib/stream-util'\n\nimport { promiseChain, resolve } from 'quiver-promise'\n\... | javascript | chosen |
[
{
"from": "system",
"value": "Test: Expand globbing pattern to match tests in directories\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\n'use strict';\n\nvar Mocha = require('mocha');\nrequire('mocha-as-promised')(Mocha);\n\nvar chai = require('chai');\nchai.use(require('chai-as-promise... | javascript | chosen |
[
{
"from": "system",
"value": "Speed up message extraction by using one rule (one pass) instead of 4\n\nTime with 4 rules: getScope: 33s, tokenize: 86s, tokenizeJsx: 321ms\nTime with 1 rule: getScope: 33s, tokenize: 20s, tokenizeJsx: 313ms\n"
},
{
"from": "human",
"value": "module.exports = {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Replace 3rd and 4th panes\n"
},
{
"from": "human",
"value": "$(function() {\n\n \"use strict\";\n\n window.AppConfig = {\n srcBase: 'https://graphite-phx.mozilla.org/render/?',\n globalGraphOptions: {\n hideLegend: false,\n from: '-24hour'\n },\... | javascript | chosen |
[
{
"from": "system",
"value": "Deploy to GitHub pages [ci skip]\n"
},
{
"from": "human",
"value": "export Tuttolino404 from \"./tuttolino-404.png\";\nexport TuttolinoCompetitor from \"./tuttolino-competitor.svg\";\nexport TuttolinoErrorMobile from \"./tuttolino-error-mobile.png\";\nexport Tuttoli... | javascript | chosen |
[
{
"from": "system",
"value": "Initialize state with empty strings\n"
},
{
"from": "human",
"value": "import Immutable from 'immutable';\nimport * as actionTypes from './ProfileActionTypes';\n\nexport const INITIAL_STATE:Immutble.Map<*, *> = Immutable.fromJS({\n firstName: 'Corwin',\n lastName:... | javascript | chosen |
[
{
"from": "system",
"value": "Add the known remotes as a property of the module.\n"
},
{
"from": "human",
"value": "\nvar knownRemotes = {\n '207.97.227.253',\n '50.57.128.197',\n '108.171.174.178'\n};\n\nmodule.exports = function whitelist( options )\n{\n options = options || {};\n\... | javascript | chosen |
[
{
"from": "system",
"value": "Add fix for browsers without window.console."
},
{
"from": "human",
"value": "$(function() {\n var cookie_name = $('body').attr('data-mobile-cookie');\n $(\".desktop-link\").attr(\"href\", window.location).click(function() {\n $.cookie(cookie_name, \"of... | javascript | chosen |
[
{
"from": "system",
"value": ":bug: Fix dirname deprecation when user config path is null\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst fs = require('fs');\nconst os = require('os');\nconst path = require('path');\n\nconst Logger = require('../../lib/logger');\nconst configPath = typ... | javascript | chosen |
[
{
"from": "system",
"value": "Change to use className instead of classList for brevity.\n"
},
{
"from": "human",
"value": "import ko from 'knockout'\nimport ptable from './ptable'\n\nconsole.log('Main js file loaded!')\nconsole.log('Knockout loaded: ', ko.version)\n\nfunction AppViewModel() {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Comment and toast delete tested\n"
},
{
"from": "human",
"value": "(function () {\n 'use strict';\n\n angular\n .module('drinks', ['ngAnimate', 'toastr'])\n .controller('DrinksListController', DrinksListController);\n\n DrinksListController.$inject = ['Drin... | javascript | chosen |
[
{
"from": "system",
"value": "Fix dashboard chart update after customer switch.\nTemporary disable chart pulling.\n"
},
{
"from": "human",
"value": "// @flow\nimport { delay, takeEvery } from 'redux-saga';\nimport { call, take, put, cancel, fork } from 'redux-saga/effects';\n\nimport api from '.... | javascript | chosen |
[
{
"from": "system",
"value": "Improve error message for basic validation\n"
},
{
"from": "human",
"value": "'use strict';\n\n\nconst { validate } = require('../../validation');\nconst { actions } = require('../../idl');\n\n\n/**\n * API basic validation layer\n * Check API input, for the errors ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix regression due to refactoring\n"
},
{
"from": "human",
"value": "'use strict';\n\n/**\n * Compute a `display` property regarding of access display\n * configuration.\n */\nmodule.exports = function display(ctx) {\n ctx.data = ctx.data.filter(function (item) {\n... | javascript | chosen |
[
{
"from": "system",
"value": "Move property accessor to top of class."
},
{
"from": "human",
"value": "export default class DomNode {\n static fromRenderedNode(renderedNode) {\n let domNode = new DomNode();\n domNode._renderedNode = renderedNode;\n return domNode;\n }\n hasAttribute(... | javascript | chosen |
[
{
"from": "system",
"value": "Stop Loading... component displaying from react-komposer\n"
},
{
"from": "human",
"value": "import { compose, composeWithTracker } from 'react-komposer'\nimport { inject } from '@mindhive/di'\n\n\nexport const withAsync = (asyncFunc, shouldResubscribe) =>\n compose... | javascript | chosen |
[
{
"from": "system",
"value": "Codegen: Format Document after codegen to fix...\n\n..indents. The code we inserted was generated as well-formatted but\nindenting is relative to the existing text in the document. Since we\ndidn't examine existing text and are unaware of the indent depth where\ngenerated code ... | javascript | chosen |
[
{
"from": "system",
"value": "Add link back to Github in end app\n"
},
{
"from": "human",
"value": "import React from 'react'\nimport useGiphy from './useGiphy'\nimport Results from './Results'\nimport SearchForm from './SearchForm'\n\nconst App = () => {\n const [{ status, results, error }, se... | javascript | chosen |
[
{
"from": "system",
"value": "Disable headings for everything except blogs\n"
},
{
"from": "human",
"value": "'use strict';\n\n\nmodule.exports.up = async function (N) {\n let global_store = N.settings.getStore('global');\n\n if (!global_store) throw 'Settings store `global` is not registered.... | javascript | chosen |
[
{
"from": "system",
"value": "Move error formatting to helper\n"
},
{
"from": "human",
"value": "const moment = require('moment-timezone');\n\nexports.printMessage = function (message) {\n console.log(message);\n};\n\nexports.printError = function (message) {\n console.log(message);\n};\n\nexp... | javascript | chosen |
[
{
"from": "system",
"value": "Add underscore and require all js by default\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 within this directory, lib/asset... | javascript | chosen |
[
{
"from": "system",
"value": "test: Set an higher jest timeout on appveyor jobs\n"
},
{
"from": "human",
"value": "import sinon from 'sinon';\n\n// Setup sinon global to be a sandbox which is restored\n// after each test.\nconst realSinon = sinon;\nglobal.sinon = realSinon.createSandbox();\nglob... | javascript | chosen |
[
{
"from": "system",
"value": "Reset timer reference when timer is stopped\n\n - Not resetting it make the timer not start\n the next time\n\nSigned-off-by: Felipe Milani <6def120dcec8fcb28aed4723fac713cfff66d853@gmail.com>\n"
},
{
"from": "human",
"value": "import { compose, withHandlers, with... | javascript | chosen |
[
{
"from": "system",
"value": "Add logging when getting a random radio option\n"
},
{
"from": "human",
"value": "/**\n * Get a random option from a radio button list\n * @param selector\n * @param callback\n */\nexports.command = function getRadioOption (name, callback) {\n return this.elements(... | javascript | chosen |
[
{
"from": "system",
"value": "Add support for the Marionette Inspector.\n\n* The inspection needs access to Backbone and Marionette.\n\nCloses #45\n"
},
{
"from": "human",
"value": "\"use strict\";\n\n// Ensure that Backbone is required before Marionette.\n\nvar Backbone = require('./backbone'),... | javascript | chosen |
[
{
"from": "system",
"value": "Remove unreachable code in markdowncell\n\nThis code was refactored in 1112647a69a8e9d9e0c5b71ab8a733fcb53eeee0\nand was never removed.\n"
},
{
"from": "human",
"value": "/*\n * Copyright 2014 TWO SIGMA OPEN SOURCE, LLC\n *\n * Licensed under the Apache License, V... | javascript | chosen |
[
{
"from": "system",
"value": "Update client side search with lunr.js\n"
},
{
"from": "human",
"value": "//= require ./lib/_energize\n//= require ./app/_lang\n//= require ./app/_search\n//= require ./app/_toc\n//= require ./app/_api-key-dialog\n"
},
{
"from": "gpt",
"value": "//= requ... | javascript | chosen |
[
{
"from": "system",
"value": "Update for React changes in API.\n"
},
{
"from": "human",
"value": "/**\n * @jsx React.DOM\n */\n\nvar React = require('react');\n\nexports.ResultModal = React.createClass({\n\n\t/**\n\t * Invoked immediately after updating occurs. This method is not called for the ... | javascript | chosen |
[
{
"from": "system",
"value": "Revert fix for anchors and bootstrap fixed navbar\n"
},
{
"from": "human",
"value": "$(document).ready(function() {\n // Initialize scrollspy\n $('body').scrollspy({ target: '#side-nav' });\n\n // Add responsiveness to images\n $('.js-one-column img').addClass('... | javascript | chosen |
[
{
"from": "system",
"value": "Add jest to E2E test\n"
},
{
"from": "human",
"value": "const webdriver = require('selenium-webdriver')\n\n// Input capabilities\nconst capabilities = {\n os: 'windows',\n os_version: '10',\n browserName: 'chrome',\n browser_version: 'latest',\n 'browserstack.l... | javascript | chosen |
[
{
"from": "system",
"value": "Remove debug of ui router state changes.\n"
},
{
"from": "human",
"value": "(function (module) {\n module.controller(\"FileEditController\", FileEditController);\n\n FileEditController.$inject = ['file', '$scope'];\n\n /* @ngInject */\n function FileEdit... | javascript | chosen |
[
{
"from": "system",
"value": "Add more input types for native copy-paste handling.\n"
},
{
"from": "human",
"value": "/*\n * Copyright 2020 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 ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix test with ES6 compatible Promise\n"
},
{
"from": "human",
"value": "var suite = new core.testrunner.Suite(\"Flow\");\n\n\nsuite.test(\"sequence\", function() {\n var result = []; \n\n var func1 = function() {\n var promise = new core.event.Promise;\n\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix htmlSafe helper after ember upgrades.\n"
},
{
"from": "human",
"value": "import { helper } from '@ember/component/helper';\n\nexport function htmlSafe(params) {\n let value = params[0];\n return new htmlSafe(value);\n}\n\nexport default helper(htmlSafe);\n"
... | javascript | chosen |
[
{
"from": "system",
"value": "Fix erroneous import in ListedCFD class.\n"
},
{
"from": "human",
"value": "import ListedDerivative from '../../ListedDerivative/listedDerivative'\n\nclass ListedContractForDifference extends ListedDerivative {\n constructor({\n assetManagerId,\n assetId,\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix redirects for build creation\n"
},
{
"from": "human",
"value": "define([\n 'app'\n], function(app) {\n 'use strict';\n\n return {\n parent: 'project_details',\n url: \"new/build/\",\n templateUrl: 'partials/project-build-create.html',\n controller... | javascript | chosen |
[
{
"from": "system",
"value": "Fix error registring admin EE routes when feature is disabled\n"
},
{
"from": "human",
"value": "'use strict';\n\n// eslint-disable-next-line node/no-extraneous-require\nconst { features } = require('@strapi/strapi/lib/utils/ee');\nconst featuresRoutes = require('./... | javascript | chosen |
[
{
"from": "system",
"value": "Fix not checking the right constants\n"
},
{
"from": "human",
"value": "\"use strict\";\n\nimport { Constants as AssessmentMetaConstants } from '../actions/assessment_meta';\n\nconst initialState = {};\n\nexport default (state = initialState, action) => {\n\n swi... | javascript | chosen |
[
{
"from": "system",
"value": "Add borderRadius variants to the box prop list\n"
},
{
"from": "human",
"value": "import omit from 'lodash.omit';\nimport pick from 'lodash.pick';\n\nconst boxProps = [\n 'alignContent',\n 'alignItems',\n 'alignSelf',\n 'borderWidth',\n 'borderBottomWidth',\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix for Firefox/Safari ignoring initial srcset attribute\n"
},
{
"from": "human",
"value": "$.Redactor.prototype.WoltLabSmiley = function() {\n\t\"use strict\";\n\t\n\treturn {\n\t\tinit: function() {\n\t\t\trequire(['EventHandler'], (function(EventHandler) {\n\t\t\... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"casing lock on usernames. force lowercase\"\n\nThis reverts commit cd8caf39b99c0eb2a1757a92563b869406fac94f.\n"
},
{
"from": "human",
"value": "/**\n * Created by nightpaws on 08/02/2016.\n */\nangular.module('user')\n .controller('user.login.controller'... | javascript | chosen |
[
{
"from": "system",
"value": "Add origin function to vendor\n"
},
{
"from": "human",
"value": "(function() {\n tinymce.PluginManager.requireLangPack('uploadimage');\n tinymce.create('tinymce.plugins.UploadImagePlugin', {\n init: function(ed, url) {\n ed.addCommand('mceUploadImage', fun... | javascript | chosen |
[
{
"from": "system",
"value": "Simplify the parsing, since we're now passing in objects instead of arrays\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar Backbone = require('backbone');\nvar $ = require('jquery');\nBackbone.$ = $;\n\nvar _ = require('../../bower_components/underscore');\n... | javascript | chosen |
[
{
"from": "system",
"value": "Fix for MessageCompose when logged out\n"
},
{
"from": "human",
"value": "import Vuex from 'vuex'\nimport Vue from 'vue'\n\nVue.use(Vuex)\n\nexport default () =>\n new Vuex.Store({\n getters: {\n user({ auth }) {\n return getData(auth, 'user')\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Put tests for functions in the same order as in sources\n"
},
{
"from": "human",
"value": "describe('Support module', function () {\n var S = GameOfLife.Support;\n\n describe('For validating canvas', function () {\n it('throws InvalidArgument if given other tha... | javascript | chosen |
[
{
"from": "system",
"value": "Convert \"React\" to \"react\" in html/\n\nReviewed By: Hans-Halverson\n\nDifferential Revision: D26835790\n\nfbshipit-source-id: 75275f5b7e8587a0e3fe675f960043c47e1b8422\n"
},
{
"from": "human",
"value": "/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *... | javascript | chosen |
[
{
"from": "system",
"value": "Refactor comments & add exported comment."
},
{
"from": "human",
"value": "// *\n// * PlumpJS: Tabs\n// *\nvar Tabs = new Class({\n\n\tImplements: Options,\n\n\t// Create default options.\n\toptions: {\n\t\tinitialTab: 0,\n\t\tactiveTabClass: 'active',\n\t\thiddenC... | javascript | chosen |
[
{
"from": "system",
"value": "Add conference name as fallback for subject\n"
},
{
"from": "human",
"value": "/* @flow */\n\nimport React, { Component } from 'react';\n\nimport { connect } from '../../../base/redux';\nimport { isToolboxVisible } from '../../../toolbox';\n\nimport ParticipantsCoun... | javascript | chosen |
[
{
"from": "system",
"value": "Add ESM format, will be used if a transpiler is available\n"
},
{
"from": "human",
"value": "/*\n Text plugin\n*/\nexports.translate = function(load) {\n load.metadata.format = 'amd';\n return 'def' + 'ine(function() {\\nreturn \"' + load.source\n .replace(/([... | javascript | chosen |
[
{
"from": "system",
"value": "Use browserify plugin to collapse require ids\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar join = require( 'path' ).join;\nvar writeFile = require( 'fs' ).writeFileSync;\nvar mkdirp = require( 'mkdirp' ).sync;\nvar uglify = require( 'uglify-js' );\nvar bu... | javascript | chosen |
[
{
"from": "system",
"value": "Add AllChallenges Controller\n-Invoke function to fetch all challenges from db\n-Return all challenges after pushing to array\n"
},
{
"from": "human",
"value": "'use strict';\n\nangular.module('challenges-page').controller('AllChallengesController', ['$scope',\n\tfu... | javascript | chosen |
[
{
"from": "system",
"value": "Install Vuetify globally for Jest tests\n"
},
{
"from": "human",
"value": "const csrf = global.document.createElement('input');\ncsrf.name = 'csrfmiddlewaretoken';\ncsrf.value = 'csrfmiddlewaretoken';\nglobal.document.body.append(csrf);\nglobal.window.Urls = new Pro... | javascript | chosen |
[
{
"from": "system",
"value": "Allow map renderers access to target.\n"
},
{
"from": "human",
"value": "goog.provide('ol.renderer.MapRenderer');\n\n/**\n * @constructor\n * @param {!Element} target\n */\nol.renderer.MapRenderer = function(target) {\n \n /**\n * @type !Element\n * @p... | javascript | chosen |
[
{
"from": "system",
"value": "Exclude node_modules from bable build\n"
},
{
"from": "human",
"value": "\nvar path = require('path')\nvar gulp = require('gulp')\nvar sourcemaps = require('gulp-sourcemaps')\nvar babel = require('gulp-babel')\n\n\nvar paths = {\n es6: ['**/*.js', '!gulpfile.js', '... | javascript | chosen |
[
{
"from": "system",
"value": "Move some files around during build\n"
},
{
"from": "human",
"value": "module.exports = function(grunt){\n grunt.loadNpmTasks('grunt-contrib-coffee');\n grunt.loadNpmTasks('grunt-contrib-copy');\n\n grunt.initConfig({\n pkg: grunt.file.readJSON('package.json')... | javascript | chosen |
[
{
"from": "system",
"value": "fix: Correct text-anchor to textAnchor property\n"
},
{
"from": "human",
"value": "'use strict';\nimport React, { Component } from 'react';\n\nconst DPCLogo = () => (\n <svg\n width=\"570px\"\n height=\"275px\"\n style={{\n background: 'rgba(79, 152, ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix test config import issues\n"
},
{
"from": "human",
"value": "\"use strict\";\n\nlet path = require('path'),\n\t fs = require('fs');\n\n// ========================================\n// Load global modules\n// ========================================\n\nglobal._ = ... | javascript | chosen |
[
{
"from": "system",
"value": "Add jQuery return to UMD\n"
},
{
"from": "human",
"value": "(function (factory) {\n\tif (typeof define === 'function' && define.amd) {\n\t\t// AMD. Register as an anonymous module.\n\t\tdefine(['jquery'], factory);\n\t} else if (typeof module === 'object' && module.... | javascript | chosen |
[
{
"from": "system",
"value": "Move afterEach to top with beforeEach\n"
},
{
"from": "human",
"value": "describe('Initialization', function () {\n beforeEach(createImage);\n\n it('should wrap image', function() {\n var image = getImageElement();\n var taggd = new Taggd(image);\n\n expe... | javascript | chosen |
[
{
"from": "system",
"value": "Fix Vue routing to use hash routing\n\nSigned-off-by: Christoph Wurst <7abde52c298496fa169fb750f91f213a282142af@winzerhof-wurst.at>\n"
},
{
"from": "human",
"value": "import Vue from 'vue'\nimport Router from 'vue-router'\n\nimport Home from './views/Home'\nimport S... | javascript | chosen |
[
{
"from": "system",
"value": "Add node to command state of download tool.\n"
},
{
"from": "human",
"value": "import { Command } from 'substance'\n\n/*\n We are using this command only for state computation.\n Actual implementation of file downloading is done inside DownloadSupplementaryFileToo... | javascript | chosen |
[
{
"from": "system",
"value": "Remove null check before destroy\n\nSession should not be null when logout is pressed through normal usage.\nSince we removed the logout touchbar button this check is no longer\nrequired.\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst express = require('e... | javascript | chosen |
[
{
"from": "system",
"value": "Use ES6 style module exports\n"
},
{
"from": "human",
"value": "\n// Include main chrome manifest\nrequire( 'file?name=manifest.json!./chrome/manifest.json' );\n\n// Chrome requires extension icons\nrequire( 'file?name=icon16.jpg!../assets/icon16.jpg' );\nrequire( '... | javascript | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.