conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Fix search reducer when no results are found\n"
},
{
"from": "human",
"value": "import values from 'lodash/values';\nimport queryString from 'query-string';\nimport { UPDATE_PATH } from 'redux-simple-router';\nimport Immutable from 'seamless-immutable';\n\nimport ty... | javascript | chosen |
[
{
"from": "system",
"value": "Revert newer method to accommodate IE11\n"
},
{
"from": "human",
"value": "moj.Modules.AutocompleteWrapper = {\n init: function () {\n const list = document.querySelectorAll('.fx-autocomplete-wrapper select')\n if (!list.length) return\n this.Autocomplete(... | javascript | chosen |
[
{
"from": "system",
"value": "Break out conditionals to helper functions\n\nUse Object.keys and array.prototype.every to compare object\nkeys/properties\n"
},
{
"from": "human",
"value": "//Write a function, deepEqual, that takes two values and returns true only if they are the same value or are... | javascript | chosen |
[
{
"from": "system",
"value": "Load particles after DOM finishes.\n"
},
{
"from": "human",
"value": "particlesJS.load('fancy-particles', '_static/particles.json', null);\n"
},
{
"from": "gpt",
"value": "$(document).ready(function() {\n if ($(\"#fancy-particles\").length) {\n parti... | javascript | chosen |
[
{
"from": "system",
"value": "Resolve redirectTo even if state doesn't need auth\n"
},
{
"from": "human",
"value": "'use strict';\n\n(function() {\n\n angular.module('impactApp.auth')\n .run(function($rootScope, $state, Auth) {\n // Redirect to login if route requires auth and the user ... | javascript | chosen |
[
{
"from": "system",
"value": "Send user back to workspace if they try to access non-existent board\n"
},
{
"from": "human",
"value": "import superagent from 'superagent/lib/client';\n\n/**\n * Simple helper module to make HTTP requests.\n */\nexport default {\n\tget: request.bind(null, superage... | javascript | chosen |
[
{
"from": "system",
"value": "Remove debug alert from Marionette controller.\n"
},
{
"from": "human",
"value": "Teikei.Controller = Backbone.Marionette.Controller.extend({\n\n initialize: function(options){\n },\n\n index: function(){\n alert(\"Hello from Marionette Beta Controller\");\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Make test for nextPageUrl more robust\n"
},
{
"from": "human",
"value": "import {Controller} from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n\n static targets = [\"link\", \"result\"]\n\n initialize() {\n let options = {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Validate Activity data and structure\n\nPromote early discovery of errors in Activity defintions.\n"
},
{
"from": "human",
"value": "var fs = require('fs');\n\nmodule.exports = function() {\n return fs.readdirSync('src/activities').map(function(dirName) {\n retu... | javascript | chosen |
[
{
"from": "system",
"value": "Fix for loop condition error\n\nOn line 10, compare to iterations not ratio\n"
},
{
"from": "human",
"value": "define(function(){'use strict';\nreturn function(iterations = 1, ratio = 0.5, endValue = false){\n let sequence = [],\n currBlock = 1;\n for(var ii ... | javascript | chosen |
[
{
"from": "system",
"value": "feat: Add actions for add expense form\n\n"
},
{
"from": "human",
"value": "import Ember from 'ember';\nimport $ from 'jquery';\n\nexport default Ember.Component.extend({\n expense: {\n sum: null,\n category: '',\n name: ''\n },\n currency: '£',\n expen... | javascript | chosen |
[
{
"from": "system",
"value": "Use img tag instead of span tag.\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport { movePiece } from '../actions';\nimport { connect } from 'react-redux';\nimport _ from 'lodash';\n\nconst mapStateToProps = (state) => {\n return {\n board: s... | javascript | chosen |
[
{
"from": "system",
"value": "Fix mongodb uri from heroku\n"
},
{
"from": "human",
"value": "module.exports = function(server) {\n var fs = require('fs')\n , mongoose = require('mongoose')\n , options = { autoReconnect: true }\n , mongodb = server.config.mongodb\n , auth = ''\... | javascript | chosen |
[
{
"from": "system",
"value": "Append token to querystring parameter, when applicable\n"
},
{
"from": "human",
"value": "import Ember from 'ember';\nimport { inject as service } from '@ember/service';\nimport config from '../config/environment';\n\nexport default Ember.Route.extend({\n queryPara... | javascript | chosen |
[
{
"from": "system",
"value": "refactor: Change userPos func to build API url\n"
},
{
"from": "human",
"value": "// use strict:\n\"use strict\";\n\n// Function gets the location of the user provided the user opts in\n// function adapted from Sitepoint; https://www.sitepoint.com/html5-geolocation\... | javascript | chosen |
[
{
"from": "system",
"value": "Allow passing string instead of options object\n"
},
{
"from": "human",
"value": "const objectAssign = require('object-assign')\nconst urlParse = require('url-parse')\n\nexport const processOptions = opts => {\n const options = objectAssign({}, opts)\n\n // Parse ... | javascript | chosen |
[
{
"from": "system",
"value": "Improve compatibility (only Firefox supports string.endsWith)\n"
},
{
"from": "human",
"value": "var cc = cc || {};\nvar acg = acg || {};\nacg.ext = acg.ext || {};\n\nacg.ext._res_path = '.';\nacg.ext.set_res_path = function (path) {\n if (path.endsWith('/')) pat... | javascript | chosen |
[
{
"from": "system",
"value": "Update users list to match new styles & UI\n"
},
{
"from": "human",
"value": "/**\n * List function - use `start()` and `send()` to output headers and content.\n * @link http://docs.couchdb.org/en/latest/couchapp/ddocs.html#listfun\n *\n * @param {object} head - Vie... | javascript | chosen |
[
{
"from": "system",
"value": "Update pagination to use new order of err params\n"
},
{
"from": "human",
"value": "var error = require('./requestHandlers/error.js');\n\nmodule.exports = function(req, res, conditions) {\n var offset = req.query.offset\n , limit = req.query.limit;\n\n if (!of... | javascript | chosen |
[
{
"from": "system",
"value": "Add \"Shield\" to Firmware string\n"
},
{
"from": "human",
"value": "import { h } from 'hyperapp'\n\nexport const SettingsAbout = ({state}) =>\n <div class=\"settings_content\">\n <div>Turtle Control Software v{state.system_info.tcs_ver}</div>\n <di... | javascript | chosen |
[
{
"from": "system",
"value": "Use correct Backbone sync parameter to trigger retry\n\nFormer parameter caused a get request, which lead to a 404.\n"
},
{
"from": "human",
"value": "pageflow.retryable = {\n retry: function(options) {\n options = options ? _.clone(options) : {};\n if (optio... | javascript | chosen |
[
{
"from": "system",
"value": "Remove `setState`, For hide modal, it is enough to call `onHidePromoteModal`.\n"
},
{
"from": "human",
"value": "import React, { Component } from 'react';\nimport Dialog from 'material-ui/lib/dialog';\nimport FlatButton from 'material-ui/lib/flat-button';\nimport Ra... | javascript | chosen |
[
{
"from": "system",
"value": "Add models (router currently failing)\n"
},
{
"from": "human",
"value": "/**\n * Test dependencies.\n *\n * This file lists out all of the individual spec (test) files so that they\n * are run by our infrastructure.\n */\n// App configuration.\nvar appConfig = requi... | javascript | chosen |
[
{
"from": "system",
"value": "Add a fake test failure\n\nDo not adjust your television. This is to test automated test\ninfrastructure and will (hopefully) be reverted immediately\nafterwards.\n"
},
{
"from": "human",
"value": "const JSUnit = imports.jsUnit;\n// application/javascript;version=1.... | javascript | chosen |
[
{
"from": "system",
"value": "Refactor to avoid dynamic module resolution\n"
},
{
"from": "human",
"value": "'use strict';\n\n/**\n* Node version.\n*\n* @module @stdlib/process/node-version\n* @type {(string|null)}\n*\n* @example\n* var semver = require( 'semver' );\n* var VERSION = require( '@s... | javascript | chosen |
[
{
"from": "system",
"value": "Test Bubble Sort: Test for empty arrays\n"
},
{
"from": "human",
"value": "/* eslint-env mocha */\nconst BubbleSort = require('../../../src').Algorithms.Sorting.BubbleSort;\nconst assert = require('assert');\n\ndescribe('BubbleSort', () => {\n it('should have no da... | javascript | chosen |
[
{
"from": "system",
"value": "Cover on all src/app/*.js files\n"
},
{
"from": "human",
"value": "<% if (framework === 'angular2') { -%>\nrequire('reflect-metadata');\n<% } -%>\n\n/* globals require */\n<% if (js === 'js') { -%>\nvar context = require.context('./app', true, /\\.spec$/);\n<% } els... | javascript | chosen |
[
{
"from": "system",
"value": "Work around for semver's hatred of underscores.\n64-bit linux kernels return a release version number to node containing the suffix \".x86_64\". Node semver's regexps collapse in the face of underscores.\n"
},
{
"from": "human",
"value": "/*!\nDevice Reporter\n\nCop... | javascript | chosen |
[
{
"from": "system",
"value": "Update test for importing from a legacy package.\n"
},
{
"from": "human",
"value": "import { a, b, c, C, F } from \"import-export-from.js\";\nimport { legacyRelative } from \"node:./import-export-legacy.js\";\nimport { default as legacyPackage } from \"node:pkg\";\n... | javascript | chosen |
[
{
"from": "system",
"value": "Add newline to output if stdout/err is a tty\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\n\nvar Chance = require('../chance.js');\nvar argv = require('minimist')(process.argv.slice(2),{string:\"pool\"});\n\n// Check which generator the user wants to invok... | javascript | chosen |
[
{
"from": "system",
"value": "Append skill title to vertical-tabs\n"
},
{
"from": "human",
"value": "function addSkill() {\n $(\"#new_skill\").on(\"submit\", function (event) {\n event.preventDefault();\n var $target = $(event.target);\n if ($('#skill_title').val() === \"\") {\n a... | javascript | chosen |
[
{
"from": "system",
"value": "Refactor SignUp directive to use UsersService.\n"
},
{
"from": "human",
"value": "{\n angular.module('meganote.signUp')\n .directive('signUp', () => {\n class SignUpController {\n constructor() {\n this.user = {};\n }\n submit() {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix - Common list on press function\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport {\n View,\n ScrollView,\n Image,\n TouchableHighlight,\n Text\n} from 'react-native';\nimport styles from './styles';\n\nconst nextImage = require('assets/... | javascript | chosen |
[
{
"from": "system",
"value": "Make tabs closable in DynamicTabPanel\n"
},
{
"from": "human",
"value": "{\n netzkeTabComponentDelivered: function(c, config) {\n var tab,\n i,\n activeTab = this.getActiveTab(),\n cmp = Ext.ComponentManager.create(c);\n\n if (config.newT... | javascript | chosen |
[
{
"from": "system",
"value": "Fix google analytics page change - stateChangeSuccess\n"
},
{
"from": "human",
"value": "'use strict';\n\nangular.module('core').controller('HeaderController', ['$rootScope', '$scope', '$location', '$state', 'Authentication', 'Menus',\n function($rootScope, $scope,... | javascript | chosen |
[
{
"from": "system",
"value": "Add PM notifications for messages in another channel\n\nFixes #42\n"
},
{
"from": "human",
"value": "'use strict';\nconst db = require('../services/db');\nconst moment = require('moment');\nmodule.exports = {\n db_required: true,\n events: ['message', 'join', 'act... | javascript | chosen |
[
{
"from": "system",
"value": "Fix an issue of unsupported language\n"
},
{
"from": "human",
"value": "/*global Showdown */\n\n'use strict';\n\nangular.module('memoFilters', [])\n .filter('markdown', function ($sce) {\n var marked = window.marked;\n var hljs = window.hljs;\n\n marked.se... | javascript | chosen |
[
{
"from": "system",
"value": "Add skip for records where geometry is too large for ES to handle\n"
},
{
"from": "human",
"value": "\nvar Transform = require('stream').Transform,\n geoJsonCenter = require('../../lib/geoJsonCenter'),\n mapper = new Transform({ objectMode: true });\n\nmapper.... | javascript | chosen |
[
{
"from": "system",
"value": "Change @namespace and close Metadata block\n"
},
{
"from": "human",
"value": "// ==UserScript==\n// @name Dakota\n// @namespace http://www.thefive22.com/\n// @description Forces the Mr. Saturn typeface for YouTube comments.\n// @match http://www.youtube.com/*\n\nva... | javascript | chosen |
[
{
"from": "system",
"value": "Apply fix only when utils are broken\n"
},
{
"from": "human",
"value": "// Temporary fix for https://github.com/Gozala/test-commonjs/pull/8\n\n'use strict';\n\nvar utils = require('test/utils')\n\n , instanceOf;\n\ninstanceOf = utils.instanceOf = function (value, T... | javascript | chosen |
[
{
"from": "system",
"value": "Make eyes and mouths required\n"
},
{
"from": "human",
"value": "module.exports = [\n {\n id: 'Hairstyles',\n required: false,\n sortOrder: 1\n },\n {\n id: 'Beards',\n required: false,\n sortOrder: 4\n },\n {\n id: 'Body',\n required: t... | javascript | chosen |
[
{
"from": "system",
"value": "Fix performance.now not being available in node environment\n"
},
{
"from": "human",
"value": "var timerStart = performance.now();\n\ntry {\n var settings = require('_settings');\n\n var controller = require('stage_controller');\n var creeps = require('stag... | javascript | chosen |
[
{
"from": "system",
"value": "Remove settings & update shrinkwrap\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport Router, { Route, DefaultRoute } from 'react-router';\n\nimport App from './views/app';\nimport ProductSelector from './views/pages/product-selector';\nimport It... | javascript | chosen |
[
{
"from": "system",
"value": "Replace jQuery in SummaryFix js with plain JS\n"
},
{
"from": "human",
"value": "$(function () {\n var $el = $(\".summary li.enqueued > a\"),\n url = $el.attr(\"href\").replace(/\\/queues$/, \"/enhanced-queues\");\n $el.attr(\"href\", url);\n});\n"
},
{
... | javascript | chosen |
[
{
"from": "system",
"value": "Add benchmark/stress test for large strings.\n"
},
{
"from": "human",
"value": "var test = require('tape')\nvar fs = require('fs')\n\nvar columnify = require('../')\n\nvar data = require('./large.json')\n\ntest('handling large data', function(t) {\n t.plan(3)\n /... | javascript | chosen |
[
{
"from": "system",
"value": "Add tests for zoom and travelMode attributes\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar chai = require('chai');\nvar Backbone = require('backbone');\nvar sinon = require('sinon');\nvar expect = chai.expect;\n\nvar MapModel = require('../../app/js/models... | javascript | chosen |
[
{
"from": "system",
"value": "Format intervals in a slightly more sane way\n"
},
{
"from": "human",
"value": "const database = require('../database');\nconst textHelpers = require('../text_helpers');\nconst Table = require('ascii-table');\n\nconst handler = async function(message) {\n const dat... | javascript | chosen |
[
{
"from": "system",
"value": "Implement case for geometric sequences\n"
},
{
"from": "human",
"value": "'use strict'\n\nmodule.exports = {\n\taritGeo: function(numlist) {\n\t\tif (!Array.isArray(numlist)) {\n\t\t\treturn null;\n\t\t}\n\n\t\tif (numlist.length === 0) {\n\t\t\treturn 0;\n\t\t}\n\n... | javascript | chosen |
[
{
"from": "system",
"value": "ADD post logic for /phonebook\n\nSigned-off-by: Mislav Novakovic <5678c0d5a488e1fbc1213419c52ed0f667208fac@gmail.com>\n"
},
{
"from": "human",
"value": "let express = require('express');\nlet app = express();\nlet phonebook = require(\"./data/phonebook.json\");\n\na... | javascript | chosen |
[
{
"from": "system",
"value": "Complete work before final submission of client folder skeleton with some functionality\n"
},
{
"from": "human",
"value": "angular.module('sparrow')\n.controller('CreateWorkoutCtrl', function() {\n\n})\n.component('createWorkout', {\n controller: 'CreateWorkoutCtrl... | javascript | chosen |
[
{
"from": "system",
"value": "Allow user to analyze sample when they are owner\n\n"
},
{
"from": "human",
"value": "import { filter, get, includes } from \"lodash-es\";\nimport { createSelector } from \"reselect\";\nimport { getTermSelectorFactory } from \"../utils/selectors\";\n\nconst getAdmin... | javascript | chosen |
[
{
"from": "system",
"value": "Rewrite tests of using card\n"
},
{
"from": "human",
"value": "const assert = require('assert');\nconst sinon = require('sinon');\n\nconst cmd = require('../src/cmd');\n\nconst Card = require('../src/core/Card');\nconst Player = require('../src/core/Player');\n\ncon... | javascript | chosen |
[
{
"from": "system",
"value": "Add ability to exit IO loop\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\n/* eslint no-console: 0 */\n\nconst { parse, roll, pool } = require('../index.js')\n\nconst parseArgs = () => {\n const args = process.argv.slice(2)\n const parsedArgs = {\n rol... | javascript | chosen |
[
{
"from": "system",
"value": "Include only documents, pretty-print JSON.\n"
},
{
"from": "human",
"value": "#! /usr/bin/env node\n\nvar path = require('path');\nvar PouchDB = require('pouchdb');\nvar db = new PouchDB(path.resolve(__dirname, '../db/thirdhandinfo'));\nvar log = console.log.bind(co... | javascript | chosen |
[
{
"from": "system",
"value": "Move and consolidate log statements\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar sample = require( './../lib' );\n\nvar out;\nvar x;\n\n// By default, sample uniformly with replacement:\nx = [ 'a', 'b', 'c', 'd' ];\nconsole.log( 'By default, sample unifor... | javascript | chosen |
[
{
"from": "system",
"value": "Add _getCategoryCount method. Add vm.getCategoryCount public method\n"
},
{
"from": "human",
"value": "// js/controllers/nw-category-select.controller\n\n(function() {\n \"use strict\";\n\n angular.module(\"NoteWrangler\")\n .controller(\"nwCategorySelectContro... | javascript | chosen |
[
{
"from": "system",
"value": "Fix eslint warnings about global Config and Log objects.\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\n'use strict';\n\nconst args = require('yargs')\n .usage('Usage: $0 [args]')\n .option('c', {\n alias: 'config',\n describe: 'Load configuration f... | javascript | chosen |
[
{
"from": "system",
"value": "Remove Restangular overriden configuration, now use MarvelRestangular.\n"
},
{
"from": "human",
"value": "angular.module('marvel.app', [\n 'ngRoute',\n 'restangular',\n 'marvel.config',\n 'marvel.common'\n ])\n .config([ '$routeProv... | javascript | chosen |
[
{
"from": "system",
"value": "Fix for when category description has html. Could be better.\n"
},
{
"from": "human",
"value": "/**\n This view handles rendering of a combobox that can view a category\n\n @class ComboboxViewCategory\n @extends Discourse.ComboboxView\n @namespace Discourse\n @... | javascript | chosen |
[
{
"from": "system",
"value": "Use the correct carto named basemap\n"
},
{
"from": "human",
"value": "/**\n * The custom labels for dark basemap layer module.\n *\n * @return CustomDarkLabelsLayer class (extends ImageLayerClass)\n */\ndefine([\n 'abstract/layer/ImageLayerClass',\n], function(Ima... | javascript | chosen |
[
{
"from": "system",
"value": "Docs: Update mixup between rules in docstring example\n\n`requirePaddingNewLinesBeforeExport` was mentioned instead of `disallowPaddingNewLinesBeforeExport`.\n\nCloses gh-1317\n"
},
{
"from": "human",
"value": "/**\n * Disallows newline before module.exports\n *\n *... | javascript | chosen |
[
{
"from": "system",
"value": ":bug: Make sure to filter any classification associated with affiliations when the curator is NOT curating as part of an affiliation\n"
},
{
"from": "human",
"value": "'use strict';\n\nimport { userMatch, affiliationMatch } from '../components/globals';\n\n/**\n * T... | javascript | chosen |
[
{
"from": "system",
"value": "Fix error with EADDRNOTAVAIL on startup by using localhost as config.hostname.\n"
},
{
"from": "human",
"value": "'use strict';\n\nmodule.exports = {\n env: 'production',\n mongo: {\n uri: process.env.OPENSHIFT_MONGODB_DB_URL + process.env.OPENSHIFT_APP_NAME ||... | javascript | chosen |
[
{
"from": "system",
"value": "Remove unnecessary msg use in hideyourshame\n"
},
{
"from": "human",
"value": "\n// Commands are called in the following manner:\n// commands[command](message, config, msg, ...parameters)\n// msg is the message content without the prefix or command\nmodule.exports =... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"added version for templating\"\n\nThis reverts commit 57693cd93e51b1ddcedb6be33a8e125c431371e5.\n"
},
{
"from": "human",
"value": "Package.describe({\n name: 'ox2:chart',\n summary: 'TESTING_DO_NOT_USE Chart components',\n version: '2.0.0',\n git: ' /* ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix the scroll to top\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport PropTypes from 'prop-types';\n\nclass ScrollToTop extends React.Component {\n componentDidUpdate(prevProps) {\n if (this.props.location !== prevProps.location) {\n w... | javascript | chosen |
[
{
"from": "system",
"value": "Update bitmap text to new 2.0 format\n"
},
{
"from": "human",
"value": "'use strict';\n\nDarwinator.Menu = function() {\n this.titleTxt = null;\n this.startTxt = null;\n};\n\nDarwinator.Menu.prototype = {\n\n create: function () {\n var x = this.game.width / 2... | javascript | chosen |
[
{
"from": "system",
"value": "Use base getMaterialDescription for PointsMaterial\n"
},
{
"from": "human",
"value": "import THREE from 'three';\nimport MaterialDescriptorBase from './MaterialDescriptorBase';\n\nclass PointsMaterialDescriptor extends MaterialDescriptorBase {\n constructor(react3R... | javascript | chosen |
[
{
"from": "system",
"value": "Put cache in node_modules for Netlify’s build cache\n"
},
{
"from": "human",
"value": "const Cache = require(\"async-disk-cache\");\n\nmodule.exports = class BigCachedFunction {\n constructor(name) {\n this.inProgress = new Map();\n this.cache = new Cache(nam... | javascript | chosen |
[
{
"from": "system",
"value": "Remove useless CustomErrors from passport config\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst Passport = require('passport');\nconst JwtStrategy = require('passport-jwt').Strategy;\nconst ExtractJwt = require('passport-jwt').ExtractJwt;\nconst SecurityC... | javascript | chosen |
[
{
"from": "system",
"value": "Fix count number on delete\n"
},
{
"from": "human",
"value": "/**\n *\n * ListPage reducer\n *\n */\n\nimport { fromJS, List, Map } from 'immutable';\n\n// ListPage constants\nimport {\n CHANGE_PARAMS,\n DELETE_DATA_SUCCESS,\n GET_DATA_SUCCEEDED,\n SET_PARAMS,\n... | javascript | chosen |
[
{
"from": "system",
"value": "Fix out of date path in a test case."
},
{
"from": "human",
"value": "var fs = require(\"fs\");\nvar path = require(\"path\");\nvar utils = require(\"../utils\");\nvar chai = require(\"chai\");\nvar expect = chai.expect;\nvar exec = utils.exec;\n\nvar simpleAddonPat... | javascript | chosen |
[
{
"from": "system",
"value": "Make it easier for external apps to use oauth javascript\n"
},
{
"from": "human",
"value": "girder.views.oauth_LoginView = girder.View.extend({\n events: {\n 'click .g-oauth-button': function (event) {\n var provider = $(event.currentTarget).att... | javascript | chosen |
[
{
"from": "system",
"value": "Adjust beta ratio to 20%\n"
},
{
"from": "human",
"value": "//= require govuk/multivariate-test\n\n/*jslint browser: true,\n * indent: 2,\n * white: true\n */\n/*global $, GOVUK */\n$(function () {\n\n GOVUK.taxDiscBetaPrimary = function () {\n $('.primary-app... | javascript | chosen |
[
{
"from": "system",
"value": "hain-plugin-math: Update to use Indexer API\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst lo_isNumber = require('lodash.isnumber');\nconst lo_isString = require('lodash.isstring');\nconst lo_isObject = require('lodash.isobject');\nconst lo_has = require(... | javascript | chosen |
[
{
"from": "system",
"value": "Fix Analytics link in the footer.\n"
},
{
"from": "human",
"value": "/**\n * Footer component of the ModulePopularPagesWidget widget.\n *\n * Site Kit by Google, Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * ... | javascript | chosen |
[
{
"from": "system",
"value": "Remove disable-gpu option for chrome\n"
},
{
"from": "human",
"value": "module.exports = {\n test_page: 'tests/index.html?hidepassed',\n disable_watching: true,\n launch_in_ci: ['Chrome'],\n launch_in_dev: ['Chrome'],\n browser_start_timeout: 120,\n browser_ar... | javascript | chosen |
[
{
"from": "system",
"value": "Add MatCSS text field initialization\n"
},
{
"from": "human",
"value": "/**\n * 'mzInit' initializes and connects dynamic elements for MaterializeCSS.\n */\n/*global $*/\nconst m = require('mithril');\nconst mzInit = module.exports = {\n select: {\n config: () =... | javascript | chosen |
[
{
"from": "system",
"value": "Remove 401 status code to log out user\n"
},
{
"from": "human",
"value": "import axios from 'axios';\nimport { browserHistory } from 'react-router'\n\nimport config from '../config';\n\nconst baseUrl = config.baseUrl;\n\nconst onErrorHandler = error => {\n if (erro... | javascript | chosen |
[
{
"from": "system",
"value": "Fix for class name prefixes\n\ngit-svn-id: eaac6977d0b6fa3343c402860739874625caf655@35216 05bdf26c-840f-0410-9ced-eb539d925f36\n"
},
{
"from": "human",
"value": "/*\n * Alloy JavaScript Library v0.1\n * http://alloyui.com/\n *\n * Copyright (c) 2009 Liferay Inc.\n *... | javascript | chosen |
[
{
"from": "system",
"value": "Put business logic in enhancer functions\n\nThis should be ok\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport Header from '@modules/Header';\nimport FlexedView from '@primitives/FlexedView';\nimport ContributionForm from './ContributionForm';\n... | javascript | chosen |
[
{
"from": "system",
"value": "Test integration of initialize() in LMLayer and Worker.\n"
},
{
"from": "human",
"value": "var assert = chai.assert;\n\ndescribe('LMLayer', function () {\n describe('[[constructor]]', function () {\n it('should construct with zero arguments', function () {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix WebUI crash when a toot with a playing video gets deleted\n\nSigned-off-by: Claire <82b964c50e9d1d222e48cf5046e6484a966a7b07@sitedethib.com>\n"
},
{
"from": "human",
"value": "// @ts-check\n\nexport const PICTURE_IN_PICTURE_DEPLOY = 'PICTURE_IN_PICTURE_DEPLOY';\... | javascript | chosen |
[
{
"from": "system",
"value": "Fix task def for gulp 4\n"
},
{
"from": "human",
"value": "var log = require('color-log'),\n runSequenceGenerator = require('run-sequence'),\n createBundleTasks = require('./utils/createBundleTasks');\n\nmodule.exports = function(gulp, options) {\n var tasks;... | javascript | chosen |
[
{
"from": "system",
"value": "Print process.env to debug Travis\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport { mount } from 'enzyme';\nimport { createStore } from 'redux';\n\nimport Phone from '../dev-server/Phone';\nimport App from '../dev-server/containers/App';\nimpor... | javascript | chosen |
[
{
"from": "system",
"value": "Use dots reporter for travis.\n"
},
{
"from": "human",
"value": "var files = require('../files');\n\nmodule.exports = {\n options: {\n frameworks: [\n 'jasmine'\n ],\n files: files.testEnvKarma.concat([files.unitTests])\n },\n all: {\n options: {... | javascript | chosen |
[
{
"from": "system",
"value": "Remove unused module namespace from require config.\n"
},
{
"from": "human",
"value": "(function () {\n 'use strict';\n\n // Initialise RequireJS module loader\n require.config({\n urlArgs: 'm=' + (new Date()).getTime(),\n baseUrl: '/app/',\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add detail log on LKS"
},
{
"from": "human",
"value": "/**\n * PDP-11 Emulation for JavaScript\n */\n\n/**\n * DeviceKw prototype\n *\n * This prototype provides KW device emulation.\n * @author Takashi Toyoshima <toyoshim@gmail.com>\n */\nfunction DeviceKw (bus) {\... | javascript | chosen |
[
{
"from": "system",
"value": "Set canvas width on start if fullscreen\n"
},
{
"from": "human",
"value": "var SQ = SQ || {};\n\nSQ.Screen = function Screen (canvas, settings) {\n\tthis.canvas = canvas;\n\tthis.ctx = canvas.getContext(\"2d\");\n\tthis.settings = settings;\n\t\n\tif (settings.fullS... | javascript | chosen |
[
{
"from": "system",
"value": "Update example migration to affect a selector option value\n"
},
{
"from": "human",
"value": "exports.migrate = function(properties) {\n // To view JavaScript console logs in the Rails debug log, be sure to make them single value and to only pass them\n // strings... | javascript | chosen |
[
{
"from": "system",
"value": "[BUGFIX] Fix the generation of the CSS docs\n"
},
{
"from": "human",
"value": "/**\n * Grunt-Styleguide\n * @description Universal CSS styleguide generator for grunt. Easily integrate Styledocco or KSS styleguide generation into your development workflow.\n * @docs ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix plural naming change for ProductTypesResource\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar _ = require('lodash');\n\n/**@ngInject*/\nvar ProjectServicesController = function($scope, CartService, project, products, categories, currentUser) {\n this.Ca... | javascript | chosen |
[
{
"from": "system",
"value": "Fix leaky requires between zjsunit tests.\n\nSome node tests used to pass as long as prior tests ran,\nbut then they would fail if you ran them standalone. Now\nwe are more aggressive about cleaning up node's require\ncache after each individual test runs.\n"
},
{
"fro... | javascript | chosen |
[
{
"from": "system",
"value": "Add properCase. Use 'for-of' statement in path.\n"
},
{
"from": "human",
"value": "/** Wrap DOM selector methods:\n * document.querySelector,\n * document.getElementById,\n * document.getElementsByClassName]\n */\nconst dom = {\n query(arg) {\n return document.q... | javascript | chosen |
[
{
"from": "system",
"value": "Format JavaScript, no content changes.\n"
},
{
"from": "human",
"value": "Teikei.module(\"Places\", function(Places, App, Backbone, Marionette, $, _) {\n\n Places.DetailsMessageFormView = Places.DetailsView.extend({\n\n schemata: function() {\n return {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Delete debug injection of state in mFA\n"
},
{
"from": "human",
"value": "\"use strict\";\n\nangular.module('arethusa.morph').directive('morphFormAttributes', [\n 'morph',\n '$document',\n 'state',\n function(morph, $document, state) {\n return {\n restr... | javascript | chosen |
[
{
"from": "system",
"value": "Change some permissions and store some more details from Payfast\n"
},
{
"from": "human",
"value": "var mongoose = require('mongoose');\nvar Schema = mongoose.Schema;\n\nvar ObjectId = mongoose.Schema.Types.ObjectId;\nvar User = require(\"./user_model\");\... | javascript | chosen |
[
{
"from": "system",
"value": "Fix livechat not saving OS, browser and IP\n"
},
{
"from": "human",
"value": "Meteor.methods({\n\t'livechat:registerGuest': function({ token, name, email, department } = {}) {\n\t\tvar stampedToken = Accounts._generateStampedLoginToken();\n\t\tvar hashStampedToken =... | javascript | chosen |
[
{
"from": "system",
"value": "Set the default cartoCSS version when generating the MapConfig"
},
{
"from": "human",
"value": "var _ = require('underscore');\nvar LayerGroupConfig = {};\n\nLayerGroupConfig.generate = function (options) {\n var layers = options.layers;\n var dataviews = options.... | javascript | chosen |
[
{
"from": "system",
"value": "Fix the messaging timing extension to only message the toplevel frame.\n\nBUG=no\n\nReview URL: http://codereview.chromium.org/384133\n\ngit-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@31978 0039d316-1c4b-4281-b951-d872f2087c98\n"
},
{
"from": "human",
"value":... | javascript | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.