conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Add angular to document directly\n"
},
{
"from": "human",
"value": "import test from 'ava';\nimport jsdom from 'jsdom';\n\n\ntest.before(t => {\n // Angular dependencies\n global.document = jsdom.jsdom('<!doctype html><html><head><meta charset=\"utf-8\"></head><bo... | javascript | chosen |
[
{
"from": "system",
"value": "Build the most of the plugin store\n"
},
{
"from": "human",
"value": "\ndefine(['fbemitter', 'assign'], function (fbemitter, assign) {\n var CHANGE_EVENT = 'change';\n\n return assign({}, fbemitter.EventEmitter.prototype, {\n emitChange: function() {\n thi... | javascript | chosen |
[
{
"from": "system",
"value": "Hide and show the component element inside of the container.\n"
},
{
"from": "human",
"value": "/**\n * @module Core\n */\ndefine([\n 'core/modules/GelatoView'\n], function(GelatoView) {\n\n /**\n * @class GelatoComponent\n * @extends GelatoView\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Quit when all windows are closed if running an app by passing it in command line.\n"
},
{
"from": "human",
"value": "var argv = require('optimist').argv;\nvar dialog = require('dialog');\nvar path = require('path');\n\n// Start the specified app if there is one spec... | javascript | chosen |
[
{
"from": "system",
"value": "Include more clues at Konami Code exercise\n"
},
{
"from": "human",
"value": "const pressed = []\nconst secretCode = 'stefan'\nconst clue = document.querySelector('button')\nconst clueText = document.querySelector('#clue')\n\nfunction clueTrigger () {\n const text ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix lang detection (/en/ is in french...)\n"
},
{
"from": "human",
"value": "export default function getLang(context) {\n const {\n location,\n metadata,\n } = context\n const {\n i18n,\n } = metadata\n const firstURIlevel = location.pathname.split(\"/... | javascript | chosen |
[
{
"from": "system",
"value": "Change from PoemSource to common source\n"
},
{
"from": "human",
"value": "import alt from '../alt'\nimport PoemSource from '../sources/PoemSource'\n\nclass PoemActions {\n constructor() {\n this.generateActions(\n 'sync',\n 'fetchedPoems',\n 'add... | javascript | chosen |
[
{
"from": "system",
"value": "FIX TO THE MOST EPIC BUG EVER (HOPEFULLY)\n"
},
{
"from": "human",
"value": "'use strict';\n\n/**\n * Module dependencies.\n */\nvar _ = require('lodash'),\n\tmongoose = require('mongoose'),\n\tUser = mongoose.model('User');\n\n/**\n * User middleware\n */\nexports.... | javascript | chosen |
[
{
"from": "system",
"value": "[fixed] Clean up mounted route component on unmount so we don't leak references\n"
},
{
"from": "human",
"value": "var React = require('react');\nvar assign = require('react/lib/Object.assign');\nvar PropTypes = require('./PropTypes');\n\nvar REF_NAME = '__routeHand... | javascript | chosen |
[
{
"from": "system",
"value": "Change order for the override when override isnt null\n"
},
{
"from": "human",
"value": "import React from 'react'\nimport getDisplayName from 'recompose/getDisplayName'\nimport wrapDisplayName from 'recompose/wrapDisplayName'\nimport { withPropsFromContext } from '... | javascript | chosen |
[
{
"from": "system",
"value": "Implement very basic async readFile for tests\n\nThis is for usage of .env with somethingToAutodetect. This API is not\nactually supported in the browser, but we need to make it work for our\nown tests.\n"
},
{
"from": "human",
"value": "\"use strict\";\n\nexports.... | javascript | chosen |
[
{
"from": "system",
"value": "Add mana and card when it's your turn\n"
},
{
"from": "human",
"value": "export const END_TURN = 'END_TURN';\n\nexport function endTurn() {\n return {\n type: END_TURN,\n };\n}\n\nexport default function yourTurn(state = true, action) {\n if (action.type !== E... | javascript | chosen |
[
{
"from": "system",
"value": "Remove tabstop from remove closebutton on card\n"
},
{
"from": "human",
"value": "import React, { PropTypes } from 'react';\nimport classNames from 'classnames';\n\nimport styles from './CloseButton.css';\n\nconst propTypes = {\n handleOnClick: PropTypes.func.isReq... | javascript | chosen |
[
{
"from": "system",
"value": "Fix Promise all is not a function\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar utils = require('./utils');\n\nmodule.exports = function(callback) {\n var spawn = require('child_process').spawn;\n var path = require('path');\n var installation = null;\n... | javascript | chosen |
[
{
"from": "system",
"value": "Change terminology to use main instead of dashboard.\n\nIE8 compatibility change and put in header for server config.\n"
},
{
"from": "human",
"value": "if (!testrunner) { testrunner = {}; }\n\ntestrunner.help = {};\n \ntestrunner.help.header = function(){\n ret... | javascript | chosen |
[
{
"from": "system",
"value": "Test extensions as well even though we haven't done any of them and some of them don't matter\n"
},
{
"from": "human",
"value": "// -*- coding: UTF-8 -*-\n\ntask('commonjs-test', function(options) {\n\tvar {ProcessFunction} = banana('os.process');\n\tvar run = new P... | javascript | chosen |
[
{
"from": "system",
"value": "Allow port to be configured by PORT env var\n"
},
{
"from": "human",
"value": "var sharejs = require(\"share\").server,\n express = require(\"express\"),\n app = express();\n\napp.use(express.logger());\napp.use(express.static(__dirname + \"/node_modules/marke... | javascript | chosen |
[
{
"from": "system",
"value": "Update list of risk factors, add conditional risk factor - postmenopause\n"
},
{
"from": "human",
"value": "/**\n * Created by Tomasz Gabrysiak @ Infermedica on 08/02/2017.\n */\n\nimport View from '../../base/view';\nimport template from './template';\n\nexport def... | javascript | chosen |
[
{
"from": "system",
"value": "Accordion: Update test helper to use QUnit.push instead of deepEqual to get useful stacktrace\n"
},
{
"from": "human",
"value": "function accordion_state( accordion ) {\n\tvar expected = $.makeArray( arguments ).slice( 1 );\n\tvar actual = accordion.find( \".ui-acco... | javascript | chosen |
[
{
"from": "system",
"value": "Remove some pollution of the global scope.\n"
},
{
"from": "human",
"value": "'use strict';\n\n/*\n * Helper functions.\n *\n * This script contains miscellaneous helpers, that implement functionality, \n * that is not specific to this project.\n */\n\nvar _ = tanur... | javascript | chosen |
[
{
"from": "system",
"value": "Use podname for web+diaspora:// protocol handler\n\ncloses #7839\n"
},
{
"from": "human",
"value": "// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later\n\nDiaspora.ProtocolHandler = {\n register: function() {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Hide links when user is logged\n"
},
{
"from": "human",
"value": "import React, { Component } from 'react';\nimport { connect } from 'react-redux';\nimport { Link, NavLink, withRouter } from 'react-router-dom';\nimport { Navbar, Nav, NavItem } from 'react-bootstrap'... | javascript | chosen |
[
{
"from": "system",
"value": "Return promise from snapshot builder to allow promise chain continuation\n"
},
{
"from": "human",
"value": "'use strict'\n\nlet connection = require('../../db/connection')\nlet logger = require('tracer').colorConsole()\n\n/**\n * Creates an aggregate object for a pi... | javascript | chosen |
[
{
"from": "system",
"value": "Remove console.log and lint one of the CDK files\n"
},
{
"from": "human",
"value": "// IMPORTANT\n// ---------\n// This is an auto generated file with React CDK.\n// Do not modify this file.\n\nconst parse = require('git-url-parse');\nvar ghUrl = process.argv[2];\nc... | javascript | chosen |
[
{
"from": "system",
"value": "Create helper to test number of entities system enrolls\n\n"
},
{
"from": "human",
"value": "beforeEach(function () {\n jasmine.addMatchers({\n toBeInSystem() {\n return {\n compare(actual, expected) {\n const entity = actual;\n con... | javascript | chosen |
[
{
"from": "system",
"value": "Add missing method in default blueprint\n"
},
{
"from": "human",
"value": "/*jshint node:true*/\nmodule.exports = {\n afterInstall: function () {\n return this.addBowerPackageToProject('semantic-ui-calendar');\n }\n};\n"
},
{
"from": "gpt",
"value":... | javascript | chosen |
[
{
"from": "system",
"value": "Fix the potential issue of variable shadowing\n"
},
{
"from": "human",
"value": "'use strict';\nvar document = require('global/document');\nvar window = require('global/window');\n\nvar createCustomEvent;\nif (window && window.CustomEvent && typeof window.CustomEven... | javascript | chosen |
[
{
"from": "system",
"value": "Add better definition for validate function.\n"
},
{
"from": "human",
"value": "$(window).ready(\n function () {\n $(\"#json-input\").linedtextarea();\n\n $(\"#json-input\").bind('paste', function() {\n // Need a timeout since paste event... | javascript | chosen |
[
{
"from": "system",
"value": "Remove notification block on log out\n"
},
{
"from": "human",
"value": "app.directive('pbNotifications', ['Restangular', 'AuthService', 'config', function(Restangular, AuthService, config) {\n return {\n restrict: 'E',\n templateUrl: config.partials... | javascript | chosen |
[
{
"from": "system",
"value": "Allow value to be set externally.\n\nCurrently the medium editor's value is only set on init. That makes\nit impossible to reset a form on submit, for example. This commit\nadds an observer that ensures the value is updated if the editor's\nvalue differs from the component's va... | javascript | chosen |
[
{
"from": "system",
"value": "Fix locations of web resources from relative paths to absolute\n"
},
{
"from": "human",
"value": "var webpack = require(\"webpack\");\nvar path = require(\"path\");\n\nvar APP_DIR = path.resolve(__dirname, \"src/main/web\");\nvar BUILD_DIR = path.resolve(__dirname, ... | javascript | chosen |
[
{
"from": "system",
"value": "emoji: Cut misleading ignored reference to an emoji font.\n\nPer the docs of the react-native-vector-icons package, this argument\nis supposed to be the name of a font. But there's no sign of a font\nby this name actually appearing in the package, so it's hard to see\nwhat pas... | javascript | chosen |
[
{
"from": "system",
"value": "Correct types on the error toaster\n\nBug:\nThis copy was hardcoded to just 'comment' but the action applies to both\ncomments and posts. When something went wrong on a post upvote we'd show\n\"failed to upvote the comment\", which makes no sense.\n\nFix:\nUse the `type` (which... | javascript | chosen |
[
{
"from": "system",
"value": "Use String() instead of toString()"
},
{
"from": "human",
"value": "import JsSha from 'jssha';\n\nimport {query, rfc3986} from '../util';\n\nexport default function buildHeaderString(\n {consumerKey, consumerSecret, oauthToken = '', oauthTokenSecret = ''},\n url,\... | javascript | chosen |
[
{
"from": "system",
"value": "Add useHistoryState-plugin to plugins. (not only create)\n"
},
{
"from": "human",
"value": "Ext.namespace('Kwc.List.Switch');\n\nKwc.List.Switch.Component = Ext.extend(Kwf.EyeCandy.List,\n{\n //transition: {},\n showArrows: true,\n\n defaultState: 'normal',... | javascript | chosen |
[
{
"from": "system",
"value": "Rewrite attempt number one on my bio\n"
},
{
"from": "human",
"value": "import * as React from \"react\"\nimport Seo from \"../components/seo\"\nimport { StaticImage } from \"gatsby-plugin-image\"\n\nimport Layout from \"../components/layout\"\n\nconst IndexPage = (... | javascript | chosen |
[
{
"from": "system",
"value": "Add source maps when optimizing\n"
},
{
"from": "human",
"value": "import _ from 'lodash';\n\nexport default (config, options) => {\n if (options.optimize) {\n config = _.extend({}, config, {\n output: _.extend({}, config.output, {\n filename: '[name... | javascript | chosen |
[
{
"from": "system",
"value": "Fix formatTime function:\n- avoid AM/PM from being removed of the returning string.\n"
},
{
"from": "human",
"value": "import React from 'react'\n\nimport styles from './event-heading.module.styl'\n\nexport default class EventHeading extends React.Component {\n con... | javascript | chosen |
[
{
"from": "system",
"value": "Fix growing coord list through reference\n"
},
{
"from": "human",
"value": "import defaults from \"lodash/defaults\";\nimport shuffle from \"lodash/shuffle\";\n\nclass LocationGrid {\n constructor(settings) {\n settings = defaults(settings, {\n x: {},\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Refactor new account feature spec\n"
},
{
"from": "human",
"value": "describe('Teacher creates new account', () => {\n beforeEach(() => {\n cy.cleanDatabase()\n })\n\n it('they should see the new classroom page', () => {\n cy.factoryBotCreate({\n facto... | javascript | chosen |
[
{
"from": "system",
"value": "Complete color fetching for a cuisine\n"
},
{
"from": "human",
"value": "const axios = require('axios');\nconst GoogleImages = require('google-images');\nconst Keys = require('./_keys/search.json');\nconst Vision = require('@google-cloud/vision');\n\n\n\nfunction ge... | javascript | chosen |
[
{
"from": "system",
"value": "Enable returning nothing in an endpoint\n\n- this is the same as returning {}\n"
},
{
"from": "human",
"value": "import {info as logInfo, error as logError} from 'npmlog';\r\n\r\nexport default (handler) => {\r\n return async (request, response, next) => {\r\n l... | javascript | chosen |
[
{
"from": "system",
"value": "Remove userReadinfo and evenSchedule objects.\n"
},
{
"from": "human",
"value": "var base = require('./base.js');\n\nexports.assemble = {\n addSchedule: \n function (parameters, response) {\n var userEventEntry = { \n availability... | javascript | chosen |
[
{
"from": "system",
"value": "Add method to retrieve route fragment to Navigator"
},
{
"from": "human",
"value": "/* globals define */\n\ndefine([\n 'jquery',\n 'backbone',\n 'marionette',\n 'controllers/event-bus'\n], function ($, Backbone, Marionette, EventBus) {\n 'use strict';\n\n var ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix method name for the bridge\n"
},
{
"from": "human",
"value": "function appListHook(args) {\n // Retrieve current app\n var currentApp = this.getCurrentApp();\n // Insert current app into arguments\n args.splice(2, 0, currentApp);\n}\n\nsupervisor.bridge('dir... | javascript | chosen |
[
{
"from": "system",
"value": ":paperclip: Add positioning for the canvas.\n"
},
{
"from": "human",
"value": "/*\n * This file is part of the three playground.\n *\n * (c) Magnus Bergman <hello@magnus.sexy>\n *\n * For the full copyright and license information, please view the LICENSE\n * file t... | javascript | chosen |
[
{
"from": "system",
"value": "Update the Resume toJSON method.\n\nremove need for 'activeAttributes'.\n"
},
{
"from": "human",
"value": "define([\n 'underscore',\n 'backbone',\n 'models/profile',\n 'models/address',\n 'collections/item'\n], function (_, Backbone, Profile, Address, ItemColle... | javascript | chosen |
[
{
"from": "system",
"value": "Make default config available as JSON to docs\n"
},
{
"from": "human",
"value": "const mix = require('laravel-mix')\nconst tailwind = require('./../lib/index.js')\nconst config = require('./tailwind.js')\nconst fs = require('fs')\n\n\nfs.writeFileSync('./tailwind.js... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"go to list after submitting\"\n\nThis reverts commit 4327c78b47bf73b849f718b5dc8f762e13e40523.\n"
},
{
"from": "human",
"value": "Template.pastKlubEdit.helpers({\n pastKlub: function () {\n // this provides from url parameter\n return PastKlub.findOn... | javascript | chosen |
[
{
"from": "system",
"value": "Fix button misfires on mobile\n"
},
{
"from": "human",
"value": "import React, { Component } from 'react';\nimport _ from 'lodash';\n\nimport styles from './css/Button.module.css';\n\nexport default class Button extends Component {\n static propTypes = {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Improve sanity checking for signin \"from\" param\n"
},
{
"from": "human",
"value": "/**\n * The signin page, it renders a page with a username and password input form.\n *\n * This is decoupled from the main app (in the \"App/\" folder) because we inject\n * lots o... | javascript | chosen |
[
{
"from": "system",
"value": "[FEATURE] Add basic auth when registering in web client.\n"
},
{
"from": "human",
"value": "'use strict';\n\nangular.module('publicApp')\n .controller('RegistrationCtrl', ['$scope', '$http', '$location','UserService', function ($scope, $http, $location, $user) {\n\... | javascript | chosen |
[
{
"from": "system",
"value": "Call handlers with user param\n\nin addition, clean up a few things\n"
},
{
"from": "human",
"value": "const authHandler = require('./auth-handler'),\nsessionHandler = require('./session-handler');\n\nfunction connectionHandler(client, clientInfo){\n\tlet user = {};... | javascript | chosen |
[
{
"from": "system",
"value": "Check for the binary option being passed to the md5 hasher. If so, always use default encoding.\n"
},
{
"from": "human",
"value": "var crypto = require('crypto')\n , fs = require('fs');\n\n(function(undefined) {\n 'use strict';\n\n module.exports = {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "chore(admin): Rename docs actions source file chunk to `docs-actions`\n\nRefs: TOCDEV-3113\n"
},
{
"from": "human",
"value": "import React, {lazy, Suspense} from 'react'\nimport {connect} from 'react-redux'\nimport PropTypes from 'prop-types'\nimport {actionEmitter}... | javascript | chosen |
[
{
"from": "system",
"value": "Set check to a lower value in image async component\n"
},
{
"from": "human",
"value": "'use strict';\n\nangular.module('app.components')\n .directive('imgAsync', ['$timeout', function($timeout) {\n return {\n restrict: 'E',\n replace:... | javascript | chosen |
[
{
"from": "system",
"value": "Remove calculated parameters before saving ticket entity\n"
},
{
"from": "human",
"value": "'use strict';\n\nfunction saveTicket (args, callback) {\n var seneca = this;\n var ENTITY_NS = 'cd/tickets';\n var ticketEntity = seneca.make$(ENTITY_NS);\n\n var ticket ... | javascript | chosen |
[
{
"from": "system",
"value": "Remove the method 'remove' from ResourceList controller\n"
},
{
"from": "human",
"value": "'use strict';\n\n(function() {\n angular.module('ncsaas')\n .controller('ResourceListController', ['resourcesService', ResourceListController]);\n\n function ResourceList... | javascript | chosen |
[
{
"from": "system",
"value": "Add explanation for Gaussian determination\n"
},
{
"from": "human",
"value": "'use strict';\n\n/**\n * Internal dependencies\n */\nvar SampleProportion = require( './sample-proportion' );\n\nfunction Variation( name, color, participants, conversions ) {\n\tthis.name... | javascript | chosen |
[
{
"from": "system",
"value": "Handle error responses from API\n"
},
{
"from": "human",
"value": "const path = require('path')\nconst { posterImagePath } = require('../../config')\nconst request = require('../shared/request')\nconst BASE_URL = 'https://us-central1-test-firebase-functions-82b96.cl... | javascript | chosen |
[
{
"from": "system",
"value": "Add legit-o-meter header to cat on start page\n"
},
{
"from": "human",
"value": "import React, { Component } from 'react';\nimport { Link } from 'react-router-dom';\n\nimport Button from '../Shared/Button';\nimport legitCatImage from '../../images/legit-cat.png';\n\... | javascript | chosen |
[
{
"from": "system",
"value": "Update acceptance test task to work with selenium-standalone v3\n"
},
{
"from": "human",
"value": "var gulp = require('gulp');\nvar _ = require('lodash');\nvar Jasmine = require('jasmine');\nvar selenium = require('selenium-standalone');\n\n// Defines Gulp tasks for... | javascript | chosen |
[
{
"from": "system",
"value": "Print localhost instead of 0.0.0.0 as latter doesn't work on Windows\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\n\nconst ArgumentParser = require('argparse').ArgumentParser\nconst opn = require('opn')\nconst packageJson = require('../package.json')\n\nco... | javascript | chosen |
[
{
"from": "system",
"value": "Check props before calling function\n"
},
{
"from": "human",
"value": "// main.js\n(function() {\n\n'use strict';\n\nvar React = require('react');\nvar d3 = require('d3');\n\nvar Whiteboard = React.createClass({\n\n svg: null,\n\n propTypes: {\n width: ... | javascript | chosen |
[
{
"from": "system",
"value": "Remove spaces in import to satisfy linter\n"
},
{
"from": "human",
"value": "import './App.css'\nimport { BrowserRouter, Route } from 'react-router-dom'\n\nimport Login from './containers/Login/Login'\nimport SGonksPlatfrom from './containers/SGonksPlatform/SGonksPl... | javascript | chosen |
[
{
"from": "system",
"value": "Mark message prop of Flashmessage required\n"
},
{
"from": "human",
"value": "/**\n * A single flash message component. Used by FlashMessages.js\n */\n\nimport React from 'react';\nimport { Alert } from 'elemental';\n\nconst FlashMessage = React.createClass({\n\tpro... | javascript | chosen |
[
{
"from": "system",
"value": "Work around Node <v6 bug where shorthand props named `get` do not parse\n"
},
{
"from": "human",
"value": "import got from 'got'\nimport createDebug from 'debug'\n\nconst debug = createDebug('miniplug:http')\n\nexport default function httpPlugin (httpOpts) {\n http... | javascript | chosen |
[
{
"from": "system",
"value": "Use controller instead of array controller.\n\nCloses https://github.com/softlayer/sl-ember-components/issues/837\n"
},
{
"from": "human",
"value": "import Ember from 'ember';\n\nexport default Ember.ArrayController.extend({\n currentColor: 'blue'\n});\n"
},
... | javascript | chosen |
[
{
"from": "system",
"value": "Fix deletion of non empty temp directory\n"
},
{
"from": "human",
"value": "const axios = require('axios');\nconst fs = require('fs');\nconst path = require('path');\nconst tmp = require('tmp');\n\ntmp.setGracefulCleanup();\n\nfunction getTempDir() {\n return new... | javascript | chosen |
[
{
"from": "system",
"value": "Change default value in example\n"
},
{
"from": "human",
"value": "//- JavaScript source code\n\n//- roll-up.js ~~\n//\n// NOTE: This file isn't just an example -- it is also used as part of the\n// QM project's build process :-)\n//\n// ... | javascript | chosen |
[
{
"from": "system",
"value": "Use Jasmine 2 in Protractor\n"
},
{
"from": "human",
"value": "exports.config = {\n allScriptsTimeout: 11000,\n specs: [\n '*.js'\n ],\n capabilities: {\n 'browserName': 'chrome'\n },\n baseUrl: 'http://localhost:3000/',\n framewor... | javascript | chosen |
[
{
"from": "system",
"value": "Use correct section index for EventContextDataProvider\n\nWe need to pass the index of the rendered section, not the current\nsection. Passing the current section index causes the wrong section to\nbe reported in media events when a video is played that is not in the\ncurrent s... | javascript | chosen |
[
{
"from": "system",
"value": "fix: Update blueprint to fix syntax error\n"
},
{
"from": "human",
"value": "/*jshint node:true*/\nmodule.exports = {\n description: ''\n\n // locals: function(options) {\n // // Return custom template variables here.\n // return {\n // foo: options.ent... | javascript | chosen |
[
{
"from": "system",
"value": "[application-store] Add bar content right component\n"
},
{
"from": "human",
"value": "/**\n * Build the cartridge store definition.\n * @return {object} - The cartridge component.\n */\nmodule.exports = function(){\n return {\n 'summaryComponent': 'summaryCompo... | javascript | chosen |
[
{
"from": "system",
"value": "Update search index after deleting a page.\n"
},
{
"from": "human",
"value": "import db from 'src/pouchdb'\nimport { findVisits } from 'src/search/find-visits'\nimport { getEquivalentPages } from 'src/search/find-pages'\n\n\nexport async function deleteVisitAndPage(... | javascript | chosen |
[
{
"from": "system",
"value": "Remove dupe reference of os.\n"
},
{
"from": "human",
"value": "angular.module( 'App.Client.Info' ).service( 'Client_Info', function( Environment )\n{\n\tvar os = require( 'os' );\n\tvar path = require( 'path' );\n\n\tthis.getPackageJson = function()\n\t{\n\t\tvar o... | javascript | chosen |
[
{
"from": "system",
"value": "Add CM's markdown addon that extends enter key behavior\n"
},
{
"from": "human",
"value": "\"use strict\";\n\nvar CodeMirror = require('codemirror')\n\n\n// Register CodeMirror modes for our markup\nrequire('codemirror/mode/gfm/gfm');\nrequire('./cm_en-markdown_mode... | javascript | chosen |
[
{
"from": "system",
"value": "Check for permissions before submitting header request\n"
},
{
"from": "human",
"value": "/* global Office */\n/* global sendHeadersRequestEWS */\n/* global sendHeadersRequestRest */\n/* global ShowError */\n/* exported sendHeadersRequest */\n\n/**\n * GetHeaderRest... | javascript | chosen |
[
{
"from": "system",
"value": "Set up MonkeyTestJS and make all tests pass\n"
},
{
"from": "human",
"value": "(function(global) {\n global.monkeytestjs = {\n \"facebookId\": \"000000000000000\",\n\n \"local\": {\n \"env\": [\"DEV URL OR PART OF\"]\n },\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Apply paragraph last words non-breaking space only if it's a simple space\n"
},
{
"from": "human",
"value": "import {rule, group} from '../typography-fixer'\n\nlet ruleset\n\nexport default ruleset = createRuleset()\n\nfunction createRuleset () {\n return group('li... | javascript | chosen |
[
{
"from": "system",
"value": "Order images by page position if avaliable\n"
},
{
"from": "human",
"value": "/*\n* Sort the list of images by priority and by date upload, see #499\n* @param {Array} images - array of images object\n* The image object has the properties priority (0 to 9) and sort (... | javascript | chosen |
[
{
"from": "system",
"value": "Remove Bootstrapify from list to make it truly opt-in."
},
{
"from": "human",
"value": "// Opt-in repos (case sensitive)\n// These repositories are loaded this way as a convenience, not because Disco has any special priority in this list.\n// Opting these repositori... | javascript | chosen |
[
{
"from": "system",
"value": "Fix code order in dashboard app js\n"
},
{
"from": "human",
"value": "//= require models\n//= require collections\n//= require views\n//= require controllers\n\n(function() {\n\n this.dashboard = {\n views: {},\n controllers: {},\n models: {},\n collect... | javascript | chosen |
[
{
"from": "system",
"value": "Fix a bug that is blocking production.\n"
},
{
"from": "human",
"value": "// TODO get codes\n\nconst codesBaseURI = '/api/codes/'\n\nconst fetchCodes = (type, handleResponse, handleError) => {\n console.log('fetchCodes')\n fetch(`${codesBaseURI}/${type}`)\n .th... | javascript | chosen |
[
{
"from": "system",
"value": "Fix a bug in browser detection\n"
},
{
"from": "human",
"value": "// FeatureDetection\n\n// IE 9 or older\nconst isIE9OrOlder = () => {\n return (navigator.appVersion.indexOf('MSIE') !== -1) &&\n (parseFloat(navigator.appVersion.split('MSIE')[1]) < 10);\n};\n\n// ... | javascript | chosen |
[
{
"from": "system",
"value": "Remove UI asking user to claim it\n"
},
{
"from": "human",
"value": "var handle = function(e) {\n // Find the relevant link\n var targetLink = e.currentTarget.href;\n\n // Find what we said about it\n var relevantItem = example_items.filter(function(item... | javascript | chosen |
[
{
"from": "system",
"value": "Fix redux-logger is loaded in release build\n"
},
{
"from": "human",
"value": "import process from 'process';\nimport { applyMiddleware, createStore } from 'redux';\nimport createSagaMiddleware from 'redux-saga';\nimport reducer, { rootSaga } from './modules';\n\nex... | javascript | chosen |
[
{
"from": "system",
"value": "Use spread operator to map action creators\n"
},
{
"from": "human",
"value": "// This file bootstraps the app with the boilerplate necessary\n// to support hot reloading in Redux\nimport React, {PropTypes} from 'react';\nimport { bindActionCreators } from 'redux';\n... | javascript | chosen |
[
{
"from": "system",
"value": ":new: Add a dummy return value in getDeclarations\n"
},
{
"from": "human",
"value": "'use babel'\n\n/* @flow */\n\nimport {CompositeDisposable, Emitter} from 'atom'\nimport type {TextEditor, Disposable} from 'atom'\nimport type {Editor} from './editor'\nimport type ... | javascript | chosen |
[
{
"from": "system",
"value": "Add require hexo for hexo3\n"
},
{
"from": "human",
"value": "/*\n *\n * https://github.com/jkuetemeier/hexo-plugin-multilanguage\n *\n * Copyright (c) 2014 Jörg Kütemeier\n * Licensed under the MIT license.\n */\n\n'use strict';\n\nvar helper = hexo.extend.helper;\... | javascript | chosen |
[
{
"from": "system",
"value": "Resolve deprecation warning for React Router 2.0\n"
},
{
"from": "human",
"value": "import App from '../containers/App'\n\nfunction createRedirect(from, to) {\n return {\n path: from,\n onEnter(nextState, replaceState) {\n replaceState(nextState, to)\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix currently active playing item on playlist\n"
},
{
"from": "human",
"value": "import { connect } from 'react-redux';\nimport CollectionContent from './view';\nimport {\n makeSelectUrlsForCollectionId,\n makeSelectNameForCollectionId,\n makeSelectCollectionForI... | javascript | chosen |
[
{
"from": "system",
"value": "Change copy for mean weekly fco submissions module\n\n@maxfliri\n"
},
{
"from": "human",
"value": "define([\n 'extensions/views/view'\n],\nfunction (View) {\n var SubmissionsNumberView = View.extend({\n initialize: function (attrs, options) {\n View.protot... | javascript | chosen |
[
{
"from": "system",
"value": "Add graph node ordering test\n"
},
{
"from": "human",
"value": "\"use strict\";\n\ndefine([\n 'knockout3',\n 'lib/knockout-dependency-graph'\n], function(ko, KoDependencyGraph) {\n describe('Functional tests', function () {\n describe('Basic usage', ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix getMatchAllQuery to return according to pageNumber\n"
},
{
"from": "human",
"value": "var Appbase = require('appbase-js');\n\nmodule.exports = {\n\tgetRequestObject: function (config, fieldName, boundingBoxCoordinates, streaming) {\n var geo_bounding_box = JS... | javascript | chosen |
[
{
"from": "system",
"value": "Call initializer in the right scope\n\nThis allows to have this pointed to an actual object."
},
{
"from": "human",
"value": "\"use strict\"\n\nfunction addLazyProperty(object, name, initializer, enumerable) {\n Object.defineProperty(object, name, {\n get: funct... | javascript | chosen |
[
{
"from": "system",
"value": "Fix list not loading on second open\n\nCloses #3369\n"
},
{
"from": "human",
"value": "import { takeLatest, delay } from 'redux-saga';\nimport { fork, select, put, take } from 'redux-saga/effects';\n\nimport * as actions from '../screens/List/constants';\nimport upd... | javascript | chosen |
[
{
"from": "system",
"value": "Move the map to the top level of the site"
},
{
"from": "human",
"value": "/*\n * All of our cool Javascript stuff here\n */\n\nfunction attemptGeocode(ditibKey)\n{\n var gcUrlBase = \"../rest/ditib/geocode/\";\n var mapUrlBase = \"../map/\";\n\n // http://... | javascript | chosen |
[
{
"from": "system",
"value": "Switch to production analytics account\n"
},
{
"from": "human",
"value": "(() => {\n\n\t'use strict';\n\n\n\t/* jshint ignore:start */\n\n\t// Standard Google Universal Analytics code\n\t(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){\n\... | javascript | chosen |
[
{
"from": "system",
"value": "Add observable media query viewport size calculations\n"
},
{
"from": "human",
"value": "import { types } from 'mobx-state-tree'\n\nexport default types.model('Viewport', {\n height: 0,\n menuToggled: false,\n width: 0,\n}).views(self => ({\n get showMenu() { re... | javascript | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.