conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Fix the test case of clang-rename\n\n ref #3\n"
},
{
"from": "human",
"value": "'use babel'\n\nimport ClangRenameCommand from '../lib/clang-rename-command'\n\ndescribe('ClangRenameCommand ', () => {\n it('invokes the command', () => {\n const clangRenameCommand... | javascript | chosen |
[
{
"from": "system",
"value": "Fix an issue for hostname to be connected\n"
},
{
"from": "human",
"value": "/* global io */\n\n'use strict';\n\nangular.module('memoApp')\n .service('memoService', function memoService() {\n this.socket = io.connect('http://localhost');\n\n this.watch = func... | javascript | chosen |
[
{
"from": "system",
"value": "Use logger to log error finding local nwitch\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\n\nvar path = require('path');\nvar findup = require('findup-sync');\nvar resolve = require('resolve').sync;\n\nvar base = process.cwd();\n\nvar nwitchPath;\ntry {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add print list of all hashes\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\n\nvar program = require('commander'),\n Hash = require('./../index'),\n pkg = require('./../package.json');\n\nprogram\n .version(pkg.version)\n .usage(\"<hash-function>... | javascript | chosen |
[
{
"from": "system",
"value": "Allow serving from absolute paths.\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\n\n'use strict'\n\nrequire('./splash')()\n\nconst path = require('path')\nconst flags = require('commander')\n\nconst markserv = require(path.join(__dirname, 'server'))\nconst ... | javascript | chosen |
[
{
"from": "system",
"value": "Add a newline symbol to avoid warning\n"
},
{
"from": "human",
"value": "// Copyright 2016, EMC, Inc.\n\n'use strict';\n\nmodule.exports = {\n friendlyName: 'dell racadm set bios',\n injectableName: 'Task.Dell.Racadm.SetBIOS',\n implementsTask: 'Task.Base.D... | javascript | chosen |
[
{
"from": "system",
"value": "FIX: Replace Lira sign with Pound sign\n\nFixes #17\n"
},
{
"from": "human",
"value": "module.exports = {\n error: {\n length: 'Length should be a valid positive number',\n password: 'Password should be a valid string'\n },\n regex: {\n digits: /\\d+/,\n... | javascript | chosen |
[
{
"from": "system",
"value": "Remove tracks from the trackMetadata hash\n"
},
{
"from": "human",
"value": "define([\n\t\"dojo/_base/declare\",\n\t'JBrowse/View/TrackList/Faceted'\n],\nfunction(declare,Faceted) {\n\treturn declare('WebApollo.View.TrackList.Faceted',Faceted,\n\t{\n\t\t// Subclass ... | javascript | chosen |
[
{
"from": "system",
"value": "Update to latest semantic release structure.\n"
},
{
"from": "human",
"value": "/* global require, module */\n\nvar EmberApp = require('ember-cli/lib/broccoli/ember-app');\n\nvar app = new EmberApp();\n\n// Use `app.import` to add additional libraries to the generat... | javascript | chosen |
[
{
"from": "system",
"value": "Fix default project icon not being pushed to production\n"
},
{
"from": "human",
"value": "require('./scss/index.scss');\nrequire('./assets/icons.svg');\nrequire('./assets/avatar.svg');\n"
},
{
"from": "gpt",
"value": "require('./scss/index.scss')\nrequi... | javascript | chosen |
[
{
"from": "system",
"value": "Use full version of Handlebars in production\n\nThis is a workaround for gaurav0/ember-cli-jquery-ui#1\n"
},
{
"from": "human",
"value": "/* global require, module */\n\nvar EmberApp = require('ember-cli/lib/broccoli/ember-app');\n\nvar app = new EmberApp({\n 'embe... | javascript | chosen |
[
{
"from": "system",
"value": "Add jquery and use flotr basic.\n"
},
{
"from": "human",
"value": "window.FlashCanvasOptions = {\n swfPath: 'lib/FlashCanvas/bin/'\n};\nyepnope([\n\n {\n test : (navigator.appVersion.indexOf(\"MSIE\") != -1 && parseFloat(navigator.appVersion.split(\"MSIE\")[1]... | javascript | chosen |
[
{
"from": "system",
"value": "Check with ES2015's Number.isFinite() if supported\n"
},
{
"from": "human",
"value": "/**\n * Checks if 'value' is a finite number.\n * @param {Number} value The 'value' to check.\n * @return {Boolean} true|false Returns true if value is a finite number, else false.... | javascript | chosen |
[
{
"from": "system",
"value": "Make sure FunctionToMethod is lazily compiled.\n\nR=arv@chromium.org\nBUG=v8:3330\nLOG=N\n\nReview URL: https://codereview.chromium.org/808723002\n\nCr-Commit-Position: 972c6d2dc6dd5efdad1377c0d224e03eb8f276f7@{#25847}\n"
},
{
"from": "human",
"value": "// Copyright... | javascript | chosen |
[
{
"from": "system",
"value": "Fix responsive styling for LoggedOutCTA\n"
},
{
"from": "human",
"value": "import styled from 'styled-components';\n\nimport constants from 'react/styles/constants';\nimport Text from 'react/components/UI/Text';\nimport { GenericButtonLink } from 'react/components/U... | javascript | chosen |
[
{
"from": "system",
"value": "Make Tweets model list generic\n\nAlso fix sorting\n"
},
{
"from": "human",
"value": "YUI.add(\"model-list-tweets\", function(Y) {\n \"use strict\";\n \n var tristis = Y.namespace(\"Tristis\"),\n models = Y.namespace(\"Tristis.Models\"),\n \n... | javascript | chosen |
[
{
"from": "system",
"value": "Fix bad comments for LabelView\n"
},
{
"from": "human",
"value": "// go.components.views\n// ===================\n// Generic, re-usable views for Go\n\n(function(exports) {\n var utils = go.utils,\n functor = utils.functor;\n\n // View for a label which can b... | javascript | chosen |
[
{
"from": "system",
"value": "Remove reference to createMapEntry in docs\n"
},
{
"from": "human",
"value": "var _curry2 = require('./internal/_curry2');\n\n\n/**\n * Takes two arguments, `fst` and `snd`, and returns `[fst, snd]`.\n *\n * @func\n * @memberOf R\n * @since v0.18.0\n * @category Lis... | javascript | chosen |
[
{
"from": "system",
"value": "Add support to close modal windows using escape key\n"
},
{
"from": "human",
"value": "function clearModal() {\n var modalList = document.querySelectorAll('.modal');\n for (i = 0; i < modalList.length; i++) {\n modalList[i].style.animation = 'quote-finish-tra... | javascript | chosen |
[
{
"from": "system",
"value": "Add a nice message and put content in grid column\n"
},
{
"from": "human",
"value": "import React from 'react'\n\n// Define your routing setup in this class for correct hot-module-reloading.\n\nclass App extends React.Component {\n render () {\n return <h1>ÐQues... | javascript | chosen |
[
{
"from": "system",
"value": "Remove selector property as is already being passed in from another component\n"
},
{
"from": "human",
"value": "import { connect } from 'react-redux';\nimport {\n makeSelectCostInfoForUri,\n makeSelectFileInfoForUri,\n makeSelectClaimIsMine,\n doNotify,\n} from... | javascript | chosen |
[
{
"from": "system",
"value": "Change test case to test with multiple urls\n"
},
{
"from": "human",
"value": "/**\n * Created by JiaHao on 18/8/15.\n */\n\nvar phantomBase = require('./../lib/phantomBase');\n\nconst testUrls = ['http://techcrunch.com/', 'https://www.facebook.com/'];\n\n\ndescribe... | javascript | chosen |
[
{
"from": "system",
"value": "Make Cell stateless functional component\n"
},
{
"from": "human",
"value": "import React, { PureComponent } from 'react'\nimport {\n defaultTo,\n F,\n ifElse,\n is,\n lensProp,\n over,\n pick,\n prop,\n when\n} from 'ramda'\nimport classnames from 'classnam... | javascript | chosen |
[
{
"from": "system",
"value": "Move test from buster to chai\n"
},
{
"from": "human",
"value": "const buster = require('buster')\nconst supertest = require('supertest')\nconst app = require('../lib/router')\n\nbuster.testCase('router test', {\n 'should return monitoring page on all routes': func... | javascript | chosen |
[
{
"from": "system",
"value": "test: Add tests for the latest additional exports.\n"
},
{
"from": "human",
"value": "/**\n * Created by Aaron on 7/5/2015.\n */\n\nimport {runTests} from './runner.js';\n\nimport assert from 'assert';\n\nimport Promise from 'bluebird';\n\nlet tests = ( Scriptor, bu... | javascript | chosen |
[
{
"from": "system",
"value": "Fix href for filter lists items\n"
},
{
"from": "human",
"value": "var React = require('react');\nvar classNames = require('classnames');\n\nvar FilterItem = React.createClass({\n propTypes: {\n selected: React.PropTypes.bool,\n href: React.Pr... | javascript | chosen |
[
{
"from": "system",
"value": "Fix problem of note replacement\n"
},
{
"from": "human",
"value": "import { asImmutable } from '../../../helper/immutableHelper';\nimport * as actions from './actions';\n\nconst initialState = asImmutable({});\n\nexport const reducer = (state = initialState, { type,... | javascript | chosen |
[
{
"from": "system",
"value": "Fix tests for all timezones\n"
},
{
"from": "human",
"value": "import { module, test } from '../qunit';\nimport moment from '../../moment';\n\nmodule('now');\n\ntest('now', function (assert) {\n var startOfTest = new Date().valueOf(),\n momentNowTime = mom... | javascript | chosen |
[
{
"from": "system",
"value": "Remove icon from vision tool\n"
},
{
"from": "human",
"value": "import React from 'react'\nimport SanityVision from './SanityVision'\nimport {route} from 'part:@sanity/base/router'\n\nexport default {\n router: route('/*'),\n name: 'vision',\n title: 'Vision',\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Set distance to root to infinity in graph work.\n"
},
{
"from": "human",
"value": "export default class BasicNode {\n constructor(id, graph) {\n this.id = id;\n this.graph = graph;\n }\n\n children(oneLevel = true) {\n return this.graph.children(this.id,... | javascript | chosen |
[
{
"from": "system",
"value": "Add TODO to look into hashchange\n"
},
{
"from": "human",
"value": "export function domExists() {\n return window && window.location;\n}\n\n/*\n * Ignore popstate events that don't define event.state\n * unless they come from Chrome on iOS (because it emits\n * eve... | javascript | chosen |
[
{
"from": "system",
"value": "Add tbody to remove warnings\n"
},
{
"from": "human",
"value": "import React from 'react'\nimport PortfolioEntry from './PortfolioEntry'\n\nexport default class PortfolioTable extends React.Component {\n constructor(props) {\n super(props)\n this.state = {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add express-session and create a new session\n"
},
{
"from": "human",
"value": "/* \n * This file exports the configuration Express.js back to the application\n * so that it can be used in other parts of the product.\n */\n\nvar path = require('path');\nvar logger =... | javascript | chosen |
[
{
"from": "system",
"value": "Add routes from API spec\n"
},
{
"from": "human",
"value": "'use strict';\n\nexports.run = function(app) {\n\tvar routes = require('./routes/index');\n\n\tapp.get('/', routes.index);\n\n\tapp.get('/queries', routes.queries.list);\n\tapp.get('/queries/:query', routes... | javascript | chosen |
[
{
"from": "system",
"value": "Handle ESC key to discard fullscreen\n"
},
{
"from": "human",
"value": "(function () {\n var els = document.querySelectorAll('[data-role=\"tommy-expander\"]')\n\n els.forEach(function (el) {\n el.classList.remove('is-hidden')\n el.addEventListener('click', o... | javascript | chosen |
[
{
"from": "system",
"value": "Send triggered emails in the background\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar Promise = require('bluebird');\nvar Handlebars = require('handlebars');\nvar Notification = require('../../api/models/Notification');\n\nvar Users = require('../..... | javascript | chosen |
[
{
"from": "system",
"value": "Use underscore for unused variables\n"
},
{
"from": "human",
"value": "module.exports = {\n\troot: true,\n\tenv: {\n\t node: true,\n\t},\n\tparser: '@typescript-eslint/parser',\n\textends: [\n\t 'plugin:@typescript-eslint/recommended'\n\t],\n\tparserOptions: {\n\t... | javascript | chosen |
[
{
"from": "system",
"value": "Disable the new stricter React eslint rules for now.\n"
},
{
"from": "human",
"value": "module.exports = {\n \"parser\": \"babel-eslint\",\n \"env\": {\n \"browser\": true,\n \"jest\": true,\n \"node\": true,\n \"es6\": true\n },\n \"extends\": [\"es... | javascript | chosen |
[
{
"from": "system",
"value": "Fix axis domain config lookup.\n"
},
{
"from": "human",
"value": "import {Top, Bottom} from './constants';\nimport guideMark from './guide-mark';\nimport {RuleMark} from '../marks/marktypes';\nimport {AxisDomainRole} from '../marks/roles';\nimport {addEncode} from '... | javascript | chosen |
[
{
"from": "system",
"value": "Rename exports, add reddit search + board\n"
},
{
"from": "human",
"value": "/**\n * External API endpoints for various resources\n * @return {Function -> Object}\n */\n\nexport const chan = function(boardID, threadID) {\n return {\n boardlist: `http://a.4... | javascript | chosen |
[
{
"from": "system",
"value": "Add more descriptive component documentation.\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport app from '../Firebase';\nimport TripsContainer from './trips-container'\n\nconst db = app.firestore();\n\n/**\n * Temporary hardcoded function that re... | javascript | chosen |
[
{
"from": "system",
"value": "Add emojie to moro text\n"
},
{
"from": "human",
"value": "const ora = require('ora')\nconst mainSpinner = ora({\n text: 'Moro',\n spinner: 'hearts',\n color: 'red'\n})\n\nmodule.exports = mainSpinner\n"
},
{
"from": "gpt",
"value": "const ora = requi... | javascript | chosen |
[
{
"from": "system",
"value": "Resolve the promise once we know the model is valid\n"
},
{
"from": "human",
"value": "import Ember from 'ember';\n\nexport default Ember.Controller.extend({\n form: function() {\n return this.store.createRecord('ssh-key');\n },\n\n actions: {\n deleteKey: ... | javascript | chosen |
[
{
"from": "system",
"value": "Save all opts in this.opts\n"
},
{
"from": "human",
"value": "'use strict';\n\nclass Keyv {\n\tconstructor(opts) {\n\t\topts = opts || {};\n\t\tthis.store = opts.store || new Map();\n\t}\n\n\tget(key) {\n\t\treturn Promise.resolve(this.store.get(key)).then(data => {... | javascript | chosen |
[
{
"from": "system",
"value": "Fix error when using default\n\nFix issue with calling restoreScroll with no arguments\n"
},
{
"from": "human",
"value": "import ScrollBehavior from 'scroll-behavior'\nimport SessionStorage from './SessionStorage'\n\nexport default ({ shouldUpdateScroll, manual }) =... | javascript | chosen |
[
{
"from": "system",
"value": "Use propper modules, for better tree shaking\n"
},
{
"from": "human",
"value": "import async from 'async'\n\nexport default {parallel, series}\n\n// Work on the tasks in parallel, with a optional concurrency limit\nexport function parallel (promiseFunctions, limit =... | javascript | chosen |
[
{
"from": "system",
"value": "Quit app when the window is closed\n"
},
{
"from": "human",
"value": "'use strict';\n\n(() => {\n const electron = require('electron');\n const app = electron.app;\n const BrowserWindow = electron.BrowserWindow;\n let win = null;\n\n app.on('window-all-closed',... | javascript | chosen |
[
{
"from": "system",
"value": "Set up experimental download using aws-sdk directly\n"
},
{
"from": "human",
"value": "experimental-download.js"
},
{
"from": "gpt",
"value": "var AWS = require('aws-sdk');\n\n\n\nvar filePath = '/Users/mikermcneil/Desktop/foo.txt';\nvar awsAccessKey = p... | javascript | chosen |
[
{
"from": "system",
"value": "Make devtool hook can be remove in production mode\n"
},
{
"from": "human",
"value": "import { createStore, applyMiddleware, compose } from 'redux';\nimport createSagaMiddleware, { END } from 'redux-saga';\nimport reducer, { initialState } from './reducer';\n\nconst... | javascript | chosen |
[
{
"from": "system",
"value": "Remove active class from buttons.\n\nrefs #3989\n- Remove active class from {{#link-to tagName=\"button\" ..}}\n"
},
{
"from": "human",
"value": "Ember.LinkView.reopen({\n active: Ember.computed('resolvedParams', 'routeArgs', function () {\n var isActive =... | javascript | chosen |
[
{
"from": "system",
"value": "Add reflection to js file instead of html\n"
},
{
"from": "human",
"value": "// DOM Manipulation Challenge\n\n\n// I worked on this challenge [by myself, with: ].\n\n\n// Add your JavaScript calls to this page:\n\n// Release 0:\n\n\n\n\n// Release 1:\nvar root = doc... | javascript | chosen |
[
{
"from": "system",
"value": "Extend the pauseGrip() command line command (just for debugging)\n"
},
{
"from": "human",
"value": "/* See license.txt for terms of usage */\n\ndefine([\n \"firebug/lib/trace\",\n],\nfunction(FBTrace) {\n\n// ******************************************************... | javascript | chosen |
[
{
"from": "system",
"value": "Fix bug on IE8 with `this` referencing window instead of iframe\n"
},
{
"from": "human",
"value": "function forceLogout (domain, callback) {\n var endpoint = 'https://' + domain + '/logout';\n var iframe = document.createElement('iframe');\n iframe.style.display ... | javascript | chosen |
[
{
"from": "system",
"value": "Replace title for user route\n"
},
{
"from": "human",
"value": "import Ember from 'ember'\n\nexport default Ember.Route.extend({\n pageTitle: 'Pages',\n renderTemplate () {\n this.render('list')\n },\n model () {\n return this.store.findAll('user')\n },\n... | javascript | chosen |
[
{
"from": "system",
"value": "Add calorie model and collection\n"
},
{
"from": "human",
"value": "/*global Galorie, $*/\n\n\nwindow.Galorie = {\n Models: {},\n Collections: {},\n Views: {},\n Routers: {},\n init: function () {\n 'use strict';\n console.log('Hello fro... | javascript | chosen |
[
{
"from": "system",
"value": "Create lib dir if it doesn't exist\n"
},
{
"from": "human",
"value": "const ScopeParser = require(\"../lib/ScopeParser.js\");\nconst fs = require('fs');\nconst path = require('path');\nconst beautify = require('js-beautify').js_beautify;\nconst assert = require('ass... | javascript | chosen |
[
{
"from": "system",
"value": "Use webfonts.js in main to avoid load order error in built javascript.\n"
},
{
"from": "human",
"value": "/*\n * Spreed WebRTC.\n * Copyright (C) 2013-2015 struktur AG\n *\n * This file is part of Spreed WebRTC.\n *\n * This program is free software: you can redistr... | javascript | chosen |
[
{
"from": "system",
"value": "Use Google Closure style of marking function parameters as optional.\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar grunt = require('grunt');\n\n/**\n * Constructs a test case.\n *\n * @param {string} file The `package.json` file to be tested.\... | javascript | chosen |
[
{
"from": "system",
"value": "Add a test for basic transformation testing.\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar chai = require('chai'),\n vain = require('./../lib/vain');\n\nchai.should();\n\ndescribe('Vain', function() {\n describe('.render', function() {\n it('should ... | javascript | chosen |
[
{
"from": "system",
"value": "Connect to MongoLab if MONGOLAB_URI is set\n"
},
{
"from": "human",
"value": "var mongoose = require('mongoose');\nmongoose.connect('mongodb://localhost/rose');\n\nvar featureSchema = new mongoose.Schema({\n name: String,\n examples: [{\n technology: String,\n ... | javascript | chosen |
[
{
"from": "system",
"value": "tests/lint: Increase \"timeout\" and \"slow\" properties\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar glob = require('glob').sync;\n\nvar paths = glob('tests/*').filter(function(path) {\n return !/fixtures/.test(path);\n});\n\npaths = paths.concat([\n '... | javascript | chosen |
[
{
"from": "system",
"value": "Use hover method to increase code readability\n"
},
{
"from": "human",
"value": "$(document).ready(function(){\n var box = document.getElementsByTagName('a-box');\n\n var changeColor = function() {\n this.setAttribute('color', 'green');\n };\n var... | javascript | chosen |
[
{
"from": "system",
"value": "Remove redundant property in web pack config\n"
},
{
"from": "human",
"value": "var path = require('path');\r\nvar webpack = require('webpack');\r\nvar HtmlWebpackPlugin = require('html-webpack-plugin');\r\n\r\nmodule.exports = {\r\n devtool: 'cheap-eval-source-m... | javascript | chosen |
[
{
"from": "system",
"value": "Add dependencies and controllers for cat-buddy app\n"
},
{
"from": "human",
"value": "angular.module('cat-buddy', [\n 'ngRoute'\n])\n.config(function($routeProvider) {\n $routeProvider\n .when('/search/cats', {\n templateUrl: 'app/search/cat/searchCats.htm... | javascript | chosen |
[
{
"from": "system",
"value": "Add conditional for headroom (desktop)\n\nOnly initializes headroom on navbar when the device is a phone or tablet.\n"
},
{
"from": "human",
"value": "Template.body.onRendered(function () {\n console.log(\"Body Rendered\");\n Meteor.call('deleteFlaggedTransactions... | javascript | chosen |
[
{
"from": "system",
"value": "Add one more exercise, clean up the format\n"
},
{
"from": "human",
"value": "// Exercise 3\n//\n// 1. Building on Exercise 2, implement the following methods:\n//\n// age() - returns the age of the car.\n// setYear()\n// getYear()\n// setMake()\n// getMake()\n// se... | javascript | chosen |
[
{
"from": "system",
"value": "Use loading indicator with EventSource (SSE) driver\n"
},
{
"from": "human",
"value": "import buffer from '../buffer';\n\nfunction eventsource({ url, bufferTime = 0 }, { feed, reset, onFinish }) {\n let es;\n let buf;\n\n function initBuffer() {\n if (buf !== ... | javascript | chosen |
[
{
"from": "system",
"value": "Add onwer option to avoid confusions over other dbs\n"
},
{
"from": "human",
"value": "var dataSource = require('./modules/db');\n\ndataSource.discoverSchema('account', {owner: 'demo'}, function (err, schema) {\n console.log(JSON.stringify(schema, null, ' '));\n... | javascript | chosen |
[
{
"from": "system",
"value": "[IMP] Test should not have wait if thy are long by default.\n"
},
{
"from": "human",
"value": "(function() {\n 'use strict';\n\n openerp.Tour.register({\n id: 'test_instance_introspection',\n name: 'Complete a basic order trough the Front-End',\n... | javascript | chosen |
[
{
"from": "system",
"value": "Add header comment to sample resource config\n"
},
{
"from": "human",
"value": "'use strict';\n\n// Formulas are deprecated, we're now using meter, accumulate, aggregate\n// and rate Javascript functions instead\n\nmodule.exports = {\n resource_id: 'analytics',\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Move greeting and invocation of sub generators to methods\n"
},
{
"from": "human",
"value": "\"use strict\";\n\nvar yeoman = require(\"yeoman-generator\");\nvar incSay = require(\"incubator-say\");\nvar util = require(\"util\");\nvar path = require(\"path\");\n\... | javascript | chosen |
[
{
"from": "system",
"value": "Add a place to the middlewares.\n"
},
{
"from": "human",
"value": "import { createStore, combineReducers } from 'redux'\n\nimport Tasks from './reducers/Tasks'\n\nexport default createStore(\n combineReducers(\n {\n tasks: Tasks\n }\n )\n)\n"
},
{
... | javascript | chosen |
[
{
"from": "system",
"value": "Move HTML here so logic on billing/index.js is cleaner\n"
},
{
"from": "human",
"value": "import React from 'react';\n\nconst PaymentInfoPanel = ({\n removeCardHandler,\n paymentInfo: {merchant, lastFour}\n}) => {\n return (\n <div>\n <h2 className=\"titl... | javascript | chosen |
[
{
"from": "system",
"value": "Use injector to do angular config function.\n"
},
{
"from": "human",
"value": "import 'angular-material/angular-material.min.css';\n\nimport '../styles/main.scss';\n\nimport angular from 'angular';\nimport uiRouter from 'angular-ui-router';\nimport ngMaterial from '... | javascript | chosen |
[
{
"from": "system",
"value": "Update nav links to use Link component\n"
},
{
"from": "human",
"value": "import React from 'react'\n\nconst Nav = () => {\n return (\n <ul>\n <div className=\"navbar-left\">\n <li><a href=\"\">Home</a></li>\n <li><a href=\"\">Households</a></... | javascript | chosen |
[
{
"from": "system",
"value": "Update spec to use predefined layer\n"
},
{
"from": "human",
"value": "describe(\"Control.Rotation\", function () {\n var map, baseLayer;\n\n beforeEach(function () {\n baseLayer = L.PolarMap.tileLayer(\"http://{s}.tiles.arcticconnect.org/osm_3573/{z}/{x}/{y}.p... | javascript | chosen |
[
{
"from": "system",
"value": "Add message for no pull requests\n"
},
{
"from": "human",
"value": "import React, { Component } from \"react\";\nimport { Row } from \"react-bootstrap\";\nimport Axios from \"axios\";\nimport PullRequest from \"./PullRequest\";\nimport Load from \"./Load\";\nclass U... | javascript | chosen |
[
{
"from": "system",
"value": "Fix pretty print not ignoring shardID\n"
},
{
"from": "human",
"value": "const pino = require('pino')\nconst serializers = require('./serializers.js')\nconst getConfig = require('../../config.js').get\n\nfunction createLogger (shardID) {\n const config = getConfig(... | javascript | chosen |
[
{
"from": "system",
"value": "Modify value type support for Put\n"
},
{
"from": "human",
"value": "\"use strict\";\r\n\r\nvar Int64 = require('node-int64');\r\nvar HBaseTypes = require('../gen-nodejs/hbase_types');\r\n\r\nfunction Put(row) {\r\n var self = this;\r\n\r\n self.row = row;\r\n... | javascript | chosen |
[
{
"from": "system",
"value": "Check token before initial api fetch\n"
},
{
"from": "human",
"value": "//import 'babel-core/polyfill'\nimport React from 'react';\nimport { render } from 'react-dom';\nimport Root from './containers/Root';\nimport configureStore from './store';\nimport {songListApi... | javascript | chosen |
[
{
"from": "system",
"value": "Fix dinamic view for registry show\n"
},
{
"from": "human",
"value": "(function () {\n 'use strict';\n\n angular\n .module('colegiul-pacientilor.registries.controller')\n .controller('RegistriesShowCtrl', RegistriesShowCtrl);\n\n RegistriesShowCtrl.$inject ... | javascript | chosen |
[
{
"from": "system",
"value": "Update user with new list of projects on delete\n\nThis isn’t working\n"
},
{
"from": "human",
"value": "App.ProjectController = Ember.ObjectController.extend({\n isEditing: false,\n\n // We use the bufferedName to store the original value of\n // the model's tit... | javascript | chosen |
[
{
"from": "system",
"value": "Return XML path in case of errors\n"
},
{
"from": "human",
"value": "/*\n*\n* A simple script to create (or print) a JSON file from an XML file\n*\n*/\n\nvar fs = require('fs');\nvar path = require('path');\nvar xml2js = require('xml2js');\nvar parser = new xml2js.P... | javascript | chosen |
[
{
"from": "system",
"value": "Return early if options not true\n"
},
{
"from": "human",
"value": "const ruleName = \"declaration-no-important\"\n\nexport const messages = {\n unexpected: `Unexpected !important (${ruleName})`,\n}\n\n/**\n * @param {boolean} options - If true, no !important;\n * ... | javascript | chosen |
[
{
"from": "system",
"value": "Add logout, signed in, and watchers for navbar\n"
},
{
"from": "human",
"value": "function NavigationController($scope, Auth) {\n\n}\n\nangular\n .module('fitnessTracker')\n .controller('NavigationController', NavigationController);\n"
},
{
"from": "gpt"... | javascript | chosen |
[
{
"from": "system",
"value": "Fix webpack dev server port\n"
},
{
"from": "human",
"value": "var path = require('path');\nvar webpack = require('webpack');\n\nmodule.exports = {\n devtool: 'cheap-module-eval-source-map',\n entry: [\n 'webpack-dev-server/client?http://0.0.0.0:3000',\n 'we... | javascript | chosen |
[
{
"from": "system",
"value": "Use port 5000 for dokku\n"
},
{
"from": "human",
"value": "var webpack = require('webpack');\nvar UglifyJsPlugin = webpack.optimize.UglifyJsPlugin;\nvar env = process.env.WEBPACK_ENV;\nvar WebpackDevServer = require('webpack-dev-server');\n\nvar appName = 'app';\nva... | javascript | chosen |
[
{
"from": "system",
"value": "Reduce size of webpack generated JavaScript using UglifyJS\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar path = require('path');\n\nmodule.exports = {\n context: path.join(__dirname, \"public\"),\n entry: \"./index.js\",\n output: {\n path: path.jo... | javascript | chosen |
[
{
"from": "system",
"value": "Add HtmlWebpackPlugin for generating dev html files\n"
},
{
"from": "human",
"value": "var path = require('path');\nvar webpack = require('webpack');\n\nmodule.exports = {\n devtool: 'cheap-module-eval-source-map',\n entry: [\n 'webpack-dev-server/clien... | javascript | chosen |
[
{
"from": "system",
"value": "Fix bug on deepExtend helper\n"
},
{
"from": "human",
"value": "/**\n * Orion Helpers\n */\norion.helpers = {}\n\n/**\n * Searchs a object with a givin string\n * you can specify if you want the searcher to \n * take the first values of array if they are\n */\norion... | javascript | chosen |
[
{
"from": "system",
"value": "[tests] Correct the \"error\" tests configuration.\n"
},
{
"from": "human",
"value": "'use strict';\n\n\nvar assert = require('assert');\nvar jsyaml = require('../../lib/js-yaml');\n\nvar _functional = require('../support/functional');\nvar YAMLError = require('../.... | javascript | chosen |
[
{
"from": "system",
"value": "Add event handler for removing stage\n"
},
{
"from": "human",
"value": "export default ['$q', '$scope', '$http', '$stateParams', function($q, $scope, $http, $stateParams) {\n\n $http.get('/api/pipelines/' + $stateParams.id).then(response => {\n $scope.pipeline =... | javascript | chosen |
[
{
"from": "system",
"value": "Divide file extensions into lists and patterns\n"
},
{
"from": "human",
"value": "export default {\n CSS: /\\.css$/,\n EOT: /\\.eot(\\?v=\\d+\\.\\d+\\.\\d+)?$/,\n IMAGE: /\\.(png|jpg|jpeg|gif|svg)$/,\n JAVASCRIPT: /\\.(jsx?|es6)$/,\n JSON: /\\.(json)$/,\n SCSS... | javascript | chosen |
[
{
"from": "system",
"value": "Exclude polyfill scripts in validation task\n"
},
{
"from": "human",
"value": "/* global config */\n\nmodule.exports = function(grunt) {\n\tgrunt.registerTask('runValidation', function() {\n\t\tvar scriptPath = config.assetPath + '/js',\n\t\t\tscripts = Wee.getFiles... | javascript | chosen |
[
{
"from": "system",
"value": ":ambulance: Fix caching of app fragments\n"
},
{
"from": "human",
"value": "/**\n * @license\n * Copyright (c) 2016 The Polymer Project Authors. All rights reserved.\n * This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE... | javascript | chosen |
[
{
"from": "system",
"value": "Expand list of blacklisted nicknames\n\nAll of these conflict with well-known URLs that we use or may use in\nthe future. It's not hard to imagine us deciding we won't use some of\nthese, but better to be restrictive now and open it up later, rather\nthan dealing with someone p... | javascript | chosen |
[
{
"from": "system",
"value": "Add IP, Port of Openshift for Total.js\n"
},
{
"from": "human",
"value": "// ===================================================\n// IMPORTANT: only for production\n// total.js - web application framework for node.js\n// http://www.totaljs.com\n// ==================... | javascript | chosen |
[
{
"from": "system",
"value": "Add an access level to each role\n"
},
{
"from": "human",
"value": "(function () {\n 'use strict';\n\n var mongoose = require('mongoose');\n\n var RoleSchema = new mongoose.Schema({\n title: {\n type: String,\n default: 'user',\n unique: true,\n... | javascript | chosen |
[
{
"from": "system",
"value": "Modify posts publication to receive a limit and sort order\n"
},
{
"from": "human",
"value": "Meteor.publish('posts', function() {\n return Posts.find();\n});\n\nMeteor.publish('comments', function(postId) {\n check(postId, String);\n return Comments.find({ postI... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"Basic implementation of expiring job posts\"\n\nThis reverts commit fed2d4f5bd69c91a1366ed1fa63d059ef9ba4357.\n"
},
{
"from": "human",
"value": "Meteor.publish(\"userData\", function () {\n\tcheck(arguments, [Match.Any]);\n\tif(this.userId){\n\t\treturn [\n... | javascript | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.