Dataset Viewer
Auto-converted to Parquet Duplicate
conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Fix correct classname for track element in next-up\n" }, { "from": "human", "value": "import debug from \"debug\";\nimport React, { Component } from \"react\";\nimport Track from \"../track\";\n\nconst log = debug(\"schedule:components:next-up\");\n\nexport class Ne...
jsx
chosen
[ { "from": "system", "value": "Remove unrecognized props from Input\n\nIn the process, make Input into a stateless component, since apparently this state isn't ever changed.\n" }, { "from": "human", "value": "const bindAll = require('lodash.bindall');\nconst classNames = require('classnames');\nc...
jsx
chosen
[ { "from": "system", "value": "Use `display: flex` for edit bar buttons, fixes IE11 layout glitch\n" }, { "from": "human", "value": "import React, { Component } from 'react';\nimport PropTypes from \"prop-types\";\nimport cx from \"classnames\";\n\nclass EditBar extends Component {\n static pr...
jsx
chosen
[ { "from": "system", "value": "Use hash attribute instead of full href\n\nAllow more than just the hash passed to the href attribute" }, { "from": "human", "value": "import _hashLink from './_hashLink';\nimport animateScroll from './scroll';\nimport React from 'react';\n\nfunction _animateScroll(...
jsx
chosen
[ { "from": "system", "value": "Remove legacy constructor in main app\n" }, { "from": "human", "value": "import React, {Component} from 'react';\nimport {Col, Navbar} from 'react-bootstrap';\n\nimport LC3 from '../core/lc3';\nimport MemoryView from './memory/MemoryView';\n\nexport default class Ap...
jsx
chosen
[ { "from": "system", "value": "Add route for drag & drop ROMs\n" }, { "from": "human", "value": "import React, { Component } from \"react\";\nimport GoogleAnalytics from \"react-ga\";\nimport { BrowserRouter, Route } from \"react-router-dom\";\nimport ListPage from \"./ListPage\";\nimport RunPage...
jsx
chosen
[ { "from": "system", "value": "Fix javascript warning with React.PureComponent\n" }, { "from": "human", "value": "import React from 'react';\r\n\r\nimport VizFlowsSankey from './VizFlowsSankey';\r\nimport promisedComponent from './promisedComponent';\r\n\r\nclass Dashboard extends React.Component...
jsx
chosen
[ { "from": "system", "value": ":label: Update proptypes due to forwardRef change\n\n" }, { "from": "human", "value": "import classNames from 'classnames';\nimport PropTypes from 'prop-types';\nimport React, { forwardRef, useCallback, useState } from 'react';\n\nconst Badge = forwardRef(({ childre...
jsx
chosen
[ { "from": "system", "value": "Fix bug with removing inline-list\n" }, { "from": "human", "value": "import PropTypes from 'prop-types'\nimport React, { Component } from 'react'\nimport { Autocomplete } from '/client/components/autocomplete2/index'\n\nexport class AutocompleteInlineList extends Co...
jsx
chosen
[ { "from": "system", "value": "Add basic data to events\n" }, { "from": "human", "value": "/*** @jsx React.DOM */\n\nvar React = require(\"react\");\nvar Router = require(\"react-router\");\n\nvar PropTypes = require(\"../proptypes\");\n\nvar AggregateEvents = React.createClass({\n mixins: [Rout...
jsx
chosen
[ { "from": "system", "value": "Add user profile reference to user's own sightings only\n" }, { "from": "human", "value": "import React, { Component } from \"react\";\nimport firebase from \"../../javascripts/firebase\";\n\nimport UserProfile from \"./UserProfile\";\nimport store from \"../../stor...
jsx
chosen
[ { "from": "system", "value": "Fix the home page document title.\n" }, { "from": "human", "value": "var React = require('react');\nvar ReactBootstrap = require('react-bootstrap');\nvar ReactRouter = require('react-router');\nvar ReactIntl = require('react-intl');\nvar Reflux = require('reflux');\...
jsx
chosen
[ { "from": "system", "value": "Fix reference error: props is not defined\n\n" }, { "from": "human", "value": "import React from 'react';\nimport {connect} from 'react-redux';\nimport {toggleRealtime, updateFrontendPreferences, home} from '../redux/action-creators';\n\nconst getStatusIcon = (activ...
jsx
chosen
[ { "from": "system", "value": "Change default fetch URL for easier dev with changing routes\n" }, { "from": "human", "value": "// @flow\nimport React from 'react';\nimport { InlineForm } from '../forms/InlineForm';\n\ntype Props = {\n fetchDoc: (url: string) => void,\n}\n\nexport const DocFetche...
jsx
chosen
[ { "from": "system", "value": "Add basic sighting card styling\n" }, { "from": "human", "value": "import React from 'react';\n// import { Card, CardMedia, CardTitle, CardText } from 'material-ui/Card';\n// import styled from 'styled-components';\n// const Img = styled.img`\n// margin:\n// `\n\n...
jsx
chosen
[ { "from": "system", "value": "Add login form and set cookie functionality\n" }, { "from": "human", "value": "import React, { Component } from 'react';\nimport { connect } from 'react-redux'\n\nimport Layout from '../global/Layout';\n\nclass Login extends Component {\n constructor(props) {\n ...
jsx
chosen
[ { "from": "system", "value": "[TASK] Add links to top bar for splitting interna/external payments\n" }, { "from": "human", "value": "\"use strict\";\n\nvar React = require('react');\nvar Navigation = require('react-router').Navigation;\n\nvar session = require('../session/models/session');\nvar ...
jsx
chosen
[ { "from": "system", "value": "Fix alignment of sponsor logos\n\nResolves #2\n" }, { "from": "human", "value": "import { css } from 'glamor';\nimport Paper from 'material-ui/Paper';\nimport React from 'react';\nimport Helmet from 'react-helmet';\nimport BMELogoImage from '../assets/bme-logo.svg';...
jsx
chosen
[ { "from": "system", "value": "Use exact routes to pages\n\nBy default, react route matches a URI (let's say) greedy which means the\nfollowing route:\n\n <Route path=\"/about\" ... />\n\nwill match the following URIs:\n\n /about\n /about/\n /about/foo\n /about/foo/bar\n\nWell, that's not what would we expec...
jsx
chosen
[ { "from": "system", "value": "Add copy button to Query\n" }, { "from": "human", "value": "import React from 'react';\nimport { Badge, Group, JsonInput, Stack, Button } from '@mantine/core';\nimport { useQueryBuilderContext } from 'app/pages/querybuilder/context/query-builder-provider';\nimport {...
jsx
chosen
[ { "from": "system", "value": "Fix incorrect argument of function component\n" }, { "from": "human", "value": "import React from 'react';\nimport { DOC_INITIAL, DOC_OPENING, DOC_FAILED } from './SyncedEditor';\n\nfunction EditorOverlay(state) {\n let overlay;\n switch (state) {\n case DOC_IN...
jsx
chosen
[ { "from": "system", "value": "Add key to Day components\n" }, { "from": "human", "value": "import '../styles/month'\n\nimport React, { Component, PropTypes } from 'react'\nimport { Map } from 'immutable'\nimport moment from 'moment'\nimport range from 'lodash/utility/range'\n\nimport Day from '....
jsx
chosen
[ { "from": "system", "value": "Add placeholder if name is not specified and enforce coding style\n" }, { "from": "human", "value": "import React from 'react';\nimport Elements from '../../api/elements.js';\n\nexport default class ElementName extends React.Component {\n constructor(props) {\n ...
jsx
chosen
[ { "from": "system", "value": "Check against possibly missing notes\n\nIdeally this would be on proptype level but this will do for now. I'll\nget rid of this check later.\n" }, { "from": "human", "value": "import React from 'react';\nimport Editable from './Editable.jsx';\nimport Note from './No...
jsx
chosen
[ { "from": "system", "value": "Replace double quotes with single quotes" }, { "from": "human", "value": "import React from 'react';\n\nexport default React.createClass({\n render() {\n return (\n <div>\n <div style={{display: \"inline-block\", marginRight: \"30px\"}}>\n C...
jsx
chosen
[ { "from": "system", "value": "Implement optional render method that displays a given preparation value along with ingredient name.\n" }, { "from": "human", "value": "import React, {Component} from 'react';\nimport { Grid, Row, Col, Table } from 'react-bootstrap';\n\n\n// TODO: Confirm ingredient...
jsx
chosen
[ { "from": "system", "value": "Fix a crash that was occuring when deleting speaker with self-comments\n\n" }, { "from": "human", "value": "import React from 'react'\nimport { translate } from 'react-i18next'\n\nimport VerificationsOriginHeader from './VerificationsOriginHeader'\nimport { SpeakerP...
jsx
chosen
[ { "from": "system", "value": "Swap colors on voting module.\n\nBlue = link, gray = disabled. Got!\n" }, { "from": "human", "value": "var Upvote = React.createClass({\n\n propTypes: {\n game: React.PropTypes.shape({\n votes_up: React.PropTypes.number.isRequired\n }),\n hasCurrentUs...
jsx
chosen
[ { "from": "system", "value": "Make footer immutable, remove icons\n" }, { "from": "human", "value": "import React from 'react';\nimport { FormattedMessage } from 'react-intl';\nimport { Icon } from '@blueprintjs/core';\n\nimport './Footer.scss';\n\nexport default function Footer(props) {\n cons...
jsx
chosen
[ { "from": "system", "value": "Fix cover images not being loaded due to path changes.\n" }, { "from": "human", "value": "import React, { Component } from \"react\";\nimport Img from \"gatsby-image\";\nimport path from \"path\";\nimport \"./PostCover.scss\";\n\nclass PostCover extends Component {\...
jsx
chosen
[ { "from": "system", "value": "Add some explanatory text about \"bridge\" components\n" }, { "from": "human", "value": "var React = require('react');\n\nif (typeof window !== 'undefined') { window.React = React; }\n\nvar HelloWorld = React.createClass({\n render: function() {\n return <...
jsx
chosen
[ { "from": "system", "value": "ADD comments for modal container\n" }, { "from": "human", "value": "import React from 'react'\nimport { Modal } from 'react-bootstrap'\n\n/**\n * Modal window with animations resembling Bootstrap modal windows\n * Animations for the window are applied once this comp...
jsx
chosen
[ { "from": "system", "value": "Fix static map component when onInit is undefined\n" }, { "from": "human", "value": "class StaticMap extends React.Component {\n componentDidMount() {\n this.createGmapsIntegration();\n }\n\n componentDidUpdate() {\n this.createGmapsIntegration();\n }\n\n ...
jsx
chosen
[ { "from": "system", "value": "Refactor DraftEditor to use JSS\n" }, { "from": "human", "value": "import React from 'react'\nimport IconButton from 'material-ui/IconButton'\nimport compose from 'recompose/compose'\nimport { injectButtonStyles } from './EditorStyles'\n\nconst preventDefault = even...
jsx
chosen
[ { "from": "system", "value": "Fix for disabled style overwrite\n" }, { "from": "human", "value": "/**\n * Created by Suhair Zain on 11/6/16.\n */\n\nimport React, {Component} from 'react';\n\nimport {\n COLOR_ACCENT,\n COLOR_TEXT\n} from './utils/colors';\n\nconst styles = {\n root: {\n...
jsx
chosen
[ { "from": "system", "value": "Fix Github file system status code handling\n" }, { "from": "human", "value": "/*\n * Pseudo-HTTP github project access.\n */\n\nimport { Base } from './base.jsx'\n\nexport class Filesystem extends Base {\n constructor(path, options) {\n super(path, option...
jsx
chosen
[ { "from": "system", "value": "Refactor set state in app parent component\n" }, { "from": "human", "value": "import React from 'react';\nimport axios from 'axios';\nimport lightBaseTheme from 'material-ui/styles/baseThemes/lightBaseTheme';\nimport MuiThemeProvider from 'material-ui/styles/MuiThem...
jsx
chosen
[ { "from": "human", "value": "Add some structure to householdlist\n" }, { "from": "gpt", "value": "import React from 'react';\nimport HouseHoldCard from '../Components/HouseHoldCard.jsx';\n\n/*\n\tHouseHoldList Component\n\n\tProps: {\n\t\tuserid: INT\n\t}\n*/\n\nconst HouseHoldList = React.creat...
jsx
chosen
[ { "from": "system", "value": "Increase default timeout to 100ms\n" }, { "from": "human", "value": "var React = require('react');\nvar debounce = require('debounce');\n\nvar noop = require('./noop.js');\n\nvar SearchBar = React.createClass({\n getDefaultProps: function() {\n return {\n ...
jsx
chosen
[ { "from": "system", "value": "Change so most recently added bookmarks display first.\n" }, { "from": "human", "value": "import { registerComponent, Components, useSingle } from 'meteor/vulcan:core';\nimport React from 'react';\nimport withUser from '../common/withUser';\nimport Users from 'meteo...
jsx
chosen
[ { "from": "system", "value": "Enable play button after clicking download\n" }, { "from": "human", "value": "import React from 'react';\nimport Link from 'component/link';\n\nclass VideoPlayButton extends React.PureComponent {\n componentDidMount() {\n this.keyDownListener = this.onKeyDown.bi...
jsx
chosen
[ { "from": "system", "value": "Add `isPureConfig` prop making it easy to avoid unecessary graph rerenders, since re-rendering a highcharts graph is expensive.\n" }, { "from": "human", "value": "global.HighchartsAdapter = require('exports?HighchartsAdapter!highcharts-standalone-adapter');\nvar Hig...
jsx
chosen
[ { "from": "system", "value": "Add presentation slide and its contents\n" }, { "from": "human", "value": "import React, { Component } from 'react';\n\n// import {\n// Appear, BlockQuote, Cite, CodePane, Code, Deck, Fill, Fit,\n// Heading, Image, Layout, ListItem, List, Quote, Slide, Text,\n//...
jsx
chosen
[ { "from": "system", "value": "Change context menu position props (remove require, add default value)\n\n" }, { "from": "human", "value": "import React from 'react';\nimport PropTypes from 'prop-types';\nimport ContextMenuItem from './ContextMenuItem';\n\n\nconst ContextMenu = ({hide, onLayerClic...
jsx
chosen
[ { "from": "system", "value": "Remove now unused field class on input\n" }, { "from": "human", "value": "import React, { Component } from \"react\"\n\nclass ActionItemToggle extends Component {\n constructor(props) {\n super(props)\n this.handleToggleChange = this.handleToggleChange.bind(t...
jsx
chosen
[ { "from": "system", "value": "Add temporary fix for react-router double-slash issue\n" }, { "from": "human", "value": "import React from 'react'\nimport ReactDOMServer from 'react-dom/server'\nimport { StaticRouter } from 'react-router'\nimport { Provider } from 'react-redux'\n\nimport App from ...
jsx
chosen
[ { "from": "system", "value": "Remove header from markets page\n" }, { "from": "human", "value": "const React = window.React = require('react');\nimport AssetCard from './AssetCard.jsx';\nimport AssetPair from './AssetPair.jsx';\nimport AssetList from './AssetList.jsx';\nimport CustomMarketPicker...
jsx
chosen
[ { "from": "system", "value": "feat: Make ColorPalette display the room's current color\n\nColorPalette used to display each room's color array. Now that we're storing only one color per room, it wasn't working. This commit rewrites ColorPalette to display each room's color.\n" }, { "from": "human", ...
jsx
chosen
[ { "from": "system", "value": "Use BrowserRouter because HashRouter can't push state\n" }, { "from": "human", "value": "import React from 'react';\nimport {\n HashRouter as Router,\n Route,\n Switch\n} from 'react-router-dom';\n\nimport NavBar from './components/NavBar';\nimport Home from './c...
jsx
chosen
[ { "from": "system", "value": "Add modalMetadata to country compare\n" }, { "from": "human", "value": "import React from 'react';\nimport PropTypes from 'prop-types';\nimport Sticky from 'react-stickynode';\n\nimport Header from 'components/header';\nimport Intro from 'components/intro';\nimport ...
jsx
chosen
[ { "from": "system", "value": "Make 404 page not completely terrible\n" }, { "from": "human", "value": "import { registerComponent } from 'meteor/vulcan:lib';\nimport React from 'react';\nimport { FormattedMessage } from 'meteor/vulcan:i18n';\nimport { useServerRequestStatus } from '../../lib/rou...
jsx
chosen
[ { "from": "system", "value": "Fix the propTypes becasue style can be either array or object\n" }, { "from": "human", "value": "import React from \"react\";\nimport Radium from \"radium\";\nimport Picture from \"./Picture\";\n\nclass FullSizePicture extends React.PureComponent {\n getStyles() ...
jsx
chosen
[ { "from": "system", "value": "Disable spellcheck on textarea controls\n" }, { "from": "human", "value": "// @flow\n\nimport React from \"react\";\n\nimport s from \"./styles.scss\";\n\nconst Textly = (props: {\n name: string,\n value: string,\n onSetFilterOption: (string, any) => {}\n}) => (\...
jsx
chosen
[ { "from": "system", "value": "Use defineproperties to set facebook share prototype\n" }, { "from": "human", "value": "'use strict';\n/**\n* The dialogue to share on facebook\n* \n* @public\n* @param Object shareObj\n* @return void\n*/\nvar FacebookShareDialog = function(shareObj) {\n this._sha...
jsx
chosen
[ { "from": "system", "value": "Disable autocomplete, autocorrect, and autocapitalize\n" }, { "from": "human", "value": "var BibleAutocomplete = React.createClass({\n getDefaultProps() {\n return {\n name: \"query_string\",\n }\n },\n\n getInitialState() {\n return {\n value:...
jsx
chosen
[ { "from": "system", "value": "Tidy up the nav bar for now" }, { "from": "human", "value": "import React from 'react'\nimport { Link } from 'react-router'\n\nexport default React.createClass({\n render: function () {\n return (\n <header className=\"header\">\n <div className=\"co...
jsx
chosen
[ { "from": "system", "value": "Update header image to person on city street\n" }, { "from": "human", "value": "var Header = React.createClass({\n render: function(){\n return (\n\n <div id=\"header\">\n\n <Sidebar />\n\n <div id=\"mainHead\">\n\n <FixedMenuTempla...
jsx
chosen
[ { "from": "system", "value": ":bulb: Document tapp portal source code\n\n" }, { "from": "human", "value": "import { createPortal } from 'react-dom';\nimport PropTypes from 'prop-types';\n\nlet wasRendered = false;\nlet isDestroyed = false;\n\nlet lastParent = null;\n\nconst TappPortal = ({ child...
jsx
chosen
[ { "from": "system", "value": ":bug: Use state instead of global variable\n" }, { "from": "human", "value": "import { createPortal } from 'react-dom';\nimport PropTypes from 'prop-types';\n\nlet wasRendered = false;\nlet isDestroyed = false;\n\nlet lastParent = null;\n\nconst TappPortal = ({ chil...
jsx
chosen
[ { "from": "system", "value": "Disable right click on webview\n" }, { "from": "human", "value": "require('./styles/main');\nrequire('./components/Routes.react');\n" }, { "from": "gpt", "value": "require('./styles/main');\nrequire('./components/Routes.react');\n\ndocument.body.addEvent...
jsx
chosen
[ { "from": "system", "value": "Remove connect and export component instead\n" }, { "from": "human", "value": "import React, { Component } from 'react';\nimport { connect } from 'react-redux'\n\nimport NavBar from './NavBar';\n\nclass Layout extends Component {\n constructor(props) {\n s...
jsx
chosen
[ { "from": "system", "value": "Increase fetching interval to apprx. match gateway's response time\n" }, { "from": "human", "value": "var React = require('react');\nvar Reflux = require('reflux');\nvar styleMixin = require('mixins/style-mixin');\nvar _ = require('lodash');\n\nvar deviceListStore =...
jsx
chosen
[ { "from": "system", "value": "Remove title from data block\n" }, { "from": "human", "value": "import React from 'react';\nimport _ from 'underscore';\n\nimport {defined} from '../../../../utils';\nimport KeyValueList from '../keyValueList';\n\n\nconst ContextBlock = React.createClass({\n propTy...
jsx
chosen
[ { "from": "system", "value": "Update dashboard footer review link, and make into a dumb component\n" }, { "from": "human", "value": "'use strict'\n\n import React from 'react'\n\n export default React.createClass({\n\n render: function() {\n return(\n <div className='footer-row row'>\n ...
jsx
chosen
[ { "from": "system", "value": "Use different redux store in dev mode\n" }, { "from": "human", "value": "/* eslint no-underscore-dangle: \"off\" */\n\nimport React from 'react'\nimport ReactDom from 'react-dom'\nimport { Provider } from 'react-redux'\nimport { createStore, compose } from 'redux'\n...
jsx
chosen
[ { "from": "system", "value": "Fix paths for Submission components\n" }, { "from": "human", "value": "/**\n* AddDataPage.jsx\n* Created by Katie Rose 12/7/15\n**/\n\nimport React from 'react';\nimport Navbar from '../SharedComponents/NavigationComponent.jsx';\nimport SubmissionPageHeader from 'Su...
jsx
chosen
[ { "from": "system", "value": "Update graph data table to use unified data format.\n" }, { "from": "human", "value": "import React from 'react';\n\nvar _ = require('lodash');\nvar classNames = require('classnames');\n//import WayPoint from 'react-waypoint';\n\nvar randomId = function() {\n retur...
jsx
chosen
[ { "from": "system", "value": "Apply search for district musters\n" }, { "from": "human", "value": "'use strict';\n\nimport React from 'react';\nimport DistrictCard from './district-card.jsx';\n\nconst BlockGroup = React.createClass({\n\n filterCards: function(event){\n var updatedList...
jsx
chosen
[ { "from": "system", "value": "Change hasErrors propTypes to \"oneOfType\"" }, { "from": "human", "value": "import React from 'react';\nimport PropTypes from 'prop-types';\nimport { replaceComponent } from 'meteor/vulcan:core';\n\nimport Grid from '@material-ui/core/Grid';\nimport Typography from...
jsx
chosen
[ { "from": "system", "value": "Rename the button to fund the wallet\n" }, { "from": "human", "value": "import QRCode from 'qrcode.react'\nimport React from 'react'\nimport createReactClass from 'create-react-class'\nimport {Button, Modal, ModalBody, ModalHeader} from 'reactstrap'\n\nconst Receive...
jsx
chosen
[ { "from": "system", "value": "Revert \"Added the redirection back to the app after successful login\"\n\nThis reverts commit c2ecd0c222d182a019fde099aaf2525b8cb9b251.\n" }, { "from": "human", "value": "import React, { Component } from 'react';\nimport { connect } from 'react-redux';\nimport { re...
jsx
chosen
[ { "from": "system", "value": "Add layout prop for Formitem\n" }, { "from": "human", "value": "/*\n\nLayout for a single form item\n\n*/\n\nimport React from 'react';\nimport Form from 'react-bootstrap/Form';\nimport Row from 'react-bootstrap/Row';\nimport Col from 'react-bootstrap/Col';\nimport ...
jsx
chosen
[ { "from": "system", "value": "Remove positioning object in place of css\n" }, { "from": "human", "value": "//React modules\nimport PropTypes from 'prop-types';\nimport React from 'react';\n\nconst Folder = ({ position, extention, match }) => {\n\treturn (\n\t\t<div class={`folder ${match ? 'acti...
jsx
chosen
[ { "from": "system", "value": "Fix style on add app form in app center\n\nfixes PLAT-834\n\nTest steps:\n- The best app to test the form (has the most fields) is\n Blackboard Collaborate\n\nChange-Id: I28ea6866fea7af357aac2958ec44f74f93f0eeb4\nReviewed-on: https://gerrit.instructure.com/47312\nTested-by: Je...
jsx
chosen
[ { "from": "system", "value": "Make static text work for empty values and numbers\n" }, { "from": "human", "value": "import React from 'react';\nimport { registerComponent } from 'meteor/vulcan:core';\n\nconst parseUrl = value => {\n return value.slice(0,4) === 'http' ? <a href={value} target=\"...
jsx
chosen
[ { "from": "system", "value": "Fix div cannot appear as child of p tag warning.\n" }, { "from": "human", "value": "import React from \"react\"\nimport Prism from \"prismjs\"\nimport \"prismjs/components/prism-javascript.js\"\n\nclass Section extends React.Component {\n componentDidMount() {\n ...
jsx
chosen
[ { "from": "system", "value": "Change shortform page fetch policy\n" }, { "from": "human", "value": "import React from 'react';\nimport { Components, registerComponent, withList } from 'meteor/vulcan:core';\nimport { Comments } from '../../lib/collections/comments';\nimport withUser from '../comm...
jsx
chosen
[ { "from": "system", "value": "Fix initialization of filter setter\n" }, { "from": "human", "value": "export class TraitEntryFilter {\n fullData\n _filter\n\n constructor(fullData) {\n this.fullData = fullData\n this.filter = {\n providerBlacklist: [],\n ...
jsx
chosen
[ { "from": "system", "value": "Add confirm prompt for delete. Should be fancied if an opportunity presents\n" }, { "from": "human", "value": "'use strict';\nimport React from 'react';\n\nexport default ({ onDelete, group }) => {\n\n var deleteGroup = () => {\n onDelete(group);\n };\n...
jsx
chosen
[ { "from": "system", "value": "Change style and adds section tag\n" }, { "from": "human", "value": "import React from 'react';\n\nconst style = {\n width: '30%',\n margin: '2px',\n display: 'inline-block',\n textDecoration: 'none',\n color: 'white'\n}\n\nexport default class ListColors exten...
jsx
chosen
[ { "from": "system", "value": "Read the notebook then render.\n\nI should have done this a while ago.\n" }, { "from": "human", "value": "import React from 'react';\nimport ReactDOM from 'react-dom';\n\nimport * as commutable from 'commutable';\n\nimport Notebook from './components/Notebook';\n\nr...
jsx
chosen
[ { "from": "system", "value": "Fix proptypes had incorrect propnames\n" }, { "from": "human", "value": "import debug from \"debug\";\nimport React, { Component, PropTypes } from \"react\";\nimport Session from \"../session\";\n\nconst log = debug(\"schedule:components:session-list\");\n\nconst MA...
jsx
chosen
[ { "from": "system", "value": "Update layout of message tab\n" }, { "from": "human", "value": "'use strict';\n\nvar _ = require('lodash');\nvar React = require('react');\nvar PanelGeneric = require('./request-detail-panel-generic');\n\nmodule.exports = React.createClass({\n render: function ()...
jsx
chosen
[ { "from": "system", "value": "Add description to quiz page\n" }, { "from": "human", "value": "import React from 'react'\nimport { Field, reduxForm } from 'redux-form'\n\n\nconst renderError = ({ meta: { touched, error } }) => touched && error ?\n <span>{error}</span> : false\n\nconst required =...
jsx
chosen
[ { "from": "system", "value": "Clear comment textarea after saving\n" }, { "from": "human", "value": "class CommentsSection extends React.Component {\n constructor(props) {\n super(props);\n this.state = { comments: this.props.current_comments };\n }\n saveNewComment(e) {\n e.preventD...
jsx
chosen
[ { "from": "system", "value": "feat: Build out helpful support content for 404 errors\n" }, { "from": "human", "value": "'use strict';\nimport React from 'react';\n\n\nconst Error404 = () => (\n <div className=\"error-wrapper\">\n <img\n src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUg...
jsx
chosen
[ { "from": "system", "value": "Add tooltip to line chart\n" }, { "from": "human", "value": "import React from 'react';\nimport PropTypes from 'prop-types';\n\nimport {\n LineChart,\n Line,\n XAxis,\n YAxis,\n CartesianGrid,\n ResponsiveContainer\n} from 'recharts';\n\nconst ChartLine = ({ w...
jsx
chosen
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
7