conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Change async form input type\n" }, { "from": "human", "value": "import debug from 'debug';\n\nconst log = debug('app:enhance');\n\n// ServiceWorker is a progressive technology. Ignore unsupported browsers\nif ('serviceWorker' in navigator) {\n navigator.serviceWork...
javascript
chosen
[ { "from": "system", "value": "Apply runserver option will return socketcluster server\n" }, { "from": "human", "value": "const fs = require('fs');\nconst path = require('path');\nconst filePath = path.join(__dirname, '../dist/devpanel.tmpl.html');\nconst distPath = path.join(__dirname, '../dist/...
javascript
chosen
[ { "from": "system", "value": "Fix support for specifying module-dir\n" }, { "from": "human", "value": "#!/usr/bin/env node\n\nvar program = require('commander'),\n\tcjs = require(__dirname + '/../lib/');\n\nprogram\n\t.version(require(__dirname + '/../package.json').version)\n\t.option('-i, --in...
javascript
chosen
[ { "from": "system", "value": "Add todo in generator tests\n" }, { "from": "human", "value": "var path = require('path'),\n assert = require('yeoman-generator').assert,\n helpers = require('yeoman-generator').test,\n os = require('os');\n\ndescribe('sails-rest-api:app', function () {\n ...
javascript
chosen
[ { "from": "system", "value": "Include arch in dependency cache key\n" }, { "from": "human", "value": "const crypto = require('crypto')\nconst fs = require('fs')\nconst path = require('path')\n\nconst CONFIG = require('../config')\nconst FINGERPRINT_PATH = path.join(CONFIG.repositoryRootPath, 'no...
javascript
chosen
[ { "from": "system", "value": "Change to empty port in hapi-auth-hawk\n" }, { "from": "human", "value": "/**\n * Created by Omnius on 6/15/16.\n */\n'use strict';\n\nconst Boom = require('boom');\n\nexports.register = (server, options, next) => {\n\n server.auth.strategy('hawk-login-auth-strat...
javascript
chosen
[ { "from": "system", "value": "Add support for getting venues from scripts\n" }, { "from": "human", "value": "var Event = require('../models/Event.js');\n\nexports.sync = function(events) {\n events.map(function(evt) {\n var query = {\n 'title': evt.title,\n 'start...
javascript
chosen
[ { "from": "system", "value": "Stop opening devtools on launch\n" }, { "from": "human", "value": "const electron = require('electron')\nconst app = electron.app // Module to control application life.\nconst BrowserWindow = electron.BrowserWindow // Module to create native browser window.\n\nlet m...
javascript
chosen
[ { "from": "system", "value": "Handle errors trying to add email for subscriber action.\n\n- Add callback for sadd to check for error.\n- Return a 500 error to client.\n- Log to stderr when there is an issue.\n" }, { "from": "human", "value": "var Joi = require(\"joi\");\nvar DB = require(\"../db...
javascript
chosen
[ { "from": "system", "value": "Fix scroll transition for navbar\n" }, { "from": "human", "value": "if(!(/Android|iPhone|iPad|iPod|BlackBerry|Windows Phone/i).test(navigator.userAgent || navigator.vendor || window.opera)){\n skrollr.init({\n forceHeight: false,\n smoothScrolling: ...
javascript
chosen
[ { "from": "system", "value": "Use more modern JS; Add pagination to SE API calls\n" }, { "from": "human", "value": "const accounts = {};\n\n$('#go').click(function () {\n const networkId = $('#networkId').val();\n const accessToken = $('#accessToken').val();\n const filter = '!0S2A5ipm(pczxWJ...
javascript
chosen
[ { "from": "system", "value": "Correct code to match db scheme\n" }, { "from": "human", "value": "var express = require('express');\nvar mysql = require('mysql');\n\nvar app = express();\napp.use(express.static('public'));\n\nvar connection = mysql.createConnection({\n host : process.env.MYS...
javascript
chosen
[ { "from": "system", "value": "Disable filtering and sorting if not providing path\n" }, { "from": "human", "value": "import { startCase } from \"lodash\";\n\nexport default schema => {\n let schemaToUse = schema;\n if (!schemaToUse.fields && Array.isArray(schema)) {\n schemaToUse = {\n ...
javascript
chosen
[ { "from": "system", "value": "Create missing tables when lifting sails\n" }, { "from": "human", "value": "/**\n * Default model configuration\n * (sails.config.models)\n *\n * Unless you override them, the following properties will be included\n * in each of your models.\n *\n * For more info on...
javascript
chosen
[ { "from": "system", "value": "Update to new webapp and skin rendering (I like it better than before!)\n\n\ngit-svn-id: fac99be8204c57f0935f741ea919b5bf0077cdf6@9248 688a9155-6ab5-4160-a077-9df41f55a9e9\n" }, { "from": "human", "value": "var handleRequest = loadModule('helma.simpleweb').handleReq...
javascript
chosen
[ { "from": "system", "value": "Add simple test for token on landig with redirect on app\n" }, { "from": "human", "value": "(() => {\n\n 'use strict';\n\n angular\n .module('app')\n .controller('LoginController', LoginController);\n\n LoginController.$inject = ['growl', '$wi...
javascript
chosen
[ { "from": "system", "value": "Use service base get method\n" }, { "from": "human", "value": "define([\n 'service/serviceBase'\n], function(ServiceBase) {\n 'use strict';\n\n // Override in configuration.properties with `web.ui` prefix\n var DEFAULTS = {\n 'vertex.loadRelatedMa...
javascript
chosen
[ { "from": "system", "value": "Add bundle and compile commands to binary\n" }, { "from": "human", "value": "#!/usr/bin/env node\n\n// Requires\nvar _ = require('underscore');\n\nvar fs = require('fs');\n\n// Comannder\nvar prog = require('commander');\n\n// etcd-dump's package.json file\nvar pkg ...
javascript
chosen
[ { "from": "system", "value": "Test the package with explicitly removed Array.isArray\n\ntry at making #3 mergeable" }, { "from": "human", "value": "var isArray = require('./');\nvar test = require('tape');\n\ntest('is array', function(t){\n t.ok(isArray([]));\n t.notOk(isArray({}));\n t.notOk...
javascript
chosen
[ { "from": "system", "value": "Add aria-hidden to zoom detection div" }, { "from": "human", "value": "'use strict';\n(function($, window, document, undefined) {\n $.onFontResize = {\n delay: 250,\n timer: null,\n on: true,\n box: null,\n boxHeight: 0,\n ...
javascript
chosen
[ { "from": "system", "value": "Handle 404 on local server\n" }, { "from": "human", "value": "const rewrite = require('connect-modrewrite');\nconst serveIndex = require('serve-index');\nconst serveStatic = require('serve-static');\n\nmodule.exports = function (grunt) {\n return {\n ...
javascript
chosen
[ { "from": "system", "value": "Update whoshiring email address to .com" }, { "from": "human", "value": "module.exports = {\n whoshiring: {\n title: \"Who's Hiring?\",\n subtitle: \"These companies are looking for JavaScript and Node.js developers\",\n addCompany: \"To add your company t...
javascript
chosen
[ { "from": "system", "value": "Fix number going outside of level issue\n" }, { "from": "human", "value": "function LevelController(onComplete, level) {\n this.onComplete = onComplete;\n this.level = level;\n};\n\nLevelController.prototype.left = function() {\n if( this.index === 0 ) {\n ret...
javascript
chosen
[ { "from": "system", "value": "Copy assets into dist build so they can be used for source maps.\n" }, { "from": "human", "value": "module.exports = {\n assets: {\n files: [\n {expand: true, src: [\"images/**\"], dest: \"dist/\"},\n {expand: true, src: [\"bower_components/**\"], dest...
javascript
chosen
[ { "from": "system", "value": "Modify initial state for commitStatuses to be 'null'\n" }, { "from": "human", "value": "export default {\n oauths: {\n oauthReturnedTempCode: \"\",\n oauthReturnedToken: \"\",\n authenticatedUser: {}\n },\n commitStatuses: [],\n repos: null\n};\n" }, ...
javascript
chosen
[ { "from": "system", "value": "Fix hotel start on Windows\n" }, { "from": "human", "value": "let fs = require('fs')\nlet mkdirp = require('mkdirp')\nlet untildify = require('untildify')\nlet spawn = require('./spawn')\n\nlet dir = untildify('~\\\\AppData\\\\Roaming\\\\Microsoft\\\\Windows\\\\Star...
javascript
chosen
[ { "from": "system", "value": "Switch JS to use mobile class for hiding\n" }, { "from": "human", "value": "(function (root, $) {\n var $button = $('button.nav'),\n $nav = $('.side ul');\n\n $('.js').show();\n $('.no-js').hide();\n\n $button.on('click', function () {\n $n...
javascript
chosen
[ { "from": "system", "value": "Remove Linux/android@5.1 from automated tests" }, { "from": "human", "value": "var args = require('yargs').argv;\n\nmodule.exports = {\n extraScripts: args.dom === 'shadow' ? ['test/enable-shadow-dom.js'] : [],\n registerHooks: function(context) {\n // The Good...
javascript
chosen
[ { "from": "system", "value": "Add form submit event that replaces current page's uri\n" }, { "from": "human", "value": "var SearchBox = React.createClass({\n getInitialState: function() {\n return {\n user: this.props.user\n };\n },\n\n render: function() {\n ...
javascript
chosen
[ { "from": "system", "value": "grunt: Update glob for files to lint with ESLint\n\nNow linting .js files in benchmark/\n" }, { "from": "human", "value": "/* eslint-disable camelcase, global-require */\n\n'use strict';\n\nmodule.exports = function(grunt) {\n require('jit-grunt')(grunt);\n\n grun...
javascript
chosen
[ { "from": "system", "value": ":fire: Remove static folder from configs\n" }, { "from": "human", "value": "// see http://vuejs-templates.github.io/webpack for documentation.\nvar path = require('path')\n\nmodule.exports = {\n build: {\n env: require('./prod.env'),\n index: path.resolve(__d...
javascript
chosen
[ { "from": "system", "value": "Add standards and standard levels to concepts create\n" }, { "from": "human", "value": "'use strict';\n\nmodule.exports =\n\n /*\n * This directive expects concept and processConceptForm\n * to be set in scope.\n */\n\n/*@ngInject*/\nfunction ConceptsFormCtrl...
javascript
chosen
[ { "from": "system", "value": "Add testing code for the local player evaluation method\n" }, { "from": "human", "value": ";(function(windowReference, documentReference) {\n 'use strict';\n\n //\n})(window, document);\n" }, { "from": "gpt", "value": ";(function(windowReference, d...
javascript
chosen
[ { "from": "system", "value": "Add comment to special pendingcomments bit after its sent\n" }, { "from": "human", "value": "// HubBub client code\n// From: https://github.com/almost/hubbub/\n\n(function () {\n // Just a very rough demo, needs a lot more work\n\n var form = document.querySelecto...
javascript
chosen
[ { "from": "system", "value": "Update eslint globals to include mocha functions\n" }, { "from": "human", "value": "module.exports = {\n \"env\": {\n \"browser\": true,\n \"es6\": true,\n \"node\": true\n },\n \"extends\": \"eslint:recommended\",\n \"parserOptions\": {\n \"ecmaVers...
javascript
chosen
[ { "from": "system", "value": "Update ingress to use new async render\n" }, { "from": "human", "value": "import BaseWorker from '../base'\nimport utils from 'async'\nimport uuid from 'uuid'\nimport redis from 'redis'\n\nexport class IngressWorker extends BaseWorker {\n constructor (rsmq) {\n ...
javascript
chosen
[ { "from": "system", "value": "Fix lint errors in Object.get\n" }, { "from": "human", "value": "import * as changeCase from 'change-case'\nimport pluralize from 'pluralize'\n\nexport default {\n\t...changeCase,\n\tpluralize,\n\tresourceize: function(string) {\n\t\treturn pluralize(changeCase.came...
javascript
chosen
[ { "from": "system", "value": "Allow turning off coverage reporting for performance tests\n" }, { "from": "human", "value": "/*eslint-env node */\n/*eslint no-var: 0 */\n\nmodule.exports = function(config) {\n\tconfig.set({\n\t\tframeworks: ['mocha', 'chai-sinon'],\n\n\t\treporters: ['mocha', 'co...
javascript
chosen
[ { "from": "system", "value": "Fix ui-router dependencies resolving in production.\n" }, { "from": "human", "value": "'use strict';\n\nangular.module('mementoMovieApp')\n .config(function ($stateProvider) {\n $stateProvider\n .state('movies', {\n url: '/?year&director&actor',\n ...
javascript
chosen
[ { "from": "system", "value": "Fix error after plugins initialization in background window\n" }, { "from": "human", "value": "import plugins from '../main/plugins/'\nimport { send } from 'lib/rpc/events'\n\nexport default () => {\n // Run plugin initializers only when main window is loaded\n Ob...
javascript
chosen
[ { "from": "system", "value": "Fix isFastint() polyfill to use revised info()\n" }, { "from": "human", "value": "/*\n * Helper to check if a number is internally represented as a fastint:\n *\n * if (Duktape.isFastint(x)) {\n * print('fastint');\n * } else {\n * print('not a ...
javascript
chosen
[ { "from": "system", "value": "Add routes to store router\n" }, { "from": "human", "value": "import React from 'react';\nimport { ThemeProvider } from 'styled-components';\nimport { Switch, Route } from 'react-router-dom';\nimport defaultTheme from 'app/themes/store/default';\n\nimport HomeRoute ...
javascript
chosen
[ { "from": "system", "value": "Fix eslint error no proptypes for children\n" }, { "from": "human", "value": "import React from 'react';\nimport sharedStyles from 'components/shared/styles.scss';\n\nexport default ({ children }) => (\n <div className={sharedStyles.fullSize}>\n { children }\n ...
javascript
chosen
[ { "from": "system", "value": "Use heroku api by default\n" }, { "from": "human", "value": "import React from 'react';\nimport { StyleSheet, Text, View, TextInput, Button } from 'react-native';\nimport Login from './components/Login/Login.js';\n\n// TODO Use prod server in prod mode \n// const se...
javascript
chosen
[ { "from": "system", "value": "CSRA-496: Use a for loop instead of recursion\n" }, { "from": "human", "value": "import uuid from 'uuid';\nimport flatten from 'ramda/src/flatten';\nimport times from 'ramda/src/times';\n\nimport createDBConnectionPool from '../server/db';\n\nconst db = createDBConn...
javascript
chosen
[ { "from": "system", "value": "Add a todo comment in ws onerror\n" }, { "from": "human", "value": "var StrongSocket = require('./StrongSocket');\nvar session = require('./session');\nvar i18n = require('./i18n');\n\nvar socketInstance;\n\nfunction createGameSocket(url, version, receiveHandler) {\...
javascript
chosen
[ { "from": "system", "value": "Switch to getCanvas to load canvases lazily.\n" }, { "from": "human", "value": "module.exports = {\n canvas: window.document.getElementById('gesso-target')\n};\n" }, { "from": "gpt", "value": "function getCanvas() {\n // TODO: Read the project settings...
javascript
chosen
[ { "from": "system", "value": "Make note of the need to change the plugin's port when changing the server's\n" }, { "from": "human", "value": "#! /usr/bin/env node\n\nconst path = require('path');\nconst fs = require('fs');\n\nconst program = require('commander');\n\nconst pkg = require('../packa...
javascript
chosen
[ { "from": "system", "value": "NEW: Add comments to explain important LOC.\n" }, { "from": "human", "value": " var solr = require('./../lib/solr');\n \n\nvar client = solr.createClient();\n\nvar callback = function(err,res){\n if(err) console.log('Error:' + err);\n if(res) console.log('res:' ...
javascript
chosen
[ { "from": "system", "value": "Fix password being spelled wrong for the API call in lecturerFactory\n" }, { "from": "human", "value": "(function() {\n 'use strict';\n\n angular\n .module('lecturer')\n .factory('lecturerFactory', lecturerFactory);\n\n /* @ngInject */\n fu...
javascript
chosen
[ { "from": "system", "value": "Add a breaking test for lateralusEvent map inheritance.\n" }, { "from": "human", "value": "/* global describe, it */\ndefine([\n\n 'chai'\n ,'underscore'\n ,'backbone'\n ,'lateralus'\n ,'../utils'\n\n], function (\n\n chai\n ,_\n ,Backbone\n ,Lateralus\n ,...
javascript
chosen
[ { "from": "system", "value": "Add util.keys as Object.keys shim\n" }, { "from": "human", "value": "if (typeof buster == \"undefined\") {\n var buster = {};\n}\n\nbuster.util = (function () {\n var toString = Object.prototype.toString;\n var div = typeof document != \"undefined\" && docu...
javascript
chosen
[ { "from": "system", "value": "Stop clobbering view methods when they call the base constructor\n" }, { "from": "human", "value": "/*\n * Base View. Defines the basic methods every view is expected to have so\n * we can attach hooks to them.\n */\n\nvar hooks = require('hooks');\n\nfunction ViewB...
javascript
chosen
[ { "from": "system", "value": "Fix: Increase height of 'About' window\n" }, { "from": "human", "value": "const about = module.exports = {\n init,\n win: null\n}\n\nconst config = require('../../config')\nconst electron = require('electron')\n\nfunction init () {\n if (about.win) {\n return ...
javascript
chosen
[ { "from": "system", "value": "Make recent date even more recent\n" }, { "from": "human", "value": "'use strict';\n\n// To make id smaller we get microgseconds count from more recent date\nvar start = Date.UTC(2011, 8, 21) * 1000\n\n// Prefix with number, it reduces chances of collision with vari...
javascript
chosen
[ { "from": "system", "value": "Add logging on Mongoose 'disconnected' event" }, { "from": "human", "value": "var mongoose = require('mongoose');\nvar log = require('lib/logger')(module);\nvar config = require('../config');\n\n// Установим соединение с базой\nlog.info('Connecting to MongoDB uri: '...
javascript
chosen
[ { "from": "system", "value": "Fix foamlink ModelFileFetcher path resolution\n" }, { "from": "human", "value": "/**\n * @license\n * Copyright 2019 The FOAM Authors. All Rights Reserved.\n * http://www.apache.org/licenses/LICENSE-2.0\n */\n\nfoam.CLASS({\n package: 'foam.foamlink',\n name: 'Foa...
javascript
chosen
[ { "from": "system", "value": "Fix wrong indentation on Model Blueprint for Classic apps\n" }, { "from": "human", "value": "import DS from 'ember-data';\nconst { <%= importedModules %> } = DS;\n\nexport default Model.extend({\n<%= attrs.length ? ' ' + attrs : '' %>\n});\n" }, { "from": "...
javascript
chosen
[ { "from": "system", "value": "Insert to collection - sample comment object\n" }, { "from": "human", "value": "import { Meteor } from 'meteor/meteor';\n\nMeteor.startup(() => {\n // code to run on server at startup\n\n // Creating comment schema\n CommentSchema = new SimpleSchema({\n ...
javascript
chosen
[ { "from": "system", "value": "Fix syntax error change % to $\n" }, { "from": "human", "value": "$(document).ready(function() {\n %('#led_on').click(function() {\n console.log('LED on!');\n });\n %('#led_off').click(function() {\n console.log('LED off!');\n });\n});\n" ...
javascript
chosen
[ { "from": "system", "value": "Add REST call for files.\n" }, { "from": "human", "value": "module.exports = function(model) {\n 'use strict';\n\n let validateProjectAccess = require('./project-access')(model.access);\n let schema = require('.././schema')(model);\n let router = require...
javascript
chosen
[ { "from": "system", "value": "Change search result count text\n" }, { "from": "human", "value": "$(\"#search-field\").ghostHunter({\n results : \"#search-results\",\n onKeyUp : true,\n info_template : \"<p>Found {{amount}} posts</p>\",\n result_template : \"<a href='{{link}}'><p><h...
javascript
chosen
[ { "from": "system", "value": "Move lazy-openclose component to GGRC.Component\n" }, { "from": "human", "value": "/*!\n Copyright (C) 2016 Google Inc., authors, and contributors <see AUTHORS file>\n Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file>\n Created By: ivan...
javascript
chosen
[ { "from": "system", "value": "Check updates button trial II\n" }, { "from": "human", "value": "function confirmReboot () {\n\tif (confirm('Are you sure you want to reboot the system?')) {\n\t\twindow.location.href = 'shellscripts/reboot.php?system=y';\n\t}\n\telse {\n\t\t// Do nothing\n\t}\n}\n\...
javascript
chosen
[ { "from": "system", "value": "Use min height of 1px.\n" }, { "from": "human", "value": "module.exports = {\n HOST: process.env.HOST || null,\n PORT: process.env.PORT || 5000,\n DEFAULT_SHOT_WIDTH: process.env.DEFAULT_SHOT_WIDTH || 768,\n DEFAULT_SHOT_MIN_HEIGHT: process.env.DEFAULT_SHOT_MIN_...
javascript
chosen
[ { "from": "system", "value": "Move drawing manager call to be in front of the background\n" }, { "from": "human", "value": "var p5 = require('p5');\n\nvar sketch = function (p) {\n\n var Receiver = require('./Receiver.js');\n var receiver = new Receiver();\n\n var Processor = require('./Proce...
javascript
chosen
[ { "from": "system", "value": "Add missing callback to WebSocket 'send' wrapper\n\nFix #301.\n" }, { "from": "human", "value": "const EventEmitter = require('events');\n\n// wrapper around the Node.js ws module\n// for use in browsers\nclass WebSocketWrapper extends EventEmitter {\n constructo...
javascript
chosen
[ { "from": "system", "value": "Change github like to point to osmlab org" }, { "from": "human", "value": "L.Control.Attribution.prototype.options.prefix = '';\nvar map = L.map('map', {minZoom: 14}).setView([38.9, -76.99], 13);\nvar attr = '&copy; <a href=\"http://osm.org/copyright\">OpenStreetMap...
javascript
chosen
[ { "from": "system", "value": "Add StatementDescriptor for card payins" }, { "from": "human", "value": "var _ = require('underscore');\nvar PayInPaymentDetails = require('./PayInPaymentDetails');\n\nvar PayInPaymentDetailsCard = PayInPaymentDetails.extend({\n defaults: {\n /**\n ...
javascript
chosen
[ { "from": "system", "value": "Fix for STORE-1330: Add hover method to impiles that bookmark is removable\n" }, { "from": "human", "value": "$(function () {\n $('#btn-add-gadget').click(function () {\n var elem = $(this);\n asset.process(elem.data('type'), elem.data('aid'), locat...
javascript
chosen
[ { "from": "system", "value": "Add ball speed and change move function\n" }, { "from": "human", "value": "var canvas = document.getElementById('game');\nvar context = canvas.getContext('2d');\n\nvar Ball = function(x, y, radius, context) {\n this.x = x;\n this.y = y;\n this.radius = radius || ...
javascript
chosen
[ { "from": "system", "value": "Remove controller extends on template file\n" }, { "from": "human", "value": "'use strict'\n\nconst Controller = require('trails-controller')\n\n/**\n * @module <%= name %>Controller\n * @description Generated Trails.js Controller.\n */\nmodule.exports = class <%= n...
javascript
chosen
[ { "from": "system", "value": "Add proptype validation to DropDownFilter component\n" }, { "from": "human", "value": "import React from 'react';\nimport { map } from 'lodash';\n\nclass DropdownFilter extends React.Component {\n constructor() {\n super();\n\n this.change = this.change.bind(...
javascript
chosen
[ { "from": "system", "value": "Remove response body from error message.\nHide HTTP error resolver.\n" }, { "from": "human", "value": "\"use strict\";\n\nfunction resolveHttpError(response, message) {\n if (response.statusCode < 400) {\n return;\n }\n\n message = message\n ?...
javascript
chosen
[ { "from": "system", "value": "Check config and show what required options not exists\n" }, { "from": "human", "value": "/*\n * grunt-browser-extension\n * https://github.com/addmitriev/grunt-browser-extension\n *\n * Copyright (c) 2015 Aleksey Dmitriev\n * Licensed under the MIT license.\n */\n'...
javascript
chosen
[ { "from": "system", "value": "Simplify behavior for comment reload\n" }, { "from": "human", "value": "import Ember from 'ember';\n\nexport default Ember.Route.extend({\n session: Ember.inject.service(),\n\n model(params) {\n let projectId = this.modelFor('project').id;\n let queryParams ...
javascript
chosen
[ { "from": "system", "value": "Add full path for CDN\n" }, { "from": "human", "value": "/* global require, module */\n\nvar EmberApp = require('ember-cli/lib/broccoli/ember-app');\n\nvar app = new EmberApp({\n dotEnv: {\n clientAllowedKeys: ['CDN_HOST']\n },\n fingerprint: {\n prepend: '...
javascript
chosen
[ { "from": "system", "value": "Change default window width 600px to 850px\n" }, { "from": "human", "value": "'use strict';\n\n(() => {\n const electron = require('electron');\n const app = electron.app;\n const BrowserWindow = electron.BrowserWindow;\n let win = null;\n\n app.on('window-all-...
javascript
chosen
[ { "from": "system", "value": "Fix documentFormatter comment about jsPDF\n" }, { "from": "human", "value": "import documentFormatter from 'src/logic/documentPackager/documentFormatter';\nimport base64OfSimplePdf from './reference/base64OfSimplePdf';\n\ndescribe('DocumentFormatter', () => {\n it(...
javascript
chosen
[ { "from": "system", "value": "Fix bug with animation on index page\n" }, { "from": "human", "value": "/**\n * cbpAnimatedHeader.js v1.0.0\n * http://www.codrops.com\n *\n * Licensed under the MIT license.\n * http://www.opensource.org/licenses/mit-license.php\n * \n * Copyright 2013, Codrops\n *...
javascript
chosen
[ { "from": "system", "value": "Remove component installation dir when getting new\n" }, { "from": "human", "value": "var\n fs = require('fs'),\n mkdirp = require('mkdirp'),\n Builder = require('component-builder'),\n config = require('../config'),\n installDir = config.com...
javascript
chosen
[ { "from": "system", "value": "Use path.isAbsolute for Windows compatibility\n\nReplaced `pathToFile.startsWith('/')` with `path.isAbsolute`\r\n\r\nCloses #397" }, { "from": "human", "value": "import fs from 'fs';\nimport path from 'path';\n\nfunction findRecursive(directory) {\n if (directory =...
javascript
chosen
[ { "from": "system", "value": "Remove unnecessary uniqueness of userId scoped to roleId for membership model\n" }, { "from": "human", "value": "\"use strict\";\n\nconst timestampMixin = require('loopback-ds-timestamp-mixin/time-stamp');\nconst shortid = require('shortid');\n\nmodule.exports = fun...
javascript
chosen
[ { "from": "system", "value": "Add name and git url\n" }, { "from": "human", "value": "Package.describe({\n summary: \"Google's Material Design based Bootstrap 3 theme.\",\n version: \"0.1.0\",\n // git: \"https://github.com/FezVrasta/bootstrap-material-design.git\"\n});\n\nPackage.onUse(funct...
javascript
chosen
[ { "from": "system", "value": "Fix link to Git repository\n" }, { "from": "human", "value": "Package.describe({\n name: 'klaussner:svelte',\n version: '0.0.1',\n summary: 'Use the magical disappearing UI framework in Meteor',\n git: 'https://github.com/klaussner/svelte'\n});\n\nPackage.regist...
javascript
chosen
[ { "from": "system", "value": "Use debug log for logging." }, { "from": "human", "value": "const fs = require('fs');\nconst path = require('path');\nconst crypto = require('crypto');\nconst {\n checkAndMakeDir,\n getTempFilename\n} = require('./utilities');\n\nmodule.exports = function(options,...
javascript
chosen
[ { "from": "system", "value": "Update with reference to global nav partial\n" }, { "from": "human", "value": "var _ = require('lodash')\nvar fs = require('fs')\nvar gzip = require('gzip-size')\nvar filesize = require('filesize')\nvar cssstats = require('cssstats')\n\nvar module = require('tachyon...
javascript
chosen
[ { "from": "system", "value": "Remove unnecessary aliases for Ember utils\n" }, { "from": "human", "value": "import Em from 'ember';\nimport { ArrayController } from 'ember-legacy-controllers';\nconst get = Em.get;\nconst copy = Em.copy;\n\nconst ArrayPauser = ArrayController.extend({\n\tisPaused...
javascript
chosen
[ { "from": "system", "value": "Add copy to word count that it includes new lines\n" }, { "from": "human", "value": "/* global jQuery */\njQuery(function ($){\n 'use strict';\n\n var $limitedTextAreas = $('textarea[data-limit]');\n if( $limitedTextAreas.length > 0 ){\n $limitedTextAreas.each...
javascript
chosen
[ { "from": "system", "value": "Use dataType: json for sortable tables\n" }, { "from": "human", "value": "//= require solidus_admin/Sortable\n\nSpree.ready(function() {\n var sortable_tables = document.querySelectorAll('table.sortable');\n\n _.each(sortable_tables, function(table) {\n var url...
javascript
chosen
[ { "from": "system", "value": "Load jquery before twitter bootstrap.\n" }, { "from": "human", "value": "//= require jquery\n//= require jquery_ujs\n//= require twitter/bootstrap\n//= require jquery-ui-bootstrap\n//= require jquery.tokeninput\n//= require_tree ." }, { "from": "gpt", "v...
javascript
chosen
[ { "from": "system", "value": "Update contributor discord name (last time)" }, { "from": "human", "value": "import SPECS from 'common/SPECS';\n\nimport CombatLogParser from './CombatLogParser';\nimport TALENT_DESCRIPTIONS from './TALENT_DESCRIPTIONS';\n\nexport default {\n spec: SPECS.VENGEANCE_...
javascript
chosen
[ { "from": "system", "value": "Test: Add manual document launch test\n" }, { "from": "human", "value": "/**\n PSPDFKit\n\n Copyright (c) 2015-2016 PSPDFKit GmbH. All rights reserved.\n\n THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW\n AND MAY NOT...
javascript
chosen
[ { "from": "system", "value": "Fix error when profile is not present\n" }, { "from": "human", "value": "'use strict';\n\nangular.module('mean.icu.ui.profile', [])\n.controller('ProfileController', function($scope, $state, me, UsersService) {\n $scope.me = me;\n $scope.avatar = $scope.me.pro...
javascript
chosen
[ { "from": "system", "value": "Add sourceMap in node-sass-middleware for dev\n" }, { "from": "human", "value": "'use strict';\n\nconst express = require('express'),\n sassMiddleware = require('node-sass-middleware'),\n webpack = require('webpack'),\n webpackMiddleware = require('we...
javascript
chosen
[ { "from": "system", "value": "Define 404 error handling functions\n" }, { "from": "human", "value": "var http = require('http');\nvar express = require('express');\n\nvar app = express();\napp.set('view engine', 'ejs');\n\n// Setup the index page view\napp.get('/', function(req, res) {\n\tres.re...
javascript
chosen
[ { "from": "system", "value": "Use HTTP stream rather than HTTPS\n" }, { "from": "human", "value": "var express = require('express'),\n OpenedCaptions = require('opened-captions');\n\n// Make the server\nvar app = express();\nvar server = require('http').Server(app);\nvar io = require('socket.io...
javascript
chosen
[ { "from": "system", "value": "Fix incorrect redirection after log in.\n" }, { "from": "human", "value": "import angular from 'angular';\nimport uiRouter from 'angular-ui-router';\n\nimport view from './view';\n\n//====================================================================\n\nexport def...
javascript
chosen
[ { "from": "system", "value": "Fix missing notifications in Rooms\n" }, { "from": "human", "value": "var Rooms = {\n anonymous_room: false,\n\n refresh: function() {\n var items = document.querySelectorAll('#rooms_widget ul li:not(.subheader)');\n var i = 0;\n while(i <...
javascript
chosen
[ { "from": "system", "value": "Hide container by default when running tests\n" }, { "from": "human", "value": "/* eslint-disable */\n\nmodule.exports = {\n \"framework\": \"qunit\",\n \"test_page\": \"tests/index.html?hidepassed\",\n \"disable_watching\": true,\n \"launch_in_ci\": [\n \"Ch...
javascript
chosen