conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Improve error message legibility on windows"
},
{
"from": "human",
"value": "'use strict';\nvar chalk = require( 'chalk' );\nvar table = require( 'text-table' );\n\n/**\n * @param {Errors[]} errorsCollection\n */\nmodule.exports = function( errorsCollection ) {\n v... | javascript | chosen |
[
{
"from": "system",
"value": "Update migration file to use the new config file\n"
},
{
"from": "human",
"value": "\"use strict\";\nvar path = require('path');\nvar HOME = process.env.HOME || process.env.HOMEPATH;\nvar APP_ENV = process.env.APP_ENV || 'dev';\nvar config = require('../config/conf... | javascript | chosen |
[
{
"from": "system",
"value": "Add global `jquery` dependency for build UMD module\n"
},
{
"from": "human",
"value": "import buble from 'rollup-plugin-buble';\nimport uglify from 'rollup-plugin-uglify';\n\n\nconst config = {\n entry: 'src/index.js',\n plugins: [buble()],\n sourceMap: true,\n};... | javascript | chosen |
[
{
"from": "system",
"value": "Fix name of \"enumerable\" property in Object.defineProperty\n\nAs discussed in https://github.com/simple-icons/simple-icons/pull/1555\n"
},
{
"from": "human",
"value": "var icons = {%s};\n\nObject.defineProperty(icons, \"get\", {\n enumerate: false,\n value: func... | javascript | chosen |
[
{
"from": "system",
"value": "ZON-3163: Hide elasticsearch fields of elasticsearch is not selected as query type.\n"
},
{
"from": "human",
"value": "(function ($) {\n\nvar FIELDS = {\n 'centerpage': 'referenced_cp',\n 'channel': 'query',\n 'topicpage': 'referenced_topicpage',\n 'quer... | javascript | chosen |
[
{
"from": "system",
"value": "Use setColor to produce more readable colors\n\nFixes #258\n"
},
{
"from": "human",
"value": "var File = require('vinyl');\nvar ansiHTML = require('ansi-html');\n\nvar template = '<head><style>' +\n 'body{padding:20px;font:16px monospace;background:#CC0000;color:#f... | javascript | chosen |
[
{
"from": "system",
"value": "Change the create need title\n"
},
{
"from": "human",
"value": ";\n\nimport angular from 'angular';\n\nfunction genComponentConf() {\n let template = `\n <nav class=\"create-need-title\" ng-cloak ng-show=\"{{true}}\">\n <div class=\"cntb__inner\... | javascript | chosen |
[
{
"from": "system",
"value": "Change default runner port to 9100 (travis uses 1337)"
},
{
"from": "human",
"value": "var fs = require('fs');\nvar pkg = JSON.parse(fs.readFileSync(__dirname + '/../package.json').toString());\n\nexports.VERSION = pkg.version;\n\nexports.DEFAULT_PORT = 8080;\nexpor... | javascript | chosen |
[
{
"from": "system",
"value": "Make corrections to Finnish locale translations\n\nMonths and days of the week are written lowercase in Finnish. The list\nof short days also included a duplicate Sunday in place of Saturday.\n"
},
{
"from": "human",
"value": "/**\n* Copyright 2012-2018, Plotly, Inc... | javascript | chosen |
[
{
"from": "system",
"value": "Support arrays of paths, with the callback getting an array of mime-types."
},
{
"from": "human",
"value": "var p = require('path');\nvar cp = require('child_process');\n\nvar fileExec = p.resolve(__dirname + '/../bin/file');\nvar fileFlags = ['--magic-file', p.reso... | javascript | chosen |
[
{
"from": "system",
"value": "Fix ternary logic to actually allow for \"unknown\" platforms\n\nPrettier is strange.\n"
},
{
"from": "human",
"value": "// @flow\n\nimport {version} from '../package.json'\nimport {Platform} from 'react-native'\n\nconst aaoVersion = version || 'unknown'\nconst plat... | javascript | chosen |
[
{
"from": "system",
"value": "Fix indentation to make Jake and TravisCI happy.\n"
},
{
"from": "human",
"value": "\n/*\n * Extends L.Marker to include two extra methods: clusterHide and clusterShow.\n * \n * They work as setOpacity(0) and setOpacity(1) respectively, but\n * they will remember th... | javascript | chosen |
[
{
"from": "system",
"value": "Add the process command and the addCommand\n"
},
{
"from": "human",
"value": "/**\n * Created with JetBrains WebStorm.\n * User: vincent.peybernes\n * Date: 25/06/13\n * Time: 16:31\n * To change this template use File | Settings | File Templates.\n */\n\n// Get the... | javascript | chosen |
[
{
"from": "system",
"value": "Use module variable in JS example module to fix JSHint\n"
},
{
"from": "human",
"value": "/**\n * Module Description\n *\n * @author Author Name\n * @date 2013-01-01\n */\n\nrequire([\n\t// Require the modules\n\t'modules/module'\n], function (module) {\n\t'use stri... | javascript | chosen |
[
{
"from": "system",
"value": "Fix unresponsive button on collaborations page\n\nfixes VICE-2428\nflag=none\n\nTest Plan:\n - see repro steps on linked ticket\n - should not be able to repro\n - go to /courses/<course_id>/collaborations\n - click the \"add collaboration\" button\n - if button is responsive ... | javascript | chosen |
[
{
"from": "system",
"value": "[test] Remove test for `forkShim` option\n"
},
{
"from": "human",
"value": "/*\n * spin-test.js: Tests for spin restarts in forever.\n *\n * (C) 2010 Nodejitsu Inc.\n * MIT LICENCE\n *\n */\n\nvar assert = require('assert'),\n path = require('path'),\n vows = ... | javascript | chosen |
[
{
"from": "system",
"value": "Add other tournaments in navigation\n"
},
{
"from": "human",
"value": "'use strict';\n\nimport React from 'react';\nimport {Link, IndexLink} from 'react-router';\n\nimport SearchInput from './SearchInput.react.js';\n\nconst Page = props => (\n <div>\n <div class... | javascript | chosen |
[
{
"from": "system",
"value": "Fix XSS HTML replace might get wrong on the HTML comments in the code tags\n"
},
{
"from": "human",
"value": "var whiteListTag = ['style', '!--', 'kbd'];\nvar whiteListAttr = ['id', 'class', 'style'];\n\nvar filterXSSOptions = {\n allowCommentTag: true,\n onIg... | javascript | chosen |
[
{
"from": "system",
"value": "Check that first row contains th\n\nBecause the first child of our `<tr>` could be a text node, or maybe coder wants to intermix `<td>` with `<th>`, need to check more than just the first child for our `<th>`.\n"
},
{
"from": "human",
"value": "var Issue = require('... | javascript | chosen |
[
{
"from": "system",
"value": "Add modules to repl for testing\n"
},
{
"from": "human",
"value": "var util = require('util')\n , twitter = require('twitter')\n , colors = require('colors')\n , repl = require('repl')\n , keys = require('./keys')\n , local = repl.start()\n , first = true\n\nv... | javascript | chosen |
[
{
"from": "system",
"value": "Update contentFor to use the head type\n\n- The vendor-prefix type has been deprecated\n"
},
{
"from": "human",
"value": "/* eslint-env node */\n'use strict';\nvar Funnel = require('broccoli-funnel');\n\nmodule.exports = {\n name: 'ember-ckeditor',\n\n included: f... | javascript | chosen |
[
{
"from": "system",
"value": "Use loader options if available\n"
},
{
"from": "human",
"value": "var ejs = require('ejs'),\n UglifyJS = require('uglify-js'),\n utils = require('loader-utils'),\n path = require('path'),\n htmlmin = require('html-minifier'),\n merge = require('merge');\n\n\nm... | javascript | chosen |
[
{
"from": "system",
"value": "Add a `m.Fragment = \"[\"` utility for JSX users."
},
{
"from": "human",
"value": "\"use strict\"\n\nvar hyperscript = require(\"./hyperscript\")\nvar request = require(\"./request\")\nvar mountRedraw = require(\"./mount-redraw\")\n\nvar m = function m() { return hy... | javascript | chosen |
[
{
"from": "system",
"value": "Fix Ember version for default dashless helper support."
},
{
"from": "human",
"value": "/* jshint node: true */\n'use strict';\n\nvar VersionChecker = require('ember-cli-version-checker');\n\nmodule.exports = {\n name: 'ember-cli-auto-register-helpers',\n\n init: ... | javascript | chosen |
[
{
"from": "system",
"value": "Add test for shuffleArray helper\n"
},
{
"from": "human",
"value": "import HelpersModule from './helpers';\n\ndescribe('Helpers', () => {\n let factory;\n\n beforeEach(window.module(HelpersModule));\n\n beforeEach(inject((_Helpers_) => {\n factory = ... | javascript | chosen |
[
{
"from": "system",
"value": "Rename local variable `emit` to `filter`\n"
},
{
"from": "human",
"value": "/*\n * hub.js\n *\n * Copyright (c) 2012-2014 Maximilian Antoni <mail@maxantoni.de>\n *\n * @license MIT\n */\n'use strict';\n\nvar inherits = require('inherits');\nvar Filter = re... | javascript | chosen |
[
{
"from": "system",
"value": "Hide google search bottom ads\n"
},
{
"from": "human",
"value": "var advertisingCSSRules = [{\n \"trigger\": {\n \"url-filter\": \".*\"\n },\n \"action\": {\n \"type\": \"css-display-none\",\n \"selector\":\n \".ad-promotions-container,\\\n .ad... | javascript | chosen |
[
{
"from": "system",
"value": "Fix display of anonymous documents\n"
},
{
"from": "human",
"value": "Template.docsList.helpers({\n documents: function() {\n return Documents.find({owner: {$exists: true}});\n }\n});"
},
{
"from": "gpt",
"value": "Template.docsList.helpers({\n doc... | javascript | chosen |
[
{
"from": "system",
"value": "Handle favicon, HTTP and HTTPS\n"
},
{
"from": "human",
"value": "const {send} = require('micro');\nconst fetch = require('node-fetch');\nconst assert = require('http-assert');\n\nmodule.exports = async (req, res) => {\n const url = req.url.substr(1);\n assert(url... | javascript | chosen |
[
{
"from": "system",
"value": "Fix compilerOptions property is not working"
},
{
"from": "human",
"value": "const ts = require('typescript');\nconst extname = require('path').extname;\n\nmodule.exports = function (fly) {\n fly.plugin('typescript', {every: true}, function * (file, options) {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Make version number match what's in package.json"
},
{
"from": "human",
"value": "\n/**\n * Client version.\n *\n * @api public.\n */\n\nexports.version = '0.3.3';\n\n/**\n * Protocol version.\n *\n * @api public.\n */\n\nexports.protocol = 1;\n\n/**\n * Utils.\n *\... | javascript | chosen |
[
{
"from": "system",
"value": "Fix relative references to assets\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\n\nvar fs = require('fs')\nvar html2png = require('html2png');\nvar path = require('path');\n\nvar command = path.basename(process.argv.slice(1));\nvar args = process.argv.slice... | javascript | chosen |
[
{
"from": "system",
"value": "Fix TypeError: srv.installHandlers is not a function\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst Server = require('./lib/server');\n\nmodule.exports.createServer = function createServer(options) {\n return new Server(options);\n};\n\nmodule.exports.li... | javascript | chosen |
[
{
"from": "system",
"value": "Trim resolutions so they are a factor of 2.\n\nCurrently ol3 appears to be assuming that resolutions are always a\nfactor of 2, need to look into it more.\n"
},
{
"from": "human",
"value": "// Extent of the map in units of the projection\nvar extent = [-3276800, -32... | javascript | chosen |
[
{
"from": "system",
"value": "Fix for not needing to specify gravity\n"
},
{
"from": "human",
"value": "\"use strict\";\n\nfunction Particle(x, y, speed, direction, gravity) {\n this.position = vector.create(x, y);\n this.velocity = vector.create(0, 0);\n this.gravity = vector.create(0, gravi... | javascript | chosen |
[
{
"from": "system",
"value": "chore(Collective): Add event and events to blacklisted slugs"
},
{
"from": "human",
"value": "export const collectiveSlugBlacklist = [\n 'about',\n 'admin',\n 'applications',\n 'become-a-sponsor',\n 'chapters',\n 'collective',\n 'contact',\n 'contribute',\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix Events mixin callbacks binding.\n"
},
{
"from": "human",
"value": "define([\n 'fossil/core',\n 'underscore',\n 'backbone'\n], function (Fossil, _, Backbone) {\n\n var Events = Fossil.Mixins.Events = _.extend({}, Backbone.Events, {\n registerEv... | javascript | chosen |
[
{
"from": "system",
"value": "Add removal of email address\n"
},
{
"from": "human",
"value": "const now = require('performance-now');\n\nmodule.exports = {\n help: {\n name: 'eval',\n desc: 'Runs a JavaScript snippet',\n usage: '<js snippet>',\n aliases: ['e']\n },\n\n exec: (clie... | javascript | chosen |
[
{
"from": "system",
"value": "LIKA-326: Fix issue with non functional upload button\n"
},
{
"from": "human",
"value": "// Enable JavaScript's strict mode. Strict mode catches some common\n// programming errors and throws exceptions, prevents some unsafe actions from\n// being taken, and disables... | javascript | chosen |
[
{
"from": "system",
"value": "Update db_uri to use config.\n"
},
{
"from": "human",
"value": "// mongodb test.\n\nvar mongoose = require('mongoose');\nvar quotes = mongoose.model('quotes', {msg: String, src: String});\nmongoose.connect('mongodb://tweetbot:kdznbmfsib@paulo.mongohq.com:10098/ntalb... | javascript | chosen |
[
{
"from": "system",
"value": "Check morning screen when starting game\n"
},
{
"from": "human",
"value": "describe('starting a game', function() {\n it('starts the first day', function() {\n cy.visit('/')\n cy.getByText('Start Work').click()\n cy.get('h1').within(function() {\n cy.... | javascript | chosen |
[
{
"from": "system",
"value": "Add momentum scrolling on iOS for book lists\n"
},
{
"from": "human",
"value": "// @flow\n/**\n * Part of GDL gdl-frontend.\n * Copyright (C) 2017 GDL\n * \n * See LICENSE\n */\n\nimport * as React from 'react';\nimport Flex from './Flex';\nimport type { Book } from... | javascript | chosen |
[
{
"from": "system",
"value": "Use one digit for hour if possible\n"
},
{
"from": "human",
"value": "const moment = require('moment')\n\n// Format a date object.\nlet now = moment()\nconsole.log(now.format('YYYY-MM-DD'))\n\n// Parse a date time string.\nlet dt = moment('2017-01-05T20:15')\nconsol... | javascript | chosen |
[
{
"from": "system",
"value": "Save output language after conversion.\n"
},
{
"from": "human",
"value": "/*\n Extracts the code elements and returns array of source-code and code elements\n*/\nexport default function convertSourceCode(el, converter) {\n let miniSource = el.find('code[language=m... | javascript | chosen |
[
{
"from": "system",
"value": "feat: Increase the image size limit\n"
},
{
"from": "human",
"value": "export default {\n server: process.env.NODE_ENV === 'development' ? '//localhost:9200' : '',\n\n maxImageSize: 1024 * 1024 * 1,\n maxBackgroundImageSize: 1024 * 1024 * 3,\n\n // clien... | javascript | chosen |
[
{
"from": "system",
"value": "Add .js to cjs module id if needed for cram\n"
},
{
"from": "human",
"value": "/** MIT License (c) copyright 2010-2013 B Cavalier & J Hann */\n\n/**\n * cram CommonJS modules/1.1 plugin\n */\ndefine(['./jsEncode', '../loader/cjsm11'], function (jsEncode, wrapCjsm11)... | javascript | chosen |
[
{
"from": "system",
"value": ":art: Extend HTMLElement instead of HTMLDivElement\n"
},
{
"from": "human",
"value": "\"use strict\";\nclass BottomTab extends HTMLDivElement{\n initialize(Content, linter){\n this.linter = linter\n this._active = true\n this._count = 0\n\n this.innerHT... | javascript | chosen |
[
{
"from": "system",
"value": "Sort by review count by default\n"
},
{
"from": "human",
"value": "var app = angular.module('foodfood', ['ui.router', 'ngSanitize', 'ngStorage']);\n\napp.config(['$stateProvider', '$urlRouterProvider', function($stateProvider, $urlRouterProvider) {\n\n $urlRouterPr... | javascript | chosen |
[
{
"from": "system",
"value": "Make variable names more descriptive\n"
},
{
"from": "human",
"value": "var openBlockList = function (blog) {\n $('document').ready( function () {\n $(\"#blocked_blogs > .accordion_trigger_wrapper > .accordion_trigger\").click();\n block... | javascript | chosen |
[
{
"from": "system",
"value": "Make static js methods actually work.\n"
},
{
"from": "human",
"value": "/**\r\n * @license\r\n * Copyright 2017 The FOAM Authors. All Rights Reserved.\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n */\r\n\r\nfoam.CLASS({\r\n package: 'foam.core',\r\n name: ... | javascript | chosen |
[
{
"from": "system",
"value": ":new: Make cli compatible with latest compile API\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\n'use strict'\n\nrequire('debug').enable('UCompiler:*')\nconst UCompiler = require('..')\nconst knownCommands = ['go', 'watch']\nconst parameters = process.argv.... | javascript | chosen |
[
{
"from": "system",
"value": "Make mailinglists internal only by default\n"
},
{
"from": "human",
"value": "// @flow\n\nimport { compose } from 'redux';\nimport { connect } from 'react-redux';\nimport EmailListEditor from './components/EmailListEditor';\nimport { createEmailList } from 'app/acti... | javascript | chosen |
[
{
"from": "system",
"value": "Add padding to inline styles.\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport Board from '../containers/board';\nimport { Grid, Row, Col } from 'react-flexbox-grid';\nimport BlackPieceStand from '../containers/blackPieceStand';\nimport WhitePie... | javascript | chosen |
[
{
"from": "system",
"value": "Update base user model for inheritence.\n"
},
{
"from": "human",
"value": "var keystone\t= require('keystone'),\n\tTypes\t\t= keystone.Field.Types;\n\n// Create model\nvar User = new keystone.List('User', {\n\ttrack: true,\n\tautokey: { path: 'key', from: 'email', u... | javascript | chosen |
[
{
"from": "system",
"value": "Fix argument order for Object.assign\n\nThanks @paulkaplan\n"
},
{
"from": "human",
"value": "const UPDATE_EDITING_TARGET = 'scratch-gui/targets/UPDATE_EDITING_TARGET';\nconst UPDATE_TARGET_LIST = 'scratch-gui/targets/UPDATE_TARGET_LIST';\n\nconst initialState = {\n... | javascript | chosen |
[
{
"from": "system",
"value": "Fix slash escaping in renderer\n"
},
{
"from": "human",
"value": "var DOM = (function(){\n var entityMap = {\n \"&\": \"&\",\n \"<\": \"<\",\n \">\": \">\",\n '\"': '"',\n \"'\": '''\n };\n \n var entityRegex = /[&<>\"'\\/]/g;\n... | javascript | chosen |
[
{
"from": "system",
"value": "Fix returning to current nodes when clearing searching\n"
},
{
"from": "human",
"value": "(function() {\n 'use strict';\n\n function sequoiaSearchDirective(){\n\n return {\n restrict: 'AE',\n replace: true,\n templateUrl: 'sequoia-search.html',\n... | javascript | chosen |
[
{
"from": "system",
"value": "Rollback the earlier 'valid' property type change\n"
},
{
"from": "human",
"value": "import PropTypes from 'prop-types';\n\nconst InputMetaPropTypes = PropTypes.shape({\n active: PropTypes.bool,\n autofilled: PropTypes.bool,\n asyncValidating: PropTypes.bool,\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix FoUC visibility style order\n\n- Body visibility visible order is not correct in react & vue, it is now fixed by appending visibility hidden to the top of the nodes."
},
{
"from": "human",
"value": "\nimport { applyPolyfills, defineCustomElements as dce } from '... | javascript | chosen |
[
{
"from": "system",
"value": "Fix typo that was causing test failure.\n\ngit-svn-id: a346edc3f722475ad04b72d65977aa35d4befd55@543 3a26569e-5468-0410-bb2f-b495330926e5\n"
},
{
"from": "human",
"value": "/*\n * Copyright 2010 55 Minutes (http://www.55minutes.com)\n *\n * Licensed under the Apache ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix temporary scroll store (web)\n"
},
{
"from": "human",
"value": "export default new class StoreScrolls {\n\t\n\tpositions = {};\n\t\n\tconstructor() {\n\t\t\n\t\t// Save scroll position to store.\n\t\twindow.addEventListener('scroll', (e) => {\n\t\t\tconst id = e... | javascript | chosen |
[
{
"from": "system",
"value": "Change to test the CI/CD pipeline\n"
},
{
"from": "human",
"value": "//import 'babel-core/polyfill'\n\nimport React from 'react'\nimport ReactDOM from 'react-dom'\nimport ToastrCss from 'stylesheets/toastr.css!css'\nimport Toastr from 'toastr'\n//Dont delete, they a... | javascript | chosen |
[
{
"from": "system",
"value": "Print help info when invoking with `-h`.\n\nBesides `-h`, `--help` and `help` can also be used.\n\nclose #1\n"
},
{
"from": "human",
"value": "var api = require('./api.js');\nvar scenario = process.argv[2];\nif (scenario) {\n api.execute(scenario);\n} else {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Correct min-time CLI arg logic\n"
},
{
"from": "human",
"value": "\nconst cliOptions = require('nopt')(\n { // type check\n file: require('path'),\n 'min-time': Number,\n output: String },\n { // shorthand\n f: ['--file'],\n t: ['--min-time'],\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add display mode to the CLI\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\n// Simple CLI for KaTeX.\n// Reads TeX from stdin, outputs HTML to stdout.\n\nvar katex = require(\"./\");\nvar input = \"\";\n\nprocess.stdin.on(\"data\", function(chunk) {\n input... | javascript | chosen |
[
{
"from": "system",
"value": "Change local to heroku host\n"
},
{
"from": "human",
"value": "var wpi = require(\"wiring-pi\"),\n http = require(\"http\"),\n port = 5000,\n host = \"localhost\",\n method = \"POST\";\n\nvar IRin = 12;\nvar cut_video = true;\nwpi.setup(\"phys\");\nwpi.p... | javascript | chosen |
[
{
"from": "system",
"value": "Add method createLEDMatrixBuffer. Fix bug in writeLEDS. Add example of using createLEDMatrixBuffer\n"
},
{
"from": "human",
"value": "/**\n * To run example\n *\n * cd <project directory\n * npm install\n * ./node_modules/.bin/babel-node ./examples/cycle-leds.js\n *... | javascript | chosen |
[
{
"from": "system",
"value": "Add app root dir to settings."
},
{
"from": "human",
"value": "/**\n * ActiveRules implemented on top of Koa.\n *\n * @module arkoa\n * @copyright 2015 - Brian Winkers\n * @license MIT\n */\n\"use strict\";\n\n/**\n * System wide settings, most settings will be in A... | javascript | chosen |
[
{
"from": "system",
"value": "Add get route for /\n"
},
{
"from": "human",
"value": "// Dependencies\nvar express = require('express');\nvar methodOverride = require('method-override');\nvar bodyParser = require('body-parser');\nvar exphbs = require(\"express-handlebars\");\n\n// Sets up the Exp... | javascript | chosen |
[
{
"from": "system",
"value": "Fix bugs with unzip command\n"
},
{
"from": "human",
"value": "var path = require('path');\nvar spawn = require('child_process').spawn;\n\nexports.TGZ = '.tar.gz';\nexports.ZIP = '.zip';\n\nfunction extract(type, archivePath, destDir, cb) {\n var child;\n switch(t... | javascript | chosen |
[
{
"from": "system",
"value": "Change state selector to omit username when no customer is associated\n"
},
{
"from": "human",
"value": "const getConsumerById = (id, consumers) => consumers.find(x => x._info.id === id) || {};\n\nexport default state => {\n const fixPluginAnonymous = ({ name, at... | javascript | chosen |
[
{
"from": "system",
"value": "Fix in toTitle to allow heroku deploy\n"
},
{
"from": "human",
"value": "import Ember from 'ember';\nimport layout from '../templates/components/uni-horizontal-tabs';\n\nconst { Component, computed, isEmpty, observer } = Ember;\n\nexport default Component.extend({\n... | javascript | chosen |
[
{
"from": "system",
"value": "Enable compose fading for CUSTOMER4.\n\n(imported from commit 3be5b169b530c7bf6d5a9499710950fefa3cbde1)\n"
},
{
"from": "human",
"value": "var feature_flags = (function () {\n\nvar exports = {};\n\nexports.mark_read_at_bottom = true;\nexports.summarize_read_while_na... | javascript | chosen |
[
{
"from": "system",
"value": "Fix jQuery AJAX query string setting.\n"
},
{
"from": "human",
"value": "import Ember from 'ember';\n\nlet getCompendiums = function() {\n let ajaxSettings = {\n url: 'daily-riderships',\n queryData: {sparkline: true}\n }\n return Ember.$.ajax(ajaxSettings)... | javascript | chosen |
[
{
"from": "system",
"value": "Write placeholder HTML for post actions component\n"
},
{
"from": "human",
"value": "import React from 'react';\n\nclass PostActions extends React.Component {\n shouldComponentUpdate() {\n return false;\n }\n\n render() {\n return (\n <div className=\"... | javascript | chosen |
[
{
"from": "system",
"value": "Include \"development switchboard\" comment to flag that switchboard.rtc.io should not be used for production apps\n"
},
{
"from": "human",
"value": "// a default configuration that is used by the rtc package\nmodule.exports = {\n // simple constraints for defaults... | javascript | chosen |
[
{
"from": "system",
"value": "Update inView.is test to ensure boolean\n"
},
{
"from": "human",
"value": "import test from 'ava';\nimport inView from '../src/in-view';\nimport { inViewport } from '../src/viewport';\n\ntest('inView.is is a proxy for inViewport', t => {\n t.deepEqual(inView.is, ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix PDFjs links in kiosk mode\n"
},
{
"from": "human",
"value": "import ko from \"knockout\";\nimport sortBy from \"lodash/collection/sortBy\";\n\nimport api from \"../api\";\nimport formatter from \"../ko/formatter\";\nimport store from \"../store\";\n\nexport defa... | javascript | chosen |
[
{
"from": "system",
"value": "Add `a` to notTextable option in Canvas\n"
},
{
"from": "human",
"value": "module.exports = {\n stylePrefix: 'cv-',\n\n /*\n * Append external scripts to the `<head>` of the iframe.\n * Be aware that these scripts will not be printed in the export code\n * @... | javascript | chosen |
[
{
"from": "system",
"value": "Add text box tracking and TODO items\n"
},
{
"from": "human",
"value": "import React, { Component } from 'react';\nimport logo from './logo.svg';\nimport './App.css';\n\nclass App extends Component {\n constructor(props) {\n super(props);\n\n this.state = {\n... | javascript | chosen |
[
{
"from": "system",
"value": "FIX : ignore __esModule key\n"
},
{
"from": "human",
"value": "import 'ui-router-extras';\nimport futureRoutes from 'app/routes.json!';\n\nvar routing = function(module) {\n\n module.requires.push('ct.ui.router.extras.future');\n\n var RouterConfig = ['$stateProvi... | javascript | chosen |
[
{
"from": "system",
"value": "Remove unknown sources from SM\n"
},
{
"from": "human",
"value": "\"use strict\";\n\nconst path = require(\"path\");\nconst { SourceMapConsumer } = require(\"source-map\");\n\nconst UNKNOWN_SOURCE = \"\\u0000unknown\";\n\nconst getBytesPerFileUsingSourceMap = (bundl... | javascript | chosen |
[
{
"from": "system",
"value": "Change watch to webpack-dev-server, with the kill-and-reload methodology already present\n"
},
{
"from": "human",
"value": "const chokidar = require('chokidar');\nconst webpack = require('webpack');\n\nconst pkg = require('../package.json');\nconst webpackErrorHandl... | javascript | chosen |
[
{
"from": "system",
"value": "Feat: Set up the form content in post_new comp.\n"
},
{
"from": "human",
"value": "import React, { Component } from 'react';\nimport { reduxForm } from 'redux-form';\n\nclass PostsNew extends Component {\n render() {\n return(\n <div>Create Form</div>\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix the reload when adding and option\n\nOh JavaScript.\nHow do I hate thee? Let me count the ways.\n\nWe now pas a function:\n\t$scope.notifyOptionAdded\nrather than a function call\n\t$scope.notifyOptionAdded()\nso that promises work, rather than running synchronously.\n"
}... | javascript | chosen |
[
{
"from": "system",
"value": "Put function in scope & corect object usage\n"
},
{
"from": "human",
"value": "// Defining Module\nvar demoApp = angular.module('demoApp', ['ngRoute']);\n\n// Defining Module Routes\ndemoApp.config(function($routeProvider) {\n $routeProvider\n .when('/view... | javascript | chosen |
[
{
"from": "system",
"value": "Add padding around entire page.\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport {FontIcon, Styles} from 'material-ui';\nimport Radium from 'radium';\n\nlet ThemeManager = new Styles.ThemeManager();\n\nlet styles = {\n page: {\n display: 'fl... | javascript | chosen |
[
{
"from": "system",
"value": "Set a default for the error event\n"
},
{
"from": "human",
"value": "module.exports = {\n // messenger events\n dataEvent: 'data',\n openEvent: 'open',\n closeEvent: 'close',\n\n // messenger functions\n writeMethod: 'write',\n closeMethod: 'close',\n\n // l... | javascript | chosen |
[
{
"from": "system",
"value": "Add new line below each snippet\n"
},
{
"from": "human",
"value": "define([\n 'text!snippet-collapsible',\n 'text!snippet-ticks',\n 'text!snippet-callout',\n 'text!snippet-add-action',\n 'text!snippet-video',\n 'text!snippet-action-item'\n], function (\n co... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"Changed port to 8080 on all environments\"\n\nThis reverts commit 9891b6f56b208fa58d64968edf18f32dafe33e17.\n"
},
{
"from": "human",
"value": "var config = {\n development: {\n server: {\n port: 8080\n }\n },\n testing: {\n... | javascript | chosen |
[
{
"from": "system",
"value": "Use db collection created on build machine in Mongo\n"
},
{
"from": "human",
"value": "var config = {};\r\n\r\n//Port to listen on\r\nconfig.port = process.env.PORT || 8081;\r\n//Database address\r\nconfig.db_host = process.env.DB_HOST || '127.0.0.1';\r\n//Database ... | javascript | chosen |
[
{
"from": "system",
"value": "Add build date to globals\n"
},
{
"from": "human",
"value": "'use strict';\n\n// Dependencies\nconst cssnext = require('cssnext')\nconst path = require('path')\n\n// Aliases\nlet basedir = __dirname\nlet env = process.env.NODE_ENV\n\nmodule.exports = {\n env: env,\... | javascript | chosen |
[
{
"from": "system",
"value": "Fix completed fraction display to update when new task added\n"
},
{
"from": "human",
"value": "(function (angular){\n 'use strict';\n\n angular.module('app')\n .controller('counterController', counterController)\n .controller('todoController', todoControlle... | javascript | chosen |
[
{
"from": "system",
"value": "Refactor an ugly for loop.\n"
},
{
"from": "human",
"value": "class SpriteList {\n constructor() {\n this.sprites = [];\n }\n\n draw() {\n for (var i = 0; i < this.sprites.length; i++) {\n if (this.sprites[i]) {\n this.sprites[i].draw();\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Remove silent option for debugging\n"
},
{
"from": "human",
"value": "const ghpages = require('gh-pages')\nconst gitRemoteOriginUrl = require('git-remote-origin-url')\nconst path = require('path')\n\nconst GH_TOKEN = process.env.GH_TOKEN\nconst GH_USER = process.env... | javascript | chosen |
[
{
"from": "system",
"value": "Fix slide-section not watching the slide-part members.\n"
},
{
"from": "human",
"value": "/*global _*/\n/*global angular*/\n\n(function() {\n 'use strict';\n\n angular.module('core').directive('slideSection',\n function() {\n return {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add content on new reactions\n\nYes, even for likes: useful for e.g. adding brid.gy links\n"
},
{
"from": "human",
"value": "import { mpe } from './util.js'\n\nfunction matchingKey (action) {\n\tswitch (action) {\n\t\tcase 'like': return 'like-of'\n\t\tcase 'repost'... | javascript | chosen |
[
{
"from": "system",
"value": "Fix parameter syntax in CreateReleation\n\n\tmodified: lib/create_relation.js\n"
},
{
"from": "human",
"value": "'use strict';\nvar U = require('lodash');\nvar DynamoDB = require('./dynamodb');\n\nfunction CreateRelation() {}\n\nmodule.exports = CreateRelation;\n\... | javascript | chosen |
[
{
"from": "system",
"value": "fix: Fix call to undefined function\n"
},
{
"from": "human",
"value": "'use babel';\n\nimport { CompositeDisposable } from 'atom';\nimport fs from 'fs';\n\nexport default {\n modalPanel: null,\n subscriptions: null,\n\n config: {\n shouldCreateFile: {\n t... | javascript | chosen |
[
{
"from": "system",
"value": "Enable sourcemaps in the uglifyJs plugin\n"
},
{
"from": "human",
"value": "const path = require('path');\nconst webpack = require('webpack');\n\nmodule.exports = (env = {}) => {\n let plugins = [];\n\n if (env.production) {\n plugins = [\n new webpack.opt... | javascript | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.