conversations listlengths 2 3 | source stringclasses 1 value | stack stringclasses 1 value |
|---|---|---|
[
{
"from": "system",
"value": "fix(@angular/cli): Make generated inline template conform to test case\n\nThe generated app component spec checks for the string \"Welcome to {{title}}!!\", which is only output by the generated `app.component.htm`l file, not the generated inline template in `app.component.ts` ... | typescript | chosen |
[
{
"from": "system",
"value": "Change transition default animation from slide to fade\n"
},
{
"from": "human",
"value": "/**\n * Code is from https://medium.com/google-developer-experts/\n * angular-supercharge-your-router-transitions-using-new-animation-features-v4-3-3eb341ede6c8\n */\nimport {\... | typescript | chosen |
[
{
"from": "system",
"value": "Add kute, kute-jquery, and kute-svg\n"
},
{
"from": "human",
"value": "/// <reference path=\"./typings/index.d.ts\"/>\n\nrequirejs.config({\n \"baseUrl\": \"/js/\",\n \"paths\": {\n \"bootstrap\": \"https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstr... | typescript | chosen |
[
{
"from": "system",
"value": "Change order of imports in header class for better logical ordering.\n"
},
{
"from": "human",
"value": "import { Component, EventEmitter, Output, ViewEncapsulation } from '@angular/core';\n\n@Component({\n selector: 'app-header',\n templateUrl: './header.component... | typescript | chosen |
[
{
"from": "system",
"value": ":bug: Fix sniffed language reducer (need object rest spread real bad..)\n"
},
{
"from": "human",
"value": "\nimport os from \"../util/os\";\nimport {app} from \"../electron\";\nimport {handleActions} from \"redux-actions\";\n\nimport {\n IAction,\n ILanguageSniffe... | typescript | chosen |
[
{
"from": "system",
"value": "Add a missing license header\n\nSigned-off-by: Remy Suen <553f7e7fc51e9ff47ae89d5a0ebd06651241b998@gmail.com>\n"
},
{
"from": "human",
"value": "import { ValidationSeverity } from './dockerValidator';\n\nexport interface ValidatorSettings {\n\n\tdeprecatedMaintainer... | typescript | chosen |
[
{
"from": "system",
"value": "Fix type by removing unnecessary type\n"
},
{
"from": "human",
"value": "declare const _fetch: typeof fetch;\n\ndeclare module 'fetch-retry' {\n type RequestDelayFunction = ((\n attempt: number,\n error: Error | null,\n response: Response | null\n ) => nu... | typescript | chosen |
[
{
"from": "system",
"value": "Add Loader IO route verification\n"
},
{
"from": "human",
"value": "import { Controller, Get } from 'routing-controllers';\n\n@Controller()\nexport default class IndexController {\n @Get('/health')\n public health() {\n return { status: 'OK' };\n }\n}\n"
},
... | typescript | chosen |
[
{
"from": "system",
"value": "Create new instance of UrlSearchParams in base _get method.\n"
},
{
"from": "human",
"value": "/**\n * Created by wiekonek on 13.12.16.\n */\nimport {Http, RequestOptions, URLSearchParams} from \"@angular/http\";\nimport {Observable} from \"rxjs\";\nimport {AppAuthe... | typescript | chosen |
[
{
"from": "system",
"value": "Add allowed field name positionValues\n"
},
{
"from": "human",
"value": "import {remove, includedIn, flow, map, forEach, cond, identity, isNot, empty} from 'tsfun';\n\n/**\n * TypeDefinition, as used in TypeRegistry\n *\n * @author Daniel de Oliveira\n */\nexport in... | typescript | chosen |
[
{
"from": "system",
"value": "Allow runloop to settle via autorun in tests.\n"
},
{
"from": "human",
"value": "// @ts-ignore\nimport { cancelTimers, end, getCurrentRunLoop, hasScheduledTimers } from '@ember/runloop';\n\nexport function setupRunLoopCheck(hooks: NestedHooks) {\n hooks.afterEach(f... | typescript | chosen |
[
{
"from": "system",
"value": "Reformat imports, inject service, add fileUpload directive\n"
},
{
"from": "human",
"value": "import { Component } from 'angular2/core';\nimport { UploadFileSelect } from './upload-file-select.directive';\nimport { UploadService } from './upload.service';\nimport { ... | typescript | chosen |
[
{
"from": "system",
"value": "Add log message to MsalRedirectComponent\n"
},
{
"from": "human",
"value": "/*\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License.\n */\n\n/**\n * This is a dedicated redirect component to be added to Angular apps to \n ... | typescript | chosen |
[
{
"from": "system",
"value": "Fix a bug where preferences weren't accessible for automatic daily verses.\n"
},
{
"from": "human",
"value": "import { Client, TextChannel } from 'discord.js';\nimport * as cron from 'node-cron';\nimport * as moment from 'moment';\nimport 'moment-timezone';\n\nimpor... | typescript | chosen |
[
{
"from": "system",
"value": "Update Model to not export a const module.\n"
},
{
"from": "human",
"value": "import { ModelFactory } from './model-service';\nexport { Model } from './model-service';\n\nexport const ModelModule = angular.module( 'gj.Model', [] )\n.factory( 'Model', ModelFactory )\... | typescript | chosen |
[
{
"from": "system",
"value": "Update guard since create-merchant flow has persistence now\n"
},
{
"from": "human",
"value": "import Route from '@ember/routing/route';\nimport '../../css/card-pay/balances.css';\nimport * as short from 'short-uuid';\n\nexport default class CardPayTabBaseRoute exte... | typescript | chosen |
[
{
"from": "system",
"value": "Fix the issue where Settings recursively references itself as a base type\n"
},
{
"from": "human",
"value": "import * as tinymce from 'tinymce';\n\ndeclare module 'tinymce' {\n export interface Settings extends tinymce.Settings {\n [key: string]: any,\n }\n\n ... | typescript | chosen |
[
{
"from": "system",
"value": "Fix typing / linting issues in @orbit/integration-tests\n"
},
{
"from": "human",
"value": "import { Orbit } from '@orbit/core';\n\nexport function jsonapiResponse(\n _options: any,\n body?: any,\n timeout?: number\n): Promise<Response> {\n let options: any;\n l... | typescript | chosen |
[
{
"from": "system",
"value": "Add explicit return types, planning for a lint to enforce this later\n"
},
{
"from": "human",
"value": "import { buildCapabilities } from '../util/capabilities';\n\nimport type { CapturedArguments as Arguments, HelperCapabilities } from '@glimmer/interfaces';\n\ntyp... | typescript | chosen |
[
{
"from": "system",
"value": "Add helpful comment to event listener\n"
},
{
"from": "human",
"value": "// Show appropriate pill based on #anchor in URL\nimport {Tab} from 'bootstrap';\n\nfunction navigateToAnchorTab() {\n const hash = window.location.hash;\n\n if (hash) {\n const el... | typescript | chosen |
[
{
"from": "system",
"value": "Fix checkout export state name.\n"
},
{
"from": "human",
"value": "export default interface CategoryState {\n order: any,\n personalDetails: {\n firstName: string,\n lastName: string,\n emailAddress: string,\n password: string,\n createAccount: bool... | typescript | chosen |
[
{
"from": "system",
"value": "Fix locales list not subscribed\n"
},
{
"from": "human",
"value": "import { Component, OnInit } from '@angular/core';\nimport { ActivatedRoute } from '@angular/router';\n\nimport { LocalesService } from './../services/locales.service';\n\n@Component({\n selector:... | typescript | chosen |
[
{
"from": "system",
"value": "Add typing target for getErrorString"
},
{
"from": "human",
"value": "export class HttpException extends Error {\n public readonly message: any;\n\n /**\n * Base Nest application exception, which is handled by the default Exceptions Handler.\n * If you throw a... | typescript | chosen |
[
{
"from": "system",
"value": "Add action creator for failed account connection.\n"
},
{
"from": "human",
"value": "import { CONNECT_ACCOUNT_REQUEST, CONNECT_ACCOUNT_SUCCESS } from '../constants';\nimport { AccountInfo } from '../types';\n\nexport interface ConnectAccountRequest {\n type: CONNEC... | typescript | chosen |
[
{
"from": "system",
"value": "Change trigger flag to --minify\n\n- --release flag was breaking the android build in latest build tools\n so it's now replaced by the --minify flag.\n\nSee #13 for more information.\nThanks to @aaronksaunders for spotting this.\n"
},
{
"from": "human",
"value": "#... | typescript | chosen |
[
{
"from": "system",
"value": "Write the data that we read from the file\n"
},
{
"from": "human",
"value": "/// <reference path=\"../typings/node/node.d.ts\" />\n\nimport * as fs from 'fs';\n\nexport class Dependument {\n private source: string;\n private output: string;\n\n constructor(option... | typescript | chosen |
[
{
"from": "system",
"value": "Use an actual SpellLibrary in test StatBlockTextEnricher\n"
},
{
"from": "human",
"value": "import { PromptQueue } from \"../Commands/Prompts/PromptQueue\";\nimport { Encounter } from \"../Encounter/Encounter\";\nimport { DefaultRules, IRules } from \"../Rules/Rules... | typescript | chosen |
[
{
"from": "system",
"value": "Make sure that async is exported as async\n\nThe async function is the default export of the async module, so we need to export it on the test module as a named export \"async\"\n"
},
{
"from": "human",
"value": "import './chaiMoment';\n\nexport * from './mockPromis... | typescript | chosen |
[
{
"from": "system",
"value": "Update `HorizonalRule` to be hairline height\n"
},
{
"from": "human",
"value": "import { Fragment } from \"react\"\n\nconst HorizontalRule = () => (\n <Fragment>\n <hr></hr>\n <style jsx>{`\n hr {\n margin: 8px 0;\n height: 1px;\n bo... | typescript | chosen |
[
{
"from": "system",
"value": "Refactor the types of `es6-template-string`\n"
},
{
"from": "human",
"value": "declare module \"es6-template-string\"\n{\n /**\n * Provides the functionality to process es6 template-strings.\n */\n interface IES6Template\n {\n /**\n *... | typescript | chosen |
[
{
"from": "system",
"value": "Fix tests - No longer uses dummy variable\n"
},
{
"from": "human",
"value": "import { expect } from \"chai\";\n\nimport { ImportDotx } from \"./import-dotx\";\n\ndescribe(\"ImportDotx\", () => {\n describe(\"#constructor\", () => {\n it(\"should create\", ... | typescript | chosen |
[
{
"from": "system",
"value": "Resolve missing hammerjs for materialize.\n"
},
{
"from": "human",
"value": "import 'materialize-css';\nimport 'angular2-materialize';\nimport { AnimationBuilder } from 'css-animator/builder';\n\nAnimationBuilder.defaults.fixed = true;\n"
},
{
"from": "gpt",... | typescript | chosen |
[
{
"from": "system",
"value": "Use creation interfaces for parameter\n"
},
{
"from": "human",
"value": "import {\n TimeEntriesPagenationParameters,\n TimeEntry\n} from '../models/timeEntries.models';\n\n// Admin permissions required.\nexport class TimeEntriesAPI {\n harvest;\n baseUrl: string... | typescript | chosen |
[
{
"from": "system",
"value": "Adjust sample objects. Add 'relations' level.\n"
},
{
"from": "human",
"value": "import {IdaiFieldDocument} from '../model/idai-field-document';\n\nexport var DOCS: IdaiFieldDocument[] = [\n {\n \"id\" : \"o1\", \"resource\" : { \"id\": \"o1\",\n ... | typescript | chosen |
[
{
"from": "system",
"value": "Make the bundleJavascript compiler flag optional (default: true)\n"
},
{
"from": "human",
"value": "/*\nFractive: A hypertext authoring tool -- https://github.com/invicticide/fractive\nCopyright (C) 2017 Josh Sutphin\n\nThis program is free software: you can redistr... | typescript | chosen |
[
{
"from": "system",
"value": "Fix a bug and set the default zoom to 2.\n"
},
{
"from": "human",
"value": "\nexport class Camera {\n\n // Values, the actual matrix is the transposed of that one\n private values: Array<number> = [\n 1, 0, 0,\n 0, 1, 0,\n 0, 0, 0\n ];\... | typescript | chosen |
[
{
"from": "system",
"value": "Add ConduitLink to interface export.\n"
},
{
"from": "human",
"value": "export { default as Icon } from './Icon';\nexport { default as SpellLink } from './SpellLink';\nexport { default as SpellIcon } from './SpellIcon';\nexport { default as ItemLink } from './ItemLi... | typescript | chosen |
[
{
"from": "system",
"value": "Disable precaptureStackTraces in tests for now\n\nThinking this might cause the timeouts we're seeing in some cursor tests."
},
{
"from": "human",
"value": "import { Config, LoadBalancingStrategy } from \"../connection\";\n\nconst ARANGO_URL = process.env.TEST_ARANG... | typescript | chosen |
[
{
"from": "system",
"value": "Add test for mixed type array\n"
},
{
"from": "human",
"value": "\nimport express = require('express');\nimport cors = require('cors');\n\nconst app = express();\napp.use(cors());\napp.use(cors({\n maxAge: 100,\n credentials: true,\n optionsSuccessStatus: 2... | typescript | chosen |
[
{
"from": "system",
"value": "Add exceptioin for tslint rule no-unused-var\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport {shallow} from 'enzyme';\n\nimport {Footer} from './footer';\n\ndescribe('Footer', () => {\n it('should be a footer', () => {\n expect(shallow(<Foo... | typescript | chosen |
[
{
"from": "system",
"value": "fix(): Fix for can't bind to ngClass in div\n"
},
{
"from": "human",
"value": "// Copyright (C) 2016 Sergey Akopkokhyants\n// This project is licensed under the terms of the MIT license.\n// https://github.com/akserg/ng2-toasty\n\nimport { NgModule, ModuleWithProvid... | typescript | chosen |
[
{
"from": "system",
"value": "Undo reverting to old version"
},
{
"from": "human",
"value": "import { Component } from '@angular/core';\n\nimport {\n ListState,\n ListStateDispatcher,\n ListItemsLoadAction,\n ListItemModel\n} from '../../../core';\n\n@Component({\n selector: 'sky-list-pagin... | typescript | chosen |
[
{
"from": "system",
"value": "Improve test case and add working comparison\n"
},
{
"from": "human",
"value": "class A<T> {\r\n genericVar: T\r\n}\r\nfunction B<T>() {\r\n // class expression can use T\r\n return class extends A<T> { }\r\n}\r\n// extends can call B\r\nclass K extends B<... | typescript | chosen |
[
{
"from": "system",
"value": "Add style attributes for planning display\n\nWhen display on planning workout are position : absolute,\nplanning template need to retrieve this position from the object\nIt also need to know the height of the element.\n"
},
{
"from": "human",
"value": "import { Tag ... | typescript | chosen |
[
{
"from": "system",
"value": "[Storybooks] Fix inital props for Home component\n"
},
{
"from": "human",
"value": "import { storiesOf } from \"@storybook/react-native\"\nimport WorksForYou from \"lib/Containers/WorksForYou\"\nimport { ForYouRenderer, WorksForYouRenderer } from \"lib/relay/QueryRe... | typescript | chosen |
[
{
"from": "system",
"value": "Move spread operator so MarkdownRender.renderers can override preset.\n"
},
{
"from": "human",
"value": "import * as MathJax from \"@nteract/mathjax\";\nimport { Source } from \"@nteract/presentational-components\";\nimport React from \"react\";\nimport ReactMarkdow... | typescript | chosen |
[
{
"from": "system",
"value": "Set the selection after inserting text\n"
},
{
"from": "human",
"value": "import * as vscode from 'vscode';\n\nimport * as functionParser from './functionParser';\n\nexport function activate() {\n\n\n\tconsole.log('Congratulations, your extension \"addDocComments\" ... | typescript | chosen |
[
{
"from": "system",
"value": "Add more rate limit tests\n"
},
{
"from": "human",
"value": "import { _rateLimiterMiddleware, BURST_LIMIT_MESSAGE } from \"../rateLimiting\"\n\ndescribe(\"rate limiting\", () => {\n let rateLimiter\n let burstLimiter\n let next\n let res\n let status\n let sen... | typescript | chosen |
[
{
"from": "system",
"value": "Use 8080 as default __SERVER_PORT__\n"
},
{
"from": "human",
"value": "import url from 'url';\nimport { PLATFORM } from './utils';\n\nexport const serverPort = PLATFORM === 'server' && (process.env.PORT || __SERVER_PORT__);\nexport const isApiExternal = !!url.parse(... | typescript | chosen |
[
{
"from": "system",
"value": "Add passing code block test\n"
},
{
"from": "human",
"value": "/// <reference path=\"../../../typings/mocha/mocha.d.ts\" />\n/// <reference path=\"../../../typings/chai/chai.d.ts\" />\n\nimport { expect } from 'chai'\nimport * as Up from '../../index'\nimport { Synt... | typescript | chosen |
[
{
"from": "system",
"value": "Fix host attribute not assigned\n"
},
{
"from": "human",
"value": "import { Directive, Input, OnInit, Optional } from '@angular/core';\nimport { DialogRef } from './dialog-ref';\n\n\nlet uniqueId = 0;\n\n\n@Directive({\n selector: '[gdDialogTitle]',\n host: {\... | typescript | chosen |
[
{
"from": "system",
"value": ":bug: Fix unique key error in bookmarks\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport Store from '../../store';\n\nimport Item from './Item';\nimport { Root, ForwardIcon } from './styles';\n\nexport default class TreeBar extends React.Compone... | typescript | chosen |
[
{
"from": "system",
"value": "style: Fix header image border radius\n"
},
{
"from": "human",
"value": "import { Flex } from \"@artsy/palette\"\nimport { ArtistSeriesHeader_artistSeries } from \"__generated__/ArtistSeriesHeader_artistSeries.graphql\"\nimport OpaqueImageView from \"lib/Components/... | typescript | chosen |
[
{
"from": "system",
"value": "Select first play list when loaded\n"
},
{
"from": "human",
"value": "import { Component, OnInit } from '@angular/core';\nimport { PLAYLIST_DATA } from './playlist';\n\n@Component({\n selector: 'app-root',\n templateUrl: './app.component.html',\n styleUrls: ['./a... | typescript | chosen |
[
{
"from": "system",
"value": "Add export for digest availability checking function\n"
},
{
"from": "human",
"value": "import * as encryption from './encryption';\n\nexport const hashPassword = encryption.hashPassword;\nexport const comparePasswordWithHash = encryption.comparePasswordWithHash;\n\... | typescript | chosen |
[
{
"from": "system",
"value": "Remove except separator from blog post content\n"
},
{
"from": "human",
"value": "import matter from \"gray-matter\"\nimport glob from \"glob\"\nimport path from \"path\"\nimport fs from \"fs\"\nimport BlogPost from \"../../models/BlogPost\"\nimport { EntryType } fr... | typescript | chosen |
[
{
"from": "system",
"value": "Use outside modifier to hide a day\n"
},
{
"from": "human",
"value": "import { isSameDay } from 'date-fns';\nimport * as React from 'react';\nimport { DayProps } from '../../types';\n\nimport { getDayComponent } from './getDayComponent';\n\nexport function Day(props... | typescript | chosen |
[
{
"from": "system",
"value": "Fix inner-text parsing by switching to textContent from innerText\n"
},
{
"from": "human",
"value": "import {parseDocument} from 'htmlparser2'\n\nimport {innerText} from 'domutils'\nexport {innerText}\n\nimport type {Node, Document} from 'domhandler'\n\nimport cssSe... | typescript | chosen |
[
{
"from": "system",
"value": "Simplify default windows shell fetching\n"
},
{
"from": "human",
"value": "/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT Lice... | typescript | chosen |
[
{
"from": "system",
"value": "Add a test for suggestions\n"
},
{
"from": "human",
"value": "const DELAY = 500;\n\ncontext(\"Mentions\", () => {\n beforeEach(() => {\n cy.visit(\"http://localhost:4000\");\n });\n it(\"'@ + Enter' should select the first suggestion\", () => {\n cy.get(\".... | typescript | chosen |
[
{
"from": "system",
"value": "Use `import = require` syntax."
},
{
"from": "human",
"value": "import * as CleanWebpackPlugin from 'clean-webpack-plugin';\n\nconst paths = [\n\t'path',\n\t'glob/**/*.js',\n];\n\nnew CleanWebpackPlugin(paths);\nnew CleanWebpackPlugin(paths, 'root-directory');\nnew ... | typescript | chosen |
[
{
"from": "system",
"value": "Revert \"Test KapacitorRulesTable tr keys to be UUIDv4\"\n\nThis reverts commit bd6674859cb23500fd24d4cfbdf5503aeef0c831.\n"
},
{
"from": "human",
"value": "import React from 'react'\nimport {shallow} from 'enzyme'\n\nimport {isUUIDv4} from 'src/utils/stringValidato... | typescript | chosen |
[
{
"from": "system",
"value": "Enable Angular 2 prod mode on website to increase performance.\n"
},
{
"from": "human",
"value": "import {bootstrap} from '@angular/platform-browser-dynamic';\nimport {AppComponent} from './app.component';\n\nbootstrap(AppComponent);\n"
},
{
"from": "gpt"... | typescript | chosen |
[
{
"from": "system",
"value": "Use proper const for base58Check address encoding\n"
},
{
"from": "human",
"value": "\nimport { ECPair, address as baddress } from 'bitcoinjs-lib'\nimport { randomBytes } from './encryption/cryptoRandom'\nimport { createSha2Hash } from './encryption/sha2Hash'\nimpor... | typescript | chosen |
[
{
"from": "system",
"value": "Add BE feature flag for Proton to Proton invites\n"
},
{
"from": "human",
"value": "import { createContext } from 'react';\n\nexport type FeatureType = 'boolean' | 'integer' | 'float' | 'string' | 'enumeration' | 'mixed';\n\nexport interface Feature<V = any> {\n ... | typescript | chosen |
[
{
"from": "system",
"value": "Fix some mistake on PR."
},
{
"from": "human",
"value": "import { add } from '../../../_modules/i18n';\n\nimport nl from './nl';\nimport fa from './fa';\nimport de from './de';\nimport ru from './ru';\nimport pt_br from './pt_br';\n\nexport default function() {\n ... | typescript | chosen |
[
{
"from": "system",
"value": "Update test to correspond with the outer syntax\n"
},
{
"from": "human",
"value": "/**\n This file purely exists to make sure the expected syntax passes typescript type-checking\n */\n\nimport TminusLib = require(\"../src/lib\");\n\nfunction noop() {\n var contro... | typescript | chosen |
[
{
"from": "system",
"value": "Improve web browser example a little.\n"
},
{
"from": "human",
"value": "import * as Gtk from '../../out/Gtk'\nimport * as WebKit from '../../out/WebKit'\n\nGtk.init(null)\n\nlet wnd = new Gtk.Window({ title: 'Browser Test', default_width: 400, default_height: 30... | typescript | chosen |
[
{
"from": "system",
"value": "Add user name to PageCreateModal story\n"
},
{
"from": "human",
"value": "import React from 'react'\nimport PageCreateModal from './PageCreateModal'\nimport Crowi from '../../util/Crowi'\nimport i18n from '../../i18n'\n\ni18n()\n\nconst crowi = new Crowi({ user: {},... | typescript | chosen |
[
{
"from": "system",
"value": "Use const insead of var\n"
},
{
"from": "human",
"value": "import Processor from './processor';\n\nexport default class Throttler extends Processor {\n private eventsPerPeriod: number;\n private eventsInProgress: number = 0;\n private periodInMS: number;\n priva... | typescript | chosen |
[
{
"from": "system",
"value": "Add create track and cues dynamically\n"
},
{
"from": "human",
"value": "import {Observable} from \"rxjs/Observable\";\n\nexport interface IPlayable {\n id:string;\n elem:any;\n time:any;\n buffer:any;\n track?:any;\n canPlay:boolean;\n canPlayT... | typescript | chosen |
[
{
"from": "system",
"value": "Install NB.GV in node script\n"
},
{
"from": "human",
"value": "'use strict';\n\nimport http = require('http');\nimport * as q from 'q';\nimport * as request from 'request';\nimport * as fs from 'fs';\n\nasync function existsAsync(path: string) {\n return new Pro... | typescript | chosen |
[
{
"from": "system",
"value": "Update tests because of linting\n"
},
{
"from": "human",
"value": "var map: L.Map;\n\n// Defaults\nL.control.locate().addTo(map);\n\n// Simple\nvar lc = L.control.locate({\n position: 'topright',\n strings: {\n title: \"Show me where I am, yo!\"\n }\... | typescript | chosen |
[
{
"from": "system",
"value": "Revert \"docs: include css in example\"\n\nThis reverts commit 7f1d7aea4591cf4528fc8a5ec9cdc252d81555d4.\n"
},
{
"from": "human",
"value": "import React from 'react';\n\nimport { format } from 'date-fns';\nimport { DayPicker } from 'react-day-picker';\nimport 'react... | typescript | chosen |
[
{
"from": "system",
"value": "Add webp and avif as image format\n"
},
{
"from": "human",
"value": "/**\n * Extensions of all assets that can be served via url\n */\nexport const imageAssetsExtensions = [\n 'bmp',\n 'gif',\n 'ico',\n 'jpeg',\n 'jpg',\n 'png',\n 'svg',\n 'tif',\n 'tiff',\... | typescript | chosen |
[
{
"from": "system",
"value": "Use named export interop to build es2015\n"
},
{
"from": "human",
"value": "import { fixture as f } from './fixture'\n\nexport default f\nexport * from './interfaces'\n\nimport fs = require('fs')\nimport path = require('path')\n\nconst cache = {}\nexport function fi... | typescript | chosen |
[
{
"from": "system",
"value": "Fix bug on propagation event on talk page\n"
},
{
"from": "human",
"value": "class TalksCtrl{\n constructor() {\n const favoriteButtons = document.getElementsByClassName('mxt-img--favorite');\n Array.from(favoriteButtons).forEach((favoriteButton: HTMLElemen... | typescript | chosen |
[
{
"from": "system",
"value": "Fix advertising of source actions based on context.only\n"
},
{
"from": "human",
"value": "import { CancellationToken, CodeAction, CodeActionContext, CodeActionKind, CodeActionProvider, CodeActionProviderMetadata, Range, TextDocument } from \"vscode\";\nimport { isA... | typescript | chosen |
[
{
"from": "system",
"value": "Implement unit test for map layers reducer\n"
},
{
"from": "human",
"value": "/* tslint:disable:no-unused-variable */\n\n/*!\n * Map Layers Reducer Test\n *\n * Copyright(c) Exequiel Ceasar Navarrete <esnavarrete1@up.edu.ph>\n * Licensed under MIT\n */\n\nimport { a... | typescript | chosen |
[
{
"from": "system",
"value": "Improve hiding of Streams page if insufficient privileges\n"
},
{
"from": "human",
"value": "import { ChangeDetectionStrategy, Component } from '@angular/core';\nimport { Instance } from '@yamcs/client';\nimport { AuthService } from '../../core/services/AuthService'... | typescript | chosen |
[
{
"from": "system",
"value": "Refactor length-function for TypeScript strict mode and some other minor enhancements.\n"
},
{
"from": "human",
"value": "import distance from '@turf/distance';\nimport { segmentReduce } from '@turf/meta';\nimport { Feature, FeatureCollection, LineString, MultiLineS... | typescript | chosen |
[
{
"from": "system",
"value": "Make line explicitly impl. inline container\n"
},
{
"from": "human",
"value": "import { InlineSyntaxNode } from './InlineSyntaxNode'\nimport { OutlineSyntaxNode } from './OutlineSyntaxNode'\n\n\nexport class LineBlockNode implements OutlineSyntaxNode {\n constructo... | typescript | chosen |
[
{
"from": "system",
"value": "test: Update ravenjs tests to reflect new API"
},
{
"from": "human",
"value": "/// <reference path=\"ravenjs.d.ts\" />\n\nvar options: RavenOptions = {\n logger: 'my-logger',\n ignoreUrls: [\n /graph\\.facebook\\.com/i\n ],\n ignoreErrors: [\n ... | typescript | chosen |
[
{
"from": "system",
"value": "Fix ordered list start ordinal test\n"
},
{
"from": "human",
"value": "\nimport { expect } from 'chai'\nimport * as Up from '../../index'\nimport { OrderedListNode } from '../../SyntaxNodes/OrderedListNode'\n\nfunction listStart(text: string): number {\n const list... | typescript | chosen |
[
{
"from": "system",
"value": "Revert \"reverting to old style, using async didn't achieve anything\"\n\nThis reverts commit 094bc82f0ba5cdbc590372190bf6ddd1746fa9f6.\n"
},
{
"from": "human",
"value": "import { ComponentFixture, async } from '@angular/core/testing';\nimport { TestUtils } ... | typescript | chosen |
[
{
"from": "system",
"value": "Stop creating item on blur\n"
},
{
"from": "human",
"value": "import * as React from \"react\";\nimport Plus = require(\"react-icons/lib/md/add\");\n\nimport \"./style/CreateItem.css\";\n\ninterface IProps {\n createItem: () => void;\n}\n\ninterface IState {\n ... | typescript | chosen |
[
{
"from": "system",
"value": "Use fast-refresh instead of hot-loader\n"
},
{
"from": "human",
"value": "import { hot } from 'react-hot-loader/root';\nimport React from 'react';\nimport { ProtonApp, StandardSetup } from 'react-components';\nimport locales from 'proton-shared/lib/i18n/locales';\ni... | typescript | chosen |
[
{
"from": "system",
"value": "Add node_disconnect_exception to retry list in elasticsearch-store\n"
},
{
"from": "human",
"value": "import { PRetryConfig, isTest } from '@terascope/utils';\n\nexport const MAX_RETRIES = isTest ? 2 : 100;\nexport const RETRY_DELAY = isTest ? 50 : 500;\n\nexport fu... | typescript | chosen |
[
{
"from": "system",
"value": "Fix compiler complaint for now\n"
},
{
"from": "human",
"value": "import * as superagent from 'superagent';\n\nimport {\n APIResponse,\n APIResponseError,\n APIResponseSuccess,\n IClient,\n IConfig\n} from '../definitions';\n\nconst CONTENT_TYPE_JSON = 'applica... | typescript | chosen |
[
{
"from": "system",
"value": "Refactor list creation to use request.js\n"
},
{
"from": "human",
"value": "import Rails from '@rails/ujs';\nimport { showNotification, showErrorNotification } from 'utilities/notifications';\nimport I18n from 'retrospring/i18n';\n\nexport function createListHandler... | typescript | chosen |
[
{
"from": "system",
"value": "Fix indentation to match original code\n"
},
{
"from": "human",
"value": "/* Generated API endpoints */\nfinale.initialize({ app, sequelize: models.sequelize })\n\nconst autoModels = [\n { name: 'User', exclude: ['password', 'totpSecret', 'role'] },\n { name: 'Pro... | typescript | chosen |
[
{
"from": "system",
"value": "Add newline at end of file in JKF\n"
},
{
"from": "human",
"value": "import * as stringify from \"json-stringify-pretty-compact\";\nimport { JSONKifuFormat } from \"./shogiUtils\";\n\nexport default class Api {\n static fetchJKF() {\n const begin = new Date();\n... | typescript | chosen |
[
{
"from": "system",
"value": "Fix the pricing card discount percentage.\n\nIt was showing 0% because it wasn't multplied by 100.\n"
},
{
"from": "human",
"value": "import Vue from 'vue';\nimport { Component } from 'vue-property-decorator';\nimport { State } from 'vuex-class';\nimport View from '... | typescript | chosen |
[
{
"from": "system",
"value": "Add optional i18n placeholder setting to the settings\n"
},
{
"from": "human",
"value": "import { SettingType } from './SettingType';\n\nexport interface ISetting {\n /** The id of this setting. */\n id: string;\n /** Type of setting this is. */\n type: ... | typescript | chosen |
[
{
"from": "system",
"value": "Remove key from application DTO\n"
},
{
"from": "human",
"value": "import { RequestHandler } from 'express'\nimport * as get from './db'\n\nexport const one: RequestHandler = async (req, res) => {\n const application = await get.one(req.params.id)\n res.json(appli... | typescript | chosen |
[
{
"from": "system",
"value": "[MAILWEB-980] Update the unread counter to be limited at 999\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport { Icon, classnames } from 'react-components';\n\nimport './RefreshRotation.scss';\n\ninterface Props {\n unreadCount?: number;\n ... | typescript | chosen |
[
{
"from": "system",
"value": "Check error response before parsing\n"
},
{
"from": "human",
"value": "import {Injectable} from '@angular/core';\nimport {Http, Request} from '@angular/http';\nimport {Observable} from 'rxjs';\n\nimport {RestangularHelper} from './ng2-restangular-helper';\n\n\n@Inje... | typescript | chosen |
[
{
"from": "system",
"value": "Fix a mistake in an Error message\n"
},
{
"from": "human",
"value": "import Day from './Day'\n\nexport default class Model {\n private _checkInDate: Day\n private _checkOutDate: Day\n\n constructor(checkInDate: Day, checkOutDate: Day) {\n if (checkOu... | typescript | chosen |
[
{
"from": "system",
"value": "Update spa to point at azure rest demo\n"
},
{
"from": "human",
"value": "// Copyright 2013-2014 Naked Objects Group Ltd\n// Licensed under the Apache License, Version 2.0(the \"License\");\n// you may not use this file except in compliance with the License.\n// Yo... | typescript | chosen |
[
{
"from": "system",
"value": "feat(src): Add style parameter to TResponseItem\n"
},
{
"from": "human",
"value": "import { TResponse, TResponseItem } from \"./alfred/response\";\nimport { getAllIconsObject, TIconObject } from \"./assets/icons_object\";\n\nexport const toResponseItem = (iconObject... | typescript | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.