conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Allow email and label to be null\n"
},
{
"from": "human",
"value": "Ext.define('SlateAdmin.model.person.progress.NoteRecipient', {\n extend: 'Ext.data.Model',\n\n\n groupField: 'RelationshipGroup',\n\n fields: [\n {\n name: 'PersonID',\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"Update service worker to fallback to cache\"\n\nThis reverts commit af0f4ed564676f56bd87ef49b3284a2a7f5ea206.\n"
},
{
"from": "human",
"value": "async function networkOrCache(event) {\n\ttry {\n\t\tconst response = await fetch(event.request);\n\n\t\tif (res... | javascript | chosen |
[
{
"from": "system",
"value": "Indent items of list of connectors\n"
},
{
"from": "human",
"value": "'use strict';\n\nrequire('node-define');\n\nfunction printSupportedConnectors() {\n\tlet connectors = require('../core/connectors').sort(function(a, b) {\n\t\treturn a.label.localeCompare(b.label)... | javascript | chosen |
[
{
"from": "system",
"value": "Remove console.log from datatable core\n"
},
{
"from": "human",
"value": "A.DataTable.NAME = 'table';\nA.DataTable.CSS_PREFIX = 'aui-table';\nconsole.log('core');"
},
{
"from": "gpt",
"value": "A.DataTable.NAME = 'table';\nA.DataTable.CSS_PREFIX = 'aui-t... | javascript | chosen |
[
{
"from": "system",
"value": "Use selected language for table headers\n"
},
{
"from": "human",
"value": "import d3 from 'd3';\nimport moment from 'moment';\nimport 'moment/locale/fi';\n\nTemplate.homeResidents.helpers({\n abbreviatedWeekday (date) {\n // Get user browser language\n const ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix native Unicode regexp support detection\n\nhttps://github.com/tc39/ecma262/issues/262\r\nhttps://github.com/tc39/ecma262/pull/263\r\nhttps://bugs.chromium.org/p/v8/issues/detail?id=4617"
},
{
"from": "human",
"value": "'use strict';\n\nmodule.exports = function ... | javascript | chosen |
[
{
"from": "system",
"value": "Use much better function name\n"
},
{
"from": "human",
"value": "import classNames from 'classnames';\nimport React from 'react';\n\nimport FormGroupHeadingContent from './FormGroupHeadingContent';\n\nfunction getModifiedChildren(children) {\n const asteriskNode = ... | javascript | chosen |
[
{
"from": "system",
"value": "Remove data attributes from obfuscated email address\n"
},
{
"from": "human",
"value": ";(function($){\n var email_obfuscated_class = 'obfuscated';\n var email_data_attr_prefix = 'data-email-';\n \n $(document)\n .on('mouseenter focus click touchstart keydown... | javascript | chosen |
[
{
"from": "system",
"value": "Fix Java chart app detection logic\n"
},
{
"from": "human",
"value": "(function () {\n 'use strict';\n\n var isMac = /Mac/i.test(navigator.platform),\n isIOS = /iPhone|iPad|iPod/i.test(navigator.userAgent),\n isAndroid = /Android/i.test(navigato... | javascript | chosen |
[
{
"from": "system",
"value": "Add tooltips to zeroclipboard buttons\n"
},
{
"from": "human",
"value": "export default function (node/*, tooltipPlacement = 'right'*/) {\n\t/*let clip = */new ZeroClipboard(node);\n\t/*let $node = $(node);\n\n\t$node\n\t\t.on('mouseover', () => {\n\t\t\t$node\n\t\t... | javascript | chosen |
[
{
"from": "system",
"value": "Fix indentation and es6 support\n"
},
{
"from": "human",
"value": "window.c.AdminNotificationHistory = ((m, h, _, models) => {\n return {\n controller: (args) => {\n const notifications = m.prop([]),\n getNotifications = (user) =>... | javascript | chosen |
[
{
"from": "system",
"value": "Use null renderer (for ease of testing) and center at (0, 0)\n"
},
{
"from": "human",
"value": "import geojs from 'geojs/geo.js';\nimport VisComponent from '../../VisComponent';\n\nexport default class Geo extends VisComponent {\n constructor (el, options) {\n s... | javascript | chosen |
[
{
"from": "system",
"value": "Add limit (relevant for gods)\n"
},
{
"from": "human",
"value": "// Module Route(s)\nDevAAC.config(['$routeProvider', function($routeProvider) {\n $routeProvider.when('/highscores', {\n \t// When a module contains multiple routes, use 'moduleName/viewName' in ... | javascript | chosen |
[
{
"from": "system",
"value": "Call the callback function only when the target element is intersecting the root element;\nAvoids extra calls.\n"
},
{
"from": "human",
"value": "import React from 'react'\nimport Link from 'gatsby-link'\n\nexport default class InfiniteScrollLink extends React.Compo... | javascript | chosen |
[
{
"from": "system",
"value": "Fix the error \"Not allowed to navigate top frame to data URL\"\n\nLink: https://stackoverflow.com/questions/45493234/jspdf-not-allowed-to-navigate-top-frame-to-data-url"
},
{
"from": "human",
"value": "/**\n * Created by seanweppner on 8/4/16.\n */\n\napp.controlle... | javascript | chosen |
[
{
"from": "system",
"value": "Add Laws and Policies to country sections routes\n"
},
{
"from": "human",
"value": "import { createElement } from 'react';\n\nimport GHGCountryEmissions from 'components/country/country-ghg';\nimport NDCSDGLinkages from 'components/country/country-ndc-sdg-linkages';... | javascript | chosen |
[
{
"from": "system",
"value": "Use if instead of inline alternatives\n"
},
{
"from": "human",
"value": "\"use strict\";\n\n\n/*global nodeca, _*/\n\n\nvar me_in_fields = [\n '_uname',\n 'locale'\n];\n\n\n// fetch current user info\n// fired before each controllers\nnodeca.filters.before('', { w... | javascript | chosen |
[
{
"from": "system",
"value": "Update test to support Node.js 6.1.0\n"
},
{
"from": "human",
"value": "import test from 'ava';\nimport path from 'path';\n\nimport JsonFileConfigurationProvider from '../src/lib/jsonFileConfigurationProvider';\n\ntest('Constructor should throw for missing filePath'... | javascript | chosen |
[
{
"from": "system",
"value": "Remove static service of public (dist is only output)\n"
},
{
"from": "human",
"value": "\n/**\n * Module dependencies.\n */\n\nvar express = require('express');\nvar unminify = require('./lib/unminify');\nvar path = require('path');\nvar app = module.... | javascript | chosen |
[
{
"from": "system",
"value": "Add encrypt key list item jsx\n"
},
{
"from": "human",
"value": "'use strict';\n\nimport React, { Component } from 'react';\nimport ReactCSS from 'reactcss';\n\nimport { User } from '../common/index';\n\nimport colors from '../../styles/variables/colors';\nimport { ... | javascript | chosen |
[
{
"from": "system",
"value": "Implement execution code with basic message tracking and GUI display\n"
},
{
"from": "human",
"value": "/* execution */\n"
},
{
"from": "gpt",
"value": "DISCORD.setupMessageRequestHook((channel, messages) => {\n if (STATE.isTracking()){\n var info = ... | javascript | chosen |
[
{
"from": "system",
"value": "Use different values between tests\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport ReactDOM from 'react-dom';\nimport { Simulate } from 'react-addons-test-utils';\nimport { render } from '../../../helpers/rendering.js';\nimport $ from 'jquery';... | javascript | chosen |
[
{
"from": "system",
"value": "Set up a more reasonable unit test.\n\nIt is green already, yahoo! Need to set up a negative test also I think.\n"
},
{
"from": "human",
"value": "import {\n moduleFor,\n test\n} from 'ember-qunit';\n\nmoduleFor('serializer:customer', {\n // Specify the other uni... | javascript | chosen |
[
{
"from": "system",
"value": "Fix the error message when the name is taken\n"
},
{
"from": "human",
"value": "'use strict';\n\nimport jwt from 'jwt-simple';\n\nimport { userModel } from '../../../models/index';\nimport { secret } from '../../../config/config';\n\nimport { buildResponse } from '.... | javascript | chosen |
[
{
"from": "system",
"value": "Fix error where componentdidmount didn't load fast enough and caused a crash at render\n"
},
{
"from": "human",
"value": "\"use strict\";\n\nimport React, { Component } from 'react';\n// Bootstrap\n\nexport default class BenefitsList extends Component {\n component... | javascript | chosen |
[
{
"from": "system",
"value": "Fix module not found error on jQuery\n"
},
{
"from": "human",
"value": "const path = require('path');\n\nmodule.exports = {\n entry: {\n app: path.resolve(__dirname, 'app/Resources/assets/js/app.js')\n },\n output: {\n path: path.resolve(__dir... | javascript | chosen |
[
{
"from": "system",
"value": "Add process.env inside plugins to react understand that we are at production env\n"
},
{
"from": "human",
"value": "var debug = process.env.NODE_ENV !== \"production\";\nvar webpack = require('webpack');\nvar path = require('path');\n\nmodule.exports = {\n context:... | javascript | chosen |
[
{
"from": "system",
"value": "Style: Comment out uglify plugin for webpack.\n"
},
{
"from": "human",
"value": "var path = require('path');\nvar webpack = require('webpack');\n \nmodule.exports = {\n entry: './scripts/main.js',\n output: { path: __dirname, filename: 'bundle.js' },\n module: {\... | javascript | chosen |
[
{
"from": "system",
"value": "Check jQuery dependency, minor syntax adjustments"
},
{
"from": "human",
"value": "jQuery.fn.equalHeight = function() {\n\n\tvar $ = jQuery;\n\tvar that = this;\n\n\tvar setHeights = function() {\n\t\tvar elems = {};\n\t\tvar cont = $(that);\n\n\t\t// Reset the elem... | javascript | chosen |
[
{
"from": "system",
"value": "Build: Use short syntax for RequireJS' shims\n\nWe don't need to export anything, just express dependencies of the non-AMD modules.\n"
},
{
"from": "human",
"value": "requirejs.config({\n\t\"paths\": {\n\t\t// requireJS plugins\n\t\t\"text\": \"../external/requirejs... | javascript | chosen |
[
{
"from": "system",
"value": "Check Campaign Existence for Delete/Set/Get Purposes\n"
},
{
"from": "human",
"value": "var configuration = require('../../config/configuration.json')\nvar utility = require('../../public/method/utility')\n\nmodule.exports = {\n checkCampaignModel: function (redisC... | javascript | chosen |
[
{
"from": "system",
"value": "Add functionality to update current position marker\n"
},
{
"from": "human",
"value": "angular.module('bolt.controller', [])\n\n.controller('BoltController', function($scope, Geo){\n $scope.currentCoords = {\n lat: null,\n lng: null\n };\n $scope.getCurrent... | javascript | chosen |
[
{
"from": "system",
"value": "Add some hard-coded headers for now\n"
},
{
"from": "human",
"value": "import 'hyperagent/config' as c;\n\nfunction ajax(options) {\n var deferred = c.defer();\n c.ajax(c._.extend(options, {\n success: deferred.resolve,\n error: deferred.reject\n }));\n\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Remove countries from fires widg\n"
},
{
"from": "human",
"value": "export default {\n title: {\n withLocation: 'Fires in {location}'\n },\n config: {\n size: 'small',\n categories: ['forest-change', 'summary'],\n admins: ['country', 'region', 'subReg... | javascript | chosen |
[
{
"from": "system",
"value": "Add class to Breadcrumb schema\n"
},
{
"from": "human",
"value": "define(['$'], function ($) {\n\n return {\n 'breadcrumb': [\n {'label': 'Home', 'url': '#'},\n {'label': 'Homeware', 'url': '#'},\n {'label': 'Kitchen', 'url... | javascript | chosen |
[
{
"from": "system",
"value": "Disable rule only for offending line\n"
},
{
"from": "human",
"value": "/* eslint-disable no-restricted-syntax */\n'use strict';\n\n// MODULES //\n\nvar tape = require( 'tape' );\n\n\n// TESTS //\n\ntape( 'test test test', function test( t ) {\n\tt.strictEqual( true... | javascript | chosen |
[
{
"from": "system",
"value": "Simplify how we draw the world: operations are not additive operations anymore\n"
},
{
"from": "human",
"value": "(function () {\n \"use strict\";\n\n angular\n .module(\"PLMApp\")\n .factory(\"World\", World);\n\n function World() {\n\n var World = func... | javascript | chosen |
[
{
"from": "system",
"value": "Make module id's for AMD body in UMD optional as well\n"
},
{
"from": "human",
"value": "module.exports = UMDFormatter;\n\nvar AMDFormatter = require(\"./amd\");\nvar util = require(\"../../util\");\nvar t = require(\"../../types\");\nvar _ ... | javascript | chosen |
[
{
"from": "system",
"value": ":green_heart: Use syntax that doesn't fail ESLint checks\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar eslint = require('eslint');\nvar path = require('path');\n\nit('load config in eslint to validate rule syntax', function() {\n var data = new eslint.CLI... | javascript | chosen |
[
{
"from": "system",
"value": "[DASH-2397] Refresh hostings after closing modal\n"
},
{
"from": "human",
"value": "import Reflux from 'reflux';\nimport _ from 'lodash';\n\nimport { CheckListStoreMixin, HostingMixin, WaitForStoreMixin, StoreLoadingMixin } from '../../mixins';\n\nimport SessionActi... | javascript | chosen |
[
{
"from": "system",
"value": "Fix for unescapedHtml.cmp losing rendering after empty value.\n"
},
{
"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 in complian... | javascript | chosen |
[
{
"from": "system",
"value": "Add more instructions to the alarm alert\n"
},
{
"from": "human",
"value": "export default () => {\n chrome.alarms.onAlarm.addListener(function (alarm) {\n if (alarm.name === \"reminder\") {\n runIfTrackerOpen(function () {\n aler... | javascript | chosen |
[
{
"from": "system",
"value": "Add key to household notes to avoid warning\n"
},
{
"from": "human",
"value": "import React from 'react'\nimport { List } from 'semantic-ui-react'\nimport format from 'date-fns/format'\n\nconst HouseholdNotes = ({notes}) => {\n return (\n <List>\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add more responsiveness for user without organizations\n"
},
{
"from": "human",
"value": "\nvar description = d3.select(\"#text\")\n .html(\"<b>Title: </b><br/><b>Number: </b><br/><b>Body: </b><br/><b>ID: </b><br/><b>Assignee: </b><br/><b>Milestone: </b><br/><b>R... | javascript | chosen |
[
{
"from": "system",
"value": "Update implicit default for view layout\n"
},
{
"from": "human",
"value": "/**\n * getImplicitDefaults()\n *\n * Get a dictionary of implicit defaults this hook would like to merge\n * into `sails.config` when Sails is loaded.\n *\n * @param {Dictionary} existingCo... | javascript | chosen |
[
{
"from": "system",
"value": "[FIX] Add source and sourceId to db model\n"
},
{
"from": "human",
"value": "'use strict';\nmodule.exports = {\n up: function(queryInterface, Sequelize) {\n return queryInterface.createTable('Activities', {\n id: {\n type: Sequelize.INTEGER,\n ... | javascript | chosen |
[
{
"from": "system",
"value": "fix(bulk-mailer): Remove the locale prefix on filenames w/ --write\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 obt... | javascript | chosen |
[
{
"from": "system",
"value": "Update id of list element container\n"
},
{
"from": "human",
"value": "(function($) {\n\t$().ready(function() {\n\t\tvar ANIMATION_SPEED = 250;\n\t\t\n\t\t$('body').addClass('js');\n\t\t\n\t\t// DMs on the Settings page\n\t\t$('#user_enable_dms').click(function(even... | javascript | chosen |
[
{
"from": "system",
"value": "Add missing method to StripeJS mock\n\nOur Angular code calls this method for interacting with live form validations and messages. We don't really need to use in tests, it just needs to exist otherwise the specs fail.\n"
},
{
"from": "human",
"value": "class Element... | javascript | chosen |
[
{
"from": "system",
"value": "Modify user table to match data from Auth0\n"
},
{
"from": "human",
"value": "'use strict';\nvar db = require('./database');\nvar Sequelize = require('sequelize');\n\nmodule.exports = function(){\n var User = db.define('Users', {\n userId: {type: Sequelize.STRIN... | javascript | chosen |
[
{
"from": "system",
"value": "Remove unused JWT and fix linter erros\n"
},
{
"from": "human",
"value": "/* eslint new-cap: 0 */\nconst mongoose = require('mongoose');\nconst bcrypt = require('bcrypt-nodejs');\nconst Q = require('q');\n\nconst SALT_WORK_FACTOR = 10;\n\nconst UserSchema = new mong... | javascript | chosen |
[
{
"from": "system",
"value": "Update memo when its file is updated\n"
},
{
"from": "human",
"value": "\nvar fs = require('fs');\nvar read = fs.createReadStream('./memos/memo0.md');\n\nvar io = require('socket.io').listen(9001);\nio.sockets.on('connection', function (socket) {\n read.on('data', ... | javascript | chosen |
[
{
"from": "system",
"value": "Change it description for better error output\n"
},
{
"from": "human",
"value": "describe('hyper-yield tag', function() {\n var $compile,\n $rootScope;\n\n beforeEach(module('hyperContentFor'));\n\n beforeEach(inject(function(_$compile_, _$rootScope_) {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Include keyBindingsReducer is initial reducers.\n\nPart of STRPCORE-2.\n"
},
{
"from": "human",
"value": "import { reducer as form } from 'redux-form';\nimport okapiReducer from './okapiReducer';\nimport { discoveryReducer } from './discoverServices';\n\nexport defa... | javascript | chosen |
[
{
"from": "system",
"value": "Test call store from app window\n"
},
{
"from": "human",
"value": "/**\n * Squid Desktop\n * Main window\n *\n */\n\n'use strict';\n\nvar Desktop = window.Squid\n\nvar MainWindow = function()\n{\n console.log('+++++++')\n console.log( Desktop._UID )\n console.log... | javascript | chosen |
[
{
"from": "system",
"value": "Test with content changing button\n"
},
{
"from": "human",
"value": "(function (window, $, undefined) {\n 'use strict';\n var Example;\n Example = function Example(cockpit) {\n console.log('Loading example plugin in the browser.');\n // Instance variables\n... | javascript | chosen |
[
{
"from": "system",
"value": "Fix history adding too many things when clicked\n"
},
{
"from": "human",
"value": "import Clipboard from 'clipboard';\nimport React from 'react';\n\nimport { Colours } from '../../modules/colours';\nimport { Saved } from '../../modules/saved';\n\nexport class Histor... | javascript | chosen |
[
{
"from": "system",
"value": "Fix error in test title\n"
},
{
"from": "human",
"value": "var chai = require(\"chai\");\nchai.Should();\nchai.use(require('chai-things'));\nchai.use(require('signalk-schema').chaiModule);\n\nvar mapper = require(\"../n2kMapper.js\");\n\n\ndescribe('129039 Class B U... | javascript | chosen |
[
{
"from": "system",
"value": "Fix bug with removing saved job from bookmarks\n"
},
{
"from": "human",
"value": "import React from 'react';\n\nimport { withScrollToTop } from '../hocs/withScrollToTop';\n\nimport FeaturedItems from '../FeaturedItems';\n\nimport { Header, Status } from './styled';\... | javascript | chosen |
[
{
"from": "system",
"value": "Stop changing moment locale twice\n"
},
{
"from": "human",
"value": "import { stringify } from 'querystring'\nimport React from 'react'\nimport PropTypes from 'prop-types'\nimport moment from 'moment'\nimport { withRouter } from 'next/router'\nimport { translate } f... | javascript | chosen |
[
{
"from": "system",
"value": "Create hidden picture element when respimage is loaded.\n\nSeen in this example: https://github.com/fabianmichael/kirby-imageset#23-template-setup\n"
},
{
"from": "human",
"value": "/**\n * head.script.js\n *\n * Essential scripts, to be loaded in the head of the do... | javascript | chosen |
[
{
"from": "system",
"value": "Load beackup metadata for restore action [WAL-547]\n"
},
{
"from": "human",
"value": "const openstackBackupRestoreSummary = {\n template: '<openstack-instance-checkout-summary ng-if=\"$ctrl.context.resource\" model=\"$ctrl.summaryModel\"/>',\n bindings: {\n mod... | javascript | chosen |
[
{
"from": "system",
"value": "Add default filter on ID when listview loaded from Toolber Search\n"
},
{
"from": "human",
"value": "// Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors\n// MIT License. See license.txt\n\nfrappe.ui.toolbar.Search = frappe.ui.toolbar.SelectorDia... | javascript | chosen |
[
{
"from": "system",
"value": "Use STATIC_DRAW as default WebGL buffer usage\n"
},
{
"from": "human",
"value": "/**\n * @module ol/webgl/Buffer\n */\nimport _ol_webgl_ from '../webgl.js';\n\n/**\n * @enum {number}\n */\nconst BufferUsage = {\n STATIC_DRAW: _ol_webgl_.STATIC_DRAW,\n STREAM_DRAW:... | javascript | chosen |
[
{
"from": "system",
"value": "Remove 'submissions' from volumetrics graph label\n"
},
{
"from": "human",
"value": "define([\n 'vehicle-licensing/collections/services',\n 'extensions/views/timeseries-graph/timeseries-graph',\n 'extensions/views/tabs',\n 'extensions/views/graph/headline',\n],\... | javascript | chosen |
[
{
"from": "system",
"value": "Moderator: Update name being sent to the server\n\nUpdate the name being sent to the server to be the\nname that was put into the currentName variable.\n"
},
{
"from": "human",
"value": "var socket = io();\n//var verifyNameFormState = false;\n\nsocket.on('moderate n... | javascript | chosen |
[
{
"from": "system",
"value": "Add a method for requesting an email\n"
},
{
"from": "human",
"value": "var m = require('mithril');\n\nmodule.exports = function() {\n self = this;\n\n self.domains = [];\n self.currentDomain = m.prop('');\n\n self.init = function() {\n\n m.reques... | javascript | chosen |
[
{
"from": "system",
"value": "Fix url of sample sound"
},
{
"from": "human",
"value": "var context;\nwindow.addEventListener('load', init, false);\nfunction init() {\n\ttry {\n\t var dogBarkingUrl = 'https://commons.wikimedia.org/wiki/File:Sound-of-dog.ogg';\n\t\tvar dogBarkingBuffer = null;\n\... | javascript | chosen |
[
{
"from": "system",
"value": "Enable react production mode and fix uglify settings\n"
},
{
"from": "human",
"value": "/* eslint no-var: 0 */\nvar objectAssign = require('object-assign');\nvar webpack = require('webpack');\nvar baseConfig = require('./base.config');\n\nmodule.exports = objectAssi... | javascript | chosen |
[
{
"from": "system",
"value": "Use Firefox for the Selenium tests in CI.\n"
},
{
"from": "human",
"value": "var test = require('selenium-webdriver/testing');\nvar server = require('./server');\nglobal.driver = null;\n\nfunction setUpDriverFor(test) {\n test.before(function() {\n var webdriver... | javascript | chosen |
[
{
"from": "system",
"value": "Add icon style class for menu"
},
{
"from": "human",
"value": "/**\n * Show the display name of the sample for navigation \n * @public \n * @return {String}\n * @properties={typeid:24,uuid:\"EB63D830-02F7-4CE4-BC4F-96E36F200217\"}\n */\nfunction getName(){\r\n\tthro... | javascript | chosen |
[
{
"from": "system",
"value": "Update selector for Delete Fork Link\n\nRelated to #1001"
},
{
"from": "human",
"value": "import {h} from 'dom-chef';\nimport select from 'select-dom';\nimport * as pageDetect from '../libs/page-detect';\n\nconst repoUrl = pageDetect.getRepoURL();\n\nexport default ... | javascript | chosen |
[
{
"from": "system",
"value": "Make author data parser concise\n"
},
{
"from": "human",
"value": "'use strict'\n\nimport React, { PropTypes } from 'react'\nimport classNames from 'classnames'\nimport styles from './AuthorData.scss'\n\nconst boxClasses = classNames(\n styles['author-box'],\n 'ce... | javascript | chosen |
[
{
"from": "system",
"value": "fix(build): Use the new `typings` instead of the deprecated `tsd`\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\n\nvar child;\nvar exec = require('child_process').exec;\n\nexec('tsd reinstall -s');\n"
},
{
"from": "gpt",
"value": "#!/usr/bin/env... | javascript | chosen |
[
{
"from": "human",
"value": "Add JS for solo challenge\n"
},
{
"from": "gpt",
"value": "var madLibs = function() {\n var storyDiv = document.getElementById(\"story\");\n var name = document.getElementById(\"name\").value;\n var adjective = document.getElementById(\"adjective\").value;\n... | javascript | chosen |
[
{
"from": "system",
"value": "Fix Article-Edit Tags And Catalogs Post\n"
},
{
"from": "human",
"value": "const Tags = require(\"../models/\").Tags;\n// const Article = require('../models/').Article;\n\nexports.addTags = (tags, articleId) => {\n // console.log(\"tags\", tags);\n tags.forEach(as... | javascript | chosen |
[
{
"from": "system",
"value": "Add test for ciphertext tampering\n"
},
{
"from": "human",
"value": "describe('Encryption', () => {\n\tit('apply encryption and decryption to get original message', done => {\n\t\twindow.newEncryptionKey().then(key => {\n\t\t\tconst message = 'The quick brown fox ju... | javascript | chosen |
[
{
"from": "system",
"value": "Remove test that covers method that Matt previously removed\n"
},
{
"from": "human",
"value": "'use strict';\n\ndescribe('FooterCtrl', function() {\n var FooterCtrl;\n\n beforeEach(function() {\n module('yourStlCourts');\n\n inject(function($controller) {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix deleting S3 files after they are uploaded\n"
},
{
"from": "human",
"value": "\n(function(Rubeus) {\n\n Rubeus.cfg.s3 = {\n\n uploadMethod: 'PUT',\n uploadUrl: null,\n uploadAdded: function(file, item) {\n var self = this;\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix table scope var in tb-table\n"
},
{
"from": "human",
"value": "tbTable.$inject = [ 'tableBuilder' ];\n\nfunction tbTable(tableBuilder) {\n var directive = \n {\n restrict: 'E',\n scope: {\n schema: '=',\n model: '=',\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add proptype validation to Quantity component\n"
},
{
"from": "human",
"value": "import React from 'react';\n\nclass Quantity extends React.Component {\n render() {\n return (\n <div className=\"container__row figure -left -center\">\n <div className... | javascript | chosen |
[
{
"from": "system",
"value": "Save app preset in config\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar BaseGenerator = require('yeoman-generator').Base;\n\nmodule.exports = BaseGenerator.extend({\n\n constructor: function () {\n BaseGenerator.apply(this, arguments);\n this.option... | javascript | chosen |
[
{
"from": "system",
"value": "Add style to domain list output\n"
},
{
"from": "human",
"value": "var api = require('digio-api')\n, print = require('../print')\n, tools = require('../tools')\n\nvar domains = function (cmd, _config) {\n api = new api(tools.get_active_key(_config))\n\n cmd.regist... | javascript | chosen |
[
{
"from": "system",
"value": "Update bootstrap to match the changed group schema\n"
},
{
"from": "human",
"value": "var Promise = require('bluebird'),\n mongoose = Promise.promisifyAll(require('mongoose')),\n Group = mongoose.model('Group'),\n async = require('async'),\n collection;\... | javascript | chosen |
[
{
"from": "system",
"value": "Fix status bar on analysis page\n"
},
{
"from": "human",
"value": "import { List as list } from 'immutable';\nimport { connect } from 'react-redux';\n\nimport { aBlockClicked } from '../../../actions/analysis.actions';\nimport { aContentBlockHovered } from '../../..... | javascript | chosen |
[
{
"from": "system",
"value": "Set assets and display name\n"
},
{
"from": "human",
"value": "const ChildProcess = require('child_process')\nconst path = require('path')\n\nconst metadata = require('../package')\n\nconst command = path.join(__dirname, '..', 'node_modules', '.bin', 'electron-windo... | javascript | chosen |
[
{
"from": "system",
"value": "Rewrite promises with async-await in controllers\n"
},
{
"from": "human",
"value": "const dotenv = require('dotenv');\n\ndotenv.config();\n\nmodule.exports = {\n development: {\n username: 'Newman',\n password: 'andela2017',\n database: 'postit-db-dev',\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add option to render based on version\n"
},
{
"from": "human",
"value": "import Ember from 'ember';\nimport layout from './template';\nimport config from 'ember-get-config';\n\n/**\n * @module ember-osf\n * @submodule components\n */\n\n/**\n * Render the provided u... | javascript | chosen |
[
{
"from": "system",
"value": "Add the flatten option for bar chart with numbers\n\nModule appears to work in exactly the same way after doing this\n"
},
{
"from": "human",
"value": "define([\n 'extensions/collections/collection'\n],\nfunction (Collection) {\n return {\n requiresSvg: true,\n... | javascript | chosen |
[
{
"from": "system",
"value": "Add helper function to load a given model\n"
},
{
"from": "human",
"value": "import superagent from 'superagent'\nimport errors from '../../lib/errors'\n\nconst client = {\n get (path, callback) {\n superagent\n .get(path)\n .end((err, res) => {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Remove a couple of console.log calls\n"
},
{
"from": "human",
"value": "var path = require(\"path\");\nvar mvc = exports = module.exports;\n\n/** \n * Enable having multiple folders for views to support the\n * module/mymodule/views structure \n */\nmvc.EnableMultip... | javascript | chosen |
[
{
"from": "system",
"value": "Add note about schema in Users collection\n"
},
{
"from": "human",
"value": "/**\n * Users\n */\n\nMeteor.users.allow({\n insert: function() { return false; },\n update: function() { return false; },\n remove: function() { return false; }\n});\n\nMeteor.users.den... | javascript | chosen |
[
{
"from": "system",
"value": "Create newGame method and pass unit test.\n"
},
{
"from": "human",
"value": "'use strict';\n\nangular.module('Game', ['Grid'])\n\n.service('GameManager', ['GridService', function(GridService) {\n // initialize service\n this.reinit = function() {\n this... | javascript | chosen |
[
{
"from": "system",
"value": "Use comprehensible names for ranking points\n"
},
{
"from": "human",
"value": "/**\n * No Description\n *\n * @return LocalStrings\n * @author Erik E. Lorenz <erik@tuvero.de>\n * @license MIT License\n * @see LICENSE\n */\ndefine(function() {\n return {\n teamsi... | javascript | chosen |
[
{
"from": "system",
"value": "Add UFIReplyList to display:none CSS"
},
{
"from": "human",
"value": "window.aloft = window.aloft || {};\naloft.toggleFBComments = function () {\n if (!aloft.commentStyle) {\n var css = '.UFIComment {display: none;}', head = document.head || document.getElements... | javascript | chosen |
[
{
"from": "system",
"value": "Fix opening links in browser on Windows\n"
},
{
"from": "human",
"value": "'use strict';\nvar opn = require('open');\nvar http = require('http');\nvar fs = require('fs');\nvar url = require('url');\nvar path = require('path');\nvar Promise = require('bluebird');\n\n... | javascript | chosen |
[
{
"from": "system",
"value": "Clean service worker cache before each test\n\n"
},
{
"from": "human",
"value": "// ***********************************************************\n// This example support/index.js is processed and\n// loaded automatically before your test files.\n//\n// This is a grea... | javascript | chosen |
[
{
"from": "system",
"value": "FIX: Use tester instead of fs to pipe data into my stream.\n"
},
{
"from": "human",
"value": "/**\n * Modules dependencies\n */\n\nvar spec = require('stream-spec'),\n\ttester = require('stream-tester'),\n\tcsv = require('./../');\n\nvar options = {\n\tdelimiter : '... | javascript | chosen |
[
{
"from": "system",
"value": "Fix noPasswordManager name for docs\n\nFix `noPasswordManager` for documentation.\r\nhttps://our.umbraco.com/apidocs/v8/ui/#/api/umbraco.directives.directive:no-password-manager"
},
{
"from": "human",
"value": "/**\n* @ngdoc directive\n* @name umbraco.directives.di... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"Revert \"🐛 Fix issues with mobx and class properties\"\"\n\nThis reverts commit 3f24504d9d5e61efff40ea18c3b6d9e06dffee8a.\n"
},
{
"from": "human",
"value": "module.exports = function (context, opts = {}) {\n const env = process.env.BABEL_ENV || process.e... | javascript | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.