conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "[CHORE] Clean up gateway users controller from refactor to model\n" }, { "from": "human", "value": "var User = require('../models/user'),\n\t\tGatewayAccount = require('../models/gateway_account'),\n utils = require('../../lib/utils'),\n\t\tutil = require('util')...
javascript
chosen
[ { "from": "system", "value": "Style: Add comments and fix indentation\n" }, { "from": "human", "value": "'use strict';\n\n/**\n * @ngdoc filter\n * @name SubSnoopApp.filter:isImage\n * @function\n * @description\n * # isContent\n * Filter in the SubSnoopApp.\n */\nangular.module('SubSnoopApp')\n...
javascript
chosen
[ { "from": "system", "value": "Add a note regarding event items filtration [WAL-1077]\n" }, { "from": "human", "value": "import template from './dashboard-feed.html';\n\nexport const projectEventsFeed = {\n template,\n bindings: {\n project: '<'\n },\n controller: class ProjectEventsFeedCo...
javascript
chosen
[ { "from": "system", "value": "Change label text of second view\n" }, { "from": "human", "value": "/* ************************************************************************\n\n coretest\n\n Copyright:\n 2009 Deutsche Telekom AG, Germany, http://telekom.com\n\n *****************************...
javascript
chosen
[ { "from": "system", "value": "Replace all '.' by '\\.' in the names\n" }, { "from": "human", "value": "function subscribe(link) {\n $.ajax(link, {\n success: function(json, stat, xhr) {\n var name, sel;\n name = json.repo.name;\n name = name.replace('.'...
javascript
chosen
[ { "from": "system", "value": "Add \"i have a problem\" as new trigger" }, { "from": "human", "value": "// Description\n// Get an inspiring question form serenize.me\n//\n// Commands:\n// hubot <serenize me> - <fetches a question>\n// hubot <serenize.me> - <fetches a question>\n//\n// Autho...
javascript
chosen
[ { "from": "system", "value": "Update description name for property trials\n" }, { "from": "human", "value": "define(['../../build/courtroom'], function(CourtroomValidation) {\n var Courtroom = CourtroomValidation.Courtroom;\n\n describe(\"Courtroom Constructor\", function() {\n it(\"does no...
javascript
chosen
[ { "from": "system", "value": "Remove new action plan button\n" }, { "from": "human", "value": "import ActionPlansFilters from './action_plans_filters.component';\nimport NewActionPlanButton from './new_action_plan_button.component';\n\nexport default function () {\n return (\n <aside classN...
javascript
chosen
[ { "from": "system", "value": "Fix UDD for voip in e2e rooms\n\nWhen starting a call, several events are sent and if some devices are unverified, all three will trigger their own UnknownDeviceError. This causes three overlapping, identical UnknownDeviceDialogs.\n\nThis change effectively dedupes the dialogs ...
javascript
chosen
[ { "from": "system", "value": "Fix plan formset handling in new contribution frontend.\n\n* On load, show plans if button is checked.\n* Let users know it there are any errors if button is checked.\n* Fix broken behaviour in formsets when checkbox is checked.\n" }, { "from": "human", "value": "$(...
javascript
chosen
[ { "from": "system", "value": "Use github api as example, because openweathermap now requires an access token.\n" }, { "from": "human", "value": "var promisedHandlebars = require('../')\nvar Handlebars = promisedHandlebars(require('handlebars'))\nvar httpGet = require('get-promise')\n\n// A block...
javascript
chosen
[ { "from": "system", "value": "Make message id a string\n" }, { "from": "human", "value": "import faker from'faker';\n\nconst messages = [];\n\nfunction createMessage(id) {\n return {\n id,\n message: faker.company.catchPhrase(),\n updated: false,\n };\n}\n\nfor (let i ...
javascript
chosen
[ { "from": "system", "value": "Make sure the test fails\n" }, { "from": "human", "value": "var code = multiline([\n \"(function() {\",\n \" function foo(b){\",\n ' b === \"lol\";',\n \" foo(b);\",\n \" }\",\n \"})();\",\n]);\n\ntransform(code, {\n plugins: [\n function (b) {\n ...
javascript
chosen
[ { "from": "system", "value": "Remove the listeners when the SSE stream is closed\n" }, { "from": "human", "value": "const express = require('express')\nconst connectSSE = require('connect-sse')\nconst sse = connectSSE()\n\nmodule.exports = group => {\n const router = express.Router()\n\n route...
javascript
chosen
[ { "from": "system", "value": "Add description to config generator\n" }, { "from": "human", "value": "import { Base } from 'yeoman-generator';\nimport generatorArguments from './arguments';\nimport generatorOptions from './options';\nimport generatorSteps from './steps';\n\nexport default class C...
javascript
chosen
[ { "from": "system", "value": "Fix for submit for approval button not always showing. Ensure event lookup uses consistent uri format.\n" }, { "from": "human", "value": "function getLastEditedEvent(collection, page) {\n var pageEvents = collection.eventsByUri[page];\n\n var lastEditedEvent = _....
javascript
chosen
[ { "from": "system", "value": "Fix typo on coordinator types JSDoc\n" }, { "from": "human", "value": "// From: https://kafka.apache.org/protocol.html#The_Messages_FindCoordinator\n\n/**\n * @typedef {number} CoordinatorType\n *\n * Enum for tri-state values.\n * @enum {CoordinatorType}\n */\nmodu...
javascript
chosen
[ { "from": "system", "value": "Add a section label for anstract.\n" }, { "from": "human", "value": "import { Component } from 'substance'\n\nexport default class AbstractComponent extends Component {\n render ($$) {\n const model = this.props.model\n const ModelComponent = this.getComponen...
javascript
chosen
[ { "from": "system", "value": "Add sort by default for homeroom select\n" }, { "from": "human", "value": "import React from 'react';\nimport PropTypes from 'prop-types';\nimport _ from 'lodash';\nimport SimpleFilterSelect, {ALL} from './SimpleFilterSelect';\n\n\n// For selecting a homeroom by tea...
javascript
chosen
[ { "from": "system", "value": "Use normal link for download\n\nOr the frontend will shortcut and not find it\n" }, { "from": "human", "value": "// @flow\n\nimport Link from \"found/lib/Link\";\nimport { List, ListItem } from \"material-ui/List\";\nimport Subheader from \"material-ui/Subheader\";\...
javascript
chosen
[ { "from": "system", "value": "Logs: Check for each stream if the filepath exists, create it otherwise\n" }, { "from": "human", "value": "'use strict';\n\nconst bunyan = require('bunyan');\nconst argv = require('yargs').argv;\n\nfunction initLogger({Configuration}) {\n const environment = Config...
javascript
chosen
[ { "from": "system", "value": "Add end of function annotation\n" }, { "from": "human", "value": "'use strict';\n\n/**\n* Identity function.\n*\n* @param {*} x - input value\n* @returns {*} input value\n*\n* @example\n* var v = identity( 3.14 );\n* // returns 3.14\n*/\nfunction identity( x ) {\n\t...
javascript
chosen
[ { "from": "system", "value": "Check clicking on login link\n" }, { "from": "human", "value": "/* eslint max-len: [\"error\", 100 ] */\n/* global describe, beforeEach, afterEach, it, expect */\n'use strict';\n\ndescribe('Narrative Smoketest', function() {\n\n var selenium = require('selenium-w...
javascript
chosen
[ { "from": "system", "value": "Add \"Send an invite\" to user menu\n" }, { "from": "human", "value": "import React, { Component } from 'react';\nimport PropTypes from 'prop-types';\nimport styled from 'styled-components';\n\nimport Link from 'react/components/UserDropdown/components/Link';\n\ncon...
javascript
chosen
[ { "from": "system", "value": "Fix custom collection comparison matcher\n" }, { "from": "human", "value": "customMatchers = {\n toEqualCollection : function(util, customEqualityTesters) {\n return {\n compare : function(actual, expected) {\n var result = {};\n var expectedA...
javascript
chosen
[ { "from": "system", "value": "Fix messed up nav left button style\n" }, { "from": "human", "value": "import {StyleSheet} from 'react-native'\nimport { Metrics, Colors } from '../../Themes/'\n\nexport default StyleSheet.create({\n navButtonLeft: {\n marginTop: Metrics.doubleBaseMargin,\n m...
javascript
chosen
[ { "from": "system", "value": "Support Newer NW.js and Electron Versions" }, { "from": "human", "value": "var app = require('app'); // Module to control application life.\nvar BrowserWindow = require('browser-window'); // Module to create native browser window.\n \nvar mainWindow = null;\n \n \...
javascript
chosen
[ { "from": "system", "value": "Test to only use Media if phone-gap version of HTML/JS\n" }, { "from": "human", "value": "\r\n\r\nvar StartView = function(homeView) {\r\n\r\n this.homeView = homeView;\r\n\r\n this.initialize = function() {\r\n // 'div' wrapper to attach html and event...
javascript
chosen
[ { "from": "system", "value": "Fix ci build exit code\n" }, { "from": "human", "value": "module.exports = function logger(jobs) {\n for (let job of jobs) {\n console.log(job.pending);\n job.worker.then(\n () => {\n console.log(job.success);\n },\n () => {\n con...
javascript
chosen
[ { "from": "system", "value": "Add generation of parent models definitions\n" }, { "from": "human", "value": "import { Model as <%= className %>Mixin<%if (projections) {%>, defineProjections<%}%> } from '../mixins/regenerated/models/<%= name %>';\nimport <%if(parentModelName) {%><%= parentClassNa...
javascript
chosen
[ { "from": "system", "value": "Revert \"Only apply bindings to standalone components\"\n\nThis reverts commit 6a91688cb6559c995b5c9390834f9bfb6ef91e63.\n" }, { "from": "human", "value": "(function () {\n // standalone components will have their own knockout bindings. Use\n // standalone: fa...
javascript
chosen
[ { "from": "system", "value": "Transform Typescript dependencies during unit testing\n" }, { "from": "human", "value": "// https://github.com/thymikee/jest-preset-angular#brief-explanation-of-config\nmodule.exports = {\n preset: 'jest-preset-angular',\n roots: ['src'],\n coverageDirectory: 're...
javascript
chosen
[ { "from": "system", "value": "Use correct vue library for SSR\n" }, { "from": "human", "value": "var path = require('path')\nvar utils = require('./utils')\nvar webpack = require('webpack')\nvar merge = require('webpack-merge')\nvar baseWebpackConfig = require('./webpack.base.conf')\n\nbaseWebpa...
javascript
chosen
[ { "from": "system", "value": "Remove log and useless else condition.\n" }, { "from": "human", "value": "/* global Messages */\nTemplate.snippetPage.helpers({\n\tsnippet: function() {\n\t\treturn Messages.findOne({ _id: FlowRouter.getParam('snippetId') });\n\t},\n\tsnippetContent: function() {\n\...
javascript
chosen
[ { "from": "system", "value": "Update test for named object response\n" }, { "from": "human", "value": "process.env.NODE_ENV = 'test';\n\nvar should = require('should'),\n request = require('supertest'),\n testSetup = require('../util/testSetup'),\n url = 'http://localhost:1337';\n\ndescribe('...
javascript
chosen
[ { "from": "system", "value": "Use $log instead of console and use angulars isObject method for typechecking\n" }, { "from": "human", "value": "angular\n\t.module('ngSharepoint')\n\t.provider('$spLog', function() {\n\t\tvar prefix = '[ngSharepoint] ';\n\t\tvar enabled = true;\n\t\treturn {\n\t\t\...
javascript
chosen
[ { "from": "system", "value": "Stop marked from converting Markdown tables into HTML\n\nScribe will try to strip out tables\nid:4641 state:In Progress\n" }, { "from": "human", "value": "define([\n 'marked',\n 'to-markdown'\n], function (\n marked,\n tomarkdown\n) {\n 'use strict';\n return ...
javascript
chosen
[ { "from": "system", "value": "Add option in integration test\n" }, { "from": "human", "value": "module.exports = {\n\tmode: \"production\",\n\tentry: \"./index\",\n\toutput: {\n\t\tfilename: \"bundle.js\"\n\t},\n\tprofile: true,\n\tstats: {\n\t\treasons: true,\n\t\tchunkModules: true,\n\t\tchunk...
javascript
chosen
[ { "from": "system", "value": "Add variables to grab the timeRemainingSpan, current streak integer, and longest streak integer\n" }, { "from": "human", "value": "function refresh () {\n $(\".refresh-link\").on(\"click\", function(event) {\n event.preventDefault();\n var $target = $(event.t...
javascript
chosen
[ { "from": "system", "value": "Fix GraphQL schema for compute|readonly attributes in args.data\n" }, { "from": "human", "value": "'use strict';\n\nconst { omitBy } = require('../../../../../../utilities');\n\nconst filterFields = function ({ fields, parentDef, opts }) {\n return omitBy(fields, (...
javascript
chosen
[ { "from": "system", "value": "feat: Add error handler to file templater\n" }, { "from": "human", "value": "\"use strict\";\n\nvar fs = require('fs');\nvar path = require('path');\nvar extend = require('extend');\nvar template = require('lodash/template');\n\nvar _fileNumber = 1;\nvar _config = {...
javascript
chosen
[ { "from": "system", "value": "Revert \"Icon is a stateless component\"\n\nThis reverts commit 8215c6c465c595d8814430a0bf5945a9f52ce06e.\n" }, { "from": "human", "value": "import React from 'react';\n\nfunction Icon(props) {\n if (props.url) {\n return (\n <span className={cl...
javascript
chosen
[ { "from": "system", "value": "Set stage name based on user input or stage default\n" }, { "from": "human", "value": "export default ['$scope', '$http', '$uibModalInstance', function($scope, $http, $uibModalInstance) {\n\n $http\n .get('/api/stage-types')\n .then(res => $scope.stages = res...
javascript
chosen
[ { "from": "system", "value": "Add window onresize listener to viz\n" }, { "from": "human", "value": "import d3 from 'd3';\n\nexport default function openmetadesign_viz(data) {\n var svg = d3.select('#d3-container').append(\"svg\");\n svg.append(\"rect\")\n .attr(\"x\", 10)\n ...
javascript
chosen
[ { "from": "system", "value": "Use lisnters_[i].callback rather than the listener itself.\n\nIn crrev.com/145145, Chrome extension's addListener doesn't add the callback function\nto the listeners_, rather it adds an object wrapping the callback and some other metadata.\nSo here needs to refer .callback too....
javascript
chosen
[ { "from": "system", "value": "Replace obsolete references to \"gwt\" with \"j2cl\"\n\nPiperOrigin-RevId: 432275111\n" }, { "from": "human", "value": "/*\n * Copyright 2016 The Closure Compiler Authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use ...
javascript
chosen
[ { "from": "system", "value": "Fix video stream trying to use the wrong protocol\n" }, { "from": "human", "value": "window.onload = function () {\n let videoImage = document.getElementById('video_image');\n videoImage.src = `ws://${document.domain}:8080/?action=stream`;\n};" }, { "...
javascript
chosen
[ { "from": "system", "value": "Raise threshold for scrolling navbar\n" }, { "from": "human", "value": "/* jshint browser: true */\n\n(function() {\n \"use strict\";\n var qNav = document.querySelector(\".navi\"),\n qLogo = document.querySelector(\".header #logo\");\n\n function toggleScr...
javascript
chosen
[ { "from": "system", "value": "Fix JSCS errors in generated app and addon\n" }, { "from": "human", "value": "import { moduleForModel, test } from 'ember-qunit';\n\nmoduleForModel('<%= name %>', 'Unit | Serializer | <%= name %>', {\n // Specify the other units that are required for this test.\n ...
javascript
chosen
[ { "from": "system", "value": "Remove unused import in TaskDefinitionViewer\n" }, { "from": "human", "value": "// This file is part of BenchExec, a framework for reliable benchmarking:\n// https://github.com/sosy-lab/benchexec\n//\n// SPDX-FileCopyrightText: 2019-2020 Dirk Beyer <https://www.sosy...
javascript
chosen
[ { "from": "system", "value": "Add basic settings-change request error handling\n\nNeed to integrate this with some sort of notification system e.g.\ntoasts, modals, etc...\n" }, { "from": "human", "value": "import axios from 'axios';\nimport { SETTINGS_CHANGE_RECEIVE, SETTINGS_CHANGE_REQUEST } f...
javascript
chosen
[ { "from": "system", "value": "Convert file from buffer to a string.\n" }, { "from": "human", "value": "if (global.GENTLY) require = GENTLY.hijack(require);\n\nvar Configuration = function(api) {\n this.api = api;\n this.fs = require('fs');\n this.path = require('path');\n};\n\nConfiguratio...
javascript
chosen
[ { "from": "system", "value": "Hide emailToken from the view\n" }, { "from": "human", "value": "'use strict';\n\n/**\n * Render the main applicaion page\n */\nexports.renderIndex = function(req, res) {\n res.render('modules/core/server/views/index', {\n user: req.user || null\n });\n};\n\n/*...
javascript
chosen
[ { "from": "system", "value": "[studio-hints] Fix position of toggleSidecarButton in the navbar\n" }, { "from": "human", "value": "/* eslint-disable prefer-template */\n\nimport React from 'react'\nimport {\n isSidecarOpenSetting,\n toggleSidecarOpenState\n} from 'part:@sanity/default-layout/si...
javascript
chosen
[ { "from": "system", "value": "Fix incorrect naming of cancelPrecacheOperation (was broken to test new production deployment guards are effective.\n" }, { "from": "human", "value": "\nfunction EmscriptenPrecacheApi(apiPointer, cwrap, runtime) {\n\n var _apiPointer = apiPointer;\n var _begin...
javascript
chosen
[ { "from": "system", "value": "Hide popups if no error was found\n" }, { "from": "human", "value": "'use strict';\n\nconst form = $('form[action=\"/create/challenge\"]');\nform.submit(event => {\n event.preventDefault();\n let isValid = true;\n const title = form.find('input[name=\"title\"]')....
javascript
chosen
[ { "from": "system", "value": "Fix issue with toon alle resultaten by implementing new action\n" }, { "from": "human", "value": "import { call, put, takeLatest } from 'redux-saga/effects';\n\nimport fetchNearestDetail from '../../services/nearest-detail/nearest-detail';\n\nimport ACTIONS from '.....
javascript
chosen
[ { "from": "system", "value": "Make use of the filter (syntactic sugar) for\n" }, { "from": "human", "value": "angular.module('cheatsheet')\n .service('csfUserSettings', [\n '$meteorSubscribe', '$meteorObject', '$q', '$timeout', '$rootScope',\n function($meteorSubscribe, $meteorO...
javascript
chosen
[ { "from": "system", "value": "Fix bad require of ReadyStateManager\n" }, { "from": "human", "value": "/**\n * This replaces the React Native Image component to register when it's finished\n * loading to avoid race conditions in visual tests.\n */\nconst React = require('react');\nconst Image = r...
javascript
chosen
[ { "from": "system", "value": "Revert \"Populate services allows to specify the fixture file as an argument\"\n\nThis reverts commit 0a113d198b883abfbcdd82581036eccce9a6235d.\n" }, { "from": "human", "value": "var storageFactory = require('../../lib/storage/storage-factory');\nvar populator = req...
javascript
chosen
[ { "from": "system", "value": "Load storybook page to ensure everything is ok before proceeding with the tests\n" }, { "from": "human", "value": "describe('Entire feed', () => {\n it('should render the entire feed component correctly', () => {\n cy.visit('/iframe.html?id=activityfeed--entire-...
javascript
chosen
[ { "from": "system", "value": "Change default schema version in migration script from 0 to 1\n" }, { "from": "human", "value": "import { Collections } from 'meteor/vulcan:core'\nimport { registerMigration, migrateDocuments } from './migrationUtils';\nimport { isUnbackedCollection } from '../../li...
javascript
chosen
[ { "from": "system", "value": "Migrate and fix GlobalConfig database storage.\n" }, { "from": "human", "value": "// global_config.js\n\nvar Parse = require('parse/node').Parse;\n\nimport PromiseRouter from '../PromiseRouter';\nimport * as middleware from \"../middlewares\";\n\nexport class Global...
javascript
chosen
[ { "from": "system", "value": "Use subdomain for backend calls from frontend\n" }, { "from": "human", "value": "module.exports = {\n presenceUrl: 'http://localhost:9870',\n backendUrl: 'http://localhost:8000/api',\n};\n" }, { "from": "gpt", "value": "module.exports = {\n pres...
javascript
chosen
[ { "from": "system", "value": "Add address to professional signup\n" }, { "from": "human", "value": "export default (customer) => {\n const result = {\n firstName,\n email,\n lastName,\n password,\n passwordConfirmation,\n } = customer\n\n result.business = {\n companyName,\n...
javascript
chosen
[ { "from": "system", "value": "Add group call invitation model\n" }, { "from": "human", "value": "var thinky = require('thinky')();\nvar thinkyType = thinky.type;\n\nexport var Person = thinky.createModel(\"person\", {\n id: thinkyType.string(),\n email: thinkyType.string()\n});\n\nexport v...
javascript
chosen
[ { "from": "system", "value": "Remove notifications after 5 seconds\n" }, { "from": "human", "value": "/*\n * This file is part of the Kreta package.\n *\n * (c) Beñat Espiña <benatespina@gmail.com>\n * (c) Gorka Laucirica <gorka.lauzirika@gmail.com>\n *\n * For the full copyright and license inf...
javascript
chosen
[ { "from": "system", "value": "Add discrete uniform variance to namespace\n" }, { "from": "human", "value": "'use strict';\n\n/*\n* When adding modules to the namespace, ensure that they are added in alphabetical order according to module name.\n*/\n\n// MODULES //\n\nvar setReadOnly = require( '...
javascript
chosen
[ { "from": "system", "value": "Add mongoose connection to api\n" }, { "from": "human", "value": "import express from 'express';\nimport bodyParser from 'body-parser';\n\nconst app = express();\n\nconst PORT = process.env.PORT || 3001;\n\napp.use(bodyParser.json());\napp.use(bodyParser.urlencoded(...
javascript
chosen
[ { "from": "system", "value": "Update plugin to work with the new build-wepack hook signature.\n" }, { "from": "human", "value": "import path from 'path';\n\nexport default ({ previousValue: prevWebpackConfig }) => () => () => {\n const webpackConfig = { ...prevWebpackConfig };\n\n // Regis...
javascript
chosen
[ { "from": "system", "value": "Make sample test app listen on 0.0.0.0\n" }, { "from": "human", "value": "var express = require('express');\nvar app = express();\n\napp.get('/', function (req, res) {\n res.send('Node.js - Express - Hello World!');\n});\n\nvar server = app.listen(8080, function ()...
javascript
chosen
[ { "from": "system", "value": "Fix error with default export\n\nAfter exporting the stdLib array the export broke and the default export\nis now only available as require(...).default\n" }, { "from": "human", "value": "const StdLibPlugin = require('../../build/plugins/StdLibPlugin');\n\ndescribe(...
javascript
chosen
[ { "from": "system", "value": "Fix small javascript issue when validating database connection for non SQLCE setups\n" }, { "from": "human", "value": "angular.module(\"umbraco.install\").controller(\"Umbraco.Installer.DataBaseController\", function($scope, $http, installerService){\n\t\n\t$scope.c...
javascript
chosen
[ { "from": "system", "value": "Fix the issue that error flashes before ns is creates\n\nhttps://github.com/rancher/rancher/issues/13210\n" }, { "from": "human", "value": "import Controller from '@ember/controller'\nimport NewOrEdit from 'ui/mixins/new-or-edit';\nimport { alias } from '@ember/obje...
javascript
chosen
[ { "from": "system", "value": "Improve performance of jQuery selector\n" }, { "from": "human", "value": "(function () {\n\t'use strict';\n\n\t$.easing.easeInOutQuint = function (x, t, b, c, d) {\n\t\tif ((t/=d/2) < 1) return c/2*t*t*t*t*t + b;\n\t\treturn c/2*((t-=2)*t*t*t*t + 2) + b;\n\t};\n\n\t...
javascript
chosen
[ { "from": "system", "value": "Remove Rx.config.longStackSupport flag, which was left in unintentionally.\n\nFixes #1.\n" }, { "from": "human", "value": "'use strict';\n\nconst Rx = require('rx');\nrequire('isomorphic-fetch');\n\nRx.config.longStackSupport = true;\n\nmodule.exports = function (ur...
javascript
chosen
[ { "from": "system", "value": "Change direct message warning to match upstream\n" }, { "from": "human", "value": "import React from 'react';\nimport Motion from 'flavours/glitch/util/optional_motion';\nimport spring from 'react-motion/lib/spring';\nimport { defineMessages, FormattedMessage } from...
javascript
chosen
[ { "from": "system", "value": "Improve error report on failed sbp command load\n" }, { "from": "human", "value": "var fs = require('fs')\nvar path = require('path');\nvar log = require('../../../log').logger('opensbp');\n\n// Load all the files in the 'routes' directory and process them as route-...
javascript
chosen
[ { "from": "system", "value": "Create plugins directory on new app\n" }, { "from": "human", "value": "'use strict';\n\n/**\n * Module dependencies\n */\n\n// Node.js core.\nconst path = require('path');\n\n// Local dependencies.\nconst packageJSON = require('../json/package.json.js');\n\n/**\n * ...
javascript
chosen
[ { "from": "system", "value": "Fix memory selection script in case of weird RAM amount\n\nIf RAM is not a power of 2 then we might have a floating number.\n\nChange-Id: I667444e30f508df0d3d092f6385d2650471c68a3\n" }, { "from": "human", "value": "// Check if enough memory is available on the syste...
javascript
chosen
[ { "from": "system", "value": "Use mounted instead of compiled\n\nBecause compiled is removed.\n\nSigned-off-by: Kenji Okimoto <7a4b90a0a1e6fc688adec907898b6822ce215e6c@clear-code.com>\n" }, { "from": "human", "value": "'use strict';\n$(document).ready(()=> {\n new Vue({\n el: \"#fluent-log\"...
javascript
chosen
[ { "from": "system", "value": "[FIX] Fix registration text in the wrong position\n" }, { "from": "human", "value": "import React from 'react';\n\nimport '../../scss/_hero.scss';\n\n\nclass Home extends React.Component {\n\trender() {\n\t\treturn (\n\t\t\t<main className='hero' style={{height: '20...
javascript
chosen
[ { "from": "system", "value": "Change initial year in map for 100 years ago from now\n" }, { "from": "human", "value": "$().ready(function(){\n function init(){\n renderMap();\n\n requestYears(function(years, formattedYears){\n renderSlider(years, formattedYears, {\n onChange: ...
javascript
chosen
[ { "from": "system", "value": "Add some tests for session-handler\n" }, { "from": "human", "value": "'use strict';\n\nvar App = require('../../../src/chrome/background'),\n Sessions = require('../../../src/chrome/session-handler');\n\ndescribe('Background initialization', function() {\n\n...
javascript
chosen
[ { "from": "system", "value": "Use a constant for URL\n\nAdditionally, added a comment about why it is using 2016\n" }, { "from": "human", "value": "/* eslint new-cap: [2, {capIsNewExceptions: [\"Given\", \"When\", \"Then\"]}]*/\n\n/**\n * Holds steps related to the events feature.\n * @module we...
javascript
chosen
[ { "from": "system", "value": "Correct load in home page\n" }, { "from": "human", "value": "function loadPageDataIntoEditor(path, collectionId) {\n\n checkPathSlashes(path);\n\n var pageUrlData = path + \"/data.json\";\n var pageUrlDataTemplate = path + \"/data.json&resolve\";\n var pageData,...
javascript
chosen
[ { "from": "system", "value": "Navigation: Remove variable from `window` namespace.\n" }, { "from": "human", "value": "$(\"#nav-switch\").on(\"click\", function(event) {\n navigationClassName = 'show-navigation';\n\n event.preventDefault();\n event.stopPropagation();\n\n $('body').toggleClass...
javascript
chosen
[ { "from": "system", "value": "Purge harvestjobs older than retention policy before cleanup\n" }, { "from": "human", "value": "/**\n * Delete references to deleted datasets\n */\n\nvar updated = 0;\n\n// Match all HarvestJob.items.dataset not found in dataset collection\nconst pipeline = [\n {...
javascript
chosen
[ { "from": "system", "value": ":wrench: Add some extra width to the invisibleinputnoform\n" }, { "from": "human", "value": "import React from 'react'\nimport PropTypes from 'prop-types'\nimport AutosizeInput from 'react-input-autosize'\n\nimport styles from '../input.css'\n\nconst InvisibleNoForm...
javascript
chosen
[ { "from": "system", "value": "Fix siteId retrieving from window.\n\n" }, { "from": "human", "value": "/* eslint-disable no-underscore-dangle, no-undef */\nimport { takeEvery } from 'redux-saga';\nimport { put, select, call } from 'redux-saga/effects';\nimport * as types from '../types';\nimport ...
javascript
chosen
[ { "from": "system", "value": "Update the AI Intrumentation Key\n" }, { "from": "human", "value": "var appInsights=window.appInsights||function(config){\n function r(config){t[config]=function(){var i=arguments;t.queue.push(function(){t[config].apply(t,i)})}}var t={config:config},u=document,e=...
javascript
chosen
[ { "from": "system", "value": "Fix stale environment header vhost metadata\n\n*Really* closes\nhttps://github.com/aptible/dashboard.aptible.com/issues/496 by binding\nthe computed vhost metadata to the parent environment.\n" }, { "from": "human", "value": "import Ember from 'ember';\n\nexport def...
javascript
chosen
[ { "from": "system", "value": "Fix the test for FlagSeries\n" }, { "from": "human", "value": "import React from 'react';\nimport { shallow } from 'enzyme';\nimport FlagSeries from '../../../src/components/FlagSeries/FlagSeries';\nimport Series from 'react-jsx-highcharts/src/components/Series';\n\...
javascript
chosen
[ { "from": "system", "value": "Fix progress tracker bug: tick `shared` on share\n\nNote: I would've expected Flow to catch this. :thinking:\n" }, { "from": "human", "value": "// @flow\nimport $ from 'jquery';\nimport ee from '../shared/pub_sub';\n\nexport default class ProgressTracker {\n constr...
javascript
chosen
[ { "from": "system", "value": "Fix issue with scrolling\nThis commit fixes the scrolling by removing the javascript from the html\nand importing jquery.\n" }, { "from": "human", "value": "export function SidebarCtrl ($scope, $location) {\n $scope.isCurrent = function (path) {\n if (path.lengt...
javascript
chosen
[ { "from": "system", "value": "Make the tests use the target mock files over original mock files in core\n\nThis will allow mocks with ES6+ syntax to be run on JS phantom.js.\nWas already added for Idol.\n\n[for: alex.scown]\n" }, { "from": "human", "value": "/*\n * Copyright 2015 Hewlett-Packar...
javascript
chosen
[ { "from": "system", "value": "Refactor to avoid dynamic module resolution\n" }, { "from": "human", "value": "'use strict';\n\n/**\n* Constructor returning an object used to represent a generic, fixed-length raw binary data buffer which can be used to create views of shared memory.\n*\n* @module ...
javascript
chosen
[ { "from": "system", "value": "Add no results found message for application search\n" }, { "from": "human", "value": "define(['react', 'components/applications/search',\n'components/page_header', 'components/mixins/loading', 'rsvp',\n'controllers/applications', 'components/applications/cards'], f...
javascript
chosen
[ { "from": "system", "value": "Tweak spacing of back button\n" }, { "from": "human", "value": "import React from 'react';\n\nimport RaisedButton from 'material-ui/lib/raised-button';\nimport FontIcon from 'material-ui/lib/font-icon';\n\nexport default ({ onTouchTap }) => (\n <RaisedButton\n l...
javascript
chosen
[ { "from": "system", "value": "Hide form for fractal variables when there are no inputs\n" }, { "from": "human", "value": "String.prototype.capitalize = function() {\n\treturn this.charAt(0).toUpperCase() + this.slice(1);\n}\n\n!function( $ ) {\n\t$(function () {\n\t\t\"use strict\"\n\t\tvar getC...
javascript
chosen