conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Add ignoreCache option and cache based on url\n\nVerification does end up being dependent on URL and is cached\naccordingly\n"
},
{
"from": "human",
"value": "// Includes\nvar http = require('./http.js').func;\nvar getHash = require('./getHash.js').func;\nvar getVer... | javascript | chosen |
[
{
"from": "system",
"value": "Add chapter 10, exercise 2\n"
},
{
"from": "human",
"value": "// Depend on ./graph module\nconst {buildGraph} = require(\"./graph\");\n\nconst roads = [\n \"Alice's House-Bob's House\", \"Alice's House-Cabin\",\n \"Alice's House-Post Office\", \"Bob's Hous... | javascript | chosen |
[
{
"from": "system",
"value": "Update memcached_server location for Docker\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst config = {\n repository_url: 'github.com/zulhilmizainuddin/url-shortener',\n base_url: 'localhost:7000',\n log_level: 'info',\n memcached_server: 'local... | javascript | chosen |
[
{
"from": "system",
"value": "Correct name for time checker spec\n"
},
{
"from": "human",
"value": "var timeCheck = require('../checks/time.js');\nvar expect = require('chai').expect;\nvar cases = require('cases');\n\ndescribe('check response code', function() {\n it('returns true for respons... | javascript | chosen |
[
{
"from": "system",
"value": "Add test for map arguments/returns\n"
},
{
"from": "human",
"value": "/* @flow */\n\nimport test from 'tape';\nimport sasspec from '../src';\n\nconst sass = assert => {\n assert.plan(1);\n return sasspec('./test/fixtures/func.scss', assert);\n};\n\ntest('function ... | javascript | chosen |
[
{
"from": "system",
"value": "Use global assert in lib"
},
{
"from": "human",
"value": "var fs = require('fs'),\n glob = require('glob'),\n path = require('path'),\n wrench = require('wrench');\n\nvar counter = 0;\ntry { fs.mkdirSync('/tmp/lumbar-test', 0755); } catch (err) {}\n\nexport... | javascript | chosen |
[
{
"from": "system",
"value": "Misc: Create helper object for converting grade token values\n\n"
},
{
"from": "human",
"value": "let config = {\n scheme: window.location.protocol.slice(0, -1),\n host: window.location.hostname,\n port: window.location.port,\n getUrl: () => `${config.sc... | javascript | chosen |
[
{
"from": "system",
"value": "Allow Knox usage server side\n\nThe `var` keyword restricts the use of it to this file only. Removing it lets `package.js` see it and export it"
},
{
"from": "human",
"value": "var Knox = Npm.require(\"knox\");\nvar Future = Npm.require('fibers/future');\n\nvar knox... | javascript | chosen |
[
{
"from": "system",
"value": "Add use strict to brunch config\n"
},
{
"from": "human",
"value": "exports.config = {\n files: {\n javascripts: {\n joinTo: {\n 'vendor.js': /^vendor/\n },\n entryPoints: {\n 'app/index.js': 'app.js'\n }\n },\n stylesheets... | javascript | chosen |
[
{
"from": "system",
"value": "Set topic correctly to fix help output\n"
},
{
"from": "human",
"value": "'use strict'\nexports.topic = {\n name: 'heroku',\n // this is the help text that shows up under `heroku help`\n description: 'a topic for the webhooks plugin'\n}\n\nexports.commands = [\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Rename App to application and move it inside describe\n"
},
{
"from": "human",
"value": "/* jshint expr:true */\nimport {\n describe,\n it,\n beforeEach,\n afterEach\n} from 'mocha';\nimport { expect } from 'chai';\nimport Ember from 'ember';\nimport startApp fr... | javascript | chosen |
[
{
"from": "system",
"value": "Fix Map unexepected constructor argument by removing new keyword\n"
},
{
"from": "human",
"value": "// @flow\nimport { Map, Record } from 'immutable';\n\nexport type PlayerShape = {\n username: string,\n displayName: string,\n index: number,\n ready: boolean\n};... | javascript | chosen |
[
{
"from": "system",
"value": "Check testing environment has appropriate features\n"
},
{
"from": "human",
"value": "describe(\"Core Bliss\", function () {\n\t\"use strict\";\n\n\tbefore(function() {\n\t\tfixture.setBase('tests/fixtures');\n\t});\n\n\tbeforeEach(function () {\n\t\tthis.fixture = ... | javascript | chosen |
[
{
"from": "system",
"value": "Add semicolons and update comment"
},
{
"from": "human",
"value": "/**\n * Straight exports with short alias, to support browserify.\n *\n */\nexports.dot = exports.dotCase = require('dot-case')\nexports.swap = exports.swapCase = require('swap-... | javascript | chosen |
[
{
"from": "system",
"value": "Allow string selectors in $() and $$()\n\ngit-svn-id: f9d823c90a32400593a994373deabe1ce7dbadd7@131 917dd4d6-6a9c-4700-b622-114467236220\n"
},
{
"from": "human",
"value": "#ifndef __browser_dom_Document__\n#define __browser_dom_Document__\n\n/////////////////////////... | javascript | chosen |
[
{
"from": "system",
"value": "Use uniqId as key, to fix bug of duplicated cards\n"
},
{
"from": "human",
"value": "import React, { Component, PropTypes } from 'react';\nimport { List } from 'immutable';\nimport { Card } from 'components';\n\nexport default class Hand extends Component {\n stati... | javascript | chosen |
[
{
"from": "system",
"value": "Remove unused import of stripes-connect\n"
},
{
"from": "human",
"value": "// We have to remove node_modules/react to avoid having multiple copies loaded.\n// eslint-disable-next-line import/no-unresolved\nimport React, { PropTypes } from 'react';\nimport { connect ... | javascript | chosen |
[
{
"from": "system",
"value": "Add number-input to Analog Out\n"
},
{
"from": "human",
"value": "import React, { Component, PropTypes } from 'react';\n\nexport default class DigitalInput extends Component {\n static propTypes = {\n write: PropTypes.func.isRequired,\n };\n\n constructor(prop... | javascript | chosen |
[
{
"from": "system",
"value": "Add position to price selector\n"
},
{
"from": "human",
"value": "var timeout = 20000;\nvar demoCommands = {\n getSelector: function(client) {\n if(client.globals.environment === 'xvfb_mobile')\n return this.elements.searchResult.selector;\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Stop Cypress if a test failed\n\nSome tests depend on previous tests (i.e. creating a replica / migration\ndepends on creating the 2 endpoints), so it is safer to stop all the\ntests after the failed one.\n"
},
{
"from": "human",
"value": "// @flow\nimport './comman... | javascript | chosen |
[
{
"from": "system",
"value": "Add create exam function to api service\n"
},
{
"from": "human",
"value": "angular.module('PassApp')\n.factory('ApiService', function($http, $q){\n\tvar o = {};\n\tvar baseUrl = \"http://localhost:3000\";\n\n\to.createExam = function(data){\n\t\t$http.post(baseUrl +... | javascript | chosen |
[
{
"from": "system",
"value": "Exclude libraries as object (eg. _.find())\n"
},
{
"from": "human",
"value": "'use strict';\n\nmodule.exports = {\n meta: {\n docs: {\n description: 'Forbid methods added in ES6'\n },\n schema: []\n },\n create(context) {\n return {\n CallEx... | javascript | chosen |
[
{
"from": "system",
"value": "Use the standard OK button\n"
},
{
"from": "human",
"value": "const electron = require('electron')\nconst app = electron.app\nconst dialog = electron.dialog\nconst globalShortcut = electron.globalShortcut\n\napp.on('ready', function () {\n globalShortcut.register('... | javascript | chosen |
[
{
"from": "system",
"value": "Add unsafeWindow which is an alias for window.\n"
},
{
"from": "human",
"value": "(function (<bridge>, document) {\n if (document.readyState == \"loaded\" || document.readyState == \"complete\") {\n document.__creammonkeyed__ = true;\n } else {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add image_id to DB model.\n"
},
{
"from": "human",
"value": "Meteor.methods({\n createBet: function(user,defender,title,wager) {\n Bets.insert({\n bettors: [ user, defender ],\n status: \"open\",\n title: title,\n wager: wager,\n created... | javascript | chosen |
[
{
"from": "system",
"value": "Set origin host name for production\n"
},
{
"from": "human",
"value": "const program = require('commander');\nconst MongoClient = require('mongodb').MongoClient;\n\nconst logger = require('./logging').logger;\n\nprogram\n .version('0.1.0')\n .option('-e, --env... | javascript | chosen |
[
{
"from": "system",
"value": "Add umdNamedDefine to webpack to make it easier to use in a <script> tag.\n"
},
{
"from": "human",
"value": "/* eslint no-var:0 */\nvar webpack = require('webpack');\nvar yargs = require('yargs');\n\nvar options = yargs\n .alias('p', 'optimize-minimize')\n .alias(... | javascript | chosen |
[
{
"from": "system",
"value": "Fix middlewares order for proper thunk logging\n"
},
{
"from": "human",
"value": "import createLogger from 'redux-logger';\nimport thunk from 'redux-thunk';\nimport transactionReducer from './reducers'\nimport { applyMiddleware, createStore } from 'redux';\nimport {... | javascript | chosen |
[
{
"from": "system",
"value": "Make sure to copy appmanifest.json\n"
},
{
"from": "human",
"value": "const { execSync } = require('child_process');\nconst fs = require('fs');\nconst path = require('path');\nconst babelrcHelper = require('../../config/babelrcHelper').default;\n\nmodule.exports = (... | javascript | chosen |
[
{
"from": "system",
"value": "Use dependency parser once dependency json created\n"
},
{
"from": "human",
"value": "var fs = require('fs');\nvar _ = require('underscore');\n\n// read config\n// var config = fs.readFile('./legal-config.json', 'utf-8', function(err, data) {\n// if (err) console.... | javascript | chosen |
[
{
"from": "system",
"value": "fix(analysis): Set date to YYYY-MM-DD format\n\nfix #873\n"
},
{
"from": "human",
"value": "import React from 'react'\nimport DateTime from 'react-datetime'\n\nlet datePickerCount = 0\nexport default function DatePicker(p) {\n // Run once on mount and cleanup on un... | javascript | chosen |
[
{
"from": "system",
"value": "Fix project open commands on windows\n\nfbshipit-source-id: 941af41\n"
},
{
"from": "human",
"value": "/**\n * @flow\n */\n\nimport osascript from '@exponent/osascript';\n\nexport async function openFinderToFolderAsync(dir: string) {\n return await osascript.openFi... | javascript | chosen |
[
{
"from": "system",
"value": "Fix XMLHttpRequest - 3.0.0 PR edition\n\nAs on tin. Same thing as #107."
},
{
"from": "human",
"value": "//\n// Browser requests, mirrors the syntax of the node requests\n//\n\nvar when = require('when');\n\nvar form = require('./form');\n\nexports.https = function(... | javascript | chosen |
[
{
"from": "system",
"value": "Update to use domain name\n"
},
{
"from": "human",
"value": "var prod = {\n pdm:'http://59.110.152.96/',\n assess:'http://59.110.152.96/',\n iqc:'http://59.110.152.96/'\n};\n\nwindow._activeEnv = prod;"
},
{
"from": "gpt",
"value": "var prod = {... | javascript | chosen |
[
{
"from": "system",
"value": "Change default config to use production\n"
},
{
"from": "human",
"value": "module.exports = {\n ODS_PORTAL_DOMAIN: 'public',\n ODS_THEME_APIKEY: '<THEME API KEY>',\n\n // Command-line defaults\n ODS_DEFAULT_LESS_FILE: 'src/less/main.less',\n ODS_DEFAU... | javascript | chosen |
[
{
"from": "system",
"value": "Refactor firebase refs, add function to change user\n"
},
{
"from": "human",
"value": "const Firebase = require('firebase');\nexport const ref = new Firebase(\"https://interruptedlobster.firebaseio.com/tiff\");\nexport const userData = ref.child('user');\nexport con... | javascript | chosen |
[
{
"from": "system",
"value": "Add auth setting to make travis work\n"
},
{
"from": "human",
"value": "module.exports = {\n 'development': {\n 'username': 'postgres_user',\n 'password': 'MsniCUO12*',\n 'database': 'document_db',\n 'host': 'localhost',\n 'port': '5432',\n 'diale... | javascript | chosen |
[
{
"from": "system",
"value": "Fix an API key issue\n"
},
{
"from": "human",
"value": "document.addEventListener('click', async function(event) {\n const subscribeButton = event.target.closest('.stripe-checkout')\n if (subscribeButton === null) {\n return\n }\n\n event.preventDefault()\n\n... | javascript | chosen |
[
{
"from": "system",
"value": "Fix worker creation with * as queues selector\n\nFix worker creation with * as queues selector. With the current implementation it doesn't work.\r\n\r\nExample of usage:\r\n\r\nmonqClient = monq('connstr');\r\nworker = monqClient.worker('*', { ... });"
},
{
"from": "hum... | javascript | chosen |
[
{
"from": "system",
"value": "Make location optional in action core\n"
},
{
"from": "human",
"value": "import _ from 'lodash';\nconst {knex} = require('../util/database').connect();\n\nfunction createAction(action) {\n const dbRow = {\n 'team_id': knex.raw('(SELECT team_id from users WHERE u... | javascript | chosen |
[
{
"from": "system",
"value": "Use additionalProperties keyword in JSON Schema to avoid invalid loader options\n"
},
{
"from": "human",
"value": "var getOptions = require(\"loader-utils\").getOptions;\nvar validateOptions = require(\"schema-utils\");\n\nvar schema = {\n type: \"object\",\n ... | javascript | chosen |
[
{
"from": "system",
"value": ":green_heart: Fix broken input email test\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst InputEmail = require('../../lib/install/input-email');\nconst InputEmailElement = require('../../lib/elements/atom/input-email-element');\n\ndescribe('InputEmail', ()... | javascript | chosen |
[
{
"from": "system",
"value": "Set webpack to fallback to history on mismatched route\n"
},
{
"from": "human",
"value": "const path = require('path');\n\nconst ExtractTextPlugin = require(\"extract-text-webpack-plugin\");\nconst HtmlWebpackPlugin = require('html-webpack-plugin');\n\nmodule.export... | javascript | chosen |
[
{
"from": "system",
"value": "fix: Improve webpack uglify js conf\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst webpack = require('webpack');\n\nmodule.exports = {\n output: {\n library: 'bob',\n libraryTarget: 'umd'\n },\n plugins: [\n new webpack.optim... | javascript | chosen |
[
{
"from": "system",
"value": "Use chunkhash instead of hash for filenames\n"
},
{
"from": "human",
"value": "var path = require('path');\nvar ManifestPlugin = require('webpack-manifest-plugin');\n\nmodule.exports = {\n entry: {\n search: './resources/assets/js/search.js',\n epis... | javascript | chosen |
[
{
"from": "system",
"value": "Add a cypress test for user manage tab [WAL-3055]\n"
},
{
"from": "human",
"value": "// TODO: Implement user manage tab spec\n"
},
{
"from": "gpt",
"value": "describe('User manage', () => {\n beforeEach(() => {\n cy.server()\n .mockUser()\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Support for YouTube 2020 CSS changes\n"
},
{
"from": "human",
"value": "function main() {\n // Define video & thumbnail HTML element classes\n var videoClasses = '.html5-video-container';\n var thumbnailClasses = '.yt-uix-simple-thumb-wrap, .yt-thumb img, .... | javascript | chosen |
[
{
"from": "system",
"value": "Add arenaposition state to player.\n"
},
{
"from": "human",
"value": "/**\n * Created by Jared Rewerts on 3/7/2016.\n */\n\"use strict\";\n\n/**\n * Each player owns it's own paddle. The already created paddle is passed into\n * the constructor of Player in config.\... | javascript | chosen |
[
{
"from": "system",
"value": "Add Chinese pulp upload translation file\n"
},
{
"from": "human",
"value": "// Chinese\nplupload.addI18n({\n 'Select files' : 'Select files',\n 'Add files to the upload queue and click the start button.' : 'Add files to the upload queue and click the start but... | javascript | chosen |
[
{
"from": "system",
"value": "Fix last item unread count to 0\n"
},
{
"from": "human",
"value": "var newItemCountLabel = document.getElementById('reading-list-unread-count');\n\nif (newItemCountLabel) {\n function requestUpdate() {\n var itemCountMatcher = /(\\d+)(\\+?)/;\n var match = it... | javascript | chosen |
[
{
"from": "system",
"value": "Add 'defaults' & 'strategies' properties; Add 'fit' strategy."
},
{
"from": "human",
"value": "/**\n * znResize jQuery plugin\n *\n * @author Zion Ng <zion@intzone.com>\n * @link https://github.com/zionsg/zn-jquery/tree/master/znResize\n * @version 1.0.0, 2013-0... | javascript | chosen |
[
{
"from": "system",
"value": "Use a cleaner interface for partially mapping through a remapping\n"
},
{
"from": "human",
"value": "// : (Transform, [Step], [Step], [Step]) → number\n// Undo a given set of steps, apply a set of other steps, and then\n// redo them.\nfunction rebaseSteps(transform,... | javascript | chosen |
[
{
"from": "system",
"value": "Throw proper DOMException on abort\n"
},
{
"from": "human",
"value": "(function(self) {\n 'use strict';\n\n if (self.AbortController) {\n return;\n }\n\n class AbortController {\n constructor() {\n this.signal = {};\n }\n abort() {\n if (th... | javascript | chosen |
[
{
"from": "system",
"value": "Add log msg that database rules are being deployed\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar RSVP = require('rsvp');\n\nmodule.exports = function(context, options, payload) {\n payload.database = {rules: options.config.get('database.rules')};\n\n ret... | javascript | chosen |
[
{
"from": "system",
"value": "Use NodeJS environmental variables as configuration points for DB URL, user, and password values, rather than opening an external configuration file.\n"
},
{
"from": "human",
"value": "module.exports = function(app) {\n var mongoose = require('mongoose'); // requir... | javascript | chosen |
[
{
"from": "system",
"value": "Include the request method in `trackAPIError`.\n"
},
{
"from": "human",
"value": "/**\n * Cache data.\n *\n * Site Kit by Google, Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except... | javascript | chosen |
[
{
"from": "system",
"value": "Remove console.log from server start\n"
},
{
"from": "human",
"value": "/*\n\nKent Hack Enough\n\nLet's try to organize organizing.\n@author Paul Dilyard\n\nTo get the app instance, just call getAppInstance() from anywhere\nTo get a db connection, require('mongoose'... | javascript | chosen |
[
{
"from": "system",
"value": "Add a random param to the S3 URL so that Slack will always expand the image\n"
},
{
"from": "human",
"value": "var connect = require('connect');\nvar PORT = process.env.PORT || 5000;\nvar diffy = require('./diffy');\nvar http = require('http');\nvar postMessage = re... | javascript | chosen |
[
{
"from": "system",
"value": "Move hidden layered menu to proper position"
},
{
"from": "human",
"value": "// ==UserScript==\n// @name Todays PPC script\n// @namespace http://www.github.com/gh4ck3r\n// @description Customize and remove Ad. from Todays PPC site\n// @include https://w... | javascript | chosen |
[
{
"from": "system",
"value": "Change db table name to not be reserved sql keyword\n"
},
{
"from": "human",
"value": "/**\n * User\n *\n * @module :: Model\n * @description :: A short summary of how this model works and what it represents.\n * @docs\t\t:: http://sailsjs.org/#!documentation/m... | javascript | chosen |
[
{
"from": "system",
"value": "fix(UI): Fix file upload component for Visualizer\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport style from 'HPCCloudStyle/ItemEditor.mcss';\n\nexport default React.createClass({\n\n displayName: 'Simulation/New/Visualizer',\n\n propType... | javascript | chosen |
[
{
"from": "system",
"value": "Add percentage to CLI output\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\n'use strict';\n\nvar meow = require('meow');\nvar getBrowsers = require('./');\n\nmeow({\n\thelp: [\n\t\t'Usage',\n\t\t' $ get-browsers'\n\t].join('\\n')\n});\n\ngetBrowsers(functi... | javascript | chosen |
[
{
"from": "system",
"value": "Add mongolab mongodb hosting (free...)\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar express = require('express'),\n favicon = require('serve-favicon'),\n routes = require('./app/routes/index.js'),\n mongo = require('mongodb').MongoClient;\n\nvar ... | javascript | chosen |
[
{
"from": "system",
"value": "chore(ci): Add console logs for deploy status\n"
},
{
"from": "human",
"value": "console.log(\"Deploying Application...\");\nvar fs = require(\"fs\");\nvar path = require(\"path\");\nvar ShopifyAPI = require(\"shopify-node-api\");\n\nvar pageId = process.env.SHOPIFY... | javascript | chosen |
[
{
"from": "system",
"value": "Allow cmd+q to quit the application fully.\n"
},
{
"from": "human",
"value": "import { app, BrowserWindow } from 'electron'\n\nexport var devMenuTemplate = {\n label: 'Development',\n submenu: [{\n label: 'Reload',\n accelerator: 'CmdOrCtrl+R',\n click: f... | javascript | chosen |
[
{
"from": "system",
"value": "Remove these dependencies for now\n"
},
{
"from": "human",
"value": "// Load libraries\nimport angular from 'angular';\n\nimport 'angular-animate';\nimport 'angular-aria';\nimport 'angular-material';\n\nimport 'tinycolor'\nimport 'md-color-picker'\n\nimport AppContr... | javascript | chosen |
[
{
"from": "system",
"value": "account: Cut Reselect for trivial selectors.\n\nNone of these do any appreciable work that would benefit from caching.\nSimplify thinking about the code by cutting the use of Reselect.\n"
},
{
"from": "human",
"value": "/* @flow strict-local */\nimport { createSelec... | javascript | chosen |
[
{
"from": "system",
"value": "Add title property just in case"
},
{
"from": "human",
"value": "const fs = require(\"fs\");\nconst path = require(\"path\");\nconst pify = require(\"pify\");\nconst os = require(\"os\");\n\nconst { Archive } = require(\"buttercup\");\nconst csvparse = require(\"csv... | javascript | chosen |
[
{
"from": "system",
"value": "Add svg to be loaded as image.\n"
},
{
"from": "human",
"value": "var webpack = require('webpack');\n\nmodule.exports = {\n entry: \"./src/app.js\",\n output: {\n path: \"./build\",\n filename: \"bundle.js\",\n publicPath: 'http://localhost:8090/assets'\n... | javascript | chosen |
[
{
"from": "system",
"value": "Remove old jQuery webpack stuff\n"
},
{
"from": "human",
"value": "var webpack = require('webpack');\nvar path = require('path');\nvar node_modules_dir = path.join(__dirname, 'node_modules');\n\nmodule.exports = {\n devtool: 'inline-cheap-source-map',\n entry:... | javascript | chosen |
[
{
"from": "system",
"value": "Remove the typings merging plugin\n"
},
{
"from": "human",
"value": "const webpack = require('webpack');\n\nmodule.exports = {\n entry: {\n 'pusher-platform': './src/index.ts'\n },\n output: {\n filename: 'target/[name].js',\n libraryTarget: 'umd',\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Remove loading of css files\n"
},
{
"from": "human",
"value": "var ExtractTextPlugin = require('extract-text-webpack-plugin');\n\nmodule.exports = {\n context: __dirname + '/app',\n entry: ['./app.jsx'],\n output: {\n filename: 'molten.js',\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Switch to ReactiveVar and fix issue with error message displaying more than once\n"
},
{
"from": "human",
"value": "errors = new ReactiveArray([]);\n\nTemplate.register.helpers({\n errorList: function() {\n return errors.list();\n },\n\n formValid: function(us... | javascript | chosen |
[
{
"from": "system",
"value": "Put both jsx and js varaibles on same line in config file.\n"
},
{
"from": "human",
"value": "/*\n* @Author: KevinMidboe\n* @Date: 2017-06-01 19:09:16\n* @Last Modified by: KevinMidboe\n* @Last Modified time: 2017-10-24 21:55:41\n*/\n\nconst path = require('path... | javascript | chosen |
[
{
"from": "system",
"value": "Add GPS datetime to popup if such information exists\n\nAvoid adding that field with `null` values\n"
},
{
"from": "human",
"value": "// Map centered in NowSecure HQ by default\nvar map = L.map('map').setView([40.2001925,-89.0876265], 3);\n\nL.tileLayer('http://{s}.... | javascript | chosen |
[
{
"from": "system",
"value": "test(react): Fix test that required React in a mock file.\n"
},
{
"from": "human",
"value": "import {Component} from 'react'\n\nexport default class MockTestComponentUniqueName extends Component {\n static defaultProps = {\n test: 'hi'\n }\n\n render () {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "feature: Add presentation to the app component\n\nThis replaces the presentation div with the presentation component.\nThis also cleans up the state object and simplifies the slides.\n"
},
{
"from": "human",
"value": "import React, { Component, PropTypes } from 'rea... | javascript | chosen |
[
{
"from": "system",
"value": "Add HTML5 history pushState support when navigating the release files."
},
{
"from": "human",
"value": "$(document).ready(function() {\n\t// select input content when focused\n\t$('input[type=text],input[type=password],input[type=search]')\n\t\t.focus(function(e) {\... | javascript | chosen |
[
{
"from": "system",
"value": "Remove picture and email for now\n"
},
{
"from": "human",
"value": "import React, {Component, Image, Text, TouchableHighlight, View, StyleSheet} from 'react-native';\n\nexport default class FriendListItem extends Component {\n\n constructor(props) {\n super(prop... | javascript | chosen |
[
{
"from": "system",
"value": "Fix 404 page font issue\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport { Link } from 'react-router';\nimport classNames from 'classnames';\nimport Title from 'react-title-component';\n\nimport main from '../../assets/css/main.scss';\n\nconst p... | javascript | chosen |
[
{
"from": "system",
"value": "Change item route URL to be items/:id instead of item/:id\n"
},
{
"from": "human",
"value": "define([\n 'ember',\n],\n\nfunction (Em) {\n 'use strict';\n\n var Router = Em.Router.extend({\n location: 'history'\n });\n\n Router.map(function () {\n this.res... | javascript | chosen |
[
{
"from": "system",
"value": "Disable button on New Question Form After Click\n"
},
{
"from": "human",
"value": "$(document).ready( function () {\n $('#signup').click(function(event){\n event.preventDefault();\n $('#screen_block').show();\n $('#signup_modal').show();\n });\n\n $('#sc... | javascript | chosen |
[
{
"from": "system",
"value": "Use null coalescing for indicator value indicator getter"
},
{
"from": "human",
"value": "/**\n * mSupply Mobile\n * Sustainable Solutions (NZ) Ltd. 2019\n */\n\nimport Realm from 'realm';\n\n/**\n * An abstract object which contains metadata describing an indicator... | javascript | chosen |
[
{
"from": "system",
"value": "Fix the deepExtend logic to copy class instances by reference.\n"
},
{
"from": "human",
"value": "Krang.deepExtend = function(destination, source) {\n for (var property in source) {\n var type = typeof source[property];\n if (type === 'object' && !Object.isEl... | javascript | chosen |
[
{
"from": "system",
"value": "Add name to default logger\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar Logging = require('./core/logging');\n\nvar configs = require('./configs');\nvar logging = new Logging();\n\nlogging.conf(configs);\n\nlogging.getLogger().setup(logging);\n\nmodule.ex... | javascript | chosen |
[
{
"from": "system",
"value": "Compress built JS and generate sourcemaps\n\nUncompressed JS is unnecessarily large, but compressing it makes it\ndifficult to debug. Sourcemaps allow for both optimal size and easy\ndebugging.\n"
},
{
"from": "human",
"value": "'use strict';\n\nmodule.exports = fun... | javascript | chosen |
[
{
"from": "system",
"value": "Update Class description, Add export keyword\n"
},
{
"from": "human",
"value": "/**\n * @class HTMLCollectionHelper\n * Class provides static methods to perform checks and operations on arrays\n */\n\nclass HTMLCollectionHelper {\n // Class Methods\n\n /**\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Use or set session to empty object on window\n"
},
{
"from": "human",
"value": "/* global toastr:false, moment:false, _:false, $:false, session:false */\n(function() {\n 'use strict';\n\n angular.module('app.core')\n .constant('lodash', _)\n .constant('jQuer... | javascript | chosen |
[
{
"from": "system",
"value": "Add Chapter 06, exercise 2\n"
},
{
"from": "human",
"value": "function StretchCell(inner, width, height) {\n this.inner = inner;\n this.width = width;\n this.height = height;\n}\nStretchCell.prototype.minWidth = function() {\n return Math.max(this.inner.... | javascript | chosen |
[
{
"from": "system",
"value": "Test: Fix test coverage metrics and enable notifications again 🎉\n"
},
{
"from": "human",
"value": "/* eslint-env node */\n\nconst { JEST_NOTIFY, ENABLE_JEST_NOTIFICATIONS } = process.env\n\nmodule.exports = {\n // Provides nice test output of what's being run\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add keyup() listening to preview input\n"
},
{
"from": "human",
"value": "\n$(document).ready(() => {\n // alert('Hello World');\n console.log('Check Console');\n});\n"
},
{
"from": "gpt",
"value": "$(document).ready(() => {\n\tlet preview = $('.previe... | javascript | chosen |
[
{
"from": "system",
"value": "demoapp: Update for change is ievv_jsbase.\n"
},
{
"from": "human",
"value": "import {MyClass} from \"./modules/demomodule\";\nimport {unique} from 'uniq';\nimport {Cookie} from \"ievv_jsbase/Cookie\";\n\nnew MyClass();\nconsole.log('unique test:', unique([1, 1, 2])... | javascript | chosen |
[
{
"from": "system",
"value": "Move invoice link template from UI to API config [WAL-2443]\n"
},
{
"from": "human",
"value": "// @ngInject\nexport default function invoicesService(baseServiceClass, $http, ENV, $state) {\n let ServiceClass = baseServiceClass.extend({\n init:function() {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Remove Futura from welcome component\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport {\n Image,\n StyleSheet,\n Text,\n View,\n} from 'react-native';\n\nexport default class Welcome extends React.Component {\n\n\n render() {\n return (\... | javascript | chosen |
[
{
"from": "system",
"value": "Fix LCD display of the first line.\n"
},
{
"from": "human",
"value": "\"use strict\";\n\nconst env = require('../../env');\n\nif (env.lcd.enable) {\n\tlet Lcd;\n\tif (env.inDevMode) {\n\t\tLcd = require('gpio-peripherals-test').lcd;\n\t} else {\n\t\tLcd = require('l... | javascript | chosen |
[
{
"from": "system",
"value": "Remove unnecessary redirect in NotesController.\n"
},
{
"from": "human",
"value": "(function() {\n angular.module('notely.notes', [\n 'ui.router'\n ])\n .controller('NotesController', NotesController)\n .config(notesConfig);\n\n notesConfig['$inject'] = ['$s... | javascript | chosen |
[
{
"from": "system",
"value": "Make open assets command trackable\n"
},
{
"from": "human",
"value": "module.exports = {\n run(editor, sender, opts = {}) {\n const modal = editor.Modal;\n const am = editor.AssetManager;\n const config = am.getConfig();\n const amContainer = am.getCont... | javascript | chosen |
[
{
"from": "system",
"value": "Fix the missing key-s warning\n"
},
{
"from": "human",
"value": "(function () {\n 'use strict';\n\n var React = require('react'),\n\n clearingItem = function () {\n return React.DOM.div(\n {className: 'star-rating-clear-contain... | javascript | chosen |
[
{
"from": "system",
"value": "Change app config form to be minification safe.\n"
},
{
"from": "human",
"value": "(function () {\n 'use strict';\n\n var $app = angular.module('store', ['ui.router']);\n $app.config(function($stateProvider) {\n $stateProvider\n .state('store', {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Make the relay.fm announcement rule more general\n"
},
{
"from": "human",
"value": "module.exports = function ExcludePodcastAnnouncements(item) {\n if (item.title.indexOf('#') >= 0) {\n if (item.content.indexOf('This week on') >= 0 && item.content.indexOf(... | javascript | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.