<commit_before># Strap-in-Swift
The examples I learn to program with Swift.

# Example list
- Project1 - StromViewer: This project covers constants and variables, method overrides, table views and image views, app bundles, `NSFileManager`, typecasting, loops, optionals, view controllers, storyboards, outlets, Auto Layout, `UIImage`.

- Project2 - GuessTheFlag: There are something new about @2x and @3x images, asset catalogs, operators(`+=` and `-=`), `UIButton`, enums, `CALayer`, `UIColor`, random numbers, actions, string interpolation, `UIAlertController`.

- Project3 - SocialMedia: Learned something new here, include `UIBarButtonItem`, `UIActivityViewController`, the Social framework, and `NSURL`.

- Project4 - EasyBrowser: In this project, learned about `loadView()`, `WKWebView`, delegation, `NSURLRequest`, `UIToolBar`, `UIProgressView`, KVO.

- Project5 - WordScramble: In this project, learned how to insert rows into `UITableView`, how to add text fields to `UIAlertController`, some core stuff about strings, closures, method return values, booleans, `NSRange`.

- Project6 - AutoLayout: Learned how to use Auto Layout in code, use Visual Format Language(VFL) to add constraints.

- Project7 - WhitehousePetitions: This project using JSON to parse Whitehouse petitions, learned `NSData`, `SwiftyJSON`, `UITabBarController`, create new view controller by reference to storyboard.

- Project8 - SwiftyWords: This project learning about `addTarget()`, `enumerate()`, `countElements()`, `find()`, `join()`, `stringByReplacingOccurrencesOfString()`, property observers, range operators and the difference between Swift and `NSString`.

- Project9 - GCD: Learn how to run complex tasks in the background with GCD, how to use `dispatch_async()`, `dispatch_get_global_queue()`, `QOS_CLASS_USER_INITIATED` and so on.

- Project10 - Names2Faces: Learn `UICollectionView`, `UIImagePickerController`, `NSUUID`, custom classes and more.

- Project11 - Pachinko: Dive into SpriteKit, learned `SpriteKit`, physics, radians, `CGFloat`, `UITouch`, `SKAction`, `SKLabelNode`, `SKEmitterNode`, `SKPhysicsContactDelegate`.

- Projcet12 - NewNames2Faces: Learn how to save user settings and data for later use, about `NSUserDefaults`, `NSCoding`, `NSKeyedArchiver`, and so on.

- Project13 - Instafilter: In this project, make a photo manipulation program using `UISlider` and Core Image filters, and learn how to write an image to the photo library. 

- Project14 - Whack-a-Penguin: Learned `SKCropNode`, `SKTexture`, GCD's `dispatch_after()`, `SKAction`.<commit_msg>Finished Project15: CoreAnimation<commit_after># Strap-in-Swift
The examples I learn to program with Swift.

# Example list
- Project1 - StromViewer: This project covers constants and variables, method overrides, table views and image views, app bundles, `NSFileManager`, typecasting, loops, optionals, view controllers, storyboards, outlets, Auto Layout, `UIImage`.

- Project2 - GuessTheFlag: There are something new about @2x and @3x images, asset catalogs, operators(`+=` and `-=`), `UIButton`, enums, `CALayer`, `UIColor`, random numbers, actions, string interpolation, `UIAlertController`.

- Project3 - SocialMedia: Learned something new here, include `UIBarButtonItem`, `UIActivityViewController`, the Social framework, and `NSURL`.

- Project4 - EasyBrowser: In this project, learned about `loadView()`, `WKWebView`, delegation, `NSURLRequest`, `UIToolBar`, `UIProgressView`, KVO.

- Project5 - WordScramble: In this project, learned how to insert rows into `UITableView`, how to add text fields to `UIAlertController`, some core stuff about strings, closures, method return values, booleans, `NSRange`.

- Project6 - AutoLayout: Learned how to use Auto Layout in code, use Visual Format Language(VFL) to add constraints.

- Project7 - WhitehousePetitions: This project using JSON to parse Whitehouse petitions, learned `NSData`, `SwiftyJSON`, `UITabBarController`, create new view controller by reference to storyboard.

- Project8 - SwiftyWords: This project learning about `addTarget()`, `enumerate()`, `countElements()`, `find()`, `join()`, `stringByReplacingOccurrencesOfString()`, property observers, range operators and the difference between Swift and `NSString`.

- Project9 - GCD: Learn how to run complex tasks in the background with GCD, how to use `dispatch_async()`, `dispatch_get_global_queue()`, `QOS_CLASS_USER_INITIATED` and so on.

- Project10 - Names2Faces: Learn `UICollectionView`, `UIImagePickerController`, `NSUUID`, custom classes and more.

- Project11 - Pachinko: Dive into SpriteKit, learned `SpriteKit`, physics, radians, `CGFloat`, `UITouch`, `SKAction`, `SKLabelNode`, `SKEmitterNode`, `SKPhysicsContactDelegate`.

- Projcet12 - NewNames2Faces: Learn how to save user settings and data for later use, about `NSUserDefaults`, `NSCoding`, `NSKeyedArchiver`, and so on.

- Project13 - Instafilter: In this project, make a photo manipulation program using `UISlider` and Core Image filters, and learn how to write an image to the photo library. 

- Project14 - Whack-a-Penguin: Learned `SKCropNode`, `SKTexture`, GCD's `dispatch_after()`, `SKAction`.

- Project15 - CoreAnimation: Learned Core Animation, CGAffineTransform and switch/case.
{'fraction_non_alphanumeric': 0.10551421484449533, 'fraction_numerical': 0.009540164090822362, 'mean_word_length': 5.755154639175258, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3882999', 'n_tokens_mistral': 1530, 'n_tokens_neox': 1468, 'n_words': 583}