conversations listlengths 2 3 | source stringclasses 1 value | stack stringclasses 1 value |
|---|---|---|
[
{
"from": "system",
"value": "Switch to a protocol based architecture\n\nCloses #1\n"
},
{
"from": "human",
"value": "struct Version {\n static let major = 0\n static let minor = 1\n static let patch = 0\n\n static let description = \"\\(major).\\(minor).\\(patch)\"\n}\n\n"
},
{
"fro... | swift | chosen |
[
{
"from": "system",
"value": "Adjust error message for nib function\n"
},
{
"from": "human",
"value": "//\n// UIView+Nib.swift\n// iExtra\n//\n// Created by Daniel Saidi on 2016-11-09.\n// Copyright © 2018 Daniel Saidi. All rights reserved.\n//\n\nimport UIKit\n\npublic extension UIView {\n ... | swift | chosen |
[
{
"from": "system",
"value": "Revert linker dependency to fix watchOS\n"
},
{
"from": "human",
"value": "// swift-tools-version:5.0\n// The swift-tools-version declares the minimum version of Swift required to build this package.\nimport PackageDescription\n\nlet package = Package(\n name: \"... | swift | chosen |
[
{
"from": "system",
"value": "Add dotPrefix/Suffix with number of segments.\n\n"
},
{
"from": "human",
"value": "//\n// Strings.swift\n// Unilib\n//\n// Created by David James on 9/28/16.\n// Copyright © 2016 David B James. All rights reserved.\n//\n\nimport Foundation\n\npublic extension St... | swift | chosen |
[
{
"from": "system",
"value": "Fix bug table view didn't update height in demo project\n"
},
{
"from": "human",
"value": "//\n// URLTableViewCell.swift\n// PhotoCollectionView\n//\n// Created by Minh Luan Tran on 9/20/17.\n//\n//\n\nimport UIKit\nimport PhotoCollectionView\n\nclass URLTableVie... | swift | chosen |
[
{
"from": "system",
"value": "Use ?? for accumulating dictionary counts\n"
},
{
"from": "human",
"value": "import Foundation\n\n// Should be fixed: This reads in all of standard input\nlet standardInput = NSFileHandle.fileHandleWithStandardInput()\nlet input = standardInput.availableData\nlet te... | swift | chosen |
[
{
"from": "system",
"value": "Add QR Code Tint Color.\n"
},
{
"from": "human",
"value": "//\n// UIImage+qrCode.swift\n// QRCode\n//\n// Created by luojie on 16/10/24.\n// Copyright © 2016年 LuoJie. All rights reserved.\n//\n\nimport UIKit\n\nextension UIImage {\n \n public static func q... | swift | chosen |
[
{
"from": "system",
"value": "Disable IRGen test case that tests vectorization of arrays to unblock a bot\n\nIt seems to fail with unoptimized stdlib builds.\n\nrdar://30579970\n"
},
{
"from": "human",
"value": "// RUN: %target-swift-frontend -assume-parsing-unqualified-ownership-sil -Ounchecked... | swift | chosen |
[
{
"from": "system",
"value": "Support to utf16 characters with regular expression\n"
},
{
"from": "human",
"value": "//\n// String+OrangeLabel.swift\n// OrangeLabel\n//\n// Created by Steve Kim on 09/04/2017.\n// Copyright © 2016 Steve Kim. All rights reserved.\n//\n\nimport Foundation\n\nex... | swift | chosen |
[
{
"from": "system",
"value": "Use range(at:) for MacOS 10.12 compat\n"
},
{
"from": "human",
"value": "//\n// PageLinkParser.swift\n// GithubClient\n//\n// Created by Eduardo Arenas on 2/18/18.\n// Copyright © 2018 GameChanger. All rights reserved.\n//\n\nimport Foundation\n\nstruct PageLink... | swift | chosen |
[
{
"from": "system",
"value": "chore: Update package name to Gotanda.\n"
},
{
"from": "human",
"value": "// swift-tools-version:5.1\n// The swift-tools-version declares the minimum version of Swift required to build this package.\n\nimport PackageDescription\n\nlet package = Package(\n name: \... | swift | chosen |
[
{
"from": "system",
"value": "Make google analytics id optional\n"
},
{
"from": "human",
"value": "import HaCTML\nimport Foundation\nimport DotEnv\n\nstruct GAScript: Nodeable {\n let googleAnalyticsId = DotEnv.get(\"GOOGLE_ANALYTICS_ID\")!\n var node: Node {\n return TextNode(\n \"\"\... | swift | chosen |
[
{
"from": "system",
"value": "Use default open mode for open quickly\n"
},
{
"from": "human",
"value": "/**\n * Tae Won Ha - http://taewon.de - @hataewon\n * See LICENSE\n */\n\nimport Foundation\nimport RxSwift\n\nclass OpenQuicklyReducer: ReducerType {\n\n typealias StateType = AppState\n ty... | swift | chosen |
[
{
"from": "system",
"value": "Fix title of catalog app.\n\nReviewers: O2 Material Motion, O4 Material Apple platform reviewers, #material_motion, chuga\n\nReviewed By: O4 Material Apple platform reviewers, chuga\n\nSubscribers: chuga\n\nTags: #material_motion\n\nDifferential Revision: http://codereview.cc/D... | swift | chosen |
[
{
"from": "system",
"value": "Make APIs using INImage unavailable on macOS\n\n<rdar://problem/47673006>\n"
},
{
"from": "human",
"value": "//===----------------------------------------------------------------------===//\n//\n// This source file is part of the Swift.org open source project\n//\n/... | swift | chosen |
[
{
"from": "system",
"value": "Add subscription to example configuration\n"
},
{
"from": "human",
"value": "//\n// TodoCloudConfiguration.swift\n// Todos\n//\n// Created by Andrew Shepard on 5/23/16.\n// Copyright © 2016 Andrew Shepard. All rights reserved.\n//\n\nimport Foundation\nimport GR... | swift | chosen |
[
{
"from": "system",
"value": "Remove unused method in manager\n"
},
{
"from": "human",
"value": "//\n// MessageManager.swift\n// Rocket.Chat\n//\n// Created by Rafael K. Streit on 7/14/16.\n// Copyright © 2016 Rocket.Chat. All rights reserved.\n//\n\nimport Foundation\nimport RealmSwift\n\n\... | swift | chosen |
[
{
"from": "system",
"value": "Remove backquotes and \"Framework\" from the sentence\n"
},
{
"from": "human",
"value": "import Commandant\nimport Foundation\n\nstruct ShowDocsCommand: CommandProtocol {\n let verb = \"show-docs\"\n let function = \"Open `SwiftLint Framework Docs` on web brow... | swift | chosen |
[
{
"from": "system",
"value": "Revert \"Build fix: Update fix-it stub editor test\"\n\nThis reverts commit 9a17226d263b594a3a2a369d3951387a974139f5.\n"
},
{
"from": "human",
"value": "// RUN: %target-typecheck-verify-swift -diagnostics-editor-mode\n// REQUIRES: objc_interop\n\nimport Foundation\n... | swift | chosen |
[
{
"from": "system",
"value": "Add pending example for sending a message.\n"
},
{
"from": "human",
"value": "//\n// WebSocketTransportSpec.swift\n// WebSocketTransportSpec\n//\n// Created by Paul Young on 28/08/2014.\n// Copyright (c) 2014 CocoaFlow. All rights reserved.\n//\n\nimport Quick\n... | swift | chosen |
[
{
"from": "system",
"value": "Use func for building entity to throw errors\n"
},
{
"from": "human",
"value": "import Foundation\n\npublic enum RequestBodyEntity {\n case Data(NSData)\n case InputStream(NSInputStream)\n}\n\npublic protocol BodyParametersType {\n var contentType: String {... | swift | chosen |
[
{
"from": "system",
"value": "Add test \"test_queryItems\" for Linux.\n"
},
{
"from": "human",
"value": "import XCTest\n\nextension CGIContentOutputStreamTests {\n static let __allTests = [\n (\"test_pathForUnexistingFile\", test_pathForUnexistingFile),\n ]\n}\n\nextension CGIRespon... | swift | chosen |
[
{
"from": "system",
"value": "Add test case for parsing `VIMLiveHeartbeat`\n"
},
{
"from": "human",
"value": "//\n// VIMLiveHeartbeatTests.swift\n// VimeoNetworkingExample-iOS\n//\n// Created by Nguyen, Van on 10/4/17.\n// Copyright © 2017 Vimeo. All rights reserved.\n//\n\nimport XCTest\n\n... | swift | chosen |
[
{
"from": "system",
"value": "Refactor tests to improve readability\n"
},
{
"from": "human",
"value": "//\n// BothamAPIClientTests.swift\n// BothamNetworking\n//\n// Created by Pedro Vicente Gomez on 23/11/15.\n// Copyright © 2015 GoKarumi S.L. All rights reserved.\n//\n\nimport Foundation\n... | swift | chosen |
[
{
"from": "system",
"value": "Fix to reflect the value of isSelected in button value\n"
},
{
"from": "human",
"value": "//\n// ButtonStyleSelectableBase.swift\n// ButtonStyleKit\n//\n// Created by keygx on 2016/08/04.\n// Copyright © 2016年 keygx. All rights reserved.\n//\n\nimport UIKit\n\no... | swift | chosen |
[
{
"from": "system",
"value": "Update for Xcode 6 beta 4\n"
},
{
"from": "human",
"value": "//\n// sequenceOfBytesForFileAtPath.swift\n// KDJSwiftStdIO\n//\n// Created by Kristopher Johnson on 7/19/14.\n// Copyright (c) 2014 Kristopher Johnson. All rights reserved.\n//\n\nimport Foundation\n\... | swift | chosen |
[
{
"from": "system",
"value": "Adjust return type of scriptMessage(forName:)\n"
},
{
"from": "human",
"value": "//\n// RxWKUserContentController.swift\n// RxWebKit\n//\n// Created by Jesse Hao on 2019/3/30.\n// Copyright © 2019 RxSwift Community. All rights reserved.\n//\n\nimport WebKit\n#if... | swift | chosen |
[
{
"from": "system",
"value": "Create `Habit` object in `addHabit(_:)`\n\nCreating the `Habit` object inside the method makes it safe to call the method in a different thread (than the `Habit` object would have been created in before).\n"
},
{
"from": "human",
"value": "//\n// Store.swift\n// H... | swift | chosen |
[
{
"from": "system",
"value": "Add Enum (with RawValue) and string extension.\n"
},
{
"from": "human",
"value": "//\n// Utils.swift\n// IBAnimatableApp\n//\n// Created by jason akakpo on 03/07/16.\n// Copyright © 2016 Jake Lin. All rights reserved.\n//\n\nimport Foundation\n\ninternal extensi... | swift | chosen |
[
{
"from": "system",
"value": "Add default init to Builder\n"
},
{
"from": "human",
"value": "//\n// Common.swift\n// AutoLayout\n//\n// Created by Marc Baldwin on 11/03/2015.\n// Copyright (c) 2015 Marc Baldwin. All rights reserved.\n//\n\nimport UIKit\n\npublic struct Views {\n let views... | swift | chosen |
[
{
"from": "system",
"value": "Test does not work on linux\n"
},
{
"from": "human",
"value": "// RUN: %target-swift-frontend -import-objc-header %S/Inputs/huge_c_type.h %s -disable-llvm-optzns -emit-ir | %FileCheck %s\n// Make sure that this does not crash during LLVM's ISel. It does not like hug... | swift | chosen |
[
{
"from": "system",
"value": "Refactor adding query item to request\n"
},
{
"from": "human",
"value": "//\n// NewsRequest.swift\n// TOZ_iOS\n//\n// Created by Rafal Gorczynski on 01.04.2017.\n// Copyright © 2017 intive. All rights reserved.\n//\n\nimport Foundation\n\nfinal class NewsRequest... | swift | chosen |
[
{
"from": "system",
"value": "Fix UnitTest isRunning on xcode8\n"
},
{
"from": "human",
"value": "//\n// Created by Tom Baranes on 14/07/16.\n// Copyright © 2016 Tom Baranes. All rights reserved.\n//\n\nimport Foundation\nimport QuartzCore\n\npublic struct UnitTesting {\n\n public static va... | swift | chosen |
[
{
"from": "system",
"value": "Add test for simple running of commands\n"
},
{
"from": "human",
"value": "import XCTest\n@testable import CommandLine\n\nclass CommandLineTests: XCTestCase {\n func testExample() {\n // This is an example of a functional test case.\n // Use XCTAsse... | swift | chosen |
[
{
"from": "system",
"value": "Use delegate-based Timer initializer instead of block-based to meet iOS 9 req\n"
},
{
"from": "human",
"value": "//\n// AKScheduledAction.swift\n// AudioKit For iOS\n//\n// Created by David Sweetman on 4/1/17.\n// Copyright © 2017 AudioKit. All rights reserved.\... | swift | chosen |
[
{
"from": "system",
"value": "Enable a previously disabled test.\n\nThe FIXME is resolved now and the test can be enabled.\n\nrdar://27781174\n"
},
{
"from": "human",
"value": "// RUN: %target-swift-frontend %s -O -emit-sil | %FileCheck %s\n\n// rdar://problem/27781174\n// XFAIL: *\n\n// FIXME: ... | swift | chosen |
[
{
"from": "system",
"value": "Use an inline struct instead of fileprivate\n"
},
{
"from": "human",
"value": "import Foundation\nimport Swish\nimport Result\n\nstruct FakeRequest: Request {\n typealias ResponseObject = String\n\n func build() -> URLRequest {\n return URLRequest(url: URL(stri... | swift | chosen |
[
{
"from": "system",
"value": "Set default tint color to red\n"
},
{
"from": "human",
"value": "import UIKit\n\npublic class DayViewController: UIViewController {\n\n lazy var dayView: DayView = DayView()\n\n override public func viewDidLoad() {\n super.viewDidLoad()\n self.edgesForExtend... | swift | chosen |
[
{
"from": "system",
"value": "Add the type of encoded lists.\n"
},
{
"from": "human",
"value": "// Copyright © 2015 Rob Rix. All rights reserved.\n\nextension Module {\n\tpublic static var churchList: Module {\n\t\treturn Module(\"ChurchList\", [])\n\t}\n}\n"
},
{
"from": "gpt",
"va... | swift | chosen |
[
{
"from": "system",
"value": "[test] Fix REQUIRES lines in test\n\nAttempt to fix rdar://problem/32470725\n"
},
{
"from": "human",
"value": "// REQUIRES OS=ios\n// REQUIRES CPU=arm64\n// RUN: %target-swift-frontend -typecheck %s -swift-version 3\n// RUN: rm -rf %t && mkdir -p %t && cd %t && %swi... | swift | chosen |
[
{
"from": "system",
"value": "Fix swift 2.2 in standalone project\n"
},
{
"from": "human",
"value": "//\n// ViewController.swift\n// KonamiCode\n//\n// Created by Sebastien Morel on 10/17/14.\n// Copyright (c) 2014 Plopix. All rights reserved.\n//\n\nimport UIKit\n\nclass ViewController: UIV... | swift | chosen |
[
{
"from": "system",
"value": "Use struct instead of static methods\n"
},
{
"from": "human",
"value": "//\n// ResourceesClassGenerator.swift\n// SafeAsset\n//\n// Created by Ido Mizrachi on 7/8/16.\n// Copyright © 2016 Ido Mizrachi. All rights reserved.\n//\n\nimport Cocoa\n\nclass Resourcees... | swift | chosen |
[
{
"from": "system",
"value": "Change UITableView extension methods to public\n"
},
{
"from": "human",
"value": "import UIKit\n\nextension UITableView {\n \n /// Register a cell type for reuse\n ///\n /// - parameter type: The type of cell that must be registered\n func register(_ ... | swift | chosen |
[
{
"from": "system",
"value": "Use screen scale to get a phone appropriate size for the cropped images\n"
},
{
"from": "human",
"value": "//\n// ALUtilities.swift\n// ALCameraViewController\n//\n// Created by Alex Littlejohn on 2015/06/25.\n// Copyright (c) 2015 zero. All rights reserved.\n//... | swift | chosen |
[
{
"from": "system",
"value": "Make a more generic extension, instead of the specialised one.\n"
},
{
"from": "human",
"value": "//\n// Utils.swift\n// IBAnimatableApp\n//\n// Created by jason akakpo on 03/07/16.\n// Copyright © 2016 Jake Lin. All rights reserved.\n//\n\nimport Foundation\n\n... | swift | chosen |
[
{
"from": "system",
"value": "Enable to cancel a discovering\n"
},
{
"from": "human",
"value": "//\n// Action.swift\n// BoostRemote\n//\n// Created by Shinichiro Oba on 2017/08/07.\n// Copyright © 2017 bricklife.com. All rights reserved.\n//\n\nimport Foundation\nimport ReSwift\n\nenum Conne... | swift | chosen |
[
{
"from": "system",
"value": "[Array] Update solution to Longest Consecutive Sequence\n"
},
{
"from": "human",
"value": "/**\n * Question Link: https://leetcode.com/problems/longest-consecutive-sequence/\n * Primary idea: Iterate the array and check all neighbor numbers with the help of set\n *\... | swift | chosen |
[
{
"from": "system",
"value": "Add isLink and linkPath properties to ContainerEntry protocol\n"
},
{
"from": "human",
"value": "// Copyright (c) 2017 Timofey Solomko\n// Licensed under MIT License\n//\n// See LICENSE for license information\n\nimport Foundation\n\n/// A type that represents an ar... | swift | chosen |
[
{
"from": "system",
"value": "Make optional unwrapping for landing features less confusing\n"
},
{
"from": "human",
"value": "import Foundation\n\nenum LandingFeatures {\n /// Features in ascending order of date\n static let features: [LandingFeature?] = [\n LandingFeatures.introToProgrammi... | swift | chosen |
[
{
"from": "system",
"value": "Fix up the issue with sleeping - we can now just read until the end of\nthe file\n"
},
{
"from": "human",
"value": "//\n// BarItem.swift\n// goodbar\n//\n// Created by Peter Hajas on 5/22/16.\n// Copyright © 2016 Peter Hajas. All rights reserved.\n//\n\nimport C... | swift | chosen |
[
{
"from": "system",
"value": "Remove products from the package manifest\n"
},
{
"from": "human",
"value": "import PackageDescription\n\nlet package = Package(\n\tname: \"Swiftx\",\n\ttargets: [\n\t\tTarget(name: \"Swiftx\"),\n\t],\n\tdependencies: [\n\t\t.Package(url: \"https://github.com/typeli... | swift | chosen |
[
{
"from": "system",
"value": "[SwiftPM] Exclude not compatible GIF addition\n"
},
{
"from": "human",
"value": "import PackageDescription\n\nlet package = Package(\n name: \"SwiftyImageIO\"\n)\n"
},
{
"from": "gpt",
"value": "import PackageDescription\n\nlet package = Package(\n ... | swift | chosen |
[
{
"from": "system",
"value": "Fix link tint color on about page\n"
},
{
"from": "human",
"value": "//\n// SettingsAttributedStringView.swift\n// NetNewsWire-iOS\n//\n// Created by Maurice Parker on 9/16/19.\n// Copyright © 2019 Ranchero Software. All rights reserved.\n//\n\nimport SwiftUI\n\... | swift | chosen |
[
{
"from": "system",
"value": "Remove comment citing fixed bug\n\nOne of the two issues preventing us from running test/api-digester/stability-stdlib-abi.swift in swift-evolve tests has been fixed; delete the comment referencing it. There’s another bug that still needs to be fixed, so we still aren’t running... | swift | chosen |
[
{
"from": "system",
"value": "Remove Real and Complex _libraries_; keep modules.\n\nThese are vestigial, and not needed to support swift-pm."
},
{
"from": "human",
"value": "// swift-tools-version:5.0\n//===--- Package.swift ----------------------------------------*- swift -*-===//\n//\n// This ... | swift | chosen |
[
{
"from": "system",
"value": "Remove UI exclusion for SPM"
},
{
"from": "human",
"value": "// swift-tools-version:5.0\n\nimport PackageDescription\n\nlet package = Package(\n name: \"PhoneNumberKit\",\n products: [\n .library(name: \"PhoneNumberKit\", targets: [\"PhoneNumberKit\"])\... | swift | chosen |
[
{
"from": "system",
"value": "Update swift package to modern syntax\n"
},
{
"from": "human",
"value": "// Package.swift\n// Copyright (c) 2017 Nicholas Maccharoli\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentatio... | swift | chosen |
[
{
"from": "system",
"value": "Update dependency on swift-server/TLSService instead of gtaban/TLSService.\n"
},
{
"from": "human",
"value": "// swift-tools-version:4.0\n// The swift-tools-version declares the minimum version of Swift required to build this package.\n\nimport PackageDescription\n\... | swift | chosen |
[
{
"from": "system",
"value": "Add supported platforms to SPM\n"
},
{
"from": "human",
"value": "// swift-tools-version:5.0\n// The swift-tools-version declares the minimum version of Swift required to build this package.\n\nimport PackageDescription\n\nlet package = Package(\n name: \"RxBluet... | swift | chosen |
[
{
"from": "system",
"value": "Switch to gir2swift development branch\n"
},
{
"from": "human",
"value": "// swift-tools-version:5.6\n\nimport PackageDescription\n\nlet package = Package(\n name: \"GLib\",\n products: [ .library(name: \"GLib\", targets: [\"GLib\"]) ],\n dependencies: [\n ... | swift | chosen |
[
{
"from": "system",
"value": "Set environment constraint back to macOS 10.10\n"
},
{
"from": "human",
"value": "// swift-tools-version: 5.6\n\nimport PackageDescription\n\nlet package = Package(\n name: \"Gong\",\n platforms: [\n .iOS(.v9),\n .macOS(.v10_15),\n .tvOS(.... | swift | chosen |
[
{
"from": "system",
"value": "Add alert controller for wrong OTP alert\n"
},
{
"from": "human",
"value": "//\n// SPOTPViewController.swift\n// SiriPay\n//\n// Created by Jatin Arora on 10/09/16.\n// Copyright © 2016 PhonePe Internet Private Limited. All rights reserved.\n//\n\nimport Foundat... | swift | chosen |
[
{
"from": "system",
"value": "Make URL-/pathForResource lookup global and local\n\nDocs state that explicit `nil` for localization will not look up resources in the localization folders. That is not what we want, so remove them here and use the overload that looks in all places. :)\n"
},
{
"from": "... | swift | chosen |
[
{
"from": "system",
"value": "Replace open func to public func\n"
},
{
"from": "human",
"value": "//\n// QueueController.swift\n// AbstractPlayer\n//\n// Created by 林達也 on 2016/09/28.\n// Copyright © 2016年 jp.sora0077. All rights reserved.\n//\n\nimport Foundation\nimport AVKit\nimport AVFou... | swift | chosen |
[
{
"from": "system",
"value": "Update test for Windows path\n"
},
{
"from": "human",
"value": "extension (Int, Int) {}\n\n// RUN: %sourcekitd-test -req=sema %s -- -Xfrontend -enable-descriptive-diagnostics -Xfrontend -diagnostic-documentation-path -Xfrontend /educational/notes/path/prefix %s | %F... | swift | chosen |
[
{
"from": "system",
"value": "Remove default paths from DataManager\n"
},
{
"from": "human",
"value": "import Foundation\n\npublic struct DataManager {\n public var dataPath: String\n\n public\n init(dataPath: String = defaultDataPath) {\n self.dataPath = dataPath\n }\n\n public\n func ... | swift | chosen |
[
{
"from": "system",
"value": "Add items loaded to controller\n"
},
{
"from": "human",
"value": "import UIKit\n\nclass ControllerList:UIViewController\n{\n let model:ModelList\n private weak var viewListBar:ViewListBar!\n \n init()\n {\n model = ModelList()\n \n ... | swift | chosen |
[
{
"from": "system",
"value": "Increase timeout to 9 seconds\n"
},
{
"from": "human",
"value": "import Foundation\n\nfinal class MCreateSaveBuilder\n{\n weak var model:MCreateSave?\n var renders:[MCreateSaveRender]\n var urls:[URL]\n let directory:URL\n private(set) weak var timer:... | swift | chosen |
[
{
"from": "system",
"value": "Fix raw value conversions for Error enum\n"
},
{
"from": "human",
"value": "//\n// Errors.swift\n// ReactiveCocoa\n//\n// Created by Justin Spahr-Summers on 2014-07-13.\n// Copyright (c) 2014 GitHub. All rights reserved.\n//\n\nimport Foundation\n\n/// The domai... | swift | chosen |
[
{
"from": "system",
"value": "Add more Task performance tests\n"
},
{
"from": "human",
"value": "// The MIT License (MIT)\n//\n// Copyright (c) 2015-2021 Alexander Grebenyuk (github.com/kean).\n\nimport XCTest\nimport Nuke\n\n// `Task.swift` is added directly to this target.\nclass TaskPerforman... | swift | chosen |
[
{
"from": "system",
"value": "Support both Swift 3 and Swift 4\n"
},
{
"from": "human",
"value": "import Foundation\nimport PackageDescription\n\nvar isSwiftPackagerManagerTest: Bool {\n return ProcessInfo.processInfo.environment[\"SWIFTPM_TEST_ReactiveSwift\"] == \"YES\"\n}\n\nlet package = ... | swift | chosen |
[
{
"from": "system",
"value": "Add PathTests and PathPerfTests to the TestManifest so they also run on Linux (macOS picks them up automatically)\n"
},
{
"from": "human",
"value": "/*\n This source file is part of the Swift.org open source project\n\n Copyright 2016 Apple Inc. and the Swift projec... | swift | chosen |
[
{
"from": "system",
"value": "Correct run line on fixed crasher\n\nLesson learned: the script is not infallible.\n"
},
{
"from": "human",
"value": "// RUN: not %target-swift-frontend %s -emit-ir\n\nfunc foo<U>(_ x: U?) {\n _ = \"\\(anyLabelHere: x)\"\n}\n\n// This one also crashes in a slightly... | swift | chosen |
[
{
"from": "system",
"value": "test: Add test case for `Pair`\n"
},
{
"from": "human",
"value": "//\n// PairSpec.swift\n// SwiftyEcharts\n//\n// Created by Pluto Y on 15/02/2017.\n// Copyright © 2017 com.pluto-y. All rights reserved.\n//\n\nimport Quick\nimport Nimble\nimport SwiftyEcharts\n\... | swift | chosen |
[
{
"from": "system",
"value": "Remove all device properties function\n"
},
{
"from": "human",
"value": "//\n// DeviceProperties.swift\n// Watson\n//\n// Copyright © 2017 Anil. All rights reserved.\n//\n\nimport Foundation\nimport UIKit\nimport LocalAuthentication\nimport CoreLocation\n\npublic... | swift | chosen |
[
{
"from": "system",
"value": "[Tests] Update beOfSameErrorType to new Nimble Predicate API.\n"
},
{
"from": "human",
"value": "import Nimble\nimport Moya\n\npublic func beOfSameErrorType(_ expectedValue: MoyaError) -> MatcherFunc<MoyaError> {\n return MatcherFunc { actualExpression, failureMe... | swift | chosen |
[
{
"from": "system",
"value": "Add tests for numeric term constructors.\n"
},
{
"from": "human",
"value": "//\n// RDF.swift\n// kineo-test\n//\n// Created by Gregory Todd Williams on 3/25/18.\n// Copyright © 2018 Gregory Todd Williams. All rights reserved.\n//\n\nimport Foundation\n"
},
{... | swift | chosen |
[
{
"from": "system",
"value": "Update to the file reference in XCTAssert for optionals\n"
},
{
"from": "human",
"value": "//\n// AssertEqualsForOptionals.swift\n// Bond\n//\n// Created by Anthony Egerton on 15/03/2015.\n// Copyright (c) 2015 Bond. All rights reserved.\n//\n\nimport Foundation... | swift | chosen |
[
{
"from": "system",
"value": "Update AnalyticsExample to Swift 4.2\n"
},
{
"from": "human",
"value": "//\n// Copyright (c) 2015 Google Inc.\n//\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// You m... | swift | chosen |
[
{
"from": "system",
"value": "Sort source stability results, similar to ABI test change\n"
},
{
"from": "human",
"value": "// REQUIRES: OS=macosx\n// RUN: %empty-directory(%t.tmp)\n// mkdir %t.tmp/module-cache && mkdir %t.tmp/dummy.sdk\n// RUN: %api-digester -dump-sdk -module Swift -o %t.tmp/cur... | swift | chosen |
[
{
"from": "system",
"value": "Remove adding of from vc view\n"
},
{
"from": "human",
"value": "//\n// TransitionAnimator.swift\n// VanHaren\n//\n// Created by Artem Novichkov on 30/11/2016.\n// Copyright © 2016 Rosberry. All rights reserved.\n//\n\nimport UIKit\n\nprotocol TransitionAnimator... | swift | chosen |
[
{
"from": "system",
"value": "Change Linux specific check to `linux-gnu`\n\nWhen swift-ci ran the tests, it looks like `%target-os` was \"linux-gnu”, which wasn’t listed in the Testing Swift document (ony listing `macosx`, `darwin`, `linux`, `freebsd`, `windows-cygnus`, and `windows-gnu`)\n\nSince I can’t (... | swift | chosen |
[
{
"from": "system",
"value": "Make Collection safe subscript public\n"
},
{
"from": "human",
"value": "//\n// CollectionExtensions.swift\n// SwiftDevHints\n//\n// Created by Derek on 10/4/18.\n// Copyright © 2018 ZHOU DENGFENG DEREK. All rights reserved.\n//\n\nimport Foundation\n\nextension... | swift | chosen |
[
{
"from": "system",
"value": "Add test for errors in Roostfile parsing\n"
},
{
"from": "human",
"value": "import Speedy\nimport Nimble\n\nclass RoostfileSpec: Spec {\n var definition: String {\n get {\n return \"\\n\".join([\n \"name: Test\",\n \"version: 0.1.2\",\n ... | swift | chosen |
[
{
"from": "system",
"value": "Add patch method taking an Encodable object to the API Client\n"
},
{
"from": "human",
"value": "//\n// RepositoriesClient.swift\n// GithubClient\n//\n// Created by Eduardo Arenas on 8/5/17.\n// Copyright © 2017 GameChanger. All rights reserved.\n//\n\nimport Fo... | swift | chosen |
[
{
"from": "system",
"value": "Add default implementation of parse for Decodable\n\nIf our `ResponseType` is already `Decodable`, we can simplify things and\noffer a default implementation of `parse`. This should reduce the times\nwhere we just need to do this manually, while still letting us override\nthe d... | swift | chosen |
[
{
"from": "system",
"value": "Fix case of carb and insulin effect attributes\n"
},
{
"from": "human",
"value": "//\n// PredictedBG.swift\n// RileyLink\n//\n// Created by Pete Schwamb on 8/8/16.\n// Copyright © 2016 Pete Schwamb. All rights reserved.\n//\n\nimport Foundation\nimport HealthKit... | swift | chosen |
End of preview. Expand
in Data Studio
README.md exists but content is empty.
- Downloads last month
- 7