conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Fix lp:1302500 by evaluating an empty context to avoid error\n\n"
},
{
"from": "human",
"value": "openerp.web_context_tunnel = function(instance) {\n\n instance.web.form.FormWidget.prototype.build_context = function() {\n var v_context = false;\n va... | javascript | chosen |
[
{
"from": "system",
"value": "Fix problem where overwriteStyle fail if source is empty\n"
},
{
"from": "human",
"value": "export default {\n /**\n * Get computed style of an element.\n * @param {Element} element\n * @return {Object} computerd style object\n */\n getComputedStyle(elemen... | javascript | chosen |
[
{
"from": "system",
"value": "Make iFrame size correctly when loaded\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport Relay from 'react-relay';\n\nclass Survey extends React.Component {\n styles = {\n frame: {\n display: 'block',\n border: 'none',\n width:... | javascript | chosen |
[
{
"from": "system",
"value": "Fix linux only path strings.\n"
},
{
"from": "human",
"value": "var path = require('path')\n , fs = require('fs')\n ;\n\n/**\n * Reads all the JavaScript files within a directory, assuming they are all \n * proper node.js modules, and loads them. \n * @return {Arr... | javascript | chosen |
[
{
"from": "system",
"value": "Make error message more explicit\n"
},
{
"from": "human",
"value": "const ldap = require(\"ldapjs\");\n\nconst parseLdapFilter = function (filterString) {\n try {\n const filter = ldap.parseFilter(filterString);\n return { filter: filter, isValid: true };\n ... | javascript | chosen |
[
{
"from": "system",
"value": ":art: Remove margin around highlighted search match\n"
},
{
"from": "human",
"value": "/* @flow */\n\nconst LINE_BREAKS_REGEX = /(?:\\r\\n|\\r|\\n)/g\n\nexport default document.registerElement('textual-velocity-preview', {\n prototype: Object.assign(Object.create(H... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"Count filtered r/all as a fake subreddit\"\n\nThis reverts commit 6bf0ad99e6cd2334dbe359d43757d7f3df36aa6b.\n"
},
{
"from": "human",
"value": "const randomSubs = ['random', 'randnsfw', 'myrandom'];\nconst fakeSubs = ['all', 'mod', 'friends'].concat(randomSu... | javascript | chosen |
[
{
"from": "system",
"value": "Create layout for log in page\n"
},
{
"from": "human",
"value": "import React, { Component } from 'react';\nimport {\n AppRegistry,\n StyleSheet,\n Container,\n TextInput,\n Label,\n Text,\n View,\n Button,\n } from 'react-native';\n\nexport default class L... | javascript | chosen |
[
{
"from": "system",
"value": "Remove sticky menu for widths <500px\n\nUsed the built-in `min-width` setting from jQuery.pin. Chose 500px for breakpoint because that's where the menu style changes in CSS."
},
{
"from": "human",
"value": "$(function() {\n var share = new Share(\"#share-button-top... | javascript | chosen |
[
{
"from": "system",
"value": "Set highlightable to false on SVG components\n"
},
{
"from": "human",
"value": "var Component = require('./Component');\n\nmodule.exports = Component.extend({\n\n getName() {\n let name = this.get('tagName');\n let customName = this.get('custom-name');\n n... | javascript | chosen |
[
{
"from": "system",
"value": "Add attribute to viewdata to store total video time\n"
},
{
"from": "human",
"value": "/**\n* ViewData.js\n*\n* @description :: This model represents the data for all the video statistics.\n* @docs :: http://sailsjs.org/#!documentation/models\n*/\n\nmodule.ex... | javascript | chosen |
[
{
"from": "system",
"value": "Use var for compatibility with Android 4.x\n"
},
{
"from": "human",
"value": "var NativeStorageError = require('./NativeStorageError');\n\n// args = [reference, variable]\nfunction LocalStorageHandle(success, error, intent, operation, args) {\n var reference = ar... | javascript | chosen |
[
{
"from": "system",
"value": "Fix bug where heading was not always updated"
},
{
"from": "human",
"value": "import Ember from 'ember';\nimport request from 'ic-ajax';\nimport ENV from './../config/environment';\nvar run = Ember.run;\n\nconst POLL_INTERVAL = 15 * 1000;\n\nexport default Ember.Rou... | javascript | chosen |
[
{
"from": "system",
"value": "Change the position of popup\n"
},
{
"from": "human",
"value": "import React from 'react'\nimport { Popup, Image, Segment, Container, Statistic, Icon } from 'semantic-ui-react'\n\nconst User = ({ user, children }) => {\n const url = user.url || `https://twitter.com... | javascript | chosen |
[
{
"from": "system",
"value": "Use new urlResource options from CM\n"
},
{
"from": "human",
"value": "/**\n * @class Denkmal_App\n * @extends CM_App\n */\nvar Denkmal_App = CM_App.extend({\n\n ready: function() {\n CM_App.prototype.ready.call(this);\n\n this._registerServiceWorker();\n },... | javascript | chosen |
[
{
"from": "system",
"value": "Handle errors when traversing the node_modules dir to stop EventEmitter throwing an exception\n"
},
{
"from": "human",
"value": "import findit from 'findit'\nimport path from 'path'\nimport fs from 'fs'\n\nexport default () => {\n const finder = findit(path.join(pr... | javascript | chosen |
[
{
"from": "system",
"value": "Fix 'file not found' when loading translation files.\n"
},
{
"from": "human",
"value": "const i18next = require('i18next');\nconst i18nextXHRBackend = require('i18next-xhr-backend');\nconst jqueryI18next = require('jquery-i18next');\n\ni18next\n.use(i18nextXHRBacken... | javascript | chosen |
[
{
"from": "system",
"value": "Update config in monitor bin\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\n\n'use strict';\n\nconst program = require('commander');\nconst Config = require('../lib/config');\nconst Monitor = require('../lib/monitor');\n\nprogram.version(require('../package... | javascript | chosen |
[
{
"from": "system",
"value": "Refactor to inline value search\n"
},
{
"from": "human",
"value": "'use strict';\n\n// MODULES //\n\nvar indexOf = require( '@stdlib/utils/index-of' );\nvar orders = require( '@stdlib/types/ndarray/base/orders' );\n\n\n// VARIABLES //\n\nvar ORDERS = orders();\n\n\n... | javascript | chosen |
[
{
"from": "system",
"value": "Remove not needed functions and move from other files\n"
},
{
"from": "human",
"value": "import _ from 'lodash';\n\n/**\n * Returns copy of an object with mapped values. Works really similar to\n * lodash's mapValues, with difference that also EVERY nested object is... | javascript | chosen |
[
{
"from": "system",
"value": "Check if text content has been changed\n"
},
{
"from": "human",
"value": "describe('scrambler tests', function(){\n beforeEach(function() {\n fixture.setBase('fixtures')\n });\n\n beforeEach(function(){\n this.sample = fixture.load('sample.htm... | javascript | chosen |
[
{
"from": "system",
"value": "Use babel helper modules on es2015 sources\n\nFixes #183\n"
},
{
"from": "human",
"value": "module.exports = {\n plugins: ['@babel/plugin-proposal-async-generator-functions'],\n env: {\n es: {\n plugins: ['./babel-plugin-pure-curry']\n },\n cjs: {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add the auth path for onboarding"
},
{
"from": "human",
"value": "function getRoute(path, subComponentName) {\n return {\n path: path,\n subComponentName: subComponentName,\n getComponents(location, cb) {\n require.ensure([], (require) => {\n c... | javascript | chosen |
[
{
"from": "system",
"value": "Rename `BaseStore` into `Store` in `Offline` namespace\n"
},
{
"from": "human",
"value": "/**\n * Addon that extends ember-data with ember-flexberry-projections to support work in offline mode.\n *\n * @module ember-flexberry-offline\n * @main ember-flexberry-offlin... | javascript | chosen |
[
{
"from": "system",
"value": "Change Link component for a tag in LinkedIn logo\n\nexternal links require an a tag to work correctly"
},
{
"from": "human",
"value": "//@flow\n\nimport React from \"react\";\nimport { Link } from \"react-router-dom\";\nimport { pure, compose, withState, withHandler... | javascript | chosen |
[
{
"from": "system",
"value": "Change ports and env variable names\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar senecaOptions = {\n transport: {\n web: {\n port: process.env.PORT || 8080\n }\n },\n apiBaseUrl: process.env.API_BASE_URL || 'http://localh... | javascript | chosen |
[
{
"from": "system",
"value": "[cms] Patch for CKEditor and IE11"
},
{
"from": "human",
"value": "// bootstrap-ckeditor-fix.js\n// hack to fix ckeditor/bootstrap compatiability bug when ckeditor appears in a bootstrap modal dialog\n//\n// Include this file AFTER both jQuery and bootstrap are load... | javascript | chosen |
[
{
"from": "system",
"value": "Set angular as default in blueprint"
},
{
"from": "human",
"value": "// jshint node:true\n\n// For details on each option run `ember help release`\nmodule.exports = {\n\n // ember style guide: https://github.com/emberjs/ember.js/blob/master/CONTRIBUTING.md#commit-t... | javascript | chosen |
[
{
"from": "system",
"value": "Fix issues with the seed script\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\n\nconst storage = require('../storage')\nconst fixtures = require('./fixtures')\n\nconst recipes = fixtures.createRecipes(10)\n\nfunction save (recipe) {\n return storage.put(re... | javascript | chosen |
[
{
"from": "system",
"value": "Bring back useRawDomain for Voyager2\n"
},
{
"from": "human",
"value": "'use strict';\n\n// Service for the spec config.\n// We keep this separate so that changes are kept even if the spec changes.\nangular.module('vlui')\n .factory('Config', function() {\n var ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix error when unmuting a domain without listing muted domains first\n"
},
{
"from": "human",
"value": "import {\n DOMAIN_BLOCKS_FETCH_SUCCESS,\n DOMAIN_BLOCKS_EXPAND_SUCCESS,\n DOMAIN_UNBLOCK_SUCCESS,\n} from '../actions/domain_blocks';\nimport { Map as Immutabl... | javascript | chosen |
[
{
"from": "system",
"value": "Use jQuery helpers for simplification and compat\n"
},
{
"from": "human",
"value": "/* uses schwartzian transform to sort the selected elements in-place */\n(function($) {\n\t$.fn.sortBy = function(sortfn) {\n\t\tvar values = [],\n\t\t\t$self = this;\n\n\t\tthis.chi... | javascript | chosen |
[
{
"from": "system",
"value": "Update exampe with new react-filter-box version\n"
},
{
"from": "human",
"value": "var webpack = require('webpack');\nvar WebpackDevServer = require('webpack-dev-server');\nvar config = require('./webpack.config');\n\nnew WebpackDevServer(webpack(config), {\n publi... | javascript | chosen |
[
{
"from": "system",
"value": "Refactor to better define data helper\n"
},
{
"from": "human",
"value": "const request = require('request');\n\n/**\n * Function checks that a string given is string with some number of\n * characters\n *\n * @params {string} str string value to check for validity\... | javascript | chosen |
[
{
"from": "system",
"value": "Fix error in element name for showing unauthorized alert using jQuery\n"
},
{
"from": "human",
"value": "/**\n * Created by Omnius on 6/27/16.\n */\nconst submitForm = () => {\n\n // TODO: Supposedly needs sanitation using ESAPI.encoder().encodeForJavascript() or... | javascript | chosen |
[
{
"from": "system",
"value": "Add reaction while fetching logs\n"
},
{
"from": "human",
"value": "(function(){\n \"use strict\";\n\n $(function(){\n if($('#fluent-log').length === 0) return;\n\n new Vue({\n el: \"#fluent-log\",\n paramAttributes: [\"logUrl\"],\n data: {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "[desk-tool] Add a note about keeping unused component for later reference\n"
},
{
"from": "human",
"value": "import PropTypes from 'prop-types'\nimport React from 'react'\nimport {diffJson} from 'diff'\nimport styles from './styles/Diff.css'\n\nfunction getDiffStatK... | javascript | chosen |
[
{
"from": "system",
"value": "Change default port to 3333\n"
},
{
"from": "human",
"value": "import path from 'path'\nimport get from 'lodash/get'\nimport merge from 'lodash/merge'\nimport {loadJsonSync} from './safeJson'\n\nconst defaults = {\n server: {\n staticPath: './static',\n port:... | javascript | chosen |
[
{
"from": "system",
"value": "Use a more recent Android for integration tests\n"
},
{
"from": "human",
"value": "// this file is for use in CircleCI continuous integration environment\n\nvar browserName = ['chrome', 'firefox', 'internet explorer', 'android'][process.env.CIRCLE_NODE_INDEX];\n\nmo... | javascript | chosen |
[
{
"from": "system",
"value": "Break loop as soon as change detected.\n"
},
{
"from": "human",
"value": "import sortBy from \"lodash/collection/sortBy\";\n\nexport var metadata = {\n group: \"builtin-trailing\"\n};\n\n/**\n * [Please add a description.]\n *\n * Priority:\n *\n * - 0 We want thi... | javascript | chosen |
[
{
"from": "system",
"value": "Fix circleci test config file\n"
},
{
"from": "human",
"value": "module.exports = {\n store_url: 'http://localhost:8080',\n account_user: 'test',\n account_password: 'testing',\n account_name: 'tester',\n container_name: 'test_container',\n object_... | javascript | chosen |
[
{
"from": "system",
"value": "Add fs & path as external\n"
},
{
"from": "human",
"value": "import babel from 'rollup-plugin-babel'\nimport commonjs from 'rollup-plugin-commonjs'\nimport resolve from 'rollup-plugin-node-resolve'\n\nexport default {\n entry: './src/index.js',\n targets: [\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Send authorization tokens in `fetch`\n"
},
{
"from": "human",
"value": "import { inject as service } from '@ember/service';\nimport fetch from 'fetch';\nimport Route from '@ember/routing/route';\nimport ResetScrollPositionMixin from 'frontend/mixins/reset-scroll-pos... | javascript | chosen |
[
{
"from": "system",
"value": "Disable errors in Ace Editor\n\nI did this as errors always seem to show in the editor and this can be very offputting for the end user\n"
},
{
"from": "human",
"value": "function component( args ) {\n/*\nbase_component_id(\"editorComponent\")\nload_once_from_file(t... | javascript | chosen |
[
{
"from": "system",
"value": "Stop breaking things Raquel, this is why you need tests\n"
},
{
"from": "human",
"value": "import Cookie from 'js-cookie'\nimport _ from 'lodash'\n\nimport { SAVE_FILE, DELETE_FILE } from '../actions/file_list_actions'\n\nconst initialState = Cookie.get('files')\n\n... | javascript | chosen |
[
{
"from": "system",
"value": "Change turn rest api endpoint.\n"
},
{
"from": "human",
"value": "var Https = require('https');\nvar Common = require('./common');\n\nexports.main = {\n handler: function (request, reply) {\n var params = Common.getRoomParameters(request, null, null, null);\n\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Replace YellowBox references with LogBox\n\nSummary:\nThis diff replaces some YellowBox references with LogBox so we can remove it.\n\nChangelog: [Internal]\n\nReviewed By: motiz88\n\nDifferential Revision: D19948126\n\nfbshipit-source-id: b26ad1b78d86a8290f7e08396e4a8314fef7a9... | javascript | chosen |
[
{
"from": "system",
"value": "Add support for mixed \"plain color string\" and \"color map\" background defintitions\n\nLets you do this:\n\n```\n backgroundColors: [\n 'blue',\n 'purple',\n 'pink',\n {\n primary: 'white',\n secondary: 'orange',\n },\n ]\n```\n"
},
{
"from... | javascript | chosen |
[
{
"from": "system",
"value": "Resolve style errors on data block\n"
},
{
"from": "human",
"value": "var Data = require('../../lib/data');\n\nmodule.exports = {\n className: 'data',\n template: require('./index.html'),\n data: {\n name: 'Data',\n icon: '/images/blocks_text.... | javascript | chosen |
[
{
"from": "system",
"value": "Add cleaning of tmp into nodejs\n"
},
{
"from": "human",
"value": "var mkdirp = require('mkdirp');\nvar clicolour = require(\"cli-color\");\nvar exec = require('child_process').exec;\n\nexports.createTmp = function createTmp(argument) {\n mkdirp(\"./tmp\", function... | javascript | chosen |
[
{
"from": "system",
"value": "Stop functionality wont remove the application untill the refresh occurs\n"
},
{
"from": "human",
"value": "var wingedMonkeyControllers = angular.module('wingedMonkeyControllers',[]);\n\nwingedMonkeyControllers.controller(\"ProviderAppsCtrl\", function($scope, $filt... | javascript | chosen |
[
{
"from": "system",
"value": "Add event handlers for links in ending soon alert\n"
},
{
"from": "human",
"value": "import { Meteor } from 'meteor/meteor';\nimport { Template } from 'meteor/templating';\nimport { ReactiveVar } from 'meteor/reactive-var';\n\nimport moment from 'moment';\n\nimport ... | javascript | chosen |
[
{
"from": "system",
"value": "Add touch input to puzzle rendering function\n"
},
{
"from": "human",
"value": "function renderPuzzle( levelNumber, canvas, width, height ) {\n \n document.body.appendChild(canvas);\n\n canvas.width = width;\n canvas.height = height;\n\n canvas.style.... | javascript | chosen |
[
{
"from": "system",
"value": "Add tweet and like interval\n"
},
{
"from": "human",
"value": "// This module is the server of my site.\n\n// Require external dependecies.\nvar http = require('http');\nvar filed = require('filed');\nvar path = require('path');\nvar readFile = require('fs').readFil... | javascript | chosen |
[
{
"from": "system",
"value": "FIX Fix test to match production code\n"
},
{
"from": "human",
"value": "var util = require('../js/util');\nvar assert = require('assert');\n\ndescribe('Hello World function', function() {\n it('should always fail', function() {\n\n assert.equal(false, fal... | javascript | chosen |
[
{
"from": "system",
"value": "Check for process.env.PORT before using config.port\n"
},
{
"from": "human",
"value": "module.exports = function(config) {\n\tif(!config.port || !_.isNumber(config.port)) throw new Error('Port undefined or not a number');\n\n\tvar domain = 'changethisfool.com';\n\n\... | javascript | chosen |
[
{
"from": "system",
"value": "Create a user if they don't exist\n"
},
{
"from": "human",
"value": "var hemera = require('./index');\nvar controller;\n\n/**\n * Every time a user posts a message, we update their slack profile so we can stay up to date on their profile\n * @param {Object} bot\n *... | javascript | chosen |
[
{
"from": "system",
"value": "Add twitter and Facebook links\n"
},
{
"from": "human",
"value": "controllers.controller('HomeCtrl', function($scope, Settings, AdUtil) {\n\n function showHomeAd() {\n if(AdMob){//Because android need this on start up apparently\n var platform = Settings.ge... | javascript | chosen |
[
{
"from": "system",
"value": "Add way to quit application via offcanvas menu\n"
},
{
"from": "human",
"value": "'use strict';\nvar app = require('app');\n\nvar mainWindow = null;\nvar dribbbleData = null;\n\nvar menubar = require('menubar')\n\nvar mb = menubar({\n index: 'file://' + __dirname +... | javascript | chosen |
[
{
"from": "system",
"value": "Use the async version of readFile\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar _ = require('lodash');\nvar fs = require('fs');\nvar hljs = require('../../build');\nvar jsdom = require('jsdom').jsdom;\nvar utility = require('../utility');\n... | javascript | chosen |
[
{
"from": "system",
"value": "Read the dependencies from the file\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\n\n(function() {\n \"use strict\";\n\n const fs = require('fs');\n const CONFIG_FILE = \"package.json\";\n\n console.log(readFile(CONFIG_FILE));\n\n function readFile(pat... | javascript | chosen |
[
{
"from": "system",
"value": "Create file if file doesnt exist\n"
},
{
"from": "human",
"value": "var fs = require('fs');\n\nmodule.exports = function(context) {\n\n //\n // Write some data to a file.\n //\n context.writeFile = function(data, file) {\n fs.writeFile(file, data, function(er... | javascript | chosen |
[
{
"from": "system",
"value": "Remove use of getElement() in example\n\n@rev W-3224090@\r\n@rev goliver@"
},
{
"from": "human",
"value": "/*\n * Copyright (C) 2013 salesforce.com, inc.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except i... | javascript | chosen |
[
{
"from": "system",
"value": "[core] Add try/catch around asset importing and emit error to stream\n"
},
{
"from": "human",
"value": "import through from 'through2'\nimport getAssetImporter from './getAssetImporter'\nimport promiseEach from 'promise-each-concurrency'\n\nconst batchSize = 10\ncon... | javascript | chosen |
[
{
"from": "system",
"value": "Add current time and duration processing to Baidu\n"
},
{
"from": "human",
"value": "'use strict';\n\n/* global Connector */\n\nConnector.playerSelector = '#playPanel > .panel-inner';\n\nConnector.artistSelector = '.artist';\n\nConnector.trackSelector = '.songname';... | javascript | chosen |
[
{
"from": "system",
"value": "Complete scope tests to pass\n"
},
{
"from": "human",
"value": "module(\"About Scope (topics/about_scope.js)\");\n\nthisIsAGlobalVariable = 77;\n\ntest(\"global variables\", function() {\n equal(__, thisIsAGlobalVariable, 'is thisIsAGlobalVariable defined in this... | javascript | chosen |
[
{
"from": "system",
"value": "Remove method update from RawResource service\n"
},
{
"from": "human",
"value": "'use strict';\n\n(function() {\n angular.module('ncsaas')\n .service('resourcesService', ['RawResource', 'currentStateService', '$q', resourcesService]);\n\n function resourcesServ... | javascript | chosen |
[
{
"from": "system",
"value": "Add failing test for rendering markdown string\n"
},
{
"from": "human",
"value": "const MarkdownRenderer = require('../src/renderer').MarkdownRenderer\n\ndescribe ('Renderer', () => {\n var renderer\n var callback\n\n beforeEach(() => {\n callback = jasmine.cr... | javascript | chosen |
[
{
"from": "system",
"value": "Fix indefinite event loop on connection error"
},
{
"from": "human",
"value": "var _IsLoggedIn = undefined;\n\n\nfunction checkIfLoggedInAndTriggerEvent(notifyLoggedOutEveryTime){\n\trequest({module:\"user\", type: \"IsLoggedIn\"}, function(res){\n\n\t\tif(_IsLogged... | javascript | chosen |
[
{
"from": "system",
"value": "Switch it around, mixin everything that doesn't override a method already on the target.\n"
},
{
"from": "human",
"value": "\"use strict\";\r\n/**\r\n * Since only a single constructor is being exported as module.exports this comment isn't documented.\r\n * The clas... | javascript | chosen |
[
{
"from": "system",
"value": "Allow specifying the tag type of a dom component, and allow passing in the element a component should render in\n"
},
{
"from": "human",
"value": "var Class = require('../Class'),\n\tPublisher = require('../Publisher'),\n\tcreate = require('./create'),\n\tstyle = re... | javascript | chosen |
[
{
"from": "system",
"value": "FIx bad function naming in message formatter helper\n"
},
{
"from": "human",
"value": "module.exports.int = function(_msg) {\n if (_msg.properties.contentType === 'application/json') {\n return JSON.parse(_msg.content.toString());\n }\n\n return _msg.content.... | javascript | chosen |
[
{
"from": "system",
"value": "Use explicit exports for matchers.\n\nThis was causing issues with importing *.test.js files and making this explicit\nshould also make it easier to convert to ES modules.\n"
},
{
"from": "human",
"value": "const _ = require('lodash/fp')\nconst fs = require('fs')\nc... | javascript | chosen |
[
{
"from": "system",
"value": "Update our Froala Editor license key\n"
},
{
"from": "human",
"value": "/* eslint ember/order-in-components: 0 */\nimport $ from 'jquery';\nimport { inject as service } from '@ember/service';\nimport Component from '@ember/component';\nimport { computed } from '@emb... | javascript | chosen |
[
{
"from": "system",
"value": "Change from error to warn in userdata\n"
},
{
"from": "human",
"value": "core.Class(\"lowland.base.UserData\", {\n construct : function() {\n this.__$$userdata = {};\n },\n \n members : {\n setUserData : function(key, value) {\n if (core.Env.getValue(... | javascript | chosen |
[
{
"from": "system",
"value": "Remove `defaultLimit` from test fixture app\n"
},
{
"from": "human",
"value": "module.exports = {\n log: {\n level: 'silent'\n },\n views: {\n locals: {\n foo: '!bar!'\n }\n },\n blueprints: {\n defaultLimit: 10\n },\n models: {\n migrate:... | javascript | chosen |
[
{
"from": "system",
"value": "Set karma options up for faster unit tests\n"
},
{
"from": "human",
"value": "basePath = '../';\n\nfiles = [\n JASMINE,\n JASMINE_ADAPTER,\n 'app/lib/jquery/jquery-*.js',\n 'app/lib/angular/angular.js',\n 'app/lib/angular/angular-*.js',\n 'app/lib/underscore.j... | javascript | chosen |
[
{
"from": "system",
"value": "Use managers list + case insensitive comparison\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar d = require('d')\n , db = require('mano').db\n , _ = require('mano').i18n.bind('View: Manager Select');\n\nmodule.exports = function (descriptor) {\n\tObject.de... | javascript | chosen |
[
{
"from": "system",
"value": "Add red color on dislikes\n"
},
{
"from": "human",
"value": "import React, { Component } from 'react';\nimport { Link } from 'react-router';\nimport Avatar from '../widgets/Avatar';\nimport './LikesList.scss';\n\nexport default class LikesList extends Component {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Change CPU default from 1 to 0.1\n"
},
{
"from": "human",
"value": "const DEFAULT_APP_RESOURCES = {cpus: 1, mem: 128};\nconst DEFAULT_APP_SPEC = Object.assign({instances: 1}, DEFAULT_APP_RESOURCES);\n\nmodule.exports = {\n DEFAULT_APP_RESOURCES,\n DEFAULT_APP_SPEC... | javascript | chosen |
[
{
"from": "system",
"value": "Update filename for new jsx=>js conversion\n"
},
{
"from": "human",
"value": "const React = require(\"react\");\nconst ReactDOM = require(\"react-dom\");\n\nconst HeroUnit = require(\"./components/main.jsx\");\nconst data = require(\"../../data/schedule.json\");\n\n... | javascript | chosen |
[
{
"from": "system",
"value": "Upgrade pg version to 7.0.1\n"
},
{
"from": "human",
"value": "'use strict';\n/**\n * dependency package versions\n */\nexport default {\n redis: '2.3.0',\n sqlite3: '3.1.4',\n ejs: '2.3.4',\n jade: '1.11.0',\n mongodb: '2.0.48',\n memjs: '0.8.7',\n sockjs: '... | javascript | chosen |
[
{
"from": "system",
"value": "Throw an error if nothing is changed on a file move\n"
},
{
"from": "human",
"value": "module.exports = function(r) {\n\n const {addFileToDirectoryInProject} = require('./dir-utils')(r);\n\n const uploadFileToProjectDirectory = async(file, projectId, directory... | javascript | chosen |
[
{
"from": "system",
"value": "Allow player to engage multiple enemies at once\n"
},
{
"from": "human",
"value": "'use strict';\n\nmodule.exports = (srcPath) => {\n const Broadcast = require(srcPath + 'Broadcast');\n const Parser = require(srcPath + 'CommandParser').CommandParser;\n\n return {... | javascript | chosen |
[
{
"from": "system",
"value": "Fix the path to the highlight-js directory\n"
},
{
"from": "human",
"value": "const Path = require(\"path\");\n\nmodule.exports = {\n SystemStyle: Path.join(__dirname, \"css\", \"styles.css\"),\n DefaultStyle: Path.join(__dirname, \"css\", \"markdown.css\"),\n... | javascript | chosen |
[
{
"from": "system",
"value": "Fix app crash on travis CI and heroku\n"
},
{
"from": "human",
"value": "import fs from 'fs';\nimport path from 'path';\nimport Sequelize from 'sequelize';\n// import configs from '../config/config';\n\nconst basename = path.basename(module.filename);\n// const env ... | javascript | chosen |
[
{
"from": "system",
"value": "[minor] Return early when no namespace is used\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar color = require('color')\n , hex = require('text-hex');\n\n/**\n * Generate a color for a given name. But be reasonably smart about it by\n * understanding name s... | javascript | chosen |
[
{
"from": "system",
"value": "Make sure --download or --upload are specified\n"
},
{
"from": "human",
"value": "var argv = require( 'minimist' )( process.argv.slice( 2 ) );\nvar downloadSite = require( './download' );\n\nif ( ! argv.site ) {\n\tconsole.error( 'Provide a site with the --site opti... | javascript | chosen |
[
{
"from": "system",
"value": "feat: Remove label and just show checkbox\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport PropTypes from 'prop-types';\nimport { RadioGroup, Radio, Checkbox } from '@blueprintjs/core';\n\nimport { NotificationTypes } from 'enums';\n\nconst Noti... | javascript | chosen |
[
{
"from": "system",
"value": "Improve error handling without API key\n"
},
{
"from": "human",
"value": "import { getSetting } from 'meteor/vulcan:core';\nimport googleMaps from '@google/maps'\n\nconst googleMapsApiKey = getSetting('googleMaps.serverApiKey', null)\nlet googleMapsClient = null\nif... | javascript | chosen |
[
{
"from": "system",
"value": "Build embed code including height attrbute on height message from pym child\n"
},
{
"from": "human",
"value": "\n$(function() {\n $('div.pym-interactive').each(function(index, element) {\n new pym.Parent($(element).attr('id'), $(element).data('url'));\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add comment: explain JS deps ordering matters\n\nMake it clear to others looking at the frontend.js file that the\nordering of the JS includes matters.\n"
},
{
"from": "human",
"value": "// Frontend manifest\n//= require transactions\n//= require media-player-loader... | javascript | chosen |
[
{
"from": "system",
"value": "Fix ReferenceError: net_utils is not defined reported on IRC"
},
{
"from": "human",
"value": "// Auth against a flat file\n\nexports.register = function () {\n this.inherits('auth/auth_base');\n}\n\nexports.hook_capabilities = function (next, connection) {\n /... | javascript | chosen |
[
{
"from": "system",
"value": "Use proper action type for different movies\n"
},
{
"from": "human",
"value": "import {\n\tREQUESTING,\n\tRECEIVE_TOP_RATED,\n\tRECEIVE_NOW_SHOWING,\n\tRECEIVE_POPULAR\n} from \"./ActionTypes\"\n\nexport function request() {\n\treturn {\n\t\ttype: REQUESTING\n\t}\n}... | javascript | chosen |
[
{
"from": "system",
"value": "Adjust code to workaround UglifyJS dead code removal\n"
},
{
"from": "human",
"value": "// just to make sure this file is being minified properly\nvar foobar = (function() {\n\tvar anotherLongVariableName = \"foo\";\n\tvar baz = \"baz\";\n\treturn anotherLongVariabl... | javascript | chosen |
[
{
"from": "system",
"value": "Set allowMissing based on environment\n"
},
{
"from": "human",
"value": "import Application from './components/application';\nimport logger from 'debug';\nimport React from 'react';\nimport { Provider } from 'react-redux';\nimport startRouter from './router';\nimpor... | javascript | chosen |
[
{
"from": "system",
"value": "Add initial tests for Registry\n"
},
{
"from": "human",
"value": "import test from 'ava';\n\ntest.todo('Write test for Registry');\n"
},
{
"from": "gpt",
"value": "import test from 'ava';\nimport Registry from '../src/registry';\n\ntest('Registry returns... | javascript | chosen |
[
{
"from": "system",
"value": "Make 'example pipelines' link the same blue link\n"
},
{
"from": "human",
"value": "import React from 'react';\n\nimport PipelineIcon from '../icons/Pipeline';\n\nclass Welcome extends React.Component {\n static propTypes = {\n organization: React.PropTypes.stri... | javascript | chosen |
[
{
"from": "system",
"value": "Add type text/css to stylesheet\n"
},
{
"from": "human",
"value": "import React from 'react'\n\nexport default class Head extends React.Component {\n render() {\n return (\n <head>\n <meta charSet=\"utf-8\"/>\n <meta ht... | javascript | chosen |
[
{
"from": "system",
"value": "Hide logo and search bar in chrome new tab.\n"
},
{
"from": "human",
"value": "// ==UserScript==\n// @name Chrome New Tab Prettify.\n// @namespace https://github.com/kilfu0701\n// @version 0.1\n// @description Prettify UI on Chrome new tab.\n// @aut... | javascript | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.