conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Add missing qunit-dom initialization code\n"
},
{
"from": "human",
"value": "import Application from '../app';\nimport config from '../config/environment';\nimport { setApplication } from '@ember/test-helpers';\nimport { start } from 'ember-qunit';\n\nsetApplication... | javascript | chosen |
[
{
"from": "system",
"value": "Make nested docs not modified by default\n"
},
{
"from": "human",
"value": "defaultConstructor = function(attrs) {\n var doc = this;\n var Class = doc.constructor;\n attrs = attrs || {};\n\n // Create \"_values\" property when legacy browsers support is turned o... | javascript | chosen |
[
{
"from": "system",
"value": "Sort form schemas by version and return highest version\n"
},
{
"from": "human",
"value": "/**\n * mSupply Mobile\n * Sustainable Solutions (NZ) Ltd. 2021\n */\n\nimport { UIDatabase } from '../database/index';\n\nconst PATIENT_SURVEY_TYPE = 'PatientSurvey';\nconst ... | javascript | chosen |
[
{
"from": "system",
"value": "Change animation to have plane fly in from left\n"
},
{
"from": "human",
"value": " var down = function () {\n $(\"#plane\").animate({\n top: \"-=10\",\n }, 3000)\n };\n\n var up = function () {\n $(\"#plane\").animate({\n top: \"+=10\",\n }... | javascript | chosen |
[
{
"from": "system",
"value": "Fix test where order matters\n"
},
{
"from": "human",
"value": "//= require foundation/foundation\n//= require foundation/foundation.alerts\n//= require foundation/foundation.interchange\n//= require foundation/foundation.orbit\n//= require foundation/foundation.rev... | javascript | chosen |
[
{
"from": "system",
"value": "Change constructor documentation to use a capital S.\n"
},
{
"from": "human",
"value": "/**\n * Creates a new sprite.\n *\n * @constructor\n * @param {string} image The URL of the image to make a sprite from.\n */\nfunction Sprite(image, onload) {\n this.image = ... | javascript | chosen |
[
{
"from": "system",
"value": "Create click event to indicate when todo complete\n"
},
{
"from": "human",
"value": "$(document).ready(() => {\n $('#dialog').dialog({\n title: 'Add New Todo',\n autoOpen: false,\n modal: true,\n show: {\n effect: 'blind',\n duration: 1000\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Modify not to push state to history on posting message.\n"
},
{
"from": "human",
"value": "define([\n 'underscore', 'controllers/ApplicationController', 'models/Thread', 'models/Message', 'utils/Utils'\n], function(_, ApplicationController, Thread, Message, Utils) ... | javascript | chosen |
[
{
"from": "system",
"value": "Add test for tags component.\n"
},
{
"from": "human",
"value": "import { moduleForComponent, test } from 'ember-qunit';\nimport hbs from 'htmlbars-inline-precompile';\n\nmoduleForComponent('tags-widget', 'Integration | Component | tags widget', {\n integration: tru... | javascript | chosen |
[
{
"from": "system",
"value": "Increase to 25 agents for iOS performance test.\n"
},
{
"from": "human",
"value": "angular.module('MyModule')\n .controller('circlecontroller', function ($scope, $timeout, KineticService, UtilityService, AgentService) {\n 'use strict';\n\n var stage ... | javascript | chosen |
[
{
"from": "system",
"value": "Bring tests inline with CraigB style\n"
},
{
"from": "human",
"value": "import assert from 'assert';\nimport SpiesTeardown from './spies-teardown';\nimport ReactTester from '../../../src/index';\n\ndescribe('spies teardown', () => {\n let component;\n\n beforeEach... | javascript | chosen |
[
{
"from": "system",
"value": "Move most expensive type check to last\n"
},
{
"from": "human",
"value": "'use strict';\n\n// MODULES //\n\nvar debug = require( 'debug' )( 'time-series:set:x' );\nvar isTypedArray = require( '@stdlib/utils/is-typed-array' );\nvar isNumberArray = require( '@stdlib/u... | javascript | chosen |
[
{
"from": "system",
"value": "Change types to type as only one type\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar helpers = require('../helpers');\n\nmodule.exports = {\n 'name': 'no-qualifying-elements',\n 'defaults': {\n 'allow-element-with-attribute': false,\n 'allow-element... | javascript | chosen |
[
{
"from": "system",
"value": "Reset Ruby environment variables before launching.\n\nThis is to try to fix conflicts with systems that might have their own\nversion of Ruby already present, and we were therefore picking up their\ngem paths, etc.\n"
},
{
"from": "human",
"value": "'use strict';\n\... | javascript | chosen |
[
{
"from": "system",
"value": "Add comments and cleanup syntax\n"
},
{
"from": "human",
"value": "þ.extend('CHAINABLES', {\n\n addClass: function (values) {\n var i, þnodes = this;\n\n if (typeof values === \"string\") values = [values];\n\n return this.each(function (nod... | javascript | chosen |
[
{
"from": "system",
"value": "Change register response access_token to scalar_token\n"
},
{
"from": "human",
"value": "/*\nCopyright 2016 OpenMarket Ltd\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may... | javascript | chosen |
[
{
"from": "system",
"value": "Return promises. Fix missing return in else statement.\n"
},
{
"from": "human",
"value": "Application.Services.factory('ProcessList',\n [\"Restangular\", \"pubsub\", processListService]);\nfunction processListService(Restangular, pubsub) ... | javascript | chosen |
[
{
"from": "system",
"value": "Update test: Fix missing callbacks\n"
},
{
"from": "human",
"value": "var BlockDevice = require( 'blockdevice' )\nvar Disk = require( 'disk' )\nvar ExFAT = require( '..' )\nvar assert = require( 'assert' )\n\nvar log = console.log.bind( console )\nvar inspect = func... | javascript | chosen |
[
{
"from": "system",
"value": "Add cap for `.pcss` files in tests\n"
},
{
"from": "human",
"value": "import { jsdom } from 'jsdom';\n\n// NOTE: emulate browser environment with `jsdom`.\nglobal.document = jsdom('<body></body>');\nglobal.window = document.defaultView;\nglobal.navigator = window.na... | javascript | chosen |
[
{
"from": "system",
"value": "Check for \"offset is negative\" directly\n\nLong.compare does a lot more than what we need here: We just want to know whether\nthe offset is negative (-1 for undefined, or potentially one of the special values).\n"
},
{
"from": "human",
"value": "const Long = requi... | javascript | chosen |
[
{
"from": "system",
"value": "Add `yaml` extension to the stories glob\n"
},
{
"from": "human",
"value": "module.exports = {\n stories: ['../stories/**/*.stories.json'],\n logLevel: 'debug',\n addons: [\n '@storybook/addon-docs',\n '@storybook/addon-a11y',\n '@storybook/addon-actions... | javascript | chosen |
[
{
"from": "system",
"value": "Add class names to views when a require path is available\n"
},
{
"from": "human",
"value": ";(function(Agent){\n\n var patchViewChanges = _.debounce(function(view, prop, action, difference, oldValue) {\n Agent.lazyWorker.push({\n context: Agent,\n arg... | javascript | chosen |
[
{
"from": "system",
"value": "Add information about bugs to BrowserInfo.\n"
},
{
"from": "human",
"value": "/**\n * @constructor\n * @param {boolean} webfontSupport\n * @param {boolean} webKitFallbackBug\n */\nwebfont.BrowserInfo = function (webfontSupport, webKitFallbackBug, webKitMetricsBug) {... | javascript | chosen |
[
{
"from": "system",
"value": "Update to new dataseed URL\n"
},
{
"from": "human",
"value": "define(['module', 'jquery', 'underscore', 'lib/sync', 'dataseed/views/dataset'], function(module, $, _, sync, DatasetEmbedView) {\n 'use strict';\n\n // Override Backbone sync\n Backbone.sync = s... | javascript | chosen |
[
{
"from": "system",
"value": "Trim last added new line\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar path = require('path')\n , common = require('path2/common')\n , defaultReadFile = require('fs2/read-file')\n , cssAid = require('css-aid')\n\n , dirname... | javascript | chosen |
[
{
"from": "system",
"value": "Change structure of facets and defaultFacet within the useCase-groupChat draft\n"
},
{
"from": "human",
"value": "import won from \"../../app/service/won.js\";\n\nimport { complain } from \"./uc-complain.js\";\nimport { handleComplaint } from \"./uc-handle-complaint... | javascript | chosen |
[
{
"from": "system",
"value": "Improve sorting of storybook pages\n\n"
},
{
"from": "human",
"value": "import { addParameters, configure } from '@storybook/angular';\n\nfunction loadStories() {\n // Import design stories\n require('../src/design');\n\n // automatically import all files ending ... | javascript | chosen |
[
{
"from": "system",
"value": "Set jQuery to noConflict mode for better compatability\n"
},
{
"from": "human",
"value": "/* =============================================================\n * tabby.js v1.0\n * Simple, mobile-first toggle tabs.\n * Script by Chris Ferdinandi - http://gomakethings.co... | javascript | chosen |
[
{
"from": "system",
"value": "[BUGFIX] Set hard coded paths and increase the 'captureTimeout' for karma tests\n\nThis should resolve some unexplainable test fails with karma\n"
},
{
"from": "human",
"value": "/**\n * KarmaConfig\n * @description Configure the karma test runner.\n */\n\nvar confi... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"Disable in-progress experiments for beta.\"\n\nThis reverts commit 46b38f990afb4d6af0d45b5467f2f089b556eedf.\n"
},
{
"from": "human",
"value": "'use strict';\n\nlet experiments = {};\n\nObject.freeze(experiments);\n\nmodule.exports = experiments;\n"
},
... | javascript | chosen |
[
{
"from": "system",
"value": "Fix CI build, return value so test passes.\n"
},
{
"from": "human",
"value": "const path = require('path');\n\nfunction searchAssets(\n assets = [],\n extensions = []\n) {\n return Object.keys(assets).map(\n name => {\n var nameCleaned = name;\n if (... | javascript | chosen |
[
{
"from": "system",
"value": "Replace clearInterval with RequestAnimationFrame for performance\n"
},
{
"from": "human",
"value": "import Prop from 'props/prop';\nimport canvas from 'canvas';\n\nconst coords = {\n northEast: {\n x: 1,\n y: -1,\n },\n southEast: {\n x: 1,\n y: 1,\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Refactor and properly export debounce function\n"
},
{
"from": "human",
"value": "class Timing\n{\n /**\n * debounces functions invoked by events\n *\n * @param {function} func function to be invoked\n * @param {number} wait time to ... | javascript | chosen |
[
{
"from": "system",
"value": "Use the promise to asynchronous call the avatar generator\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar express = require('express');\nvar fs = require('fs');\nvar path = require('path');\n\nvar app = express();\n\nvar avatar = require('avatar-generator')(... | javascript | chosen |
[
{
"from": "system",
"value": "Add route for Slack authorization\n"
},
{
"from": "human",
"value": "'use strict';\r\n\r\nconst hapi = require('hapi');\r\nconst oauth = require('./lib/oauth.js');\r\n\r\nconst server = new hapi.Server();\r\nserver.connection({\r\n host: 'localhost',\r\n port:... | javascript | chosen |
[
{
"from": "system",
"value": "Add --help and --version arguments\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\n\n(function() {\n 'use strict';\n\n var die = function(msg) {\n console.error(msg);\n process.exit(1);\n };\n\n var ccs = require('closure-compiler-service');\n var... | javascript | chosen |
[
{
"from": "system",
"value": "Fix kebab-to-camel conversion for CLI arguments\n"
},
{
"from": "human",
"value": "#! /usr/bin/env node\n/* Copyright (c) 2018 Looker Data Sciences, Inc. See https://github.com/looker-open-source/look-at-me-sideways/blob/master/LICENSE.txt */\nconst minimist = requi... | javascript | chosen |
[
{
"from": "system",
"value": "Adjust CLI script to use .run() method\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\n'use strict';\n\nvar pkg = require('./package.json');\nvar iconmartGlyphiconsCrawler = require('./');\nvar argv = process.argv.slice(2);\n\nfunction help() {\n console.lo... | javascript | chosen |
[
{
"from": "system",
"value": "Add a doctype to the default HTML\n"
},
{
"from": "human",
"value": "\"use strict\";\n\nmodule.exports = {\n defaults: {\n html: \"<html>\\n <head>\\n <title>Page Title</title>\\n </head>\\n <body>\\n <!-- Put your page markup here -->\\n </body>\\n</h... | javascript | chosen |
[
{
"from": "system",
"value": "Fix caret position after first launch\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport PropTypes from 'prop-types';\n\nexport default class SearchBox extends React.PureComponent {\n static propTypes = {\n value: PropTypes.string.isRequired,\... | javascript | chosen |
[
{
"from": "system",
"value": "Add \"ditu.google.com\" for google maps"
},
{
"from": "human",
"value": "// These URL paths will be transformed to CN mirrors.\nvar mirrors = {\n \"//developers.google.com\" : \"//developers.google.cn\",\n \"//firebase.google.com\" : \"//fire... | javascript | chosen |
[
{
"from": "system",
"value": "Add task and poem container's width\n"
},
{
"from": "human",
"value": "import React from 'react'\nimport AltContainer from 'alt-container'\n\nimport Header from './components/Header'\nimport Date from './components/Date'\nimport PoemContainer from './containers/Poem... | javascript | chosen |
[
{
"from": "system",
"value": "Tidy up JS and fix scrolling bug\n\ngit-svn-id: 53f3c0fc50e56599d49cd3470d1ba0222ad3846f@8469 4a90e977-6436-4932-9605-20e10c2b6fb3\n"
},
{
"from": "human",
"value": "var textFrame = null;\r\n\r\n// using the proxy pattern http://docs.jquery.com/Types#Proxy%5FPatter... | javascript | chosen |
[
{
"from": "system",
"value": "Fix typo in app config for cartoUser\n"
},
{
"from": "human",
"value": "// CARTO account name\ncartoUser = 'chekpeds';\n\n// CARTO table names lookup\nexport const cartoTables = {\n nyc_borough: 'nyc_borough',\n nyc_city_council: 'nyc_city_council',\n nyc_communi... | javascript | chosen |
[
{
"from": "system",
"value": "Add necessary fields to createFeedback()\n"
},
{
"from": "human",
"value": "import {\n dbGetAllFeedback,\n dbGetFeedback,\n dbCreateFeedback,\n dbUpdateFeedback,\n dbDelFeedback,\n} from '../models/feedback';\n\nexport const getAllFeedback = (request, reply) =>... | javascript | chosen |
[
{
"from": "system",
"value": "Add test coverage for existing code\n"
},
{
"from": "human",
"value": "describe( 'NOrgCtrl', function() {\n describe( 'N-Org Editing Control', function() {\n var NOrgCtrl, $location, $scope;\n\n beforeEach( module( 'nOrg' ) );\n\n beforeEach( inject( funct... | javascript | chosen |
[
{
"from": "system",
"value": "Fix since_id when calling Tweets.more()\n"
},
{
"from": "human",
"value": "YUI.add(\"model-list-tweets\", function(Y) {\n \"use strict\";\n \n var tristis = Y.namespace(\"Tristis\"),\n models = Y.namespace(\"Tristis.Models\"),\n \n Twe... | javascript | chosen |
[
{
"from": "system",
"value": "Fix to help garbage-collector work more rapidly\n"
},
{
"from": "human",
"value": "import EventManager from '../helpers/event-manager';\n\nconst createObjectUrl = (src) => {\n const blob = new Blob([src], { type: 'text/javascript' });\n const url = URL.createObjec... | javascript | chosen |
[
{
"from": "system",
"value": "Allow overwriting ALL view with own view\n"
},
{
"from": "human",
"value": "import { Immutable } from 'nuclear-js';\nimport { getters as entityGetters } from '../entity';\n\nexport const currentView = [\n 'currentView',\n];\n\nexport const views = [\n entityGetter... | javascript | chosen |
[
{
"from": "system",
"value": "Fix example and add decimal points\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar randu = require( '@stdlib/math/base/random/randu' );\nvar quantile = require( './../lib' );\n\nvar mu;\nvar p;\nvar y;\nvar i;\n\nfor ( i = 0; i < 10; i++ ) {\n\tp = (randu() ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix deployer not finding resources\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst _ = require('lodash');\nconst Promise = require('bluebird');\nconst assert = require('hoek').assert;\n\nclass Deployer {\n constructor(namespace, kubectl) {\n this.names... | javascript | chosen |
[
{
"from": "system",
"value": "Update test: Add missing test callback\n"
},
{
"from": "human",
"value": "var BlockDevice = require( 'blockdevice' )\nvar Disk = require( 'disk' )\nvar ExFAT = require( '..' )\nvar assert = require( 'assert' )\n\nvar log = console.log.bind( console )\nvar inspect = ... | javascript | chosen |
[
{
"from": "system",
"value": "Add comments for test launcher\n"
},
{
"from": "human",
"value": "expect = require('chai').expect,\nredis = require('redis'),\nredisClient = redis.createClient(),\nRateLimiter = require('../ratelimiter'),\nlimits = require('./data');\n\nfitbit = new RateLimiter(\"fi... | javascript | chosen |
[
{
"from": "system",
"value": "Change the authentication process by using the users micro service\n"
},
{
"from": "human",
"value": "import { BasicStrategy } from 'passport-http';\nimport passport from 'passport';\nimport async from 'async';\nimport jwt from 'jsonwebtoken';\n\nimport { userModel ... | javascript | chosen |
[
{
"from": "system",
"value": "Change require to link from service\n"
},
{
"from": "human",
"value": "var assert = require('chai').assert;\nvar HashService = require('../');\nvar BCryptHash = require('../lib/BCryptHash');\n\ndescribe('HashService', function () {\n it('Should properly export', fu... | javascript | chosen |
[
{
"from": "system",
"value": "Implement the strict filter to use UserId to match the Limit permissions for push\n"
},
{
"from": "human",
"value": "(function (global) {\n 'use strict';\n\n var app = global.app = global.app || {};\n\n app.PushFactory = (function () {\n var create =... | javascript | chosen |
[
{
"from": "system",
"value": "Fix wrong require for main process"
},
{
"from": "human",
"value": "const AutoLaunch = require('auto-launch');\nconst {remote} = require('electron');\n\nfunction shouldQuitApp(cmd) {\n if (process.platform !== 'win32') {\n return false;\n }\n return ['--squirr... | javascript | chosen |
[
{
"from": "system",
"value": "Make mutation hoc accept mutations without arguments\n"
},
{
"from": "human",
"value": "/*\n\nHoC that provides a simple mutation that expects a single JSON object in return\n\nExample usage:\n\nexport default withMutation({\n name: 'getEmbedlyData',\n args: {url:... | javascript | chosen |
[
{
"from": "system",
"value": "Update Closure LANGUAGE_IN flag to match tsc's target.\n"
},
{
"from": "human",
"value": "/**\n * @license\n * Copyright (c) 2020 The Polymer Project Authors. All rights reserved. This\n * code may only be used under the BSD style license found at\n * http://polymer... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"Replace TRAVIS_BUILD_NUMBER with TRAVIS_BUILD_ID\"\n\nThis reverts commit 6e63853bd31eb8db95d33bf9fd7d5841f93085f1.\n"
},
{
"from": "human",
"value": "var fs = require('fs');\nvar specs = JSON.parse(fs.readFileSync('tests/end2end/specs.json'));\n\nvar brows... | javascript | chosen |
[
{
"from": "system",
"value": "Align with global log levels\n\n"
},
{
"from": "human",
"value": "const winston = require('winston');\nconst { Writable } = require('stream');\nconst globalLogger = require('../../logger');\n\nconst getSyncLogger = (logStream) => {\n\tconst logger = winston.createLo... | javascript | chosen |
[
{
"from": "system",
"value": "[assets] Fix the way asset types are retrieved\n\nGet relations to retrieve the related workflow.\n"
},
{
"from": "human",
"value": "import client from '@/store/api/client'\n\nexport default {\n getAssetTypes (callback) {\n client.get('/api/data/asset-types', ca... | javascript | chosen |
[
{
"from": "system",
"value": "Revert to puppeteer (keeping chromium install for dependencies)\n"
},
{
"from": "human",
"value": "// Karma configuration file, see link for more information\n// https://karma-runner.github.io/0.13/config/configuration-file.html\nprocess.env.CHROME_BIN = require('pu... | javascript | chosen |
[
{
"from": "system",
"value": "Test should verify internal dir not output dir\n"
},
{
"from": "human",
"value": "'use strict';\nvar grunt = require('grunt');\n\n/*\n ======== A Handy Little Nodeunit Reference ========\n https://github.com/caolan/nodeunit\n\n Test methods:\n test.expec... | javascript | chosen |
[
{
"from": "system",
"value": "Remove leading slash to prevent duplicate slashes"
},
{
"from": "human",
"value": "window.PusherClient = function(window) {\n\n var MISSING_PUSHER_ERROR_SEEN = false;\n var exports = {};\n\n exports.subscribeToPusherChanel = function(channelName, callbackFn, push... | javascript | chosen |
[
{
"from": "system",
"value": "Add a test to make sure HTTPS URLs aren't failing for Quick Copy\n"
},
{
"from": "human",
"value": "describe(\"Zotero.QuickCopy\", function() {\n\tvar quickCopyPref = Zotero.Prefs.get(\"export.quickCopy.setting\");\n\tquickCopyPref = JSON.stringify(Zotero.QuickCopy.... | javascript | chosen |
[
{
"from": "system",
"value": "Add `transition` to always convert list"
},
{
"from": "human",
"value": "/**\n * Consider:\n *\n * .a {\n * margin: 0 5px 0 0;\n * }\n *\n * .a {\n * margin: 0;\n * }\n *\n * Would be converted to:\n *\n * html[dir='ltr'] .a {\n * margi... | javascript | chosen |
[
{
"from": "system",
"value": "Set data-old attribute automatically via JavaScript.\n"
},
{
"from": "human",
"value": "jQuery(function($) {\n\t$(document).on('change', '.js-save-on-change', function() {\n var $field = $(this);\n var name = $field.attr('name');\n var value = $... | javascript | chosen |
[
{
"from": "system",
"value": "Replace lodash-es/wrap with arrow function\n"
},
{
"from": "human",
"value": "import { mapValues } from 'lodash-es';\nimport { isPlainObject } from 'lodash-es';\nimport { wrap } from 'lodash-es';\n\nconst FROM_HIGHCHARTS_PROVIDER = 'getHighcharts';\nconst FROM_CHART... | javascript | chosen |
[
{
"from": "system",
"value": "Add react rules to force function when we can otherwise use createClass\n"
},
{
"from": "human",
"value": "module.exports = {\n 'parser': 'babel-eslint',\n 'plugins': [\n 'react'\n ],\n 'extends': [\n 'plugin:react/recommended'\n ],\n 'rules': {\n 're... | javascript | chosen |
[
{
"from": "system",
"value": "Replace console log with Grunt's logging function.\n"
},
{
"from": "human",
"value": "var fs = require('fs');\nvar path = require('path');\nvar sass = require('node-sass');\n\nmodule.exports = function(grunt) {\n function writeFile(path, contents) {\n if(grunt.f... | javascript | chosen |
[
{
"from": "system",
"value": "Add conf to coverage source setting.\n"
},
{
"from": "human",
"value": "const gulp = require('gulp');\n\nconst spawn = require('child_process').spawn;\n\n\ngulp.task('test', (cb) => {\n const command = [ 'run', 'python', 'manage.py', 'test' ];\n const args = p... | javascript | chosen |
[
{
"from": "system",
"value": "Remove logging and parameter from dismiss function\n\n- The page routes have been updated to reflect the user model change for\n moving posts to all connections rather than for each connection; as\n such, /dismiss/all will remove all existing posts and the connection\n param... | javascript | chosen |
[
{
"from": "system",
"value": "[MISC] Move the 'use strict'; statement into the define wrapper\n"
},
{
"from": "human",
"value": "\"use strict\";\n\ndefine(function(require) {\n\tvar mainFn = function() { };\n\n\treturn mainFn;\n});\n"
},
{
"from": "gpt",
"value": "define(function(req... | javascript | chosen |
[
{
"from": "system",
"value": "Fix the counter concatenating when updating donation amount\nanimate counter when donated\n"
},
{
"from": "human",
"value": "Template.logo.helpers({\n logoUrl: function(){\n return Settings.get(\"logoUrl\");\n },\n \n // Add total counter\n totalDonation: fu... | javascript | chosen |
[
{
"from": "system",
"value": "Change to extend only widget as we save one layer to content\n"
},
{
"from": "human",
"value": "/* ***********************************************************************************************\n\n Unify Project\n\n Homepage: unify-project.org\n License: M... | javascript | chosen |
[
{
"from": "system",
"value": "Add css during search loading\n"
},
{
"from": "human",
"value": "$(function() {\n function doSearch() {\n var keywords = $('input[name=\"q\"]').val().toLowerCase();\n\n $.get(\"search.php\", {q: keywords}, function(data) {\n $('#count').text(data['count'... | javascript | chosen |
[
{
"from": "system",
"value": "Insert the Create New Project component design\n"
},
{
"from": "human",
"value": "import React, { PureComponent, PropTypes } from 'react';\n\nexport default class CreateNewProject extends PureComponent {\n static propTypes = {\n\n };\n\n render() {\n return (\... | javascript | chosen |
[
{
"from": "system",
"value": "Implement first notification structure for component\n"
},
{
"from": "human",
"value": "import React from 'react';\n\nclass Notification extends React.Component {\n\n render() {\n return ();\n }\n}\n\nexport { Notification };\n"
},
{
"from": "gp... | javascript | chosen |
[
{
"from": "system",
"value": "Add left padding of label text only for android\n"
},
{
"from": "human",
"value": "import React from 'react'\nimport { Text, View } from 'react-native'\nimport styled from 'styled-components/native'\nimport defaultTheme from './theme'\n\nconst LabelWrapper = styled.... | javascript | chosen |
[
{
"from": "system",
"value": "Remove vaccine from redux store persistance blacklist\n"
},
{
"from": "human",
"value": "/**\n * mSupply Mobile\n * Sustainable Solutions (NZ) Ltd. 2020\n */\nimport Bugsnag from '@bugsnag/react-native';\nimport AsyncStorage from '@react-native-community/async-stora... | javascript | chosen |
[
{
"from": "system",
"value": "Replace old naming with new\n"
},
{
"from": "human",
"value": "'use strict'\n\nconst Mtree = require( '1tree-factory' )\n\nconst createTree = require( './plugins/createTree' )\nconst insertBefore = require( './plugins/insertBefore' )\nconst dom = require( './plugins... | javascript | chosen |
[
{
"from": "system",
"value": "Update redux devtools global variable\n"
},
{
"from": "human",
"value": "import React from 'react'\nimport {createStore} from 'redux'\nimport {Provider} from 'react-redux'\nimport deref from 'json-schema-deref-local'\n\nimport Root from './components/Root'\nimport r... | javascript | chosen |
[
{
"from": "system",
"value": "Add explicit comments on animation support\n"
},
{
"from": "human",
"value": "/* ========================================================================\n * Bootstrap: transition.js v3.3.4\n * http://getbootstrap.com/javascript/#transitions\n * ====================... | javascript | chosen |
[
{
"from": "system",
"value": "Fix up quiet logging in command line result handling.\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\n\nvar vlocity = require('./vlocitycli.js');\n\nfunction oncomplete(result) {\n VlocityUtils.log(result);\n}\n\nfunction onerror(result) {\n VlocityUti... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"build: Load dev store\"\n\nThis reverts commit 3db1306220c65e7f8282a14508471841dd012b3b.\n"
},
{
"from": "human",
"value": "/*\n Use later in real production so it's easier to test with production\n*/\n// if (process.env.NODE_ENV === 'production') {\n// ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix \"split\" title when it's more than 2 words\n"
},
{
"from": "human",
"value": "var fs = require('fs');\nvar path = require('path');\nvar handlebars = require('handlebars');\n\nfunction compileTemplate(hbsFile) {\n var src = fs.readFileSync(path... | javascript | chosen |
[
{
"from": "system",
"value": "Include options and background files in packaging\n"
},
{
"from": "human",
"value": "#! /usr/bin/env node\n\nvar fs = require('fs');\nvar exec = require('child_process').exec;\nvar jsonfile = require('jsonfile');\n\nvar manifestFile = 'manifest.json';\n\nfs.readFile... | javascript | chosen |
[
{
"from": "system",
"value": "Make all URLs render index.html\n\nSo React can handle the routing.\n"
},
{
"from": "human",
"value": "const express = require('express')\nconst path = require('path')\n\nconst app = express()\n\napp.get('/', function(req, res) {\n res.sendFile(path.join(__dirname,... | javascript | chosen |
[
{
"from": "system",
"value": "Include user and pwd to mongo url\n"
},
{
"from": "human",
"value": "var MongoClient = require('mongodb').MongoClient;\nvar jsonfile = require('jsonfile');\nvar _ = require('lodash');\nvar local = require('./config/local');\n\nvar mongoUrl = function (config) {\n v... | javascript | chosen |
[
{
"from": "system",
"value": "Fix black space on login modal\n"
},
{
"from": "human",
"value": "/**\n * mSupply Mobile\n * Sustainable Solutions (NZ) Ltd. 2016\n */\n\nimport { BACKGROUND_COLOR, SUSSOL_ORANGE, WARMER_GREY } from './colors';\nimport { APP_FONT_FAMILY } from './fonts';\n\nexport c... | javascript | chosen |
[
{
"from": "system",
"value": "Test with more populated hastag\n"
},
{
"from": "human",
"value": "module.exports = {\n\tinstagram: {\n\t\tid : \"4a42a65059c24e4f8f7f57770345b9ad\",\n\t\tsecret : \"e10c09a2ee73453fb719be5875a4ef42\",\n\t\tcallbackUrl: \"http://cossette-halloween.herokuapp.com/... | javascript | chosen |
[
{
"from": "system",
"value": "Convert new path to old pattern to reuse current data in GA\n"
},
{
"from": "human",
"value": "// Analytics for Vaadin Components\n\n(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){\n (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Dat... | javascript | chosen |
[
{
"from": "system",
"value": "Remove hashing from ClassSerializer as buildDeps take care of this now\n"
},
{
"from": "human",
"value": "/*\n\tMIT License http://www.opensource.org/licenses/mit-license.php\n*/\n\n\"use strict\";\n\nconst createHash = require(\"./createHash\");\nconst { register }... | javascript | chosen |
[
{
"from": "system",
"value": "Implement image proxy for external photo urls\n"
},
{
"from": "human",
"value": "var Article = require('./lib/wikipedia');\nvar Quote = require('./lib/wikiquote');\nvar Photo = require('./lib/flickr');\n\nvar express = require('express');\nvar app = express();\n\nap... | javascript | chosen |
[
{
"from": "system",
"value": "Fix anonymous access for sentence writing\n"
},
{
"from": "human",
"value": "'use strict';\n\nmodule.exports =\n/*@ngInject*/\nfunction configure ($stateProvider) {\n $stateProvider\n .state('play-sw', {\n parent: 'app',\n templateUrl: 'sentences.play.html',... | javascript | chosen |
[
{
"from": "system",
"value": "test: Use new version of JSDOM\n"
},
{
"from": "human",
"value": "const Jasmine = require('jasmine');\nconst { jsdom } = require('jsdom');\nconst { SpecReporter } = require('jasmine-spec-reporter');\n\nconst jasmine = new Jasmine();\n\nglobal.window = jsdom('<!docty... | javascript | chosen |
[
{
"from": "system",
"value": "[Fix] Check if database connexion is defined\n"
},
{
"from": "human",
"value": "'use strict';\n/*global app,Sequelize,appdir */\n\nglobal.Sequelize = require('sequelize');\nvar console = app.logger(app.config('core.log.prefix') + ':db');\nvar each = require('lodash/... | javascript | chosen |
[
{
"from": "system",
"value": "Change error code and fix some mistake\n"
},
{
"from": "human",
"value": "var request = require('request');\nvar promise = require('promised-io/promise');\n\nvar message = function(req,res) {\n\n var receiver = req.body.receiver;\n var message = req.body.message;\... | javascript | chosen |
[
{
"from": "system",
"value": "Fix issue with displaying the text tags, caused by a change on the Raphael API.\n"
},
{
"from": "human",
"value": "/* -*- mode: espresso; espresso-indent-level: 2; indent-tabs-mode: nil -*- */\n/* vim: set softtabstop=2 shiftwidth=2 tabstop=2 expandtab: */\n\n/*\n *... | javascript | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.