conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Use property function to define buffer\n"
},
{
"from": "human",
"value": "import Em from 'ember';\nvar get = Em.get;\nvar copy = Em.copy;\n\nvar ArrayPauser = Em.ArrayProxy.extend({\n\tisPaused: false,\n\n\tbuffer: Em.A(),\n\n\taddToBuffer: function (idx, removedCou... | javascript | chosen |
[
{
"from": "system",
"value": "Print http start to beginning\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\n'use strict';\n\nvar config = require('./config');\n\nvar http = require('http');\nvar ip = require('ip');\nvar exec = require('child_process').exec;\n... | javascript | chosen |
[
{
"from": "system",
"value": "Add middleware to collect Auth0 config via secrets\n"
},
{
"from": "human",
"value": "var jwt = require('express-jwt');\nvar Express = require('express');\nvar Webtask = require('webtask-tools');\n\nvar app = Express();\n\n// endpoints\n\napp.get('/users', function ... | javascript | chosen |
[
{
"from": "system",
"value": "Remove compile step from watch\n\nPotentially causing infinite loop re-compile\n"
},
{
"from": "human",
"value": "module.exports = function(grunt) {\n grunt.initConfig({\n pkg: grunt.file.readJSON('package.json'),\n\n banner: '/*! <%= pkg.name %> <%= pkg.vers... | javascript | chosen |
[
{
"from": "system",
"value": "Update adapter factory to provide default options.\n"
},
{
"from": "human",
"value": "/**\n * External imports\n */\nimport libdebug from 'debug';\n\n// create debug logger\nconst debug = libdebug('storage-adapter');\n\nconst PROTOTYPE = {\n find() {},\n};\n\nexpor... | javascript | chosen |
[
{
"from": "system",
"value": "Make a first attempt to identify the build issue\n"
},
{
"from": "human",
"value": "import {\n Future,\n isFuture,\n reject,\n of,\n never,\n isNever\n} from './core';\n\nimport * as dispatchers from './dispatchers/index';\n\nimport {after} from './after';\nim... | javascript | chosen |
[
{
"from": "system",
"value": "Handle with possible error on start .\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst path = require('path');\nconst constants = require(path.resolve('src/utils/constants'));\nconst express = require('express');\nconst pokemonRoutes = require(path.resolve(... | javascript | chosen |
[
{
"from": "system",
"value": "Add URL scroll management back.\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport ReactDOM from 'react-dom';\nimport Homepage from './components/Homepage';\nimport Docs from './containers/Docs';\nimport { Router, Route, browserHistory, applyRoute... | javascript | chosen |
[
{
"from": "system",
"value": "Add some checking around dupes so we dont end up trying to processing empty arrays\nadd a default to the reduce so we dont end up trying to reduce nothing\nFixes THRONETEKI-24J\nFixed THRONETEKI-243\n"
},
{
"from": "human",
"value": "const PlotCard = require('../../... | javascript | chosen |
[
{
"from": "system",
"value": "Add change service point event\n"
},
{
"from": "human",
"value": "const events = {\n LOGIN: 1,\n LOGOUT: 2,\n SELECT_MODULE: 3,\n};\n\nexport default events;\n"
},
{
"from": "gpt",
"value": "const events = {\n LOGIN: 1,\n LOGOUT: 2,\n SELECT_MODULE... | javascript | chosen |
[
{
"from": "system",
"value": "Fix menu view not refactored\n"
},
{
"from": "human",
"value": "import {inject} from 'aurelia-framework';\nimport {LayoutService} from './services/layout-service';\n\nimport type {RouterConfiguration, Router} from 'aurelia-router';\n\n@inject(LayoutService)\nexport ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix inline script visibility in enum handler\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar mixin = require('es5-ext/object/mixin')\n , d = require('d')\n , DOMRadio = require('dbjs-dom/input/enum').Radio\n , RadioBtnGroup = requ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix getAuthorization tokens keys names\n"
},
{
"from": "human",
"value": "var _ = require(\"lodash\");\nvar conf = require(\"./configuration.js\");\nvar Logger = require(\"../logger.js\");\n\nmodule.exports = function() {\n var s_oauthData = conf.loadOAuthConf();\n... | javascript | chosen |
[
{
"from": "system",
"value": "[application] Add the left bar in the clear cartrige.\n"
},
{
"from": "human",
"value": "var dispatcher = require('../dispatcher');\nvar Empty = React.createClass({\n render: function() {\n return <div></div>;\n }\n});\n\nmodule.exports = {\n render: require('... | javascript | chosen |
[
{
"from": "system",
"value": "Set a default INSPIRE_API_URL value for tests\n"
},
{
"from": "human",
"value": "// Remove the PUBLIC_URL, if defined\nprocess.env.PUBLIC_URL = '';\n\nrequire('babel-register')();\n\nconst { jsdom } = require('jsdom')\nconst moduleAlias = require('module-alias')\nco... | javascript | chosen |
[
{
"from": "system",
"value": "Convert gulp coverage spawnSyncs to chained spawns.\n"
},
{
"from": "human",
"value": "const gulp = require('gulp');\n\nconst spawn = require('child_process').spawn;\nconst spawnSync = require('child_process').spawnSync;\n\n\ngulp.task('test', function(cb) {\n le... | javascript | chosen |
[
{
"from": "system",
"value": "Make account react component keys unique\n"
},
{
"from": "human",
"value": "import React from 'react';\n\nconst Accounts = ({id, className, accounts, accountsMap, account, paymenttype, onAccountsFieldChange }) => (\n <select id={id} className={className} onChange... | javascript | chosen |
[
{
"from": "system",
"value": "Move around watch config and change default interval\n"
},
{
"from": "human",
"value": "module.exports = {\n\twatching: {\n\t\tpoll: true,\n\t\tinterval: 10000\n\t},\n\tscripts: {\n\t\tloader: 'browserify',\n\t\tfiles: [\n\t\t\t'public/scripts/main.js'\n\t\t]\n\t},\... | javascript | chosen |
[
{
"from": "system",
"value": "[showcase] Support ES7 in live example\n"
},
{
"from": "human",
"value": "/* globals babel */\n\n// Dependencies\n\nconst {types} = Focus.component;\n\nconst LivePreview = React.createClass({\n displayName: 'LivePreview',\n propTypes: {\n code: types('s... | javascript | chosen |
[
{
"from": "system",
"value": "Add semicolon to return statements\n"
},
{
"from": "human",
"value": "var Invoice = DS.Model.extend({\n\n tax: DS.attr('number'),\n invoice_number: DS.attr('number'),\n items: DS.hasMany('InvoiceItem'),\n \n sub_total: function(){\n return this.get('items').... | javascript | chosen |
[
{
"from": "system",
"value": "Add controller values for demo\n"
},
{
"from": "human",
"value": "angular.module('app', ['ngJustGage']).controller('myController', function($scope) {});"
},
{
"from": "gpt",
"value": "angular.module('app', ['ngJustGage']).controller('myController', funct... | javascript | chosen |
[
{
"from": "system",
"value": "Fix source link in footer\n"
},
{
"from": "human",
"value": "import React, { Component } from 'react';\nimport styled from 'styled-components';\n\nconst FooterComponent = styled.footer`\n padding-bottom: 3rem;\n background: transparent;\n`;\n\nclass Footer extends... | javascript | chosen |
[
{
"from": "system",
"value": "Include IP address so as to access my localhost from my mobile phone\n"
},
{
"from": "human",
"value": "// This will be our application entry. We'll setup our server here.\nconst app = require('../index'); // The express app we just created on index.js\n\napp.listen... | javascript | chosen |
[
{
"from": "system",
"value": "Fix bootstrap JS in asset pipeline\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": "Extend object; dont add undefined `keys`\n"
},
{
"from": "human",
"value": "'use strict';\n\n\nangular.module('streamium.peer', [])\n\n.service('PeerJS', function() {\n\n function getPeerJSConfig(config, index) {\n if (index >= config.peerServers.length) throw n... | javascript | chosen |
[
{
"from": "system",
"value": "Fix redirect bug fix when first app start\n"
},
{
"from": "human",
"value": "import React from 'react'\nimport { Route, IndexRedirect } from 'react-router'\n\nimport Main from './Main'\nimport StorageIndex from './contents/StorageIndex'\nimport NoteList from './cont... | javascript | chosen |
[
{
"from": "system",
"value": "Check for \"invalid date\" case in JS.\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": "Fix pathHead to ensure console works under that path\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\nvar Console = require(\"./console\")\n , arg, options = {\n workDir: process.cwd()\n , consolePath: \"/roil\"\n , port : 3000\n }\n , args = ... | javascript | chosen |
[
{
"from": "system",
"value": "Add modifier before modulus to eliminate check for +/-\n"
},
{
"from": "human",
"value": "import make from \"./make\";\n\nexport const setHue = (color, hueValue) => {\n if (hueValue === null) return color;\n const { s, l, a } = color;\n return make.fromHsl(hueVal... | javascript | chosen |
[
{
"from": "system",
"value": "Fix new NASM number regexp\n"
},
{
"from": "human",
"value": "Prism.languages.nasm = {\n 'comment': /;.*$/m,\n 'string': /(\"|'|`)(\\\\?.)*?\\1/gm,\n 'label': {\n pattern: /^\\s*[A-Za-z\\._\\?\\$][\\w\\.\\?\\$@~#]*:/m,\n alias: 'function'\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Update the call to testing progress bars\n"
},
{
"from": "human",
"value": "import notificationActions from '../flux/notificationActions'\nwindow.addEventListener('error', notificationActions.logError)\nnotificationActions.startProgress(1, 'Testing Progress Bars', 1... | javascript | chosen |
[
{
"from": "system",
"value": "Allow user profile controller to also load data from localStorage\n"
},
{
"from": "human",
"value": "'use strict';\n\n/*\n * Module that contains a controller in charge of\n * viewing a user's profile. TBD\n */\n\nangular.module('userprofile', [])\n\n.controller('Us... | javascript | chosen |
[
{
"from": "system",
"value": "Fix the static resources path\n"
},
{
"from": "human",
"value": "import {Server} from 'hapi'\nimport inert from 'inert'\nimport getProjects from './app/get-projects'\n\n/**\n * @param {string} configFilename The config filename\n * @param {number} port The port numb... | javascript | chosen |
[
{
"from": "system",
"value": "Add conditional to server connection host and allow CORS\n"
},
{
"from": "human",
"value": "import {Server} from 'hapi'\nimport Mongoose from 'mongoose'\n\nimport Config from '../config'\nimport Routes from './routes'\n\nlet server = new Server()\n\nMongoose.connect... | javascript | chosen |
[
{
"from": "system",
"value": "Update to js-jupyter-services 0.5 for some reconnect fixes that are nice to have\n"
},
{
"from": "human",
"value": "/*\n * Copyright 2015 IBM Corp.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in comp... | javascript | chosen |
[
{
"from": "system",
"value": "Set to \"use strict\" mode\n"
},
{
"from": "human",
"value": "(function(google) {\n google.load('search', '1', {\n language: 'en',\n nocss: true\n });\n\n google.setOnLoadCallback(function() {\n var cx = '000850824335660518947:3osiz3zllwq';\n var cust... | javascript | chosen |
[
{
"from": "system",
"value": "Add function to return correct translation string, add logic to make function call if target is found and is an npc with a name and level.\n"
},
{
"from": "human",
"value": "var CommandUtil = require('../src/command_util').CommandUtil;\nvar l10n_file = __dirname + '... | javascript | chosen |
[
{
"from": "system",
"value": "Use the final endTime in getCurrent().\n\nIt might be good at some point to split this out, so that getCurrent() returns\nnull or undefined if the timer isn't running, and have a separate function\nto get the final solve time.\n"
},
{
"from": "human",
"value": "var ... | javascript | chosen |
[
{
"from": "system",
"value": "Set type option to nodebuffer if in node environment.\n"
},
{
"from": "human",
"value": "var write = require('./write'),\n geojson = require('./geojson'),\n prj = require('./prj'),\n JSZip = require('jszip');\n\nmodule.exports = function(gj, options) {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Use online keywords instead of pulling from app\n"
},
{
"from": "human",
"value": "var keywords = new Bloodhound({\n datumTokenizer: Bloodhound.tokenizers.whitespace,\n queryTokenizer: Bloodhound.tokenizers.whitespace,\n // url points to a json file that contains... | javascript | chosen |
[
{
"from": "system",
"value": "Include Jetpack plugin support in WPCOM builds.\n"
},
{
"from": "human",
"value": "module.exports = {\n\tpackage: {\n\t\tfiles: [\n\t\t\t{\n\t\t\t\tcwd: '<%= paths.source %>',\n\t\t\t\tsrc: [\n\t\t\t\t\t'**',\n\t\t\t\t\t'!<%= paths.js %>/source/**',\n\t\t\t\t\t'!inc... | javascript | chosen |
[
{
"from": "system",
"value": "Add select item packet ID\n"
},
{
"from": "human",
"value": "module.exports = {\n // Packet constants\n PLAYER_START: \"1\",\n PLAYER_ADD: \"2\",\n PLAYER_ANGLE: \"2\",\n PLAYER_UPDATE: \"3\",\n PLAYER_ATTACK :\"4\",\n LEADERBOAD: \"5\",\n PL... | javascript | chosen |
[
{
"from": "system",
"value": "Use cloning. Sorry, screwed that up.\n"
},
{
"from": "human",
"value": "//\n// Like testTwo, but instead of simply replacing the nodes\n// we first clone them. This leads to a single DOM op instead\n// of `n+1` DOM ops.\n//\n\n(function() {\n var btn = document.que... | javascript | chosen |
[
{
"from": "system",
"value": "Test case for a lat/long-based location.\n"
},
{
"from": "human",
"value": "var Showtimes = require('../')\nvar test = require('tap').test;\nvar s = new Showtimes(94118, {\n //date: 0\n});\n\ntest('get theaters', function (t) {\n s.getTheaters(function (theaters) ... | javascript | chosen |
[
{
"from": "system",
"value": "Configure single run of tests\n"
},
{
"from": "human",
"value": "// Karma configuration file, see link for more information\n// https://karma-runner.github.io/1.0/config/configuration-file.html\nprocess.env.CHROME_BIN = require('puppeteer').executablePath();\n\nmodu... | javascript | chosen |
[
{
"from": "system",
"value": "Remove noisey console.log line inside smoke tests\n\nThis was added for debugging at some point, but is making the test\noutput harder to read now.\n"
},
{
"from": "human",
"value": "'use strict'\n\nconst expect = require('chai').expect\n\n// Components\nconst nunju... | javascript | chosen |
[
{
"from": "system",
"value": "Fix undefined url not being set to the default value.\n"
},
{
"from": "human",
"value": "import express from 'express';\nimport path from 'path';\nimport { createRouter } from './router';\n\nexport default function (apiKey, region, opts = {}) {\n const url = opts.u... | javascript | chosen |
[
{
"from": "system",
"value": "Switch tooltip for +Popcorn and done button\n"
},
{
"from": "human",
"value": "define([], function(){\n\n return function( butter ){\n var _button = document.createElement( \"button\" );\n\n _button.id = \"add-popcorn\";\n _button.innerHTML = \"+Popcorn\";... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"Revert \"Revert \"Revert \"Revert \"Revert \"kein editor\"\"\"\"\"\"\n\nThis reverts commit 29b5b8400f96c777adde70f06560753cd1f0faa6.\n"
},
{
"from": "human",
"value": "import React, { PropTypes } from 'react';\nimport ReactDOM from 'react-dom';\n\nimport {... | javascript | chosen |
[
{
"from": "system",
"value": "Fix returned name for date\n"
},
{
"from": "human",
"value": "'use strict'\n\nconst Record = require('../schemas/Record')\nconst aggregateTopFields = require('../aggregations/aggregateTopFields')\nconst aggregateRecentFields = require('../aggregations/aggregateRecen... | javascript | chosen |
[
{
"from": "system",
"value": "Fix rl mock for tests\n"
},
{
"from": "human",
"value": "var EventEmitter = require(\"events\").EventEmitter;\nvar sinon = require(\"sinon\");\nvar util = require(\"util\");\nvar _ = require(\"lodash\");\n\nvar stub = {\n write : sinon.stub().returns(stub),... | javascript | chosen |
[
{
"from": "system",
"value": "Update test for mixed imports"
},
{
"from": "human",
"value": "/* eslint-env mocha */\n'use strict';\n\nconst madge = require('../lib/api');\nrequire('should');\n\ndescribe('Flow', () => {\n\tconst dir = __dirname + '/flow';\n\n\tit('extracts ES module ependencies',... | javascript | chosen |
[
{
"from": "system",
"value": "feat(titlecolor): Add title color for Chrome mobile and Edge Mobile\n"
},
{
"from": "human",
"value": "import React, { Component, PropTypes } from \"react\"\nimport Helmet from \"react-helmet\"\n\nimport Header from \"../components/Header\"\nimport Footer from \"../... | javascript | chosen |
[
{
"from": "system",
"value": "Remove unneeded getPageJSFile hbs helper\n"
},
{
"from": "human",
"value": "//\n// Copyright 2009-2014 Ilkka Oksanen <iao@iki.fi>\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with ... | javascript | chosen |
[
{
"from": "system",
"value": "Move progressbar stuff to dedicated function\n"
},
{
"from": "human",
"value": "var QuestionView = function (data) {\n//View for the overview screen\n\n\tthis.initialize = function () {\n\t// View constructor\n\t\tif (app.loggedin == true){\n\t\t\t//Show all categor... | javascript | chosen |
[
{
"from": "system",
"value": "Make seg faults happen. Don't quite grok why.\n"
},
{
"from": "human",
"value": "var g = require(\"../lib/glob\")\n , gt = new g.glob_t()\n\nconsole.log(g.globSync(\"*\", 0, gt))\nconsole.log(g.globSync(\"*/*.js\", g.GLOB_APPEND, gt))\n\ng.glob(\"*/*/*.js\", g.GLO... | javascript | chosen |
[
{
"from": "system",
"value": "Update store to work with redux-devTools\n"
},
{
"from": "human",
"value": "import thunkMiddleware from 'redux-thunk';\nimport { createStore, compose, combineReducers, applyMiddleware } from 'redux';\nimport { routerReducer } from 'react-router-redux';\n\nimport art... | javascript | chosen |
[
{
"from": "system",
"value": "tests: Fix the new Jest check to not break dev, oops.\n\nAfter c8b4e4e04 \"tests: Fix check for running in Jest.\", if you try\nrunning the app in debug mode you get a redscreen saying `__TEST__`\nis not a variable. Instead, check first whether `__TEST__` is set\nat all.\n\nTh... | javascript | chosen |
[
{
"from": "system",
"value": "Check if app is already initialized\n\n"
},
{
"from": "human",
"value": "import admin from 'firebase-admin';\n\nconst serviceAccount = require('./firebase-admin-key.json');\n\nadmin.initializeApp({\n credential: admin.credential.cert(serviceAccount),\n databaseURL... | javascript | chosen |
[
{
"from": "system",
"value": "Fix quotes in error messages\n\nDamn I am stupid.\n"
},
{
"from": "human",
"value": "import _ from 'lodash';\n\nlet getMessageType,\n getReportForFile;\n\n/**\n * @param {lintText~message} message\n * @returns {string}\n */\ngetMessageType = (message) => {\n i... | javascript | chosen |
[
{
"from": "system",
"value": "Fix missing query string in req.url\n"
},
{
"from": "human",
"value": "export default ({\n defaultLocale,\n siteLocales,\n} = {}) => {\n if (typeof defaultLocale !== 'string') {\n throw new Error('Expected defaultLocale to be a locale string.');\n }\n if (ty... | javascript | chosen |
[
{
"from": "system",
"value": "Remove overlay JS function since we now use Magnific popup.\n"
},
{
"from": "human",
"value": ";(function($){\n $(function() {\n \n var selections = $('#add-cart select');\n \n var showImage = function(id) {\n var image = $(id);\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Refactor some code to a seperate function\n"
},
{
"from": "human",
"value": "var sms = {\n send: function(phone, message, method, successCallback, failureCallback) {\n if (typeof phone === 'string' && phone.indexOf(',') !== -1) {\n phone = phone.split(',');... | javascript | chosen |
[
{
"from": "system",
"value": "Add tests for typing and self messages\n"
},
{
"from": "human",
"value": "const React = require('react/addons');\nconst TestUtils = React.addons.TestUtils;\n\njest.dontMock('../view.jsx');\n\nconst Message = require('../view.jsx');\n\ndescribe('Message', function() ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix relative path in hash mode history.\n"
},
{
"from": "human",
"value": "import { resolvePath, hashChange } from '../utils'\n\nfunction HashHistory(option) {\n this.onChange = option.onChange;\n}\n\nHashHistory.prototype.start = function() {\n var self = this;\n... | javascript | chosen |
[
{
"from": "system",
"value": "Trim and lowercase message text\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar counts = {};\n\nvar comboBreaker = function(message, response, logger) {\n var text = message.text;\n counts[text] = (counts[text] || 0) + 1;\n logger.log(message, counts[text... | javascript | chosen |
[
{
"from": "system",
"value": "Update parcel bundler to use correct package name\n"
},
{
"from": "human",
"value": "module.exports = {\n presetPackages: [\n ['browserify', 'webpack', 'rollup', 'parcel'],\n ['recompose', 'mobx'],\n [\n 'glamor',\n 'aphrodite',\n 'radium',\... | javascript | chosen |
[
{
"from": "system",
"value": "Use tax variable more intelligently"
},
{
"from": "human",
"value": "$(document).ready(function() {\n\n$(\"form\").on(\"submit\", function() {\n var gross = parseFloat($(\"#wish\").val()) * parseFloat($(\"#tax\").val()) / 100 + parseFloat($(\"#wish\").val());\n va... | javascript | chosen |
[
{
"from": "system",
"value": "Remove vírgulas que não fazem parte do meu estilo\n"
},
{
"from": "human",
"value": "var path = require('path')\nvar pkg = require('./package.json')\nvar UglifyjsPlugin = require('uglifyjs-webpack-plugin')\nvar BannerPlugin = require('webpack').BannerPlugin\n\nmodul... | javascript | chosen |
[
{
"from": "system",
"value": "Remove hot loading from webpack entry\n"
},
{
"from": "human",
"value": "var path = require('path');\nvar webpack = require('webpack');\n\nmodule.exports = {\n entry: {\n app: ['webpack/hot/dev-server', './app/index.js'],\n },\n output: {\n path: path.join(... | javascript | chosen |
[
{
"from": "system",
"value": "Remove apply shortcut from external api\n"
},
{
"from": "human",
"value": "\"use strict\";\n\nwindow.arethusaExternalApi = function () {\n var obj = {};\n\n obj.isArethusaLoaded = function() {\n try {\n angular.module('arethusa');\n return true;\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix bug in handleClick method.\n"
},
{
"from": "human",
"value": "import Mn from 'backbone.marionette';\n\nvar OverlayView = Mn.ItemView.extend({\n className: 'overlay-view hide',\n\n // The OverlayView doesn't need a template: it's simply an element\n // that co... | javascript | chosen |
[
{
"from": "system",
"value": "Remove babelHelper and add global"
},
{
"from": "human",
"value": "/**\n * Created by godsong on 16/7/7.\n */\nvar injectedGlobals = [\n 'define',\n 'require',\n 'document',\n 'bootstrap',\n 'register',\n 'render',\n '__d',\n '__r',\n '__D... | javascript | chosen |
[
{
"from": "system",
"value": "Change mob menu icon when auto-closing nav menu from a selected nav item\n"
},
{
"from": "human",
"value": "var bindEvents = function() {\n\tsmoothScroll.init();\n\n\tdocument.querySelector('.mobile-menu-toggle').addEventListener('click', function(event) {\n\t\teven... | javascript | chosen |
[
{
"from": "system",
"value": "Reset carousel timer when click prev/next buttons\n"
},
{
"from": "human",
"value": "/*\n Carousel\n*/\n\nvar prevBtn = document.getElementById(\"previous\");\nvar slider = document.getElementById(\"slider\");\nvar nextBtn = document.getElementById(\"next\");\nvar ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix player stats not actually working\n\nFixed what @kayteh broke"
},
{
"from": "human",
"value": "$(document).ready(function(event){\n $('#submit').click(function(event){\n getData();\n \n });\n $('#formThing').submit(function(event){\n event.p... | javascript | chosen |
[
{
"from": "system",
"value": "Use Force Segment write key\n"
},
{
"from": "human",
"value": "import React from 'react'\nimport ReactDOM from 'react-dom/server'\nimport request from 'superagent'\nimport { DisplayPanel } from '@artsy/reaction-force/dist/Components/Publishing/Display/DisplayPanel'\... | javascript | chosen |
[
{
"from": "system",
"value": "Make getPresentFields on Place more robust\n\nConsider empty lists and empty strings not present. Leave zeroes alone\nthough.\n"
},
{
"from": "human",
"value": "import locations from '../core/locations';\nimport Model from '../base/model';\nimport {capfirst, makeAbs... | javascript | chosen |
[
{
"from": "system",
"value": "Set votedState false when issue is closed\n"
},
{
"from": "human",
"value": "import { OPEN_ISSUE } from '../../../common/actionTypes/issues';\nimport { VOTING_STATE } from '../../../common/actionTypes/voting';\n\nconst votedState = (state = false, action) => {\n sw... | javascript | chosen |
[
{
"from": "system",
"value": "Fix imaginary constant gate not being drawn as an octagon\n"
},
{
"from": "human",
"value": "// Copyright 2017 Google Inc.\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\... | javascript | chosen |
[
{
"from": "system",
"value": "Fix incorrect logic for background color checking\n"
},
{
"from": "human",
"value": "var darkColor;\nvar lightColor;\n\nself.port.on(\"colors\", function(colors) {\n darkColor = colors[0];\n lightColor = colors[1];\n checkElementContrast(document.getElement... | javascript | chosen |
[
{
"from": "system",
"value": "Revert default server url to localhost\n"
},
{
"from": "human",
"value": "(function (window) {\n \"use strict\";\n\n var setts = {\n \"SERVER_URL\": \"http://mfl.azure.slade360.co.ke/\",\n \"CREDZ\": {\n \"username\": \"serikalikuu@mfl... | javascript | chosen |
[
{
"from": "system",
"value": "Delete version prop before loading prev state\n"
},
{
"from": "human",
"value": "import { PERSIST_STATE } from '../actions';\nimport { getStateToSave } from '../selectors';\n\nexport const persistState = store => next => action => {\n if (action.type !== PERSIST_ST... | javascript | chosen |
[
{
"from": "system",
"value": "Remove default args for backwards compatibility\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst path = require('path');\nconst fs = require('fs');\nconst tmp = require('tmp');\nconst _ = require('lodash');\n\nconst Util = require('../util');\nconst Deploym... | javascript | chosen |
[
{
"from": "system",
"value": "FIX - Another FIX for module exprtsssssssss\n"
},
{
"from": "human",
"value": "// Imports the Google Cloud client library\nconst Vision = require('@google-cloud/vision');\n// Your Google Cloud Platform project ID\nconst projectId = 'imagereader-167016';\n// Instanti... | javascript | chosen |
[
{
"from": "system",
"value": "Refactor component:\n- remove unnecessary use of state;\n- create auxiliary variables in the render function.\n"
},
{
"from": "human",
"value": "import React from 'react'\n\nimport styles from './event-heading.module.styl'\n\nexport default class EventHeading extend... | javascript | chosen |
[
{
"from": "system",
"value": "Fix the list tag style\n"
},
{
"from": "human",
"value": "module.exports = {\n inputStyle: {\n \"backgroundColor\": \"white\",\n \"border\": `1px solid transparent`,\n \"borderRadius\": `1px`,\n \"boxShadow\": `0 2px 6px rgba(0, 0, 0, ... | javascript | chosen |
[
{
"from": "system",
"value": "Return JSON results by default\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar proxy = require('http-proxy').createProxy();\nvar querystring = require('querystring');\nvar roviSig = require('./node_modules/rovi/lib/sig.js')\n\nmodule.exports = function (patt... | javascript | chosen |
[
{
"from": "system",
"value": "Remove trailing comma (part 2)\n\nThis is starting to become a pain.\n"
},
{
"from": "human",
"value": "define([\n 'stache!common/templates/visualisations/completion_numbers',\n 'extensions/views/view',\n 'common/views/visualisations/volumetrics/number',\n 'comm... | javascript | chosen |
[
{
"from": "system",
"value": "Fix quite app with OSX\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst electron = require('electron');\nconst app = electron.app;\nconst BrowserWindow = electron.BrowserWindow;\n\nvar mainWindow = null;\n\n// Quit when all windows are closed\napp.on('windo... | javascript | chosen |
[
{
"from": "system",
"value": "Fix errors regarding text being null\n"
},
{
"from": "human",
"value": "Filters.filter(\"truncate\", [function ()\n{\n return function (text, length, end)\n {\n if (isNaN(length))\n {\n length = 10;\n }\n\n if (end == un... | javascript | chosen |
[
{
"from": "system",
"value": "Use node instead webpack to launch Browsersync session\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\r\n\r\nconst {spawn} = require('child_process');\r\nconst exit = require('signal-exit');\r\nconst output = require('./../lib/helpers/output');\r\nconst para... | javascript | chosen |
[
{
"from": "system",
"value": "Change from AnimationRepository to data structure.\n"
},
{
"from": "human",
"value": "\"use strict\";\n\nfunction setOwnPropertiesDeep(src, dest) {\n\tvar props = Object.keys(src);\n\tfor (var i = 0; i < props.length; i++) {\n\t\tvar prop = props[i];\n\t\tvar val = ... | javascript | chosen |
[
{
"from": "system",
"value": "DataAccess: Change webpart to portal view\n\n"
},
{
"from": "human",
"value": "/*\n * Copyright (c) 2019 LabKey Corporation\n *\n * Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0\n */\nmodule.exports = {\n apps: [\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Change Retrun, using Shotcircuit Evaluation\n"
},
{
"from": "human",
"value": "\nvar StringUtilities = {\n\tgetFirstVowel: function(word){\n\t\tvowels = word.match(new RegExp('[AEIOU]'));\n\t\tif(vowels) {\n\t\t\treturn vowels[0];\n\t\t} else {\n\t\t\treturn 'X';\n\... | javascript | chosen |
[
{
"from": "system",
"value": "TODO: Move updates to main process\n"
},
{
"from": "human",
"value": "'use strict';\n\n/**\n * Provides controller constructor for footer view.\n *\n * @constructor\n * @param {Object} scope - injected scope object\n * @param {function} http - angular http provider\... | javascript | chosen |
[
{
"from": "system",
"value": "Change conditional to check if object is already in array\n"
},
{
"from": "human",
"value": "var model = (function(){\n\n var splashesArray = [];\n\n function addSplashes(splashes_in_database){\n // Compare existing splashesArray to the splashes list given\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Stop trying to use turbolinks.\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/javascripts,... | javascript | chosen |
[
{
"from": "system",
"value": "Fix place labels on space cards\n"
},
{
"from": "human",
"value": "import React, { PropTypes } from 'react';\n\nimport DestinationListingCard from '../DestinationListingCard/DestinationListingCard';\nimport Link from '../../Link/Link';\n\nimport css from './SpaceLis... | javascript | chosen |
[
{
"from": "system",
"value": "Use global.WATCH instead of global.watch\n\nglobal.WATCH is defined in start.js `global.WATCH = true;`. global.watch is undefined."
},
{
"from": "human",
"value": "/**\n * React Starter Kit (http://www.reactstarterkit.com/)\n *\n * Copyright © 2014-2015 Kriasoft, LL... | javascript | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.