conversations listlengths 2 3 | source stringclasses 1 value | stack stringclasses 1 value |
|---|---|---|
[
{
"from": "system",
"value": "Print actual port number in server init log\n"
},
{
"from": "human",
"value": "'use strict';\n\n/**\n * Imports.\n */\nconst express = require('express');\n\n/**\n * Initialize Express.\n */\nconst app = express();\n\n// Setup locals variable in config/index.js.\nap... | javascript | chosen |
[
{
"from": "system",
"value": "Use a default base_url when not specified in config file\n\nAlso report the base_url at startup\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\n\n/*\n* SQL API loader\n* ===============\n*\n* node app [environment] \n*\n* environments: [development, test, pr... | javascript | chosen |
[
{
"from": "system",
"value": "Correct adding of statusmanager to endpoints\n"
},
{
"from": "human",
"value": "export default [\n 'config',\n 'hs.common.laymanService',\n function (config, laymanService) {\n const me = this;\n\n function getItemsPerPageConfig(ds) {\n return angular.... | javascript | chosen |
[
{
"from": "system",
"value": "Fix broken isClipMediaRefWithTitle for real this time (I think)\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst isClipMediaRef = {\n $not: {\n startTime: 0,\n endTime: null\n }\n}\n\nconst isClipMediaRefWithTitle = {\n $not: {\n startTime: 0,\n... | javascript | chosen |
[
{
"from": "system",
"value": "Add missing Vue.use in test\n"
},
{
"from": "human",
"value": "import Vue from 'vue';\nimport Vuex from 'vuex';\nimport component from '~/reports/components/modal_open_name.vue';\nimport { mountComponentWithStore } from 'spec/helpers/vue_mount_component_helper';\n\n... | javascript | chosen |
[
{
"from": "system",
"value": "Change e2e tests back to running on Chrome\n"
},
{
"from": "human",
"value": "exports.config = {\n // Locally, we should just use the default standalone Selenium server\n // In Travis, we set up the Selenium serving via Sauce Labs\n\n // Tests to run\n specs: [\... | javascript | chosen |
[
{
"from": "system",
"value": "Fix AppView test to render activity indicator\n"
},
{
"from": "human",
"value": "/*eslint-disable max-nested-callbacks*/\n\nimport React from 'react';\nimport {shallow} from 'enzyme';\nimport {describe, it} from 'mocha';\nimport {expect} from 'chai';\nimport Spinner... | javascript | chosen |
[
{
"from": "system",
"value": "Improve the js pages loading function\n"
},
{
"from": "human",
"value": "function loadDashboard(page, dashboard) {\n\tvar url = \"/dashboards/page/\"+dashboard+\"/\"+page+\"/\";\n\tconsole.log(\"Getting\", url);\n\tvar spinner = '<div class=\"text-center\" style=\"w... | javascript | chosen |
[
{
"from": "system",
"value": "Include a `signOut` action. Make `deleteNote` an e-c task. ES6-ify some function syntax.\n"
},
{
"from": "human",
"value": "import Em from 'ember';\nimport { task, timeout } from 'ember-concurrency';\n\nconst { computed } = Em;\n\nvar applicationController = Em.Cont... | javascript | chosen |
[
{
"from": "system",
"value": "Move toString conversions to only happen once.\n"
},
{
"from": "human",
"value": "let input = require(\"fs\").readFileSync(\"./data\").toString();\n\nlet santaPosition = [0, 0];\nlet roboSantaPosition = [0, 0];\n\nlet uniqueSantaPositions = [];\n\nfunction updateUni... | javascript | chosen |
[
{
"from": "system",
"value": "Add function to append img on the page\n"
},
{
"from": "human",
"value": "class Dice extends React.Component {\n constructor() {\n super();\n this.state = {\n \tvalue: '',\n words: this.parseInput(decodeURIComponent(location.search.substring(5))),\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Use inner data array of response\n"
},
{
"from": "human",
"value": "var app = angular.module('plugD', [\n 'angularUtils.directives.dirPagination'\n]);\n\napp.controller(\"PluginController\",function(){\n});\n\napp.directive(\"pluginList\", ['$http',function($http... | javascript | chosen |
[
{
"from": "system",
"value": "Fix meteor method not found error by initializing meteor methods on the server\n"
},
{
"from": "human",
"value": "import { Meteor } from 'meteor/meteor';\nimport { handleMigration } from './migrations';\n\nMeteor.startup(() => {\n handleMigration();\n});"
},
... | javascript | chosen |
[
{
"from": "system",
"value": "Extend initialize layer by pattern manager.\n"
},
{
"from": "human",
"value": "requirejs.config({\n baseUrl: 'test',\n paths: {\n pvcf: '../../lib/pvcf',\n when: '../test/vendor/when/when',\n node: '../test/vendor/when/node',\n call... | javascript | chosen |
[
{
"from": "system",
"value": "Send command with date range from web UI.\n"
},
{
"from": "human",
"value": "var runScraper = function() {\n $(this).attr('disabled', true)\n $(this).addClass('loading').html('Scraping…')\n var stocks = $('#stocks_input').val()\n var escaped_stocks = scra... | javascript | chosen |
[
{
"from": "system",
"value": "Add router navigation\nExternalise main component to a separate file\n"
},
{
"from": "human",
"value": "let React = require('react-native');\nlet {\n AppRegistry,\n StyleSheet,\n Text,\n View,\n StatusBarIOS\n} = React;\n\nclass Meowth extends React.Component {... | javascript | chosen |
[
{
"from": "system",
"value": "Use new structure for 2.0\n"
},
{
"from": "human",
"value": "(function() {\n\n /***********************************************************/\n /* Handle Proceed to Payment\n /***********************************************************/\n jQuery(function(... | javascript | chosen |
[
{
"from": "system",
"value": "Refactor wish-detail -> wish, added new route: wishNew.\n"
},
{
"from": "human",
"value": "const authenticatedRoutes = FlowRouter.group({\n name: 'authenticated'\n});\n\nauthenticatedRoutes.route( '/', {\n name: 'index',\n action() {\n BlazeLayout.render( 'def... | javascript | chosen |
[
{
"from": "system",
"value": "Add new one site to filter\n"
},
{
"from": "human",
"value": "chrome.webRequest.onBeforeRequest.addListener(\n (details) => { \n chrome.tabs.sendMessage(details.tabId, { content: \"message\" }, () => {});\n\n const startTime = new Date().getTime();\... | javascript | chosen |
[
{
"from": "system",
"value": "Allow place badge text to be localised\n"
},
{
"from": "human",
"value": "import React, { PropTypes } from 'react';\n\nimport DestinationListingCard from '../DestinationListingCard/DestinationListingCard';\nimport Badge from '../../Badge/Badge';\n\nimport css from '... | javascript | chosen |
[
{
"from": "system",
"value": "Add a trailing semicolon to the output\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst dirs = {\n M1A: 'M1 → Kabaty',\n M1B: 'M1 → Młociny',\n M2A: 'M2 → Dworzec Wileński',\n M2B: 'M2 → Rondo Daszyńskiego',\n};\n\n\nexport default {\n onGetSchedules: ... | javascript | chosen |
[
{
"from": "system",
"value": "Throw instead of console for linter\n"
},
{
"from": "human",
"value": "function MockXHR() {\n this.method = null\n this.url = null\n this.data = null\n this.headers = {}\n this.readyState = 0\n this.status = 0\n this.responseText = null\n}\n\nMockXHR.response... | javascript | chosen |
[
{
"from": "system",
"value": "Use the default TinyMCE4 image icon\n"
},
{
"from": "human",
"value": "(function() {\n tinymce.PluginManager.requireLangPack('uploadimage');\n\n tinymce.create('tinymce.plugins.UploadImage', {\n UploadImage: function(ed, url) {\n var form, iframe, win, edi... | javascript | chosen |
[
{
"from": "system",
"value": "Configure webpack so that `eval` is not used in the development mode\n\nUsing eval is not allowed by the CSP of newer Nextcloud versions.\n"
},
{
"from": "human",
"value": "/**\n * ownCloud - Music app\n *\n * This file is licensed under the Affero General Public Li... | javascript | chosen |
[
{
"from": "system",
"value": "Add getSettingById and fix getSettingsById. \n\n"
},
{
"from": "human",
"value": "import { find } from 'lodash';\n\nexport const getSettings = namespace => state => state.settings.collection[namespace];\n\nexport const getSetting = (namespace, setting) => state =>\n... | javascript | chosen |
[
{
"from": "system",
"value": "Add question title and guidance title fields.\n"
},
{
"from": "human",
"value": "import React, {Component} from 'react'\n\nimport Field from './Field.js'\nimport Select from './Select.js'\nimport Input from './Input.js'\nimport Label from './Label.js'\n\nexport defa... | javascript | chosen |
[
{
"from": "system",
"value": "Add map and series to RESERVED_NAMES\n"
},
{
"from": "human",
"value": "const JS_BUILT_IN_OBJECTS = [\n 'object',\n 'function',\n 'boolean',\n 'symbol',\n 'error',\n 'infinity',\n 'number',\n 'math',\n 'date',\n];\nconst RESERVED_NAMES = ['admin', 'series',... | javascript | chosen |
[
{
"from": "system",
"value": "Rename generic methods to use generic names\n"
},
{
"from": "human",
"value": "\nexport function attemptChangeName(obj, name) {\n if (!canRedefineValue(obj, 'name')) {\n return;\n }\n\n Object.defineProperty(obj, 'name', {\n value: name,\n });\n}\n\nexport... | javascript | chosen |
[
{
"from": "system",
"value": ":bug: Use binary system instead of decimal for size error\n"
},
{
"from": "human",
"value": "export function isImage(file) {\n if (file.type.split('/')[0] === 'image') {\n return true;\n }\n}\n\nexport function convertBytesToMbsOrKbs(filesize) {\n le... | javascript | chosen |
[
{
"from": "system",
"value": "Add test for default exporting ActionCableProvider\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport { shallow } from 'enzyme';\nimport { expect } from 'chai';\nimport { ActionCableProvider, ActionCable } from '../index';\n\ntest('ActionCable ren... | javascript | chosen |
[
{
"from": "system",
"value": "Use more descriptive class names\n\nThis will make it easier to add custom styling on top of the default\none.\n"
},
{
"from": "human",
"value": "module.exports = [\n {\n test: /\\.jsx?/,\n exclude: /node_modules/,\n loader: 'babel-loader',\n },\n {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Change keepEmptyPriority default to true\n"
},
{
"from": "human",
"value": "'use strict';\nvar path = require('path');\n\n// #ARCHIVE:0 Eliminate unused config options id:1203\nvar DEFAULT_EXCLUDE_PATTERN = \"^(node_modules|bower_components|\\\\.imdone|target|build|... | javascript | chosen |
[
{
"from": "system",
"value": "Make the WS URL configurable\n\nAlso store it outside of the state.\n"
},
{
"from": "human",
"value": "import React, { Component } from 'react';\nimport './App.css';\nimport Table from './Table';\n\nclass App extends Component {\n constructor () {\n super();\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix URL type error on safari\n"
},
{
"from": "human",
"value": "import { router, stringifyQuery, parseQuery } from '../router';\n\nconst defaultQuery = {\n 'x-access-from': 'ui'\n};\n\nfunction normalize(url) {\n const urlLocation = new URL(url, /^\\//.test(ur... | javascript | chosen |
[
{
"from": "system",
"value": "Fix to use vanilla JS.\n"
},
{
"from": "human",
"value": "module.exports = function runSagas(routes, dispatch, props, sagaMiddleware) {\n return Promise.all(\n routes\n .filter(function(route) {\n var sagasToRun;\n return route.component &&\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Check for secret_key and secret_value in CI Variable native list js spec\n"
},
{
"from": "human",
"value": "import $ from 'jquery';\nimport setupNativeFormVariableList from '~/ci_variable_list/native_form_variable_list';\n\ndescribe('NativeFormVariableList', () => {... | javascript | chosen |
[
{
"from": "system",
"value": "Add flag for new module loader.\n"
},
{
"from": "human",
"value": "/*\n ___ usage ___ en_US ___\n usage: prolific tcp <options>\n\n -u, --url <string>\n The URL of the logging destination.\n\n -r, --rotate <number>\n Reopen ... | javascript | chosen |
[
{
"from": "system",
"value": "Format the new numbers helper\n"
},
{
"from": "human",
"value": "/**\n * Formats a number to the American `1,000.00` format\n *\n * @param {number|string} number The value to format\n * @return {string} The formatted number\n */\nexport default function numberWithCo... | javascript | chosen |
[
{
"from": "system",
"value": "Add cname option to init wrapper\n"
},
{
"from": "human",
"value": "import apiClient from 'api-client';\nimport loader from 'loader';\n\nconst init = (apikey, security) => {\n const client = apiClient.init(apikey, security);\n return {\n getSecurity() {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add more info log output\n\nPartial reimplementation of #39\n"
},
{
"from": "human",
"value": "\"use strict\";\n\nconst path = require(\"path\");\nconst rollup = require(\"rollup\");\n\nfunction createPreprocessor(options, preconfig, basePath, logger) {\n const cac... | javascript | chosen |
[
{
"from": "system",
"value": "Fix Autoplay diretion in case of RTL\n"
},
{
"from": "human",
"value": "\n/**\n * handle autoplay\n *\n * @param {element} slideTo slide to frame function\n * @param {element} options slider options\n */\nexport default function initAutoplay (slide, option... | javascript | chosen |
[
{
"from": "system",
"value": "Remove typescript, as it is not compiled by rnpm\n"
},
{
"from": "human",
"value": "/**\n * Copyright (c) 2015-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root... | javascript | chosen |
[
{
"from": "system",
"value": "Update\n- cannot open 2 session\n"
},
{
"from": "human",
"value": "const assert = require('assert');\nconst { crypto, config } = require('./config');\n\ndescribe(\"WebCrypto\", () => {\n\n it(\"get random values\", () => {\n var buf = new Uint8Array(16);\n... | javascript | chosen |
[
{
"from": "system",
"value": "Disable POST approved invoice for now\n\nNeed to rethink this. Looks like some dependency change (swagger-tools)\nbroke this. Anyway, there should be a way to transform drafts into\napproved into paid. Maybe single endpoint would do.\n"
},
{
"from": "human",
"value"... | javascript | chosen |
[
{
"from": "system",
"value": "Update wrapper user index route tests.\n"
},
{
"from": "human",
"value": "import chai, { expect } from 'chai';\nimport mockery from 'mockery';\nimport dirtyChai from 'dirty-chai';\nchai.use(dirtyChai);\n\nimport { shallow } from 'enzyme';\n\nimport React from 'react... | javascript | chosen |
[
{
"from": "system",
"value": "Disable groups update until next year\n"
},
{
"from": "human",
"value": "'use strict';\r\n\r\nvar tablesUpdater = require('./tablesUpdater');\r\nvar resultsUpdater = require('./resultsUpdater');\r\nvar tournamentsUpdater = require('./tournamentsUpdater');\r\nvar gro... | javascript | chosen |
[
{
"from": "system",
"value": "Fix case sensitivity issue in test\n\n@bug W-3021252@\n@rev cheng@\n"
},
{
"from": "human",
"value": "({ \n testPropertiesExposed: function(cmp) {\n var testUtils = cmp.get(\"v.testUtils\");\n \n [\"appCodeName\", \"appName\", \"appVersion\"... | javascript | chosen |
[
{
"from": "system",
"value": "BB-4210: Add validation functionality to RuleEditorComponent\n- temp commit (polish of suggestion output)\n"
},
{
"from": "human",
"value": "define(function(require) {\n 'use strict';\n\n var $ = require('jquery');\n require('bootstrap');\n\n /**\n *... | javascript | chosen |
[
{
"from": "system",
"value": "Use the standard method to get the electron app location\n\nAs per the guidance at\nhttps://github.com/electron-userland/electron-prebuilt programmatic usage\nacquires the path to electron by require('electron')\n"
},
{
"from": "human",
"value": "const assert = requ... | javascript | chosen |
[
{
"from": "system",
"value": "Remove empty properties from object\n\n"
},
{
"from": "human",
"value": "import path from 'path';\nimport HtmlWebpackPlugin from 'webpack-html-plugin';\nimport webpack from 'webpack';\n\nconst array = (target) => target.filter((item) => item);\n\nexport default ({de... | javascript | chosen |
[
{
"from": "system",
"value": "Allow Local LAN devices to access the livereload machine\n"
},
{
"from": "human",
"value": "const rewrite = require('connect-modrewrite');\nconst serveIndex = require('serve-index');\nconst serveStatic = require('serve-static');\n\nmodule.exports = function (gr... | javascript | chosen |
[
{
"from": "system",
"value": "Make contract that client needs to copy or not change value\n"
},
{
"from": "human",
"value": "import MCStoreBus from './mcstorebus';\n\nclass StateStoreService {\n /*@ngInject*/\n constructor() {\n this.states = {};\n this.bus = new MCStoreBus()... | javascript | chosen |
[
{
"from": "system",
"value": "Allow multiple paths for CLI\n\nResolves #60\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\n'use strict';\n\nvar program = require('commander'),\n meta = require('../package.json'),\n lint = require('../index');\n\nvar detects,\n formatted,\n co... | javascript | chosen |
[
{
"from": "system",
"value": "Include context in RSVP handler.\n"
},
{
"from": "human",
"value": "/**\n * Ember.js plugin\n *\n * Patches event handler callbacks and ajax callbacks.\n */\n;(function(window, Raven, Ember) {\n'use strict';\n\n// quit if Ember isn't on the page\nif (!Ember) {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Use minified \"remarkable\" version in production\n"
},
{
"from": "human",
"value": "/* global require, module */\nvar EmberApp = require('ember-cli/lib/broccoli/ember-app');\n\nmodule.exports = function(defaults) {\n var vendorFiles = {};\n\n if (EmberApp.env() !... | javascript | chosen |
[
{
"from": "system",
"value": "Remove transactionTypes table and specify column nullablility\n"
},
{
"from": "human",
"value": "\nexports.up = (knex, Promise) => Promise.all([\n knex.schema.createTable('users', table => {\n table.uuid('id')\n .primary()\n .defaultT... | javascript | chosen |
[
{
"from": "system",
"value": "Put loginwrapper inside main router\n"
},
{
"from": "human",
"value": "import React from 'react'\nimport DefaultLayout from './DefaultLayout'\nimport {Router, Route, NotFound, Redirect} from 'router:@sanity/base/router'\nimport locationStore from 'datastore:@sanity/... | javascript | chosen |
[
{
"from": "system",
"value": "Use convenience localStorage functions from Backbone\nUse Backbone collection to fetch orders\nAdded new error function to Ui\nFix parameters for event callbacks\n"
},
{
"from": "human",
"value": "define(['views/user/login', 'views/user/signup', 'views/header', 'vie... | javascript | chosen |
[
{
"from": "system",
"value": "Add compatibility to old uuid key\n"
},
{
"from": "human",
"value": "import has from 'lodash/has';\nimport isPlainObject from 'lodash/isPlainObject';\nimport isArray from 'lodash/isArray';\n\nconst UUID_KEY_PATTERN = /__.+uuid__/i;\n\nexport default function stripUU... | javascript | chosen |
[
{
"from": "system",
"value": "Remove PartnerOrg Fixture from tests.\n\nPartenrOrg are moved to 1%\n"
},
{
"from": "human",
"value": "// We use factories for the models we want to test so just set \n// empty fixtures here to keep the DS.FixtureAdapter quiet\nApp.CurrentUser.FIXTURES = [];\nApp.Wa... | javascript | chosen |
[
{
"from": "system",
"value": "Add comments to pairing section\n"
},
{
"from": "human",
"value": "/*\n * Socket.io Communication\n */\n\n// module dependencies\nvar crypto = require('crypto');\n\n// variable declarations\nvar socketCodes = {};\n\nmodule.exports = function(socket) {\n // establis... | javascript | chosen |
[
{
"from": "system",
"value": "Update the demo to use tanura.init().\n"
},
{
"from": "human",
"value": "'use strict';\n\n/*\n * Tanura demo app.\n *\n * This is the main script of the app demonstrating Tanura's features.\n */\n\n/**\n * Bootstrapping routine.\n */\nwindow.onload = () => {\n co... | javascript | chosen |
[
{
"from": "system",
"value": "Fix process.ENV is not supported v0.6.x\n"
},
{
"from": "human",
"value": "var confy = require('../index');\nvar testCase = require('nodeunit').testCase;\n\nconfy.configFile = __dirname + '/.confy';\nconfy.clean();\nprocess.ENV.EDITOR = __dirname + '/editorcmd';\n\n... | javascript | chosen |
[
{
"from": "system",
"value": "Remove some lingering citext stuff from nickname query\n"
},
{
"from": "human",
"value": "\nimport { db, Rat } from '../db'\nimport Query from './index'\n\n/**\n * A class representing a rat query\n */\nclass NicknameQuery extends Query {\n /**\n * Create a seque... | javascript | chosen |
[
{
"from": "system",
"value": "Remove class state from RarStream\n"
},
{
"from": "human",
"value": "//@flow\nimport {Readable} from 'stream';\nimport RarFileChunk from './rar-file-chunk';\nexport default class RarStream extends Readable {\n _rarFileChunks: RarFileChunk[];\n _byteOffset: number ... | javascript | chosen |
[
{
"from": "system",
"value": "Add method componentState and remove inner state\n"
},
{
"from": "human",
"value": "import React, { Component } from 'react';\nimport '../styles/WeaveElement.css';\n\nclass WeaveElement extends Component {\n constructor() {\n super();\n\n this.state = {red: f... | javascript | chosen |
[
{
"from": "system",
"value": "Remove floating action from export\n"
},
{
"from": "human",
"value": "export { Avatar } from './Avatar';\nexport Button from './Button';\nexport FloatingAction from './FloatingAction';\nexport FullScreenTextArea from './FullScreenTextArea';\nexport Icon from './Icon... | javascript | chosen |
[
{
"from": "system",
"value": "Adjust gulp generator to support github orgs\n"
},
{
"from": "human",
"value": "'use strict';\nvar yeoman = require('yeoman-generator');\n\nmodule.exports = yeoman.generators.Base.extend({\n initializing: function() {\n this.option('gh_page_type', {\n type:... | javascript | chosen |
[
{
"from": "system",
"value": "Use strict in morphForm directive\n"
},
{
"from": "human",
"value": "annotationApp.directive('morphForm', function() {\n return {\n restrict: 'E',\n scope: true,\n templateUrl: 'templates/morph_form.html'\n };\n});\n"
},
{
"from": "gpt",
"valu... | javascript | chosen |
[
{
"from": "system",
"value": "[MISC] Simplify the grunt 'packageIsDefault' check\n"
},
{
"from": "human",
"value": "// Project configuration.\n\nvar pkg = require(\"../package\");\n\nmodule.exports = {\n\t\"package\" : pkg,\n\t\"paths\" : {\n\t\t\"private\": \"Resources/Private\",\n\t\t\"public... | javascript | chosen |
[
{
"from": "system",
"value": "Remove unneded database options after upgrading to Sequelize 5\n"
},
{
"from": "human",
"value": "import Sequelize from 'sequelize'\n\nimport logger from '../helpers/logger'\nimport config from './config'\n\nconst { url, dialect } = config[process.env.NODE_ENV]\n\ne... | javascript | chosen |
[
{
"from": "system",
"value": "Increase timeout for locking archives\n"
},
{
"from": "human",
"value": "import { placeStylesheet } from \"../../common/styles\";\n\nwindow.Buttercup = {\n\n fetchArchives: function() {\n return new Promise(function(resolve, reject) {\n let time... | javascript | chosen |
[
{
"from": "system",
"value": "Test in browser doesn't need docs right now\n\nConflicts:\n\tpackages/test-in-browser/package.js\n"
},
{
"from": "human",
"value": "Package.describe({\n summary: \"Run tests interactively in the browser\",\n version: '1.0.6'\n});\n\nPackage.onUse(function (api) {\... | javascript | chosen |
[
{
"from": "system",
"value": "Remove title w and h params in popupCenter\n"
},
{
"from": "human",
"value": "// https://github.com/kni-labs/rrssb\nvar popupCenter = function(url, title, w, h) {\n // Fixes dual-screen position Most browsers Firefox\n var dualScreenLe... | javascript | chosen |
[
{
"from": "system",
"value": "Remove dead link to full list of class names\n"
},
{
"from": "human",
"value": "noUiSlider.create(slider, {\n start: 80,\n range: {\n min: 0,\n max: 100\n },\n cssPrefix: 'noUi-', // defaults to 'noUi-',\n cssClasses: {\n // Full ... | javascript | chosen |
[
{
"from": "system",
"value": "Remove superfluous check in core.oauth\n"
},
{
"from": "human",
"value": "/*globals chrome,console */\n/*jslint indent:2,browser:true, node:true */\nvar PromiseCompat = require('es6-promise').Promise;\n\nvar oAuthRedirectId = \"freedom.oauth.redirect.handler\";\n\nv... | javascript | chosen |
[
{
"from": "system",
"value": "Add test cases to check for palindrome in string function\n"
},
{
"from": "human",
"value": "// Program to determine if string is a palindrome\n\nfunction checkPalindrome(str) {\n\n\t// identify non-alphanumeric characters through regular expression\n\tvar regEx = /... | javascript | chosen |
[
{
"from": "system",
"value": "Remove magic number for \"count\" in get requests\n"
},
{
"from": "human",
"value": "angular.module('cat-buddy.services', [])\n.factory('Animals', function($http) {\n var getAllFromInternetByZipCode = function(animalName, zipCode, offset) {\n offset = offset || ... | javascript | chosen |
[
{
"from": "system",
"value": "Add method to go back after print in the recipt page\n"
},
{
"from": "human",
"value": "(function() {\n 'use strict';\n\n angular\n .module('orders')\n .controller('ReciptController', ReciptController);\n\n ReciptController.$inject = ['$scope', 'OrdersServi... | javascript | chosen |
[
{
"from": "system",
"value": "Enable other locales that fully translated on Transifex\n"
},
{
"from": "human",
"value": "var downloadLocales = require('webmaker-download-locales');\nvar glob = require('glob');\nvar fs = require('fs-extra');\n\n// Which languages should we pull down?\n// Don't in... | javascript | chosen |
[
{
"from": "system",
"value": "Update to latest Express API\n"
},
{
"from": "human",
"value": "\"use strict\";\n\nvar dummy\n , hotplate = require('hotplate')\n , path = require('path')\n;\n\n\n// exports.sendResponse = function(method, res, obj){\nexports.sendResponse = function(res, obj, stat... | javascript | chosen |
[
{
"from": "system",
"value": "Fix check that would crash if folder didn’t contain a package.json file"
},
{
"from": "human",
"value": "import { join } from 'path'\nimport buildWebpackConfig from './config/build-webpack-config'\nimport buildKarmaConfig from './config/build-karma-config'\nimport s... | javascript | chosen |
[
{
"from": "system",
"value": "Add a check to ensure apiKey is included in config when using GeoCarrot’s GeoIP lookup.\n"
},
{
"from": "human",
"value": "export default class UserLocation {\n constructor({\n apiKey,\n cacheTtl = 604800, // 7 days\n fallback = 'exact', // If IP-based geo... | javascript | chosen |
[
{
"from": "system",
"value": "Move model to this.model in constructor\n"
},
{
"from": "human",
"value": "'use strict';\nimport backbone from 'backbone';\nimport _ from 'underscore';\n\nclass Person extends backbone.Model {\n getFullName() {\n return this.get('firstName') + ' ' + this.g... | javascript | chosen |
[
{
"from": "system",
"value": "Add test for time-expire event when timer finishes\n"
},
{
"from": "human",
"value": "import Vue from 'vue';\nimport Countdown from '../src/vue-countdown';\nimport {getVM} from './helpers';\n\ndescribe('Vue countdown component', () => {\n it('sets passed label co... | javascript | chosen |
[
{
"from": "system",
"value": "Remove unneeded console logs, improve messaging to player.\n"
},
{
"from": "human",
"value": "'use strict';\nconst CommandUtil = require('../src/command_util').CommandUtil;\nconst l10nFile = __dirname + '/../l10n/commands/kill.yml';\nconst _ = require('../src/helper... | javascript | chosen |
[
{
"from": "system",
"value": "Set up the controller after a route change wrt editing\n"
},
{
"from": "human",
"value": "import Ember from 'ember';\n\nexport default Ember.Route.extend({\n model(params) {\n return this.store.find('seq', params.lang + \"-\" + params.seq).then(\n (model) =... | javascript | chosen |
[
{
"from": "system",
"value": "Fix typo in CD server.\n"
},
{
"from": "human",
"value": "// Continuous delivery server\nconst { spawn } = require('child_process')\nconst { resolve } = require('path')\nconst { createServer } = require('http')\nconst { urlencoded } = require('body-parser')\n\nconst... | javascript | chosen |
[
{
"from": "system",
"value": "Remove + / - buttons\n"
},
{
"from": "human",
"value": "const h = require('virtual-dom/h');\n\nmodule.exports = function (data) {\n const {gameID, game} = data;\n return h('div', {className: 'room'}, [\n game.playing ? null : h('form', {method: 'post', action: ... | javascript | chosen |
[
{
"from": "system",
"value": "Clarify how to attach events and RailsUjs\n"
},
{
"from": "human",
"value": "/* eslint no-console:0 */\n\n// RailsUjs is *required* for links in Lucky that use DELETE, POST and PUT.\nimport RailsUjs from \"rails-ujs\";\n\n// Turbolinks is optional. Learn more: https... | javascript | chosen |
[
{
"from": "system",
"value": "Update tilrettelagt_for array with types from tilrettelegginger on save\n"
},
{
"from": "human",
"value": "import DS from 'ember-data';\nimport ApplicationSerializer from '../serializers/application';\n\nexport default ApplicationSerializer.extend({\n\n normalize: ... | javascript | chosen |
[
{
"from": "system",
"value": "Simplify bable includes and add Gulpfiles\n"
},
{
"from": "human",
"value": "/* eslint-disable object-shorthand */\nmodule.exports = {\n // We need to make sure that the transpiler hit the linoleum source since we are\n // not building to npm or simliar.\n ignore... | javascript | chosen |
[
{
"from": "system",
"value": "Add missing ./ prefix in rollup input\n"
},
{
"from": "human",
"value": "import buble from '@rollup/plugin-buble'\n\nexport default {\n input: 'src/commands.js',\n output: {\n dir: 'dist',\n format: 'cjs',\n sourcemap: true\n },\n plugins: [buble()],\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Refactor to use promises for social media service responses.\n"
},
{
"from": "human",
"value": "module.exports = (function(){\n\n\t// GET /users/:id/media?lat=<LAT>&lng=<LNG>&time=<TIME>\n\treturn function* collection(id) {\n\n\t\t// Twitter Requests\n var twitte... | javascript | chosen |
[
{
"from": "system",
"value": "Change route file to be used later\n"
},
{
"from": "human",
"value": "var artistController = require('../controllers/artist-controller');\nvar genreController = require('../controllers/genre-controller');\n\nmodule.exports = function(app, passport) {\n app.get('/au... | javascript | chosen |
[
{
"from": "system",
"value": "[Release_0.0.1] Fix DataTable in User page\n"
},
{
"from": "human",
"value": "$.extend( true, $.fn.dataTable.defaults, {\n \"autoWidth\": false,\n \"columnDefs\": [\n { width: '10%', targets: 0 },\n { width: '15%', targets: 1 },\n { width:... | javascript | chosen |
[
{
"from": "system",
"value": "Use heroku api base for now\n"
},
{
"from": "human",
"value": "const productionConfig = {\n apiBase: 'http://api.storypalette.net/v1/',\n socketBase: 'http://api.storypalette.net/',\n environment: 'production',\n port: 8882,\n};\n\nconst developmentConfig = {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"Update customProjector example to use a scale. Doesn't work yet (pending merge to gh-pages)\"\n\nThis reverts commit df014cfaed10a0eba602ebb0355ef83452faf133.\n\nModified example instead of copying.\n"
},
{
"from": "human",
"value": "window.onload = functio... | javascript | chosen |
[
{
"from": "system",
"value": "Add method to selectively enable focus ring\n"
},
{
"from": "human",
"value": "import { $assign, $fetch, $replaceAll } from 'domose';\n\n/* Dispatch an Custom Event with a detail\n/* ========================================================================== */\n\nfu... | javascript | chosen |
[
{
"from": "system",
"value": "Fix closure compiler warnings for process.env.*\n\ngit-svn-id: 9171c9e75a46cbc9e9e8eb6adca0da07872ad553@1885 5ac057f5-ce63-4fb3-acd1-ab13b794ca36\n"
},
{
"from": "human",
"value": "/*\n * externs.js - define externs for the google closure compiler\n * \n * Copyright... | javascript | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.