conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Update web client swagger test for swagger-ui 2.1.4\n"
},
{
"from": "human",
"value": "function jasmineTests() {\n var jasmineEnv = jasmine.getEnv();\n var consoleReporter = new jasmine.ConsoleReporter();\n window.jasmine_phantom_reporter = consoleReporter;... | javascript | chosen |
[
{
"from": "system",
"value": "Add test for Num method translating a decimal to binary\n"
},
{
"from": "human",
"value": "const chai = require('chai');\nconst assert = chai.assert;\n// const stub = require('./support/stub')\nconst Num = require(\"../lib/num\")\n\n\ndescribe(\"Num\", function(){\n... | javascript | chosen |
[
{
"from": "system",
"value": "Drop files collection after tests\n"
},
{
"from": "human",
"value": "/**\n * @author EmmanuelOlaojo\n * @since 8/13/16\n */\n\nmodule.exports = function(){\n return Promise.all([\n utils.dropCollection(TEST_COLLECTION_A)\n , utils.dropCollection(TEST_COLLECTI... | javascript | chosen |
[
{
"from": "system",
"value": "Determine counter numbers in connect\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport {connect} from 'react-redux';\n\nimport {filterGreetings} from './selectors';\n\nconst Counter = ({greetings, filteredGreetings}) => (\n <div className=\"Co... | javascript | chosen |
[
{
"from": "system",
"value": "Fix issue with js conditional\n\nWas not properly testing if there was any results, causing the js to be\nevaluated on every page.\n"
},
{
"from": "human",
"value": "import \"phoenix_html\"\nimport $ from \"jquery\";\nimport * as BS from \"./battle_snake\"\n\nconst... | javascript | chosen |
[
{
"from": "system",
"value": "Implement Input Validator and Merge Data for Template100 Handler\n"
},
{
"from": "human",
"value": "module.exports = {\n inputValidator: function (fileInfo, callback) {\n\n },\n\n mergeDataWithTemplate: function(data, template, callback) {\n\n }\n} \n"
},
{... | javascript | chosen |
[
{
"from": "system",
"value": "Add additional formatting to error handling.\n"
},
{
"from": "human",
"value": "'use strict';\nconst STATUS_CODES = require('./status-codes');\n\nconst Handlers = {\n allowed(methods) {\n return (req, res) => {\n res.set('Allow', methods);\n res.status... | javascript | chosen |
[
{
"from": "system",
"value": "fix: Disable source-map-support until it is compatible with webpack again\n"
},
{
"from": "human",
"value": "// TODO remove this split between browser & node once the package does it on its own.\n\nimport 'source-map-support/browser-source-map-support';\n\nsourceMap... | javascript | chosen |
[
{
"from": "system",
"value": "Add title for code list selection within single response\n\n"
},
{
"from": "human",
"value": "import React, { PropTypes } from 'react'\nimport CodeListSelector from './code-list-selector'\nimport VisHintPicker from './vis-hint-picker'\n\nimport {\n updateSingle, ne... | javascript | chosen |
[
{
"from": "system",
"value": "ENYO-1948: Fix path to library image asset.\n\nEnyo-DCO-1.1-Signed-off-by: Aaron Tam <aaron.tam@lge.com>\n"
},
{
"from": "human",
"value": "var\n\tkind = require('enyo/kind'),\n\tImg = require('enyo/Image'),\n\tRepeater = require('enyo/Repeater');\n\nvar\n\tDivider ... | javascript | chosen |
[
{
"from": "system",
"value": "Add unregister form action creator\n"
},
{
"from": "human",
"value": "/* @flow */\nimport { Map, fromJS } from 'immutable';\n\nconst REGISTER_FORM = 'redux-example/forms/REGISTER_FORM';\nconst UNREGISTER_FORM = 'redux-example/forms/UNREGISTER_FORM';\nconst UPDATE_FO... | javascript | chosen |
[
{
"from": "system",
"value": "Adjust location model to have default rating of 0\n"
},
{
"from": "human",
"value": "const mongoose = require('mongoose')\nconst { Schema } = mongoose\n\nconst locationSchema = new Schema({\n address: { type: String, unique: true, required: true },\n rating: Numbe... | javascript | chosen |
[
{
"from": "system",
"value": "Set current date and time before starting the interval service\n\n- The interval service does not start immediately, instead it waits the\n configured amount of time before it runs the code that is declared inside\n the callback function.\n"
},
{
"from": "human",
... | javascript | chosen |
[
{
"from": "system",
"value": "Remove the word \"download\" from the thumbnail alt text.\n"
},
{
"from": "human",
"value": "(function() {\n\t\"use strict\";\n\tfunction initPage() {\n\n\t\t// The thumbnail images on the show page are links, but the links aren't correct, so remove the links.\n\t\t... | javascript | chosen |
[
{
"from": "system",
"value": "Fix FSLoader for relative paths\n"
},
{
"from": "human",
"value": "var _ = require('lodash');\nvar fs = require('fs');\nvar path = require('path');\nvar nunjucks = require('nunjucks');\n\n/*\n Nunjucks loader similar to FileSystemLoader, but avoid infinite loopin... | javascript | chosen |
[
{
"from": "system",
"value": "Remove function definition from proof of work recursion\n"
},
{
"from": "human",
"value": "angular.module('GLBrowserCrypto', [])\n.factory('glbcProofOfWork', ['$q', function($q) {\n // proofOfWork return the answer to the proof of work\n // { [challenge string] ->... | javascript | chosen |
[
{
"from": "system",
"value": "Set API endpoint to https\n"
},
{
"from": "human",
"value": "angular.module('config', [])\n.constant('API_URL', 'http://cloakmd.azurewebsites.net/api');"
},
{
"from": "gpt",
"value": "angular.module('config', [])\n.constant('API_URL', 'https://cloakmd.az... | javascript | chosen |
[
{
"from": "system",
"value": "Clear results before loading new results\n"
},
{
"from": "human",
"value": "$(document).ready(function() {\n\n $('.search').on('click', function() {\n $.post( '/grant_gateway/search', $('#search-form').serialize(), function(data) {\n for (var i = 0; i < dat... | javascript | chosen |
[
{
"from": "system",
"value": "Add the ability to specify a tag"
},
{
"from": "human",
"value": "// MIT license, see: https://github.com/tjcrowder/simple-snippets-console/blob/master/LICENSE\nvar snippet = {\n version: \"1.0\",\n\n // Writes out the given text in a monospaced paragraph tag,... | javascript | chosen |
[
{
"from": "system",
"value": "Fix build error on node v4\n"
},
{
"from": "human",
"value": "const chai = require('chai')\nconst chaiAsPromised = require('chai-as-promised')\nconst td = require('testdouble')\nconst tdChai = require('testdouble-chai')\n\nchai.use(chaiAsPromised)\nchai.use(tdChai(t... | javascript | chosen |
[
{
"from": "system",
"value": "Add cors headers to dev server responses\n"
},
{
"from": "human",
"value": "const path = require('path');\n\nmodule.exports = {\n entry: [\n path.resolve(process.cwd(), 'src/theme/assets/main-critical.js'),\n path.resolve(process.cwd(), 'src/theme/a... | javascript | chosen |
[
{
"from": "system",
"value": "feat: Change the default value for format\n"
},
{
"from": "human",
"value": "const path = require('path')\nconst pkgConf = require('pkg-conf')\nconst { validate } = require('jest-validate')\n\nfunction replaceRootDir (conf, rootDir) {\n const replace = s => s.repla... | javascript | chosen |
[
{
"from": "system",
"value": "Change clickableimage to allow it to take styles when a new component is called elsewhere\n"
},
{
"from": "human",
"value": "import React, { Component } from 'react';\nimport { TouchableOpacity, Image, View } from 'react-native';\nimport styles from './styles/Clicka... | javascript | chosen |
[
{
"from": "system",
"value": "Add redirect after successful login\n"
},
{
"from": "human",
"value": "/**\n *\n * Meet-Up Event Planner\n * Copyright 2015 Justin Varghese John All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use th... | javascript | chosen |
[
{
"from": "system",
"value": "Update to allow the url to be passed into a constructor for the service (the service returns a constructor).\n"
},
{
"from": "human",
"value": "/*\n * Copyright: 2012, V. Glenn Tarcea\n * MIT License Applies\n */\n\nangular.module('AngularStomp', []).\n factory('... | javascript | chosen |
[
{
"from": "system",
"value": "Tidy up check for Site Kit global.\n"
},
{
"from": "human",
"value": "/**\n * This file is intended to detect active ad blocker.\n *\n * Ad blockers block URLs containing the word \"ads\" including this file.\n * If the file does load, `googlesitekit.canAdsRun` is s... | javascript | chosen |
[
{
"from": "system",
"value": ":art: Create untested (so far) task spy\n"
},
{
"from": "human",
"value": "// Copyright (c) 2017 The Regents of the University of Michigan.\n// All Rights Reserved. Licensed according to the terms of the Revised\n// BSD License. See LICENSE.txt for details.\n\nconst... | javascript | chosen |
[
{
"from": "system",
"value": "Make it easier to change the default Grunt task\n"
},
{
"from": "human",
"value": "// Configuration\nmodule.exports = function(grunt) {\n // Initialize config\n grunt.initConfig({\n pkg: grunt.file.readJSON('package.json'),\n });\n\n // Load requi... | javascript | chosen |
[
{
"from": "system",
"value": "Copy built package to QA Folder\n"
},
{
"from": "human",
"value": "module.exports = function(grunt) {\n grunt.initConfig({\n movePackageTo: process.env[\"JOB_NAME\"] ? \"\\\\\\\\telerik.com\\\\Resources\\\\BlackDragon\\\\Builds\\\\appbuilder-sublime-packag... | javascript | chosen |
[
{
"from": "system",
"value": "Change sample url so image is actually Klay Thompson lol\n"
},
{
"from": "human",
"value": "//http://stats.nba.com/media/players/230x185/201939.png\n\nmodule.exports = (dispatch) => {\n dispatch({type: 'RECEIVE_PLAYER_INFO', payload: {\n name: \"Klay Thompson\",... | javascript | chosen |
[
{
"from": "system",
"value": "Remove unnecessary call to loadTasks.\n"
},
{
"from": "human",
"value": "/*\n * grunt-check-pages\n * https://github.com/DavidAnson/grunt-check-pages\n *\n * Copyright (c) 2014 David Anson\n * Licensed under the MIT license.\n */\n\n'use strict';\n\nmodule.exports =... | javascript | chosen |
[
{
"from": "system",
"value": "Move form creation to containers for new project\n"
},
{
"from": "human",
"value": "const React = require('react');\nconst ReactRedux = require('react-redux');\nconst ReduxForm = require('redux-form');\nconst selectors = require('@state/selectors');\n\nconst selecto... | javascript | chosen |
[
{
"from": "system",
"value": "Change to id from className"
},
{
"from": "human",
"value": "import * as React from \"react\";\nimport {BuildSnapshot} from \"./BuildSnapshot\";\n\n/**\n * Container Component for BuildSnapshots.\n * \n * @param {*} props input property containing an array of build ... | javascript | chosen |
[
{
"from": "system",
"value": "Update to handle when response isnt json\n"
},
{
"from": "human",
"value": "/* istanbul ignore file */\nconst http = require('http')\n\nmodule.exports = function httpRequest(body) {\n return new Promise((resolve, reject) => {\n const request = http.request(\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix a multiple execution in event handlers\n\nAs a bonus, also bind to the context, even if not used, to allow\r\nthe handler to be unbound using the context too."
},
{
"from": "human",
"value": "(function(Backbone) {\n\n _.extend(Backbone.Events, {\n\n // Bind ... | javascript | chosen |
[
{
"from": "system",
"value": "Make input wider and spaced out more\n"
},
{
"from": "human",
"value": "import React from 'react';\n\nexport default class AddTodoForm extends React.Component {\n static propTypes = {\n onSubmit: React.PropTypes.func.isRequired\n }\n\n render() {\n return (... | javascript | chosen |
[
{
"from": "system",
"value": "Add actual image rather than link to travis\n"
},
{
"from": "human",
"value": "// https://github.com/json-schema/JSON-Schema-Test-Suite/blob/develop/tests/draft4/required.json\nvar scenerios = [\n {\n \"description\": \"required validation\",\n \"sc... | javascript | chosen |
[
{
"from": "system",
"value": "Remove line break in tweets\n"
},
{
"from": "human",
"value": "'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n var Twit = Npm.require('twit');\n var twitter = new Twit({\n consumer_key: process.env.TWIT_KEY,\n consumer_secret: ... | javascript | chosen |
[
{
"from": "system",
"value": "Remove order prop from sort\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport { sort } from 'sajari';\n\nimport Base from './Base.js';\nimport Components from '../constants/QueryComponentConstants.js';\n\nconst Sort = props => {\n const { field,... | javascript | chosen |
[
{
"from": "system",
"value": "Fix bug: gulp not failing on lint error\n\nWithout piping the results to the 'fail' reporter inside gulp the build\nwon't fail if an error is introduced.\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar gulp = require('gulp');\nvar jshint = require('gulp-jshi... | javascript | chosen |
[
{
"from": "system",
"value": "Remove @updateURL to not override alternate hosted version.\n\nIt wasn't even being used correctly. Blame the original Userscripts\nwebsite tutorial.\n"
},
{
"from": "human",
"value": "// ==UserScript==\n// @name TPP Touchscreen Input Assist\n// @namespace ... | javascript | chosen |
[
{
"from": "system",
"value": "Add test of defining a signal with a return type.\n\nsvn path=/trunk/; revision=233\n"
},
{
"from": "human",
"value": "#!/usr/bin/env seed\n// Returns: 0\n// STDIN:\n// STDOUT:2 Weathermen\n// STDERR:\n\nSeed.import_namespace(\"GObject\");\nSeed.import_namespace(\"G... | javascript | chosen |
[
{
"from": "system",
"value": "Remove npm from config (enabled by default)\n"
},
{
"from": "human",
"value": "exports.config = {\n npm: {\n enabled: true\n },\n\n files: {\n javascripts: {\n joinTo: 'app.js'\n },\n stylesheets: {\n joinTo: {\n 'app.css': /^app\\/st... | javascript | chosen |
[
{
"from": "system",
"value": "Create new method for logging in\n"
},
{
"from": "human",
"value": "// Copyright 2019 Google LLC\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy ... | javascript | chosen |
[
{
"from": "system",
"value": "Change to use /stats instead of /results\n"
},
{
"from": "human",
"value": "import { PROD_PROJECT_ID } from '../secrets';\n\nexport const OPTIMIZELY_BASE_URL = 'https://www.optimizelyapis.com/experiment/v1/';\n\nexport const PROJECTS_URL = `${OPTIMIZELY_BASE_URL}pro... | javascript | chosen |
[
{
"from": "system",
"value": "Remove a console log statement, so tests run without extraneous logging\n"
},
{
"from": "human",
"value": "define ([\"lib/lodash\", \"lib/Handlebars\", \"src/skinner/core/keypath\"], function (_, Handlebars, keyPath) {\n \"use strict\";\n\n function resolveDat... | javascript | chosen |
[
{
"from": "system",
"value": "Add callback version of pagination.\n"
},
{
"from": "human",
"value": "// TODO\n"
},
{
"from": "gpt",
"value": "function displayPage(results) {\n $('#results tbody').empty();\n\n for (let row of results) {\n let tr = $('<tr />');\n fo... | javascript | chosen |
[
{
"from": "system",
"value": "Fix CI for node 6\n\nSummary:\nThis file is executed without transforms so we can't have trailing commas in function calls until we drop node 6.\nCloses https://github.com/facebook/relay/pull/2424\n\nDifferential Revision: D7754622\n\nPulled By: kassens\n\nfbshipit-source-id: a... | javascript | chosen |
[
{
"from": "system",
"value": "Fix issue with forward button at Yandex.Radio\n"
},
{
"from": "human",
"value": "var playTarget = '.player-controls__play';\nvar nextTarget = '.button_round';\n\nfunction onKeyPress(key) {\n if (key === NEXT) {\n var cards = document.querySelectorAll('.sli... | javascript | chosen |
[
{
"from": "system",
"value": "Add branch and state check on CD server.\n"
},
{
"from": "human",
"value": "// Continuous delivery server\nconst { spawn } = require('child_process')\nconst { resolve } = require('path')\nconst { createServer } = require('http')\nconst { urlencoded } = require('body... | javascript | chosen |
[
{
"from": "system",
"value": "Use textContent instead of innerText\n"
},
{
"from": "human",
"value": "(function _bindPlanEvents () {\n 'use strict';\n\n function getPlanContext (element)\n {\n var context = element.parentElement;\n if ('BODY' === context.tagName)\n {\n return nu... | javascript | chosen |
[
{
"from": "system",
"value": "Make valid schema types and validator error type configurable\n"
},
{
"from": "human",
"value": "/**\n * @param {mongoose.Schema} schema\n * @param {?Object=} options\n */\nmodule.exports = exports = function constantPlugin(schema, options) {\n var validSchemaTyp... | javascript | chosen |
[
{
"from": "system",
"value": "Set default roles only if user has no roles\n"
},
{
"from": "human",
"value": "/**\n * Sets the default permissions to new users\n */\nMeteor.users.after.insert(function (userId, doc) {\n var userId = doc._id;\n\n if (orion.adminExists) {\n // if there is a adm... | javascript | chosen |
[
{
"from": "system",
"value": "Fix split/join and move functions so they can refer to recipient var.\n"
},
{
"from": "human",
"value": "var l10n_file = __dirname + '/../l10n/commands/tell.yml';\nvar l10n = require('../src/l10n')(l10n_file);\nvar CommandUtil = require('../src/command_util').Comman... | javascript | chosen |
[
{
"from": "system",
"value": "Fix conditional for recipient name/playername\n"
},
{
"from": "human",
"value": "var l10n_file = __dirname + '/../l10n/commands/tell.yml';\nvar l10n = require('../src/l10n')(l10n_file);\nvar CommandUtil = require('../src/command_util').CommandUtil;\nexports.command ... | javascript | chosen |
[
{
"from": "system",
"value": "Secure updates on BlogPost collection\n"
},
{
"from": "human",
"value": "\nBlogPosts.allow({\n\n insert: Utils.constant(true),\n\n remove: Utils.constant(true),\n\n update: Utils.constant(true),\n});\n"
},
{
"from": "gpt",
"value": "\nBlogPosts.allow(... | javascript | chosen |
[
{
"from": "system",
"value": "Add default value for period of dump.\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst rethinkDB = require('rethinkdb');\nconst program = require('commander');\n\nconst UserDB = require('./UserDB');\nconst metrics = require('./metrics');\n\n\nprogram\n .ve... | javascript | chosen |
[
{
"from": "system",
"value": "Fix incorrect Javascript for changing Share API settings\n"
},
{
"from": "human",
"value": "$(document).ready(function(){\n\t$('#loglevel').change(function(){\n\t\t$.post(OC.filePath('settings','ajax','setloglevel.php'), { level: $(this).val() },function(){\n\t\t\tO... | javascript | chosen |
[
{
"from": "system",
"value": "Check whether read file is actually a file, and if it's not too big.\n"
},
{
"from": "human",
"value": "var fs = require('fs'),\n expandHomeDir = require('expand-home-dir'),\n async = require('async')\n ;\n\nfunction readFile(fileLocation, cb) {\n fs.rea... | javascript | chosen |
[
{
"from": "system",
"value": "Use Mobile Network module to fetch network statuses data"
},
{
"from": "human",
"value": "/* jshint node: true */\n/**\n * Wake Up Platform\n * (c) Telefonica Digital, 2014 - All rights reserved\n * License: GNU Affero V3 (see LICENSE file)\n * Fernando Rodríguez Se... | javascript | chosen |
[
{
"from": "system",
"value": "Fix module for NodeJS - apped_dir_name\n"
},
{
"from": "human",
"value": "var fs = require('fs');\nvar vm = require('vm');\nvar includeInThisContext = function(path) {\n var code = fs.readFileSync(path);\n vm.runInThisContext(code, path);\n}.bind(this);\ninclu... | javascript | chosen |
[
{
"from": "system",
"value": "Refactor bind_to spec to better performance"
},
{
"from": "human",
"value": "var vows = require('vows')\n, assert = require('assert')\n, Glue = require(__dirname + \"/../lib/glue\");\n\nvar suite = vows.describe('bindTo')\n\nsuite.addBatch({\n \"ensures\":... | javascript | chosen |
[
{
"from": "system",
"value": "FIx the typo of showMonthlyIncomesAmount\n"
},
{
"from": "human",
"value": "import { get } from 'lodash';\n\nimport { calculateCurrentEvents } from '../../lib/events';\nimport { getEbudgie } from './ebudgie';\n\nexport const showMontlyIncomesAmount = async (page_sco... | javascript | chosen |
[
{
"from": "system",
"value": "Throw error returned from DAGNode.create in access controller\n"
},
{
"from": "human",
"value": "'use strict'\n\nconst AccessController = require('./access-controller')\nconst { DAGNode } = require('ipld-dag-pb')\n\n\nclass IPFSAccessController extends AccessControl... | javascript | chosen |
[
{
"from": "system",
"value": "Remove admin privilege from users model for security\n"
},
{
"from": "human",
"value": "import mongoose, { Schema } from 'mongoose';\n\nconst userSchema = new Schema({\n first_name: { type: String, required: true },\n last_name: { type: String, required: true ... | javascript | chosen |
[
{
"from": "system",
"value": "Add missing 'format' key in the bit.ly API request.\n\nBit.ly have recently made a change on their side to ignore the jsonp callback argument\nif format=json was not specified, and that made our requests fail.\n"
},
{
"from": "human",
"value": "import fetchJsonP fro... | javascript | chosen |
[
{
"from": "system",
"value": "Remove pointer events from bookmark symbol\n"
},
{
"from": "human",
"value": "import styled from 'styled-components';\n\nexport const Save = styled.div`\n align-items: center;\n display: flex;\n flex-direction: row;\n justify-content: center;\n padding: 8px;\n\... | javascript | chosen |
[
{
"from": "system",
"value": "Remove projects data from API\n"
},
{
"from": "human",
"value": "const router = require('express').Router() // eslint-disable-line new-cap\n\nconst website = require('../data/website')\n\n/* GET API */\nrouter.get('/api', (req, res) => {\n res.json(website)\n})\n\n... | javascript | chosen |
[
{
"from": "system",
"value": "Add authentication controller to handle user authentication\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst userCtr = require('./../controllers/users.js');\nconst authentication = require('./../middleware/authentication');\nconst authorisation = require('... | javascript | chosen |
[
{
"from": "system",
"value": "Remove makeBoundHelper in favor of helper.\n"
},
{
"from": "human",
"value": "import Ember from 'ember';\nimport { elem, mod } from 'ember-cli-bem/mixins/bem';\n\nconst {\n HTMLBars: { makeBoundHelper },\n} = Ember;\n\nconst BLOCK_KEY = 'blockName';\n\nexport defau... | javascript | chosen |
[
{
"from": "system",
"value": "Add couple of simple queue access methods\n"
},
{
"from": "human",
"value": "var azure = require(\"azure-storage\");\n//\nvar nconf = require(\"nconf\");\nnconf.env()\n .file({\n file: \"config.json\",\n search: true\n });\nvar storageName = nconf.get(\"Stor... | javascript | chosen |
[
{
"from": "system",
"value": "Add the location of a conf file in main route\n"
},
{
"from": "human",
"value": "\"use strict\";\n\nangular.module('arethusa.core').constant('MAIN_ROUTE', {\n controller: 'MainCtrl',\n template: '<div ng-include=\"template\"></div>',\n resolve: {\n loadConfigu... | javascript | chosen |
[
{
"from": "system",
"value": "Add user tools closing by click\n"
},
{
"from": "human",
"value": "var $ = require('jquery');\n\nvar UserToolsUpdater = function($usertools) {\n this.$usertools = $usertools;\n};\n\nUserToolsUpdater.prototype = {\n updateUserTools: function($usertools) {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix typo at RSS bit\n"
},
{
"from": "human",
"value": "'use strict';\nvar moment = require('moment');\nvar _ = require('lodash');\n\nvar config = require('../config');\nvar paths = require('../elements/PathsMixin');\n\n\nmodule.exports = function(page) {\n return t... | javascript | chosen |
[
{
"from": "system",
"value": "Update the RB.APIToken resource to use a defaults function\n\nThis change updates the `RB.APIToken` resource to use the new\n`defaults` function that all other resources are using.\n\nTesting Done:\nRan JS tests.\n\nReviewed at https://reviews.reviewboard.org/r/7394/\n"
},
... | javascript | chosen |
[
{
"from": "system",
"value": "Add noexpand to individual overview\n"
},
{
"from": "human",
"value": "const knex = require('../../../knex').web\n\nmodule.exports = function (id) {\n return knex('individual_case_overview')\n .first('grade_code AS grade',\n 'team_id AS teamId',\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Make sure Essential information is not double tracked\n"
},
{
"from": "human",
"value": "require([ \"jquery\", \"lib/analytics/analytics\" ], function($, Analytics) {\n\n \"use strict\";\n\n var analytics = new Analytics();\n\n analytics.trackView();\n\n // Set ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix missing comma in tabular data preview\n"
},
{
"from": "human",
"value": "chorus.dialogs.TabularDataPreview = chorus.dialogs.Base.extend({\n constructorName: \"TabularDataPreview\",\n\n templateName: 'tabular_data_preview',\n title: function() {return t(... | javascript | chosen |
[
{
"from": "system",
"value": "Update test to match new markup\n"
},
{
"from": "human",
"value": "import nock from 'nock'\nimport req from 'supertest'\nimport test from 'tape'\nimport server from '../../server'\n\nnock('http://www.newyorker.com')\n .get('/')\n .replyWithFile(200, './test/fixtur... | javascript | chosen |
[
{
"from": "system",
"value": "Use React from root project to avoid duplicate React problem\n"
},
{
"from": "human",
"value": "var path = require('path');\nvar webpack = require('webpack');\n\nmodule.exports = {\n devtool: 'eval',\n entry: [\n 'webpack-dev-server/client?http://localhost:3000... | javascript | chosen |
[
{
"from": "system",
"value": "Throw error if iterator advances if delay is pending\n"
},
{
"from": "human",
"value": "function* chunkify(start, final, chunk, delay) {\n for (let index = start; index < final; index++) {\n if ((index > start) && (index % (start + chunk) === 0)) {\n yield ... | javascript | chosen |
[
{
"from": "system",
"value": "Update Demo Translations for echo change\n"
},
{
"from": "human",
"value": "define(\n 'ephox.snooker.demo.DemoTranslations',\n\n [\n 'global!Array'\n ],\n\n function (Array) {\n var keys = {\n 'table.picker.rows': '{0} high',\n 'table.picker.cols... | javascript | chosen |
[
{
"from": "system",
"value": "chore(tests): Disable path fallback test on windows\n"
},
{
"from": "human",
"value": "import { expect } from 'chai';\nimport { remote } from 'electron';\nimport {\n defaultPathFallback,\n cwdKernelFallback\n} from '../../src/notebook/path';\n\ndescribe('defaultPa... | javascript | chosen |
[
{
"from": "system",
"value": "Use comments to build the assertion name\n"
},
{
"from": "human",
"value": "import {\n TAP_ASSERT_DONE,\n TAP_PLAN\n} from '../actions'\n\nconst initialState = {\n assertions: {},\n currentCount: 0,\n nextEstimatedCount: 0,\n plan: undefined\n}\n\nexport defau... | javascript | chosen |
[
{
"from": "system",
"value": "Put right relative path to 'utils.js'\n"
},
{
"from": "human",
"value": "var utils = require(\"bolt-internal-utils\");\n\nmodule.exports = {\n testStringStartsWith: function(test) {\n test.equal(utils.String.startsWith(\"characters\", \"c\"), true, \"Expecting \... | javascript | chosen |
[
{
"from": "system",
"value": "Add scale to 200% table output\n"
},
{
"from": "human",
"value": "$(\"#saveAsFile\").click(function() {\n html2canvas($(\"#course-table\")).then(function(canvas) {\n var bgcanvas = document.createElement(\"canvas\");\n bgcanvas.width = canvas.width;\n bgca... | javascript | chosen |
[
{
"from": "system",
"value": "Make tests run in all versions of Ember from 2.4 LTS onwards"
},
{
"from": "human",
"value": "import Ember from 'ember';\nimport Application from '../../app';\nimport config from '../../config/environment';\n\nexport default function startApp(attrs) {\n let applica... | javascript | chosen |
[
{
"from": "system",
"value": "Fix possible EventEmitter memory leak console statement\n"
},
{
"from": "human",
"value": "import {assert} from 'chai'\nimport {uniq} from 'lodash'\nimport URI from 'urijs'\nimport request from 'request'\nimport events from 'utils/eventsDirectoryToSlideArray'\n\ndes... | javascript | chosen |
[
{
"from": "system",
"value": "Add initial form submit function\n"
},
{
"from": "human",
"value": "/**\n * This <server-gardu-reporter> project created by :\n * Name : syafiq\n * Date / Time : 28 June 2017, 11:03 PM.\n * Email : syafiq.rezpector@gmail.com\n * Github : syafiq... | javascript | chosen |
[
{
"from": "system",
"value": "addFieldsDict: Add all at once so multi-part fields work\n"
},
{
"from": "human",
"value": "import Users from 'meteor/vulcan:users';\n\nexport const generateIdResolverSingle = ({collectionName, fieldName}) => {\n return async (doc, args, context) => {\n if (!doc... | javascript | chosen |
[
{
"from": "system",
"value": "[DASH-2376] Add some selectors in order to not crash other tests\n"
},
{
"from": "human",
"value": "export default {\n elements: {\n classTableRows: {\n selector: '//div[@class=\"classes-list\"]/div[2]/div',\n locateStrategy: 'xpath'\n }\n }\n};\n"... | javascript | chosen |
[
{
"from": "system",
"value": "Fix some curious issue on SQL Record insertion\n"
},
{
"from": "human",
"value": "'use strict';\nmodule.exports = {\n up: function(queryInterface, Sequelize) {\n return queryInterface.createTable('dns_records', {\n id: {\n allowNull: false,\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add an error call back param\n\nThis allows you to set an onError callback function in case the map doesn't load correctly."
},
{
"from": "human",
"value": "export const GoogleApi = function(opts) {\n opts = opts || {};\n\n if (!opts.hasOwnProperty('apiKey')) {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "LB-421: Create embed theme for STT\n\nfixed dust utf decode.\n"
},
{
"from": "human",
"value": "define(['utils/utf8'],function(utf8){\r\tstr = function(str){\r\t\tthis.init(str);\r\t}\r\tstr.prototype = {\r\t\tinit: function(str) {\r\t\t\tthis.str = str;\r\t\t},\t\r... | javascript | chosen |
[
{
"from": "system",
"value": "chore(web): Add prefix setting to Tailwind\n"
},
{
"from": "human",
"value": "module.exports = {\n purge: [],\n darkMode: false, // or 'media' or 'class'\n theme: {\n extend: {},\n },\n variants: {\n extend: {},\n },\n plugins: [],\n}\n"
},
{
"f... | javascript | chosen |
[
{
"from": "system",
"value": "Add support for fermenter-iteration attribute.\n"
},
{
"from": "human",
"value": "import { Record } from 'immutable';\n\nexport default Record({\n createdAt: null,\n temperature: null,\n humidity: null,\n isValid: false,\n errors: 0,\n});\n"
},
{
"from"... | javascript | chosen |
[
{
"from": "system",
"value": "Fix ‘created_at’ and ‘updated_at’ values in data objects table\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport Moment from 'moment';\n\nconst DataObjectsTableDateCell = ({ content }) => {\n const dateValue = content.value;\n const date = Mome... | javascript | chosen |
[
{
"from": "system",
"value": "Add support for custom eventId\n"
},
{
"from": "human",
"value": "var assert = require('assert');\nvar uuid = require('uuid');\n\nmodule.exports = {\n NewEvent: function(eventType, data, metadata) {\n assert(eventType);\n assert(data);\n\n va... | javascript | chosen |
[
{
"from": "system",
"value": "Update path for local development\n"
},
{
"from": "human",
"value": "// ==UserScript==\n// @author Robert Slifka (GitHub @rslifka)\n// @connect docs.google.com\n// @connect rslifka.github.io\n// @copyright 2017-2018, Robert Slifka (https://github.com/... | javascript | chosen |
[
{
"from": "system",
"value": "Fix problem launching app with webpack\n"
},
{
"from": "human",
"value": "/**\n * Base webpack config used across other specific configs\n */\n\nconst path = require('path');\nconst validate = require('webpack-validator');\n\nconst config = validate({\n entry: [\n ... | javascript | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.