conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Use an empty query when grabbing filtered raids\n" }, { "from": "human", "value": "import Ember from 'ember';\n\n/* global moment */\nexport default Ember.Route.extend({\n model: function() {\n return this.store.filter('raid', { 'current': true }, function(raid)...
javascript
chosen
[ { "from": "system", "value": "Use default schema id for empty articles.\n" }, { "from": "human", "value": "import { DefaultDOMElement } from 'substance'\n\nconst EMPTY_JATS = `<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE article PUBLIC \"-//NLM//DTD JATS (Z39.96) Journal Archiving DTD v...
javascript
chosen
[ { "from": "system", "value": "android: Fix bridge test failure due to \"\" vs null\n" }, { "from": "human", "value": "/*\n *\n * Licensed to the Apache Software Foundation (ASF) under one\n * or more contributor license agreements. See the NOTICE file\n * distributed with this work for addition...
javascript
chosen
[ { "from": "system", "value": "Create a failing before-all hook.\n" }, { "from": "human", "value": "var chai = require('chai');\nchai.should();\n// var expect = chai.expect;\n// var should = chai.should();\n\nvar jetconfig = require('../index.js');\n\n\ndescribe('#get()', function (){\n it(\"s...
javascript
chosen
[ { "from": "system", "value": "Add trailing commas where appropriate\n" }, { "from": "human", "value": "import test from 'ava';\nimport { search, searchContinuously } from '..';\n\ntest('it makes a request', t =>\n search()\n .then(items => {\n t.true(Array.isArray(items));\n })\n);\n...
javascript
chosen
[ { "from": "system", "value": "Add basic Redux Provider with store\n" }, { "from": "human", "value": "import React, { Component } from 'react';\nimport ReactDOM from 'react-dom';\n\nimport { Board } from './containers';\nimport './styles/app.scss';\n\nclass App extends Component {\n render() {\n...
javascript
chosen
[ { "from": "system", "value": "Add header comments to keep system, package and project imports separate.\n" }, { "from": "human", "value": "// Copyright (c) Rotorz Limited. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root.\n\nimport given from \"mocha-...
javascript
chosen
[ { "from": "system", "value": "Document rails option in CLI tool\n\nSigned-off-by: Vinson Chuong <6df075c17c17de53656cfe2eb11616735a18bb18@pivotal.io>\n" }, { "from": "human", "value": "import {dest} from 'vinyl-fs';\nimport drFrankenstyle from './dr-frankenstyle';\n\nconst argv = require('yargs'...
javascript
chosen
[ { "from": "system", "value": "Add the tentative schema for the redux store\n" }, { "from": "human", "value": "export function stub(state = {}, action) {\n return state;\n}\n" }, { "from": "gpt", "value": "// Tentative schema for the overall app store:\n//\n// \n// interface Medi...
javascript
chosen
[ { "from": "system", "value": "Add get method to request a single resource\n" }, { "from": "human", "value": "import url from \"url\";\nimport mixin from \"merge-descriptors\";\nimport wildcard from \"wildcard-named\";\n\nexport default {\n callbacks : {},\n\n when( uri ) {\n ...
javascript
chosen
[ { "from": "system", "value": "Apply to all elements, not just input.\n" }, { "from": "human", "value": "/**\n * autocompleteme.js\n * Chrome extension to remove autocomplete=off attributes from all elements on the page.\n *\n * https://github.com/martone/autocompleteme\n * Andy Martone (amartone...
javascript
chosen
[ { "from": "system", "value": "Add proper composer link and docs\n" }, { "from": "human", "value": "import Dependency from './Dependency'\n\n\nexport default class Composer extends Dependency {\n\n default()\n {\n this.dependencyName = 'PHP Composer'\n this.required = true\n ...
javascript
chosen
[ { "from": "system", "value": "Add unit test for ContainerCtrl\n" }, { "from": "human", "value": "'use strict';\n\n/* jasmine specs for controllers go here */\n\ndescribe('RootCtrl', function(){\n var scope;\n\n beforeEach(module('swiftBrowser.controllers'));\n\n beforeEach(inject(functi...
javascript
chosen
[ { "from": "system", "value": "test: Add cozy-keys-lib exception to transformIgnorePatterns\n" }, { "from": "human", "value": "module.exports = {\n testURL: 'http://localhost/',\n moduleFileExtensions: ['js', 'jsx', 'json', 'styl'],\n setupFiles: ['<rootDir>/test/jestLib/setup.js'],\n moduleD...
javascript
chosen
[ { "from": "system", "value": "Add data to resize callback\n" }, { "from": "human", "value": "import EventEmitter from 'events';\nimport { RESIZE } from '../constants/AppConstants';\n\nclass RendererStore extends EventEmitter {\n\n constructor(...args) {\n super(...args);\n\n this.data = {...
javascript
chosen
[ { "from": "system", "value": "Clone credentials on each test run\n" }, { "from": "human", "value": "'use strict';\nvar sdk = require('flowxo-sdk'),\n service = require('../');\n\nvar credentials = {};\ntry {\n credentials = require('../credentials');\n} catch(e) {}\n\nbeforeEach(function() {\n...
javascript
chosen
[ { "from": "system", "value": "Watch for changes in the JDL package (rebundle)\n" }, { "from": "human", "value": "//\n// See https://github.com/jenkinsci/js-builder\n//\nvar builder = require('@jenkins-cd/js-builder');\n\n// Disable js-builder based linting for now.\n// Will get fixed with https:...
javascript
chosen
[ { "from": "system", "value": "Correct route blueprint mistakenly looking up wrong blueprint\n" }, { "from": "human", "value": "var ancestralBlueprint = require('../../lib/ancestral-blueprint');\n\nmodule.exports = {\n description: 'Generates a route and registers it with the router',\n\n avail...
javascript
chosen
[ { "from": "system", "value": "Add missing return statement in setSearchTerm\n" }, { "from": "human", "value": "import { SET_SEARCH_TERM } from './actions'\n\nconst DEFAULT_STATE = {\n searchTerm: ''\n}\n\nconst setSearchTerm = (state, action) => {\n const newState = {}\n Object.assign(newStat...
javascript
chosen
[ { "from": "system", "value": "Add HTML5 pushState support for Ember\n\n- also updates associated route\n" }, { "from": "human", "value": "/*global Ember */\n\n// ensure we don't share routes between all Router instances\nvar Router = Ember.Router.extend();\n\nRouter.reopen({\n //location: 'hi...
javascript
chosen
[ { "from": "system", "value": "Add username to deploy config\n" }, { "from": "human", "value": "module.exports = {\n options: {\n dir: 'dist',\n commit: true,\n push: true,\n message: 'Built %sourceName% from commit %sourceCommit% on branch %sourceBranch%'\n },\n pages: {\n opti...
javascript
chosen
[ { "from": "system", "value": "Fix formatting in Killmail test\n" }, { "from": "human", "value": "jest.mock('../../internal/ESIAgent');\n\nconst Api = require('../../Api');\n\nlet api = new Api();\nlet agent = api._esiAgent;\n\nafterEach(() => {\n agent.__reset();\n});\n\ntest('Killmail.get', ()...
javascript
chosen
[ { "from": "system", "value": "Make codes being close to React style\n" }, { "from": "human", "value": "var ContribBox = React.createClass({\n render: function() {\n return <div />;\n }\n});\n\nvar SearchBox = React.createClass({\n getInitialState: function () {\n console.l...
javascript
chosen
[ { "from": "system", "value": "Add extra check in keyExtractor to prevent dublicate keys\n" }, { "from": "human", "value": "import React from 'react'\nimport { Text } from 'react-native'\nimport { withNavigation } from 'react-navigation'\n\nimport ShuttleOverview from './ShuttleOverview'\nimport ...
javascript
chosen
[ { "from": "system", "value": "Replace all rights reserved at the bottom of the screen\n" }, { "from": "human", "value": "import React from 'react'\n\nfunction Footer() {\n return (\n <div className=\"fix-bottom\">\n <p className=\"tc\">All rigths reserved</p>\n <style jsx>{`\n ...
javascript
chosen
[ { "from": "system", "value": "Revert \"Allow only name, url keys for win32.\"\n\nThis reverts commit 9ea03c29ffc1dac7f04f094433c9e47c2ba1c5ad.\n" }, { "from": "human", "value": "var spawn = require('child_process').spawn;\nvar path = require('path');\n\nmodule.exports = function (options) {\n ...
javascript
chosen
[ { "from": "system", "value": "Fix bad function name call\n" }, { "from": "human", "value": "var AlexaAppServer = require('alexa-app-server');\n\n\n\nvar MpdInterface = require('./apps/alexa-mpd-control/mpd_interface');\nvar mpd = new MpdInterface();\n\n\nAlexaAppServer.start({\n// server_root...
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 TuttolinoE...
javascript
chosen
[ { "from": "system", "value": "Clear instead of Flush. Clearing now allows for a certain type to be filtered out." }, { "from": "human", "value": "var Reflux = require('reflux');\nvar objectAssign = require('object-assign');\n\nvar MessageActions = require('./MessageActions');\n\nvar _stack = [];...
javascript
chosen
[ { "from": "system", "value": "Deal with invalid http POST more gracefully.\n" }, { "from": "human", "value": "var http = require('http')\n , url = require('url')\n , express = require('express')\n , rest = express()\n , path = require('path')\n , server = http.createServer(rest)\n , ap = r...
javascript
chosen
[ { "from": "system", "value": "Fix test to pass also with Firefox 13\n" }, { "from": "human", "value": "function runTest()\n{\n FBTest.sysout(\"issue5525.START\");\n FBTest.openNewTab(basePath + \"script/breakpoints/5525/issue5525.html\", function(win)\n {\n FBTest.openFirebug();\...
javascript
chosen
[ { "from": "system", "value": "Fix exporting pass & shaders\n\n" }, { "from": "human", "value": "export * from './controls/FirstPersonControls';\nexport * from './controls/OrbitControlsModule';\nexport * from './VirtualMouse';\n" }, { "from": "gpt", "value": "export * from './controls...
javascript
chosen
[ { "from": "system", "value": "Add support for multiple issue keywords in the same repo\n" }, { "from": "human", "value": "String.prototype.replaceAll = function(search, replace)\n{\n //if replace is not sent, return original string otherwise it will\n //replace search string with 'undefine...
javascript
chosen
[ { "from": "system", "value": "Add autocomplete to date component to assist with accessibility\n" }, { "from": "human", "value": "'use strict';\n\nmodule.exports = key => ({\n [`${key}-day`]: {\n label: 'Day'\n },\n [`${key}-month`]: {\n label: 'Month'\n },\n [`${key}-year`]: {\n la...
javascript
chosen
[ { "from": "system", "value": "Make sure to properly patch the Zepto object in IE, not any global $ object.\n" }, { "from": "human", "value": "// Zepto.js\n// (c) 2010-2013 Thomas Fuchs\n// Zepto.js may be freely distributed under the MIT license.\n\n;(function(){\n // __proto__ does...
javascript
chosen
[ { "from": "system", "value": "Fix issue in retrieval of transactions\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 RuneScape...
javascript
chosen
[ { "from": "system", "value": "Use relative path to mock data\n" }, { "from": "human", "value": "function findStations(callback) {\n $.ajax({\n type: 'GET',\n url: 'http://localhost:8765/mockdata/veturilo.xml',\n dataType: 'xml',\n success: function (xml) {\n ...
javascript
chosen
[ { "from": "system", "value": "Set correct JSON for production\n" }, { "from": "human", "value": "$(function(){\n var url = 'https://storage.googleapis.com/rutracker-rss.appspot.com/category_map.json';\n var url = 'https://dl.dropboxusercontent.com/u/660127/category_map.json'; // TODO\n\...
javascript
chosen
[ { "from": "system", "value": "Make sure events have the right keys and an id\n" }, { "from": "human", "value": "/* global test, expect */\nimport fakeEvents from './fakeEvents';\n\ntest('calling fakeEvents should generate an array containing btw. 60 and 120 objects', () => {\n\texpect(fakeEvents...
javascript
chosen
[ { "from": "system", "value": "Package the script with a `start` function" }, { "from": "human", "value": "var http = require(\"http\");\n\nfunction onRequest(request, response) {\n\tconsole.log(\"Request received.\");\n\tresponse.writeHead(200, {\"Content-Type\": \"text/plain\"});\n\tresponse.wr...
javascript
chosen
[ { "from": "system", "value": "Rename variable to avoid using reserved word `string`\n" }, { "from": "human", "value": "'use strict'\n\n// Chess board\n// Write a program that creates a string that represents an 8×8 grid, using newline characters to separate lines. At each position of the grid th...
javascript
chosen
[ { "from": "system", "value": "Change thinsList type to array\n" }, { "from": "human", "value": "import Vue from 'vue'\nimport Vuex from 'vuex'\nimport * as actions from './actions'\nimport * as mutations from './mutations'\nimport * as getters from './getters'\n\nVue.use(Vuex)\n\nexport default ...
javascript
chosen
[ { "from": "system", "value": "Disable node tests for now\n" }, { "from": "human", "value": "var config = module.exports;\n\nconfig[\"Browser tests\"] = {\n rootPath: \"../\",\n environment: \"browser\",\n extensions: [require(\"buster-coffee\")],\n sources: [\n \"test/ext/*.js\",\n \"d...
javascript
chosen
[ { "from": "system", "value": "Fix missing goog issue for real\n" }, { "from": "human", "value": "(function(karma, window) {\n var createClojureScriptTest = function (tc, runnerPassedIn) {\n return function () {\n if (goog && goog.dependencies_ && goog.dependencies_.nameToPath) {\n ...
javascript
chosen
[ { "from": "system", "value": "Add market tree built from active symbols\n" }, { "from": "human", "value": "import { Map } from 'immutable';\nimport { FILTER_MARKETS, UPDATE_MARKETS, SERVER_DATA_ACTIVE_SYMBOLS } from '../_constants/ActionTypes';\n\nconst initialState = new Map({\n active: [],\...
javascript
chosen
[ { "from": "system", "value": "Add unique key to items\n" }, { "from": "human", "value": "import React from 'react';\nimport UserPicture from './User/UserPicture';\n\nexport default class UserList extends React.Component {\n\n render() {\n const users = this.props.users.map((user) => {\n ...
javascript
chosen
[ { "from": "system", "value": "Remove boilerplate and render the search bar\n" }, { "from": "human", "value": "import React, { Component } from 'react';\nimport {\n StyleSheet,\n Text,\n View\n} from 'react-native';\n\nexport default class SearchScreen extends Component {\n render() {\n re...
javascript
chosen
[ { "from": "system", "value": "Fix regression (i.e., forward `key`)\n" }, { "from": "human", "value": "import React from 'react';\n\nimport toVoid from '../utils/to-void';\n\nconst fake = {\n __fake__: true,\n publish: toVoid,\n subscribe: toVoid,\n unsubscribe: toVoid\n};\n\nconst { Provider...
javascript
chosen
[ { "from": "system", "value": "Fix the fix to fix the error\n" }, { "from": "human", "value": "const logger = require('logger');\nconst ctRegisterMicroservice = require('ct-register-microservice-node');\n\nclass UserService {\n static async getEmailById(userId) {\n logger.info('Get user by us...
javascript
chosen
[ { "from": "system", "value": "Add check for wifi details\n" }, { "from": "human", "value": "var wifiManager = require('../../lib/WifiManager');\nvar hb = require('handlebars');\nvar fs = require('fs');\nconst path = require('path');\n\nvar subApp = function(){\n this.staticFolder = \"assets\";\...
javascript
chosen
[ { "from": "system", "value": "Use console and override evaluator\n" }, { "from": "human", "value": "const repl = require(\"repl\");\n\nclass REPL {\n constructor(options) {\n this.env = options.env;\n this.plugins = options.plugins;\n }\n\n start(done) {\n this.replServer = repl.star...
javascript
chosen
[ { "from": "system", "value": "Implement rAF mock return correctly\n\nrAF should return a uuid. Components check the assigned id non-null-ness\nfor some purposes.\n\ncc @bsansouci\n" }, { "from": "human", "value": "/* @flow */\n\ntype Callback = (now: number) => void;\n\nexport default function()...
javascript
chosen
[ { "from": "system", "value": "Fix dollar sign issue in angular injection\n" }, { "from": "human", "value": "'use strict';\n\nvar through = require('through')\n , loader = require('./loader')\n , async = require('async');\n\nfunction angularify() {\n var buf = '';\n\n return through(function(...
javascript
chosen
[ { "from": "system", "value": "Append the event name in case of server methods too\n" }, { "from": "human", "value": "// Dependencies\nvar ParseMethod = require(\"./method\")\n , Enny = require(\"enny\")\n , Ul = require(\"ul\")\n , Typpy = require(\"typpy\")\n ;\n\nmodule.exports = function ...
javascript
chosen
[ { "from": "system", "value": "Add drepecation notice for multiple arguments of strings\n" }, { "from": "human", "value": "/*\n\tMIT License http://www.opensource.org/licenses/mit-license.php\n\tAuthor Simen Brekken @simenbrekken\n*/\nvar DefinePlugin = require(\"./DefinePlugin\");\n\n\n\tthis.ke...
javascript
chosen
[ { "from": "system", "value": "Update language to directive form\n" }, { "from": "human", "value": "var _kmq = _kmq || [];\n$(function() {\n\n // No need to do a timeout for default case, if KM times out just don't show ad.\n _kmq.push(function(){\n // Set up the experiment (this is the me...
javascript
chosen
[ { "from": "system", "value": "Add auto submit on change js behaviour\n\nFor submitting forms via ajax when eg dropdown changes\n" }, { "from": "human", "value": "$(document).ready(function() {\n $(\"[data-behaviour='highlight'] tbody tr a\").click(function(){\n $(this).closest(\"tr\").addC...
javascript
chosen
[ { "from": "system", "value": "Add custom forEach function to Circular Buffer class\n" }, { "from": "human", "value": "class CircularBuffer {\n\n constructor(length){\n this.buffer = new Int32Array(length);\n this.maxSize = length;\n this.currentSize = 0;\n this.openIndex = 0;\n t...
javascript
chosen
[ { "from": "system", "value": "Rename master -> masters and slave -> slaves in server status\n" }, { "from": "human", "value": "'use strict';\n\nconst has = require('has');\n\nfunction collectPoolStatus(stats, { type, host, pool }) {\n const poolStats = [\n ['_allConnections', 'open'],\...
javascript
chosen
[ { "from": "system", "value": "Fix caching issue in standalone" }, { "from": "human", "value": "var config = {\n\t// For internal server or proxying webserver.\n\turl : {\n\t\tconfiguration : 'up/configuration',\n\t\tupdate : 'up/world/{world}/{timestamp}',\n\t\tsendmessage : 'up/sendmessage'\n\t...
javascript
chosen
[ { "from": "system", "value": "Support multiple subscribers in g.Live.\n" }, { "from": "human", "value": "/**\n * Keep live updates from service.\n * @constructor\n */\ng.live = function() {\n var socket;\n\n /**\n * Open the websocket connection.\n */\n var open = function() {\n...
javascript
chosen
[ { "from": "system", "value": "Revert \"Fix linting issue with beta branch.\"\n\nThis reverts commit 8122805c34524ac9ac98bfd5cb17380d9765cbb4.\n" }, { "from": "human", "value": "'use strict';\n\nlet experiments = {\n BUILD_INSTRUMENTATION: symbol('build-instrumentation'),\n INSTRUMENTATION: sym...
javascript
chosen
[ { "from": "system", "value": "Change ticker font scale factor to 0.7\n" }, { "from": "human", "value": "Dashboard.TickerWidget = Dashboard.Widget.extend({\n sourceData: \"\",\n\n templateName: 'ticker_widget',\n classNames: ['widget', 'widget-ticker'],\n\n widgetView: function() {\n var w...
javascript
chosen
[ { "from": "system", "value": "Modify request to add necessary header\n" }, { "from": "human", "value": "'use strict';\n\nangular.module('scratchApp')\n .controller('ContractCtrl', function ($scope, $http, $location) {\n var serversPublicKey,\n wallet,\n paymentTx,...
javascript
chosen
[ { "from": "system", "value": "Add conditional to avoid duplicate messages, fix EachIf block.\n" }, { "from": "human", "value": "var l10n_file = __dirname + '/../l10n/commands/say.yml';\nvar l10n = require('../src/l10n')(l10n_file);\nvar CommandUtil = require('../src/command_util').CommandUtil;\n...
javascript
chosen
[ { "from": "system", "value": "Set token to false by default\n" }, { "from": "human", "value": "angular\n\t.module('ngSharepoint')\n\t.provider('$sp', function() {\n\t\tvar siteUrl = '';\n\t\tvar connMode = 'JSOM'; //possible values: JSOM, REST\n\t\tvar token = '';\n\t\tvar autoload = true;\n\n\t...
javascript
chosen
[ { "from": "system", "value": "Change port and host var\n" }, { "from": "human", "value": "var _ = require('lodash');\n\nvar all = {\n // define nodejs runtime environment\n server: {\n port : process.env.NODE_IP || 8080, //OPENSHIFT_NODEJS_PORT\n host : pro...
javascript
chosen
[ { "from": "system", "value": "Load production vars from .env.production\n" }, { "from": "human", "value": "require(\"babel-polyfill\");\n\n/**\n * Configure babel using the require hook\n * More details here: https://babeljs.io/docs/setup/#babel_register\n */\nrequire(\"babel-core/register\")({\...
javascript
chosen
[ { "from": "system", "value": "Upgrade to Electron 1.0 API\n" }, { "from": "human", "value": "var app = require('app');\nvar BrowserWindow = require('browser-window');\n\nvar mainWindow = null;\n\napp.on('window-all-closed', function() {\n if (process.platform != 'darwin')\n app.quit();\n});\...
javascript
chosen
[ { "from": "system", "value": "Remove text align center from status and toasts in the header.\n" }, { "from": "human", "value": "import { HeaderService } from \"./header.service.js\";\n\nexport class HeaderTemplate {\n static update(render) {\n const start = Date.now();\n\n /* es...
javascript
chosen
[ { "from": "system", "value": "Fix example path which occured as a consequence of rename\n" }, { "from": "human", "value": "var path = require('path');\nvar loader = path.join(__dirname, '..', '..', 'index.js');\nvar __DEV__ = process.env.NODE_ENV !== 'production';\n\nmodule.exports = {\n entry:...
javascript
chosen
[ { "from": "system", "value": "Add test coverage to Object.assign polyfill\n" }, { "from": "human", "value": "import { assignPolyfill as assign } from '..';\n\nQUnit.module('Ember.assign');\n\nQUnit.test('Ember.assign', function() {\n let a = { a: 1 };\n let b = { b: 2 };\n let c = { c: 3 };\n...
javascript
chosen
[ { "from": "system", "value": "Remove other landing pages service\n" }, { "from": "human", "value": "(function () {\n 'use strict';\n\n angular\n .module('fusionSeedApp.services.landingPage', [])\n .factory('LandingPageService', LandingPageService);\n\n function LandingPageService($log, ...
javascript
chosen
[ { "from": "system", "value": "Implement crawling by date range\n\nThe website will display Service Advisories first by date range, then by\ntrain route. Previous commits added methods for scraping all routes for\na particular date. This commit adds a method to invoke that method for\nmultiple date ranges.\n...
javascript
chosen
[ { "from": "system", "value": "Update the paranoid equal to the lastest version\n" }, { "from": "human", "value": "'use strict';\n\n\nfunction isNothing(subject) {\n return (undefined === subject) || (null === subject);\n}\n\n\nfunction isObject(subject) {\n return ('object' === typeof subject)...
javascript
chosen
[ { "from": "system", "value": "Delete an empty line again...\n" }, { "from": "human", "value": "'use strict';\n/* Configurable navbar\n *\n * The following variables can be declared in a conf file\n * disable - Boolean\n * search - Boolean\n * navigation - Boolean\n * notifier - Boolean\n...
javascript
chosen
[ { "from": "system", "value": "Make sure nodes always have an output property\n\n4545fcdc1808618723a4f5cd8a228b5c0b121ab7 broke nodes that did not have\nan output property specified at all, and that relied on NIN.Node to\nprovide the whole output setup for them. This made ninjadev/re stop\nworking, so here's...
javascript
chosen
[ { "from": "system", "value": "Fix preserve3d's IE11/Win10 false positive\n" }, { "from": "human", "value": "/*!\n{\n \"name\": \"CSS Transform Style preserve-3d\",\n \"property\": \"preserve3d\",\n \"authors\": [\"denyskoch\", \"aFarkas\"],\n \"tags\": [\"css\"],\n \"notes\": [{\n \"name...
javascript
chosen
[ { "from": "system", "value": "Set state context in test for template compilability with infinite lineage.\n" }, { "from": "human", "value": "describe('templates', function () {\n beforeEach(module('prx', 'templates', function ($provide) {\n $provide.decorator('$templateCache', function ($del...
javascript
chosen
[ { "from": "system", "value": "Fix quote block type property\n\nThey're suppose to be capitalized\n" }, { "from": "human", "value": "/*\n Block Quote\n*/\n\nSirTrevor.Blocks.Quote = (function(){\n\n var template = _.template([\n '<blockquote class=\"st-required st-text-block\" contenteditabl...
javascript
chosen
[ { "from": "system", "value": "Add ValueLink To On Change For Timepicker\n" }, { "from": "human", "value": "let React = require(\"react\")\nlet cx = require(\"classnames\")\nlet {errorList, sizeClassNames, formGroupCx, label} = require(\"../util.js\")\nlet {div, input} = React.DOM\n\nexport defau...
javascript
chosen
[ { "from": "system", "value": "Add logger for docker warning\n" }, { "from": "human", "value": "import { spawn } from \"cross-spawn\";\nimport path from \"path\";\nimport process from \"process\";\nimport commandExists from \"command-exists\";\n\nmodule.exports = function (name) {\n // Check if ...
javascript
chosen
[ { "from": "system", "value": "Fix \"Cannot read property 'replace' of undefined\"\n\nSigned-off-by: kuoruan <2b8c98b0b69c0b74bfe03cced5a9f738a15f1468@gmail.com>\n" }, { "from": "human", "value": "webui.directive(\"textarea\", function() {\n return {\n restrict: \"E\",\n link: function(sco...
javascript
chosen
[ { "from": "system", "value": "Add a general 'loading script' to ignore list\n" }, { "from": "human", "value": "window._trackJs = {\n onError: function(payload, error) {\n\n function itemExistInList(item, list) {\n for (var i = 0; i < list.length; i++) {\n if (...
javascript
chosen
[ { "from": "system", "value": "Check for TrackJs already loaded and if yes, reinitialize it. Fixed version.\n" }, { "from": "human", "value": "window._trackJs = {\n onError: function(payload, error) {\n\n function itemExistInList(item, list) {\n for (var i = 0; i < list.lengt...
javascript
chosen
[ { "from": "system", "value": "Tweak layout of export component\n" }, { "from": "human", "value": "import React from 'react';\nimport PropTypes from 'prop-types';\nimport Relay from 'react-relay/classic';\n\nconst exampleQuery = (slug) => `query {\n organization(slug: \"${slug}\") {\n auditEv...
javascript
chosen
[ { "from": "system", "value": "Fix lazy load of Cesium in examples\n" }, { "from": "human", "value": "(function() {\n const mode = window.location.href.match(/mode=([a-z0-9\\-]+)\\&?/i);\n const DIST = false;\n const isDev = mode && mode[1] === 'dev';\n const cs = isDev ? 'CesiumUnminified/Ce...
javascript
chosen
[ { "from": "system", "value": "Update how exact match is found\n" }, { "from": "human", "value": "import {find, isEqual, uniqueId} from 'lodash';\nimport getOptionLabel from './getOptionLabel';\n\n/**\n * Filter out options that don't match the input string or, if multiple\n * selections are allo...
javascript
chosen
[ { "from": "system", "value": "Set default jakefile task to 'test' so it gets executed by travis-ci.org\n" }, { "from": "human", "value": "/* globals desc:false, task: false, complete: fase, jake: false */\n(function (desc, task, complete, jake) {\n \"use strict\";\n\n desc('The default tas...
javascript
chosen
[ { "from": "system", "value": "Fix enter key on Collaborative Room selection.\n" }, { "from": "human", "value": "var mapSketcherClient;\njQuery(function() {\n jQuery.getJSON('/config.json', function(config) {\n config.hostname = window.location.hostname\n mapSketcherClient = new MapSketche...
javascript
chosen
[ { "from": "system", "value": "Use columns from source node\n" }, { "from": "human", "value": "'use strict';\n\nvar Node = require('../node');\n\nvar TYPE = 'buffer';\nvar PARAMS = {\n source: Node.PARAM.NODE,\n radio: Node.PARAM.NUMBER\n};\n\nvar Buffer = Node.create(TYPE, PARAMS);\n\nmodu...
javascript
chosen
[ { "from": "system", "value": "Change reload accelerator to Ctrl+R\n" }, { "from": "human", "value": "\"use strict\";\n\nconst electron = require(\"electron\");\nconst {app} = electron;\nconst {Menu} = electron;\nconst {BrowserWindow} = electron;\n\nmodule.exports.setDevMenu = function () {\n ...
javascript
chosen
[ { "from": "system", "value": "Add tests for all current list items\n" }, { "from": "human", "value": "describe('The List Page', () => {\n beforeEach(() => {\n cy.visit('/list.html')\n })\n it('successfully loads', () => {})\n context('navbar', () => {\n it(\"the 'Home' link works\", ()...
javascript
chosen
[ { "from": "system", "value": "Add search, delete and edit methods\n" }, { "from": "human", "value": "function NoteApplication (author) {\n\tthis.author = author;\n\tthis.notes = [];\n\n\tthis.create = function(note_content) {\n\t\tif (note_content.length > 0) {\n \t\tthis.notes.push(note_co...
javascript
chosen
[ { "from": "system", "value": "Determine preferred language and sanitizy stings\n" }, { "from": "human", "value": "angular.module('app').config(function ($translateProvider) {\n $translateProvider.useStaticFilesLoader({\n prefix: '/locale/locale-',\n suffix: '.json'\n });\n\n $translateP...
javascript
chosen
[ { "from": "system", "value": "Fix typo in reservation delete modal selector\n" }, { "from": "human", "value": "import { createSelector } from 'reselect';\n\nimport ActionTypes from 'constants/ActionTypes';\nimport ModalTypes from 'constants/ModalTypes';\nimport modalIsOpenSelectorFactory from 's...
javascript
chosen
[ { "from": "system", "value": "Make \"spam\" property on test User model a String.\n" }, { "from": "human", "value": "'use strict'\n\nlet imponderous = require('../../index')\n\nclass User extends imponderous.Model {\n static get schema () {\n return {\n name: {\n index: true\n ...
javascript
chosen
[ { "from": "system", "value": "Use env to find node\n" }, { "from": "human", "value": "#!/usr/bin/node\n\nvar convert = require('../'),\n localProj = require('local-proj'),\n fs = require('fs'),\n geojson = JSON.parse(fs.readFileSync(process.argv[2])),\n mtl = process.argv[3],\n mt...
javascript
chosen
[ { "from": "system", "value": "Create test for checking sent message\n" }, { "from": "human", "value": "var helpers = require('./../helpers.js')\n\nmodule.exports = {\n 'Test Sending Message' : function (browser) {\n helpers.setupTest(browser)\n helpers.enterText('textarea._1eY_aSnr3MDhZqa...
javascript
chosen
[ { "from": "system", "value": "Remove port file on kill\n" }, { "from": "human", "value": "#!/usr/bin/env node\n'use strict';\n\nvar net = require('net');\nvar fs = require('fs');\nvar eslint = require('eslint');\n\nvar engine = new eslint.CLIEngine();\nvar formatter = engine.getFormatter('compac...
javascript
chosen