conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Work around combobox not getting detected correctly\n\nTODO: find proper solution\n"
},
{
"from": "human",
"value": "Ext2.namespace('Kwc.TextImage.ImageEnlarge');\nKwc.TextImage.ImageEnlarge.ImageUploadField = Ext2.extend(Kwc.Basic.ImageEnlarge.ImageUploadField, {\n... | javascript | chosen |
[
{
"from": "system",
"value": "Add timeout for better ad performance\n"
},
{
"from": "human",
"value": "// Bulma CSS for light weight CSS. One can any css framework\nimport 'bulma/css/bulma.min.css';\nimport './resources/css/util.scss';\nimport './resources/css/global.css';\n\nexport default clas... | javascript | chosen |
[
{
"from": "system",
"value": "Add 'enabled' property for 'GeoNamesLocations'\n"
},
{
"from": "human",
"value": "(function(app) {\n 'use strict';\n\n var Events = app.Events || require('../base/events.js');\n\n var GeoNamesLocations = function() {\n this._events = new Events();\n };\n\n G... | javascript | chosen |
[
{
"from": "system",
"value": "Use current host and port for communicating with websocket\n"
},
{
"from": "human",
"value": "'use strict';\n\n$(function() {\n var conn;\n var msg = $(\"#msg\");\n var log = $(\"#log\");\n var webSocketAddr = \"ws://0.0.0.0:4001/ws\"\n\n function app... | javascript | chosen |
[
{
"from": "system",
"value": "Add test case for not allowed origin\n"
},
{
"from": "human",
"value": "import { moduleFor, test } from 'ember-qunit';\nimport Ember from 'ember';\n\nconst { run } = Ember;\n\nmoduleFor('service:window-messenger-events', 'Unit | Service | window messenger events', {... | javascript | chosen |
[
{
"from": "system",
"value": "Fix a crash with statements without speakers\n\n"
},
{
"from": "human",
"value": "import { List } from 'immutable'\nimport createCachedSelector from 're-reselect'\n\n\nconst EMPTY_COMMENTS_LIST = new List()\n\nexport const getAllComments = (state) => state.VideoDeba... | javascript | chosen |
[
{
"from": "system",
"value": "Remove unused jshint mention in gulp serve task\n"
},
{
"from": "human",
"value": "var gulp = require('gulp');\nvar load = require('gulp-load-plugins')();\nvar browserSync = require('browser-sync');\nvar reload = browserSync.reload;\nvar url = require('url');\nvar p... | javascript | chosen |
[
{
"from": "system",
"value": "Add abstract articles state to namespace articles, as well as nested states for example article views; Also uncomment the html5mode to clean up the urls\n"
},
{
"from": "human",
"value": "angular.module('myApp', [\n 'ngAnimate',\n 'ui.router',\n 'templates'\n ])... | javascript | chosen |
[
{
"from": "system",
"value": "Call $scope.$apply after running the logic of the function/updating the property\n"
},
{
"from": "human",
"value": "angular.module('apps', ['angular-loading-bar', 'apis'])\n\t.controller('mailserversetting', ['$window', '$timeout', 'systemApi', function ($window, $t... | javascript | chosen |
[
{
"from": "system",
"value": "Build fails if lint fails\n"
},
{
"from": "human",
"value": "/*global desc, task, jake, fail, complete */\n(function() {\n \"use strict\";\n\n desc(\"Build and test\");\n task(\"default\", [\"lint\"]);\n\n desc(\"Lint everything\");\n task(\"lint\", [... | javascript | chosen |
[
{
"from": "system",
"value": "Add fade to arrow in home\n"
},
{
"from": "human",
"value": "(function( $ ) {\n\tfunction setHeaderHeight() {\n\t\t$( '#screen-fill' ).css( 'height', $( window ).height() - 50 );\n\t}\n\n\t$( document ).ready( setHeaderHeight );\n\t$( window ).resize( setHeaderHeigh... | javascript | chosen |
[
{
"from": "system",
"value": "Use image.src if HTMLCanvasElement is undefined\n"
},
{
"from": "human",
"value": "/**\n * @author mrdoob / http://mrdoob.com/\n * @author alteredq / http://alteredqualia.com/\n * @author szimek / https://github.com/szimek/\n */\n\nvar ImageUtils = {\n\n\tgetDataURL... | javascript | chosen |
[
{
"from": "system",
"value": "Make x variable in localStorage\n"
},
{
"from": "human",
"value": "function something()\n{\n\t\n\tvar x = window.localStorage.getItem('x');\n\n\twindow.localStorage.setItem('x', 555);\n\n\n\talert(x);\n\n}\n\n\n\n\n\n\n"
},
{
"from": "gpt",
"value": "fun... | javascript | chosen |
[
{
"from": "system",
"value": "Use environment variable for URL base\n"
},
{
"from": "human",
"value": "import React from \"react\"; // eslint-disable-line no-unused-vars\n\nclass CountryMap extends React.Component {\n constructor(props) {\n super(props);\n this.state = { SVG: \"\" };\n }... | javascript | chosen |
[
{
"from": "system",
"value": "Fix passing variable down to evaluate context\n"
},
{
"from": "human",
"value": "/*\nCopyright 2018 New Vector Ltd\nCopyright 2019 The Matrix.org Foundation C.I.C.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except... | javascript | chosen |
[
{
"from": "system",
"value": "Support for initializing io.Socket after the page has been loaded\n"
},
{
"from": "human",
"value": "/**\n * Socket.IO client\n * \n * @author Guillermo Rauch <guillermo@learnboost.com>\n * @license The MIT license.\n * @copyright Copyright (c) 2010 LearnBoost <dev@... | javascript | chosen |
[
{
"from": "system",
"value": "Add logging to Safari band-aid\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst\n RELOAD_KEY = 'safari-reload-193289123',\n WAIT_TIME = 100; // Does it matter how long to wait?\n\n/**\n * Safari desktop audio is being dumb and won't play until a secon... | javascript | chosen |
[
{
"from": "system",
"value": "Use correct characters for ru lang\n\nIt is similar but works better on some font setups"
},
{
"from": "human",
"value": "var module = angular.module('commafeed.i18n', []);\r\n\r\nmodule.service('LangService', [function() {\r\n\tthis.langs = {\r\n\t\t'ar': 'العربية'... | javascript | chosen |
[
{
"from": "system",
"value": "Use Web authentication for API, too\n"
},
{
"from": "human",
"value": "var User = require('../models').User,\n restify = require('express-restify-mongoose');\n\n/*\n * Middleware for all API requests that looks for a token\n * parameter and validates it against t... | javascript | chosen |
[
{
"from": "system",
"value": "Add unit test for validation\n"
},
{
"from": "human",
"value": "import { sayHello } from '../src/js/module/module';\nimport { sayHi } from '../src/js/module/module2';\ndescribe('module', function () {\n\n const hello = sayHello('World');\n const hi = sayHi();\... | javascript | chosen |
[
{
"from": "system",
"value": "Add cleanup function on willDestroyElement\n\nDestroys tinymce editor instance on willDestroyElement so that it\ncan be successfully recreated if/when the element is recreated -\nfor example, navigating away from and back to the route which the\neditor is part of.\n"
},
{
... | javascript | chosen |
[
{
"from": "system",
"value": "Fix Linting In Input Error List Component\n"
},
{
"from": "human",
"value": "import React from 'react'\nimport InputError from './input_error'\n\nexport default class InputErrorList extends React.Component {\n static propTypes = {\n errors: React.PropTypes.array... | javascript | chosen |
[
{
"from": "system",
"value": "Fix Toggle Files button /2\n"
},
{
"from": "human",
"value": "import {h} from 'dom-chef';\nimport select from 'select-dom';\nimport delegate from 'delegate';\nimport * as icons from '../libs/icons';\nimport observeEl from '../libs/simplified-element-observer';\n\nfu... | javascript | chosen |
[
{
"from": "system",
"value": "Tweak axle width for better dead reckoning\n"
},
{
"from": "human",
"value": "module.exports = {\n encoders: {\n // The number of ticks from the encoder per wheel revolution\n ticksPerRevolution: 1200\n },\n dimensions: {\n // The diameter of a wheel in ... | javascript | chosen |
[
{
"from": "system",
"value": "Update User to use BaseModel\n"
},
{
"from": "human",
"value": "/**\n * User model\n */\nimport Joi from 'joi'\nimport * as utils from './utils'\n\nexport const INDEXES = []\nexport const TABLE = 'users'\nexport const TYPE = 'User'\n\nexport const UserSchema = Joi.o... | javascript | chosen |
[
{
"from": "system",
"value": "Fix problem not rendering null values\n"
},
{
"from": "human",
"value": "export function rowsValuesToString(rows) {\n return rows.map(rowValuesToString);\n}\n\n\nexport function rowValuesToString(row) {\n if (Array.isArray(row)) {\n return rowsValuesToString(ro... | javascript | chosen |
[
{
"from": "system",
"value": "Fix a bug in submitting an answer\n"
},
{
"from": "human",
"value": "var QuestAnswerView = Backbone.View.extend({\n el: \"#view\",\n\n tagName: \"div\",\n\n events: {\n \"click .btn.submit-answer\": \"save\"\n },\n\n initialize: function() {\n //this.li... | javascript | chosen |
[
{
"from": "system",
"value": "Fix migration if email already exists\n"
},
{
"from": "human",
"value": "RocketChat.Migrations.add({\n\tversion: 94,\n\tup() {\n\t\tconst query = {\n\t\t\t'emails.address.address': { $exists: true }\n\t\t};\n\n\t\tRocketChat.models.Users.find(query, {'emails.address... | javascript | chosen |
[
{
"from": "system",
"value": "Clean up capture action creators\n"
},
{
"from": "human",
"value": "import * as constants from '../../constants'\n\nexport function documentCapture(payload) {\n return {\n type: constants.DOCUMENT_CAPTURE,\n payload\n }\n}\n\nexport function captureIsValid(p... | javascript | chosen |
[
{
"from": "system",
"value": "Allow subclass customizing event and action\n"
},
{
"from": "human",
"value": "\nmi2JS.comp.add('base/Button', 'Base', '',\n\n// component initializer function that defines constructor and adds methods to the prototype \nfunction(proto, superProto, comp, superComp){... | javascript | chosen |
[
{
"from": "system",
"value": "Fix bug where not all listeners have been passed to the router\n"
},
{
"from": "human",
"value": "\"use strict\";\n\nvar Router = require(\"i40\");\n\nfunction Routes() {\n this._router = Router();\n}\n\nRoutes.prototype._router = null;\n\nRoutes.prototype.add = ... | javascript | chosen |
[
{
"from": "system",
"value": "EF: Fix typo in expirtyTime property name.\n"
},
{
"from": "human",
"value": "/**\n * @license\n * Copyright 2016 Google Inc. All Rights Reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compl... | javascript | chosen |
[
{
"from": "system",
"value": "Comment out @bubil 's menu-bar removal\n"
},
{
"from": "human",
"value": "AV.VisualizationView = Backbone.View.extend({\n el: '#visualization',\n // The rendering of the visualization will be slightly\n // different here, because there is no templating nece... | javascript | chosen |
[
{
"from": "system",
"value": "Add link for Back to Overview in guides menu\n\nrefs #394\n"
},
{
"from": "human",
"value": "import React from 'react';\n\nimport LanguageLink from '../../components/LanguageLink/LanguageLink';\nimport guideListConfig from '../guideList/config';\n\nimport './GuidesM... | javascript | chosen |
[
{
"from": "system",
"value": "Fix NAVY_EXTERNAL_IP and NAVY_HOST not working\n"
},
{
"from": "human",
"value": "/* @flow */\n\nimport {getExternalIP} from './external-ip'\n\nconst BASE = 'xip.io'\n\nfunction isValidIpv4Addr(ip) {\n return /^(?=\\d+\\.\\d+\\.\\d+\\.\\d+$)(?:(?:25[0-5]|2[0-4][0-9... | javascript | chosen |
[
{
"from": "system",
"value": "Allow elements to take a bit before entering dom\n"
},
{
"from": "human",
"value": "/**\n * The loads happen much quicker than Nightwatch can pull, so we're testing the aftermath of the successive loads\n */\nmodule.exports = {\n\n\t'assets should not be rendered': ... | javascript | chosen |
[
{
"from": "system",
"value": "Add helper to get project name\n"
},
{
"from": "human",
"value": "// Licensed under the Apache License, Version 2.0 (the “License”); you may not\n// use this file except in compliance with the License. You may obtain a copy of\n// the License at\n//\n// http://www.a... | javascript | chosen |
[
{
"from": "system",
"value": "Use a name param instead of a boolean value\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar Node = require('../node');\nvar debug = require('../../util/debug')('analysis:line-to-single-point');\n\nvar TYPE = 'line-to-single-point';\nvar PARAMS = {\n sourc... | javascript | chosen |
[
{
"from": "system",
"value": "Remove underscores from words when building wordSet\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar markovWordsetBuilder = (function() {\n\n\tvar max_words = 80000;\n\n\tfunction stripChars(word) {\n\t\treturn word.replace(/[^\\w\\s\\.\\!\\?\\'\\,\\—\\-]/gi,... | javascript | chosen |
[
{
"from": "system",
"value": "refactor: Use promise instead async fn\n"
},
{
"from": "human",
"value": "import mapService from 'new-dashboard/core/map-service';\nimport { visualizations as fakeVisualizations } from '../fixtures/visualizations';\njest.mock('carto-node');\n\ndescribe('mapService',... | javascript | chosen |
[
{
"from": "system",
"value": "Fix proptypes property of FormProvider\n"
},
{
"from": "human",
"value": "import {Component, Children} from 'react';\nimport PropTypes from 'prop-types';\n\nexport default class FormioProvider extends Component {\n static PropTypes = {\n formio: PropTypes.object... | javascript | chosen |
[
{
"from": "system",
"value": "Remove `let`/`const` to support node 4\n"
},
{
"from": "human",
"value": "const webpack = require(\"webpack\");\nconst webpackDevServer = require('webpack-dev-server');\nconst path = require('path');\nconst baseConfig = require('../config/webpack.config.dist');\n\nc... | javascript | chosen |
[
{
"from": "system",
"value": "Fix agent model disable offline audit\n"
},
{
"from": "human",
"value": "import { Model as AgentMixin, defineProjections } from '../mixins/regenerated/models/i-c-s-soft-s-t-o-r-m-n-e-t-security-agent';\nimport BaseModel from './model';\nimport OfflineModelMixin from... | javascript | chosen |
[
{
"from": "system",
"value": "Add category as category page variable\n\nThis data will be available in the layouts.\n\nBuilt from 6b3249e82a8954febf35b9f92a98b4643893c2ec.\n"
},
{
"from": "human",
"value": "var pagination = require('hexo-pagination');\nvar _ = require('lodash');\n\nhexo.extend.g... | javascript | chosen |
[
{
"from": "system",
"value": "Replace jQuery `each` method with for loop\n"
},
{
"from": "human",
"value": "window.GOVUK = window.GOVUK || {}\nwindow.GOVUK.Modules = window.GOVUK.Modules || {};\n\n(function (global, GOVUK) {\n 'use strict'\n\n GOVUK.Modules.TrackBrexitQaChoices = function () {... | javascript | chosen |
[
{
"from": "system",
"value": "Mark Feebas's evolution in Gen4 as requiring high Beauty\n\nTrade evolution for Feebas was introduced in Gen5.\n"
},
{
"from": "human",
"value": "'use strict';\n\n/**@type {{[k: string]: ModdedTemplateData}} */\nlet BattlePokedex = {\n\trotomheat: {\n\t\tinherit: tr... | javascript | chosen |
[
{
"from": "system",
"value": "Add trailing & leading opts as per underscore.js implementation\n"
},
{
"from": "human",
"value": "/* jshint node: true */\n'use strict';\n\n/**\n ## cog/throttle\n\n ```js\n var throttle = require('cog/throttle');\n ```\n\n ### throttle(fn, delay)\n\n A cherr... | javascript | chosen |
[
{
"from": "system",
"value": "Fix hover depth for connections\n"
},
{
"from": "human",
"value": "/**\n *\n * Copyright 2016 Netflix, Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * ... | javascript | chosen |
[
{
"from": "system",
"value": "Change let to var declarations\n"
},
{
"from": "human",
"value": "let gulp = require('gulp'),\n exec = require('exec'),\n watch = require('gulp-watch');\n\nlet ADD = 'add';\n\nlet paths = {\n jobs: ['../uploads/**/*.fds'],\n parcel: ['../parcel.php']\n};\n\n... | javascript | chosen |
[
{
"from": "system",
"value": "Convert quiz question_sources in fetchQuizSummaryPageData\n"
},
{
"from": "human",
"value": "import map from 'lodash/map';\nimport { ExamResource, ContentNodeResource } from 'kolibri.resources';\n\nexport function fetchQuizSummaryPageData(examId) {\n const payload ... | javascript | chosen |
[
{
"from": "system",
"value": "Remove local recipes var in recipe list view"
},
{
"from": "human",
"value": "var RecipeListView = function (recipes) {\n\n var recipes;\n\n this.initialize = function() {\n this.$el = $('#content');\n if(recipes[0] !== undefined)\n th... | javascript | chosen |
[
{
"from": "system",
"value": "Refactor to resolve odd ArrayProxy errors on sl-tab-panel route\n"
},
{
"from": "human",
"value": "import Ember from 'ember';\n\nexport default Ember.Route.extend({\n model: function() {\n return Ember.Object.create({\n 'PAGINATION_DISPLAYING': '... | javascript | chosen |
[
{
"from": "system",
"value": "Add reference tests for created objects\n"
},
{
"from": "human",
"value": "import {load} from \"Injector\";\nimport A from \"example/A\";\nimport D from \"example/D\";\nimport assert from \"./assert\";\nimport Context from \"./di/Context\";\n\nconst d = load(D, {nam... | javascript | chosen |
[
{
"from": "system",
"value": "Fix for new vue module handling\n"
},
{
"from": "human",
"value": "import Vue from 'vue';\nimport Vuex from 'vuex';\nimport VuexPlus from 'vuex+';\n\nVue.use(Vuex);\nVue.use(VuexPlus.getVuePlugin(Vue));\n\n// Create the Vuex store\nconst store = new Vuex.Store({\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Remove unnecessary stripe status checks\n"
},
{
"from": "human",
"value": "const http = require('http');\nconst _ = require('lodash');\n\n// This reponder is assuming that all <500 errors are safe to be responded\n// with their .message attribute.\n// DO NOT write s... | javascript | chosen |
[
{
"from": "system",
"value": "Clean up wrapper and add Node export.\n\n- Rename the result of Module() to \"graphviz\".\n- Include module.export for Node.\n- Test for undefined when looking at the options for the Viz function.\n"
},
{
"from": "human",
"value": " var module;\n return function(s... | javascript | chosen |
[
{
"from": "system",
"value": "Replace \"More Information\" with \"Who We Serve\"\n\n"
},
{
"from": "human",
"value": "import React, { Component } from 'react';\nimport Section from 'shared/components/section/section';\nimport ClipPathImage from 'shared/components/clipPathImage/clipPathImage';\ni... | javascript | chosen |
[
{
"from": "system",
"value": "Make RoostEventTarget behave properly for adding/removing mid-dispatch\n"
},
{
"from": "human",
"value": "\"use strict\";\n\n// The DOM really should provide this for you, so you don't have to\n// keep reimplementing it.\n\nfunction RoostEventTarget() {\n this.list... | javascript | chosen |
[
{
"from": "system",
"value": "Fix crash during account creation with node version 8\n"
},
{
"from": "human",
"value": "'use strict';\n\n/**\n * Account creation event\n */\nmodule.exports = (srcPath) => {\n const Account = require(srcPath + 'Account');\n const EventUtil = require(srcPath + 'Ev... | javascript | chosen |
[
{
"from": "system",
"value": "Add a polyfil for `process.arch` on node 0.4.x.\n"
},
{
"from": "human",
"value": "var ffi = require('node-ffi')\n , core = require('./core')\n , types = require('./types')\n , Pointer = ffi.Pointer\n , SIZE_MAP = ffi.Bindings.TYPE_SIZE_MAP\n , FUNC_MAP = ffi.T... | javascript | chosen |
[
{
"from": "system",
"value": "Move chat messages to separate collection\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport firebase from 'firebase';\nimport ReactFireMixin from 'reactfire';\n\nconst ChatMessage = ({ time, name, message }) => {\n return <li>{time} {name}: {mes... | javascript | chosen |
[
{
"from": "system",
"value": "Allow color formatting in dev console\n\nAllow user to return an array from the rendererConsole format\nfunction which can be used for color formatting.\n\nResolves Issue #87\n"
},
{
"from": "human",
"value": "'use strict';\n\nmodule.exports = null;\n\nvar ipcRender... | javascript | chosen |
[
{
"from": "system",
"value": "Make camera follow the car object\n"
},
{
"from": "human",
"value": "/* globals __DEV__ */\nimport Phaser from 'phaser'\nimport Mushroom from '../sprites/Mushroom'\nimport Car from '../sprites/Car'\n\nexport default class extends Phaser.State {\n init () {}\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix javascript error with no properties for new-mode-submit\n"
},
{
"from": "human",
"value": "function updateFormForState() {\n var v = $(\"new-mode-selector\").value\n if (\"\" == v) {\n $(\"new-date-input-group\").hide()\n $(\"new-reason-input... | javascript | chosen |
[
{
"from": "system",
"value": "Add buttons to perform imports\n"
},
{
"from": "human",
"value": "Nux\n// First the boot, applying a set of rules to\n// boot your nux object.\n.boot({\n\t// Boot a full Nux system complete with batteries.\n\t// refer to nux.extension.kernel\n\tkernel: true,\n\t// c... | javascript | chosen |
[
{
"from": "system",
"value": "Replace server live reload with browser sync\n"
},
{
"from": "human",
"value": "var gulp = require('gulp');\nvar server = require('gulp-server-livereload');\n\ngulp.task('default', ['clean', 'scripts'], function() {\n gulp.src('./')\n .pipe(server({\n defau... | javascript | chosen |
[
{
"from": "system",
"value": "Set the public path to the specified public path, or, in the absence of a public path, the path.\n"
},
{
"from": "human",
"value": "var webpackTS = require('./ts.config');\n\nmodule.exports = function(options) {\n\tvar webpackLibrary = webpackTS();\n\n\twebpackLibra... | javascript | chosen |
[
{
"from": "system",
"value": "REmove unused dependency on jsEncode\n"
},
{
"from": "human",
"value": "/** MIT License (c) copyright 2010-2013 B Cavalier & J Hann */\n\n/**\n * curl json! cram plugin\n */\ndefine(['./jsEncode'], function (jsEncode) {\n\n\treturn {\n\n\t\tcompile: function (plugin... | javascript | chosen |
[
{
"from": "system",
"value": "Stop event bubbling when trigger is clicked\n"
},
{
"from": "human",
"value": "(function ($) {\n 'use strict';\n var settings;\n\n $.fn.tuxedoMenu = function (options) {\n var self = this;\n\n // Extend default settings with options\n s... | javascript | chosen |
[
{
"from": "system",
"value": "Add module resolution for jest\n"
},
{
"from": "human",
"value": "module.exports = {\n setupFilesAfterEnv: ['@testing-library/jest-dom/extend-expect'],\n transform: {\n '^.+\\\\.[jt]sx?$': 'babel-jest',\n },\n transformIgnorePatterns: ['/node_modules/(?!@cent... | javascript | chosen |
[
{
"from": "system",
"value": "Improve disqus page reload hack.\n"
},
{
"from": "human",
"value": "require.config({\n paths: {\n text: 'lib/require-text',\n css: 'lib/require-css',\n\n jquery: 'lib/jquery',\n\n underscore: 'lib/underscore',\n 'underscore.crunch': 'lib/underscore.c... | javascript | chosen |
[
{
"from": "system",
"value": "Unify strings in Go with variants\n"
},
{
"from": "human",
"value": "/*\nLanguage: Go\nAuthor: Stephan Kountso aka StepLg <steplg@gmail.com>\nContributors: Evgeny Stepanischev <imbolk@gmail.com>\nDescription: Google go language (golang). For info about language see ... | javascript | chosen |
[
{
"from": "system",
"value": "Remove stylelint from postcss chain, reset cssnano to defaults\n"
},
{
"from": "human",
"value": "module.exports = {\n syntax: \"postcss-scss\",\n plugins: {\n stylelint: {},\n \"postcss-import\": { addModulesDirectories: [\"src\"] },\n \"postcss-cssnext\... | javascript | chosen |
[
{
"from": "system",
"value": "Update visible restaurants after updating restaurants\n"
},
{
"from": "human",
"value": "import axios from 'axios';\n\nexport function getRestaurants ({ commit }) {\n return new Promise((resolve, reject) => {\n axios\n .get('/api/restaurant')\n .then((... | javascript | chosen |
[
{
"from": "system",
"value": "Fix lint build error from Fonts patch.\n\nReviewed at https://reviews.apache.org/r/63129/\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport ReactDOM from 'react-dom';\nimport { BrowserRouter as Router, Route } from 'react-router-dom';\n\nimport S... | javascript | chosen |
[
{
"from": "system",
"value": "Add basic tests for revised activation\n\nThe tests are fairly brittle in that they are DOM dependent. For example,\ntesting command dispatch requires a DOM target to begin with. Perhaps some\nrefactoring might make it easier to test certain elements of the package.\n"
},
{... | javascript | chosen |
[
{
"from": "system",
"value": "Support old microsoft specific mime types\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar memoize = require('memoizee/plain')\n , validDb = require('dbjs/valid-dbjs')\n , defineFile = require('dbjs-ext/object/file')\n , defineJpegFile = ... | javascript | chosen |
[
{
"from": "system",
"value": "feat: Rename exported UMD module to fc_path\n\nBREAKING CHANGE: Previously the module was called fcPath. The new name\nbetter reflects the d3v4 naming conventions.\n"
},
{
"from": "human",
"value": "import babel from 'rollup-plugin-babel';\n\nexport default {\n ent... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"Mark backcompat on some Handlebars functions\"\n\nThis reverts commit b777b04a66e98b90f8541e19a7e8106d3e90b1d1.\n"
},
{
"from": "human",
"value": "// XXX this file no longer makes sense in isolation. take it apart as\n// part file reorg on the 'ui' package... | javascript | chosen |
[
{
"from": "system",
"value": "Add onTargetEvent to test debugger stub.\n"
},
{
"from": "human",
"value": "'use babel'\n\nimport { Emitter } from 'atom'\n\nexport default class DebbugerStub {\n\n constructor() {\n this.emitter = new Emitter\n }\n\n /* Interface */\n name() {\n return 'D... | javascript | chosen |
[
{
"from": "system",
"value": "Add posibility to read GITTER_API_KEY from environment\n"
},
{
"from": "human",
"value": "var Gitter = require('node-gitter');\n\n/**\n * Create new instance of GitterBot\n * @param {String} key Your API key\n * @constructor\n */\nfunction GitterBot(key) {\n this.s... | javascript | chosen |
[
{
"from": "system",
"value": "Add deprecation notice about random() helper\n"
},
{
"from": "human",
"value": "\"use strict\";\n\n\n/*global nodeca, _*/\n\n\n// stdlib\nvar crypto = require('crypto');\n\n\n// nodeca\nvar HashTree = require('nlib').Support.HashTree;\nvar JASON = require('nlib')... | javascript | chosen |
[
{
"from": "system",
"value": "Use arguments that actually exist in the preference-experiment action.\n"
},
{
"from": "human",
"value": "import { Action, registerAction } from '../utils';\n\nexport default class PreferenceExperimentAction extends Action {\n async execute() {\n this.normandy.l... | javascript | chosen |
[
{
"from": "system",
"value": "Replace Switch with Routes export\n"
},
{
"from": "human",
"value": "export { default as LocationAction } from './actions/location-action'\nexport { default as LocationStore } from './stores/location-store'\nexport { default as Link } from './components/link'\nexpor... | javascript | chosen |
[
{
"from": "system",
"value": "Fix an issue where initial state was not computed correctly\n"
},
{
"from": "human",
"value": "import generateReducer from './generate-reducer';\nimport generateActionTypes from './generate-action-types';\nimport generateActionCreators from './generate-action-creato... | javascript | chosen |
[
{
"from": "system",
"value": "Add the VERSION in the center component.\n\nFix #29"
},
{
"from": "human",
"value": "import React , { Component , PropTypes }from 'react';\nimport { Provider } from 'react-redux';\nimport createStore from './store/create';\nimport NotificationCenter from './componen... | javascript | chosen |
[
{
"from": "system",
"value": "Fix default value if plugin is not configured\n"
},
{
"from": "human",
"value": "const suffixToRemove = 'Container';\r\n\r\nfunction addDisplayNameStatement(t, varName) {\r\n const pos = varName.indexOf(suffixToRemove);\r\n const displayName = 0 < pos ? varNam... | javascript | chosen |
[
{
"from": "system",
"value": "Refactor so React doesn't get confused when the component updates\n"
},
{
"from": "human",
"value": "import React, { PureComponent, PropTypes } from 'react'\nimport SVGInjector from 'svg-injector'\n\nexport default class ReactSVG extends PureComponent {\n\n static ... | javascript | chosen |
[
{
"from": "system",
"value": "Add comment describing url prefixes\n"
},
{
"from": "human",
"value": "import {has, type} from 'ramda';\n\nexport function urlBase(config) {\n if (type(config) === \"Null\" ||\n (type(config) === \"Object\") &&\n !has('url_base_pathname', config) &&... | javascript | chosen |
[
{
"from": "system",
"value": "Stop bot after 30 consecutive failed API calls\n"
},
{
"from": "human",
"value": "var _ = require('underscore');\nvar async = require('async');\nvar logger = require('./loggingservice.js');\nvar api = require('./api.js');\n\nvar downloader = function(refreshInterval... | javascript | chosen |
[
{
"from": "system",
"value": "Add TODO for generating slide url in `presentations.js`\n"
},
{
"from": "human",
"value": "module.exports = {\n description: 'Generates a new presentation slide',\n\n // locals: function(options) {\n // // Return custom template variables here.\n // return {... | javascript | chosen |
[
{
"from": "system",
"value": "Update stats after every identification.\n"
},
{
"from": "human",
"value": "import inatjs from \"inaturalistjs\";\nimport {\n loadingDiscussionItem,\n fetchCurrentObservation\n} from \"./current_observation_actions\";\n\nconst POST_IDENTIFICATION = \"post_identifi... | javascript | chosen |
[
{
"from": "system",
"value": "UPDATE filter overlay now stay open after click\n"
},
{
"from": "human",
"value": "var ResourceService = require(\"services/ResourceService\");\nvar ItemListService = require(\"services/ItemListService\");\n\nVue.component(\"item-list\", {\n\n props: [\n \... | javascript | chosen |
[
{
"from": "system",
"value": "Test the 404 error handler\n"
},
{
"from": "human",
"value": "require('./test_helper');\n\ndescribe('app', function () {\n before(seeds);\n\n describe('GET /', function () {\n it('responds with success', function (done) {\n request(app)\n .get('/')\... | javascript | chosen |
[
{
"from": "system",
"value": "Add a test about the callbackUrl\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar request = require('supertest');\nrequire('should');\n\nvar app = require('../app.js');\n\ndescribe(\"GET /init/connect\", function () {\n it(\"should redirect to Google\", func... | javascript | chosen |
[
{
"from": "system",
"value": "Increase default test-until timeout to 5000ms\n"
},
{
"from": "human",
"value": "import {createRunner} from 'atom-mocha-test-runner';\nimport chai from 'chai';\nimport chaiAsPromised from 'chai-as-promised';\n\nchai.use(chaiAsPromised);\nglobal.assert = chai.assert;... | javascript | chosen |
[
{
"from": "system",
"value": "Make feature example running generic\n"
},
{
"from": "human",
"value": "jQuery(document).ready(function() {\n jQuery('#features textarea').each(function() {\n jQuery(this).css('height', jQuery(this).get(0).scrollHeight);\n });\n\n jQuery('#features')... | javascript | chosen |
[
{
"from": "system",
"value": "Add currentScript to eslint globals\n"
},
{
"from": "human",
"value": "module.exports = {\n \"env\": {\n \"browser\": true\n },\n \"extends\": \"eslint:recommended\",\n \"rules\": {\n \"indent\": [\n \"error\",\n 4\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Remove unused \"eslint-plugin-babel\" from ESLint configuration\n\nThe ESLint configuration contained the `babel` plugin that is not listed\nas dependency and is not used anyway.\nIt has been removed to also fix the error during the linting process.\n\nFixes GH-135\n"
},
{
... | javascript | chosen |
[
{
"from": "system",
"value": "sagas: Update redux-saga and add regenerator\n"
},
{
"from": "human",
"value": "import { takeEvery } from 'redux-saga';\nimport { call, put } from 'redux-saga/effects';\n\n\nconst defaultOptions = {\n throwErrors: false,\n};\n\n\nexport function sagasBuilder(reques... | javascript | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.