conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Add another class to Quote block for consistency\n\nHeading block has an analogous version of this, so added here too for consistency.\n"
},
{
"from": "human",
"value": "/*\n Block Quote\n*/\n\nSirTrevor.Blocks.Quote = (function(){\n\n var template = _.template([\... | javascript | chosen |
[
{
"from": "system",
"value": "Modify main route in order to remove the need of prefixing the root mock folders by 'api'\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst express = require('express');\nconst cors = require('cors');\nconst MockCtrl = require('../controllers/MockCtrl');\n\n... | javascript | chosen |
[
{
"from": "system",
"value": "Set the port of application from process.env.PORT, which will be set by Heroku.\n"
},
{
"from": "human",
"value": "const express = require('express');\nconst path = require('path');\nconst chalk = require('chalk');\nconst initServer = require('./initServer');\n\ncon... | javascript | chosen |
[
{
"from": "system",
"value": "Fix declaration in case block\n"
},
{
"from": "human",
"value": "import makeDebug from 'debug';\nimport fp from 'mostly-func';\nimport { getItems } from 'feathers-hooks-common';\n\nconst debug = makeDebug('mostly:feathers-mongoose:hooks:cache');\n\nconst defaultOpti... | javascript | chosen |
[
{
"from": "system",
"value": "Make sure ~/.ipfs exists. Convert to ES6.\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar path = require('path');\nvar async = require('asyncawait/async');\nvar await = require('asyncawait/await');\nvar Promise = require('bluebird');\nvar ipfsdCtl... | javascript | chosen |
[
{
"from": "system",
"value": "Remove unneeded user info in request\n"
},
{
"from": "human",
"value": "document.body.prepend(dynamicButton);\nwindow.addEventListener('authorized', getClassrooms);\n\nfunction createClassroom(subject) {\n var auth2 = gapi.auth2.getAuthInstance();\n var name =... | javascript | chosen |
[
{
"from": "system",
"value": "Switch to using tko.tools for gulp tasks\n"
},
{
"from": "human",
"value": "//\n// Gulp tasks\n//\nvar gulp = require('gulp')\nvar rollup = require('rollup')\n\ngulp.task('make', function () {\n rollup.rollup({\n entry: 'index.js',\n }).then(function(bundle) {\... | javascript | chosen |
[
{
"from": "system",
"value": "Add divider to the list\n"
},
{
"from": "human",
"value": "import React, { PureComponent } from \"react\";\nimport PropTypes from \"prop-types\";\nimport styled from \"styled-components\";\nimport { EntriesShape } from \"../prop-types/entry.js\";\nimport Entry from ... | javascript | chosen |
[
{
"from": "system",
"value": "Quit ImageOptim app when finished"
},
{
"from": "human",
"value": "/*\n * grunt-imageoptim\n * https://github.com/JamieMason/grunt-imageoptim\n *\n * Copyright (c) 2013 Jamie Mason @GotNoSugarBaby\n * Licensed under the MIT license.\n */\n\n'use strict';\n\nmodule.e... | javascript | chosen |
[
{
"from": "system",
"value": "Use a more thorough check when exporting.\n\nIf an element with ID of `module` is in the document, `module.exports` could be\ndefined wrongly. This adds a check to ensure `module.exports` exists first.\nThis commit also removes the `exports` branch which wasn't doing anything,\... | javascript | chosen |
[
{
"from": "system",
"value": "Fix running nonHeadless e2e tests against latest chromedriver\n\nCan't pass null args. Must pass *some* args in order\nto have nightwatch overwrite defaults.\n"
},
{
"from": "human",
"value": "require(\"babel-register\");\n\nconst selenium = require(\"selenium-serve... | javascript | chosen |
[
{
"from": "system",
"value": "Add tests for admin client models\n"
},
{
"from": "human",
"value": "/* global ic */\n\nvar ajax = window.ajax = function () {\n return ic.ajax.request.apply(null, arguments);\n};\n\n// Used in API request fail handlers to parse a standard api error\n// response ... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"Attempt to fix travis issue\"\n\nThis reverts commit ce2aa5a0f384464bb94569a1336575d6dacafb78.\n"
},
{
"from": "human",
"value": "import webdriver from 'selenium-webdriver';\n\nexport function check(done, func) {\n try {\n func();\n } catch (ex) {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix bug that would cause server crash\n"
},
{
"from": "human",
"value": "module.exports = function isAdmin (req, res, next) { \n if (req.query.user &&\n req.query.pass &&\n process.env.MLUSTATS_USERNAME &&\n process.env.MLUSTATS_PASSWORD &&\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Allow left-pane blurb to be overridden in multiple languages\n"
},
{
"from": "human",
"value": "O5.views = {\n\tBaseView: Backbone.View.extend({\n\t\tinitialize: function() {\n\t\t\tthis.app = this.options.app;\n\t\t}\n\t})\n};\nO5.views.BlurbView = O5.views.BaseVie... | javascript | chosen |
[
{
"from": "system",
"value": "Use redis storage instead of json storage\n"
},
{
"from": "human",
"value": "const Botkit = require('botkit');\nconst path = require('path');\nconst fs = require('fs');\n\nclass Bot {\n static run() {\n const controller = Botkit.slackbot({\n debug: false,\n... | javascript | chosen |
[
{
"from": "system",
"value": "Change date formatting in `/upcoming` to a relative format\n"
},
{
"from": "human",
"value": "const MySql = require(\"./MySql.js\");\nconst entities = require(\"entities\");\n\nclass Meet{\n constructor(obj){\n Object.keys(obj).forEach(k=>this[k]=entities.decode... | javascript | chosen |
[
{
"from": "system",
"value": "Add status messages when model gets destroyed\n"
},
{
"from": "human",
"value": "exports.definition = {\n\tconfig: {\n\t\tcolumns: {\n\t\t \"name\": \"text\",\n\t\t \"captured\": \"integer\",\n\t\t \"url\": \"text\",\n\t\t \"capturedLat\": \"real\",\n\t\... | javascript | chosen |
[
{
"from": "system",
"value": "Switch test coverage reporting off for travis\n"
},
{
"from": "human",
"value": "var semicov = require('semicov');\nsemicov.init('lib');\nprocess.on('exit', semicov.report);\n\ntry {\n global.sinon = require('sinon');\n} catch (e) {\n // ignore\n}\n\nvar group... | javascript | chosen |
[
{
"from": "system",
"value": "Fix db config for pg and mysql in getstarted\n"
},
{
"from": "human",
"value": "const sqlite = {\n client: 'sqlite',\n connection: {\n filename: '.tmp/data.db',\n },\n useNullAsDefault: true,\n};\n\nconst postgres = {\n client: 'postgres',\n connection: {\n... | javascript | chosen |
[
{
"from": "system",
"value": "Rename postcss plugin name string\n"
},
{
"from": "human",
"value": "'use-strict';\n\nconst path = require('path');\nconst postcss = require('postcss');\nconst cssImport = require('postcss-import');\nconst atRulesVars = require('postcss-at-rules-variables');\nconst ... | javascript | chosen |
[
{
"from": "system",
"value": "Add lang to html tag in example site\n"
},
{
"from": "human",
"value": "import React from 'react'\nimport Document, { Html, Head, Body, App, Footer } from 'react-document'\n\n/**\n * This component is a template for the HTML file. You can add webfonts, meta tags,\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Refactor game over view to use button view\n"
},
{
"from": "human",
"value": "import React from 'react'\nimport classnames from 'classnames'\nimport styles from '../stylesheets/styles.scss'\n\nexport default class GameOverView extends React.PureComponent {\n render... | javascript | chosen |
[
{
"from": "system",
"value": "Add cors whitelist configuration to api\n"
},
{
"from": "human",
"value": "const express = require('express');\nconst morganLogger = require('morgan');\nconst bodyParser = require('body-parser');\nconst mongoose = require('mongoose');\nconst RateLimit = require('exp... | javascript | chosen |
[
{
"from": "system",
"value": "Remove local storage host, port prevention\n"
},
{
"from": "human",
"value": "import React, { Component, PropTypes } from 'react';\nimport { render } from 'react-dom';\nimport Dock from 'react-dock';\nimport DevTools from './DevTools';\nimport 'codemirror/lib/codemi... | javascript | chosen |
[
{
"from": "system",
"value": "Create the BrowserWindow as unresizable instead of setting it later\n"
},
{
"from": "human",
"value": "const path = require('path');\n\nconst {ipcMain} = require('electron');\nconst menubar = require('menubar')({\n index: `file://${__dirname}/dist/index.html`,\n i... | javascript | chosen |
[
{
"from": "system",
"value": "Add HTML IDs to HostConsole\n"
},
{
"from": "human",
"value": "import React from 'react'\nimport PropTypes from 'prop-types'\n\nimport { connect } from 'react-redux'\n\nimport AppConfiguration from '../../config'\n\nimport style from './style.css'\n\nexport function... | javascript | chosen |
[
{
"from": "system",
"value": "Enable possibility to select no initial at all.\n\n"
},
{
"from": "human",
"value": "import React, { PropTypes } from 'react';\nimport ImmutablePropTypes from 'react-immutable-proptypes';\nimport { Grid, Cell, Button } from 'react-mdl';\n\nimport styles from './lawI... | javascript | chosen |
[
{
"from": "system",
"value": "Update PostFeedItem to use path instead of href.\n"
},
{
"from": "human",
"value": "/* @flow */\nimport React from 'react';\nimport Box from 'grommet/components/Box';\nimport Anchor from 'grommet/components/Anchor';\nimport Heading from 'grommet/components/Heading';... | javascript | chosen |
[
{
"from": "system",
"value": "Add some content to the project page\n"
},
{
"from": "human",
"value": "// Projects\n\nimport React from 'react/addons';\nimport DocumentTitle from 'react-document-title';\nimport styles from './Projects.less';\nimport withStyles from '../../decorators/withStyles';\... | javascript | chosen |
[
{
"from": "system",
"value": "Change the controller to reflect the changes on read file\n"
},
{
"from": "human",
"value": "app.controller('MyIndexController', ['$scope', function ($scope) {\n $scope.searchTable = false;\n $scope.files = [];\n $scope.searchFiles = [];\n $scope.instance = new ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix println to use console.log\n"
},
{
"from": "human",
"value": "\r\nvar lists = require('./list');\r\n\r\nif (typeof cljs == 'undefined')\r\n cljs = {};\r\n \r\nif (typeof cljs.core == 'undefined')\r\n cljs.core = {};\r\n \r\ncljs.core.list = function ... | javascript | chosen |
[
{
"from": "system",
"value": "Remove default conditions, just call then\n"
},
{
"from": "human",
"value": "var cmd = require('../src/cmd');\nvar expect = require('chai').expect;\n\n/**\n * Load the match plugin\n */\ncmd.use('match');\n\n/**\n * Tests\n */\ndescribe('cmd.match', function () {\n\... | javascript | chosen |
[
{
"from": "system",
"value": "Fix spelling of pattern trigger.\n"
},
{
"from": "human",
"value": "/**\n * Patterns pat-polyfill-colour - Polyfill for colour inputs.\n *\n * Copyright 2014 Marko Durkovic\n * Copyright 2014 Simplon B.V. - Wichert Akkerman\n */\ndefine([\n \"pat-registry\",\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Correct argument number setting the example zone\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\n\nvar named = require('../named')\n\nvar port = +(process.argv[2] || 5321)\nnamed.createServer(function(req, res) {\n console.log('%s:%s/%s %j', req.connection.... | javascript | chosen |
[
{
"from": "system",
"value": "Change paths to hash-based for \"development\" env\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 ... | javascript | chosen |
[
{
"from": "system",
"value": "Add /users/list to authorized URLs\n"
},
{
"from": "human",
"value": "// Requires\nvar _ = require('underscore');\n\nvar express = require('express');\n\n\nfunction setup(options, imports, register) {\n // Import\n var app = imports.server.app;\n var worksp... | javascript | chosen |
[
{
"from": "system",
"value": "Update Jquery CSS selector to data-toggle=tab\n"
},
{
"from": "human",
"value": "TouchUI.prototype.DOM.init = function() {\r\n\r\n\tthis.DOM.move.connection.init( this.DOM.create.tabbar );\r\n\tthis.DOM.move.controls.init();\r\n\r\n\tif ($(\"#webcam_container\").len... | javascript | chosen |
[
{
"from": "system",
"value": "Hide loading icon for unauthorized\n\nFixes #44\n"
},
{
"from": "human",
"value": "// Ensure namespace housing exists\nvar housing = housing || {};\n\n/**\n * housing.app\n *\n * This is the entry point for the housing selection application.\n * This function sets u... | javascript | chosen |
[
{
"from": "system",
"value": "Add trap on index -1 for the array-like\n"
},
{
"from": "human",
"value": "// Copyright (C) 2014 Robert Kowalski. All rights reserved.\n// This code is governed by the BSD license found in the LICENSE file.\n\n/*---\ndescription: Array.prototype.contains searches th... | javascript | chosen |
[
{
"from": "system",
"value": "Fix froala spoiler plugin button state\n"
},
{
"from": "human",
"value": "$.Editable.prototype.refreshSpoiler = function() {\n\ttry {\n\t\tif (document.queryCommandState('strikeThrough') === true)\n\t\t\tthis.$editor.find('[data-cmd=\"spoiler\"]').addClass(\"active\... | javascript | chosen |
[
{
"from": "system",
"value": "Add missing newline at end of file\n"
},
{
"from": "human",
"value": "var ZIP = require(\"./zip\");\nvar FS = require(\"fs\");\nvar assert = require(\"assert\");\n\nconsole.log(\"-------------------\");\nconsole.log(\"READ from Buffer\");\n\nvar data = FS.readFileSy... | javascript | chosen |
[
{
"from": "system",
"value": "Use protocol-agnostic URL for webapp\n\nissue: #1\n"
},
{
"from": "human",
"value": "(function() {\n \"use strict\";\n\n var xkcdUrl = \"http://xkcd.com\";\n var appUrl = \"http://xkcd-imgs.herokuapp.com/\";\n var btns = document.getElementsByClassName(\"xkcd-re... | javascript | chosen |
[
{
"from": "system",
"value": "Add missing option for percentPosition"
},
{
"from": "human",
"value": "/* global imagesLoaded */\nimport Ember from 'ember';\n\nvar getOptions = function (keys) {\n var properties = this.getProperties(keys);\n\n Object.keys(properties).forEach(function (key) {\n ... | javascript | chosen |
[
{
"from": "system",
"value": ":art: Use nodejs instead of iojs\n"
},
{
"from": "human",
"value": "#!/usr/bin/env iojs\n\n\nvar\n Main = require('./Main');\nif(process.argv.length !== 3 || isNaN(parseInt(process.argv[2]))){\n console.error(\"You must provide a port to use\");\n process.exit(1)... | javascript | chosen |
[
{
"from": "system",
"value": "Remove element only if in document fragment\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar remove = require('dom-ext/node/#/remove')\n , _if = require('observable-value/if')\n , validate = require('./lib/validate-injection')\n\n , isArray = Array.... | javascript | chosen |
[
{
"from": "system",
"value": "Make the demo LibreJS compliant."
},
{
"from": "human",
"value": "scrollEvents.changeStyle(\".foo\", \"height\", \"25%\", \"75%\");\nscrollEvents.changeStyle(\".foo\", \"backgroundColor\", \"#008cff\", \"#00ad85\");\nscrollEvents.changeText(\".foo\", \"Scroll down t... | javascript | chosen |
[
{
"from": "system",
"value": "Add --no-glob option to cli\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\n\nvar rimraf = require('./')\n\nvar help = false\nvar dashdash = false\nvar args = process.argv.slice(2).filter(function(arg) {\n if (dashdash)\n return !!arg\n else if (arg ===... | javascript | chosen |
[
{
"from": "system",
"value": "Allow Handlebars to be a global\n"
},
{
"from": "human",
"value": "define([\"handlebars\"], function(Handlebars) {\n var buildMap = {},\n templateExtension = \".hbs\";\n\n return {\n\n // http://requirejs.org/docs/plugins.html#apiload\n load: function (... | javascript | chosen |
[
{
"from": "system",
"value": "Use JWT secret as defined in config.js instead of hardcoded value\n"
},
{
"from": "human",
"value": "var socketioJwt = require(\"socketio-jwt\");\n\nvar clients = {};\n\nmodule.exports = function(io) {\n io.sockets.on('connection', socketioJwt.authorize({\n secr... | javascript | chosen |
[
{
"from": "system",
"value": "[Admin] Implement data-keys-unchecked-value for checkboxes in ajax forms.\n"
},
{
"from": "human",
"value": "/* global location */\n\nconst $ = require('jquery');\n\nconst Keys = require('keys/dist/client');\n\n$(() => {\n $('body').on('submit', '.keysAjaxForm', ev... | javascript | chosen |
[
{
"from": "system",
"value": "Make client should use default API if none is provided test pass.\n"
},
{
"from": "human",
"value": "/**\n * index.js\n * Client entry point.\n *\n * @author Francis Brito <fr.br94@gmail.com>\n * @license MIT\n */\n'use strict';\n\n/**\n * Client\n * Provides method... | javascript | chosen |
[
{
"from": "system",
"value": "Use denodeify in place of custom equivalent\n"
},
{
"from": "human",
"value": "var mysql = require('mysql'),\n config = require('../config'),\n Promise = require('promise');\n\nvar pool = mysql.createPool({\n host: config.mysql.host,\n database: config.mys... | javascript | chosen |
[
{
"from": "system",
"value": "Fix typo for Document model\n"
},
{
"from": "human",
"value": "import Attachment from \"./models/attachment\"\nimport AttachmentManager from \"./models/attachment_manager\"\nimport AttachmentPiece from \"./models/attachment_piece\"\nimport Block from \"./models/bloc... | javascript | chosen |
[
{
"from": "system",
"value": "Add a way to create a new todo.\n"
},
{
"from": "human",
"value": "define([ 'fossil/views/collection', 'fossil/views/collection' ], function (View, CollectionView) {\n\n var ItemView = View.extend({\n tagName: 'li',\n template: '<%= linkTo(title, id... | javascript | chosen |
[
{
"from": "system",
"value": "Add logging and fix crash from previous feature\n"
},
{
"from": "human",
"value": "import url from 'url';\n\n/**\n * Skip opening the link through Facebook.\n * It converts [facebook|messenger].com/l.php?u=<encodedUrl> to <unencodedUrl>.\n */\nfunction skipFacebookR... | javascript | chosen |
[
{
"from": "system",
"value": "Switch logOut and TripCount buttons\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport { connect } from 'react-redux';\nimport { Link } from 'react-router';\nimport { hideTrip, showTrip } from 'lib/actions/trip';\nimport { logOut } from 'lib/actio... | javascript | chosen |
[
{
"from": "system",
"value": "Add the extension to react-counter example\n"
},
{
"from": "human",
"value": "import React, { Component, PropTypes } from 'react';\n\nconst reducer = (state = { counter: 0 }, action) => {\n switch (action.type) {\n case 'INCREMENT':\n return { counter: stat... | javascript | chosen |
[
{
"from": "system",
"value": "tools: Add missing declarations to Q extern file\n"
},
{
"from": "human",
"value": "var Q = {};\n\n/**\n * @constructor\n */\nfunction Deferred () {};\n\nDeferred.prototype.reject = function (args) {};\n\nDeferred.prototype.resolve = function (args) {};\n\n/**\n * @... | javascript | chosen |
[
{
"from": "system",
"value": "Remove name since it's redundant, show just asset name and download count\n"
},
{
"from": "human",
"value": "document.getElementById(\"ayuda\").setAttribute(\"aria-current\", \"page\");\n\nvar aside = document.getElementById(\"complementario\");\n\nvar form = docume... | javascript | chosen |
[
{
"from": "system",
"value": "Fix error when trying to send user model to response instead of user values\n"
},
{
"from": "human",
"value": "const _ = require('lodash')\nconst User = require('./../../models/user')\n\nconst usersRoutes = (api) => {\n api.post('/users', (req, res) => {\n Us... | javascript | chosen |
[
{
"from": "system",
"value": "Add global middleware to initialize shared namespace\n"
},
{
"from": "human",
"value": "/**\n * Entry point of hyperion server\n * @module server/server\n */\n'use strict';\n\nvar bodyParser = require('body-parser');\nvar express = require('express');\nvar mongoose ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix the response from Wit:\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst _ = require('lodash');\nconst Promise = require('bluebird');\n\nconst Facebook = require('./facebook');\nconst sessions = require('./sessions');\nconst keepr = require('./keepr');\n... | javascript | chosen |
[
{
"from": "system",
"value": "Make demo max out at 40 turns\n"
},
{
"from": "human",
"value": "var ClassicChess = require('../classic-chess.js');\nvar GuiBoard = require('../lib/gui_board.js');\nvar _ = require('lodash');\n\ndescribe('Classic Chess', function() {\n it('everything', function() {... | javascript | chosen |
[
{
"from": "system",
"value": "Add line break to common.js\n"
},
{
"from": "human",
"value": "global.sinon = require('sinon');\nglobal.should = require('chai').use(\n require('sinon-chai')\n).should();"
},
{
"from": "gpt",
"value": "global.sinon = require('sinon');\nglobal.should = r... | javascript | chosen |
[
{
"from": "system",
"value": "Remove outcommented code in new row spec.\n"
},
{
"from": "human",
"value": "// helper functions defined in helpers.js\nvar data = generateData(10);\nvar columns = getColumns(data);\n\ndescribe(\"sensei-grid new row\", function () {\n\n var grid;\n var $el = $... | javascript | chosen |
[
{
"from": "system",
"value": "Rework test to reflect Plexacious' new purpose\n"
},
{
"from": "human",
"value": "const { expect } = require('chai');\nconst Plexacious = require('../');\nconst plexConfig = {\n hostname: 'macedonia.ketsugi.com',\n token: 'ntjA6xHPg1puxkBBZjH5'\n};\n\ndescribe('Pl... | javascript | chosen |
[
{
"from": "system",
"value": "Refactor listen test utility more functional"
},
{
"from": "human",
"value": "\n\nexport function listen(dispatcher) {\n const steps = []\n return {step, exec}\n\n function step(fn) {\n steps.push(fn)\n return {step, exec}\n }\n function exec() {\n dis... | javascript | chosen |
[
{
"from": "system",
"value": "Update index from lunr to elasticlunr\n\n"
},
{
"from": "human",
"value": "import lunr from 'lunr';\n\nexport default lunr(function index() {\n this.field('name', { boost: 100 });\n this.field('location', { boost: 10 });\n this.field('website');\n this.ref('key'... | javascript | chosen |
[
{
"from": "system",
"value": "Increase Karma and Mocha timeout\n"
},
{
"from": "human",
"value": "/* eslint-env node */\n'use strict';\n\nmodule.exports = function(config) {\n config.set({\n files: [\n { pattern: 'test/support/*.html', included: false },\n 'test/support/global.js',... | javascript | chosen |
[
{
"from": "system",
"value": "Remove default 'group' class name\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport classNames from 'classnames';\n\nimport ListItem from './ListItem';\n\nexport default class List extends React.Component {\n\n getListItems(list, childIndex) {\n... | javascript | chosen |
[
{
"from": "system",
"value": "Revert Promise to Ember.Promise change\n"
},
{
"from": "human",
"value": "import Ember from 'ember';\n\nexport default Ember.Controller.extend({\n possibleTypes: Ember.computed.map('model.type', m => m),\n assignedLots: Ember.computed.map('model.lots', m => m)... | javascript | chosen |
[
{
"from": "system",
"value": "Add more directories to narrow by default\n"
},
{
"from": "human",
"value": "\"use babel\";\n\nexport const DEFAULT_ACTIVE_FILE_DIR = 'Active file\\'s directory';\nexport const DEFAULT_PROJECT_ROOT = 'Project root';\nexport const DEFAULT_EMPTY = 'Empty';\n\n\nexport... | javascript | chosen |
[
{
"from": "system",
"value": "Switch to buttons to avoid the hash href.\n"
},
{
"from": "human",
"value": "import React from 'react';\n\nconst Navigation = ({ week, day, triggerNavigation }) => {\n const handleNext = () => {\n triggerNavigation(1);\n return false;\n }\n\n const handlePr... | javascript | chosen |
[
{
"from": "system",
"value": "refactor(react-redux-spark): Move injector to enhancer pattern\n"
},
{
"from": "human",
"value": "import React, {Component} from 'react';\nimport PropTypes from 'prop-types';\nimport {getDisplayName} from '@ciscospark/react-component-utils';\n\nimport SparkComponent... | javascript | chosen |
[
{
"from": "system",
"value": "Repair option if params not exists.\n"
},
{
"from": "human",
"value": "var PermissionConstructor = require('./PermissionConstructor').PermissionConstructor;\n\nfunction WebService(currentUser) {\n\tthis._currentUser = currentUser;\n\tthis._dependencies = {};\n\tthis... | javascript | chosen |
[
{
"from": "system",
"value": "Update cli to use package.json name\n"
},
{
"from": "human",
"value": "import chalk from 'chalk'\n\nexport default `\n Usage\n ${chalk.grey('$')} ${chalk.green('webpack-ng2-seed')} [${chalk.cyan('build')}/${chalk.cyan('test')}/${chalk.cyan('start')}]\n\n Option... | javascript | chosen |
[
{
"from": "system",
"value": "Fix the bug once and for all\n"
},
{
"from": "human",
"value": "var addFollowers = require('./follow');\nvar checkAuth = require('./check_auth');\nvar checkPrivilege = require('./privilege_check');\nvar githubOAuth = require('./github_oauth');\nvar users = require('... | javascript | chosen |
[
{
"from": "system",
"value": "Update app min width and min height\n"
},
{
"from": "human",
"value": "const fs = require('fs');\nconst electron = require('electron');\n\nconst { app } = electron;\nconst { BrowserWindow } = electron;\n\nconst dbExists = () => {\n const dbPath = '.config/db';\n i... | javascript | chosen |
[
{
"from": "system",
"value": "Add button for PlayDates view\n"
},
{
"from": "human",
"value": "import React, { Component } from 'react';\nimport {\n AppRegistry,\n StyleSheet,\n Text,\n View,\n Navigator,\n TouchableHighlight\n} from 'react-native';\n\nimport MapScene from \"./MapScene\";\... | javascript | chosen |
[
{
"from": "system",
"value": "Make published library name mandatory until we can figure out how to make it optional\n"
},
{
"from": "human",
"value": "import {LibraryPublishCommand, LibraryPublishCommandSite} from '../cmd';\nimport chalk from 'chalk';\nimport log from '../app/log';\nimport {spin... | javascript | chosen |
[
{
"from": "system",
"value": "Update demon hunter mitigation check abilities.\n"
},
{
"from": "human",
"value": "import CoreMitigationCheck from 'parser/shared/modules/MitigationCheck';\nimport SPELLS from 'common/SPELLS';\n\n\nclass MitigationCheck extends CoreMitigationCheck {\n constructor(.... | javascript | chosen |
[
{
"from": "system",
"value": "Define the public methods in the private space\n"
},
{
"from": "human",
"value": "var Gificiency = (function() {\n 'use strict';\n\n var searchField = $('.search');\n var items = $('li');\n var links = $('a');\n\n var search = function(filter) {\n links.each... | javascript | chosen |
[
{
"from": "system",
"value": "Enable Redux DevTools in example code\n"
},
{
"from": "human",
"value": "import { AppContainer } from 'react-hot-loader'\nimport { applyMiddleware, compose, createStore } from 'redux'\nimport { createBrowserHistory } from 'history'\nimport { routerMiddleware, connec... | javascript | chosen |
[
{
"from": "system",
"value": "Make use of (new) Turkish support in output formats\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\n\nvar readline = require('readline');\nvar bcv_parser = require('bible-passage-reference-parser/js/tr_bcv_parser').bcv_parser;\nvar bcv = new bcv_parser();\nv... | javascript | chosen |
[
{
"from": "system",
"value": "Add timeout in hope to catch stdout on travis\n"
},
{
"from": "human",
"value": "var expect = require('expect.js');\nvar helpers = require('../helpers');\n\ndescribe('bower', function () {\n\n var oldStdout;\n var text;\n\n before(function() {\n oldS... | javascript | chosen |
[
{
"from": "system",
"value": "Fix the bug that initializeState and updateState method of composite layer are not properly invoked\n"
},
{
"from": "human",
"value": "import Layer from './layer';\n\nexport default class CompositeLayer extends Layer {\n constructor(props) {\n super(props);\n }... | javascript | chosen |
[
{
"from": "system",
"value": "Switch statement tests for constants rather than string literals.\n"
},
{
"from": "human",
"value": "const initalState = [\n {\n name: 'JavaScript 101',\n selected: false,\n id: 1\n }\n];\n\nexport default function organisations ( state = ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix \"My Data\" page JS views\n"
},
{
"from": "human",
"value": "//The loading screen view\ndefine(['backbone', 'underscore', 'spin'], function(Backbone, _, Spinner) {\n 'use strict';\n\n var LoadScreenView = Backbone.View.extend({\n\n className: 'spinne... | javascript | chosen |
[
{
"from": "system",
"value": "Handle empty response inside Github monitor.\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst GitHubApi = require('github');\nconst github = new GitHubApi({\n version: '3.0.0',\n debug: false,\n protocol: 'https',\n host: 'api.github.com',\n timeout: 5... | javascript | chosen |
[
{
"from": "system",
"value": "Add better promise chain for adding extras\n"
},
{
"from": "human",
"value": "'use strict';\n\nmodule.exports =\nangular.module('quill-grammar.services.rule', [\n require('./crud.js').name,\n require('./ruleQuestion.js').name,\n])\n\n.factory('RuleService', functi... | javascript | chosen |
[
{
"from": "system",
"value": "Change style in order to pass unit test\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\n'use strict';\n\nvar ArgumentParser = require('../lib/argparse').ArgumentParser;\nvar parser = new ArgumentParser({\n version: '0.0.1',\n addHelp: true,\n description:... | javascript | chosen |
[
{
"from": "system",
"value": "Include semantic ui as extra asset\n"
},
{
"from": "human",
"value": "/* global require, module */\n\nvar EmberApp = require('ember-cli/lib/broccoli/ember-app');\n\nmodule.exports = function(defaults) {\n\n var app = new EmberApp(defaults, {\n // Any other optio... | javascript | chosen |
[
{
"from": "system",
"value": "Add a helper for generation a unique path for a module.\n"
},
{
"from": "human",
"value": "import {uniqueId} from \"lodash\";\n\nimport {createStore, createModule} from \"../src\";\n\nexport function getActionCreator() {\n const type = uniqueId(\"action\");\n\n co... | javascript | chosen |
[
{
"from": "system",
"value": "Add favName field to addFavorite()\n"
},
{
"from": "human",
"value": "var Storage = require('FuseJS/Storage');\n\nvar data = 'favorites';\n\n\n/* ...\n-----------------------------------------------------------------------------*/\nvar addFavorite\n, deleteFavorite\... | javascript | chosen |
[
{
"from": "system",
"value": "Index on ISIN for StockData\n"
},
{
"from": "human",
"value": "define([], function() {\n\n function createStockDataTable() {\n alasql('CREATE TABLE IF NOT EXISTS StockData ( \\\n namn STRING, \\\n kortnamn STRING,\\\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Update thorax plugin for runSection/bindSection"
},
{
"from": "human",
"value": "/*global Costanza */\nfunction bindEventHandler(eventName, params) {\n eventName += params.originalName;\n\n var callback = params.handler,\n method = _.isFunction(callback) ? ca... | javascript | chosen |
[
{
"from": "human",
"value": "Create function for getting the value of number button\n"
},
{
"from": "gpt",
"value": "/* When a \"number\" button is clicked\n\t\tcheck if current num is undefined\n\t\t\tif yes,\n\t\t\t\tset current num = buttons value\n\t\t\tif no,\n\t\t\t\tset current num = cur... | javascript | chosen |
[
{
"from": "system",
"value": "Use default parser for Reify Module.prototype._compile hook.\n\nThis saves us from having to install @babel/parser in the server bundle.\n\nThere is currently a bug in Reify that prevents it from loading this\nparser by default, but we can work around that on the Meteor side fo... | javascript | chosen |
[
{
"from": "system",
"value": "Implement flow for IO module\n"
},
{
"from": "human",
"value": "export default {\n // puts(any) :: \"ok\"\n puts() {\n console.log.apply(console, arguments);\n return \"ok\";\n },\n\n // useful for printing out the contents in a pipeline\n //\n // exampl... | javascript | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.