conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "test(unit): Make unit tests work with restructured source code\n"
},
{
"from": "human",
"value": "var context = require.context('./src', true, /^((?!image).)*\\.js$/);\ncontext.keys().forEach(context);\n"
},
{
"from": "gpt",
"value": "// For some reason,... | javascript | chosen |
[
{
"from": "system",
"value": "Update javascript test for new structure\n"
},
{
"from": "human",
"value": "module(\"Hide department children\", {\n setup: function() {\n this.$departments = $(\n '<div class=\"js-hide-department-children\">'\n + '<div class=\"department\">'\n + ... | javascript | chosen |
[
{
"from": "system",
"value": "Use strict mode in karma E2E test congig file\n"
},
{
"from": "human",
"value": "// Karma configuration\n// http://karma-runner.github.io/0.10/config/configuration-file.html\n\nmodule.exports = function(config) {\n config.set({\n // base path, that will be used ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix Default Encode/Decode State Functions\n\nFix the default object param names exported from 'defaults.js', so encoding/decoding when no custom functions are given.\n"
},
{
"from": "human",
"value": "/**\n * @flow\n */\nexport const DEFAULT_PATH = '/dispatch/';\nex... | javascript | chosen |
[
{
"from": "system",
"value": "Make calendar input fields numeric\n"
},
{
"from": "human",
"value": "import React, { Component } from 'react';\nimport { Grid, Col, Form, Item, Label, Input, Card, CardItem } from 'native-base';\n\nimport CardHeader from '../../common/card-header/cardHeader';\n\n//... | javascript | chosen |
[
{
"from": "system",
"value": "Write findApp method for Post. Catch the error\n"
},
{
"from": "human",
"value": "\"use strict\";\n\n// src/app.js\n\nlet Post = {\n findAll() {\n return new Promise( (resolve, reject) => {\n resolve(\"OK posts!\");\n });\n }\n};\n\nlet ui = {\n render... | javascript | chosen |
[
{
"from": "system",
"value": "Make test slightly more robust with latest Chrome\n"
},
{
"from": "human",
"value": "import Rollup from \"../pages/rollup.page\"\n\ndescribe(\"Preview rollup page\", () => {\n beforeEach(\"Open the rollup page\", () => {\n Rollup.open()\n Rollup.rollup.waitFo... | javascript | chosen |
[
{
"from": "system",
"value": "Rename tests to prevent confusion with Draft\n"
},
{
"from": "human",
"value": "import {describe, CourseSelect, Calendar, ReadingBuilder} from './helpers';\nimport {expect} from 'chai';\n\nconst TEACHER_USERNAME = 'teacher01';\n\ndescribe('Draft Tests', function() {... | javascript | chosen |
[
{
"from": "system",
"value": "Make sure promises test assertions are run by test runner thread\n"
},
{
"from": "human",
"value": "var assert = require(\"assert\");\nvar {defer, promises} = require(\"ringo/promise\");\n\nexports.testPromiseList = function() {\n var d1 = defer(), d2 = defer(), ... | javascript | chosen |
[
{
"from": "system",
"value": "Add notice for optional port\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\n\n/* _ _ _\n * ___ ___| | |_ ___ ___ | |___\n * / __/ __| | __/ _ \\ / _ \\| / __|\n * \\__ \\__ \\ | || (_) | (_) | \\__ \\\n * |___/___/_|\\__\\___/ \\___... | javascript | chosen |
[
{
"from": "system",
"value": "Set required alt attr instead of title for <img>s\n"
},
{
"from": "human",
"value": "Emoji = {};\n\nEmoji.baseImagePath = '/packages/davidfrancisco_twemoji/img/';\n\nEmoji.convert = function (str) {\n if (typeof str !== 'string') {\n return '';\n }\n\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Modify test to reflect new data being passed in.\n"
},
{
"from": "human",
"value": "import { moduleForComponent, test } from 'ember-qunit';\nimport hbs from 'htmlbars-inline-precompile';\n\nmoduleForComponent('search-facet-worktype', 'Integration | Component | searc... | javascript | chosen |
[
{
"from": "system",
"value": "Remove unused scope from NotesController.\n"
},
{
"from": "human",
"value": "angular.module('meganote.notes', [\n 'ui.router'\n])\n\n.config(function($stateProvider) {\n $stateProvider\n\n .state('notes', {\n url: '/notes',\n templateUrl: 'notes/notes.h... | javascript | chosen |
[
{
"from": "system",
"value": "Change directive so that its layout matches the top level.\n"
},
{
"from": "human",
"value": "angular.module('materialscommons').component('checkMdContent', {\n template: `\n <div ng-if=\"$ctrl.show\">\n Hello there\n <md-content>\n <d... | javascript | chosen |
[
{
"from": "system",
"value": "Add missing link to external server\n"
},
{
"from": "human",
"value": "/* jshint node: true */\n'use strict';\n\nmodule.exports = {\n name: 'ember-cli-respond',\n contentFor: function(type, config) {\n if (type === 'head-footer') {\n var output = '<scrip... | javascript | chosen |
[
{
"from": "system",
"value": "Rename args to context for clarity.\n"
},
{
"from": "human",
"value": "exports.eejsBlock_styles = function(hook_name, args, cb){\n args.content += '<style type=\"text/css\">' \n + '.toolbar ul li.syncstatus {'\n + ' display: none;'\n + ' line-height: 32... | javascript | chosen |
[
{
"from": "system",
"value": "Make express server a lot more verbose.\n"
},
{
"from": "human",
"value": "var newrelic = require('newrelic');\nvar express = require('express');\nvar compression = require('compression');\nvar seo = require('mean-seo');\n\nvar app = express();\n\n// Enable gzip com... | javascript | chosen |
[
{
"from": "system",
"value": "Validate the server according to jscs\n"
},
{
"from": "human",
"value": "var PeerServer = require('peer').PeerServer,\n express = require('express'),\n Topics = require('./public/src/Topics.js'),\n app = express(),\n port = process.env.PORT || 3001;\n\na... | javascript | chosen |
[
{
"from": "system",
"value": "Fix anonymous class exposing functionality "
},
{
"from": "human",
"value": "\n\nmodule.exports = {\n\n onLoad: function(callback) {\n if (typeof callback !== 'function') {\n throw new Error('\"onLoad\" must have a callback function');\n }\n withLiveR... | javascript | chosen |
[
{
"from": "system",
"value": "refactor: Add the program name to error messages\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\n\nconst co = require('co');\nconst util = require('./lib/util');\nconst runCommand = require('./lib/run.cmd');\nconst initCommand = require('./lib/init.cmd');\nc... | javascript | chosen |
[
{
"from": "system",
"value": "Set decodeEntities to false for cheerio.\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar mediaQueryText = require('mediaquery-text'),\n cheerio = require('cheerio');\n\nmodule.exports = function (html, options, callback) {\n var results = {},\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add some events and url transform\n"
},
{
"from": "human",
"value": "var TC = require('tangram.cartodb');\nvar LeafletLayerView = require('./leaflet-layer-view');\nvar L = require('leaflet');\n\nvar LeafletCartoDBVectorLayerGroupView = L.Class.extend({\n includes: ... | javascript | chosen |
[
{
"from": "system",
"value": "Add figshare ID to L1 presenter data\n"
},
{
"from": "human",
"value": "import { map } from 'lodash';\n\nfunction parseL1ArticlePresenter(article) {\n return {\n identifier: article.doi,\n datePublished: article.published_date,\n title: article.title,\n }... | javascript | chosen |
[
{
"from": "system",
"value": "Fix removal of antecedent '?' or '&' in fidRemove\n"
},
{
"from": "human",
"value": "(function($, undefined) {\n\n// Is History API reliably supported? (based on Modernizr & PJAX)\nif (!(window.history && history.pushState && window.history.replaceState && !navigato... | javascript | chosen |
[
{
"from": "system",
"value": "Change Cookie expiration to 30 days\n"
},
{
"from": "human",
"value": "import { serialize } from 'cookie';\n\nexport default async function cookieHandler(req, res) {\n const { method } = req;\n if (method === 'POST') {\n const body = JSON.parse(req.body);\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Remove ES6 from ws/factor for stupid old browsers\n"
},
{
"from": "human",
"value": "var isNode = typeof window === 'undefined';\nvar WebSocket = isNode ? require('ws') : window.WebSocket;\n\n/**\n * Wraps a DOM socket with EventEmitter-like syntax.\n * @param {Soc... | javascript | chosen |
[
{
"from": "system",
"value": "[minor] Rename key to something more sane, like name\n"
},
{
"from": "human",
"value": "(function(z,m){\n try{document.cookie=z+'='+m+'; expires=Thu, 18 Dec 2913 12:00:00 UTC';}\n catch(e){}\n\n try{sessionStorage.setItem(z,m);}\n catch(e){}\n\n try{localStroag... | javascript | chosen |
[
{
"from": "system",
"value": "Move the clone function closer to it's usage."
},
{
"from": "human",
"value": "export default class FlatMetaData {\n static to(data) {\n return buildMetaData(data);\n }\n}\n\nfunction buildMetaData(all) {\n const items = buildItems(extractAllItems(all));\n re... | javascript | chosen |
[
{
"from": "system",
"value": "Remove a useless line of code.\n"
},
{
"from": "human",
"value": "foam.CLASS({\n package: 'foam.u2.mlang',\n name: 'Table',\n extends: 'foam.dao.DAOSink',\n requires: [\n 'foam.dao.ArrayDAO',\n 'foam.u2.view.TableView',\n ],\n properties: [\n {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Support users that do not use git.\nConsole.log the commit message\n"
},
{
"from": "human",
"value": "/**\n Copyright 2019 Google LLC\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the Lice... | javascript | chosen |
[
{
"from": "system",
"value": "Split spec run merged into one single run command\n"
},
{
"from": "human",
"value": "// Based on: https://github.com/cypress-io/cypress/issues/416#issuecomment-337400871\n// Runs Cypress runner per integration test. Mitigates memory hogging issues.\n// Once a Cypres... | javascript | chosen |
[
{
"from": "system",
"value": "Fix error on static code analysis by Webstorm\n"
},
{
"from": "human",
"value": "import scantradtk from '../lib';\n\ndescribe('scantradtk', function () {\n\n var specification = {\n extension: 'jpg',\n pageURL: 'http://lel-scan.co/mangas/${title}/${chapter}/$... | javascript | chosen |
[
{
"from": "system",
"value": "Remove ESLint plugin to avoid circular dependency\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar plugins = [];\n\nplugins = plugins.concat( require( './lint/jsdoc.js' ) );\nplugins = plugins.concat( require( './eslint' ) );\nplugins = plugins.concat( requir... | javascript | chosen |
[
{
"from": "system",
"value": "Fix problem when ERROR after a timeout\n"
},
{
"from": "human",
"value": "// node http api\nvar http = require('http');\n\n/* \n SERVICE PROVIDED BY TELIZE.COM\n http://www.telize.com/geoip/46.19.37.108\n*/\n\nvar serviceHost = 'www.telize.com';\nvar servicePath = '... | javascript | chosen |
[
{
"from": "system",
"value": "Exclude static and javascripts paths.\n\nSigned-off-by: François de Metz <5187da0b934cc25eb2201a3ec9206c24b13cb23b@stormz.me>\n"
},
{
"from": "human",
"value": "var github = require('connect_auth_github');\n\nvar settings = require('../ep_etherpad-lite/node/utils/Se... | javascript | chosen |
[
{
"from": "system",
"value": "Use strict comparisons (2): Fix regression\n"
},
{
"from": "human",
"value": "/*\n * 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 obtain one at http://mo... | javascript | chosen |
[
{
"from": "system",
"value": "Add wrapper to svg for proper alignment\n"
},
{
"from": "human",
"value": "import classNames from 'classnames';\nimport React from 'react';\n\nimport Icon from './Icon';\n\nconst Alert = ({children, flushBottom, showIcon, type}) => {\n const classes = classNames('a... | javascript | chosen |
[
{
"from": "system",
"value": "Set up runtime JS error tracking\n\n- this client lib supports it with `trackErrors` option. Seems to work alright giving the line the error occurred at + message\n"
},
{
"from": "human",
"value": "import Piwik from 'piwik-react-router'\n\n/**\n * @typedef {Object} ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix calling JSON.parse on undefined\n\nThis throws an exception in Chrome. So feed `null` to `JSON.parse` which\nreturns `null`.\n"
},
{
"from": "human",
"value": "import Reflux from 'reflux';\nimport UserActions from '../actions/UserActions';\n\nvar user = JSON.par... | javascript | chosen |
[
{
"from": "system",
"value": "Rename js_lib to js_library in docs/comments/etc... to clean up lingering references to js_lib.\n\nCL automatically created by:\n replace_string --pcre '\\b([^\\\":/\\n])js_lib\\b' '\\1js_library'\n\n-------------\nCreated by MOE: https://github.com/google/moe\nMOE_MIGRATED_... | javascript | chosen |
[
{
"from": "system",
"value": "Use Fullfledged editor as Surface model.\n"
},
{
"from": "human",
"value": "var Substance = require('substance');\nvar $$ = React.createElement;\nvar _ = require(\"underscore\");\nvar Surface = Substance.Surface;\n\n// Container Node\n// ----------------\n//\n// Rep... | javascript | chosen |
[
{
"from": "system",
"value": "Add an injectable service binding list resource service\n"
},
{
"from": "human",
"value": "// Copyright 2015 Google Inc. All Rights Reserved.\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance... | javascript | chosen |
[
{
"from": "system",
"value": "Add modules to arcsine namespace\n"
},
{
"from": "human",
"value": "'use strict';\n\n/*\n* When adding modules to the namespace, ensure that they are added in alphabetical order according to module name.\n*/\n\n// MODULES //\n\nvar setReadOnly = require( '@stdlib/ut... | javascript | chosen |
[
{
"from": "system",
"value": "Add configuration properties for legend title specifications.\n"
},
{
"from": "human",
"value": "import {GuideTitleStyle} from './constants';\nimport guideMark from './guide-mark';\nimport {TextMark} from '../marks/marktypes';\nimport {LegendTitleRole} from '../mark... | javascript | chosen |
[
{
"from": "system",
"value": "Add missing sqs base import\n\nAdd missing sqs base import"
},
{
"from": "human",
"value": "\"use strict\";\n\nmodule.exports = {\n SqsConsumer: require('./sqs-consumer')\n};"
},
{
"from": "gpt",
"value": "\"use strict\";\n\nmodule.exports = {\n SqsCon... | javascript | chosen |
[
{
"from": "system",
"value": "Call api to get tripupdates and stops\n"
},
{
"from": "human",
"value": "import React from 'react'\nimport { Col, Row } from 'react-bootstrap'\n\nimport logo from '../images/ripta_logo.png'\n\nexport default class NextBuses extends React.Component {\n\n componentDi... | javascript | chosen |
[
{
"from": "system",
"value": "Update some function syntax and add options to the downloadBox call\n"
},
{
"from": "human",
"value": "var utils = require(\"./lib/utils\");\nvar tmp = require(\"tmp\");\nvar path = require(\"path\");\n\nvar Config = require(\"truffle-config\");\n\nvar Box = {\n un... | javascript | chosen |
[
{
"from": "system",
"value": "Handle error responses as well\n\nDoes require including $q to do the promise rejection."
},
{
"from": "human",
"value": "(function() {\n 'use strict';\n var getDebugBarID = function(response) {\n var headers = response && response.headers && response.h... | javascript | chosen |
[
{
"from": "system",
"value": "Make run loop work within the app class\n"
},
{
"from": "human",
"value": "var gl;\n\nvar App = new Class({\n Implements: Options,\n options: {\n name: 'webglet-app',\n width: 800,\n height: 600,\n frameRate: 60\n },\n\n initi... | javascript | chosen |
[
{
"from": "system",
"value": "Call getAllInputValues every 2 secs and reorganize the object\n"
},
{
"from": "human",
"value": "window.__i10c = {};\n\nwindow.__i10c.getInputValue = (inputEle) => {\n return inputEle.value;\n}\n\nwindow.__i10c.setInputValue = (inputEle, val) => {\n inputEle.v... | javascript | chosen |
[
{
"from": "system",
"value": "Make [[foo]] url filter work\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\n// Usage: ghw <input> <output dir>\n// where <input> is either a file or a dir.\nvar VERSION = '0.0.1'\n\nvar fs = require('fs');\nvar marked = require('marked');\n\nvar args = pro... | javascript | chosen |
[
{
"from": "system",
"value": "Increase timeout so that the large stdout test won't fail on slow machine.\n"
},
{
"from": "human",
"value": "var Process = require(\"../lib/Process\");\nvar chai = require(\"chai\");\nvar chaiAsPromised = require(\"chai-as-promised\");\nchai.use(chaiAsPromised);\nv... | javascript | chosen |
[
{
"from": "system",
"value": "Expand on building objects example\n"
},
{
"from": "human",
"value": "function Person(firstname, lastname) {\n console.log(this);\n this.firstname = firstname;\n this.lastname = lastname;\n console.log('This function is invoked');\n\n // return { greet: 'I got ... | javascript | chosen |
[
{
"from": "system",
"value": "Change querying param to variable\n"
},
{
"from": "human",
"value": "import React, { useEffect, useState } from \"react\";\nimport classes from \"./SelectCompetition.module.css\";\nimport CompetitionCard from \"../../components/CompetitionCard/CompetitionCard\";\nim... | javascript | chosen |
[
{
"from": "system",
"value": "fix: Hide navbar-collapse on item click\n\nUpdated min file\n"
},
{
"from": "human",
"value": "/*!\n * Start Bootstrap - Agency v1.1.1 (http://startbootstrap.com/template-overviews/agency)\n * Copyright 2013-2016 Start Bootstrap\n * Licensed under MIT (https://githu... | javascript | chosen |
[
{
"from": "system",
"value": "Fix bug in dependency utiils :bug:\n"
},
{
"from": "human",
"value": "'use strict';\n\nlet fs = require('fs');\nlet path = require('path');\nlet parentPath = path.resolve(__dirname, '..');\nlet config = JSON.parse(fs.readFileSync(path.join(parentPath, '.neutronrc'))... | javascript | chosen |
[
{
"from": "system",
"value": "Remove dead code from login modal window\n"
},
{
"from": "human",
"value": "var myUsername = null;\nvar URL = window.location.hostname + ':8080';\nvar socket = io.connect(URL);\nvar channel;\nvar ready = false;\nvar active = true;\nvar first = true;\n\nfunction upda... | javascript | chosen |
[
{
"from": "system",
"value": "Make sure _children_ property is updated\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar startsWith = require('es5-ext/lib/String/prototype/starts-with')\n\n , getOwnPropertyNames = Object.getOwnPropertyNames;\n\nmodule.exports = function self(proto, name) ... | javascript | chosen |
[
{
"from": "system",
"value": "Use “for” instead of “forEach” for external projects too\n"
},
{
"from": "human",
"value": "let fetch = require('node-fetch');\n\nconst getRepository = async (slug) => {\n const response = await fetch(`https://api.github.com/repos/mirego/${slug}`, {\n headers: {... | javascript | chosen |
[
{
"from": "system",
"value": "Fix bug for user not having devtools installed\n"
},
{
"from": "human",
"value": "import { createStore, applyMiddleware, compose } from 'redux'\nimport { persistStore, autoRehydrate } from 'redux-persist'\nimport createSagaMiddleware from 'redux-saga'\n\nimport sear... | javascript | chosen |
[
{
"from": "system",
"value": "Set up graphql api via express\n"
},
{
"from": "human",
"value": "import { graphql, buildSchema } from 'graphql';\nimport schema from './schema';\n\nlet id = 1;\nlet query = `{\n todo(id: ${id}) {\n id,\n text,\n complete\n }\n}`;\n\ngraph... | javascript | chosen |
[
{
"from": "system",
"value": "Return both component and map wrappers when mounting\n"
},
{
"from": "human",
"value": "import { createLocalVue, shallowMount } from '@vue/test-utils';\nimport LMap from '@/components/LMap.vue';\n\nconst localVue = createLocalVue();\n\nexport async function wrapInMa... | javascript | chosen |
[
{
"from": "system",
"value": "Add a few basic call expression tests\n"
},
{
"from": "human",
"value": "/*\n * CallExpression tests\n */\n\n/*---\n{\n \"skip\": true\n}\n---*/\n\n/* FIXME: expressions like: foo()() and foo().bar() etc */\n"
},
{
"from": "gpt",
"value": "/*\n * Ca... | javascript | chosen |
[
{
"from": "system",
"value": "Fix Validate Site popup when open on mobile phones\n"
},
{
"from": "human",
"value": "/*\n * Author: Pierre-Henry Soria <hello@ph7cms.com>\n * Copyright: (c) 2015-2016, Pierre-Henry Soria. All Rights Reserved.\n * License: GNU General Public License... | javascript | chosen |
[
{
"from": "system",
"value": "Reading: Fix highlighting on F&P tab\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport tabProptypes from './tabPropTypes';\nimport {mostRecentDataPoint} from './dibelsParsing';\nimport {F_AND_P_ENGLISH} from '../reading/thresholds';\nimport {Tab}... | javascript | chosen |
[
{
"from": "system",
"value": "Create missing categories mentioned in categoryPreference\n"
},
{
"from": "human",
"value": "var _ = require('underscore'),\n StatementsByFilter = require('./StatementsByFilter');\n\nvar StatementsByCategory = function() { };\n\nStatementsByCategory.prototype = {... | javascript | chosen |
[
{
"from": "system",
"value": "Convert Alert to S selector engine.\n"
},
{
"from": "human",
"value": ";(function ($, window, document, undefined) {\n 'use strict';\n\n Foundation.libs.alert = {\n name : 'alert',\n\n version : '5.0.3',\n\n settings : {\n animation: 'fadeOut',\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Convert entities to readable text in convos\n"
},
{
"from": "human",
"value": "// @flow\n\nimport React from 'react'\nimport {StyleSheet} from 'react-native'\nimport {ListRow, Detail, Title} from '../components/list'\nimport type {PodcastEpisode} from './types'\n\nc... | javascript | chosen |
[
{
"from": "system",
"value": "Fix loading more posts on UserActivity tab\n"
},
{
"from": "human",
"value": "Hummingbird.DashboardController = Ember.Controller.extend({\n\n currentTab: \"dashboard\",\n\n highlightDasboard: function() { return this.get('currentTab') == \"dashboard\" }.property('... | javascript | chosen |
[
{
"from": "system",
"value": "Fix repo select on create\n"
},
{
"from": "human",
"value": "jQuery(function() {\n var updateNameAndDescription = function() {\n var urlField = $(\"#extension-url-short-field\");\n var repos = urlField.data(\"repos\");\n var current = urlField.val();\n\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Use the Chrome formatter when running in Electron\n"
},
{
"from": "human",
"value": "module.exports = require('./common/minilog.js');\n\nvar consoleLogger = require('./node/console.js');\n\n// intercept the pipe method and transparently wrap the stringifier, if the\... | javascript | chosen |
[
{
"from": "system",
"value": "Exclude sourcemaps from size check\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\nconst { exec } = require('child_process');\nconst limit = 5000;\nexec('du -k --total browser/*', (err, stdout) => {\n if (err) {\n console.error(err);\n process.exit(1)... | javascript | chosen |
[
{
"from": "system",
"value": "Update comment to point to node install"
},
{
"from": "human",
"value": "// Download the helper library from https://www.twilio.com/docs/python/install\n\n// Your Account Sid and Auth Token from twilio.com/console\nconst accountSid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXX... | javascript | chosen |
[
{
"from": "system",
"value": "Rewrite a file for documentation\n"
},
{
"from": "human",
"value": "/**\n * Raw asychronous filter methods.\n *\n * @type {object}\n */\nexports.filtersAsync = require('./lib/async/filters');\n\n/**\n * Raw sychronous filter methods.\n *\n * @type {object}\n */\nexp... | javascript | chosen |
[
{
"from": "system",
"value": "Make text based repaint output not appear in images\n\nBUG=345027\n\nReview URL: https://codereview.chromium.org/197553008\n\ngit-svn-id: bf5cd6ccde378db821296732a091cfbcf5285fbd@169165 bbb929c8-8fbe-4397-9dbb-9b2b20218538\n"
},
{
"from": "human",
"value": "// Async... | javascript | chosen |
[
{
"from": "system",
"value": "Load Chip8 after DOM ready\n"
},
{
"from": "human",
"value": "window.Chip8 = require('../../src/chip8');\nwindow.chip8 = new Chip8(function() {console.log('beep')});\n\nconsole.log('chip8 is here!');\n"
},
{
"from": "gpt",
"value": "document.addEventList... | javascript | chosen |
[
{
"from": "system",
"value": "Add example for download icon\n"
},
{
"from": "human",
"value": "import React from 'react';\n\nimport Icon from 'src/Icon';\n\nfunction BasicIconsSet() {\n return (\n <div>\n <Icon type=\"add\" />\n <Icon type=\"edit\" />\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Change devtool to eval for faster builds\n"
},
{
"from": "human",
"value": "var common = require('./webpack.common.config.js');\nvar assign = require('object-assign');\n\nmodule.exports = assign(common, {\n debug: true,\n devtool: 'source-map'\n});\n"
},
{... | javascript | chosen |
[
{
"from": "system",
"value": "Update battery voltage example to use chipio.BatteryVoltage\n"
},
{
"from": "human",
"value": "var five = require('johnny-five');\nvar ChipIO = require('../index'); // or require('chip-io');\n\nvar board = new five.Board({\n io: new ChipIO()\n});\n\nboard.on('ready... | javascript | chosen |
[
{
"from": "system",
"value": "fix(offline): Use proper asset regex based on build.filenames\n"
},
{
"from": "human",
"value": "const _ = require('lodash')\nconst path = require('path')\n\n// https://github.com/NekR/offline-plugin/blob/master/docs/examples/SPA.md\n// https://github.com/NekR/offli... | javascript | chosen |
[
{
"from": "system",
"value": "Make enemy move more unpredictable\n"
},
{
"from": "human",
"value": "var EnemyType = {};\r\n\r\nEnemyType.Trash = function (game) {\r\n Phaser.Group.call(this, game, game.world, 'Trash Enemy', false, true, Phaser.Physics.ARCADE);\r\n\r\n this.enemySpeed = 200;\r\... | javascript | chosen |
[
{
"from": "system",
"value": "Add a watcher for the index.html file\n\n"
},
{
"from": "human",
"value": "var gulp = require('gulp');\nvar $ = require('gulp-load-plugins')({\n pattern: '*'\n});\n\nvar port = process.env.SERVER_PORT || 3000;\n\n$.requireDir('../../gulp');\n\n// Builds the docum... | javascript | chosen |
[
{
"from": "system",
"value": "Fix getValue, getReason when getting value from nested promises\n"
},
{
"from": "human",
"value": "'use strict';\n\nimport { PENDING, FULFILLED, REJECTED, SETTLED, NEVER, HANDLED } from './state';\n\nexport function isPending(p) {\n return (p.state() & PENDING) >... | javascript | chosen |
[
{
"from": "system",
"value": "Support Browse for Single Video File\n"
},
{
"from": "human",
"value": "import {\n dialog\n}\nfrom 'remote';\nimport alt from '../../alt'\nimport ModalActions from './../Modal/actions';\n\nclass MainMenuActions {\n\n openURL(paste = false) { // for pasting lat... | javascript | chosen |
[
{
"from": "system",
"value": "refactor: Move the issue details over to using $modal.\n"
},
{
"from": "human",
"value": "var mod = angular.module('Trestle.issue', []);\n\nmod.controller('IssueCtrl', function($scope, $dialog) {\n // init\n $scope.$id = \"IssueCtrl_\" + $scope.$id;\n\n _.exte... | javascript | chosen |
[
{
"from": "system",
"value": "Add buyer suffix to template.\n"
},
{
"from": "human",
"value": "var Templates = {};\n\nTemplates.ItemListingTemplate = _.template('\\\n\t<div class=\"item media\">\\\n\t\t<img class=\"pull-left\" src=\"<%= imageUrl %>\" />\\\n\t\t<div class=\"media-body\">\\\n\t\t\... | javascript | chosen |
[
{
"from": "system",
"value": "Remove old personal language support.\n"
},
{
"from": "human",
"value": "// Module\n\n// Language support: Use https://github.com/angular-translate/angular-translate/blob/master/demo/ex1_basic_usage.htm\n\nvar client28App = angular.module(\"client28App\", ['ngRoute'... | javascript | chosen |
[
{
"from": "system",
"value": "Add click handling for each poo event\n"
},
{
"from": "human",
"value": "import React from 'react';\n\nclass PickYourPoo extends React.Component {\n constructor(props) {\n super(props);\n }\n\n render () {\n return (\n <div>\n <h1 class=\"title\... | javascript | chosen |
[
{
"from": "system",
"value": "Use Example.deployed() to retrieve deployed contract in tests.\n"
},
{
"from": "human",
"value": "contract('Example', function(accounts) {\n it(\"should assert true\", function(done) {\n var example = Example.at(Example.deployed_address);\n assert.isTrue(true... | javascript | chosen |
[
{
"from": "system",
"value": "Delete all content (posts and tags)\n\ncloses #1445\n- added delete button to ‚ugly debug tools‘\n- added api call to delete all content\n- added /db to cache invalidation routes\n"
},
{
"from": "human",
"value": "/*global window, document, Ghost, $, _, Backbone, JS... | javascript | chosen |
[
{
"from": "system",
"value": "example: Add example of removing physics body\n"
},
{
"from": "human",
"value": "FamousFramework.scene('famous-tests:physics:basic:particle', {\n behaviors: {\n '.particle': {\n 'size': [200, 200],\n 'align': [0.5, 0.5],\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Check for duration before saving to db\n"
},
{
"from": "human",
"value": "export default log\n\nimport Entry from '../entry'\nimport prompt from 'prompt'\nimport chrono from 'chrono-node'\nimport {write} from './output'\nimport chalk from 'chalk'\nimport db from '..... | javascript | chosen |
[
{
"from": "system",
"value": "Stop favorite click from triggering card click\n"
},
{
"from": "human",
"value": "import React from \"react\";\nimport actions from \"actions\";\nimport stores from \"stores\";\n// images\nimport filled_star from \"images/filled-star-icon.png\";\nimport empty_star f... | javascript | chosen |
[
{
"from": "system",
"value": "Speed up showing favorite icons\n"
},
{
"from": "human",
"value": "function getFavoriteTeams() {\n var cookieName = \"tba-favorite-teams\";\n var storedFavoriteTeams = $.cookie(cookieName);\n\n console.log(storedFavoriteTeams);\n\n if (storedFavoriteTeams == nul... | javascript | chosen |
[
{
"from": "system",
"value": "Fix import actions & getters"
},
{
"from": "human",
"value": "import Vue from 'vue'\nimport Vuex from 'vuex'\n{{#if_eq vueVersion 'next'}}\nimport actions from './actions'\nimport getters from './getters'\n{{/if_eq}}\nimport modules from './modules'\n\nVue.use(Vuex)... | javascript | chosen |
[
{
"from": "system",
"value": "Add default value for connection host.\n\nNative binding connection tests will fail if the PGHOST environment variable is not set.\n\nThere already exists several defaul values for user, password and port. It would make sense to have a default host setting as well - localhost a... | javascript | chosen |
[
{
"from": "system",
"value": "Fix proptype checking in wallet recovery instructions component\n"
},
{
"from": "human",
"value": "// @flow\nimport React, { Component, PropTypes } from 'react';\nimport { observer } from 'mobx-react';\nimport styles from './WalletRecoveryInstructions.scss';\n\n@obs... | javascript | chosen |
[
{
"from": "system",
"value": "Allow config to specify smtpOptions instead of sendmail\n"
},
{
"from": "human",
"value": "import nodemailer from 'nodemailer';\nimport sendmailTransport from 'nodemailer-sendmail-transport';\n\nconst transporter = nodemailer.createTransport(sendmailTransport());\n\... | javascript | chosen |
[
{
"from": "system",
"value": "Change \" -> ' for consistency\n"
},
{
"from": "human",
"value": "'use strict';\n\nfunction AuthorizationError(message) {\n this.name = \"AuthorizationError\";\n this.message = message || \"Error while authorizing\";\n}\nAuthorizationError.prototype = new Error();... | javascript | chosen |
[
{
"from": "system",
"value": "[feat]: Create second view linking to homepage\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport { bindActionCreators } from 'redux';\nimport { connect } from 'react-redux';\nimport { Link } from 'react-r... | javascript | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.