conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Rewrite url to be proxied.\n\nWe can't proxy a CloudFlare url without a CloudFlare incompatiblity\nerror. This commit rewrites relevant urls to direct to the original aws\ns3 url.\n\nRelated to openspending/openspending#1356 and\nopenspending/datapackage-pipelines-fiscal#12.\n"... | javascript | chosen |
[
{
"from": "system",
"value": ":art: Make commander workaround shine a bit more\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\n'use strict'\n\nconst command = process.argv[2] || ''\nconst validCommands = ['new', 'build', 'update', 'init']\n\n// TODO: Check for updates\n\n// Note: This is... | javascript | chosen |
[
{
"from": "system",
"value": "Change on Controllers Login and Register\n"
},
{
"from": "human",
"value": "(function (window, angular) {\n \"use strict\";\n \n var upp = angular.module('upp', ['ngRoute']);\n \n upp.config(['$routeProvider', function ($routeProvider) {\n $rou... | javascript | chosen |
[
{
"from": "system",
"value": "Refactor parse to dynamically load aggregators.\n"
},
{
"from": "human",
"value": "const scoreSource = require('./aggregators/score-source')\nconst mean = require('./aggregators/mean')\nconst max = require('./aggregators/max')\n\n/** TODO */\nfunction parse (config,... | javascript | chosen |
[
{
"from": "system",
"value": "Trim filter string before splitting it into words\n"
},
{
"from": "human",
"value": "export function filterContainers() {\n\n // Fetch DOM elements, break each word in input filter.\n let filterValues = document.querySelector('#filter').value.split(' ');\n let co... | javascript | chosen |
[
{
"from": "system",
"value": "Fix wrong regex for source context"
},
{
"from": "human",
"value": "var testsContext = require.context('./src', true, /-test\\.js$/);\ntestsContext.keys().forEach(testsContext);\n\nvar srcContext = require.context('./src', true, /!(-test\\.js)$/);\nsrcContext.keys()... | javascript | chosen |
[
{
"from": "system",
"value": "Add test case for svg() (like h() is)\n"
},
{
"from": "human",
"value": "'use strict';\n/* global describe, it */\nlet assert = require('assert');\nlet Cycle = require('../../src/cycle');\n\ndescribe('Cycle', function () {\n describe('API', function () {\n it('s... | javascript | chosen |
[
{
"from": "system",
"value": "Add wrapper to ActivateAnalyticsCTA story.\n"
},
{
"from": "human",
"value": "/**\n * WP Dashboard ActivateAnalyticsCTA Component Stories.\n *\n * Site Kit by Google, Copyright 2022 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");... | javascript | chosen |
[
{
"from": "system",
"value": "Use libjass.min.js for production build.\n"
},
{
"from": "human",
"value": "/**\n * libjass-demo-react\n *\n * https://github.com/Arnavion/libjass-demo-react\n *\n * Copyright 2016 Arnav Singh\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");... | javascript | chosen |
[
{
"from": "system",
"value": "CSRA-392: Remove browser pause from the test\n"
},
{
"from": "human",
"value": "describe('/ (homepage)', () => {\n before(() => {\n browser.url('/');\n });\n\n it('display the correct page title', () => {\n expect(browser.getTitle()).equal('Assess if a pris... | javascript | chosen |
[
{
"from": "system",
"value": "Make sure JS files from addExtraJS are loaded after in-page <script>s\n\nIn production we were getting an error that suggested that tabs.js was\nbeing loaded before map.js.\n\nThese are loaded by different mechanisms (warning: this is all awful):\n\n - map.js is loaded via {% j... | javascript | chosen |
[
{
"from": "system",
"value": "Fix visibility modal on standalone compose\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport ComposeFormContainer from '../../compose/containers/compose_form_container';\nimport NotificationsContainer from '../../ui/containers/notifications_conta... | javascript | chosen |
[
{
"from": "system",
"value": "Make Variant Count numeric for sorting"
},
{
"from": "human",
"value": "/*\n * The aspiredb project\n * \n * Copyright (c) 2013 University of British Columbia\n * \n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file ex... | javascript | chosen |
[
{
"from": "system",
"value": "Reset feedback after completing request\n"
},
{
"from": "human",
"value": "'use strict';\n\nangular.module('personality.controller', [])\n\n.controller('PersonalityController', [\n'$scope', '$http', 'personalityService',\n($scope, $http, personalityService) => {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Use require for import instead of requirejs\n"
},
{
"from": "human",
"value": "'use strict';\nrequire.config({\n paths: {\n jquery: 'bower_components/jquery/jquery.min',\n underscore: '../../../node_modules/lodash/dist/lodash.min',\n backbone... | javascript | chosen |
[
{
"from": "system",
"value": "Remove isAuthenticated check on login\n"
},
{
"from": "human",
"value": "// Hard coded user for demo purposes\n\nvar users = {\n admin: {\n id: 'admin',\n password: 'password',\n name: 'Admin'\n }\n}\n\nexports.Login = function(request, reply) {\n if (re... | javascript | chosen |
[
{
"from": "system",
"value": "Simplify the dependencies and wait on the chooseTemplate service (modal) to return the process to create.\n"
},
{
"from": "human",
"value": "(function (module) {\n module.controller('ProjectHomeController', ProjectHomeController);\n ProjectHomeController.$inje... | javascript | chosen |
[
{
"from": "system",
"value": "Add deprecation for folks importing from prior location.\n"
},
{
"from": "human",
"value": "export { find } from '../find';\nexport { findAll } from '../find-all';\nexport { findWithAssert } from '../find-with-assert';\nexport { click } from '../click';\nexport { ta... | javascript | chosen |
[
{
"from": "system",
"value": "Change to use Ember.$ on revision table\n"
},
{
"from": "human",
"value": "import Ember from 'ember';\nimport layout from './template';\n\n/**\n * @module ember-osf\n * @submodule components\n */\n\n/**\n * Display information about one revision of a file\n *\n * Sa... | javascript | chosen |
[
{
"from": "system",
"value": "Add styles to entry point\n"
},
{
"from": "human",
"value": "import { $setVar } from 'wee-store';\nimport { $setRef } from 'core/dom';\nimport 'es6-promise/auto';\n\n$setRef();\n$setVar();"
},
{
"from": "gpt",
"value": "import { $setVar } from 'wee-store... | javascript | chosen |
[
{
"from": "system",
"value": "Make the thunk more Promise-like.\n\nIt's a lot more useful if you have `.catch`, otherwise you can't use it as a promise.\n"
},
{
"from": "human",
"value": "'use strict';\nmodule.exports = function (ms) {\n\tms = ms || 0;\n\n\tvar promise = new Promise(function (re... | javascript | chosen |
[
{
"from": "system",
"value": "Replace native w/ _.isObject function."
},
{
"from": "human",
"value": "var klass = require('klass')\n , _ = require('lodash')\n , obligator = klass({\n initialize: function() {\n this._params = {};\n this._collection = {};\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add missing semicolon to ExperimentManager\n"
},
{
"from": "human",
"value": "'use strict';\n\n// Trial Data service used to persist data for individual trials\nangular.module('core').factory('ExperimentManager', ['TrialData', '$q', '$http', '$state',\n function (T... | javascript | chosen |
[
{
"from": "system",
"value": "Fix module: web-view -> web-frame\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar webpack = require('webpack');\nvar JsonpTemplatePlugin = webpack.JsonpTemplatePlugin;\nvar FunctionModulePlugin = require('webpack/lib/FunctionModulePlugin');\nvar NodeTargetPl... | javascript | chosen |
[
{
"from": "system",
"value": "Remove file type check part\n"
},
{
"from": "human",
"value": "//Import modules\nvar AWS = require('aws-sdk');\nvar util = require('util');\nvar fs = require('fs');\n\n//Create S3 client\n\nvar s3 = new AWS.S3();\n\n//Create event handler for S3\nexports.handler = f... | javascript | chosen |
[
{
"from": "system",
"value": "Make required so it can't be empty"
},
{
"from": "human",
"value": "'use strict'\n\nconst mongoose = require('mongoose')\nconst uuid = require('uuid').v4\n\nconst schema = new mongoose.Schema({\n\tid: {\n\t\ttype: String,\n\t\trequired: true,\n\t\tunique: true,\n\t\... | javascript | chosen |
[
{
"from": "system",
"value": "Save search focus on click\n"
},
{
"from": "human",
"value": "Checklist.SavedSearchView = Em.View.extend({\n templateName: \"saved_search\",\n\n save: function(view) {\n // Ember's inheritance isn't ideal for this situation, so\n // unfortunately we don't ge... | javascript | chosen |
[
{
"from": "system",
"value": "Include the source path in the list\n"
},
{
"from": "human",
"value": "/**\n * @license\n * grunt-template-progeny\n * Copyright 2014 Luis Aleman <https://github.com/Lalem001/>\n */\n(function (module) {\n\tmodule.exports = function (grunt, config) {\n\t\tvar progen... | javascript | chosen |
[
{
"from": "system",
"value": "Put hero text more to the right\n"
},
{
"from": "human",
"value": "import React from 'react';\n\nimport Hero from 'grommet/components/Hero';\nimport Image from 'grommet/components/Image';\nimport Box from 'grommet/components/Box';\nimport Heading from 'grommet/compo... | javascript | chosen |
[
{
"from": "system",
"value": "Fix kayvee for real this time\n"
},
{
"from": "human",
"value": "module.exports = require('./lib-js/kayvee');\nmodule.exports.logger = require('./lib-js/kayvee/logger')\n"
},
{
"from": "gpt",
"value": "module.exports = require('./lib-js/kayvee');\nmodule... | javascript | chosen |
[
{
"from": "system",
"value": "Fix - rename var tmm to tmw\n"
},
{
"from": "human",
"value": "'use strict';\n\n/**\n * Tell me where\n */\nmodule.exports = function(tmm) {\n let message = 'Tell me where';\n if (tmw) {\n message = tmw;\n }\n return message;\n}"
},
{
"from": "gpt",
... | javascript | chosen |
[
{
"from": "system",
"value": "Modify signature: single callback handles success and failure\n"
},
{
"from": "human",
"value": "// from http://youmightnotneedjquery.com/\nexport default function getJSON(url, callback, error) {\n\n\tvar request = new XMLHttpRequest();\n\trequest.open('GET', url, t... | javascript | chosen |
[
{
"from": "system",
"value": "Add comment because this JS script appears in the CS chapter\n"
},
{
"from": "human",
"value": "var a = 0, b = 1, c = 2;\n(function () {\n var a = 100; // Local declaration, global a is safe!\n b = 200; // Forgot var, overwrites global b\n d = 300; ... | javascript | chosen |
[
{
"from": "system",
"value": "Add directived to jshint to find now global showSpinner\n"
},
{
"from": "human",
"value": "/*\n * Base functions for the registration module\n */\n\n/* jshint browser: true */\n/* jshint -W097 */\n\n'use strict';\n\nfunction refreshBadgeData(badge) {\n var xhttp = ... | javascript | chosen |
[
{
"from": "system",
"value": "Update the Microsoft Edge app ID\n"
},
{
"from": "human",
"value": "// Karme Edge Launcher\n// =================\n\n// Dependencies\n// ------------\n\nvar urlparse = require('url').parse\nvar urlformat = require('url').format\n\n// Constants\n// ---------\n\nvar ED... | javascript | chosen |
[
{
"from": "system",
"value": "Fix defaults for undefined options\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar chalk = require('chalk');\nvar path = require('path');\n\nfunction WebpackKarmaDieHardPlugin(options) {\n if (typeof(options) === undefined) {\n options = {};\n }\n chal... | javascript | chosen |
[
{
"from": "system",
"value": "Determine and log line number of caller\n"
},
{
"from": "human",
"value": "module.exports = wog;\n\nfunction wog (logMe) {\n console.log(logMe, \" ---logged from \" + __filename);\n}\n"
},
{
"from": "gpt",
"value": "module.exports = wog;\n\nfunction w... | javascript | chosen |
[
{
"from": "system",
"value": "Solve 04 add PDF export\n"
},
{
"from": "human",
"value": "var picture = require(\"cat-picture\");\nvar src = picture.src;\npicture.remove();\nvar image = require('lightning-image-poly');\nvar viz = new image('#visualization', null, [src], {hullAlgorithm: 'convex'})... | javascript | chosen |
[
{
"from": "system",
"value": "Refactor to ensure pathnames are all the same\n\n\nFormer-commit-id: cfa4fec100e8597c20ce17f7cce349d065f899ca"
},
{
"from": "human",
"value": "function checkPathParsed (uri) {\n if (uri.charAt(uri.length-1) === '/') {\n uri = uri.slice(0, -1);\n }\n if (path... | javascript | chosen |
[
{
"from": "system",
"value": "Breaking: Switch settle flag to an env variable\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar inherits = require('util').inherits;\nvar EventEmitter = require('events').EventEmitter;\n\nvar DefaultRegistry = require('undertaker-registry');\n\nvar get = req... | javascript | chosen |
[
{
"from": "system",
"value": "Return early from Submission.submit when already pending\n"
},
{
"from": "human",
"value": "'use strict'\n\nvar Struct = require('observ-struct')\nvar Observ = require('observ')\nvar valueError = require('value-error')\nvar Event = require('weakmap-event')\nvar Weak... | javascript | chosen |
[
{
"from": "system",
"value": "Remove deprecation warnings, since this is a demo\n"
},
{
"from": "human",
"value": "import Ember from 'ember';\nimport Resolver from 'ember/resolver';\nimport loadInitializers from 'ember/load-initializers';\nimport config from './config/environment';\n\nEmber.MODE... | javascript | chosen |
[
{
"from": "system",
"value": "Make the id argument optional\n"
},
{
"from": "human",
"value": "// Creates an HD canvas element on page and\n// returns a reference to the element\nvar createCanvasElement = function (width, height, id, insertAfter) {\n // Creates a scaled-up canvas based on the d... | javascript | chosen |
[
{
"from": "system",
"value": "Load JS data now that there is a first data set available\n"
},
{
"from": "human",
"value": "var fs = require('fs'),\n path = require('path'),\n extend = require('extend');\n\nfunction load() {\n // Recursively load one or more directories passed as argumen... | javascript | chosen |
[
{
"from": "system",
"value": "Move out helper funcitons to unicode helper module.\nImprove example.\n"
},
{
"from": "human",
"value": "var unicodeToChar = function(unicode) {\n String.fromCharCode(unicode);\n};\n\nvar getGlyphs = function(font) {\n if (!font.glyphs || font.glyphs.length === 0)... | javascript | chosen |
[
{
"from": "system",
"value": "Refactor to aid optimization of non-try/catch code.\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar fnToStr = Function.prototype.toString;\n\nmodule.exports = function isCallable(value) {\n\tif (typeof value !== 'function') { return false; }\n\ttry {\n\t\tfn... | javascript | chosen |
[
{
"from": "system",
"value": "Add text message to those without mesh support\n\nI'm looking at you Safari\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar fs = require('fs');\nvar path = require('path');\nvar body = '<script>' + fs.readFileSync(path.join(__dirname, 'teapot.min.js')) + '</... | javascript | chosen |
[
{
"from": "system",
"value": "Add js to remove all empty paragraph tags\n"
},
{
"from": "human",
"value": "// $('.owl-carousel').owlCarousel({\n// items:1,\n// lazyLoad:true,\n// loop:true,\n// margin:0\n// });\n\n\n\n$(document).ready(function(){\n $('.frontpage-slider').slick(... | javascript | chosen |
[
{
"from": "system",
"value": "Use preventDefault to avoid arrow keys making page scroll\n\nFixes https://github.com/mdn/content/issues/13398"
},
{
"from": "human",
"value": "var KEY = {\n D: 68,\n W: 87,\n A: 65,\n S:83,\n RIGHT:39,\n UP:38,\n LEFT:37,\n DOWN:40,\n Q:81\n};\n\nvar input... | javascript | chosen |
[
{
"from": "system",
"value": "Add source credit too footer.\n"
},
{
"from": "human",
"value": "import React from 'react';\n\nclass Footer extends React.Component {\n render() {\n // jshint ignore:start\n return (\n <footer>\n <div className=\"logo\" />\... | javascript | chosen |
[
{
"from": "system",
"value": "Allow unlimited length for summaries\n\nSigned-off-by: Patrick Uiterwijk <bd6d5394796bee9cca2245486eb583fd64b70226@redhat.com>\n"
},
{
"from": "human",
"value": "\"use strict\";\n\nmodule.exports = function(sequelize, DataTypes) {\n var Paper = sequelize.define(\"P... | javascript | chosen |
[
{
"from": "system",
"value": "Change limit to 101 ( Why ? )\n"
},
{
"from": "human",
"value": "define([\n 'backbone',\n 'models/proto/paged-collection', 'models/event'\n], function (Backbone, Parent, Event) {\n return Parent.extend({\n baseUrl: '/api/event',\n cgi: ['limit... | javascript | chosen |
[
{
"from": "system",
"value": "SPRO-37: Fix M2 Admin store selection refresh loop\n\nMake sure adding a card in Stored Payment Methods works as well\n"
},
{
"from": "human",
"value": "\ndefine(\n ['underscore'],\n function(_) {\n 'use strict';\n\n var code = 'subscribe_pro';\n... | javascript | chosen |
[
{
"from": "system",
"value": "Add option to not include print link in data component\n"
},
{
"from": "human",
"value": "// Data view\n\n'use strict';\n\nvar normalizeOptions = require('es5-ext/object/normalize-options')\n , _ = require('mano').i18n.bind('View: Component: Data')\n... | javascript | chosen |
[
{
"from": "system",
"value": "Remove debugger statement from js-dump\n"
},
{
"from": "human",
"value": "var constants = require('../constants');\n\nmodule.exports = function (context) {\n var node = context.node;\n var parent = context.parent;\n\n if (node.property && node.property.name === c... | javascript | chosen |
[
{
"from": "system",
"value": "Change error message text for invite friends page.\n"
},
{
"from": "human",
"value": "/* global graphql */\n\nimport React from 'react'\nimport {QueryRenderer} from 'react-relay/compat'\nimport environment from '../../../../relay-env'\n\nimport ProfileInviteFriend f... | javascript | chosen |
[
{
"from": "system",
"value": "Add sauce tunnel config for jenkins\n"
},
{
"from": "human",
"value": "'use strict';\n\nexports.config = {\n framework: 'jasmine2',\n specs: [ 'spec_suites/shared/*.js' ],\n capabilities: {\n browserName: 'chrome',\n name: 'flapjack-browser... | javascript | chosen |
[
{
"from": "system",
"value": "Add demo bounty to migration"
},
{
"from": "human",
"value": "module.exports = function(deployer) {\n deployer.deploy(Conference);\n deployer.deploy(Bounty);\n deployer.autolink();\n};\n"
},
{
"from": "gpt",
"value": "module.exports = function(deploye... | javascript | chosen |
[
{
"from": "system",
"value": "Update migration to new contract\n"
},
{
"from": "human",
"value": "var ConvertLib = artifacts.require(\"./ConvertLib.sol\");\nvar MetaCoin = artifacts.require(\"./MetaCoin.sol\");\n\nmodule.exports = function(deployer) {\n deployer.deploy(ConvertLib);\n deployer.... | javascript | chosen |
[
{
"from": "system",
"value": "Fix original in map to pass validation.\n\nThe generator _validateMapping function does not expect a mapping to contain `original` when `source` is undefined, but the code was passing in `{}`. This corrects the problem by ensuring original not defined when there is no source.\n... | javascript | chosen |
[
{
"from": "system",
"value": "Use global config for AWS creds\n"
},
{
"from": "human",
"value": "var AWS = require('aws-sdk');\nvar Promise = require('bluebird');\n\nfunction createInstance() {\n\n var docClient = new AWS.DynamoDB.DocumentClient({region: 'us-west-2'});\n\n return {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Clarify why columns must modify node id\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar Node = require('../node');\n\nvar TYPE = 'source';\nvar PARAMS = {\n query: Node.PARAM.STRING()\n};\n\nvar Source = Node.create(TYPE, PARAMS, {\n beforeCreate: func... | javascript | chosen |
[
{
"from": "system",
"value": "Add Google Analytics tracking to page transitions.\n\nResolves #205\n"
},
{
"from": "human",
"value": "//\n// Base Route\n// The base route for this application\n//\n\nimport Route from '../vendor/routing/route';\nimport rootView from '../core/views/root-view';\nimp... | javascript | chosen |
[
{
"from": "system",
"value": "Use componentController to load controller\n"
},
{
"from": "human",
"value": "import <%= upCaseName %>Module from './<%= name %>'\nimport <%= upCaseName %>Controller from './<%= name %>.controller';\nimport <%= upCaseName %>Component from './<%= name %>.component';\... | javascript | chosen |
[
{
"from": "system",
"value": "Use `Ext.iterate` to map response data\n"
},
{
"from": "human",
"value": "/*jslint browser: true, undef: true *//*global Ext*/\nExt.define('SlateAdmin.store.people.UserClasses', {\n extend: 'Ext.data.Store',\n requires: [\n 'SlateAdmin.proxy.API'\n ]... | javascript | chosen |
[
{
"from": "system",
"value": "Change FPS for thirty and register the menu w/o intermediary variable\n"
},
{
"from": "human",
"value": "var Game = Game || {};\nvar WIDTH = window.innerWidth;\nvar HEIGHT = window.innerHeight;\nvar FPS = 60;\nvar engine = new Game.Engine('game', WIDTH, HEIGHT, FPS)... | javascript | chosen |
[
{
"from": "system",
"value": "Correct prop type for ScatterChart\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport { PropTypes } from 'react';\nimport rd3 from 'react-d3';\nimport { ScatterChart } from 'react-d3';\n\nvar PointsChart = React.createClass({\n propTypes: {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Update to avoid problem in copyright\n"
},
{
"from": "human",
"value": "'use strict'\n\nlet pokemons = ['Pikachu','Magikarp','Balbasaur'];\n\n// ES 5\n// pokemons.forEach(function(mon){\n// console.log(mon);\n// });\n\n// ES 6\npokemons.forEach(mon => console.lo... | javascript | chosen |
[
{
"from": "system",
"value": "Use `upsert` method of schema class\n"
},
{
"from": "human",
"value": "import { Meteor } from 'meteor/meteor';\nimport { OnlineUsersSchema } from './onlineusers.schema';\nimport moment from 'moment/moment';\n\nif (Meteor.isServer) {\n Meteor.publish('onlineUsersF... | javascript | chosen |
[
{
"from": "system",
"value": "Trim MOTD to avoid empty line at the end\n"
},
{
"from": "human",
"value": "\"use strict\";\n\nconst Msg = require(\"../../models/msg\");\n\nmodule.exports = function(irc, network) {\n\tconst client = this;\n\n\tirc.on(\"motd\", function(data) {\n\t\tconst lobby = n... | javascript | chosen |
[
{
"from": "system",
"value": "Send JWT token with file uploads\n"
},
{
"from": "human",
"value": "import Ember from 'ember';\nimport EmberUploader from 'ember-uploader';\n\nconst { FileField, Uploader } = EmberUploader;\nconst { inject, computed } = Ember;\nconst { service } = inject;\n\nlet Ili... | javascript | chosen |
[
{
"from": "system",
"value": "Remove let keyword in order to support <=0.12\n"
},
{
"from": "human",
"value": "'use strict'\nvar Hoek = require(\"hoek\");\nvar requireDir = require('require-dir');\n\n\nvar internals = {};\nvar defaultOptions = {};\n\ninternals.settings = {};\n\ninternals.runThro... | javascript | chosen |
[
{
"from": "system",
"value": "Fix lazy local import of bootstrapping module.\n\nThis was lazy required when the boostrapping was being done in\nember-glimmer, but now lives \"together\" so can use a normal import...\n"
},
{
"from": "human",
"value": "import require, { has } from 'require';\n\n//... | javascript | chosen |
[
{
"from": "system",
"value": "Move register on /user/ url\n"
},
{
"from": "human",
"value": "angular.module('mewpipe')\n\t .config(function(toastrConfig,$resourceProvider,$authProvider,$httpProvider,Config){\n\n\t \t\t/**\n\t \t\t * Toastr\n\t \t\t */\n\n\t \t\tangular.extend(toastrCon... | javascript | chosen |
[
{
"from": "system",
"value": "Fix min hp and mp\n"
},
{
"from": "human",
"value": "class Status {\n constructor(currentHp, maxHp, currentMp, maxMp) {\n currentHp = Math.min(currentHp, maxHp);\n currentMp = Math.min(currentMp, maxMp);\n this.currentHp = isNaN(currentHp) ? ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix option passing for plugin root"
},
{
"from": "human",
"value": "var Scanner = require('./url-scanner'),\n url = require('./url');\n\nfunction mergeUrls() {\n new Scanner(this.root, this.imagesSeen).combine();\n return new nodes.Expression(false);\n}\n\nmodu... | javascript | chosen |
[
{
"from": "system",
"value": "Add Pull DB Script for NPM [CraftCB]\n"
},
{
"from": "human",
"value": "const extend = require('deep-extend')\n\nfunction addStarterpackDependencies (files = {}, context) {\n if (context.props.projectusage === 'wordpressCB' || context.props.projectusage === 'craftC... | javascript | chosen |
[
{
"from": "system",
"value": "Use export like in all other UI scripts\n"
},
{
"from": "human",
"value": "module.exports = (body, styles, scripts) => `\n\t<!doctype html>\n\t<html lang=\"en\">\n\t\t<head>\n\n\t\t\t<title>Ackee</title>\n\n\t\t\t<meta charset=\"utf-8\">\n\t\t\t<meta name=\"viewport... | javascript | chosen |
[
{
"from": "system",
"value": "Add migration for product and category\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst Promise = require('bluebird');\n\nmodule.exports = { up, down };\n\nfunction up (db) {\n const Product = require('../src/catalog/product/model')(db.sequelize, db.Sequel... | javascript | chosen |
[
{
"from": "system",
"value": "Fix smoothscroll flash in IE.\n"
},
{
"from": "human",
"value": "import SmoothScroll from 'smooth-scroll';\n\nconst scroll = new SmoothScroll();\n\nconst defaultScrollOffset = 45;\nconst defaultScrollSpeed = 750;\n\nconst customScrollElems = document.querySelectorAl... | javascript | chosen |
[
{
"from": "system",
"value": "Call the go instance for conginitive service\n"
},
{
"from": "human",
"value": "var express = require('express');\nvar router = express.Router();\n\n/* GET home page. */\nrouter.get('/', function(req, res, next) {\n res.render('index', { title: 'ejs' });\n});\n\nro... | javascript | chosen |
[
{
"from": "system",
"value": "Create with reusable builder functions.\n\nUse `new Function`, but use it to build a builder you can reuse instead\nof building a function each time. Got this from Cadence fiddling.\n\n % node benchmark/increment/create.js\n_adhere create 1 x 467,669 ops/sec ±0.66% (97 runs sam... | javascript | chosen |
[
{
"from": "system",
"value": "Change logged out nav copy to `Join`\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport styled from 'styled-components';\n\nimport Box from 'react/components/UI/Box';\nimport Text from 'react/components/UI/Text';\n\nconst Container = styled(Box)`\... | javascript | chosen |
[
{
"from": "system",
"value": "Fix default branch selection in post-commit UI.\n\nThe refactoring and improvements I did to `RB.CollectionView` broke the\nselection of the default branch in the post-commit section of the New Review\nRequest UI. This wasn't super critical, except in the case where there's onl... | javascript | chosen |
[
{
"from": "system",
"value": "Remove video from docs site\n"
},
{
"from": "human",
"value": "import React from 'react'\n\n// We have to import this one using a relative path because we\n// shim <BrowserRouter> in our webpack config to use <ExampleRouter>\nimport BrowserRouter from '../../../reac... | javascript | chosen |
[
{
"from": "system",
"value": "Add find and delete functions to ang review model\n"
},
{
"from": "human",
"value": "(function(){\n'use strict';\n\nangular\n .module('secondLead')\n \n .factory('ReviewModel',['Restangular', 'store', function(Restangular, store) {\n var currentUser = store.ge... | javascript | chosen |
[
{
"from": "system",
"value": "BUG: Add the link to the element\n\nIf the created element is not added to the current element, the download would not work on firefox\n"
},
{
"from": "human",
"value": "\nangular.module('clusterpost-list')\n.directive('clusterpostEsAdmin', function($routeParams,$lo... | javascript | chosen |
[
{
"from": "system",
"value": "Add line to make code more visible\n"
},
{
"from": "human",
"value": "// PiscoBot Script\n\nvar commandDescription = {\n name: 'Do It',\n author: 'Daniel Gallegos [@that_taco_guy]',\n trigger: 'do it',\n version: 1.0,\n description: 'Motivate your team using Sh... | javascript | chosen |
[
{
"from": "system",
"value": "Change the word length requirements.\n"
},
{
"from": "human",
"value": "import toppings from './toppings'\nimport xkcdPassword from 'xkcd-password'\n\nconst TOKEN_OPTIONS = {\n numWords: 4,\n minLength: 4,\n maxLength: 8\n}\n\nvar tokens = {}\nvar tokenGenerator ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix for logs count when logs are removed in setInterval\n"
},
{
"from": "human",
"value": "if (Meteor.isServer) {\n Meteor.setInterval(function () {\n var countBefore = Logs.find().count();\n var timestamp = Date.now() - 700 * 24 * 3600;\n Lo... | javascript | chosen |
[
{
"from": "system",
"value": "Comment out css import until test fail is resolved\n"
},
{
"from": "human",
"value": "'use strict';\n\nimport './cardcomponent.css!';\n\nimport React from 'react';\nimport ReactDOM from 'react-dom';\n\nexport default class CardComponent extends React.Component {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Sort processes and if there is no process id go to the first one.\n"
},
{
"from": "human",
"value": "(function (module) {\n module.component('mcProjectProcesses', {\n templateUrl: 'components/project/processes/mc-project-processes.html',\n controlle... | javascript | chosen |
[
{
"from": "system",
"value": "Fix issue with MySQL not found errors\n"
},
{
"from": "human",
"value": "var mysql = require('mysql'),\n sql = require(\"./sql\"),\n MySQL;\n\nMySQL = module.exports = function MySQL(options) {\n this.connection = mysql.createClient(options);\n};\n\nMySQL.pro... | javascript | chosen |
[
{
"from": "system",
"value": "Add transfering timeout callback arguments to done\n\nCloses: #150\nPR-URL: https://github.com/metarhia/metasync/pull/153\nReviewed-By: Timur Shemsedinov <6dc7cb6a9fcface2186172df883b5c9ab417ae33@gmail.com>\n"
},
{
"from": "human",
"value": "'use strict';\n\nmodule.... | javascript | chosen |
[
{
"from": "system",
"value": "Add actionable advice to parentless popup\n"
},
{
"from": "human",
"value": "import React from 'react'\n\nconst NoParent = ({ appName }) => (\n <div>\n This window was opened to log you in to{' '}\n <span className=\"app-name\">{appName}</span>, but that app ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix bug where base route would not resolve on page refresh.\n"
},
{
"from": "human",
"value": "(function () {\n 'use strict';\n\n var module = angular.module('app', [\n 'ui.router',\n 'ui.bootstrap',\n 'content'\n ]);\n\n module.conf... | javascript | chosen |
[
{
"from": "system",
"value": "Use fork of cordova-plugin-googleplus to ease iOS keychain sharing.\n\nhttps://github.com/meteor/meteor/issues/8253\nhttps://github.com/EddyVerbruggen/cordova-plugin-googleplus/pull/366\n"
},
{
"from": "human",
"value": "Package.describe({\n summary: \"Google OAuth... | javascript | chosen |
[
{
"from": "system",
"value": ":bug: Fix inline query handler creation\n"
},
{
"from": "human",
"value": "const { inline, roll, full, random, help, deprecated } = require('./query');\nconst { createOptions, createInlineOptions } = require('./options');\nconst { error } = require('./text');\n\nfun... | javascript | chosen |
[
{
"from": "system",
"value": "Bring ZF2 error into view\n"
},
{
"from": "human",
"value": "define([\r\n \"intern!object\",\r\n \"intern/chai!assert\",\r\n \"require\",\r\n \"tests/support/helper\"\r\n], function ( registerSuite, assert, require, testHelper ) {\r\n var signIn = tes... | javascript | chosen |
[
{
"from": "system",
"value": "Update the explostion effect code comments.\n"
},
{
"from": "human",
"value": "/* global Demo, Random */\n\nDemo.components.ParticleSystem.createEffectExplosion = function(spec) {\n\t'use strict';\n\tvar effect = {\n\t\t\tget center() { return spec.center; },\n\t\t\... | javascript | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.