conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Migrate the basic example to the new API\n"
},
{
"from": "human",
"value": "const React = require('react');\nconst { Link } = require('react-router');\nconst { connect } = require('react-redux');\nconst { updatePath } = require('redux-simple-router');\n\nfunction Ap... | javascript | chosen |
[
{
"from": "system",
"value": "Support for completion callback with error\n"
},
{
"from": "human",
"value": "var exec = require('child_process').exec;\n\nvar self = module.exports;\n\nself.eject = function(id) {\n\t// are we running on mac?\n\tif (process.platform === 'darwin') {\n\t\t// setup op... | javascript | chosen |
[
{
"from": "system",
"value": "Test failed to read public folder"
},
{
"from": "human",
"value": "/*!\n * qwebs\n * Copyright(c) 2016 Benoît Claveau\n * MIT Licensed\n */\n\"use strict\";\n\nconst Qwebs = require(\"../../lib/qwebs\");\nconst AssetsLoader = require(\"../../lib/loaders/assets\");\n... | javascript | chosen |
[
{
"from": "system",
"value": "Fix an issue with prefixing animationend and transitionend\n\nSigned-off-by: Yannick Gagnon <d4b2c45cb5d34b718a9a7e841e45e36d4b2966bc@lemieuxbedard.com>\n"
},
{
"from": "human",
"value": "/*\n---\n\nname: Event.CSS3\n\ndescription: Provides CSS3 events.\n\nlicense: ... | javascript | chosen |
[
{
"from": "system",
"value": "Move event source to Github site feeds, rather than full (rate-limited) API\n"
},
{
"from": "human",
"value": "define([\"lib/reqwest\", \"lib/lodash\", \"lib/knockout\", \"githubEvent\"],\n function (reqwest, _, ko, GithubEvent) {\n var githubApi = {};\n\n va... | javascript | chosen |
[
{
"from": "system",
"value": "Use JS Objects for generating JSON\n\nReplace hand-coded JSON strings with JSON hashes (or Objects, I'm not\nsure what they are defined as at this point.)\n"
},
{
"from": "human",
"value": "var http = require('http')\nvar moment = require('moment')\nvar url = requir... | javascript | chosen |
[
{
"from": "system",
"value": "Add unit test for verifying window in then callback.\n"
},
{
"from": "human",
"value": "/* eslint-disable prefer-arrow-callback */\n/* eslint-env node, mocha, browser */\n\nconst assert = require('assert');\nconst test = require('../src/index').test;\nconst item = r... | javascript | chosen |
[
{
"from": "system",
"value": "Update gas costs for EC mult precompile\n"
},
{
"from": "human",
"value": "const utils = require('ethereumjs-util')\nconst BN = utils.BN\n\nconst bn128_module = require('rustbn.js')\nconst ecMul_precompile = bn128_module.cwrap('ec_mul', 'string', ['string'])\n\nmodu... | javascript | chosen |
[
{
"from": "system",
"value": "Format regex for QR page\n"
},
{
"from": "human",
"value": "import React from 'react'\nimport PropTypes from 'prop-types'\nimport { compose, withProps } from 'recompose'\nimport QRCode from 'qrcode.react'\nimport { withRouter } from 'next/router'\n\nimport { StaticL... | javascript | chosen |
[
{
"from": "system",
"value": "Add promiseAny until function to get Promise.any support without extending prototype"
},
{
"from": "human",
"value": "module.exports = {\n getViewPortInfo: function getViewPort () {\n var e = document.documentElement\n var g = document.getElementsByTagName('b... | javascript | chosen |
[
{
"from": "system",
"value": "feat(coverage): Disable linting when generating coverage\n"
},
{
"from": "human",
"value": "import path from 'path'\n\nexport default {\n name: 'eslint',\n configure ({ projectPath }) {\n return {\n eslint: {\n configFile: path.join(projectPath, '.e... | javascript | chosen |
[
{
"from": "system",
"value": "Update regular expression for registration code"
},
{
"from": "human",
"value": "/* globals Stripe */\nimport Ember from 'ember';\nvar $ = Ember.$;\n\nfunction registrationDataFromUrl(url) {\n var matches = url.match(/\\?code=(\\d+)/);\n\n if (matches && matches.l... | javascript | chosen |
[
{
"from": "system",
"value": "Fix test missing the container element\n"
},
{
"from": "human",
"value": "$(document).ready(function() {\n\t\n\tmodule(\"Canvas presentations\");\n\t\n\ttest(\"Check Canvas Presentations\", function() {\n\t\texpect(1);\n\t\tok(MITHGrid.Presentation.RaphSVG !== undef... | javascript | chosen |
[
{
"from": "system",
"value": "Remove this test case for now... still segfaulting for some crazy reason...\n"
},
{
"from": "human",
"value": "var $ = require('../')\n , assert = require('assert')\n\n$.import('Foundation')\n$.NSAutoreleasePool('alloc')('init')\n\n// Subclass 'NSObject', creating ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix code snippets in styleguide\n"
},
{
"from": "human",
"value": "/*jshint node:true*/\n/* global require, module */\nvar EmberAddon = require('ember-cli/lib/broccoli/ember-addon');\n\nmodule.exports = function(defaults) {\n var app = new EmberAddon(defaults, {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Use redux compose with devToolsEnhancer\n"
},
{
"from": "human",
"value": "// @flow\n/* eslint-disable arrow-body-style */\nimport { applyMiddleware, createStore } from 'redux'\nimport { createEpicMiddleware } from 'redux-observable'\nimport thunk from 'redux-thunk'... | javascript | chosen |
[
{
"from": "system",
"value": "Allow for Admin to Edit / Delete\n\nAllow for Admin to Edit / Delete articles. Allow allow for edit / delete of articles if the user was deleted."
},
{
"from": "human",
"value": "'use strict';\n\nvar articles = require('../controllers/articles');\n\n// Article autho... | javascript | chosen |
[
{
"from": "system",
"value": "Fix tooltip positions in tutorial pages"
},
{
"from": "human",
"value": "var currentTip = null;\nvar currentTipElement = null;\n\nfunction hideTip(evt, name, unique)\n{\n var el = document.getElementById(name);\n el.style.display = \"none\";\n currentTip = null;\... | javascript | chosen |
[
{
"from": "system",
"value": "Fix computed header property issue\n"
},
{
"from": "human",
"value": "import Mixin from '@ember/object/mixin';\nimport { inject } from '@ember/service';\nimport { get, computed } from '@ember/object';\nimport { isEmpty } from '@ember/utils';\nimport config from 'emb... | javascript | chosen |
[
{
"from": "system",
"value": "Update share one object for check type.\n"
},
{
"from": "human",
"value": "/**\n * util-lang.js - The minimal language enhancement\n */\n\nfunction isType(type) {\n return function(obj) {\n return {}.toString.call(obj) == \"[object \" + type + \"]\"\n }\n}\n\nv... | javascript | chosen |
[
{
"from": "system",
"value": "Test the move block fn\n"
},
{
"from": "human",
"value": "'use strict';\n\ndescribe('Controller: FormDropAreaCtrl', function () {\n\n // load the controller's module\n beforeEach(module('confRegistrationWebApp'));\n\n var FormDropAreaCtrl,\n scope;\n\n // Ini... | javascript | chosen |
[
{
"from": "system",
"value": "refactor: Set variable for time period base on value passed to component\n\n"
},
{
"from": "human",
"value": "import Ember from 'ember';\n\nexport default Ember.Component.extend({\n userSettings: Ember.inject.service(),\n\n init () {\n this._super();\n this.... | javascript | chosen |
[
{
"from": "system",
"value": "Add ability to pass in full details for person\n\n* now no need for ajax call in this case\n"
},
{
"from": "human",
"value": "import Ember from 'ember';\n\nexport default Ember.Route.extend({\n model: function() {\n var person_id = this.controllerFor('applicatio... | javascript | chosen |
[
{
"from": "system",
"value": "Swap over to using fateBus.\n"
},
{
"from": "human",
"value": "// Install the configuration interface and set default values\nrequire('configuration.js');\n\n// Use DIM styling overrides and our own custom styling\nrequire('beautification.js');\n\n// Stores weapons ... | javascript | chosen |
[
{
"from": "system",
"value": "Add more spaces to twitter js code. "
},
{
"from": "human",
"value": "'use strict';\n\n(function(app) {\n\n app.directive('twitterBtn', [function() {\n var link = function() {\n !function(d,s,id){\n var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.... | javascript | chosen |
[
{
"from": "system",
"value": "Remove eslint rules added to the eslint-config module\n\nSigned-off-by: Marco Ambrosini <3397c7e210a9d1588196cfebb12b2c6b133f6934@pm.me>\n"
},
{
"from": "human",
"value": "module.exports = {\n\textends: [\n\t\t'nextcloud'\n\t],\n\t/**\n\t * Allow jest syntax in the ... | javascript | chosen |
[
{
"from": "system",
"value": "Update import for the app with the correct ember-addon name\n"
},
{
"from": "human",
"value": "import Ember from 'ember';\nimport SortableItems from 'sortable-items/components/sortable-items';\n\nexport default SortableItems;\n"
},
{
"from": "gpt",
"valu... | javascript | chosen |
[
{
"from": "system",
"value": "Return new instance of object\n"
},
{
"from": "human",
"value": "'use strict';\nvar _ = require('lodash');\nvar convert = require('./convert.js');\n\nvar context = {\n getDefaults: getDefaults\n};\n\nfunction getDefaults(name, module) {\n var folderName = convert.... | javascript | chosen |
[
{
"from": "system",
"value": "Add exclude books cart page\n"
},
{
"from": "human",
"value": "// ==UserScript==\n// @name Rakuten Mail Magazine Unchecker\n// @namespace https://github.com/takamario/gm_script\n// @description Rakuten Mail Magazine Unchecker\n// @include ht... | javascript | chosen |
[
{
"from": "system",
"value": "Remove base svg from exported svg\n"
},
{
"from": "human",
"value": "import Ember from \"ember\";\n\nvar container = '<g transform=\"scale(%s)\">%h</g>';\n\nexport default Ember.Mixin.create({\n exportToSvg: function(){\n var svg = this.$(\"svg\").clone(),\n ... | javascript | chosen |
[
{
"from": "system",
"value": "refactor: Check if form is valid and then send save action to parent \n\n"
},
{
"from": "human",
"value": "import Ember from 'ember';\n// import $ from 'jquery';\n\nexport default Ember.Component.extend({\n expense: {\n sum: '',\n category: '',\n name: ''\... | javascript | chosen |
[
{
"from": "system",
"value": "Include testing workflow in default task.\n"
},
{
"from": "human",
"value": "'use strict';\n\nmodule.exports = function(grunt) {\n // Configuration.\n grunt.initConfig({\n jscs: {\n options: {\n config: '.jscsrc'\n }... | javascript | chosen |
[
{
"from": "system",
"value": "Add some comments for the vulcanize grunt task\n"
},
{
"from": "human",
"value": "var path = require('path');\n\nmodule.exports = function(grunt) {\n grunt.initConfig({\n 'pkg': grunt.file.readJSON('package.json'),\n 'dtsGenerator': {\n options: {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Correct messages printed during tests\n"
},
{
"from": "human",
"value": "'use strict';\n\nmodule.exports = function (grunt) {\n require('time-grunt')(grunt);\n\n grunt.initConfig({\n eslint: {\n all: {\n src: [\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Switch to using the master branch of my mastercoin-tools fork.\n"
},
{
"from": "human",
"value": "module.exports = function(grunt) {\n\tgrunt.loadNpmTasks('grunt-git');\n\tgrunt.loadNpmTasks('grunt-shell');\n\n\tgrunt.initConfig( {\n\t\tgitclone: {\n\t\t\tmastercoin... | javascript | chosen |
[
{
"from": "system",
"value": "Include watching config.json for changes\n"
},
{
"from": "human",
"value": "'use strict';\n\nmodule.exports = function (grunt) {\n grunt.initConfig({\n jshint: {\n options: {\n jshintrc: '.jshintrc'\n },\n gruntfile: {\n src: 'Gruntf... | javascript | chosen |
[
{
"from": "system",
"value": "Hide link to the Privacy Statement in the cookie notification\n"
},
{
"from": "human",
"value": "$(function handleSimpleIntegration() {\n\n cookieChoices.showCookieBar({\n linkHref: '#',\n cookieText: 'spine.io uses cookies to help operate the site ... | javascript | chosen |
[
{
"from": "system",
"value": "FT: Add check for sha256 hashed signature\n"
},
{
"from": "human",
"value": "import crypto from 'crypto';\n\nimport { accountsKeyedbyAccessKey } from './vault.json';\n\nexport function hashSignature(stringToSign, secretKey, algorithm) {\n const hmacObject = crypt... | javascript | chosen |
[
{
"from": "system",
"value": "Allow setting IP from command line argument\n"
},
{
"from": "human",
"value": "var TiVoRemote = require('./TiVoRemote');\nvar readline = require('readline');\n\nvar config = {\n ip: '192.168.1.100',\n port: 31339\n}\nvar remote = new TiVoRemote(config);\n\nvar rl ... | javascript | chosen |
[
{
"from": "system",
"value": "Make the code slightly clearer"
},
{
"from": "human",
"value": "import {ArrayExtensions} from './arrayextensions';\nimport {Letter} from './letter';\nimport {moveBefore, DIRECTION} from 'aurelia-dragula';\n\nexport class Welcome {\n\n constructor() {\n this.drag... | javascript | chosen |
[
{
"from": "system",
"value": "Update spec to take in account null fields in context model"
},
{
"from": "human",
"value": "define(['backbone', 'cilantro', 'text!/mock/fields.json'], function (Backbone, c, fieldsJSON) {\n var fields = new Backbone.Collection(JSON.parse(fieldsJSON));\n\n des... | javascript | chosen |
[
{
"from": "system",
"value": "Add fake Radiodan client objects\n"
},
{
"from": "human",
"value": "'use strict';\n\n//supress log messages\nprocess.env.LOG_LEVEL = 'fatal';\n\nvar chai = require('chai'),\n cap = require('chai-as-promised');\n\nglobal.sinon = require('sinon');\nglobal.f... | javascript | chosen |
[
{
"from": "system",
"value": "Remove the data-id attribute on HTML export\n"
},
{
"from": "human",
"value": "import DocumentConfigurator from './DocumentConfigurator'\nimport DocumentModel from './DocumentModel'\nimport DocumentJSONConverter from './DocumentJSONConverter'\nimport DocumentHTMLImp... | javascript | chosen |
[
{
"from": "system",
"value": "Add update to provider properties\n"
},
{
"from": "human",
"value": "import Realm from 'realm';\n\nexport class InsuranceProvider extends Realm.Object {}\n\nInsuranceProvider.schema = {\n name: 'InsuranceProvider',\n primaryKey: 'id',\n properties: {\n id: 'st... | javascript | chosen |
[
{
"from": "system",
"value": "Exit with an error when the deps-bundle script fails\n\nPreviously, if you ran the deps-bundle script and steal-tools reported an error, the script would still exit successfully and the next script would run (e.g. when building the site/docs). This would leave you with an out-o... | javascript | chosen |
[
{
"from": "system",
"value": "Reduce if to a modulo for changing logos\n\nThanks to @karolsw2 for pointing this out\n\nRef: #1\n"
},
{
"from": "human",
"value": "window.addEventListener(\"load\", function() {\n\tconst EXTRA_IMAGES = document.getElementsByClassName(\"alt-logo-img\");\n\tEXTRA_IMA... | javascript | chosen |
[
{
"from": "system",
"value": "Add super hero search data. Format the search output.\n"
},
{
"from": "human",
"value": "console.log(\"=================================\");\nconsole.log(\"Creating search index...\");\nconsole.log(\"=================================\");\n\n// Scan through all conte... | javascript | chosen |
[
{
"from": "system",
"value": "Add route param for location\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst router = require('express').Router();\nconst brewery = require('./breweryController');\n\nrouter.route('/')\n .get(brewery.get)\n .post(brewery.post);\n\nmodule.exports = router... | javascript | chosen |
[
{
"from": "system",
"value": "Refactor magnet URI link catch logic\n"
},
{
"from": "human",
"value": " \nmodule.exports = function (root, cb) {\n root.addEventListener('click', (ev) => {\n\n if (ev.altKey || ev.ctrlKey || ev.metaKey || ev.shiftKey || ev.defaultPrevented) {\n return... | javascript | chosen |
[
{
"from": "system",
"value": "Put sub-index immediately after limit on query\n"
},
{
"from": "human",
"value": "var r = require('rethinkdb');\n\n// Number of seconds after which Reddit will archive an article\n// (180 days): https://github.com/reddit/reddit/commit/b7b24d2e9fa06ba37ea78e0275dce86... | javascript | chosen |
[
{
"from": "system",
"value": "Fix parse refactor - this passed to the plugin manager must be less\n"
},
{
"from": "human",
"value": "var PromiseConstructor = typeof Promise === 'undefined' ? require('promise') : Promise;\n\nmodule.exports = function(environment, ParseTree, ImportManager) {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Move methods out of the constructor.\n"
},
{
"from": "human",
"value": "var util = require('util');\n\nvar sax = require('sax');\n\nvar TreeBuilder = require('./../treebuilder').TreeBuilder;\n\nfunction XMLParser(target) {\n var self = this;\n this.parser = sax.pa... | javascript | chosen |
[
{
"from": "system",
"value": "Fix test to use main unit test files standards\n\nThe main unit test file tested action creators against `reducer().status` instead of the full state. There seems to be inconsistencies in the payload for action creators which caused these tests to fail. I have updated the tests... | javascript | chosen |
[
{
"from": "system",
"value": "Add indentation fix on htmlbar loader.\n"
},
{
"from": "human",
"value": "var path = require('path')\nvar loaderUtils = require('loader-utils')\nvar HtmlbarsCompiler = require('ember-cli-htmlbars')\n\nvar DEFAULT_TEMPLATE_COMPILER = 'components-ember/ember-template-... | javascript | chosen |
[
{
"from": "system",
"value": "Add props to the components\n"
},
{
"from": "human",
"value": "var div = React.DOM.div;\nvar h1 = React.DOM.h1; \n\nvar MyTitle = React.createClass({\n render: function() {\n return (\n div(null, h1(null, this.props.title))\n )\n }\n})\n\nvar MyTitleFac... | javascript | chosen |
[
{
"from": "system",
"value": "Remove APP prefix from middleware\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar path = require('path');\n\nvar config = require('../config');\n\nmodule.exports = function (req, res, next) {\n var app = req.app,\n locales = app.get('locales'... | javascript | chosen |
[
{
"from": "system",
"value": "Add eta and time created to db schema\n"
},
{
"from": "human",
"value": "var mongoose = require('mongoose');\nvar Schema = mongoose.Schema;\n\nvar analysisSchema = new Schema({\n user_id: {type: Schema.Types.ObjectId, ref: 'User', required: true},\n analysis_n... | javascript | chosen |
[
{
"from": "system",
"value": "Add nodeName property to text nodes\n"
},
{
"from": "human",
"value": "module.exports = DOMText\n\nfunction DOMText(value, owner) {\n if (!(this instanceof DOMText)) {\n return new DOMText(value)\n }\n\n this.data = value || \"\"\n this.length = t... | javascript | chosen |
[
{
"from": "system",
"value": "Replace destructuring with regular property access\n"
},
{
"from": "human",
"value": "#! /usr/bin/env node\n'use strict';\n\nvar yarnOrNpm = require('../index');\n\n// Execute the command\ntry {\n const { status } = yarnOrNpm.spawn.sync(\n process.argv.slice(2),... | javascript | chosen |
[
{
"from": "system",
"value": "Make stringify's options parameter optional\n"
},
{
"from": "human",
"value": "class JsonFormatter {\n static stringify(object, options) {\n options = {\n space: options.prettify ? ' ' : null\n }\n return JSON.stringify(object, null, options.space)... | javascript | chosen |
[
{
"from": "system",
"value": "Use non-port url for otalk.im ws url\n"
},
{
"from": "human",
"value": "var parts = window.location.hash.slice(1).split('&');\n\nparts.forEach(function (value) {\n if (value.substr(0, 12) === \"access_token\") {\n var token = value.substr(13);\n $.a... | javascript | chosen |
[
{
"from": "system",
"value": "Update up to changes in d package\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar d = require('d/d')\n\n , defineProperty = Object.defineProperty;\n\nmodule.exports = function () {\n\tvar text;\n\tif (!this.parentNode) return;\n\tif (!this._domExtLocation) ... | javascript | chosen |
[
{
"from": "system",
"value": "Refactor the title into a getter method\n\n"
},
{
"from": "human",
"value": "import cuid from 'cuid';\nimport {database, auth} from '@/config/firebase';\n\nexport default function (post = {}) {\n\n // Properties\n this.id = post.id || cuid();\n this.title = post.... | javascript | chosen |
[
{
"from": "system",
"value": "Add example of faking a filter\n"
},
{
"from": "human",
"value": "describe(\"ReverseController\", function () {\n var fakeReverseFilter;\n\n // See: https://docs.angularjs.org/api/ng/provider/$filterProvider\n beforeEach(module(\"app.controllers\", function... | javascript | chosen |
[
{
"from": "system",
"value": "Add event to track host usage"
},
{
"from": "human",
"value": "(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;// noinspection CommaExpressionJS\r\n i[r]=i[r]||function(){\r\n (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();// noinspection Com... | javascript | chosen |
[
{
"from": "system",
"value": "Add support for embedded python\n"
},
{
"from": "human",
"value": "module.exports = {\n selector: ['.source.python'],\n id: 'aligner-python',\n config: {\n ':-alignment': {\n title: 'Padding for :',\n description: 'Pad left or right of the character'... | javascript | chosen |
[
{
"from": "system",
"value": "Add divider lines between functions.\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst Rx = require('rx');\nrequire('isomorphic-fetch');\n\nconst rxResponse = function (promiseResponse) {\n this._promiseResponse = promiseResponse;\n this.status = promiseRe... | javascript | chosen |
[
{
"from": "system",
"value": "Use 'Connector.onReady' function to emulate DOM update\n"
},
{
"from": "human",
"value": "'use strict';\n\n/* global Connector, Util */\n\nConnector.playerSelector = '#player';\n\nConnector.artistTrackSelector = '.player-current-title';\n\nConnector.getArtistTrack =... | javascript | chosen |
[
{
"from": "system",
"value": "Use correct method for broadCast\n"
},
{
"from": "human",
"value": "var Promise = require('bluebird'),\n dbUtils = require('utils/database'),\n socketUtils = require('utils/socket');\n\nmodule.exports = {\n all : All,\n add : Add,\n rename : Rename,\n dele... | javascript | chosen |
[
{
"from": "system",
"value": "Set manual timeout for count test\n"
},
{
"from": "human",
"value": "var mongoose = require('mongoose'),\n async = require('async'),\n config = require('./config'),\n Schema = mongoose.Schema,\n mongoosastic = require('../lib/mongoosastic');\n\nvar CommentSchema... | javascript | chosen |
[
{
"from": "system",
"value": "Set user schema global to the test context\n"
},
{
"from": "human",
"value": "describe('Users', function() {\n\n describe('Creation', function () {\n\n context('When creating a new user', function() {\n it('Should have an id', function() {\n var some... | javascript | chosen |
[
{
"from": "system",
"value": "Add link to Firefox’s I2P\n"
},
{
"from": "human",
"value": "/**\n * Copyright 2019 Google Inc. All Rights Reserved.\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You ma... | javascript | chosen |
[
{
"from": "system",
"value": "Fix !events always returning no events\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst Promise = require('bluebird');\nconst i18next = Promise.promisifyAll(require('i18next'));\n\nconst MentionableCommandMiddleware = require('../../middleware/MentionableCo... | javascript | chosen |
[
{
"from": "system",
"value": "Hide db scripts for now\n"
},
{
"from": "human",
"value": "// To use https://github.com/KyleAMathews/typefaces\n// import \"typeface-nunito\";\n\n\nimport \"./js/polyfills.js\"; //MUST GO AT TOP\nimport \"./js/lazysizes.js\";\nimport \"./js/quicklink.js\";\nimport \... | javascript | chosen |
[
{
"from": "system",
"value": "Handle SIGINT and SIGTERM to enable clean shutdown of Homebridge\n\nFor now we terminate the process, but in the future we may tell the\nserver to stop, which may possibly include some teardown logic.\n\nHandling these signals also make it easier to put Homebridge inside\na doc... | javascript | chosen |
[
{
"from": "system",
"value": "Downgrade Meteor dep to 0.9.2\n"
},
{
"from": "human",
"value": "var where = 'client';\n\nPackage.describe({\n name: 'lookback:dropdowns',\n summary: 'Reactive dropdowns for Meteor.',\n version: '1.1.0',\n git: 'http://github.com/lookback/meteor-dropdowns'\n});\... | javascript | chosen |
[
{
"from": "system",
"value": "Update test code to match README example\n"
},
{
"from": "human",
"value": "import Ember from 'ember';\n\nexport default Ember.Route.extend({\n title: function(tokens) {\n var base = 'My Blog';\n var hasTokens = tokens && tokens.length;\n\n return hasToken... | javascript | chosen |
[
{
"from": "system",
"value": "CHANGE the `set` event of storysource addon, to prevent confusion\n\n`story-event` is very unclear IMHO\n"
},
{
"from": "human",
"value": "export const ADDON_ID = 'storybook/storysource';\nexport const PANEL_ID = `${ADDON_ID}/panel`;\nexport const EVENT_ID = `${ADDO... | javascript | chosen |
[
{
"from": "system",
"value": "Remove html5 config option from demo module\n"
},
{
"from": "human",
"value": "'use strict';\n\nrequire('./demo.module.js')\n .config(Routes);\n\n/**\n * @ngInject\n */\nfunction Routes($stateProvider, $locationProvider, $urlRouterProvider) {\n\n $locationProv... | javascript | chosen |
[
{
"from": "system",
"value": "Set Timeout with 10ms delay in example test\n"
},
{
"from": "human",
"value": "module.exports = (() => {\n\n 'use strict';\n\n const Nodal = require('nodal');\n\n class ExampleTest extends Nodal.Test {\n\n test(expect) {\n\n it('Should compare 1 and 1', (... | javascript | chosen |
[
{
"from": "system",
"value": "Change the url builder to handle integrations.\n"
},
{
"from": "human",
"value": "/**\n * @constructor\n */\nwebfont.FontApiUrlBuilder = function(apiUrl) {\n if (apiUrl) {\n this.apiUrl_ = apiUrl;\n } else {\n var protocol = 'https:' == window.location.proto... | javascript | chosen |
[
{
"from": "system",
"value": "Change task name from 'js' to 'build'\n\nAdd 'watch' task to gulp to build compiled JS files on ES6 file change\n"
},
{
"from": "human",
"value": "const babel = require('gulp-babel');\nconst gulp = require('gulp');\nconst print = require('gulp-print');\n\n\ngulp.tas... | javascript | chosen |
[
{
"from": "system",
"value": "Build process now has source maps enabled.\n"
},
{
"from": "human",
"value": "//\n// Adapted from: \n// http://stackoverflow.com/questions/22330103/how-to-include-node-modules-in-a-separate-browserify-vendor-bundle\n//\n\nvar gulp = require('gulp');\nvar br... | javascript | chosen |
[
{
"from": "system",
"value": "Disable formatting for renderer logs to file\n"
},
{
"from": "human",
"value": "import { createStore, applyMiddleware } from 'redux';\nimport thunkMiddleware from 'redux-thunk';\nimport rootReducer from '../reducers';\nimport { createLogger } from '../../browser/rem... | javascript | chosen |
[
{
"from": "system",
"value": "Fix it so it is not running out side of the appMenu control\n\nOpen-WebOS-DCO-1.0-Signed-Off-By: john mcconnell johnmcconnell@yahoo.com\n"
},
{
"from": "human",
"value": "enyo.kind({\n\tname: \"enyo.AppMenu\",\n\tkind: onyx.Menu,\n\tclasses: \"enyo-appmenu\",\n\tde... | javascript | chosen |
[
{
"from": "system",
"value": "Use filterEvent for filtering events\n"
},
{
"from": "human",
"value": "define([\n 'jquery',\n 'DoughBaseComponent',\n 'InsertManager',\n 'eventsWithPromises'\n], function (\n $,\n DoughBaseComponent,\n InsertManager,\n eventsWithPromises\n) {\n 'use strict... | javascript | chosen |
[
{
"from": "system",
"value": "Update control alignment (was relying in platform-specific margins)\n"
},
{
"from": "human",
"value": "// Hello page\n//\nexports.View =\n{\n title: \"Hello World\",\n elements:\n [\n { control: \"stackpanel\", orientation: \"Horizontal\", contents:... | javascript | chosen |
[
{
"from": "system",
"value": "Fix south africa url typo\n"
},
{
"from": "human",
"value": "export const siteMapData = [\n {\n title: 'Tools',\n links: [\n { title: 'Country Profiles', href: '/countries' },\n { title: 'NDCs', href: '/ndcs-content' },\n { title: 'NDC-SDG Link... | javascript | chosen |
[
{
"from": "system",
"value": "Use FAIL functions, not CATCH\n"
},
{
"from": "human",
"value": "import Ember from 'ember';\n\nexport default Ember.Component.extend({\n\n tagName: 'form',\n classNameBindings: [ 'isValid:valid:invalid' ],\n\n cancel: 'cancel',\n isValid: Ember.computed.alias('f... | javascript | chosen |
[
{
"from": "system",
"value": "Return instance of controller in createController"
},
{
"from": "human",
"value": "define([\n 'config',\n 'angular',\n 'controller/<%= _.slugify(name) %>-controller'\n], function(cfg, A) {\n return describe('<%= _.humanize(name) %> controller', function() {\n ... | javascript | chosen |
[
{
"from": "system",
"value": ":new: Add specs for latest exit event\n"
},
{
"from": "human",
"value": "'use babel'\n\nimport {fork} from 'child_process'\nimport * as Communication from '../src/main'\n\nconst WORKER_PATH = __dirname + '/fixtures/worker.js'\n\ndescribe('Process-Communication', fun... | javascript | chosen |
[
{
"from": "system",
"value": "Include a temp logo for bot.\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst builder = require('botbuilder');\n\nmodule.exports = exports = [(session) => {\n\n const card = new builder.HeroCard(session)\n .title('JIRA Journal Bot')\n .text... | javascript | chosen |
[
{
"from": "system",
"value": "Fix pesky modal duplication issue...\n"
},
{
"from": "human",
"value": "Template.nav.onRendered(function() {\n this.$('.button-collapse').sideNav({\n closeOnClick: true\n });\n});\n\nTemplate.nav.events({\n 'click .logout': function(e){\n e.preventDefault()... | javascript | chosen |
[
{
"from": "system",
"value": "Use es6 imports / exports\n"
},
{
"from": "human",
"value": "\"use strict\"\n\nconst Characters = {\n\tWIDE_BAR: \"W\",\n\tNARROW_BAR: \"N\",\n\tWIDE_SPACE: \"w\",\n\tNARROW_SPACE: \"n\",\n}\n\nmodule.exports = Characters\n"
},
{
"from": "gpt",
"value": ... | javascript | chosen |
[
{
"from": "system",
"value": "Improve error message if resolveContainer throws\n"
},
{
"from": "human",
"value": "import DefaultContainer from './DefaultContainer'\nimport {getFieldType} from '../utils/getFieldType'\nconst noop = () => {}\n\nexport function createFieldValue(value, context) {\n\n... | javascript | chosen |
[
{
"from": "system",
"value": "Split up question/answer cards to be handled by different functions\n"
},
{
"from": "human",
"value": "angular.module('mean.system').controller('IndexController', ['$scope', 'Global', 'socket', function ($scope, Global, socket) {\n $scope.global = Global;\n so... | javascript | chosen |
[
{
"from": "system",
"value": "Add additional debug JS file that is generated by Gulp\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar gulp = require('gulp');\nvar paths = require('./_paths');\nvar concat = require('gulp-concat');\n\ngulp.task('scripts', ['clean-js', 'lint'], function() {\... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"Revert \"Revert \"Revert \"trigger update\"\"\"\"\n\nThis reverts commit d2be7c861e979d444b4f39aa8167d99fe93ad812.\n"
},
{
"from": "human",
"value": "var ids = ['yeka52', 'maboyong', 'datouma', 'gaizhilizcw', 'tianhao', 'qinnan', 'lianghuan', 'talich', \n'l... | javascript | chosen |
[
{
"from": "system",
"value": "Fix resize demo to work with updated Scatter plot\n"
},
{
"from": "human",
"value": "import candela from './../../src/candela';\nimport indexContent from './index.jade';\nimport 'javascript-detect-element-resize/detect-element-resize';\nimport './index.styl';\n\nfun... | javascript | chosen |
[
{
"from": "system",
"value": "Clean only app and web from dist/cnc\n"
},
{
"from": "human",
"value": "import gulp from 'gulp';\nimport del from 'del';\n\nconst list = [\n 'src/web/**/*.css',\n 'src/web/**/*.css.map',\n 'src/web/**/*.js.map',\n 'dist/**/*',\n // exclusion\n '!sr... | javascript | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.