<commit_before>//
//  Created by <NAME>
//  http://www.hexedbits.com
//
//
//  The MIT License
//  Copyright (c) 2013 <NAME>
//  http://opensource.org/licenses/MIT
//

#import <Foundation/Foundation.h>
#import <AudioToolbox/AudioToolbox.h>

/**
 *  String constant for .caf audio file extension.
 */
extern NSString * const kJSQSystemSoundTypeCAF;

/**
 *  String constant for .aif audio file extension.
 */
extern NSString * const kJSQSystemSoundTypeAIF;

/**
 *  String constant for .wav audio file extension.
 */
extern NSString * const kJSQSystemSoundTypeWAV;


@interface JSQSystemSoundPlayer : NSObject


+ (JSQSystemSoundPlayer *)sharedPlayer;

- (void)playSoundWithName:(NSString *)filename extension:(NSString *)ext;

@end<commit_msg>documentation<commit_after>//
//  Created by <NAME>
//  http://www.hexedbits.com
//
//
//  The MIT License
//  Copyright (c) 2013 <NAME>
//  http://opensource.org/licenses/MIT
//

#import <Foundation/Foundation.h>
#import <AudioToolbox/AudioToolbox.h>

/**
 *  String constant for .caf audio file extension.
 */
extern NSString * const kJSQSystemSoundTypeCAF;

/**
 *  String constant for .aif audio file extension.
 */
extern NSString * const kJSQSystemSoundTypeAIF;

/**
 *  String constant for .wav audio file extension.
 */
extern NSString * const kJSQSystemSoundTypeWAV;

/**
 *  The `JSQSystemSoundPlayer` class enables you to play sound effects, alert sounds, or other short sounds. It lazily loads and caches all `SystemSoundID`s and purges them upon receiving the `UIApplicationDidReceiveMemoryWarningNotification` notification.
 */
@interface JSQSystemSoundPlayer : NSObject

/**
 *  Returns the shared `JSQSystemSoundPlayer` object. This method always returns the same sound system player object.
 *
 *  @return An initialized `JSQSystemSoundPlayer` object if successful, `nil` otherwise.
 */
+ (JSQSystemSoundPlayer *)sharedPlayer;

/**
 *  Plays an audio file with the given filename and extension. The system sound player will lazily initialize and load the file before playing it, and then cache its corresponding `SystemSoundID`. If this file has previously been played, it will be loaded from cache and played immediately.
 *
 *  @param filename  A string containing the base name of the audio file to play.
 *  @param extension A string containing the extension of the audio file to play. This parameter must be one of `kJSQSystemSoundTypeCAF`, `kJSQSystemSoundTypeAIF`, or `kJSQSystemSoundTypeWAV`.
 */
- (void)playSoundWithName:(NSString *)filename extension:(NSString *)extension;

@end
{'fraction_non_alphanumeric': 0.10196078431372549, 'fraction_numerical': 0.003137254901960784, 'mean_word_length': 4.25979381443299, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '7380663', 'n_tokens_mistral': 763, 'n_tokens_neox': 730, 'n_words': 256}