conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Add comment to undefined sender\n"
},
{
"from": "human",
"value": "var logger = require('log4js').getLogger('vaildMessage');\n\nvar nconf = require('nconf');\nnconf.file('bots', __dirname + '/../config/bots.json')\n .file('receviers', __dirname + '/../config/rec... | javascript | chosen |
[
{
"from": "system",
"value": "Add libsqlncli library to test with\n"
},
{
"from": "human",
"value": "var odbc = require(\"../\");\n//odbc.library = '/usr/lib/odbc/libsqlite3odbc-0.91';\n//odbc.library = '/usr/lib/x86_64-linux-gnu/odbc/libtdsodbc';\n\nexports.connectionString = \"DRIVER={SQLite3}... | javascript | chosen |
[
{
"from": "system",
"value": "Read file in appropriate encoding according to type\n"
},
{
"from": "human",
"value": "const BaseStep = require('../step');\nconst path = require('path');\nconst fs = require('fs');\nconst analytics = require('../../helpers/analytics/analytics')('fs');\nconst debugE... | javascript | chosen |
[
{
"from": "system",
"value": "Change functions removed from Details factory to run from new Reviews Factory\n"
},
{
"from": "human",
"value": "angular.module('zeus.reviews', [])\n.controller('ReviewsController', function($location, $stateParams, Details, authService) {\n var ReviewsVm = this;\n... | javascript | chosen |
[
{
"from": "system",
"value": "Remove PropTypes, which are used anymore\n\nAlso gets us ready for React 16 that won't have PropTypes in the main package.\n"
},
{
"from": "human",
"value": "// @flow\n\nimport { PropTypes } from \"react\";\n\nexport const statusIds = [\"ontrack\", \"atrisk\", \"int... | javascript | chosen |
[
{
"from": "system",
"value": "Make music quieter by default\n"
},
{
"from": "human",
"value": "import Phaser from 'phaser'\n\nexport const centerGameObjects = objects => {\n objects.forEach(\n object => object.anchor.setTo(0.5)\n )\n}\n\nexport const enableMusicForState = (trackName, state)... | javascript | chosen |
[
{
"from": "system",
"value": "[native] Use hook instead of connect functions and HOC in SaveSettingButton\n\nTest Plan: Flow\n\nReviewers: ashoat, palys-swm\n\nReviewed By: ashoat\n\nSubscribers: zrebcu411, Adrian\n\nDifferential Revision: https://phabricator.ashoat.com/D493\n"
},
{
"from": "human",... | javascript | chosen |
[
{
"from": "system",
"value": "Remove Console.log statements in client.\n"
},
{
"from": "human",
"value": "UI.once('init', function(){\n\tvar c = $('#chat'),\n\thide_userlist_at = 650,\n\tlayout_delay = 200,\n\tnarrow_at = 800,\n\tresizeTimer;\n\t\n\tsetTimeout(doLayout, 1000);\n\t\n\t$(window).r... | javascript | chosen |
[
{
"from": "system",
"value": "Rename some stuff and add locations\n"
},
{
"from": "human",
"value": "var mongoose = require('mongoose');\nvar Schema = mongoose.Schema;\n\nvar ObjectId = mongoose.Schema.Types.ObjectId;\nvar Mixed = mongoose.Schema.Types.Mixed;\n\nvar SpecialofferSchema ... | javascript | chosen |
[
{
"from": "system",
"value": "Establish session in default handler.\n"
},
{
"from": "human",
"value": "/**\n * Password authentication handler.\n *\n * This component provides an HTTP handler that authenticates a username and\n * password. The credentials are submitted via an HTML form.\n */\ne... | javascript | chosen |
[
{
"from": "system",
"value": "Change pixelated platform repo name\n"
},
{
"from": "human",
"value": "var repos = {};\nvar labels = {};\nvar configurable = require('../lib/configurable');\n\nfunction addRepo(name, key, label) {\n configurable.get(key) && (repos[name] = configurable.get(key));\n ... | javascript | chosen |
[
{
"from": "system",
"value": "[ClientBundle] Fix for adding contact details\n"
},
{
"from": "human",
"value": "(function($) {\n 'use strict';\n\n /**\n * Form Collection\n */\n $(document.body).on('click', '.contact_details_collection li', function(event) {\n\n var value,... | javascript | chosen |
[
{
"from": "system",
"value": "[change] Insert test to check for special types of insertion\n"
},
{
"from": "human",
"value": "jest.dontMock('../block_list')\njest.dontMock('../../utils/uid')\n\ndescribe('Models - Block List', function() {\n var BlockList = require('../block_list')\n\n it ('can... | javascript | chosen |
[
{
"from": "system",
"value": "Use constant instead of prop\n"
},
{
"from": "human",
"value": "var React = require('react');\nvar PropTypes = require('./PropTypes');\n\nvar RouteHandlerMixin = {\n\n contextTypes: {\n getRouteAtDepth: PropTypes.func.isRequired,\n setRouteComponentAtDepth: P... | javascript | chosen |
[
{
"from": "system",
"value": "Revert change, @evan’s fix is better\n"
},
{
"from": "human",
"value": "const bunyan = require('bunyan')\nconst {getLogStreams} = require('./log-streams')\nconst NODE_ENV = process.env.NODE_ENV || 'unknown'\n\nfunction createLogger(name, env = NODE_ENV) {\n if (pro... | javascript | chosen |
[
{
"from": "system",
"value": "Adjust alert banner for the end of HashiConf\n"
},
{
"from": "human",
"value": "export const ALERT_BANNER_ACTIVE = true\n\n// https://github.com/hashicorp/web-components/tree/master/packages/alert-banner\nexport default {\n tag: 'June 8-11',\n url: 'https://hashic... | javascript | chosen |
[
{
"from": "system",
"value": "Use a dummy test to see if mocha works\n"
},
{
"from": "human",
"value": "var sass = require('node-sass');\nvar includePaths = '../stylesheets/lib-sass';\n\ndescribe('validate type function', function() {\n var error = false;\n\n it('should return an error mes... | javascript | chosen |
[
{
"from": "system",
"value": "Use the right duration lib\n"
},
{
"from": "human",
"value": "const duration = require('@maxdome/duration');\nconst Throttle = require('redis-throttle');\n\nmodule.exports = config => {\n Throttle.configure(config);\n return (key, limit, callback, fallback) => {\n... | javascript | chosen |
[
{
"from": "system",
"value": "Add comment on unused /config route\n"
},
{
"from": "human",
"value": "// Handle endpoints for /config in this file\n\nconst configRouter = require('express').Router();\nconst keys = require('../config.js');\n\nconfigRouter.get('/db', (req, res) => {\n res.status(2... | javascript | chosen |
[
{
"from": "system",
"value": "Swap ids for classes in completion rate template\n\nWe have more than one module in a page so ids are bad.\n"
},
{
"from": "human",
"value": "define([\n 'extensions/views/view',\n 'common/views/visualisations/volumetrics/number',\n 'common/views/visualisations/vo... | javascript | chosen |
[
{
"from": "system",
"value": "Make npm fail to test travis ci\n"
},
{
"from": "human",
"value": "const {mix} = require('laravel-mix');\n\n/*\n |--------------------------------------------------------------------------\n | Mix Asset Management\n |-------------------------------------------------... | javascript | chosen |
[
{
"from": "system",
"value": "Add Cache Busting in Production Code"
},
{
"from": "human",
"value": "const { mix } = require('laravel-mix');\n\n/*\n |--------------------------------------------------------------------------\n | Mix Asset Management\n |--------------------------------------------... | javascript | chosen |
[
{
"from": "system",
"value": "Remove route resolves from login/logout routes\n\nWas previously using wrong route names.\n"
},
{
"from": "human",
"value": "export default function($stateProvider) {\n this.$get = function() {\n return {\n getResolves: function(state){\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Use eval-source-maps for dev package.\n"
},
{
"from": "human",
"value": "const path = require('path');\nconst packagejson = require('./package.json');\n\nconst dashLibraryName = packagejson.name.replace(/-/g, '_');\n\nmodule.exports = {\n entry: {main: './src/ind... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"Resolve src/ folder too\"\n\nThis reverts commit 39cd9a4eecb0e1eaef08127551d752963f345a0b.\n"
},
{
"from": "human",
"value": "const fs = require('fs');\nconst path = require('path');\n\n// eslint-disable-next-line import/no-extraneous-dependencies\nconst we... | javascript | chosen |
[
{
"from": "system",
"value": "Refactor IE11 image label fix\n"
},
{
"from": "human",
"value": "define([\"module\"], function (module) {\n \"use strict\";\n\n function getInternetExplorerVersion() {\n var rv = -1;\n if (navigator.appName == \"Microsoft Internet Explorer\") {\n var ua... | javascript | chosen |
[
{
"from": "system",
"value": "Set showArraySize to false by default\n"
},
{
"from": "human",
"value": "module.exports = {\n theme: \"default\",\n addons: {\n prependHeader: true,\n maxJsonSize: 400,\n alwaysFold: false,\n alwaysRenderAllContent: false,\n sortKeys: false,\n cl... | javascript | chosen |
[
{
"from": "system",
"value": "Add more text to homepage\n"
},
{
"from": "human",
"value": "/*\n * HomePage\n *\n * This is the first thing users see of our App, at the '/' route\n *\n * NOTE: while this component should technically be a stateless functional\n * component (SFC), hot reloading doe... | javascript | chosen |
[
{
"from": "system",
"value": "Add helper for calculating distance between points\n"
},
{
"from": "human",
"value": "'use strict';\n\nDarwinator.Helpers = {\n\n convertTileMap: function(layer) {\n var indexes = [];\n\n for (var i = 0; i < layer.length; i++) {\n indexes[i] = [];\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Create ajax function in favroties.js to create new favorite\n"
},
{
"from": "human",
"value": "$(document).ready(function(){\n $('.container').on('click', '#favorite-icon', function(event) {\n var $favorite = $(event.target)\n $.ajax({\n type: \"POST\",\... | javascript | chosen |
[
{
"from": "system",
"value": "Update old MCAS score names to be inclusive ranges\n"
},
{
"from": "human",
"value": "export function shortLabelFromNextGenMcasScore(score) {\n if (score >= 400 && score < 450) return 'NM'; // Not Meeting Expectations\n if (score >= 450 && score < 500) return 'PM'... | javascript | chosen |
[
{
"from": "system",
"value": "Check if callback before invoking it\n"
},
{
"from": "human",
"value": "// \n// Copyright (c) Microsoft and contributors. All rights reserved.\n// \n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in complia... | javascript | chosen |
[
{
"from": "system",
"value": "Improve storage manager with method validation and key prefixing\n"
},
{
"from": "human",
"value": "function StorageManager(storageMethod) {\n this.storageMethod = storageMethod;\n}\n\nStorageManager.prototype.setCurrentLevel = function(level) {\n this.storage... | javascript | chosen |
[
{
"from": "system",
"value": "Fix error when loading without auth config\n"
},
{
"from": "human",
"value": "var _ = require('lodash');\nvar crc = require('crc');\n\n// Base structure for a configuration\nmodule.exports = function(options) {\n options = _.defaults(options, {\n // Port f... | javascript | chosen |
[
{
"from": "system",
"value": "Load distributions directory using file-loader\n"
},
{
"from": "human",
"value": "import history from '!json!../assets/data/history.json'\nimport metadata from '!json!../assets/data/metadata.json'\nimport latestSeasonData from '!json!../assets/data/season-latest.jso... | javascript | chosen |
[
{
"from": "system",
"value": "Use open and close function\n"
},
{
"from": "human",
"value": "angular.module('mwUI.UiComponents')\n\n//TODO rename to mwCollapsible\n .directive('mwCollapsable', function () {\n return {\n transclude: true,\n scope: {\n mwCollapsable: '=',\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add database connection bit required by AppFog\n"
},
{
"from": "human",
"value": "var parseEnv = require('parse-env');\n\nvar configTemplate = require('./config.template');\nvar config;\n\ntry {\n config = require('./config');\n}\ncatch(e) {}\n\nmodule.exports = ... | javascript | chosen |
[
{
"from": "system",
"value": "Check for null while checking for rows in grid children\n\nIf grid contains falsy children, i should be skipped\n"
},
{
"from": "human",
"value": "/* @flow */\n'use strict';\n\nimport React, {Component} from 'react';\nimport {View, TouchableOpacity} from 'react-nati... | javascript | chosen |
[
{
"from": "system",
"value": "Add ipAddress reducer to jsonReducers\n"
},
{
"from": "human",
"value": "import {JSONReducer as constraints} from './serviceForm/Constraints';\nimport {JSONReducer as container} from './serviceForm/Container';\nimport {JSONReducer as env} from './serviceForm/Environ... | javascript | chosen |
[
{
"from": "system",
"value": "Add support for Node.js v4 and v5\n"
},
{
"from": "human",
"value": "const socketIo = require('socket.io');\nconst gatherOsMetrics = require('./gather-os-metrics');\n\nlet io;\n\nmodule.exports = (server, spans) => {\n if (io === null || io === undefined) {\n io... | javascript | chosen |
[
{
"from": "system",
"value": "Update styles when window is resized\n"
},
{
"from": "human",
"value": "const $ = require('jquery');\nconst stageConfigs = require('./stages.json');\nconst Game = require('./game');\n\n$(document).ready(() => {\n\tconst game = new Game(stageConfigs);\n\n\tlet clicke... | javascript | chosen |
[
{
"from": "system",
"value": "Change profile call to auth/account\n"
},
{
"from": "human",
"value": "import { get, post, put } from '../lib/apiService';\n\nexport function getUser(id) {\n return get('nominations', `users/${id}`);\n}\n\nexport function getMe() {\n return get('nominations', 'use... | javascript | chosen |
[
{
"from": "system",
"value": "Reset collections when switching projects\n"
},
{
"from": "human",
"value": "var User = zooniverse.models.User;\n\nvar ProjectBasedCollection = Backbone.Collection.extend({\n initialize: function() {\n User.on('change', _.bind(this.fetch, this));\n this.liste... | javascript | chosen |
[
{
"from": "system",
"value": "Standardize author username in media metadata"
},
{
"from": "human",
"value": "import React, { Component, PropTypes } from 'react';\nimport { Link } from 'react-router';\n\nclass MediaMetadataSummary extends Component {\n\n render() {\n const { media, data } = t... | 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": "Remove unused logger dependency on application controller\n"
},
{
"from": "human",
"value": "\"use strict\"\n\n// Module dependencies\nvar util = require(\"util\");\nvar crypto = require(\"crypto\");\nvar winston = require(\"winston\");\nvar openVeoAPI = require(\"o... | javascript | chosen |
[
{
"from": "system",
"value": "Check query schema model status cahnges in oder to set state correctly\n"
},
{
"from": "human",
"value": "var STATES = {\n ready: 'ready',\n loading: 'loading',\n fetched: 'fetched',\n error: 'error'\n};\n\nmodule.exports = {\n track: function (view, callback) ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix 404 error in service worker\n\nFix HTTP 404 error caused by the server worker trying to cache the\nBrowserStack image that has been deleted.\n"
},
{
"from": "human",
"value": "// Copyright (c) Martin Costello, 2016. All rights reserved.\n// Licensed under the A... | javascript | chosen |
[
{
"from": "system",
"value": "Change root component to actual React component.\n"
},
{
"from": "human",
"value": "import Notify from './notification';\nimport React, { PropTypes } from 'react';\nimport { connect } from 'react-redux';\n\nfunction App(props) {\n const isLoading = props.loading.is... | javascript | chosen |
[
{
"from": "system",
"value": "Fix dithering right-click color inversion on FF/IE\n\nRecord pressed mouse button type only at mousedown time.\nOn IE/FF, the button type is not available during mousemove.\nDid a round of testing on both FF and Chrome.\n"
},
{
"from": "human",
"value": "/**\n * @pr... | javascript | chosen |
[
{
"from": "system",
"value": "Update module name in header comment\n"
},
{
"from": "human",
"value": "/**\n * @providesModule react-native-device-info\n */\n\nvar KDSocialShare = require('react-native').NativeModules.KDSocialShare;\n\nmodule.exports = {\n shareOnTwitter: function(params, callba... | javascript | chosen |
[
{
"from": "system",
"value": "Update metadata defaults to Rootstrikers-specific info"
},
{
"from": "human",
"value": "angular\n .module('app')\n .factory('MetaMachine', function($rootScope) {\n\n var metaDefaults = {\n metaTitle: \"Home | Rootstrikers\",\n metaDescription: \"We fi... | javascript | chosen |
[
{
"from": "system",
"value": "Fix sizing issue with title\n"
},
{
"from": "human",
"value": "import styled from \"styled-components\";\nimport { AppColors } from \"../../util/constants\";\n\nexport const Header = styled.span`\n color: ${AppColors.Highlight};\n font-weight: 600;\n font-size: 0... | javascript | chosen |
[
{
"from": "system",
"value": "Update Redux state upon post deletion\n"
},
{
"from": "human",
"value": "import _ from 'lodash';\nimport { FETCH_POSTS, FETCH_POST } from '../actions';\n\nexport default function(state = {}, action) {\n switch (action.type) {\n case FETCH_POST:\n return { .... | javascript | chosen |
[
{
"from": "system",
"value": "Fix server URL to point to the outside\n"
},
{
"from": "human",
"value": "import geolocationService from './geolocationService';\nimport hospitalService from './hospitalService';\nimport feedService from './feedService';\nimport staticsService from './staticsService... | javascript | chosen |
[
{
"from": "system",
"value": "Add extra command to example\n"
},
{
"from": "human",
"value": "import React, { useState } from 'react'\nimport Dictaphone from './Dictaphone'\n\nconst DictaphoneWidgetB = () => {\n const [message, setMessage] = useState('')\n const commands = [\n {\n comm... | javascript | chosen |
[
{
"from": "system",
"value": "Update package version to git tag before deploy\n"
},
{
"from": "human",
"value": "'use strict';\n\nlet path = require('path');\nlet fs = require('fs');\nlet pkg = require('../package.json');\n\nlet output = './build/src/';\npkg.main = path.relative(output, pkg.main... | javascript | chosen |
[
{
"from": "system",
"value": "Check the controller variable rather than argument\n"
},
{
"from": "human",
"value": "HighFidelity.PodcastNewController = Ember.ObjectController.extend({\n isAdding: false,\n\n rssURL: '',\n\n actions: {\n create: function(url) {\n if (url... | javascript | chosen |
[
{
"from": "system",
"value": "Make the TOC slide snappier\n"
},
{
"from": "human",
"value": "$(function(){\n $(\".toc-level-0 .toc-level-0 > a\").click(function() {\n $(this).parent().find('> ol').slideToggle();\n\n return false;\n });\n\n $(function(){\n $('.anchorable-toc').each(fu... | javascript | chosen |
[
{
"from": "system",
"value": "Make global explicit in module scope\n\nThis is mainly because tests don't inferr that\nglobal variables are just properties of the window\nobject, as browsers do, but it also makes this\nmore explicit.\n"
},
{
"from": "human",
"value": "(function(Modules) {\n \"us... | javascript | chosen |
[
{
"from": "system",
"value": "Revert new modules api usage in addon core code to maximize backwards compatibility\n"
},
{
"from": "human",
"value": "import Mixin from '@ember/object/mixin';\nimport { uuid } from 'ember-cli-uuid';\n\nexport function generateIdForRecord() {\n return uuid();\n}\n\... | javascript | chosen |
[
{
"from": "system",
"value": "Fix not using right debugging method\n"
},
{
"from": "human",
"value": "/* eslint-disable no-console */\n\nconst debug = (...args) => console.log('[Service Worker]', ...args);\n\nconst isCacheableRequest = request =>\n request.method === 'GET' &&\n !new URL(re... | javascript | chosen |
[
{
"from": "system",
"value": "Support 'sources' in plural as 'src' folder\n"
},
{
"from": "human",
"value": "/* eslint-disable max-len */\nexports.extensions = {\n supported: [\n { icon: 'bower', extensions: ['bower_components'] },\n { icon: 'dist', extensions: ['dist', 'out', 'export'] }... | javascript | chosen |
[
{
"from": "system",
"value": "Rename _global_ to Global Scope.\n"
},
{
"from": "human",
"value": "var classLayout = {\n\t'Paper.js': ['global paper scope:_global_'],\n\t'Basic Types': ['Point', 'Size', 'Rectangle', 'Matrix'],\n\t'Items': ['Item', 'Layer', 'Group', 'Raster', 'PlacedSymbol'],\n\t'... | javascript | chosen |
[
{
"from": "system",
"value": "Improve ToS Agreement on Topic submission\n\nRight now the ToS is not visible or clickable on smaller devices. The\nwidth is too large, and the lack of a max height prevents the user from\nscrolling to see the whole modal.\n\nThis PR is a hacky improvement to just ensure that o... | javascript | chosen |
[
{
"from": "system",
"value": "Fix not execution flash object\n\nIn Chrome 60 -, removed the final exception for PPS(Plugin Power Saver).\n\nRef: https://www.chromium.org/flash-roadmap (PPS Tiny - No Same\nOrigin Exceptions (Target: Chrome 60 - Aug 2017))\n"
},
{
"from": "human",
"value": "import... | javascript | chosen |
[
{
"from": "system",
"value": "Add props 'type' for tabicon\n"
},
{
"from": "human",
"value": "/**\n * Tabbar Icon\n *\n <TabIcon icon={'search'} selected={false} />\n *\n * React Native Starter App\n * https://github.com/mcnamee/react-native-starter-app\n */\nimport React from 'react';\nimpor... | javascript | chosen |
[
{
"from": "system",
"value": "Clear \"urls\" field when submitting similar event\n"
},
{
"from": "human",
"value": "/**\n * @class Denkmal_Component_EventAdd\n * @extends Denkmal_Component_Abstract\n */\nvar Denkmal_Component_EventAdd = Denkmal_Component_Abstract.extend({\n\n /** @type String *... | javascript | chosen |
[
{
"from": "system",
"value": "Fix for chrome developer tools console\n"
},
{
"from": "human",
"value": "if (typeof define === 'undefined' && typeof importScripts !== 'undefined')\n importScripts('lib/require.js');\n\nvar string_split = /(\\w+)(\\s\\w+){0,1}$/\n\nrequire(\n ['worker_console',... | javascript | chosen |
[
{
"from": "system",
"value": "Delete project only on success\n"
},
{
"from": "human",
"value": "(function() {\n \"use strict\";\n\n angular\n .module('VinculacionApp')\n .controller('ProjectsController', ProjectsController);\n\n ProjectsController.$inject = ['projects', 't... | javascript | chosen |
[
{
"from": "system",
"value": "Add fx=off option to disable animations\n"
},
{
"from": "human",
"value": "require('./analytics');\n\nrequire('core-js/es5');\nrequire('core-js/es6');\n\nconst $ = require('jquery');\nconst stageConfigs = require('./stages.json');\nconst Game = require('./game');\n\... | javascript | chosen |
[
{
"from": "system",
"value": "Add example for multiple references\n"
},
{
"from": "human",
"value": "var\n _ = require('lodash')\n ;\n\nvar\n flatten = require('./flatten')\n ;\n\n\n//Some structural examples\n\nvar objInput = {\n number: 44,\n bool: true,\n string: \"foobar... | javascript | chosen |
[
{
"from": "system",
"value": "Add support for db name with dash\n\nrefer to https://github.com/maxmalov/node-manage-db/issues/3\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar mysql = require('mysql');\nvar fmt = require('util').format;\n\nfunction execute(query, opts, done) {\n try {\n... | javascript | chosen |
[
{
"from": "system",
"value": "Update Riot and Vue examples.\n"
},
{
"from": "human",
"value": "/*global meiosis, meiosisRiot*/\n(function() {\n var initialModel = { counter: 0 };\n\n var receive = function(model, proposal) {\n return { counter: model.counter + proposal.add };\n };\n\n mei... | javascript | chosen |
[
{
"from": "system",
"value": "Remove automatic highlighting of R output\n"
},
{
"from": "human",
"value": "\n$(document).ready(function() {\n $('pre.r').next().each(function(index) {\n if($(this).is(\"pre\") & $(this).attr(\"class\") == undefined)\n $(this).addClass(\"r-output\");... | javascript | chosen |
[
{
"from": "system",
"value": "Add Check if the network exists\n"
},
{
"from": "human",
"value": "import { Window } from '../Util';\nimport _each from 'lodash/each';\n\nexport default class Share {\n\n /**\n * Share Constructor.\n *\n * @param {String} selector\n */\n con... | javascript | chosen |
[
{
"from": "system",
"value": "Fix bug in filtering algorithm.\n"
},
{
"from": "human",
"value": "import Job from '../components/Job';\n\nclass JobContainer extends React.Component {\n constructor(props) {\n super();\n }\n\n render() {\n let jobs = this.props.jobs.map(function(job) {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix 300ms delay for ClickAwayable\n\nFixes #766\n"
},
{
"from": "human",
"value": "var React = require('react');\nvar Events = require('../utils/events');\nvar Dom = require('../utils/dom');\n\nmodule.exports = {\n\n //When the component mounts, listen to click eve... | javascript | chosen |
[
{
"from": "system",
"value": "Change to new search api\n"
},
{
"from": "human",
"value": "define('routes_api', [], function() {\n // List API routes here.\n // E.g.:\n // {\n // \"route\": \"/foo/bar/{0}\",\n // \"another_route\": \"/foo/bar/{0}/asdf\"\n // }\n retur... | javascript | chosen |
[
{
"from": "system",
"value": "[TECG-272][TECG-321] Add page title to error page\n"
},
{
"from": "human",
"value": "module.exports = function(\n $stateProvider,\n $urlRouterProvider,\n $urlMatcherFactoryProvider\n) {\n // Disable ui-router strict mode\n $urlMatcherFactoryProvider.strictMode(... | javascript | chosen |
[
{
"from": "system",
"value": "Use proper Twitter handles in fixture <3\n"
},
{
"from": "human",
"value": "export default [\n {id: 1, name: 'joliss', twitter: \"joliss\"},\n {id: 2, name: 'igort', twitter: \"igort\"},\n {id: 3, name: 'tchak', twitter: \"tchak\"},\n {id: 4, name: 'wecc', twitt... | javascript | chosen |
[
{
"from": "system",
"value": "Fix create dashboard not working\n"
},
{
"from": "human",
"value": "import React from 'react'\nimport Modal from 'app/components/modal'\nimport Flash from 'app/flash'\nimport i18n from 'app/utils/i18n'\nimport rpc from 'app/rpc'\n\nclass CreateDashboard extends Reac... | javascript | chosen |
[
{
"from": "system",
"value": "Add jspm_packages paths to builder config\n"
},
{
"from": "human",
"value": "const gulp = require('gulp');\nconst replace = require('gulp-replace');\n\nconst Builder = require('systemjs-builder');\n\nconst conf = require('../conf/gulp.conf');\n\ngulp.task('systemjs'... | javascript | chosen |
[
{
"from": "system",
"value": "Make sure generated tokens are never valid JavaScript\n"
},
{
"from": "human",
"value": "var crypto = require(\"crypto\");\n\nmodule.exports = function(length) {\n var uid = \"\";\n while (uid.length <= length) {\n uid += crypto\n .randomByte... | javascript | chosen |
[
{
"from": "system",
"value": "Fix fcn invocation with seed option\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar randn = require( './../lib' );\n\nvar seed;\nvar rand;\nvar i;\n\n// Generate pseudorandom numbers...\nconsole.log( '\\nseed: %d', randn.SEED );\nfor ( i = 0; i < 100; i++ ) ... | javascript | chosen |
[
{
"from": "system",
"value": "Add debug value to useModifiedProps\n"
},
{
"from": "human",
"value": "import { useRef, useEffect } from 'react';\nimport getModifiedProps from '../../utils/getModifiedProps';\n\nexport default function useModifiedProps(props) {\n const ref = useRef();\n useEffect... | javascript | chosen |
[
{
"from": "system",
"value": "Add signing to custom-sidebar integration.\n"
},
{
"from": "human",
"value": "// Deps\nvar express = require('express');\nvar bodyParser = require('body-parser');\n\n// Config:\nvar port = process.env.PORT || 8000;\nvar root = __dirname + '/';\nvar sendFileConfig = ... | javascript | chosen |
[
{
"from": "system",
"value": "Return error message and print stack trace via try/catch\n"
},
{
"from": "human",
"value": "import generateFramework from '../generators/framework/generateFramework';\nimport generateTemplateEngine from '../generators/template-engine/generateTemplateEngine';\nimport... | javascript | chosen |
[
{
"from": "system",
"value": "Add post method for forgot and reset\n"
},
{
"from": "human",
"value": "'use strict';\nvar sess;\n\n/* GET forgotpassword page. */\nexports.getForgot = function(req, res) {\n sess=req.session;\n sess.url = '/';\n sess.user = null;\n sess.title = 'MangaDB... | javascript | chosen |
[
{
"from": "system",
"value": "Fix placeId params on geocoder request options\n"
},
{
"from": "human",
"value": "(function () {\n angular\n .module(\"ng-geocoder\")\n .factory(\"ngGeocoderService\", ngGeocoderService);\n\n ngGeocoderService.$inject = [\"$q\"];\n\n function ngGeocoderServ... | javascript | chosen |
[
{
"from": "system",
"value": "Improve error message when reloadBaj is undefined.\n"
},
{
"from": "human",
"value": "$(document).ready(() => {\n\tif (typeof window.reloadBaj === 'undefined') {\n\t\tconsole.error('alchemists-boiteajeux: reloadBaj is undefined');\n\t\treturn;\n\t}\n\n\tvar gameId =... | javascript | chosen |
[
{
"from": "system",
"value": "Set iFrame width to 100%\n"
},
{
"from": "human",
"value": "// This is the JS embedded in the page that will host the iFrame\n// It assumes that there is no jQuery, just a modern browser.\n\n// when we're good to go\nwindow.onload = function() {\n // find the div\n... | javascript | chosen |
[
{
"from": "system",
"value": "Fix main invocation on the browser\n"
},
{
"from": "human",
"value": "'use strict';\nvar util = require('util');\nvar zepto = require('zepto-browserify');\nvar Controller = require('./controller');\nvar Model = require('./model');\n\nvar $ = zepto.$;\n\nfunction mai... | javascript | chosen |
[
{
"from": "system",
"value": "Fix invocation of named function helper.\n"
},
{
"from": "human",
"value": "var slice = [].slice\n\nfunction Operation (operation, vargs) {\n vargs || (vargs = [])\n if (typeof operation == 'function') {\n this.operation = operation\n this.method... | javascript | chosen |
[
{
"from": "system",
"value": "Use short UUID for tab title and display about tag\n"
},
{
"from": "human",
"value": "App.ObjectPanel = Ext.extend(Ext.Panel, {\n\tborder: false\n\t,iconCls: 'icon-tab-object'\n\t,closable: true\n\t,layout: 'vbox'\n\t,initComponent: function(){\n\t\tthis.items = [\n... | javascript | chosen |
[
{
"from": "system",
"value": "Update toSquareMeters helper\nundefined fix\n"
},
{
"from": "human",
"value": "module.exports = function toSquareMeters(space, space_units) {\n if (space === \"\") {\n return 0;\n }\n space = parseFloat(space.replace(\",\", \".\"));\n\n if (space_... | javascript | chosen |
[
{
"from": "system",
"value": "Add delayed popup when mentor logs in for the first time\n"
},
{
"from": "human",
"value": "app.controller('LoginController', ['$scope', '$mdDialog', '$firebaseAuth', 'AuthFactory', function($scope, $mdDialog, $firebaseAuth, AuthFactory){\n console.log('login contr... | javascript | chosen |
[
{
"from": "system",
"value": "Add navigation to choose job type screen from developer screen\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport { View, Button } from 'react-native';\n\n/*\nDeveloper screen.\nProvides access to components during development.\n*/\nexport default... | javascript | chosen |
[
{
"from": "system",
"value": "Correct the module name in the header comment\n"
},
{
"from": "human",
"value": "/* -*- mode: javascript; c-basic-offset: 4; indent-tabs-mode: nil -*- */\n\n//\n// Dalliance Genome Explorer\n// (c) Thomas Down 2006-2014\n//\n// memstore.js\n//\n\nfunction formatLong... | javascript | chosen |
[
{
"from": "system",
"value": "Use icosahedron instead of sphere for less faces\n"
},
{
"from": "human",
"value": "/* globals AFRAME THREE */\nAFRAME.registerBrush('single-sphere',\n {\n init: function (color, width) {\n this.material = new THREE.MeshStandardMaterial({\n color: th... | javascript | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.