conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "human",
"value": "Implement Set SubcampaignModel Function (Create)\n"
},
{
"from": "gpt",
"value": "var configuration = require('../../config/configuration.json')\nvar utility = require('../../public/method/utility')\n\nmodule.exports = {\n setSubcampaignModel: function (redisClient,... | javascript | chosen |
[
{
"from": "system",
"value": "Update interactions, removed image and added in the correct event\n"
},
{
"from": "human",
"value": "import { bindable, inject } from 'aurelia-framework';\nimport imagesLoaded from 'imagesloaded';\nimport Masonry from 'masonry-layout';\nimport { EventAggregator } fr... | javascript | chosen |
[
{
"from": "system",
"value": "Allow for inline-graphic in table cell.\n"
},
{
"from": "human",
"value": "import { XMLTextElement } from 'substance'\nimport { TEXT } from '../kit'\n\nexport default class TableCellNode extends XMLTextElement {\n constructor (...args) {\n super(...args)\n\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Allow runtime toggling of mocks"
},
{
"from": "human",
"value": "var config = require('../lib/config'),\n cors = require('../lib/cors'),\n fs = require('fs');\n\nvar paths = [],\n len = 0;\n\nexports.init = function() {\n if (config.mocksEnabled) {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Remove get with default deprecation\n\nThis is cleared in our app, we don't need to silence it anymore.\n"
},
{
"from": "human",
"value": "/* global window */\n\nwindow.deprecationWorkflow = window.deprecationWorkflow || {};\nwindow.deprecationWorkflow.config = {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Change from map to forEach.\n"
},
{
"from": "human",
"value": "(() => {\n 'use strict';\n\n var player = \"O\";\n var moves = [];\n var winningCombos = [\n [\"1\", \"2\", \"3\"],\n [\"4\", \"5\", \"6\"],\n [\"7\", \"8\", \"9\"],\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Call the custom tenon files\n"
},
{
"from": "human",
"value": "//= require jquery\n//= require jquery_ujs\n\n// -- Plugins, in alphabetical order\n//= require backstretch\n//= require bootstrap\n//= require bootstrap.collapse\n//= require bootstrap.modal\n//= requir... | javascript | chosen |
[
{
"from": "system",
"value": "style: Use abbr for status tags\n\nSigned-off-by: Arnau Siches <3ce1c0b0b7032cdfdae7820ed353835a9a8f94c3@digital.cabinet-office.gov.uk>\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport PropTypes from 'prop-types';\nimport {css} from 'react-emoti... | javascript | chosen |
[
{
"from": "system",
"value": "Fix search page loading spinner\n"
},
{
"from": "human",
"value": "import { createSelector } from 'reselect';\n\nimport ActionTypes from 'constants/ActionTypes';\nimport searchFiltersSelector from 'selectors/searchFiltersSelector';\nimport searchResultsSelector from... | javascript | chosen |
[
{
"from": "system",
"value": "Set new properties on bouquets\n"
},
{
"from": "human",
"value": "const Basedata = require('./base-data');\nconst BouquetModel = require('./models/bouquete-model');\n\nclass BouquetsData extends Basedata {\n constructor(db) {\n super(db, BouquetModel, Bouqu... | javascript | chosen |
[
{
"from": "system",
"value": "Add pageUrl and pagePath to user fragment;\n"
},
{
"from": "human",
"value": "import { registerFragment } from 'meteor/vulcan:lib';\n\n// ------------------------------ Vote ------------------------------ //\n\n// note: fragment used by default on the UsersProfile f... | javascript | chosen |
[
{
"from": "system",
"value": "[FIX] Include class methods in extend()\n"
},
{
"from": "human",
"value": "!function(exports) {\n 'use strict';\n\n var RunQueue = exports.RunQueue;\n\n function Component() {\n this.next = new RunQueue;\n this.end = new RunQueue;\n }\n\n Component.extend... | javascript | chosen |
[
{
"from": "system",
"value": "installer: Use replaceState for updating the URL\n\nDisables back button. The other option is to allow navigating between\nsteps using the browser's back/forward, but that overlaps with the\ncurrent behaviour of picking up an existing install process using the\nbase URL. This i... | javascript | chosen |
[
{
"from": "system",
"value": "CSPACE-649: Remove an extra comma that was causing IE to fail to load the page.\n"
},
{
"from": "human",
"value": "/*\nCopyright 2009 University of Toronto\n\nLicensed under the Educational Community License (ECL), Version 2.0. \nou may not use this file except in c... | javascript | chosen |
[
{
"from": "system",
"value": "Use client-side browsing for modules\n"
},
{
"from": "human",
"value": "(function () {\n app.models.Package = Backbone.Model.extend({ \n initialize : function () {\n\n }\n });\n})();\n"
},
{
"from": "gpt",
"value": "(function () {\n app.models.P... | javascript | chosen |
[
{
"from": "system",
"value": "Add alert message when users joined and left the workspace\n"
},
{
"from": "human",
"value": "define([\n 'hr/utils',\n 'hr/hr',\n 'collections/users'\n], function (_, hr, Users) {\n // Collection for all current collaborators\n var collaborators = new... | javascript | chosen |
[
{
"from": "system",
"value": "Disable bootstrap responsive only inside an iframe\n"
},
{
"from": "human",
"value": "\n$(function () {\n\n (function fixControlsLength () {\n $('.form-group').each(function (index) {\n $('.control-label', this)\n .addClass('col-x... | javascript | chosen |
[
{
"from": "system",
"value": "Modify players list when player disconnects\n"
},
{
"from": "human",
"value": "class LobbyController {\n constructor($scope, $log, $location, GameService, SocketService) {\n 'ngInject';\n\n this.$log = $log;\n this.$scope = $scope;\n this.GameService = ... | javascript | chosen |
[
{
"from": "system",
"value": "Correct path to package file\n"
},
{
"from": "human",
"value": "require('http').createServer(function(req, res) {\n res.end(require('package.json').version);\n}).listen(process.env.PORT || 3000);"
},
{
"from": "gpt",
"value": "require('http').createServ... | javascript | chosen |
[
{
"from": "system",
"value": "Change \"export * from x\" to manually importing and exporting named exports.\n"
},
{
"from": "human",
"value": "import Stories2SnapsConverter from './Stories2SnapsConverter';\nimport api from './api';\n\nexport * from './test-bodies';\nexport { Stories2SnapsConvert... | javascript | chosen |
[
{
"from": "system",
"value": "Enable using templates inside ControlHTML\n\nThis change would enable showing computed data based on other fields in the same doc, without storing the computed data (which avoid unnecessary redundancy).\n"
},
{
"from": "human",
"value": "frappe.ui.form.ControlHTML =... | javascript | chosen |
[
{
"from": "system",
"value": "Add a catch-all route to the server, which converts non-hash routes into hashed routes.\n"
},
{
"from": "human",
"value": "\n/**\n * Module dependencies.\n */\n\nvar express = require('express');\nvar path = require('path');\nvar api = require('./lib/ap... | javascript | chosen |
[
{
"from": "system",
"value": "Make the query of dataset name more reliable on different kind datasets\n\nSome datasets are created at runtime, so it could be missing fields\nAlso prepare for dataset rename feature\n"
},
{
"from": "human",
"value": "import View from '../view';\nimport template fr... | javascript | chosen |
[
{
"from": "system",
"value": "Refactor timeline support to load watermarks from json file\n"
},
{
"from": "human",
"value": "function load_timelines() {\n $.getJSON('/time_series.json',function(data) {\n var options = {\n xaxis: {\n mode: \"time\"\n },\n series: {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "[IMP] Test expecting results also since the begining\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": "Set quality precision at 2 digits and handle no weight case\n"
},
{
"from": "human",
"value": "/**\n * Dataset page specific features\n */\n(function($, swig){\n\n \"use strict\";\n\n var COW_URL = $('link[rel=\"cow\"]').attr('href'),\n COW_API_URL = CO... | javascript | chosen |
[
{
"from": "system",
"value": "Join comments on posts publication\n"
},
{
"from": "human",
"value": "import { Meteor } from 'meteor/meteor';\n\nimport { Posts } from '../';\n\nMeteor.publish('posts', () => Posts.find({}, { limit: 10 }));\n"
},
{
"from": "gpt",
"value": "import { Meteo... | javascript | chosen |
[
{
"from": "system",
"value": "fix: Add key iterator for categories map\n"
},
{
"from": "human",
"value": "/**\n * Created by farid on 8/16/2017.\n */\nimport React, {Component} from \"react\";\nimport Category from \"./Category\";\nimport {getCategories} from \"../actions/Category\";\nimport {co... | javascript | chosen |
[
{
"from": "system",
"value": "Work on Home view links\n"
},
{
"from": "human",
"value": "import React, { Component } from 'react';\nimport { Link } from 'react-router';\n\nclass HomeView extends Component {\n render() {\n return (\n <div>\n <Link to={\"v/1\"}>Video Link</Link>\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add support for WoW assigning guild"
},
{
"from": "human",
"value": "\"use strict\";\n/*Their structure is different because\nof how the commands to use them are invoked.*/\nmodule.exports = {\n \"elevated\": {\n \"80773161284538368\": \"Admins\",\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Change requirements to reflect reality\n\n* Add `bootstrap` so the scripts get loaded\n* Remove `module` and `appearanceManager` because they aren't used any more\n* Stop providing variables in function with modules that are only loaded\n for side effects\n"
},
{
"from... | javascript | chosen |
[
{
"from": "system",
"value": "Change process.stdout switcharoo to a full net.Socket instance\n\nNo matter how you write to stdout, this should catch it!\nThe `defineProperty` call uses the same options as the default `process.stdout`.\n"
},
{
"from": "human",
"value": "'use strict'\nconst fs = r... | javascript | chosen |
[
{
"from": "system",
"value": "Fix undefined this.props.images.\nChange between experiments will be smoother\n"
},
{
"from": "human",
"value": "import React from \"react\";\n\nclass ExperimentImages extends React.Component {\n\n constructor() {\n super();\n }\n\n\n render() {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Reorder property to keep XWiki order\n"
},
{
"from": "human",
"value": "var props = require(\"../properties/all.js\");\nvar BaseObj = require(\"../BaseObj\");\nvar obj = BaseObj.create(\"XWiki.StyleSheetExtension\");\n\nobj.addProp(\"name\", props.XString.create({\n... | javascript | chosen |
[
{
"from": "system",
"value": "Increase max length of petition answer text\n"
},
{
"from": "human",
"value": "import settings from 'settings';\n\nexport default [\n {\n element: 'input',\n name: 'petitionId',\n hidden: true,\n html: {\n type: 'hidden'\n }\n },\n {\n elem... | javascript | chosen |
[
{
"from": "system",
"value": "Add stability annotation to ol.source.TopoJSON\n"
},
{
"from": "human",
"value": "goog.provide('ol.source.TopoJSON');\n\ngoog.require('ol.format.TopoJSON');\ngoog.require('ol.source.VectorFile');\n\n\n\n/**\n * @constructor\n * @extends {ol.source.VectorFile}\n * @p... | javascript | chosen |
[
{
"from": "system",
"value": "[test] Add a failing test for `content-type` header\n"
},
{
"from": "human",
"value": "var http = require('http'),\n assert = require('assert'),\n cb = require('assert-called'),\n resourceful = require('resourceful');\n\nrequire('../');\n\nvar PORT = 8123,\... | javascript | chosen |
[
{
"from": "system",
"value": "Remove webapp version constraint for now.\n\nThe server-render package requires webapp@1.3.17 or later, but using a\nnon-prerelease version contraint for a package involved in the release\n(i.e., webapp) is tricky during the prerelease phase, since the -beta.n\nversion is stric... | javascript | chosen |
[
{
"from": "system",
"value": "Add error handler and send error to rollbar\n"
},
{
"from": "human",
"value": "import lib from './lib';\nimport redis from 'src/lib/redisClient';\nimport addTime from 'date-fns/add';\nimport Client from 'src/database/mongoClient';\n\nexport default async function sc... | javascript | chosen |
[
{
"from": "system",
"value": "Make sentenceList scrollable at all times\n"
},
{
"from": "human",
"value": "\"use strict\";\n\nangular.module('arethusa.core').directive('sentenceList', [\n '$compile',\n 'navigator',\n function($compile, navigator) {\n return {\n restrict: 'A',\n s... | javascript | chosen |
[
{
"from": "system",
"value": "Remove unnecessary $mdDialog from the EmailConfirmationCtrl.\n"
},
{
"from": "human",
"value": "angular.module(\"ccj16reg.view.emailConfirmation\", [\"ngRoute\", \"ngMaterial\", \"ccj16reg.registration\"])\n\n.config(function($routeProvider) {\n\t\"use strict\";\n\t... | javascript | chosen |
[
{
"from": "system",
"value": "Initialize config only if not exists\n"
},
{
"from": "human",
"value": "#! /usr/bin/env node\n\nconst args = process.argv\nconst command = args[2]\n\nconst config = {\n app_dir: process.env.HOME + '/.stay'\n}\n\nif (!command) {\n require('./cli/help')(args, config... | javascript | chosen |
[
{
"from": "system",
"value": "Use Node.js module export, since ES6 export breaks build.\n\nSigned-off-by: André Jaenisch <2c685275bd32aff3e28a84de6a3e3ac9f1b2b901@posteo.de>\n"
},
{
"from": "human",
"value": "/*\nCopyright 2018 André Jaenisch\n\nLicensed under the Apache License, Version 2.0 (th... | javascript | chosen |
[
{
"from": "system",
"value": "Make the digestion of the google geo result standardized\n"
},
{
"from": "human",
"value": "angular\n .module('app')\n .factory('googleMapsService', ['$rootScope', '$q',\n function($rootScope, $q) {\n\n /*\n// Load the Google Maps scripts Asy... | javascript | chosen |
[
{
"from": "system",
"value": "Allow apps to kill the server router."
},
{
"from": "human",
"value": "var connect = Npm.require('connect');\nvar Fiber = Npm.require('fibers');\n\nvar root = global;\n\nvar connectHandlers\n , connect;\n\nif (typeof __meteor_bootstrap__.app !== 'undefined') {\n c... | javascript | chosen |
[
{
"from": "system",
"value": "fix: Use correct global when resolving enzymeAdapter\n"
},
{
"from": "human",
"value": "/* eslint-disable global-require */\n\nexport const exposeGlobals = () => {\n let dep;\n switch (global.enzymedepDescriptor) {\n case 'react13':\n dep = 'enzyme-adapter... | javascript | chosen |
[
{
"from": "system",
"value": "fix(extensions): Add label to the title component.\n"
},
{
"from": "human",
"value": "import React from \"react\";\nimport classnames from 'classnames';\nimport styles from './custom-title.scss';\n\nconst Title = ({ icon, label, titleColor, customTitleStyles, onClic... | javascript | chosen |
[
{
"from": "system",
"value": "Add missing require to test project\n"
},
{
"from": "human",
"value": "\nvar gulp = require('gulp');\n\nvar defs = [\n {\n title: 'Test Index Title',\n path: '',\n description: 'Test index description',\n twitterImage: '20euro.png',\n openGraphImage:... | javascript | chosen |
[
{
"from": "system",
"value": "Add work around for the mediacloud.org/blog page being password protected so we can still display the news dynamically on the front page.\n\n"
},
{
"from": "human",
"value": "\nfunction yql_lookup(query, cb_function) {\n var url = 'http://query.yahooapis.com/v1/p... | javascript | chosen |
[
{
"from": "system",
"value": "Set webkit-appearance to none on submit button.\n\n"
},
{
"from": "human",
"value": "import React, { Component } from \"react\";\nimport styled from \"styled-components\";\n\nclass SubmitButton extends Component {\n render() {\n const {\n isShowingPositive,... | javascript | chosen |
[
{
"from": "system",
"value": "CAPI-219: Allow creation of empty user groups\n"
},
{
"from": "human",
"value": "// Copyright 2012 Joyent, Inc. All rights reserved.\n\nvar util = require('util');\n\nvar ldap = require('ldapjs');\n\nvar Validator = require('../lib/schema/validator');\n\n\n\n///---... | javascript | chosen |
[
{
"from": "system",
"value": "Fix issue with back button and loading indicators\n"
},
{
"from": "human",
"value": "App.ready(function() {\n \"use strict\";\n var body = $('body');\n var links = $('a:not([data-method=\"delete\"]):not(.has_many_add):not(.dropdown_menu_button):not([target=\"_bla... | javascript | chosen |
[
{
"from": "system",
"value": "Allow space before custom command name\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst { hears } = require('telegraf');\nconst R = require('ramda');\n\n// DB\nconst { getCommand } = require('../../stores/command');\n\nconst capitalize = R.replace(/^./, R.t... | javascript | chosen |
[
{
"from": "human",
"value": "Add basic code for timer with commented lines where requests will go\n"
},
{
"from": "gpt",
"value": "var timeDisplay = document.querySelector('#timeDisplay');\nvar startButton = document.querySelector('#startButton');\nvar abandonButton = document.querySelector('#ab... | javascript | chosen |
[
{
"from": "system",
"value": "Refactor preload to handle more cases\n"
},
{
"from": "human",
"value": "import Ember from 'ember';\n\nconst { RSVP } = Ember;\n\nfunction preloadRecord(record, toPreload) {\n return preloadAll([record], toPreload).then(() => {\n return record;\n });\n}\n\nfunc... | javascript | chosen |
[
{
"from": "system",
"value": "Fix put to the torch and allow it to use saves\n"
},
{
"from": "human",
"value": "const DrawCard = require('../../../drawcard.js');\n\nclass PutToTheTorch extends DrawCard {\n canPlay(player, card) {\n if(player !== this.controller || this !== card) {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add test support for Windows\n"
},
{
"from": "human",
"value": "var readFile = require('fs').readFile;\nvar assert = require('assert');\nvar exec = require('child_process').exec;\nvar join = require('path').join;\n\n// Test the expected output.\nexec('node .', funct... | javascript | chosen |
[
{
"from": "system",
"value": "Make tests read from the right dir\n"
},
{
"from": "human",
"value": "// Native\nimport path from 'path'\n\n// Packages\nimport test from 'ava'\nimport {transformFile} from 'babel-core'\n\n// Ours\nimport plugin from '../babel'\nimport read from './_read'\n\nconst t... | javascript | chosen |
[
{
"from": "system",
"value": "Fix checkboxes not ticking themselves\n\nCloses #1\n"
},
{
"from": "human",
"value": "// Wrap your stuff in this module pattern for dependency injection\n(function ($, ContentBlocks) {\n // Add your custom input to the fieldTypes object as a function\n // The ... | javascript | chosen |
[
{
"from": "system",
"value": "Add some comments and rename TextField instance\n"
},
{
"from": "human",
"value": "enchant();\n\nwindow.onload = function () {\n var core = new Core(320, 320);\n\n core.onload = function () {\n core.rootScene.backgroundColor = '#eee';\n\n var field = new Tex... | javascript | chosen |
[
{
"from": "system",
"value": "Tweak the color and size a bit\n"
},
{
"from": "human",
"value": "var w = 300,\n gens = 10;\n\nvar c = document.getElementById('cs');\nvar ctx = c.getContext('2d');\n\nvar ruleset = [0,1,0,1,1,0,1,0].reverse();\n\nvar cells = [];\nfor (var i=0; i<w; i++) {\n cel... | javascript | chosen |
[
{
"from": "system",
"value": "Remove increment on refresh / initial visit\n"
},
{
"from": "human",
"value": "var ko = require('knockout-client'),\n\tvm = require('./viewModel');\n\nvm.wtf();\nko.applyBindings(vm);\n"
},
{
"from": "gpt",
"value": "var ko = require('knockout-client'),\... | javascript | chosen |
[
{
"from": "system",
"value": "Fix gameday2 not allowing fullscreen Twitch\n"
},
{
"from": "human",
"value": "import React from 'react'\nimport { webcastPropType } from '../utils/webcastUtils'\n\nconst EmbedTwitch = (props) => {\n const channel = props.webcast.channel\n const iframeSrc = `https... | javascript | chosen |
[
{
"from": "system",
"value": "Fix view for empty response\n"
},
{
"from": "human",
"value": "$(function () {\n $(document).on({\n ajaxStart: function() { $('body').addClass(\"loading\"); },\n ajaxStop: function() { $('body').removeClass(\"loading\"); }\n })\n\n\n $( \"#request_form\"... | javascript | chosen |
[
{
"from": "system",
"value": ":wrench: Check for isFetching with .some\n"
},
{
"from": "human",
"value": "import React, { Component, PropTypes } from 'react';\nimport fetchData from '../../actions/fetchData';\nimport Toast from '../../components/Toast';\nimport Modals from '../Modals';\nimport t... | javascript | chosen |
[
{
"from": "system",
"value": "Fix for requiring `*.ios.js` modules\n\nAlso temporary workaround for `require('StaticContainer.react')`.\r\n\r\nFixes #22"
},
{
"from": "human",
"value": "'use strict';\n\nvar fs = require('fs');\nvar path = require('path');\n\n/**\n * Extract the React Native modu... | javascript | chosen |
[
{
"from": "system",
"value": "Fix for the image prop of the character\n"
},
{
"from": "human",
"value": "var Character = require('./character');\nvar React = require('react');\nvar _ = require('underscore')\n\nvar CharactersList = React.createClass({\n render: function () {\n return (\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Enable Flux logger only for dev\n"
},
{
"from": "human",
"value": "import appReducer from './app/reducer';\nimport createLogger from 'redux-logger';\nimport fetch from 'isomorphic-fetch';\nimport injectDependencies from './lib/injectDependencies';\nimport promiseMid... | javascript | chosen |
[
{
"from": "system",
"value": ":new: Add a new has method\n"
},
{
"from": "human",
"value": "'use babel'\n\nimport {Emitter, CompositeDisposable} from 'atom'\nimport Validate from './validate'\nimport Indie from './indie'\n\nexport default class IndieRegistry {\n constructor() {\n this.subscr... | javascript | chosen |
[
{
"from": "system",
"value": "Refactor LargestQ.combine() to use built-ins.\n"
},
{
"from": "human",
"value": "/**\n * checks if there are scores which can be combined\n */\nfunction checkValidity (scores) {\n if (scores == null) {\n throw new Error('There must be a scores object parameter')... | javascript | chosen |
[
{
"from": "system",
"value": "Remove instance check as it's an internal class and have full control\n"
},
{
"from": "human",
"value": "var util = require('util');\nvar MapStoreMapConfigProvider = require('./mapstore_mapconfig_provider');\n\nfunction DummyMapConfigProvider(mapConfig, params) {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Work around babel-plugin-import-graphql caching intolerance\n"
},
{
"from": "human",
"value": "const root = __dirname + '/../../../..';\n\nrequire('@babel/register')({\n root,\n cwd: root,\n configFile: root + '/packages/server/babel.config.js',\n extensions: ['... | javascript | chosen |
[
{
"from": "system",
"value": "Trim decimal places off seconds"
},
{
"from": "human",
"value": "function quantify(data, unit, value) {\n if (value) {\n if (value > 1 || value < -1)\n unit += 's';\n\n data.push(value + ' ' + unit);\n }\n\n return data;\n}\n\nmodul... | javascript | chosen |
[
{
"from": "system",
"value": "Remove duplicate posts by ababot\n"
},
{
"from": "human",
"value": "// Description:\n// Pick and tag a random user that has to do shitty work, replies when the bot\n// hears @noen. This script also supports mentions of @aktive and @nye.\n\nconst _ = require('lod... | javascript | chosen |
[
{
"from": "system",
"value": "Change domain config schema and update DomainUtil.\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst {app} = require('electron').remote;\nconst JsonDB = require('node-json-db');\n\nclass DomainUtil {\n constructor() {\n this.db = new JsonDB(app.get... | javascript | chosen |
[
{
"from": "system",
"value": "Handle exception extracting used props\n\nFix #595\n"
},
{
"from": "human",
"value": "/* @flow */\nexport default function extractUsedProps(\n rule: Function,\n theme: Object = {}\n): Array<string> {\n const usedProps = []\n\n // if the browser doesn't support p... | javascript | chosen |
[
{
"from": "system",
"value": "Update path of slider images.\n"
},
{
"from": "human",
"value": "module.exports = function(grunt) {\n\n grunt.config.merge({\n imagemin: {\n slider: {\n files: [{\n expand: true,\n cwd: 'cacao... | javascript | chosen |
[
{
"from": "system",
"value": "Bump bundle-visualizer patch version to 1.1.2.\n"
},
{
"from": "human",
"value": "Package.describe({\n version: '1.1.1',\n summary: 'Meteor bundle analysis and visualization.',\n documentation: 'README.md',\n});\n\nNpm.depends({\n \"d3-selection\": \"1.0.5\",\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Simplify the sanity test check\n\nApp doesn't need to listen in the test script as supertest accepts the\napp variable and handles the listening and un-listening itself.\n\nThis also removes the needs for the after block to stop the server.\n"
},
{
"from": "human",
... | javascript | chosen |
[
{
"from": "system",
"value": "Refactor test cases for ModelFactory\n"
},
{
"from": "human",
"value": "/**\n * Created by ChengFuLin on 2015/6/10.\n */\nvar factoryAnalyzedCFG = require('../../lib/dujs').factoryAnalyzedCFG,\n should = require('should');\n\ndescribe('ModelFactory', function () ... | javascript | chosen |
[
{
"from": "system",
"value": "Add paypal component to online payments.\n"
},
{
"from": "human",
"value": "import React from 'react'\n\nimport CreaditCardPayment from './credit_card_payment.js'\nimport Paypal from './paypal.js'\n\nexport default (props) => {\n return props.user_payments.payment_... | javascript | chosen |
[
{
"from": "system",
"value": "Create var arr that creates the needed array depending on the given param\n"
},
{
"from": "human",
"value": "// Sieve of Eratosthenes\n\n/*RULES:\n Function takes one parameter\n Return an array of all prime numbers from 0-parameter\n*/\n\n/*PSEUDOCODE:\n 1) Find... | javascript | chosen |
[
{
"from": "system",
"value": "Add temp channel init with game name\n"
},
{
"from": "human",
"value": "'use strict';\n\n/*\n * /create [name] - Creates a voice-chat channel. Optionally names it, otherwise names it Username-[current game]\n *\n */\n\nclass Create{\n constructor (bot, config) {\... | javascript | chosen |
[
{
"from": "system",
"value": "Switch phone number to Environment Variable (instead of const)\n"
},
{
"from": "human",
"value": "// Sample Lambda Function to send notifications via text when an AWS Health event happens\nvar AWS = require('aws-sdk');\nvar sns = new AWS.SNS();\n\n// define configu... | javascript | chosen |
[
{
"from": "system",
"value": "Fix auto slug generation for newly added parts\n\nSince moving to use nested forms, we now need to listen for a nested field added event and attach the auto slug generator handler accordingly.\n"
},
{
"from": "human",
"value": "// Javascript specific to guide admin\... | javascript | chosen |
[
{
"from": "system",
"value": "Hide search saving buttons for now\n"
},
{
"from": "human",
"value": "App.Search.SearchPanelUi = Ext.extend(Ext.form.FormPanel, {\n title: 'Search criteria',\n labelWidth: 100,\n labelAlign: 'left',\n layout: 'form',\n tbar: {\n xtype: 'toolbar',\n items:... | javascript | chosen |
[
{
"from": "system",
"value": "Add the repo to the version CONSTANT\n"
},
{
"from": "human",
"value": "'use strict';\n\nangular.module('arethusa').constant('VERSION', {\n revision: '<%= sha %>',\n date: '<%= new Date().toJSON() %>'\n});\n"
},
{
"from": "gpt",
"value": "'use strict';... | javascript | chosen |
[
{
"from": "system",
"value": "Fix sessionStorage name to retrieve token.\n"
},
{
"from": "human",
"value": "angular.module('MovnThereUI').factory('AuthFactory', function($http, $window, ServerUrl) {\n 'use strict';\n\n var login = function(credentials) {\n\n return $http\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix request body conversion and passing\n"
},
{
"from": "human",
"value": "import WebMiddle, { PropTypes } from 'webmiddle';\nimport request from 'request';\n\nconst HttpRequest =\n({ name, contentType, url, method = 'GET', body = {}, httpHeaders = {}, cookies = {} ... | javascript | chosen |
[
{
"from": "system",
"value": "Add version constraint for reactive-obj\n"
},
{
"from": "human",
"value": "/*global Package*/\nPackage.describe({\n name: 'dschnare:meteor-components-ioc-plugin',\n version: '0.2.0',\n // Brief, one-line summary of the package.\n summary: 'A plugin for Meteor Co... | javascript | chosen |
[
{
"from": "system",
"value": "Improve async loading bar test\n\nThe waitFor helper is allows us to wait for what we are actually testing\ninstead of a time which sometimes blocks the rendering and causes the\ntest to be flaky.\n"
},
{
"from": "human",
"value": "import { module, test } from 'quni... | javascript | chosen |
[
{
"from": "system",
"value": "Remove expected/optional param as it was removed from reference\n"
},
{
"from": "human",
"value": "var camshaftReference = require('../../../src/analysis/camshaft-reference');\n\ndescribe('src/analysis/camshaft-reference', function () {\n describe('.getSourceNamesF... | javascript | chosen |
[
{
"from": "system",
"value": "Change argument to require from relative to global path\n"
},
{
"from": "human",
"value": "/**\n * @module client/main\n */\n'use strict';\n\nvar app = require('./app');\nrequire('angular');\n\n/**\n * Each 'index' generated via grunt process dynamically includes al... | javascript | chosen |
[
{
"from": "system",
"value": "Return null as early as possible if the prefix is invalid\n"
},
{
"from": "human",
"value": "'use babel';\n\nimport completions from '../data/completions';\n\nclass CurryProvider {\n constructor() {\n this.scopeSelector = '.source.curry';\n this.disableForSco... | javascript | chosen |
[
{
"from": "system",
"value": "Fix exec function with no argument\n"
},
{
"from": "human",
"value": "\nvar exec = require('cordova/exec');\n\nvar PLUGIN_NAME = 'SystemSound';\n\nvar SystemSound = {\n playSound: function(cb) {\n exec(cb, null, PLUGIN_NAME, 'playSound', []);\n }\n};\n\... | javascript | chosen |
[
{
"from": "system",
"value": "Switch to more concise require as suggested by Ben\n"
},
{
"from": "human",
"value": "import { Meteor } from 'meteor/meteor';\n\n// In the client and server entry points, we make sure the\n// bundler loads the correct thing. Here, we just need to\n// make sure that ... | javascript | chosen |
[
{
"from": "system",
"value": "Update Harmonia client example to reflect changes in 0.4\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar Harmonia = require('harmonia');\n\n// Create a new server that listens to a given queue\nvar harmonia = new Harmonia.Server('rpc');\n\nharmonia.route({\n... | javascript | chosen |
[
{
"from": "system",
"value": "Remove code alignment, add trailing comma, add EOF newline\n"
},
{
"from": "human",
"value": "var gulp = require('gulp'),\n csslint = require('gulp-csslint'),\n jshint = require('gulp-jshint'),\n rename = require('gulp-r... | javascript | chosen |
[
{
"from": "system",
"value": "Add automatic running of info script\n"
},
{
"from": "human",
"value": "var gulp = require('gulp');\nvar react = require('gulp-react');\nvar git = require('gulp-git');\nvar fs = require('fs');\nvar shell = require('gulp-shell')\n\ngulp.task('brew', function () {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Update crel to latest version from github.com/KoryNunn/crel\n"
},
{
"from": "human",
"value": "(e=>{const t=\"function\",n=\"isNode\",r=document,o=(e,t)=>typeof e===t,i=(e,t)=>{null!==t&&(Array.isArray(t)?t.map(t=>i(e,t)):(a[n](t)||(t=r.createTextNode(t)),e.appendCh... | javascript | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.