conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Change task to a MultiTask\n\nChange task to a MultiTask so that additional options can be used"
},
{
"from": "human",
"value": "'use strict';\n\nmodule.exports = function (grunt) {\n var exec = require('child_process').exec;\n\n grunt.registerTask('install-depend... | javascript | chosen |
[
{
"from": "system",
"value": "Change how themes are loaded\n"
},
{
"from": "human",
"value": "require(\"../stylesheets/index.styl\")\n\nmodule.exports = {\n\n component(name) {\n return require(`./components/${name}.js`)\n },\n\n}\n"
},
{
"from": "gpt",
"value": "import \"../sty... | javascript | chosen |
[
{
"from": "system",
"value": "Fix integration test for 'component:checkbox-for'\n"
},
{
"from": "human",
"value": "import Ember from 'ember';\nimport { moduleForComponent, test } from 'ember-qunit';\nimport hbs from 'htmlbars-inline-precompile';\n\nmoduleForComponent('checkbox-for', 'Integration... | javascript | chosen |
[
{
"from": "system",
"value": "Add robot load view and filters for sm beamline type\n\ni19 at DLS"
},
{
"from": "human",
"value": "/**\n * The view of all data collections for SM\n */\ndefine([\n 'modules/dc/datacollections',\n 'modules/types/gen/dc/dclist',\n 'modules/types/sm/dc/dc',\n... | javascript | chosen |
[
{
"from": "system",
"value": "Test modified to use UI component instead of controller\n"
},
{
"from": "human",
"value": "describe('Actions triggered by buttons', function() {\n\n var listController;\n var listWidget;\n\n beforeEach(function() {\n listController = Application.getContro... | javascript | chosen |
[
{
"from": "system",
"value": "Add \"Upload\" to the add button\n\nThis makes it so it's \"Add/Open/Upload\".\n\nChange-Id: I17167d48c6782d4679a489ec883cf0c9065d628e\n"
},
{
"from": "human",
"value": "/**\n * @license\n * Copyright (C) 2017 The Android Open Source Project\n *\n * Licensed under t... | javascript | chosen |
[
{
"from": "system",
"value": "Add verifiyAccesstoken and edit fail response to status code\n"
},
{
"from": "human",
"value": "\nfunction SuccessResponse(res,result) {\n res.json({\n 'code': 200,\n 'result': result\n });\n};\n\nfunction ErrorResponse(res,code,error) {\n\n\n if (code == u... | javascript | chosen |
[
{
"from": "system",
"value": "Delete unused var and func\n"
},
{
"from": "human",
"value": "import alt from '../alt';\nimport SignupActions from '../actions/SignupActions';\n\nclass SignupStore {\n constructor() {\n this.bindActions(SignupActions);\n this.username = '';\n this.password... | javascript | chosen |
[
{
"from": "system",
"value": "Change display of returned time\n"
},
{
"from": "human",
"value": "var Reader = (function () {\n \n /*\n * Gets an DOM element and anaylzes it's textual reading content.\n * Returns the estimated time to read in seconds.\n */\n function calculat... | javascript | chosen |
[
{
"from": "system",
"value": "Increase the debouce() wait time to 300ms\n"
},
{
"from": "human",
"value": "MovieList.Views.Searchbox = Backbone.View.extend({\n template: _.template($('#tmpl-search').html()),\n\n events: {\n 'keyup input[name=\"titlefilter\"]': _.debounce(function (e... | javascript | chosen |
[
{
"from": "system",
"value": "Add less to watched files\n\nRelated to #13\n"
},
{
"from": "human",
"value": "var gulp = require(\"gulp\");\nvar browserSync = require(\"browser-sync\");\n\ngulp.task('serve', ['build:all'], function() {\n // Serve files from the root of this project\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Handle now returning Promise function"
},
{
"from": "human",
"value": "import {_string, _comment, p, pp} from '../universal/base';\nimport {_formatError} from './error';\n\nwindow.console = window.console || {};\nconst _fnOrig = {};\n\nfunction _interceptNativeConso... | javascript | chosen |
[
{
"from": "system",
"value": "Add dispensary reducer to redux\n"
},
{
"from": "human",
"value": "import { combineReducers } from 'redux';\nimport NavigationReducer from './NavigationReducer';\nimport SyncReducer from './SyncReducer';\nimport { PagesReducer } from './PagesReducer';\nimport { Modu... | javascript | chosen |
[
{
"from": "system",
"value": "Set openerTabId to new tabs\n"
},
{
"from": "human",
"value": "/*\n * Copyright (c) 2014 mono\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n *... | javascript | chosen |
[
{
"from": "system",
"value": "Fix indefinite loading state for fresh start without network\n"
},
{
"from": "human",
"value": "const {\n ADD_ITEM,\n REMOVE_ITEM,\n OFFLINE_ITEMS_LOADED,\n CONNECTION_CHECKING,\n CONNECTION_CHECKED,\n CONNECTION_ONLINE,\n CONNECTION_OFFLINE\n} = require('../... | javascript | chosen |
[
{
"from": "system",
"value": "Hide external docs if empty\n"
},
{
"from": "human",
"value": "export const externalDocs = {\n 'type': 'object',\n 'children': {\n 'description': {\n 'type': 'textarea'\n },\n 'url': {\n 'type': 'text'\n }\n }\n};\n"
},
{
"from": "gp... | javascript | chosen |
[
{
"from": "system",
"value": "Test conversion of fractional positive numbers to scientific notation\n"
},
{
"from": "human",
"value": "var ScientificNotationMapper = require(\"../lib/mappers/ScientificNotationMapper\");\n\ndescribe(\"A Scientific Notation Mapper\", function() {\n\n\tit(\"has toD... | javascript | chosen |
[
{
"from": "system",
"value": "Set smaller hitbox to player\n"
},
{
"from": "human",
"value": "import Ship from './Ship';\nimport Emitter from '../behaviours/Emitter';\nimport DamageEmitter from '../behaviours/DamageEmitter';\nimport EnemyDamage from '../behaviours/EnemyDamage';\nimport Regenerat... | javascript | chosen |
[
{
"from": "system",
"value": "Add support to sort results by name\n\nFor saner result display\n"
},
{
"from": "human",
"value": "var input = document.getElementById('bidder-filter');\nnew Awesomplete(input, {\n list: BidderList,\n replace: function(item) {\n this.input.value = item.label;\n... | javascript | chosen |
[
{
"from": "system",
"value": "Add classname to container instance\n"
},
{
"from": "human",
"value": "import * as React from \"react\";\nimport {BuildSnapshot} from \"./BuildSnapshot\";\n\n/**\n * Container Component for BuildSnapshots.\n * \n * @param {*} props input property containing an array... | javascript | chosen |
[
{
"from": "system",
"value": "Add click events to sidebar nav links for making Headroom pin\n"
},
{
"from": "human",
"value": "(function() {\n // construct Headroom\n var headroom = new Headroom(document.querySelector(\".js-nvbr\"), {\n \"offset\": Options.navbarOffset,\n \"tolerance\":... | javascript | chosen |
[
{
"from": "system",
"value": "Add Files allow insert rule\n"
},
{
"from": "human",
"value": "Files = new FS.Collection(\"files\", {\n stores: [\n new FS.Store.GridFS(\"files\", {})\n ]\n});\n"
},
{
"from": "gpt",
"value": "Files = new FS.Collection(\"files\", {\n stores: [\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add showRecentlyClosedAtBottom key and fix typo\n"
},
{
"from": "human",
"value": "export const initialFuzzySettings = {\n enableFuzzySearch: true,\n shouldSort: true,\n threshold: 0.5,\n maxPattenLength: 32,\n minMatchCharLength: 1,\n keys: ['title', 'url'],\... | javascript | chosen |
[
{
"from": "system",
"value": "Add Fake Internal Server Error\n"
},
{
"from": "human",
"value": "// @flow\n\nimport {\n homePage,\n helloPage,\n helloAsyncPage,\n helloEndpoint,\n} from './controller'\nimport {\n HOME_PAGE_ROUTE,\n HELLO_PAGE_ROUTE,\n HELLO_ASYNC_PAGE_ROUTE,\n helloEndpoi... | javascript | chosen |
[
{
"from": "system",
"value": "Watch for changes to plugin files.\n"
},
{
"from": "human",
"value": "const gulp = require('gulp');\n\n\ngulp.task('watch', ['watch:sass', 'watch:scripts', 'watch:app', 'watch:components']);\n\n\ngulp.task('watch:sass', function() {\n return gulp.watch('timestrap... | javascript | chosen |
[
{
"from": "system",
"value": "Call new on Promise constructor\n"
},
{
"from": "human",
"value": "import Property from \"./Property\";\nimport properties from \"./properties\";\nimport Component from \"./Component\";\nimport components from \"./components\";\n\nexport default class ICS {\n stati... | javascript | chosen |
[
{
"from": "system",
"value": "Fix bug in wrapPropertyMethod utility\n"
},
{
"from": "human",
"value": "var APIError = require('./exceptions').APIError;\n\nvar utils = module.exports = {};\n\nutils.subEntity = function(Parent, name, Constructor){\n var underlyingFieldName = '__' + name;\n Objec... | javascript | chosen |
[
{
"from": "system",
"value": "Test closing github issue automatically?\n\nFixes #5\n"
},
{
"from": "human",
"value": "(function() {\n 'use strict';\n\n let path = require('path');\n let express = require('express');\n let http = require('http');\n let _ = require('lodash');\n let bodyParse... | javascript | chosen |
[
{
"from": "system",
"value": "Load the existing configuration into the UI\n"
},
{
"from": "human",
"value": "const DEFAULT_SUBMIT_URL = 'pebblejs://close#';\n\nwindow.onload = function() {\n var submitButton = document.getElementById('submitButton');\n submitButton.addEventListener('click', on... | javascript | chosen |
[
{
"from": "system",
"value": "Fix DOM example after breaking change to Shatter images array\n"
},
{
"from": "human",
"value": "var image = new Image();\nimage.src = \"img/BlueMarbleNasa.png\";\n\n// create shatter object after image has loaded\nimage.addEventListener(\"load\", function() {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "refactor: Add extra accepted props for general alerts\n"
},
{
"from": "human",
"value": "import React, { PureComponent } from 'react';\nimport PropTypes from 'prop-types';\nimport { Alert } from '@blueprintjs/core';\n\nexport default class GenAlert extends PureCompo... | javascript | chosen |
[
{
"from": "system",
"value": "Move the PushMessagingBrowserTest to use SWR.showNotification().\n\nThis will allow us to start throwing a TypeError per the specification\nwhen constructing a new Notification object in a Service Worker.\n\nThis is part of a two-sided patch:\n [1] This patch.\n [2] https://c... | javascript | chosen |
[
{
"from": "system",
"value": "Bring file input above OPEN label\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport { processLicenseFile } from 'util';\nimport { processingDelay } from 'data/constants';\n\nlet fileReader;\n\nexport default class FileHandler extends React.Compon... | javascript | chosen |
[
{
"from": "system",
"value": "[gulp] Add the watch task, which watches for sass changes and recompiles\n"
},
{
"from": "human",
"value": "var gulp = require('gulp');\n\nvar sass = require('gulp-sass');\nvar sourcemaps = require('gulp-sourcemaps');\n\nvar paths = {\n sass: {\n src: ['st... | javascript | chosen |
[
{
"from": "system",
"value": "Fix another spurious on quick logout\n"
},
{
"from": "human",
"value": "/*\n * Copyright (C) 2015 SUSE Linux\n *\n * This software may be modified and distributed under the terms\n * of the MIT license. See the LICENSE.txt file for details.\n */\n\n(function () {\n... | javascript | chosen |
[
{
"from": "system",
"value": "i18next: Add i18next: to the local storage cache prefix.\n\nThis just makes it easier to see what these local storage entries are\nrelated to.\n"
},
{
"from": "human",
"value": "// commonjs code goes here\n\n(function () {\n var i18n = window.i18n = require('i18n... | javascript | chosen |
[
{
"from": "system",
"value": "Update schema manager test to run. Need to blow away test db before each run\n"
},
{
"from": "human",
"value": "var config = require('../config');\nvar mongoose = require('mongoose');\nvar schemaManager;\n\ndescribe('SchemaManager', function() {\n before(function(... | javascript | chosen |
[
{
"from": "system",
"value": "Make error event of GeoNames data\n"
},
{
"from": "human",
"value": "(function(app) {\n 'use strict';\n\n var dom = app.dom || require('../dom.js');\n var Events = app.Events || require('../base/events.js');\n\n var GeoNamesData = function(url) {\n this._url ... | javascript | chosen |
[
{
"from": "system",
"value": "Support enforcing of request limits\n\nThis patch adds the ability to actually enforce request limits by throwing\nappropriate HTTPError instances. A log-only mode is still supported. To enable\nthis, set the `log_only` flag in the module options.\n"
},
{
"from": "human... | javascript | chosen |
[
{
"from": "system",
"value": "Update to support new module API\n\nhttps://github.com/facebook/react-native/commit/bc28a35bda0e358a8296a7b53eb7315b736c6e4b\n\n- modules are no longer plain objects\n- `isPolyfill` is now a function\n- `id` is now retrieved asynchronously with `getName`\n"
},
{
"from":... | javascript | chosen |
[
{
"from": "system",
"value": "Load training data in bg\n\nFixes #242\n"
},
{
"from": "human",
"value": "import { request } from '../../http';\n\nexport function attempt(id, startedAt, win) {\n return request(`/training/${id}/attempt`, {\n method: 'POST',\n data: {\n win: win ? 1 : 0,... | javascript | chosen |
[
{
"from": "system",
"value": "Check before attempting to init image cropping\n"
},
{
"from": "human",
"value": "$( document ).ready(function() {\n let $uploadCrop;\n let $preview = $('#uploadPreview');\n\n function readFile(input) {\n if (input.files && input.files[0]) {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Change the rendering of suggestions so that a more helpful 'refine results' bit is shown when there are no suggestions\n"
},
{
"from": "human",
"value": "import React from 'react'\nimport getPlayer from '../api/getPlayer'\n\nimport NBA from 'nba'\n\nmodule.exports =... | javascript | chosen |
[
{
"from": "system",
"value": "Swap JS for terse jQuery\n"
},
{
"from": "human",
"value": "// Ajax request passing User form values to php \n\n\t $(document).ready(function(){\n\t\t\t $(document).on('submit', '#details_for_email', function(){\t\n\t\t\t\t event.preventDefault();\n\t\t\t\t ... | javascript | chosen |
[
{
"from": "system",
"value": "Tweak indentation to pass jshint\n"
},
{
"from": "human",
"value": "var http = require('http');\nvar httpProxy = require('http-proxy');\n\n/**\n * Creates a proxy server to handle nodejitsu requests based on subdomain\n */\n\nmodule.exports = function (config, callb... | javascript | chosen |
[
{
"from": "system",
"value": "Use a material UI button for facebook login\n"
},
{
"from": "human",
"value": "import Typography from '@material-ui/core/Typography'\nimport { withStyles } from '@material-ui/core/styles'\nimport { facebookSignInUrl } from 'client/src/urls'\n\nconst styles = theme =... | javascript | chosen |
[
{
"from": "system",
"value": "Remove CLI resource leak timeout\n\nWhen run through the CLI, Cucumber was waiting for the event loop to\nempty before exiting and timing out after 60 seconds.\n\nThis removes that behaviour: Cucumber is now exiting as soon as stdout is\nflushed. This means Cucumber is no longe... | javascript | chosen |
[
{
"from": "system",
"value": "Add id and class attributes.\n"
},
{
"from": "human",
"value": "(function() {\n 'use strict';\n\n // Model\n\n var Task = Backbone.Model.extend({\n defaults: {\n title: 'do something!',\n completed: false\n }\n });\n\n var task = new Task();\n\n... | javascript | chosen |
[
{
"from": "human",
"value": "Add spec for game model\n"
},
{
"from": "gpt",
"value": "var Game = require('../../src/js/models/game.js');\n\ndescribe('Game', function () {\n beforeEach(function () {\n this.model = new Game();\n });\n\n describe('#createFrames', function () {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Use Caman revert for filters\n"
},
{
"from": "human",
"value": "\"use strict\";\n\n(function() {\n var filters = {\n age: function() {\n this\n .saturation(20)\n .gamma(1.4)\n .vintage()\n .contrast(5)\n .exposure(15)\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Use collections instead of models for tags\n"
},
{
"from": "human",
"value": "\"use strict\";\n\ndefine(['jquery',\n 'underscore',\n 'backbone',\n 'jquery.tagsinput'\n], function ($, _, Backbone, TagsInput) {\n var Recipe = Backbone.Model.ext... | javascript | chosen |
[
{
"from": "system",
"value": "Call importer.importFinished after inserting events into db\n\nSigned-off-by: Juan Martin Runge <2e19f93fe0d263e6ab743b7b04f5a1b612584839@gmail.com>\n"
},
{
"from": "human",
"value": "var _ = require('underscore')\n, Epg = require('./lib/epg')\n, con... | javascript | chosen |
[
{
"from": "system",
"value": "Make squish private as it's dangerous.\n"
},
{
"from": "human",
"value": "function compose() {\n fs = arguments;\n return function(x) {\n for(var i in fs) {\n var f = fs[fs.length - i - 1];\n x = f.apply(null, [x]);\n }\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Attach oninput, inputListeners, onsubmit via mdarea extension\n\nRecent versions of mdarea are quite powerful, and have internal state data structures. As a result, updating current editor value via `oninput` event listeners isn't reliable. Instead, we can use the mdarea extens... | javascript | chosen |
[
{
"from": "system",
"value": "Fix bug with root parameter\n"
},
{
"from": "human",
"value": "(function () {\n\tif (typeof define == \"function\" && define.amd)\n\t\tdefine([\"graphjs/Graph\"], factory);\n\telse if (typeof exports == \"object\")\n\t\tmodule.exports = factory(require(\"graphjs/Gra... | javascript | chosen |
[
{
"from": "system",
"value": "Add support for BS4 menu items\n"
},
{
"from": "human",
"value": "import cx from 'classnames';\nimport {noop} from 'lodash';\nimport React from 'react';\n\nimport menuItemContainer from './containers/menuItemContainer';\n\nclass BaseMenuItem extends React.Component ... | javascript | chosen |
[
{
"from": "system",
"value": "Add overflow: auto to allow scrolling of menu items by default\n"
},
{
"from": "human",
"value": "'use strict';\n\nlet styles = {\n\n overlay(isOpen) {\n return {\n position: 'fixed',\n zIndex: 1,\n width: '100%',\n height: '100%',\n bac... | javascript | chosen |
[
{
"from": "system",
"value": "Set Highcharts global.timezoneOffset in order to have the x-axis values displayed in the user's timezone (instead of UTC).\n"
},
{
"from": "human",
"value": "$(function () {\n\tvar data = JSON.parse(localStorage.data);\n\n\t$('#graph').highcharts({\n\t\tchart: {\n\t... | javascript | chosen |
[
{
"from": "system",
"value": "Use login service to secure route\n"
},
{
"from": "human",
"value": "\n/*\n * Define the main Huna JS module\n */\nvar app = angular.module('HunaJS', ['ngRoute'])\n\n/**\n * Get some routes in place\n */\n.config(function($routeProvider, $locationProvider) {\n \n /... | javascript | chosen |
[
{
"from": "system",
"value": "Update Barang Factory with token\n"
},
{
"from": "human",
"value": "/**\n * @ngdoc service\n * @name belajarOauth2ImplicitClientApp.BarangFactory\n * @description\n * # BarangFactory\n * Factory in the belajarOauth2ImplicitClientApp.\n */\n\n(function() {\n 'use st... | javascript | chosen |
[
{
"from": "system",
"value": "Remove o required do gender para modelo de usuário.\n"
},
{
"from": "human",
"value": "var mongoose, Schema, UserSchema;\n\nmongoose = require('mongoose');\n\n// criando um schema para o banco de dados\n// ==========\n\nSchema = mongoose.Schema;\n\nUserSchema = new ... | javascript | chosen |
[
{
"from": "system",
"value": "Add show/hide case worker select list based on what allocation option the user selected\n"
},
{
"from": "human",
"value": "moj.Modules.ReAllocation = {\n $CheckedClaimIdTemplate: $('<input type=\"hidden\" name=\"allocation[claim_ids][]\">'),\n $form: $('#new_alloc... | javascript | chosen |
[
{
"from": "system",
"value": "Fix next activities bug (date filter D8 not operational)\n"
},
{
"from": "human",
"value": "(function ($) {\n 'use strict';\n\n setNextActivities();\n function setNextActivities() {\n\n $.ajax({\n url: \"/next_activities\"\n }).done... | javascript | chosen |
[
{
"from": "system",
"value": "Add ! modechar to admin\n\nFor the odd network out that uses it!"
},
{
"from": "human",
"value": "Handlebars.registerHelper(\n\t\"modes\", function(mode) {\n\t\tvar modes = {\n\t\t\t\"~\": \"owner\",\n\t\t\t\"&\": \"admin\",\n\t\t\t\"@\": \"op\",\n\t\t\t\"%\": \"hal... | javascript | chosen |
[
{
"from": "system",
"value": "Fix Vite specific entry causing fake worker to be initialized\n\nCloses #1148\n"
},
{
"from": "human",
"value": "import * as pdfjs from 'pdfjs-dist/build/pdf';\n// eslint-disable-next-line import/no-unresolved\nimport pdfjsWorker from './pdf.worker.entry?url';\n\nim... | javascript | chosen |
[
{
"from": "system",
"value": "Fix piwik by using window._paq\n\nFix #636\n"
},
{
"from": "human",
"value": "if (document.head.dataset.piwikHost) {\n var _paq = _paq || [];\n /* tracker methods like \"setCustomDimension\" should be called before \"trackPageView\" */\n _paq.push(['trackPageView... | javascript | chosen |
[
{
"from": "system",
"value": "Return a promise rather than a generator since you can always pass a\npromise to a generator. Rely on module name (golang style) for method\nnames. The module makes the method name more understandable. General\ncleanup of the interface.\n"
},
{
"from": "human",
"val... | javascript | chosen |
[
{
"from": "system",
"value": "Remove unnecessary line break and space in IIFE\n"
},
{
"from": "human",
"value": "(function () {\n 'use strict';\n\n angular\n .module('${moduleName}')\n .directive('${directiveName}', ${directiveName});\n\n ${directiveName}.${DS}inject = [${... | javascript | chosen |
[
{
"from": "system",
"value": "Fix error when no content-length is sent.\n"
},
{
"from": "human",
"value": "export default class FileLoader {\n // This returns ArrayBuffer\n static load (url, on_progress = () => {\n }) {\n return new Promise((resolve, reject) => {\n fetch(url).then(asy... | javascript | chosen |
[
{
"from": "system",
"value": "Use older variable arguments syntax\n"
},
{
"from": "human",
"value": "/*global chrome*/\nexport function init() {\n chrome.runtime.sendMessage({\n from: 'contentScript',\n type: 'loadEvent',\n loadState: 'load'\n });\n\n window.addEventListener('unload'... | javascript | chosen |
[
{
"from": "system",
"value": "Add extra tests to verify index is correct\n"
},
{
"from": "human",
"value": "describe('Inverted Index Tests: ', function() {\n\n var index = new Index();\n var results;\n\n beforeEach(function(done) {\n index.createIndex('books.json', index.populateIndex).don... | javascript | chosen |
[
{
"from": "system",
"value": "Apply extension's enhancer to saga-counter example\n"
},
{
"from": "human",
"value": "/*eslint-disable no-unused-vars*/\nimport \"babel-polyfill\"\n\nimport React from 'react'\nimport ReactDOM from 'react-dom'\nimport { createStore, applyMiddleware } from 'redux'\ni... | javascript | chosen |
[
{
"from": "system",
"value": "Use tape and t.equal instead of ===\n"
},
{
"from": "human",
"value": "var assert = require(\"assert\");\nvar select = require(\"vtree-select\");\nvar render = require('./render.js');\n\nvar state = {\n description: 'server description',\n events: { add: {} },... | javascript | chosen |
[
{
"from": "system",
"value": "Fix callbacks not being a function\n"
},
{
"from": "human",
"value": "/**\n * class Github\n *\n * A Node.JS module, which provides an object oriented wrapper for the GitHub v3 API.\n *\n * Copyright 2012 Cloud9 IDE, Inc.\n *\n * This product includes software d... | javascript | chosen |
[
{
"from": "system",
"value": "Add stability annotation to ol.source.IGC\n"
},
{
"from": "human",
"value": "goog.provide('ol.source.IGC');\n\ngoog.require('ol.format.IGC');\ngoog.require('ol.source.VectorFile');\n\n\n\n/**\n * @constructor\n * @extends {ol.source.VectorFile}\n * @param {olx.sourc... | javascript | chosen |
[
{
"from": "system",
"value": "fix: Update handling of SEQUENCE_POSITION_EDITED to work properly.\n"
},
{
"from": "human",
"value": "import * as actions from '../../actions';\nimport { acceptSequenceDeletion } from './acceptSequenceDeletion';\nimport { disablePartLooping } from './disablePartLoop... | javascript | chosen |
[
{
"from": "system",
"value": "Fix broken Android back button\n"
},
{
"from": "human",
"value": "import 'es6-symbol/implement';\nimport {Provider} from 'react-redux';\nimport store from './src/redux/store';\nimport AppViewContainer from './src/modules/AppViewContainer';\nimport React from 'react'... | javascript | chosen |
[
{
"from": "system",
"value": "Fix field label in init as well as bind\n"
},
{
"from": "human",
"value": "export class Basefield {\n id = '';\n label = '';\n columns = 8;\n index = undefined;\n parent = undefined;\n\n init(id = '', {label = '', columns = 8, parent, index} = {}) {\n this.... | javascript | chosen |
[
{
"from": "system",
"value": "Remove active class form search dropdown\n"
},
{
"from": "human",
"value": "$(document).ready(function() {\n $('.menu-title .toggle').click(function(event) {\n event.stopPropagation();\n event.preventDefault();\n\n $('.menu-wrapper').toggleClass('visible')... | javascript | chosen |
[
{
"from": "system",
"value": "Add get tweet by id\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst Boom = require('boom');\nconst User = require('../models/user');\nconst Tweet = require('../models/tweet');\n\nexports.findAll = {\n auth: false,\n\n handler: function (request, reply) {... | javascript | chosen |
[
{
"from": "system",
"value": "Sort the reducers to improve everybodys life\n"
},
{
"from": "human",
"value": "import { AppRoute } from './app';\nimport overview from './overview';\nimport events from './events';\nimport company from './company';\nimport users from './users';\nimport articles fro... | javascript | chosen |
[
{
"from": "system",
"value": "FIX watch items when loaded (also async)\n"
},
{
"from": "human",
"value": "\"use strict\";\n\nvar CONF = {\n baseUrl: 'lib/ion-tree-list',\n digestTtl: 35\n};\n\nfunction addDepthToTree(obj, depth, collapsed) {\n for (var key in obj) {\n if (typeof(... | javascript | chosen |
[
{
"from": "system",
"value": "Fix error when toggling slot selection\n"
},
{
"from": "human",
"value": "import * as Utils from '../../utils'\n\nexport const updateSlotSelectionStateInWorkspace = (state, payload) => {\n const { elementId, slotId, type } = payload\n const selectedSlots = Utils.s... | javascript | chosen |
[
{
"from": "system",
"value": "Connect GA to ad banner\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport PropTypes from 'prop-types';\nimport styles from './adBanner.css';\n\nconst AdBanner = ({\n link,\n imageSource,\n altText,\n adBannerText,\n clickText\n}) =>\n (\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"Use Shell instead of Node\"\n\nThis reverts commit 9ad872a5234db2f27bcb4f5c880b1b56619dc03f.\n"
},
{
"from": "human",
"value": "#!/usr/bin/sh\n`npm bin gulp`/gulp gilp-%s --gilp-args=$1"
},
{
"from": "gpt",
"value": "#!/usr/bin/env node\nvar exe... | javascript | chosen |
[
{
"from": "system",
"value": "Add a couple more tags.\n"
},
{
"from": "human",
"value": "'use strict';\n\nmodule.exports.generic = require('./generic');\n\nmodule.exports.outcome = module.exports.generic('outcome');\nmodule.exports.outcome.success = module.exports.outcome('success');\nmodule.exp... | javascript | chosen |
[
{
"from": "system",
"value": "toast: Drop ignored second argument to `Toast.show`.\n\nSadly, for this library we have only an autogenerated libdef stub\nfull of `any`, which is why this type error wasn't found by Flow.\n"
},
{
"from": "human",
"value": "/* @flow strict-local */\nimport { Alert }... | javascript | chosen |
[
{
"from": "system",
"value": "Add default contents to rooms and groups list when empty.\n\nSigned-off-by: Max Fierke <0706025b2bbcec1ed8d64822f4eccd96314938d0@maxfierke.com>"
},
{
"from": "human",
"value": "// If rooms list exists, let's populate it.\nif ($('.rooms-list').length > 0) {\n $.ge... | javascript | chosen |
[
{
"from": "system",
"value": "Fix port back to 6666\n\nChrome doesn't like 6666 port somehow, I had to change it for dev.\n"
},
{
"from": "human",
"value": "var express = require('express');\nvar https = require('https');\nvar logger = require('./logger');\nvar security = require('./security');\... | javascript | chosen |
[
{
"from": "system",
"value": "Remove bundle common from server\n"
},
{
"from": "human",
"value": "module.exports = {\n name: 'ProductionServer',\n webpack: {\n entry: './src/Server.es6.js',\n output: {\n generator: 'simple',\n dest: './bin',\n },\n resolve: {\n gener... | javascript | chosen |
[
{
"from": "system",
"value": "Put in first version of code\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar tailFile = require ('./monitor/tail-file');\nconst LogQueue = require( './monitor/log-queue');\n\nvar logQueue = new LogQueue();\n\nvar options = {\n beginAt: 'end',\n onMove:... | javascript | chosen |
[
{
"from": "system",
"value": "Use Ember.computed instead of .property()\n"
},
{
"from": "human",
"value": "import Ember from 'ember';\n\nexport default Ember.Controller.extend({\n\n init: function() {\n this._super.apply(this, arguments);\n\n setTimeout(function(){\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Update settings to not require creation of default settings\n"
},
{
"from": "human",
"value": "'use strict';\n\n// Load requirements\nconst fs = require('fs'),\n path = require('path'),\n os = require('os');\n\n// Load modules\nconst utils = require('../ut... | javascript | chosen |
[
{
"from": "system",
"value": "Fix links with nested elements\n"
},
{
"from": "human",
"value": "// This file is required by the index.html file and will\n// be executed in the renderer process for that window.\n// All of the Node.js APIs are available in this process.\n\nconst electron = require... | javascript | chosen |
[
{
"from": "system",
"value": "Use Object.create rather than a fake constructor.\n"
},
{
"from": "human",
"value": "define(function (require, exports, module) {\n'use strict';\n//\n// OOP utilities\n//\n\nfunction inherit(inheritor, inherited) {\n function F() {}\n F.prototype = inherited.p... | javascript | chosen |
[
{
"from": "system",
"value": "Extend task controller to render search results\n"
},
{
"from": "human",
"value": "define([\n\n 'Backbone',\n\n //Collection\n 'app/collections/tasks',\n\n //Template\n 'text!templates/project-page/taskItemTemplate.html',\n], function(\n\n Backbone,\n\n //Col... | javascript | chosen |
[
{
"from": "system",
"value": "Refactor manage dojo events controller\n"
},
{
"from": "human",
"value": "(function() {\n 'use strict';\n\n function manageDojoEventsCtrl($scope, $stateParams, $location) {\n\n var dojo = {\n id: $stateParams.dojoId\n };\n\n $scope.createEvent = func... | javascript | chosen |
[
{
"from": "system",
"value": "Test that text spans aren't remounted needlessly\n\nWhile working on #2382, I accidentally broke this behavior (causing text components to get unmounted and remounted for any update) but we didn't have any unit test for it. Now we do.\n\nTest Plan: jest TextComponent\n"
},
... | javascript | chosen |
[
{
"from": "system",
"value": "Check if code language is define\n"
},
{
"from": "human",
"value": "\"use strict\";\n\nconst utils = require('./../../../utils'),\n\nmarked = require('marked'),\nhljs = require('highlight.js');\n\nmarked.setOptions({\n sanitize: false,\n highlight: function(code) ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix 'call stack size exceeded' error when parsing props with React components as values\n"
},
{
"from": "human",
"value": "'use_strict';\nimport _ from 'lodash';\nimport ReactNativePropRegistry from 'react/lib/ReactNativePropRegistry';\n// For compatibility with RN ... | javascript | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.