conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Save a bit of space when saving logs\n"
},
{
"from": "human",
"value": "define(\"game-manager\", [\"game\"], function(Game) {\n function GameManager() {\n this.games = this.load() || [];\n this.next_id = this.getNextId();\n }\n\n GameManager.p... | javascript | chosen |
[
{
"from": "system",
"value": "Fix problem with startup on heroku\n\nHad to surround socket.io with an http server to run on heroku.\n"
},
{
"from": "human",
"value": "// Generated by CoffeeScript 1.6.3\n(function() {\n var clicks, io, tones;\n\n io = require('socket.io').listen(process.env.POR... | javascript | chosen |
[
{
"from": "system",
"value": "Format the client model schema\n\nBoyscout\n\nTRACE-131\n"
},
{
"from": "human",
"value": "'use strict'\n\nimport { Schema } from 'mongoose'\n\nimport { connectionAPI, connectionDefault } from '../config'\n\nconst ClientSchema = new Schema({\n clientID: {\n type... | javascript | chosen |
[
{
"from": "system",
"value": "Add row & remove row primers\n\n"
},
{
"from": "human",
"value": "/* global wp, _, kirki */\nwp.customize.controlConstructor['kirki-repeater'] = wp.customize.kirkiDynamicControl.extend( {\n\tinitKirkiControl: function() {\n\t\tvar control = this,\n\t\t rowDef... | javascript | chosen |
[
{
"from": "system",
"value": "Add request counter to logging\n"
},
{
"from": "human",
"value": "let PROTO_PATH = __dirname + \"/wkrpt401.proto\"\n\nlet grpc = require('grpc');\nlet proto = grpc.load(PROTO_PATH).wkrpt401;\n\nfunction getBestPersonality(call, callback) {\n let userData = call.req... | javascript | chosen |
[
{
"from": "system",
"value": "Add configuration requirements and building notes\n"
},
{
"from": "human",
"value": "var example = require(\"washington\")\nvar assert = require(\"assert\")\n\nexample(\"Async: by default\")\n\nexample(\"Endpoint: match with glob style wildcards\")\n\nexample(\... | javascript | chosen |
[
{
"from": "system",
"value": "Add to bulk docs testing\n"
},
{
"from": "human",
"value": "module('bulk_docs', {\n setup : function () {\n this.name = 'test' + genDBName();\n }\n});\n\nasyncTest('Testing bulk docs', function() {\n pouch.open(this.name, function(err, db) {\n var docs = ma... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"util: make DeflateRaw Checksum hook into _transform so that it mimicks the norms.\"\n\nThis reverts commit cf22d920b48c3c320b0a7a75577b082901db07a6.\n"
},
{
"from": "human",
"value": "var zlib = require('zlib');\nvar inherits = require('util').inherits;\n\n... | javascript | chosen |
[
{
"from": "system",
"value": "Fix for universal identifier and not identifier not being recognised\n"
},
{
"from": "human",
"value": "/*! Parker v0.0.0 - MIT license */\n\n'use strict';\n\nvar _ = require('underscore');\n\nfunction CssRule(raw) {\n this.raw = raw;\n}\n\nCssRule.prototype.getS... | javascript | chosen |
[
{
"from": "system",
"value": "Make list items fade out on check.\n"
},
{
"from": "human",
"value": "$(document).ready(function() {\n\n var addItem = function() {\n $('.mainList').append('<li class=\"listItem\"><input id=\"check\" class=\"checkBox\" type=\"checkbox\"><input class=\"textIn... | javascript | chosen |
[
{
"from": "system",
"value": "Fix Combo box margin issue\n"
},
{
"from": "human",
"value": "//= require ./select_button_view\n//= require ./text_field_view\n\nFlame.ComboBoxView = Flame.SelectButtonView.extend({\n classNames: ['flame-combo-box-view'],\n childViews: 'textView buttonView'.w(... | javascript | chosen |
[
{
"from": "system",
"value": "Make zero-element bubbles a bit smaller\n"
},
{
"from": "human",
"value": "import { hierarchy } from 'd3-hierarchy';\n\nexport default class Clusters {\n constructor () {\n this.data = {\n children: [\n {\n cluster: 'non-anomalous',\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Use es6 style object function\n"
},
{
"from": "human",
"value": "module.exports = function (sequelize, DataTypes) {\n const Rating = sequelize.define('Rating', {\n id: {\n primaryKey: true,\n type: DataTypes.UUID,\n defaultValue: DataTypes.UUIDV4\... | javascript | chosen |
[
{
"from": "system",
"value": "Use hot loading for css\n"
},
{
"from": "human",
"value": "'use-strict';\n\nvar path = require('path');\nvar webpack = require('webpack');\n\nmodule.exports = {\n context: __dirname,\n\n entry: {\n app: [\n 'webpack-hot-middleware/client',\n 'babel-po... | javascript | chosen |
[
{
"from": "system",
"value": "Add CORS to WDS config"
},
{
"from": "human",
"value": "// @flow\n\nimport path from 'path'\nimport webpack from 'webpack'\n\nimport { WDS_PORT, isProd } from './src/shared/config'\n\nexport default {\n entry: [\n 'react-hot-loader/patch',\n './src/client',\n... | javascript | chosen |
[
{
"from": "system",
"value": "Add update method to List\n"
},
{
"from": "human",
"value": "var fs = require('fs');\nvar uuid = require('node-uuid');\n\n/**\n * A list containing todo items\n * @param {String} name The name of the list\n * @param {Array} todos An array of todo names\n */\nvar L... | javascript | chosen |
[
{
"from": "system",
"value": "Add another runtime test, try using mock functions\n"
},
{
"from": "human",
"value": "'use strict';\n\nimport UserDefinition from '../UserDefinition';\n\ndescribe('runtime', () => {\n test('user defined identity function', () => {\n const def = new UserDefinitio... | javascript | chosen |
[
{
"from": "system",
"value": "Exit != 0 is an error\n"
},
{
"from": "human",
"value": "\"use strict\";\n\nvar cp = require('child_process');\n\n //callback(err, exit, lastline);\nmodule.exports = function(cmd, options, chain){\n if(Array.isArray(options))\n options = { args : options} ;\n\n... | javascript | chosen |
[
{
"from": "system",
"value": "Add integration test via docker\n"
},
{
"from": "human",
"value": "'use strict';\n\n/*jslint nomen: true, stupid: true*/\n\nmodule.exports = function (grunt) {\n grunt.registerTask('integration-test', 'Run integration tests', [\n 'docker-integration-test'\... | javascript | chosen |
[
{
"from": "system",
"value": "feat(webpack): Add heading links to documentation\n"
},
{
"from": "human",
"value": "const webpack = require('webpack')\nconst marked = require('marked')\n\nconst renderer = new marked.Renderer()\nconst USE_PREFETCH = process.env.NODE_ENV !== 'test'\n\nmodule.export... | javascript | chosen |
[
{
"from": "system",
"value": "Fix Rxjs import in browser\n"
},
{
"from": "human",
"value": ";(function (global) {\n var map = {\n 'app': 'app/angular',\n 'angular-pipes': 'app/node_modules/angular-pipes',\n 'angular-rxjs.bundle': 'app/bundles/angular-rxjs.bundle.js'\n }\n\n var packa... | javascript | chosen |
[
{
"from": "system",
"value": "Add example for OrbitControl() with alt-text\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar p5 = require('../core/core');\n\n/**\n * @method orbitControl\n * @for p5\n * @chainable\n */\n//@TODO: implement full orbit controls including\n//pan, zoom, quatern... | javascript | chosen |
[
{
"from": "system",
"value": "Edit scope bundings. Added controller and bindToController properties\n"
},
{
"from": "human",
"value": "// app.shoppingListDirective.js\n\n(function() {\n \"use strict\";\n\n angular.module(\"ShoppingListDirectiveApp\")\n .directive(\"shoppingList\", ShoppingL... | javascript | chosen |
[
{
"from": "system",
"value": "Add track art to TuneIn connector\n"
},
{
"from": "human",
"value": "'use strict';\n\n/* global Connector */\n\nConnector.playerSelector = '.container';\n\nConnector.artistTrackSelector = '.line1._navigateNowPlaying';\n\nConnector.isPlaying = function () {\n\treturn... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"add redirect if user isn't logged in when they visit curriculum page\"\n\nThis reverts commit befe4b48b1dc88738b3daa59f3add48727f64fdc.\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar eat = require('eat');\nvar User = require('../models/User');\nvar... | javascript | chosen |
[
{
"from": "system",
"value": "Extend live paginator to handle ordering as well.\n"
},
{
"from": "human",
"value": "export default class LivePaginator {\n constructor(rowsFetcher, { page = 1, itemsPerPage = 20 } = {}) {\n this.page = page;\n this.itemsPerPage = itemsPerPage;\n this.rows... | javascript | chosen |
[
{
"from": "system",
"value": "Check the admin login page \"TEST\" mark\n"
},
{
"from": "human",
"value": "describe('Test environment should have descriptive \"Test\" mark', function () {\n it('Check the user page \"Test\" mark', function () {\n cy.visit('https://test-osale.toidupank.ee/')\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add Navbar dropdown menu. Under username there are Settings and Log out\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport {Link} from 'react-router-dom';\n\nclass NavbarUserInfo extends React.Component {\n constructor(props) {\n super(props);... | javascript | chosen |
[
{
"from": "system",
"value": "Add bounds for level 1\n"
},
{
"from": "human",
"value": "var SCREEN_WIDTH = 0;\r\nvar SCREEN_HEIGHT = 0;\r\nvar PLAYER_RADIUS = 12;\r\nvar PLAYER_SPEED = 4;\r\nvar FRICTION = 0.8;\r\nvar LEVELS = [\r\n { l: 48, t: 24, r: 752, b: 576 }\r\n];\r\n\r\nvar gInput = {}\... | javascript | chosen |
[
{
"from": "system",
"value": "Use campaign topic for prompt\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst mongoose = require('mongoose');\nconst helpers = require('../lib/helpers');\n\n/**\n * Schema.\n */\nconst userSchema = new mongoose.Schema({\n _id: String,\n topic: String,\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix mock module system after the last commit\n"
},
{
"from": "human",
"value": "var fs = require(\"fs\");\nvar path = require(\"path\");\n\nmodule.exports = function runLoader(loader, directory, filename, arg, callback) {\n\tvar async = true;\n\tvar loaderContext = ... | javascript | chosen |
[
{
"from": "system",
"value": "Improve ajax call for section tabs to also log errors\n"
},
{
"from": "human",
"value": "window.QuestionnaireHandler = {\n initialiseSections: function($sectionContainer, $contentContainer) {\n var insertIntoContainer = function(data) { $contentContainer.html(da... | javascript | chosen |
[
{
"from": "system",
"value": "Fix slide when has one image\n\n"
},
{
"from": "human",
"value": "jQuery(document).ready(function ($) {\n\n\tvar slideCount = $('#slider ul li').length;\n\tvar slideWidth = $('#slider ul li').width();\n\tvar slideHeight = $('#slider ul li').height();\n\tvar sliderUl... | javascript | chosen |
[
{
"from": "system",
"value": "Fix jasmine spec for aspectFilters\n"
},
{
"from": "human",
"value": "/* Copyright (c) 2010, Diaspora Inc. This file is\n* licensed under the Affero General Public License version 3 or later. See\n* the COPYRIGHT file.\n*/\n\ndescribe('AspectFilters', functi... | javascript | chosen |
[
{
"from": "system",
"value": "Remove the null assignment of app.\n"
},
{
"from": "human",
"value": "'use strict';\n\nimport { EventEmitter } from 'events';\n\n/**\n * Plugin Interface\n * @class\n */\nexport default class {\n\n /**\n * Construct the plugin.\n * @param {object} plugin\n */... | javascript | chosen |
[
{
"from": "system",
"value": "Add '/source' static asset mount so that Source maps resolve when debugging.\n"
},
{
"from": "human",
"value": "/*jslint node:true */\n\"use strict\";\nvar path = require('path');\nvar express = require('express');\nvar server = express();\nvar faye = require('faye'... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \" add dependencies + function declaration\"\n\nThis reverts commit 59b6f5a37ab886e7410dd1125d3cc23b558fab63.\n"
},
{
"from": "human",
"value": "var _ = require('underscore'),\n Hand = require('pokersolver').Hand;\n\n\nvar extractHandFromGame = function(ga... | javascript | chosen |
[
{
"from": "system",
"value": "Replace Rails with Swift in intro\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport styled from '@emotion/styled';\n\nconst Content = styled.div`\n width: 100%;\n max-width: 580px;\n padding: 20px 25px;\n border-radius: 3px;\n margin: 0 auto... | javascript | chosen |
[
{
"from": "system",
"value": "Load external and internal IPs [WAL-542]\n"
},
{
"from": "human",
"value": "const resourceVmsList = {\n controller: ProjectVirtualMachinesListController,\n controllerAs: 'ListController',\n templateUrl: 'views/partials/filtered-list.html',\n};\n\nexport default r... | javascript | chosen |
[
{
"from": "system",
"value": "Fix some bugs in handling of settings\n"
},
{
"from": "human",
"value": "(function(Pebble, window) {\n var settings = {};\n\n Pebble.addEventListener(\"ready\", function(e) {\n settings = window.localStorage.getItem(\"settings\");\n if(settings !== \"\") {\n... | javascript | chosen |
[
{
"from": "system",
"value": "Add console.log et remove verify for bot framework\n"
},
{
"from": "human",
"value": "var restify = require('restify');\nvar builder = require('botbuilder');\n\n// Get secrets from server environment\nvar botConnectorOptions = { \n appId: process.env.MICROSOFT_AP... | javascript | chosen |
[
{
"from": "system",
"value": "Add bootstrap & some styling\n"
},
{
"from": "human",
"value": "(\n // serve up dynamic content\n\n function ()\n {\n // this code returns a web page with a word, ignoring the path\n\n \"use strict\";\n\n var http = require( 'http' );\n... | javascript | chosen |
[
{
"from": "system",
"value": "Correct URL for the backend server.\n"
},
{
"from": "human",
"value": "/* jshint node: true */\n\nmodule.exports = function(environment) {\n var ENV = {\n modulePrefix: 'bookmeister',\n environment: environment,\n baseURL: '/',\n locationType: 'auto',\n... | javascript | chosen |
[
{
"from": "system",
"value": "Remove style-loader from .css too\n"
},
{
"from": "human",
"value": "// Breaks for some reason\n/* eslint comma-dangle: [\"error\", {\"functions\":\n \"arrays\": \"always-multiline\",\n \"objects\": \"always-multiline\",\n \"imports\": \"always-multiline\",\n \"... | javascript | chosen |
[
{
"from": "system",
"value": "Disable unused tests to fix the build.\n"
},
{
"from": "human",
"value": "'use strict';\n\ndescribe('Controller: AuthenticationCtrl', function () {\n\n // load the controller's module\n beforeEach(module('dockstore.ui'));\n\n var AuthenticationCtrl,\n scope;\n... | javascript | chosen |
[
{
"from": "system",
"value": "Add toggle false on click menu button\n"
},
{
"from": "human",
"value": "import { expect } from 'chai'\nimport types from '../../src/constants/actionTypes'\nimport { onClickMenuButton } from '../../src/actions/nav'\n\ndescribe('actions/nav.js', () => {\n it('should... | javascript | chosen |
[
{
"from": "system",
"value": "Print a better message if assertion fails\n"
},
{
"from": "human",
"value": "/*global QUnit*/\nimport Emblem from '../../emblem';\n\nexport function compilesTo( emblem, handlebars, message ) {\n var output = Emblem.compile(emblem);\n if (!message) {\n var maxLe... | javascript | chosen |
[
{
"from": "system",
"value": "Use readFile instead of readFileSync in tests\n"
},
{
"from": "human",
"value": "const test = require('ava')\nconst path = require('path')\nconst { readdirSync, readFileSync } = require('fs')\nconst { compile, format } = require('../')\nconst fixtures = path.join(__... | javascript | chosen |
[
{
"from": "system",
"value": "Test import response w/ a hierarchy\n"
},
{
"from": "human",
"value": "\"use strict\";\n\nvar path = require(\"path\"),\n assert = require(\"assert\"),\n\n imports = require(\"../imports\");\n\ndescribe(\"postcss-css-modules\", function() {\n describe(\"i... | javascript | chosen |
[
{
"from": "system",
"value": "Add some tests from the s3 lib\n"
},
{
"from": "human",
"value": "describe('getFolders()', function() {\n it('should return the correct list of folders', function() {\n var objects = [\n { Key: '/' },\n { Key: 'test/' },\n { Key: 'test/test/' },\n... | javascript | chosen |
[
{
"from": "system",
"value": "Support for FireFox Mozilla < 46\n\nSee Mozilla bug: https://bugzilla.mozilla.org/show_bug.cgi?id=901097\n"
},
{
"from": "human",
"value": "self.onmessage = function(e) {\n var fileReader = new FileReader();\n\n fileReader.onloadend = function(chunk) {\n postMe... | javascript | chosen |
[
{
"from": "system",
"value": "Set accept-encoding header for gzip option\n"
},
{
"from": "human",
"value": "\nvar zlib = require('zlib')\n\n\nfunction gzip (req, value) {\n req.on('response', function (res) {\n if (req._redirect) return\n var encoding = value || res.headers['content-encod... | javascript | chosen |
[
{
"from": "system",
"value": "Comment out test for MetaAnalyserPlugin for now\n"
},
{
"from": "human",
"value": "import cheerio from 'cheerio';\nimport sinon from 'sinon';\nimport { expect } from 'chai';\n\nimport HtmlMetaAnalyserPlugin from '../../../src/plugin/html-meta-analyser/plugin';\n\nde... | javascript | chosen |
[
{
"from": "system",
"value": "Fix issue with addon breaking on install\n\nCloses #27\n"
},
{
"from": "human",
"value": "import config from '../config/environment';\n\nexport function initialize(_container, application ) {\n const { metricsAdapters } = config;\n\n application.register('config:m... | javascript | chosen |
[
{
"from": "system",
"value": "Fix change because you swapped url auth mechanisms\n"
},
{
"from": "human",
"value": "import React from \"react\";\nimport {\n JSON_AUTHORIZATION_HEADERS,\n JSON_POST_AUTHORIZATION_HEADERS\n} from \"../constants/requests\";\nimport { LOGOUT_URL } from \"../constan... | javascript | chosen |
[
{
"from": "system",
"value": "Support DATABASES env variable in database setup script\n"
},
{
"from": "human",
"value": "const knex = require('knex');\n\nconst postgres = knex({\n client: 'postgres',\n\n connection: {\n user: 'postgres',\n host: 'localhost',\n database: 'postgres'\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix module export & function docs\n"
},
{
"from": "human",
"value": "/**\n * Expand environment variables\n * Example:\n * Assuming $NEXRENDER_ASSETS is set to /Users/max/nexrender in the current process\n * an input of file://$NEXRENDER_ASSETS/projects/project2.aep... | javascript | chosen |
[
{
"from": "system",
"value": "Fix order of import statements\n"
},
{
"from": "human",
"value": "#import \"assertions.js\"\n#import \"uiautomation-ext.js\"\n#import \"lang-ext.js\"\n#import \"screen.js\"\n#import \"test.js\"\n"
},
{
"from": "gpt",
"value": "#import \"assertions.js\"\n... | javascript | chosen |
[
{
"from": "system",
"value": "Update class after tag is set.\n"
},
{
"from": "human",
"value": "$(document).ready( function () {\n// $('table').dragtable({\n// dragHandle:'.th-inner'\n//// dragaccept:'th-inner'\n// });\n// $('table').DataTable( {\n//// dom: 'Bfrtip'... | javascript | chosen |
[
{
"from": "system",
"value": "Add comments to JS functions\n"
},
{
"from": "human",
"value": "function switchTrend(val) {\n var trends = document.getElementsByClassName('trends');\n var i = 0;\n var updatedCurrentSlide = false;\n while(i < trends.length && !updatedCurrentSlide) {\n if(tre... | javascript | chosen |
[
{
"from": "system",
"value": "Update to User.save api references.\n"
},
{
"from": "human",
"value": "(function (module) {\n module.controller(\"AccountSettingsController\", AccountSettingsController);\n\n AccountSettingsController.$inject = [\"mcapi\", \"User\", \"toastr\"];\n\n /* @ngI... | javascript | chosen |
[
{
"from": "system",
"value": "Fix MathJax config not being picked up\n\nthanks standard\n"
},
{
"from": "human",
"value": "var MathJax = {\n messageStyle: 'none',\n skipStartupTypeset: true,\n tex2jax: {\n inlineMath: [['$', '$'], ['\\\\(', '\\\\)']],\n processEscapes: true\n }\n}\n"
... | javascript | chosen |
[
{
"from": "system",
"value": "Clean out screenshots on gulp build\n"
},
{
"from": "human",
"value": "(function(){\n 'use strict';\n \n var gulp = require('gulp');\n var paths = require('./_paths');\n var ignore = require('gulp-ignore');\n var rimraf = require('gulp-rimraf');\n\n // clean ... | javascript | chosen |
[
{
"from": "system",
"value": "Correct path in annotations spec\n"
},
{
"from": "human",
"value": "import annotations from '../src/annotations';\n\ndescribe('A test', function () {\n\n it('will test something', function () {\n expect(annotations).to.be.an('object');\n });\n\n});\n"
... | javascript | chosen |
[
{
"from": "system",
"value": "Order by date on server side before finding uniques\n"
},
{
"from": "human",
"value": "const {\n History,\n Song\n} = require('../models')\nconst _ = require('lodash')\n\nmodule.exports = {\n async index (req, res) {\n try {\n const userId = req.user.id\n... | javascript | chosen |
[
{
"from": "system",
"value": "Test to see if filter gets blur\n"
},
{
"from": "human",
"value": "import postcss from 'postcss';\nimport test from 'ava';\n\nimport plugin from './';\n\nfunction run(t, input, output) {\n return postcss([ plugin ]).process(input)\n .then( result => {\n... | javascript | chosen |
[
{
"from": "system",
"value": "Use `let` instead of `var`\n\nJust a very small change"
},
{
"from": "human",
"value": "export function parseQuery (query) {\n const chunks = query.split(/([#.])/);\n let tagName = '';\n let id = '';\n const classNames = [];\n\n for (var i = 0; i < chunks.lengt... | javascript | chosen |
[
{
"from": "system",
"value": "Fix handler. Found the issue.\n"
},
{
"from": "human",
"value": "'use strict'\n\nconst MapErrorCodeToView = {\n 404: 'frontend.404',\n};\n\n/**\n * This class handles all exceptions thrown during\n * the HTTP request lifecycle.\n *\n * @class ExceptionHandler\n */\... | javascript | chosen |
[
{
"from": "system",
"value": "Fix IE not allowing innerHTML table elements (except for a cell) descendants.\n"
},
{
"from": "human",
"value": "import assign from '../util/assign';\nimport init from './init';\nimport registry from '../global/registry';\n\nvar specialMap = {\n caption: 'table',\n... | javascript | chosen |
[
{
"from": "system",
"value": "Add test for /strategies/:name 403 if strategy exists.\n"
},
{
"from": "human",
"value": "var specHelper = require('./specHelper');\n\ndescribe('The strategy api', function () {\n var request;\n\n before(function () { request = specHelper.setupMockServer(); })... | javascript | chosen |
[
{
"from": "system",
"value": "Select button accepts custom value displayer\n"
},
{
"from": "human",
"value": "const isFunction = require(\"lodash/isFunction\")\nconst isString = require(\"lodash/isString\")\nconst clickable = require(\"../reaks/clickable\")\nconst hFlex = require(\"../reaks/hFle... | javascript | chosen |
[
{
"from": "system",
"value": "Refactor the camelCase function to use the pascalCase function\n"
},
{
"from": "human",
"value": "import R from 'ramda';\nimport capitalize from './capitalize.js';\nimport uncapitalize from './uncapitalize.js';\nimport spaceCase from './space-case.js';\n\n// a -> a\... | javascript | chosen |
[
{
"from": "system",
"value": "tests: Increase timeout for linting tests\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst glob = require('glob').sync;\n\nlet paths = glob('tests/*');\n\npaths = paths.concat([\n 'lib',\n 'blueprints',\n]);\n\nrequire('mocha-eslint')(paths, {\n timeout:... | javascript | chosen |
[
{
"from": "system",
"value": "Load hd images on mediu zoom\n\n"
},
{
"from": "human",
"value": "import mediumZoom from '@/config/medium-zoom';\n\nwindow.addEventListener('DOMContentLoaded', mediumZoom);\n"
},
{
"from": "gpt",
"value": "import mediumZoom from '@/config/medium-zoom';\n... | javascript | chosen |
[
{
"from": "system",
"value": "Fix transfering info from injected script to VK connector\n"
},
{
"from": "human",
"value": "'use strict';\n\n// This script runs in non-isolated environment(vk.com itself)\n// for accessing to `window.ap` which sends player events\n\nconst INFO_ID = 0;\nconst INFO_... | javascript | chosen |
[
{
"from": "system",
"value": "Update software precache for hosting environment\n"
},
{
"from": "human",
"value": "module.exports = {\n stripPrefix: 'dist/',\n staticFileGlobs: [\n 'dist/*.html',\n 'dist/manifest.json',\n 'dist/*.png',\n 'dist/**/!(*map*)'\n ],\n dontCacheBustUrls... | javascript | chosen |
[
{
"from": "system",
"value": "Remove some non-existing exports from the edit module\n"
},
{
"from": "human",
"value": "// !! This module implements the ProseMirror editor. It contains\n// functionality related to editing, selection, and integration with\n// the browser. `ProseMirror` is the clas... | javascript | chosen |
[
{
"from": "system",
"value": "Reorder operations in email confirmation resolver.\n"
},
{
"from": "human",
"value": "import bind from \"lib/helper/graphql/normalizeParams\"\nimport BadRequest from \"lib/error/http/BadRequest\"\nimport waterfall from \"lib/helper/array/runWaterfall\"\nimport db fr... | javascript | chosen |
[
{
"from": "system",
"value": "Fix returning to index and the navbar not turning transparent\n"
},
{
"from": "human",
"value": "(function() {\n 'use strict';\n\n angular\n .module('app.layout')\n .directive('pvTopNav', pvTopNav);\n\n /* @ngInject */\n function pvTopNav (... | javascript | chosen |
[
{
"from": "system",
"value": "Include request when logging error\n"
},
{
"from": "human",
"value": "export default class LiveError extends Error {\n constructor(errorObj) {\n super();\n this.message = `Server Error: (${errorObj.code}) ${errorObj.message}`;\n this.stack = ... | javascript | chosen |
[
{
"from": "system",
"value": "Refactor Section into functional, stateless component\n"
},
{
"from": "human",
"value": "import React from 'react';\n\n/**\n * A section wrapper.\n *\n * This is a standalone section wrapper used for layout.\n *\n * == How to use a Section in a component:\n *\n * In... | javascript | chosen |
[
{
"from": "system",
"value": "[LIB-464] Remove Raw import from Admin model\n"
},
{
"from": "human",
"value": "import stampit from 'stampit';\nimport {Meta, Model} from './base';\nimport {BaseQuerySet, Get, List, First, PageSize, Raw} from '../querySet';\n\nconst AdminQuerySet = stampit().compose... | javascript | chosen |
[
{
"from": "system",
"value": "Add password confirmation to user seeds.\n"
},
{
"from": "human",
"value": "var db = require('../models/db');\n\ndb.User\n .build({\n username: 'johndoe',\n email: 'johndoe@tessel.io',\n name: 'John Doe',\n password: 'password',\n })\n .digest()\n .g... | javascript | chosen |
[
{
"from": "system",
"value": "Fix position of todos app\n"
},
{
"from": "human",
"value": "import React, { Component } from 'react';\nimport PropTypes from 'prop-types';\nimport { observer } from 'mobx-react';\nimport injectSheet from 'react-jss';\nimport Webview from 'react-electron-web-view';\... | javascript | chosen |
[
{
"from": "system",
"value": "Call _set in next loop\n"
},
{
"from": "human",
"value": "import EventEmitter from 'events';\n\nexport default class Observer extends EventEmitter {\n constructor() {\n super();\n\n this._name = null;\n this._model = null;\n this._value = null;\n\n t... | javascript | chosen |
[
{
"from": "system",
"value": "Fix AnchorJS messing up due to missing semicolon\n\nCloses #13\n"
},
{
"from": "human",
"value": "(function($) {\n // SVG polyfill\n svg4everybody();\n\n // Deep anchor links for headings\n anchors.options = {\n placement: 'left',\n visible... | javascript | chosen |
[
{
"from": "system",
"value": "Switch to pixel ratio of 2"
},
{
"from": "human",
"value": "define( [\"three\", \"container\"], function ( THREE, container ) {\n container.innerHTML = \"\";\n var renderer = new THREE.WebGLRenderer( { clearColor: 0x000000 } );\n renderer.sortObjects = false;\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add comments to every method.\n"
},
{
"from": "human",
"value": "function InputManager() {\n this.km;\n\n this.notify;\n this.newGame;\n this.quitGame;\n this.pauseGame;\n \n}\n\nInputManager.prototype.setKeyMap = function(keyMap) {\n this.km = ... | javascript | chosen |
[
{
"from": "system",
"value": "Rename reset_url to revoke url\n"
},
{
"from": "human",
"value": "(function (window) {\n \"use strict\";\n\n var setts = {\n \"SERVER_URL\": \"http://localhost:8061/\",\n \"CREDZ\": {\n \"client_id\": \"5O1KlpwBb96ANWe27ZQOpbWSF4DZDm4s... | javascript | chosen |
[
{
"from": "system",
"value": "Update model.js for syntax error\n\nIt was bothering me.."
},
{
"from": "human",
"value": "var chai = require('chai');\nvar should = chai.should();\nvar User = require('../models/User');\n\ndescribe('User Model', function() {\n it('should create a new user', functi... | javascript | chosen |
[
{
"from": "system",
"value": "Set encoding to UTF-8 in fs.readFile call\n\nhttps://youtu.be/AXwGVXD7qEQ"
},
{
"from": "human",
"value": "var Bot = require( 'nodemw' ),\n\treadline = require( 'readline' ),\n\tfs = require( 'fs' ),\n\tc = require( 'ansicolors' ),\n\trl = readline.createInterface( ... | javascript | chosen |
[
{
"from": "system",
"value": "Add new peerDeps to externals to reduce bundle-size\n"
},
{
"from": "human",
"value": "import webpack from 'webpack';\nimport loaders from './loaders';\n\nexport default {\n name: 'nordnet-component-kit',\n entry: {\n 'nordnet-component-kit': './src/index.js',\... | javascript | chosen |
[
{
"from": "system",
"value": "Fix export collections with sub-collections\n"
},
{
"from": "human",
"value": "function collectionToBookmarkHtml(collection) {\n var html = addHeader();\n\n html += \"<DL><p>\";\n html += transformCollection(collection);\n html += \"</DL><p>\";\n\n re... | javascript | chosen |
[
{
"from": "system",
"value": "Add param to confUrl to define fallback to default\n"
},
{
"from": "human",
"value": "\"use strict\";\n\n// Handles params concerning configuration files in the $routeProvider phase\nangular.module('arethusa.core').factory('confUrl', function($route) {\n return fun... | javascript | chosen |
[
{
"from": "system",
"value": "Fix for paperclip's unsafe block\n\nOk finally seems to be working...\r\n{{content}} encodes and <unsafe html={{content}} /> doesn't now."
},
{
"from": "human",
"value": "var Node = require(\"./node\");\nvar he = require(\"he\");\n\nfunction Text (value) {\n this... | javascript | chosen |
[
{
"from": "system",
"value": "Use divider instead of separator\n"
},
{
"from": "human",
"value": "'use strict'\n\n/**\n * app options\n * @type {Object}\n */\n\nvar options = {\n components: [\n { name: 'Typography' },\n { name: 'Components', type: 'separator' },\n { name: 'Button' },\... | javascript | chosen |
[
{
"from": "system",
"value": "Use strict mode on app\n"
},
{
"from": "human",
"value": "// Overwrite this file in your application /app/assets/javascripts/comfortable_mexican_sofa/admin/application.js\n//= require requirejs/require\n//= require require_config\n\nwindow.CMS.wysiwyg = function() {... | javascript | chosen |
[
{
"from": "system",
"value": "Package windows version with icon\n"
},
{
"from": "human",
"value": "const packager = require('electron-packager');\nconst path = require('path');\nconst os = require('os');\n\npackagerOptions = {\n\t\"dir\": \".\",\n\t\"out\": path.resolve(\"dist\", \"windows\"),\n... | javascript | chosen |
[
{
"from": "system",
"value": "Edit status code for invalid sign in username\n"
},
{
"from": "human",
"value": "import passport from './auth';\n\nmodule.exports = {\n login(req, res, next) {\n passport.authenticate('local', (err, user) => {\n if (err) { return next(err); }\n if (!us... | javascript | chosen |
[
{
"from": "system",
"value": "Update tests for new jsdom\n"
},
{
"from": "human",
"value": "import { env, createVirtualConsole } from 'jsdom';\nimport path from 'path';\nimport Storage from 'dom-storage';\n\nconst virtualConsole = createVirtualConsole().sendTo(console);\nconst dirname = path.dir... | javascript | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.