conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Return app eslintrc path if the file exists\n"
},
{
"from": "human",
"value": "const fs = require('fs')\nconst path = require('path')\n\nconst appDirectory = fs.realpathSync(process.cwd())\n\nfunction resolveApp(relativePath) {\n return path.resolve(appDirectory, r... | javascript | chosen |
[
{
"from": "system",
"value": "Comment out AJAX data calls\n"
},
{
"from": "human",
"value": "$(document).on(\"ready\", function() {\n\n // $(\"a\").click(\".snowflake\", function(event){\n // event.preventDefault();\n // event.stopPropagation();\n // debugger\n // // var target = $(... | javascript | chosen |
[
{
"from": "system",
"value": "Change localStorage key for personal best"
},
{
"from": "human",
"value": "function Scoreboard(options) {\n this.containers = {\n best: options.best,\n score: options.score\n };\n this.storage_key = 'personal_best'\n\n try {\n this.best = localStorage.g... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"Revert \":fire: Removed useless sample code\"\"\n\nThis reverts commit 81325bc686351ec5df5e38bf3ad04dfc71f16712.\n"
},
{
"from": "human",
"value": "import Inferno from 'inferno'\nimport Component from 'inferno-component'\nimport styled from 'styled-componen... | javascript | chosen |
[
{
"from": "system",
"value": "Make it work in IE8.\n"
},
{
"from": "human",
"value": "\n/*!\n * debug\n * Copyright(c) 2012 TJ Holowaychuk <tj@vision-media.ca>\n * MIT Licensed\n */\n\n/**\n * Previous debug() call.\n */\n\nvar prev = {};\n\n/**\n * Create a debugger with the given `name`.\n *\n... | javascript | chosen |
[
{
"from": "system",
"value": "Fix decomposition of camera quaternions\n"
},
{
"from": "human",
"value": "import { quat_create, quat_set, quat_normalize, quat_multiply } from './quat';\n\nvar quat = quat_create();\n\nexport function controls_create(object) {\n var controls = {\n object: objec... | javascript | chosen |
[
{
"from": "system",
"value": "Change the vertical position to work correctly in standards mode.\n"
},
{
"from": "human",
"value": "\"use strict\";\nfunction createDialog(pageMantle, dialogHtml, dialogCss) {\n\n\tvar dialog = {};\n\n\t// write dialog HTML to document\n\tvar dialogDiv = jQuery('<d... | javascript | chosen |
[
{
"from": "system",
"value": "Revert Box to a stateful component to fix refs usage\n"
},
{
"from": "human",
"value": "// @flow\nimport React from 'react'\n\nconst Box = (props: any) => (\n <div {...props} />\n)\nexport default Box\n"
},
{
"from": "gpt",
"value": "// @flow\nimport Re... | javascript | chosen |
[
{
"from": "system",
"value": "Remove disk space REST endpoint\n"
},
{
"from": "human",
"value": "module.exports = {\n activeUserCount: require('./activeUserCount.js'),\n activeUsers: require('./activeUsers.js'),\n slackPostMessage: require('./slackPostMessage.js'),\n createDir: requi... | javascript | chosen |
[
{
"from": "system",
"value": "Add support for multiple datasets\n"
},
{
"from": "human",
"value": "angular.module('siyfion.sfTypeahead', [])\n .directive('sfTypeahead', function () {\n return {\n restrict: 'ACE',\n scope: {\n datasets: '=',\n ngModel: '='\n },\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix bug when requiring babel-plugin-transform-decorators-legacy\n"
},
{
"from": "human",
"value": "'use strict'\n\nmodule.exports = {\n presets: [\n require('babel-preset-es2015'),\n require('babel-preset-stage-2')\n ],\n plugins: [\n require('babel-plug... | javascript | chosen |
[
{
"from": "system",
"value": "feat: Add user message outputting given project name\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\n\nvar program = require('commander');\nvar prompt = require('inquirer');\nvar path = require('path');\n\nvar pkg = require(path.resolve(__dirname, '..', 'pac... | javascript | chosen |
[
{
"from": "system",
"value": "Fix expireChunkRanges test to actually work.\n"
},
{
"from": "human",
"value": "var FakeRedis = require('fakeredis');\nvar RedisCache = require('../../cache/RedisCache');\nvar Promise = require('bluebird');\n\nvar expect = require('expect');\nvar updateAddChunkPrefi... | javascript | chosen |
[
{
"from": "system",
"value": "Move urlWithExtension to the global common\n\nRemove from content common as it overwrites the global common defined by the user"
},
{
"from": "human",
"value": "const config = {\n common: {\n outputDir: 'public',\n styles: [],\n scripts: [],\n },\n templ... | javascript | chosen |
[
{
"from": "system",
"value": "Allow the test metadata server to start by giving it a log level.\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\n'use strict';\n\nconst Path = require('path');\nconst server = require('../utils/test-metadata-server');\n\nglobal.Config = require('nconf')\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Refresh the test token every 25 minutes\n"
},
{
"from": "human",
"value": "import Client from './state-client';\n\n// Wrapper around global Twitch extension object.\nclass Ext {\n static onAuthorized(cb) {\n if (window.Twitch) {\n window.Twitch.ext.onAuthor... | javascript | chosen |
[
{
"from": "system",
"value": "Correct passing of state to state mutators\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport {render} from 'react-dom';\nimport Rx from 'rx';\nimport {actionIs} from './utils.js';\n\n\n/*\nupdate is an Array of trios: [actionName, actionHandler, ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix no results message when there is no term\n"
},
{
"from": "human",
"value": "import React, { PureComponent } from 'react'\nimport PropTypes from 'prop-types'\nimport styled from 'styled-components'\n\nimport Text from 'v2/components/UI/Text'\n\nconst Copy = style... | javascript | chosen |
[
{
"from": "system",
"value": "Increase timeout for server launch in TravisCI\n"
},
{
"from": "human",
"value": "/*\n * Swagger UI and Specs Servers\n*/\nvar path = require('path')\nvar createServer = require('http-server').createServer;\n\nvar dist = path.join(__dirname, '..', '..', 'dist');\nva... | javascript | chosen |
[
{
"from": "system",
"value": "Use utility predicate in logged in user check\n"
},
{
"from": "human",
"value": "define([], function () {\n return {\n hasLoggedInUser: function() {\n return !!(this.profile && this.profile.get('selected_identity'));\n },\n profile: null\n }\n});\n... | javascript | chosen |
[
{
"from": "system",
"value": "Put new lines here and there\n"
},
{
"from": "human",
"value": "const path = require('path');\nconst should = require('should');\n\nconst pluginsLoader = require('../../lib/plugins');\n\n// Caching fixture plugin, but redefining its properties for testing plugin loa... | javascript | chosen |
[
{
"from": "system",
"value": "Use tileSize direct from options\n"
},
{
"from": "human",
"value": "(function(previousMethods){\n\nif (typeof previousMethods === 'undefined') {\n\t// Defining previously that object allows you to use that plugin even if you have overridden L.map\n\tpreviousMethods ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix gene regex per parul suggestion\n\n[ci skip]\n"
},
{
"from": "human",
"value": "// eslint-disable-next-line no-unused-vars\nfunction dega_bed_parser(line, index) {\n // Here is where we convert the content of a specific BED file format to the desired JSON str... | javascript | chosen |
[
{
"from": "system",
"value": "Add getTime as default wit action in boilerplate\n"
},
{
"from": "human",
"value": "const moment = require('moment');\nconst weather = require('./weather');\n\nconst actions = {\n getWeather: (data) => new Promise((resolve, reject) => {\n const context = data.co... | javascript | chosen |
[
{
"from": "system",
"value": "Fix a typo in an error\n"
},
{
"from": "human",
"value": "function normalizeName(name) {\n if (name.charAt(0) === '-') {\n name = name.substr(1)\n }\n\n if (name.charAt(0) === '-') {\n name = name.substr(1)\n }\n\n return name\n}\n\nclass Option {\n cons... | javascript | chosen |
[
{
"from": "system",
"value": "Fix CSV download link to include content type"
},
{
"from": "human",
"value": "function prepareCSVLink()\n{\n var pokemonCells = document.getElementsByClassName('pokemonCell');\n\n var csvString = 'Number, Name, Caught\\n'\n\n for(var i = 0; i < pokemonCell... | javascript | chosen |
[
{
"from": "system",
"value": "Fix adding pattern to actually use the pattern text.\n"
},
{
"from": "human",
"value": "import React, { Component } from 'react'\nimport { connect } from 'react-redux'\nimport { addPattern } from '../actions'\nimport TextField from 'material-ui/TextField'\nimport Ra... | javascript | chosen |
[
{
"from": "system",
"value": "Fix example (to give proper response and as expected by Travis)\n"
},
{
"from": "human",
"value": "function quotemeta(str) {\n // From: http://phpjs.org/functions\n // + original by: Paulo Freitas\n // * example 1: quotemeta(\". + * ? ^ ( $ )\");\n // * ... | javascript | chosen |
[
{
"from": "system",
"value": "Add test case for sort stack program\n"
},
{
"from": "human",
"value": "\"use strict\";\n\n// Program that sorts a stack such that smallest items are on top\n\n// create Stack class\nfunction Stack() {\n\tthis.top = null;\n}\n\n// push value into stack\nStack.protot... | javascript | chosen |
[
{
"from": "system",
"value": "Update check update error handler.\n"
},
{
"from": "human",
"value": "(function () {\n function showMessage(message, type) {\n $('#check-update-info a.close').trigger('click.fndtn.alert');\n var alertBox = '<div data-alert id=\"check-update-info\" c... | javascript | chosen |
[
{
"from": "system",
"value": "Return activity objects to template\n"
},
{
"from": "human",
"value": "Template.latestActivitiesByType.created = function () {\n // Create 'instance' variable for use througout template logic\n var instance = this;\n\n // Create variable to hold activity type sel... | javascript | chosen |
[
{
"from": "system",
"value": "Change module.exports to export default\n"
},
{
"from": "human",
"value": "import { isFunction } from 'lodash';\nimport { setHeader } from 'focus-core/application';\n\nmodule.exports = {\n\n /**\n * Updates the cartridge using the cartridgeConfiguration.\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Remove test for refresh button that is currently not enabled\n"
},
{
"from": "human",
"value": "import { moduleForComponent, test } from 'ember-qunit';\nimport hbs from 'htmlbars-inline-precompile';\n\nmoduleForComponent('ics-feed', 'Integration | Component | ics fe... | javascript | chosen |
[
{
"from": "system",
"value": "Use nearest neighbor scaling in demo renderer.\n"
},
{
"from": "human",
"value": "!function(PIXI, exports) {\n 'use strict';\n\n var Point = exports.Point,\n Rect = exports.Rect;\n\n function Frame(position, url, options) {\n this.pos = position;\n thi... | javascript | chosen |
[
{
"from": "system",
"value": "Use a real email in contactUs email from-field\n"
},
{
"from": "human",
"value": "Meteor.methods({\n addContactUsMessage: function(message) {\n\n try {\n // synchronous (to the server) insert\n ContactUsMessages.insert({\n name: message.name,\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Solve issue of blank/undefined answers.\n"
},
{
"from": "human",
"value": "module.exports = function(question, callback) { \n\n\n\tvar apiai = require('apiai');\n\tvar app = apiai(\"76ccb7c7acea4a6884834f6687475222\", \"8b3e68f16ac6430cb8c40d49c315aa7a\");\n\n\t\tva... | javascript | chosen |
[
{
"from": "system",
"value": "Set a `__test` flag when running tests with karma\n"
},
{
"from": "human",
"value": "// jshint camelcase: false\n(function () {\n\t'use strict';\n\n\t// Make async\n\twindow.__karma__.loaded = function () {};\n\n\trequire.config({\n\n\t\t// Set baseUrl for Karma\n\t... | javascript | chosen |
[
{
"from": "system",
"value": "Update the default story props\nso they reflect the components default props and the spinner is not initially white\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport { storiesOf } from '@storybook/react';\nimport { select } from '@storybook/addon... | javascript | chosen |
[
{
"from": "system",
"value": "Remove a constante criada para api_localhost.\n"
},
{
"from": "human",
"value": "(function() {\n 'use strict';\n\n var ApiConfig;\n\n ApiConfig = {\n 'API_LOCALHOST': 'http://localhost:3000',\n 'API_URL': 'https://minhaagenda-api.herokuapp.com'\n };\n\n a... | javascript | chosen |
[
{
"from": "system",
"value": "Improve asset `manualTermination`, use valid global instance of `wTools`\n"
},
{
"from": "human",
"value": "\nrequire( 'wTesting' );\nconst _ = require( 'wTools' );\n_.include( 'wProcess' );\nlet c = 0;\n\n//\n\n_.process.on( 'exit', () =>\n{\n debugger;\n c++;\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Use function to get defaultValue for slack channel IDs on Canvas model\n\nUsing a non-primitive is deprecated, since the values are shared.\n"
},
{
"from": "human",
"value": "import DS from 'ember-data';\nimport Ember from 'ember';\n\nconst { attr, belongsTo, hasMan... | javascript | chosen |
[
{
"from": "system",
"value": "Add a test for avoidAdditionalPoint()\n"
},
{
"from": "human",
"value": "describe(\"EasyStar.js\", function() {\n\n beforeEach(function() { });\n\n it(\"It should find a path successfully.\", function() {\n\tvar acceptableTiles = [1];\n\tvar easyStar = new EasySta... | javascript | chosen |
[
{
"from": "system",
"value": "Add href to play button\n"
},
{
"from": "human",
"value": "//This makes the play button work.\nwindow.onload = function () {\n\tvar beta = document.createElement('sup'),\n\t\tplay = document.createElement('a'),\n\t\theader = document.getElementsByClassName('page-hea... | javascript | chosen |
[
{
"from": "system",
"value": "Use datastax.com instead of google.com for address-resolution-test.\n"
},
{
"from": "human",
"value": "var assert = require('assert');\nvar util = require('util');\nvar events = require('events');\nvar async = require('async');\nvar dns = require('dns');\n\nvar addr... | javascript | chosen |
[
{
"from": "system",
"value": "Remove error test from IE8\n"
},
{
"from": "human",
"value": "// Get base config\nvar karmaConfig = require('./karma-base.js');\n\n// Get platform/browser/version from passed args\nvar platform = process.argv[4];\nvar browser = process.argv[5];\nvar version = proces... | javascript | chosen |
[
{
"from": "system",
"value": "Change import path to absolute commonjs path\n\nSee https://github.com/imcvampire/vue-axios/issues/109#issuecomment-920708021\n"
},
{
"from": "human",
"value": "import Vuex from 'vuex'\nimport axios from 'axios'\nimport VueAxios from 'vue-axios'\nimport HalJsonVuex ... | javascript | chosen |
[
{
"from": "system",
"value": "Use a default timeout (using config.json)\n"
},
{
"from": "human",
"value": "'use strict';\n\nimport { composeAsync, factoryComposers, factoryIntents } from './helpers'\n\nexport default (state) => ({\n listen: (sentence) => {\n return new Promise( (resolve, rej... | javascript | chosen |
[
{
"from": "system",
"value": "Update getSource to handle lazy loading\n"
},
{
"from": "human",
"value": "(function() {\n 'use strict';\n\n var app = angular.module('radar.sources');\n\n app.factory('SourceModelMixin', ['_', function(_) {\n return {\n getSource: function() {\n r... | javascript | chosen |
[
{
"from": "system",
"value": "Switch primary badge counter to inbox\n"
},
{
"from": "human",
"value": "module.exports = (Franz, options) => {\r\n function getTasks() {\r\n \r\n let todayCount = 0;\r\n let inboxCount = 0; \r\n \r\n const todayElement = document.querySelector(\"#to... | javascript | chosen |
[
{
"from": "system",
"value": "Add a fix so users can touch the text in the boxes with out me getting\n\nin the way.\n"
},
{
"from": "human",
"value": "// ==UserScript==\n// @name SmartyFace\n// @description Text Prediction on facepunch\n// @author benjojo\n//... | javascript | chosen |
[
{
"from": "system",
"value": "Update with reference to global nav partial\n"
},
{
"from": "human",
"value": "var _ = require('lodash')\nvar fs = require('fs')\nvar gzip = require('gzip-size')\nvar filesize = require('filesize')\nvar cssstats = require('cssstats')\n\nvar module = require('tachyon... | javascript | chosen |
[
{
"from": "system",
"value": "Apply the correct css styles based on the avatar size, without breaking earlier versions\n"
},
{
"from": "human",
"value": "import React, { PureComponent } from 'react';\nimport theme from './theme.css';\nimport Box from '../box';\nimport Icon from '../icon';\nimpor... | javascript | chosen |
[
{
"from": "system",
"value": "Change nature endpoint to return lakes\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar _ = require('lodash');\n\nvar instagram = require('instagram-node').instagram();\n\ninstagram.use({\n access_token: '1035958982.117ba06.4abe0116ea094d489f0b6f2218942979... | javascript | chosen |
[
{
"from": "system",
"value": "Fix liveImg not working on Windows\n"
},
{
"from": "human",
"value": "(function() {\n\t\"use strict\";\n\n\tvar fsmonitor = require('fsmonitor')\n\t , util = require('util')\n\t , EventEmitter = require('events').EventEmitter;\n\n\tfunction Watcher() {\n\t\tEventE... | javascript | chosen |
[
{
"from": "system",
"value": "Add 'use strict' declaration to Brunch config\n"
},
{
"from": "human",
"value": "// Brunch configuration\n// See http://brunch.io for documentation.\nmodule.exports = {\n files: {\n javascripts: {\n joinTo: {\n 'scripts/main.js': ['app/scripts/*.js',... | javascript | chosen |
[
{
"from": "system",
"value": "Add different jshint flavors for dev and ci\n"
},
{
"from": "human",
"value": "/**\n * Created by elad.benedict on 8/12/2015.\n */\n\nmodule.exports = function (grunt) {\n 'use strict';\n\n grunt.config.set('jshint', {\n src: [\n '<%=... | javascript | chosen |
[
{
"from": "system",
"value": "Implement route auth redirection behavior\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport {browserHistory, Router, Route, IndexRoute} from 'react-router';\nimport Layout from './components/Layout';\nimport NotFound from './components/NotFound';... | javascript | chosen |
[
{
"from": "system",
"value": "Update 09. Point Circle Rectangle\n"
},
{
"from": "human",
"value": "function solve(argument) {\n var x = Number(argument[0]);\n var y = Number(argument[1]);\n\n var circleX = 1;\n var circleY = 1;\n var circleR = 1.5;\n\n var rectangleX = 1;\n}"
... | javascript | chosen |
[
{
"from": "system",
"value": "Set the correct Grunt working directory.\n\nSince `documentsPaths`, `filesPaths`, and `layoutsPaths` are all\nrelative to `srcPath`, the working directory needs to be set before\nperforming the file expansion.\n"
},
{
"from": "human",
"value": "/*\n * grunt-docs\n *... | javascript | chosen |
[
{
"from": "system",
"value": "[MTA] Make a function to throw errors on MTA.call\n"
},
{
"from": "human",
"value": "var request = require('request');\n\nfunction MTA(host, port, username, password) {\n this.host = host || 'localhost';\n this.port = port || 22005;\n this.username = username;\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Remove unnecessary push calls to improve readability\n"
},
{
"from": "human",
"value": "const isAuthorized = function () {\n let isLoggedIn, characterID, isAdmin, isWhitelisted;\n isLoggedIn = this.userId;\n\n if (isLoggedIn) {\n characterID = Meteor.users.fin... | javascript | chosen |
[
{
"from": "system",
"value": "Update from travis build of arcgis-dijit-drilldown\n"
},
{
"from": "human",
"value": "define([\"dojo/_base/declare\",\"./_LocatorBase\"],function(a,b){return a([b],{locatorType:\"ABX\",resultsPickList:null,streetGrouping:[\"STREET_DESCRIPTION\",\"LOCALITY_NAME\",\"T... | javascript | chosen |
[
{
"from": "system",
"value": "Add back support for safari <= 10\n"
},
{
"from": "human",
"value": "import { getBrowser, isIE11, isSafari } from '../helpers/browser';\n\n/**\n * This file is included in the main bundle. Its main purpose is to find out if the main bundle could execute,\n * or if i... | javascript | chosen |
[
{
"from": "system",
"value": "Revert cron expression to friday.\n"
},
{
"from": "human",
"value": "export default (app) => {\n app.jobs.schedule('send audit email', '0 20 * * 2', async () => {\n app.info('CRON: sending audit email - starting')\n\n const mailerConfig = app.get('mailer')\n\... | javascript | chosen |
[
{
"from": "system",
"value": "Fix mac - OS buttons overlap with back/forward buttons\n\nrequies https://github.com/brave/electron/commit/92c9e25\n"
},
{
"from": "human",
"value": "/* This Source Code Form is subject to the terms of the Mozilla Public\n * License, v. 2.0. If a copy of the MPL was... | javascript | chosen |
[
{
"from": "system",
"value": "Add usedPercentage to drives. Add cores to serverinfo\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar util = require('../helpers/utilities');\n\nmodule.exports = function (req, res) {\n var info = {\n disk: '',\n memory: '',\n db: 0\n };... | javascript | chosen |
[
{
"from": "system",
"value": "Update example data in \"real\" API\n"
},
{
"from": "human",
"value": "import express from 'express';\nimport webpack from 'webpack';\nimport path from 'path';\nimport config from '../webpack.config.dev';\nimport open from 'open';\n\n/* eslint-disable no-console */\... | javascript | chosen |
[
{
"from": "system",
"value": "Call module constructor before calling inherited.\n"
},
{
"from": "human",
"value": "var Helpers = require('../helpers');\nvar Builtin = require('../builtin');\n\n// Remove module methods\nClass.$.appendFeatures = null;\n\nClass.$.initialize = function(name, supercl... | javascript | chosen |
[
{
"from": "system",
"value": "Add getDimensions to Bike model\n"
},
{
"from": "human",
"value": "module.exports = function (sequelize, DataTypes) {\n const Bike = sequelize.define('Bike', {\n id: {\n primaryKey: true,\n type: DataTypes.UUID,\n defaultValue: DataTypes.UUIDV4\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Return false if file does not exist\n"
},
{
"from": "human",
"value": "let Cacher = function(file) {\n if (!file) {\n throw new Error('Missing file!');\n }\n let fs = require('fs');\n this.file = file;\n\n this.setData = function(str) {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Support include-all's capability of optional vs. required includes.\n"
},
{
"from": "human",
"value": "var _ = require('underscore');\nvar requireAll = require('require-all');\n\n\nmodule.exports = {\n\trequired: function(options) {\n\t\treturn buildDictionary(optio... | javascript | chosen |
[
{
"from": "system",
"value": "Fix flexberry-model blueprint JSCS errors in generated mixin\n"
},
{
"from": "human",
"value": "import Ember from 'ember';\nimport DS from 'ember-data';\n<%if(projections) {%>import { Projection } from 'ember-flexberry-data';<%}%>\nexport let Model = Ember.Mixin.cre... | javascript | chosen |
[
{
"from": "system",
"value": "Add line to display dashes when no song is playing or paused\n"
},
{
"from": "human",
"value": "angular.module('formatTime',[])\n .filter('secondsToTime', [function(){\n return function(time){\n var minutes = Math.floor(time / 60);\n var seconds = Mat... | javascript | chosen |
[
{
"from": "system",
"value": "Support newer fxa claims for twofa, picture, etc.\n"
},
{
"from": "human",
"value": "// This is the Fetch User Profile Script for FxA\n// latest-dev URLs:\n// Authorization endpoint: https://oauth-latest.dev.lcip.org/v1/authorization\n// Token endpoint: https://oaut... | javascript | chosen |
[
{
"from": "system",
"value": "Make search for classifying tasks case insensitive.\n"
},
{
"from": "human",
"value": "const {TASKS_TYPES} = require('./conf/consts')\n\n\nconst getTaskType = (taskName) =>{\n for (let task_type of TASKS_TYPES) {\n for (let keyword of task_type.keywords) {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add native, INC, ADD and MUL.\n"
},
{
"from": "human",
"value": "// the core def\nconst T = x => y => x;\nconst F = x => y => y;\n\nconst NOT = b => b(F)(T);\nconst AND = b1 => b2 => b1(b2)(F);\nconst OR = b1 => b2 => NOT(AND(NOT(b1))(NOT(b2)));\n\n\nNOT(T) == F;\nN... | javascript | chosen |
[
{
"from": "system",
"value": "Remove stray comma from brunch config\n"
},
{
"from": "human",
"value": "// Brunch configuration\n// See http://brunch.io for documentation.\n'use strict';\n\nmodule.exports = {\n files: {\n javascripts: {\n joinTo: {\n 'scripts/main.js': ['app/scrip... | javascript | chosen |
[
{
"from": "system",
"value": "Remove cordova/cordova-plugins from search path since it no longer exists\n"
},
{
"from": "human",
"value": "var path = require('path');\nvar fs = require('fs');\n\nmodule.exports = exports = function defaultConfig(ccaRoot) {\n\n var plugin_search_path = [\n pat... | javascript | chosen |
[
{
"from": "system",
"value": "Return to 1 decimal place\n"
},
{
"from": "human",
"value": "'use strict';\n\nmodule.exports = {\n isHttp2(page) {\n return (page.connectionType === 'h2' || page.connectionType === 'spdy');\n },\n /**\n * Get the hostname from a URL string.\n * @param {str... | javascript | chosen |
[
{
"from": "system",
"value": "Mark monkey patching code test as parallel false\n"
},
{
"from": "human",
"value": "// Load modules\n\nvar Hapi = require('hapi');\nvar Code = require('code');\nvar Lab = require('lab');\nvar Server = require('../lib');\nvar Version = require('../lib/version');\n\n\... | javascript | chosen |
[
{
"from": "system",
"value": "Use port 9999 for test runner.\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar gulp = require('gulp');\nvar connect = require('gulp-connect');\nvar fallback = require('connect-history-api-fallback');\n\ngulp.task('connect:test', function() {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Use underscore prefix rather than postfix for private member notation\n"
},
{
"from": "human",
"value": "var Class = require('./Class'),\n \tbind = require('./bind'),\n\tinvokeWith = require('./invokeWith'),\n\tslice = require('./slice')\n\nmodule.exports = Class(f... | javascript | chosen |
[
{
"from": "system",
"value": "Update slug of our \"Learn more about langpacks\" link\n\nThe url of the SUMO article linked from our \"Learn more...\" button\nin the Add-ons Manager changed a time ago. Preventing the remote\nredirection lets to Thunderbird to detect and reuse the tab displaying\nthat content... | javascript | chosen |
[
{
"from": "system",
"value": "MAINT: Update app to use basespace-qiime-191\n"
},
{
"from": "human",
"value": "function launchSpec(dataProvider)\n{\n var ret = {\n // see script.sh in this folder \n appSessionName: \"bsq pre-alpha\",\n commandLine: [ \"bash\", \"/upstream.... | javascript | chosen |
[
{
"from": "system",
"value": "Create Recipe class to wrap desired JSON data from 2nd API call\n\nAll attributes for Recipe object, created on invocation of BigOvenGetRecipeJson function, are functional except for ingredients, which requires creation of new JS constructors.\n"
},
{
"from": "human",
... | javascript | chosen |
[
{
"from": "system",
"value": "Convert scope to lower case before generating token\n"
},
{
"from": "human",
"value": "var Promise = require('bluebird'),\n redis = require('redis'),\n client = Promise.promisifyAll(redis.createClient()),\n privateKey = process.env.secret || 'BbZJjyoXAdr8BU... | javascript | chosen |
[
{
"from": "system",
"value": "Fix gui not updating the pocket name after rename;\n"
},
{
"from": "human",
"value": "/**\n * @fileOverview PocketCreateCtrl angular controller\n */\n\ndefine(['./module', 'darkwallet'], function (controllers, DarkWallet) {\n 'use strict';\n controllers.controller... | javascript | chosen |
[
{
"from": "system",
"value": "Use different react-dnd backends for touch devices and desktops\n"
},
{
"from": "human",
"value": "import TouchBackend from 'react-dnd-touch-backend';\nimport { DragDropContext } from 'react-dnd';\n\nexport default DragDropContext(TouchBackend({ enableMouseEvents: t... | javascript | chosen |
[
{
"from": "system",
"value": "Remove relevance settings, but leave the extended example.\n"
},
{
"from": "human",
"value": "/*\n Language: Flix\n Category: functional\n Author: Magnus Madsen <mmadsen@uwaterloo.ca>\n */\n\nfunction (hljs) {\n\n var CHAR = {\n className: 'string',\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add of getPrompt function to redisplay the prompt when search field is empty.\n\ngit-svn-id: 36dcc065b18e9ace584b1c777eaeefb1d96b1ee8@290117 13f79535-47bb-0310-9956-ffa450edef68\n"
},
{
"from": "human",
"value": "/*\n* Copyright 2002-2004 The Apache Software Foundat... | javascript | chosen |
[
{
"from": "system",
"value": "Use browser-window-created event to register context menu\n"
},
{
"from": "human",
"value": "const electron = require('electron')\nconst {BrowserWindow, Menu, MenuItem} = electron\nconst ipc = electron.ipcMain\n\nlet menu = new Menu()\n\nmenu.append(new MenuItem({ l... | javascript | chosen |
[
{
"from": "system",
"value": "Enforce the existence of the Cache Directory at StartUp\n"
},
{
"from": "human",
"value": "/**\n * Provides default values and verifies that requied values are set.\n */\nvar DefaultOptions = function() {}\n\nDefaultOptions.prototype.options = {\n cacheDir: null,\n... | javascript | chosen |
[
{
"from": "system",
"value": "Add warning when no .env file found\n"
},
{
"from": "human",
"value": "/**\n * Load environment variables from .env for local development.\n * If no .env file is to be found at\n */\n// const path = require('path')\n// const chalk = require('chalk')\n// const env ... | javascript | chosen |
[
{
"from": "system",
"value": "Add two columns to blogs table - image and summary\n"
},
{
"from": "human",
"value": "\r\nexports.up = function(knex, Promise) {\r\n return knex.schema.createTable('blogs', function (table) {\r\n table.increments('id').primary()\r\n table.integer('tags').unsigned... | javascript | chosen |
[
{
"from": "system",
"value": "Make sure api.onStory has been called or not.\n"
},
{
"from": "human",
"value": "export default function (provider, reduxStore, actions) {\n const providerApi = {\n onStory(cb) {\n providerApi._onStoryCallback = cb;\n },\n\n addAction: actions.api.add... | javascript | chosen |
[
{
"from": "system",
"value": "Load intelligent defaults with file widget\n"
},
{
"from": "human",
"value": "import Ember from 'ember';\n\nexport default Ember.Component.extend({\n showSelect: false,\n actions: {\n fileDetail(file) {\n this.set('showSelect', false);\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add missing dependency on underscore.string.\n"
},
{
"from": "human",
"value": "Package.describe({\n name: 'kepler:autoform-wizard',\n summary: 'A multi step form component for AutoForm.',\n version: '0.0.2',\n git: 'https://github.com/kepler/meteor-autoform-wiz... | javascript | chosen |
[
{
"from": "system",
"value": "Ongoing: Add the new map to the map names\n"
},
{
"from": "human",
"value": "/**\n * Map id to map name constants object\n */\n\n'use strict';\n\nangular.module('quakeStatsApp')\n .constant('MapConstants', {\n 'q3ctf1': 'Dueling Keeps',\n 'q3ctf3': ... | javascript | chosen |
[
{
"from": "system",
"value": "Use moment instead of new Date for timestamps\n\nSummary:\nnew Date has inconsistent behavior between browsers: chrome assumes\nits input is utc by default, while firefox assumes its the local time. Just use\nmoment instead.\n\nhttps://tails.corp.dropbox.com/F196477\n\nTest Pla... | javascript | chosen |
[
{
"from": "system",
"value": "Fix load file passing params too\n"
},
{
"from": "human",
"value": "'use strict'\n\nvar fs = require('fs')\nvar path = require('path')\nvar existFile = require('exists-file')\n\nvar minimistPath = path.join(__dirname, '..', 'node_modules', 'meow', 'node_modules', 'm... | javascript | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.