conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Fix hoem directory for windows\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\n'use strict';\n\nimport path from 'path';\nimport pkg from '../package.json';\nimport hogan from 'hogan.js';\nimport app from 'commander';\nimport DataStore from './DataStore';\n\... | javascript | chosen |
[
{
"from": "system",
"value": "Add action to Activate bridge\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport { c } from 'ttag';\nimport { SubTitle, Alert } from 'react-components';\n\nconst ProtonMailBridgeSection = () => {\n return (\n <>\n <SubTitle>Pr... | javascript | chosen |
[
{
"from": "system",
"value": "Fix recursive deep merge of context data\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst _ = require('lodash');\nconst utils = require('../utils');\nconst Log = require('../log');\nconst mix = require('../mixins/mix');\nconst Heritable = require('../mixins... | javascript | chosen |
[
{
"from": "system",
"value": "Use style from the original node, not the clone"
},
{
"from": "human",
"value": "export default function getCloneDimensions(node, options) {\n const { parentNode } = node\n const context = document.createElement('div')\n const clone = node.cloneNode(true)\n cons... | javascript | chosen |
[
{
"from": "system",
"value": "Replace range prop to values\n"
},
{
"from": "human",
"value": "/**\n * @copyright Copyright (c) 2019 Maxim Khorin <maksimovichu@gmail.com>\n */\n'use strict';\n\nconst Base = require('./Validator');\n\nmodule.exports = class RangeValidator extends Base {\n\n con... | javascript | chosen |
[
{
"from": "system",
"value": "Add deprecated shims for invalid args to node path functions\n\nSigned-off-by: Nathan Sobo <2e8aa918660411855c6d44d5bb2da677aa033255@github.com>\n"
},
{
"from": "human",
"value": "const electron = require('electron')\n\nelectron.ipcRenderer.sendChannel = function ()... | javascript | chosen |
[
{
"from": "system",
"value": "Change the onChange to call a new method onInputChange which sets the state for this component as the value, also calls the callback property onSearchTermChange passing in the value.\n"
},
{
"from": "human",
"value": "import React, { Component } from 'react';\n\ncla... | javascript | chosen |
[
{
"from": "system",
"value": "[server] Throw error if basePath or staticPath is missing\n"
},
{
"from": "human",
"value": "import path from 'path'\nimport get from 'lodash/get'\nimport merge from 'lodash/merge'\n\nconst applyStaticLoaderFix = (wpConfig, sanityConfig) => {\n // We need to fix th... | javascript | chosen |
[
{
"from": "system",
"value": "CSS: Make sure elem.ownerDocument.defaultView is not null\n\nFixes gh-2866\nClose gh-2867\n"
},
{
"from": "human",
"value": "define( function() {\n\treturn function( elem ) {\n\n\t\t// Support: IE<=11+, Firefox<=30+ (#15098, #14150)\n\t\t// IE throws on elements cre... | javascript | chosen |
[
{
"from": "system",
"value": "Fix bug when clicking on icon\n"
},
{
"from": "human",
"value": "var crawler = (function() {\n var that = {};\n\n that.accept = function(event) {\n update_status(event.target, '/crawling/accept/');\n };\n\n that.ignore = function(event) {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Remove vendor bundle from here as well\n"
},
{
"from": "human",
"value": "var path = require('path');\nvar webpack = require('webpack');\n\nmodule.exports = {\n entry: {\n ui: [\n 'webpack-dev-server/client?http://localhost:3001',\n 'webpack/hot/only-d... | javascript | chosen |
[
{
"from": "system",
"value": "Switch back to source-map for devtool\n\n[skip ci]\n"
},
{
"from": "human",
"value": "var common = require('./webpack.common.config.js');\nvar assign = require('object-assign');\n\nmodule.exports = assign(common, {\n debug: true,\n devtool: 'eval'\n});\n"
},... | javascript | chosen |
[
{
"from": "system",
"value": "Enable runtime addition of third party providers.\n"
},
{
"from": "human",
"value": "'use strict';\nvar alter = require('./alter');\nvar batoto = require('./batoto');\nvar kissmanga = require('./kissmanga');\nvar mangafox = require('./mangafox');\n\n/**\n * Retrieve... | javascript | chosen |
[
{
"from": "system",
"value": "Set domain to null for safety\n"
},
{
"from": "human",
"value": "import React from 'react'\nimport shallowEqual from 'shallowequal'\n\n\nexport const withDomain = ({\n domainClass,\n mapPropsToArg,\n mapPropsToArgsArray = props => mapPropsToArg ? [mapPropsToArg(p... | javascript | chosen |
[
{
"from": "system",
"value": "Make ChooseJobTypeScreen use data from Redux\n"
},
{
"from": "human",
"value": "import React, { Component } from 'react';\nimport { Container, Content, List } from 'native-base';\n\nimport JobTypeCard from './jobTypeCard';\nimport GlobalStyle from '../../common/glob... | javascript | chosen |
[
{
"from": "system",
"value": "Use ng-bind instead of {{}} for header entry directive.\n"
},
{
"from": "human",
"value": "\"use strict\";\n\nangular.module(\"hikeio\").\n\tdirective(\"headerEntry\", function() {\n\t\treturn {\n\t\t\tscope: {\n\t\t\t\talign: \"@\",\n\t\t\t\tlabel: \"@\",\n\t\t\t\t... | javascript | chosen |
[
{
"from": "system",
"value": "Use config for API url\n"
},
{
"from": "human",
"value": "define([\n 'Class', 'uri', 'bluebird',\n 'map/services/DataService'\n], function(Class, UriTemplate, Promise, ds) {\n\n 'use strict';\n\n var GET_REQUEST_ID = 'GeostoreService:get',\n SAVE_REQUEST_ID... | javascript | chosen |
[
{
"from": "system",
"value": "Add logo and navigation to results page\n"
},
{
"from": "human",
"value": "import React from 'react'\nimport { connect } from 'react-redux'\nimport _ from 'lodash'\nimport injectSheet from 'react-jss'\n\nimport ResourceCard from './resource-card'\n\nconst mapStateTo... | javascript | chosen |
[
{
"from": "system",
"value": "Write correct device id into value"
},
{
"from": "human",
"value": "/**\r\n * This static UI function fills the given HTML <select> element with HTML\r\n * <option> elements that represent each found device.\r\n * A device type to filter is optional, the default is ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix school vocal term manager test\n"
},
{
"from": "human",
"value": "import Ember from 'ember';\nimport { moduleForComponent, test } from 'ember-qunit';\nimport hbs from 'htmlbars-inline-precompile';\n\nconst { Object, RSVP } = Ember;\nconst { resolve } = RSVP;\n\n... | javascript | chosen |
[
{
"from": "system",
"value": "Fix `currentStateIndex` while time travelling\n"
},
{
"from": "human",
"value": "import commitExcessActions from './commitExcessActions';\n\nexport function recompute(previousLiftedState, storeState, action, nextActionId = 1, isExcess) {\n const actionId = nextActi... | javascript | chosen |
[
{
"from": "system",
"value": "Update rendering for new renderText method\n"
},
{
"from": "human",
"value": "function PlayState(playerPos) {\n \"use strict\";\n \n var self = this;\n var charSprite = new Sprite(\"img/char_S0.png\", function() {\n var charColl = new CollisionBod... | javascript | chosen |
[
{
"from": "system",
"value": "Update validation-rules prop to accept Array in addition to String\n"
},
{
"from": "human",
"value": "import Validator from 'validatorjs';\n\nexport default {\n props: {\n valid: {\n type: Boolean,\n default: true,\n twoWay... | javascript | chosen |
[
{
"from": "system",
"value": "Validate token parts before decoding.\n"
},
{
"from": "human",
"value": "//from: https://github.com/auth0/jwt-decode/blob/master/lib/index.js\nimport { base64UrlDecode } from './-base64-url-decode';\n\nexport function jwt_decode(token) {\n if (typeof token !== 'str... | javascript | chosen |
[
{
"from": "system",
"value": "Make diagnostics warning color more visible\n"
},
{
"from": "human",
"value": "angular.module(\"app\").controller(\"DiagnosticsDialogController\",\n\t\t\t\t function($scope, $mdDialog, roslib) {\n\n var OK = 0;\n var WARN = 1;\n var ERROR = 2;\n var STALE = 3;\n... | javascript | chosen |
[
{
"from": "system",
"value": "Test for String Object and value mutation of the same\n"
},
{
"from": "human",
"value": "var capitalize = require('../capitalize');\n\nvar chai = require('chai');\nvar expect = chai.expect;\n\ndescribe('capitalize', function() {\n\tit('capitalizes single words', fun... | javascript | chosen |
[
{
"from": "system",
"value": "Add minimized version of updated script.\n"
},
{
"from": "human",
"value": "(function(){var b=function(){var a=window.melange;this.prototype=new a.templates._baseTemplate;this.prototype.constructor=a.templates._baseTemplate;a.templates._baseTemplate.apply(this,argum... | javascript | chosen |
[
{
"from": "system",
"value": "Add link back to home page to pastes, change h1 to just 'Past ebin'\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport styles from '../../css/app.css';\nexport default class Application extends React.Component {\n\tconstructor( props, context ) {\... | javascript | chosen |
[
{
"from": "system",
"value": "Fix another path case inconsistency\n"
},
{
"from": "human",
"value": "import _ from 'lodash'\nimport axios from 'axios'\nimport moment from 'moment'\nimport Vue from 'vue'\nimport {assert, expect} from 'chai'\nimport moxios from 'moxios'\n\n// Emulate browser globa... | javascript | chosen |
[
{
"from": "system",
"value": "Check for missing closing quotes; print errors"
},
{
"from": "human",
"value": "var text = \"hello,this is a bad sentence.\";\n\n\nvar punctuation = \",.!;\";\n\nfor (var i = 0; i < text.length; i++) {\n if (punctuation.indexOf(text[i]) > -1) {\n if ((text[i+1] ... | javascript | chosen |
[
{
"from": "system",
"value": "[page] Add the cartrige left compoennt in the mixin.\n"
},
{
"from": "human",
"value": "var isFunction = require('lodash/lang/isFunction');\nvar dispatcher = require('focus').dispatcher;\nmodule.exports = {\n /**\n * Register the cartridge.\n */\n _reg... | javascript | chosen |
[
{
"from": "system",
"value": "Make query slightly more complex\n"
},
{
"from": "human",
"value": "import assert from \"assert\";\nimport { introspectStarwars } from './introspectStarwars';\nimport { initTemplateStringTransformer } from '../src/index';\nimport fs from 'fs';\nimport path from 'pat... | javascript | chosen |
[
{
"from": "system",
"value": "Remove manual setting of application environment\n"
},
{
"from": "human",
"value": "/* ************************************************************************\n\n coretest\n\n Copyright:\n 2010 Deutsche Telekom AG, Germany, http://telekom.com\n\n **********... | javascript | chosen |
[
{
"from": "system",
"value": "Fix threshold is reset when edit alert rule\n\nhttps://github.com/rancher/rancher/issues/22210\n"
},
{
"from": "human",
"value": "import { get, set } from '@ember/object';\nimport Component from '@ember/component';\nimport { inject as service } from '@ember/service'... | javascript | chosen |
[
{
"from": "system",
"value": "Remove fs from test dependencies.\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar expect = require('chai').expect,\n fs = require('fs'),\n uncss = require('../lib/uncss');\n\ndescribe('Using globbing patterns', function () {\n\n it('should find... | javascript | chosen |
[
{
"from": "system",
"value": "Remove socket test code, push io object to routes\n"
},
{
"from": "human",
"value": "var express = require('express');\nvar app = express();\nvar server = require('http').createServer(app); \nvar io = require('socket.io').listen(server);\n//var models = require(\".... | javascript | chosen |
[
{
"from": "system",
"value": "Use require.resolve to turn partial filenames or '.' into full names\n"
},
{
"from": "human",
"value": "'use strict'\n\nvar path = require('path')\nvar createTransform = require('./transform')\n\nmodule.exports = function degreePlugin (browserify, options) {\n brow... | javascript | chosen |
[
{
"from": "system",
"value": "QS-1001: Access translated components by ref\n"
},
{
"from": "human",
"value": "import { default as React } from 'react';\nimport en from './en';\nimport es from './es';\n\nconst locales = {en, es};\n\nexport default function translate(key) {\n return Component =... | javascript | chosen |
[
{
"from": "system",
"value": "Support rename html tech to bemjson2html\n"
},
{
"from": "human",
"value": "var PATH = require('path'),\n\n pjoin = PATH.join,\n presolve = PATH.resolve.bind(null, __dirname),\n\n PRJ_ROOT = presolve('../../'),\n\n PRJ_TECHS = presolve('../techs/');\n\n\... | javascript | chosen |
[
{
"from": "system",
"value": "Fix link to api and public api.\n"
},
{
"from": "human",
"value": "angular\n .module('app')\n .controller('apiController', [\n '$rootScope',\n '$scope',\n '$location',\n '$routeParams',\n 'authService',\n 'MARLINAPI_CO... | javascript | chosen |
[
{
"from": "system",
"value": "fix(directive): Convert to new lit-html standard\n"
},
{
"from": "human",
"value": "import { directive } from 'lit-html/lit-html.js'\n\n/*\n * Convert an RGB-Array into a Hex color\n */\nexport const rgbToHex = (value, defaultValue = '#000000') => directive(part => ... | javascript | chosen |
[
{
"from": "system",
"value": "Update for auto-positioning monitors so that having just one of x or y be 0 (e.g. a monitor placed in the top right corner of the stage) does not result in the monitor being treated as a new monitor and get auto-positioned.\n"
},
{
"from": "human",
"value": "const {... | javascript | chosen |
[
{
"from": "system",
"value": "Return the point as a number.\n"
},
{
"from": "human",
"value": "'use strict';\n\nangular.module('kanbanBoardApp')\n .controller('BoardCtrl', ['$scope', 'Task', 'Project', 'Workspace', 'Tag', 'WORKSPACE_ID', 'PROJECT_ID', function ($scope, Task, Project, Workspace,... | javascript | chosen |
[
{
"from": "system",
"value": "Use a spread instead of Array.from\n"
},
{
"from": "human",
"value": "import builder from 'xmlbuilder';\nimport kebabCase from 'lodash/kebabCase';\n\n// custom stringify options for xml builder\n// just kebab-cases all attributes and tag names\nconst customStringify... | javascript | chosen |
[
{
"from": "system",
"value": "Add a successRedirect by default\n\nIt makes more sense to have a successRedirect by default. This way the user doesn’t see naked JSON in the auth response.\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst authentication = require('feathers-authentication'... | javascript | chosen |
[
{
"from": "system",
"value": "Fix domain detection in ws request\n"
},
{
"from": "human",
"value": "module.exports = {\n server: function(primus, options) {\n primus.on('connection', function(spark) {\n spark.hostname = spark.request.headers.host.split(':')[0];\n });\n }\n};\n"
},... | javascript | chosen |
[
{
"from": "system",
"value": "Add route that responds with json\n"
},
{
"from": "human",
"value": "var express = require('express');\nvar app = express();\n\napp.get('/', function (req, res) {\n\tres.send('Destroy all humans!');\n});\n\nvar server = app.listen(3000, function () {\n\tvar port = s... | javascript | chosen |
[
{
"from": "system",
"value": "Update Oozie and Hive URLs.\n"
},
{
"from": "human",
"value": "var CELOS_USER = \"celos\";\n\nvar CELOS_DEFAULT_OOZIE = \"http://admin1.ny7.collective-media.net:11000/oozie\";\n\nvar CELOS_DEFAULT_HDFS = \"hdfs://nameservice1\";\n\nvar NAME_NODE = CELOS_DEFAULT_HDFS... | javascript | chosen |
[
{
"from": "system",
"value": "Change some service worker caching behavior.\n* Ignore socket requests when in development.\n* Use fastest for google assets.\n* Add some todos to think about.\n"
},
{
"from": "human",
"value": "import toolbox from 'sw-toolbox';\n\n/* global process */\ntoolbox.opti... | javascript | chosen |
[
{
"from": "system",
"value": "Fix wrong closing tag in reference_many filter\n\nRefs #905\n"
},
{
"from": "human",
"value": "export default {\n getReadWidget: () => '<ma-choices-column values=\"::entry.listValues[field.name()]\"></ma-choices-column>',\n getLinkWidget: () => '<ma-refere... | javascript | chosen |
[
{
"from": "system",
"value": "Fix example to work on Node v1 and earlier\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar evil = require( './../lib' );\n\nfunction compile( ctor ) {\n\tvar name;\n\tvar str;\n\n\tname = ctor.match( /^(\\w*)Array$/ )[ 1 ];\n\tname = name + 'DataArray';\n\n\... | javascript | chosen |
[
{
"from": "system",
"value": "Fix code dir for docker container\n"
},
{
"from": "human",
"value": "import DockerContainer from './DockerContainer.js'\nimport { checkDockerDaemon } from '../../../utils/index.js'\n\nexport default class DockerRunner {\n #codeDir = null\n #container = null\n\n c... | javascript | chosen |
[
{
"from": "system",
"value": "Fix portal import from react-dom"
},
{
"from": "human",
"value": "import React from 'react';\nimport PropTypes from 'prop-types';\nimport { createPortal } from 'react-dom';\nimport { canUseDOM } from './utils';\n\nclass Portal extends React.Component {\n componentW... | javascript | chosen |
[
{
"from": "system",
"value": "Add default value for changeHandlerName to config\n"
},
{
"from": "human",
"value": "// function to create the singleton options object that can be shared\n// throughout an application\nfunction createurlQueryConfig() {\n // default options\n return {\n // add ... | javascript | chosen |
[
{
"from": "system",
"value": "Mark websocket as external for webpack\n"
},
{
"from": "human",
"value": "const { resolve, join } = require(\"path\");\nconst { IgnorePlugin } = require(\"webpack\");\nconst path = require(\"path\");\n\nconst moduleRoot = resolve(__dirname, \"..\");\nconst outputPat... | javascript | chosen |
[
{
"from": "system",
"value": "Remove comment about former functionality\n"
},
{
"from": "human",
"value": "// on click of a tag, it should be toggled - either added to or removed from an internal tracking\n// array and its style changed.\n//\n// When the internal array changes, it should write o... | javascript | chosen |
[
{
"from": "system",
"value": "Fix long featured gene captions which were overflowing thumbs\n"
},
{
"from": "human",
"value": "import React from 'react'\nimport PropTypes from 'prop-types'\nimport styled from 'styled-components'\nimport { primary } from '@artsy/reaction-force/dist/Assets/Fonts'\... | javascript | chosen |
[
{
"from": "system",
"value": "Fix a couple of minor syntax errors in the test\n"
},
{
"from": "human",
"value": "var expect = require('chai').expect;\nvar request = require('request');\nvar server = require('../server').server;\n\nvar connection;\n\ndescribe('Server', function() {\n describe('p... | javascript | chosen |
[
{
"from": "system",
"value": "Remove first two pages on build :)\n"
},
{
"from": "human",
"value": "var prince = require(\"prince\");\nvar open = require('open');\nvar fs = require('fs');\n\nvar SHOULD_OPEN = true;\n\nfs.exists('dist/prince.log', function(exists) {\n if(exists) {\n console.l... | javascript | chosen |
[
{
"from": "system",
"value": "Modify toLower() to pass returned result test\n"
},
{
"from": "human",
"value": "/**\n * Has Vowels\n * \n * hasVowel tests if the String calling the function has a vowels\n * \n * @param {void}\n * @return {Boolean} returns true or false indicating if the string\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix UI spinner stopping immediately\n"
},
{
"from": "human",
"value": "const { Spinner } = require('cli-spinner');\nconst inquirer = require('inquirer');\nconst log = require('../lib/log');\n\nSpinner.setDefaultSpinnerString(Spinner.spinners[7]);\n\n\nmodule.exports... | javascript | chosen |
[
{
"from": "system",
"value": "Use $timeout as explained in readme for the progress control button\n"
},
{
"from": "human",
"value": "angular.module('progressButtonDemo', ['progressButton'])\n\t.controller('ProgressButtonsCtrl', function($scope) {\n\t\t$scope.generate = function(button) {\n\t\t\t... | javascript | chosen |
[
{
"from": "system",
"value": "Add in some basic csv parsing and info retrieval\n\n"
},
{
"from": "human",
"value": "//jshint esversion:6\nconst api = require('./api/api');\nconst cod = \"\";\n\napi.getInfo(cod)\n .then(function (res) {\n console.log(res);\n }).catch(function (err) {\n co... | javascript | chosen |
[
{
"from": "system",
"value": "[client] Add method to alter dataset properties\n"
},
{
"from": "human",
"value": "const assign = require('object-assign')\nconst validate = require('../validators')\n\nfunction DatasetsClient(client) {\n this.request = client.request.bind(client)\n}\n\nassign(Data... | javascript | chosen |
[
{
"from": "system",
"value": "Add env var to allow printing to console\n"
},
{
"from": "human",
"value": "const winston = require('winston');\n\nlet logger;\n\nwinston.level = process.env.NVIM_NODE_LOG_LEVEL || 'debug';\n\nif (process.env.NVIM_NODE_LOG_FILE) {\n logger = new winston.Logger({\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix status bug with the new quick update.\n"
},
{
"from": "human",
"value": "Hummingbird.QuickUpdateItemController = Ember.ObjectController.extend({\n loading: false,\n isComplete: Hummingbird.computed.propertyEqual('episodesWatched', \"anime.episodeCount\"),\n\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Clean up unused packages in tests\n"
},
{
"from": "human",
"value": "var chai = require('chai'),\n sinon = require('sinon'),\n rewire = require('rewire');\n\nrequire('sinon-as-promised');\n\nvar expect = chai.expect;\nvar assert = chai.assert;\n\n\ndescribe... | javascript | chosen |
[
{
"from": "system",
"value": "Fix tests to run on node.js 5\n"
},
{
"from": "human",
"value": "const { NSEventMonitor, NSEventMask } = require('../');\nconst assert = require('assert');\nconst app = require('./support/App');\nconst mouse = require('./support/Mouse');\n\ndescribe('NSEventMonitor'... | javascript | chosen |
[
{
"from": "system",
"value": "Fix resizer for election's embeds"
},
{
"from": "human",
"value": "colette.iframeResizer = (function() {\n 'use strict';\n\n var pub = {},\n cfg = {\n selector: '#iframeContent',\n el: null,\n delay: 0,\n resi... | javascript | chosen |
[
{
"from": "system",
"value": "Add Reference list model for Recommended Family Constellations.\n"
},
{
"from": "human",
"value": "var keystone = require('keystone'),\n\tTypes = keystone.Field.Types;\n\n// Create model. Additional options allow menu name to be used what auto-generating URLs\nvar R... | javascript | chosen |
[
{
"from": "system",
"value": "Fix page's title in pdf header/footer\n"
},
{
"from": "human",
"value": "var juice = require('juice');\n\nvar WebsiteGenerator = require('../website');\nvar JSONUtils = require('../../json');\nvar Templating = require('../../templating');\nvar Promise = require('../... | javascript | chosen |
[
{
"from": "system",
"value": "Use event module for model object of GeoNames locations\n"
},
{
"from": "human",
"value": "(function(app) {\n 'use strict';\n\n var GeoNamesLocations = function() {};\n\n if (typeof module !== 'undefined' && module.exports) {\n module.exports = GeoNamesLocatio... | javascript | chosen |
[
{
"from": "system",
"value": "Increase some slider auto play delay time\n"
},
{
"from": "human",
"value": "(function () {\n\n if ($('body#home-page').length === 0) return; // Check if it is home page\n\n var Flickity = require('flickity');\n\n var fkt = new Flickity('#home-carousel', {\... | javascript | chosen |
[
{
"from": "system",
"value": "Use the new RulesEngine configuration service for vars\n"
},
{
"from": "human",
"value": "angular.module('OpiferEntityPicker', ['ui.bootstrap.typeahead'])\n\n .directive('entityPicker', function() {\n\n var tpl =\n '<input type=\"text\" ng-model... | javascript | chosen |
[
{
"from": "system",
"value": "Fix logic for assigning to self if window doesn't exist.\n"
},
{
"from": "human",
"value": "/*global require*/\n// require in the complete Cesium object and reassign it globally.\n// This is meant for use with the Almond loader.\nrequire(['Cesium'], function(Cesium)... | javascript | chosen |
[
{
"from": "system",
"value": "Use const instead of let on never reassigned var\n\nSigned-off-by: Julen Landa Alustiza <9f547bdd49d2612aea2f3e70f57e0c5f51269763@zokormazo.info>\n"
},
{
"from": "human",
"value": "const templateUrl = require('~components/layout/side-nav.partial.html');\n\nfunction ... | javascript | chosen |
[
{
"from": "system",
"value": "Remove call to non-existent function\n"
},
{
"from": "human",
"value": "\nfunction square(x) {\n return x * x;\n}\n\n\n\n\nfunction toggleRed() {\n $('#second-div').toggleClass('red');\n}\n\n\nfunction onGotData(data) {\n var table = $('#my-table-body');\n data.... | javascript | chosen |
[
{
"from": "system",
"value": "Add user ID tracking to Google Analytics\n"
},
{
"from": "human",
"value": "(function(i, s, o, g, r, a, m) {\n i['GoogleAnalyticsObject'] = r;\n i[r] = i[r] || function() {\n (i[r].q = i[r].q || []).push(arguments)\n }, i[r].l = 1 * new Date();\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix: Resolve build issue caused by using window object server side.\n"
},
{
"from": "human",
"value": "import React from 'react'\nimport Layout from '@theme/Layout'\nimport useDocusaurusContext from '@docusaurus/useDocusaurusContext'\nimport 'url-search-params-polyf... | javascript | chosen |
[
{
"from": "system",
"value": "Fix the decimal places limitation (at a758918).\n"
},
{
"from": "human",
"value": "var num;\nvar result;\n\nvar getIntegerDecimalPart = function(num) {\n var integer = Math.floor(num);\n var decimal = (num - integer).toFixed(5); // temporarily, 5 digits to appea... | javascript | chosen |
[
{
"from": "system",
"value": "Modify setMentor. Remove unnessary test function\n"
},
{
"from": "human",
"value": "app.controller('SearchController', ['$http', '$mdDialog', 'BioFactory', function($http, $mdDialog, BioFactory) {\n console.log('SearchController running');\n var self = this;\n\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix the mistake on detect keyword, add the response of /new command\n"
},
{
"from": "human",
"value": "var telegramBot = require('node-telegram-bot-api');\nvar log4js = require('log4js');\n\nvar nconf = require('nconf');\nnconf.file('config', __dirname + '/config.js... | javascript | chosen |
[
{
"from": "system",
"value": "lathe[cuboid]: Fix incorrect bounding primitives for mesh intersections.\n"
},
{
"from": "human",
"value": "/* global THREE */\n/*\nexported\nremove\nround\ncreateVertexHelper\nupdateGeometry\ncreateTextLabel\n*/\nfunction remove( object ) {\n if ( object && object... | javascript | chosen |
[
{
"from": "system",
"value": "Fix tests (using local module)\n"
},
{
"from": "human",
"value": "/* eslint no-console: 0 */\nvar DBWrkrMongoDb = require('dbwrkr-mongodb');\nvar dbWrkrTests = require('dbwrkr').tests;\n\nvar testOptions = {\n storage: new DBWrkrMongoDb({\n dbName: 'dbwrkr_tests... | javascript | chosen |
[
{
"from": "system",
"value": "Add check against missing library versions\n\n@tomByrer, Please check your PR. Now it outputs just bootstrap library\nfor Bootstrap CDN.\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar fs = require('fs');\nvar path = require('path');\n\nvar sortVersions = re... | javascript | chosen |
[
{
"from": "system",
"value": "Fix for pre-logged in Overview\n"
},
{
"from": "human",
"value": "// not sure how far to take this\n// could make every mode extend methods like go, hide, show\n // not a fan, not enough modes to bother yet\n // naming is consistent enough to do this the dumb ... | javascript | chosen |
[
{
"from": "system",
"value": "Change CLI such that long form doesn't use -- before the argument\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar program = require('commander');\nvar packageInfo = require('../package.json');\nvar jokes = require('./jokes.js');\nvar advice = require('./advi... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"Chunk calls to stripAnsi to avoid blowing max string length on regex.\"\n\nNot necessary now that splitLongWords won't blow stack.\n\nThis reverts commit fd6a0c9f04fa0e247b82a86b85ee99d4054690b3.\n"
},
{
"from": "human",
"value": "var stripAnsi = require('s... | javascript | chosen |
[
{
"from": "system",
"value": "Add case insensitive matching feature\n"
},
{
"from": "human",
"value": "chrome.storage.local.get(['pattern', 'color', 'opacity'], function(items) {\n var pattern, color, opacity;\n\n pattern = items.pattern;\n if (!pattern) {\n pattern = 'WIP';\n }\n patter... | javascript | chosen |
[
{
"from": "system",
"value": "Apply position on mesh, not geometry\n"
},
{
"from": "human",
"value": "(function () {\n \"use strict\";\n\n var Frame = function (elem) {\n if (typeof elem === 'string') {\n elem = document.getElementById(elem);\n }\n\n var hei... | javascript | chosen |
[
{
"from": "system",
"value": "Add new metric: web font requests\n\n* webfontCount\n* webfontSize\n\nIssue #24\n"
},
{
"from": "human",
"value": "/**\n * Analyze number of requests and sizes of differet assets types\n */\nexports.version = '0.1';\n\nexports.module = function(phantomas) {\n\t['htm... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"Added redirect to javicaballero.com\"\n\nThis reverts commit 1b613fcc1ef745bea91dfd0431633f5261329b03.\n"
},
{
"from": "human",
"value": "var express = require('express');\nvar app = express();\n\napp.set('port', (process.env.PORT || 8080));\n\n//Public fil... | javascript | chosen |
[
{
"from": "system",
"value": "Convert gameState to JS object and pass to template\n"
},
{
"from": "human",
"value": "var express = require('express');\nvar http = require('http');\nvar socketIO = require('socket.io');\nvar path = require('path');\nvar m = require('mori');\nvar game = require('./... | javascript | chosen |
[
{
"from": "system",
"value": "[fix] Copy the manifest.webapp file to the build dir\n"
},
{
"from": "human",
"value": "'use strict'\n\nconst CopyPlugin = require('copy-webpack-plugin')\n\nmodule.exports = {\n plugins: [\n new CopyPlugin([\n { from: 'vendor/assets', ignore: ['.gitkeep'] }... | javascript | chosen |
[
{
"from": "system",
"value": "[eslint] Allow template literal for quote rule\n"
},
{
"from": "human",
"value": "'use strict';\n\nmodule.exports = {\n env: {\n es6: true,\n node: true,\n browser: true,\n },\n extends: 'eslint:recommended',\n parserOptions: {\n sourceType: 'module'... | javascript | chosen |
[
{
"from": "system",
"value": "Remove old class declaration and ensure store exists.\n"
},
{
"from": "human",
"value": "/**\n * Internal dependencies\n */\nimport Data from 'googlesitekit-data';\nimport { STORE_NAME as CORE_MODULES } from '../../googlesitekit/modules/datastore/constants';\nimport... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"[CHORE] fire callback with error or processes\"\n\nThis reverts commit 9a5fc4935bb6e755c4a242259bc416fa4acdad37.\n"
},
{
"from": "human",
"value": "var GatewayProcessManager = require(__dirname+'/../process_manager.js');\n\n/**\n * @function startGateway\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix up syntax error in JS from my merge/port upto V8 - oops :(\n"
},
{
"from": "human",
"value": "(function () {\n function CreateNotifyController(\n $scope,\n contentResource,\n navigationService,\n angularHelper) {\n var vm = ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix removing filter for hostname filters\n"
},
{
"from": "human",
"value": "define([], function () {\n return function () {\n var container = document.createElement(\"ul\")\n container.classList.add(\"filters\")\n var div = document.createElement(\"div\")\... | javascript | chosen |
[
{
"from": "system",
"value": "Move HTTP server definition to end of module\n"
},
{
"from": "human",
"value": "import express from 'express';\nimport compression from 'compression';\nimport expressEnforcesSSL from 'express-enforces-ssl';\nimport helmet from 'helmet';\nimport http from 'http';\nim... | javascript | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.