conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Add example of using sorting options for calcs\n\nSigned-off-by: Patrick Avery <743342299f279e7a8c3ff5eb40671fce3e95f13a@kitware.com>\n"
},
{
"from": "human",
"value": "import React, { Component } from 'react';\nimport { connect } from 'react-redux'\nimport { push }... | javascript | chosen |
[
{
"from": "system",
"value": "Test en passant d'un const en var\n"
},
{
"from": "human",
"value": "'use strict';\n// Import Wit.Ai\nconst botlogic = require('./botlogic/botlogic.js');\nconst facebook = require('./channels/facebook.js');\n\nvar messageReceived;\n\nmodule.exports = {\n received... | javascript | chosen |
[
{
"from": "system",
"value": "Cut out the extra character\n"
},
{
"from": "human",
"value": "/**\n * Japanese translation for foundation-datepicker\n * Norio Suzuki <https://github.com/suzuki/>\n */\n;(function($){\n\t$.fn.fdatepicker.dates['ja'] = {\n\t days: [\"日曜日\", \"月曜日\", \"火曜日\", \"水曜... | javascript | chosen |
[
{
"from": "system",
"value": "Fix prefix for windows azure\n"
},
{
"from": "human",
"value": "var path = require('path');\n\n\nmodule.exports = function (start, opts) {\n var modules = opts.moduleDirectory || 'node_modules';\n var splitRe = process.platform === 'win32' ? /[\\/\\\\]/ : /\\/... | javascript | chosen |
[
{
"from": "system",
"value": "Load only js files by default\n"
},
{
"from": "human",
"value": "/* eslint-disable global-require, import/no-dynamic-require */\n\nimport React, { Component, PropTypes } from 'react'\n\nexport default class ComponentDoc extends Component {\n static propTypes = {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix for child process running\n"
},
{
"from": "human",
"value": "import { resolve } from 'path'\nimport { node } from 'execa'\n\nconst childProcessHelperPath = resolve(__dirname, 'childProcessHelper.js')\n\nexport default class ChildProcessRunner {\n #env = null\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add console message that describes behavior\n"
},
{
"from": "human",
"value": "var iframeID = 1408059618092;\n\nfunction hideMenus() {\n\tvar iframe = document.getElementById(iframeID);\n\tiframe.hidden = true;\n}\n"
},
{
"from": "gpt",
"value": "var ifr... | javascript | chosen |
[
{
"from": "system",
"value": "[TASK] Add comment for probably unnecessary option\n"
},
{
"from": "human",
"value": "export const defaultOptions = {\n acornOption: {\n ecmaVersion: 6,\n // sourceType: 'script' or 'module'\n // 'module' is used for ES6 modules and\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Format displayed JSON more nicely in text area\n"
},
{
"from": "human",
"value": "'use strict';\nvar GameDataCreator = require('../gamedata');\nvar PointView = require('../prefabs/pointview');\n\nfunction Editor() {}\nEditor.prototype = {\n create: function() {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add some wifi options to the guest model\n"
},
{
"from": "human",
"value": "var mongoose = require('mongoose');\nvar Schema = mongoose.Schema;\n\nvar Objectid = mongoose.Schema.Types.ObjectId;\n\nvar GuestSchema = new Schema({\n\tname: String,\n\torganis... | javascript | chosen |
[
{
"from": "system",
"value": "Add isDisplaying API; add internal displaying property.\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... | javascript | chosen |
[
{
"from": "system",
"value": "Add custom placeholder for empty value\n"
},
{
"from": "human",
"value": "// @flow\nexport function roundValue(value: number | string | void): number | string {\n if (typeof value !== 'number') {\n return '—';\n }\n const parsedValue = parseFloat(val... | javascript | chosen |
[
{
"from": "system",
"value": "Fix calling process.exit with \"ok\" exit code\n\nWe have a helper to log an error message to the console and exit the process. It looks like the only place we use this helper is when we try and fail to [initialize the driver](https://github.com/tgriesser/knex/blob/5a94bc9b178d... | javascript | chosen |
[
{
"from": "system",
"value": "Return UnknownError if unknown error code\n\n"
},
{
"from": "human",
"value": "/* global ERRORS */\n\nimport * as generatedErrors from '../generated-errors/index';\nimport ChromiumNetError from './ChromiumNetError';\n\nconst errors = ERRORS;\n\nconst errorCodeMap = ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix `getDocumentsWithInfo` not allowing to ommit parameters\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar async = require('async');\nvar qs = require('querystring');\n\n/**\n * Fetch documents and populate their `document_type` and `provider` keys\n * @par... | javascript | chosen |
[
{
"from": "system",
"value": "Make the cookie only add pages lazily\n"
},
{
"from": "human",
"value": "/* Collapse remember\n * Use a cookie to \"remember\" the state of bootstrap collapse divs\n * use the 'collapse-remember' class to get this functionality\n */\n$(document).ready(function () {\... | javascript | chosen |
[
{
"from": "system",
"value": "Allow async API on server"
},
{
"from": "human",
"value": "GoogleApi = {\n get: Meteor._wrapAsync(_.bind(GoogleApiAsync.get, GoogleApiAsync)),\n \n post: Meteor._wrapAsync(_.bind(GoogleApiAsync.post, GoogleApiAsync))\n}\n"
},
{
"from": "gpt",
"value":... | javascript | chosen |
[
{
"from": "system",
"value": "Add dark mode, but leave it disabled for now\n\nFix #41\nFix #42\nFix #43\nFix #44\n"
},
{
"from": "human",
"value": "/**\n * main.js\n */\n\n'use strict';\n\n/* eslint-disable */\n\n// Only run in capable browsers via feature detection\nvar didCutTheMustard = 'quer... | javascript | chosen |
[
{
"from": "system",
"value": "Add function to sort the groups\n"
},
{
"from": "human",
"value": "/* global Calendar, vis */\n\n(function() {\n \"use strict\";\n\n var calendar = new Calendar();\n calendar.init(document.getElementById('visualization'),\n {\n height: \"100vh\", \n... | javascript | chosen |
[
{
"from": "system",
"value": "Fix cmd metric label not taking into account parentCommand\n"
},
{
"from": "human",
"value": "import { StatsD } from 'node-dogstatsd'\nvar dogstatsd = new StatsD()\n\nfunction registerEvents (bot) {\n bot.on('messageCreate', (msg) => {\n dogstatsd.increment('bla... | javascript | chosen |
[
{
"from": "system",
"value": "Remove creating multiple instances of target for execution\n"
},
{
"from": "human",
"value": "var CronJob = require('cron').CronJob,\n\n logger = require('./logger'),\n TargetNodes = require('./targets/nodes').TargetNodes,\n\n job,\n state,\n\n STATE ... | javascript | chosen |
[
{
"from": "system",
"value": "feat: Update config after real world testing :)\n"
},
{
"from": "human",
"value": "/* jshint node: true */\n\n'use strict';\n\nfunction getTaskConfig(projectConfig) {\n\t//Browser Sync options object\n\t//https://www.browsersync.io/docs/options\n\n\tvar taskConfig =... | javascript | chosen |
[
{
"from": "system",
"value": "Move from clippy.swf to ZeroClipboard\n"
},
{
"from": "human",
"value": "<<<<<<< HEAD\nimport ZeroClipboard from 'ember-cli-zero-clipboard/components/zero-clipboard';\n\nexport default ZeroClipboard.extend({\n layoutName: 'components/bs-button',\n tagName: 'bu... | javascript | chosen |
[
{
"from": "system",
"value": "Add copy option for JSON input data.\n"
},
{
"from": "human",
"value": "import {field, isFunction, isObject} from 'vega-util';\n\nfunction isBuffer(_) {\n return (typeof Buffer === 'function' && isFunction(Buffer.isBuffer))\n ? Buffer.isBuffer(_) : false;\n}\n\n... | javascript | chosen |
[
{
"from": "system",
"value": "Move SCA2 outside of link in acknowledgment\n"
},
{
"from": "human",
"value": "import React from 'react'\nimport PropTypes from 'prop-types'\n\nimport { siteTitle } from '../../../App'\nimport Help from '../../../components/Help'\nimport Notice from '../../../compon... | javascript | chosen |
[
{
"from": "system",
"value": "Fix naming for getting document from pouchdb\n"
},
{
"from": "human",
"value": "import store from '../store';\n\nexport const getInstance = () => {\n return store.getState().pouchdb;\n};\n\nexport const getDocument = async (dbName) => {\n const { instance } = getI... | javascript | chosen |
[
{
"from": "system",
"value": "Support string transport for modules"
},
{
"from": "human",
"value": "if (typeof document !== \"undefined\") {\n (function() {\n minispade = {\n root: null,\n modules: {},\n loaded: {},\n\n require: function(name) {\n var loaded = mini... | javascript | chosen |
[
{
"from": "system",
"value": "Introduce adapt function for Filename\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar memoize = require('memoizee/plain')\n , defineStringLine = require('../string-line');\n\nmodule.exports = memoize(function (db) {\n\treturn defineStringLine(db).e... | javascript | chosen |
[
{
"from": "system",
"value": "Update story to show when the timestamp is updated\n"
},
{
"from": "human",
"value": "import React from 'react'\nimport { storiesOf } from '@storybook/react'\nimport { Timestamp } from '../src/index.js'\n\nconst stories = storiesOf('Timestamp', module)\n\nconst cust... | javascript | chosen |
[
{
"from": "system",
"value": "Update to work with makara\n"
},
{
"from": "human",
"value": "var markdown = require('markdown');\n\n(function(dust) {\n dust.helpers.markdown = function(chunk, context, bodies, params) {\n if (bodies.block) {\n return chunk.capture(bodies.block, context, f... | javascript | chosen |
[
{
"from": "system",
"value": "Refactor component smoke test output more readable\n"
},
{
"from": "human",
"value": "const expect = require('chai').expect\nconst nunjucks = require('nunjucks')\nconst components = require('../../../lib/components')\n\nconst expectComponentRenders = (name, input) =... | javascript | chosen |
[
{
"from": "system",
"value": "Remove extraneous semicolon at beginning of js helper\n"
},
{
"from": "human",
"value": ";(function() {\n window.stubFileUpload = function(el) {\n return new FakeFileUpload(el);\n };\n\n function FakeFileUpload(fileInputElement) {\n var self =... | javascript | chosen |
[
{
"from": "system",
"value": "Add braces around if statement.\n\nRunning jshint on this file returned an error, adding braces fixed it. Please add braces around if statements!!! :)\n"
},
{
"from": "human",
"value": "( function() {\n\tvar is_webkit = navigator.userAgent.toLowerCase().indexOf( 'we... | javascript | chosen |
[
{
"from": "system",
"value": "Remove unique on Session controller\n"
},
{
"from": "human",
"value": "import { uniq, sort } from '@ember/object/computed';\nimport Controller from '@ember/controller';\n\nexport default Controller.extend({\n sortProperties: [\n 'statusSort:asc',\n 'organizat... | javascript | chosen |
[
{
"from": "system",
"value": "Add an event emitter for deathblows with a wielded weapon.\n"
},
{
"from": "human",
"value": "exports.listeners = {\n\thit: function (l10n) {\n\t\treturn function (room, attacker, defender, players, hitLocation, damageDealt) {\n\t\t\tcheckForCrit(attacker, defender,... | javascript | chosen |
[
{
"from": "system",
"value": "Add notification click handler for android\n"
},
{
"from": "human",
"value": "self.addEventListener('push', (event) => {\n const icon = '/images/icon-256x256.png';\n event.waitUntil(fetch('/event').then((res) => {\n if (res.status !== 200) {\n console.log(... | javascript | chosen |
[
{
"from": "system",
"value": "Check for elasticsearchHost before using\n"
},
{
"from": "human",
"value": "Template.elasticsearchHealth.onCreated(function () {\n // Get reference to template instance\n const templateInstance = this;\n\n // Create reactive variable for Elasticsearch health\n t... | javascript | chosen |
[
{
"from": "system",
"value": "Add es locale for bootstrap datepicker.\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/jav... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"Don’t stub out the maps.js file for now\"\n\nThis reverts commit 835ed57f21fac591d7bb7f3e5a3f9351dd3cec16.\n"
},
{
"from": "human",
"value": "// This is a manifest file that'll be compiled into application.js, which will include all the files\n// listed bel... | javascript | chosen |
[
{
"from": "system",
"value": "Remove jquery because it is loaded from a CDN\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/asse... | javascript | chosen |
[
{
"from": "system",
"value": "Update swift's daoproperty proxydao initializer to check the last element of the topics before blindly using them to handle detaches properly.\n"
},
{
"from": "human",
"value": "/**\n * @license\n * Copyright 2017 The FOAM Authors. All Rights Reserved.\n * http://ww... | javascript | chosen |
[
{
"from": "system",
"value": "Test for navigating to the Dependent Crates page\n"
},
{
"from": "human",
"value": "import { test } from 'qunit';\nimport moduleForAcceptance from 'cargo/tests/helpers/module-for-acceptance';\n\nmoduleForAcceptance('Acceptance | crate page');\n\ntest('visiting a cra... | javascript | chosen |
[
{
"from": "system",
"value": "Move more in the direction of components\n"
},
{
"from": "human",
"value": "var ExpandingList = new Vue({\n el: \"#expandingList\",\n data: {\n names: ['']\n },\n methods: {\n addBlankName: function () {\n if (this.hasBlankName()) {\n return\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Change markers iteration to lambda function\n"
},
{
"from": "human",
"value": "/**\n * @fileoverview Define the map component of the map module.\n */\n'use strict';\n\nangular.module('map').component('mapComponent', {\n templateUrl: 'map/map.template.html',\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix compatibility with svgr and images\n\n#971\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport { Image, requireNativeComponent } from 'react-native';\nimport { meetOrSliceTypes, alignEnum } from '../lib/extract/extractViewBox';\nimport extractP... | javascript | chosen |
[
{
"from": "system",
"value": "Add `user` index to `users.power_creeps`\n"
},
{
"from": "human",
"value": "\nmodule.exports = function (config) {\n let storage = config.common.storage\n config.common.dbIndexes = {\n 'users': { user: 1, username: 1, email: 1 },\n 'users.code': { user: 1 },... | javascript | chosen |
[
{
"from": "system",
"value": "Fix CreatedBy error in profile\n"
},
{
"from": "human",
"value": "Template.profileShow.helpers({\n initiatives: function(){\n return Initiatives.find({\n createdBy: Meteor.userId(),\n usersVoted: Meteor.userId()\n });\n }\n})"
},
{
"from": ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix i18nservice get language id return null value\n"
},
{
"from": "human",
"value": "/**\n * @ngdoc service\n * @name just.service.service:faqService\n * @description\n * # faqService\n * Service to handle FAQ's.\n */\nangular.module('just.service')\n .service('faq... | javascript | chosen |
[
{
"from": "system",
"value": "Apply select2-rails against .select2 elements\n"
},
{
"from": "human",
"value": "//= require_tree ./lib\n//= require_tree .\n//= require_self\n\n//= require select2\n\nGOVUK.orderedLists.init();\nGOVUK.curatedLists.init();\n\n(function() {\n \"use strict\";\n wind... | javascript | chosen |
[
{
"from": "system",
"value": "Remove unused Javascript from previous prototype\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/a... | javascript | chosen |
[
{
"from": "system",
"value": "Update the React setState checks to avoid version-based syntax errors\n"
},
{
"from": "human",
"value": "module.exports = {\n \"extends\": \"justinlocsei/configurations/es6\",\n \"ecmaFeatures\": {\n \"jsx\": true\n },\n \"env\": {\n \"browser\": true\n }... | javascript | chosen |
[
{
"from": "system",
"value": "Update anchor parameter to be derived from event\n\nUsing window.location.hash previously does not get updated by the time the click event takes place. As window.location.hash is not set to the correct anchor element, the intended section does not open.\nChanging this to get th... | javascript | chosen |
[
{
"from": "system",
"value": "Fix wrong display fullName in sophancong gird.\n"
},
{
"from": "human",
"value": "/**\n * Created by dungvn3000 on 4/4/14.\n */\n\nExt.define('sunerp.component.NhanVienCb', {\n extend: 'sunerp.component.Combobox',\n alias: 'widget.nhanviencb',\n gird: null,... | javascript | chosen |
[
{
"from": "system",
"value": "Add current Directory to repo.\n"
},
{
"from": "human",
"value": "const test = require('tape');\n\n// Load Array.prototype.customMap function\nrequire('../exercises/map/map');\n// Load Array.prototype.customFilter function\nrequire('../exercises/filter/filter');\n//... | javascript | chosen |
[
{
"from": "system",
"value": "Tweak function names in script template\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar five = require('johnny-five');\nvar myBoard = new five.Board();\n\n/**\n * The code for the project, that will be run when the board is ready\n *\n * This is a 'callback'... | javascript | chosen |
[
{
"from": "system",
"value": "Use non-breaking space when book field is null.\n"
},
{
"from": "human",
"value": "/**\n * Book page\n */\ndefine([\n \"underscore\",\n \"backbone\"\n],\nfunction(_, Backbone) {\n var BookPage = Backbone.View.extend({\n render: function() {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add comment to domain stripping regular experssion\n\nFor all of those who don't speak Kleene star"
},
{
"from": "human",
"value": "var WebFont = require(\"webfont\"),\n stripDomain = new RegExp(\"^(.*://[^/]*/)?(.*)$\");\n\nexports.locate = function(load) {\n r... | javascript | chosen |
[
{
"from": "system",
"value": "Add static url to generate PR\n"
},
{
"from": "human",
"value": "/**\n * A script to generate Pull Request in Github\n */\nlet execSync = require(\"child_process\").execSync;\nlet urlOfPR = ``;\nexecSync(`open ${urlOfPR}`);\n"
},
{
"from": "gpt",
"value"... | javascript | chosen |
[
{
"from": "system",
"value": "Use the correct path for telegram config\n"
},
{
"from": "human",
"value": "'use strict';\n\nlet Telegram = require( 'node-telegram-bot-api' );\nlet config = require( '../config.js' );\nlet BotPlug = require( './BotPlug.js' );\n\nclass TelegramBotPlug extends BotPlu... | javascript | chosen |
[
{
"from": "system",
"value": "Make sure the mock server’s process is stopped\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\n\nconst spawn = require('child_process').spawn;\n\nspawn('node', ['node_modules/supervisor/lib/cli-wrapper.js', '-n', 'error', '-w', 'mocks', '-i', 'mocks/data,moc... | javascript | chosen |
[
{
"from": "system",
"value": "Add exclamation mark to the proposal console log\n"
},
{
"from": "human",
"value": "(function() {\n\tvar LiveApi = window['binary-live-api'].LiveApi;\n\tvar api = new LiveApi();\n\tbinary_visual.login = function login(token, callback){\n\t\tapi.authorize(token).then... | javascript | chosen |
[
{
"from": "system",
"value": "Fix bugs caused by renaming foam_context_loader.\n"
},
{
"from": "human",
"value": "/**\n * @license\n * Copyright 2012 Google Inc. All Rights Reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in... | javascript | chosen |
[
{
"from": "system",
"value": "Check equality when referenced field changes\n"
},
{
"from": "human",
"value": "(function() {\n 'use strict';\n\n var app = angular.module('radar.validators');\n\n app.directive('equalToValidator', ['$parse', function($parse) {\n return {\n restrict: 'A',... | javascript | chosen |
[
{
"from": "system",
"value": "Add more information to the member preview and add some temporary inline styles for mockup\n"
},
{
"from": "human",
"value": "import React, { Component } from 'react';\n\nclass MembersPreview extends Component {\n\n render() {\n const {displayName, intro} = this... | javascript | chosen |
[
{
"from": "system",
"value": "Fix loading contributors on about page\n"
},
{
"from": "human",
"value": "const { GraphQLClient } = require(\"graphql-request\");\nconst { writeFileSync, existsSync, mkdirSync } = require(\"fs\");\n\nasync function fetchMembers(organisation) {\n const token = proce... | javascript | chosen |
[
{
"from": "system",
"value": "Make jpeg extension allowed for image component\n"
},
{
"from": "human",
"value": "\nexport function isImageURL(url) {\n return (/^http.+(jpg|gif|png|svg)$/i).test(url || \"\");\n}\n\nexport function checkStatus(response) {\n if (response.status >= 200 && resp... | javascript | chosen |
[
{
"from": "system",
"value": "Use filter instead of for loop\n"
},
{
"from": "human",
"value": "import React, { Component } from 'react';\nimport PropTypes from 'prop-types';\nimport cx from 'classnames';\nimport omit from 'lodash.omit';\nimport theme from './theme.css';\n\nclass StatusLabel ext... | javascript | chosen |
[
{
"from": "system",
"value": "Exclude folio/react-big-calendar from being transpiled during a platform build\n"
},
{
"from": "human",
"value": "const path = require('path');\n\n// These modules are already transpiled and should be excluded\nconst folioScopeBlacklist = [\n 'react-githubish-menti... | javascript | chosen |
[
{
"from": "system",
"value": "Copy headers to error object explicitly.\nThe way that cradle/response.extend works means the properties don't enumerate\n"
},
{
"from": "human",
"value": "var util = require('util');\n\n// create custom Error object for better callback(err, ...) support\n// accepts... | javascript | chosen |
[
{
"from": "system",
"value": "Use debug and process files sequentially\n"
},
{
"from": "human",
"value": "'use strict';\n\n// MODULES //\n\nvar exists = require( '@stdlib/fs/exists' );\n\n\n// MAIN //\n\n/**\n* Filters out non-existing file paths.\n*\n* @private\n* @param {StringArray} files - f... | javascript | chosen |
[
{
"from": "system",
"value": "Update memory object when adding a class\n"
},
{
"from": "human",
"value": "(function () {\n var cogClass = function () {};\n cogClass.prototype.exec = function (params, request, response) {\n var oops = this.utils.apiError;\n if (params.classid)... | javascript | chosen |
[
{
"from": "system",
"value": "Append canvas to body only when creating new\n"
},
{
"from": "human",
"value": "const assert = require('assert')\n\nfunction createGL (opts) {\n assert(!opts || (typeof opts === 'object'), 'pex-gl: createGL requires opts argument to be null or an object')\n if (!o... | javascript | chosen |
[
{
"from": "system",
"value": "Set filterType.noInjuryFatality to false when selecting another filter type\n\nCant select an injury or fatality type and select no injury or fatality simultaneously!\n"
},
{
"from": "human",
"value": "import {\n FILTER_BY_TYPE_INJURY,\n FILTER_BY_TYPE_FATALITY,\n... | javascript | chosen |
[
{
"from": "system",
"value": "Correct the order of arguments to Object.assign()\n"
},
{
"from": "human",
"value": "const axios = require('axios')\n\nlet params = {\n type: 'movie',\n tomatoes: 'true',\n title: 'la la land',\n year: '2016'\n}\n// params = Object.assign({title: 'jackie', year:... | javascript | chosen |
[
{
"from": "system",
"value": "Add Geolocation options as constants\n"
},
{
"from": "human",
"value": "module.exports = {\n API_URL: 'https://api.import.io/store/data/3cf27c3b-c9e2-45c8-8a97-c4fc559ed74f/_query?_apikey=Xk6Emf7P1fSYy8lvBrvM0ygZdrQZytV5AAR4ykx5R%2FlwmgvPBYTH7XRwObZESjTduH6C0fsqr9N... | javascript | chosen |
[
{
"from": "system",
"value": "Change the templateData object to just include all config data until a blacklist is established.\n"
},
{
"from": "human",
"value": "var config = require('./config')\n\nmodule.exports = {\n site: {\n title: config.title,\n baseURL: config.baseURL\n }\n}\n"
... | javascript | chosen |
[
{
"from": "system",
"value": "Add a note re: CustomEvent polyfill\n"
},
{
"from": "human",
"value": "(function () {\n\n if (typeof window.CustomEvent === 'function') {\n return false\n }\n\n function CustomEvent (event, params) {\n params = params || { bubbles: false, cancelable: false,... | javascript | chosen |
[
{
"from": "system",
"value": "Add find by id support.\n"
},
{
"from": "human",
"value": "var uri = require('url');\nvar decisions = require('decisions');\n\n\nfunction FileCredentialManager(file) {\n var settings = decisions.createSettings();\n settings.load(file);\n \n this._credentials = s... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"teste ci broke code\"\n\nThis reverts commit 5558e9d542a1ff4424483785cc57ac8c009f4872.\n"
},
{
"from": "human",
"value": "//const mongoose = require(\"mongoose\");\nconst Schema = mongoose.Schema;\n\nconst COLLECTION_NAME = \"User\";\n\nconst schemaUser = n... | javascript | chosen |
[
{
"from": "system",
"value": "Add support for Flow literal string/number types\n"
},
{
"from": "human",
"value": "var namedTypes = {\n 'NumberTypeAnnotation': 'number',\n 'BooleanTypeAnnotation': 'boolean',\n 'ObjectTypeAnnotation': 'Object',\n 'StringTypeAnnotation': 'string'\n};\n\nvar one... | javascript | chosen |
[
{
"from": "system",
"value": "Use first item in results array\n"
},
{
"from": "human",
"value": "const PythonShell = require('python-shell');\n\nmodule.exports = stop => {\n return new Promise((resolve, reject) => {\n let options = {\n mode: 'json',\n scriptPath: './lib/scraper',\n... | javascript | chosen |
[
{
"from": "system",
"value": "Add command line arg for Maps API key\n"
},
{
"from": "human",
"value": "var express = require('express');\nvar request = require('request');\nvar router = express.Router();\n\nrouter.get('/', function(req, res, next) {\n request('http://www.bikesharetoronto.com/st... | javascript | chosen |
[
{
"from": "system",
"value": "Update logging peer to debug\n"
},
{
"from": "human",
"value": "\"use strict\";\n\nconst config = require('./config/database');\n\nconst DHT = require('bittorrent-dht');\n\nconst redis = require(\"redis\");\nconst client = redis.createClient(config.redis.port, confi... | javascript | chosen |
[
{
"from": "system",
"value": "Fix indentation and IE parse error\n"
},
{
"from": "human",
"value": "/* Set up the environment before loading the rest of the files into Zotero */\nvar $rdf = {\n Util: {\n ArrayIndexOf: function (arr, item, i) {\n //supported in all browsers except IE<9\n... | javascript | chosen |
[
{
"from": "system",
"value": "Fix a bug of TsDescriptorEmergencyInformation"
},
{
"from": "human",
"value": "\"use strict\";\n\nconst TsReader = require(\"../reader\");\nconst TsDescriptorBase = require(\"./base\");\n\nclass TsDescriptorEmergencyInformation extends TsDescriptorBase {\n constr... | javascript | chosen |
[
{
"from": "system",
"value": ":wrench: Add loading check for Login container\n"
},
{
"from": "human",
"value": "import React, { Component, PropTypes } from 'react';\nimport { Link } from 'react-router';\nimport { get } from 'axios';\nimport FlintLogo from 'components/FlintLogo';\nimport './Logi... | javascript | chosen |
[
{
"from": "system",
"value": "Remove placeholders in the controller arrays\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar kanjiApp = angular.module('kanjiApp', []);\n\nkanjiApp.controller('KanjiCtrl', ['$scope', 'search', 'kanjiDictionary', function($scope, search, kanjiDictionary) {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix problem caused by Rob\n"
},
{
"from": "human",
"value": "import React from \"react\";\nimport { connect } from \"react-redux\";\n\nimport ChessBoardSquare from \"components/chess-board-square\";\n\nclass ChessBoard extends React.Component {\n getBoard() {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add some extra fields to Problem model :smile:\n\nFields added are:\nauthor, createdAt, updatedAt, inputs and outputs\n"
},
{
"from": "human",
"value": "import DS from \"ember-data\";\n\nvar attr = DS.attr;\n\nvar Problem = DS.Model.extend({\n title: attr(),\n des... | javascript | chosen |
[
{
"from": "system",
"value": "Fix params in nested route\n"
},
{
"from": "human",
"value": "import Ember from 'ember';\n\nexport default Ember.Route.extend({\n model(params) {\n return this.store.findRecord('experiment', params.experiment_id).then((experiment) => {\n // When... | javascript | chosen |
[
{
"from": "system",
"value": "Fix for Chrome video controls\n"
},
{
"from": "human",
"value": "function showVideo() {\n // Show player\n var block = document.getElementById(\"player\");\n if (block) {\n block.style.visibility = \"visible\";\n }\n}\n\nfunction hideVideo() {\n var vid = do... | javascript | chosen |
[
{
"from": "system",
"value": "Use real children for scrollview\n"
},
{
"from": "human",
"value": "'use strict';\n\nangular.module('integrationApp')\n .directive('faScrollView', function (famous) {\n return {\n template: '<div></div>',\n restrict: 'E',\n transclude: true,\n ... | javascript | chosen |
[
{
"from": "system",
"value": "FIX : merge little mistake\n"
},
{
"from": "human",
"value": "'use strict';\n\nmyApp.factory('Message', ['$resource', function ($resource) {\n return $resource('http://localhost:8080/api/timeline');\n}]);\n\nmyApp.controller('TimeLineController', function ($scope... | javascript | chosen |
[
{
"from": "system",
"value": "Fix a bug, where fading in .hidden on contact page would also fade in searchField, since there was a class collision.\n"
},
{
"from": "human",
"value": "$(document).ready(function() {\n\n $(\"form.contact\").on(\"submit\", function(e) {\n var $fadeElement = $(\"... | javascript | chosen |
[
{
"from": "system",
"value": "Remove Contexts for now so we don't step in to dependency hell\n"
},
{
"from": "human",
"value": "define(['underscore', 'jquery'], function(_, $) {\n return function(app) {\n app.components.before('initialize', function() {\n \"use strict\";\n if (this... | javascript | chosen |
[
{
"from": "system",
"value": "Fix attempted property assignment on null\n"
},
{
"from": "human",
"value": "function failure() {\n\tconst root = document.documentElement\n\n\troot.classList.remove('sr')\n\n\treturn {\n\t\tclean() {},\n\t\tdestroy() {},\n\t\treveal() {},\n\t\tsync() {},\n\t\tget n... | javascript | chosen |
[
{
"from": "system",
"value": "Fix indentation of the Java grammar\n"
},
{
"from": "human",
"value": "define(function() {\n\n // Export\n return function(Prism) {\n\n Prism.languages.java = Prism.languages.extend('clike', {\n \t'keyword': /\\b(abstract|continue|for|new|switch|assert|defau... | javascript | chosen |
[
{
"from": "system",
"value": "Update bower deps and slimed down the blueprint\n\nUpdated the bootstrap, bootswatch versions for added bower deps. Also\nslimed down the addon blueprint since things have changed since\nember-cli 0.1.2\n"
},
{
"from": "human",
"value": "module.exports = {\n descri... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"keine slidedown animation mehr\"\n\nThis reverts commit 5897ce0d7887fcdfc0df9557d8f76cac227b1301.\n"
},
{
"from": "human",
"value": "$(function() {\n\tif(sessionStorage.getItem(\"openMenu\") === null){\n\t\tsessionStorage.setItem(\"openMenu\", \"yes\" );\n\... | javascript | chosen |
[
{
"from": "system",
"value": "Remove eslint disable, and add flow\n"
},
{
"from": "human",
"value": "/* eslint-disable */\n/* DEPRECATED DO NOT USE */\nimport React from 'react';\nimport cx from 'classnames';\nimport styles from './index.css';\n\nexport const FlexRow = ({\n children,\n classNa... | javascript | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.