conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Remove handleOpen function. because it is unnecessary.\n"
},
{
"from": "human",
"value": "import React, { Component } from 'react';\nimport Dialog from 'material-ui/lib/dialog';\nimport FlatButton from 'material-ui/lib/flat-button';\nimport RaisedButton from 'materi... | javascript | chosen |
[
{
"from": "system",
"value": "Test exampleReducer with prior state\n"
},
{
"from": "human",
"value": "import * as actionTypes from \"../../src/actions/types\";\nimport exampleReducer from \"../../src/reducers/example-reducer\";\n\ndescribe(\"exampleReducer\", () => {\n test(\"initial state\", (... | javascript | chosen |
[
{
"from": "system",
"value": "Add temporary fix for problem where selected model on hover does not exist\n"
},
{
"from": "human",
"value": "define([\n 'extensions/views/single_stat'\n],\nfunction (SingleStatView) {\n var NumberView = SingleStatView.extend({\n\n changeOnSelected: true,\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Adjust show-discussion directive to actual functionality\n\nThis now embeds the adhocracy create-or-show-comment-listing widget,\nwhich creates new commentables on the fly.\n\nThis can be used as the following:\n\n <show-discussion ng-if=\"metric.id\" data-key=\"metric_{{ me... | javascript | chosen |
[
{
"from": "system",
"value": "Add support for FullCalendar's month view.\n"
},
{
"from": "human",
"value": "/*!\n * fullcalendar-rightclick v1.1\n * Docs & License: https://github.com/mherrmann/fullcalendar-rightclick\n * (c) 2015 Michael Herrmann\n */\n\n(function($) {\n\tvar fc = $.fullCalenda... | javascript | chosen |
[
{
"from": "system",
"value": "Add ability to pop parameters\n"
},
{
"from": "human",
"value": "'use strict'\n\nvar context = {/* user id */};\n//TODO: Replace with node-cache\n\n/*Example:\n{\n command: '/track',\n stage: 'askForTrack',\n parameters: [\n 'Mike Oldfield'\n ]\n}... | javascript | chosen |
[
{
"from": "system",
"value": "Remove dubugger; statement from auth controller.\n"
},
{
"from": "human",
"value": "(function() {\n 'use strict';\n\n angular.module('pub.security.authentication', [])\n\n .factory('authentication', [\n '$q',\n '$http',\n 'securityContext',\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Check an authentication in the group router\n"
},
{
"from": "human",
"value": "import {validate_request} from '../utils/errors'\nimport express from 'express'\n\nfunction validate_request_body(request, response, next_handler) {\n request.checkBody({\n 'screen_na... | javascript | chosen |
[
{
"from": "system",
"value": "Add recursive solution for pascals triangle\n"
},
{
"from": "human",
"value": "/**\n * Pascal's triangle is defined as the rth column of the nth row is n! / ( r! x (n - r)!)\n *\n * @param {Integer} n\n * @return {Array} int array where each value represents a level... | javascript | chosen |
[
{
"from": "system",
"value": "Add error state and fail payload\n"
},
{
"from": "human",
"value": "import * as actType from './action-types';\n\nconst initialState = {\n loadingApi: undefined,\n runtimeApi: undefined,\n};\n\nfunction loadApi(state = initialState, action) {\n switch (action.typ... | javascript | chosen |
[
{
"from": "system",
"value": "Add a test for Spread Operator\n\nThis closes #7\n"
},
{
"from": "human",
"value": "'use strict'\n\nconst vuedoc = require('../..')\n\n/* global describe it expect */\n\ndescribe('issues', () => {\n describe('#21 - undefined default value is rendering as a non stri... | javascript | chosen |
[
{
"from": "system",
"value": "Remove space between flag and password\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\n\nvar exec = require('child_process').exec;\n\nvar dbconfig = require(process.cwd() + '/config/database');\nvar envconfig = dbconfig[process.env.FP_NODE_ENV];\n\nif (!env... | javascript | chosen |
[
{
"from": "system",
"value": "Add a compatibility layer to the ‘Error’ object\n"
},
{
"from": "human",
"value": "/**\n * Error\n *\n * @constructor\n */\nvar ValidationError = function() {\n this.length = 0;\n};\n\nValidationError.prototype.push = function(item) {\n this[this.length] = item;\n... | javascript | chosen |
[
{
"from": "system",
"value": "Change test_v24 to the correct item.\n"
},
{
"from": "human",
"value": "var assert = require(\"assert\");\nvar parseApk = require(\"..\");\n\ndescribe(\"APK V24\", function () {\n var output = null;\n\n before(function (done) {\n parseApk(__dirname + \"... | javascript | chosen |
[
{
"from": "system",
"value": "Test AEP and non-API 404s\n\nSigned-off-by: shaisachs <47bd79f9420edf5d0991d1e2710179d4e040d480@ngpvan.com>\n"
},
{
"from": "human",
"value": "/*global describe, it */\n/*exported should */\n/*jshint -W030 */\n\nvar should = require('should'),\n supertest = requi... | javascript | chosen |
[
{
"from": "system",
"value": "Set focus to the end of the input when giving focus, matters on the preopulated add dialog.\n"
},
{
"from": "human",
"value": "\"use strict\";\n\nangular.module(\"hikeio\").\n\tdirective(\"giveFocus\", [\"$timeout\", function($timeout) {\n\treturn {\n\t\tlink: funct... | javascript | chosen |
[
{
"from": "system",
"value": "Remove _setImageText in image header\n"
},
{
"from": "human",
"value": "import View from '../View';\nimport HeaderAnalysesView from './HeaderAnalysesView';\nimport HeaderUserView from './HeaderUserView';\nimport HeaderImageView from './HeaderImageView';\nimport rout... | javascript | chosen |
[
{
"from": "system",
"value": "[styling]: Fix pdf image appearing and borders appering\n"
},
{
"from": "human",
"value": "export const printStyles =\n`<style>\n\tdiv {\n border-radius: 0px !important;\n box-shadow: none !important; }\n\n\t@media print {\n\t @page { margin: 0; }\n\t body { margi... | javascript | chosen |
[
{
"from": "system",
"value": "Fix XHR failed alerts firing incorrectly.\n"
},
{
"from": "human",
"value": "(function() {\n // Find the parent window, which has its parent set to itself.\n var parentWindow = window;\n while (parentWindow.parent !== parentWindow) {\n parentWindow = parentWin... | javascript | chosen |
[
{
"from": "system",
"value": "Fix test loader for dasherized file names.\n\nCommit 036df2e2c00aee broke the test loader so that no test modules were\nfound or loaded, and no tests run.\n"
},
{
"from": "human",
"value": "// TODO: load based on params\nEmber.keys(requirejs._eak_seen).filter(functi... | javascript | chosen |
[
{
"from": "system",
"value": "Update text for addresses section\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport { c } from 'ttag';\nimport PropTypes from 'prop-types';\nimport { Alert, Button, PrimaryButton, Block } from 'react-components';\n\nconst AddressesSection = ({ on... | javascript | chosen |
[
{
"from": "system",
"value": "Test against jQuery slim 3.x"
},
{
"from": "human",
"value": "QUnit.config.urlConfig.push({\n id: \"jquery\",\n label: \"jQuery version\",\n value: [\"3.2.1\", \"3.2.0\", \"3.1.1\", \"3.0.0\", \"2.2.4\", \"2.1.4\", \"2.0.3\", \"1.12.4\", \"1.11.3\"],\n tooltip: ... | javascript | chosen |
[
{
"from": "system",
"value": "Remove \\!, switch ternary outs\n"
},
{
"from": "human",
"value": "function Events(target){\n var events = {}, i, list, args, A = Array;\n target = target || this\n /**\n * On: listen to events\n */\n target.on = function(type, func, ctx){\n ev... | javascript | chosen |
[
{
"from": "system",
"value": "Set default port to 8080\n"
},
{
"from": "human",
"value": "var path = require('path');\n\nmodule.exports = {\n 'dev': {\n 'webpack': require(path.join(process.cwd(), 'tasks/config/webpack.js')),\n 'publicPath': '/public/',\n 'keepalive': true,\n 'port'... | javascript | chosen |
[
{
"from": "system",
"value": "Add render function to wall.js\n"
},
{
"from": "human",
"value": "try {\n window;\n} catch(e) {\n var utility = require('./../game/utility');\n}\n\nfunction Wall(start_x, start_y, end_x, end_y) {\n this.start_x = start_x;\n this.start_y = start_y;\n this.end_x ... | javascript | chosen |
[
{
"from": "system",
"value": "Add a missing index (votes by document)\n"
},
{
"from": "human",
"value": "import { Comments, Posts } from 'meteor/example-forum';\n\n\n// Recent Comments query index\\\nComments._ensureIndex({'postedAt': -1, '_id': -1});\n\n// Top Posts query index\nPosts._ensureIn... | javascript | chosen |
[
{
"from": "system",
"value": "fix(this._super): Add this._super calls to avoid weird JS breaking behaviour\n"
},
{
"from": "human",
"value": "(function($){\n\t$.entwine('userswitcher', function($){\n\n\t\t$('form.userswitcher select').entwine({\n\t\t\tonchange : function(){\n\t\t\t\tthis.parents... | javascript | chosen |
[
{
"from": "system",
"value": "Use a single shared 'begin' function in postgres adapter\n"
},
{
"from": "human",
"value": "var pg = require('pg')\n , Transaction = require('any-db').Transaction\n , pgNative = null\n\ntry { pgNative = pg.native } catch (__e) {}\n\nexports.forceJS = false\n\nexpo... | javascript | chosen |
[
{
"from": "system",
"value": "Check for instantiation of faker on the Syrup class\n\n"
},
{
"from": "human",
"value": "describe('Syrup Instantiation', function() {\n it('should instantiate without throwing an error', function() {\n require('../index.js');\n });\n});\n"
},
{
... | javascript | chosen |
[
{
"from": "system",
"value": "Use null as default prop so it's not rendered\n"
},
{
"from": "human",
"value": "import React, { Component } from 'react'\nimport { string, oneOfType, arrayOf, node } from 'prop-types'\nimport { Helmet } from 'react-helmet'\n\nimport pick from '../utils/pick'\nimpor... | javascript | chosen |
[
{
"from": "system",
"value": "Correct Games route component to GamesContainer\n"
},
{
"from": "human",
"value": "import React from 'react'\nimport { Router, Route, hashHistory, IndexRoute } from 'react-router'\n\nimport App from './App'\nimport Home from './Home'\nimport NewGameContainer from '.... | javascript | chosen |
[
{
"from": "system",
"value": "Remove useless JS referencing explorer\n"
},
{
"from": "human",
"value": "$(function() {\n var $explorer = $('#explorer');\n\n $('.nav-main .submenu-trigger').on('click', function() {\n if ($(this).closest('li').find('.nav-submenu').length) {\n\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Update counter example to use `composeWithDevTools`\n"
},
{
"from": "human",
"value": "import { createStore, applyMiddleware, compose } from 'redux';\nimport thunk from 'redux-thunk';\nimport invariant from 'redux-immutable-state-invariant';\nimport devTools from 'r... | javascript | chosen |
[
{
"from": "system",
"value": "tools: Fix externs definitions for Q\n\nSet the method Q.resolve and Q.reject to take an optional variadic\nparameter of any type.\n"
},
{
"from": "human",
"value": "var Q = {};\n\n/**\n * @constructor\n */\nfunction QDeferred () {};\n\nQDeferred.prototype.reject = ... | javascript | chosen |
[
{
"from": "system",
"value": "Use the updated file names for image components in import statements\n"
},
{
"from": "human",
"value": "import BackgroundImage from 'ember-cli-image/components/background-image';\nimport ImageContainer from 'ember-cli-image/components/image-container';\nimport XImg ... | javascript | chosen |
[
{
"from": "system",
"value": "Bring back console.log on new data, and comment out troublesome line\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar Backbone = require('backbone');\nvar BusinessModel = Backbone.Model.extend({\n\tparse: function(data) {\n this.name = data.name;\n this... | javascript | chosen |
[
{
"from": "system",
"value": "Add imu routes and store db reference on app\n"
},
{
"from": "human",
"value": "let express = require('express'),\n\tbodyParser = require('body-parser'),\n\tmorgan = require('morgan'),\n\tmustacheExpress = require('mustache-express'),\n\n\tpath = require('path'),\n\... | javascript | chosen |
[
{
"from": "system",
"value": "Add all views to the plugin namespace\n"
},
{
"from": "human",
"value": "import TreeView from './TreeView';\nimport TreeDialog from './TreeDialog';\n\nexport {\n TreeView,\n TreeDialog\n};\n"
},
{
"from": "gpt",
"value": "import ConfigView from './... | javascript | chosen |
[
{
"from": "system",
"value": "Refactor\nUse preprocess to handle html binding as well.\nUse descendants function to handle binding instead of looping through\nchildren.\n"
},
{
"from": "human",
"value": "(function (root, factory) {\n if(typeof define === 'function' && define.amd) {\n define(... | javascript | chosen |
[
{
"from": "system",
"value": "Fix default folder for scripts\n"
},
{
"from": "human",
"value": "const path = require('path'),\n ProjectType = require('./ProjectType');\n\nmodule.exports = projectType => {\n projectType = projectType || ProjectType.FRONTEND;\n return {\n \"project... | javascript | chosen |
[
{
"from": "system",
"value": "Handle devices without Scan Code\n"
},
{
"from": "human",
"value": "(function($) {\n\n $.fn.scancode = function(options) {\n var settings = $.extend({\n dataAttr : 'scancode-callback-path'\n }, options);\n\n return this.each(function() {\n $(this... | javascript | chosen |
[
{
"from": "system",
"value": "Extend directly from replyable view"
},
{
"from": "human",
"value": "/* global define */\n\ndefine([\n 'jquery',\n 'underscore',\n 'backbone',\n 'marionette',\n 'dust',\n 'dust.helpers',\n 'dust.marionette',\n 'views/replyable-view',\n 'controllers/navigati... | javascript | chosen |
[
{
"from": "system",
"value": "Handle localStorage not being available on page load\n\nYou won't be able to log in, but you'll at least be able to browse the site!\n\nCloses #47\n"
},
{
"from": "human",
"value": "import Ember from 'ember';\n\nexport default Ember.Object.extend({\n savedTransit... | javascript | chosen |
[
{
"from": "system",
"value": "Add uniqueId for each CardModel instance\n"
},
{
"from": "human",
"value": "import { Record as record } from 'immutable';\n\nexport class CardModel extends record({\n id: null,\n name: '',\n mana: null,\n attack: null,\n defense: null,\n}) {\n constructor(obj)... | javascript | chosen |
[
{
"from": "system",
"value": "Update safeLoad to load to fix errer: Function yaml.safeLoad is removed in js-yaml 4. Use yaml.load instead, which is now safe by default.\n"
},
{
"from": "human",
"value": "// Common configuration for webpacker loaded from config/webpacker.yml\n\nconst { join, reso... | javascript | chosen |
[
{
"from": "system",
"value": "Fix duplicate keys in dev config\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar _ = require('lodash');\nvar base = require('./base');\n\nconst development = _.merge({}, base, {\n env: 'development',\n auth0: {\n callbackURL: 'http://localhost:9000/auth... | javascript | chosen |
[
{
"from": "system",
"value": "Read sentry release from service if available\n"
},
{
"from": "human",
"value": "import Ember from 'ember';\nimport config from '../config/environment';\n\nexport function initialize(application) {\n\n if (Ember.get(config, 'sentry.development') === true) {\n re... | javascript | chosen |
[
{
"from": "system",
"value": "Update page titles on Lessons.\n"
},
{
"from": "human",
"value": "import Passthrough from 'components/shared/passthrough.jsx';\n\nimport { getParameterByName } from 'libs/getParameterByName';\n\nconst playRoute = {\n path: ':lessonID',\n getComponent: (nextState, ... | javascript | chosen |
[
{
"from": "system",
"value": "Add the appropriate file header.\n"
},
{
"from": "human",
"value": "/**\n * External dependencies\n */\nimport { useMount } from 'react-use';\nimport PropTypes from 'prop-types';\n\n/**\n * Internal dependencies\n */\nimport Data from 'googlesitekit-data';\nimport {... | javascript | chosen |
[
{
"from": "system",
"value": "Convert tabs to spaces in gruntfile.js\n"
},
{
"from": "human",
"value": "module.exports = function (grunt) {\n\tgrunt.loadNpmTasks('grunt-contrib-jshint');\n\tgrunt.loadNpmTasks('grunt-contrib-qunit');\n\n\tgrunt.initConfig({\n\t\tjshint: {\n\t\t\tall: ['*.js', 'te... | javascript | chosen |
[
{
"from": "system",
"value": "Fix jshint files in gruntfile\n"
},
{
"from": "human",
"value": "module.exports = function(grunt) {\n var packageFile = grunt.file.readJSON(\"package.json\");\n \n grunt.initConfig({\n pkg: packageFile,\n jshint: {\n all: [\"Gruntfi... | javascript | chosen |
[
{
"from": "system",
"value": "Set max-age=0 for CacheControl on profile image S3 uploads\n\n"
},
{
"from": "human",
"value": "const s3 = require('aws-sdk').S3;\nconst s3Bucket = require('../../../config')('/aws/s3Bucket');\nconst logger = require('../../lib/logger');\n\nmodule.exports = () => ({... | javascript | chosen |
[
{
"from": "system",
"value": "Use GraphQL API to update component\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport PropTypes from 'prop-types';\n\nexport default class UpdateButton extends React.Component {\n static propTypes = {\n label: PropTypes.string.isRequired,\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Check for blocks against the right interval\n"
},
{
"from": "human",
"value": "/* This Source Code Form is subject to the terms of the Mozilla Public\n * License, v. 2.0. If a copy of the MPL was not distributed with this\n * file, You can obtain one at http://mozil... | javascript | chosen |
[
{
"from": "system",
"value": "Update default axes for user satisfaction tables\n"
},
{
"from": "human",
"value": "module.exports = function (browser, module, suite, config) {\n\n module.axes = module.axes || {};\n\n module.axes.x = module.axes.x || {\n label: 'Date'\n };\n module.axes.y =... | javascript | chosen |
[
{
"from": "system",
"value": "Remove last reference to renderNullWhileWaiting\n"
},
{
"from": "human",
"value": "let defaultOptions = {\n wait: false,\n renderNullWhileWaiting: true,\n withRef: false,\n bindI18n: 'languageChanged loaded',\n bindStore: 'added removed',\n translateFuncName: ... | javascript | chosen |
[
{
"from": "system",
"value": "Use Ember namespace for jquery use\n"
},
{
"from": "human",
"value": "import Em from 'ember';\nimport { task, timeout } from 'ember-concurrency';\n\nconst { computed } = Em;\n\nvar applicationController = Em.Controller.extend({\n\tactiveNote: null,\n\n hideSidePane... | javascript | chosen |
[
{
"from": "system",
"value": "Fix typo in propTypes which led to invalid prop type error messages\n\n"
},
{
"from": "human",
"value": "import React, { PropTypes } from 'react'\nimport { Link } from 'react-router'\n\n//TODO make it generic (it's duplicated for gsim inputs and outputs)\nexport def... | javascript | chosen |
[
{
"from": "system",
"value": "Add ID of current user to simple-auth session\n"
},
{
"from": "human",
"value": "import Ember from 'ember';\nimport OAuth2 from 'simple-auth-oauth2/authenticators/oauth2';\n\nexport default OAuth2.extend({\n authenticate: function (options) {\n return this.fetch... | javascript | chosen |
[
{
"from": "system",
"value": "Make Eventer.removeListener actually, like, remove passed listener."
},
{
"from": "human",
"value": ";(function(exports) {\n function Eventer() {\n var callbacks = {};\n\n this.addListener = function(obj, event, callback) {\n callbacks[event] = callbacks... | javascript | chosen |
[
{
"from": "system",
"value": "Add bottom margin to header in account > general\n\n"
},
{
"from": "human",
"value": "/**\n *\n *\n * @copyright 2017 Government of Canada\n * @license MIT\n * @author igboyes\n *\n */\nimport React from \"react\";\nimport { capitalize } from \"lodash\";\nimport { c... | javascript | chosen |
[
{
"from": "system",
"value": "Restructure plugin loading to pass Plugin class to each loaded plugin\n\nCloses #33\n"
},
{
"from": "human",
"value": "const\n {app} = require('electron'),\n fs = require('fs-extra'),\n Path = require('path'),\n klaw = require('klaw-sync');\n\nvar Plugin... | javascript | chosen |
[
{
"from": "system",
"value": "Change title with project name\n"
},
{
"from": "human",
"value": "import { observable } from 'mobx'\nimport getCookie from './utils/getCookie'\n\nconst config = observable({\n projectName: '',\n spaceKey: '',\n requiredExtensions: [],\n baseURL: getCookie('BACKE... | javascript | chosen |
[
{
"from": "system",
"value": "Make gender neutrality more bearable\n"
},
{
"from": "human",
"value": "'use strict';\n\nangular.module('ddsCommon').constant('specificSituations', [\n {\n id: 'demandeur_emploi',\n label: 'Demandeur·euse d’emploi'\n },\n {\n id: 'etudi... | javascript | chosen |
[
{
"from": "system",
"value": "Adjust test for copying eslint config\n"
},
{
"from": "human",
"value": "const path = require('path')\nconst assert = require('yeoman-assert')\nconst helpers = require('yeoman-test')\n\ndescribe('react-zeal', () => {\n beforeEach(() => {\n return helpers.run(pat... | javascript | chosen |
[
{
"from": "system",
"value": "Fix redirects causing duplicate setup method calls\n\nTriggering a transition from the beforeModel method in the application route will cause the beforeModel method to be called again on the next transition. Moving the transition call to the redirect method fixes this.\n"
},
... | javascript | chosen |
[
{
"from": "system",
"value": "Insert additional fields for documents\n"
},
{
"from": "human",
"value": "Template.createDoc.events({\n\n \"submit .new-doc\": function(event) {\n console.log(\"test\");\n event.preventDefault();\n var title = event.target.title.value;\n Documents.inser... | javascript | chosen |
[
{
"from": "system",
"value": "Fix case of filename keyboardShortcuts.json\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar App = require('../app');\nvar Backbone = require('backbone');\nvar Marionette = require('backbone.marionette');\nvar _ = require('underscore');\nvar keyboardShortcuts... | javascript | chosen |
[
{
"from": "system",
"value": "Delete row element to fix spacing\n"
},
{
"from": "human",
"value": "var m = require('mithril');\n\n//Components\nvar StudentInfo = require('../components/StudentInfo.js');\nvar StudentJob = require('../components/StudentJob.js');\nvar Messagi... | javascript | chosen |
[
{
"from": "system",
"value": "Write integration test for LMLayerWorker code.\n"
},
{
"from": "human",
"value": "var assert = chai.assert;\ndescribe('LMLayerWorkerCode', function() {\n it('should exist!', function() {\n assert.isFunction(LMLayerWorkerCode,\n 'Could not find LMLayerWorker... | javascript | chosen |
[
{
"from": "system",
"value": "Make geometry behaviors rely on the element's sizechange event rather than on the size attribute. This ensures that element.calculatedSize is up-to-date when it is used, otherwise the size of the geometry can be the wrong value and rendered at the size of the previous frame rat... | javascript | chosen |
[
{
"from": "system",
"value": "Fix bug when navigating insite\n"
},
{
"from": "human",
"value": "chrome.tabs.executeScript(null, {file: \"lib/jquery-3.1.1.min.js\"}, function() {\n chrome.tabs.executeScript(null, {file: \"content.js\"});\n});\n"
},
{
"from": "gpt",
"value": "chrome... | javascript | chosen |
[
{
"from": "system",
"value": "Proto-loading: Throw if we get an error\n"
},
{
"from": "human",
"value": ";(function() {\n 'use strict';\n window.textsecure = window.textsecure || {};\n window.textsecure.protobuf = {};\n\n function loadProtoBufs(filename) {\n return dcodeIO.Pro... | javascript | chosen |
[
{
"from": "system",
"value": "Update keys to match warnings\n"
},
{
"from": "human",
"value": "// @flow\nimport React, { Component } from 'react';\nimport { Link } from 'react-router';\nimport { Text } from 'react-dom';\nimport _ from 'underscore';\nimport styles from './Window2.css';\nimport AL... | javascript | chosen |
[
{
"from": "system",
"value": "Fix tooltip in copy example\n"
},
{
"from": "human",
"value": "const LinkWithTooltip = React.createClass({\n render() {\n let tooltip = <Tooltip placement=\"top\">{this.props.tooltip}</Tooltip>;\n\n return (\n <OverlayTrigger overlay={tooltip} delayShow=... | javascript | chosen |
[
{
"from": "system",
"value": "Add check on DJ id as well.\n\nTo prevent a song being skipped because two different DJs play the same song."
},
{
"from": "human",
"value": "API.on(API.ADVANCE, callback);\n\nfunction callback () {\n\n\tvar a = API.getMedia().cid;\n\tsetTimeout(function() {\n\t ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix navigation active item bug\n"
},
{
"from": "human",
"value": "(function(){\n\t\"use strict\";\n\n\tangular\n\t\t.module('VinculacionApp')\n\t\t.controller('MainController', MainController);\n\n\tfunction MainController () {\n\t\tvar vm = this;\n\n\t\tvm.expand =... | javascript | chosen |
[
{
"from": "system",
"value": "Add the module pattern for the code exampl.\n"
},
{
"from": "human",
"value": "/*Deal with the contene of the click on the navbar and display the page correctly.*/\n$('.navbar a[data-ex]').on('click', function(event) {\n\tevent.preventDefault();\n\t//Remove the act... | javascript | chosen |
[
{
"from": "system",
"value": "Add accounting courses to catalog\n"
},
{
"from": "human",
"value": "module.exports = [].concat(\n require('./biomedical-engineering'),\n require('./chemical-engineering'),\n require('./computer-science')\n);"
},
{
"from": "gpt",
"value": "module.expo... | javascript | chosen |
[
{
"from": "system",
"value": "Use real auth api instead of local one.\n"
},
{
"from": "human",
"value": "import 'babel-polyfill';\nimport React from 'react';\nimport { render } from 'react-dom';\nimport { Provider } from 'react-redux';\nimport { browserHistory } from 'react-router';\nimport { sy... | javascript | chosen |
[
{
"from": "system",
"value": "Use prism default theme for better contrast\n"
},
{
"from": "human",
"value": "/* globals require:false */\nrequire('prismjs/themes/prism-solarizedlight.css');\nrequire('./src/scss/docs.scss');\nrequire('envision');\nrequire('envision/dist/envision.css');\n"
},
... | javascript | chosen |
[
{
"from": "system",
"value": "Exclude underscore files and folders from size report\n"
},
{
"from": "human",
"value": "/* global TASK_CONFIG */\nconst gulp = require(\"gulp\");\nconst sizereport = require(\"gulp-sizereport\");\nconst projectPath = require(\"../lib/project-path\");\n\nfunction si... | javascript | chosen |
[
{
"from": "system",
"value": "Add header values, currency sign\n"
},
{
"from": "human",
"value": "var baseline = {\n\t\"aapl\" : 92,\n\t\"ibm\" : 120,\n\t\"wmt\" : 68,\n\t\"abx\" : 13,\n\t\"msft\" : 35\n};\n\nvar last = {};\n\nsetInterval(function(){\n\n//\t//Add imaginary ticker\n//\tvar newTic... | javascript | chosen |
[
{
"from": "system",
"value": "Change camera options and remove bad function call in form event.\n"
},
{
"from": "human",
"value": "Template.createBetForm.helpers({\n photo: function(){\n return Session.get(\"photo\");\n }\n})\n\nTemplate.createBetForm.events({\n \"submit .create-bet\" : fu... | javascript | chosen |
[
{
"from": "system",
"value": "Add proper styles for single-level (un)ordered lists to standardOptions\n"
},
{
"from": "human",
"value": "var docxReader = require(\"./docx-reader\");\nvar DocumentConverter = require(\"./document-to-html\").DocumentConverter;\nvar htmlPaths = require(\"./html-path... | javascript | chosen |
[
{
"from": "system",
"value": "Allow parser options as param"
},
{
"from": "human",
"value": "var es = require('event-stream'),\n gutil = require('gulp-util'),\n PluginError = gutil.PluginError;\n\nmodule.exports = function (ops) {\n ops = ops || {};\n var cheerio = ops.cheerio || require... | javascript | chosen |
[
{
"from": "system",
"value": "Add spacing to console output\n"
},
{
"from": "human",
"value": "/*jshint node:true*/\n'use strict';\n\nvar exec = require('child_process').exec;\nvar colors = require('colors');\n\nmodule.exports = title;\n\n/**\n * Sets title to current CLI tab or window.\n *\n * ... | javascript | chosen |
[
{
"from": "system",
"value": "Handle alternate form of mongoose 11000 error\n"
},
{
"from": "human",
"value": "var mongoose = require('mongoose');\nvar ShortId = require('./shortid');\n\nvar defaultSave = mongoose.Model.prototype.save;\nmongoose.Model.prototype.save = function(cb) {\n for (fiel... | javascript | chosen |
[
{
"from": "system",
"value": "Refactor to seperate state from operations\n"
},
{
"from": "human",
"value": "'use strict';\n\nmodule.exports = function () {\n const trackers = [];\n let isFinished = false;\n let onFinished = () => {};\n\n function tryToFinish () {\n if (all(pluck(trackers,... | javascript | chosen |
[
{
"from": "system",
"value": "Test for any RTI element on the POI model\n\nPreviously RTI would be added, now it defaults to []\n"
},
{
"from": "human",
"value": "define(['moxie.conf', 'underscore', 'today/views/CardView', 'hbs!today/templates/rti'], function(conf, _, CardView, rtiTemplate) {\n\... | javascript | chosen |
[
{
"from": "system",
"value": "Add _.extendIn extension: for allow the use of mixins in functions"
},
{
"from": "human",
"value": "(function(_) {\n var validationErrorFor = {\n mixin: 'all mixins must be objects.',\n object: 'target must be a constuctor or an object.'\n },\n\... | javascript | chosen |
[
{
"from": "system",
"value": "Add update allow rule; refactor insert rule\n"
},
{
"from": "human",
"value": "Groups = new Mongo.Collection('groups');\n\nvar GroupsSchema = new SimpleSchema({\n name: {\n type: String\n }\n});\n\n// Add i18n tags\nGroupsSchema.i18n(\"groups\");\n\nGroups.atta... | javascript | chosen |
[
{
"from": "system",
"value": "[Extensions] Add support for persistent callback listener\n\nThis is going to be the base of the EventTarget implementation. It is\nimportant to remove the listener at some point otherwise the object will\nleak.\n"
},
{
"from": "human",
"value": "// Copyright (c) 20... | javascript | chosen |
[
{
"from": "system",
"value": "Add email and roles helpers\n"
},
{
"from": "human",
"value": "Template.usersSettings.created = function () {\n // Get reference to Template instance\n var instance = this;\n\n // Subscribe to all users\n instance.subscribe(\"allUsers\");\n};\n\nTemplate.usersSe... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"Refactored ApplicationController to use native class\"\n\nThis reverts commit 9b6d4822e72425ceec192723f4d469060afe1ea5.\n\n- there is an issue with properties not being tracked correctly and the menu not being shown when returning from the editor\n- reverting to workin... | javascript | chosen |
[
{
"from": "system",
"value": "Add new work time value - 3/8\n"
},
{
"from": "human",
"value": "// User roles\napp.constant('USER_ROLES', {\n all: ['ROLES_ADMIN', 'ROLES_LEADER', 'ROLES_WORKER'],\n admin: 'ROLES_ADMIN',\n worker: 'ROLES_WORKER',\n leader: 'ROLES_LEADER'\n});\n\n// Aut... | javascript | chosen |
[
{
"from": "system",
"value": "Check for actual not logged in message\n"
},
{
"from": "human",
"value": "var _ = require('lodash');\n\nmodule.exports = {\n fillLogin: function(form, data) {\n var formData = _.merge(form, data);\n return formData;\n },\n\n headers: function(... | javascript | chosen |
[
{
"from": "system",
"value": "Update the list of internal modules\n"
},
{
"from": "human",
"value": "\nmodule.exports = {\n options: {\n auth: require('./options/auth'),\n body: require('./options/body'),\n callback: require('./options/callback'),\n cookie: require('./options/cookie... | javascript | chosen |
[
{
"from": "system",
"value": "Add support for other countries\n"
},
{
"from": "human",
"value": "(function( $ ) {\n\tvar requests = {};\n\tvar zipValid = {\n\t\tus: /[0-9]{5}(-[0-9]{4})?/\n\t};\n\n\t$.ziptastic = function(zip, callback){\n\t\t// Only make unique requests\n\t\tif(!requests[zip]) ... | javascript | chosen |
[
{
"from": "system",
"value": "Add GitHub icon. Remove articles link\n"
},
{
"from": "human",
"value": "import React from 'react'\nimport { Link } from 'gatsby'\n\nimport MeImg from '../images/me.jpg'\nimport { MenuIcon } from './icons/Menu'\n\nconst Nav = ({ onClick }) => {\n return (\n <div... | javascript | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.