conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Remove conditional in at rules\n"
},
{
"from": "human",
"value": "const MiniCSSExtractPlugin = require('mini-css-extract-plugin');\n\nconst styleFunctions = require('../../src/styles/functions/index.js');\n\nmodule.exports = (env) => {\n const styleLoaders = {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Rename to `$_` to `$env`.\n"
},
{
"from": "human",
"value": "exports.create = function (source) {\n var f = Function.apply(Function, [].concat(\n '$', '$qualifier', '$level', '$_',\n 'PANIC', 'EMERG', 'ALERT', 'CRIT', 'ERR', 'ERROR', 'WARN', 'WARNIN... | javascript | chosen |
[
{
"from": "system",
"value": "Add addMessageListener and emitMessage functions.\n"
},
{
"from": "human",
"value": "/**\n * Sends a Chrome message to all tabs that are Tiles tabs.\n * @param {String} message The message to send to each tab.\n */\nfunction sendMessageToExtensionTabs(message, igno... | javascript | chosen |
[
{
"from": "system",
"value": "Split SNS mocks into working and not working in order to simulate errors with accessing amazon SNS\n"
},
{
"from": "human",
"value": "import proxyquire from 'proxyquire';\n\nexport default proxyquire('../../src/notifications/notify-of-new-blogs', {\n 'aws-sdk': {\n... | javascript | chosen |
[
{
"from": "system",
"value": "Add AAT.stringifyResults to console.log the failures\n"
},
{
"from": "human",
"value": "'use strict';\n\ndescribe(\"Accessibility Test\", function () {\n var originalTimeout;\n\n var testcasesHTML = window.__html__;\n\n for (var testFile in testcasesHTML) {... | javascript | chosen |
[
{
"from": "system",
"value": "Fix loadFixtures with refresh operation so that the inserted documents are immediately indexed"
},
{
"from": "human",
"value": "import client from 'util/client';\n\n// fixtureMap:\n// {\n// '/articles/basic/1': { ... body of article 1 ... },\n// '/replies/basic/... | javascript | chosen |
[
{
"from": "system",
"value": "Remove Object.assign for testing compat\n"
},
{
"from": "human",
"value": "// Written by Joshua Paul A. Chan\n(function() {\n\"use strict\";\n\n// Import variables if present (from env.js) (thanks @jvandemo)\nvar env = {};\nif(window){ Object.assign(env, window.__en... | javascript | chosen |
[
{
"from": "system",
"value": "Update route to point to new jade file\n"
},
{
"from": "human",
"value": "angular.module('chemPhyWebApp')\n .config(['$routeProvider',\n function($routeProvider) {\n $routeProvider.\n when('/home', {\n templateUrl: require('./components/home... | javascript | chosen |
[
{
"from": "system",
"value": "Throw Error instead of string\n"
},
{
"from": "human",
"value": "var React = require('react');\nvar ReactDOM = require('react-dom');\nvar sinon = require('sinon');\n\nfunction spyOnReactClass(reactClass, methodName) {\n var classProto = reactClassPrototype(reactC... | javascript | chosen |
[
{
"from": "system",
"value": "Fix not calling .bind() on non-native functions\n\nFixes #26\n"
},
{
"from": "human",
"value": "import locationFactory from '../mock/location';\n\nfunction noop() {}\n\nexport default function windowMockFactory() {\n let location = locationFactory();\n let holder ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix for Firefox fetch api implementation"
},
{
"from": "human",
"value": "require('isomorphic-fetch')\n\nexport function checkStatus(response) {\n if (response.ok) {\n return response\n }\n\n if (response.body || response._bodyBlob) {\n return response.json... | javascript | chosen |
[
{
"from": "system",
"value": "Update path to chart model.\n"
},
{
"from": "human",
"value": "import { Chart } from '../../../shared/model/chart'\nimport axios from 'axios'\n\nimport { GET_USERCHARTS } from './types'\n\nconst serverHost = 'localhost'\nconst serverPort = '5000'\nconst baseUrl = `h... | javascript | chosen |
[
{
"from": "system",
"value": "Set session variables, cleaned up code\n"
},
{
"from": "human",
"value": "Template.results.events({\n 'submit form': function(event){\n var movie = document.querySelector('input[name=\"movie\"]:checked').value;\n var id = document.querySelector('inp... | javascript | chosen |
[
{
"from": "system",
"value": "Add firefox and ie to protractor capable browsers\n"
},
{
"from": "human",
"value": "// Protractor configuration file, see link for more information\n// https://github.com/angular/protractor/blob/master/lib/config.ts\n\nconst { SpecReporter } = require('jasmine-spec... | javascript | chosen |
[
{
"from": "system",
"value": "Add created_at timestamp and static function for ungeocoded incidents.\n"
},
{
"from": "human",
"value": "var mongoose = require('mongoose');\nvar Schema = mongoose.Schema;\n\nvar incidentSchema = new Schema({\n date: {type: Date, index: true},\n type: {type: Stri... | javascript | chosen |
[
{
"from": "system",
"value": "Include firewallDisable option to allow ping function to test static IP\n"
},
{
"from": "human",
"value": "// Copyright 2016, EMC, Inc.\n\n'use strict';\n\nmodule.exports = {\n friendlyName: 'Install Windows',\n injectableName: 'Task.Os.Install.Win',\n impl... | javascript | chosen |
[
{
"from": "system",
"value": "Add comments for different parts of entry and updated server listener to be within sequelize sync callback\n"
},
{
"from": "human",
"value": "import express from 'express'\nimport models from './models';\nimport bodyParser from 'body-parser';\nimport users from './r... | javascript | chosen |
[
{
"from": "system",
"value": "Update County details remote method including metrics order by year DESC\n"
},
{
"from": "human",
"value": "'use strict';\n\nmodule.exports = function(County) {\n /**\n * Get county details including indicators\n * @param {Function(Error)} callback\n */\n\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Reset current visualizer to dfa\n"
},
{
"from": "human",
"value": "import options from './options'\nimport { getCurrentManipulation } from './manipulation'\n\nconst nodes = new vis.DataSet([])\nconst edges = new vis.DataSet([])\n\nconst select = $('select')\nconst... | javascript | chosen |
[
{
"from": "system",
"value": "Add fixme info for active_users() helper\n"
},
{
"from": "human",
"value": "\"use strict\";\n\n\n/*global nodeca, _*/\n\n\n// stdlib\nvar crypto = require('crypto');\n\n\n// nodeca\nvar HashTree = require('nlib').Support.HashTree;\n\n\n// internal\nvar realtime = re... | javascript | chosen |
[
{
"from": "system",
"value": "Throw error returned from DAGNode.create\n"
},
{
"from": "human",
"value": "const path = require('path')\nconst { DAGNode } = require('ipld-dag-pb')\n\n// Creates a DB manifest file and saves it in IPFS\nconst createDBManifest = async (ipfs, name, type, accessContro... | javascript | chosen |
[
{
"from": "system",
"value": "Improve original SplatNet gear name matching\n\nThere was an item with the name \"Annaki Drive Tee \" (with an extra space at the end) which didn't match the Inkipedia data. This change also makes the comparison case insensitive just in case."
},
{
"from": "human",
... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"renamed component to better reflect its responsibility\"\n\nThis reverts commit 8bfe160\n"
},
{
"from": "human",
"value": "import React, {Component} from 'react'\nimport {Redirect, Route, Switch} from 'react-router-dom'\nimport Users from \"./users/Users\";... | javascript | chosen |
[
{
"from": "system",
"value": "Set crossorigin attribute to empty string.\n"
},
{
"from": "human",
"value": "\n/* global BackgroundCheck:false */\n\nfunction convertImageToDataURI(img) {\n var canvas = document.createElement('canvas');\n canvas.width = img.width;\n canvas.height = img.height;\... | javascript | chosen |
[
{
"from": "system",
"value": "Add warning on niceb5y mirror\n"
},
{
"from": "human",
"value": "import React, { Component } from 'react'\n\nexport default class extends Component {\n render() {\n return (\n <div className=\"block pt-3 pb-5 text-center\">\n <div className=\"row\">\... | javascript | chosen |
[
{
"from": "system",
"value": "Support for finalize and unfinalize\n"
},
{
"from": "human",
"value": "(function(window)\n{\n var Gitana = window.Gitana;\n\n Gitana.Release = Gitana.AbstractRepositoryObject.extend(\n /** @lends Gitana.Release.prototype */\n {\n /**\n * @... | javascript | chosen |
[
{
"from": "system",
"value": "Add comment for attaching of crypto\n"
},
{
"from": "human",
"value": "// This file is part of BenchExec, a framework for reliable benchmarking:\n// https://github.com/sosy-lab/benchexec\n//\n// SPDX-FileCopyrightText: 2019-2020 Dirk Beyer <https://www.sosy-lab.org>... | javascript | chosen |
[
{
"from": "system",
"value": "Add missing filename extension to require path\n"
},
{
"from": "human",
"value": "'use strict';\n\n/**\n* Test if a value is an anagram.\n*\n* @module @stdlib/utils/is-anagram\n*\n* @example\n* var isAnagram = require( '@stdlib/utils/is-anagram' );\n*\n* var bool = ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix `Uncaught TypeError: undefined is not a function`\n\nFor more information see the following:\n\nhttps://github.com/cibernox/ember-cli-accounting/issues/7#issuecomment-73835187\n\nhttps://github.com/emberjs/ember.js/commit/ad62ccfdfd9578884261c96a2af4a6a238bd3ae9\n"
},
{... | javascript | chosen |
[
{
"from": "system",
"value": "Update webpack settings to retain filename\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar gulp = require( 'gulp' );\nvar $ = require( 'gulp-load-plugins' )();\nvar pkg = require( '../config' ).pkg;\nvar banner = require( '../config' ).banner;\nvar config = ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix docs in surveys module\n"
},
{
"from": "human",
"value": "'use strict';\n\n/**\n * Module dependencies\n */\nvar surveysPolicy = require('../policies/surveys.server.policy'),\n\tsurveys = require('../controllers/surveys.server.controller');\n\nmodule.exports = f... | javascript | chosen |
[
{
"from": "system",
"value": "Fix itest path after jetty port change\n"
},
{
"from": "human",
"value": "exports.config = {\n specs: ['**/*_spec.js'],\n\n baseUrl: 'http://localhost:8080/hawtio',\n\n onPrepare: function() {\n // The require statement must be down here, since jasmine-reporte... | javascript | chosen |
[
{
"from": "system",
"value": "Introduce a new way to `require` plugins when using RequireJS (dev mode).\nThis is to fix an issue with timing that existed previously.\n"
},
{
"from": "human",
"value": "// Copyright (c) 2014 Readium Foundation and/or its licensees. All rights reserved.\n//\n// R... | javascript | chosen |
[
{
"from": "system",
"value": "Fix saving projects (null project id in model)\n"
},
{
"from": "human",
"value": "define([\n 'underscore',\n 'backbone',\n 'models/core/BaseModel',\n], function(_, Backbone, BaseModel) {\n\n var ProjectModel = BaseModel.extend({\n\n urlRoot: 'api/... | javascript | chosen |
[
{
"from": "system",
"value": "Remove required community.image in list\n"
},
{
"from": "human",
"value": "import React, { PropTypes } from 'react'\n\nconst ListItem = ({ onClick, community: { id, name, image } }) => (\n <div className='ListItem' onClick={() => onClick(id)} style={{ cursor: 'poin... | javascript | chosen |
[
{
"from": "system",
"value": "refactor: Rename all streams tab key to 'allStreams'.\n\nReason behind this change is to avoid confusion as there is already tab with key 'streams' in home tabs.\n"
},
{
"from": "human",
"value": "/* @flow */\nimport React from 'react';\nimport { StyleSheet, Text } ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix the test baseline with the spelling error\n"
},
{
"from": "human",
"value": "var E;\r\n(function (E) {\r\n E[E[\"a\"] = 0] = \"a\";\r\n})(E || (E = {}));\r\nvar E;\r\n(function (E) {\r\n E[E[\"b\"] = 1] = \"b\";\r\n})(E || (E = {}));\r\nvar x = E;\r\nvar x... | javascript | chosen |
[
{
"from": "system",
"value": "Add polyglot template Helper from the userPage branch.\n"
},
{
"from": "human",
"value": "// todo: add in some helpers!\n\nexport function dummyHelper(something) {\n return something;\n}\n"
},
{
"from": "gpt",
"value": "import app from '../app';\n\ncons... | javascript | chosen |
[
{
"from": "system",
"value": "Update scaffold for Backbone todo app changes\n"
},
{
"from": "human",
"value": "module.exports = function(){\n this.Given(/^I visit TODOMVC$/,function(){\n this.driver.get('http://todomvc.com/examples/backbone/')\n });\n\n this.When(/^I enter \\\"([^\\\"]*)\\... | javascript | chosen |
[
{
"from": "system",
"value": "Use the right line terminator accordingly to the platform\n"
},
{
"from": "human",
"value": "'use strict';\n/* global require */\n/* global process */\n\nvar fs = require ('fs');\nvar path = require ('path');\n\nvar mkdirSync = function (path) {\n try {\n fs.mkd... | javascript | chosen |
[
{
"from": "system",
"value": "Fix up various prop issues with IssueishBadge\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport PropTypes from 'prop-types';\nimport cx from 'classnames';\n\nimport Octicon from './octicon';\n\nconst typeAndStateToIcon = {\n Issue: {\n OPEN: ... | javascript | chosen |
[
{
"from": "system",
"value": "Update scene mesh primitive unit test\n"
},
{
"from": "human",
"value": "import {\n GeometryPipelineStage,\n ModelExperimentalSceneMeshPrimitive,\n} from \"../../../Source/Cesium.js\";\n\ndescribe(\"Scene/ModelExperimental/ModelExperimentalSceneMeshPrimitive\", fu... | javascript | chosen |
[
{
"from": "system",
"value": "Add description for <HeaderRow> optional area example\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport { storiesOf } from '@storybook/react';\nimport { withInfo } from '@storybook/addon-info';\n\n// For props table\nimport HeaderRow from '@ichef... | javascript | chosen |
[
{
"from": "system",
"value": "Set react nav header font family\n"
},
{
"from": "human",
"value": "import { StackNavigator } from 'react-navigation';\nimport * as Pages from './pages';\n\nexport default StackNavigator(\n {\n home: {\n screen: Pages.Home,\n navigationOptions: {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "react: Allow Dashboard `height` to accept a string with unit\n"
},
{
"from": "human",
"value": "const PropTypes = require('prop-types')\nconst UppyCore = require('@uppy/core').Uppy\n\n// The `uppy` prop receives the Uppy core instance.\nconst uppy = PropTypes.instan... | javascript | chosen |
[
{
"from": "system",
"value": "Fix hot loading for base theme\n"
},
{
"from": "human",
"value": "// Hot loading HRM Patch\nimport \"react-hot-loader/patch\"\n\n// fetch polyfill\nimport \"whatwg-fetch\"\n\nimport metadata from \"../src/metadata.js\"\nimport routes from \"../src/routes.js\"\nimpor... | javascript | chosen |
[
{
"from": "system",
"value": "Use file stream with index\n"
},
{
"from": "human",
"value": "export default function (req, res, next) {\n\tconsole.log(\"Sending dashboard\")\n\tconsole.log(__dirname)\n\tconsole.log(process.env.PWD)\n\tconsole.log(global.root)\n\tconsole.log(\"\")\n res.sendFil... | javascript | chosen |
[
{
"from": "system",
"value": "Send create experiment submit to Marketo.\n"
},
{
"from": "human",
"value": "var createExpHelperInst = window.optly.mrkt.form.createExp({formId: 'create-exp-form'});\n\n$(createExpHelperInst.formElm).on('submit', function(e) {\n var uri,\n validationError = fals... | javascript | chosen |
[
{
"from": "system",
"value": "Fix a broken constants.js import\n\nThe import of `constants` in NewDiskDialog/actions.js was changed\nto use the App level constants in error. The disk create option still\nworks but redux reports an error on the browser console. Fixed the\nimport, fixed the error.\n"
},
{... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"Remove unnecessary effectArgs (use new game chat feature)\"\n\nThis reverts commit 691ba364132ebef3c9eb016927645232110469d4.\n"
},
{
"from": "human",
"value": "const DrawCard = require('../../drawcard.js');\n\nclass ShinjoTrailblazer extends DrawCard {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add core method for getting a cookie by name\n"
},
{
"from": "human",
"value": "'use strict';\n\nlet Gelato = {};\n\nif ($ === undefined) {\n throw 'Gelato requires jQuery as a dependency.'\n} else {\n window.jQuery = window.$ = $;\n}\n\nif (_ === undefined) {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Update description with more detailed description\n"
},
{
"from": "human",
"value": "var yeoman = require('yeoman-generator');\n\nmodule.exports = yeoman.generators.Base.extend({\n constructor: function () {\n yeoman.generators.Base.apply(this, arguments);... | javascript | chosen |
[
{
"from": "system",
"value": "Replace duplicate calculator with fallback.\n"
},
{
"from": "human",
"value": "module.exports = () => {\n return `module.exports = {\n hotkey: 'alt+space',\n theme: 'tinytacoteam/zazu-light-theme',\n plugins: [\n 'tinytacoteam/zazu-calculator',\n 'tinytaco... | javascript | chosen |
[
{
"from": "system",
"value": "Use original concat sourcemap for production build\n"
},
{
"from": "human",
"value": "// Minify JS\nmodule.exports = function(grunt) {\n grunt.config('uglify', {\n options: {\n sourceMap: true\n },\n deploy: {\n src: 'sr... | javascript | chosen |
[
{
"from": "system",
"value": "Add error logging to unhandled rejection.\n"
},
{
"from": "human",
"value": "/* eslint-env mocha */\nimport Chai from 'chai';\nimport ChaiString from 'chai-string';\nimport Sinon from 'sinon';\nimport SinonChai from 'sinon-chai';\n\nChai.use(ChaiString);\nChai.use(S... | javascript | chosen |
[
{
"from": "system",
"value": "Add non undefinded check to team names on GameCard\n"
},
{
"from": "human",
"value": "import React from 'react'\n\nimport GameCard from './GameCard'\n\nexport default (props) => {\n const userId = props.userId\n const teams = props.teams\n const games = []\n con... | javascript | chosen |
[
{
"from": "system",
"value": "Make sure colors are in static order\n"
},
{
"from": "human",
"value": "import textures from 'textures'\n\nexport const colorTextures = {\n '#ffd300': () => {\n return textures.lines()\n .stroke('#f48335')\n .background('#f36d20')\n },\n '#f56d00': () =>... | javascript | chosen |
[
{
"from": "system",
"value": "feat: Add model saving and data transformation\n"
},
{
"from": "human",
"value": "\nclass Storage {\n constructor(connection) {\n this._connection = connection;\n }\n\n merge() {\n \n }\n}\n\nmodule.exports = {\n Storage\n};\n"
},
{
"from": "gpt",... | javascript | chosen |
[
{
"from": "system",
"value": "Use event delegation for form submissions\n"
},
{
"from": "human",
"value": "$(document).ready(function() {\n // This is called after the document has loaded in its entirety\n // This guarantees that any elements we bind to will exist on the page\n // when we try... | javascript | chosen |
[
{
"from": "system",
"value": "Send data via post and show alerts\n"
},
{
"from": "human",
"value": "$('#add_moderador').on(\n \"click\",\n function () {\n var id = $('#id').val();\n var laboratorio_id = $('#laboratorio_id').val();\n $.post(\n \"/admin/modera... | javascript | chosen |
[
{
"from": "system",
"value": "Comment out the debug code."
},
{
"from": "human",
"value": "import React from 'react';\nimport {loadViaAjax, loadViaNode} from './katas.js';\nimport Page from './components/page.js';\nimport GithubSearchResult from './github-search-result.js';\n\nfunction githubJso... | javascript | chosen |
[
{
"from": "system",
"value": "Add template for click event to overview img\n"
},
{
"from": "human",
"value": "var interactiveBrowse_overview = d3.select(\"#interactiveBrowse_overview\");\n\nvar ecology = interactiveBrowse_overview.append(\"rect\")\n .attr(\"x\", 680)\n .attr(\"y\",... | javascript | chosen |
[
{
"from": "system",
"value": "Speed up the scrolling on link clicks\n"
},
{
"from": "human",
"value": "/*!\n * Start Bootstrap - Freelancer Bootstrap Theme (http://startbootstrap.com)\n * Code licensed under the Apache License v2.0.\n * For details, see http://www.apache.org/licenses/LICENSE-2.0... | javascript | chosen |
[
{
"from": "system",
"value": "Add a missing next parameter.\n"
},
{
"from": "human",
"value": "/*!\n * Ext JS Connect 0.0.1\n * Copyright(c) 2010 Ext JS, Inc.\n * MIT Licensed\n */\n\nvar child_process = require('child_process'),\n sys = require('sys');\n\nmodule.exports = {\n\n handle: fu... | javascript | chosen |
[
{
"from": "system",
"value": "Add storable to all mixins\n"
},
{
"from": "human",
"value": "import addable from 'flockn/mixins/addable';\nimport renderable from 'flockn/mixins/renderable';\nimport updateable from 'flockn/mixins/updateable';\nimport serializable from 'flockn/mixins/serializable';... | javascript | chosen |
[
{
"from": "system",
"value": "Fix time zone shift issue, related to Date fields\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar d = require('es5-ext/lib/Object/descriptor')\n , DOMInput = require('../date-time').DOMInput\n\n , DateType = require('dbjs/lib/objects')._get('Date')\... | javascript | chosen |
[
{
"from": "system",
"value": "Fix typo in comment-space-inside message\n"
},
{
"from": "human",
"value": "import {\n report,\n ruleMessages\n} from \"../../utils\"\n\nexport const ruleName = \"comment-space-inside\"\n\nexport const messages = ruleMessages(ruleName, {\n expectedOpening: `Expec... | javascript | chosen |
[
{
"from": "system",
"value": "Remove node_modules folder for alpha.10.3\n"
},
{
"from": "human",
"value": "'use strict';\n\n/**\n * Module dependencies\n */\n\n// Node.js core.\nconst path = require('path');\n\n// Local dependencies.\nconst packageJSON = require('../json/package.json.js');\ncons... | javascript | chosen |
[
{
"from": "system",
"value": "Fix case where mapOverlay is toggled by panorama images\n"
},
{
"from": "human",
"value": "import piwikTracker from '../../shared/services/piwik-tracker/piwik-tracker';\n\n/** Set Piwik variable */\nconst actionsToPiwik = {\n TOGGLE_MAP_OVERLAY: (tracking) => [\n ... | javascript | chosen |
[
{
"from": "system",
"value": ":rotating_light: Use this module, before trying to test it.\n"
},
{
"from": "human",
"value": "/*jshint node:true, laxcomma:true */\n/* global describe, it */\n'use strict';\nvar assert = require('assert')\n , JBJ = require('jbj')\n , examples = require('./example... | javascript | chosen |
[
{
"from": "system",
"value": "Bugfix: Allow isBuildingOpen to return 'Almost Closed'\n\nMoment allows \"minutes\" and \"m\", but not \"min\"\n"
},
{
"from": "human",
"value": "// @flow\nimport {getBuildingHours} from './get-building-hours'\nimport type momentT from 'moment'\nimport type {Buildin... | javascript | chosen |
[
{
"from": "system",
"value": "Add \"allowedValues\" function to string parameters\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar _ = require('lodash');\n\nfunction Parameter(id, type, defaultValue, description, options) {\n this.id = id;\n this.node = {\n Type: type\n };... | javascript | chosen |
[
{
"from": "system",
"value": "Fix dummy for prod build\n"
},
{
"from": "human",
"value": "import Ember from 'ember';\n\nexport default Ember.Controller.extend({\n current: 2,\n dynamicCount: 10,\n dynamicCurrent: 5,\n\n actions: {\n pageChanged(direction, page, last) {\n console.log(... | javascript | chosen |
[
{
"from": "system",
"value": "Debug should be for socket.io instead of primus"
},
{
"from": "human",
"value": "'use strict';\n\nvar socketio = require('socket.io');\nvar Proto = require('uberproto');\nvar debug = require('debug')('feathers:primus');\nvar commons = require('feathers-commons').soc... | javascript | chosen |
[
{
"from": "system",
"value": "Add Orwell as a lib\n"
},
{
"from": "human",
"value": "(function(){\n 'use strict';\n\n angular.module('application', [\n 'ui.router',\n 'ngAnimate',\n\n //foundation\n 'foundation',\n 'foundation.dynamicRouting',\n 'foundation.dynamicRouting.ani... | javascript | chosen |
[
{
"from": "system",
"value": "Use correct create annotation permission\n\nThis has the limitation of hiding the input field in the\ncase where a user has permissions to e.g. flag but not \ncomment, but I suspect those cases are rare and we can\naddress them later if needed."
},
{
"from": "human",
... | javascript | chosen |
[
{
"from": "system",
"value": "docs: Add docblock header for main module\n"
},
{
"from": "human",
"value": "\n'use strict';\n\nvar mtg = function(opts) {\n /*code*/\n};\n\nmtg.card = require('./card');\n\nmtg.cache = require('./deck');\n\nmtg.db = require('./db');\n\nmodule.exports = mtg;\n"
}... | javascript | chosen |
[
{
"from": "human",
"value": "Add file for solo challenge\n"
},
{
"from": "gpt",
"value": "<!DOCTYPE html>\n<html>\n<head>\n\t<title></title>\n</head>\n<body>\n<textarea id=\"box\" rows=\"4\" cols=\"80\"></textarea>\n<textarea id =\"display-area\"></textarea>\n<button type=\"button\" onClick=\"gu... | javascript | chosen |
[
{
"from": "system",
"value": "Fix Error Handling in Logger\n"
},
{
"from": "human",
"value": "let history = []\n\nexport function log() {\n const args = Array.from(arguments)\n history.push([new Date(), 'log', args.join(' '), args])\n if (process.env.NODE_ENV !== 'test') {\n console.log('%... | javascript | chosen |
[
{
"from": "system",
"value": "Check whether user already exists before creating it.\n"
},
{
"from": "human",
"value": "var bcrypt = require('bcrypt'),\n db = require('./db');\n\nmodule.exports = {\n insert: function(options, callback) {\n var users = db.coll('users'),\n d... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"[Bugfix] - Adding compatibility with fastboot\"\n"
},
{
"from": "human",
"value": "import Ember from 'ember';\n\nexport function renderComponentTimeString(payload) {\n return `${payload.object} (Rendering: ${payload.initialRender ? 'initial' : 'update' })`... | javascript | chosen |
[
{
"from": "system",
"value": "Remove unused variables. Fix nesting bug."
},
{
"from": "human",
"value": "/**\n * jQuery if-else plugin\n *\n * Creates if(), else() and fi() methods that can be used in\n * a chain of methods on jQuery objects\n * \n * @author Vegard Løkken <vegard@headspin.no>\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Use correct path for depth image\n"
},
{
"from": "human",
"value": "define( [\"app\", \"scribbler\"], function( app, scribbler ) {\n var container = document.getElementById( 'buttons-container' );\n var buttons = {\n \"Toggle auto-rotate\": function() {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add logging about downloading the hot manifest\n"
},
{
"from": "human",
"value": "if(module.hot) {\n\tfunction check() {\n\t\tmodule.hot.check(function(err, updatedModules) {\n\t\t\tif(err) {\n\t\t\t\tif(module.hot.status() in {abort:1,fail:1})\n\t\t\t\t\twindow.loc... | javascript | chosen |
[
{
"from": "system",
"value": "Add more test cases for getBestVernacularNameEOL\n"
},
{
"from": "human",
"value": "// chai is an assertion library\nlet chai = require('chai');\n\n// @see http://chaijs.com/api/assert/\nlet assert = chai.assert;\n\n// register alternative styles\n// @see http://cha... | javascript | chosen |
[
{
"from": "system",
"value": "Send bpjs number data to firebase\n"
},
{
"from": "human",
"value": "var cordova = require('cordova')\nvar rs = [\"Royal Progress\", \"RSUP Dr Cipto Mangunkusumo\", \"RSUP Fatmawati\", \"RSUP Persahabatan\"]\n\nvar input = document.getElementbyId('hospital-form').va... | javascript | chosen |
[
{
"from": "system",
"value": "Remove log statements from rect\n"
},
{
"from": "human",
"value": "var Class = require('std/Class')\n\nmodule.exports = Class(function() {\n\t\n\tthis.init = function(x, y, w, h) {\n\t\tthis.x = x\n\t\tthis.y = y\n\t\tthis._x2 = x + w\n\t\tthis._y2 = y + h\n\t}\n\t\... | javascript | chosen |
[
{
"from": "system",
"value": "Use isEmpty instead of isNone\n"
},
{
"from": "human",
"value": "import TextArea from '@ember/component/text-area';\nimport { isNone } from '@ember/utils';\nimport { get, computed } from '@ember/object';\nimport AutoResize from \"../mixins/autoresize\";\n\n/**\n @e... | javascript | chosen |
[
{
"from": "system",
"value": "Make the customProjector tutorial show off more stuff\n"
},
{
"from": "human",
"value": "window.onload = function() {\n var xScale = new Plottable.LinearScale();\n var yScale = new Plottable.LinearScale();\n\n var xAxis = new Plottable.XAxis(xScale, \"bottom\");\... | javascript | chosen |
[
{
"from": "system",
"value": "Fix the tool tests when run with buck\n\nSummary:\nNot sure why source-map-support is starting to return `null` as the\nfilename for some stack frames. Also not sure why this only happens when run\nwith buck. This does fix all the tests, though.\n\nReviewed By: samwgoldman\n\nD... | javascript | chosen |
[
{
"from": "system",
"value": "Make it possible to switch targets\n"
},
{
"from": "human",
"value": "(function(document, housewarming){\n\n var playground = document.getElementById('playground');\n playground.width = document.body.clientWidth;\n playground.height = document.body.clientHe... | javascript | chosen |
[
{
"from": "system",
"value": "Modify LinkView with ability to redirect to optional action. Maintains normal link for SEO. Change photo model to use RESTAdapter.\n"
},
{
"from": "human",
"value": "/*\nToDo:\n\t-Implement photo gallery\n\t-About me page\n\t- Filter print gallery by type?\n\t-Updat... | javascript | chosen |
[
{
"from": "system",
"value": "Change .complete to .always, as .complete has been deprecated since jQuery 1.8"
},
{
"from": "human",
"value": "$(document).ready(function(){\n\n 'use strict';\n\n function load_new_items(){\n var sign = load_path.indexOf('?') >= 0 ? '&' : '?'\n $.get(load_p... | javascript | chosen |
[
{
"from": "system",
"value": "Fix the url of browser icons\n"
},
{
"from": "human",
"value": "import Ember from 'ember';\n\nexport default Ember.Controller.extend({\n identification: null,\n password: null,\n\n supportedBrowers: [\n { name: 'Chrome', url: 'http://www.google.com/chrome', ic... | javascript | chosen |
[
{
"from": "system",
"value": "Add caching to Elron provider (api)\n"
},
{
"from": "human",
"value": "const got = require('got');\n\nconst cache = require('../utils/cache.js');\nconst time = require('../utils/time.js');\n\n// Get trips for stop.\nasync function getTrips(id) {\n\t\n\tconst now = t... | javascript | chosen |
[
{
"from": "system",
"value": "SI-131: Refactor InlineInputs into functional component\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport classNames from 'classnames';\nimport Row from './../row';\n\nclass InlineInputs extends React.Component {\n static propTypes = {\n /**\... | javascript | chosen |
[
{
"from": "system",
"value": "Fix TypeError when server-side request fails\n\nIn addition to the intended SSRF vulnerability, it was possible to\ncrash the server with maliciously chosen query parameters.\n\nCloses #225\n"
},
{
"from": "human",
"value": "const ResearchDAO = require(\"../data/res... | javascript | chosen |
[
{
"from": "system",
"value": "Fix missing icons in arctic_admin\n\nFix missing icons in arctic_admin"
},
{
"from": "human",
"value": "// Load Active Admin's styles into Webpacker,\n// see `active_admin.scss` for customization.\nimport \"../stylesheets/active_admin\";\n\nimport \"@activeadmin/act... | javascript | chosen |
[
{
"from": "system",
"value": "Remove debug logging and rejection on invoke promise rejection\n"
},
{
"from": "human",
"value": "module.exports = function ( opt )\r\n{\r\n\topt = opt || {};\r\n\r\n\tvar vfs = require('vinyl-fs'),\r\n\t\tPromise = require('promise');\r\n\r\n\t// Hook function\r\n\... | javascript | chosen |
[
{
"from": "system",
"value": "Add heading structure to tracking script for clarity\n"
},
{
"from": "human",
"value": "$(document).ready(function() {\n // check if the Google Analytics function is available\n if (typeof ga == 'function') {\n function trackFollow() {\n ga('send', 'event'... | javascript | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.