conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Load minified version of TimelineJS3\n\nShaves another ~200kB off of the javascript we ship in production. If we're debugging issues inside of TimelineJS3, we aren't really working on our timeline anymore!\n"
},
{
"from": "human",
"value": "import 'index.scss';\nim... | javascript | chosen |
[
{
"from": "system",
"value": "Update to ensure plugin searches on full user input\n"
},
{
"from": "human",
"value": "'use strict';\nconst React = require('react');\nconst icon = require('./GitHub-Mark-64px.png');\nconst Preview = require('./preview');\n\nconst githubPlugin = ({term, display, act... | javascript | chosen |
[
{
"from": "system",
"value": "Add in state-based logic for switching between Alexa commands.\n"
},
{
"from": "human",
"value": "var Alexa = require('alexa-sdk');\n\nvar APP_ID = 'amzn1.ask.skill.85ae7ea2-b727-4d2a-9765-5c563a5ec379';\n\nvar SKILL_NAME = 'Snack Overflow';\nvar POSSIBLE_RECIPIES =... | javascript | chosen |
[
{
"from": "system",
"value": "FIX Increase counter before printing it\n"
},
{
"from": "human",
"value": "var http = require('http');\nvar util = require('./util');\nvar counter = 0;\nvar port = 1337;\n\nhttp.createServer(function (req, res) {\n var answer = util.helloWorld();\n res.writeHe... | javascript | chosen |
[
{
"from": "system",
"value": "Remove the task only once\n"
},
{
"from": "human",
"value": "define([\n\n 'Backbone',\n\n //Templates\n 'text!templates/project-page/closeGameTemplate.html'\n], function(\n\n Backbone,\n\n //Template\n closeGameTemplate\n){\n var GameController = Backbone.Vie... | javascript | chosen |
[
{
"from": "system",
"value": "Allow the upload function to acces not only formData, but also the raw files\n"
},
{
"from": "human",
"value": "import AddBlock from './addBlock';\n\nexport default function(config) {\n return function(e){\n const {props, selection, files, editorState, onC... | javascript | chosen |
[
{
"from": "system",
"value": "Add open source Flow declaration for Metro module\n\nSummary:\nFix Flow failure by adding a declaration to the Flow config used in open source. This did not get caught internally because we use a different Flow config.\n\nRelease Notes\n-------------\n[INTERNAL] [MINOR] [Flow] ... | javascript | chosen |
[
{
"from": "system",
"value": "Remove noisy & pointless comment\n"
},
{
"from": "human",
"value": "// source: \nvar FN_ARGS = /^function\\s*[^\\(]*\\(\\s*([^\\)]*)\\)/m;\nvar FN_ARG_SPLIT = /,/;\nvar FN_ARG = /^\\s*(_?)(\\S+?)\\1\\s*$/;\nvar STRIP_COMMENTS = /((\\/\\/.*$)|(\\/\\*[\\s\\S]*?\\*\\/)... | javascript | chosen |
[
{
"from": "system",
"value": "Implement use_env_variable in main app logic\n"
},
{
"from": "human",
"value": "const Sequelize = require('sequelize');\nconst env = process.env.NODE_ENV || 'development';\nconst config = require('../config/config.json')[env];\n\nconst sequelize = new Sequelize(conf... | javascript | chosen |
[
{
"from": "system",
"value": "Add service function to get all activity\n"
},
{
"from": "human",
"value": "angular\n .module('app')\n .factory('actionService', [\n '$http',\n '$resource',\n function($http, $resource) {\n \n var Action = $resource('/api/actions/:id',\n { ... | javascript | chosen |
[
{
"from": "system",
"value": "Update to use env port\n"
},
{
"from": "human",
"value": "var webpack = require('webpack');\nvar webpackDevMiddleware = require('webpack-dev-middleware');\nvar webpackHotMiddleware = require('webpack-hot-middleware');\nvar app = require('express')();\nvar server = r... | javascript | chosen |
[
{
"from": "system",
"value": "Define constructor and add generateFileModel\n"
},
{
"from": "human",
"value": "const chalk = require('chalk');\nconst jhipsterUtils = require('../utils');\n\nmodule.exports = class {\n addBlockContentToFile(fullPath, content, needleTag) {\n try {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Switch Array.indexOf to determine if event string exists\n"
},
{
"from": "human",
"value": "import MCStoreBus from './mcstorebus';\n\nexport const EVTYPE = {\n EVUPDATE: 'EVUPDATE',\n EVREMOVE: 'EVREMOVE',\n EVADD: 'EVADD'\n};\n\nconst _KNOWN_EVENTS = _.val... | javascript | chosen |
[
{
"from": "system",
"value": "Add support for observing attributes.\n"
},
{
"from": "human",
"value": "// Complete rewrite of adampietrasiak/jquery.initialize\n// @link https://github.com/adampietrasiak/jquery.initialize\n// @link https://github.com/dbezborodovrp/jquery.initialize\n;(function($)... | javascript | chosen |
[
{
"from": "system",
"value": "Fix GitHub artifact name on Windows\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\n\nconst fs = require('fs')\n\nfunction fixFile (file, bad, good) {\n if (fs.existsSync(file)) {\n console.log('Fixing ' + file + ' ...')\n fs.writeFileSync(file, fs.re... | javascript | chosen |
[
{
"from": "system",
"value": "Fix bug in command parser\n"
},
{
"from": "human",
"value": "define([], function() {\n var CommandParser = (function() {\n var parse = function(str, lookForQuotes) {\n var args = [];\n var readingPart = false;\n var part = '';\n\t for(v... | javascript | chosen |
[
{
"from": "system",
"value": "Add 'Friends of Chichester Harbour' to preview custom email\n"
},
{
"from": "human",
"value": "import React from 'react'\n\nexport default ({members, preview, props: { submit_custom_email, edit_custom }}) =>\n <div className='custom-email-preview'>\n <div clas... | javascript | chosen |
[
{
"from": "system",
"value": "Add .dmg and .sig to copied file extensions\n"
},
{
"from": "human",
"value": "'use strict';\n\nmodule.exports = function(grunt) {\n\n grunt.loadNpmTasks('grunt-contrib-copy');\n\n return {\n target: {\n files: [\n {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add npm install to grunt init\n"
},
{
"from": "human",
"value": "var Path = require('path');\n\nmodule.exports = function (grunt) {\n require('time-grunt')(grunt);\n require('jit-grunt')(grunt);\n\n grunt.initConfig({\n exec: {\n update_nimble_submodules:... | javascript | chosen |
[
{
"from": "system",
"value": ":bug: Allow null callback in DIsposable\n"
},
{
"from": "human",
"value": "class Disposable{\n constructor(callback){\n this.disposed = false\n this.callback = callback\n }\n dispose(){\n if(this.disposed) return\n this.callback()\n this.callback =... | javascript | chosen |
[
{
"from": "system",
"value": "Fix tests according to the defaults\n"
},
{
"from": "human",
"value": "var should = require(\"should\");\n\nvar rank = require(\"../index.js\").rank;\n\ndescribe(\"Rank calculation\", function() {\n\n var points = 72;\n\n var hours = 36;\n\n var gravity = 1... | javascript | chosen |
[
{
"from": "system",
"value": "Change cursor on rootToken as well\n"
},
{
"from": "human",
"value": "\"use strict\";\n\nangular.module('arethusa.core').directive('rootToken', [\n 'state',\n 'depTree',\n function(state, depTree) {\n return {\n restrict: 'A',\n scope: {},\n lin... | javascript | chosen |
[
{
"from": "system",
"value": "Increase timeout for changes to properly close\n"
},
{
"from": "human",
"value": "import test from 'tape'\nimport { connection } from '../config/rethinkdb'\n\nimport './server/helpers/config'\nimport './server/helpers/createStore'\nimport './server/helpers/renderApp... | javascript | chosen |
[
{
"from": "system",
"value": "Make default date older to allow pretty much any updates\n"
},
{
"from": "human",
"value": "import mongoose from 'mongoose';\nimport { Promise } from 'es6-promise';\nmongoose.Promise = Promise;\nimport findOrCreate from 'mongoose-findorcreate';\n\nconst Schema = mon... | javascript | chosen |
[
{
"from": "system",
"value": "Add getClosestFood function to world\n"
},
{
"from": "human",
"value": "/**\n World functions\n */\n\nimport _ from 'underscore';\n\nexport const create = () => {\n return {\n tripods: [],\n food: []\n };\n};\n\nexport const addTripod = (world, tripod) => ... | javascript | chosen |
[
{
"from": "system",
"value": "Add doc block for templateselect mixin"
},
{
"from": "human",
"value": "/**\n * Instance of the Bolt module.\n *\n * @namespace Bolt\n *\n * @mixes Bolt.actions\n * @mixes Bolt.activity\n * @mixes Bolt.app\n * @mixes Bolt.ckeditor\n * @mixes Bolt.conf\n * @mixes Bol... | javascript | chosen |
[
{
"from": "system",
"value": "Add paranthesis to function call\n"
},
{
"from": "human",
"value": "var GameController = require(\"./GameController\");\n\nexports.fire = function (req, res) {\n\n var player = req.body.username;\n var x = req.body.x;\n var y = req.body.y;\n\n GameController.fin... | javascript | chosen |
[
{
"from": "system",
"value": "Set the endpoint if the tunnel is not specified\n"
},
{
"from": "human",
"value": "/**\n * @package admiral\n * @author Andrew Munsell <andrew@wizardapps.net>\n * @copyright 2015 WizardApps\n */\n\nvar Fleetctl = require('fleetctl'),\n Promise = require('bluebird... | javascript | chosen |
[
{
"from": "system",
"value": "Use correct order of postcss plugins\n"
},
{
"from": "human",
"value": "/**\n * Module dependencies\n */\n\nvar autoprefixer = require('autoprefixer');\nvar postcss = require('postcss');\nvar atImport = require('postcss-import');\nvar calc = require('postcss-calc');... | javascript | chosen |
[
{
"from": "system",
"value": "Fix undefined error if sourcemaps option not defined"
},
{
"from": "human",
"value": "var StubGenerator = require('./stub-generator');\nvar CachingBrowserify = require('./caching-browserify');\nvar mergeTrees = require('broccoli-merge-trees');\n\nmodule.exports = {\... | javascript | chosen |
[
{
"from": "system",
"value": "Rename args variable to pairs for clarity\n"
},
{
"from": "human",
"value": "import hasCallback from 'has-callback';\nimport promisify from 'es6-promisify';\nimport yargsBuilder from 'yargs-builder';\n\nimport renamerArgsBuilder from './renamerArgsBuilder';\nimport ... | javascript | chosen |
[
{
"from": "system",
"value": "Change autocomplete plugin to search box plugin, it allows us to use the enter key\n"
},
{
"from": "human",
"value": "/**\n * The Searchbox module.\n *\n * @return searchbox class (extends Backbone.View).\n */\ndefine([\n 'underscore',\n 'backbone',\n 'handlebars... | javascript | chosen |
[
{
"from": "system",
"value": "Add missing strict mode directive\n"
},
{
"from": "human",
"value": "module.exports = require('./ServerlessOffline.js');\n\n// Serverless exits with code 1 when a promise rejection is unhandled. Not AWS.\n// Users can still use their own unhandledRejection event tho... | javascript | chosen |
[
{
"from": "system",
"value": "Raise error when plugin is not configured\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst url = require('url');\n\nmodule.exports = function(env, callback) {\n class CNAME extends env.plugins.Page {\n getFilename() {\n return 'CNAME';\n }\n\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Change export from Datepicker to DatePicker\n"
},
{
"from": "human",
"value": "export Icon from './components/base/icons/Icon';\n\nexport Alert from './components/base/containers/Alert';\nexport Drawer from './components/base/containers/Drawer';\nexport Fieldset fro... | javascript | chosen |
[
{
"from": "system",
"value": "Move lists generation outside Kanban\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport ReactDOM from 'react-dom';\nimport { AutoSizer } from 'react-virtualized';\n\nimport Kanban from './Kanban';\n\nimport Perf from 'react-addons-perf';\n\nimport... | javascript | chosen |
[
{
"from": "system",
"value": "Add idToken to graphql requests\n"
},
{
"from": "human",
"value": "import { GRAPHQL_URL } from 'constants';\n\nimport React from 'react';\nimport ReactDOM from 'react-dom';\n\nimport { Router, browserHistory } from 'react-router';\nimport { syncHistoryWithStore } fr... | javascript | chosen |
[
{
"from": "system",
"value": "Make pure, ditch fallback png option\n"
},
{
"from": "human",
"value": "import React, { Component, PropTypes } from 'react';\nimport SVGInjector from 'svg-injector';\n\nexport default class ReactSVG extends Component {\n\n static defaultProps = {\n evalScripts: ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix video jumping to fullscreen on iPhones\n"
},
{
"from": "human",
"value": "\nimport {Video} from '@thiagopnts/kaleidoscope';\nimport {ContainerPlugin, Mediator, Events} from 'clappr';\n\nexport default class Video360 extends ContainerPlugin {\n constructor(conta... | javascript | chosen |
[
{
"from": "system",
"value": "Change setSize() callee so that camera get new size too\n"
},
{
"from": "human",
"value": "\nimport {Video} from 'kaleidoscopejs';\nimport {ContainerPlugin, Mediator, Events} from 'clappr';\n\nexport default class Video360 extends ContainerPlugin {\n constructor(co... | javascript | chosen |
[
{
"from": "system",
"value": "Add eslint setting 'flowDir' to specify location of .flowconfig\n"
},
{
"from": "human",
"value": "import path from 'path';\nimport fs from 'fs';\nimport collect from './collect';\n\n\nlet runOnAllFiles;\n\nfunction hasFlowPragma(source) {\n return source\n .get... | javascript | chosen |
[
{
"from": "system",
"value": "Use a regular React component impl until hot reloading issues are resolved\n\nHot reloading a function component curently blows any state within it away\n"
},
{
"from": "human",
"value": "import '../vendor/gridforms.css'\n\nimport React, {cloneElement, Children, Pro... | javascript | chosen |
[
{
"from": "system",
"value": "chore(exports): Add a (default) export named cornerstoneWebImageLoader\n"
},
{
"from": "human",
"value": "import arrayBufferToImage from './arrayBufferToImage.js';\nimport createImage from './createImage.js';\nimport { loadImage, configure } from './loadImage.js';\n... | javascript | chosen |
[
{
"from": "system",
"value": "Store and StoreMap intern tests added\n"
},
{
"from": "human",
"value": "// Listing of all the infrastructure unit tests\ndefine([\n\t\"./Destroyable\",\n\t\"./register\",\n\t\"./Widget-attr\",\n\t\"./handlebars\",\n\t\"./Widget-lifecycle\",\n\t\"./Widget-placeAt\",... | javascript | chosen |
[
{
"from": "system",
"value": "Implement support for page() event tracking\n\nWe won't begin logging page() calls until we implement the client API\nendpoint. [Finishes #131391691]\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst _ = require('underscore');\nconst app = require('express')... | javascript | chosen |
[
{
"from": "system",
"value": "fix: Make sentry debug controllable with env variable\n\nDEBUG_SENTRY=true will enable it.\n"
},
{
"from": "human",
"value": "const { ApolloServer } = require('apollo-server-micro')\n\nconst { schema } = require('./schema')\nconst { createErrorFormatter, sentryIgnor... | javascript | chosen |
[
{
"from": "system",
"value": "Disable menu on tabs, accept drag and drop\n"
},
{
"from": "human",
"value": "define([\n \"less!src/stylesheets/main.less\"\n], function() {\n var manager = new codebox.tabs.Manager({\n draggable: false\n });\n manager.$el.addClass(\"component-pan... | javascript | chosen |
[
{
"from": "system",
"value": "US432: Fix unticking the box should reset to default\n\nFormer-commit-id: 5e70eb557d10e1f269e4d12b45e0276e1a5c5b92"
},
{
"from": "human",
"value": "function AutoFillTodaysDate(day, month, year) {\n\n\tvar dod_elm = document.getElementById(\"todaysDateOfDisposalLabel... | javascript | chosen |
[
{
"from": "system",
"value": "Test getComponentName() should throw when nothing passed in\n"
},
{
"from": "human",
"value": "import React, { Component } from 'react';\nimport getComponentName from '../getComponentName';\n\n/* eslint-disable */\nclass Foo extends Component {\n render() {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "[STABLE] Add improvised localstorage saving mechanism\n"
},
{
"from": "human",
"value": "import { compose, createStore } from 'redux';\nimport middleware from './middleware';\nimport reducers from './reducers';\n\nfunction configureStore() {\n return compose(middle... | javascript | chosen |
[
{
"from": "system",
"value": "Add comment for noNew utility\n"
},
{
"from": "human",
"value": "define(function () {\n \"use strict\";\n\n var noNew = function (Constructor) {\n return function () {\n var instance = Object.create(Constructor.prototype);\n Constr... | javascript | chosen |
[
{
"from": "system",
"value": "Move from Date to Number\n"
},
{
"from": "human",
"value": "var mongoose = require('mongoose');\nvar Assignment = new mongoose.Schema({\n due: {\n type: Date,\n required: true\n },\n description: {\n type: String\n },\n posted: {\n type: Number,\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add utility function that abstracts the request process\n"
},
{
"from": "human",
"value": "/**\n * @module utils\n */\nvar utils = module.exports = {};\n\n\n/**\n * Given a JSON string, convert it to its base64 representation.\n *\n * @method\n * @memberOf utils\n *... | javascript | chosen |
[
{
"from": "system",
"value": "Fix tile data for push command bug\n"
},
{
"from": "human",
"value": "var parser = require('./parser');\nvar Interpreter = require('./interpreter');\n\nfunction TileAction(tile, tileX, tileY, key, data, renderer, callback) {\n this.tile = tile;\n this.key = key;\n... | javascript | chosen |
[
{
"from": "system",
"value": "Add default setting for Webpack output.filename\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar assign = require('lodash').assign;\nvar utils = require('gulp-util');\nvar webpack = require('webpack');\nvar PluginError = utils.PluginError;\n\nvar defaults = {... | javascript | chosen |
[
{
"from": "system",
"value": "Fix voting notification returning undefined\n\ngetIssueText returns issue text not object.\n"
},
{
"from": "human",
"value": "import { call, takeLatest, select } from 'redux-saga/effects';\nimport { TOGGLE_NOTIFICATION } from 'common/actionTypes/userSettings';\nimpo... | javascript | chosen |
[
{
"from": "system",
"value": "Use node-liftoff to improve CLI mode.\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\n\n/* Gear task runner. Executes Gearfile using a tasks workflow.\n * See http://gearjs.org/#tasks.tasks\n *\n * Usage:\n * > gear\n */ \nvar gear = require('../index'),\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix the npm update utility.\n"
},
{
"from": "human",
"value": "var childProcess = require('child_process');\nvar fs = require('fs');\nvar path = require('path');\n\nfunction isMangarack(key) {\n return /^mangarack/.test(key);\n}\n\nfs.readdirSync(__dirname).forEa... | javascript | chosen |
[
{
"from": "system",
"value": "Add URL mock for Jest tests. Only supporting protocol attribute yet.\n"
},
{
"from": "human",
"value": "// jest-dom adds custom jest matchers for asserting on DOM nodes.\n// allows you to do things like:\n// expect(element).toHaveTextContent(/react/i)\n// learn more... | javascript | chosen |
[
{
"from": "system",
"value": "Add underscore.js to test require\n"
},
{
"from": "human",
"value": "// Karma configuration\n//\n// For all available config options and default values, see:\n// http://karma-runner.github.io/0.10/config/configuration-file.html\n\nmodule.exports = function (config) ... | javascript | chosen |
[
{
"from": "system",
"value": "Create lcov report so that it can be uploaded to Codeclimate\n"
},
{
"from": "human",
"value": "const path = require('path');\n\nmodule.exports = function(config) {\n config.set({\n basePath: '',\n frameworks: ['jasmine'],\n preprocessors: { 'src/testcepti... | javascript | chosen |
[
{
"from": "system",
"value": "Set singleRun setting to false\n"
},
{
"from": "human",
"value": "var webpackConfig = require(\"./webpack.config\");\nObject.assign(webpackConfig, {\n debug: true,\n devtool: \"inline-source-map\"\n});\n\nwebpackConfig.externals.push(\"react/lib/ExecutionEnvir... | javascript | chosen |
[
{
"from": "system",
"value": "Add test case for new npm/module-aware compiler\n"
},
{
"from": "human",
"value": "var browserRequire = require('../require')\n\nconsole.log(browserRequire.toString())\n\n"
},
{
"from": "gpt",
"value": "var compiler = require('../compiler')\n\ncompiler.c... | javascript | chosen |
[
{
"from": "system",
"value": "Fix the broken js spec that started failing when sub-attributes were properly grayed out.\n\nSigned-off-by: Josep M. Blanquer <843d9a062ab1c6792ebebca5589f22ce86ac85ce@gmail.com>"
},
{
"from": "human",
"value": "describe('attributeName filter', function() {\n var f... | javascript | chosen |
[
{
"from": "system",
"value": "feat(extend): Update extend to not carry over undefined values.\n"
},
{
"from": "human",
"value": "export function extend(obj) {\n var arg, i, k;\n\n for (i = 1; i < arguments.length; i++) {\n arg = arguments[i];\n\n for (k in arg) {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Update Offcanvas to use S selector\n"
},
{
"from": "human",
"value": ";(function ($, window, document, undefined) {\n 'use strict';\n\n Foundation.libs.offcanvas = {\n name : 'offcanvas',\n\n version : '5.0.3',\n\n settings : {},\n\n init : function (s... | javascript | chosen |
[
{
"from": "system",
"value": "Add 'today' to bulgarian locale\n"
},
{
"from": "human",
"value": "/**\r\n * Bulgarian translation for bootstrap-datepicker\r\n * Apostol Apostolov <apostol.s.apostolov@gmail.com>\r\n */\r\n;(function($){\r\n\t$.fn.datepicker.dates['bg'] = {\r\n\t\tdays: [\"ะะตะดะตะปั\"... | javascript | chosen |
[
{
"from": "system",
"value": "Remove link wrapper around drag source - Fixes drag-drop bug in FF\n\nhttps://github.com/gaearon/react-dnd/issues/120#issuecomment-81602875\n"
},
{
"from": "human",
"value": "import './index.css';\nimport React, { PropTypes } from 'react';\n\nimport HashLink from '.... | javascript | chosen |
[
{
"from": "system",
"value": "Change directive loginboxcontext for vertical aligne login blovk. Remove directive loginbox.\n\nโ saas-239\n"
},
{
"from": "human",
"value": "'use strict';\n\n(function() {\n\n angular.module('ncsaas')\n .directive('loginbox', function($window) {\n return {... | javascript | chosen |
[
{
"from": "system",
"value": "Update paths of land-use summaries\n"
},
{
"from": "human",
"value": "'use strict';\n\n/**\n * @ngdoc service\n * @name ausEnvApp.environment\n * @description\n * # environment\n * Service in the ausEnvApp.\n */\nangular.module('ausEnvApp')\n .service('environment'... | javascript | chosen |
[
{
"from": "system",
"value": "Add target members to ask review\n"
},
{
"from": "human",
"value": "// MRใฎassignee_nameใๆข็ฅใฎๅ ดๅใซใฏใใใฃใใใฏใผใฏใฎ้็ฅๅ
IDใ่จญๅฎใใพใใ\nexport default function(req, res, next) {\n if (req.objectKind === 'merge_request') {\n if (req.body.object_attributes.assignee_name === 'shiger... | javascript | chosen |
[
{
"from": "system",
"value": "Fix race condition in test\n\nRegistering an event with the shorthand syntax behaves like `.on` and not like\n`.once` so in this case, if more than one request *will be sent* by the \"New\nTab\" of Chrome then the Mocha's `done()` function gets called twice causing an\nerror.\n... | javascript | chosen |
[
{
"from": "system",
"value": "Fix creation of Auth instance and pass entryUUID to it.\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar method = require('../../waterlock-ldap-auth');\nvar ldap = method.ldap;\nvar connection = method.connection;\n\n/**\n * Login action\n */\nmodule.exports ... | javascript | chosen |
[
{
"from": "system",
"value": "Test still failing on TravisCI\n"
},
{
"from": "human",
"value": "//I hear you like to run node in your node, so I'm testing node using node\r\nvar spawn = require('spawn-cmd').spawn,\r\n testProcess = spawn('node ./src/index.js < ./tests/eval.js'),\r\n assert... | javascript | chosen |
[
{
"from": "system",
"value": "Add test for scale option.\n"
},
{
"from": "human",
"value": "QUnit.module(\"png\");\n\nQUnit.test(\"png-image-element format returns an image\", function(assert) {\n var done = assert.async();\n \n var image = Viz(\"digraph { a -> b; }\", { format: \"png-image-e... | javascript | chosen |
[
{
"from": "system",
"value": "Fix to collapse navbar on page reloads\n"
},
{
"from": "human",
"value": "/*!\n * Start Bootstrap - Agency Bootstrap Theme (http://startbootstrap.com)\n * Code licensed under the Apache License v2.0.\n * For details, see http://www.apache.org/licenses/LICENSE-2.0.\n... | javascript | chosen |
[
{
"from": "system",
"value": "Fix check for generator ipc response\n\nSince we're actually using an for..of loop it doesn't matter that there's a 'next()' function on the object. What really matters is a function for the iterator symbol."
},
{
"from": "human",
"value": "const { ipcMain } = requi... | javascript | chosen |
[
{
"from": "system",
"value": "Fix warning in console, to display ComposedComponent name, rather `Styles` name."
},
{
"from": "human",
"value": "/**\n * Isomorphic CSS style loader for Webpack\n *\n * Copyright ยฉ 2015 Kriasoft, LLC. All rights reserved.\n *\n * This source code is licensed under ... | javascript | chosen |
[
{
"from": "system",
"value": "Add temporary scroll animation function\n"
},
{
"from": "human",
"value": "$(function() {\n\n\t/* Vars */\n\n\tvar TIME = 500;\n\n\tvar pics = $('.ref-pic');\n\tvar refs = $('.ref-block');\n\n\n\t/* Handlers */\n\n\tvar refHandler = function(event) {\n\t\tvar $this ... | javascript | chosen |
[
{
"from": "system",
"value": "Add emoji handling to push notifications\n"
},
{
"from": "human",
"value": "'use strict'\n\n// Create a pushover instance\nconst pushover = new (require('pushover-notifications'))({\n user: process.env.PUSHOVER_USER,\n token: process.env.PUSHOVER_TOKEN\n})\n\n// L... | javascript | chosen |
[
{
"from": "system",
"value": "Update not found page to fix command request link.\n\nThe new command label seems to have changed recently. This commit fixes the broken link."
},
{
"from": "human",
"value": "//@flow\n\n/******************************************************************************... | javascript | chosen |
[
{
"from": "system",
"value": "Add function to play radar ping sound\n"
},
{
"from": "human",
"value": "var audio = new AudioContext || new webkitAudioContext;\n"
},
{
"from": "gpt",
"value": "var audio = new AudioContext || new webkitAudioContext;\n\nfunction playRadarPing() {\n var... | javascript | chosen |
[
{
"from": "system",
"value": "Add picture display after taken on mirror, need to set a timer for that\n"
},
{
"from": "human",
"value": "Module.register(\"recognizer\",{\n\n start() {\n this.display = false;\n this.image = \"\";\n console.log(\"Recognizer started\");\n this.sendSock... | javascript | chosen |
[
{
"from": "system",
"value": "[Dev] Put inspirational images on the bottom on xs devices\n"
},
{
"from": "human",
"value": "$(document).ready(() => {\n\n const restaurants = ['taste', 'variantti', 'kanttiini', 'blancco', 'factory']\n\n const days = [\n \t{name: \"Maanantai\"},\n \t{name: \"T... | javascript | chosen |
[
{
"from": "system",
"value": "Check file listing loads in E2E test.\n"
},
{
"from": "human",
"value": "var assert = require('assert');\n\ndescribe(\"Basic Test\", function(){\n it(\"Loads the basic demo page and sends values to server\", function(){\n browser.url('http://localhost:7888... | javascript | chosen |
[
{
"from": "system",
"value": "Add 'authenticated' policy to dashboard action.\n\nSigned-off-by: Max Fierke <0706025b2bbcec1ed8d64822f4eccd96314938d0@maxfierke.com>"
},
{
"from": "human",
"value": "/**\n * Policies are simply Express middleware functions which run before your controllers.\n * You... | javascript | chosen |
[
{
"from": "system",
"value": "Hide dirs on Windows only\n"
},
{
"from": "human",
"value": "import Promise from 'bluebird'\nimport childProcess from 'child_process'\n\nimport logger from '../logger'\n\nPromise.promisifyAll(childProcess)\n\nconst log = logger({\n component: 'FS'\n})\n\n// Hides a... | javascript | chosen |
[
{
"from": "system",
"value": "Simplify assertion from to.not.be.empty to to.exist\n"
},
{
"from": "human",
"value": "import {List} from 'immutable';\nimport {expect} from 'chai';\n\nimport {createPlayer} from '../src/core';\n\ndescribe('createPlayer', () => {\n it('sets name properly', ()... | javascript | chosen |
[
{
"from": "system",
"value": "Fix bug with sort albums\n"
},
{
"from": "human",
"value": "export default function(a, b) {\n const alast = a.lastOpened;\n const blast = b.lastOpened;\n if (alast < blast) {\n return 1;\n } else if (alast > blast) {\n return -1;\n }\n return 0;\n}\n"
... | javascript | chosen |
[
{
"from": "system",
"value": "Fix not being able to serve fonts and other assets using query string cache busters.\n"
},
{
"from": "human",
"value": "'use strict';\n\nimport config from '../config';\nimport url from 'url';\nimport browserSync from 'browser-sync';\nimport gulp ... | javascript | chosen |
[
{
"from": "system",
"value": "Add routing for each project\n"
},
{
"from": "human",
"value": "function routerConfig ($stateProvider, $urlRouterProvider) {\n 'ngInject';\n $stateProvider\n .state('home', {\n url: '/',\n templateUrl: 'app/main/main.html',\n controller: 'MainCon... | javascript | chosen |
[
{
"from": "system",
"value": "Fix for handling errors when calling Neft.render\n"
},
{
"from": "human",
"value": "const Renderer = require('./renderer')\nconst Document = require('./document')\nconst Element = require('./document/element')\n\nconst windowElement = new Element.Tag()\nwindowElemen... | javascript | chosen |
[
{
"from": "system",
"value": "Update creator type modal copy\n"
},
{
"from": "human",
"value": "import React from 'react'\nimport CreatorTypeContainer from '../../containers/CreatorTypeContainer'\nimport * as s from '../../styles/jso'\nimport { css, media } from '../../styles/jss'\n\nconst creat... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"Changed tests to 'dot-after' formatting\"\n\nThis reverts commit 9cd0e3cb0ea17ded5fa93c4471a9cad73b0b2f30.\n"
},
{
"from": "human",
"value": "var HashMap = require('..'),\n test = require('test-more')();\n\nvar hashmap = new HashMap();\n\ntest.\n\n ok... | javascript | chosen |
[
{
"from": "system",
"value": "Store models in restifier instance\n\nSigned-off-by: Ian Macalinao <b1c1d8736f20db3fb6c1c66bb1455ed43909f0d8@ian.pw>\n"
},
{
"from": "human",
"value": "\"use strict\";\n\nvar Model = require('./model');\n\nmodule.exports = new Restifier();\nmodule.exports.Restifier ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix duplicated home integration items\n"
},
{
"from": "human",
"value": " 'use strict';\n angular.module('copayApp.services').factory('homeIntegrationsService', function(configService, $log) {\n var root = {};\n var services = [];\n\n root.register = function(... | javascript | chosen |
[
{
"from": "system",
"value": "Fix bad import in api\n"
},
{
"from": "human",
"value": "\nimport EPSG21781 from '@geoblocks/sources/EPSG21781.js';\n\n/**\n * @type {string}\n */\nexport const themesUrl = 'https://geomapfish-demo-dc.camptocamp.com/2.4/themes?version=2&background=background';\n\n\n... | javascript | chosen |
[
{
"from": "system",
"value": "Use outlet to show repositories\n"
},
{
"from": "human",
"value": "require('dashboard/core');\nrequire('dashboard/github_data_source');\n\nDashboard.Router = Ember.Router.extend({\n root: Ember.Route.extend({\n index: Ember.Route.extend({\n route: '/',\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Make pagination dropdown into select2\n"
},
{
"from": "human",
"value": "$(document).ready(function() {\n $(\".per-page\").chosen({\n width: '70px',\n disable_search_threshold: 20,\n });\n\n $(\".per-page\").change(function () {\n location.href = add_par... | javascript | chosen |
[
{
"from": "system",
"value": "Fix JavaScript Interaction with Forms\n"
},
{
"from": "human",
"value": "$(document).ready( function () {\n $('#signup').click(function(event){\n event.preventDefault();\n $('#screen_block').show();\n $('#signup_modal').show();\n });\n\n $('#screen_block... | javascript | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.