conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Fix line numbers for HTML5 source maps\n" }, { "from": "human", "value": "::if embeddedLibraries::::foreach (embeddedLibraries)::\n::__current__::::end::::end::\n// lime.embed namespace wrapper\n(function ($hx_exports, $global) { \"use strict\";\n$hx_exports.lime = ...
javascript
chosen
[ { "from": "system", "value": "Clarify httpResponse check with ===\n" }, { "from": "human", "value": "\"use strict\";\n\nconst Item = require('./item');\nconst Handler = require('./handler');\nconst Plugin = require('../plugin');\nconst url = require('url');\nconst {coroutine: co} = require('blue...
javascript
chosen
[ { "from": "system", "value": "Add name property to compile error\n" }, { "from": "human", "value": "/*\n * Grasspiler / errors.js\n * copyright (c) 2016 Susisu\n */\n\n\"use strict\";\n\nfunction endModule() {\n module.exports = Object.freeze({\n ParseError,\n CompileError\n ...
javascript
chosen
[ { "from": "system", "value": "Add missing comment and fix copyright date.\n" }, { "from": "human", "value": "/**\n * Copyright 2013 Rackspace\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You...
javascript
chosen
[ { "from": "system", "value": "Fix 'popupOptions' typo in 'github'\n" }, { "from": "human", "value": "Github = {};\n\n// Request Github credentials for the user\n// @param options {optional}\n// @param credentialRequestCompleteCallback {Function} Callback function to call on\n// completion. Tak...
javascript
chosen
[ { "from": "system", "value": "Move bender.defer() inside the require call.\n" }, { "from": "human", "value": "/*\n Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.\n For licensing, see LICENSE.html or http://cksource.com/ckfinder/license\n */\n\n( function( window, ben...
javascript
chosen
[ { "from": "system", "value": "Trim summary to fit 100 character limit.\n" }, { "from": "human", "value": "Package.describe({\n name: 'verody:groupaccount',\n version: '0.1.0',\n summary: 'Account management package providing qualified access to a single Meteor server account from one or...
javascript
chosen
[ { "from": "system", "value": "Change file.src to filesSrc for grunt 0.4.0rc5.\n\nSee https://github.com/gruntjs/grunt/issues/606\n" }, { "from": "human", "value": "/*\n * grunt-ember-handlebars\n * https://github.com/yaymukund/grunt-ember-handlebars\n *\n * Copyright (c) 2012 Mukund Lakshman\n *...
javascript
chosen
[ { "from": "system", "value": "Fix typo in install bundle script\n" }, { "from": "human", "value": "'use strict';\n\nconst fs = require('fs');\nconst cp = require('child_process');\nconst os = require('os');\nconst commander = require('commander');\nconst parse = require('git-url-parse');\n\ncons...
javascript
chosen
[ { "from": "system", "value": "Switch HTML tag to one less likely to be used by another library.\n" }, { "from": "human", "value": "document.documentElement.style.webkitTouchCallout='none';\n\nvar root = document.getElementsByTagName( 'html' )[0]\nroot.setAttribute( 'class', 'hybrid' );\n\nvar st...
javascript
chosen
[ { "from": "system", "value": "Move additional field \"issuer\" out of the \"solution\" object\n" }, { "from": "human", "value": "/*\n * Copyright (c) 2014-2020 Bjoern Kimminich.\n * SPDX-License-Identifier: MIT\n */\n\nconst request = require('request')\nconst colors = require('colors/safe')\nco...
javascript
chosen
[ { "from": "system", "value": "Allow either a string (a (relative) url) or <link href> object passed to the exhibit json importer.\n" }, { "from": "human", "value": "/*==================================================\n * Exhibit.ExhibitJSONImporter\n *==========================================...
javascript
chosen
[ { "from": "system", "value": "Allow saving with the posts.\n" }, { "from": "human", "value": "BlogPostsFactory.$inject = ['$resource'];\nfunction BlogPostsFactory($resource){\n return $resource('/api/v1/posts/:postId');\n}\n\nangular.module('blog.posts.service', [\n 'ngResource'\n]).factory('P...
javascript
chosen
[ { "from": "system", "value": "Stop to require a useless module\n" }, { "from": "human", "value": "var nock = require('nock')\n , io = require('../index');\n\nvar helper = exports;\n\n//\n// Define the default options\n//\nvar default_options = helper.default_options = {\n endpoint: 'https://ap...
javascript
chosen
[ { "from": "system", "value": "Use appId instead of apiKey\n" }, { "from": "human", "value": "var torii, container;\n\nimport buildFBMock from 'test/helpers/build-fb-mock';\nimport toriiContainer from 'test/helpers/torii-container';\nimport configuration from 'torii/configuration';\n\nvar origina...
javascript
chosen
[ { "from": "system", "value": "Add sleep in custom action\n" }, { "from": "human", "value": "const ld = require('lodash');\nconst moment = require('moment');\nconst setMetadata = require('../utils/updateMetadata.js');\n\n/**\n * Adds metadata from billing into usermix\n * @param {String} usernam...
javascript
chosen
[ { "from": "system", "value": "Make runtime initialization from React renderers a no-op\n\nSummary:\nThis module is imported by all flavors of the React Native renderers (dev/prod, Fabric/Paper, etc.), which itself imports `InitializeCore`. This is effectively a no-op in most React Native apps because Metro ...
javascript
chosen
[ { "from": "system", "value": "Drop header to avoid auth browser popup\n" }, { "from": "human", "value": "var log4js = require('log4js');\nvar logger = log4js.getLogger();\nvar express = require('express');\nvar favicon = require('serve-favicon');\nvar bodyParser = require('body-parser');\nvar po...
javascript
chosen
[ { "from": "system", "value": "Switch to the production endpoint\n" }, { "from": "human", "value": "var mapboxDataTeam = require('mapbox-data-team');\n\nconst config = {\n 'API_BASE': 'https://api-osm-comments-staging.tilestream.net/api/v1/',\n 'MAPBOX_ACCESS_TOKEN': 'pk.eyJ1Ijoic2FuamF5YiI...
javascript
chosen
[ { "from": "system", "value": "Add key to selection rows\n" }, { "from": "human", "value": "import React from 'react';\nimport PropTypes from 'prop-types';\nimport { Button } from 'react-bootstrap';\nimport FontAwesome from 'react-fontawesome';\n\nimport ContentContainer from '../../../components...
javascript
chosen
[ { "from": "system", "value": "Fix ESLint error causing Travis build to fail\n\n'jsx-max-props-per-line' rule" }, { "from": "human", "value": "import React from 'react';\nimport commonUrl from 'shared/constants/commonLinks';\nimport LinkButton from 'shared/components/linkButton/linkButton';\nimpo...
javascript
chosen
[ { "from": "system", "value": "Clear the session on accessing the index page too.\n" }, { "from": "human", "value": "module.exports = {\n bind : function (app) {\n\n app.get('/', function (req, res) {\n console.log(\"Clearing the session.\")\n delete req.session\n res.render('i...
javascript
chosen
[ { "from": "system", "value": "Add templateUrl for default route\n" }, { "from": "human", "value": "// js/routes\n\n(function() {\n \"use strict\";\n\n angular.module(\"NoteWrangler\")\n .config(config);\n\n function config($routeProvider) {\n $routeProvider\n .when(\"/notes\", {\n ...
javascript
chosen
[ { "from": "system", "value": "Move listen port back to 443\n" }, { "from": "human", "value": "var express = require('express');\n\nvar webInterface = function(dbot) {\n var dbot = dbot;\n\n var pub = 'public';\n var app = express.createServer();\n\n app.use(express.compiler({ src: pu...
javascript
chosen
[ { "from": "system", "value": "Add support for serving static files and logging\n" }, { "from": "human", "value": "var app = require(\"express\")();\n\napp.get('/', function (req, res) {\n res.send('c\\'est ne une jsbin');\n});\n\napp.listen(3000);\n" }, { "from": "gpt", "value": "va...
javascript
chosen
[ { "from": "system", "value": "Add support for memcache with Drupal config via override.settings.php.\n" }, { "from": "human", "value": "'use strict';\n\nvar _ = require('lodash');\n\nvar prompts = [\n {\n type: 'input',\n name: 'projectName',\n message: 'Machine-name of your project?',...
javascript
chosen
[ { "from": "system", "value": "Use CouchDB send function when displaying the template\n\nAlso correct the start function which was wrong before.\n" }, { "from": "human", "value": "function(doc, req) {\n start({\n \"headers\" : {\n \"Content-type\": \"text/html\"\n }\n });\n...
javascript
chosen
[ { "from": "system", "value": "Make both node and draft model available in draft template.\n" }, { "from": "human", "value": "import Ember from 'ember';\n\nexport default Ember.Route.extend({\n model() {\n let node = this.modelFor('nodes.detail');\n return node.get('draftRegistra...
javascript
chosen
[ { "from": "system", "value": "Allow editing of filters, ordering and limits." }, { "from": "human", "value": "App.QueryController = Ember.Controller.extend({\n needs: ['insight'],\n\n columnsBinding: \"controllers.insight.columns\",\n limitBinding: \"controllers.insight.limit\",\n\n _schema:...
javascript
chosen
[ { "from": "system", "value": "Add title when action buttons is disabled - FF fix\n" }, { "from": "human", "value": "/*\n * JBoss, Home of Professional Open Source.\n * Copyright 2014 Red Hat, Inc., and individual contributors\n * as indicated by the @author tags.\n *\n * Licensed under the Apach...
javascript
chosen
[ { "from": "system", "value": "Improve the looks of the tab's URL by using \"+\" instead of \"%20\"\n" }, { "from": "human", "value": "chrome.contextMenus.create(\n {\n \"title\": \"Define \\\"%s\\\"\",\n \"contexts\":[\"selection\"],\n \"onclick\": function(info, tab){\n ...
javascript
chosen
[ { "from": "system", "value": "Disable debug mode by default\n" }, { "from": "human", "value": "'use strict';\n\nvar path = require('path');\nvar winston = require('winston');\n\n//\n// Logging levels\n//\nvar config = {\n levels: {\n silly: 0,\n verbose: 1,\n debug: 2,\n info: 3,\n ...
javascript
chosen
[ { "from": "system", "value": "Fix angular jqflot integration error\n" }, { "from": "human", "value": "/**\n * Created with IntelliJ IDEA.\n * User: issa\n * Date: 2/10/14\n * Time: 1:18 AM\n */\n\n\napp.directive('aFloat', function() {\n function link(scope, element, attrs){\n scope.$w...
javascript
chosen
[ { "from": "system", "value": "Make categories a bit prettier\n" }, { "from": "human", "value": "const u = require('../styles/utils');\n\nmodule.exports = {\n '.dashboard': {\n 'padding': u.inRem(20),\n },\n\n '.dashboard’s-title': {\n 'font-size': u.inRem(40),\n 'line-height': u.inRe...
javascript
chosen
[ { "from": "system", "value": "Fix initiativeShow to subscribe to userData\n" }, { "from": "human", "value": "Router.configure({\n layoutTemplate: '_layout'\n});\n\n\n//From what I can tell this has been depreciated\n//https://github.com/iron-meteor/iron-router/blob/739bcc1445db3ad6bf90bda4e0cab...
javascript
chosen
[ { "from": "system", "value": "Correct regex pattern in the replace\n\nI believe the intention is to strip out the last `/` character, if any\n(as the comment say).\n" }, { "from": "human", "value": "/**\n * Incomplete type for settings in the `settings.json` file.\n *\n * This contains only the ...
javascript
chosen
[ { "from": "system", "value": "Add API versioning for House endpoints.\n" }, { "from": "human", "value": "'use strict'\n\nvar passport = require('passport')\n\nmodule.exports = function(app) {\n var house = require('../controllers/houseController')\n\n app.route('/houses')\n .get(house.list_...
javascript
chosen
[ { "from": "system", "value": "WIP: Create config directory if not present\n" }, { "from": "human", "value": "'use strict';\n\nmodule.exports = {\n\n get: function(task) {\n return new Promise((resolve, reject) => {\n\n // Check type\n if ( task.type === undefined || ! ['show', 'mov...
javascript
chosen
[ { "from": "system", "value": "Fix bug in addons/graphql in reIndentQuery\n" }, { "from": "human", "value": "import React from 'react';\nimport GraphiQL from 'graphiql';\nimport { fetch } from 'global';\nimport 'graphiql/graphiql.css';\n\nimport FullScreen from './components/FullScreen';\n\nconst...
javascript
chosen
[ { "from": "system", "value": "Hide create analysis modal on success\n\n" }, { "from": "human", "value": "import React, { PropTypes } from \"react\";\nimport { Modal } from \"react-bootstrap\";\nimport { AlgorithmSelect, Button } from \"virtool/js/components/Base\";\n\nconst getInitialState = () ...
javascript
chosen
[ { "from": "system", "value": "Allow optional slug in function which determines an imported entry's path\n" }, { "from": "human", "value": "var slugify = require('./slugify');\nvar join = require('path').join;\nvar moment = require('moment');\n\nmodule.exports = function (title, page, draft, date...
javascript
chosen
[ { "from": "system", "value": "Add minor delay to video capture. Hopefully this helps the camera moduel keep up.\n" }, { "from": "human", "value": "// This module is responsible for capturing videos\n\n'use strict';\n\nconst config = require('config');\nconst PiCamera = require('pi-camera');\ncon...
javascript
chosen
[ { "from": "system", "value": "Check to see what values are in which file.\n" }, { "from": "human", "value": "const propertiesReader = require(\"properties-reader\");\n\nconst defaults = {\n \"primary-color\": \"#1890ff\",\n \"info-color\": \"#1890ff\",\n \"link-color\": \"#1890ff\",\n \"font...
javascript
chosen
[ { "from": "system", "value": "Exclude passwordless stuff from build\n" }, { "from": "human", "value": "/*\n *\n * This is used to build the bundle with browserify.\n *\n * The bundle is used by people who doesn't use browserify.\n * Those who use browserify will install with npm and require the ...
javascript
chosen
[ { "from": "system", "value": "Align with changes in OverviewTable.\n" }, { "from": "human", "value": "/*jslint browser: true, single: true, maxlen: 120, eval: true, white: true */\n/*global define */\n/*global set_based_abc_inline_js*/\n\n//-------------------------------------------------------...
javascript
chosen
[ { "from": "system", "value": "[App] Remove mock version in code\n\n" }, { "from": "human", "value": "/*\n * Author: Alexandre Havrileck (Oxyno-zeta) \n * Date: 25/06/16\n * Licence: See Readme\n */\n(function () {\n\t'use strict';\n\n\tangular\n\t\t.module('libparsio.technical.services')\n\t\t.f...
javascript
chosen
[ { "from": "system", "value": "Fix for missing dynamic import\n" }, { "from": "human", "value": "exports.map = {\n\t'node': ['net.env.node.stdio'],\n\t'browser': ['net.env.browser.csp'],\n\t'mobile': []\n}\n\nexports.resolve = function(env, opts) {\n\treturn exports.map[env] || [];\n};\n" }, ...
javascript
chosen
[ { "from": "system", "value": "Hide the Invite button in topics in secured categories\n" }, { "from": "human", "value": "/**\n This view is used for rendering the buttons at the footer of the topic\n\n @class TopicFooterButtonsView\n @extends Discourse.ContainerView\n @namespace Discourse\n ...
javascript
chosen
[ { "from": "system", "value": "Remove hard-coded message sender id.\n" }, { "from": "human", "value": "importScripts('https://www.gstatic.com/firebasejs/3.6.6/firebase-app.js');\nimportScripts('https://www.gstatic.com/firebasejs/3.6.6/firebase-messaging.js');\n\n// Initialize the Firebase app in ...
javascript
chosen
[ { "from": "system", "value": "Fix Duplicate Tab shortcut typo\n" }, { "from": "human", "value": "(function () {\n\t'use strict';\n\t// Awesome Browser Shortcuts\n\tchrome.commands.onCommand.addListener(function (command) {\n\t\tvar tabQuery = {active: true, currentWindow: true};\n\t\tif (command...
javascript
chosen
[ { "from": "system", "value": "Add log for child process\n" }, { "from": "human", "value": "var fork = require('child_process').fork;\nvar amountConcurrentServers = process.argv[2] || 2;\nvar port = initialPortServer();\nvar servers = [];\nvar path = __dirname;\nvar disableAutomaticGarbageOption ...
javascript
chosen
[ { "from": "system", "value": "Remove version constaint on AutoForm\n" }, { "from": "human", "value": "Package.describe({\n name: 'staringatlights:autoform-generic-error',\n version: '1.0.0',\n // Brief, one-line summary of the package.\n summary: 'Enables generic error handling in AutoForm.'...
javascript
chosen
[ { "from": "system", "value": "Revert \"don't require dsa key\"\n\nThis reverts commit ce8f474a2832374f109129d9847cdce526ae318c.\n" }, { "from": "human", "value": "\nmodule.exports = [\n {\n type: 'bitcoin',\n purpose: 'payment'\n },\n {\n type: 'bitcoin',\n purpose: 'messaging'\n ...
javascript
chosen
[ { "from": "system", "value": "Use short syntax version for the Fragment.\n" }, { "from": "human", "value": "import React from 'react'\nimport { StaticQuery, graphql } from 'gatsby'\nimport Navigation from '../components/navigation'\n\nexport default ({ children }) => (\n <StaticQuery\n query...
javascript
chosen
[ { "from": "system", "value": "Fix typo and use thisNode\n" }, { "from": "human", "value": "// Copyright 2014-2015, University of Colorado Boulder\n\n/**\n * Base module for model elements whose position and opacity can change.\n *\n * @author John Blanco\n * @author Andrew Adare\n */\ndefine( fu...
javascript
chosen
[ { "from": "system", "value": "Add initial load and larger update interval\n" }, { "from": "human", "value": "var app = require('http').createServer();\nvar request = require('request');\nvar io = require('socket.io')(app);\nvar fs = require('fs');\n\napp.listen(13374);\n\nio.on('connection', fun...
javascript
chosen
[ { "from": "system", "value": "Revert \"Lower ui bootstraps dependency to only the tooltip\"\n\nThis reverts commit a699e4304a2f75a49d7d8d6769646b1fabdbadcf.\n" }, { "from": "human", "value": "'use strict';\n\n/**\n * @ngdoc overview\n * @name angularBootstrapCalendarApp\n * @description\n * # an...
javascript
chosen
[ { "from": "system", "value": "Drop quarter in favor of month\n" }, { "from": "human", "value": "/* global document, customElements, BaseElement, Moment */\n\nclass CalendarIllustration extends BaseElement {\n constructor() {\n super().fetchTemplate();\n }\n\n /**\n * Draws th...
javascript
chosen
[ { "from": "system", "value": "Update require statement for string utils" }, { "from": "human", "value": "var stringUtil = require('ember-cli/lib/utilities/string');\n\nmodule.exports = {\n description: 'Generates a new custom assertion into tests/assertions/',\n\n locals: function(options) {\n...
javascript
chosen
[ { "from": "system", "value": "Make extension work in dev env too\n" }, { "from": "human", "value": "var iframe;\n\nfunction initFrame() {\n iframe = document.createElement('iframe');\n document.body.appendChild(iframe);\n}\n\n// Listen to the parent window send src info to be set on the nested...
javascript
chosen
[ { "from": "system", "value": "Add ReferenceScreen to references tab in WorkerProfileScreen\n" }, { "from": "human", "value": "import React, { Component } from 'react';\nimport { Container, Tab, Tabs, Text } from 'native-base';\nimport WorkerInfoScreen from '../worker-info-screen';\nimport I18n f...
javascript
chosen
[ { "from": "system", "value": "Create a method to search for a Publisher's Collections.\n\nTo be used in AlbumEdit.\n\nRefs #78.\n" }, { "from": "human", "value": "import AbstractModelService from './abstract-model-service'\nimport { axiosGet } from '@/helpers/axios'\n\n/**\n * API service for Pu...
javascript
chosen
[ { "from": "system", "value": "Improve cache headers and add comments\n" }, { "from": "human", "value": "// Add Etag header to each http and rpc response\n//\n\n'use strict';\n\nconst crypto = require('crypto');\n\n\nmodule.exports = function (N) {\n N.wire.after([ 'responder:http', 'responder:r...
javascript
chosen
[ { "from": "system", "value": "Handle taps to close the menu.\n" }, { "from": "human", "value": "import './Menu.css';\nimport React, { Component, PropTypes } from 'react';\nimport { connect } from 'react-redux';\nimport { closeMenu } from 'shared/state/app/actions';\nimport shallowCompare from 'r...
javascript
chosen
[ { "from": "system", "value": "Remove browser-sync new window & ghostMode\n" }, { "from": "human", "value": "import browserSync from 'browser-sync';\nimport paths from '../mconfig.json';\n\nexport const server = browserSync.create();\n\nfunction serve(done) {\n server.init({\n notify: f...
javascript
chosen
[ { "from": "system", "value": "Fix apps with empty class attributes\n" }, { "from": "human", "value": "const createAppTemplate = (app, template) => {\n const hadClassName = !!app.className;\n const quenchedClassName = `${app.className} quenched`.replace(/\\bpre-quench\\b/g, '');\n\n let html =...
javascript
chosen
[ { "from": "system", "value": "Change the rounding precision to one decimal point\n" }, { "from": "human", "value": "const billion = 1000000000.0\nconst million = 1000000.0\nconst thousand = 1000.0\n\nexport function numberToHuman(number, showZero = true) {\n if (number === 0 && !showZero) { ret...
javascript
chosen
[ { "from": "system", "value": "Allow devDependencies in demos and tests\n" }, { "from": "human", "value": "module.exports = {\n \"env\": {\n \"browser\": true\n },\n \"extends\": [\n \"airbnb\",\n // These prettier configs are used to disable inherited rules that conflict\n // with...
javascript
chosen
[ { "from": "system", "value": "Use turbolinks:visit event to handle teardowns, works whether caching is enabled or not\n" }, { "from": "human", "value": "function handleVueDestruction(vue) {\n document.addEventListener('turbolinks:before-render', function teardown() {\n vue.$destroy();\n d...
javascript
chosen
[ { "from": "system", "value": "Use `let` instead of `var`\n" }, { "from": "human", "value": "define(function() {\n 'use strict';\n\n /**\n * @param {string} str\n * @return {string}\n */\n var capitalize = function(str) {\n return str.substr(0, 1).toUpperCase() + str.s...
javascript
chosen
[ { "from": "system", "value": "Add istanbul ignore. Line is tested.\n\nIstanbul isn't picking it up.\n" }, { "from": "human", "value": "// @flow\nimport type { MessageThemeContext } from './types'\nimport React, { PureComponent } from 'react'\nimport styled from '../styled'\nimport Chat from './C...
javascript
chosen
[ { "from": "system", "value": "Use package name from package.json as a configstore id\n" }, { "from": "human", "value": "const Configstore = require('configstore')\nconst inq = require('inquirer')\nconst prompts = require('./setup-prompts')\n\nmodule.exports = class ServerConfig {\n\n constructo...
javascript
chosen
[ { "from": "system", "value": "Normalize trailing spaces as well\n\nThis doesn't remove spaces at the end, it just converts\nthe last one to make it visible. I think the strategy of not\nhaving spaces at all in the end should go in a config\noption and shouldn't be a task of normalizeSpaces.\n\nConflicts:\n\...
javascript
chosen
[ { "from": "system", "value": ":new: Use is-glob when finding root\n" }, { "from": "human", "value": "'use babel'\n\nimport Path from 'path'\nimport {getDir, findFile} from './common'\nimport {CONFIG_FILE_NAME} from '../defaults'\n\nexport function findRoot(path, options) {\n if (options.root !=...
javascript
chosen
[ { "from": "system", "value": "Add helper with timezone validity info\n" }, { "from": "human", "value": "const moment = require('moment-timezone');\nconst chalk = require('chalk');\n\nexports.printMessage = function (message) {\n console.log(message);\n};\n\nexports.printError = function (messag...
javascript
chosen
[ { "from": "system", "value": "Fix problems with importing file\n\nrequire css file was giving unexpected error" }, { "from": "human", "value": "require('./dist/dialogs.js');\nrequire('./dist/dialogs-default-translations.js');\nrequire('./dist/dialogs.css');\nmodule.exports = 'dialogs.main';\n" ...
javascript
chosen
[ { "from": "system", "value": "Update transform to accomodate more explicit transform API changes.\n" }, { "from": "human", "value": "module.exports = function (opts={}) {\n var isJsonFile = opts.filter || /\\.json$/;\n\n return function (override, transform, control) {\n transform(\"readSou...
javascript
chosen
[ { "from": "system", "value": "Update from wherever 0.0.3 came from\n" }, { "from": "human", "value": "var originalDataModule = require('data-module');\nvar gutil = require('gulp-util');\nvar through2 = require('through2');\n\nvar DataModuleError = gutil.PluginError.bind(null, 'gulp-data-module')...
javascript
chosen
[ { "from": "system", "value": "Allow user to define their own css source\n" }, { "from": "human", "value": "/* jshint node: true */\n'use strict';\n\nconst REFLECT_JS_VERSION = '0.1.59',\n REFLECT_JAVASCRIPT = 'https://cdn.reflect.io/' + REFLECT_JS_VERSION +'/reflect.js',\n REFLECT_CSS ...
javascript
chosen
[ { "from": "system", "value": "Use ipc module. Check for existence of Electron.\n" }, { "from": "human", "value": "'use strict'\nconst app = require('app')\nconst BrowserWindow = require('browser-window')\nconst Menu = require('menu')\nconst menuTemplate = require('./menu-template.js')\n\nrequire...
javascript
chosen
[ { "from": "system", "value": "ENYO-1648: Increase moveTolerance value from 16 to 1500 on configureHoldPulse\n\nIssue:\n- The onHoldPulse event is canceled too early when user move mouse abound.\n\nFix:\n- We need higher moveTolerance value to make it stay pulse more on TV.\n- Increase moveTolerance value fr...
javascript
chosen
[ { "from": "system", "value": "Edit tags in featured projects controller\n" }, { "from": "human", "value": "define(function() {\n var ProjectsFeaturedController = function(ProjectResource) {\n this.projects = ProjectResource.list({\n // Add feature tags here\n 'tag...
javascript
chosen
[ { "from": "system", "value": "Refactor swapCase function to use custom not function\n" }, { "from": "human", "value": "import R from 'ramda';\nimport compose from './util/compose.js';\nimport join from './util/join.js';\nimport upperCase from './util/upper-case.js';\nimport lowerCase from './uti...
javascript
chosen
[ { "from": "system", "value": "Make async `runs` a bit better.\n" }, { "from": "human", "value": "// Lifted from Atom\n\nexports.beforeEach = function (fn) {\n global.beforeEach(function () {\n var result = fn()\n if (result instanceof Promise) {\n waitsForPromise(function () { return...
javascript
chosen
[ { "from": "system", "value": "Update test assertion on validation message\n" }, { "from": "human", "value": "'use strict';\n\nvar expect = require('chai').expect;\nvar validator = require('../');\n\ndescribe('Date validator', function () {\n var simpleRules = {\n birthday: ['date-format:YYYY...
javascript
chosen
[ { "from": "system", "value": "Add missing semicolons in js\n\nChange-Id: I1cb8d044766924e554411ce45c3c056139f19078\n" }, { "from": "human", "value": "angular.module('horizonApp').directive('hrNumberPicker', function() {\n return {\n restrict: 'A',\n replace: true,\n scope: { initial_va...
javascript
chosen
[ { "from": "system", "value": "Add game message to play attachment\n" }, { "from": "human", "value": "const BaseAbility = require('./baseability.js');\nconst Costs = require('./costs.js');\n\nclass PlayAttachmentAction extends BaseAbility {\n constructor() {\n super({\n cost:...
javascript
chosen
[ { "from": "system", "value": "Add paragraphIds method to Item model.\n" }, { "from": "human", "value": "define([\n 'underscore',\n 'jquery',\n 'models/resource',\n 'collections/bullet',\n 'collections/paragraph'\n], function (_, $, Resource, BulletCollection, ParagraphCollection) {\n 'use ...
javascript
chosen
[ { "from": "system", "value": "Add once option to manage working mode. Fix threshold value.\n" }, { "from": "human", "value": "import './sal.scss';\n\nlet options = {\n rootMargin: '0px',\n threshold: 0,\n animateClassName: 'sal-animate',\n selector: '[data-sal]',\n disableFor: null,\n};\n\n...
javascript
chosen
[ { "from": "system", "value": "Add console support, p. 2" }, { "from": "human", "value": "import fetch from 'node-fetch';\nimport { hashToHypen } from './formatText';\nimport { API_URL, HTTP_HEADERS } from '../constants';\n\nconst headers = HTTP_HEADERS;\n\nconst fetchStats = (battletag) => {\n ...
javascript
chosen
[ { "from": "system", "value": "Clear date range picker if no start and end date given\n" }, { "from": "human", "value": "$(function () {\n 'use strict';\n $.fn.getDateRangeSeparator = function () {\n return ' to ';\n };\n $.fn.createBootstrap3DateRangePicker = function(\n ...
javascript
chosen
[ { "from": "system", "value": "Fix category label for sound library\n" }, { "from": "human", "value": "export default [\n {title: 'Animal'},\n {title: 'Effects'},\n {title: 'Loops'},\n {title: 'Notes'},\n {title: 'Percussion'},\n {title: 'Space'},\n {title: 'Sports'},\n {t...
javascript
chosen
[ { "from": "system", "value": "Fix additional \"!\" when push ignore list\n" }, { "from": "human", "value": "\n/**\n * Configuration module\n */\nvar path = require('path');\nvar fs = require('fs');\nvar lodash = require('lodash');\nvar jsonlint = require('json-lint');\n\n...
javascript
chosen
[ { "from": "system", "value": "Add suspension capabilities to MessageComparator\n" }, { "from": "human", "value": "var logger = require('../utils/logger')('MessageComparator'),\n Response = require('./response');\n\n/**\n * Represents a MessageComparator capable of determining whether an\n * i...
javascript
chosen
[ { "from": "system", "value": "Fix recommendations fixture for when no recomendations are returned by iBL\n" }, { "from": "human", "value": "module.exports = function (creator, fixtureName) {\r\n return creator.createFixture('/episodes/p00y1h7j/recommendations').then(function (fixture) {\r\n ...
javascript
chosen
[ { "from": "system", "value": "Watch styles in main folder\n" }, { "from": "human", "value": "/*global module:false*/\nmodule.exports = function(grunt) {\n\n // Project configuration.\n grunt.initConfig({\n // Task configuration.\n watch: {\n lib_test: {\n files: [ 'styles/**/...
javascript
chosen
[ { "from": "system", "value": "Add support for suggestion style to SettingsNotice component.\n" }, { "from": "human", "value": "/**\n * Settings notice component.\n *\n * Site Kit by Google, Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * yo...
javascript
chosen
[ { "from": "system", "value": "[cli] Fix 'react-native start' on Windows\n\nBased on https://github.com/facebook/react-native/pull/2989\nThanks @BerndWessels!\n" }, { "from": "human", "value": "'use strict';\n\nvar path = require('path');\nvar child_process = require('child_process');\n\nmodule.e...
javascript
chosen
[ { "from": "system", "value": "Return promise from version command\n" }, { "from": "human", "value": "import promiseProps from 'promise-props-recursive'\nimport getLocalVersion from '../../npm-bridge/getLocalVersion'\nimport getGlobalSanityCliVersion from '../../util/getGlobalSanityCliVersion'\ni...
javascript
chosen
[ { "from": "system", "value": "Resolve reactive props animation issue.\n\nA small consequence of replacing the entire dataset in the mixins files is that it causes certain charts to completely re-render even if only the 'data' attribute of a dataset is changing. In my case, I set up a reactive doughnut chart...
javascript
chosen