conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Make jest does not watch .json file in the --watch mode\n"
},
{
"from": "human",
"value": "module.exports = {\n rootDir: __dirname,\n setupFilesAfterEnv: ['<rootDir>/test/unit.setup.js'],\n modulePathIgnorePatterns: ['.cache'],\n testMatch: ['/**/__tests__/**/*.... | javascript | chosen |
[
{
"from": "system",
"value": "Use proper Mongo collection name.\n"
},
{
"from": "human",
"value": "Categories = new Mongo.Collection(\"communities\");\n\nCategory = Astro.Class({\n name: 'Category',\n collection: Categories,\n fields: {\n name: {\n type: 'string',\n validator: [\... | javascript | chosen |
[
{
"from": "system",
"value": "Support all modules in ESM babel preset\n"
},
{
"from": "human",
"value": "const { extname, dirname, join, relative } = require('path');\nconst finder = require('find-package-json');\n\nmodule.exports = (originalPath, filePath) => {\n // FIXME For now in ESM we nee... | javascript | chosen |
[
{
"from": "system",
"value": "Fix many ESLint errors (STRIPES-100)\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport css from './ListDropdown.css';\nimport List from '@folio/stripes-components/lib/List';\nimport TextField from '@folio/stripes-components/lib/TextField';\nimpor... | javascript | chosen |
[
{
"from": "system",
"value": "Add Etherscan list txs unused address test\n"
},
{
"from": "human",
"value": "// Import AVA\nimport test from 'ava'\n\n// Imports\nimport sleep from '../../../src/util/sleep'\nimport Client from '../../../src/client/etherscan'\n\n// Test data\nconst testAddress = '0... | javascript | chosen |
[
{
"from": "system",
"value": "Change name of directive from property-measurements to process-measurements since the process is taking the measurements. Have the measurements for any process displayed just as the process-setup directive does.\n"
},
{
"from": "human",
"value": "import './check-md-... | javascript | chosen |
[
{
"from": "system",
"value": "Handle 'paste' that does not trigger its event.\n"
},
{
"from": "human",
"value": "/**\n * @class CM_FormField_Password\n * @extends CM_FormField_Text\n */\nvar CM_FormField_Password = CM_FormField_Text.extend({\n _class: 'CM_FormField_Password',\n\n _visibilityDe... | javascript | chosen |
[
{
"from": "system",
"value": "Fix distribution name when distribution is non vector\n"
},
{
"from": "human",
"value": "import React, { Component } from 'react'\nimport Accordion from '../Accordion/Accordion'\nimport CheckItem from './CheckItem'\n\nclass DatasetDataAvailability extends Component ... | javascript | chosen |
[
{
"from": "system",
"value": "Add custom log level to cli\n"
},
{
"from": "human",
"value": "import readline from 'readline'\nimport { EventEmitter } from 'events'\nimport l from 'chalk-log'\n\nconst rl = readline.createInterface({\n\tinput: process.stdin,\n\toutput: process.stdout,\n\tterminal:... | javascript | chosen |
[
{
"from": "system",
"value": "Move control panel title into a variable\n\nThis sets me up for more\n"
},
{
"from": "human",
"value": "/** @jsx REACT.DOM */\nimport React from 'react';\n\nexport default React.createClass({\n render: function () {\n return (\n <div className=\"control-pan... | javascript | chosen |
[
{
"from": "system",
"value": "Remove deprecated fa- prefix from LM icons\n"
},
{
"from": "human",
"value": "import Ember from 'ember';\nimport layout from '../templates/components/lm-type-icon';\n\nconst { computed } = Ember;\n\nexport default Ember.Component.extend({\n layout,\n listItem: fal... | javascript | chosen |
[
{
"from": "system",
"value": "Enable query params in Ember canary\n"
},
{
"from": "human",
"value": "/* jshint node: true */\n\nmodule.exports = function(environment) {\n var ENV = {\n environment: environment,\n baseURL: '/',\n locationType: 'auto',\n EmberENV: {\n FEATURES: {... | javascript | chosen |
[
{
"from": "system",
"value": "Use double quotes in test code\n"
},
{
"from": "human",
"value": "/* jshint browser:true */\n/* jshint node:true */\n\n// object with \"eval\" key\nvar obj = {\n\teval: function (str) {\n\t\treturn str;\n\t},\n\twrapper: function (str) {\n\t\t// method calling \"eva... | javascript | chosen |
[
{
"from": "system",
"value": "Add spoof user-agent to temporarilly fix WebView issue\n"
},
{
"from": "human",
"value": "// @flow\nimport React from 'react'\nimport {\n WebView,\n View,\n ActivityIndicator,\n Modal\n} from 'react-native'\nimport { constants, loader } from '../../style'\ntype ... | javascript | chosen |
[
{
"from": "system",
"value": "[vision] Clone client on startup to prevent us from configuring the main studio client\n"
},
{
"from": "human",
"value": "import React from 'react'\nimport client from 'part:@sanity/base/client'\nimport Button from 'part:@sanity/components/buttons/default'\nimport s... | javascript | chosen |
[
{
"from": "system",
"value": "Allow object literals to be IDisposable\n\nRELNOTES[INC]: goog.disposable.IDisposable is now @record\n\n-------------\nCreated by MOE: https://github.com/google/moe\nMOE_MIGRATED_REVID=129902477\n"
},
{
"from": "human",
"value": "// Copyright 2011 The Closure Librar... | javascript | chosen |
[
{
"from": "system",
"value": "Use InlineDAOControllerView as the default view for DAO properties.\n"
},
{
"from": "human",
"value": "/**\n * @license\n * Copyright 2016 Google Inc. All Rights Reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use ... | javascript | chosen |
[
{
"from": "system",
"value": "feat: Add trap tab key for table cell menu \n\n"
},
{
"from": "human",
"value": "import Ember from 'ember';\n\nexport default Ember.Component.extend({\n tagName: 'tr',\n attributeBindings: ['tabindex'],\n\n click () {\n this.sendAction('action', this.get('expe... | javascript | chosen |
[
{
"from": "system",
"value": "Update AccordionItemBody to respect arbitrary user-defined props\n"
},
{
"from": "human",
"value": "// @flow\n\nimport React from 'react';\nimport type { Node } from 'react';\nimport classNames from 'classnames';\nimport { inject, observer } from 'mobx-react';\nimpo... | javascript | chosen |
[
{
"from": "system",
"value": "Use backticks onstead of quotes\n"
},
{
"from": "human",
"value": "const isString = require(`./isString`)\nconst compact = require(`./compact`)\n\nmodule.exports = function transformClassName (className) {\n if (isString(className)) {\n return className\n } els... | javascript | chosen |
[
{
"from": "system",
"value": "Add self instantiation, prevents possible reference conflicts\n"
},
{
"from": "human",
"value": "/**\n * Module dependencies\n */\n\nvar assert = require('assert');\n\n/**\n * Expose 'foyer'\n */\n\nmodule.exports = foyer;\n\n/**\n * Foyer\n *\n * @param {Function[]... | javascript | chosen |
[
{
"from": "system",
"value": "Support use as a `dependency` of an addon\n\nWe have an internal addon which is used by a number of applications and\nI wanted to be able to specify `ember-chrome-devtools` as a `dependency`\n(not `devDependency`) of that addon and have the goodness that it\nbrings in all of ou... | javascript | chosen |
[
{
"from": "system",
"value": "Replace arrow notation with es5 standard function mapping to allow for wider compatibility;\n"
},
{
"from": "human",
"value": "var assign = Object.assign || require('object-assign')\nvar Promise = Promise || require('promise')\nvar denodeify = require('es6-denodeify... | javascript | chosen |
[
{
"from": "system",
"value": "Add lookup settings for customer in groupedit\n"
},
{
"from": "human",
"value": "import Ember from 'ember';\nimport EditFormController from './edit-form';\n\nexport default EditFormController.extend({\n // Caption of this particular edit form.\n title: 'Employee',... | javascript | chosen |
[
{
"from": "system",
"value": "Fix for test failure: encoding to UTF-16 is implementation dependent, output may be either big or little endian. Therefore, encode explicitly to UTF-16LE.\n"
},
{
"from": "human",
"value": "var Iconv = require('iconv').Iconv,\n assert = require('assert');\n\nvar i... | javascript | chosen |
[
{
"from": "system",
"value": "Use this.import instead of app.import\n"
},
{
"from": "human",
"value": "/* jshint node: true */\n// jscs: disable\n'use strict';\n\nmodule.exports = {\n name: 'ember-l10n',\n\n isDevelopingAddon: function() {\n // @see: https://ember-cli.com/extending/#link-to... | javascript | chosen |
[
{
"from": "system",
"value": "Increase new relic priority in loading.\n"
},
{
"from": "human",
"value": "// # Ghost Startup\n// Orchestrates the startup of Ghost when run from command line.\nvar express,\n ghost,\n parentApp,\n errors;\n\n// Make sure dependencies are installed and file... | javascript | chosen |
[
{
"from": "system",
"value": "Make styles-serving hack more specific\n\nDocument hack\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar express = require('express');\nvar favicon = require('serve-favicon');\nvar path = require('path');\n\nmodule.exports = function(app, baseDir, config) {\n... | javascript | chosen |
[
{
"from": "system",
"value": "Use global instead of window\n"
},
{
"from": "human",
"value": "/**\n * Create a blob builder even when vendor prefixes exist\n */\n\nvar BlobBuilder = window.BlobBuilder\n || window.WebKitBlobBuilder\n || window.MSBlobBuilder\n || window.MozBlobBuilder;\n\n/**\n... | javascript | chosen |
[
{
"from": "system",
"value": "Improve logging messages and simplify functions in Reciever\n"
},
{
"from": "human",
"value": "var events = require(\"events\");\nvar io = require('socket.io-client');\n\nvar Receiver = function () {};\nReceiver.prototype = new events.EventEmitter;\n\nReceiver.proto... | javascript | chosen |
[
{
"from": "system",
"value": "Make the propTypes removal explicit.\n\nSee:\nhttps://github.com/oliviertassinari/babel-plugin-transform-react-remove-prop-types#with-comment-annotation\n"
},
{
"from": "human",
"value": "import React, { Fragment } from 'react'\nimport PropTypes from 'prop-types'\ni... | javascript | chosen |
[
{
"from": "system",
"value": "Fix a copy and paste error"
},
{
"from": "human",
"value": "/* @flow */\n\nimport ConversionContext from './ConversionContext';\n\nexport type Options = {\n ignore?: boolean;\n assert?: boolean;\n warn?: boolean;\n annotate?: boolean;\n suppressComments?: strin... | javascript | chosen |
[
{
"from": "system",
"value": "Update usage of recomputeDenormalizedValues to named params\n"
},
{
"from": "human",
"value": "import { registerMigration } from './migrationUtils';\nimport { recomputeDenormalizedValues } from '../scripts/recomputeDenormalized';\n\nregisterMigration({\n name: \"fi... | javascript | chosen |
[
{
"from": "system",
"value": "Replace iterator utils with composite API\n\nUses the new composite migration iterator instead of a few utility\nfunctions.\n"
},
{
"from": "human",
"value": "// @flow\nimport { Composite, Pointer } from '@mytosis/types';\n\ntype GraphEntryPoints = {\n [title: stri... | javascript | chosen |
[
{
"from": "system",
"value": "Add tests of username validation on sign in page.\n"
},
{
"from": "human",
"value": "import { mount } from '@vue/test-utils';\nimport SignInPage from '../../src/views/SignInPage';\nimport makeStore from '../makeStore';\n\njest.mock('kolibri.urls');\n\nfunction makeW... | javascript | chosen |
[
{
"from": "system",
"value": "Add back in analytics for modals.\n"
},
{
"from": "human",
"value": "/**\n * @module Analytics\n * Uses Google Analytics custom events API to fire events for client-side\n * Modal and Form Validation flows.\n */\ndefine([\"neue/events\"], function(Events) {\n \"use... | javascript | chosen |
[
{
"from": "system",
"value": "Use defaultIsVisible prop as default value\n"
},
{
"from": "human",
"value": "import { TOGGLE_VISIBILITY } from './actions';\n\nfunction toggleVisibility(props, state = false, action) {\n return action.type === TOGGLE_VISIBILITY ? !state : state\n}\n\nexport defaul... | javascript | chosen |
[
{
"from": "system",
"value": "Use more correct variable name.\n"
},
{
"from": "human",
"value": "const { isInteger } = require(\"lodash\");\n\nconst render = require(\"./render\");\nconst toPromise = require(\"./consumers/promise\");\nconst toNodeStream = require(\"./consumers/node-stream\");\n\... | javascript | chosen |
[
{
"from": "system",
"value": "Put the `key` on the right element, to shut up React.\n"
},
{
"from": "human",
"value": "import React, { PropTypes } from 'react';\nimport slug from 'slug';\n\nexport default class MapPOILegend extends React.Component {\n\n\tconstructor (props) {\n\t\tsuper(props);\... | javascript | chosen |
[
{
"from": "system",
"value": "Add another tacky workaround for value getting escaped by DOM.\n"
},
{
"from": "human",
"value": "\"use strict\";\n\nangular.module(\"hikeio\").\n\tdirective(\"preloadResource\", [\"resourceCache\", function(resourceCache) {\n\t\treturn {\n\t\t\tlink: function (scop... | javascript | chosen |
[
{
"from": "system",
"value": "Implement the function to close modal with ESC key\n"
},
{
"from": "human",
"value": "// @flow\nimport * as React from 'react'\nimport styled from 'styled-components'\nimport LazyImg from './LazyImg'\n\ntype Props = {\n from: string,\n original: string,\n width: ... | javascript | chosen |
[
{
"from": "system",
"value": "Add performance monitoring for Best Of\n"
},
{
"from": "human",
"value": "import { dbAdapter } from '../../../models'\nimport { reportError } from '../../../support/exceptions'\nimport { serializePostsCollection } from '../../../serializers/v2/post';\n\nexport defau... | javascript | chosen |
[
{
"from": "system",
"value": ":bug: Fix static css source map\n"
},
{
"from": "human",
"value": "// @flow\n\nimport path from 'path'\nimport invariant from 'assert'\nimport { createChunkGenerator, getFileKey } from 'pundle-api'\n\nimport manifest from '../package.json'\n\nfunction createComponen... | javascript | chosen |
[
{
"from": "system",
"value": "Fix forgot to make coffeescript :-)\n"
},
{
"from": "human",
"value": "// Generated by CoffeeScript 1.9.3\n(function() {\n var $, Radio, initCordova;\n\n $ = require('jquery');\n\n Radio = require('backbone.radio');\n\n initCordova = function() {\n var eventN... | javascript | chosen |
[
{
"from": "system",
"value": "Add default value to convertDelayToSeconds\n"
},
{
"from": "human",
"value": "const mimeTypeRegex = /^[\\w+-\\.]+\\/[\\w+-\\.]+/;\n\nexport function getContentType(value = '') {\n const contentType = value.match(mimeTypeRegex);\n\n return contentType ? contentType... | javascript | chosen |
[
{
"from": "system",
"value": "Add AI.reset to reset libraries in AI scope\n"
},
{
"from": "human",
"value": "'use strict';\n\n// Autogenerated code\nrequire('_generated');\n\nfor (var i in AI.extensions.library) {\n for (var j in AI.extensions.library[i]) {\n AI[j] = AI.extensions.libr... | javascript | chosen |
[
{
"from": "system",
"value": "Add task done callback on BrowserSync task\n"
},
{
"from": "human",
"value": "const path = require('path');\nconst _ = require('lodash');\nconst httpProxy = require('http-proxy-middleware');\n\nconst setup = require('setup/setup');\n\nmodule.exports = function() {\n... | javascript | chosen |
[
{
"from": "system",
"value": "Fix XHR login on Firebase hosting\n"
},
{
"from": "human",
"value": "import { ValidationError } from '../lib/validation';\n\nexport const LOGIN_ERROR = 'LOGIN_ERROR';\nexport const LOGIN_START = 'LOGIN_START';\nexport const LOGIN_SUCCESS = 'LOGIN_SUCCESS';\nexport c... | javascript | chosen |
[
{
"from": "system",
"value": "Delete not needed nested block"
},
{
"from": "human",
"value": "/*\n * This file is part of the WordPress Standard project.\n *\n * Copyright (c) 2015-2016 LIN3S <info@lin3s.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * fil... | javascript | chosen |
[
{
"from": "system",
"value": "Fix bug for IE (firefox can deal with anonymous node for null, not ie)\n\ngit-svn-id: 4cd2d1688610a87757c9f4de95975a674329c79f@740 b8ca103b-dd03-488c-9448-c80b36131af2\n"
},
{
"from": "human",
"value": "var XML = {\n serialize:function(el){\n if(window.XMLSeriali... | javascript | chosen |
[
{
"from": "system",
"value": "Remove unnecessary Webpack module testing\n"
},
{
"from": "human",
"value": "const path = require('path');\n\nmodule.exports = {\n mode: 'production',\n output: {\n filename: 'index.js',\n libraryTarget: 'umd',\n library: 'ReactDualListBox... | javascript | chosen |
[
{
"from": "system",
"value": "Remove the whitespace in the render method of the ProgressStep component\n"
},
{
"from": "human",
"value": "import React, { PureComponent } from 'react';\nimport PropTypes from 'prop-types';\nimport cx from 'classnames';\nimport theme from './theme.css';\n\nimport B... | javascript | chosen |
[
{
"from": "system",
"value": "Add index to Ember's PlaylistEntry model.\n"
},
{
"from": "human",
"value": "import Model from 'ember-data/model';\nimport {belongsTo} from 'ember-data/relationships';\nimport attr from 'ember-data/attr';\n\nexport default Model.extend({\n\n playlist: belongsTo('pl... | javascript | chosen |
[
{
"from": "system",
"value": "Add ML model loading in Chrome extension\n"
},
{
"from": "human",
"value": "const tokenizerPath = chrome.runtime.getURL('tokenizer.json');\n\nasync function main() {\n // Load tokenizer dictionary\n const tokenizerResponse = await fetch(tokenizerPath);\n const to... | javascript | chosen |
[
{
"from": "system",
"value": "Fix problem with ids setTimeout call.\n"
},
{
"from": "human",
"value": "var IdsFetcher = function() {\n this.fetch_ids = function() {\n var request = new XMLHttpRequest();\n\n request.onload = this.ids_loaded;\n\n request.open(\"GET\", \"http://\" + $('#s... | javascript | chosen |
[
{
"from": "system",
"value": "Use unread announcement lookup as Immutable object\n"
},
{
"from": "human",
"value": "import Immutable from 'immutable'\nimport { createSelector } from 'reselect'\n\nexport const selectAnnouncementCollection = state => state.json.get('announcements', Immutable.Map()... | javascript | chosen |
[
{
"from": "system",
"value": "welcome: Format the source of the help prose a bit better.\n\nTemplate literals FTW.\n\nI'd like to keep all the lines to a reasonable length for reading the\nsource... but unfortunately even single newlines get displayed\nliterally. Still, this is much closer.\n"
},
{
... | javascript | chosen |
[
{
"from": "system",
"value": "Update Speed 'out of range or invalid' error\n"
},
{
"from": "human",
"value": "var HyperdeckCore = require(\"./hyperdeck-core.js\");\n\n\nvar Hyperdeck = function(ip) {\n //Start by connecting to Hyperdeck via HypderdeckCore\n var Core = new HyperdeckCore(ip);\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix variable name: \"result\" instead of \"value\"\n\nBug introduced during previous refactoring, when after inlining\na function into scope().\n"
},
{
"from": "human",
"value": "// Level 2\n// Static synchronous definition in a private context shared by all modules... | javascript | chosen |
[
{
"from": "system",
"value": "Update from small pipeline changes\n"
},
{
"from": "human",
"value": "/*global define*/\ndefine([], function() {\n 'use strict';\n\n /**\n * Utility function for retrieving the number of components in a given type.\n * As per the spec:\n * 'SCA... | javascript | chosen |
[
{
"from": "system",
"value": "Add fling to channel object.\n"
},
{
"from": "human",
"value": "'use strict';\n/* jshint -W074 */\n\nconst network = require('./network');\nconst runtime = require('./runtime');\n\nclass ChannelDelegate {\n\n static create (name, options, context) {\n options = ... | javascript | chosen |
[
{
"from": "system",
"value": "Add netlify badge to qualify for open source plan"
},
{
"from": "human",
"value": "import React from 'react';\nimport { Container, Row, Col } from 'reactstrap';\n\nexport default () => {\n return (\n <div className=\"footer\">\n <Container>\n <Row>\n... | javascript | chosen |
[
{
"from": "system",
"value": "Load BrowserHistory adapter in production, HashHistory on webpack-dev-server\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport ReactDOM from 'react-dom';\nimport {Router, Route} from 'react-router';\nimport { history } from 'react-router/lib/Hash... | javascript | chosen |
[
{
"from": "system",
"value": "Use route instead of resource for route URLs\n"
},
{
"from": "human",
"value": "import Ember from 'ember';\nimport config from './config/environment';\n\nvar Router = Ember.Router.extend({\n location: config.locationType\n});\n\nRouter.map(function() {\n this.reso... | javascript | chosen |
[
{
"from": "system",
"value": "Add support for looking up all subscriptions on a specific release note.\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst BaseRepository = require('@gfcc/mongo-tenant-repository/BaseRepository');\n\nclass SubscriptionRepository extends BaseRepository {\n g... | javascript | chosen |
[
{
"from": "system",
"value": "Revert change to chrome app code (not needed anymore).\n"
},
{
"from": "human",
"value": "// Copyright (c) 2014 The Chromium OS Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\... | javascript | chosen |
[
{
"from": "system",
"value": "Set up views to be month and week only\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport BigCalendar from 'react-big-calendar';\nimport moment from 'moment';\nimport 'react-big-calendar/lib/css/react-big-calendar.css'\nBigCalendar.setLocalizer(\n... | javascript | chosen |
[
{
"from": "system",
"value": "Remove doubbled register and move cb outside of register function\n"
},
{
"from": "human",
"value": "var $ = require('jquery')\n\nmodule.exports = tabbedMenu\n\nfunction tabbedMenu (compiler, loadingSpinner, self) {\n $('#options li').click(function (ev) {\n var... | javascript | chosen |
[
{
"from": "system",
"value": "Refactor logic to a separate function\n"
},
{
"from": "human",
"value": "import _ from 'lodash';\nimport React from 'react';\n\nexport default function canBeAsserted(vdom) {\n return _.all([].concat(vdom), node =>\n React.isValidElement(node) ||\n (... | javascript | chosen |
[
{
"from": "system",
"value": "Remove methods left over from previous pipedprovider mechanism\n"
},
{
"from": "human",
"value": "/*\n * Copyright 2014-2015 Fabian Tollenaar <fabian@starting-point.nl>\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use thi... | javascript | chosen |
[
{
"from": "system",
"value": "Fix new test for latest help style\n"
},
{
"from": "human",
"value": "var program = require('../')\n , should = require('should');\n\nprogram\n .name('test')\n .command('info [options]')\n\nprogram.commands[0].helpInformation().should.startWith('\\n Usage: test ... | javascript | chosen |
[
{
"from": "system",
"value": "Use defaultValue for section name as we're only taking it onBlur\n"
},
{
"from": "human",
"value": "require('./Section.css')\n\nvar React = require('react')\n\nvar Button = require('./Button')\nvar MarkdownArea = require('./MarkdownArea')\nvar IdeasStore = require('... | javascript | chosen |
[
{
"from": "system",
"value": "Add to DI Gravatar provider\n"
},
{
"from": "human",
"value": "// js/controllers/users-index-controller\n\n(function() {\n \"use strict\";\n\n angular.module(\"NoteWrangler\")\n .controller(\"UsersIndexController\", UsersIndexController);\n\n UsersIndexControl... | javascript | chosen |
[
{
"from": "system",
"value": "Support usage when size = 0\n\nI got an error when encoding an empty message (`{}`).\r\nWhen the message is empty, the size is 0 and `slab` is null, so`slice.call(slab, offset, offset += size);` gave me\r\n```\r\nUncaught TypeError: Method get TypedArray.prototype.subarray cal... | javascript | chosen |
[
{
"from": "system",
"value": "Fix serialization of Dates in user and playlist objects\n"
},
{
"from": "human",
"value": "'use strict';\n\n/**\n * @param {import('../models').Playlist} model\n */\nfunction serializePlaylist(model) {\n return {\n _id: model.id || model._id.toString(),\n nam... | javascript | chosen |
[
{
"from": "system",
"value": "Add tinymce js to admin\n"
},
{
"from": "human",
"value": "//= require jquery\n//= require jquery.ui.all\n//= require jquery_ujs\n//= require jquery-fileupload/basic\n//= require lightbox\n//= require custom_selector\n//= require custom_file_input\n//= require lazy/... | javascript | chosen |
[
{
"from": "system",
"value": "Use this instead of $scope. Use of plugin with multiple editors.\n"
},
{
"from": "human",
"value": "angular.module('ngWig')\n .config(['ngWigToolbarProvider', function(ngWigToolbarProvider) {\n ngWigToolbarProvider.addCustomButton('clear-styles', 'nw-clear-style... | javascript | chosen |
[
{
"from": "system",
"value": "Refresh page after user creation\n"
},
{
"from": "human",
"value": "function viewUsers(view) {\n\n getUsers(\n success = function (data) {\n //console.log(data);\n populateUsersTable(data);\n },\n error = function (jqxhr) {\n handleApiError(... | javascript | chosen |
[
{
"from": "system",
"value": "Use shortcode instead of loginid\n"
},
{
"from": "human",
"value": "import Client from '_common/base/client_base';\n\nexport const isClientAllowedToVisit = () => !Client.isLoggedIn() || Client.get('is_virtual') ||\n /^CR/.test(Client.get('loginid'));\n"
},
{
... | javascript | chosen |
[
{
"from": "system",
"value": "Fix another regression in the architect test dummy\n"
},
{
"from": "human",
"value": "\"use blacklist\";\n\n/**\n * Bogus plugin. Circularity ftw.\n */\ndefine(function(require, exports, module) {\n \"use strict\";\n\n main.consumes = [\n \"Plugin\", \"... | javascript | chosen |
[
{
"from": "system",
"value": "Disable stomp debug in production\n"
},
{
"from": "human",
"value": "import SockJS from 'sockjs-client'\nimport Stomp from 'webstomp-client'\nconst wsURL = 'http://localhost:8080/seven-wonders-websocket'\n\nconst createConnection = (headers = {}) => new Promise((res... | javascript | chosen |
[
{
"from": "system",
"value": "Throw error where no mapping was found for a route\n\n"
},
{
"from": "human",
"value": "import { routes } from './config-routes.js'\nimport { connect } from 'react-redux'\n\nexport const path = Object.keys(routes).reduce((mapping, route) => {\n mapping[route] = rou... | javascript | chosen |
[
{
"from": "system",
"value": "Reset the file input before opening the file dialog.\n"
},
{
"from": "human",
"value": "import { ToggleTool } from '../../kit'\n\nexport default class InsertFigureTool extends ToggleTool {\n renderButton ($$) {\n let button = super.renderButton($$)\n let inpu... | javascript | chosen |
[
{
"from": "system",
"value": "Convert constant file for Node usage.\n"
},
{
"from": "human",
"value": "'use strict';\n\nangular.module('ddsCommon').constant('situationsFamiliales', [\n {\n value: 'marie', // Enum value 1 in OpenFisca\n label: 'Marié·e',\n },\n {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Increase max event listeners for the socket, too.\n"
},
{
"from": "human",
"value": "import login from 'plug-login'\nimport socket from 'plug-socket'\nimport createDebug from 'debug'\n\nconst debug = createDebug('miniplug:connect')\n\nexport default function connect... | javascript | chosen |
[
{
"from": "system",
"value": "Handle if the listeners value is already an array.\n"
},
{
"from": "human",
"value": "import { RENDERER_SUFFIX } from './constants';\nimport contentRendererMixin from './mixin';\n\nexport default {\n mixins: [contentRendererMixin],\n methods: {\n /**\n * @p... | javascript | chosen |
[
{
"from": "system",
"value": "[FEATURE] Add outgoing payment worker as child process.\n"
},
{
"from": "human",
"value": "var express = require('express');\nvar childProcess = require('child_process');\nvar middleware = require('./config/initializers/middleware.js');\nvar router = require('./conf... | javascript | chosen |
[
{
"from": "system",
"value": "i18n: Remove code to sweep local storage.\n\nBefore 2018, we used a feature of i18next where\nwe would cache translations in local storage\nfor up to two weeks:\n\n var cacheOptions = {\n // ...\n prefix: 'i18next:' + page_params.server_generation + ':',\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix display of artist names in search tool.\n"
},
{
"from": "human",
"value": "var async = require(\"async\");\nvar mongoose = require(\"mongoose\");\nrequire(\"ukiyoe-models\")(mongoose);\n\nvar Artist = mongoose.model(\"Artist\");\n\nmongoose.connect('mongodb://lo... | javascript | chosen |
[
{
"from": "system",
"value": "Make sure react-helmet styles are rendered\n"
},
{
"from": "human",
"value": "import React, { Component, PropTypes } from \"react\";\nimport Helmet from \"react-helmet\";\nimport { BodyAttributes } from \"gluestick-shared\";\nimport \"assets/css/normalize.css\";\n\n... | javascript | chosen |
[
{
"from": "system",
"value": "Fix import module in test component\n"
},
{
"from": "human",
"value": "import React from \"react\";\r\nimport { shallow } from \"enzyme\";\r\nimport assert from \"assert\";\r\nimport { App } from \"../../src/components/App\";\r\n\r\n// unit tests for the App compone... | javascript | chosen |
[
{
"from": "system",
"value": "Use the original docType to create a corresponding exporter.\n"
},
{
"from": "human",
"value": "import { prettyPrintXML, platform } from 'substance'\n\nexport default class ArticleSerializer {\n export (doc, config) {\n let articleConfig = config.getConfiguratio... | javascript | chosen |
[
{
"from": "system",
"value": "Fix input stream completing early\n"
},
{
"from": "human",
"value": "import { Observable } from 'rxjs/Observable'\nimport { of } from 'rxjs/observable/of'\nimport { merge } from 'rxjs/observable/merge'\nimport { delay } from 'rxjs/operator/delay'\nimport { takeUntil... | javascript | chosen |
[
{
"from": "system",
"value": "Move back session storage creation\n"
},
{
"from": "human",
"value": "import { hot } from 'react-hot-loader/root';\nimport React from 'react';\nimport { ProtonApp, useAuthentication, useInstance } from 'react-components';\nimport createSecureSessionStorage from 'pro... | javascript | chosen |
[
{
"from": "system",
"value": "Add Jacoco to list of valid formats\n"
},
{
"from": "human",
"value": "(function (Joi, util, logger) {\n 'use strict';\n\n var validFormats = ['lcov'];\n var formatValidation = Joi.string().valid(validFormats).required();\n\n module.exports = {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add glob for protractor specs\n"
},
{
"from": "human",
"value": "'use strict';\n\nexports.config = {\n jasmineNodeOpts: {\n isVerbose: true,\n showColors: true,\n defaultTimeoutInterval: 30000\n },\n\n specs: [\n 'e2e/example.spe... | javascript | chosen |
[
{
"from": "system",
"value": "Correct directory names in test sample of javascript validator\n"
},
{
"from": "human",
"value": "/*\ntests validator.js implementation.\n\nsteps to run this test:\n 1. install mocha\n $ npm install -g mocha\n\n 2. run RedPen in server mode\n $ cd $REDPEN_HOME/bin\n... | javascript | chosen |
[
{
"from": "system",
"value": "Use dispose rather than hide to unbind events.\n"
},
{
"from": "human",
"value": "Spree.ready(function(){\n $('body').popover({selector: '.hint-tooltip', html: true, trigger: 'hover', placement: 'top'});\n\n $('body').tooltip({selector: '.with-tip'});\n\n /*\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Refactor ref to point to root\n"
},
{
"from": "human",
"value": "\nangular.module('app').factory('LanguageRepository', function(session, $q, $firebase) {\n\n var ref = new Firebase(\"https://languagehuntgamehub.firebaseio.com/languages/\");\n //var languages =... | javascript | chosen |
[
{
"from": "system",
"value": "Fix output name of library to work on window obj\n"
},
{
"from": "human",
"value": "'use strict';\n\nmodule.exports = {\n\tmodule: {\n\t\tloaders: [\n\t\t\t{\n\t\t\t\ttest: /\\.js$/,\n\t\t\t\tloader: 'babel',\n\t\t\t\tquery: {\n\t\t\t\t\tpresets: ['es2015']\n\t\t\t\... | javascript | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.