conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Set the default value of the checkInstalled option to false\n"
},
{
"from": "human",
"value": "'use babel';\n\nexport default {\n \"prerelease\": {\n \"title\": \"Level of prerelease\",\n \"description\": \"Set the level maximum to check for the libraries ver... | javascript | chosen |
[
{
"from": "system",
"value": "Remove body as an extractor\n"
},
{
"from": "human",
"value": "const passportJWT = require('passport-jwt');\n\nmodule.exports = {\n 'header': passportJWT.ExtractJwt.fromHeader,\n 'body': passportJWT.ExtractJwt.fromBodyField,\n 'query': passportJWT.ExtractJwt.from... | javascript | chosen |
[
{
"from": "system",
"value": "Add support for alternate URLs for input logging (aka ec2)\n"
},
{
"from": "human",
"value": "/*\n * config.js: Configuration information for your Loggly account.\n * This information is only used for require('loggly')./\\.+/ methods\n *\n * (C) 2010 Node... | javascript | chosen |
[
{
"from": "system",
"value": "Use e.message as error name\n"
},
{
"from": "human",
"value": "\nErrorModel = function (appId) {\n var self = this;\n this.appId = appId;\n this.errors = {};\n this.startTime = Date.now();\n}\n\n_.extend(ErrorModel.prototype, KadiraModel.prototype);\n\nErrorMode... | javascript | chosen |
[
{
"from": "system",
"value": "Add TODO comment and fix warning from eslint\n"
},
{
"from": "human",
"value": "/**\n* LICENSE MIT\n* (C) Daniel Zelisko\n* http://github.com/danielzzz/node-ping\n*\n* a simple wrapper for ping\n* Now with support of not only english Windows.\n*\n*/\n\n//system libr... | javascript | chosen |
[
{
"from": "system",
"value": "Change file IO in listAndRun to be asynchronous\n"
},
{
"from": "human",
"value": "'use strict';\nconst addLineNumbers = require('add-line-numbers');\nconst spawnSync = require('child_process').spawnSync;\nconst fs = require('fs');\nconst path = '/tmp/te';\n\nmodule... | javascript | chosen |
[
{
"from": "system",
"value": "Add touch support for the redraw of the circles\n"
},
{
"from": "human",
"value": "var counter;\n\nfunction setup() {\n var canvas = createCanvas(400, 400);\n canvas.parent('play');\n counter = new Counter();\n counter.new();\n}\n\nfunction draw() {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add targets option to babel configuration\n"
},
{
"from": "human",
"value": "const { isProd, isDev } = require('../env');\n\nmodule.exports = (config) => {\n const options = {\n babelrc: false,\n compact: true,\n cacheDirectory: `${__dirname}/.babelCache`,... | javascript | chosen |
[
{
"from": "system",
"value": "Initialize array store with an empty array\n"
},
{
"from": "human",
"value": "\nvar SimpleStore = require('fh-wfm-simple-store'),\n config = require('./config.js');\n\n/**\n * Creates and initializes a store to be used by the app modules.\n * @param {String} dataSe... | javascript | chosen |
[
{
"from": "system",
"value": "Add Knockout to font loader\n"
},
{
"from": "human",
"value": "var urls = [\n 'http://s.npr.org/templates/css/fonts/GothamSSm.css',\n 'http://s.npr.org/templates/css/fonts/Gotham.css'\n];\n\nif (window.location.protocol == \"https:\") {\n urls = [\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add test coverage to utils metadata\n"
},
{
"from": "human",
"value": "'use strict';\n\n// Load chai\nconst chai = require('chai');\nconst expect = chai.expect;\n\n// Load our module\nconst utils = require('../../../app/libs/utils');\n\ndescribe('Function \"metadata... | javascript | chosen |
[
{
"from": "system",
"value": "Fix deprecated template lint runle\n"
},
{
"from": "human",
"value": "/* eslint-env node */\n'use strict';\n\nmodule.exports = {\n extends: 'recommended',\n rules: {\n 'html-comments': false\n }\n};\n"
},
{
"from": "gpt",
"value": "/* eslint-env no... | javascript | chosen |
[
{
"from": "system",
"value": "Update eslint for es6 import\n"
},
{
"from": "human",
"value": "module.exports = {\n 'env': {\n 'browser': true,\n 'es6': true,\n 'node': true,\n },\n 'extends': [\n 'eslint:recommended',\n 'plugin:react/recommended',\n 'plugin:import/errors',\n... | javascript | chosen |
[
{
"from": "system",
"value": "Add try-catch as safeguard against potentionally misbehaving parser\n"
},
{
"from": "human",
"value": "/*\n * Copyright 2014-2015 Fabian Tollenaar <fabian@starting-point.nl>\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not us... | javascript | chosen |
[
{
"from": "system",
"value": "Add latest data API endpoint\n"
},
{
"from": "human",
"value": "Meteor.startup(function () {\n Meteor.call(\"lightstreamerConnect\")\n Restivus.configure({\n useAuth: true,\n prettyJson: true\n });\n Restivus.addCollection(isslocation, {\n excludedEndpo... | javascript | chosen |
[
{
"from": "system",
"value": "Change to using promisify instead of async for better code and easy error handling\n"
},
{
"from": "human",
"value": "//get index\nrequire('./../config');\nasync=require('async');\nvar bitcoin=require('bitcoin').bitcoin;\nvar knex=require('knex').knex;\n\n//var book... | javascript | chosen |
[
{
"from": "system",
"value": "Add authenticate endpoint (but not actually authenticating yet)\n"
},
{
"from": "human",
"value": "var express = require('express');\nvar router = express.Router();\n\n/* GET users listing. */\nrouter.get('/', function(req, res, next) {\n res.send('respond with a r... | javascript | chosen |
[
{
"from": "system",
"value": "Fix an issue with parameter validation\n"
},
{
"from": "human",
"value": "var isFunction = require('lodash.isfunction');\nvar joi = require('joi');\nvar pc = require('pascal-case');\n\n/* Public */\n\nfunction attach(schema) {\n var attachments = {};\n\n schema &&... | javascript | chosen |
[
{
"from": "system",
"value": "Make Lists view mobile friendly\n"
},
{
"from": "human",
"value": "import React, { Component } from \"react\";\nimport styled from \"styled-components\";\n\nimport { Row, RowContent, ColumnContainer } from \"../SharedComponents.js\";\n\nimport Loading from \"../load... | javascript | chosen |
[
{
"from": "system",
"value": "Update example for NGINX parser\n"
},
{
"from": "human",
"value": "/*\n * Copyright (C) DreamLab Onet.pl Sp. z o. o.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"S... | javascript | chosen |
[
{
"from": "system",
"value": "Add type attribute set to button\n"
},
{
"from": "human",
"value": "document.getElementById(\"ayuda\").setAttribute(\"aria-current\", \"page\");\n\nvar aside = document.getElementById(\"complementario\");\n\nvar form = document.createElement(\"FORM\");\nvar p = docu... | javascript | chosen |
[
{
"from": "system",
"value": "Whitelist for characters in TXT records\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst Hoek = require('hoek');\nconst Joi = require('joi');\nconst recordBase = require('./record_base');\n\nmodule.exports = Hoek.clone(recordBase).keys({\n record_type: Joi... | javascript | chosen |
[
{
"from": "system",
"value": "Store timeoutId in local variable\n"
},
{
"from": "human",
"value": "/*\n * Author: CM\n */\n(function($) {\n\t$.event.special.clickConfirmed = {\n\t\tbindType: \"click\",\n\t\tdelegateType: \"click\",\n\n\t\tsettings: {\n\t\t\tmessage: 'Please Confirm'\n\t\t},\n\n\... | javascript | chosen |
[
{
"from": "system",
"value": "Add GET location by ID route.\n"
},
{
"from": "human",
"value": "const express = require('express');\n\nconst router = express.Router();\n\nconst authController = require('./authController');\nconst locationsController = require('./locationsController');\nconst loca... | javascript | chosen |
[
{
"from": "system",
"value": "Fix record function returning this"
},
{
"from": "human",
"value": "let path = require('path');\nlet Manifest = require('./Manifest');\nlet objectValues = require('lodash').values;\n\nclass Versioning {\n /**\n * Create a new Versioning instance.\n *\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add basic sanity test for both scenarios.\n"
},
{
"from": "human",
"value": "import { moduleForComponent, test } from 'ember-qunit';\nimport Component from '@ember/component';\nimport hbs from 'htmlbars-inline-precompile';\n\nmoduleForComponent('attributes', 'Integr... | javascript | chosen |
[
{
"from": "system",
"value": "Correct documented event names for VectorSourceEvent\n"
},
{
"from": "human",
"value": "/**\n * @module ol/source/VectorEventType\n */\n\n/**\n * @enum {string}\n */\nexport default {\n /**\n * Triggered when a feature is added to the source.\n * @event module:... | javascript | chosen |
[
{
"from": "system",
"value": "Replace socket destroy with Staccato unlisten.\n"
},
{
"from": "human",
"value": "const { Staccato } = require('staccato')\n\nmodule.exports = async function (input) {\n const staccato = new Staccato(input)\n let accumulator = Buffer.alloc(0)\n for (;;) {\n... | javascript | chosen |
[
{
"from": "system",
"value": "build(rollup): Set up uglify plugin and sourcemaps\n"
},
{
"from": "human",
"value": "// @flow\n\nimport babel from \"rollup-plugin-babel\";\nimport commonjs from \"rollup-plugin-commonjs\";\nimport fs from \"fs\";\nimport pascalCase from \"pascal-case\";\nimport re... | javascript | chosen |
[
{
"from": "system",
"value": "Move wrongly linted animation to hard tests\n"
},
{
"from": "human",
"value": "import styled from 'styled-components'\n\n// None of the below should throw indentation errors\nconst Comp = () => {\n const Button = styled.button`\n color: blue;\n `\n\n return Bu... | javascript | chosen |
[
{
"from": "system",
"value": "Fix script addition to package.son\n"
},
{
"from": "human",
"value": "'use strict';\nvar generators = require('yeoman-generator');\nvar extend = require('deep-extend');\n\nmodule.exports = generators.Base.extend({\n constructor: function () {\n generators.Base.a... | javascript | chosen |
[
{
"from": "system",
"value": "Copy debug alerts to browser console if flag set\n"
},
{
"from": "human",
"value": "/*\r\n\tpwm Password Manager\r\n\tCopyright Owen Maule 2015\r\n\to@owen-m.com\r\n\thttps://github.com/owenmaule/pwm\r\n\r\n\tLicense: GNU Affero General Public License v3\r\n\r\n\tTh... | javascript | chosen |
[
{
"from": "system",
"value": "[Changed] Add options object to seed template\n"
},
{
"from": "human",
"value": "'use strict';\n\nmodule.exports = {\n up: function (queryInterface, Sequelize) {\n /*\n Add altering commands here.\n Return a promise to correctly handle asynchronicity.\... | javascript | chosen |
[
{
"from": "system",
"value": "Add type=button only for button tagged dropdown toggles (not for eg. a tags)\n"
},
{
"from": "human",
"value": "import Ember from 'ember';\n\nexport default Ember.Component.extend({\n classNames: ['rl-dropdown-toggle'],\n\n tagName: 'button',\n\n attributeBinding... | javascript | chosen |
[
{
"from": "system",
"value": "Add cloudflare Rocket Fix Try 1\n"
},
{
"from": "human",
"value": "var disqus_shortname = 'jtwebman';\n\n(function () {\n 'use strict';\n var dsq = document.createElement('script');\n dsq.type = 'text/javascript';\n dsq.async = true;\n dsq.src = '//' + disqus_s... | javascript | chosen |
[
{
"from": "system",
"value": "Fix handling of undefined tags\n"
},
{
"from": "human",
"value": "'use strict';\n\nimport { importEntities, validateEntities } from './base';\nimport { schema } from '../schema/post';\n\nexport function importData (entries, space, contentType, data) {\n validateEnt... | javascript | chosen |
[
{
"from": "system",
"value": "Make Reports return a promise as expected\n"
},
{
"from": "human",
"value": "import BaseAPI from './base.es6.js';\nimport Report from '../models/report.es6.js';\n\nexport default class Reports extends BaseAPI {\n model = Report;\n\n move = this.notImplemented('mov... | javascript | chosen |
[
{
"from": "system",
"value": "Change configuration on production Auth0\n"
},
{
"from": "human",
"value": "import Ember from 'ember';\n\nexport default Ember.Controller.extend({\n session: Ember.inject.service(),\n actions: {\n login () {\n var lockOptions = {\n allowedConnection... | javascript | chosen |
[
{
"from": "system",
"value": "Use es6 promises instead of Q\n"
},
{
"from": "human",
"value": "import Q from \"q\";\n\nconst JSONPUtil = {\n /**\n * Request JSONP data\n *\n * @todo: write test to verify this util is working properly\n *\n * @param {string} url\n * @returns {Q.promi... | javascript | chosen |
[
{
"from": "system",
"value": "Deploy to my account gh page\n"
},
{
"from": "human",
"value": "/**\n * React Static Boilerplate\n * https://github.com/koistya/react-static-boilerplate\n * Copyright (c) Konstantin Tarkus (@koistya) | MIT license\n */\n\nimport GitRepo from 'git-repository';\nimpor... | javascript | chosen |
[
{
"from": "system",
"value": "Make \"new room\" page an authenticated route\n"
},
{
"from": "human",
"value": "(function (angular) {\r\n \r\n 'use strict';\r\n \r\n angular.module('birdyard.rooms')\r\n \r\n .config(['$routeProvider', function ($routeProvider) {\r\n \r\n $routeProvide... | javascript | chosen |
[
{
"from": "system",
"value": "Print stacktrace when Biwa crashes in node.js.\n"
},
{
"from": "human",
"value": "var sys = require('sys'),\n fs = require('fs'),\n path = require('path'),\n \n optparse = require('optparse');\n\nfunction Options(argv){\n var switches = [\n [ '-... | javascript | chosen |
[
{
"from": "system",
"value": "Test no handler via call to deprecate.log\n"
},
{
"from": "human",
"value": "const assert = require('assert')\nconst deprecations = require('electron').deprecations\n\ndescribe('deprecations', function () {\n beforeEach(function () {\n deprecations.setHandler(nu... | javascript | chosen |
[
{
"from": "system",
"value": "Fix spec leaving browser in mocked quirks mode\n"
},
{
"from": "human",
"value": "const u = up.util\nconst $ = jQuery\n\ndescribe('up.framework', function() {\n\n describe('JavaScript functions', function() {\n\n describe('up.framework.isSupported', function() {... | javascript | chosen |
[
{
"from": "system",
"value": "Switch to toJSON to pull data from models\n\nAllows for simpler customization of data.\n"
},
{
"from": "human",
"value": "/**\n * Page view constructor\n * Handles all jQuery Mobile setup for any sub-classed page.\n */\ndefine([\n \"backbone\"\n],\nfunction(Backb... | javascript | chosen |
[
{
"from": "system",
"value": "Add NODE_ENV on test scripts"
},
{
"from": "human",
"value": "import { join } from 'path'\nimport json from '../util/json'\n\nconst saguiScripts = {\n 'start': 'npm run develop',\n 'test': 'sagui test',\n 'test-watch': 'sagui test --watch',\n 'develop': 'sagui d... | javascript | chosen |
[
{
"from": "system",
"value": "Move foundation start to the end\n"
},
{
"from": "human",
"value": "---\n---\n\n$(document).foundation();\n\n{% for javascript in site.noita.javascripts %}\n {% include javascript %}\n{% endfor %}\n"
},
{
"from": "gpt",
"value": "---\n---\n\n{% for java... | javascript | chosen |
[
{
"from": "system",
"value": "Move the quail-core require into the build method\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node --harmony\n\n'use strict';\n\nconst path = require('path');\nconst configUtil = require('./config');\nconst cwd = process.cwd();\nconst quailCore = require(path.... | javascript | chosen |
[
{
"from": "system",
"value": "Fix no need to always import DevTools component.\n"
},
{
"from": "human",
"value": "// This file bootstraps the app with the boilerplate necessary\n// to support hot reloading in Redux\nimport React, {PropTypes} from 'react';\nimport { bindActionCreators } from 'red... | javascript | chosen |
[
{
"from": "system",
"value": "Make Init.sandbox() take an input configuration.\n"
},
{
"from": "human",
"value": "var copy = require(\"./copy\");\nvar path = require(\"path\");\nvar temp = require(\"temp\").track();\nvar Config = require(\"./config\");\n\nvar Init = function(destination, callbac... | javascript | chosen |
[
{
"from": "system",
"value": "Remove monkey patches of the unit tester\n"
},
{
"from": "human",
"value": "var EventEmitter = require('events').EventEmitter;\nvar nodeunit = require('nodeunit');\n\nvar assert = require('nodeunit/lib/assert');\n\nassert.equal = function equal(actual, expected, mes... | javascript | chosen |
[
{
"from": "system",
"value": "Allow module value in config to be optional.\n"
},
{
"from": "human",
"value": "/**\n * Basic engine support.\n */\n\nrequire('../lib/setModuleDefaults');\n\nvar config = require('config');\nvar engineConfig = config.engines ? config.engines : undefined;\n\n/**\n * ... | javascript | chosen |
[
{
"from": "system",
"value": "Exclude tests usinig importHref from Polymer 3\n"
},
{
"from": "human",
"value": "window.VaadinDatePickerSuites = [\n 'basic.html',\n 'dropdown.html',\n 'overlay.html',\n 'month-calendar.html',\n 'scroller.html',\n 'form-input.html',\n 'custom-input.html',\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Test that 'offline' overwrites an already existing offline-worker.js\n"
},
{
"from": "human",
"value": "var assert = require('assert');\nvar fs = require('fs');\nvar path = require('path');\nvar temp = require('temp').track();\nvar offline = require('../lib/offline'... | javascript | chosen |
[
{
"from": "system",
"value": "Fix object notation in service\n"
},
{
"from": "human",
"value": "angular.module('atlasApp').service('MapsService', function(\n\t$scope, \n\t$http,\n\tLocationProvider,\n\tBusInfoProvider\n) {\n return {\n /**\n\t * Initializes the Google Maps canvas\n\... | javascript | chosen |
[
{
"from": "system",
"value": "Fix a broken Ember.get call\n"
},
{
"from": "human",
"value": "/* global Raven */\n\nimport config from '../config/environment';\nimport Ember from 'ember';\n\nexport function initialize() {\n // Disable for development\n if (Ember.get('config.sentry.development')... | javascript | chosen |
[
{
"from": "system",
"value": "Add get and set modifiers\nAdd virtual fields\n"
},
{
"from": "human",
"value": "/**\n * Created by vinichenkosa on 05.03.15.\n */\nvar mongoose = require('mongoose');\nvar Schema = mongoose.Schema;\n\nvar UserSchema = new Schema({\n firstName: String,\n lastN... | javascript | chosen |
[
{
"from": "system",
"value": "Fix update-schema JSON for Storyboard 2\n"
},
{
"from": "human",
"value": "import fs from 'fs-extra';\nimport path from 'path';\nimport { mainStory, chalk } from 'storyboard';\nimport Promise from 'bluebird';\nimport * ... | javascript | chosen |
[
{
"from": "system",
"value": "QS-907: Fix error in conflicted merge\n"
},
{
"from": "human",
"value": "import { fetchUser, fetchThreads, fetchRecommendation, fetchUserArray, fetchProfile, fetchStats, postLikeUser, deleteLikeUser, fetchMatching, fetchSimilarity } from '../utils/APIUtils';\n\nexpo... | javascript | chosen |
[
{
"from": "system",
"value": "Optimize SASS and JS output\n"
},
{
"from": "human",
"value": "'use strict'\n\nconst path = require('path')\nconst sass = require('rosid-handler-sass')\nconst js = require('rosid-handler-js')\n\nconst preload = require('../preload')\nconst html = require('../ui/inde... | javascript | chosen |
[
{
"from": "system",
"value": "Use active flag instead of selected flag\n"
},
{
"from": "human",
"value": "/*\n * Copyright (c) 2014 mono\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\")... | javascript | chosen |
[
{
"from": "system",
"value": "Implement `maintenance` and `maintenanceAlert` events.\n"
},
{
"from": "human",
"value": "export default function systemPlugin () {\n return (mp) => {\n function onMessage (text) {\n mp.emit('systemMessage', text)\n }\n\n mp.on('connected', () => {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Tidy up for loop code\n"
},
{
"from": "human",
"value": "'use strict';\n\nangular.module('confRegistrationWebApp')\n .directive('block', function () {\n return {\n templateUrl: 'views/blockDirective.html',\n restrict: 'E',\n controller: function (... | javascript | chosen |
[
{
"from": "system",
"value": "Add url and baseUrl to error messages\n\nAdd the url and baseUrl to the error messages\ninside `parseUrl`. This should help debug where\nthese errors originated.\n"
},
{
"from": "human",
"value": "/**\n * Exports `parseUrl` for, well, parsing URLs!\n */\n\nimport ur... | javascript | chosen |
[
{
"from": "system",
"value": "Remove any kind of logic that tries to load the right version of\nreact-router and simply does not work.\n"
},
{
"from": "human",
"value": "import { MemoryRouter } from 'react-router';\n\n\nif (typeof MemoryRouter !== 'undefined') {\n require('./V4/index');\n}\nels... | javascript | chosen |
[
{
"from": "system",
"value": "Send rev hash to crash reports\n\nAdd rev. hash to the extra parameter send with crash reports.\n\nAuditors: 552486fed9a9ff3f07aa28f460daa63ab433892d@alexwykoff\n"
},
{
"from": "human",
"value": "/* This Source Code Form is subject to the terms of the Mozilla Public... | javascript | chosen |
[
{
"from": "system",
"value": "Secure the Zapier hook URL, use ES 2015 in the script\n"
},
{
"from": "human",
"value": "var fetch = require('node-fetch')\nvar execSync = require('child_process').execSync\n\nvar zapierHookURL = 'https://zapier.com/hooks/catch/3petdc/'\nvar tag = process.env.TRAVIS... | javascript | chosen |
[
{
"from": "system",
"value": "Remove sentinel from config. Travis won't pass if a sentinel is set\n"
},
{
"from": "human",
"value": "//Copyright 2012 Telefonica Investigación y Desarrollo, S.A.U\n//\n//This file is part of RUSH.\n//\n// RUSH is free software: you can redistribute it and/or modi... | javascript | chosen |
[
{
"from": "system",
"value": "Add 400 bad request status helper\n"
},
{
"from": "human",
"value": "/*jshint node:true */\n\"use strict\";\n\nvar data = {\n\tcreated: { code: 201, body: \"Created\" },\n\tnoContent: { code: 204, body: \"\" },\n\tnotFound: { code: 404, body: \"Not found\" },\n\tmet... | javascript | chosen |
[
{
"from": "system",
"value": "Use full URL as smartbanner argument.\n"
},
{
"from": "human",
"value": "'use strict';\n\nangular.module('ahoyApp.factories', [])\n .factory(\"smartBanner\", function() {\n\tvar argument = \"\";\n\tif (document.location.hash.indexOf(\"#/link/\") != -1) {\n\t a... | javascript | chosen |
[
{
"from": "system",
"value": "Update source map test to correspond with CoffeeScript 1.7"
},
{
"from": "human",
"value": "var test = require('tap').test;\nvar fs = require('fs');\nvar path = require('path');\nvar through = require('through');\nvar convert = require('con... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"test: fix default browser value\"\n\nThis reverts commit a8f88984443a15616c9bdfba67ae7e42dd179ddd.\n"
},
{
"from": "human",
"value": "module.exports = () =>\n ({\n browser: process.env.BROWSER || 'chromium',\n launch: {\n dumpio: true,\n he... | javascript | chosen |
[
{
"from": "system",
"value": "Add spinning animation back in\n"
},
{
"from": "human",
"value": "var config = require('config');\nvar debug = require('debug')(config.application() + ':otp');\nvar Profiler = require('otp-profiler');\nvar spin = require('spinner');\n\n/**\n * Create profiler\n */\n... | javascript | chosen |
[
{
"from": "system",
"value": "Add tab information to Docker window for various sub-interfaces\n"
},
{
"from": "human",
"value": "import React, { Component } from 'react'\nimport { Icon } from 'antd'\n\nimport Images from './Images'\n\nimport styles from './Docker.scss'\n\nclass Docker extends Co... | javascript | chosen |
[
{
"from": "system",
"value": "Make no sense to have apply routines in interface as it is not visible from the outside\n"
},
{
"from": "human",
"value": "/**\n * This is a generic Interface for Mammalian Animals\n *\n * Those class of Animals have different things in\n * common - compared to othe... | javascript | chosen |
[
{
"from": "system",
"value": "Update utils color string with basic sprintf support\n"
},
{
"from": "human",
"value": "'use strict';\n\n// Load requirements\nconst clk = require('chalk'),\n chalk = new clk.constructor({level: 1, enabled: true});\n\n// Formats a string with ANSI styling\nmodu... | javascript | chosen |
[
{
"from": "system",
"value": "Update order money available when portion status is changed\n"
},
{
"from": "human",
"value": "import Ember from 'ember';\n\nexport default Ember.Component.extend({\n tagName: 'li',\n classNames: ['b-portion'],\n\n click(e) {\n const target = Ember.$(e.target)... | javascript | chosen |
[
{
"from": "system",
"value": "Remove calendar nav generated by js\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar calnav = (function() {\n\n var nav = $('.nav-cals');\n\n var renderCal = function(cal, level) {\n var input = document.createElement('input');\n input.type = 'checkbo... | javascript | chosen |
[
{
"from": "system",
"value": "Update hello world text to text git push to remote server\n"
},
{
"from": "human",
"value": "var gpio = require('onoff').Gpio;\nvar red = new gpio(16, 'out');\nvar green = new gpio(12, 'out');\nvar blue = new gpio(21, 'out');\nvar button = new gpio(25, 'in', 'both')... | javascript | chosen |
[
{
"from": "system",
"value": "Add transition to test for 'app.start' and redirect if websocket is OPEN\n"
},
{
"from": "human",
"value": "export function runBlock($log, $state, $trace) {\n\t'ngInject';\n\n\t// Enable logging of state transition\n\t$trace.enable('TRANSITION');\n\n\t// Add any log... | javascript | chosen |
[
{
"from": "system",
"value": "Switch socket.io's log level to warnings\n"
},
{
"from": "human",
"value": "// Requires\nvar socketio = require('socket.io');\n\n\nfunction setup(options, imports, register) {\n var server = imports.server.http;\n\n\n var io = socketio.listen(server, {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix reset password for MyGFW\n"
},
{
"from": "human",
"value": "import { createThunkAction } from 'utils/redux';\nimport { FORM_ERROR } from 'final-form';\n\nimport { login, register, resetPassword } from 'services/user';\nimport { getUserProfile } from 'providers/m... | javascript | chosen |
[
{
"from": "system",
"value": "Define and create human player and computer objects. Render them as well!\n"
},
{
"from": "human",
"value": "(function() {\n 'use strict';\n var canvas = document.getElementById('game');\n var WIDTH = window.innerWidth;\n var HEIGHT = window.innerHeight;\n canv... | javascript | chosen |
[
{
"from": "system",
"value": "Move NotesController and config to named functions.\n"
},
{
"from": "human",
"value": "angular.module('marvelousnote.notes', [\n 'ui.router'\n])\n\n.config(function($stateProvider) {\n $stateProvider\n\n .state('notes', {\n url: '/notes',\n templateUr... | javascript | chosen |
[
{
"from": "system",
"value": "Socket: Fix connection pipeline to be persistent in attempting to connect\n"
},
{
"from": "human",
"value": "window.DEVELOPMENT_MODE = 'local-debug';\n\nswitch(window.DEVELOPMENT_MODE) {\n\tcase 'local-debug':\n\t\twindow.SOCKET_URI = '0.0.0.0';\n\t\tbreak;\n\n\tcas... | javascript | chosen |
[
{
"from": "system",
"value": "Upgrade Facebook API to v. 2.10\n"
},
{
"from": "human",
"value": "klimaChallenge.controller('newsCtrl', function($scope, $http, $sce) {\n\n $scope.facebookImages = Array();\n\n $http.get('https://graph.facebook.com/v2.4/klimachallenge/photos/uploaded?fields=lin... | javascript | chosen |
[
{
"from": "system",
"value": "Create renderForecast() method to render each row of data in the weather table.\n"
},
{
"from": "human",
"value": "// Container to render a list of cities and their data\n// Saturday, February 25, 2017\n\nimport React, { Component } from 'react';\nimport { connect }... | javascript | chosen |
[
{
"from": "system",
"value": "Build - Pass the major/minor/patch value as an option of the build command\n"
},
{
"from": "human",
"value": "'use strict';\nvar gulp = require('gulp');\nvar moment = require('moment');\nvar fs = require('fs');\nvar simpleGit = require('simple-git')();\nvar semver =... | javascript | chosen |
[
{
"from": "system",
"value": "Update to work with directory outside of cwd\n"
},
{
"from": "human",
"value": "var gulp = require('gulp');\nvar gReact = require('gulp-react');\nvar del = require('del');\nvar shell = require('gulp-shell');\n\ngulp.task('clean', function(cb) {\n del(['lib/', 'Flux... | javascript | chosen |
[
{
"from": "system",
"value": "Support mach3 style comments with parentheses."
},
{
"from": "human",
"value": "/**\n * Parses a string of gcode instructions, and invokes handlers for\n * each type of command.\n *\n * Special handler:\n * 'default': Called if no other handler matches.\n */\nfunc... | javascript | chosen |
[
{
"from": "system",
"value": "Add `event.preventDefault()` call in UJS action handlers.\n"
},
{
"from": "human",
"value": "/**\n * Assigns handlers/listeners for `[data-action]` links.\n *\n * Actions associated with a link will be invoked via Wire with the jQuery\n * event object as an argum... | javascript | chosen |
[
{
"from": "system",
"value": "Rearrange object codes - no significant change\n"
},
{
"from": "human",
"value": "/**\n * Created by Omnius on 6/25/16.\n */\n'use strict';\n\nconst security = {\n xframe: {\n rule: 'sameorigin'\n },\n hsts: {\n maxAge: '31536000',\n in... | javascript | chosen |
[
{
"from": "system",
"value": "Fix wrong gulp task during watch\n"
},
{
"from": "human",
"value": "var gulp = require('gulp');\nvar sourcemaps = require('gulp-sourcemaps');\nvar stylus = require('gulp-stylus');\nvar rename = require('gulp-rename');\n\nvar mainStyl = './styl/main.styl';\n\ngulp.ta... | javascript | chosen |
[
{
"from": "system",
"value": "Remove unused Windows integrate code\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar gulp = require('gulp');\nvar casperjs = require('gulp-casperjs');\nvar spawn = require('child_process').spawn;\nvar gutil = require('gulp-util');\n\ngulp.task('integrate', f... | javascript | chosen |
[
{
"from": "system",
"value": "Resolve the jsx in import-s\n"
},
{
"from": "human",
"value": "module.exports = {\n entry: \"./index.jsx\",\n\n output: {\n path: __dirname,\n filename: \"./build/bundle.js\"\n },\n\n module: {\n loaders: [\n {test: /\\.(j... | javascript | chosen |
[
{
"from": "system",
"value": "Debug Paula's bean for her\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport {connect} from 'react-redux';\nimport * as actions from './actions';\n\nexport default class NewPaula extends React.Component {\n\tupdate(e) {\n\t\te.preventDefault();\n... | javascript | chosen |
[
{
"from": "system",
"value": "Fix chrome param destructuring bug\n"
},
{
"from": "human",
"value": "\"use strict\";\n\nconst path = require(\"path\");\nconst ExtractTextPlugin = require(\"extract-text-webpack-plugin\");\n\nmodule.exports = {\n entry: \"./js/main.js\",\n devtool: \"source-map\"... | javascript | chosen |
[
{
"from": "system",
"value": "Add support for git push --no-verify\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar async = require('grunt').util.async;\nvar grunt = require('grunt');\nvar ArgUtil = require('flopmang');\n\nmodule.exports = function (task, exec, done) {\n var argUtil = ... | javascript | chosen |
[
{
"from": "system",
"value": "Standardize indent to 2 characters rather than beautify-js's standard 4.\n"
},
{
"from": "human",
"value": "'use strict';\n\n$('#message').keyup(function(e) {\n if ((e.keyCode || e.which) == 13) {\n if (!e.srcElement.value) return;\n // enter was pr... | javascript | chosen |
[
{
"from": "system",
"value": "Use non-empty value for sha\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst fs = require('fs');\nconst path = require('path');\n\nmodule.exports = function generate(overrides) {\n const branchPath = path.join(__dirname, 'branch');\n const branchContent =... | javascript | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.