conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Use a bounding box to limit search results\n\nSee issue #7\n[@wwared, @brunoendo]\n"
},
{
"from": "human",
"value": "/*\n Copyright © 2015 Biciguia Team\n\n This Source Code Form is subject to the terms of the Mozilla Public\n License, v. 2.0. If a copy of the M... | javascript | chosen |
[
{
"from": "system",
"value": "Add check for undefined provider\n"
},
{
"from": "human",
"value": "const providers = {\n \"env\": require('provider/env'),\n \"file\": require('provider/file')\n}\n\nmodule.exports.resolve = function(config) {\n const providerType = config.type\n const provider... | javascript | chosen |
[
{
"from": "system",
"value": "[DDW-360] Use v1 request for ada-test-reset call\n"
},
{
"from": "human",
"value": "// @flow\nimport { request } from './lib/request';\nimport type { RequestConfig } from './types';\n\nexport const adaTestReset = (\n config: RequestConfig\n): Promise<void> => (\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Allow passing arguments to another screen module\n"
},
{
"from": "human",
"value": "import { $, $$, bind } from 'util/dom';\nimport splashScreen from 'screens/splash';\nimport mainMenu from 'screens/main-menu';\n\nvar screens = {\n 'splash-screen': splashScreen,\... | javascript | chosen |
[
{
"from": "system",
"value": "Use get empty request helper\n"
},
{
"from": "human",
"value": "/* eslint dot-notation: 'off' */\n'use strict';\nvar package_json = require('./../package.json');\nvar emptyRequest = require('sendgrid-rest').emptyRequest;\n\n// SendGrid allows for quick and easy acce... | javascript | chosen |
[
{
"from": "system",
"value": "Put default programs return to 10\n"
},
{
"from": "human",
"value": "import React from 'react'\nimport {withReduxSaga} from 'configureStore'\n\nimport Layout from 'components/Layout'\nimport HomeHero from 'components/HomeHero'\nimport ProgramsList from 'containers/P... | javascript | chosen |
[
{
"from": "system",
"value": "Swap weightings for Tax Disc AB test cohorts\n\nbeta should be ~100%, beta_control should be 0%"
},
{
"from": "human",
"value": "//= require govuk/multivariate-test\n\n/*jslint browser: true,\n * indent: 2,\n * white: true\n */\n/*global $, GOVUK */\n$(function ()... | javascript | chosen |
[
{
"from": "system",
"value": "Fix lint error and refactor return of magicNumbers\n"
},
{
"from": "human",
"value": "class DCFUtility {\n\n static magicNumbers(magicNumber) {\n const magicNumbers = {\n int0: 0,\n int1: 1,\n int16: 16,\n hex0x3: 0x3,\n hex0x8: 0x8,\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add missing \")\" to fix syntax error\n"
},
{
"from": "human",
"value": "var path = require('path');\n\nexports.registerHandlers = function(application, params) {\n params = params || {};\n\n var prefix = params.prefix || '';\n prefix = prefix.replace(/\\/$/, '')... | javascript | chosen |
[
{
"from": "system",
"value": "Replace with IIFE to run before social buttons load\n"
},
{
"from": "human",
"value": "window.onload = function() {\n\n // Create your Phaser game and inject it into the gameContainer div.\n // We did it in a window.onload event, but you can do it anywhere (requ... | javascript | chosen |
[
{
"from": "system",
"value": "Add new test case to check http status\n"
},
{
"from": "human",
"value": "import chai from 'chai';\nimport checkHttpStatus from '../../src/default/checkHttpStatus.js';\nconst expect = chai.expect;\n\ndescribe('test checkHttpStatus', function() {\n it('should throw ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix reload on delete post\n"
},
{
"from": "human",
"value": "function deletePost(value, post_id, user_id, csrf_token) {\r\n $.ajax( {\r\n type: 'post',\r\n url: 'delete.php',\r\n data: {\r\n type: 2, // refer to /delete.php for inf... | javascript | chosen |
[
{
"from": "system",
"value": "Use Image component as image source instead of raw object\n"
},
{
"from": "human",
"value": "import React, { Component, StyleSheet, PropTypes, Image, View } from 'react-native';\n\n\nexport default class Media extends Component {\n\n static propTypes = {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Update capabilities to fix fetch detection in chrome\n\nSpec now uses ReadableStream rather than ReadableByteStream. In chrome ReadableByteStream is no longer available on window so the existing check in capabilities for fetch was failing. The fix is to check both."
},
{
... | javascript | chosen |
[
{
"from": "system",
"value": "Define Document property for Registration\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar memoize = require('memoizee/plain')\n , validDb = require('dbjs/valid-dbjs')\n , defineStringLine = require('dbjs-ext/string/string-line');\n\nmodul... | javascript | chosen |
[
{
"from": "system",
"value": "Add token parameter to upload method\n"
},
{
"from": "human",
"value": "import apiClient from 'api-client';\nimport logger from 'logger';\nimport picker from 'picker';\n\nexport default (apikey, security, moduleOverrides = {}) => {\n if (typeof apikey !== 'string')... | javascript | chosen |
[
{
"from": "system",
"value": "Fix newline separation for binary lines\n"
},
{
"from": "human",
"value": "module.exports = class Definition {\n constructor (props) {\n Object.assign(this, props)\n\n // TODO: only guard if missing both source and binaries\n // once we're able to build a ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix: Remove invalid `sourcemaps` option passed to gulp-sourcemaps\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar through2 = require('through2');\nvar sourcemaps = require('gulp-sourcemaps');\nvar duplexify = require('duplexify');\nvar sink = require('../sin... | javascript | chosen |
[
{
"from": "system",
"value": "Use variable existence instead of length\n"
},
{
"from": "human",
"value": "\"use strict\"\n\n$(document).ready(function() {\n $('div.input-group.tempus-dominus-date').each(function() {\n var date_picker = $(this);\n var options = {\n format: 'DD/MM/YYYY... | javascript | chosen |
[
{
"from": "system",
"value": "Fix the js for wysihtml\n"
},
{
"from": "human",
"value": "//= require jquery.ui.nestedSortable\n//= require codemirror\n//= require codemirror/modes/xml\n//= require codemirror/modes/javascript\n//= require codemirror/modes/css\n//= require codemirror/modes/htmlmix... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"test stub flot makefile\"\n\nThis reverts commit 2cd6322ebd0aa16d550ad0661c7b5b9d076abffa.\n"
},
{
"from": "human",
"value": "//= require jquery/dist/jquery\n//= require modernizr/modernizr.custom\n//= require bootstrap/dist/js/bootstrap\n//= require jQuery... | javascript | chosen |
[
{
"from": "system",
"value": "Make Pole Emploi registration explicit\n"
},
{
"from": "human",
"value": "'use strict';\n\nangular.module('ddsCommon').constant('specificSituations', [\n {\n id: 'demandeur_emploi',\n label: 'En recherche d’emploi'\n },\n {\n id: 'etudi... | javascript | chosen |
[
{
"from": "system",
"value": "Write tests for hmac validator\n"
},
{
"from": "human",
"value": "const chai = require('chai')\nconst fs = require('fs')\nconst path = require('path')\n\nconst should = chai.should()\nconst expect = chai.expect\nconst assert = chai.assert\nconst transformer = requir... | javascript | chosen |
[
{
"from": "system",
"value": "Make the public js core directory if it doesn't exist\n"
},
{
"from": "human",
"value": "var utils = require('utilities')\n , fs = require('fs');\n\nexports.init = function (app, callback) {\n var modelDir = utils.file.readdirR('app/models')\n , files = []\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix extension activation in tests\n"
},
{
"from": "human",
"value": "const fs = require('fs')\r\n\r\nconst LANGUAGE = 'postfix'\r\nconst ACTIVATION_EVENT = `onLanguage:${LANGUAGE}`\r\nconst task = process.argv.length > 2 && process.argv[2]\r\n\r\nconst tasksMap = ne... | javascript | chosen |
[
{
"from": "system",
"value": "Add detailed routes for Rooms\n"
},
{
"from": "human",
"value": "//= require \"lib/moment.min\"\n//= require \"lib/jquery-2.0.3\"\n//= require \"lib/handlebars-v1.1.2\"\n//= require \"lib/ember\"\n//= require \"lib/ember-data\"\n//= require_self\n//= require \"model... | javascript | chosen |
[
{
"from": "system",
"value": "Add max width in phaser scale"
},
{
"from": "human",
"value": "var GameOfLife = GameOfLife || {};\n\nGameOfLife.Boot = function () {};\n\nGameOfLife.Boot.prototype = {\n create: function() {\n this.scale.scaleMode = Phaser.ScaleManager.SHOW_ALL;\n this.game.s... | javascript | chosen |
[
{
"from": "system",
"value": "Simplify getting the min range\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport cx from 'classnames';\nimport { area } from 'd3-shape';\n\nexport default function AreaClosed({\n x,\n y,\n xScale,\n yScale,\n data,\n defined,\n className,\... | javascript | chosen |
[
{
"from": "system",
"value": "Make every thubnail the same height\n\nCloses #86"
},
{
"from": "human",
"value": "var context = sessionStorage.getItem('context');\nvar rowThumbnails = document.querySelector('.row-thumbnails');\n\nrowThumbnails.addEventListener(\"click\", moeRedirect, false);\n\nf... | javascript | chosen |
[
{
"from": "system",
"value": "canvas-animation: Add lerp functons to Utils.\n"
},
{
"from": "human",
"value": "/*globals define*/\ndefine(function() {\n 'use strict';\n\n var PI2 = 2 * Math.PI;\n\n var DEG_TO_RAD = Math.PI / 180,\n RAD_TO_DEG = 180 / Math.PI;\n\n function clamp( value, ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix issue with navigation keys and expanded list\n\n- listen to changes in DOM. If the change was in a single entry, adds a link to that entry, if it is in the list, add to the whole list\n"
},
{
"from": "human",
"value": "(function($) {\n var share_url = function(... | javascript | chosen |
[
{
"from": "system",
"value": "Rename main module to be 'main'"
},
{
"from": "human",
"value": "\n({\n\tbaseUrl: '../js-compile',\n\tdir: '../js-build',\n\tmodules: [\n\t\t { name: 'mobile_opac' }\n\t\t, { name: 'opac/search', exclude: ['base'] }\n\t\t, { name: 'account/summary', exclude: ['base... | javascript | chosen |
[
{
"from": "system",
"value": "Stop sending comment IDs to the client\n"
},
{
"from": "human",
"value": "const mongoose = require('mongoose')\n\nmongoose.connect('mongodb://db/lucaschmid-net')\n\nconst commentSchema = new mongoose.Schema({\n author: {\n required: true,\n type: String\n },... | javascript | chosen |
[
{
"from": "system",
"value": "Add a TODO comment for the component selection hack\n"
},
{
"from": "human",
"value": "var _ = require('lodash');\n\nvar Helpers = {\n\n getAlterEgoComponent: function getAlterEgoComponent (device) {\n if (device.properties.displayType === 'LAMP') {\n retur... | javascript | chosen |
[
{
"from": "system",
"value": "Reset heat every 6 seconds\n"
},
{
"from": "human",
"value": "var setHeat = function () {\n \"use strict\";\n var allArr = Posts.find({\n oldPoints: {\n $gt: 1\n }\n }).fetch();\n\n console.log('Calculating post heat');\n\n _(allArr).forEach(function... | javascript | chosen |
[
{
"from": "system",
"value": "Remove delay in press for AppbarTouchable\n"
},
{
"from": "human",
"value": "import React from \"react-native\";\nimport TouchFeedback from \"./touch-feedback\";\n\nconst {\n\tView\n} = React;\n\nexport default class AppbarTouchable extends React.Component {\n\t_onP... | javascript | chosen |
[
{
"from": "system",
"value": "Change the write method for the responses to pass in the http response object.\n"
},
{
"from": "human",
"value": "/**\n * The authenticate module is responsible to getting the authorization header from the request and attaching\n * the token to the request. If the c... | javascript | chosen |
[
{
"from": "system",
"value": "Rename response by web handler to \"registration\"\n"
},
{
"from": "human",
"value": "/**\n * Created by Omnius on 6/26/16.\n */\n'use strict';\n\nmodule.exports = (route, options) => {\n\n return (request, reply) => {\n\n if (options.type === 'registratio... | javascript | chosen |
[
{
"from": "system",
"value": "Fix Header More, Make It A DropDown When On Mobile\n"
},
{
"from": "human",
"value": "import { Navbar, NavItem, Nav } from 'react-bootstrap';\nimport React from 'react';\nimport { Link } from 'react-router';\nimport styles from './Navbar.scss';\n\nexport default cla... | javascript | chosen |
[
{
"from": "system",
"value": "Fix connection string for production-like environments\n\n"
},
{
"from": "human",
"value": "const { getConnectionOptions } = require('./src/utils/database');\n\nconst options = getConnectionOptions();\nlet { url } = options;\nif (options.username) {\n\turl = `${opti... | javascript | chosen |
[
{
"from": "system",
"value": "Add load event handler for browser console speaker notes plugin\n"
},
{
"from": "human",
"value": "/**\r\n * Handles writting the notes to the browser console in synchronization with the reveal.js\r\n */\r\nvar ConsoleNotes = (function() {\r\n\r\n function log(ev... | javascript | chosen |
[
{
"from": "system",
"value": "Update up to changes in event-emitter package\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar noop = require('es5-ext/function/noop')\n , assign = require('es5-ext/object/assign')\n , memoize = require('memoizee')\n , ee = require('event-emit... | javascript | chosen |
[
{
"from": "system",
"value": "Update samples for new iotdb.thing.state()\n"
},
{
"from": "human",
"value": "/*\n * How to use this module in IOTDB / HomeStar\n * This is the best way to do this\n * Note: to work, this package must have been installed by 'homestar install' \n */\n\nvar iotdb =... | javascript | chosen |
[
{
"from": "system",
"value": "Use isEmpty() instead of comparing to empty array in country service\n"
},
{
"from": "human",
"value": "angular.module('yds').service('CountrySelectionService', function($rootScope) {\n var countries = [];\n\n var subscribe = function(scope, callback) {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix unscrollable bug on mobile\n"
},
{
"from": "human",
"value": "function changeIsMobile(isMobile) {\n return {\n type: 'CHANGE_IS_MOBILE',\n isMobile,\n }\n}\n\nexport function changeWidthAndHeight(height, width) {\n return {\n type: 'CHANGE_WIDTH_AND_... | javascript | chosen |
[
{
"from": "system",
"value": "Use real fragment behavior for gh-pages manual.\n"
},
{
"from": "human",
"value": "// Application bootstrap.\n$(function() {\n // Convert any markdown sections to HTML.\n $('.md').each(function() {\n var html = $('<div></div>')\n .html((new S... | javascript | chosen |
[
{
"from": "system",
"value": "Fix PriorityQueue to actually use priority\n\nAnd add aliased versions of enqueue, dequeue\n"
},
{
"from": "human",
"value": "'use strict';\n\n// Dependencies:\nimport BinaryHeap from \"../heap/binary_heap\";\n\n// API:\nPriorityQueue.prototype.enqueue = insertWithP... | javascript | chosen |
[
{
"from": "system",
"value": "Make use of __DEV__ environment variable\n"
},
{
"from": "human",
"value": "import React from 'react'\nimport { createStore, applyMiddleware, compose } from 'redux'\nimport { Provider } from 'react-redux'\nimport thunk from 'redux-thunk'\nimport devTools from 'remot... | javascript | chosen |
[
{
"from": "system",
"value": "Remove wrong usage of 'mongoUserUrl'\n"
},
{
"from": "human",
"value": "/**\n * Module dependencies\n */\n\nvar db = require('democracyos-db');\nvar config = require('lib/config');\n\n/**\n * Expose models linker helper\n *\n * @param {Express} app `Express` instan... | javascript | chosen |
[
{
"from": "system",
"value": "Fix to init db in reset() method if needed.\n"
},
{
"from": "human",
"value": "\"use strict\"\n\nvar PointerQueue = module.exports = (function() {\n\n let Datastore = require('nedb');\n\n function PointerQueue() {\n\tthis.db = null;\n }\n\n PointerQueue.... | javascript | chosen |
[
{
"from": "system",
"value": "Use better name for extractFilterProperties function\n"
},
{
"from": "human",
"value": "'use strict'\n\n/**\n * @license\n * node-scrapy <https://github.com/eeshi/node-scrapy>\n * Copyright Stefan Maric, Adrian Obelmejias, and other contributors <https://github.com/... | javascript | chosen |
[
{
"from": "system",
"value": "Set `include css: true` option for Stylus"
},
{
"from": "human",
"value": "\nmodule.exports = function(gulp, config) {\n\n\treturn function(done) {\n\t\tif(!config.styles) return done()\n\t\tvar c = require('better-console')\n\t\tc.info('~ styles')\n\n\t\tvar cssmin... | javascript | chosen |
[
{
"from": "system",
"value": "Fix test due to additional tracking pixel"
},
{
"from": "human",
"value": "casper.test.begin('kurmis.com homepage', 8, function suite(test) {\n casper.start(\"https://www.kurmis.com/\", function() {\n test.assertTitle(\"Oliver Kurmis\", \"kurmis.com homepage tit... | javascript | chosen |
[
{
"from": "system",
"value": "Use env vars in example\n\nReplace placeholders in example/index.js with the same env vars we\nalready use for tests. This makes it quicker to verify the example works\ncorrectly.\n"
},
{
"from": "human",
"value": "// @flow\n\nconst ContactHub = require('contacthub-... | javascript | chosen |
[
{
"from": "system",
"value": "Add routes to both client and server, in case they're needed\n"
},
{
"from": "human",
"value": "Package.describe({\n summary: \"Make signin and signout their own pages with routes.\"\n});\n\nPackage.on_use(function(api) {\n api.use([\n 'deps',\n 'service-c... | javascript | chosen |
[
{
"from": "system",
"value": "Fix chat getting stuck up top when first render has history\n"
},
{
"from": "human",
"value": "const {connect} = require('react-redux'),\n\tReact = require('react');\n\nmodule.exports = connect(state => ({\n\tchat: state.chat,\n}))(class Chat extends React.Component... | javascript | chosen |
[
{
"from": "system",
"value": "Increase tree grow chance when testing\n"
},
{
"from": "human",
"value": "import Phaser from 'phaser';\nimport Tree from '../Tree';\n\nconst chanceToGrow = 10;\n\nexport default function place() {\n this.placed = true;\n\n this.game.time.events.add(Phaser.Timer.SE... | javascript | chosen |
[
{
"from": "system",
"value": "Reset search query on location change\n"
},
{
"from": "human",
"value": "import {\n SEARCH_QUERY,\n FETCH_ENDPOINTS_START,\n FETCH_OAUTH_SERVERS_LIST_START,\n} from '../constants';\n\nexport const initialState = {\n searchQuery: '',\n};\n\nexport default... | javascript | chosen |
[
{
"from": "system",
"value": "Add js for image changes\n"
},
{
"from": "human",
"value": "\n/* Highlight */\n$( document ).ready(function() {\n hljs.initHighlightingOnLoad();\n $('table').addClass('table table-striped table-hover');\n});\n\n\n$('body').scrollspy({\n target: '.bs-sidebar... | javascript | chosen |
[
{
"from": "system",
"value": "Fix tests for function bodies when run via npm test\n"
},
{
"from": "human",
"value": "\nfunction shortFunc(a, b) { return a + b; }\n\nfunction longFunc(a, b) {\n console.log('This ia long func', a + b);\n console.log('With multiple lines');\n}\n\nfunction lon... | javascript | chosen |
[
{
"from": "system",
"value": "Fix condition whether pushState exists or not\n"
},
{
"from": "human",
"value": "var ContribBox = React.createClass({\n render: function() {\n return <div />;\n }\n});\n\nvar SearchBox = React.createClass({\n getInitialState: function () {\n c... | javascript | chosen |
[
{
"from": "system",
"value": "Add cations like redux strucure\n"
},
{
"from": "human",
"value": "import fetch from 'isomorphic-fetch'\n\nexport const REQUEST_BUS_STOPS = 'REQUEST_BUS_STOPS'\nexport const RECEIVE_BUS_STOPS = 'RECEIVE_BUS_STOPS'\n\nfunction requestBusStops(meters, coors) {\n retu... | javascript | chosen |
[
{
"from": "system",
"value": "Add filter to command loader - remove non-js files\n"
},
{
"from": "human",
"value": "var api = require('digio-api')\n, cmd = require('./cli')\n, fs = require('fs')\n, _package = require('../package.json')\n, tools = require('./tools')\n\nvar digio = (function () {\... | javascript | chosen |
[
{
"from": "system",
"value": "Add type logging on creating unknown social type\n"
},
{
"from": "human",
"value": "var social = {\n facebook: require('./FacebookSocial')\n};\n\nmodule.exports = {\n /**\n * Create instance of social service\n * @param {String} type\n * @param {Object} conf... | javascript | chosen |
[
{
"from": "system",
"value": "[form-builder] Make latlon example use PatchEvent\n"
},
{
"from": "human",
"value": "import React, {PropTypes} from 'react'\n\nexport default class MyCustomLatLonInput extends React.Component {\n\n static propTypes = {\n value: PropTypes.object,\n onChange: P... | javascript | chosen |
[
{
"from": "system",
"value": "Fix basic export for JSPM\n"
},
{
"from": "human",
"value": "export A from './A';\nexport BLOCKQUOTE from './Blockquote';\nexport CODEBLOCK from './CodeBlock';\nexport DEL from './Del';\nexport EM from './Em';\nexport H from './H';\nexport HR from './Hr';\nexport IM... | javascript | chosen |
[
{
"from": "system",
"value": "Fix a bug where query strings would 404\n"
},
{
"from": "human",
"value": "/*\n\nSets up a connect server to work from the /build folder. May also set up a\nlivereload server at some point.\n\n*/\n\nvar fs = require(\"fs\");\nvar path = require(\"path\");\n\nmodule.... | javascript | chosen |
[
{
"from": "system",
"value": "Add Bootstrap JS include directive\n"
},
{
"from": "human",
"value": "// This is a manifest file that'll be compiled into application.js, which will include all the files\n// listed below.\n//\n// Any JavaScript/Coffee file within this directory, lib/assets/javascri... | javascript | chosen |
[
{
"from": "system",
"value": "Remove old modals when we create new ones, to free memory.\n"
},
{
"from": "human",
"value": "$(document).ready(function() {\n function LessonPlanEntryFormType(pickers) {\n var self = this;\n this.pickers = pickers;\n pickers.forEach(function(picker) {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Set loading to false when selecting a new project\n"
},
{
"from": "human",
"value": "// Copyright (c) 2013 Tom Steele, Dan Kottmann, FishNet Security\n// See the file license.txt for copying permission\n\nTemplate.projects.projects = function() {\n return Projects.... | javascript | chosen |
[
{
"from": "system",
"value": "Fix chart client API URL config\n"
},
{
"from": "human",
"value": "function handleResponse(response) {\n if(response.ok) {\n return response.json();\n } else {\n throw Error('unable to load data: ' + response.statusText);\n }\n}\n\nconst assetsBaseUrl = doc... | javascript | chosen |
[
{
"from": "system",
"value": "feat: Create database for nearby stations\n\n"
},
{
"from": "human",
"value": "import Ember from 'ember';\n\nexport default Ember.Route.extend({\n indexedDbPromised: Ember.inject.service('indexed-db'),\n beforeModel () {\n // Create or open Database before defa... | javascript | chosen |
[
{
"from": "system",
"value": "Fix indentation of the Clike grammar\n"
},
{
"from": "human",
"value": "define(function() {\n\n\t// Export\n\treturn function(Prism) {\n\n\t\tPrism.languages.clike = {\n\t\t\t'comment': {\n\t\t\t\tpattern: /(^|[^\\\\])(\\/\\*[\\w\\W]*?\\*\\/|(^|[^:])\\/\\/.*?(\\r?\\... | javascript | chosen |
[
{
"from": "system",
"value": "TEST: Add test for error summary when validating form errors\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar log = require('../modules/log');\nvar util = require('util');\n\nexports.command = function(errorText, callback) {\n var client = this;\n errorText... | javascript | chosen |
[
{
"from": "system",
"value": "Handle race condition between stat and mkdir\n"
},
{
"from": "human",
"value": "\nvar log = require(\"../utils/log\")\n , fs = require(\"fs\")\n , path = require(\"path\")\n\nmodule.exports = mkdir\nfunction mkdir (ensure, chmod, cb) {\n if (ensure.charAt(0) !== ... | javascript | chosen |
[
{
"from": "system",
"value": "Add a the missing \"blaze\" runtime dependency\n"
},
{
"from": "human",
"value": "Package.describe({\n summary: \"Jade template language\",\n version: \"0.4.3\",\n name: \"mquandalle:jade\",\n git: \"https://github.com/mquandalle/meteor-jade.git\",\n documentat... | javascript | chosen |
[
{
"from": "system",
"value": "Set focus back to previous app when Cerebro window is hidden\n"
},
{
"from": "human",
"value": "/**\n * Show or hide main window\n * @return {BrowserWindow} appWindow\n */\nexport default (appWindow) => {\n if (appWindow.isVisible()) {\n appWindow.hide()\n } el... | javascript | chosen |
[
{
"from": "system",
"value": "Make the last one a bit difficult."
},
{
"from": "human",
"value": "// 9: object-literals - basics\n// To do: make all tests pass, leave the asserts unchanged!\n\ndescribe('new shorthands for objects', () => {\n\n const x = 1;\n const y = 2;\n\n describe('with va... | javascript | chosen |
[
{
"from": "system",
"value": "Add name function in query\n"
},
{
"from": "human",
"value": "const express = require('express')\nconst router = express.Router()\nconst models = require('../models')\nconst response = require('./response')\n\nrouter.post('/', function (req, res) {\n const team = r... | javascript | chosen |
[
{
"from": "system",
"value": "Make createDictionary test more robust; still passes\n"
},
{
"from": "human",
"value": "'use strict';\n\ndescribe(\"WordCount\", function() {\n var words;\n\n beforeEach(function() {\n words = new WordCount(\"This is a string; great, stuff\");\n });\n\n descr... | javascript | chosen |
[
{
"from": "system",
"value": "Watch files which fail before emitting a resource\n\nRegression introduced by the CSS watching code (specifically, f230eba62)\nby the sourceIsWatched check. We need to be able to tell the difference\nbetween \"source handler didn't do anything because there was an error\"\nand ... | javascript | chosen |
[
{
"from": "system",
"value": "Comment out service worker :(\n"
},
{
"from": "human",
"value": "(function() {\n 'use strict';\n\n if ('serviceWorker' in navigator) {\n navigator.serviceWorker.register('../sw.js').then(function() {\n console.log('Installed the Service Worke... | javascript | chosen |
[
{
"from": "system",
"value": "Make shapes reappear when navigating back to the homepage\n"
},
{
"from": "human",
"value": "function setupNavigation() {\n var anchors = document.getElementsByTagName(\"a\");\n var sub_navigation_bars = document.getElementsByClassName(\"sub-navigation\");\n\n... | javascript | chosen |
[
{
"from": "system",
"value": "Fix mini player resizing bugs\n\n"
},
{
"from": "human",
"value": "const mainWindows = WindowManager.getAll('main');\nconst mainWindow = mainWindows[0];\n\nlet mini = false;\nEmitter.on('mini', (event, state) => {\n mini = state.state;\n});\n\nconst _save = () => {... | javascript | chosen |
[
{
"from": "system",
"value": "Add layout-top-nav class to remove sidebar\n"
},
{
"from": "human",
"value": "Template.dashboardLayout.rendered = function () {\n // Get reference to page body\n var body = $(\"body\");\n\n // Make sure page fills viewport by triggering resize event\n body.trigg... | javascript | chosen |
[
{
"from": "system",
"value": "Add semicolon at the end of the file\n"
},
{
"from": "human",
"value": "import {store} from \"./store/store\";\nimport Photos from \"./components/Photos.vue\";\nimport Theater from \"./components/Theater.vue\";\n\nexport {\n store,\n Photos,\n Theater\n}\n"... | javascript | chosen |
[
{
"from": "system",
"value": "Use `selected = false`, over `_.omit` to deselect a source\n\nFrom a basic functionality standpoint, this accomplishes the same purpose as\nthe previous implementation using `_.omit`. However, rather than removing the\n`selected` attribute from the sources, this will keep the s... | javascript | chosen |
[
{
"from": "system",
"value": "Add 'isDeleted' field to Post schema\n"
},
{
"from": "human",
"value": "module.exports = (db, Sequelize) => {\n const Post = db.define('posts', {\n id: {\n type: Sequelize.INTEGER,\n autoIncrement: true,\n primaryKey: true,\n },\n body: Sequ... | javascript | chosen |
[
{
"from": "system",
"value": "Add incremental default settings merging \n"
},
{
"from": "human",
"value": "\n'use strict';\n\n/*\n * Module for handling and saving various different user preferences\n */\n\nangular.module('settings')\n.factory('settingsFactory', function ($localStorage, configFa... | javascript | chosen |
[
{
"from": "system",
"value": "Add support for multiple elements\n"
},
{
"from": "human",
"value": "/**\n * Define the `View` class as a jQuery plugin.\n */\n\nvar $ = require('jquery')\nvar View = require('./src/View')\nvar Template = require('./src/Template')\n\n$.fn.view = function (options) {... | javascript | chosen |
[
{
"from": "system",
"value": "Remove unnecessary call to isoWeekday\n"
},
{
"from": "human",
"value": "import moment from \"moment\";\n\nfunction initLocale(name, config) {\n try {\n moment.locale(name, config);\n } catch (error) {\n throw new Error(\n \"Locale prop is not in the co... | javascript | chosen |
[
{
"from": "system",
"value": "Add 'command+shift+c' to open dev tools\n"
},
{
"from": "human",
"value": "\nimport Combokeys from 'combokeys'\nimport hookGlobalBind from 'combokeys/plugins/global-bind'\n\nconst combo = new Combokeys(document.documentElement)\nhookGlobalBind(combo)\n\nimport {remo... | javascript | chosen |
[
{
"from": "system",
"value": "Fix for not showing all reports on backslash\n"
},
{
"from": "human",
"value": "Session.setDefault('searchBy', 'Navn');\nSession.setDefault('searchQuery', '');\n\nTemplate.Search.events({\n 'click .dropdown-menu li': function(event, tmpl) {\n var chosenAttribute... | javascript | chosen |
[
{
"from": "system",
"value": "Allow static assets to be served.\n"
},
{
"from": "human",
"value": "var express = require(\"express\");\nvar logfmt = require(\"logfmt\");\nvar app = express();\n\napp.use(logfmt.requestLogger());\n\napp.get('/', function(req, res) {\n res.send('Hello World!');\n}... | javascript | chosen |
[
{
"from": "system",
"value": "Update lesson title in database.\n"
},
{
"from": "human",
"value": "Template.courseSidebarSection.helpers({\n 'lessons': function () {\n // Get lesson IDs array\n var lessonIDs = this.lessonIDs;\n\n // Get lessons from database\n var l... | javascript | chosen |
[
{
"from": "system",
"value": "Remove deprecated watch delay from web pack "
},
{
"from": "human",
"value": "var gulp = require('gulp')\nvar join = require('path').join\nvar express = require('express')\nvar WebpackDevServer = require('webpack-dev-server')\nvar webpack = require('./support/webpac... | javascript | chosen |
[
{
"from": "system",
"value": "Use a scale of colours from green to red\n"
},
{
"from": "human",
"value": "function loadHeatmap(url) {\n var deferred = $.Deferred();\n\n $.getJSON(url, function(json) {\n $('#stations').removeClass('hidden');\n $('#loading').addClass('hidden');\n\n json... | javascript | chosen |
[
{
"from": "system",
"value": "Update help message with watch commands\n"
},
{
"from": "human",
"value": "import issues from './issues'\nimport watch from './watch'\nimport webhooks from './webhooks'\n\nconst displayHelp = (bot, message) => bot.reply(message, `\n Here are some of the things I ca... | javascript | chosen |
[
{
"from": "system",
"value": "Bring bouncing balls JS in line with tutorial text\n\nOn https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Objects/Object_building_practice, the random function generates a number in [min, max], whereas in the provided main.js file it is [min, max)."
},
{
"from"... | javascript | chosen |
[
{
"from": "system",
"value": "Make dev server accessible on lan\n"
},
{
"from": "human",
"value": "var webpack = require('webpack');\nvar config = require('./webpack.config.js');\n\nconfig.entry = [\n 'webpack-dev-server/client?http://localhost:8888',\n 'webpack/hot/only-dev-server'\n].concat(... | javascript | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.