conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Format timestamp in milliseconds with dot\n"
},
{
"from": "human",
"value": "var uuid = require(\"uuid\");\nvar Dialog = require(\"../dialog\");\n\nmodule.exports = function(apiToken, botId) {\n this.apiToken = apiToken;\n this.botId = botId;\n\n this.incoming = ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix bug on account update\n"
},
{
"from": "human",
"value": "\nvar mongo = require('./mongo');\n\nvar passport = require('passport');\nvar FacebookStrategy = require('passport-facebook').Strategy;\n\nvar uuid = require('uuid');\n\n\npassport.use(new FacebookStrategy... | javascript | chosen |
[
{
"from": "system",
"value": "Add TODO items in comment"
},
{
"from": "human",
"value": "var Clay = require('pebble-clay');\nvar clayConfig = require('./config');\nvar clay = new Clay(clayConfig);\n\nPebble.addEventListener('ready', function(e) {\n var timezone_offset = new Date().getTimezone... | javascript | chosen |
[
{
"from": "system",
"value": "Add missing Text component to import\n"
},
{
"from": "human",
"value": "import React, { Component } from 'react-native';\n\nexport default class Icon extends Component {\n constructor(props, context) {\n super(props, context);\n }\n\n render() {\n const { t... | javascript | chosen |
[
{
"from": "system",
"value": "Remove the require of auth in onboarding routes."
},
{
"from": "human",
"value": "function getRoute(path, subComponentName) {\n return {\n path: path,\n subComponentName: subComponentName,\n onEnter() {\n require('../../networking/auth')\n },\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Configure reducer to work with redux-form\n"
},
{
"from": "human",
"value": "import { combineReducers } from 'redux';\n\nconst rootReducer = combineReducers({\n app: (state = {}) => (state)\n});\n\nexport default rootReducer;"
},
{
"from": "gpt",
"value... | javascript | chosen |
[
{
"from": "system",
"value": "Fix - MongoDb connection restored\n"
},
{
"from": "human",
"value": "module.exports = {\n // url : 'mongodb://test-app:angular-attack@ds031802.mlab.com:31802/chronostories_test'\n url : 'mongodb://127.0.0.1:27017/chronostories_test'\n};"
},
{
"from": "... | javascript | chosen |
[
{
"from": "system",
"value": "Fix DOM update upon create user\n"
},
{
"from": "human",
"value": "import { delay } from 'redux-saga'\nimport { put, call, takeEvery } from 'redux-saga/effects'\nimport request from 'axios'\n\n// Our worker Saga: will perform the async increment task\nexport functio... | javascript | chosen |
[
{
"from": "system",
"value": "Fix the error from react-router\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport { render } from 'react-dom';\nimport { AppContainer } from 'react-hot-loader';\nimport { Provider } from 'react-redux';\nimport { Router, browserHistory } from 'rea... | javascript | chosen |
[
{
"from": "system",
"value": "Fix typos in event text\n"
},
{
"from": "human",
"value": "$(document).ready(function() {\n // check if the Google Analytics function is available\n if (typeof ga == 'function') {\n function trackFollow() {\n ga('send', 'event', 'following', 'click Follow ... | javascript | chosen |
[
{
"from": "system",
"value": "Support calling from browser or as node module\n"
},
{
"from": "human",
"value": "function isABN(input, strictFormat) {\n if(strictFormat && !/^\\d{2} \\d{3} \\d{3} \\d{3}$/.test(input)) {\n return false;\n }\n\n var abnStr = input.replace(' ', '');\... | javascript | chosen |
[
{
"from": "system",
"value": "Update executable to exit with error code when there are warnings\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\n\nvar fs = require( 'fs' );\nvar IndentChecker = require( '../lib/indent-checker' );\n\nvar files = process.argv.slice( 2 );\nvar messages = fil... | javascript | chosen |
[
{
"from": "system",
"value": "Set some defaults for Spree.Money in case API request fails for whatever reason\n"
},
{
"from": "human",
"value": "Spree.Money = {}\n\nSpree.Money.format = function(amount) {\n // Round up to 2 decimal places.\n amount = parseFloat(amount).toFixed(2)\n if (Spree.... | javascript | chosen |
[
{
"from": "system",
"value": "Update comment and test code.\n"
},
{
"from": "human",
"value": "/**\n * Context.spec.js\n * (c) 2015~ Summernote Team\n * summernote may be freely distributed under the MIT license./\n */\n/* jshint unused: false */\ndefine([\n 'chai',\n 'spies',\n 'helper',\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Update cropper js version to 0.9.0\n"
},
{
"from": "human",
"value": "module.exports = {\n normalizeEntityName: function() {\n },\n\n afterInstall: function() {\n return this.addBowerPackageToProject('cropper', '0.7.9');\n }\n};\n"
},
{
"from": "gpt",... | javascript | chosen |
[
{
"from": "system",
"value": "Add time-travel test to suite.\n"
},
{
"from": "human",
"value": "var test = require('tape');\n\nvar mercury = require('../index');\n\n// FFFfffff--- phantomJS.\nif (!Function.prototype.bind) {\n Function.prototype.bind = require('function-bind');\n}\n\ntest('mer... | javascript | chosen |
[
{
"from": "system",
"value": "Disable TS rule covered by type checker\n"
},
{
"from": "human",
"value": "module.exports = {\n extends: [\n require.resolve('.'),\n 'plugin:@typescript-eslint/recommended',\n 'prettier/@typescript-eslint',\n ],\n parser: '@typescript-eslint/parser',\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Remove falsey values before continuing to the next thenable\n"
},
{
"from": "human",
"value": "import _ from 'lodash';\nimport Promise from 'bluebird';\n\nexport function ensureArray(value) {\n\tif (!_.isUndefined(value)) {\n\t\treturn [].concat(value);\n\t}\n}\n\ne... | javascript | chosen |
[
{
"from": "system",
"value": "Fix JSHint errors in bench script\n"
},
{
"from": "human",
"value": "requirejs.config({\n baseUrl: \"../lib\",\n paths: {\n \"src\": \"../src\"\n }\n});\n\n(function() {\n function unitConversion(Qty) {\n return function() {\n new Qty(\"2500 m/h\").to... | javascript | chosen |
[
{
"from": "system",
"value": "Add JS to not load hidden divs\n"
},
{
"from": "human",
"value": "$(\"#post_link6\").click(function() {\r\n\tevent.preventDefault();\r\n $( \".post.6\" ).slideToggle( \"slow\" );\r\n});\r\n\r\n$(\"#post_link5\").click(function() {\r\n\tevent.preventDefault();\r\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add back base per review"
},
{
"from": "human",
"value": "'use strict';\n\n\n/**\n * Provides new tab and tabview widgets with some additional functions for\n * jujugui.\n *\n * @namespace juju\n * @module browser\n * @submodule widgets\n */\nYUI.add('browser-tabvie... | javascript | chosen |
[
{
"from": "system",
"value": "Add comments to main client file\n"
},
{
"from": "human",
"value": "'use strict';\n\nimport './main.less';\n\n\nimport 'file!./favicon.ico';\nimport 'file!./favicon-32.ico';\nimport 'file!./favicon-152.png';\n\n// 123\n\nimport angular from 'angular';\nimport ngRout... | javascript | chosen |
[
{
"from": "system",
"value": "Use localhost for development server\n"
},
{
"from": "human",
"value": "(function() {\n var app, k, v,\n __slice = [].slice;\n\n app = angular.module(\"app\", [\n \"ionic\",\n \"restangular\",\n \"ngAnimate\",\n 'ngGPlaces',\n 'classy',\n \"fx... | javascript | chosen |
[
{
"from": "system",
"value": "Decrease number of concurrent GA requests\n"
},
{
"from": "human",
"value": "import redis from '../../../lib/redis'\nimport paths from '../../../lib/paths'\nimport { getData } from '../../../lib/ga'\nimport pLimit from 'p-limit'\n\n// Number of concurrent requests a... | javascript | chosen |
[
{
"from": "system",
"value": "Change api endpoint to reflect api route name change\n"
},
{
"from": "human",
"value": "import axios from 'axios';\n\n\n//actions\nexport const LOGIN = 'LOGIN';\nexport const LOGIN_ERR = 'LOGIN_ERR';\n\nexport function loginUser(credentials) {\n\n const dbQuery = a... | javascript | chosen |
[
{
"from": "system",
"value": "[FIX] Use proper state field for predicate.\n"
},
{
"from": "human",
"value": "var SqlMqWorker = require('sql-mq-worker');\nvar WithdrawalProcessor = require(__dirname+'/../lib/core/withdrawal_processor.js');\nvar gateway = require(__dirname+'/../');\n\nvar worker =... | javascript | chosen |
[
{
"from": "system",
"value": "Remove un-used reference to Boom\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst Boom = require('boom');\n\nconst createLambdaContext = require('./createLambdaContext');\nconst debugLog = require('./debugLog');\n\nmodule.exports = {\n getFunctionOptions: ... | javascript | chosen |
[
{
"from": "system",
"value": "Add missing events and locations to error handling\n"
},
{
"from": "human",
"value": "module.exports = function(app) {\n app.use(function(err, _req, res, _next) { // eslint-disable-line no-unused-vars\n /**\n * Error messages may be split into a head and a b... | javascript | chosen |
[
{
"from": "system",
"value": "Use $.rails.ajax instead of $.ajax as a quick hack to not show loading image when retrieving token from the server\n"
},
{
"from": "human",
"value": "//generate token button\n$(function() {\n $(\"#generate-token\").live(\"click\", function(e) {\n $(this).disable... | javascript | chosen |
[
{
"from": "system",
"value": "Update @ Sat Mar 11 2017 17:01:59 GMT+0800 (CST)\n"
},
{
"from": "human",
"value": "const { exec } = require('child_process')\nconst ora = require('ora')\nconst config = require('../config')\n\nconst spinner = ora('Deploy to gh-pages...')\nspinner.start()\n\nfunctio... | javascript | chosen |
[
{
"from": "system",
"value": "Modify Int to Number type"
},
{
"from": "human",
"value": "'use strict';\n\n/**\n * Module dependencies.\n */\nvar mongoose = require('mongoose'),\n\tSchema = mongoose.Schema;\n\n/**\n * Room Schema\n */\nvar RoomSchema = new Schema({\n\tID: {\n type:String,\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Change error text from [ramda-global-loader] to [ramda-loader]\n"
},
{
"from": "human",
"value": "const redeclareError = (ctx, rowLoc, charLoc, name) => {\n return new Error(`\n\n [ramda-global-loader]\n Error: \"${name}\" is redeclared in ${ctx.file}:${rowLoc}:$... | javascript | chosen |
[
{
"from": "system",
"value": "Reset margin of text elements and add line-height to make it easier to read\n"
},
{
"from": "human",
"value": "import { createGlobalStyle } from 'styled-components';\nimport 'sanitize.css/sanitize.css';\n\nimport theme from './theme';\n\nexport const GlobalStyle = c... | javascript | chosen |
[
{
"from": "system",
"value": "Exclude generated files from testing\n"
},
{
"from": "human",
"value": "module.exports = {\n transform: {\n \"^.+\\\\.tsx?$\": \"ts-jest\",\n },\n testRegex: \"(/__tests__/.*|(\\\\.|/)(test|spec))\\\\.(jsx?|tsx?)$\",\n moduleFileExtensions: [\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix start/watch issues for server\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar argv = require('yargs').argv;\nvar path = require('path');\n\nmodule.exports = function(gulp, plugins, config) {\n return function() {\n function getSources(root, filte... | javascript | chosen |
[
{
"from": "system",
"value": "Use getters to make the provided interface more visible."
},
{
"from": "human",
"value": "export default class KataGroups {\n static fromRawKataData(rawGroups) {\n let kataGroups = new KataGroups();\n kataGroups.groups = Object\n .keys(rawGroups)\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Upgrade sendfile api to sendFile\n"
},
{
"from": "human",
"value": "/**\n * Main application routes\n */\n\n'use strict';\n\nvar errors = require('./components/errors');\n\nmodule.exports = function(app) {\n\n // Insert routes below\n app.use('/api/helpForums', re... | javascript | chosen |
[
{
"from": "system",
"value": "Rollback index html path update\n"
},
{
"from": "human",
"value": "// @flow\n\n/**\n * Main application routes\n */\n\nimport type { $Application, $Request, $Response } from \"express\";\n\nimport Api from \"./api\";\nimport Auth from \"./auth\";\nimport { pageNotFo... | javascript | chosen |
[
{
"from": "system",
"value": "Use NoEmitOnErrorsPlugin instead of NoErrorsPlugin\n\nNoErrorsPlugin is deprecated by NoEmitOnErrorsPlugin.\n(webpack/webpack#3570)\n"
},
{
"from": "human",
"value": "var path = require('path');\nvar webpack = require('webpack');\n\nmodule.exports = {\n devtool: 'e... | javascript | chosen |
[
{
"from": "system",
"value": "Remove calls to $.boom.loader.show() and $.boom.loader.hide()\n"
},
{
"from": "human",
"value": "/**\n@fileOverview Template manager UI.\n*/\n$.extend($.boom, {\n\n\t/**\n\t* @class\n\t* @name $.boom.templates\n\t*/\n\ttemplates :\n\t\t/** @lends $.boom.templates */... | javascript | chosen |
[
{
"from": "system",
"value": "Change value of default timeout interval\n"
},
{
"from": "human",
"value": "// /*global jasmine, __karma__, window*/\nError.stackTraceLimit = Infinity;\njasmine.DEFAULT_TIMEOUT_INTERVAL = 1000;\n\n__karma__.loaded = function () {};\n\nfunction isSpecFile(path) {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Update expression/aggregate.js\n- change the constructor signature\n"
},
{
"from": "human",
"value": "\nimport Expression from './base'\n\n/**\n * @class ColumnExpression\n */\nexport default class Column extends Expression {\n \n /**\n * \n * @param {String} ... | javascript | chosen |
[
{
"from": "system",
"value": "Work around for Chromium's injected stylesheet.\n"
},
{
"from": "human",
"value": "import { blobToArrayBuffer } from 'blob-util'\n\nimport db from 'src/pouchdb'\n\n\nasync function showPage(pageId) {\n // Read the html file from the database.\n const blob = aw... | javascript | chosen |
[
{
"from": "system",
"value": "line-simplification: Add implementation of midpointDisplacement function.\n"
},
{
"from": "human",
"value": "(function( window, document, undefined ) {\n 'use strict';\n\n var canvas = document.getElementById( 'canvas' ),\n context = canvas.getContext( '2d' ... | javascript | chosen |
[
{
"from": "system",
"value": "Test progress bar width changes on page change\n"
},
{
"from": "human",
"value": "import { moduleForComponent, test } from 'ember-qunit';\nimport hbs from 'htmlbars-inline-precompile';\n\nmoduleForComponent('progress-bar', 'Integration | Component | progress bar', {... | javascript | chosen |
[
{
"from": "system",
"value": "Simplify read until pattern test\n"
},
{
"from": "human",
"value": "var test = require('tap').test;\nvar streamBuffers = require(\"stream-buffers\");\nvar UntilStream = require('../');\n\ntest(\"read until pattern\", function (t) {\n t.plan(2);\n var us = new Unti... | javascript | chosen |
[
{
"from": "system",
"value": "Add nicer style for editor\n"
},
{
"from": "human",
"value": "'use strict';\n\nangular\n .module('flashcardModule.directives')\n .directive('markdownEditor', function() {\n var converter = new Showdown.converter();\n var previewTemplate = '<div n... | javascript | chosen |
[
{
"from": "system",
"value": "Add exception for unregistred IDs\n"
},
{
"from": "human",
"value": "/**\n * Jatabase\n *\n * @author Gabriel Jacinto <gamjj74@hotmail.com>\n * @license MIT License\n * @package jatabase\n */\n\n'use strict';\n\nvar utils = require('../utils');\n\nmodule.exports = f... | javascript | chosen |
[
{
"from": "system",
"value": "Throw an error instead of returning null\n"
},
{
"from": "human",
"value": "import gravity from '../../lib/loaders/gravity';\nimport { GraphQLString, GraphQLBoolean } from 'graphql';\nimport { mutationWithClientMutationId } from 'graphql-relay';\nimport { artworkFie... | javascript | chosen |
[
{
"from": "system",
"value": "Edit path to DB, index.html\n"
},
{
"from": "human",
"value": "// server.js\n\n\"use strict\";\n\nconst jsonServer = require('json-server');\nconst server = jsonServer.create();\nconst router = jsonServer.router('db.json')\nconst middlewares = jsonServer.defaults();... | javascript | chosen |
[
{
"from": "system",
"value": "Add test to check that Action Item column is displayed on toggle\n"
},
{
"from": "human",
"value": "import React from \"react\"\nimport { shallow } from \"enzyme\"\nimport { expect } from \"chai\"\nimport sinon from \"sinon\"\n\nimport Room from \"../../web/static/j... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"Test that typo in sources break the CI build\"\n\nThis reverts commit 78e3eda95cfe36ed811aa35ba90424a6f7503f4f.\n"
},
{
"from": "human",
"value": "(function() {\n 'use strict';\n\n angular\n .module('afterHeap')\n .config(routerConfig);\n\n /** @ng... | javascript | chosen |
[
{
"from": "system",
"value": "Handle quota storage exceeded error\n"
},
{
"from": "human",
"value": "var zoomextent = require('../lib/zoomextent'),\n qs = require('../lib/querystring');\n\nmodule.exports = function(context) {\n\n d3.select(window).on('unload', onunload);\n context.dispa... | javascript | chosen |
[
{
"from": "system",
"value": "[Bugfix] Correct misspelled method name 'contant' to 'constant'\n"
},
{
"from": "human",
"value": "(function() {\n 'use strict';\n\n angular.module('app', [\n 'app.config',\n 'app.core',\n 'app.feature'\n ]);\n\n angular.module('app').config([\n '$lo... | javascript | chosen |
[
{
"from": "system",
"value": "Throw an error if an invalid input type is getting parsed\n"
},
{
"from": "human",
"value": "/* -*- js2-basic-offset: 2; indent-tabs-mode: nil; -*- */\n/* vim: set ft=javascript ts=2 et sw=2 tw=80; */\n\"use strict\";\n\nvar mona = require(\"./mona\");\n\nvar parser... | javascript | chosen |
[
{
"from": "system",
"value": "Remove react warnings by properly defining externals\n"
},
{
"from": "human",
"value": "const webpack = require('webpack');\nconst env = process.env.NODE_ENV;\n\nconst config = {\n devtool: 'source-map',\n output: {\n libraryTarget: 'umd',\n library: 'Pic'\n... | javascript | chosen |
[
{
"from": "system",
"value": "[INTERNAL] Grunt: Disable proxy \"secure\" option for better local testing\n\nAs the \"grunt serve\" server is only intended to be used for local\ntesting it is fine to allow insecure connections.\n\nChange-Id: I7141af5d6340340f27ce80ecc7413f50ee553408\n"
},
{
"from": "... | javascript | chosen |
[
{
"from": "system",
"value": "Add boilerplate for announcer route\n"
},
{
"from": "human",
"value": "var utils = require(\"radiodan-client\").utils,\n settingsRoutes = require(\"../settings/routes\"),\n logger = utils.logger(__filename);\n\nmodule.exports = routes;\n\nfunction routes(... | javascript | chosen |
[
{
"from": "system",
"value": "Implement xref tooltip using ReferencesAPI.\n"
},
{
"from": "human",
"value": "import { NodeComponent } from 'substance'\nimport { getXrefLabel, getXrefTargets } from '../../editor/util/xrefHelpers'\n\nexport default class ReaderXrefComponent extends NodeComponent {... | javascript | chosen |
[
{
"from": "system",
"value": "Implement optional button-link functionality for ImageCards\n"
},
{
"from": "human",
"value": "import React, { Component } from 'react';\nimport PropTypes from 'prop-types';\n// import LinkButton from 'shared/components/linkButton/linkButton';\nimport styles from '.... | javascript | chosen |
[
{
"from": "system",
"value": "Add sourcemaps for easier debugging\n"
},
{
"from": "human",
"value": "var path = require('path');\nvar webpack = require('webpack');\nvar BundleTracker = require('webpack-bundle-tracker');\n\nmodule.exports = {\n context: __dirname,\n entry: './scrappyr/static/js... | javascript | chosen |
[
{
"from": "system",
"value": "Change asset naming of Webpack\n"
},
{
"from": "human",
"value": "'use strict';\n\nlet webpack = require('webpack');\nlet ExtractTextPlugin = require('extract-text-webpack-plugin');\n\nmodule.exports = {\n devtool: 'source-map',\n entry: [`${__dirname}/src/main.js... | javascript | chosen |
[
{
"from": "system",
"value": "Add is-casting-shadow to Layout Header.\n"
},
{
"from": "human",
"value": "import m from 'mithril';\nimport attributes from '../attributes';\n\nexport let Header = {\n\tview(ctrl, args, ...children) {\n\t\targs = args || {};\n\t\tlet attr = attributes(args);\n\t\tle... | javascript | chosen |
[
{
"from": "system",
"value": "Add target=\"_blank\" to external links with JS\n"
},
{
"from": "human",
"value": "(function ($) {\n\n\tvar Sinistrocular = {\n\t\t'common': {\n\t\t\tinit: function () {\n\t\t\t\tconsole.log('common.init');\n\n Utility.header.init();\n\n Animation.init... | javascript | chosen |
[
{
"from": "system",
"value": "Fix promise returning more than one value\n"
},
{
"from": "human",
"value": "import { execFile } from 'child_process'\n\nexport class YoutubeDownloader {\n constructor({downloadPath}){\n this.options = { cwd: downloadPath };\n }\n\n download(link){\n return... | javascript | chosen |
[
{
"from": "system",
"value": "Make message object types strict\n"
},
{
"from": "human",
"value": "/* eslint-disable no-unused-vars */\n\ntype ConnectMessage = {\n\ttype: 'CONNECT',\n\tchorusClientId: string,\n\tdescription: string,\n}\n\ntype PublishStepMessage = {\n\ttype: 'PUBLISH_STEP',\n\tch... | javascript | chosen |
[
{
"from": "system",
"value": "Remove duplicate usage of describe\n"
},
{
"from": "human",
"value": "var assert = require(\"assert\");\n\nvar documents = require(\"../lib/documents\");\nvar DocumentConverter = documents.DocumentConverter;\nvar test = require(\"./testing\").test;\n\n\ndescribe('Do... | javascript | chosen |
[
{
"from": "system",
"value": "Make run default to default namespace\n"
},
{
"from": "human",
"value": "import React, { Component } from 'react';\n\nimport SearchActions from '../actions/SearchActions.js';\n\nclass Run extends Component {\n componentDidMount() {\n SearchActions.nsearch(this.p... | javascript | chosen |
[
{
"from": "system",
"value": "Fix ordering and breadcrumb generation for interactive doc.\n"
},
{
"from": "human",
"value": "import { hierarchy } from \"d3-hierarchy\";\n\n\nconst JSON_PATH = \"http://rawgit.com/interlockjs/interlock/master/docs/compilation.json\";\n\n\nfunction orderChildren (n... | javascript | chosen |
[
{
"from": "system",
"value": "Use version alias for jasmine-jquery\n"
},
{
"from": "human",
"value": "/*\n * debugger.io: An interactive web scripting sandbox\n */\n\n(function() {\n 'use strict';\n\n var SRC = '../../src';\n var TEST = '../../test'; // relative to SRC\n\n require([SRC + '/j... | javascript | chosen |
[
{
"from": "system",
"value": "Remove complex getter code - this stuff is now implemented in Java (ParameterMap)\n\ngit-svn-id: fac99be8204c57f0935f741ea919b5bf0077cdf6@9481 688a9155-6ab5-4160-a077-9df41f55a9e9\n"
},
{
"from": "human",
"value": "require('core.string');\nimport('helma.system', 'sy... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"@ because of 1-way binding!\"\n\nThis reverts commit 65c86ab2e6d5d3912155bc3b3262265c9ce1d456.\n"
},
{
"from": "human",
"value": "'use strict';\n\n/**\n * @ngdoc directive\n * @name fiAngulartjeApp.directive:FiProduct\n * @description\n * # FiProduct\n */\n... | javascript | chosen |
[
{
"from": "system",
"value": "Make more generic to allow easily adding more contact-items in the future\n"
},
{
"from": "human",
"value": "var animationDuration = 1000;\nvar fadeInDelay = animationDuration;\nvar openFirstCategoryDelay = 2*fadeInDelay;\n\njQuery.fn.extend({\n fadeInOpacity: func... | javascript | chosen |
[
{
"from": "system",
"value": "Change server port to 4000\n"
},
{
"from": "human",
"value": "'use strict';\n\nmodule.exports = {\n\n 'serverport': 3000,\n\n 'styles': {\n 'src' : 'app/styles/**/*.scss',\n 'dest': 'build/css'\n },\n\n 'scripts': {\n 'src' : 'app/js/**/*.js',\n 'des... | javascript | chosen |
[
{
"from": "system",
"value": "Exclude the `flow-typed` directory by default"
},
{
"from": "human",
"value": "'use strict';\nvar path = require('path');\n\nvar DEFAULT_EXCLUDE_PATTERN = \"^(node_modules|bower_components|\\\\.imdone|target|build|dist|logs)[\\\\/\\\\\\\\]?|\\\\.(git|svn|hg|npmignor... | javascript | chosen |
[
{
"from": "system",
"value": "Make sure it's the search form and not any other.\n"
},
{
"from": "human",
"value": "$(function() {\n // move form to header\n $('form:last')\n .css({ 'color': 'black', 'position': 'absolute', 'right': '400px' })\n .prependTo('body');\n});\n\n"
},
{
... | javascript | chosen |
[
{
"from": "system",
"value": "Format rollbar, add sourcemap in DEV env\n"
},
{
"from": "human",
"value": "import resolve from 'rollup-plugin-node-resolve';\nimport commonjs from 'rollup-plugin-commonjs';\nimport babel from 'rollup-plugin-babel';\nimport postcss from 'rollup-plugin-postcss';\nimp... | javascript | chosen |
[
{
"from": "system",
"value": "Add class for plugin list\n"
},
{
"from": "human",
"value": "function toArray (obj) {\n return typeof obj === 'object' ? Object.keys(obj) : []\n}\n\nmodule.exports = function loadPlugins (pkg) {\n if (!pkg || !pkg.packageJson) return []\n\n let list = toArray(pkg... | javascript | chosen |
[
{
"from": "system",
"value": "Featured-image: Stop limiting error handling for aggregated requests\n\nSeveral feed endpoints have graceful error handling for aggregated\nrequests, meant to allow RESTBase to gracefully omit featured feed\ncontent where the underlying content is not found as expected.\n\nFor ... | javascript | chosen |
[
{
"from": "system",
"value": "fix(recents-list): Order recents by last used\n"
},
{
"from": "human",
"value": "/* global interfaceConfig */\n\nimport { parseURIString, safeDecodeURIComponent } from '../base/util';\n\n\n/**\n * Transforms the history list to a displayable list.\n *\n * @private\n... | javascript | chosen |
[
{
"from": "system",
"value": "Improve ENUMs - getIdentifier(s) methods\n"
},
{
"from": "human",
"value": "import _ from 'lodash';\nimport Type from './type.js';\nimport Validators from '../validators/validators.js';\n\nconst enumDefinitionPattern = {\n name: String,\n options: Object\n};\n\nco... | javascript | chosen |
[
{
"from": "system",
"value": "Update muteConsole & restoreConsole functions\n"
},
{
"from": "human",
"value": "const fs = require('fs');\n\nexport const makeAsyncCallback = (callbackValue) => {\n let promiseResolve;\n const promise = new Promise((resolve) => {\n promiseResolve = resolve;\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Allow to set body and headers\n"
},
{
"from": "human",
"value": "const http = require(\"http\");\n\n\n/**\n * Sends an HTTP request to the server and returns a Promise which resolve\n * with the HTTP response containing the body too.\n *\n * @param {String} host\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Use ecmascript 6, cancel interval\n"
},
{
"from": "human",
"value": "require('normalize.css');\nrequire('styles/App.css');\n\nimport React from 'react';\n\nlet someUnusedStuff = 'hello';\nlet yeomanImage = require('../images/yeoman.png');\nconst colors = ['red', 'wh... | javascript | chosen |
[
{
"from": "system",
"value": "Check if database config does exist\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar configuration = require('../config');\nvar util = require('util');\n\nvar databases = {};\n\n/**\n * register database provider\n * @param {string} name database provide... | javascript | chosen |
[
{
"from": "system",
"value": "Add more tests to reach 100% coverage\n"
},
{
"from": "human",
"value": "import test from 'ava';\nimport sha1 from '..';\nimport { nativeSha1, randomBytes } from './_helpers';\n\ntest('Invalid data should throw type error', t => {\n t.throws(() => sha1('hello there... | javascript | chosen |
[
{
"from": "system",
"value": "Add toggle mutation for adding achievement\n"
},
{
"from": "human",
"value": "import Relay from 'react-relay';\n\nexport default class extends Relay.Mutation {\n getMutation() {\n return Relay.QL`mutation{ ToggleAchievement }`;\n }\n\n getFatQuery() {\n ret... | javascript | chosen |
[
{
"from": "system",
"value": "Remove nodesDir since plugin nodes loaded from the directories don't handle i18n message resources\n\nThis was discussed in the thread: https://groups.google.com/forum/#!msg/node-red/Ag0RH_mLfvA/e53K6Dn0BQAJ.\nResource bundles per node is available only when the node is install... | javascript | chosen |
[
{
"from": "system",
"value": "feat(ux): Add fake render method with error message\n\nCloses #380\n"
},
{
"from": "human",
"value": "import mixins from './mixins/index.js'\n\nimport {\n Bar,\n HorizontalBar,\n Doughnut,\n Line,\n Pie,\n PolarArea,\n Radar,\n Bubble,\n Scatter,\n generat... | javascript | chosen |
[
{
"from": "system",
"value": "Add background and title to the configuration\n"
},
{
"from": "human",
"value": "import webpack from 'webpack'\nimport FaviconsWebpackPlugin from 'favicons-webpack-plugin'\n\nexports.modifyWebpackConfig = ({ config, stage }, { logo, icons }) => {\n if (stage === 'd... | javascript | chosen |
[
{
"from": "system",
"value": "Fix bug that swapped default list style types...\n"
},
{
"from": "human",
"value": "import { bool, string } from 'prop-types'\nimport React from 'react'\nimport Text from './Text'\n\nconst OrderedTagType = {\n [false]: 'ul',\n [true]: 'ol'\n}\n\nconst List = ({ or... | javascript | chosen |
[
{
"from": "system",
"value": "Clean up remaining ol/format/filter class\n"
},
{
"from": "human",
"value": "/**\n * @module ol/format/filter/Within\n */\nimport {inherits} from '../../util.js';\nimport Spatial from '../filter/Spatial.js';\n\n/**\n * @classdesc\n * Represents a `<Within>` operator... | javascript | chosen |
[
{
"from": "system",
"value": "Update header comment with correct date creation, dependencies, and modules needed\n"
},
{
"from": "human",
"value": "/* NewsSelector.js\n * Use reselect.js library for our seearch functionlity which has two types of selectors: input and memoized\n * Dependencies: A... | javascript | chosen |
[
{
"from": "system",
"value": "Fix matching actions with routes on their prototype.\n"
},
{
"from": "human",
"value": "import match from './requirejs-finder/match';\n\nconst fakeInstance = {\n get _super() {\n return () => {};\n },\n set _super(fn) {},\n execute() {},\n};\n\nexport default... | javascript | chosen |
[
{
"from": "system",
"value": "Refresh widget when config changes\n"
},
{
"from": "human",
"value": "import BoardView from 'app/components/serverboard/board'\nimport store from 'app/utils/store'\nimport {\n serverboards_widget_list,\n serverboard_update_widget_catalog,\n board_update_now\n } ... | javascript | chosen |
[
{
"from": "system",
"value": "[Ohhman][Phaser] Change function name according to diagram\n"
},
{
"from": "human",
"value": "Blinky = function () {\n\tthis.sprite = null;\n\tthis.speed = 10;\n\t\n\tthis.direction; //LEFT, RIGHT, UP, DOWN\n};\n\nBlinky.prototype = {\n\tpreload : function() {\n\t\t... | javascript | chosen |
[
{
"from": "system",
"value": "Add js function to call when scroll message is recieved\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar pym = require('pym.js');\n\nvar register = window.contextVars.share.urls.register;\n\nnew pym.Parent(\n 'share_registration_iframe',\n register,\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add back button support back in\n"
},
{
"from": "human",
"value": "document.observe(\"dom:loaded\", function()\n{\n function get_index()\n {\n var index = parseInt(location.hash.substr(1)); \n if(isNaN(index)) index = 0;\n return index;\n }\n\n funct... | javascript | chosen |
[
{
"from": "system",
"value": "Fix bug. board is property. not but function.\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport { connect } from 'react-redux';\nimport pieceComponent from '../components/piece';\nimport { holdPiece, enhanceCanDropPosition } from '../actions';\ni... | javascript | chosen |
[
{
"from": "system",
"value": "Add support for Redux Dev Tools\n"
},
{
"from": "human",
"value": "import { createStore, applyMiddleware } from 'redux'\nimport createSagaMiddleware from 'redux-saga'\n\nimport reducer from './reducers'\n\n// create the saga middleware\nexport const sagaMiddleware =... | javascript | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.