conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Replace Lorem Ipsum with intro text\n"
},
{
"from": "human",
"value": "'use strict';\nimport React from 'react';\nimport { Link } from 'react-router';\n\nvar Home = React.createClass({\n displayName: 'Home',\n\n render: function () {\n return (\n <section>... | javascript | chosen |
[
{
"from": "system",
"value": "Update user to only include requests that match root filter set\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar _ = require('lodash');\nvar glimpse = require('glimpse');\n\n// store Found Summary\n(function () {\n function processFoundSummary(requestRepos... | javascript | chosen |
[
{
"from": "system",
"value": "Use send instead of sendAction\n"
},
{
"from": "human",
"value": "import EmberObject from '@ember/object';\nimport Evented from '@ember/object/evented';\nimport { computed } from '@ember/object';\nimport ObjHash from './obj-hash';\nimport { unwrapper } from 'ember-d... | javascript | chosen |
[
{
"from": "system",
"value": "Change dev server port so less confusing\n"
},
{
"from": "human",
"value": "var webpack = require('webpack');\nvar WebpackDevServer = require('webpack-dev-server');\nvar config = require('./webpack-dev.config');\n\nnew WebpackDevServer(webpack(config), {\n publicPa... | javascript | chosen |
[
{
"from": "system",
"value": "Allow wrapping around current line even though not selected\n"
},
{
"from": "human",
"value": "console.log(\"Loading helpers.js\");\n\nwindow.snip$ = (function() {\n\n var path = require(\"path\");\n\n function currEd() { return lt.objs.editor.pool.last_active.cal... | javascript | chosen |
[
{
"from": "system",
"value": "Increase width of main input to 650px\n"
},
{
"from": "human",
"value": "// Height of main input\nexport const INPUT_HEIGHT = 45;\n\n// Heigth of default result line\nexport const RESULT_HEIGHT = 45;\n\n// Heigth of default result line\nexport const RESULT_WIDTH = 2... | javascript | chosen |
[
{
"from": "system",
"value": "Add possibility to pass options to rethinkdb-co run\n"
},
{
"from": "human",
"value": "var _ = require('lodash');\nvar RethinkDB = require(__dirname + '/../rethinkdb');\nvar connex = require(__dirname + '/../../lib');\n\nvar RethinkDBCo = module.exports = function(o... | javascript | chosen |
[
{
"from": "system",
"value": "Update server `syncFrequency` value to match client `sync_frequency`\n\nCurrently the server-side dataset sync frequencies are set to 10 seconds\nwhereas the client-side dataset sync frequencies are set to 5 seconds.\n\nHaving differing sync frequencies can cause unnecessary lo... | javascript | chosen |
[
{
"from": "system",
"value": "Use filesGlob from tsconfig in gulp file\n"
},
{
"from": "human",
"value": "var gulp = require('gulp');\nvar tslint = require('gulp-tslint');\nvar exec = require('child_process').exec;\nvar jasmine = require('gulp-jasmine');\nvar gulp = require('gulp-help'... | javascript | chosen |
[
{
"from": "system",
"value": "Add dot product function to math module.\n"
},
{
"from": "human",
"value": "// Math Library for ISAAC Physics.\n\n// addVector function.\n// Takes in two vectors, returns a new vector made by adding\n// the inputs together. If the two input vectors don't have the sa... | javascript | chosen |
[
{
"from": "system",
"value": "Remove arrow func compatible with old version node\n"
},
{
"from": "human",
"value": "const rollup = require('rollup').rollup;\nconst babel = require('rollup-plugin-babel');\n\nrollup({\n entry: './src/index.js',\n external: [\n 'babel-runtime/core-js/j... | javascript | chosen |
[
{
"from": "system",
"value": "Update up to changes in es5-ext\n"
},
{
"from": "human",
"value": "// Date object that always reflects current time (with one second resolution)\n\n'use strict';\n\nvar curry = require('es5-ext/lib/Function/prototype/curry')\n\n , update;\n\nupdate = function () {\... | javascript | chosen |
[
{
"from": "system",
"value": "Fix a problem with accessing peerconnection, use duration and pause in the API.\n"
},
{
"from": "human",
"value": "/* global APP */\n\n/**\n * A module for sending DTMF tones.\n */\nvar DTMFSender;\nvar initDtmfSender = function() {\n // TODO: This needs to reset... | javascript | chosen |
[
{
"from": "system",
"value": "Add a new subcription for the tomeDetails route\n"
},
{
"from": "human",
"value": "var subscriptions = new SubsManager();\n\nRouter.configure({\n\tlayoutTemplate: 'layout',\n\tloadingTemplate: 'loading',\n\tnotFoundTemplate: 'notFound'\n});\n\nRouter.route('/', {\n\... | javascript | chosen |
[
{
"from": "system",
"value": "Change apiURL default from docker to localhost\n\nAs this is a public repository, we can't assume everybody will be using docker\nand have the same container name.\n\nMOM-554\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar fs = require('fs');\nvar path = req... | javascript | chosen |
[
{
"from": "system",
"value": "Return default value on undefined only\n"
},
{
"from": "human",
"value": "/*****************************************************************************\n * utils.js\n * Includes various utility functions\n */\n\nvar path = require('path');\nvar fs = require('fs');\... | javascript | chosen |
[
{
"from": "system",
"value": "Remove the cache folder before initializing data cache.\n"
},
{
"from": "human",
"value": "var fs = require('fs');\nvar Settings = require('./Settings');\n\nvar DiskDataStore = {};\n\nDiskDataStore.init = function (){\n this._CACHE_PATH = Settings.get('cache_path')... | javascript | chosen |
[
{
"from": "system",
"value": "Add routes for layout and projects list\n"
},
{
"from": "human",
"value": "Router.configure({\n layoutTemplate: 'layout',\n waitOn: function() {\n return Meteor.subscribe('projects');\n }\n});\n\nRouter.route('/', {\n\n});\n"
},
{
"from": "gpt",
"v... | javascript | chosen |
[
{
"from": "system",
"value": "Change folder access right to 0755\n"
},
{
"from": "human",
"value": "module.exports = {\n\n mklibdir: {\n options: {\n mode: 0644,\n create: ['lib/fonts', 'lib/css', 'lib/font','lib/lang', 'dist', 'dist/font','dist/lang']\n }\n }\n};\n"
},
{
... | javascript | chosen |
[
{
"from": "system",
"value": "Add more files to ignore for production task\n"
},
{
"from": "human",
"value": "module.exports = {\n folder: {\n tasks: 'tasks',\n src: 'src',\n build: 'assets',\n prod: 'production'\n },\n task: {\n htmlHint: 'html-hint',\n jsHint: 'js-hint',\n... | javascript | chosen |
[
{
"from": "system",
"value": "Update babel example to take peer dependency to babel into account.\n\nSince npm 3 peer dependencies will not be installed automatically\n(which was the default in npm 2.x). For this reason, running\n npm install babel-loader\nin examples/babel will throw an error when running... | javascript | chosen |
[
{
"from": "system",
"value": "Implement smartcase matching with search keyword\n"
},
{
"from": "human",
"value": "/* @flow */\n\nimport _ from 'lodash'\nimport type { OrderedMap } from 'immutable';\nimport type MediaFile from './media_file';\n\nexport default class FileSeacher {\n files: Ordere... | javascript | chosen |
[
{
"from": "system",
"value": "Refactor to use a consistent name across functions\n"
},
{
"from": "human",
"value": "const compose = (...functions) => {\n return (...initial) => {\n let count = functions.length;\n\n return (function accum(arg) {\n return count ? (count--, accum(functi... | javascript | chosen |
[
{
"from": "system",
"value": "Set overflow:hidden to hide default windows scrollbars on drawer\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport Drawer from 'material-ui/Drawer';\nimport DrawerMenuItems from '../../containers/drawer-menu-items';\n\nimport * as ImagesHelper fr... | javascript | chosen |
[
{
"from": "system",
"value": "Sort user discussion list properly\n"
},
{
"from": "human",
"value": "import UserPage from './UserPage';\nimport DiscussionList from './DiscussionList';\n\n/**\n * The `DiscussionsUserPage` component shows a discussion list inside of a user\n * page.\n */\nexport de... | javascript | chosen |
[
{
"from": "system",
"value": "Disable CSS for ZEIT AMP theme\n"
},
{
"from": "human",
"value": "define([\n 'plugins/post-hash',\n 'plugins/status',\n 'plugins/predefined-types',\n 'theme/scripts/js/plugins/ampify',\n 'theme/scripts/js/plugins/button-pagination',\n 'theme/script... | javascript | chosen |
[
{
"from": "system",
"value": "Fix JS bug in FAQ\n"
},
{
"from": "human",
"value": "document.addEventListener(\"DOMContentLoaded\", function(){\n var select = document.querySelector('.locales select');\n select.addEventListener('change', function(event){\n origin = window.location.origin;\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Check for define.amd along with typeof(define)\n\nTo prevent crashing with other module loaders that support `define`, but are not full AMD module loaders, check for `define.amd` as well before defining the AMD module."
},
{
"from": "human",
"value": "(function(){va... | javascript | chosen |
[
{
"from": "system",
"value": "Fix 129026 COG & SOG\n"
},
{
"from": "human",
"value": "var chai = require(\"chai\");\nchai.Should();\nchai.use(require('chai-things'));\n\n\ndescribe('129026 COG & SOG, Rapid Update', function () {\n it('complete sentence converts', function () {\n var tree = r... | javascript | chosen |
[
{
"from": "system",
"value": "Remove test that tests function instance name since that is non standard\n"
},
{
"from": "human",
"value": "function testBlock() {\n // Test function expressions.\n {\n var x = function g() { return 'g'; } || function h() { return 'h'; };\n return x;\n }\n}... | javascript | chosen |
[
{
"from": "system",
"value": "Test suite: Fix overeager monkey-patching of the sinon.stub return value that made sinon.createStubInstance() return an object with getCall and getCalls methods.\n"
},
{
"from": "human",
"value": "// Monkey-patch sinon.create to patch all created spyCall instances\n... | javascript | chosen |
[
{
"from": "system",
"value": "Add tests to check missions_completed attribute in random drone generator\n"
},
{
"from": "human",
"value": "const { generateRandom } = require('../../server/simulation/drone');\n\ndescribe('generateRandom()', () => {\n\n const sampleArguments = {coords: {lat: 1, l... | javascript | chosen |
[
{
"from": "system",
"value": "Add view manager on test server\n"
},
{
"from": "human",
"value": "/**\n * Created by Omnius on 18/07/2016.\n */\n'use strict';\n\nconst Hapi = require('hapi');\nconst HapiAuthBasic = require('hapi-auth-basic');\nconst HapiAuthHawk = require('hapi-auth-hawk');\ncons... | javascript | chosen |
[
{
"from": "system",
"value": "Add render template with js instructions\n"
},
{
"from": "human",
"value": "\n// http://mochajs.org/\n// @see http://chaijs.com/api/bdd/\ndescribe('View', function() {\n var App;\n var View;\n var testView;\n\n beforeEach(function() {\n App = window.App;\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Change db config to use postgres. Use secret config file to load connection settings.\n"
},
{
"from": "human",
"value": "/**\n * Global adapter config\n * \n * The `adapters` configuration object lets you create different global \"saved settings\"\n * that you can m... | javascript | chosen |
[
{
"from": "system",
"value": "Fix the console fallbacks to not break older browsers.\n\nThe console fallbacks were designed to work if no console API was\ndefined, but it still ended up accessing stuff inside of console. It\nalso had some unused code at the end. This has been fixed and should\nrestore compa... | javascript | chosen |
[
{
"from": "system",
"value": "Fix infinite scroll loading helper\n"
},
{
"from": "human",
"value": "Template.home.rendered = function () {\n initInfiniteScroll.call(this, 'topics');\n};\n\nTemplate.home.destroyed = function () {\n stopInfiniteScroll.call(this);\n};\n\nTemplate.home.helpers({\n... | javascript | chosen |
[
{
"from": "system",
"value": "Fix NaN when input is 0\n"
},
{
"from": "human",
"value": "(function() {\n 'use strict';\n\n var app = angular.module('bonito-filters', []);\n\n /**\n * Print large number using prefixes (k, M, G, etc.) to\n * keep their size short and to be friendlier to the... | javascript | chosen |
[
{
"from": "system",
"value": "Disable mongo unified topology, see what happens...\n"
},
{
"from": "human",
"value": "const config = require('config');\n\nconst mongooseOptions = {\n useNewUrlParser: true,\n useFindAndModify: false,\n useCreateIndex: true,\n useUnifiedTopology: true,\... | javascript | chosen |
[
{
"from": "system",
"value": "Change default API version to v3\n"
},
{
"from": "human",
"value": "var _ = require('lodash');\n\nvar Client = module.exports = function(config) {\n if (! config) {\n config = {};\n }\n\n this.version = config.version || '1';\n\n this._apiSetup();\n};\n\nClie... | javascript | chosen |
[
{
"from": "system",
"value": "Allow multiple versions of ember-cli-string-helpers\n\nThis is a temporary workaround for a conflict with ember-light-table\n"
},
{
"from": "human",
"value": "/* eslint-env node */\n'use strict';\n\nmodule.exports = {\n allowedVersions: {\n 'ember-getowner-polyf... | javascript | chosen |
[
{
"from": "system",
"value": "Add SQLite specific logic for recent migration.\n\nIt appeared that out of box renameColumn looses some meta inforamtion\nfor subject column.\n"
},
{
"from": "human",
"value": "'use strict';\n\nmodule.exports = {\n up: function (queryInterface, Sequelize) {\n re... | javascript | chosen |
[
{
"from": "system",
"value": "Set global path and +1 month expiration date in angular cookies\n"
},
{
"from": "human",
"value": "(function() {\n 'use strict';\n\n angular\n .module('app', ['ngMaterial', 'ngMessages', 'ngCookies', 'ngSanitize'])\n .config(['$mdThemingProvider'... | javascript | chosen |
[
{
"from": "system",
"value": "Fix type in backend example\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar passport = require('passport'),\n BitbucketTokenStrategy = require('../../lib/index'),\n User = require('mongoose').model('User');\n\nmodule.exports = function () {\n\n passport.u... | javascript | chosen |
[
{
"from": "system",
"value": "Use iOS version of nabar\n"
},
{
"from": "human",
"value": "import React from 'react-native';\nconst {\n AppRegistry,\n Component,\n Text,\n View\n} = React;\nimport NavigationBar from 'react-native-navbar';\n\nclass Basic extends Component {\n render() {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add a better transform example\n"
},
{
"from": "human",
"value": "/**\n The `DS.Transform` class is used to serialize and deserialize model\n attributes when they are saved or loaded from an\n adapter. Subclassing `DS.Transform` is useful for creating custom\n a... | javascript | chosen |
[
{
"from": "system",
"value": "Add more chat room infos.\n"
},
{
"from": "human",
"value": "module.exports = {\n\tappKey \t\t: 'mgb7ka1nbs3wg',\n\tappSecret \t: 'm1Rv2MHHND',\n\ttoken : {\n\t\tuserId \t\t: '0001',\n\t\tname \t\t: 'TestUser',\n\t\tportraitUri : 'http://rongcloud.cn/images/logo.p... | javascript | chosen |
[
{
"from": "system",
"value": "Connect to our channel:topic as really basic test.\n"
},
{
"from": "human",
"value": "import Ember from 'ember';\n\nexport default Ember.Component.extend({\n tagName: 'ul',\n channel: Ember.inject.service(),\n});\n"
},
{
"from": "gpt",
"value": "import... | javascript | chosen |
[
{
"from": "system",
"value": "Update to support Synchronous Parsing\n"
},
{
"from": "human",
"value": "const AnnotationParser = require(__dirname+\"/../\").AnnotationParser;\nconst Request = require(__dirname+\"/myannotations/Request\");\n\nAnnotationParser.parse(\n __dirname+\"/annotatedFile... | javascript | chosen |
[
{
"from": "system",
"value": "Add note for refactoring once other parts are built\n"
},
{
"from": "human",
"value": "const db = require('./db')\nconst pgp = require('pg-promise')()\n\nconst userQueries = {\n createUser: (name, email, password) => {\n return db.one(`\n INSERT INTO users ... | javascript | chosen |
[
{
"from": "system",
"value": "Stop testing spec on failure\n"
},
{
"from": "human",
"value": "var Jasmine = require(\"jasmine\");\nvar jasmine = new Jasmine();\nvar config = {\n spec_dir: \"\",\n spec_files: [\"tests/**/*.js\", \"app/**/tests/index.js\", \"app/**/tests.js\"],\n helpers: [],\n... | javascript | chosen |
[
{
"from": "system",
"value": "Use $timeout to make $apply functions go to the next digest, to prevent \"$digest already in progress\".\n"
},
{
"from": "human",
"value": "import CartBase from './base/cart-base.js';\n\nclass CartBlogListCtrl extends CartBase {\n constructor($scope, ...args) {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "FIx warning and remove use of preventDefault on checkbox\n"
},
{
"from": "human",
"value": "import React from 'react'\n\nexport default class Prefs extends React.Component {\n static propTypes = {\n prefs: React.PropTypes.object.isRequired,\n setPrefs: React.... | javascript | chosen |
[
{
"from": "system",
"value": "Use serviceWorker.ready.then before calling subscribe\n"
},
{
"from": "human",
"value": "\nfunction register() {\n navigator.serviceWorker.register(\"sw.js\", {scope: '/'}).then(\n function(serviceWorkerRegistration) {\n serviceWorkerRegistration.pushManage... | javascript | chosen |
[
{
"from": "system",
"value": "Save name of md file in path field\n"
},
{
"from": "human",
"value": "module.exports = [\n {\n \"title\": \"BibleJS NPM Module\"\n , \"slug\": \"bible-js\"\n , \"publishedAt\": \"25-05-2014\"\n , \"content\": \"bible-js.md\"\n }\n , {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Throw an error if the XML is invalid.\n"
},
{
"from": "human",
"value": "var sax = require('sax')\nvar parser = {}\n\nparser.stream = function () {\n return sax.createStream({\n trim: true,\n normalize: true,\n lowercase: true\n })\n}\n\nparser.capture = ... | javascript | chosen |
[
{
"from": "system",
"value": "Send back stderr for command-line jobs\n"
},
{
"from": "human",
"value": "var util = require(\"util\");\nvar thunkify = require(\"thunkify\");\nvar spawn = require(\"child_process\").spawn;\nvar debug = require(\"debug\")(\"offload:runner\");\n\n\nvar runner = funct... | javascript | chosen |
[
{
"from": "system",
"value": "Add production domain to whitelistUrls.\n"
},
{
"from": "human",
"value": "var Raven = require('raven-js');\n\nRaven\n .config('https://fde1d4c9741e4ef3a3416e4e88b61392@sentry.data.gouv.fr/17', {\n ignoreUrls: [\n /^file:\\/\\//i\n ]\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix truncate incorrectly handling length < omission.length\n"
},
{
"from": "human",
"value": "var GraphemeBreaker = require('grapheme-breaker');\nvar assign = require('object-assign');\n\n/**\n * Extracts a section of a string and returns a new string.\n */\nfunctio... | javascript | chosen |
[
{
"from": "system",
"value": "Trim out old demo code\n"
},
{
"from": "human",
"value": "var express = require('express');\nvar app = express();\n\napp.set('port', (process.env.PORT || 5000));\n\napp.use(express.static(__dirname + '/dist'));\n\n// views is directory for all template files\n// app... | javascript | chosen |
[
{
"from": "system",
"value": "Switch to PUT over POST\n"
},
{
"from": "human",
"value": "import gravity from '../../lib/loaders/gravity';\nimport { CollectorProfileType } from './collector_profile';\nimport {\n GraphQLBoolean,\n} from 'graphql';\n\nexport default {\n type: CollectorProfileType... | javascript | chosen |
[
{
"from": "system",
"value": "Remove original_gear brand data from merchandises.json\n\nThis is a bit redundant and doesn't really add anything we don't already have."
},
{
"from": "human",
"value": "const Updater = require('./Updater');\nconst SplatNet = require('../splatnet');\nconst { getOrig... | javascript | chosen |
[
{
"from": "system",
"value": "Add process killer for controlling shutdown of nodemon\nWhen manually starting and stopping `npm run dev` script, which includes\nnodemon, the nodemon process doesn't always exit cleanly.\nThis code (I think) controls the shutdown process so that there's always\na clean exit\n"... | javascript | chosen |
[
{
"from": "system",
"value": "Test of regex is the issue"
},
{
"from": "human",
"value": "'use strict'\n\nconst express = require('express')\nconst Slapp = require('slapp')\nconst ConvoStore = require('slapp-convo-beepboop')\nconst Context = require('slapp-context-beepboop')\n\n// use `PORT` env... | javascript | chosen |
[
{
"from": "system",
"value": "Return the original file if SVGO fails\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar isSvg = require('is-svg');\nvar SVGO = require('svgo');\nvar through = require('through2');\n\nmodule.exports = function (opts) {\n\topts = opts || {};\n\n\treturn through... | javascript | chosen |
[
{
"from": "system",
"value": "Use a protocol relative URL so the package can be used other HTTPS as well"
},
{
"from": "human",
"value": "module.exports = asString\nmodule.exports.add = append\n\nfunction asString(fonts) {\n var href = getHref(fonts)\n return '<link href=\"' + href + '\" rel=\... | javascript | chosen |
[
{
"from": "system",
"value": "Attach to player, not other things\n"
},
{
"from": "human",
"value": "\"use strict\";\n\nvar onEntityDelete = require(\"splat-ecs/lib/systems/box-collider\").onEntityDelete;\n\nfunction getCamera(entities) {\n\treturn entities[1];\n}\n\nmodule.exports = function(ecs... | javascript | chosen |
[
{
"from": "system",
"value": "Use absolute path for serving static files\n"
},
{
"from": "human",
"value": "var express = require('express')\nvar expressApp = express()\nvar path = require('path')\nvar pickerApp = require('./src/bootstrap')\nvar registerRoutes = require('./src/routes')\n\nvar po... | javascript | chosen |
[
{
"from": "system",
"value": "feat(transformers): Allow to replace named imports with objects per property\n"
},
{
"from": "human",
"value": "import replacePath from \"../helpers/replacePath\";\n\nexport default function (t, path, state, {toMatch, toRemove, toReplace}) {\n\tconst pathIsImportDec... | javascript | chosen |
[
{
"from": "system",
"value": "Clean up test text from landing page\n"
},
{
"from": "human",
"value": "import React, { PropTypes, Component } from 'react';\nimport d3 from 'd3';\n//import * as parcoords from './lib/d3.parcoords.js';\nimport Parallel from './Parallel.js'; \n\n\n\nexport default cl... | javascript | chosen |
[
{
"from": "system",
"value": "Set abort event isTrusted to true\n"
},
{
"from": "human",
"value": "\"use strict\";\n\nconst { setupForSimpleEventAccessors } = require(\"../helpers/create-event-accessor\");\nconst EventTargetImpl = require(\"../events/EventTarget-impl\").implementation;\n\nconst ... | javascript | chosen |
[
{
"from": "system",
"value": "[FEATURE] Add child process for payments monitor\n"
},
{
"from": "human",
"value": "var express = require('express');\nvar childProcess = require('child_process');\nvar middleware = require('./config/initializers/middleware.js');\nvar router = require('./config/rout... | javascript | chosen |
[
{
"from": "system",
"value": "Convert file to string before sending downstream.\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar PluginError = require('plugin-error'),\n through = require('through2'),\n inlineCss = require('inline-css');\n\nmodule.exports = function (opt) {\n ret... | javascript | chosen |
[
{
"from": "system",
"value": "Use new manual-merge-stream vizFn opts\n"
},
{
"from": "human",
"value": "var Batcher = require('byte-stream')\nvar manualMergeStream = require('manual-merge-stream')\nvar diff2daff = require('diff2daff')\n\nmodule.exports = function (diffStream, opts, merge) {\n i... | javascript | chosen |
[
{
"from": "system",
"value": "Remove classes that are not present in application\n"
},
{
"from": "human",
"value": "/* eslint-env node */\n'use strict';\nconst htmlTags = require('html-tags');\nconst diff = require('lodash/difference');\nconst compileCSS = require('broccoli-postcss');\n\nconst r... | javascript | chosen |
[
{
"from": "system",
"value": "Disable script start and end messages\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\nconsole.log(\"Starting bert. Type 'exit' when you're done.\")\n// TODO: run file watcher\n\n// TODO: add command line option to specify logs location\nlet logDir = resolveH... | javascript | chosen |
[
{
"from": "system",
"value": "Allow control char as rule \"variable\"\n"
},
{
"from": "human",
"value": "// L-System Rule Parser\nfunction RuleParser(str) {\n this.str = str;\n this.rules = {};\n\n this.parse = function() {\n var c, d;\n var env = 0;\n var rule_str;\n var variable... | javascript | chosen |
[
{
"from": "system",
"value": "Check if user passes in their own keyDown function\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar React = require('react');\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var... | javascript | chosen |
[
{
"from": "system",
"value": "Fix execute-odata helper base-store now default\n"
},
{
"from": "human",
"value": "import Ember from 'ember';\nimport { module, test } from 'qunit';\n\nimport ODataAdapter from 'ember-flexberry-data/adapters/odata';\n\nimport startApp from '../../helpers/start-app';... | javascript | chosen |
[
{
"from": "system",
"value": "Add lines for another app.use() for coveringall expected URLs to be used in the SPA (Single Page App). Tried to come up with a regex to replace the basic regex on line 23. Function was written by Chad Killingsworth as an in-class example, in the msu-calendar project.\n\nI learn... | javascript | chosen |
[
{
"from": "system",
"value": "Fix for js API to store in key chain\n"
},
{
"from": "human",
"value": "var core = require(\"./core\");\nvar prompt = require(\"prompt-sync\")();\nvar fs = require(\"fs\");\n\nvar env = process.env.NODE_ENV || \"development\";\n\nmodule.exports = function(filepath, ... | javascript | chosen |
[
{
"from": "system",
"value": "Make tournament a private variable of controller\n"
},
{
"from": "human",
"value": "import socket from '../../socket';\nimport * as utils from '../../utils';\nimport * as xhr from './tournamentXhr';\nimport socketHandler from './socketHandler';\nimport helper from '... | javascript | chosen |
[
{
"from": "system",
"value": "Allow usage in isomorphic components\n\nAny dependency of this package will fail if run in a Node environment. This commit allows code to be run on the server by simply returning if no `document` is available."
},
{
"from": "human",
"value": "module.exports = functi... | javascript | chosen |
[
{
"from": "system",
"value": "Remove byte order indicator before attempting parse\n\nReally? Really? Really? Really?\n"
},
{
"from": "human",
"value": "/**\n * Module dependencies\n */\nvar request = require('superagent')\n , _ = require('underscore');\n\n// Factory\nmodule.exports = function (... | javascript | chosen |
[
{
"from": "system",
"value": "Make sure input data is a buffer\n"
},
{
"from": "human",
"value": "module.exports = function(RED) {\n\tfunction PlayAudioNode(config) {\n\t\tRED.nodes.createNode(this,config);\n\t\tvar node = this;\n\t\tthis.on('input', function(msg) {\n\t\t\tRED.comms.publish(\"p... | javascript | chosen |
[
{
"from": "system",
"value": "Chore: Disable Babel debug mode in the basic example\n"
},
{
"from": "human",
"value": "module.exports = {\n\tpresets: [\n\t\t[\n\t\t\t'@babel/env',\n\t\t\t{\n\t\t\t\tdebug: true,\n\t\t\t\tmodules: false,\n\t\t\t\tuseBuiltIns: 'usage',\n\t\t\t},\n\t\t],\n\t\t'@babel... | javascript | chosen |
[
{
"from": "system",
"value": "Improve mockr project search speed\n\nAs a hackathon project, we use some smarter search techniques to hide\nand show fewer list elements when each search is performed. For each\nkeystroke, this narrows down or broadens the existing list instead of\nhiding and showing everythin... | javascript | chosen |
[
{
"from": "system",
"value": "Fix error message when command not found\n"
},
{
"from": "human",
"value": "var Q = require(\"q\");\nvar _ = require(\"hr.utils\");\nvar Collection = require(\"hr.collection\");\nvar logger = require(\"hr.logger\")(\"commands\");\n\nvar Command = require(\"../models... | javascript | chosen |
[
{
"from": "system",
"value": "Fix export of footnote labels.\n"
},
{
"from": "human",
"value": "import { findChild, findAllChildren } from '../util/domHelpers'\n\nexport default class FootnoteConverter {\n get type () { return 'fn' }\n\n get tagName () { return 'fn' }\n\n import (el, node, im... | javascript | chosen |
[
{
"from": "system",
"value": "Set display URL from wurl if curl not specified.\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport PropTypes from 'prop-types';\nimport url from 'url';\n\nexport default class AppPermission extends React.Component {\n constructor(props) {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix object URL not being revoked at when the worker is not being used anymore\n"
},
{
"from": "human",
"value": "export const createDisposableWorker = response => {\n const URL = window.URL || window.webkitURL\n const blob = new Blob([response], { type: 'applicati... | javascript | chosen |
[
{
"from": "system",
"value": "Add post meta to individual rows\n\nWhen viewing posts meta is shown below the title, including the\nsubreddit, the domain it was posted to, and the author.\n"
},
{
"from": "human",
"value": "const React = require('react-native');\n\nconst {\n Image,\n Text,\n St... | javascript | chosen |
[
{
"from": "system",
"value": "Fix running python by setting PYTHONHOME to '/'.\n"
},
{
"from": "human",
"value": "// Copyright (c) 2014 The Axiom Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\nimport Axio... | javascript | chosen |
[
{
"from": "system",
"value": "Use valid jsdoc comment syntax\n"
},
{
"from": "human",
"value": "const timeout = (dispatch, props) =>\n setTimeout(() => dispatch(props.action), props.delay)\n\nconst interval = (dispatch, props) => {\n const id = setInterval(() => {\n dispatch(props.action, D... | javascript | chosen |
[
{
"from": "system",
"value": "Factsheet: Remove hard-coded TJ unit from legends\n"
},
{
"from": "human",
"value": "/* globals I18n $ */\n\n/**\n * Given the definition for a chart, returns an array of <div/> elements\n * describing each series in the chart.\n */\nfunction drawLegend(definition, ... | javascript | chosen |
[
{
"from": "system",
"value": "Add missing error handling logic.\n"
},
{
"from": "human",
"value": "(function () {\n 'use strict';\n\n define(\n [\n 'lodash',\n 'knockout',\n 'config/routes',\n 'util/container'\n ],\n function... | javascript | chosen |
[
{
"from": "system",
"value": "Fix bug introduced in previous commit.\n"
},
{
"from": "human",
"value": "/**\n * Copyright 2014 Ian Davies\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n *\n * You may... | javascript | chosen |
[
{
"from": "system",
"value": ":fire: Delete extra div that's not needed for position purposes\n"
},
{
"from": "human",
"value": "/** @babel */\n/** @jsx etch.dom */\n\nimport etch from 'etch'\nimport StagingAreaComponent from './staging-area-component'\n\nexport default class CommitPanelComponen... | javascript | chosen |
[
{
"from": "system",
"value": "Add JS char counter for Tweet content\n"
},
{
"from": "human",
"value": "$('body').scrollspy({\n target: '.bs-docs-sidebar',\n offset: 40\n});\n"
},
{
"from": "gpt",
"value": "$('body').scrollspy({\n target: '.bs-docs-sidebar',\n offset: 40\n... | javascript | chosen |
[
{
"from": "system",
"value": "Update up to changes in es5-ext\n"
},
{
"from": "human",
"value": "// Read all filenames from directory and it's subdirectories\n\n'use strict';\n\nvar fs = require('fs')\n , aritize = require('es5-ext/lib/Function/aritize').call\n , curry = require('es5-ex... | javascript | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.