conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Check if fetch is implemented"
},
{
"from": "human",
"value": "\n(function(self) {\n 'use strict';\n\n // Do feature detecting\n const controller = new AbortController();\n const signal = controller.signal;\n const request = new Request('/', { signal });\n\n i... | javascript | chosen |
[
{
"from": "system",
"value": "Replace child_process.spawn with .exec . Sacrifice streaming output in favour of simpler multi commands.\n"
},
{
"from": "human",
"value": "var _ = require('underscore'),\n async = require('async'),\n child_process = require('child_process');\n\nfunction Repoman(o... | javascript | chosen |
[
{
"from": "system",
"value": "Add site footer to each documentation generator\n"
},
{
"from": "human",
"value": "var _ = require('lodash')\nvar fs = require('fs')\nvar gzip = require('gzip-size')\nvar filesize = require('filesize')\nvar cssstats = require('cssstats')\n\nvar module = require('tac... | javascript | chosen |
[
{
"from": "system",
"value": "Fix inline with Yeoman generator 0.1.8\n"
},
{
"from": "human",
"value": "/**\n * This file defines the email tests for your project.\n * \n * Each email test should provide the locals used to render the\n * email template for preview.\n * \n * Values can either be ... | javascript | chosen |
[
{
"from": "system",
"value": "Make getById() reject the promise if User is not found\nUse user id to get the orders\n"
},
{
"from": "human",
"value": "/**\n * New node file\n */\n\nmodule.exports = function (app, dao) {\n var util = require('../util');\n var db = app.db;\n var P = app.Promise... | javascript | chosen |
[
{
"from": "system",
"value": "Fix mocha colors for solarized users\n"
},
{
"from": "human",
"value": "module.exports = {\n options: {\n require: [\n function() {\n /*eslint-disable */\n assert = require('chai').assert;\n sinon = require('sinon');\n /*eslint-e... | javascript | chosen |
[
{
"from": "system",
"value": "Add more styling for projects list table\n"
},
{
"from": "human",
"value": "// PROJECTS\nvar updateProjects = function(projects) {\n // Render projects template\n\tvar projects_template = $('#projects-template').html();\n\tMustache.parse(projects_template);\n\tvar ... | javascript | chosen |
[
{
"from": "system",
"value": "Set API version for openstack metering client\n"
},
{
"from": "human",
"value": "/*\n * index.js: Openstack Ceilometer client\n *\n * (C) 2015 Hans Cornelis\n * MIT LICENSE\n *\n */\n\nvar util = require('util'),\n urlJoin = require('url-join'),\n openstack = ... | javascript | chosen |
[
{
"from": "system",
"value": "Remove `apollo-federation` and `apollo-gateway` from Jest module not-mapping.\n"
},
{
"from": "human",
"value": "const { defaults } = require(\"jest-config\");\n\nmodule.exports = {\n testEnvironment: \"node\",\n setupFiles: [\n \"<rootDir>/../apollo-server... | javascript | chosen |
[
{
"from": "system",
"value": "Fix the accessibility of the tutorial logo\n"
},
{
"from": "human",
"value": "\nimport React from 'react';\n\nimport {\n Text,\n View,\n Image,\n StyleSheet,\n} from 'react-native';\n\nimport { OFF_WHITE, TURQUOISE } from '../styles';\n\nconst styles = StyleShee... | javascript | chosen |
[
{
"from": "system",
"value": "Add non-promise based handling for notifications\n\nFix #8\n"
},
{
"from": "human",
"value": "'use strict'\n\nexports.authorize = function () {\n return Notification.requestPermission()\n .then(function (permission) {\n if (permission === 'denied')\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix webpack config bug with babel-loader\n"
},
{
"from": "human",
"value": "var path = require('path');\nvar webpack = require('webpack');\n\nmodule.exports = {\n devtool: 'cheap-module-eval-source-map',\n entry: [\n 'bootstrap-loader',\n 'webpack-hot-middle... | javascript | chosen |
[
{
"from": "system",
"value": "Make $root proxy path available for access to paths above public\n"
},
{
"from": "human",
"value": "/* global module, project, server */\n\nmodule.exports = function(grunt) {\n\tgrunt.registerTask('server', function() {\n\t\tvar staticConfig = project.server.tasks['... | javascript | chosen |
[
{
"from": "system",
"value": "Use Agent to connect wifi access point\n"
},
{
"from": "human",
"value": "var ConnMan = require('../index.js');\n\nvar connman = new ConnMan();\nconnman.init(function() {\n\tconnman.Wifi.Connect('1F');\n});\n"
},
{
"from": "gpt",
"value": "var ConnMan = ... | javascript | chosen |
[
{
"from": "system",
"value": "Refactor code to match ES6 style\n"
},
{
"from": "human",
"value": "function submit (e) {\n e.preventDefault();\n $(e.currentTarget).parent().submit();\n}\n\nfunction openSearchBar (e) {\n e.preventDefault();\n const $target = $(e.currentTarget);\n $('.search')... | javascript | chosen |
[
{
"from": "system",
"value": "Make component name match file name"
},
{
"from": "human",
"value": "'use strict';\n\nimport React, { Component } from 'react';\nimport PropTypes from 'prop-types';\nimport IconButton from './../molecules/IconButton';\n\nclass SocialMediaSharing extends Component {\... | javascript | chosen |
[
{
"from": "system",
"value": "Switch to taking a point as an array\n"
},
{
"from": "human",
"value": "const X = 0;\nconst Y = 1;\nconst TOP_LEFT = 0;\nconst BOTTOM_RIGHT = 1;\n\n/**\n * Determines if a point is inside a rectangle. The rectangle is\n * defined by two points:\n * - the upper lef... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"small refactor: use _.once only for watch\"\n\nThis reverts commit 6de0d1f1cc11374b412bf26103ab5c29afbeee0a.\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst _ = require('lodash/fp');\nconst webpack = require('webpack');\nconst wpConfig = require('... | javascript | chosen |
[
{
"from": "system",
"value": "Test streaming of `locale` service\n"
},
{
"from": "human",
"value": "import {\n moduleFor,\n test\n} from 'ember-qunit';\n\nmoduleFor('service:locale', 'LocaleService', {\n // Specify the other units that are required for this test.\n // needs: ['service:foo']\... | javascript | chosen |
[
{
"from": "system",
"value": "Use the ilios-common adapter for all ember data needs\n"
},
{
"from": "human",
"value": "import Ember from 'ember';\nimport DS from 'ember-data';\nimport DataAdapterMixin from 'ember-simple-auth/mixins/data-adapter-mixin';\n\nconst { inject, computed } = Ember;\ncon... | javascript | chosen |
[
{
"from": "system",
"value": "Make the failing test pass\n"
},
{
"from": "human",
"value": "defaultConf = {\n height: 100,\n width: 300,\n fingerprintLength: 20\n};\n\ndescribe(\"The constructor is supposed a proper Captcha object\", function() {\n it('Constructor Captcha exists', fu... | javascript | chosen |
[
{
"from": "system",
"value": "Fix typo: notifcation -> notification\n"
},
{
"from": "human",
"value": "'use strict';\n\n/**\n * Module dependencies\n */\nimport * as mongo from 'mongodb';\nimport Notification from '../../../models/notification';\nimport serialize from '../../../serializers/notif... | javascript | chosen |
[
{
"from": "system",
"value": "Use learnerclassroomresource on learn page\n"
},
{
"from": "human",
"value": "import { ClassroomResource } from 'kolibri.resources';\nimport { ClassesPageNames } from '../../constants';\n\n// Shows a list of all the Classrooms a Learner is enrolled in\nexport functi... | javascript | chosen |
[
{
"from": "system",
"value": "Fix to a problem with a rule detected implementing the tests\n"
},
{
"from": "human",
"value": "/**\n * Tries to detect RegExp's created from non-literal strings.\n * @author Jon Lamendola\n */\n\n//-------------------------------------------------------------------... | javascript | chosen |
[
{
"from": "system",
"value": "Drop to eval-source-map for speed.\n"
},
{
"from": "human",
"value": "\"use strict\";\n/* global __dirname */\n\nvar webpack = require(\"webpack\");\n\nmodule.exports = {\n resolve: {\n modules: [\"build/dist/lib\", \"node_modules\"],\n },\n entry: {\n salv... | javascript | chosen |
[
{
"from": "system",
"value": "Fix webpack to load jsx files and fix hot loading by separating out redux-rest\n"
},
{
"from": "human",
"value": "var webpack = require('webpack');\nvar BundleTracker = require('webpack-bundle-tracker');\nvar path = require(\"path\");\n\nmodule.exports = {\n cont... | javascript | chosen |
[
{
"from": "system",
"value": "Modify publicPath so asset URLs resolve correctly\n"
},
{
"from": "human",
"value": "var path = require('path')\nvar webpack = require('webpack')\n\nmodule.exports = {\n entry: './src/index.js',\n output: {\n path: path.resolve(__dirname, './dist'),\n public... | javascript | chosen |
[
{
"from": "system",
"value": "Fix some issues with the test\n"
},
{
"from": "human",
"value": "var assert = require('assert')\nvar fileHandler = require('../lib/fileHandler')\nvar fs = require('fs')\n\ndescribe('fileHandler', function () {\n var testFile = './test.txt'\n var testString = 'asdf... | javascript | chosen |
[
{
"from": "system",
"value": "Add tests to check when any desktop files was found\n"
},
{
"from": "human",
"value": "var Finder = require(\"../lib\");\ndescribe(\"Finder\",function(){\n describe(\".find() thumbnailer\",function(){\n beforeEach(function(){\n this.finder = new Finder(\"th... | javascript | chosen |
[
{
"from": "system",
"value": "Use value attr for textarea\n\nBecause setting content as child text node seems to confuse Mithril. I\nsuspect that's because it uses 'value' property to get/set textarea\ncontent.\n"
},
{
"from": "human",
"value": "\"use strict\";\n\nimport m from \"mithril\";\nimp... | javascript | chosen |
[
{
"from": "system",
"value": "Configure Jest to import local modules from `src` instead of `dist`\n\nThe Jest `moduleNameMapper` option allows us to match module names and transform the path that will be used to import them. If the resulting module is written in TypeScript, it will then be compiled by `ts-j... | javascript | chosen |
[
{
"from": "system",
"value": "Add item form cancel button resets validation context.\n"
},
{
"from": "human",
"value": "var addItem = function(){\n var newItem = {\n store: $('#itemStore').val(),\n name: $('#itemName').val(),\n weight: $('#itemWeight').val(),\n weightType: $('#itemW... | javascript | chosen |
[
{
"from": "system",
"value": "Update dialog interface automatically when modified\n"
},
{
"from": "human",
"value": "/*****************************************************************/\n/* Importing story data and managin it */\n\nconsole.log(story.A1.title);\nconsole.l... | javascript | chosen |
[
{
"from": "system",
"value": "Set integration type to dropin2\n"
},
{
"from": "human",
"value": "'use strict';\n\nmodule.exports = {\n paymentOptionIDs: {\n card: 'card',\n paypal: 'paypal'\n },\n paymentMethodTypes: {\n card: 'CreditCard',\n paypal: 'PayPalAccount'\n },\n analy... | javascript | chosen |
[
{
"from": "system",
"value": "Use var declaration with `for...in` loop\n\nIf you do not include a var (or let) then `param` used by for...in will\nbe consider undefined:\n\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for...in\n"
},
{
"from": "human",
"value": "im... | javascript | chosen |
[
{
"from": "system",
"value": "Update auto-loading process for middleware to prefer the function's name\n"
},
{
"from": "human",
"value": "var fs = require('fs'),\n path = require('path');\n\nexports.slash = require('express-slash');\n\n// Load up all middleware modules from this dir (except... | javascript | chosen |
[
{
"from": "system",
"value": "Change Facebook and Twitter icons to word links for easier access on mobile\n"
},
{
"from": "human",
"value": "import { Link } from 'react-router';\n\nconst Footer = React.createClass({\n render: function() {\n return (\n <footer id=\"footer\" className=\"f... | javascript | chosen |
[
{
"from": "system",
"value": "Add email observable explicit declaration\n"
},
{
"from": "human",
"value": "import { observable, autorun, action } from 'mobx'\nimport axios from 'axios'\nimport { API } from '../constants'\n\nclass AccountActivationStore {\n\t@observable pending = false\n\t@observ... | javascript | chosen |
[
{
"from": "system",
"value": "Add a handy eraseDatabase function\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar Promise = require('bluebird')\nvar treo = require('treo')\nvar treoPromise = require('treo/plugins/treo-promise')\n\nvar schema = treo.schema()\n\t.version(1)\n\t\t.addStore('... | javascript | chosen |
[
{
"from": "system",
"value": "Add closing brace and paren lost in merge\n"
},
{
"from": "human",
"value": "var child_process = require('child_process');\n\n\n\ndescribe('Fixture that needs a stub dataservice as a child process', function() {\n before(function(done) {\n myUnkillableChild =\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix mistake in Dynamo table name\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst Bluebird = require('bluebird');\nconst Dynasty = require('../model');\n\nmodule.exports = {\n findTrigger: function (currentIntent) {\n if (!currentIntent) {\n return... | javascript | chosen |
[
{
"from": "system",
"value": "Check if ga is a function\n"
},
{
"from": "human",
"value": "/* eslint-disable */\nimport Vue from 'vue';\nimport Router from 'vue-router';\nimport Component from './Component';\nimport Docs from './Docs';\nimport DocsPage from './DocsPage';\nimport Layouts from './... | javascript | chosen |
[
{
"from": "system",
"value": "[BUG] Fix for scroll janky on virtual scroll after apply change\n"
},
{
"from": "human",
"value": "import { requestAnimFrame } from '../../utils/utils';\nimport { StyleTranslator } from './StyleTranslator';\nimport { TranslateXY } from '../../utils/translate';\n\nex... | javascript | chosen |
[
{
"from": "system",
"value": "Update the documentation to reflect the changes in removing get param to the V1Meta constructor.\n"
},
{
"from": "human",
"value": "// **NOTE:** This assumes you have jQuery as a node module.\n\nvar jquery = require('jquery');\nvar v1sdk = require('./../dist/v1sdk')... | javascript | chosen |
[
{
"from": "system",
"value": "Add sorting to repair list\n"
},
{
"from": "human",
"value": "module.exports = function() {\n console.log(\"Maintaining Structures... \" + Game.getUsedCpu());\n Object.keys(Game.structures).forEach(function(id) {\n var structure = Game.getObjectById(id)... | javascript | chosen |
[
{
"from": "system",
"value": "Make the search hit the first tab\n\nI know I know, the modal shouldn't know the specifics of the tabs.\n"
},
{
"from": "human",
"value": "/**\n * @fileoverview Describes a search modal view\n */\ndefine([\n 'text!templates/search.html',\n 'backbone',\n 'undersco... | javascript | chosen |
[
{
"from": "system",
"value": "Update click handler for setting current channel\n"
},
{
"from": "human",
"value": "import React, { Component } from 'react';\nimport { connect } from 'react-redux';\nimport { bindActionCreators } from 'redux';\nimport { getChannels } from '../../actions/items';\n\n... | javascript | chosen |
[
{
"from": "system",
"value": "Fix syslog schema field order\n"
},
{
"from": "human",
"value": "angular.module(PKG.name + '.feature.adapters', [])\n .constant('IMPLICIT_SCHEMA', {\n clf: '{\"type\":\"record\",\"name\":\"etlSchemaBody\",\"fields\":[{\"name\":\"remote_host\",\"type\":[\"string\... | javascript | chosen |
[
{
"from": "system",
"value": "Fix serializing `<select multiple>` values\n"
},
{
"from": "human",
"value": "// Zepto.js\n// (c) 2010-2014 Thomas Fuchs\n// Zepto.js may be freely distributed under the MIT license.\n\n;(function($){\n $.fn.serializeArray = function() {\n var el, ty... | javascript | chosen |
[
{
"from": "system",
"value": "Make this a post as it deletes data\n"
},
{
"from": "human",
"value": "App.UsereventsController = App.AuthenticationController.extend({\n actions: {\n deleteData: function () {\n var self = this;\n \n var adapter = new App.ApplicationAdapter;\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Change validation label to span\n"
},
{
"from": "human",
"value": "import React from \"react\";\nimport {v4 as uuid4} from \"uuid\";\n\nexport default class ValidationLabels extends React.Component {\n\n render() {\n const {validators, value} = this.props\n r... | javascript | chosen |
[
{
"from": "system",
"value": "Add correct $remove function to Key model.\n"
},
{
"from": "human",
"value": "angular.module( 'gj.Key' ).factory( 'Key', function( Model )\n{\n\tfunction Key( data )\n\t{\n\t\tif ( data ) {\n\t\t\tangular.extend( this, data );\n\t\t}\n\t}\n\n\tKey.prototype.url = fu... | javascript | chosen |
[
{
"from": "system",
"value": "Fix cli parser config to match tests\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\n/* eslint no-var: 0 */\n\nvar babylon = require(\"..\");\nvar fs = require(\"fs\");\n\nvar filename = process.argv[2];\nif (!filename) {\n console.error(\"no filename ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix file upload csrf error\n"
},
{
"from": "human",
"value": "$(function () {\n $('a[href-post]').click(function (e) {\n e.preventDefault();\n\n var form = document.createElement('form');\n form.style.display = 'none';\n form.method = 'post';\n form.... | javascript | chosen |
[
{
"from": "system",
"value": "Add handler to say hello on boot\n"
},
{
"from": "human",
"value": "var utils = require('radiodan-client').utils,\n logger = utils.logger(__filename);\n\nmodule.exports = function() {\n return {\n 'startPlaying': function(service) {\n logger.info('sta... | javascript | chosen |
[
{
"from": "system",
"value": "Use href from jenkins instead of /\n"
},
{
"from": "human",
"value": "jQuery(function($) {\n $('#header .logo').on('click', function() {\n window.location.href=\"/\";\n });\n});\n"
},
{
"from": "gpt",
"value": "jQuery(function($) {\n $('#... | javascript | chosen |
[
{
"from": "system",
"value": "Remove npm start's earth icon in case of unsupport environment\n"
},
{
"from": "human",
"value": "'use strict'\n\nconst webpack = require('webpack')\nconst webpackDevMiddleware = require('webpack-dev-middleware')\nconst webpackHotMiddleware = require('webpack-hot-mi... | javascript | chosen |
[
{
"from": "system",
"value": "Fix news slider not display correct when only one news\n"
},
{
"from": "human",
"value": "export default function() {\n const $el = $('.blog-carousel');\n if($el.length) {\n $('.blog-carousel').owlCarousel({\n loop:true,\n margin:30,\n nav:true,\... | javascript | chosen |
[
{
"from": "system",
"value": "Enable user query in home private\n"
},
{
"from": "human",
"value": "import React from 'react'\n\n// import GetStarted from './GetStarted'\nimport TradeRequestNotifications from '../containers/TradeRequestNotifications'\nimport TradeRequestForm from '../containers/T... | javascript | chosen |
[
{
"from": "system",
"value": "Update with reference to global nav partial\n"
},
{
"from": "human",
"value": "var _ = require('lodash')\nvar fs = require('fs')\nvar gzip = require('gzip-size')\nvar filesize = require('filesize')\nvar cssstats = require('cssstats')\n\nvar module = require('tachyon... | javascript | chosen |
[
{
"from": "system",
"value": "Add google charts load callback & functions to update data every 10s or 1m\n"
},
{
"from": "human",
"value": "import Vue from 'vue'\nimport Resource from 'vue-resource'\nimport { sync } from 'vuex-router-sync'\nimport store from './store'\nimport router from './rout... | javascript | chosen |
[
{
"from": "system",
"value": "Allow for empty string as target\n"
},
{
"from": "human",
"value": "import _ from 'lodash';\n\nconst translation = (function translation() {\n\n let language = 'original';\n\n function translate(target,override) {\n let lang = override || language;\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Modify queryChildren to use children\n\nInstead of childNodes, which can result in text nodes too.\n"
},
{
"from": "human",
"value": "export function div(className) {\n const div = document.createElement('div');\n div.className = className;\n return div;\n}\n\nco... | javascript | chosen |
[
{
"from": "system",
"value": "Add shorthand tasks for applying changes to html, js, and css\n"
},
{
"from": "human",
"value": "'use strict';\n\nlet fs = require('fs');\nlet gulp = require('gulp');\nlet jshint = require('gulp-jshint');\nlet stylish = require('jshint-stylish');\nlet concat = requi... | javascript | chosen |
[
{
"from": "system",
"value": "Put index controller into \"use strict\"; block.\n"
},
{
"from": "human",
"value": "App.IndexController = Ember.ObjectController.extend({\n isLoading: false,\n isDisabled: false,\n \n actions: {\n openDoor: function() {\n var self = this;\n self.set... | javascript | chosen |
[
{
"from": "system",
"value": "Call up the table header reducer when we receive headers\n"
},
{
"from": "human",
"value": "import apiClient from '../config/apiClient'\nimport {prefixify} from '../lib/regionUtil'\nimport resolveQuery from '../lib/resolveQuery'\nimport {queryResultPresenter} from '... | javascript | chosen |
[
{
"from": "system",
"value": "Watch for changes in accessLevel attribute\n"
},
{
"from": "human",
"value": "'use strict';\n\nangular.module('angular-client-side-auth')\n.directive('accessLevel', ['$rootScope', 'Auth', function($rootScope, Auth) {\n return {\n restrict: 'A',\n li... | javascript | chosen |
[
{
"from": "system",
"value": "[read] Deal with the read action.\n"
},
{
"from": "human",
"value": "import { ADD_NOTIFICATION, ADD_NOTIFICATIONS, READ_NOTIFICATION} from '../actions';\nimport {RECEIVE_NOTIFICATIONS} from '../actions/fetch-notifications';\nimport generateError from './util/error-g... | javascript | chosen |
[
{
"from": "system",
"value": "Remove debug outputs for ssr\n"
},
{
"from": "human",
"value": "const SSR = require('vue-server-renderer');\nconst fs = require('fs');\nconst express = require('express');\nconst path = require('path');\n\nconst renderer = SSR.createBundleRenderer(fs.readFileSync('.... | javascript | chosen |
[
{
"from": "system",
"value": "Load bootstrap 5 js correctly so everything works\n"
},
{
"from": "human",
"value": "/* External library imports */\nimport * as bootstrap from \"bootstrap5/dist/js/bootstrap.js\"\nimport '@fortawesome/fontawesome-free/js/all'\n// import '@fancyapps/fancybox/dist/jq... | javascript | chosen |
[
{
"from": "system",
"value": "Implement ability to send html emails.\n"
},
{
"from": "human",
"value": "import fs from 'fs'\n\nimport { promisifyAll } from 'bluebird'\nimport ejs from 'ejs'\nimport _ from 'lodash'\nimport nodemailer from 'nodemailer'\nimport logger from 'winston'\n\nimport { loa... | javascript | chosen |
[
{
"from": "system",
"value": "Fix bug where alert wouldn't fire if lives equaled zero\n"
},
{
"from": "human",
"value": "var endGame = function(game){\n if ( missBall(game.ball, game.player)){\n if (game.player.lives == 0) {\n console.log('game over!')\n alert('Game Over!');\n }... | javascript | chosen |
[
{
"from": "system",
"value": "Set offset to multiple of NUMBER\n"
},
{
"from": "human",
"value": "import * as React from \"react\";\nimport {BuildSnapshot} from \"./BuildSnapshot\";\n\n/**\n * Container Component for BuildSnapshots.\n * \n * @param {*} props input property containing an array of... | javascript | chosen |
[
{
"from": "system",
"value": "Fix concating watch glob masks\n"
},
{
"from": "human",
"value": "module.exports = function(gulp, config) {\n\n\treturn function(done) {\n\t\tvar c = require('better-console')\n\t\tc.info('watch reload')\n\n\t\tvar browsersync = require('browser-sync')\n\t\tvar fs =... | javascript | chosen |
[
{
"from": "system",
"value": "Revert to local related scrolling js\n\nToolkit version is not currently working.\n"
},
{
"from": "human",
"value": "//= require libs/jquery/jquery-ui-1.8.16.custom.min\n//= require libs/jquery/plugins/jquery.base64\n//= require libs/jquery/plugins/jquery.mustache.j... | javascript | chosen |
[
{
"from": "system",
"value": "Implement failing test for reporter parameter\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst chai = require('chai');\nconst execa = require('execa');\nconst path = require('path');\n\nconst busted = /v4|v6/.test(process.version) ? '--old-and-busted' : '';... | javascript | chosen |
[
{
"from": "system",
"value": "[native] Add optional user info parameter to message list nav params\n\nTest Plan: flow\n\nReviewers: ashoat\n\nReviewed By: ashoat\n\nSubscribers: KatPo, zrebcu411, Adrian\n\nDifferential Revision: https://phabricator.ashoat.com/D341\n"
},
{
"from": "human",
"value... | javascript | chosen |
[
{
"from": "system",
"value": "Use a better path method\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst linz = require('../');\nconst path = require('path');\n\n/**\n * GET /admin\n * Admin route redirect.\n * @param {Object} req Express Request object.\n * @param {Object} res Express... | javascript | chosen |
[
{
"from": "system",
"value": "Fix Permission denied on Configuration tab for Administrator\n\nStrangely, `this.get('session.user.isAdmin')` returned undefined even though session.user was correctly set.\nReplacing with working `this.get('session').get('user').get('isAdmin')`\n"
},
{
"from": "human",... | javascript | chosen |
[
{
"from": "system",
"value": "Fix ZeroClipboard.swf's path in dist/gh-pages (Previously, it worked in local `gulp serve:list` but not on github page)\n"
},
{
"from": "human",
"value": "'use strict';\n/* globals window */\n\nangular.module('vleApp', ['zeroclipboard'])\n .constant('_', window._)\... | javascript | chosen |
[
{
"from": "system",
"value": "Fix driver selection in the testkit-backend\n"
},
{
"from": "human",
"value": "import neo4jDriver from 'neo4j-driver'\nimport neo4jDriverLite from 'neo4j-driver-lite'\n\nconst isLite = (process.env.TEST_DRIVER_LITE || 'False').toUpperCase() in ['TRUE', '1']\nconst n... | javascript | chosen |
[
{
"from": "system",
"value": "Increase the time before the status call during the nodes upgrade.\n\nUpgrade of nodes takes many minutes, probably even hours. We\ndo not need to execute the status query every 5 seconds.\n"
},
{
"from": "human",
"value": "(function() {\n\n angular\n .mod... | javascript | chosen |
[
{
"from": "system",
"value": "Make back button more visible\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport { connect } from 'react-redux';\n\nclass BackButton extends React.Component {\n constructor(props) {\n super(props);\n this.handleClick = this.handleClick.bind... | javascript | chosen |
[
{
"from": "system",
"value": "Fix router test server helper to listen for new lifted log line\n"
},
{
"from": "human",
"value": "var request = require('request');\nvar fs = require('fs');\nvar spawn = require('child_process').spawn;\n\nmodule.exports = {\n\n\t// Write routes object to router fil... | javascript | chosen |
[
{
"from": "system",
"value": "Add stubbed out tests so at least we have them to implement later when\n"
},
{
"from": "human",
"value": "import {\n moduleForComponent,\n test\n} from 'ember-qunit';\n\nmoduleForComponent('stripe-checkout', 'StripeCheckoutComponent', {\n // specify the other uni... | javascript | chosen |
[
{
"from": "system",
"value": "Allow stories to be stacked (dealing with z-index)\nMaybe we should save the z-index as long as the position\n"
},
{
"from": "human",
"value": "$(function(){\n var width = parseInt($('.product_backlog').css('width'));\n console.log(width);\n $('.product_backlog')... | javascript | chosen |
[
{
"from": "system",
"value": "Fix a :bug: due to changes in ipcActions from previosly\n"
},
{
"from": "human",
"value": "import React, {Component, PropTypes} from 'react';\nimport styles from './DatabaseDropdown.css';\nimport Select from 'react-select';\n\n/*\n Displays in a dropdown menu all... | javascript | chosen |
[
{
"from": "system",
"value": "Add created_at to what we get for a workflow\n"
},
{
"from": "human",
"value": "import apiClient from 'panoptes-client/lib/api-client';\nimport { config } from 'constants/config';\nimport * as type from 'constants/actions';\n\nfunction workflowsRequested() {\n retu... | javascript | chosen |
[
{
"from": "system",
"value": "Update nooitaf:colors dependency to 1.1.2_1\n"
},
{
"from": "human",
"value": "Package.describe({\n name: 'konecty:methods-middleware',\n summary: 'Add more power to Meteor.methods with methods-middleware',\n version: '1.2.0',\n git: 'https://github.com/Konecty/... | javascript | chosen |
[
{
"from": "system",
"value": "Add controller function for status codes\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst dateHelper = require(`${__dirname}/../helpers/dateHelper`);\nconst requestHelper = require(`${__dirname}/../helpers/requestHelper`);\n\nexports.getRowRequest = (field,... | javascript | chosen |
[
{
"from": "system",
"value": "Add addListenerOnce and hasListener to event model\n"
},
{
"from": "human",
"value": "core.Class(\"lowland.base.Events\", {\n implement : [core.property.IEvent],\n \n members : {\n fireEvent : function(type, value, old) {\n var events = core.Class.getEven... | javascript | chosen |
[
{
"from": "system",
"value": "Change 'native' variable to 'attach'\n"
},
{
"from": "human",
"value": "// Requiring modules\n\nmodule.exports = function (native) {\n var methods = require('./methods');\n\n if (native) {\n require('./native')(methods);\n }\n\n return methods\n};\n"
},
{... | javascript | chosen |
[
{
"from": "system",
"value": "Use default import for Ember.\n"
},
{
"from": "human",
"value": "import { Ember } from 'ember';\nimport { request } from 'ic-ajax';\n\nexport default Ember.Object.extend({\n setPrefilter: function() {\n var token = this.get('data').token;\n var preFilter = fu... | javascript | chosen |
[
{
"from": "system",
"value": "Add command to run ignored test\n"
},
{
"from": "human",
"value": "window.addEventListener(\"load\", function() {\n uTest.runAllTests();\n uTest.runTestGroup(\"FirstGroup\");\n uTest.runTestGroup(\"SecondGroup\");\n uTest.runTest(\"FirstTest\");\n uTest.ru... | javascript | chosen |
[
{
"from": "system",
"value": "Save message before send sms has been added\n"
},
{
"from": "human",
"value": "const Factories = use('core/factories');\nconst Config = use('config');\n\n\nconst NotificationSmsFactory = Factories('NotificationSms');\n\nclass Notif... | javascript | chosen |
[
{
"from": "system",
"value": "Save thisWeekMeasurements and lastWeekMeasurements to ChapterStatsCtrl\n"
},
{
"from": "human",
"value": "function ChapterStatsController(chapterJSON) {\n var ChapterStatsCtrl = this;\n ChapterStatsCtrl.chapter = chapterJSON.data;\n console.log(ChapterStatsCtrl.c... | javascript | chosen |
[
{
"from": "system",
"value": "Add controller function for top targets\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst dateHelper = require(`${__dirname}/../helpers/dateHelper`);\nconst requestHelper = require(`${__dirname}/../helpers/requestHelper`);\n\nexports.getRowRequest = (field, ... | javascript | chosen |
[
{
"from": "system",
"value": "Use version query string to cache bust instead of webpack hash\n"
},
{
"from": "human",
"value": "var webpack = require('webpack');\nvar webpackMerge = require('webpack-merge');\nvar ExtractTextPlugin = require('extract-text-webpack-plugin');\nvar commonConfig = req... | javascript | chosen |
[
{
"from": "system",
"value": "Refactor result data from list API route\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar db = require('../config/neo4j').db;\nvar List = require('../models/List.model');\n\nexports.show = function(req, res) {\n List.show(req.params.id, function(err, data) {... | javascript | chosen |
[
{
"from": "system",
"value": "Add Ability to forward Post Data\n"
},
{
"from": "human",
"value": "var url = require('url')\nvar HttpClient = function() {}\n\nHttpClient.prototype.fetch = function (requestOptions) {\n var self = this;\n var urlSplit = url.parse(requestOptions.url);\n var isHtt... | javascript | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.