conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Use shortened AMD form for object definitions.\n"
},
{
"from": "human",
"value": "define([\r\n], function (\r\n) {\r\n \r\n return {\r\n \"id\": \"schema/ExampleSchema\",\r\n \"description\": \"A simple model for testing\",\r\n \"$schema\"... | javascript | chosen |
[
{
"from": "system",
"value": "Add argument pid at the command in rails suggestion\n\nBy default the rails stores the `pid` file of service within the `tmp` folder of the project, when working with multiple instances it creates conflict.\n"
},
{
"from": "human",
"value": "import { _ } from 'azk';... | javascript | chosen |
[
{
"from": "system",
"value": "Update hello world to use r92\n"
},
{
"from": "human",
"value": "export default {\n title: 'Hello World',\n description: 'Simple Hello World application with common elements for a scene',\n tags: 'Cube',\n public: false,\n scripts: [\n // 'http://127.0.0.1:8... | javascript | chosen |
[
{
"from": "system",
"value": "Remove an empty var was blocking correct execution of the transition events\n"
},
{
"from": "human",
"value": "var transitionEnd = \"webkitTransitionEnd otransitionend oTransitionEnd msTransitionEnd transitionend\";\n\n$.fn.addClassAfter = function(className) {\n\tv... | javascript | chosen |
[
{
"from": "system",
"value": "Change test to match new word format.\n"
},
{
"from": "human",
"value": "\"use strict\";\n\nvar adjAdjAnimal = require(\"../lib/index\");\n\nvar expect = require(\"chai\").expect;\n\ndescribe(\"the library\", function () {\n\tdescribe(\"getting a default id\", funct... | javascript | chosen |
[
{
"from": "system",
"value": "Fix logic for retrieving test suite id\n"
},
{
"from": "human",
"value": "define([\n 'underscore',\n 'backbone',\n 'models/core/BaseModel',\n], function(_, Backbone, BaseModel) {\n\n var TestSuiteModel = BaseModel.extend({\n\n defaults: {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Check if field value is NaN\n"
},
{
"from": "human",
"value": "function setRotation() {\n var speed = document.getElementById(\"test-rot-speed\").value;\n drawer.api.setRotation(parseInt(speed));\n}\n\nfunction printState() {\n drawer.api.addChange(function... | javascript | chosen |
[
{
"from": "system",
"value": "Add done() and modify query\n"
},
{
"from": "human",
"value": "//----------------------------------------------------------------------------//\nvar express = require('express');\nvar router = express.Router();\nvar pg = require('pg');\nvar connectionString = requir... | javascript | chosen |
[
{
"from": "system",
"value": "Make view-port bigger, disable JavaScript."
},
{
"from": "human",
"value": "var fs = require('fs'),\n\tpage = new WebPage(),\n\taddress, output, size;\n\npage.settings.userAgent = 'Portrayal (https://github.com/engagedc/portrayal) 1.0.0';\n \nif (phantom.args.length... | javascript | chosen |
[
{
"from": "system",
"value": "Add name to comunication model;\n"
},
{
"from": "human",
"value": "/**\n* Copyright 2016 PT Inovação e Sistemas SA\n* Copyright 2016 INESC-ID\n* Copyright 2016 QUOBIS NETWORKS SL\n* Copyright 2016 FRAUNHOFER-GESELLSCHAFT ZUR FOERDERUNG DER ANGEWANDTEN FORSCHUNG E.V\... | javascript | chosen |
[
{
"from": "system",
"value": "Fix weekStart and format for Norwegian\n\nCloses #618\n"
},
{
"from": "human",
"value": "/**\n * Norwegian translation for bootstrap-datepicker\n **/\n;(function($){\n $.fn.datepicker.dates['no'] = {\n days: ['Søndag','Mandag','Tirsdag','Onsdag','Torsdag','Fred... | javascript | chosen |
[
{
"from": "system",
"value": "Fix broken reference from example "
},
{
"from": "human",
"value": "const React = require(\"react\")\n\n\nconst myStyle = {\n \"color\": \"blue\"\n}\n\nexport default React.createClass({\n getInitialState() {\n return {value: 0}\n },\n\n componentDidMount() {... | javascript | chosen |
[
{
"from": "system",
"value": "Set focus to first input element.\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/javascrip... | javascript | chosen |
[
{
"from": "system",
"value": "Clear out existing models on load to avoid conflicts when reloading data\n"
},
{
"from": "human",
"value": "import {createReducer} from \"common/utils/reducerUtils\";\n\nimport {DATA_LOADED} from \"features/tools/toolConstants\";\n\nimport schema from \"app/schema\"... | javascript | chosen |
[
{
"from": "system",
"value": "Fix in default processors setter module\n"
},
{
"from": "human",
"value": "(function () {\n 'use strict';\n\n var extends = require('./extends');\n\n exports = module.exports = function (guido) {\n guido.use(extends);\n };\n})();\n"
},
{
"from": "gpt"... | javascript | chosen |
[
{
"from": "system",
"value": "Fix application menu missing first menu on macOS."
},
{
"from": "human",
"value": "import { app } from \"electron\";\n\nexport default menus => {\n if (process.platform !== \"darwin\") {\n menus.unshift({\n label: app.getName(),\n sub... | javascript | chosen |
[
{
"from": "system",
"value": "Use PNG for the avatar link\n"
},
{
"from": "human",
"value": "module.exports = {\n exec: function (msg, args) {\n userQuery(args || msg.author.id, msg, true).then(u => {\n bot.createMessage(msg.channel.id, {\n embed: {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix error about tutorials for pasword-restricted use\n"
},
{
"from": "human",
"value": "/* global fetch */\nmodule.exports = function(callback) {\n console.log(\"Fetch tutorials.\");\n fetch('/getListOfTutorials')\n .then(function(data) {\n return data... | javascript | chosen |
[
{
"from": "system",
"value": "Change teaser grid to use trending petitions\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport TeaserGrid from 'components/TeaserGrid';\nimport Container from 'components/Container';\nimport BlockContainer from 'components/BlockContainer';\nimpor... | javascript | chosen |
[
{
"from": "system",
"value": "Fix failing build: Unexpected token, expected { (3:0)\n"
},
{
"from": "human",
"value": "\nfunction createColorTextureFromSteps()\nconst map = ColorRamp.createColorTexture(this.refs.colorbar, (i) =>\n ColorRamp.map(this.props.steps, i))\n\nfunction createColorTextu... | javascript | chosen |
[
{
"from": "system",
"value": "Move from Ember.Logger to console\n\nEmber.Logger is deprecated as of Ember 3.2."
},
{
"from": "human",
"value": "import Ember from 'ember';\nimport { namespace } from './consts';\n\nexport function debug() {\n Ember.Logger.debug(namespace, ...arguments);\n}"
},
... | javascript | chosen |
[
{
"from": "system",
"value": "Fix small typo with hasWinRT.\n"
},
{
"from": "human",
"value": "// Copyright (c) Microsoft Open Technologies, Inc. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.\ndefine([\n './_... | javascript | chosen |
[
{
"from": "system",
"value": "Add ng model async validator unique function\n"
},
{
"from": "human",
"value": "(function() {\n\n var app = angular.module('bbUniqueModule', []);\n\n\n app.directive('bbUnique', ['$q',function($q){\n //allows us to cache template before we run link\n\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix for login, we can now validate our password and username\n"
},
{
"from": "human",
"value": "var DB_USERS = require(process.env.APP_DB_USERS),\n\n passport = require(\"passport\"),\n LocalStrategy = require('passport-local').Strategy;\n\nmodule.exports = fu... | javascript | chosen |
[
{
"from": "system",
"value": "fix: Remove attribute instead of raise it when bindings parser is used on HTML5 form elements\n\nThis change fixes a bug which appears when bindings parser is used on 'checked' attribute of a\n\ncheckbox and bound property is undefined\n"
},
{
"from": "human",
"valu... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"Remove NoErrorsPlugin until webpack-hot-middleware learns to display syntax error overlay after reload as well\"\n\nThis reverts commit c1b0521e5fdcc57066477d6143e74db177e27be3.\n"
},
{
"from": "human",
"value": "var path = require('path');\nvar webpack = r... | javascript | chosen |
[
{
"from": "system",
"value": "Add the UCLA icon back\n"
},
{
"from": "human",
"value": "import BottomNavigation from '@material-ui/core/BottomNavigation';\nimport BottomNavigationAction from '@material-ui/core/BottomNavigationAction';\n\nimport React, { Component } from 'react';\n\nimport './ind... | javascript | chosen |
[
{
"from": "system",
"value": "Make sure base tag is not added\n"
},
{
"from": "human",
"value": "/* jshint node: true */\n\nmodule.exports = function(environment) {\n var ENV = {\n modulePrefix: 'dummy',\n environment: environment,\n baseURL: '/',\n locationType: 'auto',\n EmberE... | javascript | chosen |
[
{
"from": "system",
"value": "Add test for already resolved schema\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst should = require('should');\n\nconst refResolver = require('./../../lib/ref_resolver');\n\nconst schema = require('./schema.json');\n\ndescribe('RefResolver', () => {\n\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Implement apostrophe-global module properly, as opposed to parked page workaround.\n"
},
{
"from": "human",
"value": "// Always provide req.data.global, a virtual page\n// for sitewide content such as a footer displayed on all pages\n\nmodule.exports = {\n construc... | javascript | chosen |
[
{
"from": "system",
"value": "Add documentation for getBestName function\n"
},
{
"from": "human",
"value": "getBestName = function(result){\n var bestName = \"\";\n if(typeof result[\"scientificName\"] !== \"undefined\"){\n bestName = result[\"scientificName\"];\n }\n if(typeo... | javascript | chosen |
[
{
"from": "system",
"value": "Fix the broken test and remove only.\n"
},
{
"from": "human",
"value": "import { expect } from '../spec_helper'\nimport { AUTHENTICATION, PROFILE } from '../../src/constants/action_types'\nimport { pushSubscriptionSaga } from '../../src/sagas/push_subscription'\nimp... | javascript | chosen |
[
{
"from": "system",
"value": "Fix initial output of NOT component\n"
},
{
"from": "human",
"value": "/**\n * Copyright: (c) 2017 Max Klein\n * License: MIT\n */\n\ndefine([\n\t'sim/Component',\n\t'lib/extend'\n], function (Component, extend) {\n\tfunction NotComponent() {\n\t\tComponent.call(thi... | javascript | chosen |
[
{
"from": "system",
"value": "Stop polling if receive 401 response\n"
},
{
"from": "human",
"value": "(function(){\n \"use strict\";\n var POLLING_INTERVAL = 3 * 1000;\n var POLLING_URL = \"/polling/alerts\";\n\n $(function(){\n var alert = new Vue({\n el: \"#alert\",\n data: {\... | javascript | chosen |
[
{
"from": "system",
"value": "Fix iterarting over NodeList in Firefox\n"
},
{
"from": "human",
"value": "/*\n * Copyright 2016 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the Lic... | javascript | chosen |
[
{
"from": "system",
"value": "Add friendly error in alert box when an error occurs.\n"
},
{
"from": "human",
"value": "function handleApiError(response) {\n\n if(!response || response.status === 200)\n return;\n\n if(response.status === 403 || response.status === 401) {\n logout();\n }\... | javascript | chosen |
[
{
"from": "system",
"value": "Improve the specs for Feature.search()\n"
},
{
"from": "human",
"value": "var assert = require('assert');\nvar seeds = require('../seeds');\nvar Feature = require('../feature');\n\ndescribe('Feature', function () {\n before(function (done) {\n seeds(done);\n })... | javascript | chosen |
[
{
"from": "system",
"value": "Update getProfile to utilize username rather than userId\n"
},
{
"from": "human",
"value": "let UserRecipes = require(`${__dirname}/../schemas.js`).UserRecipes;\n\nmodule.exports = {\n signup: (req, res) => {\n\n },\n\n login: (req, res) => {\n\n },\n\n logout:... | javascript | chosen |
[
{
"from": "system",
"value": "Allow an engine to be initialised using a constructor.\n"
},
{
"from": "human",
"value": "/**\n * Basic engine support.\n */\n\nrequire('../lib/setModuleDefaults');\n\nvar config = require('config');\nvar engineConfig = config.engines || {};\n\n/**\n * Return a func... | javascript | chosen |
[
{
"from": "system",
"value": ":bug: Fix multiple import of the same type\n"
},
{
"from": "human",
"value": "// @flow\n\nimport { actionCreatorName, actionCreatorRequestName, actionCreatorSuccessName, actionCreatorFailedName } from './utils'\nimport type { Schema } from './types'\n\nexport const ... | javascript | chosen |
[
{
"from": "system",
"value": "Allow user to type :)\n"
},
{
"from": "human",
"value": "import React, {PropTypes} from 'react'\n\nconst ENTER = 13\nconst ESCAPE = 27\nconst RawQueryEditor = React.createClass({\n propTypes: {\n query: PropTypes.shape({\n rawText: PropTypes.string.isRequir... | javascript | chosen |
[
{
"from": "system",
"value": "Add ajax call for sms script\n"
},
{
"from": "human",
"value": "$(document).ready(function(){\n\n // var turbolinks = require('turbolinks')\n\n $(\"#walk-me-home\").on(\"click\", function(e){\n e.preventDefault();\n\n $.ajax({\n url: \"http://172.16.50.... | javascript | chosen |
[
{
"from": "system",
"value": "Call all stopping points on error: stop updates, stop button change, and remove 'waiting' button\n\npending isolation to stop one graph\n"
},
{
"from": "human",
"value": "\nfunction renderWaiting(element) { \n\tdocument.getElementById(element).innerHTML = \"<i class... | javascript | chosen |
[
{
"from": "system",
"value": "Add eslint rules for spacing\n"
},
{
"from": "human",
"value": "module.exports = {\n parser: \"@typescript-eslint/parser\",\n parserOptions: {\n ecmaVersion: 2020,\n sourceType: \"module\",\n ecmaFeatures: {\n jsx: true\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add suport for Windows Uri Schemes\n"
},
{
"from": "human",
"value": "\n\tvar cordova = require('cordova'),\n\t\tfileOpener2 = require('./FileOpener2');\n\n\tmodule.exports = {\n\n\t open: function (successCallback, errorCallback, args) {\n\t Windows.Stora... | javascript | chosen |
[
{
"from": "system",
"value": "Fix fetchContent game parameter in GamesGameRoute\n\nFixes #575\nCaused by 50d95a1880a30ea697fa7784a85f787e37795493\n"
},
{
"from": "human",
"value": "import { set } from \"@ember/object\";\nimport Route from \"@ember/routing/route\";\nimport InfiniteScrollOffsetMix... | javascript | chosen |
[
{
"from": "system",
"value": "Remove some dead code in examples.\n\nsvn path=/trunk/; revision=409\n"
},
{
"from": "human",
"value": "IDEToolbarType = {\n parent: Gtk.Toolbar.type,\n name: \"IDEToolbar\",\n class_init: function(klass, prototype)\n {\n\n },\n instance_init: func... | javascript | chosen |
[
{
"from": "system",
"value": "Use beautiful scrolling if available\n"
},
{
"from": "human",
"value": "import React, { Component } from \"react\";\nimport ReactDOM from \"react-dom\";\n\nexport default class ResultItem extends Component {\n componentDidUpdate() {\n if (this.props.selected) {\... | javascript | chosen |
[
{
"from": "system",
"value": "Add params to share url\n"
},
{
"from": "human",
"value": "import { connect } from 'react-redux';\nimport shareIcon from 'assets/icons/share.svg';\nimport facebookIcon from 'assets/icons/facebook.svg';\nimport twitterIcon from 'assets/icons/twitter.svg';\nimport mai... | javascript | chosen |
[
{
"from": "system",
"value": "Remove unused part of code\n\nChange-Id: I2cc8c4b4ef6e4a5b3889edb1dd2fa1a9fc09bd94\n"
},
{
"from": "human",
"value": "//= require diamond/thesis_menu\n\n$(document).ready(function() {\n\n $(\".link-export\").click(function() {\n $(this).attr(\"href\", $.clear_qu... | javascript | chosen |
[
{
"from": "system",
"value": "Replace function that IE11 does not support\n\nhttps://bugzilla.redhat.com/show_bug.cgi?id=1448104\n"
},
{
"from": "human",
"value": "//= require jquery\n//= require novnc-rails\n//= require_tree ../locale\n//= require gettext/all\n\n$(function() {\n var host = win... | javascript | chosen |
[
{
"from": "system",
"value": "CommentsList: Fix \"this.get is not a function\" issue\n"
},
{
"from": "human",
"value": "import { inject as service } from '@ember/service';\n\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\nimport { task } from 'ember-co... | javascript | chosen |
[
{
"from": "system",
"value": "Change DP count in creature cap limit\n"
},
{
"from": "human",
"value": "$j(document).ready(function(){\n\tG = new Game();\n\n\t$j(\"form#gamesetup\").submit(function(e){\n\t\te.preventDefault(); //prevent submit\n\t\tgameconfig = {\n\t\t\tnbrPlayer: $j('select[name... | javascript | chosen |
[
{
"from": "system",
"value": "Make accounts-password depend on the newest version of npm-bcrypt.\n"
},
{
"from": "human",
"value": "Package.describe({\n summary: \"Password support for accounts\",\n version: \"1.1.8-rc.0\"\n});\n\nPackage.onUse(function(api) {\n api.use('npm-bcrypt@=0.7.8_2')... | javascript | chosen |
[
{
"from": "system",
"value": "Add labelling for dishes on grubhub\n"
},
{
"from": "human",
"value": "const mlModelPath = chrome.runtime.getURL('assets/model/model.json');\nconst tokenizerPath = chrome.runtime.getURL('assets/tokenizer.json');\n\n/** The entry point of the Chrome Extension. */\nas... | javascript | chosen |
[
{
"from": "system",
"value": "UI: Change GIthub PR to English\n"
},
{
"from": "human",
"value": "import React, { PropTypes } from \"react\"\n\nconst GitHubEditLink = ({ baseUrl, fileName, ...props }) => {\n const url = baseUrl + fileName\n\n return (\n <section {...props}>\n { \"Bài vi... | javascript | chosen |
[
{
"from": "system",
"value": "Move converter creation into it's own function for easier overriding"
},
{
"from": "human",
"value": "/* global showdown */\nimport Ember from 'ember';\nimport hbs from 'htmlbars-inline-precompile';\n\nconst { computed, get, Handlebars } = Ember;\n\nconst ShowdownCo... | javascript | chosen |
[
{
"from": "system",
"value": "Add documentation for base view\n"
},
{
"from": "human",
"value": "import Backbone from 'backbone';\nimport Geppetto from 'backbone.geppetto';\n\nclass BaseView extends Backbone.View {\n\tconstructor(options) {\n\t\tsuper(options);\n\n\t\tif (!options.context || !(o... | javascript | chosen |
[
{
"from": "system",
"value": "Use Meteor method to insert post.\n"
},
{
"from": "human",
"value": "Template.postSubmit.events({\n 'submit form': function (event) {\n event.preventDefault();\n console.log('submitted');\n\n var post = {\n url: $(event.target).fin... | javascript | chosen |
[
{
"from": "system",
"value": "Remove else in batch method\n"
},
{
"from": "human",
"value": "var vow = require('vow');\n\nvar ApiMethod = require('../lib/api-method');\nvar ApiError = require('../lib/api-error');\n\n/**\n * @typedef {Object} BatchApiMethod\n * @property {String} method Method na... | javascript | chosen |
[
{
"from": "system",
"value": "Exclude ssr build from coverage\n"
},
{
"from": "human",
"value": "module.exports = {\n verbose: true,\n collectCoverage: true,\n collectCoverageFrom: [\n 'libs/**/*.{js,jsx}',\n 'source/**/*.{js,jsx}',\n ],\n roots: [\n '<rootDir>/tests/',\n ],\n mo... | javascript | chosen |
[
{
"from": "system",
"value": "Add supertypes of token types to span classes\n\nThis allows styles to select `.KeywordType` instead of enumerating all\nkeyword types “manually”.\n"
},
{
"from": "human",
"value": "\"use strict\";\n\n/*\n NOT a general purpose escaper! Only valid when *content* of... | javascript | chosen |
[
{
"from": "system",
"value": "Switch to UTF-8 encoding of file to reflect contributor's name correctly\n"
},
{
"from": "human",
"value": "function addslashes (str) {\n // http://kevin.vanzonneveld.net\n // + original by: Kevin van Zonneveld (http://kevin.vanzonneveld.net)\n // + imp... | javascript | chosen |
[
{
"from": "system",
"value": "Add Chrome to local test runner.\n"
},
{
"from": "human",
"value": "module.exports = function(config) {\n\n 'use strict';\n\n require('./karma.conf')({\n\n set: function(base) {\n\n base.browsers = [\n 'Firefox',\n 'Opera',\n 'PhantomJ... | javascript | chosen |
[
{
"from": "system",
"value": "Increase of default amount of messages sent in history\n"
},
{
"from": "human",
"value": "'use strict';\n\n/*\n * All app specific configuration\n */\n\nconst config = {};\n\nconfig.gameLocation = {\n country : 'Sweden',\n lat : '59.751429',\n lon : '15.198645'\n... | javascript | chosen |
[
{
"from": "system",
"value": "blueprints/initializer-test: Use `options.entity-name` for test description\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst testInfo = require('ember-cli-test-info');\nconst stringUtils = require('ember-cli-string-utils');\n\nconst useTestFrameworkDetector... | javascript | chosen |
[
{
"from": "system",
"value": "Fix AMD editors that must have backbone forms\n\nWithout this, there's a race condition\n\nThis is how the AMD fixes were originally intended as of https://github.com/powmedia/backbone-forms/pull/89/files\nBut since this build-template file wasn't properly setup subsequent buil... | javascript | chosen |
[
{
"from": "system",
"value": "Split out update logic into its own method\n"
},
{
"from": "human",
"value": "/* global Chart */\nimport Ember from 'ember';\n\nexport default Ember.Component.extend({\n tagName: 'canvas',\n attributeBindings: ['width', 'height'],\n\n didInsertElement() {\n th... | javascript | chosen |
[
{
"from": "system",
"value": "Add a lots of metadata for events\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar rarity = require('rarity');\n\n/**\n * Upload `event` (containing event data) onto AnyFetch.\n *\n *\n * @param {Object} event Event to upload, plus anyfetchClient\n * @param {... | javascript | chosen |
[
{
"from": "system",
"value": "Test uniqueness as well (weak test though)\n"
},
{
"from": "human",
"value": "import React from 'react'\nimport {render} from 'react-dom'\nimport {equal, ok} from 'assert'\nimport uniqueName from './uniqueName'\n\ndescribe('uniqueName', () => {\n describe('no name ... | javascript | chosen |
[
{
"from": "system",
"value": "Remove comment because environment variable should be applied.\n"
},
{
"from": "human",
"value": "\"use strict\";\n\nvar fs = require(\"fs\");\nvar path = require(\"path\");\nvar Sequelize = require(\"sequelize\");\nvar env = /*process.env.NODE_ENV... | javascript | chosen |
[
{
"from": "system",
"value": "Add failing spec for fetch from isolated world\n"
},
{
"from": "human",
"value": "const {ipcRenderer, webFrame} = require('electron')\n\nwindow.foo = 3\n\nwebFrame.executeJavaScript('window.preloadExecuteJavaScriptProperty = 1234;')\n\nwindow.addEventListener('messa... | javascript | chosen |
[
{
"from": "system",
"value": "Set the columns and epics to hide on install\n"
},
{
"from": "human",
"value": "'use strict';\n\nchrome.runtime.onInstalled.addListener(details => {\n console.log('previousVersion', details.previousVersion);\n});\n\nchrome.tabs.onUpdated.addListener(tabId => {\n c... | javascript | chosen |
[
{
"from": "system",
"value": "Use rimraf instead of spawning rm -rf\n\nThus, it works on Windows!\n"
},
{
"from": "human",
"value": "var test = require(\"tap\").test\n , fs = require(\"fs\")\n , path = require(\"path\")\n , existsSync = fs.existsSync || path.existsSync\n , spawn = require(\"... | javascript | chosen |
[
{
"from": "system",
"value": "Use toString instead of asString\n"
},
{
"from": "human",
"value": "define(['./node', './joinId', './imports'], function (\n node, joinId, imports) {\n\n return function (requestedFiles, nodes) {\n var is = imports(requestedFiles, nodes);... | javascript | chosen |
[
{
"from": "system",
"value": "Upgrade if the user's file matches the previous\n"
},
{
"from": "human",
"value": "import fs from \"fs-extra\";\nimport path from \"path\";\nimport inquirer from \"inquirer\";\nimport sha1 from \"sha1\";\nimport readFileSyncStrip from \"../lib/readFileSyncStrip\";\n... | javascript | chosen |
[
{
"from": "system",
"value": "Convert 'ttp' string to link even if it appears at the first position of response\n"
},
{
"from": "human",
"value": "// ==UserScript==\n// @name Modify URL @2ch\n// @namespace curipha\n// @description Modify texts starting with \"ttp://\" to anchor... | javascript | chosen |
[
{
"from": "system",
"value": "FIX windows BS paths containing a slash in the freaking wrong direction, total BS\n"
},
{
"from": "human",
"value": "/* eslint-disable import/no-extraneous-dependencies, import/no-unresolved, import/extensions */\nimport { configure } from '@storybook/react';\nimpor... | javascript | chosen |
[
{
"from": "system",
"value": "Resolve all paths to CWD\n"
},
{
"from": "human",
"value": "var metaRouter = require('../');\nvar DataHolder = require('raptor-async/DataHolder');\n\nmodule.exports = function match(routes) {\n var matcher;\n var matcherDataHolder;\n\n if (typeof routes ===... | javascript | chosen |
[
{
"from": "system",
"value": "Add \"Add task\" functionality, use the mutation\n"
},
{
"from": "human",
"value": "var loadTodos = function() {\n $.ajax({\n url: \"/graphql?query={todoList{id,text,done}}\"\n }).done(function(data) {\n console.log(data);\n var dataParsed = JSON.parse(da... | javascript | chosen |
[
{
"from": "system",
"value": "Bump version of `accounts-password` in preparation for publishing.\n"
},
{
"from": "human",
"value": "Package.describe({\n summary: \"Password support for accounts\",\n version: \"1.3.6\"\n});\n\nPackage.onUse(function(api) {\n api.use('npm-bcrypt', 'server');\n\... | javascript | chosen |
[
{
"from": "system",
"value": "Create 'mountComponentWithRender' for testing with slots\n"
},
{
"from": "human",
"value": "const mountComponent = (Component, props = {}, el = null) =>\n new Component({\n propsData: props,\n }).$mount(el);\n\nexport const createComponentWithStore = (Component... | javascript | chosen |
[
{
"from": "system",
"value": "fix(TripSummary): Remove green bar outside of batch itinerary results.\n"
},
{
"from": "human",
"value": "import coreUtils from '@opentripplanner/core-utils'\nimport { ClassicLegIcon } from '@opentripplanner/icons'\nimport React from 'react'\n\nimport ItinerarySumma... | javascript | chosen |
[
{
"from": "system",
"value": "Enable searching by port in the Node > [Service] listing\n"
},
{
"from": "human",
"value": "import Controller from '@ember/controller';\nimport { get, set } from '@ember/object';\nimport WithFiltering from 'consul-ui/mixins/with-filtering';\n\nexport default Control... | javascript | chosen |
[
{
"from": "system",
"value": "Switch to Array.some instead of Array.forEach"
},
{
"from": "human",
"value": "// ==UserScript==\n// @name Twitch Auto Theater\n// @version 1.0.3\n// @updateURL https://raw.githubusercontent.com/domosapien/Twitch-Auto-Theater/master/twitch-auto-theat... | javascript | chosen |
[
{
"from": "system",
"value": "Make 'This week' button trigger onNavigateWeek with index 0\n\nThe onNavigateWeek action can be used to monitor what dates are showing\non the calendar external to the component. Previously however the\ncalendar did not expose an event that triggers when the ‘This week’\nbutton... | javascript | chosen |
[
{
"from": "system",
"value": "Remove search from location on cancel\n"
},
{
"from": "human",
"value": "'use strict';\n\nangular.module('Teem')\n .factory('NewForm', [\n '$location', '$window',\n function($location, $window) {\n var scope,\n objectName,\n scopeFn = {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add parent_location_id to TableChart datapoints\n"
},
{
"from": "human",
"value": "import Reflux from 'reflux'\nimport api from 'data/api'\n\nconst DatapointActions = Reflux.createActions({\n 'fetchDatapoints': { children: ['completed', 'failed'], asyncResult: true... | javascript | chosen |
[
{
"from": "system",
"value": "Add html generated by lf comment in bs documents\n"
},
{
"from": "human",
"value": "/**\n * @fileoverview Run the bootstrap service\n */\n\nvar port = 3020,\n system = require('system'),\n page = require('webpage').create(),\n server = require('./server').c... | javascript | chosen |
[
{
"from": "system",
"value": "Add default and placeholder value for save trip modal.\n"
},
{
"from": "human",
"value": "// Default values for form fields. \nexport const ACTIVITY_TITLE_PLACEHOLDER = 'What will you be doing?';\nexport const ACTIVITY_DESCRIPTION_PLACEHOLDER = 'Add some details!';\... | javascript | chosen |
[
{
"from": "system",
"value": "Add broadcasting of login event for non-github login\n"
},
{
"from": "human",
"value": "angular.module('codebrag.auth')\n\n .factory('authService', function($http, httpRequestsBuffer, $q, $rootScope, events) {\n\n var authService = {\n\n loggedI... | javascript | chosen |
[
{
"from": "system",
"value": "Fix HTML5 Video plugin JSHint errors\n"
},
{
"from": "human",
"value": "/*\n * CSS Modal Plugin for HTML5 Video (play/pause)\n * Author: Anselm Hannemann\n * Date: 2014-02-04\n */\n\n(function (global) {\n\n\t'use strict';\n\n\tvar CSSModal = global.CSSModal;\n\n\t/... | javascript | chosen |
[
{
"from": "system",
"value": "Fix second regression in blueprint.\n"
},
{
"from": "human",
"value": "module.exports = {\n normalizeEntityName: function() {},\n\n afterInstall: function() {\n return this.addBowerPackageToProject('fullcalendar', '^2.7.3').then(function () {\n return this... | javascript | chosen |
[
{
"from": "system",
"value": "Use name =q (fix the onpage search)\n"
},
{
"from": "human",
"value": "import PropTypes from 'prop-types';\nimport React, { Fragment } from 'react';\n\n\n/**\n * The Search Results component\n *\n * @disable-docs\n */\nconst SearchResults = ( page ) => {\n\n\treturn... | javascript | chosen |
[
{
"from": "system",
"value": "Add note about scoring algorithms for tex cache\n"
},
{
"from": "human",
"value": "!function(exports) {\n 'use strict';\n\n // Gets textures from URLs.\n // Keeps LRU cache so that textures are rebound as infrequently as possible.\n // How to implement LRU cache... | javascript | chosen |
[
{
"from": "system",
"value": "Change main route to get session user\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar path = process.cwd();\nvar Graphriend = require(path + '/app/controllers/Graphriend.server.js');\nvar sess;\n\nmodule.exports = function (app) {\n\n\tfunction isLoggedIn (r... | javascript | chosen |
[
{
"from": "system",
"value": "Handle undefined/null rd - encodeURIComponent apparently returns a string in such cases -_-*\n"
},
{
"from": "human",
"value": "import Ember from 'ember';\nimport { inject as service } from '@ember/service';\nimport config from '../config/environment';\n\nexport def... | javascript | chosen |
[
{
"from": "system",
"value": "Use inline variable declartion to save LOC\n"
},
{
"from": "human",
"value": "WebApp.connectHandlers.use(\"/package\", function(request, response) {\n var url = `https://atmospherejs.com/a/packages/findByNames\\\n?names=${request.url.split('/')[1]}`;\n var opts = ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix for webpack es6 example loader\n"
},
{
"from": "human",
"value": "var path = require('path');\nvar webpackSettings = require('../../webpack-helper');\n\nmodule.exports = webpackSettings({\n entry: './js/app',\n output: {\n filename: './js/app.min.js',\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Update offset tests for no arg\n"
},
{
"from": "human",
"value": "import test from 'ava';\nimport inView from '../src/in-view';\n\ntest('inView.offset returns the offset', t => {\n t.deepEqual(inView.offset(0), {\n top: 0,\n right: 0,\n botto... | javascript | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.