conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "backend: Fix problem with regular files in search paths\n"
},
{
"from": "human",
"value": "\"use strict\";\n\nconst fs = require(\"fs-extra-promise\");\nconst path = require(\"path\");\nconst log = require(\"log\");\n\nconst findDirsWithEntry = async (baseDir, entry... | javascript | chosen |
[
{
"from": "system",
"value": "Update model and trigger edited event on blur\n"
},
{
"from": "human",
"value": "/**\n * Cell used for showing and allowing the editing of an AmountEntry\n *\n * Copyright 2015 Ethan Smith\n */\n\nvar $ = require('jquery'),\n AmountEntryCell = require('./AmountEn... | javascript | chosen |
[
{
"from": "system",
"value": "Check for documents existance in transition container\n"
},
{
"from": "human",
"value": "// @flow\n\nimport type { Children } from 'react';\nimport React from 'react';\n\nimport { addTransitionListener } from 'yubaba-core';\n\nexport default class TransitionContaine... | javascript | chosen |
[
{
"from": "system",
"value": "Remove unused github api instance\n"
},
{
"from": "human",
"value": "require('dotenv').config({silent: true});\n\nconst process = require('process');\nconst http = require('http');\nconst createHandler = require('github-webhook-handler');\nconst GitHubApi = require(... | javascript | chosen |
[
{
"from": "system",
"value": "Add environmental config for root repo\n"
},
{
"from": "human",
"value": "var queue = require('queue-async');\nvar express = require('express');\nvar request = require('request');\n\nvar app = express();\napp.use(express.static(__dirname + '/static'));\n\napp.get('/... | javascript | chosen |
[
{
"from": "system",
"value": "Change from `preLoaders` to `postLoaders`\n"
},
{
"from": "human",
"value": "var _ = require('lodash'),\n path = require('path'),\n webpackConfig = require('./webpack.config.js');\n\n_.merge(webpackConfig, {\n devtool: 'inline-source-map',\n module: {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Increase the browser upgrade dismissal duration\n\nAs some users are not in a position to upgrade, eg, anywhere with restrictive IT policies and slow update rollout.\n\nWhile we still want to re-remind users, we shouldn't do it too often. A month seems reasonable\n"
},
{
... | javascript | chosen |
[
{
"from": "system",
"value": "Switch to using options, as with newer module definitions\n\n- Also allows easier extension of existing objects within the option set\n"
},
{
"from": "human",
"value": "define([\n 'common/collections/single-timeseries'\n],\nfunction (Collection) {\n return {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add comments, remove debug, use process.env email\n"
},
{
"from": "human",
"value": "import env from 'dotenv';\nimport { log, logErr } from './app/shared/utils';\nimport * as greenlockExpress from 'greenlock-express';\n\nenv.config();\nlet greenlock;\n\n// API_DOMAI... | javascript | chosen |
[
{
"from": "system",
"value": "Set type on url field\n"
},
{
"from": "human",
"value": "import React, {PropTypes} from 'react'\nimport FormBuilderPropTypes from '../FormBuilderPropTypes'\nimport Str from './String'\n\nexport default React.createClass({\n propTypes: {\n field: FormBuilderPropT... | javascript | chosen |
[
{
"from": "system",
"value": "Fix wrong text splitting to words\n"
},
{
"from": "human",
"value": "const striptags = require('striptags');\n\nconst { convertFormatToSeconds, convertSecondsToFormat, normalizeString } = require('../utils');\n\nclass SubtitlePiece {\n static fromSubtitlesParserI... | javascript | chosen |
[
{
"from": "system",
"value": "Add ignore list for common words\n"
},
{
"from": "human",
"value": "const thesaurus = require('powerthesaurus-api')\n\nmodule.exports = (router) => {\n router.use('/v1/names', (req, res, next) => {\n Promise.all(req.query.bandname.split(' ').map((name) => thesau... | javascript | chosen |
[
{
"from": "system",
"value": "Add cards to default state and hot reload reducers\n\n"
},
{
"from": "human",
"value": "//@flow\n\nimport { createStore, compose, applyMiddleware } from \"redux\";\nimport { routerMiddleware } from \"react-router-redux\";\nimport createHistory from \"history/createB... | javascript | chosen |
[
{
"from": "system",
"value": "Add AppState annotation to slicer\n"
},
{
"from": "human",
"value": "// @flow\nimport type { ThunkOrActionType } from \"./actionCreators\";\nimport type { ActionType } from \"./actionTypes\";\nimport type { AppState } from \"./reducers\";\nimport type { Store as Red... | javascript | chosen |
[
{
"from": "system",
"value": "Replace Object.assign with the spread object operator (supported by CRA)\n\nSigned-off-by: Gianni Valdambrini <c5d749f9a9fad12805bcb3c96e57c90355771f56@develer.com>\n"
},
{
"from": "human",
"value": "// ------------------------------------\n// Constants\n\nconst COU... | javascript | chosen |
[
{
"from": "system",
"value": "Fix default-user to have adequate length for username and password.\n"
},
{
"from": "human",
"value": "var mongoose = require('mongoose'),\n User = mongoose.model('User'),\n constants = require('../common/constants'),\n SHA256 = require('crypto-js/sha256');... | javascript | chosen |
[
{
"from": "system",
"value": "Enable the Reify runtime API even if meteor-babel/register does not.\n"
},
{
"from": "human",
"value": "// Install ES2015-complaint polyfills for Object, Array, String, Function,\n// Symbol, Map, Set, and Promise, patching the native implementations when\n// they ar... | javascript | chosen |
[
{
"from": "system",
"value": "Fix the artist loading & info bug\n"
},
{
"from": "human",
"value": "import http from '../http';\n\nimport albumInfo from './album';\nimport artistInfo from './artist';\n\nexport default {\n /**\n * Get extra song information (lyrics, artist info, album info)... | javascript | chosen |
[
{
"from": "system",
"value": "Check that the .node file actually exists\n"
},
{
"from": "human",
"value": "var fs = require('fs'),\n path = require('path');\n\n// normalize node 0.6 and 0.8\nfs.existsSync || (fs.existsSync = path.existsSync);\n\n\n\nvar platforms = {\n win32: function(folder... | javascript | chosen |
[
{
"from": "system",
"value": "Fix dirty check in containerHelper\n"
},
{
"from": "human",
"value": "'use strict';\n\nangular.module('arethusaTranslateGuiApp').service('containerHelper', [\n function() {\n var self = this;\n\n var DIRTY = 'dirty-bg';\n var CLEAN = 'clean-bg';\n\n fun... | javascript | chosen |
[
{
"from": "system",
"value": "Remove period from \"Take a guided tour\"\n"
},
{
"from": "human",
"value": "import React from 'react'\nimport {Button} from 'react-bootstrap'\nimport tourIcon from 'resources/tour-icon.svg'\nimport ReactSVG from 'react-svg'\n\nexport default function HopscotchLaunc... | javascript | chosen |
[
{
"from": "system",
"value": "[Client] Disable reset for the moment\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport PropTypes from 'prop-types';\nimport { translate } from 'react-i18next';\nimport Button from 'react-bootstrap/lib/Button';\nimport Glyphicon from 'react-boots... | javascript | chosen |
[
{
"from": "system",
"value": "Add a close button to the fireworks\n"
},
{
"from": "human",
"value": "import React, { useRef } from 'react'\nimport * as FireworksCanvas from 'fireworks-canvas'\nimport { withStyles } from '@material-ui/core/styles'\nimport FadeInDashboardAnimation from 'js/compone... | javascript | chosen |
[
{
"from": "system",
"value": "Add middleware function that's console logging to make sure it's working\n"
},
{
"from": "human",
"value": "const router = require('express').Router()\nconst nonUser = require('./non-user')\nconst user = require('./user-only')\n\nrouter.use('/', nonUser)\nrouter.use... | javascript | chosen |
[
{
"from": "system",
"value": "Make text grabber categorise text in input and output."
},
{
"from": "human",
"value": ";(function(exports) {\n var TextGrabber = function() {\n this.submittedText = \"\";\n this.currentLine = \"\";\n };\n\n TextGrabber.prototype = {\n write: function(e)... | javascript | chosen |
[
{
"from": "system",
"value": "Fix all courses being displayed for all lecturers\n"
},
{
"from": "human",
"value": "(function() {\n 'use strict';\n \n angular\n .module('lecturer')\n .factory('coursesFactory', coursesFactory);\n\n /* @ngInject */\n function coursesFac... | javascript | chosen |
[
{
"from": "system",
"value": "Add dydb object and put updateUserList function again\n"
},
{
"from": "human",
"value": "var telegramBot = require('node-telegram-bot-api');\nvar twitter = require('twitter');\nvar aws = require('aws-sdk');\nvar nconf = require('nconf');\nvar log4js = require('log4j... | javascript | chosen |
[
{
"from": "system",
"value": "Correct token sale banner timezone.\n"
},
{
"from": "human",
"value": "'use strict'\n\nimport {Component} from 'react'\nimport {Link} from 'react-router'\nimport Countdown from 'react-countdown-now';\nimport CountdownTimer from './CountdownTimer'\n\nconst registrat... | javascript | chosen |
[
{
"from": "system",
"value": "Add test for file collection\n"
},
{
"from": "human",
"value": "import test from 'ava';\nimport '../src/index';\nimport FileCollection from '../src/FileCollection';\n\ntest('that it sets the output file if a src file and output directory are provided', t => {\n l... | javascript | chosen |
[
{
"from": "system",
"value": "Set the browser size to 1280x1024\n"
},
{
"from": "human",
"value": "exports.config = {\n\n baseUrl: 'http://dev.hmda-pilot.ec2.devis.com/',\n\n specs: ['cucumber/*.feature'],\n\n allScriptsTimeout: 30000,\n getPageTimeout: 30000,\n\n capabilities: {\... | javascript | chosen |
[
{
"from": "system",
"value": "Use consistent naming for 'Print / Export' section\n"
},
{
"from": "human",
"value": "Ext.define('SlateAdmin.view.progress.NavPanel', {\n extend: 'SlateAdmin.view.LinksNavPanel',\n xtype: 'progress-navpanel',\n\n\n title: 'Student Progress',\n data: true... | javascript | chosen |
[
{
"from": "system",
"value": "Exclude \"/demo\" from SW navigateFallback.\n"
},
{
"from": "human",
"value": "/* eslint-env node */\n\n'use strict';\n\nmodule.exports = {\n staticFileGlobs: [\n 'index.html',\n 'bower_components/webcomponentsjs/webcomponents-*.js',\n 'image... | javascript | chosen |
[
{
"from": "system",
"value": "Add removeColumns plugin to the test suite\n"
},
{
"from": "human",
"value": "/*globals mocha*/\nrequire.config({\n baseUrl: '/',\n paths: {\n 'tabler': '../',\n 'jquery': 'test/lib/jquery-1.7.1',\n 'underscore': 'test/lib/underscore'\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Make loggability regex groups non-capturing\n\n- captured groups have a performance overhead, which we seem to have been impacted by through the addition of this nested group when it comes to its use in imports calculations\n- we never actually attempt any matches with the patt... | javascript | chosen |
[
{
"from": "system",
"value": "Add tests for non-constructor pattern."
},
{
"from": "human",
"value": "'use strict';\n\nvar path = require('path');\nvar expect = require('expect.js');\nvar walkSync = require('walk-sync');\nvar broccoli = require('broccoli');\nvar fs = require('fs');\n\n// require... | javascript | chosen |
[
{
"from": "system",
"value": "Redefine `S2.UI.Mixin.Element.on` so that it caches its observers."
},
{
"from": "human",
"value": "/** section: scripty2 ui\n * mixin S2.UI.Mixin.Element\n * \n * Provides a few convenience methods for widgets that map easily to a\n * single element.\n**/\n\n(f... | javascript | chosen |
[
{
"from": "system",
"value": "Fix data attribute usage for external links\n"
},
{
"from": "human",
"value": "$(document).on('click', 'a', function(event) {\n var lnk = event.currentTarget;\n\n //for backwards compatibility\n var rels = lnk.rel.split(' ');\n $.each(rels, function() {\... | javascript | chosen |
[
{
"from": "system",
"value": "Return to the right build dir\n"
},
{
"from": "human",
"value": "var webpack = require(\"webpack\");\nvar path = require(\"path\");\n\nmodule.exports = {\n devtool: \"source-map\",\n entry: path.join(__dirname, \"src/main.js\"),\n\n output: {\n path: path.join... | javascript | chosen |
[
{
"from": "system",
"value": "Apply votes quietly every 5 seconds\n"
},
{
"from": "human",
"value": "var countVotes = function () {\n \"use strict\";\n // find votes for object\n var deltaVotesQuery = {\n delta: {\n $exists: true\n }\n };\n\n var deltaVotes = Votes.find(deltaVote... | javascript | chosen |
[
{
"from": "system",
"value": "Update up to changes in resolver\n"
},
{
"from": "human",
"value": "// Collection of all business processes which where made online\n\n'use strict';\n\nmodule.exports = require('./resolve')(require('../db').BusinessProcess);\n"
},
{
"from": "gpt",
"value... | javascript | chosen |
[
{
"from": "system",
"value": "Simplify tests by turning off effects\n"
},
{
"from": "human",
"value": "if(!this.chai) { chai = require(\"chai\"); }\nvar expect = chai.expect;\n\n(function($) {\n\tvar cleanupDom = function(){\n\t\t$('body >:not(#mocha)').remove()\n\t};\n\n\tdescribe('Featherlight... | javascript | chosen |
[
{
"from": "human",
"value": "Create action types for Redux\n"
},
{
"from": "gpt",
"value": "import constanst from 'flux-constants'\n\nexport default constants([\n \n 'ON_CLICK_MENU_BUTTON',\n \n 'POSTS_REQUEST',\n 'POSTS_SUCCESS',\n 'POSTS_FAILURE',\n \n])"
}
] | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"add debug line for travis bc this is passing locally\"\n\nThis reverts commit c930369362fa9c68e8f44296617695fc804e141d.\n"
},
{
"from": "human",
"value": "'use strict'\n\nconst t = require('tap')\nconst spawn = require('child_process').spawn\nconst split = ... | javascript | chosen |
[
{
"from": "system",
"value": "hain-plugin-math: Copy result into clipboard on execute equation\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst lo_isNumber = require('lodash.isnumber');\nconst lo_isString = require('lodash.isstring');\nconst lo_isObject = require('lodash.isobject');\nco... | javascript | chosen |
[
{
"from": "system",
"value": "Use mocha in spec files.\n"
},
{
"from": "human",
"value": "var basePage = require('../pages/Base');\n\ndescribe('Main page', function() {\n\n basePage.go();\n\n it('should be at the correct URL', function() {\n expect(basePage.currentUrl).toEqual(brows... | javascript | chosen |
[
{
"from": "system",
"value": "Hide links for sign in and sign up if already exists user token.\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport styles from './Header.sass';\nimport classNames from 'classnames';\nimport { Link } from 'react-router-dom';\n\nexport default func... | javascript | chosen |
[
{
"from": "system",
"value": "Add ability to specify input from file for debugging.\n"
},
{
"from": "human",
"value": "// Entry point for server rendering subprocess\n\n/* jshint strict: false */\n\nif (process.env.NODE_ENV === undefined) {\n require(\"babel-core/register\")({\n only: ['... | javascript | chosen |
[
{
"from": "system",
"value": "Add missing semicolon and bracket"
},
{
"from": "human",
"value": "'use strict';\n\n/**\n * Module dependencies\n */\nimport rndstr from 'rndstr';\nimport AuthSess from '../../models/auth-session';\nimport Userkey from '../../models/userkey';\n\n/**\n * Accept\n *\n... | javascript | chosen |
[
{
"from": "system",
"value": "Update paths and remove dupl. plugins from front prod\n\n"
},
{
"from": "human",
"value": "const merge = require('webpack-merge');\r\nconst webpack = require('webpack');\r\nconst OptimizeCSSPlugin = require('optimize-css-assets-webpack-plugin');\r\nconst ExtractText... | javascript | chosen |
[
{
"from": "system",
"value": "Make testing for undefined more clear\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar hljs = require('../../build');\n\ndescribe('.getLanguage', function() {\n it('should get an existing language', function() {\n var result = hljs.getLanguage('python');\... | javascript | chosen |
[
{
"from": "system",
"value": "Define constants for macro actions\n"
},
{
"from": "human",
"value": "// Workflow State\nexport const WORKFLOW_STATE_RUNNING = 'running';\nexport const WORKFLOW_STATE_PAUSED = 'paused';\nexport const WORKFLOW_STATE_IDLE = 'idle';\n"
},
{
"from": "gpt",
"... | javascript | chosen |
[
{
"from": "system",
"value": "Security: Make sure only files below src/ are included with glob.\n"
},
{
"from": "human",
"value": "var express = require('express');\nvar app = express();\nvar fb = require(\"./firebaselogin.js\");\nvar db = fb.database();\nvar ref = db.ref();\nvar glob = requir... | javascript | chosen |
[
{
"from": "system",
"value": "Enable console output of dump by default in selenium tests\n"
},
{
"from": "human",
"value": "user_pref(\"media.peerconnection.default_iceservers\", \"[]\");\nuser_pref(\"media.peerconnection.use_document_iceservers\", false);\nuser_pref(\"social.activeProviders\", ... | javascript | chosen |
[
{
"from": "system",
"value": "Add _push and _unshift patch operators\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst ANY_ARRAY = [\n 'boolean[]',\n 'integer[]',\n 'number[]',\n 'string[]',\n 'object[]',\n 'null[]',\n];\n\n// `_slice` patch operator\nconst sliceOperator = {\n att... | javascript | chosen |
[
{
"from": "system",
"value": "Send JWT auth token on the as an authorization header of every HTTP request.\n"
},
{
"from": "human",
"value": "module.exports = (function() {\n var Router = require('router'),\n Connection = require('lib/connection');\n\n // App namespace.\n window.Boards =... | javascript | chosen |
[
{
"from": "system",
"value": "Add unit test for tagName\n"
},
{
"from": "human",
"value": "import {createContainer} from 'stardux'\nimport View from '../../../src/dragon/views/base'\n\ndescribe('Unit: View', function() {\n\n /*\n TODO: what happens if:\n - there is no container?\... | javascript | chosen |
[
{
"from": "system",
"value": "Make `acceptableDomains` configurable without editing source code.\n\nA list of available domains is now being read in from the env and\nadded to the default list.\n"
},
{
"from": "human",
"value": "module.exports = (req, res, next, {\n /**\n * @param acceptableD... | javascript | chosen |
[
{
"from": "system",
"value": "Delete tag only on success\n"
},
{
"from": "human",
"value": "define('app/views/delete_tag', [\n 'ember',\n 'jquery'\n ],\n /**\n *\n * Delete tag view\n *\n * @returns Class\n */\n function() {\n return Ember.View.extend({\... | javascript | chosen |
[
{
"from": "system",
"value": "Fix index in flight filter.\n"
},
{
"from": "human",
"value": "function(resp) {\n var flights = resp.rows.map(function(r) {\n return {\n flight : r.key[0]\n };\n });\n flights.unshift({\"flight\": \"All\"});\n return {flights:flights};\n}\n\n//@ sourc... | javascript | chosen |
[
{
"from": "system",
"value": "Fix loading non-cordova modules in scripts\n\nLoading non-cordova modules with `requireCordovaModule` is not\nsupported."
},
{
"from": "human",
"value": "module.exports = function(context) {\n\n const fs = context.requireCordovaModule('fs');\n const cordova_util =... | javascript | chosen |
[
{
"from": "system",
"value": "Create images as MUTABLE, like a paste would\n"
},
{
"from": "human",
"value": "import PropTypes from 'prop-types';\nimport React from 'react';\nimport { AtomicBlockUtils } from 'draft-js';\n\nclass ImageSource extends React.Component {\n componentDidMount() {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Use JSON.stringify to stringify Array\n"
},
{
"from": "human",
"value": "class OutletsReceivable {\n static transform(modified, ...names) {\n modified.outlets = names;\n modified._argsTransformFns.push(this.filterOutlets.bind(null, modified));\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Comment out unused buildHeader code in taskItemView\n"
},
{
"from": "human",
"value": "jsio('from shared.javascript import Class')\njsio('import fan.ui.Button')\njsio('import fan.ui.RadioButtons')\njsio('import fan.tasks.views.View')\n\nexports = Class(fan.tasks.vie... | javascript | chosen |
[
{
"from": "system",
"value": "Fix tests failing on cypress 3.1.0\n"
},
{
"from": "human",
"value": "describe('Import JSON', () => {\n it('should work properly', () => {\n cy.loginVisit('/')\n\n cy.fixture('import.json').then(IMPORT_API => {\n // Click [Import JSON] button\n cy.g... | javascript | chosen |
[
{
"from": "system",
"value": "Remove unneeded comma in AmbiantLight\n"
},
{
"from": "human",
"value": "import { Light } from './Light';\n\n/**\n * @author mrdoob / http://mrdoob.com/\n */\n\nfunction AmbientLight( color, intensity ) {\n\n\tLight.call( this, color, intensity );\n\n\tthis.type = '... | javascript | chosen |
[
{
"from": "system",
"value": "Fix the order issue of menu items\n"
},
{
"from": "human",
"value": "console.log(\"menu-fill\");\n\nvar menu_env = $(\"#menu-env\");\n\n\nvar item1 = menu_env_data[0];\nvar item2 = menu_env_data[1];\n\n\nfunction createLinkItem (item) {\n var _a = $(\"<a/>\", { hre... | javascript | chosen |
[
{
"from": "system",
"value": "Add tests for panes loading in app.\n"
},
{
"from": "human",
"value": "module.exports = {\n before : function(client) {\n console.log('Setting up functional tests...');\n client\n .url('http://localhost:3000')\n .pause(1000);\n },\n\n after : func... | javascript | chosen |
[
{
"from": "system",
"value": ":bug: Fix mixin before declaration issues\n\nAdd check for declaration node content type\nFixes #227\nFixes #230\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar helpers = require('../helpers');\n\nmodule.exports = {\n 'name': 'mixins-before-declarations',\n... | javascript | chosen |
[
{
"from": "system",
"value": "Make a part of webpack config consistent with gh-pages branch variant for simpler future conflict resolutions.\n"
},
{
"from": "human",
"value": "import Bootstrap from 'bootstrap-webpack-plugin'\nimport Path from 'path'\n\n\n\nconst path = Path.join.bind(null, __dir... | javascript | chosen |
[
{
"from": "system",
"value": "Use `NEXMO_` prefixes in proxy example"
},
{
"from": "human",
"value": "/* Voice Tutorial 4: Making a Proxy Call\n API Reference: https://docs.nexmo.com/voice/voice-api/api-reference\n */\n\n'use strict';\nrequire('dotenv').config({path: __dirname + '/../.env'});\... | javascript | chosen |
[
{
"from": "system",
"value": "Fix check for LOG_REDUX_ACTIONS environment variable\n\nRight now it’s on in production! : 0\n"
},
{
"from": "human",
"value": "/* global process */\n\nconst nodeEnv = (process.env.NODE_ENV || 'development');\n\nexport default {\n nodeEnv,\n logReduxActions: () =>... | javascript | chosen |
[
{
"from": "system",
"value": "Complete the control channel too.\n"
},
{
"from": "human",
"value": "import {\n createControlSubject,\n createStdinSubject,\n createIOPubSubject,\n createShellSubject,\n} from 'enchannel-zmq-backend';\n\nimport * as fs from 'fs';\nimport * as uuid from 'uuid';\n... | javascript | chosen |
[
{
"from": "system",
"value": "Fix bug when trying to \"cross-link\" between multiple devices\n"
},
{
"from": "human",
"value": "var gulp = require('gulp')\nvar gulpSequence = require('gulp-sequence')\nvar getEnabledTasks = require('../lib/getEnabledTasks')\nvar os = re... | javascript | chosen |
[
{
"from": "system",
"value": "Fix react error about functional components can't take props\n"
},
{
"from": "human",
"value": "/*\nCopyright 2015, 2016 OpenMarket Ltd\nCopyright 2020 The Matrix.org Foundation C.I.C.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not... | javascript | chosen |
[
{
"from": "system",
"value": "Improve web worker with new dead calculate\n"
},
{
"from": "human",
"value": "(function() {\n 'use strict';\n\n self.addEventListener('message', function(obj) {\n window.setInterval(function() {\n console.log('worker: ' + obj.existence);\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Remove intent warning and allow zero values for settings\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport PropTypes from 'prop-types';\nimport { InputGroup, Intent } from '@blueprintjs/core';\n\nconst Option = ({ intent, title, type, value, unit... | javascript | chosen |
[
{
"from": "system",
"value": "Increase timeout to 3 sec for health check.\n"
},
{
"from": "human",
"value": "const lock = require('./lock-controller');\nconst utils = require('./utils');\n\nfunction notify(text) {\n console.info(text);\n utils.notifySlack({\n channel: '#alerts',\n text: ... | javascript | chosen |
[
{
"from": "system",
"value": "feat: Add general handling of any rejections\n"
},
{
"from": "human",
"value": "var express = require('express');\nvar parseCommand = require('./parse-command');\n\nvar router = express.Router();\n\nrouter.post('/', (req, res) => {\n parseCommand(req)\n .then(res.... | javascript | chosen |
[
{
"from": "system",
"value": "Fix oauth page response, redirect user to login page, if site already authed, not throw user into error page.\n"
},
{
"from": "human",
"value": "'use strict';\n\nmodule.exports = function ($scope, $location, $service) {\n console.log('CartOauthCtrl');\n\n $sco... | javascript | chosen |
[
{
"from": "system",
"value": "Enhance air pollution service formatting\n"
},
{
"from": "human",
"value": "import { apiConstants, apiProvidersConst, httpService, newsModelFactory } from '../../common/common.js';\n\nexport default class AirPollution {\n static getSummary() {\n let option... | javascript | chosen |
[
{
"from": "system",
"value": "Improve EEXIST error message for copySync\n"
},
{
"from": "human",
"value": "var fs = require('graceful-fs')\n\nvar BUF_LENGTH = 64 * 1024\nvar _buff = new Buffer(BUF_LENGTH)\n\nfunction copyFileSync (srcFile, destFile, options) {\n var clobber = options.clobber\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Use array for benchmark bytes\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\n\nconst crypto = require('crypto');\nconst b64 = require('../');\nconst prettyBytes = require('pretty-bytes');\n\nconst timer = {\n reset: () => timer.startTime = process.hrtime()... | javascript | chosen |
[
{
"from": "system",
"value": "Fix a borked import statement"
},
{
"from": "human",
"value": "import { decamelizeKeys } from 'humps'\nimport store from '../../store'\nimport { saveProfile } from '../../actions/profile'\n\nexport function preferenceToggleChanged(obj) {\n const newObj = { ...obj }... | javascript | chosen |
[
{
"from": "system",
"value": "CB-9891: Fix permission errors due to URI encoding inconsistency on Android\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... | javascript | chosen |
[
{
"from": "system",
"value": "Use indexOf instead of includes\n"
},
{
"from": "human",
"value": "export default function isFocusable(el) {\n let focusableTags = ['INPUT', 'BUTTON', 'LINK', 'SELECT', 'A', 'TEXTAREA'];\n let { tagName, type } = el;\n\n if (type === 'hidden') {\n return false... | javascript | chosen |
[
{
"from": "system",
"value": "[SFX] Update the preload list. Fixes issue with the first dialogue message glitching up with the ticking sound.\n"
},
{
"from": "human",
"value": "var Sfx = {\n sounds: { },\n\n preload: function() {\n // Note to self: Do not preload \"burning tomato\".... | javascript | chosen |
[
{
"from": "system",
"value": "Add additional assertions around objectcontroller errors\n"
},
{
"from": "human",
"value": "describe('lib/rules/disallow-objectcontroller', function () {\n var checker = global.checker({\n plugins: ['./lib/index']\n });\n\n describe('not configured',... | javascript | chosen |
[
{
"from": "system",
"value": "Make ping available to everyone\n\n"
},
{
"from": "human",
"value": "var commands = []\n\ncommands.ping = {\n adminOnly: true,\n modOnly: false,\n fn: function (client, message) {\n message.reply('Pong!')\n }\n}\n\ncommands['admin-only'] = {\n adminOnly: tru... | javascript | chosen |
[
{
"from": "system",
"value": "Add the getImageURLs test case\n"
},
{
"from": "human",
"value": "import * as util from '~/assets/js/util'\n\ndescribe('util', () => {\n test('getRSSLink', () => {\n expect(util.getRSSLink('foo')).toEqual({\n hid: 'rss',\n rel: 'alternate',\n type... | javascript | chosen |
[
{
"from": "system",
"value": "Modify the way of two way binding\n\nin object-list-view-input-cell component. Add binding input value with\nmodel on key press.\n"
},
{
"from": "human",
"value": "import BaseComponent from './flexberry-base';\n\nexport default BaseComponent.extend({\n tagName: 'td... | javascript | chosen |
[
{
"from": "system",
"value": "Add functions to get details about preview files\n"
},
{
"from": "human",
"value": "import client from './client'\n\nexport default {\n getPlaylists (production, callback) {\n client.get(`/api/data/projects/${production.id}/playlists`, callback)\n },\n\n newPl... | javascript | chosen |
[
{
"from": "system",
"value": "Use host instead of hostname\n"
},
{
"from": "human",
"value": "/**\n * Created by crispin on 10/12/2015.\n */\nfunction loadEmbedIframe(onSave) {\n // add modal window\n $('.workspace-menu').append(templates.embedIframe());\n\n // variables\n var modal ... | javascript | chosen |
[
{
"from": "system",
"value": "Add protection for empty GitHub url.\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar GitHubApi = require('github');\nvar githubapi = new GitHubApi({\n\t// required\n\tversion: \"3.0.0\",\n\t// optional\n\ttimeout: 3000\n});\n\nexports.getPackageJson = functi... | javascript | chosen |
[
{
"from": "system",
"value": "fix(transformers): Fix noop export breaking on null source node\n"
},
{
"from": "human",
"value": "import replacePath from \"../helpers/replacePath\";\n\nexport default function (t, path, state, regexps) {\n\tconst sourcePath = path.get(\"source\");\n\tif(sourcePath... | javascript | chosen |
[
{
"from": "system",
"value": "Allow only 5 minute increments for date picker so we reduce the number of steps\n"
},
{
"from": "human",
"value": "//= require trix\n//= require jquery.geocomplete\n//= require cleave\n//= require ./trix_events\n//= require ./trix_toolbar\n//= require ./app/init\n//... | javascript | chosen |
[
{
"from": "system",
"value": "Clarify and simplify authentication logic to predicate upon existence of 'me' object in 'auth'\n"
},
{
"from": "human",
"value": "import React from 'react'\nimport {routerActions} from 'react-router-redux'\nimport {UserAuthWrapper} from 'redux-auth-wrapper'\n\nexpor... | javascript | chosen |
[
{
"from": "system",
"value": "Fix dev app init for Windows\n\nHaving it load entry.js only after the other script is loading is\ncausing problems in init on slow machines (or my Windows VM).\n\nThe devserver doesn't need to be included first, it's just for live\nrealoading.\n\nAuditors: da39a3ee5e6b4b0d3255... | javascript | chosen |
[
{
"from": "system",
"value": "Add error handling for channel updates\n"
},
{
"from": "human",
"value": "'use strict'\n\nconst TelegramBot = require('node-telegram-bot-api');\n\nconst config = require('../config');\nconst utils = require('./utils');\nconst Kinospartak = require('./Kinospartak/Kin... | javascript | chosen |
[
{
"from": "system",
"value": "Replace the updateMenu option to defaultSetup with a menu option\n\nMuch cleaner\n"
},
{
"from": "human",
"value": "const {Plugin} = require(\"../edit\")\nconst {menuBar} = require(\"../menu/menubar\")\nconst {inputRules, allInputRules} = require(\"../inputrules\")\... | javascript | chosen |
[
{
"from": "system",
"value": "Fix test - getLanguages is a Promise<Array<string>>"
},
{
"from": "human",
"value": "// @flow\n\nimport I18nJs from 'i18n-js';\n\nI18nJs.locale = 'en'; // a locale from your available translations\nexport const getLanguages = () => Promise.resolve('en');\nexport def... | javascript | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.