conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Add ID and selected as UI properties. Add a missing save: true to items\n"
},
{
"from": "human",
"value": "define([], function(){\n return {\n \"name\": {\n \"default\": \"New Character\",\n \"save\": true\n },\n \"job\"... | javascript | chosen |
[
{
"from": "system",
"value": "Add whitespace for git's enjoyment\n"
},
{
"from": "human",
"value": "var express = require('express'),\napp = express(),\npath = require('path'),\nport = (process.argv[2] || 8000);\n\n\napp.get('/api/:file.json', function(req, res) {\n console.log(req.params.file)... | javascript | chosen |
[
{
"from": "system",
"value": "Convert Clone from object to function\n\nI find it really annoying that we have to do `NodeGit.Clone.clone` just\nto clone a repository. It would be much nicer to get a similar effect\nlike in C, where you can run `git_clone`. This copies over the effect\nof an object, but ac... | javascript | chosen |
[
{
"from": "system",
"value": "Add handler to print uncaught exceptions before exiting\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar log = require('./log');\n\nlog.info('node-boilerplate');\n\nmodule.exports.hello = function () {\n return 'world!';\n};\n"
},
{
"from": "gpt",... | javascript | chosen |
[
{
"from": "system",
"value": "Add export statement for all states\n\n"
},
{
"from": "human",
"value": "import FileMonitor from './FileMonitor';\nimport {\n BaseFileState,\n CombinedState\n} from './states';\n\nexport {\n FileMonitor,\n BaseFileState,\n CombinedState\n};\n"
},
{
"fro... | javascript | chosen |
[
{
"from": "system",
"value": "Test for existance of window\n"
},
{
"from": "human",
"value": "if (window.React) {\n module.exports = window.React;\n} else {\n module.exports = require('react');\n}"
},
{
"from": "gpt",
"value": "if (typeof window !== 'undefined' && window.React) {\n... | javascript | chosen |
[
{
"from": "system",
"value": "Fix a bug in findIn\n"
},
{
"from": "human",
"value": "findIn = function (someObject /*, target */) {\n var target = _.rest(arguments)\n var currentObject = someObject\n for(it = 0; it < target.length; it++) {\n if (!(currentObject = currentObject[target[it]])... | javascript | chosen |
[
{
"from": "system",
"value": "feat: Use InMemoryCache to reducve load on db\n"
},
{
"from": "human",
"value": "import { Observable } from 'rx';\n\nexport default function(Donation) {\n Donation.on('dataSourceAttached', () => {\n Donation.find$ = Observable.fromNodeCallback(Donation.find.bind... | javascript | chosen |
[
{
"from": "system",
"value": "Increase api connection timeout to 5s\n"
},
{
"from": "human",
"value": "'use strict';\n\nangular.module('myApp.apiService', [])\n .factory('Api', ['$http',\n function ($http) {\n return {\n\n env: 'production',\n\n options: ... | javascript | chosen |
[
{
"from": "system",
"value": "Correct language detection for Safari.\n"
},
{
"from": "human",
"value": "'use strict';\n\nangular.module('arachne.controllers')\n\n .controller('WelcomePageController', ['$rootScope', '$scope', '$http', 'arachneSettings', 'messageService', '$timeout',\n f... | javascript | chosen |
[
{
"from": "system",
"value": "Add file-loader for image resources\n"
},
{
"from": "human",
"value": "const path = require('path');\n\nconst ExtractTextPlugin = require('extract-text-webpack-plugin');\nconst webpack = require('webpack');\n\nmodule.exports = {\n entry: {\n vendor: './src/vendo... | javascript | chosen |
[
{
"from": "system",
"value": "Switch build type to UMD to support use in projects not using npm for package management.\n"
},
{
"from": "human",
"value": "var path = require('path');\nvar webpack = require('webpack')\n\nmodule.exports = {\n entry: {\n index: [\n './index.js'... | javascript | chosen |
[
{
"from": "system",
"value": "Remove bundle from dist since it gets copied in npm task\n"
},
{
"from": "human",
"value": "var jsxLoaders = ['babel-loader?stage=1'];\n\nmodule.exports = {\n cache: true,\n entry: './app',\n output: {\n filename: 'dist/bundle.min.js',\n filename: 'bundle.m... | javascript | chosen |
[
{
"from": "system",
"value": "Add global URL generator method\n"
},
{
"from": "human",
"value": "/////////////////////////////////////////////////////////////\n// init.js: Utility functions, Root Object definition //\n// //\n// In this... | javascript | chosen |
[
{
"from": "system",
"value": "Fix bad usage of Bacon\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst _ = require('lodash');\nconst cleverClient = require('clever-client');\n\nconst Logger = require('../logger.js');\nconst { conf, loadOAuthConf } = require('./configuration.js');\n\nfunc... | javascript | chosen |
[
{
"from": "system",
"value": "Add the real description to events in the ics feed.\n\nSigned-off-by: François de Metz <5187da0b934cc25eb2201a3ec9206c24b13cb23b@stormz.me>\n"
},
{
"from": "human",
"value": "var icalendar = require('icalendar');\n\nexports.generateIcal = function(boards) {\n var... | javascript | chosen |
[
{
"from": "system",
"value": "Allow user to put in access token\n"
},
{
"from": "human",
"value": "$(function(){\n\n var messages = [];\n var token = 'CAACEdEose0cBAPsc5EojEPsnGCVpG05fBKSV1N2WrZAJJ8ngZB55cAkWQA82ZBSaGbiOUOcI9rpRxMxT5kAjGmhhSSieTjtXFEuMYYOEtVIrFYC9ZCkuSSdT5P45ZBBvuniyPGZCZCFPDx... | javascript | chosen |
[
{
"from": "system",
"value": "Include tutorial reducers in root reducer\n"
},
{
"from": "human",
"value": "import { combineReducers } from 'redux';\nimport { routerReducer as routing } from 'react-router-redux';\nimport { verticalTreeData } from './verticalTreeReducers';\nimport userCode from '.... | javascript | chosen |
[
{
"from": "system",
"value": "Set libraryTarget to be commonjs2. Should fix the export.\n"
},
{
"from": "human",
"value": "{\n module.exports = {\n entry: \"./src/index.js\",\n output: {\n path: __dirname,\n filename: \"./dist/index.js\",\n libraryTarget: \"commonjs\",\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Remove webpack dev server definition\n"
},
{
"from": "human",
"value": "let webpack = require('webpack');\nlet path = require('path');\nmodule.exports = {\n entry: ['babel-polyfill', './source/client.js'],\n output: {\n filename: 'index.js',\n path: path.res... | javascript | chosen |
[
{
"from": "system",
"value": "Webpack: Add library target to run it in browser\n"
},
{
"from": "human",
"value": "const path = require('path');\nconst webpack = require('webpack');\n\nmodule.exports = {\n entry: {\n algorithms: './src/index.js',\n 'algorithms.min': './src/index.js'\n },\... | javascript | chosen |
[
{
"from": "system",
"value": "Use EventEmitter instead of Timer to load mainpage.js\n"
},
{
"from": "human",
"value": "'use strict';\n\n// This script will be invoked by `./loader.js` with `require` after the Discord App is loaded.\n\nconst path = require('path');\n\nconst electron = require('el... | javascript | chosen |
[
{
"from": "system",
"value": "Make tests work without using \"this\" to get the global object.\n"
},
{
"from": "human",
"value": "// Pulverize ES6 library features provided by the environment for testing\n\ndelete Object.is;\ndelete Object.assign;\ndelete Object.setPrototypeOf;\n\n// V8 throws a... | javascript | chosen |
[
{
"from": "system",
"value": "Add more detail to initialize include.\n\nChange-Id: I339e8e2a19e783dcf0b252e37b70b54910e55cc8\n"
},
{
"from": "human",
"value": "// Give the service worker access to Firebase Messaging.\n// Note that you can only use Firebase Messaging here, other Firebase librarie... | javascript | chosen |
[
{
"from": "system",
"value": "Add setters for render, create, destroy.\n"
},
{
"from": "human",
"value": "import { select } from \"d3-selection\";\n\nexport default function (tagName, className){\n var render = function(){};\n\n function component(selection, data){\n var components = select... | javascript | chosen |
[
{
"from": "system",
"value": "Make shadowbox a flex component\n"
},
{
"from": "human",
"value": "import styled from 'styled-components'\n\nexport default styled.div`\n border-radius: 2px;\n box-shadow: 0 1px 6px rgba(0, 0, 0, 0.12), 0 1px 4px rgba(0, 0, 0, 0.12);\n background-color: #ffffff;\... | javascript | chosen |
[
{
"from": "system",
"value": "Fix the UMD bundle that would still use modules\n"
},
{
"from": "human",
"value": "import babel from 'rollup-plugin-babel';\nimport nodeResolve from 'rollup-plugin-node-resolve';\nimport uglify from 'rollup-plugin-uglify';\nimport bundleSize from 'rollup-plugin-bund... | javascript | chosen |
[
{
"from": "system",
"value": "Clean up formatting, skip infinite loop of new tabs, avoid int.toString.\n"
},
{
"from": "human",
"value": "// This code is from Jorge Cardoso's blog at http://jorgecardoso.eu/htmlblog/2012-08-30-Listing%20a%20user%20directory%20with%20javascript%20in%20a%20Chrome%2... | javascript | chosen |
[
{
"from": "system",
"value": "Add property active to settings object\n"
},
{
"from": "human",
"value": "// scrollTrigger.js\n\n;(function($) {\n\n $.fn.scrollTrigger = function(options) {\n\n var settings = $.extend({\n offset: 60,\n target: this\n }, options),\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Use main file name as umd library name\n"
},
{
"from": "human",
"value": "const HtmlWebPackPlugin = require(\"html-webpack-plugin\")\n\nmodule.exports = {\n entry: {\n main: __dirname + \"/src/InfiniteAnyHeight.jsx\",\n },\n\n output: {\n filename: \"[name]... | javascript | chosen |
[
{
"from": "system",
"value": "Configure babel to only include files in the js directory.\n"
},
{
"from": "human",
"value": "const path = require('path')\n\n// commonjs module\nmodule.exports = {\n context: __dirname,\n entry: './js/ClientApp.js',\n devtool: 'eval',\n output: {\n path: pat... | javascript | chosen |
[
{
"from": "system",
"value": "Add About page to Webpack Dev server.\n"
},
{
"from": "human",
"value": "const HtmlWebpackPlugin = require('html-webpack-plugin');\n\nmodule.exports = {\n entry: './src/js/app.js',\n output: {\n path: __dirname + '/dist',\n filename: 'bundle.js'\... | javascript | chosen |
[
{
"from": "system",
"value": "Remove duplicate mongoldb env setting\n"
},
{
"from": "human",
"value": "\nvar all = {\n // define openshift runtime environment\n server: {\n port : process.env.OPENSHIFT_NODEJS_PORT || 8080,\n host : process.env.OPENSHIFT_NODEJS_IP || '127.0.0.... | javascript | chosen |
[
{
"from": "system",
"value": "Align with current sort behavior\n"
},
{
"from": "human",
"value": "import { sortByKey } from '../utils/model_utils';\nimport { RECEIVE_ARTICLES, SORT_ARTICLES } from '../constants';\n\nconst initialState = {\n articles: [],\n limit: 500,\n limitReached: false,\n... | javascript | chosen |
[
{
"from": "system",
"value": "Improve readability of hard-coded number\n"
},
{
"from": "human",
"value": "define([\n 'extensions/collections/matrix'\n],\nfunction (MatrixCollection) {\n var VisitorsRealtimeCollection = MatrixCollection.extend({\n\n apiName: \"realtime\",\n\n queryParams:... | javascript | chosen |
[
{
"from": "system",
"value": "Create a compound index for status and type\n"
},
{
"from": "human",
"value": "module.exports = [\n {\n collection: 'entries',\n spec: { locationId: 1 },\n options: {},\n },\n {\n collection: 'events',\n spec: { time: 1 },\n options: {},\n },\n... | javascript | chosen |
[
{
"from": "system",
"value": "Fix for the latest update.\n"
},
{
"from": "human",
"value": "// Originally found in JinsuNogi.\n\n// Description:\n// Automatically confirms the \"You cannot switch to another channel while in conversation with an NPC.\" error message when attempting to change chan... | javascript | chosen |
[
{
"from": "system",
"value": "Create newGame method within GameController.\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar app = angular.module('2048App', ['Game', 'Grid']);\n\n// Game Controller\napp.controller('GameController', ['GameManager', 'GridManager', function(GameManager, GridM... | javascript | chosen |
[
{
"from": "system",
"value": "Comment out encryption by default ine xample\n"
},
{
"from": "human",
"value": "\"use strict\";\n\nconst SqsConsumer = require('aws-sdk-ext').sqs.SqsConsumer,\n // SqsConsumer = require('../../lib').sqs.SqsConsumer,\n winston = require('winston'),\n promisify = r... | javascript | chosen |
[
{
"from": "system",
"value": "Change thumbnail load animation (Fade in fast)\n"
},
{
"from": "human",
"value": "/*global\n\t$\n*/\n$(document).ready(function () {\n\n\t'use strict';\n\n\tvar $grid = $('.grid'),\n\t\t$textItems = $grid.find('.grid-item');\n\n\t$grid = $('.grid').masonry({\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Move generated JS to public folder\n"
},
{
"from": "human",
"value": "module.exports = {\n entry: './src/app.js',\n output: {\n path: __dirname,\n filename: 'bundle.js'\n },\n module: {\n loaders: [\n {\n test: /\\.js$/,\n exclude: /n... | javascript | chosen |
[
{
"from": "system",
"value": "refactor(shape): Move fill method from Cursor to Shape"
},
{
"from": "human",
"value": "import Shape from 'kittik-shape-basic';\n\n/**\n * Implements rectangle shape with text support.\n *\n * @since 1.0.0\n * @version 1.0.0\n */\nexport default class Rectangle exte... | javascript | chosen |
[
{
"from": "system",
"value": "Remove imperative code in favor of declarative statements for building testsuite\n"
},
{
"from": "human",
"value": "const Testcase = require('./Testcase');\n\nclass Testsuite {\n constructor (id, result) {\n this.testsuite = [{\n _attr: {\n id,\n ... | javascript | chosen |
[
{
"from": "system",
"value": "[FEATURE] Monitor blockchain and record transactions in gatewayd.\n"
},
{
"from": "human",
"value": "placeholder\n"
},
{
"from": "gpt",
"value": "/*\n\n Run this deamon process alongside gatewayd:\n\n GATEWAYD_PATH=/path/to/gatewayd pm2 start deposit... | javascript | chosen |
[
{
"from": "system",
"value": "Allow `message` to be inherited from prototype\n"
},
{
"from": "human",
"value": "/*global define*/\n(function (root, factory) {\n if (typeof define === 'function' && define.amd) {\n // AMD. Register as an anonymous module.\n define([], factory)\n } else if ... | javascript | chosen |
[
{
"from": "system",
"value": "Enable nickname extension by default\n"
},
{
"from": "human",
"value": "configuration = { \n node_name: \"default\", // ensure this is unique in your cluster\n redis: { \n ip: '127.0.0.1', \n port: 6379, \n db: 1\n },\n servers: [ \n { type: 'tcp', ... | javascript | chosen |
[
{
"from": "human",
"value": "Add basic test for geojsonLayerController\n"
},
{
"from": "gpt",
"value": "'use strict';\n\nrequire('mocha-given')\nvar chai = require('chai')\nvar expect = chai.expect\nvar context = describe\nvar catchError = require('catch-error')\nvar sinon = re... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"fix: detect CSS tables\"\n\nThis reverts commit a40f4813185e77d53d856ce5f04fd964f53cbad9.\n"
},
{
"from": "human",
"value": "// @flow\nimport getComputedStyle from './getComputedStyle';\n\nexport default (element: Element): boolean =>\n getComputedStyle(el... | javascript | chosen |
[
{
"from": "system",
"value": "Check if argument provided is a plin object\n"
},
{
"from": "human",
"value": "module.exports = (function () {\r\n 'use strict';\r\n\r\n // Require dependencies\r\n var u = require('utils/index'),\r\n iterate = require('_iterator');\r\n\r\n /**\r\... | javascript | chosen |
[
{
"from": "system",
"value": "Refresh quotation_series field to show series"
},
{
"from": "human",
"value": "// Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors\n// License: GNU General Public License v3. See license.txt\n\n$.extend(cur_frm.cscript, {\n\tonload: function() {\n\... | javascript | chosen |
[
{
"from": "system",
"value": "Create an Angular Constant for vendor libraries' global variables.\n\nItem Y240 from John Papa style guide.\n"
},
{
"from": "human",
"value": "'use strict';\n\n/**\n * @ngdoc overview\n * @name pattyApp\n * @description\n * # pattyApp\n *\n * Main module of the appl... | javascript | chosen |
[
{
"from": "system",
"value": "Remove custom extend to use the one from Backbone\n"
},
{
"from": "human",
"value": "var _ = require('underscore'),\n Backbone = require('backbone'),\n ControlBones;\n\nControlBones = function(options) {\n var self = this;\n\n // Copy all options to object... | javascript | chosen |
[
{
"from": "system",
"value": "Add tests for printing Variables to tex\n"
},
{
"from": "human",
"value": "var Fraction = require('../src/fractions');\nvar Variable = require('../src/variables');\n\ndescribe(\"A variable\", function() {\n var x = new Variable(\"x\");\n\n it(\"is initalized w... | javascript | chosen |
[
{
"from": "system",
"value": "fix(paths): Rename test directory path into mocks\n"
},
{
"from": "human",
"value": "/*\n* This file is part of the easy framework.\n*\n* (c) Julien Sergent <sergent.julien@icloud.com>\n*\n* For the full copyright and license information, please view the LICENSE\n* ... | javascript | chosen |
[
{
"from": "system",
"value": "Prepend tests changed and new added\n"
},
{
"from": "human",
"value": "define([\n 'aux/prepend'\n], function (prepend) {\n describe('Check if the node element is added to the parent', function () {\n var ele = document.createElement('div'),\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Make namespacedDisplayName test look nicer\n"
},
{
"from": "human",
"value": "import {equal} from 'assert'\nimport namespacedDisplayName from './namespacedDisplayName'\n\ndescribe('namespacedDisplayName', () => {\n it('sets a namespaced displayName', () => {\n c... | javascript | chosen |
[
{
"from": "system",
"value": "Remove previously built version before running the test\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar Test = require('tape');\nvar Path = require('path');\nvar Fs = require('fs');\n\nprocess.env.CODE_MANAGER_HOST = 'http://localhost:3000';\nprocess.env.FRA... | javascript | chosen |
[
{
"from": "system",
"value": "Test travis fails with wrong test\n"
},
{
"from": "human",
"value": "const OrderLib = artifacts.require(\"OrderLib\");\nconst MarketContractOraclize = artifacts.require(\"MarketContractOraclize\");\nconst utility = require('./utility.js');\n\ncontract('OrderLib', fu... | javascript | chosen |
[
{
"from": "system",
"value": "Refactor test for new architecture\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar request = require('supertest')\nvar should = require('should')\nvar keys = require('../keys.js')\nvar providerGoogleContact = require('../lib/provider-google-contact/index.js'... | javascript | chosen |
[
{
"from": "system",
"value": "Fix some build issues when React is not included\n"
},
{
"from": "human",
"value": "/* eslint-disable */\n\nvar webpack = require('webpack');\n\nmodule.exports = {\n\toutput: {\n\t\tfilename: 'index.js',\n\t\tlibraryTarget: 'umd',\n\t\tlibrary: 'ReactCheckboxTree',\... | javascript | chosen |
[
{
"from": "system",
"value": "Fix some eslint import rules\n"
},
{
"from": "human",
"value": "module.exports = {\n // extending prettier fucks up my vim...\n extends: ['airbnb-base'],\n parser: 'typescript-eslint-parser',\n plugins: ['typescript', 'import'],\n rules: {\n 'class-methods-u... | javascript | chosen |
[
{
"from": "system",
"value": "Allow directive to be called recursively.\n"
},
{
"from": "human",
"value": "Application.Directives.directive(\"showTemplateDetails\", showTemplateDetailsDirective);\nfunction showTemplateDetailsDirective() {\n return {\n restrict: \"E\",\n replace:... | javascript | chosen |
[
{
"from": "system",
"value": "Add comment for polymorphic fix\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.MODEL_FACTORY_INJECTIO... | javascript | chosen |
[
{
"from": "system",
"value": "Fix tests path for Karma\n"
},
{
"from": "human",
"value": "module.exports = function(config) {\n var configuration = {\n basePath: '',\n frameworks: ['jasmine'],\n files: [\n 'lib/*.js',\n '*.js',\n 'test/*-s... | javascript | chosen |
[
{
"from": "system",
"value": "Use debug logs in karma\n"
},
{
"from": "human",
"value": "module.exports = config => {\n const browser = process.env.BROWSER || 'chrome';\n\n config.set({\n basePath: '',\n frameworks: ['browserify', 'jasmine'],\n files: [\n 'https://static.opentok.... | javascript | chosen |
[
{
"from": "system",
"value": "Fix typo in German translation\n"
},
{
"from": "human",
"value": "/* German translation for the jQuery Timepicker Addon */\n/* Written by Marvin */\n(function($) {\n\t$.timepicker.regional['de'] = {\n\t\ttimeOnlyTitle: 'Zeit Wählen',\n\t\ttimeText: 'Zeit',\n\t\thour... | javascript | chosen |
[
{
"from": "system",
"value": "Add Windows Phone to mobile\n\nAdd Windows Phone to mobile userAgents\n"
},
{
"from": "human",
"value": "Facebook = {};\n\n// Request Facebook credentials for the user\n//\n// @param options {optional}\n// @param credentialRequestCompleteCallback {Function} Callback... | javascript | chosen |
[
{
"from": "system",
"value": "Set example logLevel to 'info'\n"
},
{
"from": "human",
"value": "const iris = require('../index');\nconst dock = require('./docks/http');\nconst handler = require('./handlers/handler1');\nconst inputHook = require('./hooks/hook1');\nconst outputHook = require('./ho... | javascript | chosen |
[
{
"from": "system",
"value": "Add fin and rsv decoding\n"
},
{
"from": "human",
"value": "'use strict';\n\n/* lib/decode.js\n * Decode WebSocket message frames.\n * * */\n\nmodule.exports = function(raw){\n if (!(raw instanceof Buffer))\n raw = new Buffer(raw);\n\n let message = [],\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add sql mode, comment out other unused ones\n"
},
{
"from": "human",
"value": "/*\n Used as an entry file to generate vendor/brace.min.js\n*/\nvar brace = require('brace')\n\nrequire('brace/mode/c_cpp')\nrequire('brace/mode/javascript')\nrequire('brace/mode/json')\... | javascript | chosen |
[
{
"from": "system",
"value": "Fix function needFixImportNode to work with kitkat"
},
{
"from": "human",
"value": "function fix (template) {\n if (!template.content && window.HTMLTemplateElement && window.HTMLTemplateElement.decorate) {\n window.HTMLTemplateElement.decorate(template);\n }\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Use regular functions for loaders due to binding\n\nWebpack uses `this` here...\n"
},
{
"from": "human",
"value": "const loaderUtils = require('loader-utils');\n\nmodule.exports = (input) => {\n const { text } = loaderUtils.getOptions(this);\n\n return input + tex... | javascript | chosen |
[
{
"from": "system",
"value": "Add return value to ItemsFromDomExtractor and remove hard-coded className.\n"
},
{
"from": "human",
"value": "PinPoint.ItemsfromDomExtractor = function(targetName) {\n this.targetName = targetName;\n}\n\n// We'll need logic stating what className to use depending o... | javascript | chosen |
[
{
"from": "system",
"value": "Support for Lang in URL in Gfycat plugin"
},
{
"from": "human",
"value": "var hoverZoomPlugins = hoverZoomPlugins || [];\nhoverZoomPlugins.push({\n name:'gfycat.com',\n prepareImgLinks:function (callback) {\n $('a[href*=\"gfycat.com/\"]').one('mouseente... | javascript | chosen |
[
{
"from": "system",
"value": "Add a writer to stub loaded archive.\n"
},
{
"from": "human",
"value": "import DocumentArchive from './DocumentArchive'\nimport InMemoryDarBuffer from './InMemoryDarBuffer'\n\nexport default function loadArchive (rawArchive, config) {\n const archive = new Document... | javascript | chosen |
[
{
"from": "system",
"value": "Clone the form rather than edit the original\n"
},
{
"from": "human",
"value": "var formManager = formManager || {};\n\nvar forms = {};\n\nformManager.digestForms = function() {\n var key, form, formSelectorClass, targets;\n\n for (key in window.reforms) {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix typo in notification about completing signup\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport { Link } from 'react-router';\n\nconst SignUpComplete = () => {\n return (\n <div>\n <h2>Signed up!</h2>\n <p>You can now <Link to='/... | javascript | chosen |
[
{
"from": "system",
"value": "Remove old data retrieval, replace error condition\n"
},
{
"from": "human",
"value": "(function(env) {\n env.ddg_spice_meta_cpan = function(api_result) {\n \"use strict\";\n\n if (!(api_result && api_result.author && api_result.version)) {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add crash prevention when a name not does not have a patient event\n"
},
{
"from": "human",
"value": "import Realm from 'realm';\n\nexport class NameNote extends Realm.Object {\n get data() {\n try {\n return JSON.parse(this._data);\n } catch {\n //... | javascript | chosen |
[
{
"from": "system",
"value": "Create release artifacts on different branches\n"
},
{
"from": "human",
"value": "/* jslint node: true */\nmodule.exports = function (grunt) {\n if (process.env.APPVEYOR_REPO_BRANCH !== 'master' || !process.env.APPVEYOR_REPO_TAG) {\n grunt.log.writeln('The relea... | javascript | chosen |
[
{
"from": "system",
"value": "Fix Text From Erroring When No requestChange\n"
},
{
"from": "human",
"value": "let React = require(\"react\")\nlet {\n savedText,\n errorList,\n sizeClassNames,\n formGroupCx,\n label,\n} = require(\"../util.js\")\nlet {div, textarea} = React.DOM\nlet cx = req... | javascript | chosen |
[
{
"from": "system",
"value": "Add error on shared command aliases\n"
},
{
"from": "human",
"value": "'use babel';\n'use strict';\n\nimport CommandArray from './CommandArray';\n\nexport default class CommandRegistry extends Map\n{\n\tconstructor()\n\t{\n\t\tsuper();\n\t}\n\n\t// Complete registra... | javascript | chosen |
[
{
"from": "system",
"value": "Fix Edit Form opening (fixed a typo)\n"
},
{
"from": "human",
"value": "import EditFormRoute from 'prototype-ember-cli-application/routes/edit-form';\nimport Model from 'prototype-ember-cli-application/models/employee';\n\nexport default EditFormRoute.extend({\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add test for non cgbi files\n"
},
{
"from": "human",
"value": "var assert = require('assert');\nvar fs = require('fs');\nvar cgbiToPng = require('../index');\nvar tmp = require('tmp');\n\nvar filePath = './test/cgbi-image.png';\nvar tempFilePath = tmp.tmpNameSync();... | javascript | chosen |
[
{
"from": "system",
"value": "/jserror: Refactor to handle errors better\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst log4js = require('log4js');\nconst clientLogger = log4js.getLogger('client');\nconst formidable = require('formidable');\nconst apiHandler = require('../../handler/A... | javascript | chosen |
[
{
"from": "system",
"value": "Add home screen issue note\n"
},
{
"from": "human",
"value": "import { createBrowserHistory, createHashHistory } from 'history'\n\nexport default function configureHistory() {\n return window.matchMedia('(display-mode: standalone)').matches\n ? createHashHistory... | javascript | chosen |
[
{
"from": "system",
"value": "[IE9] Check for console before using console.warn\n"
},
{
"from": "human",
"value": "export default function deprecationWarning(oldname, newname, link) {\n if (process.env.NODE_ENV !== 'production') {\n let message = `${oldname} is deprecated. Use ${newname} ins... | javascript | chosen |
[
{
"from": "system",
"value": "[FIX] Rename controller files and use correct resource routes\n"
},
{
"from": "human",
"value": "const requireAll = require('require-all');\nconst express = require('express');\nconst controllers = requireAll(__dirname+'/../controllers/resources/');\n\nvar router = ... | javascript | chosen |
[
{
"from": "system",
"value": "Enable list support in state persist helper\n"
},
{
"from": "human",
"value": "import Storage from 'store2';\n\n/**\n * @param {String} ns Local storage namespace\n * @param {String[]} persistMutations\n * @return {function(...[*]=)} Vuex plugin\n */\nexport default... | javascript | chosen |
[
{
"from": "system",
"value": "Add check for DOM ready in init script\n"
},
{
"from": "human",
"value": "(function() {\n\n var app;\n \n var getApplication = function() {\n return app;\n };\n \n var shutDown = function() {\n lowland.ObjectManager.dispose();\n };\n \n var startUp = ... | javascript | chosen |
[
{
"from": "system",
"value": "Add \"events\" module to Rollup's external dependencies\n"
},
{
"from": "human",
"value": "const babel = require('rollup-plugin-babel')\nconst resolve = require('rollup-plugin-node-resolve')\nconst resolveCommonJS = require('rollup-plugin-commonjs')\n\n/**\n * Rollu... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"Moving to localhost for testing\"\n\nThis reverts commit 19e27ec078033c5ffe7b982ddc46e9426b48209c.\n"
},
{
"from": "human",
"value": "// Load in modules\nvar fs = require('fs');\nglobal.fs = fs;\nglobal.assert = require('assert');\nglobal.request = require(... | javascript | chosen |
[
{
"from": "system",
"value": "Add <ES5 test for isArray\n"
},
{
"from": "human",
"value": "'use strict';\n\n/* global describe, it, require */\n'use strict';\n\nvar isArray = require('../../../src/utils/is_array.js');\n\ndescribe('is_array.js public API', function() {\n it('should positively id... | javascript | chosen |
[
{
"from": "system",
"value": "Add To Submit Test For Vertical Layout\n"
},
{
"from": "human",
"value": "/* global describe, it, beforeEach */\n\nimport React from 'react'\nimport { expect } from 'chai'\nimport { mount } from 'enzyme'\nimport Submit from '../../src/js/components/submit'\n\nconst ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix index load sanity check using the wrong string\n"
},
{
"from": "human",
"value": "import { toHaveNoViolations } from \"jest-axe\";\n\nexpect.extend(toHaveNoViolations);\n\njest.setTimeout(10000);\n\ndescribe(\"/\", () => {\n let page;\n beforeAll(async () => {... | javascript | chosen |
[
{
"from": "system",
"value": "Remove useless cloning of cached node\n"
},
{
"from": "human",
"value": "/**\n * Module dependencies.\n */\n\nvar crypto = require('crypto');\n\nvar MemoryCache = module.exports = function() {\n this._cache = {};\n};\n\n/**\n * Set cache item with given `key` to `v... | javascript | chosen |
[
{
"from": "system",
"value": "Test that a BigInt does not equal the equivalent number\n\nhttps://github.com/unexpectedjs/unexpected/pull/674#discussion_r359075318\n"
},
{
"from": "human",
"value": "/* global expect, BigInt */\nif (typeof BigInt === 'function') {\n describe('BigInt type', () => ... | javascript | chosen |
[
{
"from": "system",
"value": "Change test reporter to something more compact\n"
},
{
"from": "human",
"value": "const gulp = require('gulp');\nconst bump = require('gulp-bump');\nconst eslint = require('gulp-eslint');\nconst mocha = require('gulp-mocha');\nconst fs = require('fs');\n\nexports.bu... | javascript | chosen |
[
{
"from": "system",
"value": "Change d to v, add verbose alias\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\n\nconst yargs = require('yargs');\n\n// ./modules\nconst rocketLaunch = require('./modules/rocketLaunch');\nconst info = require('./modules/info');\nconst settings = require('./... | javascript | chosen |
[
{
"from": "system",
"value": "Remove unused dependencies from Webapp\n\nFixes #3753\n"
},
{
"from": "human",
"value": "Package.describe({\n summary: \"Serves a Meteor app over HTTP\",\n version: '1.1.7-winr.6'\n});\n\nNpm.depends({connect: \"2.9.0\",\n send: \"0.1.4\",\n ... | javascript | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.