text stringlengths 9 39.2M | dir stringlengths 26 295 | lang stringclasses 185
values | created_date timestamp[us] | updated_date timestamp[us] | repo_name stringlengths 1 97 | repo_full_name stringlengths 7 106 | star int64 1k 183k | len_tokens int64 1 13.8M |
|---|---|---|---|---|---|---|---|---|
```swift
import Foundation
import UIKit
// MARK: - Settings: Theme
//
class SPThemeViewController: UITableViewController {
private var themes: [Theme] {
return Theme.allThemes
}
/// Selected SortMode
///
@objc
var selectedTheme: Theme = .light {
didSet {
updateSele... | /content/code_sandbox/Simplenote/Classes/SPThemeViewController.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 776 |
```swift
import Foundation
// MARK: - NSRegularExpression (Checklists)
//
extension NSRegularExpression {
/// Matches Checklists at the beginning of each line
///
@objc
static let regexForChecklists: NSRegularExpression = {
try! NSRegularExpression(pattern: "^\\s*(-[ \t]+\\[[xX\\s]?\\])", opti... | /content/code_sandbox/Simplenote/Classes/NSRegularExpression+Simplenote.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 299 |
```objective-c
//
// SPInteractivePushPopAnimationController.m
// Simplenote
//
// Created by James Frost on 08/10/2015.
//
#import "SPInteractivePushPopAnimationController.h"
#import "Simplenote-Swift.h"
CGFloat const SPStandardInteractivePopGestureWidth = 20.0f;
CGFloat const SPGestureTargetSwipeVelocity = 100.... | /content/code_sandbox/Simplenote/Classes/SPInteractivePushPopAnimationController.m | objective-c | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 1,973 |
```swift
import Foundation
import UIKit
// MARK: - UIBlurEffect Simplenote Methods
//
extension UIBlurEffect {
/// Returns a UIBlurEffect instance matching the System preferences
///
@objc
static var simplenoteBlurEffect: UIBlurEffect {
return UIBlurEffect(style: simplenoteBlurStyle)
}
... | /content/code_sandbox/Simplenote/Classes/UIBlurEffect+Simplenote.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 119 |
```swift
import Foundation
// MARK: - ContentSlice
//
struct ContentSlice: Equatable {
/// Original content
///
let content: String
/// Sliced range
///
let range: Range<String.Index>
/// Ranges of matched words
///
let matches: [Range<String.Index>]
/// NSRange version of `m... | /content/code_sandbox/Simplenote/Classes/ContentSlice.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 180 |
```swift
import Foundation
// MARK: - NotesListFilter
//
enum NotesListFilter: Equatable {
case everything
case deleted
case untagged
case tag(name: String)
}
// MARK: - NotesListFilter: Public API
//
extension NotesListFilter {
/// Initializes the ListFilter for a given `selectedTag`
///
... | /content/code_sandbox/Simplenote/Classes/NotesListFilter.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 310 |
```objective-c
#import "Simperium+Simplenote.h"
#import "Simplenote-Swift.h"
@implementation Simperium (Simplenote)
- (Preferences *)preferencesObject
{
SPBucket *bucket = [self bucketForName:NSStringFromClass([Preferences class])];
Preferences *preferences = [bucket objectForKey:kSimperiumPreferencesObjectK... | /content/code_sandbox/Simplenote/Classes/Simperium+Simplenote.m | objective-c | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 109 |
```swift
import Foundation
// MARK: - Simplenote Methods
//
extension UIDevice {
@objc
static var isPad: Bool {
UIDevice.current.userInterfaceIdiom == .pad
}
}
``` | /content/code_sandbox/Simplenote/Classes/UIDevice+Simplenote.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 45 |
```swift
import UIKit
// MARK: - ActivityIndicatorButton
//
class ActivityIndicatorButton: UIButton {
private lazy var activityIndicator = UIActivityIndicatorView()
/// In Progress
///
var inProgress: Bool = false {
didSet {
if inProgress {
titleLabel?.alpha = UIKi... | /content/code_sandbox/Simplenote/Classes/ActivityIndicatorButton.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 248 |
```objective-c
//
// NSManagedObjectContext+CoreDataExtensions.h
// Castaway
//
// Created by Tom Witkin on 4/5/13.
//
#import <CoreData/CoreData.h>
@interface NSManagedObjectContext (CoreDataExtensions)
- (NSArray *)fetchAllObjectsForEntityName:(NSString *)entityName;
- (NSArray *)fetchObjectsForEntityName:(NSS... | /content/code_sandbox/Simplenote/Classes/NSManagedObjectContext+CoreDataExtensions.h | objective-c | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 207 |
```objective-c
//
// Tag.h
// Simplenote
//
// Created by Michael Johnston on 10-04-19.
//
#import <Simperium/SPManagedObject.h>
@interface Tag : SPManagedObject {
NSString *name;
NSMutableArray *recipients;
int count;
NSNumber *index;
NSString *share;
}
@property (nonatomic, retain) NSString *name;
@prop... | /content/code_sandbox/Simplenote/Classes/Tag.h | objective-c | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 172 |
```objective-c
//
// WPAuthHandler.h
// Simplenote
// Handles oauth authentication with WordPress.com
//
#import <Simperium/Simperium.h>
@interface WPAuthHandler : NSObject
+ (BOOL)isWPAuthenticationUrl:(NSURL*)url;
+ (void)presentWordPressSSOFromViewController:(UIViewController *)presenter;
+ (SPUser *)authorizeS... | /content/code_sandbox/Simplenote/Classes/WPAuthHandler.h | objective-c | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 99 |
```swift
import Foundation
// MARK: - TagTextFieldInputValidator
//
struct TagTextFieldInputValidator {
private var disallowedCharacterSet: CharacterSet {
get {
var whitespaceCharset = CharacterSet.whitespacesAndNewlines
whitespaceCharset.insert(",")
return whitespaceCha... | /content/code_sandbox/Simplenote/Classes/TagTextFieldInputValidator.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 463 |
```swift
import Foundation
import LocalAuthentication
// MARK: - BiometricAuthentication
//
class BiometricAuthentication {
/// Biometry
///
enum Biometry {
case touchID
case faceID
}
/// Available biometry type or nil if biometry is not supported or user disabled it in settings
... | /content/code_sandbox/Simplenote/Classes/BiometricAuthentication.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 297 |
```swift
import Foundation
// MARK: - FileManager
//
extension FileManager {
/// User's Document Directory
///
var documentsURL: URL {
guard let url = FileManager.default.urls(for: .documentDirectory, in: .userDomainMask).first else {
fatalError("Cannot Access User Documents Direc... | /content/code_sandbox/Simplenote/Classes/FileManager+Simplenote.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 303 |
```swift
import Foundation
// MARK: - Simperium + Buckets
//
extension Simperium {
var allBuckets: [SPBucket] {
[ accountBucket, notesBucket, preferencesBucket, settingsBucket, tagsBucket ]
}
/// Bucket: Account
/// - Note: Since it's **dynamic** (InMemory JSON Storage), we don't really have ... | /content/code_sandbox/Simplenote/Classes/Simperium+Simplenote.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 357 |
```swift
import Foundation
// MARK: - SortMode List Methods
//
extension NSSortDescriptor {
/// Returns a NSSortDescriptor, to be applied over Note collections, so that the resulting collection reflects the specified `SortMode`
///
static func descriptorForNotes(sortMode: SortMode) -> NSSortDescriptor {
... | /content/code_sandbox/Simplenote/Classes/NSSortDescriptor+Simplenote.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 439 |
```swift
import Foundation
// MARK: - PassthruView: Doesn't capture tap events performed over itself!
//
class PassthruView: UIView {
/// Callback is invoked when interacted with this view and not with subviews
///
var onInteraction: (() -> Void)?
override func hitTest(_ point: CGPoint, with event: U... | /content/code_sandbox/Simplenote/Classes/PassthruView.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 116 |
```swift
import Foundation
// MARK: - UIBarButtonItem + Appearance
//
extension UIBarButtonItem {
/// Applies the Simplenote Appearance to `UIBarButtonItem` instances
///
class func refreshAppearance() {
let titleAttributes: [NSAttributedString.Key: Any] = [
.font: UIFont.preferredFont... | /content/code_sandbox/Simplenote/Classes/UIBarButtonItem+Appearance.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 92 |
```objective-c
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@interface NSString (Condensing)
/// Returns a version of the receiver with all of its newlines replaced with spaces.
///
/// - Note: Multiple consecutive newlines will be replaced by a *single* space
///
- (NSString *)stringByReplacingNewlin... | /content/code_sandbox/Simplenote/Classes/NSString+Condensing.h | objective-c | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 75 |
```objective-c
//
// SPMarkdownParser.h
// Simplenote
//
// Created by James Frost on 01/10/2015.
//
#import <Foundation/Foundation.h>
/**
* @class SPMarkdownParser
* @brief This is a simple wrapper around the 'hoedown' Markdown parser,
* which produces HTML from a Markdown input strin... | /content/code_sandbox/Simplenote/Classes/SPMarkdownParser.h | objective-c | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 110 |
```objective-c
#import "SPTracker.h"
#import "SPAutomatticTracker.h"
#import "SPAppDelegate.h"
#import "Simperium+Simplenote.h"
@implementation SPTracker
#pragma mark - Metadata
+ (void)refreshMetadataWithEmail:(NSString *)email
{
[[SPAutomatticTracker sharedInstance] refreshMetadataWithEmail:email];
}
+ (voi... | /content/code_sandbox/Simplenote/Classes/SPTracker.m | objective-c | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 2,198 |
```swift
import Foundation
import UIKit
// MARK: - SPTagTableViewCell
//
@objcMembers
class SPTagTableViewCell: UITableViewCell {
/// Left UIImageView
///
@IBOutlet private var leftImageView: UIImageView!
/// Left UIImageView's Height Constraint
///
@IBOutlet private var leftImageHeightConstr... | /content/code_sandbox/Simplenote/Classes/SPTagTableViewCell.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 1,097 |
```swift
import Foundation
// MARK: - UINavigationBar Simplenote Methods
//
extension UINavigationBar {
/// Applies Simplenote's **LIGHT** Style
///
@objc
func applyLightStyle() {
let bcColor = UIColor.white
backgroundColor = bcColor
barTintColor = bcColor
let backgrou... | /content/code_sandbox/Simplenote/Classes/UINavigationBar+Simplenote.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 104 |
```objective-c
//
// JSONKit+Simplenote.h
// Simplenote-iOS
//
// Created by Jorge Leandro Perez on 1/4/14.
//
@interface NSArray (JSONKit)
- (NSString *)JSONString;
@end
@interface NSDictionary (JSONKit)
- (NSString *)JSONString;
@end
@interface NSString (JSONKit)
- (id)objectFromJSONString;
@end
@interface N... | /content/code_sandbox/Simplenote/Classes/JSONKit+Simplenote.h | objective-c | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 101 |
```objective-c
//
// UITextView+Simplenote.h
// Simplenote
//
// Created by Jorge Leandro Perez on 3/25/15.
//
#import <Foundation/Foundation.h>
@interface UITextView (Simplenote)
- (BOOL)applyAutoBulletsWithReplacementText:(NSString *)replacementText replacementRange:(NSRange)replacementRange;
- (NSRange)visible... | /content/code_sandbox/Simplenote/Classes/UITextView+Simplenote.h | objective-c | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 85 |
```swift
import Foundation
import UIKit
// MARK: - UIView: Image Representation Helpers
//
extension UIView {
/// Returns a UIImage containing a rastrerized version of the receiver.
///
@objc
func imageRepresentation() -> UIImage {
let renderer = UIGraphicsImageRenderer(bounds: bounds)
... | /content/code_sandbox/Simplenote/Classes/UIView+ImageRepresentation.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 145 |
```swift
import Foundation
import QuartzCore
// MARK: - ViewSpinner: Spin a view
//
final class ViewSpinner {
private let view: UIView
private var displayLink: CADisplayLink?
private var angle: Double = 0.0
private var velocity: Double = 0.0
/// Callback is invoked once max velocity is reached
... | /content/code_sandbox/Simplenote/Classes/ViewSpinner.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 572 |
```objective-c
//
// SPTextField.h
// Simplenote
//
// Created by Tom Witkin on 10/13/13.
//
#import <UIKit/UIKit.h>
@interface SPTextField : UITextField
@property (nonatomic, assign) NSDirectionalEdgeInsets rightViewInsets;
@property (nonatomic, strong) UIColor *placeholdTextColor;
@end
``` | /content/code_sandbox/Simplenote/Classes/SPTextField.h | objective-c | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 71 |
```objective-c
#import "NSProcessInfo+Util.h"
@implementation NSProcessInfo (Util)
+ (BOOL)isRunningTests
{
NSDictionary *environment = [[NSProcessInfo processInfo] environment];
NSString *injectBundle = environment[@"XCInjectBundle"];
BOOL result = [[injectBundle pathExtension] isEqualToString:@"xctest"]... | /content/code_sandbox/Simplenote/Classes/NSProcessInfo+Util.m | objective-c | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 86 |
```objective-c
//
// SPCollaboratorCompletionCell.h
// Simplenote
//
// Created by Tom Witkin on 7/27/13.
//
#import "SPEntryListCell.h"
@interface SPEntryListAutoCompleteCell : SPEntryListCell
@end
``` | /content/code_sandbox/Simplenote/Classes/SPEntryListAutoCompleteCell.h | objective-c | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 59 |
```swift
import Foundation
// MARK: - NSURL + Interlink
//
extension NSURL {
/// Indicates if the receiver' has the Simplenote Scheme
///
@objc
var isSimplenoteURL: Bool {
scheme?.lowercased() == SimplenoteConstants.simplenoteScheme
}
/// Indicates if the receiver is a reference to a ... | /content/code_sandbox/Simplenote/Classes/NSURL+Links.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 340 |
```swift
import Foundation
import UIKit
// MARK: - SPEditorTapRecognizerDelegate
// Since the dawn of time, UITextView itself was set as (our own) TapGestureRecognizer delegate.
// As per iOS 14, the new (superclass) implementation is not allowing our Tap recognizer to work simultaneously with its (internal)
// rec... | /content/code_sandbox/Simplenote/Classes/SPEditorTapRecognizerDelegate.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 403 |
```objective-c
//
// SPSimperiumManager.m
// Simplenote
//
// Created by Tom Witkin on 7/26/13.
//
#import "SPObjectManager.h"
#import "NSManagedObjectContext+CoreDataExtensions.h"
#import <Simperium/Simperium.h>
#import "SPAppDelegate.h"
#import "Note.h"
#import "Tag.h"
#import "NSString+Metadata.h"
#import "Simpl... | /content/code_sandbox/Simplenote/Classes/SPObjectManager.m | objective-c | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 1,916 |
```objective-c
//
// SPDebugViewController.m
// Simplenote
//
// Created by Jorge Leandro Perez on 6/3/14.
//
#import "SPDebugViewController.h"
#import "SPAppDelegate.h"
#import "Note.h"
#import "Simplenote-Swift.h"
#import <Simperium/Simperium.h>
#import <Simperium/SPBucket.h>
static NSInteger const SPDebugSect... | /content/code_sandbox/Simplenote/Classes/SPDebugViewController.m | objective-c | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 944 |
```swift
import Foundation
import UIKit
// MARK: - UIView's Simplenote Methods
//
extension UIView {
/// Indicates if the receiver has the horizontal compact trait
///
@objc
func isHorizontallyCompact() -> Bool {
return traitCollection.horizontalSizeClass == .compact
}
/// Adjusts the... | /content/code_sandbox/Simplenote/Classes/UIView+Simplenote.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 578 |
```swift
import Foundation
import UIKit
// MARK: - SwitchTableViewCell
//
class SwitchTableViewCell: UITableViewCell {
/// Accessory View
///
private(set) lazy var switchControl = UISwitch()
/// Accessibility Hint to be applied over the control, whenever it's On
///
var enabledAccessibilityHi... | /content/code_sandbox/Simplenote/Classes/SwitchTableViewCell.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 657 |
```objective-c
@interface NSString (Metadata)
// Removes pin and tags
- (NSArray *)stringArray;
@end
``` | /content/code_sandbox/Simplenote/Classes/NSString+Metadata.h | objective-c | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 22 |
```objective-c
//
// SPTextField.m
// Simplenote
//
// Created by Tom Witkin on 10/13/13.
//
#import "SPTextField.h"
#import "Simplenote-Swift.h"
@implementation SPTextField
- (void)drawPlaceholderInRect:(CGRect)rect
{
if (self.placeholdTextColor == nil || self.placeholder.length == 0) {
[super dr... | /content/code_sandbox/Simplenote/Classes/SPTextField.m | objective-c | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 461 |
```swift
import Foundation
// MARK: - PinLockVerifyControllerDelegate
//
protocol PinLockVerifyControllerDelegate: AnyObject {
func pinLockVerifyControllerDidComplete(_ controller: PinLockVerifyController)
}
final class PinLockVerifyController: PinLockBaseController, PinLockController {
var isCancellable: Bo... | /content/code_sandbox/Simplenote/Classes/PinLock/PinLockVerifyController.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 558 |
```swift
import Foundation
// MARK: - PinLockBaseController: base functionality for pin lock controller
//
class PinLockBaseController {
/// Current configuration
///
var configuration = PinLockControllerConfiguration(title: "", message: nil)
/// Configuration observer
///
var configurationObs... | /content/code_sandbox/Simplenote/Classes/PinLock/PinLockBaseController.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 310 |
```swift
import Foundation
// MARK: - PinLockRemoveControllerDelegate
//
protocol PinLockRemoveControllerDelegate: AnyObject {
func pinLockRemoveControllerDidComplete(_ controller: PinLockRemoveController)
func pinLockRemoveControllerDidCancel(_ controller: PinLockRemoveController)
}
// MARK: - PinLockRemoveC... | /content/code_sandbox/Simplenote/Classes/PinLock/PinLockRemoveController.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 315 |
```swift
import Foundation
import CoreSpotlight
import UIKit
import SimplenoteSearch
// MARK: - Components Initialization
//
extension SPNoteListViewController {
/// Sets up the Feedback Generator!
///
@objc
func configureImpactGenerator() {
feedbackGenerator = UIImpactFeedbackGenerator()
... | /content/code_sandbox/Simplenote/Classes/SPNoteListViewController+Extensions.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 8,402 |
```swift
import Foundation
// MARK: - PinLockSetupControllerDelegate
//
protocol PinLockSetupControllerDelegate: AnyObject {
func pinLockSetupControllerDidComplete(_ controller: PinLockSetupController)
func pinLockSetupControllerDidCancel(_ controller: PinLockSetupController)
}
// MARK: - PinLockSetupControll... | /content/code_sandbox/Simplenote/Classes/PinLock/PinLockSetupController.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 522 |
```swift
import Foundation
// MARK: - PinLockControllerConfiguration
//
struct PinLockControllerConfiguration: Equatable {
/// PinLock screen title
let title: String
/// PinLock screen message
///
let message: String?
}
// MARK: - PinLockController
//
protocol PinLockController: AnyObject {
/... | /content/code_sandbox/Simplenote/Classes/PinLock/PinLockController.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 239 |
```swift
import UIKit
// MARK: - PinLockViewController
//
class PinLockViewController: UIViewController {
override var preferredStatusBarStyle: UIStatusBarStyle {
return .lightContent
}
@IBOutlet private weak var titleLabel: UILabel!
@IBOutlet private weak var messageLabel: UILabel!
@IBOut... | /content/code_sandbox/Simplenote/Classes/PinLock/PinLockViewController.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 1,654 |
```css
html {
background: #FFFFFF;
color: #111111;
}
::-webkit-scrollbar-thumb {
background: #84878a;
}
.note-detail-markdown a {
color: #3361cc;
}
.note-detail-markdown hr {
color: #4895d9;
}
.note-detail-markdown code {
color: #899199;
}
.note-detail-markdown pre {
background: #f6f7f... | /content/code_sandbox/Simplenote/Resources/markdown-light.css | css | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 164 |
```css
/* Accessibility high contrast blue */
.note-detail-markdown a {
color: #85aaff !important;
}
``` | /content/code_sandbox/Simplenote/Resources/markdown-dark-contrast.css | css | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 25 |
```css
/* Accessibility high contrast blue */
.note-detail-markdown a {
color: #284da2 !important;
}
``` | /content/code_sandbox/Simplenote/Resources/markdown-default-contrast.css | css | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 25 |
```css
html {
background: 1f2123;
color: #DDDDDD;
}
::-webkit-scrollbar-thumb {
background: #84878a;
}
.note-detail-markdown a {
color: #618df2;
}
.note-detail-markdown hr {
color: #4895d9;
}
.note-detail-markdown code {
color: #84878a;
}
.note-detail-markdown pre {
background: #002b36;... | /content/code_sandbox/Simplenote/Resources/markdown-dark.css | css | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 160 |
```css
@charset "UTF-8";
* , body {
margin: 0;
padding: 0;
}
body {
background: transparent;
}
img {
border: 0;
}
* :focus {
outline: none;
}
html {
margin: 0;
padding: 0;
text-rendering: optimizeLegibility;
}
::-webkit-scrollbar {
width: 6px;
}
::-webkit-scrollbar-track {
... | /content/code_sandbox/Simplenote/Resources/markdown-default.css | css | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 1,051 |
```swift
import Foundation
import SimplenoteEndpoints
// MARK: - AccountVerificationController
//
@objc
class AccountVerificationController: NSObject {
/// Possible verification states
///
enum State {
case unknown
case unverified
case verificationInProgress
case verified
... | /content/code_sandbox/Simplenote/Verification/AccountVerificationController.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 392 |
```swift
import UIKit
// MARK: - AccountVerificationViewController
//
class AccountVerificationViewController: UIViewController {
/// Configuration
///
struct Configuration: Equatable {
static let review = Configuration(iconName: .warning,
title: Localizat... | /content/code_sandbox/Simplenote/Verification/AccountVerificationViewController.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 2,028 |
```swift
import UIKit
// MARK: - NoteEditorTagListViewControllerDelegate
//
protocol NoteEditorTagListViewControllerDelegate: AnyObject {
func tagListDidUpdate(_ tagList: NoteEditorTagListViewController)
func tagListIsEditing(_ tagList: NoteEditorTagListViewController)
}
// MARK: - NoteEditorTagListViewContro... | /content/code_sandbox/Simplenote/Tags/NoteEditorTagListViewController.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 1,323 |
```swift
import UIKit
// MARK: - NoteEditorTagSuggestionsViewController
//
class NoteEditorTagSuggestionsViewController: UIViewController {
@IBOutlet private weak var tableView: HuggableTableView! {
didSet {
tableView.register(Value1TableViewCell.self, forCellReuseIdentifier: Value1TableViewCel... | /content/code_sandbox/Simplenote/Tags/NoteEditorTagSuggestionsViewController.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 655 |
```swift
import Foundation
@objc
class PublishController: NSObject {
private var observedNotes = [String: Note]()
var onUpdate: ((Note) -> Void)?
func updatePublishState(for note: Note, to published: Bool) {
if note.published == published {
return
}
changePublishState(... | /content/code_sandbox/Simplenote/Controllers/PublishController.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 416 |
```swift
import Foundation
import SimplenoteEndpoints
@objc
class AccountDeletionController: NSObject {
private var accountDeletionRequestDate: Date?
var hasValidDeletionRequest: Bool {
guard let expirationDate = accountDeletionRequestDate?.increased(byDays: 1) else {
return false
... | /content/code_sandbox/Simplenote/Controllers/AccountDeletionController.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 179 |
```swift
import Foundation
// MARK: - VersionsController
//
class VersionsController: NSObject {
private let bucket: SPBucket
/// Map of event listeners.
///
private let callbackMap = NSMapTable<NSString, ListenerWrapper>(keyOptions: .copyIn, valueOptions: .weakMemory)
/// Designated Initializer
... | /content/code_sandbox/Simplenote/Controllers/VersionsController.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 757 |
```swift
import Foundation
class PublishNoticePresenter {
static func presentNotice(for note: Note) {
switch note.publishState {
case .publishing:
NoticeController.shared.present(NoticeFactory.publishing())
SPTracker.trackPresentedNotice(ofType: .publishing)
case .pu... | /content/code_sandbox/Simplenote/Controllers/PublishNoticePresenter.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 265 |
```swift
import WidgetKit
import Intents
struct WidgetController {
@available(iOS 14.0, *)
static func resetWidgetTimelines() {
WidgetCenter.shared.getCurrentConfigurations { result in
guard case .success(let widgets) = result else {
return
}
if widg... | /content/code_sandbox/Simplenote/Controllers/WidgetController.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 260 |
```c
#include "context_test.h"
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <ctype.h>
/********************
* GENERIC RENDERER *
********************/
static void
rndr_blockcode(hoedown_buffer *ob, const hoedown_buffer *text, const hoedown_buffer *lang, const hoedown_buffer *attr, const hoed... | /content/code_sandbox/External/Hoextdown/context_test.c | c | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 2,883 |
```objective-c
/* hash.h - generic markdown parser */
#ifndef HOEDOWN_HASH_H
#define HOEDOWN_HASH_H
#include <stdio.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef struct hoedown_hash_item hoedown_hash_item;
typedef struct hoedown_hash hoedown_hash;
typedef void (hoedown_hash_value_destruct) (void *data);
struct... | /content/code_sandbox/External/Hoextdown/hash.h | objective-c | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 253 |
```c
#include "escape.h"
#include <assert.h>
#include <stdio.h>
#include <string.h>
#define likely(x) __builtin_expect((x),1)
#define unlikely(x) __builtin_expect((x),0)
/*
* The following characters will not be escaped:
*
* -_.+!*'(),%#@?=;:/,+&$ alphanum
*
* Note that this character set is the ad... | /content/code_sandbox/External/Hoextdown/escape.c | c | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 2,593 |
```c
#include "stack.h"
#include "buffer.h"
#include <stdlib.h>
#include <string.h>
#include <assert.h>
void
hoedown_stack_init(hoedown_stack *st, size_t initial_size)
{
assert(st);
st->item = NULL;
st->size = st->asize = 0;
if (!initial_size)
initial_size = 8;
hoedown_stack_grow(st, initial_size);
}
void... | /content/code_sandbox/External/Hoextdown/stack.c | c | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 382 |
```c
#include "autolink.h"
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <ctype.h>
#ifndef _MSC_VER
#include <strings.h>
#else
#define strncasecmp _strnicmp
#endif
int
hoedown_autolink_is_safe(const uint8_t *data, size_t size)
{
static const size_t valid_uris_count = 6;
static const char *val... | /content/code_sandbox/External/Hoextdown/autolink.c | c | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 1,763 |
```objective-c
/* html.h - HTML renderer and utilities */
#ifndef HOEDOWN_HTML_H
#define HOEDOWN_HTML_H
#include "document.h"
#include "buffer.h"
#include "hash.h"
#ifdef __cplusplus
extern "C" {
#endif
/*************
* CONSTANTS *
*************/
typedef enum hoedown_html_flags {
HOEDOWN_HTML_SKIP_HTML = (1 <<... | /content/code_sandbox/External/Hoextdown/html.h | objective-c | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 612 |
```objective-c
/* context_test.h - context test renderer used to test parser state functions */
#ifndef CONTEXT_TEST_H
#define CONTEXT_TEST_H
#include "document.h"
#include "buffer.h"
#include "hash.h"
#ifdef __cplusplus
extern "C" {
#endif
/*********
* TYPES *
*********/
struct hoedown_context_test_renderer_st... | /content/code_sandbox/External/Hoextdown/context_test.h | objective-c | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 182 |
```c
#include "hash.h"
#include <stdlib.h>
#include <string.h>
#define HOEDOWN_HASH_ITEM_SIZE 255
#define HOEDOWN_HASH_FNV_PRIME 0x01000193
#define HOEDOWN_HASH_FNV_OFFSET_BASIS 0x811c9dc5
static char *
hoedown_hash_strndup(const char* str, size_t n)
{
if (str) {
char *s = (char *)malloc(sizeof(char) * (... | /content/code_sandbox/External/Hoextdown/hash.c | c | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 1,267 |
```objective-c
/* document.h - generic markdown parser */
#ifndef HOEDOWN_DOCUMENT_H
#define HOEDOWN_DOCUMENT_H
#include "buffer.h"
#include "autolink.h"
#ifdef __cplusplus
extern "C" {
#endif
/*************
* CONSTANTS *
*************/
/* Next offset: 22 */
typedef enum hoedown_extensions {
/* block-level ext... | /content/code_sandbox/External/Hoextdown/document.h | objective-c | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 3,308 |
```objective-c
/* autolink.h - versatile autolinker */
#ifndef HOEDOWN_AUTOLINK_H
#define HOEDOWN_AUTOLINK_H
#include "buffer.h"
#ifdef __cplusplus
extern "C" {
#endif
/*************
* CONSTANTS *
*************/
typedef enum hoedown_autolink_flags {
HOEDOWN_AUTOLINK_SHORT_DOMAINS = (1 << 0)
} hoedown_autolink_... | /content/code_sandbox/External/Hoextdown/autolink.h | objective-c | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 350 |
```objective-c
/* buffer.h - simple, fast buffers */
#ifndef HOEDOWN_BUFFER_H
#define HOEDOWN_BUFFER_H
#include <stdio.h>
#include <stddef.h>
#include <stdarg.h>
#include <stdint.h>
#include <stdlib.h>
#ifdef __cplusplus
extern "C" {
#endif
#if defined(_MSC_VER)
#define __attribute__(x)
#define inline __inline
#def... | /content/code_sandbox/External/Hoextdown/buffer.h | objective-c | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 1,218 |
```objective-c
/* stack.h - simple stacking */
#ifndef HOEDOWN_STACK_H
#define HOEDOWN_STACK_H
#include <stddef.h>
#ifdef __cplusplus
extern "C" {
#endif
/*********
* TYPES *
*********/
struct hoedown_stack {
void **item;
size_t size;
size_t asize;
};
typedef struct hoedown_stack hoedown_stack;
/**********... | /content/code_sandbox/External/Hoextdown/stack.h | objective-c | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 298 |
```c
#include "buffer.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
void *
hoedown_malloc(size_t size)
{
void *ret = malloc(size);
if (!ret) {
fprintf(stderr, "Allocation failed.\n");
abort();
}
return ret;
}
void *
hoedown_calloc(size_t nmemb, size_t size)
{
void *ret ... | /content/code_sandbox/External/Hoextdown/buffer.c | c | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 1,944 |
```c
#include "html.h"
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <ctype.h>
#include "escape.h"
#include "hash.h"
#ifdef _MSC_VER
#define strncasecmp _strnicmp
#endif
#define USE_XHTML(opt) (opt->flags & HOEDOWN_HTML_USE_XHTML)
#define USE_TASK_LIST(opt) (opt->flags & HOEDOWN_HTML_USE_TA... | /content/code_sandbox/External/Hoextdown/html.c | c | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 9,673 |
```c
#include "html.h"
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <ctype.h>
#ifdef _MSC_VER
#define snprintf _snprintf
#endif
struct smartypants_data {
int in_squote;
int in_dquote;
};
static size_t smartypants_cb__ltag(hoedown_buffer *ob, struct smartypants_data *smrt, uint8_t previous_c... | /content/code_sandbox/External/Hoextdown/html_smartypants.c | c | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 4,881 |
```objective-c
/* escape.h - escape utilities */
#ifndef HOEDOWN_ESCAPE_H
#define HOEDOWN_ESCAPE_H
#include "buffer.h"
#ifdef __cplusplus
extern "C" {
#endif
/*************
* FUNCTIONS *
*************/
/* hoedown_escape_href: escape (part of) a URL inside HTML */
void hoedown_escape_href(hoedown_buffer *ob, con... | /content/code_sandbox/External/Hoextdown/escape.h | objective-c | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 141 |
```c
/* ANSI-C code produced by gperf version 3.0.3 */
/* Command-line: gperf -L ANSI-C -N hoedown_find_block_tag -c -C -E -S 1 --ignore-case -m100 html_block_names.gperf */
/* Computed positions: -k'1-2' */
#if !((' ' == 32) && ('!' == 33) && ('"' == 34) && ('#' == 35) \
&& ('%' == 37) && ('&' == 38) && ('\'' ... | /content/code_sandbox/External/Hoextdown/html_blocks.c | c | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 3,485 |
```c
#include "version.h"
void
hoedown_version(int *major, int *minor, int *revision, int *extras)
{
*major = HOEDOWN_VERSION_MAJOR;
*minor = HOEDOWN_VERSION_MINOR;
*revision = HOEDOWN_VERSION_REVISION;
*extras = HOEDOWN_VERSION_EXTRAS;
}
``` | /content/code_sandbox/External/Hoextdown/version.c | c | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 73 |
```c
/* ANSI-C code produced by gperf version 3.0.4 */
/* Command-line: gperf -L ANSI-C -N hoedown_find_html5_block_tag -c -C -E -S 1 --ignore-case -m100 html5_block_names.gperf */
/* Computed positions: -k'1-2' */
#if !((' ' == 32) && ('!' == 33) && ('"' == 34) && ('#' == 35) \
&& ('%' == 37) && ('&' == 38) &&... | /content/code_sandbox/External/Hoextdown/html5_blocks.c | c | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 3,670 |
```objective-c
/* version.h - holds Hoedown's version */
#ifndef HOEDOWN_VERSION_H
#define HOEDOWN_VERSION_H
#ifdef __cplusplus
extern "C" {
#endif
/*************
* CONSTANTS *
*************/
#define HOEDOWN_VERSION "3.0.7.15"
#define HOEDOWN_VERSION_MAJOR 3
#define HOEDOWN_VERSION_MINOR 0
#define HOEDOWN_VERSIO... | /content/code_sandbox/External/Hoextdown/version.h | objective-c | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 156 |
```swift
import ScreenObject
import XCTest
public class PasscodeScreen: ScreenObject {
public init(app: XCUIApplication = XCUIApplication()) throws {
try super.init(
expectedElementGetters: [ { $0.staticTexts["1"].firstMatch }, { $0.staticTexts["4"].firstMatch }, { $0.staticTexts["7"].firstMat... | /content/code_sandbox/UITestsFoundation/PasscodeScreen.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 266 |
```swift
import XCTest
extension XCUIApplication {
public func assertLabelExists(
withText text: String,
timetout: TimeInterval = 5.0,
file: StaticString = #file,
line: UInt = #line
) {
XCTAssertTrue(
staticTexts[text].waitForExistence(timeout: timetout),
... | /content/code_sandbox/UITestsFoundation/XCUIApplication+Assertions.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 101 |
```objective-c
#import <Foundation/Foundation.h>
FOUNDATION_EXPORT double UITestsFoundationVersionNumber;
FOUNDATION_EXPORT const unsigned char UITestsFoundationVersionString[];
``` | /content/code_sandbox/UITestsFoundation/UITestsFoundation.h | objective-c | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 27 |
```c
#include "document.h"
#include <assert.h>
#include <string.h>
#include <ctype.h>
#include <stdio.h>
#include "stack.h"
#ifndef _MSC_VER
#include <strings.h>
#else
#define strncasecmp _strnicmp
#endif
#define REF_TABLE_SIZE 8
#define BUFFER_BLOCK 0
#define BUFFER_SPAN 1
#define BUFFER_ATTRIBUTE 2
const char *... | /content/code_sandbox/External/Hoextdown/document.c | c | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 34,150 |
```qmake
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in C:\Users\Mikhail\Documents\tools\android_sdk/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the proguardFiles
# directive in build.gradle.
#
# For mor... | /content/code_sandbox/CarouselLayoutManager/carousellayoutmanager/proguard-rules.pro | qmake | 2016-03-30T09:57:49 | 2024-08-16T03:15:37 | CarouselLayoutManager | Azoft/CarouselLayoutManager | 2,549 | 144 |
```gradle
apply plugin: 'maven-publish'
apply plugin: 'signing'
apply plugin: 'org.jetbrains.dokka'
task androidSourcesJar(type: Jar) {
archiveClassifier.set('sources')
if (project.plugins.findPlugin("com.android.library")) {
from android.sourceSets.main.java.srcDirs
} else {
from sourceSet... | /content/code_sandbox/CarouselLayoutManager/carousellayoutmanager/publish-module.gradle | gradle | 2016-03-30T09:57:49 | 2024-08-16T03:15:37 | CarouselLayoutManager | Azoft/CarouselLayoutManager | 2,549 | 438 |
```gradle
ext["signing.keyId"] = ''
ext["signing.password"] = ''
ext["signing.secretKeyRingFile"] = ''
ext["ossrhUsername"] = ''
ext["ossrhPassword"] = ''
ext["sonatypeStagingProfileId"] = ''
File secretPropsFile = project.rootProject.file('local.properties')
if (secretPropsFile.exists()) {
// Read local.propertie... | /content/code_sandbox/CarouselLayoutManager/carousellayoutmanager/publish-root.gradle | gradle | 2016-03-30T09:57:49 | 2024-08-16T03:15:37 | CarouselLayoutManager | Azoft/CarouselLayoutManager | 2,549 | 322 |
```java
package com.mig35.carousellayoutmanager;
import androidx.annotation.NonNull;
import android.view.View;
/**
* Implementation of {@link CarouselLayoutManager.PostLayoutListener} that makes interesting scaling of items. <br />
* We are trying to make items scaling quicker for closer items for center and slower... | /content/code_sandbox/CarouselLayoutManager/carousellayoutmanager/src/main/java/com/mig35/carousellayoutmanager/CarouselZoomPostLayoutListener.java | java | 2016-03-30T09:57:49 | 2024-08-16T03:15:37 | CarouselLayoutManager | Azoft/CarouselLayoutManager | 2,549 | 361 |
```java
package com.mig35.carousellayoutmanager;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;
import android.view.View;
public class DefaultChildSelectionListener extends CarouselChildSelectionListener {
@NonNull
private final OnCenterItemClickListener mOnCenterItemCl... | /content/code_sandbox/CarouselLayoutManager/carousellayoutmanager/src/main/java/com/mig35/carousellayoutmanager/DefaultChildSelectionListener.java | java | 2016-03-30T09:57:49 | 2024-08-16T03:15:37 | CarouselLayoutManager | Azoft/CarouselLayoutManager | 2,549 | 294 |
```java
package com.mig35.carousellayoutmanager;
import android.graphics.PointF;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;
import android.view.View;
/**
* Custom implementation of {@link RecyclerView.SmoothScroller} that can work only with {@link CarouselLayoutManager}.
*... | /content/code_sandbox/CarouselLayoutManager/carousellayoutmanager/src/main/java/com/mig35/carousellayoutmanager/CarouselSmoothScroller.java | java | 2016-03-30T09:57:49 | 2024-08-16T03:15:37 | CarouselLayoutManager | Azoft/CarouselLayoutManager | 2,549 | 318 |
```java
package com.mig35.carousellayoutmanager;
public class ItemTransformation {
final float mScaleX;
final float mScaleY;
final float mTranslationX;
final float mTranslationY;
public ItemTransformation(final float scaleX, final float scaleY, final float translationX, final float translationY) ... | /content/code_sandbox/CarouselLayoutManager/carousellayoutmanager/src/main/java/com/mig35/carousellayoutmanager/ItemTransformation.java | java | 2016-03-30T09:57:49 | 2024-08-16T03:15:37 | CarouselLayoutManager | Azoft/CarouselLayoutManager | 2,549 | 101 |
```java
package com.mig35.carousellayoutmanager;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;
import android.view.View;
public abstract class CarouselChildSelectionListener {
@NonNull
private final RecyclerView mRecyclerView;
@NonNull
private final CarouselLay... | /content/code_sandbox/CarouselLayoutManager/carousellayoutmanager/src/main/java/com/mig35/carousellayoutmanager/CarouselChildSelectionListener.java | java | 2016-03-30T09:57:49 | 2024-08-16T03:15:37 | CarouselLayoutManager | Azoft/CarouselLayoutManager | 2,549 | 326 |
```java
package com.mig35.carousellayoutmanager;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;
/**
* Class for centering items after scroll event.<br />
* This class will listen to current scroll state and if item is not centered after scroll it will automatically scroll it t... | /content/code_sandbox/CarouselLayoutManager/carousellayoutmanager/src/main/java/com/mig35/carousellayoutmanager/CenterScrollListener.java | java | 2016-03-30T09:57:49 | 2024-08-16T03:15:37 | CarouselLayoutManager | Azoft/CarouselLayoutManager | 2,549 | 279 |
```java
package com.mig35.carousellayoutmanager.sample;
import android.graphics.Color;
import android.os.Bundle;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Toast;
import com.mig35.carousellayoutmanager.CarouselLayoutManag... | /content/code_sandbox/CarouselLayoutManager/sample/src/main/java/com/mig35/carousellayoutmanager/sample/CarouselPreviewActivity.java | java | 2016-03-30T09:57:49 | 2024-08-16T03:15:37 | CarouselLayoutManager | Azoft/CarouselLayoutManager | 2,549 | 1,199 |
```java
package com.mig35.carousellayoutmanager;
import android.graphics.PointF;
import android.os.Handler;
import android.os.Looper;
import android.os.Parcel;
import android.os.Parcelable;
import android.view.View;
import android.view.ViewGroup;
import java.lang.ref.WeakReference;
import java.util.ArrayList;
import ... | /content/code_sandbox/CarouselLayoutManager/carousellayoutmanager/src/main/java/com/mig35/carousellayoutmanager/CarouselLayoutManager.java | java | 2016-03-30T09:57:49 | 2024-08-16T03:15:37 | CarouselLayoutManager | Azoft/CarouselLayoutManager | 2,549 | 8,113 |
```php
<?php
declare(strict_types=1);
namespace Functional;
use App\Radio\Enums\FrontendAdapters;
use FunctionalTester;
class Api_Admin_StationsCest extends CestAbstract
{
/**
* @before setupComplete
* @before login
*/
public function manageStations(FunctionalTester $I): void
{
$I... | /content/code_sandbox/tests/Functional/Api_Admin_StationsCest.php | php | 2016-04-30T21:41:23 | 2024-08-16T18:27:26 | AzuraCast | AzuraCast/AzuraCast | 2,978 | 164 |
```php
<?php
declare(strict_types=1);
/* Placeholder */
``` | /content/code_sandbox/tests/Functional/_bootstrap.php | php | 2016-04-30T21:41:23 | 2024-08-16T18:27:26 | AzuraCast | AzuraCast/AzuraCast | 2,978 | 13 |
```php
<?php
declare(strict_types=1);
namespace Unit;
use App\Entity\Enums\PlaylistTypes;
use App\Entity\Station;
use App\Entity\StationPlaylist;
use App\Entity\StationSchedule;
use App\Radio\AutoDJ\Scheduler;
use App\Tests\Module;
use Carbon\CarbonImmutable;
use Codeception\Test\Unit;
use DateTimeZone;
use Mockery;... | /content/code_sandbox/tests/Unit/StationPlaylistTest.php | php | 2016-04-30T21:41:23 | 2024-08-16T18:27:26 | AzuraCast | AzuraCast/AzuraCast | 2,978 | 1,184 |
```php
<?php
declare(strict_types=1);
namespace Functional;
use App\Radio\Enums\RemoteAdapters;
use FunctionalTester;
class Api_Stations_RemotesCest extends CestAbstract
{
/**
* @before setupComplete
* @before login
*/
public function manageRemotes(FunctionalTester $I): void
{
$I-... | /content/code_sandbox/tests/Functional/Api_Stations_RemotesCest.php | php | 2016-04-30T21:41:23 | 2024-08-16T18:27:26 | AzuraCast | AzuraCast/AzuraCast | 2,978 | 179 |
```php
<?php
declare(strict_types=1);
namespace Functional;
use FunctionalTester;
class Api_Admin_AuditLogCest extends CestAbstract
{
/**
* @before setupComplete
* @before login
*/
public function viewAuditLog(FunctionalTester $I): void
{
$I->wantTo('View audit log via API.');
... | /content/code_sandbox/tests/Functional/Api_Admin_AuditLogCest.php | php | 2016-04-30T21:41:23 | 2024-08-16T18:27:26 | AzuraCast | AzuraCast/AzuraCast | 2,978 | 104 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.