conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Fix close video on mobile view\n"
},
{
"from": "human",
"value": "import React from 'react'\n\nconst VideosTitleBar = ({ accents, accentSelected, selectAccent }) => {\n return (\n <div className='eam-card-wrapper'>\n <div className='eam-card mdl-card mdl-sh... | javascript | chosen |
[
{
"from": "system",
"value": "Remove ember-beta from npm testing\n\nReference issue #62\n"
},
{
"from": "human",
"value": "/*jshint node:true*/\nmodule.exports = {\n scenarios: [\n {\n name: 'default',\n bower: {\n dependencies: { }\n }\n },\n {\n name: 'embe... | javascript | chosen |
[
{
"from": "human",
"value": "Apply the selection buttons js to block labels\n\nUse GOV.UK selection-buttons.js to set selected and focused states for\nblock labels.\n\nDocumentation here:\nhttps://github.com/alphagov/govuk_frontend_toolkit/blob/master/docs/java\nscript.md#govukselectionbuttons\n"
},
{
... | javascript | chosen |
[
{
"from": "system",
"value": "Add autocomplete-jquery to assets pipeline\n"
},
{
"from": "human",
"value": "// This is a manifest file that'll be compiled into application.js, which will include all the files\n// listed below.\n//\n// Any JavaScript/Coffee file within this directory, lib/assets/... | javascript | chosen |
[
{
"from": "system",
"value": "Fix potential ReferenceError in non-browser env\n\nTesting for `window` would throw if undeclared.\r\nAlso, avoid repeating feature check."
},
{
"from": "human",
"value": "define(['globals'], function(globals) {\n 'use strict';\n\n // Wrap logging so it can be pus... | javascript | chosen |
[
{
"from": "system",
"value": "[122] Check element existence instead of windows path\n"
},
{
"from": "human",
"value": "var ready = function() {\n var rate = $('#js-user-rating').data('rate');\n document.getElementById(\"value_\" + rate).checked = true;\n};\n\nif(window.location.pathname.match(... | javascript | chosen |
[
{
"from": "system",
"value": "Adjust spacing around Group header\n"
},
{
"from": "human",
"value": "function controller($window, $location, toastr, currentUser) {\n this.canEdit = () => currentUser.isAdmin && this.group.type !== 'builtin';\n\n this.saveName = () => {\n this.group.$save();\n... | javascript | chosen |
[
{
"from": "system",
"value": "Fix bug where cancel messages weren't received.\n"
},
{
"from": "human",
"value": "/* eslint-env worker */\n/* eslint-disable camelcase */\n\n'use strict';\n\nvar build = require('../build');\nvar UglifyJS = require('uglify-js');\nvar zlib = require('zlib');\n\nvar ... | javascript | chosen |
[
{
"from": "system",
"value": "Send app version with tracking\n"
},
{
"from": "human",
"value": "'use strict';\n\n/*\n * Module for tracking user actions\n */\n\nangular.module('trackinghandler', [])\n.factory('trackingFactory', function ($ionicAnalytics, $window) {\n\n return {\n regis... | javascript | chosen |
[
{
"from": "system",
"value": "Fix for case when something is deleted in the left side and it is also deleted in the right side without refresh\n"
},
{
"from": "human",
"value": "(function() {\n \"use strict\";\n\n angular\n .module('awesome-app.search')\n .controller('SearchC... | javascript | chosen |
[
{
"from": "system",
"value": "Fix the issue about identity on playbook creation\n"
},
{
"from": "human",
"value": "var models = require('../../models')\nvar mongoose = require('mongoose')\n\nvar playbook = require('./playbook')\n\nexports.unauthorized = function (app, template) {\n\ttemplate([\n... | javascript | chosen |
[
{
"from": "system",
"value": "Move export to the bottom\n"
},
{
"from": "human",
"value": "export default class ListController {\n constructor() {\n this.candidates = [{name: \"Jane\", id: 1}, {name: \"John\", id: 2}];\n }\n}\n"
},
{
"from": "gpt",
"value": "class ListController... | javascript | chosen |
[
{
"from": "system",
"value": "Make blocks selected true by default\n"
},
{
"from": "human",
"value": "import Backbone from 'backbone';\nvar Category = require('./Category');\n\nmodule.exports = Backbone.Model.extend({\n defaults: {\n // If true, triggers an 'active' event on dropped componen... | javascript | chosen |
[
{
"from": "system",
"value": "Check if digest is in progress and apply callback on-infinite\n"
},
{
"from": "human",
"value": "angular.module('ngNephila.components.infinitescroll', [\n 'ngNephila.services.visibleInContainer'\n])\n.directive('infiniteScroll', [\n '$window', 'visibleInContainer'... | javascript | chosen |
[
{
"from": "system",
"value": "Work around invalid default encoding option in csv-stream\n\nAs of Node.js 8, the default encoding value used by the (very old)\ncsv-stream module is not accepted.\n\nAs mentioned in https://github.com/lbdremy/node-csv-stream/issues/13,\nexplicitly setting the encoding to undef... | javascript | chosen |
[
{
"from": "system",
"value": "Add lookup by user ID.\n"
},
{
"from": "human",
"value": "var nazgul = require('./nazgul');\nvar async = nazgul.async,\n await = nazgul.await,\n Log = nazgul.Log,\n sprintf = nazgul.sprintf,\n URI = nazgul.URI,\n Twitch = nazgul.Twitch;\n\nvar showUse... | javascript | chosen |
[
{
"from": "system",
"value": "Add tests for new API requests\n"
},
{
"from": "human",
"value": "'use strict'\n\nvar lfmAPI = require('../modules/lfmAPI.js')\n\ndescribe('Module for making requests to Last.fm API', function () {\n describe('artist.getInfo', function () {\n it('gets info... | javascript | chosen |
[
{
"from": "system",
"value": "Prepare to push repo into Github by changing database URI\n"
},
{
"from": "human",
"value": "const express = require('express');\nconst bodyParser = require('body-parser');\nconst mongoose = require('mongoose');\nconst contactRoutes = require('./routes/contactsRoute... | javascript | chosen |
[
{
"from": "system",
"value": "Fix for global package, style changes\n\nChange-Id: I351fbcc07dcdb8080c84f55168df0eeec773c632\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\n\n/*\n * Copyright (C) 2022 Google Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 ... | javascript | chosen |
[
{
"from": "system",
"value": "Update multi match query docs\n\nWhy:\nTo conform with jsdocs\nhttp://usejsdoc.org/tags-param.html#optional-parameters-and-default-values\n\nThis change addresses the need by:\nUpdating the doc\n"
},
{
"from": "human",
"value": "/**\n * Construct a Multi Match query... | javascript | chosen |
[
{
"from": "system",
"value": "Add alternative names for pg\n\nrefs #3864\n- map alternative valid pg names to pg\n"
},
{
"from": "human",
"value": "var sqlite3 = require('./sqlite3'),\n mysql = require('./mysql'),\n pg = require('./pg');\n\n\nmodule.exports = {\n sqlite3: sqlite3... | javascript | chosen |
[
{
"from": "system",
"value": "Exit program on uncaught/unhandled errors\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst log = require('silk-alog');\nconst Vibrator = require('silk-vibrator').default;\nconst wifi = require('silk-wifi').default;\nconst Input = require('silk-input').defau... | javascript | chosen |
[
{
"from": "system",
"value": "Support .handlebars & .hjs exts for templates\n\nSee\nhttps://github.com/emberjs/ember-rails/blob/master/lib/ember/handlebars/template.rb#L44\n"
},
{
"from": "human",
"value": "module.exports = {\n compile: {\n options: {\n templateName: function(filename) ... | javascript | chosen |
[
{
"from": "system",
"value": "Make overview page links work nicely in different environments\n\n+ baseURl shouldn't be set to production URL; this breaks the app in development and demo environments\n+ Plus the URL can change over time\n"
},
{
"from": "human",
"value": "(function() {\n // Routi... | javascript | chosen |
[
{
"from": "system",
"value": "Make CP dependeny upon membership\n"
},
{
"from": "human",
"value": "import Ember from 'ember';\n\nexport default Ember.Component.extend({\n tagName: 'span',\n classNames: ['input-group-addon'],\n\n /** @type {Boolean} Whether errors will show even if no value */... | javascript | chosen |
[
{
"from": "system",
"value": "Disable h2 push on the site\n"
},
{
"from": "human",
"value": "const path = require('path')\nconst packages = require('./docs-yaml')().filter(\n ({ title }) => title === 'Packages'\n)[0].items\n\nmodule.exports = {\n siteMetadata: {\n siteUrl: 'https://emotion.... | javascript | chosen |
[
{
"from": "system",
"value": "Return the proper error message if there is one\n"
},
{
"from": "human",
"value": "import queryString from \"query-string\";\n\nclass Api {\n static get(url, data = {}) {\n return this.request(url + (Object.keys(data).length > 0 ? ('?' + queryString.string... | javascript | chosen |
[
{
"from": "system",
"value": "Rename prop for image source to imageSource instead of text\n"
},
{
"from": "human",
"value": "import React, { Component } from 'react';\nimport { TouchableOpacity, Image, View } from 'react-native';\n// import styles from './styles/ClickableImageStyle';\nimport Pro... | javascript | chosen |
[
{
"from": "system",
"value": "[FEATURE] Use gotHot and getCold RippleAddress methods in controller.\n"
},
{
"from": "human",
"value": "var User = require('../models/user');\nvar RippleAddress = require('../models/ripple_address');\n\nmodule.exports = (function() {\n function index(req, res) {\n... | javascript | chosen |
[
{
"from": "system",
"value": "Put 'use strict' inside your module, so other projects aren't forced to be strict\n"
},
{
"from": "human",
"value": "'use strict';\n\n(function(angular) {\n var devise = angular.module('Devise', []);\n\n // @include ../401.js\n // @include ../auth.js\n})(an... | javascript | chosen |
[
{
"from": "system",
"value": "Remove regular expression as condition for new reminder\n"
},
{
"from": "human",
"value": "const { IntentDialog, DialogAction, EntityRecognizer } = require('botbuilder');\nconst consts = require('../helpers/consts');\nconst config = require('../../config');\nconst u... | javascript | chosen |
[
{
"from": "system",
"value": "Update to current master.\n`IPython.notebook.notebook_path` now returns the complete path including the notebook name.\n"
},
{
"from": "human",
"value": "// convert current notebook to html by calling \"ipython nbconvert\" and open static html file in new tab\n\"usi... | javascript | chosen |
[
{
"from": "system",
"value": "Add example tests for the drag and drop behaviour\n"
},
{
"from": "human",
"value": "describe('the Basic example page', function () {\n var basicExamplePage = require('./page.js');\n\n beforeEach(function () {\n basicExamplePage.get();\n });\n\n describe('ren... | javascript | chosen |
[
{
"from": "system",
"value": "Add chapter 7, exercise 3\n"
},
{
"from": "human",
"value": "class PGroup {\n constructor(members) {\n this.members = members;\n }\n\n add(elem) {\n if (this.has(elem)) return this;\n return new PGroup(this.members.concat(elem));\n }... | javascript | chosen |
[
{
"from": "system",
"value": "Set default headers to not use cache when performing requests.\n"
},
{
"from": "human",
"value": "exports.update = {\n\tentryFile: 'index.html',\n\theaders: {\n\t\t'x-request-from': 'cordova-code-swap'\n\t},\n\ttimeout: 30000\n};\n\nexports.instance = {\n\tbackupCou... | javascript | chosen |
[
{
"from": "system",
"value": "Remove smushit from production build\n"
},
{
"from": "human",
"value": "var Version = require('node-version-assets');\nvar criticalCSS = require('critical');\nvar smushit = require('node-smushit');\n\nvar versionInstance = new Version({\n assets: ['build/styles/mai... | javascript | chosen |
[
{
"from": "system",
"value": "Make the Amazon:S3:CopyObject example nicer\n"
},
{
"from": "human",
"value": "var fmt = require('fmt');\nvar awssum = require('awssum');\nvar amazon = awssum.load('amazon/amazon');\nvar S3 = awssum.load('amazon/s3').S3;\n\nvar env = process.env;\nvar ac... | javascript | chosen |
[
{
"from": "system",
"value": "Update enabledFeatures to use a Set.\n\nThis also fixes a bug where enabled features could be mutated via the global value as it was not dereferenced before.\n"
},
{
"from": "human",
"value": "/**\n * Feature flags.\n *\n * Site Kit by Google, Copyright 2021 Google ... | javascript | chosen |
[
{
"from": "system",
"value": "Add paragraph tag in hello template."
},
{
"from": "human",
"value": "\"use strict\";\r\n\r\n(function (app) {\r\n\r\n app.HttpService = ng.core\r\n .Class({\r\n constructor: function () {},\r\n http: function () {\r\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Remove the Rangle logo from menu\n"
},
{
"from": "human",
"value": "import React from 'react';\n\nfunction Navigator({ children, ...props }) {\n return (\n <nav data-testid={ props.testid } className=\"flex items-center p1 bg-white border-bottom\">\n { chil... | javascript | chosen |
[
{
"from": "system",
"value": "Fix Component import on test\n"
},
{
"from": "human",
"value": "/* eslint-env jest */\nimport React from 'react';\nimport { shallow } from 'enzyme';\n\nimport { <%= componentName %> } from './Component';\n\ndescribe('<%= componentName %>', () => {\n it('should ren... | javascript | chosen |
[
{
"from": "system",
"value": "Fix capital Q issue with directive\n"
},
{
"from": "human",
"value": "/**\n * Created by Dylan on 3/31/2015.\n */\n\n'use strict';\n\nvar app = angular.module('courses');\napp.directive('studentQuestionView', function () {\n return {\n restrict: 'AE',\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Make accompanying changes to DB when cancelling Gift Aid declaration.\n"
},
{
"from": "human",
"value": "import React from 'react'\n\nexport default class GiftAidButton extends React.Component {\n constructor (props) {\n super (props)\n this.state = { confirm... | javascript | chosen |
[
{
"from": "system",
"value": "Hide progress bar when socket connection is lost\n"
},
{
"from": "human",
"value": "'use strict';\n\nangular.module('sgApp')\n .controller('AppCtrl', function($scope, ngProgress) {\n\n // ngProgress do not respect styles assigned via CSS if we do not pass empt... | javascript | chosen |
[
{
"from": "system",
"value": "Fix mobile by removing default param values from vectorHelper\n"
},
{
"from": "human",
"value": "// This file could have a better name\n\nfunction rand(min = 0, max = 1) {\n return min + Math.random() * (max - min);\n}\n\nfunction randStart(rangeX, rangeY, rangeZ) ... | javascript | chosen |
[
{
"from": "system",
"value": "feat(users): Fix \"signin\" promise return warning\n"
},
{
"from": "human",
"value": "'use strict';\n\n/**\n * Module dependencies.\n */\nvar path = require('path'),\n db = require(path.resolve('./config/lib/sequelize')),\n passport = require('passport'),\n Local... | javascript | chosen |
[
{
"from": "system",
"value": "Remove block of code that doesn't um actually work\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar Test = require('tape');\nvar Path = require('path');\nvar Fs = require('fs');\n\nprocess.env.BEST_ASSET_READ_HOST = 'http://localhost:3000';\nprocess.env.BEST_... | javascript | chosen |
[
{
"from": "system",
"value": "Add form to account detail\n"
},
{
"from": "human",
"value": "import React from 'react'\n\nconst Details = ({ match }) => (\n <div className=\"container-full-page\">Details - {match.params.id}</div>\n)\n\nexport default Details\n"
},
{
"from": "gpt",
"v... | javascript | chosen |
[
{
"from": "system",
"value": "Switch to hash-based routing so that it works with firebase. Fine for dev and home screened app won't see\n"
},
{
"from": "human",
"value": "import { applyMiddleware, compose, createStore } from 'redux';\nimport rootReducer from '../reducers';\nimport { devTools }... | javascript | chosen |
[
{
"from": "system",
"value": "Load redactor relatively so it can be included in app/assets\n"
},
{
"from": "human",
"value": "//= require ./redactor\n//= require ./config-setup\n//= require refinery-redactor/config\n//= require ./boot\n"
},
{
"from": "gpt",
"value": "//= require refi... | javascript | chosen |
[
{
"from": "system",
"value": "Speed up icons module import\n\n ## What was the problem?\nI observed that doing a simple import of bootstrap-vue:\n\n```js\nimport BootstrapVue from 'bootstrap-vue';\n```\n\ntakes hundreds of milliseconds (give or take, depending on user's CPU).\n\nI tried to do some profiling... | javascript | chosen |
[
{
"from": "system",
"value": "Add background color for Toolbar\n\nFix #90\n"
},
{
"from": "human",
"value": "import React from 'react'\nimport { inject, observer } from 'mobx-react'\nimport Toolbar from './Toolbar'\nimport ToolbarIndicator from './ToolbarIndicator'\n\n@inject('userStore')\n@obse... | javascript | chosen |
[
{
"from": "system",
"value": "Fix regression with deep linking\n"
},
{
"from": "human",
"value": "import window from 'global';\nimport React, { Component } from 'react';\nimport PropTypes from 'prop-types';\n\n// this component renders an iframe, which gets updates via post-messages\nexport clas... | javascript | chosen |
[
{
"from": "system",
"value": "Update Dates library, fix hour format and rename 'monthDayYear' to 'dayMonthYear'\n"
},
{
"from": "human",
"value": "import moment from 'moment';\nimport 'moment/locale/fr';\nimport 'moment-timezone';\n\nmoment.locale('fr');\n\nexport const monthDayYear = (timestamp... | javascript | chosen |
[
{
"from": "system",
"value": "Add missing semicolons in Travis.Controllers.Builds.List\n"
},
{
"from": "human",
"value": "Travis.Controllers.Builds.List = SC.ArrayProxy.extend({\n parent: null,\n repositoryBinding: 'parent.repository',\n contentBinding: 'parent.repository.builds',\n\n init: ... | javascript | chosen |
[
{
"from": "system",
"value": "Update Songza connector to work with new site layout changes.\n"
},
{
"from": "human",
"value": "/**\n * Lullaby - Songza connector\n * by Matt Runkle\n *\n * https://github.com/runkalicious/lullaby\n *\n * Use of this source code is governed by the MIT license\n * ... | javascript | chosen |
[
{
"from": "system",
"value": "Improve test for aggregated statistics\n"
},
{
"from": "human",
"value": "/* eslint-env node, mocha */\nconst expect = require('chai').expect\nimport accountStatistics from '../src/index'\n\ndescribe('statistics', () => {\n it('can calculate all statistics', () => ... | javascript | chosen |
[
{
"from": "system",
"value": "Make unsupported files have lower opacity\n"
},
{
"from": "human",
"value": "import React, { PropTypes } from 'react';\n\nconst UnsupportedFile = ({ name }) => (\n <li>\n <span>{name}</span>\n </li>\n);\n\nUnsupportedFile.propTypes = {\n name: PropTypes.string... | javascript | chosen |
[
{
"from": "system",
"value": "Fix path for clipping script\n"
},
{
"from": "human",
"value": "var kindleMyClippings = require('kindle-my-clippings');\nvar fs = require('fs');\n\nvar options = {\n file: 'public/data/MyClippings.txt',\n format: 'json'\n};\n\nkindleMyClippings.init(options, funct... | javascript | chosen |
[
{
"from": "system",
"value": "Check for auto reports send ever 5 min\n"
},
{
"from": "human",
"value": "import { Meteor } from 'meteor/meteor';\nimport moment from 'moment';\n\nimport { sendReports } from '../../lib/imports/sendReports';\n\nconst CHECK_INTERVAL = {\n minutes: 1,\n};\n\nfunction... | javascript | chosen |
[
{
"from": "system",
"value": "Add Account.secret field to mongodb\n"
},
{
"from": "human",
"value": "var wompt = require(\"../includes\"),\nmongoose = wompt.mongoose,\nObjectId = mongoose.Schema.ObjectId;\n\nvar Account = new mongoose.Schema({\n\t'display_name' : String\n\t,'name' :... | javascript | chosen |
[
{
"from": "system",
"value": "Use settings.containerClass and settings.paginatorClass on ajax call\n\notherwise we can't use multiple pagemore buttons and containers inside\nthe same page\n"
},
{
"from": "human",
"value": "(function($) {\n $.fn.pagemore = function(options) {\n var sett... | javascript | chosen |
[
{
"from": "system",
"value": "Fix \"Save & Continue\" + Payment Profiles.\n\nPreviously, the save & continue button would not be removed when\ncombined with certain payment profile options.\n\nFixes #102\n"
},
{
"from": "human",
"value": "//= require spree/frontend\n\nSpreePaypalExpress = {\n h... | javascript | chosen |
[
{
"from": "system",
"value": "Fix: Fix entry point and rename Node project\n"
},
{
"from": "human",
"value": "console.log(\"Starting Statik Website...\");\nrequire(\"./app.js\").listen(process.env.PORT || 3000, function() {\n console.log(\"Statik Website listening on port \" + port + \"!\");\... | javascript | chosen |
[
{
"from": "system",
"value": "Make function name match the module name.\n"
},
{
"from": "human",
"value": "/*global define*/\ndefine(function() {\n \"use strict\";\n\n var context2DsByWidthAndHeight = {};\n\n /**\n * Extract a pixel array from a loaded image. Draws the image\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Increase space between stacked nodes and their labels\n\nFixes #1003.\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport _ from 'lodash';\n\nfunction dissoc(obj, key) {\n const newObj = _.clone(obj);\n delete newObj[key];\n return newObj;\n}\n\... | javascript | chosen |
[
{
"from": "system",
"value": "Fix warning message caused by d5ee6ed\n"
},
{
"from": "human",
"value": "define( [ \"store/TwitchSerializer\" ], function( TwitchSerializer ) {\n\n\treturn TwitchSerializer.extend({\n\t\tprimaryKey: \"name\",\n\n\t\tmodelNameFromPayloadKey: function() {\n\t\t\tretur... | javascript | chosen |
[
{
"from": "system",
"value": "Fix using of wrong controller instance\n\non rendering edit form for creating new data object\n"
},
{
"from": "human",
"value": "import EditFormRoute from './edit-form';\n\nexport default EditFormRoute.extend({\n model: function() {\n // NOTE: record.id is null.... | javascript | chosen |
[
{
"from": "system",
"value": "Update browser target build with new classes\n"
},
{
"from": "human",
"value": "import XFlow from './xflow';\nimport XFlowStruct from './xflow-struct';\nimport XFlowMutableStruct from './xflow-mutable-struct';\nimport XFlowDispatcher from './x... | javascript | chosen |
[
{
"from": "system",
"value": "[ENH] jcapture: Implement token authorisation and reconfigure file data to upload into filegallery\n\ngit-svn-id: a7fabbc6a7c54ea5c67cbd16bd322330fd10cc35@42026 b456876b-0849-0410-b77d-98878d47e9d5\n"
},
{
"from": "human",
"value": "// (c) Copyright 2002-2012 by aut... | javascript | chosen |
[
{
"from": "system",
"value": "Add time delay before each line of ascii art\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar ascii_art = require('../../ascii-art.js');\n\nfunction messageListener(db, from, channel, message) {\n var img_regex = /^https?:\\/\\/[^ ]+\\.(png|jpg|gif)$/i;\n\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Remove attachment url methods from tresdb-urls in favour of server-side\n"
},
{
"from": "human",
"value": "/* eslint-disable no-var */\nvar config = window.tresdb.config\nvar urljoin = require('url-join')\n\nexports.attachmentUrl = function (attachment) {\n return ... | javascript | chosen |
[
{
"from": "system",
"value": "Support html on descriptive buttons\n"
},
{
"from": "human",
"value": "import PropTypes from 'prop-types';\nimport React from 'react';\n\n/**\n *\n */\nconst DescriptiveButton = (props) => {\n const { imageUrl, label, svgIcon, description, onClick, className, id } ... | javascript | chosen |
[
{
"from": "system",
"value": "Add test for deleting message\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport expect from 'expect';\nimport { mount } from 'enzyme';\nimport styles from '../../src/chat.scss';\nimport Message from '../../src/components/messages/Message';\n\ncon... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"Travis CI 실패 일어나는 것 테스트를 위해 일부러 실패시킴\"\n\nThis reverts commit 758b1e7e80c54a8af85c2ba4e5377101ccc3adab.\n"
},
{
"from": "human",
"value": "describe('Actor', function() {\n var actor;\n\n beforeEach(function() {\n actor = new Actor();\n });\n... | javascript | chosen |
[
{
"from": "system",
"value": "Expand the entire job definition by default\n"
},
{
"from": "human",
"value": "import Ember from 'ember';\nimport JSONFormatterPkg from 'npm:json-formatter-js';\n\nconst { Component, computed, run } = Ember;\n\n// json-formatter-js is packaged in a funny way that em... | javascript | chosen |
[
{
"from": "system",
"value": "Use aria-current selector instead of class\n"
},
{
"from": "human",
"value": "import React from 'react'\nimport styled from 'styled-components'\nimport { NavLink as Link } from 'react-router-dom'\n\nconst Nav = styled.nav`\n display: flex;\n justify-content: cente... | javascript | chosen |
[
{
"from": "system",
"value": "Change meta attribute to name, not property\n"
},
{
"from": "human",
"value": "import React from 'react'\nimport PropTypes from 'prop-types'\n\nimport Head from 'v2/components/UI/Head'\n\nconst Description = ({ children: description }) => (\n <Head>\n <meta prop... | javascript | chosen |
[
{
"from": "system",
"value": "Fix test scaffold (missing `include`).\n"
},
{
"from": "human",
"value": "var changeMe = require('namespace/skeleton');\n\nexports.testSomething = function () {\n assertTrue(true);\n};\n\nif (require.main == module.id) {\n require('ringo/unittest').run(exports... | javascript | chosen |
[
{
"from": "system",
"value": "Fix no default; .controller is r/o\n"
},
{
"from": "human",
"value": "\"use strict\";\n\nimport Controller from \"./Controller\";\nimport View from \"./View\";\n\n// private properties\nconst _controller = Symbol();\n\nexport default class ViewController extends Vie... | javascript | chosen |
[
{
"from": "system",
"value": "Add API for preventing close on click behavoir on map.\n"
},
{
"from": "human",
"value": "define( ['backbone', 'backbone.marionette', 'communicator', 'velocity',\n 'views/layout/app.layout', 'views/layout/flyouts.layout'],\n\n function( Backbone, Marionette... | javascript | chosen |
[
{
"from": "system",
"value": "Disable the extra font loading for paper-styles\n\nThis will only affect the polymer 3 and abovce as its on available from 3.0\n\nChange-Id: Iba11ad7f9b7401ee13fe310bde4aef6ae2aba28f\n"
},
{
"from": "human",
"value": "/**\n * @license\n * Copyright (C) 2019 The Andr... | javascript | chosen |
[
{
"from": "system",
"value": "Swap out comments in webfont loader for real example\n"
},
{
"from": "human",
"value": "// eslint-disable-next-line\nWebFontConfig = {\n typekit: {\n id: ''\n },\n google: {\n families: []\n },\n timeout: 2000,\n active: function() { clearFout(); },\n i... | javascript | chosen |
[
{
"from": "system",
"value": "Fix profile edit functions for blobstore\n"
},
{
"from": "human",
"value": "$(document).ready(function() {\n showCurrentUserInfo();\n setImageFormAction();\n populatePrefilled('interests');\n populatePrefilled('skills');\n});\n\n/**\n * Populates inputs with cur... | javascript | chosen |
[
{
"from": "system",
"value": "Add e-mail for user profile edit form\n"
},
{
"from": "human",
"value": "$(document).ready(function() {\n showCurrentUserInfo();\n setImageFormAction('profile');\n populatePrefilled('interests');\n populatePrefilled('skills');\n});\n\n/**\n * Populates inputs wi... | javascript | chosen |
[
{
"from": "system",
"value": "Use numbers instead of percent in chart\n"
},
{
"from": "human",
"value": "$(document).ready(function () {\n google.charts.load('current', { packages: ['corechart', 'bar'] });\n google.charts.setOnLoadCallback(drawChart);\n\n function drawChart() {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Use xcode theme instead of default for highlight.js\n"
},
{
"from": "human",
"value": "import React, { PropTypes } from 'react';\n\nimport LanguageLink from '../../components/LanguageLink/LanguageLink';\n\nimport './Guide.scss';\nimport 'highlight.js/styles/default.... | javascript | chosen |
[
{
"from": "system",
"value": "Include overdue items in the \"today\" smart list\n\nTo keep parity between the CLI and the native GUI (at least for OSX), the Today smart list should include items that are Overdue as well as those explicitly due on that given day."
},
{
"from": "human",
"value": "... | javascript | chosen |
[
{
"from": "system",
"value": "Enhance css inlined in head example to avoid same file on the fs multiple times\n"
},
{
"from": "human",
"value": "// @flow\n\nimport * as React from \"react\";\n\nexport default ({ App, render }: PhenomicHtmlPropsType) => {\n const { html, Main, State, Script, Sty... | javascript | chosen |
[
{
"from": "system",
"value": "Fix ember data shouldReloadAll deprecation\n"
},
{
"from": "human",
"value": "import Ember from 'ember';\nimport DS from 'ember-data';\n\nexport default DS.RESTAdapter.extend({\n namespace: 'api/v1',\n pathForType: function(type) {\n return Ember.String.undersc... | javascript | chosen |
[
{
"from": "system",
"value": "Reduce string duplication in autodisovery code\n"
},
{
"from": "human",
"value": "/**\n * Utility methods used when querying a site in order to discover its available\n * API endpoints\n *\n * @module autodiscovery\n */\n'use strict';\n\nconst parseLinkHeader = requ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix mutated state in boardlist"
},
{
"from": "human",
"value": "import initialState from './initialState';\nimport { \n BOARD_LIST_LOADED, \n BOARD_LIST_REQUESTED,\n} from '../constants'\n\nexport default function (state=initialState.boardlist, action) {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "fix: Use relative resolve path for webpack\n"
},
{
"from": "human",
"value": "'use strict'\n\nconst path = require('path')\nconst { DefinePlugin, ContextReplacementPlugin } = require('webpack')\n\nconst SRC_DIR = path.resolve(__dirname, '../src')\n\n// See https://g... | javascript | chosen |
[
{
"from": "system",
"value": "Remove transparency param for electron\n"
},
{
"from": "human",
"value": "\"use strict\";\n\n/* eslint no-undef:0 */\nconst { app, BrowserWindow, nativeImage } = require(\"electron\");\nconst path = require(\"path\");\nconst url = require(\"url\");\n\nlet win;\n\nle... | javascript | chosen |
[
{
"from": "system",
"value": "Fix Open Torrent Address modal\n\nFixes a bug introduced in 0.14.0: cicking OK works, but hitting Enter doesn't do anything\n"
},
{
"from": "human",
"value": "const React = require('react')\nconst TextField = require('material-ui/TextField').default\n\nconst ModalOK... | javascript | chosen |
[
{
"from": "system",
"value": "Set maxBuffer when spawning child process\n"
},
{
"from": "human",
"value": "var path = require('path')\nvar exec = require('child_process').exec\nvar chdir = require('chdir')\nmodule.exports = function (config, cb) {\n if (!config.source) {\n cb(new Error('Sour... | javascript | chosen |
[
{
"from": "system",
"value": "Use schema examples in 'request example'\n"
},
{
"from": "human",
"value": "var Handlebars = require('handlebars');\nvar common = require('../lib/common');\nvar _ = require('lodash');\n\nmodule.exports = function(reference, options) {\n if (!reference) {\n conso... | javascript | chosen |
[
{
"from": "system",
"value": "Fix small num of data issue on PHP MQTT Dashboard\n"
},
{
"from": "human",
"value": "function dataReduction(data, maxNum)\r\n{\r\n\tvar result = []\r\n\tfor(var j=0, c=data.length; j<c; j++){\r\n\t\tvar vals = []\r\n\t\tfor(var i=0, num=data[j].length, step=Math.rou... | javascript | chosen |
[
{
"from": "system",
"value": "Mark selected country in the country list\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar _ = require('lodash');\nvar $ = require('jquery');\n\nfunction render(container, options) {\n options = _.extend({\n countries: [],\n baseUrl: ''\n }, options);... | javascript | chosen |
[
{
"from": "system",
"value": "Fix currency input when validating after typing multiple times.\n"
},
{
"from": "human",
"value": "angular.module( 'gj.Form' ).directive( 'gjFormCurrencyInput', function( currencyFilter )\n{\n\tvar CURRENCY_REGEXP = /^[0-9]*(?:\\.[0-9]{0,2})?$/;\n\n\treturn {\n\t\tr... | javascript | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.