conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Add timestamp to Confluence page title so that new builds create new pages\n"
},
{
"from": "human",
"value": "var ConfluenceAPI = require('confluence-api');\n\nfunction Confluence(options) {\n this.confluence = new ConfluenceAPI({\n username: options.user,\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix accidental overwrite of paperSize\n"
},
{
"from": "human",
"value": "'use strict';\n\nexports.run = function (options, cb) {\n var page = require('webpage').create();\n var port = options.port || 3000;\n var id = options.id;\n var size = options.size || '800... | javascript | chosen |
[
{
"from": "system",
"value": "Comment out the right things\n"
},
{
"from": "human",
"value": "\"use strict\";\nvar PID_FILENAME = \"ircas.pid\";\nvar fs = require(\"fs\");\nvar q = require(\"q\");\nvar logging = require(\"./logging\");\nvar Validator = require(\"./config/validator\");\nvar log =... | javascript | chosen |
[
{
"from": "system",
"value": "Send route to Google Analytics\n"
},
{
"from": "human",
"value": "const riotcontrol = require('riotcontrol');\n\n\nconst router = function() {\n\n let script = document.createElement('script');\n\n // function addBundle(route) {\n // if (route) {\n /... | javascript | chosen |
[
{
"from": "system",
"value": "Fix key name for AS app id\n"
},
{
"from": "human",
"value": "const $ = jQuery = require(\"jquery\")\r\nconst localforage = require(\"localforage\")\r\nconst moment = require(\"moment\")\r\nconst path = require(\"path\")\r\n\r\nconst Audiosearch = require(\"audiosea... | javascript | chosen |
[
{
"from": "system",
"value": "Change index page for webpack dev server\n"
},
{
"from": "human",
"value": "var path = require(\"path\");\n\nmodule.exports = {\n entry: {\n app: './src/app.tsx'\n },\n output: {\n path: path.resolve(__dirname, 'build'),\n publicPath: \... | javascript | chosen |
[
{
"from": "system",
"value": "Add get result by id to api service\n"
},
{
"from": "human",
"value": "angular.module('PassApp')\n.factory('ApiService', function($http){\n\tvar o = {};\n\tvar baseUrl = \"http://localhost:3000\";\n\n\to.getResults = function(id){\n\t\tconsole.log(id);\n\t\treturn;\... | javascript | chosen |
[
{
"from": "system",
"value": "Fix assert on pending promise\n\nSigned-off-by: Boris Osipov <645afb413bb7e3c44961d7745e6cef511fbf5bbe@gmail.com>\n"
},
{
"from": "human",
"value": "import { expect } from 'chai'\nimport { defineSupportCode } from 'cucumber'\n\ndefineSupportCode(({ Given, When, Then... | javascript | chosen |
[
{
"from": "system",
"value": "Switch default toelrance to zero\n"
},
{
"from": "human",
"value": "/**\n * These are all the device types defined in Johnny-Five. These\n * extend our Input objects (not elements)\n *\n * min - Minimum value for the device type\n * max - Maximum value for... | javascript | chosen |
[
{
"from": "system",
"value": "Handle request errors and log out to console\n"
},
{
"from": "human",
"value": "/*\n * raygun\n * https://github.com/MindscapeHQ/raygun4node\n *\n * Copyright (c) 2015 MindscapeHQ\n * Licensed under the MIT license.\n */\n\n'use strict';\n\nvar http = require('http'... | javascript | chosen |
[
{
"from": "system",
"value": "Fix null insertion in data context\n"
},
{
"from": "human",
"value": "import { EJSON } from 'meteor/ejson';\n/* eslint-disable no-undef, import/no-extraneous-dependencies, import/no-unresolved, import/extensions, max-len */\nimport serialize from 'serialize-javascri... | javascript | chosen |
[
{
"from": "system",
"value": "Allow user to remove sample people\n"
},
{
"from": "human",
"value": "Meteor.methods({\n\n addSearchSamplePeople: function() {\n\n var first_names = [\n \"Ada\",\n \"Grace\",\n \"Marie\",\n \"Carl\",\n \"Nikola\",\n \"Claude\",\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Use more bulletproof start of range detection\n"
},
{
"from": "human",
"value": "import { Constants } from \"../constants\";\nimport { Composer } from \"../views/composer\";\n\nComposer.RegisterKeyboardHandler(function(e) {\n return (\n e.type === \"keydown\" &&... | javascript | chosen |
[
{
"from": "system",
"value": "Implement size prop and pass down to children\n"
},
{
"from": "human",
"value": "import React, { PureComponent } from 'react';\nimport PropTypes from 'prop-types';\nimport Box from '../box';\nimport WidgetBody from './WidgetBody';\nimport WidgetFooter from './Widget... | javascript | chosen |
[
{
"from": "system",
"value": "Use options parameter instead of normal parameters\n"
},
{
"from": "human",
"value": "import { SplashEffect } from \"./effect.js\";\n\nexport class GrowAndShrink extends SplashEffect {\n\tconstructor(element, min, max) {\n\t\tsuper(element);\n\n\t\tthis.min = min ||... | javascript | chosen |
[
{
"from": "system",
"value": "Fix localStorage model in minified JS\n"
},
{
"from": "human",
"value": "/**\n * model/fancy/localstorage.js\n */\n\nvar localStorageModel = baseModel.extend({\n /**\n * To use, extend this model and specify key as a property.\n *\n * For example:\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Support emulation of 'option' tag with MenuItem\n"
},
{
"from": "human",
"value": "/*\n This file is a part of libertysoil.org website\n Copyright (C) 2015 Loki Education (Social Enterprise)\n\n This program is free software: you can redistribute it and/or modify\n... | javascript | chosen |
[
{
"from": "system",
"value": "[core] Fix bug where import would stall if no assets were left when stream is drained\n"
},
{
"from": "human",
"value": "import through from 'through2'\nimport getAssetImporter from './getAssetImporter'\nimport promiseEach from 'promise-each-concurrency'\n\nconst ba... | javascript | chosen |
[
{
"from": "system",
"value": "Configure browser sync just needed options\n"
},
{
"from": "human",
"value": "\n/*\n |--------------------------------------------------------------------------\n | Browser-sync config file\n |-------------------------------------------------------------------------... | javascript | chosen |
[
{
"from": "system",
"value": "Rename node stream to avoid confusion with web streams\n"
},
{
"from": "human",
"value": "const ReadableStream = require('readable-stream')\n\nmodule.exports = function (snapshot) {\n return checkCache.bind(null, snapshot._namespace)\n}\n\nfunction checkCache (name... | javascript | chosen |
[
{
"from": "system",
"value": "Remove error message displayed when a template is not found.\n"
},
{
"from": "human",
"value": "/**\n * dom/template/render.js\n */\n\n/**\n * Render the named template with the specified view\n * @param {string} id\n * @param {View} view\n */\nfunction renderTemp... | javascript | chosen |
[
{
"from": "system",
"value": "Fix multiple JavaScript functions not working in Safari.\n\nThings such as adding attendees and agendums weren't working in\nSafari. It seems that I was missing a closing brace in a query\nselector, which Safari was strict on, causing Ajax requests to\nfail because the CSRF tok... | javascript | chosen |
[
{
"from": "system",
"value": "Create a new parser for each file\n"
},
{
"from": "human",
"value": "var dragDrop = require('drag-drop/buffer');\nvar id3v2 = require('id3v2-parser');\nvar BufferList = require('bl');\n\nvar parser = new id3v2();\n\ndragDrop('body', function(files) {\n var bl = new... | javascript | chosen |
[
{
"from": "system",
"value": "Add onkeypress to globally allowed html attrs\n"
},
{
"from": "human",
"value": "'use strict';\n\nmodule.exports = { accesskey: true, class: true, dir: true, hidden: true,\n\tid: true, intert: true, lang: true, spellcheck: true, style: true,\n\ttitle: true, translat... | javascript | chosen |
[
{
"from": "system",
"value": "Detach both level select transition input methods from tutorial\n"
},
{
"from": "human",
"value": "function TutorialState(game) {\n this.game = game;\n this.playingState = new PlayingState(game);\n var renderRegion = new RenderRegion(null, game.canvas.heigh... | javascript | chosen |
[
{
"from": "system",
"value": "Make sure to update the test script\n"
},
{
"from": "human",
"value": "import { terser } from 'rollup-plugin-terser'\nimport pkg from './package.json'\nimport { nodeResolve } from '@rollup/plugin-node-resolve'\nimport commonjs from '@rollup/plugin-commonjs'\n\nconst... | javascript | chosen |
[
{
"from": "system",
"value": "Use VS auto-discovery if options.tfsPath is not specified"
},
{
"from": "human",
"value": "/*\n* grunt-tfs-unlock\n* https://github.com/danactive/grunt-tfs-unlock\n*\n* Copyright (c) 2013 Dan BROOKS\n* Licensed under the MIT license.\n*/\n\n'use strict';\n\nmodule.e... | javascript | chosen |
[
{
"from": "system",
"value": "Clean pk builder\nInstead of using manual logic, used\nmethod getIdName()\n"
},
{
"from": "human",
"value": "'use strict';\n/**\n * Builds the primary key name depending on model configurations\n */\nmodule.exports = class PrimaryKeyBuilder {\n constructor(Model)... | javascript | chosen |
[
{
"from": "system",
"value": "Add a test for `isEmpty`\n"
},
{
"from": "human",
"value": "import expect from \"expect.js\";\n\ndescribe(\"Effect\", () => {\n it(\"works\", () => {\n // TODO\n expect(1).to.be(1);\n });\n});\n"
},
{
"from": "gpt",
"value": "import expect from \... | javascript | chosen |
[
{
"from": "system",
"value": "Test add bulk query ok\n"
},
{
"from": "human",
"value": "\nlet a = { id_sistema: '7',\n nomeperfilacesso: 'felipe 1629',\n functionalities: [ '1', '4', '12' ] }\n\n//let values = []\nlet lastIDCreated = 50\nlet b = a.functionalities.map(function(e){\n let item =... | javascript | chosen |
[
{
"from": "system",
"value": "Fix failing tests due to bad compile.\n"
},
{
"from": "human",
"value": "if (typeof document.registerElement === 'function') {\n return;\n}\n\nvar oldCreateElement = document.createElement.bind(document);\ndocument.createElement = function (name, parent) {\n var e... | javascript | chosen |
[
{
"from": "system",
"value": "Remove Karma logger hack which doesn't work with 2.0\n"
},
{
"from": "human",
"value": "/* jshint strict: false */\n/* globals configData */\n\n/*\n * Doo reads this file from classpath runners/karma.conf.js\n * This sets up junit reporter.\n */\n\nvar path = requir... | javascript | chosen |
[
{
"from": "system",
"value": "Add method for changing fonts\n"
},
{
"from": "human",
"value": "// ==UserScript==\n// @name Kurahen Premium\n// @namespace karachan.org\n// @version 1.0\n// @include http://www.karachan.org/*\n// @include http://karachan.org/*\n// @exclude ... | javascript | chosen |
[
{
"from": "system",
"value": "Add command line arg to specify intention to force activation\n"
},
{
"from": "human",
"value": "module.exports = {\n name: 'deploy',\n description: 'Deploys an ember-cli app',\n works: 'insideProject',\n\n availableOptions: [\n { name: 'environment', type: S... | javascript | chosen |
[
{
"from": "system",
"value": "Fix bug with colored tiles always showing for guess board\n"
},
{
"from": "human",
"value": "import React, { PropTypes } from 'react';\n\nimport colorByCharacter from '~/constants/colorByCharacter';\n\nfunction WordCard(props) {\n const {word} = props;\n\n functio... | javascript | chosen |
[
{
"from": "system",
"value": "Move a regex to a constant\n\nThis will speed up things a little as the regex can be precompiled. I\ndon't think this matters much tbh, but it's good practice.\n"
},
{
"from": "human",
"value": "import fs from 'fs';\nimport path from 'path';\n\nfunction findRecursiv... | javascript | chosen |
[
{
"from": "system",
"value": "Use const for variables that aren't re-assigned"
},
{
"from": "human",
"value": "/* global window */\nwindow.es6Example = window.es6Example || {};\nwindow.es6Example.arrow = {};\n\nwindow.es6Example.arrow.code =\n`let square = x => x * x;\nlet add = (a, b) => a + b;... | javascript | chosen |
[
{
"from": "system",
"value": "Disable map scrolling until user click on the map.\n"
},
{
"from": "human",
"value": "$(function(){\n $('.imgTile').click(function(){\n window.location.href = $(this).data('url');\n })\n});\n\nfunction initialize() {\n var mapOptions = {\n cen... | javascript | chosen |
[
{
"from": "system",
"value": "Update bar status query download\n"
},
{
"from": "human",
"value": "import { computed, transaction, action, autorun } from 'mobx'\nimport { BarQueryDownload } from './barquery.js'\nimport { config } from '/utils/config.js'\n\nexport class BarStatusDownload extends B... | javascript | chosen |
[
{
"from": "system",
"value": "Use Platform to determine extra iOS propTypes\n"
},
{
"from": "human",
"value": "module.exports = [\n 'contain',\n 'cover',\n 'stretch',\n 'repeat',\n 'center',\n];\n"
},
{
"from": "gpt",
"value": "import Platfrom from '../plugins/Platform';\n\ncons... | javascript | chosen |
[
{
"from": "system",
"value": "Fix bug with new users joining.\n"
},
{
"from": "human",
"value": "var NicklistCtrl = function ($scope, chatServer) {\n $scope.users = {};\n\n chatServer.on('join', function(params) {\n var channel = params.channel,\n user = params.user;\n\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Allow bypassing body payload directly\n"
},
{
"from": "human",
"value": "const Errors = require('./../../errors');\nconst Message = require('./../index');\n\n\nconst JSON_CONTENT_TYPE = \"application/json\";\n\nMessage.request.addInterceptor(requestInterceptorBodyPa... | javascript | chosen |
[
{
"from": "system",
"value": "[validator] Add validator to the namespace\n"
},
{
"from": "human",
"value": "module.exports = {\n\tdomain: require('./domain'),\n\tentity: require('./entity')\n};\n"
},
{
"from": "gpt",
"value": "module.exports = {\n\tdomain: require('./domain'),\n\tent... | javascript | chosen |
[
{
"from": "system",
"value": "Add process.env.PORT as port option for deployment\n"
},
{
"from": "human",
"value": "const express = require('express');\nconst mongoose = require('mongoose');\n\nconst app = express();\n\nmongoose.connect('mongodb://localhost/speechdoctor');\n\nrequire('./config/m... | javascript | chosen |
[
{
"from": "system",
"value": "Add caching to Mailchimp API\n"
},
{
"from": "human",
"value": "const mailchimp = require(\"@mailchimp/mailchimp_marketing\");\n\nmailchimp.setConfig({\n apiKey: process.env.MAILCHIMP_API_KEY,\n server: \"us4\",\n});\n\nexport default async (req, res) => {\n try ... | javascript | chosen |
[
{
"from": "system",
"value": "Add edit icon for password fields\n"
},
{
"from": "human",
"value": "/*eslint-disable no-unused-vars */\nimport React from \"react\";\n/*eslint-enable no-unused-vars */\n\nimport FieldInput from \"./FieldInput\";\n\nconst DEFAULT_PASSWORD_TEXT = \"••••••\";\n\nconst... | javascript | chosen |
[
{
"from": "system",
"value": "Handle page clicks while fading out on anim example\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport ModalContainer from 'react-mf-modal/container';\nimport AnimChildren from './animation-helper';\nimport Backdrop from './animated-backdrop';\n\n... | javascript | chosen |
[
{
"from": "system",
"value": "Add Chapter 04, exercise 1\n"
},
{
"from": "human",
"value": "function range(start, end, step) {\n var arr = [];\n var mystep = arguments.length == 3 ? step : 1;\n var val = start;\n while (true) {\n arr.push(val);\n val += mystep;\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix checkExists for add-package in webserver-ui\n"
},
{
"from": "human",
"value": "define(function(require) {\n\n var db = require('../stores/db'),\n errors = require('../handlers/errors');\n sendRequest = require('./send-request');\n\n return function(u... | javascript | chosen |
[
{
"from": "system",
"value": "Use Object Literal Shorthand Syntax\n\nLooks like it's a miss as its already done at other instances like productId"
},
{
"from": "human",
"value": "import shop from '../api/shop'\nimport * as types from '../constants/ActionTypes'\n\nconst receiveProducts = products... | javascript | chosen |
[
{
"from": "system",
"value": "Use keypress instead of keydown\n"
},
{
"from": "human",
"value": "/*\n * jquery.submitOnEnter v1.0.1\n *\n * Copyright (c) 2012 Thibaut Courouble\n * http://thibaut.me\n *\n * Licensed under the MIT license:\n * http://www.opensource.org/licenses/mit-license.php\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Use updated containers in main\n"
},
{
"from": "human",
"value": "'use strict'\n\nimport 'normalize.css'\nimport React, { Component } from 'react'\nimport ReactCSS from 'reactcss'\n\nimport '../fonts/work-sans/WorkSans.css!'\nimport '../styles/felony.css!'\nimport ... | javascript | chosen |
[
{
"from": "system",
"value": "tests/errors/silent: Move deprecated require() call into test\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar SilentError = require('silent-error');\nvar SilentErrorLib = require('../../../lib/errors/silent');\nvar expect = require('chai').expect;... | javascript | chosen |
[
{
"from": "system",
"value": "Add todo for integrating shariff."
},
{
"from": "human",
"value": "export default class Home {\n\n render() {\n\n return (\n <footer className=\"pure-u-2-3 center\">\n <ul>\n <li>\n <div className=\"shariff\" data-theme=\"grey\"\n... | javascript | chosen |
[
{
"from": "system",
"value": "Remove complex pluralisation as WP API does not do this (it only adds an 's');\n"
},
{
"from": "human",
"value": "import humps from 'humps';\n\nimport ContentTypes from './constants/ContentTypes';\n\nconst contentTypeNames = Object.keys(ContentTypes)\n .map((name) ... | javascript | chosen |
[
{
"from": "system",
"value": "Remove profile header event handler upon UserShow removal\n"
},
{
"from": "human",
"value": "Slipmat.Views.UserShow = Backbone.CompositeView.extend({\n\n tagName: \"main\",\n className: \"group\",\n template: JST[\"users/show\"],\n\n initialize: function (option... | javascript | chosen |
[
{
"from": "system",
"value": "Validate if user has already sigin\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport ReactDOM from 'react-dom';\nimport { Provider } from 'react-redux';\nimport { createStore, applyMiddleware, compose } from 'redux';\nimport ReduxThunk from 'redu... | javascript | chosen |
[
{
"from": "system",
"value": "Add peek() to Iterator lib util\n"
},
{
"from": "human",
"value": "/* Part of MOFO Wallet project. */\nfunction Iterator(array) {\n this.cursor = 0;\n this.length = array.length;\n this.array = array;\n}\nIterator.prototype = {\n hasMore: function () {\n ret... | javascript | chosen |
[
{
"from": "system",
"value": "Stop sub totals being appended\n"
},
{
"from": "human",
"value": "(function () {\n 'use strict';\n\n moj.Modules.SubTotal = {\n el: '.js-SubTotal',\n\n init: function () {\n _.bindAll(this, 'render', 'showSummary', 'calculate');\n this.cacheEls();\... | javascript | chosen |
[
{
"from": "system",
"value": "Set development log level to 'debug'\n"
},
{
"from": "human",
"value": "var winston = require('winston')\n, common = require('./common')\n\nvar loggers = new winston.Container({});\n\nvar getLogger = function(name){\n\n\t// The `loggers` collection's `get` method... | javascript | chosen |
[
{
"from": "system",
"value": "Fix dependency regex in logTasks\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar archy = require('archy');\nvar chalk = require('chalk');\nvar gutil = require('gulp-util');\n\nfunction logTasks(tree, getDescription) {\n var padding = 0;\n archy(tree)\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix `globals` label for jshint\n\nin default blueprint\n"
},
{
"from": "human",
"value": "/*jshint node:true*/\nmodule.exports = {\n description: 'Adds necessary packages to application',\n\n // locals: function(options) {\n // // Return custom template variabl... | javascript | chosen |
[
{
"from": "system",
"value": "Change input field to blank after click add quiz\n"
},
{
"from": "human",
"value": "import React, { Component } from 'react'\nimport { createQuiz } from '../../services/firebase/createQuiz'\n\nexport class AddQuiz extends Component {\n constructor() {\n super();... | javascript | chosen |
[
{
"from": "system",
"value": "Set animation-duration to 0 when taking snapshots\n\nWhen we added some styles and JS to disable jQuery animations and CSS\ntransitions, we had forgotten about CSS animations. This commit adds\nsome styles to the page as it is snapshotted to attempt to disable CSS\nanimations b... | javascript | chosen |
[
{
"from": "system",
"value": "Include debugger state actions in action creator idx\n"
},
{
"from": "human",
"value": "'use babel';\nimport BreakpointActions from './breakpointActions';\n\nexport { BreakpointActions };\n"
},
{
"from": "gpt",
"value": "'use babel';\n\n// Action Creator... | javascript | chosen |
[
{
"from": "system",
"value": "Fix a bug with decomposeMails\n"
},
{
"from": "human",
"value": "\"use strict\";\n\n/**\n * @param mailHeader {String} The content of a mail header\n * @return {Object} A correctly parsed mail with name and address keys\n */\nmodule.exports.decomposeMails = function... | javascript | chosen |
[
{
"from": "system",
"value": "ADD : app_root global variable\n"
},
{
"from": "human",
"value": "var app = require('app');\nvar BrowserWindow = require('browser-window');\nvar ipc = require('ipc');\nglobal.storage = require(__dirname+'/lib/storage/storage');\nglobal.i18n = require(__dirname+'/lib... | javascript | chosen |
[
{
"from": "system",
"value": "Add button for facebook signin\n"
},
{
"from": "human",
"value": "import React, { Component } from 'react';\nimport { FacebookLogin } from 'react-facebook-login-component';\nimport axios from 'axios';\n\nexport class SignIn extends Component {\n constructor(props, ... | javascript | chosen |
[
{
"from": "system",
"value": "Remove waypoints from Data; should be kept internal to Path.\n"
},
{
"from": "human",
"value": "var Data = {\n\theaders: [],\t// Title of each column of data received\n\tstate: {},\t\t// Current flight state\n\thistory: [],\t// All past flight states\n\tlocalWaypoin... | javascript | chosen |
[
{
"from": "system",
"value": "fix: Send access token as a header instead of querystring parameter\n"
},
{
"from": "human",
"value": "import qs from 'querystring'\nimport version from '../version'\n\n/**\n * Create pre configured axios instance\n * @private\n * @param {Object} axios - Axios libra... | javascript | chosen |
[
{
"from": "system",
"value": "Configure BrowserStack testing on IE 11 and Edge\n"
},
{
"from": "human",
"value": "var baseKarma = require('./base-karma')\n\nmodule.exports = function(config) {\n\n var baseConfig = baseKarma(config);\n\n config.set(Object.assign(baseConfig, {\n browsers: [\n... | javascript | chosen |
[
{
"from": "system",
"value": "Fix addAlamidRoute helper to work with current middler version\n"
},
{
"from": "human",
"value": "\"use strict\";\n\nvar middler = require(\"middler\"),\n httpCrud = require(\"../shared/helpers/httpCrud.js\");\n\nvar router = {\n http: null,\n alamid:null\... | javascript | chosen |
[
{
"from": "system",
"value": "Fix jscs violations, happening on travis\n"
},
{
"from": "human",
"value": "module.exports = {\n extractId: function(href) {\n return href.replace(/^[a-z-]+:\\/+?[^\\/]+/, '' ) // Remove protocol & domain\n .replace(/[\\?\\&]livereload=\\w+/, '... | javascript | chosen |
[
{
"from": "system",
"value": "Change default time format for french (24-hour format)\n"
},
{
"from": "human",
"value": "// French\n\njQuery.extend( jQuery.fn.pickadate.defaults, {\n monthsFull: [ 'Janvier', 'Février', 'Mars', 'Avril', 'Mai', 'Juin', 'Juillet', 'Août', 'Septembre', 'Octobre', ... | javascript | chosen |
[
{
"from": "system",
"value": "Add o $scope para a chamada de $parse()(...). Habia esquecido, pode causar bugs [corrigido]."
},
{
"from": "human",
"value": "Module.directive('menuAction',['$parse','MenuService','$swipe',\n function($parse,MenuService,$swipe){\n return {\n restrict: 'A',\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Set crowd password field as a password input\n"
},
{
"from": "human",
"value": "Meteor.startup(function() {\n\tRocketChat.settings.addGroup('Atlassian Crowd', function() {\n\t\tconst enableQuery = {_id: 'CROWD_Enable', value: true};\n\t\tthis.add('CROWD_Enable', fal... | javascript | chosen |
[
{
"from": "system",
"value": "Check for config via NOT\n\nUntil yesterday, this was `if (config == null)`, which checks for a certain\nfalseyness of `config`. This was changed yesterday to `if (config === null)` which\nchecks if `config` is, in fact, `null`. The problem is that when calling a function\nwith... | javascript | chosen |
[
{
"from": "system",
"value": "Add effect to open nav hamburguer\n"
},
{
"from": "human",
"value": "/* SMOOTH SCROLL */\n$('a[href^=\"#\"]').on('click', function(event) {\n\tvar target = $(this.getAttribute('href'));\n\tif (target.length) {\n\t\tevent.preventDefault();\n\t\t$('html, body').stop()... | javascript | chosen |
[
{
"from": "system",
"value": "Clean leaguecontroller whitespace, fix incorrectly named methods\n"
},
{
"from": "human",
"value": "const { League } = require('../model/postgresDB');\n\nconst leagueController = {};\nleagueController.allLeagues = (req, res) = {\n\tLeague.findAll({})\n\t\t\t\t.then(... | javascript | chosen |
[
{
"from": "system",
"value": "Add French translation for 'submit' button\n"
},
{
"from": "human",
"value": "(function () {\n 'use strict';\n\n window.i18n = {\n /**\n * Error message after submission\n *\n * \"The account id provided is invalid\"\n */... | javascript | chosen |
[
{
"from": "system",
"value": "Allow for input steam from stdin\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\n\nrequire('coffee-script').register()\n\nvar fs = require('fs'),\n indentation = require('../lib/indentation'),\n buf, emblemFile, hbsFile, output;\n\nif (process.argv.len... | javascript | chosen |
[
{
"from": "system",
"value": "Fix license header getting removed"
},
{
"from": "human",
"value": "define(['angular'], function(angular) {\n\n var config = angular.module('app-config', []);\n config\n .constant('SERVICE_LOC', {\n 'sessionInfo' : 'json/sessionsample.json',\... | javascript | chosen |
[
{
"from": "system",
"value": "Add lazy loading also to pills\n"
},
{
"from": "human",
"value": "/**\n * Lazy-loaded tabs\n */\njQuery(function() {\n $('.nav.nav-tabs').on('click', '[data-url]', function(event) {\n var loader = $(this);\n\n if (loader.data('loaded'))\n return;\n\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Apply custom dark theming with a black background and white foreground\n"
},
{
"from": "human",
"value": "(function() {\n 'use strict';\n\n angular.module('app', [\n 'app.config',\n 'app.core',\n 'app.feature',\n 'ngMaterial'\n ]);\n\n angular.module... | javascript | chosen |
[
{
"from": "system",
"value": "Add parameter restriction from tempKey\n"
},
{
"from": "human",
"value": "import { applyMiddleware, compose, createStore } from 'redux'\nimport thunk from 'redux-thunk'\nimport { browserHistory } from 'react-router'\nimport makeRootReducer from './reducers'\nimport ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix quantity not updating properly\n"
},
{
"from": "human",
"value": "import {\n ADD_PRODUCT,\n REMOVE_PRODUCT,\n\n} from './../mutation-types'\n\nexport default {\n state: {\n products: [],\n total: 0,\n count: 0\n },\n mutations... | javascript | chosen |
[
{
"from": "system",
"value": "Fix e2e Exit Code Handling\n"
},
{
"from": "human",
"value": "/*\n * Copyright 2014 WebFilings, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a co... | javascript | chosen |
[
{
"from": "system",
"value": "CSRA-680: Refactor the apps rendered data\n"
},
{
"from": "human",
"value": "const express = require('express');\n\nconst webpackConfig = require('../../webpack.config');\nconst config = require('../config');\nconst { authenticationMiddleware } = require('../authent... | javascript | chosen |
[
{
"from": "system",
"value": "Test passes but lint is failing\n"
},
{
"from": "human",
"value": "define(function () {\n /**\n * Constructor wrapper that makes mixins and proxying easier\n * @param {Function} constructor\n */\n function PrimalClay(constructor) {\n // Create a set of mi... | javascript | chosen |
[
{
"from": "system",
"value": "Add numbers to reddit posts\n"
},
{
"from": "human",
"value": "var express = require('express');\nvar app = express();\nvar kanye = require(\"../../kanye\");\nvar request = require(\"request\");\n\n// The main app can hit this when an SMS is received\napp.get('/sms'... | javascript | chosen |
[
{
"from": "system",
"value": "Remove fetches on route load (components each handle this now)\n"
},
{
"from": "human",
"value": "import AccountViewContainer from './views/AccountViewContainer'\nimport { fetchRooms } from 'store/modules/rooms'\nimport { fetchPrefs } from 'store/modules/prefs'\n\n/... | javascript | chosen |
[
{
"from": "system",
"value": "Change to remove the new action-panel-error panel\n\nThis is a newly introduced panel that gets changed to when youtube tries to switch to a removed panel.\n"
},
{
"from": "human",
"value": "// ==UserScript==\n// @name Selfish Youtube\n// @version ... | javascript | chosen |
[
{
"from": "system",
"value": "Set empty object as default arg\n"
},
{
"from": "human",
"value": "/*\n * Simple middleware that saves res.locals as stringified JSON to\n * `res.locals.INITIAL_STATE`\n *\n * @module midwest/middleware/bootstrap\n */\n\n'use strict'\n\nconst _ = require('lodash')\n... | javascript | chosen |
[
{
"from": "system",
"value": "Update `RomoWordBoundaryFilter` component to not use jquery\n\nThis updates the `RomoWordBoundaryFilter` component to not use\njquery. This is part of the effort to no longer require jquery to\nuse Romo. This removes all of the jquery usage within the\n`RomoWordBoundaryFilter`.... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"refactor: use fetch to prefetch url\"\n\nThis reverts commit e6f214d84a8546057af7bdc16424621a9249e8d8.\n"
},
{
"from": "human",
"value": "import { defineComponent } from 'vue'\nimport { RouterLink as VueRouterLink } from 'vue-router'\nimport { getPreloadPat... | javascript | chosen |
[
{
"from": "system",
"value": "Add server endpoint to update order via api\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst passport = require('passport');\nconst main = require('../app/controllers/main');\nconst api = require('../app/controllers/api');\nconst auth = require('../app/cont... | javascript | chosen |
[
{
"from": "system",
"value": "Fix copying icon in packager\n"
},
{
"from": "human",
"value": "const fs = require('fs-extra')\nconst path = require('path')\nconst { ROOT_PATH } = require('./constants')\n\nclass ReleaseAssets {\n\n /**\n * Copies the assets into the releases folders\n * @param ... | javascript | chosen |
[
{
"from": "system",
"value": "Update defineProperty for old IE\n"
},
{
"from": "human",
"value": "Object.defineProperty = function defineProperty(object, property, descriptor) {\n\t// handle object\n\tif (object === null || typeof object !== 'object') {\n\t\tthrow new TypeError('Object must be a... | javascript | chosen |
[
{
"from": "system",
"value": "Add missing article to DummyConfigResource docstring\n"
},
{
"from": "human",
"value": "var _ = require('lodash');\n\nvar resources = require('../dummy/resources');\n\nvar DummyResource = resources.DummyResource;\n\n\nvar DummyConfigResource = DummyResource.extend(f... | javascript | chosen |
[
{
"from": "system",
"value": "Disable actions logger when testing\n"
},
{
"from": "human",
"value": "/* eslint global-require: 0 */\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./configureStore.prod');\n} else {\n module.exports = require('./configureStore.dev');... | javascript | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.