conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Add Allocation Graph to Instance Details\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport SelectMenu from 'components/common/ui/SelectMenu.react';\nimport stores from 'stores';\n\nexport default React.createClass({\n\n // We probably won't ke... | javascript | chosen |
[
{
"from": "system",
"value": "Fix bug with broken receiving of values.\n"
},
{
"from": "human",
"value": "import React, { PropTypes } from 'react';\nimport styles from 'styles/Input';\n\nclass Input extends React.Component {\n constructor(props) {\n super(props);\n\n this.state = {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Use js instead of moment to parse date to avoid warning\n"
},
{
"from": "human",
"value": "// Generated by CoffeeScript 1.4.0\n(function() {\n var $;\n\n $ = jQuery;\n\n $(function() {});\n\n if ($('th.default-sort').data()) {\n $('table.sortable').tablesort(... | javascript | chosen |
[
{
"from": "system",
"value": "Use an atomic update operation\n"
},
{
"from": "human",
"value": "// TODO: should the baseScore be stored, and updated at vote time?\n\n// This interface should change and become more OO, this'll do for now\nvar Scoring = {\n // re-run the scoring algorithm on a si... | javascript | chosen |
[
{
"from": "system",
"value": "Watch DOMNodeInserted to catch AJAX updates\n"
},
{
"from": "human",
"value": "HTMLCollection.prototype.eltEach = function(f) {\n for (var i = 0; i < this.length; i++) f(this[i]);\n}\n\n/* Just create a ton of closures. The background script will only hold on\n *... | javascript | chosen |
[
{
"from": "system",
"value": "Rename required var to match convention\n"
},
{
"from": "human",
"value": "/*\nCopyright 2015 OpenMarket Ltd\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy... | javascript | chosen |
[
{
"from": "system",
"value": "Add test for head change to e2e tree spec\n"
},
{
"from": "human",
"value": "\"use strict\";\n\ndescribe('Dependency tree', function(){\n beforeEach(function() {\n browser.get('/app/#/staging2?doc=1&s=1');\n });\n\n describe('Sentence 1', function() {\n bef... | javascript | chosen |
[
{
"from": "system",
"value": "Update test to use await.\n"
},
{
"from": "human",
"value": "import ghost from 'ghostjs'\nimport assert from 'assert'\n\nimport localServer from './fixtures/server.js'\n\ndescribe('ghost#usePage', () => {\n\n before(localServer)\n after(localServer.stop)\n\n it('... | javascript | chosen |
[
{
"from": "system",
"value": "Trim width of toggle icon column\n"
},
{
"from": "human",
"value": "\n$(document).ready(function() {\n\n var container = document.getElementById(\"queue\");\n\n\n function plusRenderer (instance, td, row, col, prop, value, cellProperties) {\n\n var plusIcon =\n... | javascript | chosen |
[
{
"from": "system",
"value": "Add support for session only cookies\n"
},
{
"from": "human",
"value": "// Args\nexports.required = ['jar'];\n\n// Define\nexports.func = function (args) {\n var cookies = args.jar.getCookies('https://www.roblox.com');\n for (var key in cookies) {\n if (cookies... | javascript | chosen |
[
{
"from": "system",
"value": "Document usage of query string for seeding random number generator\n"
},
{
"from": "human",
"value": "/*global window */\nimport BitFlux from './bitflux';\n\nvar seed = window.location.search.split('seed=')[1];\nif (seed) {\n Math.seedrandom(seed);\n}\n\nBitFlux.... | javascript | chosen |
[
{
"from": "system",
"value": "Remove trailing slash in public path to allow consistent output directory format\n"
},
{
"from": "human",
"value": "const mix = require('laravel-mix')\nconst tailwind = require('./../lib/index.js')\nconst config = require('./tailwind.js')\nconst fs = require('fs')\n... | javascript | chosen |
[
{
"from": "system",
"value": "Validate on changing from Total to Valuation/Valuation&Total when add_deduct_tax is 'Deduct'\n"
},
{
"from": "human",
"value": "// Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors\n// License: GNU General Public License v3. See license.txt\n\ncur_f... | javascript | chosen |
[
{
"from": "system",
"value": "Fix tracks for the Album model\n"
},
{
"from": "human",
"value": "define(function(require, exports, module) {\n var uuid = require(\"lib/uuid\");\n\n function Album(options) {\n this.id = options.id || options._id;\n this._id = options.id || options._... | javascript | chosen |
[
{
"from": "system",
"value": "Convert wrapper to component where object subscriptions can be handled.\n"
},
{
"from": "human",
"value": "\nimport React, { PropTypes } from 'react';\n\nconst AppWrapper = (props) => (\n <div>\n {props.children}\n </div>\n);\n\nAppWrapper.propTypes = {\n chil... | javascript | chosen |
[
{
"from": "system",
"value": "Align load more button style\n"
},
{
"from": "human",
"value": "import IconAdd from 'react-icons/lib/md/add-circle'\nimport React from 'react'\n\nimport Stats from '../Stats'\nimport Hit from '../Hit'\n\nimport './style.scss'\n\nfunction renderHasMore (refine, searc... | javascript | chosen |
[
{
"from": "system",
"value": "Use RTS URL passed through\n"
},
{
"from": "human",
"value": "/*\nCopyright 2016 OpenMarket Ltd\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the Licen... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"coding style\" - gulp config is not ES6\n\nThis reverts commit 3073fbb0c140b641122eb6b641e788895e281061.\n"
},
{
"from": "human",
"value": "var path = require('path');\nvar del = require('del');\n\nvar DISTRIBUTION_DIRECTORY = \"lib\";\n\n/**\n * Gets a pat... | javascript | chosen |
[
{
"from": "system",
"value": "FavoriteButton: Use {...}-empty instead of -outline\n\nThis suffix was changed, and otherwise produces an error.\n\nSigned-off-by: Kristofer Rye <1ed31cfd0b53bc3d1689a6fee6dbfc9507dffd22@gmail.com>\nTested-by: Kristofer Rye <1ed31cfd0b53bc3d1689a6fee6dbfc9507dffd22@gmail.com>\n... | javascript | chosen |
[
{
"from": "system",
"value": "Save page location when annotating.\n"
},
{
"from": "human",
"value": "import Axios from 'axios';\n\nexport function request (url, method, data = {}, options = {scroll: true}) {\n let promise = Axios.post(url, data, {\n headers: {\n 'X-HTTP-Method-Ove... | javascript | chosen |
[
{
"from": "system",
"value": "Add build_lint to the lint task\n"
},
{
"from": "human",
"value": "module.exports = function(grunt) {\n grunt.registerTask('sniff', ['jscs:main']);\n grunt.registerTask('lint', ['jshint', 'jscs:main', 'y_u_no_bundle']);\n grunt.registerTask('test', ['lint', 'karm... | javascript | chosen |
[
{
"from": "system",
"value": "Fix tests (use src dir)\n"
},
{
"from": "human",
"value": "const renderer = require('../renderer')\n\ndescribe ('Renderer', () => {\n var loadContentCallback\n\n beforeEach(() => {\n loadContentCallback = jasmine.createSpy('loadContentCallback')\n })\n\n it('... | javascript | chosen |
[
{
"from": "system",
"value": "Update Nuclear version in about screen\n"
},
{
"from": "human",
"value": "import hass from '../util/home-assistant-js-instance';\n\nimport Polymer from '../polymer';\nimport nuclearObserver from '../util/bound-nuclear-behavior';\n\nrequire('./partial-base');\n\ncons... | javascript | chosen |
[
{
"from": "system",
"value": "Add automatic upgrade portal url from http to https where appropriate\n\nAdding an upgrade of portal urls from http to https in the url\nvalidation check whenever the hosting ArcGIS Online Assistant is hosted\non https.\n"
},
{
"from": "human",
"value": "define([\"j... | javascript | chosen |
[
{
"from": "system",
"value": "Load main JSOM Scripts under one label\n"
},
{
"from": "human",
"value": "angular\n .module('ngSharepoint', [])\n .run(['$sp', '$spLoader', function($sp, $spLoader) {\n if ($sp.getAutoload()) {\n if ($sp.getConnectionMode() === 'JSOM') {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix old Safari by using `dispatchEvent` from `Element` rather than `EventTarget`.\n"
},
{
"from": "human",
"value": "/**\n@license\nCopyright (c) 2016 The Polymer Project Authors. All rights reserved.\nThis code may only be used under the BSD style license found at ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix store app bar text not visible issue\n"
},
{
"from": "human",
"value": "var Configurations = {\n /* Blue themed palette */\n palette: {\n primary: {\n main: '#3F51B5'\n },\n secondary: {\n main: '#1565C0'\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add circle and rounded rectangle.\n"
},
{
"from": "human",
"value": "// Create a Paper.js Path to draw a line into it:\nvar path = new Path();\n// Give the stroke a color\npath.strokeColor = 'black';\nvar start = new Point(100, 100);\n// Move to start and draw a lin... | javascript | chosen |
[
{
"from": "system",
"value": "Update shim for invoking CoffeeScript compiler to work with 1.7.1\n"
},
{
"from": "human",
"value": "// Compiles CoffeeScript source to JavaScript.\n//\n// input - string containing contents of the file\n// filename - name of file, used to report errors\n//\n// Retu... | javascript | chosen |
[
{
"from": "system",
"value": "Handle error message case on product create front end\n"
},
{
"from": "human",
"value": "app.controller('indexController', ['$scope', '$http', function($scope, $http){\n\n $scope.currency = 'USD';\n $scope.codes = currencyCodes;\n\n $scope.handleCodeChange ... | javascript | chosen |
[
{
"from": "system",
"value": "Update dist directory according to Angular update.\n"
},
{
"from": "human",
"value": "module.exports.serverCredentials = {\n host: 'host',\n port: 1234,\n username: 'username',\n password: 'password'\n};\nmodule.exports.localDirectory = './dist/';\nmodule.export... | javascript | chosen |
[
{
"from": "system",
"value": "Check for the existence of document before accessing it.\n\nSince document is referenced within getDefaultProps which unlike\ncomponentDidMount is run in both browser and node environments we need\nto make sure we check it exists before accessing it.\n"
},
{
"from": "hu... | javascript | chosen |
[
{
"from": "system",
"value": "Add duration property in transition\n"
},
{
"from": "human",
"value": "import Vue from 'vue'\n\nconst transitionsKeys = [\n 'name',\n 'mode',\n 'css',\n 'type',\n 'enterClass',\n 'leaveClass',\n 'enterActiveClass',\n 'enterActiveClass',\n 'leaveActiveClass'... | javascript | chosen |
[
{
"from": "system",
"value": "Add spawn strategy missing export.\n"
},
{
"from": "human",
"value": "'use strict';\n\nclass SpawnStrategy {\n constructor(spawn) {\n this.spawn = spawn;\n this.memory = {};\n Memory.strategy = this.memory;\n }\n\n isSpawnReady(threshol... | javascript | chosen |
[
{
"from": "system",
"value": "Add .json suffix to comments API call\n"
},
{
"from": "human",
"value": "module.exports = function getSubjectReplies(reddit,subject){\n var opts = {};\n if (subject.comment) {\n opts.comment = subject.comment;\n opts.depth = 2;\n opts.context = 0;\n } el... | javascript | chosen |
[
{
"from": "system",
"value": "Fix stop stream even if there is no more positions in the stream\n\nAdd a control stream to signal when to stop taking values from the position stream.\n\nThis change is due takeWhile evaluates the condition after receiving the next value\nand in this case there is not guarante... | javascript | chosen |
[
{
"from": "system",
"value": "Change the order of component info tabs to be shown\n\n- Nunjucks\n- Ruby\n- HTML\n- Context\n"
},
{
"from": "human",
"value": "'use strict'\nconst path = require('path')\n\n/* Fractal theme\n--------------------------------------------------------------------------... | javascript | chosen |
[
{
"from": "system",
"value": "Add general text message for feedback form\n"
},
{
"from": "human",
"value": "import Ember from 'ember';\nconst { getOwner } = Ember;\n\nexport default Ember.Service.extend({\n i18n: Ember.inject.service(),\n\n convert: function(values) {\n var offerId = values... | javascript | chosen |
[
{
"from": "system",
"value": "Change stack formatting in npm\n"
},
{
"from": "human",
"value": "var Transform = require('../../common/transform.js'),\n style = require('./util.js').style;\n\nfunction FormatNpm() {}\n\nTransform.mixin(FormatNpm);\n\nFormatNpm.prototype.write = function(name, l... | javascript | chosen |
[
{
"from": "system",
"value": "Add a better JSON to test in dummy.\n"
},
{
"from": "human",
"value": "import Ember from 'ember';\n\nexport default Ember.Route.extend({\n model: function () {\n return { \"menus\": \n {\n \"services\": \n ... | javascript | chosen |
[
{
"from": "system",
"value": "Remove no longer needed dependency override\n"
},
{
"from": "human",
"value": "/* eslint-env node */\n'use strict';\n\nmodule.exports = {\n allowedVersions: {\n 'ember-in-element-polyfill': '*',\n 'ember-get-config': '0.3.0 || 0.4.0 || 0.5.0',\n 'ember-mod... | javascript | chosen |
[
{
"from": "system",
"value": "Mark unsigned hyper as unsigned\n"
},
{
"from": "human",
"value": "import Long from 'long';\nimport includeIoMixin from './io-mixin';\n\nexport class UnsignedHyper extends Long {\n static read(io) {\n let high = io.readInt32BE();\n let low = io.readInt32BE(... | javascript | chosen |
[
{
"from": "system",
"value": "Add tests for basic mixin syntax\n"
},
{
"from": "human",
"value": "const parse = require('../lib/parse');\nconst cases = require('postcss-parser-tests');\nconst expect = require('chai').expect;\n\ndescribe('parse', () => {\n\tcases.each((name, css, json) => {\n\t\t... | javascript | chosen |
[
{
"from": "system",
"value": "Enable instrumentation feature flag when testing\n"
},
{
"from": "human",
"value": "'use strict'\n\nvar Instrumentation = require('../../lib/instrumentation')\n\nvar noop = function () {}\n\nmodule.exports = function mockClient (cb) {\n var client = {\n active: ... | javascript | chosen |
[
{
"from": "system",
"value": "Improve selector performance, remove comment\n"
},
{
"from": "human",
"value": "module.exports = {\n // get zero () { return browser.element('button*=0)'); },\n get zero() { return browser.element('button*=0'); },\n get one() { return browser.element('button*=1')... | javascript | chosen |
[
{
"from": "system",
"value": "Include viewport fixer to be cached by service worker\n"
},
{
"from": "human",
"value": "module.exports = {\n staticFileGlobs: [\n '/index.html',\n '/manifest.json',\n '/bower_components/webcomponentsjs/webcomponents-lite.min.js'\n ],\n navigateFallback:... | javascript | chosen |
[
{
"from": "system",
"value": "Add parse Time Format function.\n\nSigned-off-by: Lee <907de9d2b73011dd426e396ff4243eefbafde16d@gmail.com>\n"
},
{
"from": "human",
"value": "var dataSheetConfig = require('../data/dataSheetConfig');\nvar parseDataSheet = require('../lib/parseDataSheet');\n\nvar opt... | javascript | chosen |
[
{
"from": "system",
"value": "Add install of bower dependencies\n"
},
{
"from": "human",
"value": "(function() {\n\n 'use strict';\n\n var yeoman = require('yeoman-generator'),\n scaffold = {};\n\n module.exports = yeoman.generators.Base.extend({\n\n constructor: function(... | javascript | chosen |
[
{
"from": "system",
"value": "Use bodyParser() and remove x-powered-by\n"
},
{
"from": "human",
"value": "var fs = require('fs'),\n log = require('./log'),\n express = require('express'),\n app = express(),\n config = require('./config');\n pluginRoot = './plugins';\n\nlog.info('[app]', 'Sc... | javascript | chosen |
[
{
"from": "system",
"value": "Add express functionality, listen to a port\n"
},
{
"from": "human",
"value": "console.log(\"Hello world!\");"
},
{
"from": "gpt",
"value": "var express = require('express');\n\nvar app = express();\n\napp.set('port',3000);\n\n\n\nvar server = app.listen... | javascript | chosen |
[
{
"from": "system",
"value": "Add some improvements to assigning regex, begin validate method\n"
},
{
"from": "human",
"value": "/*\n * regex-pill\n * https://github.com/lgoldstien/regex-pill\n *\n * Copyright (c) 2014 Lawrence Goldstien\n * Licensed under the MIT license.\n */\n\n'use strict';\... | javascript | chosen |
[
{
"from": "system",
"value": "Add function generateCardDetailArea to CardDetailView\n"
},
{
"from": "human",
"value": "\n// ----------------------------------------------------------------\n// CardDetail Class\n\n// ----------------------------------------------------------------\n// Model\n\ncl... | javascript | chosen |
[
{
"from": "system",
"value": "Disable \"Assertion.includeStack is false\" test in IE.\n\nThis only manifested in IE 10; IE 9 was fine since it didn't have the `stack` property.\n"
},
{
"from": "human",
"value": "if (!chai) {\n var chai = require('..');\n}\n\nvar assert = chai.assert;\n\nfunctio... | javascript | chosen |
[
{
"from": "system",
"value": "Fix count of column in align in header\n"
},
{
"from": "human",
"value": "var Immutable = require('immutable');\nvar Draft = require('draft-js');\n\nvar TYPES = require('./TYPES');\nvar createRow = require('./createRow');\n\n/**\n * Create a new table header\n *\n *... | javascript | chosen |
[
{
"from": "system",
"value": "Add cursor according to read only state\n"
},
{
"from": "human",
"value": "/**\n * https://github.com/Taranys/simplerating\n */\nangular.module('SimpleRating', [])\n .directive('simpleRating', function () {\n return {\n restrict: 'A',\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Rename short option to avoid conflicts\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\nvar commander = require('commander');\nvar proxy = require('./proxy.js');\n\ncommander\n// .version(meta.version)\n .usage('[options] <endpoint>')\n .option('-p, --port... | javascript | chosen |
[
{
"from": "system",
"value": "Add empty lines between repos in the results\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\nvar colors = require('colors');\nvar ghlint = require('./index');\nvar util = require('util');\n\nfunction printResults(repo, results) {\n console.log(repo + ':');\... | javascript | chosen |
[
{
"from": "system",
"value": "Move context function creation to own function\n"
},
{
"from": "human",
"value": "import { Meteor } from 'meteor/meteor';\nimport { createGraphQLMethod } from './createGraphQLMethod';\nimport { createGraphQLPublication } from './createGraphQLPublication';\nimport {\... | javascript | chosen |
[
{
"from": "system",
"value": "Fix no topics shown when loading a deck (previous commit broke all)\n"
},
{
"from": "human",
"value": "import rp from 'request-promise';\n\nimport {Microservices} from '../../configs/microservices';\nimport {isEmpty, assignToAllById} from '../../common';\n\nexport d... | javascript | chosen |
[
{
"from": "system",
"value": "Clear cache only clear JS files\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar _ = require('lodash');\nvar path = require('path');\n\nfunction System() {\n var self = this;\n self.clearCache = clearCache;\n\n function clearCache(files) {\n if (files) ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix layout rendering errors after login\n"
},
{
"from": "human",
"value": "(function() {\n function showLoading(ionicLoading, text) {\n ionicLoading.show({\n template: text,\n noBackdrop: true,\n duration: 2000\n });\n }\n\n angular.module(\"... | javascript | chosen |
[
{
"from": "system",
"value": "Fix issue with travis configuration\n"
},
{
"from": "human",
"value": "import fs from 'fs';\nimport path from 'path';\nimport Sequelize from 'sequelize';\nimport dotenv from 'dotenv';\nimport dbConfig from '../config/config';\n\nconst basename = path.basename(module... | javascript | chosen |
[
{
"from": "system",
"value": "Update photos Handlebars example to use \"Annie\"\n"
},
{
"from": "human",
"value": "var context = {\n name : 'Eric',\n numPhotos: 1000,\n takenDate: Date.now()\n};\n"
},
{
"from": "gpt",
"value": "var context = {\n name : 'Annie',\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add option to define amount of gas sent in post request\n"
},
{
"from": "human",
"value": "const contractHelper = require('../contracts/contractHelpers.js');\nconst web3Connection = require('../web3.js');\nconst loggers = require('../loggers/events.js');\n\nconst we... | javascript | chosen |
[
{
"from": "system",
"value": "Remove docs count for user prompt\n\n- it simply took too long to query the DB for when the DB is more full (30+ secs)\n- put indexes on, however would only with with '_id' + 'url', and then querying per doc type ended up taking minutes even with index :/\n- now do it async in ... | javascript | chosen |
[
{
"from": "system",
"value": "Use ssl:cert isntead of SSL_CERT from nconf\n"
},
{
"from": "human",
"value": "var fs = require('fs')\nvar path = require('path')\nvar config = require('../lib/config')\nvar features = require('../lib/features')\n\nmodule.exports = function(req, res) {\n fs.readF... | javascript | chosen |
[
{
"from": "system",
"value": "ENH: Check if the job is running.\n\nif the job is running kill the job\n"
},
{
"from": "human",
"value": "\nvar fs = require('fs');\nvar path = require('path');\n\nmodule.exports = function(jobid, conf){\n\n var executionmethods = require('./executionserver.meth... | javascript | chosen |
[
{
"from": "system",
"value": "Fix warning if children is null\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport PropTypes from 'prop-types';\nimport cn from 'classnames';\n\nimport styles from './Base.module.css';\n\nconst renderLabel = label => {\n if (typeof label === 'und... | javascript | chosen |
[
{
"from": "system",
"value": "Handle cases where [anonymous function].name is undefined instead of \"\".\n"
},
{
"from": "human",
"value": "(function(global) {\n \"use strict\";\n\n // ulta-simple Object.create polyfill (only does half the job)\n var create = Object.create || (function() {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Extend tabs to allow callbacks for unrouted tab navigation\n"
},
{
"from": "human",
"value": "import classNames from 'classnames/dedupe';\nimport {Link} from 'react-router';\nimport React from 'react';\n\nclass PageHeaderTabs extends React.Component {\n render() {\... | javascript | chosen |
[
{
"from": "system",
"value": "Add alpha to other graphs\n"
},
{
"from": "human",
"value": "(function() {\n 'use strict';\n\n angular\n .module('dowser')\n .factory('AmChartGraph', AmChartGraphService);\n\n /** @ngInject */\n function AmChartGraphService() {\n function AmChartGraph(data,... | javascript | chosen |
[
{
"from": "system",
"value": "Remove deducting trade amount prematurely\n"
},
{
"from": "human",
"value": "import { roundBalance } from '../../common/tools';\nimport { info } from '../broadcast';\nimport { observer as globalObserver } from '../../../common/utils/observer';\n\nexport default Engi... | javascript | chosen |
[
{
"from": "system",
"value": "Revert tabs to spaces due to accidental change\n"
},
{
"from": "human",
"value": "angular.module('Mccy.routes', [\n\t'ngRoute'\n])\n\n.config(function ($routeProvider) {\n\t$routeProvider\n\t.when('/view', {\n\t\ttemplateUrl: 'views/view-containers.html',\n\t\tcontr... | javascript | chosen |
[
{
"from": "system",
"value": "Fix undefined reported as error on fetch configuration\n"
},
{
"from": "human",
"value": "import { connect } from './wsActions'\nimport {\n setDashboards,\n play,\n} from './dashboardsActions'\nimport {\n notifySuccess,\n notifyError,\n} from './notifica... | javascript | chosen |
[
{
"from": "system",
"value": "Use bedrock instead of polished andesite"
},
{
"from": "human",
"value": "const Vec3 = require('vec3').Vec3\nconst rand = require('random-seed')\n\nfunction generation ({ version, seed, level = 50 } = {}) {\n const Chunk = require('prismarine-chunk')(version)\n co... | javascript | chosen |
[
{
"from": "system",
"value": "Fix nav data and pagination bug\n"
},
{
"from": "human",
"value": "module.exports = function(page, dataType, navigationData) {\n var re = /(.*)(-\\d+)?$/\n var array = re.exec(page)\n if(array && array[1] && navigationData && navigationData[array[1]]) {\n retu... | javascript | chosen |
[
{
"from": "system",
"value": "Fix \"element.getAttribute is not a function\" Selenium errors when filling in fields\n\nThe root cause was the locator strategy was naively returning an element that was not a form field, causing Selenium's internals to blow up\n"
},
{
"from": "human",
"value": "Re... | javascript | chosen |
[
{
"from": "system",
"value": "Improve instructions in inspecting an object for opening console\n"
},
{
"from": "human",
"value": "// If you try printing the below you would see \"[object Object]\"\" which is not that useful.\n\n// Instead, you can click \"Inspect it\" to see the result in the Ja... | javascript | chosen |
[
{
"from": "system",
"value": "Update holes test description to reflect the actual test\n\nCloses #23. Kudos to @kentaromiura for finding this!\n"
},
{
"from": "human",
"value": "// Copyright (C) 2014 Domenic Denicola. All rights reserved.\n// This code is governed by the BSD license found in the... | javascript | chosen |
[
{
"from": "system",
"value": "Fix non-proper work of Yandex radio connector\n\nThe problem is that scrobbling doesn't work if user selects radio station from station page.\nIf user opens radio station directly from station url, scrobbling works well. And scrobbling stops working if user begins to browse pag... | javascript | chosen |
[
{
"from": "system",
"value": "Update the rest connector config\n"
},
{
"from": "human",
"value": "var asteroid = require('asteroid');\n\nmodule.exports = asteroid.createDataSource({\n connector: require('asteroid-connector-rest'),\n debug: false,\n operations: [\n {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix stubbing to prevent tests from trying to talk to server. [rev: daniel.grayling]\n"
},
{
"from": "human",
"value": "/*\n * Copyright 2014-2015 Hewlett-Packard Development Company, L.P.\n * Licensed under the MIT License (the \"License\"); you may not use this fil... | javascript | chosen |
[
{
"from": "system",
"value": "Test against jQuery 3.2.0 and 3.2.1"
},
{
"from": "human",
"value": "QUnit.config.urlConfig.push({\n id: \"jquery\",\n label: \"jQuery version\",\n value: [\"3.1.1\", \"3.0.0\", \"2.2.4\", \"2.1.4\", \"2.0.3\", \"1.12.4\", \"1.11.3\"],\n tooltip: \"What jQuery C... | javascript | chosen |
[
{
"from": "system",
"value": "Move filter and set fixed precision\n"
},
{
"from": "human",
"value": "var ds18b20 = require('../services/ds18b20.js');\nvar logger = require('../services/logger.js');\nvar _ = require('lodash');\n\nvar sensors;\nvar config;\n\nvar init = function (cfg) {\n confi... | javascript | chosen |
[
{
"from": "system",
"value": "Allow request cancellation on new request page as well\n\nCan use a bit of refactoring, this shouldn't be duplicated between edit\nrequest and new request page.\n"
},
{
"from": "human",
"value": "import React, { Component } from 'react';\nimport { connect } from 're... | javascript | chosen |
[
{
"from": "system",
"value": "Switch computed property syntax via ember-watson\n"
},
{
"from": "human",
"value": "import Ember from 'ember';\n\nexport default Ember.Controller.extend({\n needs: ['application'],\n selectedPerson: Ember.computed.alias('controllers.application.attrs.person'),\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Hide banners when you click the \"close\" button\n"
},
{
"from": "human",
"value": "import React from 'react';\n\nimport PipelinesBanner from './pipelines';\n\nclass Banners extends React.Component {\n render() {\n return (\n <div className=\"container mb4\... | javascript | chosen |
[
{
"from": "system",
"value": "Configure angular to use django csrf token\n"
},
{
"from": "human",
"value": "import angular from 'angular';\nimport uiRouter from 'angular-ui-router';\nimport ngMaterial from 'angular-material';\nimport Common from './common/common';\nimport Components from './comp... | javascript | chosen |
[
{
"from": "system",
"value": "Modify output on index page\n"
},
{
"from": "human",
"value": "$(function () {\n $('#search_movie').submit(function(){\n var $form = $(this);\n var movieName = $form.children('#movie_name_input').val();\n var movieYear = $form.children('#movie_year_inp... | javascript | chosen |
[
{
"from": "system",
"value": "Disable the new Salmon Run gear tweet for now"
},
{
"from": "human",
"value": "const ScheduleTweet = require('./ScheduleTweet');\nconst GearTweet = require('./GearTweet');\nconst SalmonRunTweet = require('./SalmonRunTweet');\nconst SalmonRunGearTweet = require('./Sa... | javascript | chosen |
[
{
"from": "system",
"value": "Add try again button to error screen\n\n"
},
{
"from": "human",
"value": "/**\n * Error Screen\n *\n <Error text={'Server is down'} />\n *\n * React Native Starter App\n * https://github.com/mcnamee/react-native-starter-app\n */\nimport React, { PropTypes } from ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix java chart install link broken issue\n"
},
{
"from": "human",
"value": "(function () {\n 'use strict';\n\n var isMac = /Mac/i.test(navigator.platform),\n isIOS = /iPhone|iPad|iPod/i.test(navigator.userAgent),\n isAndroid = /Android/i.test(na... | javascript | chosen |
[
{
"from": "system",
"value": "Fix for browsers that don't support application cache.\n"
},
{
"from": "human",
"value": "(function () {\n var loadingElement = document.getElementsByClassName(\"loading\")[0];\n loadingElement.textContent = \"Loading...\";\n\n\n function start() {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add package.json data as vars if it exists\n"
},
{
"from": "human",
"value": "module.exports = {\n // output config\n dist: {\n min: '~/square.{type}.{ext}'\n , dev: '~/square.{type}.{ext}'\n }\n\n // plugin configuration\n , plugin: {}\n\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add jquery and jquery_ujs -global\n"
},
{
"from": "human",
"value": "//= require_self\n//= require components\n//= require turbolinks\n//= require react_ujs\n\n// Setup React in global scope\nvar React = window.React = global.React = require('react/addons');\nvar $ ... | javascript | chosen |
[
{
"from": "system",
"value": "WWW: Add viewport meta tag for mobile sites\n"
},
{
"from": "human",
"value": "import React, { PropTypes } from 'react'\n\nexport default class Html extends React.Component {\n render () {\n return (\n <html>\n <head>\n <title>\n {this.props.ti... | javascript | chosen |
[
{
"from": "system",
"value": "Complete search functionality for models\n\n* Add button functionality to search bar\n"
},
{
"from": "human",
"value": "const mongoose = require('mongoose')\nconst shortId = require('shortid')\nconst Schema = mongoose.Schema\n\nconst assetSchema = Schema({\n _short... | javascript | chosen |
[
{
"from": "system",
"value": "Switch to DSL for password authentication.\n"
},
{
"from": "human",
"value": "exports = module.exports = function(parse, csrfProtection, loadState, authenticate, proceed) {\n \n // TODO: Move this file to \"password/handlers/authenticate\"\n \n return [\n par... | javascript | chosen |
[
{
"from": "system",
"value": "EPMRPP-38336: Replace fetched user filters when switching project\n"
},
{
"from": "human",
"value": "import { combineReducers } from 'redux';\nimport { fetchReducer } from 'controllers/fetch';\nimport { paginationReducer } from 'controllers/pagination';\nimport { lo... | javascript | chosen |
[
{
"from": "system",
"value": "Make the whole retry page tappable\n"
},
{
"from": "human",
"value": "import React from \"react-native\";\nimport Page from \"./page\";\n\nconst {\n StyleSheet,\n View,\n Text,\n Image,\n TouchableOpacity\n} = React;\n\nconst styles = StyleSheet.creat... | javascript | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.