conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Create variable to store restaurant name\n"
},
{
"from": "human",
"value": "function getRestaurants (latitude, longitude) {\n if (latitude && longitude) {\n var center = {lat: latitude, lng: longitude}\n var map = new google.maps.Map(document.getElementsByCla... | javascript | chosen |
[
{
"from": "system",
"value": "Add requireLogin and Fix params\n"
},
{
"from": "human",
"value": "\"use strict\";\n\nmodule.exports = function(imports) {\n\n let express = imports.modules.express;\n let Promise = imports.modules.Promise;\n let util = imports.util;\n let NormalGroup = ... | javascript | chosen |
[
{
"from": "system",
"value": "Use 'asciidoc-latex' instead of 'asciidoctor-latex' in document kinds\n"
},
{
"from": "human",
"value": "module.exports = function(DocumentService) {\n \n this.reload = function(message='**') {\n if (DocumentService.kind() == 'asciidoctor-latex') {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "feat: Change test setup script to change working directory to temp dir\n"
},
{
"from": "human",
"value": "var os = require('os');\nvar fs = require('fs-extra');\nvar path = require('path');\nvar exec = require('child_process').exec;\n\nconst PROJECT_DIRECTORY = path... | javascript | chosen |
[
{
"from": "system",
"value": "Fix bug asObject --> _asObject\n"
},
{
"from": "human",
"value": "// Define history model and handlers\n\n\nNetVisHistory = function() {\n\tBaseNetVisModel.apply(this); // History class inherits from baseModel\n\t\n\tthis.loadEvent = function(obj, momentTime) {\n\t\... | javascript | chosen |
[
{
"from": "system",
"value": "Clean up the manual lint test syntax\n"
},
{
"from": "human",
"value": "import 'lint-tests'; // eslint-disable-line\n\nimport assert from 'assert';\nimport Client from '../src/client';\n\nsuite('manual-lint-test', () => {\n const config = {\n domain: 'sendmecats... | javascript | chosen |
[
{
"from": "system",
"value": "Add test for certain required locale keys\n"
},
{
"from": "human",
"value": "import test from \"ava\";\n\nconst fs = require(\"fs\");\nconst path = require(\"path\");\n\nconst localesPath = path.join(__dirname, \"..\", \"locales\");\nconst filenameRegex = /^[a-z][a-... | javascript | chosen |
[
{
"from": "system",
"value": "Fix testcase to match reg shuffle fix\n"
},
{
"from": "human",
"value": "/*\n * https://github.com/svaarala/duktape/issues/111\n */\n\n/*---\n{\n \"custom\": true\n}\n---*/\n\n/*===\n65534\nError\nError\nError\n===*/\n\nfunction test(n) {\n var res = [];\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Update redis commands toTree tests\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar RedisCommands = require('../js/service/redis-commands'),\n should = require('should');\n\ndescribe('RedisCommands', function () {\n\n // TODO: fix RedisCommands ... | javascript | chosen |
[
{
"from": "system",
"value": "Move tests to v4 version Serial API\n"
},
{
"from": "human",
"value": "'use strict';\nvar util = require('util');\nvar events = require('events');\nvar EventEmitter = events.EventEmitter || events;\n\n\n/**\n * Mock for SerialPort\n */\nvar SerialPortMock = function... | javascript | chosen |
[
{
"from": "system",
"value": "Add type test for whenDomReady.resume\n"
},
{
"from": "human",
"value": "import test from 'ava';\nimport whenDomReady from '../';\n\ntest('whenDomReady is a function', t => {\n\tt.is(typeof whenDomReady, 'function');\n});\n\ntest('whenDomReady returns a Promise', t ... | javascript | chosen |
[
{
"from": "system",
"value": "Add back in js files that are required in the base.js file so that the main navigation works again\n"
},
{
"from": "human",
"value": "//= require vue\n//= require d3\n//= require scrollmagic\n//= require vue/charts/HorizontalBarChart\n//= require vue/charts/interact... | javascript | chosen |
[
{
"from": "system",
"value": "Add some cleanup.\n* Move the icons into their own dictionary.\n* Use a url object to do the parsing.\n* Check for all 200-level statuses.\n* Check that the response was JSON."
},
{
"from": "human",
"value": "var require(\"sdk/tabs\");\nvar buttons = require('sdk/ui... | javascript | chosen |
[
{
"from": "system",
"value": "Update urlArgs support for production build"
},
{
"from": "human",
"value": "require([ 'config' ], function() {\n var getUrlArgs = function() {\n var search = document.location.search || '';\n if (search.indexOf('?') === 0) {\n search = search.substring(... | javascript | chosen |
[
{
"from": "system",
"value": "Update header search paths to match new iOS folder structure\n"
},
{
"from": "human",
"value": "(function() {\n // properties\n\n const fs = require(\"fs\");\n\n // entry\n module.exports = {\n addHeaderPaths: addHeaderPaths\n };\n\n // updates the platform... | javascript | chosen |
[
{
"from": "system",
"value": "Update current test to alway succeed\n"
},
{
"from": "human",
"value": "import assert from 'assert';\nimport uakari from '../lib';\n\ndescribe('uakari', function () {\n it('should determine the version of the local packge', function () {\n assert.equal(uakari.ve... | javascript | chosen |
[
{
"from": "system",
"value": "Move filter inheritance code below `inherits` call\n"
},
{
"from": "human",
"value": "/*\n * hub.js\n *\n * Copyright (c) 2012-2014 Maximilian Antoni <mail@maxantoni.de>\n *\n * @license MIT\n */\n'use strict';\n\nvar inherits = require('inherits');\nvar Filter ... | javascript | chosen |
[
{
"from": "system",
"value": "Add forbidden error if mismatch\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst Account = require('../../models/account');\nconst createError = require('http-errors');\nconst bcrypt = require('bcrypt-as-promised');\nconst jwt = require('jsonwebtoken-as-pro... | javascript | chosen |
[
{
"from": "system",
"value": "[tests] Remove test for fail case (handled by express)\n"
},
{
"from": "human",
"value": "const should = require('should');\nconst sinon = require('sinon');\nrequire('should-sinon');\n\nconst proxyquire = require('proxyquire');\nconst httpMocks = require('node-mocks... | javascript | chosen |
[
{
"from": "system",
"value": "Change canvas size and render mode\n"
},
{
"from": "human",
"value": "// Before I start the game\n// If someone's browser doesn't support console, then make a dummy object\nconsole = window.console || { log: function(s){} };\n\n// Start my game!\nvar game = new Phas... | javascript | chosen |
[
{
"from": "system",
"value": ":bug: Fix a typo in requireDependencies\n"
},
{
"from": "human",
"value": "'use babel'\n\nimport Path from 'path'\n\nexport function requireDependency(name, rootDirectory) {\n if (name.indexOf('rollup-plugin-') === -1) {\n name = 'rollup-plugin-' + name\n }\n\n... | javascript | chosen |
[
{
"from": "system",
"value": "Remove post prefix from preFold content\n\nLike the [Update: XXX] stuff at the beginning of the Dangerous Cliffs\npost. No need for that to make it to twitter, or to the blurb on \n/popular/ or /tags/javascript/"
},
{
"from": "human",
"value": "var fold = /<div clas... | javascript | chosen |
[
{
"from": "system",
"value": "Add placeholders for CLI tasks\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\n\nvar args = process.argv.slice(2);\n\nconsole.log(args);\n"
},
{
"from": "gpt",
"value": "#!/usr/bin/env node\n\nvar cli = {\n 'new': function() {\n console.log(\... | javascript | chosen |
[
{
"from": "system",
"value": "Disable template test for now\n\nfbshipit-source-id: d2da361\n"
},
{
"from": "human",
"value": "/**\n * @flow\n */\n\njasmine.DEFAULT_TIMEOUT_INTERVAL = 240000;\nimport path from 'path';\nimport uuid from 'uuid';\nimport rimraf from 'rimraf';\nimport {\n clearXDLCa... | javascript | chosen |
[
{
"from": "system",
"value": "Make page param of the /app/:page route optional\n"
},
{
"from": "human",
"value": "var express = require('express');\nvar router = express.Router();\n\n/* GET home page. */\nrouter.get('/', function(req, res, next) {\n res.render('login', {error: req.flash('error'... | javascript | chosen |
[
{
"from": "system",
"value": "Save players in array on server\n"
},
{
"from": "human",
"value": "/*jslint node: true */\n'use strict';\n\nvar Player = require('./lib/server/Player').Player,\n\tplayer;\n\nexports.listen = function (app) {\n\tvar io = require('socket.io').listen(app),\n\t\troom = ... | javascript | chosen |
[
{
"from": "system",
"value": "Add dollar capabilities to API\n"
},
{
"from": "human",
"value": "var request = require('request');\nlet finalResult\n\nmodule.exports = function(app, db) {\n app.get('/number', (req, res) => {\n console.log(req.query.name);\n request('https://api.coin-hive.c... | javascript | chosen |
[
{
"from": "system",
"value": "Rename out.js to main.js to reflect README"
},
{
"from": "human",
"value": "const dir = __dirname\nconst webpack = require('webpack')\n\nmodule.exports = {\n entry: \"./build/main.js\",\n output: {\n filename: \"build/out/out.js\"\n },\n module: {... | javascript | chosen |
[
{
"from": "system",
"value": "Select a task when it's been created\n"
},
{
"from": "human",
"value": "var View = require('./View'),\n\tButton = require('../Button'),\n\tList = require('../lists/List'),\n\tTextView = require('../TextView')\n\nmodule.exports = Class(View, function(supr) {\n\t\n\tt... | javascript | chosen |
[
{
"from": "system",
"value": "Use practicalmeteor:chai and not spacejamio:chai\n"
},
{
"from": "human",
"value": "Package.describe({\n name: \"practicalmeteor:google-translate\",\n summary: \"Server side synchronous google translate.\",\n git: \"https://github.com/practicalmeteor/meteor-googl... | javascript | chosen |
[
{
"from": "system",
"value": "Fix /api/roms/ returning names with .nes extension\n"
},
{
"from": "human",
"value": "import fs from 'fs';\nimport path from 'path';\nimport {makeId, removePrefix} from '../common';\n\nconst romExtName = '.nes';\nconst thumbExtNames = ['.png', '.git', '.jpg', '.jpeg... | javascript | chosen |
[
{
"from": "system",
"value": "RPB: Fix errors with placeholder columns\n"
},
{
"from": "human",
"value": "(function () {\n var Ext = window.Ext4 || window.Ext;\n\n Ext.define('Rally.apps.roadmapplanningboard.PlaceholderColumn', {\n extend: 'Ext.Component',\n alias: 'widget.ca... | javascript | chosen |
[
{
"from": "system",
"value": "Set default value of selected value to empty array\n"
},
{
"from": "human",
"value": "\n// ListPicker.js\n//\n// Created by Robert Hovhannisyan on 2014-06-12\n//\n// Copyright 2014 Robert Hovhannisyan. All rights reserved.\n// MIT Licensed\nvar exec = require('cord... | javascript | chosen |
[
{
"from": "system",
"value": "Allow WebbitSocket.on{error,close,open} to be hooked up."
},
{
"from": "human",
"value": "function WebbitSocket(path, target) {\n var self = this;\n var ws = new WebSocket('ws://' + document.location.host + path);\n ws.onclose = function() {\n target... | javascript | chosen |
[
{
"from": "system",
"value": "Fix issue with homepage on deployment\n"
},
{
"from": "human",
"value": "import path from 'path';\nimport express from 'express';\nimport logger from 'morgan';\nimport bodyParser from 'body-parser';\n\n\nrequire('dotenv').config();\n\nconst app = express();\nconst a... | javascript | chosen |
[
{
"from": "system",
"value": "Use logHelper instead of console.warn\n"
},
{
"from": "human",
"value": "/*\n Copyright 2017 Google Inc. All Rights Reserved.\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You... | javascript | chosen |
[
{
"from": "system",
"value": "Remove unused and commented code\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\n\nvar S=require('surku');\nvar fs=require('fs');\nvar path=require('path');\n\nvar surkuConfig={\n maxMutations:20,\n minMutations:1,\n chunkSize:3000\n};\nvar surku=ne... | javascript | chosen |
[
{
"from": "system",
"value": "Add to download links ng-csv\n"
},
{
"from": "human",
"value": "var path \t\t= require('path');\nvar rootPath \t= path.normalize(__dirname + '/../../');\n\nmodule.exports \t= {\n local: {\n baseUrl: 'http://localhost:3051',\n db: 'mongodb://localhos... | javascript | chosen |
[
{
"from": "system",
"value": "Fix an error on thumbnail val\n"
},
{
"from": "human",
"value": "import React from 'react';\n\nconst UserButton = ({ thumbnail, onShow }) => {\n return(\n <div className=\"user-button\" onClick={onShow}>\n <div className=\"thumbnail\" style={{ba... | javascript | chosen |
[
{
"from": "system",
"value": "Fix error handling and call order\n"
},
{
"from": "human",
"value": "module.exports = Backbone.View.extend({\n\n className: 'main_price main_wrap',\n\n initialize: function(){\n\n var self = this\n\n self.$el.html(ss.tmpl['main-pairing'].render()).appendTo('... | javascript | chosen |
[
{
"from": "system",
"value": "Add saveSubscribers method to OMIS Order model\n\nThis allows creating/updating of the list of subscribers attached\nto an OMIS order.\n"
},
{
"from": "human",
"value": "const config = require('../../../config')\nconst authorisedRequest = require('../../lib/authoris... | javascript | chosen |
[
{
"from": "system",
"value": "Modify the parameters of network.discover()\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar EventEmitter = require('events').EventEmitter,\n util = require('util'),\n _ = require('lodash'),\n logger = require('log4js').getLogger('Network');\n\n/*\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Set model vingtiles on initialization.\n"
},
{
"from": "human",
"value": "define([\n\t'jquery',\n\t'underscore',\n\t'backbone',\n\n\t'backendServiceM',\n\t'helpers',\n\n\t'json!vingtilesD'\n],\nfunction ($, _, Backbone, backendServiceM, helpers, vingtiles) {\n\t'use... | javascript | chosen |
[
{
"from": "system",
"value": "Add dry run argument to CLI (-n)\n"
},
{
"from": "human",
"value": "#! /usr/bin/env node\n'use strict';\n\nvar inquirer = require('inquirer');\nvar generator = Object.freeze(require('./generator'));\nvar questions = Object.freeze(require('./cli.config.json').questio... | javascript | chosen |
[
{
"from": "system",
"value": "Fix that we was throwing unhandled rejections\n"
},
{
"from": "human",
"value": "/*global Promise:true*/\nvar Promise = require('bluebird');\nvar workQueue = {\n queue: [],\n drain: function () {\n this.queue.forEach(function (fn) {\n fn();\n... | javascript | chosen |
[
{
"from": "system",
"value": "Remove not needed comments and logs\n"
},
{
"from": "human",
"value": "//(function(chrome) {\n// console.log('clicked on - ' + new Date());\n//\n// chrome.tabs.query({active: true, currentWindow: true}, function(tabs) {\n// chrome.tabs.sendMessage(tabs[... | javascript | chosen |
[
{
"from": "system",
"value": "Add missing Google Analytics env vars\n"
},
{
"from": "human",
"value": "\"use strict\";\n\nconst isCi = require('is-ci');\n\nconst jwtSigningKey = process.env.jwtSigningKey ? new Buffer(process.env.jwtSigningKey, 'base64') : '' ;\n\nconst dbConfig = {\n host: proc... | javascript | chosen |
[
{
"from": "system",
"value": "Update to point to production server api\n"
},
{
"from": "human",
"value": "import fs from 'fs'\nimport rc from 'rc'\nimport ini from 'ini'\nimport path from 'path'\nimport mkdirp from 'mkdirp'\nimport untildify from 'untildify'\n\nconst conf = rc('tickbin', {\n ap... | javascript | chosen |
[
{
"from": "system",
"value": "Add verbose flag, don't print stdout\n\nClose #4 and #5"
},
{
"from": "human",
"value": "#! /usr/bin/env node\n\nvar glob = require('glob');\nvar path = require('path');\nvar exec = require('child_process').exec;\nvar fs = require('fs');\nvar program = require('comm... | javascript | chosen |
[
{
"from": "system",
"value": "Add Tracker as a dependency for the test suite"
},
{
"from": "human",
"value": "Package.describe({\n name: 'remcoder:chronos',\n summary: 'Reactive time utilities. Includes reactive replacements for new Date() and moment()',\n version: '0.4.0',\n git: 'https://g... | javascript | chosen |
[
{
"from": "system",
"value": "Fix jwt keygen linter issues\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\n\n\"use strict\"\n\nconst DESTINATION_DIR = \"./resources\"\nconst PUBLIC_KEY = \"pubkey.pem\";\nconst PRIVATE_KEY = \"privkey.pem\";\n\nconst child_process = require('child_process... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"menü merkt sich nun auch nach page reload ob es geöffnet war\"\n\nThis reverts commit c00c14f0975efde3d3c161443bb93da15055d1ff.\n"
},
{
"from": "human",
"value": "$(function() {\n\tif(sessionStorage.getItem(\"openMenu\") === null){\n\t\tsessionStorage.setIt... | javascript | chosen |
[
{
"from": "system",
"value": "Add control for not add tips to yourself\n"
},
{
"from": "human",
"value": "Meteor.methods({\n addTips: function (numTips, targetUserId) {\n Meteor.users.update({_id: targetUserId}, {\n $inc: {\n tips: numTips\n }\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Make sure library is fetched on first load after auth\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport { connect } from 'react-redux';\n\nimport { doAuth, parseAuthToken } from '../lib/actions/auth';\nimport { fetchLibrary } from '../lib/actions... | javascript | chosen |
[
{
"from": "system",
"value": "Replace BBC data with a local stub"
},
{
"from": "human",
"value": "'use strict';\n\nvar getData = require('./feed.js').get;\nvar React = module.exports.React = require('react');\n\nvar AppView = require('../jsx/app.jsx');\nvar appContainerElement = document.body;\n... | javascript | chosen |
[
{
"from": "system",
"value": "Add test for aligning too long strings\n"
},
{
"from": "human",
"value": "var buster = require(\"buster\");\nvar assert = buster.assert;\nvar a = require(\"../../lib/buster-terminal\").align;\n\nbuster.testCase(\"Terminal string align test\", {\n \"max width\": {... | javascript | chosen |
[
{
"from": "system",
"value": "Implement Get Campaign Model Simply by HMGET\n"
},
{
"from": "human",
"value": "module.exports = {\n getCampaignModel: function (redisClient, accountHashID, campaignHashID, callback) {\n\n },\n getCampaignList: function (redisClient, accountHashID, callback) {\n\... | javascript | chosen |
[
{
"from": "system",
"value": "Remove options param on _setupWinstonConsoleTransport\n\nNot needed\n"
},
{
"from": "human",
"value": "Space.Module.define('Space.logging.Winston', {\n\n dependencies: {\n configuration: 'configuration',\n log: 'Space.Logger'\n },\n\n onInitialize() {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix mysql case insensitivity issue\n"
},
{
"from": "human",
"value": "'use strict'\n\nvar express = require('express')\nvar mysql = require('mysql')\nvar crypto = require('crypto')\nvar config = require('./config.json')\n\nvar connection = mysql.createConnection(con... | javascript | chosen |
[
{
"from": "system",
"value": "Handle no protocols in tests\n"
},
{
"from": "human",
"value": "const protocols = require(\"../lib\")\n , tester = require(\"tester\")\n ;\n\ntester.describe(\"check urls\", test => {\n test.it(\"should support mutiple protocols\", () => {\n test.exp... | javascript | chosen |
[
{
"from": "system",
"value": "Set Interval of 5 secs before moving onto next level\n"
},
{
"from": "human",
"value": "Master.Controller = function() {}\n\nMaster.Controller.prototype = {\n init: function(){\n $(document).on('getData', function(event, data) {\n this.db = data\n this... | javascript | chosen |
[
{
"from": "system",
"value": "Docs: Add comments to Javascript API functions\n"
},
{
"from": "human",
"value": "/*\n * PSPDFKit.js\n *\n * PSPDFKit\n *\n * Copyright (c) 2015 PSPDFKit GmbH. All rights reserved.\n *\n * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY IN... | javascript | chosen |
[
{
"from": "human",
"value": "Complete lesson 16 - scroll view\n"
},
{
"from": "gpt",
"value": "function ScrollView() {\n\tvar self = Ti.UI.createWindow({\n\t\ttitle : 'Scroll View'\n\t});\n\t\n\tvar scrollView = Ti.UI.createScrollView({});\n\tvar map = Ti.UI.createImageView({\n\t\timage : 'image... | javascript | chosen |
[
{
"from": "system",
"value": "Correct location of Protractor executable\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar path = require('path');\nvar yargs = require('yargs');\nvar merge = require('lodash.merge');\nvar flatten = require('./lib/flatten');\n\nmodule.exports = function(grunt... | javascript | chosen |
[
{
"from": "system",
"value": "Set CORS header when requesting fonts to allow browsers to render.\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar express = require('express');\n\nvar app = module.exports = express();\n\napp.configure(function(){\n // Here we require the prerender middlew... | javascript | chosen |
[
{
"from": "system",
"value": "Fix to insert correct wiki text when inserting a process model via visual editor, still need make this work for map and probably move to parent SteepNode\n"
},
{
"from": "human",
"value": "\"use strict\";\n\n/*global OO, ve*/\n\nve.dm.ProcessModelNode = function Pro... | javascript | chosen |
[
{
"from": "system",
"value": "Add an env var that allows testing only one React version.\n\nThis reduces the noise in tests a bit.\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst fs = require('fs');\n\nmodule.exports = fs.readdirSync(__dirname)\n .filter((filename) => filename !== 've... | javascript | chosen |
[
{
"from": "system",
"value": "Make Room.getLOIs clone this.memory.sources instead of a directly using it\n"
},
{
"from": "human",
"value": "SetupPrototypes();\n\nSetupRooms();\n\nSpawnCreeps();\n\nHandleCreeps();\n\nEndTick();\n\nfunction SetupPrototypes() {\n Room.prototype.getLOIs = functio... | javascript | chosen |
[
{
"from": "system",
"value": "Disable Service Worker from registration\n"
},
{
"from": "human",
"value": "// import swURL from 'file?name=sw.js!babel!./../sw'\n//\n// // Register Service Worker\n// if ('serviceWorker' in navigator) {\n// window.addEventListener('load', function () {\n// //... | javascript | chosen |
[
{
"from": "system",
"value": "[native] Fix lint-staged to not report eslint ignore files\n"
},
{
"from": "human",
"value": "const { CLIEngine } = require('eslint');\n\nconst cli = new CLIEngine({ });\n\nmodule.exports = {\n \"*.js\": \"eslint --cache --fix\",\n \"lib/**/*.js\": function libFlo... | javascript | chosen |
[
{
"from": "system",
"value": "Fix Google Play Music changes in HTML structure\n\nPlay music changed today from `sj-icon-button` elements to `paper-icon-button`. This handles any *further* element changes. We're still brittle against a data-id attribute change, but in this case, it's the most (only?) consi... | javascript | chosen |
[
{
"from": "system",
"value": "Switch to JSONAPIAdapter with cross domain and csrf headers\n"
},
{
"from": "human",
"value": "import OsfAdapter from './osf-adapter';\n\nexport default DS.JSONAPIAdapter.extend({\n host: 'http://localhost:8000',\n buildURL(modelName, id, snapshot, requestType... | javascript | chosen |
[
{
"from": "system",
"value": "Change class name manager to not add \"aui-\" prefixes on alloy css classes\n"
},
{
"from": "human",
"value": "var ClassNameManager = A.ClassNameManager,\n\t_getClassName = ClassNameManager.getClassName,\n\n\tPREFIX = 'aui';\n\nA.getClassName = A.cached(\n\tfunction... | javascript | chosen |
[
{
"from": "system",
"value": "Use page.content if modified or fallback to page.sections in plugins hooks\n"
},
{
"from": "human",
"value": "var _ = require('lodash');\nvar error = require('../utils/error');\n\n/*\n Return the context for a plugin.\n It tries to keep compatibilities with Gi... | javascript | chosen |
[
{
"from": "system",
"value": "Fix CSS state when a vote is cancelled.\n"
},
{
"from": "human",
"value": "/**\n * This source file is subject to the license that is bundled with this package in the file LICENSE.\n */\n(function($) {\n $('.upvote').on('click', function(e) {\n var url = '... | javascript | chosen |
[
{
"from": "system",
"value": "Add braces to every 'if' block\n"
},
{
"from": "human",
"value": "/*global angular */\n\n(function (angular) {\n\n // -- MODULE DECLARATION\n angular.module(\"ngFilesizeFilter\", [])\n\n // FILTER\n .filter(\"filesize\", function () {\n\n /**\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Return <HomeView> as default route\n"
},
{
"from": "human",
"value": "/**\n *\n * @flow\n */\n\n'use strict';\n\nimport React, { Component } from 'react'\nimport {\n Navigator,\n StyleSheet\n} from 'react-native'\nimport App from './App'\nimport First from './... | javascript | chosen |
[
{
"from": "system",
"value": "Add button for adding todo\n\nPreviously the only way to create a new todo was to hit “enter” on the\nlast todo "
},
{
"from": "human",
"value": "import React from 'react';\nimport TodoItem from './TodoItem';\n\nexport default class extends React.Component {\n rend... | javascript | chosen |
[
{
"from": "system",
"value": "Update Command: ping - added heartbeat ping, removed performance-now usage\n"
},
{
"from": "human",
"value": "const now = require('performance-now');\nconst Command = require('../Command');\n\nclass PingCommand extends Command {\n constructor(bot) {\n super(bot)... | javascript | chosen |
[
{
"from": "system",
"value": "Remove deprecations on Ember.keys with the latest Ember release.\n"
},
{
"from": "human",
"value": "import Ember from 'ember';\nimport canUseNewSyntax from './utils/can-use-new-syntax';\n\nconst { computed } = Ember;\n\nexport default function newComputed() {\n var... | javascript | chosen |
[
{
"from": "system",
"value": "Update the url of viz.js"
},
{
"from": "human",
"value": "(function() {\n var script = document.createElement('script');\n script.setAttribute('src', 'https://mdaines.github.io/viz.js/viz.js');\n script.onload = function() {\n [].forEach.call(document.querySel... | javascript | chosen |
[
{
"from": "system",
"value": "Split recommendations into seperate messages.\n"
},
{
"from": "human",
"value": "import { map } from 'lodash'\n\nconst randomRecommendation = (spotify,bot,redis,auth) => {\n const rec = Promise.coroutine(function* (msg) {\n const { chat, from } = msg\n\n cons... | javascript | chosen |
[
{
"from": "system",
"value": "Add --enable-logging that enables logging\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\n\nvar express = require('express'),\n droonga = require('./index'),\n http = require('http'),\n options = require('commander');\n\nvar version = require('./pac... | javascript | chosen |
[
{
"from": "system",
"value": "Add exception for definitions ending in etc.\n\nFixes wordset/wordset#64\n"
},
{
"from": "human",
"value": "import Ember from 'ember';\nimport Base from 'ember-validations/validators/base';\n\nexport default Base.extend({\n call: function() {\n var prop = this.m... | javascript | chosen |
[
{
"from": "system",
"value": "Fix component overriding for default case (no override)\n"
},
{
"from": "human",
"value": "define([], function() {\n return {\n load: function(id, require, callback) {\n // actual module loading function\n var loadImpl = function(id, require, callback)... | javascript | chosen |
[
{
"from": "system",
"value": "Fix bug where rows are clicked by accident"
},
{
"from": "human",
"value": "/**\n * Default templete script collection\n * @author Melcher\n */\n\n$(document).ready(function(e) {\n\t// Make rows clickable while maintaing anchors\n $('.clickable-row').click(functi... | javascript | chosen |
[
{
"from": "system",
"value": "Remove superfluous property from the StepperInput page object\n"
},
{
"from": "human",
"value": "import {\n attribute,\n blurrable,\n clickable,\n fillable,\n focusable,\n isPresent,\n text,\n triggerable,\n value,\n} from 'ember-cli-page-object';\n\nexport... | javascript | chosen |
[
{
"from": "system",
"value": "Fix usage of some helper in form loss preventer service\n"
},
{
"from": "human",
"value": "import Ember from 'ember';\nimport {some} from 'ember-form-object/utils/core';\n\nconst {Service, computed, $, A: emberArray} = Ember;\n\nexport default Service.extend({\n re... | javascript | chosen |
[
{
"from": "system",
"value": "Update API to optionally hide disabled controls."
},
{
"from": "human",
"value": "/**\n* Shackle allows you to bind a form control or\n* fieldset's enabled/disabled state to the checked/unchecked\n* state of a radio button or checkbox.\n* Simply Include Shackle and ... | javascript | chosen |
[
{
"from": "system",
"value": "Update findDomNode to react 0.14 style\n"
},
{
"from": "human",
"value": "var React = require('react')\nvar cx = require('./cx')\n\nvar Toggle = React.createClass({\n componentDidMount() {\n // ensure ratchet toggles initialised\n require('../vendor/toggles')... | javascript | chosen |
[
{
"from": "system",
"value": "Create stdout connector & command line option\n\ncloses #34\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst scraper = require('./src/scraper');\nconst database = require('./src/data-adapters/sperm-whale');\n\nconst stream = scraper.startScrapeStream();\n\n... | javascript | chosen |
[
{
"from": "system",
"value": "Normalize the file dir path. Fixes the problem with UI not working if file dir was specified with a trailing slash.\n"
},
{
"from": "human",
"value": "\nvar argv = require('optimist').argv;\nvar config = require('./config/config.defaults.js');\n\nif (argv['h']) ... | javascript | chosen |
[
{
"from": "system",
"value": "Read .bowerrc before running bower install\n"
},
{
"from": "human",
"value": "var Promise = require('rsvp').Promise;\nvar chalk = require('chalk');\nvar ui = require('../ui');\n\nmodule.exports = function bowerInstal() {\n var inquirer = require('inquirer');\n var... | javascript | chosen |
[
{
"from": "system",
"value": "Add redirect from root to ArtLabelsIndexContainer\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport { Route, IndexRoute, Router, browserHistory } from 'react-router';\nimport ArtLabelsIndexContainer from './ArtLabelsIndexContainer';\nimport ArtLa... | javascript | chosen |
[
{
"from": "system",
"value": "[desk-tool] Handle drafts/missing documents when checking for type mismatch\n"
},
{
"from": "human",
"value": "import React from 'react'\nimport styles from './styles/DeskTool.css'\nimport SchemaPaneResolver from './SchemaPaneResolver'\nimport client from 'part:@san... | javascript | chosen |
[
{
"from": "system",
"value": "Fix bugs occuring in Ember 2.8\n"
},
{
"from": "human",
"value": "/* globals Ember */\n(function() {\n const { Component, computed } = Ember;\n\n Component.reopen({\n __HTML_ATTRIBUTES__: computed({\n set(key, value) {\n let attributes = Object.keys... | javascript | chosen |
[
{
"from": "system",
"value": "Move fbq initialization into function to avoid unnecessary error logs\n"
},
{
"from": "human",
"value": "import logger from 'js/utils/logger'\n\nconst DEBUG = false\n\nvar fbq = window.fbq\nif (!fbq) {\n logger.error('Facebook analytics are not available on `window... | javascript | chosen |
[
{
"from": "system",
"value": "Fix pin button active state\n"
},
{
"from": "human",
"value": "import Component from 'flarum/component';\nimport icon from 'flarum/helpers/icon';\n\n/**\n The back/pin button group in the top-left corner of Flarum's interface.\n */\nexport default class BackButton ... | javascript | chosen |
[
{
"from": "system",
"value": "Add proper indentation for JavaScript.\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/java... | javascript | chosen |
[
{
"from": "system",
"value": "Move logout into the header\n"
},
{
"from": "human",
"value": "'use strict';\n\nmodule.exports = function(app) {\n\tapp.directive('sextantHeader', function() {\n\t\treturn {\n\t\t\trestrict: 'E',\n\t\t\ttemplateUrl: 'templates/header-template.html'\n\t\t};\n\t});\n}... | javascript | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.