conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Use const instead of var\n"
},
{
"from": "human",
"value": "var data = require(\"sdk/self\").data;\nvar tabs = require(\"sdk/tabs\");\nvar { ToggleButton } = require(\"sdk/ui/button/toggle\");\nvar btn_config = {};\nvar btn;\n\nfunction tabToggle(tab) {\n if (btn.s... | javascript | chosen |
[
{
"from": "system",
"value": "Use non utf8 buffer to help catch decoding errors\ne.g When using a utf8 string buffer we could store the buffer as a utf8 string and tests would pass. If you then tried to encode/decode an image you'd get incorrect results.\n"
},
{
"from": "human",
"value": "const ... | javascript | chosen |
[
{
"from": "system",
"value": "Add another Google Maps URL."
},
{
"from": "human",
"value": "// These URL paths will be transformed to CN mirrors.\nvar mirrors = {\n \"//developers.google.com\" : \"//developers.google.cn\",\n \"//firebase.google.com\" : \"//firebase.google.cn\",\n \"//develo... | javascript | chosen |
[
{
"from": "system",
"value": "Add code coverage to protractor\n"
},
{
"from": "human",
"value": "exports.config = {\n allScriptsTimeout: 11000,\n\n specs: [\n 'e2e/*.js'\n ],\n\n capabilities: {\n 'browserName': 'chrome',\n\t'phantomjs.binary.path': './node_modules/karma-phantomjs-laun... | javascript | chosen |
[
{
"from": "system",
"value": "Add support for negativeCompare, use function syntax\n"
},
{
"from": "human",
"value": "/* eslint-env jasmine */\nimport { assertions } from 'redux-actions-assertions-js';\n\nconst toDispatchActions = () => {\n return {\n compare(action, expectedActions, done) {... | javascript | chosen |
[
{
"from": "system",
"value": "Determine which sass package to install\n"
},
{
"from": "human",
"value": "let Preprocessor = require('./Preprocessor');\n\nclass Sass extends Preprocessor {\n /**\n * Required dependencies for the component.\n */\n dependencies() {\n this.requi... | javascript | chosen |
[
{
"from": "system",
"value": "Use object literal syntax in mapDispatchToProps\n"
},
{
"from": "human",
"value": "import { PropTypes } from 'react'\nimport {connect} from 'react-redux'\n\nimport {updateTodo, deleteTodo, showDeleteButtonOnTodo} from 'actions/actionCreators'\nimport TodoPresentatio... | javascript | chosen |
[
{
"from": "system",
"value": "Fix Vue test which require the presence of viewer-element dom object\n"
},
{
"from": "human",
"value": "import Vue from 'vue';\nimport Content from 'src/components/editor-viewer/Content';\n\ndescribe('Content.vue', () => {\n it('should render Editor component', () ... | javascript | chosen |
[
{
"from": "system",
"value": "Extend browser no activity timeout to 3 minutes.\n"
},
{
"from": "human",
"value": "// This is a karma config file. For more details see\n// http://karma-runner.github.io/0.13/config/configuration-file.html\n// we are also using it with karma-webpack\n// https:/... | javascript | chosen |
[
{
"from": "system",
"value": "Add timeout for kernel boot test for travis.\n"
},
{
"from": "human",
"value": "/*\n * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED\n * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES\n * OF MERCHANTABILITY AND FITNESS FOR A PAR... | javascript | chosen |
[
{
"from": "system",
"value": "Allow star fill and stroke color to be editted along with width and height\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport PropTypes from 'prop-types';\n\nimport FaStar from 'react-icons/fa/star';\nimport FaStarO from 'react-icons/fa/star-o';\n... | javascript | chosen |
[
{
"from": "system",
"value": ":ambulance: Fix oversized images in carousel component\n\n"
},
{
"from": "human",
"value": "// @flow\n// @jsx glam\nimport React from 'react';\nimport glam from 'glam';\n\nimport { Div, Img } from '../primitives';\nimport { type PropsWithStyles } from '../types';\ni... | javascript | chosen |
[
{
"from": "system",
"value": "Add $inject comment for DI in methods\n"
},
{
"from": "human",
"value": "(function (ng) {\n 'use strict';\n\n var $inject = function (cls, self, args) {\n var i;\n var key;\n var str;\n var func;\n var depNames = [];\n var deps = [];\n var l =... | javascript | chosen |
[
{
"from": "system",
"value": "Support for wrapString in newer knex versions\n"
},
{
"from": "human",
"value": "const Formatter = require('knex/lib/formatter');\n\nclass FormatterSOQL extends Formatter {\n wrap(value) {\n if (typeof value === 'function') {\n return this.outputQuery(this.... | javascript | chosen |
[
{
"from": "system",
"value": "Fix for tags not being cleaned up\n"
},
{
"from": "human",
"value": "define([\n\t'goo/fsmpack/statemachine/actions/Action',\n\t'goo/entities/components/ProximityComponent'\n],\n/** @lends */\nfunction(\n\tAction,\n\tProximityComponent\n) {\n\t'use strict';\n\n\tfunc... | javascript | chosen |
[
{
"from": "system",
"value": "QS-1486: Enable hidden metadata option on other people´s profile\n"
},
{
"from": "human",
"value": "import PropTypes from 'prop-types';\nimport React, { Component } from 'react';\nimport ProfileData from './ProfileData'\n\nexport default class OtherProfileDataList e... | javascript | chosen |
[
{
"from": "system",
"value": "Update Spaghetti default recipe to have servings and allergens.\n"
},
{
"from": "human",
"value": "import { ADD_RECIPE, EDIT_RECIPE, REMOVE_RECIPE } from '../actions';\nimport { v4 } from 'uuid';\n\nexport const defaultRecipes = [\n {\n titleDetails: {\n ti... | javascript | chosen |
[
{
"from": "system",
"value": "Clear input after submit now functinal\n"
},
{
"from": "human",
"value": "//placing both controllers her b/c short program, otherwise would make partial\n\nTodos.TodosController = Ember.ArrayController.extend ({\n\tactions: {\n\t\tcreateNewTodo: function() {\n\t\t\t... | javascript | chosen |
[
{
"from": "system",
"value": "Tweak logging to add space and colon between type and msg\n"
},
{
"from": "human",
"value": "var Logger = function (config) {\n this.config = config;\n this.backend = this.config.backend || 'stdout'\n this.level = this.config.level || \"LOG_INFO\"\n if (this.... | javascript | chosen |
[
{
"from": "system",
"value": "Fix Initiative sorting on landing page.\n"
},
{
"from": "human",
"value": "Router.configure({\n layoutTemplate: '_layout'\n});\n\n//From what I can tell this has been depreciated\n//https://github.com/iron-meteor/iron-router/blob/739bcc1445db3ad6bf90bda4e0cab3203a0... | javascript | chosen |
[
{
"from": "system",
"value": "chore(devtools): Add hook for redux devtools\n"
},
{
"from": "human",
"value": "import { browserHistory } from 'react-router';\nimport { createStore, applyMiddleware } from 'redux';\nimport { routerMiddleware } from 'react-router-redux';\ni... | javascript | chosen |
[
{
"from": "system",
"value": "Add `field` to error message"
},
{
"from": "human",
"value": "\nimport { ObjectId } from 'mongodb';\n\nimport Type from '../core/type';\n\n\nexport const MongoIdType = new Type({\n name: 'mongoid',\n generatePrimaryKeyVal() {\n return new ObjectId();\n },\n f... | javascript | chosen |
[
{
"from": "system",
"value": "Allow the grunt task to work with the watch mode\n"
},
{
"from": "human",
"value": "var build = require(\"../index\").build;\n\nmodule.exports = function(grunt){\n\n\tgrunt.registerMultiTask(\"steal-build\", \"Build a steal project into bundles.\", function(){\n\t\t... | javascript | chosen |
[
{
"from": "system",
"value": "Add minimal keyboard handling for control\n"
},
{
"from": "human",
"value": "$( function() {\n \n}) ;"
},
{
"from": "gpt",
"value": "$( function() {\n\tvar socket = io.connect('http://localhost:8080');\n\n\tvar timeouts = { 37:null, 38:null, 39:null, 40... | javascript | chosen |
[
{
"from": "system",
"value": "Add function do restore data from SharedPreferences\n"
},
{
"from": "human",
"value": "var PreferencesManager = function() {\n};\n\nPreferencesManager.exec = function() {\n\n var logRestoredValue = function(value) {\n console.log(value)\n }\n var succe... | javascript | chosen |
[
{
"from": "system",
"value": "Copy the .htaccess to the release directory\n"
},
{
"from": "human",
"value": "module.exports = {\n main: {\n files: [\n {\n expand: true,\n cwd: 'assets/',\n src: ['**'],\n dest: 'out/'\n }\n ]\n },\n require: {\n s... | javascript | chosen |
[
{
"from": "system",
"value": "Change status code for resouce confilcts to 422 'Unprocessable Entity'\n"
},
{
"from": "human",
"value": "const userModel = require('../../models/users')\nconst validator = require('./registerValidation')\nconst { buildResponse } = require('../../utils/responseServi... | javascript | chosen |
[
{
"from": "system",
"value": "Fix some code idiocies that lambdagrrl found.\n"
},
{
"from": "human",
"value": "module.exports = function(RED) {\n\t\"use strict\";\n \n\tfunction Fifo(config) {\n\t\tRED.nodes.createNode(this,config);\n\t\t\n\t\tvar me = this;\n\n\t\tthis.queue = [];\n\t\tthis.... | javascript | chosen |
[
{
"from": "system",
"value": "Move statics to the class\n"
},
{
"from": "human",
"value": "import React, { Component } from 'react';\nimport hoistStatics from 'hoist-non-react-statics';\n\n/*\n When this decorator is used, it MUST be the first (outermost) decorator.\n Otherwise, we... | javascript | chosen |
[
{
"from": "system",
"value": "Comment too-verbose JSON structure logging\n"
},
{
"from": "human",
"value": "var fs = require(\"fs\");\nvar PEG = require(\"pegjs\");\n\nvar parser = PEG.buildParser(fs.readFileSync(\"parser.pegjs\", \"utf8\"));\nvar tunes = fs.readFileSync(\"test/tunes.txt\", \"ut... | javascript | chosen |
[
{
"from": "system",
"value": "Move tcp test to port 2002"
},
{
"from": "human",
"value": "var net = require('net');\nvar server, port;\nserver = net.createServer(function (conn) {\n console.log(\"Server: connected\");\n conn.on(\"data\", function (data) {\n\n if (data.length == 1 &&... | javascript | chosen |
[
{
"from": "system",
"value": "Add a tables reducer to the lobby table list.\n"
},
{
"from": "human",
"value": "import { combineReducers } from 'redux'\nimport { WS_MSG } from './actions'\n\nfunction auth(state = {isAuthenticated: false}, action) {\n switch (action.type) {\n case WS_MSG:\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix the js header for real\n"
},
{
"from": "human",
"value": "/*\n * Looking for the full, uncompressed source? Try here:\n *\n * https://github.com/js/{{ REPOSITORY_NAME }}\n *\n * The following files are included in this compressed version:\n *{% for path in paths... | javascript | chosen |
[
{
"from": "system",
"value": "Update demo list for popover to add row of hyperlink button\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport { action } from '@storybook/addon-actions';\n\nimport Button from '@ichef/gypcrete/src/Button';\nimport List from '@ichef/gypcrete/src/L... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"es6 fix fix fix\"\n\nThis reverts commit 6cb64f9a18bff189ccb41580590f48142deab629.\n"
},
{
"from": "human",
"value": "// This is a temporary fix for supporting es6 scripts\n// We will add support for es6->es5 transforms in Lively and this can go away\n\nvar... | javascript | chosen |
[
{
"from": "system",
"value": "Add title attribute test to 2.4.4 (H33).\n\nThis is another \"in context\" notice. Only one notice will be thrown per link: if there is a title attribute, one notice will point to H77-81 AND H33 at once, if not, just to H77-81.\n"
},
{
"from": "human",
"value": "var... | javascript | chosen |
[
{
"from": "system",
"value": "Include district in updated e-mail.\n"
},
{
"from": "human",
"value": "import {\n Email,\n Box,\n Item,\n Span,\n A,\n renderEmail\n} from 'react-html-email'\nimport React from 'react'\nimport ReactMarkdown from 'react-ma... | javascript | chosen |
[
{
"from": "system",
"value": "Use `debug` instead of `console.log`\n"
},
{
"from": "human",
"value": "const { it } = require('mocha');\n\nconst initSocket = require('../../src/ws');\nconst { IO } = require('./util');\n\nmodule.exports = ({ server }) => {\n let connect;\n initSocket({\n on(c... | javascript | chosen |
[
{
"from": "system",
"value": "Remove a debug logging call\n"
},
{
"from": "human",
"value": "function setupBoolPreference(name) {\n document.getElementById(name).checked = Preferences[name].value;\n\n document.getElementById(name).addEventListener(\"change\", function(e) {\n Prefere... | javascript | chosen |
[
{
"from": "system",
"value": "Address review: Put translated line on one line.\n"
},
{
"from": "human",
"value": "/**\n * This is the first script called by the enrollment geography page. It loads\n * the libraries and kicks off the application.\n */\n\nrequire(['vendor/domReady!', 'load/init-p... | javascript | chosen |
[
{
"from": "system",
"value": "Check path of current page before starting the slider.\n"
},
{
"from": "human",
"value": "// Placeholder manifest file.\n// the installer will append this file to the app vendored assets here: vendor/assets/javascripts/spree/frontend/all.js'\n\nvar index = 1;\n\n$(d... | javascript | chosen |
[
{
"from": "system",
"value": "Remove old reference to cedict file\n\nChange-Id: I3fc1682679b99c8a188be8d848990b7de8346b33\n"
},
{
"from": "human",
"value": "var fs = require('fs'),\n path = require('path'),\n browserify = require('browserify'),\n cardGenerator = require('./card-generato... | javascript | chosen |
[
{
"from": "system",
"value": "chore(Inputs): Add Flow types to Inputs\n"
},
{
"from": "human",
"value": "import React, { PropTypes } from 'react';\nimport PureRenderMixin from 'react-addons-pure-render-mixin';\n\nexport default class Inputs extends React.Component {\n static propTypes = {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add some global variables. this will be handy when we change to production environment. just have to change a few variables.\n"
},
{
"from": "human",
"value": "angular.module('fleetonrails.services.login-service', [])\n\n .service('LoginService', ['$http', 'Globa... | javascript | chosen |
[
{
"from": "system",
"value": "Remove log concepts in concepts ctrl\n"
},
{
"from": "human",
"value": "'use strict';\n\nmodule.exports =\n\n/*@ngInject*/\nfunction ConceptsCmsCtrl (\n $scope, ConceptsFBService, _\n) {\n ConceptsFBService.get().then(function (c) {\n $scope.concepts = c;\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Write Views to Global Obj.\n"
},
{
"from": "human",
"value": "function loadData(view) {\n\t$.get(\"http://127.0.0.1:1338/data/\" + view, function (views) {\n\t\tviews.forEach(function (view) {\n\t\t\tvar table = `<div class=\"table-responsive\"><table class=\"table ... | javascript | chosen |
[
{
"from": "system",
"value": "Add define to jshint globals\n"
},
{
"from": "human",
"value": "/*global module: true*/\nmodule.exports = function( grunt ) {\n\n\t// Project configuration.\n\tgrunt.initConfig({\n\t\tlint: {\n\t\t\tfiles: [ \"grunt.js\", \"sizzle.js\", \"test/unit/*.js\" ]\n\t\t},\... | javascript | chosen |
[
{
"from": "system",
"value": "Refactor SPARQL update patcher with promises.\n\nThis improves reuse for future parsers.\n"
},
{
"from": "human",
"value": "// Performs an application/sparql-update patch on a graph\n\nmodule.exports = patch\n\nconst $rdf = require('rdflib')\nconst debug = require('... | javascript | chosen |
[
{
"from": "system",
"value": "Use ports 80&443 and data.logentries.com endpoint\n"
},
{
"from": "human",
"value": "/* jshint node: true */\n'use strict';\n\nmodule.exports.host = 'api.logentries.com';\n\nmodule.exports.levels = [\n\t'debug', 'info', 'notice', 'warning', 'err', 'crit', 'alert', '... | javascript | chosen |
[
{
"from": "system",
"value": "Exit with non-zero when error occurs\n"
},
{
"from": "human",
"value": "'use strict';\nconst binBuild = require('bin-build');\nconst log = require('logalot');\nconst path = require('path');\nconst bin = require('.');\n\nbin.run(['-version']).then(() => {\n\tlog.succ... | javascript | chosen |
[
{
"from": "system",
"value": "Add afterCreate, afterUpdate, afterDestroy for membershipgroup: update person view\n"
},
{
"from": "human",
"value": "module.exports = {\n attributes: {\n child_group: {\n model: 'Group'\n },\n parent_group: {\n model: '... | javascript | chosen |
[
{
"from": "system",
"value": "Add randomized option for example\n"
},
{
"from": "human",
"value": "require('coffee-script/register');\nvar path = require('path');\nvar Jasmine = require('jasmine');\nvar SpecReporter = require('../src/jasmine-spec-reporter.js');\nvar noop = function () {};\n\nvar... | javascript | chosen |
[
{
"from": "system",
"value": "Throw an error instead of a string.\n\nRelated to https://github.com/rubenv/node-systemd/issues/5 (#5).\n"
},
{
"from": "human",
"value": "var net = require('net');\n\nvar Server = net.Server.prototype;\nvar Pipe = process.binding('pipe_wrap').Pipe;\n\nvar oldListen... | javascript | chosen |
[
{
"from": "system",
"value": "Make updating twice more frequent: calls every 5 minutes\n"
},
{
"from": "human",
"value": "require('newrelic')\nvar DateTime = require('dateutils').DateTime\nvar dao = require('./src/dao')\nvar daysAhead = 0\nvar maxDaysAhead = 60\n\ndoRefresh()\nsetInterval(() => ... | javascript | chosen |
[
{
"from": "system",
"value": "Add marked and call it\n"
},
{
"from": "human",
"value": "const marked = require(\"marked\")\nmodule.exports = function () {\n this.filter(\"transformerName\", (source, options) => {\n try {\n return source\n } catch (e) { throw e }\n })\n}\n"
},
{... | javascript | chosen |
[
{
"from": "system",
"value": "Make fix to use process.env as a global variable and not process.env.KEY\n"
},
{
"from": "human",
"value": "const dotenv = require('dotenv-safe');\nconst fs = require('fs');\nconst DefinePlugin = require('webpack').DefinePlugin;\n\nmodule.exports = DotenvPlugin;\n\n... | javascript | chosen |
[
{
"from": "system",
"value": "Remove callback on error - let the error bubble up\n"
},
{
"from": "human",
"value": "var http = require('http');\nvar yaml = require('js-yaml');\nvar fs = require('fs');\nvar spawn = require('child_process').spawn;\nvar chimneypot = require('chimneypot');\n\n(funct... | javascript | chosen |
[
{
"from": "system",
"value": "Use old function syntax for better UglifyJs compability\n"
},
{
"from": "human",
"value": "import * as components from './components';\n\nconst VuePlugin = {\n install(Vue){\n if (VuePlugin.installed) return;\n VuePlugin.installed = true;\n f... | javascript | chosen |
[
{
"from": "system",
"value": "Add support for literate coffeescript files\n\nAlthough the CoffeeScript processor can handle [literate CoffeeScript](http://coffeescript.org/#literate) files, they were not being included in the filter.\n"
},
{
"from": "human",
"value": "var Filter = require('brocc... | javascript | chosen |
[
{
"from": "system",
"value": "Support for pushing to a queue via observer.\n"
},
{
"from": "human",
"value": "var Rx = require('rx'),\n _ = require('lodash');\n\nfunction readMessage(sqs, params, callback) {\n sqs.receiveMessage(params, function (err, data) {\n callback(err, data);\... | javascript | chosen |
[
{
"from": "system",
"value": "Replace file extension when optimizing\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar ExecBuffer = require('exec-buffer');\nvar imageType = require('image-type');\nvar through = require('through2');\nvar webp = require('cwebp-bin').path;\n\n/**\n * webp ima... | javascript | chosen |
[
{
"from": "system",
"value": "Fix some amount, returned one log\n"
},
{
"from": "human",
"value": "const Octokat = require('octokat')\nconst open = require('open')\nconst Promise = require('bluebird')\nvar octo, organization, repository\n\nmodule.exports = function openNotifications (input, opts... | javascript | chosen |
[
{
"from": "system",
"value": "Add functions to get case report links"
},
{
"from": "human",
"value": "var extractHearingType = function(hearingRow) {\n return hearingRow.querySelectorAll('td')[4].textContent.trim();\n};\nvar isPrelim = function(hearingRow) {\n return extractHearingType(hearing... | javascript | chosen |
[
{
"from": "system",
"value": "Replace inline 'script!' with 'script-loader!'\n\nThis change is necessary to allow this module to properly work with newer\nversions of Webpack.\n"
},
{
"from": "human",
"value": "require('font-awesome-webpack');\nwindow.$ = require('jquery');\n\nrequire('./css/htm... | javascript | chosen |
[
{
"from": "system",
"value": "Support ES module exported class names\n"
},
{
"from": "human",
"value": "var loaderUtils = require(\"loader-utils\");\n\nmodule.exports = function(source, map) {\n this.callback(null, source, map);\n};\n\nmodule.exports.pitch = function(remainingRequest) {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Return an array of wanted dependencies\n"
},
{
"from": "human",
"value": "var readPackageTree = require(\"read-package-tree\");\n\nmodule.exports = function(dir, cb) {\n readPackageTree(dir, function(err, root) {\n if (err) {\n cb(err);\n return;\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Change default window size to full screen.\n"
},
{
"from": "human",
"value": "/**\n * Listens for the app launching then creates the window\n *\n */\nchrome.app.runtime.onLaunched.addListener(function() {\n var screenWidth = screen.availWidth;\n var screenHeig... | javascript | chosen |
[
{
"from": "system",
"value": "Add component form select on header filter\n"
},
{
"from": "human",
"value": "'use strict'\n\nimport React from 'react'\nimport SvgIcon from '../../components/svg-icon'\n\nconst HeaderFilter = () => (\n <nav className='filter'>\n <div className='form-select'>\... | javascript | chosen |
[
{
"from": "system",
"value": "Add empty onUnload to pass test\n"
},
{
"from": "human",
"value": "const simplePreferences = require(\"sdk/simple-prefs\");\nconst ui = require(\"./lib/ui\");\n\nconst preferences = simplePreferences.prefs;\n\nexports.main = function(options) {\n console.log(\"St... | javascript | chosen |
[
{
"from": "system",
"value": "Make channel info purpose link work\n"
},
{
"from": "human",
"value": "ChannelInfo = BlazeComponent.extendComponent({\n onCreated: function () {\n\n },\n onRendered: function () {\n\n },\n creatorUsername : function() {\n return currentChannel().createdBy ? ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix variable already defined JSHint error\n"
},
{
"from": "human",
"value": "exports.fixed = function(x, y, ratio) {\n var orient = ratio.split('!')[1];\n var ratio = ratio.split('!')[0].split(':').sort();\n\n var vertical = y > x;\n var rotate = y > x && orien... | javascript | chosen |
[
{
"from": "system",
"value": "Update listed modules to ignore\n"
},
{
"from": "human",
"value": "'use strict'\n\nvar isPresent = require('is-present')\nvar githubRepos = require('github-repositories')\nvar Promise = require('pinkie-promise')\n\nvar reposToIgnore = [\n 'tachyons',\n 'tachyons-c... | javascript | chosen |
[
{
"from": "system",
"value": "Remove buildnumber from version when tag\n"
},
{
"from": "human",
"value": "var jsonfile = require('jsonfile');\n\n// Read in the file to be patched\nvar file = process.argv[2]; // e.g. '../src/MyProject/project.json'\nif (!file)\n console.log(\"No filename provi... | javascript | chosen |
[
{
"from": "system",
"value": "Throw an error if no Client-ID is given\n"
},
{
"from": "human",
"value": "var http = require(\"https\");\nvar querystring = require(\"querystring\");\n\nvar ImgurProto = {\n gallery: function(params, callback) {\n var qs = querystring.stringify(params);\n va... | javascript | chosen |
[
{
"from": "system",
"value": "Use front-matter to parse YAML front matter from posts\n"
},
{
"from": "human",
"value": "#!/usr/bin/env/node\n\nvar cheerio = require('cheerio'),\n fs = require('fs'),\n md = require('marked'),\n mkdirp = require('mkdirp'),\n path = require('path');\n\n... | javascript | chosen |
[
{
"from": "system",
"value": "Prepare the entry script with appropriate switch-case\n\n- Check the number and type of arguments before writing an expense.\n\nSigned-off-by: Siddharth Kannan <805f056820c7a1cecc4ab591b8a0a604b501a0b7@gmail.com>"
},
{
"from": "human",
"value": "'use strict';\nmodul... | javascript | chosen |
[
{
"from": "system",
"value": "Add error param to diskspace callback.\n\ndiskspace 0.1.7 expects an error parameter as the first parameter of the callback (this is different from diskspace 0.1.5, which this plugi\nn had been using previously).\n\nhttps://github.com/keverw/diskspace.js/commit/d690faad01fdf76f... | javascript | chosen |
[
{
"from": "system",
"value": "Update rabbit consumption code to use the new simplified stream of messages from the queue.\n"
},
{
"from": "human",
"value": "var rabbit = require('./rabbit');\nvar config = require('./rabbit.json');\nvar commandLineArgs = require('command-line-args');\n\nvar args ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix tracking script not found\n"
},
{
"from": "human",
"value": "'use strict';\nconst express = require('express');\nconst app = express();\nconst cookieParser = require('cookie-parser')\nconst config = require('./config/config');\nconst sqlClient = require('knex')... | javascript | chosen |
[
{
"from": "system",
"value": "Add toast after creating release\n"
},
{
"from": "human",
"value": "const release = require('./lib/release')\n\nmodule.exports = function () {\n const project = this.project\n const { getChangeLog, newRelease } = release(project)\n\n return [\n {\n title:... | javascript | chosen |
[
{
"from": "system",
"value": "Allow you to get the whole db\n"
},
{
"from": "human",
"value": "var fs = require('fs');\n\nfunction SuperSimpleDB(path) {\n if (!fs.existsSync(path)) {\n write({});\n }\n\n this.get = get;\n this.set = set;\n\n function get(key) {\n return read()[key];\n... | javascript | chosen |
[
{
"from": "system",
"value": "Add default getter for page strategies\n"
},
{
"from": "human",
"value": "var fs = require('fs')\n\nmodule.exports = {\n getPageStrategyElement: function(pageStrategy, element) {\n if (!fs.existsSync(__dirname + '/' + pageStrategy + '/' + element)) {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Disable direct access to plugins or plugin helpers\n"
},
{
"from": "human",
"value": "\n'use strict';\n\nvar helpers = require('./lib/test-helpers');\n\nmodule.exports = {\n setFirebaseData: helpers.setFirebaseData,\n setFirebaseRules: helpers.setFirebaseRules,\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Test update of spinner text\n"
},
{
"from": "human",
"value": "var elegantStatus = require('./');\n\nvar done = elegantStatus('Perform assessment');\n\nsetTimeout(function () {\n done(true);\n\n done = elegantStatus('Set defense systems');\n\n setTimeout(fu... | javascript | chosen |
[
{
"from": "system",
"value": "Remove new function style usage\n"
},
{
"from": "human",
"value": "const gulp = require('gulp');\nconst config = require('./config');\nconst eslint = require('gulp-eslint');\n\ngulp.task('eslint', () => {\n return gulp.src(config.lib)\n .pipe(eslint(config.root ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix problem with ws host:port mismatch on heroku\n"
},
{
"from": "human",
"value": "var Reflux = require('reflux');\nvar config = require('./../../../config');\nvar ApiActions = require('./../actions/ApiActions');\n\nvar buffer = [];\nvar ws;\n\nvar ApiStore... | javascript | chosen |
[
{
"from": "system",
"value": "Set an attr on the model whilst a request is mid-flight\n\nDone by overriding fetch and listening for sync/error which\nare triggered on success/error respectively\n"
},
{
"from": "human",
"value": "define(['backbone'], function(Backbone) {\n var MoxieModel = Bac... | javascript | chosen |
[
{
"from": "system",
"value": "Remove \"css\" from input format"
},
{
"from": "human",
"value": "'use strict';\n\nvar Cleaner = require('clean-css');\nvar defaultCleaner = new Cleaner();\nvar Promise = require('promise');\n\nexports.name = 'clean-css';\nexports.inputFormats = ['clean-css', 'css'... | javascript | chosen |
[
{
"from": "system",
"value": "Add main script for npm\n"
},
{
"from": "human",
"value": "var globals = {};\n\n// Stash old global.\nif (\"tree-node\" in global) globals.tree-node = global.tree-node;\n\nmodule.exports = require(\"./dist/tree-node\");\n\n// Restore old global.\nif (\"tree-node\" i... | javascript | chosen |
[
{
"from": "system",
"value": "Fix path to the executable to work in most of the cases.\n"
},
{
"from": "human",
"value": "var path = require('path'),\n cmd = require('./lib/utils/cmd'),\n fs = require('fs'),\n Q = require('q'),\n osenv = require('osenv'),\n extractUser = require('... | javascript | chosen |
[
{
"from": "system",
"value": "Fix import for nested add-on.\n"
},
{
"from": "human",
"value": "/* jshint node: true */\n'use strict';\n\nmodule.exports = {\n name: 'ember-cli-gravatar',\n\n included: function included(app) {\n this.app = app;\n this._super.included(app);\n\n app.impor... | javascript | chosen |
[
{
"from": "system",
"value": "Add css resource as dependency to trigger rebuilds\n"
},
{
"from": "human",
"value": "var DtsCreator = require('typed-css-modules');\nvar loaderUtils = require('loader-utils');\n\nmodule.exports = function(source, map) {\n this.cacheable && this.cacheable();\n var... | javascript | chosen |
[
{
"from": "system",
"value": "Fix Edit Trigger bug flowing from creating a zone\n"
},
{
"from": "human",
"value": "'use strict';\n\nyeomanApp.controller('EditZoneCtrl'\n , ['$scope', '$rootScope', 'UIEvents', 'ZoneFactory', 'ZoneService', 'EditZoneService', 'EditTriggerService', 'TriggerFactory... | javascript | chosen |
[
{
"from": "system",
"value": "Copy transform method over from UMDFormatter\n"
},
{
"from": "human",
"value": "// Imports\n// -------------------------------------------------------------------------------------------------\n\nvar UMDFormatter = require('6to5/lib/6to5/transformation/modules/umd')... | javascript | chosen |
[
{
"from": "system",
"value": "Add configuration flag to enable addon"
},
{
"from": "human",
"value": "/* jshint node: true */\n'use strict';\n\nvar fs = require('fs');\nvar path = require('path');\n\n\nfunction readSnippet() {\n try {\n return fs.readFileSync(path.join(process.cwd(), 'vendor... | javascript | chosen |
[
{
"from": "system",
"value": "FIX loading was not being updated on the reduce\n"
},
{
"from": "human",
"value": "import * as ActionTypes from '../constants/ActionTypes';\n\nlet defaultState = {\n loading: false,\n data: [], // array of comics\n last_error: undefined\n}\n\nexport default funct... | javascript | chosen |
[
{
"from": "system",
"value": "Stop using the removed magic __stack global getter"
},
{
"from": "human",
"value": "\n/**\n * Module dependencies.\n */\n\nvar AssertionError = require('assert').AssertionError\n , callsite = require('callsite')\n , fs = require('fs')\n\n/**\n * Expose `assert`.\n... | javascript | chosen |
[
{
"from": "system",
"value": "Print email recipients on startup\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst schedule = require('node-schedule');\n\nconst jenkins = require('./lib/jenkins');\nconst redis = require('./lib/redis');\n\nconst gitter = require('./lib/gitter');\nconst ... | javascript | chosen |
[
{
"from": "system",
"value": "Allow configuration of the WebSocket constructor\n"
},
{
"from": "human",
"value": "var boombox = require('boombox');\nvar test = boombox(require('tape'));\nvar signaller = require('rtc-signaller');\nvar WebSocket = require('ws');\nvar reTrailingSlash = /\\/$/;\n\nm... | javascript | chosen |
[
{
"from": "system",
"value": "Make it a single instance app\n"
},
{
"from": "human",
"value": "var app = require(\"app\"); // Module to control application life.\nvar BrowserWindow = require(\"browser-window\"); // Module to create native browser window.\n\n// Keep a global reference of the wi... | javascript | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.