conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Use closure-util's ignoreRequires for the examples\n"
},
{
"from": "human",
"value": "var path = require('path');\nvar url = require('url');\n\nvar closure = require('closure-util');\nvar nomnom = require('nomnom');\n\nvar log = closure.log;\n\nvar options = nomnom.... | javascript | chosen |
[
{
"from": "system",
"value": "Use more robust check before using noConflict() mode\n\nBasically detect the case when L is already the same Leaflet library instance\nthat was loaded by some other extension, in which case there is no need to use\nnoConflict. This does not address the problem of plugins assumi... | javascript | chosen |
[
{
"from": "system",
"value": "Add more comments to the CasperJS test\n"
},
{
"from": "human",
"value": "/**\n * homepage.js - Homepage tests.\n */\n\nvar x = require('casper').selectXPath;\ncasper.options.viewportSize = {width: 1920, height: 961};\ncasper.on('page.error', function(msg, trace) {\... | javascript | chosen |
[
{
"from": "system",
"value": "Update languages literals in subscription selector\n"
},
{
"from": "human",
"value": "define([], function() {\n\n /**\n * List of the key languages of the platform\n */\n\n var languageList = {\n en: 'English',\n zh: '中文',\n fr: 'Français',\n id: 'Ba... | javascript | chosen |
[
{
"from": "system",
"value": "Make a converter robust against missing paragraph.\n"
},
{
"from": "human",
"value": "import { findChild, findAllChildren } from '../util/domHelpers'\n\n/**\n * A converter for JATS `<disp-quote>`.\n * Our internal model deviates from the original one in that the th... | javascript | chosen |
[
{
"from": "system",
"value": "[YouTrack] Fix project name fetch regression"
},
{
"from": "human",
"value": "/*jslint indent: 2 */\n/*global $: false, document: false, togglbutton: false*/\n'use strict';\n\n/* the first selector is required for youtrack-5 and the second for youtrack-6 */\ntogglbu... | javascript | chosen |
[
{
"from": "system",
"value": "Fix \"util not defined\" error from merge conflict\n"
},
{
"from": "human",
"value": "var _ = require('lodash');\nvar async = require('async');\n\nvar joy = require('./joy/joy.js');\n\nvar schemas = {\n 'basal-rate-segment': require('./basal'),\n bolus: require('.... | javascript | chosen |
[
{
"from": "system",
"value": "Fix address to work online\n"
},
{
"from": "human",
"value": "var util = require('util'),\n webdriver = require('selenium-webdriver');\n\nvar driver = new webdriver.Builder().\n usingServer('http://localhost:4444/wd/hub').\n withCapabilities({'browserName':... | javascript | chosen |
[
{
"from": "system",
"value": "Add example for swedish grandparent names\n"
},
{
"from": "human",
"value": "var expect = require('chai').expect;\nvar permuterFactory = require('../index').permuterFactory;\n\ndescribe('permuter', function () {\n it('should work stand-alone', function () {\n va... | javascript | chosen |
[
{
"from": "system",
"value": "Send the data to the save method.\n"
},
{
"from": "human",
"value": "// Dpeendencies\nvar EngineParserGen = require(\"../lib\");\n\n// \"test-app\" should be a valid Engine app in $ENGINE_APPS dir\nvar epg = new EngineParserGen(\"test-app\");\n//epg.parse(function (... | javascript | chosen |
[
{
"from": "system",
"value": "Add localStorage.extend with recursive support (but no typechecking)"
},
{
"from": "human",
"value": "/*\nWonder how this works?\nStorage is the Prototype of both localStorage and sessionStorage.\nGot it?\n*/\n\n(function() {\n 'use strict';\n\n Storage.prototype.... | javascript | chosen |
[
{
"from": "system",
"value": "Fix a weird logger instantiation\n"
},
{
"from": "human",
"value": "import compileClient from \"../compileClient\"\nimport handleCompilationErrors from \"../handleCompilationErrors\";\nimport setupLogging from \"../setupLogging\";\nimport logProductionWarnings from ... | javascript | chosen |
[
{
"from": "system",
"value": "Update test for Node 0.10\n"
},
{
"from": "human",
"value": "var chai = require('chai');\nvar chaiAsPromised = require('chai-as-promised');\n\nchai.use(chaiAsPromised);\n\nvar expect = chai.expect;\nvar rollupBabelLibBundler = require('../lib');\n\ndescribe('rollup-... | javascript | chosen |
[
{
"from": "system",
"value": "Print end as \"nothing\" instead of \"no any object\"\n"
},
{
"from": "human",
"value": "// --------------------------------------------------------------------\n// Imports\n// --------------------------------------------------------------------\n\nvar common = requ... | javascript | chosen |
[
{
"from": "system",
"value": "Refactor: Add test if store use app reducer\n"
},
{
"from": "human",
"value": "import store from \"src/stores/Store.js\";\n\ndescribe(\"store\", () => {\n\n it(\"should exist\", () => {\n store.should.exist;\n });\n\n it(\"should have all API methods\", () => ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix issue on match vm title\n"
},
{
"from": "human",
"value": "import Ember from 'ember';\n\nexport default Ember.Component.extend({\n isShowingHover: false,\n\n commitTitle: function() {\n if (this.get('vm.commit.title').match(/^Merge/)) {\n return this.g... | javascript | chosen |
[
{
"from": "system",
"value": "Print console messages by default in the emulator\n"
},
{
"from": "human",
"value": "import DefaultConfig from 'anyware/lib/game-logic/config/default-config';\nimport GAMES from 'anyware/lib/game-logic/constants/games';\n\nclass Config extends DefaultConfig {\n con... | javascript | chosen |
[
{
"from": "system",
"value": "Update the version test case\n"
},
{
"from": "human",
"value": "define(function (require) {\n\n var a = require('./a.js?v=1.0');\n var a2 = require('./a.js?v=2.0');\n\n var test = require('../../test');\n test.assert(a.foo === 1, 'module version.');\n test.asse... | javascript | chosen |
[
{
"from": "system",
"value": "Remove cache on build folder\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar config = require('./server/config');\nvar express = require('express');\nvar handlebars = require('express-handlebars');\nvar app = express();\n\n// Middlewares configuration\nvar ... | javascript | chosen |
[
{
"from": "system",
"value": "Return empty list on non match\n"
},
{
"from": "human",
"value": "'use strict';\n\nmodule.exports = {\n getClassesFromSelector: function (selector) {\n if (!selector) {\n return [];\n }\n var classRegEx = /[_a-zA-Z][_a-zA-Z0-9-]*/g... | javascript | chosen |
[
{
"from": "system",
"value": "Use \"dots\" karma reporter (for Travis CI web UI)\n"
},
{
"from": "human",
"value": "var webpack = require('webpack');\n\nmodule.exports = function (config) {\n config.set({\n\n browsers: [ process.env.CONTINUOUS_INTEGRATION ? 'Firefox' : 'Chrome' ],\n\n sin... | javascript | chosen |
[
{
"from": "system",
"value": "Define a dubious comment rule.\n"
},
{
"from": "human",
"value": "module.exports = grammar({\n name: 'ruby',\n\n rules: {\n program: $ => $._compound_statement,\n\n\t_compound_statement: $ => seq($._statement, rep(seq($._terminator, $._expression)), optional($.... | javascript | chosen |
[
{
"from": "system",
"value": "Use `process.env.NODE_TLS_REJECT_UNAUTHORIZED` to make insecure calls.\n"
},
{
"from": "human",
"value": "import _ from 'lodash'\nimport https from 'https'\nimport axios from 'axios'\nimport * as task from './task'\nimport pipe from './pipe'\nimport pipes from './pi... | javascript | chosen |
[
{
"from": "system",
"value": "Refresh protocol list after protocol removal\n"
},
{
"from": "human",
"value": "'use strict';\n\nindexApp.controller('ProtocolListController',\n function ProtocolListController($scope, indexData, $location){\n $scope.protocolList = indexData.getProtocolLis... | javascript | chosen |
[
{
"from": "system",
"value": "Build and tests work, now testing that it will actually fail if a test fails\n"
},
{
"from": "human",
"value": "/* globals Player: false, Song: false */\n\ndescribe('Player', function() {\n var player;\n var song;\n\n beforeEach(function() {\n player = new Pla... | javascript | chosen |
[
{
"from": "system",
"value": "Move eslint-disable no-undef to a global comment\n\nSummary:\nSwitch the only `// eslint-disable no-undef` to defined the global instead so that the new babel-eslint-no-undef compile time check doesn't need to understand inline eslint comments.\n\nChangelog: [Internal]\n\nRevie... | javascript | chosen |
[
{
"from": "system",
"value": "Add initials and lower random number\n"
},
{
"from": "human",
"value": "var _ = require('underscore');\n\nmodule.exports = function(name) {\n \n var nameConversions = [\n firstInitialAndLastName = /^(\\w).*\\s(\\w+)$/,\n firstAndLastName = /^(\\w+)\\s(\\w+)$... | javascript | chosen |
[
{
"from": "system",
"value": "Fix video view and remove some sub components\n\n- Fixes #28\n"
},
{
"from": "human",
"value": "import React from 'react'\nimport { connect } from 'react-redux'\nimport { compose } from 'recompose'\n\nimport { updateVideo } from '../../actions/videos'\n\nimport { wi... | javascript | chosen |
[
{
"from": "system",
"value": "Adjust user model to populate locations correctly\n"
},
{
"from": "human",
"value": "const mongoose = require('mongoose');\nconst Schema = mongoose.Schema\n\n\nvar userSchema = new Schema({\n name: {type: String, required: true},\n photo: {type: String, requir... | javascript | chosen |
[
{
"from": "system",
"value": "Set mongoose to use native promises\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar mongoose = require('mongoose');\n\nmongoose.model('User', require('./User'));\n\nmongoose.connect(\"mongodb://localhost/passport-lesson\");\n\nmodule.exports = mongoose;\n"
... | javascript | chosen |
[
{
"from": "system",
"value": "WebApp-4b: Sort tasks by createdAt timestamp\n"
},
{
"from": "human",
"value": "// simple-todos.js\n\n// TODO: Add tasks from console to populate collection\n// On Server:\n// db.tasks.insert({ text: \"Hello world!\", createdAt: new Date() });\n// On Client:\n// Tas... | javascript | chosen |
[
{
"from": "system",
"value": "Enable sidebar on API docs\n"
},
{
"from": "human",
"value": "self.$config = {\n landing: false,\n debug: false,\n repo: 'soruly/whatanime.ga',\n twitter: 'soruly',\n url: 'https://whatanime.ga',\n sidebar: false,\n disableSidebarToggle: true,\n nav: {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Use new scheme for npmcdn\n"
},
{
"from": "human",
"value": "var loaders = [\n { test: /\\.json$/, loader: \"json-loader\" },\n];\n\nmodule.exports = [\n {// Notebook extension\n entry: './src/extension.js',\n output: {\n filename: 'ex... | javascript | chosen |
[
{
"from": "system",
"value": "Fix issue where users were not saving to the database.\n\nWe use .fetchAll() rather than .fetch() to find\nall instances of a user. Added auto-timestamp\nfunctionality so all create and update times are\nautomatically marked with no manual intervention needed.\n"
},
{
"... | javascript | chosen |
[
{
"from": "system",
"value": "fix(Spellchecker): Fix disabling spellchecker after app start\n"
},
{
"from": "human",
"value": "import { autorun, observable } from 'mobx';\n\nimport { DEFAULT_FEATURES_CONFIG } from '../../config';\n\nconst debug = require('debug')('Franz:feature:spellchecker');\n... | javascript | chosen |
[
{
"from": "system",
"value": "Clear user login state in Redux on logout.\n"
},
{
"from": "human",
"value": "// @flow\nimport * as React from 'react'\nimport { Redirect } from 'react-router-dom'\nimport performLogout from 'frontend/firebase/logout'\n\nclass Logout extends React.Component<*> {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Update to unexpected v10's addAssertion syntax [ci skip].\n"
},
{
"from": "human",
"value": "/*global Uint8Array*/\nvar exifParser = require('exif-parser'),\n fs = require('fs');\n\nmodule.exports = {\n name: 'unexpected-exif',\n version: require('../packag... | javascript | chosen |
[
{
"from": "system",
"value": "Add guard to process error log\n\nIn case process is still running when package is disabled.\n"
},
{
"from": "human",
"value": "/** @babel */\n\nimport childProcess from 'child_process'\nimport kill from 'tree-kill'\nimport { Disposable } from 'atom'\n\nexport defau... | javascript | chosen |
[
{
"from": "system",
"value": "Make the skeleton survey JS compatible with the new JS templates.\n"
},
{
"from": "human",
"value": "/* Copyright 2011 the Melange authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance w... | javascript | chosen |
[
{
"from": "system",
"value": "Build base instead of preflight\n"
},
{
"from": "human",
"value": "import fs from 'fs'\nimport postcss from 'postcss'\nimport tailwind from '..'\nimport CleanCSS from 'clean-css'\n\nfunction buildDistFile(filename) {\n return new Promise((resolve, reject) => {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Increment `retries` variable in a way that pleases `jshint`.\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar net = require('net'),\n utils = require('radiodan-client').utils,\n logger = utils.logger(__filename);\n\nfunction create(port, socket) {\n... | javascript | chosen |
[
{
"from": "system",
"value": "Update keyword and asset_url fields to accept arrays.\n\nResolves #16\n"
},
{
"from": "human",
"value": "'use strict';\n\nexports.up = function(knex, Promise) {\n return knex.schema.\n createTable('paths', function (t) {\n t.increments('id');\n t.text(... | javascript | chosen |
[
{
"from": "system",
"value": "Fix a bad reference value in the Internal Note model.\n"
},
{
"from": "human",
"value": "var keystone = require('keystone'),\n Types = keystone.Field.Types;\n\n// Create model. Additional options allow menu name to be used what auto-generating URLs\nvar InternalN... | javascript | chosen |
[
{
"from": "system",
"value": "Add at first position in grid\n"
},
{
"from": "human",
"value": "define([\n \"less!src/stylesheets/main.less\"\n], function() {\n var manager = new codebox.tabs.Manager();\n\n // Add tabs to grid\n codebox.app.grid.addView(manager, {\n width: 20\n... | javascript | chosen |
[
{
"from": "system",
"value": "Remove whitespace & use same order as in readme\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\nvar argv = process.argv.splice(2)\nvar log = require('./helpers/log.js')\nvar whitelist = ['build', 'run', 'test', 'lint', 'setup']\n\nif (argv.length === 0 || ar... | javascript | chosen |
[
{
"from": "system",
"value": "Revert proxy handler change for coverage\n"
},
{
"from": "human",
"value": "module.exports = function mutableProxyFactory(defaultTarget) {\n let mutableHandler;\n let mutableTarget;\n\n function setTarget(target) {\n if (!(target instanceof Object)) {\n t... | javascript | chosen |
[
{
"from": "system",
"value": "Fix for nnumbers to show\\hide fields\n"
},
{
"from": "human",
"value": "function setInterest(targeturl, state, csrftoken)\n{\n $.post(targeturl,\n {\n csrfmiddlewaretoken:csrftoken,\n state:state\n });\n}\n\nfunction toggleInterest(o, targeturl, csrftoken)... | javascript | chosen |
[
{
"from": "system",
"value": "Rewrite toJSON to eliminate null values\n"
},
{
"from": "human",
"value": "ds.models.tag = function(data) {\n \"use strict\";\n\n var storage = {}\n , self = {}\n\n limivorous.observable(self, storage)\n .property(self, 'id', storage)\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Linter: Fix bug checking root of project.\n"
},
{
"from": "human",
"value": "'use strict'\n\nmodule.exports = function (dep) {\n let cmd = {}\n cmd.command = 'lint'\n cmd.desc = 'Run linters and fix possible code'\n cmd.handler = function (argv) {\n let { joi... | javascript | chosen |
[
{
"from": "system",
"value": "Fix a problem of deltaX and deltaY\n\nSigned-off-by: Dongyun Jin <25d657a5cae33e06b1c3348113f358ba8b6c833f@gmail.com>\n"
},
{
"from": "human",
"value": "document.addEventListener(\"wheel\", function(e) {\n if (e.shiftKey && e.deltaX != 0) {\n window.history.go(-... | javascript | chosen |
[
{
"from": "system",
"value": "Fix admin not being able to access reqs\n"
},
{
"from": "human",
"value": "var OwerRequestModel = require('../models/requests/owerRequest.js')\n , error = require('../utils/error.js');\n\nvar allOwerRequests = function(req, res) {\n var facebookId = req... | javascript | chosen |
[
{
"from": "system",
"value": "refactor: Change adapter namespace to api\n\n"
},
{
"from": "human",
"value": "import LFAdapter from 'ember-localforage-adapter/adapters/localforage';\n\nexport default LFAdapter.extend({\n namespace: 'expenses',\n caching: 'model'\n});\n"
},
{
"from": "gp... | javascript | chosen |
[
{
"from": "system",
"value": "test: Add test that ensures all V1 APIs exist when the library is imported.\n"
},
{
"from": "human",
"value": "describe('skatejs-web-components', () => {\n\n});\n"
},
{
"from": "gpt",
"value": "import '../src/index';\n\ndescribe('skatejs-web-components',... | javascript | chosen |
[
{
"from": "system",
"value": "Use fetchFunction instead of currying functions\n"
},
{
"from": "human",
"value": "import React, { Component } from 'react';\nimport Fetch, { renderChildren } from 'react-fetch-component';\nimport buildQuery from 'odata-query';\n\nfunction buildUrl(baseUrl, query) {... | javascript | chosen |
[
{
"from": "system",
"value": "Add updateTime check to test.\n"
},
{
"from": "human",
"value": "//\n// Tests for BitGo Object\n//\n// Copyright 2014, BitGo, Inc. All Rights Reserved.\n//\n\nvar assert = require('assert');\nvar should = require('should');\n\nvar BitGoJS = require('../src/index');... | javascript | chosen |
[
{
"from": "system",
"value": "Add test for flat objects\n"
},
{
"from": "human",
"value": "'use strict';\n\n/* global describe it */\n\nvar assert = require('assert');\n\nvar flattenObjectStrict = require('../lib');\n\ndescribe('flatten-object-strict', function() {\n it('an empty object produce... | javascript | chosen |
[
{
"from": "system",
"value": "Make the config dependency's origin\n\nSet in global namespace from a script tag rendered by Rails app\n"
},
{
"from": "human",
"value": "var Router = require('new_dashboard/router');\nvar $ = require('jquery');\nvar cdb = require('cartodb.js');\nvar MainView = requ... | javascript | chosen |
[
{
"from": "system",
"value": "Remove model hack--no longer needed for lists\n"
},
{
"from": "human",
"value": "/*\n * Copyright (C) 2012 salesforce.com, inc.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the Lice... | javascript | chosen |
[
{
"from": "system",
"value": "Disable Firefox until their ShadowDOM is in place\n"
},
{
"from": "human",
"value": "module.exports = function(config) {\n config.set({\n basePath: process.env['INIT_CWD'],\n frameworks: ['mocha', 'chai', 'karma-typescript', 'sinon'],\n browsers: ['ChromeH... | javascript | chosen |
[
{
"from": "system",
"value": "Remove telemetry config from 2.0 sample\n"
},
{
"from": "human",
"value": "// Config object to be passed to Msal on creation\nconst msalConfig = {\n auth: {\n clientId: \"e3b9ad76-9763-4827-b088-80c7a7888f79\",\n authority: \"https://login.microsoft... | javascript | chosen |
[
{
"from": "system",
"value": "Check for safe version of libmraa0 before installing own copy.\n\n- Displays information during postinstall to help user understand the process\n"
},
{
"from": "human",
"value": "require(\"es6-shim\");\n\nvar exec = require(\"child_process\").exec;\nvar os = require... | javascript | chosen |
[
{
"from": "system",
"value": "Check that middlewares get triggered properly\n"
},
{
"from": "human",
"value": "var async = require('async');\nvar request = require('request');\nvar sugar = require('object-sugar');\n\nvar rest = require('../lib/rest-sugar');\nvar serve = require('./serve');\nvar ... | javascript | chosen |
[
{
"from": "system",
"value": "Editor: Save scene when enabling autosave."
},
{
"from": "human",
"value": "/**\n * @author mrdoob / http://mrdoob.com/\n */\n\nMenubar.Status = function ( editor ) {\n\n\tvar container = new UI.Panel();\n\tcontainer.setClass( 'menu right' );\n\n\tvar checkbox = new... | javascript | chosen |
[
{
"from": "system",
"value": "Fix SC.Record statusString unit test\n"
},
{
"from": "human",
"value": "// ==========================================================================\n// Project: SproutCore - JavaScript Application Framework\n// Copyright: ©2006-2009 Apple, Inc. and contributors.... | javascript | chosen |
[
{
"from": "system",
"value": "Validate files under lib with jshint\n"
},
{
"from": "human",
"value": "//\n// https://github.com/kogakure/gulp-tutorial/blob/master/gulp/config.js\n//\nvar banner = [\n '/**',\n ' * <%= pkg.name %> - <%= pkg.description %>',\n ' * <%= pkg.author %>',\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Refactor to avoid dynamic module resolution\n"
},
{
"from": "human",
"value": "'use strict';\n\n/**\n* Allocate a buffer containing a provided string.\n*\n* @module @stdlib/buffer/from-string\n*\n* @example\n* var string2buffer = require( '@stdlib/buffer/from-string... | javascript | chosen |
[
{
"from": "system",
"value": "Convert export to a class with a pulse detector function\n"
},
{
"from": "human",
"value": "var Transmitter = function (config) {\n\n var router = require('./router.js');\n router(config);\n\n var io = require('socket.io')(router.server);\n // Socket.io connecti... | javascript | chosen |
[
{
"from": "system",
"value": "Add logger to export modules.\n"
},
{
"from": "human",
"value": "/**\n *\n * ___| | | | |\n * | | | | |\n * | ___ |___ __|\n * \\____|_| _| _|\n *\n * @author Shinichirow KAMITO\n * @license MIT\n */\nimport {\n createStore,\n destroyStore,\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Remove unnecessary use of spread\n"
},
{
"from": "human",
"value": "export function createSelectorCreator(valueEquals) {\n return (selectors, resultFunc) => {\n if (!Array.isArray(selectors)) {\n selectors = [selectors];\n }\n cons... | javascript | chosen |
[
{
"from": "system",
"value": "Fix the bug where a mob can't be put back to 0\n"
},
{
"from": "human",
"value": "import Ember from 'ember';\nimport _ from 'lodash/lodash';\nimport steps from '../ressources/ocre-quest';\n\nexport default Ember.Component.extend({\n progress: '',\n stepIndex: ... | javascript | chosen |
[
{
"from": "system",
"value": "Add support for choosing promises or callbacks\n\nFor testing and demo\n"
},
{
"from": "human",
"value": "var FileLoader = require(\"file_loader\");\n\nvar args = arguments[0] || {};\nvar url = \"http://photos.tritarget.org/photos/washington2012/\" + args.photo;\n\n... | javascript | chosen |
[
{
"from": "system",
"value": "Fix 'No Files Found\" showing when files are found\n"
},
{
"from": "human",
"value": "import Ember from 'ember';\n\nexport default Ember.Component.extend({\n showSelect: false,\n noFileFound: true,\n didRender() {\n if(!this.get('layer.settings.value... | javascript | chosen |
[
{
"from": "system",
"value": "Fix accidental change of fromJSON() to create().\n"
},
{
"from": "human",
"value": "// If we're in Node.js then require VTTRegion so we can extend it, otherwise assume\n// VTTRegion is on the global.\nif (typeof module !== \"undefined\" && module.exports) {\n this.... | javascript | chosen |
[
{
"from": "system",
"value": "Make the flash message dismissable\n"
},
{
"from": "human",
"value": "$(document)\n .ready(function() {\n\n // fix menu when passed\n $('.masthead')\n .visibility({\n once: false,\n onBottomPassed: function() {\n $('.fixed.menu').t... | javascript | chosen |
[
{
"from": "system",
"value": "Change names to be more self-explanatory\n"
},
{
"from": "human",
"value": "var express = require('express');\nvar request = require('request');\nvar http = require('http');\nvar router = express.Router();\nvar fixtures = require('./fixtures');\n\n/* GET home page. ... | javascript | chosen |
[
{
"from": "system",
"value": "Add capitalize-first function to String"
},
{
"from": "human",
"value": "/* FILE string.js */\n\n(function () {\n \n this.sparks.string = {};\n \n var str = sparks.string;\n \n str.strip = function (s) {\n s = s.replace(/\\s*([^\\s]*)\\s*/, ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix deprecation warnings for Ember 1.10.0.\n"
},
{
"from": "human",
"value": "import Ember from 'ember';\n\nexport default Ember.Mixin.create({\n hasPaginationSupport: true,\n total: 0,\n page: 0,\n pageSize: 10,\n didRequestPage: Ember.K,\n\n firs... | javascript | chosen |
[
{
"from": "system",
"value": "Reformat SoundTest OSC; stop sound test on SoundTest destroy\n"
},
{
"from": "human",
"value": "'use strict';\n\nangular.module('core').controller('SoundTestController', ['$scope', 'TrialData',\n function($scope, TrialData) {\n\n /* global io */\n var socket ... | javascript | chosen |
[
{
"from": "system",
"value": "Add missing id in initial state\n"
},
{
"from": "human",
"value": "import {\n SEEK,\n SET_DURATION,\n SET_CURRENT_SONG,\n CHANGE_VOLUME,\n CHANGE_CURRENT_SECONDS,\n PLAY,\n PAUSE\n} from './../actions/actionTypes'\n\nconst initialState = {\n isPlaying: false... | javascript | chosen |
[
{
"from": "system",
"value": "Fix unknown host on services\n"
},
{
"from": "human",
"value": "import Ember from 'ember';\nimport MultiStatsSocket from 'ui/utils/multi-stats';\n\nexport default Ember.Route.extend({\n statsSocket: null,\n\n model() {\n return this.modelFor('service').get('ser... | javascript | chosen |
[
{
"from": "system",
"value": "Use correct uri for AppolloClient\n"
},
{
"from": "human",
"value": "import React from 'react'\nimport PropTypes from 'prop-types'\nimport { Provider } from 'react-redux'\nimport { BrowserRouter } from 'react-router-dom'\nimport ApolloClient from 'apollo-boost';\nim... | javascript | chosen |
[
{
"from": "system",
"value": "Install this the right way\n"
},
{
"from": "human",
"value": "'use strict';\n\n// Declare app level module which depends on filters, and services\n\nvar app = angular.module( 'myApp', [\n 'ngRoute',\n\n 'myApp.controllers',\n 'myApp.filters',\n 'myApp.se... | javascript | chosen |
[
{
"from": "system",
"value": "Fix warning messages regarding refs and key\n"
},
{
"from": "human",
"value": "import React, { PropTypes } from 'react';\n\nconst App = ({ children }) => (\n <div className=\"page-container\">\n {children}\n </div>\n);\n\nApp.propTypes = {\n children: PropType... | javascript | chosen |
[
{
"from": "system",
"value": "Change how method is exported.\n"
},
{
"from": "human",
"value": "const fs = require('fs');\nconst path = require('path');\n\n/**\n * Finds package.json file from either the directory the script was called from or a supplied path.\n *\n * console.log(findPackage... | javascript | chosen |
[
{
"from": "system",
"value": ":new: Upgrade findRoot to be async\n"
},
{
"from": "human",
"value": "'use babel'\n\n/* @flow */\n\nimport Path from 'path'\nimport {findCached} from './common'\nimport {CONFIG_FILE_NAME} from '../defaults'\n\nexport function findRoot(directory: string): string {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add html property to project object\n"
},
{
"from": "human",
"value": "/*!\n * Generator-Gnar Gruntfile\n * http://gnarmedia.com\n * @author Adam Murphy\n */\n\n// Generated on <%= (new Date).toISOString().split('T')[0] %> using <%= pkg.name %> <%= pkg.version %>\n\... | javascript | chosen |
[
{
"from": "system",
"value": "Update webpack static, remove webpack clean so dist builds work again.\n"
},
{
"from": "human",
"value": "const path = require('path');\n\nconst HtmlWebPackPlugin = require('html-webpack-plugin');\nconst MiniCssExtractPlugin = require(\"mini-css-extract-plugin\");\n... | javascript | chosen |
[
{
"from": "system",
"value": "Remove empty object from variables array\n"
},
{
"from": "human",
"value": "import {Hooks} from 'PluginSDK';\n\nlet EnvironmentVariables = {\n description: 'Set environment variables for each task your service launches in addition to those set by Mesos.',\n type: ... | javascript | chosen |
[
{
"from": "system",
"value": "Add permission provider to the info schema\n"
},
{
"from": "human",
"value": "\"use strict\";\n\nconst Joi = require('joi');\n\nconst contactSchema = require('./contactSchema');\nconst licenseSchema = require('./licenseSchema');\nconst pathsSchema = require('./paths... | javascript | chosen |
[
{
"from": "system",
"value": "Use Cloudflare for HTTPS redirect\n"
},
{
"from": "human",
"value": "import Vue from 'vue'\nimport App from './App'\nimport I18n from 'vue-i18n'\nimport Cookie from 'vue-cookie'\nimport { sync } from 'vuex-router-sync'\nimport router from './router'\nimport store fr... | javascript | chosen |
[
{
"from": "system",
"value": "Create Card Object template and Card Picker\n"
},
{
"from": "human",
"value": "// Main JavaScript Document\nvar cards = [];\nvar mainContent = document.getElementId('main-content');\nvar mainContentRegion = new ZingTouch.Region(mainContent);\n\n//Create the card obj... | javascript | chosen |
[
{
"from": "system",
"value": "Update to use relax theme\n"
},
{
"from": "human",
"value": "import Noty from \"noty\";\nimport \"noty/src/noty.scss\";\nimport \"noty/src/themes/sunset.scss\";\n\nexport function showNotification({ text, type = \"success\" }) {\n return new Noty({\n theme: \"su... | javascript | chosen |
[
{
"from": "system",
"value": "Fix bug where filter was not set to inacative\n"
},
{
"from": "human",
"value": "var validateFloat = function(val) {\n if (typeof val != 'undefined') {\n val = parseFloat(val);\n if (! isNaN(val)) { \n if (val > -99999 ) {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Implement HTTPS support for Docker\n"
},
{
"from": "human",
"value": "require('dotenv').config({\n silent: true,\n})\n\nlet makeHostConfig = (env, prefix) => {\n let host = env[prefix + '_HOST'] || '127.0.0.1'\n let port = parseInt(env[prefix + '_PORT'], 10... | javascript | chosen |
[
{
"from": "system",
"value": "Add a returnKeyType to the input keyboard\n"
},
{
"from": "human",
"value": "/**\n * @flow\n */\n\nimport React from 'react';\nimport { StyleSheet, TextInput } from 'react-native';\nimport PropTypes from 'prop-types';\nimport Box from './Box';\n\nclass EditableEntry... | javascript | chosen |
[
{
"from": "system",
"value": "Enable selecting text in Differential shield and gap\n\nTest Plan:\nSelected text in shield.\nSelected text in right side.\n\nReviewers: epriestley, btrahan\n\nReviewed By: btrahan\n\nCC: aran, Korvin\n\nDifferential Revision: https://secure.phabricator.com/D3522\n"
},
{
... | javascript | chosen |
[
{
"from": "system",
"value": "Modify toString method for board array format\n"
},
{
"from": "human",
"value": "var Game = function(boardString){\n var board = '';\n this.board = '';\n if (arguments.length === 1) {\n this.board = this.toArray(boardString);\n } else {\n function random()... | javascript | chosen |
[
{
"from": "system",
"value": "Support for Ember 1.9's container API after `store:application` refactor.\n"
},
{
"from": "human",
"value": "/**\n Configures a registry for use with an Ember-Data\n store.\n\n @method initializeStore\n @param {Ember.ApplicationInstance} applicationOrRegistry\n */\n... | javascript | chosen |
[
{
"from": "system",
"value": "Read 10 lines from the file when starting to follow"
},
{
"from": "human",
"value": "var app = require('http').createServer(handler);\nvar io = require('socket.io').listen(app);\nvar fs = require('fs');\nvar util = require('util');\nvar Tail = require('tail').Tail;\... | javascript | chosen |
[
{
"from": "system",
"value": "Fix last printer not showing when there was odd number of printers\n"
},
{
"from": "human",
"value": "import React, { PropTypes } from 'react';\n\nimport style from './style.css';\nimport Printer from '../printer';\n\nclass PrinterListComponent extends React.Compone... | javascript | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.