conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Make user on Group Manager thennable\n"
},
{
"from": "human",
"value": "import Ember from 'ember';\nimport AuthenticatedRouteMixin from 'ember-simple-auth/mixins/authenticated-route-mixin';\n\nexport default Ember.Route.extend(AuthenticatedRouteMixin, {\n currentUs... | javascript | chosen |
[
{
"from": "system",
"value": "Clear the console when script loads\n"
},
{
"from": "human",
"value": "(() => {\n let log = console.debug; // Can change to console.log if needed\n let init = () => {\n // The Socket.io script tag has loaded\n window.ioconn = window.io.connect;\n... | javascript | chosen |
[
{
"from": "system",
"value": "Fix bug in running queries due to missing constant\n"
},
{
"from": "human",
"value": "/*\n * TableConstants\n */\n\nvar keyMirror = require('keymirror');\n\nmodule.exports = keyMirror({\n ADD_TABLE: null,\n REMOVE_TABLE: null,\n SELECT_TABLE: null\n});"
},
{
... | javascript | chosen |
[
{
"from": "system",
"value": "Use the correct topic->routing key replacement.\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar debug = require('debug')('frontend:mqtt');\nvar express = require('express');\nvar router = express.Router();\nvar auth = require('../../passport');\n\nvar restUt... | javascript | chosen |
[
{
"from": "system",
"value": "Add loop, so that animation starts over at end of screen\n"
},
{
"from": "human",
"value": "console.log(\"Helllo world\");\n\tvar virus = document.querySelector(\"div\");\nvirus.style.top = \"400px\";\n\tvar x = 1;\n\tvar v = .1; // px per millisecond\nvar startTime... | javascript | chosen |
[
{
"from": "system",
"value": "Add omit helper for Object\n"
},
{
"from": "human",
"value": "/**\n * Convert Object<Boolean> to bitmap\n * @param {Object<Boolean>} o ex: { announcements: true, features: false, newsletter: false, beta: false }\n * @returns {Number} bitmap\n */\nexport const toBitM... | javascript | chosen |
[
{
"from": "system",
"value": "Fix incorrect class name in front page\n"
},
{
"from": "human",
"value": "/*\n\tJavascript functions for Chalmers.it\n\t\n-------------------------------------------- */\n\n/**\n*\tQuick and dirty jQuery animation helper plugin\n*\n*\tUsage:\n*\t$(\"#element\").jb_a... | javascript | chosen |
[
{
"from": "system",
"value": "Apply YQL change from GF-9695 and GF-9700 to JSONP sample too\n\nEnyo-DCO-1.1-Signed-Off-By: Ben Combee (ben.combee@lge.com)\n"
},
{
"from": "human",
"value": "enyo.kind({\n\tname: \"enyo.sample.JsonpSample\",\n\tkind: \"FittableRows\",\n\tclasses: \"enyo-fit jsonp... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"Remove unnecessary router reopening\"\n\nThis reverts commit 46040476a75b4470acff131f39a1391f039af422.\n"
},
{
"from": "human",
"value": "import Application from 'appkit/app';\n\nfunction startApp(attrs) {\n var App;\n\n var attributes = Ember.merge({\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"Moved API URL out of dev settings.\"\n\nThis reverts commit 134f113e3a2461ae9f7509c3998950726b640b8f.\n"
},
{
"from": "human",
"value": "/* eslint-env node */\n'use strict';\n\nmodule.exports = function (environment) {\n let ENV = {\n modulePrefix... | javascript | chosen |
[
{
"from": "system",
"value": "Use space to make file marker match more specific\n"
},
{
"from": "human",
"value": ";(function()\n{\n\t// CommonJS\n\ttypeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null;\n\n\tfunction Brush()\n\t{\n\t\tthis.regexList = [... | javascript | chosen |
[
{
"from": "system",
"value": "Add user aliases for exchanges and stocks\n"
},
{
"from": "human",
"value": "var ss = require('stockscraper');\n\nmodule.exports.run_stock = function(r,p,reply) {\n if(p.length === 0) {\n reply('Usage: [<exchange>] <stock>');\n return;\n }\n\n var exchange... | javascript | chosen |
[
{
"from": "system",
"value": "Update for latest FruitLoops API"
},
{
"from": "human",
"value": "/*jshint evil: true */\n/*global loadResources, lumbarLoader */\nlumbarLoader.loadJS = function(moduleName, callback, options) {\n return loadResources(moduleName, 'js', callback, function(href, call... | javascript | chosen |
[
{
"from": "system",
"value": "[native] Use hook instead of connect functions and HOC in PencilIcon\n\nTest Plan: Flow\n\nReviewers: ashoat, palys-swm\n\nReviewed By: ashoat\n\nSubscribers: zrebcu411, Adrian\n\nDifferential Revision: https://phabricator.ashoat.com/D496\n"
},
{
"from": "human",
"v... | javascript | chosen |
[
{
"from": "system",
"value": "Change reporter for clean output\n"
},
{
"from": "human",
"value": "module.exports = function(config) {\n config.set({\n frameworks: ['mocha'],\n browsers: ['Firefox', 'PhantomJS'],\n files: ['build/test.js']\n });\n\n if (process.env.T... | javascript | chosen |
[
{
"from": "system",
"value": "Fix path to tasks directory\n"
},
{
"from": "human",
"value": "var gulp = require('gulp');\nvar $ = require('gulp-load-plugins')();\nvar fs = require('fs');\nvar extend = require('extend');\n\nvar options = extend(true, require('./gulp... | javascript | chosen |
[
{
"from": "system",
"value": "Remove css task from gulp\n"
},
{
"from": "human",
"value": "var gulp = require(\"gulp\"),\n\twebserver = require(\"gulp-webserver\"),\n\tnotify = require(\"gulp-notify\"),\n\tbabel = require(\"gulp-babel\"),\n\tsourcemaps = require(\"gulp-sourcemaps\"),\n\tgutil = ... | javascript | chosen |
[
{
"from": "system",
"value": "Add save table row action\n"
},
{
"from": "human",
"value": "const ADD_TABLE_ROW = \"ADD_TABLE_ROW\"\nconst EDIT_TABLE_ROW = \"EDIT_TABLE_ROW\"\nconst UPDATE_TABLE_CELL = \"UPDATE_TABLE_CELL\"\n\nlet nextTableRowId = 0\nconst addTableRow = (tableRow) => {\n return ... | javascript | chosen |
[
{
"from": "system",
"value": "Use single quotes for strings"
},
{
"from": "human",
"value": "import React, { Component, PropTypes } from 'react';\nimport FormControl from 'react-bootstrap/lib/FormControl';\n\nclass Filter extends Component {\n\n constructor(props){\n super(props);\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Improve handling of non standard errors returned\n"
},
{
"from": "human",
"value": "(function () {\n \"use strict\";\n var Fiber = require('fibers');\n\n module.exports = Future;\n\n function Future () {\n this.fiber = Fiber.current;\n this.resolved = fals... | javascript | chosen |
[
{
"from": "system",
"value": "Fix error parsing dates in release notes menu\n"
},
{
"from": "human",
"value": "import PropTypes from 'prop-types';\nimport React from 'react';\nimport { connect } from 'react-redux';\nimport moment from 'moment';\nimport { fetchRecentNews } from '../../../actions/... | javascript | chosen |
[
{
"from": "system",
"value": "Fix include issue with gulp config\n"
},
{
"from": "human",
"value": "var elixir = require('laravel-elixir');\n\n/*\n |--------------------------------------------------------------------------\n | Elixir Asset Management\n |-----------------------------------------... | javascript | chosen |
[
{
"from": "system",
"value": "Use the default report of mocha\n"
},
{
"from": "human",
"value": "var gulp = require('gulp')\nvar shell = require('./')\n\nvar paths = {\n js: ['*.js', 'test/*.js']\n}\n\ngulp.task('test', shell.task('mocha -R spec'))\n\ngulp.task('coverage', ['test'], shell.task(... | javascript | chosen |
[
{
"from": "system",
"value": "Use transform instead of left/top CSS properties\n"
},
{
"from": "human",
"value": "import React, { Component, PropTypes } from 'react'\nimport { Spring } from 'react-motion'\nimport { COLS } from '../constants/Board'\n\nconst TILE_SIZE = 60\nconst basicStyles = {\n... | javascript | chosen |
[
{
"from": "system",
"value": "Add initial tests for search\n\nRelated to #3.\n"
},
{
"from": "human",
"value": "'use strict';\n\njest.dontMock('../lib/search.jsx');\n\nvar React = require('react/addons');\nvar TestUtils = React.addons.TestUtils;\n\nvar Search = require('../lib/search.jsx');\n\n\... | javascript | chosen |
[
{
"from": "system",
"value": ":speech_balloon: Add space between name and role\n"
},
{
"from": "human",
"value": "import React from \"react\";\nimport styles from \"./Home.less\";\n\nimport { Stickers } from \"./Stickers\";\nimport { CTM } from \"./CTM\";\n\nexport const Home = () => (\n <>\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix json schema in admin controllers\n"
},
{
"from": "human",
"value": "// json-schema for params on usergroup `create` and `update` methods.\n\n\n'use strict';\n\n\nmodule.exports = {\n short_name: {\n type: 'string',\n required: true,\n minLength: 1\n }... | javascript | chosen |
[
{
"from": "system",
"value": "Add month in documents filter\n"
},
{
"from": "human",
"value": "Meteor.publish(\"misureBySito2\", function (sitoId) {\n check(sitoId, String);\n var sito = Siti.findOne({\n _id: sitoId\n });\n if (!sito) {\n return null;\n }\n var qu... | javascript | chosen |
[
{
"from": "system",
"value": "Add styles for views and images\n"
},
{
"from": "human",
"value": "import { StyleSheet, Dimensions } from 'react-native';\n\nexport default StyleSheet.create({\n image: {\n height: 150,\n width: 150\n }\n})\n"
},
{
"from": "gpt",
"value": "import... | javascript | chosen |
[
{
"from": "system",
"value": "Update default search limit back to something more reasonable than 5\n"
},
{
"from": "human",
"value": "import update from 'immutability-helper';\n\nconst initialSearchParams = {\n project: null,\n search: '',\n type: null,\n limit: 5,\n offset: 0,\n};\n\nexpor... | javascript | chosen |
[
{
"from": "system",
"value": "Fix padding on hide sidebar button\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport { Link } from 'react-router';\nimport { FormattedMessage } from 'react-intl';\nimport steemconnect from 'steemconnect';\nimport Loading from '../../widgets/Loadi... | javascript | chosen |
[
{
"from": "system",
"value": "Check for current window when getting active tab\n"
},
{
"from": "human",
"value": "'use strict';\n\n// Connect to port and listen for messages.\n\nchrome.runtime.onConnect.addListener(function (port) {\n // Listen for message from devtools.js\n port.onMessage.add... | javascript | chosen |
[
{
"from": "system",
"value": "Change parcel details button it from details to parcel details\n"
},
{
"from": "human",
"value": "$(document).ready(function() {\n $('.details').on('click', function(event) {\n event.preventDefault();\n event.stopPropagation();\n var $details = $(event.targ... | javascript | chosen |
[
{
"from": "system",
"value": "Update the list of regexps for BLOCKING resource loading on page.\n"
},
{
"from": "human",
"value": "/* eslint no-console: 0 */\n'use strict';\n\nconst phantom = require('phantom');\n\n\nfunction* blockResourceLoading(page) {\n yield page.property('onResourceRequ... | javascript | chosen |
[
{
"from": "system",
"value": "Use jQuery style of MaSha constructor\n"
},
{
"from": "human",
"value": "(function(window, $) {\n $(window.document).ready(function() {\n window.MaSha.instance = new window.MaSha({\n selectable: 'bodyContent'\n });\n });\n})(window, window.jQuery);\n\n"... | javascript | chosen |
[
{
"from": "system",
"value": "Support fallback for restPrefix blueprint configuration\n\nThis will look for restPrefix first, then prefix if defined\n"
},
{
"from": "human",
"value": "/**\n * Adds support for count blueprint and binds :model/count route for each RESTful model.\n */\n\nvar _ = re... | javascript | chosen |
[
{
"from": "system",
"value": "Implement `getUniqueID` for Yandex connector\n"
},
{
"from": "human",
"value": "'use strict';\n\n/* global Connector */\n\nConnector.playerSelector = '.player-controls';\n\nConnector.artistSelector = '.track_type_player .track__artists';\n\nConnector.trackSelector =... | javascript | chosen |
[
{
"from": "system",
"value": "Add Octocat icon to Header\n\n"
},
{
"from": "human",
"value": "//@flow\nimport React from \"react\";\n\nimport { Ul, Li, Nav } from \"./styled-components\";\nimport { LinkedInIcon } from \"../../../../elements/linkedin-icon\";\nimport { Highlight } from \"../../../... | javascript | chosen |
[
{
"from": "system",
"value": "Add to download links ng-csv\n"
},
{
"from": "human",
"value": "var path \t\t= require('path');\nvar rootPath \t= path.normalize(__dirname + '/../../');\n\nmodule.exports \t= {\n local: {\n baseUrl: 'http://localhost:3030',\n db: 'mongodb://localhos... | javascript | chosen |
[
{
"from": "system",
"value": "Fix content type bug (415 error from server).\n - The server doesn't recognize the POST as type application/json, but adding an empty JSON object {} solves that.\n"
},
{
"from": "human",
"value": "'use strict';\n\nangular.module('confRegistrationWebApp')\n .factory... | javascript | chosen |
[
{
"from": "system",
"value": "Change tripId url to work conveniently\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport {BrowserRouter as Router, Route} from 'react-router-dom';\n\nimport LandingPage from '../Landing';\nimport SignInPage from '../SignIn'\nimport ViewActivities... | javascript | chosen |
[
{
"from": "system",
"value": "Support hyphens in string formatting\n"
},
{
"from": "human",
"value": "function get_cookie(name) {\n if(!document.cookie || document.cookie === '') return;\n var bits = document.cookie.split(';');\n for(var i=0, l=bits.length; i < l; i++) {\n var m ... | javascript | chosen |
[
{
"from": "system",
"value": "Improve comment in Englebart iframe example\n"
},
{
"from": "human",
"value": "// Mithril component which embeds an iframe with HTML\n// Doug Engelbart Unfinished Revolution II Colloquium -- UnRev-II - headers sorted By Date\n// This also demostrates supplying a tit... | javascript | chosen |
[
{
"from": "system",
"value": "Add line break at end of file\n"
},
{
"from": "human",
"value": "import React from 'react'\nimport ReactDOM from 'react-dom'\nimport { AppContainer } from 'react-hot-loader'\nimport App from './containers/App'\n\nReactDOM.render(\n <AppContainer>\n <App/>\n </A... | javascript | chosen |
[
{
"from": "system",
"value": "Add label for hours to goal_time_limit input field.\n"
},
{
"from": "human",
"value": "$(function() {\n $('.toggleDeadlineUnitDate').on('click', function(e) {\n e.preventDefault();\n $(this).replaceWith(\"<label for='project_goal_deadline_date'>Goal Deadline ... | javascript | chosen |
[
{
"from": "system",
"value": "Use new repo parameter format (allowing easier testing).\n"
},
{
"from": "human",
"value": "var user = \"highfidelity/\";\nvar repository = \"hifi_tests/\";\nvar branch = \"master/\";\nvar autoTester = Script.require(\"https://github.com/\" + user + repository + \"b... | javascript | chosen |
[
{
"from": "system",
"value": "[SYN5-294] Hide the user_profile data class\n"
},
{
"from": "human",
"value": "export default {\n list() {\n this.NewLibConnection\n .Class\n .please()\n .list()\n .ordering('desc')\n .then(this.completed)\n .catch(this.failure);\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add CORS to web api\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar express = require('express');\nvar bodyParser = require('body-parser');\n\nvar config = require('./config');\nvar routes = require('./routes');\n\n\nfunction API(backend, opts) {\n this.bac... | javascript | chosen |
[
{
"from": "system",
"value": "Handle request error: controller backupDatabase, restoreDatabase\n"
},
{
"from": "human",
"value": "angular.module('myapp')\n .controller('HomeController', ['$scope', '$timeout', 'SnapshotServices', function ($scope, $timeout, SnapshotServices) {\n $scope.... | javascript | chosen |
[
{
"from": "system",
"value": "Fix pattern matching for multiline comments.\n\nfixes kkemple/grunt-stripcomments#1\n"
},
{
"from": "human",
"value": "/*\n * grunt-strip-comments\n * https://github.com/kkemple/grunt-strip-comments\n *\n * Copyright (c) 2013 Kurtis Kemple\n * Licensed under the MIT... | javascript | chosen |
[
{
"from": "system",
"value": "Update Highlight.js version from 9.2.0 to 9.5.0\n"
},
{
"from": "human",
"value": "/* global hljs */\n\nWee.fn.make('guide', {\n\tinit: function() {\n\t\tWee.history.init({\n\t\t\tbind: true,\n\t\t\textensions: ['html']\n\t\t});\n\t},\n\n\t/**\n\t * Bind guide funct... | javascript | chosen |
[
{
"from": "system",
"value": "chore: Apply NavBar component inside App\n"
},
{
"from": "human",
"value": "'use strict';\nimport React, { Component } from 'react';\nimport ReactDOM from 'react-dom';\n\nimport NavBar from './NavBar';\n\n// Top-level React (pure functional) component:\nconst App = ... | javascript | chosen |
[
{
"from": "system",
"value": "Remove IE11 comments from `config/target.js` in app blueprint\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst browsers = [\n 'last 1 Chrome versions',\n 'last 1 Firefox versions',\n 'last 1 Safari versions',\n];\n\n// Ember's browser support policy is c... | javascript | chosen |
[
{
"from": "system",
"value": "Fix whitespace, empty line at end of file\n"
},
{
"from": "human",
"value": "/* eslint-disable no-param-reassign */\nimport mapValues from 'lodash/mapValues';\nimport isObject from 'lodash/isObject';\n\nconst MATCH_FIRST_CURLY_BRACES_REGEX = /^\\{/;\nconst MATCH_LAS... | javascript | chosen |
[
{
"from": "system",
"value": "Add optional role hook `endTurn`\n"
},
{
"from": "human",
"value": "/*\n * Module code goes here. Use 'module.exports' to export things:\n * module.exports = 'a thing';\n *\n * You can import it from another modules like this:\n * var mod = require('creeps'); // -> ... | javascript | chosen |
[
{
"from": "system",
"value": "Create an instance of the color picker in order to be able to show it.\n"
},
{
"from": "human",
"value": "var session = null;\n\n// instead of windows.onload \n$(document).ready( function() {\n\n // hide iphone/ipad URL bar\n setTimeout(function() { window.scr... | javascript | chosen |
[
{
"from": "system",
"value": "Set user-specified width as css variable\n"
},
{
"from": "human",
"value": "// User may override layout width in settings, inject new value\n//\n\n'use strict';\n\n\nmodule.exports = function (N) {\n\n N.wire.after('server_chain:http:*', async function inject_layou... | javascript | chosen |
[
{
"from": "system",
"value": "Implement throw error when no function found\n"
},
{
"from": "human",
"value": "import * as PASTEL_FUNC from '../../functions/functions.js';\nimport CraftyBlock from './CraftyBlock.js';\n\nexport default class CraftyBlockSpec {\n constructor(name, type, parameter... | javascript | chosen |
[
{
"from": "system",
"value": "Add back the webpack inline sourcemaps\n"
},
{
"from": "human",
"value": "var path = require('path');\nvar webpack = require('webpack');\n\nmodule.exports = {\n plugins: [\n new webpack.DefinePlugin({\n \"process.env\": Object.keys(process.env).reduce(funct... | javascript | chosen |
[
{
"from": "system",
"value": "Add marginTop on input fields when inside a label\n"
},
{
"from": "human",
"value": "import React, { PureComponent } from 'react';\nimport PropTypes from 'prop-types';\nimport Input from '../input';\nimport { TextBody, TextDisplay } from '../typography';\nimport the... | javascript | chosen |
[
{
"from": "system",
"value": "Use Ember 1.12 computed + Ember.meta\n"
},
{
"from": "human",
"value": "export default function indirect(middlePropertyName) {\n return function(key, value) {\n // TODO: I don't like using `key`. Can we do better?\n var lastSourcePropertyName = '__indirect_la... | javascript | chosen |
[
{
"from": "system",
"value": "Remove GL context test to verify that Travis CI works\n"
},
{
"from": "human",
"value": "/* global document */\nimport {createGLContext, hasWebGL, hasExtension, Program}\n from '../../src/webgl';\nimport {WebGLRenderingContext} from '../../src/webgl';\nimport test ... | javascript | chosen |
[
{
"from": "system",
"value": "Add signOut function to navbar proptypes\n"
},
{
"from": "human",
"value": "import React, { PureComponent, PropTypes } from 'react'\nimport { connect } from 'react-redux'\nimport { Link } from 'react-router'\n\nimport signOut from '../../actions/users/sign-out'\n\nc... | javascript | chosen |
[
{
"from": "system",
"value": "Fix Radio: Use find, select does not return all inputs.\n\ngetValue didn't work\n"
},
{
"from": "human",
"value": "var $ = require('jQuery');\nvar fieldRegistry = require('kwf/frontend-form/field-registry');\nvar Field = require('kwf/frontend-form/field/field');\nva... | javascript | chosen |
[
{
"from": "system",
"value": "Add delay variable to timeout\n\nLeftout of previous commit\n\nOHM-554\n"
},
{
"from": "human",
"value": "'use strict'\n\nconst DELAY = parseInt(process.env.DELAY, 10) || 2000\nconst BodyStream = require('./body-stream')\n\nexports.handleBodyRequest = (conn) => {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add GA tracking id configs\n"
},
{
"from": "human",
"value": "module.exports = {\n firebase: require('./firebase/client'),\n};\n"
},
{
"from": "gpt",
"value": "module.exports = {\n firebase: require('./firebase/client'),\n GA: {\n development: {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Remove View and Model in click delete\n"
},
{
"from": "human",
"value": "ContactManager.Views.Contact = Backbone.View.extend({\n tagName: 'li',\n className: 'media col-md-6 col-lg-4',\n template: _.template($('#tpl-contact').html()),\n\n events: {\n 'click .d... | javascript | chosen |
[
{
"from": "system",
"value": "Use polling block notifier if using MetaMask\n"
},
{
"from": "human",
"value": "\"use strict\";\n\nvar Notifier = require(\"./notifier.js\");\nvar PollingBlockNotifier = require(\"./polling-block-notifier.js\");\nvar SubscribingBlockNotifier = require(\"./subscribin... | javascript | chosen |
[
{
"from": "system",
"value": "Add DB variables for production credentials\n"
},
{
"from": "human",
"value": "'use strict'\n\nmodule.exports = {\n dbUrl: 'mongodb://' + (process.env.DB_HOST || '127.0.0.1') + '/shortlinks',\n port: process.env.PORT || 3000,\n username: process.env.API_USERNAME ... | javascript | chosen |
[
{
"from": "system",
"value": "Update fields helper to use relative keystone path - @morenoh149\n"
},
{
"from": "human",
"value": "var fs = require('fs'),\n\tkeystone = require('keystone');\n\nexports.init = function (shouldRunTests) {\n\tkeystone.init();\n\n\tvar typesLoc = __dirname + '/../fiel... | javascript | chosen |
[
{
"from": "system",
"value": "Save changes to project status notes.\n"
},
{
"from": "human",
"value": "class MCProjectsListComponentController {\n /*@ngInject*/\n constructor($mdEditDialog, mcshow) {\n this.$mdEditDialog = $mdEditDialog;\n this.mcshow = mcshow;\n this.... | javascript | chosen |
[
{
"from": "system",
"value": "Make server selection more modular\n"
},
{
"from": "human",
"value": "const Danbooru = req('danbooru')\n\nmodule.exports = {\n namespaced: true,\n state: () => ({\n auth: {},\n safebooru: true,\n searches: [\n {\n tags: 'score:5..',\n r... | javascript | chosen |
[
{
"from": "system",
"value": "Correct handling of broken references\n"
},
{
"from": "human",
"value": "var escape = require('escape-latex');\nvar quotes = require('../replace-quotes');\n\nvar preprocess = function(input) {\n return escape(quotes(input));\n};\n\nvar blankLine = '{\\\\leavevmode ... | javascript | chosen |
[
{
"from": "system",
"value": "Add more browsers as targets\n"
},
{
"from": "human",
"value": "const projectRoot = require('./projectRoot');\n\nconst browsers = {\n chrome: {\n desiredCapabilities: {\n browserName: 'chrome',\n },\n },\n};\n\nmodule.exports = {\n system: { projectRoo... | javascript | chosen |
[
{
"from": "system",
"value": "Change validation run to on input.\n\nThis way when the user starts correcting the box, the error messages go\naway immediately.\n"
},
{
"from": "human",
"value": "var app = angular.module('app', [\n 'ngResource',\n 'ngRoute'\n ]);\n\napp.config... | javascript | chosen |
[
{
"from": "system",
"value": "Increase search history max items to 99 and always push latest search word to top order\n"
},
{
"from": "human",
"value": "import { SEARCH_HISTORY } from '../constants/actionTypes';\n\nexport default function searchHistory(\n state = {\n items: [],\n },\n acti... | javascript | chosen |
[
{
"from": "system",
"value": " Fix extension to work with latest state changes\n"
},
{
"from": "human",
"value": "import { extend } from 'flarum/extend';\nimport app from 'flarum/app';\n\nimport PusherSettingsModal from './components/PusherSettingsModal';\n\napp.initializers.add('flarum-pusher',... | javascript | chosen |
[
{
"from": "system",
"value": "Add listener for \"move\" event\n"
},
{
"from": "human",
"value": "var DGT = require('..')\nvar board = new DGT.Board('/dev/ttyUSB0')\n\nboard.on('ready', function () {\n console.log('Serial No:', board.serialNo)\n console.log('Version:', board.versionNo)\n conso... | javascript | chosen |
[
{
"from": "system",
"value": "Remove button to clone a topic when creating a dashboard\n"
},
{
"from": "human",
"value": "import React, { PureComponent } from 'react';\nimport PropTypes from 'prop-types';\n\nimport HeaderTopics from './import-selector';\n\n\n// constants\nimport { TEMPLATES } fr... | javascript | chosen |
[
{
"from": "system",
"value": "Remove useless logic to show page action when activate tab.\n"
},
{
"from": "human",
"value": "(\r\n function () {\r\n var isDebugging = false;\r\n var re = /saas.hp(.*).com\\/agm/;\r\n\r\n function isAgmSite(url){\r\n return re.te... | javascript | chosen |
[
{
"from": "system",
"value": "Switch worker message post since we're not passing errors through successfully yet.\n"
},
{
"from": "human",
"value": "require.paths.unshift(\n __dirname + '/../lib/node',\n __dirname + '/../server',\n __dirname + '/../shared',\n __dirname + '/../'\n);\n... | javascript | chosen |
[
{
"from": "system",
"value": "Add a newline before @param (again)\n\nCo-authored-by: Zach Ghera <7d293d7aa3d73ce243886706f2742c0d78eb864e@gmail.com>"
},
{
"from": "human",
"value": "/**\n * Format a timestamp (in milliseconds) into a pretty string with just the time.\n *\n * @param {int} msTimes... | javascript | chosen |
[
{
"from": "system",
"value": "Fix an issue with the tetris max level\n"
},
{
"from": "human",
"value": "/**\r\n * The Level Class\r\n */\r\nclass Level {\r\n\r\n /**\r\n * The Level constructor\r\n * @param {Number} maxLevels\r\n */\r\n constructor(maxLevels) {\r\n this.... | javascript | chosen |
[
{
"from": "system",
"value": "Clear search text after action\n"
},
{
"from": "human",
"value": "app.controller('SearchController', function($scope, $state, $q, KpmApi) {\n\n var self = this;\n\n /**\n * Callback when 'Return' key is pressed\n * Redirect to the package list page\n */\n t... | javascript | chosen |
[
{
"from": "system",
"value": "Add `key` to payment type selection list\n"
},
{
"from": "human",
"value": "// @flow\nimport React, { Component } from 'react';\nimport { FormattedMessage } from 'react-intl';\nimport PaymentMethodWrapper from '../ExpressDonation/PaymentMethodWrapper';\n\nexport def... | javascript | chosen |
[
{
"from": "system",
"value": "Remove sourcemaps setting.\nIt gets applied automatically.\n"
},
{
"from": "human",
"value": "const webpack = require('@cypress/webpack-preprocessor')\n\nmodule.exports = (on) => {\n on('file:preprocessor', webpack({\n webpackOptions: {\n resolve: {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Use uuid v5 to generate ids\n"
},
{
"from": "human",
"value": "import { v4 as uuid } from 'uuid'\n\nconst ids = new Map()\n\nconst existingId = (key) => {\n\treturn ids.get(key)\n}\n\nconst newId = (key) => {\n\tconst id = uuid()\n\tids.set(key, id)\n\treturn id\n}\... | javascript | chosen |
[
{
"from": "system",
"value": "fix(build): Fix the typo when copying fonts.\n\nfixes #907\n"
},
{
"from": "human",
"value": "/* This Source Code Form is subject to the terms of the Mozilla Public\n * License, v. 2.0. If a copy of the MPL was not distributed with this\n * file, You can obtain one ... | javascript | chosen |
[
{
"from": "system",
"value": "Apply masonry once images are loaded\n"
},
{
"from": "human",
"value": "jQuery(function ($) {\n 'use strict';\n var content = $('#content');\n\n function applyMasonry() {\n if ($(document).width() >= 768) {\n content.masonry({\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Make ace editor respect controllerMode\n"
},
{
"from": "human",
"value": "/**\n * @license\n * Copyright 2019 The FOAM Authors. All Rights Reserved.\n * http://www.apache.org/licenses/LICENSE-2.0\n */\n\nfoam.CLASS({\n package: 'io.c9.ace',\n name: 'Config',\n pr... | javascript | chosen |
[
{
"from": "system",
"value": "Deploy to lucify-prod bucket by default\n"
},
{
"from": "human",
"value": "\nvar gulp = require('gulp');\nvar execsyncs = require('gulp-execsyncs');\n\n\ngulp.task('prepare-data', function(cb) {\n execsyncs({\n cmds : [\n './prepare.sh',\n 'src/scripts... | javascript | chosen |
[
{
"from": "system",
"value": "Fix native sticky regexp support detection\n"
},
{
"from": "human",
"value": "'use strict';\n\nmodule.exports = function () {\n\treturn RegExp.prototype.sticky === false;\n};\n"
},
{
"from": "gpt",
"value": "'use strict';\n\nmodule.exports = function () ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix building of shareUrl for base URLs containing query params\n"
},
{
"from": "human",
"value": "'use strict';\n\nmodule.exports = function(shariff) {\n return {\n popup: false,\n shareText: 'mail',\n name: 'mail',\n title: {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "WebsocketConnection: Fix saga (call -> takeEvery)\n"
},
{
"from": "human",
"value": "import { put, takeEvery, call } from 'redux-saga/effects';\n\nimport { SEND_REQUEST } from './constants';\nimport { sendRequestSuccess, sendRequestFail } from './actions'\nimport { ... | javascript | chosen |
[
{
"from": "system",
"value": "Rename local variables to match API naming conventions\n"
},
{
"from": "human",
"value": "'use strict';\n\nfunction Page(conn) {\n this._conn = conn;\n}\n\nPage.prototype = {\n list: function(key, options) {\n return this._conn.get('pages/'+key+'/', options)\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add ability to change input color\n"
},
{
"from": "human",
"value": "// @flow\nimport React, { type ElementRef } from 'react';\nimport AutosizeInput from 'react-input-autosize';\n\nimport { spacing } from '../theme';\nimport { Div } from '../primitives';\n\nimport t... | javascript | chosen |
[
{
"from": "system",
"value": "Add <Link> to /about. Part of STRIPES-356\n"
},
{
"from": "human",
"value": "import React from 'react';\n\nexport const Front = () => <h3>Welcome to whatever this is!</h3>;\nexport default Front;\n"
},
{
"from": "gpt",
"value": "import React from 'react'... | javascript | chosen |
[
{
"from": "system",
"value": "Test console method and revert to log if method not present. Handles node environment\n"
},
{
"from": "human",
"value": "/**\n * Project: LekkerApps - Logging\n * Copyright 2016 Ashley G Ramdass <agramdass@gmail.com>\n *\n * Licensed under the Apache License, Versio... | javascript | chosen |
[
{
"from": "system",
"value": "Print all jslint errors before exiting.\n"
},
{
"from": "human",
"value": "var path = require('path');\nvar eslint = require('gulp-eslint');\nvar merge = require('lodash/object/merge');\nvar shelljs = require('shelljs');\n\nfunction failLintBuild() {\n process.exit... | javascript | chosen |
[
{
"from": "system",
"value": "Add callback call after promise finishes.\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst assert = require('assert');\nconst gulp = require('gulp');\nconst helper = require('gulp/helper');\nconst _ = require('lodash');\nconst Promise = require('bluebird').... | javascript | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.