conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Remove debugging graph from JsonUl test\n"
},
{
"from": "human",
"value": "/*global describe, it*/\nvar expect = require('../unexpected-with-plugins'),\n AssetGraph = require('../../lib');\n\ndescribe('relations/JsonUrl', function () {\n it('should get the hre... | javascript | chosen |
[
{
"from": "system",
"value": "Fix dist filename workaround for webpack error: Error: a dependency to an entry point is not allowed\n"
},
{
"from": "human",
"value": "module.exports = {\n // Need an array instead of just a string, I think because Karma\n // makes two builds where one requires t... | javascript | chosen |
[
{
"from": "system",
"value": "Add support for links to references at mods\n"
},
{
"from": "human",
"value": "import React from 'react';\n\nconst ReferenceCell = (refs) => {\n return refs && refs.map((ref) => {\n if (ref.pubMedId && ref.pubMedUrl) {\n return <a href={ref.pubMedUrl}>{ref.... | javascript | chosen |
[
{
"from": "system",
"value": "Fix camera entity picture 401\n"
},
{
"from": "human",
"value": "import Polymer from '../polymer';\nimport hass from '../util/home-assistant-js-instance';\n\nconst { moreInfoActions } = hass;\n\nconst UPDATE_INTERVAL = 10000; // ms\n\nexport default new Polymer({\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add stubbed out test to prevent fake failures\n"
},
{
"from": "human",
"value": "// Copyright (c) Microsoft Open Technologies, Inc. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.\n//... | javascript | chosen |
[
{
"from": "system",
"value": "Add TypeError thrown when a non-String/Array argument is provided\n"
},
{
"from": "human",
"value": "\"use strict\";\n\nfunction transformWildcardToPattern(wildcardString) {\n var length = wildcardString.length;\n var character;\n var pattern = '';\n for (var in... | javascript | chosen |
[
{
"from": "system",
"value": "Edit link function. Add controller\n"
},
{
"from": "human",
"value": "// js/directives/nw-category-select.directive\n\n(function() {\n \"use strict\";\n\n angular.module(\"NoteWrangler\")\n .directive(\"nwCategorySelect\", nwCategorySelectDirective);\n\n nwCat... | javascript | chosen |
[
{
"from": "system",
"value": "Remove the redundant \"appname\" global option\n"
},
{
"from": "human",
"value": "(function() {\n\t\"use strict\";\n\tvar nopt = require(\"nopt\"),\n\t\tpath = require(\"path\"),\n\t\tknownOpts = {\n\t\t\t\"log\" : String,\n\t\t\t\"verbose\" : Boolean,\n\t\t\t\"down... | javascript | chosen |
[
{
"from": "system",
"value": "Use a valid port from env\n"
},
{
"from": "human",
"value": "require('../../../support/test_helper.js');\n\nvar _ = require('underscore');\nvar assert = require('assert');\nvar cartodbServer = require('../../../../lib/cartodb/server');\nvar serverOptions = require('... | javascript | chosen |
[
{
"from": "system",
"value": "Fix to can receive notification by Hook\n"
},
{
"from": "human",
"value": "(function(){\n var onMessageCreated = function(session, store) {\n return function(data) {\n store.find('message', data.message.id).then(function(message) {\n var room = mess... | javascript | chosen |
[
{
"from": "system",
"value": "Switch from toggling visibility to switching on stored state in preparation for allow individual scenarios to toggle.\n"
},
{
"from": "human",
"value": "'use strict';\n\n// Expand/collapse details.\n$(function() {\n function expandCollapseDetails() {\n var featu... | javascript | chosen |
[
{
"from": "system",
"value": "Add support for sending messages from the text field with \"return\"\n"
},
{
"from": "human",
"value": "$(document).ready(function () {\n var socket = io.connect('http://localhost:3000');\n\n socket.on('messagerecieved', function (message) {\n $('#message-list'... | javascript | chosen |
[
{
"from": "system",
"value": "Add modal-dialog toolbar visibility test\n"
},
{
"from": "human",
"value": "import { moduleForComponent, test } from 'ember-qunit';\nimport hbs from 'htmlbars-inline-precompile';\nimport wait from 'ember-test-helpers/wait';\nimport Ember from 'ember';\n\nmoduleForCo... | javascript | chosen |
[
{
"from": "system",
"value": "Fix ScreenSquish message to show when the right information arrived\n"
},
{
"from": "human",
"value": "TouchUI.prototype.plugins.screenSquish = function(softwareUpdateViewModel, pluginManagerViewModel) {\r\n\r\n\tsoftwareUpdateViewModel.versions.items.subscribe(func... | javascript | chosen |
[
{
"from": "human",
"value": "Complete native class iris method base\n"
},
{
"from": "gpt",
"value": "import { IrisDev } from '../util';\nimport { IrisMethod } from \"../core\";\nimport {\n method_object_sym\n } from \"../util/iris_symbol\";\n\nexport default class IrisMethodBase {\n\n n... | javascript | chosen |
[
{
"from": "system",
"value": "Remove blueprint comment in tests"
},
{
"from": "human",
"value": "import Ember from 'ember';\nimport DS from 'ember-data';\nimport EmberCliUuidInitializer from '../../../initializers/ember-cli-uuid';\nimport { module, test } from 'qunit';\n\nlet application;\n\ncon... | javascript | chosen |
[
{
"from": "system",
"value": "Update data check and ellipsis regex\n"
},
{
"from": "human",
"value": "'use babel';\n\nimport { Writable } from 'stream';\n\nconst ELLIPSIS = /[.]{3,}/g;\n\nexport default class NodeReplWriteStream extends Writable {\n\n constructor(element) {\n super({ decodeS... | javascript | chosen |
[
{
"from": "system",
"value": "Allow parsing directories directly too\n\nMake the parent’s filePath optional.\n"
},
{
"from": "human",
"value": "const fs = require('fs')\nconst util = require('util')\nconst path = require('path')\n\nconst readdir = util.promisify(fs.readdir)\n\nasync function par... | javascript | chosen |
[
{
"from": "system",
"value": "Use shorthand for null to set title and message to undefined.\n\nAlso undid change to formatting of return in render.\n"
},
{
"from": "human",
"value": "'use strict';\n\nimport React from 'react';\nimport { ActionSheetIOS, View } from 'react-native';\n\nexport defau... | javascript | chosen |
[
{
"from": "system",
"value": "Fix for missing optionalSettings in overriden googleChartApiConfig value\n\nAt present one must always include optionalSettings:{} in the overriden googleChartApiConfig even when node optional settings are needed.\n"
},
{
"from": "human",
"value": "/* global angular... | javascript | chosen |
[
{
"from": "system",
"value": "Remove version constraint from minifier-css in standard-minifier-css.\n\nThis restriction was preventing the standard-minifier-css from getting\nthe latest updates to minifier-css. Typically, when publishing\na package outside of a release cycle, I believe we need to manually ... | javascript | chosen |
[
{
"from": "system",
"value": "Add inputmode for mobile safari\n"
},
{
"from": "human",
"value": "import {Observable} from 'rx'\nimport {div, input, label} from '@cycle/DOM'\n\nfunction renderInputField(value) {\n return input('.number-input .mdl-textfield__input',\n {type: 'number', value: v... | javascript | chosen |
[
{
"from": "system",
"value": "Make it a bit more demo-able\n"
},
{
"from": "human",
"value": "import Crafty from 'crafty';\nimport 'app/components/camera_relative_motion';\n\nCrafty.init(800,600, document.getElementById('game'));\nCrafty.background('#000');\n\nCrafty.e('2D, WebGL, Color, Fourway... | javascript | chosen |
[
{
"from": "system",
"value": "Fix multiple modal example not showing up\n"
},
{
"from": "human",
"value": "import React, { PureComponent } from 'react';\nimport { action } from '@storybook/addon-actions';\n\nimport Button from '@ichef/gypcrete/src/Button';\nimport Modal from '@ichef/gypcrete/src... | javascript | chosen |
[
{
"from": "system",
"value": "Deploy to GitHub pages [ci skip]\n"
},
{
"from": "human",
"value": "export default {\n BackgroundPlus: require(\"./backgrounds-plus.jpg\")\n}\n"
},
{
"from": "gpt",
"value": "import React from \"react\";\nimport Image from \"../../../components/Image\... | javascript | chosen |
[
{
"from": "system",
"value": "Make StatusButton a functional component\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport './status-button.scss';\nimport classnames from 'classnames';\n\nclass StatusButton extends React.Component {\n // Ideal setStatus would be defined on thi... | javascript | chosen |
[
{
"from": "system",
"value": "Remove needless and incorrect proptery"
},
{
"from": "human",
"value": "var EventEmitter = require(\"events\").EventEmitter;\n\nvar AppDispatcher = require(\"../AppDispatcher\");\nvar GroupsEvents = require(\"../events/GroupsEvents\");\n\nvar Util = require(\"../hel... | javascript | chosen |
[
{
"from": "system",
"value": "[attachments] Send error details when there's \"Corrupt image\"\n"
},
{
"from": "human",
"value": "\"use strict\";\n\nvar models = require('../../../models')\n , formidable = require('formidable')\n , AttachmentSerializer = models.AttachmentSerializer\n\nexports.a... | javascript | chosen |
[
{
"from": "system",
"value": "Add access token attrib to the User Model\n"
},
{
"from": "human",
"value": "var mongoose = require('mongoose');\nvar Schema = mongoose.Schema;\nvar ObjectId = Schema.ObjectId;\n\nvar UserSchema = new Schema({\n\t// basic\n\tname: { type: String },\n\tloginname: { t... | javascript | chosen |
[
{
"from": "system",
"value": "Check for open graph images as well\n"
},
{
"from": "human",
"value": "const cheerio = require('cheerio');\nconst url = require('url');\n\nfunction hrefIsIcon(href) {\n return /((icon.*\\.(png|jpg))|(\\w+\\.ico))/.test(href);\n}\n\nfunction getDomainUrl(someUrl) ... | javascript | chosen |
[
{
"from": "system",
"value": "Add announcer UI to UI list and set it to autoload.\n"
},
{
"from": "human",
"value": "var UI = UI || {};\nUI.Modules = {\n \"character\": { core: true },\n \"chat\": { core: true },\n \"errormessages\": { core: true },\n \"kills\": { core: true },\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Remove undefined State type from test component definition\n"
},
{
"from": "human",
"value": "\n/* @flow */\n\nimport React, { Element, Component } from \"react\"\n\ntype Props = {\n onClick?: () => void,\n}\n\nclass MyComponent extends Component<void, Props, State... | javascript | chosen |
[
{
"from": "system",
"value": "Add support for directories in CLI\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\n'use strict';\nvar path = require('path');\nvar globby = require('globby');\nvar meow = require('meow');\nvar updateNotifier = require('update-notifier');\n\nvar cli = meow({\... | javascript | chosen |
[
{
"from": "system",
"value": "Use Data.commonStore in datastore creation.\n"
},
{
"from": "human",
"value": "/**\n * core/site data store\n *\n * Site Kit by Google, Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file ... | javascript | chosen |
[
{
"from": "system",
"value": "Remove debug from graphql query\n"
},
{
"from": "human",
"value": "import React, { PropTypes } from 'react';\nimport ReactDOM from 'react-dom';\nimport Relay from 'react-relay';\n\nimport CategoryPage from './components/categoryPage/CategoryPage';\nimport ProductFil... | javascript | chosen |
[
{
"from": "system",
"value": "Change componentDidUpdate logic to useEffect hook\n"
},
{
"from": "human",
"value": "import { PureComponent } from 'react';\nimport { connect } from 'react-redux';\nimport PropTypes from 'prop-types';\nimport reducerRegistry from 'redux/registry';\n\nimport * as act... | javascript | chosen |
[
{
"from": "system",
"value": "Convert crossorigin attribute tests to use dynamic imports\n"
},
{
"from": "human",
"value": "it(\"should load script without crossorigin attribute\", function(done) {\n\trequire.ensure([], function(require) {\n\t\trequire(\"./empty?a\");\n\t}, \"chunk-with-crossori... | javascript | chosen |
[
{
"from": "system",
"value": "Remove Time component's dependency on utils\n"
},
{
"from": "human",
"value": "/*\n * Semantic time element\n */\ndefine(['react', 'utils', 'moment'], function(React, Utils, Moment) {\n\n var Time = React.createClass({\n propTypes: {\n date: Rea... | javascript | chosen |
[
{
"from": "system",
"value": "Update the query time indicator to indicate when queries are in progress.\n"
},
{
"from": "human",
"value": "if (pulse === undefined)\n{\n\tvar pulse = {};\n}\n\npulse.dataPointsQuery = function (metricQuery, callback) {\n\tvar startTime = new Date();\n\t$.ajax({\n\... | javascript | chosen |
[
{
"from": "system",
"value": "Remove spinner after samples import error [SCI-1399]\n"
},
{
"from": "human",
"value": "var previousIndex;\nvar disabledOptions;\nvar loadingSamples = false;\n$('select').focus(function() {\n previousIndex = $(this)[0].selectedIndex;\n}).change(function() {\n var ... | javascript | chosen |
[
{
"from": "system",
"value": "Allow to pass STATE to event's toggleDetails()\n"
},
{
"from": "human",
"value": "/**\n * @class Denkmal_Component_Event\n * @extends Denkmal_Component_Abstract\n */\nvar Denkmal_Component_Event = Denkmal_Component_Abstract.extend({\n\n /** @type String */\n _clas... | javascript | chosen |
[
{
"from": "system",
"value": "Make PEM file read dependent on environment\n"
},
{
"from": "human",
"value": "const fs = require('fs');\nconst path = require('path');\nconst env = require('env2');\nenv('./config.env');\n\nconst YotiSDK = require('yoti-node-sdk');\nlet yotiClient;\n\nmodule.export... | javascript | chosen |
[
{
"from": "system",
"value": "Call toString on action type before displaying"
},
{
"from": "human",
"value": "import React, { Component } from 'react';\nimport JSONTree from 'react-json-tree';\n\nconst styles = {\n actionBar: {\n paddingTop: 8,\n paddingBottom: 7,\n paddingLeft: 16\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Support suffle of any iterable.\n"
},
{
"from": "human",
"value": "/**\n * Creates a new array with given values in randome order\n * @param {[Array]} values values to randomize\n * @return {[Array]} array of values in random order\n */\nexport function shuffle(val... | javascript | chosen |
[
{
"from": "system",
"value": "Fix ESLint error & onChange handler\n"
},
{
"from": "human",
"value": "import React, { Component } from 'react';\nimport { Line } from 'rc-progress';\nimport Form from 'shared/components/form/form';\nimport PropTypes from 'prop-types';\nimport FormSelect from 'share... | javascript | chosen |
[
{
"from": "system",
"value": "Rename admin to core (seeing as that's what it's currently called\n"
},
{
"from": "human",
"value": "export const services = {\n signup: {\n consumes: ['branch-created', 'branch-removed', 'branch-edited'],\n publishes: ['member-registered', 'send-email'],\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Change order of moment arguments\n"
},
{
"from": "human",
"value": "import moment from 'moment';\nimport 'moment-timezone';\nimport AbstractFormat from './abstract';\n\nexport default class DateFormat extends AbstractFormat {\n format(dateValue, dateFormat, locale,... | javascript | chosen |
[
{
"from": "system",
"value": "Remove reporter from gulp mocha options\n"
},
{
"from": "human",
"value": "const gulp = require('gulp');\nconst util = require('gulp-util');\nconst babel = require('gulp-babel');\nconst mocha = require('gulp-mocha');\nconst eslint = require('gulp-eslint');\nconst co... | javascript | chosen |
[
{
"from": "system",
"value": "Remove settings object from gulp-ruby-sass call\n"
},
{
"from": "human",
"value": "var gulp = require('gulp');\nvar sass = require('gulp-sass');\nvar rubySass = require('gulp-ruby-sass');\nvar rename = require('gulp-rename');\nvar Super = require('supercollider').in... | javascript | chosen |
[
{
"from": "system",
"value": "Add log message when running Gulp in development mode\n"
},
{
"from": "human",
"value": "var gulp = require('gulp');\nvar less = require('gulp-less');\nvar browserify = require('browserify');\nvar LessPluginCleanCSS = require('less-plugin-clean-css');\nvar cleancss ... | javascript | chosen |
[
{
"from": "system",
"value": "Add watching of sassdoc generation\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar gulp = require('gulp');\nvar sass = require('gulp-sass');\nvar sassdoc = require('sassdoc');\n\ngulp.task('sass', function () {\n return gulp.src('./assets/main.scss')\n .... | javascript | chosen |
[
{
"from": "system",
"value": "Fix sourcemaps for SASS 3.4.x\n"
},
{
"from": "human",
"value": "\n// * Gulpfile\n// * ---------------------\n// * This file contains the gulp build-process.\n// * ---------------------\n\n// * Core\n// * ---------------------\n\n// * Require gulp modules\n\nva... | javascript | chosen |
[
{
"from": "system",
"value": "Use function name with bind\n"
},
{
"from": "human",
"value": "define([\n 'jquery',\n 'underscore',\n 'backbone',\n 'app',\n 'text!templates/auth/signUpTemplate.html'\n], function($, _, Backbone, app, signUpTemplate){\n\n var SignUpView = Backbone.View.extend(... | javascript | chosen |
[
{
"from": "system",
"value": "Revert unecessary change to UserContext\n"
},
{
"from": "human",
"value": "import React from 'react';\n\nexport const UserContext = React.createContext('LWCurrentUser');\n\n// Higher-order component for providing the currently logged in user, assuming\n// the compon... | javascript | chosen |
[
{
"from": "system",
"value": "Update club name string replacement\n"
},
{
"from": "human",
"value": "'use strict';\n\nrequire('dotenv').config();\n\nconst low = require('lowdb');\nconst https = require('https');\n\n/*\n * Message\n * Put together the message to post to the chat\n * Arguements:... | javascript | chosen |
[
{
"from": "system",
"value": "Remove server-side rendering of styled-components as it doesn't work yet\n"
},
{
"from": "human",
"value": "import React, { Component } from 'react'\nimport Helmet from 'react-helmet'\nimport styleSheet from 'styled-components/lib/models/StyleSheet';\n\nexport defau... | javascript | chosen |
[
{
"from": "system",
"value": "Fix HTTP request forwarding bug\n"
},
{
"from": "human",
"value": "/* globals console */\n/* eslint no-console: 0 */\nimport http from 'http';\nimport { get } from 'lodash';\n\nimport { setResponse } from 'utils';\nimport { config } from 'environment';\n\n/**\n * Fo... | javascript | chosen |
[
{
"from": "system",
"value": "Remove code to remove leading ? on RQL queries\n"
},
{
"from": "human",
"value": "define([\n\t'rql/js-array',\n\t'dojo/_base/declare',\n\t'./Memory'\n], function (arrayEngine, declare, Memory) {\n\treturn declare([Memory], {\n\t\t// summary:\n\t\t// \t\tThis is a mi... | javascript | chosen |
[
{
"from": "system",
"value": "Remove token for absent panel in duplication frontend\n\nThis should have been omitted from #2704\n"
},
{
"from": "human",
"value": "import mirrorCreator from 'mirror-creator';\n\nexport const duplicationModes = mirrorCreator([\n 'OBJECT',\n 'COURSE',\n]);\n\n// T... | javascript | chosen |
[
{
"from": "system",
"value": "Fix WeChat widget not moving\n"
},
{
"from": "human",
"value": "/**\n * Menu\n */\n $(\"a.menu-icon\").on(\"click\", function(event) {\n var w = $(\".menu\");\n\n w.css({\n display: w.css(\"display\") === \"none\"\n ? \"block\"\n : \"none\"\n });... | javascript | chosen |
[
{
"from": "system",
"value": "Update cpu-model to be configurable by caller\n"
},
{
"from": "human",
"value": "/*global define*/\n\ndefine([\n 'underscore',\n 'backbone'\n], function (_, Backbone) {\n 'use strict';\n\n var GraphiteCpuModel = Backbone.Model.extend({\n url: '/ap... | javascript | chosen |
[
{
"from": "system",
"value": "Add additional audio file extensions: MPEG-Layer-2, Musepack, Matroska audio, WavePack\n"
},
{
"from": "human",
"value": "const mediaExtensions = {\n audio: [\n '.aac', '.aif', '.aiff', '.asf', '.dff', '.dsf', '.flac', '.m2a',\n '.m4a', '.m4b', '.mp2', '.mp3'... | javascript | chosen |
[
{
"from": "system",
"value": "Implement compile the entire input directory and output to the (current working|speciy) directory\n"
},
{
"from": "human",
"value": "import objectAssign from \"object-assign\";\nimport defaultOptions from \"./default-options\";\nimport Config from \"../config\";\nim... | javascript | chosen |
[
{
"from": "system",
"value": "Fix problem with system asking if you want to send empty answer\n\nThis happens even tough you've written an answer.\n\nThe problem was that we've made a change to how the text-value state\nis set. Previously it was set with the setState() function.\nHowever since text-value is... | javascript | chosen |
[
{
"from": "system",
"value": "Fix problem with system sending empty answers\n\nSome web browsers do not trigger the keyup or keydown events.\nOne of those web browsers is BluStar Agent.\nThis caused the system to think nothing had been entered into the fields.\n\nSolve this problem by both listenting to cha... | javascript | chosen |
[
{
"from": "system",
"value": "Support the specify the querystring when getQueryParam\n"
},
{
"from": "human",
"value": "/**\n * File: /src/webframe/static/js/getQueryParams.js\n * Author: Kenson Man <kenson@mansonsolutions.hk>\n * Date: 2020-06-10 16:21\n * Desc: Provide th... | javascript | chosen |
[
{
"from": "system",
"value": "Prepare tom-select controller to inherit others controllers\n"
},
{
"from": "human",
"value": "import { Controller } from \"stimulus\";\nimport TomSelect from \"tom-select\";\n\nexport default class extends Controller {\n static values = { options: Object };\n sta... | javascript | chosen |
[
{
"from": "system",
"value": "Fix a bug in Firefox with scrolling half pages\n\nIn newer Firefox versions (around version 63), the window.scrollBy call\nsometimes does not do anything at all, and later on will scroll the page\ntwice. This causes erratic behaviour when using half page scrolling with\nSaka ke... | javascript | chosen |
[
{
"from": "system",
"value": "Put back code to default to first tab"
},
{
"from": "human",
"value": "// hqDefine intentionally not used\n\n// Modified from\n// http://stackoverflow.com/questions/10523433/how-do-i-keep-the-current-tab-active-with-twitter-bootstrap-after-a-page-reload\n$(function(... | javascript | chosen |
[
{
"from": "system",
"value": "Remove hard-coded reference to addon-docs\n"
},
{
"from": "human",
"value": "import { inject as service } from '@ember/service';\nimport Component from '@ember/component';\nimport layout from './template';\nimport { computed } from '@ember/object';\nimport appFiles ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix tests for new Atom versions\n"
},
{
"from": "human",
"value": "'use babel';\n\ndescribe('Filesize plugin', () => {\n let workspaceView = null;\n beforeEach(() => {\n waitsForPromise(() => atom.workspace.open(`${__dirname}/fixtures/atom_icon.png`));\n wai... | javascript | chosen |
[
{
"from": "system",
"value": "[TPL_KAMELEON-ADMIN] Fix for script that can cause infinite loops under certain circumstances\n"
},
{
"from": "human",
"value": "if (typeof(Joomla) == 'undefined')\n{\n\tJoomla = {};\n}\nJoomla.submitbutton = function(pressbutton)\n{\n\treturn submitbutton(pressbutt... | javascript | chosen |
[
{
"from": "system",
"value": "Switch to Bungie's new reauth parameter for logout.\n"
},
{
"from": "human",
"value": "import uuidv4 from 'uuid/v4';\nimport { oauthClientId } from '../bungie-api/bungie-api-utils';\nimport template from './login.html';\nimport './login.scss';\n\nexport const LoginC... | javascript | chosen |
[
{
"from": "system",
"value": "Add axis titles to visits chart, move legend to right side.\n"
},
{
"from": "human",
"value": "google.charts.load('current', {'packages':['corechart']});\n\nfunction drawChart() {\n // Instead of the following, get the visits and days array from localStorage\n var... | javascript | chosen |
[
{
"from": "system",
"value": "Disable Simple Schema for now\n\nWe're trying to hash out the image updating process and the schema isn't\nhelping at this point.\n"
},
{
"from": "human",
"value": "import { Mongo } from 'meteor/mongo';\nimport { SimpleSchema } from 'meteor/aldeed:simple-schema';\n\... | javascript | chosen |
[
{
"from": "system",
"value": "Use config for env var in GraphQL service\n"
},
{
"from": "human",
"value": "\nimport logger from '../../utils/logger'\nconst amazonCPMCodes = require('./amazon-cpm-codes.json')\n\n/**\n * Change an Amazon CPM code into a CPM value\n * @param {string} amazonCPMCode ... | javascript | chosen |
[
{
"from": "system",
"value": "Put back game end after debug\n"
},
{
"from": "human",
"value": "var birdCanvas = document.getElementById(\"birdWindow\")\n\nclass Bird {\n\tconstructor() {\n\t\tthis.x = 10;\n\t\tthis.y = 150;\n\t\tthis.width = 10;\n\t\tthis.height = 10;\n\t\tthis.ctx = birdCanvas.... | javascript | chosen |
[
{
"from": "system",
"value": "Use MAIN_ROUTE to define / route\n"
},
{
"from": "human",
"value": "\"use strict\";\n\nangular.module(\n 'arethusa', [\n 'mm.foundation',\n 'ngRoute',\n 'arethusa.core',\n 'arethusa.morph',\n 'arethusa.hist'\n ],\n function($routeProvider) {\n $... | javascript | chosen |
[
{
"from": "system",
"value": "Use correct root URL for my bcup"
},
{
"from": "human",
"value": "const joinURL = require(\"url-join\");\n\n// const ROOT_URL = \"https://my.buttercup.pw\";\nconst ROOT_URL = \"http://localhost:8000\";\nconst ROOT_API = joinURL(ROOT_URL, \"/api/core/v1\");\n\nconst ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix AMD define syntax (I hope).\n"
},
{
"from": "human",
"value": "/*globals define, module, window */\n\n// This module contains functions for converting milliseconds\n// to and from CSS time strings.\n\n(function () {\n 'use strict';\n\n var regex = /^([\\-\... | javascript | chosen |
[
{
"from": "system",
"value": "Add query params to demo\n"
},
{
"from": "human",
"value": "import Ember from 'ember';\nimport burgerMenu from 'ember-burger-menu';\n\nconst {\n inject,\n computed\n} = Ember;\n\nexport default Ember.Controller.extend({\n application: inject.controller(),\n burg... | javascript | chosen |
[
{
"from": "system",
"value": "Fix bug where two or more audio can play at once\n"
},
{
"from": "human",
"value": "const AudioPlayer = new WeakMap();\n\nclass AudioPlayerService {\n constructor(ngAudio) {\n 'ngInject';\n\n AudioPlayer.set(this, ngAudio);\n }\n\n play(music) {\n if (mu... | javascript | chosen |
[
{
"from": "system",
"value": "Add shortcuts for every menu item\n"
},
{
"from": "human",
"value": "// Module\nangular.module('helmsman', [])\n\n// Get script path\nscriptPath = document.scripts[document.scripts.length-1].src\ntemplatePath=(scriptPath).replace(\"helmsman.js\",\"../templates/helms... | javascript | chosen |
[
{
"from": "system",
"value": "Add test files to grunt lint targets.\n"
},
{
"from": "human",
"value": "module.exports = function(grunt) {\n // Project configuration.\n grunt.initConfig({\n pkg: grunt.file.readJSON('package.json'),\n jshint: {\n options: {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix jshint grunt task to actually look at .jshintrc\n"
},
{
"from": "human",
"value": "module.exports = function(grunt) {\n grunt.initConfig({\n paths: {\n js: ['gruntfile.js']\n },\n jshint: {\n all: ['<%= paths.js %>']\n },\n jscs: {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Use a different kind of colorpicker\n"
},
{
"from": "human",
"value": "import Color from 'react-color';\nimport React, {Component, PropTypes as RPT} from 'react';\n\nexport default class ColorPicker extends Component {\n\n static propTypes = {\n color: RPT.strin... | javascript | chosen |
[
{
"from": "system",
"value": "Use === to test true\n"
},
{
"from": "human",
"value": "\"use strict\";\n\nvar React = require(\"react\"),\n request = require(\"superagent\");\n\nmodule.exports = React.createClass({\n componentDidMount: function() {\n request\n .get(\"/api/... | javascript | chosen |
[
{
"from": "system",
"value": "Fix bug where seconds weren't displaying\n"
},
{
"from": "human",
"value": "export const toTime = (minutes, seconds) => {\n return `${minutes}:${seconds}`\n}\n\nexport const totalSeconds = (minutes, seconds) => {\n return (minutes * 60) + seconds\n}\n\nexport cons... | javascript | chosen |
[
{
"from": "system",
"value": "Replace double quotes with single quotes\n"
},
{
"from": "human",
"value": "/*jslint browser: true, undef: true *//*global Ext*/\nExt.define('SlateAdmin.model.course.SectionTermData', {\n extend: 'Ext.data.Model',\n requires: [\n 'SlateAdmin.proxy.Recor... | javascript | chosen |
[
{
"from": "system",
"value": "Fix next step for OMIS order creation\n\nWhen removing the subscribers step the next step for market was\nmissed. This fixes that which caused an error after saving the primary\nmarket.\n"
},
{
"from": "human",
"value": "const {\n ClientDetailsController,\n Market... | javascript | chosen |
[
{
"from": "system",
"value": "Use _.partial instead of Function.prototype.bind\n"
},
{
"from": "human",
"value": "var _ = require('lodash');\nvar vumigo = require('vumigo_v02');\nvar submit = require('./submit');\nvar Extendable = vumigo.utils.Extendable;\n\n\nvar OnaFixtures = Extendable.extend... | javascript | chosen |
[
{
"from": "system",
"value": "Hide chat tab for folders\n\nSigned-off-by: Marco Ambrosini <3397c7e210a9d1588196cfebb12b2c6b133f6934@pm.me>\n"
},
{
"from": "human",
"value": "/**\n * @copyright Copyright (c) 2019 Marco Ambrosini <marcoambrosini@pm.me>\n *\n * @author Marco Ambrosini <marcoambrosi... | javascript | chosen |
[
{
"from": "system",
"value": "Update the battery example to match the spec\n\nUses the `navigator.getBattery()` promise when available instead of the deprecated `navigator.battery`"
},
{
"from": "human",
"value": "var battery = navigator.battery || navigator.webkitBattery || navigator.mozBattery... | javascript | chosen |
[
{
"from": "system",
"value": "Stop the document from jumping to the hash when a token is clicked.\n"
},
{
"from": "human",
"value": "window.jazzy = {'docset': false}\nif (typeof window.dash != 'undefined') {\n document.documentElement.className += ' dash'\n window.jazzy.docset = true\n}\nif (n... | javascript | chosen |
[
{
"from": "system",
"value": "Use proper base object for Memory panel overlay\n"
},
{
"from": "human",
"value": "/* See license.txt for terms of usage */\n\n\"use strict\";\n\nconst self = require(\"sdk/self\");\n\nconst { Cu, Ci } = require(\"chrome\");\nconst { Trace, TraceError } = require(\"... | javascript | chosen |
[
{
"from": "system",
"value": "Make title field be full width\n"
},
{
"from": "human",
"value": "import React, { Component } from \"react\";\nimport { Form, Text } from \"react-form\";\nimport { Container, Col } from \"reactstrap\";\nimport BodyEditor from \"./BodyEditor\";\nimport ImageListEdito... | javascript | chosen |
[
{
"from": "system",
"value": "Fix cdn-destination after some changes in vaadin infra\n"
},
{
"from": "human",
"value": "var args = require('yargs').argv;\nvar fs = require('fs');\n\nvar userhome = process.env.HOME || process.env.HOMEPATH || process.env.USERPROFILE;\n\nmodule.exports = {\n compo... | javascript | chosen |
[
{
"from": "system",
"value": "Allow basic auth with browser dialog\n"
},
{
"from": "human",
"value": "angular.module('opendap-viewer')\n .factory('jqdap', ($window, $q) => {\n return {\n loadDataset: (url, options) => {\n return $q.when($window.jqdap.loadDataset(url, options));\n... | javascript | chosen |
[
{
"from": "system",
"value": "Fix passing wrong entry to chat_id\n"
},
{
"from": "human",
"value": "module.exports=function (text_msg, interval) {\n const https = require('https');\n let options = {\n host: \"api.telegram.org\",\n path: `/bot${process.env.TELEGRAM_TOKEN}/send... | javascript | chosen |
[
{
"from": "system",
"value": "Add sort buttons: non-functioning at this time\n"
},
{
"from": "human",
"value": "import React from 'react'\n\nexport default class FilterBar extends React.Component {\n constructor() {\n super();\n this.state = {\n input: '',\n };\n }\n\n inputFiel... | javascript | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.