conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Fix update (remove missing keys).\n"
},
{
"from": "human",
"value": "\nmodule.exports = function(config, mongoose) {\n\tvar Organization = mongoose.model('Organization');\n\n\treturn {\n\t\tget: function(req, res, next) {\n\t\t\tres.data.organization = res.app.local... | javascript | chosen |
[
{
"from": "system",
"value": "Use try - catch statement\n"
},
{
"from": "human",
"value": "window.onload = function () {\n var formEl = document.getElementById(\"myForm\")\n , checkboxEl = document.getElementsByName(\"xhr\")[0]\n , nameEl = document.getElementsByTagName(\"name\")[0]... | javascript | chosen |
[
{
"from": "system",
"value": "Remove layer also in the add layer test\n"
},
{
"from": "human",
"value": "/* See license.txt for terms of usage */\r\n\r\n\"use strict\";\r\n\r\nconst { exist, addNewLayer } = require(\"./common.js\");\r\nconst { closeTab } = require(\"sdk/tabs/utils\");\r\n\r\n/**... | javascript | chosen |
[
{
"from": "system",
"value": "Enable UK dvorak mac layout in chooser\n"
},
{
"from": "human",
"value": "var sitedata_keyboards = {\n \"English US\": {\n windows: \"english-us.html\",\n mac: \"english-us_mac.html\",\n linux: \"english-us.html\",\n },\n \"English UK\"... | javascript | chosen |
[
{
"from": "system",
"value": "Remove log message that seems scary to newcomers\n"
},
{
"from": "human",
"value": "'use strict';\n\nfunction loadDependenciesFromHub(codeManagerHost, dependencies, cb) {\n // TODO\n console.warn('Famous Hub-based dependency loading not yet implemented');\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add simple filtering to overview page.\n"
},
{
"from": "human",
"value": "import React from 'react';\n\nimport CampaignTable from '../CampaignTable';\n\nclass CampaignOverview extends React.Component {\n render() {\n const { pending, etc } = this.props;\n\n r... | javascript | chosen |
[
{
"from": "system",
"value": "Correct module path which was required by example\n"
},
{
"from": "human",
"value": "\"use strict\";\n\nvar Brig = require('../');\n\nvar brig = new Brig();\n\n// Create Engine\nvar engine = new brig.QmlEngine();\nvar rootContext = engine.rootContext();\nvar context... | javascript | chosen |
[
{
"from": "system",
"value": "Call to emit is not defered anymore\n"
},
{
"from": "human",
"value": "const eventManager = {\n list: new Map(),\n\n on(event, callback) {\n this.list.has(event) || this.list.set(event, []);\n\n this.list.get(event).push(callback);\n\n return this;\n },\... | javascript | chosen |
[
{
"from": "system",
"value": "Add unlink for the test file\n"
},
{
"from": "human",
"value": "function runTestFile(path) {\n var response;\n var exec = require('child_process').exec;\n exec('mocha', function (error, stdout, stderr) {\n console.log(\"Stdout: \"+stdout);\n console.log(\"E... | javascript | chosen |
[
{
"from": "system",
"value": "Include pubs data in compiled app.js.\n"
},
{
"from": "human",
"value": "({\n appDir: \"www\",\n baseUrl: \"js\",\n dir: \"build\",\n removeCombined: true,\n paths: {\n data: \"empty:\",\n leaflet: \"empty:\",\n voronoi: \"empty:\... | javascript | chosen |
[
{
"from": "system",
"value": "Remove changes and apply in another PR\n"
},
{
"from": "human",
"value": "/* exported configureTripKeyForPath, getTripKeyFromUrl, setProgressBar */\n/** \n* Sets Progress Bar to correct location based on the page number\n* @param {int} pageNumber\n*/\nfunction setPr... | javascript | chosen |
[
{
"from": "system",
"value": "Load messages and set local properly\n\nFixes missing uiv translations in plugin repo\n"
},
{
"from": "human",
"value": "// The Vue build version to load with the `import` command\n// (runtime-only or standalone) has been set in webpack.base.conf with an alias.\nimp... | javascript | chosen |
[
{
"from": "system",
"value": "Use current user ID in collection helper\n"
},
{
"from": "human",
"value": "Template.registrantsView.onCreated(function () {\n // Get reference to template instance\n const instance = this;\n\n // Subscribe to registrants for current user\n instance.subscribe(\"... | javascript | chosen |
[
{
"from": "system",
"value": "Add timeout to preview rendering\n"
},
{
"from": "human",
"value": "// function that reloads the DOM for\n// MathJax (http://www.mathjax.org/docs/1.1/typeset.html)\nfunction reloadDOM() {\n MathJax.Hub.Queue([\"Typeset\", MathJax.Hub]);\n}\n\nfunction updateAnnot... | javascript | chosen |
[
{
"from": "system",
"value": "Fix extra \"Leave a comment...\" row.\n"
},
{
"from": "human",
"value": "import Ember from 'ember';\n\nexport default Ember.TextArea.extend({\n registerAutosize: function() {\n this.$().autosize();\n }.on('didInsertElement'),\n\n clearAutosize: function() {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add more complex template string\n"
},
{
"from": "human",
"value": "\nvar str1 = `abcde`;\n\nvar str2 = `abcde${str1}abcde`;\n\nvar str3 = `abcde${(function () { return 'abc'; }())}abcde`;\n\nvar str4 = `abcde${({prop1: 1, prop2: 'p'})['prop1']}abcde`;\n\nvar str5 =... | javascript | chosen |
[
{
"from": "system",
"value": "Disable uglify plugin for the moment\n"
},
{
"from": "human",
"value": "var webpack = require(\"webpack\");\nvar Config = require(\"webpack-config\").Config;\n\nmodule.exports = new Config().extend(\"conf/webpack.base.config.js\").merge({\n devtool: \"#source-map... | javascript | chosen |
[
{
"from": "system",
"value": "Enable strict mode for uvCharts source inside module definition\n"
},
{
"from": "human",
"value": "(function(global, factory) {\n if (typeof module === \"object\" && typeof module.exports === \"object\") {\n module.exports = global.document? factory(global, true... | javascript | chosen |
[
{
"from": "system",
"value": "Fix PromiseTimeoutError to properly extend Error\n"
},
{
"from": "human",
"value": "export default class PromiseTimeoutError extends Error {\n constructor(...args) {\n super(...args);\n\n this.name = 'PromiseTimeoutError';\n }\n};"
},
{
"... | javascript | chosen |
[
{
"from": "system",
"value": "Make Generator Create Some Hardcoded Files For Now\n"
},
{
"from": "human",
"value": "var Generator = require('yeoman-generator');\nmodule.exports = class extends Generator {\n init() {\n this.log('Generating GraphQL Schema');\n }\n\n writing() {\n\n this.f... | javascript | chosen |
[
{
"from": "system",
"value": "Make the Date response header available via CORS\n\n"
},
{
"from": "human",
"value": "import { load as configLoader } from '../config';\n\n\nconst config = configLoader();\n\nexport const originMiddleware = async (ctx, next) => {\n ctx.response.set('Access-Control-... | javascript | chosen |
[
{
"from": "system",
"value": "Change text downloads from UTF-8 to ISO-8859-1 (ascii).\n"
},
{
"from": "human",
"value": "\n/*\n * Takes a filename, mimetype, and string content and initiates a file download\n * of the content from the current page, without leaving the page.\n */\n\nimport { save... | javascript | chosen |
[
{
"from": "system",
"value": "Add newline at end of file\n"
},
{
"from": "human",
"value": "define(\n\t[\n\t\t\"./htmlCanvas\",\n\t\t\"./widget\",\n\t\t\"./widget-extensions\",\n\t\t\"./router\",\n\t\t\"./events\"\n\t],\n\n\tfunction(htmlCanvas, widget, ext, router, events) {\n\t\treturn {\n\t\t... | javascript | chosen |
[
{
"from": "system",
"value": "Hide The Team link from Top bar.\n"
},
{
"from": "human",
"value": "'use strict';\r\n\r\n// Configuring the core module's topbar.\r\nangular.module('core').run(['Menus',\r\n\tfunction(Menus) {\r\n\t\t// Set top bar menu items\r\n\t\tMenus.addMenuItem('topbar', 'The ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix for the date of birth label\n"
},
{
"from": "human",
"value": "const _ = require('lodash');\nconst countries = require('../../../config/countries');\n\nmodule.exports = {\n'expiry-year': {\n labelClassName: 'form-label',\n formatter: 'removehyphens',\n vali... | javascript | chosen |
[
{
"from": "system",
"value": "Fix bug with daily forecast\n"
},
{
"from": "human",
"value": "import React from 'react';\n\nconst Daily = ({ weather }) => {\n const daily = weather[0].forecast.simpleforecast.forecastday;\n daily.shift();\n return (\n <section className='extended-forecast'>\... | javascript | chosen |
[
{
"from": "system",
"value": "Add basic chat indication logic\n"
},
{
"from": "human",
"value": "/**\n * @class Denkmal_Layout_Default\n * @extends CM_Layout_Abstract\n */\nvar Denkmal_Layout_Default = CM_Layout_Abstract.extend({\n\n /** @type String */\n _class: 'Denkmal_Layout_Default',\n\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Verify that respond has content, if so send the content back. If no content was found, send 404 status and error message\n"
},
{
"from": "human",
"value": "const RequestRepository = require('src/plex/requestRepository.js');\nconst requestRepository = new RequestRepo... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"Don't send props to dataLayer.\"\n\nThis reverts commit a104558a48e158e77226e1a635bf34fce9262259."
},
{
"from": "human",
"value": "/* eslint-disable no-undef */\nimport { takeEvery } from 'redux-saga';\nimport { select, take } from 'redux-saga/effects'\nimp... | javascript | chosen |
[
{
"from": "system",
"value": "Make current diff disappear when switching between pending / all\n"
},
{
"from": "human",
"value": "angular.module('codebrag.commits')\n\n .controller('CommitsCtrl', function ($scope, $http, commitsListService, commitLoadFilter) {\n\n $scope.syncCommits = ... | javascript | chosen |
[
{
"from": "system",
"value": "Add 'grunt check' for quick checking\n"
},
{
"from": "human",
"value": "module.exports = function(grunt) {\n\n grunt.loadNpmTasks('grunt-blanket');\n grunt.loadNpmTasks('grunt-contrib-copy');\n grunt.loadNpmTasks('grunt-coveralls');\n grunt.loadNpmTasks(... | javascript | chosen |
[
{
"from": "system",
"value": "Remove trailing comma from gruntfile\n"
},
{
"from": "human",
"value": "module.exports = function(grunt){\n grunt.initConfig({\n pkg: grunt.file.readJSON('package.json'),\n jshint: {\n all: ['Gruntfile.js', 'src/*.js']\n },\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Bugfix: Make sure ``grunt`` can access ``bower_components``.\n\nSince the components are installed inside the assets directory\ngrunt needs to be told where it can import them.\n"
},
{
"from": "human",
"value": "module.exports = function(grunt) {\n grunt.initConfig... | javascript | chosen |
[
{
"from": "system",
"value": "Disable dropdown when question marked as answered\n"
},
{
"from": "human",
"value": "$(document).ready(function() {\n $(document).on('change', '.question-answered-box', function(){\n the_id = $(this).data('the-id')\n text_answer_field = $(this).closest('.text... | javascript | chosen |
[
{
"from": "system",
"value": "Allow circular window reference for window-less environments\n"
},
{
"from": "human",
"value": "function list () {\n // http://kevin.vanzonneveld.net\n // + original by: Brett Zamir (http://brett-zamir.me)\n // % note 1: Only works in global contex... | javascript | chosen |
[
{
"from": "system",
"value": "Use userId() over user(), wrap getUserEmail in nonreactive function\n"
},
{
"from": "human",
"value": "/*\n* getUserEmail()\n* Figure out the user's correct email address. This helps the differing keys\n* in the database when using oAuth login.\n*/\ngetUserEmail = f... | javascript | chosen |
[
{
"from": "system",
"value": "Delete useless grunt clean task\n"
},
{
"from": "human",
"value": "module.exports = function(grunt) {\n\n var config = {\n clean: {\n public: 'public/**/*'\n },\n copy: {\n src: {\n files: [{\n expand: true,\n src: [\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Build regular and minified CSS.\n"
},
{
"from": "human",
"value": "module.exports = function(grunt) {\n // Project configuration.\n grunt.initConfig({\n compass: {\n dist: {\n options: {\n sourcemap: true,\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Configure missed files in deploy task\n"
},
{
"from": "human",
"value": "module.exports = function (grunt) {\n 'use strict';\n\n grunt.loadNpmTasks('grunt-contrib-connect');\n grunt.loadNpmTasks('grunt-gh-pages');\n\n grunt.initConfig({\n 'connect': {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix - Dropdown is not reopened when it is closed by focusout and click is on triggerEl\n"
},
{
"from": "human",
"value": "/* global Backbone */\n/* global $ */\n/* global _ */\n\n(function() {\n\n \"use strict\";\n\n // private:\n var adjustOffset = function(opti... | javascript | chosen |
[
{
"from": "system",
"value": "Create a circle or square\n"
},
{
"from": "human",
"value": "function(args) {\n/*\nis_app(true)\ncontrol_type(\"VB\")\ndisplay_name(\"Shapes control\")\ndescription(\"This will return the shapes control\")\nbase_component_id(\"shapes_control\")\nload_once_from_file(... | javascript | chosen |
[
{
"from": "system",
"value": "Add check for no records.\n"
},
{
"from": "human",
"value": "var AWS = require('aws-sdk');\nvar s3 = new AWS.S3();\n\nexports.handler = function(event, context) {\n console.log(JSON.stringify(event, null, 2));\n\n var stackName = context.functionName.split(\"-... | javascript | chosen |
[
{
"from": "system",
"value": "Add special to membership model\n"
},
{
"from": "human",
"value": "var mongoose = require('mongoose');\nvar Schema = mongoose.Schema;\n\nvar Objectid = mongoose.Schema.Types.ObjectId;\n\nvar MembershipSchema = new Schema({\n\tname: String,\n\tspace_credi... | javascript | chosen |
[
{
"from": "system",
"value": "Change BNDL to new loader format"
},
{
"from": "human",
"value": "define(['mac/roman'], function(macintoshRoman) {\n\n 'use strict';\n \n return function(resource) {\n var appSignature = macintoshRoman(resource.data, 0, 4);\n var dv = new DataView(resource.... | javascript | chosen |
[
{
"from": "system",
"value": "Fix if with the grunt/package.json if there is a white-space in the ExtensionName\n"
},
{
"from": "human",
"value": "/*global define,require,window,console,_ */\n/*jslint devel:true,\n white: true\n */\ndefine([\n 'jquery',\n 'underscore'... | javascript | chosen |
[
{
"from": "system",
"value": "Fix moment.js not found in production\n"
},
{
"from": "human",
"value": "//= require jquery\n//= require jquery_ujs\n//= require twitter/bootstrap\n//= require lodash\n//= require handlebars.runtime\n\n// To use placeholders in inputs in browsers that do not support... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"Upgrade to jQUery 3.3\"\n"
},
{
"from": "human",
"value": "// This is a manifest file that'll be compiled into application.js, which will include all the files\n// listed below.\n//\n// Any JavaScript/Coffee file within this directory, lib/assets/javascript... | javascript | chosen |
[
{
"from": "system",
"value": "Add js-enabled class to body if doesn't exist"
},
{
"from": "human",
"value": "// Vendor assets\n//= require jquery\n//= require jquery_ujs\n//= require jquery-ui-autocomplete\n//= require modernizr-custom\n//= require dest/respond.min\n\n// GOVUK modules\n//= requi... | javascript | chosen |
[
{
"from": "system",
"value": "Fix missing require to correctly display local time\n"
},
{
"from": "human",
"value": "// This is a manifest file that'll be compiled into application.js, which will include all the files\n// listed below.\n//\n// Any JavaScript/Coffee file within this directory, li... | javascript | chosen |
[
{
"from": "system",
"value": "Update the toolkit to use indexedDB Wrapper and the generic implementation of service-framework\n"
},
{
"from": "human",
"value": "import SandboxBrowser from '../sandboxes/SandboxBrowser';\nimport AppSandboxBrowser from '../sandboxes/AppSandboxBrowser';\nimport Requ... | javascript | chosen |
[
{
"from": "system",
"value": "Define action constants for printer control\n"
},
{
"from": "human",
"value": "\nexport const PRINTER_ADD = 'PRINTER_ADD';\nexport const PRINTER_UPDATE_STATE = 'PRINTER_UPDATE_STATE';\n\nexport const addPrinter = (printer, id) => ({\n type: PRINTER_ADD,\n printer,... | javascript | chosen |
[
{
"from": "system",
"value": "Add remobe timeout from promise\n\n"
},
{
"from": "human",
"value": "import 'isomorphic-fetch'\n\nconst getFindLocations = q => ({\n type: 'GET_FIND',\n payload: new Promise(resolve => {\n setTimeout(() => fetch(`http://api.openweathermap.org/data/2.5/find?q=${... | javascript | chosen |
[
{
"from": "system",
"value": "Improve the palindrome solution (way better now!)\n"
},
{
"from": "human",
"value": "module.exports = function (str) {\n var palindromes = [];\n\n var walkPalindrome = function (result, str, leftIndex, rightIndex) {\n while (str[leftIndex - 1] === str[rightInde... | javascript | chosen |
[
{
"from": "system",
"value": "Convert js code to es2015\n"
},
{
"from": "human",
"value": "(function () {\n var themes = [\"red\", \"blue\", \"yellow\", \"green\"];\n var randThemeName = themes[(Math.floor(Math.random() * themes.length))];\n\n document.getElementById(\"container\").clas... | javascript | chosen |
[
{
"from": "system",
"value": "Add support for single quoted multi-line strings in Python\n"
},
{
"from": "human",
"value": "Prism.languages.python={comment:{pattern:/(^|[^\\\\])#.*?(\\r?\\n|$)/g,lookbehind:!0},string:/\"\"\"[\\s\\S]+?\"\"\"|(\"|')(\\\\?.)*?\\1/g,keyword:/\\b(as|assert|break|clas... | javascript | chosen |
[
{
"from": "system",
"value": "Set \"Accept: 'application/json'\" header on Slack API calls\n"
},
{
"from": "human",
"value": "var _ = require('underscore');\n\nmodule.exports = function(robot){\n\n\trobot.slack = {\n\n\t\tbaseApiUrl: 'https://slack.com/api/',\n\n\t\tcreateApiUrl: function (suffi... | javascript | chosen |
[
{
"from": "system",
"value": "Fix Redux middleware initialization to prevent warnings\n"
},
{
"from": "human",
"value": "import createBrowserHistory from 'history/createBrowserHistory'\nimport promiseMiddleware from 'redux-promise-middleware'\nimport thunk from 'redux-thunk'\nimport { composeWit... | javascript | chosen |
[
{
"from": "system",
"value": "Use full airbnb config including React rules\n"
},
{
"from": "human",
"value": "module.exports = {\n \"parser\": \"babel-eslint\",\n \"extends\": \"airbnb-base\",\n \"rules\": {\n \"keyword-spacing\": 2,\n \"generator-star-spacing\": 0, // Tem... | javascript | chosen |
[
{
"from": "system",
"value": "Update the sort arrow heads.\n"
},
{
"from": "human",
"value": "/**\n * @fileoverview DatatableHeader.js\n * Pure component that renders the header of the table.\n */\n\nimport React from 'react';\nimport { DatatableHeaderPropTypes } from '../PropTypes.js';\n\nconst... | javascript | chosen |
[
{
"from": "system",
"value": "Stop mentioning the WebChannel port"
},
{
"from": "human",
"value": "\nfunction onDocumentReady(firebaseApp) {\n\n //[START fs_emulator_connect]\n // firebaseApp previously initialized using firebase.initializeApp().\n var db = firebaseApp.firestore();\n if (loc... | javascript | chosen |
[
{
"from": "system",
"value": "Use single quote for strings\n"
},
{
"from": "human",
"value": "module.exports = {\n \"extends\": \"airbnb\",\n \"rules\": {\n \"comma-dangle\": [\"error\", \"never\"],\n \"import/no-unresolved\": \"off\",\n \"import/no-extraneous-dependencies\": \"off\",... | javascript | chosen |
[
{
"from": "system",
"value": "chore(Collective): Add more keywords to slugs blacklist"
},
{
"from": "human",
"value": "/**\n * Check if given `slug` could conflict with existing routes or\n * if it's a reserved keyword.\n *\n * The list is mostly based on frontend `src/server/pages.js` file and\... | javascript | chosen |
[
{
"from": "system",
"value": "U2: Put & escaping back in Validator now that entities are supported in the template parser.\n"
},
{
"from": "human",
"value": "/**\n * @license\n * Copyright 2016 Google Inc. All Rights Reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License... | javascript | chosen |
[
{
"from": "system",
"value": "Add error codes to custom errors\n"
},
{
"from": "human",
"value": "class ExtendableError extends Error {\n constructor (message) {\n super(message)\n this.name = this.constructor.name\n if (typeof Error.captureStackTrace === 'function') {\n Error.cap... | javascript | chosen |
[
{
"from": "system",
"value": "Update case of inobounce js import for netlify\n"
},
{
"from": "human",
"value": "/* ***** ----------------------------------------------- ***** **\n** ***** Global JS\n** ***** ----------------------------------------------- ***** */\n\n/* global Modernizr */\nimpo... | javascript | chosen |
[
{
"from": "system",
"value": "Enable Node 16 and NPM 7/8 support on generation\n\nSigned-off-by: Derrick Mehaffy <d3de28f82f22c58e03cd756b0176b069ba189978@gmail.com>"
},
{
"from": "human",
"value": "'use strict';\n\n/**\n * Expose main package JSON of the application\n * with basic info, depende... | javascript | chosen |
[
{
"from": "system",
"value": "ADJUST model to more persistence .\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst path = require('path');\nconst sequelize = require(path.resolve('src/utils/connection'));\nconst Sequelize = require('sequelize');\n\nconst pokemon = sequelize.define('pokem... | javascript | chosen |
[
{
"from": "system",
"value": "Remove the word 'range' from the range filter list items because we are not going to add other types of filters to that list. Callstack focus filters will be a separate filter list.\n"
},
{
"from": "human",
"value": "\nexport function parseRangeFilters(stringValue =... | javascript | chosen |
[
{
"from": "system",
"value": "Fix refresh button highlighted after click\n"
},
{
"from": "human",
"value": "import React, { PropTypes } from 'react'\nimport { connect } from 'react-redux'\n\nimport ContainerFluid from '../ContainerFluid'\nimport VmUserMessages from '../VmUserMessages'\nimport Us... | javascript | chosen |
[
{
"from": "system",
"value": "Improve the accessibility of the project for linux users.\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\n\nvar cp = require('child_process')\n\nvar BIN = '/Applications/Google Chrome Canary.app/Contents/MacOS/Google Chrome Canary'\nvar ARGS = ['--load-and-l... | javascript | chosen |
[
{
"from": "system",
"value": "Remove warning for max line length\n"
},
{
"from": "human",
"value": "module.exports = {\n \"parser\": \"babel-eslint\",\n \"extends\": \"google\",\n \"rules\": {\n \"camelcase\": 1,\n \"curly\": 0,\n \"eol-last\": 0,\n \"indent\... | javascript | chosen |
[
{
"from": "system",
"value": "Fix out-of-date use of summary_object\n"
},
{
"from": "human",
"value": "'use strict';\nvar React = require('react');\nvar _ = require('underscore');\n\n\n// BIOSAMPLE UTILITIES\n\n// Construct a biosample summary string from the biosample's summary_object object.\n... | javascript | chosen |
[
{
"from": "system",
"value": "fix(angularDateInterceptor): Fix regexp to correctly detect dates\n"
},
{
"from": "human",
"value": "(function () {\n\n 'use strict';\n\n angular.module('angularDateInterceptor', [])\n .service('angularDateInterceptor', AngularDateInterceptor)\n .config(conf... | javascript | chosen |
[
{
"from": "system",
"value": "[feedback] Save overlay node to global scope\n"
},
{
"from": "human",
"value": "// Saves options to chrome.storage\nfunction save_options() {\n chrome.storage.sync.set({\n enableOverlay: document.getElementById('overlay').checked\n }, () => {\n /... | javascript | chosen |
[
{
"from": "system",
"value": "Change to display username if there is no name\n"
},
{
"from": "human",
"value": "import './style/UserMiniCard.scss';\n\nimport React, { Component, PropTypes } from 'react';\nimport { Link } from 'react-router';\n\nimport userPlaceholder from '../assets/userPlacehol... | javascript | chosen |
[
{
"from": "system",
"value": "Fix for MPLy-10287\nCan now click on markers to open POIs.\nBuddy: Jean\n"
},
{
"from": "human",
"value": "\n// MarkerController is reponsible for event handling such as moving to and opening the POI when selected.\nclass MarkerController {\n\n constructor(search... | javascript | chosen |
[
{
"from": "system",
"value": "Use HTML in example project and fix linking to wrong file\n"
},
{
"from": "human",
"value": "var sys = require('sys');\nvar posix = require('posix');\nvar path = require('path');\n\nvar HTTP301MovedPermanently = require('bomberjs/lib/http_responses').HTTP301MovedPer... | javascript | chosen |
[
{
"from": "system",
"value": "Update Edit Feature Form to use FormHelper service. Add validations and alerts."
},
{
"from": "human",
"value": "angular\n .module('app')\n .controller('featureEditController', [\n '$scope',\n '$location',\n '$routeParams',\n 'userService',\n 'featu... | javascript | chosen |
[
{
"from": "system",
"value": "Implement ability to submit the reply form\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport { Modal, Form, Button, Header } from 'semantic-ui-react';\n\nconst ReplyFormModal = () => {\n return (\n <Modal trigger={<Button>Contact Them!</Butto... | javascript | chosen |
[
{
"from": "system",
"value": "Use a regex to test for build servers\n"
},
{
"from": "human",
"value": "'use strict'\n\nconst path = require('path')\nconst gulp = require('gulp')\nconst replace = require('gulp-replace')\nconst config = require('../config')\nconst NodeGitVersion = require('@hmrc/n... | javascript | chosen |
[
{
"from": "system",
"value": "Order secret behind folder breadcrumb in filtered views\n"
},
{
"from": "human",
"value": "import React, { PropTypes } from 'react';\n\nimport SecretListItemFolderSecret from 'components/secrets/SecretListItem/Secret';\nimport SecretListBreadcrumb from 'components/s... | javascript | chosen |
[
{
"from": "human",
"value": "Add functionality to card to map over passed object and display definition list\n"
},
{
"from": "gpt",
"value": "import React from 'react';\nimport PropTypes from 'prop-types';\nimport Button from '../Button/Button';\n\nconst Card = ( { nounObject } ) => {\n const m... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"Link Braintree.Environment to BrainTreeConnect.Environment\"\n\nThis reverts commit 98160276ff59b33359a91faf891d436ce26d6e2f.\n"
},
{
"from": "human",
"value": "Braintree = Npm.require('braintree');\n\nBrainTreeConnect = function (key) {\n var BraintreeObj... | javascript | chosen |
[
{
"from": "system",
"value": "Add defaultHead to validated content-loader options\n"
},
{
"from": "human",
"value": "// @flow\nimport memoize from \"lru-memoize\"\n\nconst fieldTypes = {\n context: \"string\",\n renderer: \"function\",\n feedsOptions: \"object\",\n feeds: \"object\",\n desc... | javascript | chosen |
[
{
"from": "system",
"value": "Add fetch function to login button set\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport LinkButton from \"../LinkButton/LinkButton\";\nimport classes from \"./LoginButtonSet.module.css\"\n\nconst LoginButtonSet = props => {\n\n return (\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add Button into IconButton storybook subcomponents\n"
},
{
"from": "human",
"value": "import React from 'react';\n\nimport IconButton from '@ichef/gypcrete/src/IconButton';\nimport FlexRow from 'utils/FlexRow';\n\nexport default {\n title: '@ichef/gypcrete|IconBu... | javascript | chosen |
[
{
"from": "system",
"value": "Add watches to searchByString directive\n"
},
{
"from": "human",
"value": "\"use strict\";\n\nangular.module('arethusa.search').directive('searchByString', [\n 'search',\n function(search) {\n return {\n restrict: 'A',\n scope: {},\n link: functi... | javascript | chosen |
[
{
"from": "system",
"value": "Initialize isHardLimit in the right place [WAL-881]\n"
},
{
"from": "human",
"value": "import template from './customer-threshold.html';\n\nconst customerThreshold = {\n template: template,\n bindings: {\n horizontal: '<',\n priceEstimate: '=',\n toggleHa... | javascript | chosen |
[
{
"from": "system",
"value": "Add integration test to default grunt task"
},
{
"from": "human",
"value": "// # Gruntfile\n// Automation for the project.\n\n'use strict';\n\nvar GruntConfig = require('thehelp-project').GruntConfig;\n\n// We simply create an instance of the `GruntConfig` class fro... | javascript | chosen |
[
{
"from": "system",
"value": "Update tasks to generate docs on watch\n"
},
{
"from": "human",
"value": "module.exports = function(grunt) {\n require('load-grunt-tasks')(grunt);\n\n grunt.initConfig({\n concat: {\n all: {\n src: [\n 'src/m... | javascript | chosen |
[
{
"from": "system",
"value": "Add prop types + fixes\n"
},
{
"from": "human",
"value": "import React, { Component } from 'react';\n\nimport Sessions from './Sessions';\nimport Empty from './Empty';\nimport Create from './Create';\n\nclass Index extends Component {\n state = {\n page: 0\n };... | javascript | chosen |
[
{
"from": "system",
"value": "Add welcome message in admin panel\n"
},
{
"from": "human",
"value": "/*\n * HomePage\n *\n * This is the first thing users see of our App, at the '/' route\n *\n * NOTE: while this component should technically be a stateless functional\n * component (SFC), hot relo... | javascript | chosen |
[
{
"from": "system",
"value": "Fix code highlighter not to delete line breaks for Firefox\n"
},
{
"from": "human",
"value": "import { highlight } from 'highlight.js';\n\nexport default function highlightCode(text) {\n try {\n const doc = new DOMParser().parseFromString(text, 'text/html');\n\n... | javascript | chosen |
[
{
"from": "system",
"value": "Update cli help to say milliseconds\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\n\nvar program = require('commander')\nvar command\nvar env\nprogram\n .usage('[options]')\n .option('-f, --file [file]', 'config file - defaults to testem.json or teste... | javascript | chosen |
[
{
"from": "system",
"value": "Watermark for WRLD branding. Also fixes a bug where the micello logo is not displayed due to case sensitivity. Pair: Malc\n"
},
{
"from": "human",
"value": "var IndoorWatermarkController = function() {\n var _indoorWatermarkElement = null;\n var _elementId = \"eeg... | javascript | chosen |
[
{
"from": "system",
"value": ":new: Use iterator instead of forEach\n"
},
{
"from": "human",
"value": "'use strict'\n\n/* @flow */\n\nimport type {Disposable} from './disposable'\n\nexport class CompositeDisposable {\n disposed: boolean;\n disposables: Set<Disposable>;\n\n constructor(){\n ... | javascript | chosen |
[
{
"from": "system",
"value": "[Glitch] Fix read marker state not being udpated internally\n\nPort fa4876a1b93d4bb62038cca75bd5017fe49b59ae to glitch-soc\n\nSigned-off-by: Thibaut Girka <428c7871dd6adbdc20a11fdac0dfe6a015f06403@sitedethib.com>\n"
},
{
"from": "human",
"value": "import {\n MARKER... | javascript | chosen |
[
{
"from": "system",
"value": "Allow for nesting ember-simple-auth in another addon"
},
{
"from": "human",
"value": "/* jshint node: true */\n'use strict';\n\nmodule.exports = {\n name: 'ember-simple-auth',\n\n included: function(app) {\n this._super.included(app);\n\n app.import('vendor/... | javascript | chosen |
[
{
"from": "system",
"value": "Update LeftOffset to current parent left offset"
},
{
"from": "human",
"value": "openerp.web_list_view_sticky = function (instance) {\n var _t = instance.web._t,\n _lt = instance.web._lt;\n var QWeb = instance.web.qweb;\n\n //Sticky Table Header\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Include player position in `getCurrentState`\n"
},
{
"from": "human",
"value": "var osa = require('osa2')\n\nfunction play(uri) {\n if (uri)\n return playTrack(uri)\n return osa(() => Application('Spotify').play())()\n}\n\nfunction playTrack(uri) {\n ... | javascript | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.