conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Enable livereload in grunt watch\n"
},
{
"from": "human",
"value": "module.exports = function(grunt) {\n grunt.initConfig({\n pkg: grunt.file.readJSON('package.json'),\n sass: {\n dist: {\n options: {\n sourcemap: 'none'\n },\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add some testing code for the product lookup operations, both from\nthe index and from the individual product pages.\n"
},
{
"from": "human",
"value": "// An example configuration file.\nexports.config = {\n// The address of a running selenium server.\nseleniumAddre... | javascript | chosen |
[
{
"from": "system",
"value": "Fix added for faster animation. Conflict with modals not showing up resolved.\n"
},
{
"from": "human",
"value": "var apiFactoryApp = angular.module(\"APIFactoryWeb\", [\"ngRoute\", \"Shared\", \"Main\", \"Entities\"]);\n\napiFactoryApp.config(['$routeProvider',\n ... | javascript | chosen |
[
{
"from": "system",
"value": "LB-1458: Check on admin all POST, PUT, DELETE URLs to use my\n\nCleared a console.log\n"
},
{
"from": "human",
"value": "define([\n\t'angular',\n 'lib/livedesk/scripts/js/manage-feeds/manage-feeds',\n 'lib/livedesk/scripts/js/manage-feeds/services/providers-bl... | javascript | chosen |
[
{
"from": "system",
"value": "Fix scriptsToHTML prototype test to work in IE\n"
},
{
"from": "human",
"value": "import expect from 'expect'\nimport scriptsToHTML from '../src/utils/scriptsToHTML'\n\ndescribe('scriptsToHTML', () => {\n it('converts a scripts object into an HTML string', () => {\... | javascript | chosen |
[
{
"from": "system",
"value": "Allow more position options for before/after\n\nREDMINE-19176\n"
},
{
"from": "human",
"value": "import {editor} from 'pageflow-scrolled/editor';\nimport {ColorInputView, FileInputView} from 'pageflow/editor';\nimport {SliderInputView, TextInputView} from 'pageflow/... | javascript | chosen |
[
{
"from": "system",
"value": "Add simple path filter to lib\n"
},
{
"from": "human",
"value": "const queue = require('./queue.js');\nconst error = require('./error.js');\nconst filter = require('./filter.js');\nconst passFilter = require('./filters/pass.js');\nconst blockFilter = require('./filt... | javascript | chosen |
[
{
"from": "system",
"value": "Add a compact collection label view and popup details on hover\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport {Label} from 'react-bootstrap';\n\nexport default class ElementCollectionLabels extends React.Component {\n constructor(props) {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Update currency directive to render 0's\n"
},
{
"from": "human",
"value": "/**\n * Created by rerobins on 10/6/15.\n */\nvar CurrencyDirectiveGenerator = function(formatters) {\n\n return {\n scope: {\n value: '&'\n },\n template: ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix payout currencies in Trading page\n"
},
{
"from": "human",
"value": "/*\n * Handles currency display\n *\n * It process 'socket.send({payout_currencies:1})` response\n * and display them\n */\nfunction displayCurrencies(selected) {\n 'use strict';\n\n var ... | javascript | chosen |
[
{
"from": "system",
"value": "Convert the export variables to lowercase\n"
},
{
"from": "human",
"value": "var Amanda = function(engine) {\n\n if (!hasProperty(engines, engine)) {\n throw new Error('The ‘' + engine + '’ engine is not supported. Please use a different one.');\n }\n\n return... | javascript | chosen |
[
{
"from": "system",
"value": "CommentsList: Use `@tracked` property instead of `this.set()`\n"
},
{
"from": "human",
"value": "import Component from '@ember/component';\nimport { inject as service } from '@ember/service';\n\nimport { task } from 'ember-concurrency';\n\nexport default class Comme... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"placed angularjs factory for rooms in seperate file.\"\n\nThis reverts commit 97b997ea986f1d48c3408d310a23bd008745e7a0.\n"
},
{
"from": "human",
"value": "'use strict';\n\nangular.module('mean.teacups').factory('Teacups', [\n '$resource',\n function($... | javascript | chosen |
[
{
"from": "system",
"value": "[test-studio] Configure up non-existing widget in test-studio\n"
},
{
"from": "human",
"value": "export default {\n widgets: [\n {name: 'sanity-tutorials', layout: {width: 'full'}},\n {name: 'document-list'},\n {name: 'document-list', options: {title: 'Las... | javascript | chosen |
[
{
"from": "system",
"value": "Remove config (already declared in index)\n"
},
{
"from": "human",
"value": "import React from 'react'\n\nimport Config from '../../src/ui-components/web/Config'\n\n/**\n * Sample that has a function to enable the overlay.\n */\nconst App = ({ enableOverlay }) => (\... | javascript | chosen |
[
{
"from": "system",
"value": "fix: Add `es6` environment to NodeJS\n"
},
{
"from": "human",
"value": "module.exports = {\n\tenv: {\n\t\tnode: true\n\t},\n\n\tplugins: [\n\t\t'node'\n\t],\n\n\trules: require('./rules/node')\n};\n"
},
{
"from": "gpt",
"value": "module.exports = {\n\ten... | javascript | chosen |
[
{
"from": "system",
"value": "Support for docker TLS and boot2docker 1.3.0.\n"
},
{
"from": "human",
"value": "\nvar Docker = require('dockerode');\n\nfunction localDocker() {\n\n if (process.env.DOCKER_HOST) {\n var split = /tcp:\\/\\/([0-9.|localhost]+):([0-9]+)/g.exec(process.env.DOCKER_H... | javascript | chosen |
[
{
"from": "system",
"value": "Add site footer to each documentation generator\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('tac... | javascript | chosen |
[
{
"from": "system",
"value": "Use 'undefined' instead of setting an undefined variable\n"
},
{
"from": "human",
"value": "'use strict';\nvar request = require('request'), undef;\n\nmodule.exports = function(options) {\n // Prepare options\n options.method = options.method.toUpperCase();... | javascript | chosen |
[
{
"from": "system",
"value": "Use our top level postcss version in storybook\n\nStorybook generally updates late which causes build failures\n"
},
{
"from": "human",
"value": "const paths = require(\"../config/paths\")\n\nmodule.exports = {\n stories: [\n \"../stories/*.stories.mdx\",\n \... | javascript | chosen |
[
{
"from": "system",
"value": "Add a simple procedure of using a card\n"
},
{
"from": "human",
"value": "\nclass CardUseStruct {\n\n\tconstructor(from, card) {\n\t\tthis.from = from;\n\t\tthis.card = card;\n\t\tthis.to = [];\n\t\tthis.target = null;\n\t}\n\n\ttoJSON() {\n\t\treturn {\n\t\t\tfrom:... | javascript | chosen |
[
{
"from": "system",
"value": "Use Promise.all() load PowerQuery results in new react version.\n\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport ReactDOM from 'react-dom';\nimport ContactTable from './components/student-contacts/ContactTable';\n\nwindow.fetch('/ws/schema/que... | javascript | chosen |
[
{
"from": "system",
"value": "Print node version and environment architecture\n"
},
{
"from": "human",
"value": "var sql = require('msnodesql');\n// Change the connectionString. Example\n// \"Driver={SQL Server Native Client 11.0};Server=tcp:?????.database.windows.net,1433;Database=????;Uid=????... | javascript | chosen |
[
{
"from": "system",
"value": "Build on deploy (for heroku)\n"
},
{
"from": "human",
"value": "\n/**\n * Simple server to serve builds\n */\n\nconst express = require(\"express\"),\n path = require(\"path\"),\n webpack = require(\"webpack\"),\n app = express(),\n assert = require(\"as... | javascript | chosen |
[
{
"from": "system",
"value": "Fix loading react-fast-refresh in cordova\n"
},
{
"from": "human",
"value": "Package.describe({\r\n name: 'react-fast-refresh',\r\n version: '0.1.1',\r\n summary: 'Automatically update React components with HMR',\r\n documentation: 'README.md',\r\n devOnly: tru... | javascript | chosen |
[
{
"from": "system",
"value": "Remove spurious function from CanIUseParser class\n"
},
{
"from": "human",
"value": "import cache from './cache.js';\n\nexport default class CanIUseParser {\n results = {};\n url = 'https://raw.githubusercontent.com/Fyrd/caniuse/master/data.json';\n\n majorVersio... | javascript | chosen |
[
{
"from": "system",
"value": "Set Basic example as default example to test\n\n"
},
{
"from": "human",
"value": "import { AppRegistry } from 'react-native'\nimport Basic from './components/Basic/'\n// import Dynamic from './components/Dynamic/'\n// import Phone from './components/Phone/'\n// impo... | javascript | chosen |
[
{
"from": "system",
"value": "initial-push: Allow factories to call factories, allow document, allow window, allow empty selector\n"
},
{
"from": "human",
"value": "(function() {\n const domQuery = (function () {\n\n function $(selector) {\n let collection = ((typeof selector === 'strin... | javascript | chosen |
[
{
"from": "system",
"value": "Set layout explicitly for the overridden ilios-calendar-component\n"
},
{
"from": "human",
"value": "/* global moment */\nimport Ember from 'ember';\nimport { default as CalendarEvent } from 'el-calendar/components/calendar-event';\n\nexport default CalendarEvent.ex... | javascript | chosen |
[
{
"from": "system",
"value": "Fix the audience for the extension hook\n"
},
{
"from": "human",
"value": "import path from 'path';\nimport jwt from 'jsonwebtoken';\n\nimport config from '../config';\nimport logger from '../logger';\n\nmodule.exports = (hookPath) =>\n (req, res, next) => {\n i... | javascript | chosen |
[
{
"from": "system",
"value": "Use eval-cheap-module-source-map in webpack dev mode\n"
},
{
"from": "human",
"value": "import path from 'path';\nimport webpack from 'webpack';\n\nconst port = 3000;\nconst entry = [\n `webpack-dev-server/client?http://localhost:${port}`,\n 'webpack/hot/only-dev-... | javascript | chosen |
[
{
"from": "system",
"value": "Update Low Tier Random Battle"
},
{
"from": "human",
"value": "exports.BattleFormatsData = {\n\tkangaskhanmega: {\n\t\trandomBattleMoves: [\"fakeout\",\"return\",\"suckerpunch\",\"earthquake\",\"poweruppunch\",\"crunch\"],\n\t\trandomDoubleBattleMoves: [\"fakeout\",... | javascript | chosen |
[
{
"from": "system",
"value": "Use path.resolve and remove empty line\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar lunr = require( 'lunr' );\nvar path = require( 'path' );\nvar tokenizer = require( './../lib/tokenizer.js' );\nvar create = require( './../lib' );\n\nlunr.tokenizer.regist... | javascript | chosen |
[
{
"from": "system",
"value": "fix(icons): Fix incorrect prop type in LocationIcon\n"
},
{
"from": "human",
"value": "import React, { Component, PropTypes } from 'react'\n\nexport default class LocationIcon extends Component {\n static propTypes = {\n type: PropTypes.string,\n className: P... | javascript | chosen |
[
{
"from": "system",
"value": "Support multiple import methods and add Forth.pass.\n"
},
{
"from": "human",
"value": "var Forth = require(\"../forth\"),\n\tforth = Forth.go ( function start (callforth) {\n\n\t\tsetTimeout(function () {\n\t\t\tcallforth.report(null, Date.now());\n\t\t\tcallforth.r... | javascript | chosen |
[
{
"from": "system",
"value": "Change constructor to improve node exceptions .\n"
},
{
"from": "human",
"value": "var LJSRequest = function(req, app) {\n this.req = req;\n this.body = req.body;\n this.app = app;\n\n var paths = req.url.split(\"/\");\n this.collectionName = paths[1]... | javascript | chosen |
[
{
"from": "system",
"value": "Change to allow the date picker to move past the current date."
},
{
"from": "human",
"value": "(function () {\n \"use strict\";\n\n angular.module('orange')\n .directive('datefield', datefield);\n\n\n datefield.$inject = ['$cordovaDatePicker'];\n\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Enable esc to close overlay\n"
},
{
"from": "human",
"value": "// JavaScript Document\n\n// Scripts written by YOURNAME @ YOURCOMPANY\n\n// close the overlay and any associated elements when overlay-closer is clicked\njQuery(\".overlay-closer\").click(function(e) {\... | javascript | chosen |
[
{
"from": "system",
"value": "Fix potential problem with sending admin value\n\nParses a true value as a boolean true value and anything else as false\n"
},
{
"from": "human",
"value": "exports.action = {\n name: 'userCreate',\n description: 'Creates a User',\n version: 1,\n inputs: ... | javascript | chosen |
[
{
"from": "system",
"value": "Use null as the defaultValue for Image URLs (denoting an image placeholder)"
},
{
"from": "human",
"value": "// Register ContentNode types (including meta information).\n\nContentNode.types = {\n \"document\": {\n name: \"Document\",\n allowedChildren: [\"sec... | javascript | chosen |
[
{
"from": "system",
"value": "Decrease index page loading fadeout by 50%.\n"
},
{
"from": "human",
"value": "/* Main INIT Function */\nfunction initializeSite() {\n \"use strict\";\n //OUTLINE DIMENSION AND CENTER\n (function () {\n function centerInit() {\n var mainTitle = $('.main-t... | javascript | chosen |
[
{
"from": "system",
"value": "Update default state for classAssignMembers to better support pagination\n"
},
{
"from": "human",
"value": "import { SET_MODAL } from '../shared';\nimport { assignCoachesToClass, enrollLearnersInClass } from './actions';\n\nfunction defaultState() {\n return {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Stop opening devtools on app launch\n"
},
{
"from": "human",
"value": "const electron = require('electron')\nconst app = electron.app // Module to control application life.\nconst BrowserWindow = electron.BrowserWindow // Module to create native browser window.\ncon... | javascript | chosen |
[
{
"from": "system",
"value": "Add face normal and centroid methods\n"
},
{
"from": "human",
"value": "var Vector = require('./vector.js');\n\n/**\n * @constructor\n * @this {Mesh}\n * @param {string} name\n * @param {Array.<Vertex>} vertices\n * @param {Array.<{edge: Array.<number>, color: strin... | javascript | chosen |
[
{
"from": "system",
"value": "Add emptyBookmark and fix bugs in history module\n"
},
{
"from": "human",
"value": "define(['summernote/core/range'], function (range) {\n /**\n * History\n * @class\n */\n var History = function () {\n var stack = [], stackOffset = 0;\n\n var makeSnap... | javascript | chosen |
[
{
"from": "system",
"value": "Fix issue with idSelector column/line reporting\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst parseSelector = require('../utils/parse-selector');\n\nmodule.exports = {\n name: 'idSelector',\n nodeTypes: ['rule'],\n message: 'Selectors should not... | javascript | chosen |
[
{
"from": "system",
"value": "Access track favorites on SoundCloud\n\n* Use SoundCloud API call to get top 20 favorites\n* Store favorites on scope for access in view\n"
},
{
"from": "human",
"value": "'use strict';\n\n/* Controllers */\n\nangular.module('myApp.controllers', []).\n controller('... | javascript | chosen |
[
{
"from": "system",
"value": "Remove reference to end-pattern test\n"
},
{
"from": "human",
"value": "require('./board-test.js');\nrequire('./game-test.js');\nrequire('./light-test.js');\nrequire('./levels-test.js');\nrequire('./score-test.js');\nrequire('./messages-test.js');\nrequire('./next-m... | javascript | chosen |
[
{
"from": "system",
"value": "Fix IE8 issue with missing trim() method.\n"
},
{
"from": "human",
"value": "/*******************************************************************************\n *\n * Utilities\n *\n ******************************************************************************/\n\n\... | javascript | chosen |
[
{
"from": "system",
"value": "Fix gulp.watch configuration so new/deleted files trigger rebuild\n"
},
{
"from": "human",
"value": "var gulp = require('gulp');\nvar config = require('../config');\n\ngulp.task('watch', function() {\n gulp.watch(config.css.watch, ['css']);\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix assertions for comments and strings to fix false positive\n\nproxyquireify will always be a substring of the bundle because it adds a file\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar browserify = require('browserify');\nvar streamToPromise = req... | javascript | chosen |
[
{
"from": "system",
"value": "Use known playlist URL format to fetch streamable URL\n\nSigned-off-by: Andrew Nicolaou <867853b9f5173cd1402c104fc88b929245e71ca4@bbc.co.uk>\n"
},
{
"from": "human",
"value": "(function (exports) {\n 'use strict';\n\n var obj = {\n playableLinks: function (cont... | javascript | chosen |
[
{
"from": "system",
"value": "Use exact default values from needle docs for clarity\n"
},
{
"from": "human",
"value": "\"use strict\";\n\nvar cacheManager = require(\"cache-manager\");\n\nmodule.exports = {\n // cache system (see https://github.com/BryanDonovan/node-cache-manager)\n Cache:... | javascript | chosen |
[
{
"from": "system",
"value": "Fix action node overflow, background\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport JSONTree from './JSONTree';\n\nconst styles = {\n actionBar: {\n paddingTop: 8,\n paddingBottom: 7,\n paddingLeft: 16\n },\n payload: {\n paddin... | javascript | chosen |
[
{
"from": "system",
"value": "Remove duplication, reuse the universes knowledge.\n"
},
{
"from": "human",
"value": "import assert from 'assert';\n\ndescribe('test setup works?', function() {\n it('i hope', function() {\n assert.equal(1, 1);\n });\n});\n\nfunction tick() {\n return {};\n}\n... | javascript | chosen |
[
{
"from": "system",
"value": "Disable non file stream test for now\n\nThere's a weird race condition that causes\ntest-non-file-stream-duration.js to fail occasionally\nwhen running the full test suite.\n"
},
{
"from": "human",
"value": "var path = require('path');\nvar fs = require('fs'... | javascript | chosen |
[
{
"from": "system",
"value": "Rename componentWillMount to componentDidMount for search page refreshing\n"
},
{
"from": "human",
"value": "import React, { PureComponent } from \"react\";\nimport PropTypes from \"prop-types\";\nimport { Button, NonIdealState } from \"@blueprintjs/core\";\nimport ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix capitalization error in Hungarian translation\n\nWe do not capitalize the second letter of digraphs in Hungarian"
},
{
"from": "human",
"value": "// Hungarian\n\njQuery.extend( jQuery.fn.pickadate.defaults, {\n monthsFull: [ 'január', 'február', 'március', 'á... | javascript | chosen |
[
{
"from": "system",
"value": "Add the src option and default values\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\n\nvar program = require('commander');\n\nfunction out(val) {\n return val;\n}\n\nprogram\n .usage(\"<appName> [options]\")\n .arguments(\"<appName>\")\n .action... | javascript | chosen |
[
{
"from": "system",
"value": "Fix syntax errors in lambda func\n"
},
{
"from": "human",
"value": "var https = require('https');\n\nexports.handler = function(event, context, callback) {\n\n // This token should live as an environmental variable set in the\n // build config for Netlify.\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Change default output filename to TODO.md\n\nCloses #21\n"
},
{
"from": "human",
"value": "'use strict';\nvar gutil = require('gulp-util');\n\nmodule.exports = {\n fileName: 'todo.md',\n verbose: false,\n newLine: gutil.linefeed,\n transformComment: func... | javascript | chosen |
[
{
"from": "system",
"value": "Add files to Country Reports\n"
},
{
"from": "human",
"value": "var superagent = require('superagent');\nvar superagentQ = require('superagent-promises');\n\nclass CountryReportMapper {\n\n //============================================================\n //\n... | javascript | chosen |
[
{
"from": "system",
"value": "Use js-yaml to parse YAML front matter\n"
},
{
"from": "human",
"value": "var yaml = require('yamljs');\n\nmodule.exports = function(source){\n var content = source.split('---\\n');\n\n if (content.length === 1){\n var result = {_content: content[0]};\n } else... | javascript | chosen |
[
{
"from": "system",
"value": "Use redirect in Post /sellers instead of render.\n"
},
{
"from": "human",
"value": "var express = require('express');\n\nmodule.exports = function(sellerService) {\n var router = express.Router();\n\n router.get('/', function(request, response) {\n resp... | javascript | chosen |
[
{
"from": "system",
"value": "Add check for json tests\n"
},
{
"from": "human",
"value": "var start = require('./start')\nvar request = require('request')\nvar should = require('should')\n\ndescribe('do they use node?', function(){\n before(function(done) {\n start(done)\n })\n\n it('shoul... | javascript | chosen |
[
{
"from": "system",
"value": "Update to shorter Property syntax.\n"
},
{
"from": "human",
"value": "/**\n * @license\n * Copyright 2014 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 wi... | javascript | chosen |
[
{
"from": "system",
"value": "Replace React.createClass with a plain function\n"
},
{
"from": "human",
"value": "import React, {PropTypes} from 'react';\nimport {pagesShape} from '../../CatalogPropTypes';\n\nimport Link from '../Link/Link';\nimport ListItem, {style as listItemStyle} from './List... | javascript | chosen |
[
{
"from": "system",
"value": "Use production mode for stockflux components build\n"
},
{
"from": "human",
"value": "const path = require('path');\n\nmodule.exports = {\n mode: 'development', // TODO: production mode\n entry: path.resolve('src', 'index.js'),\n output: {\n filename... | javascript | chosen |
[
{
"from": "system",
"value": "Cover direct mailer with stub fn\n"
},
{
"from": "human",
"value": "var assert = require('chai').assert;\nvar Promise = require('bluebird');\nvar sinon = require('sinon');\nvar DirectMailer = require('../lib/DirectMailer');\n\ndescribe('DirectMailer', function () {\... | javascript | chosen |
[
{
"from": "system",
"value": "Improve SiteService with valid url list\n"
},
{
"from": "human",
"value": "angular.module('seoApp').factory('SiteService', ['$http', function($http) {\n var service = {}, urlUtils = require('urlUtils'), data = {}, init;\n\n init = function() {\n $http.get('seo-... | javascript | chosen |
[
{
"from": "system",
"value": "Change text-updating logic to match on title rather than ID\n"
},
{
"from": "human",
"value": "$(document).ready(function () {\n $(\".js-define\").each(function(index) {\n $(this).attr('id', \"field-\" + index);\n $(this).popover({\n \"ht... | javascript | chosen |
[
{
"from": "system",
"value": "Update addCallback and add removeCallback function\n\nhandle array api.list by keys\n"
},
{
"from": "human",
"value": "(function() {\n 'use strict';\n\n angular\n .module('app.services')\n .factory('resizeUpdater', function($window, $q){\n\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Change comparison from the window to itself.\n\nChecks if the target element's scroll height is bigger than the client height."
},
{
"from": "human",
"value": ";(function(window, document){\n\tdocument.addEventListener('touchmove', function(e) {\n\t\tisScrollElement... | javascript | chosen |
[
{
"from": "system",
"value": "Support onEnter hooks on IndexRoutes\n"
},
{
"from": "human",
"value": "import { createRoutes } from 'react-router/lib/RouteUtils';\n\n// Wrap the hooks so they don't fire if they're called before\n// the store is initialised. This only happens when doing the first\... | javascript | chosen |
[
{
"from": "system",
"value": "Use equality operator for checking multiplier\n"
},
{
"from": "human",
"value": "\nvar pointTable = {};\n\nmodule.exports = function(match, response) {\n var points = match[1],\n multiplier = ('to' in match[2]) - ('from' in match[2]),\n target = match[3];\n\n... | javascript | chosen |
[
{
"from": "system",
"value": "Add Lumenaut Community Pool to known inflation pools\n"
},
{
"from": "human",
"value": "export default {\n GA3FUYFOPWZ25YXTCA73RK2UGONHCO27OHQRSGV3VCE67UEPEFEDCOPA: {\n name: 'xlmpool',\n website: 'https://xlmpool.com',\n },\n GBL7AE2HGRNQSPWV56ZFLILXNT52QW... | javascript | chosen |
[
{
"from": "system",
"value": "Fix unecessary call to automatic delivery of badges when this is a booking which is not checked-in\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar _ = require('lodash');\n\nfunction saveApplication (args, callback) {\n var seneca = this;\n var ENTITY_NS = ... | javascript | chosen |
[
{
"from": "system",
"value": "Return true if there are no filters to validate.\n"
},
{
"from": "human",
"value": "var RunValidations = require('../utils/RunValidations').run;\nvar FilterValidations = require('../validations/FilterValidations');\nvar TimeframeUtils = require('../utils/TimeframeUt... | javascript | chosen |
[
{
"from": "system",
"value": "Add dispensary to store blacklist\n"
},
{
"from": "human",
"value": "import AsyncStorage from '@react-native-community/async-storage';\nimport { persistStore, persistReducer } from 'redux-persist';\nimport { applyMiddleware, createStore } from 'redux';\nimport thunk... | javascript | chosen |
[
{
"from": "system",
"value": "Load files in correct order\n\nThe core.js file needs GOVUK.SelectionButtons so move after the require.\n"
},
{
"from": "human",
"value": "//= require libs/jquery/plugins/jquery.base64\n//= require vendor/polyfills/bind\n//= require analytics\n//= require start-modu... | javascript | chosen |
[
{
"from": "system",
"value": "Disable npm build success notifications\n"
},
{
"from": "human",
"value": "let mix = require('laravel-mix');\nlet tailwindcss = require('tailwindcss');\n\nmix.setPublicPath('app/assets');\n\nmix.webpackConfig({\n watchOptions: { ignored: ['node_modules', 'app/ven... | javascript | chosen |
[
{
"from": "system",
"value": "Fix warning with list iteration\n\n"
},
{
"from": "human",
"value": "import React from \"react\"\nimport { connect } from \"react-redux\"\n\n//import { fetchLinks } from \"../actions/linkActions\"\n\n@connect((store) => {\n return {\n user: 'Celso',\n myList:... | javascript | chosen |
[
{
"from": "system",
"value": "Use an array of responses\n"
},
{
"from": "human",
"value": "export function onConnect(respond, connections = {}, tab, error) {\n chrome.runtime.onConnect.addListener(function(port) {\n function extensionListener(message) {\n if (message.name === 'init') {\... | javascript | chosen |
[
{
"from": "system",
"value": "Use the `ember-data` initializer as a target instead of the soon to be deprecated `store` initializer"
},
{
"from": "human",
"value": "import Ember from 'ember';\nimport DS from 'ember-data';\nimport WithLoggerMixin from '../mixins/with-logger';\nimport {LEVELS} fro... | javascript | chosen |
[
{
"from": "system",
"value": "Rewrite paths after moving file\n"
},
{
"from": "human",
"value": "const config = require('../src/getConfig')();\nconst actions = require('../src/actions');\n\nconst ios = require('../src/ios');\nconst android = require('../src/android');\n\nconst projects = {\n io... | javascript | chosen |
[
{
"from": "system",
"value": "Clean up some other exports.\n"
},
{
"from": "human",
"value": "// @flow\n\nimport * as config from 'aws-cognito-promises';\n\nimport sagas from './sagas';\n\nimport * as action from './actions';\nimport * as selectors from './selectors';\nimport * as reducer from '... | javascript | chosen |
[
{
"from": "system",
"value": "Increase storage prefix in order to clear old data\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport { render } from 'react-dom';\nimport { createStore, applyMiddleware, compose } from 'redux';\nimport { Provider } from 'react-redux';\nimport { b... | javascript | chosen |
[
{
"from": "system",
"value": "Remove everything from login function\n"
},
{
"from": "human",
"value": "var cordova = require(\"cordova\");\nwindow.onload = action\nvar action = document.pesan.action = login();\t\nvar rs = [\"Royal Progress\", \"RSUP Dr Cipto Mangunkusumo\", \"RSUP Fatmawati\", \... | javascript | chosen |
[
{
"from": "system",
"value": "Add event listener for progress and finished\n"
},
{
"from": "human",
"value": "/**\n * Created by gpl on 15/10/12.\n */\nfunction fileManagerModalCtrl($scope, $modalInstance) {\n var ctrl = $scope;\n ctrl.dummy = 'file manager dummy';\n\n //ctrl.uploadFile... | javascript | chosen |
[
{
"from": "system",
"value": "Fix code which removes js-only class\n"
},
{
"from": "human",
"value": "document.addEventListener('DOMContentLoaded', function () {\n const jsOnlyElements = document.getElementsByClassName('js-only');\n for (var i = 0; i < jsOnlyElements.length; ++i) {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Use flex to dock footer to the bottom of the screen\n"
},
{
"from": "human",
"value": "// @flow\n\nimport React from 'react';\nimport Relay from 'react-relay/classic';\nimport DocumentTitle from 'react-document-title';\n\nimport Navigation from './layout/Navigation'... | javascript | chosen |
[
{
"from": "system",
"value": "Use BUILD_STATE_SCHEDULED and BUILD_STATE_RUNNING enums\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport Relay from 'react-relay';\n\nimport Navigation from './layout/Navigation';\nimport Footer from './layout/Footer';\n\nclass Main extends Reac... | javascript | chosen |
[
{
"from": "system",
"value": "Remove global apiFetch in shim.\n"
},
{
"from": "human",
"value": "/**\n * WordPress dependencies\n */\nimport apiFetch from '@wordpress/api-fetch__non-shim';\n\nif ( global._apiFetch === undefined ) {\n\tglobal._apiFetch = apiFetch;\n\n\tif ( global._apiFetchRootUR... | javascript | chosen |
[
{
"from": "system",
"value": "[FIX][INTERNAL] Support Rules: Fix Eventbus rule\n\nChange-Id: I4069957e7e14de55ee8319073c46317e101b764d\n"
},
{
"from": "human",
"value": "/*global QUnit testRule*/\n\nsap.ui.define([\n\t\"jquery.sap.global\"\n], function(/*jQuery*/) {\n\t\"use strict\";\n\n\tQUnit... | javascript | chosen |
[
{
"from": "system",
"value": "Add support for environment-variable based configuration"
},
{
"from": "human",
"value": "module.exports = {\n\tircNetwork: \"chat.freenode.net\",\n\tircNick: \"\",\n\tircName: \"\",\n\tircPassword: \"\",\n\tircRooms: \"#screeps\",\n\tircTrusted: \"\",\n\ttwitterEna... | javascript | chosen |
[
{
"from": "human",
"value": "Add constructor function for creating oauth client\n"
},
{
"from": "gpt",
"value": "'use strict';\n\nvar OAuth = require('OAuth');\nvar querystring = require('querystring');\n\n// Wrapper for the OAuth 1.0 consumer used to make authenticated called to the Yelp API.\n... | javascript | chosen |
[
{
"from": "system",
"value": "Use array-style pattern in redux-saga's takeEvery\n"
},
{
"from": "human",
"value": "import { put, takeEvery } from 'redux-saga/effects';\n\nimport { MOVE_PIECE, GO_BACK, GO_FORWARD, SCROLL_TO_CENTER } from './actions'\n\nexport function* watchInputMove() {\n yield... | javascript | chosen |
[
{
"from": "system",
"value": "Fix trade agreements feature flag always being evaluated as true\n"
},
{
"from": "human",
"value": "const { fetchInteraction } = require('../repos')\nconst { getDitCompany } = require('../../companies/repos')\n\nasync function getInteractionDetails(req, res, next, i... | javascript | chosen |
[
{
"from": "system",
"value": "Change var to const and fix some logging\n"
},
{
"from": "human",
"value": "var d = require('./util').log;\n\n\nexports.createScope = function(obj, parentScope) {\n return (obj.__parent__ = parentScope) && obj;\n};\n\nexports.findInScope = function findInScope(scop... | javascript | chosen |
[
{
"from": "system",
"value": "Select one Question at random.\n"
},
{
"from": "human",
"value": "var models = require('../models');\nvar express = require('express');\nvar router = express.Router();\n\n/* GET home page. */\nrouter.get('/', function(req, res, next) {\n models.Question.findAll({\n... | javascript | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.