conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Use nodejs native crypto module\n"
},
{
"from": "human",
"value": "import mongo from '../db'\nimport utils from '../utils'\n\n/**\n * User :: {\n * id: String,\n * username: String,\n * password: String,\n * createdAt: String\n * }\n */\n\n/** String -> ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix js in the de table directive to appease jshint\n"
},
{
"from": "human",
"value": "/*\n * Copyright (c) 2015 Partnet, Inc. Confidential and Proprietary.\n */\n\n/**\n * @ngdoc overview\n * @author brandony-pn\n * @name drug-events:drug-events-table-directive.js\n... | javascript | chosen |
[
{
"from": "system",
"value": "example: Add example of removing physics force\n"
},
{
"from": "human",
"value": "FamousFramework.scene('famous-tests:physics:basic:particle', {\n behaviors: {\n '.particle': {\n 'size': [200, 200],\n 'align': [0.5, 0.5],\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add TODO to remove hack once we no longer need it\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\n\nconst fs = require('fs')\nconst path = require('path')\n\n// Remove the webworker-threads module in hopes of resolving the issue\n// described in https://gith... | javascript | chosen |
[
{
"from": "system",
"value": "Fix after build script for other platforms\n"
},
{
"from": "human",
"value": "const { resolve, extname } = require('path')\nconst { copyFileSync, readdirSync } = require('fs')\n\nconst NATIVE_ADDON_RELEASE_PATH = resolve(__dirname, '..', 'bindings', 'build', 'Releas... | javascript | chosen |
[
{
"from": "system",
"value": "Fix warning \"Something is calling a React component directly\""
},
{
"from": "human",
"value": "'use strict';\n\ndescribe('<%= classedName %>', function () {\n var <%= classedName %>, component;\n\n beforeEach(function () {\n <%= classedName %> = require('../.... | javascript | chosen |
[
{
"from": "system",
"value": "[Backend][Model] Add date to CrashLog model\n\n"
},
{
"from": "human",
"value": "/*\n * Author: Alexandre Havrileck (Oxyno-zeta) \n * Date: 08/07/16\n * Licence: See Readme\n */\n\n/* ************************************* */\n/* ******** REQUIRE ********... | javascript | chosen |
[
{
"from": "system",
"value": "Add maxlengthIndicator to text area fields\n"
},
{
"from": "human",
"value": "import Ember from 'ember';\n\nconst formObject = {\n \"schema\": {\n \"type\": \"object\",\n \"properties\": {\n \"activity\": {\n \"type\": \"st... | javascript | chosen |
[
{
"from": "system",
"value": "Correct the note on vendor package path resolver.\n"
},
{
"from": "human",
"value": "// Takes a root path and an array of vendor package declarations and returns a\n// mapping of module names to absolute paths for the given packages.\n// It's similar to `require.res... | javascript | chosen |
[
{
"from": "system",
"value": "Fix TimeAgo to accept Date or ISO date string\n"
},
{
"from": "human",
"value": "var React = require('react');\nvar timeago = require('timeago');\n\nvar TimeAgo = React.createClass({\n \n componentDidMount: function() {\n\tthis.interval = setInterval(this.upda... | javascript | chosen |
[
{
"from": "system",
"value": "Use map for creating the nodes\n"
},
{
"from": "human",
"value": "/**\n * View for viewing downloaded videos.\n */\nexport default class DownloadedList {\n /**\n * Default constructor for setting the values\n *\n * @param {HTMLElement} element - The HTML elem... | javascript | chosen |
[
{
"from": "system",
"value": "Fix UglifyJS compressor, content was not written\n\nFix #93\n"
},
{
"from": "human",
"value": "/*!\n * node-minify\n * Copyright(c) 2011-2016 Rodolphe Stoclin\n * MIT Licensed\n */\n\n'use strict';\n\n/**\n * Module dependencies.\n */\n\nvar Promise = require('blueb... | javascript | chosen |
[
{
"from": "system",
"value": "Rename core method to drawSecretSantas\n"
},
{
"from": "human",
"value": "/* @flow */\n\ntype Category =\n 'Electronics' |\n 'Games' |\n 'Home Decoration';\n\ntype Wish = string | Array<Category>;\n\ntype User = {\n name: string,\n email: string,\n wish?: Wish... | javascript | chosen |
[
{
"from": "system",
"value": "Music: Fix stopAll() not working (at all)\n"
},
{
"from": "human",
"value": "var Music = {\n sounds: { },\n\n prepareSound: function(filename) {\n if (typeof(this.sounds[filename]) == 'undefined') {\n this.sounds[filename] = new Audio('assets... | javascript | chosen |
[
{
"from": "system",
"value": "Return the error details when the postMetrics parameter is invalid\n"
},
{
"from": "human",
"value": "import { Metrics } from 'metrics'\n\nexport async function handler (event, context, callback) {\n try {\n const metric = await new Metrics().createMetric(event.... | javascript | chosen |
[
{
"from": "human",
"value": "Add solution for http file server\n"
},
{
"from": "gpt",
"value": "var http = require('http');\nvar fs = require('fs');\n\nvar port = process.argv[2];\nvar filePath = process.argv[3];\n\nvar server = http.createServer(function(req, res) {\n var fileStream = fs.creat... | javascript | chosen |
[
{
"from": "system",
"value": "Fix inserting the redux stats\n"
},
{
"from": "human",
"value": "import Helmet from 'react-helmet';\n\nexport default function buildPage($doc, html, appState) {\n const { htmlAttributes, ...headChildren } = Helmet.rewind();\n\n const $html = $doc.find('html');\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add support for blob object as parameter\n"
},
{
"from": "human",
"value": "/* angular-file-saver\n*\n* Provides integration between FileSaver.js (implements HTML5 saveAs())\n* and angular\n*\n* (c) 2015 Philipp Alferiov\n* License: MIT\n*\n*/\n\n(function() {\n 'u... | javascript | chosen |
[
{
"from": "system",
"value": "Set base path for refinement model\n"
},
{
"from": "human",
"value": "framework.addJavaScriptHelp(\"setCircuitComponentRefinement\", \"circuitWork, componentRef, refinementPath\",\n \"set 'refinementPath' file as refinement for component 'componentRef' in Circuit... | javascript | chosen |
[
{
"from": "system",
"value": "Load specs for infinite scroll\n"
},
{
"from": "human",
"value": "require([\"jquery\", \"backbone\", \"jasmine-html\"],\n\n function($, Backbone, jasmine) {\n // NOTE: This is *the* place to add specs to the test suite\n // See the docs for more info on addin... | javascript | chosen |
[
{
"from": "system",
"value": "Change the api url to connect to the backend server\n"
},
{
"from": "human",
"value": "'use strict';\n\nimport angular from 'angular';\nimport uiRouter from '@uirouter/angularjs';\n\nimport angularMaterial from 'angular-material';\nimport 'angular-material/angular-m... | javascript | chosen |
[
{
"from": "system",
"value": "Send view recovery code URL with email request.\n"
},
{
"from": "human",
"value": "// @flow\nimport { ServerAPI } from './server-utils'\nimport log4js from 'log4js'\nconst logger = log4js.getLogger(__filename)\n\nexport function sendRecoveryEmail(\n email: string, ... | javascript | chosen |
[
{
"from": "system",
"value": "Switch to using react-router hashHistory\n"
},
{
"from": "human",
"value": "import \"babel-polyfill\";\n\nimport React from 'react';\nimport ReactDOM from 'react-dom';\nimport { applyRouterMiddleware, browserHistory } from 'react-router';\nimport { syncHistoryWithSt... | javascript | chosen |
[
{
"from": "system",
"value": "Use the correct file for angle calculation data\n"
},
{
"from": "human",
"value": "import React, { Component } from 'react'\nimport pureRender from 'pure-render-decorator'\nimport { MapLayer } from 'react-leaflet'\nimport { plateMovementCanvasLayer } from '../custom... | javascript | chosen |
[
{
"from": "system",
"value": "Fix problem that args is output as an array\n"
},
{
"from": "human",
"value": "/**\n * Display the log message for the stdout.\n */\nclass Logger {\n /**\n * Initialize instance.\n *\n * @param {Boolean} available \"true\" to display the report, default is \"... | javascript | chosen |
[
{
"from": "system",
"value": "Add Todo to handle when user requests a module that has not been bundled\n"
},
{
"from": "human",
"value": "function setUserRequire (lib) {\n if (!lib instanceof Object) {\n throw new Error('User lib is not an object');\n }\n\n return (module) => lib[module];\... | javascript | chosen |
[
{
"from": "human",
"value": "Add helper and map test\n"
},
{
"from": "gpt",
"value": "import $screen from 'wee-screen';\nimport { _html, _win } from 'core/variables';\n\nfunction setScreenSize(size) {\n\t_html.style.fontFamily = '\"' + size + '\"';\n\ttriggerEvent(_win, 'resize');\n}\n\n// TODO:... | javascript | chosen |
[
{
"from": "system",
"value": "Handle non-existence of spec directory\n"
},
{
"from": "human",
"value": "import fs from 'node-promise-es6/fs';\nimport path from 'path';\n\nasync function run() {\n const {linkDependencies = {}} = await fs.readJson('package.json');\n\n try {\n await fs.mkdir(p... | javascript | chosen |
[
{
"from": "system",
"value": "Add broccoli-sass as a dependency\n"
},
{
"from": "human",
"value": "'use strict';\n\nmodule.exports = {\n normalizeEntityName: function() {},\n\n afterInstall: function() {\n return this.addPackagesToProject([\n { name: 'liquid-fire', target: '0.17.1' },\... | javascript | chosen |
[
{
"from": "system",
"value": "Correct call to remove token from sessionStorage\n"
},
{
"from": "human",
"value": "if (!window.fetch) {\n require('whatwg-fetch');\n window.fetch = fetch;\n}\n\nconst getAuthorizationField = () => {\n let token = window.sessionStorage.getItem('token');\n\n... | javascript | chosen |
[
{
"from": "system",
"value": "Test runtime for template literals\n"
},
{
"from": "human",
"value": "var name, unsupportedFeatures = [];\nvar features = {\n class: works('class A {}'),\n arrowFunction: works('() => {}'),\n let: works('let x'),\n const: works('const x = 1'),\n destr... | javascript | chosen |
[
{
"from": "system",
"value": "Add typescript and clean targets to gruntfile\n"
},
{
"from": "human",
"value": "module.exports = function(grunt) {\n grunt.loadNpmTasks('grunt-mocha-cli');\n grunt.loadNpmTasks('grunt-jslint');\n\n grunt.initConfig({\n mochacli: {\n optio... | javascript | chosen |
[
{
"from": "system",
"value": "Use load-grunt-tasks instead of matchdep\n\nhttps://github.com/sindresorhus/load-grunt-tasks\n"
},
{
"from": "human",
"value": "var matchdep = require(\"matchdep\");\n\nmodule.exports = function(grunt) {\n\t\n\t// load all grunt tasks\n\trequire('matchdep').filterDe... | javascript | chosen |
[
{
"from": "system",
"value": "Define The Default Grunt Task\n"
},
{
"from": "human",
"value": "module.exports = function(grunt) {\n\n grunt.initConfig({\n jshint: {\n all: ['src/**/*.js', 'test/**/*.js'],\n options: {\n globals: {\n _: false,\n $: false,\n ... | javascript | chosen |
[
{
"from": "system",
"value": "[MISC] Remove an unnecessary require call for the Grunt-Config file\n"
},
{
"from": "human",
"value": "var config = require(\"./Build/Config\");\n\nmodule.exports = function(grunt) {\n\t\"use strict\";\n\n\t// Display the execution time of grunt tasks\n\trequire(\"t... | javascript | chosen |
[
{
"from": "system",
"value": "Remove unneeded grunt task (PR comment)\n"
},
{
"from": "human",
"value": "'use strict';\nmodule.exports = function(grunt) {\n var gtx = require('gruntfile-gtx').wrap(grunt);\n gtx.loadAuto();\n\n var gruntConfig = require('./grunt');\n gruntConfig.package = req... | javascript | chosen |
[
{
"from": "system",
"value": "Create AuthToken factory and added nethods for localStorage\n"
},
{
"from": "human",
"value": "(function() {\n 'use strict';\n\n angular.module('authService', []);\n .factory('Auth', function($http, $q, AuthToken) {\n\n var authFactory = {};\n\n authFactory... | javascript | chosen |
[
{
"from": "system",
"value": "Reorder imports to satisfy ESLint. Part of STRIPES-100\n"
},
{
"from": "human",
"value": "import { createStore, combineReducers, applyMiddleware, compose } from 'redux';\nimport thunk from 'redux-thunk';\nimport initialReducers from './initialReducers';\nimport enha... | javascript | chosen |
[
{
"from": "system",
"value": "Remove reference to parent scope"
},
{
"from": "human",
"value": "(function () {\n 'use strict';\n\n var module = angular.module('angular-bind-html-compile', []);\n\n module.directive('bindHtmlCompile', ['$compile', function ($compile) {\n return {\n... | javascript | chosen |
[
{
"from": "system",
"value": "Clean up a vestigial variable.\n"
},
{
"from": "human",
"value": "/* Copyright 2014 (c) SoFIE Studios. All rights reserved.\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file.\n */\n\n/**\n * @fileoverview A s... | javascript | chosen |
[
{
"from": "system",
"value": "Remove reference to 'architecture' symbol style\n\nThese symbols aren't included in the repository,\nas I'm unsure of their copyright status.\n"
},
{
"from": "human",
"value": "define([\n 'symbols/base',\n 'symbols/dnd',\n 'symbols/architecture'\n ],\nfunc... | javascript | chosen |
[
{
"from": "system",
"value": "Add log to check sound\n"
},
{
"from": "human",
"value": "const player = require('play-sound')( opts = {} );\nconst Random = require('random-js');\n\nconst sounds_path = './node_modules/kaamelott-soundboard'; \n\nconst sound_connect = [];\nconst sounds_start = [\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Use .closest instead of .parents to also check the targetView itself when finding z-index\n"
},
{
"from": "human",
"value": "module.exports = Em.Mixin.create({\n\n classNames: ['layer'],\n\n targetView: null,\n\n didInsertElement: function() {\n this... | javascript | chosen |
[
{
"from": "system",
"value": "Add new line in the end of file\n"
},
{
"from": "human",
"value": "'use strict';\n\n// Users service used for communicating with the users REST endpoint\nangular.module('users').factory('Users', ['$resource',\n\tfunction($resource) {\n\t\treturn $resource('users', {... | javascript | chosen |
[
{
"from": "system",
"value": "Remove Socket Client where it doesnt belong\n"
},
{
"from": "human",
"value": "// import clientSocket from '../clientSocket'\n\n// const socket = clientSocket();\n// ------------------------------------\n// Constants\n// ------------------------------------\nexport ... | javascript | chosen |
[
{
"from": "system",
"value": "Add installationCount attr on Plugin model\n"
},
{
"from": "human",
"value": "import DS from 'ember-data';\n\nvar Plugin = DS.Model.extend({\n name: DS.attr('string'),\n packageName: DS.attr('string'),\n description: DS.attr('string'),\n readme: DS.attr('string'... | javascript | chosen |
[
{
"from": "system",
"value": "Use translation file for '+ new item' in pricing\n"
},
{
"from": "human",
"value": "import AbstractModuleRoute from 'hospitalrun/routes/abstract-module-route';\nexport default AbstractModuleRoute.extend({\n addCapability: 'add_pricing',\n additionalModels: [{\n ... | javascript | chosen |
[
{
"from": "system",
"value": "EventPage.js: Change id for email in getProfileUserInfo function\n"
},
{
"from": "human",
"value": "chrome.runtime.onMessage.addListener(\n function(echo, sender, sendResponse) {\n var promise = new Promise(function(resolve, reject) {\n chrome.identity.getP... | javascript | chosen |
[
{
"from": "system",
"value": "Store the time of login.\n"
},
{
"from": "human",
"value": "var TopLevelView = require('ui/common/components/TopLevelView');\nvar NetworkHelper = require('helpers/NetworkHelper');\n\nfunction LoginView() {\n\n var loginUrl = Ti.App.Properties.getString('server_url'... | javascript | chosen |
[
{
"from": "system",
"value": "Fix typo in mongoose connection\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\n\n/*\n * This file is used to intake the unique printfection urls\n * Usage: ./intake.js path/to/csv [mongodb://url]\n * Requires mongo://url argv or MONGO_URL env var\n */\n\nva... | javascript | chosen |
[
{
"from": "system",
"value": "Improve versality of element names\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar aFrom = require('es5-ext/array/from');\n\nmodule.exports = function (t, a) {\n\tvar el, child1, child2, child3, list;\n\tif (typeof document === 'undefined') return;\n\n\tel =... | javascript | chosen |
[
{
"from": "system",
"value": "[Refactor] Use `module.exports` instead of `exports`."
},
{
"from": "human",
"value": "'use strict';\n\n// Load modules\n\nvar Stringify = require('./stringify');\nvar Parse = require('./parse');\n\n\n// Declare internals\n\nvar internals = {};\n\n\nexports.stringif... | javascript | chosen |
[
{
"from": "system",
"value": "Set jshint configuration option 'latedef' to false\n"
},
{
"from": "human",
"value": "module.exports = function (grunt) {\r\n \"use strict\";\r\n\r\n // load all grunt tasks\r\n require('load-grunt-tasks')(grunt);\r\n\r\n // Default task.\r\n grunt.registerTask... | javascript | chosen |
[
{
"from": "system",
"value": "Add support for `textarea` inputs.\n"
},
{
"from": "human",
"value": "(function (d) {\n if (navigator.userAgent.indexOf('MSIE 9') === -1) return;\n var elements = [], values = [], ev = d.createEvent('CustomEvent');\n ev.initCustomEvent('input', true, true, {});\n... | javascript | chosen |
[
{
"from": "system",
"value": "Print data received from server\n"
},
{
"from": "human",
"value": "console.log(\"Hello Console!\");\nhost = window.location.host.split(\":\")[0];\nconsole.log(host);\nvar conn;\n$(document).ready(function () {\n conn = new WebSocket(\"ws://\"+host+\":8888/ws\");\... | javascript | chosen |
[
{
"from": "system",
"value": "chore(dependencies): Update Meteor versions in the tests to the latest\n"
},
{
"from": "human",
"value": "Package.describe({\n name: 'angular2-meteor-tests-package',\n version: '0.0.1',\n summary: '',\n git: 'https://github.com/Urigo/Meteor-Angular2',\n documen... | javascript | chosen |
[
{
"from": "system",
"value": "Add a IconButton story to demo the 'element' prop\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport PropTable from './components/propTable';\nimport { storiesOf } from '@storybook/react';\nimport { checkA11y } from 'storybook-addon-a11y';\nimport... | javascript | chosen |
[
{
"from": "system",
"value": "Add all self defined models into base service injection.\n"
},
{
"from": "human",
"value": "class CartBase {\n constructor(CartPost) {\n this.modelPost = CartPost;\n }\n\n logInit(name) {\n if (!console) {\n return;\n }\n console.log(`Service ${n... | javascript | chosen |
[
{
"from": "system",
"value": "Add UTM mark to Evil Martian link\n"
},
{
"from": "human",
"value": "import React, { Component } from \"react\"\n\nimport styles from \"./index.css\"\nimport logo from \"./evilmartians.svg\"\n\nexport default class Footer extends Component {\n\n render() {\n ret... | javascript | chosen |
[
{
"from": "system",
"value": "Allow entered text to be used as a tag\n\nIn user research a common problem with tagging was discovered. Users\nwould enter text into the input field then click away or on the submit\nbutton. The default behaviour would hide the tag drop down and lear the\ntag input. So forms w... | javascript | chosen |
[
{
"from": "system",
"value": "Fix bug introduced by switching to minimist\n"
},
{
"from": "human",
"value": "'use strict'\n\nvar co = require('co')\nvar cli = require('./cli')\nvar utils = require('./utils')\nvar reporter = require('./reporter')\nvar notifier = require('update-notifier')\nvar pk... | javascript | chosen |
[
{
"from": "system",
"value": "Put error stack in new line when logging\n"
},
{
"from": "human",
"value": "const fs = require('fs-extra')\nconst chalk = require('chalk')\n\nexports.log = (message, err) => {\n // Regular errors\n if (message instanceof Error) {\n console.error(err && err.stac... | javascript | chosen |
[
{
"from": "system",
"value": "Add service worker registration back\n"
},
{
"from": "human",
"value": "import * as HAWS from 'home-assistant-js-websocket';\n\nwindow.HAWS = HAWS;\nwindow.HASS_DEMO = __DEMO__;\n\nconst init = window.createHassConnection = function (password) {\n const proto = win... | javascript | chosen |
[
{
"from": "system",
"value": "Change context for command save\n"
},
{
"from": "human",
"value": "define(function(Tab) {\n var Q = codebox.require(\"hr/promise\");\n var commands = codebox.require(\"core/commands\");\n\n // Add command to open a file\n commands.register({\n id:... | javascript | chosen |
[
{
"from": "system",
"value": "Update site to include react for prod\n"
},
{
"from": "human",
"value": "delete process.env.BROWSER;\nrequire('babel/register');\nrequire('./server');\n"
},
{
"from": "gpt",
"value": "delete process.env.BROWSER;\nrequire('babel/register');\nif (process.e... | javascript | chosen |
[
{
"from": "system",
"value": "Implement new MPDChildProcess object into production code\n"
},
{
"from": "human",
"value": "var Q = require('q'),\n spawn = require('child_process').spawn,\n fs = require('fs'),\n net = require('net'),\n logger = require('winston'),\n wa... | javascript | chosen |
[
{
"from": "system",
"value": "Set more reasonable SOA defaults\n"
},
{
"from": "human",
"value": "var validators = require('../validators');\n\nfunction SOA(host, opts) {\n if (typeof(host) !== 'string')\n throw new TypeError('host (string) is required');\n\n if (!op... | javascript | chosen |
[
{
"from": "system",
"value": "Replace the console.log to the debug.\n"
},
{
"from": "human",
"value": "import enchantGitlabInfo from './enchant-gitlab-info'\n\nexport default function(req, res, next) {\n enchantGitlabInfo(req.objectKind, req.body)\n .catch((err) => gitlabApiError(res, err))\... | javascript | chosen |
[
{
"from": "system",
"value": "Add a more helpful error when the user needs to login to perform an operation\n"
},
{
"from": "human",
"value": "import client from '@sanity/client'\nimport getUserConfig from './getUserConfig'\n\n/**\n * Creates a wrapper/getter function to retrieve a Sanity API cl... | javascript | chosen |
[
{
"from": "system",
"value": "Add state.go to saveNote and deleteNote functions. Remove unnecessary resetForm function\n"
},
{
"from": "human",
"value": "(function() {\n 'use strict';\n\n angular\n .module('meganote.notes')\n .controller('NotesFormController', NotesFormController);\n\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix race condition in deep linking"
},
{
"from": "human",
"value": "import { Linking } from 'react-native'; // eslint-disable-line import/no-unresolved, max-len\n\nexport const dance = authUrl => Linking.openURL(authUrl)\n .then(() => new Promise((resolve, reject) ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix empty string styles by running inlineStyleToObject on all strings and deleting non-string style props\n"
},
{
"from": "human",
"value": "import htmlAttributesToReact from './htmlAttributesToReact';\nimport inlineStyleToObject from './inlineStyleToObject';\n\n/**... | javascript | chosen |
[
{
"from": "system",
"value": "Fix assistant get key database\n"
},
{
"from": "human",
"value": "function normalizeName (name) {\n return capitalizeFirstLetter(name.replace(/\\s+/g, ''));\n}\n\nfunction capitalizeFirstLetter (string) {\n return string.charAt(0).toUpperCase() + string.slice(... | javascript | chosen |
[
{
"from": "system",
"value": "Load the map module for each platform into Alloy Globals\n"
},
{
"from": "human",
"value": "// The contents of this file will be executed before any of\n// your view controllers are ever executed, including the index.\n// You have access to all functionality on the ... | javascript | chosen |
[
{
"from": "system",
"value": "Move datatype editor to the right\n\n"
},
{
"from": "human",
"value": "import React, { PropTypes } from 'react'\n\nimport {\n changeDatatypeName, changeDatatypeParam\n} from '../actions/response-format'\n\nimport DatatypePicker from './datatype-picker';\nimport Num... | javascript | chosen |
[
{
"from": "system",
"value": "Fix onSet hook in express middleware\n"
},
{
"from": "human",
"value": "import Cookies from 'universal-cookie';\n\nexport default function universalCookieMiddleware() {\n return function(req, res, next) {\n req.universalCookies = new Cookies(req.headers.cookie |... | javascript | chosen |
[
{
"from": "system",
"value": "Change fixture for image example.\n"
},
{
"from": "human",
"value": "import {\n ProseEditor, ProseEditorConfigurator, EditorSession,\n ProseEditorPackage, ImagePackage\n} from 'substance'\n\n/*\n Example document\n*/\nconst fixture = function(tx) {\n let body = ... | javascript | chosen |
[
{
"from": "system",
"value": "Use async/await which getting token\n"
},
{
"from": "human",
"value": "import './global'\n\nimport React from 'react'\nimport ReactDOM from 'react-dom'\nimport AuthPanel from './components/AuthPanel'\nimport PopupHeader from './components/PopupHeader'\nimport FeedCo... | javascript | chosen |
[
{
"from": "system",
"value": "Make database available as an export.\n"
},
{
"from": "human",
"value": "module.exports = function models(r) {\n return {\n projects: require('./projects')(r),\n users: require('./users')(r),\n samples: require('./samples')(r),\n acces... | javascript | chosen |
[
{
"from": "system",
"value": "Fix a bug related to paragraph ranks\n"
},
{
"from": "human",
"value": "/*****************************************************************************/\n/* Paragraphs Methods */\n/*****************************************************************************/\n\nMete... | javascript | chosen |
[
{
"from": "system",
"value": "Fix framework dependencies that used to work before 10.13\n"
},
{
"from": "human",
"value": "const $ = require('NodObjC');\n$.framework('Cocoa');\n\nmodule.exports = {\n clickAt: (x, y) => {\n // get current mouse location\n const evtMouse = $.CGEventCreate(n... | javascript | chosen |
[
{
"from": "system",
"value": "Fix wide and high entities thresholds and offsets handling\n"
},
{
"from": "human",
"value": "/**\n* Check whether an element is in the viewport by\n* more than offset px.\n*/\nexport function inViewport (element, options) {\n\n const { top, right, bottom, left, ... | javascript | chosen |
[
{
"from": "system",
"value": "Refactor character counter\nNow just a simple interpolation within the p-tag\n"
},
{
"from": "human",
"value": "import React, { Component } from 'react'\nimport firebase, { reference, signIn } from '../firebase';\nimport { pick, map, extend } from 'lodash';\n\nexpor... | javascript | chosen |
[
{
"from": "system",
"value": "Fix float datatype for gps course\n"
},
{
"from": "human",
"value": "'use strict';\n\nmodule.exports = function(sequelize, DataTypes) {\n var Location = sequelize.define('Location', {\n latitude: DataTypes.FLOAT(4, 6),\n longitude: DataTypes.FLOAT(4, 6),\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add properties to user model\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar mongoose = require('mongoose');\nvar Schema = mongoose.Schema;\n\nvar User = new Schema({\n\tname: String,\n\temail: String,\n\tpassword: String,\n\tdate: Date,\n\tcity: String,\n\t... | javascript | chosen |
[
{
"from": "system",
"value": "Store counter info in window.counters and move them to its position.\n"
},
{
"from": "human",
"value": "// ref: http://stackoverflow.com/questions/901115/how-can-i-get-query-string-values-in-javascript/2880929#2880929\nvar urlParams;\n(window.onpopstate = function (... | javascript | chosen |
[
{
"from": "system",
"value": "Add lti key to all requests\n"
},
{
"from": "human",
"value": "import api from \"../libs/api\";\nimport { DONE } from \"../constants/wrapper\";\n\nconst API = store => next => action => {\n\n function request(method, url, params, body, headers){\n con... | javascript | chosen |
[
{
"from": "system",
"value": "Add package.json scripts for type checking 🚕\n"
},
{
"from": "human",
"value": "import path from 'path'\nimport json from '../../util/json'\n\nconst saguiScripts = {\n 'build': 'sagui build',\n 'develop': 'sagui develop --port 3000',\n 'dist': 'NODE_ENV=producti... | javascript | chosen |
[
{
"from": "system",
"value": "Use locally installed tbb if available\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\n\n/*\n Copyright 2015 Google Inc. All Rights Reserved.\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in complia... | javascript | chosen |
[
{
"from": "system",
"value": "Fix a bug when width was not inherited from document (because it was not assigned from the start)"
},
{
"from": "human",
"value": "/*\n---\n \nscript: Resizable.js\n \ndescription: Document that redraws children when window gets resized.\n \nlicense: Public domain (... | javascript | chosen |
[
{
"from": "system",
"value": "Add workarround to fix source map paths.\n"
},
{
"from": "human",
"value": "'use strict'\n\nconst iif = require('gulp-if')\nconst concat = require('gulp-concat')\nconst cssmin = require('gulp-cssmin')\nconst sourcemaps = require('gulp-sourcemaps')\nconst filenames =... | javascript | chosen |
[
{
"from": "system",
"value": "Simplify BrowserSync setting (because HTMLs become not to be loaded via src attribute of iframes).\n"
},
{
"from": "human",
"value": "const Bibi = require('./bibi.info.js');\n\nmodule.exports = {\n port: 61671,\n ui: {\n port: 61672\n },\n server... | javascript | chosen |
[
{
"from": "system",
"value": "Read more button and only title is link\n"
},
{
"from": "human",
"value": "import Link from 'next/prefetch'\n\nconst ArticleTeaserView = ({ id, title, date, lead, author, teaser }) => (\n <div className=\"article-teaser-view\">\n <Link href={`/article?id=${id}`}... | javascript | chosen |
[
{
"from": "system",
"value": "Make consistent with Sarah's text"
},
{
"from": "human",
"value": "module.exports = {\n pageTitle: 'Submitting your MSP enrollment application',\n transmissionSuccess: 'You MSP enrollment application has been successfully submitted!',\n transmissionInProgressMess... | javascript | chosen |
[
{
"from": "system",
"value": "Add route for the api\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst express = require('express');\nconst app = express();\n\napp.route('/')\n .get((req, res) => {\n res.sendFile(process.cwd() + '/public/index.html');\n });\n\n\nconst port = pr... | javascript | chosen |
[
{
"from": "system",
"value": "Enable better local module resolution within the app\n\n20a273a only works for the server-side; this commit adds the necessary config to enable the some effect on the client-side.\n"
},
{
"from": "human",
"value": "// Webpack Configuration\n// =====================\... | javascript | chosen |
[
{
"from": "system",
"value": "Fix clean-css processing font @import rule\n"
},
{
"from": "human",
"value": "/**\n * Gulpfile.js\n */\n\n/* jshint node:true */\n\n'use strict';\n\nvar gulp = require('gulp'),\n sass = require('gulp-ruby-sass'),\n autoprefixer = require('gulp-autoprefixer'),\... | javascript | chosen |
[
{
"from": "system",
"value": "Remove password at the moment for debugging\n"
},
{
"from": "human",
"value": "function Admin() {}\n\nAdmin.prototype.setVersion = function(version) {\n this.version = version;\n};\n\nAdmin.prototype.getViewData = function(req) {\n var viewData = {\n loggedIn: ... | javascript | chosen |
[
{
"from": "system",
"value": "Read files from apis directory and include them\n"
},
{
"from": "human",
"value": "module.exports = {\n servers: require(\"./servers\")\n , accounts: require(\"./accounts\")\n , api_clients: require(\"./api_clients\")\n , cloud_ips: require(\"./cloud_ips\")\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Throw helpful error for broccoli.bowerTrees\n"
},
{
"from": "human",
"value": "var builder = require('./builder')\nexports.Builder = builder.Builder\nexports.loadBrocfile = builder.loadBrocfile\nvar server = require('./server')\nexports.server = server\nvar cli = re... | javascript | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.