conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Use more meaningful plugin name\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar toString = require('mdast-util-to-string');\nvar visit = require('unist-util-visit');\nvar slugs = require('github-slugger')();\n\nmodule.exports = attacher;\n\nfunction attacher... | javascript | chosen |
[
{
"from": "system",
"value": "Add log middleware and some jsdoc\n"
},
{
"from": "human",
"value": "function send(hjelm) {\n return hjelm.program.model =\n hjelm.program.update(hjelm.message, hjelm.program.model)\n}\n\nclass Hjelm {\n constructor(program) {\n this.program = program\n }\n... | javascript | chosen |
[
{
"from": "system",
"value": "Fix backslashes before rendering math\n"
},
{
"from": "human",
"value": "var katex = require(\"katex\");\nvar cheerio = require(\"cheerio\");\n\nmodule.exports = {\n book: {\n assets: \"./book\",\n js: []\n },\n hooks: {\n page: functio... | javascript | chosen |
[
{
"from": "system",
"value": "Add NODE_ENV to webpack using define plugin\n"
},
{
"from": "human",
"value": "// start webapck\nconst path = require('path');\nconst express = require('express');\nconst webpack = require('webpack');\nconst webpackMiddleware = require('webpack-dev-middleware');\nco... | javascript | chosen |
[
{
"from": "system",
"value": "Use local file for database\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst Database = require('nedb');\n// let db = new Database({ filename: '.resource/db.sqlite', autoload: true });\nlet db = new Database();\n\nclass Bookmarker {\n\n create(path, callba... | javascript | chosen |
[
{
"from": "system",
"value": "Support NetBSD via its Linux-compatible procfs.\n"
},
{
"from": "human",
"value": "var os = require('os')\nvar stats = require('./lib/stats')\n\nvar wrapper = function(stat_type) {\n\n return function(pid, options, cb) {\n\n if(typeof options == 'function') {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix default theme if none specified\n"
},
{
"from": "human",
"value": "/* jshint node: true */\n'use strict';\n\nmodule.exports = {\n name: 'ember-cli-toggle',\n\n included: function(app) {\n app.import('vendor/ember-cli-toggle/base.css');\n\n // Use configu... | javascript | chosen |
[
{
"from": "system",
"value": "Update for plug-in : GitHub\n"
},
{
"from": "human",
"value": "var hoverZoomPlugins = hoverZoomPlugins || [];\nhoverZoomPlugins.push({\n name:'GitHub',\n prepareImgLinks:function (callback) {\n var res = [];\n $('a > img[data-canonical-src]').ea... | javascript | chosen |
[
{
"from": "system",
"value": "Use more intuitive permission description\n"
},
{
"from": "human",
"value": "import { extend } from 'flarum/extend';\nimport PermissionGrid from 'flarum/components/PermissionGrid';\n\nexport default function() {\n extend(PermissionGrid.prototype, 'moderateItems', i... | javascript | chosen |
[
{
"from": "system",
"value": "Store PNG snapshots phantomjs script adapted\n"
},
{
"from": "human",
"value": "var page = require('webpage').create(),\n system = require('system'),\n address, outpng;\n\nif (system.args.length !== 3) {\n console.log('Usage: phantomjs storepngsnapshot.js <some U... | javascript | chosen |
[
{
"from": "system",
"value": "Make live search respond more directly\n"
},
{
"from": "human",
"value": "$(document).ready(function(){\n $('.observable').on('change',\n function(evt) {\n var $field = $(evt.target);\n var url = $field.data('url');\n var target = $field.d... | javascript | chosen |
[
{
"from": "system",
"value": "Make listeners to show & hide description more consistent\n"
},
{
"from": "human",
"value": "// Place all the behaviors and hooks related to the matching controller here.\n// All this logic will automatically be available in application.js.\n// You can use CoffeeScr... | javascript | chosen |
[
{
"from": "system",
"value": "Change way to load cordova.js\n"
},
{
"from": "human",
"value": "/*globals Polymer */\n'use strict';\n\nPolymer(\n {\n is: 'cordova-core',\n\n properties: {\n /**\n * Return if cordova deviceready event has been fired.\n */\n ready: {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Change help text for MFMT\n"
},
{
"from": "human",
"value": "'use strict';\n\n// Third party dependencies\nvar moment = require('moment');\n\n// Local dependencies\nvar command = require('../lib/command');\nvar fs = require('../lib/fs');\n\n/**\n * Returns the ... | javascript | chosen |
[
{
"from": "system",
"value": "Use _.partial instead of _.curry for Ona.submit\n"
},
{
"from": "human",
"value": "var _ = require('lodash');\nvar vumigo = require('vumigo_v02');\nvar submit = require('./submit');\nvar Eventable = vumigo.events.Eventable;\n\n\nvar Ona = Eventable.extend(function(s... | javascript | chosen |
[
{
"from": "system",
"value": "Tweak wording in Salmon Run gear tweet"
},
{
"from": "human",
"value": "const TwitterPostBase = require('./TwitterPostBase');\nconst { captureSalmonRunGearScreenshot } = require('@/app/screenshots');\nconst { readData } = require('@/common/utilities');\nconst moment... | javascript | chosen |
[
{
"from": "system",
"value": "chore(website): Use new react 18 createRoot API\n"
},
{
"from": "human",
"value": "import 'process';\nimport React from 'react';\nimport ReactDOM from 'react-dom';\nimport App from './components/App';\n\nimport 'codemirror/lib/codemirror.css';\nimport './react-docge... | javascript | chosen |
[
{
"from": "system",
"value": "Enable GA on prod only\n"
},
{
"from": "human",
"value": "import ReactGA from 'react-ga'\n\nReactGA.initialize('UA-97498182-1')\n\nexport const logPageView = () => {\n\tReactGA.set({ page: window.location.pathname })\n\tReactGA.pageview(window.location.pathname)\n}\... | javascript | chosen |
[
{
"from": "system",
"value": "Remove email sending for now.\n"
},
{
"from": "human",
"value": "Accounts.onCreateUser(function(options, user) {\n //send user email\n sendWelcomeEmail(options.email, \"no-reply@cherish.com\", options.email);\n\n if(user.services.facebook) {\n options.profile.... | javascript | chosen |
[
{
"from": "system",
"value": "Add property to disable sidebar-toggle-button\n"
},
{
"from": "human",
"value": "(function(app) {\n 'use strict';\n\n var jCore = require('jcore');\n var helper = app.helper || require('../helper.js');\n var dom = app.dom || require('../dom.js');\n\n var Conten... | javascript | chosen |
[
{
"from": "system",
"value": "Add version and help commands\n"
},
{
"from": "human",
"value": "const Log = require('log')\nconst log = require('./log')\n\nconst test = require('./cli/test')\nconst config = require('./config')\n\nconst argv = require('minimist')(process.argv.slice(2))\nconst comm... | javascript | chosen |
[
{
"from": "system",
"value": "Use ceil() instead of floor() for midpoint calculation\n\nThis allows us to drop the if (start === length) kludge, while ensuring that\ntext.slice(0, end) is tested, fixing an off-by-one error that occurs when the\nloop ends with (end - start) == 1.\n"
},
{
"from": "hum... | javascript | chosen |
[
{
"from": "system",
"value": "LILY-2495: Set Autolinker option stripTrailingSlash to false so that trailing slashes are shown in urls.\n\nLILY-2495: Also prevent Autolinker from removing prefixes from an url.\n"
},
{
"from": "human",
"value": "var Autolinker = require('autolinker');\n\n/**\n * p... | javascript | chosen |
[
{
"from": "system",
"value": "Return latest 3 data items\n"
},
{
"from": "human",
"value": "var express = require('express');\nvar bodyParser = require('body-parser');\nvar app = express();\nvar jsonParser = bodyParser.json();\nvar request = require('request');\n\napp.use(bodyParser.json());\nap... | javascript | chosen |
[
{
"from": "system",
"value": "Fix Vite specific entry not working outside react-pdf workspace\n\nCloses #1148\n"
},
{
"from": "human",
"value": "import * as pdfjs from 'pdfjs-dist/build/pdf';\n// eslint-disable-next-line import/no-unresolved\nimport pdfjsWorker from 'pdfjs-dist/build/pdf.worker?... | javascript | chosen |
[
{
"from": "system",
"value": "Use a better exec from shelljs\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\n\"use strict\";\n\nvar chokidar = require('chokidar')\nvar exec = require('child_process').exec\n\nvar command = process.argv[2]\nvar target = process.argv[3]\n\nif (!command || !... | javascript | chosen |
[
{
"from": "system",
"value": ":new: Add visual responsiveness of underlines\n"
},
{
"from": "human",
"value": "'use babel'\n\n/* @flow */\n\nimport {Intentions$Suggestion$Show} from '../types'\n\nexport function create(intention: Intentions$Suggestion$Show, length: number): HTMLElement {\n cons... | javascript | chosen |
[
{
"from": "system",
"value": "Add `check` method to linters, that just checks without loading a file.\n"
},
{
"from": "human",
"value": "var fs = require('fs');\nvar EventEmitter = require('events').EventEmitter;\nvar busterPromise = require('buster-promise');\nvar checkedFile = require('./check... | javascript | chosen |
[
{
"from": "system",
"value": "Remove throw_error and add some useful function ;-)\n"
},
{
"from": "human",
"value": "function throw_error(s){\n\tconsole.log(\"ERROR: \"+s);\n\tthrow new Error(s);\n}\n\nmodule.exports.throw_error=throw_error;\n"
},
{
"from": "gpt",
"value": "function ... | javascript | chosen |
[
{
"from": "system",
"value": "Send state when dispatched 'JUMP_TO_STATE'\n"
},
{
"from": "human",
"value": "export default function createDevToolsStore(onDispatch) {\n const initialState = {\n actionsById: {},\n computedStates: [],\n currentStateIndex: -1,\n monitorState: {},\n n... | javascript | chosen |
[
{
"from": "system",
"value": "Make Facebook like button not take more width than available on mobile devices.\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport {Container} from 'semantic-ui-react';\nimport FacebookProvider, {Like} from 'react-facebook';\nimport Header from '.... | javascript | chosen |
[
{
"from": "system",
"value": "Update so that form isn't submitted on enter.\n"
},
{
"from": "human",
"value": "$(function(){\n console.log(JSON.stringify(scraperwiki.readSettings(), undefined, 2));\n console.log(6);\n\n var form_handler = new FormHandler();\n form_handler.setupLicenses();\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix: DELETE method is not working.\n"
},
{
"from": "human",
"value": "// This is a manifest file that'll be compiled into application.js, which will include all the files\n// listed below.\n//\n// Any JavaScript/Coffee file within this directory, lib/assets/javascri... | javascript | chosen |
[
{
"from": "system",
"value": "Use underscore on server in meetup-oauth\n\n`_` is being used in meetup_server.js, but not specified in the package\n"
},
{
"from": "human",
"value": "Package.describe({\n summary: 'Meetup OAuth flow',\n version: '1.0.1'\n});\n\nPackage.onUse(function (api) {\n a... | javascript | chosen |
[
{
"from": "system",
"value": "Improve example so that it writes nicely received object on success\n"
},
{
"from": "human",
"value": "import React, { Component } from 'react';\nimport TwitterLogin from 'react-twitter-auth/lib/react-twitter-auth-component.js';\n\nclass App extends Component {\n\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix race condition. Ensure mongo is connected before cleaning the db.\n"
},
{
"from": "human",
"value": "require('../test_helper');\n\nmongoose.connect('mongodb://127.0.0.1:27017/api_umbrella_test');\n\nrequire('../factories/api_users');\n\nvar redis = require('redi... | javascript | chosen |
[
{
"from": "system",
"value": "Set activeSpotify to true when logging in and redirect to login if it's not set\n"
},
{
"from": "human",
"value": "export function router($stateProvider, $urlRouterProvider) {\n $stateProvider\n .state('login', {\n url: '/login',\n templateUrl: 'templa... | javascript | chosen |
[
{
"from": "system",
"value": "Remove logger as not use\n"
},
{
"from": "human",
"value": "var log4js = require('log4js');\nvar logger = log4js.getLogger('BOT-LOG');\n\nfunction updateUserList(dyDB, table, userId, cb) {\n\n\tdyDB.putItem({\n\t\t\"TableName\": table,\n\t\t\"Item\": {\n\t\t\t\"user... | javascript | chosen |
[
{
"from": "system",
"value": "Add reducer state handler for adding a todo in a card\n"
},
{
"from": "human",
"value": "const todo = (state, action) => {\n switch (action.type) {\n case 'ADD_TODO':\n return {\n id: action.id,\n text: action.text,\n completed: false\n... | javascript | chosen |
[
{
"from": "system",
"value": "Allow for game to set position of score drawings\n"
},
{
"from": "human",
"value": "var Player;\n\nPlayer = function(options) {\n var paddle;\n this.canvasWidth = options.canvasWidth || 1280;\n this.canvasHeight = options.canvasHeight || 640;\n paddle = {\n x... | javascript | chosen |
[
{
"from": "system",
"value": "Fix bug created by previous commit - invalid fn.apply() arguments type\n"
},
{
"from": "human",
"value": "/**\n * Native\n * ------\n *\n * Extension\n * ---------\n * .defer() Defer the execution of a function\n * .curry() Curry the function... | javascript | chosen |
[
{
"from": "system",
"value": "Test sidebar reaction to unknown actions\n"
},
{
"from": "human",
"value": "import test from 'ava';\n\nimport sidebarReducer, { INITIAL_STATE } from '../src/reducers/sidebar';\nimport { toggleSidebar } from '../src/actions/sidebar';\n\ntest('When you toggle the sieb... | javascript | chosen |
[
{
"from": "system",
"value": "Use mdfind to find the name of Marked or Marked 2."
},
{
"from": "human",
"value": "/* globals atom:false */\n\n'use strict';\n\nexports.provideBuilder = function () {\n return {\n niceName: 'Markdown',\n\n isEligable: function () {\n var textEditor = at... | javascript | chosen |
[
{
"from": "system",
"value": "Add site footer to each documentation generator\n"
},
{
"from": "human",
"value": "var _ = require('lodash')\nvar fs = require('fs')\nvar gzip = require('gzip-size')\nvar filesize = require('filesize')\nvar cssstats = require('cssstats')\n\nvar module = require('tac... | javascript | chosen |
[
{
"from": "system",
"value": "Sort emissions in `froMEmissions` helper\n"
},
{
"from": "human",
"value": "import React from 'react'\nimport ObservableView from './view'\n\nconst isEmission = (obj) => (\n typeof obj === 'object' &&\n typeof obj.x === 'number' &&\n obj.x === obj.x &&\n obj.x >... | javascript | chosen |
[
{
"from": "system",
"value": "Support delta param in ControllerChangeEvent\n"
},
{
"from": "human",
"value": "import {Constants} from '../constants';\nimport {Utils} from '../utils.js';\n\n/**\n * Holds all data for a \"controller change\" MIDI event\n * @param {object} fields {controllerNumber:... | javascript | chosen |
[
{
"from": "system",
"value": "Return empty array if value is empty\n"
},
{
"from": "human",
"value": "import React, { Component } from 'react';\nimport { Creatable } from 'react-select';\nimport R from 'ramda';\n\nimport './TagSelect.css';\n\nclass TagSelect extends Component {\n state = {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "fix(AnnotationBuilder): Remove objective flag from the defaut set of field of an annotation\n"
},
{
"from": "human",
"value": "\nimport { generateUUID } from '../UUID';\nimport SelectionBuilder from '../SelectionBuilder';\n\n// --------------------------------------... | javascript | chosen |
[
{
"from": "system",
"value": "Add name of collection in backbone model\n"
},
{
"from": "human",
"value": "{% include \"model.tpl.js\" %}\n\n/**\n * File: collection.tpl\n * User: Martin Martimeo\n * Date: 29.04.13\n * Time: 19:18\n */\n\nvar {{ collection_name }}Collection = Backbone.Collection.... | javascript | chosen |
[
{
"from": "system",
"value": "Remove disabled of the submit button on initialize\n"
},
{
"from": "human",
"value": "function dform(formElement) {\n var eventEmitter = {\n on: function (name, handler) {\n this[name] = this[name] || [];\n this[name].push(handler);\n return this;... | javascript | chosen |
[
{
"from": "system",
"value": "Fix Assigning Themes To Inputs\n\nFix the assigning the themes to inputs because Unbound Input is the only\ninput that uses Higher Order Components and is the only input that has\noriginialClass Props inside of them for the theme to attach to.\n"
},
{
"from": "human",
... | javascript | chosen |
[
{
"from": "system",
"value": "Remove unnecessary file existence check.\n"
},
{
"from": "human",
"value": "/*\n * grunt-markdown\n * https://github.com/treasonx/grunt-markdown\n *\n * Copyright (c) 2012 James Morrin\n * Licensed under the MIT license.\n */\n\nmodule.exports = function(grunt) {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Use Shell instead of Node\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\nvar execSync = require('child_process').execSync;\nvar spawn = require('child_process').spawn;\nvar path = require('path');\nvar util = require('util');\nvar env = process.env;\n\nenv.... | javascript | chosen |
[
{
"from": "system",
"value": "Make sure tests are updated.\n"
},
{
"from": "human",
"value": "'use strict'\n\nvar test = require('tape')\n\ntest('NGN.ref', function (t) {\n var p = document.createElement('span')\n var hr = document.createElement('hr')\n // var sel = 'body > span:first-of-type... | javascript | chosen |
[
{
"from": "system",
"value": "Check for Windows as they do internally in Node\n"
},
{
"from": "human",
"value": "'use strict';\n\nmodule.exports = (process.env.OS === 'Windows_NT') ? '\\\\' : '/';\n"
},
{
"from": "gpt",
"value": "'use strict';\n\nmodule.exports = (process.platform ==... | javascript | chosen |
[
{
"from": "system",
"value": "Fix export of Rotary Encoder command object\n"
},
{
"from": "human",
"value": "var commandAndEvents = require('./command-and-events'),\n actions = require('../static/actions/rotary-encoder.json'),\n system = commandAndEvents.create(actions);... | javascript | chosen |
[
{
"from": "system",
"value": "Revert addition of Meteor.release to skel.\n"
},
{
"from": "human",
"value": "if (Meteor.isClient) {\n Template.hello.greeting = function () {\n if (Meteor.release)\n return \"Welcome to Meteor \" + Meteor.release + \"!\";\n return \"Welcome to Meteor!\"... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"Test if Ci fails on a broken e2e test.\"\n\nThis reverts commit 571d76a547a949dd18774d0b64be037a8ee09572.\n"
},
{
"from": "human",
"value": "var mocha = require('mocha')\nvar describe = mocha.describe\nvar it = mocha.it\nvar chai = require('chai')\nvar chai... | javascript | chosen |
[
{
"from": "system",
"value": "Fix portfolio tab load after browsing by pjax\n"
},
{
"from": "human",
"value": "var JPTradePage = (function() {\n\n var scriptUrl = 'https://binary-com.github.io/japanui/bundle' + (/www\\.binary\\.com/i.test(window.location.hostname) ? '' : '_beta') + '.js';\n va... | javascript | chosen |
[
{
"from": "system",
"value": "Configure webpack to handle runway-compiler being outside this directory\n"
},
{
"from": "human",
"value": "module.exports = [{\n entry: \"./web.js\",\n output: {\n path: __dirname,\n filename: \"bundle.js\"\n },\n devtool: 'eval-cheap-module-source-map',\... | javascript | chosen |
[
{
"from": "system",
"value": ":memo: Add link to the release post\n"
},
{
"from": "human",
"value": "/* @flow */\n\nimport coolTrim from 'cool-trim'\n\nexport default function greet() {\n return atom.notifications.addInfo('Welcome to Linter v2', {\n dismissable: true,\n description: coolT... | javascript | chosen |
[
{
"from": "system",
"value": "Append selected choice to log in web interface\n"
},
{
"from": "human",
"value": "'use strict';\n\n/* eslint-env browser */\n\nclass WebInterface\n{\n\tinit(playerOptions)\n\t{\n\t\tthis.playerOptions = playerOptions;\n\t}\n\n\t*showLine(speaker, line)\n\t{\n\t\tcon... | javascript | chosen |
[
{
"from": "system",
"value": "Fix unit tests after adding moon-only option and removing 'About'.\nNote to self: do something about About.\n"
},
{
"from": "human",
"value": "'use strict';\n\n/**\n * @ngdoc overview\n * @name moonPhasesApp\n * @description\n * # moonPhasesApp\n *\n * Main module o... | javascript | chosen |
[
{
"from": "system",
"value": "Add Google Analytics to each angular page viewed\n"
},
{
"from": "human",
"value": "'use strict';\n\n/**\n * Main module of the application.\n */\nangular\n .module('personalDataDashboardApp', [\n 'ui.router',\n 'ngAnimate',\n 'ngResource',\n... | javascript | chosen |
[
{
"from": "system",
"value": "Use a detail message in dialog\n"
},
{
"from": "human",
"value": "const electron = require('electron')\nconst app = electron.app\nconst dialog = electron.dialog\nconst globalShortcut = electron.globalShortcut\n\napp.on('ready', function () {\n globalShortcut.regist... | javascript | chosen |
[
{
"from": "system",
"value": "Remove workaround, the bluebird bug is fixed.\n\nhttps://github.com/petkaantonov/bluebird/commit/8a6a4f066db0ccb223c004d0\n365d6be5d7bd3736\n"
},
{
"from": "human",
"value": "require('babel-register');\nrequire('babel-polyfill');\n\nconst Bluebird = require('bluebir... | javascript | chosen |
[
{
"from": "system",
"value": "Switch $ to the correct format - {}"
},
{
"from": "human",
"value": "/**\n * Copyright 2015 Google Inc. All Rights Reserved.\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... | javascript | chosen |
[
{
"from": "system",
"value": "Fix article list API call"
},
{
"from": "human",
"value": "import { createDuck } from 'redux-duck'\nimport { fromJS } from 'immutable'\nimport gql from '../util/GraphQL'\n\nconst articleList = createDuck('articleList');\n\n// Action Types\n//\n\nconst LOAD = article... | javascript | chosen |
[
{
"from": "system",
"value": "Add operation name to MyProfileQuery (for logging)\n\nfbshipit-source-id: 7d48043\n"
},
{
"from": "human",
"value": "import gql from 'graphql-tag';\nimport { graphql } from 'react-apollo';\n\nimport Profile from '../components/Profile';\n\nconst MyProfileQuery = gql... | javascript | chosen |
[
{
"from": "system",
"value": "Update before/after to be proper pseudo-elements.\n"
},
{
"from": "human",
"value": "/**\n * Storybook main config.\n *\n * Site Kit by Google, Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use th... | javascript | chosen |
[
{
"from": "system",
"value": "Add more info to error logging when talking to S3\n"
},
{
"from": "human",
"value": "const s3 = require('./s3');\nconst config = require('./config');\nconst mailParser = require('mailparser').simpleParser;\n\nconst build = (emailBodyLocation) => {\n const bucket = ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix deprecation warning about useMongoClient\n"
},
{
"from": "human",
"value": "import Promise from 'bluebird';\nimport config from 'config';\nimport mongoose from 'mongoose';\n\nmongoose.Promise = Promise;\n\nif (process.env.NODE_ENV === 'test') {\n mongoose.con... | javascript | chosen |
[
{
"from": "system",
"value": "Remove disabling the ember-window-mock embroider compat adapter\n\nAs the new embroider release does not have that adapter anymore.\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst EmberAddon = require('ember-cli/lib/broccoli/ember-addon');\n\nmodule.export... | javascript | chosen |
[
{
"from": "system",
"value": "Make use of the events provided by chosen.\nMake it work when using the search field.\n"
},
{
"from": "human",
"value": "/*\n * Chosen jQuery plugin to add an image to the dropdown items.\n */\n(function($) {\n $.fn.chosenImage = function(options) {\n retu... | javascript | chosen |
[
{
"from": "system",
"value": "Use submit button in demo app capture screen, works in old browsers\n"
},
{
"from": "human",
"value": "/*\n *\n * Run with node examples/simple.js\n *\n * Go to http://localhost:8282 and have fun!\n *\n */\n\nvar busterServer = require(\"../lib/buster-server\");\nva... | javascript | chosen |
[
{
"from": "system",
"value": "Add function for searching items based on id\n"
},
{
"from": "human",
"value": "import LTT from 'list-to-tree';\nimport { orderBy } from 'lodash';\n\nexport function convertToTree (itemList) {\n // ------------------------------------\n // Combine navigation numbe... | javascript | chosen |
[
{
"from": "system",
"value": "Handle input and output text\n"
},
{
"from": "human",
"value": "var RtmClient = require('@slack/client').RtmClient;\nvar RTM_CLIENT_EVENTS = require('@slack/client').CLIENT_EVENTS.RTM;\nvar RTM_EVENTS = require('@slack/client').RTM_EVENTS;\nvar Conversation = requir... | javascript | chosen |
[
{
"from": "system",
"value": "Disable web security checks for e2e tests.\n"
},
{
"from": "human",
"value": "/**\n * Puppeteer config.\n *\n * Site Kit by Google, Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file exce... | javascript | chosen |
[
{
"from": "system",
"value": "Add promise version of query builder instead of callback function\n"
},
{
"from": "human",
"value": "var dbConfig = require('./config/db')\n//var knex = require('knex')(dbConfig.sqlite)\nvar knex = require('knex')(dbConfig.postgres)\nvar screen = require('./src/util... | javascript | chosen |
[
{
"from": "system",
"value": "Use PORT env var for Heroku\n"
},
{
"from": "human",
"value": "'use strict';\r\n\r\nlet config = require('./config');\r\nlet express = require('express');\r\nlet app = express();\r\n\r\nconsole.log('Starting.');\r\n\r\napp.listen(12345, () => {\r\n console.log('Ser... | javascript | chosen |
[
{
"from": "system",
"value": "Support user preview via mention in text\n"
},
{
"from": "human",
"value": "module.exports = function(tokens) {\n\treturn tokens.map(function(token) {\n\t\tvar type = token.type;\n\t\tvar content = token.content;\n\t\tswitch (type) {\n\t\t\tcase 'text':\n\t\t\t\tret... | javascript | chosen |
[
{
"from": "system",
"value": "Fix Add MW Deployment not working\n\nThe correct variable holding the reference to the file is `filePath`\ninstead of just `file`.\n(transferred from ManageIQ/manageiq@a6b7e937a1d155cc9fb426cfb6511588f3968aa8)\n"
},
{
"from": "human",
"value": "ManageIQ.angular.app.... | javascript | chosen |
[
{
"from": "system",
"value": "Fix pop-up player not closing the moment a status is deleted\n\nSigned-off-by: Claire <82b964c50e9d1d222e48cf5046e6484a966a7b07@sitedethib.com>\n"
},
{
"from": "human",
"value": "import { PICTURE_IN_PICTURE_DEPLOY, PICTURE_IN_PICTURE_REMOVE } from 'flavours/glitch/a... | javascript | chosen |
[
{
"from": "system",
"value": "Update icons div to h4\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport WeatherIcons from '../weather_icons/WeatherIcons';\n\n\nconst TenDay = ({ tenDayForecast }) => {\n if(!tenDayForecast) {\n return(\n <div></div>\n )\n }\n cons... | javascript | chosen |
[
{
"from": "system",
"value": "Change property name in PublicKey class"
},
{
"from": "human",
"value": "// telegram.link\n//\n// Copyright 2014 Enrico Stara 'enrico.stara@gmail.com'\n// Released under the MIT license\n// http://telegram.link\n\n// PublicKey class\n//\... | javascript | chosen |
[
{
"from": "system",
"value": "Fix bug with loading config files, finally\n"
},
{
"from": "human",
"value": "/**\n * IRC Bot\n *\n * @author\t\tMichael Owens\n * @website\t\thttp://www.michaelowens.nl\n * @copyright\tMichael Owens 2011\n */\nvar sys = require('util'),\n\tirc = require('./irc'),\n... | javascript | chosen |
[
{
"from": "system",
"value": "Add fail text on fail\n\nrefs #6\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\nconst Table = require('tty-table');\nconst cliSpinners = require('cli-spinners');\nconst ora = require('ora');\nconst dailyMenu = require('.');\nconst spinner = ora('Napi menük ... | javascript | chosen |
[
{
"from": "system",
"value": "Check if history.pushState is available to use pathname env\n"
},
{
"from": "human",
"value": "\"use strict\";\n/**\n * Routing environment.\n *\n * It specifies how routers read its state from DOM and synchronise it back.\n */\n\nvar ExecutionEnvironment = require... | javascript | chosen |
[
{
"from": "system",
"value": "Add the metadata mock on the model validation.\n"
},
{
"from": "human",
"value": "/*global describe, it*/\nrequire('../initialize-globals').load();\nvar Model = require('../../app/models/model').extend({\n validation: {\n firstName: {required: true}\n }\n});\nv... | javascript | chosen |
[
{
"from": "system",
"value": "Add query param with id to send message\n"
},
{
"from": "human",
"value": "'use strict';\n/* This declares the function that will send a message\n */\n\nfunction sendMessage(e) {\n e.preventDefault();\n const inputNode = e.target.message;\n const message = inputN... | javascript | chosen |
[
{
"from": "system",
"value": "Move to static file serving from ./public.\n\nAdd possibility to remove rules.\n"
},
{
"from": "human",
"value": "var express = require('express');\nvar fs = require('fs');\nvar parser = require('body-parser');\n\nvar app = express();\nvar jsonParser ... | javascript | chosen |
[
{
"from": "system",
"value": "Add Gygabytes filter unit test\n"
},
{
"from": "human",
"value": "(function () {\n 'use strict';\n describe('filters module', function () {\n var $filter;\n beforeEach(module('filters'));\n beforeEach(inject(function ($injector) {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Tests: Remove core event/alias and deprecated module dependencies\n"
},
{
"from": "human",
"value": "define([\n\t\"jquery\"\n], function( $ ) {\n\nvar exports = {};\n\nexports.forceScrollableWindow = function( appendTo ) {\n\n\t// The main testable area is 10000x100... | javascript | chosen |
[
{
"from": "system",
"value": "Test(script): Rewrite to new code rewrite"
},
{
"from": "human",
"value": "/*\nName: openkvk - test.js\nDescription: Test script for openkvk.js\nAuthor: Franklin van de Meent (https://frankl.in)\nSource & docs: https://github.com/fvdm/nodejs-op... | javascript | chosen |
[
{
"from": "system",
"value": "Disable graphql test until merge new implementation\n"
},
{
"from": "human",
"value": "module.exports = {\n name: 'API integration tests',\n testMatch: ['**/?(*.)+(spec|test).e2e.js'],\n testEnvironment: 'node',\n setupFilesAfterEnv: ['<rootDir>/test/jest2e2.set... | javascript | chosen |
[
{
"from": "system",
"value": "Set radial max amount to more reasonable 16.\n"
},
{
"from": "human",
"value": "/* Licensed under the MIT license:\n * http://www.opensource.org/licenses/mit-license.php\n * Copyright (c) 2010 Mr.doob, rhyolight, bebraw\n */\nfunction RadialMirror() {\n this.init... | javascript | chosen |
[
{
"from": "system",
"value": "Rework shared options to share values\n"
},
{
"from": "human",
"value": "module.exports = function shareOptionValues(commands) {\n let providedOptionsById = {}\n\n commands.forEach(({ options }) => {\n if (options) {\n options.forEach((option) => {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add CORS headers for HMR\n"
},
{
"from": "human",
"value": "const shell = require('shelljs');\n// const path = require('path')\n\nconst webpack = require('webpack');\nconst WebpackDevServer = require('webpack-dev-server');\nconst config = require('../config/webpack.... | javascript | chosen |
[
{
"from": "system",
"value": "Add scripts to generated package json\n"
},
{
"from": "human",
"value": "const fs = require('fs-extra');\nconst path = require('path');\nconst chalk = require('chalk');\n\nfunction copyTemplate(appDir, templatePath) {\n fs.copySync(templatePath, appDir);\n fs.remo... | javascript | chosen |
[
{
"from": "system",
"value": "Set up skeleton tests for Matrix2D"
},
{
"from": "human",
"value": "var Matrix2D = require('./../lib/Matrix2D');\n\nexports.newMatrix = function(beforeExit, assert) {\n var m = new Matrix2D();\n\n assert.equal(m.toString(), \"matrix(1,0,0,1,0,0)\");\n};\n"
}... | javascript | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.