conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Fix crash on no options\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar minify = require('html-minifier').minify;\n\nfunction minifyHTML(opts) {\n function minifier(req, res, next) {\n if (opts.override !== true) {\n res.renderMin = func... | javascript | chosen |
[
{
"from": "system",
"value": "Use headless Chrome for Protractor tests\n\n(see https://github.com/angular/protractor/blob/master/docs/browser-setup.md)\n"
},
{
"from": "human",
"value": "'use strict'\n\nexports.config = {\n directConnect: true,\n\n allScriptsTimeout: 80000,\n\n specs: [\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Call end when done mapping.\n"
},
{
"from": "human",
"value": "var events = require('events')\n , util = require('util');\n\n\nfunction Mapper() {\n events.EventEmitter.call(this);\n}\n\nutil.inherits(Mapper, events.EventEmitter);\n\nMapper.prototype.map = functio... | javascript | chosen |
[
{
"from": "system",
"value": "Change oscillator pitch to be represented as semitones\n"
},
{
"from": "human",
"value": "var Layer = require('./Layer');\nvar audioNotes = require('audio-notes');\nvar oscillatorParams = require('./mixins/oscillatorParams');\n\nvar Oscillator = Layer.extend(oscilla... | javascript | chosen |
[
{
"from": "system",
"value": "Add more checks to `Plugin`\n\n- Add checks for correct execution context in method calls\n- Ensure that a `Plugin` instance is only loaded once\n- Make internal call to `acceptEvent` async\n"
},
{
"from": "human",
"value": "const events = require('events');\n\ncons... | javascript | chosen |
[
{
"from": "system",
"value": "Change precedence of fillStyle's parameters\n\nUser provided `style` overrides should take precedence over color."
},
{
"from": "human",
"value": "import React from 'react';\n\nexport default class SparklinesLine extends React.Component {\n\n static propTypes = {... | javascript | chosen |
[
{
"from": "system",
"value": "Send JSON response instead of string\n"
},
{
"from": "human",
"value": "var express = require('express');\nvar bodyParser = require('body-parser');\nvar elementExplorerClient = require('./elementExplorerClient');\nvar cliHelper = require('./cliHelper');\n\nvar start... | javascript | chosen |
[
{
"from": "system",
"value": "Update refs when the virtual dom is updated\n"
},
{
"from": "human",
"value": "var React = require(\"react\");\nvar _ = require(\"underscore\");\nvar extend = require(\"./extend\");\nvar elementFactory = require(\"./elementFactory\");\n\nfunction PageObject(props) {... | javascript | chosen |
[
{
"from": "system",
"value": "fix(webpack): Use external `react` and `react-dom`\n\nPrevent bundling React and ReactDOM to use a single version of React if one is already included.\n\nRefs https://github.com/scup/atellier/issues/33\n"
},
{
"from": "human",
"value": "var path = require('path');\n... | javascript | chosen |
[
{
"from": "system",
"value": "Mark moment as external again\n"
},
{
"from": "human",
"value": "const path = require('path')\n\nmodule.exports = (env, argv) => ({\n entry: './src/components/App.js',\n\n output: {\n filename: 'bundle.js',\n path: __dirname\n },\n\n devtoo... | javascript | chosen |
[
{
"from": "system",
"value": "Use old filename to ensure backward compatibility\n"
},
{
"from": "human",
"value": "const path = require('path');\nconst UglifyJsPlugin = require('uglifyjs-webpack-plugin')\n\nmodule.exports = {\n entry: {\n 'dolphin-platform.bundle': './src/clientContext... | javascript | chosen |
[
{
"from": "system",
"value": "fix(webpack): Fix whatwg-url URL externals entry\n"
},
{
"from": "human",
"value": "var path = require('path')\n\nmodule.exports = {\n entry: [\n './src/index.js'\n ],\n output: {\n path: path.join(__dirname, '/dist/'),\n filename: 'oidc.rp.min.js',\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix for webpack output location on CI server\n"
},
{
"from": "human",
"value": "const path = require('path');\nconst VueLoaderPlugin = require('vue-loader/lib/plugin');\n\nmodule.exports = {\n // webpack folder's entry js - excluded from jekll's build process.\n e... | javascript | chosen |
[
{
"from": "system",
"value": "Fix name of production CSS file\n"
},
{
"from": "human",
"value": "const MiniCssExtractPlugin = require('mini-css-extract-plugin')\nconst externals = require('webpack-node-externals')\nconst path = require('path')\n\nconst devMode = process.env.NODE_ENV !== 'product... | javascript | chosen |
[
{
"from": "system",
"value": "Configure webpack to use the extract text plugin\n"
},
{
"from": "human",
"value": "var webpack = require('webpack'); \nmodule.exports = { \n entry: [\n \"./src/components/app.js\"\n ],\n output: {\n path: __dirname + '/static',\n filename: \"bundle.js... | javascript | chosen |
[
{
"from": "system",
"value": "Set atom target for webpack\n"
},
{
"from": "human",
"value": "var webpack = require('webpack')\n\nmodule.exports = {\n contentBase: './dist/',\n cache: true,\n inline: true,\n entry: {\n app: ['webpack/hot/dev-server', './js/entry.js']\n },\n devtool: '#so... | javascript | chosen |
[
{
"from": "system",
"value": "Optimize production builds by passing in NODE_ENV\n\nReact contains a lot of debugging machinery that is being run throughout\ndevelopment. This should always be stripped out in production in order\nto make the application more performant. The most simple way to do this\nis wit... | javascript | chosen |
[
{
"from": "system",
"value": "Stop loading jQuery – can we get by without it?\n"
},
{
"from": "human",
"value": "---\nlibrary: jquery-2.1.3.min.js\n---\n// If using a JS framework, include it here\n{% include_relative _lib/{{page.library}} %}\n\n// Application code goes here"
},
{
"from"... | javascript | chosen |
[
{
"from": "system",
"value": "Remove engine specific global exports from ember-views.\n"
},
{
"from": "human",
"value": "/**\n@module ember\n@submodule ember-views\n*/\n\n// BEGIN IMPORTS\nimport Ember from 'ember-runtime';\nimport jQuery from 'ember-views/system/jquery';\nimport {\n isSimpleCl... | javascript | chosen |
[
{
"from": "system",
"value": "Use requestAnimationFrame instead of setInterval\n\n* More information about it here http://paulirish.com/2011/requestanimationframe-for-smart-animating/\n"
},
{
"from": "human",
"value": "/* global Game */\n(function () {\n 'use strict';\n\n Game.init();\n\n var... | javascript | chosen |
[
{
"from": "system",
"value": "Improve LocaleToggle messages definition syntax\n"
},
{
"from": "human",
"value": "/*\n *\n * LanguageToggle\n *\n */\n\nimport React from 'react';\nimport { connect } from 'react-redux';\nimport { selectLocale } from '../LanguageProvider/selectors';\nimport { chang... | javascript | chosen |
[
{
"from": "system",
"value": "Add component name variable declaration to generated components\n"
},
{
"from": "human",
"value": "'use strict';\nvar util = require('util');\nvar yeoman = require('yeoman-generator');\nvar fs = require('fs');\n\nvar ComponentGenerator = module.exports = function Co... | javascript | chosen |
[
{
"from": "system",
"value": "Build: Remove CRLF line endings to fix builds on Windows\n\nClose gh-3929"
},
{
"from": "human",
"value": "var fs = require( \"fs\" );\n\nmodule.exports = function( grunt ) {\n\tgrunt.registerTask( \"qunit_fixture\", function() {\n\t\tvar dest = \"./test/data/qunit-... | javascript | chosen |
[
{
"from": "system",
"value": "Support no callback in getForEntity\n"
},
{
"from": "human",
"value": "/* global BoundDocument:false - from dispatch:bound-document */\n\nConfiguration.subscription = Meteor.subscribe('__entity_configuration');\n\n/**\n * Get the configuration object for an entity, ... | javascript | chosen |
[
{
"from": "system",
"value": "Read the package info asynchronously\n"
},
{
"from": "human",
"value": "/*\n * config\n * describes an object that holds various config\n * config will initialise itself when it is required\n *\n * Copyright © 2013 Matt Styles\n * Licensed under the MIT license\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Return today's name in response."
},
{
"from": "human",
"value": "var host = (process.env.VCAP_APP_HOST || 'localhost');\r\nvar port = (process.env.VCAP_APP_PORT || 8080);\r\nvar http = require('http');\r\n\r\nvar server = http.createServer( function(request, respon... | javascript | chosen |
[
{
"from": "system",
"value": "Use className instead of class in jsx element\n"
},
{
"from": "human",
"value": "import React from 'react';\n\nconst BorrowRequests = (props) => {\n const { books } = props;\n if (!books.length) {\n return (\n <div className=\"row center\">\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Move message interval into a global constant\n"
},
{
"from": "human",
"value": "/**\n * lib/app.js: main module for `bonta` CLI utility\n *\n * Copyright 2015, Sudaraka Wijesinghe <sudaraka@sudaraka.org>\n *\n * This program comes with ABSOLUTELY NO WARRANTY;\n * Th... | javascript | chosen |
[
{
"from": "system",
"value": "Use UNIX escaping to apply color to file and line number strings\n"
},
{
"from": "human",
"value": "module.exports = new Wog;\n\n// converts arguments to a string\nfunction _argsToString () {\n var argArray = Array.prototype.slice.call(arguments);\n return arg... | javascript | chosen |
[
{
"from": "system",
"value": "Correct data migration wheere clause\n"
},
{
"from": "human",
"value": "\nexports.up = async function (knex) {\n await knex.schema.table('group_widgets', t => {\n t.string('context')\n })\n\n const now = new Date().toISOString()\n\n await knex.raw(`\n INSERT... | javascript | chosen |
[
{
"from": "system",
"value": "Change variable from snake_case to camelCase.\n\nSigned-off-by: Kristján Oddsson <7f4038d71424a99d2ff6bb9f6d45a8ec0dfda48e@gmail.com>\n"
},
{
"from": "human",
"value": "var React = require('react/addons');\nvar ContainerListItem = require('./ContainerListItem.react'... | javascript | chosen |
[
{
"from": "system",
"value": "Change config to match socrata docs, even though other fields aren't required?\n"
},
{
"from": "human",
"value": "var fs = require('fs');\n\nvar config = {\n domain: process.env.DOMAIN,\n username: process.env.USERNAME,\n password: process.env.PASSWORD,\n appTok... | javascript | chosen |
[
{
"from": "system",
"value": "Make transformations apply correctly to the matrix\n"
},
{
"from": "human",
"value": "/**\n * @depends App.js\n * @depends BasicRenderer.js\n * @depends Framebuffer.js\n */\n\nvar FramebufferRenderer = new Class({\n Extends: BasicRenderer,\n initialize: functi... | javascript | chosen |
[
{
"from": "system",
"value": "Add operation id generator tests\n"
},
{
"from": "human",
"value": "var expect = require('chai').expect;\nvar helper = require('./helper');\n\ndescribe('helper', function () {\n it('should camelCase text', function () {\n expect(helper.camelCase('snake_case')).t... | javascript | chosen |
[
{
"from": "system",
"value": "Use semver.rcompare to sort array of versions\n\nThis removes dependency against `sort` unix command\n"
},
{
"from": "human",
"value": "'use strict'\n\nconst semver = require('semver')\n\nconst exec = require('./util').exec\nconst logger = require('./logging').logge... | javascript | chosen |
[
{
"from": "system",
"value": "Change default max field width to be that of an ObjectId.\n"
},
{
"from": "human",
"value": "(function (factory) {\n 'use strict';\n\n // node\n if (module && 'exports' in module) {\n module.exports = factory();\n\n // mongo shell\n } else {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Make code consistent to project style\n"
},
{
"from": "human",
"value": "var path = require('path');\nvar lwip = require('lwip');\nvar config = require('../config');\n\nmodule.exports.createThumb = function(filename) {\n lwip.open('./img/' + filename, function(err,... | javascript | chosen |
[
{
"from": "system",
"value": "Make the button example a bit more dynamic\n"
},
{
"from": "human",
"value": "import React from 'react';\n\nvar Button = React.createClass({\n render() {\n const {\n children,\n kind = 'default'\n } = this.props;\n\n const cls = `btn btn-${kind}`... | javascript | chosen |
[
{
"from": "system",
"value": "Add default request timeout of 15s\n"
},
{
"from": "human",
"value": "const tokenHeader = 'Sanity-Token'\nconst projectHeader = 'Sanity-Project-ID'\n\nexports.getRequestOptions = config => {\n const headers = {}\n\n if (config.token) {\n headers[tokenHeader] = ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix click and dblclick toggling bug\n\nAfter triggering click event to keep the text unfolded,\ntoggling it back with dblclick wouldn't work as CSS wouldn't fire.\n"
},
{
"from": "human",
"value": "const elements = document.querySelectorAll('bracket-less');\n\nfunct... | javascript | chosen |
[
{
"from": "system",
"value": "Change baseUrl to match new API\n"
},
{
"from": "human",
"value": "\nvar gulp = require('gulp');\nvar execsyncs = require('gulp-execsyncs');\n\n\ngulp.task('prepare-data', function(cb) {\n execsyncs({\n cmds : [\n './prepare.sh',\n 'src/scripts/prepare... | javascript | chosen |
[
{
"from": "system",
"value": "Sort items and fix ‘All’ listening\n"
},
{
"from": "human",
"value": "define(['app'], function(app) {\n app.controller('CategoryCtrl', ['$scope', '$routeParams', '$location', '$http',\n function CategoryCtrl($scope, $routeParams, $location, $http) {\n var k... | javascript | chosen |
[
{
"from": "system",
"value": "fix(labels): Fix the demo to remove excess parens\n"
},
{
"from": "human",
"value": "import { div, label } from 'hexagon-js'\n\nexport default () => {\n return [\n label().text('Default Label')),\n label({ context: 'action' }).text('Action Label')),\n labe... | javascript | chosen |
[
{
"from": "system",
"value": "Update dependencies for new meteor 1.2.x projects.\n"
},
{
"from": "human",
"value": "Package.describe({\n name: 'typ:accounts-ldap',\n version: '0.0.1',\n summary: 'Accounts login handler for LDAP using ldapjs from npm',\n git: 'https://github.com/typ90/meteor-... | javascript | chosen |
[
{
"from": "system",
"value": "Fix tokenization of +1/-1 emojis\n"
},
{
"from": "human",
"value": "import lunr from 'lunr'\nimport data from '../../data'\n\nvar index = lunr(function() {\n this.pipeline.reset()\n\n this.field('short_name', { boost: 2 })\n this.field('emoticons')\n this.field(... | javascript | chosen |
[
{
"from": "system",
"value": "Add className prop\nto support adding extra class names\n"
},
{
"from": "human",
"value": "import React, { PureComponent } from 'react';\nimport cx from 'classnames';\n\nimport Box from '../box';\nimport theme from './theme.css';\n\nclass LoadingBar extends PureComp... | javascript | chosen |
[
{
"from": "system",
"value": "Fix realtime switch visual feedback\n\nSince we don't have TOGGLE_REALTIME action anymore, we should update\nUI of the switch on UPDATE_FRONTEND_PREFERENCES request.\n"
},
{
"from": "human",
"value": "import _ from 'lodash';\n\nimport * as ActionTypes from '../actio... | javascript | chosen |
[
{
"from": "system",
"value": "Add option to not convert value to UTC\n"
},
{
"from": "human",
"value": "import moment from 'moment';\nimport { GraphQLString } from 'graphql';\n\nexport default {\n type: GraphQLString,\n args: {\n format: {\n type: GraphQLString,\n },\n },\n resolv... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"Enable v1.3.0 on the development channel\"\n\nThis reverts commit a252c7d19a9149b8c1d9bc0ec4788ae1bb3c6b22.\n"
},
{
"from": "human",
"value": "{\n\t\"stable\": {\n\t\t\"CSIDE_version\": \"1.2.1\",\n \"nw_version\": \"0.21.4\",\n \"desc\": \"v1.2.1 - (... | javascript | chosen |
[
{
"from": "system",
"value": "Update concatenation algorithm to prevent strings larger than the max length\n\nFrom https://github.com/ljharb/proposal-string-pad-left-right/commit/7b6261b9a23cbc00daf0b232c1b40243adcce7d8"
},
{
"from": "human",
"value": "'use strict';\n\nvar bind = require('functi... | javascript | chosen |
[
{
"from": "system",
"value": "Set dashboard as next state after logging in\n"
},
{
"from": "human",
"value": "(function () {\n \"use strict\";\n\n angular.module(\"mfl.auth.controllers\", [\n \"mfl.auth.services\",\n \"ui.router\"\n ])\n\n .controller(\"mfl.auth.control... | javascript | chosen |
[
{
"from": "system",
"value": "Fix line ending from Windows to Unix style\n\nSee https://github.com/busterjs/buster/issues/401 for reference.\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\r\n\r\n/*\r\n * Copyright 2013, All Rights Reserved.\r\n *\r\n * Code licensed under the BSD License... | javascript | chosen |
[
{
"from": "system",
"value": "Make the transform cli command work\n"
},
{
"from": "human",
"value": "var fs = require(\"fs\");\nvar _assign = require(\"lodash/assign\");\nvar stealTools = require(\"../../index\");\nvar _clone = require(\"lodash/cloneDeep\");\nvar makeStealConfig = require(\"./ma... | javascript | chosen |
[
{
"from": "system",
"value": "Fix spec filter to point to the correct directory.\n"
},
{
"from": "human",
"value": "exports.config = {\n allScriptsTimeout: 11000,\n\n specs: [\n 'e2e-tests/*.js'\n ],\n\n capabilities: {\n 'browserName': 'chrome'\n },\n\n baseUrl: 'http://localhost:80... | javascript | chosen |
[
{
"from": "system",
"value": "Use this instead of local variable\n"
},
{
"from": "human",
"value": "/*\n * Application logic\n */\nvar Logic = {\n parser: PEG.buildParser(\" \\\n start = logic* \\\n logic = q:query a:action ' '* { return {query:q, action:a} } \\\n query = q:[^{]+ { re... | javascript | chosen |
[
{
"from": "system",
"value": "Fix box sizing overrides from normalizer\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport styled from 'styled-components';\n\nexport const DivComponent = (props) => (\n <mimic-div class={ props.className } { ...props }>\n { props.children }\... | javascript | chosen |
[
{
"from": "system",
"value": "Return object, not an integer, from getStorageVersion when no version is currently stored.\n"
},
{
"from": "human",
"value": "var storage = chrome.storage.sync;\nconst DEFAULT_STORAGE = chrome.storage.sync;\nconst TEST_STORAGE = chrome.storage.local;\n\nvar count = ... | javascript | chosen |
[
{
"from": "system",
"value": "Change Observer Pattern example with new one\n"
},
{
"from": "human",
"value": "var publisher = {\n subscribers: {\n any: [] // event type: subscribers\n },\n subscribe: function (fn, type) {\n type = type || 'any';\n if (typeof this.su... | javascript | chosen |
[
{
"from": "system",
"value": "Fix bug in serving partial css files\n"
},
{
"from": "human",
"value": "var task = function(gulp, config) {\n 'use strict';\n gulp.task('browserSync', function() {\n \n var path = require('path');\n var fs = require('fs');\n var browserSync = require('... | javascript | chosen |
[
{
"from": "system",
"value": "Embed secretballot using noconfidencevote instance\n"
},
{
"from": "human",
"value": "if (document.location.hostname == \"localhost\") {\n var baseurl = \"\";\n} else {\n var baseurl = \"https://representme.co.za\";\n}\ndocument.write('<div id=\"contactmps-emb... | javascript | chosen |
[
{
"from": "system",
"value": "Fix margin in notification count\n\nSigned-off-by: soupette <0a59f0508aa203bc732745954131d022d9f538a9@gmail.com>\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport styled from 'styled-components';\nimport PropTypes from 'prop-types';\nimport { Tex... | javascript | chosen |
[
{
"from": "system",
"value": "Set starting view of map to USA\n"
},
{
"from": "human",
"value": "var SkirmishMap = (function () {\n\n var map;\n function initialize() {\n console.log(\"SkirmishMap initializing\");\n var mapOptions;\n mapOptions = {\n center: n... | javascript | chosen |
[
{
"from": "system",
"value": "Fix message panel close button bug\n"
},
{
"from": "human",
"value": "const $ = require('jquery');\n\nexport default function( msg ) {\n $('.message-panel .message-content').html( msg );\n var $panel = $('.message-panel');\n var $textbox = $('#textbox');\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Change html tag from p to tag\n"
},
{
"from": "human",
"value": "import React from 'react'\n\nconst Header = (props) => {\n return (\n <div>\n <p onClick={() => { props.actions.prevDate() }}>prev</p>\n <h2>\n {props.store.date}\n <button ... | javascript | chosen |
[
{
"from": "system",
"value": "Test the unique aspects of $.set\n"
},
{
"from": "human",
"value": "describe(\"$.set\", function() {\n\tit(\"exists\", function() {\n\t\texpect($.set).to.exist;\n\t});\n\n\tit(\"sets options on the provided subject\", function() {\n\t\tvar element = $.set(document.c... | javascript | chosen |
[
{
"from": "system",
"value": "Fix Sauce Labs username and key\n"
},
{
"from": "human",
"value": "\nvar util = require('util');\nvar request = require('superagent');\n\nmodule.exports = {\n local: {\n dontReportSauceLabs: true\n },\n\n reporter: function(results, done) {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Use snapshots in Title tests\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport render from 'react-test-renderer';\nimport { shallow } from 'enzyme';\nimport Title from './Title';\nimport { singleLine } from '../../../test/test-helper';\n\nit('ren... | javascript | chosen |
[
{
"from": "system",
"value": "Make edit link show form.\n"
},
{
"from": "human",
"value": "$(document).ready(function() {\n // This is called after the document has loaded in its entirety\n // This guarantees that any elements we bind to will exist on the page\n // when we try to bind to them... | javascript | chosen |
[
{
"from": "system",
"value": "Fix shapes in SWF assets on NPM\n"
},
{
"from": "human",
"value": "module.exports = require(\"./../../_gen/openfl/utils/AssetLibrary\");\n\n// TODO: Put elsewhere?\nvar internal = {\n\tSWFLiteLibrary: require (\"../../_gen/openfl/_internal/swf/SWFLiteLibrary\").defa... | javascript | chosen |
[
{
"from": "system",
"value": "Make sure URL is unique\n"
},
{
"from": "human",
"value": "Posts = new Mongo.Collection('posts');\n\nPosts.allow({\n // User must be logged in to post\n insert: function (userId, doc) {\n return !! userId;\n }\n});\n\nMeteor.methods({\n postInsert... | javascript | chosen |
[
{
"from": "system",
"value": "Remove overlay defaulting to open on page load\n"
},
{
"from": "human",
"value": "import React from 'react'\n\nimport Sajari from './Sajari'\n\n/**\n * Sample that has a function to enable the overlay.\n */\nconst SampleApp = ({ enableOverlay }) => (\n <div>\n {... | javascript | chosen |
[
{
"from": "system",
"value": "Add license to new file.\n"
},
{
"from": "human",
"value": "// This needs to run first so that it can catch reported errors before Mocha's\n// global error handler does.\nwindow.catchReportedErrors = (() => {\n let currentHandler = undefined;\n\n window.addEventLi... | javascript | chosen |
[
{
"from": "system",
"value": "Move fs dependency in core dependencies\n"
},
{
"from": "human",
"value": "'use strict';\n\n/**\n * Module dependencies\n */\n\n// Node.js core.\nconst path = require('path');\n\n// Public node modules.\nconst _ = require('lodash');\nconst fs = require('fs');\n\nmod... | javascript | chosen |
[
{
"from": "system",
"value": "Update defaultSetting with defaut rosbridge address\n\nHi,\r\n\r\nCurrently no address are provide as default, so the page stop loading and we cannot configure where the WS server (rosbridge) is .\r\nBy using location.hostname as address we provide webserver addresse as defaul... | javascript | chosen |
[
{
"from": "system",
"value": "Add optional editor parameter to constructor. Add setCanvasView method.\n"
},
{
"from": "human",
"value": "function PPApplication(canvasName) {\n this.canvasName = canvasName;\n}\n\nPPApplication.prototype.setEditController = function (controller) {\n this.editCo... | javascript | chosen |
[
{
"from": "system",
"value": "Add listener for referential when creating a user\n"
},
{
"from": "human",
"value": "import * as Constants from '../constants/ActionTypes'\nimport Immutable from 'seamless-immutable'\n\nconst referential = (state = Immutable({}), action) => {\n\n switch (action.typ... | javascript | chosen |
[
{
"from": "system",
"value": "Add internal implementation to increase performance\n"
},
{
"from": "human",
"value": "'use strict';\n\n// MODULES //\n\nvar ltrim = require( '@stdlib/string/left-trim' );\nvar rtrim = require( '@stdlib/string/right-trim' );\n\n\n// MAIN //\n\n/**\n* Trim whitespace... | javascript | chosen |
[
{
"from": "system",
"value": "chore(sms): Store allowed phone numbers in a Set\n"
},
{
"from": "human",
"value": "/* This Source Code Form is subject to the terms of the Mozilla Public\n * License, v. 2.0. If a copy of the MPL was not distributed with this\n * file, You can obtain one at http://... | javascript | chosen |
[
{
"from": "system",
"value": "Use database URL for migrations.\n"
},
{
"from": "human",
"value": "console.log(\"Node Env Value:\", process.env);\nlet productionCredentials = {\n username: undefined,\n password: undefined,\n database: undefined,\n host: undefined\n};\n\nif (process.en... | javascript | chosen |
[
{
"from": "system",
"value": "Use ZulipStatusBar and background as per theme\n"
},
{
"from": "human",
"value": "/* @flow */\nimport React from 'react';\nimport { connect } from 'react-redux';\nimport { View, StyleSheet, KeyboardAvoidingView, Platform } from 'react-native';\n\nimport type { Local... | javascript | chosen |
[
{
"from": "system",
"value": "Remove extra trailing empty lines\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar readFileList = require( './../lib' );\n\n// Sync //\n\nvar files = readFileList.sync( [ __filename ], 'utf8' );\n// returns <ObjectArray>\n\nconsole.log( files instanceof Error... | javascript | chosen |
[
{
"from": "system",
"value": "Undo custom `unhandledrejection` and just use Raven's suggestions (too much spam of events that provide no information to resolve them)\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport { render } from 'react-dom';\nimport { Router, Route, browse... | javascript | chosen |
[
{
"from": "system",
"value": "Make new functions available to consumers of NPM package\n"
},
{
"from": "human",
"value": "/**\n * Copyright (c) 2015, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the ... | javascript | chosen |
[
{
"from": "system",
"value": "Check Debug folder for colony, otherwise skip\n"
},
{
"from": "human",
"value": "var fs = require('fs')\n , falafel = require('falafel')\n , colors = require('colors')\n , path = require('path')\n , spawn = require('child_process').spawn;\n\nvar colonize = requi... | javascript | chosen |
[
{
"from": "system",
"value": "refactor: Add comments and eslint igores.\n\nDescribe why loading first is necessary. Ad eslint ignores to prevent warnings about loading\n\nrelative paths before absolute imports.\n\nfixes #16\n"
},
{
"from": "human",
"value": "import './fix/safari';\nimport 'skate... | javascript | chosen |
[
{
"from": "system",
"value": "Refactor registerHandlers to return an observable of handlers\n"
},
{
"from": "human",
"value": "import {Subject} from 'rx';\nimport isolate from '@cycle/isolate';\n\nlet _id = 0;\n\nfunction id() {\n return _id++;\n};\n\nfunction registerHandlers(item, handlers, a... | javascript | chosen |
[
{
"from": "system",
"value": "Update to latest bootstrap technique.\n"
},
{
"from": "human",
"value": "'use strict';\n\nmodule.exports = function (grunt) {\n\n var vanilli = require('vanilli');\n\n grunt.registerTask('vanilli', 'Start/Stop Vanilli', function (target) {\n var config ... | javascript | chosen |
[
{
"from": "system",
"value": "feat(logout): Add binding for /logout api\n"
},
{
"from": "human",
"value": "'use strict'\n\nconst express = require('express')\nconst bodyParser = require('body-parser')\n\nfunction api (provider) {\n const router = express.Router('/')\n\n router.use(bodyParser.j... | javascript | chosen |
[
{
"from": "system",
"value": "Remove unit tests that were based on previous functionality\n"
},
{
"from": "human",
"value": "var Connection = require('../models/Connection');\nvar User = require('../models/User');\n\nexports.userRegistersConnections = function(test) {\n test.expect(8);\n v... | javascript | chosen |
[
{
"from": "system",
"value": "Add in lodash debounce for search lag fix\n"
},
{
"from": "human",
"value": "import React, { Component } from 'react';\nimport ReactDOM from 'react-dom';\nimport YTSearch from 'youtube-api-search';\n\nimport SearchBar from './components/SearchBar';\nimport VideoLi... | javascript | chosen |
[
{
"from": "system",
"value": "Fix for return to allow for silent errors\n"
},
{
"from": "human",
"value": "fs = require('fs');\n\nvar file = \"node_modules/request/node_modules/form-data/node_modules/combined-stream/lib/combined_stream.js\";\n\nfs.readFile(file,function(err,data){\n\tif(err) pro... | javascript | chosen |
[
{
"from": "system",
"value": "Add additional check if plugin has already been registered\n"
},
{
"from": "human",
"value": "/**\n * Install plugin.\n */\n\nimport Url from './url/index';\nimport Http from './http/index';\nimport Promise from './promise';\nimport Resource from './resource';\nimpo... | javascript | chosen |
[
{
"from": "system",
"value": "Remove slash after baseUrl and make sure entire url is not removed\n"
},
{
"from": "human",
"value": "const serve = require('serve/lib/server')\nconst relativePaths = require('./relative-paths')\n\n// taken from serve cli!\nprocess.env.ASSET_DIR = '/' + Math.random(... | javascript | chosen |
[
{
"from": "system",
"value": "Add Google Analytics tracking id\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport ReactDOM from 'react-dom';\nimport { Router, Route, hashHistory } from 'react-router'\n\nimport Home from './Home.react.js';\nimport BookList from './BookList.reac... | javascript | chosen |
[
{
"from": "system",
"value": "Fix compatibility issues in Firefox and Safari\n"
},
{
"from": "human",
"value": "const webpack = require(\"webpack\");\nconst fs = require(\"fs\");\n\nconst config = {\n entry: \"/src/app/entry.js\",\n output: {\n path: \"/src/dist\",\n filename... | javascript | chosen |
[
{
"from": "system",
"value": "Fix IE bug when calculating displayName\n\nIE does not have Function.prototype.bind. Supply a super-generic\nfallback of \"Component\" so that a String is always returned.\n"
},
{
"from": "human",
"value": "import React, { PropTypes } from \"react\"\n\n\nexport cons... | javascript | chosen |
[
{
"from": "system",
"value": "Update adapter find to return a promise.\n"
},
{
"from": "human",
"value": "/**\n * External imports\n */\nimport _ from 'underscore';\nimport mingo from 'mingo';\nimport libdebug from 'debug';\n\n// create debug logger\nconst debug = libdebug('storage-adapter');\n\... | javascript | chosen |
[
{
"from": "system",
"value": "Add example of es5 stateless functional component\n"
},
{
"from": "human",
"value": "/* eslint-disable no-console */\nconsole.log('hi');\n// Old ES5 way of creating a Class Component\n// var HelloWorld = React.createClass({\n// render: function() {\n// return ... | javascript | chosen |
[
{
"from": "system",
"value": "Use Example - Loop as entry file and print lexer result\n"
},
{
"from": "human",
"value": "import fs from 'fs';\nimport Lexer from './transpiler/lexer';\n\nlet fileContent = fs.readFileSync('Example.dilmalang');\n\nif (!fileContent) {\n\tconsole.error('File not foun... | javascript | chosen |
[
{
"from": "system",
"value": "Handle null parentNode from SVGInjector\n\nCredit to @apires for the idea in #13. See issues #12 and iconic/SVGInjector#32.\n"
},
{
"from": "human",
"value": "import React, { PureComponent, PropTypes } from 'react'\nimport SVGInjector from 'svg-injector'\n\nexport d... | javascript | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.