conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Enforce HTTPS to load editor\n"
},
{
"from": "human",
"value": "const defaultScriptUrl = '//editor.unlayer.com/embed.js?2';\nconst callbacks = [];\nlet loaded = false;\n\nconst isScriptInjected = (scriptUrl) => {\n const scripts = document.querySelectorAll('script'... | javascript | chosen |
[
{
"from": "system",
"value": "Add server count for discord pw bot list\n"
},
{
"from": "human",
"value": "import Discord from 'discord.js';\nimport logger from 'winston';\nimport request from 'superagent';\nimport auth from '../auth.json';\nimport messageHandler from './messageHandler.js';\n\n//... | javascript | chosen |
[
{
"from": "system",
"value": "Add routes to add a mock user for testing\n"
},
{
"from": "human",
"value": "require('env2')\nconst Hapi = require('hapi')\n\n// server plugins\nconst Inert = require('inert')\n\n// server routes\nconst Dashboard = require('./routes/nhsViews/Dashboard.js')\nconst Re... | javascript | chosen |
[
{
"from": "system",
"value": "Drop `test-until` default timeout to under the mocha timeout\n"
},
{
"from": "human",
"value": "import {createRunner} from 'atom-mocha-test-runner';\nimport chai from 'chai';\nimport chaiAsPromised from 'chai-as-promised';\n\nimport until from 'test-until';\n\nchai.... | javascript | chosen |
[
{
"from": "system",
"value": "Add ResizerObserver shim for tests.\n"
},
{
"from": "human",
"value": "import i18n from 'i18next';\nimport { initReactI18next } from 'react-i18next';\n\nglobal.requestAnimationFrame = function(callback) {\n setTimeout(callback, 0);\n};\n\ntry {\n require('canv... | javascript | chosen |
[
{
"from": "system",
"value": "Sort out port log display\n"
},
{
"from": "human",
"value": "var express = require('express');\nvar nunjucks = require('express-nunjucks');\nvar app = express();\n\n// Application settings\napp.set('view engine', 'html');\napp.set('views', __dirname + '/views');\n\n... | javascript | chosen |
[
{
"from": "system",
"value": "Send 401 Unauthorized for all requests\n(Except Telegram webhooks)\n"
},
{
"from": "human",
"value": "var config = require('./config');\nvar http = require('http');\nvar bot = require('./modules/bot.js');\nvar tg = require('./modules/telegramAPI');\n\ntg.setupWebhoo... | javascript | chosen |
[
{
"from": "system",
"value": "Modify carousel interval to 7500ms\n"
},
{
"from": "human",
"value": "var main = function() {\n $(\".btn-projects\").click(function() {\n $('html,body').animate({\n scrollTop: $(\".proj\").offset().top\n },\n 'slow');\n... | javascript | chosen |
[
{
"from": "system",
"value": "Save button adds signature to end of message\n\nThe signature gets added to the end of the message when the save button is clicked.\n"
},
{
"from": "human",
"value": "function changeTitle () {\n\tvar subject = document.getElementById('mail_subject').value;\n\t\n\tif... | javascript | chosen |
[
{
"from": "system",
"value": "Change REST interface; added ping sensor"
},
{
"from": "human",
"value": "/*\n Date: 2016-05-13\n*/\n\nvar URLCold = 'http://192.168.240.1/arduino/analog/0';\nvar URLHot = ''; // 'http://192.168.240.1/arduino/analog/1';\nvar loopTime = 0;\nvar loopCount = 0... | javascript | chosen |
[
{
"from": "system",
"value": "Make the signup error page not look broken.\n\nThere was also a type value error happening on error text\n"
},
{
"from": "human",
"value": "/* @flow */\n/* eslint-disable react/prop-types */\n\nimport React, {Component} from 'react'\nimport {globalStyles} from '../.... | javascript | chosen |
[
{
"from": "system",
"value": "Improve readability with newlines between reports.\n"
},
{
"from": "human",
"value": "/*jslint forin: true */\n\nvar log = console.log;\n\nexports.report = function(file, lint) {\n log(file);\n\n var options = [], key, value,\n i, len, pad, e;\n\n fo... | javascript | chosen |
[
{
"from": "system",
"value": "Add colon to loggable URL pattern\n"
},
{
"from": "human",
"value": "export const PAUSE_STORAGE_KEY = 'is-logging-paused'\n\nexport function isLoggable({ url }) {\n // Just remember http(s) pages, ignoring data uris, newtab, ...\n const loggableUrlPattern = /^... | javascript | chosen |
[
{
"from": "system",
"value": "Refactor swapCase function to use custom compose function\n"
},
{
"from": "human",
"value": "import R from 'ramda';\nimport isUpperCase from '../src/is-upper-case.js';\n\n// a -> a\nconst swapCase = R.compose(\n R.join(''),\n R.map(\n R.either(\n R.both(is... | javascript | chosen |
[
{
"from": "system",
"value": "LinkedIn: Hide 'Next search result' box\n\nMinimally closes https://github.com/fureigh/unbias-me/issues/18.\n"
},
{
"from": "human",
"value": "// LinkedIn:\n$('title').remove();\n$('#name-container').hide();\n$('.profile-picture').hide();\n\n// Logged out:\n$('h1#na... | javascript | chosen |
[
{
"from": "system",
"value": "Verify modal class is not present in trade page before purchase button is clicked\n"
},
{
"from": "human",
"value": "module.exports = function(browser){\n return {\n trade: function(){\n var data = browser.globals.pages.ticktrade;\n v... | javascript | chosen |
[
{
"from": "system",
"value": "Remove weird hack, it's not fixed.\n"
},
{
"from": "human",
"value": "import 'dom4';\nimport Promise from 'bluebird';\nimport { polyfill as smoothscroll } from 'smoothscroll-polyfill/src/smoothscroll';\n\nsmoothscroll();\nwindow.Promise = Promise;\n"
},
{
"f... | javascript | chosen |
[
{
"from": "system",
"value": "Fix issues when response is 200 with no content.\n"
},
{
"from": "human",
"value": "import 'isomorphic-fetch'\nimport { call, select } from 'redux-saga/effects'\nimport { accessTokenSelector } from './selectors'\n\nexport function* fetchCredentials() {\n const acce... | javascript | chosen |
[
{
"from": "system",
"value": "Remove targets older than 5000 ticks\n"
},
{
"from": "human",
"value": "'use strict'\n\n/**\n * Scans all currently visible rooms and records useful information about them.\n */\n\nclass EmpireIntel extends kernel.process {\n constructor (...args) {\n super(...a... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"A better fix for the IE bug. Rather than introduce the secondary global and the eval, just refer to the actual global object (works in any javascript env).\"\n\nThis reverts commit d40619aca072134fe41369b161add2d12b1e0a02.\n"
},
{
"from": "human",
"value": ... | javascript | chosen |
[
{
"from": "system",
"value": "Optimize heavily called function `isSameNodeType()`\n"
},
{
"from": "human",
"value": "import { clone, toLowerCase, isFunction, isString, hasOwnProperty } from '../util';\nimport { isFunctionalComponent } from './functional-component';\nimport { getNodeType } from '... | javascript | chosen |
[
{
"from": "system",
"value": "Fix error when tiles aren't selected\n"
},
{
"from": "human",
"value": "(() => {\n const tools = [];\n\n DTile.Tool = class DTileTool {\n static register() {\n tools.push(new this());\n }\n\n static get allTools() { return tools... | javascript | chosen |
[
{
"from": "system",
"value": "Remove ' and \" from css values to embed.\n"
},
{
"from": "human",
"value": "\n/**\n * juice\n * Copyright(c) 2011 LearnBoost <dev@learnboost.com>\n * MIT Licensed\n */\n\nmodule.exports = exports = Property;\n\n/**\n * Module dependencies.\n */\n\nvar compare = req... | javascript | chosen |
[
{
"from": "system",
"value": "Remove assumption that spaces are always valid separators\n"
},
{
"from": "human",
"value": "var _ = require('lodash');\n\nexports.removeStopwords = function(text, options) {\n var defaults = {\n 'stopwords': require('./stopwords_en.js').words,\n 'inputSepara... | javascript | chosen |
[
{
"from": "system",
"value": "Make QUnit module declarations append the name of the library being used\n"
},
{
"from": "human",
"value": "steal('can/util/mvc.js')\n.then('funcunit/qunit', \n\t 'can/test/fixture.js')\n.then(function() {\n\t// Set the test timeout to five minutes\n\tQUnit.config.... | javascript | chosen |
[
{
"from": "system",
"value": "Add tests to main testacular test file\n\nrherlitz/GooEngine#52\n"
},
{
"from": "human",
"value": "require.config({\n paths: {\n \"goo\": \"src/goo\",\n \"test\": \"test\"\n },\n waitSeconds: 5\n });\nrequire([\n // Require does not allow ... | javascript | chosen |
[
{
"from": "system",
"value": "Make callbacks in resolvers optional\n"
},
{
"from": "human",
"value": "function resolveAuto(cb, value) {\n if (value && typeof value.then === 'function') {\n return value.then(cb)\n }\n\n return cb(value)\n}\n\nfunction resolveSync(cb, value) {\n if (value &... | javascript | chosen |
[
{
"from": "system",
"value": "Allow REPL to be cleared\n"
},
{
"from": "human",
"value": "#! /usr/bin/env node\n\nvar fs = require('fs')\n , repl = require('repl')\n , Tumblr = require('../index.js')\n , util = require('util')\n , _ = require('underscore'); // TODO: Figure out where to speci... | javascript | chosen |
[
{
"from": "system",
"value": "Fix tournament list test so it passes.\n"
},
{
"from": "human",
"value": "\"use strict\";\ndescribe(\"tichu-tournament-list module\", function() {\n beforeEach(module(\"tichu-tournament-list\"));\n\n describe(\"TournamentListController controller\", function() {\n... | javascript | chosen |
[
{
"from": "system",
"value": "Use arrow functions instead of `function` keyword"
},
{
"from": "human",
"value": "'use strict';\n\nconst debug = require('debug')('calendar:routes:month');\nconst express = require('express');\nconst common = require('./common');\nconst dayRouter = require('./day')... | javascript | chosen |
[
{
"from": "system",
"value": "Fix another bug which caused sorting not to work with new combined api results\n"
},
{
"from": "human",
"value": "var request = require('request');\nvar _und = require('underscore');\n\n/* Get orders listing. */\nexports.list = function(req, res){\n var results =... | javascript | chosen |
[
{
"from": "system",
"value": "Add Styled components to LeadCard\n"
},
{
"from": "human",
"value": "import React, { Component } from 'react'\nimport { connect } from 'react-redux'\nimport { fetchHouseholds, convertLead } from '../redux/modules/Households/actions'\nimport { fetchMeals } from '../r... | javascript | chosen |
[
{
"from": "system",
"value": "Fix handling of non-error reponses from Graphite\n"
},
{
"from": "human",
"value": "var Graphite = require('graphite');\nvar Measured = require('measured');\n\nvar reportInterval = 5000;\nvar graphiteHost = process.env.GRAPHITE_HOST || null;\nvar graphitePort = proc... | javascript | chosen |
[
{
"from": "system",
"value": "Configure karma so we can use enzyme\n"
},
{
"from": "human",
"value": "/**\n * Sagui configuration object\n */\nmodule.exports = {\n /**\n * Different application entry-points\n * Each page is a combination of a JavaScript file and a HTML file\n *\n * Exam... | javascript | chosen |
[
{
"from": "system",
"value": "Clean up how loading user page from / works\n"
},
{
"from": "human",
"value": "FlowRouter.route('/', {\n name: 'landing',\n action: function() {\n if (Meteor.userId()) {\n FlowRouter.go('user-home', {userId: Meteor.userId()});\n } else {\n var logi... | javascript | chosen |
[
{
"from": "system",
"value": "Fix path for 404 page\n"
},
{
"from": "human",
"value": "import Head from 'next/head';\nimport Link from 'next/link';\nimport { Container } from 'reactstrap';\n\nimport config from '@lib/config';\nimport style from './style.module.css';\n\n/**\n * 404 page\n */\nexp... | javascript | chosen |
[
{
"from": "system",
"value": "Change mark item schema to be oneOf group or non-group mark"
},
{
"from": "human",
"value": "var parseMark = require('./mark');\n\nfunction parseRootMark(model, spec, width, height) {\n return {\n type: \"group\",\n width: width,\n height: height,\n sca... | javascript | chosen |
[
{
"from": "system",
"value": "Add number of objects for 3D layers\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport PropTypes from 'prop-types';\nimport classNames from 'classnames';\nimport Legend from 'components/app/pulse/Legend';\nimport { Link } from 'routes';\n\nfunctio... | javascript | chosen |
[
{
"from": "system",
"value": "Check the screen size as well as UA\n\nUser Agent sniffing is bad, so check the screen width to make sure\nthat only users with screens larger than 800px see the user\nsatisfaction survey.\n"
},
{
"from": "human",
"value": "var GOVUK = GOVUK || {};\nGOVUK.UserSatisf... | javascript | chosen |
[
{
"from": "system",
"value": "Add failing test for \"cannot update concurrency mid-process\""
},
{
"from": "human",
"value": "var tape = require('tape')\nvar queue = require('../')\n\ntape('concurrent', function (t) {\n t.plan(4)\n\n var actual = []\n var q = queue()\n\n q.push(function (cb)... | javascript | chosen |
[
{
"from": "system",
"value": "Add missing test cases to mark a todo\n"
},
{
"from": "human",
"value": "const chai = require('chai');\nconst expect = chai.expect;\nconst xcode = require('xcode');\nconst createGroup = require('../../src/ios/createGroup');\nconst last = require('lodash').last;\n\nc... | javascript | chosen |
[
{
"from": "system",
"value": "Add item address to API response\n"
},
{
"from": "human",
"value": "import express from 'express';\nimport { addAction } from '../lib/database';\nimport CheckinStore from '../store/checkin-store.js';\n\nlet app = express();\n\napp.post('/', (req, res) => {\n addA... | javascript | chosen |
[
{
"from": "system",
"value": "Fix name for ubuntu lib to move\n"
},
{
"from": "human",
"value": "const { readdirSync, copyFileSync } = require('fs')\nconst { join } = require('path')\n\nconst PUBLIC_DIR = join(__dirname, '..', 'public')\nconst BINDINGS_BUILD_DIR = join(__dirname, '..', 'bindings... | javascript | chosen |
[
{
"from": "system",
"value": "Use test() instead of match()\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\n\n// Generate an HTML coverage report from a sourcemap-remapped JSON one.\n\nlet istanbul = require('istanbul');\n\nlet collector = new istanbul.Collector();\nlet reporter = new is... | javascript | chosen |
[
{
"from": "system",
"value": "Write lcov/text coverage report in addition to HTML\n\nThis should allow Coveralls to read the collected coverage data.\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\n\n// Generate an HTML coverage report from a sourcemap-remapped JSON one.\n\n'use strict';... | javascript | chosen |
[
{
"from": "system",
"value": "Create more meaning for the template variable\n"
},
{
"from": "human",
"value": "var replaceAll = function( oldToken ) {\n var configs = this;\n return {\n from: function( string ) {\n return {\n to: function( newToken ) {\n var _token;\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add PUT/POST handling to ClassyResource\n\nThis resolves #1.\n\nData can be passed into a resource method call by including it\nas the final parameter. For example, in this commit I have added\nsupport for the following:\n\nclassy.organizations.createCampaign(##, {});\nclassy.c... | javascript | chosen |
[
{
"from": "system",
"value": "Support config.mutationObserverInjection in newer Ember versions\n"
},
{
"from": "human",
"value": "/**\n * Simple initializer that implements the mutationObserverMixin \n * in all the Components. It uses a flag defined in the app \n * environment for it.\n */\n\nim... | javascript | chosen |
[
{
"from": "system",
"value": "Remove unnecessary argument from JS\n"
},
{
"from": "human",
"value": "(function() {\n 'use strict';\n\n var cop = new Mozilla.TrafficCop({\n id: 'experiment-interactive-editor',\n cookieExpires: 24 * 365, // 1 year\n variations: {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add some additional specs for demonstration purpose\n"
},
{
"from": "human",
"value": "import {List, Map, fromJS} from 'immutable';\nimport {expect} from 'chai';\n\nimport reducer from '../src/reducer';\n\ndescribe('reducer', () => {\n it('handles SET_STATE', () =>... | javascript | chosen |
[
{
"from": "system",
"value": "Add new route for profile\n"
},
{
"from": "human",
"value": "Router.route('/admin/insei/:insei', {\n template: 'inseisList'\n})\nRouter.route('/insei/:insei', {\n template: 'inseisList'\n})\n"
},
{
"from": "gpt",
"value": "Router.route('/admin/inseis/:... | javascript | chosen |
[
{
"from": "system",
"value": "Use correct icon pack name\n"
},
{
"from": "human",
"value": "/* eslint-env node */\n\n'use strict'\n\nconst {setSvgConfiguration} = require('ember-frost-core/utils/frost-icon-svg')\n\nmodule.exports = {\n name: 'ember-frost-navigation',\n\n included: function () ... | javascript | chosen |
[
{
"from": "system",
"value": "Update to load authors from file\n\n"
},
{
"from": "human",
"value": "const\n inquirer = require('inquirer');\n\nconst\n fakeAuthorLs = [\n {\n email: 'jane.doe@example.com',\n name: 'Jane Doe'\n },\n {\n a... | javascript | chosen |
[
{
"from": "system",
"value": "Fix apiKey not being assigned.\n"
},
{
"from": "human",
"value": "/**\n * index.js\n * Client entry point.\n *\n * @author Francis Brito <fr.br94@gmail.com>\n * @license MIT\n */\n'use strict';\n\n/**\n * Client\n * Provides methods to access PrintHouse's API.\n *\n... | javascript | chosen |
[
{
"from": "system",
"value": "Exclude addon-test-support from eslint node files\n\nThis PR adds `addon-test-support` folder to excluded files from eslint override for node files.\r\n\r\nFixes #7652"
},
{
"from": "human",
"value": "module.exports = {\n root: true,\n parserOptions: {\n ecmaVe... | javascript | chosen |
[
{
"from": "system",
"value": "Change initialization method from cssParser() to init()\nChange selectorFound event type to cssRuleFound\n"
},
{
"from": "human",
"value": "/*!\n * cssParser Wef plugin\n * Copyright (c) 2011 Pablo Escalada\n * MIT Licensed\n */\n\n//requires: wef.events, console, c... | javascript | chosen |
[
{
"from": "system",
"value": "Move sensitive data to env variables\n"
},
{
"from": "human",
"value": "var express = require('express');\nvar router = express.Router();\nvar nodemailer = require('nodemailer');\n\n// create reusable transporter object using the default SMTP transport\nvar smtp = p... | javascript | chosen |
[
{
"from": "system",
"value": "Update related variables when using search\n"
},
{
"from": "human",
"value": "'use strict';\n\nangular.module('sgApp')\n .directive('sgSection', ['$rootScope', '$window', '$timeout', function($rootScope, $window, $timeout) {\n return {\n replace: true,\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add filtering of elements with a special class support having multiple open sections\n"
},
{
"from": "human",
"value": "var addListExpandHandler = function() {\n $('body').on('click', '.a-list *[data-toggle=\"collapse\"]', function() {\n // This script runs befo... | javascript | chosen |
[
{
"from": "system",
"value": "Add debounceTimeout when applying changes to URL\n"
},
{
"from": "human",
"value": "import shallowEqual from 'fbjs/lib/shallowEqual';\nimport {restoreLocation} from './actions';\nimport {stringify} from 'qs';\n\n\nconst updated = callback => {\n let lastQuery;\n l... | javascript | chosen |
[
{
"from": "system",
"value": "Use Arg inside of query string filter.\n"
},
{
"from": "human",
"value": "/**\n * Parases a query string into a query object\n */\nDoppelganger.Filters.QueryStringFilter = new Filter('QueryString', function(request){\n\tvar search = request.search,\n\t\tsplitSearch ... | javascript | chosen |
[
{
"from": "system",
"value": "Update vert.x to vertx in mongo.\n"
},
{
"from": "human",
"value": "db.broadcast.remove();\ndb.broadcast.insert({ \"_id\": 1, \"text\": \"GVM version 0.9.3 \" });\ndb.broadcast.insert({ \"_id\": 2, \"text\": \"In this release: ... | javascript | chosen |
[
{
"from": "system",
"value": "[CHORE] Update relative path to static files.\n"
},
{
"from": "human",
"value": "var express = require('express')\nvar expressValidator = require('express-validator')\nvar passport = require('./passport.js');\n\nmodule.exports = (function(){\n function configure(ap... | javascript | chosen |
[
{
"from": "system",
"value": "Simplify GraphQL error logging function\n"
},
{
"from": "human",
"value": "// @flow\n\nimport { red } from 'chalk';\nimport R from 'ramda';\n\ntype Clog = typeof console.log;\ntype GraphQLError = { message: string };\n\n// FIXME: Improve naming\nexport function exit... | javascript | chosen |
[
{
"from": "system",
"value": "Remove unneeded momentjs inclusion in blueprint\n"
},
{
"from": "human",
"value": "/* globals module */\n\nmodule.exports = {\n afterInstall: function() {\n var self = this;\n\n return this.addBowerPackageToProject( 'bootstrap-datepicker' )\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix broken referral help page\n"
},
{
"from": "human",
"value": "const urls = require('../../../../../lib/urls')\n\nconst renderReferralHelp = ({ params: { referralId } }, res) => {\n const {\n company: { name: companyName, id },\n } = res.locals\n\n res\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add refresh for each reply\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.\nvar ready = function() {\n $(\".reply-button\").... | javascript | chosen |
[
{
"from": "system",
"value": "Add foursquare/swarm token and new cron job setting\n"
},
{
"from": "human",
"value": "module.exports = {\n authToken: process.env.AUTH_TOKEN || 'secret',\n env: process.env.NODE_ENV,\n flickr: {\n key: process.env.FLICKR_KEY || '123abc',\n secret: process.... | javascript | chosen |
[
{
"from": "system",
"value": "CrateTomlCopy: Convert properties to tracked properties\n"
},
{
"from": "human",
"value": "import Component from '@ember/component';\nimport { action } from '@ember/object';\nimport { later } from '@ember/runloop';\n\nexport default class CrateTomlCopy extends Compo... | javascript | chosen |
[
{
"from": "system",
"value": "Refresh after all files are uploaded\n\nCloses #52\n"
},
{
"from": "human",
"value": "window.addEventListener(\"load\", () => {\n const SUPPORTED_TYPES = [\"Files\", \"application/x-moz-file\"];\n\n let body = document.getElementsByTagName(\"body\")[0];\n\n body.... | javascript | chosen |
[
{
"from": "system",
"value": "Add todo to location reducer\n"
},
{
"from": "human",
"value": "const initialState = {\n city: '',\n id: '',\n boundary: '',\n};\n\nconst currentLocation = (state = initialState, action) => {\n switch (action.type) {\n case 'UPDATE_CURRENT_LOCATION':\n r... | javascript | chosen |
[
{
"from": "system",
"value": "Add more tests for Basic Authentication parser\n"
},
{
"from": "human",
"value": "\"use strict\";\n\nvar Server = require(\"../server\");\n\nexports.testMissingBasicHeader = function (test) {\n\tvar parser = Server.prototype._basicAuthentication({\n\t\t\"headers\": ... | javascript | chosen |
[
{
"from": "system",
"value": "Apply label in TextField Object.\n"
},
{
"from": "human",
"value": "/**\n * Main application class of \"QxMaterialDemo\".\n */\nqx.Class.define(\"qxmaterialdemo.Application\", {\n extend: qxm.Application,\n // extend: qxm.application.Standalone,\n members: ... | javascript | chosen |
[
{
"from": "system",
"value": "fix: Fix UMD build for node\n\nPrevents webpack from referencing `window` in the UMD build which was causing an error in node.\n"
},
{
"from": "human",
"value": "const path = require('path');\n\nmodule.exports = {\n entry: ['core-js/fn/array/from', path.resolve(__d... | javascript | chosen |
[
{
"from": "system",
"value": "Fix MySQL error on DigitalOcean by temp disabling requirement on session\n\nSigned-off-by: Derrick Mehaffy <d3de28f82f22c58e03cd756b0176b069ba189978@gmail.com>"
},
{
"from": "human",
"value": "'use strict';\n\nconst { Dialect } = require('../dialect');\nconst MysqlS... | javascript | chosen |
[
{
"from": "system",
"value": "Check if tooltip exists when layer changes\n"
},
{
"from": "human",
"value": "module.exports = function linkLayerTooltip (layerDef, visMap) {\n if (!layerDef.tooltipModel) return;\n\n function onChange (tooltipModel) {\n var attrs = JSON.parse(JSON.stringify(to... | javascript | chosen |
[
{
"from": "system",
"value": "Fix error message in validDbjsKind\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar isDbjsKind = require('./is-dbjs-kind');\n\nmodule.exports = function (value) {\n\tif (isDbjsKind(value)) return value;\n\tthrow new TypeError(value + \" is not dbjs object\");... | javascript | chosen |
[
{
"from": "system",
"value": "Return isFile true, used by rfile\n"
},
{
"from": "human",
"value": "var webfs = require('web-fs');\n\n// instantiate an instance, because web-fs doesn't, but fs does\nvar fs = webfs();\n\nfs.statSync = function(file) {\n return {\n isFile: function() { return f... | javascript | chosen |
[
{
"from": "system",
"value": "Create method find() for returning array of all emojis found in text\n"
},
{
"from": "human",
"value": "const enpoint = 'https://api.github.com/emojis';\nconst delimiterRegex = /(\\:[\\w\\-\\+]+\\:)/g;\nlet emojis = null;\n\nexport function load() {\n return new Pr... | javascript | chosen |
[
{
"from": "system",
"value": "Add test data to suppress warning.\n"
},
{
"from": "human",
"value": "/* eslint-env mocha */\nimport expect from 'expect'\nimport React from 'react'\nimport TestUtils from 'react-addons-test-utils'\nimport ReactDOM from 'react-dom'\nimport { IntlProvider } from 'rea... | javascript | chosen |
[
{
"from": "system",
"value": "Add modal dependency and show modal dialog on wish create with list of suitable offers returned from backend\n"
},
{
"from": "human",
"value": "'use strict';\n\nangular.module('workspaceApp').controller('MainCtrl', ['$scope', 'Wish', 'Offer' , function ($scope, Wish... | javascript | chosen |
[
{
"from": "system",
"value": "Set short timeout before reload following tab query as script content sometimes does not render without.\n"
},
{
"from": "human",
"value": "const filesInDirectory = dir => new Promise (resolve =>\n\n dir.createReader ().readEntries (entries =>\n\n Promise.... | javascript | chosen |
[
{
"from": "system",
"value": "Fix the base URLs to point at the static folder"
},
{
"from": "human",
"value": "// Change this constant to move the tests to your own server.\nvar CROSS_ORIGIN_BASE_URL = \"http://browserscope.spoofguard.org/security/\";\nvar SAME_ORIGIN_BASE_URL = \"http://www.bro... | javascript | chosen |
[
{
"from": "system",
"value": "Refactor to remove unnecessary Object.assign"
},
{
"from": "human",
"value": "import assert from 'assert';\n\nexport default mutation => {\n const { name, ...patch } = mutation;\n\n if (typeof name === 'string') {\n assert(name.length <= 32, 'Name must be 32 ch... | javascript | chosen |
[
{
"from": "system",
"value": "Fix bad recurse method name.\n"
},
{
"from": "human",
"value": "/**\n * Utility to determine is an argument value corresponds\n * to a known command name (alias).\n *\n * @param cmd The argument string.\n * @param commands The list of known commands.\n */\nmodul... | javascript | chosen |
[
{
"from": "system",
"value": "Update demo to use a custom action.\n"
},
{
"from": "human",
"value": "describe(\"demo page\",\r\n{\r\n given: loadPage(\"/demo/index.htm\"),\r\n when: [\r\n input({ \"#name\": \"John\" }),\r\n click(\"#hello\")\r\n ],\r\n then: {\r\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Set id on page frame and comment frame.\n"
},
{
"from": "human",
"value": "function receiveMessage(event) {\n\tvar commentPath,\n\t\tiframeURL;\n\n\t// get url of comment\n\tcommentPath = event.data.commentURL;\n\tiframeURL \t= \"https://news.ycombinator.com/\" + co... | javascript | chosen |
[
{
"from": "system",
"value": "Call remove() only for non-destroyed emptyViews in ensureEmptyViewRemoval\n"
},
{
"from": "human",
"value": "Flame.CollectionView = Ember.CollectionView.extend(Flame.LayoutSupport, Flame.EventManager, {\n classNames: ['flame-list-view'],\n\n init: function() ... | javascript | chosen |
[
{
"from": "system",
"value": "Add tests for exchange creation\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar assert = require('chai').assert;\nvar Trader = require('../../lib/trader.js');\nvar PostgresqlInterface = require('../../lib/protocol/db/postgresql_interface.js');\n\nvar db = 'p... | javascript | chosen |
[
{
"from": "system",
"value": "Fix up the change to the singleton some more\n"
},
{
"from": "human",
"value": "\"use strict\";\n\nconst MongoClient = require(\"mongodb\").MongoClient;\nconst config = require(\"./config\");\n\nlet singleton = null;\n\nfunction connect() {\n if (singleton) {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Put the default page in the default router???\n"
},
{
"from": "human",
"value": "/* jshint undef: true, unused: true */\n/* globals console:false, CloudOS:false */\n/* globals console, setTimeout, CloudOS, Fuse */\n\n(function($)\n{\n // Handlebar templates comp... | javascript | chosen |
[
{
"from": "system",
"value": "Add function within nested commandgroup to testcase\n"
},
{
"from": "human",
"value": "import expect from 'expect';\n\nimport isCommand from '../../../../src/cli/commands/helpers/isCommand';\n\ndescribe('cli', () => {\n describe('commands', () => {\n descr... | javascript | chosen |
[
{
"from": "system",
"value": "Correct path to util submodule.\n"
},
{
"from": "human",
"value": "\nvar _ = require('underscore')\n, proxy = require(__dirname + '/src/proxy')\n, callbackHandler = require(__dirname + '/src/callbackHandler')\n, core = require(__dirname + '/src/core')\n, hashcore = ... | javascript | chosen |
[
{
"from": "system",
"value": "Refactor tests to use enzyme\n\nTests use enzyme instead of TestUtils.\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport TestUtils from 'react/lib/ReactTestUtils';\nimport { Menu } from './menu';\n\ndescribe('Menu', () => {\n let instance;\n\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Update packaging script to include uninstall.php file.\n"
},
{
"from": "human",
"value": "/**\n * External dependencies\n */\nimport gulp from 'gulp';\nimport del from 'del';\n\ngulp.task( 'copy', () => {\n\tdel.sync( [ './release/**/*' ] );\n\n\tgulp.src(\n\t\t[\n\... | javascript | chosen |
[
{
"from": "system",
"value": "Remove default date in hmac - shouldnt be there\n"
},
{
"from": "human",
"value": "/**\n * Auth utils\n */\nvar bcrypt = require('bcrypt');\nvar crypto = require(\"crypto\");\n\nfunction generateAuthorization(appid, appsecret) {\n var d = new Date().toUTCString();\... | javascript | chosen |
[
{
"from": "system",
"value": "Change the destination of the js file\n"
},
{
"from": "human",
"value": "var gulp = require('gulp');\n uglify=require('gulp-uglify'),\n sass=require('sass')\n ;\n\n//Scripts task\n//Uglifies.\ngulp.task('scripts', function(){\n gulp.src('src/*.js')\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add cordova class to body when running in cordova\n"
},
{
"from": "human",
"value": "CenterScout.config(function($routeProvider) {\n $routeProvider.when('/', {\n controller: 'HomeController',\n templateUrl: 'views/home.html'\n });\n\n $routePr... | javascript | chosen |
[
{
"from": "system",
"value": "Fix weird glitchy thing again.\n"
},
{
"from": "human",
"value": "$(document).ready(function(){\n $('button#boot').click(function() {\n var l = Ladda.create( document.querySelector( '#boot' ) );\n l.start();\n $.get('/performActions.php?theAction=boot', fu... | javascript | chosen |
[
{
"from": "system",
"value": "Add under development warning message\n"
},
{
"from": "human",
"value": "import React, { Component } from 'react';\nimport HeadMetaTags from '../../components/headMetaTags';\n\nclass DiseasePage extends Component {\n render() {\n const title = this.props.params.... | javascript | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.