conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "site: Copy site into releases folder\n"
},
{
"from": "human",
"value": "const gulp = require('gulp')\nconst runSequence = require('run-sequence')\nconst harp = require('harp')\nconst webpackStream = require('webpack-stream')\nconst del = require('del')\n\nconst conf... | javascript | chosen |
[
{
"from": "system",
"value": "Disable Snowplow call for now\n"
},
{
"from": "human",
"value": "//\n// Hooks into Segment's analytics object events and tries to mimic the\n// equivalent in snowplow.\n//\n\n// Segment automatically includes an analytics.page() call so to mimic that\n// we send a p... | javascript | chosen |
[
{
"from": "system",
"value": "Check flow before running tests\n"
},
{
"from": "human",
"value": "module.exports = {\n options: {\n atBegin: true,\n interrupt: true,\n },\n develop: {\n files: [\n 'package.json',\n 'src/**/*.js',\n 'tasks/**/*.js*',\n 'tests/**/*.j... | javascript | chosen |
[
{
"from": "system",
"value": "Add an exports-type module definition\n"
},
{
"from": "human",
"value": "(function (root, factory) {\n 'use strict';\n if (typeof define === 'function' && define.amd) {\n // AMD. Register as an anonymous module.\n define([], factory);\n } else... | javascript | chosen |
[
{
"from": "system",
"value": "Remove unneeded $FlowFixMe, it was fixed"
},
{
"from": "human",
"value": "/* @flow */\n\nimport React from 'react';\n\n// Unpack TW.\nconst { settings } = chrome.extension.getBackgroundPage().TW;\n\nexport default function PauseButton() {\n // $FlowFixMe Upgrade Fl... | javascript | chosen |
[
{
"from": "system",
"value": "Add DIM version custom dimension\n"
},
{
"from": "human",
"value": "\n(function loadGapi() {\n var head = document.getElementsByTagName('head')[0];\n var script = document.createElement('script');\n script.type = 'text/javascript';\n script.src = \"https://apis.... | javascript | chosen |
[
{
"from": "system",
"value": "Rename opennes in open data\n"
},
{
"from": "human",
"value": "import React from 'react'\nimport Statistics from '../Statistics'\n\nconst Percent = ({metrics, label, icon, size, description=\"\"}) => {\n const value = metrics.partitions[label] ? metrics.partitions[... | javascript | chosen |
[
{
"from": "system",
"value": "Fix syntax error with blueprint\n"
},
{
"from": "human",
"value": "module.exports = {\n description: 'Install toastr.js from bower'\n\n // locals: function(options) {\n // // Return custom template variables here.\n // return {\n // foo: options.entity.... | javascript | chosen |
[
{
"from": "system",
"value": "Use button instead of link to navigate to search results\n\n"
},
{
"from": "human",
"value": "import React from 'react'\nimport { sparqlConnect } from '../sparql/configure-sparql'\nimport { LOADING, LOADED, FAILED } from 'sparql-connect'\nimport { Link } from 'react... | javascript | chosen |
[
{
"from": "system",
"value": "Add popup when back button or refresh hit\n"
},
{
"from": "human",
"value": "$(document).ready(function() {\n\n\t$('.schema-explanation').hide();\n \n\t$('.get-started').click(function(e){\n\t\te.preventDefault();\n\t\t$('.home-explanation').hide();\n\t\t$('.schema... | javascript | chosen |
[
{
"from": "system",
"value": "Add initial fetching response format\n"
},
{
"from": "human",
"value": "var events = new Vue({\n el: '#events',\n data: {\n message: 'This is a message'\n },\n methods: {\n foo: function(){\n return 'I am a function';\n }\n }\n})"
},
{
"fr... | javascript | chosen |
[
{
"from": "system",
"value": "Adjust event to match the doc\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar uuid = require('uuid');\n\n\n/**\n * Handle the socket connections.\n *\n * @class\n * @param {Socket.io} io - The listening object\n */\n\nfunction SocketHandler(io) {\n\n /**\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Test for headers and stderr changes\n"
},
{
"from": "human",
"value": "var assert = require('./');\nvar execFile = require('child_process').execFile;\n\nassert(assert, 'assert exists');\nassert(assert.equal, 'assert.equal exists');\nassert.equal(typeof assert.strict... | javascript | chosen |
[
{
"from": "system",
"value": "Comment out text for pie chart\n"
},
{
"from": "human",
"value": "\ngoogle.load(\"visualization\", \"1\", {packages:[\"corechart\"]});\ngoogle.setOnLoadCallback(drawChart);\nfunction drawChart() {\n var programsArr = prepareProgramsCount(countPrograms(gon.programs)... | javascript | chosen |
[
{
"from": "system",
"value": "Add tests to new PropertyGroupsProcess properties\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar Database = require('dbjs')\n , defineFormSection = require('../../../model/form-section');\n\nmodule.exports = function (t, a) {\n\tvar db = new Datab... | javascript | chosen |
[
{
"from": "system",
"value": "Split up util function to detect horizontal & vertical overflowing separately\n"
},
{
"from": "human",
"value": "export const getViewport = () => ({\n height: window.innerHeight || document.documentElement.offsetHeight,\n width: window.innerWidth || document.docum... | javascript | chosen |
[
{
"from": "system",
"value": "[minor] Make it a session cookie\n"
},
{
"from": "human",
"value": "(function(z,m){\n try{document.cookie=z+'='+m+'; expires=Thu, 18 Dec 2913 12:00:00 UTC';}\n catch(e){}\n\n try{sessionStorage.setItem(z,m);}\n catch(e){}\n\n try{localStroage.setItem(z,m);}\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Switch to humanize from underscore instead of writing our own implementation.\n"
},
{
"from": "human",
"value": "Handlebars.registerHelper('select_box', function(field, options) {\n var html_options,\n _this = this;\n if (!field) {\n return;\n }\n\n if (opti... | javascript | chosen |
[
{
"from": "system",
"value": "Add route for creating a profile\n"
},
{
"from": "human",
"value": "const express = require ('express');\nconst profile = express.Router();\nconst profileController = require('../controllers/profile-controller');\n\nprofile.get('/',(req,res)=>{\n res.send(\"this ... | javascript | chosen |
[
{
"from": "system",
"value": "Create project API responses the projects list\n\n"
},
{
"from": "human",
"value": "'use strict';\n// External Modules -----------------------------------------------------\nconst express = require('express');\n\n// My own Modules -----------------------------------... | javascript | chosen |
[
{
"from": "system",
"value": "Add proptype validation and clean up ModalContainer component\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport classnames from 'classnames';\nimport './modal-container.scss';\n\nconst ModalContainer = (props) => {\n\tif (! props.children) {\n\t\... | javascript | chosen |
[
{
"from": "system",
"value": "Add extern for jQuery UI Datepicker\n"
},
{
"from": "human",
"value": "/**\n * @fileoverview Externs for JQuery UI\n *\n * @externs\n */\n\n\n\n/**\n * @constructor\n */\nfunction jQueryUI() {}\n\n\n/**\n * @type {jQuery}\n */\njQueryUI.prototype.item;\n\n\n/**\n* @... | javascript | chosen |
[
{
"from": "system",
"value": "Add externs for Polymer template instance properties\n\nThis symbols can collide when using the `shadyUpgradeFragment` optimization.\n"
},
{
"from": "human",
"value": "/**\n * @fileoverview Externs for closure compiler\n * @externs\n */\n\n/**\n * Block renaming of ... | javascript | chosen |
[
{
"from": "system",
"value": "Add test for RS service\n"
},
{
"from": "human",
"value": "import { moduleFor, test } from 'ember-qunit';\n\nmoduleFor('service:remotestorage', 'Unit | Service | remotestorage', {\n // Specify the other units that are required for this test.\n // needs: ['service:... | javascript | chosen |
[
{
"from": "system",
"value": "Add functioning controller loading json to HomeController aswell\n"
},
{
"from": "human",
"value": "'use strict';\n\n/* Controllers */\n\nvar cvAppControllers = angular.module('cvAppControllers', []);\n\ncvAppControllers.controller('HomeController', ['$scope', funct... | javascript | chosen |
[
{
"from": "system",
"value": "Update to use my own client_id"
},
{
"from": "human",
"value": "spade.require('sproutcore');\nspade.require('sproutcore-touch');\n\n// Create application namespace\nvar SproutGram = SC.Application.create();\n\nSproutGram.PhotoModel = SC.Object.extend({\n standard_r... | javascript | chosen |
[
{
"from": "system",
"value": "Fix isAdmin check so it actually works.\n"
},
{
"from": "human",
"value": "export function isAdmin(authState) {\n for (const perm of Object.keys(authState.permissions)) {\n if (authState.permissions[perm]) return true\n }\n return false\n}\n\nexport function c... | javascript | chosen |
[
{
"from": "system",
"value": "Add ajax get request for every link\n"
},
{
"from": "human",
"value": "$(document).on('ready', function() {\n console.log(\"sanity check okay!\");\n\n $('a').on('click', function(event) {\n event.preventDefault();\n console.log('links have been bound!');\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Change default external browser to Chrome\nChrome seems to load the LastPass extension faster than Firefox does.\n"
},
{
"from": "human",
"value": "pref(\"extensions.vault-shortcut.exe-path\", \"\");\npref(\"extensions.vault-shortcut.lastpass-url\", \"\");\npref(\"e... | javascript | chosen |
[
{
"from": "system",
"value": "Add primary key while creating tables\n"
},
{
"from": "human",
"value": "'use strict';\n\nrequire('dotenv').config();\nconst Pg = require('pg');\n\nconst MEASUREMENTS_TABLE = process.env.MEASUREMENTS_TABLE;\nconst STATION_IDS_TABLE = process.env.STATION_IDS_TABLE;\n... | javascript | chosen |
[
{
"from": "system",
"value": "Remove contact section via formspree for now"
},
{
"from": "human",
"value": "import React from 'react';\nimport ReactDOM from 'react-dom';\nimport NavBar from 'components/NavBar';\nimport Header from 'components/Header';\nimport Portfolio from 'components/Portfolio... | javascript | chosen |
[
{
"from": "system",
"value": "Fix bug where after hash change event on comments page, new comments would be added to existing comments on page, instead of replacing them\n"
},
{
"from": "human",
"value": "//initialize settings\nHN.settings.initSettings();\n\nif(HN.pageType === 'comments'){\n\t//... | javascript | chosen |
[
{
"from": "system",
"value": "Add toggle of loading class to map\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": "Revert \"Only run switches_and_select and sorttable.makeSortable on /player/\"\n\nThis reverts commit 3fda189c332319e0aa0a6dea44ec569f2874500a.\n"
},
{
"from": "human",
"value": "// This is a manifest file that'll be compiled into application.js, which will include ... | javascript | chosen |
[
{
"from": "system",
"value": "Make closing questions work. Also refine some logging.\n"
},
{
"from": "human",
"value": "const logger = require('../logging');\n\nconst addQuestion = require('../helpers').addQuestion;\nconst endQuestion = require('../helpers').endQuestion;\n\nconst issue = (socket... | javascript | chosen |
[
{
"from": "system",
"value": "Add disable/enable logic for grouped form elements\n"
},
{
"from": "human",
"value": "\nrequire(['jquery'], function($) {\n\tconsole.debug(\"Injecting JS to disable dropdown\")\n\t$(window).load(function() {\n\t\tconsole.debug(\"Detecting if jenkins server config is... | javascript | chosen |
[
{
"from": "system",
"value": "Update the Page seed information\n"
},
{
"from": "human",
"value": "exports.seed = function() {\n return data;\n};\n\nvar data = [{\n \"name\" : \"Awesome\",\n \"url\" : \"http://google.com\",\n \"header\" : \"The best\",\n \"body\" : \"<p>Great</p>\"... | javascript | chosen |
[
{
"from": "system",
"value": "Add User data handling methods to SessionService\n"
},
{
"from": "human",
"value": "\n\napp.factory('SessionService', function($http, $state, $location) {\n var bogusSession = injectedSession\n , pre\n , status;\n\n function init() { // Logged in ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix URL type to extend Tsygan\n\nSigned-off-by: dubo-dubon-duponey <c7a63b10c8d959c614e8acfe1ebf734c28aed595@pm.me>"
},
{
"from": "human",
"value": "import Transform from 'ember-data/transform';\n\nexport default Transform.extend({\n deserialize(serialized) {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add more usage of customer.emails\n"
},
{
"from": "human",
"value": "var async = require('async');\n\nmodule.exports = function(app) {\n var Customer = app.models.Customer;\n var emails = [\n {\n label: 'work',\n address: 'larry@xyz.com'\n },\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Use 'vue-grid as base folder.\n"
},
{
"from": "human",
"value": "import Vue from 'vue'\nimport VueRouter from 'vue-router'\nimport GridInteractions from './GridInteractions.vue'\n\n// use VueRouter for handling browser history\nVue.use(VueRouter)\n\nconst routes = [... | javascript | chosen |
[
{
"from": "system",
"value": "Make module.exports reasonable and only print when being run as main\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\n\nfunction getUserHome() {\n return process.env[(process.platform == 'win32') ? 'USERPROFILE' : 'HOME'];\n}\n\nfunction stringStartsWith (st... | javascript | chosen |
[
{
"from": "system",
"value": "Add checking whether Error has the property 'captureStackTrace'\n"
},
{
"from": "human",
"value": "/**\n * Copyright 2015 Jaime Pajuelo\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance wi... | javascript | chosen |
[
{
"from": "system",
"value": "Add route recursive for open all level trad\n\n"
},
{
"from": "human",
"value": "'use strict'\n\n/**\n * @ngdoc overview\n * @name serinaApp\n * @description\n * # serinaApp\n *\n * Main module of the application.\n */\nangular\n .module('serinaApp', [\n 'ngAnim... | javascript | chosen |
[
{
"from": "system",
"value": "Add Dependencies and Dependents formula\n"
},
{
"from": "human",
"value": "(function (env) {\n \"use strict\";\n env.ddg_spice_homebrew = function(api_result){\n\n if (!api_result || api_result.error) {\n return Spice.failed('homebrew');\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Make internal property not writable\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar aFrom = require('es5-ext/array/from')\n , remove = require('es5-ext/array/#/remove')\n , value = require('es5-ext/object/valid-object')\n , d ... | javascript | chosen |
[
{
"from": "system",
"value": "Add response object to the reject, too.\n"
},
{
"from": "human",
"value": "var Promise = require('bluebird'),\n request = require('request');\n\nfunction rp(options) {\n var statusCodes = {\n 'GET' : [200],\n 'HEAD' : [200],\n 'PUT' : ... | javascript | chosen |
[
{
"from": "system",
"value": "Modify code to get global object for IE\n"
},
{
"from": "human",
"value": "if (typeof globalThis === 'undefined') {\n // define `globalThis` for IE\n self.globalThis = self;\n}\n\nself.importScripts('opal.min.js');\n\n// disable network access\nself.importScripts ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix incorrect saving path for window state file\n"
},
{
"from": "human",
"value": "\"use strict\";\n\nvar app = require(\"app\");\nvar fs = require(\"fs\");\n\nmodule.exports = function (name, defaults) {\n\n var userDataDir = app.getPath(\"userData\");\n var ... | javascript | chosen |
[
{
"from": "system",
"value": "Make Array's commonLeft function length equal 1\n"
},
{
"from": "human",
"value": "// Returns index at which lists start to differ (looking from left)\n\n'use strict';\n\nvar every = Array.prototype.every\n , call = Function.prototype.call\n , ass... | javascript | chosen |
[
{
"from": "system",
"value": "Use fat arrows instead of functions for callbacks in Menu\n"
},
{
"from": "human",
"value": "import Menu from '../../components/Menu'\nimport { vueTest } from '../utils'\n\ndescribe('Menu', function () {\n let vm\n let menu\n before(() => {\n vm = vueTest(Menu... | javascript | chosen |
[
{
"from": "system",
"value": "Mark platform as an external for testing\n"
},
{
"from": "human",
"value": "var loadNodeModules = require('./loadNodeModules');\n\nmodule.exports = {\n name: 'Test',\n webpack: {\n output: {\n path: './.test',\n filename: '[name]',\n },\n resolv... | javascript | chosen |
[
{
"from": "system",
"value": "Watch dragulaModel in case the model is an array setup after app initialization.\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar dragula = require('dragula');\n\n/*jshint unused: false*/\nfunction register (angular) {\n return ['dragulaService', function an... | javascript | chosen |
[
{
"from": "system",
"value": "Add minimum window size limit\n"
},
{
"from": "human",
"value": "const electron = require('electron');\nconst app = electron.app;\nconst BrowserWindow = electron.BrowserWindow;\n\nconst path = require('path');\nconst url = require('url');\n\nlet mainWindow;\n\nfunct... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"Cleanup notification notice layout\"\n\nThis reverts commit d1f46897609f900bd1e8f79745751bc3789e8ef8.\n"
},
{
"from": "human",
"value": "/*global window, jQuery*/\n\n\n;(function($) {\n 'use strict';\n\n\n $.noty.layouts.progress = {\n name: 'progress'... | javascript | chosen |
[
{
"from": "system",
"value": "Update header time function for leading zero in hours\n\nAdd leading zero to hours.\n"
},
{
"from": "human",
"value": "(function() {\n\tvar d = new Date();\n\tvar date_string = \n\t\td.getFullYear() \n\t\t+ '' \n\t\t+ ('0' + (d.getMonth() + 1)).slice(-2) \n\t\t+ '' ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix rule name in space after comma\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar gonzales = require('gonzales-pe'),\n util = require('util'),\n merge = require('merge');\n\nmodule.exports = {\n 'name': 'space-after-colon',\n 'defaults': {\n 'inc... | javascript | chosen |
[
{
"from": "system",
"value": "Select correctly the french voice\ninstead of choosing the first element of getVoices() result\n"
},
{
"from": "human",
"value": "const voices = speechSynthesis.getVoices();\n\nconst webspeechapi = {\n utterance: null,\n\n initUtterance: function(text) {\n let ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix the case when hashtag parser getting not a string\n\n"
},
{
"from": "human",
"value": "import _ from 'lodash';\nimport URLFinder from 'ff-url-finder';\n\nconst finder = new URLFinder();\nfinder.withHashTags = true;\n\n/**\n * Extract all hashtags with their star... | javascript | chosen |
[
{
"from": "system",
"value": "Add context for page templates\n"
},
{
"from": "human",
"value": "var Immutable = require('immutable');\n\nvar Templating = require('../templating');\nvar TemplateEngine = require('../models/templateEngine');\n\nvar Plugins = require('../plugins');\n\nvar defaultBlo... | javascript | chosen |
[
{
"from": "system",
"value": "Fix spoilers when expanding comments.\n"
},
{
"from": "human",
"value": "HB.StoryView = Ember.View.extend({\n classNames: [\"story\"],\n\n templateName: function() {\n if (this.get('content.isDeleted')) {\n return \"story/deleted\";\n }\n return \"st... | javascript | chosen |
[
{
"from": "system",
"value": "Remove slashes from folder name\n"
},
{
"from": "human",
"value": "var createClient = require(\"../util/createClient\");\n\nmodule.exports = function(req, res, next) {\n if (req.unsavedAccount.full_access === false && !req.otherBlogsUseAppFolder)\n return next()... | javascript | chosen |
[
{
"from": "system",
"value": "Make the alternatives for concluded issues show up and hide when issue is clicked and add class to issues that did not get majority\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport classNames from 'classnames';\nimport '../css/ConcludedIssue.css... | javascript | chosen |
[
{
"from": "system",
"value": "Make byId subscribe to mutations\n"
},
{
"from": "human",
"value": "import createDocumentStore from '@sanity/document-store'\nimport client from 'part:@sanity/base/client'\nimport {Observable} from 'rxjs'\n\nconst serverConnection = {\n byId(id) {\n return Obser... | javascript | chosen |
[
{
"from": "system",
"value": "Test two ways of reading: buffer and FD"
},
{
"from": "human",
"value": "var ZIP = require(\"./zip\");\nvar FS = require(\"fs\");\nvar data = FS.readFileSync(\"zip.zip\")\nvar reader = ZIP.Reader(data);\nconsole.log(reader.toObject('utf-8'));\n"
},
{
"from":... | javascript | chosen |
[
{
"from": "system",
"value": "Move along, nothing to see here.\n"
},
{
"from": "human",
"value": "import { _ } from 'meteor/erasaur:meteor-lodash';\nimport { moment } from 'meteor/momentjs:moment';\n\n/**\n * Each RadGrad collection class instance must add itself to this array so that its checkI... | javascript | chosen |
[
{
"from": "system",
"value": "Update readme and check for no data\n"
},
{
"from": "human",
"value": "const path = require('path');\nconst url = require('url');\nconst jade = require('jade');\n\nmodule.exports = function(route, root, data, options, err) {\n\n try {\n\n root = root || '.... | javascript | chosen |
[
{
"from": "system",
"value": "Write indented json into config.json\n"
},
{
"from": "human",
"value": "var fs = require('fs');\nvar md5 = require('md5');\nvar config;\n\nexports.get_username = function get_username() {\n config = JSON.parse(fs.readFileSync(__dirname + \"/config.json\",\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix init content for file handler\n"
},
{
"from": "human",
"value": "\nvar BlobFileSource = Source.createComponent(\"BlobFileSource\");\n\nBlobFileSource.defineMethod(\"construct\", function construct() {\n\n if (!this.fileHandler) this.fileHandler = new BlobFileHa... | javascript | chosen |
[
{
"from": "system",
"value": "Update URL to the new github.io one!"
},
{
"from": "human",
"value": "javascript:script=document.createElement(\"script\");script.type=\"text/javascript\";script.src=\"https://cdn.rawgit.com/fridgefish/simplification/master/simplification.min.js\";document.getElemen... | javascript | chosen |
[
{
"from": "system",
"value": "Set queries for User Profiles\n"
},
{
"from": "human",
"value": "// export default {\n// FETCH_USER_CONSTELLATIONS_REQUEST: function (action) {\n\n// },\n// CREATE_CONSTELLATIONS_REQUEST: function (action) {\n\n// },\n// };\n"
},
{
"from": "g... | javascript | chosen |
[
{
"from": "system",
"value": "Change the adapter set id\n"
},
{
"from": "human",
"value": "/*\n Copyright 2014 Weswit Srl\n\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 may obtain a copy of the Li... | javascript | chosen |
[
{
"from": "system",
"value": "Add in default checking time"
},
{
"from": "human",
"value": "// Configure and mv to config.js\nvar config = {};\n\nconfig.steam_name = \"\";\nconfig.steam_user = \"\";\nconfig.steam_pass = \"\";\nconfig.steam_guard_code = \"\";\n\nconfig.badge_url = \"http://steamc... | javascript | chosen |
[
{
"from": "system",
"value": "Update port on Node server when it is unspecified\n"
},
{
"from": "human",
"value": "const path = require('path');\nconst express = require('express');\nconst exphbs = require('express-handlebars');\n\n// Heroku sets NODE_ENV to production by default. So if we're no... | javascript | chosen |
[
{
"from": "system",
"value": "Refactor .runs to match John Papa style guide\n"
},
{
"from": "human",
"value": "/**\n * Created by Oleksiy Rudenko on 2016-04-28.\n */\n(function() {\n 'use strict';\n\n angular\n .module('app')\n .run(function ($state) { // force $state due to ui-view incl... | javascript | chosen |
[
{
"from": "system",
"value": "Set API URL for production\n"
},
{
"from": "human",
"value": "/* jshint node: true */\n\nmodule.exports = function(environment) {\n var ENV = {\n environment: environment,\n baseURL: '/',\n locationType: 'auto',\n EmberENV: {\n FEATURES: {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Clean up radio button icon\n"
},
{
"from": "human",
"value": "import classNames from 'classnames/dedupe';\nimport React from 'react';\n\nclass IconRadioButton extends React.Component {\n render() {\n let {checked, className, disabled, shadowClassName, radioDotCl... | javascript | chosen |
[
{
"from": "system",
"value": "Add extra inner wrapper which has a 'flex: 1'\n"
},
{
"from": "human",
"value": "import React, { PureComponent } from 'react';\nimport cx from 'classnames';\nimport PropTypes from 'prop-types';\nimport { Box } from '../box';\nimport theme from './theme.css';\n\nclas... | javascript | chosen |
[
{
"from": "system",
"value": "Add toggle setting method tests\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar chai = require('chai');\nvar expect = chai.expect;\n\nvar requireHelper = require('../../require_helper');\nvar Toggle = requireHelper('settings/Toggle');\n\ndescribe(\"Toggle\",... | javascript | chosen |
[
{
"from": "system",
"value": "Fix console logger prototype reference\n"
},
{
"from": "human",
"value": "var Logger = require('./Logger'),\n inherits = require('inherits');\n\n\"use strict\";\n\nvar ConsoleLogger = function () {\n this._console = window.console;\n};\n\ninherits(ConsoleLogge... | javascript | chosen |
[
{
"from": "system",
"value": "Make rootURL: '' and location: 'hash'\n\nCloses #173\n"
},
{
"from": "human",
"value": "'use strict';\n\nmodule.exports = function(environment) {\n let ENV = {\n modulePrefix: 'dummy',\n environment,\n rootURL: '/',\n locationType: 'auto',\n EmberENV... | javascript | chosen |
[
{
"from": "system",
"value": "Add support for new(er) smartCampaigns endpoints.\n"
},
{
"from": "human",
"value": "var _ = require('lodash'),\n Promise = require('bluebird'),\n util = require('../util'),\n log = util.logger();\n\nfunction Campaign(marketo, connection) {\n this._marketo... | javascript | chosen |
[
{
"from": "system",
"value": "Save Interactive State in addition to URL\n\nSince calling `setLearnerUrl` does not alter the app behavior, we also\ncall `interactiveState` and post the current URL in a JSON blob there.\nThis does get saved on their end, and allows us to devise a redirection\nmechanism to thi... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"Expose FluentContext as public API\"\n\nThis reverts commit 397cfd06eba71b980c7ef7258acf605fb363f7d1. The\ncurrent public API is sufficient for all supported use-cases. We might\nwant to extend it in the future, e.g. if we implement a useLocalization\nhook. For now how... | javascript | chosen |
[
{
"from": "system",
"value": "Add tests for annotation bar widget\n"
},
{
"from": "human",
"value": "import { mount } from '@vue/test-utils'\nimport AnnotationBar from '../../src/components/pages/playlists/AnnotationBar'\n\ndescribe('AnnotationBar', () => {\n const wrapper = mount(AnnotationBar... | javascript | chosen |
[
{
"from": "system",
"value": "Add client side stub to call dot-scripted module in the server."
},
{
"from": "human",
"value": "/*******************************************************************************\n * @license\n * Copyright (c) 2012 VMware, Inc. All Rights Reserved.\n * THIS FILE IS P... | javascript | chosen |
[
{
"from": "system",
"value": "Remove console log that never hits anyway.\n"
},
{
"from": "human",
"value": "var helpers = require(\"../helpers\")\n\ndescribe('Security', function() {\n it(\"Initializes a (hopefully secret) cookie and navigates to the security test page\", function(){\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Update lib/archive: Enable central directory\n"
},
{
"from": "human",
"value": "/**\n * Archive\n * @return {Archive}\n */\nfunction Archive() {\n \n if( !(this instanceof Archive) )\n return new Archive()\n \n // this.directory = new Zip.CentralDirectory()\n... | javascript | chosen |
[
{
"from": "system",
"value": "Trim for news headline newlines\n"
},
{
"from": "human",
"value": "const $ = require('cheerio');\nconst Promise = require('bluebird');\nconst drive = require('../drive');\nconst get = require('../get');\nconst textTemplate = require('../textTemplate');\n\nconst url ... | javascript | chosen |
[
{
"from": "system",
"value": "Include the version number in the plugin spec.\n"
},
{
"from": "human",
"value": "/*global Uint8Array*/\nvar exifParser = require('exif-parser'),\n fs = require('fs');\n\nmodule.exports = {\n name: 'unexpected-exif',\n installInto: function (expect) {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Use Fira Code again in Hyper\n"
},
{
"from": "human",
"value": "module.exports = {\n config: {\n fontSize: 13,\n fontFamily: '\"Operator Mono\", \"Fira Code\", Monoid, Menlo, \"DejaVu Sans Mono\", \"Lucida Console\", monospace',\n css: `\n header {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Move strict inside for browser use\n\ndon't want to leak stuff ...\n"
},
{
"from": "human",
"value": "/* global ftUtils, moment */\n'use strict';\n\nvar app = angular.module('flowList', ['ui.grid']);\n\napp.controller('flowListCtrl', function($scope, $http) {\n $... | javascript | chosen |
[
{
"from": "system",
"value": "Use micromatch.matcher on strings only\n\nIts behavior with functions is different (more generic) which broke\nexpected behavior for some scenarios.\n\nThis patch fixes the failing tests that were just introduced.\n"
},
{
"from": "human",
"value": "'use strict';\n\n... | javascript | chosen |
[
{
"from": "system",
"value": "Update reference to CardModel after file was renamed\n"
},
{
"from": "human",
"value": "var mongoose = require('mongoose'),\n\tuuid = require('uuid/v1'),\n\tCards = require('./CardsModel'),\n\tSchema = mongoose.Schema,\n\tPlayerSchema = new Schema({\n\t\tsessionId: ... | javascript | chosen |
[
{
"from": "system",
"value": "Remove fromToMultiplier and fix up lerp logic\n"
},
{
"from": "human",
"value": "/*!\n * tweensy - Copyright (c) 2017 Jacob Buck\n * https://github.com/jacobbuck/tweensy\n * Licensed under the terms of the MIT license.\n */\nimport now from \"performance-now\";\nimp... | javascript | chosen |
[
{
"from": "system",
"value": "Refactor to use generic `changeinside` in new retext\n"
},
{
"from": "human",
"value": "'use strict';\n\n/**\n * Dependencies.\n */\n\nvar phonetics;\n\nphonetics = require('soundex-code');\n\n/**\n * Change handler\n *\n * @this {WordNode}\n */\n\nfunction onchange... | javascript | chosen |
[
{
"from": "system",
"value": "Fix lib-cov require when using browserify\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar dir = './lib';\nif (process.env.COVERAGE){\n dir = './lib-cov';\n}\n\nvar M = require(dir);\n\nif (typeof window !== 'undefined') {\n var _M = window.M;\n window... | javascript | chosen |
[
{
"from": "system",
"value": "Replace maps with fors to improve performance.\n"
},
{
"from": "human",
"value": "'use strict'\n\nconst crypto = require('crypto')\n\n// Delimeter to separate object items form each other\n// when stringifying\nconst DELIM = '|'\n\n/**\n * Stringifies a JSON object ... | javascript | chosen |
[
{
"from": "system",
"value": "Add max-width to emoji completions.\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport AutocompleteProvider from './AutocompleteProvider';\nimport Q from 'q';\nimport {emojioneList, shortnameToImage, shortnameToUnicode} from 'emojione';\nimport Fu... | javascript | chosen |
[
{
"from": "system",
"value": "Allow lint to be disabled since it does not yet support ES6 modules.\n"
},
{
"from": "human",
"value": "var lint = require('./lint');\nvar clean = require('./clean');\nvar copy = require('./copy');\n\nvar runSequence = require('run-sequence');\n\nexports.config = fu... | javascript | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.