conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Reset permission form after submit\n"
},
{
"from": "human",
"value": "// @flow\nimport React from 'react';\nimport { reduxForm, Field } from 'redux-form';\nimport type { FieldProps } from 'redux-form';\nimport { Button, Form } from 'app/components/Form';\nimport Tex... | javascript | chosen |
[
{
"from": "system",
"value": "Add events to render when collection syncs\n"
},
{
"from": "human",
"value": "/**\n * Books page\n */\ndefine([\n \"underscore\",\n \"backbone\",\n \"views/SpinesByLetterView\"\n],\nfunction(_, Backbone, SpinesByLetterView) {\n var BooksPage = Backbone.V... | javascript | chosen |
[
{
"from": "system",
"value": "Update for rename of worker\n"
},
{
"from": "human",
"value": "/*\nCopyright 2017 Vector Creations Ltd\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of th... | javascript | chosen |
[
{
"from": "system",
"value": "Update test to new style\n"
},
{
"from": "human",
"value": "import EmberObject from '@ember/object';\nimport { moduleForComponent, test } from 'ember-qunit';\nimport hbs from 'htmlbars-inline-precompile';\n\nmoduleForComponent('course-sessions', 'Integration | Compo... | javascript | chosen |
[
{
"from": "system",
"value": "chore(grunt): Use `.html` as ending for templates instead of `.tpl.html`\n"
},
{
"from": "human",
"value": "module.exports = {\n\n\toptions: {\n\t\tbase: '<%= dir.src %>/components/',\n\t\tsingleModule: true\n\t},\n\tcomponents: {\n\t\tmodule: 'ed.template.component... | javascript | chosen |
[
{
"from": "system",
"value": "Add passport middlewares for view routes\n"
},
{
"from": "human",
"value": "/**\n * Bootstrap\n * (sails.config.bootstrap)\n *\n * An asynchronous bootstrap function that runs before your Sails app gets lifted.\n * This gives you an opportunity to set up your data m... | javascript | chosen |
[
{
"from": "system",
"value": "Set base on `check-syntax` task\n"
},
{
"from": "human",
"value": "var gulp = require( 'gulp' );\nvar jscs = require( 'gulp-jscs' );\nvar files_matcher = [ 'component/**/*.js', 'gulp/**/*.js', '*.js' ];\n\ngulp.task( 'check-syntax', function() { \n return gulp.src(... | javascript | chosen |
[
{
"from": "system",
"value": "Add google helpers and store return within onREeady()\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport Map, {GoogleApiWrapper} from 'google-maps-react';\n\nexport class Container extends React.Component {\n\tonReady(mapProps, map) {\n\t\t// when... | javascript | chosen |
[
{
"from": "system",
"value": "Remove extra header for actions, built in\n"
},
{
"from": "human",
"value": "import Ember from 'ember';\n\nexport default Ember.Controller.extend({\n settings: Ember.inject.service(),\n sortBy: 'name',\n\n headers: [\n {\n translationKey: ... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"Always use registrationCount when calculating numbers\"\n\nThis reverts commit 726f87eae7b5609e75ee4d94d376f230317c9b32.\n"
},
{
"from": "human",
"value": "// @flow\n\nimport React from 'react';\nimport styles from './AttendanceStatus.css';\nimport withModa... | javascript | chosen |
[
{
"from": "system",
"value": "Add dev server back into Neutrino config.\n"
},
{
"from": "human",
"value": "module.exports = {\n use: [\n [\n '@neutrinojs/airbnb-base',\n {\n eslint: {\n globals: ['ol']\n }\n }\n ],\n [\n '@neutrinojs/library',... | javascript | chosen |
[
{
"from": "system",
"value": "Fix all entities sharing common position, extract fitnessScenario\n"
},
{
"from": "human",
"value": "require(\"babel/register\");\nvar Seeder = require('./app/seeder');\nvar Entity = require('./app/entity');\nvar simulateWorld = require('./app/simulator');\n\nfuncti... | javascript | chosen |
[
{
"from": "system",
"value": "Support git flavored markdown emoji\n\nJust like what node-emoji did\n"
},
{
"from": "human",
"value": "'use strict';\n\nimport React from 'react';\nimport { Text } from 'react-native';\nimport PropTypes from 'prop-types';\nimport nodeEmoji from 'node-emoji';\n\ncon... | javascript | chosen |
[
{
"from": "system",
"value": "Return null in case if there's no DOM\n"
},
{
"from": "human",
"value": "/**\n * @module get-doc\n */\n\nvar hasDom = require('has-dom');\n\nif (hasDom()) module.exports = document;"
},
{
"from": "gpt",
"value": "/**\n * @module get-doc\n */\n\nvar has... | javascript | chosen |
[
{
"from": "system",
"value": "Add clear and undo descriptions, todo: implement the code for them\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\n'use strict';\nconst program = require('commander');\n\nprogram\n.version('0.0.1')\n.command('list', 'output code listing and its execution res... | javascript | chosen |
[
{
"from": "system",
"value": "Reorder the loading to make it work\n"
},
{
"from": "human",
"value": "/**\n * Server root\n *\n * Collects all routes and starts the server\n */\nrequire('./evilGlobalVariables');\n\nconst glob = require('glob-promise');\nconst express = require('express');\nconst ... | javascript | chosen |
[
{
"from": "system",
"value": "Load normal and bolded weights for roboto\n"
},
{
"from": "human",
"value": "/*\n * Load the google fonts.\n * See https://github.com/typekit/webfontloader\n */\nimport WebFont from 'webfontloader';\n\nWebFont.load({\n google: {\n families: ['Roboto', 'Varela ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix email hint problems in IE8\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar extend = require('extend');\nvar domify = require('domify');\n\n/**\n * Email repeat\n */\nfunction EmailRepeat(element, config) {\n\n var options = {\n hintTemplate: require(... | javascript | chosen |
[
{
"from": "system",
"value": "Clean initial route from extra 'title' field\n"
},
{
"from": "human",
"value": "// index.android.js\n// Flow\n\nimport React, { Component } from 'react';\nimport {\n AppRegistry,\n StyleSheet,\n Navigator\n} from 'react-native';\n\nimport Splash from './scenes/sp... | javascript | chosen |
[
{
"from": "system",
"value": "feat(react-native): Add native device/app metadata to event\n"
},
{
"from": "human",
"value": "module.exports = (NativeClient) => ({\n load: (client) => {\n client.addOnError(async event => {\n const {\n threads,\n breadcrumbs,\n app,\n... | javascript | chosen |
[
{
"from": "system",
"value": "Add to marco's change by removing the now-unnecessary if-else block protecting Android from the image property. TIMOB-4471\n"
},
{
"from": "human",
"value": "var win = Titanium.UI.currentWindow;\n\nif (Titanium.Platform.name == 'android') {\n\t// iphone moved to a s... | javascript | chosen |
[
{
"from": "system",
"value": "Check logs tab on render\n"
},
{
"from": "human",
"value": "import Ember from 'ember';\n\nexport default Ember.Component.extend({\n\n classNames: Ember.String.w('ui right internal rail stage-details'),\n\n isRunning: Ember.computed.equal('model.status', 'RUNNING')... | javascript | chosen |
[
{
"from": "system",
"value": "refactor: Use afterMutations. Add sanity check.\n\n#813\n"
},
{
"from": "human",
"value": "import { define } from '../../../src/index';\n\ndescribe('lifecycle/defined', () => {\n it('should not already have the defined attribute on undefined elements', () => {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix syntax error, call authorized function\n"
},
{
"from": "human",
"value": "var app = require('http').createServer(handler),\n io = require('socket.io')(app),\n socketAuth = require('../lib/socket-handshake-authorization'),\n APP_PORT = 8000;\n\nfunction ... | javascript | chosen |
[
{
"from": "system",
"value": "Add log info in webpack to troubleshoot Travis issue\n"
},
{
"from": "human",
"value": "// Karma configuration\n\nmodule.exports = function karmaConfig(config) {\n config.set({\n client: {\n captureConsole: true\n },\n frameworks: ['mocha'],\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix coverage and threshold checking\n"
},
{
"from": "human",
"value": "const webpack = require('webpack');\n\nmodule.exports = function (config) {\n config.set({\n basePath: '',\n frameworks: ['jasmine'],\n preprocessors: {\n 'src/**/*.js': ['webpack'... | javascript | chosen |
[
{
"from": "system",
"value": "Modify test to handle the fact that need > 5 providers for next/previous buttons to now display.\n"
},
{
"from": "human",
"value": "import { moduleForComponent, test } from 'ember-qunit';\nimport hbs from 'htmlbars-inline-precompile';\n\nmoduleForComponent('provider... | javascript | chosen |
[
{
"from": "system",
"value": "Add system date for reference to other component"
},
{
"from": "human",
"value": "Ext.application({\n name: 'logbook',\n appFolder: 'app',\n \n controllers: [\n 'main.DashboardController',\n 'entri.EntriLogBookController',\n 'utility... | javascript | chosen |
[
{
"from": "system",
"value": "Add on end stream event\n"
},
{
"from": "human",
"value": "\nvar es = require('event-stream');\n\nvar cred = {\n app:require('../../config/app'),\n user:require('../../config/user')\n};\n\n\nexports = module.exports = function (p) {\n return {\n // r... | javascript | chosen |
[
{
"from": "system",
"value": "Add addMasterListItems to customerInvoice reducer\n"
},
{
"from": "human",
"value": "/**\n * mSupply Mobile\n * Sustainable Solutions (NZ) Ltd. 2019\n */\n\n/**\n * Method using a factory pattern variant to get a reducer\n * for a particular page or page style.\n *\... | javascript | chosen |
[
{
"from": "system",
"value": "download: Tweak URL-with-key logic to be a bit more defensive.\n\nIt's not entirely obvious whether it's possible for the `src` URL to\nalready have a query part, in which case we should be using `&` rather\nthan `?` as the delimiter. Rather than make and justify an assumption... | javascript | chosen |
[
{
"from": "system",
"value": "[fix] Set correct file path for coverage task\n"
},
{
"from": "human",
"value": "import gulp from 'gulp';\nimport jasmineNode from 'gulp-jasmine-node';\nimport babel from 'gulp-babel';\nimport injectModules from 'gulp-inject-modules';\nimport gulpBabelIstanbul from ... | javascript | chosen |
[
{
"from": "system",
"value": "Update Crosswalk plugin to latest version\n"
},
{
"from": "human",
"value": "Package.describe({\n summary: \"Makes your Cordova application use the Crosswalk WebView \\\ninstead of the System WebView on Android\",\n version: '1.6.2',\n documentation: null\n});\n\... | javascript | chosen |
[
{
"from": "system",
"value": "Sort users by their fullname rather than username when displayed in a table.\n\nChange default user sort field to full_name\n"
},
{
"from": "human",
"value": "export function userMatchesFilter(user, searchFilter) {\n const searchTerms = searchFilter.split(/\\s+/).m... | javascript | chosen |
[
{
"from": "system",
"value": "Add new function to DramaModel\n"
},
{
"from": "human",
"value": "(function(){\n'use strict';\n\nangular\n .module('secondLead.common')\n\n .factory('DramaModel',['Restangular', function (Restangular){\n var baseDramas = Restangular.all('dramas');\n\n retu... | javascript | chosen |
[
{
"from": "system",
"value": "Use MAPC basemap instead of parkmap in geo admin\n"
},
{
"from": "human",
"value": "{% extends \"gis/admin/openlayers.js\" %}\n{% block base_layer %}new OpenLayers.Layer.OSM(\"OpenStreetMap (Mapnik)\");{% endblock %}\n\n{% block extra_layers %}\nvar parkmap = new Op... | javascript | chosen |
[
{
"from": "system",
"value": "Add example for ES6 arrow function that complies with Airbnb ESLint guidelines\n"
},
{
"from": "human",
"value": "/**\n * Uncomment the following line to include Babel's polyfill.\n * Note that this increases the size of the bundled JavaScript file.\n * So be smart ... | javascript | chosen |
[
{
"from": "system",
"value": "OLMIS-1128: Add redirecting when requisition id is not found\n"
},
{
"from": "human",
"value": "(function() {\n\n\t'use strict';\n\t\n\tangular.module('openlmis.requisitions').config(config);\n\n\tconfig.$inject = ['$stateProvider'];\n\tfunction config($stateProvide... | javascript | chosen |
[
{
"from": "system",
"value": "Create log file on run\n"
},
{
"from": "human",
"value": "var fs = require(\"fs\");\nvar logPath = __dirname + '/eyebleach.log';\n\nfunction log(msg) {\n var d = new Date();\n var data = '[' + d.getDate() + '/' + (d.getMonth() + 1) + '/' + d.getFullYear() + ' ' + ... | javascript | chosen |
[
{
"from": "system",
"value": "Update Speed Dial API implementation to set attributes independent of Chromium call to update attributes.\n"
},
{
"from": "human",
"value": "\nvar SpeeddialContext = function() {\n \n this.properties = {};\n \n global.opr.speeddial.get(function(speeddialProperti... | javascript | chosen |
[
{
"from": "system",
"value": "Add test to cover missed branch in strategy.\n"
},
{
"from": "human",
"value": "var Strategy = require('../lib/strategy');\n\ndescribe('Strategy', function() {\n var strategy = new Strategy({jwtFromRequest: function(){}, secretOrKey: 'secret'}, function() {});\n\... | javascript | chosen |
[
{
"from": "system",
"value": "Add sample of singleton by overriding new\n"
},
{
"from": "human",
"value": "\"use strict\";\n\n// Singleton design pattern\n(function() {\n console.log('-------------------------Example on singleton-------------------------');\n var Sun = (function() {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Refactor to use shorthand req res\n"
},
{
"from": "human",
"value": "var helpers = require( '../config/helpers' );\nvar Session = require( './sessions' );\n\nmodule.exports = {\n\n getAllSessions: function( reqw, res, next ) {\n Session.findAll()\n .then( fun... | javascript | chosen |
[
{
"from": "system",
"value": "Switch from .attrs to interpolations\n"
},
{
"from": "human",
"value": "/* eslint-disable react/prop-types */\nimport styled from 'styled-components';\nimport View from './View';\n\nconst Dot = styled(View).attrs({\n style: props => ({\n marginLeft: `${props.x}p... | javascript | chosen |
[
{
"from": "system",
"value": "Fix issue with pathTo and optional express paths like /blog/:id/:tag?\n"
},
{
"from": "human",
"value": "/*\nCopyright (c) 2013, Yahoo! Inc. All rights reserved.\nCopyrights licensed under the New BSD License.\nSee the accompanying LICENSE file for terms.\n*/\n\n'us... | javascript | chosen |
[
{
"from": "system",
"value": "Add comment to explain event-listener-fourth argument\n\n- fixes #82\n"
},
{
"from": "human",
"value": "/*\n * This Source Code is subject to the terms of the Mozilla Public License\n * version 2.0 (the 'License'). You can obtain a copy of the License at\n * http://... | javascript | chosen |
[
{
"from": "system",
"value": "Update the client name used in prober, so we could separate prober statsd data for multiple clients.\n"
},
{
"from": "human",
"value": "var globalRequest = require('request');\nvar Prober = require('airlock');\nvar xtend = require('xtend');\n\nmodule.exports = Probi... | javascript | chosen |
[
{
"from": "system",
"value": "Refactor ciscospark Migrate Avatar to packages\n\nuse default SparkMock\n\nissue #62 Migrate Avatar\n"
},
{
"from": "human",
"value": "/**!\n *\n * Copyright (c) 2015-2016 Cisco Systems, Inc. See LICENSE file.\n */\nimport {assert} from '@ciscospark/test-helper-chai... | javascript | chosen |
[
{
"from": "system",
"value": "Change ajax url to formspree address\n"
},
{
"from": "human",
"value": "$(document).ready(function(){\n\tshowMore()\n\tshowLess()\n\n\t$(\"#contactForm\").submit(function(event){\n\t // cancels the form submission\n\t event.preventDefault();\n\t console.log... | javascript | chosen |
[
{
"from": "system",
"value": "Make the data remote js more generic, triggers events\n"
},
{
"from": "human",
"value": "$(document).ready(function(){\n $('form[data-remote=true]').on('submit', function(e){\n var method, form, action, methodOveride, params;\n form = $(this);\n action = f... | javascript | chosen |
[
{
"from": "system",
"value": "Make sponsor links to use https protocol"
},
{
"from": "human",
"value": "const sponsors = [\r\n {\r\n name: \"Futurice\",\r\n href: \"http://futurice.com/\",\r\n },\r\n {\r\n name: \"Metosin\",\r\n href: \"http://www.metosin.fi/\",\r\n },\r\n {\r\n... | javascript | chosen |
[
{
"from": "system",
"value": "Fix New menu to work with state.\n"
},
{
"from": "human",
"value": "Application.Directives.directive(\"navbar\", navbarDirective);\n\nfunction navbarDirective() {\n return {\n scope: true,\n restrict: \"AE\",\n replace: true,\n templat... | javascript | chosen |
[
{
"from": "system",
"value": "Fix undesired page reload when clicking publish button\n\n"
},
{
"from": "human",
"value": "var config = {\n dev : true,\n remote : true,\n baseURL : 'http://s90datalift.ad.insee.intra:9050',\n poguesPath : '/exist/pogues',\n persistPath : '/exist/restxq',\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Make the first group a non-capturing one and remove the last group\n"
},
{
"from": "human",
"value": "/* This Source Code Form is subject to the terms of the Mozilla Public\n * License, v. 2.0. If a copy of the MPL was not distributed with this\n * file, You can obt... | javascript | chosen |
[
{
"from": "system",
"value": "Modify grunt header to keep grunt-newer quiet.\n"
},
{
"from": "human",
"value": "function initTimeGrunt(grunt) {\n\tconst timeGrunt = require('time-grunt');\n\n\ttimeGrunt(grunt);\n}\n\nfunction initLoadGruntConfig(grunt) {\n\tconst loadGruntConfig = require('load... | javascript | chosen |
[
{
"from": "system",
"value": "Replace ramda merge with es6 & add safety check\n"
},
{
"from": "human",
"value": "import { call } from 'redux-saga/effects'\nimport { Actions as NavigationActions, ActionConst } from 'react-native-router-flux'\nimport { merge } from 'ramda'\n\n// Process OPEN_SCREE... | javascript | chosen |
[
{
"from": "system",
"value": "[TASK] Implement a hostname check to prevent errors while running 'grunt init' on windows based machines\n"
},
{
"from": "human",
"value": "/**\n * Grunt-Shell\n * @description Run shell commands.\n * @docs https://github.com/sindresorhus/grunt-shell\n */\n\nvar con... | javascript | chosen |
[
{
"from": "system",
"value": "Add user tooltip and links in message\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport { FormattedRelative } from 'react-intl';\nimport Body from '../post/Body';\nimport Avatar from '../widgets/Avatar';\n\nconst Message = (props) => {\n const {... | javascript | chosen |
[
{
"from": "system",
"value": "Fix last-name sort for no spaces\n"
},
{
"from": "human",
"value": "module.controller('HomeView', [\n\t'$scope', 'parties', 'volume', 'pageService', function ($scope, parties, volume, page) {\n\t\tpage.display.title = page.constants.message('page.title.home');\n\n\t... | javascript | chosen |
[
{
"from": "system",
"value": "Add support for bar and column charts back in.\n"
},
{
"from": "human",
"value": "// Load the Visualization API and the piechart package.\ngoogle.load('visualization', '1.0', {'packages':['corechart']});\n\n// Set a callback to run when the Google Visualization API ... | javascript | chosen |
[
{
"from": "system",
"value": "Modify method for toggling sidebar\n"
},
{
"from": "human",
"value": "(function(app) {\n 'use strict';\n\n var dom = app.dom || require('../dom.js');\n var Button = app.Button || require('./button.js');\n\n var SidebarToggleButton = Button.inherits(function(prop... | javascript | chosen |
[
{
"from": "human",
"value": "Add required interface for a jspm module\n"
},
{
"from": "gpt",
"value": "'use strict';\n\nvar JspmNuget = function (options, ui) {\n \n};\n\n// static configuration function\nJspmNuget.configure = function(config, ui) {\n \n};\n\n// regular expression to verify pa... | javascript | chosen |
[
{
"from": "system",
"value": "Print help instead of creating new subshell if already running workshop.\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\n\n\"use strict\"\n\nvar args = process.argv.slice(2)\n\nvar workshop = require('../')\n\nworkshop(process.argv[3], function(code) {\n co... | javascript | chosen |
[
{
"from": "system",
"value": "Revert using input event, change seems good enough\n"
},
{
"from": "human",
"value": "\"use strict\";\nif (typeof localStorage !== \"undefined\"){\n\tfor(var key in localStorage){\n\t\tif (localStorage.hasOwnProperty(key) && key != \"debug\") exports[key] = localSto... | javascript | chosen |
[
{
"from": "system",
"value": "Once: Debug output when blocking duplicate event\n"
},
{
"from": "human",
"value": "'use strict';\n\n\n/**\n * Once middleware will block an event if there is already a scheduled event\n * @param {Event} event the event to check\n * @param {DBWrkr} wrkr wrkr instanc... | javascript | chosen |
[
{
"from": "system",
"value": "Add set and range to color scale, fix interpolate\n"
},
{
"from": "human",
"value": "// @flow\nimport type {BaseScale} from './baseScale';\nimport type Series from '../series/Series';\n\nimport * as d3Scale from 'd3-scale';\nimport categoricalScale from './categoric... | javascript | chosen |
[
{
"from": "system",
"value": "Fix node-gcm path; now working\n"
},
{
"from": "human",
"value": "/**\n * Created by nbenes on 10/27/13.\n */\n\nPackage.describe({\n summary: \"Google Cloud Messaging interface\"\n});\n\nNpm.depends({\n 'node-gcm': '0.9.6'\n});\n\nPackage.on_use(function (api... | javascript | chosen |
[
{
"from": "system",
"value": "Set momentjs version to use\n"
},
{
"from": "human",
"value": "Package.describe({\n name: 'verron:moment-twitter',\n version: '0.2.1',\n // Brief, one-line summary of the package.\n summary: '',\n // URL to the Git repository containing the source code for this... | javascript | chosen |
[
{
"from": "system",
"value": "Add post json request method\n"
},
{
"from": "human",
"value": "var request = require('request')\nvar constants = require('../custom_modules/constants')\nvar headers = require('../custom_modules/headers')\n\nvar cookie_jar = request.jar()\nvar request = request.defa... | javascript | chosen |
[
{
"from": "system",
"value": "Fix mirage to always include factories\n"
},
{
"from": "human",
"value": "/* eslint global-require: off, import/no-mutable-exports: off */\nimport merge from 'lodash/merge';\nimport flow from 'lodash/flow';\n\nconst environment = process.env.NODE_ENV || 'test';\n\nl... | javascript | chosen |
[
{
"from": "system",
"value": "Update with reference to global nav partial\n"
},
{
"from": "human",
"value": "var _ = require('lodash')\nvar fs = require('fs')\nvar gzip = require('gzip-size')\nvar filesize = require('filesize')\nvar cssstats = require('cssstats')\n\nvar module = require('tachyon... | javascript | chosen |
[
{
"from": "system",
"value": "Add 'use strict' from 3.1.0-beta.1\n\nThis fixes an ESLint error introduced by the 3.0.0 upgrade.\n"
},
{
"from": "human",
"value": "const browsers = [\n 'last 1 Chrome versions',\n 'last 1 Firefox versions',\n 'last 1 Safari versions'\n];\n\nconst isCI = !!proce... | javascript | chosen |
[
{
"from": "system",
"value": "Make feature work: enter key advances to next element\n"
},
{
"from": "human",
"value": "Template.submit.helpers({\n prompts: function() {\n return Prompts.inOrder();\n },\n alreadySubmitted: function() {\n return Session.get('submitted');\n }\n});\n\nTemp... | javascript | chosen |
[
{
"from": "system",
"value": "Add protocol to resource_change event URIs\n"
},
{
"from": "human",
"value": "const P = require('bluebird');\nconst preq = require('preq');\nconst uuid = require('cassandra-uuid').TimeUuid;\n\nfunction getResourceChangeEvent(resourceUri, domain) {\n return {\n m... | javascript | chosen |
[
{
"from": "system",
"value": "Allow for min version to be env var.\n"
},
{
"from": "human",
"value": "\"use strict\";\n\nconst cheerio = require(\"cheerio\");\nconst semver = require(\"semver\");\n\nconst scraper = require(\"./scraper\");\n\nconst RELEASE = /^v\\d+\\.\\d+\\.\\d+\\/$/;\nconst MIN... | javascript | chosen |
[
{
"from": "system",
"value": "Remove items from dashboard view when gone\n"
},
{
"from": "human",
"value": "var ipc = require('ipc'),\n _ = require('lodash')\n\ninit();\n\nipc.on('internals', update);\n\nvar isInitialised = false,\n root;\n\nfunction init() {\n root = d3.select('#vis').... | javascript | chosen |
[
{
"from": "system",
"value": "Test if Ci fails on a broken e2e test.\n"
},
{
"from": "human",
"value": "var mocha = require('mocha')\nvar describe = mocha.describe\nvar it = mocha.it\nvar chai = require('chai')\nvar chaiAsPromised = require('chai-as-promised')\nchai.use(chaiAsPromised)\nvar prot... | javascript | chosen |
[
{
"from": "system",
"value": "Delete AFL3 license as it is unused\n"
},
{
"from": "human",
"value": "var $ = require('jquery');\n\nvar licenses = require('json!list-of-licenses');\nvar DEFAULT_LICENSE, OTHER_LICENSE;\nvar list = $.map(licenses, function(value, key) {\n value.id = key;\n\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Resolve Babel options in tests\n"
},
{
"from": "human",
"value": "const path = require('path');\n\nfunction resolve(relativePath) {\n return path.join(__dirname, relativePath);\n}\n\nvar babelOptions = {\n \"presets\": [\n [\"es2015\", {\"modules\": false}]\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Format tags... actually, this probably belongs in transpiling\n"
},
{
"from": "human",
"value": "/**\n * React Static Boilerplate\n * https://github.com/koistya/react-static-boilerplate\n * Copyright (c) Konstantin Tarkus (@koistya) | MIT license\n */\n\nimport glob... | javascript | chosen |
[
{
"from": "system",
"value": "Update for plug-in : Weibo\n"
},
{
"from": "human",
"value": "var hoverZoomPlugins = hoverZoomPlugins || [];\nhoverZoomPlugins.push( {\n name: 'Weibo',\n version: '0.1',\n prepareImgLinks: function(callback) {\n var res = [];\n hoverZoom.urlR... | javascript | chosen |
[
{
"from": "system",
"value": "Include legend label text in update block.\n"
},
{
"from": "human",
"value": "import {Index, Label, Offset, Size, Total, Value} from './constants';\nimport guideMark from './guide-mark';\nimport {TextMark} from '../marks/marktypes';\nimport {LegendLabelRole} from '.... | javascript | chosen |
[
{
"from": "system",
"value": "[native] Use global NavContext for displayActionResultModal\n"
},
{
"from": "human",
"value": "// @flow\n\nimport { NavigationActions } from 'react-navigation';\n\nimport { dispatch } from '../redux/redux-setup';\nimport { ActionResultModalRouteName } from './route-... | javascript | chosen |
[
{
"from": "system",
"value": "Remove new tag at message view\n"
},
{
"from": "human",
"value": "import React from 'react'\nimport {MarkdownPreview} from 'react-marked-markdown';\nimport Loading from 'app/components/loading'\nimport Modal from 'app/components/modal'\nimport rpc from 'app/rpc'\nim... | javascript | chosen |
[
{
"from": "system",
"value": "Remove ProtonMail since it's used in ProtonVPN also\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport { c } from 'ttag';\nimport { SubTitle, Alert, useSubscription, useUser, MozillaInfoPanel } from 'react-components';\nimport NewsCheckboxes from ... | javascript | chosen |
[
{
"from": "system",
"value": "Add link to URL `/trends`\n"
},
{
"from": "human",
"value": "import React from \"react\";\nimport {IndexLink, Link} from 'react-router';\n\nexport default class Header extends React.Component {\n render() {\n return (\n <div className=\"ui text container\" ... | javascript | chosen |
[
{
"from": "system",
"value": "Add styling and some navigation to header.\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport { Link, IndexLink } from 'react-router';\n\nimport AppBar from 'material-ui/AppBar';\nimport IconButton from 'material-ui/IconButton';\nimport IconMenu f... | javascript | chosen |
[
{
"from": "system",
"value": "Allow workspaces outside of the workspace root\n\nSummary:\nAs part of the workspace separation, and because our repo does not have an ideal layout (for example `react-native-github` consists of both product and tooling code, and is hard to move right now), I am in need of maki... | javascript | chosen |
[
{
"from": "system",
"value": "Remove javascript requirement for tether.\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/j... | javascript | chosen |
[
{
"from": "system",
"value": "Fix handler module path check, was broken for module not found in handler\n"
},
{
"from": "human",
"value": "'use strict'\n\nconst serverlessLog = require('../serverlessLog.js')\n\nmodule.exports = class InProcessRunner {\n constructor(functionName, handlerPath, ha... | javascript | chosen |
[
{
"from": "system",
"value": "Trailing-spaces: Clean up code a wee bit.\n"
},
{
"from": "human",
"value": "/* Check for trailing spaces\n */\n\nmodule.exports = function (filename, body, config, callback) {\n // Check each line for trailing spaces\n\n var re = /\\s$/,\n lines = body... | javascript | chosen |
[
{
"from": "system",
"value": "Fix main js file to pass tests\n"
},
{
"from": "human",
"value": "/*\n * fc-autocomplete\n * https://github.com/djembuka/fc-autocomplete\n *\n * Copyright (c) 2014 Tatiana\n * Licensed under the MIT license.\n */\n\n(function($) {\n\n // Collection method.\n $.fn.... | javascript | chosen |
[
{
"from": "system",
"value": "Test: Adjust max_allowed_packet size if needed\n\nThis should make everything pass on travis which seems to have a MySQL\nserver configured for smaller max_allowed_packet values.\n"
},
{
"from": "human",
"value": "var common = require('../common');\nvar connecti... | javascript | chosen |
[
{
"from": "system",
"value": "Correct caja global var. caja___ is what is used, and not having this declared will cause dynamic JS compilation warnings/errors.\n\ngit-svn-id: 84334937b86421baa0e582c4ab1a9d358324cbeb@1084408 13f79535-47bb-0310-9956-ffa450edef68\n"
},
{
"from": "human",
"value": "... | javascript | chosen |
[
{
"from": "system",
"value": "Declare the trampoline variable before using it.\n\nThis makes the trampoline \"module\" work in strict mode which you are now using everywhere."
},
{
"from": "human",
"value": "Elm.Native.Trampoline = {};\nElm.Native.Trampoline.make = function(elm) {\n elm.Nativ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix App component not being used due to typo'd prop name\n"
},
{
"from": "human",
"value": "/*\n * Export your react-router routes here.\n */\n\nimport React from 'react';\nimport {Route} from 'react-router';\n\nimport App from '../views/App';\n\nexport default (\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix broken require in createBatchedCache\n"
},
{
"from": "human",
"value": "import {BatchedStateMachine} from './batched-state-machine'\n\nexport function createBatchedStateMachineCache(stateMachineConfig) {\n const cache = {}\n\n return {\n get(cacheKey, initi... | javascript | chosen |
[
{
"from": "system",
"value": "Support args in different orders\n"
},
{
"from": "human",
"value": "var exec = require('child_process').exec;\nvar path = require('path');\nvar extend = require('xtend');\nvar command = require('language-command');\n\n/**\n * Execute a file in a particular pr... | javascript | chosen |
[
{
"from": "system",
"value": "Add missing semicolon in js\n\nSigned-off-by: Michael Barton <1d6e1cf70ec6f9ab28d3ea4b27a49a77654d370e@michaelbarton.me.uk>\n"
},
{
"from": "human",
"value": "hljs.initHighlightingOnLoad();\n\nvar metrics_url = \"http://metrics.bioboxes.org/v1/containers.json\"\n\n$... | javascript | chosen |
[
{
"from": "system",
"value": "Update test seed to use 'professor' as role name.\n"
},
{
"from": "human",
"value": "exports.seed = knex =>\n knex.transaction((trx) => {\n knex('role').transacting(trx).insert({\n id: 1,\n name: 'Professor',\n })\n .then(trx.commit)\n .catch(... | javascript | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.