conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Update analyzer definition access to type field\n"
},
{
"from": "human",
"value": "'use strict';\n\nexport default class AnalyzerConfigFormController {\n constructor($log) {\n 'ngInject';\n\n this.$log = $log;\n\n this.rateUnits = ['Day', 'Month'];\n th... | javascript | chosen |
[
{
"from": "system",
"value": "Remove debug code from the main entry file\n"
},
{
"from": "human",
"value": "import Vue from \"vue\";\nimport VueResource from \"vue-resource\";\nimport {store} from \"./store/store\";\n\nimport Photos from \"./components/Photos.vue\";\nimport Theater from \"./comp... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"Don't generate Sass sourcemaps\"\n\nThis reverts commit 507d31361166e3ff14c29751d706b1d383b82de3.\n"
},
{
"from": "human",
"value": "module.exports = function(grunt) {\n return {\n dist: {\n options: {\n style: 'nested',\... | javascript | chosen |
[
{
"from": "system",
"value": "Add 1 hour to datetimes for start_time and end_time in the events API result\n"
},
{
"from": "human",
"value": "var restify = require('express-restify-mongoose');\nvar Artist = require('../api/models/artist');\nvar Info = require('../api/models/info');\nvar News = r... | javascript | chosen |
[
{
"from": "system",
"value": "Add log in console (devtools don't work well)\n\n"
},
{
"from": "human",
"value": "import { combineReducers } from 'redux';\nimport assets from './assets';\nimport packages from './packages';\n\nexport default () => combineReducers({\n packages,\n assets,\n});\n"
... | javascript | chosen |
[
{
"from": "system",
"value": "Add test for creating story\n"
},
{
"from": "human",
"value": "var should = require(\"should\")\nvar request = require('supertest')\n\nvar url = \"http://localhost:3000\"\nvar request = request(url);\n\n\ndescribe('Stories', function(){\n\n describe('get /stories',... | javascript | chosen |
[
{
"from": "system",
"value": "Make the console output for downloading the package list more concise\n"
},
{
"from": "human",
"value": "// helper functions\n\nvar http = require(\"http\");\n\nexports.urlForLibrary = function (library, file, version) {\n return \"//cdnjs.cloudflare.com/ajax/libs/... | javascript | chosen |
[
{
"from": "human",
"value": "Create notes presenter to format new notes into nodes for table\n"
},
{
"from": "gpt",
"value": "PinPoint.NotePresenter = function(note) {\n this.note = note;\n this.rootNodeType = \"tr\";\n this.childNodeType = \"td\";\n}\n\nPinPoint.NotePresenter.prototype = {\n... | javascript | chosen |
[
{
"from": "system",
"value": "Use clone method for Stripes objects\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport Route from 'react-router-dom/Route';\nimport { connectFor } from '@folio/stripes-connect';\nimport { modules } from 'stripes-loader'; // eslint-disable-line\ni... | javascript | chosen |
[
{
"from": "system",
"value": "Send calback is now set correctly when underloading arguments.g\n"
},
{
"from": "human",
"value": "module.exports = (function () {\n\t'use strict';\n\n\tfunction SGSServerErrorLogger (config, saveCallback, sendCallback) {\n\t\tif (sendCallback === undefined) {\n\t\t... | javascript | chosen |
[
{
"from": "system",
"value": "Allow quit on first page without reset prompt\n"
},
{
"from": "human",
"value": "define([\"dist/local_object\"], function(LocalObject){\n function Pipeline(id, finalNode, resetPage, overwrite){\n this.id = id;\n this.finalNode = finalNode;\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Update to use preferred $scope.apply check"
},
{
"from": "human",
"value": "function ngGridLayoutPlugin () {\n var self = this;\n this.grid = null;\n this.scope = null;\n this.init = function(scope, grid, services) {\n self.domUtilityService = ser... | javascript | chosen |
[
{
"from": "system",
"value": "Change from immutable > mutable object\n"
},
{
"from": "human",
"value": "import { expect } from 'chai'\nimport types from '../../src/constants/actionTypes'\nimport { onClickMenuButton } from '../../src/actions/nav'\n\ndescribe('actions/nav.js', () => {\n it('shoul... | javascript | chosen |
[
{
"from": "system",
"value": "Support modal call using jQuery; fix authorised user URL; show error for unauthorised\n"
},
{
"from": "human",
"value": "/**\n * Created by Omnius on 6/27/16.\n */\n$(document).ready(function() {\n const hawkSessionTokenCookie = MyUtils.getCookie('Hawk-Session-To... | javascript | chosen |
[
{
"from": "system",
"value": "Use DisplayIf in the licence.\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport PropTypes from 'prop-types';\n\nimport { areWeFunYet, translate as $t } from '../../helpers';\nimport ExternalLink from './external-link.js';\n\nlet showLicense = are... | javascript | chosen |
[
{
"from": "system",
"value": "Switch trace saga to use takeEvery\n"
},
{
"from": "human",
"value": "import debugModule from \"debug\";\nconst debug = debugModule(\"debugger:trace:sagas\");\n\nimport { take, takeLatest, put, select } from \"redux-saga/effects\";\n\nimport * as actions from \"./ac... | javascript | chosen |
[
{
"from": "system",
"value": "Add a resource getter to the abstract service spec\n"
},
{
"from": "human",
"value": "import Item from '../../../../../src/js/structs/Item';\n\nmodule.exports = class ServiceSpec extends Item {\n getId() {\n return this.get('id') || '';\n }\n\n toJSON() {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Simplify the stars computed property\n\nThe state of the stars (empty or full) could easily be calculated in one loop. I don't know what your intention was with the starRange method.... But for me this is easier to understand. I hope you find it useful.\r\n\r\nGrtz Wouter"
},... | javascript | chosen |
[
{
"from": "system",
"value": "Print message and exit if jack libs can't be loaded.\n\ngit-svn-id: fac99be8204c57f0935f741ea919b5bf0077cdf6@9642 688a9155-6ab5-4160-a077-9df41f55a9e9\n"
},
{
"from": "human",
"value": "var http = require('helma/httpserver');\nhttp.start({\n port: 8080,\n modu... | javascript | chosen |
[
{
"from": "system",
"value": "Use ellipsis character instead of three points\n"
},
{
"from": "human",
"value": "// In a real use case, the endpoint could point to another origin.\nvar LOG_ENDPOINT = 'report/logs';\n\n// The code in `oninstall` and `onactive` force the service worker to\n// contr... | javascript | chosen |
[
{
"from": "system",
"value": "Put feedback in smaller header\n"
},
{
"from": "human",
"value": "/** @jsx React.DOM */\n\n// For testing\nvar React;\nif (typeof module !== 'undefined') {\n React = require('react');\n Authenticate = require('./gebo/Authenticate');\n}\n\n/**\n * Interface\n *... | javascript | chosen |
[
{
"from": "system",
"value": "Fix error with TV screen\n"
},
{
"from": "human",
"value": "var TvApi = require('node-lgtv-api');\nvar imageName = 'screen.jpg';\n\nmodule.exports = {\n handle: function (ctx, message, sendMessage) {\n var lgTV = ctx.network.lgTV;\n var tvApi = new ... | javascript | chosen |
[
{
"from": "system",
"value": "Make Search Panels other than the first one closable\n"
},
{
"from": "human",
"value": "App.Search.SearchPanel = Ext.extend(App.Search.SearchPanelUi, {\n nSearchPanels: 0,\n\tresultPagerSize: 15,\n\n\t// keep references to the criteria and results handler so that\n... | javascript | chosen |
[
{
"from": "system",
"value": "Change to keys and values functions from map for labels and visits and countries\n"
},
{
"from": "human",
"value": "'use strict';\ndataDashboard.controller('MainCtrl', ['$scope', 'Traffic', function ($scope, Traffic) {\n\n var getAllTraffic = function() {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Allow passing options into `runCommand()`\n"
},
{
"from": "human",
"value": "var exec = require('child_process').exec,\n Q = require('q');\n\nmodule.exports = function runCommand(command) {\n var child,\n dfd = Q.defer();\n\n child = exec(command, function... | javascript | chosen |
[
{
"from": "system",
"value": "Add \"Facebook Event KPI API function\"\n"
},
{
"from": "human",
"value": "// # Imports\nvar express = require('express');\nvar app = express();\n\n\n\n// # Configuration\nvar environment = process.env.NODE_ENV || 'development';\nvar serverPort =... | javascript | chosen |
[
{
"from": "system",
"value": "Fix object index in annotation test\n"
},
{
"from": "human",
"value": "const PDFDocument = require('../../lib/document').default;\nconst PDFSecurity = require('../../lib/security').default;\n\n// manual mock for PDFSecurity to ensure stored id will be the same accro... | javascript | chosen |
[
{
"from": "system",
"value": "Introduce change event bidning for compontent reload\n"
},
{
"from": "human",
"value": "/**\n * @class Denkmal_Component_EventAdd\n * @extends Denkmal_Component_Abstract\n */\nvar Denkmal_Component_EventAdd = Denkmal_Component_Abstract.extend({\n\n\t/** @type String... | javascript | chosen |
[
{
"from": "system",
"value": "Fix global object with babel 6.0\n"
},
{
"from": "human",
"value": "//----------------------------------------------------------------------------------------------------------------------\n/// Main VueBoot module\n///\n/// @module\n//-------------------------------... | javascript | chosen |
[
{
"from": "system",
"value": "Enable passing custom columns to be serialized\n"
},
{
"from": "human",
"value": "'use strict';\n\n// const p = require('path');\n\nconst _ = require('lodash');\nconst passport = require('passport');\n\n// const User = require('../services/users/model');\n\n// const... | javascript | chosen |
[
{
"from": "system",
"value": "Integrate Stylelint with Webpack build\n"
},
{
"from": "human",
"value": "const PostcssNormalize = require('postcss-normalize');\nconst PostcssPresetEnv = require('postcss-preset-env');\n\nmodule.exports = {\n\tplugins: [\n\t\tPostcssPresetEnv(),\n\t\tPostcssNormali... | javascript | chosen |
[
{
"from": "system",
"value": "Add properties to Error from execFileOut\n\nThese are the same properties added to errors by execFile and\ngetExecFile. Add them for consistency and because callers may need\nthem.\n\nSigned-off-by: Kevin Locke <ffb4761cba839470133bee36aeb139f58d7dbaa9@kevinlocke.name>\n"
},... | javascript | chosen |
[
{
"from": "system",
"value": "feat: Update view of settings page\n"
},
{
"from": "human",
"value": "import React, { PureComponent } from 'react';\nimport PropTypes from 'prop-types';\nimport { connect } from 'react-redux';\nimport { push } from 'react-router-redux';\nimport { Button } from '@blu... | javascript | chosen |
[
{
"from": "system",
"value": "Use inRemote to implement forCurrentPR\n"
},
{
"from": "human",
"value": "const NULL = Symbol('null');\n\nexport default class Search {\n constructor(name, query, attrs = {}) {\n this.name = name;\n this.query = query;\n this.attrs = attrs;\n }\n\n getNa... | javascript | chosen |
[
{
"from": "system",
"value": "Refactor API endpoint to match naming convention in server/config/routes.js\n"
},
{
"from": "human",
"value": "angular.module( 'moviematch.services', [] )\n\n.factory( 'Auth', function( ) {} )\n\n.factory( 'Session', function( ) {} )\n\n.factory( 'Match', function( ... | javascript | chosen |
[
{
"from": "system",
"value": "fix(shape): Update shape-basic to the latest version\n"
},
{
"from": "human",
"value": "\"use strict\";\n\nconst fs = require('fs');\nconst cursor = require('kittik-cursor').create().resetTTY();\nconst shape = require('../lib/Image').create({\n image: './examples/n... | javascript | chosen |
[
{
"from": "system",
"value": "Support .woff2 extension in 05-code-splitting\n"
},
{
"from": "human",
"value": "var path = require('path');\nvar webpack = require('webpack');\n\nmodule.exports = {\n cache: true,\n entry: {\n jquery: './app/jquery',\n bootstrap: './app/bootstrap'\n },\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Change deprecated config for ESM"
},
{
"from": "human",
"value": "import config from './rollup.config.umd.js';\nimport {nameLibrary,PATH_DIST} from './config-library.js'\nconfig.format = \"es\";\nconfig.dest = PATH_DIST+nameLibrary+\".esm.js\";\nexport default confi... | javascript | chosen |
[
{
"from": "system",
"value": "Check response code of Veooz API call\n"
},
{
"from": "human",
"value": "var request = require(\"request\").defaults({\n 'proxy': process.env.http_proxy || process.env.HTTP_PROXY,\n 'timeout': 20 * 1000\n});\n\nvar veoozArticleUtils = require(\"../articles/veo... | javascript | chosen |
[
{
"from": "system",
"value": "Rename template scope to slot-scope internally, because scope is deprecated\n"
},
{
"from": "human",
"value": "function preTransformNode(el, options) {\n if (el.tag === 'template') {\n let name = el.attrsMap.name\n\n if (name) {\n el.attrsMap['slot'] = n... | javascript | chosen |
[
{
"from": "system",
"value": "Fix buffer polyfill type issues:\n\nThis commit converts any buffers passed into writeWithPadding to work\naround the issue of (value instanceof Buffer) not returning true\nfor polyfilled buffers\n"
},
{
"from": "human",
"value": "import BaseCursor from 'cursor';\ni... | javascript | chosen |
[
{
"from": "system",
"value": "Fix nodejs with data example\n"
},
{
"from": "human",
"value": "module.exports = {\n handler: function (req, res) {\n console.log(req.body)\n res.end('hello world')\n }\n}\n"
},
{
"from": "gpt",
"value": "module.exports = {\n handler: function (... | javascript | chosen |
[
{
"from": "system",
"value": "Disable the report view for the offline total widget.\n"
},
{
"from": "human",
"value": "import MetricWidget from '../MetricWidget';\nimport declare from 'dojo/_base/declare';\nimport Store from 'argos/Store/PouchDB';\n\nexport default declare('crm.Views.Offline.Tot... | javascript | chosen |
[
{
"from": "system",
"value": "Add background and text color\n"
},
{
"from": "human",
"value": "// Dependencies\nvar CaptchaPng = require(\"captchapng\");\n\n// Sessions\nvar sessions = {};\n\n// Captcha configuration\nvar serverConfig = {\n width: 100,\n height: 30\n};\n\n// Get configurat... | javascript | chosen |
[
{
"from": "system",
"value": "Check if editor has parent\n"
},
{
"from": "human",
"value": "var _ = require('underscore');\nvar backbone = require('backbone');\nvar backboneBase = require('backbone-base');\nvar deepEmpty = require('deep-empty');\nvar outfile = require('datapackage-outfile');\nva... | javascript | chosen |
[
{
"from": "system",
"value": "Add distingiush endpoint to modtools\n"
},
{
"from": "human",
"value": "import apiRequest from '../apiBase/apiRequest';\n\nconst remove = (apiOptions, fullname, spam) => {\n // Remove a link, comment, or modmail message.\n const body = {\n \tid: fullname,\n... | javascript | chosen |
[
{
"from": "system",
"value": "Fix incorrect arg to omit\n"
},
{
"from": "human",
"value": "import fetchResource from './helpers/fetchResource';\nimport omit from './helpers/omit';\nimport parseUrl from './helpers/parseUrl';\n\nconst DEFAULTS = {\n method: 'GET'\n};\n\nexport default function cr... | javascript | chosen |
[
{
"from": "system",
"value": "Include id in user profile data\n"
},
{
"from": "human",
"value": "const passport = require('passport');\nconst LocalStrategy = require('passport-local').Strategy;\n\npassport.use(new LocalStrategy(\n function(username, password, done) {\n if (['kumarsi', 'harin... | javascript | chosen |
[
{
"from": "system",
"value": "Remove a lot of JS that isn't needed.\n"
},
{
"from": "human",
"value": "var signinDialogHelperInst = window.optly.mrkt.form.signin({formId: 'signin-form'});\nvar signinFormSelector = '#signin-form';\n\nvar signinFormEmail = $('#signin-form-email');\nvar signinFormP... | javascript | chosen |
[
{
"from": "system",
"value": "Fix simulation sometimes not starting when opening remotely\n"
},
{
"from": "human",
"value": "/**\n * A simple ethernet simulator\n *\n * Author: Kristen Gilden <kristen.gilden@gmail.com>\n */\n\n(function (document, kg, $) {\n\n var svgObject,\n context;... | javascript | chosen |
[
{
"from": "system",
"value": "Create a prototype to run simple test printing initial board array\n"
},
{
"from": "human",
"value": "// Game Controller\n// A checkers board has 64 squares like a chess board but it only uses 32 squares all the same color\n// Each player has 12 pieces and pieces th... | javascript | chosen |
[
{
"from": "system",
"value": "Allow a little difference between systems.\n\nThe fixtures are created on my machine but Travis's generated\nscreenshots don't *exactly* match - one of the tests returning a\ndifference of 4. This seems to be an acceptable range.\n"
},
{
"from": "human",
"value": "v... | javascript | chosen |
[
{
"from": "system",
"value": "Remove test rpc method from box\n"
},
{
"from": "human",
"value": "// Requires\nvar Q = require('q');\nvar _ = require('underscore');\nvar fs = require('fs');\nvar path = require('path');\nvar pkg = require('../../package.json');\n\nfunction BoxRPCService(workspace,... | javascript | chosen |
[
{
"from": "system",
"value": "Use in memory stylelint cache\n"
},
{
"from": "human",
"value": "'use strict';\n\nmodule.exports = {\n extends: '@wearegenki/ui-stylelint',\n};\n"
},
{
"from": "gpt",
"value": "'use strict';\n\nmodule.exports = {\n cache: true,\n cacheLocation: '/tmp/... | javascript | chosen |
[
{
"from": "system",
"value": "Add clickablepath styles to clickableimagestyle\n"
},
{
"from": "human",
"value": "import { StyleSheet, Dimensions } from 'react-native';\n\nexport default StyleSheet.create({\n touchableSize: {\n width: 50,\n justifyContent: 'center',\n alignItems: 'cente... | javascript | chosen |
[
{
"from": "system",
"value": "Align class event handler creation with React docs\n\nThis is small change to align example React app with current advised way of assigning\nevent handlers that are declared as ES6 class methods:\nhttps://reactjs.org/docs/handling-events.html\n\nThanks!\n"
},
{
"from": ... | javascript | chosen |
[
{
"from": "system",
"value": "Check item.payload.docs is iterable before iterating\n"
},
{
"from": "human",
"value": "'use strict'\n\nclass DocumentIndex {\n constructor () {\n this._index = {}\n }\n\n get (key, fullOp = false) {\n return fullOp\n ? this._index[key]\n : this._... | javascript | chosen |
[
{
"from": "system",
"value": "Correction: PUT and DELETE in wrong route\n"
},
{
"from": "human",
"value": "import express from 'express'\nimport validate from 'express-validation'\n\nimport eventController from '../controllers/event'\nimport eventValidation from '../validation/event'\n\nimport {... | javascript | chosen |
[
{
"from": "system",
"value": "fix: Enable filtering of empty entries\n"
},
{
"from": "human",
"value": "const parsers = require('../parsers')\nconst transform = require('../transform')\nconst request = require('../request')\nconst { ConnectionFailedError, EmptyParseOutputError } = require('../er... | javascript | chosen |
[
{
"from": "system",
"value": "Add WhenLoggedIn utility wrapper component\n"
},
{
"from": "human",
"value": "import React from 'react'\n\nexport const AuthContext = React.createContext({\n user: null,\n})\n"
},
{
"from": "gpt",
"value": "import React from 'react'\n\nexport const Auth... | javascript | chosen |
[
{
"from": "system",
"value": "Add different methods to display and hide search bar\n"
},
{
"from": "human",
"value": "(function (global){\n 'use strict';\n\n global.angular.module('app.home', ['components.task'])\n\n .config(['$routeProvider', function config($routeProvider) {\n\n $routePr... | javascript | chosen |
[
{
"from": "system",
"value": "Make navbar fixed and align links right\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport {\n Collapse,\n Nav,\n Navbar,\n NavbarBrand,\n NavbarToggler,\n NavItem,\n NavLink\n} from 'reactstrap';\nimport { FontAwesomeIcon } f... | javascript | chosen |
[
{
"from": "system",
"value": "Remove authed state on logout success\n"
},
{
"from": "human",
"value": "import {\n LOGIN_USER_REQUEST, LOGIN_USER_SUCCESS, LOGIN_USER_FAILURE,\n AUTH_USER_REQUEST, AUTH_USER_SUCCESS, AUTH_USER_FAILURE,\n LOGOUT_USER_REQUEST\n} from '../constants/ActionTypes'\n\n... | javascript | chosen |
[
{
"from": "system",
"value": "Use id instead of name when saving reply for klaxon\n"
},
{
"from": "human",
"value": "var r = require('rethinkdb');\n\nvar klaxonPostBody = require('./klaxonPostBody.js');\nvar reqlRedditDate = require('../reqlRedditDate.js');\n\nmodule.exports = function postKlaxo... | javascript | chosen |
[
{
"from": "system",
"value": "Add initial sample injections using regex\n"
},
{
"from": "human",
"value": "var http = require('http')\n\nvar LISTEN_IP = '0.0.0.0';\nvar LISTEN_PORT = 80;\n\nhttp.createServer(function(req, res) { \n console.log(req.headers); \n console.log('\\n');\n if ('accep... | javascript | chosen |
[
{
"from": "system",
"value": "Fix \"Cannot read property 'startContainer' of undefined\" caused by code assuming that saveSelection always returns a range or null and never undefined. Update saveSelection to never return undefined.\n"
},
{
"from": "human",
"value": "define([], function() {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add log to demo assigning only first parameter\n"
},
{
"from": "human",
"value": "'use strict'\n\n// let plus = (first, second) => { return first + second }\n\n// Assign default parameter with 'p = ...'\nlet plus = (first = 1, second = 1) => { return first + second ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix bug where null images were generating collidable tiles\n"
},
{
"from": "human",
"value": "import Phaser from 'phaser'\nimport Waypoint from './Waypoint'\n\nexport default class MapTile extends Phaser.Sprite {\n constructor(game, x = 0, y = 0, key = null, fram... | javascript | chosen |
[
{
"from": "system",
"value": "ENYO-2040: Use kind.inherit for tap handler.\n\nEnyo-DCO-1.1-Signed-off-by: Aaron Tam <aaron.tam@lge.com>\n"
},
{
"from": "human",
"value": "/*\n * LinkSupport\n *\n * Add automatic on-tap support for controls with a href attribute\n */\n\nmodule.exports = {\n\tname... | javascript | chosen |
[
{
"from": "system",
"value": "Update Help Intent with new Functionalites\n"
},
{
"from": "human",
"value": "module.exports = HelpIntentFunction\n\n// Purpose: To provide the user with more information on how to use the skill\n// param (in): intent: given by Alexa, allows code to access parts of ... | javascript | chosen |
[
{
"from": "system",
"value": "Comment out custom hear middleware\n"
},
{
"from": "human",
"value": "// all middleware for hear events\n// when using wit middleware, you will get `message.intents`\n// which are the returned intents from wit's service of the incoming natural language input\n\n// p... | javascript | chosen |
[
{
"from": "system",
"value": "Add log and remove isProduction\n"
},
{
"from": "human",
"value": "// Description:\n// for initialize\n//\n\n\n\"use strict\";\n\nconst config = require(\"config\");\nconst Raven = require('raven'); // TODO wrapper\n\nfunction isProduction() {\n return process.... | javascript | chosen |
[
{
"from": "system",
"value": "Use standard plugin naming convention\n\nAs usual, stealing things from the less and coffeescript packages. I’m\nnot sure why this would possibly matter, but at least it’s consistent.\n"
},
{
"from": "human",
"value": "var path = Npm.require(\"path\");\n\nPackage.de... | javascript | chosen |
[
{
"from": "system",
"value": "Use getOwner polyfill in instance initializer\n"
},
{
"from": "human",
"value": "/**\n * Copyright 2015, Yahoo! Inc.\n * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.\n */\n\nimport ENV from '../config/environment';\n\nf... | javascript | chosen |
[
{
"from": "system",
"value": "Enable ES7 object ...rest and ...spread.\n"
},
{
"from": "human",
"value": "exports.getDefaults = function getDefaults() {\n return {\n sourceMap: \"inline\",\n externalHelpers: true,\n ast: false,\n // \"Loose\" mode gets us faster and more IE-compatib... | javascript | chosen |
[
{
"from": "system",
"value": "Support mapping window.webOS as an optional module export"
},
{
"from": "human",
"value": "/**\n * @fileOverview Portable webOS utility library for access to webOS-specific features and functionality\n * @author LG Silicon Valley Labs\n * @version 0.1.0\n * @namespa... | javascript | chosen |
[
{
"from": "system",
"value": "Clean school data in redux\n"
},
{
"from": "human",
"value": "/*\n This file is a part of libertysoil.org website\n Copyright (C) 2015 Loki Education (Social Enterprise)\n\n This program is free software: you can redistribute it and/or modify\n it under the terms o... | javascript | chosen |
[
{
"from": "system",
"value": "Return Arrays Instead of Objects\n"
},
{
"from": "human",
"value": "var rootView = null;\n\nexport function isAttached(view) {\n if (!view) throw new Error(\"'view' param is required.\");\n return view.parentElement !== null;\n}\n\nexport function setRootView(view... | javascript | chosen |
[
{
"from": "system",
"value": "Fix test by making lodash available\n"
},
{
"from": "human",
"value": "Package.describe({\n name: 'sungwoncho:factory-boy',\n version: '0.1.0',\n summary: 'A minimalistic factory for Meteor',\n git: 'https://github.com/sungwoncho/factory-boy',\n documentation: ... | javascript | chosen |
[
{
"from": "system",
"value": "Remove weak dependency on oauth-encryption.\n\nOnly the accounts-add-service package uses it and it only uses it when\nit exists, and if a services uses oauth, it would already require\noauth-encryption, so there is no reason to add the dependency there either.\n"
},
{
... | javascript | chosen |
[
{
"from": "system",
"value": "Update SectionItem; Fix jsx ally errors\n\n* Rename subtitle prop to content\n"
},
{
"from": "human",
"value": "import React from \"react\";\nimport \"./style.scss\";\n\nconst redirectTo = link => window.open(link, \"_blank\");\n\nconst SectionItem = ({ title, time... | javascript | chosen |
[
{
"from": "system",
"value": "Exit early and notify if no CODECLIMATE_REPO_TOKEN found\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\n\nvar Formatter = require(\"../formatter\");\nvar client = require('../http_client');\n\nprocess.stdin.resume();\nprocess.stdin.setEncoding(\"utf... | javascript | chosen |
[
{
"from": "system",
"value": "Add check for body to fix bug when called without bodyParser\n"
},
{
"from": "human",
"value": "\"use strict\";\n\nvar url = require(\"url\");\n\nfunction prepareRequest(req) {\n //extract req.query\n req.parsedUrl = url.parse(req.url, true);\n req.query = ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix temp directory, failure on os.tmpdir() warnings in newer nodes\n"
},
{
"from": "human",
"value": "var _ = require('lodash');\nvar fs = require('fs');\nvar path = require(\"path\");\nvar spawnSync = require(\"child_process\").spawnSync;\nvar Locator = require(\".... | javascript | chosen |
[
{
"from": "system",
"value": "Make `$init` always return an object\n"
},
{
"from": "human",
"value": "/*! Angular Init 0.1.2 | Copyright (c) 2014 Gias Kay Lee | MIT License */\n\n'use strict';\n\nangular.module('angularInit', []).\n\nprovider('$init', function() {\n this.transform = function(in... | javascript | chosen |
[
{
"from": "system",
"value": "Extend promise example, showing that continuation works\n"
},
{
"from": "human",
"value": "var promise = new Promise(function(resolve, reject) {\n // do a thing, possibly async, then…\n\n setTimeout(function() {\n var foo = 0;\n if (foo) {\n resolve(\"S... | javascript | chosen |
[
{
"from": "system",
"value": "Fix key stats count test.\n"
},
{
"from": "human",
"value": "\"use strict\";\n\nconst test = require(\"tape\");\n\nconst keyStats = require(\"../lib/key-statistics\");\n\ntest(\"Key statistics tests\", t => {\n t.plan(5);\n\n keyStats.getKeyStatistics({ symbol... | javascript | chosen |
[
{
"from": "system",
"value": "test: Make garbage collection on the next tick to please TurboFan\n"
},
{
"from": "human",
"value": "/*********************************************************************\n * NAN - Native Abstractions for Node.js\n *\n * Copyright (c) 2017 NAN contributors\n *\n * ... | javascript | chosen |
[
{
"from": "system",
"value": "Reduce los sprites SVG a 32x32\n"
},
{
"from": "human",
"value": "var gulp = require('gulp'),\n gulpif = require('gulp-if'),\n imagemin = require('gulp-imagemin'),\n livereload = require('gulp-livereload'),\n newer = require('g... | javascript | chosen |
[
{
"from": "system",
"value": "Create history manager in state navigator constructor\n\nEasier to document than the configure call. More consistent with the mobile docs, too\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport {Platform} from 'react-native';\nimport {StateNavigat... | javascript | chosen |
[
{
"from": "system",
"value": "Use 'let' instead of 'var' to better fit with other ES6 features\n"
},
{
"from": "human",
"value": "import chai from 'chai';\nimport Library from '../lib/library.js';\n\nchai.expect();\n\nconst expect = chai.expect;\n\nvar lib;\n\ndescribe('Given an instance of my l... | javascript | chosen |
[
{
"from": "system",
"value": "Allow request type specification in ajax requests\n\nAlso include csrf token in POST requests, and actually pass\ndata in the request\n"
},
{
"from": "human",
"value": "function AjaxNetwork() {\n function sendRequest(url, onComplete, data) {\n $.ajax({\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Remove posix from npm-shrinkwrap on webapp\n"
},
{
"from": "human",
"value": "Package.describe({\n name: 'meteor-base',\n version: '1.5.0',\n // Brief, one-line summary of the package.\n summary: 'Packages that every Meteor app needs',\n // By default, Meteor w... | javascript | chosen |
[
{
"from": "system",
"value": "Make some adjustments to last commit\n"
},
{
"from": "human",
"value": "const test = require('tape')\nconst BorrowState = require('../lib/module.js')\n\ntest(`strict-order`, (t) => {\n t.plan(2)\n let hasHappened = []\n let myState = new BorrowState()\n myState.... | javascript | chosen |
[
{
"from": "system",
"value": "Update the event name in the test, too.\n"
},
{
"from": "human",
"value": "require('./common');\n\nvar\n DB_NAME = 'node-couchdb-test',\n\n callbacks = {\n A: false,\n B1: false,\n B2: false,\n C: false,\n },\n\n db = client.db(DB_NAME);\n\n// Init f... | javascript | chosen |
[
{
"from": "system",
"value": "Add fade to fill function in draw SVG\n"
},
{
"from": "human",
"value": "import { SplashEffect } from \"./effect.js\";\nimport { Linear } from \"../interpolation.js\";\n\nexport class DrawSVG extends SplashEffect {\n\tconstructor(element, options) {\n\t\tsuper(eleme... | javascript | chosen |
[
{
"from": "system",
"value": "Use true not 1 for connection.relaying\n"
},
{
"from": "human",
"value": "// Just relay everything - could be useful for a spamtrap\n\nexports.register = function() {\n this.register_hook('rcpt', 'confirm_all');\n};\n\nexports.confirm_all = function(next, connect... | javascript | chosen |
[
{
"from": "system",
"value": "Update with reference to global nav partial\n"
},
{
"from": "human",
"value": "var _ = require('lodash')\nvar fs = require('fs')\nvar gzip = require('gzip-size')\nvar filesize = require('filesize')\nvar cssstats = require('cssstats')\n\nvar module = require('tachyon... | javascript | chosen |
[
{
"from": "system",
"value": "Fix jsdoc to pass lint"
},
{
"from": "human",
"value": "/**\n@license\nCopyright (c) 2017 The Polymer Project Authors. All rights reserved.\nThis code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt\nThe complete set of aut... | javascript | chosen |
[
{
"from": "system",
"value": "Use same root path for server and hook file lookup\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\n\n// Modules\nvar connect = require('connect'),\n fs = require('fs'),\n http = require('http'),\n path = require('path'),\n serveStatic = require('... | javascript | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.